public sealed class ListConstraint : IMessage<Constraint.Types.ListConstraint>, IEquatable<Constraint.Types.ListConstraint>, IDeepCloneable<Constraint.Types.ListConstraint>, IBufferMessage, IMessage
Reference documentation and code samples for the Organization Policy v2 API class Constraint.Types.ListConstraint.
A Constraint that allows or disallows a list of string values, which are
configured by an Organization's policy administrator with a Policy.
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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["This page provides documentation for the `ListConstraint` class within the Google Cloud Organization Policy v2 API, which is used to define constraints on lists of string values."],["The `ListConstraint` class allows policy administrators to configure allowed or disallowed string values through an organization's policy."],["The `ListConstraint` class inherits from `Object` and implements several interfaces, including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`."],["The `ListConstraint` class has properties `SupportsIn` and `SupportsUnder` that enable the use of categorized values and resource hierarchy subtrees in policies, respectively."],["There are multiple versions of this class that can be found in the list, ranging from version 1.0.0 up to the most recent version of 2.7.0, along with multiple versions in between."]]],[]]