daytona_api_client 0.195.0 → 0.197.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 253b84591a26ca705c8e7e986261f40fff14c09f2bacd5d346ef4808179df1cd
4
- data.tar.gz: a8138b8771b8b83644aaf59d8e855fa72e3b02d33f6e3e8f3f00374fe1279427
3
+ metadata.gz: f8d97f16a45ab8510ec8d23cb589dd7b82decdd7fb987f66f6e3e6227b0c8e9e
4
+ data.tar.gz: bb22527457bb5d9f473a809398ebe374d23c2420fbf80f2c3bf4ca64efd224e6
5
5
  SHA512:
6
- metadata.gz: 4d6672b939cd42f476d1267aa96580b6c988e166494c65761441f6111fcefa9ea2ddf204c6639711c581c113684433ccaa45af9175cbec619c9977bac45b94b3
7
- data.tar.gz: d2e45a15e60c0d75c83dfdb0482f2af4306de1d08e29b2cbf9d0ef0599c3141827528f4dbb846993c089fd026bb154f159863fd21773ca9efb0f8fd8198ec643
6
+ metadata.gz: 6c6430ecff1e1db19a0d721507e65f045dce668dc1800dbb5a6081c3c471aba835d573d5a5bc971087b01acd27c8a4fa34a6135dfe84176ef23377d91bf6d4cc
7
+ data.tar.gz: 03a8325b010560160b1e410bbfabccf19f83cad69d3e70d9d8dffd1ce786150747649c9310fd0bfd0a2bb28f62bb5c0defede01db6ba9ceb0ed73fabbe69f90b
@@ -35,6 +35,7 @@ lib/daytona_api_client/models/announcement.rb
35
35
  lib/daytona_api_client/models/api_key_list.rb
36
36
  lib/daytona_api_client/models/api_key_response.rb
37
37
  lib/daytona_api_client/models/audit_log.rb
38
+ lib/daytona_api_client/models/available_sandbox_class.rb
38
39
  lib/daytona_api_client/models/build_info.rb
39
40
  lib/daytona_api_client/models/command.rb
40
41
  lib/daytona_api_client/models/completion_context.rb
@@ -120,6 +121,7 @@ lib/daytona_api_client/models/mouse_scroll_response.rb
120
121
  lib/daytona_api_client/models/oidc_config.rb
121
122
  lib/daytona_api_client/models/organization.rb
122
123
  lib/daytona_api_client/models/organization_invitation.rb
124
+ lib/daytona_api_client/models/organization_preview_warning.rb
123
125
  lib/daytona_api_client/models/organization_role.rb
124
126
  lib/daytona_api_client/models/organization_sandbox_default_limited_network_egress.rb
125
127
  lib/daytona_api_client/models/organization_suspension.rb
@@ -136,6 +138,7 @@ lib/daytona_api_client/models/poll_jobs_response.rb
136
138
  lib/daytona_api_client/models/port_preview_url.rb
137
139
  lib/daytona_api_client/models/position.rb
138
140
  lib/daytona_api_client/models/posthog_config.rb
141
+ lib/daytona_api_client/models/preview_warning.rb
139
142
  lib/daytona_api_client/models/process_errors_response.rb
140
143
  lib/daytona_api_client/models/process_logs_response.rb
141
144
  lib/daytona_api_client/models/process_restart_response.rb
@@ -206,6 +209,7 @@ lib/daytona_api_client/models/update_organization_region_quota.rb
206
209
  lib/daytona_api_client/models/update_organization_role.rb
207
210
  lib/daytona_api_client/models/update_region.rb
208
211
  lib/daytona_api_client/models/update_sandbox_network_settings.rb
212
+ lib/daytona_api_client/models/update_sandbox_secrets.rb
209
213
  lib/daytona_api_client/models/update_sandbox_state_dto.rb
210
214
  lib/daytona_api_client/models/update_secret.rb
211
215
  lib/daytona_api_client/models/url.rb
@@ -1407,6 +1407,76 @@ module DaytonaApiClient
1407
1407
  return data, status_code, headers
1408
1408
  end
1409
1409
 
