Class SecretManagerServiceGrpc.SecretManagerServiceBlockingStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractBlockingStub<SecretManagerServiceGrpc.SecretManagerServiceBlockingStub>
-
- com.google.cloud.secretmanager.v1.SecretManagerServiceGrpc.SecretManagerServiceBlockingStub
-
- Enclosing class:
- SecretManagerServiceGrpc
public static final class SecretManagerServiceGrpc.SecretManagerServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub<SecretManagerServiceGrpc.SecretManagerServiceBlockingStub>
A stub to allow clients to do synchronous rpc calls to service SecretManagerService.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]
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessSecretVersionResponse
accessSecretVersion(AccessSecretVersionRequest request)
Accesses a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].SecretVersion
addSecretVersion(AddSecretVersionRequest request)
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.SecretManagerServiceBlockingStub
build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
Secret
createSecret(CreateSecretRequest request)
Creates a new [Secret][google.cloud.secretmanager.v1.Secret] containing no [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].com.google.protobuf.Empty
deleteSecret(DeleteSecretRequest request)
Deletes a [Secret][google.cloud.secretmanager.v1.Secret].SecretVersion
destroySecretVersion(DestroySecretVersionRequest request)
Destroys a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].SecretVersion
disableSecretVersion(DisableSecretVersionRequest request)
Disables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].SecretVersion
enableSecretVersion(EnableSecretVersionRequest request)
Enables a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].com.google.iam.v1.Policy
getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request)
Gets the access control policy for a secret.Secret
getSecret(GetSecretRequest request)
Gets metadata for a given [Secret][google.cloud.secretmanager.v1.Secret].SecretVersion
getSecretVersion(GetSecretVersionRequest request)
Gets metadata for a [SecretVersion][google.cloud.secretmanager.v1.SecretVersion].ListSecretsResponse
listSecrets(ListSecretsRequest request)
Lists [Secrets][google.cloud.secretmanager.v1.Secret].ListSecretVersionsResponse
listSecretVersions(ListSecretVersionsRequest request)
Lists [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].com.google.iam.v1.Policy
setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request)
Sets the access control policy on the specified secret.com.google.iam.v1.TestIamPermissionsResponse
testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request)
Returns permissions that a caller has for the specified secret.Secret
updateSecret(UpdateSecretRequest request)
Updates metadata of an existing [Secret][google.cloud.secretmanager.v1.Secret].
-
-
-
Method Detail
-
build
protected SecretManagerServiceGrpc.SecretManagerServiceBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
build
in classio.grpc.stub.AbstractStub<SecretManagerServiceGrpc.SecretManagerServiceBlockingStub>
-
listSecrets
public ListSecretsResponse listSecrets(ListSecretsRequest request)
Lists [Secrets][google.cloud.secretmanager.v1.Secret].
-
createSecret
public Secret createSecret(CreateSecretRequest request)
Creates a new [Secret][google.cloud.secretmanager.v1.Secret] containing no [SecretVersions][google.cloud.secretmanager.v1.SecretVersion].
-
addSecretVersion
public SecretVersion addSecretVersion(AddSecretVersionRequest request)
Creates a new [SecretVersion][google.cloud.secretmanager.v1.SecretVersion] containing secret data and attaches it to an existing [Secret][google.cloud.secretmanager.v1.Secret].
-
getSecret
public Secret getSecret(GetSecretRequest request)
Gets metadata for a given [Secret][google.cloud.secretmanager.v1.Secret].
-
updateSecret
public Secret updateSecret(UpdateSecretRequest request)
Updates metadata of an existing [Secret][google.cloud.secretmanager.v1.Secret].
-
deleteSecret
public com.google.protobuf.Empty deleteSecret(DeleteSecretRequest request)
Deletes a [Secret][google.cloud.secretmanager.v1.Secret].
-
listSecretVersions
public ListSecretVersionsResponse listSecretVersions(ListSecretVersionsRequest request)
Lists [SecretVersions][google.cloud.secretmanager.v1.SecretVersion]. This call does not return secret data.
-
getSecretVersion
public SecretVersion getSecretVersion(GetSecretVersionRequest request)
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].
-
accessSecretVersion
public AccessSecretVersionResponse accessSecretVersion(AccessSecretVersionRequest request)
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].
-
disableSecretVersion
public SecretVersion disableSecretVersion(DisableSecretVersionRequest request)
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].
-
enableSecretVersion
public SecretVersion enableSecretVersion(EnableSecretVersionRequest request)
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].
-
destroySecretVersion
public SecretVersion destroySecretVersion(DestroySecretVersionRequest request)
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.
-
setIamPolicy
public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request)
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].
-
getIamPolicy
public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request)
Gets the access control policy for a secret. Returns empty policy if the secret exists and does not have a policy set.
-
testIamPermissions
public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request)
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.
-
-