Google Cloud Backup Dr V1beta Client - Class BackupPlanDetail (0.15.1)

Reference documentation and code samples for the Google Cloud Backup Dr V1beta Client class BackupPlanDetail.

BackupPlanDetail defines configuration of protection.

Generated from protobuf message google.cloud.backupdr.v1beta.BackupPlanDetail

Namespace

Google \ Cloud \ BackupDR \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ resource_type string

Required. The type of resource that this policy will automatically protect. For MVP, compute.googleapis.com/Instance and compute.googleapis.com/Disk are supported.

↳ backup_plan string

Required. The resource name of the BackupPlan to apply to resources that match the policy's criteria. This backup plan must be in the same location as AutoProtectionPolicy. Format: projects/{project}/locations/{location}/backupPlans/{backupPlanId}

getResourceType

Required. The type of resource that this policy will automatically protect.

For MVP, compute.googleapis.com/Instance and compute.googleapis.com/Disk are supported.

Returns
Type Description
string

setResourceType

Required. The type of resource that this policy will automatically protect.

For MVP, compute.googleapis.com/Instance and compute.googleapis.com/Disk are supported.

Parameter
Name Description
var string
Returns
Type Description
$this

getBackupPlan

Required. The resource name of the BackupPlan to apply to resources that match the policy's criteria. This backup plan must be in the same location as AutoProtectionPolicy. Format: projects/{project}/locations/{location}/backupPlans/{backupPlanId}

Returns
Type Description
string

setBackupPlan

Required. The resource name of the BackupPlan to apply to resources that match the policy's criteria. This backup plan must be in the same location as AutoProtectionPolicy. Format: projects/{project}/locations/{location}/backupPlans/{backupPlanId}

Parameter
Name Description
var string
Returns
Type Description
$this