Reference documentation and code samples for the GKE Hub V1beta1 API class Google::Cloud::GkeHub::V1beta1::ListMembershipsRequest.
Request message for GkeHubMembershipService.ListMemberships method.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#filter
deffilter()->::String
Returns
(::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
#filter=
deffilter=(value)->::String
Parameter
value (::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
Returns
(::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
deforder_by()->::String
Returns
(::String) — Optional. One or more fields to compare and use to sort the output.
See https://google.aip.dev/132#ordering.
#order_by=
deforder_by=(value)->::String
Parameter
value (::String) — Optional. One or more fields to compare and use to sort the output.
See https://google.aip.dev/132#ordering.
Returns
(::String) — Optional. One or more fields to compare and use to sort the output.
See https://google.aip.dev/132#ordering.
#page_size
defpage_size()->::Integer
Returns
(::Integer) — 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_size=
defpage_size=(value)->::Integer
Parameter
value (::Integer) — 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
(::Integer) — 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
defpage_token()->::String
Returns
(::String) — Optional. Token returned by previous call to ListMemberships which
specifies the position in the list from where to continue listing the
resources.
#page_token=
defpage_token=(value)->::String
Parameter
value (::String) — Optional. Token returned by previous call to ListMemberships which
specifies the position in the list from where to continue listing the
resources.
Returns
(::String) — Optional. Token returned by previous call to ListMemberships which
specifies the position in the list from where to continue listing the
resources.
#parent
defparent()->::String
Returns
(::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.
#parent=
defparent=(value)->::String
Parameter
value (::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.
Returns
(::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.
[[["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,["# GKE Hub V1beta1 API - Class Google::Cloud::GkeHub::V1beta1::ListMembershipsRequest (v0.15.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.15.0 (latest)](/ruby/docs/reference/google-cloud-gke_hub-v1beta1/latest/Google-Cloud-GkeHub-V1beta1-ListMembershipsRequest)\n- [0.14.1](/ruby/docs/reference/google-cloud-gke_hub-v1beta1/0.14.1/Google-Cloud-GkeHub-V1beta1-ListMembershipsRequest)\n- [0.13.0](/ruby/docs/reference/google-cloud-gke_hub-v1beta1/0.13.0/Google-Cloud-GkeHub-V1beta1-ListMembershipsRequest)\n- [0.12.0](/ruby/docs/reference/google-cloud-gke_hub-v1beta1/0.12.0/Google-Cloud-GkeHub-V1beta1-ListMembershipsRequest)\n- [0.11.1](/ruby/docs/reference/google-cloud-gke_hub-v1beta1/0.11.1/Google-Cloud-GkeHub-V1beta1-ListMembershipsRequest)\n- [0.10.2](/ruby/docs/reference/google-cloud-gke_hub-v1beta1/0.10.2/Google-Cloud-GkeHub-V1beta1-ListMembershipsRequest)\n- [0.9.0](/ruby/docs/reference/google-cloud-gke_hub-v1beta1/0.9.0/Google-Cloud-GkeHub-V1beta1-ListMembershipsRequest)\n- [0.8.0](/ruby/docs/reference/google-cloud-gke_hub-v1beta1/0.8.0/Google-Cloud-GkeHub-V1beta1-ListMembershipsRequest)\n- [0.7.0](/ruby/docs/reference/google-cloud-gke_hub-v1beta1/0.7.0/Google-Cloud-GkeHub-V1beta1-ListMembershipsRequest)\n- [0.6.0](/ruby/docs/reference/google-cloud-gke_hub-v1beta1/0.6.0/Google-Cloud-GkeHub-V1beta1-ListMembershipsRequest)\n- [0.5.0](/ruby/docs/reference/google-cloud-gke_hub-v1beta1/0.5.0/Google-Cloud-GkeHub-V1beta1-ListMembershipsRequest)\n- [0.4.0](/ruby/docs/reference/google-cloud-gke_hub-v1beta1/0.4.0/Google-Cloud-GkeHub-V1beta1-ListMembershipsRequest)\n- [0.3.0](/ruby/docs/reference/google-cloud-gke_hub-v1beta1/0.3.0/Google-Cloud-GkeHub-V1beta1-ListMembershipsRequest)\n- [0.2.2](/ruby/docs/reference/google-cloud-gke_hub-v1beta1/0.2.2/Google-Cloud-GkeHub-V1beta1-ListMembershipsRequest) \nReference documentation and code samples for the GKE Hub V1beta1 API class Google::Cloud::GkeHub::V1beta1::ListMembershipsRequest.\n\nRequest message for `GkeHubMembershipService.ListMemberships` method. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #filter\n\n def filter() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Optional. Lists Memberships that match the filter expression, following the\n syntax outlined in https://google.aip.dev/160.\n\n Examples:\n - Name is `bar` in project `foo-proj` and location `global`:\n\n name = \"projects/foo-proj/locations/global/membership/bar\"\n - Memberships that have a label called `foo`:\n\n labels.foo:\\*\n - Memberships that have a label called `foo` whose value is `bar`:\n\n labels.foo = bar\n - Memberships in the CREATING state:\n\n state = CREATING\n\n### #filter=\n\n def filter=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) ---\n\n Optional. Lists Memberships that match the filter expression, following the\n syntax outlined in https://google.aip.dev/160.\n\n Examples:\n - Name is `bar` in project `foo-proj` and location `global`:\n\n name = \"projects/foo-proj/locations/global/membership/bar\"\n - Memberships that have a label called `foo`:\n\n labels.foo:\\*\n - Memberships that have a label called `foo` whose value is `bar`:\n\n labels.foo = bar\n - Memberships in the CREATING state:\n\nstate = CREATING \n**Returns**\n\n- (::String) --- Optional. Lists Memberships that match the filter expression, following the\n syntax outlined in https://google.aip.dev/160.\n\n Examples:\n - Name is `bar` in project `foo-proj` and location `global`:\n\n name = \"projects/foo-proj/locations/global/membership/bar\"\n - Memberships that have a label called `foo`:\n\n labels.foo:\\*\n - Memberships that have a label called `foo` whose value is `bar`:\n\n labels.foo = bar\n - Memberships in the CREATING state:\n\n state = CREATING\n\n### #order_by\n\n def order_by() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Optional. One or more fields to compare and use to sort the output. See https://google.aip.dev/132#ordering.\n\n### #order_by=\n\n def order_by=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Optional. One or more fields to compare and use to sort the output. See https://google.aip.dev/132#ordering. \n**Returns**\n\n- (::String) --- Optional. One or more fields to compare and use to sort the output. See https://google.aip.dev/132#ordering.\n\n### #page_size\n\n def page_size() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- 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.\n\n### #page_size=\n\n def page_size=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- 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. \n**Returns**\n\n- (::Integer) --- 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.\n\n### #page_token\n\n def page_token() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Optional. Token returned by previous call to `ListMemberships` which specifies the position in the list from where to continue listing the resources.\n\n### #page_token=\n\n def page_token=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Optional. Token returned by previous call to `ListMemberships` which specifies the position in the list from where to continue listing the resources. \n**Returns**\n\n- (::String) --- Optional. Token returned by previous call to `ListMemberships` which specifies the position in the list from where to continue listing the resources.\n\n### #parent\n\n def parent() -\u003e ::String\n\n**Returns**\n\n- (::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.\n\n### #parent=\n\n def parent=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::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. \n**Returns**\n\n- (::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."]]