class OvirtSDK4::KatelloErratum

Public Class Methods

new(opts = {}) click to toggle source

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`.

Calls superclass method OvirtSDK4::Identified.new
# 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

Public Instance Methods

comment() click to toggle source

Returns the value of the `comment` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 5367
def comment
  return @comment
end
comment=(value) click to toggle source

Sets the value of the `comment` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 5376
def comment=(value)
  @comment = value
end
description() click to toggle source

Returns the value of the `description` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 5385
def description
  return @description
end
description=(value) click to toggle source

Sets the value of the `description` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 5394
def description=(value)
  @description = value
end
host() click to toggle source

Returns the value of the `host` attribute.

@return [Host]

# File lib/ovirtsdk4/types.rb, line 5403
def host
  return @host
end
host=(value) click to toggle source

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 5416
def host=(value)
  if value.is_a?(Hash)
    value = Host.new(value)
  end
  @host = value
end
id() click to toggle source

Returns the value of the `id` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 5428
def id
  return @id
end
id=(value) click to toggle source

Sets the value of the `id` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 5437
def id=(value)
  @id = value
end
issued() click to toggle source

Returns the value of the `issued` attribute.

@return [DateTime]

# File lib/ovirtsdk4/types.rb, line 5446
def issued
  return @issued
end
issued=(value) click to toggle source

Sets the value of the `issued` attribute.

@param value [DateTime]

# File lib/ovirtsdk4/types.rb, line 5455
def issued=(value)
  @issued = value
end
name() click to toggle source

Returns the value of the `name` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 5464
def name
  return @name
end
name=(value) click to toggle source

Sets the value of the `name` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 5473
def name=(value)
  @name = value
end
packages() click to toggle source

Returns the value of the `packages` attribute.

@return [Array<Package>]

# File lib/ovirtsdk4/types.rb, line 5482
def packages
  return @packages
end
packages=(list) click to toggle source

Sets the value of the `packages` attribute.

@param list [Array<Package>]

# 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
severity() click to toggle source

Returns the value of the `severity` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 5507
def severity
  return @severity
end
severity=(value) click to toggle source

Sets the value of the `severity` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 5516
def severity=(value)
  @severity = value
end
solution() click to toggle source

Returns the value of the `solution` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 5525
def solution
  return @solution
end
solution=(value) click to toggle source

Sets the value of the `solution` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 5534
def solution=(value)
  @solution = value
end
summary() click to toggle source

Returns the value of the `summary` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 5543
def summary
  return @summary
end
summary=(value) click to toggle source

Sets the value of the `summary` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 5552
def summary=(value)
  @summary = value
end
title() click to toggle source

Returns the value of the `title` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 5561
def title
  return @title
end
title=(value) click to toggle source

Sets the value of the `title` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 5570
def title=(value)
  @title = value
end
type() click to toggle source

Returns the value of the `type` attribute.

@return [String]

# File lib/ovirtsdk4/types.rb, line 5579
def type
  return @type
end
type=(value) click to toggle source

Sets the value of the `type` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 5588
def type=(value)
  @type = value
end
vm() click to toggle source

Returns the value of the `vm` attribute.

@return [Vm]

# File lib/ovirtsdk4/types.rb, line 5597
def vm
  return @vm
end
vm=(value) click to toggle source

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 5610
def vm=(value)
  if value.is_a?(Hash)
    value = Vm.new(value)
  end
  @vm = value
end