class OvirtSDK4::GlusterMemoryPool

Public Class Methods

new(opts = {}) click to toggle source

Creates a new instance of the {GlusterMemoryPool} class.

@param opts [Hash] 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.

@option opts [Integer] :alloc_count The value of attribute `alloc_count`.

@option opts [Integer] :cold_count The value of attribute `cold_count`.

@option opts [String] :comment The value of attribute `comment`.

@option opts [String] :description The value of attribute `description`.

@option opts [Integer] :hot_count The value of attribute `hot_count`.

@option opts [String] :id The value of attribute `id`.

@option opts [Integer] :max_alloc The value of attribute `max_alloc`.

@option opts [Integer] :max_stdalloc The value of attribute `max_stdalloc`.

@option opts [String] :name The value of attribute `name`.

@option opts [Integer] :padded_size The value of attribute `padded_size`.

@option opts [Integer] :pool_misses The value of attribute `pool_misses`.

@option opts [String] :type The value of attribute `type`.

Calls superclass method OvirtSDK4::Identified.new
# File lib/ovirtsdk4/types.rb, line 39454
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

Public Instance Methods

==(other) click to toggle source

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

Calls superclass method OvirtSDK4::Identified#==
# File lib/ovirtsdk4/types.rb, line 39469
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_count() click to toggle source

Returns the value of the `alloc_count` attribute.

@return [Integer]

# File lib/ovirtsdk4/types.rb, line 39211
def alloc_count
  @alloc_count
end
alloc_count=(value) click to toggle source

Sets the value of the `alloc_count` attribute.

@param value [Integer]

# File lib/ovirtsdk4/types.rb, line 39220
def alloc_count=(value)
  @alloc_count = value
end
cold_count() click to toggle source

Returns the value of the `cold_count` attribute.

@return [Integer]

# File lib/ovirtsdk4/types.rb, line 39229
def cold_count
  @cold_count
end
cold_count=(value) click to toggle source

Sets the value of the `cold_count` attribute.

@param value [Integer]

# File lib/ovirtsdk4/types.rb, line 39238
def cold_count=(value)
  @cold_count = value
end
comment() click to toggle source

Returns the value of the `comment` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 39247
def comment
  @comment
end
comment=(value) click to toggle source

Sets the value of the `comment` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 39256
def comment=(value)
  @comment = value
end
description() click to toggle source

Returns the value of the `description` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 39265
def description
  @description
end
description=(value) click to toggle source

Sets the value of the `description` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 39274
def description=(value)
  @description = value
end
hash() click to toggle source

Generates a hash value for this object.

Calls superclass method OvirtSDK4::Identified#hash
# File lib/ovirtsdk4/types.rb, line 39484
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_count() click to toggle source

Returns the value of the `hot_count` attribute.

@return [Integer]

# File lib/ovirtsdk4/types.rb, line 39283
def hot_count
  @hot_count
end
hot_count=(value) click to toggle source

Sets the value of the `hot_count` attribute.

@param value [Integer]

# File lib/ovirtsdk4/types.rb, line 39292
def hot_count=(value)
  @hot_count = value
end
id() click to toggle source

Returns the value of the `id` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 39301
def id
  @id
end
id=(value) click to toggle source

Sets the value of the `id` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 39310
def id=(value)
  @id = value
end
max_alloc() click to toggle source

Returns the value of the `max_alloc` attribute.

@return [Integer]

# File lib/ovirtsdk4/types.rb, line 39319
def max_alloc
  @max_alloc
end
max_alloc=(value) click to toggle source

Sets the value of the `max_alloc` attribute.

@param value [Integer]

# File lib/ovirtsdk4/types.rb, line 39328
def max_alloc=(value)
  @max_alloc = value
end
max_stdalloc() click to toggle source

Returns the value of the `max_stdalloc` attribute.

@return [Integer]

# File lib/ovirtsdk4/types.rb, line 39337
def max_stdalloc
  @max_stdalloc
end
max_stdalloc=(value) click to toggle source

Sets the value of the `max_stdalloc` attribute.

@param value [Integer]

# File lib/ovirtsdk4/types.rb, line 39346
def max_stdalloc=(value)
  @max_stdalloc = value
end
name() click to toggle source

Returns the value of the `name` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 39355
def name
  @name
end
name=(value) click to toggle source

Sets the value of the `name` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 39364
def name=(value)
  @name = value
end
padded_size() click to toggle source

Returns the value of the `padded_size` attribute.

@return [Integer]

# File lib/ovirtsdk4/types.rb, line 39373
def padded_size
  @padded_size
end
padded_size=(value) click to toggle source

Sets the value of the `padded_size` attribute.

@param value [Integer]

# File lib/ovirtsdk4/types.rb, line 39382
def padded_size=(value)
  @padded_size = value
end
pool_misses() click to toggle source

Returns the value of the `pool_misses` attribute.

@return [Integer]

# File lib/ovirtsdk4/types.rb, line 39391
def pool_misses
  @pool_misses
end
pool_misses=(value) click to toggle source

Sets the value of the `pool_misses` attribute.

@param value [Integer]

# File lib/ovirtsdk4/types.rb, line 39400
def pool_misses=(value)
  @pool_misses = value
end
type() click to toggle source

Returns the value of the `type` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 39409
def type
  @type
end
type=(value) click to toggle source

Sets the value of the `type` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 39418
def type=(value)
  @type = value
end