daytona_api_client 0.182.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 +2 -2
- data/lib/daytona_api_client/api/audit_api.rb +140 -10
- data/lib/daytona_api_client/api/config_api.rb +1 -1
- data/lib/daytona_api_client/api/docker_registry_api.rb +67 -6
- data/lib/daytona_api_client/api/health_api.rb +3 -54
- data/lib/daytona_api_client/api/object_storage_api.rb +1 -1
- data/lib/daytona_api_client/api/organizations_api.rb +155 -1075
- data/lib/daytona_api_client/api/preview_api.rb +8 -77
- data/lib/daytona_api_client/api/runners_api.rb +22 -412
- data/lib/daytona_api_client/api/sandbox_api.rb +307 -1729
- data/lib/daytona_api_client/api/snapshots_api.rb +113 -39
- data/lib/daytona_api_client/api/toolbox_api.rb +741 -741
- data/lib/daytona_api_client/api/users_api.rb +239 -2
- data/lib/daytona_api_client/api/volumes_api.rb +2 -2
- data/lib/daytona_api_client/api/webhooks_api.rb +164 -27
- data/lib/daytona_api_client/api/workspace_api.rb +955 -0
- data/lib/daytona_api_client/api_client.rb +4 -8
- data/lib/daytona_api_client/api_error.rb +1 -1
- data/lib/daytona_api_client/configuration.rb +2 -5
- data/lib/daytona_api_client/models/account_provider.rb +74 -3
- data/lib/daytona_api_client/models/announcement.rb +74 -3
- data/lib/daytona_api_client/models/api_key_list.rb +74 -3
- data/lib/daytona_api_client/models/api_key_response.rb +74 -3
- data/lib/daytona_api_client/models/audit_log.rb +75 -22
- data/lib/daytona_api_client/models/build_info.rb +78 -34
- data/lib/daytona_api_client/models/command.rb +74 -3
- data/lib/daytona_api_client/models/completion_context.rb +74 -3
- data/lib/daytona_api_client/models/completion_item.rb +74 -3
- data/lib/daytona_api_client/models/completion_list.rb +74 -3
- data/lib/daytona_api_client/models/compressed_screenshot_response.rb +74 -3
- data/lib/daytona_api_client/models/computer_use_start_response.rb +74 -3
- data/lib/daytona_api_client/models/computer_use_status_response.rb +76 -5
- data/lib/daytona_api_client/models/computer_use_stop_response.rb +74 -3
- data/lib/daytona_api_client/models/create_api_key.rb +75 -4
- data/lib/daytona_api_client/models/create_audit_log.rb +350 -0
- data/lib/daytona_api_client/models/create_build_info.rb +74 -3
- data/lib/daytona_api_client/models/create_docker_registry.rb +139 -7
- data/lib/daytona_api_client/models/create_linked_account.rb +74 -3
- data/lib/daytona_api_client/models/create_organization.rb +78 -34
- data/lib/daytona_api_client/models/create_organization_invitation.rb +76 -5
- data/lib/daytona_api_client/models/create_organization_quota.rb +74 -3
- data/lib/daytona_api_client/models/create_organization_role.rb +74 -3
- data/lib/daytona_api_client/models/create_runner.rb +386 -43
- data/lib/daytona_api_client/models/create_sandbox.rb +77 -16
- data/lib/daytona_api_client/models/create_session_request.rb +74 -3
- data/lib/daytona_api_client/models/create_snapshot.rb +88 -17
- data/lib/daytona_api_client/models/create_user.rb +77 -15
- data/lib/daytona_api_client/models/create_volume.rb +74 -3
- data/lib/daytona_api_client/models/create_workspace.rb +411 -0
- data/lib/daytona_api_client/models/daytona_configuration.rb +78 -54
- data/lib/daytona_api_client/models/display_info_response.rb +74 -3
- data/lib/daytona_api_client/models/docker_registry.rb +76 -5
- data/lib/daytona_api_client/models/download_files.rb +74 -3
- data/lib/daytona_api_client/models/execute_request.rb +74 -3
- data/lib/daytona_api_client/models/execute_response.rb +74 -3
- data/lib/daytona_api_client/models/file_info.rb +74 -3
- data/lib/daytona_api_client/models/file_status.rb +74 -3
- data/lib/daytona_api_client/models/git_add_request.rb +74 -3
- data/lib/daytona_api_client/models/git_branch_request.rb +74 -3
- data/lib/daytona_api_client/models/git_checkout_request.rb +74 -3
- data/lib/daytona_api_client/models/git_clone_request.rb +74 -3
- data/lib/daytona_api_client/models/git_commit_info.rb +74 -3
- data/lib/daytona_api_client/models/git_commit_request.rb +74 -3
- data/lib/daytona_api_client/models/git_commit_response.rb +74 -3
- data/lib/daytona_api_client/models/git_delete_branch_request.rb +74 -3
- data/lib/daytona_api_client/models/git_repo_request.rb +74 -3
- data/lib/daytona_api_client/models/git_status.rb +74 -3
- data/lib/daytona_api_client/models/health_controller_check200_response.rb +74 -3
- data/lib/daytona_api_client/models/health_controller_check200_response_info_value.rb +74 -3
- data/lib/daytona_api_client/models/health_controller_check503_response.rb +74 -3
- data/lib/daytona_api_client/models/keyboard_hotkey_request.rb +74 -3
- data/lib/daytona_api_client/models/keyboard_press_request.rb +74 -3
- data/lib/daytona_api_client/models/keyboard_type_request.rb +74 -3
- data/lib/daytona_api_client/models/list_branch_response.rb +74 -3
- data/lib/daytona_api_client/models/lsp_completion_params.rb +74 -3
- data/lib/daytona_api_client/models/lsp_document_request.rb +74 -3
- data/lib/daytona_api_client/models/lsp_location.rb +74 -3
- data/lib/daytona_api_client/models/lsp_server_request.rb +74 -3
- data/lib/daytona_api_client/models/lsp_symbol.rb +74 -3
- data/lib/daytona_api_client/models/match.rb +74 -3
- data/lib/daytona_api_client/models/mouse_click_request.rb +74 -3
- data/lib/daytona_api_client/models/mouse_click_response.rb +74 -3
- data/lib/daytona_api_client/models/mouse_drag_request.rb +74 -3
- data/lib/daytona_api_client/models/mouse_drag_response.rb +74 -3
- data/lib/daytona_api_client/models/mouse_move_request.rb +74 -3
- data/lib/daytona_api_client/models/mouse_move_response.rb +74 -3
- data/lib/daytona_api_client/models/mouse_position.rb +74 -3
- data/lib/daytona_api_client/models/mouse_scroll_request.rb +74 -3
- data/lib/daytona_api_client/models/mouse_scroll_response.rb +74 -3
- data/lib/daytona_api_client/models/oidc_config.rb +74 -3
- data/lib/daytona_api_client/models/organization.rb +159 -162
- data/lib/daytona_api_client/models/organization_invitation.rb +78 -7
- data/lib/daytona_api_client/models/organization_role.rb +74 -3
- data/lib/daytona_api_client/models/organization_sandbox_default_limited_network_egress.rb +74 -3
- data/lib/daytona_api_client/models/organization_suspension.rb +79 -10
- data/lib/daytona_api_client/models/organization_usage_overview.rb +220 -21
- data/lib/daytona_api_client/models/organization_user.rb +76 -5
- data/lib/daytona_api_client/models/paginated_audit_logs.rb +78 -17
- data/lib/daytona_api_client/models/{paginated_sandboxes_deprecated.rb → paginated_sandboxes.rb} +76 -5
- data/lib/daytona_api_client/models/paginated_snapshots.rb +74 -3
- data/lib/daytona_api_client/models/{paginated_jobs.rb → paginated_snapshots_dto.rb} +77 -6
- data/lib/daytona_api_client/models/port_preview_url.rb +88 -34
- data/lib/daytona_api_client/models/position.rb +74 -3
- data/lib/daytona_api_client/models/posthog_config.rb +74 -3
- data/lib/daytona_api_client/models/process_errors_response.rb +74 -3
- data/lib/daytona_api_client/models/process_logs_response.rb +74 -3
- data/lib/daytona_api_client/models/process_restart_response.rb +74 -3
- data/lib/daytona_api_client/models/process_status_response.rb +74 -3
- data/lib/daytona_api_client/models/project_dir_response.rb +74 -3
- data/lib/daytona_api_client/models/pty_create_request.rb +74 -3
- data/lib/daytona_api_client/models/pty_create_response.rb +74 -3
- data/lib/daytona_api_client/models/pty_list_response.rb +74 -3
- data/lib/daytona_api_client/models/pty_resize_request.rb +74 -3
- data/lib/daytona_api_client/models/pty_session_info.rb +74 -3
- data/lib/daytona_api_client/models/range.rb +74 -3
- data/lib/daytona_api_client/models/region.rb +78 -181
- data/lib/daytona_api_client/models/region_screenshot_response.rb +74 -3
- data/lib/daytona_api_client/models/registry_push_access_dto.rb +74 -3
- data/lib/daytona_api_client/models/replace_request.rb +74 -3
- data/lib/daytona_api_client/models/replace_result.rb +74 -3
- data/lib/daytona_api_client/models/runner.rb +191 -138
- data/lib/daytona_api_client/models/runner_snapshot_dto.rb +91 -3
- data/lib/daytona_api_client/models/runner_state.rb +3 -4
- data/lib/daytona_api_client/models/sandbox.rb +92 -95
- data/lib/daytona_api_client/models/sandbox_class.rb +3 -4
- data/lib/daytona_api_client/models/sandbox_desired_state.rb +3 -4
- data/lib/daytona_api_client/models/{create_region.rb → sandbox_info.rb} +113 -38
- data/lib/daytona_api_client/models/sandbox_labels.rb +74 -3
- data/lib/daytona_api_client/models/sandbox_state.rb +3 -7
- data/lib/daytona_api_client/models/sandbox_volume.rb +78 -17
- data/lib/daytona_api_client/models/screenshot_response.rb +74 -3
- data/lib/daytona_api_client/models/search_files_response.rb +74 -3
- data/lib/daytona_api_client/models/send_webhook_dto.rb +75 -26
- data/lib/daytona_api_client/models/session.rb +74 -3
- data/lib/daytona_api_client/models/session_execute_request.rb +74 -3
- data/lib/daytona_api_client/models/session_execute_response.rb +74 -3
- data/lib/daytona_api_client/models/set_snapshot_general_status_dto.rb +74 -3
- data/lib/daytona_api_client/models/snapshot_dto.rb +78 -39
- data/lib/daytona_api_client/models/snapshot_state.rb +6 -4
- data/lib/daytona_api_client/models/ssh_access_dto.rb +78 -34
- data/lib/daytona_api_client/models/ssh_access_validation_dto.rb +98 -7
- data/lib/daytona_api_client/models/storage_access_dto.rb +74 -3
- data/lib/daytona_api_client/models/update_docker_registry.rb +74 -3
- data/lib/daytona_api_client/models/update_organization_invitation.rb +76 -5
- data/lib/daytona_api_client/models/update_organization_member_access.rb +76 -5
- data/lib/daytona_api_client/models/update_organization_quota.rb +115 -93
- data/lib/daytona_api_client/models/update_organization_role.rb +74 -3
- data/lib/daytona_api_client/models/update_sandbox_state_dto.rb +80 -29
- data/lib/daytona_api_client/models/user.rb +74 -3
- data/lib/daytona_api_client/models/user_home_dir_response.rb +74 -3
- data/lib/daytona_api_client/models/user_public_key.rb +74 -3
- data/lib/daytona_api_client/models/volume_dto.rb +74 -3
- data/lib/daytona_api_client/models/volume_state.rb +3 -4
- data/lib/daytona_api_client/models/webhook_app_portal_access.rb +75 -31
- data/lib/daytona_api_client/models/{admin_get_webhook_status200_response.rb → webhook_controller_get_status200_response.rb} +76 -5
- data/lib/daytona_api_client/models/webhook_initialization_status.rb +74 -3
- data/lib/daytona_api_client/models/windows_response.rb +74 -3
- data/lib/daytona_api_client/models/work_dir_response.rb +74 -3
- data/lib/daytona_api_client/models/{sandbox_list_item.rb → workspace.rb} +344 -170
- data/lib/daytona_api_client/version.rb +2 -2
- data/lib/daytona_api_client.rb +8 -53
- data/project.json +11 -42
- metadata +11 -60
- data/.gitignore +0 -39
- data/.openapi-generator/FILES +0 -210
- 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/api_model_base.rb +0 -88
- data/lib/daytona_api_client/models/admin_create_runner.rb +0 -326
- data/lib/daytona_api_client/models/create_region_response.rb +0 -209
- data/lib/daytona_api_client/models/create_runner_response.rb +0 -192
- data/lib/daytona_api_client/models/create_sandbox_snapshot.rb +0 -165
- data/lib/daytona_api_client/models/fork_sandbox.rb +0 -148
- data/lib/daytona_api_client/models/job.rb +0 -366
- data/lib/daytona_api_client/models/job_status.rb +0 -43
- data/lib/daytona_api_client/models/job_type.rb +0 -53
- data/lib/daytona_api_client/models/list_sandboxes_response.rb +0 -180
- data/lib/daytona_api_client/models/log_entry.rb +0 -334
- data/lib/daytona_api_client/models/metric_data_point.rb +0 -192
- data/lib/daytona_api_client/models/metric_series.rb +0 -194
- data/lib/daytona_api_client/models/metrics_response.rb +0 -167
- data/lib/daytona_api_client/models/otel_config.rb +0 -178
- data/lib/daytona_api_client/models/paginated_logs.rb +0 -248
- data/lib/daytona_api_client/models/paginated_traces.rb +0 -248
- data/lib/daytona_api_client/models/poll_jobs_response.rb +0 -167
- data/lib/daytona_api_client/models/rate_limit_config.rb +0 -178
- data/lib/daytona_api_client/models/rate_limit_entry.rb +0 -158
- data/lib/daytona_api_client/models/regenerate_api_key_response.rb +0 -165
- data/lib/daytona_api_client/models/region_quota.rb +0 -378
- data/lib/daytona_api_client/models/region_type.rb +0 -42
- data/lib/daytona_api_client/models/region_usage_overview.rb +0 -456
- data/lib/daytona_api_client/models/resize_sandbox.rb +0 -225
- data/lib/daytona_api_client/models/runner_class.rb +0 -41
- data/lib/daytona_api_client/models/runner_full.rb +0 -764
- data/lib/daytona_api_client/models/runner_health_metrics.rb +0 -482
- data/lib/daytona_api_client/models/runner_healthcheck.rb +0 -217
- data/lib/daytona_api_client/models/runner_service_health.rb +0 -202
- data/lib/daytona_api_client/models/sandbox_list_sort_direction.rb +0 -41
- data/lib/daytona_api_client/models/sandbox_list_sort_field.rb +0 -45
- data/lib/daytona_api_client/models/signed_port_preview_url.rb +0 -246
- data/lib/daytona_api_client/models/snapshot_manager_credentials.rb +0 -192
- data/lib/daytona_api_client/models/toolbox_proxy_url.rb +0 -165
- data/lib/daytona_api_client/models/trace_span.rb +0 -332
- data/lib/daytona_api_client/models/trace_summary.rb +0 -310
- data/lib/daytona_api_client/models/update_job_status.rb +0 -207
- data/lib/daytona_api_client/models/update_organization_default_region.rb +0 -165
- data/lib/daytona_api_client/models/update_organization_region_quota.rb +0 -256
- data/lib/daytona_api_client/models/update_region.rb +0 -171
- data/lib/daytona_api_client/models/update_sandbox_network_settings.rb +0 -158
- data/lib/daytona_api_client/models/url.rb +0 -165
- 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.
|
|
9
|
+
Generator version: 7.12.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -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]
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 1.0
|
|
7
7
|
Contact: support@daytona.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.12.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -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
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 1.0
|
|
7
7
|
Contact: support@daytona.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.12.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -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",
|
|
@@ -147,21 +147,149 @@ module DaytonaApiClient
|
|
|
147
147
|
return data, status_code, headers
|
|
148
148
|
end
|
|
149
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
|
+
|
|
150
278
|
# Initialize webhooks for an organization
|
|
151
|
-
# @param organization_id [String]
|
|
279
|
+
# @param organization_id [String]
|
|
152
280
|
# @param [Hash] opts the optional parameters
|
|
153
281
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
154
|
-
# @return [
|
|
282
|
+
# @return [nil]
|
|
155
283
|
def webhook_controller_initialize_webhooks(organization_id, opts = {})
|
|
156
|
-
|
|
157
|
-
|
|
284
|
+
webhook_controller_initialize_webhooks_with_http_info(organization_id, opts)
|
|
285
|
+
nil
|
|
158
286
|
end
|
|
159
287
|
|
|
160
288
|
# Initialize webhooks for an organization
|
|
161
|
-
# @param organization_id [String]
|
|
289
|
+
# @param organization_id [String]
|
|
162
290
|
# @param [Hash] opts the optional parameters
|
|
163
291
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
164
|
-
# @return [Array<(
|
|
292
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
165
293
|
def webhook_controller_initialize_webhooks_with_http_info(organization_id, opts = {})
|
|
166
294
|
if @api_client.config.debugging
|
|
167
295
|
@api_client.config.logger.debug 'Calling API: WebhooksApi.webhook_controller_initialize_webhooks ...'
|
|
@@ -178,8 +306,6 @@ module DaytonaApiClient
|
|
|
178
306
|
|
|
179
307
|
# header parameters
|
|
180
308
|
header_params = opts[:header_params] || {}
|
|
181
|
-
# HTTP header 'Accept' (if needed)
|
|
182
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
183
309
|
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
184
310
|
|
|
185
311
|
# form parameters
|
|
@@ -189,10 +315,10 @@ module DaytonaApiClient
|
|
|
189
315
|
post_body = opts[:debug_body]
|
|
190
316
|
|
|
191
317
|
# return_type
|
|
192
|
-
return_type = opts[:debug_return_type]
|
|
318
|
+
return_type = opts[:debug_return_type]
|
|
193
319
|
|
|
194
320
|
# auth_names
|
|
195
|
-
auth_names = opts[:debug_auth_names] || ['bearer'
|
|
321
|
+
auth_names = opts[:debug_auth_names] || ['bearer']
|
|
196
322
|
|
|
197
323
|
new_options = opts.merge(
|
|
198
324
|
:operation => :"WebhooksApi.webhook_controller_initialize_webhooks",
|
|
@@ -211,53 +337,64 @@ module DaytonaApiClient
|
|
|
211
337
|
return data, status_code, headers
|
|
212
338
|
end
|
|
213
339
|
|
|
214
|
-
#
|
|
340
|
+
# Send a webhook message to an organization
|
|
215
341
|
# @param organization_id [String]
|
|
342
|
+
# @param send_webhook_dto [SendWebhookDto]
|
|
216
343
|
# @param [Hash] opts the optional parameters
|
|
217
344
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
218
345
|
# @return [nil]
|
|
219
|
-
def
|
|
220
|
-
|
|
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)
|
|
221
348
|
nil
|
|
222
349
|
end
|
|
223
350
|
|
|
224
|
-
#
|
|
351
|
+
# Send a webhook message to an organization
|
|
225
352
|
# @param organization_id [String]
|
|
353
|
+
# @param send_webhook_dto [SendWebhookDto]
|
|
226
354
|
# @param [Hash] opts the optional parameters
|
|
227
355
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
228
356
|
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
229
|
-
def
|
|
357
|
+
def webhook_controller_send_webhook_with_http_info(organization_id, send_webhook_dto, opts = {})
|
|
230
358
|
if @api_client.config.debugging
|
|
231
|
-
@api_client.config.logger.debug 'Calling API: WebhooksApi.
|
|
359
|
+
@api_client.config.logger.debug 'Calling API: WebhooksApi.webhook_controller_send_webhook ...'
|
|
232
360
|
end
|
|
233
361
|
# verify the required parameter 'organization_id' is set
|
|
234
362
|
if @api_client.config.client_side_validation && organization_id.nil?
|
|
235
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling WebhooksApi.
|
|
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"
|
|
236
368
|
end
|
|
237
369
|
# resource path
|
|
238
|
-
local_var_path = '/webhooks/organizations/{organizationId}/
|
|
370
|
+
local_var_path = '/webhooks/organizations/{organizationId}/send'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
239
371
|
|
|
240
372
|
# query parameters
|
|
241
373
|
query_params = opts[:query_params] || {}
|
|
242
374
|
|
|
243
375
|
# header parameters
|
|
244
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
|
|
245
382
|
header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
|
|
246
383
|
|
|
247
384
|
# form parameters
|
|
248
385
|
form_params = opts[:form_params] || {}
|
|
249
386
|
|
|
250
387
|
# http body (model)
|
|
251
|
-
post_body = opts[:debug_body]
|
|
388
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(send_webhook_dto)
|
|
252
389
|
|
|
253
390
|
# return_type
|
|
254
391
|
return_type = opts[:debug_return_type]
|
|
255
392
|
|
|
256
393
|
# auth_names
|
|
257
|
-
auth_names = opts[:debug_auth_names] || ['bearer'
|
|
394
|
+
auth_names = opts[:debug_auth_names] || ['bearer']
|
|
258
395
|
|
|
259
396
|
new_options = opts.merge(
|
|
260
|
-
:operation => :"WebhooksApi.
|
|
397
|
+
:operation => :"WebhooksApi.webhook_controller_send_webhook",
|
|
261
398
|
:header_params => header_params,
|
|
262
399
|
:query_params => query_params,
|
|
263
400
|
:form_params => form_params,
|
|
@@ -268,7 +405,7 @@ module DaytonaApiClient
|
|
|
268
405
|
|
|
269
406
|
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
270
407
|
if @api_client.config.debugging
|
|
271
|
-
@api_client.config.logger.debug "API called: WebhooksApi#
|
|
408
|
+
@api_client.config.logger.debug "API called: WebhooksApi#webhook_controller_send_webhook\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
272
409
|
end
|
|
273
410
|
return data, status_code, headers
|
|
274
411
|
end
|