Struct google_api_proto::google::cloud::servicedirectory::v1::ListNamespacesRequest
source · pub struct ListNamespacesRequest {
pub parent: String,
pub page_size: i32,
pub page_token: String,
pub filter: String,
pub order_by: String,
}
Expand description
The request message for [RegistrationService.ListNamespaces][google.cloud.servicedirectory.v1.RegistrationService.ListNamespaces].
Fields§
§parent: String
Required. The resource name of the project and location whose namespaces you’d like to list.
page_size: i32
Optional. The maximum number of items to return.
page_token: String
Optional. The next_page_token value returned from a previous List request, if any.
filter: String
Optional. The filter to list results by.
General filter
string syntax:
<field> <operator> <value> (<logical connector>)
<field>
can bename
orlabels.<key>
for map field<operator>
can be<
,>
,<=
,>=
,!=
,=
,:
. Of which:
meansHAS
, and is roughly the same as=
<value>
must be the same data type as field<logical connector>
can beAND
,OR
,NOT
Examples of valid filters:
labels.owner
returns namespaces that have a label with the keyowner
, this is the same aslabels:owner
labels.owner=sd
returns namespaces that have key/valueowner=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 notlabels.owner!=sd AND labels.foo=bar
returns namespaces that haveowner
in label key but value is notsd
AND have key/valuefoo=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
For more information about filtering, see API Filtering.
order_by: 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.
Trait Implementations§
source§impl Clone for ListNamespacesRequest
impl Clone for ListNamespacesRequest
source§fn clone(&self) -> ListNamespacesRequest
fn clone(&self) -> ListNamespacesRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ListNamespacesRequest
impl Debug for ListNamespacesRequest
source§impl Default for ListNamespacesRequest
impl Default for ListNamespacesRequest
source§impl Message for ListNamespacesRequest
impl Message for ListNamespacesRequest
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for ListNamespacesRequest
impl PartialEq for ListNamespacesRequest
source§fn eq(&self, other: &ListNamespacesRequest) -> bool
fn eq(&self, other: &ListNamespacesRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ListNamespacesRequest
Auto Trait Implementations§
impl Freeze for ListNamespacesRequest
impl RefUnwindSafe for ListNamespacesRequest
impl Send for ListNamespacesRequest
impl Sync for ListNamespacesRequest
impl Unpin for ListNamespacesRequest
impl UnwindSafe for ListNamespacesRequest
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request