Reference documentation and code samples for the Secret Manager V1BETA2 API class Google::Cloud::SecretManager::V1beta2::SecretManagerService::Rest::ServiceStub.
REST service stub for the SecretManagerService service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.
Inherits
- Object
Methods
#access_secret_version
def access_secret_version(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecretManager::V1beta2::AccessSecretVersionResponse
Baseline implementation for the access_secret_version REST call
- request_pb (::Google::Cloud::SecretManager::V1beta2::AccessSecretVersionRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::SecretManager::V1beta2::AccessSecretVersionResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::SecretManager::V1beta2::AccessSecretVersionResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#add_secret_version
def add_secret_version(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecretManager::V1beta2::SecretVersion
Baseline implementation for the add_secret_version REST call
- request_pb (::Google::Cloud::SecretManager::V1beta2::AddSecretVersionRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::SecretManager::V1beta2::SecretVersion)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::SecretManager::V1beta2::SecretVersion) — A result object deserialized from the server's reply
- (::ArgumentError)
#create_secret
def create_secret(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecretManager::V1beta2::Secret
Baseline implementation for the create_secret REST call
- request_pb (::Google::Cloud::SecretManager::V1beta2::CreateSecretRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::SecretManager::V1beta2::Secret)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::SecretManager::V1beta2::Secret) — A result object deserialized from the server's reply
- (::ArgumentError)
#delete_secret
def delete_secret(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty
Baseline implementation for the delete_secret REST call
- request_pb (::Google::Cloud::SecretManager::V1beta2::DeleteSecretRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Protobuf::Empty) — A result object deserialized from the server's reply
- (::ArgumentError)
#destroy_secret_version
def destroy_secret_version(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecretManager::V1beta2::SecretVersion
Baseline implementation for the destroy_secret_version REST call
- request_pb (::Google::Cloud::SecretManager::V1beta2::DestroySecretVersionRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::SecretManager::V1beta2::SecretVersion)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::SecretManager::V1beta2::SecretVersion) — A result object deserialized from the server's reply
- (::ArgumentError)
#disable_secret_version
def disable_secret_version(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecretManager::V1beta2::SecretVersion
Baseline implementation for the disable_secret_version REST call
- request_pb (::Google::Cloud::SecretManager::V1beta2::DisableSecretVersionRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::SecretManager::V1beta2::SecretVersion)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::SecretManager::V1beta2::SecretVersion) — A result object deserialized from the server's reply
- (::ArgumentError)
#enable_secret_version
def enable_secret_version(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecretManager::V1beta2::SecretVersion
Baseline implementation for the enable_secret_version REST call
- request_pb (::Google::Cloud::SecretManager::V1beta2::EnableSecretVersionRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::SecretManager::V1beta2::SecretVersion)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::SecretManager::V1beta2::SecretVersion) — A result object deserialized from the server's reply
- (::ArgumentError)
#endpoint
def endpoint() -> String
The effective endpoint
- (String)
#get_iam_policy
def get_iam_policy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Iam::V1::Policy
Baseline implementation for the get_iam_policy REST call
- request_pb (::Google::Iam::V1::GetIamPolicyRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Iam::V1::Policy)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Iam::V1::Policy) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_secret
def get_secret(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecretManager::V1beta2::Secret
Baseline implementation for the get_secret REST call
- request_pb (::Google::Cloud::SecretManager::V1beta2::GetSecretRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::SecretManager::V1beta2::Secret)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::SecretManager::V1beta2::Secret) — A result object deserialized from the server's reply
- (::ArgumentError)
#get_secret_version
def get_secret_version(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecretManager::V1beta2::SecretVersion
Baseline implementation for the get_secret_version REST call
- request_pb (::Google::Cloud::SecretManager::V1beta2::GetSecretVersionRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::SecretManager::V1beta2::SecretVersion)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::SecretManager::V1beta2::SecretVersion) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_secret_versions
def list_secret_versions(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecretManager::V1beta2::ListSecretVersionsResponse
Baseline implementation for the list_secret_versions REST call
- request_pb (::Google::Cloud::SecretManager::V1beta2::ListSecretVersionsRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::SecretManager::V1beta2::ListSecretVersionsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::SecretManager::V1beta2::ListSecretVersionsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#list_secrets
def list_secrets(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecretManager::V1beta2::ListSecretsResponse
Baseline implementation for the list_secrets REST call
- request_pb (::Google::Cloud::SecretManager::V1beta2::ListSecretsRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::SecretManager::V1beta2::ListSecretsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::SecretManager::V1beta2::ListSecretsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#logger
def logger(stub: false) -> Logger
The logger used for request/response debug logging.
- (Logger)
#set_iam_policy
def set_iam_policy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Iam::V1::Policy
Baseline implementation for the set_iam_policy REST call
- request_pb (::Google::Iam::V1::SetIamPolicyRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Iam::V1::Policy)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Iam::V1::Policy) — A result object deserialized from the server's reply
- (::ArgumentError)
#test_iam_permissions
def test_iam_permissions(request_pb, options = nil) { |result, operation| ... } -> ::Google::Iam::V1::TestIamPermissionsResponse
Baseline implementation for the test_iam_permissions REST call
- request_pb (::Google::Iam::V1::TestIamPermissionsRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Iam::V1::TestIamPermissionsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Iam::V1::TestIamPermissionsResponse) — A result object deserialized from the server's reply
- (::ArgumentError)
#universe_domain
def universe_domain() -> String
The effective universe domain
- (String)
#update_secret
def update_secret(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::SecretManager::V1beta2::Secret
Baseline implementation for the update_secret REST call
- request_pb (::Google::Cloud::SecretManager::V1beta2::UpdateSecretRequest) — A request object representing the call parameters. Required.
- options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::SecretManager::V1beta2::Secret)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::SecretManager::V1beta2::Secret) — A result object deserialized from the server's reply
- (::ArgumentError)