Class: Google::Apis::VmmigrationV1::AwsDiskDetails

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

The details of an AWS instance disk.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AwsDiskDetails

Returns a new instance of AwsDiskDetails.



196
197
198
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 196

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

Instance Attribute Details

#disk_numberFixnum

Output only. The ordinal number of the disk. Corresponds to the JSON property diskNumber

Returns:

  • (Fixnum)


184
185
186
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 184

def disk_number
  @disk_number
end

#size_gbFixnum

Output only. Size in GB. Corresponds to the JSON property sizeGb

Returns:

  • (Fixnum)


189
190
191
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 189

def size_gb
  @size_gb
end

#volume_idString

Output only. AWS volume ID. Corresponds to the JSON property volumeId

Returns:

  • (String)


194
195
196
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 194

def volume_id
  @volume_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



201
202
203
204
205
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 201

def update!(**args)
  @disk_number = args[:disk_number] if args.key?(:disk_number)
  @size_gb = args[:size_gb] if args.key?(:size_gb)
  @volume_id = args[:volume_id] if args.key?(:volume_id)
end