daytona_api_client 0.205.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.
Files changed (227) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +9 -0
  3. data/Gemfile.lock +101 -0
  4. data/daytona_api_client.gemspec +4 -4
  5. data/lib/daytona_api_client/api/api_keys_api.rb +2 -2
  6. data/lib/daytona_api_client/api/audit_api.rb +98 -55
  7. data/lib/daytona_api_client/api/config_api.rb +1 -1
  8. data/lib/daytona_api_client/api/docker_registry_api.rb +67 -6
  9. data/lib/daytona_api_client/api/health_api.rb +3 -54
  10. data/lib/daytona_api_client/api/object_storage_api.rb +1 -1
  11. data/lib/daytona_api_client/api/organizations_api.rb +310 -1846
  12. data/lib/daytona_api_client/api/preview_api.rb +8 -202
  13. data/lib/daytona_api_client/api/runners_api.rb +22 -470
  14. data/lib/daytona_api_client/api/sandbox_api.rb +434 -2354
  15. data/lib/daytona_api_client/api/snapshots_api.rb +113 -42
  16. data/lib/daytona_api_client/api/toolbox_api.rb +5108 -0
  17. data/lib/daytona_api_client/api/users_api.rb +153 -89
  18. data/lib/daytona_api_client/api/volumes_api.rb +2 -2
  19. data/lib/daytona_api_client/api/webhooks_api.rb +164 -27
  20. data/lib/daytona_api_client/api/workspace_api.rb +955 -0
  21. data/lib/daytona_api_client/api_client.rb +4 -8
  22. data/lib/daytona_api_client/api_error.rb +1 -1
  23. data/lib/daytona_api_client/configuration.rb +2 -5
  24. data/lib/daytona_api_client/models/account_provider.rb +74 -3
  25. data/lib/daytona_api_client/models/announcement.rb +74 -3
  26. data/lib/daytona_api_client/models/api_key_list.rb +74 -3
  27. data/lib/daytona_api_client/models/api_key_response.rb +74 -3
  28. data/lib/daytona_api_client/models/audit_log.rb +75 -22
  29. data/lib/daytona_api_client/models/build_info.rb +78 -34
  30. data/lib/daytona_api_client/models/{create_runner_response.rb → command.rb} +104 -23
  31. data/lib/daytona_api_client/models/completion_context.rb +244 -0
  32. data/lib/daytona_api_client/models/completion_item.rb +289 -0
  33. data/lib/daytona_api_client/models/{paginated_traces.rb → completion_list.rb} +106 -91
  34. data/lib/daytona_api_client/models/compressed_screenshot_response.rb +256 -0
  35. data/lib/daytona_api_client/models/computer_use_start_response.rb +263 -0
  36. data/lib/daytona_api_client/models/{available_sandbox_class.rb → computer_use_status_response.rb} +97 -86
  37. data/lib/daytona_api_client/models/computer_use_stop_response.rb +263 -0
  38. data/lib/daytona_api_client/models/create_api_key.rb +75 -4
  39. data/lib/daytona_api_client/models/create_audit_log.rb +350 -0
  40. data/lib/daytona_api_client/models/create_build_info.rb +74 -3
  41. data/lib/daytona_api_client/models/create_docker_registry.rb +139 -7
  42. data/lib/daytona_api_client/models/create_linked_account.rb +74 -3
  43. data/lib/daytona_api_client/models/create_organization.rb +78 -34
  44. data/lib/daytona_api_client/models/create_organization_invitation.rb +76 -5
  45. data/lib/daytona_api_client/models/create_organization_quota.rb +78 -26
  46. data/lib/daytona_api_client/models/create_organization_role.rb +74 -3
  47. data/lib/daytona_api_client/models/create_runner.rb +386 -43
  48. data/lib/daytona_api_client/models/create_sandbox.rb +117 -108
  49. data/lib/daytona_api_client/models/{signed_port_preview_url.rb → create_session_request.rb} +93 -103
  50. data/lib/daytona_api_client/models/create_snapshot.rb +88 -61
  51. data/lib/daytona_api_client/models/create_user.rb +97 -40
  52. data/lib/daytona_api_client/models/create_volume.rb +74 -3
  53. data/lib/daytona_api_client/models/create_workspace.rb +411 -0
  54. data/lib/daytona_api_client/models/daytona_configuration.rb +78 -96
  55. data/lib/daytona_api_client/models/{runner_service_health.rb → display_info_response.rb} +95 -59
  56. data/lib/daytona_api_client/models/docker_registry.rb +76 -5
  57. data/lib/daytona_api_client/models/{paginated_jobs.rb → download_files.rb} +94 -100
  58. data/lib/daytona_api_client/models/{create_warm_pool.rb → execute_request.rb} +106 -62
  59. data/lib/daytona_api_client/models/execute_response.rb +263 -0
  60. data/lib/daytona_api_client/models/file_info.rb +417 -0
  61. data/lib/daytona_api_client/models/{secret.rb → file_status.rb} +122 -121
  62. data/lib/daytona_api_client/models/git_add_request.rb +264 -0
  63. data/lib/daytona_api_client/models/{admin_create_organization.rb → git_branch_request.rb} +95 -53
  64. data/lib/daytona_api_client/models/git_checkout_request.rb +261 -0
  65. data/lib/daytona_api_client/models/{toolbox_proxy_url.rb → git_clone_request.rb} +142 -10
  66. data/lib/daytona_api_client/models/{trace_span.rb → git_commit_info.rb} +148 -141
  67. data/lib/daytona_api_client/models/git_commit_request.rb +325 -0
  68. data/lib/daytona_api_client/models/{runner_healthcheck.rb → git_commit_response.rb} +92 -74
  69. data/lib/daytona_api_client/models/{create_secret.rb → git_delete_branch_request.rb} +106 -59
  70. data/lib/daytona_api_client/models/{snapshot_manager_credentials.rb → git_repo_request.rb} +96 -35
  71. data/lib/daytona_api_client/models/git_status.rb +290 -0
  72. data/lib/daytona_api_client/models/health_controller_check200_response.rb +74 -3
  73. data/lib/daytona_api_client/models/health_controller_check200_response_info_value.rb +74 -3
  74. data/lib/daytona_api_client/models/health_controller_check503_response.rb +74 -3
  75. data/lib/daytona_api_client/models/{oidc_id_p_config_response.rb → keyboard_hotkey_request.rb} +93 -59
  76. data/lib/daytona_api_client/models/{create_region_response.rb → keyboard_press_request.rb} +102 -63
  77. data/lib/daytona_api_client/models/keyboard_type_request.rb +246 -0
  78. data/lib/daytona_api_client/models/list_branch_response.rb +237 -0
  79. data/lib/daytona_api_client/models/lsp_completion_params.rb +325 -0
  80. data/lib/daytona_api_client/models/lsp_document_request.rb +290 -0
  81. data/lib/daytona_api_client/models/lsp_location.rb +261 -0
  82. data/lib/daytona_api_client/models/lsp_server_request.rb +263 -0
  83. data/lib/daytona_api_client/models/{create_sandbox_snapshot.rb → lsp_symbol.rb} +132 -22
  84. data/lib/daytona_api_client/models/match.rb +287 -0
  85. data/lib/daytona_api_client/models/mouse_click_request.rb +283 -0
  86. data/lib/daytona_api_client/models/mouse_click_response.rb +263 -0
  87. data/lib/daytona_api_client/models/mouse_drag_request.rb +327 -0
  88. data/lib/daytona_api_client/models/mouse_drag_response.rb +263 -0
  89. data/lib/daytona_api_client/models/mouse_move_request.rb +263 -0
  90. data/lib/daytona_api_client/models/mouse_move_response.rb +263 -0
  91. data/lib/daytona_api_client/models/mouse_position.rb +263 -0
  92. data/lib/daytona_api_client/models/mouse_scroll_request.rb +300 -0
  93. data/lib/daytona_api_client/models/{test_identity_provider_connection_response.rb → mouse_scroll_response.rb} +81 -30
  94. data/lib/daytona_api_client/models/oidc_config.rb +74 -3
  95. data/lib/daytona_api_client/models/organization.rb +159 -270
  96. data/lib/daytona_api_client/models/organization_invitation.rb +78 -7
  97. data/lib/daytona_api_client/models/organization_role.rb +74 -3
  98. data/lib/daytona_api_client/models/organization_sandbox_default_limited_network_egress.rb +74 -3
  99. data/lib/daytona_api_client/models/organization_suspension.rb +79 -10
  100. data/lib/daytona_api_client/models/organization_usage_overview.rb +220 -21
  101. data/lib/daytona_api_client/models/organization_user.rb +76 -5
  102. data/lib/daytona_api_client/models/paginated_audit_logs.rb +78 -17
  103. data/lib/daytona_api_client/models/{paginated_sandboxes_deprecated.rb → paginated_sandboxes.rb} +76 -5
  104. data/lib/daytona_api_client/models/paginated_snapshots.rb +74 -3
  105. data/lib/daytona_api_client/models/{paginated_logs.rb → paginated_snapshots_dto.rb} +77 -10
  106. data/lib/daytona_api_client/models/port_preview_url.rb +88 -34
  107. data/lib/daytona_api_client/models/position.rb +261 -0
  108. data/lib/daytona_api_client/models/posthog_config.rb +74 -3
  109. data/lib/daytona_api_client/models/process_errors_response.rb +263 -0
  110. data/lib/daytona_api_client/models/process_logs_response.rb +263 -0
  111. data/lib/daytona_api_client/models/process_restart_response.rb +263 -0
  112. data/lib/daytona_api_client/models/process_status_response.rb +263 -0
  113. data/lib/daytona_api_client/models/{update_last_activity.rb → project_dir_response.rb} +83 -13
  114. data/lib/daytona_api_client/models/{pending_sso_link.rb → pty_create_request.rb} +114 -109
  115. data/lib/daytona_api_client/models/pty_create_response.rb +236 -0
  116. data/lib/daytona_api_client/models/{metric_data_point.rb → pty_list_response.rb} +95 -49
  117. data/lib/daytona_api_client/models/pty_resize_request.rb +263 -0
  118. data/lib/daytona_api_client/models/pty_session_info.rb +425 -0
  119. data/lib/daytona_api_client/models/range.rb +261 -0
  120. data/lib/daytona_api_client/models/region.rb +78 -192
  121. data/lib/daytona_api_client/models/{regenerate_api_key_response.rb → region_screenshot_response.rb} +113 -22
  122. data/lib/daytona_api_client/models/registry_push_access_dto.rb +74 -3
  123. data/lib/daytona_api_client/models/replace_request.rb +289 -0
  124. data/lib/daytona_api_client/models/{oidc_id_p_config.rb → replace_result.rb} +95 -88
  125. data/lib/daytona_api_client/models/runner.rb +215 -155
  126. data/lib/daytona_api_client/models/runner_snapshot_dto.rb +91 -3
  127. data/lib/daytona_api_client/models/runner_state.rb +3 -4
  128. data/lib/daytona_api_client/models/sandbox.rb +101 -206
  129. data/lib/daytona_api_client/models/sandbox_class.rb +6 -8
  130. data/lib/daytona_api_client/models/sandbox_desired_state.rb +3 -5
  131. data/lib/daytona_api_client/models/{create_region.rb → sandbox_info.rb} +113 -49
  132. data/lib/daytona_api_client/models/sandbox_labels.rb +74 -3
  133. data/lib/daytona_api_client/models/sandbox_state.rb +3 -10
  134. data/lib/daytona_api_client/models/sandbox_volume.rb +79 -18
  135. data/lib/daytona_api_client/models/screenshot_response.rb +256 -0
  136. data/lib/daytona_api_client/models/{audit_target_scenario.rb → search_files_response.rb} +95 -66
  137. data/lib/daytona_api_client/models/send_webhook_dto.rb +75 -26
  138. data/lib/daytona_api_client/models/session.rb +251 -0
  139. data/lib/daytona_api_client/models/{list_sandboxes_response.rb → session_execute_request.rb} +110 -34
  140. data/lib/daytona_api_client/models/{organization_sso_enabled.rb → session_execute_response.rb} +104 -30
  141. data/lib/daytona_api_client/models/set_snapshot_general_status_dto.rb +74 -3
  142. data/lib/daytona_api_client/models/snapshot_dto.rb +78 -84
  143. data/lib/daytona_api_client/models/snapshot_state.rb +6 -5
  144. data/lib/daytona_api_client/models/ssh_access_dto.rb +78 -34
  145. data/lib/daytona_api_client/models/ssh_access_validation_dto.rb +98 -7
  146. data/lib/daytona_api_client/models/storage_access_dto.rb +78 -34
  147. data/lib/daytona_api_client/models/update_docker_registry.rb +74 -3
  148. data/lib/daytona_api_client/models/update_organization_invitation.rb +76 -5
  149. data/lib/daytona_api_client/models/update_organization_member_access.rb +76 -5
  150. data/lib/daytona_api_client/models/update_organization_quota.rb +115 -131
  151. data/lib/daytona_api_client/models/update_organization_role.rb +74 -3
  152. data/lib/daytona_api_client/models/update_sandbox_state_dto.rb +80 -29
  153. data/lib/daytona_api_client/models/user.rb +75 -41
  154. data/lib/daytona_api_client/models/{list_secrets_response.rb → user_home_dir_response.rb} +83 -72
  155. data/lib/daytona_api_client/models/user_public_key.rb +74 -3
  156. data/lib/daytona_api_client/models/volume_dto.rb +74 -3
  157. data/lib/daytona_api_client/models/volume_state.rb +3 -4
  158. data/lib/daytona_api_client/models/webhook_app_portal_access.rb +75 -31
  159. data/lib/daytona_api_client/models/{preview_warning.rb → webhook_controller_get_status200_response.rb} +76 -23
  160. data/lib/daytona_api_client/models/webhook_initialization_status.rb +74 -3
  161. data/lib/daytona_api_client/models/windows_response.rb +265 -0
  162. data/lib/daytona_api_client/models/{update_job_status.rb → work_dir_response.rb} +83 -72
  163. data/lib/daytona_api_client/models/{sandbox_list_item.rb → workspace.rb} +299 -222
  164. data/lib/daytona_api_client/version.rb +2 -2
  165. data/lib/daytona_api_client.rb +76 -87
  166. data/project.json +13 -38
  167. metadata +83 -98
  168. data/.gitignore +0 -39
  169. data/.openapi-generator/FILES +0 -176
  170. data/.openapi-generator/VERSION +0 -1
  171. data/.openapi-generator-ignore +0 -31
  172. data/.rspec +0 -2
  173. data/.rubocop.yml +0 -148
  174. data/fix-gemspec.sh +0 -11
  175. data/lib/daytona_api_client/api/admin_api.rb +0 -1618
  176. data/lib/daytona_api_client/api/jobs_api.rb +0 -299
  177. data/lib/daytona_api_client/api/regions_api.rb +0 -77
  178. data/lib/daytona_api_client/api/secret_api.rb +0 -441
  179. data/lib/daytona_api_client/api/warm_pools_api.rb +0 -286
  180. data/lib/daytona_api_client/api_model_base.rb +0 -88
  181. data/lib/daytona_api_client/models/admin_create_runner.rb +0 -326
  182. data/lib/daytona_api_client/models/admin_get_webhook_status200_response.rb +0 -147
  183. data/lib/daytona_api_client/models/audit_scenarios.rb +0 -167
  184. data/lib/daytona_api_client/models/create_identity_provider.rb +0 -269
  185. data/lib/daytona_api_client/models/create_organization_region_quota.rb +0 -386
  186. data/lib/daytona_api_client/models/date_filter.rb +0 -178
  187. data/lib/daytona_api_client/models/fork_sandbox.rb +0 -148
  188. data/lib/daytona_api_client/models/gpu_type.rb +0 -44
  189. data/lib/daytona_api_client/models/identity_provider.rb +0 -439
  190. data/lib/daytona_api_client/models/int_filter.rb +0 -222
  191. data/lib/daytona_api_client/models/job.rb +0 -366
  192. data/lib/daytona_api_client/models/job_status.rb +0 -43
  193. data/lib/daytona_api_client/models/job_type.rb +0 -55
  194. data/lib/daytona_api_client/models/log_entry.rb +0 -334
  195. data/lib/daytona_api_client/models/metric_series.rb +0 -194
  196. data/lib/daytona_api_client/models/metrics_response.rb +0 -167
  197. data/lib/daytona_api_client/models/organization_preview_warning.rb +0 -165
  198. data/lib/daytona_api_client/models/otel_config.rb +0 -188
  199. data/lib/daytona_api_client/models/poll_jobs_response.rb +0 -167
  200. data/lib/daytona_api_client/models/rate_limit_config.rb +0 -188
  201. data/lib/daytona_api_client/models/rate_limit_entry.rb +0 -158
  202. data/lib/daytona_api_client/models/region_quota.rb +0 -453
  203. data/lib/daytona_api_client/models/region_type.rb +0 -42
  204. data/lib/daytona_api_client/models/region_usage_overview.rb +0 -518
  205. data/lib/daytona_api_client/models/resize_sandbox.rb +0 -225
  206. data/lib/daytona_api_client/models/resolve_sandbox_secrets200_response_inner.rb +0 -176
  207. data/lib/daytona_api_client/models/runner_class.rb +0 -40
  208. data/lib/daytona_api_client/models/runner_full.rb +0 -757
  209. data/lib/daytona_api_client/models/runner_health_metrics.rb +0 -482
  210. data/lib/daytona_api_client/models/sandbox_list_sort_direction.rb +0 -41
  211. data/lib/daytona_api_client/models/sandbox_list_sort_field.rb +0 -45
  212. data/lib/daytona_api_client/models/sso_oidc_config.rb +0 -192
  213. data/lib/daytona_api_client/models/string_filter.rb +0 -182
  214. data/lib/daytona_api_client/models/test_identity_provider_connection.rb +0 -165
  215. data/lib/daytona_api_client/models/trace_summary.rb +0 -310
  216. data/lib/daytona_api_client/models/update_identity_provider.rb +0 -212
  217. data/lib/daytona_api_client/models/update_oidc_id_p_config.rb +0 -178
  218. data/lib/daytona_api_client/models/update_organization_default_region.rb +0 -165
  219. data/lib/daytona_api_client/models/update_organization_region_quota.rb +0 -313
  220. data/lib/daytona_api_client/models/update_region.rb +0 -182
  221. data/lib/daytona_api_client/models/update_sandbox_network_settings.rb +0 -168
  222. data/lib/daytona_api_client/models/update_sandbox_secrets.rb +0 -167
  223. data/lib/daytona_api_client/models/update_secret.rb +0 -170
  224. data/lib/daytona_api_client/models/update_warm_pool.rb +0 -174
  225. data/lib/daytona_api_client/models/url.rb +0 -165
  226. data/lib/daytona_api_client/models/warm_pool.rb +0 -490
  227. data/lib/daytona_api_client/models/webhook_event.rb +0 -46
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: 1.0
7
7
  Contact: support@daytona.com
