daytona_api_client 0.218.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 +279 -1591
- 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/{paginated_traces.rb → completion_list.rb} +106 -91
- 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 -120
- 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/{oidc_id_p_config.rb → download_files.rb} +95 -86
- 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 -68
- data/lib/daytona_api_client/models/organization.rb +159 -307
- 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_jobs.rb → paginated_sandboxes.rb} +80 -9
- 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/replace_result.rb +236 -0
- 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 -220
- data/lib/daytona_api_client/models/sandbox_class.rb +6 -8
- 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} +303 -226
- data/lib/daytona_api_client/version.rb +2 -2
- data/lib/daytona_api_client.rb +83 -93
- data/project.json +13 -38
- metadata +88 -102
- data/.gitignore +0 -39
- data/.openapi-generator/FILES +0 -175
- 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/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/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_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,42 +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 generate_workos_admin_portal_link [GenerateWorkosAdminPortalLink]
|
|
674
|
+
# Get organization by sandbox ID
|
|
675
|
+
# @param sandbox_id [String] Sandbox ID
|
|
946
676
|
# @param [Hash] opts the optional parameters
|
|
947
|
-
# @return [Array<(
|
|
948
|
-
def
|
|
677
|
+
# @return [Array<(Organization, Integer, Hash)>] Organization data, response status code and response headers
|
|
678
|
+
def get_organization_by_sandbox_id_with_http_info(sandbox_id, opts = {})
|
|
949
679
|
if @api_client.config.debugging
|
|
950
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
|
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"
|
|
680
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization_by_sandbox_id ...'
|
|
955
681
|
end
|
|
956
|
-
# verify the required parameter '
|
|
957
|
-
if @api_client.config.client_side_validation &&
|
|
958
|
-
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"
|
|
959
685
|
end
|
|
960
686
|
# resource path
|
|
961
|
-
local_var_path = '/organizations/{
|
|
687
|
+
local_var_path = '/organizations/by-sandbox-id/{sandboxId}'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
962
688
|
|
|
963
689
|
# query parameters
|
|
964
690
|
query_params = opts[:query_params] || {}
|
|
@@ -967,26 +693,21 @@ module DaytonaApiClient
|
|
|
967
693
|
header_params = opts[:header_params] || {}
|
|
968
694
|
# HTTP header 'Accept' (if needed)
|
|
969
695
|
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
696
|
|
|
976
697
|
# form parameters
|
|
977
698
|
form_params = opts[:form_params] || {}
|
|
978
699
|
|
|
979
700
|
# http body (model)
|
|
980
|
-
post_body = opts[:debug_body]
|
|
701
|
+
post_body = opts[:debug_body]
|
|
981
702
|
|
|
982
703
|
# return_type
|
|
983
|
-
return_type = opts[:debug_return_type] || '
|
|
704
|
+
return_type = opts[:debug_return_type] || 'Organization'
|
|
984
705
|
|
|
985
706
|
# auth_names
|
|
986
707
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
987
708
|
|
|
988
709
|
new_options = opts.merge(
|
|
989
|
-
:operation => :"OrganizationsApi.
|
|
710
|
+
:operation => :"OrganizationsApi.get_organization_by_sandbox_id",
|
|
990
711
|
:header_params => header_params,
|
|
991
712
|
:query_params => query_params,
|
|
992
713
|
:form_params => form_params,
|
|
@@ -995,1006 +716,30 @@ module DaytonaApiClient
|
|
|
995
716
|
:return_type => return_type
|
|
996
717
|
)
|
|
997
718
|
|
|
998
|
-
data, status_code, headers = @api_client.call_api(:
|
|
719
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
999
720
|
if @api_client.config.debugging
|
|
1000
|
-
@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}"
|
|
1001
722
|
end
|
|
1002
723
|
return data, status_code, headers
|
|
1003
724
|
end
|
|
1004
725
|
|
|
1005
|
-
# Get
|
|
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
|
|
726
|
+
# Get count of organization invitations for authenticated user
|
|
1008
727
|
# @param [Hash] opts the optional parameters
|
|
1009
|
-
# @return [
|
|
1010
|
-
def
|
|
1011
|
-
data, _status_code, _headers =
|
|
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)
|
|
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)
|
|
1201
731
|
data
|
|
1202
732
|
end
|
|
1203
733
|
|
|
1204
734
|
# 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 = {})
|
|
735
|
+
# @param [Hash] opts the optional parameters
|
|
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 = {})
|
|
1989
738
|
if @api_client.config.debugging
|
|
1990
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
|
1991
|
-
end
|
|
1992
|
-
# verify the required parameter 'organization_id' is set
|
|
1993
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
1994
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.list_organization_roles"
|
|
739
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization_invitations_count_for_authenticated_user ...'
|
|
1995
740
|
end
|
|
1996
741
|
# resource path
|
|
1997
|
-
local_var_path = '/organizations/
|
|
742
|
+
local_var_path = '/organizations/invitations/count'
|
|
1998
743
|
|
|
1999
744
|
# query parameters
|
|
2000
745
|
query_params = opts[:query_params] || {}
|
|
@@ -2011,13 +756,13 @@ module DaytonaApiClient
|
|
|
2011
756
|
post_body = opts[:debug_body]
|
|
2012
757
|
|
|
2013
758
|
# return_type
|
|
2014
|
-
return_type = opts[:debug_return_type] || '
|
|
759
|
+
return_type = opts[:debug_return_type] || 'Float'
|
|
2015
760
|
|
|
2016
761
|
# auth_names
|
|
2017
762
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2018
763
|
|
|
2019
764
|
new_options = opts.merge(
|
|
2020
|
-
:operation => :"OrganizationsApi.
|
|
765
|
+
:operation => :"OrganizationsApi.get_organization_invitations_count_for_authenticated_user",
|
|
2021
766
|
:header_params => header_params,
|
|
2022
767
|
:query_params => query_params,
|
|
2023
768
|
:form_params => form_params,
|
|
@@ -2028,28 +773,34 @@ module DaytonaApiClient
|
|
|
2028
773
|
|
|
2029
774
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2030
775
|
if @api_client.config.debugging
|
|
2031
|
-
@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}"
|
|
2032
777
|
end
|
|
2033
778
|
return data, status_code, headers
|
|
2034
779
|
end
|
|
2035
780
|
|
|
2036
|
-
#
|
|
781
|
+
# Get organization current usage overview
|
|
782
|
+
# @param organization_id [String] Organization ID
|
|
2037
783
|
# @param [Hash] opts the optional parameters
|
|
2038
|
-
# @return [
|
|
2039
|
-
def
|
|
2040
|
-
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)
|
|
2041
787
|
data
|
|
2042
788
|
end
|
|
2043
789
|
|
|
2044
|
-
#
|
|
790
|
+
# Get organization current usage overview
|
|
791
|
+
# @param organization_id [String] Organization ID
|
|
2045
792
|
# @param [Hash] opts the optional parameters
|
|
2046
|
-
# @return [Array<(
|
|
2047
|
-
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 = {})
|
|
2048
795
|
if @api_client.config.debugging
|
|
2049
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
|
796
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization_usage_overview ...'
|
|
797
|
+
end
|
|
798
|
+
# verify the required parameter 'organization_id' is set
|
|
799
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
|
800
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.get_organization_usage_overview"
|
|
2050
801
|
end
|
|
2051
802
|
# resource path
|
|
2052
|
-
local_var_path = '/organizations'
|
|
803
|
+
local_var_path = '/organizations/{organizationId}/usage'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
2053
804
|
|
|
2054
805
|
# query parameters
|
|
2055
806
|
query_params = opts[:query_params] || {}
|
|
@@ -2066,13 +817,13 @@ module DaytonaApiClient
|
|
|
2066
817
|
post_body = opts[:debug_body]
|
|
2067
818
|
|
|
2068
819
|
# return_type
|
|
2069
|
-
return_type = opts[:debug_return_type] || '
|
|
820
|
+
return_type = opts[:debug_return_type] || 'OrganizationUsageOverview'
|
|
2070
821
|
|
|
2071
822
|
# auth_names
|
|
2072
823
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2073
824
|
|
|
2074
825
|
new_options = opts.merge(
|
|
2075
|
-
:operation => :"OrganizationsApi.
|
|
826
|
+
:operation => :"OrganizationsApi.get_organization_usage_overview",
|
|
2076
827
|
:header_params => header_params,
|
|
2077
828
|
:query_params => query_params,
|
|
2078
829
|
:form_params => form_params,
|
|
@@ -2083,42 +834,40 @@ module DaytonaApiClient
|
|
|
2083
834
|
|
|
2084
835
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2085
836
|
if @api_client.config.debugging
|
|
2086
|
-
@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}"
|
|
2087
838
|
end
|
|
2088
839
|
return data, status_code, headers
|
|
2089
840
|
end
|
|
2090
841
|
|
|
2091
|
-
#
|
|
842
|
+
# Leave organization
|
|
2092
843
|
# @param organization_id [String] Organization ID
|
|
2093
844
|
# @param [Hash] opts the optional parameters
|
|
2094
|
-
# @return [
|
|
2095
|
-
def
|
|
2096
|
-
|
|
2097
|
-
|
|
845
|
+
# @return [nil]
|
|
846
|
+
def leave_organization(organization_id, opts = {})
|
|
847
|
+
leave_organization_with_http_info(organization_id, opts)
|
|
848
|
+
nil
|
|
2098
849
|
end
|
|
2099
850
|
|
|
2100
|
-
#
|
|
851
|
+
# Leave organization
|
|
2101
852
|
# @param organization_id [String] Organization ID
|
|
2102
853
|
# @param [Hash] opts the optional parameters
|
|
2103
|
-
# @return [Array<(
|
|
2104
|
-
def
|
|
854
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
855
|
+
def leave_organization_with_http_info(organization_id, opts = {})
|
|
2105
856
|
if @api_client.config.debugging
|
|
2106
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
|
857
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.leave_organization ...'
|
|
2107
858
|
end
|
|
2108
859
|
# verify the required parameter 'organization_id' is set
|
|
2109
860
|
if @api_client.config.client_side_validation && organization_id.nil?
|
|
2110
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.
|
|
861
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.leave_organization"
|
|
2111
862
|
end
|
|
2112
863
|
# resource path
|
|
2113
|
-
local_var_path = '/organizations/{organizationId}/
|
|
864
|
+
local_var_path = '/organizations/{organizationId}/leave'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
2114
865
|
|
|
2115
866
|
# query parameters
|
|
2116
867
|
query_params = opts[:query_params] || {}
|
|
2117
868
|
|
|
2118
869
|
# header parameters
|
|
2119
870
|
header_params = opts[:header_params] || {}
|
|
2120
|
-
# HTTP header 'Accept' (if needed)
|
|
2121
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2122
871
|
|
|
2123
872
|
# form parameters
|
|
2124
873
|
form_params = opts[:form_params] || {}
|
|
@@ -2127,13 +876,13 @@ module DaytonaApiClient
|
|
|
2127
876
|
post_body = opts[:debug_body]
|
|
2128
877
|
|
|
2129
878
|
# return_type
|
|
2130
|
-
return_type = opts[:debug_return_type]
|
|
879
|
+
return_type = opts[:debug_return_type]
|
|
2131
880
|
|
|
2132
881
|
# auth_names
|
|
2133
882
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2134
883
|
|
|
2135
884
|
new_options = opts.merge(
|
|
2136
|
-
:operation => :"OrganizationsApi.
|
|
885
|
+
:operation => :"OrganizationsApi.leave_organization",
|
|
2137
886
|
:header_params => header_params,
|
|
2138
887
|
:query_params => query_params,
|
|
2139
888
|
:form_params => form_params,
|
|
@@ -2142,38 +891,36 @@ module DaytonaApiClient
|
|
|
2142
891
|
:return_type => return_type
|
|
2143
892
|
)
|
|
2144
893
|
|
|
2145
|
-
data, status_code, headers = @api_client.call_api(:
|
|
894
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
2146
895
|
if @api_client.config.debugging
|
|
2147
|
-
@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}"
|
|
2148
897
|
end
|
|
2149
898
|
return data, status_code, headers
|
|
2150
899
|
end
|
|
2151
900
|
|
|
2152
|
-
#
|
|
2153
|
-
# @param
|
|
901
|
+
# List pending organization invitations
|
|
902
|
+
# @param organization_id [String] Organization ID
|
|
2154
903
|
# @param [Hash] opts the optional parameters
|
|
2155
|
-
# @
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
data, _status_code, _headers = regenerate_proxy_api_key_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)
|
|
2159
907
|
data
|
|
2160
908
|
end
|
|
2161
909
|
|
|
2162
|
-
#
|
|
2163
|
-
# @param
|
|
910
|
+
# List pending organization invitations
|
|
911
|
+
# @param organization_id [String] Organization ID
|
|
2164
912
|
# @param [Hash] opts the optional parameters
|
|
2165
|
-
# @
|
|
2166
|
-
|
|
2167
|
-
def regenerate_proxy_api_key_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 = {})
|
|
2168
915
|
if @api_client.config.debugging
|
|
2169
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
|
916
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_invitations ...'
|
|
2170
917
|
end
|
|
2171
|
-
# verify the required parameter '
|
|
2172
|
-
if @api_client.config.client_side_validation &&
|
|
2173
|
-
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"
|
|
2174
921
|
end
|
|
2175
922
|
# resource path
|
|
2176
|
-
local_var_path = '/
|
|
923
|
+
local_var_path = '/organizations/{organizationId}/invitations'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
2177
924
|
|
|
2178
925
|
# query parameters
|
|
2179
926
|
query_params = opts[:query_params] || {}
|
|
@@ -2182,7 +929,6 @@ module DaytonaApiClient
|
|
|
2182
929
|
header_params = opts[:header_params] || {}
|
|
2183
930
|
# HTTP header 'Accept' (if needed)
|
|
2184
931
|
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
932
|
|
|
2187
933
|
# form parameters
|
|
2188
934
|
form_params = opts[:form_params] || {}
|
|
@@ -2191,13 +937,13 @@ module DaytonaApiClient
|
|
|
2191
937
|
post_body = opts[:debug_body]
|
|
2192
938
|
|
|
2193
939
|
# return_type
|
|
2194
|
-
return_type = opts[:debug_return_type] || '
|
|
940
|
+
return_type = opts[:debug_return_type] || 'Array<OrganizationInvitation>'
|
|
2195
941
|
|
|
2196
942
|
# auth_names
|
|
2197
943
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2198
944
|
|
|
2199
945
|
new_options = opts.merge(
|
|
2200
|
-
:operation => :"OrganizationsApi.
|
|
946
|
+
:operation => :"OrganizationsApi.list_organization_invitations",
|
|
2201
947
|
:header_params => header_params,
|
|
2202
948
|
:query_params => query_params,
|
|
2203
949
|
:form_params => form_params,
|
|
@@ -2206,38 +952,30 @@ module DaytonaApiClient
|
|
|
2206
952
|
:return_type => return_type
|
|
2207
953
|
)
|
|
2208
954
|
|
|
2209
|
-
data, status_code, headers = @api_client.call_api(:
|
|
955
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2210
956
|
if @api_client.config.debugging
|
|
2211
|
-
@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}"
|
|
2212
958
|
end
|
|
2213
959
|
return data, status_code, headers
|
|
2214
960
|
end
|
|
2215
961
|
|
|
2216
|
-
#
|
|
2217
|
-
# @param id [String] Region ID
|
|
962
|
+
# List organization invitations for authenticated user
|
|
2218
963
|
# @param [Hash] opts the optional parameters
|
|
2219
|
-
# @
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
data, _status_code, _headers = regenerate_snapshot_manager_credentials_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)
|
|
2223
967
|
data
|
|
2224
968
|
end
|
|
2225
969
|
|
|
2226
|
-
#
|
|
2227
|
-
# @param id [String] Region ID
|
|
970
|
+
# List organization invitations for authenticated user
|
|
2228
971
|
# @param [Hash] opts the optional parameters
|
|
2229
|
-
# @
|
|
2230
|
-
|
|
2231
|
-
def regenerate_snapshot_manager_credentials_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 = {})
|
|
2232
974
|
if @api_client.config.debugging
|
|
2233
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
|
2234
|
-
end
|
|
2235
|
-
# verify the required parameter 'id' is set
|
|
2236
|
-
if @api_client.config.client_side_validation && id.nil?
|
|
2237
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.regenerate_snapshot_manager_credentials"
|
|
975
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_invitations_for_authenticated_user ...'
|
|
2238
976
|
end
|
|
2239
977
|
# resource path
|
|
2240
|
-
local_var_path = '/
|
|
978
|
+
local_var_path = '/organizations/invitations'
|
|
2241
979
|
|
|
2242
980
|
# query parameters
|
|
2243
981
|
query_params = opts[:query_params] || {}
|
|
@@ -2246,7 +984,6 @@ module DaytonaApiClient
|
|
|
2246
984
|
header_params = opts[:header_params] || {}
|
|
2247
985
|
# HTTP header 'Accept' (if needed)
|
|
2248
986
|
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
987
|
|
|
2251
988
|
# form parameters
|
|
2252
989
|
form_params = opts[:form_params] || {}
|
|
@@ -2255,13 +992,13 @@ module DaytonaApiClient
|
|
|
2255
992
|
post_body = opts[:debug_body]
|
|
2256
993
|
|
|
2257
994
|
# return_type
|
|
2258
|
-
return_type = opts[:debug_return_type] || '
|
|
995
|
+
return_type = opts[:debug_return_type] || 'Array<OrganizationInvitation>'
|
|
2259
996
|
|
|
2260
997
|
# auth_names
|
|
2261
998
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2262
999
|
|
|
2263
1000
|
new_options = opts.merge(
|
|
2264
|
-
:operation => :"OrganizationsApi.
|
|
1001
|
+
:operation => :"OrganizationsApi.list_organization_invitations_for_authenticated_user",
|
|
2265
1002
|
:header_params => header_params,
|
|
2266
1003
|
:query_params => query_params,
|
|
2267
1004
|
:form_params => form_params,
|
|
@@ -2270,38 +1007,36 @@ module DaytonaApiClient
|
|
|
2270
1007
|
:return_type => return_type
|
|
2271
1008
|
)
|
|
2272
1009
|
|
|
2273
|
-
data, status_code, headers = @api_client.call_api(:
|
|
1010
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2274
1011
|
if @api_client.config.debugging
|
|
2275
|
-
@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}"
|
|
2276
1013
|
end
|
|
2277
1014
|
return data, status_code, headers
|
|
2278
1015
|
end
|
|
2279
1016
|
|
|
2280
|
-
#
|
|
2281
|
-
# @param
|
|
1017
|
+
# List organization members
|
|
1018
|
+
# @param organization_id [String] Organization ID
|
|
2282
1019
|
# @param [Hash] opts the optional parameters
|
|
2283
|
-
# @
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
data, _status_code, _headers = regenerate_ssh_gateway_api_key_with_http_info(id, opts)
|
|
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)
|
|
2287
1023
|
data
|
|
2288
1024
|
end
|
|
2289
1025
|
|
|
2290
|
-
#
|
|
2291
|
-
# @param
|
|
1026
|
+
# List organization members
|
|
1027
|
+
# @param organization_id [String] Organization ID
|
|
2292
1028
|
# @param [Hash] opts the optional parameters
|
|
2293
|
-
# @
|
|
2294
|
-
|
|
2295
|
-
def regenerate_ssh_gateway_api_key_with_http_info(id, opts = {})
|
|
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 = {})
|
|
2296
1031
|
if @api_client.config.debugging
|
|
2297
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
|
1032
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_members ...'
|
|
2298
1033
|
end
|
|
2299
|
-
# verify the required parameter '
|
|
2300
|
-
if @api_client.config.client_side_validation &&
|
|
2301
|
-
fail ArgumentError, "Missing the required parameter '
|
|
1034
|
+
# verify the required parameter 'organization_id' is set
|
|
1035
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
|
1036
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.list_organization_members"
|
|
2302
1037
|
end
|
|
2303
1038
|
# resource path
|
|
2304
|
-
local_var_path = '/
|
|
1039
|
+
local_var_path = '/organizations/{organizationId}/users'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
2305
1040
|
|
|
2306
1041
|
# query parameters
|
|
2307
1042
|
query_params = opts[:query_params] || {}
|
|
@@ -2310,7 +1045,6 @@ module DaytonaApiClient
|
|
|
2310
1045
|
header_params = opts[:header_params] || {}
|
|
2311
1046
|
# HTTP header 'Accept' (if needed)
|
|
2312
1047
|
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
1048
|
|
|
2315
1049
|
# form parameters
|
|
2316
1050
|
form_params = opts[:form_params] || {}
|
|
@@ -2319,13 +1053,13 @@ module DaytonaApiClient
|
|
|
2319
1053
|
post_body = opts[:debug_body]
|
|
2320
1054
|
|
|
2321
1055
|
# return_type
|
|
2322
|
-
return_type = opts[:debug_return_type] || '
|
|
1056
|
+
return_type = opts[:debug_return_type] || 'Array<OrganizationUser>'
|
|
2323
1057
|
|
|
2324
1058
|
# auth_names
|
|
2325
1059
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2326
1060
|
|
|
2327
1061
|
new_options = opts.merge(
|
|
2328
|
-
:operation => :"OrganizationsApi.
|
|
1062
|
+
:operation => :"OrganizationsApi.list_organization_members",
|
|
2329
1063
|
:header_params => header_params,
|
|
2330
1064
|
:query_params => query_params,
|
|
2331
1065
|
:form_params => form_params,
|
|
@@ -2334,68 +1068,59 @@ module DaytonaApiClient
|
|
|
2334
1068
|
:return_type => return_type
|
|
2335
1069
|
)
|
|
2336
1070
|
|
|
2337
|
-
data, status_code, headers = @api_client.call_api(:
|
|
1071
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2338
1072
|
if @api_client.config.debugging
|
|
2339
|
-
@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}"
|
|
2340
1074
|
end
|
|
2341
1075
|
return data, status_code, headers
|
|
2342
1076
|
end
|
|
2343
1077
|
|
|
2344
|
-
#
|
|
1078
|
+
# List organization roles
|
|
2345
1079
|
# @param organization_id [String] Organization ID
|
|
2346
|
-
# @param update_organization_default_region [UpdateOrganizationDefaultRegion]
|
|
2347
1080
|
# @param [Hash] opts the optional parameters
|
|
2348
|
-
# @return [
|
|
2349
|
-
def
|
|
2350
|
-
|
|
2351
|
-
|
|
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)
|
|
1084
|
+
data
|
|
2352
1085
|
end
|
|
2353
1086
|
|
|
2354
|
-
#
|
|
1087
|
+
# List organization roles
|
|
2355
1088
|
# @param organization_id [String] Organization ID
|
|
2356
|
-
# @param update_organization_default_region [UpdateOrganizationDefaultRegion]
|
|
2357
1089
|
# @param [Hash] opts the optional parameters
|
|
2358
|
-
# @return [Array<(
|
|
2359
|
-
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 = {})
|
|
2360
1092
|
if @api_client.config.debugging
|
|
2361
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
|
1093
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_roles ...'
|
|
2362
1094
|
end
|
|
2363
1095
|
# verify the required parameter 'organization_id' is set
|
|
2364
1096
|
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"
|
|
1097
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.list_organization_roles"
|
|
2370
1098
|
end
|
|
2371
1099
|
# resource path
|
|
2372
|
-
local_var_path = '/organizations/{organizationId}/
|
|
1100
|
+
local_var_path = '/organizations/{organizationId}/roles'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
2373
1101
|
|
|
2374
1102
|
# query parameters
|
|
2375
1103
|
query_params = opts[:query_params] || {}
|
|
2376
1104
|
|
|
2377
1105
|
# header parameters
|
|
2378
1106
|
header_params = opts[:header_params] || {}
|
|
2379
|
-
# HTTP header '
|
|
2380
|
-
|
|
2381
|
-
if !content_type.nil?
|
|
2382
|
-
header_params['Content-Type'] = content_type
|
|
2383
|
-
end
|
|
1107
|
+
# HTTP header 'Accept' (if needed)
|
|
1108
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2384
1109
|
|
|
2385
1110
|
# form parameters
|
|
2386
1111
|
form_params = opts[:form_params] || {}
|
|
2387
1112
|
|
|
2388
1113
|
# http body (model)
|
|
2389
|
-
post_body = opts[:debug_body]
|
|
1114
|
+
post_body = opts[:debug_body]
|
|
2390
1115
|
|
|
2391
1116
|
# return_type
|
|
2392
|
-
return_type = opts[:debug_return_type]
|
|
1117
|
+
return_type = opts[:debug_return_type] || 'Array<OrganizationRole>'
|
|
2393
1118
|
|
|
2394
1119
|
# auth_names
|
|
2395
1120
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2396
1121
|
|
|
2397
1122
|
new_options = opts.merge(
|
|
2398
|
-
:operation => :"OrganizationsApi.
|
|
1123
|
+
:operation => :"OrganizationsApi.list_organization_roles",
|
|
2399
1124
|
:header_params => header_params,
|
|
2400
1125
|
:query_params => query_params,
|
|
2401
1126
|
:form_params => form_params,
|
|
@@ -2404,42 +1129,30 @@ module DaytonaApiClient
|
|
|
2404
1129
|
:return_type => return_type
|
|
2405
1130
|
)
|
|
2406
1131
|
|
|
2407
|
-
data, status_code, headers = @api_client.call_api(:
|
|
1132
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2408
1133
|
if @api_client.config.debugging
|
|
2409
|
-
@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}"
|
|
2410
1135
|
end
|
|
2411
1136
|
return data, status_code, headers
|
|
2412
1137
|
end
|
|
2413
1138
|
|
|
2414
|
-
#
|
|
2415
|
-
# @param organization_id [String] Organization ID
|
|
2416
|
-
# @param test_identity_provider_connection [TestIdentityProviderConnection]
|
|
1139
|
+
# List organizations
|
|
2417
1140
|
# @param [Hash] opts the optional parameters
|
|
2418
|
-
# @return [
|
|
2419
|
-
def
|
|
2420
|
-
data, _status_code, _headers =
|
|
1141
|
+
# @return [Array<Organization>]
|
|
1142
|
+
def list_organizations(opts = {})
|
|
1143
|
+
data, _status_code, _headers = list_organizations_with_http_info(opts)
|
|
2421
1144
|
data
|
|
2422
1145
|
end
|
|
2423
1146
|
|
|
2424
|
-
#
|
|
2425
|
-
# @param organization_id [String] Organization ID
|
|
2426
|
-
# @param test_identity_provider_connection [TestIdentityProviderConnection]
|
|
1147
|
+
# List organizations
|
|
2427
1148
|
# @param [Hash] opts the optional parameters
|
|
2428
|
-
# @return [Array<(
|
|
2429
|
-
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 = {})
|
|
2430
1151
|
if @api_client.config.debugging
|
|
2431
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
|
2432
|
-
end
|
|
2433
|
-
# verify the required parameter 'organization_id' is set
|
|
2434
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
2435
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.test_organization_identity_provider_connection"
|
|
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"
|
|
1152
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organizations ...'
|
|
2440
1153
|
end
|
|
2441
1154
|
# resource path
|
|
2442
|
-
local_var_path = '/organizations
|
|
1155
|
+
local_var_path = '/organizations'
|
|
2443
1156
|
|
|
2444
1157
|
# query parameters
|
|
2445
1158
|
query_params = opts[:query_params] || {}
|
|
@@ -2448,26 +1161,21 @@ module DaytonaApiClient
|
|
|
2448
1161
|
header_params = opts[:header_params] || {}
|
|
2449
1162
|
# HTTP header 'Accept' (if needed)
|
|
2450
1163
|
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
1164
|
|
|
2457
1165
|
# form parameters
|
|
2458
1166
|
form_params = opts[:form_params] || {}
|
|
2459
1167
|
|
|
2460
1168
|
# http body (model)
|
|
2461
|
-
post_body = opts[:debug_body]
|
|
1169
|
+
post_body = opts[:debug_body]
|
|
2462
1170
|
|
|
2463
1171
|
# return_type
|
|
2464
|
-
return_type = opts[:debug_return_type] || '
|
|
1172
|
+
return_type = opts[:debug_return_type] || 'Array<Organization>'
|
|
2465
1173
|
|
|
2466
1174
|
# auth_names
|
|
2467
1175
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2468
1176
|
|
|
2469
1177
|
new_options = opts.merge(
|
|
2470
|
-
:operation => :"OrganizationsApi.
|
|
1178
|
+
:operation => :"OrganizationsApi.list_organizations",
|
|
2471
1179
|
:header_params => header_params,
|
|
2472
1180
|
:query_params => query_params,
|
|
2473
1181
|
:form_params => form_params,
|
|
@@ -2476,76 +1184,64 @@ module DaytonaApiClient
|
|
|
2476
1184
|
:return_type => return_type
|
|
2477
1185
|
)
|
|
2478
1186
|
|
|
2479
|
-
data, status_code, headers = @api_client.call_api(:
|
|
1187
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
2480
1188
|
if @api_client.config.debugging
|
|
2481
|
-
@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}"
|
|
2482
1190
|
end
|
|
2483
1191
|
return data, status_code, headers
|
|
2484
1192
|
end
|
|
2485
1193
|
|
|
2486
|
-
#
|
|
1194
|
+
# Suspend organization
|
|
2487
1195
|
# @param organization_id [String] Organization ID
|
|
2488
|
-
# @param user_id [String] User ID
|
|
2489
|
-
# @param update_organization_member_access [UpdateOrganizationMemberAccess]
|
|
2490
1196
|
# @param [Hash] opts the optional parameters
|
|
2491
|
-
# @
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
1197
|
+
# @option opts [OrganizationSuspension] :organization_suspension
|
|
1198
|
+
# @return [nil]
|
|
1199
|
+
def suspend_organization(organization_id, opts = {})
|
|
1200
|
+
suspend_organization_with_http_info(organization_id, opts)
|
|
1201
|
+
nil
|
|
2495
1202
|
end
|
|
2496
1203
|
|
|
2497
|
-
#
|
|
1204
|
+
# Suspend organization
|
|
2498
1205
|
# @param organization_id [String] Organization ID
|
|
2499
|
-
# @param user_id [String] User ID
|
|
2500
|
-
# @param update_organization_member_access [UpdateOrganizationMemberAccess]
|
|
2501
1206
|
# @param [Hash] opts the optional parameters
|
|
2502
|
-
# @
|
|
2503
|
-
|
|
1207
|
+
# @option opts [OrganizationSuspension] :organization_suspension
|
|
1208
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1209
|
+
def suspend_organization_with_http_info(organization_id, opts = {})
|
|
2504
1210
|
if @api_client.config.debugging
|
|
2505
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
|
1211
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.suspend_organization ...'
|
|
2506
1212
|
end
|
|
2507
1213
|
# verify the required parameter 'organization_id' is set
|
|
2508
1214
|
if @api_client.config.client_side_validation && organization_id.nil?
|
|
2509
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.
|
|
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"
|
|
1215
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.suspend_organization"
|
|
2518
1216
|
end
|
|
2519
1217
|
# resource path
|
|
2520
|
-
local_var_path = '/organizations/{organizationId}/
|
|
1218
|
+
local_var_path = '/organizations/{organizationId}/suspend'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
2521
1219
|
|
|
2522
1220
|
# query parameters
|
|
2523
1221
|
query_params = opts[:query_params] || {}
|
|
2524
1222
|
|
|
2525
1223
|
# header parameters
|
|
2526
1224
|
header_params = opts[:header_params] || {}
|
|
2527
|
-
# HTTP header 'Accept' (if needed)
|
|
2528
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
2529
1225
|
# HTTP header 'Content-Type'
|
|
2530
1226
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2531
1227
|
if !content_type.nil?
|
|
2532
|
-
|
|
1228
|
+
header_params['Content-Type'] = content_type
|
|
2533
1229
|
end
|
|
2534
1230
|
|
|
2535
1231
|
# form parameters
|
|
2536
1232
|
form_params = opts[:form_params] || {}
|
|
2537
1233
|
|
|
2538
1234
|
# http body (model)
|
|
2539
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(
|
|
1235
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'organization_suspension'])
|
|
2540
1236
|
|
|
2541
1237
|
# return_type
|
|
2542
|
-
return_type = opts[:debug_return_type]
|
|
1238
|
+
return_type = opts[:debug_return_type]
|
|
2543
1239
|
|
|
2544
1240
|
# auth_names
|
|
2545
1241
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2546
1242
|
|
|
2547
1243
|
new_options = opts.merge(
|
|
2548
|
-
:operation => :"OrganizationsApi.
|
|
1244
|
+
:operation => :"OrganizationsApi.suspend_organization",
|
|
2549
1245
|
:header_params => header_params,
|
|
2550
1246
|
:query_params => query_params,
|
|
2551
1247
|
:form_params => form_params,
|
|
@@ -2556,53 +1252,46 @@ module DaytonaApiClient
|
|
|
2556
1252
|
|
|
2557
1253
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
2558
1254
|
if @api_client.config.debugging
|
|
2559
|
-
@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}"
|
|
2560
1256
|
end
|
|
2561
1257
|
return data, status_code, headers
|
|
2562
1258
|
end
|
|
2563
1259
|
|
|
2564
|
-
#
|
|
1260
|
+
# Unsuspend organization
|
|
2565
1261
|
# @param organization_id [String] Organization ID
|
|
2566
1262
|
# @param [Hash] opts the optional parameters
|
|
2567
|
-
# @option opts [Hash<String, Object>] :request_body Experimental configuration as a JSON object. Set to null to clear the configuration.
|
|
2568
1263
|
# @return [nil]
|
|
2569
|
-
def
|
|
2570
|
-
|
|
1264
|
+
def unsuspend_organization(organization_id, opts = {})
|
|
1265
|
+
unsuspend_organization_with_http_info(organization_id, opts)
|
|
2571
1266
|
nil
|
|
2572
1267
|
end
|
|
2573
1268
|
|
|
2574
|
-
#
|
|
1269
|
+
# Unsuspend organization
|
|
2575
1270
|
# @param organization_id [String] Organization ID
|
|
2576
1271
|
# @param [Hash] opts the optional parameters
|
|
2577
|
-
# @option opts [Hash<String, Object>] :request_body Experimental configuration as a JSON object. Set to null to clear the configuration.
|
|
2578
1272
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
2579
|
-
def
|
|
1273
|
+
def unsuspend_organization_with_http_info(organization_id, opts = {})
|
|
2580
1274
|
if @api_client.config.debugging
|
|
2581
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
|
1275
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.unsuspend_organization ...'
|
|
2582
1276
|
end
|
|
2583
1277
|
# verify the required parameter 'organization_id' is set
|
|
2584
1278
|
if @api_client.config.client_side_validation && organization_id.nil?
|
|
2585
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.
|
|
1279
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.unsuspend_organization"
|
|
2586
1280
|
end
|
|
2587
1281
|
# resource path
|
|
2588
|
-
local_var_path = '/organizations/{organizationId}/
|
|
1282
|
+
local_var_path = '/organizations/{organizationId}/unsuspend'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
2589
1283
|
|
|
2590
1284
|
# query parameters
|
|
2591
1285
|
query_params = opts[:query_params] || {}
|
|
2592
1286
|
|
|
2593
1287
|
# header parameters
|
|
2594
1288
|
header_params = opts[:header_params] || {}
|
|
2595
|
-
# HTTP header 'Content-Type'
|
|
2596
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2597
|
-
if !content_type.nil?
|
|
2598
|
-
header_params['Content-Type'] = content_type
|
|
2599
|
-
end
|
|
2600
1289
|
|
|
2601
1290
|
# form parameters
|
|
2602
1291
|
form_params = opts[:form_params] || {}
|
|
2603
1292
|
|
|
2604
1293
|
# http body (model)
|
|
2605
|
-
post_body = opts[:debug_body]
|
|
1294
|
+
post_body = opts[:debug_body]
|
|
2606
1295
|
|
|
2607
1296
|
# return_type
|
|
2608
1297
|
return_type = opts[:debug_return_type]
|
|
@@ -2611,7 +1300,7 @@ module DaytonaApiClient
|
|
|
2611
1300
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2612
1301
|
|
|
2613
1302
|
new_options = opts.merge(
|
|
2614
|
-
:operation => :"OrganizationsApi.
|
|
1303
|
+
:operation => :"OrganizationsApi.unsuspend_organization",
|
|
2615
1304
|
:header_params => header_params,
|
|
2616
1305
|
:query_params => query_params,
|
|
2617
1306
|
:form_params => form_params,
|
|
@@ -2620,48 +1309,48 @@ module DaytonaApiClient
|
|
|
2620
1309
|
:return_type => return_type
|
|
2621
1310
|
)
|
|
2622
1311
|
|
|
2623
|
-
data, status_code, headers = @api_client.call_api(:
|
|
1312
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
2624
1313
|
if @api_client.config.debugging
|
|
2625
|
-
@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}"
|
|
2626
1315
|
end
|
|
2627
1316
|
return data, status_code, headers
|
|
2628
1317
|
end
|
|
2629
1318
|
|
|
2630
|
-
# Update organization
|
|
1319
|
+
# Update access for organization member
|
|
2631
1320
|
# @param organization_id [String] Organization ID
|
|
2632
|
-
# @param
|
|
2633
|
-
# @param
|
|
1321
|
+
# @param user_id [String] User ID
|
|
1322
|
+
# @param update_organization_member_access [UpdateOrganizationMemberAccess]
|
|
2634
1323
|
# @param [Hash] opts the optional parameters
|
|
2635
|
-
# @return [
|
|
2636
|
-
def
|
|
2637
|
-
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)
|
|
2638
1327
|
data
|
|
2639
1328
|
end
|
|
2640
1329
|
|
|
2641
|
-
# Update organization
|
|
1330
|
+
# Update access for organization member
|
|
2642
1331
|
# @param organization_id [String] Organization ID
|
|
2643
|
-
# @param
|
|
2644
|
-
# @param
|
|
1332
|
+
# @param user_id [String] User ID
|
|
1333
|
+
# @param update_organization_member_access [UpdateOrganizationMemberAccess]
|
|
2645
1334
|
# @param [Hash] opts the optional parameters
|
|
2646
|
-
# @return [Array<(
|
|
2647
|
-
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 = {})
|
|
2648
1337
|
if @api_client.config.debugging
|
|
2649
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
|
1338
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_access_for_organization_member ...'
|
|
2650
1339
|
end
|
|
2651
1340
|
# verify the required parameter 'organization_id' is set
|
|
2652
1341
|
if @api_client.config.client_side_validation && organization_id.nil?
|
|
2653
|
-
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"
|
|
2654
1343
|
end
|
|
2655
|
-
# verify the required parameter '
|
|
2656
|
-
if @api_client.config.client_side_validation &&
|
|
2657
|
-
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"
|
|
2658
1347
|
end
|
|
2659
|
-
# verify the required parameter '
|
|
2660
|
-
if @api_client.config.client_side_validation &&
|
|
2661
|
-
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"
|
|
2662
1351
|
end
|
|
2663
1352
|
# resource path
|
|
2664
|
-
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))
|
|
2665
1354
|
|
|
2666
1355
|
# query parameters
|
|
2667
1356
|
query_params = opts[:query_params] || {}
|
|
@@ -2673,23 +1362,23 @@ module DaytonaApiClient
|
|
|
2673
1362
|
# HTTP header 'Content-Type'
|
|
2674
1363
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2675
1364
|
if !content_type.nil?
|
|
2676
|
-
|
|
1365
|
+
header_params['Content-Type'] = content_type
|
|
2677
1366
|
end
|
|
2678
1367
|
|
|
2679
1368
|
# form parameters
|
|
2680
1369
|
form_params = opts[:form_params] || {}
|
|
2681
1370
|
|
|
2682
1371
|
# http body (model)
|
|
2683
|
-
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)
|
|
2684
1373
|
|
|
2685
1374
|
# return_type
|
|
2686
|
-
return_type = opts[:debug_return_type] || '
|
|
1375
|
+
return_type = opts[:debug_return_type] || 'OrganizationUser'
|
|
2687
1376
|
|
|
2688
1377
|
# auth_names
|
|
2689
1378
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2690
1379
|
|
|
2691
1380
|
new_options = opts.merge(
|
|
2692
|
-
:operation => :"OrganizationsApi.
|
|
1381
|
+
:operation => :"OrganizationsApi.update_access_for_organization_member",
|
|
2693
1382
|
:header_params => header_params,
|
|
2694
1383
|
:query_params => query_params,
|
|
2695
1384
|
:form_params => form_params,
|
|
@@ -2698,9 +1387,9 @@ module DaytonaApiClient
|
|
|
2698
1387
|
:return_type => return_type
|
|
2699
1388
|
)
|
|
2700
1389
|
|
|
2701
|
-
data, status_code, headers = @api_client.call_api(:
|
|
1390
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
2702
1391
|
if @api_client.config.debugging
|
|
2703
|
-
@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}"
|
|
2704
1393
|
end
|
|
2705
1394
|
return data, status_code, headers
|
|
2706
1395
|
end
|
|
@@ -2751,7 +1440,7 @@ module DaytonaApiClient
|
|
|
2751
1440
|
# HTTP header 'Content-Type'
|
|
2752
1441
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2753
1442
|
if !content_type.nil?
|
|
2754
|
-
|
|
1443
|
+
header_params['Content-Type'] = content_type
|
|
2755
1444
|
end
|
|
2756
1445
|
|
|
2757
1446
|
# form parameters
|
|
@@ -2783,61 +1472,63 @@ module DaytonaApiClient
|
|
|
2783
1472
|
return data, status_code, headers
|
|
2784
1473
|
end
|
|
2785
1474
|
|
|
2786
|
-
# Update organization
|
|
1475
|
+
# Update organization quota
|
|
2787
1476
|
# @param organization_id [String] Organization ID
|
|
2788
|
-
# @param
|
|
1477
|
+
# @param update_organization_quota [UpdateOrganizationQuota]
|
|
2789
1478
|
# @param [Hash] opts the optional parameters
|
|
2790
|
-
# @return [
|
|
2791
|
-
def
|
|
2792
|
-
|
|
2793
|
-
|
|
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
|
|
2794
1483
|
end
|
|
2795
1484
|
|
|
2796
|
-
# Update organization
|
|
1485
|
+
# Update organization quota
|
|
2797
1486
|
# @param organization_id [String] Organization ID
|
|
2798
|
-
# @param
|
|
1487
|
+
# @param update_organization_quota [UpdateOrganizationQuota]
|
|
2799
1488
|
# @param [Hash] opts the optional parameters
|
|
2800
|
-
# @return [Array<(
|
|
2801
|
-
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 = {})
|
|
2802
1491
|
if @api_client.config.debugging
|
|
2803
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
|
1492
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization_quota ...'
|
|
2804
1493
|
end
|
|
2805
1494
|
# verify the required parameter 'organization_id' is set
|
|
2806
1495
|
if @api_client.config.client_side_validation && organization_id.nil?
|
|
2807
|
-
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"
|
|
2808
1497
|
end
|
|
2809
|
-
# verify the required parameter '
|
|
2810
|
-
if @api_client.config.client_side_validation &&
|
|
2811
|
-
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"
|
|
2812
1501
|
end
|
|
2813
1502
|
# resource path
|
|
2814
|
-
local_var_path = '/organizations/{organizationId}/
|
|
1503
|
+
local_var_path = '/organizations/{organizationId}/quota'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
2815
1504
|
|
|
2816
1505
|
# query parameters
|
|
2817
1506
|
query_params = opts[:query_params] || {}
|
|
2818
1507
|
|
|
2819
1508
|
# header parameters
|
|
2820
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']
|
|
2821
1512
|
# HTTP header 'Content-Type'
|
|
2822
1513
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2823
1514
|
if !content_type.nil?
|
|
2824
|
-
|
|
1515
|
+
header_params['Content-Type'] = content_type
|
|
2825
1516
|
end
|
|
2826
1517
|
|
|
2827
1518
|
# form parameters
|
|
2828
1519
|
form_params = opts[:form_params] || {}
|
|
2829
1520
|
|
|
2830
1521
|
# http body (model)
|
|
2831
|
-
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)
|
|
2832
1523
|
|
|
2833
1524
|
# return_type
|
|
2834
|
-
return_type = opts[:debug_return_type]
|
|
1525
|
+
return_type = opts[:debug_return_type] || 'Organization'
|
|
2835
1526
|
|
|
2836
1527
|
# auth_names
|
|
2837
1528
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2838
1529
|
|
|
2839
1530
|
new_options = opts.merge(
|
|
2840
|
-
:operation => :"OrganizationsApi.
|
|
1531
|
+
:operation => :"OrganizationsApi.update_organization_quota",
|
|
2841
1532
|
:header_params => header_params,
|
|
2842
1533
|
:query_params => query_params,
|
|
2843
1534
|
:form_params => form_params,
|
|
@@ -2846,9 +1537,9 @@ module DaytonaApiClient
|
|
|
2846
1537
|
:return_type => return_type
|
|
2847
1538
|
)
|
|
2848
1539
|
|
|
2849
|
-
data, status_code, headers = @api_client.call_api(:
|
|
1540
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
2850
1541
|
if @api_client.config.debugging
|
|
2851
|
-
@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}"
|
|
2852
1543
|
end
|
|
2853
1544
|
return data, status_code, headers
|
|
2854
1545
|
end
|
|
@@ -2899,7 +1590,7 @@ module DaytonaApiClient
|
|
|
2899
1590
|
# HTTP header 'Content-Type'
|
|
2900
1591
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2901
1592
|
if !content_type.nil?
|
|
2902
|
-
|
|
1593
|
+
header_params['Content-Type'] = content_type
|
|
2903
1594
|
end
|
|
2904
1595
|
|
|
2905
1596
|
# form parameters
|
|
@@ -2931,37 +1622,35 @@ module DaytonaApiClient
|
|
|
2931
1622
|
return data, status_code, headers
|
|
2932
1623
|
end
|
|
2933
1624
|
|
|
2934
|
-
# Update
|
|
2935
|
-
# @param
|
|
2936
|
-
# @param
|
|
1625
|
+
# Update sandbox default limited network egress
|
|
1626
|
+
# @param organization_id [String] Organization ID
|
|
1627
|
+
# @param organization_sandbox_default_limited_network_egress [OrganizationSandboxDefaultLimitedNetworkEgress]
|
|
2937
1628
|
# @param [Hash] opts the optional parameters
|
|
2938
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
2939
1629
|
# @return [nil]
|
|
2940
|
-
def
|
|
2941
|
-
|
|
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)
|
|
2942
1632
|
nil
|
|
2943
1633
|
end
|
|
2944
1634
|
|
|
2945
|
-
# Update
|
|
2946
|
-
# @param
|
|
2947
|
-
# @param
|
|
1635
|
+
# Update sandbox default limited network egress
|
|
1636
|
+
# @param organization_id [String] Organization ID
|
|
1637
|
+
# @param organization_sandbox_default_limited_network_egress [OrganizationSandboxDefaultLimitedNetworkEgress]
|
|
2948
1638
|
# @param [Hash] opts the optional parameters
|
|
2949
|
-
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
2950
1639
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
2951
|
-
def
|
|
1640
|
+
def update_sandbox_default_limited_network_egress_with_http_info(organization_id, organization_sandbox_default_limited_network_egress, opts = {})
|
|
2952
1641
|
if @api_client.config.debugging
|
|
2953
|
-
@api_client.config.logger.debug 'Calling API: OrganizationsApi.
|
|
1642
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_sandbox_default_limited_network_egress ...'
|
|
2954
1643
|
end
|
|
2955
|
-
# verify the required parameter '
|
|
2956
|
-
if @api_client.config.client_side_validation &&
|
|
2957
|
-
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"
|
|
2958
1647
|
end
|
|
2959
|
-
# verify the required parameter '
|
|
2960
|
-
if @api_client.config.client_side_validation &&
|
|
2961
|
-
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"
|
|
2962
1651
|
end
|
|
2963
1652
|
# resource path
|
|
2964
|
-
local_var_path = '/
|
|
1653
|
+
local_var_path = '/organizations/{organizationId}/sandbox-default-limited-network-egress'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
2965
1654
|
|
|
2966
1655
|
# query parameters
|
|
2967
1656
|
query_params = opts[:query_params] || {}
|
|
@@ -2971,15 +1660,14 @@ module DaytonaApiClient
|
|
|
2971
1660
|
# HTTP header 'Content-Type'
|
|
2972
1661
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
2973
1662
|
if !content_type.nil?
|
|
2974
|
-
|
|
1663
|
+
header_params['Content-Type'] = content_type
|
|
2975
1664
|
end
|
|
2976
|
-
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
2977
1665
|
|
|
2978
1666
|
# form parameters
|
|
2979
1667
|
form_params = opts[:form_params] || {}
|
|
2980
1668
|
|
|
2981
1669
|
# http body (model)
|
|
2982
|
-
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)
|
|
2983
1671
|
|
|
2984
1672
|
# return_type
|
|
2985
1673
|
return_type = opts[:debug_return_type]
|
|
@@ -2988,7 +1676,7 @@ module DaytonaApiClient
|
|
|
2988
1676
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
2989
1677
|
|
|
2990
1678
|
new_options = opts.merge(
|
|
2991
|
-
:operation => :"OrganizationsApi.
|
|
1679
|
+
:operation => :"OrganizationsApi.update_sandbox_default_limited_network_egress",
|
|
2992
1680
|
:header_params => header_params,
|
|
2993
1681
|
:query_params => query_params,
|
|
2994
1682
|
:form_params => form_params,
|
|
@@ -2997,9 +1685,9 @@ module DaytonaApiClient
|
|
|
2997
1685
|
:return_type => return_type
|
|
2998
1686
|
)
|
|
2999
1687
|
|
|
3000
|
-
data, status_code, headers = @api_client.call_api(:
|
|
1688
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
3001
1689
|
if @api_client.config.debugging
|
|
3002
|
-
@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}"
|
|
3003
1691
|
end
|
|
3004
1692
|
return data, status_code, headers
|
|
3005
1693
|
end
|