daytona_api_client 0.196.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 (81) hide show
  1. checksums.yaml +4 -4
  2. data/.openapi-generator/FILES +3 -68
  3. data/lib/daytona_api_client/api/admin_api.rb +70 -0
  4. data/lib/daytona_api_client/api/organizations_api.rb +131 -0
  5. data/lib/daytona_api_client/api/preview_api.rb +64 -0
  6. data/lib/daytona_api_client/api/sandbox_api.rb +70 -0
  7. data/lib/daytona_api_client/models/{computer_use_status_response.rb → available_sandbox_class.rb} +84 -24
  8. data/lib/daytona_api_client/models/create_sandbox.rb +11 -1
  9. data/lib/daytona_api_client/models/organization.rb +28 -1
  10. data/lib/daytona_api_client/models/{create_session_request.rb → organization_preview_warning.rb} +20 -20
  11. data/lib/daytona_api_client/models/{download_files.rb → preview_warning.rb} +20 -22
  12. data/lib/daytona_api_client/models/sandbox.rb +11 -1
  13. data/lib/daytona_api_client/models/sandbox_list_item.rb +11 -1
  14. data/lib/daytona_api_client/version.rb +1 -1
  15. data/lib/daytona_api_client.rb +3 -68
  16. metadata +4 -69
  17. data/lib/daytona_api_client/api/toolbox_api.rb +0 -5108
  18. data/lib/daytona_api_client/models/command.rb +0 -202
  19. data/lib/daytona_api_client/models/completion_context.rb +0 -173
  20. data/lib/daytona_api_client/models/completion_item.rb +0 -218
  21. data/lib/daytona_api_client/models/completion_list.rb +0 -192
  22. data/lib/daytona_api_client/models/compressed_screenshot_response.rb +0 -185
  23. data/lib/daytona_api_client/models/computer_use_start_response.rb +0 -192
  24. data/lib/daytona_api_client/models/computer_use_stop_response.rb +0 -192
  25. data/lib/daytona_api_client/models/display_info_response.rb +0 -167
  26. data/lib/daytona_api_client/models/execute_request.rb +0 -184
  27. data/lib/daytona_api_client/models/execute_response.rb +0 -192
  28. data/lib/daytona_api_client/models/file_info.rb +0 -346
  29. data/lib/daytona_api_client/models/file_status.rb +0 -242
  30. data/lib/daytona_api_client/models/git_add_request.rb +0 -193
  31. data/lib/daytona_api_client/models/git_branch_request.rb +0 -190
  32. data/lib/daytona_api_client/models/git_checkout_request.rb +0 -190
  33. data/lib/daytona_api_client/models/git_clone_request.rb +0 -226
  34. data/lib/daytona_api_client/models/git_commit_info.rb +0 -268
  35. data/lib/daytona_api_client/models/git_commit_request.rb +0 -254
  36. data/lib/daytona_api_client/models/git_commit_response.rb +0 -164
  37. data/lib/daytona_api_client/models/git_delete_branch_request.rb +0 -190
  38. data/lib/daytona_api_client/models/git_repo_request.rb +0 -182
  39. data/lib/daytona_api_client/models/git_status.rb +0 -219
  40. data/lib/daytona_api_client/models/keyboard_hotkey_request.rb +0 -165
  41. data/lib/daytona_api_client/models/keyboard_press_request.rb +0 -177
  42. data/lib/daytona_api_client/models/keyboard_type_request.rb +0 -175
  43. data/lib/daytona_api_client/models/list_branch_response.rb +0 -166
  44. data/lib/daytona_api_client/models/lsp_completion_params.rb +0 -254
  45. data/lib/daytona_api_client/models/lsp_document_request.rb +0 -219
  46. data/lib/daytona_api_client/models/lsp_location.rb +0 -190
  47. data/lib/daytona_api_client/models/lsp_server_request.rb +0 -192
  48. data/lib/daytona_api_client/models/lsp_symbol.rb +0 -216
  49. data/lib/daytona_api_client/models/match.rb +0 -216
  50. data/lib/daytona_api_client/models/mouse_click_request.rb +0 -212
  51. data/lib/daytona_api_client/models/mouse_click_response.rb +0 -192
  52. data/lib/daytona_api_client/models/mouse_drag_request.rb +0 -256
  53. data/lib/daytona_api_client/models/mouse_drag_response.rb +0 -192
  54. data/lib/daytona_api_client/models/mouse_move_request.rb +0 -192
  55. data/lib/daytona_api_client/models/mouse_move_response.rb +0 -192
  56. data/lib/daytona_api_client/models/mouse_position.rb +0 -192
  57. data/lib/daytona_api_client/models/mouse_scroll_request.rb +0 -229
  58. data/lib/daytona_api_client/models/mouse_scroll_response.rb +0 -165
  59. data/lib/daytona_api_client/models/position.rb +0 -190
  60. data/lib/daytona_api_client/models/process_errors_response.rb +0 -192
  61. data/lib/daytona_api_client/models/process_logs_response.rb +0 -192
  62. data/lib/daytona_api_client/models/process_restart_response.rb +0 -192
  63. data/lib/daytona_api_client/models/process_status_response.rb +0 -192
  64. data/lib/daytona_api_client/models/project_dir_response.rb +0 -147
  65. data/lib/daytona_api_client/models/pty_create_request.rb +0 -217
  66. data/lib/daytona_api_client/models/pty_create_response.rb +0 -165
  67. data/lib/daytona_api_client/models/pty_list_response.rb +0 -167
  68. data/lib/daytona_api_client/models/pty_resize_request.rb +0 -192
  69. data/lib/daytona_api_client/models/pty_session_info.rb +0 -354
  70. data/lib/daytona_api_client/models/range.rb +0 -190
  71. data/lib/daytona_api_client/models/region_screenshot_response.rb +0 -185
  72. data/lib/daytona_api_client/models/replace_request.rb +0 -218
  73. data/lib/daytona_api_client/models/replace_result.rb +0 -165
  74. data/lib/daytona_api_client/models/screenshot_response.rb +0 -185
  75. data/lib/daytona_api_client/models/search_files_response.rb +0 -166
  76. data/lib/daytona_api_client/models/session.rb +0 -180
  77. data/lib/daytona_api_client/models/session_execute_request.rb +0 -185
  78. data/lib/daytona_api_client/models/session_execute_response.rb +0 -168
  79. data/lib/daytona_api_client/models/user_home_dir_response.rb +0 -147
  80. data/lib/daytona_api_client/models/windows_response.rb +0 -194
  81. 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 ComputerUseStopResponse < ApiModelBase
