Class Asset (3.26.0)

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 <>, a resource outside the Google Cloud resource hierarchy (such as Google Kubernetes Engine clusters and objects), or a policy (e.g. IAM policy). See 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:


name str
The full name of the asset. Example: // See `Resource names
asset_type str
The type of the asset. Example: See `Supported asset types
A representation of the resource.
iam_policy google.iam.v1.policy_pb2.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
org_policy MutableSequence[]
A representation of an `organization policy
access_policy google.identity.accesscontextmanager.v1.access_policy_pb2.AccessPolicy
Please also refer to the `access policy 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
ancestors MutableSequence[str]
The ancestry path of an asset in Google Cloud `resource hierarchy