Struct google_api_proto::google::cloud::support::v2::SearchCasesRequest
source · pub struct SearchCasesRequest {
pub parent: String,
pub query: String,
pub page_size: i32,
pub page_token: String,
}
Expand description
The request message for the SearchCases endpoint.
Fields§
§parent: String
The fully qualified name of parent resource to search cases under.
query: String
An expression written in filter language.
A query uses the following fields with the operators equals (=
) and
AND
:
organization
: An organization name in the formorganizations/<organization_id>
.project
: A project name in the formprojects/<project_id>
.state
: The accepted values areOPEN
orCLOSED
.priority
: The accepted values areP0
,P1
,P2
,P3
, orP4
. You can specify multiple values for priority using theOR
operator. For example,priority=P1 OR priority=P2
.creator.email
: The email address of the case creator.billingAccount
: A billing account in the formbillingAccounts/<billing_account_id>
You must specify either organization
or project
.
To search across displayName
, description
, and comments, use a global
restriction with no keyword or operator. For example, "my search"
.
To search only cases updated after a certain date, use update_time
restricted with that particular date, time, and timezone in ISO datetime
format. For example, update_time>"2020-01-01T00:00:00-05:00"
.
update_time
only supports the greater than operator (>
).
Examples:
organization="organizations/123456789"
project="projects/my-project-id"
project="projects/123456789"
billing_account="billingAccounts/123456-A0B0C0-CUZ789"
organization="organizations/123456789" AND state=CLOSED
project="projects/my-project-id" AND creator.email="tester@example.com"
project="projects/my-project-id" AND (priority=P0 OR priority=P1)
page_size: i32
The maximum number of cases fetched with each request. The default page size is 10.
page_token: String
A token identifying the page of results to return. If unspecified, the first page is retrieved.
Trait Implementations§
source§impl Clone for SearchCasesRequest
impl Clone for SearchCasesRequest
source§fn clone(&self) -> SearchCasesRequest
fn clone(&self) -> SearchCasesRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SearchCasesRequest
impl Debug for SearchCasesRequest
source§impl Default for SearchCasesRequest
impl Default for SearchCasesRequest
source§impl Message for SearchCasesRequest
impl Message for SearchCasesRequest
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 SearchCasesRequest
impl PartialEq for SearchCasesRequest
source§fn eq(&self, other: &SearchCasesRequest) -> bool
fn eq(&self, other: &SearchCasesRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SearchCasesRequest
Auto Trait Implementations§
impl Freeze for SearchCasesRequest
impl RefUnwindSafe for SearchCasesRequest
impl Send for SearchCasesRequest
impl Sync for SearchCasesRequest
impl Unpin for SearchCasesRequest
impl UnwindSafe for SearchCasesRequest
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