daytona_api_client 0.134.0.alpha.1 → 1.0.0

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 (77) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +9 -0
  3. data/Gemfile.lock +101 -0
  4. data/daytona_api_client.gemspec +2 -2
  5. data/lib/daytona_api_client/api/audit_api.rb +66 -18
  6. data/lib/daytona_api_client/api/docker_registry_api.rb +0 -3
  7. data/lib/daytona_api_client/api/organizations_api.rb +29 -754
  8. data/lib/daytona_api_client/api/preview_api.rb +5 -74
  9. data/lib/daytona_api_client/api/runners_api.rb +20 -343
  10. data/lib/daytona_api_client/api/sandbox_api.rb +194 -558
  11. data/lib/daytona_api_client/api/snapshots_api.rb +0 -66
  12. data/lib/daytona_api_client/api/toolbox_api.rb +711 -711
  13. data/lib/daytona_api_client/api/workspace_api.rb +3 -3
  14. data/lib/daytona_api_client/models/build_info.rb +4 -31
  15. data/lib/daytona_api_client/models/{job.rb → create_audit_log.rb} +79 -166
  16. data/lib/daytona_api_client/models/create_organization.rb +4 -31
  17. data/lib/daytona_api_client/models/create_runner.rb +315 -31
  18. data/lib/daytona_api_client/models/create_sandbox.rb +1 -11
  19. data/lib/daytona_api_client/models/create_snapshot.rb +4 -14
  20. data/lib/daytona_api_client/models/create_user.rb +1 -10
  21. data/lib/daytona_api_client/models/daytona_configuration.rb +4 -41
  22. data/lib/daytona_api_client/models/organization.rb +85 -53
  23. data/lib/daytona_api_client/models/organization_usage_overview.rb +146 -18
  24. data/lib/daytona_api_client/models/paginated_audit_logs.rb +4 -14
  25. data/lib/daytona_api_client/models/{paginated_jobs.rb → paginated_snapshots_dto.rb} +4 -4
  26. data/lib/daytona_api_client/models/port_preview_url.rb +14 -31
  27. data/lib/daytona_api_client/models/region.rb +4 -178
  28. data/lib/daytona_api_client/models/runner.rb +117 -79
  29. data/lib/daytona_api_client/models/runner_snapshot_dto.rb +17 -0
  30. data/lib/daytona_api_client/models/sandbox.rb +14 -51
  31. data/lib/daytona_api_client/models/sandbox_volume.rb +4 -14
  32. data/lib/daytona_api_client/models/snapshot_dto.rb +4 -36
  33. data/lib/daytona_api_client/models/snapshot_state.rb +4 -1
  34. data/lib/daytona_api_client/models/ssh_access_dto.rb +4 -31
  35. data/lib/daytona_api_client/models/ssh_access_validation_dto.rb +24 -4
  36. data/lib/daytona_api_client/models/update_organization_quota.rb +41 -41
  37. data/lib/daytona_api_client/models/update_sandbox_state_dto.rb +4 -24
  38. data/lib/daytona_api_client/models/workspace.rb +35 -45
  39. data/lib/daytona_api_client/version.rb +1 -1
  40. data/lib/daytona_api_client.rb +1 -30
  41. data/project.json +6 -34
  42. metadata +5 -38
  43. data/.gitignore +0 -39
  44. data/.openapi-generator/FILES +0 -194
  45. data/.openapi-generator/VERSION +0 -1
  46. data/.openapi-generator-ignore +0 -31
  47. data/.rspec +0 -2
  48. data/.rubocop.yml +0 -148
  49. data/fix-gemspec.sh +0 -11
  50. data/lib/daytona_api_client/api/admin_api.rb +0 -325
  51. data/lib/daytona_api_client/api/jobs_api.rb +0 -299
  52. data/lib/daytona_api_client/api/regions_api.rb +0 -77
  53. data/lib/daytona_api_client/models/admin_create_runner.rb +0 -385
  54. data/lib/daytona_api_client/models/create_region.rb +0 -269
  55. data/lib/daytona_api_client/models/create_region_response.rb +0 -280
  56. data/lib/daytona_api_client/models/create_runner_response.rb +0 -263
  57. data/lib/daytona_api_client/models/job_status.rb +0 -42
  58. data/lib/daytona_api_client/models/job_type.rb +0 -49
  59. data/lib/daytona_api_client/models/poll_jobs_response.rb +0 -238
  60. data/lib/daytona_api_client/models/rate_limit_config.rb +0 -249
  61. data/lib/daytona_api_client/models/rate_limit_entry.rb +0 -229
  62. data/lib/daytona_api_client/models/regenerate_api_key_response.rb +0 -236
  63. data/lib/daytona_api_client/models/region_quota.rb +0 -339
  64. data/lib/daytona_api_client/models/region_type.rb +0 -41
  65. data/lib/daytona_api_client/models/region_usage_overview.rb +0 -391
  66. data/lib/daytona_api_client/models/runner_full.rb +0 -779
  67. data/lib/daytona_api_client/models/runner_health_metrics.rb +0 -533
  68. data/lib/daytona_api_client/models/runner_healthcheck.rb +0 -276
  69. data/lib/daytona_api_client/models/signed_port_preview_url.rb +0 -317
  70. data/lib/daytona_api_client/models/snapshot_manager_credentials.rb +0 -263
  71. data/lib/daytona_api_client/models/toolbox_proxy_url.rb +0 -236
  72. data/lib/daytona_api_client/models/update_job_status.rb +0 -278
  73. data/lib/daytona_api_client/models/update_organization_default_region.rb +0 -236
  74. data/lib/daytona_api_client/models/update_organization_region_quota.rb +0 -245
  75. data/lib/daytona_api_client/models/update_region.rb +0 -242
  76. data/lib/daytona_api_client/models/url.rb +0 -236
  77. data/lib/daytona_api_client/models/workspace_port_preview_url.rb +0 -263
