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.
16034 16035 16036 16037 16038 16039 16040 16041 16042 16043 16044 16045 16046 16047 16048 16049 16050 16051 16052 16053 16054 |
# File 'lib/ovirtsdk4/types.rb', line 16034 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.
16059 16060 16061 16062 16063 16064 16065 16066 16067 16068 16069 16070 16071 16072 16073 16074 16075 16076 16077 16078 16079 |
# File 'lib/ovirtsdk4/types.rb', line 16059 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.
15584 15585 15586 |
# File 'lib/ovirtsdk4/types.rb', line 15584 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
15593 15594 15595 |
# File 'lib/ovirtsdk4/types.rb', line 15593 def comment=(value) @comment = value end |
#cpu_limit ⇒ Integer
Returns the value of the cpu_limit
attribute.
15602 15603 15604 |
# File 'lib/ovirtsdk4/types.rb', line 15602 def cpu_limit @cpu_limit end |
#cpu_limit=(value) ⇒ Object
Sets the value of the cpu_limit
attribute.
15611 15612 15613 |
# File 'lib/ovirtsdk4/types.rb', line 15611 def cpu_limit=(value) @cpu_limit = value end |
#data_center ⇒ DataCenter
Returns the value of the data_center
attribute.
15620 15621 15622 |
# File 'lib/ovirtsdk4/types.rb', line 15620 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.
15633 15634 15635 15636 15637 15638 |
# File 'lib/ovirtsdk4/types.rb', line 15633 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.
15645 15646 15647 |
# File 'lib/ovirtsdk4/types.rb', line 15645 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
15654 15655 15656 |
# File 'lib/ovirtsdk4/types.rb', line 15654 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
16084 16085 16086 16087 16088 16089 16090 16091 16092 16093 16094 16095 16096 16097 16098 16099 16100 16101 16102 16103 16104 |
# File 'lib/ovirtsdk4/types.rb', line 16084 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.
15663 15664 15665 |
# File 'lib/ovirtsdk4/types.rb', line 15663 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
15672 15673 15674 |
# File 'lib/ovirtsdk4/types.rb', line 15672 def id=(value) @id = value end |
#inbound_average ⇒ Integer
Returns the value of the inbound_average
attribute.
15681 15682 15683 |
# File 'lib/ovirtsdk4/types.rb', line 15681 def inbound_average @inbound_average end |
#inbound_average=(value) ⇒ Object
Sets the value of the inbound_average
attribute.
15690 15691 15692 |
# File 'lib/ovirtsdk4/types.rb', line 15690 def inbound_average=(value) @inbound_average = value end |
#inbound_burst ⇒ Integer
Returns the value of the inbound_burst
attribute.
15699 15700 15701 |
# File 'lib/ovirtsdk4/types.rb', line 15699 def inbound_burst @inbound_burst end |
#inbound_burst=(value) ⇒ Object
Sets the value of the inbound_burst
attribute.
15708 15709 15710 |
# File 'lib/ovirtsdk4/types.rb', line 15708 def inbound_burst=(value) @inbound_burst = value end |
#inbound_peak ⇒ Integer
Returns the value of the inbound_peak
attribute.
15717 15718 15719 |
# File 'lib/ovirtsdk4/types.rb', line 15717 def inbound_peak @inbound_peak end |
#inbound_peak=(value) ⇒ Object
Sets the value of the inbound_peak
attribute.
15726 15727 15728 |
# File 'lib/ovirtsdk4/types.rb', line 15726 def inbound_peak=(value) @inbound_peak = value end |
#max_iops ⇒ Integer
Returns the value of the max_iops
attribute.
15735 15736 15737 |
# File 'lib/ovirtsdk4/types.rb', line 15735 def max_iops @max_iops end |
#max_iops=(value) ⇒ Object
Sets the value of the max_iops
attribute.
15744 15745 15746 |
# File 'lib/ovirtsdk4/types.rb', line 15744 def max_iops=(value) @max_iops = value end |
#max_read_iops ⇒ Integer
Returns the value of the max_read_iops
attribute.
15753 15754 15755 |
# File 'lib/ovirtsdk4/types.rb', line 15753 def max_read_iops @max_read_iops end |
#max_read_iops=(value) ⇒ Object
Sets the value of the max_read_iops
attribute.
15762 15763 15764 |
# File 'lib/ovirtsdk4/types.rb', line 15762 def max_read_iops=(value) @max_read_iops = value end |
#max_read_throughput ⇒ Integer
Returns the value of the max_read_throughput
attribute.
15771 15772 15773 |
# File 'lib/ovirtsdk4/types.rb', line 15771 def max_read_throughput @max_read_throughput end |
#max_read_throughput=(value) ⇒ Object
Sets the value of the max_read_throughput
attribute.
15780 15781 15782 |
# File 'lib/ovirtsdk4/types.rb', line 15780 def max_read_throughput=(value) @max_read_throughput = value end |
#max_throughput ⇒ Integer
Returns the value of the max_throughput
attribute.
15789 15790 15791 |
# File 'lib/ovirtsdk4/types.rb', line 15789 def max_throughput @max_throughput end |
#max_throughput=(value) ⇒ Object
Sets the value of the max_throughput
attribute.
15798 15799 15800 |
# File 'lib/ovirtsdk4/types.rb', line 15798 def max_throughput=(value) @max_throughput = value end |
#max_write_iops ⇒ Integer
Returns the value of the max_write_iops
attribute.
15807 15808 15809 |
# File 'lib/ovirtsdk4/types.rb', line 15807 def max_write_iops @max_write_iops end |
#max_write_iops=(value) ⇒ Object
Sets the value of the max_write_iops
attribute.
15816 15817 15818 |
# File 'lib/ovirtsdk4/types.rb', line 15816 def max_write_iops=(value) @max_write_iops = value end |
#max_write_throughput ⇒ Integer
Returns the value of the max_write_throughput
attribute.
15825 15826 15827 |
# File 'lib/ovirtsdk4/types.rb', line 15825 def max_write_throughput @max_write_throughput end |
#max_write_throughput=(value) ⇒ Object
Sets the value of the max_write_throughput
attribute.
15834 15835 15836 |
# File 'lib/ovirtsdk4/types.rb', line 15834 def max_write_throughput=(value) @max_write_throughput = value end |
#name ⇒ String
Returns the value of the name
attribute.
15843 15844 15845 |
# File 'lib/ovirtsdk4/types.rb', line 15843 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
15852 15853 15854 |
# File 'lib/ovirtsdk4/types.rb', line 15852 def name=(value) @name = value end |
#outbound_average ⇒ Integer
Returns the value of the outbound_average
attribute.
15861 15862 15863 |
# File 'lib/ovirtsdk4/types.rb', line 15861 def outbound_average @outbound_average end |
#outbound_average=(value) ⇒ Object
Sets the value of the outbound_average
attribute.
15870 15871 15872 |
# File 'lib/ovirtsdk4/types.rb', line 15870 def outbound_average=(value) @outbound_average = value end |
#outbound_average_linkshare ⇒ Integer
Returns the value of the outbound_average_linkshare
attribute.
15879 15880 15881 |
# File 'lib/ovirtsdk4/types.rb', line 15879 def outbound_average_linkshare @outbound_average_linkshare end |
#outbound_average_linkshare=(value) ⇒ Object
Sets the value of the outbound_average_linkshare
attribute.
15888 15889 15890 |
# File 'lib/ovirtsdk4/types.rb', line 15888 def outbound_average_linkshare=(value) @outbound_average_linkshare = value end |
#outbound_average_realtime ⇒ Integer
Returns the value of the outbound_average_realtime
attribute.
15897 15898 15899 |
# File 'lib/ovirtsdk4/types.rb', line 15897 def outbound_average_realtime @outbound_average_realtime end |
#outbound_average_realtime=(value) ⇒ Object
Sets the value of the outbound_average_realtime
attribute.
15906 15907 15908 |
# File 'lib/ovirtsdk4/types.rb', line 15906 def outbound_average_realtime=(value) @outbound_average_realtime = value end |
#outbound_average_upperlimit ⇒ Integer
Returns the value of the outbound_average_upperlimit
attribute.
15915 15916 15917 |
# File 'lib/ovirtsdk4/types.rb', line 15915 def outbound_average_upperlimit @outbound_average_upperlimit end |
#outbound_average_upperlimit=(value) ⇒ Object
Sets the value of the outbound_average_upperlimit
attribute.
15924 15925 15926 |
# File 'lib/ovirtsdk4/types.rb', line 15924 def outbound_average_upperlimit=(value) @outbound_average_upperlimit = value end |
#outbound_burst ⇒ Integer
Returns the value of the outbound_burst
attribute.
15933 15934 15935 |
# File 'lib/ovirtsdk4/types.rb', line 15933 def outbound_burst @outbound_burst end |
#outbound_burst=(value) ⇒ Object
Sets the value of the outbound_burst
attribute.
15942 15943 15944 |
# File 'lib/ovirtsdk4/types.rb', line 15942 def outbound_burst=(value) @outbound_burst = value end |
#outbound_peak ⇒ Integer
Returns the value of the outbound_peak
attribute.
15951 15952 15953 |
# File 'lib/ovirtsdk4/types.rb', line 15951 def outbound_peak @outbound_peak end |
#outbound_peak=(value) ⇒ Object
Sets the value of the outbound_peak
attribute.
15960 15961 15962 |
# File 'lib/ovirtsdk4/types.rb', line 15960 def outbound_peak=(value) @outbound_peak = value end |
#type ⇒ QosType
Returns the value of the type
attribute.
15969 15970 15971 |
# File 'lib/ovirtsdk4/types.rb', line 15969 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
15978 15979 15980 |
# File 'lib/ovirtsdk4/types.rb', line 15978 def type=(value) @type = value end |