public static final class SecretManagerServiceGrpc.SecretManagerServiceStub extends AbstractAsyncStub<SecretManagerServiceGrpc.SecretManagerServiceStub>
Secret Manager Service Manages secrets and operations using those secrets. Implements a REST model with the following objects: * [Secret][google.cloud.secretmanager.v1.Secret] * [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]
AbstractStub.StubFactory<T extends AbstractStub<T>>
Modifier and Type | Method and Description |
---|---|
void |
accessSecretVersion(AccessSecretVersionRequest request,
StreamObserver<AccessSecretVersionResponse> responseObserver)
Accesses a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
|
void |
addSecretVersion(AddSecretVersionRequest request,
StreamObserver<SecretVersion> responseObserver)
Creates a new [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] containing secret data and attaches
it to an existing [Secret][google.cloud.secretmanager.v1.Secret].
|
protected SecretManagerServiceGrpc.SecretManagerServiceStub |
build(Channel channel,
CallOptions callOptions) |
void |
createSecret(CreateSecretRequest request,
StreamObserver<Secret> responseObserver)
Creates a new [Secret][google.cloud.secretmanager.v1.Secret] containing no [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
|
void |
deleteSecret(DeleteSecretRequest request,
StreamObserver<Empty> responseObserver)
Deletes a [Secret][google.cloud.secretmanager.v1.Secret].
|
void |
destroySecretVersion(DestroySecretVersionRequest request,
StreamObserver<SecretVersion> responseObserver)
Destroys a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
|
void |
disableSecretVersion(DisableSecretVersionRequest request,
StreamObserver<SecretVersion> responseObserver)
Disables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
|
void |
enableSecretVersion(EnableSecretVersionRequest request,
StreamObserver<SecretVersion> responseObserver)
Enables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
|
void |
getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request,
StreamObserver<com.google.iam.v1.Policy> responseObserver)
Gets the access control policy for a secret.
|
void |
getSecret(GetSecretRequest request,
StreamObserver<Secret> responseObserver)
Gets metadata for a given [Secret][google.cloud.secretmanager.v1.Secret].
|
void |
getSecretVersion(GetSecretVersionRequest request,
StreamObserver<SecretVersion> responseObserver)
Gets metadata for a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
|
void |
listSecrets(ListSecretsRequest request,
StreamObserver<ListSecretsResponse> responseObserver)
Lists [Secrets][google.cloud.secretmanager.v1.Secret].
|
void |
listSecretVersions(ListSecretVersionsRequest request,
StreamObserver<ListSecretVersionsResponse> responseObserver)
Lists [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
|
void |
setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request,
StreamObserver<com.google.iam.v1.Policy> responseObserver)
Sets the access control policy on the specified secret.
|
void |
testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request,
StreamObserver<com.google.iam.v1.TestIamPermissionsResponse> responseObserver)
Returns permissions that a caller has for the specified secret.
|
void |
updateSecret(UpdateSecretRequest request,
StreamObserver<Secret> responseObserver)
Updates metadata of an existing [Secret][google.cloud.secretmanager.v1.Secret].
|
newStub, newStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOption, withWaitForReady
protected SecretManagerServiceGrpc.SecretManagerServiceStub build(Channel channel, CallOptions callOptions)
build
in class AbstractStub<SecretManagerServiceGrpc.SecretManagerServiceStub>
public void listSecrets(ListSecretsRequest request, StreamObserver<ListSecretsResponse> responseObserver)
Lists [Secrets][google.cloud.secretmanager.v1.Secret].
public void createSecret(CreateSecretRequest request, StreamObserver<Secret> responseObserver)
Creates a new [Secret][google.cloud.secretmanager.v1.Secret] containing no [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
public void addSecretVersion(AddSecretVersionRequest request, StreamObserver<SecretVersion> responseObserver)
Creates a new [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] containing secret data and attaches it to an existing [Secret][google.cloud.secretmanager.v1.Secret].
public void getSecret(GetSecretRequest request, StreamObserver<Secret> responseObserver)
Gets metadata for a given [Secret][google.cloud.secretmanager.v1.Secret].
public void updateSecret(UpdateSecretRequest request, StreamObserver<Secret> responseObserver)
Updates metadata of an existing [Secret][google.cloud.secretmanager.v1.Secret].
public void deleteSecret(DeleteSecretRequest request, StreamObserver<Empty> responseObserver)
Deletes a [Secret][google.cloud.secretmanager.v1.Secret].
public void listSecretVersions(ListSecretVersionsRequest request, StreamObserver<ListSecretVersionsResponse> responseObserver)
Lists [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. This call does not return secret data.
public void getSecretVersion(GetSecretVersionRequest request, StreamObserver<SecretVersion> responseObserver)
Gets metadata for a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. `projects/*/secrets/*/versions/latest` is an alias to the most recently created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
public void accessSecretVersion(AccessSecretVersionRequest request, StreamObserver<AccessSecretVersionResponse> responseObserver)
Accesses a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. This call returns the secret data. `projects/*/secrets/*/versions/latest` is an alias to the most recently created [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].
public void disableSecretVersion(DisableSecretVersionRequest request, StreamObserver<SecretVersion> responseObserver)
Disables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to [DISABLED][google.cloud.secretmanager.v1.SecretVersion.State.DISABLED].
public void enableSecretVersion(EnableSecretVersionRequest request, StreamObserver<SecretVersion> responseObserver)
Enables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to [ENABLED][google.cloud.secretmanager.v1.SecretVersion.State.ENABLED].
public void destroySecretVersion(DestroySecretVersionRequest request, StreamObserver<SecretVersion> responseObserver)
Destroys a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion]. Sets the [state][google.cloud.secretmanager.v1.SecretVersion.state] of the [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] to [DESTROYED][google.cloud.secretmanager.v1.SecretVersion.State.DESTROYED] and irrevocably destroys the secret data.
public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, StreamObserver<com.google.iam.v1.Policy> responseObserver)
Sets the access control policy on the specified secret. Replaces any existing policy. Permissions on [SecretVersions][google.cloud.secretmanager.v1.SecretVersion] are enforced according to the policy set on the associated [Secret][google.cloud.secretmanager.v1.Secret].
public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, StreamObserver<com.google.iam.v1.Policy> responseObserver)
Gets the access control policy for a secret. Returns empty policy if the secret exists and does not have a policy set.
public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, StreamObserver<com.google.iam.v1.TestIamPermissionsResponse> responseObserver)
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. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
Copyright © 2022 Google LLC. All rights reserved.