Reference documentation and code samples for the Google Cloud Org Policy V2 Client class 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.
Generated from protobuf message google.cloud.orgpolicy.v2.PolicySpec.PolicyRule.StringValues
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Org Policy V2 Client - Class StringValues (1.2.2)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.2 (latest)](/php/docs/reference/cloud-org-policy/latest/V2.PolicySpec.PolicyRule.StringValues)\n- [1.2.1](/php/docs/reference/cloud-org-policy/1.2.1/V2.PolicySpec.PolicyRule.StringValues)\n- [1.1.3](/php/docs/reference/cloud-org-policy/1.1.3/V2.PolicySpec.PolicyRule.StringValues)\n- [1.0.0](/php/docs/reference/cloud-org-policy/1.0.0/V2.PolicySpec.PolicyRule.StringValues)\n- [0.7.0](/php/docs/reference/cloud-org-policy/0.7.0/V2.PolicySpec.PolicyRule.StringValues)\n- [0.6.5](/php/docs/reference/cloud-org-policy/0.6.5/V2.PolicySpec.PolicyRule.StringValues)\n- [0.5.3](/php/docs/reference/cloud-org-policy/0.5.3/V2.PolicySpec.PolicyRule.StringValues)\n- [0.4.2](/php/docs/reference/cloud-org-policy/0.4.2/V2.PolicySpec.PolicyRule.StringValues)\n- [0.3.7](/php/docs/reference/cloud-org-policy/0.3.7/V2.PolicySpec.PolicyRule.StringValues) \nReference documentation and code samples for the Google Cloud Org Policy V2 Client class StringValues.\n\nA message that holds specific allowed and denied values.\n\nThis message can define specific values and subtrees of the Resource\nManager resource hierarchy (`Organizations`, `Folders`, `Projects`) that\nare allowed or denied. This is achieved by using the `under:` and\noptional `is:` prefixes.\nThe `under:` prefix is used to denote resource subtree values.\nThe `is:` prefix is used to denote specific values, and is required only\nif the value contains a \":\". Values prefixed with \"is:\" are treated the\nsame as values with no prefix.\nAncestry subtrees must be in one of the following formats:\n\n- `projects/\u003cproject-id\u003e` (for example, `projects/tokyo-rain-123`)\n- `folders/\u003cfolder-id\u003e` (for example, `folders/1234`)\n- `organizations/\u003corganization-id\u003e` (for example, `organizations/1234`) The `supports_under` field of the associated `Constraint` defines whether ancestry prefixes can be used.\n\nGenerated from protobuf message `google.cloud.orgpolicy.v2.PolicySpec.PolicyRule.StringValues`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ OrgPolicy \\\\ V2 \\\\ PolicySpec \\\\ PolicyRule\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getAllowedValues\n\nList of values allowed at this resource.\n\n### setAllowedValues\n\nList of values allowed at this resource.\n\n### getDeniedValues\n\nList of values denied at this resource.\n\n### setDeniedValues\n\nList of values denied at this resource."]]