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.
-
#expire_time ⇒ String
Output only.
-
#id ⇒ String
An identifier for the LUN, generated by the backend.
-
#instances ⇒ Array<String>
Output only.
-
#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.
1066 1067 1068 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1066 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
1005 1006 1007 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1005 def boot_lun @boot_lun end |
#expire_time ⇒ String
Output only. Time after which LUN will be fully deleted. It is filled only for
LUNs in COOL_OFF state.
Corresponds to the JSON property expireTime
1012 1013 1014 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1012 def expire_time @expire_time end |
#id ⇒ String
An identifier for the LUN, generated by the backend.
Corresponds to the JSON property id
1017 1018 1019 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1017 def id @id end |
#instances ⇒ Array<String>
Output only. Instances this Lun is attached to.
Corresponds to the JSON property instances
1022 1023 1024 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1022 def instances @instances 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
1028 1029 1030 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1028 def multiprotocol_type @multiprotocol_type end |
#name ⇒ String
Output only. The name of the LUN.
Corresponds to the JSON property name
1033 1034 1035 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1033 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
1038 1039 1040 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1038 def shareable @shareable end |
#size_gb ⇒ Fixnum
The size of this LUN, in gigabytes.
Corresponds to the JSON property sizeGb
1044 1045 1046 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1044 def size_gb @size_gb end |
#state ⇒ String
The state of this storage volume.
Corresponds to the JSON property state
1049 1050 1051 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1049 def state @state end |
#storage_type ⇒ String
The storage type for this LUN.
Corresponds to the JSON property storageType
1054 1055 1056 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1054 def storage_type @storage_type end |
#storage_volume ⇒ String
Display the storage volume for this LUN.
Corresponds to the JSON property storageVolume
1059 1060 1061 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1059 def storage_volume @storage_volume end |
#wwid ⇒ String
The WWID for this LUN.
Corresponds to the JSON property wwid
1064 1065 1066 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1064 def wwid @wwid end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1071 def update!(**args) @boot_lun = args[:boot_lun] if args.key?(:boot_lun) @expire_time = args[:expire_time] if args.key?(:expire_time) @id = args[:id] if args.key?(:id) @instances = args[:instances] if args.key?(:instances) @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 |