8
8
  Generated by: https://openapi-generator.tech
9
- Generator version: 7.21.0
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 [OrganizationInvitation]
25
+ # @return [nil]
26
26
  def accept_organization_invitation(invitation_id, opts = {})
27
- data, _status_code, _headers = accept_organization_invitation_with_http_info(invitation_id, opts)
28
- data
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<(OrganizationInvitation, Integer, Hash)>] OrganizationInvitation data, response status code and response headers
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] || 'OrganizationInvitation'
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
- header_params['Content-Type'] = content_type
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
- header_params['Content-Type'] = content_type
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
- header_params['Content-Type'] = content_type
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,35 +471,35 @@ module DaytonaApiClient
614
471
  return data, status_code, headers
615
472
  end
616
473
 
617
- # Delete organization identity provider
474
+ # Delete organization member
618
475
  # @param organization_id [String] Organization ID
619
- # @param id [String] Identity provider ID
476
+ # @param user_id [String] User ID
620
477
  # @param [Hash] opts the optional parameters
621
478
  # @return [nil]
622
- def delete_organization_identity_provider(organization_id, id, opts = {})
623
- delete_organization_identity_provider_with_http_info(organization_id, id, opts)
479
+ def delete_organization_member(organization_id, user_id, opts = {})
480
+ delete_organization_member_with_http_info(organization_id, user_id, opts)
624
481
  nil
625
482
  end
626
483
 
627
- # Delete organization identity provider
484
+ # Delete organization member
628
485
  # @param organization_id [String] Organization ID
629
- # @param id [String] Identity provider ID
486
+ # @param user_id [String] User ID
630
487
  # @param [Hash] opts the optional parameters
631
488
  # @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 = {})
489
+ def delete_organization_member_with_http_info(organization_id, user_id, opts = {})
633
490
  if @api_client.config.debugging
634
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.delete_organization_identity_provider ...'
491
+ @api_client.config.logger.debug 'Calling API: OrganizationsApi.delete_organization_member ...'
635
492
  end
636
493
  # verify the required parameter 'organization_id' is set
637
494
  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"
495
+ fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.delete_organization_member"
639
496
  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"
497
+ # verify the required parameter 'user_id' is set
498
+ if @api_client.config.client_side_validation && user_id.nil?
499
+ fail ArgumentError, "Missing the required parameter 'user_id' when calling OrganizationsApi.delete_organization_member"
643
500
  end
644
501
  # 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))
502
+ local_var_path = '/organizations/{organizationId}/users/{userId}'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s)).sub('{' + 'userId' + '}', CGI.escape(user_id.to_s))
646
503
 
647
504
  # query parameters
648
505
  query_params = opts[:query_params] || {}
@@ -663,7 +520,7 @@ module DaytonaApiClient
663
520
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
664
521
 
665
522
  new_options = opts.merge(
666
- :operation => :"OrganizationsApi.delete_organization_identity_provider",
523
+ :operation => :"OrganizationsApi.delete_organization_member",
667
524
  :header_params => header_params,
668
525
  :query_params => query_params,
669
526
  :form_params => form_params,
@@ -674,40 +531,40 @@ module DaytonaApiClient
674
531
 
675
532
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
676
533
  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}"
534
+ @api_client.config.logger.debug "API called: OrganizationsApi#delete_organization_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
678
535
  end
679
536
  return data, status_code, headers
680
537
  end
681
538
 
682
- # Delete organization member
539
+ # Delete organization role
683
540
  # @param organization_id [String] Organization ID
684
- # @param user_id [String] User ID
541
+ # @param role_id [String] Role ID
685
542
  # @param [Hash] opts the optional parameters
686
543
  # @return [nil]
687
- def delete_organization_member(organization_id, user_id, opts = {})
688
- delete_organization_member_with_http_info(organization_id, user_id, opts)
544
+ def delete_organization_role(organization_id, role_id, opts = {})
545
+ delete_organization_role_with_http_info(organization_id, role_id, opts)
689
546
  nil
690
547
  end
691
548
 
692
- # Delete organization member
549
+ # Delete organization role
693
550
  # @param organization_id [String] Organization ID
694
- # @param user_id [String] User ID
551
+ # @param role_id [String] Role ID
695
552
  # @param [Hash] opts the optional parameters
696
553
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
697
- def delete_organization_member_with_http_info(organization_id, user_id, opts = {})
554
+ def delete_organization_role_with_http_info(organization_id, role_id, opts = {})
698
555
  if @api_client.config.debugging
699
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.delete_organization_member ...'
556
+ @api_client.config.logger.debug 'Calling API: OrganizationsApi.delete_organization_role ...'
700
557
  end
701
558
  # verify the required parameter 'organization_id' is set
702
559
  if @api_client.config.client_side_validation && organization_id.nil?
703
- fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.delete_organization_member"
560
+ fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.delete_organization_role"
704
561
  end
705
- # verify the required parameter 'user_id' is set
706
- if @api_client.config.client_side_validation && user_id.nil?
707
- fail ArgumentError, "Missing the required parameter 'user_id' when calling OrganizationsApi.delete_organization_member"
562
+ # verify the required parameter 'role_id' is set
563
+ if @api_client.config.client_side_validation && role_id.nil?
564
+ fail ArgumentError, "Missing the required parameter 'role_id' when calling OrganizationsApi.delete_organization_role"
708
565
  end
709
566
  # resource path
710
- local_var_path = '/organizations/{organizationId}/users/{userId}'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s)).sub('{' + 'userId' + '}', CGI.escape(user_id.to_s))
567
+ local_var_path = '/organizations/{organizationId}/roles/{roleId}'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s)).sub('{' + 'roleId' + '}', CGI.escape(role_id.to_s))
711
568
 
712
569
  # query parameters
713
570
  query_params = opts[:query_params] || {}
@@ -728,7 +585,7 @@ module DaytonaApiClient
728
585
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
729
586
 
730
587
  new_options = opts.merge(
731
- :operation => :"OrganizationsApi.delete_organization_member",
588
+ :operation => :"OrganizationsApi.delete_organization_role",
732
589
  :header_params => header_params,
733
590
  :query_params => query_params,
734
591
  :form_params => form_params,
@@ -739,40 +596,42 @@ module DaytonaApiClient
739
596
 
740
597
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
741
598
  if @api_client.config.debugging
742
- @api_client.config.logger.debug "API called: OrganizationsApi#delete_organization_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
599
+ @api_client.config.logger.debug "API called: OrganizationsApi#delete_organization_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
743
600
  end
744
601
  return data, status_code, headers
745
602
  end
746
603
 
747
- # Delete organization OpenTelemetry configuration
604
+ # Get organization by ID
748
605
  # @param organization_id [String] Organization ID
749
606
  # @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
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
754
611
  end
755
612
 
756
- # Delete organization OpenTelemetry configuration
613
+ # Get organization by ID
757
614
  # @param organization_id [String] Organization ID
758
615
  # @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 = {})
616
+ # @return [Array<(Organization, Integer, Hash)>] Organization data, response status code and response headers
617
+ def get_organization_with_http_info(organization_id, opts = {})
761
618
  if @api_client.config.debugging
762
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.delete_organization_otel_config ...'
619
+ @api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization ...'
763
620
  end
764
621
  # verify the required parameter 'organization_id' is set
765
622
  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"
623
+ fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.get_organization"
767
624
  end
768
625
  # resource path
769
- local_var_path = '/organizations/{organizationId}/otel-config'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
626
+ local_var_path = '/organizations/{organizationId}'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
770
627
 
771
628
  # query parameters
772
629
  query_params = opts[:query_params] || {}
773
630
 
774
631
  # header parameters
775
632
  header_params = opts[:header_params] || {}
633
+ # HTTP header 'Accept' (if needed)
634
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
776
635
 
777
636
  # form parameters
778
637
  form_params = opts[:form_params] || {}
@@ -781,13 +640,13 @@ module DaytonaApiClient
781
640
  post_body = opts[:debug_body]
782
641
 
783
642
  # return_type
784
- return_type = opts[:debug_return_type]
643
+ return_type = opts[:debug_return_type] || 'Organization'
785
644
 
786
645
  # auth_names
787
646
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
788
647
 
789
648
  new_options = opts.merge(
790
- :operation => :"OrganizationsApi.delete_organization_otel_config",
649
+ :operation => :"OrganizationsApi.get_organization",
791
650
  :header_params => header_params,
792
651
  :query_params => query_params,
793
652
  :form_params => form_params,
@@ -796,48 +655,44 @@ module DaytonaApiClient
796
655
  :return_type => return_type
797
656
  )
798
657
 
799
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
658
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
800
659
  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}"
660
+ @api_client.config.logger.debug "API called: OrganizationsApi#get_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
802
661
  end
803
662
  return data, status_code, headers
804
663
  end
805
664
 
806
- # Delete organization role
807
- # @param organization_id [String] Organization ID
808
- # @param role_id [String] Role ID
665
+ # Get organization by sandbox ID
666
+ # @param sandbox_id [String] Sandbox ID
809
667
  # @param [Hash] opts the optional parameters
810
- # @return [nil]
811
- def delete_organization_role(organization_id, role_id, opts = {})
812
- delete_organization_role_with_http_info(organization_id, role_id, opts)
813
- nil
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)
671
+ data
814
672
  end
815
673
 
816
- # Delete organization role
817
- # @param organization_id [String] Organization ID
818
- # @param role_id [String] Role ID
674
+ # Get organization by sandbox ID
675
+ # @param sandbox_id [String] Sandbox ID
819
676
  # @param [Hash] opts the optional parameters
820
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
821
- def delete_organization_role_with_http_info(organization_id, role_id, opts = {})
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 = {})
822
679
  if @api_client.config.debugging
823
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.delete_organization_role ...'
680
+ @api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization_by_sandbox_id ...'
824
681
  end
825
- # verify the required parameter 'organization_id' is set
826
- if @api_client.config.client_side_validation && organization_id.nil?
827
- fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.delete_organization_role"
828
- end
829
- # verify the required parameter 'role_id' is set
830
- if @api_client.config.client_side_validation && role_id.nil?
831
- fail ArgumentError, "Missing the required parameter 'role_id' when calling OrganizationsApi.delete_organization_role"
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"
832
685
  end
833
686
  # resource path
834
- local_var_path = '/organizations/{organizationId}/roles/{roleId}'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s)).sub('{' + 'roleId' + '}', CGI.escape(role_id.to_s))
687
+ local_var_path = '/organizations/by-sandbox-id/{sandboxId}'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
835
688
 
836
689
  # query parameters
837
690
  query_params = opts[:query_params] || {}
838
691
 
839
692
  # header parameters
840
693
  header_params = opts[:header_params] || {}
694
+ # HTTP header 'Accept' (if needed)
695
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
841
696
 
842
697
  # form parameters
843
698
  form_params = opts[:form_params] || {}
@@ -846,13 +701,13 @@ module DaytonaApiClient
846
701
  post_body = opts[:debug_body]
847
702
 
848
703
  # return_type
849
- return_type = opts[:debug_return_type]
704
+ return_type = opts[:debug_return_type] || 'Organization'
850
705
 
851
706
  # auth_names
852
707
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
853
708
 
854
709
  new_options = opts.merge(
855
- :operation => :"OrganizationsApi.delete_organization_role",
710
+ :operation => :"OrganizationsApi.get_organization_by_sandbox_id",
856
711
  :header_params => header_params,
857
712
  :query_params => query_params,
858
713
  :form_params => form_params,
@@ -861,45 +716,38 @@ module DaytonaApiClient
861
716
  :return_type => return_type
862
717
  )
863
718
 
864
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
719
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
865
720
  if @api_client.config.debugging
866
- @api_client.config.logger.debug "API called: OrganizationsApi#delete_organization_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
721
+ @api_client.config.logger.debug "API called: OrganizationsApi#get_organization_by_sandbox_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
867
722
  end
868
723
  return data, status_code, headers
869
724
  end
870
725
 
871
- # Delete a region
872
- # @param id [String] Region ID
726
+ # Get count of organization invitations for authenticated user
873
727
  # @param [Hash] opts the optional parameters
874
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
875
- # @return [nil]
876
- def delete_region(id, opts = {})
877
- delete_region_with_http_info(id, opts)
878
- nil
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)
731
+ data
879
732
  end
880
733
 
881
- # Delete a region
882
- # @param id [String] Region ID
734
+ # Get count of organization invitations for authenticated user
883
735
  # @param [Hash] opts the optional parameters
884
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
885
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
886
- def delete_region_with_http_info(id, opts = {})
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 = {})
887
738
  if @api_client.config.debugging
888
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.delete_region ...'
889
- end
890
- # verify the required parameter 'id' is set
891
- if @api_client.config.client_side_validation && id.nil?
892
- fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.delete_region"
739
+ @api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization_invitations_count_for_authenticated_user ...'
893
740
  end
