ProjectsSecretsVersions
class ProjectsSecretsVersions extends Resource (View source)
The "versions" collection of methods.
Typical usage is:
$secretmanagerService = new Google\Service\SecretManager(...);
$versions = $secretmanagerService->projects_secrets_versions;
Methods
Accesses a SecretVersion. This call returns the secret data.
Destroys a SecretVersion. Sets the state of the SecretVersion to DESTROYED and irrevocably destroys the secret data. (versions.destroy)
Disables a SecretVersion. Sets the state of the SecretVersion to DISABLED.
Enables a SecretVersion. Sets the state of the SecretVersion to ENABLED.
Gets metadata for a SecretVersion. projects/secrets/versions/latest
is an
alias to the most recently created SecretVersion. (versions.get)
Lists SecretVersions. This call does not return secret data.
Details
AccessSecretVersionResponse
access(string $name, array $optParams = [])
Accesses a SecretVersion. This call returns the secret data.
projects/secrets/versions/latest
is an alias to the most recently created
SecretVersion. (versions.access)
SecretVersion
destroy(string $name, DestroySecretVersionRequest $postBody, array $optParams = [])
Destroys a SecretVersion. Sets the state of the SecretVersion to DESTROYED and irrevocably destroys the secret data. (versions.destroy)
SecretVersion
disable(string $name, DisableSecretVersionRequest $postBody, array $optParams = [])
Disables a SecretVersion. Sets the state of the SecretVersion to DISABLED.
(versions.disable)
SecretVersion
enable(string $name, EnableSecretVersionRequest $postBody, array $optParams = [])
Enables a SecretVersion. Sets the state of the SecretVersion to ENABLED.
(versions.enable)
SecretVersion
get(string $name, array $optParams = [])
Gets metadata for a SecretVersion. projects/secrets/versions/latest
is an
alias to the most recently created SecretVersion. (versions.get)
ListSecretVersionsResponse
listProjectsSecretsVersions(string $parent, array $optParams = [])
Lists SecretVersions. This call does not return secret data.
(versions.listProjectsSecretsVersions)