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,182 +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 GitRepoRequest < ApiModelBase
18
- attr_accessor :path
19
-
20
- attr_accessor :username
21
-
22
- attr_accessor :password
23
-
24
- # Attribute mapping from ruby-style variable name to JSON key.
25
- def self.attribute_map
26
- {
27
- :'path' => :'path',
28
- :'username' => :'username',
29
- :'password' => :'password'
30
- }
31
- end
32
-
33
- # Returns attribute mapping this model knows about
34
- def self.acceptable_attribute_map
35
- attribute_map
36
- end
37
-
38
- # Returns all the JSON keys this model knows about
39
- def self.acceptable_attributes
40
- acceptable_attribute_map.values
41
- end
42
-
43
- # Attribute type mapping.
44
- def self.openapi_types
45
- {
46
- :'path' => :'String',
47
- :'username' => :'String',
48
- :'password' => :'String'
49
- }
50
- end
51
-
52
- # List of attributes with nullable: true
53
- def self.openapi_nullable
54
- Set.new([
55
- ])
56
- end
57
-
58
- # Initializes the object
59
- # @param [Hash] attributes Model attributes in the form of hash
60
- def initialize(attributes = {})
61
- if (!attributes.is_a?(Hash))
62
- fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::GitRepoRequest` initialize method"
63
- end
64
-
65
- # check to see if the attribute exists and convert string to symbol for hash key
66
- acceptable_attribute_map = self.class.acceptable_attribute_map
67
- attributes = attributes.each_with_object({}) { |(k, v), h|
68
- if (!acceptable_attribute_map.key?(k.to_sym))
69
- fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::GitRepoRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
70
- end
71
- h[k.to_sym] = v
72
- }
73
-
74
- if attributes.key?(:'path')
75
- self.path = attributes[:'path']
76
- else
77
- self.path = nil
78
- end
79
-
80
- if attributes.key?(:'username')
81
- self.username = attributes[:'username']
82
- end
83
-
84
- if attributes.key?(:'password')
85
- self.password = attributes[:'password']
86
- end
87
- end
88
-
89
- # Show invalid properties with the reasons. Usually used together with valid?
90
- # @return Array for valid properties with the reasons
91
- def list_invalid_properties
92
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
93
- invalid_properties = Array.new
94
- if @path.nil?
95
- invalid_properties.push('invalid value for "path", path 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 @path.nil?
106
- true
107
- end
108
-
109
- # Custom attribute writer method with validation
110
- # @param [Object] path Value to be assigned
111
- def path=(path)
112
- if path.nil?
113
- fail ArgumentError, 'path cannot be nil'
114
- end
115
-
116
- @path = path
117
- end
118
-
119
- # Checks equality by comparing each attribute.
120
- # @param [Object] Object to be compared
121
- def ==(o)
122
- return true if self.equal?(o)
123
- self.class == o.class &&
124
- path == o.path &&
125
- username == o.username &&
126
- password == o.password
127
- end
128
-
129
- # @see the `==` method
130
- # @param [Object] Object to be compared
131
- def eql?(o)
132
- self == o
133
- end
134
-
135
- # Calculates hash code according to all attributes.
136
- # @return [Integer] Hash code
137
- def hash
138
- [path, username, password].hash
139
- end
140
-
141
- # Builds the object from hash
142
- # @param [Hash] attributes Model attributes in the form of hash
143
- # @return [Object] Returns the model itself
144
- def self.build_from_hash(attributes)
145
- return nil unless attributes.is_a?(Hash)
146
- attributes = attributes.transform_keys(&:to_sym)
147
- transformed_hash = {}
148
- openapi_types.each_pair do |key, type|
149
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
150
- transformed_hash["#{key}"] = nil
151
- elsif type =~ /\AArray<(.*)>/i
152
- # check to ensure the input is an array given that the attribute
153
- # is documented as an array but the input is not
154
- if attributes[attribute_map[key]].is_a?(Array)
155
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
156
- end
157
- elsif !attributes[attribute_map[key]].nil?
158
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
159
- end
160
- end
161
- new(transformed_hash)
162
- end
163
-
164
- # Returns the object in the form of hash
165
- # @return [Hash] Returns the object in the form of hash
166
- def to_hash
167
- hash = {}
168
- self.class.attribute_map.each_pair do |attr, param|
169
- value = self.send(attr)
170
- if value.nil?
171
- is_nullable = self.class.openapi_nullable.include?(attr)
172
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
173
- end
174
-
175
- hash[param] = _to_hash(value)
176
- end
177
- hash
178
- end
179
-
180
- end
181
-
182
- end
@@ -1,219 +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 GitStatus < ApiModelBase
18
- attr_accessor :current_branch
19
-
20
- attr_accessor :file_status
21
-
22
- attr_accessor :ahead
23
-
24
- attr_accessor :behind
25
-
26
- attr_accessor :branch_published
27
-
28
- # Attribute mapping from ruby-style variable name to JSON key.
29
- def self.attribute_map
30
- {
31
- :'current_branch' => :'currentBranch',
32
- :'file_status' => :'fileStatus',
33
- :'ahead' => :'ahead',
34
- :'behind' => :'behind',
35
- :'branch_published' => :'branchPublished'
36
- }
37
- end
38
-
39
- # Returns attribute mapping this model knows about
40
- def self.acceptable_attribute_map
41
- attribute_map
42
- end
43
-
44
- # Returns all the JSON keys this model knows about
45
- def self.acceptable_attributes
46
- acceptable_attribute_map.values
47
- end
48
-
49
- # Attribute type mapping.
50
- def self.openapi_types
51
- {
52
- :'current_branch' => :'String',
53
- :'file_status' => :'Array<FileStatus>',
54
- :'ahead' => :'Float',
55
- :'behind' => :'Float',
56
- :'branch_published' => :'Boolean'
57
- }
58
- end
59
-
60
- # List of attributes with nullable: true
61
- def self.openapi_nullable
62
- Set.new([
63
- ])
64
- end
65
-
66
- # Initializes the object
67
- # @param [Hash] attributes Model attributes in the form of hash
68
- def initialize(attributes = {})
69
- if (!attributes.is_a?(Hash))
70
- fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::GitStatus` initialize method"
71
- end
72
-
73
- # check to see if the attribute exists and convert string to symbol for hash key
74
- acceptable_attribute_map = self.class.acceptable_attribute_map
75
- attributes = attributes.each_with_object({}) { |(k, v), h|
76
- if (!acceptable_attribute_map.key?(k.to_sym))
77
- fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::GitStatus`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
78
- end
79
- h[k.to_sym] = v
80
- }
81
-
82
- if attributes.key?(:'current_branch')
83
- self.current_branch = attributes[:'current_branch']
84
- else
85
- self.current_branch = nil
86
- end
87
-
88
- if attributes.key?(:'file_status')
89
- if (value = attributes[:'file_status']).is_a?(Array)
90
- self.file_status = value
91
- end
92
- else
93
- self.file_status = nil
94
- end
95
-
96
- if attributes.key?(:'ahead')
97
- self.ahead = attributes[:'ahead']
98
- end
99
-
100
- if attributes.key?(:'behind')
101
- self.behind = attributes[:'behind']
102
- end
103
-
104
- if attributes.key?(:'branch_published')
105
- self.branch_published = attributes[:'branch_published']
106
- end
107
- end
108
-
109
- # Show invalid properties with the reasons. Usually used together with valid?
110
- # @return Array for valid properties with the reasons
111
- def list_invalid_properties
112
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
113
- invalid_properties = Array.new
114
- if @current_branch.nil?
115
- invalid_properties.push('invalid value for "current_branch", current_branch cannot be nil.')
116
- end
117
-
118
- if @file_status.nil?
119
- invalid_properties.push('invalid value for "file_status", file_status cannot be nil.')
120
- end
121
-
122
- invalid_properties
123
- end
124
-
125
- # Check to see if the all the properties in the model are valid
126
- # @return true if the model is valid
127
- def valid?
128
- warn '[DEPRECATED] the `valid?` method is obsolete'
129
- return false if @current_branch.nil?
130
- return false if @file_status.nil?
131
- true
132
- end
133
-
134
- # Custom attribute writer method with validation
135
- # @param [Object] current_branch Value to be assigned
136
- def current_branch=(current_branch)
137
- if current_branch.nil?
138
- fail ArgumentError, 'current_branch cannot be nil'
139
- end
140
-
141
- @current_branch = current_branch
142
- end
143
-
144
- # Custom attribute writer method with validation
145
- # @param [Object] file_status Value to be assigned
146
- def file_status=(file_status)
147
- if file_status.nil?
148
- fail ArgumentError, 'file_status cannot be nil'
149
- end
150
-
151
- @file_status = file_status
152
- end
153
-
154
- # Checks equality by comparing each attribute.
155
- # @param [Object] Object to be compared
156
- def ==(o)
157
- return true if self.equal?(o)
158
- self.class == o.class &&
159
- current_branch == o.current_branch &&
160
- file_status == o.file_status &&
161
- ahead == o.ahead &&
162
- behind == o.behind &&
163
- branch_published == o.branch_published
164
- end
165
-
166
- # @see the `==` method
167
- # @param [Object] Object to be compared
168
- def eql?(o)
169
- self == o
170
- end
171
-
172
- # Calculates hash code according to all attributes.
173
- # @return [Integer] Hash code
174
- def hash
175
- [current_branch, file_status, ahead, behind, branch_published].hash
176
- end
177
-
178
- # Builds the object from hash
179
- # @param [Hash] attributes Model attributes in the form of hash
180
- # @return [Object] Returns the model itself
181
- def self.build_from_hash(attributes)
182
- return nil unless attributes.is_a?(Hash)
183
- attributes = attributes.transform_keys(&:to_sym)
184
- transformed_hash = {}
185
- openapi_types.each_pair do |key, type|
186
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
187
- transformed_hash["#{key}"] = nil
188
- elsif type =~ /\AArray<(.*)>/i
189
- # check to ensure the input is an array given that the attribute
190
- # is documented as an array but the input is not
191
- if attributes[attribute_map[key]].is_a?(Array)
192
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
193
- end
194
- elsif !attributes[attribute_map[key]].nil?
195
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
196
- end
197
- end
198
- new(transformed_hash)
199
- end
200
-
201
- # Returns the object in the form of hash
202
- # @return [Hash] Returns the object in the form of hash
203
- def to_hash
204
- hash = {}
205
- self.class.attribute_map.each_pair do |attr, param|
206
- value = self.send(attr)
207
- if value.nil?
208
- is_nullable = self.class.openapi_nullable.include?(attr)
209
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
210
- end
211
-
212
- hash[param] = _to_hash(value)
213
- end
214
- hash
215
- end
216
-
217
- end
218
-
219
- end
@@ -1,165 +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 KeyboardHotkeyRequest < ApiModelBase
18
- # The hotkey combination to press (e.g., \"ctrl+c\", \"cmd+v\", \"alt+tab\")
19
- attr_accessor :keys
20
-
21
- # Attribute mapping from ruby-style variable name to JSON key.
22
- def self.attribute_map
23
- {
24
- :'keys' => :'keys'
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
- :'keys' => :'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::KeyboardHotkeyRequest` 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::KeyboardHotkeyRequest`. 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?(:'keys')
68
- self.keys = attributes[:'keys']
69
- else
70
- self.keys = nil
71
- end
72
- end
73
-
74
- # Show invalid properties with the reasons. Usually used together with valid?
75
- # @return Array for valid properties with the reasons
76
- def list_invalid_properties
77
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
78
- invalid_properties = Array.new
79
- if @keys.nil?
80
- invalid_properties.push('invalid value for "keys", keys cannot be nil.')
81
- end
82
-
83
- invalid_properties
84
- end
85
-
86
- # Check to see if the all the properties in the model are valid
87
- # @return true if the model is valid
88
- def valid?
89
- warn '[DEPRECATED] the `valid?` method is obsolete'
90
- return false if @keys.nil?
91
- true
92
- end
93
-
94
- # Custom attribute writer method with validation
95
- # @param [Object] keys Value to be assigned
96
- def keys=(keys)
97
- if keys.nil?
98
- fail ArgumentError, 'keys cannot be nil'
99
- end
100
-
101
- @keys = keys
102
- end
103
-
104
- # Checks equality by comparing each attribute.
105
- # @param [Object] Object to be compared
106
- def ==(o)
107
- return true if self.equal?(o)
108
- self.class == o.class &&
109
- keys == o.keys
110
- end
111
-
112
- # @see the `==` method
113
- # @param [Object] Object to be compared
114
- def eql?(o)
115
- self == o
116
- end
117
-
118
- # Calculates hash code according to all attributes.
119
- # @return [Integer] Hash code
120
- def hash
121
- [keys].hash
122
- end
123
-
124
- # Builds the object from hash
125
- # @param [Hash] attributes Model attributes in the form of hash
126
- # @return [Object] Returns the model itself
127
- def self.build_from_hash(attributes)
128
- return nil unless attributes.is_a?(Hash)
129
- attributes = attributes.transform_keys(&:to_sym)
130
- transformed_hash = {}
131
- openapi_types.each_pair do |key, type|
132
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
133
- transformed_hash["#{key}"] = nil
134
- elsif type =~ /\AArray<(.*)>/i
135
- # check to ensure the input is an array given that the attribute
136
- # is documented as an array but the input is not
137
- if attributes[attribute_map[key]].is_a?(Array)
138
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
139
- end
140
- elsif !attributes[attribute_map[key]].nil?
141
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
142
- end
143
- end
144
- new(transformed_hash)
145
- end
146
-
147
- # Returns the object in the form of hash
148
- # @return [Hash] Returns the object in the form of hash
149
- def to_hash
150
- hash = {}
151
- self.class.attribute_map.each_pair do |attr, param|
152
- value = self.send(attr)
153
- if value.nil?
154
- is_nullable = self.class.openapi_nullable.include?(attr)
155
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
156
- end
157
-
158
- hash[param] = _to_hash(value)
159
- end
160
- hash
161
- end
162
-
163
- end
164
-
165
- end