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_type ⇒ String
The storage type of this Lun.
-
#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.
459 460 461 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 459 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
419 420 421 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 419 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
426 427 428 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 426 def multiprotocol_type @multiprotocol_type end |
#name ⇒ String
Output only. The name of this Lun.
Corresponds to the JSON property name
431 432 433 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 431 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
436 437 438 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 436 def shared @shared end |
#size_gb ⇒ Fixnum
The size of this Lun, in gigabytes.
Corresponds to the JSON property sizeGb
442 443 444 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 442 def size_gb @size_gb end |
#state ⇒ String
The state of this Volume.
Corresponds to the JSON property state
447 448 449 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 447 def state @state end |
#storage_type ⇒ String
The storage type of this Lun.
Corresponds to the JSON property storageType
452 453 454 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 452 def storage_type @storage_type end |
#storage_volume ⇒ String
The storage volume that this Lun is attached to.
Corresponds to the JSON property storageVolume
457 458 459 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 457 def storage_volume @storage_volume end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
464 465 466 467 468 469 470 471 472 473 |
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 464 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_type = args[:storage_type] if args.key?(:storage_type) @storage_volume = args[:storage_volume] if args.key?(:storage_volume) end |