Class: OvirtSDK4::OperatingSystem
- Inherits:
-
Struct
- Object
- Struct
- OvirtSDK4::OperatingSystem
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary (collapse)
-
- (Boot) boot
Returns the value of the
boot
attribute. -
- (Object) boot=(value)
Sets the value of the
boot
attribute. -
- (String) cmdline
Returns the value of the
cmdline
attribute. -
- (Object) cmdline=(value)
Sets the value of the
cmdline
attribute. -
- (String) custom_kernel_cmdline
Returns the value of the
custom_kernel_cmdline
attribute. -
- (Object) custom_kernel_cmdline=(value)
Sets the value of the
custom_kernel_cmdline
attribute. -
- (OperatingSystem) initialize(opts = {})
constructor
Creates a new instance of the OperatingSystem class.
-
- (String) initrd
Returns the value of the
initrd
attribute. -
- (Object) initrd=(value)
Sets the value of the
initrd
attribute. -
- (String) kernel
Returns the value of the
kernel
attribute. -
- (Object) kernel=(value)
Sets the value of the
kernel
attribute. -
- (String) reported_kernel_cmdline
Returns the value of the
reported_kernel_cmdline
attribute. -
- (Object) reported_kernel_cmdline=(value)
Sets the value of the
reported_kernel_cmdline
attribute. -
- (String) type
Returns the value of the
type
attribute. -
- (Object) type=(value)
Sets the value of the
type
attribute. -
- (Version) version
Returns the value of the
version
attribute. -
- (Object) version=(value)
Sets the value of the
version
attribute.
Methods included from Type
Constructor Details
- (OperatingSystem) initialize(opts = {})
Creates a new instance of the OvirtSDK4::OperatingSystem class.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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 |