pub struct MockServiceAccountsApi {
ServiceAccountsApi_expectations: MockServiceAccountsApi_ServiceAccountsApi,
}
Fields§
§ServiceAccountsApi_expectations: MockServiceAccountsApi_ServiceAccountsApi
Implementations§
Source§impl MockServiceAccountsApi
impl MockServiceAccountsApi
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 MockServiceAccountsApi
impl MockServiceAccountsApi
Sourcepub fn expect_bulk_delete(&mut self) -> &mut Expectation
pub fn expect_bulk_delete(&mut self) -> &mut Expectation
Create an Expectation
for mocking the bulk_delete
method
Sourcepub fn expect_create(&mut self) -> &mut Expectation
pub fn expect_create(&mut self) -> &mut Expectation
Create an Expectation
for mocking the create
method
Sourcepub fn expect_create_access_token(&mut self) -> &mut Expectation
pub fn expect_create_access_token(&mut self) -> &mut Expectation
Create an Expectation
for mocking the create_access_token
method
Sourcepub fn expect_get_access_tokens(&mut self) -> &mut Expectation
pub fn expect_get_access_tokens(&mut self) -> &mut Expectation
Create an Expectation
for mocking the get_access_tokens
method
Sourcepub fn expect_get_by_service_account_id(&mut self) -> &mut Expectation
pub fn expect_get_by_service_account_id(&mut self) -> &mut Expectation
Create an Expectation
for mocking the get_by_service_account_id
method
Sourcepub fn expect_list_by_organization(&mut self) -> &mut Expectation
pub fn expect_list_by_organization(&mut self) -> &mut Expectation
Create an Expectation
for mocking the list_by_organization
method
Sourcepub fn expect_revoke_access_tokens(&mut self) -> &mut Expectation
pub fn expect_revoke_access_tokens(&mut self) -> &mut Expectation
Create an Expectation
for mocking the revoke_access_tokens
method
Sourcepub fn expect_update(&mut self) -> &mut Expectation
pub fn expect_update(&mut self) -> &mut Expectation
Create an Expectation
for mocking the update
method
Trait Implementations§
Source§impl Debug for MockServiceAccountsApi
impl Debug for MockServiceAccountsApi
Source§impl Default for MockServiceAccountsApi
impl Default for MockServiceAccountsApi
Source§impl ServiceAccountsApi for MockServiceAccountsApi
impl ServiceAccountsApi for MockServiceAccountsApi
Source§fn bulk_delete<'a, 'life0, 'async_trait>(
&'life0 self,
uuid_colon_colon_uuid: Option<Vec<Uuid>>,
) -> Pin<Box<dyn Future<Output = Result<BulkDeleteResponseModelListResponseModel, Error<BulkDeleteError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn bulk_delete<'a, 'life0, 'async_trait>(
&'life0 self,
uuid_colon_colon_uuid: Option<Vec<Uuid>>,
) -> Pin<Box<dyn Future<Output = Result<BulkDeleteResponseModelListResponseModel, Error<BulkDeleteError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /service-accounts/delete
Source§fn create<'a, 'life0, 'async_trait>(
&'life0 self,
organization_id: Uuid,
service_account_create_request_model: Option<ServiceAccountCreateRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<ServiceAccountResponseModel, Error<CreateError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn create<'a, 'life0, 'async_trait>(
&'life0 self,
organization_id: Uuid,
service_account_create_request_model: Option<ServiceAccountCreateRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<ServiceAccountResponseModel, Error<CreateError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /organizations/{organizationId}/service-accounts
Source§fn create_access_token<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
access_token_create_request_model: Option<AccessTokenCreateRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<AccessTokenCreationResponseModel, Error<CreateAccessTokenError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn create_access_token<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
access_token_create_request_model: Option<AccessTokenCreateRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<AccessTokenCreationResponseModel, Error<CreateAccessTokenError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /service-accounts/{id}/access-tokens
Source§fn get_access_tokens<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<AccessTokenResponseModelListResponseModel, Error<GetAccessTokensError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_access_tokens<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<AccessTokenResponseModelListResponseModel, Error<GetAccessTokensError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /service-accounts/{id}/access-tokens
Source§fn get_by_service_account_id<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<ServiceAccountResponseModel, Error<GetByServiceAccountIdError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_by_service_account_id<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<ServiceAccountResponseModel, Error<GetByServiceAccountIdError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /service-accounts/{id}
Source§fn list_by_organization<'a, 'life0, 'async_trait>(
&'life0 self,
organization_id: Uuid,
include_access_to_secrets: Option<bool>,
) -> Pin<Box<dyn Future<Output = Result<ServiceAccountSecretsDetailsResponseModelListResponseModel, Error<ListByOrganizationError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn list_by_organization<'a, 'life0, 'async_trait>(
&'life0 self,
organization_id: Uuid,
include_access_to_secrets: Option<bool>,
) -> Pin<Box<dyn Future<Output = Result<ServiceAccountSecretsDetailsResponseModelListResponseModel, Error<ListByOrganizationError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /organizations/{organizationId}/service-accounts
Source§fn revoke_access_tokens<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
revoke_access_tokens_request: Option<RevokeAccessTokensRequest>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<RevokeAccessTokensError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn revoke_access_tokens<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
revoke_access_tokens_request: Option<RevokeAccessTokensRequest>,
) -> Pin<Box<dyn Future<Output = Result<(), Error<RevokeAccessTokensError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /service-accounts/{id}/access-tokens/revoke
Source§fn update<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
service_account_update_request_model: Option<ServiceAccountUpdateRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<ServiceAccountResponseModel, Error<UpdateError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn update<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
service_account_update_request_model: Option<ServiceAccountUpdateRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<ServiceAccountResponseModel, Error<UpdateError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
PUT /service-accounts/{id}