daytona_api_client 0.168.0 → 0.170.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/.openapi-generator/FILES +2 -0
- data/.openapi-generator/VERSION +1 -1
- data/lib/daytona_api_client/api/admin_api.rb +1 -1
- data/lib/daytona_api_client/api/api_keys_api.rb +1 -1
- data/lib/daytona_api_client/api/audit_api.rb +1 -1
- data/lib/daytona_api_client/api/config_api.rb +1 -1
- data/lib/daytona_api_client/api/docker_registry_api.rb +1 -1
- data/lib/daytona_api_client/api/health_api.rb +1 -1
- data/lib/daytona_api_client/api/jobs_api.rb +1 -1
- data/lib/daytona_api_client/api/object_storage_api.rb +1 -1
- data/lib/daytona_api_client/api/organizations_api.rb +1 -1
- data/lib/daytona_api_client/api/preview_api.rb +1 -1
- data/lib/daytona_api_client/api/regions_api.rb +1 -1
- data/lib/daytona_api_client/api/runners_api.rb +1 -1
- data/lib/daytona_api_client/api/sandbox_api.rb +81 -4
- data/lib/daytona_api_client/api/snapshots_api.rb +3 -3
- data/lib/daytona_api_client/api/toolbox_api.rb +1 -1
- data/lib/daytona_api_client/api/users_api.rb +1 -1
- data/lib/daytona_api_client/api/volumes_api.rb +1 -1
- data/lib/daytona_api_client/api/webhooks_api.rb +1 -1
- data/lib/daytona_api_client/api/workspace_api.rb +1 -1
- data/lib/daytona_api_client/api_client.rb +7 -3
- data/lib/daytona_api_client/api_error.rb +1 -1
- data/lib/daytona_api_client/api_model_base.rb +88 -0
- data/lib/daytona_api_client/configuration.rb +1 -1
- data/lib/daytona_api_client/models/account_provider.rb +2 -75
- data/lib/daytona_api_client/models/admin_create_runner.rb +2 -75
- data/lib/daytona_api_client/models/admin_get_webhook_status200_response.rb +2 -75
- data/lib/daytona_api_client/models/announcement.rb +2 -75
- data/lib/daytona_api_client/models/api_key_list.rb +2 -75
- data/lib/daytona_api_client/models/api_key_response.rb +2 -75
- data/lib/daytona_api_client/models/audit_log.rb +2 -75
- data/lib/daytona_api_client/models/build_info.rb +2 -75
- data/lib/daytona_api_client/models/command.rb +2 -75
- data/lib/daytona_api_client/models/completion_context.rb +2 -75
- data/lib/daytona_api_client/models/completion_item.rb +2 -75
- data/lib/daytona_api_client/models/completion_list.rb +2 -75
- data/lib/daytona_api_client/models/compressed_screenshot_response.rb +2 -75
- data/lib/daytona_api_client/models/computer_use_start_response.rb +2 -75
- data/lib/daytona_api_client/models/computer_use_status_response.rb +4 -77
- data/lib/daytona_api_client/models/computer_use_stop_response.rb +2 -75
- data/lib/daytona_api_client/models/create_api_key.rb +2 -75
- data/lib/daytona_api_client/models/create_build_info.rb +2 -75
- data/lib/daytona_api_client/models/create_docker_registry.rb +2 -75
- data/lib/daytona_api_client/models/create_linked_account.rb +2 -75
- data/lib/daytona_api_client/models/create_organization.rb +2 -75
- data/lib/daytona_api_client/models/create_organization_invitation.rb +4 -77
- data/lib/daytona_api_client/models/create_organization_quota.rb +2 -75
- data/lib/daytona_api_client/models/create_organization_role.rb +2 -75
- data/lib/daytona_api_client/models/create_region.rb +2 -75
- data/lib/daytona_api_client/models/create_region_response.rb +2 -75
- data/lib/daytona_api_client/models/create_runner.rb +2 -75
- data/lib/daytona_api_client/models/create_runner_response.rb +2 -75
- data/lib/daytona_api_client/models/create_sandbox.rb +4 -77
- data/lib/daytona_api_client/models/create_sandbox_snapshot.rb +2 -75
- data/lib/daytona_api_client/models/create_session_request.rb +2 -75
- data/lib/daytona_api_client/models/create_snapshot.rb +2 -75
- data/lib/daytona_api_client/models/create_user.rb +4 -77
- data/lib/daytona_api_client/models/create_volume.rb +2 -75
- data/lib/daytona_api_client/models/create_workspace.rb +6 -79
- data/lib/daytona_api_client/models/daytona_configuration.rb +2 -75
- data/lib/daytona_api_client/models/display_info_response.rb +2 -75
- data/lib/daytona_api_client/models/docker_registry.rb +4 -77
- data/lib/daytona_api_client/models/download_files.rb +2 -75
- data/lib/daytona_api_client/models/execute_request.rb +2 -75
- data/lib/daytona_api_client/models/execute_response.rb +2 -75
- data/lib/daytona_api_client/models/file_info.rb +2 -75
- data/lib/daytona_api_client/models/file_status.rb +2 -75
- data/lib/daytona_api_client/models/fork_sandbox.rb +2 -75
- data/lib/daytona_api_client/models/git_add_request.rb +2 -75
- data/lib/daytona_api_client/models/git_branch_request.rb +2 -75
- data/lib/daytona_api_client/models/git_checkout_request.rb +2 -75
- data/lib/daytona_api_client/models/git_clone_request.rb +2 -75
- data/lib/daytona_api_client/models/git_commit_info.rb +2 -75
- data/lib/daytona_api_client/models/git_commit_request.rb +2 -75
- data/lib/daytona_api_client/models/git_commit_response.rb +2 -75
- data/lib/daytona_api_client/models/git_delete_branch_request.rb +2 -75
- data/lib/daytona_api_client/models/git_repo_request.rb +2 -75
- data/lib/daytona_api_client/models/git_status.rb +2 -75
- data/lib/daytona_api_client/models/health_controller_check200_response.rb +2 -75
- data/lib/daytona_api_client/models/health_controller_check200_response_info_value.rb +2 -75
- data/lib/daytona_api_client/models/health_controller_check503_response.rb +2 -75
- data/lib/daytona_api_client/models/job.rb +4 -77
- data/lib/daytona_api_client/models/job_status.rb +4 -3
- data/lib/daytona_api_client/models/job_type.rb +4 -3
- data/lib/daytona_api_client/models/keyboard_hotkey_request.rb +2 -75
- data/lib/daytona_api_client/models/keyboard_press_request.rb +2 -75
- data/lib/daytona_api_client/models/keyboard_type_request.rb +2 -75
- data/lib/daytona_api_client/models/list_branch_response.rb +2 -75
- data/lib/daytona_api_client/models/log_entry.rb +2 -75
- data/lib/daytona_api_client/models/lsp_completion_params.rb +2 -75
- data/lib/daytona_api_client/models/lsp_document_request.rb +2 -75
- data/lib/daytona_api_client/models/lsp_location.rb +2 -75
- data/lib/daytona_api_client/models/lsp_server_request.rb +2 -75
- data/lib/daytona_api_client/models/lsp_symbol.rb +2 -75
- data/lib/daytona_api_client/models/match.rb +2 -75
- data/lib/daytona_api_client/models/metric_data_point.rb +2 -75
- data/lib/daytona_api_client/models/metric_series.rb +2 -75
- data/lib/daytona_api_client/models/metrics_response.rb +2 -75
- data/lib/daytona_api_client/models/mouse_click_request.rb +2 -75
- data/lib/daytona_api_client/models/mouse_click_response.rb +2 -75
- data/lib/daytona_api_client/models/mouse_drag_request.rb +2 -75
- data/lib/daytona_api_client/models/mouse_drag_response.rb +2 -75
- data/lib/daytona_api_client/models/mouse_move_request.rb +2 -75
- data/lib/daytona_api_client/models/mouse_move_response.rb +2 -75
- data/lib/daytona_api_client/models/mouse_position.rb +2 -75
- data/lib/daytona_api_client/models/mouse_scroll_request.rb +2 -75
- data/lib/daytona_api_client/models/mouse_scroll_response.rb +2 -75
- data/lib/daytona_api_client/models/oidc_config.rb +2 -75
- data/lib/daytona_api_client/models/organization.rb +2 -75
- data/lib/daytona_api_client/models/organization_invitation.rb +6 -79
- data/lib/daytona_api_client/models/organization_role.rb +2 -75
- data/lib/daytona_api_client/models/organization_sandbox_default_limited_network_egress.rb +2 -75
- data/lib/daytona_api_client/models/organization_suspension.rb +2 -75
- data/lib/daytona_api_client/models/organization_usage_overview.rb +2 -75
- data/lib/daytona_api_client/models/organization_user.rb +4 -77
- data/lib/daytona_api_client/models/otel_config.rb +2 -75
- data/lib/daytona_api_client/models/paginated_audit_logs.rb +2 -75
- data/lib/daytona_api_client/models/paginated_jobs.rb +2 -75
- data/lib/daytona_api_client/models/paginated_logs.rb +2 -75
- data/lib/daytona_api_client/models/paginated_sandboxes.rb +2 -75
- data/lib/daytona_api_client/models/paginated_snapshots.rb +2 -75
- data/lib/daytona_api_client/models/paginated_traces.rb +2 -75
- data/lib/daytona_api_client/models/poll_jobs_response.rb +2 -75
- data/lib/daytona_api_client/models/port_preview_url.rb +2 -75
- data/lib/daytona_api_client/models/position.rb +2 -75
- data/lib/daytona_api_client/models/posthog_config.rb +2 -75
- data/lib/daytona_api_client/models/process_errors_response.rb +2 -75
- data/lib/daytona_api_client/models/process_logs_response.rb +2 -75
- data/lib/daytona_api_client/models/process_restart_response.rb +2 -75
- data/lib/daytona_api_client/models/process_status_response.rb +2 -75
- data/lib/daytona_api_client/models/project_dir_response.rb +2 -75
- data/lib/daytona_api_client/models/pty_create_request.rb +2 -75
- data/lib/daytona_api_client/models/pty_create_response.rb +2 -75
- data/lib/daytona_api_client/models/pty_list_response.rb +2 -75
- data/lib/daytona_api_client/models/pty_resize_request.rb +2 -75
- data/lib/daytona_api_client/models/pty_session_info.rb +2 -75
- data/lib/daytona_api_client/models/range.rb +2 -75
- data/lib/daytona_api_client/models/rate_limit_config.rb +2 -75
- data/lib/daytona_api_client/models/rate_limit_entry.rb +2 -75
- data/lib/daytona_api_client/models/regenerate_api_key_response.rb +2 -75
- data/lib/daytona_api_client/models/region.rb +2 -75
- data/lib/daytona_api_client/models/region_quota.rb +2 -75
- data/lib/daytona_api_client/models/region_screenshot_response.rb +2 -75
- data/lib/daytona_api_client/models/region_type.rb +4 -3
- data/lib/daytona_api_client/models/region_usage_overview.rb +2 -75
- data/lib/daytona_api_client/models/registry_push_access_dto.rb +2 -75
- data/lib/daytona_api_client/models/replace_request.rb +2 -75
- data/lib/daytona_api_client/models/replace_result.rb +2 -75
- data/lib/daytona_api_client/models/resize_sandbox.rb +2 -75
- data/lib/daytona_api_client/models/runner.rb +2 -75
- data/lib/daytona_api_client/models/runner_class.rb +4 -3
- data/lib/daytona_api_client/models/runner_full.rb +2 -75
- data/lib/daytona_api_client/models/runner_health_metrics.rb +2 -75
- data/lib/daytona_api_client/models/runner_healthcheck.rb +2 -75
- data/lib/daytona_api_client/models/runner_service_health.rb +2 -75
- data/lib/daytona_api_client/models/runner_snapshot_dto.rb +2 -75
- data/lib/daytona_api_client/models/runner_state.rb +4 -3
- data/lib/daytona_api_client/models/sandbox.rb +6 -79
- data/lib/daytona_api_client/models/sandbox_class.rb +4 -3
- data/lib/daytona_api_client/models/sandbox_desired_state.rb +4 -3
- data/lib/daytona_api_client/models/sandbox_info.rb +2 -75
- data/lib/daytona_api_client/models/sandbox_labels.rb +2 -75
- data/lib/daytona_api_client/models/sandbox_state.rb +4 -3
- data/lib/daytona_api_client/models/sandbox_volume.rb +2 -75
- data/lib/daytona_api_client/models/screenshot_response.rb +2 -75
- data/lib/daytona_api_client/models/search_files_response.rb +2 -75
- data/lib/daytona_api_client/models/send_webhook_dto.rb +2 -75
- data/lib/daytona_api_client/models/session.rb +2 -75
- data/lib/daytona_api_client/models/session_execute_request.rb +2 -75
- data/lib/daytona_api_client/models/session_execute_response.rb +2 -75
- data/lib/daytona_api_client/models/set_snapshot_general_status_dto.rb +2 -75
- data/lib/daytona_api_client/models/signed_port_preview_url.rb +2 -75
- data/lib/daytona_api_client/models/snapshot_dto.rb +2 -75
- data/lib/daytona_api_client/models/snapshot_manager_credentials.rb +2 -75
- data/lib/daytona_api_client/models/snapshot_state.rb +4 -3
- data/lib/daytona_api_client/models/ssh_access_dto.rb +2 -75
- data/lib/daytona_api_client/models/ssh_access_validation_dto.rb +2 -75
- data/lib/daytona_api_client/models/storage_access_dto.rb +2 -75
- data/lib/daytona_api_client/models/toolbox_proxy_url.rb +2 -75
- data/lib/daytona_api_client/models/trace_span.rb +2 -75
- data/lib/daytona_api_client/models/trace_summary.rb +2 -75
- data/lib/daytona_api_client/models/update_docker_registry.rb +2 -75
- data/lib/daytona_api_client/models/update_job_status.rb +2 -75
- data/lib/daytona_api_client/models/update_organization_default_region.rb +2 -75
- data/lib/daytona_api_client/models/update_organization_invitation.rb +4 -77
- data/lib/daytona_api_client/models/update_organization_member_access.rb +4 -77
- data/lib/daytona_api_client/models/update_organization_quota.rb +2 -75
- data/lib/daytona_api_client/models/update_organization_region_quota.rb +2 -75
- data/lib/daytona_api_client/models/update_organization_role.rb +2 -75
- data/lib/daytona_api_client/models/update_region.rb +2 -75
- data/lib/daytona_api_client/models/update_sandbox_network_settings.rb +158 -0
- data/lib/daytona_api_client/models/update_sandbox_state_dto.rb +4 -77
- data/lib/daytona_api_client/models/url.rb +2 -75
- data/lib/daytona_api_client/models/user.rb +2 -75
- data/lib/daytona_api_client/models/user_home_dir_response.rb +2 -75
- data/lib/daytona_api_client/models/user_public_key.rb +2 -75
- data/lib/daytona_api_client/models/volume_dto.rb +2 -75
- data/lib/daytona_api_client/models/volume_state.rb +4 -3
- data/lib/daytona_api_client/models/webhook_app_portal_access.rb +2 -75
- data/lib/daytona_api_client/models/webhook_event.rb +4 -3
- data/lib/daytona_api_client/models/webhook_initialization_status.rb +2 -75
- data/lib/daytona_api_client/models/windows_response.rb +2 -75
- data/lib/daytona_api_client/models/work_dir_response.rb +2 -75
- data/lib/daytona_api_client/models/workspace.rb +8 -81
- data/lib/daytona_api_client/models/workspace_port_preview_url.rb +2 -75
- data/lib/daytona_api_client/version.rb +2 -2
- data/lib/daytona_api_client.rb +3 -1
- data/project.json +6 -2
- metadata +3 -1
|
@@ -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.21.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module DaytonaApiClient
|
|
17
|
-
class PtySessionInfo
|
|
17
|
+
class PtySessionInfo < ApiModelBase
|
|
18
18
|
# The unique identifier for the PTY session
|
|
19
19
|
attr_accessor :id
|
|
20
20
|
|
|
@@ -333,61 +333,6 @@ module DaytonaApiClient
|
|
|
333
333
|
new(transformed_hash)
|
|
334
334
|
end
|
|
335
335
|
|
|
336
|
-
# Deserializes the data based on type
|
|
337
|
-
# @param string type Data type
|
|
338
|
-
# @param string value Value to be deserialized
|
|
339
|
-
# @return [Object] Deserialized data
|
|
340
|
-
def self._deserialize(type, value)
|
|
341
|
-
case type.to_sym
|
|
342
|
-
when :Time
|
|
343
|
-
Time.parse(value)
|
|
344
|
-
when :Date
|
|
345
|
-
Date.parse(value)
|
|
346
|
-
when :String
|
|
347
|
-
value.to_s
|
|
348
|
-
when :Integer
|
|
349
|
-
value.to_i
|
|
350
|
-
when :Float
|
|
351
|
-
value.to_f
|
|
352
|
-
when :Boolean
|
|
353
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
354
|
-
true
|
|
355
|
-
else
|
|
356
|
-
false
|
|
357
|
-
end
|
|
358
|
-
when :Object
|
|
359
|
-
# generic object (usually a Hash), return directly
|
|
360
|
-
value
|
|
361
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
362
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
363
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
364
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
365
|
-
k_type = Regexp.last_match[:k_type]
|
|
366
|
-
v_type = Regexp.last_match[:v_type]
|
|
367
|
-
{}.tap do |hash|
|
|
368
|
-
value.each do |k, v|
|
|
369
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
370
|
-
end
|
|
371
|
-
end
|
|
372
|
-
else # model
|
|
373
|
-
# models (e.g. Pet) or oneOf
|
|
374
|
-
klass = DaytonaApiClient.const_get(type)
|
|
375
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
376
|
-
end
|
|
377
|
-
end
|
|
378
|
-
|
|
379
|
-
# Returns the string representation of the object
|
|
380
|
-
# @return [String] String presentation of the object
|
|
381
|
-
def to_s
|
|
382
|
-
to_hash.to_s
|
|
383
|
-
end
|
|
384
|
-
|
|
385
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
386
|
-
# @return [Hash] Returns the object in the form of hash
|
|
387
|
-
def to_body
|
|
388
|
-
to_hash
|
|
389
|
-
end
|
|
390
|
-
|
|
391
336
|
# Returns the object in the form of hash
|
|
392
337
|
# @return [Hash] Returns the object in the form of hash
|
|
393
338
|
def to_hash
|
|
@@ -404,24 +349,6 @@ module DaytonaApiClient
|
|
|
404
349
|
hash
|
|
405
350
|
end
|
|
406
351
|
|
|
407
|
-
# Outputs non-array value in the form of hash
|
|
408
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
409
|
-
# @param [Object] value Any valid value
|
|
410
|
-
# @return [Hash] Returns the value in the form of hash
|
|
411
|
-
def _to_hash(value)
|
|
412
|
-
if value.is_a?(Array)
|
|
413
|
-
value.compact.map { |v| _to_hash(v) }
|
|
414
|
-
elsif value.is_a?(Hash)
|
|
415
|
-
{}.tap do |hash|
|
|
416
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
417
|
-
end
|
|
418
|
-
elsif value.respond_to? :to_hash
|
|
419
|
-
value.to_hash
|
|
420
|
-
else
|
|
421
|
-
value
|
|
422
|
-
end
|
|
423
|
-
end
|
|
424
|
-
|
|
425
352
|
end
|
|
426
353
|
|
|
427
354
|
end
|
|
@@ -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.21.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module DaytonaApiClient
|
|
17
|
-
class Range
|
|
17
|
+
class Range < ApiModelBase
|
|
18
18
|
attr_accessor :start
|
|
19
19
|
|
|
20
20
|
attr_accessor :_end
|
|
@@ -169,61 +169,6 @@ module DaytonaApiClient
|
|
|
169
169
|
new(transformed_hash)
|
|
170
170
|
end
|
|
171
171
|
|
|
172
|
-
# Deserializes the data based on type
|
|
173
|
-
# @param string type Data type
|
|
174
|
-
# @param string value Value to be deserialized
|
|
175
|
-
# @return [Object] Deserialized data
|
|
176
|
-
def self._deserialize(type, value)
|
|
177
|
-
case type.to_sym
|
|
178
|
-
when :Time
|
|
179
|
-
Time.parse(value)
|
|
180
|
-
when :Date
|
|
181
|
-
Date.parse(value)
|
|
182
|
-
when :String
|
|
183
|
-
value.to_s
|
|
184
|
-
when :Integer
|
|
185
|
-
value.to_i
|
|
186
|
-
when :Float
|
|
187
|
-
value.to_f
|
|
188
|
-
when :Boolean
|
|
189
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
190
|
-
true
|
|
191
|
-
else
|
|
192
|
-
false
|
|
193
|
-
end
|
|
194
|
-
when :Object
|
|
195
|
-
# generic object (usually a Hash), return directly
|
|
196
|
-
value
|
|
197
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
198
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
199
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
200
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
201
|
-
k_type = Regexp.last_match[:k_type]
|
|
202
|
-
v_type = Regexp.last_match[:v_type]
|
|
203
|
-
{}.tap do |hash|
|
|
204
|
-
value.each do |k, v|
|
|
205
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
206
|
-
end
|
|
207
|
-
end
|
|
208
|
-
else # model
|
|
209
|
-
# models (e.g. Pet) or oneOf
|
|
210
|
-
klass = DaytonaApiClient.const_get(type)
|
|
211
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
212
|
-
end
|
|
213
|
-
end
|
|
214
|
-
|
|
215
|
-
# Returns the string representation of the object
|
|
216
|
-
# @return [String] String presentation of the object
|
|
217
|
-
def to_s
|
|
218
|
-
to_hash.to_s
|
|
219
|
-
end
|
|
220
|
-
|
|
221
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
222
|
-
# @return [Hash] Returns the object in the form of hash
|
|
223
|
-
def to_body
|
|
224
|
-
to_hash
|
|
225
|
-
end
|
|
226
|
-
|
|
227
172
|
# Returns the object in the form of hash
|
|
228
173
|
# @return [Hash] Returns the object in the form of hash
|
|
229
174
|
def to_hash
|
|
@@ -240,24 +185,6 @@ module DaytonaApiClient
|
|
|
240
185
|
hash
|
|
241
186
|
end
|
|
242
187
|
|
|
243
|
-
# Outputs non-array value in the form of hash
|
|
244
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
245
|
-
# @param [Object] value Any valid value
|
|
246
|
-
# @return [Hash] Returns the value in the form of hash
|
|
247
|
-
def _to_hash(value)
|
|
248
|
-
if value.is_a?(Array)
|
|
249
|
-
value.compact.map { |v| _to_hash(v) }
|
|
250
|
-
elsif value.is_a?(Hash)
|
|
251
|
-
{}.tap do |hash|
|
|
252
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
253
|
-
end
|
|
254
|
-
elsif value.respond_to? :to_hash
|
|
255
|
-
value.to_hash
|
|
256
|
-
else
|
|
257
|
-
value
|
|
258
|
-
end
|
|
259
|
-
end
|
|
260
|
-
|
|
261
188
|
end
|
|
262
189
|
|
|
263
190
|
end
|
|
@@ -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.21.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module DaytonaApiClient
|
|
17
|
-
class RateLimitConfig
|
|
17
|
+
class RateLimitConfig < ApiModelBase
|
|
18
18
|
# Failed authentication rate limit
|
|
19
19
|
attr_accessor :failed_auth
|
|
20
20
|
|
|
@@ -157,61 +157,6 @@ module DaytonaApiClient
|
|
|
157
157
|
new(transformed_hash)
|
|
158
158
|
end
|
|
159
159
|
|
|
160
|
-
# Deserializes the data based on type
|
|
161
|
-
# @param string type Data type
|
|
162
|
-
# @param string value Value to be deserialized
|
|
163
|
-
# @return [Object] Deserialized data
|
|
164
|
-
def self._deserialize(type, value)
|
|
165
|
-
case type.to_sym
|
|
166
|
-
when :Time
|
|
167
|
-
Time.parse(value)
|
|
168
|
-
when :Date
|
|
169
|
-
Date.parse(value)
|
|
170
|
-
when :String
|
|
171
|
-
value.to_s
|
|
172
|
-
when :Integer
|
|
173
|
-
value.to_i
|
|
174
|
-
when :Float
|
|
175
|
-
value.to_f
|
|
176
|
-
when :Boolean
|
|
177
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
178
|
-
true
|
|
179
|
-
else
|
|
180
|
-
false
|
|
181
|
-
end
|
|
182
|
-
when :Object
|
|
183
|
-
# generic object (usually a Hash), return directly
|
|
184
|
-
value
|
|
185
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
186
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
187
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
188
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
189
|
-
k_type = Regexp.last_match[:k_type]
|
|
190
|
-
v_type = Regexp.last_match[:v_type]
|
|
191
|
-
{}.tap do |hash|
|
|
192
|
-
value.each do |k, v|
|
|
193
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
194
|
-
end
|
|
195
|
-
end
|
|
196
|
-
else # model
|
|
197
|
-
# models (e.g. Pet) or oneOf
|
|
198
|
-
klass = DaytonaApiClient.const_get(type)
|
|
199
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
200
|
-
end
|
|
201
|
-
end
|
|
202
|
-
|
|
203
|
-
# Returns the string representation of the object
|
|
204
|
-
# @return [String] String presentation of the object
|
|
205
|
-
def to_s
|
|
206
|
-
to_hash.to_s
|
|
207
|
-
end
|
|
208
|
-
|
|
209
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
210
|
-
# @return [Hash] Returns the object in the form of hash
|
|
211
|
-
def to_body
|
|
212
|
-
to_hash
|
|
213
|
-
end
|
|
214
|
-
|
|
215
160
|
# Returns the object in the form of hash
|
|
216
161
|
# @return [Hash] Returns the object in the form of hash
|
|
217
162
|
def to_hash
|
|
@@ -228,24 +173,6 @@ module DaytonaApiClient
|
|
|
228
173
|
hash
|
|
229
174
|
end
|
|
230
175
|
|
|
231
|
-
# Outputs non-array value in the form of hash
|
|
232
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
233
|
-
# @param [Object] value Any valid value
|
|
234
|
-
# @return [Hash] Returns the value in the form of hash
|
|
235
|
-
def _to_hash(value)
|
|
236
|
-
if value.is_a?(Array)
|
|
237
|
-
value.compact.map { |v| _to_hash(v) }
|
|
238
|
-
elsif value.is_a?(Hash)
|
|
239
|
-
{}.tap do |hash|
|
|
240
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
241
|
-
end
|
|
242
|
-
elsif value.respond_to? :to_hash
|
|
243
|
-
value.to_hash
|
|
244
|
-
else
|
|
245
|
-
value
|
|
246
|
-
end
|
|
247
|
-
end
|
|
248
|
-
|
|
249
176
|
end
|
|
250
177
|
|
|
251
178
|
end
|
|
@@ -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.21.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module DaytonaApiClient
|
|
17
|
-
class RateLimitEntry
|
|
17
|
+
class RateLimitEntry < ApiModelBase
|
|
18
18
|
# Rate limit TTL in seconds
|
|
19
19
|
attr_accessor :ttl
|
|
20
20
|
|
|
@@ -137,61 +137,6 @@ module DaytonaApiClient
|
|
|
137
137
|
new(transformed_hash)
|
|
138
138
|
end
|
|
139
139
|
|
|
140
|
-
# Deserializes the data based on type
|
|
141
|
-
# @param string type Data type
|
|
142
|
-
# @param string value Value to be deserialized
|
|
143
|
-
# @return [Object] Deserialized data
|
|
144
|
-
def self._deserialize(type, value)
|
|
145
|
-
case type.to_sym
|
|
146
|
-
when :Time
|
|
147
|
-
Time.parse(value)
|
|
148
|
-
when :Date
|
|
149
|
-
Date.parse(value)
|
|
150
|
-
when :String
|
|
151
|
-
value.to_s
|
|
152
|
-
when :Integer
|
|
153
|
-
value.to_i
|
|
154
|
-
when :Float
|
|
155
|
-
value.to_f
|
|
156
|
-
when :Boolean
|
|
157
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
158
|
-
true
|
|
159
|
-
else
|
|
160
|
-
false
|
|
161
|
-
end
|
|
162
|
-
when :Object
|
|
163
|
-
# generic object (usually a Hash), return directly
|
|
164
|
-
value
|
|
165
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
166
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
167
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
168
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
169
|
-
k_type = Regexp.last_match[:k_type]
|
|
170
|
-
v_type = Regexp.last_match[:v_type]
|
|
171
|
-
{}.tap do |hash|
|
|
172
|
-
value.each do |k, v|
|
|
173
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
174
|
-
end
|
|
175
|
-
end
|
|
176
|
-
else # model
|
|
177
|
-
# models (e.g. Pet) or oneOf
|
|
178
|
-
klass = DaytonaApiClient.const_get(type)
|
|
179
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
180
|
-
end
|
|
181
|
-
end
|
|
182
|
-
|
|
183
|
-
# Returns the string representation of the object
|
|
184
|
-
# @return [String] String presentation of the object
|
|
185
|
-
def to_s
|
|
186
|
-
to_hash.to_s
|
|
187
|
-
end
|
|
188
|
-
|
|
189
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
190
|
-
# @return [Hash] Returns the object in the form of hash
|
|
191
|
-
def to_body
|
|
192
|
-
to_hash
|
|
193
|
-
end
|
|
194
|
-
|
|
195
140
|
# Returns the object in the form of hash
|
|
196
141
|
# @return [Hash] Returns the object in the form of hash
|
|
197
142
|
def to_hash
|
|
@@ -208,24 +153,6 @@ module DaytonaApiClient
|
|
|
208
153
|
hash
|
|
209
154
|
end
|
|
210
155
|
|
|
211
|
-
# Outputs non-array value in the form of hash
|
|
212
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
213
|
-
# @param [Object] value Any valid value
|
|
214
|
-
# @return [Hash] Returns the value in the form of hash
|
|
215
|
-
def _to_hash(value)
|
|
216
|
-
if value.is_a?(Array)
|
|
217
|
-
value.compact.map { |v| _to_hash(v) }
|
|
218
|
-
elsif value.is_a?(Hash)
|
|
219
|
-
{}.tap do |hash|
|
|
220
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
221
|
-
end
|
|
222
|
-
elsif value.respond_to? :to_hash
|
|
223
|
-
value.to_hash
|
|
224
|
-
else
|
|
225
|
-
value
|
|
226
|
-
end
|
|
227
|
-
end
|
|
228
|
-
|
|
229
156
|
end
|
|
230
157
|
|
|
231
158
|
end
|
|
@@ -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.21.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module DaytonaApiClient
|
|
17
|
-
class RegenerateApiKeyResponse
|
|
17
|
+
class RegenerateApiKeyResponse < ApiModelBase
|
|
18
18
|
# The newly generated API key
|
|
19
19
|
attr_accessor :api_key
|
|
20
20
|
|
|
@@ -144,61 +144,6 @@ module DaytonaApiClient
|
|
|
144
144
|
new(transformed_hash)
|
|
145
145
|
end
|
|
146
146
|
|
|
147
|
-
# Deserializes the data based on type
|
|
148
|
-
# @param string type Data type
|
|
149
|
-
# @param string value Value to be deserialized
|
|
150
|
-
# @return [Object] Deserialized data
|
|
151
|
-
def self._deserialize(type, value)
|
|
152
|
-
case type.to_sym
|
|
153
|
-
when :Time
|
|
154
|
-
Time.parse(value)
|
|
155
|
-
when :Date
|
|
156
|
-
Date.parse(value)
|
|
157
|
-
when :String
|
|
158
|
-
value.to_s
|
|
159
|
-
when :Integer
|
|
160
|
-
value.to_i
|
|
161
|
-
when :Float
|
|
162
|
-
value.to_f
|
|
163
|
-
when :Boolean
|
|
164
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
165
|
-
true
|
|
166
|
-
else
|
|
167
|
-
false
|
|
168
|
-
end
|
|
169
|
-
when :Object
|
|
170
|
-
# generic object (usually a Hash), return directly
|
|
171
|
-
value
|
|
172
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
173
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
174
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
175
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
176
|
-
k_type = Regexp.last_match[:k_type]
|
|
177
|
-
v_type = Regexp.last_match[:v_type]
|
|
178
|
-
{}.tap do |hash|
|
|
179
|
-
value.each do |k, v|
|
|
180
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
181
|
-
end
|
|
182
|
-
end
|
|
183
|
-
else # model
|
|
184
|
-
# models (e.g. Pet) or oneOf
|
|
185
|
-
klass = DaytonaApiClient.const_get(type)
|
|
186
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
187
|
-
end
|
|
188
|
-
end
|
|
189
|
-
|
|
190
|
-
# Returns the string representation of the object
|
|
191
|
-
# @return [String] String presentation of the object
|
|
192
|
-
def to_s
|
|
193
|
-
to_hash.to_s
|
|
194
|
-
end
|
|
195
|
-
|
|
196
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
197
|
-
# @return [Hash] Returns the object in the form of hash
|
|
198
|
-
def to_body
|
|
199
|
-
to_hash
|
|
200
|
-
end
|
|
201
|
-
|
|
202
147
|
# Returns the object in the form of hash
|
|
203
148
|
# @return [Hash] Returns the object in the form of hash
|
|
204
149
|
def to_hash
|
|
@@ -215,24 +160,6 @@ module DaytonaApiClient
|
|
|
215
160
|
hash
|
|
216
161
|
end
|
|
217
162
|
|
|
218
|
-
# Outputs non-array value in the form of hash
|
|
219
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
220
|
-
# @param [Object] value Any valid value
|
|
221
|
-
# @return [Hash] Returns the value in the form of hash
|
|
222
|
-
def _to_hash(value)
|
|
223
|
-
if value.is_a?(Array)
|
|
224
|
-
value.compact.map { |v| _to_hash(v) }
|
|
225
|
-
elsif value.is_a?(Hash)
|
|
226
|
-
{}.tap do |hash|
|
|
227
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
228
|
-
end
|
|
229
|
-
elsif value.respond_to? :to_hash
|
|
230
|
-
value.to_hash
|
|
231
|
-
else
|
|
232
|
-
value
|
|
233
|
-
end
|
|
234
|
-
end
|
|
235
|
-
|
|
236
163
|
end
|
|
237
164
|
|
|
238
165
|
end
|
|
@@ -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.21.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module DaytonaApiClient
|
|
17
|
-
class Region
|
|
17
|
+
class Region < ApiModelBase
|
|
18
18
|
# Region ID
|
|
19
19
|
attr_accessor :id
|
|
20
20
|
|
|
@@ -318,61 +318,6 @@ module DaytonaApiClient
|
|
|
318
318
|
new(transformed_hash)
|
|
319
319
|
end
|
|
320
320
|
|
|
321
|
-
# Deserializes the data based on type
|
|
322
|
-
# @param string type Data type
|
|
323
|
-
# @param string value Value to be deserialized
|
|
324
|
-
# @return [Object] Deserialized data
|
|
325
|
-
def self._deserialize(type, value)
|
|
326
|
-
case type.to_sym
|
|
327
|
-
when :Time
|
|
328
|
-
Time.parse(value)
|
|
329
|
-
when :Date
|
|
330
|
-
Date.parse(value)
|
|
331
|
-
when :String
|
|
332
|
-
value.to_s
|
|
333
|
-
when :Integer
|
|
334
|
-
value.to_i
|
|
335
|
-
when :Float
|
|
336
|
-
value.to_f
|
|
337
|
-
when :Boolean
|
|
338
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
339
|
-
true
|
|
340
|
-
else
|
|
341
|
-
false
|
|
342
|
-
end
|
|
343
|
-
when :Object
|
|
344
|
-
# generic object (usually a Hash), return directly
|
|
345
|
-
value
|
|
346
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
347
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
348
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
349
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
350
|
-
k_type = Regexp.last_match[:k_type]
|
|
351
|
-
v_type = Regexp.last_match[:v_type]
|
|
352
|
-
{}.tap do |hash|
|
|
353
|
-
value.each do |k, v|
|
|
354
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
355
|
-
end
|
|
356
|
-
end
|
|
357
|
-
else # model
|
|
358
|
-
# models (e.g. Pet) or oneOf
|
|
359
|
-
klass = DaytonaApiClient.const_get(type)
|
|
360
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
361
|
-
end
|
|
362
|
-
end
|
|
363
|
-
|
|
364
|
-
# Returns the string representation of the object
|
|
365
|
-
# @return [String] String presentation of the object
|
|
366
|
-
def to_s
|
|
367
|
-
to_hash.to_s
|
|
368
|
-
end
|
|
369
|
-
|
|
370
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
371
|
-
# @return [Hash] Returns the object in the form of hash
|
|
372
|
-
def to_body
|
|
373
|
-
to_hash
|
|
374
|
-
end
|
|
375
|
-
|
|
376
321
|
# Returns the object in the form of hash
|
|
377
322
|
# @return [Hash] Returns the object in the form of hash
|
|
378
323
|
def to_hash
|
|
@@ -389,24 +334,6 @@ module DaytonaApiClient
|
|
|
389
334
|
hash
|
|
390
335
|
end
|
|
391
336
|
|
|
392
|
-
# Outputs non-array value in the form of hash
|
|
393
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
394
|
-
# @param [Object] value Any valid value
|
|
395
|
-
# @return [Hash] Returns the value in the form of hash
|
|
396
|
-
def _to_hash(value)
|
|
397
|
-
if value.is_a?(Array)
|
|
398
|
-
value.compact.map { |v| _to_hash(v) }
|
|
399
|
-
elsif value.is_a?(Hash)
|
|
400
|
-
{}.tap do |hash|
|
|
401
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
402
|
-
end
|
|
403
|
-
elsif value.respond_to? :to_hash
|
|
404
|
-
value.to_hash
|
|
405
|
-
else
|
|
406
|
-
value
|
|
407
|
-
end
|
|
408
|
-
end
|
|
409
|
-
|
|
410
337
|
end
|
|
411
338
|
|
|
412
339
|
end
|