daytona_api_client 0.197.0 → 0.198.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 (73) hide show
  1. checksums.yaml +4 -4
  2. data/.openapi-generator/FILES +0 -68
  3. data/lib/daytona_api_client/version.rb +1 -1
  4. data/lib/daytona_api_client.rb +0 -68
  5. metadata +1 -69
  6. data/lib/daytona_api_client/api/toolbox_api.rb +0 -5108
  7. data/lib/daytona_api_client/models/command.rb +0 -202
  8. data/lib/daytona_api_client/models/completion_context.rb +0 -173
  9. data/lib/daytona_api_client/models/completion_item.rb +0 -218
  10. data/lib/daytona_api_client/models/completion_list.rb +0 -192
  11. data/lib/daytona_api_client/models/compressed_screenshot_response.rb +0 -185
  12. data/lib/daytona_api_client/models/computer_use_start_response.rb +0 -192
  13. data/lib/daytona_api_client/models/computer_use_status_response.rb +0 -189
  14. data/lib/daytona_api_client/models/computer_use_stop_response.rb +0 -192
  15. data/lib/daytona_api_client/models/create_session_request.rb +0 -165
  16. data/lib/daytona_api_client/models/display_info_response.rb +0 -167
  17. data/lib/daytona_api_client/models/download_files.rb +0 -167
  18. data/lib/daytona_api_client/models/execute_request.rb +0 -184
  19. data/lib/daytona_api_client/models/execute_response.rb +0 -192
  20. data/lib/daytona_api_client/models/file_info.rb +0 -346
  21. data/lib/daytona_api_client/models/file_status.rb +0 -242
  22. data/lib/daytona_api_client/models/git_add_request.rb +0 -193
  23. data/lib/daytona_api_client/models/git_branch_request.rb +0 -190
  24. data/lib/daytona_api_client/models/git_checkout_request.rb +0 -190
  25. data/lib/daytona_api_client/models/git_clone_request.rb +0 -226
  26. data/lib/daytona_api_client/models/git_commit_info.rb +0 -268
  27. data/lib/daytona_api_client/models/git_commit_request.rb +0 -254
  28. data/lib/daytona_api_client/models/git_commit_response.rb +0 -164
  29. data/lib/daytona_api_client/models/git_delete_branch_request.rb +0 -190
  30. data/lib/daytona_api_client/models/git_repo_request.rb +0 -182
  31. data/lib/daytona_api_client/models/git_status.rb +0 -219
  32. data/lib/daytona_api_client/models/keyboard_hotkey_request.rb +0 -165
  33. data/lib/daytona_api_client/models/keyboard_press_request.rb +0 -177
  34. data/lib/daytona_api_client/models/keyboard_type_request.rb +0 -175
  35. data/lib/daytona_api_client/models/list_branch_response.rb +0 -166
  36. data/lib/daytona_api_client/models/lsp_completion_params.rb +0 -254
  37. data/lib/daytona_api_client/models/lsp_document_request.rb +0 -219
  38. data/lib/daytona_api_client/models/lsp_location.rb +0 -190
  39. data/lib/daytona_api_client/models/lsp_server_request.rb +0 -192
  40. data/lib/daytona_api_client/models/lsp_symbol.rb +0 -216
  41. data/lib/daytona_api_client/models/match.rb +0 -216
  42. data/lib/daytona_api_client/models/mouse_click_request.rb +0 -212
  43. data/lib/daytona_api_client/models/mouse_click_response.rb +0 -192
  44. data/lib/daytona_api_client/models/mouse_drag_request.rb +0 -256
  45. data/lib/daytona_api_client/models/mouse_drag_response.rb +0 -192
  46. data/lib/daytona_api_client/models/mouse_move_request.rb +0 -192
  47. data/lib/daytona_api_client/models/mouse_move_response.rb +0 -192
  48. data/lib/daytona_api_client/models/mouse_position.rb +0 -192
  49. data/lib/daytona_api_client/models/mouse_scroll_request.rb +0 -229
  50. data/lib/daytona_api_client/models/mouse_scroll_response.rb +0 -165
  51. data/lib/daytona_api_client/models/position.rb +0 -190
  52. data/lib/daytona_api_client/models/process_errors_response.rb +0 -192
  53. data/lib/daytona_api_client/models/process_logs_response.rb +0 -192
  54. data/lib/daytona_api_client/models/process_restart_response.rb +0 -192
  55. data/lib/daytona_api_client/models/process_status_response.rb +0 -192
  56. data/lib/daytona_api_client/models/project_dir_response.rb +0 -147
  57. data/lib/daytona_api_client/models/pty_create_request.rb +0 -217
  58. data/lib/daytona_api_client/models/pty_create_response.rb +0 -165
  59. data/lib/daytona_api_client/models/pty_list_response.rb +0 -167
  60. data/lib/daytona_api_client/models/pty_resize_request.rb +0 -192
  61. data/lib/daytona_api_client/models/pty_session_info.rb +0 -354
  62. data/lib/daytona_api_client/models/range.rb +0 -190
  63. data/lib/daytona_api_client/models/region_screenshot_response.rb +0 -185
  64. data/lib/daytona_api_client/models/replace_request.rb +0 -218
  65. data/lib/daytona_api_client/models/replace_result.rb +0 -165
  66. data/lib/daytona_api_client/models/screenshot_response.rb +0 -185
  67. data/lib/daytona_api_client/models/search_files_response.rb +0 -166
  68. data/lib/daytona_api_client/models/session.rb +0 -180
  69. data/lib/daytona_api_client/models/session_execute_request.rb +0 -185
  70. data/lib/daytona_api_client/models/session_execute_response.rb +0 -168
  71. data/lib/daytona_api_client/models/user_home_dir_response.rb +0 -147
  72. data/lib/daytona_api_client/models/windows_response.rb +0 -194
  73. data/lib/daytona_api_client/models/work_dir_response.rb +0 -147