@@ -19,86 +19,19 @@ module DaytonaApiClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Get sandbox ID from signed preview URL token
23
- # @param signed_preview_token [String] Signed preview URL token
24
- # @param port [Float] Port number to get sandbox ID from signed preview URL token
25
- # @param [Hash] opts the optional parameters
26
- # @return [String]
27
- def get_sandbox_id_from_signed_preview_url_token(signed_preview_token, port, opts = {})
28
- data, _status_code, _headers = get_sandbox_id_from_signed_preview_url_token_with_http_info(signed_preview_token, port, opts)
29
- data
30
- end
31
-
32
- # Get sandbox ID from signed preview URL token
33
- # @param signed_preview_token [String] Signed preview URL token
34
- # @param port [Float] Port number to get sandbox ID from signed preview URL token
35
- # @param [Hash] opts the optional parameters
36
- # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
37
- def get_sandbox_id_from_signed_preview_url_token_with_http_info(signed_preview_token, port, opts = {})
38
- if @api_client.config.debugging
39
- @api_client.config.logger.debug 'Calling API: PreviewApi.get_sandbox_id_from_signed_preview_url_token ...'
40
- end
41
- # verify the required parameter 'signed_preview_token' is set
42
- if @api_client.config.client_side_validation && signed_preview_token.nil?
43
- fail ArgumentError, "Missing the required parameter 'signed_preview_token' when calling PreviewApi.get_sandbox_id_from_signed_preview_url_token"
44
- end
45
- # verify the required parameter 'port' is set
46
- if @api_client.config.client_side_validation && port.nil?
47
- fail ArgumentError, "Missing the required parameter 'port' when calling PreviewApi.get_sandbox_id_from_signed_preview_url_token"
48
- end
49
- # resource path
50
- local_var_path = '/preview/{signedPreviewToken}/{port}/sandbox-id'.sub('{' + 'signedPreviewToken' + '}', CGI.escape(signed_preview_token.to_s)).sub('{' + 'port' + '}', CGI.escape(port.to_s))
51
-
52
- # query parameters
53
- query_params = opts[:query_params] || {}
54
-
55
- # header parameters
56
- header_params = opts[:header_params] || {}
57
- # HTTP header 'Accept' (if needed)
58
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
59
-
60
- # form parameters
61
- form_params = opts[:form_params] || {}
62
-
63
- # http body (model)
64
- post_body = opts[:debug_body]
65
-
66
- # return_type
67
- return_type = opts[:debug_return_type] || 'String'
68
-
69
- # auth_names
70
- auth_names = opts[:debug_auth_names] || []
71
-
72
- new_options = opts.merge(
73
- :operation => :"PreviewApi.get_sandbox_id_from_signed_preview_url_token",
74
- :header_params => header_params,
75
- :query_params => query_params,
76
- :form_params => form_params,
77
- :body => post_body,
78
- :auth_names => auth_names,
79
- :return_type => return_type
80
- )
81
-
82
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
83
- if @api_client.config.debugging
84
- @api_client.config.logger.debug "API called: PreviewApi#get_sandbox_id_from_signed_preview_url_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
85
- end
86
- return data, status_code, headers
87
- end
88
-
89
22
  # Check if user has access to the sandbox
