daytona_api_client 0.202.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 (219) 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 +140 -40
  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 +265 -1316
  12. data/lib/daytona_api_client/api/preview_api.rb +8 -202
  13. data/lib/daytona_api_client/api/runners_api.rb +22 -412
  14. data/lib/daytona_api_client/api/sandbox_api.rb +434 -2352
  15. data/lib/daytona_api_client/api/snapshots_api.rb +113 -39
  16. data/lib/daytona_api_client/api/toolbox_api.rb +5108 -0
  17. data/lib/daytona_api_client/api/users_api.rb +239 -2
  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 -76
  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 +77 -15
  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 -64
  55. data/lib/daytona_api_client/models/display_info_response.rb +238 -0
  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/{create_sandbox_snapshot.rb → keyboard_hotkey_request.rb} +93 -34
  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/lsp_symbol.rb +287 -0
  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/mouse_scroll_response.rb +236 -0
  94. data/lib/daytona_api_client/models/oidc_config.rb +74 -3
  95. data/lib/daytona_api_client/models/organization.rb +159 -243
  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/pty_create_request.rb +288 -0
  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 -181
  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/{resize_sandbox.rb → replace_result.rb} +95 -84
  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 -164
  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 -38
  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/{runner_service_health.rb → search_files_response.rb} +94 -59
  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/session_execute_response.rb +239 -0
  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 -71
  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 +74 -3
  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} +339 -193
  164. data/lib/daytona_api_client/version.rb +2 -2
  165. data/lib/daytona_api_client.rb +76 -74
  166. data/project.json +13 -38
  167. metadata +81 -83
  168. data/.gitignore +0 -39
  169. data/.openapi-generator/FILES +0 -163
  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 -1615
  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/create_organization_region_quota.rb +0 -375
  184. data/lib/daytona_api_client/models/date_filter.rb +0 -178
  185. data/lib/daytona_api_client/models/fork_sandbox.rb +0 -148
  186. data/lib/daytona_api_client/models/gpu_type.rb +0 -44
  187. data/lib/daytona_api_client/models/int_filter.rb +0 -222
  188. data/lib/daytona_api_client/models/job.rb +0 -366
  189. data/lib/daytona_api_client/models/job_status.rb +0 -43
  190. data/lib/daytona_api_client/models/job_type.rb +0 -55
  191. data/lib/daytona_api_client/models/log_entry.rb +0 -334
  192. data/lib/daytona_api_client/models/metric_series.rb +0 -194
  193. data/lib/daytona_api_client/models/metrics_response.rb +0 -167
  194. data/lib/daytona_api_client/models/organization_preview_warning.rb +0 -165
  195. data/lib/daytona_api_client/models/otel_config.rb +0 -188
  196. data/lib/daytona_api_client/models/poll_jobs_response.rb +0 -167
  197. data/lib/daytona_api_client/models/rate_limit_config.rb +0 -188
  198. data/lib/daytona_api_client/models/rate_limit_entry.rb +0 -158
  199. data/lib/daytona_api_client/models/region_quota.rb +0 -440
  200. data/lib/daytona_api_client/models/region_type.rb +0 -42
  201. data/lib/daytona_api_client/models/region_usage_overview.rb +0 -518
  202. data/lib/daytona_api_client/models/resolve_sandbox_secrets200_response_inner.rb +0 -176
  203. data/lib/daytona_api_client/models/runner_class.rb +0 -40
  204. data/lib/daytona_api_client/models/runner_full.rb +0 -757
  205. data/lib/daytona_api_client/models/runner_health_metrics.rb +0 -482
  206. data/lib/daytona_api_client/models/sandbox_list_sort_direction.rb +0 -41
  207. data/lib/daytona_api_client/models/sandbox_list_sort_field.rb +0 -45
  208. data/lib/daytona_api_client/models/string_filter.rb +0 -182
  209. data/lib/daytona_api_client/models/trace_summary.rb +0 -310
  210. data/lib/daytona_api_client/models/update_organization_default_region.rb +0 -165
  211. data/lib/daytona_api_client/models/update_organization_region_quota.rb +0 -302
  212. data/lib/daytona_api_client/models/update_region.rb +0 -171
  213. data/lib/daytona_api_client/models/update_sandbox_network_settings.rb +0 -168
  214. data/lib/daytona_api_client/models/update_sandbox_secrets.rb +0 -167
  215. data/lib/daytona_api_client/models/update_secret.rb +0 -170
  216. data/lib/daytona_api_client/models/update_warm_pool.rb +0 -174
  217. data/lib/daytona_api_client/models/url.rb +0 -165
  218. data/lib/daytona_api_client/models/warm_pool.rb +0 -490
  219. 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
@@ -251,7 +249,7 @@ module DaytonaApiClient
251
249
  # HTTP header 'Content-Type'
252
250
  content_type = @api_client.select_header_content_type(['application/json'])
253
251
  if !content_type.nil?
254
- header_params['Content-Type'] = content_type
252
+ header_params['Content-Type'] = content_type
255
253
  end
256
254
 
257
255
  # form parameters
@@ -323,7 +321,7 @@ module DaytonaApiClient
323
321
  # HTTP header 'Content-Type'
324
322
  content_type = @api_client.select_header_content_type(['application/json'])
325
323
  if !content_type.nil?
326
- header_params['Content-Type'] = content_type
324
+ header_params['Content-Type'] = content_type
327
325
  end
328
326
 
329
327
  # form parameters
@@ -355,75 +353,6 @@ module DaytonaApiClient
355
353
  return data, status_code, headers
356
354
  end
357
355
 
358
- # Create a new region
359
- # @param create_region [CreateRegion]
360
- # @param [Hash] opts the optional parameters
361
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
362
- # @return [CreateRegionResponse]
363
- def create_region(create_region, opts = {})
364
- data, _status_code, _headers = create_region_with_http_info(create_region, opts)
365
- data
366
- end
367
-
368
- # Create a new region
369
- # @param create_region [CreateRegion]
370
- # @param [Hash] opts the optional parameters
371
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
372
- # @return [Array<(CreateRegionResponse, Integer, Hash)>] CreateRegionResponse data, response status code and response headers
373
- def create_region_with_http_info(create_region, opts = {})
374
- if @api_client.config.debugging
375
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.create_region ...'
376
- end
377
- # verify the required parameter 'create_region' is set
378
- if @api_client.config.client_side_validation && create_region.nil?
379
- fail ArgumentError, "Missing the required parameter 'create_region' when calling OrganizationsApi.create_region"
380
- end
381
- # resource path
382
- local_var_path = '/regions'
383
-
384
- # query parameters
385
- query_params = opts[:query_params] || {}
386
-
387
- # header parameters
388
- header_params = opts[:header_params] || {}
389
- # HTTP header 'Accept' (if needed)
390
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
391
- # HTTP header 'Content-Type'
392
- content_type = @api_client.select_header_content_type(['application/json'])
393
- if !content_type.nil?
394
- header_params['Content-Type'] = content_type
395
- end
396
- header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
397
-
398
- # form parameters
399
- form_params = opts[:form_params] || {}
400
-
401
- # http body (model)
402
- post_body = opts[:debug_body] || @api_client.object_to_http_body(create_region)
403
-
404
- # return_type
405
- return_type = opts[:debug_return_type] || 'CreateRegionResponse'
406
-
407
- # auth_names
408
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
409
-
410
- new_options = opts.merge(
411
- :operation => :"OrganizationsApi.create_region",
412
- :header_params => header_params,
413
- :query_params => query_params,
414
- :form_params => form_params,
415
- :body => post_body,
416
- :auth_names => auth_names,
417
- :return_type => return_type
418
- )
419
-
420
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
421
- if @api_client.config.debugging
422
- @api_client.config.logger.debug "API called: OrganizationsApi#create_region\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
423
- end
424
- return data, status_code, headers
425
- end
426
-
427
356
  # Decline organization invitation
428
357
  # @param invitation_id [String] Invitation ID
429
358
  # @param [Hash] opts the optional parameters
@@ -607,65 +536,6 @@ module DaytonaApiClient
607
536
  return data, status_code, headers
608
537
  end
609
538
 
610
- # Delete organization OpenTelemetry configuration
611
- # @param organization_id [String] Organization ID
612
- # @param [Hash] opts the optional parameters
613
- # @return [nil]
614
- def delete_organization_otel_config(organization_id, opts = {})
615
- delete_organization_otel_config_with_http_info(organization_id, opts)
616
- nil
617
- end
618
-
619
- # Delete organization OpenTelemetry configuration
620
- # @param organization_id [String] Organization ID
621
- # @param [Hash] opts the optional parameters
622
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
623
- def delete_organization_otel_config_with_http_info(organization_id, opts = {})
624
- if @api_client.config.debugging
625
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.delete_organization_otel_config ...'
626
- end
627
- # verify the required parameter 'organization_id' is set
628
- if @api_client.config.client_side_validation && organization_id.nil?
629
- fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.delete_organization_otel_config"
630
- end
631
- # resource path
632
- local_var_path = '/organizations/{organizationId}/otel-config'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
633
-
634
- # query parameters
635
- query_params = opts[:query_params] || {}
636
-
637
- # header parameters
638
- header_params = opts[:header_params] || {}
639
-
640
- # form parameters
641
- form_params = opts[:form_params] || {}
642
-
643
- # http body (model)
644
- post_body = opts[:debug_body]
645
-
646
- # return_type
647
- return_type = opts[:debug_return_type]
648
-
649
- # auth_names
650
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
651
-
652
- new_options = opts.merge(
653
- :operation => :"OrganizationsApi.delete_organization_otel_config",
654
- :header_params => header_params,
655
- :query_params => query_params,
656
- :form_params => form_params,
657
- :body => post_body,
658
- :auth_names => auth_names,
659
- :return_type => return_type
660
- )
661
-
662
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
663
- if @api_client.config.debugging
664
- @api_client.config.logger.debug "API called: OrganizationsApi#delete_organization_otel_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
665
- end
666
- return data, status_code, headers
667
- end
668
-
669
539
  # Delete organization role
670
540
  # @param organization_id [String] Organization ID
671
541
  # @param role_id [String] Role ID
@@ -731,38 +601,37 @@ module DaytonaApiClient
731
601
  return data, status_code, headers
732
602
  end
733
603
 
734
- # Delete a region
735
- # @param id [String] Region ID
604
+ # Get organization by ID
605
+ # @param organization_id [String] Organization ID
736
606
  # @param [Hash] opts the optional parameters
737
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
738
- # @return [nil]
739
- def delete_region(id, opts = {})
740
- delete_region_with_http_info(id, opts)
741
- nil
607
+ # @return [Organization]
608
+ def get_organization(organization_id, opts = {})
609
+ data, _status_code, _headers = get_organization_with_http_info(organization_id, opts)
610
+ data
742
611
  end
743
612
 
744
- # Delete a region
745
- # @param id [String] Region ID
613
+ # Get organization by ID
614
+ # @param organization_id [String] Organization ID
746
615
  # @param [Hash] opts the optional parameters
747
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
748
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
749
- def delete_region_with_http_info(id, opts = {})
616
+ # @return [Array<(Organization, Integer, Hash)>] Organization data, response status code and response headers
617
+ def get_organization_with_http_info(organization_id, opts = {})
750
618
  if @api_client.config.debugging
751
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.delete_region ...'
619
+ @api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization ...'
752
620
  end
753
- # verify the required parameter 'id' is set
754
- if @api_client.config.client_side_validation && id.nil?
755
- fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.delete_region"
621
+ # verify the required parameter 'organization_id' is set
622
+ if @api_client.config.client_side_validation && organization_id.nil?
623
+ fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.get_organization"
756
624
  end
