Class: Google::Cloud::Asset::V1::RelatedAsset
- Inherits:
-
Object
- Object
- Google::Cloud::Asset::V1::RelatedAsset
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/asset/v1/assets.rb
Overview
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, 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 for more information.
Instance Attribute Summary collapse
-
#ancestors ⇒ ::Array<::String>
The ancestors of an asset in Google Cloud resource hierarchy, represented as a list of relative resource names.
-
#asset ⇒ ::String
The full name of the asset.
-
#asset_type ⇒ ::String
The type of the asset.
Instance Attribute Details
#ancestors ⇒ ::Array<::String>
Returns The ancestors of an asset in Google Cloud 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"]
.
278 279 280 281 |
# File 'proto_docs/google/cloud/asset/v1/assets.rb', line 278 class RelatedAsset include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#asset ⇒ ::String
Returns The full name of the asset. Example:
//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1
See Resource names for more information.
278 279 280 281 |
# File 'proto_docs/google/cloud/asset/v1/assets.rb', line 278 class RelatedAsset include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#asset_type ⇒ ::String
Returns The type of the asset. Example: compute.googleapis.com/Disk
See Supported asset types for more information.
278 279 280 281 |
# File 'proto_docs/google/cloud/asset/v1/assets.rb', line 278 class RelatedAsset include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |