Class: OvirtSDK4::GuestOperatingSystem

Inherits:
Struct
  • Object
show all
Defined in:
lib/ovirtsdk4/types.rb,
lib/ovirtsdk4/types.rb

Instance Method Summary (collapse)

Methods included from Type

#href, #href=

Constructor Details

- (GuestOperatingSystem) initialize(opts = {})

Creates a new instance of the OvirtSDK4::GuestOperatingSystem class.

Parameters:

  • opts (Hash) (defaults to: {})

    A hash containing the attributes of the object. The keys of the hash should be symbols corresponding to the names of the attributes. The values of the hash should be the values of the attributes.

Options Hash (opts):

  • :architecture (String)

    The value of attribute architecture.

  • :codename (String)

    The value of attribute codename.

  • :distribution (String)

    The value of attribute distribution.

  • :family (String)

    The value of attribute family.

  • :kernel (Kernel, Hash)

    The value of attribute kernel.

  • :version (Version, Hash)

    The value of attribute version.



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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:

  • (String)


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.

Parameters:

  • value (String)


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.

Returns:



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.

Parameters:



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.

Returns:



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.

Parameters:



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