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.
15153 15154 15155 15156 15157 15158 15159 15160 15161 15162 15163 15164 15165 15166 15167 15168 15169 15170 15171 15172 15173 |
# File 'lib/ovirtsdk4/types.rb', line 15153 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.
15178 15179 15180 15181 15182 15183 15184 15185 15186 15187 15188 15189 15190 15191 15192 15193 15194 15195 15196 15197 15198 |
# File 'lib/ovirtsdk4/types.rb', line 15178 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.
14703 14704 14705 |
# File 'lib/ovirtsdk4/types.rb', line 14703 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
14712 14713 14714 |
# File 'lib/ovirtsdk4/types.rb', line 14712 def comment=(value) @comment = value end |
#cpu_limit ⇒ Integer
Returns the value of the cpu_limit
attribute.
14721 14722 14723 |
# File 'lib/ovirtsdk4/types.rb', line 14721 def cpu_limit @cpu_limit end |
#cpu_limit=(value) ⇒ Object
Sets the value of the cpu_limit
attribute.
14730 14731 14732 |
# File 'lib/ovirtsdk4/types.rb', line 14730 def cpu_limit=(value) @cpu_limit = value end |
#data_center ⇒ DataCenter
Returns the value of the data_center
attribute.
14739 14740 14741 |
# File 'lib/ovirtsdk4/types.rb', line 14739 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.
14752 14753 14754 14755 14756 14757 |
# File 'lib/ovirtsdk4/types.rb', line 14752 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.
14764 14765 14766 |
# File 'lib/ovirtsdk4/types.rb', line 14764 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
14773 14774 14775 |
# File 'lib/ovirtsdk4/types.rb', line 14773 def description=(value) @description = value end |
#hash ⇒ Object
Generates a hash value for this object.
15203 15204 15205 15206 15207 15208 15209 15210 15211 15212 15213 15214 15215 15216 15217 15218 15219 15220 15221 15222 15223 |
# File 'lib/ovirtsdk4/types.rb', line 15203 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.
14782 14783 14784 |
# File 'lib/ovirtsdk4/types.rb', line 14782 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
14791 14792 14793 |
# File 'lib/ovirtsdk4/types.rb', line 14791 def id=(value) @id = value end |
#inbound_average ⇒ Integer
Returns the value of the inbound_average
attribute.
14800 14801 14802 |
# File 'lib/ovirtsdk4/types.rb', line 14800 def inbound_average @inbound_average end |
#inbound_average=(value) ⇒ Object
Sets the value of the inbound_average
attribute.
14809 14810 14811 |
# File 'lib/ovirtsdk4/types.rb', line 14809 def inbound_average=(value) @inbound_average = value end |
#inbound_burst ⇒ Integer
Returns the value of the inbound_burst
attribute.
14818 14819 14820 |
# File 'lib/ovirtsdk4/types.rb', line 14818 def inbound_burst @inbound_burst end |
#inbound_burst=(value) ⇒ Object
Sets the value of the inbound_burst
attribute.
14827 14828 14829 |
# File 'lib/ovirtsdk4/types.rb', line 14827 def inbound_burst=(value) @inbound_burst = value end |
#inbound_peak ⇒ Integer
Returns the value of the inbound_peak
attribute.
14836 14837 14838 |
# File 'lib/ovirtsdk4/types.rb', line 14836 def inbound_peak @inbound_peak end |
#inbound_peak=(value) ⇒ Object
Sets the value of the inbound_peak
attribute.
14845 14846 14847 |
# File 'lib/ovirtsdk4/types.rb', line 14845 def inbound_peak=(value) @inbound_peak = value end |
#max_iops ⇒ Integer
Returns the value of the max_iops
attribute.
14854 14855 14856 |
# File 'lib/ovirtsdk4/types.rb', line 14854 def max_iops @max_iops end |
#max_iops=(value) ⇒ Object
Sets the value of the max_iops
attribute.
14863 14864 14865 |
# File 'lib/ovirtsdk4/types.rb', line 14863 def max_iops=(value) @max_iops = value end |
#max_read_iops ⇒ Integer
Returns the value of the max_read_iops
attribute.
14872 14873 14874 |
# File 'lib/ovirtsdk4/types.rb', line 14872 def max_read_iops @max_read_iops end |
#max_read_iops=(value) ⇒ Object
Sets the value of the max_read_iops
attribute.
14881 14882 14883 |
# File 'lib/ovirtsdk4/types.rb', line 14881 def max_read_iops=(value) @max_read_iops = value end |
#max_read_throughput ⇒ Integer
Returns the value of the max_read_throughput
attribute.
14890 14891 14892 |
# File 'lib/ovirtsdk4/types.rb', line 14890 def max_read_throughput @max_read_throughput end |
#max_read_throughput=(value) ⇒ Object
Sets the value of the max_read_throughput
attribute.
14899 14900 14901 |
# File 'lib/ovirtsdk4/types.rb', line 14899 def max_read_throughput=(value) @max_read_throughput = value end |
#max_throughput ⇒ Integer
Returns the value of the max_throughput
attribute.
14908 14909 14910 |
# File 'lib/ovirtsdk4/types.rb', line 14908 def max_throughput @max_throughput end |
#max_throughput=(value) ⇒ Object
Sets the value of the max_throughput
attribute.
14917 14918 14919 |
# File 'lib/ovirtsdk4/types.rb', line 14917 def max_throughput=(value) @max_throughput = value end |
#max_write_iops ⇒ Integer
Returns the value of the max_write_iops
attribute.
14926 14927 14928 |
# File 'lib/ovirtsdk4/types.rb', line 14926 def max_write_iops @max_write_iops end |
#max_write_iops=(value) ⇒ Object
Sets the value of the max_write_iops
attribute.
14935 14936 14937 |
# File 'lib/ovirtsdk4/types.rb', line 14935 def max_write_iops=(value) @max_write_iops = value end |
#max_write_throughput ⇒ Integer
Returns the value of the max_write_throughput
attribute.
14944 14945 14946 |
# File 'lib/ovirtsdk4/types.rb', line 14944 def max_write_throughput @max_write_throughput end |
#max_write_throughput=(value) ⇒ Object
Sets the value of the max_write_throughput
attribute.
14953 14954 14955 |
# File 'lib/ovirtsdk4/types.rb', line 14953 def max_write_throughput=(value) @max_write_throughput = value end |
#name ⇒ String
Returns the value of the name
attribute.
14962 14963 14964 |
# File 'lib/ovirtsdk4/types.rb', line 14962 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
14971 14972 14973 |
# File 'lib/ovirtsdk4/types.rb', line 14971 def name=(value) @name = value end |
#outbound_average ⇒ Integer
Returns the value of the outbound_average
attribute.
14980 14981 14982 |
# File 'lib/ovirtsdk4/types.rb', line 14980 def outbound_average @outbound_average end |
#outbound_average=(value) ⇒ Object
Sets the value of the outbound_average
attribute.
14989 14990 14991 |
# File 'lib/ovirtsdk4/types.rb', line 14989 def outbound_average=(value) @outbound_average = value end |
#outbound_average_linkshare ⇒ Integer
Returns the value of the outbound_average_linkshare
attribute.
14998 14999 15000 |
# File 'lib/ovirtsdk4/types.rb', line 14998 def outbound_average_linkshare @outbound_average_linkshare end |
#outbound_average_linkshare=(value) ⇒ Object
Sets the value of the outbound_average_linkshare
attribute.
15007 15008 15009 |
# File 'lib/ovirtsdk4/types.rb', line 15007 def outbound_average_linkshare=(value) @outbound_average_linkshare = value end |
#outbound_average_realtime ⇒ Integer
Returns the value of the outbound_average_realtime
attribute.
15016 15017 15018 |
# File 'lib/ovirtsdk4/types.rb', line 15016 def outbound_average_realtime @outbound_average_realtime end |
#outbound_average_realtime=(value) ⇒ Object
Sets the value of the outbound_average_realtime
attribute.
15025 15026 15027 |
# File 'lib/ovirtsdk4/types.rb', line 15025 def outbound_average_realtime=(value) @outbound_average_realtime = value end |
#outbound_average_upperlimit ⇒ Integer
Returns the value of the outbound_average_upperlimit
attribute.
15034 15035 15036 |
# File 'lib/ovirtsdk4/types.rb', line 15034 def outbound_average_upperlimit @outbound_average_upperlimit end |
#outbound_average_upperlimit=(value) ⇒ Object
Sets the value of the outbound_average_upperlimit
attribute.
15043 15044 15045 |
# File 'lib/ovirtsdk4/types.rb', line 15043 def outbound_average_upperlimit=(value) @outbound_average_upperlimit = value end |
#outbound_burst ⇒ Integer
Returns the value of the outbound_burst
attribute.
15052 15053 15054 |
# File 'lib/ovirtsdk4/types.rb', line 15052 def outbound_burst @outbound_burst end |
#outbound_burst=(value) ⇒ Object
Sets the value of the outbound_burst
attribute.
15061 15062 15063 |
# File 'lib/ovirtsdk4/types.rb', line 15061 def outbound_burst=(value) @outbound_burst = value end |
#outbound_peak ⇒ Integer
Returns the value of the outbound_peak
attribute.
15070 15071 15072 |
# File 'lib/ovirtsdk4/types.rb', line 15070 def outbound_peak @outbound_peak end |
#outbound_peak=(value) ⇒ Object
Sets the value of the outbound_peak
attribute.
15079 15080 15081 |
# File 'lib/ovirtsdk4/types.rb', line 15079 def outbound_peak=(value) @outbound_peak = value end |
#type ⇒ QosType
Returns the value of the type
attribute.
15088 15089 15090 |
# File 'lib/ovirtsdk4/types.rb', line 15088 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
15097 15098 15099 |
# File 'lib/ovirtsdk4/types.rb', line 15097 def type=(value) @type = value end |