894
741
  # resource path
895
- local_var_path = '/regions/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
742
+ local_var_path = '/organizations/invitations/count'
896
743
 
897
744
  # query parameters
898
745
  query_params = opts[:query_params] || {}
899
746
 
900
747
  # header parameters
901
748
  header_params = opts[:header_params] || {}
902
- header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
749
+ # HTTP header 'Accept' (if needed)
750
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
903
751
 
904
752
  # form parameters
905
753
  form_params = opts[:form_params] || {}
@@ -908,13 +756,13 @@ module DaytonaApiClient
908
756
  post_body = opts[:debug_body]
909
757
 
910
758
  # return_type
911
- return_type = opts[:debug_return_type]
759
+ return_type = opts[:debug_return_type] || 'Float'
912
760
 
913
761
  # auth_names
914
762
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
915
763
 
916
764
  new_options = opts.merge(
917
- :operation => :"OrganizationsApi.delete_region",
765
+ :operation => :"OrganizationsApi.get_organization_invitations_count_for_authenticated_user",
918
766
  :header_params => header_params,
919
767
  :query_params => query_params,
920
768
  :form_params => form_params,
@@ -923,36 +771,36 @@ module DaytonaApiClient
923
771
  :return_type => return_type
924
772
  )
925
773
 
926
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
774
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
927
775
  if @api_client.config.debugging
928
- @api_client.config.logger.debug "API called: OrganizationsApi#delete_region\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
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}"
929
777
  end
930
778
  return data, status_code, headers
931
779
  end
932
780
 
933
- # Get organization by ID
781
+ # Get organization current usage overview
934
782
  # @param organization_id [String] Organization ID
935
783
  # @param [Hash] opts the optional parameters
936
- # @return [Organization]
937
- def get_organization(organization_id, opts = {})
938
- data, _status_code, _headers = get_organization_with_http_info(organization_id, opts)
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)
939
787
  data
940
788
  end
941
789
 
942
- # Get organization by ID
790
+ # Get organization current usage overview
943
791
  # @param organization_id [String] Organization ID
944
792
  # @param [Hash] opts the optional parameters
945
- # @return [Array<(Organization, Integer, Hash)>] Organization data, response status code and response headers
946
- def get_organization_with_http_info(organization_id, opts = {})
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 = {})
947
795
  if @api_client.config.debugging
948
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization ...'
796
+ @api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization_usage_overview ...'
949
797
  end
950
798
  # verify the required parameter 'organization_id' is set
951
799
  if @api_client.config.client_side_validation && organization_id.nil?
952
- fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.get_organization"
800
+ fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.get_organization_usage_overview"
953
801
  end
954
802
  # resource path
955
- local_var_path = '/organizations/{organizationId}'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
803
+ local_var_path = '/organizations/{organizationId}/usage'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
956
804
 
957
805
  # query parameters
958
806
  query_params = opts[:query_params] || {}
@@ -969,13 +817,13 @@ module DaytonaApiClient
969
817
  post_body = opts[:debug_body]
970
818
 
971
819
  # return_type
972
- return_type = opts[:debug_return_type] || 'Organization'
820
+ return_type = opts[:debug_return_type] || 'OrganizationUsageOverview'
973
821
 
974
822
  # auth_names
975
823
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
976
824
 
977
825
  new_options = opts.merge(
978
- :operation => :"OrganizationsApi.get_organization",
826
+ :operation => :"OrganizationsApi.get_organization_usage_overview",
979
827
  :header_params => header_params,
980
828
  :query_params => query_params,
981
829
  :form_params => form_params,
@@ -986,48 +834,40 @@ module DaytonaApiClient
986
834
 
987
835
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
988
836
  if @api_client.config.debugging
989
- @api_client.config.logger.debug "API called: OrganizationsApi#get_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
837
+ @api_client.config.logger.debug "API called: OrganizationsApi#get_organization_usage_overview\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
990
838
  end
991
839
  return data, status_code, headers
992
840
  end
993
841
 
994
- # Get organization identity provider
842
+ # Leave organization
995
843
  # @param organization_id [String] Organization ID
996
- # @param id [String] Identity provider ID
997
844
  # @param [Hash] opts the optional parameters
998
- # @return [IdentityProvider]
999
- def get_organization_identity_provider(organization_id, id, opts = {})
1000
- data, _status_code, _headers = get_organization_identity_provider_with_http_info(organization_id, id, opts)
1001
- data
845
+ # @return [nil]
846
+ def leave_organization(organization_id, opts = {})
847
+ leave_organization_with_http_info(organization_id, opts)
848
+ nil
1002
849
  end
1003
850
 
1004
- # Get organization identity provider
851
+ # Leave organization
1005
852
  # @param organization_id [String] Organization ID
1006
- # @param id [String] Identity provider ID
1007
853
  # @param [Hash] opts the optional parameters
1008
- # @return [Array<(IdentityProvider, Integer, Hash)>] IdentityProvider data, response status code and response headers
1009
- def get_organization_identity_provider_with_http_info(organization_id, id, opts = {})
854
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
855
+ def leave_organization_with_http_info(organization_id, opts = {})
1010
856
  if @api_client.config.debugging
1011
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization_identity_provider ...'
857
+ @api_client.config.logger.debug 'Calling API: OrganizationsApi.leave_organization ...'
1012
858
  end
1013
859
  # verify the required parameter 'organization_id' is set
1014
860
  if @api_client.config.client_side_validation && organization_id.nil?
1015
- fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.get_organization_identity_provider"
1016
- end
1017
- # verify the required parameter 'id' is set
1018
- if @api_client.config.client_side_validation && id.nil?
1019
- fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.get_organization_identity_provider"
861
+ fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.leave_organization"
1020
862
  end
1021
863
  # resource path
1022
- local_var_path = '/organizations/{organizationId}/identity-providers/{id}'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s))
864
+ local_var_path = '/organizations/{organizationId}/leave'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
1023
865
 
1024
866
  # query parameters
1025
867
  query_params = opts[:query_params] || {}
1026
868
 
1027
869
  # header parameters
1028
870
  header_params = opts[:header_params] || {}
1029
- # HTTP header 'Accept' (if needed)
1030
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1031
871
 
1032
872
  # form parameters
1033
873
  form_params = opts[:form_params] || {}
@@ -1036,13 +876,13 @@ module DaytonaApiClient
1036
876
  post_body = opts[:debug_body]
1037
877
 
1038
878
  # return_type
1039
- return_type = opts[:debug_return_type] || 'IdentityProvider'
879
+ return_type = opts[:debug_return_type]
1040
880
 
1041
881
  # auth_names
1042
882
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
1043
883
 
1044
884
  new_options = opts.merge(
1045
- :operation => :"OrganizationsApi.get_organization_identity_provider",
885
+ :operation => :"OrganizationsApi.leave_organization",
1046
886
  :header_params => header_params,
1047
887
  :query_params => query_params,
1048
888
  :form_params => form_params,
@@ -1051,30 +891,36 @@ module DaytonaApiClient
1051
891
  :return_type => return_type
1052
892
  )
1053
893
 
1054
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
894
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1055
895
  if @api_client.config.debugging
1056
- @api_client.config.logger.debug "API called: OrganizationsApi#get_organization_identity_provider\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
896
+ @api_client.config.logger.debug "API called: OrganizationsApi#leave_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1057
897
  end
1058
898
  return data, status_code, headers
1059
899
  end
1060
900
 
1061
- # Get count of organization invitations for authenticated user
901
+ # List pending organization invitations
902
+ # @param organization_id [String] Organization ID
1062
903
  # @param [Hash] opts the optional parameters
1063
- # @return [Float]
1064
- def get_organization_invitations_count_for_authenticated_user(opts = {})
1065
- data, _status_code, _headers = get_organization_invitations_count_for_authenticated_user_with_http_info(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)
1066
907
  data
1067
908
  end
1068
909
 
1069
- # Get count of organization invitations for authenticated user
910
+ # List pending organization invitations
911
+ # @param organization_id [String] Organization ID
1070
912
  # @param [Hash] opts the optional parameters
1071
- # @return [Array<(Float, Integer, Hash)>] Float data, response status code and response headers
1072
- def get_organization_invitations_count_for_authenticated_user_with_http_info(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 = {})
1073
915
  if @api_client.config.debugging
1074
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization_invitations_count_for_authenticated_user ...'
916
+ @api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_invitations ...'
917
+ end
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"
1075
921
  end
1076
922
  # resource path
1077
- local_var_path = '/organizations/invitations/count'
923
+ local_var_path = '/organizations/{organizationId}/invitations'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
1078
924
 
1079
925
  # query parameters
1080
926
  query_params = opts[:query_params] || {}
@@ -1091,13 +937,13 @@ module DaytonaApiClient
1091
937
  post_body = opts[:debug_body]
1092
938
 
1093
939
  # return_type
1094
- return_type = opts[:debug_return_type] || 'Float'
940
+ return_type = opts[:debug_return_type] || 'Array<OrganizationInvitation>'
1095
941
 
1096
942
  # auth_names
1097
943
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
1098
944
 
