Service Client: Google::Cloud::Secrets::V1beta1::Service::SecretManagerServiceClient
Client stub representing the remote SecretManagerService gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to secrets.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Secrets::V1beta1::Service - Compiled Protocol Buffers messages for google/cloud/secrets/v1beta1/service.proto
SYNOPSIS
use Google::Cloud::Secrets::V1beta1::Service;
my $msg = Google::Cloud::Secrets::V1beta1::Service::ListSecretsRequest->new({
parent => $parent,
page_size => $page_size,
page_token => $page_token,
});
# Read or update a field
my $val = $msg->parent();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Secrets::V1beta1::Service::ListSecretsRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/secrets/v1beta1/service.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Secrets::V1beta1::Service::ListSecretsRequest
Request message for [SecretManagerService.ListSecrets][google.cloud.secrets.v1beta1.SecretManagerService.ListSecrets].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The resource name of the project associated with the [Secrets][google.cloud.secrets.v1beta1.Secret], in the format `projects/*`.
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. 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.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. Pagination token, returned earlier via [ListSecretsResponse.next_page_token][google.cloud.secrets.v1beta1.ListSecretsResponse.next_page_token].
Google::Cloud::Secrets::V1beta1::Service::ListSecretsResponse
Response message for [SecretManagerService.ListSecrets][google.cloud.secrets.v1beta1.SecretManagerService.ListSecrets].
Inherits from Protobuf::Message.
Accessors
$msg->secrets()/$msg->secrets($value)Type:
Message(Google::Cloud::Secrets::V1beta1::Resources::Secret)The list of [Secrets][google.cloud.secrets.v1beta1.Secret] sorted in reverse by create_time (newest first).
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token to retrieve the next page of results. Pass this value in [ListSecretsRequest.page_token][google.cloud.secrets.v1beta1.ListSecretsRequest.page_token] to retrieve the next page.
$msg->total_size()/$msg->total_size($value)Type:
Int32The total number of [Secrets][google.cloud.secrets.v1beta1.Secret].
Google::Cloud::Secrets::V1beta1::Service::CreateSecretRequest
Request message for [SecretManagerService.CreateSecret][google.cloud.secrets.v1beta1.SecretManagerService.CreateSecret].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The resource name of the project to associate with the [Secret][google.cloud.secrets.v1beta1.Secret], in the format `projects/*`.
$msg->secret_id()/$msg->secret_id($value)Type:
StringRequired. 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.
$msg->secret()/$msg->secret($value)Type:
Message(Google::Cloud::Secrets::V1beta1::Resources::Secret)Required. A [Secret][google.cloud.secrets.v1beta1.Secret] with initial field values.
Google::Cloud::Secrets::V1beta1::Service::AddSecretVersionRequest
Request message for [SecretManagerService.AddSecretVersion][google.cloud.secrets.v1beta1.SecretManagerService.AddSecretVersion].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The resource name of the [Secret][google.cloud.secrets.v1beta1.Secret] to associate with the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] in the format `projects/*/secrets/*`.
$msg->payload()/$msg->payload($value)Type:
Message(Google::Cloud::Secrets::V1beta1::Resources::SecretPayload)Required. The secret payload of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion].
Google::Cloud::Secrets::V1beta1::Service::GetSecretRequest
Request message for [SecretManagerService.GetSecret][google.cloud.secrets.v1beta1.SecretManagerService.GetSecret].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the [Secret][google.cloud.secrets.v1beta1.Secret], in the format `projects/*/secrets/*`.
Google::Cloud::Secrets::V1beta1::Service::ListSecretVersionsRequest
Request message for [SecretManagerService.ListSecretVersions][google.cloud.secrets.v1beta1.SecretManagerService.ListSecretVersions].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The resource name of the [Secret][google.cloud.secrets.v1beta1.Secret] associated with the [SecretVersions][google.cloud.secrets.v1beta1.SecretVersion] to list, in the format `projects/*/secrets/*`.
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. 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.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. Pagination token, returned earlier via ListSecretVersionsResponse.next_page_token][].
Google::Cloud::Secrets::V1beta1::Service::ListSecretVersionsResponse
Response message for [SecretManagerService.ListSecretVersions][google.cloud.secrets.v1beta1.SecretManagerService.ListSecretVersions].
Inherits from Protobuf::Message.
Accessors
$msg->versions()/$msg->versions($value)Type:
Message(Google::Cloud::Secrets::V1beta1::Resources::SecretVersion)The list of [SecretVersions][google.cloud.secrets.v1beta1.SecretVersion] sorted in reverse by create_time (newest first).
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token to retrieve the next page of results. Pass this value in [ListSecretVersionsRequest.page_token][google.cloud.secrets.v1beta1.ListSecretVersionsRequest.page_token] to retrieve the next page.
$msg->total_size()/$msg->total_size($value)Type:
Int32The total number of [SecretVersions][google.cloud.secrets.v1beta1.SecretVersion].
Google::Cloud::Secrets::V1beta1::Service::GetSecretVersionRequest
Request message for [SecretManagerService.GetSecretVersion][google.cloud.secrets.v1beta1.SecretManagerService.GetSecretVersion].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] in the format `projects/*/secrets/*/versions/*`. `projects/*/secrets/*/versions/latest` is an alias to the `latest` [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion].
Google::Cloud::Secrets::V1beta1::Service::UpdateSecretRequest
Request message for [SecretManagerService.UpdateSecret][google.cloud.secrets.v1beta1.SecretManagerService.UpdateSecret].
Inherits from Protobuf::Message.
Accessors
$msg->secret()/$msg->secret($value)Type:
Message(Google::Cloud::Secrets::V1beta1::Resources::Secret)Required. [Secret][google.cloud.secrets.v1beta1.Secret] with updated field values.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Required. Specifies the fields to be updated.
Google::Cloud::Secrets::V1beta1::Service::AccessSecretVersionRequest
Request message for [SecretManagerService.AccessSecretVersion][google.cloud.secrets.v1beta1.SecretManagerService.AccessSecretVersion].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] in the format `projects/*/secrets/*/versions/*`.
Google::Cloud::Secrets::V1beta1::Service::AccessSecretVersionResponse
Response message for [SecretManagerService.AccessSecretVersion][google.cloud.secrets.v1beta1.SecretManagerService.AccessSecretVersion].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThe resource name of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] in the format `projects/*/secrets/*/versions/*`.
$msg->payload()/$msg->payload($value)Type:
Message(Google::Cloud::Secrets::V1beta1::Resources::SecretPayload)Secret payload
Google::Cloud::Secrets::V1beta1::Service::DeleteSecretRequest
Request message for [SecretManagerService.DeleteSecret][google.cloud.secrets.v1beta1.SecretManagerService.DeleteSecret].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the [Secret][google.cloud.secrets.v1beta1.Secret] to delete in the format `projects/*/secrets/*`.
Google::Cloud::Secrets::V1beta1::Service::DisableSecretVersionRequest
Request message for [SecretManagerService.DisableSecretVersion][google.cloud.secrets.v1beta1.SecretManagerService.DisableSecretVersion].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to disable in the format `projects/*/secrets/*/versions/*`.
Google::Cloud::Secrets::V1beta1::Service::EnableSecretVersionRequest
Request message for [SecretManagerService.EnableSecretVersion][google.cloud.secrets.v1beta1.SecretManagerService.EnableSecretVersion].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to enable in the format `projects/*/secrets/*/versions/*`.
Google::Cloud::Secrets::V1beta1::Service::DestroySecretVersionRequest
Request message for [SecretManagerService.DestroySecretVersion][google.cloud.secrets.v1beta1.SecretManagerService.DestroySecretVersion].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] to destroy in the format `projects/*/secrets/*/versions/*`.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Secrets::V1beta1::Service::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.