NAME

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

SYNOPSIS

use Google::Cloud::Backupdr::V1beta::Backupplanassociation;

my $msg = Google::Cloud::Backupdr::V1beta::Backupplanassociation::BackupPlanAssociation->new({
    cloud_sql_instance_backup_plan_association_properties => $cloud_sql_instance_backup_plan_association_properties,
    alloydb_cluster_backup_plan_association_properties => $alloydb_cluster_backup_plan_association_properties,
    name => $name,
    resource_type => $resource_type,
});

# Read or update a field
my $val = $msg->cloud_sql_instance_backup_plan_association_properties();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Backupdr::V1beta::Backupplanassociation::BackupPlanAssociation->parse($bytes);

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

DESCRIPTION

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

A BackupPlanAssociation represents a single BackupPlanAssociation which contains details like workload, backup plan etc

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Backupdr::V1beta::BackupvaultCloudsql::CloudSqlInstanceBackupPlanAssociationProperties)

    Output only. Cloud SQL instance's backup plan association properties.

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

    Type: Message (Google::Cloud::Backupdr::V1beta::BackupvaultAlloydb::AlloyDBClusterBackupPlanAssociationProperties)

    Output only. AlloyDB cluster's backup plan association properties.

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

    Type: String

    Output only. Identifier. The resource name of BackupPlanAssociation in below format Format : projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}

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

    Type: String

    Required. Immutable. Resource type of workload on which backupplan is applied

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

    Type: String

    Required. Immutable. Resource name of workload on which the backup plan is applied.

    The format can either be the resource name (e.g., "projects/my-project/zones/us-central1-a/instances/my-instance") or the full resource URI (e.g., "https://www.googleapis.com/compute/v1/projects/my-project/zones/us-central1-a/instances/my-instance").

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

    Type: String

    Required. Resource name of backup plan which needs to be applied on workload. Format: projects/{project}/locations/{location}/backupPlans/{backupPlanId}

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time when the instance was created.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The time when the instance was updated.

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

    Type: Enum (Google::Cloud::Backupdr::V1beta::BackupPlanAssociation::State)

    Output only. The BackupPlanAssociation resource state.

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

    Type: Message (Google::Cloud::Backupdr::V1beta::Backupplanassociation::RuleConfigInfo)

    Output only. The config info related to backup rules.

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

    Type: String

    Output only. Resource name of data source which will be used as storage location for backups taken. Format : projects/{project}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}

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

    Type: String

    Output only. The user friendly revision ID of the `BackupPlanRevision`.

    Example: v0, v1, v2, etc.

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

    Type: String

    Output only. The resource id of the `BackupPlanRevision`.

    Format: `projects/{project}/locations/{location}/backupPlans/{backup_plan}/revisions/{revision_id}`

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

    Type: String

    Output only. The resource name of the `AutoProtectionPolicyBinding` that manages this association, if any. Format: `projects/{project}/locations/{location}/autoProtectionPolicies/{policy}/bindings/{binding}`.

Enum: BackupPlanAssociation::State

  • STATE_UNSPECIFIED => 0

  • CREATING => 1

  • ACTIVE => 2

  • DELETING => 3

  • INACTIVE => 4

  • UPDATING => 5

  • PAUSED => 6

Google::Cloud::Backupdr::V1beta::Backupplanassociation::RuleConfigInfo

Message for rules config info.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Output only. Backup Rule id fetched from backup plan.

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

    Type: Enum (Google::Cloud::Backupdr::V1beta::RuleConfigInfo::LastBackupState)

    Output only. The last backup state for rule.

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

    Type: Message (Google::Rpc::Status::Status)

    Output only. google.rpc.Status object to store the last backup error.

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

    Type: Message (Google::Protobuf::Timestamp::Timestamp)

    Output only. The point in time when the last successful backup was captured from the source.

Enum: RuleConfigInfo::LastBackupState

  • LAST_BACKUP_STATE_UNSPECIFIED => 0

  • FIRST_BACKUP_PENDING => 1

  • PERMISSION_DENIED => 2

  • SUCCEEDED => 3

  • FAILED => 4

Google::Cloud::Backupdr::V1beta::Backupplanassociation::CreateBackupPlanAssociationRequest

Request message for creating a backup plan.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The backup plan association project and location in the format `projects/{project_id}/locations/{location}`. In Backup and DR locations map to Google Cloud regions, for example us-central1.

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

    Type: String

    Required. The name of the backup plan association to create. The name must be unique for the specified project and location.

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

    Type: Message (Google::Cloud::Backupdr::V1beta::Backupplanassociation::BackupPlanAssociation)

    Required. The resource being created

  • $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.

    For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    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::Backupplanassociation::ListBackupPlanAssociationsRequest

