@@ -72,7 +72,7 @@ type JobListResponse struct {
72
72
73
73
// JobService handles communication with job related methods of IntelOwl API.
74
74
//
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
76
76
type JobService struct {
77
77
client * IntelOwlClient
78
78
}
@@ -81,7 +81,7 @@ type JobService struct {
81
81
//
82
82
// Endpoint: GET /api/jobs
83
83
//
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
85
85
func (jobService * JobService ) List (ctx context.Context ) (* JobListResponse , error ) {
86
86
requestUrl := jobService .client .options .Url + constants .BASE_JOB_URL
87
87
contentType := "application/json"
@@ -107,7 +107,7 @@ func (jobService *JobService) List(ctx context.Context) (*JobListResponse, error
107
107
//
108
108
// Endpoint: GET /api/jobs/{jobID}
109
109
//
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
111
111
func (jobService * JobService ) Get (ctx context.Context , jobId uint64 ) (* Job , error ) {
112
112
route := jobService .client .options .Url + constants .SPECIFIC_JOB_URL
113
113
requestUrl := fmt .Sprintf (route , jobId )
@@ -133,7 +133,7 @@ func (jobService *JobService) Get(ctx context.Context, jobId uint64) (*Job, erro
133
133
//
134
134
// Endpoint: GET /api/jobs/{jobID}/download_sample
135
135
//
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
137
137
func (jobService * JobService ) DownloadSample (ctx context.Context , jobId uint64 ) ([]byte , error ) {
138
138
route := jobService .client .options .Url + constants .DOWNLOAD_SAMPLE_JOB_URL
139
139
requestUrl := fmt .Sprintf (route , jobId )
@@ -154,7 +154,7 @@ func (jobService *JobService) DownloadSample(ctx context.Context, jobId uint64)
154
154
//
155
155
// Endpoint: DELETE /api/jobs/{jobID}
156
156
//
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
158
158
func (jobService * JobService ) Delete (ctx context.Context , jobId uint64 ) (bool , error ) {
159
159
route := jobService .client .options .Url + constants .SPECIFIC_JOB_URL
160
160
requestUrl := fmt .Sprintf (route , jobId )
@@ -178,7 +178,7 @@ func (jobService *JobService) Delete(ctx context.Context, jobId uint64) (bool, e
178
178
//
179
179
// Endpoint: PATCH /api/jobs/{jobID}/kill
180
180
//
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
182
182
func (jobService * JobService ) Kill (ctx context.Context , jobId uint64 ) (bool , error ) {
183
183
route := jobService .client .options .Url + constants .KILL_JOB_URL
184
184
requestUrl := fmt .Sprintf (route , jobId )
@@ -202,7 +202,7 @@ func (jobService *JobService) Kill(ctx context.Context, jobId uint64) (bool, err
202
202
//
203
203
// Endpoint: PATCH /api/jobs/{jobID}/analyzer/{nameOfAnalyzer}/kill
204
204
//
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
206
206
func (jobService * JobService ) KillAnalyzer (ctx context.Context , jobId uint64 , analyzerName string ) (bool , error ) {
207
207
route := jobService .client .options .Url + constants .KILL_ANALYZER_JOB_URL
208
208
requestUrl := fmt .Sprintf (route , jobId , analyzerName )
@@ -226,7 +226,7 @@ func (jobService *JobService) KillAnalyzer(ctx context.Context, jobId uint64, an
226
226
//
227
227
// Endpoint: PATCH /api/jobs/{jobID}/analyzer/{nameOfAnalyzer}/retry
228
228
//
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
230
230
func (jobService * JobService ) RetryAnalyzer (ctx context.Context , jobId uint64 , analyzerName string ) (bool , error ) {
231
231
route := jobService .client .options .Url + constants .RETRY_ANALYZER_JOB_URL
232
232
requestUrl := fmt .Sprintf (route , jobId , analyzerName )
@@ -250,7 +250,7 @@ func (jobService *JobService) RetryAnalyzer(ctx context.Context, jobId uint64, a
250
250
//
251
251
// Endpoint: PATCH /api/jobs/{jobID}/connector/{nameOfConnector}/kill
252
252
//
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
254
254
func (jobService * JobService ) KillConnector (ctx context.Context , jobId uint64 , connectorName string ) (bool , error ) {
255
255
route := jobService .client .options .Url + constants .KILL_CONNECTOR_JOB_URL
256
256
requestUrl := fmt .Sprintf (route , jobId , connectorName )
@@ -274,7 +274,7 @@ func (jobService *JobService) KillConnector(ctx context.Context, jobId uint64, c
274
274
//
275
275
// Endpoint: PATCH /api/jobs/{jobID}/connector/{nameOfConnector}/retry
276
276
//
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
278
278
func (jobService * JobService ) RetryConnector (ctx context.Context , jobId uint64 , connectorName string ) (bool , error ) {
279
279
route := jobService .client .options .Url + constants .RETRY_CONNECTOR_JOB_URL
280
280
requestUrl := fmt .Sprintf (route , jobId , connectorName )
0 commit comments