class OvirtSDK4::OperatingSystem

Public Class Methods

new(opts = {}) click to toggle source

Creates a new instance of the {OperatingSystem} 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 [Boot, Hash] :boot The value of attribute `boot`.

@option opts [String] :cmdline The value of attribute `cmdline`.

@option opts [String] :custom_kernel_cmdline The value of attribute `custom_kernel_cmdline`.

@option opts [String] :description The value of attribute `description`.

@option opts [String] :initrd The value of attribute `initrd`.

@option opts [String] :kernel The value of attribute `kernel`.

@option opts [String] :reported_kernel_cmdline The value of attribute `reported_kernel_cmdline`.

@option opts [String] :type The value of attribute `type`.

@option opts [Version, Hash] :version The value of attribute `version`.

Calls superclass method OvirtSDK4::Struct::new
# File lib/ovirtsdk4/types.rb, line 13823
def initialize(opts = {})
  super(opts)
  self.boot = opts[:boot]
  self.cmdline = opts[:cmdline]
  self.custom_kernel_cmdline = opts[:custom_kernel_cmdline]
  self.description = opts[:description]
  self.initrd = opts[:initrd]
  self.kernel = opts[:kernel]
  self.reported_kernel_cmdline = opts[:reported_kernel_cmdline]
  self.type = opts[:type]
  self.version = opts[:version]
end

Public Instance Methods

==(other) click to toggle source

Returns `true` if `self` and `other` have the same attributes and values.

Calls superclass method OvirtSDK4::Struct#==
# File lib/ovirtsdk4/types.rb, line 13839
def ==(other)
  super &&
  @boot == other.boot &&
  @cmdline == other.cmdline &&
  @custom_kernel_cmdline == other.custom_kernel_cmdline &&
  @description == other.description &&
  @initrd == other.initrd &&
  @kernel == other.kernel &&
  @reported_kernel_cmdline == other.reported_kernel_cmdline &&
  @type == other.type &&
  @version == other.version
end
boot() click to toggle source

Returns the value of the `boot` attribute.

@return [Boot]

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

Sets the value of the `boot` attribute.

@param value [Boot, Hash]

The `value` parameter can be an instance of {OvirtSDK4::Boot} 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 13639
def boot=(value)
  if value.is_a?(Hash)
    value = Boot.new(value)
  end
  @boot = value
end
cmdline() click to toggle source

Returns the value of the `cmdline` attribute.

@return [String]

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

Sets the value of the `cmdline` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 13660
def cmdline=(value)
  @cmdline = value
end
custom_kernel_cmdline() click to toggle source

Returns the value of the `custom_kernel_cmdline` attribute.

@return [String]

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

Sets the value of the `custom_kernel_cmdline` attribute.

@param value [String]

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

Returns the value of the `description` attribute.

@return [String]

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

Sets the value of the `description` attribute.

@param value [String]

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

Generates a hash value for this object.

Calls superclass method OvirtSDK4::Struct#hash
# File lib/ovirtsdk4/types.rb, line 13855
def hash
  super +
  @boot.hash +
  @cmdline.hash +
  @custom_kernel_cmdline.hash +
  @description.hash +
  @initrd.hash +
  @kernel.hash +
  @reported_kernel_cmdline.hash +
  @type.hash +
  @version.hash
end
initrd() click to toggle source

Returns the value of the `initrd` attribute.

@return [String]

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

Sets the value of the `initrd` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 13714
def initrd=(value)
  @initrd = value
end
kernel() click to toggle source

Returns the value of the `kernel` attribute.

@return [String]

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

Sets the value of the `kernel` attribute.

@param value [String]

# File lib/ovirtsdk4/types.rb, line 13732
def kernel=(value)
  @kernel = value
end
reported_kernel_cmdline() click to toggle source

Returns the value of the `reported_kernel_cmdline` attribute.

@return [String]

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

Sets the value of the `reported_kernel_cmdline` attribute.

@param value [String]

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

Returns the value of the `type` attribute.

@return [String]

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

Sets the value of the `type` attribute.

@param value [String]

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

Returns the value of the `version` attribute.

@return [Version]

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

Sets the value of the `version` attribute.

@param value [Version, Hash]

The `value` parameter can be an instance of {OvirtSDK4::Version} 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 13790
def version=(value)
  if value.is_a?(Hash)
    value = Version.new(value)
  end
  @version = value
end