'Updates the tenant\'s quota limits for one or more resources.
For a full list of available parameters, please refer to the official
API reference:
https://developer.openstack.org/api-ref/compute/#update-quotas'

def update_quota_set(self, tenant_id, user_id=None, **kwargs):

    post_body = json.dumps({'quota_set': kwargs})
    if user_id:
        (resp, body) = self.put(('os-quota-sets/%s?user_id=%s' % (tenant_id, user_id)), post_body)
    else:
        (resp, body) = self.put(('os-quota-sets/%s' % tenant_id), post_body)
    body = json.loads(body)
    self.validate_response(schema.update_quota_set, resp, body)
    return rest_client.ResponseBody(resp, body)
