Class: OvirtSDK4::Event

Inherits:
Identified show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (Event) initialize(opts = {})

Creates a new instance of the OvirtSDK4::Event class.

Parameters:

  • opts (Hash) (defaults to: {})

    A hash containing the attributes of the object. The keys of the hash should be symbols corresponding to the names of the attributes. The values of the hash should be the values of the attributes.

Options Hash (opts):

  • :cluster (Cluster, Hash)

    The value of attribute cluster.

  • :code (Integer)

    The value of attribute code.

  • :comment (String)

    The value of attribute comment.

  • :correlation_id (String)

    The value of attribute correlation_id.

  • :custom_data (String)

    The value of attribute custom_data.

  • :custom_id (Integer)

    The value of attribute custom_id.

  • :data_center (DataCenter, Hash)

    The value of attribute data_center.

  • :description (String)

    The value of attribute description.

  • :flood_rate (Integer)

    The value of attribute flood_rate.

  • :host (Host, Hash)

    The value of attribute host.

  • :id (String)

    The value of attribute id.

  • :name (String)

    The value of attribute name.

  • :origin (String)

    The value of attribute origin.

  • :severity (LogSeverity)

    The value of attribute severity.

  • :storage_domain (StorageDomain, Hash)

    The value of attribute storage_domain.

  • :template (Template, Hash)

    The value of attribute template.

  • :time (DateTime)

    The value of attribute time.

  • :user (User, Hash)

    The value of attribute user.

  • :vm (Vm, Hash)

    The value of attribute vm.



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.

Returns:



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.

Parameters:



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.

Returns:

  • (Integer)


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.

Parameters:

  • value (Integer)


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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:

  • (Integer)


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.

Parameters:

  • value (Integer)


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.

Returns:



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.

Parameters:



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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:

  • (Integer)


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.

Parameters:

  • value (Integer)


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.

Returns:



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.

Parameters:

  • value (Host, Hash)


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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:



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.

Parameters:



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.

Returns:



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.

Parameters:



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.

Returns:



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.

Parameters:



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.

Returns:

  • (DateTime)


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.

Parameters:

  • value (DateTime)


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.

Returns:



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.

Parameters:

  • value (User, Hash)


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.

Returns:



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.

Parameters:

  • value (Vm, Hash)


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