1099
945
  new_options = opts.merge(
1100
- :operation => :"OrganizationsApi.get_organization_invitations_count_for_authenticated_user",
946
+ :operation => :"OrganizationsApi.list_organization_invitations",
1101
947
  :header_params => header_params,
1102
948
  :query_params => query_params,
1103
949
  :form_params => form_params,
@@ -1108,34 +954,28 @@ module DaytonaApiClient
1108
954
 
1109
955
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1110
956
  if @api_client.config.debugging
1111
- @api_client.config.logger.debug "API called: OrganizationsApi#get_organization_invitations_count_for_authenticated_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
957
+ @api_client.config.logger.debug "API called: OrganizationsApi#list_organization_invitations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1112
958
  end
1113
959
  return data, status_code, headers
1114
960
  end
1115
961
 
1116
- # Get organization OTEL config by organization ID
1117
- # @param organization_id [String] Organization ID
962
+ # List organization invitations for authenticated user
1118
963
  # @param [Hash] opts the optional parameters
1119
- # @return [OtelConfig]
1120
- def get_organization_otel_config(organization_id, opts = {})
1121
- data, _status_code, _headers = get_organization_otel_config_with_http_info(organization_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)
1122
967
  data
1123
968
  end
1124
969
 
1125
- # Get organization OTEL config by organization ID
1126
- # @param organization_id [String] Organization ID
970
+ # List organization invitations for authenticated user
1127
971
  # @param [Hash] opts the optional parameters
1128
- # @return [Array<(OtelConfig, Integer, Hash)>] OtelConfig data, response status code and response headers
1129
- def get_organization_otel_config_with_http_info(organization_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 = {})
1130
974
  if @api_client.config.debugging
1131
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization_otel_config ...'
1132
- end
1133
- # verify the required parameter 'organization_id' is set
1134
- if @api_client.config.client_side_validation && organization_id.nil?
1135
- fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.get_organization_otel_config"
975
+ @api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_invitations_for_authenticated_user ...'
1136
976
  end
1137
977
  # resource path
1138
- local_var_path = '/organizations/{organizationId}/otel-config'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
978
+ local_var_path = '/organizations/invitations'
1139
979
 
1140
980
  # query parameters
1141
981
  query_params = opts[:query_params] || {}
@@ -1152,13 +992,13 @@ module DaytonaApiClient
1152
992
  post_body = opts[:debug_body]
1153
993
 
1154
994
  # return_type
1155
- return_type = opts[:debug_return_type] || 'OtelConfig'
995
+ return_type = opts[:debug_return_type] || 'Array<OrganizationInvitation>'
1156
996
 
1157
997
  # auth_names
1158
998
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
1159
999
 
1160
1000
  new_options = opts.merge(
1161
- :operation => :"OrganizationsApi.get_organization_otel_config",
1001
+ :operation => :"OrganizationsApi.list_organization_invitations_for_authenticated_user",
1162
1002
  :header_params => header_params,
1163
1003
  :query_params => query_params,
1164
1004
  :form_params => form_params,
@@ -1169,34 +1009,34 @@ module DaytonaApiClient
1169
1009
 
1170
1010
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1171
1011
  if @api_client.config.debugging
1172
- @api_client.config.logger.debug "API called: OrganizationsApi#get_organization_otel_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1012
+ @api_client.config.logger.debug "API called: OrganizationsApi#list_organization_invitations_for_authenticated_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1173
1013
  end
1174
1014
  return data, status_code, headers
1175
1015
  end
1176
1016
 
1177
- # Get organization OTEL config by sandbox auth token
1178
- # @param auth_token [String] Sandbox Auth Token
1017
+ # List organization members
1018
+ # @param organization_id [String] Organization ID
1179
1019
  # @param [Hash] opts the optional parameters
1180
- # @return [OtelConfig]
1181
- def get_organization_otel_config_by_sandbox_auth_token(auth_token, opts = {})
1182
- data, _status_code, _headers = get_organization_otel_config_by_sandbox_auth_token_with_http_info(auth_token, 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)
1183
1023
  data
1184
1024
  end
1185
1025
 
1186
- # Get organization OTEL config by sandbox auth token
1187
- # @param auth_token [String] Sandbox Auth Token
1026
+ # List organization members
1027
+ # @param organization_id [String] Organization ID
1188
1028
  # @param [Hash] opts the optional parameters
1189
- # @return [Array<(OtelConfig, Integer, Hash)>] OtelConfig data, response status code and response headers
1190
- def get_organization_otel_config_by_sandbox_auth_token_with_http_info(auth_token, 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 = {})
1191
1031
  if @api_client.config.debugging
1192
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization_otel_config_by_sandbox_auth_token ...'
1032
+ @api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_members ...'
1193
1033
  end
1194
- # verify the required parameter 'auth_token' is set
1195
- if @api_client.config.client_side_validation && auth_token.nil?
1196
- fail ArgumentError, "Missing the required parameter 'auth_token' when calling OrganizationsApi.get_organization_otel_config_by_sandbox_auth_token"
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"
1197
1037
  end
1198
1038
  # resource path
1199
- local_var_path = '/organizations/otel-config/by-sandbox-auth-token/{authToken}'.sub('{' + 'authToken' + '}', CGI.escape(auth_token.to_s))
1039
+ local_var_path = '/organizations/{organizationId}/users'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
1200
1040
 
1201
1041
  # query parameters
1202
1042
  query_params = opts[:query_params] || {}
@@ -1213,13 +1053,13 @@ module DaytonaApiClient
1213
1053
  post_body = opts[:debug_body]
1214
1054
 
1215
1055
  # return_type
1216
- return_type = opts[:debug_return_type] || 'OtelConfig'
1056
+ return_type = opts[:debug_return_type] || 'Array<OrganizationUser>'
1217
1057
 
1218
1058
  # auth_names
1219
1059
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
1220
1060
 
1221
1061
  new_options = opts.merge(
1222
- :operation => :"OrganizationsApi.get_organization_otel_config_by_sandbox_auth_token",
1062
+ :operation => :"OrganizationsApi.list_organization_members",
1223
1063
  :header_params => header_params,
1224
1064
  :query_params => query_params,
1225
1065
  :form_params => form_params,
@@ -1230,34 +1070,34 @@ module DaytonaApiClient
1230
1070
 
1231
1071
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1232
1072
  if @api_client.config.debugging
1233
- @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}"
1073
+ @api_client.config.logger.debug "API called: OrganizationsApi#list_organization_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1234
1074
  end
1235
1075
  return data, status_code, headers
1236
1076
  end
1237
1077
 
1238
- # Get organization current usage overview
1078
+ # List organization roles
1239
1079
  # @param organization_id [String] Organization ID
1240
1080
  # @param [Hash] opts the optional parameters
1241
- # @return [OrganizationUsageOverview]
1242
- def get_organization_usage_overview(organization_id, opts = {})
1243
- data, _status_code, _headers = get_organization_usage_overview_with_http_info(organization_id, opts)
1081
+ # @return [Array<OrganizationRole>]
1082
+ def list_organization_roles(organization_id, opts = {})
1083
+ data, _status_code, _headers = list_organization_roles_with_http_info(organization_id, opts)
1244
1084
  data
1245
1085
  end
1246
1086
 
1247
- # Get organization current usage overview
1087
+ # List organization roles
1248
1088
  # @param organization_id [String] Organization ID
1249
1089
  # @param [Hash] opts the optional parameters
1250
- # @return [Array<(OrganizationUsageOverview, Integer, Hash)>] OrganizationUsageOverview data, response status code and response headers
1251
- def get_organization_usage_overview_with_http_info(organization_id, opts = {})
1090
+ # @return [Array<(Array<OrganizationRole>, Integer, Hash)>] Array<OrganizationRole> data, response status code and response headers
1091
+ def list_organization_roles_with_http_info(organization_id, opts = {})
1252
1092
  if @api_client.config.debugging
1253
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization_usage_overview ...'
1093
+ @api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_roles ...'
1254
1094
  end
1255
1095
  # verify the required parameter 'organization_id' is set
1256
1096
  if @api_client.config.client_side_validation && organization_id.nil?
1257
- fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.get_organization_usage_overview"
1097
+ fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.list_organization_roles"
1258
1098
  end
1259
1099
  # resource path
1260
- local_var_path = '/organizations/{organizationId}/usage'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
1100
+ local_var_path = '/organizations/{organizationId}/roles'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
1261
1101
 
1262
1102
  # query parameters
1263
1103
  query_params = opts[:query_params] || {}
@@ -1274,13 +1114,13 @@ module DaytonaApiClient
1274
1114
  post_body = opts[:debug_body]
1275
1115
 
1276
1116
  # return_type
1277
- return_type = opts[:debug_return_type] || 'OrganizationUsageOverview'
1117
+ return_type = opts[:debug_return_type] || 'Array<OrganizationRole>'
1278
1118
 
1279
1119
  # auth_names
1280
1120
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
1281
1121
 
1282
1122
  new_options = opts.merge(
1283
- :operation => :"OrganizationsApi.get_organization_usage_overview",
1123
+ :operation => :"OrganizationsApi.list_organization_roles",
1284
1124
  :header_params => header_params,
1285
1125
  :query_params => query_params,
1286
1126
  :form_params => form_params,
@@ -1291,36 +1131,28 @@ module DaytonaApiClient
1291
1131
 
1292
1132
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1293
1133
  if @api_client.config.debugging
1294
- @api_client.config.logger.debug "API called: OrganizationsApi#get_organization_usage_overview\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1134
+ @api_client.config.logger.debug "API called: OrganizationsApi#list_organization_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1295
1135
  end
1296
1136
  return data, status_code, headers
1297
1137
  end
1298
1138
 
1299
- # Get region by ID
1300
- # @param id [String] Region ID
1139
+ # List organizations
1301
1140
  # @param [Hash] opts the optional parameters
1302
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1303
- # @return [Region]
1304
- def get_region_by_id(id, opts = {})
1305
- data, _status_code, _headers = get_region_by_id_with_http_info(id, opts)
1141
+ # @return [Array<Organization>]
1142
+ def list_organizations(opts = {})
1143
+ data, _status_code, _headers = list_organizations_with_http_info(opts)
1306
1144
  data
1307
1145
  end
1308
1146
 
1309
- # Get region by ID
1310
- # @param id [String] Region ID
1147
+ # List organizations
1311
1148
  # @param [Hash] opts the optional parameters
1312
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1313
- # @return [Array<(Region, Integer, Hash)>] Region data, response status code and response headers
1314
- def get_region_by_id_with_http_info(id, opts = {})
1149
+ # @return [Array<(Array<Organization>, Integer, Hash)>] Array<Organization> data, response status code and response headers
1150
+ def list_organizations_with_http_info(opts = {})
1315
1151
  if @api_client.config.debugging
1316
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.get_region_by_id ...'
1317
- end
1318
- # verify the required parameter 'id' is set
1319
- if @api_client.config.client_side_validation && id.nil?
1320
- fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.get_region_by_id"
1152
+ @api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organizations ...'
1321
1153
  end
1322
1154
  # resource path
1323
- local_var_path = '/regions/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1155
+ local_var_path = '/organizations'
1324
1156
 
1325
1157
  # query parameters
1326
1158
  query_params = opts[:query_params] || {}
@@ -1329,7 +1161,6 @@ module DaytonaApiClient
1329
1161
  header_params = opts[:header_params] || {}
1330
1162
  # HTTP header 'Accept' (if needed)
1331
1163
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1332
- header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
1333
1164
 
1334
1165
  # form parameters
1335
1166
  form_params = opts[:form_params] || {}
@@ -1338,13 +1169,13 @@ module DaytonaApiClient
1338
1169
  post_body = opts[:debug_body]
1339
1170
 
1340
1171
  # return_type
1341
- return_type = opts[:debug_return_type] || 'Region'
1172
+ return_type = opts[:debug_return_type] || 'Array<Organization>'
1342
1173
 
1343
1174
  # auth_names
1344
1175
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
1345
1176
 
1346
1177
  new_options = opts.merge(
1347
- :operation => :"OrganizationsApi.get_region_by_id",
1178
+ :operation => :"OrganizationsApi.list_organizations",
1348
1179
  :header_params => header_params,
1349
1180
  :query_params => query_params,
1350
1181
  :form_params => form_params,
@@ -1355,46 +1186,53 @@ module DaytonaApiClient
1355
1186
 
1356
1187
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1357
1188
  if @api_client.config.debugging
1358
- @api_client.config.logger.debug "API called: OrganizationsApi#get_region_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1189
+ @api_client.config.logger.debug "API called: OrganizationsApi#list_organizations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1359
1190
  end
1360
1191
  return data, status_code, headers
1361
1192
  end
1362
1193
 
1363
- # Leave organization
1194
+ # Suspend organization
1364
1195
  # @param organization_id [String] Organization ID
1365
1196
  # @param [Hash] opts the optional parameters
1197
+ # @option opts [OrganizationSuspension] :organization_suspension
1366
1198
  # @return [nil]
1367
- def leave_organization(organization_id, opts = {})
1368
- leave_organization_with_http_info(organization_id, opts)
1199
+ def suspend_organization(organization_id, opts = {})
1200
+ suspend_organization_with_http_info(organization_id, opts)
1369
1201
  nil
1370
1202
  end
1371
1203
 
1372
- # Leave organization
1204
+ # Suspend organization
1373
1205
  # @param organization_id [String] Organization ID
1374
1206
  # @param [Hash] opts the optional parameters
1207
+ # @option opts [OrganizationSuspension] :organization_suspension
1375
1208
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1376
- def leave_organization_with_http_info(organization_id, opts = {})
1209
+ def suspend_organization_with_http_info(organization_id, opts = {})
1377
1210
  if @api_client.config.debugging
1378
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.leave_organization ...'
1211
+ @api_client.config.logger.debug 'Calling API: OrganizationsApi.suspend_organization ...'
1379
1212
  end
1380
1213
  # verify the required parameter 'organization_id' is set
1381
1214
  if @api_client.config.client_side_validation && organization_id.nil?
1382
- fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.leave_organization"
1215
+ fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.suspend_organization"
1383
1216
  end
1384
1217
  # resource path
1385
- local_var_path = '/organizations/{organizationId}/leave'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
1218
+ local_var_path = '/organizations/{organizationId}/suspend'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
1386
1219
 
1387
1220
  # query parameters
1388
1221
  query_params = opts[:query_params] || {}
1389
1222
 
1390
1223
  # header parameters
1391
1224
  header_params = opts[:header_params] || {}
1225
+ # HTTP header 'Content-Type'
1226
+ content_type = @api_client.select_header_content_type(['application/json'])
1227
+ if !content_type.nil?
1228
+ header_params['Content-Type'] = content_type
1229
+ end
1392
1230
 
1393
1231
  # form parameters
1394
1232
  form_params = opts[:form_params] || {}
1395
1233
 
1396
1234
  # http body (model)
1397
- post_body = opts[:debug_body]
1235
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'organization_suspension'])
1398
1236
 
1399
1237
  # return_type
1400
1238
  return_type = opts[:debug_return_type]
@@ -1403,7 +1241,7 @@ module DaytonaApiClient
1403
1241
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
1404
1242
 
1405
1243
  new_options = opts.merge(
1406
- :operation => :"OrganizationsApi.leave_organization",
1244
+ :operation => :"OrganizationsApi.suspend_organization",
1407
1245
  :header_params => header_params,
1408
1246
  :query_params => query_params,
1409
1247
  :form_params => form_params,
@@ -1414,39 +1252,40 @@ module DaytonaApiClient
1414
1252
 
1415
1253
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1416
1254
  if @api_client.config.debugging
1417
- @api_client.config.logger.debug "API called: OrganizationsApi#leave_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1255
+ @api_client.config.logger.debug "API called: OrganizationsApi#suspend_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1418
1256
  end
1419
1257
  return data, status_code, headers
1420
1258
  end
1421
1259
 
1422
- # List all available regions for the organization
1260
+ # Unsuspend organization
1261
+ # @param organization_id [String] Organization ID
1423
1262
  # @param [Hash] opts the optional parameters
1424
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1425
- # @return [Array<Region>]
1426
- def list_available_regions(opts = {})
1427
- data, _status_code, _headers = list_available_regions_with_http_info(opts)
1428
- data
1263
+ # @return [nil]
1264
+ def unsuspend_organization(organization_id, opts = {})
1265
+ unsuspend_organization_with_http_info(organization_id, opts)
1266
+ nil
1429
1267
  end
1430
1268
 
1431
- # List all available regions for the organization
1269
+ # Unsuspend organization
1270
+ # @param organization_id [String] Organization ID
1432
1271
  # @param [Hash] opts the optional parameters
1433
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1434
- # @return [Array<(Array<Region>, Integer, Hash)>] Array<Region> data, response status code and response headers
1435
- def list_available_regions_with_http_info(opts = {})
1272
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1273
+ def unsuspend_organization_with_http_info(organization_id, opts = {})
1436
1274
  if @api_client.config.debugging
1437
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.list_available_regions ...'
1275
+ @api_client.config.logger.debug 'Calling API: OrganizationsApi.unsuspend_organization ...'
1276
+ end
1277
+ # verify the required parameter 'organization_id' is set
1278
+ if @api_client.config.client_side_validation && organization_id.nil?
1279
+ fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.unsuspend_organization"
1438
1280
  end
1439
1281
  # resource path
1440
- local_var_path = '/regions'
1282
+ local_var_path = '/organizations/{organizationId}/unsuspend'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
1441
1283
 
1442
1284
  # query parameters
1443
1285
  query_params = opts[:query_params] || {}
1444
1286
 
1445
1287
  # header parameters
1446
1288
  header_params = opts[:header_params] || {}
1447
- # HTTP header 'Accept' (if needed)
1448
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1449
- header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
1450
1289
 
1451
1290
  # form parameters
1452
1291
  form_params = opts[:form_params] || {}
@@ -1455,13 +1294,13 @@ module DaytonaApiClient
1455
1294
  post_body = opts[:debug_body]
1456
1295
 
1457
1296
  # return_type
1458
- return_type = opts[:debug_return_type] || 'Array<Region>'
1297
+ return_type = opts[:debug_return_type]
1459
1298
 
1460
1299
  # auth_names
1461
1300
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
1462
1301
 
1463
1302
  new_options = opts.merge(
1464
- :operation => :"OrganizationsApi.list_available_regions",
1303
+ :operation => :"OrganizationsApi.unsuspend_organization",
1465
1304
  :header_params => header_params,
1466
1305
  :query_params => query_params,
1467
1306
  :form_params => form_params,
@@ -1470,36 +1309,48 @@ module DaytonaApiClient
1470
1309
  :return_type => return_type
1471
1310
  )
1472
1311
 
1473
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1312
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1474
1313
  if @api_client.config.debugging
1475
- @api_client.config.logger.debug "API called: OrganizationsApi#list_available_regions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1314
+ @api_client.config.logger.debug "API called: OrganizationsApi#unsuspend_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1476
1315
  end
1477
1316
  return data, status_code, headers
1478
1317
  end
1479
1318
 
1480
- # List available sandbox classes for organization
1319
+ # Update access for organization member
1481
1320
  # @param organization_id [String] Organization ID
1321
+ # @param user_id [String] User ID
1322
+ # @param update_organization_member_access [UpdateOrganizationMemberAccess]
1482
1323
  # @param [Hash] opts the optional parameters
1483
- # @return [Array<AvailableSandboxClass>]
1484
- def list_available_sandbox_classes(organization_id, opts = {})
1485
- data, _status_code, _headers = list_available_sandbox_classes_with_http_info(organization_id, opts)
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)
1486
1327
  data
1487
1328
  end
1488
1329
 
1489
- # List available sandbox classes for organization
1330
+ # Update access for organization member
1490
1331
  # @param organization_id [String] Organization ID
1332
+ # @param user_id [String] User ID
1333
+ # @param update_organization_member_access [UpdateOrganizationMemberAccess]
1491
1334
  # @param [Hash] opts the optional parameters
1492
- # @return [Array<(Array<AvailableSandboxClass>, Integer, Hash)>] Array<AvailableSandboxClass> data, response status code and response headers
1493
- def list_available_sandbox_classes_with_http_info(organization_id, opts = {})
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 = {})
1494
1337
  if @api_client.config.debugging
1495
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.list_available_sandbox_classes ...'
1338
+ @api_client.config.logger.debug 'Calling API: OrganizationsApi.update_access_for_organization_member ...'
1496
1339
  end
1497
1340
  # verify the required parameter 'organization_id' is set
1498
1341
  if @api_client.config.client_side_validation && organization_id.nil?
1499
- fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.list_available_sandbox_classes"
1342
+ fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.update_access_for_organization_member"
1343
+ end
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"
1347
+ end
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"
1500
1351
  end
1501
1352
  # resource path
1502
- local_var_path = '/organizations/{organizationId}/available-sandbox-classes'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
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))
1503
1354
 
1504
1355
  # query parameters
1505
1356
  query_params = opts[:query_params] || {}
@@ -1508,21 +1359,26 @@ module DaytonaApiClient
1508
1359
  header_params = opts[:header_params] || {}
1509
1360
  # HTTP header 'Accept' (if needed)
1510
1361
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1362
+ # HTTP header 'Content-Type'
1363
+ content_type = @api_client.select_header_content_type(['application/json'])
1364
+ if !content_type.nil?
1365
+ header_params['Content-Type'] = content_type
1366
+ end
1511
1367
 
1512
1368
  # form parameters
1513
1369
  form_params = opts[:form_params] || {}
1514
1370
 
1515
1371
  # http body (model)
1516
- post_body = opts[:debug_body]
1372
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(update_organization_member_access)
1517
1373
 
1518
1374
  # return_type
1519
- return_type = opts[:debug_return_type] || 'Array<AvailableSandboxClass>'
1375
+ return_type = opts[:debug_return_type] || 'OrganizationUser'
1520
1376
 
1521
1377
  # auth_names
1522
1378
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
1523
1379
 
1524
1380
  new_options = opts.merge(
1525
- :operation => :"OrganizationsApi.list_available_sandbox_classes",
1381
+ :operation => :"OrganizationsApi.update_access_for_organization_member",
1526
1382
  :header_params => header_params,
1527
1383
  :query_params => query_params,
1528
1384
  :form_params => form_params,
@@ -1531,36 +1387,48 @@ module DaytonaApiClient
1531
1387
  :return_type => return_type
1532
1388
  )
1533
1389
 
1534
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1390
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1535
1391
  if @api_client.config.debugging
