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
trueifselfandotherhave the same attributes and values. -
#comment ⇒ String
Returns the value of the
commentattribute. -
#comment=(value) ⇒ Object
Sets the value of the
commentattribute. -
#cpu_limit ⇒ Integer
Returns the value of the
cpu_limitattribute. -
#cpu_limit=(value) ⇒ Object
Sets the value of the
cpu_limitattribute. -
#data_center ⇒ DataCenter
Returns the value of the
data_centerattribute. -
#data_center=(value) ⇒ Object
Sets the value of the
data_centerattribute. -
#description ⇒ String
Returns the value of the
descriptionattribute. -
#description=(value) ⇒ Object
Sets the value of the
descriptionattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#id ⇒ String
Returns the value of the
idattribute. -
#id=(value) ⇒ Object
Sets the value of the
idattribute. -
#inbound_average ⇒ Integer
Returns the value of the
inbound_averageattribute. -
#inbound_average=(value) ⇒ Object
Sets the value of the
inbound_averageattribute. -
#inbound_burst ⇒ Integer
Returns the value of the
inbound_burstattribute. -
#inbound_burst=(value) ⇒ Object
Sets the value of the
inbound_burstattribute. -
#inbound_peak ⇒ Integer
Returns the value of the
inbound_peakattribute. -
#inbound_peak=(value) ⇒ Object
Sets the value of the
inbound_peakattribute. -
#initialize(opts = {}) ⇒ Qos
constructor
Creates a new instance of the Qos class.
-
#max_iops ⇒ Integer
Returns the value of the
max_iopsattribute. -
#max_iops=(value) ⇒ Object
Sets the value of the
max_iopsattribute. -
#max_read_iops ⇒ Integer
Returns the value of the
max_read_iopsattribute. -
#max_read_iops=(value) ⇒ Object
Sets the value of the
max_read_iopsattribute. -
#max_read_throughput ⇒ Integer
Returns the value of the
max_read_throughputattribute. -
#max_read_throughput=(value) ⇒ Object
Sets the value of the
max_read_throughputattribute. -
#max_throughput ⇒ Integer
Returns the value of the
max_throughputattribute. -
#max_throughput=(value) ⇒ Object
Sets the value of the
max_throughputattribute. -
#max_write_iops ⇒ Integer
Returns the value of the
max_write_iopsattribute. -
#max_write_iops=(value) ⇒ Object
Sets the value of the
max_write_iopsattribute. -
#max_write_throughput ⇒ Integer
Returns the value of the
max_write_throughputattribute. -
#max_write_throughput=(value) ⇒ Object
Sets the value of the
max_write_throughputattribute. -
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#outbound_average ⇒ Integer
Returns the value of the
outbound_averageattribute. -
#outbound_average=(value) ⇒ Object
Sets the value of the
outbound_averageattribute. -
#outbound_average_linkshare ⇒ Integer
Returns the value of the
outbound_average_linkshareattribute. -
#outbound_average_linkshare=(value) ⇒ Object
Sets the value of the
outbound_average_linkshareattribute. -
#outbound_average_realtime ⇒ Integer
Returns the value of the
outbound_average_realtimeattribute. -
#outbound_average_realtime=(value) ⇒ Object
Sets the value of the
outbound_average_realtimeattribute. -
#outbound_average_upperlimit ⇒ Integer
Returns the value of the
outbound_average_upperlimitattribute. -
#outbound_average_upperlimit=(value) ⇒ Object
Sets the value of the
outbound_average_upperlimitattribute. -
#outbound_burst ⇒ Integer
Returns the value of the
outbound_burstattribute. -
#outbound_burst=(value) ⇒ Object
Sets the value of the
outbound_burstattribute. -
#outbound_peak ⇒ Integer
Returns the value of the
outbound_peakattribute. -
#outbound_peak=(value) ⇒ Object
Sets the value of the
outbound_peakattribute. -
#type ⇒ QosType
Returns the value of the
typeattribute. -
#type=(value) ⇒ Object
Sets the value of the
typeattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Qos
Creates a new instance of the OvirtSDK4::Qos class.
16304 16305 16306 16307 16308 16309 16310 16311 16312 16313 16314 16315 16316 16317 16318 16319 16320 16321 16322 16323 16324 |
# File 'lib/ovirtsdk4/types.rb', line 16304 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.
16329 16330 16331 16332 16333 16334 16335 16336 16337 16338 16339 16340 16341 16342 16343 16344 16345 16346 16347 16348 16349 |
# File 'lib/ovirtsdk4/types.rb', line 16329 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.
15854 15855 15856 |
# File 'lib/ovirtsdk4/types.rb', line 15854 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
15863 15864 15865 |
# File 'lib/ovirtsdk4/types.rb', line 15863 def comment=(value) @comment = value end |
#cpu_limit ⇒ Integer
Returns the value of the cpu_limit attribute.
15872 15873 15874 |
# File 'lib/ovirtsdk4/types.rb', line 15872 def cpu_limit @cpu_limit end |
#cpu_limit=(value) ⇒ Object
Sets the value of the cpu_limit attribute.
15881 15882 15883 |
# File 'lib/ovirtsdk4/types.rb', line 15881 def cpu_limit=(value) @cpu_limit = value end |
#data_center ⇒ DataCenter
Returns the value of the data_center attribute.
15890 15891 15892 |
# File 'lib/ovirtsdk4/types.rb', line 15890 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.
15903 15904 15905 15906 15907 15908 |
# File 'lib/ovirtsdk4/types.rb', line 15903 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.
15915 15916 15917 |
# File 'lib/ovirtsdk4/types.rb', line 15915 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
15924 15925 15926 |
# File 'lib/ovirtsdk4/types.rb', line 15924 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
16354 16355 16356 16357 16358 16359 16360 16361 16362 16363 16364 16365 16366 16367 16368 16369 16370 16371 16372 16373 16374 |
# File 'lib/ovirtsdk4/types.rb', line 16354 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.
15933 15934 15935 |
# File 'lib/ovirtsdk4/types.rb', line 15933 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
15942 15943 15944 |
# File 'lib/ovirtsdk4/types.rb', line 15942 def id=(value) @id = value end |
#inbound_average ⇒ Integer
Returns the value of the inbound_average attribute.
15951 15952 15953 |
# File 'lib/ovirtsdk4/types.rb', line 15951 def inbound_average @inbound_average end |
#inbound_average=(value) ⇒ Object
Sets the value of the inbound_average attribute.
15960 15961 15962 |
# File 'lib/ovirtsdk4/types.rb', line 15960 def inbound_average=(value) @inbound_average = value end |
#inbound_burst ⇒ Integer
Returns the value of the inbound_burst attribute.
15969 15970 15971 |
# File 'lib/ovirtsdk4/types.rb', line 15969 def inbound_burst @inbound_burst end |
#inbound_burst=(value) ⇒ Object
Sets the value of the inbound_burst attribute.
15978 15979 15980 |
# File 'lib/ovirtsdk4/types.rb', line 15978 def inbound_burst=(value) @inbound_burst = value end |
#inbound_peak ⇒ Integer
Returns the value of the inbound_peak attribute.
15987 15988 15989 |
# File 'lib/ovirtsdk4/types.rb', line 15987 def inbound_peak @inbound_peak end |
#inbound_peak=(value) ⇒ Object
Sets the value of the inbound_peak attribute.
15996 15997 15998 |
# File 'lib/ovirtsdk4/types.rb', line 15996 def inbound_peak=(value) @inbound_peak = value end |
#max_iops ⇒ Integer
Returns the value of the max_iops attribute.
16005 16006 16007 |
# File 'lib/ovirtsdk4/types.rb', line 16005 def max_iops @max_iops end |
#max_iops=(value) ⇒ Object
Sets the value of the max_iops attribute.
16014 16015 16016 |
# File 'lib/ovirtsdk4/types.rb', line 16014 def max_iops=(value) @max_iops = value end |
#max_read_iops ⇒ Integer
Returns the value of the max_read_iops attribute.
16023 16024 16025 |
# File 'lib/ovirtsdk4/types.rb', line 16023 def max_read_iops @max_read_iops end |
#max_read_iops=(value) ⇒ Object
Sets the value of the max_read_iops attribute.
16032 16033 16034 |
# File 'lib/ovirtsdk4/types.rb', line 16032 def max_read_iops=(value) @max_read_iops = value end |
#max_read_throughput ⇒ Integer
Returns the value of the max_read_throughput attribute.
16041 16042 16043 |
# File 'lib/ovirtsdk4/types.rb', line 16041 def max_read_throughput @max_read_throughput end |
#max_read_throughput=(value) ⇒ Object
Sets the value of the max_read_throughput attribute.
16050 16051 16052 |
# File 'lib/ovirtsdk4/types.rb', line 16050 def max_read_throughput=(value) @max_read_throughput = value end |
#max_throughput ⇒ Integer
Returns the value of the max_throughput attribute.
16059 16060 16061 |
# File 'lib/ovirtsdk4/types.rb', line 16059 def max_throughput @max_throughput end |
#max_throughput=(value) ⇒ Object
Sets the value of the max_throughput attribute.
16068 16069 16070 |
# File 'lib/ovirtsdk4/types.rb', line 16068 def max_throughput=(value) @max_throughput = value end |
#max_write_iops ⇒ Integer
Returns the value of the max_write_iops attribute.
16077 16078 16079 |
# File 'lib/ovirtsdk4/types.rb', line 16077 def max_write_iops @max_write_iops end |
#max_write_iops=(value) ⇒ Object
Sets the value of the max_write_iops attribute.
16086 16087 16088 |
# File 'lib/ovirtsdk4/types.rb', line 16086 def max_write_iops=(value) @max_write_iops = value end |
#max_write_throughput ⇒ Integer
Returns the value of the max_write_throughput attribute.
16095 16096 16097 |
# File 'lib/ovirtsdk4/types.rb', line 16095 def max_write_throughput @max_write_throughput end |
#max_write_throughput=(value) ⇒ Object
Sets the value of the max_write_throughput attribute.
16104 16105 16106 |
# File 'lib/ovirtsdk4/types.rb', line 16104 def max_write_throughput=(value) @max_write_throughput = value end |
#name ⇒ String
Returns the value of the name attribute.
16113 16114 16115 |
# File 'lib/ovirtsdk4/types.rb', line 16113 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
16122 16123 16124 |
# File 'lib/ovirtsdk4/types.rb', line 16122 def name=(value) @name = value end |
#outbound_average ⇒ Integer
Returns the value of the outbound_average attribute.
16131 16132 16133 |
# File 'lib/ovirtsdk4/types.rb', line 16131 def outbound_average @outbound_average end |
#outbound_average=(value) ⇒ Object
Sets the value of the outbound_average attribute.
16140 16141 16142 |
# File 'lib/ovirtsdk4/types.rb', line 16140 def outbound_average=(value) @outbound_average = value end |
#outbound_average_linkshare ⇒ Integer
Returns the value of the outbound_average_linkshare attribute.
16149 16150 16151 |
# File 'lib/ovirtsdk4/types.rb', line 16149 def outbound_average_linkshare @outbound_average_linkshare end |
#outbound_average_linkshare=(value) ⇒ Object
Sets the value of the outbound_average_linkshare attribute.
16158 16159 16160 |
# File 'lib/ovirtsdk4/types.rb', line 16158 def outbound_average_linkshare=(value) @outbound_average_linkshare = value end |
#outbound_average_realtime ⇒ Integer
Returns the value of the outbound_average_realtime attribute.
16167 16168 16169 |
# File 'lib/ovirtsdk4/types.rb', line 16167 def outbound_average_realtime @outbound_average_realtime end |
#outbound_average_realtime=(value) ⇒ Object
Sets the value of the outbound_average_realtime attribute.
16176 16177 16178 |
# File 'lib/ovirtsdk4/types.rb', line 16176 def outbound_average_realtime=(value) @outbound_average_realtime = value end |
#outbound_average_upperlimit ⇒ Integer
Returns the value of the outbound_average_upperlimit attribute.
16185 16186 16187 |
# File 'lib/ovirtsdk4/types.rb', line 16185 def outbound_average_upperlimit @outbound_average_upperlimit end |
#outbound_average_upperlimit=(value) ⇒ Object
Sets the value of the outbound_average_upperlimit attribute.
16194 16195 16196 |
# File 'lib/ovirtsdk4/types.rb', line 16194 def outbound_average_upperlimit=(value) @outbound_average_upperlimit = value end |
#outbound_burst ⇒ Integer
Returns the value of the outbound_burst attribute.
16203 16204 16205 |
# File 'lib/ovirtsdk4/types.rb', line 16203 def outbound_burst @outbound_burst end |
#outbound_burst=(value) ⇒ Object
Sets the value of the outbound_burst attribute.
16212 16213 16214 |
# File 'lib/ovirtsdk4/types.rb', line 16212 def outbound_burst=(value) @outbound_burst = value end |
#outbound_peak ⇒ Integer
Returns the value of the outbound_peak attribute.
16221 16222 16223 |
# File 'lib/ovirtsdk4/types.rb', line 16221 def outbound_peak @outbound_peak end |
#outbound_peak=(value) ⇒ Object
Sets the value of the outbound_peak attribute.
16230 16231 16232 |
# File 'lib/ovirtsdk4/types.rb', line 16230 def outbound_peak=(value) @outbound_peak = value end |
#type ⇒ QosType
Returns the value of the type attribute.
16239 16240 16241 |
# File 'lib/ovirtsdk4/types.rb', line 16239 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type attribute.
16248 16249 16250 |
# File 'lib/ovirtsdk4/types.rb', line 16248 def type=(value) @type = value end |