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 information for the \u003ccode\u003ePolicySpec.Types.PolicyRule.Types.StringValues\u003c/code\u003e class within the Google Cloud Organization Policy v2 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eStringValues\u003c/code\u003e class defines allowed and denied values for resources, supporting the use of \u003ccode\u003eunder:\u003c/code\u003e and \u003ccode\u003eis:\u003c/code\u003e prefixes to specify resource subtrees or exact values.\u003c/p\u003e\n"],["\u003cp\u003eIt is part of the \u003ccode\u003eGoogle.Cloud.OrgPolicy.V2\u003c/code\u003e namespace and is implemented in the \u003ccode\u003eGoogle.Cloud.OrgPolicy.V2.dll\u003c/code\u003e assembly, inheriting from the base .NET \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements several interfaces, such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, enabling it to integrate with the Google Protocol Buffers system and allowing for equality checks, deep cloning, and message handling.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eStringValues\u003c/code\u003e class contains two key properties, \u003ccode\u003eAllowedValues\u003c/code\u003e and \u003ccode\u003eDeniedValues\u003c/code\u003e, which are lists of string values that represent allowed and denied resources.\u003c/p\u003e\n"]]],[],null,[]]