Class: Google::Apis::ApphubV1::CloudAsset

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/apphub_v1/classes.rb,
lib/google/apis/apphub_v1/representations.rb,
lib/google/apis/apphub_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudAsset

Returns a new instance of CloudAsset.



407
408
409
# File 'lib/google/apis/apphub_v1/classes.rb', line 407

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#asset_nameString

Corresponds to the JSON property assetName

Returns:

  • (String)


400
401
402
# File 'lib/google/apis/apphub_v1/classes.rb', line 400

def asset_name
  @asset_name
end

#asset_typeString

Corresponds to the JSON property assetType

Returns:

  • (String)


405
406
407
# File 'lib/google/apis/apphub_v1/classes.rb', line 405

def asset_type
  @asset_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



412
413
414
415
# File 'lib/google/apis/apphub_v1/classes.rb', line 412

def update!(**args)
  @asset_name = args[:asset_name] if args.key?(:asset_name)
  @asset_type = args[:asset_type] if args.key?(:asset_type)
end