Google Cloud Asset V1 Client - Class ListConstraint (1.10.2)

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

A Constraint that allows or disallows a list of string values, which are configured by an organization's policy administrator with a Policy.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ supports_in bool

Indicates whether values grouped into categories can be used in Policy.allowed_values and Policy.denied_values. For example, "in:Python" would match any value in the 'Python' group.

↳ supports_under bool

Indicates whether subtrees of Cloud Resource Manager resource hierarchy can be used in Policy.allowed_values and Policy.denied_values. For example, "under:folders/123" would match any resource under the 'folders/123' folder.

getSupportsIn

Indicates whether values grouped into categories can be used in Policy.allowed_values and Policy.denied_values. For example, "in:Python" would match any value in the 'Python' group.

Returns
TypeDescription
bool

setSupportsIn

Indicates whether values grouped into categories can be used in Policy.allowed_values and Policy.denied_values. For example, "in:Python" would match any value in the 'Python' group.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getSupportsUnder

Indicates whether subtrees of Cloud Resource Manager resource hierarchy can be used in Policy.allowed_values and Policy.denied_values. For example, "under:folders/123" would match any resource under the 'folders/123' folder.

Returns
TypeDescription
bool

setSupportsUnder

Indicates whether subtrees of Cloud Resource Manager resource hierarchy can be used in Policy.allowed_values and Policy.denied_values. For example, "under:folders/123" would match any resource under the 'folders/123' folder.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this