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,346 +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 FileInfo < ApiModelBase
18
- attr_accessor :name
19
-
20
- attr_accessor :is_dir
21
-
22
- attr_accessor :size
23
-
24
- attr_accessor :mod_time
25
-
26
- attr_accessor :mode
27
-
28
- attr_accessor :permissions
29
-
30
- attr_accessor :owner
31
-
32
- attr_accessor :group
33
-
34
- # Attribute mapping from ruby-style variable name to JSON key.
35
- def self.attribute_map
36
- {
37
- :'name' => :'name',
38
- :'is_dir' => :'isDir',
39
- :'size' => :'size',
40
- :'mod_time' => :'modTime',
41
- :'mode' => :'mode',
42
- :'permissions' => :'permissions',
43
- :'owner' => :'owner',
44
- :'group' => :'group'
45
- }
46
- end
47
-
48
- # Returns attribute mapping this model knows about
49
- def self.acceptable_attribute_map
50
- attribute_map
51
- end
52
-
53
- # Returns all the JSON keys this model knows about
54
- def self.acceptable_attributes
55
- acceptable_attribute_map.values
56
- end
57
-
58
- # Attribute type mapping.
59
- def self.openapi_types
60
- {
61
- :'name' => :'String',
62
- :'is_dir' => :'Boolean',
63
- :'size' => :'Float',
64
- :'mod_time' => :'String',
65
- :'mode' => :'String',
66
- :'permissions' => :'String',
67
- :'owner' => :'String',
68
- :'group' => :'String'
69
- }
70
- end
71
-
72
- # List of attributes with nullable: true
73
- def self.openapi_nullable
74
- Set.new([
75
- ])
76
- end
77
-
78
- # Initializes the object
79
- # @param [Hash] attributes Model attributes in the form of hash
80
- def initialize(attributes = {})
81
- if (!attributes.is_a?(Hash))
82
- fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::FileInfo` initialize method"
83
- end
84
-
85
- # check to see if the attribute exists and convert string to symbol for hash key
86
- acceptable_attribute_map = self.class.acceptable_attribute_map
87
- attributes = attributes.each_with_object({}) { |(k, v), h|
88
- if (!acceptable_attribute_map.key?(k.to_sym))
89
- fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::FileInfo`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
90
- end
91
- h[k.to_sym] = v
92
- }
93
-
94
- if attributes.key?(:'name')
95
- self.name = attributes[:'name']
96
- else
97
- self.name = nil
98
- end
99
-
100
- if attributes.key?(:'is_dir')
101
- self.is_dir = attributes[:'is_dir']
102
- else
103
- self.is_dir = nil
104
- end
105
-
106
- if attributes.key?(:'size')
107
- self.size = attributes[:'size']
108
- else
109
- self.size = nil
110
- end
111
-
112
- if attributes.key?(:'mod_time')
113
- self.mod_time = attributes[:'mod_time']
114
- else
115
- self.mod_time = nil
116
- end
117
-
118
- if attributes.key?(:'mode')
119
- self.mode = attributes[:'mode']
120
- else
121
- self.mode = nil
122
- end
123
-
124
- if attributes.key?(:'permissions')
125
- self.permissions = attributes[:'permissions']
126
- else
127
- self.permissions = nil
128
- end
129
-
130
- if attributes.key?(:'owner')
131
- self.owner = attributes[:'owner']
132
- else
133
- self.owner = nil
134
- end
135
-
136
- if attributes.key?(:'group')
137
- self.group = attributes[:'group']
138
- else
139
- self.group = nil
140
- end
141
- end
142
-
143
- # Show invalid properties with the reasons. Usually used together with valid?
144
- # @return Array for valid properties with the reasons
145
- def list_invalid_properties
146
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
147
- invalid_properties = Array.new
148
- if @name.nil?
149
- invalid_properties.push('invalid value for "name", name cannot be nil.')
150
- end
151
-
152
- if @is_dir.nil?
153
- invalid_properties.push('invalid value for "is_dir", is_dir cannot be nil.')
154
- end
155
-
156
- if @size.nil?
157
- invalid_properties.push('invalid value for "size", size cannot be nil.')
158
- end
159
-
160
- if @mod_time.nil?
161
- invalid_properties.push('invalid value for "mod_time", mod_time cannot be nil.')
162
- end
163
-
164
- if @mode.nil?
165
- invalid_properties.push('invalid value for "mode", mode cannot be nil.')
166
- end
167
-
168
- if @permissions.nil?
169
- invalid_properties.push('invalid value for "permissions", permissions cannot be nil.')
170
- end
171
-
172
- if @owner.nil?
173
- invalid_properties.push('invalid value for "owner", owner cannot be nil.')
174
- end
175
-
176
- if @group.nil?
177
- invalid_properties.push('invalid value for "group", group cannot be nil.')
178
- end
179
-
180
- invalid_properties
181
- end
182
-
183
- # Check to see if the all the properties in the model are valid
184
- # @return true if the model is valid
185
- def valid?
186
- warn '[DEPRECATED] the `valid?` method is obsolete'
187
- return false if @name.nil?
188
- return false if @is_dir.nil?
189
- return false if @size.nil?
190
- return false if @mod_time.nil?
191
- return false if @mode.nil?
192
- return false if @permissions.nil?
193
- return false if @owner.nil?
194
- return false if @group.nil?
195
- true
196
- end
197
-
198
- # Custom attribute writer method with validation
199
- # @param [Object] name Value to be assigned
200
- def name=(name)
201
- if name.nil?
202
- fail ArgumentError, 'name cannot be nil'
203
- end
204
-
205
- @name = name
206
- end
207
-
208
- # Custom attribute writer method with validation
209
- # @param [Object] is_dir Value to be assigned
210
- def is_dir=(is_dir)
211
- if is_dir.nil?
212
- fail ArgumentError, 'is_dir cannot be nil'
213
- end
214
-
215
- @is_dir = is_dir
216
- end
217
-
218
- # Custom attribute writer method with validation
219
- # @param [Object] size Value to be assigned
220
- def size=(size)
221
- if size.nil?
222
- fail ArgumentError, 'size cannot be nil'
223
- end
224
-
225
- @size = size
226
- end
227
-
228
- # Custom attribute writer method with validation
229
- # @param [Object] mod_time Value to be assigned
230
- def mod_time=(mod_time)
231
- if mod_time.nil?
232
- fail ArgumentError, 'mod_time cannot be nil'
233
- end
234
-
235
- @mod_time = mod_time
236
- end
237
-
238
- # Custom attribute writer method with validation
239
- # @param [Object] mode Value to be assigned
240
- def mode=(mode)
241
- if mode.nil?
242
- fail ArgumentError, 'mode cannot be nil'
243
- end
244
-
245
- @mode = mode
246
- end
247
-
248
- # Custom attribute writer method with validation
249
- # @param [Object] permissions Value to be assigned
250
- def permissions=(permissions)
251
- if permissions.nil?
252
- fail ArgumentError, 'permissions cannot be nil'
253
- end
254
-
255
- @permissions = permissions
256
- end
257
-
258
- # Custom attribute writer method with validation
259
- # @param [Object] owner Value to be assigned
260
- def owner=(owner)
261
- if owner.nil?
262
- fail ArgumentError, 'owner cannot be nil'
263
- end
264
-
265
- @owner = owner
266
- end
267
-
268
- # Custom attribute writer method with validation
269
- # @param [Object] group Value to be assigned
270
- def group=(group)
271
- if group.nil?
272
- fail ArgumentError, 'group cannot be nil'
273
- end
274
-
275
- @group = group
276
- end
277
-
278
- # Checks equality by comparing each attribute.
279
- # @param [Object] Object to be compared
280
- def ==(o)
281
- return true if self.equal?(o)
282
- self.class == o.class &&
283
- name == o.name &&
284
- is_dir == o.is_dir &&
285
- size == o.size &&
286
- mod_time == o.mod_time &&
287
- mode == o.mode &&
288
- permissions == o.permissions &&
289
- owner == o.owner &&
290
- group == o.group
291
- end
292
-
293
- # @see the `==` method
294
- # @param [Object] Object to be compared
295
- def eql?(o)
296
- self == o
297
- end
298
-
299
- # Calculates hash code according to all attributes.
300
- # @return [Integer] Hash code
301
- def hash
302
- [name, is_dir, size, mod_time, mode, permissions, owner, group].hash
303
- end
304
-
305
- # Builds the object from hash
306
- # @param [Hash] attributes Model attributes in the form of hash
307
- # @return [Object] Returns the model itself
308
- def self.build_from_hash(attributes)
309
- return nil unless attributes.is_a?(Hash)
310
- attributes = attributes.transform_keys(&:to_sym)
311
- transformed_hash = {}
312
- openapi_types.each_pair do |key, type|
313
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
314
- transformed_hash["#{key}"] = nil
315
- elsif type =~ /\AArray<(.*)>/i
316
- # check to ensure the input is an array given that the attribute
317
- # is documented as an array but the input is not
318
- if attributes[attribute_map[key]].is_a?(Array)
319
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
320
- end
321
- elsif !attributes[attribute_map[key]].nil?
322
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
323
- end
324
- end
325
- new(transformed_hash)
326
- end
327
-
328
- # Returns the object in the form of hash
329
- # @return [Hash] Returns the object in the form of hash
330
- def to_hash
331
- hash = {}
332
- self.class.attribute_map.each_pair do |attr, param|
333
- value = self.send(attr)
334
- if value.nil?
335
- is_nullable = self.class.openapi_nullable.include?(attr)
336
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
337
- end
338
-
339
- hash[param] = _to_hash(value)
340
- end
341
- hash
342
- end
343
-
344
- end
345
-
346
- end
@@ -1,242 +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 FileStatus < ApiModelBase
18
- attr_accessor :name
19
-
20
- attr_accessor :staging
21
-
22
- attr_accessor :worktree
23
-
24
- attr_accessor :extra
25
-
26
- # Attribute mapping from ruby-style variable name to JSON key.
27
- def self.attribute_map
28
- {
29
- :'name' => :'name',
30
- :'staging' => :'staging',
31
- :'worktree' => :'worktree',
32
- :'extra' => :'extra'
33
- }
34
- end
35
-
36
- # Returns attribute mapping this model knows about
37
- def self.acceptable_attribute_map
38
- attribute_map
39
- end
40
-
41
- # Returns all the JSON keys this model knows about
42
- def self.acceptable_attributes
43
- acceptable_attribute_map.values
44
- end
45
-
46
- # Attribute type mapping.
47
- def self.openapi_types
48
- {
49
- :'name' => :'String',
50
- :'staging' => :'String',
51
- :'worktree' => :'String',
52
- :'extra' => :'String'
53
- }
54
- end
55
-
56
- # List of attributes with nullable: true
57
- def self.openapi_nullable
58
- Set.new([
59
- ])
60
- end
61
-
62
- # Initializes the object
63
- # @param [Hash] attributes Model attributes in the form of hash
64
- def initialize(attributes = {})
65
- if (!attributes.is_a?(Hash))
66
- fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::FileStatus` initialize method"
67
- end
68
-
69
- # check to see if the attribute exists and convert string to symbol for hash key
70
- acceptable_attribute_map = self.class.acceptable_attribute_map
71
- attributes = attributes.each_with_object({}) { |(k, v), h|
72
- if (!acceptable_attribute_map.key?(k.to_sym))
73
- fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::FileStatus`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
74
- end
75
- h[k.to_sym] = v
76
- }
77
-
78
- if attributes.key?(:'name')
79
- self.name = attributes[:'name']
80
- else
81
- self.name = nil
82
- end
83
-
84
- if attributes.key?(:'staging')
85
- self.staging = attributes[:'staging']
86
- else
87
- self.staging = nil
88
- end
89
-
90
- if attributes.key?(:'worktree')
91
- self.worktree = attributes[:'worktree']
92
- else
93
- self.worktree = nil
94
- end
95
-
96
- if attributes.key?(:'extra')
97
- self.extra = attributes[:'extra']
98
- else
99
- self.extra = nil
100
- end
101
- end
102
-
103
- # Show invalid properties with the reasons. Usually used together with valid?
104
- # @return Array for valid properties with the reasons
105
- def list_invalid_properties
106
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
107
- invalid_properties = Array.new
108
- if @name.nil?
109
- invalid_properties.push('invalid value for "name", name cannot be nil.')
110
- end
111
-
112
- if @staging.nil?
113
- invalid_properties.push('invalid value for "staging", staging cannot be nil.')
114
- end
115
-
116
- if @worktree.nil?
117
- invalid_properties.push('invalid value for "worktree", worktree cannot be nil.')
118
- end
119
-
120
- if @extra.nil?
121
- invalid_properties.push('invalid value for "extra", extra cannot be nil.')
122
- end
123
-
124
- invalid_properties
125
- end
126
-
127
- # Check to see if the all the properties in the model are valid
128
- # @return true if the model is valid
129
- def valid?
130
- warn '[DEPRECATED] the `valid?` method is obsolete'
131
- return false if @name.nil?
132
- return false if @staging.nil?
133
- return false if @worktree.nil?
134
- return false if @extra.nil?
135
- true
136
- end
137
-
138
- # Custom attribute writer method with validation
139
- # @param [Object] name Value to be assigned
140
- def name=(name)
141
- if name.nil?
142
- fail ArgumentError, 'name cannot be nil'
143
- end
144
-
145
- @name = name
146
- end
147
-
148
- # Custom attribute writer method with validation
149
- # @param [Object] staging Value to be assigned
150
- def staging=(staging)
151
- if staging.nil?
152
- fail ArgumentError, 'staging cannot be nil'
153
- end
154
-
155
- @staging = staging
156
- end
157
-
158
- # Custom attribute writer method with validation
159
- # @param [Object] worktree Value to be assigned
160
- def worktree=(worktree)
161
- if worktree.nil?
162
- fail ArgumentError, 'worktree cannot be nil'
163
- end
164
-
165
- @worktree = worktree
166
- end
167
-
168
- # Custom attribute writer method with validation
169
- # @param [Object] extra Value to be assigned
170
- def extra=(extra)
171
- if extra.nil?
172
- fail ArgumentError, 'extra cannot be nil'
173
- end
174
-
175
- @extra = extra
176
- end
177
-
178
- # Checks equality by comparing each attribute.
179
- # @param [Object] Object to be compared
180
- def ==(o)
181
- return true if self.equal?(o)
182
- self.class == o.class &&
183
- name == o.name &&
184
- staging == o.staging &&
185
- worktree == o.worktree &&
186
- extra == o.extra
187
- end
188
-
189
- # @see the `==` method
190
- # @param [Object] Object to be compared
191
- def eql?(o)
192
- self == o
193
- end
194
-
195
- # Calculates hash code according to all attributes.
196
- # @return [Integer] Hash code
197
- def hash
198
- [name, staging, worktree, extra].hash
199
- end
200
-
201
- # Builds the object from hash
202
- # @param [Hash] attributes Model attributes in the form of hash
203
- # @return [Object] Returns the model itself
204
- def self.build_from_hash(attributes)
205
- return nil unless attributes.is_a?(Hash)
206
- attributes = attributes.transform_keys(&:to_sym)
207
- transformed_hash = {}
208
- openapi_types.each_pair do |key, type|
209
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
210
- transformed_hash["#{key}"] = nil
211
- elsif type =~ /\AArray<(.*)>/i
212
- # check to ensure the input is an array given that the attribute
213
- # is documented as an array but the input is not
214
- if attributes[attribute_map[key]].is_a?(Array)
215
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
216
- end
217
- elsif !attributes[attribute_map[key]].nil?
218
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
219
- end
220
- end
221
- new(transformed_hash)
222
- end
223
-
224
- # Returns the object in the form of hash
225
- # @return [Hash] Returns the object in the form of hash
226
- def to_hash
227
- hash = {}
228
- self.class.attribute_map.each_pair do |attr, param|
229
- value = self.send(attr)
230
- if value.nil?
231
- is_nullable = self.class.openapi_nullable.include?(attr)
232
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
233
- end
234
-
235
- hash[param] = _to_hash(value)
236
- end
237
- hash
238
- end
239
-
240
- end
241
-
242
- end