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.
-
#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.
36654 36655 36656 36657 36658 36659 36660 36661 36662 36663 36664 36665 36666 36667 36668 36669 36670 36671 36672 |
# File 'lib/ovirtsdk4/types.rb', line 36654 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.
36677 36678 36679 36680 36681 36682 36683 36684 36685 36686 36687 36688 36689 36690 36691 36692 36693 36694 36695 |
# File 'lib/ovirtsdk4/types.rb', line 36677 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.
36202 36203 36204 |
# File 'lib/ovirtsdk4/types.rb', line 36202 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.
36215 36216 36217 36218 36219 36220 |
# File 'lib/ovirtsdk4/types.rb', line 36215 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.
36227 36228 36229 |
# File 'lib/ovirtsdk4/types.rb', line 36227 def code @code end |
#code=(value) ⇒ Object
Sets the value of the code
attribute.
36236 36237 36238 |
# File 'lib/ovirtsdk4/types.rb', line 36236 def code=(value) @code = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
36245 36246 36247 |
# File 'lib/ovirtsdk4/types.rb', line 36245 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
36254 36255 36256 |
# File 'lib/ovirtsdk4/types.rb', line 36254 def comment=(value) @comment = value end |
#correlation_id ⇒ String
Returns the value of the correlation_id
attribute.
36263 36264 36265 |
# File 'lib/ovirtsdk4/types.rb', line 36263 def correlation_id @correlation_id end |
#correlation_id=(value) ⇒ Object
Sets the value of the correlation_id
attribute.
36272 36273 36274 |
# File 'lib/ovirtsdk4/types.rb', line 36272 def correlation_id=(value) @correlation_id = value end |
#custom_data ⇒ String
Returns the value of the custom_data
attribute.
36281 36282 36283 |
# File 'lib/ovirtsdk4/types.rb', line 36281 def custom_data @custom_data end |
#custom_data=(value) ⇒ Object
Sets the value of the custom_data
attribute.
36290 36291 36292 |
# File 'lib/ovirtsdk4/types.rb', line 36290 def custom_data=(value) @custom_data = value end |
#custom_id ⇒ Integer
Returns the value of the custom_id
attribute.
36299 36300 36301 |
# File 'lib/ovirtsdk4/types.rb', line 36299 def custom_id @custom_id end |
#custom_id=(value) ⇒ Object
Sets the value of the custom_id
attribute.
36308 36309 36310 |
# File 'lib/ovirtsdk4/types.rb', line 36308 def custom_id=(value) @custom_id = value end |
#data_center ⇒ DataCenter
Returns the value of the data_center
attribute.
36317 36318 36319 |
# File 'lib/ovirtsdk4/types.rb', line 36317 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.
36330 36331 36332 36333 36334 36335 |
# File 'lib/ovirtsdk4/types.rb', line 36330 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.
36342 36343 36344 |
# File 'lib/ovirtsdk4/types.rb', line 36342 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
36351 36352 36353 |
# File 'lib/ovirtsdk4/types.rb', line 36351 def description=(value) @description = value end |
#flood_rate ⇒ Integer
Returns the value of the flood_rate
attribute.
36360 36361 36362 |
# File 'lib/ovirtsdk4/types.rb', line 36360 def flood_rate @flood_rate end |
#flood_rate=(value) ⇒ Object
Sets the value of the flood_rate
attribute.
36369 36370 36371 |
# File 'lib/ovirtsdk4/types.rb', line 36369 def flood_rate=(value) @flood_rate = value end |
#hash ⇒ Object
Generates a hash value for this object.
36700 36701 36702 36703 36704 36705 36706 36707 36708 36709 36710 36711 36712 36713 36714 36715 36716 36717 36718 |
# File 'lib/ovirtsdk4/types.rb', line 36700 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.
36378 36379 36380 |
# File 'lib/ovirtsdk4/types.rb', line 36378 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.
36391 36392 36393 36394 36395 36396 |
# File 'lib/ovirtsdk4/types.rb', line 36391 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.
36403 36404 36405 |
# File 'lib/ovirtsdk4/types.rb', line 36403 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
36412 36413 36414 |
# File 'lib/ovirtsdk4/types.rb', line 36412 def id=(value) @id = value end |
#index ⇒ Integer
Returns the value of the index
attribute.
36421 36422 36423 |
# File 'lib/ovirtsdk4/types.rb', line 36421 def index @index end |
#index=(value) ⇒ Object
Sets the value of the index
attribute.
36430 36431 36432 |
# File 'lib/ovirtsdk4/types.rb', line 36430 def index=(value) @index = value end |
#name ⇒ String
Returns the value of the name
attribute.
36439 36440 36441 |
# File 'lib/ovirtsdk4/types.rb', line 36439 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
36448 36449 36450 |
# File 'lib/ovirtsdk4/types.rb', line 36448 def name=(value) @name = value end |
#origin ⇒ String
Returns the value of the origin
attribute.
36457 36458 36459 |
# File 'lib/ovirtsdk4/types.rb', line 36457 def origin @origin end |
#origin=(value) ⇒ Object
Sets the value of the origin
attribute.
36466 36467 36468 |
# File 'lib/ovirtsdk4/types.rb', line 36466 def origin=(value) @origin = value end |
#severity ⇒ LogSeverity
Returns the value of the severity
attribute.
36475 36476 36477 |
# File 'lib/ovirtsdk4/types.rb', line 36475 def severity @severity end |
#severity=(value) ⇒ Object
Sets the value of the severity
attribute.
36484 36485 36486 |
# File 'lib/ovirtsdk4/types.rb', line 36484 def severity=(value) @severity = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain
attribute.
36493 36494 36495 |
# File 'lib/ovirtsdk4/types.rb', line 36493 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.
36506 36507 36508 36509 36510 36511 |
# File 'lib/ovirtsdk4/types.rb', line 36506 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.
36518 36519 36520 |
# File 'lib/ovirtsdk4/types.rb', line 36518 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.
36531 36532 36533 36534 36535 36536 |
# File 'lib/ovirtsdk4/types.rb', line 36531 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.
36543 36544 36545 |
# File 'lib/ovirtsdk4/types.rb', line 36543 def time @time end |
#time=(value) ⇒ Object
Sets the value of the time
attribute.
36552 36553 36554 |
# File 'lib/ovirtsdk4/types.rb', line 36552 def time=(value) @time = value end |
#user ⇒ User
Returns the value of the user
attribute.
36561 36562 36563 |
# File 'lib/ovirtsdk4/types.rb', line 36561 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.
36574 36575 36576 36577 36578 36579 |
# File 'lib/ovirtsdk4/types.rb', line 36574 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.
36586 36587 36588 |
# File 'lib/ovirtsdk4/types.rb', line 36586 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.
36599 36600 36601 36602 36603 36604 |
# File 'lib/ovirtsdk4/types.rb', line 36599 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end |