class OvirtSDK4::KatelloErratum
Public Class Methods
Creates a new instance of the {KatelloErratum} class.
@param opts [Hash] 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.
@option opts [String] :comment The value of attribute `comment`.
@option opts [String] :description The value of attribute `description`.
@option opts [Host, Hash] :host The value of attribute `host`.
@option opts [String] :id The value of attribute `id`.
@option opts [DateTime] :issued The value of attribute `issued`.
@option opts [String] :name The value of attribute `name`.
@option opts [Array<Package>, Array<Hash>] :packages The values of attribute `packages`.
@option opts [String] :severity The value of attribute `severity`.
@option opts [String] :solution The value of attribute `solution`.
@option opts [String] :summary The value of attribute `summary`.
@option opts [String] :title The value of attribute `title`.
@option opts [String] :type The value of attribute `type`.
@option opts [Vm, Hash] :vm The value of attribute `vm`.
OvirtSDK4::Identified::new
# File lib/ovirtsdk4/types.rb, line 7952 def initialize(opts = {}) super(opts) self.host = opts[:host] self.issued = opts[:issued] 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
Public Instance Methods
Returns `true` if `self` and `other` have the same attributes and values.
# File lib/ovirtsdk4/types.rb, line 7968 def ==(other) super && @host == other.host && @issued == other.issued && @packages == other.packages && @severity == other.severity && @solution == other.solution && @summary == other.summary && @title == other.title && @type == other.type && @vm == other.vm end
Returns the value of the `comment` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 7667 def comment @comment end
Sets the value of the `comment` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 7676 def comment=(value) @comment = value end
Returns the value of the `description` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 7685 def description @description end
Sets the value of the `description` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 7694 def description=(value) @description = value end
Generates a hash value for this object.
OvirtSDK4::Identified#hash
# File lib/ovirtsdk4/types.rb, line 7984 def hash super + @host.hash + @issued.hash + @packages.hash + @severity.hash + @solution.hash + @summary.hash + @title.hash + @type.hash + @vm.hash end
Returns the value of the `host` attribute.
@return [Host]
# File lib/ovirtsdk4/types.rb, line 7703 def host @host end
Sets the value of the `host` attribute.
@param value [Host, Hash]
The `value` parameter can be an instance of {OvirtSDK4::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.
# File lib/ovirtsdk4/types.rb, line 7716 def host=(value) if value.is_a?(Hash) value = Host.new(value) end @host = value end
Returns the value of the `id` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 7728 def id @id end
Sets the value of the `id` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 7737 def id=(value) @id = value end
Returns the value of the `issued` attribute.
@return [DateTime]
# File lib/ovirtsdk4/types.rb, line 7746 def issued @issued end
Sets the value of the `issued` attribute.
@param value [DateTime]
# File lib/ovirtsdk4/types.rb, line 7755 def issued=(value) @issued = value end
Returns the value of the `name` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 7764 def name @name end
Sets the value of the `name` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 7773 def name=(value) @name = value end
Returns the value of the `packages` attribute.
@return [Array<Package>]
# File lib/ovirtsdk4/types.rb, line 7782 def packages @packages end
Sets the value of the `packages` attribute.
@param list [Array<Package>]
# File lib/ovirtsdk4/types.rb, line 7791 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
Returns the value of the `severity` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 7808 def severity @severity end
Sets the value of the `severity` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 7817 def severity=(value) @severity = value end
Returns the value of the `solution` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 7826 def solution @solution end
Sets the value of the `solution` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 7835 def solution=(value) @solution = value end
Returns the value of the `summary` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 7844 def summary @summary end
Sets the value of the `summary` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 7853 def summary=(value) @summary = value end
Returns the value of the `title` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 7862 def title @title end
Sets the value of the `title` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 7871 def title=(value) @title = value end
Returns the value of the `type` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 7880 def type @type end
Sets the value of the `type` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 7889 def type=(value) @type = value end
Returns the value of the `vm` attribute.
@return [Vm]
# File lib/ovirtsdk4/types.rb, line 7898 def vm @vm end
Sets the value of the `vm` attribute.
@param value [Vm, Hash]
The `value` parameter can be an instance of {OvirtSDK4::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.
# File lib/ovirtsdk4/types.rb, line 7911 def vm=(value) if value.is_a?(Hash) value = Vm.new(value) end @vm = value end