Class: Hpe3parSdk::LDLayout
- Inherits:
-
Object
- Object
- Hpe3parSdk::LDLayout
- Defined in:
- lib/Hpe3parSdk/models.rb
Instance Attribute Summary collapse
-
#chunklet_pos_pref ⇒ Object
- type - Number
-
Specifies the chunklet location preference characteristics.
-
#disk_patterns ⇒ Object
- type - Array of DiskPattern objects
-
Specifies patterns for candidate disks.
-
#ha ⇒ Object
- type - Number
-
Specifies that the layout must support the failure of one port pair, one cage, or one magazine.
-
#raidtype ⇒ Object
- type - Number
-
Specifies the RAID type for the logical disk.
-
#set_size ⇒ Object
- type - Number
-
Specifies the set size in the number of chunklets.
Instance Method Summary collapse
-
#initialize(object_hash) ⇒ LDLayout
constructor
A new instance of LDLayout.
Constructor Details
#initialize(object_hash) ⇒ LDLayout
Returns a new instance of LDLayout.
1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 |
# File 'lib/Hpe3parSdk/models.rb', line 1702 def initialize(object_hash) if object_hash == nil return end self.raidtype = object_hash['RAIDType'] self.set_size = object_hash['setSize'] self.ha = object_hash['HA'] self.chunklet_pos_pref = object_hash['chunkletPosPref'] self.disk_patterns = [] if !object_hash['diskPatterns'].nil? object_hash['diskPatterns'].each do |disk_pattern| self.disk_patterns.push(DiskPattern.new(disk_pattern)) end end end |
Instance Attribute Details
#chunklet_pos_pref ⇒ Object
- type - Number
-
Specifies the chunklet location preference characteristics. - Hpe3parSdk::CPGChunkletPosPref
1696 1697 1698 |
# File 'lib/Hpe3parSdk/models.rb', line 1696 def chunklet_pos_pref @chunklet_pos_pref end |
#disk_patterns ⇒ Object
- type - Array of DiskPattern objects
-
Specifies patterns for candidate disks.
1700 1701 1702 |
# File 'lib/Hpe3parSdk/models.rb', line 1700 def disk_patterns @disk_patterns end |
#ha ⇒ Object
- type - Number
-
Specifies that the layout must support the failure of one port pair, one cage, or one magazine. - Hpe3parSdk::CPGHA
1692 1693 1694 |
# File 'lib/Hpe3parSdk/models.rb', line 1692 def ha @ha end |
#raidtype ⇒ Object
- type - Number
-
Specifies the RAID type for the logical disk. - Hpe3parSdk::CPGRAIDType
1684 1685 1686 |
# File 'lib/Hpe3parSdk/models.rb', line 1684 def raidtype @raidtype end |
#set_size ⇒ Object
- type - Number
-
Specifies the set size in the number of chunklets.
1688 1689 1690 |
# File 'lib/Hpe3parSdk/models.rb', line 1688 def set_size @set_size end |