Google Cloud Gke Hub V1beta1 Client - Class ListMembershipsRequest (0.6.3)

Reference documentation and code samples for the Google Cloud Gke Hub V1beta1 Client class ListMembershipsRequest.

Request message for GkeHubMembershipService.ListMemberships method.

Generated from protobuf message google.cloud.gkehub.v1beta1.ListMembershipsRequest

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The parent (project and location) where the Memberships will be listed. Specified in the format projects/*/locations/*. projects/*/locations/- list memberships in all the regions.

↳ page_size int

Optional. When requesting a 'page' of resources, page_size specifies number of resources to return. If unspecified or set to 0, all resources will be returned.

↳ page_token string

Optional. Token returned by previous call to ListMemberships which specifies the position in the list from where to continue listing the resources.

↳ filter string

Optional. Lists Memberships that match the filter expression, following the syntax outlined in https://google.aip.dev/160. Examples: - Name is bar in project foo-proj and location global: name = "projects/foo-proj/locations/global/membership/bar" - Memberships that have a label called foo: labels.foo:* - Memberships that have a label called foo whose value is bar: labels.foo = bar - Memberships in the CREATING state: state = CREATING

↳ order_by string

Optional. One or more fields to compare and use to sort the output. See https://google.aip.dev/132#ordering.

getParent

Required. The parent (project and location) where the Memberships will be listed. Specified in the format projects/*/locations/*.

projects/*/locations/- list memberships in all the regions.

Returns
TypeDescription
string

setParent

Required. The parent (project and location) where the Memberships will be listed. Specified in the format projects/*/locations/*.

projects/*/locations/- list memberships in all the regions.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getPageSize

Optional. When requesting a 'page' of resources, page_size specifies number of resources to return. If unspecified or set to 0, all resources will be returned.

Returns
TypeDescription
int

setPageSize

Optional. When requesting a 'page' of resources, page_size specifies number of resources to return. If unspecified or set to 0, all resources will be returned.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getPageToken

Optional. Token returned by previous call to ListMemberships which specifies the position in the list from where to continue listing the resources.

Returns
TypeDescription
string

setPageToken

Optional. Token returned by previous call to ListMemberships which specifies the position in the list from where to continue listing the resources.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getFilter

Optional. Lists Memberships that match the filter expression, following the syntax outlined in https://google.aip.dev/160.

Examples:

  • Name is bar in project foo-proj and location global: name = "projects/foo-proj/locations/global/membership/bar"
  • Memberships that have a label called foo: labels.foo:*
  • Memberships that have a label called foo whose value is bar: labels.foo = bar
  • Memberships in the CREATING state: state = CREATING
Returns
TypeDescription
string

setFilter

Optional. Lists Memberships that match the filter expression, following the syntax outlined in https://google.aip.dev/160.

Examples:

  • Name is bar in project foo-proj and location global: name = "projects/foo-proj/locations/global/membership/bar"
  • Memberships that have a label called foo: labels.foo:*
  • Memberships that have a label called foo whose value is bar: labels.foo = bar
  • Memberships in the CREATING state: state = CREATING
Parameter
NameDescription
var string
Returns
TypeDescription
$this

getOrderBy

Optional. One or more fields to compare and use to sort the output.

See https://google.aip.dev/132#ordering.

Returns
TypeDescription
string

setOrderBy

Optional. One or more fields to compare and use to sort the output.

See https://google.aip.dev/132#ordering.

Parameter
NameDescription
var string
Returns
TypeDescription
$this