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 volume logical unit number (LUN).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Lun

Returns a new instance of Lun.



722
723
724
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 722

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

Instance Attribute Details

#boot_lunBoolean Also known as: boot_lun?

Display if this LUN is a boot LUN. Corresponds to the JSON property bootLun

Returns:

  • (Boolean)


672
673
674
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 672

def boot_lun
  @boot_lun
end

#idString

An identifier for the LUN, generated by the backend. Corresponds to the JSON property id

Returns:

  • (String)


678
679
680
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 678

def id
  @id
end

#multiprotocol_typeString

The LUN multiprotocol type ensures the characteristics of the LUN are optimized for each operating system. Corresponds to the JSON property multiprotocolType

Returns:

  • (String)


684
685
686
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 684

def multiprotocol_type
  @multiprotocol_type
end

#nameString

Output only. The name of the LUN. Corresponds to the JSON property name

Returns:

  • (String)


689
690
691
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 689

def name
  @name
end

#shareableBoolean Also known as: shareable?

Display if this LUN can be shared between multiple physical servers. Corresponds to the JSON property shareable

Returns:

  • (Boolean)


694
695
696
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 694

def shareable
  @shareable
end

#size_gbFixnum

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

Returns:

  • (Fixnum)


700
701
702
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 700

def size_gb
  @size_gb
end

#stateString

The state of this storage volume. Corresponds to the JSON property state

Returns:

  • (String)


705
706
707
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 705

def state
  @state
end

#storage_typeString

The storage type for this LUN. Corresponds to the JSON property storageType

Returns:

  • (String)


710
711
712
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 710

def storage_type
  @storage_type
end

#storage_volumeString

Display the storage volume for this LUN. Corresponds to the JSON property storageVolume

Returns:

  • (String)


715
716
717
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 715

def storage_volume
  @storage_volume
end

#wwidString

The WWID for this LUN. Corresponds to the JSON property wwid

Returns:

  • (String)


720
721
722
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 720

def wwid
  @wwid
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



727
728
729
730
731
732
733
734
735
736
737
738
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 727

def update!(**args)
  @boot_lun = args[:boot_lun] if args.key?(:boot_lun)
  @id = args[:id] if args.key?(:id)
  @multiprotocol_type = args[:multiprotocol_type] if args.key?(:multiprotocol_type)
  @name = args[:name] if args.key?(:name)
  @shareable = args[:shareable] if args.key?(:shareable)
  @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)
  @wwid = args[:wwid] if args.key?(:wwid)
end