Class: Google::Apis::VmmigrationV1::AzureDiskDetails

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 Azure VM disk.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AzureDiskDetails

Returns a new instance of AzureDiskDetails.



500
501
502
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 500

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

Instance Attribute Details

#disk_idString

Output only. Azure disk ID. Corresponds to the JSON property diskId

Returns:

  • (String)


488
489
490
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 488

def disk_id
  @disk_id
end

#disk_numberFixnum

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

Returns:

  • (Fixnum)


493
494
495
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 493

def disk_number
  @disk_number
end

#size_gbFixnum

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

Returns:

  • (Fixnum)


498
499
500
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 498

def size_gb
  @size_gb
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



505
506
507
508
509
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 505

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