90
23
  # @param sandbox_id [String]
91
24
  # @param [Hash] opts the optional parameters
92
- # @return [Boolean]
25
+ # @return [nil]
93
26
  def has_sandbox_access(sandbox_id, opts = {})
94
- data, _status_code, _headers = has_sandbox_access_with_http_info(sandbox_id, opts)
95
- data
27
+ has_sandbox_access_with_http_info(sandbox_id, opts)
28
+ nil
96
29
  end
97
30
 
98
31
  # Check if user has access to the sandbox
99
32
  # @param sandbox_id [String]
100
33
  # @param [Hash] opts the optional parameters
101
- # @return [Array<(Boolean, Integer, Hash)>] Boolean data, response status code and response headers
34
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
102
35
  def has_sandbox_access_with_http_info(sandbox_id, opts = {})
103
36
  if @api_client.config.debugging
104
37
  @api_client.config.logger.debug 'Calling API: PreviewApi.has_sandbox_access ...'
@@ -115,8 +48,6 @@ module DaytonaApiClient
115
48
 
116
49
  # header parameters
117
50
  header_params = opts[:header_params] || {}
118
- # HTTP header 'Accept' (if needed)
119
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
120
51
 
121
52
  # form parameters
122
53
  form_params = opts[:form_params] || {}
@@ -125,7 +56,7 @@ module DaytonaApiClient
125
56
  post_body = opts[:debug_body]
126
57
 
127
58
  # return_type
128
- return_type = opts[:debug_return_type] || 'Boolean'
59
+ return_type = opts[:debug_return_type]
129
60
 
130
61
  # auth_names
131
62
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
@@ -22,18 +22,16 @@ module DaytonaApiClient
22
22
  # Create runner
23
23
  # @param create_runner [CreateRunner]
24
24
  # @param [Hash] opts the optional parameters
25
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
26
- # @return [CreateRunnerResponse]
25
+ # @return [nil]
27
26
  def create_runner(create_runner, opts = {})
28
- data, _status_code, _headers = create_runner_with_http_info(create_runner, opts)
29
- data
27
+ create_runner_with_http_info(create_runner, opts)
28
+ nil
30
29
  end
31
30
 
32
31
  # Create runner
33
32
  # @param create_runner [CreateRunner]
34
33
  # @param [Hash] opts the optional parameters
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
34
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
37
35
  def create_runner_with_http_info(create_runner, opts = {})
38
36
  if @api_client.config.debugging
39
37
  @api_client.config.logger.debug 'Calling API: RunnersApi.create_runner ...'
@@ -50,14 +48,11 @@ module DaytonaApiClient
50
48
 