Request message for List BackupPlanAssociation

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The project and location for which to retrieve backup Plan Associations information, in the format `projects/{project_id}/locations/{location}`. In Backup and DR, locations map to Google Cloud regions, for example us-central1. To retrieve backup plan associations for all locations, use "-" for the `{location}` value.

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

    Type: Int32

    Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.

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

    Type: String

    Optional. A token identifying a page of results the server should return.

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

    Type: String

    Optional. Filtering results

Google::Cloud::Backupdr::V1beta::Backupplanassociation::ListBackupPlanAssociationsResponse

Response message for List BackupPlanAssociation

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Backupdr::V1beta::Backupplanassociation::BackupPlanAssociation)

    The list of Backup Plan Associations in the project for the specified location.

    If the `{location}` value in the request is "-", the response contains a list of instances from all locations. In case any location is unreachable, the response will only return backup plan associations in reachable locations and the 'unreachable' field will be populated with a list of unreachable locations.

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

    Type: String

    A token identifying a page of results the server should return.

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

    Type: String

    Locations that could not be reached.

Google::Cloud::Backupdr::V1beta::Backupplanassociation::FetchBackupPlanAssociationsForResourceTypeRequest

Request for the FetchBackupPlanAssociationsForResourceType method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The parent resource name. Format: projects/{project}/locations/{location}

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

    Type: String

    Required. The type of the Google Cloud resource. Ex: sql.googleapis.com/Instance

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

    Type: Int32

    Optional. The maximum number of BackupPlanAssociations to return. The service may return fewer than this value. If unspecified, at most 50 BackupPlanAssociations will be returned. The maximum value is 100; values above 100 will be coerced to 100.

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

    Type: String

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

    When paginating, all other parameters provided to `FetchBackupPlanAssociationsForResourceType` must match the call that provided the page token.

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

    Type: String

    Optional. A filter expression that filters the results fetched in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. Supported fields: * resource * backup_plan * state * data_source * cloud_sql_instance_backup_plan_association_properties.instance_create_time

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

    Type: String

    Optional. A comma-separated list of fields to order by, sorted in ascending order. Use "desc" after a field name for descending.

    Supported fields: * name

Google::Cloud::Backupdr::V1beta::Backupplanassociation::FetchBackupPlanAssociationsForResourceTypeResponse

Response for the FetchBackupPlanAssociationsForResourceType method.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Backupdr::V1beta::Backupplanassociation::BackupPlanAssociation)

    Output only. The BackupPlanAssociations from the specified parent.

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

    Type: String

    Output only. A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.

Google::Cloud::Backupdr::V1beta::Backupplanassociation::GetBackupPlanAssociationRequest

Request message for getting a BackupPlanAssociation resource.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Name of the backup plan association resource, in the format `projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}`

Google::Cloud::Backupdr::V1beta::Backupplanassociation::DeleteBackupPlanAssociationRequest

Request message for deleting a backup plan association.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Name of the backup plan association resource, in the format `projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}`

  • $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 after the first request.

    For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

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

    Type: String

    Optional. This field is exclusively used by Backup and DR's auto-protection feature. The resource name of the `AutoProtectionPolicyBinding` that triggered the deletion of this association. Format: `projects/{project}/locations/{location}/autoProtectionPolicies/{policy}/bindings/{binding}`.

Google::Cloud::Backupdr::V1beta::Backupplanassociation::UpdateBackupPlanAssociationRequest

Request message for updating a backup plan association.

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Backupdr::V1beta::Backupplanassociation::BackupPlanAssociation)

    Required. The resource being updated

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

    Type: Message (Google::Protobuf::FieldMask::FieldMask)

    Required. The list of fields to update. Field mask is used to specify the fields to be overwritten in the BackupPlanAssociation 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 the request will fail. Currently backup_plan_association.backup_plan is the only supported field.

  • $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.

    For example, consider a situation where you make an initial request and t he request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    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::Backupplanassociation::TriggerBackupRequest

Request message for triggering a backup.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. Name of the backup plan association resource, in the format `projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}`

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

    Type: String

    Optional. backup rule_id for which a backup needs to be triggered. If not specified, on-demand backup with custom retention will be triggered.

  • $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 after the first request.

    For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.

    The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

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

    Type: Int32

    Optional. The duration for which backup data will be kept, while taking an on-demand backup with custom retention. It is defined in "days". It is mutually exclusive with rule_id. This field is required if rule_id is not provided.

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

    Type: Message (Google::Cloud::Backupdr::V1beta::Backupplanassociation::TriggerBackupRequest::LabelsEntry)

    Optional. Labels to be applied on the backup.

SEE ALSO

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

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.