NAME
Google::Cloud::Backupdr::V1beta::Datasourcereference - Compiled Protocol Buffers messages for google/cloud/backupdr/v1beta/datasourcereference.proto
SYNOPSIS
use Google::Cloud::Backupdr::V1beta::Datasourcereference;
my $msg = Google::Cloud::Backupdr::V1beta::Datasourcereference::DataSourceReference->new({
name => $name,
data_source => $data_source,
create_time => $create_time,
data_source_backup_config_state => $data_source_backup_config_state,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Backupdr::V1beta::Datasourcereference::DataSourceReference->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/backupdr/v1beta/datasourcereference.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::Datasourcereference::DataSourceReference
DataSourceReference is a reference to a DataSource resource.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringIdentifier. The resource name of the DataSourceReference. Format: projects/{project}/locations/{location}/dataSourceReferences/{data_source_reference}
$msg->data_source()/$msg->data_source($value)Type:
StringOutput only. The resource name of the DataSource. Format: projects/{project}/locations/{location}/backupVaults/{backupVault}/dataSources/{dataSource}
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time when the DataSourceReference was created.
$msg->data_source_backup_config_state()/$msg->data_source_backup_config_state($value)Type:
Enum(Google::Cloud::Backupdr::V1beta::BackupConfigState)Output only. The backup configuration state of the DataSource.
$msg->data_source_backup_count()/$msg->data_source_backup_count($value)Type:
Int64Output only. Number of backups in the DataSource.
$msg->data_source_backup_config_info()/$msg->data_source_backup_config_info($value)Type:
Message(Google::Cloud::Backupdr::V1beta::Datasourcereference::DataSourceBackupConfigInfo)Output only. Information of backup configuration on the DataSource.
$msg->data_source_gcp_resource_info()/$msg->data_source_gcp_resource_info($value)Type:
Message(Google::Cloud::Backupdr::V1beta::Datasourcereference::DataSourceGcpResourceInfo)Output only. The Google Cloud resource that the DataSource is associated with.
$msg->total_stored_bytes()/$msg->total_stored_bytes($value)Type:
Int64Output only. Total size of the storage used by all backup resources for the referenced datasource.
Google::Cloud::Backupdr::V1beta::Datasourcereference::DataSourceBackupConfigInfo
Information of backup configuration on the DataSource.
Inherits from Protobuf::Message.
Accessors
$msg->last_backup_state()/$msg->last_backup_state($value)Type:
Enum(Google::Cloud::Backupdr::V1beta::BackupConfigInfo::LastBackupState)Output only. The status of the last backup in this DataSource
$msg->last_successful_backup_consistency_time()/$msg->last_successful_backup_consistency_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Timestamp of the last successful backup to this DataSource.
Google::Cloud::Backupdr::V1beta::Datasourcereference::DataSourceGcpResourceInfo
The Google Cloud resource that the DataSource is associated with.
Inherits from Protobuf::Message.
Accessors
$msg->cloud_sql_instance_properties()/$msg->cloud_sql_instance_properties($value)Type:
Message(Google::Cloud::Backupdr::V1beta::BackupvaultCloudsql::CloudSqlInstanceDataSourceReferenceProperties)Output only. The properties of the Cloud SQL instance.
$msg->alloy_db_cluster_properties()/$msg->alloy_db_cluster_properties($value)Type:
Message(Google::Cloud::Backupdr::V1beta::BackupvaultAlloydb::AlloyDBClusterDataSourceReferenceProperties)Output only. The properties of the AlloyDB cluster.
$msg->gcp_resourcename()/$msg->gcp_resourcename($value)Type:
StringOutput only. The resource name of the Google Cloud resource. Ex: projects/{project}/zones/{zone}/instances/{instance}
$msg->type()/$msg->type($value)Type:
StringOutput only. The type of the Google Cloud resource. Ex: compute.googleapis.com/Instance
$msg->location()/$msg->location($value)Type:
StringOutput only. The location of the Google Cloud resource. Ex: <region>/<zone>/"global"/"unspecified"
Google::Cloud::Backupdr::V1beta::Datasourcereference::GetDataSourceReferenceRequest
Request for the GetDataSourceReference method.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the DataSourceReference to retrieve. Format: projects/{project}/locations/{location}/dataSourceReferences/{data_source_reference}
Google::Cloud::Backupdr::V1beta::Datasourcereference::ListDataSourceReferencesRequest
Request for the ListDataSourceReferences method.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource name. Format: projects/{project}/locations/{location}
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. The maximum number of DataSourceReferences to return. The service may return fewer than this value. If unspecified, at most 50 DataSourceReferences 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 `ListDataSourceReferences` call. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to `ListDataSourceReferences` must match the call that provided the page token.
$msg->filter()/$msg->filter($value)Type:
StringOptional. A filter expression that filters the results listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering.
The following field and operator combinations are supported:
* data_source_gcp_resource_info.gcp_resourcename with `=`, `!=` * data_source_gcp_resource_info.type with `=`, `!=`
$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:
* data_source * data_source_gcp_resource_info.gcp_resourcename
Google::Cloud::Backupdr::V1beta::Datasourcereference::ListDataSourceReferencesResponse
Response for the ListDataSourceReferences method.
Inherits from Protobuf::Message.
Accessors
$msg->data_source_references()/$msg->data_source_references($value)Type:
Message(Google::Cloud::Backupdr::V1beta::Datasourcereference::DataSourceReference)The DataSourceReferences from the specified parent.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token, which 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:
StringLocations that could not be reached.
Google::Cloud::Backupdr::V1beta::Datasourcereference::FetchDataSourceReferencesForResourceTypeRequest
Request for the FetchDataSourceReferencesForResourceType 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 Google Cloud resource. Ex: sql.googleapis.com/Instance
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. The maximum number of DataSourceReferences to return. The service may return fewer than this value. If unspecified, at most 50 DataSourceReferences 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 `FetchDataSourceReferencesForResourceType`. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to `FetchDataSourceReferencesForResourceType` 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: * data_source * data_source_gcp_resource_info.gcp_resourcename * data_source_backup_config_state * data_source_backup_count * data_source_backup_config_info.last_backup_state * data_source_gcp_resource_info.gcp_resourcename * data_source_gcp_resource_info.type * data_source_gcp_resource_info.location * data_source_gcp_resource_info.cloud_sql_instance_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::V1beta::Datasourcereference::FetchDataSourceReferencesForResourceTypeResponse
Response for the FetchDataSourceReferencesForResourceType method.
Inherits from Protobuf::Message.
Accessors
$msg->data_source_references()/$msg->data_source_references($value)Type:
Message(Google::Cloud::Backupdr::V1beta::Datasourcereference::DataSourceReference)The DataSourceReferences from the specified parent.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Backupdr::V1beta::Datasourcereference::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.