class OvirtSDK4::Qos

Public Class Methods

new(opts = {}) click to toggle source

Creates a new instance of the {Qos} 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 [String] :comment The value of attribute `comment`.

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

@option opts [DataCenter, Hash] :data_center The value of attribute `data_center`.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Calls superclass method OvirtSDK4::Identified.new
# File lib/ovirtsdk4/types.rb, line 15156
def initialize(opts = {})
  super(opts)
  self.cpu_limit = opts[:cpu_limit]
  self.data_center = opts[:data_center]
  self.inbound_average = opts[:inbound_average]
  self.inbound_burst = opts[:inbound_burst]
  self.inbound_peak = opts[:inbound_peak]
  self.max_iops = opts[:max_iops]
  self.max_read_iops = opts[:max_read_iops]
  self.max_read_throughput = opts[:max_read_throughput]
  self.max_throughput = opts[:max_throughput]
  self.max_write_iops = opts[:max_write_iops]
  self.max_write_throughput = opts[:max_write_throughput]
  self.outbound_average = opts[:outbound_average]
  self.outbound_average_linkshare = opts[:outbound_average_linkshare]
  self.outbound_average_realtime = opts[:outbound_average_realtime]
  self.outbound_average_upperlimit = opts[:outbound_average_upperlimit]
  self.outbound_burst = opts[:outbound_burst]
  self.outbound_peak = opts[:outbound_peak]
  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 15181
def ==(other)
  super &&
  @cpu_limit == other.cpu_limit &&
  @data_center == other.data_center &&
  @inbound_average == other.inbound_average &&
  @inbound_burst == other.inbound_burst &&
  @inbound_peak == other.inbound_peak &&
  @max_iops == other.max_iops &&
  @max_read_iops == other.max_read_iops &&
  @max_read_throughput == other.max_read_throughput &&
  @max_throughput == other.max_throughput &&
  @max_write_iops == other.max_write_iops &&
  @max_write_throughput == other.max_write_throughput &&
  @outbound_average == other.outbound_average &&
  @outbound_average_linkshare == other.outbound_average_linkshare &&
  @outbound_average_realtime == other.outbound_average_realtime &&
  @outbound_average_upperlimit == other.outbound_average_upperlimit &&
  @outbound_burst == other.outbound_burst &&
  @outbound_peak == other.outbound_peak &&
  @type == other.type
end
comment() click to toggle source

Returns the value of the `comment` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 14706
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 14715
def comment=(value)
  @comment = value
end
cpu_limit() click to toggle source

Returns the value of the `cpu_limit` attribute.

@return [Integer]

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

Sets the value of the `cpu_limit` attribute.

@param value [Integer]

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

Returns the value of the `data_center` attribute.

@return [DataCenter]

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

Sets the value of the `data_center` attribute.

@param value [DataCenter, Hash]

The `value` parameter can be an instance of {OvirtSDK4::DataCenter} or a hash. If it is a hash then a new instance will be created passing the hash as the `opts` parameter to the constructor.

# File lib/ovirtsdk4/types.rb, line 14755
def data_center=(value)
  if value.is_a?(Hash)
    value = DataCenter.new(value)
  end
  @data_center = value
end
description() click to toggle source

Returns the value of the `description` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 14767
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 14776
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 15206
def hash
  super +
  @cpu_limit.hash +
  @data_center.hash +
  @inbound_average.hash +
  @inbound_burst.hash +
  @inbound_peak.hash +
  @max_iops.hash +
  @max_read_iops.hash +
  @max_read_throughput.hash +
  @max_throughput.hash +
  @max_write_iops.hash +
  @max_write_throughput.hash +
  @outbound_average.hash +
  @outbound_average_linkshare.hash +
  @outbound_average_realtime.hash +
  @outbound_average_upperlimit.hash +
  @outbound_burst.hash +
  @outbound_peak.hash +
  @type.hash
end
id() click to toggle source

Returns the value of the `id` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 14785
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 14794
def id=(value)
  @id = value
end
inbound_average() click to toggle source

Returns the value of the `inbound_average` attribute.

@return [Integer]

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

Sets the value of the `inbound_average` attribute.

@param value [Integer]

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

Returns the value of the `inbound_burst` attribute.

@return [Integer]

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

Sets the value of the `inbound_burst` attribute.

@param value [Integer]

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

Returns the value of the `inbound_peak` attribute.

@return [Integer]

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

Sets the value of the `inbound_peak` attribute.

@param value [Integer]

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

Returns the value of the `max_iops` attribute.

@return [Integer]

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

Sets the value of the `max_iops` attribute.

@param value [Integer]

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

Returns the value of the `max_read_iops` attribute.

@return [Integer]

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

Sets the value of the `max_read_iops` attribute.

@param value [Integer]

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

Returns the value of the `max_read_throughput` attribute.

@return [Integer]

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

Sets the value of the `max_read_throughput` attribute.

@param value [Integer]

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

Returns the value of the `max_throughput` attribute.

@return [Integer]

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

Sets the value of the `max_throughput` attribute.

@param value [Integer]

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

Returns the value of the `max_write_iops` attribute.

@return [Integer]

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

Sets the value of the `max_write_iops` attribute.

@param value [Integer]

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

Returns the value of the `max_write_throughput` attribute.

@return [Integer]

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

Sets the value of the `max_write_throughput` attribute.

@param value [Integer]

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

Returns the value of the `name` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 14965
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 14974
def name=(value)
  @name = value
end
outbound_average() click to toggle source

Returns the value of the `outbound_average` attribute.

@return [Integer]

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

Sets the value of the `outbound_average` attribute.

@param value [Integer]

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

Returns the value of the `outbound_average_linkshare` attribute.

@return [Integer]

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

Sets the value of the `outbound_average_linkshare` attribute.

@param value [Integer]

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

Returns the value of the `outbound_average_realtime` attribute.

@return [Integer]

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

Sets the value of the `outbound_average_realtime` attribute.

@param value [Integer]

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

Returns the value of the `outbound_average_upperlimit` attribute.

@return [Integer]

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

Sets the value of the `outbound_average_upperlimit` attribute.

@param value [Integer]

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

Returns the value of the `outbound_burst` attribute.

@return [Integer]

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

Sets the value of the `outbound_burst` attribute.

@param value [Integer]

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

Returns the value of the `outbound_peak` attribute.

@return [Integer]

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

Sets the value of the `outbound_peak` attribute.

@param value [Integer]

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

Returns the value of the `type` attribute.

@return [QosType]

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

Sets the value of the `type` attribute.

@param value [QosType]

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