Class: Google::Apis::BaremetalsolutionV1alpha1::Lun

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



474
475
476
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 474

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

Instance Attribute Details

#is_bootBoolean Also known as: is_boot?

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

Returns:

  • (Boolean)


430
431
432
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 430

def is_boot
  @is_boot
end

#multiprotocol_typeString

The multiprotocol type of this Lun. Corresponds to the JSON property multiprotocolType

Returns:

  • (String)


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

def multiprotocol_type
  @multiprotocol_type
end

#nameString

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

Returns:

  • (String)


441
442
443
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 441

def name
  @name
end

#remote_volumeGoogle::Apis::BaremetalsolutionV1alpha1::Volume

Volume registered in the project. Corresponds to the JSON property remoteVolume



446
447
448
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 446

def remote_volume
  @remote_volume
end

#serial_numberString

The serial number of this Lun Corresponds to the JSON property serialNumber

Returns:

  • (String)


451
452
453
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 451

def serial_number
  @serial_number
end

#shareableBoolean Also known as: shareable?

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

Returns:

  • (Boolean)


456
457
458
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 456

def shareable
  @shareable
end

#size_gbFixnum

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

Returns:

  • (Fixnum)


462
463
464
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 462

def size_gb
  @size_gb
end

#stateString

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

Returns:

  • (String)


467
468
469
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 467

def state
  @state
end

#wwidString

World Wide IDentifier of this Lun Corresponds to the JSON property wwid

Returns:

  • (String)


472
473
474
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 472

def wwid
  @wwid
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



479
480
481
482
483
484
485
486
487
488
489
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 479

def update!(**args)
  @is_boot = args[:is_boot] if args.key?(:is_boot)
  @multiprotocol_type = args[:multiprotocol_type] if args.key?(:multiprotocol_type)
  @name = args[:name] if args.key?(:name)
  @remote_volume = args[:remote_volume] if args.key?(:remote_volume)
  @serial_number = args[:serial_number] if args.key?(:serial_number)
  @shareable = args[:shareable] if args.key?(:shareable)
  @size_gb = args[:size_gb] if args.key?(:size_gb)
  @state = args[:state] if args.key?(:state)
  @wwid = args[:wwid] if args.key?(:wwid)
end