Class: OvirtSDK4::GlusterMemoryPool

Inherits:
Identified show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary collapse

Methods included from Type

#dig, #href, #href=

Constructor Details

#initialize(opts = {}) ⇒ GlusterMemoryPool

Creates a new instance of the OvirtSDK4::GlusterMemoryPool class.

Parameters:

  • opts (Hash) (defaults to: {})

    A hash containing the attributes of the object. The keys of the hash should be symbols corresponding to the names of the attributes. The values of the hash should be the values of the attributes.

Options Hash (opts):

  • :alloc_count (Integer)

    The value of attribute alloc_count.

  • :cold_count (Integer)

    The value of attribute cold_count.

  • :comment (String)

    The value of attribute comment.

  • :description (String)

    The value of attribute description.

  • :hot_count (Integer)

    The value of attribute hot_count.

  • :id (String)

    The value of attribute id.

  • :max_alloc (Integer)

    The value of attribute max_alloc.

  • :max_stdalloc (Integer)

    The value of attribute max_stdalloc.

  • :name (String)

    The value of attribute name.

  • :padded_size (Integer)

    The value of attribute padded_size.

  • :pool_misses (Integer)

    The value of attribute pool_misses.

  • :type (String)

    The value of attribute type.


40872
40873
40874
40875
40876
40877
40878
40879
40880
40881
40882
# File 'lib/ovirtsdk4/types.rb', line 40872

def initialize(opts = {})
  super(opts)
  self.alloc_count = opts[:alloc_count]
  self.cold_count = opts[:cold_count]
  self.hot_count = opts[:hot_count]
  self.max_alloc = opts[:max_alloc]
  self.max_stdalloc = opts[:max_stdalloc]
  self.padded_size = opts[:padded_size]
  self.pool_misses = opts[:pool_misses]
  self.type = opts[:type]
end

Instance Method Details

#==(other) ⇒ Object

Returns true if self and other have the same attributes and values.


40887
40888
40889
40890
40891
40892
40893
40894
40895
40896
40897
# File 'lib/ovirtsdk4/types.rb', line 40887

def ==(other)
  super &&
  @alloc_count == other.alloc_count &&
  @cold_count == other.cold_count &&
  @hot_count == other.hot_count &&
  @max_alloc == other.max_alloc &&
  @max_stdalloc == other.max_stdalloc &&
  @padded_size == other.padded_size &&
  @pool_misses == other.pool_misses &&
  @type == other.type
end

#alloc_countInteger

Returns the value of the alloc_count attribute.

Returns:

  • (Integer)

40629
40630
40631
# File 'lib/ovirtsdk4/types.rb', line 40629

def alloc_count
  @alloc_count
end

#alloc_count=(value) ⇒ Object

Sets the value of the alloc_count attribute.

Parameters:

  • value (Integer)

40638
40639
40640
# File 'lib/ovirtsdk4/types.rb', line 40638

def alloc_count=(value)
  @alloc_count = value
end

#cold_countInteger

Returns the value of the cold_count attribute.

Returns:

  • (Integer)

40647
40648
40649
# File 'lib/ovirtsdk4/types.rb', line 40647

def cold_count
  @cold_count
end

#cold_count=(value) ⇒ Object

Sets the value of the cold_count attribute.

Parameters:

  • value (Integer)

40656
40657
40658
# File 'lib/ovirtsdk4/types.rb', line 40656

def cold_count=(value)
  @cold_count = value
end

#commentString

Returns the value of the comment attribute.

Returns:

  • (String)

40665
40666
40667
# File 'lib/ovirtsdk4/types.rb', line 40665

def comment
  @comment
end

#comment=(value) ⇒ Object

Sets the value of the comment attribute.

Parameters:

  • value (String)

40674
40675
40676
# File 'lib/ovirtsdk4/types.rb', line 40674

def comment=(value)
  @comment = value
end

#descriptionString

Returns the value of the description attribute.

Returns:

  • (String)

40683
40684
40685
# File 'lib/ovirtsdk4/types.rb', line 40683

def description
  @description
end

#description=(value) ⇒ Object

Sets the value of the description attribute.

Parameters:

  • value (String)

40692
40693
40694
# File 'lib/ovirtsdk4/types.rb', line 40692

