public function update($appId, $scanId, $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();
                }
            }
            $defaultInput = false;
        }

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

        return new ScanResponse($response);
    }
public function update($appId, $scanId, $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();
                }
            }
            $defaultInput = false;
        }

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

        return new ScanResponse($response);
    }
public function update ( $ appId , $ scanId , $ 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 ( ) ; } } $ defaultInput = false ; } $ response = $ this -> api -> applications ( ) -> scans ( ) -> update ( $ appId , $ scanId , $ inputArray , $ queryParams , $ defaultInput ) ; return new ScanResponse ( $ response ) ; }
Update an existing scan by id

@param int $appId
@param int $scanId
@param ScanBuilder|BaseBuilder[string] $input
@param array $queryParams
@return ScanResponse
Update an existing scan by id