Class: Google::Apis::CloudassetV1::RelatedResource
- Inherits:
-
Object
- Object
- Google::Apis::CloudassetV1::RelatedResource
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudasset_v1/classes.rb,
lib/google/apis/cloudasset_v1/representations.rb,
lib/google/apis/cloudasset_v1/representations.rb
Overview
The detailed related resource.
Instance Attribute Summary collapse
-
#asset_type ⇒ String
The type of the asset.
-
#full_resource_name ⇒ String
The full resource name of the related resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RelatedResource
constructor
A new instance of RelatedResource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RelatedResource
Returns a new instance of RelatedResource.
5186 5187 5188 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5186 def initialize(**args) update!(**args) end |
Instance Attribute Details
#asset_type ⇒ String
The type of the asset. Example: compute.googleapis.com/Instance
Corresponds to the JSON property assetType
5178 5179 5180 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5178 def asset_type @asset_type end |
#full_resource_name ⇒ String
The full resource name of the related resource. Example: //compute.googleapis.
com/projects/my_proj_123/zones/instance/instance123
Corresponds to the JSON property fullResourceName
5184 5185 5186 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5184 def full_resource_name @full_resource_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5191 5192 5193 5194 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5191 def update!(**args) @asset_type = args[:asset_type] if args.key?(:asset_type) @full_resource_name = args[:full_resource_name] if args.key?(:full_resource_name) end |