757
625
  # resource path
758
- local_var_path = '/regions/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
626
+ local_var_path = '/organizations/{organizationId}'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
759
627
 
760
628
  # query parameters
761
629
  query_params = opts[:query_params] || {}
762
630
 
763
631
  # header parameters
764
632
  header_params = opts[:header_params] || {}
765
- header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
633
+ # HTTP header 'Accept' (if needed)
634
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
766
635
 
767
636
  # form parameters
768
637
  form_params = opts[:form_params] || {}
@@ -771,13 +640,13 @@ module DaytonaApiClient
771
640
  post_body = opts[:debug_body]
772
641
 
773
642
  # return_type
774
- return_type = opts[:debug_return_type]
643
+ return_type = opts[:debug_return_type] || 'Organization'
775
644
 
776
645
  # auth_names
777
646
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
778
647
 
779
648
  new_options = opts.merge(
780
- :operation => :"OrganizationsApi.delete_region",
649
+ :operation => :"OrganizationsApi.get_organization",
781
650
  :header_params => header_params,
782
651
  :query_params => query_params,
783
652
  :form_params => form_params,
@@ -786,36 +655,36 @@ module DaytonaApiClient
786
655
  :return_type => return_type
787
656
  )
788
657
 
789
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
658
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
790
659
  if @api_client.config.debugging
791
- @api_client.config.logger.debug "API called: OrganizationsApi#delete_region\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}"
792
661
  end
793
662
  return data, status_code, headers
794
663
  end
795
664
 
796
- # Get organization by ID
797
- # @param organization_id [String] Organization ID
665
+ # Get organization by sandbox ID
666
+ # @param sandbox_id [String] Sandbox ID
798
667
  # @param [Hash] opts the optional parameters
799
668
  # @return [Organization]
800
- def get_organization(organization_id, opts = {})
801
- data, _status_code, _headers = get_organization_with_http_info(organization_id, opts)
669
+ def get_organization_by_sandbox_id(sandbox_id, opts = {})
670
+ data, _status_code, _headers = get_organization_by_sandbox_id_with_http_info(sandbox_id, opts)
802
671
  data
803
672
  end
804
673
 
805
- # Get organization by ID
806
- # @param organization_id [String] Organization ID
674
+ # Get organization by sandbox ID
675
+ # @param sandbox_id [String] Sandbox ID
807
676
  # @param [Hash] opts the optional parameters
808
677
  # @return [Array<(Organization, Integer, Hash)>] Organization data, response status code and response headers
809
- def get_organization_with_http_info(organization_id, opts = {})
678
+ def get_organization_by_sandbox_id_with_http_info(sandbox_id, opts = {})
810
679
  if @api_client.config.debugging
811
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization ...'
680
+ @api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization_by_sandbox_id ...'
812
681
  end
813
- # verify the required parameter 'organization_id' is set
814
- if @api_client.config.client_side_validation && organization_id.nil?
815
- fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.get_organization"
682
+ # verify the required parameter 'sandbox_id' is set
683
+ if @api_client.config.client_side_validation && sandbox_id.nil?
684
+ fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling OrganizationsApi.get_organization_by_sandbox_id"
816
685
  end
817
686
  # resource path
818
- local_var_path = '/organizations/{organizationId}'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
687
+ local_var_path = '/organizations/by-sandbox-id/{sandboxId}'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
819
688
 
820
689
  # query parameters
821
690
  query_params = opts[:query_params] || {}
@@ -838,7 +707,7 @@ module DaytonaApiClient
838
707
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
839
708
 
840
709
  new_options = opts.merge(
841
- :operation => :"OrganizationsApi.get_organization",
710
+ :operation => :"OrganizationsApi.get_organization_by_sandbox_id",
842
711
  :header_params => header_params,
843
712
  :query_params => query_params,
844
713
  :form_params => form_params,
@@ -849,7 +718,7 @@ module DaytonaApiClient
849
718
 
850
719
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
851
720
  if @api_client.config.debugging
852
- @api_client.config.logger.debug "API called: OrganizationsApi#get_organization\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}"
853
722
  end
854
723
  return data, status_code, headers
855
724
  end
@@ -909,29 +778,29 @@ module DaytonaApiClient
909
778
  return data, status_code, headers
910
779
  end
911
780
 
912
- # Get organization OTEL config by organization ID
781
+ # Get organization current usage overview
913
782
  # @param organization_id [String] Organization ID
914
783
  # @param [Hash] opts the optional parameters
915
- # @return [OtelConfig]
916
- def get_organization_otel_config(organization_id, opts = {})
917
- data, _status_code, _headers = get_organization_otel_config_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)
918
787
  data
919
788
  end
920
789
 
921
- # Get organization OTEL config by organization ID
790
+ # Get organization current usage overview
922
791
  # @param organization_id [String] Organization ID
923
792
  # @param [Hash] opts the optional parameters
924
- # @return [Array<(OtelConfig, Integer, Hash)>] OtelConfig data, response status code and response headers
925
- def get_organization_otel_config_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 = {})
926
795
  if @api_client.config.debugging
927
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization_otel_config ...'
796
+ @api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization_usage_overview ...'
928
797
  end
929
798
  # verify the required parameter 'organization_id' is set
930
799
  if @api_client.config.client_side_validation && organization_id.nil?
931
- fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.get_organization_otel_config"
800
+ fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.get_organization_usage_overview"
932
801
  end
933
802
  # resource path
934
- local_var_path = '/organizations/{organizationId}/otel-config'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
803
+ local_var_path = '/organizations/{organizationId}/usage'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
935
804
 
936
805
  # query parameters
937
806
  query_params = opts[:query_params] || {}
@@ -948,13 +817,13 @@ module DaytonaApiClient
948
817
  post_body = opts[:debug_body]
949
818
 
950
819
  # return_type
951
- return_type = opts[:debug_return_type] || 'OtelConfig'
820
+ return_type = opts[:debug_return_type] || 'OrganizationUsageOverview'
952
821
 
953
822
  # auth_names
954
823
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
955
824
 
