Reference documentation and code samples for the Secret Manager V1beta1 API class Google::Cloud::SecretManager::V1beta1::SecretManagerService::Rest::Client.
REST client for the SecretManagerService service.
Secret Manager Service
Manages secrets and operations using those secrets. Implements a REST model with the following objects:
Inherits
- Object
Methods
.configure
def self.configure() { |config| ... } -> Client::Configuration
Configure the SecretManagerService Client class.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
# Modify the configuration for all SecretManagerService clients ::Google::Cloud::SecretManager::V1beta1::SecretManagerService::Rest::Client.configure do |config| config.timeout = 10.0 end
#access_secret_version
def access_secret_version(request, options = nil) -> ::Google::Cloud::SecretManager::V1beta1::AccessSecretVersionResponse
def access_secret_version(name: nil) -> ::Google::Cloud::SecretManager::V1beta1::AccessSecretVersionResponse
Accesses a SecretVersion. This call returns the secret data.
projects//secrets//versions/latest
is an alias to the latest
SecretVersion.
def access_secret_version(request, options = nil) -> ::Google::Cloud::SecretManager::V1beta1::AccessSecretVersionResponse
access_secret_version
via a request object, either of type
AccessSecretVersionRequest or an equivalent Hash.
- request (::Google::Cloud::SecretManager::V1beta1::AccessSecretVersionRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def access_secret_version(name: nil) -> ::Google::Cloud::SecretManager::V1beta1::AccessSecretVersionResponse
access_secret_version
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The resource name of the SecretVersion in the format
projects/*/secrets/*/versions/*
.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::SecretManager::V1beta1::AccessSecretVersionResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#add_secret_version
def add_secret_version(request, options = nil) -> ::Google::Cloud::SecretManager::V1beta1::SecretVersion
def add_secret_version(parent: nil, payload: nil) -> ::Google::Cloud::SecretManager::V1beta1::SecretVersion
Creates a new SecretVersion containing secret data and attaches it to an existing Secret.
def add_secret_version(request, options = nil) -> ::Google::Cloud::SecretManager::V1beta1::SecretVersion
add_secret_version
via a request object, either of type
AddSecretVersionRequest or an equivalent Hash.
- request (::Google::Cloud::SecretManager::V1beta1::AddSecretVersionRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def add_secret_version(parent: nil, payload: nil) -> ::Google::Cloud::SecretManager::V1beta1::SecretVersion
add_secret_version
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. The resource name of the Secret to associate with the
SecretVersion in the format
projects/*/secrets/*
. - payload (::Google::Cloud::SecretManager::V1beta1::SecretPayload, ::Hash) — Required. The secret payload of the SecretVersion.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::SecretManager::V1beta1::SecretVersion)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#configure
def configure() { |config| ... } -> Client::Configuration
Configure the SecretManagerService Client instance.
The configuration is set to the derived mode, meaning that values can be changed, but structural changes (adding new fields, etc.) are not allowed. Structural changes should be made on Client.configure.
See Configuration for a description of the configuration fields.
- (config) — Configure the Client client.
- config (Client::Configuration)
#create_secret
def create_secret(request, options = nil) -> ::Google::Cloud::SecretManager::V1beta1::Secret
def create_secret(parent: nil, secret_id: nil, secret: nil) -> ::Google::Cloud::SecretManager::V1beta1::Secret
Creates a new Secret containing no SecretVersions.
def create_secret(request, options = nil) -> ::Google::Cloud::SecretManager::V1beta1::Secret
create_secret
via a request object, either of type
CreateSecretRequest or an equivalent Hash.
- request (::Google::Cloud::SecretManager::V1beta1::CreateSecretRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def create_secret(parent: nil, secret_id: nil, secret: nil) -> ::Google::Cloud::SecretManager::V1beta1::Secret
create_secret
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. The resource name of the project to associate with the
Secret, in the format
projects/*
. -
secret_id (::String) — Required. This must be unique within the project.
A secret ID is a string with a maximum length of 255 characters and can contain uppercase and lowercase letters, numerals, and the hyphen (
-
) and underscore (_
) characters. - secret (::Google::Cloud::SecretManager::V1beta1::Secret, ::Hash) — Required. A Secret with initial field values.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::SecretManager::V1beta1::Secret)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#delete_secret
def delete_secret(request, options = nil) -> ::Google::Protobuf::Empty
def delete_secret(name: nil) -> ::Google::Protobuf::Empty
Deletes a Secret.
def delete_secret(request, options = nil) -> ::Google::Protobuf::Empty
delete_secret
via a request object, either of type
DeleteSecretRequest or an equivalent Hash.
- request (::Google::Cloud::SecretManager::V1beta1::DeleteSecretRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def delete_secret(name: nil) -> ::Google::Protobuf::Empty
delete_secret
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The resource name of the Secret to delete in the format
projects/*/secrets/*
.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Protobuf::Empty)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#destroy_secret_version
def destroy_secret_version(request, options = nil) -> ::Google::Cloud::SecretManager::V1beta1::SecretVersion
def destroy_secret_version(name: nil) -> ::Google::Cloud::SecretManager::V1beta1::SecretVersion
Destroys a SecretVersion.
Sets the state of the SecretVersion to DESTROYED and irrevocably destroys the secret data.
def destroy_secret_version(request, options = nil) -> ::Google::Cloud::SecretManager::V1beta1::SecretVersion
destroy_secret_version
via a request object, either of type
DestroySecretVersionRequest or an equivalent Hash.
- request (::Google::Cloud::SecretManager::V1beta1::DestroySecretVersionRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def destroy_secret_version(name: nil) -> ::Google::Cloud::SecretManager::V1beta1::SecretVersion
destroy_secret_version
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The resource name of the SecretVersion to destroy in the format
projects/*/secrets/*/versions/*
.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::SecretManager::V1beta1::SecretVersion)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#disable_secret_version
def disable_secret_version(request, options = nil) -> ::Google::Cloud::SecretManager::V1beta1::SecretVersion
def disable_secret_version(name: nil) -> ::Google::Cloud::SecretManager::V1beta1::SecretVersion
def disable_secret_version(request, options = nil) -> ::Google::Cloud::SecretManager::V1beta1::SecretVersion
disable_secret_version
via a request object, either of type
DisableSecretVersionRequest or an equivalent Hash.
- request (::Google::Cloud::SecretManager::V1beta1::DisableSecretVersionRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def disable_secret_version(name: nil) -> ::Google::Cloud::SecretManager::V1beta1::SecretVersion
disable_secret_version
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The resource name of the SecretVersion to disable in the format
projects/*/secrets/*/versions/*
.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::SecretManager::V1beta1::SecretVersion)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#enable_secret_version
def enable_secret_version(request, options = nil) -> ::Google::Cloud::SecretManager::V1beta1::SecretVersion
def enable_secret_version(name: nil) -> ::Google::Cloud::SecretManager::V1beta1::SecretVersion
def enable_secret_version(request, options = nil) -> ::Google::Cloud::SecretManager::V1beta1::SecretVersion
enable_secret_version
via a request object, either of type
EnableSecretVersionRequest or an equivalent Hash.
- request (::Google::Cloud::SecretManager::V1beta1::EnableSecretVersionRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def enable_secret_version(name: nil) -> ::Google::Cloud::SecretManager::V1beta1::SecretVersion
enable_secret_version
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The resource name of the SecretVersion to enable in the format
projects/*/secrets/*/versions/*
.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::SecretManager::V1beta1::SecretVersion)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#get_iam_policy
def get_iam_policy(request, options = nil) -> ::Google::Iam::V1::Policy
def get_iam_policy(resource: nil, options: nil) -> ::Google::Iam::V1::Policy
Gets the access control policy for a secret. Returns empty policy if the secret exists and does not have a policy set.
def get_iam_policy(request, options = nil) -> ::Google::Iam::V1::Policy
get_iam_policy
via a request object, either of type
Iam::V1::GetIamPolicyRequest or an equivalent Hash.
- request (::Google::Iam::V1::GetIamPolicyRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_iam_policy(resource: nil, options: nil) -> ::Google::Iam::V1::Policy
get_iam_policy
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- resource (::String) — REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.
-
options (::Google::Iam::V1::GetPolicyOptions, ::Hash) — OPTIONAL: A
GetPolicyOptions
object for specifying options toGetIamPolicy
.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Iam::V1::Policy)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#get_secret
def get_secret(request, options = nil) -> ::Google::Cloud::SecretManager::V1beta1::Secret
def get_secret(name: nil) -> ::Google::Cloud::SecretManager::V1beta1::Secret
Gets metadata for a given Secret.
def get_secret(request, options = nil) -> ::Google::Cloud::SecretManager::V1beta1::Secret
get_secret
via a request object, either of type
GetSecretRequest or an equivalent Hash.
- request (::Google::Cloud::SecretManager::V1beta1::GetSecretRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_secret(name: nil) -> ::Google::Cloud::SecretManager::V1beta1::Secret
get_secret
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The resource name of the Secret, in the format
projects/*/secrets/*
.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::SecretManager::V1beta1::Secret)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#get_secret_version
def get_secret_version(request, options = nil) -> ::Google::Cloud::SecretManager::V1beta1::SecretVersion
def get_secret_version(name: nil) -> ::Google::Cloud::SecretManager::V1beta1::SecretVersion
Gets metadata for a SecretVersion.
projects//secrets//versions/latest
is an alias to the latest
SecretVersion.
def get_secret_version(request, options = nil) -> ::Google::Cloud::SecretManager::V1beta1::SecretVersion
get_secret_version
via a request object, either of type
GetSecretVersionRequest or an equivalent Hash.
- request (::Google::Cloud::SecretManager::V1beta1::GetSecretVersionRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def get_secret_version(name: nil) -> ::Google::Cloud::SecretManager::V1beta1::SecretVersion
get_secret_version
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
name (::String) — Required. The resource name of the SecretVersion in the format
projects/*/secrets/*/versions/*
.projects/*/secrets/*/versions/latest
is an alias to thelatest
SecretVersion.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::SecretManager::V1beta1::SecretVersion)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#initialize
def initialize() { |config| ... } -> Client
Create a new SecretManagerService REST client object.
- (config) — Configure the SecretManagerService client.
- config (Client::Configuration)
- (Client) — a new instance of Client
# Create a client using the default configuration client = ::Google::Cloud::SecretManager::V1beta1::SecretManagerService::Rest::Client.new # Create a client using a custom configuration client = ::Google::Cloud::SecretManager::V1beta1::SecretManagerService::Rest::Client.new do |config| config.timeout = 10.0 end
#list_secret_versions
def list_secret_versions(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::SecretManager::V1beta1::SecretVersion>
def list_secret_versions(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::SecretManager::V1beta1::SecretVersion>
Lists SecretVersions. This call does not return secret data.
def list_secret_versions(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::SecretManager::V1beta1::SecretVersion>
list_secret_versions
via a request object, either of type
ListSecretVersionsRequest or an equivalent Hash.
- request (::Google::Cloud::SecretManager::V1beta1::ListSecretVersionsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_secret_versions(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::SecretManager::V1beta1::SecretVersion>
list_secret_versions
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. The resource name of the Secret associated with the
SecretVersions to list, in the format
projects/*/secrets/*
. - page_size (::Integer) — Optional. The maximum number of results to be returned in a single page. If set to 0, the server decides the number of results to return. If the number is greater than 25000, it is capped at 25000.
- page_token (::String) — Optional. Pagination token, returned earlier via ListSecretVersionsResponse.next_page_token][].
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::SecretManager::V1beta1::SecretVersion>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::SecretManager::V1beta1::SecretVersion>)
- (::Google::Cloud::Error) — if the REST call is aborted.
#list_secrets
def list_secrets(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::SecretManager::V1beta1::Secret>
def list_secrets(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::SecretManager::V1beta1::Secret>
Lists Secrets.
def list_secrets(request, options = nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::SecretManager::V1beta1::Secret>
list_secrets
via a request object, either of type
ListSecretsRequest or an equivalent Hash.
- request (::Google::Cloud::SecretManager::V1beta1::ListSecretsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def list_secrets(parent: nil, page_size: nil, page_token: nil) -> ::Gapic::Rest::PagedEnumerable<::Google::Cloud::SecretManager::V1beta1::Secret>
list_secrets
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
-
parent (::String) — Required. The resource name of the project associated with the
Secrets, in the format
projects/*
. - page_size (::Integer) — Optional. The maximum number of results to be returned in a single page. If set to 0, the server decides the number of results to return. If the number is greater than 25000, it is capped at 25000.
- page_token (::String) — Optional. Pagination token, returned earlier via ListSecretsResponse.next_page_token.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Gapic::Rest::PagedEnumerable<::Google::Cloud::SecretManager::V1beta1::Secret>)
- operation (::Gapic::Rest::TransportOperation)
- (::Gapic::Rest::PagedEnumerable<::Google::Cloud::SecretManager::V1beta1::Secret>)
- (::Google::Cloud::Error) — if the REST call is aborted.
#set_iam_policy
def set_iam_policy(request, options = nil) -> ::Google::Iam::V1::Policy
def set_iam_policy(resource: nil, policy: nil, update_mask: nil) -> ::Google::Iam::V1::Policy
Sets the access control policy on the specified secret. Replaces any existing policy.
Permissions on SecretVersions are enforced according to the policy set on the associated Secret.
def set_iam_policy(request, options = nil) -> ::Google::Iam::V1::Policy
set_iam_policy
via a request object, either of type
Iam::V1::SetIamPolicyRequest or an equivalent Hash.
- request (::Google::Iam::V1::SetIamPolicyRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def set_iam_policy(resource: nil, policy: nil, update_mask: nil) -> ::Google::Iam::V1::Policy
set_iam_policy
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- resource (::String) — REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.
-
policy (::Google::Iam::V1::Policy, ::Hash) — REQUIRED: The complete policy to be applied to the
resource
. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them. -
update_mask (::Google::Protobuf::FieldMask, ::Hash) — OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
the fields in the mask will be modified. If no mask is provided, the
following default mask is used:
paths: "bindings, etag"
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Iam::V1::Policy)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#test_iam_permissions
def test_iam_permissions(request, options = nil) -> ::Google::Iam::V1::TestIamPermissionsResponse
def test_iam_permissions(resource: nil, permissions: nil) -> ::Google::Iam::V1::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.
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.
def test_iam_permissions(request, options = nil) -> ::Google::Iam::V1::TestIamPermissionsResponse
test_iam_permissions
via a request object, either of type
Iam::V1::TestIamPermissionsRequest or an equivalent Hash.
- request (::Google::Iam::V1::TestIamPermissionsRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def test_iam_permissions(resource: nil, permissions: nil) -> ::Google::Iam::V1::TestIamPermissionsResponse
test_iam_permissions
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- resource (::String) — REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.
-
permissions (::Array<::String>) — The set of permissions to check for the
resource
. Permissions with wildcards (such as '' or 'storage.') are not allowed. For more information see IAM Overview.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Iam::V1::TestIamPermissionsResponse)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.
#update_secret
def update_secret(request, options = nil) -> ::Google::Cloud::SecretManager::V1beta1::Secret
def update_secret(secret: nil, update_mask: nil) -> ::Google::Cloud::SecretManager::V1beta1::Secret
Updates metadata of an existing Secret.
def update_secret(request, options = nil) -> ::Google::Cloud::SecretManager::V1beta1::Secret
update_secret
via a request object, either of type
UpdateSecretRequest or an equivalent Hash.
- request (::Google::Cloud::SecretManager::V1beta1::UpdateSecretRequest, ::Hash) — A request object representing the call parameters. Required. To specify no parameters, or to keep all the default parameter values, pass an empty Hash.
- options (::Gapic::CallOptions, ::Hash) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
def update_secret(secret: nil, update_mask: nil) -> ::Google::Cloud::SecretManager::V1beta1::Secret
update_secret
via keyword arguments. Note that at
least one keyword argument is required. To specify no parameters, or to keep all
the default parameter values, pass an empty Hash as a request object (see above).
- secret (::Google::Cloud::SecretManager::V1beta1::Secret, ::Hash) — Required. Secret with updated field values.
- update_mask (::Google::Protobuf::FieldMask, ::Hash) — Required. Specifies the fields to be updated.
- (result, operation) — Access the result along with the TransportOperation object
- result (::Google::Cloud::SecretManager::V1beta1::Secret)
- operation (::Gapic::Rest::TransportOperation)
- (::Google::Cloud::Error) — if the REST call is aborted.