pub struct MockSecretsApi {
SecretsApi_expectations: MockSecretsApi_SecretsApi,
}
Fields§
§SecretsApi_expectations: MockSecretsApi_SecretsApi
Implementations§
Source§impl MockSecretsApi
impl MockSecretsApi
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 MockSecretsApi
impl MockSecretsApi
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_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_secrets_by_ids(&mut self) -> &mut Expectation
pub fn expect_get_secrets_by_ids(&mut self) -> &mut Expectation
Create an Expectation
for mocking the get_secrets_by_ids
method
Sourcepub fn expect_get_secrets_by_project(&mut self) -> &mut Expectation
pub fn expect_get_secrets_by_project(&mut self) -> &mut Expectation
Create an Expectation
for mocking the get_secrets_by_project
method
Sourcepub fn expect_get_secrets_sync(&mut self) -> &mut Expectation
pub fn expect_get_secrets_sync(&mut self) -> &mut Expectation
Create an Expectation
for mocking the get_secrets_sync
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_update_secret(&mut self) -> &mut Expectation
pub fn expect_update_secret(&mut self) -> &mut Expectation
Create an Expectation
for mocking the update_secret
method
Trait Implementations§
Source§impl Debug for MockSecretsApi
impl Debug for MockSecretsApi
Source§impl Default for MockSecretsApi
impl Default for MockSecretsApi
Source§impl SecretsApi for MockSecretsApi
impl SecretsApi for MockSecretsApi
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 /secrets/delete
Source§fn create<'a, 'life0, 'async_trait>(
&'life0 self,
organization_id: Uuid,
secret_create_request_model: Option<SecretCreateRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<SecretResponseModel, 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,
secret_create_request_model: Option<SecretCreateRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<SecretResponseModel, Error<CreateError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /organizations/{organizationId}/secrets
Source§fn get<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<SecretResponseModel, Error<GetError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<SecretResponseModel, Error<GetError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /secrets/{id}
Source§fn get_secrets_by_ids<'a, 'life0, 'async_trait>(
&'life0 self,
get_secrets_request_model: Option<GetSecretsRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<BaseSecretResponseModelListResponseModel, Error<GetSecretsByIdsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_secrets_by_ids<'a, 'life0, 'async_trait>(
&'life0 self,
get_secrets_request_model: Option<GetSecretsRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<BaseSecretResponseModelListResponseModel, Error<GetSecretsByIdsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /secrets/get-by-ids
Source§fn get_secrets_by_project<'a, 'life0, 'async_trait>(
&'life0 self,
project_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<SecretWithProjectsListResponseModel, Error<GetSecretsByProjectError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_secrets_by_project<'a, 'life0, 'async_trait>(
&'life0 self,
project_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<SecretWithProjectsListResponseModel, Error<GetSecretsByProjectError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /projects/{projectId}/secrets
Source§fn get_secrets_sync<'a, 'life0, 'async_trait>(
&'life0 self,
organization_id: Uuid,
last_synced_date: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<SecretsSyncResponseModel, Error<GetSecretsSyncError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_secrets_sync<'a, 'life0, 'async_trait>(
&'life0 self,
organization_id: Uuid,
last_synced_date: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<SecretsSyncResponseModel, Error<GetSecretsSyncError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /organizations/{organizationId}/secrets/sync
Source§fn list_by_organization<'a, 'life0, 'async_trait>(
&'life0 self,
organization_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<SecretWithProjectsListResponseModel, 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,
) -> Pin<Box<dyn Future<Output = Result<SecretWithProjectsListResponseModel, Error<ListByOrganizationError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /organizations/{organizationId}/secrets
Source§fn update_secret<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
secret_update_request_model: Option<SecretUpdateRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<SecretResponseModel, Error<UpdateSecretError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn update_secret<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
secret_update_request_model: Option<SecretUpdateRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<SecretResponseModel, Error<UpdateSecretError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
PUT /secrets/{id}