1536
- @api_client.config.logger.debug "API called: OrganizationsApi#list_available_sandbox_classes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1392
+ @api_client.config.logger.debug "API called: OrganizationsApi#update_access_for_organization_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1537
1393
  end
1538
1394
  return data, status_code, headers
1539
1395
  end
1540
1396
 
1541
- # List organization identity providers
1397
+ # Update organization invitation
1542
1398
  # @param organization_id [String] Organization ID
1399
+ # @param invitation_id [String] Invitation ID
1400
+ # @param update_organization_invitation [UpdateOrganizationInvitation]
1543
1401
  # @param [Hash] opts the optional parameters
1544
- # @return [Array<IdentityProvider>]
1545
- def list_organization_identity_providers(organization_id, opts = {})
1546
- data, _status_code, _headers = list_organization_identity_providers_with_http_info(organization_id, opts)
1402
+ # @return [OrganizationInvitation]
1403
+ def update_organization_invitation(organization_id, invitation_id, update_organization_invitation, opts = {})
1404
+ data, _status_code, _headers = update_organization_invitation_with_http_info(organization_id, invitation_id, update_organization_invitation, opts)
1547
1405
  data
1548
1406
  end
1549
1407
 
1550
- # List organization identity providers
1408
+ # Update organization invitation
1551
1409
  # @param organization_id [String] Organization ID
1410
+ # @param invitation_id [String] Invitation ID
1411
+ # @param update_organization_invitation [UpdateOrganizationInvitation]
1552
1412
  # @param [Hash] opts the optional parameters
1553
- # @return [Array<(Array<IdentityProvider>, Integer, Hash)>] Array<IdentityProvider> data, response status code and response headers
1554
- def list_organization_identity_providers_with_http_info(organization_id, opts = {})
1413
+ # @return [Array<(OrganizationInvitation, Integer, Hash)>] OrganizationInvitation data, response status code and response headers
1414
+ def update_organization_invitation_with_http_info(organization_id, invitation_id, update_organization_invitation, opts = {})
1555
1415
  if @api_client.config.debugging
1556
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_identity_providers ...'
1416
+ @api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization_invitation ...'
1557
1417
  end
1558
1418
  # verify the required parameter 'organization_id' is set
1559
1419
  if @api_client.config.client_side_validation && organization_id.nil?
1560
- fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.list_organization_identity_providers"
1420
+ fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.update_organization_invitation"
1421
+ end
1422
+ # verify the required parameter 'invitation_id' is set
1423
+ if @api_client.config.client_side_validation && invitation_id.nil?
1424
+ fail ArgumentError, "Missing the required parameter 'invitation_id' when calling OrganizationsApi.update_organization_invitation"
1425
+ end
1426
+ # verify the required parameter 'update_organization_invitation' is set
1427
+ if @api_client.config.client_side_validation && update_organization_invitation.nil?
1428
+ fail ArgumentError, "Missing the required parameter 'update_organization_invitation' when calling OrganizationsApi.update_organization_invitation"
1561
1429
  end
1562
1430
  # resource path
1563
- local_var_path = '/organizations/{organizationId}/identity-providers'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
1431
+ local_var_path = '/organizations/{organizationId}/invitations/{invitationId}'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s)).sub('{' + 'invitationId' + '}', CGI.escape(invitation_id.to_s))
1564
1432
 
1565
1433
  # query parameters
1566
1434
  query_params = opts[:query_params] || {}
@@ -1569,21 +1437,26 @@ module DaytonaApiClient
1569
1437
  header_params = opts[:header_params] || {}
1570
1438
  # HTTP header 'Accept' (if needed)
1571
1439
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1440
+ # HTTP header 'Content-Type'
1441
+ content_type = @api_client.select_header_content_type(['application/json'])
1442
+ if !content_type.nil?
1443
+ header_params['Content-Type'] = content_type
1444
+ end
1572
1445
 
1573
1446
  # form parameters
1574
1447
  form_params = opts[:form_params] || {}
1575
1448
 
1576
1449
  # http body (model)
1577
- post_body = opts[:debug_body]
1450
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(update_organization_invitation)
1578
1451
 
1579
1452
  # return_type
1580
- return_type = opts[:debug_return_type] || 'Array<IdentityProvider>'
1453
+ return_type = opts[:debug_return_type] || 'OrganizationInvitation'
1581
1454
 
1582
1455
  # auth_names
1583
1456
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
1584
1457
 
1585
1458
  new_options = opts.merge(
1586
- :operation => :"OrganizationsApi.list_organization_identity_providers",
1459
+ :operation => :"OrganizationsApi.update_organization_invitation",
1587
1460
  :header_params => header_params,
1588
1461
  :query_params => query_params,
1589
1462
  :form_params => form_params,
@@ -1592,1221 +1465,29 @@ module DaytonaApiClient
1592
1465
  :return_type => return_type
1593
1466
  )
1594
1467
 
1595
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1468
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1596
1469
  if @api_client.config.debugging
1597
- @api_client.config.logger.debug "API called: OrganizationsApi#list_organization_identity_providers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1470
+ @api_client.config.logger.debug "API called: OrganizationsApi#update_organization_invitation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1598
1471
  end
1599
1472
  return data, status_code, headers
1600
1473
  end
1601
1474
 
1602
- # List pending organization invitations
1475
+ # Update organization quota
1603
1476
  # @param organization_id [String] Organization ID
1477
+ # @param update_organization_quota [UpdateOrganizationQuota]
1604
1478
  # @param [Hash] opts the optional parameters
1605
- # @return [Array<OrganizationInvitation>]
1606
- def list_organization_invitations(organization_id, opts = {})
1607
- data, _status_code, _headers = list_organization_invitations_with_http_info(organization_id, opts)
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)
1608
1482
  data
1609
1483
  end
1610
1484
 
1611
- # List pending organization invitations
1485
+ # Update organization quota
1612
1486
  # @param organization_id [String] Organization ID
1487
+ # @param update_organization_quota [UpdateOrganizationQuota]
1613
1488
  # @param [Hash] opts the optional parameters
