Struct google_api_proto::google::cloud::resourcemanager::v3::SearchProjectsRequest
source · pub struct SearchProjectsRequest {
pub query: String,
pub page_token: String,
pub page_size: i32,
}
Expand description
The request sent to the [SearchProjects][google.cloud.resourcemanager.v3.Projects.SearchProjects] method.
Fields§
§query: String
Optional. A query string for searching for projects that the caller has
resourcemanager.projects.get
permission to. If multiple fields are
included in the query, then it will return results that match any of the
fields. Some eligible fields are:
displayName
,name
: Filters by displayName.parent
: Project’s parent (for example:folders/123
,organizations/*
). Preferparent
field overparent.type
andparent.id
.parent.type
: Parent’s type:folder
ororganization
.parent.id
: Parent’s id number (for example:123
).id
,projectId
: Filters by projectId.state
,lifecycleState
: Filters by state.labels
: Filters by label name or value.labels.<key>
(where<key>
is the name of a label): Filters by label name.
Search expressions are case insensitive.
Some examples queries:
name:how*
: The project’s name starts with “how”.name:Howl
: The project’s name isHowl
orhowl
.name:HOWL
: Equivalent to above.NAME:howl
: Equivalent to above.labels.color:*
: The project has the labelcolor
.labels.color:red
: The project’s labelcolor
has the valuered
.labels.color:red labels.size:big
: The project’s labelcolor
has the valuered
or its labelsize
has the valuebig
.
If no query is specified, the call will return projects for which the user
has the resourcemanager.projects.get
permission.
page_token: String
Optional. A pagination token returned from a previous call to [ListProjects] [google.cloud.resourcemanager.v3.Projects.ListProjects] that indicates from where listing should continue.
page_size: i32
Optional. The maximum number of projects to return in the response. The server can return fewer projects than requested. If unspecified, server picks an appropriate default.
Trait Implementations§
source§impl Clone for SearchProjectsRequest
impl Clone for SearchProjectsRequest
source§fn clone(&self) -> SearchProjectsRequest
fn clone(&self) -> SearchProjectsRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SearchProjectsRequest
impl Debug for SearchProjectsRequest
source§impl Default for SearchProjectsRequest
impl Default for SearchProjectsRequest
source§impl Message for SearchProjectsRequest
impl Message for SearchProjectsRequest
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 SearchProjectsRequest
impl PartialEq for SearchProjectsRequest
source§fn eq(&self, other: &SearchProjectsRequest) -> bool
fn eq(&self, other: &SearchProjectsRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SearchProjectsRequest
Auto Trait Implementations§
impl Freeze for SearchProjectsRequest
impl RefUnwindSafe for SearchProjectsRequest
impl Send for SearchProjectsRequest
impl Sync for SearchProjectsRequest
impl Unpin for SearchProjectsRequest
impl UnwindSafe for SearchProjectsRequest
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