NAME
Google::Cloud::Secrets::V1beta1::Resources - Compiled Protocol Buffers messages for google/cloud/secrets/v1beta1/resources.proto
SYNOPSIS
use Google::Cloud::Secrets::V1beta1::Resources;
my $msg = Google::Cloud::Secrets::V1beta1::Resources::Secret->new({
name => $name,
replication => $replication,
create_time => $create_time,
labels => $labels,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Secrets::V1beta1::Resources::Secret->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/secrets/v1beta1/resources.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::Resources::Secret
A [Secret][google.cloud.secrets.v1beta1.Secret] is a logical secret whose value and versions can be accessed.
A [Secret][google.cloud.secrets.v1beta1.Secret] is made up of zero or more [SecretVersions][google.cloud.secrets.v1beta1.SecretVersion] that represent the secret data.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOutput only. The resource name of the [Secret][google.cloud.secrets.v1beta1.Secret] in the format `projects/*/secrets/*`.
$msg->replication()/$msg->replication($value)Type:
Message(Google::Cloud::Secrets::V1beta1::Resources::Replication)Required. Immutable. The replication policy of the secret data attached to the [Secret][google.cloud.secrets.v1beta1.Secret].
The replication policy cannot be changed after the Secret has been created.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time at which the [Secret][google.cloud.secrets.v1beta1.Secret] was created.
$msg->labels()/$msg->labels($value)Type:
Message(Google::Cloud::Secrets::V1beta1::Resources::Secret::LabelsEntry)The labels assigned to this Secret.
Label keys must be between 1 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: `[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`
Label values must be between 0 and 63 characters long, have a UTF-8 encoding of maximum 128 bytes, and must conform to the following PCRE regular expression: `[\p{Ll}\p{Lo}\p{N}_-]{0,63}`
No more than 64 labels can be assigned to a given resource.
Google::Cloud::Secrets::V1beta1::Resources::SecretVersion
A secret version resource in the Secret Manager API.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOutput only. The resource name of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] in the format `projects/*/secrets/*/versions/*`.
[SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] IDs in a [Secret][google.cloud.secrets.v1beta1.Secret] start at 1 and are incremented for each subsequent version of the secret.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time at which the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] was created.
$msg->destroy_time()/$msg->destroy_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time this [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion] was destroyed. Only present if [state][google.cloud.secrets.v1beta1.SecretVersion.state] is [DESTROYED][google.cloud.secrets.v1beta1.SecretVersion.State.DESTROYED].
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Secrets::V1beta1::SecretVersion::State)Output only. The current state of the [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion].
Enum: SecretVersion::State
STATE_UNSPECIFIED=>0ENABLED=>1DISABLED=>2DESTROYED=>3
Google::Cloud::Secrets::V1beta1::Resources::Replication
A policy that defines the replication configuration of data.
Inherits from Protobuf::Message.
Accessors
$msg->automatic()/$msg->automatic($value)Type:
Message(Google::Cloud::Secrets::V1beta1::Resources::Replication::Automatic)The [Secret][google.cloud.secrets.v1beta1.Secret] will automatically be replicated without any restrictions.
$msg->user_managed()/$msg->user_managed($value)Type:
Message(Google::Cloud::Secrets::V1beta1::Resources::Replication::UserManaged)The [Secret][google.cloud.secrets.v1beta1.Secret] will only be replicated into the locations specified.
Google::Cloud::Secrets::V1beta1::Resources::SecretPayload
A secret payload resource in the Secret Manager API. This contains the sensitive secret data that is associated with a [SecretVersion][google.cloud.secrets.v1beta1.SecretVersion].
Inherits from Protobuf::Message.
Accessors
$msg->data()/$msg->data($value)Type:
BytesThe secret data. Must be no larger than 64KiB.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Secrets::V1beta1::Resources::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.