1614
- # @return [Array<(Array<OrganizationInvitation>, Integer, Hash)>] Array<OrganizationInvitation> data, response status code and response headers
1615
- def list_organization_invitations_with_http_info(organization_id, opts = {})
1616
- if @api_client.config.debugging
1617
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_invitations ...'
1618
- end
1619
- # verify the required parameter 'organization_id' is set
1620
- if @api_client.config.client_side_validation && organization_id.nil?
1621
- fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.list_organization_invitations"
1622
- end
1623
- # resource path
1624
- local_var_path = '/organizations/{organizationId}/invitations'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
1625
-
1626
- # query parameters
1627
- query_params = opts[:query_params] || {}
1628
-
1629
- # header parameters
1630
- header_params = opts[:header_params] || {}
1631
- # HTTP header 'Accept' (if needed)
1632
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1633
-
1634
- # form parameters
1635
- form_params = opts[:form_params] || {}
1636
-
1637
- # http body (model)
1638
- post_body = opts[:debug_body]
1639
-
1640
- # return_type
1641
- return_type = opts[:debug_return_type] || 'Array<OrganizationInvitation>'
1642
-
1643
- # auth_names
1644
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
1645
-
1646
- new_options = opts.merge(
1647
- :operation => :"OrganizationsApi.list_organization_invitations",
1648
- :header_params => header_params,
1649
- :query_params => query_params,
1650
- :form_params => form_params,
1651
- :body => post_body,
1652
- :auth_names => auth_names,
1653
- :return_type => return_type
1654
- )
1655
-
1656
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1657
- if @api_client.config.debugging
1658
- @api_client.config.logger.debug "API called: OrganizationsApi#list_organization_invitations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1659
- end
1660
- return data, status_code, headers
1661
- end
1662
-
1663
- # List organization invitations for authenticated user
1664
- # @param [Hash] opts the optional parameters
1665
- # @return [Array<OrganizationInvitation>]
1666
- def list_organization_invitations_for_authenticated_user(opts = {})
1667
- data, _status_code, _headers = list_organization_invitations_for_authenticated_user_with_http_info(opts)
1668
- data
1669
- end
1670
-
1671
- # List organization invitations for authenticated user
1672
- # @param [Hash] opts the optional parameters
1673
- # @return [Array<(Array<OrganizationInvitation>, Integer, Hash)>] Array<OrganizationInvitation> data, response status code and response headers
1674
- def list_organization_invitations_for_authenticated_user_with_http_info(opts = {})
1675
- if @api_client.config.debugging
1676
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_invitations_for_authenticated_user ...'
1677
- end
1678
- # resource path
1679
- local_var_path = '/organizations/invitations'
1680
-
1681
- # query parameters
1682
- query_params = opts[:query_params] || {}
1683
-
1684
- # header parameters
1685
- header_params = opts[:header_params] || {}
1686
- # HTTP header 'Accept' (if needed)
1687
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1688
-
1689
- # form parameters
1690
- form_params = opts[:form_params] || {}
1691
-
1692
- # http body (model)
1693
- post_body = opts[:debug_body]
1694
-
1695
- # return_type
1696
- return_type = opts[:debug_return_type] || 'Array<OrganizationInvitation>'
1697
-
1698
- # auth_names
1699
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
1700
-
1701
- new_options = opts.merge(
1702
- :operation => :"OrganizationsApi.list_organization_invitations_for_authenticated_user",
1703
- :header_params => header_params,
1704
- :query_params => query_params,
1705
- :form_params => form_params,
1706
- :body => post_body,
1707
- :auth_names => auth_names,
1708
- :return_type => return_type
1709
- )
1710
-
1711
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1712
- if @api_client.config.debugging
1713
- @api_client.config.logger.debug "API called: OrganizationsApi#list_organization_invitations_for_authenticated_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1714
- end
1715
- return data, status_code, headers
1716
- end
1717
-
1718
- # List organization members
1719
- # @param organization_id [String] Organization ID
1720
- # @param [Hash] opts the optional parameters
1721
- # @return [Array<OrganizationUser>]
1722
- def list_organization_members(organization_id, opts = {})
1723
- data, _status_code, _headers = list_organization_members_with_http_info(organization_id, opts)
1724
- data
1725
- end
1726
-
1727
- # List organization members
1728
- # @param organization_id [String] Organization ID
1729
- # @param [Hash] opts the optional parameters
1730
- # @return [Array<(Array<OrganizationUser>, Integer, Hash)>] Array<OrganizationUser> data, response status code and response headers
1731
- def list_organization_members_with_http_info(organization_id, opts = {})
1732
- if @api_client.config.debugging
1733
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_members ...'
1734
- end
1735
- # verify the required parameter 'organization_id' is set
1736
- if @api_client.config.client_side_validation && organization_id.nil?
1737
- fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.list_organization_members"
1738
- end
1739
- # resource path
1740
- local_var_path = '/organizations/{organizationId}/users'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
1741
-
1742
- # query parameters
1743
- query_params = opts[:query_params] || {}
1744
-
1745
- # header parameters
1746
- header_params = opts[:header_params] || {}
1747
- # HTTP header 'Accept' (if needed)
1748
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1749
-
1750
- # form parameters
1751
- form_params = opts[:form_params] || {}
1752
-
1753
- # http body (model)
1754
- post_body = opts[:debug_body]
1755
-
1756
- # return_type
1757
- return_type = opts[:debug_return_type] || 'Array<OrganizationUser>'
1758
-
1759
- # auth_names
1760
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
1761
-
1762
- new_options = opts.merge(
1763
- :operation => :"OrganizationsApi.list_organization_members",
1764
- :header_params => header_params,
1765
- :query_params => query_params,
1766
- :form_params => form_params,
1767
- :body => post_body,
1768
- :auth_names => auth_names,
1769
- :return_type => return_type
1770
- )
1771
-
1772
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1773
- if @api_client.config.debugging
1774
- @api_client.config.logger.debug "API called: OrganizationsApi#list_organization_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1775
- end
1776
- return data, status_code, headers
1777
- end
1778
-
1779
- # List organization roles
1780
- # @param organization_id [String] Organization ID
1781
- # @param [Hash] opts the optional parameters
1782
- # @return [Array<OrganizationRole>]
1783
- def list_organization_roles(organization_id, opts = {})
1784
- data, _status_code, _headers = list_organization_roles_with_http_info(organization_id, opts)
1785
- data
1786
- end
1787
-
1788
- # List organization roles
1789
- # @param organization_id [String] Organization ID
1790
- # @param [Hash] opts the optional parameters
1791
- # @return [Array<(Array<OrganizationRole>, Integer, Hash)>] Array<OrganizationRole> data, response status code and response headers
1792
- def list_organization_roles_with_http_info(organization_id, opts = {})
1793
- if @api_client.config.debugging
1794
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_roles ...'
1795
- end
1796
- # verify the required parameter 'organization_id' is set
1797
- if @api_client.config.client_side_validation && organization_id.nil?
1798
- fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.list_organization_roles"
1799
- end
1800
- # resource path
1801
- local_var_path = '/organizations/{organizationId}/roles'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
1802
-
1803
- # query parameters
1804
- query_params = opts[:query_params] || {}
1805
-
1806
- # header parameters
1807
- header_params = opts[:header_params] || {}
1808
- # HTTP header 'Accept' (if needed)
1809
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1810
-
1811
- # form parameters
1812
- form_params = opts[:form_params] || {}
1813
-
1814
- # http body (model)
1815
- post_body = opts[:debug_body]
1816
-
1817
- # return_type
1818
- return_type = opts[:debug_return_type] || 'Array<OrganizationRole>'
1819
-
1820
- # auth_names
1821
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
1822
-
1823
- new_options = opts.merge(
1824
- :operation => :"OrganizationsApi.list_organization_roles",
1825
- :header_params => header_params,
1826
- :query_params => query_params,
1827
- :form_params => form_params,
1828
- :body => post_body,
1829
- :auth_names => auth_names,
1830
- :return_type => return_type
1831
- )
1832
-
1833
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1834
- if @api_client.config.debugging
1835
- @api_client.config.logger.debug "API called: OrganizationsApi#list_organization_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1836
- end
1837
- return data, status_code, headers
1838
- end
1839
-
1840
- # List organizations
1841
- # @param [Hash] opts the optional parameters
1842
- # @return [Array<Organization>]
1843
- def list_organizations(opts = {})
1844
- data, _status_code, _headers = list_organizations_with_http_info(opts)
1845
- data
1846
- end
1847
-
1848
- # List organizations
1849
- # @param [Hash] opts the optional parameters
1850
- # @return [Array<(Array<Organization>, Integer, Hash)>] Array<Organization> data, response status code and response headers
1851
- def list_organizations_with_http_info(opts = {})
1852
- if @api_client.config.debugging
1853
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organizations ...'
1854
- end
1855
- # resource path
1856
- local_var_path = '/organizations'
1857
-
1858
- # query parameters
1859
- query_params = opts[:query_params] || {}
1860
-
1861
- # header parameters
1862
- header_params = opts[:header_params] || {}
1863
- # HTTP header 'Accept' (if needed)
1864
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1865
-
1866
- # form parameters
1867
- form_params = opts[:form_params] || {}
1868
-
1869
- # http body (model)
1870
- post_body = opts[:debug_body]
1871
-
1872
- # return_type
1873
- return_type = opts[:debug_return_type] || 'Array<Organization>'
1874
-
1875
- # auth_names
1876
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
1877
-
1878
- new_options = opts.merge(
1879
- :operation => :"OrganizationsApi.list_organizations",
1880
- :header_params => header_params,
1881
- :query_params => query_params,
1882
- :form_params => form_params,
1883
- :body => post_body,
1884
- :auth_names => auth_names,
1885
- :return_type => return_type
1886
- )
1887
-
1888
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1889
- if @api_client.config.debugging
1890
- @api_client.config.logger.debug "API called: OrganizationsApi#list_organizations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1891
- end
1892
- return data, status_code, headers
1893
- end
1894
-
1895
- # Regenerate proxy API key for a region
1896
- # @param id [String] Region ID
1897
- # @param [Hash] opts the optional parameters
1898
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1899
- # @return [RegenerateApiKeyResponse]
1900
- def regenerate_proxy_api_key(id, opts = {})
1901
- data, _status_code, _headers = regenerate_proxy_api_key_with_http_info(id, opts)
1902
- data
1903
- end
1904
-
1905
- # Regenerate proxy API key for a region
1906
- # @param id [String] Region ID
1907
- # @param [Hash] opts the optional parameters
1908
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1909
- # @return [Array<(RegenerateApiKeyResponse, Integer, Hash)>] RegenerateApiKeyResponse data, response status code and response headers
1910
- def regenerate_proxy_api_key_with_http_info(id, opts = {})
1911
- if @api_client.config.debugging
1912
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.regenerate_proxy_api_key ...'
1913
- end
1914
- # verify the required parameter 'id' is set
1915
- if @api_client.config.client_side_validation && id.nil?
1916
- fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.regenerate_proxy_api_key"
1917
- end
1918
- # resource path
1919
- local_var_path = '/regions/{id}/regenerate-proxy-api-key'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1920
-
1921
- # query parameters
1922
- query_params = opts[:query_params] || {}
1923
-
1924
- # header parameters
1925
- header_params = opts[:header_params] || {}
1926
- # HTTP header 'Accept' (if needed)
1927
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1928
- header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
1929
-
1930
- # form parameters
1931
- form_params = opts[:form_params] || {}
1932
-
1933
- # http body (model)
1934
- post_body = opts[:debug_body]
1935
-
1936
- # return_type
1937
- return_type = opts[:debug_return_type] || 'RegenerateApiKeyResponse'
1938
-
1939
- # auth_names
1940
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
1941
-
1942
- new_options = opts.merge(
1943
- :operation => :"OrganizationsApi.regenerate_proxy_api_key",
1944
- :header_params => header_params,
1945
- :query_params => query_params,
1946
- :form_params => form_params,
1947
- :body => post_body,
1948
- :auth_names => auth_names,
1949
- :return_type => return_type
1950
- )
1951
-
1952
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1953
- if @api_client.config.debugging
1954
- @api_client.config.logger.debug "API called: OrganizationsApi#regenerate_proxy_api_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1955
- end
1956
- return data, status_code, headers
1957
- end
1958
-
1959
- # Regenerate snapshot manager credentials for a region
1960
- # @param id [String] Region ID
1961
- # @param [Hash] opts the optional parameters
1962
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1963
- # @return [SnapshotManagerCredentials]
1964
- def regenerate_snapshot_manager_credentials(id, opts = {})
1965
- data, _status_code, _headers = regenerate_snapshot_manager_credentials_with_http_info(id, opts)
1966
- data
1967
- end
1968
-
1969
- # Regenerate snapshot manager credentials for a region
1970
- # @param id [String] Region ID
1971
- # @param [Hash] opts the optional parameters
1972
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1973
- # @return [Array<(SnapshotManagerCredentials, Integer, Hash)>] SnapshotManagerCredentials data, response status code and response headers
1974
- def regenerate_snapshot_manager_credentials_with_http_info(id, opts = {})
1975
- if @api_client.config.debugging
1976
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.regenerate_snapshot_manager_credentials ...'
1977
- end
1978
- # verify the required parameter 'id' is set
1979
- if @api_client.config.client_side_validation && id.nil?
1980
- fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.regenerate_snapshot_manager_credentials"
1981
- end
1982
- # resource path
1983
- local_var_path = '/regions/{id}/regenerate-snapshot-manager-credentials'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1984
-
1985
- # query parameters
1986
- query_params = opts[:query_params] || {}
1987
-
1988
- # header parameters
1989
- header_params = opts[:header_params] || {}
1990
- # HTTP header 'Accept' (if needed)
1991
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1992
- header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
1993
-
1994
- # form parameters
1995
- form_params = opts[:form_params] || {}
1996
-
1997
- # http body (model)
1998
- post_body = opts[:debug_body]
1999
-
2000
- # return_type
2001
- return_type = opts[:debug_return_type] || 'SnapshotManagerCredentials'
2002
-
2003
- # auth_names
2004
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
2005
-
2006
- new_options = opts.merge(
2007
- :operation => :"OrganizationsApi.regenerate_snapshot_manager_credentials",
2008
- :header_params => header_params,
2009
- :query_params => query_params,
2010
- :form_params => form_params,
2011
- :body => post_body,
2012
- :auth_names => auth_names,
2013
- :return_type => return_type
2014
- )
2015
-
2016
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2017
- if @api_client.config.debugging
2018
- @api_client.config.logger.debug "API called: OrganizationsApi#regenerate_snapshot_manager_credentials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2019
- end
2020
- return data, status_code, headers
2021
- end
2022
-
2023
- # Regenerate SSH gateway API key for a region
2024
- # @param id [String] Region ID
2025
- # @param [Hash] opts the optional parameters
2026
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
2027
- # @return [RegenerateApiKeyResponse]
2028
- def regenerate_ssh_gateway_api_key(id, opts = {})
2029
- data, _status_code, _headers = regenerate_ssh_gateway_api_key_with_http_info(id, opts)
2030
- data
2031
- end
2032
-
2033
- # Regenerate SSH gateway API key for a region
2034
- # @param id [String] Region ID
2035
- # @param [Hash] opts the optional parameters
2036
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
2037
- # @return [Array<(RegenerateApiKeyResponse, Integer, Hash)>] RegenerateApiKeyResponse data, response status code and response headers
2038
- def regenerate_ssh_gateway_api_key_with_http_info(id, opts = {})
2039
- if @api_client.config.debugging
2040
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.regenerate_ssh_gateway_api_key ...'
2041
- end
2042
- # verify the required parameter 'id' is set
2043
- if @api_client.config.client_side_validation && id.nil?
2044
- fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.regenerate_ssh_gateway_api_key"
2045
- end
2046
- # resource path
2047
- local_var_path = '/regions/{id}/regenerate-ssh-gateway-api-key'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2048
-
2049
- # query parameters
2050
- query_params = opts[:query_params] || {}
2051
-
2052
- # header parameters
2053
- header_params = opts[:header_params] || {}
2054
- # HTTP header 'Accept' (if needed)
2055
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2056
- header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
2057
-
2058
- # form parameters
2059
- form_params = opts[:form_params] || {}
2060
-
2061
- # http body (model)
2062
- post_body = opts[:debug_body]
2063
-
2064
- # return_type
2065
- return_type = opts[:debug_return_type] || 'RegenerateApiKeyResponse'
2066
-
2067
- # auth_names
2068
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
2069
-
2070
- new_options = opts.merge(
2071
- :operation => :"OrganizationsApi.regenerate_ssh_gateway_api_key",
2072
- :header_params => header_params,
2073
- :query_params => query_params,
2074
- :form_params => form_params,
2075
- :body => post_body,
2076
- :auth_names => auth_names,
2077
- :return_type => return_type
2078
- )
2079
-
2080
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2081
- if @api_client.config.debugging
2082
- @api_client.config.logger.debug "API called: OrganizationsApi#regenerate_ssh_gateway_api_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2083
- end
2084
- return data, status_code, headers
2085
- end
2086
-
2087
- # Set default region for organization
2088
- # @param organization_id [String] Organization ID
2089
- # @param update_organization_default_region [UpdateOrganizationDefaultRegion]
2090
- # @param [Hash] opts the optional parameters
2091
- # @return [nil]
2092
- def set_organization_default_region(organization_id, update_organization_default_region, opts = {})
2093
- set_organization_default_region_with_http_info(organization_id, update_organization_default_region, opts)
2094
- nil
2095
- end
2096
-
2097
- # Set default region for organization
2098
- # @param organization_id [String] Organization ID
2099
- # @param update_organization_default_region [UpdateOrganizationDefaultRegion]
2100
- # @param [Hash] opts the optional parameters
2101
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
2102
- def set_organization_default_region_with_http_info(organization_id, update_organization_default_region, opts = {})
2103
- if @api_client.config.debugging
2104
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.set_organization_default_region ...'
2105
- end
2106
- # verify the required parameter 'organization_id' is set
2107
- if @api_client.config.client_side_validation && organization_id.nil?
2108
- fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.set_organization_default_region"
2109
- end
2110
- # verify the required parameter 'update_organization_default_region' is set
2111
- if @api_client.config.client_side_validation && update_organization_default_region.nil?
2112
- fail ArgumentError, "Missing the required parameter 'update_organization_default_region' when calling OrganizationsApi.set_organization_default_region"
2113
- end
2114
- # resource path
2115
- local_var_path = '/organizations/{organizationId}/default-region'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
2116
-
2117
- # query parameters
2118
- query_params = opts[:query_params] || {}
2119
-
2120
- # header parameters
2121
- header_params = opts[:header_params] || {}
2122
- # HTTP header 'Content-Type'
2123
- content_type = @api_client.select_header_content_type(['application/json'])
2124
- if !content_type.nil?
2125
- header_params['Content-Type'] = content_type
2126
- end
2127
-
2128
- # form parameters
2129
- form_params = opts[:form_params] || {}
2130
-
2131
- # http body (model)
2132
- post_body = opts[:debug_body] || @api_client.object_to_http_body(update_organization_default_region)
2133
-
2134
- # return_type
2135
- return_type = opts[:debug_return_type]
2136
-
2137
- # auth_names
2138
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
2139
-
2140
- new_options = opts.merge(
2141
- :operation => :"OrganizationsApi.set_organization_default_region",
2142
- :header_params => header_params,
2143
- :query_params => query_params,
2144
- :form_params => form_params,
2145
- :body => post_body,
2146
- :auth_names => auth_names,
2147
- :return_type => return_type
2148
- )
2149
-
2150
- data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
2151
- if @api_client.config.debugging
2152
- @api_client.config.logger.debug "API called: OrganizationsApi#set_organization_default_region\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2153
- end
2154
- return data, status_code, headers
2155
- end
2156
-
2157
- # Suspend organization
2158
- # @param organization_id [String] Organization ID
2159
- # @param [Hash] opts the optional parameters
2160
- # @option opts [OrganizationSuspension] :organization_suspension
2161
- # @return [nil]
2162
- def suspend_organization(organization_id, opts = {})
2163
- suspend_organization_with_http_info(organization_id, opts)
2164
- nil
2165
- end
2166
-
2167
- # Suspend organization
2168
- # @param organization_id [String] Organization ID
2169
- # @param [Hash] opts the optional parameters
2170
- # @option opts [OrganizationSuspension] :organization_suspension
2171
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
2172
- def suspend_organization_with_http_info(organization_id, opts = {})
2173
- if @api_client.config.debugging
2174
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.suspend_organization ...'
2175
- end
2176
- # verify the required parameter 'organization_id' is set
2177
- if @api_client.config.client_side_validation && organization_id.nil?
2178
- fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.suspend_organization"
2179
- end
2180
- # resource path
2181
- local_var_path = '/organizations/{organizationId}/suspend'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
2182
-
2183
- # query parameters
2184
- query_params = opts[:query_params] || {}
2185
-
2186
- # header parameters
2187
- header_params = opts[:header_params] || {}
2188
- # HTTP header 'Content-Type'
2189
- content_type = @api_client.select_header_content_type(['application/json'])
2190
- if !content_type.nil?
2191
- header_params['Content-Type'] = content_type
2192
- end
2193
-
2194
- # form parameters
2195
- form_params = opts[:form_params] || {}
2196
-
2197
- # http body (model)
2198
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'organization_suspension'])
2199
-
2200
- # return_type
2201
- return_type = opts[:debug_return_type]
2202
-
2203
- # auth_names
2204
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
2205
-
2206
- new_options = opts.merge(
2207
- :operation => :"OrganizationsApi.suspend_organization",
2208
- :header_params => header_params,
2209
- :query_params => query_params,
2210
- :form_params => form_params,
2211
- :body => post_body,
2212
- :auth_names => auth_names,
2213
- :return_type => return_type
2214
- )
2215
-
2216
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2217
- if @api_client.config.debugging
2218
- @api_client.config.logger.debug "API called: OrganizationsApi#suspend_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2219
- end
2220
- return data, status_code, headers
2221
- end
2222
-
2223
- # Test OIDC identity provider connection
2224
- # @param organization_id [String] Organization ID
2225
- # @param test_identity_provider_connection [TestIdentityProviderConnection]
2226
- # @param [Hash] opts the optional parameters
2227
- # @return [TestIdentityProviderConnectionResponse]
2228
- def test_organization_identity_provider_connection(organization_id, test_identity_provider_connection, opts = {})
2229
- data, _status_code, _headers = test_organization_identity_provider_connection_with_http_info(organization_id, test_identity_provider_connection, opts)
2230
- data
2231
- end
2232
-
2233
- # Test OIDC identity provider connection
2234
- # @param organization_id [String] Organization ID
2235
- # @param test_identity_provider_connection [TestIdentityProviderConnection]
2236
- # @param [Hash] opts the optional parameters
2237
- # @return [Array<(TestIdentityProviderConnectionResponse, Integer, Hash)>] TestIdentityProviderConnectionResponse data, response status code and response headers
2238
- def test_organization_identity_provider_connection_with_http_info(organization_id, test_identity_provider_connection, opts = {})
2239
- if @api_client.config.debugging
2240
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.test_organization_identity_provider_connection ...'
2241
- end
2242
- # verify the required parameter 'organization_id' is set
2243
- if @api_client.config.client_side_validation && organization_id.nil?
2244
- fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.test_organization_identity_provider_connection"
2245
- end
2246
- # verify the required parameter 'test_identity_provider_connection' is set
2247
- if @api_client.config.client_side_validation && test_identity_provider_connection.nil?
2248
- fail ArgumentError, "Missing the required parameter 'test_identity_provider_connection' when calling OrganizationsApi.test_organization_identity_provider_connection"
2249
- end
2250
- # resource path
2251
- local_var_path = '/organizations/{organizationId}/identity-providers/test-connection'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
2252
-
2253
- # query parameters
2254
- query_params = opts[:query_params] || {}
2255
-
2256
- # header parameters
2257
- header_params = opts[:header_params] || {}
2258
- # HTTP header 'Accept' (if needed)
2259
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2260
- # HTTP header 'Content-Type'
2261
- content_type = @api_client.select_header_content_type(['application/json'])
2262
- if !content_type.nil?
2263
- header_params['Content-Type'] = content_type
2264
- end
2265
-
2266
- # form parameters
2267
- form_params = opts[:form_params] || {}
2268
-
2269
- # http body (model)
2270
- post_body = opts[:debug_body] || @api_client.object_to_http_body(test_identity_provider_connection)
2271
-
2272
- # return_type
2273
- return_type = opts[:debug_return_type] || 'TestIdentityProviderConnectionResponse'
2274
-
2275
- # auth_names
2276
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
2277
-
2278
- new_options = opts.merge(
2279
- :operation => :"OrganizationsApi.test_organization_identity_provider_connection",
2280
- :header_params => header_params,
2281
- :query_params => query_params,
2282
- :form_params => form_params,
2283
- :body => post_body,
2284
- :auth_names => auth_names,
2285
- :return_type => return_type
2286
- )
2287
-
2288
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2289
- if @api_client.config.debugging
2290
- @api_client.config.logger.debug "API called: OrganizationsApi#test_organization_identity_provider_connection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2291
- end
2292
- return data, status_code, headers
2293
- end
2294
-
2295
- # Unsuspend organization
2296
- # @param organization_id [String] Organization ID
2297
- # @param [Hash] opts the optional parameters
2298
- # @return [nil]
2299
- def unsuspend_organization(organization_id, opts = {})
2300
- unsuspend_organization_with_http_info(organization_id, opts)
2301
- nil
2302
- end
2303
-
2304
- # Unsuspend organization
2305
- # @param organization_id [String] Organization ID
2306
- # @param [Hash] opts the optional parameters
2307
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
2308
- def unsuspend_organization_with_http_info(organization_id, opts = {})
2309
- if @api_client.config.debugging
2310
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.unsuspend_organization ...'
2311
- end
2312
- # verify the required parameter 'organization_id' is set
2313
- if @api_client.config.client_side_validation && organization_id.nil?
2314
- fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.unsuspend_organization"
2315
- end
2316
- # resource path
2317
- local_var_path = '/organizations/{organizationId}/unsuspend'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
2318
-
2319
- # query parameters
2320
- query_params = opts[:query_params] || {}
2321
-
2322
- # header parameters
2323
- header_params = opts[:header_params] || {}
2324
-
2325
- # form parameters
2326
- form_params = opts[:form_params] || {}
2327
-
2328
- # http body (model)
2329
- post_body = opts[:debug_body]
2330
-
2331
- # return_type
2332
- return_type = opts[:debug_return_type]
2333
-
2334
- # auth_names
2335
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
2336
-
2337
- new_options = opts.merge(
2338
- :operation => :"OrganizationsApi.unsuspend_organization",
2339
- :header_params => header_params,
2340
- :query_params => query_params,
2341
- :form_params => form_params,
2342
- :body => post_body,
2343
- :auth_names => auth_names,
2344
- :return_type => return_type
2345
- )
2346
-
2347
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2348
- if @api_client.config.debugging
2349
- @api_client.config.logger.debug "API called: OrganizationsApi#unsuspend_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2350
- end
2351
- return data, status_code, headers
2352
- end
2353
-
2354
- # Update access for organization member
2355
- # @param organization_id [String] Organization ID
2356
- # @param user_id [String] User ID
2357
- # @param update_organization_member_access [UpdateOrganizationMemberAccess]
2358
- # @param [Hash] opts the optional parameters
2359
- # @return [OrganizationUser]
2360
- def update_access_for_organization_member(organization_id, user_id, update_organization_member_access, opts = {})
2361
- data, _status_code, _headers = update_access_for_organization_member_with_http_info(organization_id, user_id, update_organization_member_access, opts)
2362
- data
2363
- end
2364
-
2365
- # Update access for organization member
2366
- # @param organization_id [String] Organization ID
2367
- # @param user_id [String] User ID
2368
- # @param update_organization_member_access [UpdateOrganizationMemberAccess]
2369
- # @param [Hash] opts the optional parameters
2370
- # @return [Array<(OrganizationUser, Integer, Hash)>] OrganizationUser data, response status code and response headers
2371
- def update_access_for_organization_member_with_http_info(organization_id, user_id, update_organization_member_access, opts = {})
2372
- if @api_client.config.debugging
2373
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.update_access_for_organization_member ...'
2374
- end
2375
- # verify the required parameter 'organization_id' is set
2376
- if @api_client.config.client_side_validation && organization_id.nil?
2377
- fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.update_access_for_organization_member"
2378
- end
2379
- # verify the required parameter 'user_id' is set
2380
- if @api_client.config.client_side_validation && user_id.nil?
2381
- fail ArgumentError, "Missing the required parameter 'user_id' when calling OrganizationsApi.update_access_for_organization_member"
2382
- end
2383
- # verify the required parameter 'update_organization_member_access' is set
2384
- if @api_client.config.client_side_validation && update_organization_member_access.nil?
2385
- fail ArgumentError, "Missing the required parameter 'update_organization_member_access' when calling OrganizationsApi.update_access_for_organization_member"
2386
- end
2387
- # resource path
2388
- local_var_path = '/organizations/{organizationId}/users/{userId}/access'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s)).sub('{' + 'userId' + '}', CGI.escape(user_id.to_s))
2389
-
2390
- # query parameters
2391
- query_params = opts[:query_params] || {}
2392
-
2393
- # header parameters
2394
- header_params = opts[:header_params] || {}
2395
- # HTTP header 'Accept' (if needed)
2396
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2397
- # HTTP header 'Content-Type'
2398
- content_type = @api_client.select_header_content_type(['application/json'])
2399
- if !content_type.nil?
2400
- header_params['Content-Type'] = content_type
2401
- end
2402
-
2403
- # form parameters
2404
- form_params = opts[:form_params] || {}
2405
-
2406
- # http body (model)
2407
- post_body = opts[:debug_body] || @api_client.object_to_http_body(update_organization_member_access)
2408
-
2409
- # return_type
2410
- return_type = opts[:debug_return_type] || 'OrganizationUser'
2411
-
2412
- # auth_names
2413
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
2414
-
2415
- new_options = opts.merge(
2416
- :operation => :"OrganizationsApi.update_access_for_organization_member",
2417
- :header_params => header_params,
2418
- :query_params => query_params,
2419
- :form_params => form_params,
2420
- :body => post_body,
2421
- :auth_names => auth_names,
2422
- :return_type => return_type
2423
- )
2424
-
2425
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2426
- if @api_client.config.debugging
2427
- @api_client.config.logger.debug "API called: OrganizationsApi#update_access_for_organization_member\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2428
- end
2429
- return data, status_code, headers
2430
- end
2431
-
2432
- # Update experimental configuration
2433
- # @param organization_id [String] Organization ID
2434
- # @param [Hash] opts the optional parameters
2435
- # @option opts [Hash<String, Object>] :request_body Experimental configuration as a JSON object. Set to null to clear the configuration.
2436
- # @return [nil]
2437
- def update_experimental_config(organization_id, opts = {})
2438
- update_experimental_config_with_http_info(organization_id, opts)
2439
- nil
2440
- end
2441
-
2442
- # Update experimental configuration
2443
- # @param organization_id [String] Organization ID
2444
- # @param [Hash] opts the optional parameters
2445
- # @option opts [Hash<String, Object>] :request_body Experimental configuration as a JSON object. Set to null to clear the configuration.
2446
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
2447
- def update_experimental_config_with_http_info(organization_id, opts = {})
2448
- if @api_client.config.debugging
2449
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.update_experimental_config ...'
2450
- end
2451
- # verify the required parameter 'organization_id' is set
2452
- if @api_client.config.client_side_validation && organization_id.nil?
2453
- fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.update_experimental_config"
2454
- end
2455
- # resource path
2456
- local_var_path = '/organizations/{organizationId}/experimental-config'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
2457
-
2458
- # query parameters
2459
- query_params = opts[:query_params] || {}
2460
-
2461
- # header parameters
2462
- header_params = opts[:header_params] || {}
2463
- # HTTP header 'Content-Type'
2464
- content_type = @api_client.select_header_content_type(['application/json'])
2465
- if !content_type.nil?
2466
- header_params['Content-Type'] = content_type
2467
- end
2468
-
2469
- # form parameters
2470
- form_params = opts[:form_params] || {}
2471
-
2472
- # http body (model)
2473
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'request_body'])
2474
-
2475
- # return_type
2476
- return_type = opts[:debug_return_type]
2477
-
2478
- # auth_names
2479
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
2480
-
2481
- new_options = opts.merge(
2482
- :operation => :"OrganizationsApi.update_experimental_config",
2483
- :header_params => header_params,
2484
- :query_params => query_params,
2485
- :form_params => form_params,
2486
- :body => post_body,
2487
- :auth_names => auth_names,
2488
- :return_type => return_type
2489
- )
2490
-
2491
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2492
- if @api_client.config.debugging
2493
- @api_client.config.logger.debug "API called: OrganizationsApi#update_experimental_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2494
- end
2495
- return data, status_code, headers
2496
- end
2497
-
2498
- # Update organization identity provider
2499
- # @param organization_id [String] Organization ID
2500
- # @param id [String] Identity provider ID
2501
- # @param update_identity_provider [UpdateIdentityProvider]
2502
- # @param [Hash] opts the optional parameters
2503
- # @return [IdentityProvider]
2504
- def update_organization_identity_provider(organization_id, id, update_identity_provider, opts = {})
2505
- data, _status_code, _headers = update_organization_identity_provider_with_http_info(organization_id, id, update_identity_provider, opts)
2506
- data
2507
- end
2508
-
2509
- # Update organization identity provider
2510
- # @param organization_id [String] Organization ID
2511
- # @param id [String] Identity provider ID
2512
- # @param update_identity_provider [UpdateIdentityProvider]
2513
- # @param [Hash] opts the optional parameters
2514
- # @return [Array<(IdentityProvider, Integer, Hash)>] IdentityProvider data, response status code and response headers
2515
- def update_organization_identity_provider_with_http_info(organization_id, id, update_identity_provider, opts = {})
2516
- if @api_client.config.debugging
2517
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization_identity_provider ...'
2518
- end
2519
- # verify the required parameter 'organization_id' is set
2520
- if @api_client.config.client_side_validation && organization_id.nil?
2521
- fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.update_organization_identity_provider"
2522
- end
2523
- # verify the required parameter 'id' is set
2524
- if @api_client.config.client_side_validation && id.nil?
2525
- fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.update_organization_identity_provider"
2526
- end
2527
- # verify the required parameter 'update_identity_provider' is set
2528
- if @api_client.config.client_side_validation && update_identity_provider.nil?
2529
- fail ArgumentError, "Missing the required parameter 'update_identity_provider' when calling OrganizationsApi.update_organization_identity_provider"
2530
- end
2531
- # resource path
2532
- local_var_path = '/organizations/{organizationId}/identity-providers/{id}'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s)).sub('{' + 'id' + '}', CGI.escape(id.to_s))
2533
-
2534
- # query parameters
2535
- query_params = opts[:query_params] || {}
2536
-
2537
- # header parameters
2538
- header_params = opts[:header_params] || {}
2539
- # HTTP header 'Accept' (if needed)
2540
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2541
- # HTTP header 'Content-Type'
2542
- content_type = @api_client.select_header_content_type(['application/json'])
2543
- if !content_type.nil?
2544
- header_params['Content-Type'] = content_type
2545
- end
2546
-
2547
- # form parameters
2548
- form_params = opts[:form_params] || {}
2549
-
2550
- # http body (model)
2551
- post_body = opts[:debug_body] || @api_client.object_to_http_body(update_identity_provider)
2552
-
2553
- # return_type
2554
- return_type = opts[:debug_return_type] || 'IdentityProvider'
2555
-
2556
- # auth_names
2557
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
2558
-
2559
- new_options = opts.merge(
2560
- :operation => :"OrganizationsApi.update_organization_identity_provider",
2561
- :header_params => header_params,
2562
- :query_params => query_params,
2563
- :form_params => form_params,
2564
- :body => post_body,
2565
- :auth_names => auth_names,
2566
- :return_type => return_type
2567
- )
2568
-
2569
- data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
2570
- if @api_client.config.debugging
2571
- @api_client.config.logger.debug "API called: OrganizationsApi#update_organization_identity_provider\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2572
- end
2573
- return data, status_code, headers
2574
- end
2575
-
2576
- # Update organization invitation
2577
- # @param organization_id [String] Organization ID
2578
- # @param invitation_id [String] Invitation ID
2579
- # @param update_organization_invitation [UpdateOrganizationInvitation]
2580
- # @param [Hash] opts the optional parameters
2581
- # @return [OrganizationInvitation]
2582
- def update_organization_invitation(organization_id, invitation_id, update_organization_invitation, opts = {})
2583
- data, _status_code, _headers = update_organization_invitation_with_http_info(organization_id, invitation_id, update_organization_invitation, opts)
2584
- data
2585
- end
2586
-
2587
- # Update organization invitation
2588
- # @param organization_id [String] Organization ID
2589
- # @param invitation_id [String] Invitation ID
2590
- # @param update_organization_invitation [UpdateOrganizationInvitation]
2591
- # @param [Hash] opts the optional parameters
2592
- # @return [Array<(OrganizationInvitation, Integer, Hash)>] OrganizationInvitation data, response status code and response headers
2593
- def update_organization_invitation_with_http_info(organization_id, invitation_id, update_organization_invitation, opts = {})
2594
- if @api_client.config.debugging
2595
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization_invitation ...'
2596
- end
2597
- # verify the required parameter 'organization_id' is set
2598
- if @api_client.config.client_side_validation && organization_id.nil?
2599
- fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.update_organization_invitation"
2600
- end
2601
- # verify the required parameter 'invitation_id' is set
2602
- if @api_client.config.client_side_validation && invitation_id.nil?
2603
- fail ArgumentError, "Missing the required parameter 'invitation_id' when calling OrganizationsApi.update_organization_invitation"
2604
- end
2605
- # verify the required parameter 'update_organization_invitation' is set
2606
- if @api_client.config.client_side_validation && update_organization_invitation.nil?
2607
- fail ArgumentError, "Missing the required parameter 'update_organization_invitation' when calling OrganizationsApi.update_organization_invitation"
2608
- end
2609
- # resource path
2610
- local_var_path = '/organizations/{organizationId}/invitations/{invitationId}'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s)).sub('{' + 'invitationId' + '}', CGI.escape(invitation_id.to_s))
2611
-
2612
- # query parameters
2613
- query_params = opts[:query_params] || {}
2614
-
2615
- # header parameters
2616
- header_params = opts[:header_params] || {}
2617
- # HTTP header 'Accept' (if needed)
2618
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2619
- # HTTP header 'Content-Type'
2620
- content_type = @api_client.select_header_content_type(['application/json'])
2621
- if !content_type.nil?
2622
- header_params['Content-Type'] = content_type
2623
- end
2624
-
2625
- # form parameters
2626
- form_params = opts[:form_params] || {}
2627
-
2628
- # http body (model)
2629
- post_body = opts[:debug_body] || @api_client.object_to_http_body(update_organization_invitation)
2630
-
2631
- # return_type
2632
- return_type = opts[:debug_return_type] || 'OrganizationInvitation'
2633
-
2634
- # auth_names
2635
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
2636
-
2637
- new_options = opts.merge(
2638
- :operation => :"OrganizationsApi.update_organization_invitation",
2639
- :header_params => header_params,
2640
- :query_params => query_params,
2641
- :form_params => form_params,
2642
- :body => post_body,
2643
- :auth_names => auth_names,
2644
- :return_type => return_type
2645
- )
2646
-
2647
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2648
- if @api_client.config.debugging
2649
- @api_client.config.logger.debug "API called: OrganizationsApi#update_organization_invitation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2650
- end
2651
- return data, status_code, headers
2652
- end
2653
-
2654
- # Update organization OpenTelemetry configuration
2655
- # @param organization_id [String] Organization ID
2656
- # @param otel_config [OtelConfig]
2657
- # @param [Hash] opts the optional parameters
2658
- # @return [nil]
2659
- def update_organization_otel_config(organization_id, otel_config, opts = {})
2660
- update_organization_otel_config_with_http_info(organization_id, otel_config, opts)
2661
- nil
2662
- end
2663
-
2664
- # Update organization OpenTelemetry configuration
2665
- # @param organization_id [String] Organization ID
2666
- # @param otel_config [OtelConfig]
2667
- # @param [Hash] opts the optional parameters
2668
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
2669
- def update_organization_otel_config_with_http_info(organization_id, otel_config, opts = {})
2670
- if @api_client.config.debugging
2671
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization_otel_config ...'
2672
- end
2673
- # verify the required parameter 'organization_id' is set
2674
- if @api_client.config.client_side_validation && organization_id.nil?
2675
- fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.update_organization_otel_config"
2676
- end
2677
- # verify the required parameter 'otel_config' is set
2678
- if @api_client.config.client_side_validation && otel_config.nil?
2679
- fail ArgumentError, "Missing the required parameter 'otel_config' when calling OrganizationsApi.update_organization_otel_config"
2680
- end
2681
- # resource path
2682
- local_var_path = '/organizations/{organizationId}/otel-config'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
2683
-
2684
- # query parameters
2685
- query_params = opts[:query_params] || {}
2686
-
2687
- # header parameters
2688
- header_params = opts[:header_params] || {}
2689
- # HTTP header 'Content-Type'
2690
- content_type = @api_client.select_header_content_type(['application/json'])
2691
- if !content_type.nil?
2692
- header_params['Content-Type'] = content_type
2693
- end
2694
-
2695
- # form parameters
2696
- form_params = opts[:form_params] || {}
2697
-
2698
- # http body (model)
2699
- post_body = opts[:debug_body] || @api_client.object_to_http_body(otel_config)
2700
-
2701
- # return_type
2702
- return_type = opts[:debug_return_type]
2703
-
2704
- # auth_names
2705
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
2706
-
2707
- new_options = opts.merge(
2708
- :operation => :"OrganizationsApi.update_organization_otel_config",
2709
- :header_params => header_params,
2710
- :query_params => query_params,
2711
- :form_params => form_params,
2712
- :body => post_body,
2713
- :auth_names => auth_names,
2714
- :return_type => return_type
2715
- )
2716
-
2717
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2718
- if @api_client.config.debugging
2719
- @api_client.config.logger.debug "API called: OrganizationsApi#update_organization_otel_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2720
- end
2721
- return data, status_code, headers
2722
- end
2723
-
2724
- # Update organization preview warning
2725
- # @param organization_id [String] Organization ID
2726
- # @param organization_preview_warning [OrganizationPreviewWarning]
2727
- # @param [Hash] opts the optional parameters
2728
- # @return [nil]
2729
- def update_organization_preview_warning(organization_id, organization_preview_warning, opts = {})
2730
- update_organization_preview_warning_with_http_info(organization_id, organization_preview_warning, opts)
2731
- nil
2732
- end
2733
-
2734
- # Update organization preview warning
2735
- # @param organization_id [String] Organization ID
2736
- # @param organization_preview_warning [OrganizationPreviewWarning]
2737
- # @param [Hash] opts the optional parameters
2738
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
2739
- def update_organization_preview_warning_with_http_info(organization_id, organization_preview_warning, opts = {})
2740
- if @api_client.config.debugging
2741
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization_preview_warning ...'
2742
- end
2743
- # verify the required parameter 'organization_id' is set
2744
- if @api_client.config.client_side_validation && organization_id.nil?
2745
- fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.update_organization_preview_warning"
2746
- end
2747
- # verify the required parameter 'organization_preview_warning' is set
2748
- if @api_client.config.client_side_validation && organization_preview_warning.nil?
2749
- fail ArgumentError, "Missing the required parameter 'organization_preview_warning' when calling OrganizationsApi.update_organization_preview_warning"
2750
- end
2751
- # resource path
2752
- local_var_path = '/organizations/{organizationId}/preview-warning'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
2753
-
2754
- # query parameters
2755
- query_params = opts[:query_params] || {}
2756
-
2757
- # header parameters
2758
- header_params = opts[:header_params] || {}
2759
- # HTTP header 'Content-Type'
2760
- content_type = @api_client.select_header_content_type(['application/json'])
2761
- if !content_type.nil?
2762
- header_params['Content-Type'] = content_type
2763
- end
2764
-
2765
- # form parameters
2766
- form_params = opts[:form_params] || {}
2767
-
2768
- # http body (model)
2769
- post_body = opts[:debug_body] || @api_client.object_to_http_body(organization_preview_warning)
2770
-
2771
- # return_type
2772
- return_type = opts[:debug_return_type]
2773
-
2774
- # auth_names
2775
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
2776
-
2777
- new_options = opts.merge(
2778
- :operation => :"OrganizationsApi.update_organization_preview_warning",
2779
- :header_params => header_params,
2780
- :query_params => query_params,
2781
- :form_params => form_params,
2782
- :body => post_body,
2783
- :auth_names => auth_names,
2784
- :return_type => return_type
2785
- )
2786
-
2787
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2788
- if @api_client.config.debugging
2789
- @api_client.config.logger.debug "API called: OrganizationsApi#update_organization_preview_warning\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2790
- end
2791
- return data, status_code, headers
2792
- end
2793
-
2794
- # Update organization quota
2795
- # @param organization_id [String] Organization ID
2796
- # @param update_organization_quota [UpdateOrganizationQuota]
2797
- # @param [Hash] opts the optional parameters
2798
- # @return [nil]
2799
- def update_organization_quota(organization_id, update_organization_quota, opts = {})
2800
- update_organization_quota_with_http_info(organization_id, update_organization_quota, opts)
2801
- nil
2802
- end
2803
-
2804
- # Update organization quota
2805
- # @param organization_id [String] Organization ID
2806
- # @param update_organization_quota [UpdateOrganizationQuota]
2807
- # @param [Hash] opts the optional parameters
2808
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
2809
- def update_organization_quota_with_http_info(organization_id, update_organization_quota, opts = {})
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 = {})
2810
1491
  if @api_client.config.debugging
