Google Cloud Asset V1 Client - Class AnalyzerOrgPolicyConstraint (1.10.2)

Reference documentation and code samples for the Google Cloud Asset V1 Client class AnalyzerOrgPolicyConstraint.

The organization policy constraint definition.

Generated from protobuf message google.cloud.asset.v1.AnalyzerOrgPolicyConstraint

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ google_defined_constraint Google\Cloud\Asset\V1\AnalyzerOrgPolicyConstraint\Constraint

The definition of the canned constraint defined by Google.

↳ custom_constraint Google\Cloud\Asset\V1\AnalyzerOrgPolicyConstraint\CustomConstraint

The definition of the custom constraint.

getGoogleDefinedConstraint

The definition of the canned constraint defined by Google.

Returns
TypeDescription
Google\Cloud\Asset\V1\AnalyzerOrgPolicyConstraint\Constraint|null

hasGoogleDefinedConstraint

setGoogleDefinedConstraint

The definition of the canned constraint defined by Google.

Parameter
NameDescription
var Google\Cloud\Asset\V1\AnalyzerOrgPolicyConstraint\Constraint
Returns
TypeDescription
$this

getCustomConstraint

The definition of the custom constraint.

Returns
TypeDescription
Google\Cloud\Asset\V1\AnalyzerOrgPolicyConstraint\CustomConstraint|null

hasCustomConstraint

setCustomConstraint

The definition of the custom constraint.

Parameter
NameDescription
var Google\Cloud\Asset\V1\AnalyzerOrgPolicyConstraint\CustomConstraint
Returns
TypeDescription
$this

getConstraintDefinition

Returns
TypeDescription
string