class Google::Apis::CloudassetV1p1beta1::GoogleCloudAssetV1p7beta1RelatedAsset
An asset identify in Google
Cloud which contains its name, type and ancestors. 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). See [Supported asset types](cloud.google.com/asset-inventory/docs/ supported-asset-types) for more information.
Attributes
The ancestors of an asset in Google
Cloud [resource hierarchy](cloud. google.com/resource-manager/docs/cloud-platform-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. Example: `[“projects/ 123456789”, “folders/5432”, “organizations/1234”]` Corresponds to the JSON property `ancestors` @return [Array<String>]
The full name of the asset. Example: `//compute.googleapis.com/projects/ my_project_123/zones/zone1/instances/instance1` See [Resource names](https:// cloud.google.com/apis/design/resource_names#full_resource_name) for more information. Corresponds to the JSON property `asset` @return [String]
The type of the asset. Example: `compute.googleapis.com/Disk` See [Supported asset types](cloud.google.com/asset-inventory/docs/supported-asset- types) for more information. Corresponds to the JSON property `assetType` @return [String]
Public Class Methods
# File lib/google/apis/cloudasset_v1p1beta1/classes.rb, line 449 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/cloudasset_v1p1beta1/classes.rb, line 454 def update!(**args) @ancestors = args[:ancestors] if args.key?(:ancestors) @asset = args[:asset] if args.key?(:asset) @asset_type = args[:asset_type] if args.key?(:asset_type) end