tempest/services/compute/json/servers_client.py
def update_server(self, server_id, name=None, meta=None, accessIPv4=None,
                      accessIPv6=None, disk_config=None):
        """
        Updates the properties of an existing server.
        server_id: The id of an existing server.
        name: The name of the server.
        personality: A list of files to be injected into the server.
        accessIPv4: The IPv4 access address for the server.
        accessIPv6: The IPv6 access address for the server.
        """

        post_body = {}

        if meta is not None:
            post_body['metadata'] = meta

        if name is not None:
            post_body['name'] = name

        if accessIPv4 is not None:
            post_body['accessIPv4'] = accessIPv4

        if accessIPv6 is not None:
            post_body['accessIPv6'] = accessIPv6

        if disk_config is not None:
            post_body['OS-DCF:diskConfig'] = disk_config

        post_body = json.dumps({'server': post_body})
        resp, body = self.put("servers/%s" % str(server_id),
                              post_body, self.headers)
        body = json.loads(body)
        return resp, body['server']

        Updates the properties of an existing server.
        server_id: The id of an existing server.
        name: The name of the server.
        personality: A list of files to be injected into the server.
        accessIPv4: The IPv4 access address for the server.
        accessIPv6: The IPv6 access address for the server.
        
Updates the properties of an existing server.
server_id: The id of an existing server.
name: The name of the server.
personality: A list of files to be injected into the server.
accessIPv4: The IPv4 access address for the server.
accessIPv6: The IPv6 access address for the server.
Updates the properties of an existing server . server_id : The id of an existing server . name : The name of the server . personality : A list of files to be injected into the server . accessIPv4 : The IPv4 access address for the server . accessIPv6 : The IPv6 access address for the server .
def update_server(self, server_id, name=None, meta=None, accessIPv4=None,
                      accessIPv6=None, disk_config=None):
        post_body = {}
        if meta is not None:
            post_body['metadata'] = meta
        if name is not None:
            post_body['name'] = name
        if accessIPv4 is not None:
            post_body['accessIPv4'] = accessIPv4
        if accessIPv6 is not None:
            post_body['accessIPv6'] = accessIPv6
        if disk_config is not None:
            post_body['OS-DCF:diskConfig'] = disk_config
        post_body = json.dumps({'server': post_body})
        resp, body = self.put("servers/%s" % str(server_id),
                              post_body, self.headers)
        body = json.loads(body)
        return resp, body['server']
def update_server ( self , server_id , name = None , meta = None , accessIPv4 = None , accessIPv6 = None , disk_config = None ) : post_body = { } if meta is not None : post_body [ 'metadata' ] = meta if name is not None : post_body [ 'name' ] = name if accessIPv4 is not None : post_body [ 'accessIPv4' ] = accessIPv4 if accessIPv6 is not None : post_body [ 'accessIPv6' ] = accessIPv6 if disk_config is not None : post_body [ 'OS-DCF:diskConfig' ] = disk_config post_body = json . dumps ( { 'server' : post_body } ) resp , body = self . put ( "servers/%s" % str ( server_id ) , post_body , self . headers ) body = json . loads ( body ) return resp , body [ 'server' ]
Updates the properties of an existing server.
Updates the properties of an existing server .
"""
        Updates the properties of an existing server.
        server_id: The id of an existing server.
        name: The name of the server.
        personality: A list of files to be injected into the server.
        accessIPv4: The IPv4 access address for the server.
        accessIPv6: The IPv6 access address for the server.
        """
self
server_id
name
meta
accessIPv4
accessIPv6
disk_config