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 messagegoogle.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 formorganizations/{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 formorganizations/{org_id}/locations/{location}.
Returns
Type
Description
string
setParent
Required. Parent Resource to list workloads from.
Must be of the formorganizations/{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 formorganizations/{org_id}/locations/{location}. Please seeAssuredWorkloadsServiceClient::locationName()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 ListWorkloadsRequest (1.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.5 (latest)](/php/docs/reference/cloud-assured-workloads/latest/V1.ListWorkloadsRequest)\n- [1.0.4](/php/docs/reference/cloud-assured-workloads/1.0.4/V1.ListWorkloadsRequest)\n- [0.11.5](/php/docs/reference/cloud-assured-workloads/0.11.5/V1.ListWorkloadsRequest)\n- [0.10.2](/php/docs/reference/cloud-assured-workloads/0.10.2/V1.ListWorkloadsRequest)\n- [0.9.1](/php/docs/reference/cloud-assured-workloads/0.9.1/V1.ListWorkloadsRequest)\n- [0.8.3](/php/docs/reference/cloud-assured-workloads/0.8.3/V1.ListWorkloadsRequest)\n- [0.7.3](/php/docs/reference/cloud-assured-workloads/0.7.3/V1.ListWorkloadsRequest) \nReference documentation and code samples for the Google Cloud Assured Workloads V1 Client class ListWorkloadsRequest.\n\nRequest for fetching workloads in an organization.\n\nGenerated from protobuf message `google.cloud.assuredworkloads.v1.ListWorkloadsRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ AssuredWorkloads \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nRequired. Parent Resource to list workloads from.\n\nMust be of the form `organizations/{org_id}/locations/{location}`.\n\n### setParent\n\nRequired. Parent Resource to list workloads from.\n\nMust be of the form `organizations/{org_id}/locations/{location}`.\n\n### getPageSize\n\nPage size.\n\n### setPageSize\n\nPage size.\n\n### getPageToken\n\nPage token returned from previous request. Page token contains context from\nprevious request. Page token needs to be passed in the second and following\nrequests.\n\n### setPageToken\n\nPage token returned from previous request. Page token contains context from\nprevious request. Page token needs to be passed in the second and following\nrequests.\n\n### getFilter\n\nA custom filter for filtering by properties of a workload. At this time,\nonly filtering by labels is supported.\n\n### setFilter\n\nA custom filter for filtering by properties of a workload. At this time,\nonly filtering by labels is supported.\n\n### static::build"]]