Class: Google::Apis::BaremetalsolutionV2::Lun

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/baremetalsolution_v2/classes.rb,
lib/google/apis/baremetalsolution_v2/representations.rb,
lib/google/apis/baremetalsolution_v2/representations.rb

Overview

A storage Lun.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Lun

Returns a new instance of Lun.



459
460
461
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 459

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

Instance Attribute Details

#boot_lunBoolean Also known as: boot_lun?

Whether this Lun is a boot Lun. Corresponds to the JSON property bootLun

Returns:

  • (Boolean)


419
420
421
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 419

def boot_lun
  @boot_lun
end

#multiprotocol_typeString

The Lun Multiprotocol type to ensure the characteristics of the LUN are optimized for the Operating System. Corresponds to the JSON property multiprotocolType

Returns:

  • (String)


426
427
428
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 426

def multiprotocol_type
  @multiprotocol_type
end

#nameString

Output only. The name of this Lun. Corresponds to the JSON property name

Returns:

  • (String)


431
432
433
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 431

def name
  @name
end

#sharedBoolean Also known as: shared?

Whether this Lun is allowed to be shared between multiple physical servers. Corresponds to the JSON property shared

Returns:

  • (Boolean)


436
437
438
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 436

def shared
  @shared
end

#size_gbFixnum

The size of this Lun, in gigabytes. Corresponds to the JSON property sizeGb

Returns:

  • (Fixnum)


442
443
444
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 442

def size_gb
  @size_gb
end

#stateString

The state of this Volume. Corresponds to the JSON property state

Returns:

  • (String)


447
448
449
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 447

def state
  @state
end

#storage_typeString

The storage type of this Lun. Corresponds to the JSON property storageType

Returns:

  • (String)


452
453
454
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 452

def storage_type
  @storage_type
end

#storage_volumeString

The storage volume that this Lun is attached to. Corresponds to the JSON property storageVolume

Returns:

  • (String)


457
458
459
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 457

def storage_volume
  @storage_volume
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



464
465
466
467
468
469
470
471
472
473
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 464

def update!(**args)
  @boot_lun = args[:boot_lun] if args.key?(:boot_lun)
  @multiprotocol_type = args[:multiprotocol_type] if args.key?(:multiprotocol_type)
  @name = args[:name] if args.key?(:name)
  @shared = args[:shared] if args.key?(:shared)
  @size_gb = args[:size_gb] if args.key?(:size_gb)
  @state = args[:state] if args.key?(:state)
  @storage_type = args[:storage_type] if args.key?(:storage_type)
  @storage_volume = args[:storage_volume] if args.key?(:storage_volume)
end