@@ -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 PtyResizeRequest < ApiModelBase
18
- # Number of terminal columns
19
- attr_accessor :cols
20
-
21
- # Number of terminal rows
22
- attr_accessor :rows
23
-
24
- # Attribute mapping from ruby-style variable name to JSON key.
25
- def self.attribute_map
26
- {
27
- :'cols' => :'cols',
28
- :'rows' => :'rows'
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
- :'cols' => :'Float',
46
- :'rows' => :'Float'
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::PtyResizeRequest` 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::PtyResizeRequest`. 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?(:'cols')
73
- self.cols = attributes[:'cols']
74
- else
75
- self.cols = nil
76
- end
77
-
78
- if attributes.key?(:'rows')
79
- self.rows = attributes[:'rows']
80
- else
81
- self.rows = 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 @cols.nil?
91
- invalid_properties.push('invalid value for "cols", cols cannot be nil.')
92
- end
93
-
94
- if @rows.nil?
95
- invalid_properties.push('invalid value for "rows", rows 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 @cols.nil?
106
- return false if @rows.nil?
107
- true
108
- end
109
-
110
- # Custom attribute writer method with validation
111
- # @param [Object] cols Value to be assigned
112
- def cols=(cols)
113
- if cols.nil?
114
- fail ArgumentError, 'cols cannot be nil'
115
- end
116
-
117
- @cols = cols
118
- end
119
-
120
- # Custom attribute writer method with validation
121
- # @param [Object] rows Value to be assigned
122
- def rows=(rows)
123
- if rows.nil?
124
- fail ArgumentError, 'rows cannot be nil'
125
- end
126
-
127
- @rows = rows
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
- cols == o.cols &&
136
- rows == o.rows
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
- [cols, rows].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
@@ -1,354 +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 PtySessionInfo < ApiModelBase
18
- # The unique identifier for the PTY session
19
- attr_accessor :id
20
-
21
- # Starting directory for the PTY session, defaults to the sandbox's working directory
22
- attr_accessor :cwd
23
-
24
- # Environment variables for the PTY session
25
- attr_accessor :envs
26
-
27
- # Number of terminal columns
28
- attr_accessor :cols
29
-
30
- # Number of terminal rows
31
- attr_accessor :rows
32
-
33
- # When the PTY session was created
34
- attr_accessor :created_at
35
-
36
- # Whether the PTY session is currently active
37
- attr_accessor :active
38
-
39
- # Whether the PTY session uses lazy start (only start when first client connects)
40
- attr_accessor :lazy_start
41
-
42
- # Attribute mapping from ruby-style variable name to JSON key.
43
- def self.attribute_map
44
- {
45
- :'id' => :'id',
46
- :'cwd' => :'cwd',
47
- :'envs' => :'envs',
48
- :'cols' => :'cols',
49
- :'rows' => :'rows',
50
- :'created_at' => :'createdAt',
51
- :'active' => :'active',
52
- :'lazy_start' => :'lazyStart'
53
- }
54
- end
55
-
56
- # Returns attribute mapping this model knows about
57
- def self.acceptable_attribute_map
58
- attribute_map
59
- end
60
-
61
- # Returns all the JSON keys this model knows about
62
- def self.acceptable_attributes
63
- acceptable_attribute_map.values
64
- end
65
-
66
- # Attribute type mapping.
67
- def self.openapi_types
68
- {
69
- :'id' => :'String',
70
- :'cwd' => :'String',
71
- :'envs' => :'Object',
72
- :'cols' => :'Float',
73
- :'rows' => :'Float',
74
- :'created_at' => :'String',
75
- :'active' => :'Boolean',
76
- :'lazy_start' => :'Boolean'
77
- }
78
- end
79
-
80
- # List of attributes with nullable: true
81
- def self.openapi_nullable
82
- Set.new([
83
- ])
84
- end
85
-
86
- # Initializes the object
87
- # @param [Hash] attributes Model attributes in the form of hash
88
- def initialize(attributes = {})
89
- if (!attributes.is_a?(Hash))
90
- fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::PtySessionInfo` initialize method"
91
- end
92
-
93
- # check to see if the attribute exists and convert string to symbol for hash key
94
- acceptable_attribute_map = self.class.acceptable_attribute_map
95
- attributes = attributes.each_with_object({}) { |(k, v), h|
96
- if (!acceptable_attribute_map.key?(k.to_sym))
97
- fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::PtySessionInfo`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
98
- end
99
- h[k.to_sym] = v
100
- }
101
-
102
- if attributes.key?(:'id')
103
- self.id = attributes[:'id']
104
- else
105
- self.id = nil
106
- end
107
-
108
- if attributes.key?(:'cwd')
109
- self.cwd = attributes[:'cwd']
110
- else
111
- self.cwd = nil
112
- end
113
-
114
- if attributes.key?(:'envs')
115
- self.envs = attributes[:'envs']
116
- else
117
- self.envs = nil
118
- end
119
-
120
- if attributes.key?(:'cols')
121
- self.cols = attributes[:'cols']
122
- else
123
- self.cols = nil
124
- end
125
-
126
- if attributes.key?(:'rows')
127
- self.rows = attributes[:'rows']
128
- else
129
- self.rows = nil
130
- end
131
-
132
- if attributes.key?(:'created_at')
133
- self.created_at = attributes[:'created_at']
134
- else
135
- self.created_at = nil
136
- end
137
-
138
- if attributes.key?(:'active')
139
- self.active = attributes[:'active']
140
- else
141
- self.active = nil
142
- end
143
-
144
- if attributes.key?(:'lazy_start')
145
- self.lazy_start = attributes[:'lazy_start']
146
- else
147
- self.lazy_start = false
148
- end
149
- end
150
-
151
- # Show invalid properties with the reasons. Usually used together with valid?
152
- # @return Array for valid properties with the reasons
153
- def list_invalid_properties
154
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
155
- invalid_properties = Array.new
156
- if @id.nil?
157
- invalid_properties.push('invalid value for "id", id cannot be nil.')
158
- end
159
-
160
- if @cwd.nil?
161
- invalid_properties.push('invalid value for "cwd", cwd cannot be nil.')
162
- end
163
-
164
- if @envs.nil?
165
- invalid_properties.push('invalid value for "envs", envs cannot be nil.')
166
- end
167
-
168
- if @cols.nil?
169
- invalid_properties.push('invalid value for "cols", cols cannot be nil.')
170
- end
171
-
172
- if @rows.nil?
173
- invalid_properties.push('invalid value for "rows", rows cannot be nil.')
174
- end
175
-
176
- if @created_at.nil?
177
- invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
178
- end
179
-
180
- if @active.nil?
181
- invalid_properties.push('invalid value for "active", active cannot be nil.')
182
- end
183
-
184
- if @lazy_start.nil?
185
- invalid_properties.push('invalid value for "lazy_start", lazy_start cannot be nil.')
186
- end
187
-
188
- invalid_properties
189
- end
190
-
191
- # Check to see if the all the properties in the model are valid
192
- # @return true if the model is valid
193
- def valid?
194
- warn '[DEPRECATED] the `valid?` method is obsolete'
195
- return false if @id.nil?
196
- return false if @cwd.nil?
197
- return false if @envs.nil?
198
- return false if @cols.nil?
199
- return false if @rows.nil?
200
- return false if @created_at.nil?
201
- return false if @active.nil?
202
- return false if @lazy_start.nil?
203
- true
204
- end
205
-
206
- # Custom attribute writer method with validation
207
- # @param [Object] id Value to be assigned
208
- def id=(id)
209
- if id.nil?
210
- fail ArgumentError, 'id cannot be nil'
211
- end
212
-
213
- @id = id
214
- end
215
-
216
- # Custom attribute writer method with validation
217
- # @param [Object] cwd Value to be assigned
218
- def cwd=(cwd)
219
- if cwd.nil?
220
- fail ArgumentError, 'cwd cannot be nil'
221
- end
222
-
223
- @cwd = cwd
224
- end
225
-
226
- # Custom attribute writer method with validation
227
- # @param [Object] envs Value to be assigned
228
- def envs=(envs)
229
- if envs.nil?
230
- fail ArgumentError, 'envs cannot be nil'
231
- end
232
-
233
- @envs = envs
234
- end
235
-
236
- # Custom attribute writer method with validation
237
- # @param [Object] cols Value to be assigned
238
- def cols=(cols)
239
- if cols.nil?
240
- fail ArgumentError, 'cols cannot be nil'
241
- end
242
-
243
- @cols = cols
244
- end
245
-
246
- # Custom attribute writer method with validation
247
- # @param [Object] rows Value to be assigned
248
- def rows=(rows)
249
- if rows.nil?
250
- fail ArgumentError, 'rows cannot be nil'
251
- end
252
-
253
- @rows = rows
254
- end
255
-
256
- # Custom attribute writer method with validation
257
- # @param [Object] created_at Value to be assigned
258
- def created_at=(created_at)
259
- if created_at.nil?
260
- fail ArgumentError, 'created_at cannot be nil'
261
- end
262
-
263
- @created_at = created_at
264
- end
265
-
266
- # Custom attribute writer method with validation
267
- # @param [Object] active Value to be assigned
268
- def active=(active)
269
- if active.nil?
270
- fail ArgumentError, 'active cannot be nil'
271
- end
272
-
273
- @active = active
274
- end
275
-
276
- # Custom attribute writer method with validation
277
- # @param [Object] lazy_start Value to be assigned
278
- def lazy_start=(lazy_start)
279
- if lazy_start.nil?
280
- fail ArgumentError, 'lazy_start cannot be nil'
281
- end
282
-
283
- @lazy_start = lazy_start
284
- end
285
-
286
- # Checks equality by comparing each attribute.
287
- # @param [Object] Object to be compared
288
- def ==(o)
289
- return true if self.equal?(o)
290
- self.class == o.class &&
291
- id == o.id &&
292
- cwd == o.cwd &&
293
- envs == o.envs &&
294
- cols == o.cols &&
295
- rows == o.rows &&
296
- created_at == o.created_at &&
297
- active == o.active &&
298
- lazy_start == o.lazy_start
299
- end
300
-
301
- # @see the `==` method
302
- # @param [Object] Object to be compared
303
- def eql?(o)
304
- self == o
305
- end
306
-
307
- # Calculates hash code according to all attributes.
308
- # @return [Integer] Hash code
309
- def hash
310
- [id, cwd, envs, cols, rows, created_at, active, lazy_start].hash
311
- end
312
-
313
- # Builds the object from hash
314
- # @param [Hash] attributes Model attributes in the form of hash
315
- # @return [Object] Returns the model itself
316
- def self.build_from_hash(attributes)
317
- return nil unless attributes.is_a?(Hash)
318
- attributes = attributes.transform_keys(&:to_sym)
319
- transformed_hash = {}
320
- openapi_types.each_pair do |key, type|
321
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
322
- transformed_hash["#{key}"] = nil
323
- elsif type =~ /\AArray<(.*)>/i
324
- # check to ensure the input is an array given that the attribute
325
- # is documented as an array but the input is not
326
- if attributes[attribute_map[key]].is_a?(Array)
327
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
328
- end
329
- elsif !attributes[attribute_map[key]].nil?
330
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
331
- end
332
- end
333
- new(transformed_hash)
334
- end
335
-
336
- # Returns the object in the form of hash
337
- # @return [Hash] Returns the object in the form of hash
338
- def to_hash
339
- hash = {}
340
- self.class.attribute_map.each_pair do |attr, param|
341
- value = self.send(attr)
342
- if value.nil?
343
- is_nullable = self.class.openapi_nullable.include?(attr)
344
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
345
- end
346
-
347
- hash[param] = _to_hash(value)
348
- end
349
- hash
350
- end
351
-
352
- end
353
-
354
- end