'Update a security group.
For a full list of available parameters, please refer to the official
API reference:
https://developer.openstack.org/api-ref/compute/#update-security-group'

def update_security_group(self, security_group_id, **kwargs):

    post_body = json.dumps({'security_group': kwargs})
    (resp, body) = self.put(('os-security-groups/%s' % security_group_id), post_body)
    body = json.loads(body)
    self.validate_response(schema.update_security_group, resp, body)
    return rest_client.ResponseBody(resp, body)
