public sealed class PolicySpec.Types.PolicyRule.Types.StringValues : IMessage<PolicySpec.Types.PolicyRule.Types.StringValues>, IEquatable<PolicySpec.Types.PolicyRule.Types.StringValues>, IDeepCloneable<PolicySpec.Types.PolicyRule.Types.StringValues>, IBufferMessage, IMessage
Reference documentation and code samples for the Organization Policy v2 API class PolicySpec.Types.PolicyRule.Types.StringValues.
A message that holds specific allowed and denied values.
This message can define specific values and subtrees of the Resource
Manager resource hierarchy (Organizations, Folders, Projects) that
are allowed or denied. This is achieved by using the under: and
optional is: prefixes.
The under: prefix is used to denote resource subtree values.
The is: prefix is used to denote specific values, and is required only
if the value contains a ":". Values prefixed with "is:" are treated the
same as values with no prefix.
Ancestry subtrees must be in one of the following formats:
projects/<project-id> (for example, projects/tokyo-rain-123)
folders/<folder-id> (for example, folders/1234)
organizations/<organization-id> (for example, organizations/1234)
The supports_under field of the associated Constraint defines
whether ancestry prefixes can be used.
[[["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."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003ePolicySpec.Types.PolicyRule.Types.StringValues\u003c/code\u003e class within the Google Cloud Organization Policy v2 API, specifically for the .NET library.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eStringValues\u003c/code\u003e class defines a message that specifies allowed and denied values, using prefixes like \u003ccode\u003eunder:\u003c/code\u003e for resource subtrees and \u003ccode\u003eis:\u003c/code\u003e for specific values.\u003c/p\u003e\n"],["\u003cp\u003eAncestry subtrees, when used, must follow formats like \u003ccode\u003eprojects/<project-id>\u003c/code\u003e, \u003ccode\u003efolders/<folder-id>\u003c/code\u003e, or \u003ccode\u003eorganizations/<organization-id>\u003c/code\u003e, subject to the \u003ccode\u003esupports_under\u003c/code\u003e field of the associated \u003ccode\u003eConstraint\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe document lists available versions of the \u003ccode\u003eStringValues\u003c/code\u003e class from 1.0.0 to 2.7.0, with 2.7.0 being the most recent version available.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, and \u003ccode\u003eIDeepCloneable\u003c/code\u003e, enabling functionalities like message handling, value comparison, and deep cloning, respectively.\u003c/p\u003e\n"]]],[],null,[]]