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

pub struct Asset {
    pub update_time: Option<Timestamp>,
    pub name: String,
    pub asset_type: String,
    pub resource: Option<Resource>,
    pub iam_policy: Option<Policy>,
    pub org_policy: Vec<Policy>,
    pub related_assets: Option<RelatedAssets>,
    pub ancestors: Vec<String>,
    pub access_context_policy: Option<AccessContextPolicy>,
}

An asset in Google Cloud. An asset can be any resource in the Google Cloud resource hierarchy, a resource outside the Google Cloud resource hierarchy (such as Google Kubernetes Engine clusters and objects), or a policy (e.g. Cloud IAM policy). See Supported asset types for more information.

Fields

update_time: Option<Timestamp>

The last update timestamp of an asset. update_time is updated when create/update/delete operation is performed.

name: String

The full name of the asset. Example: //compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1

See Resource names for more information.

asset_type: String

The type of the asset. Example: compute.googleapis.com/Disk

See Supported asset types for more information.

resource: Option<Resource>

A representation of the resource.

iam_policy: Option<Policy>

A representation of the Cloud IAM policy set on a Google Cloud resource. There can be a maximum of one Cloud IAM policy set on any given resource. In addition, Cloud IAM policies inherit their granted access scope from any policies set on parent resources in the resource hierarchy. Therefore, the effectively policy is the union of both the policy set on this resource and each policy set on all of the resource’s ancestry resource levels in the hierarchy. See this topic for more information.

org_policy: Vec<Policy>

A representation of an organization policy. There can be more than one organization policy with different constraints set on a given resource.

related_assets: Option<RelatedAssets>

The related assets of the asset of one relationship type. One asset only represents one type of relationship.

ancestors: Vec<String>

The ancestry path of an asset in Google Cloud resource hierarchy, represented as a list of relative resource names. An ancestry path starts with the closest ancestor in the hierarchy and ends at root. If the asset is a project, folder, or organization, the ancestry path starts from the asset itself.

Example: ["projects/123456789", "folders/5432", "organizations/1234"]

access_context_policy: Option<AccessContextPolicy>

A representation of an access policy.

Trait Implementations

impl Clone for Asset[src]

impl Debug for Asset[src]

impl Default for Asset[src]

impl Message for Asset[src]

impl PartialEq<Asset> for Asset[src]

impl StructuralPartialEq for Asset[src]

Auto Trait Implementations

impl RefUnwindSafe for Asset

impl Send for Asset

impl Sync for Asset

impl Unpin for Asset

impl UnwindSafe for Asset

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]