daytona_api_client 0.164.0 → 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 +9 -0
- data/Gemfile.lock +101 -0
- data/daytona_api_client.gemspec +2 -2
- data/lib/daytona_api_client/api/api_keys_api.rb +1 -1
- data/lib/daytona_api_client/api/audit_api.rb +139 -9
- data/lib/daytona_api_client/api/docker_registry_api.rb +66 -5
- data/lib/daytona_api_client/api/health_api.rb +2 -53
- data/lib/daytona_api_client/api/organizations_api.rb +84 -814
- data/lib/daytona_api_client/api/preview_api.rb +7 -76
- data/lib/daytona_api_client/api/runners_api.rb +21 -408
- data/lib/daytona_api_client/api/sandbox_api.rb +200 -1103
- data/lib/daytona_api_client/api/snapshots_api.rb +110 -36
- data/lib/daytona_api_client/api/toolbox_api.rb +740 -740
- data/lib/daytona_api_client/api/users_api.rb +238 -1
- data/lib/daytona_api_client/api/volumes_api.rb +1 -1
- data/lib/daytona_api_client/api/webhooks_api.rb +267 -4
- data/lib/daytona_api_client/api/workspace_api.rb +5 -5
- data/lib/daytona_api_client/api_client.rb +1 -1
- data/lib/daytona_api_client/configuration.rb +1 -4
- data/lib/daytona_api_client/models/account_provider.rb +0 -2
- data/lib/daytona_api_client/models/announcement.rb +0 -2
- data/lib/daytona_api_client/models/api_key_list.rb +0 -2
- data/lib/daytona_api_client/models/api_key_response.rb +0 -2
- data/lib/daytona_api_client/models/audit_log.rb +1 -21
- data/lib/daytona_api_client/models/build_info.rb +4 -33
- data/lib/daytona_api_client/models/command.rb +0 -2
- data/lib/daytona_api_client/models/completion_context.rb +0 -2
- data/lib/daytona_api_client/models/completion_item.rb +0 -2
- data/lib/daytona_api_client/models/completion_list.rb +0 -2
- data/lib/daytona_api_client/models/compressed_screenshot_response.rb +0 -2
- data/lib/daytona_api_client/models/computer_use_start_response.rb +0 -2
- data/lib/daytona_api_client/models/computer_use_status_response.rb +0 -2
- data/lib/daytona_api_client/models/computer_use_stop_response.rb +0 -2
- data/lib/daytona_api_client/models/create_api_key.rb +1 -3
- data/lib/daytona_api_client/models/{job.rb → create_audit_log.rb} +79 -168
- data/lib/daytona_api_client/models/create_build_info.rb +0 -2
- data/lib/daytona_api_client/models/create_docker_registry.rb +65 -6
- data/lib/daytona_api_client/models/create_linked_account.rb +0 -2
- data/lib/daytona_api_client/models/create_organization.rb +4 -33
- data/lib/daytona_api_client/models/create_organization_invitation.rb +0 -2
- data/lib/daytona_api_client/models/create_organization_quota.rb +0 -2
- data/lib/daytona_api_client/models/create_organization_role.rb +0 -2
- data/lib/daytona_api_client/models/create_runner.rb +315 -33
- data/lib/daytona_api_client/models/create_sandbox.rb +1 -13
- data/lib/daytona_api_client/models/create_session_request.rb +0 -2
- data/lib/daytona_api_client/models/create_snapshot.rb +14 -16
- data/lib/daytona_api_client/models/create_user.rb +1 -12
- data/lib/daytona_api_client/models/create_volume.rb +0 -2
- data/lib/daytona_api_client/models/create_workspace.rb +0 -2
- data/lib/daytona_api_client/models/daytona_configuration.rb +4 -53
- data/lib/daytona_api_client/models/display_info_response.rb +0 -2
- data/lib/daytona_api_client/models/docker_registry.rb +0 -2
- data/lib/daytona_api_client/models/download_files.rb +0 -2
- data/lib/daytona_api_client/models/execute_request.rb +0 -2
- data/lib/daytona_api_client/models/execute_response.rb +0 -2
- data/lib/daytona_api_client/models/file_info.rb +0 -2
- data/lib/daytona_api_client/models/file_status.rb +0 -2
- data/lib/daytona_api_client/models/git_add_request.rb +0 -2
- data/lib/daytona_api_client/models/git_branch_request.rb +0 -2
- data/lib/daytona_api_client/models/git_checkout_request.rb +0 -2
- data/lib/daytona_api_client/models/git_clone_request.rb +0 -2
- data/lib/daytona_api_client/models/git_commit_info.rb +0 -2
- data/lib/daytona_api_client/models/git_commit_request.rb +0 -2
- data/lib/daytona_api_client/models/git_commit_response.rb +0 -2
- data/lib/daytona_api_client/models/git_delete_branch_request.rb +0 -2
- data/lib/daytona_api_client/models/git_repo_request.rb +0 -2
- data/lib/daytona_api_client/models/git_status.rb +0 -2
- data/lib/daytona_api_client/models/health_controller_check200_response.rb +0 -2
- data/lib/daytona_api_client/models/health_controller_check200_response_info_value.rb +0 -2
- data/lib/daytona_api_client/models/health_controller_check503_response.rb +0 -2
- data/lib/daytona_api_client/models/keyboard_hotkey_request.rb +0 -2
- data/lib/daytona_api_client/models/keyboard_press_request.rb +0 -2
- data/lib/daytona_api_client/models/keyboard_type_request.rb +0 -2
- data/lib/daytona_api_client/models/list_branch_response.rb +0 -2
- data/lib/daytona_api_client/models/lsp_completion_params.rb +0 -2
- data/lib/daytona_api_client/models/lsp_document_request.rb +0 -2
- data/lib/daytona_api_client/models/lsp_location.rb +0 -2
- data/lib/daytona_api_client/models/lsp_server_request.rb +0 -2
- data/lib/daytona_api_client/models/lsp_symbol.rb +0 -2
- data/lib/daytona_api_client/models/match.rb +0 -2
- data/lib/daytona_api_client/models/mouse_click_request.rb +0 -2
- data/lib/daytona_api_client/models/mouse_click_response.rb +0 -2
- data/lib/daytona_api_client/models/mouse_drag_request.rb +0 -2
- data/lib/daytona_api_client/models/mouse_drag_response.rb +0 -2
- data/lib/daytona_api_client/models/mouse_move_request.rb +0 -2
- data/lib/daytona_api_client/models/mouse_move_response.rb +0 -2
- data/lib/daytona_api_client/models/mouse_position.rb +0 -2
- data/lib/daytona_api_client/models/mouse_scroll_request.rb +0 -2
- data/lib/daytona_api_client/models/mouse_scroll_response.rb +0 -2
- data/lib/daytona_api_client/models/oidc_config.rb +0 -2
- data/lib/daytona_api_client/models/organization.rb +85 -148
- data/lib/daytona_api_client/models/organization_invitation.rb +0 -2
- data/lib/daytona_api_client/models/organization_role.rb +0 -2
- data/lib/daytona_api_client/models/organization_sandbox_default_limited_network_egress.rb +0 -2
- data/lib/daytona_api_client/models/organization_suspension.rb +5 -9
- data/lib/daytona_api_client/models/organization_usage_overview.rb +146 -20
- data/lib/daytona_api_client/models/organization_user.rb +0 -2
- data/lib/daytona_api_client/models/paginated_audit_logs.rb +4 -16
- data/lib/daytona_api_client/models/paginated_sandboxes.rb +0 -2
- data/lib/daytona_api_client/models/paginated_snapshots.rb +0 -2
- data/lib/daytona_api_client/models/{paginated_jobs.rb → paginated_snapshots_dto.rb} +4 -6
- data/lib/daytona_api_client/models/port_preview_url.rb +14 -33
- data/lib/daytona_api_client/models/position.rb +0 -2
- data/lib/daytona_api_client/models/posthog_config.rb +0 -2
- data/lib/daytona_api_client/models/process_errors_response.rb +0 -2
- data/lib/daytona_api_client/models/process_logs_response.rb +0 -2
- data/lib/daytona_api_client/models/process_restart_response.rb +0 -2
- data/lib/daytona_api_client/models/process_status_response.rb +0 -2
- data/lib/daytona_api_client/models/project_dir_response.rb +0 -2
- data/lib/daytona_api_client/models/pty_create_request.rb +0 -2
- data/lib/daytona_api_client/models/pty_create_response.rb +0 -2
- data/lib/daytona_api_client/models/pty_list_response.rb +0 -2
- data/lib/daytona_api_client/models/pty_resize_request.rb +0 -2
- data/lib/daytona_api_client/models/pty_session_info.rb +0 -2
- data/lib/daytona_api_client/models/range.rb +0 -2
- data/lib/daytona_api_client/models/region.rb +4 -180
- data/lib/daytona_api_client/models/region_screenshot_response.rb +0 -2
- data/lib/daytona_api_client/models/registry_push_access_dto.rb +0 -2
- data/lib/daytona_api_client/models/replace_request.rb +0 -2
- data/lib/daytona_api_client/models/replace_result.rb +0 -2
- data/lib/daytona_api_client/models/runner.rb +117 -81
- data/lib/daytona_api_client/models/runner_snapshot_dto.rb +17 -2
- data/lib/daytona_api_client/models/sandbox.rb +14 -80
- data/lib/daytona_api_client/models/sandbox_info.rb +0 -2
- data/lib/daytona_api_client/models/sandbox_labels.rb +0 -2
- data/lib/daytona_api_client/models/sandbox_state.rb +1 -2
- data/lib/daytona_api_client/models/sandbox_volume.rb +4 -16
- data/lib/daytona_api_client/models/screenshot_response.rb +0 -2
- data/lib/daytona_api_client/models/search_files_response.rb +0 -2
- data/lib/daytona_api_client/models/send_webhook_dto.rb +1 -25
- data/lib/daytona_api_client/models/session.rb +0 -2
- data/lib/daytona_api_client/models/session_execute_request.rb +0 -2
- data/lib/daytona_api_client/models/session_execute_response.rb +0 -2
- data/lib/daytona_api_client/models/set_snapshot_general_status_dto.rb +0 -2
- data/lib/daytona_api_client/models/snapshot_dto.rb +4 -38
- data/lib/daytona_api_client/models/snapshot_state.rb +4 -1
- data/lib/daytona_api_client/models/ssh_access_dto.rb +4 -33
- data/lib/daytona_api_client/models/ssh_access_validation_dto.rb +24 -6
- data/lib/daytona_api_client/models/storage_access_dto.rb +0 -2
- data/lib/daytona_api_client/models/update_docker_registry.rb +0 -2
- data/lib/daytona_api_client/models/update_organization_invitation.rb +0 -2
- data/lib/daytona_api_client/models/update_organization_member_access.rb +0 -2
- data/lib/daytona_api_client/models/update_organization_quota.rb +41 -92
- data/lib/daytona_api_client/models/update_organization_role.rb +0 -2
- data/lib/daytona_api_client/models/update_sandbox_state_dto.rb +6 -28
- data/lib/daytona_api_client/models/user.rb +0 -2
- data/lib/daytona_api_client/models/user_home_dir_response.rb +0 -2
- data/lib/daytona_api_client/models/user_public_key.rb +0 -2
- data/lib/daytona_api_client/models/volume_dto.rb +0 -2
- data/lib/daytona_api_client/models/webhook_app_portal_access.rb +1 -30
- data/lib/daytona_api_client/models/{admin_get_webhook_status200_response.rb → webhook_controller_get_status200_response.rb} +3 -5
- data/lib/daytona_api_client/models/webhook_initialization_status.rb +0 -2
- data/lib/daytona_api_client/models/windows_response.rb +0 -2
- data/lib/daytona_api_client/models/work_dir_response.rb +0 -2
- data/lib/daytona_api_client/models/workspace.rb +27 -66
- data/lib/daytona_api_client/version.rb +1 -1
- data/lib/daytona_api_client.rb +2 -43
- data/project.json +11 -38
- metadata +6 -51
- data/.gitignore +0 -39
- data/.openapi-generator/FILES +0 -206
- data/.openapi-generator/VERSION +0 -1
- data/.openapi-generator-ignore +0 -31
- data/.rspec +0 -2
- data/.rubocop.yml +0 -148
- data/fix-gemspec.sh +0 -11
- data/lib/daytona_api_client/api/admin_api.rb +0 -1151
- data/lib/daytona_api_client/api/jobs_api.rb +0 -299
- data/lib/daytona_api_client/api/regions_api.rb +0 -77
- data/lib/daytona_api_client/models/admin_create_runner.rb +0 -387
- data/lib/daytona_api_client/models/create_region.rb +0 -271
- data/lib/daytona_api_client/models/create_region_response.rb +0 -282
- data/lib/daytona_api_client/models/create_runner_response.rb +0 -265
- data/lib/daytona_api_client/models/job_status.rb +0 -42
- data/lib/daytona_api_client/models/job_type.rb +0 -50
- data/lib/daytona_api_client/models/log_entry.rb +0 -407
- data/lib/daytona_api_client/models/metric_data_point.rb +0 -265
- data/lib/daytona_api_client/models/metric_series.rb +0 -267
- data/lib/daytona_api_client/models/metrics_response.rb +0 -240
- data/lib/daytona_api_client/models/otel_config.rb +0 -251
- data/lib/daytona_api_client/models/paginated_logs.rb +0 -321
- data/lib/daytona_api_client/models/paginated_traces.rb +0 -321
- data/lib/daytona_api_client/models/poll_jobs_response.rb +0 -240
- data/lib/daytona_api_client/models/rate_limit_config.rb +0 -251
- data/lib/daytona_api_client/models/rate_limit_entry.rb +0 -231
- data/lib/daytona_api_client/models/regenerate_api_key_response.rb +0 -238
- data/lib/daytona_api_client/models/region_quota.rb +0 -341
- data/lib/daytona_api_client/models/region_type.rb +0 -41
- data/lib/daytona_api_client/models/region_usage_overview.rb +0 -393
- data/lib/daytona_api_client/models/resize_sandbox.rb +0 -298
- data/lib/daytona_api_client/models/runner_full.rb +0 -781
- data/lib/daytona_api_client/models/runner_health_metrics.rb +0 -535
- data/lib/daytona_api_client/models/runner_healthcheck.rb +0 -290
- data/lib/daytona_api_client/models/runner_service_health.rb +0 -275
- data/lib/daytona_api_client/models/signed_port_preview_url.rb +0 -319
- data/lib/daytona_api_client/models/snapshot_manager_credentials.rb +0 -265
- data/lib/daytona_api_client/models/toolbox_proxy_url.rb +0 -238
- data/lib/daytona_api_client/models/trace_span.rb +0 -405
- data/lib/daytona_api_client/models/trace_summary.rb +0 -383
- data/lib/daytona_api_client/models/update_job_status.rb +0 -280
- data/lib/daytona_api_client/models/update_organization_default_region.rb +0 -238
- data/lib/daytona_api_client/models/update_organization_region_quota.rb +0 -247
- data/lib/daytona_api_client/models/update_region.rb +0 -244
- data/lib/daytona_api_client/models/url.rb +0 -238
- data/lib/daytona_api_client/models/webhook_event.rb +0 -45
- data/lib/daytona_api_client/models/workspace_port_preview_url.rb +0 -265
|
@@ -22,16 +22,16 @@ module DaytonaApiClient
|
|
|
22
22
|
# Accept organization invitation
|
|
23
23
|
# @param invitation_id [String] Invitation ID
|
|
24
24
|
# @param [Hash] opts the optional parameters
|
|
25
|
-
# @return [
|
|
25
|
+
# @return [nil]
|
|
26
26
|
def accept_organization_invitation(invitation_id, opts = {})
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
accept_organization_invitation_with_http_info(invitation_id, opts)
|
|
28
|
+
nil
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
# Accept organization invitation
|
|
32
32
|
# @param invitation_id [String] Invitation ID
|
|
33
33
|
# @param [Hash] opts the optional parameters
|
|
34
|
-
# @return [Array<(
|
|
34
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
35
35
|
def accept_organization_invitation_with_http_info(invitation_id, opts = {})
|
|
36
36
|
if @api_client.config.debugging
|
|
37
37
|
@api_client.config.logger.debug 'Calling API: OrganizationsApi.accept_organization_invitation ...'
|
|
@@ -48,8 +48,6 @@ module DaytonaApiClient
|
|
|
48
48
|
|
|
49
49
|
# header parameters
|
|
50
50
|
header_params = opts[:header_params] || {}
|
|
51
|
-
# HTTP header 'Accept' (if needed)
|
|
52
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
53
51
|
|
|
54
52
|
# form parameters
|
|
55
53
|
form_params = opts[:form_params] || {}
|
|
@@ -58,7 +56,7 @@ module DaytonaApiClient
|
|
|
58
56
|
post_body = opts[:debug_body]
|
|
59
57
|
|
|
60
58
|
# return_type
|
|
61
|
-
return_type = opts[:debug_return_type]
|
|
59
|
+
return_type = opts[:debug_return_type]
|
|
62
60
|
|
|
63
61
|
# auth_names
|
|
64
62
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
@@ -179,7 +177,7 @@ module DaytonaApiClient
|
|
|
179
177
|
# HTTP header 'Content-Type'
|
|
180
178
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
181
179
|
if !content_type.nil?
|
|
182
|
-
|
|
180
|
+
header_params['Content-Type'] = content_type
|
|
183
181
|
end
|
|
184
182
|
|
|
185
183
|
# form parameters
|
|
@@ -251,7 +249,7 @@ module DaytonaApiClient
|
|
|
251
249
|
# HTTP header 'Content-Type'
|
|
252
250
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
253
251
|
if !content_type.nil?
|
|
254
|
-
|
|
252
|
+
header_params['Content-Type'] = content_type
|
|
255
253
|
end
|
|
256
254
|
|
|
257
255
|
# form parameters
|
|
@@ -323,7 +321,7 @@ module DaytonaApiClient
|
|
|
323
321
|
# HTTP header 'Content-Type'
|
|
324
322
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
325
323
|
if !content_type.nil?
|
|
326
|
-
|
|
324
|
+
header_params['Content-Type'] = content_type
|
|
327
325
|
end
|
|
328
326
|
|
|
329
327
|
# form parameters
|
|
@@ -355,75 +353,6 @@ module DaytonaApiClient
|
|
|
355
353
|
return data, status_code, headers
|
|
356
354
|
end
|
|
357
355
|
|
|
358
|
-
# Create a new region
|
|
359
|
-
# @param create_region [CreateRegion]
|
|
360
|
-
# @param [Hash] opts the optional parameters
|
|
361
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
362
|
-
# @return [CreateRegionResponse]
|
|
363
|
-
def create_region(create_region, opts = {})
|
|
364
|
-
data, _status_code, _headers = create_region_with_http_info(create_region, opts)
|
|
365
|
-
data
|
|
366
|
-
end
|
|
367
|
-
|
|
368
|
-
# Create a new region
|
|
369
|
-
# @param create_region [CreateRegion]
|
|
370
|
-
# @param [Hash] opts the optional parameters
|
|
371
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
372
|
-
# @return [Array<(CreateRegionResponse, Integer, Hash)>] CreateRegionResponse data, response status code and response headers
|
|
373
|
-
def create_region_with_http_info(create_region, opts = {})
|
|
374
|
-
if @api_client.config.debugging
|
|
375
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.create_region ...'
|
|
376
|
-
end
|
|
377
|
-
# verify the required parameter 'create_region' is set
|
|
378
|
-
if @api_client.config.client_side_validation && create_region.nil?
|
|
379
|
-
fail ArgumentError, "Missing the required parameter 'create_region' when calling OrganizationsApi.create_region"
|
|
380
|
-
end
|
|
381
|
-
# resource path
|
|
382
|
-
local_var_path = '/regions'
|
|
383
|
-
|
|
384
|
-
# query parameters
|
|
385
|
-
query_params = opts[:query_params] || {}
|
|
386
|
-
|
|
387
|
-
# header parameters
|
|
388
|
-
header_params = opts[:header_params] || {}
|
|
389
|
-
# HTTP header 'Accept' (if needed)
|
|
390
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
391
|
-
# HTTP header 'Content-Type'
|
|
392
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
393
|
-
if !content_type.nil?
|
|
394
|
-
header_params['Content-Type'] = content_type
|
|
395
|
-
end
|
|
396
|
-
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
397
|
-
|
|
398
|
-
# form parameters
|
|
399
|
-
form_params = opts[:form_params] || {}
|
|
400
|
-
|
|
401
|
-
# http body (model)
|
|
402
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_region)
|
|
403
|
-
|
|
404
|
-
# return_type
|
|
405
|
-
return_type = opts[:debug_return_type] || 'CreateRegionResponse'
|
|
406
|
-
|
|
407
|
-
# auth_names
|
|
408
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
409
|
-
|
|
410
|
-
new_options = opts.merge(
|
|
411
|
-
:operation => :"OrganizationsApi.create_region",
|
|
412
|
-
:header_params => header_params,
|
|
413
|
-
:query_params => query_params,
|
|
414
|
-
:form_params => form_params,
|
|
415
|
-
:body => post_body,
|
|
416
|
-
:auth_names => auth_names,
|
|
417
|
-
:return_type => return_type
|
|
418
|
-
)
|
|
419
|
-
|
|
420
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
421
|
-
if @api_client.config.debugging
|
|
422
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#create_region\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
423
|
-
end
|
|
424
|
-
return data, status_code, headers
|
|
425
|
-
end
|
|
426
|
-
|
|
427
356
|
# Decline organization invitation
|
|
428
357
|
# @param invitation_id [String] Invitation ID
|
|
429
358
|
# @param [Hash] opts the optional parameters
|
|
@@ -672,68 +601,6 @@ module DaytonaApiClient
|
|
|
672
601
|
return data, status_code, headers
|
|
673
602
|
end
|
|
674
603
|
|
|
675
|
-
# Delete a region
|
|
676
|
-
# @param id [String] Region ID
|
|
677
|
-
# @param [Hash] opts the optional parameters
|
|
678
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
679
|
-
# @return [nil]
|
|
680
|
-
def delete_region(id, opts = {})
|
|
681
|
-
delete_region_with_http_info(id, opts)
|
|
682
|
-
nil
|
|
683
|
-
end
|
|
684
|
-
|
|
685
|
-
# Delete a region
|
|
686
|
-
# @param id [String] Region ID
|
|
687
|
-
# @param [Hash] opts the optional parameters
|
|
688
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
689
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
690
|
-
def delete_region_with_http_info(id, opts = {})
|
|
691
|
-
if @api_client.config.debugging
|
|
692
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.delete_region ...'
|
|
693
|
-
end
|
|
694
|
-
# verify the required parameter 'id' is set
|
|
695
|
-
if @api_client.config.client_side_validation && id.nil?
|
|
696
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.delete_region"
|
|
697
|
-
end
|
|
698
|
-
# resource path
|
|
699
|
-
local_var_path = '/regions/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
700
|
-
|
|
701
|
-
# query parameters
|
|
702
|
-
query_params = opts[:query_params] || {}
|
|
703
|
-
|
|
704
|
-
# header parameters
|
|
705
|
-
header_params = opts[:header_params] || {}
|
|
706
|
-
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
707
|
-
|
|
708
|
-
# form parameters
|
|
709
|
-
form_params = opts[:form_params] || {}
|
|
710
|
-
|
|
711
|
-
# http body (model)
|
|
712
|
-
post_body = opts[:debug_body]
|
|
713
|
-
|
|
714
|
-
# return_type
|
|
715
|
-
return_type = opts[:debug_return_type]
|
|
716
|
-
|
|
717
|
-
# auth_names
|
|
718
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
719
|
-
|
|
720
|
-
new_options = opts.merge(
|
|
721
|
-
:operation => :"OrganizationsApi.delete_region",
|
|
722
|
-
:header_params => header_params,
|
|
723
|
-
:query_params => query_params,
|
|
724
|
-
:form_params => form_params,
|
|
725
|
-
:body => post_body,
|
|
726
|
-
:auth_names => auth_names,
|
|
727
|
-
:return_type => return_type
|
|
728
|
-
)
|
|
729
|
-
|
|
730
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
731
|
-
if @api_client.config.debugging
|
|
732
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#delete_region\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
733
|
-
end
|
|
734
|
-
return data, status_code, headers
|
|
735
|
-
end
|
|
736
|
-
|
|
737
604
|
# Get organization by ID
|
|
738
605
|
# @param organization_id [String] Organization ID
|
|
739
606
|
# @param [Hash] opts the optional parameters
|
|
@@ -795,23 +662,29 @@ module DaytonaApiClient
|
|
|
795
662
|
return data, status_code, headers
|
|
796
663
|
end
|
|
797
664
|
|
|
798
|
-
# Get
|
|
665
|
+
# Get organization by sandbox ID
|
|
666
|
+
# @param sandbox_id [String] Sandbox ID
|
|
799
667
|
# @param [Hash] opts the optional parameters
|
|
800
|
-
# @return [
|
|
801
|
-
def
|
|
802
|
-
data, _status_code, _headers =
|
|
668
|
+
# @return [Organization]
|
|
669
|
+
def get_organization_by_sandbox_id(sandbox_id, opts = {})
|
|
670
|
+
data, _status_code, _headers = get_organization_by_sandbox_id_with_http_info(sandbox_id, opts)
|
|
803
671
|
data
|
|
804
672
|
end
|
|
805
673
|
|
|
806
|
-
# Get
|
|
674
|
+
# Get organization by sandbox ID
|
|
675
|
+
# @param sandbox_id [String] Sandbox ID
|
|
807
676
|
# @param [Hash] opts the optional parameters
|
|
808
|
-
# @return [Array<(
|
|
809
|
-
def
|
|
677
|
+
# @return [Array<(Organization, Integer, Hash)>] Organization data, response status code and response headers
|
|
678
|
+
def get_organization_by_sandbox_id_with_http_info(sandbox_id, opts = {})
|
|
810
679
|
if @api_client.config.debugging
|
|
811
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
|
680
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization_by_sandbox_id ...'
|
|
681
|
+
end
|
|
682
|
+
# verify the required parameter 'sandbox_id' is set
|
|
683
|
+
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
684
|
+
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling OrganizationsApi.get_organization_by_sandbox_id"
|
|
812
685
|
end
|
|
813
686
|
# resource path
|
|
814
|
-
local_var_path = '/organizations/
|
|
687
|
+
local_var_path = '/organizations/by-sandbox-id/{sandboxId}'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
815
688
|
|
|
816
689
|
# query parameters
|
|
817
690
|
query_params = opts[:query_params] || {}
|
|
@@ -828,13 +701,13 @@ module DaytonaApiClient
|
|
|
828
701
|
post_body = opts[:debug_body]
|
|
829
702
|
|
|
830
703
|
# return_type
|
|
831
|
-
return_type = opts[:debug_return_type] || '
|
|
704
|
+
return_type = opts[:debug_return_type] || 'Organization'
|
|
832
705
|
|
|
833
706
|
# auth_names
|
|
834
707
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
835
708
|
|
|
836
709
|
new_options = opts.merge(
|
|
837
|
-
:operation => :"OrganizationsApi.
|
|
710
|
+
:operation => :"OrganizationsApi.get_organization_by_sandbox_id",
|
|
838
711
|
:header_params => header_params,
|
|
839
712
|
:query_params => query_params,
|
|
840
713
|
:form_params => form_params,
|
|
@@ -845,34 +718,28 @@ module DaytonaApiClient
|
|
|
845
718
|
|
|
846
719
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
847
720
|
if @api_client.config.debugging
|
|
848
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#
|
|
721
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#get_organization_by_sandbox_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
849
722
|
end
|
|
850
723
|
return data, status_code, headers
|
|
851
724
|
end
|
|
852
725
|
|
|
853
|
-
# Get
|
|
854
|
-
# @param auth_token [String] Sandbox Auth Token
|
|
726
|
+
# Get count of organization invitations for authenticated user
|
|
855
727
|
# @param [Hash] opts the optional parameters
|
|
856
|
-
# @return [
|
|
857
|
-
def
|
|
858
|
-
data, _status_code, _headers =
|
|
728
|
+
# @return [Float]
|
|
729
|
+
def get_organization_invitations_count_for_authenticated_user(opts = {})
|
|
730
|
+
data, _status_code, _headers = get_organization_invitations_count_for_authenticated_user_with_http_info(opts)
|
|
859
731
|
data
|
|
860
732
|
end
|
|
861
733
|
|
|
862
|
-
# Get
|
|
863
|
-
# @param auth_token [String] Sandbox Auth Token
|
|
734
|
+
# Get count of organization invitations for authenticated user
|
|
864
735
|
# @param [Hash] opts the optional parameters
|
|
865
|
-
# @return [Array<(
|
|
866
|
-
def
|
|
736
|
+
# @return [Array<(Float, Integer, Hash)>] Float data, response status code and response headers
|
|
737
|
+
def get_organization_invitations_count_for_authenticated_user_with_http_info(opts = {})
|
|
867
738
|
if @api_client.config.debugging
|
|
868
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
|
869
|
-
end
|
|
870
|
-
# verify the required parameter 'auth_token' is set
|
|
871
|
-
if @api_client.config.client_side_validation && auth_token.nil?
|
|
872
|
-
fail ArgumentError, "Missing the required parameter 'auth_token' when calling OrganizationsApi.get_organization_otel_config_by_sandbox_auth_token"
|
|
739
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization_invitations_count_for_authenticated_user ...'
|
|
873
740
|
end
|
|
874
741
|
# resource path
|
|
875
|
-
local_var_path = '/organizations/
|
|
742
|
+
local_var_path = '/organizations/invitations/count'
|
|
876
743
|
|
|
877
744
|
# query parameters
|
|
878
745
|
query_params = opts[:query_params] || {}
|
|
@@ -889,13 +756,13 @@ module DaytonaApiClient
|
|
|
889
756
|
post_body = opts[:debug_body]
|
|
890
757
|
|
|
891
758
|
# return_type
|
|
892
|
-
return_type = opts[:debug_return_type] || '
|
|
759
|
+
return_type = opts[:debug_return_type] || 'Float'
|
|
893
760
|
|
|
894
761
|
# auth_names
|
|
895
762
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
896
763
|
|
|
897
764
|
new_options = opts.merge(
|
|
898
|
-
:operation => :"OrganizationsApi.
|
|
765
|
+
:operation => :"OrganizationsApi.get_organization_invitations_count_for_authenticated_user",
|
|
899
766
|
:header_params => header_params,
|
|
900
767
|
:query_params => query_params,
|
|
901
768
|
:form_params => form_params,
|
|
@@ -906,7 +773,7 @@ module DaytonaApiClient
|
|
|
906
773
|
|
|
907
774
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
908
775
|
if @api_client.config.debugging
|
|
909
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#
|
|
776
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#get_organization_invitations_count_for_authenticated_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
910
777
|
end
|
|
911
778
|
return data, status_code, headers
|
|
912
779
|
end
|
|
@@ -972,70 +839,6 @@ module DaytonaApiClient
|
|
|
972
839
|
return data, status_code, headers
|
|
973
840
|
end
|
|
974
841
|
|
|
975
|
-
# Get region by ID
|
|
976
|
-
# @param id [String] Region ID
|
|
977
|
-
# @param [Hash] opts the optional parameters
|
|
978
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
979
|
-
# @return [Region]
|
|
980
|
-
def get_region_by_id(id, opts = {})
|
|
981
|
-
data, _status_code, _headers = get_region_by_id_with_http_info(id, opts)
|
|
982
|
-
data
|
|
983
|
-
end
|
|
984
|
-
|
|
985
|
-
# Get region by ID
|
|
986
|
-
# @param id [String] Region ID
|
|
987
|
-
# @param [Hash] opts the optional parameters
|
|
988
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
989
|
-
# @return [Array<(Region, Integer, Hash)>] Region data, response status code and response headers
|
|
990
|
-
def get_region_by_id_with_http_info(id, opts = {})
|
|
991
|
-
if @api_client.config.debugging
|
|
992
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_region_by_id ...'
|
|
993
|
-
end
|
|
994
|
-
# verify the required parameter 'id' is set
|
|
995
|
-
if @api_client.config.client_side_validation && id.nil?
|
|
996
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.get_region_by_id"
|
|
997
|
-
end
|
|
998
|
-
# resource path
|
|
999
|
-
local_var_path = '/regions/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1000
|
-
|
|
1001
|
-
# query parameters
|
|
1002
|
-
query_params = opts[:query_params] || {}
|
|
1003
|
-
|
|
1004
|
-
# header parameters
|
|
1005
|
-
header_params = opts[:header_params] || {}
|
|
1006
|
-
# HTTP header 'Accept' (if needed)
|
|
1007
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1008
|
-
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
1009
|
-
|
|
1010
|
-
# form parameters
|
|
1011
|
-
form_params = opts[:form_params] || {}
|
|
1012
|
-
|
|
1013
|
-
# http body (model)
|
|
1014
|
-
post_body = opts[:debug_body]
|
|
1015
|
-
|
|
1016
|
-
# return_type
|
|
1017
|
-
return_type = opts[:debug_return_type] || 'Region'
|
|
1018
|
-
|
|
1019
|
-
# auth_names
|
|
1020
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1021
|
-
|
|
1022
|
-
new_options = opts.merge(
|
|
1023
|
-
:operation => :"OrganizationsApi.get_region_by_id",
|
|
1024
|
-
:header_params => header_params,
|
|
1025
|
-
:query_params => query_params,
|
|
1026
|
-
:form_params => form_params,
|
|
1027
|
-
:body => post_body,
|
|
1028
|
-
:auth_names => auth_names,
|
|
1029
|
-
:return_type => return_type
|
|
1030
|
-
)
|
|
1031
|
-
|
|
1032
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1033
|
-
if @api_client.config.debugging
|
|
1034
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#get_region_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1035
|
-
end
|
|
1036
|
-
return data, status_code, headers
|
|
1037
|
-
end
|
|
1038
|
-
|
|
1039
842
|
# Leave organization
|
|
1040
843
|
# @param organization_id [String] Organization ID
|
|
1041
844
|
# @param [Hash] opts the optional parameters
|
|
@@ -1095,64 +898,6 @@ module DaytonaApiClient
|
|
|
1095
898
|
return data, status_code, headers
|
|
1096
899
|
end
|
|
1097
900
|
|
|
1098
|
-
# List all available regions for the organization
|
|
1099
|
-
# @param [Hash] opts the optional parameters
|
|
1100
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1101
|
-
# @return [Array<Region>]
|
|
1102
|
-
def list_available_regions(opts = {})
|
|
1103
|
-
data, _status_code, _headers = list_available_regions_with_http_info(opts)
|
|
1104
|
-
data
|
|
1105
|
-
end
|
|
1106
|
-
|
|
1107
|
-
# List all available regions for the organization
|
|
1108
|
-
# @param [Hash] opts the optional parameters
|
|
1109
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1110
|
-
# @return [Array<(Array<Region>, Integer, Hash)>] Array<Region> data, response status code and response headers
|
|
1111
|
-
def list_available_regions_with_http_info(opts = {})
|
|
1112
|
-
if @api_client.config.debugging
|
|
1113
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_available_regions ...'
|
|
1114
|
-
end
|
|
1115
|
-
# resource path
|
|
1116
|
-
local_var_path = '/regions'
|
|
1117
|
-
|
|
1118
|
-
# query parameters
|
|
1119
|
-
query_params = opts[:query_params] || {}
|
|
1120
|
-
|
|
1121
|
-
# header parameters
|
|
1122
|
-
header_params = opts[:header_params] || {}
|
|
1123
|
-
# HTTP header 'Accept' (if needed)
|
|
1124
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1125
|
-
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
1126
|
-
|
|
1127
|
-
# form parameters
|
|
1128
|
-
form_params = opts[:form_params] || {}
|
|
1129
|
-
|
|
1130
|
-
# http body (model)
|
|
1131
|
-
post_body = opts[:debug_body]
|
|
1132
|
-
|
|
1133
|
-
# return_type
|
|
1134
|
-
return_type = opts[:debug_return_type] || 'Array<Region>'
|
|
1135
|
-
|
|
1136
|
-
# auth_names
|
|
1137
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1138
|
-
|
|
1139
|
-
new_options = opts.merge(
|
|
1140
|
-
:operation => :"OrganizationsApi.list_available_regions",
|
|
1141
|
-
:header_params => header_params,
|
|
1142
|
-
:query_params => query_params,
|
|
1143
|
-
:form_params => form_params,
|
|
1144
|
-
:body => post_body,
|
|
1145
|
-
:auth_names => auth_names,
|
|
1146
|
-
:return_type => return_type
|
|
1147
|
-
)
|
|
1148
|
-
|
|
1149
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1150
|
-
if @api_client.config.debugging
|
|
1151
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#list_available_regions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1152
|
-
end
|
|
1153
|
-
return data, status_code, headers
|
|
1154
|
-
end
|
|
1155
|
-
|
|
1156
901
|
# List pending organization invitations
|
|
1157
902
|
# @param organization_id [String] Organization ID
|
|
1158
903
|
# @param [Hash] opts the optional parameters
|
|
@@ -1446,55 +1191,57 @@ module DaytonaApiClient
|
|
|
1446
1191
|
return data, status_code, headers
|
|
1447
1192
|
end
|
|
1448
1193
|
|
|
1449
|
-
#
|
|
1450
|
-
# @param
|
|
1194
|
+
# Suspend organization
|
|
1195
|
+
# @param organization_id [String] Organization ID
|
|
1451
1196
|
# @param [Hash] opts the optional parameters
|
|
1452
|
-
# @option opts [
|
|
1453
|
-
# @return [
|
|
1454
|
-
def
|
|
1455
|
-
|
|
1456
|
-
|
|
1197
|
+
# @option opts [OrganizationSuspension] :organization_suspension
|
|
1198
|
+
# @return [nil]
|
|
1199
|
+
def suspend_organization(organization_id, opts = {})
|
|
1200
|
+
suspend_organization_with_http_info(organization_id, opts)
|
|
1201
|
+
nil
|
|
1457
1202
|
end
|
|
1458
1203
|
|
|
1459
|
-
#
|
|
1460
|
-
# @param
|
|
1204
|
+
# Suspend organization
|
|
1205
|
+
# @param organization_id [String] Organization ID
|
|
1461
1206
|
# @param [Hash] opts the optional parameters
|
|
1462
|
-
# @option opts [
|
|
1463
|
-
# @return [Array<(
|
|
1464
|
-
def
|
|
1207
|
+
# @option opts [OrganizationSuspension] :organization_suspension
|
|
1208
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1209
|
+
def suspend_organization_with_http_info(organization_id, opts = {})
|
|
1465
1210
|
if @api_client.config.debugging
|
|
1466
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
|
1211
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.suspend_organization ...'
|
|
1467
1212
|
end
|
|
1468
|
-
# verify the required parameter '
|
|
1469
|
-
if @api_client.config.client_side_validation &&
|
|
1470
|
-
fail ArgumentError, "Missing the required parameter '
|
|
1213
|
+
# verify the required parameter 'organization_id' is set
|
|
1214
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
|
1215
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.suspend_organization"
|
|
1471
1216
|
end
|
|
1472
1217
|
# resource path
|
|
1473
|
-
local_var_path = '/
|
|
1218
|
+
local_var_path = '/organizations/{organizationId}/suspend'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
1474
1219
|
|
|
1475
1220
|
# query parameters
|
|
1476
1221
|
query_params = opts[:query_params] || {}
|
|
1477
1222
|
|
|
1478
1223
|
# header parameters
|
|
1479
1224
|
header_params = opts[:header_params] || {}
|
|
1480
|
-
# HTTP header '
|
|
1481
|
-
|
|
1482
|
-
|
|
1225
|
+
# HTTP header 'Content-Type'
|
|
1226
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1227
|
+
if !content_type.nil?
|
|
1228
|
+
header_params['Content-Type'] = content_type
|
|
1229
|
+
end
|
|
1483
1230
|
|
|
1484
1231
|
# form parameters
|
|
1485
1232
|
form_params = opts[:form_params] || {}
|
|
1486
1233
|
|
|
1487
1234
|
# http body (model)
|
|
1488
|
-
post_body = opts[:debug_body]
|
|
1235
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'organization_suspension'])
|
|
1489
1236
|
|
|
1490
1237
|
# return_type
|
|
1491
|
-
return_type = opts[:debug_return_type]
|
|
1238
|
+
return_type = opts[:debug_return_type]
|
|
1492
1239
|
|
|
1493
1240
|
# auth_names
|
|
1494
1241
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1495
1242
|
|
|
1496
1243
|
new_options = opts.merge(
|
|
1497
|
-
:operation => :"OrganizationsApi.
|
|
1244
|
+
:operation => :"OrganizationsApi.suspend_organization",
|
|
1498
1245
|
:header_params => header_params,
|
|
1499
1246
|
:query_params => query_params,
|
|
1500
1247
|
:form_params => form_params,
|
|
@@ -1505,286 +1252,22 @@ module DaytonaApiClient
|
|
|
1505
1252
|
|
|
1506
1253
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1507
1254
|
if @api_client.config.debugging
|
|
1508
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#
|
|
1255
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#suspend_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1509
1256
|
end
|
|
1510
1257
|
return data, status_code, headers
|
|
1511
1258
|
end
|
|
1512
1259
|
|
|
1513
|
-
#
|
|
1514
|
-
# @param
|
|
1260
|
+
# Unsuspend organization
|
|
1261
|
+
# @param organization_id [String] Organization ID
|
|
1515
1262
|
# @param [Hash] opts the optional parameters
|
|
1516
|
-
# @
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
data
|
|
1263
|
+
# @return [nil]
|
|
1264
|
+
def unsuspend_organization(organization_id, opts = {})
|
|
1265
|
+
unsuspend_organization_with_http_info(organization_id, opts)
|
|
1266
|
+
nil
|
|
1521
1267
|
end
|
|
1522
1268
|
|
|
1523
|
-
#
|
|
1524
|
-
# @param
|
|
1525
|
-
# @param [Hash] opts the optional parameters
|
|
1526
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1527
|
-
# @return [Array<(SnapshotManagerCredentials, Integer, Hash)>] SnapshotManagerCredentials data, response status code and response headers
|
|
1528
|
-
def regenerate_snapshot_manager_credentials_with_http_info(id, opts = {})
|
|
1529
|
-
if @api_client.config.debugging
|
|
1530
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.regenerate_snapshot_manager_credentials ...'
|
|
1531
|
-
end
|
|
1532
|
-
# verify the required parameter 'id' is set
|
|
1533
|
-
if @api_client.config.client_side_validation && id.nil?
|
|
1534
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.regenerate_snapshot_manager_credentials"
|
|
1535
|
-
end
|
|
1536
|
-
# resource path
|
|
1537
|
-
local_var_path = '/regions/{id}/regenerate-snapshot-manager-credentials'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1538
|
-
|
|
1539
|
-
# query parameters
|
|
1540
|
-
query_params = opts[:query_params] || {}
|
|
1541
|
-
|
|
1542
|
-
# header parameters
|
|
1543
|
-
header_params = opts[:header_params] || {}
|
|
1544
|
-
# HTTP header 'Accept' (if needed)
|
|
1545
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1546
|
-
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
1547
|
-
|
|
1548
|
-
# form parameters
|
|
1549
|
-
form_params = opts[:form_params] || {}
|
|
1550
|
-
|
|
1551
|
-
# http body (model)
|
|
1552
|
-
post_body = opts[:debug_body]
|
|
1553
|
-
|
|
1554
|
-
# return_type
|
|
1555
|
-
return_type = opts[:debug_return_type] || 'SnapshotManagerCredentials'
|
|
1556
|
-
|
|
1557
|
-
# auth_names
|
|
1558
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1559
|
-
|
|
1560
|
-
new_options = opts.merge(
|
|
1561
|
-
:operation => :"OrganizationsApi.regenerate_snapshot_manager_credentials",
|
|
1562
|
-
:header_params => header_params,
|
|
1563
|
-
:query_params => query_params,
|
|
1564
|
-
:form_params => form_params,
|
|
1565
|
-
:body => post_body,
|
|
1566
|
-
:auth_names => auth_names,
|
|
1567
|
-
:return_type => return_type
|
|
1568
|
-
)
|
|
1569
|
-
|
|
1570
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1571
|
-
if @api_client.config.debugging
|
|
1572
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#regenerate_snapshot_manager_credentials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1573
|
-
end
|
|
1574
|
-
return data, status_code, headers
|
|
1575
|
-
end
|
|
1576
|
-
|
|
1577
|
-
# Regenerate SSH gateway API key for a region
|
|
1578
|
-
# @param id [String] Region ID
|
|
1579
|
-
# @param [Hash] opts the optional parameters
|
|
1580
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1581
|
-
# @return [RegenerateApiKeyResponse]
|
|
1582
|
-
def regenerate_ssh_gateway_api_key(id, opts = {})
|
|
1583
|
-
data, _status_code, _headers = regenerate_ssh_gateway_api_key_with_http_info(id, opts)
|
|
1584
|
-
data
|
|
1585
|
-
end
|
|
1586
|
-
|
|
1587
|
-
# Regenerate SSH gateway API key for a region
|
|
1588
|
-
# @param id [String] Region ID
|
|
1589
|
-
# @param [Hash] opts the optional parameters
|
|
1590
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1591
|
-
# @return [Array<(RegenerateApiKeyResponse, Integer, Hash)>] RegenerateApiKeyResponse data, response status code and response headers
|
|
1592
|
-
def regenerate_ssh_gateway_api_key_with_http_info(id, opts = {})
|
|
1593
|
-
if @api_client.config.debugging
|
|
1594
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.regenerate_ssh_gateway_api_key ...'
|
|
1595
|
-
end
|
|
1596
|
-
# verify the required parameter 'id' is set
|
|
1597
|
-
if @api_client.config.client_side_validation && id.nil?
|
|
1598
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.regenerate_ssh_gateway_api_key"
|
|
1599
|
-
end
|
|
1600
|
-
# resource path
|
|
1601
|
-
local_var_path = '/regions/{id}/regenerate-ssh-gateway-api-key'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1602
|
-
|
|
1603
|
-
# query parameters
|
|
1604
|
-
query_params = opts[:query_params] || {}
|
|
1605
|
-
|
|
1606
|
-
# header parameters
|
|
1607
|
-
header_params = opts[:header_params] || {}
|
|
1608
|
-
# HTTP header 'Accept' (if needed)
|
|
1609
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1610
|
-
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
1611
|
-
|
|
1612
|
-
# form parameters
|
|
1613
|
-
form_params = opts[:form_params] || {}
|
|
1614
|
-
|
|
1615
|
-
# http body (model)
|
|
1616
|
-
post_body = opts[:debug_body]
|
|
1617
|
-
|
|
1618
|
-
# return_type
|
|
1619
|
-
return_type = opts[:debug_return_type] || 'RegenerateApiKeyResponse'
|
|
1620
|
-
|
|
1621
|
-
# auth_names
|
|
1622
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1623
|
-
|
|
1624
|
-
new_options = opts.merge(
|
|
1625
|
-
:operation => :"OrganizationsApi.regenerate_ssh_gateway_api_key",
|
|
1626
|
-
:header_params => header_params,
|
|
1627
|
-
:query_params => query_params,
|
|
1628
|
-
:form_params => form_params,
|
|
1629
|
-
:body => post_body,
|
|
1630
|
-
:auth_names => auth_names,
|
|
1631
|
-
:return_type => return_type
|
|
1632
|
-
)
|
|
1633
|
-
|
|
1634
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1635
|
-
if @api_client.config.debugging
|
|
1636
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#regenerate_ssh_gateway_api_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1637
|
-
end
|
|
1638
|
-
return data, status_code, headers
|
|
1639
|
-
end
|
|
1640
|
-
|
|
1641
|
-
# Set default region for organization
|
|
1642
|
-
# @param organization_id [String] Organization ID
|
|
1643
|
-
# @param update_organization_default_region [UpdateOrganizationDefaultRegion]
|
|
1644
|
-
# @param [Hash] opts the optional parameters
|
|
1645
|
-
# @return [nil]
|
|
1646
|
-
def set_organization_default_region(organization_id, update_organization_default_region, opts = {})
|
|
1647
|
-
set_organization_default_region_with_http_info(organization_id, update_organization_default_region, opts)
|
|
1648
|
-
nil
|
|
1649
|
-
end
|
|
1650
|
-
|
|
1651
|
-
# Set default region for organization
|
|
1652
|
-
# @param organization_id [String] Organization ID
|
|
1653
|
-
# @param update_organization_default_region [UpdateOrganizationDefaultRegion]
|
|
1654
|
-
# @param [Hash] opts the optional parameters
|
|
1655
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1656
|
-
def set_organization_default_region_with_http_info(organization_id, update_organization_default_region, opts = {})
|
|
1657
|
-
if @api_client.config.debugging
|
|
1658
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.set_organization_default_region ...'
|
|
1659
|
-
end
|
|
1660
|
-
# verify the required parameter 'organization_id' is set
|
|
1661
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
1662
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.set_organization_default_region"
|
|
1663
|
-
end
|
|
1664
|
-
# verify the required parameter 'update_organization_default_region' is set
|
|
1665
|
-
if @api_client.config.client_side_validation && update_organization_default_region.nil?
|
|
1666
|
-
fail ArgumentError, "Missing the required parameter 'update_organization_default_region' when calling OrganizationsApi.set_organization_default_region"
|
|
1667
|
-
end
|
|
1668
|
-
# resource path
|
|
1669
|
-
local_var_path = '/organizations/{organizationId}/default-region'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
1670
|
-
|
|
1671
|
-
# query parameters
|
|
1672
|
-
query_params = opts[:query_params] || {}
|
|
1673
|
-
|
|
1674
|
-
# header parameters
|
|
1675
|
-
header_params = opts[:header_params] || {}
|
|
1676
|
-
# HTTP header 'Content-Type'
|
|
1677
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1678
|
-
if !content_type.nil?
|
|
1679
|
-
header_params['Content-Type'] = content_type
|
|
1680
|
-
end
|
|
1681
|
-
|
|
1682
|
-
# form parameters
|
|
1683
|
-
form_params = opts[:form_params] || {}
|
|
1684
|
-
|
|
1685
|
-
# http body (model)
|
|
1686
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_organization_default_region)
|
|
1687
|
-
|
|
1688
|
-
# return_type
|
|
1689
|
-
return_type = opts[:debug_return_type]
|
|
1690
|
-
|
|
1691
|
-
# auth_names
|
|
1692
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1693
|
-
|
|
1694
|
-
new_options = opts.merge(
|
|
1695
|
-
:operation => :"OrganizationsApi.set_organization_default_region",
|
|
1696
|
-
:header_params => header_params,
|
|
1697
|
-
:query_params => query_params,
|
|
1698
|
-
:form_params => form_params,
|
|
1699
|
-
:body => post_body,
|
|
1700
|
-
:auth_names => auth_names,
|
|
1701
|
-
:return_type => return_type
|
|
1702
|
-
)
|
|
1703
|
-
|
|
1704
|
-
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
1705
|
-
if @api_client.config.debugging
|
|
1706
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#set_organization_default_region\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1707
|
-
end
|
|
1708
|
-
return data, status_code, headers
|
|
1709
|
-
end
|
|
1710
|
-
|
|
1711
|
-
# Suspend organization
|
|
1712
|
-
# @param organization_id [String] Organization ID
|
|
1713
|
-
# @param [Hash] opts the optional parameters
|
|
1714
|
-
# @option opts [OrganizationSuspension] :organization_suspension
|
|
1715
|
-
# @return [nil]
|
|
1716
|
-
def suspend_organization(organization_id, opts = {})
|
|
1717
|
-
suspend_organization_with_http_info(organization_id, opts)
|
|
1718
|
-
nil
|
|
1719
|
-
end
|
|
1720
|
-
|
|
1721
|
-
# Suspend organization
|
|
1722
|
-
# @param organization_id [String] Organization ID
|
|
1723
|
-
# @param [Hash] opts the optional parameters
|
|
1724
|
-
# @option opts [OrganizationSuspension] :organization_suspension
|
|
1725
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1726
|
-
def suspend_organization_with_http_info(organization_id, opts = {})
|
|
1727
|
-
if @api_client.config.debugging
|
|
1728
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.suspend_organization ...'
|
|
1729
|
-
end
|
|
1730
|
-
# verify the required parameter 'organization_id' is set
|
|
1731
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
1732
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.suspend_organization"
|
|
1733
|
-
end
|
|
1734
|
-
# resource path
|
|
1735
|
-
local_var_path = '/organizations/{organizationId}/suspend'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
1736
|
-
|
|
1737
|
-
# query parameters
|
|
1738
|
-
query_params = opts[:query_params] || {}
|
|
1739
|
-
|
|
1740
|
-
# header parameters
|
|
1741
|
-
header_params = opts[:header_params] || {}
|
|
1742
|
-
# HTTP header 'Content-Type'
|
|
1743
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1744
|
-
if !content_type.nil?
|
|
1745
|
-
header_params['Content-Type'] = content_type
|
|
1746
|
-
end
|
|
1747
|
-
|
|
1748
|
-
# form parameters
|
|
1749
|
-
form_params = opts[:form_params] || {}
|
|
1750
|
-
|
|
1751
|
-
# http body (model)
|
|
1752
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'organization_suspension'])
|
|
1753
|
-
|
|
1754
|
-
# return_type
|
|
1755
|
-
return_type = opts[:debug_return_type]
|
|
1756
|
-
|
|
1757
|
-
# auth_names
|
|
1758
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1759
|
-
|
|
1760
|
-
new_options = opts.merge(
|
|
1761
|
-
:operation => :"OrganizationsApi.suspend_organization",
|
|
1762
|
-
:header_params => header_params,
|
|
1763
|
-
:query_params => query_params,
|
|
1764
|
-
:form_params => form_params,
|
|
1765
|
-
:body => post_body,
|
|
1766
|
-
:auth_names => auth_names,
|
|
1767
|
-
:return_type => return_type
|
|
1768
|
-
)
|
|
1769
|
-
|
|
1770
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1771
|
-
if @api_client.config.debugging
|
|
1772
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#suspend_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1773
|
-
end
|
|
1774
|
-
return data, status_code, headers
|
|
1775
|
-
end
|
|
1776
|
-
|
|
1777
|
-
# Unsuspend organization
|
|
1778
|
-
# @param organization_id [String] Organization ID
|
|
1779
|
-
# @param [Hash] opts the optional parameters
|
|
1780
|
-
# @return [nil]
|
|
1781
|
-
def unsuspend_organization(organization_id, opts = {})
|
|
1782
|
-
unsuspend_organization_with_http_info(organization_id, opts)
|
|
1783
|
-
nil
|
|
1784
|
-
end
|
|
1785
|
-
|
|
1786
|
-
# Unsuspend organization
|
|
1787
|
-
# @param organization_id [String] Organization ID
|
|
1269
|
+
# Unsuspend organization
|
|
1270
|
+
# @param organization_id [String] Organization ID
|
|
1788
1271
|
# @param [Hash] opts the optional parameters
|
|
1789
1272
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1790
1273
|
def unsuspend_organization_with_http_info(organization_id, opts = {})
|
|
@@ -1879,7 +1362,7 @@ module DaytonaApiClient
|
|
|
1879
1362
|
# HTTP header 'Content-Type'
|
|
1880
1363
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1881
1364
|
if !content_type.nil?
|
|
1882
|
-
|
|
1365
|
+
header_params['Content-Type'] = content_type
|
|
1883
1366
|
end
|
|
1884
1367
|
|
|
1885
1368
|
# form parameters
|
|
@@ -1911,72 +1394,6 @@ module DaytonaApiClient
|
|
|
1911
1394
|
return data, status_code, headers
|
|
1912
1395
|
end
|
|
1913
1396
|
|
|
1914
|
-
# Update experimental configuration
|
|
1915
|
-
# @param organization_id [String] Organization ID
|
|
1916
|
-
# @param [Hash] opts the optional parameters
|
|
1917
|
-
# @option opts [Hash<String, Object>] :request_body Experimental configuration as a JSON object. Set to null to clear the configuration.
|
|
1918
|
-
# @return [nil]
|
|
1919
|
-
def update_experimental_config(organization_id, opts = {})
|
|
1920
|
-
update_experimental_config_with_http_info(organization_id, opts)
|
|
1921
|
-
nil
|
|
1922
|
-
end
|
|
1923
|
-
|
|
1924
|
-
# Update experimental configuration
|
|
1925
|
-
# @param organization_id [String] Organization ID
|
|
1926
|
-
# @param [Hash] opts the optional parameters
|
|
1927
|
-
# @option opts [Hash<String, Object>] :request_body Experimental configuration as a JSON object. Set to null to clear the configuration.
|
|
1928
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1929
|
-
def update_experimental_config_with_http_info(organization_id, opts = {})
|
|
1930
|
-
if @api_client.config.debugging
|
|
1931
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_experimental_config ...'
|
|
1932
|
-
end
|
|
1933
|
-
# verify the required parameter 'organization_id' is set
|
|
1934
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
1935
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.update_experimental_config"
|
|
1936
|
-
end
|
|
1937
|
-
# resource path
|
|
1938
|
-
local_var_path = '/organizations/{organizationId}/experimental-config'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
1939
|
-
|
|
1940
|
-
# query parameters
|
|
1941
|
-
query_params = opts[:query_params] || {}
|
|
1942
|
-
|
|
1943
|
-
# header parameters
|
|
1944
|
-
header_params = opts[:header_params] || {}
|
|
1945
|
-
# HTTP header 'Content-Type'
|
|
1946
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1947
|
-
if !content_type.nil?
|
|
1948
|
-
header_params['Content-Type'] = content_type
|
|
1949
|
-
end
|
|
1950
|
-
|
|
1951
|
-
# form parameters
|
|
1952
|
-
form_params = opts[:form_params] || {}
|
|
1953
|
-
|
|
1954
|
-
# http body (model)
|
|
1955
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'request_body'])
|
|
1956
|
-
|
|
1957
|
-
# return_type
|
|
1958
|
-
return_type = opts[:debug_return_type]
|
|
1959
|
-
|
|
1960
|
-
# auth_names
|
|
1961
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1962
|
-
|
|
1963
|
-
new_options = opts.merge(
|
|
1964
|
-
:operation => :"OrganizationsApi.update_experimental_config",
|
|
1965
|
-
:header_params => header_params,
|
|
1966
|
-
:query_params => query_params,
|
|
1967
|
-
:form_params => form_params,
|
|
1968
|
-
:body => post_body,
|
|
1969
|
-
:auth_names => auth_names,
|
|
1970
|
-
:return_type => return_type
|
|
1971
|
-
)
|
|
1972
|
-
|
|
1973
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
1974
|
-
if @api_client.config.debugging
|
|
1975
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#update_experimental_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1976
|
-
end
|
|
1977
|
-
return data, status_code, headers
|
|
1978
|
-
end
|
|
1979
|
-
|
|
1980
1397
|
# Update organization invitation
|
|
1981
1398
|
# @param organization_id [String] Organization ID
|
|
1982
1399
|
# @param invitation_id [String] Invitation ID
|
|
@@ -2023,7 +1440,7 @@ module DaytonaApiClient
|
|
|
2023
1440
|
# HTTP header 'Content-Type'
|
|
2024
1441
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2025
1442
|
if !content_type.nil?
|
|
2026
|
-
|
|
1443
|
+
header_params['Content-Type'] = content_type
|
|
2027
1444
|
end
|
|
2028
1445
|
|
|
2029
1446
|
# form parameters
|
|
@@ -2059,17 +1476,17 @@ module DaytonaApiClient
|
|
|
2059
1476
|
# @param organization_id [String] Organization ID
|
|
2060
1477
|
# @param update_organization_quota [UpdateOrganizationQuota]
|
|
2061
1478
|
# @param [Hash] opts the optional parameters
|
|
2062
|
-
# @return [
|
|
1479
|
+
# @return [Organization]
|
|
2063
1480
|
def update_organization_quota(organization_id, update_organization_quota, opts = {})
|
|
2064
|
-
update_organization_quota_with_http_info(organization_id, update_organization_quota, opts)
|
|
2065
|
-
|
|
1481
|
+
data, _status_code, _headers = update_organization_quota_with_http_info(organization_id, update_organization_quota, opts)
|
|
1482
|
+
data
|
|
2066
1483
|
end
|
|
2067
1484
|
|
|
2068
1485
|
# Update organization quota
|
|
2069
1486
|
# @param organization_id [String] Organization ID
|
|
2070
1487
|
# @param update_organization_quota [UpdateOrganizationQuota]
|
|
2071
1488
|
# @param [Hash] opts the optional parameters
|
|
2072
|
-
# @return [Array<(
|
|
1489
|
+
# @return [Array<(Organization, Integer, Hash)>] Organization data, response status code and response headers
|
|
2073
1490
|
def update_organization_quota_with_http_info(organization_id, update_organization_quota, opts = {})
|
|
2074
1491
|
if @api_client.config.debugging
|
|
2075
1492
|
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization_quota ...'
|
|
@@ -2090,10 +1507,12 @@ module DaytonaApiClient
|
|
|
2090
1507
|
|
|
2091
1508
|
# header parameters
|
|
2092
1509
|
header_params = opts[:header_params] || {}
|
|
1510
|
+
# HTTP header 'Accept' (if needed)
|
|
1511
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2093
1512
|
# HTTP header 'Content-Type'
|
|
2094
1513
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2095
1514
|
if !content_type.nil?
|
|
2096
|
-
|
|
1515
|
+
header_params['Content-Type'] = content_type
|
|
2097
1516
|
end
|
|
2098
1517
|
|
|
2099
1518
|
# form parameters
|
|
@@ -2103,7 +1522,7 @@ module DaytonaApiClient
|
|
|
2103
1522
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_organization_quota)
|
|
2104
1523
|
|
|
2105
1524
|
# return_type
|
|
2106
|
-
return_type = opts[:debug_return_type]
|
|
1525
|
+
return_type = opts[:debug_return_type] || 'Organization'
|
|
2107
1526
|
|
|
2108
1527
|
# auth_names
|
|
2109
1528
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
@@ -2125,82 +1544,6 @@ module DaytonaApiClient
|
|
|
2125
1544
|
return data, status_code, headers
|
|
2126
1545
|
end
|
|
2127
1546
|
|
|
2128
|
-
# Update organization region quota
|
|
2129
|
-
# @param organization_id [String] Organization ID
|
|
2130
|
-
# @param region_id [String] ID of the region where the updated quota will be applied
|
|
2131
|
-
# @param update_organization_region_quota [UpdateOrganizationRegionQuota]
|
|
2132
|
-
# @param [Hash] opts the optional parameters
|
|
2133
|
-
# @return [nil]
|
|
2134
|
-
def update_organization_region_quota(organization_id, region_id, update_organization_region_quota, opts = {})
|
|
2135
|
-
update_organization_region_quota_with_http_info(organization_id, region_id, update_organization_region_quota, opts)
|
|
2136
|
-
nil
|
|
2137
|
-
end
|
|
2138
|
-
|
|
2139
|
-
# Update organization region quota
|
|
2140
|
-
# @param organization_id [String] Organization ID
|
|
2141
|
-
# @param region_id [String] ID of the region where the updated quota will be applied
|
|
2142
|
-
# @param update_organization_region_quota [UpdateOrganizationRegionQuota]
|
|
2143
|
-
# @param [Hash] opts the optional parameters
|
|
2144
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
2145
|
-
def update_organization_region_quota_with_http_info(organization_id, region_id, update_organization_region_quota, opts = {})
|
|
2146
|
-
if @api_client.config.debugging
|
|
2147
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization_region_quota ...'
|
|
2148
|
-
end
|
|
2149
|
-
# verify the required parameter 'organization_id' is set
|
|
2150
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
2151
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.update_organization_region_quota"
|
|
2152
|
-
end
|
|
2153
|
-
# verify the required parameter 'region_id' is set
|
|
2154
|
-
if @api_client.config.client_side_validation && region_id.nil?
|
|
2155
|
-
fail ArgumentError, "Missing the required parameter 'region_id' when calling OrganizationsApi.update_organization_region_quota"
|
|
2156
|
-
end
|
|
2157
|
-
# verify the required parameter 'update_organization_region_quota' is set
|
|
2158
|
-
if @api_client.config.client_side_validation && update_organization_region_quota.nil?
|
|
2159
|
-
fail ArgumentError, "Missing the required parameter 'update_organization_region_quota' when calling OrganizationsApi.update_organization_region_quota"
|
|
2160
|
-
end
|
|
2161
|
-
# resource path
|
|
2162
|
-
local_var_path = '/organizations/{organizationId}/quota/{regionId}'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s)).sub('{' + 'regionId' + '}', CGI.escape(region_id.to_s))
|
|
2163
|
-
|
|
2164
|
-
# query parameters
|
|
2165
|
-
query_params = opts[:query_params] || {}
|
|
2166
|
-
|
|
2167
|
-
# header parameters
|
|
2168
|
-
header_params = opts[:header_params] || {}
|
|
2169
|
-
# HTTP header 'Content-Type'
|
|
2170
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2171
|
-
if !content_type.nil?
|
|
2172
|
-
header_params['Content-Type'] = content_type
|
|
2173
|
-
end
|
|
2174
|
-
|
|
2175
|
-
# form parameters
|
|
2176
|
-
form_params = opts[:form_params] || {}
|
|
2177
|
-
|
|
2178
|
-
# http body (model)
|
|
2179
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_organization_region_quota)
|
|
2180
|
-
|
|
2181
|
-
# return_type
|
|
2182
|
-
return_type = opts[:debug_return_type]
|
|
2183
|
-
|
|
2184
|
-
# auth_names
|
|
2185
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2186
|
-
|
|
2187
|
-
new_options = opts.merge(
|
|
2188
|
-
:operation => :"OrganizationsApi.update_organization_region_quota",
|
|
2189
|
-
:header_params => header_params,
|
|
2190
|
-
:query_params => query_params,
|
|
2191
|
-
:form_params => form_params,
|
|
2192
|
-
:body => post_body,
|
|
2193
|
-
:auth_names => auth_names,
|
|
2194
|
-
:return_type => return_type
|
|
2195
|
-
)
|
|
2196
|
-
|
|
2197
|
-
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
2198
|
-
if @api_client.config.debugging
|
|
2199
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#update_organization_region_quota\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2200
|
-
end
|
|
2201
|
-
return data, status_code, headers
|
|
2202
|
-
end
|
|
2203
|
-
|
|
2204
1547
|
# Update organization role
|
|
2205
1548
|
# @param organization_id [String] Organization ID
|
|
2206
1549
|
# @param role_id [String] Role ID
|
|
@@ -2247,7 +1590,7 @@ module DaytonaApiClient
|
|
|
2247
1590
|
# HTTP header 'Content-Type'
|
|
2248
1591
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2249
1592
|
if !content_type.nil?
|
|
2250
|
-
|
|
1593
|
+
header_params['Content-Type'] = content_type
|
|
2251
1594
|
end
|
|
2252
1595
|
|
|
2253
1596
|
# form parameters
|
|
@@ -2279,79 +1622,6 @@ module DaytonaApiClient
|
|
|
2279
1622
|
return data, status_code, headers
|
|
2280
1623
|
end
|
|
2281
1624
|
|
|
2282
|
-
# Update region configuration
|
|
2283
|
-
# @param id [String] Region ID
|
|
2284
|
-
# @param update_region [UpdateRegion]
|
|
2285
|
-
# @param [Hash] opts the optional parameters
|
|
2286
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
2287
|
-
# @return [nil]
|
|
2288
|
-
def update_region(id, update_region, opts = {})
|
|
2289
|
-
update_region_with_http_info(id, update_region, opts)
|
|
2290
|
-
nil
|
|
2291
|
-
end
|
|
2292
|
-
|
|
2293
|
-
# Update region configuration
|
|
2294
|
-
# @param id [String] Region ID
|
|
2295
|
-
# @param update_region [UpdateRegion]
|
|
2296
|
-
# @param [Hash] opts the optional parameters
|
|
2297
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
2298
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
2299
|
-
def update_region_with_http_info(id, update_region, opts = {})
|
|
2300
|
-
if @api_client.config.debugging
|
|
2301
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_region ...'
|
|
2302
|
-
end
|
|
2303
|
-
# verify the required parameter 'id' is set
|
|
2304
|
-
if @api_client.config.client_side_validation && id.nil?
|
|
2305
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.update_region"
|
|
2306
|
-
end
|
|
2307
|
-
# verify the required parameter 'update_region' is set
|
|
2308
|
-
if @api_client.config.client_side_validation && update_region.nil?
|
|
2309
|
-
fail ArgumentError, "Missing the required parameter 'update_region' when calling OrganizationsApi.update_region"
|
|
2310
|
-
end
|
|
2311
|
-
# resource path
|
|
2312
|
-
local_var_path = '/regions/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
2313
|
-
|
|
2314
|
-
# query parameters
|
|
2315
|
-
query_params = opts[:query_params] || {}
|
|
2316
|
-
|
|
2317
|
-
# header parameters
|
|
2318
|
-
header_params = opts[:header_params] || {}
|
|
2319
|
-
# HTTP header 'Content-Type'
|
|
2320
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2321
|
-
if !content_type.nil?
|
|
2322
|
-
header_params['Content-Type'] = content_type
|
|
2323
|
-
end
|
|
2324
|
-
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
2325
|
-
|
|
2326
|
-
# form parameters
|
|
2327
|
-
form_params = opts[:form_params] || {}
|
|
2328
|
-
|
|
2329
|
-
# http body (model)
|
|
2330
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_region)
|
|
2331
|
-
|
|
2332
|
-
# return_type
|
|
2333
|
-
return_type = opts[:debug_return_type]
|
|
2334
|
-
|
|
2335
|
-
# auth_names
|
|
2336
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2337
|
-
|
|
2338
|
-
new_options = opts.merge(
|
|
2339
|
-
:operation => :"OrganizationsApi.update_region",
|
|
2340
|
-
:header_params => header_params,
|
|
2341
|
-
:query_params => query_params,
|
|
2342
|
-
:form_params => form_params,
|
|
2343
|
-
:body => post_body,
|
|
2344
|
-
:auth_names => auth_names,
|
|
2345
|
-
:return_type => return_type
|
|
2346
|
-
)
|
|
2347
|
-
|
|
2348
|
-
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
2349
|
-
if @api_client.config.debugging
|
|
2350
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#update_region\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2351
|
-
end
|
|
2352
|
-
return data, status_code, headers
|
|
2353
|
-
end
|
|
2354
|
-
|
|
2355
1625
|
# Update sandbox default limited network egress
|
|
2356
1626
|
# @param organization_id [String] Organization ID
|
|
2357
1627
|
# @param organization_sandbox_default_limited_network_egress [OrganizationSandboxDefaultLimitedNetworkEgress]
|
|
@@ -2390,7 +1660,7 @@ module DaytonaApiClient
|
|
|
2390
1660
|
# HTTP header 'Content-Type'
|
|
2391
1661
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2392
1662
|
if !content_type.nil?
|
|
2393
|
-
|
|
1663
|
+
header_params['Content-Type'] = content_type
|
|
2394
1664
|
end
|
|
2395
1665
|
|
|
2396
1666
|
# form parameters
|