NAME
Google::Cloud::Backupdr::V1::Backupplanassociation - Compiled Protocol Buffers messages for google/cloud/backupdr/v1/backupplanassociation.proto
SYNOPSIS
use Google::Cloud::Backupdr::V1::Backupplanassociation;
my $msg = Google::Cloud::Backupdr::V1::Backupplanassociation::BackupPlanAssociation->new({
name => $name,
resource_type => $resource_type,
resource => $resource,
backup_plan => $backup_plan,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Backupdr::V1::Backupplanassociation::BackupPlanAssociation->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/backupdr/v1/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::V1::Backupplanassociation::BackupPlanAssociation
A BackupPlanAssociation represents a single BackupPlanAssociation which contains details like workload, backup plan etc
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOutput 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:
StringRequired. Immutable. Resource type of workload on which backupplan is applied
$msg->resource()/$msg->resource($value)Type:
StringRequired. 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:
StringRequired. 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::V1::BackupPlanAssociation::State)Output only. The BackupPlanAssociation resource state.
$msg->rules_config_info()/$msg->rules_config_info($value)Type:
Message(Google::Cloud::Backupdr::V1::Backupplanassociation::RuleConfigInfo)Output only. The config info related to backup rules.
$msg->data_source()/$msg->data_source($value)Type:
StringOutput 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->cloud_sql_instance_backup_plan_association_properties()/$msg->cloud_sql_instance_backup_plan_association_properties($value)Type:
Message(Google::Cloud::Backupdr::V1::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::V1::BackupvaultAlloydb::AlloyDBClusterBackupPlanAssociationProperties)Output only. AlloyDB cluster's backup plan association properties.
$msg->backup_plan_revision_id()/$msg->backup_plan_revision_id($value)Type:
StringOutput 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:
StringOutput 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:
StringOutput 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=>0CREATING=>1ACTIVE=>2DELETING=>3INACTIVE=>4UPDATING=>5
Google::Cloud::Backupdr::V1::Backupplanassociation::RuleConfigInfo
Message for rules config info.
Inherits from Protobuf::Message.
Accessors
$msg->rule_id()/$msg->rule_id($value)Type:
StringOutput only. Backup Rule id fetched from backup plan.
$msg->last_backup_state()/$msg->last_backup_state($value)Type:
Enum(Google::Cloud::Backupdr::V1::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=>0FIRST_BACKUP_PENDING=>1PERMISSION_DENIED=>2SUCCEEDED=>3FAILED=>4
Google::Cloud::Backupdr::V1::Backupplanassociation::CreateBackupPlanAssociationRequest
Request message for creating a backup plan.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The backup plan association project and location in the format `projects/{project_id}/locations/{location}`. In Cloud BackupDR locations map to GCP regions, for example us-central1.
$msg->backup_plan_association_id()/$msg->backup_plan_association_id($value)Type:
StringRequired. 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::V1::Backupplanassociation::BackupPlanAssociation)Required. The resource being created
$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.
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::V1::Backupplanassociation::ListBackupPlanAssociationsRequest
Request message for List BackupPlanAssociation
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The project and location for which to retrieve backup Plan Associations information, in the format `projects/{project_id}/locations/{location}`. In Cloud BackupDR, locations map to GCP 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:
Int32Optional. 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:
StringOptional. A token identifying a page of results the server should return.
$msg->filter()/$msg->filter($value)Type:
StringOptional. Filtering results
Google::Cloud::Backupdr::V1::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::V1::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:
StringA token identifying a page of results the server should return.
$msg->unreachable()/$msg->unreachable($value)Type:
StringLocations that could not be reached.
Google::Cloud::Backupdr::V1::Backupplanassociation::FetchBackupPlanAssociationsForResourceTypeRequest
Request for the FetchBackupPlanAssociationsForResourceType method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource name. Format: projects/{project}/locations/{location}
$msg->resource_type()/$msg->resource_type($value)Type:
StringRequired. The type of the GCP resource. Ex: sql.googleapis.com/Instance
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. 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:
StringOptional. 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:
StringOptional. 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:
StringOptional. 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::V1::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::V1::Backupplanassociation::BackupPlanAssociation)Output only. The BackupPlanAssociations from the specified parent.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringOutput 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::V1::Backupplanassociation::GetBackupPlanAssociationRequest
Request message for getting a BackupPlanAssociation resource.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Name of the backup plan association resource, in the format `projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}`
Google::Cloud::Backupdr::V1::Backupplanassociation::DeleteBackupPlanAssociationRequest
Request message for deleting a backup plan association.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Name of the backup plan association resource, in the format `projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}`
$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 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:
StringOptional. 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::V1::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::V1::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:
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.
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::V1::Backupplanassociation::TriggerBackupRequest
Request message for triggering a backup.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. Name of the backup plan association resource, in the format `projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}`
$msg->rule_id()/$msg->rule_id($value)Type:
StringRequired. backup rule_id for which a backup needs to be triggered.
$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 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).
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Backupdr::V1::Backupplanassociation::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.