1410
+ # Update organization preview warning
1411
+ # @param organization_id [String] Organization ID
1412
+ # @param organization_preview_warning [OrganizationPreviewWarning]
1413
+ # @param [Hash] opts the optional parameters
1414
+ # @return [nil]
1415
+ def admin_update_organization_preview_warning(organization_id, organization_preview_warning, opts = {})
1416
+ admin_update_organization_preview_warning_with_http_info(organization_id, organization_preview_warning, opts)
1417
+ nil
1418
+ end
1419
+
1420
+ # Update organization preview warning
1421
+ # @param organization_id [String] Organization ID
1422
+ # @param organization_preview_warning [OrganizationPreviewWarning]
1423
+ # @param [Hash] opts the optional parameters
1424
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1425
+ def admin_update_organization_preview_warning_with_http_info(organization_id, organization_preview_warning, opts = {})
1426
+ if @api_client.config.debugging
1427
+ @api_client.config.logger.debug 'Calling API: AdminApi.admin_update_organization_preview_warning ...'
1428
+ end
1429
+ # verify the required parameter 'organization_id' is set
1430
+ if @api_client.config.client_side_validation && organization_id.nil?
1431
+ fail ArgumentError, "Missing the required parameter 'organization_id' when calling AdminApi.admin_update_organization_preview_warning"
1432
+ end
1433
+ # verify the required parameter 'organization_preview_warning' is set
1434
+ if @api_client.config.client_side_validation && organization_preview_warning.nil?
1435
+ fail ArgumentError, "Missing the required parameter 'organization_preview_warning' when calling AdminApi.admin_update_organization_preview_warning"
1436
+ end
1437
+ # resource path
1438
+ local_var_path = '/admin/organizations/{organizationId}/preview-warning'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
1439
+
1440
+ # query parameters
1441
+ query_params = opts[:query_params] || {}
1442
+
1443
+ # header parameters
1444
+ header_params = opts[:header_params] || {}
1445
+ # HTTP header 'Content-Type'
1446
+ content_type = @api_client.select_header_content_type(['application/json'])
1447
+ if !content_type.nil?
1448
+ header_params['Content-Type'] = content_type
1449
+ end
1450
+
1451
+ # form parameters
1452
+ form_params = opts[:form_params] || {}
1453
+
1454
+ # http body (model)
1455
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(organization_preview_warning)
1456
+
1457
+ # return_type
1458
+ return_type = opts[:debug_return_type]
1459
+
1460
+ # auth_names
1461
+ auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
1462
+
1463
+ new_options = opts.merge(
1464
+ :operation => :"AdminApi.admin_update_organization_preview_warning",
1465
+ :header_params => header_params,
1466
+ :query_params => query_params,
1467
+ :form_params => form_params,
1468
+ :body => post_body,
1469
+ :auth_names => auth_names,
1470
+ :return_type => return_type
1471
+ )
1472
+
1473
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1474
+ if @api_client.config.debugging
1475
+ @api_client.config.logger.debug "API called: AdminApi#admin_update_organization_preview_warning\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1476
+ end
1477
+ return data, status_code, headers
1478
+ end
1479
+
1410
1480
  # Update organization region quota
1411
1481
  # @param organization_id [String] Organization ID
1412
1482
  # @param region_id [String] Region ID
@@ -1273,6 +1273,67 @@ module DaytonaApiClient
1273
1273
  return data, status_code, headers
1274
1274
  end
1275
1275
 
