Reference documentation and code samples for the Google Cloud Container V1 Client class ListUsableSubnetworksRequest.
ListUsableSubnetworksRequest requests the list of usable subnetworks
available to a user for creating clusters.
Generated from protobuf message google.container.v1.ListUsableSubnetworksRequest
Namespace
Google \ Cloud \ Container \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ parent
string
The parent project where subnetworks are usable. Specified in the format projects/*.
↳ filter
string
Filtering currently only supports equality on the networkProjectId and must be in the form: "networkProjectId=[PROJECTID]", where networkProjectId is the project which owns the listed subnetworks. This defaults to the parent project ID.
↳ page_size
int
The max number of results per page that should be returned. If the number of available results is larger than page_size, a next_page_token is returned which can be used to get the next page of results in subsequent requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
↳ page_token
string
Specifies a page token to use. Set this to the nextPageToken returned by previous list requests to get the next page of results.
getParent
The parent project where subnetworks are usable.
Specified in the format projects/*.
Returns
Type
Description
string
setParent
The parent project where subnetworks are usable.
Specified in the format projects/*.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getFilter
Filtering currently only supports equality on the networkProjectId and must
be in the form: "networkProjectId=[PROJECTID]", where networkProjectId
is the project which owns the listed subnetworks. This defaults to the
parent project ID.
Returns
Type
Description
string
setFilter
Filtering currently only supports equality on the networkProjectId and must
be in the form: "networkProjectId=[PROJECTID]", where networkProjectId
is the project which owns the listed subnetworks. This defaults to the
parent project ID.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getPageSize
The max number of results per page that should be returned. If the number
of available results is larger than page_size, a next_page_token is
returned which can be used to get the next page of results in subsequent
requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
Returns
Type
Description
int
setPageSize
The max number of results per page that should be returned. If the number
of available results is larger than page_size, a next_page_token is
returned which can be used to get the next page of results in subsequent
requests. Acceptable values are 0 to 500, inclusive. (Default: 500)
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getPageToken
Specifies a page token to use. Set this to the nextPageToken returned by
previous list requests to get the next page of results.
Returns
Type
Description
string
setPageToken
Specifies a page token to use. Set this to the nextPageToken returned by
previous list requests to get the next page of results.
[[["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-08-28 UTC."],[],[],null,["# Google Cloud Container V1 Client - Class ListUsableSubnetworksRequest (2.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/php/docs/reference/cloud-container/latest/V1.ListUsableSubnetworksRequest)\n- [2.4.0](/php/docs/reference/cloud-container/2.4.0/V1.ListUsableSubnetworksRequest)\n- [2.3.4](/php/docs/reference/cloud-container/2.3.4/V1.ListUsableSubnetworksRequest)\n- [2.2.1](/php/docs/reference/cloud-container/2.2.1/V1.ListUsableSubnetworksRequest)\n- [2.1.0](/php/docs/reference/cloud-container/2.1.0/V1.ListUsableSubnetworksRequest)\n- [2.0.0](/php/docs/reference/cloud-container/2.0.0/V1.ListUsableSubnetworksRequest)\n- [1.33.0](/php/docs/reference/cloud-container/1.33.0/V1.ListUsableSubnetworksRequest)\n- [1.32.0](/php/docs/reference/cloud-container/1.32.0/V1.ListUsableSubnetworksRequest)\n- [1.31.0](/php/docs/reference/cloud-container/1.31.0/V1.ListUsableSubnetworksRequest)\n- [1.30.3](/php/docs/reference/cloud-container/1.30.3/V1.ListUsableSubnetworksRequest)\n- [1.24.0](/php/docs/reference/cloud-container/1.24.0/V1.ListUsableSubnetworksRequest)\n- [1.23.0](/php/docs/reference/cloud-container/1.23.0/V1.ListUsableSubnetworksRequest)\n- [1.22.0](/php/docs/reference/cloud-container/1.22.0/V1.ListUsableSubnetworksRequest)\n- [1.21.1](/php/docs/reference/cloud-container/1.21.1/V1.ListUsableSubnetworksRequest)\n- [1.20.0](/php/docs/reference/cloud-container/1.20.0/V1.ListUsableSubnetworksRequest)\n- [1.19.0](/php/docs/reference/cloud-container/1.19.0/V1.ListUsableSubnetworksRequest)\n- [1.18.0](/php/docs/reference/cloud-container/1.18.0/V1.ListUsableSubnetworksRequest)\n- [1.17.1](/php/docs/reference/cloud-container/1.17.1/V1.ListUsableSubnetworksRequest)\n- [1.16.0](/php/docs/reference/cloud-container/1.16.0/V1.ListUsableSubnetworksRequest)\n- [1.15.0](/php/docs/reference/cloud-container/1.15.0/V1.ListUsableSubnetworksRequest)\n- [1.14.0](/php/docs/reference/cloud-container/1.14.0/V1.ListUsableSubnetworksRequest)\n- [1.13.1](/php/docs/reference/cloud-container/1.13.1/V1.ListUsableSubnetworksRequest)\n- [1.12.1](/php/docs/reference/cloud-container/1.12.1/V1.ListUsableSubnetworksRequest)\n- [1.10.3](/php/docs/reference/cloud-container/1.10.3/V1.ListUsableSubnetworksRequest)\n- [1.9.1](/php/docs/reference/cloud-container/1.9.1/V1.ListUsableSubnetworksRequest) \nReference documentation and code samples for the Google Cloud Container V1 Client class ListUsableSubnetworksRequest.\n\nListUsableSubnetworksRequest requests the list of usable subnetworks\navailable to a user for creating clusters.\n\nGenerated from protobuf message `google.container.v1.ListUsableSubnetworksRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Container \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nThe parent project where subnetworks are usable.\n\nSpecified in the format `projects/*`.\n\n### setParent\n\nThe parent project where subnetworks are usable.\n\nSpecified in the format `projects/*`.\n\n### getFilter\n\nFiltering currently only supports equality on the networkProjectId and must\nbe in the form: \"networkProjectId=\\[PROJECTID\\]\", where `networkProjectId`\nis the project which owns the listed subnetworks. This defaults to the\nparent project ID.\n\n### setFilter\n\nFiltering currently only supports equality on the networkProjectId and must\nbe in the form: \"networkProjectId=\\[PROJECTID\\]\", where `networkProjectId`\nis the project which owns the listed subnetworks. This defaults to the\nparent project ID.\n\n### getPageSize\n\nThe max number of results per page that should be returned. If the number\nof available results is larger than `page_size`, a `next_page_token` is\nreturned which can be used to get the next page of results in subsequent\nrequests. Acceptable values are 0 to 500, inclusive. (Default: 500)\n\n### setPageSize\n\nThe max number of results per page that should be returned. If the number\nof available results is larger than `page_size`, a `next_page_token` is\nreturned which can be used to get the next page of results in subsequent\nrequests. Acceptable values are 0 to 500, inclusive. (Default: 500)\n\n### getPageToken\n\nSpecifies a page token to use. Set this to the nextPageToken returned by\nprevious list requests to get the next page of results.\n\n### setPageToken\n\nSpecifies a page token to use. Set this to the nextPageToken returned by\nprevious list requests to get the next page of results."]]