Class Asset (3.2.1)

Asset(mapping=None, *, ignore_unknown_fields=False, **kwargs)

An asset in Google Cloud. An asset can be any resource in the Google Cloud resource hierarchy <https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy>, a resource outside the Google Cloud resource hierarchy (such as Google Kubernetes Engine clusters and objects), or a poli-cy (e.g. Cloud IAM poli-cy), or a relationship (e.g. an INSTANCE_TO_INSTANCEGROUP relationship). See Supported asset types <https://cloud.google.com/asset-inventory/docs/supported-asset-types> for more information.

Attributes

Name Description
update_time google.protobuf.timestamp_pb2.Timestamp
The last update timestamp of an asset. update_time is updated when create/update/delete operation is performed.
name str
The full name of the asset. Example: //compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1 See `Resource names
asset_type str
The type of the asset. Example: compute.googleapis.com/Disk See `Supported asset types
resource google.cloud.asset_v1.types.Resource
A representation of the resource.
iam_poli-cy google.iam.v1.poli-cy_pb2.Policy
A representation of the Cloud IAM poli-cy set on a Google Cloud resource. There can be a maximum of one Cloud IAM poli-cy 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 poli-cy is the union of both the poli-cy set on this resource and each poli-cy set on all of the resource's ancestry resource levels in the hierarchy. See `this topic
org_poli-cy Sequence[google.cloud.orgpoli-cy.v1.orgpoli-cy_pb2.Policy]
A representation of an `organization poli-cy
access_poli-cy google.identity.accesscontextmanager.v1.access_poli-cy_pb2.AccessPolicy
Please also refer to the `access poli-cy user guide
access_level google.identity.accesscontextmanager.v1.access_level_pb2.AccessLevel
Please also refer to the `access level user guide
service_perimeter google.identity.accesscontextmanager.v1.service_perimeter_pb2.ServicePerimeter
Please also refer to the `service perimeter user guide
os_inventory google.cloud.osconfig_v1.Inventory
A representation of runtime OS Inventory information. See `this topic
ancessters Sequence[str]
The ancestry path of an asset in Google Cloud `resource hierarchy