Class: Google::Apis::VmmigrationV1alpha1::VmwareDiskDetails

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/vmmigration_v1alpha1/classes.rb,
lib/google/apis/vmmigration_v1alpha1/representations.rb,
lib/google/apis/vmmigration_v1alpha1/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.



4823
4824
4825
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 4823

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)


4811
4812
4813
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 4811

def disk_number
  @disk_number
end

#labelString

Output only. The disk label. Corresponds to the JSON property label

Returns:

  • (String)


4816
4817
4818
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 4816

def label
  @label
end

#size_gbFixnum

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

Returns:

  • (Fixnum)


4821
4822
4823
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 4821

def size_gb
  @size_gb
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4828
4829
4830
4831
4832
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 4828

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