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 ComputerUseStartResponse
|
|
17
|
+
class ComputerUseStartResponse < ApiModelBase
|
|
18
18
|
# A message indicating the result of starting computer use processes
|
|
19
19
|
attr_accessor :message
|
|
20
20
|
|
|
@@ -171,61 +171,6 @@ module DaytonaApiClient
|
|
|
171
171
|
new(transformed_hash)
|
|
172
172
|
end
|
|
173
173
|
|
|
174
|
-
# Deserializes the data based on type
|
|
175
|
-
# @param string type Data type
|
|
176
|
-
# @param string value Value to be deserialized
|
|
177
|
-
# @return [Object] Deserialized data
|
|
178
|
-
def self._deserialize(type, value)
|
|
179
|
-
case type.to_sym
|
|
180
|
-
when :Time
|
|
181
|
-
Time.parse(value)
|
|
182
|
-
when :Date
|
|
183
|
-
Date.parse(value)
|
|
184
|
-
when :String
|
|
185
|
-
value.to_s
|
|
186
|
-
when :Integer
|
|
187
|
-
value.to_i
|
|
188
|
-
when :Float
|
|
189
|
-
value.to_f
|
|
190
|
-
when :Boolean
|
|
191
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
192
|
-
true
|
|
193
|
-
else
|
|
194
|
-
false
|
|
195
|
-
end
|
|
196
|
-
when :Object
|
|
197
|
-
# generic object (usually a Hash), return directly
|
|
198
|
-
value
|
|
199
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
200
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
201
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
202
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
203
|
-
k_type = Regexp.last_match[:k_type]
|
|
204
|
-
v_type = Regexp.last_match[:v_type]
|
|
205
|
-
{}.tap do |hash|
|
|
206
|
-
value.each do |k, v|
|
|
207
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
208
|
-
end
|
|
209
|
-
end
|
|
210
|
-
else # model
|
|
211
|
-
# models (e.g. Pet) or oneOf
|
|
212
|
-
klass = DaytonaApiClient.const_get(type)
|
|
213
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
214
|
-
end
|
|
215
|
-
end
|
|
216
|
-
|
|
217
|
-
# Returns the string representation of the object
|
|
218
|
-
# @return [String] String presentation of the object
|
|
219
|
-
def to_s
|
|
220
|
-
to_hash.to_s
|
|
221
|
-
end
|
|
222
|
-
|
|
223
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
224
|
-
# @return [Hash] Returns the object in the form of hash
|
|
225
|
-
def to_body
|
|
226
|
-
to_hash
|
|
227
|
-
end
|
|
228
|
-
|
|
229
174
|
# Returns the object in the form of hash
|
|
230
175
|
# @return [Hash] Returns the object in the form of hash
|
|
231
176
|
def to_hash
|
|
@@ -242,24 +187,6 @@ module DaytonaApiClient
|
|
|
242
187
|
hash
|
|
243
188
|
end
|
|
244
189
|
|
|
245
|
-
# Outputs non-array value in the form of hash
|
|
246
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
247
|
-
# @param [Object] value Any valid value
|
|
248
|
-
# @return [Hash] Returns the value in the form of hash
|
|
249
|
-
def _to_hash(value)
|
|
250
|
-
if value.is_a?(Array)
|
|
251
|
-
value.compact.map { |v| _to_hash(v) }
|
|
252
|
-
elsif value.is_a?(Hash)
|
|
253
|
-
{}.tap do |hash|
|
|
254
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
255
|
-
end
|
|
256
|
-
elsif value.respond_to? :to_hash
|
|
257
|
-
value.to_hash
|
|
258
|
-
else
|
|
259
|
-
value
|
|
260
|
-
end
|
|
261
|
-
end
|
|
262
|
-
|
|
263
190
|
end
|
|
264
191
|
|
|
265
192
|
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 ComputerUseStatusResponse
|
|
17
|
+
class ComputerUseStatusResponse < ApiModelBase
|
|
18
18
|
# Status of computer use services (active, partial, inactive, error)
|
|
19
19
|
attr_accessor :status
|
|
20
20
|
|
|
@@ -110,7 +110,7 @@ module DaytonaApiClient
|
|
|
110
110
|
def valid?
|
|
111
111
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
112
112
|
return false if @status.nil?
|
|
113
|
-
status_validator = EnumAttributeValidator.new('String', ["active", "partial", "inactive", "error"])
|
|
113
|
+
status_validator = EnumAttributeValidator.new('String', ["active", "partial", "inactive", "error", "unknown_default_open_api"])
|
|
114
114
|
return false unless status_validator.valid?(@status)
|
|
115
115
|
true
|
|
116
116
|
end
|
|
@@ -118,7 +118,7 @@ module DaytonaApiClient
|
|
|
118
118
|
# Custom attribute writer method checking allowed values (enum).
|
|
119
119
|
# @param [Object] status Object to be assigned
|
|
120
120
|
def status=(status)
|
|
121
|
-
validator = EnumAttributeValidator.new('String', ["active", "partial", "inactive", "error"])
|
|
121
|
+
validator = EnumAttributeValidator.new('String', ["active", "partial", "inactive", "error", "unknown_default_open_api"])
|
|
122
122
|
unless validator.valid?(status)
|
|
123
123
|
fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
|
|
124
124
|
end
|
|
@@ -168,61 +168,6 @@ module DaytonaApiClient
|
|
|
168
168
|
new(transformed_hash)
|
|
169
169
|
end
|
|
170
170
|
|
|
171
|
-
# Deserializes the data based on type
|
|
172
|
-
# @param string type Data type
|
|
173
|
-
# @param string value Value to be deserialized
|
|
174
|
-
# @return [Object] Deserialized data
|
|
175
|
-
def self._deserialize(type, value)
|
|
176
|
-
case type.to_sym
|
|
177
|
-
when :Time
|
|
178
|
-
Time.parse(value)
|
|
179
|
-
when :Date
|
|
180
|
-
Date.parse(value)
|
|
181
|
-
when :String
|
|
182
|
-
value.to_s
|
|
183
|
-
when :Integer
|
|
184
|
-
value.to_i
|
|
185
|
-
when :Float
|
|
186
|
-
value.to_f
|
|
187
|
-
when :Boolean
|
|
188
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
189
|
-
true
|
|
190
|
-
else
|
|
191
|
-
false
|
|
192
|
-
end
|
|
193
|
-
when :Object
|
|
194
|
-
# generic object (usually a Hash), return directly
|
|
195
|
-
value
|
|
196
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
197
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
198
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
199
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
200
|
-
k_type = Regexp.last_match[:k_type]
|
|
201
|
-
v_type = Regexp.last_match[:v_type]
|
|
202
|
-
{}.tap do |hash|
|
|
203
|
-
value.each do |k, v|
|
|
204
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
205
|
-
end
|
|
206
|
-
end
|
|
207
|
-
else # model
|
|
208
|
-
# models (e.g. Pet) or oneOf
|
|
209
|
-
klass = DaytonaApiClient.const_get(type)
|
|
210
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
211
|
-
end
|
|
212
|
-
end
|
|
213
|
-
|
|
214
|
-
# Returns the string representation of the object
|
|
215
|
-
# @return [String] String presentation of the object
|
|
216
|
-
def to_s
|
|
217
|
-
to_hash.to_s
|
|
218
|
-
end
|
|
219
|
-
|
|
220
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
221
|
-
# @return [Hash] Returns the object in the form of hash
|
|
222
|
-
def to_body
|
|
223
|
-
to_hash
|
|
224
|
-
end
|
|
225
|
-
|
|
226
171
|
# Returns the object in the form of hash
|
|
227
172
|
# @return [Hash] Returns the object in the form of hash
|
|
228
173
|
def to_hash
|
|
@@ -239,24 +184,6 @@ module DaytonaApiClient
|
|
|
239
184
|
hash
|
|
240
185
|
end
|
|
241
186
|
|
|
242
|
-
# Outputs non-array value in the form of hash
|
|
243
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
244
|
-
# @param [Object] value Any valid value
|
|
245
|
-
# @return [Hash] Returns the value in the form of hash
|
|
246
|
-
def _to_hash(value)
|
|
247
|
-
if value.is_a?(Array)
|
|
248
|
-
value.compact.map { |v| _to_hash(v) }
|
|
249
|
-
elsif value.is_a?(Hash)
|
|
250
|
-
{}.tap do |hash|
|
|
251
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
252
|
-
end
|
|
253
|
-
elsif value.respond_to? :to_hash
|
|
254
|
-
value.to_hash
|
|
255
|
-
else
|
|
256
|
-
value
|
|
257
|
-
end
|
|
258
|
-
end
|
|
259
|
-
|
|
260
187
|
end
|
|
261
188
|
|
|
262
189
|
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 ComputerUseStopResponse
|
|
17
|
+
class ComputerUseStopResponse < ApiModelBase
|
|
18
18
|
# A message indicating the result of stopping computer use processes
|
|
19
19
|
attr_accessor :message
|
|
20
20
|
|
|
@@ -171,61 +171,6 @@ module DaytonaApiClient
|
|
|
171
171
|
new(transformed_hash)
|
|
172
172
|
end
|
|
173
173
|
|
|
174
|
-
# Deserializes the data based on type
|
|
175
|
-
# @param string type Data type
|
|
176
|
-
# @param string value Value to be deserialized
|
|
177
|
-
# @return [Object] Deserialized data
|
|
178
|
-
def self._deserialize(type, value)
|
|
179
|
-
case type.to_sym
|
|
180
|
-
when :Time
|
|
181
|
-
Time.parse(value)
|
|
182
|
-
when :Date
|
|
183
|
-
Date.parse(value)
|
|
184
|
-
when :String
|
|
185
|
-
value.to_s
|
|
186
|
-
when :Integer
|
|
187
|
-
value.to_i
|
|
188
|
-
when :Float
|
|
189
|
-
value.to_f
|
|
190
|
-
when :Boolean
|
|
191
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
192
|
-
true
|
|
193
|
-
else
|
|
194
|
-
false
|
|
195
|
-
end
|
|
196
|
-
when :Object
|
|
197
|
-
# generic object (usually a Hash), return directly
|
|
198
|
-
value
|
|
199
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
200
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
201
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
202
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
203
|
-
k_type = Regexp.last_match[:k_type]
|
|
204
|
-
v_type = Regexp.last_match[:v_type]
|
|
205
|
-
{}.tap do |hash|
|
|
206
|
-
value.each do |k, v|
|
|
207
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
208
|
-
end
|
|
209
|
-
end
|
|
210
|
-
else # model
|
|
211
|
-
# models (e.g. Pet) or oneOf
|
|
212
|
-
klass = DaytonaApiClient.const_get(type)
|
|
213
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
214
|
-
end
|
|
215
|
-
end
|
|
216
|
-
|
|
217
|
-
# Returns the string representation of the object
|
|
218
|
-
# @return [String] String presentation of the object
|
|
219
|
-
def to_s
|
|
220
|
-
to_hash.to_s
|
|
221
|
-
end
|
|
222
|
-
|
|
223
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
224
|
-
# @return [Hash] Returns the object in the form of hash
|
|
225
|
-
def to_body
|
|
226
|
-
to_hash
|
|
227
|
-
end
|
|
228
|
-
|
|
229
174
|
# Returns the object in the form of hash
|
|
230
175
|
# @return [Hash] Returns the object in the form of hash
|
|
231
176
|
def to_hash
|
|
@@ -242,24 +187,6 @@ module DaytonaApiClient
|
|
|
242
187
|
hash
|
|
243
188
|
end
|
|
244
189
|
|
|
245
|
-
# Outputs non-array value in the form of hash
|
|
246
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
247
|
-
# @param [Object] value Any valid value
|
|
248
|
-
# @return [Hash] Returns the value in the form of hash
|
|
249
|
-
def _to_hash(value)
|
|
250
|
-
if value.is_a?(Array)
|
|
251
|
-
value.compact.map { |v| _to_hash(v) }
|
|
252
|
-
elsif value.is_a?(Hash)
|
|
253
|
-
{}.tap do |hash|
|
|
254
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
255
|
-
end
|
|
256
|
-
elsif value.respond_to? :to_hash
|
|
257
|
-
value.to_hash
|
|
258
|
-
else
|
|
259
|
-
value
|
|
260
|
-
end
|
|
261
|
-
end
|
|
262
|
-
|
|
263
190
|
end
|
|
264
191
|
|
|
265
192
|
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 CreateApiKey
|
|
17
|
+
class CreateApiKey < ApiModelBase
|
|
18
18
|
# The name of the API key
|
|
19
19
|
attr_accessor :name
|
|
20
20
|
|
|
@@ -196,61 +196,6 @@ module DaytonaApiClient
|
|
|
196
196
|
new(transformed_hash)
|
|
197
197
|
end
|
|
198
198
|
|
|
199
|
-
# Deserializes the data based on type
|
|
200
|
-
# @param string type Data type
|
|
201
|
-
# @param string value Value to be deserialized
|
|
202
|
-
# @return [Object] Deserialized data
|
|
203
|
-
def self._deserialize(type, value)
|
|
204
|
-
case type.to_sym
|
|
205
|
-
when :Time
|
|
206
|
-
Time.parse(value)
|
|
207
|
-
when :Date
|
|
208
|
-
Date.parse(value)
|
|
209
|
-
when :String
|
|
210
|
-
value.to_s
|
|
211
|
-
when :Integer
|
|
212
|
-
value.to_i
|
|
213
|
-
when :Float
|
|
214
|
-
value.to_f
|
|
215
|
-
when :Boolean
|
|
216
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
217
|
-
true
|
|
218
|
-
else
|
|
219
|
-
false
|
|
220
|
-
end
|
|
221
|
-
when :Object
|
|
222
|
-
# generic object (usually a Hash), return directly
|
|
223
|
-
value
|
|
224
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
225
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
226
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
227
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
228
|
-
k_type = Regexp.last_match[:k_type]
|
|
229
|
-
v_type = Regexp.last_match[:v_type]
|
|
230
|
-
{}.tap do |hash|
|
|
231
|
-
value.each do |k, v|
|
|
232
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
233
|
-
end
|
|
234
|
-
end
|
|
235
|
-
else # model
|
|
236
|
-
# models (e.g. Pet) or oneOf
|
|
237
|
-
klass = DaytonaApiClient.const_get(type)
|
|
238
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
239
|
-
end
|
|
240
|
-
end
|
|
241
|
-
|
|
242
|
-
# Returns the string representation of the object
|
|
243
|
-
# @return [String] String presentation of the object
|
|
244
|
-
def to_s
|
|
245
|
-
to_hash.to_s
|
|
246
|
-
end
|
|
247
|
-
|
|
248
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
249
|
-
# @return [Hash] Returns the object in the form of hash
|
|
250
|
-
def to_body
|
|
251
|
-
to_hash
|
|
252
|
-
end
|
|
253
|
-
|
|
254
199
|
# Returns the object in the form of hash
|
|
255
200
|
# @return [Hash] Returns the object in the form of hash
|
|
256
201
|
def to_hash
|
|
@@ -267,24 +212,6 @@ module DaytonaApiClient
|
|
|
267
212
|
hash
|
|
268
213
|
end
|
|
269
214
|
|
|
270
|
-
# Outputs non-array value in the form of hash
|
|
271
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
272
|
-
# @param [Object] value Any valid value
|
|
273
|
-
# @return [Hash] Returns the value in the form of hash
|
|
274
|
-
def _to_hash(value)
|
|
275
|
-
if value.is_a?(Array)
|
|
276
|
-
value.compact.map { |v| _to_hash(v) }
|
|
277
|
-
elsif value.is_a?(Hash)
|
|
278
|
-
{}.tap do |hash|
|
|
279
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
280
|
-
end
|
|
281
|
-
elsif value.respond_to? :to_hash
|
|
282
|
-
value.to_hash
|
|
283
|
-
else
|
|
284
|
-
value
|
|
285
|
-
end
|
|
286
|
-
end
|
|
287
|
-
|
|
288
215
|
end
|
|
289
216
|
|
|
290
217
|
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 CreateBuildInfo
|
|
17
|
+
class CreateBuildInfo < ApiModelBase
|
|
18
18
|
# The Dockerfile content used for the build
|
|
19
19
|
attr_accessor :dockerfile_content
|
|
20
20
|
|
|
@@ -156,61 +156,6 @@ module DaytonaApiClient
|
|
|
156
156
|
new(transformed_hash)
|
|
157
157
|
end
|
|
158
158
|
|
|
159
|
-
# Deserializes the data based on type
|
|
160
|
-
# @param string type Data type
|
|
161
|
-
# @param string value Value to be deserialized
|
|
162
|
-
# @return [Object] Deserialized data
|
|
163
|
-
def self._deserialize(type, value)
|
|
164
|
-
case type.to_sym
|
|
165
|
-
when :Time
|
|
166
|
-
Time.parse(value)
|
|
167
|
-
when :Date
|
|
168
|
-
Date.parse(value)
|
|
169
|
-
when :String
|
|
170
|
-
value.to_s
|
|
171
|
-
when :Integer
|
|
172
|
-
value.to_i
|
|
173
|
-
when :Float
|
|
174
|
-
value.to_f
|
|
175
|
-
when :Boolean
|
|
176
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
177
|
-
true
|
|
178
|
-
else
|
|
179
|
-
false
|
|
180
|
-
end
|
|
181
|
-
when :Object
|
|
182
|
-
# generic object (usually a Hash), return directly
|
|
183
|
-
value
|
|
184
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
185
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
186
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
187
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
188
|
-
k_type = Regexp.last_match[:k_type]
|
|
189
|
-
v_type = Regexp.last_match[:v_type]
|
|
190
|
-
{}.tap do |hash|
|
|
191
|
-
value.each do |k, v|
|
|
192
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
193
|
-
end
|
|
194
|
-
end
|
|
195
|
-
else # model
|
|
196
|
-
# models (e.g. Pet) or oneOf
|
|
197
|
-
klass = DaytonaApiClient.const_get(type)
|
|
198
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
199
|
-
end
|
|
200
|
-
end
|
|
201
|
-
|
|
202
|
-
# Returns the string representation of the object
|
|
203
|
-
# @return [String] String presentation of the object
|
|
204
|
-
def to_s
|
|
205
|
-
to_hash.to_s
|
|
206
|
-
end
|
|
207
|
-
|
|
208
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
209
|
-
# @return [Hash] Returns the object in the form of hash
|
|
210
|
-
def to_body
|
|
211
|
-
to_hash
|
|
212
|
-
end
|
|
213
|
-
|
|
214
159
|
# Returns the object in the form of hash
|
|
215
160
|
# @return [Hash] Returns the object in the form of hash
|
|
216
161
|
def to_hash
|
|
@@ -227,24 +172,6 @@ module DaytonaApiClient
|
|
|
227
172
|
hash
|
|
228
173
|
end
|
|
229
174
|
|
|
230
|
-
# Outputs non-array value in the form of hash
|
|
231
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
232
|
-
# @param [Object] value Any valid value
|
|
233
|
-
# @return [Hash] Returns the value in the form of hash
|
|
234
|
-
def _to_hash(value)
|
|
235
|
-
if value.is_a?(Array)
|
|
236
|
-
value.compact.map { |v| _to_hash(v) }
|
|
237
|
-
elsif value.is_a?(Hash)
|
|
238
|
-
{}.tap do |hash|
|
|
239
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
240
|
-
end
|
|
241
|
-
elsif value.respond_to? :to_hash
|
|
242
|
-
value.to_hash
|
|
243
|
-
else
|
|
244
|
-
value
|
|
245
|
-
end
|
|
246
|
-
end
|
|
247
|
-
|
|
248
175
|
end
|
|
249
176
|
|
|
250
177
|
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 CreateDockerRegistry
|
|
17
|
+
class CreateDockerRegistry < ApiModelBase
|
|
18
18
|
# Registry name
|
|
19
19
|
attr_accessor :name
|
|
20
20
|
|
|
@@ -235,61 +235,6 @@ module DaytonaApiClient
|
|
|
235
235
|
new(transformed_hash)
|
|
236
236
|
end
|
|
237
237
|
|
|
238
|
-
# Deserializes the data based on type
|
|
239
|
-
# @param string type Data type
|
|
240
|
-
# @param string value Value to be deserialized
|
|
241
|
-
# @return [Object] Deserialized data
|
|
242
|
-
def self._deserialize(type, value)
|
|
243
|
-
case type.to_sym
|
|
244
|
-
when :Time
|
|
245
|
-
Time.parse(value)
|
|
246
|
-
when :Date
|
|
247
|
-
Date.parse(value)
|
|
248
|
-
when :String
|
|
249
|
-
value.to_s
|
|
250
|
-
when :Integer
|
|
251
|
-
value.to_i
|
|
252
|
-
when :Float
|
|
253
|
-
value.to_f
|
|
254
|
-
when :Boolean
|
|
255
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
256
|
-
true
|
|
257
|
-
else
|
|
258
|
-
false
|
|
259
|
-
end
|
|
260
|
-
when :Object
|
|
261
|
-
# generic object (usually a Hash), return directly
|
|
262
|
-
value
|
|
263
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
264
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
265
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
266
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
267
|
-
k_type = Regexp.last_match[:k_type]
|
|
268
|
-
v_type = Regexp.last_match[:v_type]
|
|
269
|
-
{}.tap do |hash|
|
|
270
|
-
value.each do |k, v|
|
|
271
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
272
|
-
end
|
|
273
|
-
end
|
|
274
|
-
else # model
|
|
275
|
-
# models (e.g. Pet) or oneOf
|
|
276
|
-
klass = DaytonaApiClient.const_get(type)
|
|
277
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
278
|
-
end
|
|
279
|
-
end
|
|
280
|
-
|
|
281
|
-
# Returns the string representation of the object
|
|
282
|
-
# @return [String] String presentation of the object
|
|
283
|
-
def to_s
|
|
284
|
-
to_hash.to_s
|
|
285
|
-
end
|
|
286
|
-
|
|
287
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
288
|
-
# @return [Hash] Returns the object in the form of hash
|
|
289
|
-
def to_body
|
|
290
|
-
to_hash
|
|
291
|
-
end
|
|
292
|
-
|
|
293
238
|
# Returns the object in the form of hash
|
|
294
239
|
# @return [Hash] Returns the object in the form of hash
|
|
295
240
|
def to_hash
|
|
@@ -306,24 +251,6 @@ module DaytonaApiClient
|
|
|
306
251
|
hash
|
|
307
252
|
end
|
|
308
253
|
|
|
309
|
-
# Outputs non-array value in the form of hash
|
|
310
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
311
|
-
# @param [Object] value Any valid value
|
|
312
|
-
# @return [Hash] Returns the value in the form of hash
|
|
313
|
-
def _to_hash(value)
|
|
314
|
-
if value.is_a?(Array)
|
|
315
|
-
value.compact.map { |v| _to_hash(v) }
|
|
316
|
-
elsif value.is_a?(Hash)
|
|
317
|
-
{}.tap do |hash|
|
|
318
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
319
|
-
end
|
|
320
|
-
elsif value.respond_to? :to_hash
|
|
321
|
-
value.to_hash
|
|
322
|
-
else
|
|
323
|
-
value
|
|
324
|
-
end
|
|
325
|
-
end
|
|
326
|
-
|
|
327
254
|
end
|
|
328
255
|
|
|
329
256
|
end
|