1276
+ # List available sandbox classes for organization
1277
+ # @param organization_id [String] Organization ID
1278
+ # @param [Hash] opts the optional parameters
1279
+ # @return [Array<AvailableSandboxClass>]
1280
+ def list_available_sandbox_classes(organization_id, opts = {})
1281
+ data, _status_code, _headers = list_available_sandbox_classes_with_http_info(organization_id, opts)
1282
+ data
1283
+ end
1284
+
1285
+ # List available sandbox classes for organization
1286
+ # @param organization_id [String] Organization ID
1287
+ # @param [Hash] opts the optional parameters
1288
+ # @return [Array<(Array<AvailableSandboxClass>, Integer, Hash)>] Array<AvailableSandboxClass> data, response status code and response headers
1289
+ def list_available_sandbox_classes_with_http_info(organization_id, opts = {})
1290
+ if @api_client.config.debugging
1291
+ @api_client.config.logger.debug 'Calling API: OrganizationsApi.list_available_sandbox_classes ...'
1292
+ end
1293
+ # verify the required parameter 'organization_id' is set
1294
+ if @api_client.config.client_side_validation && organization_id.nil?
1295
+ fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.list_available_sandbox_classes"
1296
+ end
1297
+ # resource path
1298
+ local_var_path = '/organizations/{organizationId}/available-sandbox-classes'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
1299
+
1300
+ # query parameters
1301
+ query_params = opts[:query_params] || {}
1302
+
1303
+ # header parameters
1304
+ header_params = opts[:header_params] || {}
1305
+ # HTTP header 'Accept' (if needed)
1306
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1307
+
1308
+ # form parameters
1309
+ form_params = opts[:form_params] || {}
1310
+
1311
+ # http body (model)
1312
+ post_body = opts[:debug_body]
1313
+
1314
+ # return_type
1315
+ return_type = opts[:debug_return_type] || 'Array<AvailableSandboxClass>'
1316
+
1317
+ # auth_names
1318
+ auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
1319
+
1320
+ new_options = opts.merge(
1321
+ :operation => :"OrganizationsApi.list_available_sandbox_classes",
1322
+ :header_params => header_params,
1323
+ :query_params => query_params,
1324
+ :form_params => form_params,
1325
+ :body => post_body,
1326
+ :auth_names => auth_names,
1327
+ :return_type => return_type
1328
+ )
1329
+
1330
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1331
+ if @api_client.config.debugging
1332
+ @api_client.config.logger.debug "API called: OrganizationsApi#list_available_sandbox_classes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1333
+ end
1334
+ return data, status_code, headers
1335
+ end
1336
+
1276
1337
  # List pending organization invitations
1277
1338
  # @param organization_id [String] Organization ID
1278
1339
  # @param [Hash] opts the optional parameters
@@ -2245,6 +2306,76 @@ module DaytonaApiClient
2245
2306
  return data, status_code, headers
2246
2307
  end
2247
2308
 
2309
+ # Update organization preview warning
2310
+ # @param organization_id [String] Organization ID
2311
+ # @param organization_preview_warning [OrganizationPreviewWarning]
2312
+ # @param [Hash] opts the optional parameters
2313
+ # @return [nil]
2314
+ def update_organization_preview_warning(organization_id, organization_preview_warning, opts = {})
2315
+ update_organization_preview_warning_with_http_info(organization_id, organization_preview_warning, opts)
2316
+ nil
2317
+ end
2318
+
2319
+ # Update organization preview warning
2320
+ # @param organization_id [String] Organization ID
2321
+ # @param organization_preview_warning [OrganizationPreviewWarning]
2322
+ # @param [Hash] opts the optional parameters
2323
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
2324
+ def update_organization_preview_warning_with_http_info(organization_id, organization_preview_warning, opts = {})
2325
+ if @api_client.config.debugging
2326
+ @api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization_preview_warning ...'
2327
+ end
2328
+ # verify the required parameter 'organization_id' is set
2329
+ if @api_client.config.client_side_validation && organization_id.nil?
2330
+ fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.update_organization_preview_warning"
2331
+ end
2332
+ # verify the required parameter 'organization_preview_warning' is set
2333
+ if @api_client.config.client_side_validation && organization_preview_warning.nil?
2334
+ fail ArgumentError, "Missing the required parameter 'organization_preview_warning' when calling OrganizationsApi.update_organization_preview_warning"
2335
+ end
2336
+ # resource path
2337
+ local_var_path = '/organizations/{organizationId}/preview-warning'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
2338
+
2339
+ # query parameters
2340
+ query_params = opts[:query_params] || {}
2341
+
2342
+ # header parameters
2343
+ header_params = opts[:header_params] || {}
2344
+ # HTTP header 'Content-Type'
2345
+ content_type = @api_client.select_header_content_type(['application/json'])
2346
+ if !content_type.nil?
2347
+ header_params['Content-Type'] = content_type
2348
+ end
2349
+
2350
+ # form parameters
2351
+ form_params = opts[:form_params] || {}
2352
+
2353
+ # http body (model)
2354
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(organization_preview_warning)
2355
+
2356
+ # return_type
2357
+ return_type = opts[:debug_return_type]
2358
+
2359
+ # auth_names
2360
+ auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
2361
+
2362
+ new_options = opts.merge(
2363
+ :operation => :"OrganizationsApi.update_organization_preview_warning",
2364
+ :header_params => header_params,
2365
+ :query_params => query_params,
2366
+ :form_params => form_params,
2367
+ :body => post_body,
2368
+ :auth_names => auth_names,
2369
+ :return_type => return_type
2370
+ )
2371
+
2372
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2373
+ if @api_client.config.debugging
2374
+ @api_client.config.logger.debug "API called: OrganizationsApi#update_organization_preview_warning\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2375
+ end
2376
+ return data, status_code, headers
2377
+ end
2378
+
2248
2379
  # Update organization quota
