daytona_toolbox_api_client 0.223.0.alpha.2 → 0.223.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.
@@ -0,0 +1,166 @@
1
+ =begin
2
+ #Daytona Toolbox API
3
+
4
+ #Daytona Toolbox API. The base URL comes from the sandbox's `toolboxProxyUrl` field (returned in sandbox DTO by the main Daytona API) plus the sandbox ID: `{toolboxProxyUrl}/{sandboxId}/{endpoint}`. Default for Daytona Cloud: `https://proxy.app.daytona.io/toolbox/{sandboxId}`.
5
+
6
+ The version of the OpenAPI document: v0.0.0-dev
7
+
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 DaytonaToolboxApiClient
17
+ class MouseUpRequest < ApiModelBase
18
+ # left, right, middle
19
+ attr_accessor :button
20
+
21
+ attr_accessor :x
22
+
23
+ attr_accessor :y
24
+
25
+ # Attribute mapping from ruby-style variable name to JSON key.
26
+ def self.attribute_map
27
+ {
28
+ :'button' => :'button',
29
+ :'x' => :'x',
30
+ :'y' => :'y'
31
+ }
32
+ end
33
+
34
+ # Returns attribute mapping this model knows about
35
+ def self.acceptable_attribute_map
36
+ attribute_map
37
+ end
38
+
39
+ # Returns all the JSON keys this model knows about
40
+ def self.acceptable_attributes
41
+ acceptable_attribute_map.values
42
+ end
43
+
44
+ # Attribute type mapping.
45
+ def self.openapi_types
46
+ {
47
+ :'button' => :'String',
48
+ :'x' => :'Integer',
49
+ :'y' => :'Integer'
50
+ }
51
+ end
52
+
53
+ # List of attributes with nullable: true
54
+ def self.openapi_nullable
55
+ Set.new([
56
+ ])
57
+ end
58
+
59
+ # Initializes the object
60
+ # @param [Hash] attributes Model attributes in the form of hash
61
+ def initialize(attributes = {})
62
+ if (!attributes.is_a?(Hash))
63
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaToolboxApiClient::MouseUpRequest` initialize method"
64
+ end
65
+
66
+ # check to see if the attribute exists and convert string to symbol for hash key
67
+ acceptable_attribute_map = self.class.acceptable_attribute_map
68
+ attributes = attributes.each_with_object({}) { |(k, v), h|
69
+ if (!acceptable_attribute_map.key?(k.to_sym))
70
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaToolboxApiClient::MouseUpRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
71
+ end
72
+ h[k.to_sym] = v
73
+ }
74
+
75
+ if attributes.key?(:'button')
76
+ self.button = attributes[:'button']
77
+ end
78
+
79
+ if attributes.key?(:'x')
80
+ self.x = attributes[:'x']
81
+ end
82
+
83
+ if attributes.key?(:'y')
84
+ self.y = attributes[:'y']
85
+ end
86
+ end
87
+
88
+ # Show invalid properties with the reasons. Usually used together with valid?
89
+ # @return Array for valid properties with the reasons
90
+ def list_invalid_properties
91
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
92
+ invalid_properties = Array.new
93
+ invalid_properties
94
+ end
95
+
96
+ # Check to see if the all the properties in the model are valid
97
+ # @return true if the model is valid
98
+ def valid?
99
+ warn '[DEPRECATED] the `valid?` method is obsolete'
100
+ true
101
+ end
102
+
103
+ # Checks equality by comparing each attribute.
104
+ # @param [Object] Object to be compared
105
+ def ==(o)
106
+ return true if self.equal?(o)
107
+ self.class == o.class &&
108
+ button == o.button &&
109
+ x == o.x &&
110
+ y == o.y
111
+ end
112
+
113
+ # @see the `==` method
114
+ # @param [Object] Object to be compared
115
+ def eql?(o)
116
+ self == o
117
+ end
118
+
119
+ # Calculates hash code according to all attributes.
120
+ # @return [Integer] Hash code
121
+ def hash
122
+ [button, x, y].hash
123
+ end
124
+
125
+ # Builds the object from hash
126
+ # @param [Hash] attributes Model attributes in the form of hash
127
+ # @return [Object] Returns the model itself
128
+ def self.build_from_hash(attributes)
129
+ return nil unless attributes.is_a?(Hash)
130
+ attributes = attributes.transform_keys(&:to_sym)
131
+ transformed_hash = {}
132
+ openapi_types.each_pair do |key, type|
133
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
134
+ transformed_hash["#{key}"] = nil
135
+ elsif type =~ /\AArray<(.*)>/i
136
+ # check to ensure the input is an array given that the attribute
137
+ # is documented as an array but the input is not
138
+ if attributes[attribute_map[key]].is_a?(Array)
139
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
140
+ end
141
+ elsif !attributes[attribute_map[key]].nil?
142
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
143
+ end
144
+ end
145
+ new(transformed_hash)
146
+ end
147
+
148
+ # Returns the object in the form of hash
149
+ # @return [Hash] Returns the object in the form of hash
150
+ def to_hash
151
+ hash = {}
152
+ self.class.attribute_map.each_pair do |attr, param|
153
+ value = self.send(attr)
154
+ if value.nil?
155
+ is_nullable = self.class.openapi_nullable.include?(attr)
156
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
157
+ end
158
+
159
+ hash[param] = _to_hash(value)
160
+ end
161
+ hash
162
+ end
163
+
164
+ end
165
+
166
+ end
@@ -0,0 +1,160 @@
1
+ =begin
2
+ #Daytona Toolbox API
3
+
4
+ #Daytona Toolbox API. The base URL comes from the sandbox's `toolboxProxyUrl` field (returned in sandbox DTO by the main Daytona API) plus the sandbox ID: `{toolboxProxyUrl}/{sandboxId}/{endpoint}`. Default for Daytona Cloud: `https://proxy.app.daytona.io/toolbox/{sandboxId}`.
5
+
6
+ The version of the OpenAPI document: v0.0.0-dev
7
+
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 DaytonaToolboxApiClient
17
+ class UploadFilesResponse < ApiModelBase
18
+ attr_accessor :errors
19
+
20
+ attr_accessor :files
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'errors' => :'errors',
26
+ :'files' => :'files'
27
+ }
28
+ end
29
+
30
+ # Returns attribute mapping this model knows about
31
+ def self.acceptable_attribute_map
32
+ attribute_map
33
+ end
34
+
35
+ # Returns all the JSON keys this model knows about
36
+ def self.acceptable_attributes
37
+ acceptable_attribute_map.values
38
+ end
39
+
40
+ # Attribute type mapping.
41
+ def self.openapi_types
42
+ {
43
+ :'errors' => :'Array<String>',
44
+ :'files' => :'Array<FsFileResult>'
45
+ }
46
+ end
47
+
48
+ # List of attributes with nullable: true
49
+ def self.openapi_nullable
50
+ Set.new([
51
+ ])
52
+ end
53
+
54
+ # Initializes the object
55
+ # @param [Hash] attributes Model attributes in the form of hash
56
+ def initialize(attributes = {})
57
+ if (!attributes.is_a?(Hash))
58
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaToolboxApiClient::UploadFilesResponse` initialize method"
59
+ end
60
+
61
+ # check to see if the attribute exists and convert string to symbol for hash key
62
+ acceptable_attribute_map = self.class.acceptable_attribute_map
63
+ attributes = attributes.each_with_object({}) { |(k, v), h|
64
+ if (!acceptable_attribute_map.key?(k.to_sym))
65
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaToolboxApiClient::UploadFilesResponse`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
66
+ end
67
+ h[k.to_sym] = v
68
+ }
69
+
70
+ if attributes.key?(:'errors')
71
+ if (value = attributes[:'errors']).is_a?(Array)
72
+ self.errors = value
73
+ end
74
+ end
75
+
76
+ if attributes.key?(:'files')
77
+ if (value = attributes[:'files']).is_a?(Array)
78
+ self.files = value
79
+ end
80
+ end
81
+ end
82
+
83
+ # Show invalid properties with the reasons. Usually used together with valid?
84
+ # @return Array for valid properties with the reasons
85
+ def list_invalid_properties
86
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
87
+ invalid_properties = Array.new
88
+ invalid_properties
89
+ end
90
+
91
+ # Check to see if the all the properties in the model are valid
92
+ # @return true if the model is valid
93
+ def valid?
94
+ warn '[DEPRECATED] the `valid?` method is obsolete'
95
+ true
96
+ end
97
+
98
+ # Checks equality by comparing each attribute.
99
+ # @param [Object] Object to be compared
100
+ def ==(o)
101
+ return true if self.equal?(o)
102
+ self.class == o.class &&
103
+ errors == o.errors &&
104
+ files == o.files
105
+ end
106
+
107
+ # @see the `==` method
108
+ # @param [Object] Object to be compared
109
+ def eql?(o)
110
+ self == o
111
+ end
112
+
113
+ # Calculates hash code according to all attributes.
114
+ # @return [Integer] Hash code
115
+ def hash
116
+ [errors, files].hash
117
+ end
118
+
119
+ # Builds the object from hash
120
+ # @param [Hash] attributes Model attributes in the form of hash
121
+ # @return [Object] Returns the model itself
122
+ def self.build_from_hash(attributes)
123
+ return nil unless attributes.is_a?(Hash)
124
+ attributes = attributes.transform_keys(&:to_sym)
125
+ transformed_hash = {}
126
+ openapi_types.each_pair do |key, type|
127
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
128
+ transformed_hash["#{key}"] = nil
129
+ elsif type =~ /\AArray<(.*)>/i
130
+ # check to ensure the input is an array given that the attribute
131
+ # is documented as an array but the input is not
132
+ if attributes[attribute_map[key]].is_a?(Array)
133
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
134
+ end
135
+ elsif !attributes[attribute_map[key]].nil?
136
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
137
+ end
138
+ end
139
+ new(transformed_hash)
140
+ end
141
+
142
+ # Returns the object in the form of hash
143
+ # @return [Hash] Returns the object in the form of hash
144
+ def to_hash
145
+ hash = {}
146
+ self.class.attribute_map.each_pair do |attr, param|
147
+ value = self.send(attr)
148
+ if value.nil?
149
+ is_nullable = self.class.openapi_nullable.include?(attr)
150
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
151
+ end
152
+
153
+ hash[param] = _to_hash(value)
154
+ end
155
+ hash
156
+ end
157
+
158
+ end
159
+
160
+ end
@@ -11,5 +11,5 @@ Generator version: 7.21.0
11
11
  =end
