Create a comment for an issue

@param int $appId
@param int $scanId
@param int $issueId
@param CommentBuilder $input
@param array $queryParams
@return CommentResponse
329076
public function create($appId, $scanId, $issueId, CommentBuilder $input, array $queryParams = [])
    {
        $response = $this->api
            ->applications()
            ->scans()
            ->issues()
            ->comments()
            ->create($appId, $scanId, $issueId, $input->toArray(), $queryParams);

        return new CommentResponse($response);
    }
856438
protected function uri($appId, $scanId, $issueId = null, $reviewId = null)
    {
        if (is_null($issueId)) {
            return "/applications/{$appId}/scans/{$scanId}/issues/reviews/batches";
        }

        return is_null($reviewId)
            ? "/applications/{$appId}/scans/{$scanId}/issues/{$issueId}/reviews"
            : "/applications/{$appId}/scans/{$scanId}/issues/{$issueId}/reviews/{$reviewId}";
    }
1133278
public function getById($appId, $scanId, $processId, array $queryParams = [])
    {
        $response = $this->api
            ->applications()
            ->scans()
            ->processes()
            ->getById($appId, $scanId, $processId, $queryParams);

        return new ProcessResponse($response);
    }
242584
public function getById($appId, $scanId, $entrypointId, array $queryParams = [])
    {
        $response = $this->api
            ->applications()
            ->scans()
            ->entrypoints()
            ->getById($appId, $scanId, $entrypointId, $queryParams);

        return new EntrypointResponse($response);
    }
534550
public function delete($appId, $scanId, array $queryParams = [])
    {
        $response = $this->api
            ->applications()
            ->scans()
            ->files()
            ->delete($appId, $scanId, $queryParams);

        return new BaseResponse($response);
    }
242227
public function create(LogBuilder $input, array $queryParams = [])
    {
        $response = $this->api->logs()->create($input->toArray(), $queryParams);

        return new LogResponse($response);
    }
1105885
public function getAll($appId, $scanId, $issueId, array $queryParams = [])
    {
        $response = $this->api
            ->applications()
            ->scans()
            ->issues()
            ->comments()->getAll($appId, $scanId, $issueId, $queryParams);

        return new CommentsResponse($response);
    }
497093
public function create($appId, $filename, $filepath, array $queryParams = [])
    {
        $response = $this->client->post($this->uri($appId), [
            'multipart' => [
                [
                    'name' => 'upload[file]',
                    'contents' => fopen($filepath, 'r'),
                    'filename' => $filename,
                ],
            ],
            'query' => $queryParams,
        ]);

        return $this->handleResponse($response);
    }
194057
public function getAll($appId, $scanId, array $queryParams = [])
    {
        $response = $this->api
            ->applications()
            ->scans()
            ->files()
            ->getAll($appId, $scanId, $queryParams);

        return new FilesResponse($response);
    }
297427
public function createOrUpdate($key, array $input, array $queryParams = [])
    {
        $response = $this->client->put($this->uri($key), [
            RequestOptions::JSON => ['setting' => $input],
            'query' => $queryParams,
        ]);

        return $this->handleResponse($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);
    }
1372307
public function getById($appId, $scanId, $issueId, $reviewId, array $queryParams = [])
    {
        $response = $this->api
            ->applications()
            ->scans()
            ->issues()
            ->reviews()
            ->getById($appId, $scanId, $issueId, $reviewId, $queryParams);

        return new ReviewResponse($response);
    }
94335
public function updateComment($issue, $commentId, $body, $visibilityType = null, $visibilityName = null, $expand = false)
    {
        $path = "/issue/{$issue}/comment/{$commentId}" . ($expand ? '?expand' : '');

        $data = array(
            'body' => $body
        );

        if ($visibilityType !== null && $visibilityName !== null) {
            $data['visibility'] = array(
                'type' => $visibilityType,
                'value' => $visibilityName
            );
        }

        try {
            $result = $this->client->callPut($path, $data);

            return new Comment($this->client, $result->getData());
        } catch (Exception $e) {
            throw new JiraException("Failed to update comment", $e);
        }
    }
230842
public function getAll($appId, $scanId, array $queryParams = [])
    {
        $response = $this->api
            ->applications()
            ->scans()
            ->libraries()
            ->getAll($appId, $scanId, $queryParams);

        return new LibrariesResponse($response);
    }
1049143
public function getById($appId, $scanId, $issueId, $patchId, array $queryParams = [])
    {
        $response = $this->api
            ->applications()
            ->scans()
            ->issues()
            ->patches()
            ->getById($appId, $scanId, $issueId, $patchId, $queryParams);

        return new PatchResponse($response);
    }
615961
public function create($appId, $profileId, SanitizerBuilder $input, array $queryParams = [])
    {
        $response = $this->api->applications()->profiles()->sanitizers()->create($appId, $profileId, $input->toArray(), $queryParams);

        return new SanitizerResponse($response);
    }
469881
public function getById($appId, $profileId, $ignoreId, array $queryParams = [])
    {
        $response = $this->api->applications()->profiles()->ignoredCodes()->getById($appId, $profileId, $ignoreId, $queryParams);

        return new IgnoredCodeResponse($response);
    }