NAME

Google::Cloud::Backupdr::V1beta::Autoprotectionpolicy - Compiled Protocol Buffers messages for google/cloud/backupdr/v1beta/autoprotectionpolicy.proto

SYNOPSIS

use Google::Cloud::Backupdr::V1beta::Autoprotectionpolicy;

my $msg = Google::Cloud::Backupdr::V1beta::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::V1beta::Autoprotectionpolicy::AutoProtectionPolicy->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/backupdr/v1beta/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::V1beta::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

Enum: AutoProtectionPolicy::State

  • STATE_UNSPECIFIED => 0

  • CREATING => 1

  • ACTIVE => 2

  • UPDATING => 3

  • DELETING => 4

Google::Cloud::Backupdr::V1beta::Autoprotectionpolicy::BackupPlanDetail

BackupPlanDetail defines configuration of protection.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The type of resource that this policy will automatically protect. For MVP, `compute.googleapis.com/Instance` and `compute.googleapis.com/Disk` are supported.

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

    Type: String

    Required. 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::V1beta::Autoprotectionpolicy::Criteria

Criteria specifies a set of criteria for matching resources.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Backupdr::V1beta::Autoprotectionpolicy::MatchingCondition

MatchingCondition specifies a set of conditions for matching resources.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Backupdr::V1beta::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: Int64

    Output only. The number of resources that currently match the policy's criteria.

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

    Type: Int64

    Output only. The number of matching resources that are successfully protected.

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

    Type: Int64

    Output only. The number of matching resources whose protection failed during job run.

Google::Cloud::Backupdr::V1beta::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: Int64

    Output only. Total count of Projects protected with this policy.

Google::Cloud::Backupdr::V1beta::Autoprotectionpolicy::KeyValuePair

KeyValuePair defines a key-value pair for matching resource labels.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. 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: String

    Required. 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::V1beta::Autoprotectionpolicy::CreateAutoProtectionPolicyRequest

Request message for creating an AutoProtectionPolicy.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. 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: String

    Required. 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::V1beta::Autoprotectionpolicy::AutoProtectionPolicy)

    Required. The AutoProtectionPolicy resource to create.

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

    Type: String

    Optional. 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::V1beta::Autoprotectionpolicy::GetAutoProtectionPolicyRequest

Request message for getting an AutoProtectionPolicy.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the policy to retrieve. Format: projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}

Google::Cloud::Backupdr::V1beta::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::V1beta::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: String

    Optional. 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::V1beta::Autoprotectionpolicy::DeleteAutoProtectionPolicyRequest

Request message for deleting an AutoProtectionPolicy.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the policy to delete. Format: projects/{project}/locations/{location}/autoProtectionPolicies/{auto_protection_policy}

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

    Type: String

    Optional. The current etag of the AutoProtectionPolicy. If an etag is provided and does not match the current etag of the connection, the request will be rejected with an ABORTED error.

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

    Type: String

    Optional. 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::V1beta::Autoprotectionpolicy::ListAutoProtectionPoliciesRequest

Request message for ListAutoProtectionPolicies.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. 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: Int32

    Optional. 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: String

    Optional. A page token, received from a previous `ListAutoProtectionPolicies` call. Provide this to retrieve the subsequent page.

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

    Type: String

    Optional. A filter expression that filters resources listed in the response. The following fields are filterable:

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

    Type: String

    Optional. An expression that sorts the results in the response. The following fields are sortable:

Google::Cloud::Backupdr::V1beta::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::V1beta::Autoprotectionpolicy::AutoProtectionPolicy)

    A list of the AutoProtectionPolicy resources found.

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

    Type: String

    A 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: String

    Unordered list. Locations that could not be reached.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Backupdr::V1beta::Autoprotectionpolicy::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.