Class: Google::Apis::CloudassetV1::RelatedResource

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_typeString

The type of the asset. Example: compute.googleapis.com/Instance Corresponds to the JSON property assetType

Returns:

  • (String)


5178
5179
5180
# File 'lib/google/apis/cloudasset_v1/classes.rb', line 5178

def asset_type
  @asset_type
end

#full_resource_nameString

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

Returns:

  • (String)


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