daytona_toolbox_api_client 0.223.0.alpha.2 → 0.223.1
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.
- checksums.yaml +4 -4
- data/.openapi-generator/FILES +6 -0
- data/lib/daytona_toolbox_api_client/api/computer_use_api.rb +272 -0
- data/lib/daytona_toolbox_api_client/api/file_system_api.rb +5 -5
- data/lib/daytona_toolbox_api_client/api/git_api.rb +2 -2
- data/lib/daytona_toolbox_api_client/models/daemon_error_code.rb +3 -1
- data/lib/daytona_toolbox_api_client/models/fs_file_result.rb +156 -0
- data/lib/daytona_toolbox_api_client/models/initialize_request.rb +0 -17
- data/lib/daytona_toolbox_api_client/models/keyboard_key_down_request.rb +165 -0
- data/lib/daytona_toolbox_api_client/models/keyboard_key_up_request.rb +165 -0
- data/lib/daytona_toolbox_api_client/models/mouse_click_request.rb +22 -1
- data/lib/daytona_toolbox_api_client/models/mouse_down_request.rb +166 -0
- data/lib/daytona_toolbox_api_client/models/mouse_drag_request.rb +12 -1
- data/lib/daytona_toolbox_api_client/models/mouse_scroll_request.rb +13 -2
- data/lib/daytona_toolbox_api_client/models/mouse_up_request.rb +166 -0
- data/lib/daytona_toolbox_api_client/models/upload_files_response.rb +160 -0
- data/lib/daytona_toolbox_api_client/version.rb +1 -1
- data/lib/daytona_toolbox_api_client.rb +6 -0
- metadata +7 -1
|
@@ -0,0 +1,165 @@
|
|
|
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 KeyboardKeyDownRequest < ApiModelBase
|
|
18
|
+
# e.g., \"ctrl\", \"shift\", \"a\"
|
|
19
|
+
attr_accessor :key
|
|
20
|
+
|
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
22
|
+
def self.attribute_map
|
|
23
|
+
{
|
|
24
|
+
:'key' => :'key'
|
|
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
|
+
:'key' => :'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 `DaytonaToolboxApiClient::KeyboardKeyDownRequest` 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 `DaytonaToolboxApiClient::KeyboardKeyDownRequest`. 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?(:'key')
|
|
68
|
+
self.key = attributes[:'key']
|
|
69
|
+
else
|
|
70
|
+
self.key = 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 @key.nil?
|
|
80
|
+
invalid_properties.push('invalid value for "key", key 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 @key.nil?
|
|
91
|
+
true
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# Custom attribute writer method with validation
|
|
95
|
+
# @param [Object] key Value to be assigned
|
|
96
|
+
def key=(key)
|
|
97
|
+
if key.nil?
|
|
98
|
+
fail ArgumentError, 'key cannot be nil'
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
@key = key
|
|
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
|
+
key == o.key
|
|
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
|
+
[key].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
|
|
@@ -0,0 +1,165 @@
|
|
|
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 KeyboardKeyUpRequest < ApiModelBase
|
|
18
|
+
# e.g., \"ctrl\", \"shift\", \"a\"
|
|
19
|
+
attr_accessor :key
|
|
20
|
+
|
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
22
|
+
def self.attribute_map
|
|
23
|
+
{
|
|
24
|
+
:'key' => :'key'
|
|
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
|
+
:'key' => :'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 `DaytonaToolboxApiClient::KeyboardKeyUpRequest` 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 `DaytonaToolboxApiClient::KeyboardKeyUpRequest`. 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?(:'key')
|
|
68
|
+
self.key = attributes[:'key']
|
|
69
|
+
else
|
|
70
|
+
self.key = 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 @key.nil?
|
|
80
|
+
invalid_properties.push('invalid value for "key", key 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 @key.nil?
|
|
91
|
+
true
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# Custom attribute writer method with validation
|
|
95
|
+
# @param [Object] key Value to be assigned
|
|
96
|
+
def key=(key)
|
|
97
|
+
if key.nil?
|
|
98
|
+
fail ArgumentError, 'key cannot be nil'
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
@key = key
|
|
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
|
+
key == o.key
|
|
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
|
+
[key].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
|
|
@@ -18,8 +18,13 @@ module DaytonaToolboxApiClient
|
|
|
18
18
|
# left, right, middle
|
|
19
19
|
attr_accessor :button
|
|
20
20
|
|
|
21
|
+
# Clicks is a pointer so an omitted value is distinguishable from an explicit 0, which must be rejected rather than silently defaulted.
|
|
22
|
+
attr_accessor :clicks
|
|
23
|
+
|
|
21
24
|
attr_accessor :double
|
|
22
25
|
|
|
26
|
+
attr_accessor :modifiers
|
|
27
|
+
|
|
23
28
|
attr_accessor :x
|
|
24
29
|
|
|
25
30
|
attr_accessor :y
|
|
@@ -28,7 +33,9 @@ module DaytonaToolboxApiClient
|
|
|
28
33
|
def self.attribute_map
|
|
29
34
|
{
|
|
30
35
|
:'button' => :'button',
|
|
36
|
+
:'clicks' => :'clicks',
|
|
31
37
|
:'double' => :'double',
|
|
38
|
+
:'modifiers' => :'modifiers',
|
|
32
39
|
:'x' => :'x',
|
|
33
40
|
:'y' => :'y'
|
|
34
41
|
}
|
|
@@ -48,7 +55,9 @@ module DaytonaToolboxApiClient
|
|
|
48
55
|
def self.openapi_types
|
|
49
56
|
{
|
|
50
57
|
:'button' => :'String',
|
|
58
|
+
:'clicks' => :'Integer',
|
|
51
59
|
:'double' => :'Boolean',
|
|
60
|
+
:'modifiers' => :'Array<String>',
|
|
52
61
|
:'x' => :'Integer',
|
|
53
62
|
:'y' => :'Integer'
|
|
54
63
|
}
|
|
@@ -80,10 +89,20 @@ module DaytonaToolboxApiClient
|
|
|
80
89
|
self.button = attributes[:'button']
|
|
81
90
|
end
|
|
82
91
|
|
|
92
|
+
if attributes.key?(:'clicks')
|
|
93
|
+
self.clicks = attributes[:'clicks']
|
|
94
|
+
end
|
|
95
|
+
|
|
83
96
|
if attributes.key?(:'double')
|
|
84
97
|
self.double = attributes[:'double']
|
|
85
98
|
end
|
|
86
99
|
|
|
100
|
+
if attributes.key?(:'modifiers')
|
|
101
|
+
if (value = attributes[:'modifiers']).is_a?(Array)
|
|
102
|
+
self.modifiers = value
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
|
|
87
106
|
if attributes.key?(:'x')
|
|
88
107
|
self.x = attributes[:'x']
|
|
89
108
|
end
|
|
@@ -114,7 +133,9 @@ module DaytonaToolboxApiClient
|
|
|
114
133
|
return true if self.equal?(o)
|
|
115
134
|
self.class == o.class &&
|
|
116
135
|
button == o.button &&
|
|
136
|
+
clicks == o.clicks &&
|
|
117
137
|
double == o.double &&
|
|
138
|
+
modifiers == o.modifiers &&
|
|
118
139
|
x == o.x &&
|
|
119
140
|
y == o.y
|
|
120
141
|
end
|
|
@@ -128,7 +149,7 @@ module DaytonaToolboxApiClient
|
|
|
128
149
|
# Calculates hash code according to all attributes.
|
|
129
150
|
# @return [Integer] Hash code
|
|
130
151
|
def hash
|
|
131
|
-
[button, double, x, y].hash
|
|
152
|
+
[button, clicks, double, modifiers, x, y].hash
|
|
132
153
|
end
|
|
133
154
|
|
|
134
155
|
# Builds the object from hash
|
|
@@ -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 MouseDownRequest < 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::MouseDownRequest` 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::MouseDownRequest`. 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
|
|
@@ -21,6 +21,8 @@ module DaytonaToolboxApiClient
|
|
|
21
21
|
|
|
22
22
|
attr_accessor :end_y
|
|
23
23
|
|
|
24
|
+
attr_accessor :modifiers
|
|
25
|
+
|
|
24
26
|
attr_accessor :start_x
|
|
25
27
|
|
|
26
28
|
attr_accessor :start_y
|
|
@@ -31,6 +33,7 @@ module DaytonaToolboxApiClient
|
|
|
31
33
|
:'button' => :'button',
|
|
32
34
|
:'end_x' => :'endX',
|
|
33
35
|
:'end_y' => :'endY',
|
|
36
|
+
:'modifiers' => :'modifiers',
|
|
34
37
|
:'start_x' => :'startX',
|
|
35
38
|
:'start_y' => :'startY'
|
|
36
39
|
}
|
|
@@ -52,6 +55,7 @@ module DaytonaToolboxApiClient
|
|
|
52
55
|
:'button' => :'String',
|
|
53
56
|
:'end_x' => :'Integer',
|
|
54
57
|
:'end_y' => :'Integer',
|
|
58
|
+
:'modifiers' => :'Array<String>',
|
|
55
59
|
:'start_x' => :'Integer',
|
|
56
60
|
:'start_y' => :'Integer'
|
|
57
61
|
}
|
|
@@ -91,6 +95,12 @@ module DaytonaToolboxApiClient
|
|
|
91
95
|
self.end_y = attributes[:'end_y']
|
|
92
96
|
end
|
|
93
97
|
|
|
98
|
+
if attributes.key?(:'modifiers')
|
|
99
|
+
if (value = attributes[:'modifiers']).is_a?(Array)
|
|
100
|
+
self.modifiers = value
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
|
|
94
104
|
if attributes.key?(:'start_x')
|
|
95
105
|
self.start_x = attributes[:'start_x']
|
|
96
106
|
end
|
|
@@ -123,6 +133,7 @@ module DaytonaToolboxApiClient
|
|
|
123
133
|
button == o.button &&
|
|
124
134
|
end_x == o.end_x &&
|
|
125
135
|
end_y == o.end_y &&
|
|
136
|
+
modifiers == o.modifiers &&
|
|
126
137
|
start_x == o.start_x &&
|
|
127
138
|
start_y == o.start_y
|
|
128
139
|
end
|
|
@@ -136,7 +147,7 @@ module DaytonaToolboxApiClient
|
|
|
136
147
|
# Calculates hash code according to all attributes.
|
|
137
148
|
# @return [Integer] Hash code
|
|
138
149
|
def hash
|
|
139
|
-
[button, end_x, end_y, start_x, start_y].hash
|
|
150
|
+
[button, end_x, end_y, modifiers, start_x, start_y].hash
|
|
140
151
|
end
|
|
141
152
|
|
|
142
153
|
# Builds the object from hash
|
|
@@ -17,9 +17,11 @@ module DaytonaToolboxApiClient
|
|
|
17
17
|
class MouseScrollRequest < ApiModelBase
|
|
18
18
|
attr_accessor :amount
|
|
19
19
|
|
|
20
|
-
# up, down
|
|
20
|
+
# up, down, left, right
|
|
21
21
|
attr_accessor :direction
|
|
22
22
|
|
|
23
|
+
attr_accessor :modifiers
|
|
24
|
+
|
|
23
25
|
attr_accessor :x
|
|
24
26
|
|
|
25
27
|
attr_accessor :y
|
|
@@ -29,6 +31,7 @@ module DaytonaToolboxApiClient
|
|
|
29
31
|
{
|
|
30
32
|
:'amount' => :'amount',
|
|
31
33
|
:'direction' => :'direction',
|
|
34
|
+
:'modifiers' => :'modifiers',
|
|
32
35
|
:'x' => :'x',
|
|
33
36
|
:'y' => :'y'
|
|
34
37
|
}
|
|
@@ -49,6 +52,7 @@ module DaytonaToolboxApiClient
|
|
|
49
52
|
{
|
|
50
53
|
:'amount' => :'Integer',
|
|
51
54
|
:'direction' => :'String',
|
|
55
|
+
:'modifiers' => :'Array<String>',
|
|
52
56
|
:'x' => :'Integer',
|
|
53
57
|
:'y' => :'Integer'
|
|
54
58
|
}
|
|
@@ -84,6 +88,12 @@ module DaytonaToolboxApiClient
|
|
|
84
88
|
self.direction = attributes[:'direction']
|
|
85
89
|
end
|
|
86
90
|
|
|
91
|
+
if attributes.key?(:'modifiers')
|
|
92
|
+
if (value = attributes[:'modifiers']).is_a?(Array)
|
|
93
|
+
self.modifiers = value
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
|
|
87
97
|
if attributes.key?(:'x')
|
|
88
98
|
self.x = attributes[:'x']
|
|
89
99
|
end
|
|
@@ -134,6 +144,7 @@ module DaytonaToolboxApiClient
|
|
|
134
144
|
self.class == o.class &&
|
|
135
145
|
amount == o.amount &&
|
|
136
146
|
direction == o.direction &&
|
|
147
|
+
modifiers == o.modifiers &&
|
|
137
148
|
x == o.x &&
|
|
138
149
|
y == o.y
|
|
139
150
|
end
|
|
@@ -147,7 +158,7 @@ module DaytonaToolboxApiClient
|
|
|
147
158
|
# Calculates hash code according to all attributes.
|
|
148
159
|
# @return [Integer] Hash code
|
|
149
160
|
def hash
|
|
150
|
-
[amount, direction, x, y].hash
|
|
161
|
+
[amount, direction, modifiers, x, y].hash
|
|
151
162
|
end
|
|
152
163
|
|
|
153
164
|
# Builds the object from hash
|