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 document provides reference documentation for the `Constraint.Types.ListConstraint` class within the Organization Policy v2 API, specifically for version 2.1.0."],["`ListConstraint` allows organization policy administrators to define policies that either allow or disallow a specific list of string values."],["The `ListConstraint` class implements interfaces such as `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, along with inheritance from the base `Object` class."],["The `ListConstraint` class offers properties `SupportsIn` and `SupportsUnder` to determine if grouped values and subtrees, respectively, can be used within policies."],["The documentation also includes a historical overview of prior versions, dating back to 1.0.0, with 2.7.0 being the latest version available."]]],[]]