class OvirtSDK4::GlusterVolume

def ==(other)


Returns `true` if `self` and `other` have the same attributes and values.
def ==(other)
  super &&
  @bricks == other.bricks &&
  @cluster == other.cluster &&
  @disperse_count == other.disperse_count &&
  @options == other.options &&
  @redundancy_count == other.redundancy_count &&
  @replica_count == other.replica_count &&
  @statistics == other.statistics &&
  @status == other.status &&
  @stripe_count == other.stripe_count &&
  @transport_types == other.transport_types &&
  @volume_type == other.volume_type
end

def bricks

Returns:
  • (Array) -
def bricks
  @bricks
end

def bricks=(list)

Parameters:
  • list (Array) --
def bricks=(list)
  if list.class == Array
    list = List.new(list)
    list.each_with_index do |value, index|
      if value.is_a?(Hash)
        list[index] = GlusterBrick.new(value)
      end
    end
  end
  @bricks = list
end

def cluster

Returns:
  • (Cluster) -
def cluster
  @cluster
end

def cluster=(value)

Parameters:
  • value (Cluster, Hash) --
def cluster=(value)
  if value.is_a?(Hash)
    value = Cluster.new(value)
  end
  @cluster = value
end

def comment

Returns:
  • (String) -
def comment
  @comment
end

def comment=(value)

Parameters:
  • value (String) --
def comment=(value)
  @comment = value
end

def description

Returns:
  • (String) -
def description
  @description
end

def description=(value)

Parameters:
  • value (String) --
def description=(value)
  @description = value
end

def disperse_count

Returns:
  • (Integer) -
def disperse_count
  @disperse_count
end

def disperse_count=(value)

Parameters:
  • value (Integer) --
def disperse_count=(value)
  @disperse_count = value
end

def hash


Generates a hash value for this object.
def hash
  super +
  @bricks.hash +
  @cluster.hash +
  @disperse_count.hash +
  @options.hash +
  @redundancy_count.hash +
  @replica_count.hash +
  @statistics.hash +
  @status.hash +
  @stripe_count.hash +
  @transport_types.hash +
  @volume_type.hash
end

def id

Returns:
  • (String) -
def id
  @id
end

def id=(value)

Parameters:
  • value (String) --
def id=(value)
  @id = value
end

def initialize(opts = {})

Options Hash: (**opts)
  • :volume_type (GlusterVolumeType) -- The value of attribute `volume_type`.
  • :transport_types (Array, Array) -- The values of attribute `transport_types`.
  • :stripe_count (Integer) -- The value of attribute `stripe_count`.
  • :status (GlusterVolumeStatus) -- The value of attribute `status`.
  • :statistics (Array, Array) -- The values of attribute `statistics`.
  • :replica_count (Integer) -- The value of attribute `replica_count`.
  • :redundancy_count (Integer) -- The value of attribute `redundancy_count`.
  • :options (Array) -- The values of attribute `options`.
  • :name (String) -- The value of attribute `name`.
  • :id (String) -- The value of attribute `id`.
  • :disperse_count (Integer) -- The value of attribute `disperse_count`.
  • :description (String) -- The value of attribute `description`.
  • :comment (String) -- The value of attribute `comment`.
  • :cluster (Cluster, Hash) -- The value of attribute `cluster`.
  • :bricks (Array, Array) -- The values of attribute `bricks`.

Parameters:
  • opts (Hash) -- A hash containing the attributes of the object. The keys of the hash
def initialize(opts = {})
  super(opts)
  self.bricks = opts[:bricks]
  self.cluster = opts[:cluster]
  self.disperse_count = opts[:disperse_count]
  self.options = opts[:options]
  self.redundancy_count = opts[:redundancy_count]
  self.replica_count = opts[:replica_count]
  self.statistics = opts[:statistics]
  self.status = opts[:status]
  self.stripe_count = opts[:stripe_count]
  self.transport_types = opts[:transport_types]
  self.volume_type = opts[:volume_type]
end

def name

Returns:
  • (String) -
def name
  @name
end

def name=(value)

Parameters:
  • value (String) --
def name=(value)
  @name = value
end

def options

Returns:
  • (Array -
def options
  @options
end

def options=(list)

Parameters:
  • list (Array) --
def options=(list)
  if list.class == Array
    list = List.new(list)
    list.each_with_index do |value, index|
      if value.is_a?(Hash)
        list[index] = Option.new(value)
      end
    end
  end
  @options = list
end

def redundancy_count

Returns:
  • (Integer) -
def redundancy_count
  @redundancy_count
end

def redundancy_count=(value)

Parameters:
  • value (Integer) --
def redundancy_count=(value)
  @redundancy_count = value
end

def replica_count

Returns:
  • (Integer) -
def replica_count
  @replica_count
end

def replica_count=(value)

Parameters:
  • value (Integer) --
def replica_count=(value)
  @replica_count = value
end

def statistics

Returns:
  • (Array) -
def statistics
  @statistics
end

def statistics=(list)

Parameters:
  • list (Array) --
def statistics=(list)
  if list.class == Array
    list = List.new(list)
    list.each_with_index do |value, index|
      if value.is_a?(Hash)
        list[index] = Statistic.new(value)
      end
    end
  end
  @statistics = list
end

def status

Returns:
  • (GlusterVolumeStatus) -
def status
  @status
end

def status=(value)

Parameters:
  • value (GlusterVolumeStatus) --
def status=(value)
  @status = value
end

def stripe_count

Returns:
  • (Integer) -
def stripe_count
  @stripe_count
end

def stripe_count=(value)

Parameters:
  • value (Integer) --
def stripe_count=(value)
  @stripe_count = value
end

def transport_types

Returns:
  • (Array) -
def transport_types
  @transport_types
end

def transport_types=(list)

Parameters:
  • list (Array) --
def transport_types=(list)
  @transport_types = list
end

def volume_type

Returns:
  • (GlusterVolumeType) -
def volume_type
  @volume_type
end

def volume_type=(value)

Parameters:
  • value (GlusterVolumeType) --
def volume_type=(value)
  @volume_type = value
end