Struct gapi_grpc::google::cloud::asset::v1p7beta1::ExportAssetsRequest[][src]

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>,
}

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:

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

impl ExportAssetsRequest[src]

pub fn content_type(&self) -> ContentType[src]

Returns the enum value of content_type, or the default if the field is set to an invalid enum value.

pub fn set_content_type(&mut self, value: ContentType)[src]

Sets content_type to the provided enum value.

Trait Implementations

impl Clone for ExportAssetsRequest[src]

impl Debug for ExportAssetsRequest[src]

impl Default for ExportAssetsRequest[src]

impl Message for ExportAssetsRequest[src]

impl PartialEq<ExportAssetsRequest> for ExportAssetsRequest[src]

impl StructuralPartialEq for ExportAssetsRequest[src]

Auto Trait Implementations

impl RefUnwindSafe for ExportAssetsRequest

impl Send for ExportAssetsRequest

impl Sync for ExportAssetsRequest

impl Unpin for ExportAssetsRequest

impl UnwindSafe for ExportAssetsRequest

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]