956
825
  new_options = opts.merge(
957
- :operation => :"OrganizationsApi.get_organization_otel_config",
826
+ :operation => :"OrganizationsApi.get_organization_usage_overview",
958
827
  :header_params => header_params,
959
828
  :query_params => query_params,
960
829
  :form_params => form_params,
@@ -965,42 +834,40 @@ module DaytonaApiClient
965
834
 
966
835
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
967
836
  if @api_client.config.debugging
968
- @api_client.config.logger.debug "API called: OrganizationsApi#get_organization_otel_config\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}"
969
838
  end
970
839
  return data, status_code, headers
971
840
  end
972
841
 
973
- # Get organization OTEL config by sandbox auth token
974
- # @param auth_token [String] Sandbox Auth Token
842
+ # Leave organization
843
+ # @param organization_id [String] Organization ID
975
844
  # @param [Hash] opts the optional parameters
976
- # @return [OtelConfig]
977
- def get_organization_otel_config_by_sandbox_auth_token(auth_token, opts = {})
978
- data, _status_code, _headers = get_organization_otel_config_by_sandbox_auth_token_with_http_info(auth_token, opts)
979
- data
845
+ # @return [nil]
846
+ def leave_organization(organization_id, opts = {})
847
+ leave_organization_with_http_info(organization_id, opts)
848
+ nil
980
849
  end
981
850
 
982
- # Get organization OTEL config by sandbox auth token
983
- # @param auth_token [String] Sandbox Auth Token
851
+ # Leave organization
852
+ # @param organization_id [String] Organization ID
984
853
  # @param [Hash] opts the optional parameters
985
- # @return [Array<(OtelConfig, Integer, Hash)>] OtelConfig data, response status code and response headers
986
- def get_organization_otel_config_by_sandbox_auth_token_with_http_info(auth_token, opts = {})
854
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
855
+ def leave_organization_with_http_info(organization_id, opts = {})
987
856
  if @api_client.config.debugging
988
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization_otel_config_by_sandbox_auth_token ...'
857
+ @api_client.config.logger.debug 'Calling API: OrganizationsApi.leave_organization ...'
989
858
  end
990
- # verify the required parameter 'auth_token' is set
991
- if @api_client.config.client_side_validation && auth_token.nil?
992
- fail ArgumentError, "Missing the required parameter 'auth_token' when calling OrganizationsApi.get_organization_otel_config_by_sandbox_auth_token"
859
+ # verify the required parameter 'organization_id' is set
860
+ if @api_client.config.client_side_validation && organization_id.nil?
861
+ fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.leave_organization"
993
862
  end
994
863
  # resource path
995
- local_var_path = '/organizations/otel-config/by-sandbox-auth-token/{authToken}'.sub('{' + 'authToken' + '}', CGI.escape(auth_token.to_s))
864
+ local_var_path = '/organizations/{organizationId}/leave'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
996
865
 
997
866
  # query parameters
998
867
  query_params = opts[:query_params] || {}
999
868
 
1000
869
  # header parameters
1001
870
  header_params = opts[:header_params] || {}
1002
- # HTTP header 'Accept' (if needed)
1003
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1004
871
 
1005
872
  # form parameters
1006
873
  form_params = opts[:form_params] || {}
@@ -1009,13 +876,13 @@ module DaytonaApiClient
1009
876
  post_body = opts[:debug_body]
1010
877
 
1011
878
  # return_type
1012
- return_type = opts[:debug_return_type] || 'OtelConfig'
879
+ return_type = opts[:debug_return_type]
1013
880
 
1014
881
  # auth_names
1015
882
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
1016
883
 
1017
884
  new_options = opts.merge(
1018
- :operation => :"OrganizationsApi.get_organization_otel_config_by_sandbox_auth_token",
885
+ :operation => :"OrganizationsApi.leave_organization",
1019
886
  :header_params => header_params,
1020
887
  :query_params => query_params,
1021
888
  :form_params => form_params,
@@ -1024,36 +891,36 @@ module DaytonaApiClient
1024
891
  :return_type => return_type
1025
892
  )
1026
893
 
1027
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
894
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1028
895
  if @api_client.config.debugging
1029
- @api_client.config.logger.debug "API called: OrganizationsApi#get_organization_otel_config_by_sandbox_auth_token\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}"
1030
897
  end
1031
898
  return data, status_code, headers
1032
899
  end
1033
900
 
1034
- # Get organization current usage overview
901
+ # List pending organization invitations
1035
902
  # @param organization_id [String] Organization ID
1036
903
  # @param [Hash] opts the optional parameters
1037
- # @return [OrganizationUsageOverview]
1038
- def get_organization_usage_overview(organization_id, opts = {})
1039
- data, _status_code, _headers = get_organization_usage_overview_with_http_info(organization_id, opts)
904
+ # @return [Array<OrganizationInvitation>]
905
+ def list_organization_invitations(organization_id, opts = {})
906
+ data, _status_code, _headers = list_organization_invitations_with_http_info(organization_id, opts)
1040
907
  data
1041
908
  end
1042
909
 
1043
- # Get organization current usage overview
910
+ # List pending organization invitations
1044
911
  # @param organization_id [String] Organization ID
1045
912
  # @param [Hash] opts the optional parameters
1046
- # @return [Array<(OrganizationUsageOverview, Integer, Hash)>] OrganizationUsageOverview data, response status code and response headers
1047
- def get_organization_usage_overview_with_http_info(organization_id, opts = {})
913
+ # @return [Array<(Array<OrganizationInvitation>, Integer, Hash)>] Array<OrganizationInvitation> data, response status code and response headers
914
+ def list_organization_invitations_with_http_info(organization_id, opts = {})
1048
915
  if @api_client.config.debugging
1049
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization_usage_overview ...'
916
+ @api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_invitations ...'
1050
917
  end
1051
918
  # verify the required parameter 'organization_id' is set
1052
919
  if @api_client.config.client_side_validation && organization_id.nil?
1053
- fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.get_organization_usage_overview"
920
+ fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.list_organization_invitations"
1054
921
  end
1055
922
  # resource path
1056
- local_var_path = '/organizations/{organizationId}/usage'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
923
+ local_var_path = '/organizations/{organizationId}/invitations'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
1057
924
 
1058
925
  # query parameters
1059
926
  query_params = opts[:query_params] || {}
@@ -1070,13 +937,13 @@ module DaytonaApiClient
1070
937
  post_body = opts[:debug_body]
1071
938
 
1072
939
  # return_type
1073
- return_type = opts[:debug_return_type] || 'OrganizationUsageOverview'
940
+ return_type = opts[:debug_return_type] || 'Array<OrganizationInvitation>'
1074
941
 
1075
942
  # auth_names
1076
943
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
1077
944
 
1078
945
  new_options = opts.merge(
1079
- :operation => :"OrganizationsApi.get_organization_usage_overview",
946
+ :operation => :"OrganizationsApi.list_organization_invitations",
1080
947
  :header_params => header_params,
1081
948
  :query_params => query_params,
1082
949
  :form_params => form_params,
@@ -1087,36 +954,28 @@ module DaytonaApiClient
1087
954
 
1088
955
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1089
956
  if @api_client.config.debugging
1090
- @api_client.config.logger.debug "API called: OrganizationsApi#get_organization_usage_overview\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}"
1091
958
  end
1092
959
  return data, status_code, headers
1093
960
  end
1094
961
 
1095
- # Get region by ID
1096
- # @param id [String] Region ID
962
+ # List organization invitations for authenticated user
1097
963
  # @param [Hash] opts the optional parameters
1098
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1099
- # @return [Region]
1100
- def get_region_by_id(id, opts = {})
1101
- data, _status_code, _headers = get_region_by_id_with_http_info(id, opts)
964
+ # @return [Array<OrganizationInvitation>]
965
+ def list_organization_invitations_for_authenticated_user(opts = {})
966
+ data, _status_code, _headers = list_organization_invitations_for_authenticated_user_with_http_info(opts)
1102
967
  data
1103
968
  end
1104
969
 
1105
- # Get region by ID
1106
- # @param id [String] Region ID
970
+ # List organization invitations for authenticated user
1107
971
  # @param [Hash] opts the optional parameters
1108
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1109
- # @return [Array<(Region, Integer, Hash)>] Region data, response status code and response headers
1110
- def get_region_by_id_with_http_info(id, opts = {})
972
+ # @return [Array<(Array<OrganizationInvitation>, Integer, Hash)>] Array<OrganizationInvitation> data, response status code and response headers
973
+ def list_organization_invitations_for_authenticated_user_with_http_info(opts = {})
1111
974
  if @api_client.config.debugging
1112
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.get_region_by_id ...'
1113
- end
1114
- # verify the required parameter 'id' is set
1115
- if @api_client.config.client_side_validation && id.nil?
1116
- fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.get_region_by_id"
975
+ @api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_invitations_for_authenticated_user ...'
1117
976
  end
1118
977
  # resource path
1119
- local_var_path = '/regions/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
978
+ local_var_path = '/organizations/invitations'
1120
979
 
1121
980
  # query parameters
1122
981
  query_params = opts[:query_params] || {}
@@ -1125,7 +984,6 @@ module DaytonaApiClient
1125
984
  header_params = opts[:header_params] || {}
1126
985
  # HTTP header 'Accept' (if needed)
1127
986
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1128
- header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
1129
987
 
1130
988
  # form parameters
1131
989
  form_params = opts[:form_params] || {}
@@ -1134,13 +992,13 @@ module DaytonaApiClient
1134
992
  post_body = opts[:debug_body]
1135
993
 
1136
994
  # return_type
1137
- return_type = opts[:debug_return_type] || 'Region'
995
+ return_type = opts[:debug_return_type] || 'Array<OrganizationInvitation>'
1138
996
 
1139
997
  # auth_names
1140
998
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
1141
999
 
1142
1000
  new_options = opts.merge(
1143
- :operation => :"OrganizationsApi.get_region_by_id",
1001
+ :operation => :"OrganizationsApi.list_organization_invitations_for_authenticated_user",
1144
1002
  :header_params => header_params,
1145
1003
  :query_params => query_params,
1146
1004
  :form_params => form_params,
@@ -1151,40 +1009,42 @@ module DaytonaApiClient
1151
1009
 
1152
1010
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1153
1011
  if @api_client.config.debugging
1154
- @api_client.config.logger.debug "API called: OrganizationsApi#get_region_by_id\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}"
1155
1013
  end
1156
1014
  return data, status_code, headers
1157
1015
  end
1158
1016
 
1159
- # Leave organization
1017
+ # List organization members
1160
1018
  # @param organization_id [String] Organization ID
1161
1019
  # @param [Hash] opts the optional parameters
1162
- # @return [nil]
1163
- def leave_organization(organization_id, opts = {})
1164
- leave_organization_with_http_info(organization_id, opts)
1165
- nil
1020
+ # @return [Array<OrganizationUser>]
1021
+ def list_organization_members(organization_id, opts = {})
1022
+ data, _status_code, _headers = list_organization_members_with_http_info(organization_id, opts)
1023
+ data
1166
1024
  end
1167
1025
 
1168
- # Leave organization
1026
+ # List organization members
1169
1027
  # @param organization_id [String] Organization ID
1170
1028
  # @param [Hash] opts the optional parameters
1171
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1172
- def leave_organization_with_http_info(organization_id, opts = {})
1029
+ # @return [Array<(Array<OrganizationUser>, Integer, Hash)>] Array<OrganizationUser> data, response status code and response headers
1030
+ def list_organization_members_with_http_info(organization_id, opts = {})
1173
1031
  if @api_client.config.debugging
1174
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.leave_organization ...'
1032
+ @api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_members ...'
1175
1033
  end
1176
1034
  # verify the required parameter 'organization_id' is set
1177
1035
  if @api_client.config.client_side_validation && organization_id.nil?
1178
- fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.leave_organization"
1036
+ fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.list_organization_members"
1179
1037
  end
1180
1038
  # resource path
1181
- local_var_path = '/organizations/{organizationId}/leave'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
1039
+ local_var_path = '/organizations/{organizationId}/users'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
1182
1040
 
1183
1041
  # query parameters
1184
1042
  query_params = opts[:query_params] || {}
1185
1043
 
1186
1044
  # header parameters
1187
1045
  header_params = opts[:header_params] || {}
1046
+ # HTTP header 'Accept' (if needed)
1047
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1188
1048
 
1189
1049
  # form parameters
1190
1050
  form_params = opts[:form_params] || {}
@@ -1193,13 +1053,13 @@ module DaytonaApiClient
1193
1053
  post_body = opts[:debug_body]
1194
1054
 
1195
1055
  # return_type
1196
- return_type = opts[:debug_return_type]
1056
+ return_type = opts[:debug_return_type] || 'Array<OrganizationUser>'
1197
1057
 
1198
1058
  # auth_names
1199
1059
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
1200
1060
 
1201
1061
  new_options = opts.merge(
1202
- :operation => :"OrganizationsApi.leave_organization",
1062
+ :operation => :"OrganizationsApi.list_organization_members",
1203
1063
  :header_params => header_params,
1204
1064
  :query_params => query_params,
1205
1065
  :form_params => form_params,
@@ -1208,271 +1068,36 @@ module DaytonaApiClient
1208
1068
  :return_type => return_type
1209
1069
  )
1210
1070
 
1211
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1071
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1212
1072
  if @api_client.config.debugging
1213
- @api_client.config.logger.debug "API called: OrganizationsApi#leave_organization\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}"
1214
1074
  end
1215
1075
  return data, status_code, headers
1216
1076
  end
1217
1077
 
1218
- # List all available regions for the organization
1078
+ # List organization roles
1079
+ # @param organization_id [String] Organization ID
1219
1080
  # @param [Hash] opts the optional parameters
1220
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1221
- # @return [Array<Region>]
1222
- def list_available_regions(opts = {})
1223
- data, _status_code, _headers = list_available_regions_with_http_info(opts)
1224
- data
1225
- end
1226
-
1227
- # List all available regions for the organization
1228
- # @param [Hash] opts the optional parameters
1229
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1230
- # @return [Array<(Array<Region>, Integer, Hash)>] Array<Region> data, response status code and response headers
1231
- def list_available_regions_with_http_info(opts = {})
1232
- if @api_client.config.debugging
1233
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.list_available_regions ...'
1234
- end
1235
- # resource path
1236
- local_var_path = '/regions'
1237
-
1238
- # query parameters
1239
- query_params = opts[:query_params] || {}
1240
-
1241
- # header parameters
1242
- header_params = opts[:header_params] || {}
1243
- # HTTP header 'Accept' (if needed)
1244
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1245
- header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
1246
-
1247
- # form parameters
1248
- form_params = opts[:form_params] || {}
1249
-
1250
- # http body (model)
1251
- post_body = opts[:debug_body]
1252
-
1253
- # return_type
1254
- return_type = opts[:debug_return_type] || 'Array<Region>'
1255
-
1256
- # auth_names
1257
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
1258
-
1259
- new_options = opts.merge(
1260
- :operation => :"OrganizationsApi.list_available_regions",
1261
- :header_params => header_params,
1262
- :query_params => query_params,
1263
- :form_params => form_params,
1264
- :body => post_body,
1265
- :auth_names => auth_names,
1266
- :return_type => return_type
1267
- )
1268
-
1269
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1270
- if @api_client.config.debugging
1271
- @api_client.config.logger.debug "API called: OrganizationsApi#list_available_regions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1272
- end
1273
- return data, status_code, headers
1274
- end
1275
-
1276
- # List available sandbox classes for organization
1277
- # @param organization_id [String] Organization ID
1278
- # @param [Hash] opts the optional parameters
1279
- # @return [Array<AvailableSandboxClass>]
1280
- def list_available_sandbox_classes(organization_id, opts = {})
1281
- data, _status_code, _headers = list_available_sandbox_classes_with_http_info(organization_id, opts)
1282
- data
1283
- end
1284
-
1285
- # List available sandbox classes for organization
1286
- # @param organization_id [String] Organization ID
1287
- # @param [Hash] opts the optional parameters
1288
- # @return [Array<(Array<AvailableSandboxClass>, Integer, Hash)>] Array<AvailableSandboxClass> data, response status code and response headers
1289
- def list_available_sandbox_classes_with_http_info(organization_id, opts = {})
1290
- if @api_client.config.debugging
1291
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.list_available_sandbox_classes ...'
1292
- end
1293
- # verify the required parameter 'organization_id' is set
1294
- if @api_client.config.client_side_validation && organization_id.nil?
1295
- fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.list_available_sandbox_classes"
1296
- end
1297
- # resource path
1298
- local_var_path = '/organizations/{organizationId}/available-sandbox-classes'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
1299
-
1300
- # query parameters
1301
- query_params = opts[:query_params] || {}
1302
-
1303
- # header parameters
1304
- header_params = opts[:header_params] || {}
1305
- # HTTP header 'Accept' (if needed)
1306
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1307
-
1308
- # form parameters
1309
- form_params = opts[:form_params] || {}
1310
-
1311
- # http body (model)
1312
- post_body = opts[:debug_body]
1313
-
1314
- # return_type
1315
- return_type = opts[:debug_return_type] || 'Array<AvailableSandboxClass>'
1316
-
1317
- # auth_names
1318
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
1319
-
1320
- new_options = opts.merge(
1321
- :operation => :"OrganizationsApi.list_available_sandbox_classes",
1322
- :header_params => header_params,
1323
- :query_params => query_params,
1324
- :form_params => form_params,
1325
- :body => post_body,
1326
- :auth_names => auth_names,
1327
- :return_type => return_type
1328
- )
1329
-
1330
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1331
- if @api_client.config.debugging
1332
- @api_client.config.logger.debug "API called: OrganizationsApi#list_available_sandbox_classes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1333
- end
1334
- return data, status_code, headers
1335
- end
1336
-
1337
- # List pending organization invitations
1338
- # @param organization_id [String] Organization ID
1339
- # @param [Hash] opts the optional parameters
1340
- # @return [Array<OrganizationInvitation>]
1341
- def list_organization_invitations(organization_id, opts = {})
1342
- data, _status_code, _headers = list_organization_invitations_with_http_info(organization_id, opts)
1343
- data
1344
- end
1345
-
1346
- # List pending organization invitations
1347
- # @param organization_id [String] Organization ID
1348
- # @param [Hash] opts the optional parameters
1349
- # @return [Array<(Array<OrganizationInvitation>, Integer, Hash)>] Array<OrganizationInvitation> data, response status code and response headers
1350
- def list_organization_invitations_with_http_info(organization_id, opts = {})
1351
- if @api_client.config.debugging
1352
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_invitations ...'
1353
- end
1354
- # verify the required parameter 'organization_id' is set
1355
- if @api_client.config.client_side_validation && organization_id.nil?
1356
- fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.list_organization_invitations"
1357
- end
1358
- # resource path
1359
- local_var_path = '/organizations/{organizationId}/invitations'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
1360
-
1361
- # query parameters
1362
- query_params = opts[:query_params] || {}
1363
-
1364
- # header parameters
1365
- header_params = opts[:header_params] || {}
1366
- # HTTP header 'Accept' (if needed)
1367
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1368
-
1369
- # form parameters
1370
- form_params = opts[:form_params] || {}
1371
-
1372
- # http body (model)
1373
- post_body = opts[:debug_body]
1374
-
1375
- # return_type
1376
- return_type = opts[:debug_return_type] || 'Array<OrganizationInvitation>'
1377
-
1378
- # auth_names
1379
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
1380
-
1381
- new_options = opts.merge(
1382
- :operation => :"OrganizationsApi.list_organization_invitations",
1383
- :header_params => header_params,
1384
- :query_params => query_params,
1385
- :form_params => form_params,
1386
- :body => post_body,
1387
- :auth_names => auth_names,
1388
- :return_type => return_type
1389
- )
1390
-
1391
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1392
- if @api_client.config.debugging
1393
- @api_client.config.logger.debug "API called: OrganizationsApi#list_organization_invitations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1394
- end
1395
- return data, status_code, headers
1396
- end
1397
-
1398
- # List organization invitations for authenticated user
1399
- # @param [Hash] opts the optional parameters
1400
- # @return [Array<OrganizationInvitation>]
1401
- def list_organization_invitations_for_authenticated_user(opts = {})
1402
- data, _status_code, _headers = list_organization_invitations_for_authenticated_user_with_http_info(opts)
1403
- data
1404
- end
1405
-
1406
- # List organization invitations for authenticated user
1407
- # @param [Hash] opts the optional parameters
1408
- # @return [Array<(Array<OrganizationInvitation>, Integer, Hash)>] Array<OrganizationInvitation> data, response status code and response headers
1409
- def list_organization_invitations_for_authenticated_user_with_http_info(opts = {})
1410
- if @api_client.config.debugging
1411
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_invitations_for_authenticated_user ...'
1412
- end
1413
- # resource path
1414
- local_var_path = '/organizations/invitations'
1415
-
1416
- # query parameters
1417
- query_params = opts[:query_params] || {}
1418
-
1419
- # header parameters
1420
- header_params = opts[:header_params] || {}
1421
- # HTTP header 'Accept' (if needed)
1422
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1423
-
1424
- # form parameters
1425
- form_params = opts[:form_params] || {}
1426
-
1427
- # http body (model)
1428
- post_body = opts[:debug_body]
1429
-
1430
- # return_type
1431
- return_type = opts[:debug_return_type] || 'Array<OrganizationInvitation>'
1432
-
1433
- # auth_names
1434
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
1435
-
1436
- new_options = opts.merge(
1437
- :operation => :"OrganizationsApi.list_organization_invitations_for_authenticated_user",
1438
- :header_params => header_params,
1439
- :query_params => query_params,
1440
- :form_params => form_params,
1441
- :body => post_body,
1442
- :auth_names => auth_names,
1443
- :return_type => return_type
1444
- )
1445
-
1446
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1447
- if @api_client.config.debugging
1448
- @api_client.config.logger.debug "API called: OrganizationsApi#list_organization_invitations_for_authenticated_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1449
- end
1450
- return data, status_code, headers
1451
- end
1452
-
1453
- # List organization members
1454
- # @param organization_id [String] Organization ID
1455
- # @param [Hash] opts the optional parameters
1456
- # @return [Array<OrganizationUser>]
1457
- def list_organization_members(organization_id, opts = {})
1458
- data, _status_code, _headers = list_organization_members_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)
1459
1084
  data
1460
1085
  end
1461
1086
 
1462
- # List organization members
1087
+ # List organization roles
1463
1088
  # @param organization_id [String] Organization ID
1464
1089
  # @param [Hash] opts the optional parameters
1465
- # @return [Array<(Array<OrganizationUser>, Integer, Hash)>] Array<OrganizationUser> data, response status code and response headers
1466
- def list_organization_members_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 = {})
1467
1092
  if @api_client.config.debugging
1468
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_members ...'
1093
+ @api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_roles ...'
1469
1094
  end
1470
1095
  # verify the required parameter 'organization_id' is set
1471
1096
  if @api_client.config.client_side_validation && organization_id.nil?
1472
- fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.list_organization_members"
1097
+ fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.list_organization_roles"
1473
1098
  end
1474
1099
  # resource path
1475
- local_var_path = '/organizations/{organizationId}/users'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
1100
+ local_var_path = '/organizations/{organizationId}/roles'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
1476
1101
 
1477
1102
  # query parameters
1478
1103
  query_params = opts[:query_params] || {}
@@ -1489,13 +1114,13 @@ module DaytonaApiClient
1489
1114
  post_body = opts[:debug_body]
1490
1115
 
1491
1116
  # return_type
1492
- return_type = opts[:debug_return_type] || 'Array<OrganizationUser>'
1117
+ return_type = opts[:debug_return_type] || 'Array<OrganizationRole>'
1493
1118
 
1494
1119
  # auth_names
1495
1120
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
1496
1121
 
1497
1122
  new_options = opts.merge(
1498
- :operation => :"OrganizationsApi.list_organization_members",
1123
+ :operation => :"OrganizationsApi.list_organization_roles",
1499
1124
  :header_params => header_params,
1500
1125
  :query_params => query_params,
1501
1126
  :form_params => form_params,
@@ -1504,645 +1129,53 @@ module DaytonaApiClient
1504
1129
  :return_type => return_type
1505
1130
  )
1506
1131
 
1507
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1508
- if @api_client.config.debugging
1509
- @api_client.config.logger.debug "API called: OrganizationsApi#list_organization_members\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1510
- end
1511
- return data, status_code, headers
1512
- end
1513
-
1514
- # List organization roles
1515
- # @param organization_id [String] Organization ID
1516
- # @param [Hash] opts the optional parameters
1517
- # @return [Array<OrganizationRole>]
1518
- def list_organization_roles(organization_id, opts = {})
1519
- data, _status_code, _headers = list_organization_roles_with_http_info(organization_id, opts)
1520
- data
1521
- end
1522
-
1523
- # List organization roles
1524
- # @param organization_id [String] Organization ID
1525
- # @param [Hash] opts the optional parameters
1526
- # @return [Array<(Array<OrganizationRole>, Integer, Hash)>] Array<OrganizationRole> data, response status code and response headers
1527
- def list_organization_roles_with_http_info(organization_id, opts = {})
1528
- if @api_client.config.debugging
1529
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organization_roles ...'
1530
- end
1531
- # verify the required parameter 'organization_id' is set
1532
- if @api_client.config.client_side_validation && organization_id.nil?
1533
- fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.list_organization_roles"
1534
- end
1535
- # resource path
1536
- local_var_path = '/organizations/{organizationId}/roles'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
1537
-
1538
- # query parameters
1539
- query_params = opts[:query_params] || {}
1540
-
1541
- # header parameters
1542
- header_params = opts[:header_params] || {}
1543
- # HTTP header 'Accept' (if needed)
1544
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1545
-
1546
- # form parameters
1547
- form_params = opts[:form_params] || {}
1548
-
1549
- # http body (model)
1550
- post_body = opts[:debug_body]
1551
-
1552
- # return_type
1553
- return_type = opts[:debug_return_type] || 'Array<OrganizationRole>'
1554
-
1555
- # auth_names
1556
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
1557
-
1558
- new_options = opts.merge(
1559
- :operation => :"OrganizationsApi.list_organization_roles",
1560
- :header_params => header_params,
1561
- :query_params => query_params,
1562
- :form_params => form_params,
1563
- :body => post_body,
1564
- :auth_names => auth_names,
1565
- :return_type => return_type
1566
- )
1567
-
1568
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1569
- if @api_client.config.debugging
1570
- @api_client.config.logger.debug "API called: OrganizationsApi#list_organization_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1571
- end
1572
- return data, status_code, headers
1573
- end
1574
-
1575
- # List organizations
1576
- # @param [Hash] opts the optional parameters
1577
- # @return [Array<Organization>]
1578
- def list_organizations(opts = {})
1579
- data, _status_code, _headers = list_organizations_with_http_info(opts)
1580
- data
1581
- end
1582
-
1583
- # List organizations
1584
- # @param [Hash] opts the optional parameters
1585
- # @return [Array<(Array<Organization>, Integer, Hash)>] Array<Organization> data, response status code and response headers
1586
- def list_organizations_with_http_info(opts = {})
1587
- if @api_client.config.debugging
1588
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organizations ...'
1589
- end
1590
- # resource path
1591
- local_var_path = '/organizations'
1592
-
1593
- # query parameters
1594
- query_params = opts[:query_params] || {}
1595
-
1596
- # header parameters
1597
- header_params = opts[:header_params] || {}
1598
- # HTTP header 'Accept' (if needed)
1599
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1600
-
1601
- # form parameters
1602
- form_params = opts[:form_params] || {}
1603
-
1604
- # http body (model)
1605
- post_body = opts[:debug_body]
1606
-
1607
- # return_type
1608
- return_type = opts[:debug_return_type] || 'Array<Organization>'
1609
-
1610
- # auth_names
1611
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
1612
-
1613
- new_options = opts.merge(
1614
- :operation => :"OrganizationsApi.list_organizations",
1615
- :header_params => header_params,
1616
- :query_params => query_params,
1617
- :form_params => form_params,
1618
- :body => post_body,
1619
- :auth_names => auth_names,
1620
- :return_type => return_type
1621
- )
1622
-
1623
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
1624
- if @api_client.config.debugging
1625
- @api_client.config.logger.debug "API called: OrganizationsApi#list_organizations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1626
- end
1627
- return data, status_code, headers
1628
- end
1629
-
1630
- # Regenerate proxy API key for a region
1631
- # @param id [String] Region ID
1632
- # @param [Hash] opts the optional parameters
1633
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1634
- # @return [RegenerateApiKeyResponse]
1635
- def regenerate_proxy_api_key(id, opts = {})
1636
- data, _status_code, _headers = regenerate_proxy_api_key_with_http_info(id, opts)
1637
- data
1638
- end
1639
-
1640
- # Regenerate proxy API key for a region
1641
- # @param id [String] Region ID
1642
- # @param [Hash] opts the optional parameters
1643
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1644
- # @return [Array<(RegenerateApiKeyResponse, Integer, Hash)>] RegenerateApiKeyResponse data, response status code and response headers
1645
- def regenerate_proxy_api_key_with_http_info(id, opts = {})
1646
- if @api_client.config.debugging
1647
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.regenerate_proxy_api_key ...'
1648
- end
1649
- # verify the required parameter 'id' is set
1650
- if @api_client.config.client_side_validation && id.nil?
1651
- fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.regenerate_proxy_api_key"
1652
- end
1653
- # resource path
1654
- local_var_path = '/regions/{id}/regenerate-proxy-api-key'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1655
-
1656
- # query parameters
1657
- query_params = opts[:query_params] || {}
1658
-
1659
- # header parameters
1660
- header_params = opts[:header_params] || {}
1661
- # HTTP header 'Accept' (if needed)
1662
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1663
- header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
1664
-
1665
- # form parameters
1666
- form_params = opts[:form_params] || {}
1667
-
1668
- # http body (model)
1669
- post_body = opts[:debug_body]
1670
-
1671
- # return_type
1672
- return_type = opts[:debug_return_type] || 'RegenerateApiKeyResponse'
1673
-
1674
- # auth_names
1675
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
1676
-
1677
- new_options = opts.merge(
1678
- :operation => :"OrganizationsApi.regenerate_proxy_api_key",
1679
- :header_params => header_params,
1680
- :query_params => query_params,
1681
- :form_params => form_params,
1682
- :body => post_body,
1683
- :auth_names => auth_names,
1684
- :return_type => return_type
1685
- )
1686
-
1687
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1688
- if @api_client.config.debugging
1689
- @api_client.config.logger.debug "API called: OrganizationsApi#regenerate_proxy_api_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1690
- end
1691
- return data, status_code, headers
1692
- end
1693
-
1694
- # Regenerate snapshot manager credentials for a region
1695
- # @param id [String] Region ID
1696
- # @param [Hash] opts the optional parameters
1697
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1698
- # @return [SnapshotManagerCredentials]
1699
- def regenerate_snapshot_manager_credentials(id, opts = {})
1700
- data, _status_code, _headers = regenerate_snapshot_manager_credentials_with_http_info(id, opts)
1701
- data
1702
- end
1703
-
1704
- # Regenerate snapshot manager credentials for a region
1705
- # @param id [String] Region ID
1706
- # @param [Hash] opts the optional parameters
1707
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1708
- # @return [Array<(SnapshotManagerCredentials, Integer, Hash)>] SnapshotManagerCredentials data, response status code and response headers
1709
- def regenerate_snapshot_manager_credentials_with_http_info(id, opts = {})
1710
- if @api_client.config.debugging
1711
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.regenerate_snapshot_manager_credentials ...'
1712
- end
1713
- # verify the required parameter 'id' is set
1714
- if @api_client.config.client_side_validation && id.nil?
1715
- fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.regenerate_snapshot_manager_credentials"
1716
- end
1717
- # resource path
1718
- local_var_path = '/regions/{id}/regenerate-snapshot-manager-credentials'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1719
-
1720
- # query parameters
1721
- query_params = opts[:query_params] || {}
1722
-
1723
- # header parameters
1724
- header_params = opts[:header_params] || {}
1725
- # HTTP header 'Accept' (if needed)
1726
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1727
- header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
1728
-
1729
- # form parameters
1730
- form_params = opts[:form_params] || {}
1731
-
1732
- # http body (model)
1733
- post_body = opts[:debug_body]
1734
-
1735
- # return_type
1736
- return_type = opts[:debug_return_type] || 'SnapshotManagerCredentials'
1737
-
1738
- # auth_names
1739
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
1740
-
1741
- new_options = opts.merge(
1742
- :operation => :"OrganizationsApi.regenerate_snapshot_manager_credentials",
1743
- :header_params => header_params,
1744
- :query_params => query_params,
1745
- :form_params => form_params,
1746
- :body => post_body,
1747
- :auth_names => auth_names,
1748
- :return_type => return_type
1749
- )
1750
-
1751
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1752
- if @api_client.config.debugging
1753
- @api_client.config.logger.debug "API called: OrganizationsApi#regenerate_snapshot_manager_credentials\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1754
- end
1755
- return data, status_code, headers
1756
- end
1757
-
1758
- # Regenerate SSH gateway API key for a region
1759
- # @param id [String] Region ID
1760
- # @param [Hash] opts the optional parameters
1761
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1762
- # @return [RegenerateApiKeyResponse]
1763
- def regenerate_ssh_gateway_api_key(id, opts = {})
1764
- data, _status_code, _headers = regenerate_ssh_gateway_api_key_with_http_info(id, opts)
1765
- data
1766
- end
1767
-
1768
- # Regenerate SSH gateway API key for a region
1769
- # @param id [String] Region ID
1770
- # @param [Hash] opts the optional parameters
1771
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1772
- # @return [Array<(RegenerateApiKeyResponse, Integer, Hash)>] RegenerateApiKeyResponse data, response status code and response headers
1773
- def regenerate_ssh_gateway_api_key_with_http_info(id, opts = {})
1774
- if @api_client.config.debugging
1775
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.regenerate_ssh_gateway_api_key ...'
1776
- end
1777
- # verify the required parameter 'id' is set
1778
- if @api_client.config.client_side_validation && id.nil?
1779
- fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.regenerate_ssh_gateway_api_key"
1780
- end
1781
- # resource path
1782
- local_var_path = '/regions/{id}/regenerate-ssh-gateway-api-key'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
1783
-
1784
- # query parameters
1785
- query_params = opts[:query_params] || {}
1786
-
1787
- # header parameters
1788
- header_params = opts[:header_params] || {}
1789
- # HTTP header 'Accept' (if needed)
1790
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
1791
- header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
1792
-
1793
- # form parameters
1794
- form_params = opts[:form_params] || {}
1795
-
1796
- # http body (model)
1797
- post_body = opts[:debug_body]
1798
-
1799
- # return_type
1800
- return_type = opts[:debug_return_type] || 'RegenerateApiKeyResponse'
1801
-
1802
- # auth_names
1803
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
1804
-
1805
- new_options = opts.merge(
1806
- :operation => :"OrganizationsApi.regenerate_ssh_gateway_api_key",
1807
- :header_params => header_params,
1808
- :query_params => query_params,
1809
- :form_params => form_params,
1810
- :body => post_body,
1811
- :auth_names => auth_names,
1812
- :return_type => return_type
1813
- )
1814
-
1815
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1816
- if @api_client.config.debugging
1817
- @api_client.config.logger.debug "API called: OrganizationsApi#regenerate_ssh_gateway_api_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1818
- end
1819
- return data, status_code, headers
1820
- end
1821
-
1822
- # Set default region for organization
1823
- # @param organization_id [String] Organization ID
1824
- # @param update_organization_default_region [UpdateOrganizationDefaultRegion]
1825
- # @param [Hash] opts the optional parameters
1826
- # @return [nil]
1827
- def set_organization_default_region(organization_id, update_organization_default_region, opts = {})
1828
- set_organization_default_region_with_http_info(organization_id, update_organization_default_region, opts)
1829
- nil
1830
- end
1831
-
1832
- # Set default region for organization
1833
- # @param organization_id [String] Organization ID
1834
- # @param update_organization_default_region [UpdateOrganizationDefaultRegion]
1835
- # @param [Hash] opts the optional parameters
1836
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1837
- def set_organization_default_region_with_http_info(organization_id, update_organization_default_region, opts = {})
1838
- if @api_client.config.debugging
1839
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.set_organization_default_region ...'
1840
- end
1841
- # verify the required parameter 'organization_id' is set
1842
- if @api_client.config.client_side_validation && organization_id.nil?
1843
- fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.set_organization_default_region"
1844
- end
1845
- # verify the required parameter 'update_organization_default_region' is set
1846
- if @api_client.config.client_side_validation && update_organization_default_region.nil?
1847
- fail ArgumentError, "Missing the required parameter 'update_organization_default_region' when calling OrganizationsApi.set_organization_default_region"
1848
- end
1849
- # resource path
1850
- local_var_path = '/organizations/{organizationId}/default-region'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
1851
-
1852
- # query parameters
1853
- query_params = opts[:query_params] || {}
1854
-
1855
- # header parameters
1856
- header_params = opts[:header_params] || {}
1857
- # HTTP header 'Content-Type'
1858
- content_type = @api_client.select_header_content_type(['application/json'])
1859
- if !content_type.nil?
1860
- header_params['Content-Type'] = content_type
1861
- end
1862
-
1863
- # form parameters
1864
- form_params = opts[:form_params] || {}
1865
-
1866
- # http body (model)
1867
- post_body = opts[:debug_body] || @api_client.object_to_http_body(update_organization_default_region)
1868
-
1869
- # return_type
1870
- return_type = opts[:debug_return_type]
1871
-
1872
- # auth_names
1873
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
1874
-
1875
- new_options = opts.merge(
1876
- :operation => :"OrganizationsApi.set_organization_default_region",
1877
- :header_params => header_params,
1878
- :query_params => query_params,
1879
- :form_params => form_params,
1880
- :body => post_body,
1881
- :auth_names => auth_names,
1882
- :return_type => return_type
1883
- )
1884
-
1885
- data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
1886
- if @api_client.config.debugging
1887
- @api_client.config.logger.debug "API called: OrganizationsApi#set_organization_default_region\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1888
- end
1889
- return data, status_code, headers
1890
- end
1891
-
1892
- # Suspend organization
1893
- # @param organization_id [String] Organization ID
1894
- # @param [Hash] opts the optional parameters
1895
- # @option opts [OrganizationSuspension] :organization_suspension
1896
- # @return [nil]
1897
- def suspend_organization(organization_id, opts = {})
1898
- suspend_organization_with_http_info(organization_id, opts)
1899
- nil
1900
- end
1901
-
1902
- # Suspend organization
1903
- # @param organization_id [String] Organization ID
1904
- # @param [Hash] opts the optional parameters
1905
- # @option opts [OrganizationSuspension] :organization_suspension
1906
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1907
- def suspend_organization_with_http_info(organization_id, opts = {})
1908
- if @api_client.config.debugging
1909
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.suspend_organization ...'
1910
- end
1911
- # verify the required parameter 'organization_id' is set
1912
- if @api_client.config.client_side_validation && organization_id.nil?
1913
- fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.suspend_organization"
1914
- end
1915
- # resource path
1916
- local_var_path = '/organizations/{organizationId}/suspend'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
1917
-
1918
- # query parameters
1919
- query_params = opts[:query_params] || {}
1920
-
1921
- # header parameters
1922
- header_params = opts[:header_params] || {}
1923
- # HTTP header 'Content-Type'
1924
- content_type = @api_client.select_header_content_type(['application/json'])
1925
- if !content_type.nil?
1926
- header_params['Content-Type'] = content_type
1927
- end
1928
-
1929
- # form parameters
1930
- form_params = opts[:form_params] || {}
1931
-
1932
- # http body (model)
1933
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'organization_suspension'])
1934
-
1935
- # return_type
1936
- return_type = opts[:debug_return_type]
1937
-
1938
- # auth_names
1939
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
1940
-
1941
- new_options = opts.merge(
1942
- :operation => :"OrganizationsApi.suspend_organization",
1943
- :header_params => header_params,
1944
- :query_params => query_params,
1945
- :form_params => form_params,
1946
- :body => post_body,
1947
- :auth_names => auth_names,
1948
- :return_type => return_type
1949
- )
1950
-
1951
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1952
- if @api_client.config.debugging
1953
- @api_client.config.logger.debug "API called: OrganizationsApi#suspend_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1954
- end
1955
- return data, status_code, headers
1956
- end
1957
-
1958
- # Unsuspend organization
1959
- # @param organization_id [String] Organization ID
1960
- # @param [Hash] opts the optional parameters
1961
- # @return [nil]
1962
- def unsuspend_organization(organization_id, opts = {})
1963
- unsuspend_organization_with_http_info(organization_id, opts)
1964
- nil
1965
- end
1966
-
1967
- # Unsuspend organization
1968
- # @param organization_id [String] Organization ID
1969
- # @param [Hash] opts the optional parameters
1970
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1971
- def unsuspend_organization_with_http_info(organization_id, opts = {})
1972
- if @api_client.config.debugging
1973
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.unsuspend_organization ...'
1974
- end
1975
- # verify the required parameter 'organization_id' is set
1976
- if @api_client.config.client_side_validation && organization_id.nil?
1977
- fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.unsuspend_organization"
1978
- end
1979
- # resource path
1980
- local_var_path = '/organizations/{organizationId}/unsuspend'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
1981
-
1982
- # query parameters
1983
- query_params = opts[:query_params] || {}
1984
-
1985
- # header parameters
1986
- header_params = opts[:header_params] || {}
1987
-
1988
- # form parameters
1989
- form_params = opts[:form_params] || {}
1990
-
1991
- # http body (model)
1992
- post_body = opts[:debug_body]
1993
-
1994
- # return_type
1995
- return_type = opts[:debug_return_type]
1996
-
1997
- # auth_names
1998
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
1999
-
2000
- new_options = opts.merge(
2001
- :operation => :"OrganizationsApi.unsuspend_organization",
2002
- :header_params => header_params,
2003
- :query_params => query_params,
2004
- :form_params => form_params,
2005
- :body => post_body,
2006
- :auth_names => auth_names,
2007
- :return_type => return_type
2008
- )
2009
-
2010
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2011
- if @api_client.config.debugging
2012
- @api_client.config.logger.debug "API called: OrganizationsApi#unsuspend_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2013
- end
2014
- return data, status_code, headers
2015
- end
2016
-
2017
- # Update access for organization member
2018
- # @param organization_id [String] Organization ID
2019
- # @param user_id [String] User ID
2020
- # @param update_organization_member_access [UpdateOrganizationMemberAccess]
2021
- # @param [Hash] opts the optional parameters
2022
- # @return [OrganizationUser]
2023
- def update_access_for_organization_member(organization_id, user_id, update_organization_member_access, opts = {})
2024
- data, _status_code, _headers = update_access_for_organization_member_with_http_info(organization_id, user_id, update_organization_member_access, opts)
2025
- data
2026
- end
2027
-
2028
- # Update access for organization member
2029
- # @param organization_id [String] Organization ID
2030
- # @param user_id [String] User ID
2031
- # @param update_organization_member_access [UpdateOrganizationMemberAccess]
2032
- # @param [Hash] opts the optional parameters
2033
- # @return [Array<(OrganizationUser, Integer, Hash)>] OrganizationUser data, response status code and response headers
2034
- def update_access_for_organization_member_with_http_info(organization_id, user_id, update_organization_member_access, opts = {})
2035
- if @api_client.config.debugging
2036
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.update_access_for_organization_member ...'
2037
- end
2038
- # verify the required parameter 'organization_id' is set
2039
- if @api_client.config.client_side_validation && organization_id.nil?
2040
- fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.update_access_for_organization_member"
2041
- end
2042
- # verify the required parameter 'user_id' is set
2043
- if @api_client.config.client_side_validation && user_id.nil?
2044
- fail ArgumentError, "Missing the required parameter 'user_id' when calling OrganizationsApi.update_access_for_organization_member"
2045
- end
2046
- # verify the required parameter 'update_organization_member_access' is set
2047
- if @api_client.config.client_side_validation && update_organization_member_access.nil?
2048
- fail ArgumentError, "Missing the required parameter 'update_organization_member_access' when calling OrganizationsApi.update_access_for_organization_member"
2049
- end
2050
- # resource path
2051
- local_var_path = '/organizations/{organizationId}/users/{userId}/access'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s)).sub('{' + 'userId' + '}', CGI.escape(user_id.to_s))
2052
-
2053
- # query parameters
2054
- query_params = opts[:query_params] || {}
2055
-
2056
- # header parameters
2057
- header_params = opts[:header_params] || {}
2058
- # HTTP header 'Accept' (if needed)
2059
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2060
- # HTTP header 'Content-Type'
2061
- content_type = @api_client.select_header_content_type(['application/json'])
2062
- if !content_type.nil?
2063
- header_params['Content-Type'] = content_type
2064
- end
2065
-
2066
- # form parameters
2067
- form_params = opts[:form_params] || {}
2068
-
2069
- # http body (model)
2070
- post_body = opts[:debug_body] || @api_client.object_to_http_body(update_organization_member_access)
2071
-
2072
- # return_type
2073
- return_type = opts[:debug_return_type] || 'OrganizationUser'
2074
-
2075
- # auth_names
2076
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
2077
-
2078
- new_options = opts.merge(
2079
- :operation => :"OrganizationsApi.update_access_for_organization_member",
2080
- :header_params => header_params,
2081
- :query_params => query_params,
2082
- :form_params => form_params,
2083
- :body => post_body,
2084
- :auth_names => auth_names,
2085
- :return_type => return_type
2086
- )
2087
-
2088
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
1132
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2089
1133
  if @api_client.config.debugging
