(::String) — Required. The name of the constraint to analyze organization policies for.
The response only contains analyzed organization policies for the provided
constraint.
#constraint=
defconstraint=(value)->::String
Parameter
value (::String) — Required. The name of the constraint to analyze organization policies for.
The response only contains analyzed organization policies for the provided
constraint.
Returns
(::String) — Required. The name of the constraint to analyze organization policies for.
The response only contains analyzed organization policies for the provided
constraint.
When filtering by a specific field, the only supported operator is =.
For example, filtering by
consolidated_policy.attached_resource="//cloudresourcemanager.googleapis.com/folders/001"
will return all the Organization Policy results attached to "folders/001".
When filtering by a specific field, the only supported operator is =.
For example, filtering by
consolidated_policy.attached_resource="//cloudresourcemanager.googleapis.com/folders/001"
will return all the Organization Policy results attached to "folders/001".
When filtering by a specific field, the only supported operator is =.
For example, filtering by
consolidated_policy.attached_resource="//cloudresourcemanager.googleapis.com/folders/001"
will return all the Organization Policy results attached to "folders/001".
[[["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-09 UTC."],[],[],null,["# Cloud Asset V1 API - Class Google::Cloud::Asset::V1::AnalyzeOrgPoliciesRequest (v1.4.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.1 (latest)](/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-AnalyzeOrgPoliciesRequest)\n- [1.4.0](/ruby/docs/reference/google-cloud-asset-v1/1.4.0/Google-Cloud-Asset-V1-AnalyzeOrgPoliciesRequest)\n- [1.3.1](/ruby/docs/reference/google-cloud-asset-v1/1.3.1/Google-Cloud-Asset-V1-AnalyzeOrgPoliciesRequest)\n- [1.2.0](/ruby/docs/reference/google-cloud-asset-v1/1.2.0/Google-Cloud-Asset-V1-AnalyzeOrgPoliciesRequest)\n- [1.1.0](/ruby/docs/reference/google-cloud-asset-v1/1.1.0/Google-Cloud-Asset-V1-AnalyzeOrgPoliciesRequest)\n- [1.0.2](/ruby/docs/reference/google-cloud-asset-v1/1.0.2/Google-Cloud-Asset-V1-AnalyzeOrgPoliciesRequest)\n- [0.32.0](/ruby/docs/reference/google-cloud-asset-v1/0.32.0/Google-Cloud-Asset-V1-AnalyzeOrgPoliciesRequest)\n- [0.31.0](/ruby/docs/reference/google-cloud-asset-v1/0.31.0/Google-Cloud-Asset-V1-AnalyzeOrgPoliciesRequest)\n- [0.30.0](/ruby/docs/reference/google-cloud-asset-v1/0.30.0/Google-Cloud-Asset-V1-AnalyzeOrgPoliciesRequest)\n- [0.29.3](/ruby/docs/reference/google-cloud-asset-v1/0.29.3/Google-Cloud-Asset-V1-AnalyzeOrgPoliciesRequest)\n- [0.28.1](/ruby/docs/reference/google-cloud-asset-v1/0.28.1/Google-Cloud-Asset-V1-AnalyzeOrgPoliciesRequest)\n- [0.27.0](/ruby/docs/reference/google-cloud-asset-v1/0.27.0/Google-Cloud-Asset-V1-AnalyzeOrgPoliciesRequest)\n- [0.26.1](/ruby/docs/reference/google-cloud-asset-v1/0.26.1/Google-Cloud-Asset-V1-AnalyzeOrgPoliciesRequest)\n- [0.25.0](/ruby/docs/reference/google-cloud-asset-v1/0.25.0/Google-Cloud-Asset-V1-AnalyzeOrgPoliciesRequest)\n- [0.24.0](/ruby/docs/reference/google-cloud-asset-v1/0.24.0/Google-Cloud-Asset-V1-AnalyzeOrgPoliciesRequest)\n- [0.23.0](/ruby/docs/reference/google-cloud-asset-v1/0.23.0/Google-Cloud-Asset-V1-AnalyzeOrgPoliciesRequest)\n- [0.22.0](/ruby/docs/reference/google-cloud-asset-v1/0.22.0/Google-Cloud-Asset-V1-AnalyzeOrgPoliciesRequest)\n- [0.21.1](/ruby/docs/reference/google-cloud-asset-v1/0.21.1/Google-Cloud-Asset-V1-AnalyzeOrgPoliciesRequest)\n- [0.20.1](/ruby/docs/reference/google-cloud-asset-v1/0.20.1/Google-Cloud-Asset-V1-AnalyzeOrgPoliciesRequest)\n- [0.19.0](/ruby/docs/reference/google-cloud-asset-v1/0.19.0/Google-Cloud-Asset-V1-AnalyzeOrgPoliciesRequest)\n- [0.18.0](/ruby/docs/reference/google-cloud-asset-v1/0.18.0/Google-Cloud-Asset-V1-AnalyzeOrgPoliciesRequest)\n- [0.17.3](/ruby/docs/reference/google-cloud-asset-v1/0.17.3/Google-Cloud-Asset-V1-AnalyzeOrgPoliciesRequest) \nReference documentation and code samples for the Cloud Asset V1 API class Google::Cloud::Asset::V1::AnalyzeOrgPoliciesRequest.\n\nA request message for\n[AssetService.AnalyzeOrgPolicies](/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-AssetService-Client#Google__Cloud__Asset__V1__AssetService__Client_analyze_org_policies_instance_ \"Google::Cloud::Asset::V1::AssetService::Client#analyze_org_policies (method)\"). \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #constraint\n\n def constraint() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The name of the constraint to analyze organization policies for. The response only contains analyzed organization policies for the provided constraint.\n\n### #constraint=\n\n def constraint=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The name of the constraint to analyze organization policies for. The response only contains analyzed organization policies for the provided constraint. \n**Returns**\n\n- (::String) --- Required. The name of the constraint to analyze organization policies for. The response only contains analyzed organization policies for the provided constraint.\n\n### #filter\n\n def filter() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The expression to filter [AnalyzeOrgPoliciesResponse.org_policy_results](/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-AnalyzeOrgPoliciesResponse#Google__Cloud__Asset__V1__AnalyzeOrgPoliciesResponse_org_policy_results_instance_ \"Google::Cloud::Asset::V1::AnalyzeOrgPoliciesResponse#org_policy_results (method)\"). Filtering is currently available for bare literal values and the following fields:\n\n\n - consolidated_policy.attached_resource\n - consolidated_policy.rules.enforce\n\n When filtering by a specific field, the only supported operator is `=`.\n For example, filtering by\n consolidated_policy.attached_resource=\"//cloudresourcemanager.googleapis.com/folders/001\"\n will return all the Organization Policy results attached to \"folders/001\".\n\n### #filter=\n\n def filter=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The expression to filter [AnalyzeOrgPoliciesResponse.org_policy_results](/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-AnalyzeOrgPoliciesResponse#Google__Cloud__Asset__V1__AnalyzeOrgPoliciesResponse_org_policy_results_instance_ \"Google::Cloud::Asset::V1::AnalyzeOrgPoliciesResponse#org_policy_results (method)\"). Filtering is currently available for bare literal values and the following fields:\n\n\n - consolidated_policy.attached_resource\n - consolidated_policy.rules.enforce\n\n When filtering by a specific field, the only supported operator is `=`.\n For example, filtering by\n consolidated_policy.attached_resource=\"//cloudresourcemanager.googleapis.com/folders/001\"\nwill return all the Organization Policy results attached to \"folders/001\". \n**Returns**\n\n- (::String) --- The expression to filter [AnalyzeOrgPoliciesResponse.org_policy_results](/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-AnalyzeOrgPoliciesResponse#Google__Cloud__Asset__V1__AnalyzeOrgPoliciesResponse_org_policy_results_instance_ \"Google::Cloud::Asset::V1::AnalyzeOrgPoliciesResponse#org_policy_results (method)\"). Filtering is currently available for bare literal values and the following fields:\n\n\n - consolidated_policy.attached_resource\n - consolidated_policy.rules.enforce\n\n When filtering by a specific field, the only supported operator is `=`.\n For example, filtering by\n consolidated_policy.attached_resource=\"//cloudresourcemanager.googleapis.com/folders/001\"\n will return all the Organization Policy results attached to \"folders/001\".\n\n### #page_size\n\n def page_size() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- The maximum number of items to return per page. If unspecified, [AnalyzeOrgPoliciesResponse.org_policy_results](/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-AnalyzeOrgPoliciesResponse#Google__Cloud__Asset__V1__AnalyzeOrgPoliciesResponse_org_policy_results_instance_ \"Google::Cloud::Asset::V1::AnalyzeOrgPoliciesResponse#org_policy_results (method)\") will contain 20 items with a maximum of 200.\n\n### #page_size=\n\n def page_size=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- The maximum number of items to return per page. If unspecified, [AnalyzeOrgPoliciesResponse.org_policy_results](/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-AnalyzeOrgPoliciesResponse#Google__Cloud__Asset__V1__AnalyzeOrgPoliciesResponse_org_policy_results_instance_ \"Google::Cloud::Asset::V1::AnalyzeOrgPoliciesResponse#org_policy_results (method)\") will contain 20 items with a maximum of 200. \n**Returns**\n\n- (::Integer) --- The maximum number of items to return per page. If unspecified, [AnalyzeOrgPoliciesResponse.org_policy_results](/ruby/docs/reference/google-cloud-asset-v1/latest/Google-Cloud-Asset-V1-AnalyzeOrgPoliciesResponse#Google__Cloud__Asset__V1__AnalyzeOrgPoliciesResponse_org_policy_results_instance_ \"Google::Cloud::Asset::V1::AnalyzeOrgPoliciesResponse#org_policy_results (method)\") will contain 20 items with a maximum of 200.\n\n### #page_token\n\n def page_token() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The pagination token to retrieve the next page.\n\n### #page_token=\n\n def page_token=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The pagination token to retrieve the next page. \n**Returns**\n\n- (::String) --- The pagination token to retrieve the next page.\n\n### #scope\n\n def scope() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The organization to scope the request. Only organization\n policies within the scope will be analyzed.\n\n - organizations/{ORGANIZATION_NUMBER} (e.g., \"organizations/123456\")\n\n### #scope=\n\n def scope=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) ---\n\n Required. The organization to scope the request. Only organization\n policies within the scope will be analyzed.\n- organizations/{ORGANIZATION_NUMBER} (e.g., \"organizations/123456\") \n**Returns**\n\n- (::String) --- Required. The organization to scope the request. Only organization\n policies within the scope will be analyzed.\n\n - organizations/{ORGANIZATION_NUMBER} (e.g., \"organizations/123456\")"]]