pub struct MockSecretVersionsApi {
SecretVersionsApi_expectations: MockSecretVersionsApi_SecretVersionsApi,
}Fields§
§SecretVersionsApi_expectations: MockSecretVersionsApi_SecretVersionsApiImplementations§
Source§impl MockSecretVersionsApi
impl MockSecretVersionsApi
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 MockSecretVersionsApi
impl MockSecretVersionsApi
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_get_by_id(&mut self) -> &mut Expectation
pub fn expect_get_by_id(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_by_id method
Sourcepub fn expect_get_many_by_ids(&mut self) -> &mut Expectation
pub fn expect_get_many_by_ids(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_many_by_ids method
Sourcepub fn expect_get_versions_by_secret_id(&mut self) -> &mut Expectation
pub fn expect_get_versions_by_secret_id(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_versions_by_secret_id method
Sourcepub fn expect_restore_version(&mut self) -> &mut Expectation
pub fn expect_restore_version(&mut self) -> &mut Expectation
Create an Expectation for mocking the restore_version method
Trait Implementations§
Source§impl Debug for MockSecretVersionsApi
impl Debug for MockSecretVersionsApi
Source§impl Default for MockSecretVersionsApi
impl Default for MockSecretVersionsApi
Source§impl SecretVersionsApi for MockSecretVersionsApi
impl SecretVersionsApi for MockSecretVersionsApi
Source§fn bulk_delete<'a, 'life0, 'async_trait>(
&'life0 self,
uuid_colon_colon_uuid: Option<Vec<Uuid>>,
) -> Pin<Box<dyn Future<Output = Result<(), 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<(), Error<BulkDeleteError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /secret-versions/delete
Source§fn get_by_id<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<SecretVersionResponseModel, Error<GetByIdError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_by_id<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<SecretVersionResponseModel, Error<GetByIdError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /secret-versions/{id}
Source§fn get_many_by_ids<'a, 'life0, 'async_trait>(
&'life0 self,
uuid_colon_colon_uuid: Option<Vec<Uuid>>,
) -> Pin<Box<dyn Future<Output = Result<SecretVersionResponseModelListResponseModel, Error<GetManyByIdsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_many_by_ids<'a, 'life0, 'async_trait>(
&'life0 self,
uuid_colon_colon_uuid: Option<Vec<Uuid>>,
) -> Pin<Box<dyn Future<Output = Result<SecretVersionResponseModelListResponseModel, Error<GetManyByIdsError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
POST /secret-versions/get-by-ids
Source§fn get_versions_by_secret_id<'a, 'life0, 'async_trait>(
&'life0 self,
secret_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<SecretVersionResponseModelListResponseModel, Error<GetVersionsBySecretIdError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn get_versions_by_secret_id<'a, 'life0, 'async_trait>(
&'life0 self,
secret_id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<SecretVersionResponseModelListResponseModel, Error<GetVersionsBySecretIdError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
GET /secrets/{secretId}/versions
Source§fn restore_version<'a, 'life0, 'async_trait>(
&'life0 self,
secret_id: Uuid,
restore_secret_version_request_model: Option<RestoreSecretVersionRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<SecretResponseModel, Error<RestoreVersionError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn restore_version<'a, 'life0, 'async_trait>(
&'life0 self,
secret_id: Uuid,
restore_secret_version_request_model: Option<RestoreSecretVersionRequestModel>,
) -> Pin<Box<dyn Future<Output = Result<SecretResponseModel, Error<RestoreVersionError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
PUT /secrets/{secretId}/versions/restore