2090
- @api_client.config.logger.debug "API called: OrganizationsApi#update_access_for_organization_member\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}"
2091
1135
  end
2092
1136
  return data, status_code, headers
2093
1137
  end
2094
1138
 
2095
- # Update experimental configuration
2096
- # @param organization_id [String] Organization ID
1139
+ # List organizations
2097
1140
  # @param [Hash] opts the optional parameters
2098
- # @option opts [Hash<String, Object>] :request_body Experimental configuration as a JSON object. Set to null to clear the configuration.
2099
- # @return [nil]
2100
- def update_experimental_config(organization_id, opts = {})
2101
- update_experimental_config_with_http_info(organization_id, opts)
2102
- nil
1141
+ # @return [Array<Organization>]
1142
+ def list_organizations(opts = {})
1143
+ data, _status_code, _headers = list_organizations_with_http_info(opts)
1144
+ data
2103
1145
  end
2104
1146
 
2105
- # Update experimental configuration
2106
- # @param organization_id [String] Organization ID
1147
+ # List organizations
2107
1148
  # @param [Hash] opts the optional parameters
2108
- # @option opts [Hash<String, Object>] :request_body Experimental configuration as a JSON object. Set to null to clear the configuration.
2109
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
2110
- def update_experimental_config_with_http_info(organization_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 = {})
2111
1151
  if @api_client.config.debugging
