Class: OvirtSDK4::Qos
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::Qos
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
true
ifself
andother
have the same attributes and values. -
#comment ⇒ String
Returns the value of the
comment
attribute. -
#comment=(value) ⇒ Object
Sets the value of the
comment
attribute. -
#cpu_limit ⇒ Integer
Returns the value of the
cpu_limit
attribute. -
#cpu_limit=(value) ⇒ Object
Sets the value of the
cpu_limit
attribute. -
#data_center ⇒ DataCenter
Returns the value of the
data_center
attribute. -
#data_center=(value) ⇒ Object
Sets the value of the
data_center
attribute. -
#description ⇒ String
Returns the value of the
description
attribute. -
#description=(value) ⇒ Object
Sets the value of the
description
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ String
Returns the value of the
id
attribute. -
#id=(value) ⇒ Object
Sets the value of the
id
attribute. -
#inbound_average ⇒ Integer
Returns the value of the
inbound_average
attribute. -
#inbound_average=(value) ⇒ Object
Sets the value of the
inbound_average
attribute. -
#inbound_burst ⇒ Integer
Returns the value of the
inbound_burst
attribute. -
#inbound_burst=(value) ⇒ Object
Sets the value of the
inbound_burst
attribute. -
#inbound_peak ⇒ Integer
Returns the value of the
inbound_peak
attribute. -
#inbound_peak=(value) ⇒ Object
Sets the value of the
inbound_peak
attribute. -
#initialize(opts = {}) ⇒ Qos
constructor
Creates a new instance of the Qos class.
-
#max_iops ⇒ Integer
Returns the value of the
max_iops
attribute. -
#max_iops=(value) ⇒ Object
Sets the value of the
max_iops
attribute. -
#max_read_iops ⇒ Integer
Returns the value of the
max_read_iops
attribute. -
#max_read_iops=(value) ⇒ Object
Sets the value of the
max_read_iops
attribute. -
#max_read_throughput ⇒ Integer
Returns the value of the
max_read_throughput
attribute. -
#max_read_throughput=(value) ⇒ Object
Sets the value of the
max_read_throughput
attribute. -
#max_throughput ⇒ Integer
Returns the value of the
max_throughput
attribute. -
#max_throughput=(value) ⇒ Object
Sets the value of the
max_throughput
attribute. -
#max_write_iops ⇒ Integer
Returns the value of the
max_write_iops
attribute. -
#max_write_iops=(value) ⇒ Object
Sets the value of the
max_write_iops
attribute. -
#max_write_throughput ⇒ Integer
Returns the value of the
max_write_throughput
attribute. -
#max_write_throughput=(value) ⇒ Object
Sets the value of the
max_write_throughput
attribute. -
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#outbound_average ⇒ Integer
Returns the value of the
outbound_average
attribute. -
#outbound_average=(value) ⇒ Object
Sets the value of the
outbound_average
attribute. -
#outbound_average_linkshare ⇒ Integer
Returns the value of the
outbound_average_linkshare
attribute. -
#outbound_average_linkshare=(value) ⇒ Object
Sets the value of the
outbound_average_linkshare
attribute. -
#outbound_average_realtime ⇒ Integer
Returns the value of the
outbound_average_realtime
attribute. -
#outbound_average_realtime=(value) ⇒ Object
Sets the value of the
outbound_average_realtime
attribute. -
#outbound_average_upperlimit ⇒ Integer
Returns the value of the
outbound_average_upperlimit
attribute. -
#outbound_average_upperlimit=(value) ⇒ Object
Sets the value of the
outbound_average_upperlimit
attribute. -
#outbound_burst ⇒ Integer
Returns the value of the
outbound_burst
attribute. -
#outbound_burst=(value) ⇒ Object
Sets the value of the
outbound_burst
attribute. -
#outbound_peak ⇒ Integer
Returns the value of the
outbound_peak
attribute. -
#outbound_peak=(value) ⇒ Object
Sets the value of the
outbound_peak
attribute. -
#type ⇒ QosType
Returns the value of the
type
attribute. -
#type=(value) ⇒ Object
Sets the value of the
type
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Qos
Creates a new instance of the OvirtSDK4::Qos class.
15202 15203 15204 15205 15206 15207 15208 15209 15210 15211 15212 15213 15214 15215 15216 15217 15218 15219 15220 15221 15222 |
# File 'lib/ovirtsdk4/types.rb', line 15202 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 |
Instance Method Details
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
15227 15228 15229 15230 15231 15232 15233 15234 15235 15236 15237 15238 15239 15240 15241 15242 15243 15244 15245 15246 15247 |
# File 'lib/ovirtsdk4/types.rb', line 15227 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 ⇒ String
Returns the value of the comment
attribute.
14752 14753 14754 |
# File 'lib/ovirtsdk4/types.rb', line 14752 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
14761 14762 14763 |
# File 'lib/ovirtsdk4/types.rb', line 14761 def comment=(value) @comment = value end |
#cpu_limit ⇒ Integer
Returns the value of the cpu_limit
attribute.
14770 14771 14772 |
# File 'lib/ovirtsdk4/types.rb', line 14770 def cpu_limit @cpu_limit end |
#cpu_limit=(value) ⇒ Object
Sets the value of the cpu_limit
attribute.
14779 14780 14781 |
# File 'lib/ovirtsdk4/types.rb', line 14779 def cpu_limit=(value) @cpu_limit = value end |
#data_center ⇒ DataCenter
Returns the value of the data_center
attribute.
14788 14789 14790 |
# File 'lib/ovirtsdk4/types.rb', line 14788 def data_center @data_center end |
#data_center=(value) ⇒ Object
Sets the value of the data_center
attribute.
The value
parameter can be an instance of 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.
14801 14802 14803 14804 14805 14806 |
# File 'lib/ovirtsdk4/types.rb', line 14801 def data_center=(value) if value.is_a?(Hash) value = DataCenter.new(value) end @data_center = value end |
#description ⇒ String
Returns the value of the description
attribute.
14813 14814 14815 |
# File 'lib/ovirtsdk4/types.rb', line 14813 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
14822 14823 14824 |
# File 'lib/ovirtsdk4/types.rb', line 14822 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
15252 15253 15254 15255 15256 15257 15258 15259 15260 15261 15262 15263 15264 15265 15266 15267 15268 15269 15270 15271 15272 |
# File 'lib/ovirtsdk4/types.rb', line 15252 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 ⇒ String
Returns the value of the id
attribute.
14831 14832 14833 |
# File 'lib/ovirtsdk4/types.rb', line 14831 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
14840 14841 14842 |
# File 'lib/ovirtsdk4/types.rb', line 14840 def id=(value) @id = value end |
#inbound_average ⇒ Integer
Returns the value of the inbound_average
attribute.
14849 14850 14851 |
# File 'lib/ovirtsdk4/types.rb', line 14849 def inbound_average @inbound_average end |
#inbound_average=(value) ⇒ Object
Sets the value of the inbound_average
attribute.
14858 14859 14860 |
# File 'lib/ovirtsdk4/types.rb', line 14858 def inbound_average=(value) @inbound_average = value end |
#inbound_burst ⇒ Integer
Returns the value of the inbound_burst
attribute.
14867 14868 14869 |
# File 'lib/ovirtsdk4/types.rb', line 14867 def inbound_burst @inbound_burst end |
#inbound_burst=(value) ⇒ Object
Sets the value of the inbound_burst
attribute.
14876 14877 14878 |
# File 'lib/ovirtsdk4/types.rb', line 14876 def inbound_burst=(value) @inbound_burst = value end |
#inbound_peak ⇒ Integer
Returns the value of the inbound_peak
attribute.
14885 14886 14887 |
# File 'lib/ovirtsdk4/types.rb', line 14885 def inbound_peak @inbound_peak end |
#inbound_peak=(value) ⇒ Object
Sets the value of the inbound_peak
attribute.
14894 14895 14896 |
# File 'lib/ovirtsdk4/types.rb', line 14894 def inbound_peak=(value) @inbound_peak = value end |
#max_iops ⇒ Integer
Returns the value of the max_iops
attribute.
14903 14904 14905 |
# File 'lib/ovirtsdk4/types.rb', line 14903 def max_iops @max_iops end |
#max_iops=(value) ⇒ Object
Sets the value of the max_iops
attribute.
14912 14913 14914 |
# File 'lib/ovirtsdk4/types.rb', line 14912 def max_iops=(value) @max_iops = value end |
#max_read_iops ⇒ Integer
Returns the value of the max_read_iops
attribute.
14921 14922 14923 |
# File 'lib/ovirtsdk4/types.rb', line 14921 def max_read_iops @max_read_iops end |
#max_read_iops=(value) ⇒ Object
Sets the value of the max_read_iops
attribute.
14930 14931 14932 |
# File 'lib/ovirtsdk4/types.rb', line 14930 def max_read_iops=(value) @max_read_iops = value end |
#max_read_throughput ⇒ Integer
Returns the value of the max_read_throughput
attribute.
14939 14940 14941 |
# File 'lib/ovirtsdk4/types.rb', line 14939 def max_read_throughput @max_read_throughput end |
#max_read_throughput=(value) ⇒ Object
Sets the value of the max_read_throughput
attribute.
14948 14949 14950 |
# File 'lib/ovirtsdk4/types.rb', line 14948 def max_read_throughput=(value) @max_read_throughput = value end |
#max_throughput ⇒ Integer
Returns the value of the max_throughput
attribute.
14957 14958 14959 |
# File 'lib/ovirtsdk4/types.rb', line 14957 def max_throughput @max_throughput end |
#max_throughput=(value) ⇒ Object
Sets the value of the max_throughput
attribute.
14966 14967 14968 |
# File 'lib/ovirtsdk4/types.rb', line 14966 def max_throughput=(value) @max_throughput = value end |
#max_write_iops ⇒ Integer
Returns the value of the max_write_iops
attribute.
14975 14976 14977 |
# File 'lib/ovirtsdk4/types.rb', line 14975 def max_write_iops @max_write_iops end |
#max_write_iops=(value) ⇒ Object
Sets the value of the max_write_iops
attribute.
14984 14985 14986 |
# File 'lib/ovirtsdk4/types.rb', line 14984 def max_write_iops=(value) @max_write_iops = value end |
#max_write_throughput ⇒ Integer
Returns the value of the max_write_throughput
attribute.
14993 14994 14995 |
# File 'lib/ovirtsdk4/types.rb', line 14993 def max_write_throughput @max_write_throughput end |
#max_write_throughput=(value) ⇒ Object
Sets the value of the max_write_throughput
attribute.
15002 15003 15004 |
# File 'lib/ovirtsdk4/types.rb', line 15002 def max_write_throughput=(value) @max_write_throughput = value end |
#name ⇒ String
Returns the value of the name
attribute.
15011 15012 15013 |
# File 'lib/ovirtsdk4/types.rb', line 15011 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
15020 15021 15022 |
# File 'lib/ovirtsdk4/types.rb', line 15020 def name=(value) @name = value end |
#outbound_average ⇒ Integer
Returns the value of the outbound_average
attribute.
15029 15030 15031 |
# File 'lib/ovirtsdk4/types.rb', line 15029 def outbound_average @outbound_average end |
#outbound_average=(value) ⇒ Object
Sets the value of the outbound_average
attribute.
15038 15039 15040 |
# File 'lib/ovirtsdk4/types.rb', line 15038 def outbound_average=(value) @outbound_average = value end |
#outbound_average_linkshare ⇒ Integer
Returns the value of the outbound_average_linkshare
attribute.
15047 15048 15049 |
# File 'lib/ovirtsdk4/types.rb', line 15047 def outbound_average_linkshare @outbound_average_linkshare end |
#outbound_average_linkshare=(value) ⇒ Object
Sets the value of the outbound_average_linkshare
attribute.
15056 15057 15058 |
# File 'lib/ovirtsdk4/types.rb', line 15056 def outbound_average_linkshare=(value) @outbound_average_linkshare = value end |
#outbound_average_realtime ⇒ Integer
Returns the value of the outbound_average_realtime
attribute.
15065 15066 15067 |
# File 'lib/ovirtsdk4/types.rb', line 15065 def outbound_average_realtime @outbound_average_realtime end |
#outbound_average_realtime=(value) ⇒ Object
Sets the value of the outbound_average_realtime
attribute.
15074 15075 15076 |
# File 'lib/ovirtsdk4/types.rb', line 15074 def outbound_average_realtime=(value) @outbound_average_realtime = value end |
#outbound_average_upperlimit ⇒ Integer
Returns the value of the outbound_average_upperlimit
attribute.
15083 15084 15085 |
# File 'lib/ovirtsdk4/types.rb', line 15083 def outbound_average_upperlimit @outbound_average_upperlimit end |
#outbound_average_upperlimit=(value) ⇒ Object
Sets the value of the outbound_average_upperlimit
attribute.
15092 15093 15094 |
# File 'lib/ovirtsdk4/types.rb', line 15092 def outbound_average_upperlimit=(value) @outbound_average_upperlimit = value end |
#outbound_burst ⇒ Integer
Returns the value of the outbound_burst
attribute.
15101 15102 15103 |
# File 'lib/ovirtsdk4/types.rb', line 15101 def outbound_burst @outbound_burst end |
#outbound_burst=(value) ⇒ Object
Sets the value of the outbound_burst
attribute.
15110 15111 15112 |
# File 'lib/ovirtsdk4/types.rb', line 15110 def outbound_burst=(value) @outbound_burst = value end |
#outbound_peak ⇒ Integer
Returns the value of the outbound_peak
attribute.
15119 15120 15121 |
# File 'lib/ovirtsdk4/types.rb', line 15119 def outbound_peak @outbound_peak end |
#outbound_peak=(value) ⇒ Object
Sets the value of the outbound_peak
attribute.
15128 15129 15130 |
# File 'lib/ovirtsdk4/types.rb', line 15128 def outbound_peak=(value) @outbound_peak = value end |
#type ⇒ QosType
Returns the value of the type
attribute.
15137 15138 15139 |
# File 'lib/ovirtsdk4/types.rb', line 15137 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
15146 15147 15148 |
# File 'lib/ovirtsdk4/types.rb', line 15146 def type=(value) @type = value end |