Class: OvirtSDK4::KatelloErratum
- Inherits:
-
Identified
- Object
- Struct
- Identified
- OvirtSDK4::KatelloErratum
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary (collapse)
-
- (String) comment
Returns the value of the
comment
attribute. -
- (Object) comment=(value)
Sets the value of the
comment
attribute. -
- (String) description
Returns the value of the
description
attribute. -
- (Object) description=(value)
Sets the value of the
description
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. -
- (KatelloErratum) initialize(opts = {})
constructor
Creates a new instance of the KatelloErratum class.
-
- (DateTime) issued
Returns the value of the
issued
attribute. -
- (Object) issued=(value)
Sets the value of the
issued
attribute. -
- (String) name
Returns the value of the
name
attribute. -
- (Object) name=(value)
Sets the value of the
name
attribute. -
- (Array<Package>) packages
Returns the value of the
packages
attribute. -
- (Object) packages=(list)
Sets the value of the
packages
attribute. -
- (String) severity
Returns the value of the
severity
attribute. -
- (Object) severity=(value)
Sets the value of the
severity
attribute. -
- (String) solution
Returns the value of the
solution
attribute. -
- (Object) solution=(value)
Sets the value of the
solution
attribute. -
- (String) summary
Returns the value of the
summary
attribute. -
- (Object) summary=(value)
Sets the value of the
summary
attribute. -
- (String) title
Returns the value of the
title
attribute. -
- (Object) title=(value)
Sets the value of the
title
attribute. -
- (String) type
Returns the value of the
type
attribute. -
- (Object) type=(value)
Sets the value of the
type
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
- (KatelloErratum) initialize(opts = {})
Creates a new instance of the OvirtSDK4::KatelloErratum class.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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 |