Class: Google::Apis::VmmigrationV1::VmwareDiskDetails

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 a Vmware VM disk.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ VmwareDiskDetails

Returns a new instance of VmwareDiskDetails.



3846
3847
3848
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 3846

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

Instance Attribute Details

#disk_numberFixnum

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

Returns:

  • (Fixnum)


3834
3835
3836
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 3834

def disk_number
  @disk_number
end

#labelString

The disk label. Corresponds to the JSON property label

Returns:

  • (String)


3839
3840
3841
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 3839

def label
  @label
end

#size_gbFixnum

Size in GB. Corresponds to the JSON property sizeGb

Returns:

  • (Fixnum)


3844
3845
3846
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 3844

def size_gb
  @size_gb
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3851
3852
3853
3854
3855
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 3851

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