public sealed class Constraint.Types.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 type that allows or disallows a list of string values, which
are configured in the
[PolicyRule][google.cloud.orgpolicy.v2.PolicySpec.PolicyRule].
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 the 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"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference information for the \u003ccode\u003eConstraint.Types.ListConstraint\u003c/code\u003e class within the Google Cloud Organization Policy v2 API, specifically in the .NET context.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eListConstraint\u003c/code\u003e class is used to allow or disallow a list of string values, as configured by an Organization Policy administrator.\u003c/p\u003e\n"],["\u003cp\u003eThere are several versions of \u003ccode\u003eListConstraint\u003c/code\u003e available for download, from 1.0.0 to the latest 2.7.0, each with its own respective documentation.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eListConstraint\u003c/code\u003e class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSupportsIn\u003c/code\u003e and \u003ccode\u003eSupportsUnder\u003c/code\u003e properties, both of boolean type, determine if grouped values or resource subtrees are supported in \u003ccode\u003ePolicy.allowed_values\u003c/code\u003e and \u003ccode\u003ePolicy.denied_values\u003c/code\u003e, respectively.\u003c/p\u003e\n"]]],[],null,[]]