# Assured Workloads for Government V1 API - Class Google::Cloud::AssuredWorkloads::V1::ListViolationsRequest (v1.8.0)

1.8.0 (latest) 1.7.0 1.6.0 1.5.1 1.4.0 1.3.0 1.2.1 1.1.0 1.0.1 0.10.0 0.9.2 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.1 Reference documentation and code samples for the Assured Workloads for Government V1 API class Google::Cloud::AssuredWorkloads::V1::ListViolationsRequest.

Request for fetching violations in an organization.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #filter

    def filter() -> ::String

**Returns**

- (::String) --- Optional. A custom filter for filtering by the Violations properties.

### #filter=

    def filter=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. A custom filter for filtering by the Violations properties.
**Returns**

- (::String) --- Optional. A custom filter for filtering by the Violations properties.

### #interval

    def interval() -> ::Google::Cloud::AssuredWorkloads::V1::TimeWindow

**Returns**

- ([::Google::Cloud::AssuredWorkloads::V1::TimeWindow](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-assured_workloads-v1/latest/Google-Cloud-AssuredWorkloads-V1-TimeWindow)) --- Optional. Specifies the time window for retrieving active Violations. When specified, retrieves Violations that were active between start_time and end_time.

### #interval=

    def interval=(value) -> ::Google::Cloud::AssuredWorkloads::V1::TimeWindow

**Parameter**

- **value** ([::Google::Cloud::AssuredWorkloads::V1::TimeWindow](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-assured_workloads-v1/latest/Google-Cloud-AssuredWorkloads-V1-TimeWindow)) --- Optional. Specifies the time window for retrieving active Violations. When specified, retrieves Violations that were active between start_time and end_time.
**Returns**

- ([::Google::Cloud::AssuredWorkloads::V1::TimeWindow](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-assured_workloads-v1/latest/Google-Cloud-AssuredWorkloads-V1-TimeWindow)) --- Optional. Specifies the time window for retrieving active Violations. When specified, retrieves Violations that were active between start_time and end_time.

### #page_size

    def page_size() -> ::Integer

**Returns**

- (::Integer) --- Optional. Page size.

### #page_size=

    def page_size=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Optional. Page size.
**Returns**

- (::Integer) --- Optional. Page size.

### #page_token

    def page_token() -> ::String

**Returns**

- (::String) --- Optional. Page token returned from previous request.

### #page_token=

    def page_token=(value) -> ::String

**Parameter**

- **value** (::String) --- Optional. Page token returned from previous request.
**Returns**

- (::String) --- Optional. Page token returned from previous request.

### #parent

    def parent() -> ::String

**Returns**

- (::String) --- Required. The Workload name. Format `organizations/{org_id}/locations/{location}/workloads/{workload}`.

### #parent=

    def parent=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The Workload name. Format `organizations/{org_id}/locations/{location}/workloads/{workload}`.
**Returns**

- (::String) --- Required. The Workload name. Format `organizations/{org_id}/locations/{location}/workloads/{workload}`.