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.
36327 36328 36329 36330 36331 36332 36333 36334 36335 36336 36337 36338 36339 36340 36341 36342 36343 36344 36345 |
# File 'lib/ovirtsdk4/types.rb', line 36327 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.
36350 36351 36352 36353 36354 36355 36356 36357 36358 36359 36360 36361 36362 36363 36364 36365 36366 36367 36368 |
# File 'lib/ovirtsdk4/types.rb', line 36350 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.
35875 35876 35877 |
# File 'lib/ovirtsdk4/types.rb', line 35875 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.
35888 35889 35890 35891 35892 35893 |
# File 'lib/ovirtsdk4/types.rb', line 35888 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.
35900 35901 35902 |
# File 'lib/ovirtsdk4/types.rb', line 35900 def code @code end |
#code=(value) ⇒ Object
Sets the value of the code
attribute.
35909 35910 35911 |
# File 'lib/ovirtsdk4/types.rb', line 35909 def code=(value) @code = value end |
#comment ⇒ String
Returns the value of the comment
attribute.
35918 35919 35920 |
# File 'lib/ovirtsdk4/types.rb', line 35918 def comment @comment end |
#comment=(value) ⇒ Object
Sets the value of the comment
attribute.
35927 35928 35929 |
# File 'lib/ovirtsdk4/types.rb', line 35927 def comment=(value) @comment = value end |
#correlation_id ⇒ String
Returns the value of the correlation_id
attribute.
35936 35937 35938 |
# File 'lib/ovirtsdk4/types.rb', line 35936 def correlation_id @correlation_id end |
#correlation_id=(value) ⇒ Object
Sets the value of the correlation_id
attribute.
35945 35946 35947 |
# File 'lib/ovirtsdk4/types.rb', line 35945 def correlation_id=(value) @correlation_id = value end |
#custom_data ⇒ String
Returns the value of the custom_data
attribute.
35954 35955 35956 |
# File 'lib/ovirtsdk4/types.rb', line 35954 def custom_data @custom_data end |
#custom_data=(value) ⇒ Object
Sets the value of the custom_data
attribute.
35963 35964 35965 |
# File 'lib/ovirtsdk4/types.rb', line 35963 def custom_data=(value) @custom_data = value end |
#custom_id ⇒ Integer
Returns the value of the custom_id
attribute.
35972 35973 35974 |
# File 'lib/ovirtsdk4/types.rb', line 35972 def custom_id @custom_id end |
#custom_id=(value) ⇒ Object
Sets the value of the custom_id
attribute.
35981 35982 35983 |
# File 'lib/ovirtsdk4/types.rb', line 35981 def custom_id=(value) @custom_id = value end |
#data_center ⇒ DataCenter
Returns the value of the data_center
attribute.
35990 35991 35992 |
# File 'lib/ovirtsdk4/types.rb', line 35990 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.
36003 36004 36005 36006 36007 36008 |
# File 'lib/ovirtsdk4/types.rb', line 36003 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.
36015 36016 36017 |
# File 'lib/ovirtsdk4/types.rb', line 36015 def description @description end |
#description=(value) ⇒ Object
Sets the value of the description
attribute.
36024 36025 36026 |
# File 'lib/ovirtsdk4/types.rb', line 36024 def description=(value) @description = value end |
#flood_rate ⇒ Integer
Returns the value of the flood_rate
attribute.
36033 36034 36035 |
# File 'lib/ovirtsdk4/types.rb', line 36033 def flood_rate @flood_rate end |
#flood_rate=(value) ⇒ Object
Sets the value of the flood_rate
attribute.
36042 36043 36044 |
# File 'lib/ovirtsdk4/types.rb', line 36042 def flood_rate=(value) @flood_rate = value end |
#hash ⇒ Object
Generates a hash value for this object.
36373 36374 36375 36376 36377 36378 36379 36380 36381 36382 36383 36384 36385 36386 36387 36388 36389 36390 36391 |
# File 'lib/ovirtsdk4/types.rb', line 36373 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.
36051 36052 36053 |
# File 'lib/ovirtsdk4/types.rb', line 36051 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.
36064 36065 36066 36067 36068 36069 |
# File 'lib/ovirtsdk4/types.rb', line 36064 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.
36076 36077 36078 |
# File 'lib/ovirtsdk4/types.rb', line 36076 def id @id end |
#id=(value) ⇒ Object
Sets the value of the id
attribute.
36085 36086 36087 |
# File 'lib/ovirtsdk4/types.rb', line 36085 def id=(value) @id = value end |
#index ⇒ Integer
Returns the value of the index
attribute.
36094 36095 36096 |
# File 'lib/ovirtsdk4/types.rb', line 36094 def index @index end |
#index=(value) ⇒ Object
Sets the value of the index
attribute.
36103 36104 36105 |
# File 'lib/ovirtsdk4/types.rb', line 36103 def index=(value) @index = value end |
#name ⇒ String
Returns the value of the name
attribute.
36112 36113 36114 |
# File 'lib/ovirtsdk4/types.rb', line 36112 def name @name end |
#name=(value) ⇒ Object
Sets the value of the name
attribute.
36121 36122 36123 |
# File 'lib/ovirtsdk4/types.rb', line 36121 def name=(value) @name = value end |
#origin ⇒ String
Returns the value of the origin
attribute.
36130 36131 36132 |
# File 'lib/ovirtsdk4/types.rb', line 36130 def origin @origin end |
#origin=(value) ⇒ Object
Sets the value of the origin
attribute.
36139 36140 36141 |
# File 'lib/ovirtsdk4/types.rb', line 36139 def origin=(value) @origin = value end |
#severity ⇒ LogSeverity
Returns the value of the severity
attribute.
36148 36149 36150 |
# File 'lib/ovirtsdk4/types.rb', line 36148 def severity @severity end |
#severity=(value) ⇒ Object
Sets the value of the severity
attribute.
36157 36158 36159 |
# File 'lib/ovirtsdk4/types.rb', line 36157 def severity=(value) @severity = value end |
#storage_domain ⇒ StorageDomain
Returns the value of the storage_domain
attribute.
36166 36167 36168 |
# File 'lib/ovirtsdk4/types.rb', line 36166 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.
36179 36180 36181 36182 36183 36184 |
# File 'lib/ovirtsdk4/types.rb', line 36179 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.
36191 36192 36193 |
# File 'lib/ovirtsdk4/types.rb', line 36191 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.
36204 36205 36206 36207 36208 36209 |
# File 'lib/ovirtsdk4/types.rb', line 36204 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.
36216 36217 36218 |
# File 'lib/ovirtsdk4/types.rb', line 36216 def time @time end |
#time=(value) ⇒ Object
Sets the value of the time
attribute.
36225 36226 36227 |
# File 'lib/ovirtsdk4/types.rb', line 36225 def time=(value) @time = value end |
#user ⇒ User
Returns the value of the user
attribute.
36234 36235 36236 |
# File 'lib/ovirtsdk4/types.rb', line 36234 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.
36247 36248 36249 36250 36251 36252 |
# File 'lib/ovirtsdk4/types.rb', line 36247 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.
36259 36260 36261 |
# File 'lib/ovirtsdk4/types.rb', line 36259 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.
36272 36273 36274 36275 36276 36277 |
# File 'lib/ovirtsdk4/types.rb', line 36272 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end |