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 \ V1Methods
__construct
Constructor.
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
Required. Immutable. Resource type of workload on which backupplan is applied
↳ resource
string
Required. 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 ").
↳ 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
↳ update_time
↳ state
int
Output only. The BackupPlanAssociation resource state.
↳ rules_config_info
↳ data_source
string
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}
↳ cloud_sql_instance_backup_plan_association_properties
CloudSqlInstanceBackupPlanAssociationProperties
Output only. Cloud SQL instance's backup plan association properties.
↳ backup_plan_revision_id
string
Output only. The user friendly revision ID of the BackupPlanRevision
. Example: v0, v1, v2, etc.
↳ backup_plan_revision_name
string
Output only. The resource id of the BackupPlanRevision
. Format: projects/{project}/locations/{location}/backupPlans/{backup_plan}/revisions/{revision_id}
getName
Output only. Identifier. The resource name of BackupPlanAssociation in below format Format : projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}
string
setName
Output only. Identifier. The resource name of BackupPlanAssociation in below format Format : projects/{project}/locations/{location}/backupPlanAssociations/{backupPlanAssociationId}
var
string
$this
getResourceType
Required. Immutable. Resource type of workload on which backupplan is applied
string
setResourceType
Required. Immutable. Resource type of workload on which backupplan is applied
var
string
$this
getResource
Required. 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 ").
string
setResource
Required. 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 ").
var
string
$this
getBackupPlan
Required. Resource name of backup plan which needs to be applied on workload. Format: projects/{project}/locations/{location}/backupPlans/{backupPlanId}
string
setBackupPlan
Required. Resource name of backup plan which needs to be applied on workload. Format: projects/{project}/locations/{location}/backupPlans/{backupPlanId}
var
string
$this
getCreateTime
Output only. The time when the instance was created.
hasCreateTime
clearCreateTime
setCreateTime
Output only. The time when the instance was created.
$this
getUpdateTime
Output only. The time when the instance was updated.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. The time when the instance was updated.
$this
getState
Output only. The BackupPlanAssociation resource state.
int
setState
Output only. The BackupPlanAssociation resource state.
var
int
Enum of type State .
$this
getRulesConfigInfo
Output only. The config info related to backup rules.
setRulesConfigInfo
Output only. The config info related to backup rules.
$this
getDataSource
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}
string
setDataSource
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}
var
string
$this
getCloudSqlInstanceBackupPlanAssociationProperties
Output only. Cloud SQL instance's backup plan association properties.
hasCloudSqlInstanceBackupPlanAssociationProperties
setCloudSqlInstanceBackupPlanAssociationProperties
Output only. Cloud SQL instance's backup plan association properties.
$this
getBackupPlanRevisionId
Output only. The user friendly revision ID of the BackupPlanRevision
.
Example: v0, v1, v2, etc.
string
setBackupPlanRevisionId
Output only. The user friendly revision ID of the BackupPlanRevision
.
Example: v0, v1, v2, etc.
var
string
$this
getBackupPlanRevisionName
Output only. The resource id of the BackupPlanRevision
.
Format: projects/{project}/locations/{location}/backupPlans/{backup_plan}/revisions/{revision_id}
string
setBackupPlanRevisionName
Output only. The resource id of the BackupPlanRevision
.
Format: projects/{project}/locations/{location}/backupPlans/{backup_plan}/revisions/{revision_id}
var
string
$this
getResourceProperties
string