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.
5262 5263 5264 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5262 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
5254 5255 5256 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5254 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
5260 5261 5262 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5260 def full_resource_name @full_resource_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5267 5268 5269 5270 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5267 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 |