[][src]Struct google_cloudasset1::Asset

pub struct Asset {
    pub iam_policy: Option<Policy>,
    pub asset_type: Option<String>,
    pub resource: Option<ResourceType>,
    pub name: Option<String>,
    pub org_policy: Option<Vec<GoogleCloudOrgpolicyV1Policy>>,
}

Cloud asset. This includes all Google Cloud Platform resources, Cloud IAM policies, and other non-GCP assets.

This type is not used in any activity, and only used as part of another schema.

Fields

iam_policy: Option<Policy>

Representation of the actual Cloud IAM policy set on a cloud resource. For each resource, there must be at most one Cloud IAM policy set on it.

asset_type: Option<String>

Type of the asset. Example: "compute.googleapis.com/Disk".

resource: Option<ResourceType>

Representation of the resource.

name: Option<String>

The full name of the asset. For example: //compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1. See Resource Names for more information.

org_policy: Option<Vec<GoogleCloudOrgpolicyV1Policy>>

Representation of the Cloud Organization Policy set on an asset. For each asset, there could be multiple Organization policies with different constraints.

Trait Implementations

impl Part for Asset[src]

impl Default for Asset[src]

impl Clone for Asset[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Asset[src]

impl Serialize for Asset[src]

impl<'de> Deserialize<'de> for Asset[src]

Auto Trait Implementations

impl Send for Asset

impl Unpin for Asset

impl Sync for Asset

impl UnwindSafe for Asset

impl RefUnwindSafe for Asset

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]