Reference documentation and code samples for the Google Cloud Org Policy V2 Client class BooleanConstraint.
A constraint type is enforced or not enforced, which is configured in the
PolicyRule
.
If customConstraintDefinition
is defined, this constraint is a managed
constraint.
Generated from protobuf message google.cloud.orgpolicy.v2.Constraint.BooleanConstraint
Namespace
Google \ Cloud \ OrgPolicy \ V2 \ ConstraintMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ custom_constraint_definition |
CustomConstraintDefinition
Custom constraint definition. Defines this as a managed constraint. |
getCustomConstraintDefinition
Custom constraint definition. Defines this as a managed constraint.
Returns | |
---|---|
Type | Description |
CustomConstraintDefinition|null |
hasCustomConstraintDefinition
clearCustomConstraintDefinition
setCustomConstraintDefinition
Custom constraint definition. Defines this as a managed constraint.
Parameter | |
---|---|
Name | Description |
var |
CustomConstraintDefinition
|
Returns | |
---|---|
Type | Description |
$this |