Class: Hpe3parSdk::LDLayout

Inherits:
Object
  • Object
show all
Defined in:
lib/Hpe3parSdk/models.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_prefObject

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_patternsObject

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

#haObject

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

#raidtypeObject

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_sizeObject

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