Class: Google::Apis::VmmigrationV1::AwsSourceDiskDetails

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

Overview

Represents the source AWS Disk details.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AwsSourceDiskDetails

Returns a new instance of AwsSourceDiskDetails.



354
355
356
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 354

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

Instance Attribute Details

#disk_typeString

Optional. Output only. Disk type. Corresponds to the JSON property diskType

Returns:

  • (String)


337
338
339
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 337

def disk_type
  @disk_type
end

#size_gibFixnum

Output only. Size in GiB. Corresponds to the JSON property sizeGib

Returns:

  • (Fixnum)


342
343
344
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 342

def size_gib
  @size_gib
end

#tagsHash<String,String>

Optional. Output only. A map of AWS volume tags. Corresponds to the JSON property tags

Returns:

  • (Hash<String,String>)


347
348
349
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 347

def tags
  @tags
end

#volume_idString

Required. AWS volume ID. Corresponds to the JSON property volumeId

Returns:

  • (String)


352
353
354
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 352

def volume_id
  @volume_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



359
360
361
362
363
364
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 359

def update!(**args)
  @disk_type = args[:disk_type] if args.key?(:disk_type)
  @size_gib = args[:size_gib] if args.key?(:size_gib)
  @tags = args[:tags] if args.key?(:tags)
  @volume_id = args[:volume_id] if args.key?(:volume_id)
end