Class: Google::Apis::VmmigrationV1alpha1::OsDisk

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

A message describing the OS disk.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OsDisk

Returns a new instance of OsDisk.



2628
2629
2630
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2628

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

Instance Attribute Details

#nameString

The disk's full name. Corresponds to the JSON property name

Returns:

  • (String)


2616
2617
2618
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2616

def name
  @name
end

#size_gbFixnum

The disk's size in GB. Corresponds to the JSON property sizeGb

Returns:

  • (Fixnum)


2621
2622
2623
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2621

def size_gb
  @size_gb
end

#typeString

The disk's type. Corresponds to the JSON property type

Returns:

  • (String)


2626
2627
2628
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2626

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2633
2634
2635
2636
2637
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2633

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