Google Cloud Assured Workloads V1 Client - Class ListViolationsRequest (0.9.1)

Reference documentation and code samples for the Google Cloud Assured Workloads V1 Client class ListViolationsRequest.

Request for fetching violations in an organization.

Generated from protobuf message google.cloud.assuredworkloads.v1.ListViolationsRequest

Namespace

Google \ Cloud \ AssuredWorkloads \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The Workload name. Format organizations/{org_id}/locations/{location}/workloads/{workload}.

↳ interval 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 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.

getParent

Required. The Workload name.

Format organizations/{org_id}/locations/{location}/workloads/{workload}.

Returns
TypeDescription
string

setParent

Required. The Workload name.

Format organizations/{org_id}/locations/{location}/workloads/{workload}.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getInterval

Optional. Specifies the time window for retrieving active Violations.

When specified, retrieves Violations that were active between start_time and end_time.

Returns
TypeDescription
Google\Cloud\AssuredWorkloads\V1\TimeWindow|null

hasInterval

clearInterval

setInterval

Optional. Specifies the time window for retrieving active Violations.

When specified, retrieves Violations that were active between start_time and end_time.

Parameter
NameDescription
var Google\Cloud\AssuredWorkloads\V1\TimeWindow
Returns
TypeDescription
$this

getPageSize

Optional. Page size.

Returns
TypeDescription
int

setPageSize

Optional. Page size.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getPageToken

Optional. Page token returned from previous request.

Returns
TypeDescription
string

setPageToken

Optional. Page token returned from previous request.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getFilter

Optional. A custom filter for filtering by the Violations properties.

Returns
TypeDescription
string

setFilter

Optional. A custom filter for filtering by the Violations properties.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

static::build

Parameter
NameDescription
parent string

Required. The Workload name. Format organizations/{org_id}/locations/{location}/workloads/{workload}. Please see Google\Cloud\AssuredWorkloads\V1\AssuredWorkloadsServiceClient::workloadName() for help formatting this field.

Returns
TypeDescription
Google\Cloud\AssuredWorkloads\V1\ListViolationsRequest