daytona_api_client 0.182.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 +2 -2
- data/lib/daytona_api_client/api/audit_api.rb +140 -10
- data/lib/daytona_api_client/api/config_api.rb +1 -1
- data/lib/daytona_api_client/api/docker_registry_api.rb +67 -6
- data/lib/daytona_api_client/api/health_api.rb +3 -54
- data/lib/daytona_api_client/api/object_storage_api.rb +1 -1
- data/lib/daytona_api_client/api/organizations_api.rb +155 -1075
- data/lib/daytona_api_client/api/preview_api.rb +8 -77
- data/lib/daytona_api_client/api/runners_api.rb +22 -412
- data/lib/daytona_api_client/api/sandbox_api.rb +307 -1729
- data/lib/daytona_api_client/api/snapshots_api.rb +113 -39
- data/lib/daytona_api_client/api/toolbox_api.rb +741 -741
- data/lib/daytona_api_client/api/users_api.rb +239 -2
- data/lib/daytona_api_client/api/volumes_api.rb +2 -2
- data/lib/daytona_api_client/api/webhooks_api.rb +164 -27
- data/lib/daytona_api_client/api/workspace_api.rb +955 -0
- data/lib/daytona_api_client/api_client.rb +4 -8
- data/lib/daytona_api_client/api_error.rb +1 -1
- data/lib/daytona_api_client/configuration.rb +2 -5
- data/lib/daytona_api_client/models/account_provider.rb +74 -3
- data/lib/daytona_api_client/models/announcement.rb +74 -3
- data/lib/daytona_api_client/models/api_key_list.rb +74 -3
- data/lib/daytona_api_client/models/api_key_response.rb +74 -3
- data/lib/daytona_api_client/models/audit_log.rb +75 -22
- data/lib/daytona_api_client/models/build_info.rb +78 -34
- data/lib/daytona_api_client/models/command.rb +74 -3
- data/lib/daytona_api_client/models/completion_context.rb +74 -3
- data/lib/daytona_api_client/models/completion_item.rb +74 -3
- data/lib/daytona_api_client/models/completion_list.rb +74 -3
- data/lib/daytona_api_client/models/compressed_screenshot_response.rb +74 -3
- data/lib/daytona_api_client/models/computer_use_start_response.rb +74 -3
- data/lib/daytona_api_client/models/computer_use_status_response.rb +76 -5
- data/lib/daytona_api_client/models/computer_use_stop_response.rb +74 -3
- data/lib/daytona_api_client/models/create_api_key.rb +75 -4
- data/lib/daytona_api_client/models/create_audit_log.rb +350 -0
- data/lib/daytona_api_client/models/create_build_info.rb +74 -3
- data/lib/daytona_api_client/models/create_docker_registry.rb +139 -7
- data/lib/daytona_api_client/models/create_linked_account.rb +74 -3
- data/lib/daytona_api_client/models/create_organization.rb +78 -34
- data/lib/daytona_api_client/models/create_organization_invitation.rb +76 -5
- data/lib/daytona_api_client/models/create_organization_quota.rb +74 -3
- data/lib/daytona_api_client/models/create_organization_role.rb +74 -3
- data/lib/daytona_api_client/models/create_runner.rb +386 -43
- data/lib/daytona_api_client/models/create_sandbox.rb +77 -16
- data/lib/daytona_api_client/models/create_session_request.rb +74 -3
- data/lib/daytona_api_client/models/create_snapshot.rb +88 -17
- data/lib/daytona_api_client/models/create_user.rb +77 -15
- data/lib/daytona_api_client/models/create_volume.rb +74 -3
- data/lib/daytona_api_client/models/create_workspace.rb +411 -0
- data/lib/daytona_api_client/models/daytona_configuration.rb +78 -54
- data/lib/daytona_api_client/models/display_info_response.rb +74 -3
- data/lib/daytona_api_client/models/docker_registry.rb +76 -5
- data/lib/daytona_api_client/models/download_files.rb +74 -3
- data/lib/daytona_api_client/models/execute_request.rb +74 -3
- data/lib/daytona_api_client/models/execute_response.rb +74 -3
- data/lib/daytona_api_client/models/file_info.rb +74 -3
- data/lib/daytona_api_client/models/file_status.rb +74 -3
- data/lib/daytona_api_client/models/git_add_request.rb +74 -3
- data/lib/daytona_api_client/models/git_branch_request.rb +74 -3
- data/lib/daytona_api_client/models/git_checkout_request.rb +74 -3
- data/lib/daytona_api_client/models/git_clone_request.rb +74 -3
- data/lib/daytona_api_client/models/git_commit_info.rb +74 -3
- data/lib/daytona_api_client/models/git_commit_request.rb +74 -3
- data/lib/daytona_api_client/models/git_commit_response.rb +74 -3
- data/lib/daytona_api_client/models/git_delete_branch_request.rb +74 -3
- data/lib/daytona_api_client/models/git_repo_request.rb +74 -3
- data/lib/daytona_api_client/models/git_status.rb +74 -3
- data/lib/daytona_api_client/models/health_controller_check200_response.rb +74 -3
- data/lib/daytona_api_client/models/health_controller_check200_response_info_value.rb +74 -3
- data/lib/daytona_api_client/models/health_controller_check503_response.rb +74 -3
- data/lib/daytona_api_client/models/keyboard_hotkey_request.rb +74 -3
- data/lib/daytona_api_client/models/keyboard_press_request.rb +74 -3
- data/lib/daytona_api_client/models/keyboard_type_request.rb +74 -3
- data/lib/daytona_api_client/models/list_branch_response.rb +74 -3
- data/lib/daytona_api_client/models/lsp_completion_params.rb +74 -3
- data/lib/daytona_api_client/models/lsp_document_request.rb +74 -3
- data/lib/daytona_api_client/models/lsp_location.rb +74 -3
- data/lib/daytona_api_client/models/lsp_server_request.rb +74 -3
- data/lib/daytona_api_client/models/lsp_symbol.rb +74 -3
- data/lib/daytona_api_client/models/match.rb +74 -3
- data/lib/daytona_api_client/models/mouse_click_request.rb +74 -3
- data/lib/daytona_api_client/models/mouse_click_response.rb +74 -3
- data/lib/daytona_api_client/models/mouse_drag_request.rb +74 -3
- data/lib/daytona_api_client/models/mouse_drag_response.rb +74 -3
- data/lib/daytona_api_client/models/mouse_move_request.rb +74 -3
- data/lib/daytona_api_client/models/mouse_move_response.rb +74 -3
- data/lib/daytona_api_client/models/mouse_position.rb +74 -3
- data/lib/daytona_api_client/models/mouse_scroll_request.rb +74 -3
- data/lib/daytona_api_client/models/mouse_scroll_response.rb +74 -3
- data/lib/daytona_api_client/models/oidc_config.rb +74 -3
- data/lib/daytona_api_client/models/organization.rb +159 -162
- data/lib/daytona_api_client/models/organization_invitation.rb +78 -7
- data/lib/daytona_api_client/models/organization_role.rb +74 -3
- data/lib/daytona_api_client/models/organization_sandbox_default_limited_network_egress.rb +74 -3
- data/lib/daytona_api_client/models/organization_suspension.rb +79 -10
- data/lib/daytona_api_client/models/organization_usage_overview.rb +220 -21
- data/lib/daytona_api_client/models/organization_user.rb +76 -5
- data/lib/daytona_api_client/models/paginated_audit_logs.rb +78 -17
- data/lib/daytona_api_client/models/{paginated_sandboxes_deprecated.rb → paginated_sandboxes.rb} +76 -5
- data/lib/daytona_api_client/models/paginated_snapshots.rb +74 -3
- data/lib/daytona_api_client/models/{paginated_jobs.rb → paginated_snapshots_dto.rb} +77 -6
- data/lib/daytona_api_client/models/port_preview_url.rb +88 -34
- data/lib/daytona_api_client/models/position.rb +74 -3
- data/lib/daytona_api_client/models/posthog_config.rb +74 -3
- data/lib/daytona_api_client/models/process_errors_response.rb +74 -3
- data/lib/daytona_api_client/models/process_logs_response.rb +74 -3
- data/lib/daytona_api_client/models/process_restart_response.rb +74 -3
- data/lib/daytona_api_client/models/process_status_response.rb +74 -3
- data/lib/daytona_api_client/models/project_dir_response.rb +74 -3
- data/lib/daytona_api_client/models/pty_create_request.rb +74 -3
- data/lib/daytona_api_client/models/pty_create_response.rb +74 -3
- data/lib/daytona_api_client/models/pty_list_response.rb +74 -3
- data/lib/daytona_api_client/models/pty_resize_request.rb +74 -3
- data/lib/daytona_api_client/models/pty_session_info.rb +74 -3
- data/lib/daytona_api_client/models/range.rb +74 -3
- data/lib/daytona_api_client/models/region.rb +78 -181
- data/lib/daytona_api_client/models/region_screenshot_response.rb +74 -3
- data/lib/daytona_api_client/models/registry_push_access_dto.rb +74 -3
- data/lib/daytona_api_client/models/replace_request.rb +74 -3
- data/lib/daytona_api_client/models/replace_result.rb +74 -3
- data/lib/daytona_api_client/models/runner.rb +191 -138
- data/lib/daytona_api_client/models/runner_snapshot_dto.rb +91 -3
- data/lib/daytona_api_client/models/runner_state.rb +3 -4
- data/lib/daytona_api_client/models/sandbox.rb +92 -95
- data/lib/daytona_api_client/models/sandbox_class.rb +3 -4
- data/lib/daytona_api_client/models/sandbox_desired_state.rb +3 -4
- data/lib/daytona_api_client/models/{create_region.rb → sandbox_info.rb} +113 -38
- data/lib/daytona_api_client/models/sandbox_labels.rb +74 -3
- data/lib/daytona_api_client/models/sandbox_state.rb +3 -7
- data/lib/daytona_api_client/models/sandbox_volume.rb +78 -17
- data/lib/daytona_api_client/models/screenshot_response.rb +74 -3
- data/lib/daytona_api_client/models/search_files_response.rb +74 -3
- data/lib/daytona_api_client/models/send_webhook_dto.rb +75 -26
- data/lib/daytona_api_client/models/session.rb +74 -3
- data/lib/daytona_api_client/models/session_execute_request.rb +74 -3
- data/lib/daytona_api_client/models/session_execute_response.rb +74 -3
- data/lib/daytona_api_client/models/set_snapshot_general_status_dto.rb +74 -3
- data/lib/daytona_api_client/models/snapshot_dto.rb +78 -39
- data/lib/daytona_api_client/models/snapshot_state.rb +6 -4
- data/lib/daytona_api_client/models/ssh_access_dto.rb +78 -34
- data/lib/daytona_api_client/models/ssh_access_validation_dto.rb +98 -7
- data/lib/daytona_api_client/models/storage_access_dto.rb +74 -3
- data/lib/daytona_api_client/models/update_docker_registry.rb +74 -3
- data/lib/daytona_api_client/models/update_organization_invitation.rb +76 -5
- data/lib/daytona_api_client/models/update_organization_member_access.rb +76 -5
- data/lib/daytona_api_client/models/update_organization_quota.rb +115 -93
- data/lib/daytona_api_client/models/update_organization_role.rb +74 -3
- data/lib/daytona_api_client/models/update_sandbox_state_dto.rb +80 -29
- data/lib/daytona_api_client/models/user.rb +74 -3
- data/lib/daytona_api_client/models/user_home_dir_response.rb +74 -3
- data/lib/daytona_api_client/models/user_public_key.rb +74 -3
- data/lib/daytona_api_client/models/volume_dto.rb +74 -3
- data/lib/daytona_api_client/models/volume_state.rb +3 -4
- data/lib/daytona_api_client/models/webhook_app_portal_access.rb +75 -31
- data/lib/daytona_api_client/models/{admin_get_webhook_status200_response.rb → webhook_controller_get_status200_response.rb} +76 -5
- data/lib/daytona_api_client/models/webhook_initialization_status.rb +74 -3
- data/lib/daytona_api_client/models/windows_response.rb +74 -3
- data/lib/daytona_api_client/models/work_dir_response.rb +74 -3
- data/lib/daytona_api_client/models/{sandbox_list_item.rb → workspace.rb} +344 -170
- data/lib/daytona_api_client/version.rb +2 -2
- data/lib/daytona_api_client.rb +8 -53
- data/project.json +11 -42
- metadata +11 -60
- data/.gitignore +0 -39
- data/.openapi-generator/FILES +0 -210
- 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/api_model_base.rb +0 -88
- data/lib/daytona_api_client/models/admin_create_runner.rb +0 -326
- data/lib/daytona_api_client/models/create_region_response.rb +0 -209
- data/lib/daytona_api_client/models/create_runner_response.rb +0 -192
- data/lib/daytona_api_client/models/create_sandbox_snapshot.rb +0 -165
- data/lib/daytona_api_client/models/fork_sandbox.rb +0 -148
- data/lib/daytona_api_client/models/job.rb +0 -366
- data/lib/daytona_api_client/models/job_status.rb +0 -43
- data/lib/daytona_api_client/models/job_type.rb +0 -53
- data/lib/daytona_api_client/models/list_sandboxes_response.rb +0 -180
- data/lib/daytona_api_client/models/log_entry.rb +0 -334
- data/lib/daytona_api_client/models/metric_data_point.rb +0 -192
- data/lib/daytona_api_client/models/metric_series.rb +0 -194
- data/lib/daytona_api_client/models/metrics_response.rb +0 -167
- data/lib/daytona_api_client/models/otel_config.rb +0 -178
- data/lib/daytona_api_client/models/paginated_logs.rb +0 -248
- data/lib/daytona_api_client/models/paginated_traces.rb +0 -248
- data/lib/daytona_api_client/models/poll_jobs_response.rb +0 -167
- data/lib/daytona_api_client/models/rate_limit_config.rb +0 -178
- data/lib/daytona_api_client/models/rate_limit_entry.rb +0 -158
- data/lib/daytona_api_client/models/regenerate_api_key_response.rb +0 -165
- data/lib/daytona_api_client/models/region_quota.rb +0 -378
- data/lib/daytona_api_client/models/region_type.rb +0 -42
- data/lib/daytona_api_client/models/region_usage_overview.rb +0 -456
- data/lib/daytona_api_client/models/resize_sandbox.rb +0 -225
- data/lib/daytona_api_client/models/runner_class.rb +0 -41
- data/lib/daytona_api_client/models/runner_full.rb +0 -764
- data/lib/daytona_api_client/models/runner_health_metrics.rb +0 -482
- data/lib/daytona_api_client/models/runner_healthcheck.rb +0 -217
- data/lib/daytona_api_client/models/runner_service_health.rb +0 -202
- data/lib/daytona_api_client/models/sandbox_list_sort_direction.rb +0 -41
- data/lib/daytona_api_client/models/sandbox_list_sort_field.rb +0 -45
- data/lib/daytona_api_client/models/signed_port_preview_url.rb +0 -246
- data/lib/daytona_api_client/models/snapshot_manager_credentials.rb +0 -192
- data/lib/daytona_api_client/models/toolbox_proxy_url.rb +0 -165
- data/lib/daytona_api_client/models/trace_span.rb +0 -332
- data/lib/daytona_api_client/models/trace_summary.rb +0 -310
- data/lib/daytona_api_client/models/update_job_status.rb +0 -207
- data/lib/daytona_api_client/models/update_organization_default_region.rb +0 -165
- data/lib/daytona_api_client/models/update_organization_region_quota.rb +0 -256
- data/lib/daytona_api_client/models/update_region.rb +0 -171
- data/lib/daytona_api_client/models/update_sandbox_network_settings.rb +0 -158
- data/lib/daytona_api_client/models/url.rb +0 -165
- data/lib/daytona_api_client/models/webhook_event.rb +0 -46
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 1.0
|
|
7
7
|
Contact: support@daytona.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.12.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -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
|
|
@@ -607,65 +536,6 @@ module DaytonaApiClient
|
|
|
607
536
|
return data, status_code, headers
|
|
608
537
|
end
|
|
609
538
|
|
|
610
|
-
# Delete organization OpenTelemetry configuration
|
|
611
|
-
# @param organization_id [String] Organization ID
|
|
612
|
-
# @param [Hash] opts the optional parameters
|
|
613
|
-
# @return [nil]
|
|
614
|
-
def delete_organization_otel_config(organization_id, opts = {})
|
|
615
|
-
delete_organization_otel_config_with_http_info(organization_id, opts)
|
|
616
|
-
nil
|
|
617
|
-
end
|
|
618
|
-
|
|
619
|
-
# Delete organization OpenTelemetry configuration
|
|
620
|
-
# @param organization_id [String] Organization ID
|
|
621
|
-
# @param [Hash] opts the optional parameters
|
|
622
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
623
|
-
def delete_organization_otel_config_with_http_info(organization_id, opts = {})
|
|
624
|
-
if @api_client.config.debugging
|
|
625
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.delete_organization_otel_config ...'
|
|
626
|
-
end
|
|
627
|
-
# verify the required parameter 'organization_id' is set
|
|
628
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
629
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.delete_organization_otel_config"
|
|
630
|
-
end
|
|
631
|
-
# resource path
|
|
632
|
-
local_var_path = '/organizations/{organizationId}/otel-config'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
633
|
-
|
|
634
|
-
# query parameters
|
|
635
|
-
query_params = opts[:query_params] || {}
|
|
636
|
-
|
|
637
|
-
# header parameters
|
|
638
|
-
header_params = opts[:header_params] || {}
|
|
639
|
-
|
|
640
|
-
# form parameters
|
|
641
|
-
form_params = opts[:form_params] || {}
|
|
642
|
-
|
|
643
|
-
# http body (model)
|
|
644
|
-
post_body = opts[:debug_body]
|
|
645
|
-
|
|
646
|
-
# return_type
|
|
647
|
-
return_type = opts[:debug_return_type]
|
|
648
|
-
|
|
649
|
-
# auth_names
|
|
650
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
651
|
-
|
|
652
|
-
new_options = opts.merge(
|
|
653
|
-
:operation => :"OrganizationsApi.delete_organization_otel_config",
|
|
654
|
-
:header_params => header_params,
|
|
655
|
-
:query_params => query_params,
|
|
656
|
-
:form_params => form_params,
|
|
657
|
-
:body => post_body,
|
|
658
|
-
:auth_names => auth_names,
|
|
659
|
-
:return_type => return_type
|
|
660
|
-
)
|
|
661
|
-
|
|
662
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
663
|
-
if @api_client.config.debugging
|
|
664
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#delete_organization_otel_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
665
|
-
end
|
|
666
|
-
return data, status_code, headers
|
|
667
|
-
end
|
|
668
|
-
|
|
669
539
|
# Delete organization role
|
|
670
540
|
# @param organization_id [String] Organization ID
|
|
671
541
|
# @param role_id [String] Role ID
|
|
@@ -731,38 +601,37 @@ module DaytonaApiClient
|
|
|
731
601
|
return data, status_code, headers
|
|
732
602
|
end
|
|
733
603
|
|
|
734
|
-
#
|
|
735
|
-
# @param
|
|
604
|
+
# Get organization by ID
|
|
605
|
+
# @param organization_id [String] Organization ID
|
|
736
606
|
# @param [Hash] opts the optional parameters
|
|
737
|
-
# @
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
nil
|
|
607
|
+
# @return [Organization]
|
|
608
|
+
def get_organization(organization_id, opts = {})
|
|
609
|
+
data, _status_code, _headers = get_organization_with_http_info(organization_id, opts)
|
|
610
|
+
data
|
|
742
611
|
end
|
|
743
612
|
|
|
744
|
-
#
|
|
745
|
-
# @param
|
|
613
|
+
# Get organization by ID
|
|
614
|
+
# @param organization_id [String] Organization ID
|
|
746
615
|
# @param [Hash] opts the optional parameters
|
|
747
|
-
# @
|
|
748
|
-
|
|
749
|
-
def delete_region_with_http_info(id, opts = {})
|
|
616
|
+
# @return [Array<(Organization, Integer, Hash)>] Organization data, response status code and response headers
|
|
617
|
+
def get_organization_with_http_info(organization_id, opts = {})
|
|
750
618
|
if @api_client.config.debugging
|
|
751
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
|
619
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization ...'
|
|
752
620
|
end
|
|
753
|
-
# verify the required parameter '
|
|
754
|
-
if @api_client.config.client_side_validation &&
|
|
755
|
-
fail ArgumentError, "Missing the required parameter '
|
|
621
|
+
# verify the required parameter 'organization_id' is set
|
|
622
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
|
623
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.get_organization"
|
|
756
624
|
end
|
|
757
625
|
# resource path
|
|
758
|
-
local_var_path = '/
|
|
626
|
+
local_var_path = '/organizations/{organizationId}'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
759
627
|
|
|
760
628
|
# query parameters
|
|
761
629
|
query_params = opts[:query_params] || {}
|
|
762
630
|
|
|
763
631
|
# header parameters
|
|
764
632
|
header_params = opts[:header_params] || {}
|
|
765
|
-
|
|
633
|
+
# HTTP header 'Accept' (if needed)
|
|
634
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
766
635
|
|
|
767
636
|
# form parameters
|
|
768
637
|
form_params = opts[:form_params] || {}
|
|
@@ -771,13 +640,13 @@ module DaytonaApiClient
|
|
|
771
640
|
post_body = opts[:debug_body]
|
|
772
641
|
|
|
773
642
|
# return_type
|
|
774
|
-
return_type = opts[:debug_return_type]
|
|
643
|
+
return_type = opts[:debug_return_type] || 'Organization'
|
|
775
644
|
|
|
776
645
|
# auth_names
|
|
777
646
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
778
647
|
|
|
779
648
|
new_options = opts.merge(
|
|
780
|
-
:operation => :"OrganizationsApi.
|
|
649
|
+
:operation => :"OrganizationsApi.get_organization",
|
|
781
650
|
:header_params => header_params,
|
|
782
651
|
:query_params => query_params,
|
|
783
652
|
:form_params => form_params,
|
|
@@ -786,36 +655,36 @@ module DaytonaApiClient
|
|
|
786
655
|
:return_type => return_type
|
|
787
656
|
)
|
|
788
657
|
|
|
789
|
-
data, status_code, headers = @api_client.call_api(:
|
|
658
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
790
659
|
if @api_client.config.debugging
|
|
791
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#
|
|
660
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#get_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
792
661
|
end
|
|
793
662
|
return data, status_code, headers
|
|
794
663
|
end
|
|
795
664
|
|
|
796
|
-
# Get organization by ID
|
|
797
|
-
# @param
|
|
665
|
+
# Get organization by sandbox ID
|
|
666
|
+
# @param sandbox_id [String] Sandbox ID
|
|
798
667
|
# @param [Hash] opts the optional parameters
|
|
799
668
|
# @return [Organization]
|
|
800
|
-
def
|
|
801
|
-
data, _status_code, _headers =
|
|
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)
|
|
802
671
|
data
|
|
803
672
|
end
|
|
804
673
|
|
|
805
|
-
# Get organization by ID
|
|
806
|
-
# @param
|
|
674
|
+
# Get organization by sandbox ID
|
|
675
|
+
# @param sandbox_id [String] Sandbox ID
|
|
807
676
|
# @param [Hash] opts the optional parameters
|
|
808
677
|
# @return [Array<(Organization, Integer, Hash)>] Organization data, response status code and response headers
|
|
809
|
-
def
|
|
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 ...'
|
|
812
681
|
end
|
|
813
|
-
# verify the required parameter '
|
|
814
|
-
if @api_client.config.client_side_validation &&
|
|
815
|
-
fail ArgumentError, "Missing the required parameter '
|
|
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"
|
|
816
685
|
end
|
|
817
686
|
# resource path
|
|
818
|
-
local_var_path = '/organizations/{
|
|
687
|
+
local_var_path = '/organizations/by-sandbox-id/{sandboxId}'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
819
688
|
|
|
820
689
|
# query parameters
|
|
821
690
|
query_params = opts[:query_params] || {}
|
|
@@ -838,7 +707,7 @@ module DaytonaApiClient
|
|
|
838
707
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
839
708
|
|
|
840
709
|
new_options = opts.merge(
|
|
841
|
-
:operation => :"OrganizationsApi.
|
|
710
|
+
:operation => :"OrganizationsApi.get_organization_by_sandbox_id",
|
|
842
711
|
:header_params => header_params,
|
|
843
712
|
:query_params => query_params,
|
|
844
713
|
:form_params => form_params,
|
|
@@ -849,7 +718,7 @@ module DaytonaApiClient
|
|
|
849
718
|
|
|
850
719
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
851
720
|
if @api_client.config.debugging
|
|
852
|
-
@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}"
|
|
853
722
|
end
|
|
854
723
|
return data, status_code, headers
|
|
855
724
|
end
|
|
@@ -909,29 +778,29 @@ module DaytonaApiClient
|
|
|
909
778
|
return data, status_code, headers
|
|
910
779
|
end
|
|
911
780
|
|
|
912
|
-
# Get organization
|
|
781
|
+
# Get organization current usage overview
|
|
913
782
|
# @param organization_id [String] Organization ID
|
|
914
783
|
# @param [Hash] opts the optional parameters
|
|
915
|
-
# @return [
|
|
916
|
-
def
|
|
917
|
-
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)
|
|
918
787
|
data
|
|
919
788
|
end
|
|
920
789
|
|
|
921
|
-
# Get organization
|
|
790
|
+
# Get organization current usage overview
|
|
922
791
|
# @param organization_id [String] Organization ID
|
|
923
792
|
# @param [Hash] opts the optional parameters
|
|
924
|
-
# @return [Array<(
|
|
925
|
-
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 = {})
|
|
926
795
|
if @api_client.config.debugging
|
|
927
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
|
796
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization_usage_overview ...'
|
|
928
797
|
end
|
|
929
798
|
# verify the required parameter 'organization_id' is set
|
|
930
799
|
if @api_client.config.client_side_validation && organization_id.nil?
|
|
931
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.
|
|
800
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.get_organization_usage_overview"
|
|
932
801
|
end
|
|
933
802
|
# resource path
|
|
934
|
-
local_var_path = '/organizations/{organizationId}/
|
|
803
|
+
local_var_path = '/organizations/{organizationId}/usage'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
935
804
|
|
|
936
805
|
# query parameters
|
|
937
806
|
query_params = opts[:query_params] || {}
|
|
@@ -948,13 +817,13 @@ module DaytonaApiClient
|
|
|
948
817
|
post_body = opts[:debug_body]
|
|
949
818
|
|
|
950
819
|
# return_type
|
|
951
|
-
return_type = opts[:debug_return_type] || '
|
|
820
|
+
return_type = opts[:debug_return_type] || 'OrganizationUsageOverview'
|
|
952
821
|
|
|
953
822
|
# auth_names
|
|
954
823
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
955
824
|
|
|
956
825
|
new_options = opts.merge(
|
|
957
|
-
:operation => :"OrganizationsApi.
|
|
826
|
+
:operation => :"OrganizationsApi.get_organization_usage_overview",
|
|
958
827
|
:header_params => header_params,
|
|
959
828
|
:query_params => query_params,
|
|
960
829
|
:form_params => form_params,
|
|
@@ -965,42 +834,40 @@ module DaytonaApiClient
|
|
|
965
834
|
|
|
966
835
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
967
836
|
if @api_client.config.debugging
|
|
968
|
-
@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}"
|
|
969
838
|
end
|
|
970
839
|
return data, status_code, headers
|
|
971
840
|
end
|
|
972
841
|
|
|
973
|
-
#
|
|
974
|
-
# @param
|
|
842
|
+
# Leave organization
|
|
843
|
+
# @param organization_id [String] Organization ID
|
|
975
844
|
# @param [Hash] opts the optional parameters
|
|
976
|
-
# @return [
|
|
977
|
-
def
|
|
978
|
-
|
|
979
|
-
|
|
845
|
+
# @return [nil]
|
|
846
|
+
def leave_organization(organization_id, opts = {})
|
|
847
|
+
leave_organization_with_http_info(organization_id, opts)
|
|
848
|
+
nil
|
|
980
849
|
end
|
|
981
850
|
|
|
982
|
-
#
|
|
983
|
-
# @param
|
|
851
|
+
# Leave organization
|
|
852
|
+
# @param organization_id [String] Organization ID
|
|
984
853
|
# @param [Hash] opts the optional parameters
|
|
985
|
-
# @return [Array<(
|
|
986
|
-
def
|
|
854
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
855
|
+
def leave_organization_with_http_info(organization_id, opts = {})
|
|
987
856
|
if @api_client.config.debugging
|
|
988
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
|
857
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.leave_organization ...'
|
|
989
858
|
end
|
|
990
|
-
# verify the required parameter '
|
|
991
|
-
if @api_client.config.client_side_validation &&
|
|
992
|
-
fail ArgumentError, "Missing the required parameter '
|
|
859
|
+
# verify the required parameter 'organization_id' is set
|
|
860
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
|
861
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.leave_organization"
|
|
993
862
|
end
|
|
994
863
|
# resource path
|
|
995
|
-
local_var_path = '/organizations/
|
|
864
|
+
local_var_path = '/organizations/{organizationId}/leave'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
996
865
|
|
|
997
866
|
# query parameters
|
|
998
867
|
query_params = opts[:query_params] || {}
|
|
999
868
|
|
|
1000
869
|
# header parameters
|
|
1001
870
|
header_params = opts[:header_params] || {}
|
|
1002
|
-
# HTTP header 'Accept' (if needed)
|
|
1003
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1004
871
|
|
|
1005
872
|
# form parameters
|
|
1006
873
|
form_params = opts[:form_params] || {}
|
|
@@ -1009,13 +876,13 @@ module DaytonaApiClient
|
|
|
1009
876
|
post_body = opts[:debug_body]
|
|
1010
877
|
|
|
1011
878
|
# return_type
|
|
1012
|
-
return_type = opts[:debug_return_type]
|
|
879
|
+
return_type = opts[:debug_return_type]
|
|
1013
880
|
|
|
1014
881
|
# auth_names
|
|
1015
882
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1016
883
|
|
|
1017
884
|
new_options = opts.merge(
|
|
1018
|
-
:operation => :"OrganizationsApi.
|
|
885
|
+
:operation => :"OrganizationsApi.leave_organization",
|
|
1019
886
|
:header_params => header_params,
|
|
1020
887
|
:query_params => query_params,
|
|
1021
888
|
:form_params => form_params,
|
|
@@ -1024,36 +891,36 @@ module DaytonaApiClient
|
|
|
1024
891
|
:return_type => return_type
|
|
1025
892
|
)
|
|
1026
893
|
|
|
1027
|
-
data, status_code, headers = @api_client.call_api(:
|
|
894
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1028
895
|
if @api_client.config.debugging
|
|
1029
|
-
@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}"
|
|
1030
897
|
end
|
|
1031
898
|
return data, status_code, headers
|
|
1032
899
|
end
|
|
1033
900
|
|
|
1034
|
-
#
|
|
901
|
+
# List pending organization invitations
|
|
1035
902
|
# @param organization_id [String] Organization ID
|
|
1036
903
|
# @param [Hash] opts the optional parameters
|
|
1037
|
-
# @return [
|
|
1038
|
-
def
|
|
1039
|
-
data, _status_code, _headers =
|
|
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)
|
|
1040
907
|
data
|
|
1041
908
|
end
|
|
1042
909
|
|
|
1043
|
-
#
|
|
910
|
+
# List pending organization invitations
|
|
1044
911
|
# @param organization_id [String] Organization ID
|
|
1045
912
|
# @param [Hash] opts the optional parameters
|
|
1046
|
-
# @return [Array<(
|
|
1047
|
-
def
|
|
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 = {})
|
|
1048
915
|
if @api_client.config.debugging
|
|
1049
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
|
916
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_invitations ...'
|
|
1050
917
|
end
|
|
1051
918
|
# verify the required parameter 'organization_id' is set
|
|
1052
919
|
if @api_client.config.client_side_validation && organization_id.nil?
|
|
1053
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.
|
|
920
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.list_organization_invitations"
|
|
1054
921
|
end
|
|
1055
922
|
# resource path
|
|
1056
|
-
local_var_path = '/organizations/{organizationId}/
|
|
923
|
+
local_var_path = '/organizations/{organizationId}/invitations'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
1057
924
|
|
|
1058
925
|
# query parameters
|
|
1059
926
|
query_params = opts[:query_params] || {}
|
|
@@ -1070,13 +937,13 @@ module DaytonaApiClient
|
|
|
1070
937
|
post_body = opts[:debug_body]
|
|
1071
938
|
|
|
1072
939
|
# return_type
|
|
1073
|
-
return_type = opts[:debug_return_type] || '
|
|
940
|
+
return_type = opts[:debug_return_type] || 'Array<OrganizationInvitation>'
|
|
1074
941
|
|
|
1075
942
|
# auth_names
|
|
1076
943
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1077
944
|
|
|
1078
945
|
new_options = opts.merge(
|
|
1079
|
-
:operation => :"OrganizationsApi.
|
|
946
|
+
:operation => :"OrganizationsApi.list_organization_invitations",
|
|
1080
947
|
:header_params => header_params,
|
|
1081
948
|
:query_params => query_params,
|
|
1082
949
|
:form_params => form_params,
|
|
@@ -1087,36 +954,28 @@ module DaytonaApiClient
|
|
|
1087
954
|
|
|
1088
955
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1089
956
|
if @api_client.config.debugging
|
|
1090
|
-
@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}"
|
|
1091
958
|
end
|
|
1092
959
|
return data, status_code, headers
|
|
1093
960
|
end
|
|
1094
961
|
|
|
1095
|
-
#
|
|
1096
|
-
# @param id [String] Region ID
|
|
962
|
+
# List organization invitations for authenticated user
|
|
1097
963
|
# @param [Hash] opts the optional parameters
|
|
1098
|
-
# @
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
data, _status_code, _headers = get_region_by_id_with_http_info(id, opts)
|
|
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)
|
|
1102
967
|
data
|
|
1103
968
|
end
|
|
1104
969
|
|
|
1105
|
-
#
|
|
1106
|
-
# @param id [String] Region ID
|
|
970
|
+
# List organization invitations for authenticated user
|
|
1107
971
|
# @param [Hash] opts the optional parameters
|
|
1108
|
-
# @
|
|
1109
|
-
|
|
1110
|
-
def get_region_by_id_with_http_info(id, opts = {})
|
|
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 = {})
|
|
1111
974
|
if @api_client.config.debugging
|
|
1112
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
|
1113
|
-
end
|
|
1114
|
-
# verify the required parameter 'id' is set
|
|
1115
|
-
if @api_client.config.client_side_validation && id.nil?
|
|
1116
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.get_region_by_id"
|
|
975
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_invitations_for_authenticated_user ...'
|
|
1117
976
|
end
|
|
1118
977
|
# resource path
|
|
1119
|
-
local_var_path = '/
|
|
978
|
+
local_var_path = '/organizations/invitations'
|
|
1120
979
|
|
|
1121
980
|
# query parameters
|
|
1122
981
|
query_params = opts[:query_params] || {}
|
|
@@ -1125,7 +984,6 @@ module DaytonaApiClient
|
|
|
1125
984
|
header_params = opts[:header_params] || {}
|
|
1126
985
|
# HTTP header 'Accept' (if needed)
|
|
1127
986
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1128
|
-
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
1129
987
|
|
|
1130
988
|
# form parameters
|
|
1131
989
|
form_params = opts[:form_params] || {}
|
|
@@ -1134,13 +992,13 @@ module DaytonaApiClient
|
|
|
1134
992
|
post_body = opts[:debug_body]
|
|
1135
993
|
|
|
1136
994
|
# return_type
|
|
1137
|
-
return_type = opts[:debug_return_type] || '
|
|
995
|
+
return_type = opts[:debug_return_type] || 'Array<OrganizationInvitation>'
|
|
1138
996
|
|
|
1139
997
|
# auth_names
|
|
1140
998
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1141
999
|
|
|
1142
1000
|
new_options = opts.merge(
|
|
1143
|
-
:operation => :"OrganizationsApi.
|
|
1001
|
+
:operation => :"OrganizationsApi.list_organization_invitations_for_authenticated_user",
|
|
1144
1002
|
:header_params => header_params,
|
|
1145
1003
|
:query_params => query_params,
|
|
1146
1004
|
:form_params => form_params,
|
|
@@ -1151,40 +1009,42 @@ module DaytonaApiClient
|
|
|
1151
1009
|
|
|
1152
1010
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1153
1011
|
if @api_client.config.debugging
|
|
1154
|
-
@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}"
|
|
1155
1013
|
end
|
|
1156
1014
|
return data, status_code, headers
|
|
1157
1015
|
end
|
|
1158
1016
|
|
|
1159
|
-
#
|
|
1017
|
+
# List organization members
|
|
1160
1018
|
# @param organization_id [String] Organization ID
|
|
1161
1019
|
# @param [Hash] opts the optional parameters
|
|
1162
|
-
# @return [
|
|
1163
|
-
def
|
|
1164
|
-
|
|
1165
|
-
|
|
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
|
|
1166
1024
|
end
|
|
1167
1025
|
|
|
1168
|
-
#
|
|
1026
|
+
# List organization members
|
|
1169
1027
|
# @param organization_id [String] Organization ID
|
|
1170
1028
|
# @param [Hash] opts the optional parameters
|
|
1171
|
-
# @return [Array<(
|
|
1172
|
-
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 = {})
|
|
1173
1031
|
if @api_client.config.debugging
|
|
1174
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
|
1032
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_members ...'
|
|
1175
1033
|
end
|
|
1176
1034
|
# verify the required parameter 'organization_id' is set
|
|
1177
1035
|
if @api_client.config.client_side_validation && organization_id.nil?
|
|
1178
|
-
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"
|
|
1179
1037
|
end
|
|
1180
1038
|
# resource path
|
|
1181
|
-
local_var_path = '/organizations/{organizationId}/
|
|
1039
|
+
local_var_path = '/organizations/{organizationId}/users'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
1182
1040
|
|
|
1183
1041
|
# query parameters
|
|
1184
1042
|
query_params = opts[:query_params] || {}
|
|
1185
1043
|
|
|
1186
1044
|
# header parameters
|
|
1187
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']
|
|
1188
1048
|
|
|
1189
1049
|
# form parameters
|
|
1190
1050
|
form_params = opts[:form_params] || {}
|
|
@@ -1193,13 +1053,13 @@ module DaytonaApiClient
|
|
|
1193
1053
|
post_body = opts[:debug_body]
|
|
1194
1054
|
|
|
1195
1055
|
# return_type
|
|
1196
|
-
return_type = opts[:debug_return_type]
|
|
1056
|
+
return_type = opts[:debug_return_type] || 'Array<OrganizationUser>'
|
|
1197
1057
|
|
|
1198
1058
|
# auth_names
|
|
1199
1059
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1200
1060
|
|
|
1201
1061
|
new_options = opts.merge(
|
|
1202
|
-
:operation => :"OrganizationsApi.
|
|
1062
|
+
:operation => :"OrganizationsApi.list_organization_members",
|
|
1203
1063
|
:header_params => header_params,
|
|
1204
1064
|
:query_params => query_params,
|
|
1205
1065
|
:form_params => form_params,
|
|
@@ -1208,250 +1068,15 @@ module DaytonaApiClient
|
|
|
1208
1068
|
:return_type => return_type
|
|
1209
1069
|
)
|
|
1210
1070
|
|
|
1211
|
-
data, status_code, headers = @api_client.call_api(:
|
|
1071
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1212
1072
|
if @api_client.config.debugging
|
|
1213
|
-
@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}"
|
|
1214
1074
|
end
|
|
1215
1075
|
return data, status_code, headers
|
|
1216
1076
|
end
|
|
1217
1077
|
|
|
1218
|
-
# List
|
|
1219
|
-
# @param [
|
|
1220
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1221
|
-
# @return [Array<Region>]
|
|
1222
|
-
def list_available_regions(opts = {})
|
|
1223
|
-
data, _status_code, _headers = list_available_regions_with_http_info(opts)
|
|
1224
|
-
data
|
|
1225
|
-
end
|
|
1226
|
-
|
|
1227
|
-
# List all available regions for the organization
|
|
1228
|
-
# @param [Hash] opts the optional parameters
|
|
1229
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1230
|
-
# @return [Array<(Array<Region>, Integer, Hash)>] Array<Region> data, response status code and response headers
|
|
1231
|
-
def list_available_regions_with_http_info(opts = {})
|
|
1232
|
-
if @api_client.config.debugging
|
|
1233
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_available_regions ...'
|
|
1234
|
-
end
|
|
1235
|
-
# resource path
|
|
1236
|
-
local_var_path = '/regions'
|
|
1237
|
-
|
|
1238
|
-
# query parameters
|
|
1239
|
-
query_params = opts[:query_params] || {}
|
|
1240
|
-
|
|
1241
|
-
# header parameters
|
|
1242
|
-
header_params = opts[:header_params] || {}
|
|
1243
|
-
# HTTP header 'Accept' (if needed)
|
|
1244
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1245
|
-
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
1246
|
-
|
|
1247
|
-
# form parameters
|
|
1248
|
-
form_params = opts[:form_params] || {}
|
|
1249
|
-
|
|
1250
|
-
# http body (model)
|
|
1251
|
-
post_body = opts[:debug_body]
|
|
1252
|
-
|
|
1253
|
-
# return_type
|
|
1254
|
-
return_type = opts[:debug_return_type] || 'Array<Region>'
|
|
1255
|
-
|
|
1256
|
-
# auth_names
|
|
1257
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1258
|
-
|
|
1259
|
-
new_options = opts.merge(
|
|
1260
|
-
:operation => :"OrganizationsApi.list_available_regions",
|
|
1261
|
-
:header_params => header_params,
|
|
1262
|
-
:query_params => query_params,
|
|
1263
|
-
:form_params => form_params,
|
|
1264
|
-
:body => post_body,
|
|
1265
|
-
:auth_names => auth_names,
|
|
1266
|
-
:return_type => return_type
|
|
1267
|
-
)
|
|
1268
|
-
|
|
1269
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1270
|
-
if @api_client.config.debugging
|
|
1271
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#list_available_regions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1272
|
-
end
|
|
1273
|
-
return data, status_code, headers
|
|
1274
|
-
end
|
|
1275
|
-
|
|
1276
|
-
# List pending organization invitations
|
|
1277
|
-
# @param organization_id [String] Organization ID
|
|
1278
|
-
# @param [Hash] opts the optional parameters
|
|
1279
|
-
# @return [Array<OrganizationInvitation>]
|
|
1280
|
-
def list_organization_invitations(organization_id, opts = {})
|
|
1281
|
-
data, _status_code, _headers = list_organization_invitations_with_http_info(organization_id, opts)
|
|
1282
|
-
data
|
|
1283
|
-
end
|
|
1284
|
-
|
|
1285
|
-
# List pending organization invitations
|
|
1286
|
-
# @param organization_id [String] Organization ID
|
|
1287
|
-
# @param [Hash] opts the optional parameters
|
|
1288
|
-
# @return [Array<(Array<OrganizationInvitation>, Integer, Hash)>] Array<OrganizationInvitation> data, response status code and response headers
|
|
1289
|
-
def list_organization_invitations_with_http_info(organization_id, opts = {})
|
|
1290
|
-
if @api_client.config.debugging
|
|
1291
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_invitations ...'
|
|
1292
|
-
end
|
|
1293
|
-
# verify the required parameter 'organization_id' is set
|
|
1294
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
1295
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.list_organization_invitations"
|
|
1296
|
-
end
|
|
1297
|
-
# resource path
|
|
1298
|
-
local_var_path = '/organizations/{organizationId}/invitations'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
1299
|
-
|
|
1300
|
-
# query parameters
|
|
1301
|
-
query_params = opts[:query_params] || {}
|
|
1302
|
-
|
|
1303
|
-
# header parameters
|
|
1304
|
-
header_params = opts[:header_params] || {}
|
|
1305
|
-
# HTTP header 'Accept' (if needed)
|
|
1306
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1307
|
-
|
|
1308
|
-
# form parameters
|
|
1309
|
-
form_params = opts[:form_params] || {}
|
|
1310
|
-
|
|
1311
|
-
# http body (model)
|
|
1312
|
-
post_body = opts[:debug_body]
|
|
1313
|
-
|
|
1314
|
-
# return_type
|
|
1315
|
-
return_type = opts[:debug_return_type] || 'Array<OrganizationInvitation>'
|
|
1316
|
-
|
|
1317
|
-
# auth_names
|
|
1318
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1319
|
-
|
|
1320
|
-
new_options = opts.merge(
|
|
1321
|
-
:operation => :"OrganizationsApi.list_organization_invitations",
|
|
1322
|
-
:header_params => header_params,
|
|
1323
|
-
:query_params => query_params,
|
|
1324
|
-
:form_params => form_params,
|
|
1325
|
-
:body => post_body,
|
|
1326
|
-
:auth_names => auth_names,
|
|
1327
|
-
:return_type => return_type
|
|
1328
|
-
)
|
|
1329
|
-
|
|
1330
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1331
|
-
if @api_client.config.debugging
|
|
1332
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#list_organization_invitations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1333
|
-
end
|
|
1334
|
-
return data, status_code, headers
|
|
1335
|
-
end
|
|
1336
|
-
|
|
1337
|
-
# List organization invitations for authenticated user
|
|
1338
|
-
# @param [Hash] opts the optional parameters
|
|
1339
|
-
# @return [Array<OrganizationInvitation>]
|
|
1340
|
-
def list_organization_invitations_for_authenticated_user(opts = {})
|
|
1341
|
-
data, _status_code, _headers = list_organization_invitations_for_authenticated_user_with_http_info(opts)
|
|
1342
|
-
data
|
|
1343
|
-
end
|
|
1344
|
-
|
|
1345
|
-
# List organization invitations for authenticated user
|
|
1346
|
-
# @param [Hash] opts the optional parameters
|
|
1347
|
-
# @return [Array<(Array<OrganizationInvitation>, Integer, Hash)>] Array<OrganizationInvitation> data, response status code and response headers
|
|
1348
|
-
def list_organization_invitations_for_authenticated_user_with_http_info(opts = {})
|
|
1349
|
-
if @api_client.config.debugging
|
|
1350
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_invitations_for_authenticated_user ...'
|
|
1351
|
-
end
|
|
1352
|
-
# resource path
|
|
1353
|
-
local_var_path = '/organizations/invitations'
|
|
1354
|
-
|
|
1355
|
-
# query parameters
|
|
1356
|
-
query_params = opts[:query_params] || {}
|
|
1357
|
-
|
|
1358
|
-
# header parameters
|
|
1359
|
-
header_params = opts[:header_params] || {}
|
|
1360
|
-
# HTTP header 'Accept' (if needed)
|
|
1361
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1362
|
-
|
|
1363
|
-
# form parameters
|
|
1364
|
-
form_params = opts[:form_params] || {}
|
|
1365
|
-
|
|
1366
|
-
# http body (model)
|
|
1367
|
-
post_body = opts[:debug_body]
|
|
1368
|
-
|
|
1369
|
-
# return_type
|
|
1370
|
-
return_type = opts[:debug_return_type] || 'Array<OrganizationInvitation>'
|
|
1371
|
-
|
|
1372
|
-
# auth_names
|
|
1373
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1374
|
-
|
|
1375
|
-
new_options = opts.merge(
|
|
1376
|
-
:operation => :"OrganizationsApi.list_organization_invitations_for_authenticated_user",
|
|
1377
|
-
:header_params => header_params,
|
|
1378
|
-
:query_params => query_params,
|
|
1379
|
-
:form_params => form_params,
|
|
1380
|
-
:body => post_body,
|
|
1381
|
-
:auth_names => auth_names,
|
|
1382
|
-
:return_type => return_type
|
|
1383
|
-
)
|
|
1384
|
-
|
|
1385
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1386
|
-
if @api_client.config.debugging
|
|
1387
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#list_organization_invitations_for_authenticated_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1388
|
-
end
|
|
1389
|
-
return data, status_code, headers
|
|
1390
|
-
end
|
|
1391
|
-
|
|
1392
|
-
# List organization members
|
|
1393
|
-
# @param organization_id [String] Organization ID
|
|
1394
|
-
# @param [Hash] opts the optional parameters
|
|
1395
|
-
# @return [Array<OrganizationUser>]
|
|
1396
|
-
def list_organization_members(organization_id, opts = {})
|
|
1397
|
-
data, _status_code, _headers = list_organization_members_with_http_info(organization_id, opts)
|
|
1398
|
-
data
|
|
1399
|
-
end
|
|
1400
|
-
|
|
1401
|
-
# List organization members
|
|
1402
|
-
# @param organization_id [String] Organization ID
|
|
1403
|
-
# @param [Hash] opts the optional parameters
|
|
1404
|
-
# @return [Array<(Array<OrganizationUser>, Integer, Hash)>] Array<OrganizationUser> data, response status code and response headers
|
|
1405
|
-
def list_organization_members_with_http_info(organization_id, opts = {})
|
|
1406
|
-
if @api_client.config.debugging
|
|
1407
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_members ...'
|
|
1408
|
-
end
|
|
1409
|
-
# verify the required parameter 'organization_id' is set
|
|
1410
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
1411
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.list_organization_members"
|
|
1412
|
-
end
|
|
1413
|
-
# resource path
|
|
1414
|
-
local_var_path = '/organizations/{organizationId}/users'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
1415
|
-
|
|
1416
|
-
# query parameters
|
|
1417
|
-
query_params = opts[:query_params] || {}
|
|
1418
|
-
|
|
1419
|
-
# header parameters
|
|
1420
|
-
header_params = opts[:header_params] || {}
|
|
1421
|
-
# HTTP header 'Accept' (if needed)
|
|
1422
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1423
|
-
|
|
1424
|
-
# form parameters
|
|
1425
|
-
form_params = opts[:form_params] || {}
|
|
1426
|
-
|
|
1427
|
-
# http body (model)
|
|
1428
|
-
post_body = opts[:debug_body]
|
|
1429
|
-
|
|
1430
|
-
# return_type
|
|
1431
|
-
return_type = opts[:debug_return_type] || 'Array<OrganizationUser>'
|
|
1432
|
-
|
|
1433
|
-
# auth_names
|
|
1434
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1435
|
-
|
|
1436
|
-
new_options = opts.merge(
|
|
1437
|
-
:operation => :"OrganizationsApi.list_organization_members",
|
|
1438
|
-
:header_params => header_params,
|
|
1439
|
-
:query_params => query_params,
|
|
1440
|
-
:form_params => form_params,
|
|
1441
|
-
:body => post_body,
|
|
1442
|
-
:auth_names => auth_names,
|
|
1443
|
-
:return_type => return_type
|
|
1444
|
-
)
|
|
1445
|
-
|
|
1446
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1447
|
-
if @api_client.config.debugging
|
|
1448
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#list_organization_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1449
|
-
end
|
|
1450
|
-
return data, status_code, headers
|
|
1451
|
-
end
|
|
1452
|
-
|
|
1453
|
-
# List organization roles
|
|
1454
|
-
# @param organization_id [String] Organization ID
|
|
1078
|
+
# List organization roles
|
|
1079
|
+
# @param organization_id [String] Organization ID
|
|
1455
1080
|
# @param [Hash] opts the optional parameters
|
|
1456
1081
|
# @return [Array<OrganizationRole>]
|
|
1457
1082
|
def list_organization_roles(organization_id, opts = {})
|
|
@@ -1472,253 +1097,7 @@ module DaytonaApiClient
|
|
|
1472
1097
|
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.list_organization_roles"
|
|
1473
1098
|
end
|
|
1474
1099
|
# resource path
|
|
1475
|
-
local_var_path = '/organizations/{organizationId}/roles'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
1476
|
-
|
|
1477
|
-
# query parameters
|
|
1478
|
-
query_params = opts[:query_params] || {}
|
|
1479
|
-
|
|
1480
|
-
# header parameters
|
|
1481
|
-
header_params = opts[:header_params] || {}
|
|
1482
|
-
# HTTP header 'Accept' (if needed)
|
|
1483
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1484
|
-
|
|
1485
|
-
# form parameters
|
|
1486
|
-
form_params = opts[:form_params] || {}
|
|
1487
|
-
|
|
1488
|
-
# http body (model)
|
|
1489
|
-
post_body = opts[:debug_body]
|
|
1490
|
-
|
|
1491
|
-
# return_type
|
|
1492
|
-
return_type = opts[:debug_return_type] || 'Array<OrganizationRole>'
|
|
1493
|
-
|
|
1494
|
-
# auth_names
|
|
1495
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1496
|
-
|
|
1497
|
-
new_options = opts.merge(
|
|
1498
|
-
:operation => :"OrganizationsApi.list_organization_roles",
|
|
1499
|
-
:header_params => header_params,
|
|
1500
|
-
:query_params => query_params,
|
|
1501
|
-
:form_params => form_params,
|
|
1502
|
-
:body => post_body,
|
|
1503
|
-
:auth_names => auth_names,
|
|
1504
|
-
:return_type => return_type
|
|
1505
|
-
)
|
|
1506
|
-
|
|
1507
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1508
|
-
if @api_client.config.debugging
|
|
1509
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#list_organization_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1510
|
-
end
|
|
1511
|
-
return data, status_code, headers
|
|
1512
|
-
end
|
|
1513
|
-
|
|
1514
|
-
# List organizations
|
|
1515
|
-
# @param [Hash] opts the optional parameters
|
|
1516
|
-
# @return [Array<Organization>]
|
|
1517
|
-
def list_organizations(opts = {})
|
|
1518
|
-
data, _status_code, _headers = list_organizations_with_http_info(opts)
|
|
1519
|
-
data
|
|
1520
|
-
end
|
|
1521
|
-
|
|
1522
|
-
# List organizations
|
|
1523
|
-
# @param [Hash] opts the optional parameters
|
|
1524
|
-
# @return [Array<(Array<Organization>, Integer, Hash)>] Array<Organization> data, response status code and response headers
|
|
1525
|
-
def list_organizations_with_http_info(opts = {})
|
|
1526
|
-
if @api_client.config.debugging
|
|
1527
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organizations ...'
|
|
1528
|
-
end
|
|
1529
|
-
# resource path
|
|
1530
|
-
local_var_path = '/organizations'
|
|
1531
|
-
|
|
1532
|
-
# query parameters
|
|
1533
|
-
query_params = opts[:query_params] || {}
|
|
1534
|
-
|
|
1535
|
-
# header parameters
|
|
1536
|
-
header_params = opts[:header_params] || {}
|
|
1537
|
-
# HTTP header 'Accept' (if needed)
|
|
1538
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1539
|
-
|
|
1540
|
-
# form parameters
|
|
1541
|
-
form_params = opts[:form_params] || {}
|
|
1542
|
-
|
|
1543
|
-
# http body (model)
|
|
1544
|
-
post_body = opts[:debug_body]
|
|
1545
|
-
|
|
1546
|
-
# return_type
|
|
1547
|
-
return_type = opts[:debug_return_type] || 'Array<Organization>'
|
|
1548
|
-
|
|
1549
|
-
# auth_names
|
|
1550
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1551
|
-
|
|
1552
|
-
new_options = opts.merge(
|
|
1553
|
-
:operation => :"OrganizationsApi.list_organizations",
|
|
1554
|
-
:header_params => header_params,
|
|
1555
|
-
:query_params => query_params,
|
|
1556
|
-
:form_params => form_params,
|
|
1557
|
-
:body => post_body,
|
|
1558
|
-
:auth_names => auth_names,
|
|
1559
|
-
:return_type => return_type
|
|
1560
|
-
)
|
|
1561
|
-
|
|
1562
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1563
|
-
if @api_client.config.debugging
|
|
1564
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#list_organizations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1565
|
-
end
|
|
1566
|
-
return data, status_code, headers
|
|
1567
|
-
end
|
|
1568
|
-
|
|
1569
|
-
# Regenerate proxy API key for a region
|
|
1570
|
-
# @param id [String] Region ID
|
|
1571
|
-
# @param [Hash] opts the optional parameters
|
|
1572
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1573
|
-
# @return [RegenerateApiKeyResponse]
|
|
1574
|
-
def regenerate_proxy_api_key(id, opts = {})
|
|
1575
|
-
data, _status_code, _headers = regenerate_proxy_api_key_with_http_info(id, opts)
|
|
1576
|
-
data
|
|
1577
|
-
end
|
|
1578
|
-
|
|
1579
|
-
# Regenerate proxy API key for a region
|
|
1580
|
-
# @param id [String] Region ID
|
|
1581
|
-
# @param [Hash] opts the optional parameters
|
|
1582
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1583
|
-
# @return [Array<(RegenerateApiKeyResponse, Integer, Hash)>] RegenerateApiKeyResponse data, response status code and response headers
|
|
1584
|
-
def regenerate_proxy_api_key_with_http_info(id, opts = {})
|
|
1585
|
-
if @api_client.config.debugging
|
|
1586
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.regenerate_proxy_api_key ...'
|
|
1587
|
-
end
|
|
1588
|
-
# verify the required parameter 'id' is set
|
|
1589
|
-
if @api_client.config.client_side_validation && id.nil?
|
|
1590
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.regenerate_proxy_api_key"
|
|
1591
|
-
end
|
|
1592
|
-
# resource path
|
|
1593
|
-
local_var_path = '/regions/{id}/regenerate-proxy-api-key'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1594
|
-
|
|
1595
|
-
# query parameters
|
|
1596
|
-
query_params = opts[:query_params] || {}
|
|
1597
|
-
|
|
1598
|
-
# header parameters
|
|
1599
|
-
header_params = opts[:header_params] || {}
|
|
1600
|
-
# HTTP header 'Accept' (if needed)
|
|
1601
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1602
|
-
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
1603
|
-
|
|
1604
|
-
# form parameters
|
|
1605
|
-
form_params = opts[:form_params] || {}
|
|
1606
|
-
|
|
1607
|
-
# http body (model)
|
|
1608
|
-
post_body = opts[:debug_body]
|
|
1609
|
-
|
|
1610
|
-
# return_type
|
|
1611
|
-
return_type = opts[:debug_return_type] || 'RegenerateApiKeyResponse'
|
|
1612
|
-
|
|
1613
|
-
# auth_names
|
|
1614
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1615
|
-
|
|
1616
|
-
new_options = opts.merge(
|
|
1617
|
-
:operation => :"OrganizationsApi.regenerate_proxy_api_key",
|
|
1618
|
-
:header_params => header_params,
|
|
1619
|
-
:query_params => query_params,
|
|
1620
|
-
:form_params => form_params,
|
|
1621
|
-
:body => post_body,
|
|
1622
|
-
:auth_names => auth_names,
|
|
1623
|
-
:return_type => return_type
|
|
1624
|
-
)
|
|
1625
|
-
|
|
1626
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1627
|
-
if @api_client.config.debugging
|
|
1628
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#regenerate_proxy_api_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1629
|
-
end
|
|
1630
|
-
return data, status_code, headers
|
|
1631
|
-
end
|
|
1632
|
-
|
|
1633
|
-
# Regenerate snapshot manager credentials for a region
|
|
1634
|
-
# @param id [String] Region ID
|
|
1635
|
-
# @param [Hash] opts the optional parameters
|
|
1636
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1637
|
-
# @return [SnapshotManagerCredentials]
|
|
1638
|
-
def regenerate_snapshot_manager_credentials(id, opts = {})
|
|
1639
|
-
data, _status_code, _headers = regenerate_snapshot_manager_credentials_with_http_info(id, opts)
|
|
1640
|
-
data
|
|
1641
|
-
end
|
|
1642
|
-
|
|
1643
|
-
# Regenerate snapshot manager credentials for a region
|
|
1644
|
-
# @param id [String] Region ID
|
|
1645
|
-
# @param [Hash] opts the optional parameters
|
|
1646
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1647
|
-
# @return [Array<(SnapshotManagerCredentials, Integer, Hash)>] SnapshotManagerCredentials data, response status code and response headers
|
|
1648
|
-
def regenerate_snapshot_manager_credentials_with_http_info(id, opts = {})
|
|
1649
|
-
if @api_client.config.debugging
|
|
1650
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.regenerate_snapshot_manager_credentials ...'
|
|
1651
|
-
end
|
|
1652
|
-
# verify the required parameter 'id' is set
|
|
1653
|
-
if @api_client.config.client_side_validation && id.nil?
|
|
1654
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.regenerate_snapshot_manager_credentials"
|
|
1655
|
-
end
|
|
1656
|
-
# resource path
|
|
1657
|
-
local_var_path = '/regions/{id}/regenerate-snapshot-manager-credentials'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1658
|
-
|
|
1659
|
-
# query parameters
|
|
1660
|
-
query_params = opts[:query_params] || {}
|
|
1661
|
-
|
|
1662
|
-
# header parameters
|
|
1663
|
-
header_params = opts[:header_params] || {}
|
|
1664
|
-
# HTTP header 'Accept' (if needed)
|
|
1665
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1666
|
-
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
1667
|
-
|
|
1668
|
-
# form parameters
|
|
1669
|
-
form_params = opts[:form_params] || {}
|
|
1670
|
-
|
|
1671
|
-
# http body (model)
|
|
1672
|
-
post_body = opts[:debug_body]
|
|
1673
|
-
|
|
1674
|
-
# return_type
|
|
1675
|
-
return_type = opts[:debug_return_type] || 'SnapshotManagerCredentials'
|
|
1676
|
-
|
|
1677
|
-
# auth_names
|
|
1678
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1679
|
-
|
|
1680
|
-
new_options = opts.merge(
|
|
1681
|
-
:operation => :"OrganizationsApi.regenerate_snapshot_manager_credentials",
|
|
1682
|
-
:header_params => header_params,
|
|
1683
|
-
:query_params => query_params,
|
|
1684
|
-
:form_params => form_params,
|
|
1685
|
-
:body => post_body,
|
|
1686
|
-
:auth_names => auth_names,
|
|
1687
|
-
:return_type => return_type
|
|
1688
|
-
)
|
|
1689
|
-
|
|
1690
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1691
|
-
if @api_client.config.debugging
|
|
1692
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#regenerate_snapshot_manager_credentials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1693
|
-
end
|
|
1694
|
-
return data, status_code, headers
|
|
1695
|
-
end
|
|
1696
|
-
|
|
1697
|
-
# Regenerate SSH gateway API key for a region
|
|
1698
|
-
# @param id [String] Region ID
|
|
1699
|
-
# @param [Hash] opts the optional parameters
|
|
1700
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1701
|
-
# @return [RegenerateApiKeyResponse]
|
|
1702
|
-
def regenerate_ssh_gateway_api_key(id, opts = {})
|
|
1703
|
-
data, _status_code, _headers = regenerate_ssh_gateway_api_key_with_http_info(id, opts)
|
|
1704
|
-
data
|
|
1705
|
-
end
|
|
1706
|
-
|
|
1707
|
-
# Regenerate SSH gateway API key for a region
|
|
1708
|
-
# @param id [String] Region ID
|
|
1709
|
-
# @param [Hash] opts the optional parameters
|
|
1710
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1711
|
-
# @return [Array<(RegenerateApiKeyResponse, Integer, Hash)>] RegenerateApiKeyResponse data, response status code and response headers
|
|
1712
|
-
def regenerate_ssh_gateway_api_key_with_http_info(id, opts = {})
|
|
1713
|
-
if @api_client.config.debugging
|
|
1714
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.regenerate_ssh_gateway_api_key ...'
|
|
1715
|
-
end
|
|
1716
|
-
# verify the required parameter 'id' is set
|
|
1717
|
-
if @api_client.config.client_side_validation && id.nil?
|
|
1718
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.regenerate_ssh_gateway_api_key"
|
|
1719
|
-
end
|
|
1720
|
-
# resource path
|
|
1721
|
-
local_var_path = '/regions/{id}/regenerate-ssh-gateway-api-key'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1100
|
+
local_var_path = '/organizations/{organizationId}/roles'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
1722
1101
|
|
|
1723
1102
|
# query parameters
|
|
1724
1103
|
query_params = opts[:query_params] || {}
|
|
@@ -1727,7 +1106,6 @@ module DaytonaApiClient
|
|
|
1727
1106
|
header_params = opts[:header_params] || {}
|
|
1728
1107
|
# HTTP header 'Accept' (if needed)
|
|
1729
1108
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1730
|
-
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
1731
1109
|
|
|
1732
1110
|
# form parameters
|
|
1733
1111
|
form_params = opts[:form_params] || {}
|
|
@@ -1736,13 +1114,13 @@ module DaytonaApiClient
|
|
|
1736
1114
|
post_body = opts[:debug_body]
|
|
1737
1115
|
|
|
1738
1116
|
# return_type
|
|
1739
|
-
return_type = opts[:debug_return_type] || '
|
|
1117
|
+
return_type = opts[:debug_return_type] || 'Array<OrganizationRole>'
|
|
1740
1118
|
|
|
1741
1119
|
# auth_names
|
|
1742
1120
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1743
1121
|
|
|
1744
1122
|
new_options = opts.merge(
|
|
1745
|
-
:operation => :"OrganizationsApi.
|
|
1123
|
+
:operation => :"OrganizationsApi.list_organization_roles",
|
|
1746
1124
|
:header_params => header_params,
|
|
1747
1125
|
:query_params => query_params,
|
|
1748
1126
|
:form_params => form_params,
|
|
@@ -1751,68 +1129,53 @@ module DaytonaApiClient
|
|
|
1751
1129
|
:return_type => return_type
|
|
1752
1130
|
)
|
|
1753
1131
|
|
|
1754
|
-
data, status_code, headers = @api_client.call_api(:
|
|
1132
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1755
1133
|
if @api_client.config.debugging
|
|
1756
|
-
@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}"
|
|
1757
1135
|
end
|
|
1758
1136
|
return data, status_code, headers
|
|
1759
1137
|
end
|
|
1760
1138
|
|
|
1761
|
-
#
|
|
1762
|
-
# @param organization_id [String] Organization ID
|
|
1763
|
-
# @param update_organization_default_region [UpdateOrganizationDefaultRegion]
|
|
1139
|
+
# List organizations
|
|
1764
1140
|
# @param [Hash] opts the optional parameters
|
|
1765
|
-
# @return [
|
|
1766
|
-
def
|
|
1767
|
-
|
|
1768
|
-
|
|
1141
|
+
# @return [Array<Organization>]
|
|
1142
|
+
def list_organizations(opts = {})
|
|
1143
|
+
data, _status_code, _headers = list_organizations_with_http_info(opts)
|
|
1144
|
+
data
|
|
1769
1145
|
end
|
|
1770
1146
|
|
|
1771
|
-
#
|
|
1772
|
-
# @param organization_id [String] Organization ID
|
|
1773
|
-
# @param update_organization_default_region [UpdateOrganizationDefaultRegion]
|
|
1147
|
+
# List organizations
|
|
1774
1148
|
# @param [Hash] opts the optional parameters
|
|
1775
|
-
# @return [Array<(
|
|
1776
|
-
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 = {})
|
|
1777
1151
|
if @api_client.config.debugging
|
|
1778
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
|
1779
|
-
end
|
|
1780
|
-
# verify the required parameter 'organization_id' is set
|
|
1781
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
1782
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.set_organization_default_region"
|
|
1783
|
-
end
|
|
1784
|
-
# verify the required parameter 'update_organization_default_region' is set
|
|
1785
|
-
if @api_client.config.client_side_validation && update_organization_default_region.nil?
|
|
1786
|
-
fail ArgumentError, "Missing the required parameter 'update_organization_default_region' when calling OrganizationsApi.set_organization_default_region"
|
|
1152
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organizations ...'
|
|
1787
1153
|
end
|
|
1788
1154
|
# resource path
|
|
1789
|
-
local_var_path = '/organizations
|
|
1155
|
+
local_var_path = '/organizations'
|
|
1790
1156
|
|
|
1791
1157
|
# query parameters
|
|
1792
1158
|
query_params = opts[:query_params] || {}
|
|
1793
1159
|
|
|
1794
1160
|
# header parameters
|
|
1795
1161
|
header_params = opts[:header_params] || {}
|
|
1796
|
-
# HTTP header '
|
|
1797
|
-
|
|
1798
|
-
if !content_type.nil?
|
|
1799
|
-
header_params['Content-Type'] = content_type
|
|
1800
|
-
end
|
|
1162
|
+
# HTTP header 'Accept' (if needed)
|
|
1163
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1801
1164
|
|
|
1802
1165
|
# form parameters
|
|
1803
1166
|
form_params = opts[:form_params] || {}
|
|
1804
1167
|
|
|
1805
1168
|
# http body (model)
|
|
1806
|
-
post_body = opts[:debug_body]
|
|
1169
|
+
post_body = opts[:debug_body]
|
|
1807
1170
|
|
|
1808
1171
|
# return_type
|
|
1809
|
-
return_type = opts[:debug_return_type]
|
|
1172
|
+
return_type = opts[:debug_return_type] || 'Array<Organization>'
|
|
1810
1173
|
|
|
1811
1174
|
# auth_names
|
|
1812
1175
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1813
1176
|
|
|
1814
1177
|
new_options = opts.merge(
|
|
1815
|
-
:operation => :"OrganizationsApi.
|
|
1178
|
+
:operation => :"OrganizationsApi.list_organizations",
|
|
1816
1179
|
:header_params => header_params,
|
|
1817
1180
|
:query_params => query_params,
|
|
1818
1181
|
:form_params => form_params,
|
|
@@ -1821,9 +1184,9 @@ module DaytonaApiClient
|
|
|
1821
1184
|
:return_type => return_type
|
|
1822
1185
|
)
|
|
1823
1186
|
|
|
1824
|
-
data, status_code, headers = @api_client.call_api(:
|
|
1187
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1825
1188
|
if @api_client.config.debugging
|
|
1826
|
-
@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}"
|
|
1827
1190
|
end
|
|
1828
1191
|
return data, status_code, headers
|
|
1829
1192
|
end
|
|
@@ -1862,7 +1225,7 @@ module DaytonaApiClient
|
|
|
1862
1225
|
# HTTP header 'Content-Type'
|
|
1863
1226
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1864
1227
|
if !content_type.nil?
|
|
1865
|
-
|
|
1228
|
+
header_params['Content-Type'] = content_type
|
|
1866
1229
|
end
|
|
1867
1230
|
|
|
1868
1231
|
# form parameters
|
|
@@ -1999,7 +1362,7 @@ module DaytonaApiClient
|
|
|
1999
1362
|
# HTTP header 'Content-Type'
|
|
2000
1363
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2001
1364
|
if !content_type.nil?
|
|
2002
|
-
|
|
1365
|
+
header_params['Content-Type'] = content_type
|
|
2003
1366
|
end
|
|
2004
1367
|
|
|
2005
1368
|
# form parameters
|
|
@@ -2031,72 +1394,6 @@ module DaytonaApiClient
|
|
|
2031
1394
|
return data, status_code, headers
|
|
2032
1395
|
end
|
|
2033
1396
|
|
|
2034
|
-
# Update experimental configuration
|
|
2035
|
-
# @param organization_id [String] Organization ID
|
|
2036
|
-
# @param [Hash] opts the optional parameters
|
|
2037
|
-
# @option opts [Hash<String, Object>] :request_body Experimental configuration as a JSON object. Set to null to clear the configuration.
|
|
2038
|
-
# @return [nil]
|
|
2039
|
-
def update_experimental_config(organization_id, opts = {})
|
|
2040
|
-
update_experimental_config_with_http_info(organization_id, opts)
|
|
2041
|
-
nil
|
|
2042
|
-
end
|
|
2043
|
-
|
|
2044
|
-
# Update experimental configuration
|
|
2045
|
-
# @param organization_id [String] Organization ID
|
|
2046
|
-
# @param [Hash] opts the optional parameters
|
|
2047
|
-
# @option opts [Hash<String, Object>] :request_body Experimental configuration as a JSON object. Set to null to clear the configuration.
|
|
2048
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
2049
|
-
def update_experimental_config_with_http_info(organization_id, opts = {})
|
|
2050
|
-
if @api_client.config.debugging
|
|
2051
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_experimental_config ...'
|
|
2052
|
-
end
|
|
2053
|
-
# verify the required parameter 'organization_id' is set
|
|
2054
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
2055
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.update_experimental_config"
|
|
2056
|
-
end
|
|
2057
|
-
# resource path
|
|
2058
|
-
local_var_path = '/organizations/{organizationId}/experimental-config'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
2059
|
-
|
|
2060
|
-
# query parameters
|
|
2061
|
-
query_params = opts[:query_params] || {}
|
|
2062
|
-
|
|
2063
|
-
# header parameters
|
|
2064
|
-
header_params = opts[:header_params] || {}
|
|
2065
|
-
# HTTP header 'Content-Type'
|
|
2066
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2067
|
-
if !content_type.nil?
|
|
2068
|
-
header_params['Content-Type'] = content_type
|
|
2069
|
-
end
|
|
2070
|
-
|
|
2071
|
-
# form parameters
|
|
2072
|
-
form_params = opts[:form_params] || {}
|
|
2073
|
-
|
|
2074
|
-
# http body (model)
|
|
2075
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'request_body'])
|
|
2076
|
-
|
|
2077
|
-
# return_type
|
|
2078
|
-
return_type = opts[:debug_return_type]
|
|
2079
|
-
|
|
2080
|
-
# auth_names
|
|
2081
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2082
|
-
|
|
2083
|
-
new_options = opts.merge(
|
|
2084
|
-
:operation => :"OrganizationsApi.update_experimental_config",
|
|
2085
|
-
:header_params => header_params,
|
|
2086
|
-
:query_params => query_params,
|
|
2087
|
-
:form_params => form_params,
|
|
2088
|
-
:body => post_body,
|
|
2089
|
-
:auth_names => auth_names,
|
|
2090
|
-
:return_type => return_type
|
|
2091
|
-
)
|
|
2092
|
-
|
|
2093
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2094
|
-
if @api_client.config.debugging
|
|
2095
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#update_experimental_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2096
|
-
end
|
|
2097
|
-
return data, status_code, headers
|
|
2098
|
-
end
|
|
2099
|
-
|
|
2100
1397
|
# Update organization invitation
|
|
2101
1398
|
# @param organization_id [String] Organization ID
|
|
2102
1399
|
# @param invitation_id [String] Invitation ID
|
|
@@ -2143,7 +1440,7 @@ module DaytonaApiClient
|
|
|
2143
1440
|
# HTTP header 'Content-Type'
|
|
2144
1441
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2145
1442
|
if !content_type.nil?
|
|
2146
|
-
|
|
1443
|
+
header_params['Content-Type'] = content_type
|
|
2147
1444
|
end
|
|
2148
1445
|
|
|
2149
1446
|
# form parameters
|
|
@@ -2175,91 +1472,21 @@ module DaytonaApiClient
|
|
|
2175
1472
|
return data, status_code, headers
|
|
2176
1473
|
end
|
|
2177
1474
|
|
|
2178
|
-
# Update organization OpenTelemetry configuration
|
|
2179
|
-
# @param organization_id [String] Organization ID
|
|
2180
|
-
# @param otel_config [OtelConfig]
|
|
2181
|
-
# @param [Hash] opts the optional parameters
|
|
2182
|
-
# @return [nil]
|
|
2183
|
-
def update_organization_otel_config(organization_id, otel_config, opts = {})
|
|
2184
|
-
update_organization_otel_config_with_http_info(organization_id, otel_config, opts)
|
|
2185
|
-
nil
|
|
2186
|
-
end
|
|
2187
|
-
|
|
2188
|
-
# Update organization OpenTelemetry configuration
|
|
2189
|
-
# @param organization_id [String] Organization ID
|
|
2190
|
-
# @param otel_config [OtelConfig]
|
|
2191
|
-
# @param [Hash] opts the optional parameters
|
|
2192
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
2193
|
-
def update_organization_otel_config_with_http_info(organization_id, otel_config, opts = {})
|
|
2194
|
-
if @api_client.config.debugging
|
|
2195
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization_otel_config ...'
|
|
2196
|
-
end
|
|
2197
|
-
# verify the required parameter 'organization_id' is set
|
|
2198
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
2199
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.update_organization_otel_config"
|
|
2200
|
-
end
|
|
2201
|
-
# verify the required parameter 'otel_config' is set
|
|
2202
|
-
if @api_client.config.client_side_validation && otel_config.nil?
|
|
2203
|
-
fail ArgumentError, "Missing the required parameter 'otel_config' when calling OrganizationsApi.update_organization_otel_config"
|
|
2204
|
-
end
|
|
2205
|
-
# resource path
|
|
2206
|
-
local_var_path = '/organizations/{organizationId}/otel-config'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
2207
|
-
|
|
2208
|
-
# query parameters
|
|
2209
|
-
query_params = opts[:query_params] || {}
|
|
2210
|
-
|
|
2211
|
-
# header parameters
|
|
2212
|
-
header_params = opts[:header_params] || {}
|
|
2213
|
-
# HTTP header 'Content-Type'
|
|
2214
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2215
|
-
if !content_type.nil?
|
|
2216
|
-
header_params['Content-Type'] = content_type
|
|
2217
|
-
end
|
|
2218
|
-
|
|
2219
|
-
# form parameters
|
|
2220
|
-
form_params = opts[:form_params] || {}
|
|
2221
|
-
|
|
2222
|
-
# http body (model)
|
|
2223
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(otel_config)
|
|
2224
|
-
|
|
2225
|
-
# return_type
|
|
2226
|
-
return_type = opts[:debug_return_type]
|
|
2227
|
-
|
|
2228
|
-
# auth_names
|
|
2229
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2230
|
-
|
|
2231
|
-
new_options = opts.merge(
|
|
2232
|
-
:operation => :"OrganizationsApi.update_organization_otel_config",
|
|
2233
|
-
:header_params => header_params,
|
|
2234
|
-
:query_params => query_params,
|
|
2235
|
-
:form_params => form_params,
|
|
2236
|
-
:body => post_body,
|
|
2237
|
-
:auth_names => auth_names,
|
|
2238
|
-
:return_type => return_type
|
|
2239
|
-
)
|
|
2240
|
-
|
|
2241
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
2242
|
-
if @api_client.config.debugging
|
|
2243
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#update_organization_otel_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2244
|
-
end
|
|
2245
|
-
return data, status_code, headers
|
|
2246
|
-
end
|
|
2247
|
-
|
|
2248
1475
|
# Update organization quota
|
|
2249
1476
|
# @param organization_id [String] Organization ID
|
|
2250
1477
|
# @param update_organization_quota [UpdateOrganizationQuota]
|
|
2251
1478
|
# @param [Hash] opts the optional parameters
|
|
2252
|
-
# @return [
|
|
1479
|
+
# @return [Organization]
|
|
2253
1480
|
def update_organization_quota(organization_id, update_organization_quota, opts = {})
|
|
2254
|
-
update_organization_quota_with_http_info(organization_id, update_organization_quota, opts)
|
|
2255
|
-
|
|
1481
|
+
data, _status_code, _headers = update_organization_quota_with_http_info(organization_id, update_organization_quota, opts)
|
|
1482
|
+
data
|
|
2256
1483
|
end
|
|
2257
1484
|
|
|
2258
1485
|
# Update organization quota
|
|
2259
1486
|
# @param organization_id [String] Organization ID
|
|
2260
1487
|
# @param update_organization_quota [UpdateOrganizationQuota]
|
|
2261
1488
|
# @param [Hash] opts the optional parameters
|
|
2262
|
-
# @return [Array<(
|
|
1489
|
+
# @return [Array<(Organization, Integer, Hash)>] Organization data, response status code and response headers
|
|
2263
1490
|
def update_organization_quota_with_http_info(organization_id, update_organization_quota, opts = {})
|
|
2264
1491
|
if @api_client.config.debugging
|
|
2265
1492
|
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization_quota ...'
|
|
@@ -2280,10 +1507,12 @@ module DaytonaApiClient
|
|
|
2280
1507
|
|
|
2281
1508
|
# header parameters
|
|
2282
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']
|
|
2283
1512
|
# HTTP header 'Content-Type'
|
|
2284
1513
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2285
1514
|
if !content_type.nil?
|
|
2286
|
-
|
|
1515
|
+
header_params['Content-Type'] = content_type
|
|
2287
1516
|
end
|
|
2288
1517
|
|
|
2289
1518
|
# form parameters
|
|
@@ -2293,7 +1522,7 @@ module DaytonaApiClient
|
|
|
2293
1522
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_organization_quota)
|
|
2294
1523
|
|
|
2295
1524
|
# return_type
|
|
2296
|
-
return_type = opts[:debug_return_type]
|
|
1525
|
+
return_type = opts[:debug_return_type] || 'Organization'
|
|
2297
1526
|
|
|
2298
1527
|
# auth_names
|
|
2299
1528
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
@@ -2315,82 +1544,6 @@ module DaytonaApiClient
|
|
|
2315
1544
|
return data, status_code, headers
|
|
2316
1545
|
end
|
|
2317
1546
|
|
|
2318
|
-
# Update organization region quota
|
|
2319
|
-
# @param organization_id [String] Organization ID
|
|
2320
|
-
# @param region_id [String] ID of the region where the updated quota will be applied
|
|
2321
|
-
# @param update_organization_region_quota [UpdateOrganizationRegionQuota]
|
|
2322
|
-
# @param [Hash] opts the optional parameters
|
|
2323
|
-
# @return [nil]
|
|
2324
|
-
def update_organization_region_quota(organization_id, region_id, update_organization_region_quota, opts = {})
|
|
2325
|
-
update_organization_region_quota_with_http_info(organization_id, region_id, update_organization_region_quota, opts)
|
|
2326
|
-
nil
|
|
2327
|
-
end
|
|
2328
|
-
|
|
2329
|
-
# Update organization region quota
|
|
2330
|
-
# @param organization_id [String] Organization ID
|
|
2331
|
-
# @param region_id [String] ID of the region where the updated quota will be applied
|
|
2332
|
-
# @param update_organization_region_quota [UpdateOrganizationRegionQuota]
|
|
2333
|
-
# @param [Hash] opts the optional parameters
|
|
2334
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
2335
|
-
def update_organization_region_quota_with_http_info(organization_id, region_id, update_organization_region_quota, opts = {})
|
|
2336
|
-
if @api_client.config.debugging
|
|
2337
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization_region_quota ...'
|
|
2338
|
-
end
|
|
2339
|
-
# verify the required parameter 'organization_id' is set
|
|
2340
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
2341
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.update_organization_region_quota"
|
|
2342
|
-
end
|
|
2343
|
-
# verify the required parameter 'region_id' is set
|
|
2344
|
-
if @api_client.config.client_side_validation && region_id.nil?
|
|
2345
|
-
fail ArgumentError, "Missing the required parameter 'region_id' when calling OrganizationsApi.update_organization_region_quota"
|
|
2346
|
-
end
|
|
2347
|
-
# verify the required parameter 'update_organization_region_quota' is set
|
|
2348
|
-
if @api_client.config.client_side_validation && update_organization_region_quota.nil?
|
|
2349
|
-
fail ArgumentError, "Missing the required parameter 'update_organization_region_quota' when calling OrganizationsApi.update_organization_region_quota"
|
|
2350
|
-
end
|
|
2351
|
-
# resource path
|
|
2352
|
-
local_var_path = '/organizations/{organizationId}/quota/{regionId}'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s)).sub('{' + 'regionId' + '}', CGI.escape(region_id.to_s))
|
|
2353
|
-
|
|
2354
|
-
# query parameters
|
|
2355
|
-
query_params = opts[:query_params] || {}
|
|
2356
|
-
|
|
2357
|
-
# header parameters
|
|
2358
|
-
header_params = opts[:header_params] || {}
|
|
2359
|
-
# HTTP header 'Content-Type'
|
|
2360
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2361
|
-
if !content_type.nil?
|
|
2362
|
-
header_params['Content-Type'] = content_type
|
|
2363
|
-
end
|
|
2364
|
-
|
|
2365
|
-
# form parameters
|
|
2366
|
-
form_params = opts[:form_params] || {}
|
|
2367
|
-
|
|
2368
|
-
# http body (model)
|
|
2369
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_organization_region_quota)
|
|
2370
|
-
|
|
2371
|
-
# return_type
|
|
2372
|
-
return_type = opts[:debug_return_type]
|
|
2373
|
-
|
|
2374
|
-
# auth_names
|
|
2375
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2376
|
-
|
|
2377
|
-
new_options = opts.merge(
|
|
2378
|
-
:operation => :"OrganizationsApi.update_organization_region_quota",
|
|
2379
|
-
:header_params => header_params,
|
|
2380
|
-
:query_params => query_params,
|
|
2381
|
-
:form_params => form_params,
|
|
2382
|
-
:body => post_body,
|
|
2383
|
-
:auth_names => auth_names,
|
|
2384
|
-
:return_type => return_type
|
|
2385
|
-
)
|
|
2386
|
-
|
|
2387
|
-
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
2388
|
-
if @api_client.config.debugging
|
|
2389
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#update_organization_region_quota\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2390
|
-
end
|
|
2391
|
-
return data, status_code, headers
|
|
2392
|
-
end
|
|
2393
|
-
|
|
2394
1547
|
# Update organization role
|
|
2395
1548
|
# @param organization_id [String] Organization ID
|
|
2396
1549
|
# @param role_id [String] Role ID
|
|
@@ -2437,7 +1590,7 @@ module DaytonaApiClient
|
|
|
2437
1590
|
# HTTP header 'Content-Type'
|
|
2438
1591
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2439
1592
|
if !content_type.nil?
|
|
2440
|
-
|
|
1593
|
+
header_params['Content-Type'] = content_type
|
|
2441
1594
|
end
|
|
2442
1595
|
|
|
2443
1596
|
# form parameters
|
|
@@ -2469,79 +1622,6 @@ module DaytonaApiClient
|
|
|
2469
1622
|
return data, status_code, headers
|
|
2470
1623
|
end
|
|
2471
1624
|
|
|
2472
|
-
# Update region configuration
|
|
2473
|
-
# @param id [String] Region ID
|
|
2474
|
-
# @param update_region [UpdateRegion]
|
|
2475
|
-
# @param [Hash] opts the optional parameters
|
|
2476
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
2477
|
-
# @return [nil]
|
|
2478
|
-
def update_region(id, update_region, opts = {})
|
|
2479
|
-
update_region_with_http_info(id, update_region, opts)
|
|
2480
|
-
nil
|
|
2481
|
-
end
|
|
2482
|
-
|
|
2483
|
-
# Update region configuration
|
|
2484
|
-
# @param id [String] Region ID
|
|
2485
|
-
# @param update_region [UpdateRegion]
|
|
2486
|
-
# @param [Hash] opts the optional parameters
|
|
2487
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
2488
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
2489
|
-
def update_region_with_http_info(id, update_region, opts = {})
|
|
2490
|
-
if @api_client.config.debugging
|
|
2491
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_region ...'
|
|
2492
|
-
end
|
|
2493
|
-
# verify the required parameter 'id' is set
|
|
2494
|
-
if @api_client.config.client_side_validation && id.nil?
|
|
2495
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.update_region"
|
|
2496
|
-
end
|
|
2497
|
-
# verify the required parameter 'update_region' is set
|
|
2498
|
-
if @api_client.config.client_side_validation && update_region.nil?
|
|
2499
|
-
fail ArgumentError, "Missing the required parameter 'update_region' when calling OrganizationsApi.update_region"
|
|
2500
|
-
end
|
|
2501
|
-
# resource path
|
|
2502
|
-
local_var_path = '/regions/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
2503
|
-
|
|
2504
|
-
# query parameters
|
|
2505
|
-
query_params = opts[:query_params] || {}
|
|
2506
|
-
|
|
2507
|
-
# header parameters
|
|
2508
|
-
header_params = opts[:header_params] || {}
|
|
2509
|
-
# HTTP header 'Content-Type'
|
|
2510
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2511
|
-
if !content_type.nil?
|
|
2512
|
-
header_params['Content-Type'] = content_type
|
|
2513
|
-
end
|
|
2514
|
-
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
2515
|
-
|
|
2516
|
-
# form parameters
|
|
2517
|
-
form_params = opts[:form_params] || {}
|
|
2518
|
-
|
|
2519
|
-
# http body (model)
|
|
2520
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_region)
|
|
2521
|
-
|
|
2522
|
-
# return_type
|
|
2523
|
-
return_type = opts[:debug_return_type]
|
|
2524
|
-
|
|
2525
|
-
# auth_names
|
|
2526
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2527
|
-
|
|
2528
|
-
new_options = opts.merge(
|
|
2529
|
-
:operation => :"OrganizationsApi.update_region",
|
|
2530
|
-
:header_params => header_params,
|
|
2531
|
-
:query_params => query_params,
|
|
2532
|
-
:form_params => form_params,
|
|
2533
|
-
:body => post_body,
|
|
2534
|
-
:auth_names => auth_names,
|
|
2535
|
-
:return_type => return_type
|
|
2536
|
-
)
|
|
2537
|
-
|
|
2538
|
-
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
2539
|
-
if @api_client.config.debugging
|
|
2540
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#update_region\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2541
|
-
end
|
|
2542
|
-
return data, status_code, headers
|
|
2543
|
-
end
|
|
2544
|
-
|
|
2545
1625
|
# Update sandbox default limited network egress
|
|
2546
1626
|
# @param organization_id [String] Organization ID
|
|
2547
1627
|
# @param organization_sandbox_default_limited_network_egress [OrganizationSandboxDefaultLimitedNetworkEgress]
|
|
@@ -2580,7 +1660,7 @@ module DaytonaApiClient
|
|
|
2580
1660
|
# HTTP header 'Content-Type'
|
|
2581
1661
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2582
1662
|
if !content_type.nil?
|
|
2583
|
-
|
|
1663
|
+
header_params['Content-Type'] = content_type
|
|
2584
1664
|
end
|
|
2585
1665
|
|
|
2586
1666
|
# form parameters
|