@@ -72,7 +72,7 @@ type JobListResponse struct {
7272
7373// JobService handles communication with job related methods of IntelOwl API.
7474//
75- // IntelOwl REST API docs: https://intelowl.readthedocs .io/en/latest/Redoc.html #tag/jobs
75+ // IntelOwl REST API docs: https://intelowlproject.github .io/docs/IntelOwl/api_docs/ #tag/jobs
7676type JobService struct {
7777 client * IntelOwlClient
7878}
@@ -81,7 +81,7 @@ type JobService struct {
8181//
8282// Endpoint: GET /api/jobs
8383//
84- // IntelOwl REST API docs: https://intelowl.readthedocs .io/en/latest/Redoc.html #tag/jobs/operation/jobs_list
84+ // IntelOwl REST API docs: https://intelowlproject.github .io/docs/IntelOwl/api_docs/ #tag/jobs/operation/jobs_list
8585func (jobService * JobService ) List (ctx context.Context ) (* JobListResponse , error ) {
8686 requestUrl := jobService .client .options .Url + constants .BASE_JOB_URL
8787 contentType := "application/json"
@@ -107,7 +107,7 @@ func (jobService *JobService) List(ctx context.Context) (*JobListResponse, error
107107//
108108// Endpoint: GET /api/jobs/{jobID}
109109//
110- // IntelOwl REST API docs: https://intelowl.readthedocs .io/en/latest/Redoc.html #tag/jobs/operation/jobs_retrieve
110+ // IntelOwl REST API docs: https://intelowlproject.github .io/docs/IntelOwl/api_docs/ #tag/jobs/operation/jobs_retrieve
111111func (jobService * JobService ) Get (ctx context.Context , jobId uint64 ) (* Job , error ) {
112112 route := jobService .client .options .Url + constants .SPECIFIC_JOB_URL
113113 requestUrl := fmt .Sprintf (route , jobId )
@@ -133,7 +133,7 @@ func (jobService *JobService) Get(ctx context.Context, jobId uint64) (*Job, erro
133133//
134134// Endpoint: GET /api/jobs/{jobID}/download_sample
135135//
136- // IntelOwl REST API docs: https://intelowl.readthedocs .io/en/latest/Redoc.html #tag/jobs/operation/jobs_download_sample_retrieve
136+ // IntelOwl REST API docs: https://intelowlproject.github .io/docs/IntelOwl/api_docs/ #tag/jobs/operation/jobs_download_sample_retrieve
137137func (jobService * JobService ) DownloadSample (ctx context.Context , jobId uint64 ) ([]byte , error ) {
138138 route := jobService .client .options .Url + constants .DOWNLOAD_SAMPLE_JOB_URL
139139 requestUrl := fmt .Sprintf (route , jobId )
@@ -154,7 +154,7 @@ func (jobService *JobService) DownloadSample(ctx context.Context, jobId uint64)
154154//
155155// Endpoint: DELETE /api/jobs/{jobID}
156156//
157- // IntelOwl REST API docs: https://intelowl.readthedocs .io/en/latest/Redoc.html #tag/jobs/operation/jobs_destroy
157+ // IntelOwl REST API docs: https://intelowlproject.github .io/docs/IntelOwl/api_docs/ #tag/jobs/operation/jobs_destroy
158158func (jobService * JobService ) Delete (ctx context.Context , jobId uint64 ) (bool , error ) {
159159 route := jobService .client .options .Url + constants .SPECIFIC_JOB_URL
160160 requestUrl := fmt .Sprintf (route , jobId )
@@ -178,7 +178,7 @@ func (jobService *JobService) Delete(ctx context.Context, jobId uint64) (bool, e
178178//
179179// Endpoint: PATCH /api/jobs/{jobID}/kill
180180//
181- // IntelOwl REST API docs: https://intelowl.readthedocs .io/en/latest/Redoc.html #tag/jobs/operation/jobs_kill_partial_update
181+ // IntelOwl REST API docs: https://intelowlproject.github .io/docs/IntelOwl/api_docs/ #tag/jobs/operation/jobs_kill_partial_update
182182func (jobService * JobService ) Kill (ctx context.Context , jobId uint64 ) (bool , error ) {
183183 route := jobService .client .options .Url + constants .KILL_JOB_URL
184184 requestUrl := fmt .Sprintf (route , jobId )
@@ -202,7 +202,7 @@ func (jobService *JobService) Kill(ctx context.Context, jobId uint64) (bool, err
202202//
203203// Endpoint: PATCH /api/jobs/{jobID}/analyzer/{nameOfAnalyzer}/kill
204204//
205- // IntelOwl REST API docs: https://intelowl.readthedocs .io/en/latest/Redoc.html #tag/jobs/operation/jobs_analyzer_kill_partial_update
205+ // IntelOwl REST API docs: https://intelowlproject.github .io/docs/IntelOwl/api_docs/ #tag/jobs/operation/jobs_analyzer_kill_partial_update
206206func (jobService * JobService ) KillAnalyzer (ctx context.Context , jobId uint64 , analyzerName string ) (bool , error ) {
207207 route := jobService .client .options .Url + constants .KILL_ANALYZER_JOB_URL
208208 requestUrl := fmt .Sprintf (route , jobId , analyzerName )
@@ -226,7 +226,7 @@ func (jobService *JobService) KillAnalyzer(ctx context.Context, jobId uint64, an
226226//
227227// Endpoint: PATCH /api/jobs/{jobID}/analyzer/{nameOfAnalyzer}/retry
228228//
229- // IntelOwl REST API docs: https://intelowl.readthedocs .io/en/latest/Redoc.html #tag/jobs/operation/jobs_analyzer_retry_partial_update
229+ // IntelOwl REST API docs: https://intelowlproject.github .io/docs/IntelOwl/api_docs/ #tag/jobs/operation/jobs_analyzer_retry_partial_update
230230func (jobService * JobService ) RetryAnalyzer (ctx context.Context , jobId uint64 , analyzerName string ) (bool , error ) {
231231 route := jobService .client .options .Url + constants .RETRY_ANALYZER_JOB_URL
232232 requestUrl := fmt .Sprintf (route , jobId , analyzerName )
@@ -250,7 +250,7 @@ func (jobService *JobService) RetryAnalyzer(ctx context.Context, jobId uint64, a
250250//
251251// Endpoint: PATCH /api/jobs/{jobID}/connector/{nameOfConnector}/kill
252252//
253- // IntelOwl REST API docs: https://intelowl.readthedocs .io/en/latest/Redoc.html #tag/jobs/operation/jobs_connector_kill_partial_update
253+ // IntelOwl REST API docs: https://intelowlproject.github .io/docs/IntelOwl/api_docs/ #tag/jobs/operation/jobs_connector_kill_partial_update
254254func (jobService * JobService ) KillConnector (ctx context.Context , jobId uint64 , connectorName string ) (bool , error ) {
255255 route := jobService .client .options .Url + constants .KILL_CONNECTOR_JOB_URL
256256 requestUrl := fmt .Sprintf (route , jobId , connectorName )
@@ -274,7 +274,7 @@ func (jobService *JobService) KillConnector(ctx context.Context, jobId uint64, c
274274//
275275// Endpoint: PATCH /api/jobs/{jobID}/connector/{nameOfConnector}/retry
276276//
277- // IntelOwl REST API docs: https://intelowl.readthedocs .io/en/latest/Redoc.html #tag/jobs/operation/jobs_connector_retry_partial_update
277+ // IntelOwl REST API docs: https://intelowlproject.github .io/docs/IntelOwl/api_docs/ #tag/jobs/operation/jobs_connector_retry_partial_update
278278func (jobService * JobService ) RetryConnector (ctx context.Context , jobId uint64 , connectorName string ) (bool , error ) {
279279 route := jobService .client .options .Url + constants .RETRY_CONNECTOR_JOB_URL
280280 requestUrl := fmt .Sprintf (route , jobId , connectorName )
0 commit comments