Google Cloud OsConfig V1 Client - Class UpdateOSPolicyAssignmentRequest (1.0.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

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
Google\Cloud\OsConfig\V1\OSPolicyAssignment|null

hasOsPolicyAssignment

clearOsPolicyAssignment

setOsPolicyAssignment

Required. The updated OS policy assignment.

Parameter
NameDescription
var Google\Cloud\OsConfig\V1\OSPolicyAssignment
Returns
TypeDescription
$this

getUpdateMask

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

Returns
TypeDescription
Google\Protobuf\FieldMask|null

hasUpdateMask

clearUpdateMask

setUpdateMask

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

Parameter
NameDescription
var Google\Protobuf\FieldMask
Returns
TypeDescription
$this