daytona_api_client 0.126.0.pre.alpha.4 → 0.134.0.alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/.openapi-generator/FILES +23 -0
  3. data/.openapi-generator-ignore +0 -2
  4. data/daytona_api_client.gemspec +1 -1
  5. data/fix-gemspec.sh +1 -1
  6. data/lib/daytona_api_client/api/admin_api.rb +325 -0
  7. data/lib/daytona_api_client/api/docker_registry_api.rb +3 -0
  8. data/lib/daytona_api_client/api/jobs_api.rb +299 -0
  9. data/lib/daytona_api_client/api/organizations_api.rb +518 -0
  10. data/lib/daytona_api_client/api/preview_api.rb +67 -0
  11. data/lib/daytona_api_client/api/regions_api.rb +9 -15
  12. data/lib/daytona_api_client/api/runners_api.rb +291 -23
  13. data/lib/daytona_api_client/api/sandbox_api.rb +277 -0
  14. data/lib/daytona_api_client/api/snapshots_api.rb +66 -0
  15. data/lib/daytona_api_client/models/admin_create_runner.rb +385 -0
  16. data/lib/daytona_api_client/models/build_info.rb +31 -4
  17. data/lib/daytona_api_client/models/create_region.rb +269 -0
  18. data/lib/daytona_api_client/models/create_region_response.rb +280 -0
  19. data/lib/daytona_api_client/models/create_runner.rb +31 -315
  20. data/lib/daytona_api_client/models/create_runner_response.rb +263 -0
  21. data/lib/daytona_api_client/models/create_snapshot.rb +14 -4
  22. data/lib/daytona_api_client/models/{create_audit_log.rb → job.rb} +166 -79
  23. data/lib/daytona_api_client/models/job_status.rb +42 -0
  24. data/lib/daytona_api_client/models/job_type.rb +49 -0
  25. data/lib/daytona_api_client/models/{paginated_snapshots_dto.rb → paginated_jobs.rb} +4 -4
  26. data/lib/daytona_api_client/models/poll_jobs_response.rb +238 -0
  27. data/lib/daytona_api_client/models/regenerate_api_key_response.rb +236 -0
  28. data/lib/daytona_api_client/models/region.rb +86 -4
  29. data/lib/daytona_api_client/models/region_type.rb +41 -0
  30. data/lib/daytona_api_client/models/runner.rb +79 -117
  31. data/lib/daytona_api_client/models/runner_full.rb +779 -0
  32. data/lib/daytona_api_client/models/runner_health_metrics.rb +533 -0
  33. data/lib/daytona_api_client/models/runner_healthcheck.rb +276 -0
  34. data/lib/daytona_api_client/models/runner_snapshot_dto.rb +0 -17
  35. data/lib/daytona_api_client/models/sandbox.rb +14 -4
  36. data/lib/daytona_api_client/models/signed_port_preview_url.rb +317 -0
  37. data/lib/daytona_api_client/models/snapshot_dto.rb +36 -4
  38. data/lib/daytona_api_client/models/snapshot_manager_credentials.rb +263 -0
  39. data/lib/daytona_api_client/models/ssh_access_dto.rb +31 -4
  40. data/lib/daytona_api_client/models/toolbox_proxy_url.rb +236 -0
  41. data/lib/daytona_api_client/models/update_job_status.rb +278 -0
  42. data/lib/daytona_api_client/models/update_region.rb +242 -0
  43. data/lib/daytona_api_client/models/update_sandbox_state_dto.rb +14 -4
  44. data/lib/daytona_api_client/models/url.rb +236 -0
  45. data/lib/daytona_api_client/models/workspace.rb +11 -1
  46. data/lib/daytona_api_client/version.rb +1 -1
  47. data/lib/daytona_api_client.rb +22 -0
  48. data/project.json +10 -4
  49. metadata +23 -5
  50. data/Gemfile +0 -9
  51. data/Gemfile.lock +0 -101
@@ -19,37 +19,31 @@ module DaytonaApiClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # List all regions
22
+ # List all shared regions
23
23
  # @param [Hash] opts the optional parameters
