Asset(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Cloud asset. This includes all Google Cloud Platform resources, Cloud IAM policies, and other non-GCP assets.
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
Name | Description |
name |
str
The full name of the asset. For example: ``//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1``. See `Resource Names |
asset_type |
str
Type of the asset. Example: "compute.googleapis.com/Disk". |
resource |
google.cloud.asset_v1p5beta1.types.Resource
Representation of the resource. |
iam_policy |
google.iam.v1.policy_pb2.Policy
Representation of the actual Cloud IAM policy set on a cloud resource. For each resource, there must be at most one Cloud IAM policy set on it. |
org_policy |
Sequence[google.cloud.orgpolicy.v1.orgpolicy_pb2.Policy]
Representation of the Cloud Organization Policy set on an asset. For each asset, there could be multiple Organization policies with different constraints. |
access_policy |
google.identity.accesscontextmanager.v1.access_policy_pb2.AccessPolicy
This field is a member of `oneof`_ ``access_context_policy``. |
access_level |
google.identity.accesscontextmanager.v1.access_level_pb2.AccessLevel
This field is a member of `oneof`_ ``access_context_policy``. |
service_perimeter |
google.identity.accesscontextmanager.v1.service_perimeter_pb2.ServicePerimeter
This field is a member of `oneof`_ ``access_context_policy``. |
ancestors |
Sequence[str]
Asset's ancestry path in Cloud Resource Manager (CRM) hierarchy, represented as a list of relative resource names. Ancestry path starts with the closest CRM ancestor and ends at root. If the asset is a CRM project/folder/organization, this starts from the asset itself. Example: ["projects/123456789", "folders/5432", "organizations/1234"] |