Class: OvirtSDK4::GuestOperatingSystem
- Inherits:
-
Struct
- Object
- Struct
- OvirtSDK4::GuestOperatingSystem
- Defined in:
- lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb
Instance Method Summary (collapse)
-
- (String) architecture
Returns the value of the
architecture
attribute. -
- (Object) architecture=(value)
Sets the value of the
architecture
attribute. -
- (String) codename
Returns the value of the
codename
attribute. -
- (Object) codename=(value)
Sets the value of the
codename
attribute. -
- (String) distribution
Returns the value of the
distribution
attribute. -
- (Object) distribution=(value)
Sets the value of the
distribution
attribute. -
- (String) family
Returns the value of the
family
attribute. -
- (Object) family=(value)
Sets the value of the
family
attribute. -
- (GuestOperatingSystem) initialize(opts = {})
constructor
Creates a new instance of the GuestOperatingSystem class.
-
- (Kernel) kernel
Returns the value of the
kernel
attribute. -
- (Object) kernel=(value)
Sets the value of the
kernel
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
- (GuestOperatingSystem) initialize(opts = {})
Creates a new instance of the OvirtSDK4::GuestOperatingSystem class.
3144 3145 3146 3147 3148 3149 3150 3151 3152 |
# File 'lib/ovirtsdk4/types.rb', line 3144 def initialize(opts = {}) super(opts) self.architecture = opts[:architecture] self.codename = opts[:codename] self.distribution = opts[:distribution] self.family = opts[:family] self.kernel = opts[:kernel] self.version = opts[:version] end |
Instance Method Details
- (String) architecture
Returns the value of the architecture
attribute.
3007 3008 3009 |
# File 'lib/ovirtsdk4/types.rb', line 3007 def architecture return @architecture end |
- (Object) architecture=(value)
Sets the value of the architecture
attribute.
3016 3017 3018 |
# File 'lib/ovirtsdk4/types.rb', line 3016 def architecture=(value) @architecture = value end |
- (String) codename
Returns the value of the codename
attribute.
3025 3026 3027 |
# File 'lib/ovirtsdk4/types.rb', line 3025 def codename return @codename end |
- (Object) codename=(value)
Sets the value of the codename
attribute.
3034 3035 3036 |
# File 'lib/ovirtsdk4/types.rb', line 3034 def codename=(value) @codename = value end |
- (String) distribution
Returns the value of the distribution
attribute.
3043 3044 3045 |
# File 'lib/ovirtsdk4/types.rb', line 3043 def distribution return @distribution end |
- (Object) distribution=(value)
Sets the value of the distribution
attribute.
3052 3053 3054 |
# File 'lib/ovirtsdk4/types.rb', line 3052 def distribution=(value) @distribution = value end |
- (String) family
Returns the value of the family
attribute.
3061 3062 3063 |
# File 'lib/ovirtsdk4/types.rb', line 3061 def family return @family end |
- (Object) family=(value)
Sets the value of the family
attribute.
3070 3071 3072 |
# File 'lib/ovirtsdk4/types.rb', line 3070 def family=(value) @family = value end |
- (Kernel) kernel
Returns the value of the kernel
attribute.
3079 3080 3081 |
# File 'lib/ovirtsdk4/types.rb', line 3079 def kernel return @kernel end |
- (Object) kernel=(value)
Sets the value of the kernel
attribute.
The value
parameter can be an instance of Kernel 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.
3092 3093 3094 3095 3096 3097 |
# File 'lib/ovirtsdk4/types.rb', line 3092 def kernel=(value) if value.is_a?(Hash) value = Kernel.new(value) end @kernel = value end |
- (Version) version
Returns the value of the version
attribute.
3104 3105 3106 |
# File 'lib/ovirtsdk4/types.rb', line 3104 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.
3117 3118 3119 3120 3121 3122 |
# File 'lib/ovirtsdk4/types.rb', line 3117 def version=(value) if value.is_a?(Hash) value = Version.new(value) end @version = value end |