Class: OvirtSDK4::Event
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::Event
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary (collapse)
-
- (Cluster) cluster
Returns the value of the
cluster
attribute. -
- (Object) cluster=(value)
Sets the value of the
cluster
attribute. -
- (Integer) code
Returns the value of the
code
attribute. -
- (Object) code=(value)
Sets the value of the
code
attribute. -
- (String) comment
Returns the value of the
comment
attribute. -
- (Object) comment=(value)
Sets the value of the
comment
attribute. -
- (String) correlation_id
Returns the value of the
correlation_id
attribute. -
- (Object) correlation_id=(value)
Sets the value of the
correlation_id
attribute. -
- (String) custom_data
Returns the value of the
custom_data
attribute. -
- (Object) custom_data=(value)
Sets the value of the
custom_data
attribute. -
- (Integer) custom_id
Returns the value of the
custom_id
attribute. -
- (Object) custom_id=(value)
Sets the value of the
custom_id
attribute. -
- (DataCenter) data_center
Returns the value of the
data_center
attribute. -
- (Object) data_center=(value)
Sets the value of the
data_center
attribute. -
- (String) description
Returns the value of the
description
attribute. -
- (Object) description=(value)
Sets the value of the
description
attribute. -
- (Integer) flood_rate
Returns the value of the
flood_rate
attribute. -
- (Object) flood_rate=(value)
Sets the value of the
flood_rate
attribute. -
- (Host) host
Returns the value of the
host
attribute. -
- (Object) host=(value)
Sets the value of the
host
attribute. -
- (String) id
Returns the value of the
id
attribute. -
- (Object) id=(value)
Sets the value of the
id
attribute. -
- (Event) initialize(opts = {})
constructor
Creates a new instance of the Event class.
-
- (String) name
Returns the value of the
name
attribute. -
- (Object) name=(value)
Sets the value of the
name
attribute. -
- (String) origin
Returns the value of the
origin
attribute. -
- (Object) origin=(value)
Sets the value of the
origin
attribute. -
- (LogSeverity) severity
Returns the value of the
severity
attribute. -
- (Object) severity=(value)
Sets the value of the
severity
attribute. -
- (StorageDomain) storage_domain
Returns the value of the
storage_domain
attribute. -
- (Object) storage_domain=(value)
Sets the value of the
storage_domain
attribute. -
- (Template) template
Returns the value of the
template
attribute. -
- (Object) template=(value)
Sets the value of the
template
attribute. -
- (DateTime) time
Returns the value of the
time
attribute. -
- (Object) time=(value)
Sets the value of the
time
attribute. -
- (User) user
Returns the value of the
user
attribute. -
- (Object) user=(value)
Sets the value of the
user
attribute. -
- (Vm) vm
Returns the value of the
vm
attribute. -
- (Object) vm=(value)
Sets the value of the
vm
attribute.
Methods included from Type
Constructor Details
- (Event) initialize(opts = {})
Creates a new instance of the OvirtSDK4::Event class.
28459 28460 28461 28462 28463 28464 28465 28466 28467 28468 28469 28470 28471 28472 28473 28474 28475 28476 28477 28478 28479 28480 |
# File 'lib/ovirtsdk4/types.rb', line 28459 def initialize(opts = {}) super(opts) self.cluster = opts[:cluster] self.code = opts[:code] self.comment = opts[:comment] 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.description = opts[:description] self.flood_rate = opts[:flood_rate] self.host = opts[:host] self.id = opts[:id] self.name = opts[:name] 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
- (Cluster) cluster
Returns the value of the cluster
attribute.
28027 28028 28029 |
# File 'lib/ovirtsdk4/types.rb', line 28027 def cluster return @cluster end |
- (Object) cluster=(value)
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.
28040 28041 28042 28043 28044 28045 |
# File 'lib/ovirtsdk4/types.rb', line 28040 def cluster=(value) if value.is_a?(Hash) value = Cluster.new(value) end @cluster = value end |
- (Integer) code
Returns the value of the code
attribute.
28052 28053 28054 |
# File 'lib/ovirtsdk4/types.rb', line 28052 def code return @code end |
- (Object) code=(value)
Sets the value of the code
attribute.
28061 28062 28063 |
# File 'lib/ovirtsdk4/types.rb', line 28061 def code=(value) @code = value end |
- (String) comment
Returns the value of the comment
attribute.
28070 28071 28072 |
# File 'lib/ovirtsdk4/types.rb', line 28070 def comment return @comment end |
- (Object) comment=(value)
Sets the value of the comment
attribute.
28079 28080 28081 |
# File 'lib/ovirtsdk4/types.rb', line 28079 def comment=(value) @comment = value end |
- (String) correlation_id
Returns the value of the correlation_id
attribute.
28088 28089 28090 |
# File 'lib/ovirtsdk4/types.rb', line 28088 def correlation_id return @correlation_id end |
- (Object) correlation_id=(value)
Sets the value of the correlation_id
attribute.
28097 28098 28099 |
# File 'lib/ovirtsdk4/types.rb', line 28097 def correlation_id=(value) @correlation_id = value end |
- (String) custom_data
Returns the value of the custom_data
attribute.
28106 28107 28108 |
# File 'lib/ovirtsdk4/types.rb', line 28106 def custom_data return @custom_data end |
- (Object) custom_data=(value)
Sets the value of the custom_data
attribute.
28115 28116 28117 |
# File 'lib/ovirtsdk4/types.rb', line 28115 def custom_data=(value) @custom_data = value end |
- (Integer) custom_id
Returns the value of the custom_id
attribute.
28124 28125 28126 |
# File 'lib/ovirtsdk4/types.rb', line 28124 def custom_id return @custom_id end |
- (Object) custom_id=(value)
Sets the value of the custom_id
attribute.
28133 28134 28135 |
# File 'lib/ovirtsdk4/types.rb', line 28133 def custom_id=(value) @custom_id = value end |
- (DataCenter) data_center
Returns the value of the data_center
attribute.
28142 28143 28144 |
# File 'lib/ovirtsdk4/types.rb', line 28142 def data_center return @data_center end |
- (Object) data_center=(value)
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.
28155 28156 28157 28158 28159 28160 |
# File 'lib/ovirtsdk4/types.rb', line 28155 def data_center=(value) if value.is_a?(Hash) value = DataCenter.new(value) end @data_center = value end |
- (String) description
Returns the value of the description
attribute.
28167 28168 28169 |
# File 'lib/ovirtsdk4/types.rb', line 28167 def description return @description end |
- (Object) description=(value)
Sets the value of the description
attribute.
28176 28177 28178 |
# File 'lib/ovirtsdk4/types.rb', line 28176 def description=(value) @description = value end |
- (Integer) flood_rate
Returns the value of the flood_rate
attribute.
28185 28186 28187 |
# File 'lib/ovirtsdk4/types.rb', line 28185 def flood_rate return @flood_rate end |
- (Object) flood_rate=(value)
Sets the value of the flood_rate
attribute.
28194 28195 28196 |
# File 'lib/ovirtsdk4/types.rb', line 28194 def flood_rate=(value) @flood_rate = value end |
- (Host) host
Returns the value of the host
attribute.
28203 28204 28205 |
# File 'lib/ovirtsdk4/types.rb', line 28203 def host return @host end |
- (Object) host=(value)
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.
28216 28217 28218 28219 28220 28221 |
# File 'lib/ovirtsdk4/types.rb', line 28216 def host=(value) if value.is_a?(Hash) value = Host.new(value) end @host = value end |
- (String) id
Returns the value of the id
attribute.
28228 28229 28230 |
# File 'lib/ovirtsdk4/types.rb', line 28228 def id return @id end |
- (Object) id=(value)
Sets the value of the id
attribute.
28237 28238 28239 |
# File 'lib/ovirtsdk4/types.rb', line 28237 def id=(value) @id = value end |
- (String) name
Returns the value of the name
attribute.
28246 28247 28248 |
# File 'lib/ovirtsdk4/types.rb', line 28246 def name return @name end |
- (Object) name=(value)
Sets the value of the name
attribute.
28255 28256 28257 |
# File 'lib/ovirtsdk4/types.rb', line 28255 def name=(value) @name = value end |
- (String) origin
Returns the value of the origin
attribute.
28264 28265 28266 |
# File 'lib/ovirtsdk4/types.rb', line 28264 def origin return @origin end |
- (Object) origin=(value)
Sets the value of the origin
attribute.
28273 28274 28275 |
# File 'lib/ovirtsdk4/types.rb', line 28273 def origin=(value) @origin = value end |
- (LogSeverity) severity
Returns the value of the severity
attribute.
28282 28283 28284 |
# File 'lib/ovirtsdk4/types.rb', line 28282 def severity return @severity end |
- (Object) severity=(value)
Sets the value of the severity
attribute.
28291 28292 28293 |
# File 'lib/ovirtsdk4/types.rb', line 28291 def severity=(value) @severity = value end |
- (StorageDomain) storage_domain
Returns the value of the storage_domain
attribute.
28300 28301 28302 |
# File 'lib/ovirtsdk4/types.rb', line 28300 def storage_domain return @storage_domain end |
- (Object) storage_domain=(value)
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.
28313 28314 28315 28316 28317 28318 |
# File 'lib/ovirtsdk4/types.rb', line 28313 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.
28325 28326 28327 |
# File 'lib/ovirtsdk4/types.rb', line 28325 def template return @template end |
- (Object) template=(value)
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.
28338 28339 28340 28341 28342 28343 |
# File 'lib/ovirtsdk4/types.rb', line 28338 def template=(value) if value.is_a?(Hash) value = Template.new(value) end @template = value end |
- (DateTime) time
Returns the value of the time
attribute.
28350 28351 28352 |
# File 'lib/ovirtsdk4/types.rb', line 28350 def time return @time end |
- (Object) time=(value)
Sets the value of the time
attribute.
28359 28360 28361 |
# File 'lib/ovirtsdk4/types.rb', line 28359 def time=(value) @time = value end |
- (User) user
Returns the value of the user
attribute.
28368 28369 28370 |
# File 'lib/ovirtsdk4/types.rb', line 28368 def user return @user end |
- (Object) user=(value)
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.
28381 28382 28383 28384 28385 28386 |
# File 'lib/ovirtsdk4/types.rb', line 28381 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.
28393 28394 28395 |
# File 'lib/ovirtsdk4/types.rb', line 28393 def vm return @vm end |
- (Object) vm=(value)
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.
28406 28407 28408 28409 28410 28411 |
# File 'lib/ovirtsdk4/types.rb', line 28406 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end |