12
12
 
13
13
  module DaytonaToolboxApiClient
14
- VERSION = '0.223.0.alpha.2'
14
+ VERSION = '0.223.0'
15
15
  end
@@ -49,6 +49,7 @@ require 'daytona_toolbox_api_client/models/file_info'
49
49
  require 'daytona_toolbox_api_client/models/file_status'
50
50
  require 'daytona_toolbox_api_client/models/files_download_request'
51
51
  require 'daytona_toolbox_api_client/models/find_accessibility_nodes_request'
52
+ require 'daytona_toolbox_api_client/models/fs_file_result'
52
53
  require 'daytona_toolbox_api_client/models/git_add_remote_request'
53
54
  require 'daytona_toolbox_api_client/models/git_add_request'
54
55
  require 'daytona_toolbox_api_client/models/git_authenticate_request'
@@ -73,6 +74,8 @@ require 'daytona_toolbox_api_client/models/initialize_request'
73
74
  require 'daytona_toolbox_api_client/models/interpreter_context'
74
75
  require 'daytona_toolbox_api_client/models/is_port_in_use_response'
75
76
  require 'daytona_toolbox_api_client/models/keyboard_hotkey_request'
77
+ require 'daytona_toolbox_api_client/models/keyboard_key_down_request'
78
+ require 'daytona_toolbox_api_client/models/keyboard_key_up_request'
76
79
  require 'daytona_toolbox_api_client/models/keyboard_press_request'
