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.
13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 |
# File 'lib/ovirtsdk4/types.rb', line 13106 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.
13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 |
# File 'lib/ovirtsdk4/types.rb', line 13121 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.
12929 12930 12931 |
# File 'lib/ovirtsdk4/types.rb', line 12929 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.
12942 12943 12944 12945 12946 12947 |
# File 'lib/ovirtsdk4/types.rb', line 12942 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.
12954 12955 12956 |
# File 'lib/ovirtsdk4/types.rb', line 12954 def cmdline @cmdline end |
#cmdline=(value) ⇒ Object
Sets the value of the cmdline
attribute.
12963 12964 12965 |
# File 'lib/ovirtsdk4/types.rb', line 12963 def cmdline=(value) @cmdline = value end |
#custom_kernel_cmdline ⇒ String
Returns the value of the custom_kernel_cmdline
attribute.
12972 12973 12974 |
# File 'lib/ovirtsdk4/types.rb', line 12972 def custom_kernel_cmdline @custom_kernel_cmdline end |
#custom_kernel_cmdline=(value) ⇒ Object
Sets the value of the custom_kernel_cmdline
attribute.
12981 12982 12983 |
# File 'lib/ovirtsdk4/types.rb', line 12981 def custom_kernel_cmdline=(value) @custom_kernel_cmdline = value end |
#hash ⇒ Object
Generates a hash value for this object.
13136 13137 13138 13139 13140 13141 13142 13143 13144 13145 13146 |
# File 'lib/ovirtsdk4/types.rb', line 13136 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.
12990 12991 12992 |
# File 'lib/ovirtsdk4/types.rb', line 12990 def initrd @initrd end |
#initrd=(value) ⇒ Object
Sets the value of the initrd
attribute.
12999 13000 13001 |
# File 'lib/ovirtsdk4/types.rb', line 12999 def initrd=(value) @initrd = value end |
#kernel ⇒ String
Returns the value of the kernel
attribute.
13008 13009 13010 |
# File 'lib/ovirtsdk4/types.rb', line 13008 def kernel @kernel end |
#kernel=(value) ⇒ Object
Sets the value of the kernel
attribute.
13017 13018 13019 |
# File 'lib/ovirtsdk4/types.rb', line 13017 def kernel=(value) @kernel = value end |
#reported_kernel_cmdline ⇒ String
Returns the value of the reported_kernel_cmdline
attribute.
13026 13027 13028 |
# File 'lib/ovirtsdk4/types.rb', line 13026 def reported_kernel_cmdline @reported_kernel_cmdline end |
#reported_kernel_cmdline=(value) ⇒ Object
Sets the value of the reported_kernel_cmdline
attribute.
13035 13036 13037 |
# File 'lib/ovirtsdk4/types.rb', line 13035 def reported_kernel_cmdline=(value) @reported_kernel_cmdline = value end |
#type ⇒ String
Returns the value of the type
attribute.
13044 13045 13046 |
# File 'lib/ovirtsdk4/types.rb', line 13044 def type @type end |
#type=(value) ⇒ Object
Sets the value of the type
attribute.
13053 13054 13055 |
# File 'lib/ovirtsdk4/types.rb', line 13053 def type=(value) @type = value end |
#version ⇒ Version
Returns the value of the version
attribute.
13062 13063 13064 |
# File 'lib/ovirtsdk4/types.rb', line 13062 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.
13075 13076 13077 13078 13079 13080 |
# File 'lib/ovirtsdk4/types.rb', line 13075 def version=(value) if value.is_a?(Hash) value = Version.new(value) end @version = value end |