Service Client: Google::Cloud::Secretmanager::V1::OperationsService::SecretOperationsServiceClient
Client stub representing the remote SecretOperationsService 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::V1::OperationsService - Compiled Protocol Buffers messages for google/cloud/secretmanager/v1/operations_service.proto
SYNOPSIS
use Google::Cloud::Secretmanager::V1::OperationsService;
my $msg = Google::Cloud::Secretmanager::V1::OperationsService::ListBackupsRequest->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::V1::OperationsService::ListBackupsRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/secretmanager/v1/operations_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::V1::OperationsService::ListBackupsRequest
Request message for [SecretOperationsService.ListBackups][google.cloud.secretmanager.v1.SecretOperationsService.ListBackups].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The resource name of the location associated with the [Backups][google.cloud.secretmanager.v1.Backup], in the format `projects/{project}/locations/{location}`.
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. Maximum number of backups to return. The service may return fewer than this value. If unspecified, at most 50 backups will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. A token identifying a page of results the server should return.
$msg->filter()/$msg->filter($value)Type:
StringOptional. Filter expression to restrict the returned [Backups][google.cloud.secretmanager.v1.Backup].
$msg->order_by()/$msg->order_by($value)Type:
StringOptional. Field specification for sorting the results in the response.
Google::Cloud::Secretmanager::V1::OperationsService::ListBackupsResponse
Response message for [SecretOperationsService.ListBackups][google.cloud.secretmanager.v1.SecretOperationsService.ListBackups].
Inherits from Protobuf::Message.
Accessors
$msg->backups()/$msg->backups($value)Type:
Message(Google::Cloud::Secretmanager::V1::OperationsService::Backup)The list of [Backups][google.cloud.secretmanager.v1.Backup] in the location.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token identifying a page of results the server should return.
$msg->unreachable()/$msg->unreachable($value)Type:
StringUnordered list. Resource names of the unreachable locations. Format: `projects/{project}/locations/{location}`
Google::Cloud::Secretmanager::V1::OperationsService::GetBackupRequest
Request message for [SecretOperationsService.GetBackup][google.cloud.secretmanager.v1.SecretOperationsService.GetBackup].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the [Backup][google.cloud.secretmanager.v1.Backup], in the format `projects/{project}/locations/{location}/backups/{backup}`.
Google::Cloud::Secretmanager::V1::OperationsService::CreateBackupRequest
Request message for [SecretOperationsService.CreateBackup][google.cloud.secretmanager.v1.SecretOperationsService.CreateBackup].
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The resource name of the location where the [Backup][google.cloud.secretmanager.v1.Backup] will be created, in the format `projects/{project}/locations/{location}`.
$msg->backup_id()/$msg->backup_id($value)Type:
StringRequired. The ID to use for the backup, which will become the final component of the backup's resource name.
$msg->backup()/$msg->backup($value)Type:
Message(Google::Cloud::Secretmanager::V1::OperationsService::Backup)Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource to create.
Google::Cloud::Secretmanager::V1::OperationsService::UpdateBackupRequest
Request message for [SecretOperationsService.UpdateBackup][google.cloud.secretmanager.v1.SecretOperationsService.UpdateBackup].
Inherits from Protobuf::Message.
Accessors
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Optional. Field mask is used to specify the fields to be overwritten in the [Backup][google.cloud.secretmanager.v1.Backup] resource by the update. The fields specified in the `update_mask` are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields present in the request will be overwritten.
$msg->backup()/$msg->backup($value)Type:
Message(Google::Cloud::Secretmanager::V1::OperationsService::Backup)Required. The [Backup][google.cloud.secretmanager.v1.Backup] resource with updated fields.
Google::Cloud::Secretmanager::V1::OperationsService::DeleteBackupRequest
Request message for [SecretOperationsService.DeleteBackup][google.cloud.secretmanager.v1.SecretOperationsService.DeleteBackup].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the [Backup][google.cloud.secretmanager.v1.Backup] to delete, in the format `projects/{project}/locations/{location}/backups/{backup}`.
$msg->etag()/$msg->etag($value)Type:
StringOptional. If set, the request will only succeed if it matches the etag of the currently stored [Backup][google.cloud.secretmanager.v1.Backup].
Google::Cloud::Secretmanager::V1::OperationsService::RestoreBackupRequest
Request message for [SecretOperationsService.RestoreBackup][google.cloud.secretmanager.v1.SecretOperationsService.RestoreBackup].
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the [Backup][google.cloud.secretmanager.v1.Backup] to restore from. Format: `projects/{project}/locations/{location}/backups/{backup}`
$msg->destination_secret_parent()/$msg->destination_secret_parent($value)Type:
StringRequired. Parent of the new [Secret][google.cloud.secretmanager.v1.Secret] to be created from this backup. Formats: - `projects/{project}/locations/{location}` (for regional secrets) - `projects/{project}` (for global secrets)
$msg->destination_secret_id()/$msg->destination_secret_id($value)Type:
StringRequired. ID of the new [Secret][google.cloud.secretmanager.v1.Secret] to be created from this backup. 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->kms_key_name()/$msg->kms_key_name($value)Type:
StringOptional. The resource name of the Cloud KMS CryptoKey to be used to encrypt the [Secret][google.cloud.secretmanager.v1.Secret]. Format: `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`
Google::Cloud::Secretmanager::V1::OperationsService::OperationMetadata
Represents the metadata of the long-running operation.
Inherits from Protobuf::Message.
Accessors
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Time the operation was created.
$msg->end_time()/$msg->end_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Time the operation finished running.
$msg->target()/$msg->target($value)Type:
StringOutput only. Server-defined resource path for the target of the operation.
$msg->verb()/$msg->verb($value)Type:
StringOutput only. Name of the verb executed by the operation.
$msg->status_message()/$msg->status_message($value)Type:
StringOutput only. Human-readable status of the operation, if any.
$msg->requested_cancellation()/$msg->requested_cancellation($value)Type:
BoolOutput only. Identifies whether the user has requested cancellation of the operation. Operations that have been cancelled successfully have [google.longrunning.Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of `1`, corresponding to `Code.CANCELLED`.
$msg->api_version()/$msg->api_version($value)Type:
StringOutput only. API version used to start the operation.
$msg->progress()/$msg->progress($value)Type:
Message(Google::Cloud::Secretmanager::V1::OperationsService::OperationMetadata::Progress)Output only. Represents the progress of the operation. This field is populated for operations that involve processing multiple secret versions.
Google::Cloud::Secretmanager::V1::OperationsService::Backup
A Backup of a Secret. Backups are regional resources.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringIdentifier. Resource name of the backup. Format: `projects/{project}/locations/{location}/backups/{backup}`
$msg->source_secret()/$msg->source_secret($value)Type:
StringRequired. Immutable. Resource name of the [Secret][google.cloud.secretmanager.v1.Secret] that this backup is for. The source [Secret][google.cloud.secretmanager.v1.Secret] can be in a different region than the [Backup][google.cloud.secretmanager.v1.Backup]. This field is immutable after creation. Formats: - `projects/{project}/locations/{location}/secrets/{secret}` (for regional secrets) - `projects/{project}/secrets/{secret}` (for global secrets)
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Time at which the backup resource was created.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Time at which the backup resource was last updated.
$msg->source_secret_create_time()/$msg->source_secret_create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Creation time of the source [Secret][google.cloud.secretmanager.v1.Secret] at the moment the backup was initiated.
$msg->version_count()/$msg->version_count($value)Type:
Int32Output only. Number of non-destroyed secret versions contained in this backup.
$msg->labels()/$msg->labels($value)Type:
Message(Google::Cloud::Secretmanager::V1::OperationsService::Backup::LabelsEntry)Optional. Labels with user-defined metadata.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Secretmanager::V1::Backup::State)Output only. Current state of the Backup.
$msg->etag()/$msg->etag($value)Type:
StringOptional. Used for optimistic concurrency control as a way to help prevent simultaneous updates of a backup from overwriting each other.
Enum: Backup::State
STATE_UNSPECIFIED=>0CREATING=>1ACTIVE=>2UPDATING=>3FAILED=>4
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Secretmanager::V1::OperationsService::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.