SecretManagerService class final
Secret Manager Service
Manages secrets and operations using those secrets. Implements a REST model with the following objects:
SecretSecretVersion
Constructors
- SecretManagerService({required Client client})
-
Creates a
SecretManagerServiceusingclientfor transport. - SecretManagerService.fromApiKey([String? apiKey])
-
Creates a
SecretManagerServicethat does authentication through an API key.factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
accessSecretVersion(
AccessSecretVersionRequest request) → Future< AccessSecretVersionResponse> -
Accesses a
SecretVersion. This call returns the secret data. -
addSecretVersion(
AddSecretVersionRequest request) → Future< SecretVersion> -
Creates a new
SecretVersioncontaining secret data and attaches it to an existingSecret. -
close(
) → void - Closes the client and cleans up any resources associated with it.
-
createSecret(
CreateSecretRequest request) → Future< Secret> -
Creates a new
Secretcontaining noSecretVersions. -
deleteSecret(
DeleteSecretRequest request) → Future< void> -
Deletes a
Secret. -
destroySecretVersion(
DestroySecretVersionRequest request) → Future< SecretVersion> -
Destroys a
SecretVersion. -
disableSecretVersion(
DisableSecretVersionRequest request) → Future< SecretVersion> -
Disables a
SecretVersion. -
enableSecretVersion(
EnableSecretVersionRequest request) → Future< SecretVersion> -
Enables a
SecretVersion. -
getIamPolicy(
GetIamPolicyRequest request) → Future< Policy> - Gets the access control policy for a secret. Returns empty policy if the secret exists and does not have a policy set.
-
getLocation(
GetLocationRequest request) → Future< Location> - Gets information about a location.
-
getSecret(
GetSecretRequest request) → Future< Secret> -
Gets metadata for a given
Secret. -
getSecretVersion(
GetSecretVersionRequest request) → Future< SecretVersion> -
Gets metadata for a
SecretVersion. -
listLocations(
ListLocationsRequest request) → Future< ListLocationsResponse> - Lists information about the supported locations for this service.
-
listSecrets(
ListSecretsRequest request) → Future< ListSecretsResponse> -
Lists
Secrets. -
listSecretVersions(
ListSecretVersionsRequest request) → Future< ListSecretVersionsResponse> -
Lists
SecretVersions. This call does not return secret data. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setIamPolicy(
SetIamPolicyRequest request) → Future< Policy> - Sets the access control policy on the specified secret. Replaces any existing policy.
-
testIamPermissions(
TestIamPermissionsRequest request) → Future< TestIamPermissionsResponse> - Returns permissions that a caller has for the specified secret. If the secret does not exist, this call returns an empty set of permissions, not a NOT_FOUND error.
-
toString(
) → String -
A string representation of this object.
inherited
-
updateSecret(
UpdateSecretRequest request) → Future< Secret> -
Updates metadata of an existing
Secret.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited