Google Cloud Backup Dr V1 Client - Class BackupPlanAssociation (0.4.2)

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

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

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

Namespace

Google \ Cloud \ BackupDR \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ name string

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

↳ resource_type string

Optional. Resource type of workload on which backupplan is applied

↳ resource string

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

↳ backup_plan string

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

↳ create_time Google\Protobuf\Timestamp

Output only. The time when the instance was created.

↳ update_time Google\Protobuf\Timestamp

Output only. The time when the instance was updated.

↳ state int

Output only. The BackupPlanAssociation resource state.

↳ rules_config_info array<RuleConfigInfo>

Output only. The config info related to backup rules.

↳ data_source string

Output only. 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}

getName

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

Returns
Type Description
string

setName

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

Parameter
Name Description
var string
Returns
Type Description
$this

getResourceType

Optional. Resource type of workload on which backupplan is applied

Returns
Type Description
string

setResourceType

Optional. Resource type of workload on which backupplan is applied

Parameter
Name Description
var string
Returns
Type Description
$this

getResource

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

Returns
Type Description
string

setResource

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

Parameter
Name Description
var string
Returns
Type Description
$this

getBackupPlan

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

Returns
Type Description
string

setBackupPlan

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

Parameter
Name Description
var string
Returns
Type Description
$this

getCreateTime

Output only. The time when the instance was created.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The time when the instance was created.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getUpdateTime

Output only. The time when the instance was updated.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. The time when the instance was updated.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getState

Output only. The BackupPlanAssociation resource state.

Returns
Type Description
int

setState

Output only. The BackupPlanAssociation resource state.

Parameter
Name Description
var int
Returns
Type Description
$this

getRulesConfigInfo

Output only. The config info related to backup rules.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setRulesConfigInfo

Output only. The config info related to backup rules.

Parameter
Name Description
var array<RuleConfigInfo>
Returns
Type Description
$this

getDataSource

Output only. 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}

Returns
Type Description
string

setDataSource

Output only. 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}

Parameter
Name Description
var string
Returns
Type Description
$this