pub struct SearchResourcesRequest {
pub location: String,
pub query: String,
pub filter: String,
pub page_size: i32,
pub page_token: String,
}
Expand description
The [SearchResources][google.cloud.apihub.v1.ApiHub.SearchResources] method’s request.
Fields§
§location: String
Required. The resource name of the location which will be of the type
projects/{project_id}/locations/{location_id}
. This field is used to
identify the instance of API-Hub in which resources should be searched.
query: String
Required. The free text search query. This query can contain keywords which could be related to any detail of the API-Hub resources such display names, descriptions, attributes etc.
filter: String
Optional. An expression that filters the list of search results.
A filter expression consists of a field name, a comparison operator,
and a value for filtering. The value must be a string, a number, or a
boolean. The comparison operator must be =
. Filters are not case
sensitive.
The following field names are eligible for filtering:
* resource_type
- The type of resource in the search results.
Must be one of the following: Api
, ApiOperation
, Deployment
,
Definition
, Spec
or Version
. This field can only be specified once
in the filter.
Here are is an example:
resource_type = Api
- The resource_type is Api.
page_size: i32
Optional. The maximum number of search results to return. The service may
return fewer than this value. If unspecified at most 10 search results will
be returned. If value is negative then INVALID_ARGUMENT
error is
returned. The maximum value is 25; values above 25 will be coerced to 25.
While paginating, you can specify a new page size parameter for each page
of search results to be listed.
page_token: String
Optional. A page token, received from a previous [SearchResources][SearchResources] call. Specify this parameter to retrieve the next page of transactions.
When paginating, you must specify the page_token
parameter and all the
other parameters except
[page_size][google.cloud.apihub.v1.SearchResourcesRequest.page_size]
should be specified with the same value which was used in the previous
call. If the other fields are set with a different value than the previous
call then INVALID_ARGUMENT
error is returned.
Trait Implementations§
Source§impl Clone for SearchResourcesRequest
impl Clone for SearchResourcesRequest
Source§fn clone(&self) -> SearchResourcesRequest
fn clone(&self) -> SearchResourcesRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for SearchResourcesRequest
impl Debug for SearchResourcesRequest
Source§impl Default for SearchResourcesRequest
impl Default for SearchResourcesRequest
Source§impl Message for SearchResourcesRequest
impl Message for SearchResourcesRequest
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 SearchResourcesRequest
impl PartialEq for SearchResourcesRequest
impl StructuralPartialEq for SearchResourcesRequest
Auto Trait Implementations§
impl Freeze for SearchResourcesRequest
impl RefUnwindSafe for SearchResourcesRequest
impl Send for SearchResourcesRequest
impl Sync for SearchResourcesRequest
impl Unpin for SearchResourcesRequest
impl UnwindSafe for SearchResourcesRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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