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.



423
424
425
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 423

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)


388
389
390
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 388

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)


395
396
397
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 395

def multiprotocol_type
  @multiprotocol_type
end

#nameString

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

Returns:

  • (String)


400
401
402
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 400

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)


405
406
407
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 405

def shared
  @shared
end

#size_gbFixnum

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

Returns:

  • (Fixnum)


411
412
413
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 411

def size_gb
  @size_gb
end

#stateString

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

Returns:

  • (String)


416
417
418
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 416

def state
  @state
end

#storage_volumeString

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

Returns:

  • (String)


421
422
423
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 421

def storage_volume
  @storage_volume
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



428
429
430
431
432
433
434
435
436
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 428

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_volume = args[:storage_volume] if args.key?(:storage_volume)
end