77
80
  require 'daytona_toolbox_api_client/models/keyboard_type_request'
78
81
  require 'daytona_toolbox_api_client/models/list_branch_response'
@@ -89,11 +92,13 @@ require 'daytona_toolbox_api_client/models/lsp_symbol'
89
92
  require 'daytona_toolbox_api_client/models/match'
90
93
  require 'daytona_toolbox_api_client/models/mouse_click_request'
91
94
  require 'daytona_toolbox_api_client/models/mouse_click_response'
95
+ require 'daytona_toolbox_api_client/models/mouse_down_request'
92
96
  require 'daytona_toolbox_api_client/models/mouse_drag_request'
93
97
  require 'daytona_toolbox_api_client/models/mouse_drag_response'
94
98
  require 'daytona_toolbox_api_client/models/mouse_move_request'
95
99
  require 'daytona_toolbox_api_client/models/mouse_position_response'
96
100
  require 'daytona_toolbox_api_client/models/mouse_scroll_request'
101
+ require 'daytona_toolbox_api_client/models/mouse_up_request'
97
102
  require 'daytona_toolbox_api_client/models/port_list'
98
103
  require 'daytona_toolbox_api_client/models/position'
99
104
  require 'daytona_toolbox_api_client/models/process_errors_response'
@@ -122,6 +127,7 @@ require 'daytona_toolbox_api_client/models/status'
122
127
  require 'daytona_toolbox_api_client/models/stop_recording_request'
