Class: OvirtSDK4::OperatingSystem

Inherits:
Struct
  • Object
show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (OperatingSystem) initialize(opts = {})

Creates a new instance of the OvirtSDK4::OperatingSystem class.

Parameters:

  • opts (Hash) (defaults to: {})

    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.

Options Hash (opts):

  • :boot (Boot, Hash)

    The value of attribute boot.

  • :cmdline (String)

    The value of attribute cmdline.

  • :custom_kernel_cmdline (String)

    The value of attribute custom_kernel_cmdline.

  • :initrd (String)

    The value of attribute initrd.

  • :kernel (String)

    The value of attribute kernel.

  • :reported_kernel_cmdline (String)

    The value of attribute reported_kernel_cmdline.

  • :type (String)

    The value of attribute type.

  • :version (Version, Hash)

    The value of attribute version.



9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
# File 'lib/ovirtsdk4/types.rb', line 9479

def initialize(opts = {})
  super(opts)
  self.boot = opts[:boot]
  self.cmdline = opts[:cmdline]
  self.custom_kernel_cmdline = opts[:custom_kernel_cmdline]
  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

Instance Method Details

- (Boot) boot

Returns the value of the boot attribute.

Returns:



9302
9303
9304
# File 'lib/ovirtsdk4/types.rb', line 9302

def boot
  return @boot
end

- (Object) boot=(value)

Sets the value of the boot attribute.

The value parameter can be an instance of 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.

Parameters:

  • value (Boot, Hash)


9315
9316
9317
9318
9319
9320
# File 'lib/ovirtsdk4/types.rb', line 9315

def boot=(value)
  if value.is_a?(Hash)
    value = Boot.new(value)
  end
  @boot = value
end

- (String) cmdline

Returns the value of the cmdline attribute.

Returns:

  • (String)


9327
9328
9329
# File 'lib/ovirtsdk4/types.rb', line 9327

def cmdline
  return @cmdline
end

- (Object) cmdline=(value)

Sets the value of the cmdline attribute.

Parameters:

  • value (String)


9336
9337
9338
# File 'lib/ovirtsdk4/types.rb', line 9336

def cmdline=(value)
  @cmdline = value
end

- (String) custom_kernel_cmdline

Returns the value of the custom_kernel_cmdline attribute.

Returns:

  • (String)


9345
9346
9347
# File 'lib/ovirtsdk4/types.rb', line 9345

def custom_kernel_cmdline
  return @custom_kernel_cmdline
end

- (Object) custom_kernel_cmdline=(value)

Sets the value of the custom_kernel_cmdline attribute.

Parameters:

  • value (String)


9354
9355
9356
# File 'lib/ovirtsdk4/types.rb', line 9354

def custom_kernel_cmdline=(value)
  @custom_kernel_cmdline = value
end

- (String) initrd

Returns the value of the initrd attribute.

Returns:

  • (String)


9363
9364
9365
# File 'lib/ovirtsdk4/types.rb', line 9363

def initrd
  return @initrd
end

- (Object) initrd=(value)

Sets the value of the initrd attribute.

Parameters:

  • value (String)


9372
9373
9374
# File 'lib/ovirtsdk4/types.rb', line 9372

def initrd=(value)
  @initrd = value
end

- (String) kernel

Returns the value of the kernel attribute.

Returns:

  • (String)


9381
9382
9383
# File 'lib/ovirtsdk4/types.rb', line 9381

def kernel
  return @kernel
end

- (Object) kernel=(value)

Sets the value of the kernel attribute.

Parameters:

  • value (String)


9390
9391
9392
# File 'lib/ovirtsdk4/types.rb', line 9390

def kernel=(value)
  @kernel = value
end

- (String) reported_kernel_cmdline

Returns the value of the reported_kernel_cmdline attribute.

Returns:

  • (String)


9399
9400
9401
# File 'lib/ovirtsdk4/types.rb', line 9399

def reported_kernel_cmdline
  return @reported_kernel_cmdline
end

- (Object) reported_kernel_cmdline=(value)

Sets the value of the reported_kernel_cmdline attribute.

Parameters:

  • value (String)


9408
9409
9410
# File 'lib/ovirtsdk4/types.rb', line 9408

def reported_kernel_cmdline=(value)
  @reported_kernel_cmdline = value
end

- (String) type

Returns the value of the type attribute.

Returns:

  • (String)


9417
9418
9419
# File 'lib/ovirtsdk4/types.rb', line 9417

def type
  return @type
end

- (Object) type=(value)

Sets the value of the type attribute.

Parameters:

  • value (String)


9426
9427
9428
# File 'lib/ovirtsdk4/types.rb', line 9426

def type=(value)
  @type = value
end

- (Version) version

Returns the value of the version attribute.

Returns:



9435
9436
9437
# File 'lib/ovirtsdk4/types.rb', line 9435

def version
  return @version
end

- (Object) version=(value)

Sets the value of the version attribute.

The value parameter can be an instance of 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.

Parameters:



9448
9449
9450
9451
9452
9453
# File 'lib/ovirtsdk4/types.rb', line 9448

def version=(value)
  if value.is_a?(Hash)
    value = Version.new(value)
  end
  @version = value
end