def description=(value)
  @description = value
end

#hashObject

Generates a hash value for this object.


40902
40903
40904
40905
40906
40907
40908
40909
40910
40911
40912
# File 'lib/ovirtsdk4/types.rb', line 40902

def hash
  super +
  @alloc_count.hash +
  @cold_count.hash +
  @hot_count.hash +
  @max_alloc.hash +
  @max_stdalloc.hash +
  @padded_size.hash +
  @pool_misses.hash +
  @type.hash
end

#hot_countInteger

Returns the value of the hot_count attribute.

Returns:

  • (Integer)

40701
40702
40703
# File 'lib/ovirtsdk4/types.rb', line 40701

def hot_count
  @hot_count
end

#hot_count=(value) ⇒ Object

Sets the value of the hot_count attribute.

Parameters:

  • value (Integer)

40710
40711
40712
# File 'lib/ovirtsdk4/types.rb', line 40710

def hot_count=(value)
  @hot_count = value
end

#idString

Returns the value of the id attribute.

Returns:

  • (String)

40719
40720
40721
# File 'lib/ovirtsdk4/types.rb', line 40719

def id
  @id
end

#id=(value) ⇒ Object

Sets the value of the id attribute.

Parameters:

  • value (String)

40728
40729
40730
# File 'lib/ovirtsdk4/types.rb', line 40728

def id=(value)
  @id = value
end

#max_allocInteger

Returns the value of the max_alloc attribute.

Returns:

  • (Integer)

40737
40738
40739
# File 'lib/ovirtsdk4/types.rb', line 40737

def max_alloc
  @max_alloc
end

#max_alloc=(value) ⇒ Object

Sets the value of the max_alloc attribute.

Parameters:

  • value (Integer)

40746
40747
40748
# File 'lib/ovirtsdk4/types.rb', line 40746

def max_alloc=(value)
  @max_alloc = value
end

#max_stdallocInteger

Returns the value of the max_stdalloc attribute.

Returns:

  • (Integer)

40755
40756
40757
# File 'lib/ovirtsdk4/types.rb', line 40755

def max_stdalloc
  @max_stdalloc
end

#max_stdalloc=(value) ⇒ Object

Sets the value of the max_stdalloc attribute.

Parameters:

  • value (Integer)

40764
40765
40766
# File 'lib/ovirtsdk4/types.rb', line 40764

def max_stdalloc=(value)
  @max_stdalloc = value
end

#nameString

Returns the value of the name attribute.

Returns:

  • (String)

40773
40774
40775
# File 'lib/ovirtsdk4/types.rb', line 40773

def name
  @name
end

#name=(value) ⇒ Object

Sets the value of the name attribute.

Parameters:

  • value (String)

40782
40783
40784
# File 'lib/ovirtsdk4/types.rb', line 40782

def name=(value)
  @name = value
end

#padded_sizeInteger

Returns the value of the padded_size attribute.

Returns:

  • (Integer)

40791
40792
40793
# File 'lib/ovirtsdk4/types.rb', line 40791

def padded_size
  @padded_size
end

#padded_size=(value) ⇒ Object

Sets the value of the padded_size attribute.

Parameters:

  • value (Integer)

40800
40801
40802
# File 'lib/ovirtsdk4/types.rb', line 40800

def padded_size=(value)
  @padded_size = value
end

#pool_missesInteger

Returns the value of the pool_misses attribute.

Returns:

  • (Integer)

40809
40810
40811
# File 'lib/ovirtsdk4/types.rb', line 40809

def pool_misses
  @pool_misses
end

#pool_misses=(value) ⇒ Object

Sets the value of the pool_misses attribute.

Parameters:

  • value (Integer)

40818
40819
40820
# File 'lib/ovirtsdk4/types.rb', line 40818

def pool_misses=(value)
  @pool_misses = value
end

#typeString

Returns the value of the type attribute.

Returns:

  • (String)

40827
40828
40829
# File 'lib/ovirtsdk4/types.rb', line 40827

def type
  @type
end

#type=(value) ⇒ Object

Sets the value of the type attribute.

Parameters:

  • value (String)

40836
40837
40838
# File 'lib/ovirtsdk4/types.rb', line 40836

def type=(value)
  @type = value
end