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

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

Request message for updating an AutoProtectionPolicy.

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

Namespace

Google \ Cloud \ BackupDR \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ auto_protection_policy AutoProtectionPolicy

Required. The policy to update.

↳ update_mask Google\Protobuf\FieldMask

Required. Field mask is used to specify the fields to be overwritten in the AutoProtectionPolicy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

getAutoProtectionPolicy

Required. The policy to update.

Returns
Type Description
AutoProtectionPolicy|null

hasAutoProtectionPolicy

clearAutoProtectionPolicy

setAutoProtectionPolicy

Required. The policy to update.

Parameter
Name Description
var AutoProtectionPolicy
Returns
Type Description
$this

getUpdateMask

Required. Field mask is used to specify the fields to be overwritten in the AutoProtectionPolicy resource by the update.

The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

Returns
Type Description
Google\Protobuf\FieldMask|null

hasUpdateMask

clearUpdateMask

setUpdateMask

Required. Field mask is used to specify the fields to be overwritten in the AutoProtectionPolicy resource by the update.

The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

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

static::build

Parameters
Name Description
autoProtectionPolicy AutoProtectionPolicy

Required. The policy to update.

updateMask Google\Protobuf\FieldMask

Required. Field mask is used to specify the fields to be overwritten in the AutoProtectionPolicy resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields will be overwritten.

Returns
Type Description
UpdateAutoProtectionPolicyRequest