51
49
  # header parameters
52
50
  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']
55
51
  # HTTP header 'Content-Type'
56
52
  content_type = @api_client.select_header_content_type(['application/json'])
57
53
  if !content_type.nil?
58
54
  header_params['Content-Type'] = content_type
59
55
  end
60
- header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
61
56
 
62
57
  # form parameters
63
58
  form_params = opts[:form_params] || {}
@@ -66,7 +61,7 @@ module DaytonaApiClient
66
61
  post_body = opts[:debug_body] || @api_client.object_to_http_body(create_runner)
67
62
 
68
63
  # return_type
69
- return_type = opts[:debug_return_type] || 'CreateRunnerResponse'
64
+ return_type = opts[:debug_return_type]
70
65
 
71
66
  # auth_names
72
67
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
@@ -88,191 +83,10 @@ module DaytonaApiClient
88
83
  return data, status_code, headers
89
84
  end
90
85
 
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
-
153
- # Get info for authenticated runner
154
- # @param [Hash] opts the optional parameters
155
- # @return [RunnerFull]
156
- def get_info_for_authenticated_runner(opts = {})
157
- data, _status_code, _headers = get_info_for_authenticated_runner_with_http_info(opts)
158
- data
159
- end
160
-
161
- # Get info for authenticated runner
162
- # @param [Hash] opts the optional parameters
163
- # @return [Array<(RunnerFull, Integer, Hash)>] RunnerFull data, response status code and response headers
164
- def get_info_for_authenticated_runner_with_http_info(opts = {})
165
- if @api_client.config.debugging
166
- @api_client.config.logger.debug 'Calling API: RunnersApi.get_info_for_authenticated_runner ...'
167
- end
168
- # resource path
169
- local_var_path = '/runners/me'
170
-
171
- # query parameters
172
- query_params = opts[:query_params] || {}
173
-
174
- # header parameters
175
- header_params = opts[:header_params] || {}
176
- # HTTP header 'Accept' (if needed)
177
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
178
-
179
- # form parameters
180
- form_params = opts[:form_params] || {}
181
-
182
- # http body (model)
183
- post_body = opts[:debug_body]
184
-
185
- # return_type
186
- return_type = opts[:debug_return_type] || 'RunnerFull'
187
-
188
- # auth_names
189
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
190
-
191
- new_options = opts.merge(
192
- :operation => :"RunnersApi.get_info_for_authenticated_runner",
193
- :header_params => header_params,
194
- :query_params => query_params,
195
- :form_params => form_params,
196
- :body => post_body,
197
- :auth_names => auth_names,
198
- :return_type => return_type
199
- )
200
-
201
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
202
- if @api_client.config.debugging
203
- @api_client.config.logger.debug "API called: RunnersApi#get_info_for_authenticated_runner\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
204
- end
205
- return data, status_code, headers
206
- end
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
-
272
86
  # Get runner by sandbox ID
273
87
  # @param sandbox_id [String]
274
88
  # @param [Hash] opts the optional parameters
275
- # @return [RunnerFull]
89
+ # @return [Runner]
276
90
  def get_runner_by_sandbox_id(sandbox_id, opts = {})
277
91
  data, _status_code, _headers = get_runner_by_sandbox_id_with_http_info(sandbox_id, opts)
278
92
  data
@@ -281,7 +95,7 @@ module DaytonaApiClient
281
95
  # Get runner by sandbox ID
282
96
  # @param sandbox_id [String]
283
97
  # @param [Hash] opts the optional parameters
284
- # @return [Array<(RunnerFull, Integer, Hash)>] RunnerFull data, response status code and response headers
98
+ # @return [Array<(Runner, Integer, Hash)>] Runner data, response status code and response headers
285
99
  def get_runner_by_sandbox_id_with_http_info(sandbox_id, opts = {})
286
100
  if @api_client.config.debugging
