Class: Google::Apis::RedisV1::CloudAsset

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CloudAsset

Returns a new instance of CloudAsset.



296
297
298
# File 'lib/google/apis/redis_v1/classes.rb', line 296

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

Instance Attribute Details

#asset_nameString

Corresponds to the JSON property assetName

Returns:

  • (String)


289
290
291
# File 'lib/google/apis/redis_v1/classes.rb', line 289

def asset_name
  @asset_name
end

#asset_typeString

Corresponds to the JSON property assetType

Returns:

  • (String)


294
295
296
# File 'lib/google/apis/redis_v1/classes.rb', line 294

def asset_type
  @asset_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



301
302
303
304
# File 'lib/google/apis/redis_v1/classes.rb', line 301

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