NAME

Google::Cloud::Backupdr::V1::Datasourcereference - Compiled Protocol Buffers messages for google/cloud/backupdr/v1/datasourcereference.proto

SYNOPSIS

use Google::Cloud::Backupdr::V1::Datasourcereference;

my $msg = Google::Cloud::Backupdr::V1::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::V1::Datasourcereference::DataSourceReference->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/backupdr/v1/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::V1::Datasourcereference::DataSourceReference

DataSourceReference is a reference to a DataSource resource.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Identifier. The resource name of the DataSourceReference. Format: projects/{project}/locations/{location}/dataSourceReferences/{data_source_reference}

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

    Type: String

    Output 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::V1::BackupConfigState)

    Output only. The backup configuration state of the DataSource.

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

    Type: Int64

    Output 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::V1::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::V1::Datasourcereference::DataSourceGcpResourceInfo)

    Output only. The GCP resource that the DataSource is associated with.

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

    Type: Int64

    Output only. Total size of the storage used by all backup resources for the referenced datasource.

Google::Cloud::Backupdr::V1::Datasourcereference::DataSourceBackupConfigInfo

Information of backup configuration on the DataSource.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Backupdr::V1::Datasourcereference::DataSourceGcpResourceInfo

The GCP resource that the DataSource is associated with.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Output only. The resource name of the GCP resource. Ex: projects/{project}/zones/{zone}/instances/{instance}

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

    Type: String

    Output only. The type of the GCP resource. Ex: compute.googleapis.com/Instance

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

    Type: String

    Output only. The location of the GCP resource. Ex: <region>/<zone>/"global"/"unspecified"

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

    Type: Message (Google::Cloud::Backupdr::V1::BackupvaultCloudsql::CloudSqlInstanceDataSourceReferenceProperties)

    Output only. The properties of the Cloud SQL instance.

Google::Cloud::Backupdr::V1::Datasourcereference::GetDataSourceReferenceRequest

Request for the GetDataSourceReference method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The name of the DataSourceReference to retrieve. Format: projects/{project}/locations/{location}/dataSourceReferences/{data_source_reference}

Google::Cloud::Backupdr::V1::Datasourcereference::ListDataSourceReferencesRequest

Request for the ListDataSourceReferences method.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

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

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

    Type: Int32

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

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

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

    * data_source * data_source_gcp_resource_info.gcp_resourcename

Google::Cloud::Backupdr::V1::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::V1::Datasourcereference::DataSourceReference)

    The DataSourceReferences from the specified parent.

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

    Type: String

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

    Locations that could not be reached.

Google::Cloud::Backupdr::V1::Datasourcereference::FetchDataSourceReferencesForResourceTypeRequest

Request for the FetchDataSourceReferencesForResourceType 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 GCP resource. Ex: sql.googleapis.com/Instance

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

    Type: Int32

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

    Optional. 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: 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: * 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: 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::V1::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::V1::Datasourcereference::DataSourceReference)

    The DataSourceReferences from the specified parent.

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

    Type: String

    A 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::V1::Datasourcereference::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.