2112
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.update_experimental_config ...'
2113
- end
2114
- # verify the required parameter 'organization_id' is set
2115
- if @api_client.config.client_side_validation && organization_id.nil?
2116
- fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.update_experimental_config"
1152
+ @api_client.config.logger.debug 'Calling API: OrganizationsApi.list_organizations ...'
2117
1153
  end
2118
1154
  # resource path
2119
- local_var_path = '/organizations/{organizationId}/experimental-config'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
1155
+ local_var_path = '/organizations'
2120
1156
 
2121
1157
  # query parameters
2122
1158
  query_params = opts[:query_params] || {}
2123
1159
 
2124
1160
  # header parameters
2125
1161
  header_params = opts[:header_params] || {}
2126
- # HTTP header 'Content-Type'
2127
- content_type = @api_client.select_header_content_type(['application/json'])
2128
- if !content_type.nil?
2129
- header_params['Content-Type'] = content_type
2130
- end
1162
+ # HTTP header 'Accept' (if needed)
1163
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2131
1164
 
2132
1165
  # form parameters
2133
1166
  form_params = opts[:form_params] || {}
2134
1167
 
2135
1168
  # http body (model)
2136
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'request_body'])
1169
+ post_body = opts[:debug_body]
2137
1170
 
2138
1171
  # return_type
