Google Cloud Org Policy V2 Client - Class CreateCustomConstraintRequest (0.6.5)

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

The request sent to the CreateCustomConstraintRequest method.

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

Namespace

Google \ Cloud \ OrgPolicy \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ parent string

Required. Must be in the following form: * organizations/{organization_id}

↳ custom_constraint Google\Cloud\OrgPolicy\V2\CustomConstraint

Required. Custom constraint to create.

getParent

Required. Must be in the following form:

  • organizations/{organization_id}
Returns
Type Description
string

setParent

Required. Must be in the following form:

  • organizations/{organization_id}
Parameter
Name Description
var string
Returns
Type Description
$this

getCustomConstraint

Required. Custom constraint to create.

Returns
Type Description
Google\Cloud\OrgPolicy\V2\CustomConstraint|null

hasCustomConstraint

clearCustomConstraint

setCustomConstraint

Required. Custom constraint to create.

Parameter
Name Description
var Google\Cloud\OrgPolicy\V2\CustomConstraint
Returns
Type Description
$this

static::build

Parameters
Name Description
parent string

Required. Must be in the following form:

  • organizations/{organization_id} Please see Google\Cloud\OrgPolicy\V2\OrgPolicyClient::organizationName() for help formatting this field.
customConstraint Google\Cloud\OrgPolicy\V2\CustomConstraint

Required. Custom constraint to create.

Returns
Type Description
Google\Cloud\OrgPolicy\V2\CreateCustomConstraintRequest