Class: Google::Apis::BaremetalsolutionV1alpha1::Lun
- Inherits:
-
Object
- Object
- Google::Apis::BaremetalsolutionV1alpha1::Lun
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/baremetalsolution_v1alpha1/classes.rb,
lib/google/apis/baremetalsolution_v1alpha1/representations.rb,
lib/google/apis/baremetalsolution_v1alpha1/representations.rb
Overview
A storage Lun.
Instance Attribute Summary collapse
-
#is_boot ⇒ Boolean
(also: #is_boot?)
Whether this Lun is a boot Lun.
-
#multiprotocol_type ⇒ String
The multiprotocol type of this Lun.
-
#name ⇒ String
Output only.
-
#remote_volume ⇒ Google::Apis::BaremetalsolutionV1alpha1::Volume
Volume registered in the project.
-
#serial_number ⇒ String
The serial number of this Lun Corresponds to the JSON property
serialNumber. -
#shareable ⇒ Boolean
(also: #shareable?)
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 Lun.
-
#wwid ⇒ String
World Wide IDentifier of this Lun Corresponds to the JSON property
wwid.
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.
474 475 476 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 474 def initialize(**args) update!(**args) end |
Instance Attribute Details
#is_boot ⇒ Boolean Also known as: is_boot?
Whether this Lun is a boot Lun.
Corresponds to the JSON property isBoot
430 431 432 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 430 def is_boot @is_boot end |
#multiprotocol_type ⇒ String
The multiprotocol type of this Lun.
Corresponds to the JSON property multiprotocolType
436 437 438 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 436 def multiprotocol_type @multiprotocol_type end |
#name ⇒ String
Output only. The name of this Lun.
Corresponds to the JSON property name
441 442 443 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 441 def name @name end |
#remote_volume ⇒ Google::Apis::BaremetalsolutionV1alpha1::Volume
Volume registered in the project.
Corresponds to the JSON property remoteVolume
446 447 448 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 446 def remote_volume @remote_volume end |
#serial_number ⇒ String
The serial number of this Lun
Corresponds to the JSON property serialNumber
451 452 453 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 451 def serial_number @serial_number end |
#shareable ⇒ Boolean Also known as:
Whether this Lun is allowed to be shared between multiple physical servers.
Corresponds to the JSON property shareable
456 457 458 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 456 def shareable @shareable end |
#size_gb ⇒ Fixnum
The size of this Lun, in gigabytes.
Corresponds to the JSON property sizeGb
462 463 464 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 462 def size_gb @size_gb end |
#state ⇒ String
The state of this Lun.
Corresponds to the JSON property state
467 468 469 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 467 def state @state end |
#wwid ⇒ String
World Wide IDentifier of this Lun
Corresponds to the JSON property wwid
472 473 474 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 472 def wwid @wwid end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
479 480 481 482 483 484 485 486 487 488 489 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 479 def update!(**args) @is_boot = args[:is_boot] if args.key?(:is_boot) @multiprotocol_type = args[:multiprotocol_type] if args.key?(:multiprotocol_type) @name = args[:name] if args.key?(:name) @remote_volume = args[:remote_volume] if args.key?(:remote_volume) @serial_number = args[:serial_number] if args.key?(:serial_number) @shareable = args[:shareable] if args.key?(:shareable) @size_gb = args[:size_gb] if args.key?(:size_gb) @state = args[:state] if args.key?(:state) @wwid = args[:wwid] if args.key?(:wwid) end |