(::String) — Optional. The filter to list results by.
General filter string syntax:
<field> <operator> <value> (<logical connector>)
<field> can be name, labels.<key> for map field, or
attributes.<field> for attributes field
<operator> can be <, >, <=, >=, !=, =, :. Of which :
means HAS, and is roughly the same as =
<value> must be the same data type as field
<logical connector> can be AND, OR, NOT
Examples of valid filters:
labels.owner returns namespaces that have a label with the key
owner, this is the same as labels:owner
labels.owner=sd returns namespaces that have key/value owner=sd
name>projects/my-project/locations/us-east1/namespaces/namespace-c
returns namespaces that have name that is alphabetically later than the
string, so "namespace-e" is returned but "namespace-a" is not
labels.owner!=sd AND labels.foo=bar returns namespaces that have
owner in label key but value is not sd AND have key/value foo=bar
doesnotexist.foo=bar returns an empty list. Note that namespace
doesn't have a field called "doesnotexist". Since the filter does not
match any namespaces, it returns no results
attributes.managed_registration=true returns namespaces that are
managed by a GCP product or service
For more information about filtering, see
API Filtering.
#filter=
deffilter=(value)->::String
Parameter
value (::String) — Optional. The filter to list results by.
General filter string syntax:
<field> <operator> <value> (<logical connector>)
<field> can be name, labels.<key> for map field, or
attributes.<field> for attributes field
<operator> can be <, >, <=, >=, !=, =, :. Of which :
means HAS, and is roughly the same as =
<value> must be the same data type as field
<logical connector> can be AND, OR, NOT
Examples of valid filters:
labels.owner returns namespaces that have a label with the key
owner, this is the same as labels:owner
labels.owner=sd returns namespaces that have key/value owner=sd
name>projects/my-project/locations/us-east1/namespaces/namespace-c
returns namespaces that have name that is alphabetically later than the
string, so "namespace-e" is returned but "namespace-a" is not
labels.owner!=sd AND labels.foo=bar returns namespaces that have
owner in label key but value is not sd AND have key/value foo=bar
doesnotexist.foo=bar returns an empty list. Note that namespace
doesn't have a field called "doesnotexist". Since the filter does not
match any namespaces, it returns no results
attributes.managed_registration=true returns namespaces that are
managed by a GCP product or service
For more information about filtering, see
API Filtering.
Returns
(::String) — Optional. The filter to list results by.
General filter string syntax:
<field> <operator> <value> (<logical connector>)
<field> can be name, labels.<key> for map field, or
attributes.<field> for attributes field
<operator> can be <, >, <=, >=, !=, =, :. Of which :
means HAS, and is roughly the same as =
<value> must be the same data type as field
<logical connector> can be AND, OR, NOT
Examples of valid filters:
labels.owner returns namespaces that have a label with the key
owner, this is the same as labels:owner
labels.owner=sd returns namespaces that have key/value owner=sd
name>projects/my-project/locations/us-east1/namespaces/namespace-c
returns namespaces that have name that is alphabetically later than the
string, so "namespace-e" is returned but "namespace-a" is not
labels.owner!=sd AND labels.foo=bar returns namespaces that have
owner in label key but value is not sd AND have key/value foo=bar
doesnotexist.foo=bar returns an empty list. Note that namespace
doesn't have a field called "doesnotexist". Since the filter does not
match any namespaces, it returns no results
attributes.managed_registration=true returns namespaces that are
managed by a GCP product or service
For more information about filtering, see
API Filtering.
#order_by
deforder_by()->::String
Returns
(::String) — Optional. The order to list results by.
General order_by string syntax: <field> (<asc|desc>) (,)
<field> allows value: name
<asc|desc> ascending or descending order by <field>. If this is
left blank, asc is used
Note that an empty order_by string results in default order, which is
order by name in ascending order.
#order_by=
deforder_by=(value)->::String
Parameter
value (::String) — Optional. The order to list results by.
General order_by string syntax: <field> (<asc|desc>) (,)
<field> allows value: name
<asc|desc> ascending or descending order by <field>. If this is
left blank, asc is used
Note that an empty order_by string results in default order, which is
order by name in ascending order.
Returns
(::String) — Optional. The order to list results by.
General order_by string syntax: <field> (<asc|desc>) (,)
<field> allows value: name
<asc|desc> ascending or descending order by <field>. If this is
left blank, asc is used
Note that an empty order_by string results in default order, which is
order by name in ascending order.
#page_size
defpage_size()->::Integer
Returns
(::Integer) — Optional. The maximum number of items to return. The default value is 100.
#page_size=
defpage_size=(value)->::Integer
Parameter
value (::Integer) — Optional. The maximum number of items to return. The default value is 100.
Returns
(::Integer) — Optional. The maximum number of items to return. The default value is 100.
#page_token
defpage_token()->::String
Returns
(::String) — Optional. The next_page_token value returned from a previous List request,
if any.
#page_token=
defpage_token=(value)->::String
Parameter
value (::String) — Optional. The next_page_token value returned from a previous List request,
if any.
Returns
(::String) — Optional. The next_page_token value returned from a previous List request,
if any.
#parent
defparent()->::String
Returns
(::String) — Required. The resource name of the project and location whose namespaces
you'd like to list.
#parent=
defparent=(value)->::String
Parameter
value (::String) — Required. The resource name of the project and location whose namespaces
you'd like to list.
Returns
(::String) — Required. The resource name of the project and location whose namespaces
you'd like to list.
[[["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-07 UTC."],[],[],null,["# Service Directory V1beta1 API - Class Google::Cloud::ServiceDirectory::V1beta1::ListNamespacesRequest (v0.18.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.18.0 (latest)](/ruby/docs/reference/google-cloud-service_directory-v1beta1/latest/Google-Cloud-ServiceDirectory-V1beta1-ListNamespacesRequest)\n- [0.17.1](/ruby/docs/reference/google-cloud-service_directory-v1beta1/0.17.1/Google-Cloud-ServiceDirectory-V1beta1-ListNamespacesRequest)\n- [0.16.0](/ruby/docs/reference/google-cloud-service_directory-v1beta1/0.16.0/Google-Cloud-ServiceDirectory-V1beta1-ListNamespacesRequest)\n- [0.15.2](/ruby/docs/reference/google-cloud-service_directory-v1beta1/0.15.2/Google-Cloud-ServiceDirectory-V1beta1-ListNamespacesRequest)\n- [0.14.2](/ruby/docs/reference/google-cloud-service_directory-v1beta1/0.14.2/Google-Cloud-ServiceDirectory-V1beta1-ListNamespacesRequest)\n- [0.13.0](/ruby/docs/reference/google-cloud-service_directory-v1beta1/0.13.0/Google-Cloud-ServiceDirectory-V1beta1-ListNamespacesRequest)\n- [0.12.1](/ruby/docs/reference/google-cloud-service_directory-v1beta1/0.12.1/Google-Cloud-ServiceDirectory-V1beta1-ListNamespacesRequest)\n- [0.11.1](/ruby/docs/reference/google-cloud-service_directory-v1beta1/0.11.1/Google-Cloud-ServiceDirectory-V1beta1-ListNamespacesRequest)\n- [0.10.0](/ruby/docs/reference/google-cloud-service_directory-v1beta1/0.10.0/Google-Cloud-ServiceDirectory-V1beta1-ListNamespacesRequest)\n- [0.9.0](/ruby/docs/reference/google-cloud-service_directory-v1beta1/0.9.0/Google-Cloud-ServiceDirectory-V1beta1-ListNamespacesRequest)\n- [0.8.0](/ruby/docs/reference/google-cloud-service_directory-v1beta1/0.8.0/Google-Cloud-ServiceDirectory-V1beta1-ListNamespacesRequest)\n- [0.7.4](/ruby/docs/reference/google-cloud-service_directory-v1beta1/0.7.4/Google-Cloud-ServiceDirectory-V1beta1-ListNamespacesRequest) \nReference documentation and code samples for the Service Directory V1beta1 API class Google::Cloud::ServiceDirectory::V1beta1::ListNamespacesRequest.\n\nThe request message for\n[RegistrationService.ListNamespaces](/ruby/docs/reference/google-cloud-service_directory-v1beta1/latest/Google-Cloud-ServiceDirectory-V1beta1-RegistrationService-Client#Google__Cloud__ServiceDirectory__V1beta1__RegistrationService__Client_list_namespaces_instance_ \"Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client#list_namespaces (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. The filter to list results by.\n\n General `filter` string syntax:\n `\u003cfield\u003e \u003coperator\u003e \u003cvalue\u003e (\u003clogical connector\u003e)`\n - `\u003cfield\u003e` can be `name`, `labels.\u003ckey\u003e` for map field, or `attributes.\u003cfield\u003e` for attributes field\n - `\u003coperator\u003e` can be `\u003c`, `\u003e`, `\u003c=`, `\u003e=`, `!=`, `=`, `:`. Of which `:` means `HAS`, and is roughly the same as `=`\n - `\u003cvalue\u003e` must be the same data type as field\n - `\u003clogical connector\u003e` can be `AND`, `OR`, `NOT`\n\n Examples of valid filters:\n - `labels.owner` returns namespaces that have a label with the key `owner`, this is the same as `labels:owner`\n - `labels.owner=sd` returns namespaces that have key/value `owner=sd`\n - `name\u003eprojects/my-project/locations/us-east1/namespaces/namespace-c` returns namespaces that have name that is alphabetically later than the string, so \"namespace-e\" is returned but \"namespace-a\" is not\n - `labels.owner!=sd AND labels.foo=bar` returns namespaces that have `owner` in label key but value is not `sd` AND have key/value `foo=bar`\n - `doesnotexist.foo=bar` returns an empty list. Note that namespace doesn't have a field called \"doesnotexist\". Since the filter does not match any namespaces, it returns no results\n - `attributes.managed_registration=true` returns namespaces that are managed by a GCP product or service\n\n For more information about filtering, see\n [API Filtering](https://aip.dev/160).\n\n### #filter=\n\n def filter=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Optional. The filter to list results by.\n\n\n General `filter` string syntax:\n `\u003cfield\u003e \u003coperator\u003e \u003cvalue\u003e (\u003clogical connector\u003e)`\n - `\u003cfield\u003e` can be `name`, `labels.\u003ckey\u003e` for map field, or `attributes.\u003cfield\u003e` for attributes field\n - `\u003coperator\u003e` can be `\u003c`, `\u003e`, `\u003c=`, `\u003e=`, `!=`, `=`, `:`. Of which `:` means `HAS`, and is roughly the same as `=`\n - `\u003cvalue\u003e` must be the same data type as field\n - `\u003clogical connector\u003e` can be `AND`, `OR`, `NOT`\n\n Examples of valid filters:\n - `labels.owner` returns namespaces that have a label with the key `owner`, this is the same as `labels:owner`\n - `labels.owner=sd` returns namespaces that have key/value `owner=sd`\n - `name\u003eprojects/my-project/locations/us-east1/namespaces/namespace-c` returns namespaces that have name that is alphabetically later than the string, so \"namespace-e\" is returned but \"namespace-a\" is not\n - `labels.owner!=sd AND labels.foo=bar` returns namespaces that have `owner` in label key but value is not `sd` AND have key/value `foo=bar`\n - `doesnotexist.foo=bar` returns an empty list. Note that namespace doesn't have a field called \"doesnotexist\". Since the filter does not match any namespaces, it returns no results\n - `attributes.managed_registration=true` returns namespaces that are managed by a GCP product or service\n\n For more information about filtering, see\n[API Filtering](https://aip.dev/160). \n**Returns**\n\n- (::String) --- Optional. The filter to list results by.\n\n General `filter` string syntax:\n `\u003cfield\u003e \u003coperator\u003e \u003cvalue\u003e (\u003clogical connector\u003e)`\n - `\u003cfield\u003e` can be `name`, `labels.\u003ckey\u003e` for map field, or `attributes.\u003cfield\u003e` for attributes field\n - `\u003coperator\u003e` can be `\u003c`, `\u003e`, `\u003c=`, `\u003e=`, `!=`, `=`, `:`. Of which `:` means `HAS`, and is roughly the same as `=`\n - `\u003cvalue\u003e` must be the same data type as field\n - `\u003clogical connector\u003e` can be `AND`, `OR`, `NOT`\n\n Examples of valid filters:\n - `labels.owner` returns namespaces that have a label with the key `owner`, this is the same as `labels:owner`\n - `labels.owner=sd` returns namespaces that have key/value `owner=sd`\n - `name\u003eprojects/my-project/locations/us-east1/namespaces/namespace-c` returns namespaces that have name that is alphabetically later than the string, so \"namespace-e\" is returned but \"namespace-a\" is not\n - `labels.owner!=sd AND labels.foo=bar` returns namespaces that have `owner` in label key but value is not `sd` AND have key/value `foo=bar`\n - `doesnotexist.foo=bar` returns an empty list. Note that namespace doesn't have a field called \"doesnotexist\". Since the filter does not match any namespaces, it returns no results\n - `attributes.managed_registration=true` returns namespaces that are managed by a GCP product or service\n\n For more information about filtering, see\n [API Filtering](https://aip.dev/160).\n\n### #order_by\n\n def order_by() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Optional. The order to list results by.\n\n General `order_by` string syntax: `\u003cfield\u003e (\u003casc|desc\u003e) (,)`\n - `\u003cfield\u003e` allows value: `name`\n - `\u003casc|desc\u003e` ascending or descending order by `\u003cfield\u003e`. If this is left blank, `asc` is used\n\n Note that an empty `order_by` string results in default order, which is\n order by `name` in ascending order.\n\n### #order_by=\n\n def order_by=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Optional. The order to list results by.\n\n\n General `order_by` string syntax: `\u003cfield\u003e (\u003casc|desc\u003e) (,)`\n - `\u003cfield\u003e` allows value: `name`\n - `\u003casc|desc\u003e` ascending or descending order by `\u003cfield\u003e`. If this is left blank, `asc` is used\n\n Note that an empty `order_by` string results in default order, which is\norder by `name` in ascending order. \n**Returns**\n\n- (::String) --- Optional. The order to list results by.\n\n General `order_by` string syntax: `\u003cfield\u003e (\u003casc|desc\u003e) (,)`\n - `\u003cfield\u003e` allows value: `name`\n - `\u003casc|desc\u003e` ascending or descending order by `\u003cfield\u003e`. If this is left blank, `asc` is used\n\n Note that an empty `order_by` string results in default order, which is\n order by `name` in ascending order.\n\n### #page_size\n\n def page_size() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- Optional. The maximum number of items to return. The default value is 100.\n\n### #page_size=\n\n def page_size=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- Optional. The maximum number of items to return. The default value is 100. \n**Returns**\n\n- (::Integer) --- Optional. The maximum number of items to return. The default value is 100.\n\n### #page_token\n\n def page_token() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Optional. The next_page_token value returned from a previous List request, if any.\n\n### #page_token=\n\n def page_token=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Optional. The next_page_token value returned from a previous List request, if any. \n**Returns**\n\n- (::String) --- Optional. The next_page_token value returned from a previous List request, if any.\n\n### #parent\n\n def parent() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The resource name of the project and location whose namespaces you'd like to list.\n\n### #parent=\n\n def parent=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The resource name of the project and location whose namespaces you'd like to list. \n**Returns**\n\n- (::String) --- Required. The resource name of the project and location whose namespaces you'd like to list."]]