class OvirtSDK4::OperatingSystem
Public Class Methods
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] :initrd The value of attribute `initrd`.
@option opts [String] :kernel The value of attribute `kernel`.
@option opts [String] :type The value of attribute `type`.
@option opts [Version, Hash] :version The value of attribute `version`.
# File lib/ovirtsdk4/types.rb, line 9270 def initialize(opts = {}) super(opts) self.boot = opts[:boot] self.cmdline = opts[:cmdline] self.initrd = opts[:initrd] self.kernel = opts[:kernel] self.type = opts[:type] self.version = opts[:version] end
Public Instance Methods
Returns the value of the `boot` attribute.
@return [Boot]
# File lib/ovirtsdk4/types.rb, line 9133 def boot return @boot end
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 9146 def boot=(value) if value.is_a?(Hash) value = Boot.new(value) end @boot = value end
Returns the value of the `cmdline` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 9158 def cmdline return @cmdline end
Sets the value of the `cmdline` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 9167 def cmdline=(value) @cmdline = value end
Returns the value of the `initrd` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 9176 def initrd return @initrd end
Sets the value of the `initrd` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 9185 def initrd=(value) @initrd = value end
Returns the value of the `kernel` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 9194 def kernel return @kernel end
Sets the value of the `kernel` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 9203 def kernel=(value) @kernel = value end
Returns the value of the `type` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 9212 def type return @type end
Sets the value of the `type` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 9221 def type=(value) @type = value end
Returns the value of the `version` attribute.
@return [Version]
# File lib/ovirtsdk4/types.rb, line 9230 def version return @version end
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 9243 def version=(value) if value.is_a?(Hash) value = Version.new(value) end @version = value end