pub enum SecretsCommand {
Get(SecretGetRequest),
GetByIds(SecretsGetRequest),
Create(SecretCreateRequest),
List(SecretIdentifiersRequest),
Update(SecretPutRequest),
Delete(SecretsDeleteRequest),
Sync(SecretsSyncRequest),
}
Variants§
Get(SecretGetRequest)
Requires Authentication Requires using an Access Token for login or calling Sync at least once Retrieve a secret by the provided identifier
Returns: SecretResponse
GetByIds(SecretsGetRequest)
Requires Authentication Requires using an Access Token for login or calling Sync at least once Retrieve secrets by the provided identifiers
Returns: SecretsResponse
Create(SecretCreateRequest)
Requires Authentication Requires using an Access Token for login or calling Sync at least once Creates a new secret in the provided organization using the given data
Returns: SecretResponse
List(SecretIdentifiersRequest)
Requires Authentication Requires using an Access Token for login or calling Sync at least once Lists all secret identifiers of the given organization, to then retrieve each secret, use
CreateSecret
Returns: SecretIdentifiersResponse
Update(SecretPutRequest)
Requires Authentication Requires using an Access Token for login or calling Sync at least once Updates an existing secret with the provided ID using the given data
Returns: SecretResponse
Delete(SecretsDeleteRequest)
Requires Authentication Requires using an Access Token for login or calling Sync at least once Deletes all the secrets whose IDs match the provided ones
Returns: SecretsDeleteResponse
Sync(SecretsSyncRequest)
Requires Authentication Requires using an Access Token for login Retrieve the secrets accessible by the authenticated machine account Optionally, provide the last synced date to assess whether any changes have occurred If changes are detected, retrieves all the secrets accessible by the authenticated machine account
Returns: SecretsSyncResponse
Trait Implementations§
Source§impl Debug for SecretsCommand
impl Debug for SecretsCommand
Source§impl<'de> Deserialize<'de> for SecretsCommand
impl<'de> Deserialize<'de> for SecretsCommand
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl JsonSchema for SecretsCommand
impl JsonSchema for SecretsCommand
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moreAuto Trait Implementations§
impl Freeze for SecretsCommand
impl RefUnwindSafe for SecretsCommand
impl Send for SecretsCommand
impl Sync for SecretsCommand
impl Unpin for SecretsCommand
impl UnwindSafe for SecretsCommand
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more