daytona_api_client 0.126.0.pre.alpha.5 → 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.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/daytona_api_client.gemspec +2 -2
- data/lib/daytona_api_client/api/audit_api.rb +66 -18
- data/lib/daytona_api_client/api/organizations_api.rb +12 -219
- data/lib/daytona_api_client/api/preview_api.rb +5 -7
- data/lib/daytona_api_client/api/runners_api.rb +0 -55
- data/lib/daytona_api_client/api/sandbox_api.rb +222 -309
- data/lib/daytona_api_client/api/toolbox_api.rb +711 -711
- data/lib/daytona_api_client/api/workspace_api.rb +3 -3
- data/lib/daytona_api_client/models/create_organization.rb +4 -31
- data/lib/daytona_api_client/models/create_sandbox.rb +1 -11
- data/lib/daytona_api_client/models/create_user.rb +1 -10
- data/lib/daytona_api_client/models/daytona_configuration.rb +4 -41
- data/lib/daytona_api_client/models/organization.rb +85 -53
- data/lib/daytona_api_client/models/organization_usage_overview.rb +146 -18
- data/lib/daytona_api_client/models/paginated_audit_logs.rb +4 -14
- data/lib/daytona_api_client/models/port_preview_url.rb +14 -31
- data/lib/daytona_api_client/models/region.rb +4 -96
- data/lib/daytona_api_client/models/sandbox.rb +11 -38
- data/lib/daytona_api_client/models/sandbox_volume.rb +4 -14
- data/lib/daytona_api_client/models/snapshot_state.rb +4 -1
- data/lib/daytona_api_client/models/ssh_access_validation_dto.rb +24 -4
- data/lib/daytona_api_client/models/update_organization_quota.rb +41 -41
- data/lib/daytona_api_client/models/update_sandbox_state_dto.rb +4 -14
- data/lib/daytona_api_client/models/workspace.rb +38 -38
- data/lib/daytona_api_client/version.rb +1 -1
- data/lib/daytona_api_client.rb +1 -8
- data/project.json +7 -29
- metadata +1 -16
- data/.gitignore +0 -39
- data/.openapi-generator/FILES +0 -171
- data/.openapi-generator/VERSION +0 -1
- data/.openapi-generator-ignore +0 -33
- data/.rspec +0 -2
- data/.rubocop.yml +0 -148
- data/fix-gemspec.sh +0 -11
- data/lib/daytona_api_client/api/regions_api.rb +0 -83
- data/lib/daytona_api_client/models/rate_limit_config.rb +0 -249
- data/lib/daytona_api_client/models/rate_limit_entry.rb +0 -229
- data/lib/daytona_api_client/models/region_quota.rb +0 -339
- data/lib/daytona_api_client/models/region_usage_overview.rb +0 -391
- data/lib/daytona_api_client/models/update_organization_default_region.rb +0 -236
- data/lib/daytona_api_client/models/update_organization_region_quota.rb +0 -245
- data/lib/daytona_api_client/models/workspace_port_preview_url.rb +0 -263
|
@@ -19,36 +19,36 @@ module DaytonaApiClient
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
-
#
|
|
22
|
+
# Click mouse
|
|
23
23
|
# Click mouse at specified coordinates
|
|
24
24
|
# @param sandbox_id [String]
|
|
25
25
|
# @param mouse_click_request [MouseClickRequest]
|
|
26
26
|
# @param [Hash] opts the optional parameters
|
|
27
27
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
28
28
|
# @return [MouseClickResponse]
|
|
29
|
-
def
|
|
30
|
-
data, _status_code, _headers =
|
|
29
|
+
def click_mouse(sandbox_id, mouse_click_request, opts = {})
|
|
30
|
+
data, _status_code, _headers = click_mouse_with_http_info(sandbox_id, mouse_click_request, opts)
|
|
31
31
|
data
|
|
32
32
|
end
|
|
33
33
|
|
|
34
|
-
#
|
|
34
|
+
# Click mouse
|
|
35
35
|
# Click mouse at specified coordinates
|
|
36
36
|
# @param sandbox_id [String]
|
|
37
37
|
# @param mouse_click_request [MouseClickRequest]
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
|
39
39
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
40
40
|
# @return [Array<(MouseClickResponse, Integer, Hash)>] MouseClickResponse data, response status code and response headers
|
|
41
|
-
def
|
|
41
|
+
def click_mouse_with_http_info(sandbox_id, mouse_click_request, opts = {})
|
|
42
42
|
if @api_client.config.debugging
|
|
43
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
43
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.click_mouse ...'
|
|
44
44
|
end
|
|
45
45
|
# verify the required parameter 'sandbox_id' is set
|
|
46
46
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
47
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
47
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.click_mouse"
|
|
48
48
|
end
|
|
49
49
|
# verify the required parameter 'mouse_click_request' is set
|
|
50
50
|
if @api_client.config.client_side_validation && mouse_click_request.nil?
|
|
51
|
-
fail ArgumentError, "Missing the required parameter 'mouse_click_request' when calling ToolboxApi.
|
|
51
|
+
fail ArgumentError, "Missing the required parameter 'mouse_click_request' when calling ToolboxApi.click_mouse"
|
|
52
52
|
end
|
|
53
53
|
# resource path
|
|
54
54
|
local_var_path = '/toolbox/{sandboxId}/toolbox/computeruse/mouse/click'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -80,7 +80,7 @@ module DaytonaApiClient
|
|
|
80
80
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
81
81
|
|
|
82
82
|
new_options = opts.merge(
|
|
83
|
-
:operation => :"ToolboxApi.
|
|
83
|
+
:operation => :"ToolboxApi.click_mouse",
|
|
84
84
|
:header_params => header_params,
|
|
85
85
|
:query_params => query_params,
|
|
86
86
|
:form_params => form_params,
|
|
@@ -91,12 +91,12 @@ module DaytonaApiClient
|
|
|
91
91
|
|
|
92
92
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
93
93
|
if @api_client.config.debugging
|
|
94
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
94
|
+
@api_client.config.logger.debug "API called: ToolboxApi#click_mouse\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
95
95
|
end
|
|
96
96
|
return data, status_code, headers
|
|
97
97
|
end
|
|
98
98
|
|
|
99
|
-
#
|
|
99
|
+
# Create folder
|
|
100
100
|
# Create folder inside sandbox
|
|
101
101
|
# @param sandbox_id [String]
|
|
102
102
|
# @param path [String]
|
|
@@ -104,12 +104,12 @@ module DaytonaApiClient
|
|
|
104
104
|
# @param [Hash] opts the optional parameters
|
|
105
105
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
106
106
|
# @return [nil]
|
|
107
|
-
def
|
|
108
|
-
|
|
107
|
+
def create_folder(sandbox_id, path, mode, opts = {})
|
|
108
|
+
create_folder_with_http_info(sandbox_id, path, mode, opts)
|
|
109
109
|
nil
|
|
110
110
|
end
|
|
111
111
|
|
|
112
|
-
#
|
|
112
|
+
# Create folder
|
|
113
113
|
# Create folder inside sandbox
|
|
114
114
|
# @param sandbox_id [String]
|
|
115
115
|
# @param path [String]
|
|
@@ -117,21 +117,21 @@ module DaytonaApiClient
|
|
|
117
117
|
# @param [Hash] opts the optional parameters
|
|
118
118
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
119
119
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
120
|
-
def
|
|
120
|
+
def create_folder_with_http_info(sandbox_id, path, mode, opts = {})
|
|
121
121
|
if @api_client.config.debugging
|
|
122
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
122
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.create_folder ...'
|
|
123
123
|
end
|
|
124
124
|
# verify the required parameter 'sandbox_id' is set
|
|
125
125
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
126
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
126
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.create_folder"
|
|
127
127
|
end
|
|
128
128
|
# verify the required parameter 'path' is set
|
|
129
129
|
if @api_client.config.client_side_validation && path.nil?
|
|
130
|
-
fail ArgumentError, "Missing the required parameter 'path' when calling ToolboxApi.
|
|
130
|
+
fail ArgumentError, "Missing the required parameter 'path' when calling ToolboxApi.create_folder"
|
|
131
131
|
end
|
|
132
132
|
# verify the required parameter 'mode' is set
|
|
133
133
|
if @api_client.config.client_side_validation && mode.nil?
|
|
134
|
-
fail ArgumentError, "Missing the required parameter 'mode' when calling ToolboxApi.
|
|
134
|
+
fail ArgumentError, "Missing the required parameter 'mode' when calling ToolboxApi.create_folder"
|
|
135
135
|
end
|
|
136
136
|
# resource path
|
|
137
137
|
local_var_path = '/toolbox/{sandboxId}/toolbox/files/folder'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -158,7 +158,7 @@ module DaytonaApiClient
|
|
|
158
158
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
159
159
|
|
|
160
160
|
new_options = opts.merge(
|
|
161
|
-
:operation => :"ToolboxApi.
|
|
161
|
+
:operation => :"ToolboxApi.create_folder",
|
|
162
162
|
:header_params => header_params,
|
|
163
163
|
:query_params => query_params,
|
|
164
164
|
:form_params => form_params,
|
|
@@ -169,41 +169,41 @@ module DaytonaApiClient
|
|
|
169
169
|
|
|
170
170
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
171
171
|
if @api_client.config.debugging
|
|
172
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
172
|
+
@api_client.config.logger.debug "API called: ToolboxApi#create_folder\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
173
173
|
end
|
|
174
174
|
return data, status_code, headers
|
|
175
175
|
end
|
|
176
176
|
|
|
177
|
-
#
|
|
177
|
+
# Create PTY session
|
|
178
178
|
# Create a new PTY session in the sandbox
|
|
179
179
|
# @param sandbox_id [String]
|
|
180
180
|
# @param pty_create_request [PtyCreateRequest]
|
|
181
181
|
# @param [Hash] opts the optional parameters
|
|
182
182
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
183
183
|
# @return [PtyCreateResponse]
|
|
184
|
-
def
|
|
185
|
-
data, _status_code, _headers =
|
|
184
|
+
def create_pty_session(sandbox_id, pty_create_request, opts = {})
|
|
185
|
+
data, _status_code, _headers = create_pty_session_with_http_info(sandbox_id, pty_create_request, opts)
|
|
186
186
|
data
|
|
187
187
|
end
|
|
188
188
|
|
|
189
|
-
#
|
|
189
|
+
# Create PTY session
|
|
190
190
|
# Create a new PTY session in the sandbox
|
|
191
191
|
# @param sandbox_id [String]
|
|
192
192
|
# @param pty_create_request [PtyCreateRequest]
|
|
193
193
|
# @param [Hash] opts the optional parameters
|
|
194
194
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
195
195
|
# @return [Array<(PtyCreateResponse, Integer, Hash)>] PtyCreateResponse data, response status code and response headers
|
|
196
|
-
def
|
|
196
|
+
def create_pty_session_with_http_info(sandbox_id, pty_create_request, opts = {})
|
|
197
197
|
if @api_client.config.debugging
|
|
198
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
198
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.create_pty_session ...'
|
|
199
199
|
end
|
|
200
200
|
# verify the required parameter 'sandbox_id' is set
|
|
201
201
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
202
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
202
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.create_pty_session"
|
|
203
203
|
end
|
|
204
204
|
# verify the required parameter 'pty_create_request' is set
|
|
205
205
|
if @api_client.config.client_side_validation && pty_create_request.nil?
|
|
206
|
-
fail ArgumentError, "Missing the required parameter 'pty_create_request' when calling ToolboxApi.
|
|
206
|
+
fail ArgumentError, "Missing the required parameter 'pty_create_request' when calling ToolboxApi.create_pty_session"
|
|
207
207
|
end
|
|
208
208
|
# resource path
|
|
209
209
|
local_var_path = '/toolbox/{sandboxId}/toolbox/process/pty'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -235,7 +235,7 @@ module DaytonaApiClient
|
|
|
235
235
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
236
236
|
|
|
237
237
|
new_options = opts.merge(
|
|
238
|
-
:operation => :"ToolboxApi.
|
|
238
|
+
:operation => :"ToolboxApi.create_pty_session",
|
|
239
239
|
:header_params => header_params,
|
|
240
240
|
:query_params => query_params,
|
|
241
241
|
:form_params => form_params,
|
|
@@ -246,41 +246,41 @@ module DaytonaApiClient
|
|
|
246
246
|
|
|
247
247
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
248
248
|
if @api_client.config.debugging
|
|
249
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
249
|
+
@api_client.config.logger.debug "API called: ToolboxApi#create_pty_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
250
250
|
end
|
|
251
251
|
return data, status_code, headers
|
|
252
252
|
end
|
|
253
253
|
|
|
254
|
-
#
|
|
254
|
+
# Create session
|
|
255
255
|
# Create a new session in the sandbox
|
|
256
256
|
# @param sandbox_id [String]
|
|
257
257
|
# @param create_session_request [CreateSessionRequest]
|
|
258
258
|
# @param [Hash] opts the optional parameters
|
|
259
259
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
260
260
|
# @return [nil]
|
|
261
|
-
def
|
|
262
|
-
|
|
261
|
+
def create_session(sandbox_id, create_session_request, opts = {})
|
|
262
|
+
create_session_with_http_info(sandbox_id, create_session_request, opts)
|
|
263
263
|
nil
|
|
264
264
|
end
|
|
265
265
|
|
|
266
|
-
#
|
|
266
|
+
# Create session
|
|
267
267
|
# Create a new session in the sandbox
|
|
268
268
|
# @param sandbox_id [String]
|
|
269
269
|
# @param create_session_request [CreateSessionRequest]
|
|
270
270
|
# @param [Hash] opts the optional parameters
|
|
271
271
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
272
272
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
273
|
-
def
|
|
273
|
+
def create_session_with_http_info(sandbox_id, create_session_request, opts = {})
|
|
274
274
|
if @api_client.config.debugging
|
|
275
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
275
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.create_session ...'
|
|
276
276
|
end
|
|
277
277
|
# verify the required parameter 'sandbox_id' is set
|
|
278
278
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
279
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
279
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.create_session"
|
|
280
280
|
end
|
|
281
281
|
# verify the required parameter 'create_session_request' is set
|
|
282
282
|
if @api_client.config.client_side_validation && create_session_request.nil?
|
|
283
|
-
fail ArgumentError, "Missing the required parameter 'create_session_request' when calling ToolboxApi.
|
|
283
|
+
fail ArgumentError, "Missing the required parameter 'create_session_request' when calling ToolboxApi.create_session"
|
|
284
284
|
end
|
|
285
285
|
# resource path
|
|
286
286
|
local_var_path = '/toolbox/{sandboxId}/toolbox/process/session'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -310,7 +310,7 @@ module DaytonaApiClient
|
|
|
310
310
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
311
311
|
|
|
312
312
|
new_options = opts.merge(
|
|
313
|
-
:operation => :"ToolboxApi.
|
|
313
|
+
:operation => :"ToolboxApi.create_session",
|
|
314
314
|
:header_params => header_params,
|
|
315
315
|
:query_params => query_params,
|
|
316
316
|
:form_params => form_params,
|
|
@@ -321,12 +321,12 @@ module DaytonaApiClient
|
|
|
321
321
|
|
|
322
322
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
323
323
|
if @api_client.config.debugging
|
|
324
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
324
|
+
@api_client.config.logger.debug "API called: ToolboxApi#create_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
325
325
|
end
|
|
326
326
|
return data, status_code, headers
|
|
327
327
|
end
|
|
328
328
|
|
|
329
|
-
#
|
|
329
|
+
# Delete file
|
|
330
330
|
# Delete file inside sandbox
|
|
331
331
|
# @param sandbox_id [String]
|
|
332
332
|
# @param path [String]
|
|
@@ -334,12 +334,12 @@ module DaytonaApiClient
|
|
|
334
334
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
335
335
|
# @option opts [Boolean] :recursive
|
|
336
336
|
# @return [nil]
|
|
337
|
-
def
|
|
338
|
-
|
|
337
|
+
def delete_file(sandbox_id, path, opts = {})
|
|
338
|
+
delete_file_with_http_info(sandbox_id, path, opts)
|
|
339
339
|
nil
|
|
340
340
|
end
|
|
341
341
|
|
|
342
|
-
#
|
|
342
|
+
# Delete file
|
|
343
343
|
# Delete file inside sandbox
|
|
344
344
|
# @param sandbox_id [String]
|
|
345
345
|
# @param path [String]
|
|
@@ -347,17 +347,17 @@ module DaytonaApiClient
|
|
|
347
347
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
348
348
|
# @option opts [Boolean] :recursive
|
|
349
349
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
350
|
-
def
|
|
350
|
+
def delete_file_with_http_info(sandbox_id, path, opts = {})
|
|
351
351
|
if @api_client.config.debugging
|
|
352
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
352
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.delete_file ...'
|
|
353
353
|
end
|
|
354
354
|
# verify the required parameter 'sandbox_id' is set
|
|
355
355
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
356
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
356
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.delete_file"
|
|
357
357
|
end
|
|
358
358
|
# verify the required parameter 'path' is set
|
|
359
359
|
if @api_client.config.client_side_validation && path.nil?
|
|
360
|
-
fail ArgumentError, "Missing the required parameter 'path' when calling ToolboxApi.
|
|
360
|
+
fail ArgumentError, "Missing the required parameter 'path' when calling ToolboxApi.delete_file"
|
|
361
361
|
end
|
|
362
362
|
# resource path
|
|
363
363
|
local_var_path = '/toolbox/{sandboxId}/toolbox/files'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -384,7 +384,7 @@ module DaytonaApiClient
|
|
|
384
384
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
385
385
|
|
|
386
386
|
new_options = opts.merge(
|
|
387
|
-
:operation => :"ToolboxApi.
|
|
387
|
+
:operation => :"ToolboxApi.delete_file",
|
|
388
388
|
:header_params => header_params,
|
|
389
389
|
:query_params => query_params,
|
|
390
390
|
:form_params => form_params,
|
|
@@ -395,41 +395,41 @@ module DaytonaApiClient
|
|
|
395
395
|
|
|
396
396
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
397
397
|
if @api_client.config.debugging
|
|
398
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
398
|
+
@api_client.config.logger.debug "API called: ToolboxApi#delete_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
399
399
|
end
|
|
400
400
|
return data, status_code, headers
|
|
401
401
|
end
|
|
402
402
|
|
|
403
|
-
#
|
|
403
|
+
# Delete PTY session
|
|
404
404
|
# Delete a PTY session and terminate the associated process
|
|
405
405
|
# @param sandbox_id [String]
|
|
406
406
|
# @param session_id [String]
|
|
407
407
|
# @param [Hash] opts the optional parameters
|
|
408
408
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
409
409
|
# @return [nil]
|
|
410
|
-
def
|
|
411
|
-
|
|
410
|
+
def delete_pty_session(sandbox_id, session_id, opts = {})
|
|
411
|
+
delete_pty_session_with_http_info(sandbox_id, session_id, opts)
|
|
412
412
|
nil
|
|
413
413
|
end
|
|
414
414
|
|
|
415
|
-
#
|
|
415
|
+
# Delete PTY session
|
|
416
416
|
# Delete a PTY session and terminate the associated process
|
|
417
417
|
# @param sandbox_id [String]
|
|
418
418
|
# @param session_id [String]
|
|
419
419
|
# @param [Hash] opts the optional parameters
|
|
420
420
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
421
421
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
422
|
-
def
|
|
422
|
+
def delete_pty_session_with_http_info(sandbox_id, session_id, opts = {})
|
|
423
423
|
if @api_client.config.debugging
|
|
424
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
424
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.delete_pty_session ...'
|
|
425
425
|
end
|
|
426
426
|
# verify the required parameter 'sandbox_id' is set
|
|
427
427
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
428
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
428
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.delete_pty_session"
|
|
429
429
|
end
|
|
430
430
|
# verify the required parameter 'session_id' is set
|
|
431
431
|
if @api_client.config.client_side_validation && session_id.nil?
|
|
432
|
-
fail ArgumentError, "Missing the required parameter 'session_id' when calling ToolboxApi.
|
|
432
|
+
fail ArgumentError, "Missing the required parameter 'session_id' when calling ToolboxApi.delete_pty_session"
|
|
433
433
|
end
|
|
434
434
|
# resource path
|
|
435
435
|
local_var_path = '/toolbox/{sandboxId}/toolbox/process/pty/{sessionId}'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s)).sub('{' + 'sessionId' + '}', CGI.escape(session_id.to_s))
|
|
@@ -454,7 +454,7 @@ module DaytonaApiClient
|
|
|
454
454
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
455
455
|
|
|
456
456
|
new_options = opts.merge(
|
|
457
|
-
:operation => :"ToolboxApi.
|
|
457
|
+
:operation => :"ToolboxApi.delete_pty_session",
|
|
458
458
|
:header_params => header_params,
|
|
459
459
|
:query_params => query_params,
|
|
460
460
|
:form_params => form_params,
|
|
@@ -465,41 +465,41 @@ module DaytonaApiClient
|
|
|
465
465
|
|
|
466
466
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
467
467
|
if @api_client.config.debugging
|
|
468
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
468
|
+
@api_client.config.logger.debug "API called: ToolboxApi#delete_pty_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
469
469
|
end
|
|
470
470
|
return data, status_code, headers
|
|
471
471
|
end
|
|
472
472
|
|
|
473
|
-
#
|
|
473
|
+
# Delete session
|
|
474
474
|
# Delete a specific session
|
|
475
475
|
# @param sandbox_id [String]
|
|
476
476
|
# @param session_id [String]
|
|
477
477
|
# @param [Hash] opts the optional parameters
|
|
478
478
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
479
479
|
# @return [nil]
|
|
480
|
-
def
|
|
481
|
-
|
|
480
|
+
def delete_session(sandbox_id, session_id, opts = {})
|
|
481
|
+
delete_session_with_http_info(sandbox_id, session_id, opts)
|
|
482
482
|
nil
|
|
483
483
|
end
|
|
484
484
|
|
|
485
|
-
#
|
|
485
|
+
# Delete session
|
|
486
486
|
# Delete a specific session
|
|
487
487
|
# @param sandbox_id [String]
|
|
488
488
|
# @param session_id [String]
|
|
489
489
|
# @param [Hash] opts the optional parameters
|
|
490
490
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
491
491
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
492
|
-
def
|
|
492
|
+
def delete_session_with_http_info(sandbox_id, session_id, opts = {})
|
|
493
493
|
if @api_client.config.debugging
|
|
494
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
494
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.delete_session ...'
|
|
495
495
|
end
|
|
496
496
|
# verify the required parameter 'sandbox_id' is set
|
|
497
497
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
498
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
498
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.delete_session"
|
|
499
499
|
end
|
|
500
500
|
# verify the required parameter 'session_id' is set
|
|
501
501
|
if @api_client.config.client_side_validation && session_id.nil?
|
|
502
|
-
fail ArgumentError, "Missing the required parameter 'session_id' when calling ToolboxApi.
|
|
502
|
+
fail ArgumentError, "Missing the required parameter 'session_id' when calling ToolboxApi.delete_session"
|
|
503
503
|
end
|
|
504
504
|
# resource path
|
|
505
505
|
local_var_path = '/toolbox/{sandboxId}/toolbox/process/session/{sessionId}'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s)).sub('{' + 'sessionId' + '}', CGI.escape(session_id.to_s))
|
|
@@ -524,7 +524,7 @@ module DaytonaApiClient
|
|
|
524
524
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
525
525
|
|
|
526
526
|
new_options = opts.merge(
|
|
527
|
-
:operation => :"ToolboxApi.
|
|
527
|
+
:operation => :"ToolboxApi.delete_session",
|
|
528
528
|
:header_params => header_params,
|
|
529
529
|
:query_params => query_params,
|
|
530
530
|
:form_params => form_params,
|
|
@@ -535,41 +535,41 @@ module DaytonaApiClient
|
|
|
535
535
|
|
|
536
536
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
537
537
|
if @api_client.config.debugging
|
|
538
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
538
|
+
@api_client.config.logger.debug "API called: ToolboxApi#delete_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
539
539
|
end
|
|
540
540
|
return data, status_code, headers
|
|
541
541
|
end
|
|
542
542
|
|
|
543
|
-
#
|
|
543
|
+
# Download file
|
|
544
544
|
# Download file from sandbox
|
|
545
545
|
# @param sandbox_id [String]
|
|
546
546
|
# @param path [String]
|
|
547
547
|
# @param [Hash] opts the optional parameters
|
|
548
548
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
549
549
|
# @return [File]
|
|
550
|
-
def
|
|
551
|
-
data, _status_code, _headers =
|
|
550
|
+
def download_file(sandbox_id, path, opts = {})
|
|
551
|
+
data, _status_code, _headers = download_file_with_http_info(sandbox_id, path, opts)
|
|
552
552
|
data
|
|
553
553
|
end
|
|
554
554
|
|
|
555
|
-
#
|
|
555
|
+
# Download file
|
|
556
556
|
# Download file from sandbox
|
|
557
557
|
# @param sandbox_id [String]
|
|
558
558
|
# @param path [String]
|
|
559
559
|
# @param [Hash] opts the optional parameters
|
|
560
560
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
561
561
|
# @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
|
|
562
|
-
def
|
|
562
|
+
def download_file_with_http_info(sandbox_id, path, opts = {})
|
|
563
563
|
if @api_client.config.debugging
|
|
564
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
564
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.download_file ...'
|
|
565
565
|
end
|
|
566
566
|
# verify the required parameter 'sandbox_id' is set
|
|
567
567
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
568
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
568
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.download_file"
|
|
569
569
|
end
|
|
570
570
|
# verify the required parameter 'path' is set
|
|
571
571
|
if @api_client.config.client_side_validation && path.nil?
|
|
572
|
-
fail ArgumentError, "Missing the required parameter 'path' when calling ToolboxApi.
|
|
572
|
+
fail ArgumentError, "Missing the required parameter 'path' when calling ToolboxApi.download_file"
|
|
573
573
|
end
|
|
574
574
|
# resource path
|
|
575
575
|
local_var_path = '/toolbox/{sandboxId}/toolbox/files/download'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -597,7 +597,7 @@ module DaytonaApiClient
|
|
|
597
597
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
598
598
|
|
|
599
599
|
new_options = opts.merge(
|
|
600
|
-
:operation => :"ToolboxApi.
|
|
600
|
+
:operation => :"ToolboxApi.download_file",
|
|
601
601
|
:header_params => header_params,
|
|
602
602
|
:query_params => query_params,
|
|
603
603
|
:form_params => form_params,
|
|
@@ -608,41 +608,41 @@ module DaytonaApiClient
|
|
|
608
608
|
|
|
609
609
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
610
610
|
if @api_client.config.debugging
|
|
611
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
611
|
+
@api_client.config.logger.debug "API called: ToolboxApi#download_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
612
612
|
end
|
|
613
613
|
return data, status_code, headers
|
|
614
614
|
end
|
|
615
615
|
|
|
616
|
-
#
|
|
616
|
+
# Download multiple files
|
|
617
617
|
# Streams back a multipart/form-data bundle of the requested paths
|
|
618
618
|
# @param sandbox_id [String]
|
|
619
619
|
# @param download_files [DownloadFiles]
|
|
620
620
|
# @param [Hash] opts the optional parameters
|
|
621
621
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
622
622
|
# @return [File]
|
|
623
|
-
def
|
|
624
|
-
data, _status_code, _headers =
|
|
623
|
+
def download_files(sandbox_id, download_files, opts = {})
|
|
624
|
+
data, _status_code, _headers = download_files_with_http_info(sandbox_id, download_files, opts)
|
|
625
625
|
data
|
|
626
626
|
end
|
|
627
627
|
|
|
628
|
-
#
|
|
628
|
+
# Download multiple files
|
|
629
629
|
# Streams back a multipart/form-data bundle of the requested paths
|
|
630
630
|
# @param sandbox_id [String]
|
|
631
631
|
# @param download_files [DownloadFiles]
|
|
632
632
|
# @param [Hash] opts the optional parameters
|
|
633
633
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
634
634
|
# @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
|
|
635
|
-
def
|
|
635
|
+
def download_files_with_http_info(sandbox_id, download_files, opts = {})
|
|
636
636
|
if @api_client.config.debugging
|
|
637
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
637
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.download_files ...'
|
|
638
638
|
end
|
|
639
639
|
# verify the required parameter 'sandbox_id' is set
|
|
640
640
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
641
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
641
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.download_files"
|
|
642
642
|
end
|
|
643
643
|
# verify the required parameter 'download_files' is set
|
|
644
644
|
if @api_client.config.client_side_validation && download_files.nil?
|
|
645
|
-
fail ArgumentError, "Missing the required parameter 'download_files' when calling ToolboxApi.
|
|
645
|
+
fail ArgumentError, "Missing the required parameter 'download_files' when calling ToolboxApi.download_files"
|
|
646
646
|
end
|
|
647
647
|
# resource path
|
|
648
648
|
local_var_path = '/toolbox/{sandboxId}/toolbox/files/bulk-download'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -674,7 +674,7 @@ module DaytonaApiClient
|
|
|
674
674
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
675
675
|
|
|
676
676
|
new_options = opts.merge(
|
|
677
|
-
:operation => :"ToolboxApi.
|
|
677
|
+
:operation => :"ToolboxApi.download_files",
|
|
678
678
|
:header_params => header_params,
|
|
679
679
|
:query_params => query_params,
|
|
680
680
|
:form_params => form_params,
|
|
@@ -685,41 +685,41 @@ module DaytonaApiClient
|
|
|
685
685
|
|
|
686
686
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
687
687
|
if @api_client.config.debugging
|
|
688
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
688
|
+
@api_client.config.logger.debug "API called: ToolboxApi#download_files\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
689
689
|
end
|
|
690
690
|
return data, status_code, headers
|
|
691
691
|
end
|
|
692
692
|
|
|
693
|
-
#
|
|
693
|
+
# Drag mouse
|
|
694
694
|
# Drag mouse from start to end coordinates
|
|
695
695
|
# @param sandbox_id [String]
|
|
696
696
|
# @param mouse_drag_request [MouseDragRequest]
|
|
697
697
|
# @param [Hash] opts the optional parameters
|
|
698
698
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
699
699
|
# @return [MouseDragResponse]
|
|
700
|
-
def
|
|
701
|
-
data, _status_code, _headers =
|
|
700
|
+
def drag_mouse(sandbox_id, mouse_drag_request, opts = {})
|
|
701
|
+
data, _status_code, _headers = drag_mouse_with_http_info(sandbox_id, mouse_drag_request, opts)
|
|
702
702
|
data
|
|
703
703
|
end
|
|
704
704
|
|
|
705
|
-
#
|
|
705
|
+
# Drag mouse
|
|
706
706
|
# Drag mouse from start to end coordinates
|
|
707
707
|
# @param sandbox_id [String]
|
|
708
708
|
# @param mouse_drag_request [MouseDragRequest]
|
|
709
709
|
# @param [Hash] opts the optional parameters
|
|
710
710
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
711
711
|
# @return [Array<(MouseDragResponse, Integer, Hash)>] MouseDragResponse data, response status code and response headers
|
|
712
|
-
def
|
|
712
|
+
def drag_mouse_with_http_info(sandbox_id, mouse_drag_request, opts = {})
|
|
713
713
|
if @api_client.config.debugging
|
|
714
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
714
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.drag_mouse ...'
|
|
715
715
|
end
|
|
716
716
|
# verify the required parameter 'sandbox_id' is set
|
|
717
717
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
718
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
718
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.drag_mouse"
|
|
719
719
|
end
|
|
720
720
|
# verify the required parameter 'mouse_drag_request' is set
|
|
721
721
|
if @api_client.config.client_side_validation && mouse_drag_request.nil?
|
|
722
|
-
fail ArgumentError, "Missing the required parameter 'mouse_drag_request' when calling ToolboxApi.
|
|
722
|
+
fail ArgumentError, "Missing the required parameter 'mouse_drag_request' when calling ToolboxApi.drag_mouse"
|
|
723
723
|
end
|
|
724
724
|
# resource path
|
|
725
725
|
local_var_path = '/toolbox/{sandboxId}/toolbox/computeruse/mouse/drag'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -751,7 +751,7 @@ module DaytonaApiClient
|
|
|
751
751
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
752
752
|
|
|
753
753
|
new_options = opts.merge(
|
|
754
|
-
:operation => :"ToolboxApi.
|
|
754
|
+
:operation => :"ToolboxApi.drag_mouse",
|
|
755
755
|
:header_params => header_params,
|
|
756
756
|
:query_params => query_params,
|
|
757
757
|
:form_params => form_params,
|
|
@@ -762,41 +762,41 @@ module DaytonaApiClient
|
|
|
762
762
|
|
|
763
763
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
764
764
|
if @api_client.config.debugging
|
|
765
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
765
|
+
@api_client.config.logger.debug "API called: ToolboxApi#drag_mouse\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
766
766
|
end
|
|
767
767
|
return data, status_code, headers
|
|
768
768
|
end
|
|
769
769
|
|
|
770
|
-
#
|
|
770
|
+
# Execute command
|
|
771
771
|
# Execute command synchronously inside sandbox
|
|
772
772
|
# @param sandbox_id [String]
|
|
773
773
|
# @param execute_request [ExecuteRequest]
|
|
774
774
|
# @param [Hash] opts the optional parameters
|
|
775
775
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
776
776
|
# @return [ExecuteResponse]
|
|
777
|
-
def
|
|
778
|
-
data, _status_code, _headers =
|
|
777
|
+
def execute_command(sandbox_id, execute_request, opts = {})
|
|
778
|
+
data, _status_code, _headers = execute_command_with_http_info(sandbox_id, execute_request, opts)
|
|
779
779
|
data
|
|
780
780
|
end
|
|
781
781
|
|
|
782
|
-
#
|
|
782
|
+
# Execute command
|
|
783
783
|
# Execute command synchronously inside sandbox
|
|
784
784
|
# @param sandbox_id [String]
|
|
785
785
|
# @param execute_request [ExecuteRequest]
|
|
786
786
|
# @param [Hash] opts the optional parameters
|
|
787
787
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
788
788
|
# @return [Array<(ExecuteResponse, Integer, Hash)>] ExecuteResponse data, response status code and response headers
|
|
789
|
-
def
|
|
789
|
+
def execute_command_with_http_info(sandbox_id, execute_request, opts = {})
|
|
790
790
|
if @api_client.config.debugging
|
|
791
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
791
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.execute_command ...'
|
|
792
792
|
end
|
|
793
793
|
# verify the required parameter 'sandbox_id' is set
|
|
794
794
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
795
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
795
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.execute_command"
|
|
796
796
|
end
|
|
797
797
|
# verify the required parameter 'execute_request' is set
|
|
798
798
|
if @api_client.config.client_side_validation && execute_request.nil?
|
|
799
|
-
fail ArgumentError, "Missing the required parameter 'execute_request' when calling ToolboxApi.
|
|
799
|
+
fail ArgumentError, "Missing the required parameter 'execute_request' when calling ToolboxApi.execute_command"
|
|
800
800
|
end
|
|
801
801
|
# resource path
|
|
802
802
|
local_var_path = '/toolbox/{sandboxId}/toolbox/process/execute'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -828,7 +828,7 @@ module DaytonaApiClient
|
|
|
828
828
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
829
829
|
|
|
830
830
|
new_options = opts.merge(
|
|
831
|
-
:operation => :"ToolboxApi.
|
|
831
|
+
:operation => :"ToolboxApi.execute_command",
|
|
832
832
|
:header_params => header_params,
|
|
833
833
|
:query_params => query_params,
|
|
834
834
|
:form_params => form_params,
|
|
@@ -839,12 +839,12 @@ module DaytonaApiClient
|
|
|
839
839
|
|
|
840
840
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
841
841
|
if @api_client.config.debugging
|
|
842
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
842
|
+
@api_client.config.logger.debug "API called: ToolboxApi#execute_command\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
843
843
|
end
|
|
844
844
|
return data, status_code, headers
|
|
845
845
|
end
|
|
846
846
|
|
|
847
|
-
#
|
|
847
|
+
# Execute command in session
|
|
848
848
|
# Execute a command in a specific session
|
|
849
849
|
# @param sandbox_id [String]
|
|
850
850
|
# @param session_id [String]
|
|
@@ -852,12 +852,12 @@ module DaytonaApiClient
|
|
|
852
852
|
# @param [Hash] opts the optional parameters
|
|
853
853
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
854
854
|
# @return [SessionExecuteResponse]
|
|
855
|
-
def
|
|
856
|
-
data, _status_code, _headers =
|
|
855
|
+
def execute_session_command(sandbox_id, session_id, session_execute_request, opts = {})
|
|
856
|
+
data, _status_code, _headers = execute_session_command_with_http_info(sandbox_id, session_id, session_execute_request, opts)
|
|
857
857
|
data
|
|
858
858
|
end
|
|
859
859
|
|
|
860
|
-
#
|
|
860
|
+
# Execute command in session
|
|
861
861
|
# Execute a command in a specific session
|
|
862
862
|
# @param sandbox_id [String]
|
|
863
863
|
# @param session_id [String]
|
|
@@ -865,21 +865,21 @@ module DaytonaApiClient
|
|
|
865
865
|
# @param [Hash] opts the optional parameters
|
|
866
866
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
867
867
|
# @return [Array<(SessionExecuteResponse, Integer, Hash)>] SessionExecuteResponse data, response status code and response headers
|
|
868
|
-
def
|
|
868
|
+
def execute_session_command_with_http_info(sandbox_id, session_id, session_execute_request, opts = {})
|
|
869
869
|
if @api_client.config.debugging
|
|
870
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
870
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.execute_session_command ...'
|
|
871
871
|
end
|
|
872
872
|
# verify the required parameter 'sandbox_id' is set
|
|
873
873
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
874
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
874
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.execute_session_command"
|
|
875
875
|
end
|
|
876
876
|
# verify the required parameter 'session_id' is set
|
|
877
877
|
if @api_client.config.client_side_validation && session_id.nil?
|
|
878
|
-
fail ArgumentError, "Missing the required parameter 'session_id' when calling ToolboxApi.
|
|
878
|
+
fail ArgumentError, "Missing the required parameter 'session_id' when calling ToolboxApi.execute_session_command"
|
|
879
879
|
end
|
|
880
880
|
# verify the required parameter 'session_execute_request' is set
|
|
881
881
|
if @api_client.config.client_side_validation && session_execute_request.nil?
|
|
882
|
-
fail ArgumentError, "Missing the required parameter 'session_execute_request' when calling ToolboxApi.
|
|
882
|
+
fail ArgumentError, "Missing the required parameter 'session_execute_request' when calling ToolboxApi.execute_session_command"
|
|
883
883
|
end
|
|
884
884
|
# resource path
|
|
885
885
|
local_var_path = '/toolbox/{sandboxId}/toolbox/process/session/{sessionId}/exec'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s)).sub('{' + 'sessionId' + '}', CGI.escape(session_id.to_s))
|
|
@@ -911,7 +911,7 @@ module DaytonaApiClient
|
|
|
911
911
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
912
912
|
|
|
913
913
|
new_options = opts.merge(
|
|
914
|
-
:operation => :"ToolboxApi.
|
|
914
|
+
:operation => :"ToolboxApi.execute_session_command",
|
|
915
915
|
:header_params => header_params,
|
|
916
916
|
:query_params => query_params,
|
|
917
917
|
:form_params => form_params,
|
|
@@ -922,12 +922,12 @@ module DaytonaApiClient
|
|
|
922
922
|
|
|
923
923
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
924
924
|
if @api_client.config.debugging
|
|
925
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
925
|
+
@api_client.config.logger.debug "API called: ToolboxApi#execute_session_command\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
926
926
|
end
|
|
927
927
|
return data, status_code, headers
|
|
928
928
|
end
|
|
929
929
|
|
|
930
|
-
#
|
|
930
|
+
# Search for text/pattern in files
|
|
931
931
|
# Search for text/pattern inside sandbox files
|
|
932
932
|
# @param sandbox_id [String]
|
|
933
933
|
# @param path [String]
|
|
@@ -935,12 +935,12 @@ module DaytonaApiClient
|
|
|
935
935
|
# @param [Hash] opts the optional parameters
|
|
936
936
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
937
937
|
# @return [Array<Match>]
|
|
938
|
-
def
|
|
939
|
-
data, _status_code, _headers =
|
|
938
|
+
def find_in_files(sandbox_id, path, pattern, opts = {})
|
|
939
|
+
data, _status_code, _headers = find_in_files_with_http_info(sandbox_id, path, pattern, opts)
|
|
940
940
|
data
|
|
941
941
|
end
|
|
942
942
|
|
|
943
|
-
#
|
|
943
|
+
# Search for text/pattern in files
|
|
944
944
|
# Search for text/pattern inside sandbox files
|
|
945
945
|
# @param sandbox_id [String]
|
|
946
946
|
# @param path [String]
|
|
@@ -948,21 +948,21 @@ module DaytonaApiClient
|
|
|
948
948
|
# @param [Hash] opts the optional parameters
|
|
949
949
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
950
950
|
# @return [Array<(Array<Match>, Integer, Hash)>] Array<Match> data, response status code and response headers
|
|
951
|
-
def
|
|
951
|
+
def find_in_files_with_http_info(sandbox_id, path, pattern, opts = {})
|
|
952
952
|
if @api_client.config.debugging
|
|
953
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
953
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.find_in_files ...'
|
|
954
954
|
end
|
|
955
955
|
# verify the required parameter 'sandbox_id' is set
|
|
956
956
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
957
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
957
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.find_in_files"
|
|
958
958
|
end
|
|
959
959
|
# verify the required parameter 'path' is set
|
|
960
960
|
if @api_client.config.client_side_validation && path.nil?
|
|
961
|
-
fail ArgumentError, "Missing the required parameter 'path' when calling ToolboxApi.
|
|
961
|
+
fail ArgumentError, "Missing the required parameter 'path' when calling ToolboxApi.find_in_files"
|
|
962
962
|
end
|
|
963
963
|
# verify the required parameter 'pattern' is set
|
|
964
964
|
if @api_client.config.client_side_validation && pattern.nil?
|
|
965
|
-
fail ArgumentError, "Missing the required parameter 'pattern' when calling ToolboxApi.
|
|
965
|
+
fail ArgumentError, "Missing the required parameter 'pattern' when calling ToolboxApi.find_in_files"
|
|
966
966
|
end
|
|
967
967
|
# resource path
|
|
968
968
|
local_var_path = '/toolbox/{sandboxId}/toolbox/files/find'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -991,7 +991,7 @@ module DaytonaApiClient
|
|
|
991
991
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
992
992
|
|
|
993
993
|
new_options = opts.merge(
|
|
994
|
-
:operation => :"ToolboxApi.
|
|
994
|
+
:operation => :"ToolboxApi.find_in_files",
|
|
995
995
|
:header_params => header_params,
|
|
996
996
|
:query_params => query_params,
|
|
997
997
|
:form_params => form_params,
|
|
@@ -1002,35 +1002,35 @@ module DaytonaApiClient
|
|
|
1002
1002
|
|
|
1003
1003
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1004
1004
|
if @api_client.config.debugging
|
|
1005
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
1005
|
+
@api_client.config.logger.debug "API called: ToolboxApi#find_in_files\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1006
1006
|
end
|
|
1007
1007
|
return data, status_code, headers
|
|
1008
1008
|
end
|
|
1009
1009
|
|
|
1010
|
-
#
|
|
1010
|
+
# Get computer use status
|
|
1011
1011
|
# Get status of all VNC desktop processes
|
|
1012
1012
|
# @param sandbox_id [String]
|
|
1013
1013
|
# @param [Hash] opts the optional parameters
|
|
1014
1014
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1015
1015
|
# @return [ComputerUseStatusResponse]
|
|
1016
|
-
def
|
|
1017
|
-
data, _status_code, _headers =
|
|
1016
|
+
def get_computer_use_status(sandbox_id, opts = {})
|
|
1017
|
+
data, _status_code, _headers = get_computer_use_status_with_http_info(sandbox_id, opts)
|
|
1018
1018
|
data
|
|
1019
1019
|
end
|
|
1020
1020
|
|
|
1021
|
-
#
|
|
1021
|
+
# Get computer use status
|
|
1022
1022
|
# Get status of all VNC desktop processes
|
|
1023
1023
|
# @param sandbox_id [String]
|
|
1024
1024
|
# @param [Hash] opts the optional parameters
|
|
1025
1025
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1026
1026
|
# @return [Array<(ComputerUseStatusResponse, Integer, Hash)>] ComputerUseStatusResponse data, response status code and response headers
|
|
1027
|
-
def
|
|
1027
|
+
def get_computer_use_status_with_http_info(sandbox_id, opts = {})
|
|
1028
1028
|
if @api_client.config.debugging
|
|
1029
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
1029
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.get_computer_use_status ...'
|
|
1030
1030
|
end
|
|
1031
1031
|
# verify the required parameter 'sandbox_id' is set
|
|
1032
1032
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
1033
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
1033
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.get_computer_use_status"
|
|
1034
1034
|
end
|
|
1035
1035
|
# resource path
|
|
1036
1036
|
local_var_path = '/toolbox/{sandboxId}/toolbox/computeruse/status'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -1057,7 +1057,7 @@ module DaytonaApiClient
|
|
|
1057
1057
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1058
1058
|
|
|
1059
1059
|
new_options = opts.merge(
|
|
1060
|
-
:operation => :"ToolboxApi.
|
|
1060
|
+
:operation => :"ToolboxApi.get_computer_use_status",
|
|
1061
1061
|
:header_params => header_params,
|
|
1062
1062
|
:query_params => query_params,
|
|
1063
1063
|
:form_params => form_params,
|
|
@@ -1068,35 +1068,35 @@ module DaytonaApiClient
|
|
|
1068
1068
|
|
|
1069
1069
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1070
1070
|
if @api_client.config.debugging
|
|
1071
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
1071
|
+
@api_client.config.logger.debug "API called: ToolboxApi#get_computer_use_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1072
1072
|
end
|
|
1073
1073
|
return data, status_code, headers
|
|
1074
1074
|
end
|
|
1075
1075
|
|
|
1076
|
-
#
|
|
1076
|
+
# Get display info
|
|
1077
1077
|
# Get information about displays
|
|
1078
1078
|
# @param sandbox_id [String]
|
|
1079
1079
|
# @param [Hash] opts the optional parameters
|
|
1080
1080
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1081
1081
|
# @return [DisplayInfoResponse]
|
|
1082
|
-
def
|
|
1083
|
-
data, _status_code, _headers =
|
|
1082
|
+
def get_display_info(sandbox_id, opts = {})
|
|
1083
|
+
data, _status_code, _headers = get_display_info_with_http_info(sandbox_id, opts)
|
|
1084
1084
|
data
|
|
1085
1085
|
end
|
|
1086
1086
|
|
|
1087
|
-
#
|
|
1087
|
+
# Get display info
|
|
1088
1088
|
# Get information about displays
|
|
1089
1089
|
# @param sandbox_id [String]
|
|
1090
1090
|
# @param [Hash] opts the optional parameters
|
|
1091
1091
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1092
1092
|
# @return [Array<(DisplayInfoResponse, Integer, Hash)>] DisplayInfoResponse data, response status code and response headers
|
|
1093
|
-
def
|
|
1093
|
+
def get_display_info_with_http_info(sandbox_id, opts = {})
|
|
1094
1094
|
if @api_client.config.debugging
|
|
1095
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
1095
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.get_display_info ...'
|
|
1096
1096
|
end
|
|
1097
1097
|
# verify the required parameter 'sandbox_id' is set
|
|
1098
1098
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
1099
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
1099
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.get_display_info"
|
|
1100
1100
|
end
|
|
1101
1101
|
# resource path
|
|
1102
1102
|
local_var_path = '/toolbox/{sandboxId}/toolbox/computeruse/display/info'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -1123,7 +1123,7 @@ module DaytonaApiClient
|
|
|
1123
1123
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1124
1124
|
|
|
1125
1125
|
new_options = opts.merge(
|
|
1126
|
-
:operation => :"ToolboxApi.
|
|
1126
|
+
:operation => :"ToolboxApi.get_display_info",
|
|
1127
1127
|
:header_params => header_params,
|
|
1128
1128
|
:query_params => query_params,
|
|
1129
1129
|
:form_params => form_params,
|
|
@@ -1134,41 +1134,41 @@ module DaytonaApiClient
|
|
|
1134
1134
|
|
|
1135
1135
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1136
1136
|
if @api_client.config.debugging
|
|
1137
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
1137
|
+
@api_client.config.logger.debug "API called: ToolboxApi#get_display_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1138
1138
|
end
|
|
1139
1139
|
return data, status_code, headers
|
|
1140
1140
|
end
|
|
1141
1141
|
|
|
1142
|
-
#
|
|
1142
|
+
# Get file info
|
|
1143
1143
|
# Get file info inside sandbox
|
|
1144
1144
|
# @param sandbox_id [String]
|
|
1145
1145
|
# @param path [String]
|
|
1146
1146
|
# @param [Hash] opts the optional parameters
|
|
1147
1147
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1148
1148
|
# @return [FileInfo]
|
|
1149
|
-
def
|
|
1150
|
-
data, _status_code, _headers =
|
|
1149
|
+
def get_file_info(sandbox_id, path, opts = {})
|
|
1150
|
+
data, _status_code, _headers = get_file_info_with_http_info(sandbox_id, path, opts)
|
|
1151
1151
|
data
|
|
1152
1152
|
end
|
|
1153
1153
|
|
|
1154
|
-
#
|
|
1154
|
+
# Get file info
|
|
1155
1155
|
# Get file info inside sandbox
|
|
1156
1156
|
# @param sandbox_id [String]
|
|
1157
1157
|
# @param path [String]
|
|
1158
1158
|
# @param [Hash] opts the optional parameters
|
|
1159
1159
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1160
1160
|
# @return [Array<(FileInfo, Integer, Hash)>] FileInfo data, response status code and response headers
|
|
1161
|
-
def
|
|
1161
|
+
def get_file_info_with_http_info(sandbox_id, path, opts = {})
|
|
1162
1162
|
if @api_client.config.debugging
|
|
1163
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
1163
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.get_file_info ...'
|
|
1164
1164
|
end
|
|
1165
1165
|
# verify the required parameter 'sandbox_id' is set
|
|
1166
1166
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
1167
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
1167
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.get_file_info"
|
|
1168
1168
|
end
|
|
1169
1169
|
# verify the required parameter 'path' is set
|
|
1170
1170
|
if @api_client.config.client_side_validation && path.nil?
|
|
1171
|
-
fail ArgumentError, "Missing the required parameter 'path' when calling ToolboxApi.
|
|
1171
|
+
fail ArgumentError, "Missing the required parameter 'path' when calling ToolboxApi.get_file_info"
|
|
1172
1172
|
end
|
|
1173
1173
|
# resource path
|
|
1174
1174
|
local_var_path = '/toolbox/{sandboxId}/toolbox/files/info'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -1196,7 +1196,7 @@ module DaytonaApiClient
|
|
|
1196
1196
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1197
1197
|
|
|
1198
1198
|
new_options = opts.merge(
|
|
1199
|
-
:operation => :"ToolboxApi.
|
|
1199
|
+
:operation => :"ToolboxApi.get_file_info",
|
|
1200
1200
|
:header_params => header_params,
|
|
1201
1201
|
:query_params => query_params,
|
|
1202
1202
|
:form_params => form_params,
|
|
@@ -1207,35 +1207,35 @@ module DaytonaApiClient
|
|
|
1207
1207
|
|
|
1208
1208
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1209
1209
|
if @api_client.config.debugging
|
|
1210
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
1210
|
+
@api_client.config.logger.debug "API called: ToolboxApi#get_file_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1211
1211
|
end
|
|
1212
1212
|
return data, status_code, headers
|
|
1213
1213
|
end
|
|
1214
1214
|
|
|
1215
|
-
#
|
|
1215
|
+
# Get mouse position
|
|
1216
1216
|
# Get current mouse cursor position
|
|
1217
1217
|
# @param sandbox_id [String]
|
|
1218
1218
|
# @param [Hash] opts the optional parameters
|
|
1219
1219
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1220
1220
|
# @return [MousePosition]
|
|
1221
|
-
def
|
|
1222
|
-
data, _status_code, _headers =
|
|
1221
|
+
def get_mouse_position(sandbox_id, opts = {})
|
|
1222
|
+
data, _status_code, _headers = get_mouse_position_with_http_info(sandbox_id, opts)
|
|
1223
1223
|
data
|
|
1224
1224
|
end
|
|
1225
1225
|
|
|
1226
|
-
#
|
|
1226
|
+
# Get mouse position
|
|
1227
1227
|
# Get current mouse cursor position
|
|
1228
1228
|
# @param sandbox_id [String]
|
|
1229
1229
|
# @param [Hash] opts the optional parameters
|
|
1230
1230
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1231
1231
|
# @return [Array<(MousePosition, Integer, Hash)>] MousePosition data, response status code and response headers
|
|
1232
|
-
def
|
|
1232
|
+
def get_mouse_position_with_http_info(sandbox_id, opts = {})
|
|
1233
1233
|
if @api_client.config.debugging
|
|
1234
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
1234
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.get_mouse_position ...'
|
|
1235
1235
|
end
|
|
1236
1236
|
# verify the required parameter 'sandbox_id' is set
|
|
1237
1237
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
1238
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
1238
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.get_mouse_position"
|
|
1239
1239
|
end
|
|
1240
1240
|
# resource path
|
|
1241
1241
|
local_var_path = '/toolbox/{sandboxId}/toolbox/computeruse/mouse/position'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -1262,7 +1262,7 @@ module DaytonaApiClient
|
|
|
1262
1262
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1263
1263
|
|
|
1264
1264
|
new_options = opts.merge(
|
|
1265
|
-
:operation => :"ToolboxApi.
|
|
1265
|
+
:operation => :"ToolboxApi.get_mouse_position",
|
|
1266
1266
|
:header_params => header_params,
|
|
1267
1267
|
:query_params => query_params,
|
|
1268
1268
|
:form_params => form_params,
|
|
@@ -1273,41 +1273,41 @@ module DaytonaApiClient
|
|
|
1273
1273
|
|
|
1274
1274
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1275
1275
|
if @api_client.config.debugging
|
|
1276
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
1276
|
+
@api_client.config.logger.debug "API called: ToolboxApi#get_mouse_position\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1277
1277
|
end
|
|
1278
1278
|
return data, status_code, headers
|
|
1279
1279
|
end
|
|
1280
1280
|
|
|
1281
|
-
#
|
|
1281
|
+
# Get process errors
|
|
1282
1282
|
# Get error logs for a specific VNC process
|
|
1283
1283
|
# @param process_name [String]
|
|
1284
1284
|
# @param sandbox_id [String]
|
|
1285
1285
|
# @param [Hash] opts the optional parameters
|
|
1286
1286
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1287
1287
|
# @return [ProcessErrorsResponse]
|
|
1288
|
-
def
|
|
1289
|
-
data, _status_code, _headers =
|
|
1288
|
+
def get_process_errors(process_name, sandbox_id, opts = {})
|
|
1289
|
+
data, _status_code, _headers = get_process_errors_with_http_info(process_name, sandbox_id, opts)
|
|
1290
1290
|
data
|
|
1291
1291
|
end
|
|
1292
1292
|
|
|
1293
|
-
#
|
|
1293
|
+
# Get process errors
|
|
1294
1294
|
# Get error logs for a specific VNC process
|
|
1295
1295
|
# @param process_name [String]
|
|
1296
1296
|
# @param sandbox_id [String]
|
|
1297
1297
|
# @param [Hash] opts the optional parameters
|
|
1298
1298
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1299
1299
|
# @return [Array<(ProcessErrorsResponse, Integer, Hash)>] ProcessErrorsResponse data, response status code and response headers
|
|
1300
|
-
def
|
|
1300
|
+
def get_process_errors_with_http_info(process_name, sandbox_id, opts = {})
|
|
1301
1301
|
if @api_client.config.debugging
|
|
1302
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
1302
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.get_process_errors ...'
|
|
1303
1303
|
end
|
|
1304
1304
|
# verify the required parameter 'process_name' is set
|
|
1305
1305
|
if @api_client.config.client_side_validation && process_name.nil?
|
|
1306
|
-
fail ArgumentError, "Missing the required parameter 'process_name' when calling ToolboxApi.
|
|
1306
|
+
fail ArgumentError, "Missing the required parameter 'process_name' when calling ToolboxApi.get_process_errors"
|
|
1307
1307
|
end
|
|
1308
1308
|
# verify the required parameter 'sandbox_id' is set
|
|
1309
1309
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
1310
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
1310
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.get_process_errors"
|
|
1311
1311
|
end
|
|
1312
1312
|
# resource path
|
|
1313
1313
|
local_var_path = '/toolbox/{sandboxId}/toolbox/computeruse/process/{processName}/errors'.sub('{' + 'processName' + '}', CGI.escape(process_name.to_s)).sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -1334,7 +1334,7 @@ module DaytonaApiClient
|
|
|
1334
1334
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1335
1335
|
|
|
1336
1336
|
new_options = opts.merge(
|
|
1337
|
-
:operation => :"ToolboxApi.
|
|
1337
|
+
:operation => :"ToolboxApi.get_process_errors",
|
|
1338
1338
|
:header_params => header_params,
|
|
1339
1339
|
:query_params => query_params,
|
|
1340
1340
|
:form_params => form_params,
|
|
@@ -1345,41 +1345,41 @@ module DaytonaApiClient
|
|
|
1345
1345
|
|
|
1346
1346
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1347
1347
|
if @api_client.config.debugging
|
|
1348
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
1348
|
+
@api_client.config.logger.debug "API called: ToolboxApi#get_process_errors\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1349
1349
|
end
|
|
1350
1350
|
return data, status_code, headers
|
|
1351
1351
|
end
|
|
1352
1352
|
|
|
1353
|
-
#
|
|
1353
|
+
# Get process logs
|
|
1354
1354
|
# Get logs for a specific VNC process
|
|
1355
1355
|
# @param process_name [String]
|
|
1356
1356
|
# @param sandbox_id [String]
|
|
1357
1357
|
# @param [Hash] opts the optional parameters
|
|
1358
1358
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1359
1359
|
# @return [ProcessLogsResponse]
|
|
1360
|
-
def
|
|
1361
|
-
data, _status_code, _headers =
|
|
1360
|
+
def get_process_logs(process_name, sandbox_id, opts = {})
|
|
1361
|
+
data, _status_code, _headers = get_process_logs_with_http_info(process_name, sandbox_id, opts)
|
|
1362
1362
|
data
|
|
1363
1363
|
end
|
|
1364
1364
|
|
|
1365
|
-
#
|
|
1365
|
+
# Get process logs
|
|
1366
1366
|
# Get logs for a specific VNC process
|
|
1367
1367
|
# @param process_name [String]
|
|
1368
1368
|
# @param sandbox_id [String]
|
|
1369
1369
|
# @param [Hash] opts the optional parameters
|
|
1370
1370
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1371
1371
|
# @return [Array<(ProcessLogsResponse, Integer, Hash)>] ProcessLogsResponse data, response status code and response headers
|
|
1372
|
-
def
|
|
1372
|
+
def get_process_logs_with_http_info(process_name, sandbox_id, opts = {})
|
|
1373
1373
|
if @api_client.config.debugging
|
|
1374
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
1374
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.get_process_logs ...'
|
|
1375
1375
|
end
|
|
1376
1376
|
# verify the required parameter 'process_name' is set
|
|
1377
1377
|
if @api_client.config.client_side_validation && process_name.nil?
|
|
1378
|
-
fail ArgumentError, "Missing the required parameter 'process_name' when calling ToolboxApi.
|
|
1378
|
+
fail ArgumentError, "Missing the required parameter 'process_name' when calling ToolboxApi.get_process_logs"
|
|
1379
1379
|
end
|
|
1380
1380
|
# verify the required parameter 'sandbox_id' is set
|
|
1381
1381
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
1382
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
1382
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.get_process_logs"
|
|
1383
1383
|
end
|
|
1384
1384
|
# resource path
|
|
1385
1385
|
local_var_path = '/toolbox/{sandboxId}/toolbox/computeruse/process/{processName}/logs'.sub('{' + 'processName' + '}', CGI.escape(process_name.to_s)).sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -1406,7 +1406,7 @@ module DaytonaApiClient
|
|
|
1406
1406
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1407
1407
|
|
|
1408
1408
|
new_options = opts.merge(
|
|
1409
|
-
:operation => :"ToolboxApi.
|
|
1409
|
+
:operation => :"ToolboxApi.get_process_logs",
|
|
1410
1410
|
:header_params => header_params,
|
|
1411
1411
|
:query_params => query_params,
|
|
1412
1412
|
:form_params => form_params,
|
|
@@ -1417,41 +1417,41 @@ module DaytonaApiClient
|
|
|
1417
1417
|
|
|
1418
1418
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1419
1419
|
if @api_client.config.debugging
|
|
1420
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
1420
|
+
@api_client.config.logger.debug "API called: ToolboxApi#get_process_logs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1421
1421
|
end
|
|
1422
1422
|
return data, status_code, headers
|
|
1423
1423
|
end
|
|
1424
1424
|
|
|
1425
|
-
#
|
|
1425
|
+
# Get process status
|
|
1426
1426
|
# Get status of a specific VNC process
|
|
1427
1427
|
# @param process_name [String]
|
|
1428
1428
|
# @param sandbox_id [String]
|
|
1429
1429
|
# @param [Hash] opts the optional parameters
|
|
1430
1430
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1431
1431
|
# @return [ProcessStatusResponse]
|
|
1432
|
-
def
|
|
1433
|
-
data, _status_code, _headers =
|
|
1432
|
+
def get_process_status(process_name, sandbox_id, opts = {})
|
|
1433
|
+
data, _status_code, _headers = get_process_status_with_http_info(process_name, sandbox_id, opts)
|
|
1434
1434
|
data
|
|
1435
1435
|
end
|
|
1436
1436
|
|
|
1437
|
-
#
|
|
1437
|
+
# Get process status
|
|
1438
1438
|
# Get status of a specific VNC process
|
|
1439
1439
|
# @param process_name [String]
|
|
1440
1440
|
# @param sandbox_id [String]
|
|
1441
1441
|
# @param [Hash] opts the optional parameters
|
|
1442
1442
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1443
1443
|
# @return [Array<(ProcessStatusResponse, Integer, Hash)>] ProcessStatusResponse data, response status code and response headers
|
|
1444
|
-
def
|
|
1444
|
+
def get_process_status_with_http_info(process_name, sandbox_id, opts = {})
|
|
1445
1445
|
if @api_client.config.debugging
|
|
1446
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
1446
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.get_process_status ...'
|
|
1447
1447
|
end
|
|
1448
1448
|
# verify the required parameter 'process_name' is set
|
|
1449
1449
|
if @api_client.config.client_side_validation && process_name.nil?
|
|
1450
|
-
fail ArgumentError, "Missing the required parameter 'process_name' when calling ToolboxApi.
|
|
1450
|
+
fail ArgumentError, "Missing the required parameter 'process_name' when calling ToolboxApi.get_process_status"
|
|
1451
1451
|
end
|
|
1452
1452
|
# verify the required parameter 'sandbox_id' is set
|
|
1453
1453
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
1454
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
1454
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.get_process_status"
|
|
1455
1455
|
end
|
|
1456
1456
|
# resource path
|
|
1457
1457
|
local_var_path = '/toolbox/{sandboxId}/toolbox/computeruse/process/{processName}/status'.sub('{' + 'processName' + '}', CGI.escape(process_name.to_s)).sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -1478,7 +1478,7 @@ module DaytonaApiClient
|
|
|
1478
1478
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1479
1479
|
|
|
1480
1480
|
new_options = opts.merge(
|
|
1481
|
-
:operation => :"ToolboxApi.
|
|
1481
|
+
:operation => :"ToolboxApi.get_process_status",
|
|
1482
1482
|
:header_params => header_params,
|
|
1483
1483
|
:query_params => query_params,
|
|
1484
1484
|
:form_params => form_params,
|
|
@@ -1489,33 +1489,33 @@ module DaytonaApiClient
|
|
|
1489
1489
|
|
|
1490
1490
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1491
1491
|
if @api_client.config.debugging
|
|
1492
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
1492
|
+
@api_client.config.logger.debug "API called: ToolboxApi#get_process_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1493
1493
|
end
|
|
1494
1494
|
return data, status_code, headers
|
|
1495
1495
|
end
|
|
1496
1496
|
|
|
1497
|
-
#
|
|
1497
|
+
# Get sandbox project dir
|
|
1498
1498
|
# @param sandbox_id [String]
|
|
1499
1499
|
# @param [Hash] opts the optional parameters
|
|
1500
1500
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1501
1501
|
# @return [ProjectDirResponse]
|
|
1502
|
-
def
|
|
1503
|
-
data, _status_code, _headers =
|
|
1502
|
+
def get_project_dir(sandbox_id, opts = {})
|
|
1503
|
+
data, _status_code, _headers = get_project_dir_with_http_info(sandbox_id, opts)
|
|
1504
1504
|
data
|
|
1505
1505
|
end
|
|
1506
1506
|
|
|
1507
|
-
#
|
|
1507
|
+
# Get sandbox project dir
|
|
1508
1508
|
# @param sandbox_id [String]
|
|
1509
1509
|
# @param [Hash] opts the optional parameters
|
|
1510
1510
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1511
1511
|
# @return [Array<(ProjectDirResponse, Integer, Hash)>] ProjectDirResponse data, response status code and response headers
|
|
1512
|
-
def
|
|
1512
|
+
def get_project_dir_with_http_info(sandbox_id, opts = {})
|
|
1513
1513
|
if @api_client.config.debugging
|
|
1514
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
1514
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.get_project_dir ...'
|
|
1515
1515
|
end
|
|
1516
1516
|
# verify the required parameter 'sandbox_id' is set
|
|
1517
1517
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
1518
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
1518
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.get_project_dir"
|
|
1519
1519
|
end
|
|
1520
1520
|
# resource path
|
|
1521
1521
|
local_var_path = '/toolbox/{sandboxId}/toolbox/project-dir'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -1542,7 +1542,7 @@ module DaytonaApiClient
|
|
|
1542
1542
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1543
1543
|
|
|
1544
1544
|
new_options = opts.merge(
|
|
1545
|
-
:operation => :"ToolboxApi.
|
|
1545
|
+
:operation => :"ToolboxApi.get_project_dir",
|
|
1546
1546
|
:header_params => header_params,
|
|
1547
1547
|
:query_params => query_params,
|
|
1548
1548
|
:form_params => form_params,
|
|
@@ -1553,41 +1553,41 @@ module DaytonaApiClient
|
|
|
1553
1553
|
|
|
1554
1554
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1555
1555
|
if @api_client.config.debugging
|
|
1556
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
1556
|
+
@api_client.config.logger.debug "API called: ToolboxApi#get_project_dir\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1557
1557
|
end
|
|
1558
1558
|
return data, status_code, headers
|
|
1559
1559
|
end
|
|
1560
1560
|
|
|
1561
|
-
#
|
|
1561
|
+
# Get PTY session
|
|
1562
1562
|
# Get PTY session information by ID
|
|
1563
1563
|
# @param sandbox_id [String]
|
|
1564
1564
|
# @param session_id [String]
|
|
1565
1565
|
# @param [Hash] opts the optional parameters
|
|
1566
1566
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1567
1567
|
# @return [PtySessionInfo]
|
|
1568
|
-
def
|
|
1569
|
-
data, _status_code, _headers =
|
|
1568
|
+
def get_pty_session(sandbox_id, session_id, opts = {})
|
|
1569
|
+
data, _status_code, _headers = get_pty_session_with_http_info(sandbox_id, session_id, opts)
|
|
1570
1570
|
data
|
|
1571
1571
|
end
|
|
1572
1572
|
|
|
1573
|
-
#
|
|
1573
|
+
# Get PTY session
|
|
1574
1574
|
# Get PTY session information by ID
|
|
1575
1575
|
# @param sandbox_id [String]
|
|
1576
1576
|
# @param session_id [String]
|
|
1577
1577
|
# @param [Hash] opts the optional parameters
|
|
1578
1578
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1579
1579
|
# @return [Array<(PtySessionInfo, Integer, Hash)>] PtySessionInfo data, response status code and response headers
|
|
1580
|
-
def
|
|
1580
|
+
def get_pty_session_with_http_info(sandbox_id, session_id, opts = {})
|
|
1581
1581
|
if @api_client.config.debugging
|
|
1582
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
1582
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.get_pty_session ...'
|
|
1583
1583
|
end
|
|
1584
1584
|
# verify the required parameter 'sandbox_id' is set
|
|
1585
1585
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
1586
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
1586
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.get_pty_session"
|
|
1587
1587
|
end
|
|
1588
1588
|
# verify the required parameter 'session_id' is set
|
|
1589
1589
|
if @api_client.config.client_side_validation && session_id.nil?
|
|
1590
|
-
fail ArgumentError, "Missing the required parameter 'session_id' when calling ToolboxApi.
|
|
1590
|
+
fail ArgumentError, "Missing the required parameter 'session_id' when calling ToolboxApi.get_pty_session"
|
|
1591
1591
|
end
|
|
1592
1592
|
# resource path
|
|
1593
1593
|
local_var_path = '/toolbox/{sandboxId}/toolbox/process/pty/{sessionId}'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s)).sub('{' + 'sessionId' + '}', CGI.escape(session_id.to_s))
|
|
@@ -1614,7 +1614,7 @@ module DaytonaApiClient
|
|
|
1614
1614
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1615
1615
|
|
|
1616
1616
|
new_options = opts.merge(
|
|
1617
|
-
:operation => :"ToolboxApi.
|
|
1617
|
+
:operation => :"ToolboxApi.get_pty_session",
|
|
1618
1618
|
:header_params => header_params,
|
|
1619
1619
|
:query_params => query_params,
|
|
1620
1620
|
:form_params => form_params,
|
|
@@ -1625,50 +1625,44 @@ module DaytonaApiClient
|
|
|
1625
1625
|
|
|
1626
1626
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1627
1627
|
if @api_client.config.debugging
|
|
1628
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
1628
|
+
@api_client.config.logger.debug "API called: ToolboxApi#get_pty_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1629
1629
|
end
|
|
1630
1630
|
return data, status_code, headers
|
|
1631
1631
|
end
|
|
1632
1632
|
|
|
1633
|
-
#
|
|
1634
|
-
# Get session
|
|
1633
|
+
# Get session
|
|
1634
|
+
# Get session by ID
|
|
1635
1635
|
# @param sandbox_id [String]
|
|
1636
1636
|
# @param session_id [String]
|
|
1637
|
-
# @param command_id [String]
|
|
1638
1637
|
# @param [Hash] opts the optional parameters
|
|
1639
1638
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1640
|
-
# @return [
|
|
1641
|
-
def
|
|
1642
|
-
data, _status_code, _headers =
|
|
1639
|
+
# @return [Session]
|
|
1640
|
+
def get_session(sandbox_id, session_id, opts = {})
|
|
1641
|
+
data, _status_code, _headers = get_session_with_http_info(sandbox_id, session_id, opts)
|
|
1643
1642
|
data
|
|
1644
1643
|
end
|
|
1645
1644
|
|
|
1646
|
-
#
|
|
1647
|
-
# Get session
|
|
1645
|
+
# Get session
|
|
1646
|
+
# Get session by ID
|
|
1648
1647
|
# @param sandbox_id [String]
|
|
1649
1648
|
# @param session_id [String]
|
|
1650
|
-
# @param command_id [String]
|
|
1651
1649
|
# @param [Hash] opts the optional parameters
|
|
1652
1650
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1653
|
-
# @return [Array<(
|
|
1654
|
-
def
|
|
1651
|
+
# @return [Array<(Session, Integer, Hash)>] Session data, response status code and response headers
|
|
1652
|
+
def get_session_with_http_info(sandbox_id, session_id, opts = {})
|
|
1655
1653
|
if @api_client.config.debugging
|
|
1656
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
1654
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.get_session ...'
|
|
1657
1655
|
end
|
|
1658
1656
|
# verify the required parameter 'sandbox_id' is set
|
|
1659
1657
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
1660
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
1658
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.get_session"
|
|
1661
1659
|
end
|
|
1662
1660
|
# verify the required parameter 'session_id' is set
|
|
1663
1661
|
if @api_client.config.client_side_validation && session_id.nil?
|
|
1664
|
-
fail ArgumentError, "Missing the required parameter 'session_id' when calling ToolboxApi.
|
|
1665
|
-
end
|
|
1666
|
-
# verify the required parameter 'command_id' is set
|
|
1667
|
-
if @api_client.config.client_side_validation && command_id.nil?
|
|
1668
|
-
fail ArgumentError, "Missing the required parameter 'command_id' when calling ToolboxApi.get_session_command_deprecated"
|
|
1662
|
+
fail ArgumentError, "Missing the required parameter 'session_id' when calling ToolboxApi.get_session"
|
|
1669
1663
|
end
|
|
1670
1664
|
# resource path
|
|
1671
|
-
local_var_path = '/toolbox/{sandboxId}/toolbox/process/session/{sessionId}
|
|
1665
|
+
local_var_path = '/toolbox/{sandboxId}/toolbox/process/session/{sessionId}'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s)).sub('{' + 'sessionId' + '}', CGI.escape(session_id.to_s))
|
|
1672
1666
|
|
|
1673
1667
|
# query parameters
|
|
1674
1668
|
query_params = opts[:query_params] || {}
|
|
@@ -1686,13 +1680,13 @@ module DaytonaApiClient
|
|
|
1686
1680
|
post_body = opts[:debug_body]
|
|
1687
1681
|
|
|
1688
1682
|
# return_type
|
|
1689
|
-
return_type = opts[:debug_return_type] || '
|
|
1683
|
+
return_type = opts[:debug_return_type] || 'Session'
|
|
1690
1684
|
|
|
1691
1685
|
# auth_names
|
|
1692
1686
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1693
1687
|
|
|
1694
1688
|
new_options = opts.merge(
|
|
1695
|
-
:operation => :"ToolboxApi.
|
|
1689
|
+
:operation => :"ToolboxApi.get_session",
|
|
1696
1690
|
:header_params => header_params,
|
|
1697
1691
|
:query_params => query_params,
|
|
1698
1692
|
:form_params => form_params,
|
|
@@ -1703,61 +1697,58 @@ module DaytonaApiClient
|
|
|
1703
1697
|
|
|
1704
1698
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1705
1699
|
if @api_client.config.debugging
|
|
1706
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
1700
|
+
@api_client.config.logger.debug "API called: ToolboxApi#get_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1707
1701
|
end
|
|
1708
1702
|
return data, status_code, headers
|
|
1709
1703
|
end
|
|
1710
1704
|
|
|
1711
|
-
#
|
|
1712
|
-
# Get
|
|
1705
|
+
# Get session command
|
|
1706
|
+
# Get session command by ID
|
|
1713
1707
|
# @param sandbox_id [String]
|
|
1714
1708
|
# @param session_id [String]
|
|
1715
1709
|
# @param command_id [String]
|
|
1716
1710
|
# @param [Hash] opts the optional parameters
|
|
1717
1711
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1718
|
-
# @
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
data, _status_code, _headers = get_session_command_logs_deprecated_with_http_info(sandbox_id, session_id, command_id, opts)
|
|
1712
|
+
# @return [Command]
|
|
1713
|
+
def get_session_command(sandbox_id, session_id, command_id, opts = {})
|
|
1714
|
+
data, _status_code, _headers = get_session_command_with_http_info(sandbox_id, session_id, command_id, opts)
|
|
1722
1715
|
data
|
|
1723
1716
|
end
|
|
1724
1717
|
|
|
1725
|
-
#
|
|
1726
|
-
# Get
|
|
1718
|
+
# Get session command
|
|
1719
|
+
# Get session command by ID
|
|
1727
1720
|
# @param sandbox_id [String]
|
|
1728
1721
|
# @param session_id [String]
|
|
1729
1722
|
# @param command_id [String]
|
|
1730
1723
|
# @param [Hash] opts the optional parameters
|
|
1731
1724
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1732
|
-
# @
|
|
1733
|
-
|
|
1734
|
-
def get_session_command_logs_deprecated_with_http_info(sandbox_id, session_id, command_id, opts = {})
|
|
1725
|
+
# @return [Array<(Command, Integer, Hash)>] Command data, response status code and response headers
|
|
1726
|
+
def get_session_command_with_http_info(sandbox_id, session_id, command_id, opts = {})
|
|
1735
1727
|
if @api_client.config.debugging
|
|
1736
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
1728
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.get_session_command ...'
|
|
1737
1729
|
end
|
|
1738
1730
|
# verify the required parameter 'sandbox_id' is set
|
|
1739
1731
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
1740
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
1732
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.get_session_command"
|
|
1741
1733
|
end
|
|
1742
1734
|
# verify the required parameter 'session_id' is set
|
|
1743
1735
|
if @api_client.config.client_side_validation && session_id.nil?
|
|
1744
|
-
fail ArgumentError, "Missing the required parameter 'session_id' when calling ToolboxApi.
|
|
1736
|
+
fail ArgumentError, "Missing the required parameter 'session_id' when calling ToolboxApi.get_session_command"
|
|
1745
1737
|
end
|
|
1746
1738
|
# verify the required parameter 'command_id' is set
|
|
1747
1739
|
if @api_client.config.client_side_validation && command_id.nil?
|
|
1748
|
-
fail ArgumentError, "Missing the required parameter 'command_id' when calling ToolboxApi.
|
|
1740
|
+
fail ArgumentError, "Missing the required parameter 'command_id' when calling ToolboxApi.get_session_command"
|
|
1749
1741
|
end
|
|
1750
1742
|
# resource path
|
|
1751
|
-
local_var_path = '/toolbox/{sandboxId}/toolbox/process/session/{sessionId}/command/{commandId}
|
|
1743
|
+
local_var_path = '/toolbox/{sandboxId}/toolbox/process/session/{sessionId}/command/{commandId}'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s)).sub('{' + 'sessionId' + '}', CGI.escape(session_id.to_s)).sub('{' + 'commandId' + '}', CGI.escape(command_id.to_s))
|
|
1752
1744
|
|
|
1753
1745
|
# query parameters
|
|
1754
1746
|
query_params = opts[:query_params] || {}
|
|
1755
|
-
query_params[:'follow'] = opts[:'follow'] if !opts[:'follow'].nil?
|
|
1756
1747
|
|
|
1757
1748
|
# header parameters
|
|
1758
1749
|
header_params = opts[:header_params] || {}
|
|
1759
1750
|
# HTTP header 'Accept' (if needed)
|
|
1760
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
|
1751
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1761
1752
|
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
1762
1753
|
|
|
1763
1754
|
# form parameters
|
|
@@ -1767,13 +1758,13 @@ module DaytonaApiClient
|
|
|
1767
1758
|
post_body = opts[:debug_body]
|
|
1768
1759
|
|
|
1769
1760
|
# return_type
|
|
1770
|
-
return_type = opts[:debug_return_type] || '
|
|
1761
|
+
return_type = opts[:debug_return_type] || 'Command'
|
|
1771
1762
|
|
|
1772
1763
|
# auth_names
|
|
1773
1764
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1774
1765
|
|
|
1775
1766
|
new_options = opts.merge(
|
|
1776
|
-
:operation => :"ToolboxApi.
|
|
1767
|
+
:operation => :"ToolboxApi.get_session_command",
|
|
1777
1768
|
:header_params => header_params,
|
|
1778
1769
|
:query_params => query_params,
|
|
1779
1770
|
:form_params => form_params,
|
|
@@ -1784,52 +1775,61 @@ module DaytonaApiClient
|
|
|
1784
1775
|
|
|
1785
1776
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1786
1777
|
if @api_client.config.debugging
|
|
1787
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
1778
|
+
@api_client.config.logger.debug "API called: ToolboxApi#get_session_command\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1788
1779
|
end
|
|
1789
1780
|
return data, status_code, headers
|
|
1790
1781
|
end
|
|
1791
1782
|
|
|
1792
|
-
#
|
|
1793
|
-
# Get
|
|
1783
|
+
# Get command logs
|
|
1784
|
+
# Get logs for a specific command in a session
|
|
1794
1785
|
# @param sandbox_id [String]
|
|
1795
1786
|
# @param session_id [String]
|
|
1787
|
+
# @param command_id [String]
|
|
1796
1788
|
# @param [Hash] opts the optional parameters
|
|
1797
1789
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1798
|
-
# @
|
|
1799
|
-
|
|
1800
|
-
|
|
1790
|
+
# @option opts [Boolean] :follow Whether to stream the logs
|
|
1791
|
+
# @return [String]
|
|
1792
|
+
def get_session_command_logs(sandbox_id, session_id, command_id, opts = {})
|
|
1793
|
+
data, _status_code, _headers = get_session_command_logs_with_http_info(sandbox_id, session_id, command_id, opts)
|
|
1801
1794
|
data
|
|
1802
1795
|
end
|
|
1803
1796
|
|
|
1804
|
-
#
|
|
1805
|
-
# Get
|
|
1797
|
+
# Get command logs
|
|
1798
|
+
# Get logs for a specific command in a session
|
|
1806
1799
|
# @param sandbox_id [String]
|
|
1807
1800
|
# @param session_id [String]
|
|
1801
|
+
# @param command_id [String]
|
|
1808
1802
|
# @param [Hash] opts the optional parameters
|
|
1809
1803
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1810
|
-
# @
|
|
1811
|
-
|
|
1804
|
+
# @option opts [Boolean] :follow Whether to stream the logs
|
|
1805
|
+
# @return [Array<(String, Integer, Hash)>] String data, response status code and response headers
|
|
1806
|
+
def get_session_command_logs_with_http_info(sandbox_id, session_id, command_id, opts = {})
|
|
1812
1807
|
if @api_client.config.debugging
|
|
1813
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
1808
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.get_session_command_logs ...'
|
|
1814
1809
|
end
|
|
1815
1810
|
# verify the required parameter 'sandbox_id' is set
|
|
1816
1811
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
1817
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
1812
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.get_session_command_logs"
|
|
1818
1813
|
end
|
|
1819
1814
|
# verify the required parameter 'session_id' is set
|
|
1820
1815
|
if @api_client.config.client_side_validation && session_id.nil?
|
|
1821
|
-
fail ArgumentError, "Missing the required parameter 'session_id' when calling ToolboxApi.
|
|
1816
|
+
fail ArgumentError, "Missing the required parameter 'session_id' when calling ToolboxApi.get_session_command_logs"
|
|
1817
|
+
end
|
|
1818
|
+
# verify the required parameter 'command_id' is set
|
|
1819
|
+
if @api_client.config.client_side_validation && command_id.nil?
|
|
1820
|
+
fail ArgumentError, "Missing the required parameter 'command_id' when calling ToolboxApi.get_session_command_logs"
|
|
1822
1821
|
end
|
|
1823
1822
|
# resource path
|
|
1824
|
-
local_var_path = '/toolbox/{sandboxId}/toolbox/process/session/{sessionId}'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s)).sub('{' + 'sessionId' + '}', CGI.escape(session_id.to_s))
|
|
1823
|
+
local_var_path = '/toolbox/{sandboxId}/toolbox/process/session/{sessionId}/command/{commandId}/logs'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s)).sub('{' + 'sessionId' + '}', CGI.escape(session_id.to_s)).sub('{' + 'commandId' + '}', CGI.escape(command_id.to_s))
|
|
1825
1824
|
|
|
1826
1825
|
# query parameters
|
|
1827
1826
|
query_params = opts[:query_params] || {}
|
|
1827
|
+
query_params[:'follow'] = opts[:'follow'] if !opts[:'follow'].nil?
|
|
1828
1828
|
|
|
1829
1829
|
# header parameters
|
|
1830
1830
|
header_params = opts[:header_params] || {}
|
|
1831
1831
|
# HTTP header 'Accept' (if needed)
|
|
1832
|
-
header_params['Accept'] = @api_client.select_header_accept(['
|
|
1832
|
+
header_params['Accept'] = @api_client.select_header_accept(['text/plain']) unless header_params['Accept']
|
|
1833
1833
|
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
1834
1834
|
|
|
1835
1835
|
# form parameters
|
|
@@ -1839,13 +1839,13 @@ module DaytonaApiClient
|
|
|
1839
1839
|
post_body = opts[:debug_body]
|
|
1840
1840
|
|
|
1841
1841
|
# return_type
|
|
1842
|
-
return_type = opts[:debug_return_type] || '
|
|
1842
|
+
return_type = opts[:debug_return_type] || 'String'
|
|
1843
1843
|
|
|
1844
1844
|
# auth_names
|
|
1845
1845
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1846
1846
|
|
|
1847
1847
|
new_options = opts.merge(
|
|
1848
|
-
:operation => :"ToolboxApi.
|
|
1848
|
+
:operation => :"ToolboxApi.get_session_command_logs",
|
|
1849
1849
|
:header_params => header_params,
|
|
1850
1850
|
:query_params => query_params,
|
|
1851
1851
|
:form_params => form_params,
|
|
@@ -1856,33 +1856,33 @@ module DaytonaApiClient
|
|
|
1856
1856
|
|
|
1857
1857
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1858
1858
|
if @api_client.config.debugging
|
|
1859
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
1859
|
+
@api_client.config.logger.debug "API called: ToolboxApi#get_session_command_logs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1860
1860
|
end
|
|
1861
1861
|
return data, status_code, headers
|
|
1862
1862
|
end
|
|
1863
1863
|
|
|
1864
|
-
#
|
|
1864
|
+
# Get sandbox user home dir
|
|
1865
1865
|
# @param sandbox_id [String]
|
|
1866
1866
|
# @param [Hash] opts the optional parameters
|
|
1867
1867
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1868
1868
|
# @return [UserHomeDirResponse]
|
|
1869
|
-
def
|
|
1870
|
-
data, _status_code, _headers =
|
|
1869
|
+
def get_user_home_dir(sandbox_id, opts = {})
|
|
1870
|
+
data, _status_code, _headers = get_user_home_dir_with_http_info(sandbox_id, opts)
|
|
1871
1871
|
data
|
|
1872
1872
|
end
|
|
1873
1873
|
|
|
1874
|
-
#
|
|
1874
|
+
# Get sandbox user home dir
|
|
1875
1875
|
# @param sandbox_id [String]
|
|
1876
1876
|
# @param [Hash] opts the optional parameters
|
|
1877
1877
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1878
1878
|
# @return [Array<(UserHomeDirResponse, Integer, Hash)>] UserHomeDirResponse data, response status code and response headers
|
|
1879
|
-
def
|
|
1879
|
+
def get_user_home_dir_with_http_info(sandbox_id, opts = {})
|
|
1880
1880
|
if @api_client.config.debugging
|
|
1881
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
1881
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.get_user_home_dir ...'
|
|
1882
1882
|
end
|
|
1883
1883
|
# verify the required parameter 'sandbox_id' is set
|
|
1884
1884
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
1885
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
1885
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.get_user_home_dir"
|
|
1886
1886
|
end
|
|
1887
1887
|
# resource path
|
|
1888
1888
|
local_var_path = '/toolbox/{sandboxId}/toolbox/user-home-dir'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -1909,7 +1909,7 @@ module DaytonaApiClient
|
|
|
1909
1909
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1910
1910
|
|
|
1911
1911
|
new_options = opts.merge(
|
|
1912
|
-
:operation => :"ToolboxApi.
|
|
1912
|
+
:operation => :"ToolboxApi.get_user_home_dir",
|
|
1913
1913
|
:header_params => header_params,
|
|
1914
1914
|
:query_params => query_params,
|
|
1915
1915
|
:form_params => form_params,
|
|
@@ -1920,35 +1920,35 @@ module DaytonaApiClient
|
|
|
1920
1920
|
|
|
1921
1921
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1922
1922
|
if @api_client.config.debugging
|
|
1923
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
1923
|
+
@api_client.config.logger.debug "API called: ToolboxApi#get_user_home_dir\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1924
1924
|
end
|
|
1925
1925
|
return data, status_code, headers
|
|
1926
1926
|
end
|
|
1927
1927
|
|
|
1928
|
-
#
|
|
1928
|
+
# Get windows
|
|
1929
1929
|
# Get list of open windows
|
|
1930
1930
|
# @param sandbox_id [String]
|
|
1931
1931
|
# @param [Hash] opts the optional parameters
|
|
1932
1932
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1933
1933
|
# @return [WindowsResponse]
|
|
1934
|
-
def
|
|
1935
|
-
data, _status_code, _headers =
|
|
1934
|
+
def get_windows(sandbox_id, opts = {})
|
|
1935
|
+
data, _status_code, _headers = get_windows_with_http_info(sandbox_id, opts)
|
|
1936
1936
|
data
|
|
1937
1937
|
end
|
|
1938
1938
|
|
|
1939
|
-
#
|
|
1939
|
+
# Get windows
|
|
1940
1940
|
# Get list of open windows
|
|
1941
1941
|
# @param sandbox_id [String]
|
|
1942
1942
|
# @param [Hash] opts the optional parameters
|
|
1943
1943
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1944
1944
|
# @return [Array<(WindowsResponse, Integer, Hash)>] WindowsResponse data, response status code and response headers
|
|
1945
|
-
def
|
|
1945
|
+
def get_windows_with_http_info(sandbox_id, opts = {})
|
|
1946
1946
|
if @api_client.config.debugging
|
|
1947
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
1947
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.get_windows ...'
|
|
1948
1948
|
end
|
|
1949
1949
|
# verify the required parameter 'sandbox_id' is set
|
|
1950
1950
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
1951
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
1951
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.get_windows"
|
|
1952
1952
|
end
|
|
1953
1953
|
# resource path
|
|
1954
1954
|
local_var_path = '/toolbox/{sandboxId}/toolbox/computeruse/display/windows'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -1975,7 +1975,7 @@ module DaytonaApiClient
|
|
|
1975
1975
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1976
1976
|
|
|
1977
1977
|
new_options = opts.merge(
|
|
1978
|
-
:operation => :"ToolboxApi.
|
|
1978
|
+
:operation => :"ToolboxApi.get_windows",
|
|
1979
1979
|
:header_params => header_params,
|
|
1980
1980
|
:query_params => query_params,
|
|
1981
1981
|
:form_params => form_params,
|
|
@@ -1986,33 +1986,33 @@ module DaytonaApiClient
|
|
|
1986
1986
|
|
|
1987
1987
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1988
1988
|
if @api_client.config.debugging
|
|
1989
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
1989
|
+
@api_client.config.logger.debug "API called: ToolboxApi#get_windows\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1990
1990
|
end
|
|
1991
1991
|
return data, status_code, headers
|
|
1992
1992
|
end
|
|
1993
1993
|
|
|
1994
|
-
#
|
|
1994
|
+
# Get sandbox work-dir
|
|
1995
1995
|
# @param sandbox_id [String]
|
|
1996
1996
|
# @param [Hash] opts the optional parameters
|
|
1997
1997
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1998
1998
|
# @return [WorkDirResponse]
|
|
1999
|
-
def
|
|
2000
|
-
data, _status_code, _headers =
|
|
1999
|
+
def get_work_dir(sandbox_id, opts = {})
|
|
2000
|
+
data, _status_code, _headers = get_work_dir_with_http_info(sandbox_id, opts)
|
|
2001
2001
|
data
|
|
2002
2002
|
end
|
|
2003
2003
|
|
|
2004
|
-
#
|
|
2004
|
+
# Get sandbox work-dir
|
|
2005
2005
|
# @param sandbox_id [String]
|
|
2006
2006
|
# @param [Hash] opts the optional parameters
|
|
2007
2007
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
2008
2008
|
# @return [Array<(WorkDirResponse, Integer, Hash)>] WorkDirResponse data, response status code and response headers
|
|
2009
|
-
def
|
|
2009
|
+
def get_work_dir_with_http_info(sandbox_id, opts = {})
|
|
2010
2010
|
if @api_client.config.debugging
|
|
2011
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
2011
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.get_work_dir ...'
|
|
2012
2012
|
end
|
|
2013
2013
|
# verify the required parameter 'sandbox_id' is set
|
|
2014
2014
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
2015
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
2015
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.get_work_dir"
|
|
2016
2016
|
end
|
|
2017
2017
|
# resource path
|
|
2018
2018
|
local_var_path = '/toolbox/{sandboxId}/toolbox/work-dir'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -2039,7 +2039,7 @@ module DaytonaApiClient
|
|
|
2039
2039
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2040
2040
|
|
|
2041
2041
|
new_options = opts.merge(
|
|
2042
|
-
:operation => :"ToolboxApi.
|
|
2042
|
+
:operation => :"ToolboxApi.get_work_dir",
|
|
2043
2043
|
:header_params => header_params,
|
|
2044
2044
|
:query_params => query_params,
|
|
2045
2045
|
:form_params => form_params,
|
|
@@ -2050,41 +2050,41 @@ module DaytonaApiClient
|
|
|
2050
2050
|
|
|
2051
2051
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2052
2052
|
if @api_client.config.debugging
|
|
2053
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
2053
|
+
@api_client.config.logger.debug "API called: ToolboxApi#get_work_dir\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2054
2054
|
end
|
|
2055
2055
|
return data, status_code, headers
|
|
2056
2056
|
end
|
|
2057
2057
|
|
|
2058
|
-
#
|
|
2058
|
+
# Add files
|
|
2059
2059
|
# Add files to git commit
|
|
2060
2060
|
# @param sandbox_id [String]
|
|
2061
2061
|
# @param git_add_request [GitAddRequest]
|
|
2062
2062
|
# @param [Hash] opts the optional parameters
|
|
2063
2063
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
2064
2064
|
# @return [nil]
|
|
2065
|
-
def
|
|
2066
|
-
|
|
2065
|
+
def git_add_files(sandbox_id, git_add_request, opts = {})
|
|
2066
|
+
git_add_files_with_http_info(sandbox_id, git_add_request, opts)
|
|
2067
2067
|
nil
|
|
2068
2068
|
end
|
|
2069
2069
|
|
|
2070
|
-
#
|
|
2070
|
+
# Add files
|
|
2071
2071
|
# Add files to git commit
|
|
2072
2072
|
# @param sandbox_id [String]
|
|
2073
2073
|
# @param git_add_request [GitAddRequest]
|
|
2074
2074
|
# @param [Hash] opts the optional parameters
|
|
2075
2075
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
2076
2076
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
2077
|
-
def
|
|
2077
|
+
def git_add_files_with_http_info(sandbox_id, git_add_request, opts = {})
|
|
2078
2078
|
if @api_client.config.debugging
|
|
2079
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
2079
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.git_add_files ...'
|
|
2080
2080
|
end
|
|
2081
2081
|
# verify the required parameter 'sandbox_id' is set
|
|
2082
2082
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
2083
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
2083
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.git_add_files"
|
|
2084
2084
|
end
|
|
2085
2085
|
# verify the required parameter 'git_add_request' is set
|
|
2086
2086
|
if @api_client.config.client_side_validation && git_add_request.nil?
|
|
2087
|
-
fail ArgumentError, "Missing the required parameter 'git_add_request' when calling ToolboxApi.
|
|
2087
|
+
fail ArgumentError, "Missing the required parameter 'git_add_request' when calling ToolboxApi.git_add_files"
|
|
2088
2088
|
end
|
|
2089
2089
|
# resource path
|
|
2090
2090
|
local_var_path = '/toolbox/{sandboxId}/toolbox/git/add'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -2114,7 +2114,7 @@ module DaytonaApiClient
|
|
|
2114
2114
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2115
2115
|
|
|
2116
2116
|
new_options = opts.merge(
|
|
2117
|
-
:operation => :"ToolboxApi.
|
|
2117
|
+
:operation => :"ToolboxApi.git_add_files",
|
|
2118
2118
|
:header_params => header_params,
|
|
2119
2119
|
:query_params => query_params,
|
|
2120
2120
|
:form_params => form_params,
|
|
@@ -2125,41 +2125,41 @@ module DaytonaApiClient
|
|
|
2125
2125
|
|
|
2126
2126
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
2127
2127
|
if @api_client.config.debugging
|
|
2128
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
2128
|
+
@api_client.config.logger.debug "API called: ToolboxApi#git_add_files\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2129
2129
|
end
|
|
2130
2130
|
return data, status_code, headers
|
|
2131
2131
|
end
|
|
2132
2132
|
|
|
2133
|
-
#
|
|
2133
|
+
# Checkout branch
|
|
2134
2134
|
# Checkout branch or commit in git repository
|
|
2135
2135
|
# @param sandbox_id [String]
|
|
2136
2136
|
# @param git_checkout_request [GitCheckoutRequest]
|
|
2137
2137
|
# @param [Hash] opts the optional parameters
|
|
2138
2138
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
2139
2139
|
# @return [nil]
|
|
2140
|
-
def
|
|
2141
|
-
|
|
2140
|
+
def git_checkout_branch(sandbox_id, git_checkout_request, opts = {})
|
|
2141
|
+
git_checkout_branch_with_http_info(sandbox_id, git_checkout_request, opts)
|
|
2142
2142
|
nil
|
|
2143
2143
|
end
|
|
2144
2144
|
|
|
2145
|
-
#
|
|
2145
|
+
# Checkout branch
|
|
2146
2146
|
# Checkout branch or commit in git repository
|
|
2147
2147
|
# @param sandbox_id [String]
|
|
2148
2148
|
# @param git_checkout_request [GitCheckoutRequest]
|
|
2149
2149
|
# @param [Hash] opts the optional parameters
|
|
2150
2150
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
2151
2151
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
2152
|
-
def
|
|
2152
|
+
def git_checkout_branch_with_http_info(sandbox_id, git_checkout_request, opts = {})
|
|
2153
2153
|
if @api_client.config.debugging
|
|
2154
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
2154
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.git_checkout_branch ...'
|
|
2155
2155
|
end
|
|
2156
2156
|
# verify the required parameter 'sandbox_id' is set
|
|
2157
2157
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
2158
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
2158
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.git_checkout_branch"
|
|
2159
2159
|
end
|
|
2160
2160
|
# verify the required parameter 'git_checkout_request' is set
|
|
2161
2161
|
if @api_client.config.client_side_validation && git_checkout_request.nil?
|
|
2162
|
-
fail ArgumentError, "Missing the required parameter 'git_checkout_request' when calling ToolboxApi.
|
|
2162
|
+
fail ArgumentError, "Missing the required parameter 'git_checkout_request' when calling ToolboxApi.git_checkout_branch"
|
|
2163
2163
|
end
|
|
2164
2164
|
# resource path
|
|
2165
2165
|
local_var_path = '/toolbox/{sandboxId}/toolbox/git/checkout'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -2189,7 +2189,7 @@ module DaytonaApiClient
|
|
|
2189
2189
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2190
2190
|
|
|
2191
2191
|
new_options = opts.merge(
|
|
2192
|
-
:operation => :"ToolboxApi.
|
|
2192
|
+
:operation => :"ToolboxApi.git_checkout_branch",
|
|
2193
2193
|
:header_params => header_params,
|
|
2194
2194
|
:query_params => query_params,
|
|
2195
2195
|
:form_params => form_params,
|
|
@@ -2200,41 +2200,41 @@ module DaytonaApiClient
|
|
|
2200
2200
|
|
|
2201
2201
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
2202
2202
|
if @api_client.config.debugging
|
|
2203
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
2203
|
+
@api_client.config.logger.debug "API called: ToolboxApi#git_checkout_branch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2204
2204
|
end
|
|
2205
2205
|
return data, status_code, headers
|
|
2206
2206
|
end
|
|
2207
2207
|
|
|
2208
|
-
#
|
|
2208
|
+
# Clone repository
|
|
2209
2209
|
# Clone git repository
|
|
2210
2210
|
# @param sandbox_id [String]
|
|
2211
2211
|
# @param git_clone_request [GitCloneRequest]
|
|
2212
2212
|
# @param [Hash] opts the optional parameters
|
|
2213
2213
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
2214
2214
|
# @return [nil]
|
|
2215
|
-
def
|
|
2216
|
-
|
|
2215
|
+
def git_clone_repository(sandbox_id, git_clone_request, opts = {})
|
|
2216
|
+
git_clone_repository_with_http_info(sandbox_id, git_clone_request, opts)
|
|
2217
2217
|
nil
|
|
2218
2218
|
end
|
|
2219
2219
|
|
|
2220
|
-
#
|
|
2220
|
+
# Clone repository
|
|
2221
2221
|
# Clone git repository
|
|
2222
2222
|
# @param sandbox_id [String]
|
|
2223
2223
|
# @param git_clone_request [GitCloneRequest]
|
|
2224
2224
|
# @param [Hash] opts the optional parameters
|
|
2225
2225
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
2226
2226
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
2227
|
-
def
|
|
2227
|
+
def git_clone_repository_with_http_info(sandbox_id, git_clone_request, opts = {})
|
|
2228
2228
|
if @api_client.config.debugging
|
|
2229
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
2229
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.git_clone_repository ...'
|
|
2230
2230
|
end
|
|
2231
2231
|
# verify the required parameter 'sandbox_id' is set
|
|
2232
2232
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
2233
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
2233
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.git_clone_repository"
|
|
2234
2234
|
end
|
|
2235
2235
|
# verify the required parameter 'git_clone_request' is set
|
|
2236
2236
|
if @api_client.config.client_side_validation && git_clone_request.nil?
|
|
2237
|
-
fail ArgumentError, "Missing the required parameter 'git_clone_request' when calling ToolboxApi.
|
|
2237
|
+
fail ArgumentError, "Missing the required parameter 'git_clone_request' when calling ToolboxApi.git_clone_repository"
|
|
2238
2238
|
end
|
|
2239
2239
|
# resource path
|
|
2240
2240
|
local_var_path = '/toolbox/{sandboxId}/toolbox/git/clone'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -2264,7 +2264,7 @@ module DaytonaApiClient
|
|
|
2264
2264
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2265
2265
|
|
|
2266
2266
|
new_options = opts.merge(
|
|
2267
|
-
:operation => :"ToolboxApi.
|
|
2267
|
+
:operation => :"ToolboxApi.git_clone_repository",
|
|
2268
2268
|
:header_params => header_params,
|
|
2269
2269
|
:query_params => query_params,
|
|
2270
2270
|
:form_params => form_params,
|
|
@@ -2275,41 +2275,41 @@ module DaytonaApiClient
|
|
|
2275
2275
|
|
|
2276
2276
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
2277
2277
|
if @api_client.config.debugging
|
|
2278
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
2278
|
+
@api_client.config.logger.debug "API called: ToolboxApi#git_clone_repository\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2279
2279
|
end
|
|
2280
2280
|
return data, status_code, headers
|
|
2281
2281
|
end
|
|
2282
2282
|
|
|
2283
|
-
#
|
|
2283
|
+
# Commit changes
|
|
2284
2284
|
# Commit changes to git repository
|
|
2285
2285
|
# @param sandbox_id [String]
|
|
2286
2286
|
# @param git_commit_request [GitCommitRequest]
|
|
2287
2287
|
# @param [Hash] opts the optional parameters
|
|
2288
2288
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
2289
2289
|
# @return [GitCommitResponse]
|
|
2290
|
-
def
|
|
2291
|
-
data, _status_code, _headers =
|
|
2290
|
+
def git_commit_changes(sandbox_id, git_commit_request, opts = {})
|
|
2291
|
+
data, _status_code, _headers = git_commit_changes_with_http_info(sandbox_id, git_commit_request, opts)
|
|
2292
2292
|
data
|
|
2293
2293
|
end
|
|
2294
2294
|
|
|
2295
|
-
#
|
|
2295
|
+
# Commit changes
|
|
2296
2296
|
# Commit changes to git repository
|
|
2297
2297
|
# @param sandbox_id [String]
|
|
2298
2298
|
# @param git_commit_request [GitCommitRequest]
|
|
2299
2299
|
# @param [Hash] opts the optional parameters
|
|
2300
2300
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
2301
2301
|
# @return [Array<(GitCommitResponse, Integer, Hash)>] GitCommitResponse data, response status code and response headers
|
|
2302
|
-
def
|
|
2302
|
+
def git_commit_changes_with_http_info(sandbox_id, git_commit_request, opts = {})
|
|
2303
2303
|
if @api_client.config.debugging
|
|
2304
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
2304
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.git_commit_changes ...'
|
|
2305
2305
|
end
|
|
2306
2306
|
# verify the required parameter 'sandbox_id' is set
|
|
2307
2307
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
2308
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
2308
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.git_commit_changes"
|
|
2309
2309
|
end
|
|
2310
2310
|
# verify the required parameter 'git_commit_request' is set
|
|
2311
2311
|
if @api_client.config.client_side_validation && git_commit_request.nil?
|
|
2312
|
-
fail ArgumentError, "Missing the required parameter 'git_commit_request' when calling ToolboxApi.
|
|
2312
|
+
fail ArgumentError, "Missing the required parameter 'git_commit_request' when calling ToolboxApi.git_commit_changes"
|
|
2313
2313
|
end
|
|
2314
2314
|
# resource path
|
|
2315
2315
|
local_var_path = '/toolbox/{sandboxId}/toolbox/git/commit'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -2341,7 +2341,7 @@ module DaytonaApiClient
|
|
|
2341
2341
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2342
2342
|
|
|
2343
2343
|
new_options = opts.merge(
|
|
2344
|
-
:operation => :"ToolboxApi.
|
|
2344
|
+
:operation => :"ToolboxApi.git_commit_changes",
|
|
2345
2345
|
:header_params => header_params,
|
|
2346
2346
|
:query_params => query_params,
|
|
2347
2347
|
:form_params => form_params,
|
|
@@ -2352,41 +2352,41 @@ module DaytonaApiClient
|
|
|
2352
2352
|
|
|
2353
2353
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
2354
2354
|
if @api_client.config.debugging
|
|
2355
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
2355
|
+
@api_client.config.logger.debug "API called: ToolboxApi#git_commit_changes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2356
2356
|
end
|
|
2357
2357
|
return data, status_code, headers
|
|
2358
2358
|
end
|
|
2359
2359
|
|
|
2360
|
-
#
|
|
2360
|
+
# Create branch
|
|
2361
2361
|
# Create branch on git repository
|
|
2362
2362
|
# @param sandbox_id [String]
|
|
2363
2363
|
# @param git_branch_request [GitBranchRequest]
|
|
2364
2364
|
# @param [Hash] opts the optional parameters
|
|
2365
2365
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
2366
2366
|
# @return [nil]
|
|
2367
|
-
def
|
|
2368
|
-
|
|
2367
|
+
def git_create_branch(sandbox_id, git_branch_request, opts = {})
|
|
2368
|
+
git_create_branch_with_http_info(sandbox_id, git_branch_request, opts)
|
|
2369
2369
|
nil
|
|
2370
2370
|
end
|
|
2371
2371
|
|
|
2372
|
-
#
|
|
2372
|
+
# Create branch
|
|
2373
2373
|
# Create branch on git repository
|
|
2374
2374
|
# @param sandbox_id [String]
|
|
2375
2375
|
# @param git_branch_request [GitBranchRequest]
|
|
2376
2376
|
# @param [Hash] opts the optional parameters
|
|
2377
2377
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
2378
2378
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
2379
|
-
def
|
|
2379
|
+
def git_create_branch_with_http_info(sandbox_id, git_branch_request, opts = {})
|
|
2380
2380
|
if @api_client.config.debugging
|
|
2381
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
2381
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.git_create_branch ...'
|
|
2382
2382
|
end
|
|
2383
2383
|
# verify the required parameter 'sandbox_id' is set
|
|
2384
2384
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
2385
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
2385
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.git_create_branch"
|
|
2386
2386
|
end
|
|
2387
2387
|
# verify the required parameter 'git_branch_request' is set
|
|
2388
2388
|
if @api_client.config.client_side_validation && git_branch_request.nil?
|
|
2389
|
-
fail ArgumentError, "Missing the required parameter 'git_branch_request' when calling ToolboxApi.
|
|
2389
|
+
fail ArgumentError, "Missing the required parameter 'git_branch_request' when calling ToolboxApi.git_create_branch"
|
|
2390
2390
|
end
|
|
2391
2391
|
# resource path
|
|
2392
2392
|
local_var_path = '/toolbox/{sandboxId}/toolbox/git/branches'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -2416,7 +2416,7 @@ module DaytonaApiClient
|
|
|
2416
2416
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2417
2417
|
|
|
2418
2418
|
new_options = opts.merge(
|
|
2419
|
-
:operation => :"ToolboxApi.
|
|
2419
|
+
:operation => :"ToolboxApi.git_create_branch",
|
|
2420
2420
|
:header_params => header_params,
|
|
2421
2421
|
:query_params => query_params,
|
|
2422
2422
|
:form_params => form_params,
|
|
@@ -2427,41 +2427,41 @@ module DaytonaApiClient
|
|
|
2427
2427
|
|
|
2428
2428
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
2429
2429
|
if @api_client.config.debugging
|
|
2430
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
2430
|
+
@api_client.config.logger.debug "API called: ToolboxApi#git_create_branch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2431
2431
|
end
|
|
2432
2432
|
return data, status_code, headers
|
|
2433
2433
|
end
|
|
2434
2434
|
|
|
2435
|
-
#
|
|
2435
|
+
# Delete branch
|
|
2436
2436
|
# Delete branch on git repository
|
|
2437
2437
|
# @param sandbox_id [String]
|
|
2438
2438
|
# @param git_delete_branch_request [GitDeleteBranchRequest]
|
|
2439
2439
|
# @param [Hash] opts the optional parameters
|
|
2440
2440
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
2441
2441
|
# @return [nil]
|
|
2442
|
-
def
|
|
2443
|
-
|
|
2442
|
+
def git_delete_branch(sandbox_id, git_delete_branch_request, opts = {})
|
|
2443
|
+
git_delete_branch_with_http_info(sandbox_id, git_delete_branch_request, opts)
|
|
2444
2444
|
nil
|
|
2445
2445
|
end
|
|
2446
2446
|
|
|
2447
|
-
#
|
|
2447
|
+
# Delete branch
|
|
2448
2448
|
# Delete branch on git repository
|
|
2449
2449
|
# @param sandbox_id [String]
|
|
2450
2450
|
# @param git_delete_branch_request [GitDeleteBranchRequest]
|
|
2451
2451
|
# @param [Hash] opts the optional parameters
|
|
2452
2452
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
2453
2453
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
2454
|
-
def
|
|
2454
|
+
def git_delete_branch_with_http_info(sandbox_id, git_delete_branch_request, opts = {})
|
|
2455
2455
|
if @api_client.config.debugging
|
|
2456
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
2456
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.git_delete_branch ...'
|
|
2457
2457
|
end
|
|
2458
2458
|
# verify the required parameter 'sandbox_id' is set
|
|
2459
2459
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
2460
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
2460
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.git_delete_branch"
|
|
2461
2461
|
end
|
|
2462
2462
|
# verify the required parameter 'git_delete_branch_request' is set
|
|
2463
2463
|
if @api_client.config.client_side_validation && git_delete_branch_request.nil?
|
|
2464
|
-
fail ArgumentError, "Missing the required parameter 'git_delete_branch_request' when calling ToolboxApi.
|
|
2464
|
+
fail ArgumentError, "Missing the required parameter 'git_delete_branch_request' when calling ToolboxApi.git_delete_branch"
|
|
2465
2465
|
end
|
|
2466
2466
|
# resource path
|
|
2467
2467
|
local_var_path = '/toolbox/{sandboxId}/toolbox/git/branches'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -2491,7 +2491,7 @@ module DaytonaApiClient
|
|
|
2491
2491
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2492
2492
|
|
|
2493
2493
|
new_options = opts.merge(
|
|
2494
|
-
:operation => :"ToolboxApi.
|
|
2494
|
+
:operation => :"ToolboxApi.git_delete_branch",
|
|
2495
2495
|
:header_params => header_params,
|
|
2496
2496
|
:query_params => query_params,
|
|
2497
2497
|
:form_params => form_params,
|
|
@@ -2502,41 +2502,41 @@ module DaytonaApiClient
|
|
|
2502
2502
|
|
|
2503
2503
|
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
2504
2504
|
if @api_client.config.debugging
|
|
2505
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
2505
|
+
@api_client.config.logger.debug "API called: ToolboxApi#git_delete_branch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2506
2506
|
end
|
|
2507
2507
|
return data, status_code, headers
|
|
2508
2508
|
end
|
|
2509
2509
|
|
|
2510
|
-
#
|
|
2510
|
+
# Get commit history
|
|
2511
2511
|
# Get commit history from git repository
|
|
2512
2512
|
# @param sandbox_id [String]
|
|
2513
2513
|
# @param path [String]
|
|
2514
2514
|
# @param [Hash] opts the optional parameters
|
|
2515
2515
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
2516
2516
|
# @return [Array<GitCommitInfo>]
|
|
2517
|
-
def
|
|
2518
|
-
data, _status_code, _headers =
|
|
2517
|
+
def git_get_history(sandbox_id, path, opts = {})
|
|
2518
|
+
data, _status_code, _headers = git_get_history_with_http_info(sandbox_id, path, opts)
|
|
2519
2519
|
data
|
|
2520
2520
|
end
|
|
2521
2521
|
|
|
2522
|
-
#
|
|
2522
|
+
# Get commit history
|
|
2523
2523
|
# Get commit history from git repository
|
|
2524
2524
|
# @param sandbox_id [String]
|
|
2525
2525
|
# @param path [String]
|
|
2526
2526
|
# @param [Hash] opts the optional parameters
|
|
2527
2527
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
2528
2528
|
# @return [Array<(Array<GitCommitInfo>, Integer, Hash)>] Array<GitCommitInfo> data, response status code and response headers
|
|
2529
|
-
def
|
|
2529
|
+
def git_get_history_with_http_info(sandbox_id, path, opts = {})
|
|
2530
2530
|
if @api_client.config.debugging
|
|
2531
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
2531
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.git_get_history ...'
|
|
2532
2532
|
end
|
|
2533
2533
|
# verify the required parameter 'sandbox_id' is set
|
|
2534
2534
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
2535
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
2535
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.git_get_history"
|
|
2536
2536
|
end
|
|
2537
2537
|
# verify the required parameter 'path' is set
|
|
2538
2538
|
if @api_client.config.client_side_validation && path.nil?
|
|
2539
|
-
fail ArgumentError, "Missing the required parameter 'path' when calling ToolboxApi.
|
|
2539
|
+
fail ArgumentError, "Missing the required parameter 'path' when calling ToolboxApi.git_get_history"
|
|
2540
2540
|
end
|
|
2541
2541
|
# resource path
|
|
2542
2542
|
local_var_path = '/toolbox/{sandboxId}/toolbox/git/history'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -2564,7 +2564,7 @@ module DaytonaApiClient
|
|
|
2564
2564
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2565
2565
|
|
|
2566
2566
|
new_options = opts.merge(
|
|
2567
|
-
:operation => :"ToolboxApi.
|
|
2567
|
+
:operation => :"ToolboxApi.git_get_history",
|
|
2568
2568
|
:header_params => header_params,
|
|
2569
2569
|
:query_params => query_params,
|
|
2570
2570
|
:form_params => form_params,
|
|
@@ -2575,41 +2575,41 @@ module DaytonaApiClient
|
|
|
2575
2575
|
|
|
2576
2576
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2577
2577
|
if @api_client.config.debugging
|
|
2578
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
2578
|
+
@api_client.config.logger.debug "API called: ToolboxApi#git_get_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2579
2579
|
end
|
|
2580
2580
|
return data, status_code, headers
|
|
2581
2581
|
end
|
|
2582
2582
|
|
|
2583
|
-
#
|
|
2583
|
+
# Get git status
|
|
2584
2584
|
# Get status from git repository
|
|
2585
2585
|
# @param sandbox_id [String]
|
|
2586
2586
|
# @param path [String]
|
|
2587
2587
|
# @param [Hash] opts the optional parameters
|
|
2588
2588
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
2589
2589
|
# @return [GitStatus]
|
|
2590
|
-
def
|
|
2591
|
-
data, _status_code, _headers =
|
|
2590
|
+
def git_get_status(sandbox_id, path, opts = {})
|
|
2591
|
+
data, _status_code, _headers = git_get_status_with_http_info(sandbox_id, path, opts)
|
|
2592
2592
|
data
|
|
2593
2593
|
end
|
|
2594
2594
|
|
|
2595
|
-
#
|
|
2595
|
+
# Get git status
|
|
2596
2596
|
# Get status from git repository
|
|
2597
2597
|
# @param sandbox_id [String]
|
|
2598
2598
|
# @param path [String]
|
|
2599
2599
|
# @param [Hash] opts the optional parameters
|
|
2600
2600
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
2601
2601
|
# @return [Array<(GitStatus, Integer, Hash)>] GitStatus data, response status code and response headers
|
|
2602
|
-
def
|
|
2602
|
+
def git_get_status_with_http_info(sandbox_id, path, opts = {})
|
|
2603
2603
|
if @api_client.config.debugging
|
|
2604
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
2604
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.git_get_status ...'
|
|
2605
2605
|
end
|
|
2606
2606
|
# verify the required parameter 'sandbox_id' is set
|
|
2607
2607
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
2608
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
2608
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.git_get_status"
|
|
2609
2609
|
end
|
|
2610
2610
|
# verify the required parameter 'path' is set
|
|
2611
2611
|
if @api_client.config.client_side_validation && path.nil?
|
|
2612
|
-
fail ArgumentError, "Missing the required parameter 'path' when calling ToolboxApi.
|
|
2612
|
+
fail ArgumentError, "Missing the required parameter 'path' when calling ToolboxApi.git_get_status"
|
|
2613
2613
|
end
|
|
2614
2614
|
# resource path
|
|
2615
2615
|
local_var_path = '/toolbox/{sandboxId}/toolbox/git/status'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -2637,7 +2637,7 @@ module DaytonaApiClient
|
|
|
2637
2637
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2638
2638
|
|
|
2639
2639
|
new_options = opts.merge(
|
|
2640
|
-
:operation => :"ToolboxApi.
|
|
2640
|
+
:operation => :"ToolboxApi.git_get_status",
|
|
2641
2641
|
:header_params => header_params,
|
|
2642
2642
|
:query_params => query_params,
|
|
2643
2643
|
:form_params => form_params,
|
|
@@ -2648,41 +2648,41 @@ module DaytonaApiClient
|
|
|
2648
2648
|
|
|
2649
2649
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2650
2650
|
if @api_client.config.debugging
|
|
2651
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
2651
|
+
@api_client.config.logger.debug "API called: ToolboxApi#git_get_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2652
2652
|
end
|
|
2653
2653
|
return data, status_code, headers
|
|
2654
2654
|
end
|
|
2655
2655
|
|
|
2656
|
-
#
|
|
2656
|
+
# Get branch list
|
|
2657
2657
|
# Get branch list from git repository
|
|
2658
2658
|
# @param sandbox_id [String]
|
|
2659
2659
|
# @param path [String]
|
|
2660
2660
|
# @param [Hash] opts the optional parameters
|
|
2661
2661
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
2662
2662
|
# @return [ListBranchResponse]
|
|
2663
|
-
def
|
|
2664
|
-
data, _status_code, _headers =
|
|
2663
|
+
def git_list_branches(sandbox_id, path, opts = {})
|
|
2664
|
+
data, _status_code, _headers = git_list_branches_with_http_info(sandbox_id, path, opts)
|
|
2665
2665
|
data
|
|
2666
2666
|
end
|
|
2667
2667
|
|
|
2668
|
-
#
|
|
2668
|
+
# Get branch list
|
|
2669
2669
|
# Get branch list from git repository
|
|
2670
2670
|
# @param sandbox_id [String]
|
|
2671
2671
|
# @param path [String]
|
|
2672
2672
|
# @param [Hash] opts the optional parameters
|
|
2673
2673
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
2674
2674
|
# @return [Array<(ListBranchResponse, Integer, Hash)>] ListBranchResponse data, response status code and response headers
|
|
2675
|
-
def
|
|
2675
|
+
def git_list_branches_with_http_info(sandbox_id, path, opts = {})
|
|
2676
2676
|
if @api_client.config.debugging
|
|
2677
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
2677
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.git_list_branches ...'
|
|
2678
2678
|
end
|
|
2679
2679
|
# verify the required parameter 'sandbox_id' is set
|
|
2680
2680
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
2681
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
2681
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.git_list_branches"
|
|
2682
2682
|
end
|
|
2683
2683
|
# verify the required parameter 'path' is set
|
|
2684
2684
|
if @api_client.config.client_side_validation && path.nil?
|
|
2685
|
-
fail ArgumentError, "Missing the required parameter 'path' when calling ToolboxApi.
|
|
2685
|
+
fail ArgumentError, "Missing the required parameter 'path' when calling ToolboxApi.git_list_branches"
|
|
2686
2686
|
end
|
|
2687
2687
|
# resource path
|
|
2688
2688
|
local_var_path = '/toolbox/{sandboxId}/toolbox/git/branches'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -2710,7 +2710,7 @@ module DaytonaApiClient
|
|
|
2710
2710
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2711
2711
|
|
|
2712
2712
|
new_options = opts.merge(
|
|
2713
|
-
:operation => :"ToolboxApi.
|
|
2713
|
+
:operation => :"ToolboxApi.git_list_branches",
|
|
2714
2714
|
:header_params => header_params,
|
|
2715
2715
|
:query_params => query_params,
|
|
2716
2716
|
:form_params => form_params,
|
|
@@ -2721,41 +2721,41 @@ module DaytonaApiClient
|
|
|
2721
2721
|
|
|
2722
2722
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2723
2723
|
if @api_client.config.debugging
|
|
2724
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
2724
|
+
@api_client.config.logger.debug "API called: ToolboxApi#git_list_branches\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2725
2725
|
end
|
|
2726
2726
|
return data, status_code, headers
|
|
2727
2727
|
end
|
|
2728
2728
|
|
|
2729
|
-
#
|
|
2729
|
+
# Pull changes
|
|
2730
2730
|
# Pull changes from remote
|
|
2731
2731
|
# @param sandbox_id [String]
|
|
2732
2732
|
# @param git_repo_request [GitRepoRequest]
|
|
2733
2733
|
# @param [Hash] opts the optional parameters
|
|
2734
2734
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
2735
2735
|
# @return [nil]
|
|
2736
|
-
def
|
|
2737
|
-
|
|
2736
|
+
def git_pull_changes(sandbox_id, git_repo_request, opts = {})
|
|
2737
|
+
git_pull_changes_with_http_info(sandbox_id, git_repo_request, opts)
|
|
2738
2738
|
nil
|
|
2739
2739
|
end
|
|
2740
2740
|
|
|
2741
|
-
#
|
|
2741
|
+
# Pull changes
|
|
2742
2742
|
# Pull changes from remote
|
|
2743
2743
|
# @param sandbox_id [String]
|
|
2744
2744
|
# @param git_repo_request [GitRepoRequest]
|
|
2745
2745
|
# @param [Hash] opts the optional parameters
|
|
2746
2746
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
2747
2747
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
2748
|
-
def
|
|
2748
|
+
def git_pull_changes_with_http_info(sandbox_id, git_repo_request, opts = {})
|
|
2749
2749
|
if @api_client.config.debugging
|
|
2750
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
2750
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.git_pull_changes ...'
|
|
2751
2751
|
end
|
|
2752
2752
|
# verify the required parameter 'sandbox_id' is set
|
|
2753
2753
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
2754
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
2754
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.git_pull_changes"
|
|
2755
2755
|
end
|
|
2756
2756
|
# verify the required parameter 'git_repo_request' is set
|
|
2757
2757
|
if @api_client.config.client_side_validation && git_repo_request.nil?
|
|
2758
|
-
fail ArgumentError, "Missing the required parameter 'git_repo_request' when calling ToolboxApi.
|
|
2758
|
+
fail ArgumentError, "Missing the required parameter 'git_repo_request' when calling ToolboxApi.git_pull_changes"
|
|
2759
2759
|
end
|
|
2760
2760
|
# resource path
|
|
2761
2761
|
local_var_path = '/toolbox/{sandboxId}/toolbox/git/pull'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -2785,7 +2785,7 @@ module DaytonaApiClient
|
|
|
2785
2785
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2786
2786
|
|
|
2787
2787
|
new_options = opts.merge(
|
|
2788
|
-
:operation => :"ToolboxApi.
|
|
2788
|
+
:operation => :"ToolboxApi.git_pull_changes",
|
|
2789
2789
|
:header_params => header_params,
|
|
2790
2790
|
:query_params => query_params,
|
|
2791
2791
|
:form_params => form_params,
|
|
@@ -2796,41 +2796,41 @@ module DaytonaApiClient
|
|
|
2796
2796
|
|
|
2797
2797
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
2798
2798
|
if @api_client.config.debugging
|
|
2799
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
2799
|
+
@api_client.config.logger.debug "API called: ToolboxApi#git_pull_changes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2800
2800
|
end
|
|
2801
2801
|
return data, status_code, headers
|
|
2802
2802
|
end
|
|
2803
2803
|
|
|
2804
|
-
#
|
|
2804
|
+
# Push changes
|
|
2805
2805
|
# Push changes to remote
|
|
2806
2806
|
# @param sandbox_id [String]
|
|
2807
2807
|
# @param git_repo_request [GitRepoRequest]
|
|
2808
2808
|
# @param [Hash] opts the optional parameters
|
|
2809
2809
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
2810
2810
|
# @return [nil]
|
|
2811
|
-
def
|
|
2812
|
-
|
|
2811
|
+
def git_push_changes(sandbox_id, git_repo_request, opts = {})
|
|
2812
|
+
git_push_changes_with_http_info(sandbox_id, git_repo_request, opts)
|
|
2813
2813
|
nil
|
|
2814
2814
|
end
|
|
2815
2815
|
|
|
2816
|
-
#
|
|
2816
|
+
# Push changes
|
|
2817
2817
|
# Push changes to remote
|
|
2818
2818
|
# @param sandbox_id [String]
|
|
2819
2819
|
# @param git_repo_request [GitRepoRequest]
|
|
2820
2820
|
# @param [Hash] opts the optional parameters
|
|
2821
2821
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
2822
2822
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
2823
|
-
def
|
|
2823
|
+
def git_push_changes_with_http_info(sandbox_id, git_repo_request, opts = {})
|
|
2824
2824
|
if @api_client.config.debugging
|
|
2825
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
2825
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.git_push_changes ...'
|
|
2826
2826
|
end
|
|
2827
2827
|
# verify the required parameter 'sandbox_id' is set
|
|
2828
2828
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
2829
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
2829
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.git_push_changes"
|
|
2830
2830
|
end
|
|
2831
2831
|
# verify the required parameter 'git_repo_request' is set
|
|
2832
2832
|
if @api_client.config.client_side_validation && git_repo_request.nil?
|
|
2833
|
-
fail ArgumentError, "Missing the required parameter 'git_repo_request' when calling ToolboxApi.
|
|
2833
|
+
fail ArgumentError, "Missing the required parameter 'git_repo_request' when calling ToolboxApi.git_push_changes"
|
|
2834
2834
|
end
|
|
2835
2835
|
# resource path
|
|
2836
2836
|
local_var_path = '/toolbox/{sandboxId}/toolbox/git/push'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -2860,7 +2860,7 @@ module DaytonaApiClient
|
|
|
2860
2860
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2861
2861
|
|
|
2862
2862
|
new_options = opts.merge(
|
|
2863
|
-
:operation => :"ToolboxApi.
|
|
2863
|
+
:operation => :"ToolboxApi.git_push_changes",
|
|
2864
2864
|
:header_params => header_params,
|
|
2865
2865
|
:query_params => query_params,
|
|
2866
2866
|
:form_params => form_params,
|
|
@@ -2871,35 +2871,35 @@ module DaytonaApiClient
|
|
|
2871
2871
|
|
|
2872
2872
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
2873
2873
|
if @api_client.config.debugging
|
|
2874
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
2874
|
+
@api_client.config.logger.debug "API called: ToolboxApi#git_push_changes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2875
2875
|
end
|
|
2876
2876
|
return data, status_code, headers
|
|
2877
2877
|
end
|
|
2878
2878
|
|
|
2879
|
-
#
|
|
2879
|
+
# List files
|
|
2880
2880
|
# @param sandbox_id [String]
|
|
2881
2881
|
# @param [Hash] opts the optional parameters
|
|
2882
2882
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
2883
2883
|
# @option opts [String] :path
|
|
2884
2884
|
# @return [Array<FileInfo>]
|
|
2885
|
-
def
|
|
2886
|
-
data, _status_code, _headers =
|
|
2885
|
+
def list_files(sandbox_id, opts = {})
|
|
2886
|
+
data, _status_code, _headers = list_files_with_http_info(sandbox_id, opts)
|
|
2887
2887
|
data
|
|
2888
2888
|
end
|
|
2889
2889
|
|
|
2890
|
-
#
|
|
2890
|
+
# List files
|
|
2891
2891
|
# @param sandbox_id [String]
|
|
2892
2892
|
# @param [Hash] opts the optional parameters
|
|
2893
2893
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
2894
2894
|
# @option opts [String] :path
|
|
2895
2895
|
# @return [Array<(Array<FileInfo>, Integer, Hash)>] Array<FileInfo> data, response status code and response headers
|
|
2896
|
-
def
|
|
2896
|
+
def list_files_with_http_info(sandbox_id, opts = {})
|
|
2897
2897
|
if @api_client.config.debugging
|
|
2898
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
2898
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.list_files ...'
|
|
2899
2899
|
end
|
|
2900
2900
|
# verify the required parameter 'sandbox_id' is set
|
|
2901
2901
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
2902
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
2902
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.list_files"
|
|
2903
2903
|
end
|
|
2904
2904
|
# resource path
|
|
2905
2905
|
local_var_path = '/toolbox/{sandboxId}/toolbox/files'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -2927,7 +2927,7 @@ module DaytonaApiClient
|
|
|
2927
2927
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2928
2928
|
|
|
2929
2929
|
new_options = opts.merge(
|
|
2930
|
-
:operation => :"ToolboxApi.
|
|
2930
|
+
:operation => :"ToolboxApi.list_files",
|
|
2931
2931
|
:header_params => header_params,
|
|
2932
2932
|
:query_params => query_params,
|
|
2933
2933
|
:form_params => form_params,
|
|
@@ -2938,35 +2938,35 @@ module DaytonaApiClient
|
|
|
2938
2938
|
|
|
2939
2939
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2940
2940
|
if @api_client.config.debugging
|
|
2941
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
2941
|
+
@api_client.config.logger.debug "API called: ToolboxApi#list_files\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2942
2942
|
end
|
|
2943
2943
|
return data, status_code, headers
|
|
2944
2944
|
end
|
|
2945
2945
|
|
|
2946
|
-
#
|
|
2946
|
+
# List PTY sessions
|
|
2947
2947
|
# List all active PTY sessions in the sandbox
|
|
2948
2948
|
# @param sandbox_id [String]
|
|
2949
2949
|
# @param [Hash] opts the optional parameters
|
|
2950
2950
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
2951
2951
|
# @return [PtyListResponse]
|
|
2952
|
-
def
|
|
2953
|
-
data, _status_code, _headers =
|
|
2952
|
+
def list_pty_sessions(sandbox_id, opts = {})
|
|
2953
|
+
data, _status_code, _headers = list_pty_sessions_with_http_info(sandbox_id, opts)
|
|
2954
2954
|
data
|
|
2955
2955
|
end
|
|
2956
2956
|
|
|
2957
|
-
#
|
|
2957
|
+
# List PTY sessions
|
|
2958
2958
|
# List all active PTY sessions in the sandbox
|
|
2959
2959
|
# @param sandbox_id [String]
|
|
2960
2960
|
# @param [Hash] opts the optional parameters
|
|
2961
2961
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
2962
2962
|
# @return [Array<(PtyListResponse, Integer, Hash)>] PtyListResponse data, response status code and response headers
|
|
2963
|
-
def
|
|
2963
|
+
def list_pty_sessions_with_http_info(sandbox_id, opts = {})
|
|
2964
2964
|
if @api_client.config.debugging
|
|
2965
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
2965
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.list_pty_sessions ...'
|
|
2966
2966
|
end
|
|
2967
2967
|
# verify the required parameter 'sandbox_id' is set
|
|
2968
2968
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
2969
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
2969
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.list_pty_sessions"
|
|
2970
2970
|
end
|
|
2971
2971
|
# resource path
|
|
2972
2972
|
local_var_path = '/toolbox/{sandboxId}/toolbox/process/pty'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -2993,7 +2993,7 @@ module DaytonaApiClient
|
|
|
2993
2993
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2994
2994
|
|
|
2995
2995
|
new_options = opts.merge(
|
|
2996
|
-
:operation => :"ToolboxApi.
|
|
2996
|
+
:operation => :"ToolboxApi.list_pty_sessions",
|
|
2997
2997
|
:header_params => header_params,
|
|
2998
2998
|
:query_params => query_params,
|
|
2999
2999
|
:form_params => form_params,
|
|
@@ -3004,35 +3004,35 @@ module DaytonaApiClient
|
|
|
3004
3004
|
|
|
3005
3005
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
3006
3006
|
if @api_client.config.debugging
|
|
3007
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
3007
|
+
@api_client.config.logger.debug "API called: ToolboxApi#list_pty_sessions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3008
3008
|
end
|
|
3009
3009
|
return data, status_code, headers
|
|
3010
3010
|
end
|
|
3011
3011
|
|
|
3012
|
-
#
|
|
3012
|
+
# List sessions
|
|
3013
3013
|
# List all active sessions in the sandbox
|
|
3014
3014
|
# @param sandbox_id [String]
|
|
3015
3015
|
# @param [Hash] opts the optional parameters
|
|
3016
3016
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
3017
3017
|
# @return [Array<Session>]
|
|
3018
|
-
def
|
|
3019
|
-
data, _status_code, _headers =
|
|
3018
|
+
def list_sessions(sandbox_id, opts = {})
|
|
3019
|
+
data, _status_code, _headers = list_sessions_with_http_info(sandbox_id, opts)
|
|
3020
3020
|
data
|
|
3021
3021
|
end
|
|
3022
3022
|
|
|
3023
|
-
#
|
|
3023
|
+
# List sessions
|
|
3024
3024
|
# List all active sessions in the sandbox
|
|
3025
3025
|
# @param sandbox_id [String]
|
|
3026
3026
|
# @param [Hash] opts the optional parameters
|
|
3027
3027
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
3028
3028
|
# @return [Array<(Array<Session>, Integer, Hash)>] Array<Session> data, response status code and response headers
|
|
3029
|
-
def
|
|
3029
|
+
def list_sessions_with_http_info(sandbox_id, opts = {})
|
|
3030
3030
|
if @api_client.config.debugging
|
|
3031
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
3031
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.list_sessions ...'
|
|
3032
3032
|
end
|
|
3033
3033
|
# verify the required parameter 'sandbox_id' is set
|
|
3034
3034
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
3035
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
3035
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.list_sessions"
|
|
3036
3036
|
end
|
|
3037
3037
|
# resource path
|
|
3038
3038
|
local_var_path = '/toolbox/{sandboxId}/toolbox/process/session'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -3059,7 +3059,7 @@ module DaytonaApiClient
|
|
|
3059
3059
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
3060
3060
|
|
|
3061
3061
|
new_options = opts.merge(
|
|
3062
|
-
:operation => :"ToolboxApi.
|
|
3062
|
+
:operation => :"ToolboxApi.list_sessions",
|
|
3063
3063
|
:header_params => header_params,
|
|
3064
3064
|
:query_params => query_params,
|
|
3065
3065
|
:form_params => form_params,
|
|
@@ -3070,41 +3070,41 @@ module DaytonaApiClient
|
|
|
3070
3070
|
|
|
3071
3071
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
3072
3072
|
if @api_client.config.debugging
|
|
3073
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
3073
|
+
@api_client.config.logger.debug "API called: ToolboxApi#list_sessions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3074
3074
|
end
|
|
3075
3075
|
return data, status_code, headers
|
|
3076
3076
|
end
|
|
3077
3077
|
|
|
3078
|
-
#
|
|
3078
|
+
# Get Lsp Completions
|
|
3079
3079
|
# The Completion request is sent from the client to the server to compute completion items at a given cursor position.
|
|
3080
3080
|
# @param sandbox_id [String]
|
|
3081
3081
|
# @param lsp_completion_params [LspCompletionParams]
|
|
3082
3082
|
# @param [Hash] opts the optional parameters
|
|
3083
3083
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
3084
3084
|
# @return [CompletionList]
|
|
3085
|
-
def
|
|
3086
|
-
data, _status_code, _headers =
|
|
3085
|
+
def lsp_completions(sandbox_id, lsp_completion_params, opts = {})
|
|
3086
|
+
data, _status_code, _headers = lsp_completions_with_http_info(sandbox_id, lsp_completion_params, opts)
|
|
3087
3087
|
data
|
|
3088
3088
|
end
|
|
3089
3089
|
|
|
3090
|
-
#
|
|
3090
|
+
# Get Lsp Completions
|
|
3091
3091
|
# The Completion request is sent from the client to the server to compute completion items at a given cursor position.
|
|
3092
3092
|
# @param sandbox_id [String]
|
|
3093
3093
|
# @param lsp_completion_params [LspCompletionParams]
|
|
3094
3094
|
# @param [Hash] opts the optional parameters
|
|
3095
3095
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
3096
3096
|
# @return [Array<(CompletionList, Integer, Hash)>] CompletionList data, response status code and response headers
|
|
3097
|
-
def
|
|
3097
|
+
def lsp_completions_with_http_info(sandbox_id, lsp_completion_params, opts = {})
|
|
3098
3098
|
if @api_client.config.debugging
|
|
3099
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
3099
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.lsp_completions ...'
|
|
3100
3100
|
end
|
|
3101
3101
|
# verify the required parameter 'sandbox_id' is set
|
|
3102
3102
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
3103
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
3103
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.lsp_completions"
|
|
3104
3104
|
end
|
|
3105
3105
|
# verify the required parameter 'lsp_completion_params' is set
|
|
3106
3106
|
if @api_client.config.client_side_validation && lsp_completion_params.nil?
|
|
3107
|
-
fail ArgumentError, "Missing the required parameter 'lsp_completion_params' when calling ToolboxApi.
|
|
3107
|
+
fail ArgumentError, "Missing the required parameter 'lsp_completion_params' when calling ToolboxApi.lsp_completions"
|
|
3108
3108
|
end
|
|
3109
3109
|
# resource path
|
|
3110
3110
|
local_var_path = '/toolbox/{sandboxId}/toolbox/lsp/completions'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -3136,7 +3136,7 @@ module DaytonaApiClient
|
|
|
3136
3136
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
3137
3137
|
|
|
3138
3138
|
new_options = opts.merge(
|
|
3139
|
-
:operation => :"ToolboxApi.
|
|
3139
|
+
:operation => :"ToolboxApi.lsp_completions",
|
|
3140
3140
|
:header_params => header_params,
|
|
3141
3141
|
:query_params => query_params,
|
|
3142
3142
|
:form_params => form_params,
|
|
@@ -3147,41 +3147,41 @@ module DaytonaApiClient
|
|
|
3147
3147
|
|
|
3148
3148
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
3149
3149
|
if @api_client.config.debugging
|
|
3150
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
3150
|
+
@api_client.config.logger.debug "API called: ToolboxApi#lsp_completions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3151
3151
|
end
|
|
3152
3152
|
return data, status_code, headers
|
|
3153
3153
|
end
|
|
3154
3154
|
|
|
3155
|
-
#
|
|
3155
|
+
# Call Lsp DidClose
|
|
3156
3156
|
# The document close notification is sent from the client to the server when the document got closed in the client.
|
|
3157
3157
|
# @param sandbox_id [String]
|
|
3158
3158
|
# @param lsp_document_request [LspDocumentRequest]
|
|
3159
3159
|
# @param [Hash] opts the optional parameters
|
|
3160
3160
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
3161
3161
|
# @return [nil]
|
|
3162
|
-
def
|
|
3163
|
-
|
|
3162
|
+
def lsp_did_close(sandbox_id, lsp_document_request, opts = {})
|
|
3163
|
+
lsp_did_close_with_http_info(sandbox_id, lsp_document_request, opts)
|
|
3164
3164
|
nil
|
|
3165
3165
|
end
|
|
3166
3166
|
|
|
3167
|
-
#
|
|
3167
|
+
# Call Lsp DidClose
|
|
3168
3168
|
# The document close notification is sent from the client to the server when the document got closed in the client.
|
|
3169
3169
|
# @param sandbox_id [String]
|
|
3170
3170
|
# @param lsp_document_request [LspDocumentRequest]
|
|
3171
3171
|
# @param [Hash] opts the optional parameters
|
|
3172
3172
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
3173
3173
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
3174
|
-
def
|
|
3174
|
+
def lsp_did_close_with_http_info(sandbox_id, lsp_document_request, opts = {})
|
|
3175
3175
|
if @api_client.config.debugging
|
|
3176
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
3176
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.lsp_did_close ...'
|
|
3177
3177
|
end
|
|
3178
3178
|
# verify the required parameter 'sandbox_id' is set
|
|
3179
3179
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
3180
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
3180
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.lsp_did_close"
|
|
3181
3181
|
end
|
|
3182
3182
|
# verify the required parameter 'lsp_document_request' is set
|
|
3183
3183
|
if @api_client.config.client_side_validation && lsp_document_request.nil?
|
|
3184
|
-
fail ArgumentError, "Missing the required parameter 'lsp_document_request' when calling ToolboxApi.
|
|
3184
|
+
fail ArgumentError, "Missing the required parameter 'lsp_document_request' when calling ToolboxApi.lsp_did_close"
|
|
3185
3185
|
end
|
|
3186
3186
|
# resource path
|
|
3187
3187
|
local_var_path = '/toolbox/{sandboxId}/toolbox/lsp/did-close'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -3211,7 +3211,7 @@ module DaytonaApiClient
|
|
|
3211
3211
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
3212
3212
|
|
|
3213
3213
|
new_options = opts.merge(
|
|
3214
|
-
:operation => :"ToolboxApi.
|
|
3214
|
+
:operation => :"ToolboxApi.lsp_did_close",
|
|
3215
3215
|
:header_params => header_params,
|
|
3216
3216
|
:query_params => query_params,
|
|
3217
3217
|
:form_params => form_params,
|
|
@@ -3222,41 +3222,41 @@ module DaytonaApiClient
|
|
|
3222
3222
|
|
|
3223
3223
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
3224
3224
|
if @api_client.config.debugging
|
|
3225
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
3225
|
+
@api_client.config.logger.debug "API called: ToolboxApi#lsp_did_close\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3226
3226
|
end
|
|
3227
3227
|
return data, status_code, headers
|
|
3228
3228
|
end
|
|
3229
3229
|
|
|
3230
|
-
#
|
|
3230
|
+
# Call Lsp DidOpen
|
|
3231
3231
|
# The document open notification is sent from the client to the server to signal newly opened text documents.
|
|
3232
3232
|
# @param sandbox_id [String]
|
|
3233
3233
|
# @param lsp_document_request [LspDocumentRequest]
|
|
3234
3234
|
# @param [Hash] opts the optional parameters
|
|
3235
3235
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
3236
3236
|
# @return [nil]
|
|
3237
|
-
def
|
|
3238
|
-
|
|
3237
|
+
def lsp_did_open(sandbox_id, lsp_document_request, opts = {})
|
|
3238
|
+
lsp_did_open_with_http_info(sandbox_id, lsp_document_request, opts)
|
|
3239
3239
|
nil
|
|
3240
3240
|
end
|
|
3241
3241
|
|
|
3242
|
-
#
|
|
3242
|
+
# Call Lsp DidOpen
|
|
3243
3243
|
# The document open notification is sent from the client to the server to signal newly opened text documents.
|
|
3244
3244
|
# @param sandbox_id [String]
|
|
3245
3245
|
# @param lsp_document_request [LspDocumentRequest]
|
|
3246
3246
|
# @param [Hash] opts the optional parameters
|
|
3247
3247
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
3248
3248
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
3249
|
-
def
|
|
3249
|
+
def lsp_did_open_with_http_info(sandbox_id, lsp_document_request, opts = {})
|
|
3250
3250
|
if @api_client.config.debugging
|
|
3251
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
3251
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.lsp_did_open ...'
|
|
3252
3252
|
end
|
|
3253
3253
|
# verify the required parameter 'sandbox_id' is set
|
|
3254
3254
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
3255
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
3255
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.lsp_did_open"
|
|
3256
3256
|
end
|
|
3257
3257
|
# verify the required parameter 'lsp_document_request' is set
|
|
3258
3258
|
if @api_client.config.client_side_validation && lsp_document_request.nil?
|
|
3259
|
-
fail ArgumentError, "Missing the required parameter 'lsp_document_request' when calling ToolboxApi.
|
|
3259
|
+
fail ArgumentError, "Missing the required parameter 'lsp_document_request' when calling ToolboxApi.lsp_did_open"
|
|
3260
3260
|
end
|
|
3261
3261
|
# resource path
|
|
3262
3262
|
local_var_path = '/toolbox/{sandboxId}/toolbox/lsp/did-open'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -3286,7 +3286,7 @@ module DaytonaApiClient
|
|
|
3286
3286
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
3287
3287
|
|
|
3288
3288
|
new_options = opts.merge(
|
|
3289
|
-
:operation => :"ToolboxApi.
|
|
3289
|
+
:operation => :"ToolboxApi.lsp_did_open",
|
|
3290
3290
|
:header_params => header_params,
|
|
3291
3291
|
:query_params => query_params,
|
|
3292
3292
|
:form_params => form_params,
|
|
@@ -3297,12 +3297,12 @@ module DaytonaApiClient
|
|
|
3297
3297
|
|
|
3298
3298
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
3299
3299
|
if @api_client.config.debugging
|
|
3300
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
3300
|
+
@api_client.config.logger.debug "API called: ToolboxApi#lsp_did_open\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3301
3301
|
end
|
|
3302
3302
|
return data, status_code, headers
|
|
3303
3303
|
end
|
|
3304
3304
|
|
|
3305
|
-
#
|
|
3305
|
+
# Call Lsp DocumentSymbols
|
|
3306
3306
|
# The document symbol request is sent from the client to the server.
|
|
3307
3307
|
# @param sandbox_id [String]
|
|
3308
3308
|
# @param language_id [String]
|
|
@@ -3311,12 +3311,12 @@ module DaytonaApiClient
|
|
|
3311
3311
|
# @param [Hash] opts the optional parameters
|
|
3312
3312
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
3313
3313
|
# @return [Array<LspSymbol>]
|
|
3314
|
-
def
|
|
3315
|
-
data, _status_code, _headers =
|
|
3314
|
+
def lsp_document_symbols(sandbox_id, language_id, path_to_project, uri, opts = {})
|
|
3315
|
+
data, _status_code, _headers = lsp_document_symbols_with_http_info(sandbox_id, language_id, path_to_project, uri, opts)
|
|
3316
3316
|
data
|
|
3317
3317
|
end
|
|
3318
3318
|
|
|
3319
|
-
#
|
|
3319
|
+
# Call Lsp DocumentSymbols
|
|
3320
3320
|
# The document symbol request is sent from the client to the server.
|
|
3321
3321
|
# @param sandbox_id [String]
|
|
3322
3322
|
# @param language_id [String]
|
|
@@ -3325,25 +3325,25 @@ module DaytonaApiClient
|
|
|
3325
3325
|
# @param [Hash] opts the optional parameters
|
|
3326
3326
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
3327
3327
|
# @return [Array<(Array<LspSymbol>, Integer, Hash)>] Array<LspSymbol> data, response status code and response headers
|
|
3328
|
-
def
|
|
3328
|
+
def lsp_document_symbols_with_http_info(sandbox_id, language_id, path_to_project, uri, opts = {})
|
|
3329
3329
|
if @api_client.config.debugging
|
|
3330
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
3330
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.lsp_document_symbols ...'
|
|
3331
3331
|
end
|
|
3332
3332
|
# verify the required parameter 'sandbox_id' is set
|
|
3333
3333
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
3334
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
3334
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.lsp_document_symbols"
|
|
3335
3335
|
end
|
|
3336
3336
|
# verify the required parameter 'language_id' is set
|
|
3337
3337
|
if @api_client.config.client_side_validation && language_id.nil?
|
|
3338
|
-
fail ArgumentError, "Missing the required parameter 'language_id' when calling ToolboxApi.
|
|
3338
|
+
fail ArgumentError, "Missing the required parameter 'language_id' when calling ToolboxApi.lsp_document_symbols"
|
|
3339
3339
|
end
|
|
3340
3340
|
# verify the required parameter 'path_to_project' is set
|
|
3341
3341
|
if @api_client.config.client_side_validation && path_to_project.nil?
|
|
3342
|
-
fail ArgumentError, "Missing the required parameter 'path_to_project' when calling ToolboxApi.
|
|
3342
|
+
fail ArgumentError, "Missing the required parameter 'path_to_project' when calling ToolboxApi.lsp_document_symbols"
|
|
3343
3343
|
end
|
|
3344
3344
|
# verify the required parameter 'uri' is set
|
|
3345
3345
|
if @api_client.config.client_side_validation && uri.nil?
|
|
3346
|
-
fail ArgumentError, "Missing the required parameter 'uri' when calling ToolboxApi.
|
|
3346
|
+
fail ArgumentError, "Missing the required parameter 'uri' when calling ToolboxApi.lsp_document_symbols"
|
|
3347
3347
|
end
|
|
3348
3348
|
# resource path
|
|
3349
3349
|
local_var_path = '/toolbox/{sandboxId}/toolbox/lsp/document-symbols'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -3373,7 +3373,7 @@ module DaytonaApiClient
|
|
|
3373
3373
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
3374
3374
|
|
|
3375
3375
|
new_options = opts.merge(
|
|
3376
|
-
:operation => :"ToolboxApi.
|
|
3376
|
+
:operation => :"ToolboxApi.lsp_document_symbols",
|
|
3377
3377
|
:header_params => header_params,
|
|
3378
3378
|
:query_params => query_params,
|
|
3379
3379
|
:form_params => form_params,
|
|
@@ -3384,41 +3384,41 @@ module DaytonaApiClient
|
|
|
3384
3384
|
|
|
3385
3385
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
3386
3386
|
if @api_client.config.debugging
|
|
3387
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
3387
|
+
@api_client.config.logger.debug "API called: ToolboxApi#lsp_document_symbols\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3388
3388
|
end
|
|
3389
3389
|
return data, status_code, headers
|
|
3390
3390
|
end
|
|
3391
3391
|
|
|
3392
|
-
#
|
|
3392
|
+
# Start Lsp server
|
|
3393
3393
|
# Start Lsp server process inside sandbox project
|
|
3394
3394
|
# @param sandbox_id [String]
|
|
3395
3395
|
# @param lsp_server_request [LspServerRequest]
|
|
3396
3396
|
# @param [Hash] opts the optional parameters
|
|
3397
3397
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
3398
3398
|
# @return [nil]
|
|
3399
|
-
def
|
|
3400
|
-
|
|
3399
|
+
def lsp_start(sandbox_id, lsp_server_request, opts = {})
|
|
3400
|
+
lsp_start_with_http_info(sandbox_id, lsp_server_request, opts)
|
|
3401
3401
|
nil
|
|
3402
3402
|
end
|
|
3403
3403
|
|
|
3404
|
-
#
|
|
3404
|
+
# Start Lsp server
|
|
3405
3405
|
# Start Lsp server process inside sandbox project
|
|
3406
3406
|
# @param sandbox_id [String]
|
|
3407
3407
|
# @param lsp_server_request [LspServerRequest]
|
|
3408
3408
|
# @param [Hash] opts the optional parameters
|
|
3409
3409
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
3410
3410
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
3411
|
-
def
|
|
3411
|
+
def lsp_start_with_http_info(sandbox_id, lsp_server_request, opts = {})
|
|
3412
3412
|
if @api_client.config.debugging
|
|
3413
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
3413
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.lsp_start ...'
|
|
3414
3414
|
end
|
|
3415
3415
|
# verify the required parameter 'sandbox_id' is set
|
|
3416
3416
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
3417
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
3417
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.lsp_start"
|
|
3418
3418
|
end
|
|
3419
3419
|
# verify the required parameter 'lsp_server_request' is set
|
|
3420
3420
|
if @api_client.config.client_side_validation && lsp_server_request.nil?
|
|
3421
|
-
fail ArgumentError, "Missing the required parameter 'lsp_server_request' when calling ToolboxApi.
|
|
3421
|
+
fail ArgumentError, "Missing the required parameter 'lsp_server_request' when calling ToolboxApi.lsp_start"
|
|
3422
3422
|
end
|
|
3423
3423
|
# resource path
|
|
3424
3424
|
local_var_path = '/toolbox/{sandboxId}/toolbox/lsp/start'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -3448,7 +3448,7 @@ module DaytonaApiClient
|
|
|
3448
3448
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
3449
3449
|
|
|
3450
3450
|
new_options = opts.merge(
|
|
3451
|
-
:operation => :"ToolboxApi.
|
|
3451
|
+
:operation => :"ToolboxApi.lsp_start",
|
|
3452
3452
|
:header_params => header_params,
|
|
3453
3453
|
:query_params => query_params,
|
|
3454
3454
|
:form_params => form_params,
|
|
@@ -3459,41 +3459,41 @@ module DaytonaApiClient
|
|
|
3459
3459
|
|
|
3460
3460
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
3461
3461
|
if @api_client.config.debugging
|
|
3462
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
3462
|
+
@api_client.config.logger.debug "API called: ToolboxApi#lsp_start\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3463
3463
|
end
|
|
3464
3464
|
return data, status_code, headers
|
|
3465
3465
|
end
|
|
3466
3466
|
|
|
3467
|
-
#
|
|
3467
|
+
# Stop Lsp server
|
|
3468
3468
|
# Stop Lsp server process inside sandbox project
|
|
3469
3469
|
# @param sandbox_id [String]
|
|
3470
3470
|
# @param lsp_server_request [LspServerRequest]
|
|
3471
3471
|
# @param [Hash] opts the optional parameters
|
|
3472
3472
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
3473
3473
|
# @return [nil]
|
|
3474
|
-
def
|
|
3475
|
-
|
|
3474
|
+
def lsp_stop(sandbox_id, lsp_server_request, opts = {})
|
|
3475
|
+
lsp_stop_with_http_info(sandbox_id, lsp_server_request, opts)
|
|
3476
3476
|
nil
|
|
3477
3477
|
end
|
|
3478
3478
|
|
|
3479
|
-
#
|
|
3479
|
+
# Stop Lsp server
|
|
3480
3480
|
# Stop Lsp server process inside sandbox project
|
|
3481
3481
|
# @param sandbox_id [String]
|
|
3482
3482
|
# @param lsp_server_request [LspServerRequest]
|
|
3483
3483
|
# @param [Hash] opts the optional parameters
|
|
3484
3484
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
3485
3485
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
3486
|
-
def
|
|
3486
|
+
def lsp_stop_with_http_info(sandbox_id, lsp_server_request, opts = {})
|
|
3487
3487
|
if @api_client.config.debugging
|
|
3488
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
3488
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.lsp_stop ...'
|
|
3489
3489
|
end
|
|
3490
3490
|
# verify the required parameter 'sandbox_id' is set
|
|
3491
3491
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
3492
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
3492
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.lsp_stop"
|
|
3493
3493
|
end
|
|
3494
3494
|
# verify the required parameter 'lsp_server_request' is set
|
|
3495
3495
|
if @api_client.config.client_side_validation && lsp_server_request.nil?
|
|
3496
|
-
fail ArgumentError, "Missing the required parameter 'lsp_server_request' when calling ToolboxApi.
|
|
3496
|
+
fail ArgumentError, "Missing the required parameter 'lsp_server_request' when calling ToolboxApi.lsp_stop"
|
|
3497
3497
|
end
|
|
3498
3498
|
# resource path
|
|
3499
3499
|
local_var_path = '/toolbox/{sandboxId}/toolbox/lsp/stop'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -3523,7 +3523,7 @@ module DaytonaApiClient
|
|
|
3523
3523
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
3524
3524
|
|
|
3525
3525
|
new_options = opts.merge(
|
|
3526
|
-
:operation => :"ToolboxApi.
|
|
3526
|
+
:operation => :"ToolboxApi.lsp_stop",
|
|
3527
3527
|
:header_params => header_params,
|
|
3528
3528
|
:query_params => query_params,
|
|
3529
3529
|
:form_params => form_params,
|
|
@@ -3534,12 +3534,12 @@ module DaytonaApiClient
|
|
|
3534
3534
|
|
|
3535
3535
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
3536
3536
|
if @api_client.config.debugging
|
|
3537
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
3537
|
+
@api_client.config.logger.debug "API called: ToolboxApi#lsp_stop\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3538
3538
|
end
|
|
3539
3539
|
return data, status_code, headers
|
|
3540
3540
|
end
|
|
3541
3541
|
|
|
3542
|
-
#
|
|
3542
|
+
# Call Lsp WorkspaceSymbols
|
|
3543
3543
|
# The workspace symbol request is sent from the client to the server to list project-wide symbols matching the query string.
|
|
3544
3544
|
# @param sandbox_id [String]
|
|
3545
3545
|
# @param language_id [String]
|
|
@@ -3548,12 +3548,12 @@ module DaytonaApiClient
|
|
|
3548
3548
|
# @param [Hash] opts the optional parameters
|
|
3549
3549
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
3550
3550
|
# @return [Array<LspSymbol>]
|
|
3551
|
-
def
|
|
3552
|
-
data, _status_code, _headers =
|
|
3551
|
+
def lsp_workspace_symbols(sandbox_id, language_id, path_to_project, query, opts = {})
|
|
3552
|
+
data, _status_code, _headers = lsp_workspace_symbols_with_http_info(sandbox_id, language_id, path_to_project, query, opts)
|
|
3553
3553
|
data
|
|
3554
3554
|
end
|
|
3555
3555
|
|
|
3556
|
-
#
|
|
3556
|
+
# Call Lsp WorkspaceSymbols
|
|
3557
3557
|
# The workspace symbol request is sent from the client to the server to list project-wide symbols matching the query string.
|
|
3558
3558
|
# @param sandbox_id [String]
|
|
3559
3559
|
# @param language_id [String]
|
|
@@ -3562,25 +3562,25 @@ module DaytonaApiClient
|
|
|
3562
3562
|
# @param [Hash] opts the optional parameters
|
|
3563
3563
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
3564
3564
|
# @return [Array<(Array<LspSymbol>, Integer, Hash)>] Array<LspSymbol> data, response status code and response headers
|
|
3565
|
-
def
|
|
3565
|
+
def lsp_workspace_symbols_with_http_info(sandbox_id, language_id, path_to_project, query, opts = {})
|
|
3566
3566
|
if @api_client.config.debugging
|
|
3567
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
3567
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.lsp_workspace_symbols ...'
|
|
3568
3568
|
end
|
|
3569
3569
|
# verify the required parameter 'sandbox_id' is set
|
|
3570
3570
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
3571
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
3571
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.lsp_workspace_symbols"
|
|
3572
3572
|
end
|
|
3573
3573
|
# verify the required parameter 'language_id' is set
|
|
3574
3574
|
if @api_client.config.client_side_validation && language_id.nil?
|
|
3575
|
-
fail ArgumentError, "Missing the required parameter 'language_id' when calling ToolboxApi.
|
|
3575
|
+
fail ArgumentError, "Missing the required parameter 'language_id' when calling ToolboxApi.lsp_workspace_symbols"
|
|
3576
3576
|
end
|
|
3577
3577
|
# verify the required parameter 'path_to_project' is set
|
|
3578
3578
|
if @api_client.config.client_side_validation && path_to_project.nil?
|
|
3579
|
-
fail ArgumentError, "Missing the required parameter 'path_to_project' when calling ToolboxApi.
|
|
3579
|
+
fail ArgumentError, "Missing the required parameter 'path_to_project' when calling ToolboxApi.lsp_workspace_symbols"
|
|
3580
3580
|
end
|
|
3581
3581
|
# verify the required parameter 'query' is set
|
|
3582
3582
|
if @api_client.config.client_side_validation && query.nil?
|
|
3583
|
-
fail ArgumentError, "Missing the required parameter 'query' when calling ToolboxApi.
|
|
3583
|
+
fail ArgumentError, "Missing the required parameter 'query' when calling ToolboxApi.lsp_workspace_symbols"
|
|
3584
3584
|
end
|
|
3585
3585
|
# resource path
|
|
3586
3586
|
local_var_path = '/toolbox/{sandboxId}/toolbox/lsp/workspace-symbols'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -3610,7 +3610,7 @@ module DaytonaApiClient
|
|
|
3610
3610
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
3611
3611
|
|
|
3612
3612
|
new_options = opts.merge(
|
|
3613
|
-
:operation => :"ToolboxApi.
|
|
3613
|
+
:operation => :"ToolboxApi.lsp_workspace_symbols",
|
|
3614
3614
|
:header_params => header_params,
|
|
3615
3615
|
:query_params => query_params,
|
|
3616
3616
|
:form_params => form_params,
|
|
@@ -3621,12 +3621,12 @@ module DaytonaApiClient
|
|
|
3621
3621
|
|
|
3622
3622
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
3623
3623
|
if @api_client.config.debugging
|
|
3624
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
3624
|
+
@api_client.config.logger.debug "API called: ToolboxApi#lsp_workspace_symbols\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3625
3625
|
end
|
|
3626
3626
|
return data, status_code, headers
|
|
3627
3627
|
end
|
|
3628
3628
|
|
|
3629
|
-
#
|
|
3629
|
+
# Move file
|
|
3630
3630
|
# Move file inside sandbox
|
|
3631
3631
|
# @param sandbox_id [String]
|
|
3632
3632
|
# @param source [String]
|
|
@@ -3634,12 +3634,12 @@ module DaytonaApiClient
|
|
|
3634
3634
|
# @param [Hash] opts the optional parameters
|
|
3635
3635
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
3636
3636
|
# @return [nil]
|
|
3637
|
-
def
|
|
3638
|
-
|
|
3637
|
+
def move_file(sandbox_id, source, destination, opts = {})
|
|
3638
|
+
move_file_with_http_info(sandbox_id, source, destination, opts)
|
|
3639
3639
|
nil
|
|
3640
3640
|
end
|
|
3641
3641
|
|
|
3642
|
-
#
|
|
3642
|
+
# Move file
|
|
3643
3643
|
# Move file inside sandbox
|
|
3644
3644
|
# @param sandbox_id [String]
|
|
3645
3645
|
# @param source [String]
|
|
@@ -3647,21 +3647,21 @@ module DaytonaApiClient
|
|
|
3647
3647
|
# @param [Hash] opts the optional parameters
|
|
3648
3648
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
3649
3649
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
3650
|
-
def
|
|
3650
|
+
def move_file_with_http_info(sandbox_id, source, destination, opts = {})
|
|
3651
3651
|
if @api_client.config.debugging
|
|
3652
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
3652
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.move_file ...'
|
|
3653
3653
|
end
|
|
3654
3654
|
# verify the required parameter 'sandbox_id' is set
|
|
3655
3655
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
3656
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
3656
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.move_file"
|
|
3657
3657
|
end
|
|
3658
3658
|
# verify the required parameter 'source' is set
|
|
3659
3659
|
if @api_client.config.client_side_validation && source.nil?
|
|
3660
|
-
fail ArgumentError, "Missing the required parameter 'source' when calling ToolboxApi.
|
|
3660
|
+
fail ArgumentError, "Missing the required parameter 'source' when calling ToolboxApi.move_file"
|
|
3661
3661
|
end
|
|
3662
3662
|
# verify the required parameter 'destination' is set
|
|
3663
3663
|
if @api_client.config.client_side_validation && destination.nil?
|
|
3664
|
-
fail ArgumentError, "Missing the required parameter 'destination' when calling ToolboxApi.
|
|
3664
|
+
fail ArgumentError, "Missing the required parameter 'destination' when calling ToolboxApi.move_file"
|
|
3665
3665
|
end
|
|
3666
3666
|
# resource path
|
|
3667
3667
|
local_var_path = '/toolbox/{sandboxId}/toolbox/files/move'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -3688,7 +3688,7 @@ module DaytonaApiClient
|
|
|
3688
3688
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
3689
3689
|
|
|
3690
3690
|
new_options = opts.merge(
|
|
3691
|
-
:operation => :"ToolboxApi.
|
|
3691
|
+
:operation => :"ToolboxApi.move_file",
|
|
3692
3692
|
:header_params => header_params,
|
|
3693
3693
|
:query_params => query_params,
|
|
3694
3694
|
:form_params => form_params,
|
|
@@ -3699,41 +3699,41 @@ module DaytonaApiClient
|
|
|
3699
3699
|
|
|
3700
3700
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
3701
3701
|
if @api_client.config.debugging
|
|
3702
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
3702
|
+
@api_client.config.logger.debug "API called: ToolboxApi#move_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3703
3703
|
end
|
|
3704
3704
|
return data, status_code, headers
|
|
3705
3705
|
end
|
|
3706
3706
|
|
|
3707
|
-
#
|
|
3707
|
+
# Move mouse
|
|
3708
3708
|
# Move mouse cursor to specified coordinates
|
|
3709
3709
|
# @param sandbox_id [String]
|
|
3710
3710
|
# @param mouse_move_request [MouseMoveRequest]
|
|
3711
3711
|
# @param [Hash] opts the optional parameters
|
|
3712
3712
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
3713
3713
|
# @return [MouseMoveResponse]
|
|
3714
|
-
def
|
|
3715
|
-
data, _status_code, _headers =
|
|
3714
|
+
def move_mouse(sandbox_id, mouse_move_request, opts = {})
|
|
3715
|
+
data, _status_code, _headers = move_mouse_with_http_info(sandbox_id, mouse_move_request, opts)
|
|
3716
3716
|
data
|
|
3717
3717
|
end
|
|
3718
3718
|
|
|
3719
|
-
#
|
|
3719
|
+
# Move mouse
|
|
3720
3720
|
# Move mouse cursor to specified coordinates
|
|
3721
3721
|
# @param sandbox_id [String]
|
|
3722
3722
|
# @param mouse_move_request [MouseMoveRequest]
|
|
3723
3723
|
# @param [Hash] opts the optional parameters
|
|
3724
3724
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
3725
3725
|
# @return [Array<(MouseMoveResponse, Integer, Hash)>] MouseMoveResponse data, response status code and response headers
|
|
3726
|
-
def
|
|
3726
|
+
def move_mouse_with_http_info(sandbox_id, mouse_move_request, opts = {})
|
|
3727
3727
|
if @api_client.config.debugging
|
|
3728
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
3728
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.move_mouse ...'
|
|
3729
3729
|
end
|
|
3730
3730
|
# verify the required parameter 'sandbox_id' is set
|
|
3731
3731
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
3732
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
3732
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.move_mouse"
|
|
3733
3733
|
end
|
|
3734
3734
|
# verify the required parameter 'mouse_move_request' is set
|
|
3735
3735
|
if @api_client.config.client_side_validation && mouse_move_request.nil?
|
|
3736
|
-
fail ArgumentError, "Missing the required parameter 'mouse_move_request' when calling ToolboxApi.
|
|
3736
|
+
fail ArgumentError, "Missing the required parameter 'mouse_move_request' when calling ToolboxApi.move_mouse"
|
|
3737
3737
|
end
|
|
3738
3738
|
# resource path
|
|
3739
3739
|
local_var_path = '/toolbox/{sandboxId}/toolbox/computeruse/mouse/move'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -3765,7 +3765,7 @@ module DaytonaApiClient
|
|
|
3765
3765
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
3766
3766
|
|
|
3767
3767
|
new_options = opts.merge(
|
|
3768
|
-
:operation => :"ToolboxApi.
|
|
3768
|
+
:operation => :"ToolboxApi.move_mouse",
|
|
3769
3769
|
:header_params => header_params,
|
|
3770
3770
|
:query_params => query_params,
|
|
3771
3771
|
:form_params => form_params,
|
|
@@ -3776,41 +3776,41 @@ module DaytonaApiClient
|
|
|
3776
3776
|
|
|
3777
3777
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
3778
3778
|
if @api_client.config.debugging
|
|
3779
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
3779
|
+
@api_client.config.logger.debug "API called: ToolboxApi#move_mouse\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3780
3780
|
end
|
|
3781
3781
|
return data, status_code, headers
|
|
3782
3782
|
end
|
|
3783
3783
|
|
|
3784
|
-
#
|
|
3784
|
+
# Press hotkey
|
|
3785
3785
|
# Press a hotkey combination
|
|
3786
3786
|
# @param sandbox_id [String]
|
|
3787
3787
|
# @param keyboard_hotkey_request [KeyboardHotkeyRequest]
|
|
3788
3788
|
# @param [Hash] opts the optional parameters
|
|
3789
3789
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
3790
3790
|
# @return [nil]
|
|
3791
|
-
def
|
|
3792
|
-
|
|
3791
|
+
def press_hotkey(sandbox_id, keyboard_hotkey_request, opts = {})
|
|
3792
|
+
press_hotkey_with_http_info(sandbox_id, keyboard_hotkey_request, opts)
|
|
3793
3793
|
nil
|
|
3794
3794
|
end
|
|
3795
3795
|
|
|
3796
|
-
#
|
|
3796
|
+
# Press hotkey
|
|
3797
3797
|
# Press a hotkey combination
|
|
3798
3798
|
# @param sandbox_id [String]
|
|
3799
3799
|
# @param keyboard_hotkey_request [KeyboardHotkeyRequest]
|
|
3800
3800
|
# @param [Hash] opts the optional parameters
|
|
3801
3801
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
3802
3802
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
3803
|
-
def
|
|
3803
|
+
def press_hotkey_with_http_info(sandbox_id, keyboard_hotkey_request, opts = {})
|
|
3804
3804
|
if @api_client.config.debugging
|
|
3805
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
3805
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.press_hotkey ...'
|
|
3806
3806
|
end
|
|
3807
3807
|
# verify the required parameter 'sandbox_id' is set
|
|
3808
3808
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
3809
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
3809
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.press_hotkey"
|
|
3810
3810
|
end
|
|
3811
3811
|
# verify the required parameter 'keyboard_hotkey_request' is set
|
|
3812
3812
|
if @api_client.config.client_side_validation && keyboard_hotkey_request.nil?
|
|
3813
|
-
fail ArgumentError, "Missing the required parameter 'keyboard_hotkey_request' when calling ToolboxApi.
|
|
3813
|
+
fail ArgumentError, "Missing the required parameter 'keyboard_hotkey_request' when calling ToolboxApi.press_hotkey"
|
|
3814
3814
|
end
|
|
3815
3815
|
# resource path
|
|
3816
3816
|
local_var_path = '/toolbox/{sandboxId}/toolbox/computeruse/keyboard/hotkey'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -3840,7 +3840,7 @@ module DaytonaApiClient
|
|
|
3840
3840
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
3841
3841
|
|
|
3842
3842
|
new_options = opts.merge(
|
|
3843
|
-
:operation => :"ToolboxApi.
|
|
3843
|
+
:operation => :"ToolboxApi.press_hotkey",
|
|
3844
3844
|
:header_params => header_params,
|
|
3845
3845
|
:query_params => query_params,
|
|
3846
3846
|
:form_params => form_params,
|
|
@@ -3851,41 +3851,41 @@ module DaytonaApiClient
|
|
|
3851
3851
|
|
|
3852
3852
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
3853
3853
|
if @api_client.config.debugging
|
|
3854
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
3854
|
+
@api_client.config.logger.debug "API called: ToolboxApi#press_hotkey\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3855
3855
|
end
|
|
3856
3856
|
return data, status_code, headers
|
|
3857
3857
|
end
|
|
3858
3858
|
|
|
3859
|
-
#
|
|
3859
|
+
# Press key
|
|
3860
3860
|
# Press a key with optional modifiers
|
|
3861
3861
|
# @param sandbox_id [String]
|
|
3862
3862
|
# @param keyboard_press_request [KeyboardPressRequest]
|
|
3863
3863
|
# @param [Hash] opts the optional parameters
|
|
3864
3864
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
3865
3865
|
# @return [nil]
|
|
3866
|
-
def
|
|
3867
|
-
|
|
3866
|
+
def press_key(sandbox_id, keyboard_press_request, opts = {})
|
|
3867
|
+
press_key_with_http_info(sandbox_id, keyboard_press_request, opts)
|
|
3868
3868
|
nil
|
|
3869
3869
|
end
|
|
3870
3870
|
|
|
3871
|
-
#
|
|
3871
|
+
# Press key
|
|
3872
3872
|
# Press a key with optional modifiers
|
|
3873
3873
|
# @param sandbox_id [String]
|
|
3874
3874
|
# @param keyboard_press_request [KeyboardPressRequest]
|
|
3875
3875
|
# @param [Hash] opts the optional parameters
|
|
3876
3876
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
3877
3877
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
3878
|
-
def
|
|
3878
|
+
def press_key_with_http_info(sandbox_id, keyboard_press_request, opts = {})
|
|
3879
3879
|
if @api_client.config.debugging
|
|
3880
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
3880
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.press_key ...'
|
|
3881
3881
|
end
|
|
3882
3882
|
# verify the required parameter 'sandbox_id' is set
|
|
3883
3883
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
3884
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
3884
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.press_key"
|
|
3885
3885
|
end
|
|
3886
3886
|
# verify the required parameter 'keyboard_press_request' is set
|
|
3887
3887
|
if @api_client.config.client_side_validation && keyboard_press_request.nil?
|
|
3888
|
-
fail ArgumentError, "Missing the required parameter 'keyboard_press_request' when calling ToolboxApi.
|
|
3888
|
+
fail ArgumentError, "Missing the required parameter 'keyboard_press_request' when calling ToolboxApi.press_key"
|
|
3889
3889
|
end
|
|
3890
3890
|
# resource path
|
|
3891
3891
|
local_var_path = '/toolbox/{sandboxId}/toolbox/computeruse/keyboard/key'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -3915,7 +3915,7 @@ module DaytonaApiClient
|
|
|
3915
3915
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
3916
3916
|
|
|
3917
3917
|
new_options = opts.merge(
|
|
3918
|
-
:operation => :"ToolboxApi.
|
|
3918
|
+
:operation => :"ToolboxApi.press_key",
|
|
3919
3919
|
:header_params => header_params,
|
|
3920
3920
|
:query_params => query_params,
|
|
3921
3921
|
:form_params => form_params,
|
|
@@ -3926,41 +3926,41 @@ module DaytonaApiClient
|
|
|
3926
3926
|
|
|
3927
3927
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
3928
3928
|
if @api_client.config.debugging
|
|
3929
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
3929
|
+
@api_client.config.logger.debug "API called: ToolboxApi#press_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3930
3930
|
end
|
|
3931
3931
|
return data, status_code, headers
|
|
3932
3932
|
end
|
|
3933
3933
|
|
|
3934
|
-
#
|
|
3934
|
+
# Replace in files
|
|
3935
3935
|
# Replace text/pattern in multiple files inside sandbox
|
|
3936
3936
|
# @param sandbox_id [String]
|
|
3937
3937
|
# @param replace_request [ReplaceRequest]
|
|
3938
3938
|
# @param [Hash] opts the optional parameters
|
|
3939
3939
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
3940
3940
|
# @return [Array<ReplaceResult>]
|
|
3941
|
-
def
|
|
3942
|
-
data, _status_code, _headers =
|
|
3941
|
+
def replace_in_files(sandbox_id, replace_request, opts = {})
|
|
3942
|
+
data, _status_code, _headers = replace_in_files_with_http_info(sandbox_id, replace_request, opts)
|
|
3943
3943
|
data
|
|
3944
3944
|
end
|
|
3945
3945
|
|
|
3946
|
-
#
|
|
3946
|
+
# Replace in files
|
|
3947
3947
|
# Replace text/pattern in multiple files inside sandbox
|
|
3948
3948
|
# @param sandbox_id [String]
|
|
3949
3949
|
# @param replace_request [ReplaceRequest]
|
|
3950
3950
|
# @param [Hash] opts the optional parameters
|
|
3951
3951
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
3952
3952
|
# @return [Array<(Array<ReplaceResult>, Integer, Hash)>] Array<ReplaceResult> data, response status code and response headers
|
|
3953
|
-
def
|
|
3953
|
+
def replace_in_files_with_http_info(sandbox_id, replace_request, opts = {})
|
|
3954
3954
|
if @api_client.config.debugging
|
|
3955
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
3955
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.replace_in_files ...'
|
|
3956
3956
|
end
|
|
3957
3957
|
# verify the required parameter 'sandbox_id' is set
|
|
3958
3958
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
3959
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
3959
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.replace_in_files"
|
|
3960
3960
|
end
|
|
3961
3961
|
# verify the required parameter 'replace_request' is set
|
|
3962
3962
|
if @api_client.config.client_side_validation && replace_request.nil?
|
|
3963
|
-
fail ArgumentError, "Missing the required parameter 'replace_request' when calling ToolboxApi.
|
|
3963
|
+
fail ArgumentError, "Missing the required parameter 'replace_request' when calling ToolboxApi.replace_in_files"
|
|
3964
3964
|
end
|
|
3965
3965
|
# resource path
|
|
3966
3966
|
local_var_path = '/toolbox/{sandboxId}/toolbox/files/replace'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -3992,7 +3992,7 @@ module DaytonaApiClient
|
|
|
3992
3992
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
3993
3993
|
|
|
3994
3994
|
new_options = opts.merge(
|
|
3995
|
-
:operation => :"ToolboxApi.
|
|
3995
|
+
:operation => :"ToolboxApi.replace_in_files",
|
|
3996
3996
|
:header_params => header_params,
|
|
3997
3997
|
:query_params => query_params,
|
|
3998
3998
|
:form_params => form_params,
|
|
@@ -4003,12 +4003,12 @@ module DaytonaApiClient
|
|
|
4003
4003
|
|
|
4004
4004
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
4005
4005
|
if @api_client.config.debugging
|
|
4006
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
4006
|
+
@api_client.config.logger.debug "API called: ToolboxApi#replace_in_files\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4007
4007
|
end
|
|
4008
4008
|
return data, status_code, headers
|
|
4009
4009
|
end
|
|
4010
4010
|
|
|
4011
|
-
#
|
|
4011
|
+
# Resize PTY session
|
|
4012
4012
|
# Resize a PTY session
|
|
4013
4013
|
# @param sandbox_id [String]
|
|
4014
4014
|
# @param session_id [String]
|
|
@@ -4016,12 +4016,12 @@ module DaytonaApiClient
|
|
|
4016
4016
|
# @param [Hash] opts the optional parameters
|
|
4017
4017
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
4018
4018
|
# @return [PtySessionInfo]
|
|
4019
|
-
def
|
|
4020
|
-
data, _status_code, _headers =
|
|
4019
|
+
def resize_pty_session(sandbox_id, session_id, pty_resize_request, opts = {})
|
|
4020
|
+
data, _status_code, _headers = resize_pty_session_with_http_info(sandbox_id, session_id, pty_resize_request, opts)
|
|
4021
4021
|
data
|
|
4022
4022
|
end
|
|
4023
4023
|
|
|
4024
|
-
#
|
|
4024
|
+
# Resize PTY session
|
|
4025
4025
|
# Resize a PTY session
|
|
4026
4026
|
# @param sandbox_id [String]
|
|
4027
4027
|
# @param session_id [String]
|
|
@@ -4029,21 +4029,21 @@ module DaytonaApiClient
|
|
|
4029
4029
|
# @param [Hash] opts the optional parameters
|
|
4030
4030
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
4031
4031
|
# @return [Array<(PtySessionInfo, Integer, Hash)>] PtySessionInfo data, response status code and response headers
|
|
4032
|
-
def
|
|
4032
|
+
def resize_pty_session_with_http_info(sandbox_id, session_id, pty_resize_request, opts = {})
|
|
4033
4033
|
if @api_client.config.debugging
|
|
4034
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
4034
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.resize_pty_session ...'
|
|
4035
4035
|
end
|
|
4036
4036
|
# verify the required parameter 'sandbox_id' is set
|
|
4037
4037
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
4038
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
4038
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.resize_pty_session"
|
|
4039
4039
|
end
|
|
4040
4040
|
# verify the required parameter 'session_id' is set
|
|
4041
4041
|
if @api_client.config.client_side_validation && session_id.nil?
|
|
4042
|
-
fail ArgumentError, "Missing the required parameter 'session_id' when calling ToolboxApi.
|
|
4042
|
+
fail ArgumentError, "Missing the required parameter 'session_id' when calling ToolboxApi.resize_pty_session"
|
|
4043
4043
|
end
|
|
4044
4044
|
# verify the required parameter 'pty_resize_request' is set
|
|
4045
4045
|
if @api_client.config.client_side_validation && pty_resize_request.nil?
|
|
4046
|
-
fail ArgumentError, "Missing the required parameter 'pty_resize_request' when calling ToolboxApi.
|
|
4046
|
+
fail ArgumentError, "Missing the required parameter 'pty_resize_request' when calling ToolboxApi.resize_pty_session"
|
|
4047
4047
|
end
|
|
4048
4048
|
# resource path
|
|
4049
4049
|
local_var_path = '/toolbox/{sandboxId}/toolbox/process/pty/{sessionId}/resize'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s)).sub('{' + 'sessionId' + '}', CGI.escape(session_id.to_s))
|
|
@@ -4075,7 +4075,7 @@ module DaytonaApiClient
|
|
|
4075
4075
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
4076
4076
|
|
|
4077
4077
|
new_options = opts.merge(
|
|
4078
|
-
:operation => :"ToolboxApi.
|
|
4078
|
+
:operation => :"ToolboxApi.resize_pty_session",
|
|
4079
4079
|
:header_params => header_params,
|
|
4080
4080
|
:query_params => query_params,
|
|
4081
4081
|
:form_params => form_params,
|
|
@@ -4086,41 +4086,41 @@ module DaytonaApiClient
|
|
|
4086
4086
|
|
|
4087
4087
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
4088
4088
|
if @api_client.config.debugging
|
|
4089
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
4089
|
+
@api_client.config.logger.debug "API called: ToolboxApi#resize_pty_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4090
4090
|
end
|
|
4091
4091
|
return data, status_code, headers
|
|
4092
4092
|
end
|
|
4093
4093
|
|
|
4094
|
-
#
|
|
4094
|
+
# Restart process
|
|
4095
4095
|
# Restart a specific VNC process
|
|
4096
4096
|
# @param process_name [String]
|
|
4097
4097
|
# @param sandbox_id [String]
|
|
4098
4098
|
# @param [Hash] opts the optional parameters
|
|
4099
4099
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
4100
4100
|
# @return [ProcessRestartResponse]
|
|
4101
|
-
def
|
|
4102
|
-
data, _status_code, _headers =
|
|
4101
|
+
def restart_process(process_name, sandbox_id, opts = {})
|
|
4102
|
+
data, _status_code, _headers = restart_process_with_http_info(process_name, sandbox_id, opts)
|
|
4103
4103
|
data
|
|
4104
4104
|
end
|
|
4105
4105
|
|
|
4106
|
-
#
|
|
4106
|
+
# Restart process
|
|
4107
4107
|
# Restart a specific VNC process
|
|
4108
4108
|
# @param process_name [String]
|
|
4109
4109
|
# @param sandbox_id [String]
|
|
4110
4110
|
# @param [Hash] opts the optional parameters
|
|
4111
4111
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
4112
4112
|
# @return [Array<(ProcessRestartResponse, Integer, Hash)>] ProcessRestartResponse data, response status code and response headers
|
|
4113
|
-
def
|
|
4113
|
+
def restart_process_with_http_info(process_name, sandbox_id, opts = {})
|
|
4114
4114
|
if @api_client.config.debugging
|
|
4115
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
4115
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.restart_process ...'
|
|
4116
4116
|
end
|
|
4117
4117
|
# verify the required parameter 'process_name' is set
|
|
4118
4118
|
if @api_client.config.client_side_validation && process_name.nil?
|
|
4119
|
-
fail ArgumentError, "Missing the required parameter 'process_name' when calling ToolboxApi.
|
|
4119
|
+
fail ArgumentError, "Missing the required parameter 'process_name' when calling ToolboxApi.restart_process"
|
|
4120
4120
|
end
|
|
4121
4121
|
# verify the required parameter 'sandbox_id' is set
|
|
4122
4122
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
4123
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
4123
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.restart_process"
|
|
4124
4124
|
end
|
|
4125
4125
|
# resource path
|
|
4126
4126
|
local_var_path = '/toolbox/{sandboxId}/toolbox/computeruse/process/{processName}/restart'.sub('{' + 'processName' + '}', CGI.escape(process_name.to_s)).sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -4147,7 +4147,7 @@ module DaytonaApiClient
|
|
|
4147
4147
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
4148
4148
|
|
|
4149
4149
|
new_options = opts.merge(
|
|
4150
|
-
:operation => :"ToolboxApi.
|
|
4150
|
+
:operation => :"ToolboxApi.restart_process",
|
|
4151
4151
|
:header_params => header_params,
|
|
4152
4152
|
:query_params => query_params,
|
|
4153
4153
|
:form_params => form_params,
|
|
@@ -4158,41 +4158,41 @@ module DaytonaApiClient
|
|
|
4158
4158
|
|
|
4159
4159
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
4160
4160
|
if @api_client.config.debugging
|
|
4161
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
4161
|
+
@api_client.config.logger.debug "API called: ToolboxApi#restart_process\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4162
4162
|
end
|
|
4163
4163
|
return data, status_code, headers
|
|
4164
4164
|
end
|
|
4165
4165
|
|
|
4166
|
-
#
|
|
4166
|
+
# Scroll mouse
|
|
4167
4167
|
# Scroll mouse at specified coordinates
|
|
4168
4168
|
# @param sandbox_id [String]
|
|
4169
4169
|
# @param mouse_scroll_request [MouseScrollRequest]
|
|
4170
4170
|
# @param [Hash] opts the optional parameters
|
|
4171
4171
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
4172
4172
|
# @return [MouseScrollResponse]
|
|
4173
|
-
def
|
|
4174
|
-
data, _status_code, _headers =
|
|
4173
|
+
def scroll_mouse(sandbox_id, mouse_scroll_request, opts = {})
|
|
4174
|
+
data, _status_code, _headers = scroll_mouse_with_http_info(sandbox_id, mouse_scroll_request, opts)
|
|
4175
4175
|
data
|
|
4176
4176
|
end
|
|
4177
4177
|
|
|
4178
|
-
#
|
|
4178
|
+
# Scroll mouse
|
|
4179
4179
|
# Scroll mouse at specified coordinates
|
|
4180
4180
|
# @param sandbox_id [String]
|
|
4181
4181
|
# @param mouse_scroll_request [MouseScrollRequest]
|
|
4182
4182
|
# @param [Hash] opts the optional parameters
|
|
4183
4183
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
4184
4184
|
# @return [Array<(MouseScrollResponse, Integer, Hash)>] MouseScrollResponse data, response status code and response headers
|
|
4185
|
-
def
|
|
4185
|
+
def scroll_mouse_with_http_info(sandbox_id, mouse_scroll_request, opts = {})
|
|
4186
4186
|
if @api_client.config.debugging
|
|
4187
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
4187
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.scroll_mouse ...'
|
|
4188
4188
|
end
|
|
4189
4189
|
# verify the required parameter 'sandbox_id' is set
|
|
4190
4190
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
4191
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
4191
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.scroll_mouse"
|
|
4192
4192
|
end
|
|
4193
4193
|
# verify the required parameter 'mouse_scroll_request' is set
|
|
4194
4194
|
if @api_client.config.client_side_validation && mouse_scroll_request.nil?
|
|
4195
|
-
fail ArgumentError, "Missing the required parameter 'mouse_scroll_request' when calling ToolboxApi.
|
|
4195
|
+
fail ArgumentError, "Missing the required parameter 'mouse_scroll_request' when calling ToolboxApi.scroll_mouse"
|
|
4196
4196
|
end
|
|
4197
4197
|
# resource path
|
|
4198
4198
|
local_var_path = '/toolbox/{sandboxId}/toolbox/computeruse/mouse/scroll'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -4224,7 +4224,7 @@ module DaytonaApiClient
|
|
|
4224
4224
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
4225
4225
|
|
|
4226
4226
|
new_options = opts.merge(
|
|
4227
|
-
:operation => :"ToolboxApi.
|
|
4227
|
+
:operation => :"ToolboxApi.scroll_mouse",
|
|
4228
4228
|
:header_params => header_params,
|
|
4229
4229
|
:query_params => query_params,
|
|
4230
4230
|
:form_params => form_params,
|
|
@@ -4235,12 +4235,12 @@ module DaytonaApiClient
|
|
|
4235
4235
|
|
|
4236
4236
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
4237
4237
|
if @api_client.config.debugging
|
|
4238
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
4238
|
+
@api_client.config.logger.debug "API called: ToolboxApi#scroll_mouse\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4239
4239
|
end
|
|
4240
4240
|
return data, status_code, headers
|
|
4241
4241
|
end
|
|
4242
4242
|
|
|
4243
|
-
#
|
|
4243
|
+
# Search files
|
|
4244
4244
|
# Search for files inside sandbox
|
|
4245
4245
|
# @param sandbox_id [String]
|
|
4246
4246
|
# @param path [String]
|
|
@@ -4248,12 +4248,12 @@ module DaytonaApiClient
|
|
|
4248
4248
|
# @param [Hash] opts the optional parameters
|
|
4249
4249
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
4250
4250
|
# @return [SearchFilesResponse]
|
|
4251
|
-
def
|
|
4252
|
-
data, _status_code, _headers =
|
|
4251
|
+
def search_files(sandbox_id, path, pattern, opts = {})
|
|
4252
|
+
data, _status_code, _headers = search_files_with_http_info(sandbox_id, path, pattern, opts)
|
|
4253
4253
|
data
|
|
4254
4254
|
end
|
|
4255
4255
|
|
|
4256
|
-
#
|
|
4256
|
+
# Search files
|
|
4257
4257
|
# Search for files inside sandbox
|
|
4258
4258
|
# @param sandbox_id [String]
|
|
4259
4259
|
# @param path [String]
|
|
@@ -4261,21 +4261,21 @@ module DaytonaApiClient
|
|
|
4261
4261
|
# @param [Hash] opts the optional parameters
|
|
4262
4262
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
4263
4263
|
# @return [Array<(SearchFilesResponse, Integer, Hash)>] SearchFilesResponse data, response status code and response headers
|
|
4264
|
-
def
|
|
4264
|
+
def search_files_with_http_info(sandbox_id, path, pattern, opts = {})
|
|
4265
4265
|
if @api_client.config.debugging
|
|
4266
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
4266
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.search_files ...'
|
|
4267
4267
|
end
|
|
4268
4268
|
# verify the required parameter 'sandbox_id' is set
|
|
4269
4269
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
4270
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
4270
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.search_files"
|
|
4271
4271
|
end
|
|
4272
4272
|
# verify the required parameter 'path' is set
|
|
4273
4273
|
if @api_client.config.client_side_validation && path.nil?
|
|
4274
|
-
fail ArgumentError, "Missing the required parameter 'path' when calling ToolboxApi.
|
|
4274
|
+
fail ArgumentError, "Missing the required parameter 'path' when calling ToolboxApi.search_files"
|
|
4275
4275
|
end
|
|
4276
4276
|
# verify the required parameter 'pattern' is set
|
|
4277
4277
|
if @api_client.config.client_side_validation && pattern.nil?
|
|
4278
|
-
fail ArgumentError, "Missing the required parameter 'pattern' when calling ToolboxApi.
|
|
4278
|
+
fail ArgumentError, "Missing the required parameter 'pattern' when calling ToolboxApi.search_files"
|
|
4279
4279
|
end
|
|
4280
4280
|
# resource path
|
|
4281
4281
|
local_var_path = '/toolbox/{sandboxId}/toolbox/files/search'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -4304,7 +4304,7 @@ module DaytonaApiClient
|
|
|
4304
4304
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
4305
4305
|
|
|
4306
4306
|
new_options = opts.merge(
|
|
4307
|
-
:operation => :"ToolboxApi.
|
|
4307
|
+
:operation => :"ToolboxApi.search_files",
|
|
4308
4308
|
:header_params => header_params,
|
|
4309
4309
|
:query_params => query_params,
|
|
4310
4310
|
:form_params => form_params,
|
|
@@ -4315,12 +4315,12 @@ module DaytonaApiClient
|
|
|
4315
4315
|
|
|
4316
4316
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
4317
4317
|
if @api_client.config.debugging
|
|
4318
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
4318
|
+
@api_client.config.logger.debug "API called: ToolboxApi#search_files\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4319
4319
|
end
|
|
4320
4320
|
return data, status_code, headers
|
|
4321
4321
|
end
|
|
4322
4322
|
|
|
4323
|
-
#
|
|
4323
|
+
# Set file permissions
|
|
4324
4324
|
# Set file owner/group/permissions inside sandbox
|
|
4325
4325
|
# @param sandbox_id [String]
|
|
4326
4326
|
# @param path [String]
|
|
@@ -4330,12 +4330,12 @@ module DaytonaApiClient
|
|
|
4330
4330
|
# @option opts [String] :group
|
|
4331
4331
|
# @option opts [String] :mode
|
|
4332
4332
|
# @return [nil]
|
|
4333
|
-
def
|
|
4334
|
-
|
|
4333
|
+
def set_file_permissions(sandbox_id, path, opts = {})
|
|
4334
|
+
set_file_permissions_with_http_info(sandbox_id, path, opts)
|
|
4335
4335
|
nil
|
|
4336
4336
|
end
|
|
4337
4337
|
|
|
4338
|
-
#
|
|
4338
|
+
# Set file permissions
|
|
4339
4339
|
# Set file owner/group/permissions inside sandbox
|
|
4340
4340
|
# @param sandbox_id [String]
|
|
4341
4341
|
# @param path [String]
|
|
@@ -4345,17 +4345,17 @@ module DaytonaApiClient
|
|
|
4345
4345
|
# @option opts [String] :group
|
|
4346
4346
|
# @option opts [String] :mode
|
|
4347
4347
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
4348
|
-
def
|
|
4348
|
+
def set_file_permissions_with_http_info(sandbox_id, path, opts = {})
|
|
4349
4349
|
if @api_client.config.debugging
|
|
4350
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
4350
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.set_file_permissions ...'
|
|
4351
4351
|
end
|
|
4352
4352
|
# verify the required parameter 'sandbox_id' is set
|
|
4353
4353
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
4354
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
4354
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.set_file_permissions"
|
|
4355
4355
|
end
|
|
4356
4356
|
# verify the required parameter 'path' is set
|
|
4357
4357
|
if @api_client.config.client_side_validation && path.nil?
|
|
4358
|
-
fail ArgumentError, "Missing the required parameter 'path' when calling ToolboxApi.
|
|
4358
|
+
fail ArgumentError, "Missing the required parameter 'path' when calling ToolboxApi.set_file_permissions"
|
|
4359
4359
|
end
|
|
4360
4360
|
# resource path
|
|
4361
4361
|
local_var_path = '/toolbox/{sandboxId}/toolbox/files/permissions'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -4384,7 +4384,7 @@ module DaytonaApiClient
|
|
|
4384
4384
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
4385
4385
|
|
|
4386
4386
|
new_options = opts.merge(
|
|
4387
|
-
:operation => :"ToolboxApi.
|
|
4387
|
+
:operation => :"ToolboxApi.set_file_permissions",
|
|
4388
4388
|
:header_params => header_params,
|
|
4389
4389
|
:query_params => query_params,
|
|
4390
4390
|
:form_params => form_params,
|
|
@@ -4395,35 +4395,35 @@ module DaytonaApiClient
|
|
|
4395
4395
|
|
|
4396
4396
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
4397
4397
|
if @api_client.config.debugging
|
|
4398
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
4398
|
+
@api_client.config.logger.debug "API called: ToolboxApi#set_file_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4399
4399
|
end
|
|
4400
4400
|
return data, status_code, headers
|
|
4401
4401
|
end
|
|
4402
4402
|
|
|
4403
|
-
#
|
|
4403
|
+
# Start computer use processes
|
|
4404
4404
|
# Start all VNC desktop processes (Xvfb, xfce4, x11vnc, novnc)
|
|
4405
4405
|
# @param sandbox_id [String]
|
|
4406
4406
|
# @param [Hash] opts the optional parameters
|
|
4407
4407
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
4408
4408
|
# @return [ComputerUseStartResponse]
|
|
4409
|
-
def
|
|
4410
|
-
data, _status_code, _headers =
|
|
4409
|
+
def start_computer_use(sandbox_id, opts = {})
|
|
4410
|
+
data, _status_code, _headers = start_computer_use_with_http_info(sandbox_id, opts)
|
|
4411
4411
|
data
|
|
4412
4412
|
end
|
|
4413
4413
|
|
|
4414
|
-
#
|
|
4414
|
+
# Start computer use processes
|
|
4415
4415
|
# Start all VNC desktop processes (Xvfb, xfce4, x11vnc, novnc)
|
|
4416
4416
|
# @param sandbox_id [String]
|
|
4417
4417
|
# @param [Hash] opts the optional parameters
|
|
4418
4418
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
4419
4419
|
# @return [Array<(ComputerUseStartResponse, Integer, Hash)>] ComputerUseStartResponse data, response status code and response headers
|
|
4420
|
-
def
|
|
4420
|
+
def start_computer_use_with_http_info(sandbox_id, opts = {})
|
|
4421
4421
|
if @api_client.config.debugging
|
|
4422
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
4422
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.start_computer_use ...'
|
|
4423
4423
|
end
|
|
4424
4424
|
# verify the required parameter 'sandbox_id' is set
|
|
4425
4425
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
4426
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
4426
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.start_computer_use"
|
|
4427
4427
|
end
|
|
4428
4428
|
# resource path
|
|
4429
4429
|
local_var_path = '/toolbox/{sandboxId}/toolbox/computeruse/start'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -4450,7 +4450,7 @@ module DaytonaApiClient
|
|
|
4450
4450
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
4451
4451
|
|
|
4452
4452
|
new_options = opts.merge(
|
|
4453
|
-
:operation => :"ToolboxApi.
|
|
4453
|
+
:operation => :"ToolboxApi.start_computer_use",
|
|
4454
4454
|
:header_params => header_params,
|
|
4455
4455
|
:query_params => query_params,
|
|
4456
4456
|
:form_params => form_params,
|
|
@@ -4461,35 +4461,35 @@ module DaytonaApiClient
|
|
|
4461
4461
|
|
|
4462
4462
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
4463
4463
|
if @api_client.config.debugging
|
|
4464
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
4464
|
+
@api_client.config.logger.debug "API called: ToolboxApi#start_computer_use\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4465
4465
|
end
|
|
4466
4466
|
return data, status_code, headers
|
|
4467
4467
|
end
|
|
4468
4468
|
|
|
4469
|
-
#
|
|
4469
|
+
# Stop computer use processes
|
|
4470
4470
|
# Stop all VNC desktop processes (Xvfb, xfce4, x11vnc, novnc)
|
|
4471
4471
|
# @param sandbox_id [String]
|
|
4472
4472
|
# @param [Hash] opts the optional parameters
|
|
4473
4473
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
4474
4474
|
# @return [ComputerUseStopResponse]
|
|
4475
|
-
def
|
|
4476
|
-
data, _status_code, _headers =
|
|
4475
|
+
def stop_computer_use(sandbox_id, opts = {})
|
|
4476
|
+
data, _status_code, _headers = stop_computer_use_with_http_info(sandbox_id, opts)
|
|
4477
4477
|
data
|
|
4478
4478
|
end
|
|
4479
4479
|
|
|
4480
|
-
#
|
|
4480
|
+
# Stop computer use processes
|
|
4481
4481
|
# Stop all VNC desktop processes (Xvfb, xfce4, x11vnc, novnc)
|
|
4482
4482
|
# @param sandbox_id [String]
|
|
4483
4483
|
# @param [Hash] opts the optional parameters
|
|
4484
4484
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
4485
4485
|
# @return [Array<(ComputerUseStopResponse, Integer, Hash)>] ComputerUseStopResponse data, response status code and response headers
|
|
4486
|
-
def
|
|
4486
|
+
def stop_computer_use_with_http_info(sandbox_id, opts = {})
|
|
4487
4487
|
if @api_client.config.debugging
|
|
4488
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
4488
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.stop_computer_use ...'
|
|
4489
4489
|
end
|
|
4490
4490
|
# verify the required parameter 'sandbox_id' is set
|
|
4491
4491
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
4492
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
4492
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.stop_computer_use"
|
|
4493
4493
|
end
|
|
4494
4494
|
# resource path
|
|
4495
4495
|
local_var_path = '/toolbox/{sandboxId}/toolbox/computeruse/stop'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -4516,7 +4516,7 @@ module DaytonaApiClient
|
|
|
4516
4516
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
4517
4517
|
|
|
4518
4518
|
new_options = opts.merge(
|
|
4519
|
-
:operation => :"ToolboxApi.
|
|
4519
|
+
:operation => :"ToolboxApi.stop_computer_use",
|
|
4520
4520
|
:header_params => header_params,
|
|
4521
4521
|
:query_params => query_params,
|
|
4522
4522
|
:form_params => form_params,
|
|
@@ -4527,12 +4527,12 @@ module DaytonaApiClient
|
|
|
4527
4527
|
|
|
4528
4528
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
4529
4529
|
if @api_client.config.debugging
|
|
4530
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
4530
|
+
@api_client.config.logger.debug "API called: ToolboxApi#stop_computer_use\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4531
4531
|
end
|
|
4532
4532
|
return data, status_code, headers
|
|
4533
4533
|
end
|
|
4534
4534
|
|
|
4535
|
-
#
|
|
4535
|
+
# Take compressed region screenshot
|
|
4536
4536
|
# Take a compressed screenshot of a specific region
|
|
4537
4537
|
# @param sandbox_id [String]
|
|
4538
4538
|
# @param height [Float]
|
|
@@ -4546,12 +4546,12 @@ module DaytonaApiClient
|
|
|
4546
4546
|
# @option opts [String] :format
|
|
4547
4547
|
# @option opts [Boolean] :show_cursor
|
|
4548
4548
|
# @return [CompressedScreenshotResponse]
|
|
4549
|
-
def
|
|
4550
|
-
data, _status_code, _headers =
|
|
4549
|
+
def take_compressed_region_screenshot(sandbox_id, height, width, y, x, opts = {})
|
|
4550
|
+
data, _status_code, _headers = take_compressed_region_screenshot_with_http_info(sandbox_id, height, width, y, x, opts)
|
|
4551
4551
|
data
|
|
4552
4552
|
end
|
|
4553
4553
|
|
|
4554
|
-
#
|
|
4554
|
+
# Take compressed region screenshot
|
|
4555
4555
|
# Take a compressed screenshot of a specific region
|
|
4556
4556
|
# @param sandbox_id [String]
|
|
4557
4557
|
# @param height [Float]
|
|
@@ -4565,29 +4565,29 @@ module DaytonaApiClient
|
|
|
4565
4565
|
# @option opts [String] :format
|
|
4566
4566
|
# @option opts [Boolean] :show_cursor
|
|
4567
4567
|
# @return [Array<(CompressedScreenshotResponse, Integer, Hash)>] CompressedScreenshotResponse data, response status code and response headers
|
|
4568
|
-
def
|
|
4568
|
+
def take_compressed_region_screenshot_with_http_info(sandbox_id, height, width, y, x, opts = {})
|
|
4569
4569
|
if @api_client.config.debugging
|
|
4570
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
4570
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.take_compressed_region_screenshot ...'
|
|
4571
4571
|
end
|
|
4572
4572
|
# verify the required parameter 'sandbox_id' is set
|
|
4573
4573
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
4574
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
4574
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.take_compressed_region_screenshot"
|
|
4575
4575
|
end
|
|
4576
4576
|
# verify the required parameter 'height' is set
|
|
4577
4577
|
if @api_client.config.client_side_validation && height.nil?
|
|
4578
|
-
fail ArgumentError, "Missing the required parameter 'height' when calling ToolboxApi.
|
|
4578
|
+
fail ArgumentError, "Missing the required parameter 'height' when calling ToolboxApi.take_compressed_region_screenshot"
|
|
4579
4579
|
end
|
|
4580
4580
|
# verify the required parameter 'width' is set
|
|
4581
4581
|
if @api_client.config.client_side_validation && width.nil?
|
|
4582
|
-
fail ArgumentError, "Missing the required parameter 'width' when calling ToolboxApi.
|
|
4582
|
+
fail ArgumentError, "Missing the required parameter 'width' when calling ToolboxApi.take_compressed_region_screenshot"
|
|
4583
4583
|
end
|
|
4584
4584
|
# verify the required parameter 'y' is set
|
|
4585
4585
|
if @api_client.config.client_side_validation && y.nil?
|
|
4586
|
-
fail ArgumentError, "Missing the required parameter 'y' when calling ToolboxApi.
|
|
4586
|
+
fail ArgumentError, "Missing the required parameter 'y' when calling ToolboxApi.take_compressed_region_screenshot"
|
|
4587
4587
|
end
|
|
4588
4588
|
# verify the required parameter 'x' is set
|
|
4589
4589
|
if @api_client.config.client_side_validation && x.nil?
|
|
4590
|
-
fail ArgumentError, "Missing the required parameter 'x' when calling ToolboxApi.
|
|
4590
|
+
fail ArgumentError, "Missing the required parameter 'x' when calling ToolboxApi.take_compressed_region_screenshot"
|
|
4591
4591
|
end
|
|
4592
4592
|
# resource path
|
|
4593
4593
|
local_var_path = '/toolbox/{sandboxId}/toolbox/computeruse/screenshot/region/compressed'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -4622,7 +4622,7 @@ module DaytonaApiClient
|
|
|
4622
4622
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
4623
4623
|
|
|
4624
4624
|
new_options = opts.merge(
|
|
4625
|
-
:operation => :"ToolboxApi.
|
|
4625
|
+
:operation => :"ToolboxApi.take_compressed_region_screenshot",
|
|
4626
4626
|
:header_params => header_params,
|
|
4627
4627
|
:query_params => query_params,
|
|
4628
4628
|
:form_params => form_params,
|
|
@@ -4633,12 +4633,12 @@ module DaytonaApiClient
|
|
|
4633
4633
|
|
|
4634
4634
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
4635
4635
|
if @api_client.config.debugging
|
|
4636
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
4636
|
+
@api_client.config.logger.debug "API called: ToolboxApi#take_compressed_region_screenshot\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4637
4637
|
end
|
|
4638
4638
|
return data, status_code, headers
|
|
4639
4639
|
end
|
|
4640
4640
|
|
|
4641
|
-
#
|
|
4641
|
+
# Take compressed screenshot
|
|
4642
4642
|
# Take a compressed screenshot with format, quality, and scale options
|
|
4643
4643
|
# @param sandbox_id [String]
|
|
4644
4644
|
# @param [Hash] opts the optional parameters
|
|
@@ -4648,12 +4648,12 @@ module DaytonaApiClient
|
|
|
4648
4648
|
# @option opts [String] :format
|
|
4649
4649
|
# @option opts [Boolean] :show_cursor
|
|
4650
4650
|
# @return [CompressedScreenshotResponse]
|
|
4651
|
-
def
|
|
4652
|
-
data, _status_code, _headers =
|
|
4651
|
+
def take_compressed_screenshot(sandbox_id, opts = {})
|
|
4652
|
+
data, _status_code, _headers = take_compressed_screenshot_with_http_info(sandbox_id, opts)
|
|
4653
4653
|
data
|
|
4654
4654
|
end
|
|
4655
4655
|
|
|
4656
|
-
#
|
|
4656
|
+
# Take compressed screenshot
|
|
4657
4657
|
# Take a compressed screenshot with format, quality, and scale options
|
|
4658
4658
|
# @param sandbox_id [String]
|
|
4659
4659
|
# @param [Hash] opts the optional parameters
|
|
@@ -4663,13 +4663,13 @@ module DaytonaApiClient
|
|
|
4663
4663
|
# @option opts [String] :format
|
|
4664
4664
|
# @option opts [Boolean] :show_cursor
|
|
4665
4665
|
# @return [Array<(CompressedScreenshotResponse, Integer, Hash)>] CompressedScreenshotResponse data, response status code and response headers
|
|
4666
|
-
def
|
|
4666
|
+
def take_compressed_screenshot_with_http_info(sandbox_id, opts = {})
|
|
4667
4667
|
if @api_client.config.debugging
|
|
4668
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
4668
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.take_compressed_screenshot ...'
|
|
4669
4669
|
end
|
|
4670
4670
|
# verify the required parameter 'sandbox_id' is set
|
|
4671
4671
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
4672
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
4672
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.take_compressed_screenshot"
|
|
4673
4673
|
end
|
|
4674
4674
|
# resource path
|
|
4675
4675
|
local_var_path = '/toolbox/{sandboxId}/toolbox/computeruse/screenshot/compressed'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -4700,7 +4700,7 @@ module DaytonaApiClient
|
|
|
4700
4700
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
4701
4701
|
|
|
4702
4702
|
new_options = opts.merge(
|
|
4703
|
-
:operation => :"ToolboxApi.
|
|
4703
|
+
:operation => :"ToolboxApi.take_compressed_screenshot",
|
|
4704
4704
|
:header_params => header_params,
|
|
4705
4705
|
:query_params => query_params,
|
|
4706
4706
|
:form_params => form_params,
|
|
@@ -4711,12 +4711,12 @@ module DaytonaApiClient
|
|
|
4711
4711
|
|
|
4712
4712
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
4713
4713
|
if @api_client.config.debugging
|
|
4714
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
4714
|
+
@api_client.config.logger.debug "API called: ToolboxApi#take_compressed_screenshot\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4715
4715
|
end
|
|
4716
4716
|
return data, status_code, headers
|
|
4717
4717
|
end
|
|
4718
4718
|
|
|
4719
|
-
#
|
|
4719
|
+
# Take region screenshot
|
|
4720
4720
|
# Take a screenshot of a specific region
|
|
4721
4721
|
# @param sandbox_id [String]
|
|
4722
4722
|
# @param height [Float]
|
|
@@ -4727,12 +4727,12 @@ module DaytonaApiClient
|
|
|
4727
4727
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
4728
4728
|
# @option opts [Boolean] :show_cursor
|
|
4729
4729
|
# @return [RegionScreenshotResponse]
|
|
4730
|
-
def
|
|
4731
|
-
data, _status_code, _headers =
|
|
4730
|
+
def take_region_screenshot(sandbox_id, height, width, y, x, opts = {})
|
|
4731
|
+
data, _status_code, _headers = take_region_screenshot_with_http_info(sandbox_id, height, width, y, x, opts)
|
|
4732
4732
|
data
|
|
4733
4733
|
end
|
|
4734
4734
|
|
|
4735
|
-
#
|
|
4735
|
+
# Take region screenshot
|
|
4736
4736
|
# Take a screenshot of a specific region
|
|
4737
4737
|
# @param sandbox_id [String]
|
|
4738
4738
|
# @param height [Float]
|
|
@@ -4743,29 +4743,29 @@ module DaytonaApiClient
|
|
|
4743
4743
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
4744
4744
|
# @option opts [Boolean] :show_cursor
|
|
4745
4745
|
# @return [Array<(RegionScreenshotResponse, Integer, Hash)>] RegionScreenshotResponse data, response status code and response headers
|
|
4746
|
-
def
|
|
4746
|
+
def take_region_screenshot_with_http_info(sandbox_id, height, width, y, x, opts = {})
|
|
4747
4747
|
if @api_client.config.debugging
|
|
4748
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
4748
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.take_region_screenshot ...'
|
|
4749
4749
|
end
|
|
4750
4750
|
# verify the required parameter 'sandbox_id' is set
|
|
4751
4751
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
4752
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
4752
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.take_region_screenshot"
|
|
4753
4753
|
end
|
|
4754
4754
|
# verify the required parameter 'height' is set
|
|
4755
4755
|
if @api_client.config.client_side_validation && height.nil?
|
|
4756
|
-
fail ArgumentError, "Missing the required parameter 'height' when calling ToolboxApi.
|
|
4756
|
+
fail ArgumentError, "Missing the required parameter 'height' when calling ToolboxApi.take_region_screenshot"
|
|
4757
4757
|
end
|
|
4758
4758
|
# verify the required parameter 'width' is set
|
|
4759
4759
|
if @api_client.config.client_side_validation && width.nil?
|
|
4760
|
-
fail ArgumentError, "Missing the required parameter 'width' when calling ToolboxApi.
|
|
4760
|
+
fail ArgumentError, "Missing the required parameter 'width' when calling ToolboxApi.take_region_screenshot"
|
|
4761
4761
|
end
|
|
4762
4762
|
# verify the required parameter 'y' is set
|
|
4763
4763
|
if @api_client.config.client_side_validation && y.nil?
|
|
4764
|
-
fail ArgumentError, "Missing the required parameter 'y' when calling ToolboxApi.
|
|
4764
|
+
fail ArgumentError, "Missing the required parameter 'y' when calling ToolboxApi.take_region_screenshot"
|
|
4765
4765
|
end
|
|
4766
4766
|
# verify the required parameter 'x' is set
|
|
4767
4767
|
if @api_client.config.client_side_validation && x.nil?
|
|
4768
|
-
fail ArgumentError, "Missing the required parameter 'x' when calling ToolboxApi.
|
|
4768
|
+
fail ArgumentError, "Missing the required parameter 'x' when calling ToolboxApi.take_region_screenshot"
|
|
4769
4769
|
end
|
|
4770
4770
|
# resource path
|
|
4771
4771
|
local_var_path = '/toolbox/{sandboxId}/toolbox/computeruse/screenshot/region'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -4797,7 +4797,7 @@ module DaytonaApiClient
|
|
|
4797
4797
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
4798
4798
|
|
|
4799
4799
|
new_options = opts.merge(
|
|
4800
|
-
:operation => :"ToolboxApi.
|
|
4800
|
+
:operation => :"ToolboxApi.take_region_screenshot",
|
|
4801
4801
|
:header_params => header_params,
|
|
4802
4802
|
:query_params => query_params,
|
|
4803
4803
|
:form_params => form_params,
|
|
@@ -4808,37 +4808,37 @@ module DaytonaApiClient
|
|
|
4808
4808
|
|
|
4809
4809
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
4810
4810
|
if @api_client.config.debugging
|
|
4811
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
4811
|
+
@api_client.config.logger.debug "API called: ToolboxApi#take_region_screenshot\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4812
4812
|
end
|
|
4813
4813
|
return data, status_code, headers
|
|
4814
4814
|
end
|
|
4815
4815
|
|
|
4816
|
-
#
|
|
4816
|
+
# Take screenshot
|
|
4817
4817
|
# Take a screenshot of the entire screen
|
|
4818
4818
|
# @param sandbox_id [String]
|
|
4819
4819
|
# @param [Hash] opts the optional parameters
|
|
4820
4820
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
4821
4821
|
# @option opts [Boolean] :show_cursor
|
|
4822
4822
|
# @return [ScreenshotResponse]
|
|
4823
|
-
def
|
|
4824
|
-
data, _status_code, _headers =
|
|
4823
|
+
def take_screenshot(sandbox_id, opts = {})
|
|
4824
|
+
data, _status_code, _headers = take_screenshot_with_http_info(sandbox_id, opts)
|
|
4825
4825
|
data
|
|
4826
4826
|
end
|
|
4827
4827
|
|
|
4828
|
-
#
|
|
4828
|
+
# Take screenshot
|
|
4829
4829
|
# Take a screenshot of the entire screen
|
|
4830
4830
|
# @param sandbox_id [String]
|
|
4831
4831
|
# @param [Hash] opts the optional parameters
|
|
4832
4832
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
4833
4833
|
# @option opts [Boolean] :show_cursor
|
|
4834
4834
|
# @return [Array<(ScreenshotResponse, Integer, Hash)>] ScreenshotResponse data, response status code and response headers
|
|
4835
|
-
def
|
|
4835
|
+
def take_screenshot_with_http_info(sandbox_id, opts = {})
|
|
4836
4836
|
if @api_client.config.debugging
|
|
4837
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
4837
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.take_screenshot ...'
|
|
4838
4838
|
end
|
|
4839
4839
|
# verify the required parameter 'sandbox_id' is set
|
|
4840
4840
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
4841
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
4841
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.take_screenshot"
|
|
4842
4842
|
end
|
|
4843
4843
|
# resource path
|
|
4844
4844
|
local_var_path = '/toolbox/{sandboxId}/toolbox/computeruse/screenshot'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -4866,7 +4866,7 @@ module DaytonaApiClient
|
|
|
4866
4866
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
4867
4867
|
|
|
4868
4868
|
new_options = opts.merge(
|
|
4869
|
-
:operation => :"ToolboxApi.
|
|
4869
|
+
:operation => :"ToolboxApi.take_screenshot",
|
|
4870
4870
|
:header_params => header_params,
|
|
4871
4871
|
:query_params => query_params,
|
|
4872
4872
|
:form_params => form_params,
|
|
@@ -4877,41 +4877,41 @@ module DaytonaApiClient
|
|
|
4877
4877
|
|
|
4878
4878
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
4879
4879
|
if @api_client.config.debugging
|
|
4880
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
4880
|
+
@api_client.config.logger.debug "API called: ToolboxApi#take_screenshot\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4881
4881
|
end
|
|
4882
4882
|
return data, status_code, headers
|
|
4883
4883
|
end
|
|
4884
4884
|
|
|
4885
|
-
#
|
|
4885
|
+
# Type text
|
|
4886
4886
|
# Type text using keyboard
|
|
4887
4887
|
# @param sandbox_id [String]
|
|
4888
4888
|
# @param keyboard_type_request [KeyboardTypeRequest]
|
|
4889
4889
|
# @param [Hash] opts the optional parameters
|
|
4890
4890
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
4891
4891
|
# @return [nil]
|
|
4892
|
-
def
|
|
4893
|
-
|
|
4892
|
+
def type_text(sandbox_id, keyboard_type_request, opts = {})
|
|
4893
|
+
type_text_with_http_info(sandbox_id, keyboard_type_request, opts)
|
|
4894
4894
|
nil
|
|
4895
4895
|
end
|
|
4896
4896
|
|
|
4897
|
-
#
|
|
4897
|
+
# Type text
|
|
4898
4898
|
# Type text using keyboard
|
|
4899
4899
|
# @param sandbox_id [String]
|
|
4900
4900
|
# @param keyboard_type_request [KeyboardTypeRequest]
|
|
4901
4901
|
# @param [Hash] opts the optional parameters
|
|
4902
4902
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
4903
4903
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
4904
|
-
def
|
|
4904
|
+
def type_text_with_http_info(sandbox_id, keyboard_type_request, opts = {})
|
|
4905
4905
|
if @api_client.config.debugging
|
|
4906
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
4906
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.type_text ...'
|
|
4907
4907
|
end
|
|
4908
4908
|
# verify the required parameter 'sandbox_id' is set
|
|
4909
4909
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
4910
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
4910
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.type_text"
|
|
4911
4911
|
end
|
|
4912
4912
|
# verify the required parameter 'keyboard_type_request' is set
|
|
4913
4913
|
if @api_client.config.client_side_validation && keyboard_type_request.nil?
|
|
4914
|
-
fail ArgumentError, "Missing the required parameter 'keyboard_type_request' when calling ToolboxApi.
|
|
4914
|
+
fail ArgumentError, "Missing the required parameter 'keyboard_type_request' when calling ToolboxApi.type_text"
|
|
4915
4915
|
end
|
|
4916
4916
|
# resource path
|
|
4917
4917
|
local_var_path = '/toolbox/{sandboxId}/toolbox/computeruse/keyboard/type'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -4941,7 +4941,7 @@ module DaytonaApiClient
|
|
|
4941
4941
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
4942
4942
|
|
|
4943
4943
|
new_options = opts.merge(
|
|
4944
|
-
:operation => :"ToolboxApi.
|
|
4944
|
+
:operation => :"ToolboxApi.type_text",
|
|
4945
4945
|
:header_params => header_params,
|
|
4946
4946
|
:query_params => query_params,
|
|
4947
4947
|
:form_params => form_params,
|
|
@@ -4952,12 +4952,12 @@ module DaytonaApiClient
|
|
|
4952
4952
|
|
|
4953
4953
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
4954
4954
|
if @api_client.config.debugging
|
|
4955
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
4955
|
+
@api_client.config.logger.debug "API called: ToolboxApi#type_text\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4956
4956
|
end
|
|
4957
4957
|
return data, status_code, headers
|
|
4958
4958
|
end
|
|
4959
4959
|
|
|
4960
|
-
#
|
|
4960
|
+
# Upload file
|
|
4961
4961
|
# Upload file inside sandbox
|
|
4962
4962
|
# @param sandbox_id [String]
|
|
4963
4963
|
# @param path [String]
|
|
@@ -4965,12 +4965,12 @@ module DaytonaApiClient
|
|
|
4965
4965
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
4966
4966
|
# @option opts [File] :file
|
|
4967
4967
|
# @return [nil]
|
|
4968
|
-
def
|
|
4969
|
-
|
|
4968
|
+
def upload_file(sandbox_id, path, opts = {})
|
|
4969
|
+
upload_file_with_http_info(sandbox_id, path, opts)
|
|
4970
4970
|
nil
|
|
4971
4971
|
end
|
|
4972
4972
|
|
|
4973
|
-
#
|
|
4973
|
+
# Upload file
|
|
4974
4974
|
# Upload file inside sandbox
|
|
4975
4975
|
# @param sandbox_id [String]
|
|
4976
4976
|
# @param path [String]
|
|
@@ -4978,17 +4978,17 @@ module DaytonaApiClient
|
|
|
4978
4978
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
4979
4979
|
# @option opts [File] :file
|
|
4980
4980
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
4981
|
-
def
|
|
4981
|
+
def upload_file_with_http_info(sandbox_id, path, opts = {})
|
|
4982
4982
|
if @api_client.config.debugging
|
|
4983
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
4983
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.upload_file ...'
|
|
4984
4984
|
end
|
|
4985
4985
|
# verify the required parameter 'sandbox_id' is set
|
|
4986
4986
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
4987
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
4987
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.upload_file"
|
|
4988
4988
|
end
|
|
4989
4989
|
# verify the required parameter 'path' is set
|
|
4990
4990
|
if @api_client.config.client_side_validation && path.nil?
|
|
4991
|
-
fail ArgumentError, "Missing the required parameter 'path' when calling ToolboxApi.
|
|
4991
|
+
fail ArgumentError, "Missing the required parameter 'path' when calling ToolboxApi.upload_file"
|
|
4992
4992
|
end
|
|
4993
4993
|
# resource path
|
|
4994
4994
|
local_var_path = '/toolbox/{sandboxId}/toolbox/files/upload'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -5020,7 +5020,7 @@ module DaytonaApiClient
|
|
|
5020
5020
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
5021
5021
|
|
|
5022
5022
|
new_options = opts.merge(
|
|
5023
|
-
:operation => :"ToolboxApi.
|
|
5023
|
+
:operation => :"ToolboxApi.upload_file",
|
|
5024
5024
|
:header_params => header_params,
|
|
5025
5025
|
:query_params => query_params,
|
|
5026
5026
|
:form_params => form_params,
|
|
@@ -5031,35 +5031,35 @@ module DaytonaApiClient
|
|
|
5031
5031
|
|
|
5032
5032
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
5033
5033
|
if @api_client.config.debugging
|
|
5034
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
5034
|
+
@api_client.config.logger.debug "API called: ToolboxApi#upload_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
5035
5035
|
end
|
|
5036
5036
|
return data, status_code, headers
|
|
5037
5037
|
end
|
|
5038
5038
|
|
|
5039
|
-
#
|
|
5039
|
+
# Upload multiple files
|
|
5040
5040
|
# Upload multiple files inside sandbox
|
|
5041
5041
|
# @param sandbox_id [String]
|
|
5042
5042
|
# @param [Hash] opts the optional parameters
|
|
5043
5043
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
5044
5044
|
# @return [nil]
|
|
5045
|
-
def
|
|
5046
|
-
|
|
5045
|
+
def upload_files(sandbox_id, opts = {})
|
|
5046
|
+
upload_files_with_http_info(sandbox_id, opts)
|
|
5047
5047
|
nil
|
|
5048
5048
|
end
|
|
5049
5049
|
|
|
5050
|
-
#
|
|
5050
|
+
# Upload multiple files
|
|
5051
5051
|
# Upload multiple files inside sandbox
|
|
5052
5052
|
# @param sandbox_id [String]
|
|
5053
5053
|
# @param [Hash] opts the optional parameters
|
|
5054
5054
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
5055
5055
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
5056
|
-
def
|
|
5056
|
+
def upload_files_with_http_info(sandbox_id, opts = {})
|
|
5057
5057
|
if @api_client.config.debugging
|
|
5058
|
-
@api_client.config.logger.debug 'Calling API: ToolboxApi.
|
|
5058
|
+
@api_client.config.logger.debug 'Calling API: ToolboxApi.upload_files ...'
|
|
5059
5059
|
end
|
|
5060
5060
|
# verify the required parameter 'sandbox_id' is set
|
|
5061
5061
|
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
5062
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.
|
|
5062
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling ToolboxApi.upload_files"
|
|
5063
5063
|
end
|
|
5064
5064
|
# resource path
|
|
5065
5065
|
local_var_path = '/toolbox/{sandboxId}/toolbox/files/bulk-upload'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
@@ -5089,7 +5089,7 @@ module DaytonaApiClient
|
|
|
5089
5089
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
5090
5090
|
|
|
5091
5091
|
new_options = opts.merge(
|
|
5092
|
-
:operation => :"ToolboxApi.
|
|
5092
|
+
:operation => :"ToolboxApi.upload_files",
|
|
5093
5093
|
:header_params => header_params,
|
|
5094
5094
|
:query_params => query_params,
|
|
5095
5095
|
:form_params => form_params,
|
|
@@ -5100,7 +5100,7 @@ module DaytonaApiClient
|
|
|
5100
5100
|
|
|
5101
5101
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
5102
5102
|
if @api_client.config.debugging
|
|
5103
|
-
@api_client.config.logger.debug "API called: ToolboxApi#
|
|
5103
|
+
@api_client.config.logger.debug "API called: ToolboxApi#upload_files\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
5104
5104
|
end
|
|
5105
5105
|
return data, status_code, headers
|
|
5106
5106
|
end
|