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

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 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
CustomConstraint|null

hasCustomConstraint

clearCustomConstraint

setCustomConstraint

Required. Custom constraint to create.

Parameter
Name Description
var CustomConstraint
Returns
Type Description
$this

static::build

Parameters
Name Description
parent string

Required. Must be in the following form:

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

Required. Custom constraint to create.

Returns
Type Description
CreateCustomConstraintRequest