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 AdminGetWebhookStatus200Response
|
|
17
|
+
class AdminGetWebhookStatus200Response < ApiModelBase
|
|
18
18
|
attr_accessor :enabled
|
|
19
19
|
|
|
20
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -126,61 +126,6 @@ module DaytonaApiClient
|
|
|
126
126
|
new(transformed_hash)
|
|
127
127
|
end
|
|
128
128
|
|
|
129
|
-
# Deserializes the data based on type
|
|
130
|
-
# @param string type Data type
|
|
131
|
-
# @param string value Value to be deserialized
|
|
132
|
-
# @return [Object] Deserialized data
|
|
133
|
-
def self._deserialize(type, value)
|
|
134
|
-
case type.to_sym
|
|
135
|
-
when :Time
|
|
136
|
-
Time.parse(value)
|
|
137
|
-
when :Date
|
|
138
|
-
Date.parse(value)
|
|
139
|
-
when :String
|
|
140
|
-
value.to_s
|
|
141
|
-
when :Integer
|
|
142
|
-
value.to_i
|
|
143
|
-
when :Float
|
|
144
|
-
value.to_f
|
|
145
|
-
when :Boolean
|
|
146
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
147
|
-
true
|
|
148
|
-
else
|
|
149
|
-
false
|
|
150
|
-
end
|
|
151
|
-
when :Object
|
|
152
|
-
# generic object (usually a Hash), return directly
|
|
153
|
-
value
|
|
154
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
155
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
156
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
157
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
158
|
-
k_type = Regexp.last_match[:k_type]
|
|
159
|
-
v_type = Regexp.last_match[:v_type]
|
|
160
|
-
{}.tap do |hash|
|
|
161
|
-
value.each do |k, v|
|
|
162
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
163
|
-
end
|
|
164
|
-
end
|
|
165
|
-
else # model
|
|
166
|
-
# models (e.g. Pet) or oneOf
|
|
167
|
-
klass = DaytonaApiClient.const_get(type)
|
|
168
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
169
|
-
end
|
|
170
|
-
end
|
|
171
|
-
|
|
172
|
-
# Returns the string representation of the object
|
|
173
|
-
# @return [String] String presentation of the object
|
|
174
|
-
def to_s
|
|
175
|
-
to_hash.to_s
|
|
176
|
-
end
|
|
177
|
-
|
|
178
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
179
|
-
# @return [Hash] Returns the object in the form of hash
|
|
180
|
-
def to_body
|
|
181
|
-
to_hash
|
|
182
|
-
end
|
|
183
|
-
|
|
184
129
|
# Returns the object in the form of hash
|
|
185
130
|
# @return [Hash] Returns the object in the form of hash
|
|
186
131
|
def to_hash
|
|
@@ -197,24 +142,6 @@ module DaytonaApiClient
|
|
|
197
142
|
hash
|
|
198
143
|
end
|
|
199
144
|
|
|
200
|
-
# Outputs non-array value in the form of hash
|
|
201
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
202
|
-
# @param [Object] value Any valid value
|
|
203
|
-
# @return [Hash] Returns the value in the form of hash
|
|
204
|
-
def _to_hash(value)
|
|
205
|
-
if value.is_a?(Array)
|
|
206
|
-
value.compact.map { |v| _to_hash(v) }
|
|
207
|
-
elsif value.is_a?(Hash)
|
|
208
|
-
{}.tap do |hash|
|
|
209
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
210
|
-
end
|
|
211
|
-
elsif value.respond_to? :to_hash
|
|
212
|
-
value.to_hash
|
|
213
|
-
else
|
|
214
|
-
value
|
|
215
|
-
end
|
|
216
|
-
end
|
|
217
|
-
|
|
218
145
|
end
|
|
219
146
|
|
|
220
147
|
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 Announcement
|
|
17
|
+
class Announcement < ApiModelBase
|
|
18
18
|
# The announcement text
|
|
19
19
|
attr_accessor :text
|
|
20
20
|
|
|
@@ -154,61 +154,6 @@ module DaytonaApiClient
|
|
|
154
154
|
new(transformed_hash)
|
|
155
155
|
end
|
|
156
156
|
|
|
157
|
-
# Deserializes the data based on type
|
|
158
|
-
# @param string type Data type
|
|
159
|
-
# @param string value Value to be deserialized
|
|
160
|
-
# @return [Object] Deserialized data
|
|
161
|
-
def self._deserialize(type, value)
|
|
162
|
-
case type.to_sym
|
|
163
|
-
when :Time
|
|
164
|
-
Time.parse(value)
|
|
165
|
-
when :Date
|
|
166
|
-
Date.parse(value)
|
|
167
|
-
when :String
|
|
168
|
-
value.to_s
|
|
169
|
-
when :Integer
|
|
170
|
-
value.to_i
|
|
171
|
-
when :Float
|
|
172
|
-
value.to_f
|
|
173
|
-
when :Boolean
|
|
174
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
175
|
-
true
|
|
176
|
-
else
|
|
177
|
-
false
|
|
178
|
-
end
|
|
179
|
-
when :Object
|
|
180
|
-
# generic object (usually a Hash), return directly
|
|
181
|
-
value
|
|
182
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
183
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
184
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
185
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
186
|
-
k_type = Regexp.last_match[:k_type]
|
|
187
|
-
v_type = Regexp.last_match[:v_type]
|
|
188
|
-
{}.tap do |hash|
|
|
189
|
-
value.each do |k, v|
|
|
190
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
191
|
-
end
|
|
192
|
-
end
|
|
193
|
-
else # model
|
|
194
|
-
# models (e.g. Pet) or oneOf
|
|
195
|
-
klass = DaytonaApiClient.const_get(type)
|
|
196
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
197
|
-
end
|
|
198
|
-
end
|
|
199
|
-
|
|
200
|
-
# Returns the string representation of the object
|
|
201
|
-
# @return [String] String presentation of the object
|
|
202
|
-
def to_s
|
|
203
|
-
to_hash.to_s
|
|
204
|
-
end
|
|
205
|
-
|
|
206
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
207
|
-
# @return [Hash] Returns the object in the form of hash
|
|
208
|
-
def to_body
|
|
209
|
-
to_hash
|
|
210
|
-
end
|
|
211
|
-
|
|
212
157
|
# Returns the object in the form of hash
|
|
213
158
|
# @return [Hash] Returns the object in the form of hash
|
|
214
159
|
def to_hash
|
|
@@ -225,24 +170,6 @@ module DaytonaApiClient
|
|
|
225
170
|
hash
|
|
226
171
|
end
|
|
227
172
|
|
|
228
|
-
# Outputs non-array value in the form of hash
|
|
229
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
230
|
-
# @param [Object] value Any valid value
|
|
231
|
-
# @return [Hash] Returns the value in the form of hash
|
|
232
|
-
def _to_hash(value)
|
|
233
|
-
if value.is_a?(Array)
|
|
234
|
-
value.compact.map { |v| _to_hash(v) }
|
|
235
|
-
elsif value.is_a?(Hash)
|
|
236
|
-
{}.tap do |hash|
|
|
237
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
238
|
-
end
|
|
239
|
-
elsif value.respond_to? :to_hash
|
|
240
|
-
value.to_hash
|
|
241
|
-
else
|
|
242
|
-
value
|
|
243
|
-
end
|
|
244
|
-
end
|
|
245
|
-
|
|
246
173
|
end
|
|
247
174
|
|
|
248
175
|
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 ApiKeyList
|
|
17
|
+
class ApiKeyList < ApiModelBase
|
|
18
18
|
# The name of the API key
|
|
19
19
|
attr_accessor :name
|
|
20
20
|
|
|
@@ -292,61 +292,6 @@ module DaytonaApiClient
|
|
|
292
292
|
new(transformed_hash)
|
|
293
293
|
end
|
|
294
294
|
|
|
295
|
-
# Deserializes the data based on type
|
|
296
|
-
# @param string type Data type
|
|
297
|
-
# @param string value Value to be deserialized
|
|
298
|
-
# @return [Object] Deserialized data
|
|
299
|
-
def self._deserialize(type, value)
|
|
300
|
-
case type.to_sym
|
|
301
|
-
when :Time
|
|
302
|
-
Time.parse(value)
|
|
303
|
-
when :Date
|
|
304
|
-
Date.parse(value)
|
|
305
|
-
when :String
|
|
306
|
-
value.to_s
|
|
307
|
-
when :Integer
|
|
308
|
-
value.to_i
|
|
309
|
-
when :Float
|
|
310
|
-
value.to_f
|
|
311
|
-
when :Boolean
|
|
312
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
313
|
-
true
|
|
314
|
-
else
|
|
315
|
-
false
|
|
316
|
-
end
|
|
317
|
-
when :Object
|
|
318
|
-
# generic object (usually a Hash), return directly
|
|
319
|
-
value
|
|
320
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
321
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
322
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
323
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
324
|
-
k_type = Regexp.last_match[:k_type]
|
|
325
|
-
v_type = Regexp.last_match[:v_type]
|
|
326
|
-
{}.tap do |hash|
|
|
327
|
-
value.each do |k, v|
|
|
328
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
329
|
-
end
|
|
330
|
-
end
|
|
331
|
-
else # model
|
|
332
|
-
# models (e.g. Pet) or oneOf
|
|
333
|
-
klass = DaytonaApiClient.const_get(type)
|
|
334
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
335
|
-
end
|
|
336
|
-
end
|
|
337
|
-
|
|
338
|
-
# Returns the string representation of the object
|
|
339
|
-
# @return [String] String presentation of the object
|
|
340
|
-
def to_s
|
|
341
|
-
to_hash.to_s
|
|
342
|
-
end
|
|
343
|
-
|
|
344
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
345
|
-
# @return [Hash] Returns the object in the form of hash
|
|
346
|
-
def to_body
|
|
347
|
-
to_hash
|
|
348
|
-
end
|
|
349
|
-
|
|
350
295
|
# Returns the object in the form of hash
|
|
351
296
|
# @return [Hash] Returns the object in the form of hash
|
|
352
297
|
def to_hash
|
|
@@ -363,24 +308,6 @@ module DaytonaApiClient
|
|
|
363
308
|
hash
|
|
364
309
|
end
|
|
365
310
|
|
|
366
|
-
# Outputs non-array value in the form of hash
|
|
367
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
368
|
-
# @param [Object] value Any valid value
|
|
369
|
-
# @return [Hash] Returns the value in the form of hash
|
|
370
|
-
def _to_hash(value)
|
|
371
|
-
if value.is_a?(Array)
|
|
372
|
-
value.compact.map { |v| _to_hash(v) }
|
|
373
|
-
elsif value.is_a?(Hash)
|
|
374
|
-
{}.tap do |hash|
|
|
375
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
376
|
-
end
|
|
377
|
-
elsif value.respond_to? :to_hash
|
|
378
|
-
value.to_hash
|
|
379
|
-
else
|
|
380
|
-
value
|
|
381
|
-
end
|
|
382
|
-
end
|
|
383
|
-
|
|
384
311
|
end
|
|
385
312
|
|
|
386
313
|
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 ApiKeyResponse
|
|
17
|
+
class ApiKeyResponse < ApiModelBase
|
|
18
18
|
# The name of the API key
|
|
19
19
|
attr_accessor :name
|
|
20
20
|
|
|
@@ -252,61 +252,6 @@ module DaytonaApiClient
|
|
|
252
252
|
new(transformed_hash)
|
|
253
253
|
end
|
|
254
254
|
|
|
255
|
-
# Deserializes the data based on type
|
|
256
|
-
# @param string type Data type
|
|
257
|
-
# @param string value Value to be deserialized
|
|
258
|
-
# @return [Object] Deserialized data
|
|
259
|
-
def self._deserialize(type, value)
|
|
260
|
-
case type.to_sym
|
|
261
|
-
when :Time
|
|
262
|
-
Time.parse(value)
|
|
263
|
-
when :Date
|
|
264
|
-
Date.parse(value)
|
|
265
|
-
when :String
|
|
266
|
-
value.to_s
|
|
267
|
-
when :Integer
|
|
268
|
-
value.to_i
|
|
269
|
-
when :Float
|
|
270
|
-
value.to_f
|
|
271
|
-
when :Boolean
|
|
272
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
273
|
-
true
|
|
274
|
-
else
|
|
275
|
-
false
|
|
276
|
-
end
|
|
277
|
-
when :Object
|
|
278
|
-
# generic object (usually a Hash), return directly
|
|
279
|
-
value
|
|
280
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
281
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
282
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
283
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
284
|
-
k_type = Regexp.last_match[:k_type]
|
|
285
|
-
v_type = Regexp.last_match[:v_type]
|
|
286
|
-
{}.tap do |hash|
|
|
287
|
-
value.each do |k, v|
|
|
288
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
289
|
-
end
|
|
290
|
-
end
|
|
291
|
-
else # model
|
|
292
|
-
# models (e.g. Pet) or oneOf
|
|
293
|
-
klass = DaytonaApiClient.const_get(type)
|
|
294
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
295
|
-
end
|
|
296
|
-
end
|
|
297
|
-
|
|
298
|
-
# Returns the string representation of the object
|
|
299
|
-
# @return [String] String presentation of the object
|
|
300
|
-
def to_s
|
|
301
|
-
to_hash.to_s
|
|
302
|
-
end
|
|
303
|
-
|
|
304
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
305
|
-
# @return [Hash] Returns the object in the form of hash
|
|
306
|
-
def to_body
|
|
307
|
-
to_hash
|
|
308
|
-
end
|
|
309
|
-
|
|
310
255
|
# Returns the object in the form of hash
|
|
311
256
|
# @return [Hash] Returns the object in the form of hash
|
|
312
257
|
def to_hash
|
|
@@ -323,24 +268,6 @@ module DaytonaApiClient
|
|
|
323
268
|
hash
|
|
324
269
|
end
|
|
325
270
|
|
|
326
|
-
# Outputs non-array value in the form of hash
|
|
327
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
328
|
-
# @param [Object] value Any valid value
|
|
329
|
-
# @return [Hash] Returns the value in the form of hash
|
|
330
|
-
def _to_hash(value)
|
|
331
|
-
if value.is_a?(Array)
|
|
332
|
-
value.compact.map { |v| _to_hash(v) }
|
|
333
|
-
elsif value.is_a?(Hash)
|
|
334
|
-
{}.tap do |hash|
|
|
335
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
336
|
-
end
|
|
337
|
-
elsif value.respond_to? :to_hash
|
|
338
|
-
value.to_hash
|
|
339
|
-
else
|
|
340
|
-
value
|
|
341
|
-
end
|
|
342
|
-
end
|
|
343
|
-
|
|
344
271
|
end
|
|
345
272
|
|
|
346
273
|
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 AuditLog
|
|
17
|
+
class AuditLog < ApiModelBase
|
|
18
18
|
attr_accessor :id
|
|
19
19
|
|
|
20
20
|
attr_accessor :actor_id
|
|
@@ -348,61 +348,6 @@ module DaytonaApiClient
|
|
|
348
348
|
new(transformed_hash)
|
|
349
349
|
end
|
|
350
350
|
|
|
351
|
-
# Deserializes the data based on type
|
|
352
|
-
# @param string type Data type
|
|
353
|
-
# @param string value Value to be deserialized
|
|
354
|
-
# @return [Object] Deserialized data
|
|
355
|
-
def self._deserialize(type, value)
|
|
356
|
-
case type.to_sym
|
|
357
|
-
when :Time
|
|
358
|
-
Time.parse(value)
|
|
359
|
-
when :Date
|
|
360
|
-
Date.parse(value)
|
|
361
|
-
when :String
|
|
362
|
-
value.to_s
|
|
363
|
-
when :Integer
|
|
364
|
-
value.to_i
|
|
365
|
-
when :Float
|
|
366
|
-
value.to_f
|
|
367
|
-
when :Boolean
|
|
368
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
369
|
-
true
|
|
370
|
-
else
|
|
371
|
-
false
|
|
372
|
-
end
|
|
373
|
-
when :Object
|
|
374
|
-
# generic object (usually a Hash), return directly
|
|
375
|
-
value
|
|
376
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
377
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
378
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
379
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
380
|
-
k_type = Regexp.last_match[:k_type]
|
|
381
|
-
v_type = Regexp.last_match[:v_type]
|
|
382
|
-
{}.tap do |hash|
|
|
383
|
-
value.each do |k, v|
|
|
384
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
385
|
-
end
|
|
386
|
-
end
|
|
387
|
-
else # model
|
|
388
|
-
# models (e.g. Pet) or oneOf
|
|
389
|
-
klass = DaytonaApiClient.const_get(type)
|
|
390
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
391
|
-
end
|
|
392
|
-
end
|
|
393
|
-
|
|
394
|
-
# Returns the string representation of the object
|
|
395
|
-
# @return [String] String presentation of the object
|
|
396
|
-
def to_s
|
|
397
|
-
to_hash.to_s
|
|
398
|
-
end
|
|
399
|
-
|
|
400
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
401
|
-
# @return [Hash] Returns the object in the form of hash
|
|
402
|
-
def to_body
|
|
403
|
-
to_hash
|
|
404
|
-
end
|
|
405
|
-
|
|
406
351
|
# Returns the object in the form of hash
|
|
407
352
|
# @return [Hash] Returns the object in the form of hash
|
|
408
353
|
def to_hash
|
|
@@ -419,24 +364,6 @@ module DaytonaApiClient
|
|
|
419
364
|
hash
|
|
420
365
|
end
|
|
421
366
|
|
|
422
|
-
# Outputs non-array value in the form of hash
|
|
423
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
424
|
-
# @param [Object] value Any valid value
|
|
425
|
-
# @return [Hash] Returns the value in the form of hash
|
|
426
|
-
def _to_hash(value)
|
|
427
|
-
if value.is_a?(Array)
|
|
428
|
-
value.compact.map { |v| _to_hash(v) }
|
|
429
|
-
elsif value.is_a?(Hash)
|
|
430
|
-
{}.tap do |hash|
|
|
431
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
432
|
-
end
|
|
433
|
-
elsif value.respond_to? :to_hash
|
|
434
|
-
value.to_hash
|
|
435
|
-
else
|
|
436
|
-
value
|
|
437
|
-
end
|
|
438
|
-
end
|
|
439
|
-
|
|
440
367
|
end
|
|
441
368
|
|
|
442
369
|
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 BuildInfo
|
|
17
|
+
class BuildInfo < ApiModelBase
|
|
18
18
|
# The Dockerfile content used for the build
|
|
19
19
|
attr_accessor :dockerfile_content
|
|
20
20
|
|
|
@@ -220,61 +220,6 @@ module DaytonaApiClient
|
|
|
220
220
|
new(transformed_hash)
|
|
221
221
|
end
|
|
222
222
|
|
|
223
|
-
# Deserializes the data based on type
|
|
224
|
-
# @param string type Data type
|
|
225
|
-
# @param string value Value to be deserialized
|
|
226
|
-
# @return [Object] Deserialized data
|
|
227
|
-
def self._deserialize(type, value)
|
|
228
|
-
case type.to_sym
|
|
229
|
-
when :Time
|
|
230
|
-
Time.parse(value)
|
|
231
|
-
when :Date
|
|
232
|
-
Date.parse(value)
|
|
233
|
-
when :String
|
|
234
|
-
value.to_s
|
|
235
|
-
when :Integer
|
|
236
|
-
value.to_i
|
|
237
|
-
when :Float
|
|
238
|
-
value.to_f
|
|
239
|
-
when :Boolean
|
|
240
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
241
|
-
true
|
|
242
|
-
else
|
|
243
|
-
false
|
|
244
|
-
end
|
|
245
|
-
when :Object
|
|
246
|
-
# generic object (usually a Hash), return directly
|
|
247
|
-
value
|
|
248
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
249
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
250
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
251
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
252
|
-
k_type = Regexp.last_match[:k_type]
|
|
253
|
-
v_type = Regexp.last_match[:v_type]
|
|
254
|
-
{}.tap do |hash|
|
|
255
|
-
value.each do |k, v|
|
|
256
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
257
|
-
end
|
|
258
|
-
end
|
|
259
|
-
else # model
|
|
260
|
-
# models (e.g. Pet) or oneOf
|
|
261
|
-
klass = DaytonaApiClient.const_get(type)
|
|
262
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
263
|
-
end
|
|
264
|
-
end
|
|
265
|
-
|
|
266
|
-
# Returns the string representation of the object
|
|
267
|
-
# @return [String] String presentation of the object
|
|
268
|
-
def to_s
|
|
269
|
-
to_hash.to_s
|
|
270
|
-
end
|
|
271
|
-
|
|
272
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
273
|
-
# @return [Hash] Returns the object in the form of hash
|
|
274
|
-
def to_body
|
|
275
|
-
to_hash
|
|
276
|
-
end
|
|
277
|
-
|
|
278
223
|
# Returns the object in the form of hash
|
|
279
224
|
# @return [Hash] Returns the object in the form of hash
|
|
280
225
|
def to_hash
|
|
@@ -291,24 +236,6 @@ module DaytonaApiClient
|
|
|
291
236
|
hash
|
|
292
237
|
end
|
|
293
238
|
|
|
294
|
-
# Outputs non-array value in the form of hash
|
|
295
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
296
|
-
# @param [Object] value Any valid value
|
|
297
|
-
# @return [Hash] Returns the value in the form of hash
|
|
298
|
-
def _to_hash(value)
|
|
299
|
-
if value.is_a?(Array)
|
|
300
|
-
value.compact.map { |v| _to_hash(v) }
|
|
301
|
-
elsif value.is_a?(Hash)
|
|
302
|
-
{}.tap do |hash|
|
|
303
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
304
|
-
end
|
|
305
|
-
elsif value.respond_to? :to_hash
|
|
306
|
-
value.to_hash
|
|
307
|
-
else
|
|
308
|
-
value
|
|
309
|
-
end
|
|
310
|
-
end
|
|
311
|
-
|
|
312
239
|
end
|
|
313
240
|
|
|
314
241
|
end
|