pub trait SecretsApi: 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<BulkDeleteResponseModelListResponseModel, Error<BulkDeleteError>>> + 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;
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_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_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_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 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 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;
}
Required Methods§
Sourcefn 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
Sourcefn 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
Sourcefn 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}
Sourcefn 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
Sourcefn 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
Sourcefn 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
Sourcefn 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
Sourcefn 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}