class OvirtSDK4::Qos
Public Class Methods
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`.
# File lib/ovirtsdk4/types.rb, line 12200 def initialize(opts = {}) super(opts) self.comment = opts[:comment] self.cpu_limit = opts[:cpu_limit] self.data_center = opts[:data_center] self.description = opts[:description] self.id = opts[:id] 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.name = opts[:name] 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
Returns the value of the `comment` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 11750 def comment return @comment end
Sets the value of the `comment` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 11759 def comment=(value) @comment = value end
Returns the value of the `cpu_limit` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 11768 def cpu_limit return @cpu_limit end
Sets the value of the `cpu_limit` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 11777 def cpu_limit=(value) @cpu_limit = value end
Returns the value of the `data_center` attribute.
@return [DataCenter]
# File lib/ovirtsdk4/types.rb, line 11786 def data_center return @data_center end
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 11799 def data_center=(value) if value.is_a?(Hash) value = DataCenter.new(value) end @data_center = value end
Returns the value of the `description` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 11811 def description return @description end
Sets the value of the `description` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 11820 def description=(value) @description = value end
Returns the value of the `id` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 11829 def id return @id end
Sets the value of the `id` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 11838 def id=(value) @id = value end
Returns the value of the `inbound_average` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 11847 def inbound_average return @inbound_average end
Sets the value of the `inbound_average` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 11856 def inbound_average=(value) @inbound_average = value end
Returns the value of the `inbound_burst` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 11865 def inbound_burst return @inbound_burst end
Sets the value of the `inbound_burst` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 11874 def inbound_burst=(value) @inbound_burst = value end
Returns the value of the `inbound_peak` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 11883 def inbound_peak return @inbound_peak end
Sets the value of the `inbound_peak` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 11892 def inbound_peak=(value) @inbound_peak = value end
Returns the value of the `max_iops` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 11901 def max_iops return @max_iops end
Sets the value of the `max_iops` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 11910 def max_iops=(value) @max_iops = value end
Returns the value of the `max_read_iops` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 11919 def max_read_iops return @max_read_iops end
Sets the value of the `max_read_iops` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 11928 def max_read_iops=(value) @max_read_iops = value end
Returns the value of the `max_read_throughput` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 11937 def max_read_throughput return @max_read_throughput end
Sets the value of the `max_read_throughput` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 11946 def max_read_throughput=(value) @max_read_throughput = value end
Returns the value of the `max_throughput` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 11955 def max_throughput return @max_throughput end
Sets the value of the `max_throughput` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 11964 def max_throughput=(value) @max_throughput = value end
Returns the value of the `max_write_iops` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 11973 def max_write_iops return @max_write_iops end
Sets the value of the `max_write_iops` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 11982 def max_write_iops=(value) @max_write_iops = value end
Returns the value of the `max_write_throughput` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 11991 def max_write_throughput return @max_write_throughput end
Sets the value of the `max_write_throughput` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 12000 def max_write_throughput=(value) @max_write_throughput = value end
Returns the value of the `name` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 12009 def name return @name end
Sets the value of the `name` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 12018 def name=(value) @name = value end
Returns the value of the `outbound_average` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 12027 def outbound_average return @outbound_average end
Sets the value of the `outbound_average` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 12036 def outbound_average=(value) @outbound_average = value end
Returns the value of the `outbound_average_realtime` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 12063 def outbound_average_realtime return @outbound_average_realtime end
Sets the value of the `outbound_average_realtime` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 12072 def outbound_average_realtime=(value) @outbound_average_realtime = value end
Returns the value of the `outbound_average_upperlimit` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 12081 def outbound_average_upperlimit return @outbound_average_upperlimit end
Sets the value of the `outbound_average_upperlimit` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 12090 def outbound_average_upperlimit=(value) @outbound_average_upperlimit = value end
Returns the value of the `outbound_burst` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 12099 def outbound_burst return @outbound_burst end
Sets the value of the `outbound_burst` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 12108 def outbound_burst=(value) @outbound_burst = value end
Returns the value of the `outbound_peak` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 12117 def outbound_peak return @outbound_peak end
Sets the value of the `outbound_peak` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 12126 def outbound_peak=(value) @outbound_peak = value end
Returns the value of the `type` attribute.
@return [QosType]
# File lib/ovirtsdk4/types.rb, line 12135 def type return @type end
Sets the value of the `type` attribute.
@param value [QosType]
# File lib/ovirtsdk4/types.rb, line 12144 def type=(value) @type = value end