daytona_api_client 0.197.0 → 0.199.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.
Files changed (77) hide show
  1. checksums.yaml +4 -4
  2. data/.openapi-generator/FILES +0 -68
  3. data/lib/daytona_api_client/api/sandbox_api.rb +70 -0
  4. data/lib/daytona_api_client/models/create_sandbox.rb +11 -1
  5. data/lib/daytona_api_client/models/sandbox.rb +11 -1
  6. data/lib/daytona_api_client/models/sandbox_list_item.rb +11 -1
  7. data/lib/daytona_api_client/version.rb +1 -1
  8. data/lib/daytona_api_client.rb +0 -68
  9. metadata +1 -69
  10. data/lib/daytona_api_client/api/toolbox_api.rb +0 -5108
  11. data/lib/daytona_api_client/models/command.rb +0 -202
  12. data/lib/daytona_api_client/models/completion_context.rb +0 -173
  13. data/lib/daytona_api_client/models/completion_item.rb +0 -218
  14. data/lib/daytona_api_client/models/completion_list.rb +0 -192
  15. data/lib/daytona_api_client/models/compressed_screenshot_response.rb +0 -185
  16. data/lib/daytona_api_client/models/computer_use_start_response.rb +0 -192
  17. data/lib/daytona_api_client/models/computer_use_status_response.rb +0 -189
  18. data/lib/daytona_api_client/models/computer_use_stop_response.rb +0 -192
  19. data/lib/daytona_api_client/models/create_session_request.rb +0 -165
  20. data/lib/daytona_api_client/models/display_info_response.rb +0 -167
  21. data/lib/daytona_api_client/models/download_files.rb +0 -167
  22. data/lib/daytona_api_client/models/execute_request.rb +0 -184
  23. data/lib/daytona_api_client/models/execute_response.rb +0 -192
  24. data/lib/daytona_api_client/models/file_info.rb +0 -346
  25. data/lib/daytona_api_client/models/file_status.rb +0 -242
  26. data/lib/daytona_api_client/models/git_add_request.rb +0 -193
  27. data/lib/daytona_api_client/models/git_branch_request.rb +0 -190
  28. data/lib/daytona_api_client/models/git_checkout_request.rb +0 -190
  29. data/lib/daytona_api_client/models/git_clone_request.rb +0 -226
  30. data/lib/daytona_api_client/models/git_commit_info.rb +0 -268
  31. data/lib/daytona_api_client/models/git_commit_request.rb +0 -254
  32. data/lib/daytona_api_client/models/git_commit_response.rb +0 -164
  33. data/lib/daytona_api_client/models/git_delete_branch_request.rb +0 -190
  34. data/lib/daytona_api_client/models/git_repo_request.rb +0 -182
  35. data/lib/daytona_api_client/models/git_status.rb +0 -219
  36. data/lib/daytona_api_client/models/keyboard_hotkey_request.rb +0 -165
  37. data/lib/daytona_api_client/models/keyboard_press_request.rb +0 -177
  38. data/lib/daytona_api_client/models/keyboard_type_request.rb +0 -175
  39. data/lib/daytona_api_client/models/list_branch_response.rb +0 -166
  40. data/lib/daytona_api_client/models/lsp_completion_params.rb +0 -254
  41. data/lib/daytona_api_client/models/lsp_document_request.rb +0 -219
  42. data/lib/daytona_api_client/models/lsp_location.rb +0 -190
  43. data/lib/daytona_api_client/models/lsp_server_request.rb +0 -192
  44. data/lib/daytona_api_client/models/lsp_symbol.rb +0 -216
  45. data/lib/daytona_api_client/models/match.rb +0 -216
  46. data/lib/daytona_api_client/models/mouse_click_request.rb +0 -212
  47. data/lib/daytona_api_client/models/mouse_click_response.rb +0 -192
  48. data/lib/daytona_api_client/models/mouse_drag_request.rb +0 -256
  49. data/lib/daytona_api_client/models/mouse_drag_response.rb +0 -192
  50. data/lib/daytona_api_client/models/mouse_move_request.rb +0 -192
  51. data/lib/daytona_api_client/models/mouse_move_response.rb +0 -192
  52. data/lib/daytona_api_client/models/mouse_position.rb +0 -192
  53. data/lib/daytona_api_client/models/mouse_scroll_request.rb +0 -229
  54. data/lib/daytona_api_client/models/mouse_scroll_response.rb +0 -165
  55. data/lib/daytona_api_client/models/position.rb +0 -190
  56. data/lib/daytona_api_client/models/process_errors_response.rb +0 -192
  57. data/lib/daytona_api_client/models/process_logs_response.rb +0 -192
  58. data/lib/daytona_api_client/models/process_restart_response.rb +0 -192
  59. data/lib/daytona_api_client/models/process_status_response.rb +0 -192
  60. data/lib/daytona_api_client/models/project_dir_response.rb +0 -147
  61. data/lib/daytona_api_client/models/pty_create_request.rb +0 -217
  62. data/lib/daytona_api_client/models/pty_create_response.rb +0 -165
  63. data/lib/daytona_api_client/models/pty_list_response.rb +0 -167
  64. data/lib/daytona_api_client/models/pty_resize_request.rb +0 -192
  65. data/lib/daytona_api_client/models/pty_session_info.rb +0 -354
  66. data/lib/daytona_api_client/models/range.rb +0 -190
  67. data/lib/daytona_api_client/models/region_screenshot_response.rb +0 -185
  68. data/lib/daytona_api_client/models/replace_request.rb +0 -218
  69. data/lib/daytona_api_client/models/replace_result.rb +0 -165
  70. data/lib/daytona_api_client/models/screenshot_response.rb +0 -185
  71. data/lib/daytona_api_client/models/search_files_response.rb +0 -166
  72. data/lib/daytona_api_client/models/session.rb +0 -180
  73. data/lib/daytona_api_client/models/session_execute_request.rb +0 -185
  74. data/lib/daytona_api_client/models/session_execute_response.rb +0 -168
  75. data/lib/daytona_api_client/models/user_home_dir_response.rb +0 -147
  76. data/lib/daytona_api_client/models/windows_response.rb +0 -194
  77. data/lib/daytona_api_client/models/work_dir_response.rb +0 -147