2811
1492
  @api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization_quota ...'
2812
1493
  end
@@ -2826,10 +1507,12 @@ module DaytonaApiClient
2826
1507
 
2827
1508
  # header parameters
2828
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']
2829
1512
  # HTTP header 'Content-Type'
2830
1513
  content_type = @api_client.select_header_content_type(['application/json'])
2831
1514
  if !content_type.nil?
2832
- header_params['Content-Type'] = content_type
1515
+ header_params['Content-Type'] = content_type
2833
1516
  end
2834
1517
 
2835
1518
  # form parameters
@@ -2839,7 +1522,7 @@ module DaytonaApiClient
2839
1522
  post_body = opts[:debug_body] || @api_client.object_to_http_body(update_organization_quota)
2840
1523
 
2841
1524
  # return_type
2842
- return_type = opts[:debug_return_type]
1525
+ return_type = opts[:debug_return_type] || 'Organization'
2843
1526
 
2844
1527
  # auth_names
2845
1528
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
@@ -2861,82 +1544,6 @@ module DaytonaApiClient
2861
1544
  return data, status_code, headers
2862
1545
  end
2863
1546
 
2864
- # Update organization region quota
2865
- # @param organization_id [String] Organization ID
2866
- # @param region_id [String] ID of the region where the updated quota will be applied
2867
- # @param update_organization_region_quota [UpdateOrganizationRegionQuota]
2868
- # @param [Hash] opts the optional parameters
2869
- # @return [nil]
2870
- def update_organization_region_quota(organization_id, region_id, update_organization_region_quota, opts = {})
2871
- update_organization_region_quota_with_http_info(organization_id, region_id, update_organization_region_quota, opts)
2872
- nil
2873
- end
2874
-
2875
- # Update organization region quota
2876
- # @param organization_id [String] Organization ID
2877
- # @param region_id [String] ID of the region where the updated quota will be applied
2878
- # @param update_organization_region_quota [UpdateOrganizationRegionQuota]
2879
- # @param [Hash] opts the optional parameters
2880
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
2881
- def update_organization_region_quota_with_http_info(organization_id, region_id, update_organization_region_quota, opts = {})
2882
- if @api_client.config.debugging
2883
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization_region_quota ...'
2884
- end
2885
- # verify the required parameter 'organization_id' is set
2886
- if @api_client.config.client_side_validation && organization_id.nil?
2887
- fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.update_organization_region_quota"
2888
- end
2889
- # verify the required parameter 'region_id' is set
2890
- if @api_client.config.client_side_validation && region_id.nil?
2891
- fail ArgumentError, "Missing the required parameter 'region_id' when calling OrganizationsApi.update_organization_region_quota"
2892
- end
2893
- # verify the required parameter 'update_organization_region_quota' is set
2894
- if @api_client.config.client_side_validation && update_organization_region_quota.nil?
2895
- fail ArgumentError, "Missing the required parameter 'update_organization_region_quota' when calling OrganizationsApi.update_organization_region_quota"
2896
- end
2897
- # resource path
2898
- local_var_path = '/organizations/{organizationId}/quota/{regionId}'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s)).sub('{' + 'regionId' + '}', CGI.escape(region_id.to_s))
2899
-
2900
- # query parameters
2901
- query_params = opts[:query_params] || {}
2902
-
2903
- # header parameters
2904
- header_params = opts[:header_params] || {}
2905
- # HTTP header 'Content-Type'
2906
- content_type = @api_client.select_header_content_type(['application/json'])
2907
- if !content_type.nil?
2908
- header_params['Content-Type'] = content_type
2909
- end
2910
-
2911
- # form parameters
2912
- form_params = opts[:form_params] || {}
2913
-
2914
- # http body (model)
2915
- post_body = opts[:debug_body] || @api_client.object_to_http_body(update_organization_region_quota)
2916
-
2917
- # return_type
2918
- return_type = opts[:debug_return_type]
2919
-
2920
- # auth_names
2921
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
2922
-
2923
- new_options = opts.merge(
2924
- :operation => :"OrganizationsApi.update_organization_region_quota",
2925
- :header_params => header_params,
2926
- :query_params => query_params,
2927
- :form_params => form_params,
2928
- :body => post_body,
2929
- :auth_names => auth_names,
2930
- :return_type => return_type
2931
- )
2932
-
2933
- data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
2934
- if @api_client.config.debugging
2935
- @api_client.config.logger.debug "API called: OrganizationsApi#update_organization_region_quota\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2936
- end
2937
- return data, status_code, headers
2938
- end
2939
-
2940
1547
  # Update organization role
