Struct google_cloudasset1_beta1::api::Asset[][src]

pub struct Asset {
    pub access_level: Option<GoogleIdentityAccesscontextmanagerV1AccessLevel>,
    pub access_policy: Option<GoogleIdentityAccesscontextmanagerV1AccessPolicy>,
    pub asset_type: Option<String>,
    pub iam_policy: Option<Policy>,
    pub name: Option<String>,
    pub org_policy: Option<Vec<GoogleCloudOrgpolicyV1Policy>>,
    pub resource: Option<Resource>,
    pub service_perimeter: Option<GoogleIdentityAccesscontextmanagerV1ServicePerimeter>,
}
Expand description

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.

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

Fields

access_level: Option<GoogleIdentityAccesscontextmanagerV1AccessLevel>

Please also refer to the access level user guide.

access_policy: Option<GoogleIdentityAccesscontextmanagerV1AccessPolicy>

Please also refer to the access policy user guide.

asset_type: Option<String>

The type of the asset. Example: compute.googleapis.com/Disk See Supported asset types for more information.

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.

name: Option<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.

org_policy: Option<Vec<GoogleCloudOrgpolicyV1Policy>>

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

resource: Option<Resource>

A representation of the resource.

service_perimeter: Option<GoogleIdentityAccesscontextmanagerV1ServicePerimeter>

Please also refer to the service perimeter user guide.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.