Class: OvirtSDK4::VcpuPin

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

- (VcpuPin) initialize(opts = {})

Creates a new instance of the OvirtSDK4::VcpuPin 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):

  • :cpu_set (String)

    The value of attribute cpu_set.

  • :vcpu (Integer)

    The value of attribute vcpu.



17882
17883
17884
17885
17886
# File 'lib/ovirtsdk4/types.rb', line 17882

def initialize(opts = {})
  super(opts)
  self.cpu_set = opts[:cpu_set]
  self.vcpu = opts[:vcpu]
end

Instance Method Details

- (String) cpu_set

Returns the value of the cpu_set attribute.

Returns:

  • (String)


17839
17840
17841
# File 'lib/ovirtsdk4/types.rb', line 17839

def cpu_set
  return @cpu_set
end

- (Object) cpu_set=(value)

Sets the value of the cpu_set attribute.

Parameters:

  • value (String)


17848
17849
17850
# File 'lib/ovirtsdk4/types.rb', line 17848

def cpu_set=(value)
  @cpu_set = value
end

- (Integer) vcpu

Returns the value of the vcpu attribute.

Returns:

  • (Integer)


17857
17858
17859
# File 'lib/ovirtsdk4/types.rb', line 17857

def vcpu
  return @vcpu
end

- (Object) vcpu=(value)

Sets the value of the vcpu attribute.

Parameters:

  • value (Integer)


17866
17867
17868
# File 'lib/ovirtsdk4/types.rb', line 17866

def vcpu=(value)
  @vcpu = value
end