Google Cloud Backup Dr V1 Client - Class FetchBackupPlanAssociationsForResourceTypeRequest (0.7.0)

Reference documentation and code samples for the Google Cloud Backup Dr V1 Client class FetchBackupPlanAssociationsForResourceTypeRequest.

Request for the FetchBackupPlanAssociationsForResourceType method.

Generated from protobuf message google.cloud.backupdr.v1.FetchBackupPlanAssociationsForResourceTypeRequest

Namespace

Google \ Cloud \ BackupDR \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ parent string

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

↳ resource_type string

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

↳ page_size int

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.

↳ page_token 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.

↳ filter 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

↳ order_by 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

getParent

Required. The parent resource name.

Format: projects/{project}/locations/{___location}

Returns
Type Description
string

setParent

Required. The parent resource name.

Format: projects/{project}/locations/{___location}

Parameter
Name Description
var string
Returns
Type Description
$this

getResourceType

Required. The type of the GCP resource.

Ex: sql.googleapis.com/Instance

Returns
Type Description
string

setResourceType

Required. The type of the GCP resource.

Ex: sql.googleapis.com/Instance

Parameter
Name Description
var string
Returns
Type Description
$this

getPageSize

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.

Returns
Type Description
int

setPageSize

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.

Parameter
Name Description
var int
Returns
Type Description
$this

getPageToken

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.

Returns
Type Description
string

setPageToken

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.

Parameter
Name Description
var string
Returns
Type Description
$this

getFilter

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
Returns
Type Description
string

setFilter

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
Parameter
Name Description
var string
Returns
Type Description
$this

getOrderBy

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
Returns
Type Description
string

setOrderBy

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
Parameter
Name Description
var string
Returns
Type Description
$this

static::build

Parameters
Name Description
parent string

Required. The parent resource name. Format: projects/{project}/locations/{___location} Please see BackupDRClient::locationName() for help formatting this field.

resourceType string

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

Returns
Type Description
FetchBackupPlanAssociationsForResourceTypeRequest