Class: Hpe3parSdk::VLUN
- Inherits:
-
Object
- Object
- Hpe3parSdk::VLUN
- Defined in:
- lib/Hpe3parSdk/models.rb
Instance Attribute Summary collapse
-
#active ⇒ Object
- type - Boolean
-
Specified if the VLUN is an active VLUN or a VLUN template.
-
#failed_path_interval ⇒ Object
- type - Number
-
Monitoring interval in seconds after which the host checks for failed paths.
-
#failed_path_pol ⇒ Object
- type - Hpe3parSdk::VLUNfailedPathPol
-
Failed path monitoring method.
-
#host_device_name ⇒ Object
- type - String
-
The device name for this VLUN on the host.
-
#hostname ⇒ Object
- type - String
-
Host name or host set name to which the VLUN is exported.
-
#lun ⇒ Object
- type - Number
-
Exported LUN value.
-
#multipathing ⇒ Object
- type - Hpe3parSdk::VlunMultipathing
-
Multipathing method in use.
-
#port_pos ⇒ Object
- type - PortPos
-
System port of VLUN exported to.
-
#remote_name ⇒ Object
- type - String
-
Host WWN, or iSCSI name, or SAS address; depends on port type.
-
#type ⇒ Object
- type - Hpe3parSdk::VlunType
-
VLUN type.
-
#volume_name ⇒ Object
- type - String
-
Name of exported virtual volume name or VV-set name.
-
#volume_wwn ⇒ Object
- type - String
-
WWN of exported volume.
Instance Method Summary collapse
-
#initialize(object_hash) ⇒ VLUN
constructor
A new instance of VLUN.
Constructor Details
#initialize(object_hash) ⇒ VLUN
Returns a new instance of VLUN.
572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 |
# File 'lib/Hpe3parSdk/models.rb', line 572 def initialize(object_hash) if object_hash == nil return end self.lun = object_hash['lun'] self.volume_name = object_hash['volumeName'] self.hostname = object_hash['hostname'] self.remote_name = object_hash['remoteName'] !object_hash['portPos'].nil? ? self.port_pos = PortPos.new(object_hash['portPos']) : self.port_pos = nil self.type = object_hash['type'] self.volume_wwn = object_hash['volumeWWN'] self.multipathing = object_hash['multipathing'] self.failed_path_pol = object_hash['failedPathPol'] self.failed_path_interval = object_hash['failedPathInterval'] self.host_device_name = object_hash['hostDeviceName'] self.active = object_hash['active'] end |
Instance Attribute Details
#active ⇒ Object
- type - Boolean
-
Specified if the VLUN is an active VLUN or a VLUN template.
570 571 572 |
# File 'lib/Hpe3parSdk/models.rb', line 570 def active @active end |
#failed_path_interval ⇒ Object
- type - Number
-
Monitoring interval in seconds after which the host checks for failed paths.
562 563 564 |
# File 'lib/Hpe3parSdk/models.rb', line 562 def failed_path_interval @failed_path_interval end |
#failed_path_pol ⇒ Object
- type - Hpe3parSdk::VLUNfailedPathPol
-
Failed path monitoring method.
558 559 560 |
# File 'lib/Hpe3parSdk/models.rb', line 558 def failed_path_pol @failed_path_pol end |
#host_device_name ⇒ Object
- type - String
-
The device name for this VLUN on the host.
566 567 568 |
# File 'lib/Hpe3parSdk/models.rb', line 566 def host_device_name @host_device_name end |
#hostname ⇒ Object
- type - String
-
Host name or host set name to which the VLUN is exported.
534 535 536 |
# File 'lib/Hpe3parSdk/models.rb', line 534 def hostname @hostname end |
#lun ⇒ Object
- type - Number
-
Exported LUN value.
526 527 528 |
# File 'lib/Hpe3parSdk/models.rb', line 526 def lun @lun end |
#multipathing ⇒ Object
- type - Hpe3parSdk::VlunMultipathing
-
Multipathing method in use.
554 555 556 |
# File 'lib/Hpe3parSdk/models.rb', line 554 def multipathing @multipathing end |
#port_pos ⇒ Object
- type - PortPos
-
System port of VLUN exported to. It includes node number, slot number, and cardPort number.
542 543 544 |
# File 'lib/Hpe3parSdk/models.rb', line 542 def port_pos @port_pos end |
#remote_name ⇒ Object
- type - String
-
Host WWN, or iSCSI name, or SAS address; depends on port type.
538 539 540 |
# File 'lib/Hpe3parSdk/models.rb', line 538 def remote_name @remote_name end |
#type ⇒ Object
- type - Hpe3parSdk::VlunType
-
VLUN type.
546 547 548 |
# File 'lib/Hpe3parSdk/models.rb', line 546 def type @type end |
#volume_name ⇒ Object
- type - String
-
Name of exported virtual volume name or VV-set name.
530 531 532 |
# File 'lib/Hpe3parSdk/models.rb', line 530 def volume_name @volume_name end |
#volume_wwn ⇒ Object
- type - String
-
WWN of exported volume. If a VV set is exported, this value is null.
550 551 552 |
# File 'lib/Hpe3parSdk/models.rb', line 550 def volume_wwn @volume_wwn end |