Struct google_api_proto::google::cloud::asset::v1::QueryAssetsRequest
source · pub struct QueryAssetsRequest {
pub parent: String,
pub page_size: i32,
pub page_token: String,
pub timeout: Option<Duration>,
pub output_config: Option<QueryAssetsOutputConfig>,
pub query: Option<Query>,
pub time: Option<Time>,
}
Expand description
QueryAssets request.
Fields§
§parent: String
Required. The relative name of the root asset. This can only be an organization number (such as “organizations/123”), a project ID (such as “projects/my-project-id”), or a project number (such as “projects/12345”), or a folder number (such as “folders/123”).
Only assets belonging to the parent
will be returned.
page_size: i32
Optional. The maximum number of rows to return in the results. Responses are limited to 10 MB and 1000 rows.
By default, the maximum row count is 1000. When the byte or row count limit is reached, the rest of the query results will be paginated.
The field will be ignored when [output_config] is specified.
page_token: String
Optional. A page token received from previous QueryAssets
.
The field will be ignored when [output_config] is specified.
timeout: Option<Duration>
Optional. Specifies the maximum amount of time that the client is willing
to wait for the query to complete. By default, this limit is 5 min for the
first query, and 1 minute for the following queries. If the query is
complete, the done
field in the QueryAssetsResponse
is true, otherwise
false.
Like BigQuery jobs.query API The call is not guaranteed to wait for the specified timeout; it typically returns after around 200 seconds (200,000 milliseconds), even if the query is not complete.
The field will be ignored when [output_config] is specified.
output_config: Option<QueryAssetsOutputConfig>
Optional. Destination where the query results will be saved.
When this field is specified, the query results won’t be saved in the [QueryAssetsResponse.query_result]. Instead [QueryAssetsResponse.output_config] will be set.
Meanwhile, [QueryAssetsResponse.job_reference] will be set and can be used to check the status of the query job when passed to a following [QueryAssets] API call.
query: Option<Query>
§time: Option<Time>
Specifies what time period or point in time to query asset metadata at.
- unset - query asset metadata as it is right now
- [read_time_window] - query asset metadata as it was at any point in time between [start_time] and [end_time].
- [read_time] - query asset metadata as it was at that point in time. If data for the timestamp/date range selected does not exist, it will simply return a valid response with no rows.
Trait Implementations§
source§impl Clone for QueryAssetsRequest
impl Clone for QueryAssetsRequest
source§fn clone(&self) -> QueryAssetsRequest
fn clone(&self) -> QueryAssetsRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for QueryAssetsRequest
impl Debug for QueryAssetsRequest
source§impl Default for QueryAssetsRequest
impl Default for QueryAssetsRequest
source§impl Message for QueryAssetsRequest
impl Message for QueryAssetsRequest
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 QueryAssetsRequest
impl PartialEq for QueryAssetsRequest
source§fn eq(&self, other: &QueryAssetsRequest) -> bool
fn eq(&self, other: &QueryAssetsRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for QueryAssetsRequest
Auto Trait Implementations§
impl Freeze for QueryAssetsRequest
impl RefUnwindSafe for QueryAssetsRequest
impl Send for QueryAssetsRequest
impl Sync for QueryAssetsRequest
impl Unpin for QueryAssetsRequest
impl UnwindSafe for QueryAssetsRequest
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