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.
12744 12745 12746 12747 12748 12749 12750 12751 12752 12753 12754 |
# File 'lib/ovirtsdk4/types.rb', line 12744 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.
12759 12760 12761 12762 12763 12764 12765 12766 12767 12768 12769 |
# File 'lib/ovirtsdk4/types.rb', line 12759 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.
12567 12568 12569 |
# File 'lib/ovirtsdk4/types.rb', line 12567 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.
12580 12581 12582 12583 12584 12585 |
# File 'lib/ovirtsdk4/types.rb', line 12580 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.
12592 12593 12594 |
# File 'lib/ovirtsdk4/types.rb', line 12592 def cmdline @cmdline end |
#cmdline=(value) ⇒ Object
Sets the value of the cmdline
attribute.
12601 12602 12603 |
# File 'lib/ovirtsdk4/types.rb', line 12601 def cmdline=(value) @cmdline = value end |
#custom_kernel_cmdline ⇒ String
Returns the value of the custom_kernel_cmdline
attribute.
12610 12611 12612 |
# File 'lib/ovirtsdk4/types.rb', line 12610 def custom_kernel_cmdline @custom_kernel_cmdline end |
#custom_kernel_cmdline=(value) ⇒ Object
Sets the value of the custom_kernel_cmdline
attribute.
12619 12620 12621 |
# File 'lib/ovirtsdk4/types.rb', line 12619 def custom_kernel_cmdline=(value) @custom_kernel_cmdline = value end |
#hash ⇒ Object
Generates a hash value for this object.
12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 |
# File 'lib/ovirtsdk4/types.rb', line 12774 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.
12628 12629 12630 |
# File 'lib/ovirtsdk4/types.rb', line 12628 def initrd @initrd end |
#initrd=(value) ⇒ Object
Sets the value of the initrd
attribute.
12637 12638 12639 |
# File 'lib/ovirtsdk4/types.rb', line 12637 def initrd=(value) @initrd = value end |
#kernel ⇒ String
Returns the value of the kernel
attribute.
12646 12647 12648 |
# File 'lib/ovirtsdk4/types.rb', line 12646 def kernel @kernel end |
#kernel=(value) ⇒ Object
Sets the value of the kernel
attribute.
12655 12656 12657 |
# File 'lib/ovirtsdk4/types.rb', line 12655 def kernel=(value) @kernel = value end |
#reported_kernel_cmdline ⇒ String
Returns the value of the reported_kernel_cmdline
attribute.
12664 12665 12666 |
# File 'lib/ovirtsdk4/types.rb', line 12664 def reported_kernel_cmdline @reported_kernel_cmdline end |
#reported_kernel_cmdline=(value) ⇒ Object
Sets the value of the reported_kernel_cmdline
attribute.
12673 12674 12675 |
# File 'lib/ovirtsdk4/types.rb', line 12673 def reported_kernel_cmdline=(value) @reported_kernel_cmdline = value end |
#type ⇒ String
Returns the value of the type
attribute.
12682 12683 12684 |
# File 'lib/ovirtsdk4/types.rb', line 12682 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
12691 12692 12693 |
# File 'lib/ovirtsdk4/types.rb', line 12691 def type=(value) @type = value end |
#version ⇒ Version
Returns the value of the version
attribute.
12700 12701 12702 |
# File 'lib/ovirtsdk4/types.rb', line 12700 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.
12713 12714 12715 12716 12717 12718 |
# File 'lib/ovirtsdk4/types.rb', line 12713 def version=(value) if value.is_a?(Hash) value = Version.new(value) end @version = value end |