daytona_api_client 0.158.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 +66 -18
- data/lib/daytona_api_client/api/docker_registry_api.rb +2 -5
- data/lib/daytona_api_client/api/health_api.rb +1 -52
- data/lib/daytona_api_client/api/organizations_api.rb +130 -982
- data/lib/daytona_api_client/api/preview_api.rb +5 -74
- data/lib/daytona_api_client/api/runners_api.rb +21 -408
- data/lib/daytona_api_client/api/sandbox_api.rb +192 -967
- data/lib/daytona_api_client/api/snapshots_api.rb +2 -68
- data/lib/daytona_api_client/api/toolbox_api.rb +740 -740
- data/lib/daytona_api_client/api/users_api.rb +2 -2
- data/lib/daytona_api_client/api/volumes_api.rb +1 -1
- data/lib/daytona_api_client/api/webhooks_api.rb +3 -3
- data/lib/daytona_api_client/api/workspace_api.rb +5 -5
- 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 +0 -2
- 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 +0 -2
- 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 +4 -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/webhook_controller_get_status200_response.rb +0 -2
- 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 +1 -42
- data/project.json +11 -37
- metadata +5 -50
- 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 -386
- 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
|
|
@@ -911,29 +778,29 @@ module DaytonaApiClient
|
|
|
911
778
|
return data, status_code, headers
|
|
912
779
|
end
|
|
913
780
|
|
|
914
|
-
# Get organization
|
|
915
|
-
# @param
|
|
781
|
+
# Get organization current usage overview
|
|
782
|
+
# @param organization_id [String] Organization ID
|
|
916
783
|
# @param [Hash] opts the optional parameters
|
|
917
|
-
# @return [
|
|
918
|
-
def
|
|
919
|
-
data, _status_code, _headers =
|
|
784
|
+
# @return [OrganizationUsageOverview]
|
|
785
|
+
def get_organization_usage_overview(organization_id, opts = {})
|
|
786
|
+
data, _status_code, _headers = get_organization_usage_overview_with_http_info(organization_id, opts)
|
|
920
787
|
data
|
|
921
788
|
end
|
|
922
789
|
|
|
923
|
-
# Get organization
|
|
924
|
-
# @param
|
|
790
|
+
# Get organization current usage overview
|
|
791
|
+
# @param organization_id [String] Organization ID
|
|
925
792
|
# @param [Hash] opts the optional parameters
|
|
926
|
-
# @return [Array<(
|
|
927
|
-
def
|
|
793
|
+
# @return [Array<(OrganizationUsageOverview, Integer, Hash)>] OrganizationUsageOverview data, response status code and response headers
|
|
794
|
+
def get_organization_usage_overview_with_http_info(organization_id, opts = {})
|
|
928
795
|
if @api_client.config.debugging
|
|
929
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
|
796
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization_usage_overview ...'
|
|
930
797
|
end
|
|
931
|
-
# verify the required parameter '
|
|
932
|
-
if @api_client.config.client_side_validation &&
|
|
933
|
-
fail ArgumentError, "Missing the required parameter '
|
|
798
|
+
# verify the required parameter 'organization_id' is set
|
|
799
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
|
800
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.get_organization_usage_overview"
|
|
934
801
|
end
|
|
935
802
|
# resource path
|
|
936
|
-
local_var_path = '/organizations/
|
|
803
|
+
local_var_path = '/organizations/{organizationId}/usage'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
937
804
|
|
|
938
805
|
# query parameters
|
|
939
806
|
query_params = opts[:query_params] || {}
|
|
@@ -950,13 +817,13 @@ module DaytonaApiClient
|
|
|
950
817
|
post_body = opts[:debug_body]
|
|
951
818
|
|
|
952
819
|
# return_type
|
|
953
|
-
return_type = opts[:debug_return_type] || '
|
|
820
|
+
return_type = opts[:debug_return_type] || 'OrganizationUsageOverview'
|
|
954
821
|
|
|
955
822
|
# auth_names
|
|
956
823
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
957
824
|
|
|
958
825
|
new_options = opts.merge(
|
|
959
|
-
:operation => :"OrganizationsApi.
|
|
826
|
+
:operation => :"OrganizationsApi.get_organization_usage_overview",
|
|
960
827
|
:header_params => header_params,
|
|
961
828
|
:query_params => query_params,
|
|
962
829
|
:form_params => form_params,
|
|
@@ -967,42 +834,40 @@ module DaytonaApiClient
|
|
|
967
834
|
|
|
968
835
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
969
836
|
if @api_client.config.debugging
|
|
970
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#
|
|
837
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#get_organization_usage_overview\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
971
838
|
end
|
|
972
839
|
return data, status_code, headers
|
|
973
840
|
end
|
|
974
841
|
|
|
975
|
-
#
|
|
842
|
+
# Leave organization
|
|
976
843
|
# @param organization_id [String] Organization ID
|
|
977
844
|
# @param [Hash] opts the optional parameters
|
|
978
|
-
# @return [
|
|
979
|
-
def
|
|
980
|
-
|
|
981
|
-
|
|
845
|
+
# @return [nil]
|
|
846
|
+
def leave_organization(organization_id, opts = {})
|
|
847
|
+
leave_organization_with_http_info(organization_id, opts)
|
|
848
|
+
nil
|
|
982
849
|
end
|
|
983
850
|
|
|
984
|
-
#
|
|
851
|
+
# Leave organization
|
|
985
852
|
# @param organization_id [String] Organization ID
|
|
986
853
|
# @param [Hash] opts the optional parameters
|
|
987
|
-
# @return [Array<(
|
|
988
|
-
def
|
|
854
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
855
|
+
def leave_organization_with_http_info(organization_id, opts = {})
|
|
989
856
|
if @api_client.config.debugging
|
|
990
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
|
857
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.leave_organization ...'
|
|
991
858
|
end
|
|
992
859
|
# verify the required parameter 'organization_id' is set
|
|
993
860
|
if @api_client.config.client_side_validation && organization_id.nil?
|
|
994
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.
|
|
861
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.leave_organization"
|
|
995
862
|
end
|
|
996
863
|
# resource path
|
|
997
|
-
local_var_path = '/organizations/{organizationId}/
|
|
864
|
+
local_var_path = '/organizations/{organizationId}/leave'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
998
865
|
|
|
999
866
|
# query parameters
|
|
1000
867
|
query_params = opts[:query_params] || {}
|
|
1001
868
|
|
|
1002
869
|
# header parameters
|
|
1003
870
|
header_params = opts[:header_params] || {}
|
|
1004
|
-
# HTTP header 'Accept' (if needed)
|
|
1005
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1006
871
|
|
|
1007
872
|
# form parameters
|
|
1008
873
|
form_params = opts[:form_params] || {}
|
|
@@ -1011,13 +876,13 @@ module DaytonaApiClient
|
|
|
1011
876
|
post_body = opts[:debug_body]
|
|
1012
877
|
|
|
1013
878
|
# return_type
|
|
1014
|
-
return_type = opts[:debug_return_type]
|
|
879
|
+
return_type = opts[:debug_return_type]
|
|
1015
880
|
|
|
1016
881
|
# auth_names
|
|
1017
882
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1018
883
|
|
|
1019
884
|
new_options = opts.merge(
|
|
1020
|
-
:operation => :"OrganizationsApi.
|
|
885
|
+
:operation => :"OrganizationsApi.leave_organization",
|
|
1021
886
|
:header_params => header_params,
|
|
1022
887
|
:query_params => query_params,
|
|
1023
888
|
:form_params => form_params,
|
|
@@ -1026,38 +891,36 @@ module DaytonaApiClient
|
|
|
1026
891
|
:return_type => return_type
|
|
1027
892
|
)
|
|
1028
893
|
|
|
1029
|
-
data, status_code, headers = @api_client.call_api(:
|
|
894
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1030
895
|
if @api_client.config.debugging
|
|
1031
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#
|
|
896
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#leave_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1032
897
|
end
|
|
1033
898
|
return data, status_code, headers
|
|
1034
899
|
end
|
|
1035
900
|
|
|
1036
|
-
#
|
|
1037
|
-
# @param
|
|
901
|
+
# List pending organization invitations
|
|
902
|
+
# @param organization_id [String] Organization ID
|
|
1038
903
|
# @param [Hash] opts the optional parameters
|
|
1039
|
-
# @
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
data, _status_code, _headers = get_region_by_id_with_http_info(id, opts)
|
|
904
|
+
# @return [Array<OrganizationInvitation>]
|
|
905
|
+
def list_organization_invitations(organization_id, opts = {})
|
|
906
|
+
data, _status_code, _headers = list_organization_invitations_with_http_info(organization_id, opts)
|
|
1043
907
|
data
|
|
1044
908
|
end
|
|
1045
909
|
|
|
1046
|
-
#
|
|
1047
|
-
# @param
|
|
910
|
+
# List pending organization invitations
|
|
911
|
+
# @param organization_id [String] Organization ID
|
|
1048
912
|
# @param [Hash] opts the optional parameters
|
|
1049
|
-
# @
|
|
1050
|
-
|
|
1051
|
-
def get_region_by_id_with_http_info(id, opts = {})
|
|
913
|
+
# @return [Array<(Array<OrganizationInvitation>, Integer, Hash)>] Array<OrganizationInvitation> data, response status code and response headers
|
|
914
|
+
def list_organization_invitations_with_http_info(organization_id, opts = {})
|
|
1052
915
|
if @api_client.config.debugging
|
|
1053
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
|
916
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_invitations ...'
|
|
1054
917
|
end
|
|
1055
|
-
# verify the required parameter '
|
|
1056
|
-
if @api_client.config.client_side_validation &&
|
|
1057
|
-
fail ArgumentError, "Missing the required parameter '
|
|
918
|
+
# verify the required parameter 'organization_id' is set
|
|
919
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
|
920
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.list_organization_invitations"
|
|
1058
921
|
end
|
|
1059
922
|
# resource path
|
|
1060
|
-
local_var_path = '/
|
|
923
|
+
local_var_path = '/organizations/{organizationId}/invitations'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
1061
924
|
|
|
1062
925
|
# query parameters
|
|
1063
926
|
query_params = opts[:query_params] || {}
|
|
@@ -1066,7 +929,6 @@ module DaytonaApiClient
|
|
|
1066
929
|
header_params = opts[:header_params] || {}
|
|
1067
930
|
# HTTP header 'Accept' (if needed)
|
|
1068
931
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1069
|
-
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
1070
932
|
|
|
1071
933
|
# form parameters
|
|
1072
934
|
form_params = opts[:form_params] || {}
|
|
@@ -1075,13 +937,13 @@ module DaytonaApiClient
|
|
|
1075
937
|
post_body = opts[:debug_body]
|
|
1076
938
|
|
|
1077
939
|
# return_type
|
|
1078
|
-
return_type = opts[:debug_return_type] || '
|
|
940
|
+
return_type = opts[:debug_return_type] || 'Array<OrganizationInvitation>'
|
|
1079
941
|
|
|
1080
942
|
# auth_names
|
|
1081
943
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1082
944
|
|
|
1083
945
|
new_options = opts.merge(
|
|
1084
|
-
:operation => :"OrganizationsApi.
|
|
946
|
+
:operation => :"OrganizationsApi.list_organization_invitations",
|
|
1085
947
|
:header_params => header_params,
|
|
1086
948
|
:query_params => query_params,
|
|
1087
949
|
:form_params => form_params,
|
|
@@ -1092,34 +954,28 @@ module DaytonaApiClient
|
|
|
1092
954
|
|
|
1093
955
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1094
956
|
if @api_client.config.debugging
|
|
1095
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#
|
|
957
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#list_organization_invitations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1096
958
|
end
|
|
1097
959
|
return data, status_code, headers
|
|
1098
960
|
end
|
|
1099
961
|
|
|
1100
|
-
#
|
|
1101
|
-
# @param sandbox_id [String] Sandbox ID
|
|
962
|
+
# List organization invitations for authenticated user
|
|
1102
963
|
# @param [Hash] opts the optional parameters
|
|
1103
|
-
# @return [
|
|
1104
|
-
def
|
|
1105
|
-
data, _status_code, _headers =
|
|
964
|
+
# @return [Array<OrganizationInvitation>]
|
|
965
|
+
def list_organization_invitations_for_authenticated_user(opts = {})
|
|
966
|
+
data, _status_code, _headers = list_organization_invitations_for_authenticated_user_with_http_info(opts)
|
|
1106
967
|
data
|
|
1107
968
|
end
|
|
1108
969
|
|
|
1109
|
-
#
|
|
1110
|
-
# @param sandbox_id [String] Sandbox ID
|
|
970
|
+
# List organization invitations for authenticated user
|
|
1111
971
|
# @param [Hash] opts the optional parameters
|
|
1112
|
-
# @return [Array<(
|
|
1113
|
-
def
|
|
972
|
+
# @return [Array<(Array<OrganizationInvitation>, Integer, Hash)>] Array<OrganizationInvitation> data, response status code and response headers
|
|
973
|
+
def list_organization_invitations_for_authenticated_user_with_http_info(opts = {})
|
|
1114
974
|
if @api_client.config.debugging
|
|
1115
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
|
1116
|
-
end
|
|
1117
|
-
# verify the required parameter 'sandbox_id' is set
|
|
1118
|
-
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
1119
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling OrganizationsApi.get_region_quota_by_sandbox_id"
|
|
975
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_invitations_for_authenticated_user ...'
|
|
1120
976
|
end
|
|
1121
977
|
# resource path
|
|
1122
|
-
local_var_path = '/organizations/
|
|
978
|
+
local_var_path = '/organizations/invitations'
|
|
1123
979
|
|
|
1124
980
|
# query parameters
|
|
1125
981
|
query_params = opts[:query_params] || {}
|
|
@@ -1136,13 +992,13 @@ module DaytonaApiClient
|
|
|
1136
992
|
post_body = opts[:debug_body]
|
|
1137
993
|
|
|
1138
994
|
# return_type
|
|
1139
|
-
return_type = opts[:debug_return_type] || '
|
|
995
|
+
return_type = opts[:debug_return_type] || 'Array<OrganizationInvitation>'
|
|
1140
996
|
|
|
1141
997
|
# auth_names
|
|
1142
998
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1143
999
|
|
|
1144
1000
|
new_options = opts.merge(
|
|
1145
|
-
:operation => :"OrganizationsApi.
|
|
1001
|
+
:operation => :"OrganizationsApi.list_organization_invitations_for_authenticated_user",
|
|
1146
1002
|
:header_params => header_params,
|
|
1147
1003
|
:query_params => query_params,
|
|
1148
1004
|
:form_params => form_params,
|
|
@@ -1153,40 +1009,42 @@ module DaytonaApiClient
|
|
|
1153
1009
|
|
|
1154
1010
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1155
1011
|
if @api_client.config.debugging
|
|
1156
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#
|
|
1012
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#list_organization_invitations_for_authenticated_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1157
1013
|
end
|
|
1158
1014
|
return data, status_code, headers
|
|
1159
1015
|
end
|
|
1160
1016
|
|
|
1161
|
-
#
|
|
1017
|
+
# List organization members
|
|
1162
1018
|
# @param organization_id [String] Organization ID
|
|
1163
1019
|
# @param [Hash] opts the optional parameters
|
|
1164
|
-
# @return [
|
|
1165
|
-
def
|
|
1166
|
-
|
|
1167
|
-
|
|
1020
|
+
# @return [Array<OrganizationUser>]
|
|
1021
|
+
def list_organization_members(organization_id, opts = {})
|
|
1022
|
+
data, _status_code, _headers = list_organization_members_with_http_info(organization_id, opts)
|
|
1023
|
+
data
|
|
1168
1024
|
end
|
|
1169
1025
|
|
|
1170
|
-
#
|
|
1026
|
+
# List organization members
|
|
1171
1027
|
# @param organization_id [String] Organization ID
|
|
1172
1028
|
# @param [Hash] opts the optional parameters
|
|
1173
|
-
# @return [Array<(
|
|
1174
|
-
def
|
|
1029
|
+
# @return [Array<(Array<OrganizationUser>, Integer, Hash)>] Array<OrganizationUser> data, response status code and response headers
|
|
1030
|
+
def list_organization_members_with_http_info(organization_id, opts = {})
|
|
1175
1031
|
if @api_client.config.debugging
|
|
1176
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
|
1032
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_members ...'
|
|
1177
1033
|
end
|
|
1178
1034
|
# verify the required parameter 'organization_id' is set
|
|
1179
1035
|
if @api_client.config.client_side_validation && organization_id.nil?
|
|
1180
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.
|
|
1036
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.list_organization_members"
|
|
1181
1037
|
end
|
|
1182
1038
|
# resource path
|
|
1183
|
-
local_var_path = '/organizations/{organizationId}/
|
|
1039
|
+
local_var_path = '/organizations/{organizationId}/users'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
1184
1040
|
|
|
1185
1041
|
# query parameters
|
|
1186
1042
|
query_params = opts[:query_params] || {}
|
|
1187
1043
|
|
|
1188
1044
|
# header parameters
|
|
1189
1045
|
header_params = opts[:header_params] || {}
|
|
1046
|
+
# HTTP header 'Accept' (if needed)
|
|
1047
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1190
1048
|
|
|
1191
1049
|
# form parameters
|
|
1192
1050
|
form_params = opts[:form_params] || {}
|
|
@@ -1195,13 +1053,13 @@ module DaytonaApiClient
|
|
|
1195
1053
|
post_body = opts[:debug_body]
|
|
1196
1054
|
|
|
1197
1055
|
# return_type
|
|
1198
|
-
return_type = opts[:debug_return_type]
|
|
1056
|
+
return_type = opts[:debug_return_type] || 'Array<OrganizationUser>'
|
|
1199
1057
|
|
|
1200
1058
|
# auth_names
|
|
1201
1059
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1202
1060
|
|
|
1203
1061
|
new_options = opts.merge(
|
|
1204
|
-
:operation => :"OrganizationsApi.
|
|
1062
|
+
:operation => :"OrganizationsApi.list_organization_members",
|
|
1205
1063
|
:header_params => header_params,
|
|
1206
1064
|
:query_params => query_params,
|
|
1207
1065
|
:form_params => form_params,
|
|
@@ -1210,32 +1068,36 @@ module DaytonaApiClient
|
|
|
1210
1068
|
:return_type => return_type
|
|
1211
1069
|
)
|
|
1212
1070
|
|
|
1213
|
-
data, status_code, headers = @api_client.call_api(:
|
|
1071
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1214
1072
|
if @api_client.config.debugging
|
|
1215
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#
|
|
1073
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#list_organization_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1216
1074
|
end
|
|
1217
1075
|
return data, status_code, headers
|
|
1218
1076
|
end
|
|
1219
1077
|
|
|
1220
|
-
# List
|
|
1078
|
+
# List organization roles
|
|
1079
|
+
# @param organization_id [String] Organization ID
|
|
1221
1080
|
# @param [Hash] opts the optional parameters
|
|
1222
|
-
# @
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
data, _status_code, _headers = list_available_regions_with_http_info(opts)
|
|
1081
|
+
# @return [Array<OrganizationRole>]
|
|
1082
|
+
def list_organization_roles(organization_id, opts = {})
|
|
1083
|
+
data, _status_code, _headers = list_organization_roles_with_http_info(organization_id, opts)
|
|
1226
1084
|
data
|
|
1227
1085
|
end
|
|
1228
1086
|
|
|
1229
|
-
# List
|
|
1087
|
+
# List organization roles
|
|
1088
|
+
# @param organization_id [String] Organization ID
|
|
1230
1089
|
# @param [Hash] opts the optional parameters
|
|
1231
|
-
# @
|
|
1232
|
-
|
|
1233
|
-
def list_available_regions_with_http_info(opts = {})
|
|
1090
|
+
# @return [Array<(Array<OrganizationRole>, Integer, Hash)>] Array<OrganizationRole> data, response status code and response headers
|
|
1091
|
+
def list_organization_roles_with_http_info(organization_id, opts = {})
|
|
1234
1092
|
if @api_client.config.debugging
|
|
1235
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
|
1093
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_roles ...'
|
|
1094
|
+
end
|
|
1095
|
+
# verify the required parameter 'organization_id' is set
|
|
1096
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
|
1097
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.list_organization_roles"
|
|
1236
1098
|
end
|
|
1237
1099
|
# resource path
|
|
1238
|
-
local_var_path = '/
|
|
1100
|
+
local_var_path = '/organizations/{organizationId}/roles'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
1239
1101
|
|
|
1240
1102
|
# query parameters
|
|
1241
1103
|
query_params = opts[:query_params] || {}
|
|
@@ -1244,7 +1106,6 @@ module DaytonaApiClient
|
|
|
1244
1106
|
header_params = opts[:header_params] || {}
|
|
1245
1107
|
# HTTP header 'Accept' (if needed)
|
|
1246
1108
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1247
|
-
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
1248
1109
|
|
|
1249
1110
|
# form parameters
|
|
1250
1111
|
form_params = opts[:form_params] || {}
|
|
@@ -1253,13 +1114,13 @@ module DaytonaApiClient
|
|
|
1253
1114
|
post_body = opts[:debug_body]
|
|
1254
1115
|
|
|
1255
1116
|
# return_type
|
|
1256
|
-
return_type = opts[:debug_return_type] || 'Array<
|
|
1117
|
+
return_type = opts[:debug_return_type] || 'Array<OrganizationRole>'
|
|
1257
1118
|
|
|
1258
1119
|
# auth_names
|
|
1259
1120
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1260
1121
|
|
|
1261
1122
|
new_options = opts.merge(
|
|
1262
|
-
:operation => :"OrganizationsApi.
|
|
1123
|
+
:operation => :"OrganizationsApi.list_organization_roles",
|
|
1263
1124
|
:header_params => header_params,
|
|
1264
1125
|
:query_params => query_params,
|
|
1265
1126
|
:form_params => form_params,
|
|
@@ -1270,457 +1131,28 @@ module DaytonaApiClient
|
|
|
1270
1131
|
|
|
1271
1132
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1272
1133
|
if @api_client.config.debugging
|
|
1273
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#
|
|
1134
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#list_organization_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1274
1135
|
end
|
|
1275
1136
|
return data, status_code, headers
|
|
1276
1137
|
end
|
|
1277
1138
|
|
|
1278
|
-
# List
|
|
1279
|
-
# @param organization_id [String] Organization ID
|
|
1139
|
+
# List organizations
|
|
1280
1140
|
# @param [Hash] opts the optional parameters
|
|
1281
|
-
# @return [Array<
|
|
1282
|
-
def
|
|
1283
|
-
data, _status_code, _headers =
|
|
1141
|
+
# @return [Array<Organization>]
|
|
1142
|
+
def list_organizations(opts = {})
|
|
1143
|
+
data, _status_code, _headers = list_organizations_with_http_info(opts)
|
|
1284
1144
|
data
|
|
1285
1145
|
end
|
|
1286
1146
|
|
|
1287
|
-
# List
|
|
1288
|
-
# @param organization_id [String] Organization ID
|
|
1147
|
+
# List organizations
|
|
1289
1148
|
# @param [Hash] opts the optional parameters
|
|
1290
|
-
# @return [Array<(Array<
|
|
1291
|
-
def
|
|
1149
|
+
# @return [Array<(Array<Organization>, Integer, Hash)>] Array<Organization> data, response status code and response headers
|
|
1150
|
+
def list_organizations_with_http_info(opts = {})
|
|
1292
1151
|
if @api_client.config.debugging
|
|
1293
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
|
1294
|
-
end
|
|
1295
|
-
# verify the required parameter 'organization_id' is set
|
|
1296
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
1297
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.list_organization_invitations"
|
|
1298
|
-
end
|
|
1299
|
-
# resource path
|
|
1300
|
-
local_var_path = '/organizations/{organizationId}/invitations'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
1301
|
-
|
|
1302
|
-
# query parameters
|
|
1303
|
-
query_params = opts[:query_params] || {}
|
|
1304
|
-
|
|
1305
|
-
# header parameters
|
|
1306
|
-
header_params = opts[:header_params] || {}
|
|
1307
|
-
# HTTP header 'Accept' (if needed)
|
|
1308
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1309
|
-
|
|
1310
|
-
# form parameters
|
|
1311
|
-
form_params = opts[:form_params] || {}
|
|
1312
|
-
|
|
1313
|
-
# http body (model)
|
|
1314
|
-
post_body = opts[:debug_body]
|
|
1315
|
-
|
|
1316
|
-
# return_type
|
|
1317
|
-
return_type = opts[:debug_return_type] || 'Array<OrganizationInvitation>'
|
|
1318
|
-
|
|
1319
|
-
# auth_names
|
|
1320
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1321
|
-
|
|
1322
|
-
new_options = opts.merge(
|
|
1323
|
-
:operation => :"OrganizationsApi.list_organization_invitations",
|
|
1324
|
-
:header_params => header_params,
|
|
1325
|
-
:query_params => query_params,
|
|
1326
|
-
:form_params => form_params,
|
|
1327
|
-
:body => post_body,
|
|
1328
|
-
:auth_names => auth_names,
|
|
1329
|
-
:return_type => return_type
|
|
1330
|
-
)
|
|
1331
|
-
|
|
1332
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1333
|
-
if @api_client.config.debugging
|
|
1334
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#list_organization_invitations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1335
|
-
end
|
|
1336
|
-
return data, status_code, headers
|
|
1337
|
-
end
|
|
1338
|
-
|
|
1339
|
-
# List organization invitations for authenticated user
|
|
1340
|
-
# @param [Hash] opts the optional parameters
|
|
1341
|
-
# @return [Array<OrganizationInvitation>]
|
|
1342
|
-
def list_organization_invitations_for_authenticated_user(opts = {})
|
|
1343
|
-
data, _status_code, _headers = list_organization_invitations_for_authenticated_user_with_http_info(opts)
|
|
1344
|
-
data
|
|
1345
|
-
end
|
|
1346
|
-
|
|
1347
|
-
# List organization invitations for authenticated user
|
|
1348
|
-
# @param [Hash] opts the optional parameters
|
|
1349
|
-
# @return [Array<(Array<OrganizationInvitation>, Integer, Hash)>] Array<OrganizationInvitation> data, response status code and response headers
|
|
1350
|
-
def list_organization_invitations_for_authenticated_user_with_http_info(opts = {})
|
|
1351
|
-
if @api_client.config.debugging
|
|
1352
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_invitations_for_authenticated_user ...'
|
|
1353
|
-
end
|
|
1354
|
-
# resource path
|
|
1355
|
-
local_var_path = '/organizations/invitations'
|
|
1356
|
-
|
|
1357
|
-
# query parameters
|
|
1358
|
-
query_params = opts[:query_params] || {}
|
|
1359
|
-
|
|
1360
|
-
# header parameters
|
|
1361
|
-
header_params = opts[:header_params] || {}
|
|
1362
|
-
# HTTP header 'Accept' (if needed)
|
|
1363
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1364
|
-
|
|
1365
|
-
# form parameters
|
|
1366
|
-
form_params = opts[:form_params] || {}
|
|
1367
|
-
|
|
1368
|
-
# http body (model)
|
|
1369
|
-
post_body = opts[:debug_body]
|
|
1370
|
-
|
|
1371
|
-
# return_type
|
|
1372
|
-
return_type = opts[:debug_return_type] || 'Array<OrganizationInvitation>'
|
|
1373
|
-
|
|
1374
|
-
# auth_names
|
|
1375
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1376
|
-
|
|
1377
|
-
new_options = opts.merge(
|
|
1378
|
-
:operation => :"OrganizationsApi.list_organization_invitations_for_authenticated_user",
|
|
1379
|
-
:header_params => header_params,
|
|
1380
|
-
:query_params => query_params,
|
|
1381
|
-
:form_params => form_params,
|
|
1382
|
-
:body => post_body,
|
|
1383
|
-
:auth_names => auth_names,
|
|
1384
|
-
:return_type => return_type
|
|
1385
|
-
)
|
|
1386
|
-
|
|
1387
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1388
|
-
if @api_client.config.debugging
|
|
1389
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#list_organization_invitations_for_authenticated_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1390
|
-
end
|
|
1391
|
-
return data, status_code, headers
|
|
1392
|
-
end
|
|
1393
|
-
|
|
1394
|
-
# List organization members
|
|
1395
|
-
# @param organization_id [String] Organization ID
|
|
1396
|
-
# @param [Hash] opts the optional parameters
|
|
1397
|
-
# @return [Array<OrganizationUser>]
|
|
1398
|
-
def list_organization_members(organization_id, opts = {})
|
|
1399
|
-
data, _status_code, _headers = list_organization_members_with_http_info(organization_id, opts)
|
|
1400
|
-
data
|
|
1401
|
-
end
|
|
1402
|
-
|
|
1403
|
-
# List organization members
|
|
1404
|
-
# @param organization_id [String] Organization ID
|
|
1405
|
-
# @param [Hash] opts the optional parameters
|
|
1406
|
-
# @return [Array<(Array<OrganizationUser>, Integer, Hash)>] Array<OrganizationUser> data, response status code and response headers
|
|
1407
|
-
def list_organization_members_with_http_info(organization_id, opts = {})
|
|
1408
|
-
if @api_client.config.debugging
|
|
1409
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_members ...'
|
|
1410
|
-
end
|
|
1411
|
-
# verify the required parameter 'organization_id' is set
|
|
1412
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
1413
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.list_organization_members"
|
|
1414
|
-
end
|
|
1415
|
-
# resource path
|
|
1416
|
-
local_var_path = '/organizations/{organizationId}/users'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
1417
|
-
|
|
1418
|
-
# query parameters
|
|
1419
|
-
query_params = opts[:query_params] || {}
|
|
1420
|
-
|
|
1421
|
-
# header parameters
|
|
1422
|
-
header_params = opts[:header_params] || {}
|
|
1423
|
-
# HTTP header 'Accept' (if needed)
|
|
1424
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1425
|
-
|
|
1426
|
-
# form parameters
|
|
1427
|
-
form_params = opts[:form_params] || {}
|
|
1428
|
-
|
|
1429
|
-
# http body (model)
|
|
1430
|
-
post_body = opts[:debug_body]
|
|
1431
|
-
|
|
1432
|
-
# return_type
|
|
1433
|
-
return_type = opts[:debug_return_type] || 'Array<OrganizationUser>'
|
|
1434
|
-
|
|
1435
|
-
# auth_names
|
|
1436
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1437
|
-
|
|
1438
|
-
new_options = opts.merge(
|
|
1439
|
-
:operation => :"OrganizationsApi.list_organization_members",
|
|
1440
|
-
:header_params => header_params,
|
|
1441
|
-
:query_params => query_params,
|
|
1442
|
-
:form_params => form_params,
|
|
1443
|
-
:body => post_body,
|
|
1444
|
-
:auth_names => auth_names,
|
|
1445
|
-
:return_type => return_type
|
|
1446
|
-
)
|
|
1447
|
-
|
|
1448
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1449
|
-
if @api_client.config.debugging
|
|
1450
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#list_organization_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1451
|
-
end
|
|
1452
|
-
return data, status_code, headers
|
|
1453
|
-
end
|
|
1454
|
-
|
|
1455
|
-
# List organization roles
|
|
1456
|
-
# @param organization_id [String] Organization ID
|
|
1457
|
-
# @param [Hash] opts the optional parameters
|
|
1458
|
-
# @return [Array<OrganizationRole>]
|
|
1459
|
-
def list_organization_roles(organization_id, opts = {})
|
|
1460
|
-
data, _status_code, _headers = list_organization_roles_with_http_info(organization_id, opts)
|
|
1461
|
-
data
|
|
1462
|
-
end
|
|
1463
|
-
|
|
1464
|
-
# List organization roles
|
|
1465
|
-
# @param organization_id [String] Organization ID
|
|
1466
|
-
# @param [Hash] opts the optional parameters
|
|
1467
|
-
# @return [Array<(Array<OrganizationRole>, Integer, Hash)>] Array<OrganizationRole> data, response status code and response headers
|
|
1468
|
-
def list_organization_roles_with_http_info(organization_id, opts = {})
|
|
1469
|
-
if @api_client.config.debugging
|
|
1470
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_roles ...'
|
|
1471
|
-
end
|
|
1472
|
-
# verify the required parameter 'organization_id' is set
|
|
1473
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
1474
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.list_organization_roles"
|
|
1475
|
-
end
|
|
1476
|
-
# resource path
|
|
1477
|
-
local_var_path = '/organizations/{organizationId}/roles'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
1478
|
-
|
|
1479
|
-
# query parameters
|
|
1480
|
-
query_params = opts[:query_params] || {}
|
|
1481
|
-
|
|
1482
|
-
# header parameters
|
|
1483
|
-
header_params = opts[:header_params] || {}
|
|
1484
|
-
# HTTP header 'Accept' (if needed)
|
|
1485
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1486
|
-
|
|
1487
|
-
# form parameters
|
|
1488
|
-
form_params = opts[:form_params] || {}
|
|
1489
|
-
|
|
1490
|
-
# http body (model)
|
|
1491
|
-
post_body = opts[:debug_body]
|
|
1492
|
-
|
|
1493
|
-
# return_type
|
|
1494
|
-
return_type = opts[:debug_return_type] || 'Array<OrganizationRole>'
|
|
1495
|
-
|
|
1496
|
-
# auth_names
|
|
1497
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1498
|
-
|
|
1499
|
-
new_options = opts.merge(
|
|
1500
|
-
:operation => :"OrganizationsApi.list_organization_roles",
|
|
1501
|
-
:header_params => header_params,
|
|
1502
|
-
:query_params => query_params,
|
|
1503
|
-
:form_params => form_params,
|
|
1504
|
-
:body => post_body,
|
|
1505
|
-
:auth_names => auth_names,
|
|
1506
|
-
:return_type => return_type
|
|
1507
|
-
)
|
|
1508
|
-
|
|
1509
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1510
|
-
if @api_client.config.debugging
|
|
1511
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#list_organization_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1512
|
-
end
|
|
1513
|
-
return data, status_code, headers
|
|
1514
|
-
end
|
|
1515
|
-
|
|
1516
|
-
# List organizations
|
|
1517
|
-
# @param [Hash] opts the optional parameters
|
|
1518
|
-
# @return [Array<Organization>]
|
|
1519
|
-
def list_organizations(opts = {})
|
|
1520
|
-
data, _status_code, _headers = list_organizations_with_http_info(opts)
|
|
1521
|
-
data
|
|
1522
|
-
end
|
|
1523
|
-
|
|
1524
|
-
# List organizations
|
|
1525
|
-
# @param [Hash] opts the optional parameters
|
|
1526
|
-
# @return [Array<(Array<Organization>, Integer, Hash)>] Array<Organization> data, response status code and response headers
|
|
1527
|
-
def list_organizations_with_http_info(opts = {})
|
|
1528
|
-
if @api_client.config.debugging
|
|
1529
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organizations ...'
|
|
1530
|
-
end
|
|
1531
|
-
# resource path
|
|
1532
|
-
local_var_path = '/organizations'
|
|
1533
|
-
|
|
1534
|
-
# query parameters
|
|
1535
|
-
query_params = opts[:query_params] || {}
|
|
1536
|
-
|
|
1537
|
-
# header parameters
|
|
1538
|
-
header_params = opts[:header_params] || {}
|
|
1539
|
-
# HTTP header 'Accept' (if needed)
|
|
1540
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1541
|
-
|
|
1542
|
-
# form parameters
|
|
1543
|
-
form_params = opts[:form_params] || {}
|
|
1544
|
-
|
|
1545
|
-
# http body (model)
|
|
1546
|
-
post_body = opts[:debug_body]
|
|
1547
|
-
|
|
1548
|
-
# return_type
|
|
1549
|
-
return_type = opts[:debug_return_type] || 'Array<Organization>'
|
|
1550
|
-
|
|
1551
|
-
# auth_names
|
|
1552
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1553
|
-
|
|
1554
|
-
new_options = opts.merge(
|
|
1555
|
-
:operation => :"OrganizationsApi.list_organizations",
|
|
1556
|
-
:header_params => header_params,
|
|
1557
|
-
:query_params => query_params,
|
|
1558
|
-
:form_params => form_params,
|
|
1559
|
-
:body => post_body,
|
|
1560
|
-
:auth_names => auth_names,
|
|
1561
|
-
:return_type => return_type
|
|
1562
|
-
)
|
|
1563
|
-
|
|
1564
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1565
|
-
if @api_client.config.debugging
|
|
1566
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#list_organizations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1567
|
-
end
|
|
1568
|
-
return data, status_code, headers
|
|
1569
|
-
end
|
|
1570
|
-
|
|
1571
|
-
# Regenerate proxy API key for a region
|
|
1572
|
-
# @param id [String] Region ID
|
|
1573
|
-
# @param [Hash] opts the optional parameters
|
|
1574
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1575
|
-
# @return [RegenerateApiKeyResponse]
|
|
1576
|
-
def regenerate_proxy_api_key(id, opts = {})
|
|
1577
|
-
data, _status_code, _headers = regenerate_proxy_api_key_with_http_info(id, opts)
|
|
1578
|
-
data
|
|
1579
|
-
end
|
|
1580
|
-
|
|
1581
|
-
# Regenerate proxy API key for a region
|
|
1582
|
-
# @param id [String] Region ID
|
|
1583
|
-
# @param [Hash] opts the optional parameters
|
|
1584
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1585
|
-
# @return [Array<(RegenerateApiKeyResponse, Integer, Hash)>] RegenerateApiKeyResponse data, response status code and response headers
|
|
1586
|
-
def regenerate_proxy_api_key_with_http_info(id, opts = {})
|
|
1587
|
-
if @api_client.config.debugging
|
|
1588
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.regenerate_proxy_api_key ...'
|
|
1589
|
-
end
|
|
1590
|
-
# verify the required parameter 'id' is set
|
|
1591
|
-
if @api_client.config.client_side_validation && id.nil?
|
|
1592
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.regenerate_proxy_api_key"
|
|
1593
|
-
end
|
|
1594
|
-
# resource path
|
|
1595
|
-
local_var_path = '/regions/{id}/regenerate-proxy-api-key'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1596
|
-
|
|
1597
|
-
# query parameters
|
|
1598
|
-
query_params = opts[:query_params] || {}
|
|
1599
|
-
|
|
1600
|
-
# header parameters
|
|
1601
|
-
header_params = opts[:header_params] || {}
|
|
1602
|
-
# HTTP header 'Accept' (if needed)
|
|
1603
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1604
|
-
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
1605
|
-
|
|
1606
|
-
# form parameters
|
|
1607
|
-
form_params = opts[:form_params] || {}
|
|
1608
|
-
|
|
1609
|
-
# http body (model)
|
|
1610
|
-
post_body = opts[:debug_body]
|
|
1611
|
-
|
|
1612
|
-
# return_type
|
|
1613
|
-
return_type = opts[:debug_return_type] || 'RegenerateApiKeyResponse'
|
|
1614
|
-
|
|
1615
|
-
# auth_names
|
|
1616
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1617
|
-
|
|
1618
|
-
new_options = opts.merge(
|
|
1619
|
-
:operation => :"OrganizationsApi.regenerate_proxy_api_key",
|
|
1620
|
-
:header_params => header_params,
|
|
1621
|
-
:query_params => query_params,
|
|
1622
|
-
:form_params => form_params,
|
|
1623
|
-
:body => post_body,
|
|
1624
|
-
:auth_names => auth_names,
|
|
1625
|
-
:return_type => return_type
|
|
1626
|
-
)
|
|
1627
|
-
|
|
1628
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1629
|
-
if @api_client.config.debugging
|
|
1630
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#regenerate_proxy_api_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1631
|
-
end
|
|
1632
|
-
return data, status_code, headers
|
|
1633
|
-
end
|
|
1634
|
-
|
|
1635
|
-
# Regenerate snapshot manager credentials for a region
|
|
1636
|
-
# @param id [String] Region ID
|
|
1637
|
-
# @param [Hash] opts the optional parameters
|
|
1638
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1639
|
-
# @return [SnapshotManagerCredentials]
|
|
1640
|
-
def regenerate_snapshot_manager_credentials(id, opts = {})
|
|
1641
|
-
data, _status_code, _headers = regenerate_snapshot_manager_credentials_with_http_info(id, opts)
|
|
1642
|
-
data
|
|
1643
|
-
end
|
|
1644
|
-
|
|
1645
|
-
# Regenerate snapshot manager credentials for a region
|
|
1646
|
-
# @param id [String] Region ID
|
|
1647
|
-
# @param [Hash] opts the optional parameters
|
|
1648
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1649
|
-
# @return [Array<(SnapshotManagerCredentials, Integer, Hash)>] SnapshotManagerCredentials data, response status code and response headers
|
|
1650
|
-
def regenerate_snapshot_manager_credentials_with_http_info(id, opts = {})
|
|
1651
|
-
if @api_client.config.debugging
|
|
1652
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.regenerate_snapshot_manager_credentials ...'
|
|
1653
|
-
end
|
|
1654
|
-
# verify the required parameter 'id' is set
|
|
1655
|
-
if @api_client.config.client_side_validation && id.nil?
|
|
1656
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.regenerate_snapshot_manager_credentials"
|
|
1657
|
-
end
|
|
1658
|
-
# resource path
|
|
1659
|
-
local_var_path = '/regions/{id}/regenerate-snapshot-manager-credentials'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1660
|
-
|
|
1661
|
-
# query parameters
|
|
1662
|
-
query_params = opts[:query_params] || {}
|
|
1663
|
-
|
|
1664
|
-
# header parameters
|
|
1665
|
-
header_params = opts[:header_params] || {}
|
|
1666
|
-
# HTTP header 'Accept' (if needed)
|
|
1667
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1668
|
-
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
1669
|
-
|
|
1670
|
-
# form parameters
|
|
1671
|
-
form_params = opts[:form_params] || {}
|
|
1672
|
-
|
|
1673
|
-
# http body (model)
|
|
1674
|
-
post_body = opts[:debug_body]
|
|
1675
|
-
|
|
1676
|
-
# return_type
|
|
1677
|
-
return_type = opts[:debug_return_type] || 'SnapshotManagerCredentials'
|
|
1678
|
-
|
|
1679
|
-
# auth_names
|
|
1680
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1681
|
-
|
|
1682
|
-
new_options = opts.merge(
|
|
1683
|
-
:operation => :"OrganizationsApi.regenerate_snapshot_manager_credentials",
|
|
1684
|
-
:header_params => header_params,
|
|
1685
|
-
:query_params => query_params,
|
|
1686
|
-
:form_params => form_params,
|
|
1687
|
-
:body => post_body,
|
|
1688
|
-
:auth_names => auth_names,
|
|
1689
|
-
:return_type => return_type
|
|
1690
|
-
)
|
|
1691
|
-
|
|
1692
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1693
|
-
if @api_client.config.debugging
|
|
1694
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#regenerate_snapshot_manager_credentials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1695
|
-
end
|
|
1696
|
-
return data, status_code, headers
|
|
1697
|
-
end
|
|
1698
|
-
|
|
1699
|
-
# Regenerate SSH gateway API key for a region
|
|
1700
|
-
# @param id [String] Region ID
|
|
1701
|
-
# @param [Hash] opts the optional parameters
|
|
1702
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1703
|
-
# @return [RegenerateApiKeyResponse]
|
|
1704
|
-
def regenerate_ssh_gateway_api_key(id, opts = {})
|
|
1705
|
-
data, _status_code, _headers = regenerate_ssh_gateway_api_key_with_http_info(id, opts)
|
|
1706
|
-
data
|
|
1707
|
-
end
|
|
1708
|
-
|
|
1709
|
-
# Regenerate SSH gateway API key for a region
|
|
1710
|
-
# @param id [String] Region ID
|
|
1711
|
-
# @param [Hash] opts the optional parameters
|
|
1712
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1713
|
-
# @return [Array<(RegenerateApiKeyResponse, Integer, Hash)>] RegenerateApiKeyResponse data, response status code and response headers
|
|
1714
|
-
def regenerate_ssh_gateway_api_key_with_http_info(id, opts = {})
|
|
1715
|
-
if @api_client.config.debugging
|
|
1716
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.regenerate_ssh_gateway_api_key ...'
|
|
1717
|
-
end
|
|
1718
|
-
# verify the required parameter 'id' is set
|
|
1719
|
-
if @api_client.config.client_side_validation && id.nil?
|
|
1720
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.regenerate_ssh_gateway_api_key"
|
|
1152
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organizations ...'
|
|
1721
1153
|
end
|
|
1722
1154
|
# resource path
|
|
1723
|
-
local_var_path = '/
|
|
1155
|
+
local_var_path = '/organizations'
|
|
1724
1156
|
|
|
1725
1157
|
# query parameters
|
|
1726
1158
|
query_params = opts[:query_params] || {}
|
|
@@ -1729,7 +1161,6 @@ module DaytonaApiClient
|
|
|
1729
1161
|
header_params = opts[:header_params] || {}
|
|
1730
1162
|
# HTTP header 'Accept' (if needed)
|
|
1731
1163
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1732
|
-
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
1733
1164
|
|
|
1734
1165
|
# form parameters
|
|
1735
1166
|
form_params = opts[:form_params] || {}
|
|
@@ -1738,83 +1169,13 @@ module DaytonaApiClient
|
|
|
1738
1169
|
post_body = opts[:debug_body]
|
|
1739
1170
|
|
|
1740
1171
|
# return_type
|
|
1741
|
-
return_type = opts[:debug_return_type] || '
|
|
1742
|
-
|
|
1743
|
-
# auth_names
|
|
1744
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1745
|
-
|
|
1746
|
-
new_options = opts.merge(
|
|
1747
|
-
:operation => :"OrganizationsApi.regenerate_ssh_gateway_api_key",
|
|
1748
|
-
:header_params => header_params,
|
|
1749
|
-
:query_params => query_params,
|
|
1750
|
-
:form_params => form_params,
|
|
1751
|
-
:body => post_body,
|
|
1752
|
-
:auth_names => auth_names,
|
|
1753
|
-
:return_type => return_type
|
|
1754
|
-
)
|
|
1755
|
-
|
|
1756
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1757
|
-
if @api_client.config.debugging
|
|
1758
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#regenerate_ssh_gateway_api_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1759
|
-
end
|
|
1760
|
-
return data, status_code, headers
|
|
1761
|
-
end
|
|
1762
|
-
|
|
1763
|
-
# Set default region for organization
|
|
1764
|
-
# @param organization_id [String] Organization ID
|
|
1765
|
-
# @param update_organization_default_region [UpdateOrganizationDefaultRegion]
|
|
1766
|
-
# @param [Hash] opts the optional parameters
|
|
1767
|
-
# @return [nil]
|
|
1768
|
-
def set_organization_default_region(organization_id, update_organization_default_region, opts = {})
|
|
1769
|
-
set_organization_default_region_with_http_info(organization_id, update_organization_default_region, opts)
|
|
1770
|
-
nil
|
|
1771
|
-
end
|
|
1772
|
-
|
|
1773
|
-
# Set default region for organization
|
|
1774
|
-
# @param organization_id [String] Organization ID
|
|
1775
|
-
# @param update_organization_default_region [UpdateOrganizationDefaultRegion]
|
|
1776
|
-
# @param [Hash] opts the optional parameters
|
|
1777
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1778
|
-
def set_organization_default_region_with_http_info(organization_id, update_organization_default_region, opts = {})
|
|
1779
|
-
if @api_client.config.debugging
|
|
1780
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.set_organization_default_region ...'
|
|
1781
|
-
end
|
|
1782
|
-
# verify the required parameter 'organization_id' is set
|
|
1783
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
1784
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.set_organization_default_region"
|
|
1785
|
-
end
|
|
1786
|
-
# verify the required parameter 'update_organization_default_region' is set
|
|
1787
|
-
if @api_client.config.client_side_validation && update_organization_default_region.nil?
|
|
1788
|
-
fail ArgumentError, "Missing the required parameter 'update_organization_default_region' when calling OrganizationsApi.set_organization_default_region"
|
|
1789
|
-
end
|
|
1790
|
-
# resource path
|
|
1791
|
-
local_var_path = '/organizations/{organizationId}/default-region'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
1792
|
-
|
|
1793
|
-
# query parameters
|
|
1794
|
-
query_params = opts[:query_params] || {}
|
|
1795
|
-
|
|
1796
|
-
# header parameters
|
|
1797
|
-
header_params = opts[:header_params] || {}
|
|
1798
|
-
# HTTP header 'Content-Type'
|
|
1799
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1800
|
-
if !content_type.nil?
|
|
1801
|
-
header_params['Content-Type'] = content_type
|
|
1802
|
-
end
|
|
1803
|
-
|
|
1804
|
-
# form parameters
|
|
1805
|
-
form_params = opts[:form_params] || {}
|
|
1806
|
-
|
|
1807
|
-
# http body (model)
|
|
1808
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_organization_default_region)
|
|
1809
|
-
|
|
1810
|
-
# return_type
|
|
1811
|
-
return_type = opts[:debug_return_type]
|
|
1172
|
+
return_type = opts[:debug_return_type] || 'Array<Organization>'
|
|
1812
1173
|
|
|
1813
1174
|
# auth_names
|
|
1814
1175
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1815
1176
|
|
|
1816
1177
|
new_options = opts.merge(
|
|
1817
|
-
:operation => :"OrganizationsApi.
|
|
1178
|
+
:operation => :"OrganizationsApi.list_organizations",
|
|
1818
1179
|
:header_params => header_params,
|
|
1819
1180
|
:query_params => query_params,
|
|
1820
1181
|
:form_params => form_params,
|
|
@@ -1823,9 +1184,9 @@ module DaytonaApiClient
|
|
|
1823
1184
|
:return_type => return_type
|
|
1824
1185
|
)
|
|
1825
1186
|
|
|
1826
|
-
data, status_code, headers = @api_client.call_api(:
|
|
1187
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1827
1188
|
if @api_client.config.debugging
|
|
1828
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#
|
|
1189
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#list_organizations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1829
1190
|
end
|
|
1830
1191
|
return data, status_code, headers
|
|
1831
1192
|
end
|
|
@@ -1864,7 +1225,7 @@ module DaytonaApiClient
|
|
|
1864
1225
|
# HTTP header 'Content-Type'
|
|
1865
1226
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1866
1227
|
if !content_type.nil?
|
|
1867
|
-
|
|
1228
|
+
header_params['Content-Type'] = content_type
|
|
1868
1229
|
end
|
|
1869
1230
|
|
|
1870
1231
|
# form parameters
|
|
@@ -2001,7 +1362,7 @@ module DaytonaApiClient
|
|
|
2001
1362
|
# HTTP header 'Content-Type'
|
|
2002
1363
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2003
1364
|
if !content_type.nil?
|
|
2004
|
-
|
|
1365
|
+
header_params['Content-Type'] = content_type
|
|
2005
1366
|
end
|
|
2006
1367
|
|
|
2007
1368
|
# form parameters
|
|
@@ -2033,72 +1394,6 @@ module DaytonaApiClient
|
|
|
2033
1394
|
return data, status_code, headers
|
|
2034
1395
|
end
|
|
2035
1396
|
|
|
2036
|
-
# Update experimental configuration
|
|
2037
|
-
# @param organization_id [String] Organization ID
|
|
2038
|
-
# @param [Hash] opts the optional parameters
|
|
2039
|
-
# @option opts [Hash<String, Object>] :request_body Experimental configuration as a JSON object. Set to null to clear the configuration.
|
|
2040
|
-
# @return [nil]
|
|
2041
|
-
def update_experimental_config(organization_id, opts = {})
|
|
2042
|
-
update_experimental_config_with_http_info(organization_id, opts)
|
|
2043
|
-
nil
|
|
2044
|
-
end
|
|
2045
|
-
|
|
2046
|
-
# Update experimental configuration
|
|
2047
|
-
# @param organization_id [String] Organization ID
|
|
2048
|
-
# @param [Hash] opts the optional parameters
|
|
2049
|
-
# @option opts [Hash<String, Object>] :request_body Experimental configuration as a JSON object. Set to null to clear the configuration.
|
|
2050
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
2051
|
-
def update_experimental_config_with_http_info(organization_id, opts = {})
|
|
2052
|
-
if @api_client.config.debugging
|
|
2053
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_experimental_config ...'
|
|
2054
|
-
end
|
|
2055
|
-
# verify the required parameter 'organization_id' is set
|
|
2056
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
2057
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.update_experimental_config"
|
|
2058
|
-
end
|
|
2059
|
-
# resource path
|
|
2060
|
-
local_var_path = '/organizations/{organizationId}/experimental-config'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
2061
|
-
|
|
2062
|
-
# query parameters
|
|
2063
|
-
query_params = opts[:query_params] || {}
|
|
2064
|
-
|
|
2065
|
-
# header parameters
|
|
2066
|
-
header_params = opts[:header_params] || {}
|
|
2067
|
-
# HTTP header 'Content-Type'
|
|
2068
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2069
|
-
if !content_type.nil?
|
|
2070
|
-
header_params['Content-Type'] = content_type
|
|
2071
|
-
end
|
|
2072
|
-
|
|
2073
|
-
# form parameters
|
|
2074
|
-
form_params = opts[:form_params] || {}
|
|
2075
|
-
|
|
2076
|
-
# http body (model)
|
|
2077
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'request_body'])
|
|
2078
|
-
|
|
2079
|
-
# return_type
|
|
2080
|
-
return_type = opts[:debug_return_type]
|
|
2081
|
-
|
|
2082
|
-
# auth_names
|
|
2083
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2084
|
-
|
|
2085
|
-
new_options = opts.merge(
|
|
2086
|
-
:operation => :"OrganizationsApi.update_experimental_config",
|
|
2087
|
-
:header_params => header_params,
|
|
2088
|
-
:query_params => query_params,
|
|
2089
|
-
:form_params => form_params,
|
|
2090
|
-
:body => post_body,
|
|
2091
|
-
:auth_names => auth_names,
|
|
2092
|
-
:return_type => return_type
|
|
2093
|
-
)
|
|
2094
|
-
|
|
2095
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2096
|
-
if @api_client.config.debugging
|
|
2097
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#update_experimental_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2098
|
-
end
|
|
2099
|
-
return data, status_code, headers
|
|
2100
|
-
end
|
|
2101
|
-
|
|
2102
1397
|
# Update organization invitation
|
|
2103
1398
|
# @param organization_id [String] Organization ID
|
|
2104
1399
|
# @param invitation_id [String] Invitation ID
|
|
@@ -2145,7 +1440,7 @@ module DaytonaApiClient
|
|
|
2145
1440
|
# HTTP header 'Content-Type'
|
|
2146
1441
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2147
1442
|
if !content_type.nil?
|
|
2148
|
-
|
|
1443
|
+
header_params['Content-Type'] = content_type
|
|
2149
1444
|
end
|
|
2150
1445
|
|
|
2151
1446
|
# form parameters
|
|
@@ -2181,17 +1476,17 @@ module DaytonaApiClient
|
|
|
2181
1476
|
# @param organization_id [String] Organization ID
|
|
2182
1477
|
# @param update_organization_quota [UpdateOrganizationQuota]
|
|
2183
1478
|
# @param [Hash] opts the optional parameters
|
|
2184
|
-
# @return [
|
|
1479
|
+
# @return [Organization]
|
|
2185
1480
|
def update_organization_quota(organization_id, update_organization_quota, opts = {})
|
|
2186
|
-
update_organization_quota_with_http_info(organization_id, update_organization_quota, opts)
|
|
2187
|
-
|
|
1481
|
+
data, _status_code, _headers = update_organization_quota_with_http_info(organization_id, update_organization_quota, opts)
|
|
1482
|
+
data
|
|
2188
1483
|
end
|
|
2189
1484
|
|
|
2190
1485
|
# Update organization quota
|
|
2191
1486
|
# @param organization_id [String] Organization ID
|
|
2192
1487
|
# @param update_organization_quota [UpdateOrganizationQuota]
|
|
2193
1488
|
# @param [Hash] opts the optional parameters
|
|
2194
|
-
# @return [Array<(
|
|
1489
|
+
# @return [Array<(Organization, Integer, Hash)>] Organization data, response status code and response headers
|
|
2195
1490
|
def update_organization_quota_with_http_info(organization_id, update_organization_quota, opts = {})
|
|
2196
1491
|
if @api_client.config.debugging
|
|
2197
1492
|
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization_quota ...'
|
|
@@ -2212,10 +1507,12 @@ module DaytonaApiClient
|
|
|
2212
1507
|
|
|
2213
1508
|
# header parameters
|
|
2214
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']
|
|
2215
1512
|
# HTTP header 'Content-Type'
|
|
2216
1513
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2217
1514
|
if !content_type.nil?
|
|
2218
|
-
|
|
1515
|
+
header_params['Content-Type'] = content_type
|
|
2219
1516
|
end
|
|
2220
1517
|
|
|
2221
1518
|
# form parameters
|
|
@@ -2225,7 +1522,7 @@ module DaytonaApiClient
|
|
|
2225
1522
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_organization_quota)
|
|
2226
1523
|
|
|
2227
1524
|
# return_type
|
|
2228
|
-
return_type = opts[:debug_return_type]
|
|
1525
|
+
return_type = opts[:debug_return_type] || 'Organization'
|
|
2229
1526
|
|
|
2230
1527
|
# auth_names
|
|
2231
1528
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
@@ -2247,82 +1544,6 @@ module DaytonaApiClient
|
|
|
2247
1544
|
return data, status_code, headers
|
|
2248
1545
|
end
|
|
2249
1546
|
|
|
2250
|
-
# Update organization region quota
|
|
2251
|
-
# @param organization_id [String] Organization ID
|
|
2252
|
-
# @param region_id [String] ID of the region where the updated quota will be applied
|
|
2253
|
-
# @param update_organization_region_quota [UpdateOrganizationRegionQuota]
|
|
2254
|
-
# @param [Hash] opts the optional parameters
|
|
2255
|
-
# @return [nil]
|
|
2256
|
-
def update_organization_region_quota(organization_id, region_id, update_organization_region_quota, opts = {})
|
|
2257
|
-
update_organization_region_quota_with_http_info(organization_id, region_id, update_organization_region_quota, opts)
|
|
2258
|
-
nil
|
|
2259
|
-
end
|
|
2260
|
-
|
|
2261
|
-
# Update organization region quota
|
|
2262
|
-
# @param organization_id [String] Organization ID
|
|
2263
|
-
# @param region_id [String] ID of the region where the updated quota will be applied
|
|
2264
|
-
# @param update_organization_region_quota [UpdateOrganizationRegionQuota]
|
|
2265
|
-
# @param [Hash] opts the optional parameters
|
|
2266
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
2267
|
-
def update_organization_region_quota_with_http_info(organization_id, region_id, update_organization_region_quota, opts = {})
|
|
2268
|
-
if @api_client.config.debugging
|
|
2269
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization_region_quota ...'
|
|
2270
|
-
end
|
|
2271
|
-
# verify the required parameter 'organization_id' is set
|
|
2272
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
2273
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.update_organization_region_quota"
|
|
2274
|
-
end
|
|
2275
|
-
# verify the required parameter 'region_id' is set
|
|
2276
|
-
if @api_client.config.client_side_validation && region_id.nil?
|
|
2277
|
-
fail ArgumentError, "Missing the required parameter 'region_id' when calling OrganizationsApi.update_organization_region_quota"
|
|
2278
|
-
end
|
|
2279
|
-
# verify the required parameter 'update_organization_region_quota' is set
|
|
2280
|
-
if @api_client.config.client_side_validation && update_organization_region_quota.nil?
|
|
2281
|
-
fail ArgumentError, "Missing the required parameter 'update_organization_region_quota' when calling OrganizationsApi.update_organization_region_quota"
|
|
2282
|
-
end
|
|
2283
|
-
# resource path
|
|
2284
|
-
local_var_path = '/organizations/{organizationId}/quota/{regionId}'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s)).sub('{' + 'regionId' + '}', CGI.escape(region_id.to_s))
|
|
2285
|
-
|
|
2286
|
-
# query parameters
|
|
2287
|
-
query_params = opts[:query_params] || {}
|
|
2288
|
-
|
|
2289
|
-
# header parameters
|
|
2290
|
-
header_params = opts[:header_params] || {}
|
|
2291
|
-
# HTTP header 'Content-Type'
|
|
2292
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2293
|
-
if !content_type.nil?
|
|
2294
|
-
header_params['Content-Type'] = content_type
|
|
2295
|
-
end
|
|
2296
|
-
|
|
2297
|
-
# form parameters
|
|
2298
|
-
form_params = opts[:form_params] || {}
|
|
2299
|
-
|
|
2300
|
-
# http body (model)
|
|
2301
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_organization_region_quota)
|
|
2302
|
-
|
|
2303
|
-
# return_type
|
|
2304
|
-
return_type = opts[:debug_return_type]
|
|
2305
|
-
|
|
2306
|
-
# auth_names
|
|
2307
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2308
|
-
|
|
2309
|
-
new_options = opts.merge(
|
|
2310
|
-
:operation => :"OrganizationsApi.update_organization_region_quota",
|
|
2311
|
-
:header_params => header_params,
|
|
2312
|
-
:query_params => query_params,
|
|
2313
|
-
:form_params => form_params,
|
|
2314
|
-
:body => post_body,
|
|
2315
|
-
:auth_names => auth_names,
|
|
2316
|
-
:return_type => return_type
|
|
2317
|
-
)
|
|
2318
|
-
|
|
2319
|
-
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
2320
|
-
if @api_client.config.debugging
|
|
2321
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#update_organization_region_quota\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2322
|
-
end
|
|
2323
|
-
return data, status_code, headers
|
|
2324
|
-
end
|
|
2325
|
-
|
|
2326
1547
|
# Update organization role
|
|
2327
1548
|
# @param organization_id [String] Organization ID
|
|
2328
1549
|
# @param role_id [String] Role ID
|
|
@@ -2369,7 +1590,7 @@ module DaytonaApiClient
|
|
|
2369
1590
|
# HTTP header 'Content-Type'
|
|
2370
1591
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2371
1592
|
if !content_type.nil?
|
|
2372
|
-
|
|
1593
|
+
header_params['Content-Type'] = content_type
|
|
2373
1594
|
end
|
|
2374
1595
|
|
|
2375
1596
|
# form parameters
|
|
@@ -2401,79 +1622,6 @@ module DaytonaApiClient
|
|
|
2401
1622
|
return data, status_code, headers
|
|
2402
1623
|
end
|
|
2403
1624
|
|
|
2404
|
-
# Update region configuration
|
|
2405
|
-
# @param id [String] Region ID
|
|
2406
|
-
# @param update_region [UpdateRegion]
|
|
2407
|
-
# @param [Hash] opts the optional parameters
|
|
2408
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
2409
|
-
# @return [nil]
|
|
2410
|
-
def update_region(id, update_region, opts = {})
|
|
2411
|
-
update_region_with_http_info(id, update_region, opts)
|
|
2412
|
-
nil
|
|
2413
|
-
end
|
|
2414
|
-
|
|
2415
|
-
# Update region configuration
|
|
2416
|
-
# @param id [String] Region ID
|
|
2417
|
-
# @param update_region [UpdateRegion]
|
|
2418
|
-
# @param [Hash] opts the optional parameters
|
|
2419
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
2420
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
2421
|
-
def update_region_with_http_info(id, update_region, opts = {})
|
|
2422
|
-
if @api_client.config.debugging
|
|
2423
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_region ...'
|
|
2424
|
-
end
|
|
2425
|
-
# verify the required parameter 'id' is set
|
|
2426
|
-
if @api_client.config.client_side_validation && id.nil?
|
|
2427
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.update_region"
|
|
2428
|
-
end
|
|
2429
|
-
# verify the required parameter 'update_region' is set
|
|
2430
|
-
if @api_client.config.client_side_validation && update_region.nil?
|
|
2431
|
-
fail ArgumentError, "Missing the required parameter 'update_region' when calling OrganizationsApi.update_region"
|
|
2432
|
-
end
|
|
2433
|
-
# resource path
|
|
2434
|
-
local_var_path = '/regions/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
2435
|
-
|
|
2436
|
-
# query parameters
|
|
2437
|
-
query_params = opts[:query_params] || {}
|
|
2438
|
-
|
|
2439
|
-
# header parameters
|
|
2440
|
-
header_params = opts[:header_params] || {}
|
|
2441
|
-
# HTTP header 'Content-Type'
|
|
2442
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2443
|
-
if !content_type.nil?
|
|
2444
|
-
header_params['Content-Type'] = content_type
|
|
2445
|
-
end
|
|
2446
|
-
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
2447
|
-
|
|
2448
|
-
# form parameters
|
|
2449
|
-
form_params = opts[:form_params] || {}
|
|
2450
|
-
|
|
2451
|
-
# http body (model)
|
|
2452
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_region)
|
|
2453
|
-
|
|
2454
|
-
# return_type
|
|
2455
|
-
return_type = opts[:debug_return_type]
|
|
2456
|
-
|
|
2457
|
-
# auth_names
|
|
2458
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2459
|
-
|
|
2460
|
-
new_options = opts.merge(
|
|
2461
|
-
:operation => :"OrganizationsApi.update_region",
|
|
2462
|
-
:header_params => header_params,
|
|
2463
|
-
:query_params => query_params,
|
|
2464
|
-
:form_params => form_params,
|
|
2465
|
-
:body => post_body,
|
|
2466
|
-
:auth_names => auth_names,
|
|
2467
|
-
:return_type => return_type
|
|
2468
|
-
)
|
|
2469
|
-
|
|
2470
|
-
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
2471
|
-
if @api_client.config.debugging
|
|
2472
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#update_region\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2473
|
-
end
|
|
2474
|
-
return data, status_code, headers
|
|
2475
|
-
end
|
|
2476
|
-
|
|
2477
1625
|
# Update sandbox default limited network egress
|
|
2478
1626
|
# @param organization_id [String] Organization ID
|
|
2479
1627
|
# @param organization_sandbox_default_limited_network_egress [OrganizationSandboxDefaultLimitedNetworkEgress]
|
|
@@ -2512,7 +1660,7 @@ module DaytonaApiClient
|
|
|
2512
1660
|
# HTTP header 'Content-Type'
|
|
2513
1661
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2514
1662
|
if !content_type.nil?
|
|
2515
|
-
|
|
1663
|
+
header_params['Content-Type'] = content_type
|
|
2516
1664
|
end
|
|
2517
1665
|
|
|
2518
1666
|
# form parameters
|