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.
39469 39470 39471 39472 39473 39474 39475 39476 39477 39478 39479 39480 39481 39482 39483 39484 39485 39486 39487 39488 |
# File 'lib/ovirtsdk4/types.rb', line 39469 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.
39493 39494 39495 39496 39497 39498 39499 39500 39501 39502 39503 39504 39505 39506 39507 39508 39509 39510 39511 39512 |
# File 'lib/ovirtsdk4/types.rb', line 39493 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.
38997 38998 38999 |
# File 'lib/ovirtsdk4/types.rb', line 38997 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.
39010 39011 39012 39013 39014 39015 |
# File 'lib/ovirtsdk4/types.rb', line 39010 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.
39022 39023 39024 |
# File 'lib/ovirtsdk4/types.rb', line 39022 def code @code end |
#code=(value) ⇒ Object
Sets the value of the code
attribute.
39031 39032 39033 |
# File 'lib/ovirtsdk4/types.rb', line 39031 def code=(value) @code = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
39040 39041 39042 |
# File 'lib/ovirtsdk4/types.rb', line 39040 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
39049 39050 39051 |
# File 'lib/ovirtsdk4/types.rb', line 39049 def comment=(value) @comment = value end |
#correlation_id ⇒ String
Returns the value of the correlation_id
attribute.
39058 39059 39060 |
# File 'lib/ovirtsdk4/types.rb', line 39058 def correlation_id @correlation_id end |
#correlation_id=(value) ⇒ Object
Sets the value of the correlation_id
attribute.
39067 39068 39069 |
# File 'lib/ovirtsdk4/types.rb', line 39067 def correlation_id=(value) @correlation_id = value end |
#custom_data ⇒ String
Returns the value of the custom_data
attribute.
39076 39077 39078 |
# File 'lib/ovirtsdk4/types.rb', line 39076 def custom_data @custom_data end |
#custom_data=(value) ⇒ Object
Sets the value of the custom_data
attribute.
39085 39086 39087 |
# File 'lib/ovirtsdk4/types.rb', line 39085 def custom_data=(value) @custom_data = value end |
#custom_id ⇒ Integer
Returns the value of the custom_id
attribute.
39094 39095 39096 |
# File 'lib/ovirtsdk4/types.rb', line 39094 def custom_id @custom_id end |
#custom_id=(value) ⇒ Object
Sets the value of the custom_id
attribute.
39103 39104 39105 |
# File 'lib/ovirtsdk4/types.rb', line 39103 def custom_id=(value) @custom_id = value end |
#data_center ⇒ DataCenter
Returns the value of the data_center
attribute.
39112 39113 39114 |
# File 'lib/ovirtsdk4/types.rb', line 39112 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.
39125 39126 39127 39128 39129 39130 |
# File 'lib/ovirtsdk4/types.rb', line 39125 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.
39137 39138 39139 |
# File 'lib/ovirtsdk4/types.rb', line 39137 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
39146 39147 39148 |
# File 'lib/ovirtsdk4/types.rb', line 39146 def description=(value) @description = value end |
#flood_rate ⇒ Integer
Returns the value of the flood_rate
attribute.
39155 39156 39157 |
# File 'lib/ovirtsdk4/types.rb', line 39155 def flood_rate @flood_rate end |
#flood_rate=(value) ⇒ Object
Sets the value of the flood_rate
attribute.
39164 39165 39166 |
# File 'lib/ovirtsdk4/types.rb', line 39164 def flood_rate=(value) @flood_rate = value end |
#hash ⇒ Object
Generates a hash value for this object.
39517 39518 39519 39520 39521 39522 39523 39524 39525 39526 39527 39528 39529 39530 39531 39532 39533 39534 39535 39536 |
# File 'lib/ovirtsdk4/types.rb', line 39517 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.
39173 39174 39175 |
# File 'lib/ovirtsdk4/types.rb', line 39173 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.
39186 39187 39188 39189 39190 39191 |
# File 'lib/ovirtsdk4/types.rb', line 39186 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.
39198 39199 39200 |
# File 'lib/ovirtsdk4/types.rb', line 39198 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
39207 39208 39209 |
# File 'lib/ovirtsdk4/types.rb', line 39207 def id=(value) @id = value end |
#index ⇒ Integer
Returns the value of the index
attribute.
39216 39217 39218 |
# File 'lib/ovirtsdk4/types.rb', line 39216 def index @index end |
#index=(value) ⇒ Object
Sets the value of the index
attribute.
39225 39226 39227 |
# File 'lib/ovirtsdk4/types.rb', line 39225 def index=(value) @index = value end |
#log_on_host ⇒ Boolean
Returns the value of the log_on_host
attribute.
39234 39235 39236 |
# File 'lib/ovirtsdk4/types.rb', line 39234 def log_on_host @log_on_host end |
#log_on_host=(value) ⇒ Object
Sets the value of the log_on_host
attribute.
39243 39244 39245 |
# File 'lib/ovirtsdk4/types.rb', line 39243 def log_on_host=(value) @log_on_host = value end |
#name ⇒ String
Returns the value of the name
attribute.
39252 39253 39254 |
# File 'lib/ovirtsdk4/types.rb', line 39252 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
39261 39262 39263 |
# File 'lib/ovirtsdk4/types.rb', line 39261 def name=(value) @name = value end |
#origin ⇒ String
Returns the value of the origin
attribute.
39270 39271 39272 |
# File 'lib/ovirtsdk4/types.rb', line 39270 def origin @origin end |
#origin=(value) ⇒ Object
Sets the value of the origin
attribute.
39279 39280 39281 |
# File 'lib/ovirtsdk4/types.rb', line 39279 def origin=(value) @origin = value end |
#severity ⇒ LogSeverity
Returns the value of the severity
attribute.
39288 39289 39290 |
# File 'lib/ovirtsdk4/types.rb', line 39288 def severity @severity end |
#severity=(value) ⇒ Object
Sets the value of the severity
attribute.
39297 39298 39299 |
# File 'lib/ovirtsdk4/types.rb', line 39297 def severity=(value) @severity = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain
attribute.
39306 39307 39308 |
# File 'lib/ovirtsdk4/types.rb', line 39306 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.
39319 39320 39321 39322 39323 39324 |
# File 'lib/ovirtsdk4/types.rb', line 39319 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.
39331 39332 39333 |
# File 'lib/ovirtsdk4/types.rb', line 39331 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.
39344 39345 39346 39347 39348 39349 |
# File 'lib/ovirtsdk4/types.rb', line 39344 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.
39356 39357 39358 |
# File 'lib/ovirtsdk4/types.rb', line 39356 def time @time end |
#time=(value) ⇒ Object
Sets the value of the time
attribute.
39365 39366 39367 |
# File 'lib/ovirtsdk4/types.rb', line 39365 def time=(value) @time = value end |
#user ⇒ User
Returns the value of the user
attribute.
39374 39375 39376 |
# File 'lib/ovirtsdk4/types.rb', line 39374 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.
39387 39388 39389 39390 39391 39392 |
# File 'lib/ovirtsdk4/types.rb', line 39387 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.
39399 39400 39401 |
# File 'lib/ovirtsdk4/types.rb', line 39399 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.
39412 39413 39414 39415 39416 39417 |
# File 'lib/ovirtsdk4/types.rb', line 39412 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end |