Optional. Specifies the time window for retrieving active Violations. When specified, retrieves Violations that were active between start_time and end_time.
↳ page_size
int
Optional. Page size.
↳ page_token
string
Optional. Page token returned from previous request.
↳ filter
string
Optional. A custom filter for filtering by the Violations properties.
Optional. Page token returned from previous request.
Returns
Type
Description
string
setPageToken
Optional. Page token returned from previous request.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getFilter
Optional. A custom filter for filtering by the Violations properties.
Returns
Type
Description
string
setFilter
Optional. A custom filter for filtering by the Violations properties.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
static::build
Parameter
Name
Description
parent
string
Required. The Workload name.
Formatorganizations/{org_id}/locations/{location}/workloads/{workload}. Please seeAssuredWorkloadsServiceClient::workloadName()for help formatting this field.
[[["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 Assured Workloads V1 Client - Class ListViolationsRequest (1.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.5 (latest)](/php/docs/reference/cloud-assured-workloads/latest/V1.ListViolationsRequest)\n- [1.0.4](/php/docs/reference/cloud-assured-workloads/1.0.4/V1.ListViolationsRequest)\n- [0.11.5](/php/docs/reference/cloud-assured-workloads/0.11.5/V1.ListViolationsRequest)\n- [0.10.2](/php/docs/reference/cloud-assured-workloads/0.10.2/V1.ListViolationsRequest)\n- [0.9.1](/php/docs/reference/cloud-assured-workloads/0.9.1/V1.ListViolationsRequest)\n- [0.8.3](/php/docs/reference/cloud-assured-workloads/0.8.3/V1.ListViolationsRequest)\n- [0.7.3](/php/docs/reference/cloud-assured-workloads/0.7.3/V1.ListViolationsRequest) \nReference documentation and code samples for the Google Cloud Assured Workloads V1 Client class ListViolationsRequest.\n\nRequest for fetching violations in an organization.\n\nGenerated from protobuf message `google.cloud.assuredworkloads.v1.ListViolationsRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ AssuredWorkloads \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nRequired. The Workload name.\n\nFormat `organizations/{org_id}/locations/{location}/workloads/{workload}`.\n\n### setParent\n\nRequired. The Workload name.\n\nFormat `organizations/{org_id}/locations/{location}/workloads/{workload}`.\n\n### getInterval\n\nOptional. Specifies the time window for retrieving active Violations.\n\nWhen specified, retrieves Violations that were active between start_time\nand end_time.\n\n### hasInterval\n\n### clearInterval\n\n### setInterval\n\nOptional. Specifies the time window for retrieving active Violations.\n\nWhen specified, retrieves Violations that were active between start_time\nand end_time.\n\n### getPageSize\n\nOptional. Page size.\n\n### setPageSize\n\nOptional. Page size.\n\n### getPageToken\n\nOptional. Page token returned from previous request.\n\n### setPageToken\n\nOptional. Page token returned from previous request.\n\n### getFilter\n\nOptional. A custom filter for filtering by the Violations properties.\n\n### setFilter\n\nOptional. A custom filter for filtering by the Violations properties.\n\n### static::build"]]