Class: OvirtSDK4::Event
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::Event
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueifselfandotherhave the same attributes and values. -
#cluster ⇒ Cluster
Returns the value of the
clusterattribute. -
#cluster=(value) ⇒ Object
Sets the value of the
clusterattribute. -
#code ⇒ Integer
Returns the value of the
codeattribute. -
#code=(value) ⇒ Object
Sets the value of the
codeattribute. -
#comment ⇒ String
Returns the value of the
commentattribute. -
#comment=(value) ⇒ Object
Sets the value of the
commentattribute. -
#correlation_id ⇒ String
Returns the value of the
correlation_idattribute. -
#correlation_id=(value) ⇒ Object
Sets the value of the
correlation_idattribute. -
#custom_data ⇒ String
Returns the value of the
custom_dataattribute. -
#custom_data=(value) ⇒ Object
Sets the value of the
custom_dataattribute. -
#custom_id ⇒ Integer
Returns the value of the
custom_idattribute. -
#custom_id=(value) ⇒ Object
Sets the value of the
custom_idattribute. -
#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. -
#flood_rate ⇒ Integer
Returns the value of the
flood_rateattribute. -
#flood_rate=(value) ⇒ Object
Sets the value of the
flood_rateattribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#host ⇒ Host
Returns the value of the
hostattribute. -
#host=(value) ⇒ Object
Sets the value of the
hostattribute. -
#id ⇒ String
Returns the value of the
idattribute. -
#id=(value) ⇒ Object
Sets the value of the
idattribute. -
#index ⇒ Integer
Returns the value of the
indexattribute. -
#index=(value) ⇒ Object
Sets the value of the
indexattribute. -
#initialize(opts = {}) ⇒ Event
constructor
Creates a new instance of the Event class.
-
#name ⇒ String
Returns the value of the
nameattribute. -
#name=(value) ⇒ Object
Sets the value of the
nameattribute. -
#origin ⇒ String
Returns the value of the
originattribute. -
#origin=(value) ⇒ Object
Sets the value of the
originattribute. -
#severity ⇒ LogSeverity
Returns the value of the
severityattribute. -
#severity=(value) ⇒ Object
Sets the value of the
severityattribute. -
#storage_domain ⇒ StorageDomain
Returns the value of the
storage_domainattribute. -
#storage_domain=(value) ⇒ Object
Sets the value of the
storage_domainattribute. -
#template ⇒ Template
Returns the value of the
templateattribute. -
#template=(value) ⇒ Object
Sets the value of the
templateattribute. -
#time ⇒ DateTime
Returns the value of the
timeattribute. -
#time=(value) ⇒ Object
Sets the value of the
timeattribute. -
#user ⇒ User
Returns the value of the
userattribute. -
#user=(value) ⇒ Object
Sets the value of the
userattribute. -
#vm ⇒ Vm
Returns the value of the
vmattribute. -
#vm=(value) ⇒ Object
Sets the value of the
vmattribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Event
Creates a new instance of the OvirtSDK4::Event class.
36585 36586 36587 36588 36589 36590 36591 36592 36593 36594 36595 36596 36597 36598 36599 36600 36601 36602 36603 |
# File 'lib/ovirtsdk4/types.rb', line 36585 def initialize(opts = {}) super(opts) self.cluster = opts[:cluster] self.code = opts[:code] self.correlation_id = opts[:correlation_id] self.custom_data = opts[:custom_data] self.custom_id = opts[:custom_id] self.data_center = opts[:data_center] self.flood_rate = opts[:flood_rate] self.host = opts[:host] self.index = opts[:index] self.origin = opts[:origin] self.severity = opts[:severity] self.storage_domain = opts[:storage_domain] self.template = opts[:template] self.time = opts[:time] self.user = opts[:user] self.vm = opts[:vm] end |
Instance Method Details
#==(other) ⇒ Object
Returns true if self and other have the same attributes and values.
36608 36609 36610 36611 36612 36613 36614 36615 36616 36617 36618 36619 36620 36621 36622 36623 36624 36625 36626 |
# File 'lib/ovirtsdk4/types.rb', line 36608 def ==(other) super && @cluster == other.cluster && @code == other.code && @correlation_id == other.correlation_id && @custom_data == other.custom_data && @custom_id == other.custom_id && @data_center == other.data_center && @flood_rate == other.flood_rate && @host == other.host && @index == other.index && @origin == other.origin && @severity == other.severity && @storage_domain == other.storage_domain && @template == other.template && @time == other.time && @user == other.user && @vm == other.vm end |
#cluster ⇒ Cluster
Returns the value of the cluster attribute.
36133 36134 36135 |
# File 'lib/ovirtsdk4/types.rb', line 36133 def cluster @cluster end |
#cluster=(value) ⇒ Object
Sets the value of the cluster attribute.
The value parameter can be an instance of Cluster 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.
36146 36147 36148 36149 36150 36151 |
# File 'lib/ovirtsdk4/types.rb', line 36146 def cluster=(value) if value.is_a?(Hash) value = Cluster.new(value) end @cluster = value end |
#code ⇒ Integer
Returns the value of the code attribute.
36158 36159 36160 |
# File 'lib/ovirtsdk4/types.rb', line 36158 def code @code end |
#code=(value) ⇒ Object
Sets the value of the code attribute.
36167 36168 36169 |
# File 'lib/ovirtsdk4/types.rb', line 36167 def code=(value) @code = value end |
#comment ⇒ String
Returns the value of the comment attribute.
36176 36177 36178 |
# File 'lib/ovirtsdk4/types.rb', line 36176 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment attribute.
36185 36186 36187 |
# File 'lib/ovirtsdk4/types.rb', line 36185 def comment=(value) @comment = value end |
#correlation_id ⇒ String
Returns the value of the correlation_id attribute.
36194 36195 36196 |
# File 'lib/ovirtsdk4/types.rb', line 36194 def correlation_id @correlation_id end |
#correlation_id=(value) ⇒ Object
Sets the value of the correlation_id attribute.
36203 36204 36205 |
# File 'lib/ovirtsdk4/types.rb', line 36203 def correlation_id=(value) @correlation_id = value end |
#custom_data ⇒ String
Returns the value of the custom_data attribute.
36212 36213 36214 |
# File 'lib/ovirtsdk4/types.rb', line 36212 def custom_data @custom_data end |
#custom_data=(value) ⇒ Object
Sets the value of the custom_data attribute.
36221 36222 36223 |
# File 'lib/ovirtsdk4/types.rb', line 36221 def custom_data=(value) @custom_data = value end |
#custom_id ⇒ Integer
Returns the value of the custom_id attribute.
36230 36231 36232 |
# File 'lib/ovirtsdk4/types.rb', line 36230 def custom_id @custom_id end |
#custom_id=(value) ⇒ Object
Sets the value of the custom_id attribute.
36239 36240 36241 |
# File 'lib/ovirtsdk4/types.rb', line 36239 def custom_id=(value) @custom_id = value end |
#data_center ⇒ DataCenter
Returns the value of the data_center attribute.
36248 36249 36250 |
# File 'lib/ovirtsdk4/types.rb', line 36248 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.
36261 36262 36263 36264 36265 36266 |
# File 'lib/ovirtsdk4/types.rb', line 36261 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.
36273 36274 36275 |
# File 'lib/ovirtsdk4/types.rb', line 36273 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description attribute.
36282 36283 36284 |
# File 'lib/ovirtsdk4/types.rb', line 36282 def description=(value) @description = value end |
#flood_rate ⇒ Integer
Returns the value of the flood_rate attribute.
36291 36292 36293 |
# File 'lib/ovirtsdk4/types.rb', line 36291 def flood_rate @flood_rate end |
#flood_rate=(value) ⇒ Object
Sets the value of the flood_rate attribute.
36300 36301 36302 |
# File 'lib/ovirtsdk4/types.rb', line 36300 def flood_rate=(value) @flood_rate = value end |
#hash ⇒ Object
Generates a hash value for this object.
36631 36632 36633 36634 36635 36636 36637 36638 36639 36640 36641 36642 36643 36644 36645 36646 36647 36648 36649 |
# File 'lib/ovirtsdk4/types.rb', line 36631 def hash super + @cluster.hash + @code.hash + @correlation_id.hash + @custom_data.hash + @custom_id.hash + @data_center.hash + @flood_rate.hash + @host.hash + @index.hash + @origin.hash + @severity.hash + @storage_domain.hash + @template.hash + @time.hash + @user.hash + @vm.hash end |
#host ⇒ Host
Returns the value of the host attribute.
36309 36310 36311 |
# File 'lib/ovirtsdk4/types.rb', line 36309 def host @host end |
#host=(value) ⇒ Object
Sets the value of the host attribute.
The value parameter can be an instance of Host 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.
36322 36323 36324 36325 36326 36327 |
# File 'lib/ovirtsdk4/types.rb', line 36322 def host=(value) if value.is_a?(Hash) value = Host.new(value) end @host = value end |
#id ⇒ String
Returns the value of the id attribute.
36334 36335 36336 |
# File 'lib/ovirtsdk4/types.rb', line 36334 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id attribute.
36343 36344 36345 |
# File 'lib/ovirtsdk4/types.rb', line 36343 def id=(value) @id = value end |
#index ⇒ Integer
Returns the value of the index attribute.
36352 36353 36354 |
# File 'lib/ovirtsdk4/types.rb', line 36352 def index @index end |
#index=(value) ⇒ Object
Sets the value of the index attribute.
36361 36362 36363 |
# File 'lib/ovirtsdk4/types.rb', line 36361 def index=(value) @index = value end |
#name ⇒ String
Returns the value of the name attribute.
36370 36371 36372 |
# File 'lib/ovirtsdk4/types.rb', line 36370 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name attribute.
36379 36380 36381 |
# File 'lib/ovirtsdk4/types.rb', line 36379 def name=(value) @name = value end |
#origin ⇒ String
Returns the value of the origin attribute.
36388 36389 36390 |
# File 'lib/ovirtsdk4/types.rb', line 36388 def origin @origin end |
#origin=(value) ⇒ Object
Sets the value of the origin attribute.
36397 36398 36399 |
# File 'lib/ovirtsdk4/types.rb', line 36397 def origin=(value) @origin = value end |
#severity ⇒ LogSeverity
Returns the value of the severity attribute.
36406 36407 36408 |
# File 'lib/ovirtsdk4/types.rb', line 36406 def severity @severity end |
#severity=(value) ⇒ Object
Sets the value of the severity attribute.
36415 36416 36417 |
# File 'lib/ovirtsdk4/types.rb', line 36415 def severity=(value) @severity = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain attribute.
36424 36425 36426 |
# File 'lib/ovirtsdk4/types.rb', line 36424 def storage_domain @storage_domain end |
#storage_domain=(value) ⇒ Object
Sets the value of the storage_domain attribute.
The value parameter can be an instance of StorageDomain 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.
36437 36438 36439 36440 36441 36442 |
# File 'lib/ovirtsdk4/types.rb', line 36437 def storage_domain=(value) if value.is_a?(Hash) value = StorageDomain.new(value) end @storage_domain = value end |
#template ⇒ Template
Returns the value of the template attribute.
36449 36450 36451 |
# File 'lib/ovirtsdk4/types.rb', line 36449 def template @template end |
#template=(value) ⇒ Object
Sets the value of the template attribute.
The value parameter can be an instance of Template 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.
36462 36463 36464 36465 36466 36467 |
# File 'lib/ovirtsdk4/types.rb', line 36462 def template=(value) if value.is_a?(Hash) value = Template.new(value) end @template = value end |
#time ⇒ DateTime
Returns the value of the time attribute.
36474 36475 36476 |
# File 'lib/ovirtsdk4/types.rb', line 36474 def time @time end |
#time=(value) ⇒ Object
Sets the value of the time attribute.
36483 36484 36485 |
# File 'lib/ovirtsdk4/types.rb', line 36483 def time=(value) @time = value end |
#user ⇒ User
Returns the value of the user attribute.
36492 36493 36494 |
# File 'lib/ovirtsdk4/types.rb', line 36492 def user @user end |
#user=(value) ⇒ Object
Sets the value of the user attribute.
The value parameter can be an instance of User 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.
36505 36506 36507 36508 36509 36510 |
# File 'lib/ovirtsdk4/types.rb', line 36505 def user=(value) if value.is_a?(Hash) value = User.new(value) end @user = value end |
#vm ⇒ Vm
Returns the value of the vm attribute.
36517 36518 36519 |
# File 'lib/ovirtsdk4/types.rb', line 36517 def vm @vm end |
#vm=(value) ⇒ Object
Sets the value of the vm attribute.
The value parameter can be an instance of Vm 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.
36530 36531 36532 36533 36534 36535 |
# File 'lib/ovirtsdk4/types.rb', line 36530 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end |