2941
1548
  # @param organization_id [String] Organization ID
2942
1549
  # @param role_id [String] Role ID
@@ -2983,7 +1590,7 @@ module DaytonaApiClient
2983
1590
  # HTTP header 'Content-Type'
2984
1591
  content_type = @api_client.select_header_content_type(['application/json'])
2985
1592
  if !content_type.nil?
2986
- header_params['Content-Type'] = content_type
1593
+ header_params['Content-Type'] = content_type
2987
1594
  end
2988
1595
 
2989
1596
  # form parameters
@@ -3015,149 +1622,6 @@ module DaytonaApiClient
3015
1622
  return data, status_code, headers
3016
1623
  end
3017
1624
 
3018
- # Update organization SSO entitlement
3019
- # @param organization_id [String] Organization ID
3020
- # @param organization_sso_enabled [OrganizationSsoEnabled]
3021
- # @param [Hash] opts the optional parameters
3022
- # @return [nil]
3023
- def update_organization_sso_enabled(organization_id, organization_sso_enabled, opts = {})
3024
- update_organization_sso_enabled_with_http_info(organization_id, organization_sso_enabled, opts)
3025
- nil
3026
- end
3027
-
3028
- # Update organization SSO entitlement
3029
- # @param organization_id [String] Organization ID
3030
- # @param organization_sso_enabled [OrganizationSsoEnabled]
3031
- # @param [Hash] opts the optional parameters
3032
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
3033
- def update_organization_sso_enabled_with_http_info(organization_id, organization_sso_enabled, opts = {})
3034
- if @api_client.config.debugging
3035
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization_sso_enabled ...'
3036
- end
3037
- # verify the required parameter 'organization_id' is set
3038
- if @api_client.config.client_side_validation && organization_id.nil?
3039
- fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.update_organization_sso_enabled"
3040
- end
3041
- # verify the required parameter 'organization_sso_enabled' is set
3042
- if @api_client.config.client_side_validation && organization_sso_enabled.nil?
3043
- fail ArgumentError, "Missing the required parameter 'organization_sso_enabled' when calling OrganizationsApi.update_organization_sso_enabled"
3044
- end
3045
- # resource path
3046
- local_var_path = '/organizations/{organizationId}/sso-enabled'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
3047
-
3048
- # query parameters
3049
- query_params = opts[:query_params] || {}
3050
-
3051
- # header parameters
3052
- header_params = opts[:header_params] || {}
3053
- # HTTP header 'Content-Type'
3054
- content_type = @api_client.select_header_content_type(['application/json'])
3055
- if !content_type.nil?
3056
- header_params['Content-Type'] = content_type
3057
- end
3058
-
3059
- # form parameters
3060
- form_params = opts[:form_params] || {}
3061
-
3062
- # http body (model)
3063
- post_body = opts[:debug_body] || @api_client.object_to_http_body(organization_sso_enabled)
3064
-
3065
- # return_type
3066
- return_type = opts[:debug_return_type]
3067
-
3068
- # auth_names
3069
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
3070
-
3071
- new_options = opts.merge(
3072
- :operation => :"OrganizationsApi.update_organization_sso_enabled",
3073
- :header_params => header_params,
3074
- :query_params => query_params,
3075
- :form_params => form_params,
3076
- :body => post_body,
3077
- :auth_names => auth_names,
3078
- :return_type => return_type
3079
- )
3080
-
3081
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
3082
- if @api_client.config.debugging
3083
- @api_client.config.logger.debug "API called: OrganizationsApi#update_organization_sso_enabled\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3084
- end
3085
- return data, status_code, headers
3086
- end
3087
-
3088
- # Update region configuration
3089
- # @param id [String] Region ID
3090
- # @param update_region [UpdateRegion]
3091
- # @param [Hash] opts the optional parameters
3092
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
3093
- # @return [nil]
3094
- def update_region(id, update_region, opts = {})
3095
- update_region_with_http_info(id, update_region, opts)
3096
- nil
3097
- end
3098
-
3099
- # Update region configuration
3100
- # @param id [String] Region ID
3101
- # @param update_region [UpdateRegion]
3102
- # @param [Hash] opts the optional parameters
3103
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
3104
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
3105
- def update_region_with_http_info(id, update_region, opts = {})
3106
- if @api_client.config.debugging
3107
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.update_region ...'
3108
- end
3109
- # verify the required parameter 'id' is set
3110
- if @api_client.config.client_side_validation && id.nil?
3111
- fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.update_region"
3112
- end
3113
- # verify the required parameter 'update_region' is set
3114
- if @api_client.config.client_side_validation && update_region.nil?
3115
- fail ArgumentError, "Missing the required parameter 'update_region' when calling OrganizationsApi.update_region"
3116
- end
3117
- # resource path
3118
- local_var_path = '/regions/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
3119
-
3120
- # query parameters
3121
- query_params = opts[:query_params] || {}
3122
-
3123
- # header parameters
3124
- header_params = opts[:header_params] || {}
3125
- # HTTP header 'Content-Type'
3126
- content_type = @api_client.select_header_content_type(['application/json'])
3127
- if !content_type.nil?
3128
- header_params['Content-Type'] = content_type
3129
- end
3130
- header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
3131
-
3132
- # form parameters
3133
- form_params = opts[:form_params] || {}
3134
-
3135
- # http body (model)
3136
- post_body = opts[:debug_body] || @api_client.object_to_http_body(update_region)
3137
-
3138
- # return_type
3139
- return_type = opts[:debug_return_type]
3140
-
3141
- # auth_names
3142
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
3143
-
3144
- new_options = opts.merge(
3145
- :operation => :"OrganizationsApi.update_region",
3146
- :header_params => header_params,
3147
- :query_params => query_params,
3148
- :form_params => form_params,
3149
- :body => post_body,
3150
- :auth_names => auth_names,
3151
- :return_type => return_type
3152
- )
3153
-
3154
- data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
3155
- if @api_client.config.debugging
3156
- @api_client.config.logger.debug "API called: OrganizationsApi#update_region\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3157
- end
3158
- return data, status_code, headers
3159
- end
3160
-
3161
1625
  # Update sandbox default limited network egress
3162
1626
  # @param organization_id [String] Organization ID
3163
1627
  # @param organization_sandbox_default_limited_network_egress [OrganizationSandboxDefaultLimitedNetworkEgress]
@@ -3196,7 +1660,7 @@ module DaytonaApiClient
3196
1660
  # HTTP header 'Content-Type'
3197
1661
  content_type = @api_client.select_header_content_type(['application/json'])
3198
1662
  if !content_type.nil?
3199
- header_params['Content-Type'] = content_type
1663
+ header_params['Content-Type'] = content_type
3200
1664
  end
3201
1665
 
3202
1666
  # form parameters