287
101
  @api_client.config.logger.debug 'Calling API: RunnersApi.get_runner_by_sandbox_id ...'
@@ -308,7 +122,7 @@ module DaytonaApiClient
308
122
  post_body = opts[:debug_body]
309
123
 
310
124
  # return_type
311
- return_type = opts[:debug_return_type] || 'RunnerFull'
125
+ return_type = opts[:debug_return_type] || 'Runner'
312
126
 
313
127
  # auth_names
314
128
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
@@ -330,67 +144,6 @@ module DaytonaApiClient
330
144
  return data, status_code, headers
331
145
  end
332
146
 
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
-
394
147
  # Get runners by snapshot ref
395
148
  # @param ref [String] Snapshot ref
396
149
  # @param [Hash] opts the optional parameters
@@ -455,17 +208,15 @@ module DaytonaApiClient
455
208
 
456
209
  # List all runners
457
210
  # @param [Hash] opts the optional parameters
458
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
459
- # @return [Array<Runner>]
211
+ # @return [nil]
460
212
  def list_runners(opts = {})
461
- data, _status_code, _headers = list_runners_with_http_info(opts)
462
- data
213
+ list_runners_with_http_info(opts)
214
+ nil
463
215
  end
464
216
 
465
217
  # List all runners
466
218
  # @param [Hash] opts the optional parameters
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
219
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
469
220
  def list_runners_with_http_info(opts = {})
470
221
  if @api_client.config.debugging
471
222
  @api_client.config.logger.debug 'Calling API: RunnersApi.list_runners ...'
@@ -478,9 +229,6 @@ module DaytonaApiClient
478
229
 
479
230
  # header parameters
480
231
  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?
484
232
 
485
233
  # form parameters
486
234
  form_params = opts[:form_params] || {}
@@ -489,7 +237,7 @@ module DaytonaApiClient
489
237
  post_body = opts[:debug_body]
490
238
 
491
239
  # return_type
492
- return_type = opts[:debug_return_type] || 'Array<Runner>'
240
+ return_type = opts[:debug_return_type]
493
241
 
494
242
  # auth_names
495
243
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
@@ -511,87 +259,19 @@ module DaytonaApiClient
511
259
  return data, status_code, headers
512
260
  end
513
261
 
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]
517
- # @param [Hash] opts the optional parameters
518
- # @return [nil]
519
- def runner_healthcheck(runner_healthcheck, opts = {})
520
- runner_healthcheck_with_http_info(runner_healthcheck, opts)
521
- nil
522
- end
523
-
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]
527
- # @param [Hash] opts the optional parameters
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
262
  # Update runner scheduling status
581
- # @param id [String] Runner ID
263
+ # @param id [String]
582
264
  # @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]
265
+ # @return [nil]
585
266
  def update_runner_scheduling(id, opts = {})
586
- data, _status_code, _headers = update_runner_scheduling_with_http_info(id, opts)
587
- data
267
+ update_runner_scheduling_with_http_info(id, opts)
268
+ nil
588
269
  end
589
270
 
590
271
  # Update runner scheduling status
591
- # @param id [String] Runner ID
272
+ # @param id [String]
592
273
  # @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
274
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
595
275
  def update_runner_scheduling_with_http_info(id, opts = {})
596
276
  if @api_client.config.debugging
597
277
  @api_client.config.logger.debug 'Calling API: RunnersApi.update_runner_scheduling ...'
@@ -608,9 +288,6 @@ module DaytonaApiClient
608
288
 
609
289
  # header parameters
610
290
  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?
614
291
 
615
292
  # form parameters
616
293
  form_params = opts[:form_params] || {}
@@ -619,7 +296,7 @@ module DaytonaApiClient
619
296
  post_body = opts[:debug_body]
620
297
 
621
298
  # return_type
622
- return_type = opts[:debug_return_type] || 'Runner'
299
+ return_type = opts[:debug_return_type]
623
300
 
624
301
  # auth_names
625
302
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']