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
true
ifself
andother
have the same attributes and values. -
#cluster ⇒ Cluster
Returns the value of the
cluster
attribute. -
#cluster=(value) ⇒ Object
Sets the value of the
cluster
attribute. -
#code ⇒ Integer
Returns the value of the
code
attribute. -
#code=(value) ⇒ Object
Sets the value of the
code
attribute. -
#comment ⇒ String
Returns the value of the
comment
attribute. -
#comment=(value) ⇒ Object
Sets the value of the
comment
attribute. -
#correlation_id ⇒ String
Returns the value of the
correlation_id
attribute. -
#correlation_id=(value) ⇒ Object
Sets the value of the
correlation_id
attribute. -
#custom_data ⇒ String
Returns the value of the
custom_data
attribute. -
#custom_data=(value) ⇒ Object
Sets the value of the
custom_data
attribute. -
#custom_id ⇒ Integer
Returns the value of the
custom_id
attribute. -
#custom_id=(value) ⇒ Object
Sets the value of the
custom_id
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. -
#flood_rate ⇒ Integer
Returns the value of the
flood_rate
attribute. -
#flood_rate=(value) ⇒ Object
Sets the value of the
flood_rate
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#host ⇒ Host
Returns the value of the
host
attribute. -
#host=(value) ⇒ Object
Sets the value of the
host
attribute. -
#id ⇒ String
Returns the value of the
id
attribute. -
#id=(value) ⇒ Object
Sets the value of the
id
attribute. -
#index ⇒ Integer
Returns the value of the
index
attribute. -
#index=(value) ⇒ Object
Sets the value of the
index
attribute. -
#initialize(opts = {}) ⇒ Event
constructor
Creates a new instance of the Event class.
-
#log_on_host ⇒ Boolean
Returns the value of the
log_on_host
attribute. -
#log_on_host=(value) ⇒ Object
Sets the value of the
log_on_host
attribute. -
#name ⇒ String
Returns the value of the
name
attribute. -
#name=(value) ⇒ Object
Sets the value of the
name
attribute. -
#origin ⇒ String
Returns the value of the
origin
attribute. -
#origin=(value) ⇒ Object
Sets the value of the
origin
attribute. -
#severity ⇒ LogSeverity
Returns the value of the
severity
attribute. -
#severity=(value) ⇒ Object
Sets the value of the
severity
attribute. -
#storage_domain ⇒ StorageDomain
Returns the value of the
storage_domain
attribute. -
#storage_domain=(value) ⇒ Object
Sets the value of the
storage_domain
attribute. -
#template ⇒ Template
Returns the value of the
template
attribute. -
#template=(value) ⇒ Object
Sets the value of the
template
attribute. -
#time ⇒ DateTime
Returns the value of the
time
attribute. -
#time=(value) ⇒ Object
Sets the value of the
time
attribute. -
#user ⇒ User
Returns the value of the
user
attribute. -
#user=(value) ⇒ Object
Sets the value of the
user
attribute. -
#vm ⇒ Vm
Returns the value of the
vm
attribute. -
#vm=(value) ⇒ Object
Sets the value of the
vm
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ Event
Creates a new instance of the OvirtSDK4::Event class.
38614 38615 38616 38617 38618 38619 38620 38621 38622 38623 38624 38625 38626 38627 38628 38629 38630 38631 38632 38633 |
# File 'lib/ovirtsdk4/types.rb', line 38614 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.log_on_host = opts[:log_on_host] 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.
38638 38639 38640 38641 38642 38643 38644 38645 38646 38647 38648 38649 38650 38651 38652 38653 38654 38655 38656 38657 |
# File 'lib/ovirtsdk4/types.rb', line 38638 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 && @log_on_host == other.log_on_host && @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.
38142 38143 38144 |
# File 'lib/ovirtsdk4/types.rb', line 38142 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.
38155 38156 38157 38158 38159 38160 |
# File 'lib/ovirtsdk4/types.rb', line 38155 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.
38167 38168 38169 |
# File 'lib/ovirtsdk4/types.rb', line 38167 def code @code end |
#code=(value) ⇒ Object
Sets the value of the code
attribute.
38176 38177 38178 |
# File 'lib/ovirtsdk4/types.rb', line 38176 def code=(value) @code = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
38185 38186 38187 |
# File 'lib/ovirtsdk4/types.rb', line 38185 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
38194 38195 38196 |
# File 'lib/ovirtsdk4/types.rb', line 38194 def comment=(value) @comment = value end |
#correlation_id ⇒ String
Returns the value of the correlation_id
attribute.
38203 38204 38205 |
# File 'lib/ovirtsdk4/types.rb', line 38203 def correlation_id @correlation_id end |
#correlation_id=(value) ⇒ Object
Sets the value of the correlation_id
attribute.
38212 38213 38214 |
# File 'lib/ovirtsdk4/types.rb', line 38212 def correlation_id=(value) @correlation_id = value end |
#custom_data ⇒ String
Returns the value of the custom_data
attribute.
38221 38222 38223 |
# File 'lib/ovirtsdk4/types.rb', line 38221 def custom_data @custom_data end |
#custom_data=(value) ⇒ Object
Sets the value of the custom_data
attribute.
38230 38231 38232 |
# File 'lib/ovirtsdk4/types.rb', line 38230 def custom_data=(value) @custom_data = value end |
#custom_id ⇒ Integer
Returns the value of the custom_id
attribute.
38239 38240 38241 |
# File 'lib/ovirtsdk4/types.rb', line 38239 def custom_id @custom_id end |
#custom_id=(value) ⇒ Object
Sets the value of the custom_id
attribute.
38248 38249 38250 |
# File 'lib/ovirtsdk4/types.rb', line 38248 def custom_id=(value) @custom_id = value end |
#data_center ⇒ DataCenter
Returns the value of the data_center
attribute.
38257 38258 38259 |
# File 'lib/ovirtsdk4/types.rb', line 38257 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.
38270 38271 38272 38273 38274 38275 |
# File 'lib/ovirtsdk4/types.rb', line 38270 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.
38282 38283 38284 |
# File 'lib/ovirtsdk4/types.rb', line 38282 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
38291 38292 38293 |
# File 'lib/ovirtsdk4/types.rb', line 38291 def description=(value) @description = value end |
#flood_rate ⇒ Integer
Returns the value of the flood_rate
attribute.
38300 38301 38302 |
# File 'lib/ovirtsdk4/types.rb', line 38300 def flood_rate @flood_rate end |
#flood_rate=(value) ⇒ Object
Sets the value of the flood_rate
attribute.
38309 38310 38311 |
# File 'lib/ovirtsdk4/types.rb', line 38309 def flood_rate=(value) @flood_rate = value end |
#hash ⇒ Object
Generates a hash value for this object.
38662 38663 38664 38665 38666 38667 38668 38669 38670 38671 38672 38673 38674 38675 38676 38677 38678 38679 38680 38681 |
# File 'lib/ovirtsdk4/types.rb', line 38662 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 + @log_on_host.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.
38318 38319 38320 |
# File 'lib/ovirtsdk4/types.rb', line 38318 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.
38331 38332 38333 38334 38335 38336 |
# File 'lib/ovirtsdk4/types.rb', line 38331 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.
38343 38344 38345 |
# File 'lib/ovirtsdk4/types.rb', line 38343 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
38352 38353 38354 |
# File 'lib/ovirtsdk4/types.rb', line 38352 def id=(value) @id = value end |
#index ⇒ Integer
Returns the value of the index
attribute.
38361 38362 38363 |
# File 'lib/ovirtsdk4/types.rb', line 38361 def index @index end |
#index=(value) ⇒ Object
Sets the value of the index
attribute.
38370 38371 38372 |
# File 'lib/ovirtsdk4/types.rb', line 38370 def index=(value) @index = value end |
#log_on_host ⇒ Boolean
Returns the value of the log_on_host
attribute.
38379 38380 38381 |
# File 'lib/ovirtsdk4/types.rb', line 38379 def log_on_host @log_on_host end |
#log_on_host=(value) ⇒ Object
Sets the value of the log_on_host
attribute.
38388 38389 38390 |
# File 'lib/ovirtsdk4/types.rb', line 38388 def log_on_host=(value) @log_on_host = value end |
#name ⇒ String
Returns the value of the name
attribute.
38397 38398 38399 |
# File 'lib/ovirtsdk4/types.rb', line 38397 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
38406 38407 38408 |
# File 'lib/ovirtsdk4/types.rb', line 38406 def name=(value) @name = value end |
#origin ⇒ String
Returns the value of the origin
attribute.
38415 38416 38417 |
# File 'lib/ovirtsdk4/types.rb', line 38415 def origin @origin end |
#origin=(value) ⇒ Object
Sets the value of the origin
attribute.
38424 38425 38426 |
# File 'lib/ovirtsdk4/types.rb', line 38424 def origin=(value) @origin = value end |
#severity ⇒ LogSeverity
Returns the value of the severity
attribute.
38433 38434 38435 |
# File 'lib/ovirtsdk4/types.rb', line 38433 def severity @severity end |
#severity=(value) ⇒ Object
Sets the value of the severity
attribute.
38442 38443 38444 |
# File 'lib/ovirtsdk4/types.rb', line 38442 def severity=(value) @severity = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain
attribute.
38451 38452 38453 |
# File 'lib/ovirtsdk4/types.rb', line 38451 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.
38464 38465 38466 38467 38468 38469 |
# File 'lib/ovirtsdk4/types.rb', line 38464 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.
38476 38477 38478 |
# File 'lib/ovirtsdk4/types.rb', line 38476 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.
38489 38490 38491 38492 38493 38494 |
# File 'lib/ovirtsdk4/types.rb', line 38489 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.
38501 38502 38503 |
# File 'lib/ovirtsdk4/types.rb', line 38501 def time @time end |
#time=(value) ⇒ Object
Sets the value of the time
attribute.
38510 38511 38512 |
# File 'lib/ovirtsdk4/types.rb', line 38510 def time=(value) @time = value end |
#user ⇒ User
Returns the value of the user
attribute.
38519 38520 38521 |
# File 'lib/ovirtsdk4/types.rb', line 38519 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.
38532 38533 38534 38535 38536 38537 |
# File 'lib/ovirtsdk4/types.rb', line 38532 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.
38544 38545 38546 |
# File 'lib/ovirtsdk4/types.rb', line 38544 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.
38557 38558 38559 38560 38561 38562 |
# File 'lib/ovirtsdk4/types.rb', line 38557 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end |