Struct google_api_proto::google::cloud::asset::v1p7beta1::ExportAssetsRequest
source · pub struct ExportAssetsRequest {
pub parent: String,
pub read_time: Option<Timestamp>,
pub asset_types: Vec<String>,
pub content_type: i32,
pub output_config: Option<OutputConfig>,
pub relationship_types: Vec<String>,
}
Expand description
Export asset 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”).
read_time: Option<Timestamp>
Timestamp to take an asset snapshot. This can only be set to a timestamp between the current time and the current time minus 35 days (inclusive). If not specified, the current time will be used. Due to delays in resource data collection and indexing, there is a volatile window during which running the same query may get different results.
asset_types: Vec<String>
A list of asset types to take a snapshot for. For example: “compute.googleapis.com/Disk”.
Regular expressions are also supported. For example:
- “compute.googleapis.com.*” snapshots resources whose asset type starts with “compute.googleapis.com”.
- “.*Instance” snapshots resources whose asset type ends with “Instance”.
- “.Instance.” snapshots resources whose asset type contains “Instance”.
See RE2 for all supported regular expression syntax. If the regular expression does not match any supported asset type, an INVALID_ARGUMENT error will be returned.
If specified, only matching assets will be returned, otherwise, it will snapshot all asset types. See Introduction to Cloud Asset Inventory for all supported asset types.
content_type: i32
Asset content type. If not specified, no content but the asset name will be returned.
output_config: Option<OutputConfig>
Required. Output configuration indicating where the results will be output to.
relationship_types: Vec<String>
A list of relationship types to export, for example:
INSTANCE_TO_INSTANCEGROUP
. This field should only be specified if
content_type=RELATIONSHIP. If specified, it will snapshot [asset_types]’
specified relationships, or give errors if any relationship_types’
supported types are not in [asset_types]. If not specified, it will
snapshot all [asset_types]’ supported relationships. An unspecified
[asset_types] field means all supported asset_types. See Introduction to
Cloud Asset
Inventory for all
supported asset types and relationship types.
Implementations§
source§impl ExportAssetsRequest
impl ExportAssetsRequest
sourcepub fn content_type(&self) -> ContentType
pub fn content_type(&self) -> ContentType
Returns the enum value of content_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_content_type(&mut self, value: ContentType)
pub fn set_content_type(&mut self, value: ContentType)
Sets content_type
to the provided enum value.
Trait Implementations§
source§impl Clone for ExportAssetsRequest
impl Clone for ExportAssetsRequest
source§fn clone(&self) -> ExportAssetsRequest
fn clone(&self) -> ExportAssetsRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ExportAssetsRequest
impl Debug for ExportAssetsRequest
source§impl Default for ExportAssetsRequest
impl Default for ExportAssetsRequest
source§impl Message for ExportAssetsRequest
impl Message for ExportAssetsRequest
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 ExportAssetsRequest
impl PartialEq for ExportAssetsRequest
source§fn eq(&self, other: &ExportAssetsRequest) -> bool
fn eq(&self, other: &ExportAssetsRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ExportAssetsRequest
Auto Trait Implementations§
impl Freeze for ExportAssetsRequest
impl RefUnwindSafe for ExportAssetsRequest
impl Send for ExportAssetsRequest
impl Sync for ExportAssetsRequest
impl Unpin for ExportAssetsRequest
impl UnwindSafe for ExportAssetsRequest
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