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

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

Request message for creating an AutoProtectionPolicy.

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

Namespace

Google \ Cloud \ BackupDR \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The parent resource where this policy will be created. Format: projects/{project}/locations/{location}

↳ auto_protection_policy_id string

Required. The ID to use for the policy. This will become the final component of the policy's resource name.

↳ auto_protection_policy AutoProtectionPolicy

Required. The AutoProtectionPolicy resource to create.

getParent

Required. The parent resource where this policy will be created.

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

Returns
Type Description
string

setParent

Required. The parent resource where this policy will be created.

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

Parameter
Name Description
var string
Returns
Type Description
$this

getAutoProtectionPolicyId

Required. The ID to use for the policy.

This will become the final component of the policy's resource name.

Returns
Type Description
string

setAutoProtectionPolicyId

Required. The ID to use for the policy.

This will become the final component of the policy's resource name.

Parameter
Name Description
var string
Returns
Type Description
$this

getAutoProtectionPolicy

Required. The AutoProtectionPolicy resource to create.

Returns
Type Description
AutoProtectionPolicy|null

hasAutoProtectionPolicy

clearAutoProtectionPolicy

setAutoProtectionPolicy

Required. The AutoProtectionPolicy resource to create.

Parameter
Name Description
var AutoProtectionPolicy
Returns
Type Description
$this

static::build

Parameters
Name Description
parent string

Required. The parent resource where this policy will be created. Format: projects/{project}/locations/{location} Please see BackupDRClient::locationName() for help formatting this field.

autoProtectionPolicy AutoProtectionPolicy

Required. The AutoProtectionPolicy resource to create.

autoProtectionPolicyId string

Required. The ID to use for the policy. This will become the final component of the policy's resource name.

Returns
Type Description
CreateAutoProtectionPolicyRequest