2139
- return_type = opts[:debug_return_type]
1172
+ return_type = opts[:debug_return_type] || 'Array<Organization>'
2140
1173
 
2141
1174
  # auth_names
2142
1175
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
2143
1176
 
2144
1177
  new_options = opts.merge(
2145
- :operation => :"OrganizationsApi.update_experimental_config",
1178
+ :operation => :"OrganizationsApi.list_organizations",
2146
1179
  :header_params => header_params,
2147
1180
  :query_params => query_params,
2148
1181
  :form_params => form_params,
@@ -2151,76 +1184,64 @@ module DaytonaApiClient
2151
1184
  :return_type => return_type
2152
1185
  )
2153
1186
 
2154
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1187
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
2155
1188
  if @api_client.config.debugging
2156
- @api_client.config.logger.debug "API called: OrganizationsApi#update_experimental_config\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}"
2157
1190
  end
2158
1191
  return data, status_code, headers
2159
1192
  end
2160
1193
 
2161
- # Update organization invitation
1194
+ # Suspend organization
2162
1195
  # @param organization_id [String] Organization ID
2163
- # @param invitation_id [String] Invitation ID
2164
- # @param update_organization_invitation [UpdateOrganizationInvitation]
2165
1196
  # @param [Hash] opts the optional parameters
2166
- # @return [OrganizationInvitation]
2167
- def update_organization_invitation(organization_id, invitation_id, update_organization_invitation, opts = {})
2168
- data, _status_code, _headers = update_organization_invitation_with_http_info(organization_id, invitation_id, update_organization_invitation, opts)
2169
- data
1197
+ # @option opts [OrganizationSuspension] :organization_suspension
1198
+ # @return [nil]
1199
+ def suspend_organization(organization_id, opts = {})
1200
+ suspend_organization_with_http_info(organization_id, opts)
1201
+ nil
2170
1202
  end
2171
1203
 
2172
- # Update organization invitation
1204
+ # Suspend organization
2173
1205
  # @param organization_id [String] Organization ID
2174
- # @param invitation_id [String] Invitation ID
2175
- # @param update_organization_invitation [UpdateOrganizationInvitation]
2176
1206
  # @param [Hash] opts the optional parameters
2177
- # @return [Array<(OrganizationInvitation, Integer, Hash)>] OrganizationInvitation data, response status code and response headers
2178
- def update_organization_invitation_with_http_info(organization_id, invitation_id, update_organization_invitation, opts = {})
1207
+ # @option opts [OrganizationSuspension] :organization_suspension
1208
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
1209
+ def suspend_organization_with_http_info(organization_id, opts = {})
2179
1210
  if @api_client.config.debugging
