daytona_api_client 0.169.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 +1 -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 +4 -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 +2 -75
- 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 +2 -1
- data/project.json +6 -2
- metadata +2 -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 RegionScreenshotResponse
|
|
17
|
+
class RegionScreenshotResponse < ApiModelBase
|
|
18
18
|
# Base64 encoded screenshot image data of the specified region
|
|
19
19
|
attr_accessor :screenshot
|
|
20
20
|
|
|
@@ -164,61 +164,6 @@ module DaytonaApiClient
|
|
|
164
164
|
new(transformed_hash)
|
|
165
165
|
end
|
|
166
166
|
|
|
167
|
-
# Deserializes the data based on type
|
|
168
|
-
# @param string type Data type
|
|
169
|
-
# @param string value Value to be deserialized
|
|
170
|
-
# @return [Object] Deserialized data
|
|
171
|
-
def self._deserialize(type, value)
|
|
172
|
-
case type.to_sym
|
|
173
|
-
when :Time
|
|
174
|
-
Time.parse(value)
|
|
175
|
-
when :Date
|
|
176
|
-
Date.parse(value)
|
|
177
|
-
when :String
|
|
178
|
-
value.to_s
|
|
179
|
-
when :Integer
|
|
180
|
-
value.to_i
|
|
181
|
-
when :Float
|
|
182
|
-
value.to_f
|
|
183
|
-
when :Boolean
|
|
184
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
185
|
-
true
|
|
186
|
-
else
|
|
187
|
-
false
|
|
188
|
-
end
|
|
189
|
-
when :Object
|
|
190
|
-
# generic object (usually a Hash), return directly
|
|
191
|
-
value
|
|
192
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
193
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
194
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
195
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
196
|
-
k_type = Regexp.last_match[:k_type]
|
|
197
|
-
v_type = Regexp.last_match[:v_type]
|
|
198
|
-
{}.tap do |hash|
|
|
199
|
-
value.each do |k, v|
|
|
200
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
201
|
-
end
|
|
202
|
-
end
|
|
203
|
-
else # model
|
|
204
|
-
# models (e.g. Pet) or oneOf
|
|
205
|
-
klass = DaytonaApiClient.const_get(type)
|
|
206
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
207
|
-
end
|
|
208
|
-
end
|
|
209
|
-
|
|
210
|
-
# Returns the string representation of the object
|
|
211
|
-
# @return [String] String presentation of the object
|
|
212
|
-
def to_s
|
|
213
|
-
to_hash.to_s
|
|
214
|
-
end
|
|
215
|
-
|
|
216
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
217
|
-
# @return [Hash] Returns the object in the form of hash
|
|
218
|
-
def to_body
|
|
219
|
-
to_hash
|
|
220
|
-
end
|
|
221
|
-
|
|
222
167
|
# Returns the object in the form of hash
|
|
223
168
|
# @return [Hash] Returns the object in the form of hash
|
|
224
169
|
def to_hash
|
|
@@ -235,24 +180,6 @@ module DaytonaApiClient
|
|
|
235
180
|
hash
|
|
236
181
|
end
|
|
237
182
|
|
|
238
|
-
# Outputs non-array value in the form of hash
|
|
239
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
240
|
-
# @param [Object] value Any valid value
|
|
241
|
-
# @return [Hash] Returns the value in the form of hash
|
|
242
|
-
def _to_hash(value)
|
|
243
|
-
if value.is_a?(Array)
|
|
244
|
-
value.compact.map { |v| _to_hash(v) }
|
|
245
|
-
elsif value.is_a?(Hash)
|
|
246
|
-
{}.tap do |hash|
|
|
247
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
248
|
-
end
|
|
249
|
-
elsif value.respond_to? :to_hash
|
|
250
|
-
value.to_hash
|
|
251
|
-
else
|
|
252
|
-
value
|
|
253
|
-
end
|
|
254
|
-
end
|
|
255
|
-
|
|
256
183
|
end
|
|
257
184
|
|
|
258
185
|
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
|
|
|
@@ -18,9 +18,10 @@ module DaytonaApiClient
|
|
|
18
18
|
SHARED = "shared".freeze
|
|
19
19
|
DEDICATED = "dedicated".freeze
|
|
20
20
|
CUSTOM = "custom".freeze
|
|
21
|
+
UNKNOWN_DEFAULT_OPEN_API = "unknown_default_open_api".freeze
|
|
21
22
|
|
|
22
23
|
def self.all_vars
|
|
23
|
-
@all_vars ||= [SHARED, DEDICATED, CUSTOM].freeze
|
|
24
|
+
@all_vars ||= [SHARED, DEDICATED, CUSTOM, UNKNOWN_DEFAULT_OPEN_API].freeze
|
|
24
25
|
end
|
|
25
26
|
|
|
26
27
|
# Builds the enum from string
|
|
@@ -35,7 +36,7 @@ module DaytonaApiClient
|
|
|
35
36
|
# @return [String] The enum value
|
|
36
37
|
def build_from_hash(value)
|
|
37
38
|
return value if RegionType.all_vars.include?(value)
|
|
38
|
-
|
|
39
|
+
UNKNOWN_DEFAULT_OPEN_API
|
|
39
40
|
end
|
|
40
41
|
end
|
|
41
42
|
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 RegionUsageOverview
|
|
17
|
+
class RegionUsageOverview < ApiModelBase
|
|
18
18
|
attr_accessor :region_id
|
|
19
19
|
|
|
20
20
|
attr_accessor :total_cpu_quota
|
|
@@ -347,61 +347,6 @@ module DaytonaApiClient
|
|
|
347
347
|
new(transformed_hash)
|
|
348
348
|
end
|
|
349
349
|
|
|
350
|
-
# Deserializes the data based on type
|
|
351
|
-
# @param string type Data type
|
|
352
|
-
# @param string value Value to be deserialized
|
|
353
|
-
# @return [Object] Deserialized data
|
|
354
|
-
def self._deserialize(type, value)
|
|
355
|
-
case type.to_sym
|
|
356
|
-
when :Time
|
|
357
|
-
Time.parse(value)
|
|
358
|
-
when :Date
|
|
359
|
-
Date.parse(value)
|
|
360
|
-
when :String
|
|
361
|
-
value.to_s
|
|
362
|
-
when :Integer
|
|
363
|
-
value.to_i
|
|
364
|
-
when :Float
|
|
365
|
-
value.to_f
|
|
366
|
-
when :Boolean
|
|
367
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
368
|
-
true
|
|
369
|
-
else
|
|
370
|
-
false
|
|
371
|
-
end
|
|
372
|
-
when :Object
|
|
373
|
-
# generic object (usually a Hash), return directly
|
|
374
|
-
value
|
|
375
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
376
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
377
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
378
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
379
|
-
k_type = Regexp.last_match[:k_type]
|
|
380
|
-
v_type = Regexp.last_match[:v_type]
|
|
381
|
-
{}.tap do |hash|
|
|
382
|
-
value.each do |k, v|
|
|
383
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
384
|
-
end
|
|
385
|
-
end
|
|
386
|
-
else # model
|
|
387
|
-
# models (e.g. Pet) or oneOf
|
|
388
|
-
klass = DaytonaApiClient.const_get(type)
|
|
389
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
390
|
-
end
|
|
391
|
-
end
|
|
392
|
-
|
|
393
|
-
# Returns the string representation of the object
|
|
394
|
-
# @return [String] String presentation of the object
|
|
395
|
-
def to_s
|
|
396
|
-
to_hash.to_s
|
|
397
|
-
end
|
|
398
|
-
|
|
399
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
400
|
-
# @return [Hash] Returns the object in the form of hash
|
|
401
|
-
def to_body
|
|
402
|
-
to_hash
|
|
403
|
-
end
|
|
404
|
-
|
|
405
350
|
# Returns the object in the form of hash
|
|
406
351
|
# @return [Hash] Returns the object in the form of hash
|
|
407
352
|
def to_hash
|
|
@@ -418,24 +363,6 @@ module DaytonaApiClient
|
|
|
418
363
|
hash
|
|
419
364
|
end
|
|
420
365
|
|
|
421
|
-
# Outputs non-array value in the form of hash
|
|
422
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
423
|
-
# @param [Object] value Any valid value
|
|
424
|
-
# @return [Hash] Returns the value in the form of hash
|
|
425
|
-
def _to_hash(value)
|
|
426
|
-
if value.is_a?(Array)
|
|
427
|
-
value.compact.map { |v| _to_hash(v) }
|
|
428
|
-
elsif value.is_a?(Hash)
|
|
429
|
-
{}.tap do |hash|
|
|
430
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
431
|
-
end
|
|
432
|
-
elsif value.respond_to? :to_hash
|
|
433
|
-
value.to_hash
|
|
434
|
-
else
|
|
435
|
-
value
|
|
436
|
-
end
|
|
437
|
-
end
|
|
438
|
-
|
|
439
366
|
end
|
|
440
367
|
|
|
441
368
|
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 RegistryPushAccessDto
|
|
17
|
+
class RegistryPushAccessDto < ApiModelBase
|
|
18
18
|
# Temporary username for registry authentication
|
|
19
19
|
attr_accessor :username
|
|
20
20
|
|
|
@@ -279,61 +279,6 @@ module DaytonaApiClient
|
|
|
279
279
|
new(transformed_hash)
|
|
280
280
|
end
|
|
281
281
|
|
|
282
|
-
# Deserializes the data based on type
|
|
283
|
-
# @param string type Data type
|
|
284
|
-
# @param string value Value to be deserialized
|
|
285
|
-
# @return [Object] Deserialized data
|
|
286
|
-
def self._deserialize(type, value)
|
|
287
|
-
case type.to_sym
|
|
288
|
-
when :Time
|
|
289
|
-
Time.parse(value)
|
|
290
|
-
when :Date
|
|
291
|
-
Date.parse(value)
|
|
292
|
-
when :String
|
|
293
|
-
value.to_s
|
|
294
|
-
when :Integer
|
|
295
|
-
value.to_i
|
|
296
|
-
when :Float
|
|
297
|
-
value.to_f
|
|
298
|
-
when :Boolean
|
|
299
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
300
|
-
true
|
|
301
|
-
else
|
|
302
|
-
false
|
|
303
|
-
end
|
|
304
|
-
when :Object
|
|
305
|
-
# generic object (usually a Hash), return directly
|
|
306
|
-
value
|
|
307
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
308
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
309
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
310
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
311
|
-
k_type = Regexp.last_match[:k_type]
|
|
312
|
-
v_type = Regexp.last_match[:v_type]
|
|
313
|
-
{}.tap do |hash|
|
|
314
|
-
value.each do |k, v|
|
|
315
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
316
|
-
end
|
|
317
|
-
end
|
|
318
|
-
else # model
|
|
319
|
-
# models (e.g. Pet) or oneOf
|
|
320
|
-
klass = DaytonaApiClient.const_get(type)
|
|
321
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
322
|
-
end
|
|
323
|
-
end
|
|
324
|
-
|
|
325
|
-
# Returns the string representation of the object
|
|
326
|
-
# @return [String] String presentation of the object
|
|
327
|
-
def to_s
|
|
328
|
-
to_hash.to_s
|
|
329
|
-
end
|
|
330
|
-
|
|
331
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
332
|
-
# @return [Hash] Returns the object in the form of hash
|
|
333
|
-
def to_body
|
|
334
|
-
to_hash
|
|
335
|
-
end
|
|
336
|
-
|
|
337
282
|
# Returns the object in the form of hash
|
|
338
283
|
# @return [Hash] Returns the object in the form of hash
|
|
339
284
|
def to_hash
|
|
@@ -350,24 +295,6 @@ module DaytonaApiClient
|
|
|
350
295
|
hash
|
|
351
296
|
end
|
|
352
297
|
|
|
353
|
-
# Outputs non-array value in the form of hash
|
|
354
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
355
|
-
# @param [Object] value Any valid value
|
|
356
|
-
# @return [Hash] Returns the value in the form of hash
|
|
357
|
-
def _to_hash(value)
|
|
358
|
-
if value.is_a?(Array)
|
|
359
|
-
value.compact.map { |v| _to_hash(v) }
|
|
360
|
-
elsif value.is_a?(Hash)
|
|
361
|
-
{}.tap do |hash|
|
|
362
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
363
|
-
end
|
|
364
|
-
elsif value.respond_to? :to_hash
|
|
365
|
-
value.to_hash
|
|
366
|
-
else
|
|
367
|
-
value
|
|
368
|
-
end
|
|
369
|
-
end
|
|
370
|
-
|
|
371
298
|
end
|
|
372
299
|
|
|
373
300
|
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 ReplaceRequest
|
|
17
|
+
class ReplaceRequest < ApiModelBase
|
|
18
18
|
attr_accessor :files
|
|
19
19
|
|
|
20
20
|
attr_accessor :pattern
|
|
@@ -197,61 +197,6 @@ module DaytonaApiClient
|
|
|
197
197
|
new(transformed_hash)
|
|
198
198
|
end
|
|
199
199
|
|
|
200
|
-
# Deserializes the data based on type
|
|
201
|
-
# @param string type Data type
|
|
202
|
-
# @param string value Value to be deserialized
|
|
203
|
-
# @return [Object] Deserialized data
|
|
204
|
-
def self._deserialize(type, value)
|
|
205
|
-
case type.to_sym
|
|
206
|
-
when :Time
|
|
207
|
-
Time.parse(value)
|
|
208
|
-
when :Date
|
|
209
|
-
Date.parse(value)
|
|
210
|
-
when :String
|
|
211
|
-
value.to_s
|
|
212
|
-
when :Integer
|
|
213
|
-
value.to_i
|
|
214
|
-
when :Float
|
|
215
|
-
value.to_f
|
|
216
|
-
when :Boolean
|
|
217
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
218
|
-
true
|
|
219
|
-
else
|
|
220
|
-
false
|
|
221
|
-
end
|
|
222
|
-
when :Object
|
|
223
|
-
# generic object (usually a Hash), return directly
|
|
224
|
-
value
|
|
225
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
226
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
227
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
228
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
229
|
-
k_type = Regexp.last_match[:k_type]
|
|
230
|
-
v_type = Regexp.last_match[:v_type]
|
|
231
|
-
{}.tap do |hash|
|
|
232
|
-
value.each do |k, v|
|
|
233
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
234
|
-
end
|
|
235
|
-
end
|
|
236
|
-
else # model
|
|
237
|
-
# models (e.g. Pet) or oneOf
|
|
238
|
-
klass = DaytonaApiClient.const_get(type)
|
|
239
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
240
|
-
end
|
|
241
|
-
end
|
|
242
|
-
|
|
243
|
-
# Returns the string representation of the object
|
|
244
|
-
# @return [String] String presentation of the object
|
|
245
|
-
def to_s
|
|
246
|
-
to_hash.to_s
|
|
247
|
-
end
|
|
248
|
-
|
|
249
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
250
|
-
# @return [Hash] Returns the object in the form of hash
|
|
251
|
-
def to_body
|
|
252
|
-
to_hash
|
|
253
|
-
end
|
|
254
|
-
|
|
255
200
|
# Returns the object in the form of hash
|
|
256
201
|
# @return [Hash] Returns the object in the form of hash
|
|
257
202
|
def to_hash
|
|
@@ -268,24 +213,6 @@ module DaytonaApiClient
|
|
|
268
213
|
hash
|
|
269
214
|
end
|
|
270
215
|
|
|
271
|
-
# Outputs non-array value in the form of hash
|
|
272
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
273
|
-
# @param [Object] value Any valid value
|
|
274
|
-
# @return [Hash] Returns the value in the form of hash
|
|
275
|
-
def _to_hash(value)
|
|
276
|
-
if value.is_a?(Array)
|
|
277
|
-
value.compact.map { |v| _to_hash(v) }
|
|
278
|
-
elsif value.is_a?(Hash)
|
|
279
|
-
{}.tap do |hash|
|
|
280
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
281
|
-
end
|
|
282
|
-
elsif value.respond_to? :to_hash
|
|
283
|
-
value.to_hash
|
|
284
|
-
else
|
|
285
|
-
value
|
|
286
|
-
end
|
|
287
|
-
end
|
|
288
|
-
|
|
289
216
|
end
|
|
290
217
|
|
|
291
218
|
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 ReplaceResult
|
|
17
|
+
class ReplaceResult < ApiModelBase
|
|
18
18
|
attr_accessor :file
|
|
19
19
|
|
|
20
20
|
attr_accessor :success
|
|
@@ -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 ResizeSandbox
|
|
17
|
+
class ResizeSandbox < ApiModelBase
|
|
18
18
|
# CPU cores to allocate to the sandbox (minimum: 1)
|
|
19
19
|
attr_accessor :cpu
|
|
20
20
|
|
|
@@ -204,61 +204,6 @@ module DaytonaApiClient
|
|
|
204
204
|
new(transformed_hash)
|
|
205
205
|
end
|
|
206
206
|
|
|
207
|
-
# Deserializes the data based on type
|
|
208
|
-
# @param string type Data type
|
|
209
|
-
# @param string value Value to be deserialized
|
|
210
|
-
# @return [Object] Deserialized data
|
|
211
|
-
def self._deserialize(type, value)
|
|
212
|
-
case type.to_sym
|
|
213
|
-
when :Time
|
|
214
|
-
Time.parse(value)
|
|
215
|
-
when :Date
|
|
216
|
-
Date.parse(value)
|
|
217
|
-
when :String
|
|
218
|
-
value.to_s
|
|
219
|
-
when :Integer
|
|
220
|
-
value.to_i
|
|
221
|
-
when :Float
|
|
222
|
-
value.to_f
|
|
223
|
-
when :Boolean
|
|
224
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
225
|
-
true
|
|
226
|
-
else
|
|
227
|
-
false
|
|
228
|
-
end
|
|
229
|
-
when :Object
|
|
230
|
-
# generic object (usually a Hash), return directly
|
|
231
|
-
value
|
|
232
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
233
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
234
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
235
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
236
|
-
k_type = Regexp.last_match[:k_type]
|
|
237
|
-
v_type = Regexp.last_match[:v_type]
|
|
238
|
-
{}.tap do |hash|
|
|
239
|
-
value.each do |k, v|
|
|
240
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
241
|
-
end
|
|
242
|
-
end
|
|
243
|
-
else # model
|
|
244
|
-
# models (e.g. Pet) or oneOf
|
|
245
|
-
klass = DaytonaApiClient.const_get(type)
|
|
246
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
247
|
-
end
|
|
248
|
-
end
|
|
249
|
-
|
|
250
|
-
# Returns the string representation of the object
|
|
251
|
-
# @return [String] String presentation of the object
|
|
252
|
-
def to_s
|
|
253
|
-
to_hash.to_s
|
|
254
|
-
end
|
|
255
|
-
|
|
256
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
257
|
-
# @return [Hash] Returns the object in the form of hash
|
|
258
|
-
def to_body
|
|
259
|
-
to_hash
|
|
260
|
-
end
|
|
261
|
-
|
|
262
207
|
# Returns the object in the form of hash
|
|
263
208
|
# @return [Hash] Returns the object in the form of hash
|
|
264
209
|
def to_hash
|
|
@@ -275,24 +220,6 @@ module DaytonaApiClient
|
|
|
275
220
|
hash
|
|
276
221
|
end
|
|
277
222
|
|
|
278
|
-
# Outputs non-array value in the form of hash
|
|
279
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
280
|
-
# @param [Object] value Any valid value
|
|
281
|
-
# @return [Hash] Returns the value in the form of hash
|
|
282
|
-
def _to_hash(value)
|
|
283
|
-
if value.is_a?(Array)
|
|
284
|
-
value.compact.map { |v| _to_hash(v) }
|
|
285
|
-
elsif value.is_a?(Hash)
|
|
286
|
-
{}.tap do |hash|
|
|
287
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
288
|
-
end
|
|
289
|
-
elsif value.respond_to? :to_hash
|
|
290
|
-
value.to_hash
|
|
291
|
-
else
|
|
292
|
-
value
|
|
293
|
-
end
|
|
294
|
-
end
|
|
295
|
-
|
|
296
223
|
end
|
|
297
224
|
|
|
298
225
|
end
|