daytona_api_client 0.222.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 +4 -4
- data/lib/daytona_api_client/api/api_keys_api.rb +2 -2
- data/lib/daytona_api_client/api/audit_api.rb +102 -59
- 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 +270 -1652
- data/lib/daytona_api_client/api/preview_api.rb +8 -202
- data/lib/daytona_api_client/api/runners_api.rb +22 -470
- data/lib/daytona_api_client/api/sandbox_api.rb +429 -2200
- data/lib/daytona_api_client/api/snapshots_api.rb +117 -46
- data/lib/daytona_api_client/api/toolbox_api.rb +5108 -0
- data/lib/daytona_api_client/api/users_api.rb +172 -100
- 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 +93 -51
- data/lib/daytona_api_client/models/announcement.rb +74 -3
- data/lib/daytona_api_client/models/api_key_list.rb +78 -17
- 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/{create_runner_response.rb → command.rb} +104 -23
- data/lib/daytona_api_client/models/completion_context.rb +244 -0
- data/lib/daytona_api_client/models/completion_item.rb +289 -0
- data/lib/daytona_api_client/models/completion_list.rb +263 -0
- data/lib/daytona_api_client/models/compressed_screenshot_response.rb +256 -0
- data/lib/daytona_api_client/models/computer_use_start_response.rb +263 -0
- data/lib/daytona_api_client/models/{audit_target_scenario.rb → computer_use_status_response.rb} +96 -44
- data/lib/daytona_api_client/models/computer_use_stop_response.rb +263 -0
- 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 +290 -0
- data/lib/daytona_api_client/models/create_organization_role.rb +74 -3
- data/lib/daytona_api_client/models/create_runner.rb +361 -51
- data/lib/daytona_api_client/models/create_sandbox.rb +117 -130
- data/lib/daytona_api_client/models/{signed_port_preview_url.rb → create_session_request.rb} +93 -103
- data/lib/daytona_api_client/models/create_snapshot.rb +88 -61
- data/lib/daytona_api_client/models/{volume_created_webhook.rb → create_user.rb} +113 -131
- 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 -140
- data/lib/daytona_api_client/models/{runner_service_health.rb → display_info_response.rb} +95 -59
- data/lib/daytona_api_client/models/docker_registry.rb +76 -5
- data/lib/daytona_api_client/models/{paginated_jobs.rb → download_files.rb} +94 -100
- data/lib/daytona_api_client/models/{create_warm_pool.rb → execute_request.rb} +106 -62
- data/lib/daytona_api_client/models/{metric_data_point.rb → execute_response.rb} +109 -38
- data/lib/daytona_api_client/models/file_info.rb +417 -0
- data/lib/daytona_api_client/models/{snapshot_removed_webhook.rb → file_status.rb} +133 -142
- data/lib/daytona_api_client/models/git_add_request.rb +264 -0
- data/lib/daytona_api_client/models/{create_secret.rb → git_branch_request.rb} +106 -59
- data/lib/daytona_api_client/models/git_checkout_request.rb +261 -0
- data/lib/daytona_api_client/models/{toolbox_proxy_url.rb → git_clone_request.rb} +142 -10
- data/lib/daytona_api_client/models/{snapshot_created_webhook.rb → git_commit_info.rb} +151 -161
- data/lib/daytona_api_client/models/git_commit_request.rb +325 -0
- data/lib/daytona_api_client/models/{runner_healthcheck.rb → git_commit_response.rb} +92 -74
- data/lib/daytona_api_client/models/{create_region.rb → git_delete_branch_request.rb} +106 -54
- data/lib/daytona_api_client/models/{snapshot_manager_credentials.rb → git_repo_request.rb} +96 -35
- data/lib/daytona_api_client/models/git_status.rb +290 -0
- 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/{oidc_id_p_config_response.rb → keyboard_hotkey_request.rb} +93 -59
- data/lib/daytona_api_client/models/{create_region_response.rb → keyboard_press_request.rb} +102 -63
- data/lib/daytona_api_client/models/keyboard_type_request.rb +246 -0
- data/lib/daytona_api_client/models/list_branch_response.rb +237 -0
- data/lib/daytona_api_client/models/lsp_completion_params.rb +325 -0
- data/lib/daytona_api_client/models/lsp_document_request.rb +290 -0
- data/lib/daytona_api_client/models/lsp_location.rb +261 -0
- data/lib/daytona_api_client/models/{gpu_capacity.rb → lsp_server_request.rb} +109 -104
- data/lib/daytona_api_client/models/{secret.rb → lsp_symbol.rb} +121 -146
- data/lib/daytona_api_client/models/match.rb +287 -0
- data/lib/daytona_api_client/models/mouse_click_request.rb +283 -0
- data/lib/daytona_api_client/models/mouse_click_response.rb +263 -0
- data/lib/daytona_api_client/models/mouse_drag_request.rb +327 -0
- data/lib/daytona_api_client/models/mouse_drag_response.rb +263 -0
- data/lib/daytona_api_client/models/mouse_move_request.rb +263 -0
- data/lib/daytona_api_client/models/mouse_move_response.rb +263 -0
- data/lib/daytona_api_client/models/{available_sandbox_class.rb → mouse_position.rb} +109 -95
- data/lib/daytona_api_client/models/mouse_scroll_request.rb +300 -0
- data/lib/daytona_api_client/models/{test_identity_provider_connection_response.rb → mouse_scroll_response.rb} +81 -30
- data/lib/daytona_api_client/models/oidc_config.rb +78 -78
- data/lib/daytona_api_client/models/organization.rb +159 -372
- 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 +236 -0
- data/lib/daytona_api_client/models/organization_suspension.rb +290 -0
- 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 +80 -19
- data/lib/daytona_api_client/models/{paginated_traces.rb → paginated_sandboxes.rb} +80 -13
- data/lib/daytona_api_client/models/paginated_snapshots.rb +77 -6
- data/lib/daytona_api_client/models/{paginated_logs.rb → paginated_snapshots_dto.rb} +80 -13
- data/lib/daytona_api_client/models/port_preview_url.rb +88 -34
- data/lib/daytona_api_client/models/position.rb +261 -0
- data/lib/daytona_api_client/models/posthog_config.rb +74 -3
- data/lib/daytona_api_client/models/process_errors_response.rb +263 -0
- data/lib/daytona_api_client/models/process_logs_response.rb +263 -0
- data/lib/daytona_api_client/models/process_restart_response.rb +263 -0
- data/lib/daytona_api_client/models/process_status_response.rb +263 -0
- data/lib/daytona_api_client/models/{update_last_activity.rb → project_dir_response.rb} +83 -13
- data/lib/daytona_api_client/models/{pending_sso_link.rb → pty_create_request.rb} +114 -109
- data/lib/daytona_api_client/models/pty_create_response.rb +236 -0
- data/lib/daytona_api_client/models/{sandbox_identity.rb → pty_list_response.rb} +95 -49
- data/lib/daytona_api_client/models/pty_resize_request.rb +263 -0
- data/lib/daytona_api_client/models/pty_session_info.rb +425 -0
- data/lib/daytona_api_client/models/range.rb +261 -0
- data/lib/daytona_api_client/models/region.rb +78 -192
- data/lib/daytona_api_client/models/{regenerate_api_key_response.rb → region_screenshot_response.rb} +113 -22
- data/lib/daytona_api_client/models/registry_push_access_dto.rb +74 -3
- data/lib/daytona_api_client/models/replace_request.rb +289 -0
- data/lib/daytona_api_client/models/{oidc_id_p_config.rb → replace_result.rb} +95 -88
- data/lib/daytona_api_client/models/runner.rb +215 -155
- 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 +105 -258
- data/lib/daytona_api_client/models/sandbox_class.rb +6 -7
- data/lib/daytona_api_client/models/sandbox_desired_state.rb +3 -5
- data/lib/daytona_api_client/models/{create_sandbox_snapshot.rb → sandbox_info.rb} +113 -17
- data/lib/daytona_api_client/models/sandbox_labels.rb +74 -3
- data/lib/daytona_api_client/models/sandbox_state.rb +3 -10
- data/lib/daytona_api_client/models/sandbox_volume.rb +79 -18
- data/lib/daytona_api_client/models/screenshot_response.rb +256 -0
- data/lib/daytona_api_client/models/{gpu_capacity_response.rb → search_files_response.rb} +93 -49
- data/lib/daytona_api_client/models/send_webhook_dto.rb +273 -0
- data/lib/daytona_api_client/models/session.rb +251 -0
- data/lib/daytona_api_client/models/{list_sandboxes_response.rb → session_execute_request.rb} +110 -34
- data/lib/daytona_api_client/models/session_execute_response.rb +239 -0
- data/lib/daytona_api_client/models/{generate_workos_admin_portal_link.rb → set_snapshot_general_status_dto.rb} +93 -44
- data/lib/daytona_api_client/models/snapshot_dto.rb +78 -84
- data/lib/daytona_api_client/models/snapshot_state.rb +6 -5
- 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 +78 -34
- 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 +317 -0
- 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 +75 -51
- data/lib/daytona_api_client/models/{list_secrets_response.rb → user_home_dir_response.rb} +83 -72
- 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/{preview_warning.rb → webhook_controller_get_status200_response.rb} +76 -23
- data/lib/daytona_api_client/models/webhook_initialization_status.rb +74 -3
- data/lib/daytona_api_client/models/windows_response.rb +265 -0
- data/lib/daytona_api_client/models/{update_job_status.rb → work_dir_response.rb} +83 -72
- data/lib/daytona_api_client/models/{sandbox_list_item.rb → workspace.rb} +300 -244
- data/lib/daytona_api_client/version.rb +2 -2
- data/lib/daytona_api_client.rb +83 -96
- data/project.json +13 -38
- metadata +88 -105
- data/.gitignore +0 -39
- data/.openapi-generator/FILES +0 -178
- 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/jobs_api.rb +0 -299
- data/lib/daytona_api_client/api/regions_api.rb +0 -77
- data/lib/daytona_api_client/api/secret_api.rb +0 -441
- data/lib/daytona_api_client/api/warm_pools_api.rb +0 -286
- data/lib/daytona_api_client/api_model_base.rb +0 -88
- data/lib/daytona_api_client/models/audit_scenarios.rb +0 -167
- data/lib/daytona_api_client/models/cli_oidc_config.rb +0 -192
- data/lib/daytona_api_client/models/create_identity_provider.rb +0 -269
- data/lib/daytona_api_client/models/create_runner_sandbox_class.rb +0 -42
- data/lib/daytona_api_client/models/date_filter.rb +0 -178
- data/lib/daytona_api_client/models/directory_sync_status.rb +0 -42
- data/lib/daytona_api_client/models/fork_sandbox.rb +0 -148
- data/lib/daytona_api_client/models/gpu_type.rb +0 -46
- data/lib/daytona_api_client/models/identity_provider.rb +0 -439
- data/lib/daytona_api_client/models/int_filter.rb +0 -222
- 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 -55
- data/lib/daytona_api_client/models/log_entry.rb +0 -334
- 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 -188
- data/lib/daytona_api_client/models/poll_jobs_response.rb +0 -167
- data/lib/daytona_api_client/models/rate_limit_config.rb +0 -188
- data/lib/daytona_api_client/models/rate_limit_entry.rb +0 -158
- data/lib/daytona_api_client/models/region_quota.rb +0 -453
- data/lib/daytona_api_client/models/region_type.rb +0 -42
- data/lib/daytona_api_client/models/region_usage_overview.rb +0 -518
- data/lib/daytona_api_client/models/resize_sandbox.rb +0 -225
- data/lib/daytona_api_client/models/resolve_sandbox_secrets200_response_inner.rb +0 -176
- data/lib/daytona_api_client/models/runner_class.rb +0 -40
- data/lib/daytona_api_client/models/runner_full.rb +0 -757
- data/lib/daytona_api_client/models/runner_health_metrics.rb +0 -482
- data/lib/daytona_api_client/models/sandbox_created_webhook.rb +0 -349
- 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/sandbox_state_updated_webhook.rb +0 -349
- data/lib/daytona_api_client/models/snapshot_state_updated_webhook.rb +0 -376
- data/lib/daytona_api_client/models/sso_oidc_config.rb +0 -192
- data/lib/daytona_api_client/models/string_filter.rb +0 -182
- data/lib/daytona_api_client/models/test_identity_provider_connection.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_identity_provider.rb +0 -212
- data/lib/daytona_api_client/models/update_oidc_id_p_config.rb +0 -178
- data/lib/daytona_api_client/models/update_organization_default_queue_timeout.rb +0 -151
- data/lib/daytona_api_client/models/update_organization_default_region.rb +0 -165
- data/lib/daytona_api_client/models/update_region.rb +0 -182
- data/lib/daytona_api_client/models/update_sandbox_network_settings.rb +0 -168
- data/lib/daytona_api_client/models/update_sandbox_secrets.rb +0 -167
- data/lib/daytona_api_client/models/update_secret.rb +0 -170
- data/lib/daytona_api_client/models/update_warm_pool.rb +0 -174
- data/lib/daytona_api_client/models/url.rb +0 -165
- data/lib/daytona_api_client/models/volume_state_updated_webhook.rb +0 -376
- data/lib/daytona_api_client/models/warm_pool.rb +0 -490
- data/lib/daytona_api_client/models/webhook_event.rb +0 -46
- data/lib/daytona_api_client/models/workos_admin_portal_intent.rb +0 -41
- data/lib/daytona_api_client/models/workos_admin_portal_link.rb +0 -165
- data/lib/daytona_api_client/models/workos_sso_connection.rb +0 -329
|
@@ -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
|
|
@@ -211,78 +209,6 @@ module DaytonaApiClient
|
|
|
211
209
|
return data, status_code, headers
|
|
212
210
|
end
|
|
213
211
|
|
|
214
|
-
# Create organization identity provider
|
|
215
|
-
# @param organization_id [String] Organization ID
|
|
216
|
-
# @param create_identity_provider [CreateIdentityProvider]
|
|
217
|
-
# @param [Hash] opts the optional parameters
|
|
218
|
-
# @return [IdentityProvider]
|
|
219
|
-
def create_organization_identity_provider(organization_id, create_identity_provider, opts = {})
|
|
220
|
-
data, _status_code, _headers = create_organization_identity_provider_with_http_info(organization_id, create_identity_provider, opts)
|
|
221
|
-
data
|
|
222
|
-
end
|
|
223
|
-
|
|
224
|
-
# Create organization identity provider
|
|
225
|
-
# @param organization_id [String] Organization ID
|
|
226
|
-
# @param create_identity_provider [CreateIdentityProvider]
|
|
227
|
-
# @param [Hash] opts the optional parameters
|
|
228
|
-
# @return [Array<(IdentityProvider, Integer, Hash)>] IdentityProvider data, response status code and response headers
|
|
229
|
-
def create_organization_identity_provider_with_http_info(organization_id, create_identity_provider, opts = {})
|
|
230
|
-
if @api_client.config.debugging
|
|
231
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.create_organization_identity_provider ...'
|
|
232
|
-
end
|
|
233
|
-
# verify the required parameter 'organization_id' is set
|
|
234
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
235
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.create_organization_identity_provider"
|
|
236
|
-
end
|
|
237
|
-
# verify the required parameter 'create_identity_provider' is set
|
|
238
|
-
if @api_client.config.client_side_validation && create_identity_provider.nil?
|
|
239
|
-
fail ArgumentError, "Missing the required parameter 'create_identity_provider' when calling OrganizationsApi.create_organization_identity_provider"
|
|
240
|
-
end
|
|
241
|
-
# resource path
|
|
242
|
-
local_var_path = '/organizations/{organizationId}/identity-providers'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
243
|
-
|
|
244
|
-
# query parameters
|
|
245
|
-
query_params = opts[:query_params] || {}
|
|
246
|
-
|
|
247
|
-
# header parameters
|
|
248
|
-
header_params = opts[:header_params] || {}
|
|
249
|
-
# HTTP header 'Accept' (if needed)
|
|
250
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
251
|
-
# HTTP header 'Content-Type'
|
|
252
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
253
|
-
if !content_type.nil?
|
|
254
|
-
header_params['Content-Type'] = content_type
|
|
255
|
-
end
|
|
256
|
-
|
|
257
|
-
# form parameters
|
|
258
|
-
form_params = opts[:form_params] || {}
|
|
259
|
-
|
|
260
|
-
# http body (model)
|
|
261
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_identity_provider)
|
|
262
|
-
|
|
263
|
-
# return_type
|
|
264
|
-
return_type = opts[:debug_return_type] || 'IdentityProvider'
|
|
265
|
-
|
|
266
|
-
# auth_names
|
|
267
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
268
|
-
|
|
269
|
-
new_options = opts.merge(
|
|
270
|
-
:operation => :"OrganizationsApi.create_organization_identity_provider",
|
|
271
|
-
:header_params => header_params,
|
|
272
|
-
:query_params => query_params,
|
|
273
|
-
:form_params => form_params,
|
|
274
|
-
:body => post_body,
|
|
275
|
-
:auth_names => auth_names,
|
|
276
|
-
:return_type => return_type
|
|
277
|
-
)
|
|
278
|
-
|
|
279
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
280
|
-
if @api_client.config.debugging
|
|
281
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#create_organization_identity_provider\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
282
|
-
end
|
|
283
|
-
return data, status_code, headers
|
|
284
|
-
end
|
|
285
|
-
|
|
286
212
|
# Create organization invitation
|
|
287
213
|
# @param organization_id [String] Organization ID
|
|
288
214
|
# @param create_organization_invitation [CreateOrganizationInvitation]
|
|
@@ -323,7 +249,7 @@ module DaytonaApiClient
|
|
|
323
249
|
# HTTP header 'Content-Type'
|
|
324
250
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
325
251
|
if !content_type.nil?
|
|
326
|
-
|
|
252
|
+
header_params['Content-Type'] = content_type
|
|
327
253
|
end
|
|
328
254
|
|
|
329
255
|
# form parameters
|
|
@@ -395,7 +321,7 @@ module DaytonaApiClient
|
|
|
395
321
|
# HTTP header 'Content-Type'
|
|
396
322
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
397
323
|
if !content_type.nil?
|
|
398
|
-
|
|
324
|
+
header_params['Content-Type'] = content_type
|
|
399
325
|
end
|
|
400
326
|
|
|
401
327
|
# form parameters
|
|
@@ -427,75 +353,6 @@ module DaytonaApiClient
|
|
|
427
353
|
return data, status_code, headers
|
|
428
354
|
end
|
|
429
355
|
|
|
430
|
-
# Create a new region
|
|
431
|
-
# @param create_region [CreateRegion]
|
|
432
|
-
# @param [Hash] opts the optional parameters
|
|
433
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
434
|
-
# @return [CreateRegionResponse]
|
|
435
|
-
def create_region(create_region, opts = {})
|
|
436
|
-
data, _status_code, _headers = create_region_with_http_info(create_region, opts)
|
|
437
|
-
data
|
|
438
|
-
end
|
|
439
|
-
|
|
440
|
-
# Create a new region
|
|
441
|
-
# @param create_region [CreateRegion]
|
|
442
|
-
# @param [Hash] opts the optional parameters
|
|
443
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
444
|
-
# @return [Array<(CreateRegionResponse, Integer, Hash)>] CreateRegionResponse data, response status code and response headers
|
|
445
|
-
def create_region_with_http_info(create_region, opts = {})
|
|
446
|
-
if @api_client.config.debugging
|
|
447
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.create_region ...'
|
|
448
|
-
end
|
|
449
|
-
# verify the required parameter 'create_region' is set
|
|
450
|
-
if @api_client.config.client_side_validation && create_region.nil?
|
|
451
|
-
fail ArgumentError, "Missing the required parameter 'create_region' when calling OrganizationsApi.create_region"
|
|
452
|
-
end
|
|
453
|
-
# resource path
|
|
454
|
-
local_var_path = '/regions'
|
|
455
|
-
|
|
456
|
-
# query parameters
|
|
457
|
-
query_params = opts[:query_params] || {}
|
|
458
|
-
|
|
459
|
-
# header parameters
|
|
460
|
-
header_params = opts[:header_params] || {}
|
|
461
|
-
# HTTP header 'Accept' (if needed)
|
|
462
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
463
|
-
# HTTP header 'Content-Type'
|
|
464
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
465
|
-
if !content_type.nil?
|
|
466
|
-
header_params['Content-Type'] = content_type
|
|
467
|
-
end
|
|
468
|
-
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
469
|
-
|
|
470
|
-
# form parameters
|
|
471
|
-
form_params = opts[:form_params] || {}
|
|
472
|
-
|
|
473
|
-
# http body (model)
|
|
474
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_region)
|
|
475
|
-
|
|
476
|
-
# return_type
|
|
477
|
-
return_type = opts[:debug_return_type] || 'CreateRegionResponse'
|
|
478
|
-
|
|
479
|
-
# auth_names
|
|
480
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
481
|
-
|
|
482
|
-
new_options = opts.merge(
|
|
483
|
-
:operation => :"OrganizationsApi.create_region",
|
|
484
|
-
:header_params => header_params,
|
|
485
|
-
:query_params => query_params,
|
|
486
|
-
:form_params => form_params,
|
|
487
|
-
:body => post_body,
|
|
488
|
-
:auth_names => auth_names,
|
|
489
|
-
:return_type => return_type
|
|
490
|
-
)
|
|
491
|
-
|
|
492
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
493
|
-
if @api_client.config.debugging
|
|
494
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#create_region\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
495
|
-
end
|
|
496
|
-
return data, status_code, headers
|
|
497
|
-
end
|
|
498
|
-
|
|
499
356
|
# Decline organization invitation
|
|
500
357
|
# @param invitation_id [String] Invitation ID
|
|
501
358
|
# @param [Hash] opts the optional parameters
|
|
@@ -614,71 +471,6 @@ module DaytonaApiClient
|
|
|
614
471
|
return data, status_code, headers
|
|
615
472
|
end
|
|
616
473
|
|
|
617
|
-
# Delete organization identity provider
|
|
618
|
-
# @param organization_id [String] Organization ID
|
|
619
|
-
# @param id [String] Identity provider ID
|
|
620
|
-
# @param [Hash] opts the optional parameters
|
|
621
|
-
# @return [nil]
|
|
622
|
-
def delete_organization_identity_provider(organization_id, id, opts = {})
|
|
623
|
-
delete_organization_identity_provider_with_http_info(organization_id, id, opts)
|
|
624
|
-
nil
|
|
625
|
-
end
|
|
626
|
-
|
|
627
|
-
# Delete organization identity provider
|
|
628
|
-
# @param organization_id [String] Organization ID
|
|
629
|
-
# @param id [String] Identity provider ID
|
|
630
|
-
# @param [Hash] opts the optional parameters
|
|
631
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
632
|
-
def delete_organization_identity_provider_with_http_info(organization_id, id, opts = {})
|
|
633
|
-
if @api_client.config.debugging
|
|
634
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.delete_organization_identity_provider ...'
|
|
635
|
-
end
|
|
636
|
-
# verify the required parameter 'organization_id' is set
|
|
637
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
638
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.delete_organization_identity_provider"
|
|
639
|
-
end
|
|
640
|
-
# verify the required parameter 'id' is set
|
|
641
|
-
if @api_client.config.client_side_validation && id.nil?
|
|
642
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.delete_organization_identity_provider"
|
|
643
|
-
end
|
|
644
|
-
# resource path
|
|
645
|
-
local_var_path = '/organizations/{organizationId}/identity-providers/{id}'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
646
|
-
|
|
647
|
-
# query parameters
|
|
648
|
-
query_params = opts[:query_params] || {}
|
|
649
|
-
|
|
650
|
-
# header parameters
|
|
651
|
-
header_params = opts[:header_params] || {}
|
|
652
|
-
|
|
653
|
-
# form parameters
|
|
654
|
-
form_params = opts[:form_params] || {}
|
|
655
|
-
|
|
656
|
-
# http body (model)
|
|
657
|
-
post_body = opts[:debug_body]
|
|
658
|
-
|
|
659
|
-
# return_type
|
|
660
|
-
return_type = opts[:debug_return_type]
|
|
661
|
-
|
|
662
|
-
# auth_names
|
|
663
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
664
|
-
|
|
665
|
-
new_options = opts.merge(
|
|
666
|
-
:operation => :"OrganizationsApi.delete_organization_identity_provider",
|
|
667
|
-
:header_params => header_params,
|
|
668
|
-
:query_params => query_params,
|
|
669
|
-
:form_params => form_params,
|
|
670
|
-
:body => post_body,
|
|
671
|
-
:auth_names => auth_names,
|
|
672
|
-
:return_type => return_type
|
|
673
|
-
)
|
|
674
|
-
|
|
675
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
676
|
-
if @api_client.config.debugging
|
|
677
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#delete_organization_identity_provider\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
678
|
-
end
|
|
679
|
-
return data, status_code, headers
|
|
680
|
-
end
|
|
681
|
-
|
|
682
474
|
# Delete organization member
|
|
683
475
|
# @param organization_id [String] Organization ID
|
|
684
476
|
# @param user_id [String] User ID
|
|
@@ -744,65 +536,6 @@ module DaytonaApiClient
|
|
|
744
536
|
return data, status_code, headers
|
|
745
537
|
end
|
|
746
538
|
|
|
747
|
-
# Delete organization OpenTelemetry configuration
|
|
748
|
-
# @param organization_id [String] Organization ID
|
|
749
|
-
# @param [Hash] opts the optional parameters
|
|
750
|
-
# @return [nil]
|
|
751
|
-
def delete_organization_otel_config(organization_id, opts = {})
|
|
752
|
-
delete_organization_otel_config_with_http_info(organization_id, opts)
|
|
753
|
-
nil
|
|
754
|
-
end
|
|
755
|
-
|
|
756
|
-
# Delete organization OpenTelemetry configuration
|
|
757
|
-
# @param organization_id [String] Organization ID
|
|
758
|
-
# @param [Hash] opts the optional parameters
|
|
759
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
760
|
-
def delete_organization_otel_config_with_http_info(organization_id, opts = {})
|
|
761
|
-
if @api_client.config.debugging
|
|
762
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.delete_organization_otel_config ...'
|
|
763
|
-
end
|
|
764
|
-
# verify the required parameter 'organization_id' is set
|
|
765
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
766
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.delete_organization_otel_config"
|
|
767
|
-
end
|
|
768
|
-
# resource path
|
|
769
|
-
local_var_path = '/organizations/{organizationId}/otel-config'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
770
|
-
|
|
771
|
-
# query parameters
|
|
772
|
-
query_params = opts[:query_params] || {}
|
|
773
|
-
|
|
774
|
-
# header parameters
|
|
775
|
-
header_params = opts[:header_params] || {}
|
|
776
|
-
|
|
777
|
-
# form parameters
|
|
778
|
-
form_params = opts[:form_params] || {}
|
|
779
|
-
|
|
780
|
-
# http body (model)
|
|
781
|
-
post_body = opts[:debug_body]
|
|
782
|
-
|
|
783
|
-
# return_type
|
|
784
|
-
return_type = opts[:debug_return_type]
|
|
785
|
-
|
|
786
|
-
# auth_names
|
|
787
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
788
|
-
|
|
789
|
-
new_options = opts.merge(
|
|
790
|
-
:operation => :"OrganizationsApi.delete_organization_otel_config",
|
|
791
|
-
:header_params => header_params,
|
|
792
|
-
:query_params => query_params,
|
|
793
|
-
:form_params => form_params,
|
|
794
|
-
:body => post_body,
|
|
795
|
-
:auth_names => auth_names,
|
|
796
|
-
:return_type => return_type
|
|
797
|
-
)
|
|
798
|
-
|
|
799
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
800
|
-
if @api_client.config.debugging
|
|
801
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#delete_organization_otel_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
802
|
-
end
|
|
803
|
-
return data, status_code, headers
|
|
804
|
-
end
|
|
805
|
-
|
|
806
539
|
# Delete organization role
|
|
807
540
|
# @param organization_id [String] Organization ID
|
|
808
541
|
# @param role_id [String] Role ID
|
|
@@ -868,38 +601,37 @@ module DaytonaApiClient
|
|
|
868
601
|
return data, status_code, headers
|
|
869
602
|
end
|
|
870
603
|
|
|
871
|
-
#
|
|
872
|
-
# @param
|
|
604
|
+
# Get organization by ID
|
|
605
|
+
# @param organization_id [String] Organization ID
|
|
873
606
|
# @param [Hash] opts the optional parameters
|
|
874
|
-
# @
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
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
|
|
879
611
|
end
|
|
880
612
|
|
|
881
|
-
#
|
|
882
|
-
# @param
|
|
613
|
+
# Get organization by ID
|
|
614
|
+
# @param organization_id [String] Organization ID
|
|
883
615
|
# @param [Hash] opts the optional parameters
|
|
884
|
-
# @
|
|
885
|
-
|
|
886
|
-
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 = {})
|
|
887
618
|
if @api_client.config.debugging
|
|
888
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
|
619
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization ...'
|
|
889
620
|
end
|
|
890
|
-
# verify the required parameter '
|
|
891
|
-
if @api_client.config.client_side_validation &&
|
|
892
|
-
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"
|
|
893
624
|
end
|
|
894
625
|
# resource path
|
|
895
|
-
local_var_path = '/
|
|
626
|
+
local_var_path = '/organizations/{organizationId}'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
896
627
|
|
|
897
628
|
# query parameters
|
|
898
629
|
query_params = opts[:query_params] || {}
|
|
899
630
|
|
|
900
631
|
# header parameters
|
|
901
632
|
header_params = opts[:header_params] || {}
|
|
902
|
-
|
|
633
|
+
# HTTP header 'Accept' (if needed)
|
|
634
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
903
635
|
|
|
904
636
|
# form parameters
|
|
905
637
|
form_params = opts[:form_params] || {}
|
|
@@ -908,13 +640,13 @@ module DaytonaApiClient
|
|
|
908
640
|
post_body = opts[:debug_body]
|
|
909
641
|
|
|
910
642
|
# return_type
|
|
911
|
-
return_type = opts[:debug_return_type]
|
|
643
|
+
return_type = opts[:debug_return_type] || 'Organization'
|
|
912
644
|
|
|
913
645
|
# auth_names
|
|
914
646
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
915
647
|
|
|
916
648
|
new_options = opts.merge(
|
|
917
|
-
:operation => :"OrganizationsApi.
|
|
649
|
+
:operation => :"OrganizationsApi.get_organization",
|
|
918
650
|
:header_params => header_params,
|
|
919
651
|
:query_params => query_params,
|
|
920
652
|
:form_params => form_params,
|
|
@@ -923,1078 +655,36 @@ module DaytonaApiClient
|
|
|
923
655
|
:return_type => return_type
|
|
924
656
|
)
|
|
925
657
|
|
|
926
|
-
data, status_code, headers = @api_client.call_api(:
|
|
658
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
927
659
|
if @api_client.config.debugging
|
|
928
|
-
@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}"
|
|
929
661
|
end
|
|
930
662
|
return data, status_code, headers
|
|
931
663
|
end
|
|
932
664
|
|
|
933
|
-
#
|
|
934
|
-
# @param
|
|
935
|
-
# @param generate_workos_admin_portal_link [GenerateWorkosAdminPortalLink]
|
|
665
|
+
# Get organization by sandbox ID
|
|
666
|
+
# @param sandbox_id [String] Sandbox ID
|
|
936
667
|
# @param [Hash] opts the optional parameters
|
|
937
|
-
# @return [
|
|
938
|
-
def
|
|
939
|
-
data, _status_code, _headers =
|
|
668
|
+
# @return [Organization]
|
|
669
|
+
def get_organization_by_sandbox_id(sandbox_id, opts = {})
|
|
670
|
+
data, _status_code, _headers = get_organization_by_sandbox_id_with_http_info(sandbox_id, opts)
|
|
940
671
|
data
|
|
941
672
|
end
|
|
942
673
|
|
|
943
|
-
#
|
|
944
|
-
# @param
|
|
945
|
-
# @param
|
|
946
|
-
# @
|
|
947
|
-
|
|
948
|
-
def generate_workos_admin_portal_link_with_http_info(organization_id, generate_workos_admin_portal_link, opts = {})
|
|
949
|
-
if @api_client.config.debugging
|
|
950
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.generate_workos_admin_portal_link ...'
|
|
951
|
-
end
|
|
952
|
-
# verify the required parameter 'organization_id' is set
|
|
953
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
954
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.generate_workos_admin_portal_link"
|
|
955
|
-
end
|
|
956
|
-
# verify the required parameter 'generate_workos_admin_portal_link' is set
|
|
957
|
-
if @api_client.config.client_side_validation && generate_workos_admin_portal_link.nil?
|
|
958
|
-
fail ArgumentError, "Missing the required parameter 'generate_workos_admin_portal_link' when calling OrganizationsApi.generate_workos_admin_portal_link"
|
|
959
|
-
end
|
|
960
|
-
# resource path
|
|
961
|
-
local_var_path = '/organizations/{organizationId}/identity-providers/workos-admin-portal-link'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
962
|
-
|
|
963
|
-
# query parameters
|
|
964
|
-
query_params = opts[:query_params] || {}
|
|
965
|
-
|
|
966
|
-
# header parameters
|
|
967
|
-
header_params = opts[:header_params] || {}
|
|
968
|
-
# HTTP header 'Accept' (if needed)
|
|
969
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
970
|
-
# HTTP header 'Content-Type'
|
|
971
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
972
|
-
if !content_type.nil?
|
|
973
|
-
header_params['Content-Type'] = content_type
|
|
974
|
-
end
|
|
975
|
-
|
|
976
|
-
# form parameters
|
|
977
|
-
form_params = opts[:form_params] || {}
|
|
978
|
-
|
|
979
|
-
# http body (model)
|
|
980
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(generate_workos_admin_portal_link)
|
|
981
|
-
|
|
982
|
-
# return_type
|
|
983
|
-
return_type = opts[:debug_return_type] || 'WorkosAdminPortalLink'
|
|
984
|
-
|
|
985
|
-
# auth_names
|
|
986
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
987
|
-
|
|
988
|
-
new_options = opts.merge(
|
|
989
|
-
:operation => :"OrganizationsApi.generate_workos_admin_portal_link",
|
|
990
|
-
:header_params => header_params,
|
|
991
|
-
:query_params => query_params,
|
|
992
|
-
:form_params => form_params,
|
|
993
|
-
:body => post_body,
|
|
994
|
-
:auth_names => auth_names,
|
|
995
|
-
:return_type => return_type
|
|
996
|
-
)
|
|
997
|
-
|
|
998
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
999
|
-
if @api_client.config.debugging
|
|
1000
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#generate_workos_admin_portal_link\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1001
|
-
end
|
|
1002
|
-
return data, status_code, headers
|
|
1003
|
-
end
|
|
1004
|
-
|
|
1005
|
-
# Get shared GPU capacity
|
|
1006
|
-
# Returns a short-lived observation of the shared GPU fleet. Organization quotas and entitlements are not applied. Capacity can change immediately and sandbox creation remains authoritative.
|
|
1007
|
-
# @param organization_id [String] Organization ID
|
|
1008
|
-
# @param [Hash] opts the optional parameters
|
|
1009
|
-
# @return [GpuCapacityResponse]
|
|
1010
|
-
def get_gpu_capacity(organization_id, opts = {})
|
|
1011
|
-
data, _status_code, _headers = get_gpu_capacity_with_http_info(organization_id, opts)
|
|
1012
|
-
data
|
|
1013
|
-
end
|
|
1014
|
-
|
|
1015
|
-
# Get shared GPU capacity
|
|
1016
|
-
# Returns a short-lived observation of the shared GPU fleet. Organization quotas and entitlements are not applied. Capacity can change immediately and sandbox creation remains authoritative.
|
|
1017
|
-
# @param organization_id [String] Organization ID
|
|
1018
|
-
# @param [Hash] opts the optional parameters
|
|
1019
|
-
# @return [Array<(GpuCapacityResponse, Integer, Hash)>] GpuCapacityResponse data, response status code and response headers
|
|
1020
|
-
def get_gpu_capacity_with_http_info(organization_id, opts = {})
|
|
1021
|
-
if @api_client.config.debugging
|
|
1022
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_gpu_capacity ...'
|
|
1023
|
-
end
|
|
1024
|
-
# verify the required parameter 'organization_id' is set
|
|
1025
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
1026
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.get_gpu_capacity"
|
|
1027
|
-
end
|
|
1028
|
-
# resource path
|
|
1029
|
-
local_var_path = '/organizations/{organizationId}/gpu-capacity'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
1030
|
-
|
|
1031
|
-
# query parameters
|
|
1032
|
-
query_params = opts[:query_params] || {}
|
|
1033
|
-
|
|
1034
|
-
# header parameters
|
|
1035
|
-
header_params = opts[:header_params] || {}
|
|
1036
|
-
# HTTP header 'Accept' (if needed)
|
|
1037
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1038
|
-
|
|
1039
|
-
# form parameters
|
|
1040
|
-
form_params = opts[:form_params] || {}
|
|
1041
|
-
|
|
1042
|
-
# http body (model)
|
|
1043
|
-
post_body = opts[:debug_body]
|
|
1044
|
-
|
|
1045
|
-
# return_type
|
|
1046
|
-
return_type = opts[:debug_return_type] || 'GpuCapacityResponse'
|
|
1047
|
-
|
|
1048
|
-
# auth_names
|
|
1049
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1050
|
-
|
|
1051
|
-
new_options = opts.merge(
|
|
1052
|
-
:operation => :"OrganizationsApi.get_gpu_capacity",
|
|
1053
|
-
:header_params => header_params,
|
|
1054
|
-
:query_params => query_params,
|
|
1055
|
-
:form_params => form_params,
|
|
1056
|
-
:body => post_body,
|
|
1057
|
-
:auth_names => auth_names,
|
|
1058
|
-
:return_type => return_type
|
|
1059
|
-
)
|
|
1060
|
-
|
|
1061
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1062
|
-
if @api_client.config.debugging
|
|
1063
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#get_gpu_capacity\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1064
|
-
end
|
|
1065
|
-
return data, status_code, headers
|
|
1066
|
-
end
|
|
1067
|
-
|
|
1068
|
-
# Get organization by ID
|
|
1069
|
-
# @param organization_id [String] Organization ID
|
|
1070
|
-
# @param [Hash] opts the optional parameters
|
|
1071
|
-
# @return [Organization]
|
|
1072
|
-
def get_organization(organization_id, opts = {})
|
|
1073
|
-
data, _status_code, _headers = get_organization_with_http_info(organization_id, opts)
|
|
1074
|
-
data
|
|
1075
|
-
end
|
|
1076
|
-
|
|
1077
|
-
# Get organization by ID
|
|
1078
|
-
# @param organization_id [String] Organization ID
|
|
1079
|
-
# @param [Hash] opts the optional parameters
|
|
1080
|
-
# @return [Array<(Organization, Integer, Hash)>] Organization data, response status code and response headers
|
|
1081
|
-
def get_organization_with_http_info(organization_id, opts = {})
|
|
1082
|
-
if @api_client.config.debugging
|
|
1083
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization ...'
|
|
1084
|
-
end
|
|
1085
|
-
# verify the required parameter 'organization_id' is set
|
|
1086
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
1087
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.get_organization"
|
|
1088
|
-
end
|
|
1089
|
-
# resource path
|
|
1090
|
-
local_var_path = '/organizations/{organizationId}'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
1091
|
-
|
|
1092
|
-
# query parameters
|
|
1093
|
-
query_params = opts[:query_params] || {}
|
|
1094
|
-
|
|
1095
|
-
# header parameters
|
|
1096
|
-
header_params = opts[:header_params] || {}
|
|
1097
|
-
# HTTP header 'Accept' (if needed)
|
|
1098
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1099
|
-
|
|
1100
|
-
# form parameters
|
|
1101
|
-
form_params = opts[:form_params] || {}
|
|
1102
|
-
|
|
1103
|
-
# http body (model)
|
|
1104
|
-
post_body = opts[:debug_body]
|
|
1105
|
-
|
|
1106
|
-
# return_type
|
|
1107
|
-
return_type = opts[:debug_return_type] || 'Organization'
|
|
1108
|
-
|
|
1109
|
-
# auth_names
|
|
1110
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1111
|
-
|
|
1112
|
-
new_options = opts.merge(
|
|
1113
|
-
:operation => :"OrganizationsApi.get_organization",
|
|
1114
|
-
:header_params => header_params,
|
|
1115
|
-
:query_params => query_params,
|
|
1116
|
-
:form_params => form_params,
|
|
1117
|
-
:body => post_body,
|
|
1118
|
-
:auth_names => auth_names,
|
|
1119
|
-
:return_type => return_type
|
|
1120
|
-
)
|
|
1121
|
-
|
|
1122
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1123
|
-
if @api_client.config.debugging
|
|
1124
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#get_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1125
|
-
end
|
|
1126
|
-
return data, status_code, headers
|
|
1127
|
-
end
|
|
1128
|
-
|
|
1129
|
-
# Get organization identity provider
|
|
1130
|
-
# @param organization_id [String] Organization ID
|
|
1131
|
-
# @param id [String] Identity provider ID
|
|
1132
|
-
# @param [Hash] opts the optional parameters
|
|
1133
|
-
# @return [IdentityProvider]
|
|
1134
|
-
def get_organization_identity_provider(organization_id, id, opts = {})
|
|
1135
|
-
data, _status_code, _headers = get_organization_identity_provider_with_http_info(organization_id, id, opts)
|
|
1136
|
-
data
|
|
1137
|
-
end
|
|
1138
|
-
|
|
1139
|
-
# Get organization identity provider
|
|
1140
|
-
# @param organization_id [String] Organization ID
|
|
1141
|
-
# @param id [String] Identity provider ID
|
|
1142
|
-
# @param [Hash] opts the optional parameters
|
|
1143
|
-
# @return [Array<(IdentityProvider, Integer, Hash)>] IdentityProvider data, response status code and response headers
|
|
1144
|
-
def get_organization_identity_provider_with_http_info(organization_id, id, opts = {})
|
|
1145
|
-
if @api_client.config.debugging
|
|
1146
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization_identity_provider ...'
|
|
1147
|
-
end
|
|
1148
|
-
# verify the required parameter 'organization_id' is set
|
|
1149
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
1150
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.get_organization_identity_provider"
|
|
1151
|
-
end
|
|
1152
|
-
# verify the required parameter 'id' is set
|
|
1153
|
-
if @api_client.config.client_side_validation && id.nil?
|
|
1154
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.get_organization_identity_provider"
|
|
1155
|
-
end
|
|
1156
|
-
# resource path
|
|
1157
|
-
local_var_path = '/organizations/{organizationId}/identity-providers/{id}'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1158
|
-
|
|
1159
|
-
# query parameters
|
|
1160
|
-
query_params = opts[:query_params] || {}
|
|
1161
|
-
|
|
1162
|
-
# header parameters
|
|
1163
|
-
header_params = opts[:header_params] || {}
|
|
1164
|
-
# HTTP header 'Accept' (if needed)
|
|
1165
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1166
|
-
|
|
1167
|
-
# form parameters
|
|
1168
|
-
form_params = opts[:form_params] || {}
|
|
1169
|
-
|
|
1170
|
-
# http body (model)
|
|
1171
|
-
post_body = opts[:debug_body]
|
|
1172
|
-
|
|
1173
|
-
# return_type
|
|
1174
|
-
return_type = opts[:debug_return_type] || 'IdentityProvider'
|
|
1175
|
-
|
|
1176
|
-
# auth_names
|
|
1177
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1178
|
-
|
|
1179
|
-
new_options = opts.merge(
|
|
1180
|
-
:operation => :"OrganizationsApi.get_organization_identity_provider",
|
|
1181
|
-
:header_params => header_params,
|
|
1182
|
-
:query_params => query_params,
|
|
1183
|
-
:form_params => form_params,
|
|
1184
|
-
:body => post_body,
|
|
1185
|
-
:auth_names => auth_names,
|
|
1186
|
-
:return_type => return_type
|
|
1187
|
-
)
|
|
1188
|
-
|
|
1189
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1190
|
-
if @api_client.config.debugging
|
|
1191
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#get_organization_identity_provider\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1192
|
-
end
|
|
1193
|
-
return data, status_code, headers
|
|
1194
|
-
end
|
|
1195
|
-
|
|
1196
|
-
# Get count of organization invitations for authenticated user
|
|
1197
|
-
# @param [Hash] opts the optional parameters
|
|
1198
|
-
# @return [Float]
|
|
1199
|
-
def get_organization_invitations_count_for_authenticated_user(opts = {})
|
|
1200
|
-
data, _status_code, _headers = get_organization_invitations_count_for_authenticated_user_with_http_info(opts)
|
|
1201
|
-
data
|
|
1202
|
-
end
|
|
1203
|
-
|
|
1204
|
-
# Get count of organization invitations for authenticated user
|
|
1205
|
-
# @param [Hash] opts the optional parameters
|
|
1206
|
-
# @return [Array<(Float, Integer, Hash)>] Float data, response status code and response headers
|
|
1207
|
-
def get_organization_invitations_count_for_authenticated_user_with_http_info(opts = {})
|
|
1208
|
-
if @api_client.config.debugging
|
|
1209
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization_invitations_count_for_authenticated_user ...'
|
|
1210
|
-
end
|
|
1211
|
-
# resource path
|
|
1212
|
-
local_var_path = '/organizations/invitations/count'
|
|
1213
|
-
|
|
1214
|
-
# query parameters
|
|
1215
|
-
query_params = opts[:query_params] || {}
|
|
1216
|
-
|
|
1217
|
-
# header parameters
|
|
1218
|
-
header_params = opts[:header_params] || {}
|
|
1219
|
-
# HTTP header 'Accept' (if needed)
|
|
1220
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1221
|
-
|
|
1222
|
-
# form parameters
|
|
1223
|
-
form_params = opts[:form_params] || {}
|
|
1224
|
-
|
|
1225
|
-
# http body (model)
|
|
1226
|
-
post_body = opts[:debug_body]
|
|
1227
|
-
|
|
1228
|
-
# return_type
|
|
1229
|
-
return_type = opts[:debug_return_type] || 'Float'
|
|
1230
|
-
|
|
1231
|
-
# auth_names
|
|
1232
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1233
|
-
|
|
1234
|
-
new_options = opts.merge(
|
|
1235
|
-
:operation => :"OrganizationsApi.get_organization_invitations_count_for_authenticated_user",
|
|
1236
|
-
:header_params => header_params,
|
|
1237
|
-
:query_params => query_params,
|
|
1238
|
-
:form_params => form_params,
|
|
1239
|
-
:body => post_body,
|
|
1240
|
-
:auth_names => auth_names,
|
|
1241
|
-
:return_type => return_type
|
|
1242
|
-
)
|
|
1243
|
-
|
|
1244
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1245
|
-
if @api_client.config.debugging
|
|
1246
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#get_organization_invitations_count_for_authenticated_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1247
|
-
end
|
|
1248
|
-
return data, status_code, headers
|
|
1249
|
-
end
|
|
1250
|
-
|
|
1251
|
-
# Get organization OTEL config by organization ID
|
|
1252
|
-
# @param organization_id [String] Organization ID
|
|
1253
|
-
# @param [Hash] opts the optional parameters
|
|
1254
|
-
# @return [OtelConfig]
|
|
1255
|
-
def get_organization_otel_config(organization_id, opts = {})
|
|
1256
|
-
data, _status_code, _headers = get_organization_otel_config_with_http_info(organization_id, opts)
|
|
1257
|
-
data
|
|
1258
|
-
end
|
|
1259
|
-
|
|
1260
|
-
# Get organization OTEL config by organization ID
|
|
1261
|
-
# @param organization_id [String] Organization ID
|
|
1262
|
-
# @param [Hash] opts the optional parameters
|
|
1263
|
-
# @return [Array<(OtelConfig, Integer, Hash)>] OtelConfig data, response status code and response headers
|
|
1264
|
-
def get_organization_otel_config_with_http_info(organization_id, opts = {})
|
|
1265
|
-
if @api_client.config.debugging
|
|
1266
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization_otel_config ...'
|
|
1267
|
-
end
|
|
1268
|
-
# verify the required parameter 'organization_id' is set
|
|
1269
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
1270
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.get_organization_otel_config"
|
|
1271
|
-
end
|
|
1272
|
-
# resource path
|
|
1273
|
-
local_var_path = '/organizations/{organizationId}/otel-config'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
1274
|
-
|
|
1275
|
-
# query parameters
|
|
1276
|
-
query_params = opts[:query_params] || {}
|
|
1277
|
-
|
|
1278
|
-
# header parameters
|
|
1279
|
-
header_params = opts[:header_params] || {}
|
|
1280
|
-
# HTTP header 'Accept' (if needed)
|
|
1281
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1282
|
-
|
|
1283
|
-
# form parameters
|
|
1284
|
-
form_params = opts[:form_params] || {}
|
|
1285
|
-
|
|
1286
|
-
# http body (model)
|
|
1287
|
-
post_body = opts[:debug_body]
|
|
1288
|
-
|
|
1289
|
-
# return_type
|
|
1290
|
-
return_type = opts[:debug_return_type] || 'OtelConfig'
|
|
1291
|
-
|
|
1292
|
-
# auth_names
|
|
1293
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1294
|
-
|
|
1295
|
-
new_options = opts.merge(
|
|
1296
|
-
:operation => :"OrganizationsApi.get_organization_otel_config",
|
|
1297
|
-
:header_params => header_params,
|
|
1298
|
-
:query_params => query_params,
|
|
1299
|
-
:form_params => form_params,
|
|
1300
|
-
:body => post_body,
|
|
1301
|
-
:auth_names => auth_names,
|
|
1302
|
-
:return_type => return_type
|
|
1303
|
-
)
|
|
1304
|
-
|
|
1305
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1306
|
-
if @api_client.config.debugging
|
|
1307
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#get_organization_otel_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1308
|
-
end
|
|
1309
|
-
return data, status_code, headers
|
|
1310
|
-
end
|
|
1311
|
-
|
|
1312
|
-
# Get organization OTEL config by sandbox auth token
|
|
1313
|
-
# @param auth_token [String] Sandbox Auth Token
|
|
1314
|
-
# @param [Hash] opts the optional parameters
|
|
1315
|
-
# @return [OtelConfig]
|
|
1316
|
-
def get_organization_otel_config_by_sandbox_auth_token(auth_token, opts = {})
|
|
1317
|
-
data, _status_code, _headers = get_organization_otel_config_by_sandbox_auth_token_with_http_info(auth_token, opts)
|
|
1318
|
-
data
|
|
1319
|
-
end
|
|
1320
|
-
|
|
1321
|
-
# Get organization OTEL config by sandbox auth token
|
|
1322
|
-
# @param auth_token [String] Sandbox Auth Token
|
|
1323
|
-
# @param [Hash] opts the optional parameters
|
|
1324
|
-
# @return [Array<(OtelConfig, Integer, Hash)>] OtelConfig data, response status code and response headers
|
|
1325
|
-
def get_organization_otel_config_by_sandbox_auth_token_with_http_info(auth_token, opts = {})
|
|
1326
|
-
if @api_client.config.debugging
|
|
1327
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization_otel_config_by_sandbox_auth_token ...'
|
|
1328
|
-
end
|
|
1329
|
-
# verify the required parameter 'auth_token' is set
|
|
1330
|
-
if @api_client.config.client_side_validation && auth_token.nil?
|
|
1331
|
-
fail ArgumentError, "Missing the required parameter 'auth_token' when calling OrganizationsApi.get_organization_otel_config_by_sandbox_auth_token"
|
|
1332
|
-
end
|
|
1333
|
-
# resource path
|
|
1334
|
-
local_var_path = '/organizations/otel-config/by-sandbox-auth-token/{authToken}'.sub('{' + 'authToken' + '}', CGI.escape(auth_token.to_s))
|
|
1335
|
-
|
|
1336
|
-
# query parameters
|
|
1337
|
-
query_params = opts[:query_params] || {}
|
|
1338
|
-
|
|
1339
|
-
# header parameters
|
|
1340
|
-
header_params = opts[:header_params] || {}
|
|
1341
|
-
# HTTP header 'Accept' (if needed)
|
|
1342
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1343
|
-
|
|
1344
|
-
# form parameters
|
|
1345
|
-
form_params = opts[:form_params] || {}
|
|
1346
|
-
|
|
1347
|
-
# http body (model)
|
|
1348
|
-
post_body = opts[:debug_body]
|
|
1349
|
-
|
|
1350
|
-
# return_type
|
|
1351
|
-
return_type = opts[:debug_return_type] || 'OtelConfig'
|
|
1352
|
-
|
|
1353
|
-
# auth_names
|
|
1354
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1355
|
-
|
|
1356
|
-
new_options = opts.merge(
|
|
1357
|
-
:operation => :"OrganizationsApi.get_organization_otel_config_by_sandbox_auth_token",
|
|
1358
|
-
:header_params => header_params,
|
|
1359
|
-
:query_params => query_params,
|
|
1360
|
-
:form_params => form_params,
|
|
1361
|
-
:body => post_body,
|
|
1362
|
-
:auth_names => auth_names,
|
|
1363
|
-
:return_type => return_type
|
|
1364
|
-
)
|
|
1365
|
-
|
|
1366
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1367
|
-
if @api_client.config.debugging
|
|
1368
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#get_organization_otel_config_by_sandbox_auth_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1369
|
-
end
|
|
1370
|
-
return data, status_code, headers
|
|
1371
|
-
end
|
|
1372
|
-
|
|
1373
|
-
# Get organization current usage overview
|
|
1374
|
-
# @param organization_id [String] Organization ID
|
|
1375
|
-
# @param [Hash] opts the optional parameters
|
|
1376
|
-
# @return [OrganizationUsageOverview]
|
|
1377
|
-
def get_organization_usage_overview(organization_id, opts = {})
|
|
1378
|
-
data, _status_code, _headers = get_organization_usage_overview_with_http_info(organization_id, opts)
|
|
1379
|
-
data
|
|
1380
|
-
end
|
|
1381
|
-
|
|
1382
|
-
# Get organization current usage overview
|
|
1383
|
-
# @param organization_id [String] Organization ID
|
|
1384
|
-
# @param [Hash] opts the optional parameters
|
|
1385
|
-
# @return [Array<(OrganizationUsageOverview, Integer, Hash)>] OrganizationUsageOverview data, response status code and response headers
|
|
1386
|
-
def get_organization_usage_overview_with_http_info(organization_id, opts = {})
|
|
1387
|
-
if @api_client.config.debugging
|
|
1388
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization_usage_overview ...'
|
|
1389
|
-
end
|
|
1390
|
-
# verify the required parameter 'organization_id' is set
|
|
1391
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
1392
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.get_organization_usage_overview"
|
|
1393
|
-
end
|
|
1394
|
-
# resource path
|
|
1395
|
-
local_var_path = '/organizations/{organizationId}/usage'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
1396
|
-
|
|
1397
|
-
# query parameters
|
|
1398
|
-
query_params = opts[:query_params] || {}
|
|
1399
|
-
|
|
1400
|
-
# header parameters
|
|
1401
|
-
header_params = opts[:header_params] || {}
|
|
1402
|
-
# HTTP header 'Accept' (if needed)
|
|
1403
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1404
|
-
|
|
1405
|
-
# form parameters
|
|
1406
|
-
form_params = opts[:form_params] || {}
|
|
1407
|
-
|
|
1408
|
-
# http body (model)
|
|
1409
|
-
post_body = opts[:debug_body]
|
|
1410
|
-
|
|
1411
|
-
# return_type
|
|
1412
|
-
return_type = opts[:debug_return_type] || 'OrganizationUsageOverview'
|
|
1413
|
-
|
|
1414
|
-
# auth_names
|
|
1415
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1416
|
-
|
|
1417
|
-
new_options = opts.merge(
|
|
1418
|
-
:operation => :"OrganizationsApi.get_organization_usage_overview",
|
|
1419
|
-
:header_params => header_params,
|
|
1420
|
-
:query_params => query_params,
|
|
1421
|
-
:form_params => form_params,
|
|
1422
|
-
:body => post_body,
|
|
1423
|
-
:auth_names => auth_names,
|
|
1424
|
-
:return_type => return_type
|
|
1425
|
-
)
|
|
1426
|
-
|
|
1427
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1428
|
-
if @api_client.config.debugging
|
|
1429
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#get_organization_usage_overview\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1430
|
-
end
|
|
1431
|
-
return data, status_code, headers
|
|
1432
|
-
end
|
|
1433
|
-
|
|
1434
|
-
# Get region by ID
|
|
1435
|
-
# @param id [String] Region ID
|
|
1436
|
-
# @param [Hash] opts the optional parameters
|
|
1437
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1438
|
-
# @return [Region]
|
|
1439
|
-
def get_region_by_id(id, opts = {})
|
|
1440
|
-
data, _status_code, _headers = get_region_by_id_with_http_info(id, opts)
|
|
1441
|
-
data
|
|
1442
|
-
end
|
|
1443
|
-
|
|
1444
|
-
# Get region by ID
|
|
1445
|
-
# @param id [String] Region ID
|
|
1446
|
-
# @param [Hash] opts the optional parameters
|
|
1447
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1448
|
-
# @return [Array<(Region, Integer, Hash)>] Region data, response status code and response headers
|
|
1449
|
-
def get_region_by_id_with_http_info(id, opts = {})
|
|
1450
|
-
if @api_client.config.debugging
|
|
1451
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_region_by_id ...'
|
|
1452
|
-
end
|
|
1453
|
-
# verify the required parameter 'id' is set
|
|
1454
|
-
if @api_client.config.client_side_validation && id.nil?
|
|
1455
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.get_region_by_id"
|
|
1456
|
-
end
|
|
1457
|
-
# resource path
|
|
1458
|
-
local_var_path = '/regions/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1459
|
-
|
|
1460
|
-
# query parameters
|
|
1461
|
-
query_params = opts[:query_params] || {}
|
|
1462
|
-
|
|
1463
|
-
# header parameters
|
|
1464
|
-
header_params = opts[:header_params] || {}
|
|
1465
|
-
# HTTP header 'Accept' (if needed)
|
|
1466
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1467
|
-
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
1468
|
-
|
|
1469
|
-
# form parameters
|
|
1470
|
-
form_params = opts[:form_params] || {}
|
|
1471
|
-
|
|
1472
|
-
# http body (model)
|
|
1473
|
-
post_body = opts[:debug_body]
|
|
1474
|
-
|
|
1475
|
-
# return_type
|
|
1476
|
-
return_type = opts[:debug_return_type] || 'Region'
|
|
1477
|
-
|
|
1478
|
-
# auth_names
|
|
1479
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1480
|
-
|
|
1481
|
-
new_options = opts.merge(
|
|
1482
|
-
:operation => :"OrganizationsApi.get_region_by_id",
|
|
1483
|
-
:header_params => header_params,
|
|
1484
|
-
:query_params => query_params,
|
|
1485
|
-
:form_params => form_params,
|
|
1486
|
-
:body => post_body,
|
|
1487
|
-
:auth_names => auth_names,
|
|
1488
|
-
:return_type => return_type
|
|
1489
|
-
)
|
|
1490
|
-
|
|
1491
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1492
|
-
if @api_client.config.debugging
|
|
1493
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#get_region_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1494
|
-
end
|
|
1495
|
-
return data, status_code, headers
|
|
1496
|
-
end
|
|
1497
|
-
|
|
1498
|
-
# Get sandbox identity by sandbox auth token
|
|
1499
|
-
# @param auth_token [String] Sandbox Auth Token
|
|
1500
|
-
# @param [Hash] opts the optional parameters
|
|
1501
|
-
# @return [SandboxIdentity]
|
|
1502
|
-
def get_sandbox_identity_by_sandbox_auth_token(auth_token, opts = {})
|
|
1503
|
-
data, _status_code, _headers = get_sandbox_identity_by_sandbox_auth_token_with_http_info(auth_token, opts)
|
|
1504
|
-
data
|
|
1505
|
-
end
|
|
1506
|
-
|
|
1507
|
-
# Get sandbox identity by sandbox auth token
|
|
1508
|
-
# @param auth_token [String] Sandbox Auth Token
|
|
1509
|
-
# @param [Hash] opts the optional parameters
|
|
1510
|
-
# @return [Array<(SandboxIdentity, Integer, Hash)>] SandboxIdentity data, response status code and response headers
|
|
1511
|
-
def get_sandbox_identity_by_sandbox_auth_token_with_http_info(auth_token, opts = {})
|
|
1512
|
-
if @api_client.config.debugging
|
|
1513
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_sandbox_identity_by_sandbox_auth_token ...'
|
|
1514
|
-
end
|
|
1515
|
-
# verify the required parameter 'auth_token' is set
|
|
1516
|
-
if @api_client.config.client_side_validation && auth_token.nil?
|
|
1517
|
-
fail ArgumentError, "Missing the required parameter 'auth_token' when calling OrganizationsApi.get_sandbox_identity_by_sandbox_auth_token"
|
|
1518
|
-
end
|
|
1519
|
-
# resource path
|
|
1520
|
-
local_var_path = '/organizations/sandbox-identity/by-sandbox-auth-token/{authToken}'.sub('{' + 'authToken' + '}', CGI.escape(auth_token.to_s))
|
|
1521
|
-
|
|
1522
|
-
# query parameters
|
|
1523
|
-
query_params = opts[:query_params] || {}
|
|
1524
|
-
|
|
1525
|
-
# header parameters
|
|
1526
|
-
header_params = opts[:header_params] || {}
|
|
1527
|
-
# HTTP header 'Accept' (if needed)
|
|
1528
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1529
|
-
|
|
1530
|
-
# form parameters
|
|
1531
|
-
form_params = opts[:form_params] || {}
|
|
1532
|
-
|
|
1533
|
-
# http body (model)
|
|
1534
|
-
post_body = opts[:debug_body]
|
|
1535
|
-
|
|
1536
|
-
# return_type
|
|
1537
|
-
return_type = opts[:debug_return_type] || 'SandboxIdentity'
|
|
1538
|
-
|
|
1539
|
-
# auth_names
|
|
1540
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1541
|
-
|
|
1542
|
-
new_options = opts.merge(
|
|
1543
|
-
:operation => :"OrganizationsApi.get_sandbox_identity_by_sandbox_auth_token",
|
|
1544
|
-
:header_params => header_params,
|
|
1545
|
-
:query_params => query_params,
|
|
1546
|
-
:form_params => form_params,
|
|
1547
|
-
:body => post_body,
|
|
1548
|
-
:auth_names => auth_names,
|
|
1549
|
-
:return_type => return_type
|
|
1550
|
-
)
|
|
1551
|
-
|
|
1552
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1553
|
-
if @api_client.config.debugging
|
|
1554
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#get_sandbox_identity_by_sandbox_auth_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1555
|
-
end
|
|
1556
|
-
return data, status_code, headers
|
|
1557
|
-
end
|
|
1558
|
-
|
|
1559
|
-
# Leave organization
|
|
1560
|
-
# @param organization_id [String] Organization ID
|
|
1561
|
-
# @param [Hash] opts the optional parameters
|
|
1562
|
-
# @return [nil]
|
|
1563
|
-
def leave_organization(organization_id, opts = {})
|
|
1564
|
-
leave_organization_with_http_info(organization_id, opts)
|
|
1565
|
-
nil
|
|
1566
|
-
end
|
|
1567
|
-
|
|
1568
|
-
# Leave organization
|
|
1569
|
-
# @param organization_id [String] Organization ID
|
|
1570
|
-
# @param [Hash] opts the optional parameters
|
|
1571
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1572
|
-
def leave_organization_with_http_info(organization_id, opts = {})
|
|
1573
|
-
if @api_client.config.debugging
|
|
1574
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.leave_organization ...'
|
|
1575
|
-
end
|
|
1576
|
-
# verify the required parameter 'organization_id' is set
|
|
1577
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
1578
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.leave_organization"
|
|
1579
|
-
end
|
|
1580
|
-
# resource path
|
|
1581
|
-
local_var_path = '/organizations/{organizationId}/leave'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
1582
|
-
|
|
1583
|
-
# query parameters
|
|
1584
|
-
query_params = opts[:query_params] || {}
|
|
1585
|
-
|
|
1586
|
-
# header parameters
|
|
1587
|
-
header_params = opts[:header_params] || {}
|
|
1588
|
-
|
|
1589
|
-
# form parameters
|
|
1590
|
-
form_params = opts[:form_params] || {}
|
|
1591
|
-
|
|
1592
|
-
# http body (model)
|
|
1593
|
-
post_body = opts[:debug_body]
|
|
1594
|
-
|
|
1595
|
-
# return_type
|
|
1596
|
-
return_type = opts[:debug_return_type]
|
|
1597
|
-
|
|
1598
|
-
# auth_names
|
|
1599
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1600
|
-
|
|
1601
|
-
new_options = opts.merge(
|
|
1602
|
-
:operation => :"OrganizationsApi.leave_organization",
|
|
1603
|
-
:header_params => header_params,
|
|
1604
|
-
:query_params => query_params,
|
|
1605
|
-
:form_params => form_params,
|
|
1606
|
-
:body => post_body,
|
|
1607
|
-
:auth_names => auth_names,
|
|
1608
|
-
:return_type => return_type
|
|
1609
|
-
)
|
|
1610
|
-
|
|
1611
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1612
|
-
if @api_client.config.debugging
|
|
1613
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#leave_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1614
|
-
end
|
|
1615
|
-
return data, status_code, headers
|
|
1616
|
-
end
|
|
1617
|
-
|
|
1618
|
-
# List all available regions for the organization
|
|
1619
|
-
# @param [Hash] opts the optional parameters
|
|
1620
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1621
|
-
# @return [Array<Region>]
|
|
1622
|
-
def list_available_regions(opts = {})
|
|
1623
|
-
data, _status_code, _headers = list_available_regions_with_http_info(opts)
|
|
1624
|
-
data
|
|
1625
|
-
end
|
|
1626
|
-
|
|
1627
|
-
# List all available regions for the organization
|
|
1628
|
-
# @param [Hash] opts the optional parameters
|
|
1629
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
1630
|
-
# @return [Array<(Array<Region>, Integer, Hash)>] Array<Region> data, response status code and response headers
|
|
1631
|
-
def list_available_regions_with_http_info(opts = {})
|
|
1632
|
-
if @api_client.config.debugging
|
|
1633
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_available_regions ...'
|
|
1634
|
-
end
|
|
1635
|
-
# resource path
|
|
1636
|
-
local_var_path = '/regions'
|
|
1637
|
-
|
|
1638
|
-
# query parameters
|
|
1639
|
-
query_params = opts[:query_params] || {}
|
|
1640
|
-
|
|
1641
|
-
# header parameters
|
|
1642
|
-
header_params = opts[:header_params] || {}
|
|
1643
|
-
# HTTP header 'Accept' (if needed)
|
|
1644
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1645
|
-
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
1646
|
-
|
|
1647
|
-
# form parameters
|
|
1648
|
-
form_params = opts[:form_params] || {}
|
|
1649
|
-
|
|
1650
|
-
# http body (model)
|
|
1651
|
-
post_body = opts[:debug_body]
|
|
1652
|
-
|
|
1653
|
-
# return_type
|
|
1654
|
-
return_type = opts[:debug_return_type] || 'Array<Region>'
|
|
1655
|
-
|
|
1656
|
-
# auth_names
|
|
1657
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1658
|
-
|
|
1659
|
-
new_options = opts.merge(
|
|
1660
|
-
:operation => :"OrganizationsApi.list_available_regions",
|
|
1661
|
-
:header_params => header_params,
|
|
1662
|
-
:query_params => query_params,
|
|
1663
|
-
:form_params => form_params,
|
|
1664
|
-
:body => post_body,
|
|
1665
|
-
:auth_names => auth_names,
|
|
1666
|
-
:return_type => return_type
|
|
1667
|
-
)
|
|
1668
|
-
|
|
1669
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1670
|
-
if @api_client.config.debugging
|
|
1671
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#list_available_regions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1672
|
-
end
|
|
1673
|
-
return data, status_code, headers
|
|
1674
|
-
end
|
|
1675
|
-
|
|
1676
|
-
# List available sandbox classes for organization
|
|
1677
|
-
# @param organization_id [String] Organization ID
|
|
1678
|
-
# @param [Hash] opts the optional parameters
|
|
1679
|
-
# @return [Array<AvailableSandboxClass>]
|
|
1680
|
-
def list_available_sandbox_classes(organization_id, opts = {})
|
|
1681
|
-
data, _status_code, _headers = list_available_sandbox_classes_with_http_info(organization_id, opts)
|
|
1682
|
-
data
|
|
1683
|
-
end
|
|
1684
|
-
|
|
1685
|
-
# List available sandbox classes for organization
|
|
1686
|
-
# @param organization_id [String] Organization ID
|
|
1687
|
-
# @param [Hash] opts the optional parameters
|
|
1688
|
-
# @return [Array<(Array<AvailableSandboxClass>, Integer, Hash)>] Array<AvailableSandboxClass> data, response status code and response headers
|
|
1689
|
-
def list_available_sandbox_classes_with_http_info(organization_id, opts = {})
|
|
1690
|
-
if @api_client.config.debugging
|
|
1691
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_available_sandbox_classes ...'
|
|
1692
|
-
end
|
|
1693
|
-
# verify the required parameter 'organization_id' is set
|
|
1694
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
1695
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.list_available_sandbox_classes"
|
|
1696
|
-
end
|
|
1697
|
-
# resource path
|
|
1698
|
-
local_var_path = '/organizations/{organizationId}/available-sandbox-classes'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
1699
|
-
|
|
1700
|
-
# query parameters
|
|
1701
|
-
query_params = opts[:query_params] || {}
|
|
1702
|
-
|
|
1703
|
-
# header parameters
|
|
1704
|
-
header_params = opts[:header_params] || {}
|
|
1705
|
-
# HTTP header 'Accept' (if needed)
|
|
1706
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1707
|
-
|
|
1708
|
-
# form parameters
|
|
1709
|
-
form_params = opts[:form_params] || {}
|
|
1710
|
-
|
|
1711
|
-
# http body (model)
|
|
1712
|
-
post_body = opts[:debug_body]
|
|
1713
|
-
|
|
1714
|
-
# return_type
|
|
1715
|
-
return_type = opts[:debug_return_type] || 'Array<AvailableSandboxClass>'
|
|
1716
|
-
|
|
1717
|
-
# auth_names
|
|
1718
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1719
|
-
|
|
1720
|
-
new_options = opts.merge(
|
|
1721
|
-
:operation => :"OrganizationsApi.list_available_sandbox_classes",
|
|
1722
|
-
:header_params => header_params,
|
|
1723
|
-
:query_params => query_params,
|
|
1724
|
-
:form_params => form_params,
|
|
1725
|
-
:body => post_body,
|
|
1726
|
-
:auth_names => auth_names,
|
|
1727
|
-
:return_type => return_type
|
|
1728
|
-
)
|
|
1729
|
-
|
|
1730
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1731
|
-
if @api_client.config.debugging
|
|
1732
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#list_available_sandbox_classes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1733
|
-
end
|
|
1734
|
-
return data, status_code, headers
|
|
1735
|
-
end
|
|
1736
|
-
|
|
1737
|
-
# List organization identity providers
|
|
1738
|
-
# @param organization_id [String] Organization ID
|
|
1739
|
-
# @param [Hash] opts the optional parameters
|
|
1740
|
-
# @return [Array<IdentityProvider>]
|
|
1741
|
-
def list_organization_identity_providers(organization_id, opts = {})
|
|
1742
|
-
data, _status_code, _headers = list_organization_identity_providers_with_http_info(organization_id, opts)
|
|
1743
|
-
data
|
|
1744
|
-
end
|
|
1745
|
-
|
|
1746
|
-
# List organization identity providers
|
|
1747
|
-
# @param organization_id [String] Organization ID
|
|
1748
|
-
# @param [Hash] opts the optional parameters
|
|
1749
|
-
# @return [Array<(Array<IdentityProvider>, Integer, Hash)>] Array<IdentityProvider> data, response status code and response headers
|
|
1750
|
-
def list_organization_identity_providers_with_http_info(organization_id, opts = {})
|
|
1751
|
-
if @api_client.config.debugging
|
|
1752
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_identity_providers ...'
|
|
1753
|
-
end
|
|
1754
|
-
# verify the required parameter 'organization_id' is set
|
|
1755
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
1756
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.list_organization_identity_providers"
|
|
1757
|
-
end
|
|
1758
|
-
# resource path
|
|
1759
|
-
local_var_path = '/organizations/{organizationId}/identity-providers'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
1760
|
-
|
|
1761
|
-
# query parameters
|
|
1762
|
-
query_params = opts[:query_params] || {}
|
|
1763
|
-
|
|
1764
|
-
# header parameters
|
|
1765
|
-
header_params = opts[:header_params] || {}
|
|
1766
|
-
# HTTP header 'Accept' (if needed)
|
|
1767
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1768
|
-
|
|
1769
|
-
# form parameters
|
|
1770
|
-
form_params = opts[:form_params] || {}
|
|
1771
|
-
|
|
1772
|
-
# http body (model)
|
|
1773
|
-
post_body = opts[:debug_body]
|
|
1774
|
-
|
|
1775
|
-
# return_type
|
|
1776
|
-
return_type = opts[:debug_return_type] || 'Array<IdentityProvider>'
|
|
1777
|
-
|
|
1778
|
-
# auth_names
|
|
1779
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1780
|
-
|
|
1781
|
-
new_options = opts.merge(
|
|
1782
|
-
:operation => :"OrganizationsApi.list_organization_identity_providers",
|
|
1783
|
-
:header_params => header_params,
|
|
1784
|
-
:query_params => query_params,
|
|
1785
|
-
:form_params => form_params,
|
|
1786
|
-
:body => post_body,
|
|
1787
|
-
:auth_names => auth_names,
|
|
1788
|
-
:return_type => return_type
|
|
1789
|
-
)
|
|
1790
|
-
|
|
1791
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1792
|
-
if @api_client.config.debugging
|
|
1793
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#list_organization_identity_providers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1794
|
-
end
|
|
1795
|
-
return data, status_code, headers
|
|
1796
|
-
end
|
|
1797
|
-
|
|
1798
|
-
# List pending organization invitations
|
|
1799
|
-
# @param organization_id [String] Organization ID
|
|
1800
|
-
# @param [Hash] opts the optional parameters
|
|
1801
|
-
# @return [Array<OrganizationInvitation>]
|
|
1802
|
-
def list_organization_invitations(organization_id, opts = {})
|
|
1803
|
-
data, _status_code, _headers = list_organization_invitations_with_http_info(organization_id, opts)
|
|
1804
|
-
data
|
|
1805
|
-
end
|
|
1806
|
-
|
|
1807
|
-
# List pending organization invitations
|
|
1808
|
-
# @param organization_id [String] Organization ID
|
|
1809
|
-
# @param [Hash] opts the optional parameters
|
|
1810
|
-
# @return [Array<(Array<OrganizationInvitation>, Integer, Hash)>] Array<OrganizationInvitation> data, response status code and response headers
|
|
1811
|
-
def list_organization_invitations_with_http_info(organization_id, opts = {})
|
|
1812
|
-
if @api_client.config.debugging
|
|
1813
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_invitations ...'
|
|
1814
|
-
end
|
|
1815
|
-
# verify the required parameter 'organization_id' is set
|
|
1816
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
1817
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.list_organization_invitations"
|
|
1818
|
-
end
|
|
1819
|
-
# resource path
|
|
1820
|
-
local_var_path = '/organizations/{organizationId}/invitations'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
1821
|
-
|
|
1822
|
-
# query parameters
|
|
1823
|
-
query_params = opts[:query_params] || {}
|
|
1824
|
-
|
|
1825
|
-
# header parameters
|
|
1826
|
-
header_params = opts[:header_params] || {}
|
|
1827
|
-
# HTTP header 'Accept' (if needed)
|
|
1828
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1829
|
-
|
|
1830
|
-
# form parameters
|
|
1831
|
-
form_params = opts[:form_params] || {}
|
|
1832
|
-
|
|
1833
|
-
# http body (model)
|
|
1834
|
-
post_body = opts[:debug_body]
|
|
1835
|
-
|
|
1836
|
-
# return_type
|
|
1837
|
-
return_type = opts[:debug_return_type] || 'Array<OrganizationInvitation>'
|
|
1838
|
-
|
|
1839
|
-
# auth_names
|
|
1840
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1841
|
-
|
|
1842
|
-
new_options = opts.merge(
|
|
1843
|
-
:operation => :"OrganizationsApi.list_organization_invitations",
|
|
1844
|
-
:header_params => header_params,
|
|
1845
|
-
:query_params => query_params,
|
|
1846
|
-
:form_params => form_params,
|
|
1847
|
-
:body => post_body,
|
|
1848
|
-
:auth_names => auth_names,
|
|
1849
|
-
:return_type => return_type
|
|
1850
|
-
)
|
|
1851
|
-
|
|
1852
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1853
|
-
if @api_client.config.debugging
|
|
1854
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#list_organization_invitations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1855
|
-
end
|
|
1856
|
-
return data, status_code, headers
|
|
1857
|
-
end
|
|
1858
|
-
|
|
1859
|
-
# List organization invitations for authenticated user
|
|
1860
|
-
# @param [Hash] opts the optional parameters
|
|
1861
|
-
# @return [Array<OrganizationInvitation>]
|
|
1862
|
-
def list_organization_invitations_for_authenticated_user(opts = {})
|
|
1863
|
-
data, _status_code, _headers = list_organization_invitations_for_authenticated_user_with_http_info(opts)
|
|
1864
|
-
data
|
|
1865
|
-
end
|
|
1866
|
-
|
|
1867
|
-
# List organization invitations for authenticated user
|
|
1868
|
-
# @param [Hash] opts the optional parameters
|
|
1869
|
-
# @return [Array<(Array<OrganizationInvitation>, Integer, Hash)>] Array<OrganizationInvitation> data, response status code and response headers
|
|
1870
|
-
def list_organization_invitations_for_authenticated_user_with_http_info(opts = {})
|
|
1871
|
-
if @api_client.config.debugging
|
|
1872
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_invitations_for_authenticated_user ...'
|
|
1873
|
-
end
|
|
1874
|
-
# resource path
|
|
1875
|
-
local_var_path = '/organizations/invitations'
|
|
1876
|
-
|
|
1877
|
-
# query parameters
|
|
1878
|
-
query_params = opts[:query_params] || {}
|
|
1879
|
-
|
|
1880
|
-
# header parameters
|
|
1881
|
-
header_params = opts[:header_params] || {}
|
|
1882
|
-
# HTTP header 'Accept' (if needed)
|
|
1883
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1884
|
-
|
|
1885
|
-
# form parameters
|
|
1886
|
-
form_params = opts[:form_params] || {}
|
|
1887
|
-
|
|
1888
|
-
# http body (model)
|
|
1889
|
-
post_body = opts[:debug_body]
|
|
1890
|
-
|
|
1891
|
-
# return_type
|
|
1892
|
-
return_type = opts[:debug_return_type] || 'Array<OrganizationInvitation>'
|
|
1893
|
-
|
|
1894
|
-
# auth_names
|
|
1895
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1896
|
-
|
|
1897
|
-
new_options = opts.merge(
|
|
1898
|
-
:operation => :"OrganizationsApi.list_organization_invitations_for_authenticated_user",
|
|
1899
|
-
:header_params => header_params,
|
|
1900
|
-
:query_params => query_params,
|
|
1901
|
-
:form_params => form_params,
|
|
1902
|
-
:body => post_body,
|
|
1903
|
-
:auth_names => auth_names,
|
|
1904
|
-
:return_type => return_type
|
|
1905
|
-
)
|
|
1906
|
-
|
|
1907
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1908
|
-
if @api_client.config.debugging
|
|
1909
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#list_organization_invitations_for_authenticated_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1910
|
-
end
|
|
1911
|
-
return data, status_code, headers
|
|
1912
|
-
end
|
|
1913
|
-
|
|
1914
|
-
# List organization members
|
|
1915
|
-
# @param organization_id [String] Organization ID
|
|
1916
|
-
# @param [Hash] opts the optional parameters
|
|
1917
|
-
# @return [Array<OrganizationUser>]
|
|
1918
|
-
def list_organization_members(organization_id, opts = {})
|
|
1919
|
-
data, _status_code, _headers = list_organization_members_with_http_info(organization_id, opts)
|
|
1920
|
-
data
|
|
1921
|
-
end
|
|
1922
|
-
|
|
1923
|
-
# List organization members
|
|
1924
|
-
# @param organization_id [String] Organization ID
|
|
1925
|
-
# @param [Hash] opts the optional parameters
|
|
1926
|
-
# @return [Array<(Array<OrganizationUser>, Integer, Hash)>] Array<OrganizationUser> data, response status code and response headers
|
|
1927
|
-
def list_organization_members_with_http_info(organization_id, opts = {})
|
|
1928
|
-
if @api_client.config.debugging
|
|
1929
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_members ...'
|
|
1930
|
-
end
|
|
1931
|
-
# verify the required parameter 'organization_id' is set
|
|
1932
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
1933
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.list_organization_members"
|
|
1934
|
-
end
|
|
1935
|
-
# resource path
|
|
1936
|
-
local_var_path = '/organizations/{organizationId}/users'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
1937
|
-
|
|
1938
|
-
# query parameters
|
|
1939
|
-
query_params = opts[:query_params] || {}
|
|
1940
|
-
|
|
1941
|
-
# header parameters
|
|
1942
|
-
header_params = opts[:header_params] || {}
|
|
1943
|
-
# HTTP header 'Accept' (if needed)
|
|
1944
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1945
|
-
|
|
1946
|
-
# form parameters
|
|
1947
|
-
form_params = opts[:form_params] || {}
|
|
1948
|
-
|
|
1949
|
-
# http body (model)
|
|
1950
|
-
post_body = opts[:debug_body]
|
|
1951
|
-
|
|
1952
|
-
# return_type
|
|
1953
|
-
return_type = opts[:debug_return_type] || 'Array<OrganizationUser>'
|
|
1954
|
-
|
|
1955
|
-
# auth_names
|
|
1956
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1957
|
-
|
|
1958
|
-
new_options = opts.merge(
|
|
1959
|
-
:operation => :"OrganizationsApi.list_organization_members",
|
|
1960
|
-
:header_params => header_params,
|
|
1961
|
-
:query_params => query_params,
|
|
1962
|
-
:form_params => form_params,
|
|
1963
|
-
:body => post_body,
|
|
1964
|
-
:auth_names => auth_names,
|
|
1965
|
-
:return_type => return_type
|
|
1966
|
-
)
|
|
1967
|
-
|
|
1968
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
1969
|
-
if @api_client.config.debugging
|
|
1970
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#list_organization_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1971
|
-
end
|
|
1972
|
-
return data, status_code, headers
|
|
1973
|
-
end
|
|
1974
|
-
|
|
1975
|
-
# List organization roles
|
|
1976
|
-
# @param organization_id [String] Organization ID
|
|
1977
|
-
# @param [Hash] opts the optional parameters
|
|
1978
|
-
# @return [Array<OrganizationRole>]
|
|
1979
|
-
def list_organization_roles(organization_id, opts = {})
|
|
1980
|
-
data, _status_code, _headers = list_organization_roles_with_http_info(organization_id, opts)
|
|
1981
|
-
data
|
|
1982
|
-
end
|
|
1983
|
-
|
|
1984
|
-
# List organization roles
|
|
1985
|
-
# @param organization_id [String] Organization ID
|
|
1986
|
-
# @param [Hash] opts the optional parameters
|
|
1987
|
-
# @return [Array<(Array<OrganizationRole>, Integer, Hash)>] Array<OrganizationRole> data, response status code and response headers
|
|
1988
|
-
def list_organization_roles_with_http_info(organization_id, opts = {})
|
|
674
|
+
# Get organization by sandbox ID
|
|
675
|
+
# @param sandbox_id [String] Sandbox ID
|
|
676
|
+
# @param [Hash] opts the optional parameters
|
|
677
|
+
# @return [Array<(Organization, Integer, Hash)>] Organization data, response status code and response headers
|
|
678
|
+
def get_organization_by_sandbox_id_with_http_info(sandbox_id, opts = {})
|
|
1989
679
|
if @api_client.config.debugging
|
|
1990
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
|
680
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization_by_sandbox_id ...'
|
|
1991
681
|
end
|
|
1992
|
-
# verify the required parameter '
|
|
1993
|
-
if @api_client.config.client_side_validation &&
|
|
1994
|
-
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"
|
|
1995
685
|
end
|
|
1996
686
|
# resource path
|
|
1997
|
-
local_var_path = '/organizations/{
|
|
687
|
+
local_var_path = '/organizations/by-sandbox-id/{sandboxId}'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
1998
688
|
|
|
1999
689
|
# query parameters
|
|
2000
690
|
query_params = opts[:query_params] || {}
|
|
@@ -2011,13 +701,13 @@ module DaytonaApiClient
|
|
|
2011
701
|
post_body = opts[:debug_body]
|
|
2012
702
|
|
|
2013
703
|
# return_type
|
|
2014
|
-
return_type = opts[:debug_return_type] || '
|
|
704
|
+
return_type = opts[:debug_return_type] || 'Organization'
|
|
2015
705
|
|
|
2016
706
|
# auth_names
|
|
2017
707
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2018
708
|
|
|
2019
709
|
new_options = opts.merge(
|
|
2020
|
-
:operation => :"OrganizationsApi.
|
|
710
|
+
:operation => :"OrganizationsApi.get_organization_by_sandbox_id",
|
|
2021
711
|
:header_params => header_params,
|
|
2022
712
|
:query_params => query_params,
|
|
2023
713
|
:form_params => form_params,
|
|
@@ -2028,28 +718,28 @@ module DaytonaApiClient
|
|
|
2028
718
|
|
|
2029
719
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2030
720
|
if @api_client.config.debugging
|
|
2031
|
-
@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}"
|
|
2032
722
|
end
|
|
2033
723
|
return data, status_code, headers
|
|
2034
724
|
end
|
|
2035
725
|
|
|
2036
|
-
#
|
|
726
|
+
# Get count of organization invitations for authenticated user
|
|
2037
727
|
# @param [Hash] opts the optional parameters
|
|
2038
|
-
# @return [
|
|
2039
|
-
def
|
|
2040
|
-
data, _status_code, _headers =
|
|
728
|
+
# @return [Float]
|
|
729
|
+
def get_organization_invitations_count_for_authenticated_user(opts = {})
|
|
730
|
+
data, _status_code, _headers = get_organization_invitations_count_for_authenticated_user_with_http_info(opts)
|
|
2041
731
|
data
|
|
2042
732
|
end
|
|
2043
733
|
|
|
2044
|
-
#
|
|
734
|
+
# Get count of organization invitations for authenticated user
|
|
2045
735
|
# @param [Hash] opts the optional parameters
|
|
2046
|
-
# @return [Array<(
|
|
2047
|
-
def
|
|
736
|
+
# @return [Array<(Float, Integer, Hash)>] Float data, response status code and response headers
|
|
737
|
+
def get_organization_invitations_count_for_authenticated_user_with_http_info(opts = {})
|
|
2048
738
|
if @api_client.config.debugging
|
|
2049
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
|
739
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization_invitations_count_for_authenticated_user ...'
|
|
2050
740
|
end
|
|
2051
741
|
# resource path
|
|
2052
|
-
local_var_path = '/organizations'
|
|
742
|
+
local_var_path = '/organizations/invitations/count'
|
|
2053
743
|
|
|
2054
744
|
# query parameters
|
|
2055
745
|
query_params = opts[:query_params] || {}
|
|
@@ -2066,13 +756,13 @@ module DaytonaApiClient
|
|
|
2066
756
|
post_body = opts[:debug_body]
|
|
2067
757
|
|
|
2068
758
|
# return_type
|
|
2069
|
-
return_type = opts[:debug_return_type] || '
|
|
759
|
+
return_type = opts[:debug_return_type] || 'Float'
|
|
2070
760
|
|
|
2071
761
|
# auth_names
|
|
2072
762
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2073
763
|
|
|
2074
764
|
new_options = opts.merge(
|
|
2075
|
-
:operation => :"OrganizationsApi.
|
|
765
|
+
:operation => :"OrganizationsApi.get_organization_invitations_count_for_authenticated_user",
|
|
2076
766
|
:header_params => header_params,
|
|
2077
767
|
:query_params => query_params,
|
|
2078
768
|
:form_params => form_params,
|
|
@@ -2083,34 +773,34 @@ module DaytonaApiClient
|
|
|
2083
773
|
|
|
2084
774
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2085
775
|
if @api_client.config.debugging
|
|
2086
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#
|
|
776
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#get_organization_invitations_count_for_authenticated_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2087
777
|
end
|
|
2088
778
|
return data, status_code, headers
|
|
2089
779
|
end
|
|
2090
780
|
|
|
2091
|
-
#
|
|
781
|
+
# Get organization current usage overview
|
|
2092
782
|
# @param organization_id [String] Organization ID
|
|
2093
783
|
# @param [Hash] opts the optional parameters
|
|
2094
|
-
# @return [
|
|
2095
|
-
def
|
|
2096
|
-
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)
|
|
2097
787
|
data
|
|
2098
788
|
end
|
|
2099
789
|
|
|
2100
|
-
#
|
|
790
|
+
# Get organization current usage overview
|
|
2101
791
|
# @param organization_id [String] Organization ID
|
|
2102
792
|
# @param [Hash] opts the optional parameters
|
|
2103
|
-
# @return [Array<(
|
|
2104
|
-
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 = {})
|
|
2105
795
|
if @api_client.config.debugging
|
|
2106
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
|
796
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization_usage_overview ...'
|
|
2107
797
|
end
|
|
2108
798
|
# verify the required parameter 'organization_id' is set
|
|
2109
799
|
if @api_client.config.client_side_validation && organization_id.nil?
|
|
2110
|
-
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"
|
|
2111
801
|
end
|
|
2112
802
|
# resource path
|
|
2113
|
-
local_var_path = '/organizations/{organizationId}/
|
|
803
|
+
local_var_path = '/organizations/{organizationId}/usage'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
2114
804
|
|
|
2115
805
|
# query parameters
|
|
2116
806
|
query_params = opts[:query_params] || {}
|
|
@@ -2127,13 +817,13 @@ module DaytonaApiClient
|
|
|
2127
817
|
post_body = opts[:debug_body]
|
|
2128
818
|
|
|
2129
819
|
# return_type
|
|
2130
|
-
return_type = opts[:debug_return_type] || '
|
|
820
|
+
return_type = opts[:debug_return_type] || 'OrganizationUsageOverview'
|
|
2131
821
|
|
|
2132
822
|
# auth_names
|
|
2133
823
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2134
824
|
|
|
2135
825
|
new_options = opts.merge(
|
|
2136
|
-
:operation => :"OrganizationsApi.
|
|
826
|
+
:operation => :"OrganizationsApi.get_organization_usage_overview",
|
|
2137
827
|
:header_params => header_params,
|
|
2138
828
|
:query_params => query_params,
|
|
2139
829
|
:form_params => form_params,
|
|
@@ -2144,45 +834,40 @@ module DaytonaApiClient
|
|
|
2144
834
|
|
|
2145
835
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2146
836
|
if @api_client.config.debugging
|
|
2147
|
-
@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}"
|
|
2148
838
|
end
|
|
2149
839
|
return data, status_code, headers
|
|
2150
840
|
end
|
|
2151
841
|
|
|
2152
|
-
#
|
|
2153
|
-
# @param
|
|
842
|
+
# Leave organization
|
|
843
|
+
# @param organization_id [String] Organization ID
|
|
2154
844
|
# @param [Hash] opts the optional parameters
|
|
2155
|
-
# @
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
data
|
|
845
|
+
# @return [nil]
|
|
846
|
+
def leave_organization(organization_id, opts = {})
|
|
847
|
+
leave_organization_with_http_info(organization_id, opts)
|
|
848
|
+
nil
|
|
2160
849
|
end
|
|
2161
850
|
|
|
2162
|
-
#
|
|
2163
|
-
# @param
|
|
851
|
+
# Leave organization
|
|
852
|
+
# @param organization_id [String] Organization ID
|
|
2164
853
|
# @param [Hash] opts the optional parameters
|
|
2165
|
-
# @
|
|
2166
|
-
|
|
2167
|
-
def regenerate_proxy_api_key_with_http_info(id, opts = {})
|
|
854
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
855
|
+
def leave_organization_with_http_info(organization_id, opts = {})
|
|
2168
856
|
if @api_client.config.debugging
|
|
2169
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
|
857
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.leave_organization ...'
|
|
2170
858
|
end
|
|
2171
|
-
# verify the required parameter '
|
|
2172
|
-
if @api_client.config.client_side_validation &&
|
|
2173
|
-
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"
|
|
2174
862
|
end
|
|
2175
863
|
# resource path
|
|
2176
|
-
local_var_path = '/
|
|
864
|
+
local_var_path = '/organizations/{organizationId}/leave'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
2177
865
|
|
|
2178
866
|
# query parameters
|
|
2179
867
|
query_params = opts[:query_params] || {}
|
|
2180
868
|
|
|
2181
869
|
# header parameters
|
|
2182
870
|
header_params = opts[:header_params] || {}
|
|
2183
|
-
# HTTP header 'Accept' (if needed)
|
|
2184
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2185
|
-
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
2186
871
|
|
|
2187
872
|
# form parameters
|
|
2188
873
|
form_params = opts[:form_params] || {}
|
|
@@ -2191,13 +876,13 @@ module DaytonaApiClient
|
|
|
2191
876
|
post_body = opts[:debug_body]
|
|
2192
877
|
|
|
2193
878
|
# return_type
|
|
2194
|
-
return_type = opts[:debug_return_type]
|
|
879
|
+
return_type = opts[:debug_return_type]
|
|
2195
880
|
|
|
2196
881
|
# auth_names
|
|
2197
882
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2198
883
|
|
|
2199
884
|
new_options = opts.merge(
|
|
2200
|
-
:operation => :"OrganizationsApi.
|
|
885
|
+
:operation => :"OrganizationsApi.leave_organization",
|
|
2201
886
|
:header_params => header_params,
|
|
2202
887
|
:query_params => query_params,
|
|
2203
888
|
:form_params => form_params,
|
|
@@ -2208,36 +893,34 @@ module DaytonaApiClient
|
|
|
2208
893
|
|
|
2209
894
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
2210
895
|
if @api_client.config.debugging
|
|
2211
|
-
@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}"
|
|
2212
897
|
end
|
|
2213
898
|
return data, status_code, headers
|
|
2214
899
|
end
|
|
2215
900
|
|
|
2216
|
-
#
|
|
2217
|
-
# @param
|
|
901
|
+
# List pending organization invitations
|
|
902
|
+
# @param organization_id [String] Organization ID
|
|
2218
903
|
# @param [Hash] opts the optional parameters
|
|
2219
|
-
# @
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
data, _status_code, _headers = regenerate_snapshot_manager_credentials_with_http_info(id, opts)
|
|
904
|
+
# @return [Array<OrganizationInvitation>]
|
|
905
|
+
def list_organization_invitations(organization_id, opts = {})
|
|
906
|
+
data, _status_code, _headers = list_organization_invitations_with_http_info(organization_id, opts)
|
|
2223
907
|
data
|
|
2224
908
|
end
|
|
2225
909
|
|
|
2226
|
-
#
|
|
2227
|
-
# @param
|
|
910
|
+
# List pending organization invitations
|
|
911
|
+
# @param organization_id [String] Organization ID
|
|
2228
912
|
# @param [Hash] opts the optional parameters
|
|
2229
|
-
# @
|
|
2230
|
-
|
|
2231
|
-
def regenerate_snapshot_manager_credentials_with_http_info(id, opts = {})
|
|
913
|
+
# @return [Array<(Array<OrganizationInvitation>, Integer, Hash)>] Array<OrganizationInvitation> data, response status code and response headers
|
|
914
|
+
def list_organization_invitations_with_http_info(organization_id, opts = {})
|
|
2232
915
|
if @api_client.config.debugging
|
|
2233
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
|
916
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_invitations ...'
|
|
2234
917
|
end
|
|
2235
|
-
# verify the required parameter '
|
|
2236
|
-
if @api_client.config.client_side_validation &&
|
|
2237
|
-
fail ArgumentError, "Missing the required parameter '
|
|
918
|
+
# verify the required parameter 'organization_id' is set
|
|
919
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
|
920
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.list_organization_invitations"
|
|
2238
921
|
end
|
|
2239
922
|
# resource path
|
|
2240
|
-
local_var_path = '/
|
|
923
|
+
local_var_path = '/organizations/{organizationId}/invitations'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
2241
924
|
|
|
2242
925
|
# query parameters
|
|
2243
926
|
query_params = opts[:query_params] || {}
|
|
@@ -2246,7 +929,6 @@ module DaytonaApiClient
|
|
|
2246
929
|
header_params = opts[:header_params] || {}
|
|
2247
930
|
# HTTP header 'Accept' (if needed)
|
|
2248
931
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2249
|
-
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
2250
932
|
|
|
2251
933
|
# form parameters
|
|
2252
934
|
form_params = opts[:form_params] || {}
|
|
@@ -2255,13 +937,13 @@ module DaytonaApiClient
|
|
|
2255
937
|
post_body = opts[:debug_body]
|
|
2256
938
|
|
|
2257
939
|
# return_type
|
|
2258
|
-
return_type = opts[:debug_return_type] || '
|
|
940
|
+
return_type = opts[:debug_return_type] || 'Array<OrganizationInvitation>'
|
|
2259
941
|
|
|
2260
942
|
# auth_names
|
|
2261
943
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2262
944
|
|
|
2263
945
|
new_options = opts.merge(
|
|
2264
|
-
:operation => :"OrganizationsApi.
|
|
946
|
+
:operation => :"OrganizationsApi.list_organization_invitations",
|
|
2265
947
|
:header_params => header_params,
|
|
2266
948
|
:query_params => query_params,
|
|
2267
949
|
:form_params => form_params,
|
|
@@ -2270,38 +952,30 @@ module DaytonaApiClient
|
|
|
2270
952
|
:return_type => return_type
|
|
2271
953
|
)
|
|
2272
954
|
|
|
2273
|
-
data, status_code, headers = @api_client.call_api(:
|
|
955
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2274
956
|
if @api_client.config.debugging
|
|
2275
|
-
@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}"
|
|
2276
958
|
end
|
|
2277
959
|
return data, status_code, headers
|
|
2278
960
|
end
|
|
2279
961
|
|
|
2280
|
-
#
|
|
2281
|
-
# @param id [String] Region ID
|
|
962
|
+
# List organization invitations for authenticated user
|
|
2282
963
|
# @param [Hash] opts the optional parameters
|
|
2283
|
-
# @
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
data, _status_code, _headers = regenerate_ssh_gateway_api_key_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)
|
|
2287
967
|
data
|
|
2288
968
|
end
|
|
2289
969
|
|
|
2290
|
-
#
|
|
2291
|
-
# @param id [String] Region ID
|
|
970
|
+
# List organization invitations for authenticated user
|
|
2292
971
|
# @param [Hash] opts the optional parameters
|
|
2293
|
-
# @
|
|
2294
|
-
|
|
2295
|
-
def regenerate_ssh_gateway_api_key_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 = {})
|
|
2296
974
|
if @api_client.config.debugging
|
|
2297
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
|
2298
|
-
end
|
|
2299
|
-
# verify the required parameter 'id' is set
|
|
2300
|
-
if @api_client.config.client_side_validation && id.nil?
|
|
2301
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.regenerate_ssh_gateway_api_key"
|
|
975
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_invitations_for_authenticated_user ...'
|
|
2302
976
|
end
|
|
2303
977
|
# resource path
|
|
2304
|
-
local_var_path = '/
|
|
978
|
+
local_var_path = '/organizations/invitations'
|
|
2305
979
|
|
|
2306
980
|
# query parameters
|
|
2307
981
|
query_params = opts[:query_params] || {}
|
|
@@ -2310,7 +984,6 @@ module DaytonaApiClient
|
|
|
2310
984
|
header_params = opts[:header_params] || {}
|
|
2311
985
|
# HTTP header 'Accept' (if needed)
|
|
2312
986
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2313
|
-
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
2314
987
|
|
|
2315
988
|
# form parameters
|
|
2316
989
|
form_params = opts[:form_params] || {}
|
|
@@ -2319,13 +992,13 @@ module DaytonaApiClient
|
|
|
2319
992
|
post_body = opts[:debug_body]
|
|
2320
993
|
|
|
2321
994
|
# return_type
|
|
2322
|
-
return_type = opts[:debug_return_type] || '
|
|
995
|
+
return_type = opts[:debug_return_type] || 'Array<OrganizationInvitation>'
|
|
2323
996
|
|
|
2324
997
|
# auth_names
|
|
2325
998
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2326
999
|
|
|
2327
1000
|
new_options = opts.merge(
|
|
2328
|
-
:operation => :"OrganizationsApi.
|
|
1001
|
+
:operation => :"OrganizationsApi.list_organization_invitations_for_authenticated_user",
|
|
2329
1002
|
:header_params => header_params,
|
|
2330
1003
|
:query_params => query_params,
|
|
2331
1004
|
:form_params => form_params,
|
|
@@ -2334,68 +1007,59 @@ module DaytonaApiClient
|
|
|
2334
1007
|
:return_type => return_type
|
|
2335
1008
|
)
|
|
2336
1009
|
|
|
2337
|
-
data, status_code, headers = @api_client.call_api(:
|
|
1010
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2338
1011
|
if @api_client.config.debugging
|
|
2339
|
-
@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}"
|
|
2340
1013
|
end
|
|
2341
1014
|
return data, status_code, headers
|
|
2342
1015
|
end
|
|
2343
1016
|
|
|
2344
|
-
#
|
|
1017
|
+
# List organization members
|
|
2345
1018
|
# @param organization_id [String] Organization ID
|
|
2346
|
-
# @param update_organization_default_region [UpdateOrganizationDefaultRegion]
|
|
2347
1019
|
# @param [Hash] opts the optional parameters
|
|
2348
|
-
# @return [
|
|
2349
|
-
def
|
|
2350
|
-
|
|
2351
|
-
|
|
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
|
|
2352
1024
|
end
|
|
2353
1025
|
|
|
2354
|
-
#
|
|
1026
|
+
# List organization members
|
|
2355
1027
|
# @param organization_id [String] Organization ID
|
|
2356
|
-
# @param update_organization_default_region [UpdateOrganizationDefaultRegion]
|
|
2357
1028
|
# @param [Hash] opts the optional parameters
|
|
2358
|
-
# @return [Array<(
|
|
2359
|
-
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 = {})
|
|
2360
1031
|
if @api_client.config.debugging
|
|
2361
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
|
1032
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_members ...'
|
|
2362
1033
|
end
|
|
2363
1034
|
# verify the required parameter 'organization_id' is set
|
|
2364
1035
|
if @api_client.config.client_side_validation && organization_id.nil?
|
|
2365
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.
|
|
2366
|
-
end
|
|
2367
|
-
# verify the required parameter 'update_organization_default_region' is set
|
|
2368
|
-
if @api_client.config.client_side_validation && update_organization_default_region.nil?
|
|
2369
|
-
fail ArgumentError, "Missing the required parameter 'update_organization_default_region' when calling OrganizationsApi.set_organization_default_region"
|
|
1036
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.list_organization_members"
|
|
2370
1037
|
end
|
|
2371
1038
|
# resource path
|
|
2372
|
-
local_var_path = '/organizations/{organizationId}/
|
|
1039
|
+
local_var_path = '/organizations/{organizationId}/users'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
2373
1040
|
|
|
2374
1041
|
# query parameters
|
|
2375
1042
|
query_params = opts[:query_params] || {}
|
|
2376
1043
|
|
|
2377
1044
|
# header parameters
|
|
2378
1045
|
header_params = opts[:header_params] || {}
|
|
2379
|
-
# HTTP header '
|
|
2380
|
-
|
|
2381
|
-
if !content_type.nil?
|
|
2382
|
-
header_params['Content-Type'] = content_type
|
|
2383
|
-
end
|
|
1046
|
+
# HTTP header 'Accept' (if needed)
|
|
1047
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2384
1048
|
|
|
2385
1049
|
# form parameters
|
|
2386
1050
|
form_params = opts[:form_params] || {}
|
|
2387
1051
|
|
|
2388
1052
|
# http body (model)
|
|
2389
|
-
post_body = opts[:debug_body]
|
|
1053
|
+
post_body = opts[:debug_body]
|
|
2390
1054
|
|
|
2391
1055
|
# return_type
|
|
2392
|
-
return_type = opts[:debug_return_type]
|
|
1056
|
+
return_type = opts[:debug_return_type] || 'Array<OrganizationUser>'
|
|
2393
1057
|
|
|
2394
1058
|
# auth_names
|
|
2395
1059
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2396
1060
|
|
|
2397
1061
|
new_options = opts.merge(
|
|
2398
|
-
:operation => :"OrganizationsApi.
|
|
1062
|
+
:operation => :"OrganizationsApi.list_organization_members",
|
|
2399
1063
|
:header_params => header_params,
|
|
2400
1064
|
:query_params => query_params,
|
|
2401
1065
|
:form_params => form_params,
|
|
@@ -2404,42 +1068,36 @@ module DaytonaApiClient
|
|
|
2404
1068
|
:return_type => return_type
|
|
2405
1069
|
)
|
|
2406
1070
|
|
|
2407
|
-
data, status_code, headers = @api_client.call_api(:
|
|
1071
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2408
1072
|
if @api_client.config.debugging
|
|
2409
|
-
@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}"
|
|
2410
1074
|
end
|
|
2411
1075
|
return data, status_code, headers
|
|
2412
1076
|
end
|
|
2413
1077
|
|
|
2414
|
-
#
|
|
1078
|
+
# List organization roles
|
|
2415
1079
|
# @param organization_id [String] Organization ID
|
|
2416
|
-
# @param test_identity_provider_connection [TestIdentityProviderConnection]
|
|
2417
1080
|
# @param [Hash] opts the optional parameters
|
|
2418
|
-
# @return [
|
|
2419
|
-
def
|
|
2420
|
-
data, _status_code, _headers =
|
|
1081
|
+
# @return [Array<OrganizationRole>]
|
|
1082
|
+
def list_organization_roles(organization_id, opts = {})
|
|
1083
|
+
data, _status_code, _headers = list_organization_roles_with_http_info(organization_id, opts)
|
|
2421
1084
|
data
|
|
2422
1085
|
end
|
|
2423
1086
|
|
|
2424
|
-
#
|
|
1087
|
+
# List organization roles
|
|
2425
1088
|
# @param organization_id [String] Organization ID
|
|
2426
|
-
# @param test_identity_provider_connection [TestIdentityProviderConnection]
|
|
2427
1089
|
# @param [Hash] opts the optional parameters
|
|
2428
|
-
# @return [Array<(
|
|
2429
|
-
def
|
|
1090
|
+
# @return [Array<(Array<OrganizationRole>, Integer, Hash)>] Array<OrganizationRole> data, response status code and response headers
|
|
1091
|
+
def list_organization_roles_with_http_info(organization_id, opts = {})
|
|
2430
1092
|
if @api_client.config.debugging
|
|
2431
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
|
1093
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_roles ...'
|
|
2432
1094
|
end
|
|
2433
1095
|
# verify the required parameter 'organization_id' is set
|
|
2434
1096
|
if @api_client.config.client_side_validation && organization_id.nil?
|
|
2435
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.
|
|
2436
|
-
end
|
|
2437
|
-
# verify the required parameter 'test_identity_provider_connection' is set
|
|
2438
|
-
if @api_client.config.client_side_validation && test_identity_provider_connection.nil?
|
|
2439
|
-
fail ArgumentError, "Missing the required parameter 'test_identity_provider_connection' when calling OrganizationsApi.test_organization_identity_provider_connection"
|
|
1097
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.list_organization_roles"
|
|
2440
1098
|
end
|
|
2441
1099
|
# resource path
|
|
2442
|
-
local_var_path = '/organizations/{organizationId}/
|
|
1100
|
+
local_var_path = '/organizations/{organizationId}/roles'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
2443
1101
|
|
|
2444
1102
|
# query parameters
|
|
2445
1103
|
query_params = opts[:query_params] || {}
|
|
@@ -2448,26 +1106,21 @@ module DaytonaApiClient
|
|
|
2448
1106
|
header_params = opts[:header_params] || {}
|
|
2449
1107
|
# HTTP header 'Accept' (if needed)
|
|
2450
1108
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2451
|
-
# HTTP header 'Content-Type'
|
|
2452
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2453
|
-
if !content_type.nil?
|
|
2454
|
-
header_params['Content-Type'] = content_type
|
|
2455
|
-
end
|
|
2456
1109
|
|
|
2457
1110
|
# form parameters
|
|
2458
1111
|
form_params = opts[:form_params] || {}
|
|
2459
1112
|
|
|
2460
1113
|
# http body (model)
|
|
2461
|
-
post_body = opts[:debug_body]
|
|
1114
|
+
post_body = opts[:debug_body]
|
|
2462
1115
|
|
|
2463
1116
|
# return_type
|
|
2464
|
-
return_type = opts[:debug_return_type] || '
|
|
1117
|
+
return_type = opts[:debug_return_type] || 'Array<OrganizationRole>'
|
|
2465
1118
|
|
|
2466
1119
|
# auth_names
|
|
2467
1120
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2468
1121
|
|
|
2469
1122
|
new_options = opts.merge(
|
|
2470
|
-
:operation => :"OrganizationsApi.
|
|
1123
|
+
:operation => :"OrganizationsApi.list_organization_roles",
|
|
2471
1124
|
:header_params => header_params,
|
|
2472
1125
|
:query_params => query_params,
|
|
2473
1126
|
:form_params => form_params,
|
|
@@ -2476,48 +1129,30 @@ module DaytonaApiClient
|
|
|
2476
1129
|
:return_type => return_type
|
|
2477
1130
|
)
|
|
2478
1131
|
|
|
2479
|
-
data, status_code, headers = @api_client.call_api(:
|
|
1132
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2480
1133
|
if @api_client.config.debugging
|
|
2481
|
-
@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}"
|
|
2482
1135
|
end
|
|
2483
1136
|
return data, status_code, headers
|
|
2484
1137
|
end
|
|
2485
1138
|
|
|
2486
|
-
#
|
|
2487
|
-
# @param organization_id [String] Organization ID
|
|
2488
|
-
# @param user_id [String] User ID
|
|
2489
|
-
# @param update_organization_member_access [UpdateOrganizationMemberAccess]
|
|
1139
|
+
# List organizations
|
|
2490
1140
|
# @param [Hash] opts the optional parameters
|
|
2491
|
-
# @return [
|
|
2492
|
-
def
|
|
2493
|
-
data, _status_code, _headers =
|
|
1141
|
+
# @return [Array<Organization>]
|
|
1142
|
+
def list_organizations(opts = {})
|
|
1143
|
+
data, _status_code, _headers = list_organizations_with_http_info(opts)
|
|
2494
1144
|
data
|
|
2495
1145
|
end
|
|
2496
1146
|
|
|
2497
|
-
#
|
|
2498
|
-
# @param organization_id [String] Organization ID
|
|
2499
|
-
# @param user_id [String] User ID
|
|
2500
|
-
# @param update_organization_member_access [UpdateOrganizationMemberAccess]
|
|
1147
|
+
# List organizations
|
|
2501
1148
|
# @param [Hash] opts the optional parameters
|
|
2502
|
-
# @return [Array<(
|
|
2503
|
-
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 = {})
|
|
2504
1151
|
if @api_client.config.debugging
|
|
2505
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
|
2506
|
-
end
|
|
2507
|
-
# verify the required parameter 'organization_id' is set
|
|
2508
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
2509
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.update_access_for_organization_member"
|
|
2510
|
-
end
|
|
2511
|
-
# verify the required parameter 'user_id' is set
|
|
2512
|
-
if @api_client.config.client_side_validation && user_id.nil?
|
|
2513
|
-
fail ArgumentError, "Missing the required parameter 'user_id' when calling OrganizationsApi.update_access_for_organization_member"
|
|
2514
|
-
end
|
|
2515
|
-
# verify the required parameter 'update_organization_member_access' is set
|
|
2516
|
-
if @api_client.config.client_side_validation && update_organization_member_access.nil?
|
|
2517
|
-
fail ArgumentError, "Missing the required parameter 'update_organization_member_access' when calling OrganizationsApi.update_access_for_organization_member"
|
|
1152
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organizations ...'
|
|
2518
1153
|
end
|
|
2519
1154
|
# resource path
|
|
2520
|
-
local_var_path = '/organizations
|
|
1155
|
+
local_var_path = '/organizations'
|
|
2521
1156
|
|
|
2522
1157
|
# query parameters
|
|
2523
1158
|
query_params = opts[:query_params] || {}
|
|
@@ -2526,26 +1161,21 @@ module DaytonaApiClient
|
|
|
2526
1161
|
header_params = opts[:header_params] || {}
|
|
2527
1162
|
# HTTP header 'Accept' (if needed)
|
|
2528
1163
|
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2529
|
-
# HTTP header 'Content-Type'
|
|
2530
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2531
|
-
if !content_type.nil?
|
|
2532
|
-
header_params['Content-Type'] = content_type
|
|
2533
|
-
end
|
|
2534
1164
|
|
|
2535
1165
|
# form parameters
|
|
2536
1166
|
form_params = opts[:form_params] || {}
|
|
2537
1167
|
|
|
2538
1168
|
# http body (model)
|
|
2539
|
-
post_body = opts[:debug_body]
|
|
1169
|
+
post_body = opts[:debug_body]
|
|
2540
1170
|
|
|
2541
1171
|
# return_type
|
|
2542
|
-
return_type = opts[:debug_return_type] || '
|
|
1172
|
+
return_type = opts[:debug_return_type] || 'Array<Organization>'
|
|
2543
1173
|
|
|
2544
1174
|
# auth_names
|
|
2545
1175
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2546
1176
|
|
|
2547
1177
|
new_options = opts.merge(
|
|
2548
|
-
:operation => :"OrganizationsApi.
|
|
1178
|
+
:operation => :"OrganizationsApi.list_organizations",
|
|
2549
1179
|
:header_params => header_params,
|
|
2550
1180
|
:query_params => query_params,
|
|
2551
1181
|
:form_params => form_params,
|
|
@@ -2554,38 +1184,38 @@ module DaytonaApiClient
|
|
|
2554
1184
|
:return_type => return_type
|
|
2555
1185
|
)
|
|
2556
1186
|
|
|
2557
|
-
data, status_code, headers = @api_client.call_api(:
|
|
1187
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2558
1188
|
if @api_client.config.debugging
|
|
2559
|
-
@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}"
|
|
2560
1190
|
end
|
|
2561
1191
|
return data, status_code, headers
|
|
2562
1192
|
end
|
|
2563
1193
|
|
|
2564
|
-
#
|
|
1194
|
+
# Suspend organization
|
|
2565
1195
|
# @param organization_id [String] Organization ID
|
|
2566
1196
|
# @param [Hash] opts the optional parameters
|
|
2567
|
-
# @option opts [
|
|
1197
|
+
# @option opts [OrganizationSuspension] :organization_suspension
|
|
2568
1198
|
# @return [nil]
|
|
2569
|
-
def
|
|
2570
|
-
|
|
1199
|
+
def suspend_organization(organization_id, opts = {})
|
|
1200
|
+
suspend_organization_with_http_info(organization_id, opts)
|
|
2571
1201
|
nil
|
|
2572
1202
|
end
|
|
2573
1203
|
|
|
2574
|
-
#
|
|
1204
|
+
# Suspend organization
|
|
2575
1205
|
# @param organization_id [String] Organization ID
|
|
2576
1206
|
# @param [Hash] opts the optional parameters
|
|
2577
|
-
# @option opts [
|
|
1207
|
+
# @option opts [OrganizationSuspension] :organization_suspension
|
|
2578
1208
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
2579
|
-
def
|
|
1209
|
+
def suspend_organization_with_http_info(organization_id, opts = {})
|
|
2580
1210
|
if @api_client.config.debugging
|
|
2581
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
|
1211
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.suspend_organization ...'
|
|
2582
1212
|
end
|
|
2583
1213
|
# verify the required parameter 'organization_id' is set
|
|
2584
1214
|
if @api_client.config.client_side_validation && organization_id.nil?
|
|
2585
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.
|
|
1215
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.suspend_organization"
|
|
2586
1216
|
end
|
|
2587
1217
|
# resource path
|
|
2588
|
-
local_var_path = '/organizations/{organizationId}/
|
|
1218
|
+
local_var_path = '/organizations/{organizationId}/suspend'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
2589
1219
|
|
|
2590
1220
|
# query parameters
|
|
2591
1221
|
query_params = opts[:query_params] || {}
|
|
@@ -2595,14 +1225,14 @@ module DaytonaApiClient
|
|
|
2595
1225
|
# HTTP header 'Content-Type'
|
|
2596
1226
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2597
1227
|
if !content_type.nil?
|
|
2598
|
-
|
|
1228
|
+
header_params['Content-Type'] = content_type
|
|
2599
1229
|
end
|
|
2600
1230
|
|
|
2601
1231
|
# form parameters
|
|
2602
1232
|
form_params = opts[:form_params] || {}
|
|
2603
1233
|
|
|
2604
1234
|
# http body (model)
|
|
2605
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'
|
|
1235
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'organization_suspension'])
|
|
2606
1236
|
|
|
2607
1237
|
# return_type
|
|
2608
1238
|
return_type = opts[:debug_return_type]
|
|
@@ -2611,7 +1241,7 @@ module DaytonaApiClient
|
|
|
2611
1241
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2612
1242
|
|
|
2613
1243
|
new_options = opts.merge(
|
|
2614
|
-
:operation => :"OrganizationsApi.
|
|
1244
|
+
:operation => :"OrganizationsApi.suspend_organization",
|
|
2615
1245
|
:header_params => header_params,
|
|
2616
1246
|
:query_params => query_params,
|
|
2617
1247
|
:form_params => form_params,
|
|
@@ -2620,59 +1250,48 @@ module DaytonaApiClient
|
|
|
2620
1250
|
:return_type => return_type
|
|
2621
1251
|
)
|
|
2622
1252
|
|
|
2623
|
-
data, status_code, headers = @api_client.call_api(:
|
|
1253
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
2624
1254
|
if @api_client.config.debugging
|
|
2625
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#
|
|
1255
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#suspend_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2626
1256
|
end
|
|
2627
1257
|
return data, status_code, headers
|
|
2628
1258
|
end
|
|
2629
1259
|
|
|
2630
|
-
#
|
|
1260
|
+
# Unsuspend organization
|
|
2631
1261
|
# @param organization_id [String] Organization ID
|
|
2632
|
-
# @param update_organization_default_queue_timeout [UpdateOrganizationDefaultQueueTimeout]
|
|
2633
1262
|
# @param [Hash] opts the optional parameters
|
|
2634
1263
|
# @return [nil]
|
|
2635
|
-
def
|
|
2636
|
-
|
|
1264
|
+
def unsuspend_organization(organization_id, opts = {})
|
|
1265
|
+
unsuspend_organization_with_http_info(organization_id, opts)
|
|
2637
1266
|
nil
|
|
2638
1267
|
end
|
|
2639
1268
|
|
|
2640
|
-
#
|
|
1269
|
+
# Unsuspend organization
|
|
2641
1270
|
# @param organization_id [String] Organization ID
|
|
2642
|
-
# @param update_organization_default_queue_timeout [UpdateOrganizationDefaultQueueTimeout]
|
|
2643
1271
|
# @param [Hash] opts the optional parameters
|
|
2644
1272
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
2645
|
-
def
|
|
1273
|
+
def unsuspend_organization_with_http_info(organization_id, opts = {})
|
|
2646
1274
|
if @api_client.config.debugging
|
|
2647
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
|
1275
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.unsuspend_organization ...'
|
|
2648
1276
|
end
|
|
2649
1277
|
# verify the required parameter 'organization_id' is set
|
|
2650
1278
|
if @api_client.config.client_side_validation && organization_id.nil?
|
|
2651
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.
|
|
2652
|
-
end
|
|
2653
|
-
# verify the required parameter 'update_organization_default_queue_timeout' is set
|
|
2654
|
-
if @api_client.config.client_side_validation && update_organization_default_queue_timeout.nil?
|
|
2655
|
-
fail ArgumentError, "Missing the required parameter 'update_organization_default_queue_timeout' when calling OrganizationsApi.update_organization_default_queue_timeout"
|
|
1279
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.unsuspend_organization"
|
|
2656
1280
|
end
|
|
2657
1281
|
# resource path
|
|
2658
|
-
local_var_path = '/organizations/{organizationId}/
|
|
1282
|
+
local_var_path = '/organizations/{organizationId}/unsuspend'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
2659
1283
|
|
|
2660
1284
|
# query parameters
|
|
2661
1285
|
query_params = opts[:query_params] || {}
|
|
2662
1286
|
|
|
2663
1287
|
# header parameters
|
|
2664
1288
|
header_params = opts[:header_params] || {}
|
|
2665
|
-
# HTTP header 'Content-Type'
|
|
2666
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2667
|
-
if !content_type.nil?
|
|
2668
|
-
header_params['Content-Type'] = content_type
|
|
2669
|
-
end
|
|
2670
1289
|
|
|
2671
1290
|
# form parameters
|
|
2672
1291
|
form_params = opts[:form_params] || {}
|
|
2673
1292
|
|
|
2674
1293
|
# http body (model)
|
|
2675
|
-
post_body = opts[:debug_body]
|
|
1294
|
+
post_body = opts[:debug_body]
|
|
2676
1295
|
|
|
2677
1296
|
# return_type
|
|
2678
1297
|
return_type = opts[:debug_return_type]
|
|
@@ -2681,7 +1300,7 @@ module DaytonaApiClient
|
|
|
2681
1300
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2682
1301
|
|
|
2683
1302
|
new_options = opts.merge(
|
|
2684
|
-
:operation => :"OrganizationsApi.
|
|
1303
|
+
:operation => :"OrganizationsApi.unsuspend_organization",
|
|
2685
1304
|
:header_params => header_params,
|
|
2686
1305
|
:query_params => query_params,
|
|
2687
1306
|
:form_params => form_params,
|
|
@@ -2690,48 +1309,48 @@ module DaytonaApiClient
|
|
|
2690
1309
|
:return_type => return_type
|
|
2691
1310
|
)
|
|
2692
1311
|
|
|
2693
|
-
data, status_code, headers = @api_client.call_api(:
|
|
1312
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
2694
1313
|
if @api_client.config.debugging
|
|
2695
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#
|
|
1314
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#unsuspend_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2696
1315
|
end
|
|
2697
1316
|
return data, status_code, headers
|
|
2698
1317
|
end
|
|
2699
1318
|
|
|
2700
|
-
# Update organization
|
|
1319
|
+
# Update access for organization member
|
|
2701
1320
|
# @param organization_id [String] Organization ID
|
|
2702
|
-
# @param
|
|
2703
|
-
# @param
|
|
1321
|
+
# @param user_id [String] User ID
|
|
1322
|
+
# @param update_organization_member_access [UpdateOrganizationMemberAccess]
|
|
2704
1323
|
# @param [Hash] opts the optional parameters
|
|
2705
|
-
# @return [
|
|
2706
|
-
def
|
|
2707
|
-
data, _status_code, _headers =
|
|
1324
|
+
# @return [OrganizationUser]
|
|
1325
|
+
def update_access_for_organization_member(organization_id, user_id, update_organization_member_access, opts = {})
|
|
1326
|
+
data, _status_code, _headers = update_access_for_organization_member_with_http_info(organization_id, user_id, update_organization_member_access, opts)
|
|
2708
1327
|
data
|
|
2709
1328
|
end
|
|
2710
1329
|
|
|
2711
|
-
# Update organization
|
|
1330
|
+
# Update access for organization member
|
|
2712
1331
|
# @param organization_id [String] Organization ID
|
|
2713
|
-
# @param
|
|
2714
|
-
# @param
|
|
1332
|
+
# @param user_id [String] User ID
|
|
1333
|
+
# @param update_organization_member_access [UpdateOrganizationMemberAccess]
|
|
2715
1334
|
# @param [Hash] opts the optional parameters
|
|
2716
|
-
# @return [Array<(
|
|
2717
|
-
def
|
|
1335
|
+
# @return [Array<(OrganizationUser, Integer, Hash)>] OrganizationUser data, response status code and response headers
|
|
1336
|
+
def update_access_for_organization_member_with_http_info(organization_id, user_id, update_organization_member_access, opts = {})
|
|
2718
1337
|
if @api_client.config.debugging
|
|
2719
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
|
1338
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_access_for_organization_member ...'
|
|
2720
1339
|
end
|
|
2721
1340
|
# verify the required parameter 'organization_id' is set
|
|
2722
1341
|
if @api_client.config.client_side_validation && organization_id.nil?
|
|
2723
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.
|
|
1342
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.update_access_for_organization_member"
|
|
2724
1343
|
end
|
|
2725
|
-
# verify the required parameter '
|
|
2726
|
-
if @api_client.config.client_side_validation &&
|
|
2727
|
-
fail ArgumentError, "Missing the required parameter '
|
|
1344
|
+
# verify the required parameter 'user_id' is set
|
|
1345
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
|
1346
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling OrganizationsApi.update_access_for_organization_member"
|
|
2728
1347
|
end
|
|
2729
|
-
# verify the required parameter '
|
|
2730
|
-
if @api_client.config.client_side_validation &&
|
|
2731
|
-
fail ArgumentError, "Missing the required parameter '
|
|
1348
|
+
# verify the required parameter 'update_organization_member_access' is set
|
|
1349
|
+
if @api_client.config.client_side_validation && update_organization_member_access.nil?
|
|
1350
|
+
fail ArgumentError, "Missing the required parameter 'update_organization_member_access' when calling OrganizationsApi.update_access_for_organization_member"
|
|
2732
1351
|
end
|
|
2733
1352
|
# resource path
|
|
2734
|
-
local_var_path = '/organizations/{organizationId}/
|
|
1353
|
+
local_var_path = '/organizations/{organizationId}/users/{userId}/access'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s)).sub('{' + 'userId' + '}', CGI.escape(user_id.to_s))
|
|
2735
1354
|
|
|
2736
1355
|
# query parameters
|
|
2737
1356
|
query_params = opts[:query_params] || {}
|
|
@@ -2743,23 +1362,23 @@ module DaytonaApiClient
|
|
|
2743
1362
|
# HTTP header 'Content-Type'
|
|
2744
1363
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2745
1364
|
if !content_type.nil?
|
|
2746
|
-
|
|
1365
|
+
header_params['Content-Type'] = content_type
|
|
2747
1366
|
end
|
|
2748
1367
|
|
|
2749
1368
|
# form parameters
|
|
2750
1369
|
form_params = opts[:form_params] || {}
|
|
2751
1370
|
|
|
2752
1371
|
# http body (model)
|
|
2753
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
|
1372
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_organization_member_access)
|
|
2754
1373
|
|
|
2755
1374
|
# return_type
|
|
2756
|
-
return_type = opts[:debug_return_type] || '
|
|
1375
|
+
return_type = opts[:debug_return_type] || 'OrganizationUser'
|
|
2757
1376
|
|
|
2758
1377
|
# auth_names
|
|
2759
1378
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2760
1379
|
|
|
2761
1380
|
new_options = opts.merge(
|
|
2762
|
-
:operation => :"OrganizationsApi.
|
|
1381
|
+
:operation => :"OrganizationsApi.update_access_for_organization_member",
|
|
2763
1382
|
:header_params => header_params,
|
|
2764
1383
|
:query_params => query_params,
|
|
2765
1384
|
:form_params => form_params,
|
|
@@ -2768,9 +1387,9 @@ module DaytonaApiClient
|
|
|
2768
1387
|
:return_type => return_type
|
|
2769
1388
|
)
|
|
2770
1389
|
|
|
2771
|
-
data, status_code, headers = @api_client.call_api(:
|
|
1390
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
2772
1391
|
if @api_client.config.debugging
|
|
2773
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#
|
|
1392
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#update_access_for_organization_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2774
1393
|
end
|
|
2775
1394
|
return data, status_code, headers
|
|
2776
1395
|
end
|
|
@@ -2821,7 +1440,7 @@ module DaytonaApiClient
|
|
|
2821
1440
|
# HTTP header 'Content-Type'
|
|
2822
1441
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2823
1442
|
if !content_type.nil?
|
|
2824
|
-
|
|
1443
|
+
header_params['Content-Type'] = content_type
|
|
2825
1444
|
end
|
|
2826
1445
|
|
|
2827
1446
|
# form parameters
|
|
@@ -2853,61 +1472,63 @@ module DaytonaApiClient
|
|
|
2853
1472
|
return data, status_code, headers
|
|
2854
1473
|
end
|
|
2855
1474
|
|
|
2856
|
-
# Update organization
|
|
1475
|
+
# Update organization quota
|
|
2857
1476
|
# @param organization_id [String] Organization ID
|
|
2858
|
-
# @param
|
|
1477
|
+
# @param update_organization_quota [UpdateOrganizationQuota]
|
|
2859
1478
|
# @param [Hash] opts the optional parameters
|
|
2860
|
-
# @return [
|
|
2861
|
-
def
|
|
2862
|
-
|
|
2863
|
-
|
|
1479
|
+
# @return [Organization]
|
|
1480
|
+
def update_organization_quota(organization_id, update_organization_quota, opts = {})
|
|
1481
|
+
data, _status_code, _headers = update_organization_quota_with_http_info(organization_id, update_organization_quota, opts)
|
|
1482
|
+
data
|
|
2864
1483
|
end
|
|
2865
1484
|
|
|
2866
|
-
# Update organization
|
|
1485
|
+
# Update organization quota
|
|
2867
1486
|
# @param organization_id [String] Organization ID
|
|
2868
|
-
# @param
|
|
1487
|
+
# @param update_organization_quota [UpdateOrganizationQuota]
|
|
2869
1488
|
# @param [Hash] opts the optional parameters
|
|
2870
|
-
# @return [Array<(
|
|
2871
|
-
def
|
|
1489
|
+
# @return [Array<(Organization, Integer, Hash)>] Organization data, response status code and response headers
|
|
1490
|
+
def update_organization_quota_with_http_info(organization_id, update_organization_quota, opts = {})
|
|
2872
1491
|
if @api_client.config.debugging
|
|
2873
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
|
1492
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization_quota ...'
|
|
2874
1493
|
end
|
|
2875
1494
|
# verify the required parameter 'organization_id' is set
|
|
2876
1495
|
if @api_client.config.client_side_validation && organization_id.nil?
|
|
2877
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.
|
|
1496
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.update_organization_quota"
|
|
2878
1497
|
end
|
|
2879
|
-
# verify the required parameter '
|
|
2880
|
-
if @api_client.config.client_side_validation &&
|
|
2881
|
-
fail ArgumentError, "Missing the required parameter '
|
|
1498
|
+
# verify the required parameter 'update_organization_quota' is set
|
|
1499
|
+
if @api_client.config.client_side_validation && update_organization_quota.nil?
|
|
1500
|
+
fail ArgumentError, "Missing the required parameter 'update_organization_quota' when calling OrganizationsApi.update_organization_quota"
|
|
2882
1501
|
end
|
|
2883
1502
|
# resource path
|
|
2884
|
-
local_var_path = '/organizations/{organizationId}/
|
|
1503
|
+
local_var_path = '/organizations/{organizationId}/quota'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
2885
1504
|
|
|
2886
1505
|
# query parameters
|
|
2887
1506
|
query_params = opts[:query_params] || {}
|
|
2888
1507
|
|
|
2889
1508
|
# header parameters
|
|
2890
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']
|
|
2891
1512
|
# HTTP header 'Content-Type'
|
|
2892
1513
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2893
1514
|
if !content_type.nil?
|
|
2894
|
-
|
|
1515
|
+
header_params['Content-Type'] = content_type
|
|
2895
1516
|
end
|
|
2896
1517
|
|
|
2897
1518
|
# form parameters
|
|
2898
1519
|
form_params = opts[:form_params] || {}
|
|
2899
1520
|
|
|
2900
1521
|
# http body (model)
|
|
2901
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
|
1522
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_organization_quota)
|
|
2902
1523
|
|
|
2903
1524
|
# return_type
|
|
2904
|
-
return_type = opts[:debug_return_type]
|
|
1525
|
+
return_type = opts[:debug_return_type] || 'Organization'
|
|
2905
1526
|
|
|
2906
1527
|
# auth_names
|
|
2907
1528
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2908
1529
|
|
|
2909
1530
|
new_options = opts.merge(
|
|
2910
|
-
:operation => :"OrganizationsApi.
|
|
1531
|
+
:operation => :"OrganizationsApi.update_organization_quota",
|
|
2911
1532
|
:header_params => header_params,
|
|
2912
1533
|
:query_params => query_params,
|
|
2913
1534
|
:form_params => form_params,
|
|
@@ -2916,9 +1537,9 @@ module DaytonaApiClient
|
|
|
2916
1537
|
:return_type => return_type
|
|
2917
1538
|
)
|
|
2918
1539
|
|
|
2919
|
-
data, status_code, headers = @api_client.call_api(:
|
|
1540
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
2920
1541
|
if @api_client.config.debugging
|
|
2921
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#
|
|
1542
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#update_organization_quota\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2922
1543
|
end
|
|
2923
1544
|
return data, status_code, headers
|
|
2924
1545
|
end
|
|
@@ -2969,7 +1590,7 @@ module DaytonaApiClient
|
|
|
2969
1590
|
# HTTP header 'Content-Type'
|
|
2970
1591
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2971
1592
|
if !content_type.nil?
|
|
2972
|
-
|
|
1593
|
+
header_params['Content-Type'] = content_type
|
|
2973
1594
|
end
|
|
2974
1595
|
|
|
2975
1596
|
# form parameters
|
|
@@ -3001,37 +1622,35 @@ module DaytonaApiClient
|
|
|
3001
1622
|
return data, status_code, headers
|
|
3002
1623
|
end
|
|
3003
1624
|
|
|
3004
|
-
# Update
|
|
3005
|
-
# @param
|
|
3006
|
-
# @param
|
|
1625
|
+
# Update sandbox default limited network egress
|
|
1626
|
+
# @param organization_id [String] Organization ID
|
|
1627
|
+
# @param organization_sandbox_default_limited_network_egress [OrganizationSandboxDefaultLimitedNetworkEgress]
|
|
3007
1628
|
# @param [Hash] opts the optional parameters
|
|
3008
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
3009
1629
|
# @return [nil]
|
|
3010
|
-
def
|
|
3011
|
-
|
|
1630
|
+
def update_sandbox_default_limited_network_egress(organization_id, organization_sandbox_default_limited_network_egress, opts = {})
|
|
1631
|
+
update_sandbox_default_limited_network_egress_with_http_info(organization_id, organization_sandbox_default_limited_network_egress, opts)
|
|
3012
1632
|
nil
|
|
3013
1633
|
end
|
|
3014
1634
|
|
|
3015
|
-
# Update
|
|
3016
|
-
# @param
|
|
3017
|
-
# @param
|
|
1635
|
+
# Update sandbox default limited network egress
|
|
1636
|
+
# @param organization_id [String] Organization ID
|
|
1637
|
+
# @param organization_sandbox_default_limited_network_egress [OrganizationSandboxDefaultLimitedNetworkEgress]
|
|
3018
1638
|
# @param [Hash] opts the optional parameters
|
|
3019
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
3020
1639
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
3021
|
-
def
|
|
1640
|
+
def update_sandbox_default_limited_network_egress_with_http_info(organization_id, organization_sandbox_default_limited_network_egress, opts = {})
|
|
3022
1641
|
if @api_client.config.debugging
|
|
3023
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
|
1642
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_sandbox_default_limited_network_egress ...'
|
|
3024
1643
|
end
|
|
3025
|
-
# verify the required parameter '
|
|
3026
|
-
if @api_client.config.client_side_validation &&
|
|
3027
|
-
fail ArgumentError, "Missing the required parameter '
|
|
1644
|
+
# verify the required parameter 'organization_id' is set
|
|
1645
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
|
1646
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.update_sandbox_default_limited_network_egress"
|
|
3028
1647
|
end
|
|
3029
|
-
# verify the required parameter '
|
|
3030
|
-
if @api_client.config.client_side_validation &&
|
|
3031
|
-
fail ArgumentError, "Missing the required parameter '
|
|
1648
|
+
# verify the required parameter 'organization_sandbox_default_limited_network_egress' is set
|
|
1649
|
+
if @api_client.config.client_side_validation && organization_sandbox_default_limited_network_egress.nil?
|
|
1650
|
+
fail ArgumentError, "Missing the required parameter 'organization_sandbox_default_limited_network_egress' when calling OrganizationsApi.update_sandbox_default_limited_network_egress"
|
|
3032
1651
|
end
|
|
3033
1652
|
# resource path
|
|
3034
|
-
local_var_path = '/
|
|
1653
|
+
local_var_path = '/organizations/{organizationId}/sandbox-default-limited-network-egress'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
3035
1654
|
|
|
3036
1655
|
# query parameters
|
|
3037
1656
|
query_params = opts[:query_params] || {}
|
|
@@ -3041,15 +1660,14 @@ module DaytonaApiClient
|
|
|
3041
1660
|
# HTTP header 'Content-Type'
|
|
3042
1661
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
3043
1662
|
if !content_type.nil?
|
|
3044
|
-
|
|
1663
|
+
header_params['Content-Type'] = content_type
|
|
3045
1664
|
end
|
|
3046
|
-
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
3047
1665
|
|
|
3048
1666
|
# form parameters
|
|
3049
1667
|
form_params = opts[:form_params] || {}
|
|
3050
1668
|
|
|
3051
1669
|
# http body (model)
|
|
3052
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
|
1670
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(organization_sandbox_default_limited_network_egress)
|
|
3053
1671
|
|
|
3054
1672
|
# return_type
|
|
3055
1673
|
return_type = opts[:debug_return_type]
|
|
@@ -3058,7 +1676,7 @@ module DaytonaApiClient
|
|
|
3058
1676
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
3059
1677
|
|
|
3060
1678
|
new_options = opts.merge(
|
|
3061
|
-
:operation => :"OrganizationsApi.
|
|
1679
|
+
:operation => :"OrganizationsApi.update_sandbox_default_limited_network_egress",
|
|
3062
1680
|
:header_params => header_params,
|
|
3063
1681
|
:query_params => query_params,
|
|
3064
1682
|
:form_params => form_params,
|
|
@@ -3067,9 +1685,9 @@ module DaytonaApiClient
|
|
|
3067
1685
|
:return_type => return_type
|
|
3068
1686
|
)
|
|
3069
1687
|
|
|
3070
|
-
data, status_code, headers = @api_client.call_api(:
|
|
1688
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
3071
1689
|
if @api_client.config.debugging
|
|
3072
|
-
@api_client.config.logger.debug "API called: OrganizationsApi#
|
|
1690
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#update_sandbox_default_limited_network_egress\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
3073
1691
|
end
|
|
3074
1692
|
return data, status_code, headers
|
|
3075
1693
|
end
|