Class: OvirtSDK4::KatelloErratum

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

- (KatelloErratum) initialize(opts = {})

Creates a new instance of the OvirtSDK4::KatelloErratum 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):

  • :comment (String)

    The value of attribute comment.

  • :description (String)

    The value of attribute description.

  • :host (Host, Hash)

    The value of attribute host.

  • :id (String)

    The value of attribute id.

  • :issued (DateTime)

    The value of attribute issued.

  • :name (String)

    The value of attribute name.

  • :packages (Array<Package>, Array<Hash>)

    The values of attribute packages.

  • :severity (String)

    The value of attribute severity.

  • :solution (String)

    The value of attribute solution.

  • :summary (String)

    The value of attribute summary.

  • :title (String)

    The value of attribute title.

  • :type (String)

    The value of attribute type.

  • :vm (Vm, Hash)

    The value of attribute vm.



5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
# File 'lib/ovirtsdk4/types.rb', line 5651

def initialize(opts = {})
  super(opts)
  self.comment = opts[:comment]
  self.description = opts[:description]
  self.host = opts[:host]
  self.id = opts[:id]
  self.issued = opts[:issued]
  self.name = opts[:name]
  self.packages = opts[:packages]
  self.severity = opts[:severity]
  self.solution = opts[:solution]
  self.summary = opts[:summary]
  self.title = opts[:title]
  self.type = opts[:type]
  self.vm = opts[:vm]
end

Instance Method Details

- (String) comment

Returns the value of the comment attribute.

Returns:

  • (String)


5367
5368
5369
# File 'lib/ovirtsdk4/types.rb', line 5367

def comment
  return @comment
end

- (Object) comment=(value)

Sets the value of the comment attribute.

Parameters:

  • value (String)


5376
5377
5378
# File 'lib/ovirtsdk4/types.rb', line 5376

def comment=(value)
  @comment = value
end

- (String) description

Returns the value of the description attribute.

Returns:

  • (String)


5385
5386
5387
# File 'lib/ovirtsdk4/types.rb', line 5385

def description
  return @description
end

- (Object) description=(value)

Sets the value of the description attribute.

Parameters:

  • value (String)


5394
5395
5396
# File 'lib/ovirtsdk4/types.rb', line 5394

def description=(value)
  @description = value
end

- (Host) host

Returns the value of the host attribute.

Returns:



5403
5404
5405
# File 'lib/ovirtsdk4/types.rb', line 5403

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)


5416
5417
5418
5419
5420
5421
# File 'lib/ovirtsdk4/types.rb', line 5416

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)


5428
5429
5430
# File 'lib/ovirtsdk4/types.rb', line 5428

def id
  return @id
end

- (Object) id=(value)

Sets the value of the id attribute.

Parameters:

  • value (String)


5437
5438
5439
# File 'lib/ovirtsdk4/types.rb', line 5437

def id=(value)
  @id = value
end

- (DateTime) issued

Returns the value of the issued attribute.

Returns:

  • (DateTime)


5446
5447
5448
# File 'lib/ovirtsdk4/types.rb', line 5446

def issued
  return @issued
end

- (Object) issued=(value)

Sets the value of the issued attribute.

Parameters:

  • value (DateTime)


5455
5456
5457
# File 'lib/ovirtsdk4/types.rb', line 5455

def issued=(value)
  @issued = value
end

- (String) name

Returns the value of the name attribute.

Returns:

  • (String)


5464
5465
5466
# File 'lib/ovirtsdk4/types.rb', line 5464

def name
  return @name
end

- (Object) name=(value)

Sets the value of the name attribute.

Parameters:

  • value (String)


5473
5474
5475
# File 'lib/ovirtsdk4/types.rb', line 5473

def name=(value)
  @name = value
end

- (Array<Package>) packages

Returns the value of the packages attribute.

Returns:



5482
5483
5484
# File 'lib/ovirtsdk4/types.rb', line 5482

def packages
  return @packages
end

- (Object) packages=(list)

Sets the value of the packages attribute.

Parameters:



5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
# File 'lib/ovirtsdk4/types.rb', line 5490

def packages=(list)
  if list.class == Array
    list = List.new(list)
    list.each_with_index do |value, index|
      if value.is_a?(Hash)
        list[index] = Package.new(value)
      end
    end
  end
  @packages = list
end

- (String) severity

Returns the value of the severity attribute.

Returns:

  • (String)


5507
5508
5509
# File 'lib/ovirtsdk4/types.rb', line 5507

def severity
  return @severity
end

- (Object) severity=(value)

Sets the value of the severity attribute.

Parameters:

  • value (String)


5516
5517
5518
# File 'lib/ovirtsdk4/types.rb', line 5516

def severity=(value)
  @severity = value
end

- (String) solution

Returns the value of the solution attribute.

Returns:

  • (String)


5525
5526
5527
# File 'lib/ovirtsdk4/types.rb', line 5525

def solution
  return @solution
end

- (Object) solution=(value)

Sets the value of the solution attribute.

Parameters:

  • value (String)


5534
5535
5536
# File 'lib/ovirtsdk4/types.rb', line 5534

def solution=(value)
  @solution = value
end

- (String) summary

Returns the value of the summary attribute.

Returns:

  • (String)


5543
5544
5545
# File 'lib/ovirtsdk4/types.rb', line 5543

def summary
  return @summary
end

- (Object) summary=(value)

Sets the value of the summary attribute.

Parameters:

  • value (String)


5552
5553
5554
# File 'lib/ovirtsdk4/types.rb', line 5552

def summary=(value)
  @summary = value
end

- (String) title

Returns the value of the title attribute.

Returns:

  • (String)


5561
5562
5563
# File 'lib/ovirtsdk4/types.rb', line 5561

def title
  return @title
end

- (Object) title=(value)

Sets the value of the title attribute.

Parameters:

  • value (String)


5570
5571
5572
# File 'lib/ovirtsdk4/types.rb', line 5570

def title=(value)
  @title = value
end

- (String) type

Returns the value of the type attribute.

Returns:

  • (String)


5579
5580
5581
# File 'lib/ovirtsdk4/types.rb', line 5579

def type
  return @type
end

- (Object) type=(value)

Sets the value of the type attribute.

Parameters:

  • value (String)


5588
5589
5590
# File 'lib/ovirtsdk4/types.rb', line 5588

def type=(value)
  @type = value
end

- (Vm) vm

Returns the value of the vm attribute.

Returns:



5597
5598
5599
# File 'lib/ovirtsdk4/types.rb', line 5597

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)


5610
5611
5612
5613
5614
5615
# File 'lib/ovirtsdk4/types.rb', line 5610

def vm=(value)
  if value.is_a?(Hash)
    value = Vm.new(value)
  end
  @vm = value
end