Reference documentation and code samples for the Policy Simulator V1 API class Google::Cloud::PolicySimulator::V1::ListOrgPolicyViolationsPreviewsRequest.
(::Integer) — Optional. The maximum number of items to return. The service may return
fewer than this value. If unspecified, at most 5 items will be returned.
The maximum value is 10; values above 10 will be coerced to 10.
#page_size=
defpage_size=(value)->::Integer
Parameter
value (::Integer) — Optional. The maximum number of items to return. The service may return
fewer than this value. If unspecified, at most 5 items will be returned.
The maximum value is 10; values above 10 will be coerced to 10.
Returns
(::Integer) — Optional. The maximum number of items to return. The service may return
fewer than this value. If unspecified, at most 5 items will be returned.
The maximum value is 10; values above 10 will be coerced to 10.
#page_token
defpage_token()->::String
Returns
(::String) — Optional. A page token, received from a previous call. Provide this to
retrieve the subsequent page.
When paginating, all other parameters must match the call that provided the
page token.
#page_token=
defpage_token=(value)->::String
Parameter
value (::String) — Optional. A page token, received from a previous call. Provide this to
retrieve the subsequent page.
When paginating, all other parameters must match the call that provided the
page token.
Returns
(::String) — Optional. A page token, received from a previous call. Provide this to
retrieve the subsequent page.
When paginating, all other parameters must match the call that provided the
page token.
#parent
defparent()->::String
Returns
(::String) — Required. The parent the violations are scoped to.
Format:
organizations/{organization}/locations/{location}
[[["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-03 UTC."],[],[],null,["# Policy Simulator V1 API - Class Google::Cloud::PolicySimulator::V1::ListOrgPolicyViolationsPreviewsRequest (v1.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.0 (latest)](/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-ListOrgPolicyViolationsPreviewsRequest)\n- [1.3.0](/ruby/docs/reference/google-cloud-policy_simulator-v1/1.3.0/Google-Cloud-PolicySimulator-V1-ListOrgPolicyViolationsPreviewsRequest)\n- [1.2.1](/ruby/docs/reference/google-cloud-policy_simulator-v1/1.2.1/Google-Cloud-PolicySimulator-V1-ListOrgPolicyViolationsPreviewsRequest)\n- [1.1.0](/ruby/docs/reference/google-cloud-policy_simulator-v1/1.1.0/Google-Cloud-PolicySimulator-V1-ListOrgPolicyViolationsPreviewsRequest)\n- [1.0.1](/ruby/docs/reference/google-cloud-policy_simulator-v1/1.0.1/Google-Cloud-PolicySimulator-V1-ListOrgPolicyViolationsPreviewsRequest)\n- [0.4.0](/ruby/docs/reference/google-cloud-policy_simulator-v1/0.4.0/Google-Cloud-PolicySimulator-V1-ListOrgPolicyViolationsPreviewsRequest)\n- [0.3.2](/ruby/docs/reference/google-cloud-policy_simulator-v1/0.3.2/Google-Cloud-PolicySimulator-V1-ListOrgPolicyViolationsPreviewsRequest)\n- [0.2.0](/ruby/docs/reference/google-cloud-policy_simulator-v1/0.2.0/Google-Cloud-PolicySimulator-V1-ListOrgPolicyViolationsPreviewsRequest)\n- [0.1.1](/ruby/docs/reference/google-cloud-policy_simulator-v1/0.1.1/Google-Cloud-PolicySimulator-V1-ListOrgPolicyViolationsPreviewsRequest) \nReference documentation and code samples for the Policy Simulator V1 API class Google::Cloud::PolicySimulator::V1::ListOrgPolicyViolationsPreviewsRequest.\n\nListOrgPolicyViolationsPreviewsRequest is the request message for\n[OrgPolicyViolationsPreviewService.ListOrgPolicyViolationsPreviews](/ruby/docs/reference/google-cloud-policy_simulator-v1/latest/Google-Cloud-PolicySimulator-V1-OrgPolicyViolationsPreviewService-Client#Google__Cloud__PolicySimulator__V1__OrgPolicyViolationsPreviewService__Client_list_org_policy_violations_previews_instance_ \"Google::Cloud::PolicySimulator::V1::OrgPolicyViolationsPreviewService::Client#list_org_policy_violations_previews (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### #page_size\n\n def page_size() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- Optional. The maximum number of items to return. The service may return fewer than this value. If unspecified, at most 5 items will be returned. The maximum value is 10; values above 10 will be coerced to 10.\n\n### #page_size=\n\n def page_size=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- Optional. The maximum number of items to return. The service may return fewer than this value. If unspecified, at most 5 items will be returned. The maximum value is 10; values above 10 will be coerced to 10. \n**Returns**\n\n- (::Integer) --- Optional. The maximum number of items to return. The service may return fewer than this value. If unspecified, at most 5 items will be returned. The maximum value is 10; values above 10 will be coerced to 10.\n\n### #page_token\n\n def page_token() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Optional. A page token, received from a previous call. Provide this to retrieve the subsequent page.\n\n When paginating, all other parameters must match the call that provided the\n page token.\n\n### #page_token=\n\n def page_token=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Optional. A page token, received from a previous call. Provide this to retrieve the subsequent page.\n\n\n When paginating, all other parameters must match the call that provided the\npage token. \n**Returns**\n\n- (::String) --- Optional. A page token, received from a previous call. Provide this to retrieve the subsequent page.\n\n When paginating, all other parameters must match the call that provided the\n page token.\n\n### #parent\n\n def parent() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The parent the violations are scoped to. Format: `organizations/{organization}/locations/{location}`\n\n\n Example: `organizations/my-example-org/locations/global`\n\n### #parent=\n\n def parent=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The parent the violations are scoped to. Format: `organizations/{organization}/locations/{location}`\n\n\nExample: `organizations/my-example-org/locations/global` \n**Returns**\n\n- (::String) --- Required. The parent the violations are scoped to. Format: `organizations/{organization}/locations/{location}`\n\n\n Example: `organizations/my-example-org/locations/global`"]]