Creates a new instance of the {VcpuPin} class.
@param opts [Hash] 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.
@option opts [String] :cpu_set The value of attribute `cpu_set`.
@option opts [Integer] :vcpu The value of attribute `vcpu`.
# File lib/ovirtsdk4/types.rb, line 17139 def initialize(opts = {}) super(opts) self.cpu_set = opts[:cpu_set] self.vcpu = opts[:vcpu] end
Returns the value of the `cpu_set` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 17096 def cpu_set return @cpu_set end
Sets the value of the `cpu_set` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 17105 def cpu_set=(value) @cpu_set = value end
Returns the value of the `vcpu` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 17114 def vcpu return @vcpu end
Sets the value of the `vcpu` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 17123 def vcpu=(value) @vcpu = value end