24
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
25
- # @option opts [Boolean] :include_shared Include shared regions
26
24
  # @return [Array<Region>]
27
- def list_regions(opts = {})
28
- data, _status_code, _headers = list_regions_with_http_info(opts)
25
+ def list_shared_regions(opts = {})
26
+ data, _status_code, _headers = list_shared_regions_with_http_info(opts)
29
27
  data
30
28
  end
31
29
 
32
- # List all regions
30
+ # List all shared regions
33
31
  # @param [Hash] opts the optional parameters
34
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
35
- # @option opts [Boolean] :include_shared Include shared regions
36
32
  # @return [Array<(Array<Region>, Integer, Hash)>] Array<Region> data, response status code and response headers
37
- def list_regions_with_http_info(opts = {})
33
+ def list_shared_regions_with_http_info(opts = {})
38
34
  if @api_client.config.debugging
39
- @api_client.config.logger.debug 'Calling API: RegionsApi.list_regions ...'
35
+ @api_client.config.logger.debug 'Calling API: RegionsApi.list_shared_regions ...'
40
36
  end
41
37
  # resource path
42
- local_var_path = '/regions'
38
+ local_var_path = '/shared-regions'
43
39
 
44
40
  # query parameters
45
41
  query_params = opts[:query_params] || {}
46
- query_params[:'includeShared'] = opts[:'include_shared'] if !opts[:'include_shared'].nil?
47
42
 
48
43
  # header parameters
49
44
  header_params = opts[:header_params] || {}
50
45
  # HTTP header 'Accept' (if needed)
51
46
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
52
- header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
53
47
 
54
48
  # form parameters
55
49
  form_params = opts[:form_params] || {}
@@ -64,7 +58,7 @@ module DaytonaApiClient
64
58
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
65
59
 
