NAME
Google::Cloud::Backupdr::V1::Autoprotectionpolicy - Compiled Protocol Buffers messages for google/cloud/backupdr/v1/autoprotectionpolicy.proto
SYNOPSIS
use Google::Cloud::Backupdr::V1::Autoprotectionpolicy;
my $msg = Google::Cloud::Backupdr::V1::Autoprotectionpolicy::AutoProtectionPolicy->new({
name => $name,
description => $description,
backup_plan_details => $backup_plan_details,
criteria => $criteria,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Backupdr::V1::Autoprotectionpolicy::AutoProtectionPolicy->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/backupdr/v1/autoprotectionpolicy.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::Autoprotectionpolicy::AutoProtectionPolicy
An AutoprotectionPolicy is a policy resource designed to automate backup management, moving from manual per-resource protection to a bulk approach. The policy dynamically discovers and applies a specified backup plan to all eligible resources that match its defined scope and criteria.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOutput only. Identifier. The resource name of the AutoProtectionPolicy. Format: `projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}`
$msg->description()/$msg->description($value)Type:
StringOptional. A description of the policy. The description must be at most 2048 characters.
$msg->backup_plan_details()/$msg->backup_plan_details($value)Type:
Message(Google::Cloud::Backupdr::V1::Autoprotectionpolicy::BackupPlanDetail)Required. The backup plan details for matching resources.
$msg->criteria()/$msg->criteria($value)Type:
Message(Google::Cloud::Backupdr::V1::Autoprotectionpolicy::Criteria)Required. The criteria for matching resources.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Backupdr::V1::AutoProtectionPolicy::State)Output only. The current state of the AutoProtectionPolicy.
$msg->etag()/$msg->etag($value)Type:
StringOutput only. The etag for the policy. If this is provided on update, it must match the server's etag.
$msg->binding_summary()/$msg->binding_summary($value)Type:
Message(Google::Cloud::Backupdr::V1::Autoprotectionpolicy::BindingSummary)Output only. Summary of total count of different containers covered through this policy.
$msg->policy_evaluation_summary()/$msg->policy_evaluation_summary($value)Type:
Message(Google::Cloud::Backupdr::V1::Autoprotectionpolicy::PolicyEvaluationSummary)Output only. Summary of last policy evaluation when job was run per workload type.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The timestamp when the policy was created.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The timestamp when the policy was last updated.
Enum: AutoProtectionPolicy::State
STATE_UNSPECIFIED=>0CREATING=>1ACTIVE=>2UPDATING=>3DELETING=>4
Google::Cloud::Backupdr::V1::Autoprotectionpolicy::BackupPlanDetail
BackupPlanDetail defines configuration of protection.
Inherits from Protobuf::Message.
Accessors
$msg->resource_type()/$msg->resource_type($value)Type:
StringRequired. The type of resource that this policy will automatically protect. Allowed values are, `compute.googleapis.com/Instance` and `compute.googleapis.com/Disk` are supported.
$msg->backup_plan()/$msg->backup_plan($value)Type:
StringRequired. The resource name of the BackupPlan to apply to resources that match the policy's criteria. This backup plan must be in the same location as AutoProtectionPolicy. Format: projects/{project}/locations/{location}/backupPlans/{backupPlanId}
Google::Cloud::Backupdr::V1::Autoprotectionpolicy::Criteria
Criteria specifies a set of criteria for matching resources.
Inherits from Protobuf::Message.
Accessors
$msg->matching_conditions()/$msg->matching_conditions($value)Type:
Message(Google::Cloud::Backupdr::V1::Autoprotectionpolicy::MatchingCondition)Required. A list of matching conditions that a resource must meet to be protected by the policy.
Google::Cloud::Backupdr::V1::Autoprotectionpolicy::MatchingCondition
MatchingCondition specifies a set of conditions for matching resources.
Inherits from Protobuf::Message.
Accessors
$msg->label_condition()/$msg->label_condition($value)Type:
Message(Google::Cloud::Backupdr::V1::Autoprotectionpolicy::KeyValuePair)Optional. A condition that matches resources based on their labels. For MVP, this is limited to a single label match.
Google::Cloud::Backupdr::V1::Autoprotectionpolicy::PolicyEvaluationSummary
PolicyEvaluationSummary contains the summary of the last run of job that applies policy to matching resources.
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::Autoprotectionpolicy::BindingSummary
BindingSummary contains count of different containers covered through this policy.
Inherits from Protobuf::Message.
Accessors
$msg->project_count()/$msg->project_count($value)Type:
Int64Output only. Total count of Projects protected with this policy.
Google::Cloud::Backupdr::V1::Autoprotectionpolicy::KeyValuePair
KeyValuePair defines a key-value pair for matching resource labels.
Inherits from Protobuf::Message.
Accessors
$msg->key()/$msg->key($value)Type:
StringRequired. The key of the label to match. This must be in the format `{label_key}`. The key must match the regex Format:`[\p{Ll}\p{Lo}][\p{Ll}\p{Lo}\p{N}_-]{0,62}`.
$msg->values()/$msg->values($value)Type:
StringRequired. The values of the label to match. There will be explicit "OR" between values of array. Each value must be in the format `{label_value}`. The value must match the regex Format: `[\\p{Ll}\\p{Lo}\\p{N}_-]{1,63}`.
Google::Cloud::Backupdr::V1::Autoprotectionpolicy::CreateAutoProtectionPolicyRequest
Request message for creating an AutoProtectionPolicy.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource where this policy will be created. Format: projects/{project}/locations/{location}
$msg->auto_protection_policy_id()/$msg->auto_protection_policy_id($value)Type:
StringRequired. The ID to use for the policy. This will become the final component of the policy'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()/$msg->auto_protection_policy($value)Type:
Message(Google::Cloud::Backupdr::V1::Autoprotectionpolicy::AutoProtectionPolicy)Required. The AutoProtectionPolicy 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::Autoprotectionpolicy::GetAutoProtectionPolicyRequest
Request message for getting an AutoProtectionPolicy.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the policy to retrieve. Format: projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
Google::Cloud::Backupdr::V1::Autoprotectionpolicy::UpdateAutoProtectionPolicyRequest
Request message for updating an AutoProtectionPolicy.
Inherits from Protobuf::Message.
Accessors
$msg->auto_protection_policy()/$msg->auto_protection_policy($value)Type:
Message(Google::Cloud::Backupdr::V1::Autoprotectionpolicy::AutoProtectionPolicy)Required. The policy to update.
$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 AutoProtectionPolicy 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 will be overwritten.
$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::Autoprotectionpolicy::DeleteAutoProtectionPolicyRequest
Request message for deleting an AutoProtectionPolicy.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the policy to delete. Format: projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}
$msg->etag()/$msg->etag($value)Type:
StringOptional. The current etag of the autoprotectionpolicy. If an etag is provided and does not match the current etag of the connection, deletion will be blocked.
$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::Autoprotectionpolicy::ListAutoProtectionPoliciesRequest
Request message for ListAutoProtectionPolicies.
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. 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::Autoprotectionpolicy::ListAutoProtectionPoliciesResponse
Response message for ListAutoProtectionPolicies.
Inherits from Protobuf::Message.
Accessors
$msg->auto_protection_policies()/$msg->auto_protection_policies($value)Type:
Message(Google::Cloud::Backupdr::V1::Autoprotectionpolicy::AutoProtectionPolicy)A list of the AutoProtectionPolicy 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.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Backupdr::V1::Autoprotectionpolicy::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.