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.
3755 3756 3757 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 3755 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
3747 3748 3749 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 3747 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
3753 3754 3755 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 3753 def full_resource_name @full_resource_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3760 3761 3762 3763 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 3760 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 |