daytona_api_client 0.190.1 → 0.192.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.
- checksums.yaml +4 -4
- data/.openapi-generator/FILES +8 -0
- data/daytona_api_client.gemspec +2 -2
- data/lib/daytona_api_client/api/admin_api.rb +34 -4
- data/lib/daytona_api_client/api/audit_api.rb +34 -4
- data/lib/daytona_api_client/api/sandbox_api.rb +64 -0
- data/lib/daytona_api_client/api/secret_api.rb +350 -0
- data/lib/daytona_api_client/models/create_organization_quota.rb +14 -4
- data/lib/daytona_api_client/models/create_sandbox.rb +16 -4
- data/lib/daytona_api_client/models/create_secret.rb +214 -0
- data/lib/daytona_api_client/models/date_filter.rb +178 -0
- data/lib/daytona_api_client/models/daytona_configuration.rb +11 -1
- data/lib/daytona_api_client/models/int_filter.rb +222 -0
- data/lib/daytona_api_client/models/rate_limit_config.rb +14 -4
- data/lib/daytona_api_client/models/resolve_sandbox_secrets200_response_inner.rb +176 -0
- data/lib/daytona_api_client/models/runner.rb +14 -4
- data/lib/daytona_api_client/models/runner_full.rb +11 -1
- data/lib/daytona_api_client/models/secret.rb +312 -0
- data/lib/daytona_api_client/models/string_filter.rb +182 -0
- data/lib/daytona_api_client/models/update_organization_quota.rb +18 -5
- data/lib/daytona_api_client/models/update_secret.rb +170 -0
- data/lib/daytona_api_client/version.rb +1 -1
- data/lib/daytona_api_client.rb +8 -0
- data/project.json +8 -14
- metadata +11 -3
|
@@ -0,0 +1,222 @@
|
|
|
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 IntFilter < ApiModelBase
|
|
18
|
+
# Match values equal to this value.
|
|
19
|
+
attr_accessor :eq
|
|
20
|
+
|
|
21
|
+
# Match values not equal to this value.
|
|
22
|
+
attr_accessor :_not
|
|
23
|
+
|
|
24
|
+
# Match values present in this list. Accepts comma-separated values or repeated query parameters. Maximum 100 entries.
|
|
25
|
+
attr_accessor :_in
|
|
26
|
+
|
|
27
|
+
# Match values not present in this list. Accepts comma-separated values or repeated query parameters. Maximum 100 entries.
|
|
28
|
+
attr_accessor :not_in
|
|
29
|
+
|
|
30
|
+
# Match values greater than or equal to this value.
|
|
31
|
+
attr_accessor :gte
|
|
32
|
+
|
|
33
|
+
# Match values less than or equal to this value.
|
|
34
|
+
attr_accessor :lte
|
|
35
|
+
|
|
36
|
+
# Match values strictly greater than this value.
|
|
37
|
+
attr_accessor :gt
|
|
38
|
+
|
|
39
|
+
# Match values strictly less than this value.
|
|
40
|
+
attr_accessor :lt
|
|
41
|
+
|
|
42
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
43
|
+
def self.attribute_map
|
|
44
|
+
{
|
|
45
|
+
:'eq' => :'eq',
|
|
46
|
+
:'_not' => :'not',
|
|
47
|
+
:'_in' => :'in',
|
|
48
|
+
:'not_in' => :'notIn',
|
|
49
|
+
:'gte' => :'gte',
|
|
50
|
+
:'lte' => :'lte',
|
|
51
|
+
:'gt' => :'gt',
|
|
52
|
+
:'lt' => :'lt'
|
|
53
|
+
}
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# Returns attribute mapping this model knows about
|
|
57
|
+
def self.acceptable_attribute_map
|
|
58
|
+
attribute_map
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Returns all the JSON keys this model knows about
|
|
62
|
+
def self.acceptable_attributes
|
|
63
|
+
acceptable_attribute_map.values
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# Attribute type mapping.
|
|
67
|
+
def self.openapi_types
|
|
68
|
+
{
|
|
69
|
+
:'eq' => :'Float',
|
|
70
|
+
:'_not' => :'Float',
|
|
71
|
+
:'_in' => :'Array<Float>',
|
|
72
|
+
:'not_in' => :'Array<Float>',
|
|
73
|
+
:'gte' => :'Float',
|
|
74
|
+
:'lte' => :'Float',
|
|
75
|
+
:'gt' => :'Float',
|
|
76
|
+
:'lt' => :'Float'
|
|
77
|
+
}
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# List of attributes with nullable: true
|
|
81
|
+
def self.openapi_nullable
|
|
82
|
+
Set.new([
|
|
83
|
+
])
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Initializes the object
|
|
87
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
88
|
+
def initialize(attributes = {})
|
|
89
|
+
if (!attributes.is_a?(Hash))
|
|
90
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::IntFilter` initialize method"
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
94
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
95
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
96
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
97
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::IntFilter`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
98
|
+
end
|
|
99
|
+
h[k.to_sym] = v
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
if attributes.key?(:'eq')
|
|
103
|
+
self.eq = attributes[:'eq']
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
if attributes.key?(:'_not')
|
|
107
|
+
self._not = attributes[:'_not']
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
if attributes.key?(:'_in')
|
|
111
|
+
if (value = attributes[:'_in']).is_a?(Array)
|
|
112
|
+
self._in = value
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
if attributes.key?(:'not_in')
|
|
117
|
+
if (value = attributes[:'not_in']).is_a?(Array)
|
|
118
|
+
self.not_in = value
|
|
119
|
+
end
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
if attributes.key?(:'gte')
|
|
123
|
+
self.gte = attributes[:'gte']
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
if attributes.key?(:'lte')
|
|
127
|
+
self.lte = attributes[:'lte']
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
if attributes.key?(:'gt')
|
|
131
|
+
self.gt = attributes[:'gt']
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
if attributes.key?(:'lt')
|
|
135
|
+
self.lt = attributes[:'lt']
|
|
136
|
+
end
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
140
|
+
# @return Array for valid properties with the reasons
|
|
141
|
+
def list_invalid_properties
|
|
142
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
143
|
+
invalid_properties = Array.new
|
|
144
|
+
invalid_properties
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# Check to see if the all the properties in the model are valid
|
|
148
|
+
# @return true if the model is valid
|
|
149
|
+
def valid?
|
|
150
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
151
|
+
true
|
|
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
|
+
eq == o.eq &&
|
|
160
|
+
_not == o._not &&
|
|
161
|
+
_in == o._in &&
|
|
162
|
+
not_in == o.not_in &&
|
|
163
|
+
gte == o.gte &&
|
|
164
|
+
lte == o.lte &&
|
|
165
|
+
gt == o.gt &&
|
|
166
|
+
lt == o.lt
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
# @see the `==` method
|
|
170
|
+
# @param [Object] Object to be compared
|
|
171
|
+
def eql?(o)
|
|
172
|
+
self == o
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# Calculates hash code according to all attributes.
|
|
176
|
+
# @return [Integer] Hash code
|
|
177
|
+
def hash
|
|
178
|
+
[eq, _not, _in, not_in, gte, lte, gt, lt].hash
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
# Builds the object from hash
|
|
182
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
183
|
+
# @return [Object] Returns the model itself
|
|
184
|
+
def self.build_from_hash(attributes)
|
|
185
|
+
return nil unless attributes.is_a?(Hash)
|
|
186
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
187
|
+
transformed_hash = {}
|
|
188
|
+
openapi_types.each_pair do |key, type|
|
|
189
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
190
|
+
transformed_hash["#{key}"] = nil
|
|
191
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
192
|
+
# check to ensure the input is an array given that the attribute
|
|
193
|
+
# is documented as an array but the input is not
|
|
194
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
195
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
196
|
+
end
|
|
197
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
198
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
199
|
+
end
|
|
200
|
+
end
|
|
201
|
+
new(transformed_hash)
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
# Returns the object in the form of hash
|
|
205
|
+
# @return [Hash] Returns the object in the form of hash
|
|
206
|
+
def to_hash
|
|
207
|
+
hash = {}
|
|
208
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
209
|
+
value = self.send(attr)
|
|
210
|
+
if value.nil?
|
|
211
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
212
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
hash[param] = _to_hash(value)
|
|
216
|
+
end
|
|
217
|
+
hash
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
end
|
|
@@ -27,13 +27,17 @@ module DaytonaApiClient
|
|
|
27
27
|
# Sandbox lifecycle rate limit
|
|
28
28
|
attr_accessor :sandbox_lifecycle
|
|
29
29
|
|
|
30
|
+
# Sandbox list rate limit
|
|
31
|
+
attr_accessor :sandbox_list
|
|
32
|
+
|
|
30
33
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
31
34
|
def self.attribute_map
|
|
32
35
|
{
|
|
33
36
|
:'failed_auth' => :'failedAuth',
|
|
34
37
|
:'authenticated' => :'authenticated',
|
|
35
38
|
:'sandbox_create' => :'sandboxCreate',
|
|
36
|
-
:'sandbox_lifecycle' => :'sandboxLifecycle'
|
|
39
|
+
:'sandbox_lifecycle' => :'sandboxLifecycle',
|
|
40
|
+
:'sandbox_list' => :'sandboxList'
|
|
37
41
|
}
|
|
38
42
|
end
|
|
39
43
|
|
|
@@ -53,7 +57,8 @@ module DaytonaApiClient
|
|
|
53
57
|
:'failed_auth' => :'RateLimitEntry',
|
|
54
58
|
:'authenticated' => :'RateLimitEntry',
|
|
55
59
|
:'sandbox_create' => :'RateLimitEntry',
|
|
56
|
-
:'sandbox_lifecycle' => :'RateLimitEntry'
|
|
60
|
+
:'sandbox_lifecycle' => :'RateLimitEntry',
|
|
61
|
+
:'sandbox_list' => :'RateLimitEntry'
|
|
57
62
|
}
|
|
58
63
|
end
|
|
59
64
|
|
|
@@ -94,6 +99,10 @@ module DaytonaApiClient
|
|
|
94
99
|
if attributes.key?(:'sandbox_lifecycle')
|
|
95
100
|
self.sandbox_lifecycle = attributes[:'sandbox_lifecycle']
|
|
96
101
|
end
|
|
102
|
+
|
|
103
|
+
if attributes.key?(:'sandbox_list')
|
|
104
|
+
self.sandbox_list = attributes[:'sandbox_list']
|
|
105
|
+
end
|
|
97
106
|
end
|
|
98
107
|
|
|
99
108
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -119,7 +128,8 @@ module DaytonaApiClient
|
|
|
119
128
|
failed_auth == o.failed_auth &&
|
|
120
129
|
authenticated == o.authenticated &&
|
|
121
130
|
sandbox_create == o.sandbox_create &&
|
|
122
|
-
sandbox_lifecycle == o.sandbox_lifecycle
|
|
131
|
+
sandbox_lifecycle == o.sandbox_lifecycle &&
|
|
132
|
+
sandbox_list == o.sandbox_list
|
|
123
133
|
end
|
|
124
134
|
|
|
125
135
|
# @see the `==` method
|
|
@@ -131,7 +141,7 @@ module DaytonaApiClient
|
|
|
131
141
|
# Calculates hash code according to all attributes.
|
|
132
142
|
# @return [Integer] Hash code
|
|
133
143
|
def hash
|
|
134
|
-
[failed_auth, authenticated, sandbox_create, sandbox_lifecycle].hash
|
|
144
|
+
[failed_auth, authenticated, sandbox_create, sandbox_lifecycle, sandbox_list].hash
|
|
135
145
|
end
|
|
136
146
|
|
|
137
147
|
# Builds the object from hash
|
|
@@ -0,0 +1,176 @@
|
|
|
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 ResolveSandboxSecrets200ResponseInner < ApiModelBase
|
|
18
|
+
attr_accessor :env
|
|
19
|
+
|
|
20
|
+
attr_accessor :placeholder
|
|
21
|
+
|
|
22
|
+
attr_accessor :value
|
|
23
|
+
|
|
24
|
+
attr_accessor :hosts
|
|
25
|
+
|
|
26
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
27
|
+
def self.attribute_map
|
|
28
|
+
{
|
|
29
|
+
:'env' => :'env',
|
|
30
|
+
:'placeholder' => :'placeholder',
|
|
31
|
+
:'value' => :'value',
|
|
32
|
+
:'hosts' => :'hosts'
|
|
33
|
+
}
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# Returns attribute mapping this model knows about
|
|
37
|
+
def self.acceptable_attribute_map
|
|
38
|
+
attribute_map
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Returns all the JSON keys this model knows about
|
|
42
|
+
def self.acceptable_attributes
|
|
43
|
+
acceptable_attribute_map.values
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Attribute type mapping.
|
|
47
|
+
def self.openapi_types
|
|
48
|
+
{
|
|
49
|
+
:'env' => :'String',
|
|
50
|
+
:'placeholder' => :'String',
|
|
51
|
+
:'value' => :'String',
|
|
52
|
+
:'hosts' => :'Array<String>'
|
|
53
|
+
}
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# List of attributes with nullable: true
|
|
57
|
+
def self.openapi_nullable
|
|
58
|
+
Set.new([
|
|
59
|
+
])
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
# Initializes the object
|
|
63
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
64
|
+
def initialize(attributes = {})
|
|
65
|
+
if (!attributes.is_a?(Hash))
|
|
66
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::ResolveSandboxSecrets200ResponseInner` initialize method"
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
70
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
71
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
72
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
73
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::ResolveSandboxSecrets200ResponseInner`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
74
|
+
end
|
|
75
|
+
h[k.to_sym] = v
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
if attributes.key?(:'env')
|
|
79
|
+
self.env = attributes[:'env']
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
if attributes.key?(:'placeholder')
|
|
83
|
+
self.placeholder = attributes[:'placeholder']
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
if attributes.key?(:'value')
|
|
87
|
+
self.value = attributes[:'value']
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
if attributes.key?(:'hosts')
|
|
91
|
+
if (value = attributes[:'hosts']).is_a?(Array)
|
|
92
|
+
self.hosts = value
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
98
|
+
# @return Array for valid properties with the reasons
|
|
99
|
+
def list_invalid_properties
|
|
100
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
101
|
+
invalid_properties = Array.new
|
|
102
|
+
invalid_properties
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# Check to see if the all the properties in the model are valid
|
|
106
|
+
# @return true if the model is valid
|
|
107
|
+
def valid?
|
|
108
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
109
|
+
true
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
# Checks equality by comparing each attribute.
|
|
113
|
+
# @param [Object] Object to be compared
|
|
114
|
+
def ==(o)
|
|
115
|
+
return true if self.equal?(o)
|
|
116
|
+
self.class == o.class &&
|
|
117
|
+
env == o.env &&
|
|
118
|
+
placeholder == o.placeholder &&
|
|
119
|
+
value == o.value &&
|
|
120
|
+
hosts == o.hosts
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# @see the `==` method
|
|
124
|
+
# @param [Object] Object to be compared
|
|
125
|
+
def eql?(o)
|
|
126
|
+
self == o
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# Calculates hash code according to all attributes.
|
|
130
|
+
# @return [Integer] Hash code
|
|
131
|
+
def hash
|
|
132
|
+
[env, placeholder, value, hosts].hash
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# Builds the object from hash
|
|
136
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
137
|
+
# @return [Object] Returns the model itself
|
|
138
|
+
def self.build_from_hash(attributes)
|
|
139
|
+
return nil unless attributes.is_a?(Hash)
|
|
140
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
141
|
+
transformed_hash = {}
|
|
142
|
+
openapi_types.each_pair do |key, type|
|
|
143
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
144
|
+
transformed_hash["#{key}"] = nil
|
|
145
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
146
|
+
# check to ensure the input is an array given that the attribute
|
|
147
|
+
# is documented as an array but the input is not
|
|
148
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
149
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
150
|
+
end
|
|
151
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
152
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
new(transformed_hash)
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
# Returns the object in the form of hash
|
|
159
|
+
# @return [Hash] Returns the object in the form of hash
|
|
160
|
+
def to_hash
|
|
161
|
+
hash = {}
|
|
162
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
163
|
+
value = self.send(attr)
|
|
164
|
+
if value.nil?
|
|
165
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
166
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
hash[param] = _to_hash(value)
|
|
170
|
+
end
|
|
171
|
+
hash
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
end
|
|
@@ -108,6 +108,9 @@ module DaytonaApiClient
|
|
|
108
108
|
# The app version of the runner
|
|
109
109
|
attr_accessor :app_version
|
|
110
110
|
|
|
111
|
+
# Deprecated runner class property
|
|
112
|
+
attr_accessor :_class
|
|
113
|
+
|
|
111
114
|
class EnumAttributeValidator
|
|
112
115
|
attr_reader :datatype
|
|
113
116
|
attr_reader :allowable_values
|
|
@@ -163,7 +166,8 @@ module DaytonaApiClient
|
|
|
163
166
|
:'version' => :'version',
|
|
164
167
|
:'api_version' => :'apiVersion',
|
|
165
168
|
:'runner_class' => :'runnerClass',
|
|
166
|
-
:'app_version' => :'appVersion'
|
|
169
|
+
:'app_version' => :'appVersion',
|
|
170
|
+
:'_class' => :'class'
|
|
167
171
|
}
|
|
168
172
|
end
|
|
169
173
|
|
|
@@ -210,7 +214,8 @@ module DaytonaApiClient
|
|
|
210
214
|
:'version' => :'String',
|
|
211
215
|
:'api_version' => :'String',
|
|
212
216
|
:'runner_class' => :'RunnerClass',
|
|
213
|
-
:'app_version' => :'String'
|
|
217
|
+
:'app_version' => :'String',
|
|
218
|
+
:'_class' => :'String'
|
|
214
219
|
}
|
|
215
220
|
end
|
|
216
221
|
|
|
@@ -389,6 +394,10 @@ module DaytonaApiClient
|
|
|
389
394
|
if attributes.key?(:'app_version')
|
|
390
395
|
self.app_version = attributes[:'app_version']
|
|
391
396
|
end
|
|
397
|
+
|
|
398
|
+
if attributes.key?(:'_class')
|
|
399
|
+
self._class = attributes[:'_class']
|
|
400
|
+
end
|
|
392
401
|
end
|
|
393
402
|
|
|
394
403
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -651,7 +660,8 @@ module DaytonaApiClient
|
|
|
651
660
|
version == o.version &&
|
|
652
661
|
api_version == o.api_version &&
|
|
653
662
|
runner_class == o.runner_class &&
|
|
654
|
-
app_version == o.app_version
|
|
663
|
+
app_version == o.app_version &&
|
|
664
|
+
_class == o._class
|
|
655
665
|
end
|
|
656
666
|
|
|
657
667
|
# @see the `==` method
|
|
@@ -663,7 +673,7 @@ module DaytonaApiClient
|
|
|
663
673
|
# Calculates hash code according to all attributes.
|
|
664
674
|
# @return [Integer] Hash code
|
|
665
675
|
def hash
|
|
666
|
-
[id, domain, api_url, proxy_url, cpu, memory, disk, gpu, gpu_type, sandbox_class, current_cpu_usage_percentage, current_memory_usage_percentage, current_disk_usage_percentage, current_allocated_cpu, current_allocated_memory_gi_b, current_allocated_disk_gi_b, current_snapshot_count, current_started_sandboxes, availability_score, region, name, state, last_checked, unschedulable, tags, created_at, updated_at, version, api_version, runner_class, app_version].hash
|
|
676
|
+
[id, domain, api_url, proxy_url, cpu, memory, disk, gpu, gpu_type, sandbox_class, current_cpu_usage_percentage, current_memory_usage_percentage, current_disk_usage_percentage, current_allocated_cpu, current_allocated_memory_gi_b, current_allocated_disk_gi_b, current_snapshot_count, current_started_sandboxes, availability_score, region, name, state, last_checked, unschedulable, tags, created_at, updated_at, version, api_version, runner_class, app_version, _class].hash
|
|
667
677
|
end
|
|
668
678
|
|
|
669
679
|
# Builds the object from hash
|
|
@@ -108,6 +108,9 @@ module DaytonaApiClient
|
|
|
108
108
|
# The app version of the runner
|
|
109
109
|
attr_accessor :app_version
|
|
110
110
|
|
|
111
|
+
# Deprecated runner class property
|
|
112
|
+
attr_accessor :_class
|
|
113
|
+
|
|
111
114
|
# The API key for the runner
|
|
112
115
|
attr_accessor :api_key
|
|
113
116
|
|
|
@@ -170,6 +173,7 @@ module DaytonaApiClient
|
|
|
170
173
|
:'api_version' => :'apiVersion',
|
|
171
174
|
:'runner_class' => :'runnerClass',
|
|
172
175
|
:'app_version' => :'appVersion',
|
|
176
|
+
:'_class' => :'class',
|
|
173
177
|
:'api_key' => :'apiKey',
|
|
174
178
|
:'region_type' => :'regionType'
|
|
175
179
|
}
|
|
@@ -219,6 +223,7 @@ module DaytonaApiClient
|
|
|
219
223
|
:'api_version' => :'String',
|
|
220
224
|
:'runner_class' => :'RunnerClass',
|
|
221
225
|
:'app_version' => :'String',
|
|
226
|
+
:'_class' => :'String',
|
|
222
227
|
:'api_key' => :'String',
|
|
223
228
|
:'region_type' => :'RegionType'
|
|
224
229
|
}
|
|
@@ -400,6 +405,10 @@ module DaytonaApiClient
|
|
|
400
405
|
self.app_version = attributes[:'app_version']
|
|
401
406
|
end
|
|
402
407
|
|
|
408
|
+
if attributes.key?(:'_class')
|
|
409
|
+
self._class = attributes[:'_class']
|
|
410
|
+
end
|
|
411
|
+
|
|
403
412
|
if attributes.key?(:'api_key')
|
|
404
413
|
self.api_key = attributes[:'api_key']
|
|
405
414
|
else
|
|
@@ -687,6 +696,7 @@ module DaytonaApiClient
|
|
|
687
696
|
api_version == o.api_version &&
|
|
688
697
|
runner_class == o.runner_class &&
|
|
689
698
|
app_version == o.app_version &&
|
|
699
|
+
_class == o._class &&
|
|
690
700
|
api_key == o.api_key &&
|
|
691
701
|
region_type == o.region_type
|
|
692
702
|
end
|
|
@@ -700,7 +710,7 @@ module DaytonaApiClient
|
|
|
700
710
|
# Calculates hash code according to all attributes.
|
|
701
711
|
# @return [Integer] Hash code
|
|
702
712
|
def hash
|
|
703
|
-
[id, domain, api_url, proxy_url, cpu, memory, disk, gpu, gpu_type, sandbox_class, current_cpu_usage_percentage, current_memory_usage_percentage, current_disk_usage_percentage, current_allocated_cpu, current_allocated_memory_gi_b, current_allocated_disk_gi_b, current_snapshot_count, current_started_sandboxes, availability_score, region, name, state, last_checked, unschedulable, tags, created_at, updated_at, version, api_version, runner_class, app_version, api_key, region_type].hash
|
|
713
|
+
[id, domain, api_url, proxy_url, cpu, memory, disk, gpu, gpu_type, sandbox_class, current_cpu_usage_percentage, current_memory_usage_percentage, current_disk_usage_percentage, current_allocated_cpu, current_allocated_memory_gi_b, current_allocated_disk_gi_b, current_snapshot_count, current_started_sandboxes, availability_score, region, name, state, last_checked, unschedulable, tags, created_at, updated_at, version, api_version, runner_class, app_version, _class, api_key, region_type].hash
|
|
704
714
|
end
|
|
705
715
|
|
|
706
716
|
# Builds the object from hash
|