Create a new scan

@param int $appId
@param ScanBuilder|BaseBuilder[string] $input
@param array $queryParams
@return ScanResponse
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);
    }
194818
public function create($appId, $profileId, ValidatorBuilder $input, array $queryParams = [])
    {
        $response = $this->api->applications()->profiles()->validators()->create($appId, $profileId, $input->toArray(), $queryParams);

        return new ValidatorResponse($response);
    }
1110078
public function create(CallbackBuilder $input, array $queryParams = [])
    {
        $response = $this->api->callbacks()->create($input->toArray(), $queryParams);

        return new CallbackResponse($response);
    }
4139
public function queuePdf($appId, $scanId, array $queryParams = [])
    {
        $response = $this->client->post($this->uri($appId, $scanId, 'pdfs') . '/queues', [
            'query' => $queryParams,
        ]);

        return $this->handleResponse($response);
    }
410721
public function create(ClientBuilder $input, array $queryParams = [])
    {
        $response = $this->api->oauth2()->clients()->create($input->toArray(), $queryParams);

        return new ClientResponse($response);
    }
868272
public function getById($appId, $profileId, $sanitizerId, array $queryParams = [])
    {
        $response = $this->api->applications()->profiles()->sanitizers()->getById($appId, $profileId, $sanitizerId, $queryParams);

        return new SanitizerResponse($response);
    }
998765
public function update($orgId, OrgBuilder $input, array $queryParams = [])
    {
        $response = $this->api->orgs()->update($orgId, $input->toArray(), $queryParams);

        return new OrgResponse($response);
    }
486687
public function getAll($appId, $scanId, array $queryParams = [])
    {
        $response = $this->api
            ->applications()
            ->scans()
            ->concats()
            ->getAll($appId, $scanId, $queryParams);

        return new ConcatsResponse($response);
    }
1355652
public function create($appId, $profileId, SinkBuilder $input, array $queryParams = [])
    {
        $response = $this->api->applications()->profiles()->sinks()->create($appId, $profileId, $input->toArray(), $queryParams);

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

        return new ReviewsResponse($response);
    }
512685
public function create(OrgBuilder $input, array $queryParams = [])
    {
        $response = $this->api->orgs()->create($input->toArray(), $queryParams);

        return new OrgResponse($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);
    }
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);
    }
690384
public function getById($appId, $scanId, $classId, array $queryParams = [])
    {
        $response = $this->api
            ->applications()
            ->scans()
            ->classes()
            ->getById($appId, $scanId, $classId, $queryParams);

        return new CustomClassResponse($response);
    }
1097306
public function getById($appId, array $queryParams = [])
    {
        $response = $this->api->applications()->getById($appId, $queryParams);

        return new ApplicationResponse($response);
    }
540321
public function get($appId, $optParams = array()) {
      $params = array('appId' => $appId);
      $params = array_merge($params, $optParams);
      $data = $this->__call('get', array($params));
      if ($this->useObjects()) {
        return new App($data);
      } else {
        return $data;
      }
    }
7801
public function exportCsv($appId, $scanId, $outFile, array $queryParams = [])
    {
        $response = $this->api
            ->applications()
            ->scans()
            ->exports()
            ->exportCsv($appId, $scanId, $outFile, $queryParams);

        return new BaseResponse($response);
    }