Struct google_cloudasset1::api::Asset
source · pub struct Asset {Show 13 fields
pub access_level: Option<GoogleIdentityAccesscontextmanagerV1AccessLevel>,
pub access_policy: Option<GoogleIdentityAccesscontextmanagerV1AccessPolicy>,
pub ancestors: Option<Vec<String>>,
pub asset_type: Option<String>,
pub iam_policy: Option<Policy>,
pub name: Option<String>,
pub org_policy: Option<Vec<GoogleCloudOrgpolicyV1Policy>>,
pub os_inventory: Option<Inventory>,
pub related_asset: Option<RelatedAsset>,
pub related_assets: Option<RelatedAssets>,
pub resource: Option<Resource>,
pub service_perimeter: Option<GoogleIdentityAccesscontextmanagerV1ServicePerimeter>,
pub update_time: Option<DateTime<Utc>>,
}
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. IAM policy), or a relationship (e.g. an INSTANCE_TO_INSTANCEGROUP relationship). See Supported asset types for more information.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- list assets (none)
Fields§
§access_level: Option<GoogleIdentityAccesscontextmanagerV1AccessLevel>
Also refer to the access level user guide.
access_policy: Option<GoogleIdentityAccesscontextmanagerV1AccessPolicy>
Also refer to the access policy user guide.
ancestors: Option<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"]
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 IAM policy set on a Google Cloud resource. There can be a maximum of one IAM policy set on any given resource. In addition, 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.
os_inventory: Option<Inventory>
A representation of runtime OS Inventory information. See this topic for more information.
One related asset of the current asset.
DEPRECATED. This field only presents for the purpose of backward-compatibility. The server will never generate responses with this field. The related assets of the asset of one relationship type. One asset only represents one type of relationship.
resource: Option<Resource>
A representation of the resource.
service_perimeter: Option<GoogleIdentityAccesscontextmanagerV1ServicePerimeter>
Also refer to the service perimeter user guide.
update_time: Option<DateTime<Utc>>
The last update timestamp of an asset. update_time is updated when create/update/delete operation is performed.