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

#href, #href=

Constructor Details

- (GlusterMemoryPool) initialize(opts = {})

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.



30987
30988
30989
30990
30991
30992
30993
30994
30995
30996
30997
30998
30999
31000
31001
# File 'lib/ovirtsdk4/types.rb', line 30987

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

Instance Method Details

- (Integer) alloc_count

Returns the value of the alloc_count attribute.

Returns:

  • (Integer)


30744
30745
30746
# File 'lib/ovirtsdk4/types.rb', line 30744

def alloc_count
  return @alloc_count
end

- (Object) alloc_count=(value)

Sets the value of the alloc_count attribute.

Parameters:

  • value (Integer)


30753
30754
30755
# File 'lib/ovirtsdk4/types.rb', line 30753

def alloc_count=(value)
  @alloc_count = value
end

- (Integer) cold_count

Returns the value of the cold_count attribute.

Returns:

  • (Integer)


30762
30763
30764
# File 'lib/ovirtsdk4/types.rb', line 30762

def cold_count
  return @cold_count
end

- (Object) cold_count=(value)

Sets the value of the cold_count attribute.

Parameters:

  • value (Integer)


30771
30772
30773
# File 'lib/ovirtsdk4/types.rb', line 30771

def cold_count=(value)
  @cold_count = value
end

- (String) comment

Returns the value of the comment attribute.

Returns:

  • (String)


30780
30781
30782
# File 'lib/ovirtsdk4/types.rb', line 30780

def comment
  return @comment
end

- (Object) comment=(value)

Sets the value of the comment attribute.

Parameters:

  • value (String)


30789
30790
30791
# File 'lib/ovirtsdk4/types.rb', line 30789

def comment=(value)
  @comment = value
end

- (String) description

Returns the value of the description attribute.

Returns:

  • (String)


30798
30799
30800
# File 'lib/ovirtsdk4/types.rb', line 30798

def description
  return @description
end

- (Object) description=(value)

Sets the value of the description attribute.

Parameters:

  • value (String)


30807
30808
30809
# File 'lib/ovirtsdk4/types.rb', line 30807

def description=(value)
  @description = value
end

- (Integer) hot_count

Returns the value of the hot_count attribute.

Returns:

  • (Integer)


30816
30817
30818
# File 'lib/ovirtsdk4/types.rb', line 30816

def hot_count
  return @hot_count
end

- (Object) hot_count=(value)

Sets the value of the hot_count attribute.

Parameters:

  • value (Integer)


30825
30826
30827
# File 'lib/ovirtsdk4/types.rb', line 30825

def hot_count=(value)
  @hot_count = value
end

- (String) id

Returns the value of the id attribute.

Returns:

  • (String)


30834
30835
30836
# File 'lib/ovirtsdk4/types.rb', line 30834

def id
  return @id
end

- (Object) id=(value)

Sets the value of the id attribute.

Parameters:

  • value (String)


30843
30844
30845
# File 'lib/ovirtsdk4/types.rb', line 30843

def id=(value)
  @id = value
end

- (Integer) max_alloc

Returns the value of the max_alloc attribute.

Returns:

  • (Integer)


30852
30853
30854
# File 'lib/ovirtsdk4/types.rb', line 30852

def max_alloc
  return @max_alloc
end

- (Object) max_alloc=(value)

Sets the value of the max_alloc attribute.

Parameters:

  • value (Integer)


30861
30862
30863
# File 'lib/ovirtsdk4/types.rb', line 30861

def max_alloc=(value)
  @max_alloc = value
end

- (Integer) max_stdalloc

Returns the value of the max_stdalloc attribute.

Returns:

  • (Integer)


30870
30871
30872
# File 'lib/ovirtsdk4/types.rb', line 30870

def max_stdalloc
  return @max_stdalloc
end

- (Object) max_stdalloc=(value)

Sets the value of the max_stdalloc attribute.

Parameters:

  • value (Integer)


30879
30880
30881
# File 'lib/ovirtsdk4/types.rb', line 30879

def max_stdalloc=(value)
  @max_stdalloc = value
end

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


30888
30889
30890
# File 'lib/ovirtsdk4/types.rb', line 30888

def name
  return @name
end

- (Object) name=(value)

Sets the value of the name attribute.

Parameters:

  • value (String)


30897
30898
30899
# File 'lib/ovirtsdk4/types.rb', line 30897

def name=(value)
  @name = value
end

- (Integer) padded_size

Returns the value of the padded_size attribute.

Returns:

  • (Integer)


30906
30907
30908
# File 'lib/ovirtsdk4/types.rb', line 30906

def padded_size
  return @padded_size
end

- (Object) padded_size=(value)

Sets the value of the padded_size attribute.

Parameters:

  • value (Integer)


30915
30916
30917
# File 'lib/ovirtsdk4/types.rb', line 30915

def padded_size=(value)
  @padded_size = value
end

- (Integer) pool_misses

Returns the value of the pool_misses attribute.

Returns:

  • (Integer)


30924
30925
30926
# File 'lib/ovirtsdk4/types.rb', line 30924

def pool_misses
  return @pool_misses
end

- (Object) pool_misses=(value)

Sets the value of the pool_misses attribute.

Parameters:

  • value (Integer)


30933
30934
30935
# File 'lib/ovirtsdk4/types.rb', line 30933

def pool_misses=(value)
  @pool_misses = value
end

- (String) type

Returns the value of the type attribute.

Returns:

  • (String)


30942
30943
30944
# File 'lib/ovirtsdk4/types.rb', line 30942

def type
  return @type
end

- (Object) type=(value)

Sets the value of the type attribute.

Parameters:

  • value (String)


30951
30952
30953
# File 'lib/ovirtsdk4/types.rb', line 30951

def type=(value)
  @type = value
end