@@ -1,167 +0,0 @@
1
- =begin
2
- #Daytona
3
-
4
- #Daytona AI platform API Docs
5
-
6
- The version of the OpenAPI document: 1.0
7
- Contact: support@daytona.com
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.21.0
10
-
11
- =end
12
-
13
- require 'date'
14
- require 'time'
15
-
16
- module DaytonaApiClient
17
- class DownloadFiles < ApiModelBase
18
- # List of remote file paths to download
19
- attr_accessor :paths
20
-
21
- # Attribute mapping from ruby-style variable name to JSON key.
22
- def self.attribute_map
23
- {
24
- :'paths' => :'paths'
25
- }
26
- end
27
-
28
- # Returns attribute mapping this model knows about
29
- def self.acceptable_attribute_map
30
- attribute_map
31
- end
32
-
33
- # Returns all the JSON keys this model knows about
34
- def self.acceptable_attributes
35
- acceptable_attribute_map.values
36
- end
37
-
38
- # Attribute type mapping.
39
- def self.openapi_types
40
- {
41
- :'paths' => :'Array<String>'
42
- }
43
- end
44
-
45
- # List of attributes with nullable: true
46
- def self.openapi_nullable
47
- Set.new([
48
- ])
49
- end
50
-
51
- # Initializes the object
52
- # @param [Hash] attributes Model attributes in the form of hash
53
- def initialize(attributes = {})
54
- if (!attributes.is_a?(Hash))
55
- fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::DownloadFiles` initialize method"
56
- end
57
-
58
- # check to see if the attribute exists and convert string to symbol for hash key
59
- acceptable_attribute_map = self.class.acceptable_attribute_map
60
- attributes = attributes.each_with_object({}) { |(k, v), h|
61
- if (!acceptable_attribute_map.key?(k.to_sym))
62
- fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::DownloadFiles`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
63
- end
64
- h[k.to_sym] = v
65
- }
66
-
67
- if attributes.key?(:'paths')
68
- if (value = attributes[:'paths']).is_a?(Array)
69
- self.paths = value
70
- end
71
- else
72
- self.paths = nil
73
- end
74
- end
75
-
76
- # Show invalid properties with the reasons. Usually used together with valid?
77
- # @return Array for valid properties with the reasons
78
- def list_invalid_properties
79
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
80
- invalid_properties = Array.new
81
- if @paths.nil?
82
- invalid_properties.push('invalid value for "paths", paths cannot be nil.')
83
- end
84
-
85
- invalid_properties
86
- end
87
-
88
- # Check to see if the all the properties in the model are valid
89
- # @return true if the model is valid
90
- def valid?
91
- warn '[DEPRECATED] the `valid?` method is obsolete'
92
- return false if @paths.nil?
93
- true
94
- end
95
-
96
- # Custom attribute writer method with validation
97
- # @param [Object] paths Value to be assigned
98
- def paths=(paths)
99
- if paths.nil?
100
- fail ArgumentError, 'paths cannot be nil'
101
- end
102
-
103
- @paths = paths
104
- end
105
-
106
- # Checks equality by comparing each attribute.
107
- # @param [Object] Object to be compared
108
- def ==(o)
109
- return true if self.equal?(o)
110
- self.class == o.class &&
111
- paths == o.paths
112
- end
113
-
114
- # @see the `==` method
115
- # @param [Object] Object to be compared
116
- def eql?(o)
117
- self == o
118
- end
119
-
120
- # Calculates hash code according to all attributes.
121
- # @return [Integer] Hash code
122
- def hash
123
- [paths].hash
124
- end
125
-
126
- # Builds the object from hash
127
- # @param [Hash] attributes Model attributes in the form of hash
128
- # @return [Object] Returns the model itself
129
- def self.build_from_hash(attributes)
130
- return nil unless attributes.is_a?(Hash)
131
- attributes = attributes.transform_keys(&:to_sym)
132
- transformed_hash = {}
133
- openapi_types.each_pair do |key, type|
134
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
135
- transformed_hash["#{key}"] = nil
136
- elsif type =~ /\AArray<(.*)>/i
137
- # check to ensure the input is an array given that the attribute
138
- # is documented as an array but the input is not
139
- if attributes[attribute_map[key]].is_a?(Array)
140
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
141
- end
142
- elsif !attributes[attribute_map[key]].nil?
143
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
144
- end
145
- end
146
- new(transformed_hash)
147
- end
148
-
149
- # Returns the object in the form of hash
150
- # @return [Hash] Returns the object in the form of hash
151
- def to_hash
152
- hash = {}
153
- self.class.attribute_map.each_pair do |attr, param|
154
- value = self.send(attr)
155
- if value.nil?
156
- is_nullable = self.class.openapi_nullable.include?(attr)
157
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
158
- end
159
-
160
- hash[param] = _to_hash(value)
161
- end
162
- hash
163
- end
164
-
165
- end
166
-
167
- end
@@ -1,184 +0,0 @@
1
- =begin
2
- #Daytona
3
-
4
- #Daytona AI platform API Docs
5
-
6
- The version of the OpenAPI document: 1.0
7
- Contact: support@daytona.com
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.21.0
10
-
11
- =end
12
-
13
- require 'date'
14
- require 'time'
15
-
16
- module DaytonaApiClient
17
- class ExecuteRequest < ApiModelBase
18
- attr_accessor :command
19
-
20
- # Current working directory
21
- attr_accessor :cwd
22
-
23
- # Timeout in seconds, defaults to 10 seconds
24
- attr_accessor :timeout
25
-
26
- # Attribute mapping from ruby-style variable name to JSON key.
27
- def self.attribute_map
28
- {
29
- :'command' => :'command',
30
- :'cwd' => :'cwd',
31
- :'timeout' => :'timeout'
32
- }
33
- end
34
-
35
- # Returns attribute mapping this model knows about
36
- def self.acceptable_attribute_map
37
- attribute_map
38
- end
39
-
40
- # Returns all the JSON keys this model knows about
41
- def self.acceptable_attributes
42
- acceptable_attribute_map.values
43
- end
44
-
45
- # Attribute type mapping.
46
- def self.openapi_types
47
- {
48
- :'command' => :'String',
49
- :'cwd' => :'String',
50
- :'timeout' => :'Float'
51
- }
52
- end
53
-
54
- # List of attributes with nullable: true
55
- def self.openapi_nullable
56
- Set.new([
57
- ])
58
- end
59
-
60
- # Initializes the object
61
- # @param [Hash] attributes Model attributes in the form of hash
62
- def initialize(attributes = {})
63
- if (!attributes.is_a?(Hash))
64
- fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::ExecuteRequest` initialize method"
65
- end
66
-
67
- # check to see if the attribute exists and convert string to symbol for hash key
68
- acceptable_attribute_map = self.class.acceptable_attribute_map
69
- attributes = attributes.each_with_object({}) { |(k, v), h|
70
- if (!acceptable_attribute_map.key?(k.to_sym))
71
- fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::ExecuteRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
72
- end
73
- h[k.to_sym] = v
74
- }
75
-
76
- if attributes.key?(:'command')
77
- self.command = attributes[:'command']
78
- else
79
- self.command = nil
80
- end
81
-
82
- if attributes.key?(:'cwd')
83
- self.cwd = attributes[:'cwd']
84
- end
85
-
86
- if attributes.key?(:'timeout')
87
- self.timeout = attributes[:'timeout']
88
- end
89
- end
90
-
91
- # Show invalid properties with the reasons. Usually used together with valid?
92
- # @return Array for valid properties with the reasons
93
- def list_invalid_properties
94
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
95
- invalid_properties = Array.new
96
- if @command.nil?
97
- invalid_properties.push('invalid value for "command", command cannot be nil.')
98
- end
99
-
100
- invalid_properties
101
- end
102
-
103
- # Check to see if the all the properties in the model are valid
104
- # @return true if the model is valid
105
- def valid?
106
- warn '[DEPRECATED] the `valid?` method is obsolete'
107
- return false if @command.nil?
108
- true
109
- end
110
-
111
- # Custom attribute writer method with validation
112
- # @param [Object] command Value to be assigned
113
- def command=(command)
114
- if command.nil?
115
- fail ArgumentError, 'command cannot be nil'
116
- end
117
-
118
- @command = command
119
- end
120
-
121
- # Checks equality by comparing each attribute.
122
- # @param [Object] Object to be compared
123
- def ==(o)
124
- return true if self.equal?(o)
125
- self.class == o.class &&
126
- command == o.command &&
127
- cwd == o.cwd &&
128
- timeout == o.timeout
129
- end
130
-
131
- # @see the `==` method
132
- # @param [Object] Object to be compared
133
- def eql?(o)
134
- self == o
135
- end
136
-
137
- # Calculates hash code according to all attributes.
138
- # @return [Integer] Hash code
139
- def hash
140
- [command, cwd, timeout].hash
141
- end
142
-
143
- # Builds the object from hash
144
- # @param [Hash] attributes Model attributes in the form of hash
145
- # @return [Object] Returns the model itself
146
- def self.build_from_hash(attributes)
147
- return nil unless attributes.is_a?(Hash)
148
- attributes = attributes.transform_keys(&:to_sym)
149
- transformed_hash = {}
150
- openapi_types.each_pair do |key, type|
151
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
152
- transformed_hash["#{key}"] = nil
153
- elsif type =~ /\AArray<(.*)>/i
154
- # check to ensure the input is an array given that the attribute
155
- # is documented as an array but the input is not
156
- if attributes[attribute_map[key]].is_a?(Array)
157
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
158
- end
159
- elsif !attributes[attribute_map[key]].nil?
160
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
161
- end
162
- end
163
- new(transformed_hash)
164
- end
165
-
166
- # Returns the object in the form of hash
167
- # @return [Hash] Returns the object in the form of hash
168
- def to_hash
169
- hash = {}
170
- self.class.attribute_map.each_pair do |attr, param|
171
- value = self.send(attr)
172
- if value.nil?
173
- is_nullable = self.class.openapi_nullable.include?(attr)
174
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
175
- end
176
-
177
- hash[param] = _to_hash(value)
178
- end
179
- hash
180
- end
181
-
182
- end
183
-
184
- end
@@ -1,192 +0,0 @@
1
- =begin
2
- #Daytona
3
-
4
- #Daytona AI platform API Docs
5
-
6
- The version of the OpenAPI document: 1.0
7
- Contact: support@daytona.com
8
- Generated by: https://openapi-generator.tech
9
- Generator version: 7.21.0
10
-
11
- =end
12
-
13
- require 'date'
14
- require 'time'
15
-
16
- module DaytonaApiClient
17
- class ExecuteResponse < ApiModelBase
18
- # Exit code
19
- attr_accessor :exit_code
20
-
21
- # Command output
22
- attr_accessor :result
23
-
24
- # Attribute mapping from ruby-style variable name to JSON key.
25
- def self.attribute_map
26
- {
27
- :'exit_code' => :'exitCode',
28
- :'result' => :'result'
29
- }
30
- end
31
-
32
- # Returns attribute mapping this model knows about
33
- def self.acceptable_attribute_map
34
- attribute_map
35
- end
36
-
37
- # Returns all the JSON keys this model knows about
38
- def self.acceptable_attributes
39
- acceptable_attribute_map.values
40
- end
41
-
42
- # Attribute type mapping.
43
- def self.openapi_types
44
- {
45
- :'exit_code' => :'Float',
46
- :'result' => :'String'
47
- }
48
- end
49
-
50
- # List of attributes with nullable: true
51
- def self.openapi_nullable
52
- Set.new([
53
- ])
54
- end
55
-
56
- # Initializes the object
57
- # @param [Hash] attributes Model attributes in the form of hash
58
- def initialize(attributes = {})
59
- if (!attributes.is_a?(Hash))
60
- fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::ExecuteResponse` initialize method"
61
- end
62
-
63
- # check to see if the attribute exists and convert string to symbol for hash key
64
- acceptable_attribute_map = self.class.acceptable_attribute_map
65
- attributes = attributes.each_with_object({}) { |(k, v), h|
66
- if (!acceptable_attribute_map.key?(k.to_sym))
67
- fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::ExecuteResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
68
- end
69
- h[k.to_sym] = v
70
- }
71
-
72
- if attributes.key?(:'exit_code')
73
- self.exit_code = attributes[:'exit_code']
74
- else
75
- self.exit_code = nil
76
- end
77
-
78
- if attributes.key?(:'result')
79
- self.result = attributes[:'result']
80
- else
81
- self.result = nil
82
- end
83
- end
84
-
85
- # Show invalid properties with the reasons. Usually used together with valid?
86
- # @return Array for valid properties with the reasons
87
- def list_invalid_properties
88
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
89
- invalid_properties = Array.new
90
- if @exit_code.nil?
91
- invalid_properties.push('invalid value for "exit_code", exit_code cannot be nil.')
92
- end
93
-
94
- if @result.nil?
95
- invalid_properties.push('invalid value for "result", result cannot be nil.')
96
- end
97
-
98
- invalid_properties
99
- end
100
-
101
- # Check to see if the all the properties in the model are valid
102
- # @return true if the model is valid
103
- def valid?
104
- warn '[DEPRECATED] the `valid?` method is obsolete'
105
- return false if @exit_code.nil?
106
- return false if @result.nil?
107
- true
108
- end
109
-
110
- # Custom attribute writer method with validation
111
- # @param [Object] exit_code Value to be assigned
112
- def exit_code=(exit_code)
113
- if exit_code.nil?
114
- fail ArgumentError, 'exit_code cannot be nil'
115
- end
116
-
117
- @exit_code = exit_code
118
- end
119
-
120
- # Custom attribute writer method with validation
121
- # @param [Object] result Value to be assigned
122
- def result=(result)
123
- if result.nil?
124
- fail ArgumentError, 'result cannot be nil'
125
- end
126
-
127
- @result = result
128
- end
129
-
130
- # Checks equality by comparing each attribute.
131
- # @param [Object] Object to be compared
132
- def ==(o)
133
- return true if self.equal?(o)
134
- self.class == o.class &&
135
- exit_code == o.exit_code &&
136
- result == o.result
137
- end
138
-
139
- # @see the `==` method
140
- # @param [Object] Object to be compared
141
- def eql?(o)
142
- self == o
143
- end
144
-
145
- # Calculates hash code according to all attributes.
146
- # @return [Integer] Hash code
147
- def hash
148
- [exit_code, result].hash
149
- end
150
-
151
- # Builds the object from hash
152
- # @param [Hash] attributes Model attributes in the form of hash
153
- # @return [Object] Returns the model itself
154
- def self.build_from_hash(attributes)
155
- return nil unless attributes.is_a?(Hash)
156
- attributes = attributes.transform_keys(&:to_sym)
157
- transformed_hash = {}
158
- openapi_types.each_pair do |key, type|
159
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
160
- transformed_hash["#{key}"] = nil
161
- elsif type =~ /\AArray<(.*)>/i
162
- # check to ensure the input is an array given that the attribute
163
- # is documented as an array but the input is not
164
- if attributes[attribute_map[key]].is_a?(Array)
165
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
166
- end
167
- elsif !attributes[attribute_map[key]].nil?
168
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
169
- end
170
- end
171
- new(transformed_hash)
172
- end
173
-
174
- # Returns the object in the form of hash
175
- # @return [Hash] Returns the object in the form of hash
176
- def to_hash
177
- hash = {}
178
- self.class.attribute_map.each_pair do |attr, param|
179
- value = self.send(attr)
180
- if value.nil?
181
- is_nullable = self.class.openapi_nullable.include?(attr)
182
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
183
- end
184
-
185
- hash[param] = _to_hash(value)
186
- end
187
- hash
188
- end
189
-
190
- end
191
-
192
- end