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.
| 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
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 |
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. 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 |
↳ backup_plan_revision_name |
string
Output only. The resource id of the |
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
Required. Immutable. Resource type of workload on which backupplan is applied
| Returns | |
|---|---|
| Type | Description |
string |
|
setResourceType
Required. Immutable. 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 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").
| Returns | |
|---|---|
| Type | Description |
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").
| 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 |
Enum of type State. |
setState
Output only. The BackupPlanAssociation resource state.
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type State. |
| 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. 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. 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 |
|
getCloudSqlInstanceBackupPlanAssociationProperties
Output only. Cloud SQL instance's backup plan association properties.
| Returns | |
|---|---|
| Type | Description |
CloudSqlInstanceBackupPlanAssociationProperties|null |
|
hasCloudSqlInstanceBackupPlanAssociationProperties
setCloudSqlInstanceBackupPlanAssociationProperties
Output only. Cloud SQL instance's backup plan association properties.
| Parameter | |
|---|---|
| Name | Description |
var |
CloudSqlInstanceBackupPlanAssociationProperties
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getBackupPlanRevisionId
Output only. The user friendly revision ID of the BackupPlanRevision.
Example: v0, v1, v2, etc.
| Returns | |
|---|---|
| Type | Description |
string |
|
setBackupPlanRevisionId
Output only. The user friendly revision ID of the BackupPlanRevision.
Example: v0, v1, v2, etc.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getBackupPlanRevisionName
Output only. The resource id of the BackupPlanRevision.
Format:
projects/{project}/locations/{location}/backupPlans/{backup_plan}/revisions/{revision_id}
| Returns | |
|---|---|
| Type | Description |
string |
|
setBackupPlanRevisionName
Output only. The resource id of the BackupPlanRevision.
Format:
projects/{project}/locations/{location}/backupPlans/{backup_plan}/revisions/{revision_id}
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getResourceProperties
| Returns | |
|---|---|
| Type | Description |
string |
|