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,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 ProcessRestartResponse < ApiModelBase
18
- # A message indicating the result of restarting the process
19
- attr_accessor :message
20
-
21
- # The name of the VNC process that was restarted
22
- attr_accessor :process_name
23
-
24
- # Attribute mapping from ruby-style variable name to JSON key.
25
- def self.attribute_map
26
- {
27
- :'message' => :'message',
28
- :'process_name' => :'processName'
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
- :'message' => :'String',
46
- :'process_name' => :'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::ProcessRestartResponse` 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::ProcessRestartResponse`. 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?(:'message')
73
- self.message = attributes[:'message']
74
- else
75
- self.message = nil
76
- end
77
-
78
- if attributes.key?(:'process_name')
79
- self.process_name = attributes[:'process_name']
80
- else
81
- self.process_name = 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 @message.nil?
91
- invalid_properties.push('invalid value for "message", message cannot be nil.')
92
- end
93
-
94
- if @process_name.nil?
95
- invalid_properties.push('invalid value for "process_name", process_name 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 @message.nil?
106
- return false if @process_name.nil?
107
- true
108
- end
109
-
110
- # Custom attribute writer method with validation
111
- # @param [Object] message Value to be assigned
112
- def message=(message)
113
- if message.nil?
114
- fail ArgumentError, 'message cannot be nil'
115
- end
116
-
117
- @message = message
118
- end
119
-
120
- # Custom attribute writer method with validation
121
- # @param [Object] process_name Value to be assigned
122
- def process_name=(process_name)
123
- if process_name.nil?
124
- fail ArgumentError, 'process_name cannot be nil'
125
- end
126
-
127
- @process_name = process_name
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
- message == o.message &&
136
- process_name == o.process_name
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
- [message, process_name].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,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 ProcessStatusResponse < ApiModelBase
18
- # The name of the VNC process being checked
19
- attr_accessor :process_name
20
-
21
- # Whether the specified VNC process is currently running
22
- attr_accessor :running
23
-
24
- # Attribute mapping from ruby-style variable name to JSON key.
25
- def self.attribute_map
26
- {
27
- :'process_name' => :'processName',
28
- :'running' => :'running'
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
- :'process_name' => :'String',
46
- :'running' => :'Boolean'
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::ProcessStatusResponse` 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::ProcessStatusResponse`. 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?(:'process_name')
73
- self.process_name = attributes[:'process_name']
74
- else
75
- self.process_name = nil
76
- end
77
-
78
- if attributes.key?(:'running')
79
- self.running = attributes[:'running']
80
- else
81
- self.running = 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 @process_name.nil?
91
- invalid_properties.push('invalid value for "process_name", process_name cannot be nil.')
92
- end
93
-
94
- if @running.nil?
95
- invalid_properties.push('invalid value for "running", running 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 @process_name.nil?
106
- return false if @running.nil?
107
- true
108
- end
109
-
110
- # Custom attribute writer method with validation
111
- # @param [Object] process_name Value to be assigned
112
- def process_name=(process_name)
113
- if process_name.nil?
114
- fail ArgumentError, 'process_name cannot be nil'
115
- end
116
-
117
- @process_name = process_name
118
- end
119
-
120
- # Custom attribute writer method with validation
121
- # @param [Object] running Value to be assigned
122
- def running=(running)
123
- if running.nil?
124
- fail ArgumentError, 'running cannot be nil'
125
- end
126
-
127
- @running = running
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
- process_name == o.process_name &&
136
- running == o.running
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
- [process_name, running].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,147 +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 ProjectDirResponse < ApiModelBase
18
- attr_accessor :dir
19
-
20
- # Attribute mapping from ruby-style variable name to JSON key.
21
- def self.attribute_map
22
- {
23
- :'dir' => :'dir'
24
- }
25
- end
26
-
27
- # Returns attribute mapping this model knows about
28
- def self.acceptable_attribute_map
29
- attribute_map
30
- end
31
-
32
- # Returns all the JSON keys this model knows about
33
- def self.acceptable_attributes
34
- acceptable_attribute_map.values
35
- end
36
-
37
- # Attribute type mapping.
38
- def self.openapi_types
39
- {
40
- :'dir' => :'String'
41
- }
42
- end
43
-
44
- # List of attributes with nullable: true
45
- def self.openapi_nullable
46
- Set.new([
47
- ])
48
- end
49
-
50
- # Initializes the object
51
- # @param [Hash] attributes Model attributes in the form of hash
52
- def initialize(attributes = {})
53
- if (!attributes.is_a?(Hash))
54
- fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::ProjectDirResponse` initialize method"
55
- end
56
-
57
- # check to see if the attribute exists and convert string to symbol for hash key
58
- acceptable_attribute_map = self.class.acceptable_attribute_map
59
- attributes = attributes.each_with_object({}) { |(k, v), h|
60
- if (!acceptable_attribute_map.key?(k.to_sym))
61
- fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::ProjectDirResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
62
- end
63
- h[k.to_sym] = v
64
- }
65
-
66
- if attributes.key?(:'dir')
67
- self.dir = attributes[:'dir']
68
- end
69
- end
70
-
71
- # Show invalid properties with the reasons. Usually used together with valid?
72
- # @return Array for valid properties with the reasons
73
- def list_invalid_properties
74
- warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
75
- invalid_properties = Array.new
76
- invalid_properties
77
- end
78
-
79
- # Check to see if the all the properties in the model are valid
80
- # @return true if the model is valid
81
- def valid?
82
- warn '[DEPRECATED] the `valid?` method is obsolete'
83
- true
84
- end
85
-
86
- # Checks equality by comparing each attribute.
87
- # @param [Object] Object to be compared
88
- def ==(o)
89
- return true if self.equal?(o)
90
- self.class == o.class &&
91
- dir == o.dir
92
- end
93
-
94
- # @see the `==` method
95
- # @param [Object] Object to be compared
96
- def eql?(o)
97
- self == o
98
- end
99
-
100
- # Calculates hash code according to all attributes.
101
- # @return [Integer] Hash code
102
- def hash
103
- [dir].hash
104
- end
105
-
106
- # Builds the object from hash
107
- # @param [Hash] attributes Model attributes in the form of hash
108
- # @return [Object] Returns the model itself
109
- def self.build_from_hash(attributes)
110
- return nil unless attributes.is_a?(Hash)
111
- attributes = attributes.transform_keys(&:to_sym)
112
- transformed_hash = {}
113
- openapi_types.each_pair do |key, type|
114
- if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
115
- transformed_hash["#{key}"] = nil
116
- elsif type =~ /\AArray<(.*)>/i
117
- # check to ensure the input is an array given that the attribute
118
- # is documented as an array but the input is not
119
- if attributes[attribute_map[key]].is_a?(Array)
120
- transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
121
- end
122
- elsif !attributes[attribute_map[key]].nil?
123
- transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
124
- end
125
- end
126
- new(transformed_hash)
127
- end
128
-
129
- # Returns the object in the form of hash
130
- # @return [Hash] Returns the object in the form of hash
131
- def to_hash
132
- hash = {}
133
- self.class.attribute_map.each_pair do |attr, param|
134
- value = self.send(attr)
135
- if value.nil?
136
- is_nullable = self.class.openapi_nullable.include?(attr)
137
- next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
138
- end
139
-
140
- hash[param] = _to_hash(value)
141
- end
142
- hash
143
- end
144
-
145
- end
146
-
147
- end