18
- # A message indicating the result of stopping computer use processes
19
- attr_accessor :message
20
-
21
- # Status information about all VNC desktop processes after stopping
22
- attr_accessor :status
23
-
24
- # Attribute mapping from ruby-style variable name to JSON key.
25
- def self.attribute_map
26
- {
27
- :'message' => :'message',
28
- :'status' => :'status'
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
- :'status' => :'Object'
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::ComputerUseStopResponse` 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::ComputerUseStopResponse`. 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?(:'status')
79
- self.status = attributes[:'status']
80
- else
81
- self.status = 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 @status.nil?
95
- invalid_properties.push('invalid value for "status", status 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 @status.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] status Value to be assigned
122
- def status=(status)
123
- if status.nil?
124
- fail ArgumentError, 'status cannot be nil'
125
- end
126
-
127
- @status = status
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
- status == o.status
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, status].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,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 DisplayInfoResponse < ApiModelBase
18
- # Array of display information for all connected displays
19
- attr_accessor :displays
20
-
21
- # Attribute mapping from ruby-style variable name to JSON key.
22
- def self.attribute_map
23
- {
24
- :'displays' => :'displays'
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
- :'displays' => :'Array<Object>'
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::DisplayInfoResponse` 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::DisplayInfoResponse`. 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?(:'displays')
68
- if (value = attributes[:'displays']).is_a?(Array)
69
- self.displays = value
70
- end
71
- else
72
- self.displays = 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 @displays.nil?
82
- invalid_properties.push('invalid value for "displays", displays 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 @displays.nil?
93
- true
94
- end
95
-
96
- # Custom attribute writer method with validation
97
- # @param [Object] displays Value to be assigned
98
- def displays=(displays)
99
- if displays.nil?
100
- fail ArgumentError, 'displays cannot be nil'
101
- end
102
-
103
- @displays = displays
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
- displays == o.displays
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
- [displays].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