daytona_toolbox_api_client 0.169.0 → 0.171.0.rc.1
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_toolbox_api_client/api/computer_use_api.rb +1 -1
- data/lib/daytona_toolbox_api_client/api/file_system_api.rb +1 -1
- data/lib/daytona_toolbox_api_client/api/git_api.rb +1 -1
- data/lib/daytona_toolbox_api_client/api/info_api.rb +1 -1
- data/lib/daytona_toolbox_api_client/api/interpreter_api.rb +1 -1
- data/lib/daytona_toolbox_api_client/api/lsp_api.rb +1 -1
- data/lib/daytona_toolbox_api_client/api/port_api.rb +1 -1
- data/lib/daytona_toolbox_api_client/api/process_api.rb +1 -1
- data/lib/daytona_toolbox_api_client/api/server_api.rb +1 -1
- data/lib/daytona_toolbox_api_client/api_client.rb +7 -3
- data/lib/daytona_toolbox_api_client/api_error.rb +1 -1
- data/lib/daytona_toolbox_api_client/api_model_base.rb +88 -0
- data/lib/daytona_toolbox_api_client/configuration.rb +1 -1
- data/lib/daytona_toolbox_api_client/models/chart.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/chart_element.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/code_run_artifacts.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/code_run_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/code_run_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/command.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/completion_context.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/completion_item.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/completion_list.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/computer_use_start_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/computer_use_status_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/computer_use_stop_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/create_context_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/create_session_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/display_info.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/display_info_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/execute_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/execute_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/file_info.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/file_status.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/files_download_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/git_add_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/git_branch_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/git_checkout_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/git_clone_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/git_commit_info.rb +18 -91
- data/lib/daytona_toolbox_api_client/models/git_commit_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/git_commit_response.rb +18 -91
- data/lib/daytona_toolbox_api_client/models/git_delete_branch_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/git_repo_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/git_status.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/initialize_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/interpreter_context.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/is_port_in_use_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/keyboard_hotkey_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/keyboard_press_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/keyboard_type_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/list_branch_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/list_contexts_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/list_recordings_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/lsp_completion_params.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/lsp_document_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/lsp_location.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/lsp_position.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/lsp_range.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/lsp_server_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/lsp_symbol.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/match.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/mouse_click_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/mouse_click_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/mouse_drag_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/mouse_drag_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/mouse_move_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/mouse_position_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/mouse_scroll_request.rb +21 -75
- data/lib/daytona_toolbox_api_client/models/port_list.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/position.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/process_errors_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/process_logs_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/process_restart_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/process_status.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/process_status_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/pty_create_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/pty_create_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/pty_list_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/pty_resize_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/pty_session_info.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/recording.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/replace_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/replace_result.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/screenshot_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/scroll_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/search_files_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/session.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/session_command_logs_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/session_execute_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/session_execute_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/session_send_input_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/start_recording_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/status.rb +4 -3
- data/lib/daytona_toolbox_api_client/models/stop_recording_request.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/user_home_dir_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/window_info.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/windows_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/models/work_dir_response.rb +2 -75
- data/lib/daytona_toolbox_api_client/version.rb +2 -2
- data/lib/daytona_toolbox_api_client.rb +2 -1
- data/project.json +6 -2
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: da992abd26d44aeb0861d7555eeaa3c3c52a280cba5e268f2e808b9c4dec7627
|
|
4
|
+
data.tar.gz: 2a9c905cc48f8663b02bf8d77359bebeaf4c604c14da1a63ceebdac97a3b4dde
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 581670d04e8cc4dd8c26901433fe793038406c5dc8511a71d52d708174aa8fd3d0f0666df1e33e4a25422d97e7c0f2519d69b49dc0b7e3d0344d699906f13a9e
|
|
7
|
+
data.tar.gz: db66c7efeb615329145d77696e7dc86dc30d0a20b69a794b6d8d2f4f1a0222a5ec02796cbdfd01588f10c35c23445a64e212feff3500f312a57f6690ea9657ab
|
data/.openapi-generator/FILES
CHANGED
|
@@ -15,6 +15,7 @@ lib/daytona_toolbox_api_client/api/process_api.rb
|
|
|
15
15
|
lib/daytona_toolbox_api_client/api/server_api.rb
|
|
16
16
|
lib/daytona_toolbox_api_client/api_client.rb
|
|
17
17
|
lib/daytona_toolbox_api_client/api_error.rb
|
|
18
|
+
lib/daytona_toolbox_api_client/api_model_base.rb
|
|
18
19
|
lib/daytona_toolbox_api_client/configuration.rb
|
|
19
20
|
lib/daytona_toolbox_api_client/models/chart.rb
|
|
20
21
|
lib/daytona_toolbox_api_client/models/chart_element.rb
|
data/.openapi-generator/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.21.0
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: v0.0.0-dev
|
|
7
7
|
|
|
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
|
|
|
@@ -277,9 +277,13 @@ module DaytonaToolboxApiClient
|
|
|
277
277
|
data.each { |k, v| hash[k] = convert_to_type(v, sub_type) }
|
|
278
278
|
end
|
|
279
279
|
else
|
|
280
|
-
# models (e.g. Pet) or oneOf
|
|
280
|
+
# models (e.g. Pet) or oneOf/anyOf
|
|
281
281
|
klass = DaytonaToolboxApiClient.const_get(return_type)
|
|
282
|
-
klass.respond_to?(:openapi_one_of)
|
|
282
|
+
if klass.respond_to?(:openapi_one_of) || klass.respond_to?(:openapi_any_of)
|
|
283
|
+
klass.build(data)
|
|
284
|
+
else
|
|
285
|
+
klass.build_from_hash(data)
|
|
286
|
+
end
|
|
283
287
|
end
|
|
284
288
|
end
|
|
285
289
|
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Daytona Toolbox API
|
|
3
|
+
|
|
4
|
+
#Daytona Toolbox API
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: v0.0.0-dev
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.21.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
module DaytonaToolboxApiClient
|
|
14
|
+
class ApiModelBase
|
|
15
|
+
# Deserializes the data based on type
|
|
16
|
+
# @param string type Data type
|
|
17
|
+
# @param string value Value to be deserialized
|
|
18
|
+
# @return [Object] Deserialized data
|
|
19
|
+
def self._deserialize(type, value)
|
|
20
|
+
case type.to_sym
|
|
21
|
+
when :Time
|
|
22
|
+
Time.parse(value)
|
|
23
|
+
when :Date
|
|
24
|
+
Date.parse(value)
|
|
25
|
+
when :String
|
|
26
|
+
value.to_s
|
|
27
|
+
when :Integer
|
|
28
|
+
value.to_i
|
|
29
|
+
when :Float
|
|
30
|
+
value.to_f
|
|
31
|
+
when :Boolean
|
|
32
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
33
|
+
true
|
|
34
|
+
else
|
|
35
|
+
false
|
|
36
|
+
end
|
|
37
|
+
when :Object
|
|
38
|
+
# generic object (usually a Hash), return directly
|
|
39
|
+
value
|
|
40
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
41
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
42
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
43
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
44
|
+
k_type = Regexp.last_match[:k_type]
|
|
45
|
+
v_type = Regexp.last_match[:v_type]
|
|
46
|
+
{}.tap do |hash|
|
|
47
|
+
value.each do |k, v|
|
|
48
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
else # model
|
|
52
|
+
# models (e.g. Pet) or oneOf
|
|
53
|
+
klass = DaytonaToolboxApiClient.const_get(type)
|
|
54
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Returns the string representation of the object
|
|
59
|
+
# @return [String] String presentation of the object
|
|
60
|
+
def to_s
|
|
61
|
+
to_hash.to_s
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
65
|
+
# @return [Hash] Returns the object in the form of hash
|
|
66
|
+
def to_body
|
|
67
|
+
to_hash
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Outputs non-array value in the form of hash
|
|
71
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
72
|
+
# @param [Object] value Any valid value
|
|
73
|
+
# @return [Hash] Returns the value in the form of hash
|
|
74
|
+
def _to_hash(value)
|
|
75
|
+
if value.is_a?(Array)
|
|
76
|
+
value.compact.map { |v| _to_hash(v) }
|
|
77
|
+
elsif value.is_a?(Hash)
|
|
78
|
+
{}.tap do |hash|
|
|
79
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
80
|
+
end
|
|
81
|
+
elsif value.respond_to? :to_hash
|
|
82
|
+
value.to_hash
|
|
83
|
+
else
|
|
84
|
+
value
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: v0.0.0-dev
|
|
7
7
|
|
|
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 DaytonaToolboxApiClient
|
|
17
|
-
class Chart
|
|
17
|
+
class Chart < ApiModelBase
|
|
18
18
|
attr_accessor :elements
|
|
19
19
|
|
|
20
20
|
attr_accessor :png
|
|
@@ -235,61 +235,6 @@ module DaytonaToolboxApiClient
|
|
|
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 = DaytonaToolboxApiClient.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 DaytonaToolboxApiClient
|
|
|
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
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: v0.0.0-dev
|
|
7
7
|
|
|
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 DaytonaToolboxApiClient
|
|
17
|
-
class ChartElement
|
|
17
|
+
class ChartElement < ApiModelBase
|
|
18
18
|
attr_accessor :angle
|
|
19
19
|
|
|
20
20
|
attr_accessor :first_quartile
|
|
@@ -274,61 +274,6 @@ module DaytonaToolboxApiClient
|
|
|
274
274
|
new(transformed_hash)
|
|
275
275
|
end
|
|
276
276
|
|
|
277
|
-
# Deserializes the data based on type
|
|
278
|
-
# @param string type Data type
|
|
279
|
-
# @param string value Value to be deserialized
|
|
280
|
-
# @return [Object] Deserialized data
|
|
281
|
-
def self._deserialize(type, value)
|
|
282
|
-
case type.to_sym
|
|
283
|
-
when :Time
|
|
284
|
-
Time.parse(value)
|
|
285
|
-
when :Date
|
|
286
|
-
Date.parse(value)
|
|
287
|
-
when :String
|
|
288
|
-
value.to_s
|
|
289
|
-
when :Integer
|
|
290
|
-
value.to_i
|
|
291
|
-
when :Float
|
|
292
|
-
value.to_f
|
|
293
|
-
when :Boolean
|
|
294
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
295
|
-
true
|
|
296
|
-
else
|
|
297
|
-
false
|
|
298
|
-
end
|
|
299
|
-
when :Object
|
|
300
|
-
# generic object (usually a Hash), return directly
|
|
301
|
-
value
|
|
302
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
303
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
304
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
305
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
306
|
-
k_type = Regexp.last_match[:k_type]
|
|
307
|
-
v_type = Regexp.last_match[:v_type]
|
|
308
|
-
{}.tap do |hash|
|
|
309
|
-
value.each do |k, v|
|
|
310
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
311
|
-
end
|
|
312
|
-
end
|
|
313
|
-
else # model
|
|
314
|
-
# models (e.g. Pet) or oneOf
|
|
315
|
-
klass = DaytonaToolboxApiClient.const_get(type)
|
|
316
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
317
|
-
end
|
|
318
|
-
end
|
|
319
|
-
|
|
320
|
-
# Returns the string representation of the object
|
|
321
|
-
# @return [String] String presentation of the object
|
|
322
|
-
def to_s
|
|
323
|
-
to_hash.to_s
|
|
324
|
-
end
|
|
325
|
-
|
|
326
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
327
|
-
# @return [Hash] Returns the object in the form of hash
|
|
328
|
-
def to_body
|
|
329
|
-
to_hash
|
|
330
|
-
end
|
|
331
|
-
|
|
332
277
|
# Returns the object in the form of hash
|
|
333
278
|
# @return [Hash] Returns the object in the form of hash
|
|
334
279
|
def to_hash
|
|
@@ -345,24 +290,6 @@ module DaytonaToolboxApiClient
|
|
|
345
290
|
hash
|
|
346
291
|
end
|
|
347
292
|
|
|
348
|
-
# Outputs non-array value in the form of hash
|
|
349
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
350
|
-
# @param [Object] value Any valid value
|
|
351
|
-
# @return [Hash] Returns the value in the form of hash
|
|
352
|
-
def _to_hash(value)
|
|
353
|
-
if value.is_a?(Array)
|
|
354
|
-
value.compact.map { |v| _to_hash(v) }
|
|
355
|
-
elsif value.is_a?(Hash)
|
|
356
|
-
{}.tap do |hash|
|
|
357
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
358
|
-
end
|
|
359
|
-
elsif value.respond_to? :to_hash
|
|
360
|
-
value.to_hash
|
|
361
|
-
else
|
|
362
|
-
value
|
|
363
|
-
end
|
|
364
|
-
end
|
|
365
|
-
|
|
366
293
|
end
|
|
367
294
|
|
|
368
295
|
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: v0.0.0-dev
|
|
7
7
|
|
|
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 DaytonaToolboxApiClient
|
|
17
|
-
class CodeRunArtifacts
|
|
17
|
+
class CodeRunArtifacts < ApiModelBase
|
|
18
18
|
attr_accessor :charts
|
|
19
19
|
|
|
20
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -128,61 +128,6 @@ module DaytonaToolboxApiClient
|
|
|
128
128
|
new(transformed_hash)
|
|
129
129
|
end
|
|
130
130
|
|
|
131
|
-
# Deserializes the data based on type
|
|
132
|
-
# @param string type Data type
|
|
133
|
-
# @param string value Value to be deserialized
|
|
134
|
-
# @return [Object] Deserialized data
|
|
135
|
-
def self._deserialize(type, value)
|
|
136
|
-
case type.to_sym
|
|
137
|
-
when :Time
|
|
138
|
-
Time.parse(value)
|
|
139
|
-
when :Date
|
|
140
|
-
Date.parse(value)
|
|
141
|
-
when :String
|
|
142
|
-
value.to_s
|
|
143
|
-
when :Integer
|
|
144
|
-
value.to_i
|
|
145
|
-
when :Float
|
|
146
|
-
value.to_f
|
|
147
|
-
when :Boolean
|
|
148
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
149
|
-
true
|
|
150
|
-
else
|
|
151
|
-
false
|
|
152
|
-
end
|
|
153
|
-
when :Object
|
|
154
|
-
# generic object (usually a Hash), return directly
|
|
155
|
-
value
|
|
156
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
157
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
158
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
159
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
160
|
-
k_type = Regexp.last_match[:k_type]
|
|
161
|
-
v_type = Regexp.last_match[:v_type]
|
|
162
|
-
{}.tap do |hash|
|
|
163
|
-
value.each do |k, v|
|
|
164
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
165
|
-
end
|
|
166
|
-
end
|
|
167
|
-
else # model
|
|
168
|
-
# models (e.g. Pet) or oneOf
|
|
169
|
-
klass = DaytonaToolboxApiClient.const_get(type)
|
|
170
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
171
|
-
end
|
|
172
|
-
end
|
|
173
|
-
|
|
174
|
-
# Returns the string representation of the object
|
|
175
|
-
# @return [String] String presentation of the object
|
|
176
|
-
def to_s
|
|
177
|
-
to_hash.to_s
|
|
178
|
-
end
|
|
179
|
-
|
|
180
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
181
|
-
# @return [Hash] Returns the object in the form of hash
|
|
182
|
-
def to_body
|
|
183
|
-
to_hash
|
|
184
|
-
end
|
|
185
|
-
|
|
186
131
|
# Returns the object in the form of hash
|
|
187
132
|
# @return [Hash] Returns the object in the form of hash
|
|
188
133
|
def to_hash
|
|
@@ -199,24 +144,6 @@ module DaytonaToolboxApiClient
|
|
|
199
144
|
hash
|
|
200
145
|
end
|
|
201
146
|
|
|
202
|
-
# Outputs non-array value in the form of hash
|
|
203
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
204
|
-
# @param [Object] value Any valid value
|
|
205
|
-
# @return [Hash] Returns the value in the form of hash
|
|
206
|
-
def _to_hash(value)
|
|
207
|
-
if value.is_a?(Array)
|
|
208
|
-
value.compact.map { |v| _to_hash(v) }
|
|
209
|
-
elsif value.is_a?(Hash)
|
|
210
|
-
{}.tap do |hash|
|
|
211
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
212
|
-
end
|
|
213
|
-
elsif value.respond_to? :to_hash
|
|
214
|
-
value.to_hash
|
|
215
|
-
else
|
|
216
|
-
value
|
|
217
|
-
end
|
|
218
|
-
end
|
|
219
|
-
|
|
220
147
|
end
|
|
221
148
|
|
|
222
149
|
end
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: v0.0.0-dev
|
|
7
7
|
|
|
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 DaytonaToolboxApiClient
|
|
17
|
-
class CodeRunRequest
|
|
17
|
+
class CodeRunRequest < ApiModelBase
|
|
18
18
|
attr_accessor :argv
|
|
19
19
|
|
|
20
20
|
attr_accessor :code
|
|
@@ -201,61 +201,6 @@ module DaytonaToolboxApiClient
|
|
|
201
201
|
new(transformed_hash)
|
|
202
202
|
end
|
|
203
203
|
|
|
204
|
-
# Deserializes the data based on type
|
|
205
|
-
# @param string type Data type
|
|
206
|
-
# @param string value Value to be deserialized
|
|
207
|
-
# @return [Object] Deserialized data
|
|
208
|
-
def self._deserialize(type, value)
|
|
209
|
-
case type.to_sym
|
|
210
|
-
when :Time
|
|
211
|
-
Time.parse(value)
|
|
212
|
-
when :Date
|
|
213
|
-
Date.parse(value)
|
|
214
|
-
when :String
|
|
215
|
-
value.to_s
|
|
216
|
-
when :Integer
|
|
217
|
-
value.to_i
|
|
218
|
-
when :Float
|
|
219
|
-
value.to_f
|
|
220
|
-
when :Boolean
|
|
221
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
222
|
-
true
|
|
223
|
-
else
|
|
224
|
-
false
|
|
225
|
-
end
|
|
226
|
-
when :Object
|
|
227
|
-
# generic object (usually a Hash), return directly
|
|
228
|
-
value
|
|
229
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
|
230
|
-
inner_type = Regexp.last_match[:inner_type]
|
|
231
|
-
value.map { |v| _deserialize(inner_type, v) }
|
|
232
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
233
|
-
k_type = Regexp.last_match[:k_type]
|
|
234
|
-
v_type = Regexp.last_match[:v_type]
|
|
235
|
-
{}.tap do |hash|
|
|
236
|
-
value.each do |k, v|
|
|
237
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
238
|
-
end
|
|
239
|
-
end
|
|
240
|
-
else # model
|
|
241
|
-
# models (e.g. Pet) or oneOf
|
|
242
|
-
klass = DaytonaToolboxApiClient.const_get(type)
|
|
243
|
-
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
244
|
-
end
|
|
245
|
-
end
|
|
246
|
-
|
|
247
|
-
# Returns the string representation of the object
|
|
248
|
-
# @return [String] String presentation of the object
|
|
249
|
-
def to_s
|
|
250
|
-
to_hash.to_s
|
|
251
|
-
end
|
|
252
|
-
|
|
253
|
-
# to_body is an alias to to_hash (backward compatibility)
|
|
254
|
-
# @return [Hash] Returns the object in the form of hash
|
|
255
|
-
def to_body
|
|
256
|
-
to_hash
|
|
257
|
-
end
|
|
258
|
-
|
|
259
204
|
# Returns the object in the form of hash
|
|
260
205
|
# @return [Hash] Returns the object in the form of hash
|
|
261
206
|
def to_hash
|
|
@@ -272,24 +217,6 @@ module DaytonaToolboxApiClient
|
|
|
272
217
|
hash
|
|
273
218
|
end
|
|
274
219
|
|
|
275
|
-
# Outputs non-array value in the form of hash
|
|
276
|
-
# For object, use to_hash. Otherwise, just return the value
|
|
277
|
-
# @param [Object] value Any valid value
|
|
278
|
-
# @return [Hash] Returns the value in the form of hash
|
|
279
|
-
def _to_hash(value)
|
|
280
|
-
if value.is_a?(Array)
|
|
281
|
-
value.compact.map { |v| _to_hash(v) }
|
|
282
|
-
elsif value.is_a?(Hash)
|
|
283
|
-
{}.tap do |hash|
|
|
284
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
285
|
-
end
|
|
286
|
-
elsif value.respond_to? :to_hash
|
|
287
|
-
value.to_hash
|
|
288
|
-
else
|
|
289
|
-
value
|
|
290
|
-
end
|
|
291
|
-
end
|
|
292
|
-
|
|
293
220
|
end
|
|
294
221
|
|
|
295
222
|
end
|