Trait SecretVersionsApi

Source
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§

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,

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,

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,

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,

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,

PUT /secrets/{secretId}/versions/restore

Implementors§