daytona_api_client 0.167.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +9 -0
- data/Gemfile.lock +101 -0
- data/daytona_api_client.gemspec +2 -2
- data/lib/daytona_api_client/api/api_keys_api.rb +1 -1
- data/lib/daytona_api_client/api/audit_api.rb +139 -9
- data/lib/daytona_api_client/api/docker_registry_api.rb +66 -5
- data/lib/daytona_api_client/api/health_api.rb +2 -53
- data/lib/daytona_api_client/api/organizations_api.rb +162 -953
- data/lib/daytona_api_client/api/preview_api.rb +7 -76
- data/lib/daytona_api_client/api/runners_api.rb +21 -408
- data/lib/daytona_api_client/api/sandbox_api.rb +214 -1462
- data/lib/daytona_api_client/api/snapshots_api.rb +110 -36
- data/lib/daytona_api_client/api/toolbox_api.rb +740 -740
- data/lib/daytona_api_client/api/users_api.rb +238 -1
- data/lib/daytona_api_client/api/volumes_api.rb +1 -1
- data/lib/daytona_api_client/api/webhooks_api.rb +267 -4
- data/lib/daytona_api_client/api/workspace_api.rb +5 -5
- data/lib/daytona_api_client/api_client.rb +1 -1
- data/lib/daytona_api_client/configuration.rb +1 -4
- data/lib/daytona_api_client/models/account_provider.rb +0 -2
- data/lib/daytona_api_client/models/announcement.rb +0 -2
- data/lib/daytona_api_client/models/api_key_list.rb +0 -2
- data/lib/daytona_api_client/models/api_key_response.rb +0 -2
- data/lib/daytona_api_client/models/audit_log.rb +1 -21
- data/lib/daytona_api_client/models/build_info.rb +4 -33
- data/lib/daytona_api_client/models/command.rb +0 -2
- data/lib/daytona_api_client/models/completion_context.rb +0 -2
- data/lib/daytona_api_client/models/completion_item.rb +0 -2
- data/lib/daytona_api_client/models/completion_list.rb +0 -2
- data/lib/daytona_api_client/models/compressed_screenshot_response.rb +0 -2
- data/lib/daytona_api_client/models/computer_use_start_response.rb +0 -2
- data/lib/daytona_api_client/models/computer_use_status_response.rb +0 -2
- data/lib/daytona_api_client/models/computer_use_stop_response.rb +0 -2
- data/lib/daytona_api_client/models/create_api_key.rb +1 -3
- data/lib/daytona_api_client/models/{job.rb → create_audit_log.rb} +79 -168
- data/lib/daytona_api_client/models/create_build_info.rb +0 -2
- data/lib/daytona_api_client/models/create_docker_registry.rb +65 -6
- data/lib/daytona_api_client/models/create_linked_account.rb +0 -2
- data/lib/daytona_api_client/models/create_organization.rb +4 -33
- data/lib/daytona_api_client/models/create_organization_invitation.rb +0 -2
- data/lib/daytona_api_client/models/create_organization_quota.rb +0 -2
- data/lib/daytona_api_client/models/create_organization_role.rb +0 -2
- data/lib/daytona_api_client/models/create_runner.rb +315 -33
- data/lib/daytona_api_client/models/create_sandbox.rb +1 -13
- data/lib/daytona_api_client/models/create_session_request.rb +0 -2
- data/lib/daytona_api_client/models/create_snapshot.rb +14 -16
- data/lib/daytona_api_client/models/create_user.rb +1 -12
- data/lib/daytona_api_client/models/create_volume.rb +0 -2
- data/lib/daytona_api_client/models/create_workspace.rb +0 -2
- data/lib/daytona_api_client/models/daytona_configuration.rb +4 -53
- data/lib/daytona_api_client/models/display_info_response.rb +0 -2
- data/lib/daytona_api_client/models/docker_registry.rb +0 -2
- data/lib/daytona_api_client/models/download_files.rb +0 -2
- data/lib/daytona_api_client/models/execute_request.rb +0 -2
- data/lib/daytona_api_client/models/execute_response.rb +0 -2
- data/lib/daytona_api_client/models/file_info.rb +0 -2
- data/lib/daytona_api_client/models/file_status.rb +0 -2
- data/lib/daytona_api_client/models/git_add_request.rb +0 -2
- data/lib/daytona_api_client/models/git_branch_request.rb +0 -2
- data/lib/daytona_api_client/models/git_checkout_request.rb +0 -2
- data/lib/daytona_api_client/models/git_clone_request.rb +0 -2
- data/lib/daytona_api_client/models/git_commit_info.rb +0 -2
- data/lib/daytona_api_client/models/git_commit_request.rb +0 -2
- data/lib/daytona_api_client/models/git_commit_response.rb +0 -2
- data/lib/daytona_api_client/models/git_delete_branch_request.rb +0 -2
- data/lib/daytona_api_client/models/git_repo_request.rb +0 -2
- data/lib/daytona_api_client/models/git_status.rb +0 -2
- data/lib/daytona_api_client/models/health_controller_check200_response.rb +0 -2
- data/lib/daytona_api_client/models/health_controller_check200_response_info_value.rb +0 -2
- data/lib/daytona_api_client/models/health_controller_check503_response.rb +0 -2
- data/lib/daytona_api_client/models/keyboard_hotkey_request.rb +0 -2
- data/lib/daytona_api_client/models/keyboard_press_request.rb +0 -2
- data/lib/daytona_api_client/models/keyboard_type_request.rb +0 -2
- data/lib/daytona_api_client/models/list_branch_response.rb +0 -2
- data/lib/daytona_api_client/models/lsp_completion_params.rb +0 -2
- data/lib/daytona_api_client/models/lsp_document_request.rb +0 -2
- data/lib/daytona_api_client/models/lsp_location.rb +0 -2
- data/lib/daytona_api_client/models/lsp_server_request.rb +0 -2
- data/lib/daytona_api_client/models/lsp_symbol.rb +0 -2
- data/lib/daytona_api_client/models/match.rb +0 -2
- data/lib/daytona_api_client/models/mouse_click_request.rb +0 -2
- data/lib/daytona_api_client/models/mouse_click_response.rb +0 -2
- data/lib/daytona_api_client/models/mouse_drag_request.rb +0 -2
- data/lib/daytona_api_client/models/mouse_drag_response.rb +0 -2
- data/lib/daytona_api_client/models/mouse_move_request.rb +0 -2
- data/lib/daytona_api_client/models/mouse_move_response.rb +0 -2
- data/lib/daytona_api_client/models/mouse_position.rb +0 -2
- data/lib/daytona_api_client/models/mouse_scroll_request.rb +0 -2
- data/lib/daytona_api_client/models/mouse_scroll_response.rb +0 -2
- data/lib/daytona_api_client/models/oidc_config.rb +0 -2
- data/lib/daytona_api_client/models/organization.rb +85 -148
- data/lib/daytona_api_client/models/organization_invitation.rb +0 -2
- data/lib/daytona_api_client/models/organization_role.rb +0 -2
- data/lib/daytona_api_client/models/organization_sandbox_default_limited_network_egress.rb +0 -2
- data/lib/daytona_api_client/models/organization_suspension.rb +5 -9
- data/lib/daytona_api_client/models/organization_usage_overview.rb +146 -20
- data/lib/daytona_api_client/models/organization_user.rb +0 -2
- data/lib/daytona_api_client/models/paginated_audit_logs.rb +4 -16
- data/lib/daytona_api_client/models/paginated_sandboxes.rb +0 -2
- data/lib/daytona_api_client/models/paginated_snapshots.rb +0 -2
- data/lib/daytona_api_client/models/{paginated_jobs.rb → paginated_snapshots_dto.rb} +4 -6
- data/lib/daytona_api_client/models/port_preview_url.rb +14 -33
- data/lib/daytona_api_client/models/position.rb +0 -2
- data/lib/daytona_api_client/models/posthog_config.rb +0 -2
- data/lib/daytona_api_client/models/process_errors_response.rb +0 -2
- data/lib/daytona_api_client/models/process_logs_response.rb +0 -2
- data/lib/daytona_api_client/models/process_restart_response.rb +0 -2
- data/lib/daytona_api_client/models/process_status_response.rb +0 -2
- data/lib/daytona_api_client/models/project_dir_response.rb +0 -2
- data/lib/daytona_api_client/models/pty_create_request.rb +0 -2
- data/lib/daytona_api_client/models/pty_create_response.rb +0 -2
- data/lib/daytona_api_client/models/pty_list_response.rb +0 -2
- data/lib/daytona_api_client/models/pty_resize_request.rb +0 -2
- data/lib/daytona_api_client/models/pty_session_info.rb +0 -2
- data/lib/daytona_api_client/models/range.rb +0 -2
- data/lib/daytona_api_client/models/region.rb +4 -180
- data/lib/daytona_api_client/models/region_screenshot_response.rb +0 -2
- data/lib/daytona_api_client/models/registry_push_access_dto.rb +0 -2
- data/lib/daytona_api_client/models/replace_request.rb +0 -2
- data/lib/daytona_api_client/models/replace_result.rb +0 -2
- data/lib/daytona_api_client/models/runner.rb +117 -108
- data/lib/daytona_api_client/models/runner_snapshot_dto.rb +17 -2
- data/lib/daytona_api_client/models/sandbox.rb +14 -80
- data/lib/daytona_api_client/models/sandbox_info.rb +0 -2
- data/lib/daytona_api_client/models/sandbox_labels.rb +0 -2
- data/lib/daytona_api_client/models/sandbox_state.rb +1 -4
- data/lib/daytona_api_client/models/sandbox_volume.rb +4 -16
- data/lib/daytona_api_client/models/screenshot_response.rb +0 -2
- data/lib/daytona_api_client/models/search_files_response.rb +0 -2
- data/lib/daytona_api_client/models/send_webhook_dto.rb +1 -25
- data/lib/daytona_api_client/models/session.rb +0 -2
- data/lib/daytona_api_client/models/session_execute_request.rb +0 -2
- data/lib/daytona_api_client/models/session_execute_response.rb +0 -2
- data/lib/daytona_api_client/models/set_snapshot_general_status_dto.rb +0 -2
- data/lib/daytona_api_client/models/snapshot_dto.rb +4 -38
- data/lib/daytona_api_client/models/snapshot_state.rb +4 -1
- data/lib/daytona_api_client/models/ssh_access_dto.rb +4 -33
- data/lib/daytona_api_client/models/ssh_access_validation_dto.rb +24 -6
- data/lib/daytona_api_client/models/storage_access_dto.rb +0 -2
- data/lib/daytona_api_client/models/update_docker_registry.rb +0 -2
- data/lib/daytona_api_client/models/update_organization_invitation.rb +0 -2
- data/lib/daytona_api_client/models/update_organization_member_access.rb +0 -2
- data/lib/daytona_api_client/models/update_organization_quota.rb +41 -92
- data/lib/daytona_api_client/models/update_organization_role.rb +0 -2
- data/lib/daytona_api_client/models/update_sandbox_state_dto.rb +6 -28
- data/lib/daytona_api_client/models/user.rb +0 -2
- data/lib/daytona_api_client/models/user_home_dir_response.rb +0 -2
- data/lib/daytona_api_client/models/user_public_key.rb +0 -2
- data/lib/daytona_api_client/models/volume_dto.rb +0 -2
- data/lib/daytona_api_client/models/webhook_app_portal_access.rb +1 -30
- data/lib/daytona_api_client/models/{admin_get_webhook_status200_response.rb → webhook_controller_get_status200_response.rb} +3 -5
- data/lib/daytona_api_client/models/webhook_initialization_status.rb +0 -2
- data/lib/daytona_api_client/models/windows_response.rb +0 -2
- data/lib/daytona_api_client/models/work_dir_response.rb +0 -2
- data/lib/daytona_api_client/models/workspace.rb +27 -66
- data/lib/daytona_api_client/version.rb +1 -1
- data/lib/daytona_api_client.rb +2 -46
- data/project.json +11 -38
- metadata +6 -54
- data/.gitignore +0 -39
- data/.openapi-generator/FILES +0 -209
- data/.openapi-generator/VERSION +0 -1
- data/.openapi-generator-ignore +0 -31
- data/.rspec +0 -2
- data/.rubocop.yml +0 -148
- data/fix-gemspec.sh +0 -11
- data/lib/daytona_api_client/api/admin_api.rb +0 -1151
- data/lib/daytona_api_client/api/jobs_api.rb +0 -299
- data/lib/daytona_api_client/api/regions_api.rb +0 -77
- data/lib/daytona_api_client/models/admin_create_runner.rb +0 -387
- data/lib/daytona_api_client/models/create_region.rb +0 -271
- data/lib/daytona_api_client/models/create_region_response.rb +0 -282
- data/lib/daytona_api_client/models/create_runner_response.rb +0 -265
- data/lib/daytona_api_client/models/create_sandbox_snapshot.rb +0 -238
- data/lib/daytona_api_client/models/fork_sandbox.rb +0 -221
- data/lib/daytona_api_client/models/job_status.rb +0 -42
- data/lib/daytona_api_client/models/job_type.rb +0 -52
- data/lib/daytona_api_client/models/log_entry.rb +0 -407
- data/lib/daytona_api_client/models/metric_data_point.rb +0 -265
- data/lib/daytona_api_client/models/metric_series.rb +0 -267
- data/lib/daytona_api_client/models/metrics_response.rb +0 -240
- data/lib/daytona_api_client/models/otel_config.rb +0 -251
- data/lib/daytona_api_client/models/paginated_logs.rb +0 -321
- data/lib/daytona_api_client/models/paginated_traces.rb +0 -321
- data/lib/daytona_api_client/models/poll_jobs_response.rb +0 -240
- data/lib/daytona_api_client/models/rate_limit_config.rb +0 -251
- data/lib/daytona_api_client/models/rate_limit_entry.rb +0 -231
- data/lib/daytona_api_client/models/regenerate_api_key_response.rb +0 -238
- data/lib/daytona_api_client/models/region_quota.rb +0 -389
- data/lib/daytona_api_client/models/region_type.rb +0 -41
- data/lib/daytona_api_client/models/region_usage_overview.rb +0 -393
- data/lib/daytona_api_client/models/resize_sandbox.rb +0 -298
- data/lib/daytona_api_client/models/runner_class.rb +0 -40
- data/lib/daytona_api_client/models/runner_full.rb +0 -808
- data/lib/daytona_api_client/models/runner_health_metrics.rb +0 -535
- data/lib/daytona_api_client/models/runner_healthcheck.rb +0 -290
- data/lib/daytona_api_client/models/runner_service_health.rb +0 -275
- data/lib/daytona_api_client/models/signed_port_preview_url.rb +0 -319
- data/lib/daytona_api_client/models/snapshot_manager_credentials.rb +0 -265
- data/lib/daytona_api_client/models/toolbox_proxy_url.rb +0 -238
- data/lib/daytona_api_client/models/trace_span.rb +0 -405
- data/lib/daytona_api_client/models/trace_summary.rb +0 -383
- data/lib/daytona_api_client/models/update_job_status.rb +0 -280
- data/lib/daytona_api_client/models/update_organization_default_region.rb +0 -238
- data/lib/daytona_api_client/models/update_organization_region_quota.rb +0 -287
- data/lib/daytona_api_client/models/update_region.rb +0 -244
- data/lib/daytona_api_client/models/url.rb +0 -238
- data/lib/daytona_api_client/models/webhook_event.rb +0 -45
- data/lib/daytona_api_client/models/workspace_port_preview_url.rb +0 -265
|
@@ -19,6 +19,70 @@ module DaytonaApiClient
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
+
# Create user
|
|
23
|
+
# @param create_user [CreateUser]
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @return [nil]
|
|
26
|
+
def create_user(create_user, opts = {})
|
|
27
|
+
create_user_with_http_info(create_user, opts)
|
|
28
|
+
nil
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# Create user
|
|
32
|
+
# @param create_user [CreateUser]
|
|
33
|
+
# @param [Hash] opts the optional parameters
|
|
34
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
35
|
+
def create_user_with_http_info(create_user, opts = {})
|
|
36
|
+
if @api_client.config.debugging
|
|
37
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.create_user ...'
|
|
38
|
+
end
|
|
39
|
+
# verify the required parameter 'create_user' is set
|
|
40
|
+
if @api_client.config.client_side_validation && create_user.nil?
|
|
41
|
+
fail ArgumentError, "Missing the required parameter 'create_user' when calling UsersApi.create_user"
|
|
42
|
+
end
|
|
43
|
+
# resource path
|
|
44
|
+
local_var_path = '/users'
|
|
45
|
+
|
|
46
|
+
# query parameters
|
|
47
|
+
query_params = opts[:query_params] || {}
|
|
48
|
+
|
|
49
|
+
# header parameters
|
|
50
|
+
header_params = opts[:header_params] || {}
|
|
51
|
+
# HTTP header 'Content-Type'
|
|
52
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
53
|
+
if !content_type.nil?
|
|
54
|
+
header_params['Content-Type'] = content_type
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# form parameters
|
|
58
|
+
form_params = opts[:form_params] || {}
|
|
59
|
+
|
|
60
|
+
# http body (model)
|
|
61
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_user)
|
|
62
|
+
|
|
63
|
+
# return_type
|
|
64
|
+
return_type = opts[:debug_return_type]
|
|
65
|
+
|
|
66
|
+
# auth_names
|
|
67
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
68
|
+
|
|
69
|
+
new_options = opts.merge(
|
|
70
|
+
:operation => :"UsersApi.create_user",
|
|
71
|
+
:header_params => header_params,
|
|
72
|
+
:query_params => query_params,
|
|
73
|
+
:form_params => form_params,
|
|
74
|
+
:body => post_body,
|
|
75
|
+
:auth_names => auth_names,
|
|
76
|
+
:return_type => return_type
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
80
|
+
if @api_client.config.debugging
|
|
81
|
+
@api_client.config.logger.debug "API called: UsersApi#create_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
82
|
+
end
|
|
83
|
+
return data, status_code, headers
|
|
84
|
+
end
|
|
85
|
+
|
|
22
86
|
# Enroll in SMS MFA
|
|
23
87
|
# @param [Hash] opts the optional parameters
|
|
24
88
|
# @return [String]
|
|
@@ -184,6 +248,67 @@ module DaytonaApiClient
|
|
|
184
248
|
return data, status_code, headers
|
|
185
249
|
end
|
|
186
250
|
|
|
251
|
+
# Get user by ID
|
|
252
|
+
# @param id [String]
|
|
253
|
+
# @param [Hash] opts the optional parameters
|
|
254
|
+
# @return [User]
|
|
255
|
+
def get_user(id, opts = {})
|
|
256
|
+
data, _status_code, _headers = get_user_with_http_info(id, opts)
|
|
257
|
+
data
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
# Get user by ID
|
|
261
|
+
# @param id [String]
|
|
262
|
+
# @param [Hash] opts the optional parameters
|
|
263
|
+
# @return [Array<(User, Integer, Hash)>] User data, response status code and response headers
|
|
264
|
+
def get_user_with_http_info(id, opts = {})
|
|
265
|
+
if @api_client.config.debugging
|
|
266
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.get_user ...'
|
|
267
|
+
end
|
|
268
|
+
# verify the required parameter 'id' is set
|
|
269
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
270
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling UsersApi.get_user"
|
|
271
|
+
end
|
|
272
|
+
# resource path
|
|
273
|
+
local_var_path = '/users/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
274
|
+
|
|
275
|
+
# query parameters
|
|
276
|
+
query_params = opts[:query_params] || {}
|
|
277
|
+
|
|
278
|
+
# header parameters
|
|
279
|
+
header_params = opts[:header_params] || {}
|
|
280
|
+
# HTTP header 'Accept' (if needed)
|
|
281
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
282
|
+
|
|
283
|
+
# form parameters
|
|
284
|
+
form_params = opts[:form_params] || {}
|
|
285
|
+
|
|
286
|
+
# http body (model)
|
|
287
|
+
post_body = opts[:debug_body]
|
|
288
|
+
|
|
289
|
+
# return_type
|
|
290
|
+
return_type = opts[:debug_return_type] || 'User'
|
|
291
|
+
|
|
292
|
+
# auth_names
|
|
293
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
294
|
+
|
|
295
|
+
new_options = opts.merge(
|
|
296
|
+
:operation => :"UsersApi.get_user",
|
|
297
|
+
:header_params => header_params,
|
|
298
|
+
:query_params => query_params,
|
|
299
|
+
:form_params => form_params,
|
|
300
|
+
:body => post_body,
|
|
301
|
+
:auth_names => auth_names,
|
|
302
|
+
:return_type => return_type
|
|
303
|
+
)
|
|
304
|
+
|
|
305
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
306
|
+
if @api_client.config.debugging
|
|
307
|
+
@api_client.config.logger.debug "API called: UsersApi#get_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
308
|
+
end
|
|
309
|
+
return data, status_code, headers
|
|
310
|
+
end
|
|
311
|
+
|
|
187
312
|
# Link account
|
|
188
313
|
# @param create_linked_account [CreateLinkedAccount]
|
|
189
314
|
# @param [Hash] opts the optional parameters
|
|
@@ -216,7 +341,7 @@ module DaytonaApiClient
|
|
|
216
341
|
# HTTP header 'Content-Type'
|
|
217
342
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
218
343
|
if !content_type.nil?
|
|
219
|
-
|
|
344
|
+
header_params['Content-Type'] = content_type
|
|
220
345
|
end
|
|
221
346
|
|
|
222
347
|
# form parameters
|
|
@@ -248,6 +373,118 @@ module DaytonaApiClient
|
|
|
248
373
|
return data, status_code, headers
|
|
249
374
|
end
|
|
250
375
|
|
|
376
|
+
# List all users
|
|
377
|
+
# @param [Hash] opts the optional parameters
|
|
378
|
+
# @return [nil]
|
|
379
|
+
def list_users(opts = {})
|
|
380
|
+
list_users_with_http_info(opts)
|
|
381
|
+
nil
|
|
382
|
+
end
|
|
383
|
+
|
|
384
|
+
# List all users
|
|
385
|
+
# @param [Hash] opts the optional parameters
|
|
386
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
387
|
+
def list_users_with_http_info(opts = {})
|
|
388
|
+
if @api_client.config.debugging
|
|
389
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.list_users ...'
|
|
390
|
+
end
|
|
391
|
+
# resource path
|
|
392
|
+
local_var_path = '/users'
|
|
393
|
+
|
|
394
|
+
# query parameters
|
|
395
|
+
query_params = opts[:query_params] || {}
|
|
396
|
+
|
|
397
|
+
# header parameters
|
|
398
|
+
header_params = opts[:header_params] || {}
|
|
399
|
+
|
|
400
|
+
# form parameters
|
|
401
|
+
form_params = opts[:form_params] || {}
|
|
402
|
+
|
|
403
|
+
# http body (model)
|
|
404
|
+
post_body = opts[:debug_body]
|
|
405
|
+
|
|
406
|
+
# return_type
|
|
407
|
+
return_type = opts[:debug_return_type]
|
|
408
|
+
|
|
409
|
+
# auth_names
|
|
410
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
411
|
+
|
|
412
|
+
new_options = opts.merge(
|
|
413
|
+
:operation => :"UsersApi.list_users",
|
|
414
|
+
:header_params => header_params,
|
|
415
|
+
:query_params => query_params,
|
|
416
|
+
:form_params => form_params,
|
|
417
|
+
:body => post_body,
|
|
418
|
+
:auth_names => auth_names,
|
|
419
|
+
:return_type => return_type
|
|
420
|
+
)
|
|
421
|
+
|
|
422
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
423
|
+
if @api_client.config.debugging
|
|
424
|
+
@api_client.config.logger.debug "API called: UsersApi#list_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
425
|
+
end
|
|
426
|
+
return data, status_code, headers
|
|
427
|
+
end
|
|
428
|
+
|
|
429
|
+
# Regenerate user key pair
|
|
430
|
+
# @param id [String]
|
|
431
|
+
# @param [Hash] opts the optional parameters
|
|
432
|
+
# @return [nil]
|
|
433
|
+
def regenerate_key_pair(id, opts = {})
|
|
434
|
+
regenerate_key_pair_with_http_info(id, opts)
|
|
435
|
+
nil
|
|
436
|
+
end
|
|
437
|
+
|
|
438
|
+
# Regenerate user key pair
|
|
439
|
+
# @param id [String]
|
|
440
|
+
# @param [Hash] opts the optional parameters
|
|
441
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
442
|
+
def regenerate_key_pair_with_http_info(id, opts = {})
|
|
443
|
+
if @api_client.config.debugging
|
|
444
|
+
@api_client.config.logger.debug 'Calling API: UsersApi.regenerate_key_pair ...'
|
|
445
|
+
end
|
|
446
|
+
# verify the required parameter 'id' is set
|
|
447
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
448
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling UsersApi.regenerate_key_pair"
|
|
449
|
+
end
|
|
450
|
+
# resource path
|
|
451
|
+
local_var_path = '/users/{id}/regenerate-key-pair'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
452
|
+
|
|
453
|
+
# query parameters
|
|
454
|
+
query_params = opts[:query_params] || {}
|
|
455
|
+
|
|
456
|
+
# header parameters
|
|
457
|
+
header_params = opts[:header_params] || {}
|
|
458
|
+
|
|
459
|
+
# form parameters
|
|
460
|
+
form_params = opts[:form_params] || {}
|
|
461
|
+
|
|
462
|
+
# http body (model)
|
|
463
|
+
post_body = opts[:debug_body]
|
|
464
|
+
|
|
465
|
+
# return_type
|
|
466
|
+
return_type = opts[:debug_return_type]
|
|
467
|
+
|
|
468
|
+
# auth_names
|
|
469
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
470
|
+
|
|
471
|
+
new_options = opts.merge(
|
|
472
|
+
:operation => :"UsersApi.regenerate_key_pair",
|
|
473
|
+
:header_params => header_params,
|
|
474
|
+
:query_params => query_params,
|
|
475
|
+
:form_params => form_params,
|
|
476
|
+
:body => post_body,
|
|
477
|
+
:auth_names => auth_names,
|
|
478
|
+
:return_type => return_type
|
|
479
|
+
)
|
|
480
|
+
|
|
481
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
482
|
+
if @api_client.config.debugging
|
|
483
|
+
@api_client.config.logger.debug "API called: UsersApi#regenerate_key_pair\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
484
|
+
end
|
|
485
|
+
return data, status_code, headers
|
|
486
|
+
end
|
|
487
|
+
|
|
251
488
|
# Unlink account
|
|
252
489
|
# @param provider [String]
|
|
253
490
|
# @param provider_user_id [String]
|
|
@@ -55,7 +55,7 @@ module DaytonaApiClient
|
|
|
55
55
|
# HTTP header 'Content-Type'
|
|
56
56
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
57
57
|
if !content_type.nil?
|
|
58
|
-
|
|
58
|
+
header_params['Content-Type'] = content_type
|
|
59
59
|
end
|
|
60
60
|
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
61
61
|
|
|
@@ -19,7 +19,7 @@ module DaytonaApiClient
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
-
# Get Svix Consumer App Portal access for an organization
|
|
22
|
+
# Get Svix Consumer App Portal access URL for an organization
|
|
23
23
|
# @param organization_id [String]
|
|
24
24
|
# @param [Hash] opts the optional parameters
|
|
25
25
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
@@ -29,7 +29,7 @@ module DaytonaApiClient
|
|
|
29
29
|
data
|
|
30
30
|
end
|
|
31
31
|
|
|
32
|
-
# Get Svix Consumer App Portal access for an organization
|
|
32
|
+
# Get Svix Consumer App Portal access URL for an organization
|
|
33
33
|
# @param organization_id [String]
|
|
34
34
|
# @param [Hash] opts the optional parameters
|
|
35
35
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
@@ -64,7 +64,7 @@ module DaytonaApiClient
|
|
|
64
64
|
return_type = opts[:debug_return_type] || 'WebhookAppPortalAccess'
|
|
65
65
|
|
|
66
66
|
# auth_names
|
|
67
|
-
auth_names = opts[:debug_auth_names] || ['bearer'
|
|
67
|
+
auth_names = opts[:debug_auth_names] || ['bearer']
|
|
68
68
|
|
|
69
69
|
new_options = opts.merge(
|
|
70
70
|
:operation => :"WebhooksApi.webhook_controller_get_app_portal_access",
|
|
@@ -128,7 +128,7 @@ module DaytonaApiClient
|
|
|
128
128
|
return_type = opts[:debug_return_type] || 'WebhookInitializationStatus'
|
|
129
129
|
|
|
130
130
|
# auth_names
|
|
131
|
-
auth_names = opts[:debug_auth_names] || ['bearer'
|
|
131
|
+
auth_names = opts[:debug_auth_names] || ['bearer']
|
|
132
132
|
|
|
133
133
|
new_options = opts.merge(
|
|
134
134
|
:operation => :"WebhooksApi.webhook_controller_get_initialization_status",
|
|
@@ -146,5 +146,268 @@ module DaytonaApiClient
|
|
|
146
146
|
end
|
|
147
147
|
return data, status_code, headers
|
|
148
148
|
end
|
|
149
|
+
|
|
150
|
+
# Get delivery attempts for a webhook message
|
|
151
|
+
# @param organization_id [String]
|
|
152
|
+
# @param message_id [String]
|
|
153
|
+
# @param [Hash] opts the optional parameters
|
|
154
|
+
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
155
|
+
# @return [Array<Object>]
|
|
156
|
+
def webhook_controller_get_message_attempts(organization_id, message_id, opts = {})
|
|
157
|
+
data, _status_code, _headers = webhook_controller_get_message_attempts_with_http_info(organization_id, message_id, opts)
|
|
158
|
+
data
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# Get delivery attempts for a webhook message
|
|
162
|
+
# @param organization_id [String]
|
|
163
|
+
# @param message_id [String]
|
|
164
|
+
# @param [Hash] opts the optional parameters
|
|
165
|
+
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
166
|
+
# @return [Array<(Array<Object>, Integer, Hash)>] Array<Object> data, response status code and response headers
|
|
167
|
+
def webhook_controller_get_message_attempts_with_http_info(organization_id, message_id, opts = {})
|
|
168
|
+
if @api_client.config.debugging
|
|
169
|
+
@api_client.config.logger.debug 'Calling API: WebhooksApi.webhook_controller_get_message_attempts ...'
|
|
170
|
+
end
|
|
171
|
+
# verify the required parameter 'organization_id' is set
|
|
172
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
|
173
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling WebhooksApi.webhook_controller_get_message_attempts"
|
|
174
|
+
end
|
|
175
|
+
# verify the required parameter 'message_id' is set
|
|
176
|
+
if @api_client.config.client_side_validation && message_id.nil?
|
|
177
|
+
fail ArgumentError, "Missing the required parameter 'message_id' when calling WebhooksApi.webhook_controller_get_message_attempts"
|
|
178
|
+
end
|
|
179
|
+
# resource path
|
|
180
|
+
local_var_path = '/webhooks/organizations/{organizationId}/messages/{messageId}/attempts'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s)).sub('{' + 'messageId' + '}', CGI.escape(message_id.to_s))
|
|
181
|
+
|
|
182
|
+
# query parameters
|
|
183
|
+
query_params = opts[:query_params] || {}
|
|
184
|
+
|
|
185
|
+
# header parameters
|
|
186
|
+
header_params = opts[:header_params] || {}
|
|
187
|
+
# HTTP header 'Accept' (if needed)
|
|
188
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
189
|
+
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
190
|
+
|
|
191
|
+
# form parameters
|
|
192
|
+
form_params = opts[:form_params] || {}
|
|
193
|
+
|
|
194
|
+
# http body (model)
|
|
195
|
+
post_body = opts[:debug_body]
|
|
196
|
+
|
|
197
|
+
# return_type
|
|
198
|
+
return_type = opts[:debug_return_type] || 'Array<Object>'
|
|
199
|
+
|
|
200
|
+
# auth_names
|
|
201
|
+
auth_names = opts[:debug_auth_names] || ['bearer']
|
|
202
|
+
|
|
203
|
+
new_options = opts.merge(
|
|
204
|
+
:operation => :"WebhooksApi.webhook_controller_get_message_attempts",
|
|
205
|
+
:header_params => header_params,
|
|
206
|
+
:query_params => query_params,
|
|
207
|
+
:form_params => form_params,
|
|
208
|
+
:body => post_body,
|
|
209
|
+
:auth_names => auth_names,
|
|
210
|
+
:return_type => return_type
|
|
211
|
+
)
|
|
212
|
+
|
|
213
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
214
|
+
if @api_client.config.debugging
|
|
215
|
+
@api_client.config.logger.debug "API called: WebhooksApi#webhook_controller_get_message_attempts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
216
|
+
end
|
|
217
|
+
return data, status_code, headers
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
# Get webhook service status
|
|
221
|
+
# @param [Hash] opts the optional parameters
|
|
222
|
+
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
223
|
+
# @return [WebhookControllerGetStatus200Response]
|
|
224
|
+
def webhook_controller_get_status(opts = {})
|
|
225
|
+
data, _status_code, _headers = webhook_controller_get_status_with_http_info(opts)
|
|
226
|
+
data
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
# Get webhook service status
|
|
230
|
+
# @param [Hash] opts the optional parameters
|
|
231
|
+
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
232
|
+
# @return [Array<(WebhookControllerGetStatus200Response, Integer, Hash)>] WebhookControllerGetStatus200Response data, response status code and response headers
|
|
233
|
+
def webhook_controller_get_status_with_http_info(opts = {})
|
|
234
|
+
if @api_client.config.debugging
|
|
235
|
+
@api_client.config.logger.debug 'Calling API: WebhooksApi.webhook_controller_get_status ...'
|
|
236
|
+
end
|
|
237
|
+
# resource path
|
|
238
|
+
local_var_path = '/webhooks/status'
|
|
239
|
+
|
|
240
|
+
# query parameters
|
|
241
|
+
query_params = opts[:query_params] || {}
|
|
242
|
+
|
|
243
|
+
# header parameters
|
|
244
|
+
header_params = opts[:header_params] || {}
|
|
245
|
+
# HTTP header 'Accept' (if needed)
|
|
246
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
247
|
+
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
248
|
+
|
|
249
|
+
# form parameters
|
|
250
|
+
form_params = opts[:form_params] || {}
|
|
251
|
+
|
|
252
|
+
# http body (model)
|
|
253
|
+
post_body = opts[:debug_body]
|
|
254
|
+
|
|
255
|
+
# return_type
|
|
256
|
+
return_type = opts[:debug_return_type] || 'WebhookControllerGetStatus200Response'
|
|
257
|
+
|
|
258
|
+
# auth_names
|
|
259
|
+
auth_names = opts[:debug_auth_names] || ['bearer']
|
|
260
|
+
|
|
261
|
+
new_options = opts.merge(
|
|
262
|
+
:operation => :"WebhooksApi.webhook_controller_get_status",
|
|
263
|
+
:header_params => header_params,
|
|
264
|
+
:query_params => query_params,
|
|
265
|
+
:form_params => form_params,
|
|
266
|
+
:body => post_body,
|
|
267
|
+
:auth_names => auth_names,
|
|
268
|
+
:return_type => return_type
|
|
269
|
+
)
|
|
270
|
+
|
|
271
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
272
|
+
if @api_client.config.debugging
|
|
273
|
+
@api_client.config.logger.debug "API called: WebhooksApi#webhook_controller_get_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
274
|
+
end
|
|
275
|
+
return data, status_code, headers
|
|
276
|
+
end
|
|
277
|
+
|
|
278
|
+
# Initialize webhooks for an organization
|
|
279
|
+
# @param organization_id [String]
|
|
280
|
+
# @param [Hash] opts the optional parameters
|
|
281
|
+
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
282
|
+
# @return [nil]
|
|
283
|
+
def webhook_controller_initialize_webhooks(organization_id, opts = {})
|
|
284
|
+
webhook_controller_initialize_webhooks_with_http_info(organization_id, opts)
|
|
285
|
+
nil
|
|
286
|
+
end
|
|
287
|
+
|
|
288
|
+
# Initialize webhooks for an organization
|
|
289
|
+
# @param organization_id [String]
|
|
290
|
+
# @param [Hash] opts the optional parameters
|
|
291
|
+
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
292
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
293
|
+
def webhook_controller_initialize_webhooks_with_http_info(organization_id, opts = {})
|
|
294
|
+
if @api_client.config.debugging
|
|
295
|
+
@api_client.config.logger.debug 'Calling API: WebhooksApi.webhook_controller_initialize_webhooks ...'
|
|
296
|
+
end
|
|
297
|
+
# verify the required parameter 'organization_id' is set
|
|
298
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
|
299
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling WebhooksApi.webhook_controller_initialize_webhooks"
|
|
300
|
+
end
|
|
301
|
+
# resource path
|
|
302
|
+
local_var_path = '/webhooks/organizations/{organizationId}/initialize'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
303
|
+
|
|
304
|
+
# query parameters
|
|
305
|
+
query_params = opts[:query_params] || {}
|
|
306
|
+
|
|
307
|
+
# header parameters
|
|
308
|
+
header_params = opts[:header_params] || {}
|
|
309
|
+
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
310
|
+
|
|
311
|
+
# form parameters
|
|
312
|
+
form_params = opts[:form_params] || {}
|
|
313
|
+
|
|
314
|
+
# http body (model)
|
|
315
|
+
post_body = opts[:debug_body]
|
|
316
|
+
|
|
317
|
+
# return_type
|
|
318
|
+
return_type = opts[:debug_return_type]
|
|
319
|
+
|
|
320
|
+
# auth_names
|
|
321
|
+
auth_names = opts[:debug_auth_names] || ['bearer']
|
|
322
|
+
|
|
323
|
+
new_options = opts.merge(
|
|
324
|
+
:operation => :"WebhooksApi.webhook_controller_initialize_webhooks",
|
|
325
|
+
:header_params => header_params,
|
|
326
|
+
:query_params => query_params,
|
|
327
|
+
:form_params => form_params,
|
|
328
|
+
:body => post_body,
|
|
329
|
+
:auth_names => auth_names,
|
|
330
|
+
:return_type => return_type
|
|
331
|
+
)
|
|
332
|
+
|
|
333
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
334
|
+
if @api_client.config.debugging
|
|
335
|
+
@api_client.config.logger.debug "API called: WebhooksApi#webhook_controller_initialize_webhooks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
336
|
+
end
|
|
337
|
+
return data, status_code, headers
|
|
338
|
+
end
|
|
339
|
+
|
|
340
|
+
# Send a webhook message to an organization
|
|
341
|
+
# @param organization_id [String]
|
|
342
|
+
# @param send_webhook_dto [SendWebhookDto]
|
|
343
|
+
# @param [Hash] opts the optional parameters
|
|
344
|
+
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
345
|
+
# @return [nil]
|
|
346
|
+
def webhook_controller_send_webhook(organization_id, send_webhook_dto, opts = {})
|
|
347
|
+
webhook_controller_send_webhook_with_http_info(organization_id, send_webhook_dto, opts)
|
|
348
|
+
nil
|
|
349
|
+
end
|
|
350
|
+
|
|
351
|
+
# Send a webhook message to an organization
|
|
352
|
+
# @param organization_id [String]
|
|
353
|
+
# @param send_webhook_dto [SendWebhookDto]
|
|
354
|
+
# @param [Hash] opts the optional parameters
|
|
355
|
+
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
356
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
357
|
+
def webhook_controller_send_webhook_with_http_info(organization_id, send_webhook_dto, opts = {})
|
|
358
|
+
if @api_client.config.debugging
|
|
359
|
+
@api_client.config.logger.debug 'Calling API: WebhooksApi.webhook_controller_send_webhook ...'
|
|
360
|
+
end
|
|
361
|
+
# verify the required parameter 'organization_id' is set
|
|
362
|
+
if @api_client.config.client_side_validation && organization_id.nil?
|
|
363
|
+
fail ArgumentError, "Missing the required parameter 'organization_id' when calling WebhooksApi.webhook_controller_send_webhook"
|
|
364
|
+
end
|
|
365
|
+
# verify the required parameter 'send_webhook_dto' is set
|
|
366
|
+
if @api_client.config.client_side_validation && send_webhook_dto.nil?
|
|
367
|
+
fail ArgumentError, "Missing the required parameter 'send_webhook_dto' when calling WebhooksApi.webhook_controller_send_webhook"
|
|
368
|
+
end
|
|
369
|
+
# resource path
|
|
370
|
+
local_var_path = '/webhooks/organizations/{organizationId}/send'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
371
|
+
|
|
372
|
+
# query parameters
|
|
373
|
+
query_params = opts[:query_params] || {}
|
|
374
|
+
|
|
375
|
+
# header parameters
|
|
376
|
+
header_params = opts[:header_params] || {}
|
|
377
|
+
# HTTP header 'Content-Type'
|
|
378
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
379
|
+
if !content_type.nil?
|
|
380
|
+
header_params['Content-Type'] = content_type
|
|
381
|
+
end
|
|
382
|
+
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
383
|
+
|
|
384
|
+
# form parameters
|
|
385
|
+
form_params = opts[:form_params] || {}
|
|
386
|
+
|
|
387
|
+
# http body (model)
|
|
388
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(send_webhook_dto)
|
|
389
|
+
|
|
390
|
+
# return_type
|
|
391
|
+
return_type = opts[:debug_return_type]
|
|
392
|
+
|
|
393
|
+
# auth_names
|
|
394
|
+
auth_names = opts[:debug_auth_names] || ['bearer']
|
|
395
|
+
|
|
396
|
+
new_options = opts.merge(
|
|
397
|
+
:operation => :"WebhooksApi.webhook_controller_send_webhook",
|
|
398
|
+
:header_params => header_params,
|
|
399
|
+
:query_params => query_params,
|
|
400
|
+
:form_params => form_params,
|
|
401
|
+
:body => post_body,
|
|
402
|
+
:auth_names => auth_names,
|
|
403
|
+
:return_type => return_type
|
|
404
|
+
)
|
|
405
|
+
|
|
406
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
407
|
+
if @api_client.config.debugging
|
|
408
|
+
@api_client.config.logger.debug "API called: WebhooksApi#webhook_controller_send_webhook\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
409
|
+
end
|
|
410
|
+
return data, status_code, headers
|
|
411
|
+
end
|
|
149
412
|
end
|
|
150
413
|
end
|
|
@@ -181,7 +181,7 @@ module DaytonaApiClient
|
|
|
181
181
|
# HTTP header 'Content-Type'
|
|
182
182
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
183
183
|
if !content_type.nil?
|
|
184
|
-
|
|
184
|
+
header_params['Content-Type'] = content_type
|
|
185
185
|
end
|
|
186
186
|
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
187
187
|
|
|
@@ -353,7 +353,7 @@ module DaytonaApiClient
|
|
|
353
353
|
# @param port [Float] Port number to get preview URL for
|
|
354
354
|
# @param [Hash] opts the optional parameters
|
|
355
355
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
356
|
-
# @return [
|
|
356
|
+
# @return [PortPreviewUrl]
|
|
357
357
|
def get_port_preview_url_workspace_deprecated(workspace_id, port, opts = {})
|
|
358
358
|
data, _status_code, _headers = get_port_preview_url_workspace_deprecated_with_http_info(workspace_id, port, opts)
|
|
359
359
|
data
|
|
@@ -364,7 +364,7 @@ module DaytonaApiClient
|
|
|
364
364
|
# @param port [Float] Port number to get preview URL for
|
|
365
365
|
# @param [Hash] opts the optional parameters
|
|
366
366
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
367
|
-
# @return [Array<(
|
|
367
|
+
# @return [Array<(PortPreviewUrl, Integer, Hash)>] PortPreviewUrl data, response status code and response headers
|
|
368
368
|
def get_port_preview_url_workspace_deprecated_with_http_info(workspace_id, port, opts = {})
|
|
369
369
|
if @api_client.config.debugging
|
|
370
370
|
@api_client.config.logger.debug 'Calling API: WorkspaceApi.get_port_preview_url_workspace_deprecated ...'
|
|
@@ -396,7 +396,7 @@ module DaytonaApiClient
|
|
|
396
396
|
post_body = opts[:debug_body]
|
|
397
397
|
|
|
398
398
|
# return_type
|
|
399
|
-
return_type = opts[:debug_return_type] || '
|
|
399
|
+
return_type = opts[:debug_return_type] || 'PortPreviewUrl'
|
|
400
400
|
|
|
401
401
|
# auth_names
|
|
402
402
|
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
@@ -591,7 +591,7 @@ module DaytonaApiClient
|
|
|
591
591
|
# HTTP header 'Content-Type'
|
|
592
592
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
593
593
|
if !content_type.nil?
|
|
594
|
-
|
|
594
|
+
header_params['Content-Type'] = content_type
|
|
595
595
|
end
|
|
596
596
|
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
597
597
|
|
|
@@ -32,7 +32,7 @@ module DaytonaApiClient
|
|
|
32
32
|
# @option config [Configuration] Configuration for initializing the object, default to Configuration.default
|
|
33
33
|
def initialize(config = Configuration.default)
|
|
34
34
|
@config = config
|
|
35
|
-
@user_agent = "
|
|
35
|
+
@user_agent = "OpenAPI-Generator/#{VERSION}/ruby"
|
|
36
36
|
@default_headers = {
|
|
37
37
|
'Content-Type' => 'application/json',
|
|
38
38
|
'User-Agent' => @user_agent
|
|
@@ -266,8 +266,7 @@ module DaytonaApiClient
|
|
|
266
266
|
end
|
|
267
267
|
|
|
268
268
|
def operation_server_settings
|
|
269
|
-
{
|
|
270
|
-
}
|
|
269
|
+
{}
|
|
271
270
|
end
|
|
272
271
|
|
|
273
272
|
# Returns URL based on server settings
|
|
@@ -303,7 +302,5 @@ module DaytonaApiClient
|
|
|
303
302
|
|
|
304
303
|
url
|
|
305
304
|
end
|
|
306
|
-
|
|
307
|
-
|
|
308
305
|
end
|
|
309
306
|
end
|