Class: Hpe3parSdk::DiskPattern

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(object_hash) ⇒ DiskPattern

Returns a new instance of DiskPattern.



1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
# File 'lib/Hpe3parSdk/models.rb', line 1782

def initialize(object_hash)
  if object_hash == nil
    return
  end

  self.node_list = object_hash['nodeList']

  self.slot_list = object_hash['slotList']

  self.port_list = object_hash['portList']

  self.cage_list = object_hash['cageList']

  self.mag_list = object_hash['magList']

  self.disk_pos_list = object_hash['diskPosList']

  self.disk_list = object_hash['diskList']

  self.total_chunklets_greater_than = object_hash['totalChunkletsGreaterThan']

  self.total_chunklets_less_than = object_hash['totalChunkletsLessThan']

  self.free_chunklets_greater_than = object_hash['freeChunkletsGreaterThan']

  self.free_chunklets_less_than = object_hash['freeChunkletsLessThan']

  self.disk_models = object_hash['diskModels']

  self.disk_type = object_hash['diskType']

  self.rpm = object_hash['RPM']

end

Instance Attribute Details

#cage_listObject

type - String

Specifies one or more drive cages. Drive cages are identified by one or more integers. Multiple drive cages are separated with a single comma (1,2,3). A range of drive cages is separated with a hyphen (0– 3). The specified drive cage(s) must contain disks.



1740
1741
1742
# File 'lib/Hpe3parSdk/models.rb', line 1740

def cage_list
  @cage_list
end

#disk_listObject

type - String

Specifies one or more physical disks. Disks are identified by one or more integers. Multiple disks are separated with a single comma (1,2,3). A range of disks is separated with a hyphen (0–3). Disks must match the specified ID(s).



1752
1753
1754
# File 'lib/Hpe3parSdk/models.rb', line 1752

def disk_list
  @disk_list
end

#disk_modelsObject

type - array of string

Specifies that PDs identified by their models are selected.



1772
1773
1774
# File 'lib/Hpe3parSdk/models.rb', line 1772

def disk_models
  @disk_models
end

#disk_pos_listObject

type - String

Specifies one or more disk positions within a drive magazine. Disk positions are identified by one or more integers. Multiple disk positions are separated with a single comma (1,2,3). A range of disk positions is separated with a hyphen (0–3). The specified portion(s) must contain disks.



1748
1749
1750
# File 'lib/Hpe3parSdk/models.rb', line 1748

def disk_pos_list
  @disk_pos_list
end

#disk_typeObject

type - Number

Specifies that physical disks must have the specified device type. - Hpe3parSdk::CPGDiskType



1776
1777
1778
# File 'lib/Hpe3parSdk/models.rb', line 1776

def disk_type
  @disk_type
end

#free_chunklets_greater_thanObject

type - Number

Specifies that physical disks with free chunklets less than the number specified be selected.



1764
1765
1766
# File 'lib/Hpe3parSdk/models.rb', line 1764

def free_chunklets_greater_than
  @free_chunklets_greater_than
end

#free_chunklets_less_thanObject

type - Number

Specifies that physical disks with free chunklets greater than the number specified be selected.



1768
1769
1770
# File 'lib/Hpe3parSdk/models.rb', line 1768

def free_chunklets_less_than
  @free_chunklets_less_than
end

#mag_listObject

type - String

Specifies one or more drive magazines. Drive magazines are identified by one or more integers. Multiple drive magazines are separated with a single comma (1,2,3). A range of drive magazines is separated with a hyphen (0–7). The specified magazine(s) must contain disks.



1744
1745
1746
# File 'lib/Hpe3parSdk/models.rb', line 1744

def mag_list
  @mag_list
end

#node_listObject

type - String

Specifies one or more nodes. Nodes are identified by one or more integers. Multiple nodes are separated with a single comma (1,2,3). A range of nodes is separated with a hyphen (0–7). The primary path of the disks must be on the specified node number.



1728
1729
1730
# File 'lib/Hpe3parSdk/models.rb', line 1728

def node_list
  @node_list
end

#port_listObject

type - String

Specifies one or more ports. Ports are identified by one or more integers. Multiple ports are separated with a single comma (1,2,3). A range of ports is separated with a hyphen (0–4). The primary path of the disks must be on the specified port number(s).



1736
1737
1738
# File 'lib/Hpe3parSdk/models.rb', line 1736

def port_list
  @port_list
end

#rpmObject

type - Number

Disks must be of the specified speed.



1780
1781
1782
# File 'lib/Hpe3parSdk/models.rb', line 1780

def rpm
  @rpm
end

#slot_listObject

type - String

Specifies one or more PCI slots. Slots are identified by one or more integers. Multiple slots are separated with a single comma (1,2,3). A range of slots is separated with a hyphen (0–7). The primary path of the disks must be on the specified PCI slot number(s).



1732
1733
1734
# File 'lib/Hpe3parSdk/models.rb', line 1732

def slot_list
  @slot_list
end

#total_chunklets_greater_thanObject

type - Number

Specifies that physical disks with total chunklets greater than the number specified be selected.



1756
1757
1758
# File 'lib/Hpe3parSdk/models.rb', line 1756

def total_chunklets_greater_than
  @total_chunklets_greater_than
end

#total_chunklets_less_thanObject

type - Number

Specifies that physical disks with total chunklets less than the number specified be selected.



1760
1761
1762
# File 'lib/Hpe3parSdk/models.rb', line 1760

def total_chunklets_less_than
  @total_chunklets_less_than
end