Service Client: Google::Cloud::Secretmanager::V1beta2::Service::SecretManagerServiceClient

Client stub representing the remote SecretManagerService gRPC service. Delegates call dispatching to Google::gRPC::Client.

target

The endpoint target address. Defaults to secretmanager.googleapis.com:443.

credentials

The authentication credentials provider. Defaults to application default credentials via Google::Auth.

NAME

Google::Cloud::Secretmanager::V1beta2::Service - Compiled Protocol Buffers messages for google/cloud/secretmanager/v1beta2/service.proto

SYNOPSIS

use Google::Cloud::Secretmanager::V1beta2::Service;

my $msg = Google::Cloud::Secretmanager::V1beta2::Service::ListSecretsRequest->new({
    parent => $parent,
    page_size => $page_size,
    page_token => $page_token,
    filter => $filter,
});

# Read or update a field
my $val = $msg->parent();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Secretmanager::V1beta2::Service::ListSecretsRequest->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/secretmanager/v1beta2/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::Secretmanager::V1beta2::Service::ListSecretsRequest

Request message for [SecretManagerService.ListSecrets][google.cloud.secretmanager.v1beta2.SecretManagerService.ListSecrets].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The resource name of the project associated with the [Secrets][google.cloud.secretmanager.v1beta2.Secret], in the format `projects/*` or `projects/*/locations/*`

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    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.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    Optional. Pagination token, returned earlier via [ListSecretsResponse.next_page_token][google.cloud.secretmanager.v1beta2.ListSecretsResponse.next_page_token].

  • $msg->filter() / $msg->filter($value)

    Type: String

    Optional. Filter string, adhering to the rules in [List-operation filtering](https://cloud.google.com/secret-manager/docs/filtering). List only secrets matching the filter. If filter is empty, all secrets are listed.

Google::Cloud::Secretmanager::V1beta2::Service::ListSecretsResponse

Response message for [SecretManagerService.ListSecrets][google.cloud.secretmanager.v1beta2.SecretManagerService.ListSecrets].

Inherits from Protobuf::Message.

Accessors

  • $msg->secrets() / $msg->secrets($value)

    Type: Message (Google::Cloud::Secretmanager::V1beta2::Resources::Secret)

    The list of [Secrets][google.cloud.secretmanager.v1beta2.Secret] sorted in reverse by create_time (newest first).

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    A token to retrieve the next page of results. Pass this value in [ListSecretsRequest.page_token][google.cloud.secretmanager.v1beta2.ListSecretsRequest.page_token] to retrieve the next page.

  • $msg->total_size() / $msg->total_size($value)

    Type: Int32

    The total number of [Secrets][google.cloud.secretmanager.v1beta2.Secret] but 0 when the [ListSecretsRequest.filter][google.cloud.secretmanager.v1beta2.ListSecretsRequest.filter] field is set.

Google::Cloud::Secretmanager::V1beta2::Service::CreateSecretRequest

Request message for [SecretManagerService.CreateSecret][google.cloud.secretmanager.v1beta2.SecretManagerService.CreateSecret].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The resource name of the project to associate with the [Secret][google.cloud.secretmanager.v1beta2.Secret], in the format `projects/*` or `projects/*/locations/*`.

  • $msg->secret_id() / $msg->secret_id($value)

    Type: 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.

  • $msg->secret() / $msg->secret($value)

    Type: Message (Google::Cloud::Secretmanager::V1beta2::Resources::Secret)

    Required. A [Secret][google.cloud.secretmanager.v1beta2.Secret] with initial field values.

Google::Cloud::Secretmanager::V1beta2::Service::AddSecretVersionRequest

Request message for [SecretManagerService.AddSecretVersion][google.cloud.secretmanager.v1beta2.SecretManagerService.AddSecretVersion].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The resource name of the [Secret][google.cloud.secretmanager.v1beta2.Secret] to associate with the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] in the format `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`.

  • $msg->payload() / $msg->payload($value)

    Type: Message (Google::Cloud::Secretmanager::V1beta2::Resources::SecretPayload)

    Required. The secret payload of the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion].

Google::Cloud::Secretmanager::V1beta2::Service::GetSecretRequest

Request message for [SecretManagerService.GetSecret][google.cloud.secretmanager.v1beta2.SecretManagerService.GetSecret].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The resource name of the [Secret][google.cloud.secretmanager.v1beta2.Secret], in the format `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`.

Google::Cloud::Secretmanager::V1beta2::Service::ListSecretVersionsRequest

Request message for [SecretManagerService.ListSecretVersions][google.cloud.secretmanager.v1beta2.SecretManagerService.ListSecretVersions].

Inherits from Protobuf::Message.

