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 \ V2Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ parent |
string
Required. Must be in the following form: * * |
↳ 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:
|
customConstraint |
CustomConstraint
Required. Custom constraint to create. |
| Returns | |
|---|---|
| Type | Description |
CreateCustomConstraintRequest |
|