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.
-
#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.
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.
457 458 459 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 457 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
423 424 425 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 423 def is_boot @is_boot end |
#multiprotocol_type ⇒ String
The multiprotocol type of this Lun.
Corresponds to the JSON property multiprotocolType
429 430 431 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 429 def multiprotocol_type @multiprotocol_type end |
#name ⇒ String
Output only. The name of this Lun.
Corresponds to the JSON property name
434 435 436 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 434 def name @name end |
#remote_volume ⇒ Google::Apis::BaremetalsolutionV1alpha1::Volume
Volume registered in the project.
Corresponds to the JSON property remoteVolume
439 440 441 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 439 def remote_volume @remote_volume end |
#shareable ⇒ Boolean Also known as:
Whether this Lun is allowed to be shared between multiple physical servers.
Corresponds to the JSON property shareable
444 445 446 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 444 def shareable @shareable end |
#size_gb ⇒ Fixnum
The size of this Lun, in gigabytes.
Corresponds to the JSON property sizeGb
450 451 452 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 450 def size_gb @size_gb end |
#state ⇒ String
The state of this Lun.
Corresponds to the JSON property state
455 456 457 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 455 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
462 463 464 465 466 467 468 469 470 |
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 462 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) @shareable = args[:shareable] if args.key?(:shareable) @size_gb = args[:size_gb] if args.key?(:size_gb) @state = args[:state] if args.key?(:state) end |