Google Cloud Assured Workloads V1beta1 Client - Class ListWorkloadsRequest (0.8.3)

Reference documentation and code samples for the Google Cloud Assured Workloads V1beta1 Client class ListWorkloadsRequest.

Request for fetching workloads in an organization.

Generated from protobuf message google.cloud.assuredworkloads.v1beta1.ListWorkloadsRequest

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. Parent Resource to list workloads from. Must be of the form organizations/{org_id}/locations/{location}.

↳ page_size int

Page size.

↳ page_token string

Page token returned from previous request. Page token contains context from previous request. Page token needs to be passed in the second and following requests.

↳ filter string

A custom filter for filtering by properties of a workload. At this time, only filtering by labels is supported.

getParent

Required. Parent Resource to list workloads from.

Must be of the form organizations/{org_id}/locations/{location}.

Returns
TypeDescription
string

setParent

Required. Parent Resource to list workloads from.

Must be of the form organizations/{org_id}/locations/{location}.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPageSize

Page size.

Returns
TypeDescription
int

setPageSize

Page size.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getPageToken

Page token returned from previous request. Page token contains context from previous request. Page token needs to be passed in the second and following requests.

Returns
TypeDescription
string

setPageToken

Page token returned from previous request. Page token contains context from previous request. Page token needs to be passed in the second and following requests.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getFilter

A custom filter for filtering by properties of a workload. At this time, only filtering by labels is supported.

Returns
TypeDescription
string

setFilter

A custom filter for filtering by properties of a workload. At this time, only filtering by labels is supported.

Parameter
NameDescription
var string
Returns
TypeDescription
$this