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 23768 def initialize(opts = {}) super(opts) self.cpu_set = opts[:cpu_set] self.vcpu = opts[:vcpu] end
Returns `true` if `self` and `other` have the same attributes and values.
# File lib/ovirtsdk4/types.rb, line 23777 def ==(other) super && @cpu_set == other.cpu_set && @vcpu == other.vcpu end
Returns the value of the `cpu_set` attribute.
@return [String]
# File lib/ovirtsdk4/types.rb, line 23725 def cpu_set @cpu_set end
Sets the value of the `cpu_set` attribute.
@param value [String]
# File lib/ovirtsdk4/types.rb, line 23734 def cpu_set=(value) @cpu_set = value end
Generates a hash value for this object.
# File lib/ovirtsdk4/types.rb, line 23786 def hash super + @cpu_set.hash + @vcpu.hash end
Returns the value of the `vcpu` attribute.
@return [Integer]
# File lib/ovirtsdk4/types.rb, line 23743 def vcpu @vcpu end
Sets the value of the `vcpu` attribute.
@param value [Integer]
# File lib/ovirtsdk4/types.rb, line 23752 def vcpu=(value) @vcpu = value end