66
60
  new_options = opts.merge(
67
- :operation => :"RegionsApi.list_regions",
61
+ :operation => :"RegionsApi.list_shared_regions",
68
62
  :header_params => header_params,
69
63
  :query_params => query_params,
70
64
  :form_params => form_params,
@@ -75,7 +69,7 @@ module DaytonaApiClient
75
69
 
76
70
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
77
71
  if @api_client.config.debugging
78
- @api_client.config.logger.debug "API called: RegionsApi#list_regions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
72
+ @api_client.config.logger.debug "API called: RegionsApi#list_shared_regions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
79
73
  end
80
74
  return data, status_code, headers
81
75
  end
@@ -22,16 +22,18 @@ module DaytonaApiClient
22
22
  # Create runner
23
23
  # @param create_runner [CreateRunner]
24
24
  # @param [Hash] opts the optional parameters
25
- # @return [nil]
25
+ # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
26
+ # @return [CreateRunnerResponse]
26
27
  def create_runner(create_runner, opts = {})
27
- create_runner_with_http_info(create_runner, opts)
28
- nil
28
+ data, _status_code, _headers = create_runner_with_http_info(create_runner, opts)
29
+ data
29
30
  end
30
31
 
31
32
  # Create runner
32
33
  # @param create_runner [CreateRunner]
33
34
  # @param [Hash] opts the optional parameters
34
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
35
+ # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
36
+ # @return [Array<(CreateRunnerResponse, Integer, Hash)>] CreateRunnerResponse data, response status code and response headers
35
37
  def create_runner_with_http_info(create_runner, opts = {})
36
38
  if @api_client.config.debugging
37
39
  @api_client.config.logger.debug 'Calling API: RunnersApi.create_runner ...'
@@ -48,11 +50,14 @@ module DaytonaApiClient
48
50
 
49
51
  # header parameters
50
52
  header_params = opts[:header_params] || {}
53
+ # HTTP header 'Accept' (if needed)
54
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
51
55
  # HTTP header 'Content-Type'
52
56
  content_type = @api_client.select_header_content_type(['application/json'])
53
57
  if !content_type.nil?
54
58
  header_params['Content-Type'] = content_type
55
59
  end
60
+ header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
56
61
 
57
62
  # form parameters
58
63
  form_params = opts[:form_params] || {}
@@ -61,7 +66,7 @@ module DaytonaApiClient
61
66
  post_body = opts[:debug_body] || @api_client.object_to_http_body(create_runner)
62
67
 
63
68
  # return_type
64
- return_type = opts[:debug_return_type]
69
+ return_type = opts[:debug_return_type] || 'CreateRunnerResponse'
65
70
 
66
71
  # auth_names
67
72
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
@@ -83,9 +88,71 @@ module DaytonaApiClient
83
88
  return data, status_code, headers
84
89
  end
85
90
 
91
+ # Delete runner
92
+ # @param id [String] Runner ID
93
+ # @param [Hash] opts the optional parameters
94
+ # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
95
+ # @return [nil]
96
+ def delete_runner(id, opts = {})
97
+ delete_runner_with_http_info(id, opts)
98
+ nil
99
+ end
100
+
101
+ # Delete runner
102
+ # @param id [String] Runner ID
103
+ # @param [Hash] opts the optional parameters
104
+ # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
105
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
106
+ def delete_runner_with_http_info(id, opts = {})
107
+ if @api_client.config.debugging
108
+ @api_client.config.logger.debug 'Calling API: RunnersApi.delete_runner ...'
109
+ end
110
+ # verify the required parameter 'id' is set
111
+ if @api_client.config.client_side_validation && id.nil?
112
+ fail ArgumentError, "Missing the required parameter 'id' when calling RunnersApi.delete_runner"
113
+ end
114
+ # resource path
115
+ local_var_path = '/runners/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
116
+
117
+ # query parameters
118
+ query_params = opts[:query_params] || {}
119
+
120
+ # header parameters
121
+ header_params = opts[:header_params] || {}
122
+ header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
123
+
124
+ # form parameters
125
+ form_params = opts[:form_params] || {}
126
+
127
+ # http body (model)
128
+ post_body = opts[:debug_body]
129
+
130
+ # return_type
131
+ return_type = opts[:debug_return_type]
132
+
133
+ # auth_names
134
+ auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
135
+
136
+ new_options = opts.merge(
137
+ :operation => :"RunnersApi.delete_runner",
138
+ :header_params => header_params,
139
+ :query_params => query_params,
140
+ :form_params => form_params,
141
+ :body => post_body,
142
+ :auth_names => auth_names,
143
+ :return_type => return_type
144
+ )
145
+
146
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
147
+ if @api_client.config.debugging
148
+ @api_client.config.logger.debug "API called: RunnersApi#delete_runner\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
149
+ end
150
+ return data, status_code, headers
151
+ end
152
+
86
153
  # Get info for authenticated runner
87
154
  # @param [Hash] opts the optional parameters
88
- # @return [Runner]
155
+ # @return [RunnerFull]
89
156
  def get_info_for_authenticated_runner(opts = {})
90
157
  data, _status_code, _headers = get_info_for_authenticated_runner_with_http_info(opts)
91
158
  data
@@ -93,7 +160,7 @@ module DaytonaApiClient
93
160
 
94
161
  # Get info for authenticated runner
95
162
  # @param [Hash] opts the optional parameters
96
- # @return [Array<(Runner, Integer, Hash)>] Runner data, response status code and response headers
163
+ # @return [Array<(RunnerFull, Integer, Hash)>] RunnerFull data, response status code and response headers
97
164
  def get_info_for_authenticated_runner_with_http_info(opts = {})
98
165
  if @api_client.config.debugging
99
166
  @api_client.config.logger.debug 'Calling API: RunnersApi.get_info_for_authenticated_runner ...'
@@ -116,7 +183,7 @@ module DaytonaApiClient
116
183
  post_body = opts[:debug_body]
117
184
 
118
185
  # return_type
119
- return_type = opts[:debug_return_type] || 'Runner'
186
+ return_type = opts[:debug_return_type] || 'RunnerFull'
120
187
 
121
188
  # auth_names
122
189
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
@@ -138,10 +205,74 @@ module DaytonaApiClient
138
205
  return data, status_code, headers
139
206
  end
140
207
 
208
+ # Get runner by ID
209
+ # @param id [String] Runner ID
210
+ # @param [Hash] opts the optional parameters
211
+ # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
212
+ # @return [Runner]
213
+ def get_runner_by_id(id, opts = {})
214
+ data, _status_code, _headers = get_runner_by_id_with_http_info(id, opts)
215
+ data
216
+ end
217
+
218
+ # Get runner by ID
219
+ # @param id [String] Runner ID
220
+ # @param [Hash] opts the optional parameters
221
+ # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
222
+ # @return [Array<(Runner, Integer, Hash)>] Runner data, response status code and response headers
223
+ def get_runner_by_id_with_http_info(id, opts = {})
224
+ if @api_client.config.debugging
225
+ @api_client.config.logger.debug 'Calling API: RunnersApi.get_runner_by_id ...'
226
+ end
227
+ # verify the required parameter 'id' is set
228
+ if @api_client.config.client_side_validation && id.nil?
229
+ fail ArgumentError, "Missing the required parameter 'id' when calling RunnersApi.get_runner_by_id"
230
+ end
231
+ # resource path
232
+ local_var_path = '/runners/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
233
+
234
+ # query parameters
235
+ query_params = opts[:query_params] || {}
236
+
237
+ # header parameters
238
+ header_params = opts[:header_params] || {}
239
+ # HTTP header 'Accept' (if needed)
240
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
241
+ header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
242
+
243
+ # form parameters
244
+ form_params = opts[:form_params] || {}
245
+
246
+ # http body (model)
247
+ post_body = opts[:debug_body]
248
+
249
+ # return_type
250
+ return_type = opts[:debug_return_type] || 'Runner'
251
+
252
+ # auth_names
253
+ auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
254
+
255
+ new_options = opts.merge(
256
+ :operation => :"RunnersApi.get_runner_by_id",
257
+ :header_params => header_params,
258
+ :query_params => query_params,
259
+ :form_params => form_params,
260
+ :body => post_body,
261
+ :auth_names => auth_names,
262
+ :return_type => return_type
263
+ )
264
+
265
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
266
+ if @api_client.config.debugging
267
+ @api_client.config.logger.debug "API called: RunnersApi#get_runner_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
268
+ end
269
+ return data, status_code, headers
270
+ end
271
+
141
272
  # Get runner by sandbox ID
142
273
  # @param sandbox_id [String]
143
274
  # @param [Hash] opts the optional parameters
144
- # @return [Runner]
275
+ # @return [RunnerFull]
145
276
  def get_runner_by_sandbox_id(sandbox_id, opts = {})
146
277
  data, _status_code, _headers = get_runner_by_sandbox_id_with_http_info(sandbox_id, opts)
147
278
  data
@@ -150,7 +281,7 @@ module DaytonaApiClient
150
281
  # Get runner by sandbox ID
151
282
  # @param sandbox_id [String]
152
283
  # @param [Hash] opts the optional parameters
153
- # @return [Array<(Runner, Integer, Hash)>] Runner data, response status code and response headers
284
+ # @return [Array<(RunnerFull, Integer, Hash)>] RunnerFull data, response status code and response headers
154
285
  def get_runner_by_sandbox_id_with_http_info(sandbox_id, opts = {})
155
286
  if @api_client.config.debugging
156
287
  @api_client.config.logger.debug 'Calling API: RunnersApi.get_runner_by_sandbox_id ...'
@@ -177,7 +308,7 @@ module DaytonaApiClient
177
308
  post_body = opts[:debug_body]
178
309
 
179
310
  # return_type
180
- return_type = opts[:debug_return_type] || 'Runner'
311
+ return_type = opts[:debug_return_type] || 'RunnerFull'
181
312
 
182
313
  # auth_names
183
314
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
@@ -199,6 +330,67 @@ module DaytonaApiClient
199
330
  return data, status_code, headers
200
331
  end
201
332
 
333
+ # Get runner by ID
334
+ # @param id [String] Runner ID
335
+ # @param [Hash] opts the optional parameters
336
+ # @return [RunnerFull]
337
+ def get_runner_full_by_id(id, opts = {})
338
+ data, _status_code, _headers = get_runner_full_by_id_with_http_info(id, opts)
339
+ data
340
+ end
341
+
342
+ # Get runner by ID
343
+ # @param id [String] Runner ID
344
+ # @param [Hash] opts the optional parameters
345
+ # @return [Array<(RunnerFull, Integer, Hash)>] RunnerFull data, response status code and response headers
346
+ def get_runner_full_by_id_with_http_info(id, opts = {})
347
+ if @api_client.config.debugging
348
+ @api_client.config.logger.debug 'Calling API: RunnersApi.get_runner_full_by_id ...'
349
+ end
350
+ # verify the required parameter 'id' is set
351
+ if @api_client.config.client_side_validation && id.nil?
352
+ fail ArgumentError, "Missing the required parameter 'id' when calling RunnersApi.get_runner_full_by_id"
353
+ end
354
+ # resource path
355
+ local_var_path = '/runners/{id}/full'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
356
+
357
+ # query parameters
358
+ query_params = opts[:query_params] || {}
359
+
360
+ # header parameters
361
+ header_params = opts[:header_params] || {}
362
+ # HTTP header 'Accept' (if needed)
363
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
364
+
365
+ # form parameters
366
+ form_params = opts[:form_params] || {}
367
+
368
+ # http body (model)
369
+ post_body = opts[:debug_body]
370
+
371
+ # return_type
372
+ return_type = opts[:debug_return_type] || 'RunnerFull'
373
+
374
+ # auth_names
375
+ auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
376
+
377
+ new_options = opts.merge(
378
+ :operation => :"RunnersApi.get_runner_full_by_id",
379
+ :header_params => header_params,
380
+ :query_params => query_params,
381
+ :form_params => form_params,
382
+ :body => post_body,
383
+ :auth_names => auth_names,
384
+ :return_type => return_type
385
+ )
386
+
387
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
388
+ if @api_client.config.debugging
389
+ @api_client.config.logger.debug "API called: RunnersApi#get_runner_full_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
390
+ end
391
+ return data, status_code, headers
392
+ end
393
+
202
394
  # Get runners by snapshot ref
203
395
  # @param ref [String] Snapshot ref
204
396
  # @param [Hash] opts the optional parameters
@@ -263,15 +455,17 @@ module DaytonaApiClient
263
455
 
264
456
  # List all runners
265
457
  # @param [Hash] opts the optional parameters
266
- # @return [nil]
458
+ # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
459
+ # @return [Array<Runner>]
267
460
  def list_runners(opts = {})
268
- list_runners_with_http_info(opts)
269
- nil
461
+ data, _status_code, _headers = list_runners_with_http_info(opts)
462
+ data
270
463
  end
271
464
 
272
465
  # List all runners
273
466
  # @param [Hash] opts the optional parameters
274
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
467
+ # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
468
+ # @return [Array<(Array<Runner>, Integer, Hash)>] Array<Runner> data, response status code and response headers
275
469
  def list_runners_with_http_info(opts = {})
276
470
  if @api_client.config.debugging
277
471
  @api_client.config.logger.debug 'Calling API: RunnersApi.list_runners ...'
@@ -284,6 +478,9 @@ module DaytonaApiClient
284
478
 
285
479
  # header parameters
286
480
  header_params = opts[:header_params] || {}
481
+ # HTTP header 'Accept' (if needed)
482
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
483
+ header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
287
484
 
288
485
  # form parameters
289
486
  form_params = opts[:form_params] || {}
@@ -292,7 +489,7 @@ module DaytonaApiClient
292
489
  post_body = opts[:debug_body]
293
490
 
294
491
  # return_type
295
- return_type = opts[:debug_return_type]
492
+ return_type = opts[:debug_return_type] || 'Array<Runner>'
296
493
 
297
494
  # auth_names
298
495
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
@@ -314,19 +511,87 @@ module DaytonaApiClient
314
511
  return data, status_code, headers
315
512
  end
316
513
 
317
- # Update runner scheduling status
318
- # @param id [String]
514
+ # Runner healthcheck
515
+ # Endpoint for version 2 runners to send healthcheck and metrics. Updates lastChecked timestamp and runner metrics.
516
+ # @param runner_healthcheck [RunnerHealthcheck]
319
517
  # @param [Hash] opts the optional parameters
320
518
  # @return [nil]
321
- def update_runner_scheduling(id, opts = {})
322
- update_runner_scheduling_with_http_info(id, opts)
519
+ def runner_healthcheck(runner_healthcheck, opts = {})
520
+ runner_healthcheck_with_http_info(runner_healthcheck, opts)
323
521
  nil
324
522
  end
325
523
 
326
- # Update runner scheduling status
327
- # @param id [String]
524
+ # Runner healthcheck
525
+ # Endpoint for version 2 runners to send healthcheck and metrics. Updates lastChecked timestamp and runner metrics.
526
+ # @param runner_healthcheck [RunnerHealthcheck]
328
527
  # @param [Hash] opts the optional parameters
329
528
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
529
+ def runner_healthcheck_with_http_info(runner_healthcheck, opts = {})
530
+ if @api_client.config.debugging
531
+ @api_client.config.logger.debug 'Calling API: RunnersApi.runner_healthcheck ...'
532
+ end
533
+ # verify the required parameter 'runner_healthcheck' is set
534
+ if @api_client.config.client_side_validation && runner_healthcheck.nil?
535
+ fail ArgumentError, "Missing the required parameter 'runner_healthcheck' when calling RunnersApi.runner_healthcheck"
536
+ end
537
+ # resource path
538
+ local_var_path = '/runners/healthcheck'
539
+
540
+ # query parameters
541
+ query_params = opts[:query_params] || {}
542
+
543
+ # header parameters
544
+ header_params = opts[:header_params] || {}
545
+ # HTTP header 'Content-Type'
546
+ content_type = @api_client.select_header_content_type(['application/json'])
547
+ if !content_type.nil?
548
+ header_params['Content-Type'] = content_type
549
+ end
550
+
551
+ # form parameters
552
+ form_params = opts[:form_params] || {}
553
+
554
+ # http body (model)
555
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(runner_healthcheck)
556
+
557
+ # return_type
558
+ return_type = opts[:debug_return_type]
559
+
560
+ # auth_names
561
+ auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
562
+
563
+ new_options = opts.merge(
564
+ :operation => :"RunnersApi.runner_healthcheck",
565
+ :header_params => header_params,
566
+ :query_params => query_params,
567
+ :form_params => form_params,
568
+ :body => post_body,
569
+ :auth_names => auth_names,
570
+ :return_type => return_type
571
+ )
572
+
573
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
574
+ if @api_client.config.debugging
575
+ @api_client.config.logger.debug "API called: RunnersApi#runner_healthcheck\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
576
+ end
577
+ return data, status_code, headers
578
+ end
579
+
580
+ # Update runner scheduling status
581
+ # @param id [String] Runner ID
582
+ # @param [Hash] opts the optional parameters
583
+ # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
584
+ # @return [Runner]
585
+ def update_runner_scheduling(id, opts = {})
586
+ data, _status_code, _headers = update_runner_scheduling_with_http_info(id, opts)
587
+ data
588
+ end
589
+
590
+ # Update runner scheduling status
591
+ # @param id [String] Runner ID
592
+ # @param [Hash] opts the optional parameters
593
+ # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
594
+ # @return [Array<(Runner, Integer, Hash)>] Runner data, response status code and response headers
330
595
  def update_runner_scheduling_with_http_info(id, opts = {})
331
596
  if @api_client.config.debugging
332
597
  @api_client.config.logger.debug 'Calling API: RunnersApi.update_runner_scheduling ...'
@@ -343,6 +608,9 @@ module DaytonaApiClient
343
608
 
344
609
  # header parameters
345
610
  header_params = opts[:header_params] || {}
611
+ # HTTP header 'Accept' (if needed)
612
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
613
+ header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
346
614
 
347
615
  # form parameters
348
616
  form_params = opts[:form_params] || {}
@@ -351,7 +619,7 @@ module DaytonaApiClient
351
619
  post_body = opts[:debug_body]
352
620
 
353
621
  # return_type
354
- return_type = opts[:debug_return_type]
622
+ return_type = opts[:debug_return_type] || 'Runner'
355
623
 
356
624
  # auth_names
357
625
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']