Class: OvirtSDK4::Qos
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::Qos
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary (collapse)
-
- (String) comment
Returns the value of the
comment
attribute. -
- (Object) comment=(value)
Sets the value of the
comment
attribute. -
- (Integer) cpu_limit
Returns the value of the
cpu_limit
attribute. -
- (Object) cpu_limit=(value)
Sets the value of the
cpu_limit
attribute. -
- (DataCenter) data_center
Returns the value of the
data_center
attribute. -
- (Object) data_center=(value)
Sets the value of the
data_center
attribute. -
- (String) description
Returns the value of the
description
attribute. -
- (Object) description=(value)
Sets the value of the
description
attribute. -
- (String) id
Returns the value of the
id
attribute. -
- (Object) id=(value)
Sets the value of the
id
attribute. -
- (Integer) inbound_average
Returns the value of the
inbound_average
attribute. -
- (Object) inbound_average=(value)
Sets the value of the
inbound_average
attribute. -
- (Integer) inbound_burst
Returns the value of the
inbound_burst
attribute. -
- (Object) inbound_burst=(value)
Sets the value of the
inbound_burst
attribute. -
- (Integer) inbound_peak
Returns the value of the
inbound_peak
attribute. -
- (Object) inbound_peak=(value)
Sets the value of the
inbound_peak
attribute. -
- (Qos) initialize(opts = {})
constructor
Creates a new instance of the Qos class.
-
- (Integer) max_iops
Returns the value of the
max_iops
attribute. -
- (Object) max_iops=(value)
Sets the value of the
max_iops
attribute. -
- (Integer) max_read_iops
Returns the value of the
max_read_iops
attribute. -
- (Object) max_read_iops=(value)
Sets the value of the
max_read_iops
attribute. -
- (Integer) max_read_throughput
Returns the value of the
max_read_throughput
attribute. -
- (Object) max_read_throughput=(value)
Sets the value of the
max_read_throughput
attribute. -
- (Integer) max_throughput
Returns the value of the
max_throughput
attribute. -
- (Object) max_throughput=(value)
Sets the value of the
max_throughput
attribute. -
- (Integer) max_write_iops
Returns the value of the
max_write_iops
attribute. -
- (Object) max_write_iops=(value)
Sets the value of the
max_write_iops
attribute. -
- (Integer) max_write_throughput
Returns the value of the
max_write_throughput
attribute. -
- (Object) max_write_throughput=(value)
Sets the value of the
max_write_throughput
attribute. -
- (String) name
Returns the value of the
name
attribute. -
- (Object) name=(value)
Sets the value of the
name
attribute. -
- (Integer) outbound_average
Returns the value of the
outbound_average
attribute. -
- (Object) outbound_average=(value)
Sets the value of the
outbound_average
attribute. -
- (Integer) outbound_average_linkshare
Returns the value of the
outbound_average_linkshare
attribute. -
- (Object) outbound_average_linkshare=(value)
Sets the value of the
outbound_average_linkshare
attribute. -
- (Integer) outbound_average_realtime
Returns the value of the
outbound_average_realtime
attribute. -
- (Object) outbound_average_realtime=(value)
Sets the value of the
outbound_average_realtime
attribute. -
- (Integer) outbound_average_upperlimit
Returns the value of the
outbound_average_upperlimit
attribute. -
- (Object) outbound_average_upperlimit=(value)
Sets the value of the
outbound_average_upperlimit
attribute. -
- (Integer) outbound_burst
Returns the value of the
outbound_burst
attribute. -
- (Object) outbound_burst=(value)
Sets the value of the
outbound_burst
attribute. -
- (Integer) outbound_peak
Returns the value of the
outbound_peak
attribute. -
- (Object) outbound_peak=(value)
Sets the value of the
outbound_peak
attribute. -
- (QosType) type
Returns the value of the
type
attribute. -
- (Object) type=(value)
Sets the value of the
type
attribute.
Methods included from Type
Constructor Details
- (Qos) initialize(opts = {})
Creates a new instance of the OvirtSDK4::Qos class.
11609 11610 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 11625 11626 11627 11628 11629 11630 11631 11632 11633 |
# File 'lib/ovirtsdk4/types.rb', line 11609 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 |
Instance Method Details
- (String) comment
Returns the value of the comment
attribute.
11159 11160 11161 |
# File 'lib/ovirtsdk4/types.rb', line 11159 def comment return @comment end |
- (Object) comment=(value)
Sets the value of the comment
attribute.
11168 11169 11170 |
# File 'lib/ovirtsdk4/types.rb', line 11168 def comment=(value) @comment = value end |
- (Integer) cpu_limit
Returns the value of the cpu_limit
attribute.
11177 11178 11179 |
# File 'lib/ovirtsdk4/types.rb', line 11177 def cpu_limit return @cpu_limit end |
- (Object) cpu_limit=(value)
Sets the value of the cpu_limit
attribute.
11186 11187 11188 |
# File 'lib/ovirtsdk4/types.rb', line 11186 def cpu_limit=(value) @cpu_limit = value end |
- (DataCenter) data_center
Returns the value of the data_center
attribute.
11195 11196 11197 |
# File 'lib/ovirtsdk4/types.rb', line 11195 def data_center return @data_center end |
- (Object) data_center=(value)
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.
11208 11209 11210 11211 11212 11213 |
# File 'lib/ovirtsdk4/types.rb', line 11208 def data_center=(value) if value.is_a?(Hash) value = DataCenter.new(value) end @data_center = value end |
- (String) description
Returns the value of the description
attribute.
11220 11221 11222 |
# File 'lib/ovirtsdk4/types.rb', line 11220 def description return @description end |
- (Object) description=(value)
Sets the value of the description
attribute.
11229 11230 11231 |
# File 'lib/ovirtsdk4/types.rb', line 11229 def description=(value) @description = value end |
- (String) id
Returns the value of the id
attribute.
11238 11239 11240 |
# File 'lib/ovirtsdk4/types.rb', line 11238 def id return @id end |
- (Object) id=(value)
Sets the value of the id
attribute.
11247 11248 11249 |
# File 'lib/ovirtsdk4/types.rb', line 11247 def id=(value) @id = value end |
- (Integer) inbound_average
Returns the value of the inbound_average
attribute.
11256 11257 11258 |
# File 'lib/ovirtsdk4/types.rb', line 11256 def inbound_average return @inbound_average end |
- (Object) inbound_average=(value)
Sets the value of the inbound_average
attribute.
11265 11266 11267 |
# File 'lib/ovirtsdk4/types.rb', line 11265 def inbound_average=(value) @inbound_average = value end |
- (Integer) inbound_burst
Returns the value of the inbound_burst
attribute.
11274 11275 11276 |
# File 'lib/ovirtsdk4/types.rb', line 11274 def inbound_burst return @inbound_burst end |
- (Object) inbound_burst=(value)
Sets the value of the inbound_burst
attribute.
11283 11284 11285 |
# File 'lib/ovirtsdk4/types.rb', line 11283 def inbound_burst=(value) @inbound_burst = value end |
- (Integer) inbound_peak
Returns the value of the inbound_peak
attribute.
11292 11293 11294 |
# File 'lib/ovirtsdk4/types.rb', line 11292 def inbound_peak return @inbound_peak end |
- (Object) inbound_peak=(value)
Sets the value of the inbound_peak
attribute.
11301 11302 11303 |
# File 'lib/ovirtsdk4/types.rb', line 11301 def inbound_peak=(value) @inbound_peak = value end |
- (Integer) max_iops
Returns the value of the max_iops
attribute.
11310 11311 11312 |
# File 'lib/ovirtsdk4/types.rb', line 11310 def max_iops return @max_iops end |
- (Object) max_iops=(value)
Sets the value of the max_iops
attribute.
11319 11320 11321 |
# File 'lib/ovirtsdk4/types.rb', line 11319 def max_iops=(value) @max_iops = value end |
- (Integer) max_read_iops
Returns the value of the max_read_iops
attribute.
11328 11329 11330 |
# File 'lib/ovirtsdk4/types.rb', line 11328 def max_read_iops return @max_read_iops end |
- (Object) max_read_iops=(value)
Sets the value of the max_read_iops
attribute.
11337 11338 11339 |
# File 'lib/ovirtsdk4/types.rb', line 11337 def max_read_iops=(value) @max_read_iops = value end |
- (Integer) max_read_throughput
Returns the value of the max_read_throughput
attribute.
11346 11347 11348 |
# File 'lib/ovirtsdk4/types.rb', line 11346 def max_read_throughput return @max_read_throughput end |
- (Object) max_read_throughput=(value)
Sets the value of the max_read_throughput
attribute.
11355 11356 11357 |
# File 'lib/ovirtsdk4/types.rb', line 11355 def max_read_throughput=(value) @max_read_throughput = value end |
- (Integer) max_throughput
Returns the value of the max_throughput
attribute.
11364 11365 11366 |
# File 'lib/ovirtsdk4/types.rb', line 11364 def max_throughput return @max_throughput end |
- (Object) max_throughput=(value)
Sets the value of the max_throughput
attribute.
11373 11374 11375 |
# File 'lib/ovirtsdk4/types.rb', line 11373 def max_throughput=(value) @max_throughput = value end |
- (Integer) max_write_iops
Returns the value of the max_write_iops
attribute.
11382 11383 11384 |
# File 'lib/ovirtsdk4/types.rb', line 11382 def max_write_iops return @max_write_iops end |
- (Object) max_write_iops=(value)
Sets the value of the max_write_iops
attribute.
11391 11392 11393 |
# File 'lib/ovirtsdk4/types.rb', line 11391 def max_write_iops=(value) @max_write_iops = value end |
- (Integer) max_write_throughput
Returns the value of the max_write_throughput
attribute.
11400 11401 11402 |
# File 'lib/ovirtsdk4/types.rb', line 11400 def max_write_throughput return @max_write_throughput end |
- (Object) max_write_throughput=(value)
Sets the value of the max_write_throughput
attribute.
11409 11410 11411 |
# File 'lib/ovirtsdk4/types.rb', line 11409 def max_write_throughput=(value) @max_write_throughput = value end |
- (String) name
Returns the value of the name
attribute.
11418 11419 11420 |
# File 'lib/ovirtsdk4/types.rb', line 11418 def name return @name end |
- (Object) name=(value)
Sets the value of the name
attribute.
11427 11428 11429 |
# File 'lib/ovirtsdk4/types.rb', line 11427 def name=(value) @name = value end |
- (Integer) outbound_average
Returns the value of the outbound_average
attribute.
11436 11437 11438 |
# File 'lib/ovirtsdk4/types.rb', line 11436 def outbound_average return @outbound_average end |
- (Object) outbound_average=(value)
Sets the value of the outbound_average
attribute.
11445 11446 11447 |
# File 'lib/ovirtsdk4/types.rb', line 11445 def outbound_average=(value) @outbound_average = value end |
- (Integer) outbound_average_linkshare
Returns the value of the outbound_average_linkshare
attribute.
11454 11455 11456 |
# File 'lib/ovirtsdk4/types.rb', line 11454 def outbound_average_linkshare return @outbound_average_linkshare end |
- (Object) outbound_average_linkshare=(value)
Sets the value of the outbound_average_linkshare
attribute.
11463 11464 11465 |
# File 'lib/ovirtsdk4/types.rb', line 11463 def outbound_average_linkshare=(value) @outbound_average_linkshare = value end |
- (Integer) outbound_average_realtime
Returns the value of the outbound_average_realtime
attribute.
11472 11473 11474 |
# File 'lib/ovirtsdk4/types.rb', line 11472 def outbound_average_realtime return @outbound_average_realtime end |
- (Object) outbound_average_realtime=(value)
Sets the value of the outbound_average_realtime
attribute.
11481 11482 11483 |
# File 'lib/ovirtsdk4/types.rb', line 11481 def outbound_average_realtime=(value) @outbound_average_realtime = value end |
- (Integer) outbound_average_upperlimit
Returns the value of the outbound_average_upperlimit
attribute.
11490 11491 11492 |
# File 'lib/ovirtsdk4/types.rb', line 11490 def outbound_average_upperlimit return @outbound_average_upperlimit end |
- (Object) outbound_average_upperlimit=(value)
Sets the value of the outbound_average_upperlimit
attribute.
11499 11500 11501 |
# File 'lib/ovirtsdk4/types.rb', line 11499 def outbound_average_upperlimit=(value) @outbound_average_upperlimit = value end |
- (Integer) outbound_burst
Returns the value of the outbound_burst
attribute.
11508 11509 11510 |
# File 'lib/ovirtsdk4/types.rb', line 11508 def outbound_burst return @outbound_burst end |
- (Object) outbound_burst=(value)
Sets the value of the outbound_burst
attribute.
11517 11518 11519 |
# File 'lib/ovirtsdk4/types.rb', line 11517 def outbound_burst=(value) @outbound_burst = value end |
- (Integer) outbound_peak
Returns the value of the outbound_peak
attribute.
11526 11527 11528 |
# File 'lib/ovirtsdk4/types.rb', line 11526 def outbound_peak return @outbound_peak end |
- (Object) outbound_peak=(value)
Sets the value of the outbound_peak
attribute.
11535 11536 11537 |
# File 'lib/ovirtsdk4/types.rb', line 11535 def outbound_peak=(value) @outbound_peak = value end |
- (QosType) type
Returns the value of the type
attribute.
11544 11545 11546 |
# File 'lib/ovirtsdk4/types.rb', line 11544 def type return @type end |
- (Object) type=(value)
Sets the value of the type
attribute.
11553 11554 11555 |
# File 'lib/ovirtsdk4/types.rb', line 11553 def type=(value) @type = value end |