libcloud/compute/drivers/dimensiondata.py [2453:2496]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        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 cores_per_socket 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"]

    def ex_clone_node_to_image(
        self,
        node,
        image_name,
        image_description=None,
        cluster_id=None,
        is_guest_Os_Customization=None,
        tag_key_id=None,
        tag_value=None,
    ):
        """
        Clone a server into a customer image.

        :param  node: The server to clone
        :type   node: :class:`Node`

        :param  image_name: The name of the clone image
        :type   image_name: ``str``

        :param  description: The description of the image
        :type   description: ``str``

        :rtype: ``bool``
        """
        if image_description is None:
            image_description = ""

        node_id = self._node_to_node_id(node)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



libcloud/compute/drivers/nttcis.py [3134:3183]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
        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 cores_per_socket 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"]

    def ex_clone_node_to_image(
        self,
        node,
        image_name,
        image_description=None,
        cluster_id=None,
        is_guest_Os_Customization=None,
        tag_key_id=None,
        tag_value=None,
    ):
        """
        Clone a server into a customer image.

        :param  node: The server to clone
        :type   node: :class:`Node`

        :param  image_name: The name of the clone image
        :type   image_name: ``str``

        :param  description: The description of the image
        :type   description: ``str``

        :rtype: ``bool``
        """

        if image_description is None:
            image_description = ""

        node_id = self._node_to_node_id(node)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



