NAME
Google::Cloud::Backupdr::V1::Autoprotectionpolicybinding - Compiled Protocol Buffers messages for google/cloud/backupdr/v1/autoprotectionpolicybinding.proto
SYNOPSIS
use Google::Cloud::Backupdr::V1::Autoprotectionpolicybinding;
my $msg = Google::Cloud::Backupdr::V1::Autoprotectionpolicybinding::AutoProtectionPolicyBinding->new({
name => $name,
description => $description,
state => $state,
scope => $scope,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Backupdr::V1::Autoprotectionpolicybinding::AutoProtectionPolicyBinding->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/backupdr/v1/autoprotectionpolicybinding.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::Backupdr::V1::Autoprotectionpolicybinding::AutoProtectionPolicyBinding
An AutoProtectionPolicyBinding (APPA) acts as the bridge between an AutoProtectionPolicy and the scope (Project) where the policy should be applied.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOutput only. Identifier. The resource name of the AutoProtectionPolicyBinding. Format: `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}`
$msg->description()/$msg->description($value)Type:
StringOptional. A description of the binding. The description must be at most 2048 characters.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Backupdr::V1::AutoProtectionPolicyBinding::State)Output only. The current state of the AutoProtectionPolicyBinding.
$msg->scope()/$msg->scope($value)Type:
StringRequired. Immutable. Resource Id of target container on which policy will be applied. Format: projects/{project_id}
$msg->binding_evaluation_summary()/$msg->binding_evaluation_summary($value)Type:
Message(Google::Cloud::Backupdr::V1::Autoprotectionpolicybinding::BindingEvaluationSummary)Output only. Summaries of the last policy application when the job has run, with one entry per resource type specified in the AutoProtectionPolicy.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The timestamp when the binding was created.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The timestamp when the binding was last updated.
$msg->etag()/$msg->etag($value)Type:
StringOutput only. The etag for the binding. If this is provided on update, it must match the server's etag.
Enum: AutoProtectionPolicyBinding::State
STATE_UNSPECIFIED=>0CREATING=>1ACTIVE=>2DELETION_INITIATED=>3
Google::Cloud::Backupdr::V1::Autoprotectionpolicybinding::BindingEvaluationSummary
BindingEvaluationSummary contains the summary of the last run of job that applies policy to matching resources for a given binding.
Inherits from Protobuf::Message.
Accessors
$msg->matching_resource_count()/$msg->matching_resource_count($value)Type:
Int64Output only. The number of resources that currently match the policy's criteria.
$msg->protected_resource_count()/$msg->protected_resource_count($value)Type:
Int64Output only. The number of matching resources that are successfully protected.
$msg->failed_resource_count()/$msg->failed_resource_count($value)Type:
Int64Output only. The number of matching resources whose protection failed during job run.
Google::Cloud::Backupdr::V1::Autoprotectionpolicybinding::CreateAutoProtectionPolicyBindingRequest
Request message for creating an AutoProtectionPolicyBinding.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource where this binding will be created. Format: projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
$msg->auto_protection_policy_binding_id()/$msg->auto_protection_policy_binding_id($value)Type:
StringRequired. The ID to use for the binding. This will become the final component of the binding's resource name.
This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, or hyphens, and cannot end with a hyphen.
$msg->auto_protection_policy_binding()/$msg->auto_protection_policy_binding($value)Type:
Message(Google::Cloud::Backupdr::V1::Autoprotectionpolicybinding::AutoProtectionPolicyBinding)Required. The AutoProtectionPolicyBinding resource to create.
$msg->request_id()/$msg->request_id($value)Type:
StringOptional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
Google::Cloud::Backupdr::V1::Autoprotectionpolicybinding::GetAutoProtectionPolicyBindingRequest
Request message for getting an AutoProtectionPolicyBinding.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the binding to retrieve. Format: projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}
Google::Cloud::Backupdr::V1::Autoprotectionpolicybinding::ListAutoProtectionPolicyBindingsRequest
Request message for ListAutoProtectionPolicyBindings.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The project and location for which to retrieve the list of policies. Format: projects/{project}/locations/{location}
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. The maximum number of policies to return in a single page is 500. If unspecified, a server-default value will be used.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. A page token, received from a previous `ListAutoProtectionPolicies` call. Provide this to retrieve the subsequent page.
$msg->filter()/$msg->filter($value)Type:
StringOptional. A filter expression that filters resources listed in the response. The following fields are filterable:
$msg->order_by()/$msg->order_by($value)Type:
StringOptional. An expression that sorts the results in the response. The following fields are sortable:
Google::Cloud::Backupdr::V1::Autoprotectionpolicybinding::ListAutoProtectionPolicyBindingsResponse
Response message for ListAutoProtectionPolicyBindings.
Inherits from Protobuf::Message.
Accessors
$msg->auto_protection_policy_bindings()/$msg->auto_protection_policy_bindings($value)Type:
Message(Google::Cloud::Backupdr::V1::Autoprotectionpolicybinding::AutoProtectionPolicyBinding)A list of the AutoProtectionPolicyBindings resources found.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
$msg->unreachable()/$msg->unreachable($value)Type:
StringUnordered list. Locations that could not be reached.
Google::Cloud::Backupdr::V1::Autoprotectionpolicybinding::InitiateDeleteAutoProtectionPolicyBindingRequest
Request message for initiating delete of an AutoProtectionPolicyBinding.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the binding to delete. Format: projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}/bindings/{binding}
$msg->etag()/$msg->etag($value)Type:
StringOptional. The current etag of the AutoProtectionPolicyBinding. If an etag is provided and does not match the current etag of the binding, deletion will be blocked and an ABORTED error will be returned.
$msg->request_id()/$msg->request_id($value)Type:
StringOptional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request.
The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Backupdr::V1::Autoprotectionpolicybinding::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.