2180
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization_invitation ...'
1211
+ @api_client.config.logger.debug 'Calling API: OrganizationsApi.suspend_organization ...'
2181
1212
  end
2182
1213
  # verify the required parameter 'organization_id' is set
2183
1214
  if @api_client.config.client_side_validation && organization_id.nil?
2184
- fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.update_organization_invitation"
2185
- end
2186
- # verify the required parameter 'invitation_id' is set
2187
- if @api_client.config.client_side_validation && invitation_id.nil?
2188
- fail ArgumentError, "Missing the required parameter 'invitation_id' when calling OrganizationsApi.update_organization_invitation"
2189
- end
2190
- # verify the required parameter 'update_organization_invitation' is set
2191
- if @api_client.config.client_side_validation && update_organization_invitation.nil?
2192
- fail ArgumentError, "Missing the required parameter 'update_organization_invitation' when calling OrganizationsApi.update_organization_invitation"
1215
+ fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.suspend_organization"
2193
1216
  end
2194
1217
  # resource path
2195
- local_var_path = '/organizations/{organizationId}/invitations/{invitationId}'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s)).sub('{' + 'invitationId' + '}', CGI.escape(invitation_id.to_s))
1218
+ local_var_path = '/organizations/{organizationId}/suspend'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
2196
1219
 
2197
1220
  # query parameters
2198
1221
  query_params = opts[:query_params] || {}
2199
1222
 
2200
1223
  # header parameters
2201
1224
  header_params = opts[:header_params] || {}
2202
- # HTTP header 'Accept' (if needed)
2203
- header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2204
1225
  # HTTP header 'Content-Type'
2205
1226
  content_type = @api_client.select_header_content_type(['application/json'])
2206
1227
  if !content_type.nil?
2207
- header_params['Content-Type'] = content_type
1228
+ header_params['Content-Type'] = content_type
2208
1229
  end
2209
1230
 
2210
1231
  # form parameters
2211
1232
  form_params = opts[:form_params] || {}
2212
1233
 
2213
1234
  # http body (model)
2214
- post_body = opts[:debug_body] || @api_client.object_to_http_body(update_organization_invitation)
1235
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'organization_suspension'])
2215
1236
 
2216
1237
  # return_type
2217
- return_type = opts[:debug_return_type] || 'OrganizationInvitation'
1238
+ return_type = opts[:debug_return_type]
2218
1239
 
2219
1240
  # auth_names
2220
1241
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
2221
1242
 
2222
1243
  new_options = opts.merge(
2223
- :operation => :"OrganizationsApi.update_organization_invitation",
1244
+ :operation => :"OrganizationsApi.suspend_organization",
2224
1245
  :header_params => header_params,
2225
1246
  :query_params => query_params,
2226
1247
  :form_params => form_params,
@@ -2229,59 +1250,48 @@ module DaytonaApiClient
2229
1250
  :return_type => return_type
2230
1251
  )
2231
1252
 
2232
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1253
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2233
1254
  if @api_client.config.debugging
2234
- @api_client.config.logger.debug "API called: OrganizationsApi#update_organization_invitation\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}"
2235
1256
  end
2236
1257
  return data, status_code, headers
2237
1258
  end
2238
1259
 
2239
- # Update organization OpenTelemetry configuration
1260
+ # Unsuspend organization
2240
1261
  # @param organization_id [String] Organization ID
2241
- # @param otel_config [OtelConfig]
2242
1262
  # @param [Hash] opts the optional parameters
2243
1263
  # @return [nil]
2244
- def update_organization_otel_config(organization_id, otel_config, opts = {})
2245
- update_organization_otel_config_with_http_info(organization_id, otel_config, opts)
1264
+ def unsuspend_organization(organization_id, opts = {})
1265
+ unsuspend_organization_with_http_info(organization_id, opts)
2246
1266
  nil
2247
1267
  end
2248
1268
 
2249
- # Update organization OpenTelemetry configuration
1269
+ # Unsuspend organization
2250
1270
  # @param organization_id [String] Organization ID
2251
- # @param otel_config [OtelConfig]
2252
1271
  # @param [Hash] opts the optional parameters
2253
1272
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
2254
- def update_organization_otel_config_with_http_info(organization_id, otel_config, opts = {})
1273
+ def unsuspend_organization_with_http_info(organization_id, opts = {})
2255
1274
  if @api_client.config.debugging
2256
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization_otel_config ...'
1275
+ @api_client.config.logger.debug 'Calling API: OrganizationsApi.unsuspend_organization ...'
2257
1276
  end
2258
1277
  # verify the required parameter 'organization_id' is set
2259
1278
  if @api_client.config.client_side_validation && organization_id.nil?
2260
- fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.update_organization_otel_config"
2261
- end
2262
- # verify the required parameter 'otel_config' is set
2263
- if @api_client.config.client_side_validation && otel_config.nil?
2264
- fail ArgumentError, "Missing the required parameter 'otel_config' when calling OrganizationsApi.update_organization_otel_config"
1279
+ fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.unsuspend_organization"
2265
1280
  end
2266
1281
  # resource path
2267
- local_var_path = '/organizations/{organizationId}/otel-config'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
1282
+ local_var_path = '/organizations/{organizationId}/unsuspend'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
2268
1283
 
2269
1284
  # query parameters
2270
1285
  query_params = opts[:query_params] || {}
2271
1286
 
2272
1287
  # header parameters
2273
1288
  header_params = opts[:header_params] || {}
2274
- # HTTP header 'Content-Type'
2275
- content_type = @api_client.select_header_content_type(['application/json'])
2276
- if !content_type.nil?
2277
- header_params['Content-Type'] = content_type
2278
- end
2279
1289
 
2280
1290
  # form parameters
2281
1291
  form_params = opts[:form_params] || {}
2282
1292
 
2283
1293
  # http body (model)
2284
- post_body = opts[:debug_body] || @api_client.object_to_http_body(otel_config)
1294
+ post_body = opts[:debug_body]
2285
1295
 
2286
1296
  # return_type
2287
1297
  return_type = opts[:debug_return_type]
@@ -2290,7 +1300,7 @@ module DaytonaApiClient
2290
1300
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
2291
1301
 
2292
1302
  new_options = opts.merge(
2293
- :operation => :"OrganizationsApi.update_organization_otel_config",
1303
+ :operation => :"OrganizationsApi.unsuspend_organization",
2294
1304
  :header_params => header_params,
2295
1305
  :query_params => query_params,
2296
1306
  :form_params => form_params,
@@ -2299,68 +1309,76 @@ module DaytonaApiClient
2299
1309
  :return_type => return_type
2300
1310
  )
2301
1311
 
2302
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1312
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2303
1313
  if @api_client.config.debugging
2304
- @api_client.config.logger.debug "API called: OrganizationsApi#update_organization_otel_config\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}"
2305
1315
  end
2306
1316
  return data, status_code, headers
2307
1317
  end
2308
1318
 
2309
- # Update organization preview warning
1319
+ # Update access for organization member
2310
1320
  # @param organization_id [String] Organization ID
2311
- # @param organization_preview_warning [OrganizationPreviewWarning]
1321
+ # @param user_id [String] User ID
1322
+ # @param update_organization_member_access [UpdateOrganizationMemberAccess]
2312
1323
  # @param [Hash] opts the optional parameters
2313
- # @return [nil]
2314
- def update_organization_preview_warning(organization_id, organization_preview_warning, opts = {})
2315
- update_organization_preview_warning_with_http_info(organization_id, organization_preview_warning, opts)
2316
- nil
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)
1327
+ data
2317
1328
  end
2318
1329
 
2319
- # Update organization preview warning
1330
+ # Update access for organization member
2320
1331
  # @param organization_id [String] Organization ID
2321
- # @param organization_preview_warning [OrganizationPreviewWarning]
1332
+ # @param user_id [String] User ID
1333
+ # @param update_organization_member_access [UpdateOrganizationMemberAccess]
2322
1334
  # @param [Hash] opts the optional parameters
2323
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
2324
- def update_organization_preview_warning_with_http_info(organization_id, organization_preview_warning, 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 = {})
2325
1337
  if @api_client.config.debugging
2326
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization_preview_warning ...'
1338
+ @api_client.config.logger.debug 'Calling API: OrganizationsApi.update_access_for_organization_member ...'
2327
1339
  end
2328
1340
  # verify the required parameter 'organization_id' is set
2329
1341
  if @api_client.config.client_side_validation && organization_id.nil?
2330
- fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.update_organization_preview_warning"
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"
2331
1347
  end
2332
- # verify the required parameter 'organization_preview_warning' is set
2333
- if @api_client.config.client_side_validation && organization_preview_warning.nil?
2334
- fail ArgumentError, "Missing the required parameter 'organization_preview_warning' when calling OrganizationsApi.update_organization_preview_warning"
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"
2335
1351
  end
2336
1352
  # resource path
2337
- local_var_path = '/organizations/{organizationId}/preview-warning'.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))
2338
1354
 
2339
1355
  # query parameters
2340
1356
  query_params = opts[:query_params] || {}
2341
1357
 
2342
1358
  # header parameters
2343
1359
  header_params = opts[:header_params] || {}
1360
+ # HTTP header 'Accept' (if needed)
1361
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2344
1362
  # HTTP header 'Content-Type'
2345
1363
  content_type = @api_client.select_header_content_type(['application/json'])
2346
1364
  if !content_type.nil?
2347
- header_params['Content-Type'] = content_type
1365
+ header_params['Content-Type'] = content_type
2348
1366
  end
2349
1367
 
2350
1368
  # form parameters
2351
1369
  form_params = opts[:form_params] || {}
2352
1370
 
2353
1371
  # http body (model)
2354
- post_body = opts[:debug_body] || @api_client.object_to_http_body(organization_preview_warning)
1372
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(update_organization_member_access)
2355
1373
 
2356
1374
  # return_type
2357
- return_type = opts[:debug_return_type]
1375
+ return_type = opts[:debug_return_type] || 'OrganizationUser'
2358
1376
 
2359
1377
  # auth_names
2360
1378
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
2361
1379
 
2362
1380
  new_options = opts.merge(
2363
- :operation => :"OrganizationsApi.update_organization_preview_warning",
1381
+ :operation => :"OrganizationsApi.update_access_for_organization_member",
2364
1382
  :header_params => header_params,
2365
1383
  :query_params => query_params,
2366
1384
  :form_params => form_params,
@@ -2371,66 +1389,74 @@ module DaytonaApiClient
2371
1389
 
2372
1390
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2373
1391
  if @api_client.config.debugging
2374
- @api_client.config.logger.debug "API called: OrganizationsApi#update_organization_preview_warning\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}"
2375
1393
  end
2376
1394
  return data, status_code, headers
2377
1395
  end
2378
1396
 
2379
- # Update organization quota
1397
+ # Update organization invitation
2380
1398
  # @param organization_id [String] Organization ID
2381
- # @param update_organization_quota [UpdateOrganizationQuota]
1399
+ # @param invitation_id [String] Invitation ID
1400
+ # @param update_organization_invitation [UpdateOrganizationInvitation]
2382
1401
  # @param [Hash] opts the optional parameters
2383
- # @return [nil]
2384
- def update_organization_quota(organization_id, update_organization_quota, opts = {})
2385
- update_organization_quota_with_http_info(organization_id, update_organization_quota, opts)
2386
- nil
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)
1405
+ data
2387
1406
  end
2388
1407
 
2389
- # Update organization quota
1408
+ # Update organization invitation
2390
1409
  # @param organization_id [String] Organization ID