2249
2380
  # @param organization_id [String] Organization ID
2250
2381
  # @param update_organization_quota [UpdateOrganizationQuota]
@@ -147,6 +147,70 @@ module DaytonaApiClient
147
147
  return data, status_code, headers
148
148
  end
149
149
 
150
+ # Check if the preview warning page is enabled for the sandbox
151
+ # @param sandbox_id [String] ID of the sandbox, or a signed preview URL token (requires the port query param)
152
+ # @param [Hash] opts the optional parameters
153
+ # @option opts [Float] :port Port the signed preview URL token was issued for. Required when sandboxId is a signed token.
154
+ # @return [PreviewWarning]
155
+ def is_preview_warning_enabled(sandbox_id, opts = {})
156
+ data, _status_code, _headers = is_preview_warning_enabled_with_http_info(sandbox_id, opts)
157
+ data
158
+ end
159
+
160
+ # Check if the preview warning page is enabled for the sandbox
161
+ # @param sandbox_id [String] ID of the sandbox, or a signed preview URL token (requires the port query param)
162
+ # @param [Hash] opts the optional parameters
163
+ # @option opts [Float] :port Port the signed preview URL token was issued for. Required when sandboxId is a signed token.
164
+ # @return [Array<(PreviewWarning, Integer, Hash)>] PreviewWarning data, response status code and response headers
165
+ def is_preview_warning_enabled_with_http_info(sandbox_id, opts = {})
166
+ if @api_client.config.debugging
167
+ @api_client.config.logger.debug 'Calling API: PreviewApi.is_preview_warning_enabled ...'
168
+ end
169
+ # verify the required parameter 'sandbox_id' is set
170
+ if @api_client.config.client_side_validation && sandbox_id.nil?
171
+ fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling PreviewApi.is_preview_warning_enabled"
172
+ end
173
+ # resource path
174
+ local_var_path = '/preview/{sandboxId}/preview-warning'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
175
+
176
+ # query parameters
177
+ query_params = opts[:query_params] || {}
178
+ query_params[:'port'] = opts[:'port'] if !opts[:'port'].nil?
179
+
180
+ # header parameters
181
+ header_params = opts[:header_params] || {}
182
+ # HTTP header 'Accept' (if needed)
183
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
184
+
185
+ # form parameters
186
+ form_params = opts[:form_params] || {}
187
+
188
+ # http body (model)
189
+ post_body = opts[:debug_body]
190
+
191
+ # return_type
192
+ return_type = opts[:debug_return_type] || 'PreviewWarning'
193
+
194
+ # auth_names
195
+ auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
196
+
197
+ new_options = opts.merge(
198
+ :operation => :"PreviewApi.is_preview_warning_enabled",
199
+ :header_params => header_params,
200
+ :query_params => query_params,
201
+ :form_params => form_params,
202
+ :body => post_body,
203
+ :auth_names => auth_names,
204
+ :return_type => return_type
205
+ )
206
+
207
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
208
+ if @api_client.config.debugging
209
+ @api_client.config.logger.debug "API called: PreviewApi#is_preview_warning_enabled\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
210
+ end
211
+ return data, status_code, headers
212
+ end
213
+
150
214
  # Check if sandbox is public
151
215
  # @param sandbox_id [String] ID of the sandbox
152
216
  # @param [Hash] opts the optional parameters
