Google Cloud Assured Workloads V1 Client - Class ListWorkloadsRequest (0.11.5)

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

Request for fetching workloads in an organization.

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

Namespace

Google \ Cloud \ AssuredWorkloads \ V1

Methods

__construct

Constructor.

Parameters
Name Description
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
Type Description
string

setParent

Required. Parent Resource to list workloads from.

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

Parameter
Name Description
var string
Returns
Type Description
$this

getPageSize

Page size.

Returns
Type Description
int

setPageSize

Page size.

Parameter
Name Description
var int
Returns
Type Description
$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
Type Description
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
Name Description
var string
Returns
Type Description
$this

getFilter

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

Returns
Type Description
string

setFilter

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

Parameter
Name Description
var string
Returns
Type Description
$this

static::build

Parameter
Name Description
parent string

Required. Parent Resource to list workloads from. Must be of the form organizations/{org_id}/locations/{location}. Please see Google\Cloud\AssuredWorkloads\V1\AssuredWorkloadsServiceClient::locationName() for help formatting this field.

Returns
Type Description
Google\Cloud\AssuredWorkloads\V1\ListWorkloadsRequest