2391
- # @param update_organization_quota [UpdateOrganizationQuota]
1410
+ # @param invitation_id [String] Invitation ID
1411
+ # @param update_organization_invitation [UpdateOrganizationInvitation]
2392
1412
  # @param [Hash] opts the optional parameters
2393
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
2394
- def update_organization_quota_with_http_info(organization_id, update_organization_quota, 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 = {})
2395
1415
  if @api_client.config.debugging
2396
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization_quota ...'
1416
+ @api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization_invitation ...'
2397
1417
  end
2398
1418
  # verify the required parameter 'organization_id' is set
2399
1419
  if @api_client.config.client_side_validation && organization_id.nil?
2400
- fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.update_organization_quota"
1420
+ fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.update_organization_invitation"
2401
1421
  end
2402
- # verify the required parameter 'update_organization_quota' is set
2403
- if @api_client.config.client_side_validation && update_organization_quota.nil?
2404
- fail ArgumentError, "Missing the required parameter 'update_organization_quota' when calling OrganizationsApi.update_organization_quota"
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"
2405
1429
  end
2406
1430
  # resource path
2407
- local_var_path = '/organizations/{organizationId}/quota'.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))
2408
1432
 
2409
1433
  # query parameters
2410
1434
  query_params = opts[:query_params] || {}
2411
1435
 
2412
1436
  # header parameters
2413
1437
  header_params = opts[:header_params] || {}
1438
+ # HTTP header 'Accept' (if needed)
1439
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2414
1440
  # HTTP header 'Content-Type'
2415
1441
  content_type = @api_client.select_header_content_type(['application/json'])
2416
1442
  if !content_type.nil?
2417
- header_params['Content-Type'] = content_type
1443
+ header_params['Content-Type'] = content_type
2418
1444
  end
2419
1445
 
2420
1446
  # form parameters
2421
1447
  form_params = opts[:form_params] || {}
2422
1448
 
2423
1449
  # http body (model)
2424
- post_body = opts[:debug_body] || @api_client.object_to_http_body(update_organization_quota)
1450
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(update_organization_invitation)
2425
1451
 
2426
1452
  # return_type
2427
- return_type = opts[:debug_return_type]
1453
+ return_type = opts[:debug_return_type] || 'OrganizationInvitation'
2428
1454
 
2429
1455
  # auth_names
2430
1456
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
2431
1457
 
2432
1458
  new_options = opts.merge(
2433
- :operation => :"OrganizationsApi.update_organization_quota",
1459
+ :operation => :"OrganizationsApi.update_organization_invitation",
2434
1460
  :header_params => header_params,
2435
1461
  :query_params => query_params,
2436
1462
  :form_params => form_params,
@@ -2439,74 +1465,70 @@ module DaytonaApiClient
2439
1465
  :return_type => return_type
2440
1466
  )
2441
1467
 
2442
- data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
1468
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2443
1469
  if @api_client.config.debugging
2444
- @api_client.config.logger.debug "API called: OrganizationsApi#update_organization_quota\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}"
2445
1471
  end
2446
1472
  return data, status_code, headers
2447
1473
  end
2448
1474
 
2449
- # Update organization region quota
1475
+ # Update organization quota
2450
1476
  # @param organization_id [String] Organization ID
2451
- # @param region_id [String] ID of the region where the updated quota will be applied
2452
- # @param update_organization_region_quota [UpdateOrganizationRegionQuota]
1477
+ # @param update_organization_quota [UpdateOrganizationQuota]
2453
1478
  # @param [Hash] opts the optional parameters
2454
- # @return [nil]
2455
- def update_organization_region_quota(organization_id, region_id, update_organization_region_quota, opts = {})
2456
- update_organization_region_quota_with_http_info(organization_id, region_id, update_organization_region_quota, opts)
2457
- nil
1479
+ # @return [Organization]
1480
+ def update_organization_quota(organization_id, update_organization_quota, opts = {})
1481
+ data, _status_code, _headers = update_organization_quota_with_http_info(organization_id, update_organization_quota, opts)
1482
+ data
2458
1483
  end
2459
1484
 
2460
- # Update organization region quota
1485
+ # Update organization quota
2461
1486
  # @param organization_id [String] Organization ID
2462
- # @param region_id [String] ID of the region where the updated quota will be applied
2463
- # @param update_organization_region_quota [UpdateOrganizationRegionQuota]
1487
+ # @param update_organization_quota [UpdateOrganizationQuota]
2464
1488
  # @param [Hash] opts the optional parameters
2465
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
2466
- def update_organization_region_quota_with_http_info(organization_id, region_id, update_organization_region_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 = {})
2467
1491
  if @api_client.config.debugging
2468
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization_region_quota ...'
1492
+ @api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization_quota ...'
2469
1493
  end
2470
1494
  # verify the required parameter 'organization_id' is set
2471
1495
  if @api_client.config.client_side_validation && organization_id.nil?
2472
- fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.update_organization_region_quota"
2473
- end
2474
- # verify the required parameter 'region_id' is set
2475
- if @api_client.config.client_side_validation && region_id.nil?
2476
- fail ArgumentError, "Missing the required parameter 'region_id' when calling OrganizationsApi.update_organization_region_quota"
1496
+ fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.update_organization_quota"
2477
1497
  end
2478
- # verify the required parameter 'update_organization_region_quota' is set
2479
- if @api_client.config.client_side_validation && update_organization_region_quota.nil?
2480
- fail ArgumentError, "Missing the required parameter 'update_organization_region_quota' when calling OrganizationsApi.update_organization_region_quota"
1498
+ # verify the required parameter 'update_organization_quota' is set
1499
+ if @api_client.config.client_side_validation && update_organization_quota.nil?
1500
+ fail ArgumentError, "Missing the required parameter 'update_organization_quota' when calling OrganizationsApi.update_organization_quota"
2481
1501
  end
2482
1502
  # resource path
2483
- local_var_path = '/organizations/{organizationId}/quota/{regionId}'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s)).sub('{' + 'regionId' + '}', CGI.escape(region_id.to_s))
1503
+ local_var_path = '/organizations/{organizationId}/quota'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
2484
1504
 
2485
1505
  # query parameters
2486
1506
  query_params = opts[:query_params] || {}
2487
1507
 
2488
1508
  # header parameters
2489
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']
2490
1512
  # HTTP header 'Content-Type'
2491
1513
  content_type = @api_client.select_header_content_type(['application/json'])
2492
1514
  if !content_type.nil?
2493
- header_params['Content-Type'] = content_type
1515
+ header_params['Content-Type'] = content_type
2494
1516
  end
2495
1517
 
2496
1518
  # form parameters
2497
1519
  form_params = opts[:form_params] || {}
2498
1520
 
2499
1521
  # http body (model)
2500
- post_body = opts[:debug_body] || @api_client.object_to_http_body(update_organization_region_quota)
1522
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(update_organization_quota)
2501
1523
 
2502
1524
  # return_type
2503
- return_type = opts[:debug_return_type]
1525
+ return_type = opts[:debug_return_type] || 'Organization'
2504
1526
 
2505
1527
  # auth_names
2506
1528
  auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
2507
1529
 
2508
1530
  new_options = opts.merge(
2509
- :operation => :"OrganizationsApi.update_organization_region_quota",
1531
+ :operation => :"OrganizationsApi.update_organization_quota",
2510
1532
  :header_params => header_params,
2511
1533
  :query_params => query_params,
2512
1534
  :form_params => form_params,
@@ -2517,7 +1539,7 @@ module DaytonaApiClient
2517
1539
 
2518
1540
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
2519
1541
  if @api_client.config.debugging
2520
- @api_client.config.logger.debug "API called: OrganizationsApi#update_organization_region_quota\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1542
+ @api_client.config.logger.debug "API called: OrganizationsApi#update_organization_quota\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2521
1543
  end
2522
1544
  return data, status_code, headers
2523
1545
  end
@@ -2568,7 +1590,7 @@ module DaytonaApiClient
2568
1590
  # HTTP header 'Content-Type'
2569
1591
  content_type = @api_client.select_header_content_type(['application/json'])
2570
1592
  if !content_type.nil?
2571
- header_params['Content-Type'] = content_type
1593
+ header_params['Content-Type'] = content_type
2572
1594
  end
2573
1595
 
2574
1596
  # form parameters
@@ -2600,79 +1622,6 @@ module DaytonaApiClient
2600
1622
  return data, status_code, headers
2601
1623
  end
2602
1624
 
2603
- # Update region configuration
2604
- # @param id [String] Region ID
2605
- # @param update_region [UpdateRegion]
2606
- # @param [Hash] opts the optional parameters
2607
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
2608
- # @return [nil]
2609
- def update_region(id, update_region, opts = {})
2610
- update_region_with_http_info(id, update_region, opts)
2611
- nil
2612
- end
2613
-
2614
- # Update region configuration
2615
- # @param id [String] Region ID
2616
- # @param update_region [UpdateRegion]
2617
- # @param [Hash] opts the optional parameters
2618
- # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
2619
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
2620
- def update_region_with_http_info(id, update_region, opts = {})
2621
- if @api_client.config.debugging
2622
- @api_client.config.logger.debug 'Calling API: OrganizationsApi.update_region ...'
2623
- end
2624
- # verify the required parameter 'id' is set
2625
- if @api_client.config.client_side_validation && id.nil?
2626
- fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.update_region"
2627
- end
2628
- # verify the required parameter 'update_region' is set
2629
- if @api_client.config.client_side_validation && update_region.nil?
2630
- fail ArgumentError, "Missing the required parameter 'update_region' when calling OrganizationsApi.update_region"
2631
- end
2632
- # resource path
2633
- local_var_path = '/regions/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
2634
-
2635
- # query parameters
2636
- query_params = opts[:query_params] || {}
2637
-
2638
- # header parameters
2639
- header_params = opts[:header_params] || {}
2640
- # HTTP header 'Content-Type'
2641
- content_type = @api_client.select_header_content_type(['application/json'])
2642
- if !content_type.nil?
2643
- header_params['Content-Type'] = content_type
2644
- end
2645
- header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
2646
-
2647
- # form parameters
2648
- form_params = opts[:form_params] || {}
2649
-
2650
- # http body (model)
2651
- post_body = opts[:debug_body] || @api_client.object_to_http_body(update_region)
2652
-
2653
- # return_type
2654
- return_type = opts[:debug_return_type]
2655
-
2656
- # auth_names
2657
- auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
2658
-
2659
- new_options = opts.merge(
2660
- :operation => :"OrganizationsApi.update_region",
2661
- :header_params => header_params,
2662
- :query_params => query_params,
2663
- :form_params => form_params,
2664
- :body => post_body,
2665
- :auth_names => auth_names,
2666
- :return_type => return_type
2667
- )
2668
-
2669
- data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
2670
- if @api_client.config.debugging
2671
- @api_client.config.logger.debug "API called: OrganizationsApi#update_region\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2672
- end
2673
- return data, status_code, headers
2674
- end
2675
-
2676
1625
  # Update sandbox default limited network egress
2677
1626
  # @param organization_id [String] Organization ID
2678
1627
  # @param organization_sandbox_default_limited_network_egress [OrganizationSandboxDefaultLimitedNetworkEgress]
@@ -2711,7 +1660,7 @@ module DaytonaApiClient
2711
1660
  # HTTP header 'Content-Type'
2712
1661
  content_type = @api_client.select_header_content_type(['application/json'])
2713
1662
  if !content_type.nil?
2714
- header_params['Content-Type'] = content_type
1663
+ header_params['Content-Type'] = content_type
2715
1664
  end
2716
1665
 
2717
1666
  # form parameters