123
128
  require 'daytona_toolbox_api_client/models/system_metrics'
124
129
  require 'daytona_toolbox_api_client/models/update_env_request'
130
+ require 'daytona_toolbox_api_client/models/upload_files_response'
125
131
  require 'daytona_toolbox_api_client/models/uploaded_file'
126
132
  require 'daytona_toolbox_api_client/models/user_home_dir_response'
127
133
  require 'daytona_toolbox_api_client/models/window_info'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daytona_toolbox_api_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.223.0.alpha.2
4
+ version: 0.223.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - daytona
@@ -111,6 +111,7 @@ files:
111
111
  - lib/daytona_toolbox_api_client/models/file_status.rb
112
112
  - lib/daytona_toolbox_api_client/models/files_download_request.rb
113
113
  - lib/daytona_toolbox_api_client/models/find_accessibility_nodes_request.rb
114
+ - lib/daytona_toolbox_api_client/models/fs_file_result.rb
114
115
  - lib/daytona_toolbox_api_client/models/git_add_remote_request.rb
115
116
  - lib/daytona_toolbox_api_client/models/git_add_request.rb
116
117
  - lib/daytona_toolbox_api_client/models/git_authenticate_request.rb
@@ -135,6 +136,8 @@ files:
135
136
  - lib/daytona_toolbox_api_client/models/interpreter_context.rb
136
137
  - lib/daytona_toolbox_api_client/models/is_port_in_use_response.rb
137
138
  - lib/daytona_toolbox_api_client/models/keyboard_hotkey_request.rb
139
+ - lib/daytona_toolbox_api_client/models/keyboard_key_down_request.rb
140
+ - lib/daytona_toolbox_api_client/models/keyboard_key_up_request.rb
138
141
  - lib/daytona_toolbox_api_client/models/keyboard_press_request.rb
139
142
  - lib/daytona_toolbox_api_client/models/keyboard_type_request.rb
140
143
  - lib/daytona_toolbox_api_client/models/list_branch_response.rb
@@ -151,11 +154,13 @@ files:
151
154
  - lib/daytona_toolbox_api_client/models/match.rb
152
155
  - lib/daytona_toolbox_api_client/models/mouse_click_request.rb
153
156
  - lib/daytona_toolbox_api_client/models/mouse_click_response.rb
157
+ - lib/daytona_toolbox_api_client/models/mouse_down_request.rb
154
158
  - lib/daytona_toolbox_api_client/models/mouse_drag_request.rb
155
159
  - lib/daytona_toolbox_api_client/models/mouse_drag_response.rb
156
160
  - lib/daytona_toolbox_api_client/models/mouse_move_request.rb
157
161
  - lib/daytona_toolbox_api_client/models/mouse_position_response.rb
158
162
  - lib/daytona_toolbox_api_client/models/mouse_scroll_request.rb
163
+ - lib/daytona_toolbox_api_client/models/mouse_up_request.rb
159
164
  - lib/daytona_toolbox_api_client/models/port_list.rb
160
165
  - lib/daytona_toolbox_api_client/models/position.rb
161
166
  - lib/daytona_toolbox_api_client/models/process_errors_response.rb
@@ -184,6 +189,7 @@ files:
184
189
  - lib/daytona_toolbox_api_client/models/stop_recording_request.rb
185
190
  - lib/daytona_toolbox_api_client/models/system_metrics.rb
186
191
  - lib/daytona_toolbox_api_client/models/update_env_request.rb
192
+ - lib/daytona_toolbox_api_client/models/upload_files_response.rb
187
193
  - lib/daytona_toolbox_api_client/models/uploaded_file.rb
188
194
  - lib/daytona_toolbox_api_client/models/user_home_dir_response.rb
189
195
  - lib/daytona_toolbox_api_client/models/window_info.rb