Class: Google::Apis::BaremetalsolutionV2::Lun
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV2::Lun
- 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
-
#boot_lun ⇒ Boolean
(also: #boot_lun?)
Display if this LUN is a boot LUN.
-
#id ⇒ String
An identifier for the LUN, generated by the backend.
-
#multiprotocol_type ⇒ String
The LUN multiprotocol type ensures the characteristics of the LUN are optimized for each operating system.
-
#name ⇒ String
Output only.
-
#shareable ⇒ Boolean
(also: #shareable?)
Display if this LUN can be shared between multiple physical servers.
-
#size_gb ⇒ Fixnum
The size of this LUN, in gigabytes.
-
#state ⇒ String
The state of this storage volume.
-
#storage_type ⇒ String
The storage type for this LUN.
-
#storage_volume ⇒ String
Display the storage volume for this LUN.
-
#wwid ⇒ String
The WWID for this LUN.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Lun
constructor
A new instance of Lun.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Lun
Returns a new instance of Lun.
878 879 880 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 878 def initialize(**args) update!(**args) end |
Instance Attribute Details
#boot_lun ⇒ Boolean Also known as: boot_lun?
Display if this LUN is a boot LUN.
Corresponds to the JSON property bootLun
828 829 830 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 828 def boot_lun @boot_lun end |
#id ⇒ String
An identifier for the LUN, generated by the backend.
Corresponds to the JSON property id
834 835 836 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 834 def id @id end |
#multiprotocol_type ⇒ String
The LUN multiprotocol type ensures the characteristics of the LUN are
optimized for each operating system.
Corresponds to the JSON property multiprotocolType
840 841 842 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 840 def multiprotocol_type @multiprotocol_type end |
#name ⇒ String
Output only. The name of the LUN.
Corresponds to the JSON property name
845 846 847 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 845 def name @name end |
#shareable ⇒ Boolean Also known as:
Display if this LUN can be shared between multiple physical servers.
Corresponds to the JSON property shareable
850 851 852 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 850 def shareable @shareable end |
#size_gb ⇒ Fixnum
The size of this LUN, in gigabytes.
Corresponds to the JSON property sizeGb
856 857 858 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 856 def size_gb @size_gb end |
#state ⇒ String
The state of this storage volume.
Corresponds to the JSON property state
861 862 863 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 861 def state @state end |
#storage_type ⇒ String
The storage type for this LUN.
Corresponds to the JSON property storageType
866 867 868 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 866 def storage_type @storage_type end |
#storage_volume ⇒ String
Display the storage volume for this LUN.
Corresponds to the JSON property storageVolume
871 872 873 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 871 def storage_volume @storage_volume end |
#wwid ⇒ String
The WWID for this LUN.
Corresponds to the JSON property wwid
876 877 878 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 876 def wwid @wwid end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
883 884 885 886 887 888 889 890 891 892 893 894 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 883 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 |