public sealed class StringValues : IMessage<PolicySpec.Types.PolicyRule.Types.StringValues>, IEquatable<PolicySpec.Types.PolicyRule.Types.StringValues>, IDeepCloneable<PolicySpec.Types.PolicyRule.Types.StringValues>, IBufferMessage, IMessage
A message that holds specific allowed and denied values.
This message can define specific values and subtrees of Cloud 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>", e.g. "projects/tokyo-rain-123"
"folders/<folder-id>", e.g. "folders/1234"
"organizations/<organization-id>", e.g. "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 outlines the \u003ccode\u003eStringValues\u003c/code\u003e class, which is used to define allowed and denied values within Google Cloud Resource Manager policies.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eStringValues\u003c/code\u003e class supports specifying both specific values and resource subtrees through \u003ccode\u003eunder:\u003c/code\u003e and \u003ccode\u003eis:\u003c/code\u003e prefixes, applicable to projects, folders, and organizations.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eStringValues\u003c/code\u003e 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, inheriting members from the base \u003ccode\u003eObject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes two constructors, \u003ccode\u003eStringValues()\u003c/code\u003e and \u003ccode\u003eStringValues(PolicySpec.Types.PolicyRule.Types.StringValues other)\u003c/code\u003e, and exposes \u003ccode\u003eAllowedValues\u003c/code\u003e and \u003ccode\u003eDeniedValues\u003c/code\u003e as properties.\u003c/p\u003e\n"],["\u003cp\u003eThe document details the class across multiple versions ranging from version 1.0.0 to the latest version 2.7.0.\u003c/p\u003e\n"]]],[],null,[]]