@@ -2575,6 +2575,76 @@ module DaytonaApiClient
2575
2575
  return data, status_code, headers
2576
2576
  end
2577
2577
 
2578
+ # Set sandbox auto-pause interval
2579
+ # @param sandbox_id_or_name [String] ID or name of the sandbox
2580
+ # @param interval [Float] Auto-pause interval in minutes (0 to disable)
2581
+ # @param [Hash] opts the optional parameters
2582
+ # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
2583
+ # @return [Sandbox]
2584
+ def set_auto_pause_interval(sandbox_id_or_name, interval, opts = {})
2585
+ data, _status_code, _headers = set_auto_pause_interval_with_http_info(sandbox_id_or_name, interval, opts)
2586
+ data
2587
+ end
2588
+
2589
+ # Set sandbox auto-pause interval
2590
+ # @param sandbox_id_or_name [String] ID or name of the sandbox
2591
+ # @param interval [Float] Auto-pause interval in minutes (0 to disable)
2592
+ # @param [Hash] opts the optional parameters
2593
+ # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
2594
+ # @return [Array<(Sandbox, Integer, Hash)>] Sandbox data, response status code and response headers
2595
+ def set_auto_pause_interval_with_http_info(sandbox_id_or_name, interval, opts = {})
2596
+ if @api_client.config.debugging
2597
+ @api_client.config.logger.debug 'Calling API: SandboxApi.set_auto_pause_interval ...'
2598
+ end
2599
+ # verify the required parameter 'sandbox_id_or_name' is set
2600
+ if @api_client.config.client_side_validation && sandbox_id_or_name.nil?
2601
+ fail ArgumentError, "Missing the required parameter 'sandbox_id_or_name' when calling SandboxApi.set_auto_pause_interval"
2602
+ end
2603
+ # verify the required parameter 'interval' is set
2604
+ if @api_client.config.client_side_validation && interval.nil?
2605
+ fail ArgumentError, "Missing the required parameter 'interval' when calling SandboxApi.set_auto_pause_interval"
2606
+ end
2607
+ # resource path
2608
+ local_var_path = '/sandbox/{sandboxIdOrName}/autopause/{interval}'.sub('{' + 'sandboxIdOrName' + '}', CGI.escape(sandbox_id_or_name.to_s)).sub('{' + 'interval' + '}', CGI.escape(interval.to_s))
2609
+
2610
+ # query parameters
2611
+ query_params = opts[:query_params] || {}
2612
+
2613
+ # header parameters
2614
+ header_params = opts[:header_params] || {}
2615
+ # HTTP header 'Accept' (if needed)
2616
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2617
+ header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
2618
+
2619
+ # form parameters
2620
+ form_params = opts[:form_params] || {}
2621
+
2622
+ # http body (model)
2623
+ post_body = opts[:debug_body]
2624
+
2625
+ # return_type
2626
+ return_type = opts[:debug_return_type] || 'Sandbox'
2627
+
2628
+ # auth_names
2629
+ auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
2630
+
2631
+ new_options = opts.merge(
2632
+ :operation => :"SandboxApi.set_auto_pause_interval",
2633
+ :header_params => header_params,
2634
+ :query_params => query_params,
2635
+ :form_params => form_params,
2636
+ :body => post_body,
2637
+ :auth_names => auth_names,
2638
+ :return_type => return_type
2639
+ )
2640
+
2641
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2642
+ if @api_client.config.debugging
2643
+ @api_client.config.logger.debug "API called: SandboxApi#set_auto_pause_interval\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2644
+ end
2645
+ return data, status_code, headers
2646
+ end
2647
+
2578
2648
  # Set sandbox auto-stop interval
2579
2649
  # @param sandbox_id_or_name [String] ID or name of the sandbox
2580
2650
  # @param interval [Float] Auto-stop interval in minutes (0 to disable)
@@ -2987,6 +3057,83 @@ module DaytonaApiClient
2987
3057
  return data, status_code, headers
2988
3058
  end
2989
3059
 
