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 documentation provides reference information for the \u003ccode\u003ePolicySpec.Types.PolicyRule.Types.StringValues\u003c/code\u003e class within the Organization Policy v2 API, focusing on version 2.3.0 but with links to other versions ranging from 1.0.0 to 2.7.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eStringValues\u003c/code\u003e is a message type used to define specific allowed or denied values, including resource subtrees within the Resource Manager hierarchy using \u003ccode\u003eunder:\u003c/code\u003e and \u003ccode\u003eis:\u003c/code\u003e prefixes.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eStringValues\u003c/code\u003e class inherits from \u003ccode\u003eobject\u003c/code\u003e and 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.\u003c/p\u003e\n"],["\u003cp\u003eThis message class can define \u003ccode\u003eAllowedValues\u003c/code\u003e and \u003ccode\u003eDeniedValues\u003c/code\u003e through \u003ccode\u003eRepeatedField<string>\u003c/code\u003e properties, which are lists of strings that specify values that are either allowed or denied at a given resource level.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eStringValues\u003c/code\u003e class has two constructors, a default one and another that takes in an existing \u003ccode\u003eStringValues\u003c/code\u003e object.\u003c/p\u003e\n"]]],[],null,[]]