Class: Google::Apis::VmmigrationV1::OsDisk

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

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.



3256
3257
3258
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 3256

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

Instance Attribute Details

#nameString

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

Returns:

  • (String)


3244
3245
3246
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 3244

def name
  @name
end

#size_gbFixnum

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

Returns:

  • (Fixnum)


3249
3250
3251
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 3249

def size_gb
  @size_gb
end

#typeString

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

Returns:

  • (String)


3254
3255
3256
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 3254

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3261
3262
3263
3264
3265
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 3261

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