pub struct MockPamAccessConnectorsApi {
PamAccessConnectorsApi_expectations: MockPamAccessConnectorsApi_PamAccessConnectorsApi,
}Fields§
§PamAccessConnectorsApi_expectations: MockPamAccessConnectorsApi_PamAccessConnectorsApiImplementations§
Source§impl MockPamAccessConnectorsApi
impl MockPamAccessConnectorsApi
Sourcepub fn checkpoint(&mut self)
pub fn checkpoint(&mut self)
Validate that all current expectations for all methods have been satisfied, and discard them.
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new mock object with no expectations.
This method will not be generated if the real struct
already has a new method. However, it will be
generated if the struct implements a trait with a new
method. The trait’s new method can still be called
like <MockX as TraitY>::new
Source§impl MockPamAccessConnectorsApi
impl MockPamAccessConnectorsApi
Sourcepub fn expect_assign_target(&mut self) -> &mut Expectation
pub fn expect_assign_target(&mut self) -> &mut Expectation
Create an Expectation for mocking the assign_target method
Sourcepub fn expect_delete(&mut self) -> &mut Expectation
pub fn expect_delete(&mut self) -> &mut Expectation
Create an Expectation for mocking the delete method
Sourcepub fn expect_disable(&mut self) -> &mut Expectation
pub fn expect_disable(&mut self) -> &mut Expectation
Create an Expectation for mocking the disable method
Sourcepub fn expect_enable(&mut self) -> &mut Expectation
pub fn expect_enable(&mut self) -> &mut Expectation
Create an Expectation for mocking the enable method
Sourcepub fn expect_get(&mut self) -> &mut Expectation
pub fn expect_get(&mut self) -> &mut Expectation
Create an Expectation for mocking the get method
Sourcepub fn expect_get_all(&mut self) -> &mut Expectation
pub fn expect_get_all(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_all method
Sourcepub fn expect_post(&mut self) -> &mut Expectation
pub fn expect_post(&mut self) -> &mut Expectation
Create an Expectation for mocking the post method
Sourcepub fn expect_unassign_target(&mut self) -> &mut Expectation
pub fn expect_unassign_target(&mut self) -> &mut Expectation
Create an Expectation for mocking the unassign_target method
Trait Implementations§
Source§impl Debug for MockPamAccessConnectorsApi
impl Debug for MockPamAccessConnectorsApi
Source§impl Default for MockPamAccessConnectorsApi
impl Default for MockPamAccessConnectorsApi
Source§impl PamAccessConnectorsApi for MockPamAccessConnectorsApi
impl PamAccessConnectorsApi for MockPamAccessConnectorsApi
Source§fn assign_target<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
id: Uuid,
assign_access_connector_target_request_model: AssignAccessConnectorTargetRequestModel,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn assign_target<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
id: Uuid,
assign_access_connector_target_request_model: AssignAccessConnectorTargetRequestModel,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /organizations/{orgId}/access-connectors/{id}/assignments
Source§fn delete<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn delete<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
DELETE /organizations/{orgId}/access-connectors/{id} Permanently deletes an access connector and invalidates its credential. The access connector held the plaintext organization key – rotating the organization key is the remediation for a suspected compromise.
Source§fn disable<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn disable<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /organizations/{orgId}/access-connectors/{id}/disable Disables an access connector (reversible): it stops claiming new jobs and its running jobs are released, but its credential is retained so it can be re-enabled later.
Source§fn enable<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn enable<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /organizations/{orgId}/access-connectors/{id}/enable Re-enables a disabled access connector so it can authenticate and claim jobs again.
Source§fn get<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<PamAccessConnectorDetailResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<PamAccessConnectorDetailResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /organizations/{orgId}/access-connectors/{id} Returns one access connector with its recent rotation activity – the jobs it has worked and the attempts it recorded against them, newest first.
Source§fn get_all<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<PamAccessConnectorResponseModelListResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_all<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<PamAccessConnectorResponseModelListResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /organizations/{orgId}/access-connectors
Source§fn post<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
register_access_connector_request_model: RegisterAccessConnectorRequestModel,
) -> Pin<Box<dyn Future<Output = Result<RegisterAccessConnectorResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn post<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
register_access_connector_request_model: RegisterAccessConnectorRequestModel,
) -> Pin<Box<dyn Future<Output = Result<RegisterAccessConnectorResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /organizations/{orgId}/access-connectors Registers an access connector and returns its client secret. The secret is shown exactly once here – the server hashes it for storage and cannot return it again.
Source§fn unassign_target<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
id: Uuid,
target_system_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn unassign_target<'a, 'life0, 'async_trait>(
&'life0 self,
org_id: Uuid,
id: Uuid,
target_system_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
DELETE /organizations/{orgId}/access-connectors/{id}/assignments/{targetSystemId}
Auto Trait Implementations§
impl Freeze for MockPamAccessConnectorsApi
impl RefUnwindSafe for MockPamAccessConnectorsApi
impl Send for MockPamAccessConnectorsApi
impl Sync for MockPamAccessConnectorsApi
impl Unpin for MockPamAccessConnectorsApi
impl UnsafeUnpin for MockPamAccessConnectorsApi
impl UnwindSafe for MockPamAccessConnectorsApi
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Arc<> Read more