Google Cloud Org Policy V2 Client - Class AlternatePolicySpec (0.5.3)

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

Similar to PolicySpec but with an extra 'launch' field for launch reference.

The PolicySpec here is specific for dry-run/darklaunch.

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

Namespace

Google \ Cloud \ OrgPolicy \ V2

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ launch string

Reference to the launch that will be used while audit logging and to control the launch. Should be set only in the alternate policy.

↳ spec Google\Cloud\OrgPolicy\V2\PolicySpec

Specify Constraint for configurations of Cloud Platform resources.

getLaunch

Reference to the launch that will be used while audit logging and to control the launch.

Should be set only in the alternate policy.

Returns
TypeDescription
string

setLaunch

Reference to the launch that will be used while audit logging and to control the launch.

Should be set only in the alternate policy.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSpec

Specify Constraint for configurations of Cloud Platform resources.

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

hasSpec

clearSpec

setSpec

Specify Constraint for configurations of Cloud Platform resources.

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