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 Cloud Resource Manager policies.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eStringValues\u003c/code\u003e supports specifying allowed or denied resource subtrees using prefixes like \u003ccode\u003eunder:\u003c/code\u003e for subtrees and \u003ccode\u003eis:\u003c/code\u003e for specific values, where supported.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eStringValues\u003c/code\u003e class implements several interfaces, including \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 has two constructors: a default one and another that takes an existing \u003ccode\u003eStringValues\u003c/code\u003e object for copying, along with two properties, \u003ccode\u003eAllowedValues\u003c/code\u003e and \u003ccode\u003eDeniedValues\u003c/code\u003e, both of which use the \u003ccode\u003eRepeatedField\u003c/code\u003e type to store the values.\u003c/p\u003e\n"],["\u003cp\u003eThe page provides links to the documentation for various versions of the \u003ccode\u003eStringValues\u003c/code\u003e class, ranging from version 1.0.0 to 2.7.0, with 2.7.0 being the latest version.\u003c/p\u003e\n"]]],[],null,[]]