Class: OvirtSDK4::OperatingSystem
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
true
ifself
andother
have the same attributes and values. -
#boot ⇒ Boot
Returns the value of the
boot
attribute. -
#boot=(value) ⇒ Object
Sets the value of the
boot
attribute. -
#cmdline ⇒ String
Returns the value of the
cmdline
attribute. -
#cmdline=(value) ⇒ Object
Sets the value of the
cmdline
attribute. -
#custom_kernel_cmdline ⇒ String
Returns the value of the
custom_kernel_cmdline
attribute. -
#custom_kernel_cmdline=(value) ⇒ Object
Sets the value of the
custom_kernel_cmdline
attribute. -
#hash ⇒ Object
Generates a hash value for this object.
-
#initialize(opts = {}) ⇒ OperatingSystem
constructor
Creates a new instance of the OperatingSystem class.
-
#initrd ⇒ String
Returns the value of the
initrd
attribute. -
#initrd=(value) ⇒ Object
Sets the value of the
initrd
attribute. -
#kernel ⇒ String
Returns the value of the
kernel
attribute. -
#kernel=(value) ⇒ Object
Sets the value of the
kernel
attribute. -
#reported_kernel_cmdline ⇒ String
Returns the value of the
reported_kernel_cmdline
attribute. -
#reported_kernel_cmdline=(value) ⇒ Object
Sets the value of the
reported_kernel_cmdline
attribute. -
#type ⇒ String
Returns the value of the
type
attribute. -
#type=(value) ⇒ Object
Sets the value of the
type
attribute. -
#version ⇒ Version
Returns the value of the
version
attribute. -
#version=(value) ⇒ Object
Sets the value of the
version
attribute.
Methods included from Type
Constructor Details
#initialize(opts = {}) ⇒ OperatingSystem
Creates a new instance of the OvirtSDK4::OperatingSystem class.
13556 13557 13558 13559 13560 13561 13562 13563 13564 13565 13566 |
# File 'lib/ovirtsdk4/types.rb', line 13556 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
#==(other) ⇒ Object
Returns true
if self
and other
have the same attributes and values.
13571 13572 13573 13574 13575 13576 13577 13578 13579 13580 13581 |
# File 'lib/ovirtsdk4/types.rb', line 13571 def ==(other) super && @boot == other.boot && @cmdline == other.cmdline && @custom_kernel_cmdline == other.custom_kernel_cmdline && @initrd == other.initrd && @kernel == other.kernel && @reported_kernel_cmdline == other.reported_kernel_cmdline && @type == other.type && @version == other.version end |
#boot ⇒ Boot
Returns the value of the boot
attribute.
13379 13380 13381 |
# File 'lib/ovirtsdk4/types.rb', line 13379 def boot @boot end |
#boot=(value) ⇒ Object
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.
13392 13393 13394 13395 13396 13397 |
# File 'lib/ovirtsdk4/types.rb', line 13392 def boot=(value) if value.is_a?(Hash) value = Boot.new(value) end @boot = value end |
#cmdline ⇒ String
Returns the value of the cmdline
attribute.
13404 13405 13406 |
# File 'lib/ovirtsdk4/types.rb', line 13404 def cmdline @cmdline end |
#cmdline=(value) ⇒ Object
Sets the value of the cmdline
attribute.
13413 13414 13415 |
# File 'lib/ovirtsdk4/types.rb', line 13413 def cmdline=(value) @cmdline = value end |
#custom_kernel_cmdline ⇒ String
Returns the value of the custom_kernel_cmdline
attribute.
13422 13423 13424 |
# File 'lib/ovirtsdk4/types.rb', line 13422 def custom_kernel_cmdline @custom_kernel_cmdline end |
#custom_kernel_cmdline=(value) ⇒ Object
Sets the value of the custom_kernel_cmdline
attribute.
13431 13432 13433 |
# File 'lib/ovirtsdk4/types.rb', line 13431 def custom_kernel_cmdline=(value) @custom_kernel_cmdline = value end |
#hash ⇒ Object
Generates a hash value for this object.
13586 13587 13588 13589 13590 13591 13592 13593 13594 13595 13596 |
# File 'lib/ovirtsdk4/types.rb', line 13586 def hash super + @boot.hash + @cmdline.hash + @custom_kernel_cmdline.hash + @initrd.hash + @kernel.hash + @reported_kernel_cmdline.hash + @type.hash + @version.hash end |
#initrd ⇒ String
Returns the value of the initrd
attribute.
13440 13441 13442 |
# File 'lib/ovirtsdk4/types.rb', line 13440 def initrd @initrd end |
#initrd=(value) ⇒ Object
Sets the value of the initrd
attribute.
13449 13450 13451 |
# File 'lib/ovirtsdk4/types.rb', line 13449 def initrd=(value) @initrd = value end |
#kernel ⇒ String
Returns the value of the kernel
attribute.
13458 13459 13460 |
# File 'lib/ovirtsdk4/types.rb', line 13458 def kernel @kernel end |
#kernel=(value) ⇒ Object
Sets the value of the kernel
attribute.
13467 13468 13469 |
# File 'lib/ovirtsdk4/types.rb', line 13467 def kernel=(value) @kernel = value end |
#reported_kernel_cmdline ⇒ String
Returns the value of the reported_kernel_cmdline
attribute.
13476 13477 13478 |
# File 'lib/ovirtsdk4/types.rb', line 13476 def reported_kernel_cmdline @reported_kernel_cmdline end |
#reported_kernel_cmdline=(value) ⇒ Object
Sets the value of the reported_kernel_cmdline
attribute.
13485 13486 13487 |
# File 'lib/ovirtsdk4/types.rb', line 13485 def reported_kernel_cmdline=(value) @reported_kernel_cmdline = value end |
#type ⇒ String
Returns the value of the type
attribute.
13494 13495 13496 |
# File 'lib/ovirtsdk4/types.rb', line 13494 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
13503 13504 13505 |
# File 'lib/ovirtsdk4/types.rb', line 13503 def type=(value) @type = value end |
#version ⇒ Version
Returns the value of the version
attribute.
13512 13513 13514 |
# File 'lib/ovirtsdk4/types.rb', line 13512 def version @version end |
#version=(value) ⇒ Object
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.
13525 13526 13527 13528 13529 13530 |
# File 'lib/ovirtsdk4/types.rb', line 13525 def version=(value) if value.is_a?(Hash) value = Version.new(value) end @version = value end |