pub trait SecretVersionsApi: Send + Sync {
// Required methods
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 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_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_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 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;
}Required Methods§
Sourcefn 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
Sourcefn 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}
Sourcefn 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
Sourcefn 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
Sourcefn 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