3060
+ # Update sandbox secrets
3061
+ # Replaces the set of vault secrets mounted in the sandbox. Attached, detached and rotated secrets take effect for outbound requests within seconds. New env vars become visible to processes spawned after the update; a sandbox created without any secrets must be restarted for newly attached secrets to work.
3062
+ # @param sandbox_id_or_name [String] ID or name of the sandbox
3063
+ # @param update_sandbox_secrets [UpdateSandboxSecrets]
3064
+ # @param [Hash] opts the optional parameters
3065
+ # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
3066
+ # @return [Sandbox]
3067
+ def update_sandbox_secrets(sandbox_id_or_name, update_sandbox_secrets, opts = {})
3068
+ data, _status_code, _headers = update_sandbox_secrets_with_http_info(sandbox_id_or_name, update_sandbox_secrets, opts)
3069
+ data
3070
+ end
3071
+
3072
+ # Update sandbox secrets
3073
+ # Replaces the set of vault secrets mounted in the sandbox. Attached, detached and rotated secrets take effect for outbound requests within seconds. New env vars become visible to processes spawned after the update; a sandbox created without any secrets must be restarted for newly attached secrets to work.
3074
+ # @param sandbox_id_or_name [String] ID or name of the sandbox
3075
+ # @param update_sandbox_secrets [UpdateSandboxSecrets]
3076
+ # @param [Hash] opts the optional parameters
3077
+ # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
3078
+ # @return [Array<(Sandbox, Integer, Hash)>] Sandbox data, response status code and response headers
3079
+ def update_sandbox_secrets_with_http_info(sandbox_id_or_name, update_sandbox_secrets, opts = {})
3080
+ if @api_client.config.debugging
3081
+ @api_client.config.logger.debug 'Calling API: SandboxApi.update_sandbox_secrets ...'
3082
+ end
3083
+ # verify the required parameter 'sandbox_id_or_name' is set
3084
+ if @api_client.config.client_side_validation && sandbox_id_or_name.nil?
3085
+ fail ArgumentError, "Missing the required parameter 'sandbox_id_or_name' when calling SandboxApi.update_sandbox_secrets"
3086
+ end
3087
+ # verify the required parameter 'update_sandbox_secrets' is set
3088
+ if @api_client.config.client_side_validation && update_sandbox_secrets.nil?
3089
+ fail ArgumentError, "Missing the required parameter 'update_sandbox_secrets' when calling SandboxApi.update_sandbox_secrets"
3090
+ end
3091
+ # resource path
3092
+ local_var_path = '/sandbox/{sandboxIdOrName}/secrets'.sub('{' + 'sandboxIdOrName' + '}', CGI.escape(sandbox_id_or_name.to_s))
3093
+
3094
+ # query parameters
3095
+ query_params = opts[:query_params] || {}
3096
+
3097
+ # header parameters
3098
+ header_params = opts[:header_params] || {}
3099
+ # HTTP header 'Accept' (if needed)
3100
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
3101
+ # HTTP header 'Content-Type'
3102
+ content_type = @api_client.select_header_content_type(['application/json'])
3103
+ if !content_type.nil?
3104
+ header_params['Content-Type'] = content_type
3105
+ end
3106
+ header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
3107
+
3108
+ # form parameters
3109
+ form_params = opts[:form_params] || {}
3110
+
3111
+ # http body (model)
3112
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(update_sandbox_secrets)
3113
+
3114
+ # return_type
3115
+ return_type = opts[:debug_return_type] || 'Sandbox'
3116
+
3117
+ # auth_names
3118
+ auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
3119
+
3120
+ new_options = opts.merge(
3121
+ :operation => :"SandboxApi.update_sandbox_secrets",
3122
+ :header_params => header_params,
3123
+ :query_params => query_params,
3124
+ :form_params => form_params,
3125
+ :body => post_body,
3126
+ :auth_names => auth_names,
3127
+ :return_type => return_type
3128
+ )
3129
+
3130
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
3131
+ if @api_client.config.debugging
3132
+ @api_client.config.logger.debug "API called: SandboxApi#update_sandbox_secrets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3133
+ end
3134
+ return data, status_code, headers
3135
+ end
3136
+
2990
3137
  # Update sandbox state
2991
3138
  # @param sandbox_id [String] ID of the sandbox
2992
3139
  # @param update_sandbox_state_dto [UpdateSandboxStateDto]