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 PaginatedJobs
|
|
17
|
+
class PaginatedJobs < ApiModelBase
|
|
18
18
|
attr_accessor :items
|
|
19
19
|
|
|
20
20
|
attr_accessor :total
|
|
@@ -223,61 +223,6 @@ module DaytonaApiClient
|
|
|
223
223
|
new(transformed_hash)
|
|
224
224
|
end
|
|
225
225
|
|
|
226
|
-
# Deserializes the data based on type
|
|
227
|
-
# @param string type Data type
|
|
228
|
-
# @param string value Value to be deserialized
|
|
229
|
-
# @return [Object] Deserialized data
|
|
230
|
-
def self._deserialize(type, value)
|
|
231
|
-
case type.to_sym
|
|
232
|
-
when :Time
|
|
233
|
-
Time.parse(value)
|
|
234
|
-
when :Date
|
|
235
|
-
Date.parse(value)
|
|
236
|
-
when :String
|
|
237
|
-
value.to_s
|
|
238
|
-
when :Integer
|
|
239
|
-
value.to_i
|
|
240
|
-
when :Float
|
|
241
|
-
value.to_f
|
|
242
|
-
when :Boolean
|
|
243
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
244
|
-
true
|
|
245
|
-
else
|
|
246
|
-
false
|
|
247
|
-
end
|
|
248
|
-
when :Object
|
|
249
|
-
# generic object (usually a Hash), return directly
|
|
250
|
-
value
|
|
251
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
252
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
253
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
254
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
255
|
-
k_type = Regexp.last_match[:k_type]
|
|
256
|
-
v_type = Regexp.last_match[:v_type]
|
|
257
|
-
{}.tap do |hash|
|
|
258
|
-
value.each do |k, v|
|
|
259
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
260
|
-
end
|
|
261
|
-
end
|
|
262
|
-
else # model
|
|
263
|
-
# models (e.g. Pet) or oneOf
|
|
264
|
-
klass = DaytonaApiClient.const_get(type)
|
|
265
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
266
|
-
end
|
|
267
|
-
end
|
|
268
|
-
|
|
269
|
-
# Returns the string representation of the object
|
|
270
|
-
# @return [String] String presentation of the object
|
|
271
|
-
def to_s
|
|
272
|
-
to_hash.to_s
|
|
273
|
-
end
|
|
274
|
-
|
|
275
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
276
|
-
# @return [Hash] Returns the object in the form of hash
|
|
277
|
-
def to_body
|
|
278
|
-
to_hash
|
|
279
|
-
end
|
|
280
|
-
|
|
281
226
|
# Returns the object in the form of hash
|
|
282
227
|
# @return [Hash] Returns the object in the form of hash
|
|
283
228
|
def to_hash
|
|
@@ -294,24 +239,6 @@ module DaytonaApiClient
|
|
|
294
239
|
hash
|
|
295
240
|
end
|
|
296
241
|
|
|
297
|
-
# Outputs non-array value in the form of hash
|
|
298
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
299
|
-
# @param [Object] value Any valid value
|
|
300
|
-
# @return [Hash] Returns the value in the form of hash
|
|
301
|
-
def _to_hash(value)
|
|
302
|
-
if value.is_a?(Array)
|
|
303
|
-
value.compact.map { |v| _to_hash(v) }
|
|
304
|
-
elsif value.is_a?(Hash)
|
|
305
|
-
{}.tap do |hash|
|
|
306
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
307
|
-
end
|
|
308
|
-
elsif value.respond_to? :to_hash
|
|
309
|
-
value.to_hash
|
|
310
|
-
else
|
|
311
|
-
value
|
|
312
|
-
end
|
|
313
|
-
end
|
|
314
|
-
|
|
315
242
|
end
|
|
316
243
|
|
|
317
244
|
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 PaginatedLogs
|
|
17
|
+
class PaginatedLogs < ApiModelBase
|
|
18
18
|
# List of log entries
|
|
19
19
|
attr_accessor :items
|
|
20
20
|
|
|
@@ -227,61 +227,6 @@ module DaytonaApiClient
|
|
|
227
227
|
new(transformed_hash)
|
|
228
228
|
end
|
|
229
229
|
|
|
230
|
-
# Deserializes the data based on type
|
|
231
|
-
# @param string type Data type
|
|
232
|
-
# @param string value Value to be deserialized
|
|
233
|
-
# @return [Object] Deserialized data
|
|
234
|
-
def self._deserialize(type, value)
|
|
235
|
-
case type.to_sym
|
|
236
|
-
when :Time
|
|
237
|
-
Time.parse(value)
|
|
238
|
-
when :Date
|
|
239
|
-
Date.parse(value)
|
|
240
|
-
when :String
|
|
241
|
-
value.to_s
|
|
242
|
-
when :Integer
|
|
243
|
-
value.to_i
|
|
244
|
-
when :Float
|
|
245
|
-
value.to_f
|
|
246
|
-
when :Boolean
|
|
247
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
248
|
-
true
|
|
249
|
-
else
|
|
250
|
-
false
|
|
251
|
-
end
|
|
252
|
-
when :Object
|
|
253
|
-
# generic object (usually a Hash), return directly
|
|
254
|
-
value
|
|
255
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
256
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
257
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
258
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
259
|
-
k_type = Regexp.last_match[:k_type]
|
|
260
|
-
v_type = Regexp.last_match[:v_type]
|
|
261
|
-
{}.tap do |hash|
|
|
262
|
-
value.each do |k, v|
|
|
263
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
264
|
-
end
|
|
265
|
-
end
|
|
266
|
-
else # model
|
|
267
|
-
# models (e.g. Pet) or oneOf
|
|
268
|
-
klass = DaytonaApiClient.const_get(type)
|
|
269
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
270
|
-
end
|
|
271
|
-
end
|
|
272
|
-
|
|
273
|
-
# Returns the string representation of the object
|
|
274
|
-
# @return [String] String presentation of the object
|
|
275
|
-
def to_s
|
|
276
|
-
to_hash.to_s
|
|
277
|
-
end
|
|
278
|
-
|
|
279
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
280
|
-
# @return [Hash] Returns the object in the form of hash
|
|
281
|
-
def to_body
|
|
282
|
-
to_hash
|
|
283
|
-
end
|
|
284
|
-
|
|
285
230
|
# Returns the object in the form of hash
|
|
286
231
|
# @return [Hash] Returns the object in the form of hash
|
|
287
232
|
def to_hash
|
|
@@ -298,24 +243,6 @@ module DaytonaApiClient
|
|
|
298
243
|
hash
|
|
299
244
|
end
|
|
300
245
|
|
|
301
|
-
# Outputs non-array value in the form of hash
|
|
302
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
303
|
-
# @param [Object] value Any valid value
|
|
304
|
-
# @return [Hash] Returns the value in the form of hash
|
|
305
|
-
def _to_hash(value)
|
|
306
|
-
if value.is_a?(Array)
|
|
307
|
-
value.compact.map { |v| _to_hash(v) }
|
|
308
|
-
elsif value.is_a?(Hash)
|
|
309
|
-
{}.tap do |hash|
|
|
310
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
311
|
-
end
|
|
312
|
-
elsif value.respond_to? :to_hash
|
|
313
|
-
value.to_hash
|
|
314
|
-
else
|
|
315
|
-
value
|
|
316
|
-
end
|
|
317
|
-
end
|
|
318
|
-
|
|
319
246
|
end
|
|
320
247
|
|
|
321
248
|
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 PaginatedSandboxes
|
|
17
|
+
class PaginatedSandboxes < ApiModelBase
|
|
18
18
|
attr_accessor :items
|
|
19
19
|
|
|
20
20
|
attr_accessor :total
|
|
@@ -223,61 +223,6 @@ module DaytonaApiClient
|
|
|
223
223
|
new(transformed_hash)
|
|
224
224
|
end
|
|
225
225
|
|
|
226
|
-
# Deserializes the data based on type
|
|
227
|
-
# @param string type Data type
|
|
228
|
-
# @param string value Value to be deserialized
|
|
229
|
-
# @return [Object] Deserialized data
|
|
230
|
-
def self._deserialize(type, value)
|
|
231
|
-
case type.to_sym
|
|
232
|
-
when :Time
|
|
233
|
-
Time.parse(value)
|
|
234
|
-
when :Date
|
|
235
|
-
Date.parse(value)
|
|
236
|
-
when :String
|
|
237
|
-
value.to_s
|
|
238
|
-
when :Integer
|
|
239
|
-
value.to_i
|
|
240
|
-
when :Float
|
|
241
|
-
value.to_f
|
|
242
|
-
when :Boolean
|
|
243
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
244
|
-
true
|
|
245
|
-
else
|
|
246
|
-
false
|
|
247
|
-
end
|
|
248
|
-
when :Object
|
|
249
|
-
# generic object (usually a Hash), return directly
|
|
250
|
-
value
|
|
251
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
252
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
253
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
254
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
255
|
-
k_type = Regexp.last_match[:k_type]
|
|
256
|
-
v_type = Regexp.last_match[:v_type]
|
|
257
|
-
{}.tap do |hash|
|
|
258
|
-
value.each do |k, v|
|
|
259
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
260
|
-
end
|
|
261
|
-
end
|
|
262
|
-
else # model
|
|
263
|
-
# models (e.g. Pet) or oneOf
|
|
264
|
-
klass = DaytonaApiClient.const_get(type)
|
|
265
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
266
|
-
end
|
|
267
|
-
end
|
|
268
|
-
|
|
269
|
-
# Returns the string representation of the object
|
|
270
|
-
# @return [String] String presentation of the object
|
|
271
|
-
def to_s
|
|
272
|
-
to_hash.to_s
|
|
273
|
-
end
|
|
274
|
-
|
|
275
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
276
|
-
# @return [Hash] Returns the object in the form of hash
|
|
277
|
-
def to_body
|
|
278
|
-
to_hash
|
|
279
|
-
end
|
|
280
|
-
|
|
281
226
|
# Returns the object in the form of hash
|
|
282
227
|
# @return [Hash] Returns the object in the form of hash
|
|
283
228
|
def to_hash
|
|
@@ -294,24 +239,6 @@ module DaytonaApiClient
|
|
|
294
239
|
hash
|
|
295
240
|
end
|
|
296
241
|
|
|
297
|
-
# Outputs non-array value in the form of hash
|
|
298
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
299
|
-
# @param [Object] value Any valid value
|
|
300
|
-
# @return [Hash] Returns the value in the form of hash
|
|
301
|
-
def _to_hash(value)
|
|
302
|
-
if value.is_a?(Array)
|
|
303
|
-
value.compact.map { |v| _to_hash(v) }
|
|
304
|
-
elsif value.is_a?(Hash)
|
|
305
|
-
{}.tap do |hash|
|
|
306
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
307
|
-
end
|
|
308
|
-
elsif value.respond_to? :to_hash
|
|
309
|
-
value.to_hash
|
|
310
|
-
else
|
|
311
|
-
value
|
|
312
|
-
end
|
|
313
|
-
end
|
|
314
|
-
|
|
315
242
|
end
|
|
316
243
|
|
|
317
244
|
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 PaginatedSnapshots
|
|
17
|
+
class PaginatedSnapshots < ApiModelBase
|
|
18
18
|
attr_accessor :items
|
|
19
19
|
|
|
20
20
|
attr_accessor :total
|
|
@@ -223,61 +223,6 @@ module DaytonaApiClient
|
|
|
223
223
|
new(transformed_hash)
|
|
224
224
|
end
|
|
225
225
|
|
|
226
|
-
# Deserializes the data based on type
|
|
227
|
-
# @param string type Data type
|
|
228
|
-
# @param string value Value to be deserialized
|
|
229
|
-
# @return [Object] Deserialized data
|
|
230
|
-
def self._deserialize(type, value)
|
|
231
|
-
case type.to_sym
|
|
232
|
-
when :Time
|
|
233
|
-
Time.parse(value)
|
|
234
|
-
when :Date
|
|
235
|
-
Date.parse(value)
|
|
236
|
-
when :String
|
|
237
|
-
value.to_s
|
|
238
|
-
when :Integer
|
|
239
|
-
value.to_i
|
|
240
|
-
when :Float
|
|
241
|
-
value.to_f
|
|
242
|
-
when :Boolean
|
|
243
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
244
|
-
true
|
|
245
|
-
else
|
|
246
|
-
false
|
|
247
|
-
end
|
|
248
|
-
when :Object
|
|
249
|
-
# generic object (usually a Hash), return directly
|
|
250
|
-
value
|
|
251
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
252
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
253
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
254
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
255
|
-
k_type = Regexp.last_match[:k_type]
|
|
256
|
-
v_type = Regexp.last_match[:v_type]
|
|
257
|
-
{}.tap do |hash|
|
|
258
|
-
value.each do |k, v|
|
|
259
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
260
|
-
end
|
|
261
|
-
end
|
|
262
|
-
else # model
|
|
263
|
-
# models (e.g. Pet) or oneOf
|
|
264
|
-
klass = DaytonaApiClient.const_get(type)
|
|
265
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
266
|
-
end
|
|
267
|
-
end
|
|
268
|
-
|
|
269
|
-
# Returns the string representation of the object
|
|
270
|
-
# @return [String] String presentation of the object
|
|
271
|
-
def to_s
|
|
272
|
-
to_hash.to_s
|
|
273
|
-
end
|
|
274
|
-
|
|
275
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
276
|
-
# @return [Hash] Returns the object in the form of hash
|
|
277
|
-
def to_body
|
|
278
|
-
to_hash
|
|
279
|
-
end
|
|
280
|
-
|
|
281
226
|
# Returns the object in the form of hash
|
|
282
227
|
# @return [Hash] Returns the object in the form of hash
|
|
283
228
|
def to_hash
|
|
@@ -294,24 +239,6 @@ module DaytonaApiClient
|
|
|
294
239
|
hash
|
|
295
240
|
end
|
|
296
241
|
|
|
297
|
-
# Outputs non-array value in the form of hash
|
|
298
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
299
|
-
# @param [Object] value Any valid value
|
|
300
|
-
# @return [Hash] Returns the value in the form of hash
|
|
301
|
-
def _to_hash(value)
|
|
302
|
-
if value.is_a?(Array)
|
|
303
|
-
value.compact.map { |v| _to_hash(v) }
|
|
304
|
-
elsif value.is_a?(Hash)
|
|
305
|
-
{}.tap do |hash|
|
|
306
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
307
|
-
end
|
|
308
|
-
elsif value.respond_to? :to_hash
|
|
309
|
-
value.to_hash
|
|
310
|
-
else
|
|
311
|
-
value
|
|
312
|
-
end
|
|
313
|
-
end
|
|
314
|
-
|
|
315
242
|
end
|
|
316
243
|
|
|
317
244
|
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 PaginatedTraces
|
|
17
|
+
class PaginatedTraces < ApiModelBase
|
|
18
18
|
# List of trace summaries
|
|
19
19
|
attr_accessor :items
|
|
20
20
|
|
|
@@ -227,61 +227,6 @@ module DaytonaApiClient
|
|
|
227
227
|
new(transformed_hash)
|
|
228
228
|
end
|
|
229
229
|
|
|
230
|
-
# Deserializes the data based on type
|
|
231
|
-
# @param string type Data type
|
|
232
|
-
# @param string value Value to be deserialized
|
|
233
|
-
# @return [Object] Deserialized data
|
|
234
|
-
def self._deserialize(type, value)
|
|
235
|
-
case type.to_sym
|
|
236
|
-
when :Time
|
|
237
|
-
Time.parse(value)
|
|
238
|
-
when :Date
|
|
239
|
-
Date.parse(value)
|
|
240
|
-
when :String
|
|
241
|
-
value.to_s
|
|
242
|
-
when :Integer
|
|
243
|
-
value.to_i
|
|
244
|
-
when :Float
|
|
245
|
-
value.to_f
|
|
246
|
-
when :Boolean
|
|
247
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
248
|
-
true
|
|
249
|
-
else
|
|
250
|
-
false
|
|
251
|
-
end
|
|
252
|
-
when :Object
|
|
253
|
-
# generic object (usually a Hash), return directly
|
|
254
|
-
value
|
|
255
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
256
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
257
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
258
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
259
|
-
k_type = Regexp.last_match[:k_type]
|
|
260
|
-
v_type = Regexp.last_match[:v_type]
|
|
261
|
-
{}.tap do |hash|
|
|
262
|
-
value.each do |k, v|
|
|
263
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
264
|
-
end
|
|
265
|
-
end
|
|
266
|
-
else # model
|
|
267
|
-
# models (e.g. Pet) or oneOf
|
|
268
|
-
klass = DaytonaApiClient.const_get(type)
|
|
269
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
270
|
-
end
|
|
271
|
-
end
|
|
272
|
-
|
|
273
|
-
# Returns the string representation of the object
|
|
274
|
-
# @return [String] String presentation of the object
|
|
275
|
-
def to_s
|
|
276
|
-
to_hash.to_s
|
|
277
|
-
end
|
|
278
|
-
|
|
279
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
280
|
-
# @return [Hash] Returns the object in the form of hash
|
|
281
|
-
def to_body
|
|
282
|
-
to_hash
|
|
283
|
-
end
|
|
284
|
-
|
|
285
230
|
# Returns the object in the form of hash
|
|
286
231
|
# @return [Hash] Returns the object in the form of hash
|
|
287
232
|
def to_hash
|
|
@@ -298,24 +243,6 @@ module DaytonaApiClient
|
|
|
298
243
|
hash
|
|
299
244
|
end
|
|
300
245
|
|
|
301
|
-
# Outputs non-array value in the form of hash
|
|
302
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
303
|
-
# @param [Object] value Any valid value
|
|
304
|
-
# @return [Hash] Returns the value in the form of hash
|
|
305
|
-
def _to_hash(value)
|
|
306
|
-
if value.is_a?(Array)
|
|
307
|
-
value.compact.map { |v| _to_hash(v) }
|
|
308
|
-
elsif value.is_a?(Hash)
|
|
309
|
-
{}.tap do |hash|
|
|
310
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
311
|
-
end
|
|
312
|
-
elsif value.respond_to? :to_hash
|
|
313
|
-
value.to_hash
|
|
314
|
-
else
|
|
315
|
-
value
|
|
316
|
-
end
|
|
317
|
-
end
|
|
318
|
-
|
|
319
246
|
end
|
|
320
247
|
|
|
321
248
|
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 PollJobsResponse
|
|
17
|
+
class PollJobsResponse < ApiModelBase
|
|
18
18
|
# List of jobs
|
|
19
19
|
attr_accessor :jobs
|
|
20
20
|
|
|
@@ -146,61 +146,6 @@ module DaytonaApiClient
|
|
|
146
146
|
new(transformed_hash)
|
|
147
147
|
end
|
|
148
148
|
|
|
149
|
-
# Deserializes the data based on type
|
|
150
|
-
# @param string type Data type
|
|
151
|
-
# @param string value Value to be deserialized
|
|
152
|
-
# @return [Object] Deserialized data
|
|
153
|
-
def self._deserialize(type, value)
|
|
154
|
-
case type.to_sym
|
|
155
|
-
when :Time
|
|
156
|
-
Time.parse(value)
|
|
157
|
-
when :Date
|
|
158
|
-
Date.parse(value)
|
|
159
|
-
when :String
|
|
160
|
-
value.to_s
|
|
161
|
-
when :Integer
|
|
162
|
-
value.to_i
|
|
163
|
-
when :Float
|
|
164
|
-
value.to_f
|
|
165
|
-
when :Boolean
|
|
166
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
167
|
-
true
|
|
168
|
-
else
|
|
169
|
-
false
|
|
170
|
-
end
|
|
171
|
-
when :Object
|
|
172
|
-
# generic object (usually a Hash), return directly
|
|
173
|
-
value
|
|
174
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
175
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
176
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
177
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
178
|
-
k_type = Regexp.last_match[:k_type]
|
|
179
|
-
v_type = Regexp.last_match[:v_type]
|
|
180
|
-
{}.tap do |hash|
|
|
181
|
-
value.each do |k, v|
|
|
182
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
183
|
-
end
|
|
184
|
-
end
|
|
185
|
-
else # model
|
|
186
|
-
# models (e.g. Pet) or oneOf
|
|
187
|
-
klass = DaytonaApiClient.const_get(type)
|
|
188
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
189
|
-
end
|
|
190
|
-
end
|
|
191
|
-
|
|
192
|
-
# Returns the string representation of the object
|
|
193
|
-
# @return [String] String presentation of the object
|
|
194
|
-
def to_s
|
|
195
|
-
to_hash.to_s
|
|
196
|
-
end
|
|
197
|
-
|
|
198
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
199
|
-
# @return [Hash] Returns the object in the form of hash
|
|
200
|
-
def to_body
|
|
201
|
-
to_hash
|
|
202
|
-
end
|
|
203
|
-
|
|
204
149
|
# Returns the object in the form of hash
|
|
205
150
|
# @return [Hash] Returns the object in the form of hash
|
|
206
151
|
def to_hash
|
|
@@ -217,24 +162,6 @@ module DaytonaApiClient
|
|
|
217
162
|
hash
|
|
218
163
|
end
|
|
219
164
|
|
|
220
|
-
# Outputs non-array value in the form of hash
|
|
221
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
222
|
-
# @param [Object] value Any valid value
|
|
223
|
-
# @return [Hash] Returns the value in the form of hash
|
|
224
|
-
def _to_hash(value)
|
|
225
|
-
if value.is_a?(Array)
|
|
226
|
-
value.compact.map { |v| _to_hash(v) }
|
|
227
|
-
elsif value.is_a?(Hash)
|
|
228
|
-
{}.tap do |hash|
|
|
229
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
230
|
-
end
|
|
231
|
-
elsif value.respond_to? :to_hash
|
|
232
|
-
value.to_hash
|
|
233
|
-
else
|
|
234
|
-
value
|
|
235
|
-
end
|
|
236
|
-
end
|
|
237
|
-
|
|
238
165
|
end
|
|
239
166
|
|
|
240
167
|
end
|