Accessors

  • $msg->parent() / $msg->parent($value)

    Type: String

    Required. The resource name of the [Secret][google.cloud.secretmanager.v1beta2.Secret] associated with the [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion] to list, in the format `projects/*/secrets/*` or `projects/*/locations/*/secrets/*`.

  • $msg->page_size() / $msg->page_size($value)

    Type: Int32

    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.

  • $msg->page_token() / $msg->page_token($value)

    Type: String

    Optional. Pagination token, returned earlier via ListSecretVersionsResponse.next_page_token][].

  • $msg->filter() / $msg->filter($value)

    Type: String

    Optional. Filter string, adhering to the rules in [List-operation filtering](https://cloud.google.com/secret-manager/docs/filtering). List only secret versions matching the filter. If filter is empty, all secret versions are listed.

Google::Cloud::Secretmanager::V1beta2::Service::ListSecretVersionsResponse

Response message for [SecretManagerService.ListSecretVersions][google.cloud.secretmanager.v1beta2.SecretManagerService.ListSecretVersions].

Inherits from Protobuf::Message.

Accessors

  • $msg->versions() / $msg->versions($value)

    Type: Message (Google::Cloud::Secretmanager::V1beta2::Resources::SecretVersion)

    The list of [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion] sorted in reverse by create_time (newest first).

  • $msg->next_page_token() / $msg->next_page_token($value)

    Type: String

    A token to retrieve the next page of results. Pass this value in [ListSecretVersionsRequest.page_token][google.cloud.secretmanager.v1beta2.ListSecretVersionsRequest.page_token] to retrieve the next page.

  • $msg->total_size() / $msg->total_size($value)

    Type: Int32

    The total number of [SecretVersions][google.cloud.secretmanager.v1beta2.SecretVersion] but 0 when the [ListSecretsRequest.filter][google.cloud.secretmanager.v1beta2.ListSecretsRequest.filter] field is set.

Google::Cloud::Secretmanager::V1beta2::Service::GetSecretVersionRequest

Request message for [SecretManagerService.GetSecretVersion][google.cloud.secretmanager.v1beta2.SecretManagerService.GetSecretVersion].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] in the format `projects/*/secrets/*/versions/*` or `projects/*/locations/*/secrets/*/versions/*`.

    `projects/*/secrets/*/versions/latest` or `projects/*/locations/*/secrets/*/versions/latest` is an alias to the most recently created [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion].

Google::Cloud::Secretmanager::V1beta2::Service::UpdateSecretRequest

Request message for [SecretManagerService.UpdateSecret][google.cloud.secretmanager.v1beta2.SecretManagerService.UpdateSecret].

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Secretmanager::V1beta2::Service::AccessSecretVersionRequest

Request message for [SecretManagerService.AccessSecretVersion][google.cloud.secretmanager.v1beta2.SecretManagerService.AccessSecretVersion].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] in the format `projects/*/secrets/*/versions/*` or `projects/*/locations/*/secrets/*/versions/*`.

    `projects/*/secrets/*/versions/latest` or `projects/*/locations/*/secrets/*/versions/latest` is an alias to the most recently created [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion].

Google::Cloud::Secretmanager::V1beta2::Service::AccessSecretVersionResponse

Response message for [SecretManagerService.AccessSecretVersion][google.cloud.secretmanager.v1beta2.SecretManagerService.AccessSecretVersion].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    The resource name of the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] in the format `projects/*/secrets/*/versions/*` or `projects/*/locations/*/secrets/*/versions/*`.

  • $msg->payload() / $msg->payload($value)

    Type: Message (Google::Cloud::Secretmanager::V1beta2::Resources::SecretPayload)

    Secret payload

Google::Cloud::Secretmanager::V1beta2::Service::DeleteSecretRequest

Request message for [SecretManagerService.DeleteSecret][google.cloud.secretmanager.v1beta2.SecretManagerService.DeleteSecret].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The resource name of the [Secret][google.cloud.secretmanager.v1beta2.Secret] to delete in the format `projects/*/secrets/*`.

  • $msg->etag() / $msg->etag($value)

    Type: String

    Optional. Etag of the [Secret][google.cloud.secretmanager.v1beta2.Secret]. The request succeeds if it matches the etag of the currently stored secret object. If the etag is omitted, the request succeeds.

Google::Cloud::Secretmanager::V1beta2::Service::DisableSecretVersionRequest

Request message for [SecretManagerService.DisableSecretVersion][google.cloud.secretmanager.v1beta2.SecretManagerService.DisableSecretVersion].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to disable in the format `projects/*/secrets/*/versions/*` or `projects/*/locations/*/secrets/*/versions/*`.

  • $msg->etag() / $msg->etag($value)

    Type: String

    Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. The request succeeds if it matches the etag of the currently stored secret version object. If the etag is omitted, the request succeeds.

Google::Cloud::Secretmanager::V1beta2::Service::EnableSecretVersionRequest

Request message for [SecretManagerService.EnableSecretVersion][google.cloud.secretmanager.v1beta2.SecretManagerService.EnableSecretVersion].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to enable in the format `projects/*/secrets/*/versions/*` or `projects/*/locations/*/secrets/*/versions/*`.

  • $msg->etag() / $msg->etag($value)

    Type: String

    Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. The request succeeds if it matches the etag of the currently stored secret version object. If the etag is omitted, the request succeeds.

Google::Cloud::Secretmanager::V1beta2::Service::DestroySecretVersionRequest

Request message for [SecretManagerService.DestroySecretVersion][google.cloud.secretmanager.v1beta2.SecretManagerService.DestroySecretVersion].

Inherits from Protobuf::Message.

Accessors

  • $msg->name() / $msg->name($value)

    Type: String

    Required. The resource name of the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion] to destroy in the format `projects/*/secrets/*/versions/*` or `projects/*/locations/*/secrets/*/versions/*`.

  • $msg->etag() / $msg->etag($value)

    Type: String

    Optional. Etag of the [SecretVersion][google.cloud.secretmanager.v1beta2.SecretVersion]. The request succeeds if it matches the etag of the currently stored secret version object. If the etag is omitted, the request succeeds.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Secretmanager::V1beta2::Service::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.