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.
36525 36526 36527 36528 36529 36530 36531 36532 36533 36534 36535 36536 36537 36538 36539 36540 36541 36542 36543 |
# File 'lib/ovirtsdk4/types.rb', line 36525 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.
36548 36549 36550 36551 36552 36553 36554 36555 36556 36557 36558 36559 36560 36561 36562 36563 36564 36565 36566 |
# File 'lib/ovirtsdk4/types.rb', line 36548 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.
36073 36074 36075 |
# File 'lib/ovirtsdk4/types.rb', line 36073 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.
36086 36087 36088 36089 36090 36091 |
# File 'lib/ovirtsdk4/types.rb', line 36086 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.
36098 36099 36100 |
# File 'lib/ovirtsdk4/types.rb', line 36098 def code @code end |
#code=(value) ⇒ Object
Sets the value of the code
attribute.
36107 36108 36109 |
# File 'lib/ovirtsdk4/types.rb', line 36107 def code=(value) @code = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
36116 36117 36118 |
# File 'lib/ovirtsdk4/types.rb', line 36116 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
36125 36126 36127 |
# File 'lib/ovirtsdk4/types.rb', line 36125 def comment=(value) @comment = value end |
#correlation_id ⇒ String
Returns the value of the correlation_id
attribute.
36134 36135 36136 |
# File 'lib/ovirtsdk4/types.rb', line 36134 def correlation_id @correlation_id end |
#correlation_id=(value) ⇒ Object
Sets the value of the correlation_id
attribute.
36143 36144 36145 |
# File 'lib/ovirtsdk4/types.rb', line 36143 def correlation_id=(value) @correlation_id = value end |
#custom_data ⇒ String
Returns the value of the custom_data
attribute.
36152 36153 36154 |
# File 'lib/ovirtsdk4/types.rb', line 36152 def custom_data @custom_data end |
#custom_data=(value) ⇒ Object
Sets the value of the custom_data
attribute.
36161 36162 36163 |
# File 'lib/ovirtsdk4/types.rb', line 36161 def custom_data=(value) @custom_data = value end |
#custom_id ⇒ Integer
Returns the value of the custom_id
attribute.
36170 36171 36172 |
# File 'lib/ovirtsdk4/types.rb', line 36170 def custom_id @custom_id end |
#custom_id=(value) ⇒ Object
Sets the value of the custom_id
attribute.
36179 36180 36181 |
# File 'lib/ovirtsdk4/types.rb', line 36179 def custom_id=(value) @custom_id = value end |
#data_center ⇒ DataCenter
Returns the value of the data_center
attribute.
36188 36189 36190 |
# File 'lib/ovirtsdk4/types.rb', line 36188 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.
36201 36202 36203 36204 36205 36206 |
# File 'lib/ovirtsdk4/types.rb', line 36201 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.
36213 36214 36215 |
# File 'lib/ovirtsdk4/types.rb', line 36213 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
36222 36223 36224 |
# File 'lib/ovirtsdk4/types.rb', line 36222 def description=(value) @description = value end |
#flood_rate ⇒ Integer
Returns the value of the flood_rate
attribute.
36231 36232 36233 |
# File 'lib/ovirtsdk4/types.rb', line 36231 def flood_rate @flood_rate end |
#flood_rate=(value) ⇒ Object
Sets the value of the flood_rate
attribute.
36240 36241 36242 |
# File 'lib/ovirtsdk4/types.rb', line 36240 def flood_rate=(value) @flood_rate = value end |
#hash ⇒ Object
Generates a hash value for this object.
36571 36572 36573 36574 36575 36576 36577 36578 36579 36580 36581 36582 36583 36584 36585 36586 36587 36588 36589 |
# File 'lib/ovirtsdk4/types.rb', line 36571 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.
36249 36250 36251 |
# File 'lib/ovirtsdk4/types.rb', line 36249 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.
36262 36263 36264 36265 36266 36267 |
# File 'lib/ovirtsdk4/types.rb', line 36262 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.
36274 36275 36276 |
# File 'lib/ovirtsdk4/types.rb', line 36274 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
36283 36284 36285 |
# File 'lib/ovirtsdk4/types.rb', line 36283 def id=(value) @id = value end |
#index ⇒ Integer
Returns the value of the index
attribute.
36292 36293 36294 |
# File 'lib/ovirtsdk4/types.rb', line 36292 def index @index end |
#index=(value) ⇒ Object
Sets the value of the index
attribute.
36301 36302 36303 |
# File 'lib/ovirtsdk4/types.rb', line 36301 def index=(value) @index = value end |
#name ⇒ String
Returns the value of the name
attribute.
36310 36311 36312 |
# File 'lib/ovirtsdk4/types.rb', line 36310 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
36319 36320 36321 |
# File 'lib/ovirtsdk4/types.rb', line 36319 def name=(value) @name = value end |
#origin ⇒ String
Returns the value of the origin
attribute.
36328 36329 36330 |
# File 'lib/ovirtsdk4/types.rb', line 36328 def origin @origin end |
#origin=(value) ⇒ Object
Sets the value of the origin
attribute.
36337 36338 36339 |
# File 'lib/ovirtsdk4/types.rb', line 36337 def origin=(value) @origin = value end |
#severity ⇒ LogSeverity
Returns the value of the severity
attribute.
36346 36347 36348 |
# File 'lib/ovirtsdk4/types.rb', line 36346 def severity @severity end |
#severity=(value) ⇒ Object
Sets the value of the severity
attribute.
36355 36356 36357 |
# File 'lib/ovirtsdk4/types.rb', line 36355 def severity=(value) @severity = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain
attribute.
36364 36365 36366 |
# File 'lib/ovirtsdk4/types.rb', line 36364 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.
36377 36378 36379 36380 36381 36382 |
# File 'lib/ovirtsdk4/types.rb', line 36377 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.
36389 36390 36391 |
# File 'lib/ovirtsdk4/types.rb', line 36389 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.
36402 36403 36404 36405 36406 36407 |
# File 'lib/ovirtsdk4/types.rb', line 36402 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.
36414 36415 36416 |
# File 'lib/ovirtsdk4/types.rb', line 36414 def time @time end |
#time=(value) ⇒ Object
Sets the value of the time
attribute.
36423 36424 36425 |
# File 'lib/ovirtsdk4/types.rb', line 36423 def time=(value) @time = value end |
#user ⇒ User
Returns the value of the user
attribute.
36432 36433 36434 |
# File 'lib/ovirtsdk4/types.rb', line 36432 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.
36445 36446 36447 36448 36449 36450 |
# File 'lib/ovirtsdk4/types.rb', line 36445 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.
36457 36458 36459 |
# File 'lib/ovirtsdk4/types.rb', line 36457 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.
36470 36471 36472 36473 36474 36475 |
# File 'lib/ovirtsdk4/types.rb', line 36470 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end |