

def ex_update_network_domain(self, network_domain):
    '\n        Update the properties of a network domain\n\n        :param      network_domain: The network domain with updated properties\n        :type       network_domain: :class:`DimensionDataNetworkDomain`\n\n        :return: an instance of `DimensionDataNetworkDomain`\n        :rtype: :class:`DimensionDataNetworkDomain`\n        '
    edit_node = ET.Element('editNetworkDomain', {
        'xmlns': TYPES_URN,
    })
    edit_node.set('id', network_domain.id)
    ET.SubElement(edit_node, 'name').text = network_domain.name
    if (network_domain.description is not None):
        ET.SubElement(edit_node, 'description').text = network_domain.description
    ET.SubElement(edit_node, 'type').text = network_domain.plan
    self.connection.request_with_orgId_api_2('network/editNetworkDomain', method='POST', data=ET.tostring(edit_node)).object
    return network_domain

dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/dimensiondata.py DimensionDataNodeDriver.ex_update_network_domain/original