Create a new quota

@param QuotaBuilder $input
@param array $queryParams
@return QuotaResponse
326163
public function create(QuotaBuilder $input, array $queryParams = [])
    {
        $response = $this->api->quotas()->create($input->toArray(), $queryParams);

        return new QuotaResponse($response);
    }
758059
public final function doQuery(string $query, array $queryParams = null): BatchInterface
    {
        return $this->queue($query, $queryParams)->do();
    }
1206369
public function getById($userId, array $queryParams = [])
    {
        $response = $this->api->users()->getById($userId, $queryParams);

        return new UserResponse($response);
    }
665838
public function delete(array $queryParams = [])
    {
        $response = $this->api->logs()->delete($queryParams);

        return new BaseResponse($response);
    }
511402
public function create($appId, $input, array $queryParams = [])
    {
        if ($input instanceof ScanBuilder) {
            $inputArray = $input->toArray();
            $defaultInput = true;
        } else {
            $inputArray = [];
            foreach ($input as $key => $value) {
                if ($value instanceof BaseBuilder) {
                    $inputArray[$key] = $value->toArray();
                } else if (is_array($value)) {
                    foreach ($value as $key2 => $value2) {
                        if ($value2 instanceof BaseBuilder) {
                            $inputArray[$key][$key2] = $value2->toArray();
                        } else if (is_string($value2)) {
                            $inputArray[$key][$key2] = $value2;
                        }
                    }
                }
            }
            $defaultInput = false;
        }

        $response = $this->api->applications()->scans()->create($appId, $inputArray, $queryParams, $defaultInput);

        return new ScanResponse($response);
    }
764760
protected function applyRequestFilters(QueryBuilder $queryBuilder, array $filters = [])
    {
        foreach ($filters as $field => $value) {
            // Empty string and numeric keys is considered as "not applied filter"
            if ('' === $value || \is_int($field)) {
                continue;
            }

            $operator = \is_array($value) ? ListFilter::OPERATOR_IN : ListFilter::OPERATOR_EQUALS;
            $listFilter = ListFilter::createFromRequest($field, $operator, $value);

            $this->filterQueryBuilder($queryBuilder, $field, $listFilter);
        }
    }
81146
public function sync(array $queryParams = [])
    {
        $response = $this->api->systems()->ldap()->sync($queryParams);

        return new BaseResponse($response);
    }
478324
public function create($appId, $scanId, $issueId, ReviewBuilder $input, array $queryParams = [])
    {
        $response = $this->api
            ->applications()
            ->scans()
            ->issues()
            ->reviews()
            ->create($appId, $scanId, $issueId, $input->toArray(), $queryParams);

        return new ReviewResponse($response);
    }
471948
public function createCriteriaQueryBuilder($criterias, QueryBuilder $query)
    {
        $tag = $criterias['tag'];
        $author = $criterias['author'];
        $date = $criterias['date'];
        $blogId = $criterias['blogId'];

        if (null !== $tag) {
            $query
                ->join('post.tags', 'pt')
                ->andWhere('pt.id = :tagId')
                ->setParameter('tagId', $tag->getId())
            ;
        } elseif (null !== $author) {
            $query
                ->andWhere('post.author = :authorId')
                ->setParameter('authorId', $author->getId())
            ;
        } elseif (null !== $date) {
            $dates = explode('-', $date);
            $startDate = new \DateTime();
            $endDate = new \DateTime();

            $countDateParts = count($dates);
            if (2 === $countDateParts) {
                $startDate
                    ->setDate($dates[1], $dates[0], 1)
                    ->setTime(0, 0);
                $endDate->setTimestamp(strtotime('+1 month', $startDate->getTimestamp()));
            } elseif (2 < $countDateParts) {
                $startDate
                    ->setDate($dates[2], $dates[1], $dates[0])
                    ->setTime(0, 0);
                $endDate->setTimestamp(strtotime('+1 day', $startDate->getTimestamp()));
            } else {
                throw new \InvalidArgumentException('Invalid format for date filter argument');
            }

            $query
                ->andWhere('post.publicationDate >= :startDate')
                ->andWhere('post.publicationDate < :endDate')
                ->setParameter('startDate', $startDate)
                ->setParameter('endDate', $endDate);
        }

        $query
            ->setParameter('blogId', $blogId)
            ->orderBy('post.publicationDate', 'DESC')
        ;

        return $query;
    }
1267540
public function deleteAll(array $queryParams = [])
    {
        $response = $this->api->callbacks()->deleteAll($queryParams);

        return new BaseResponse($response);
    }
366122
public function expandQuery(QueryInterface $searchQuery, array $requestParameters = []): QueryInterface
    {
        $this->setMaxSizeToQuery($searchQuery->getSearchQuery(), 10000);

        return $searchQuery;
    }
364688
public function getByKey($key, array $queryParams = [])
    {
        $response = $this->client->get($this->uri($key), [
            'query' => $queryParams,
        ]);

        return $this->handleResponse($response);
    }
1373162
public function create($appId, $profileId, SourceBuilder $input, array $queryParams = [])
    {
        $response = $this->api->applications()->profiles()->sources()->create($appId, $profileId, $input->toArray(), $queryParams);

        return new SourceResponse($response);
    }
972312
public function deleteAll(array $queryParams = [])
    {
        $response = $this->api->quotas()->deleteAll($queryParams);

        return new BaseResponse($response);
    }
1261734
public function deleteByKey($key, array $queryParams = [])
    {
        $response = $this->api->settings()->deleteByKey($key, $queryParams);

        return new BaseResponse($response);
    }
582153
public function create($appId, $profileId, IgnoredCodeBuilder $input, array $queryParams = [])
    {
        $response = $this->api->applications()->profiles()->ignoredCodes()->create($appId, $profileId, $input->toArray(), $queryParams);

        return new IgnoredCodeResponse($response);
    }
820345
public function withQueryParams($params)
    {
        while (list($key, $value) = each($params)) {
            $this->queryParams[$key] = $value;
        }

        return $this;
    }