Google Cloud Org Policy V2 Client - Class UpdatePolicyRequest (0.3.7)

Reference documentation and code samples for the Google Cloud Org Policy V2 Client class UpdatePolicyRequest.

The request sent to the [UpdatePolicyRequest] [google.cloud.orgpolicy.v2.OrgPolicy.UpdatePolicy] method.

Generated from protobuf message google.cloud.orgpolicy.v2.UpdatePolicyRequest

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ policy Google\Cloud\OrgPolicy\V2\Policy

Required. Policy to update.

getPolicy

Required. Policy to update.

Returns
TypeDescription
Google\Cloud\OrgPolicy\V2\Policy|null

hasPolicy

clearPolicy

setPolicy

Required. Policy to update.

Parameter
NameDescription
var Google\Cloud\OrgPolicy\V2\Policy
Returns
TypeDescription
$this