Class Asset

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 policy (e.g. Cloud IAM policy), 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.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes
NameDescription
google.protobuf.timestamp_pb2.Timestampupdate_time
The last update timestamp of an asset. update_time is updated when create/update/delete operation is performed.
strname
The full name of the asset. Example: ``//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1`` See `Resource names
strasset_type
The type of the asset. Example: ``compute.googleapis.com/Disk`` See `Supported asset types
google.cloud.asset_v1.types.Resourceresource
A representation of the resource.
google.iam.v1.policy_pb2.Policyiam_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
Sequence[google.cloud.orgpolicy.v1.orgpolicy_pb2.Policy]org_policy
A representation of an `organization policy
google.identity.accesscontextmanager.v1.access_policy_pb2.AccessPolicyaccess_policy
Please also refer to the `access policy user guide
google.identity.accesscontextmanager.v1.access_level_pb2.AccessLevelaccess_level
Please also refer to the `access level user guide
google.identity.accesscontextmanager.v1.service_perimeter_pb2.ServicePerimeterservice_perimeter
Please also refer to the `service perimeter user guide
google.cloud.osconfig_v1.Inventoryos_inventory
A representation of runtime OS Inventory information. See `this topic
google.cloud.asset_v1.types.RelatedAssetsrelated_assets
The related assets of the asset of one relationship type. One asset only represents one type of relationship.
Sequence[str]ancestors
The ancestry path of an asset in Google Cloud `resource hierarchy

Inheritance

builtins.object > proto.message.Message > Asset