

def ex_reconfigure_node(self, node, memory_gb, cpu_count, cores_per_socket, cpu_performance):
    '\n        Reconfigure the virtual hardware specification of a node\n\n        :param  node: The server to change\n        :type   node: :class:`Node`\n\n        :param  memory_gb: The amount of memory in GB (optional)\n        :type   memory_gb: ``int``\n\n        :param  cpu_count: The number of CPU (optional)\n        :type   cpu_count: ``int``\n\n        :param  cores_per_socket: Number of CPU cores per socket (optional)\n        :type   cores_per_socket: ``int``\n\n        :param  cpu_performance: CPU Performance type (optional)\n        :type   cpu_performance: ``str``\n\n        :rtype: ``bool``\n        '
    update = ET.Element('reconfigureServer', {
        'xmlns': TYPES_URN,
    })
    update.set('id', node.id)
    if (memory_gb is not None):
        ET.SubElement(update, 'memoryGb').text = str(memory_gb)
    if (cpu_count is not None):
        ET.SubElement(update, 'cpuCount').text = str(cpu_count)
    if (cpu_performance is not None):
        ET.SubElement(update, 'cpuSpeed').text = cpu_performance
    if (memory_gb is not None):
        ET.SubElement(update, 'coresPerSocket').text = str(cores_per_socket)
    result = self.connection.request_with_orgId_api_2('server/reconfigureServer', method='POST', data=ET.tostring(update)).object
    response_code = findtext(result, 'responseCode', TYPES_URN)
    return (response_code in ['IN_PROGRESS', 'OK'])

dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/dimensiondata.py DimensionDataNodeDriver.ex_reconfigure_node/VarMisuse@131/405 `cores_per_socket`->`memory_gb`