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 Lun.
Instance Attribute Summary collapse
-
#boot_lun ⇒ Boolean
(also: #boot_lun?)
Whether this Lun is a boot Lun.
-
#multiprotocol_type ⇒ String
The Lun Multiprotocol type to ensure the characteristics of the LUN are optimized for the Operating System.
-
#name ⇒ String
Output only.
-
#shared ⇒ Boolean
(also: #shared?)
Whether this Lun is allowed to be shared between multiple physical servers.
-
#size_gb ⇒ Fixnum
The size of this Lun, in gigabytes.
-
#state ⇒ String
The state of this Volume.
-
#storage_volume ⇒ String
The storage volume that this Lun is attached to.
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.
423 424 425 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 423 def initialize(**args) update!(**args) end |
Instance Attribute Details
#boot_lun ⇒ Boolean Also known as: boot_lun?
Whether this Lun is a boot Lun.
Corresponds to the JSON property bootLun
388 389 390 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 388 def boot_lun @boot_lun end |
#multiprotocol_type ⇒ String
The Lun Multiprotocol type to ensure the characteristics of the LUN are
optimized for the Operating System.
Corresponds to the JSON property multiprotocolType
395 396 397 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 395 def multiprotocol_type @multiprotocol_type end |
#name ⇒ String
Output only. The name of this Lun.
Corresponds to the JSON property name
400 401 402 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 400 def name @name end |
#shared ⇒ Boolean Also known as:
Whether this Lun is allowed to be shared between multiple physical servers.
Corresponds to the JSON property shared
405 406 407 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 405 def shared @shared end |
#size_gb ⇒ Fixnum
The size of this Lun, in gigabytes.
Corresponds to the JSON property sizeGb
411 412 413 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 411 def size_gb @size_gb end |
#state ⇒ String
The state of this Volume.
Corresponds to the JSON property state
416 417 418 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 416 def state @state end |
#storage_volume ⇒ String
The storage volume that this Lun is attached to.
Corresponds to the JSON property storageVolume
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 |