Google Cloud OsConfig V1 Client - Class UpdateOSPolicyAssignmentRequest (1.3.5)

Reference documentation and code samples for the Google Cloud OsConfig V1 Client class UpdateOSPolicyAssignmentRequest.

A request message to update an OS policy assignment

Generated from protobuf message google.cloud.osconfig.v1.UpdateOSPolicyAssignmentRequest

Namespace

Google \ Cloud \ OsConfig \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ os_policy_assignment Google\Cloud\OsConfig\V1\OSPolicyAssignment

Required. The updated OS policy assignment.

↳ update_mask Google\Protobuf\FieldMask

Optional. Field mask that controls which fields of the assignment should be updated.

getOsPolicyAssignment

Required. The updated OS policy assignment.

Returns
Type Description
Google\Cloud\OsConfig\V1\OSPolicyAssignment|null

hasOsPolicyAssignment

clearOsPolicyAssignment

setOsPolicyAssignment

Required. The updated OS policy assignment.

Parameter
Name Description
var Google\Cloud\OsConfig\V1\OSPolicyAssignment
Returns
Type Description
$this

getUpdateMask

Optional. Field mask that controls which fields of the assignment should be updated.

Returns
Type Description
Google\Protobuf\FieldMask|null

hasUpdateMask

clearUpdateMask

setUpdateMask

Optional. Field mask that controls which fields of the assignment should be updated.

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

static::build

Parameters
Name Description
osPolicyAssignment Google\Cloud\OsConfig\V1\OSPolicyAssignment

Required. The updated OS policy assignment.

updateMask Google\Protobuf\FieldMask

Optional. Field mask that controls which fields of the assignment should be updated.

Returns
Type Description
Google\Cloud\OsConfig\V1\UpdateOSPolicyAssignmentRequest