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.
4908 4909 4910 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4908 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
4900 4901 4902 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4900 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
4906 4907 4908 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4906 def full_resource_name @full_resource_name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4913 4914 4915 4916 |
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 4913 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 |