(self, project_id,  resource, quotapatch)
return Quota.convert(db_quota)
Update Quota for a given project_id.

        :param project_id: project id.
        :param resource: resource name.
        :param quotapatch: a json document to update Quota.
Update Quota for a given project_id.
Update Quota for a given project_id .
def patch(self, project_id,  resource, quotapatch):
        """Update Quota for a given project_id.

        :param project_id: project id.
        :param resource: resource name.
        :param quotapatch: a json document to update Quota.
        """

        context = pecan.request.context
        policy.enforce(context, 'quota:update', action='quota:update')
        quota_dict = quotapatch.as_dict()
        quota_dict['project_id'] = project_id
        quota_dict['resource'] = resource
        db_quota = objects.Quota.update_quota(context, project_id, quota_dict)
        return Quota.convert(db_quota)
def patch ( self , project_id , resource , quotapatch ) : context = pecan . request . context policy . enforce ( context , 'quota:update' , action = 'quota:update' ) quota_dict = quotapatch . as_dict ( ) quota_dict [ 'project_id' ] = project_id quota_dict [ 'resource' ] = resource db_quota = objects . Quota . update_quota ( context , project_id , quota_dict ) return Quota . convert ( db_quota )