daytona_api_client 0.171.0.rc.1 → 0.172.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f0b7f75e157b37721cfa700d8ba7e831d2e9b75f4d0217a6a152ca4a3f59181a
4
- data.tar.gz: 83a1f740a72a7457a5b3df46017a49f2985002b91b9f7d6a8425f18e91a4391a
3
+ metadata.gz: e7252340c47ba14b29f6a1acf8aa89acf61ce856388bd33e5ab2a2f10d87c013
4
+ data.tar.gz: 90ddc6bf8f2b17454f57054919fbb249409cd0114a52acd64b9cc0c72bdeca85
5
5
  SHA512:
6
- metadata.gz: 74e9c467f4b4ede73df25e4d71cc037a4fc7ad9e638ad5e342a62b27e09bd0252aec8279b76219f9bea739b097b589566e470caa61a2765f07fa13a5694c19a7
7
- data.tar.gz: 9ff20d817ab3f3063d765ba1d7cefe6700b252811a65186a1796deef7b2800fafc9012971c45b4bc6872c52f906d2246e3fc99fd3a1775f4368c7a0a5ea7dfe5
6
+ metadata.gz: cd395d004570985eae8afe60e831d55f6b1acf769388097a55464c2f94c0737f7e070106539b078fddceb64dd464bd1c2d0e3bbc004665349f0e21bcc901408c
7
+ data.tar.gz: 791c3007712c476d6e23e8b7b577ee9fa4f10037363fe7138b0c47cbd3a0c742d85f10acd5758d4aa7317468f1961c2058c221b1499d33cd0425aa09533d68e8
@@ -607,6 +607,65 @@ module DaytonaApiClient
607
607
  return data, status_code, headers
608
608
  end
609
609
 
610
+ # Delete organization OpenTelemetry configuration
611
+ # @param organization_id [String] Organization ID
612
+ # @param [Hash] opts the optional parameters
613
+ # @return [nil]
614
+ def delete_organization_otel_config(organization_id, opts = {})
615
+ delete_organization_otel_config_with_http_info(organization_id, opts)
616
+ nil
617
+ end
618
+
619
+ # Delete organization OpenTelemetry configuration
620
+ # @param organization_id [String] Organization ID
621
+ # @param [Hash] opts the optional parameters
622
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
623
+ def delete_organization_otel_config_with_http_info(organization_id, opts = {})
624
+ if @api_client.config.debugging
625
+ @api_client.config.logger.debug 'Calling API: OrganizationsApi.delete_organization_otel_config ...'
626
+ end
627
+ # verify the required parameter 'organization_id' is set
628
+ if @api_client.config.client_side_validation && organization_id.nil?
629
+ fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.delete_organization_otel_config"
630
+ end
631
+ # resource path
632
+ local_var_path = '/organizations/{organizationId}/otel-config'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
633
+
634
+ # query parameters
635
+ query_params = opts[:query_params] || {}
636
+
637
+ # header parameters
638
+ header_params = opts[:header_params] || {}
639
+
640
+ # form parameters
641
+ form_params = opts[:form_params] || {}
642
+
643
+ # http body (model)
644
+ post_body = opts[:debug_body]
645
+
646
+ # return_type
647
+ return_type = opts[:debug_return_type]
648
+
649
+ # auth_names
650
+ auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
651
+
652
+ new_options = opts.merge(
653
+ :operation => :"OrganizationsApi.delete_organization_otel_config",
654
+ :header_params => header_params,
655
+ :query_params => query_params,
656
+ :form_params => form_params,
657
+ :body => post_body,
658
+ :auth_names => auth_names,
659
+ :return_type => return_type
660
+ )
661
+
662
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
663
+ if @api_client.config.debugging
664
+ @api_client.config.logger.debug "API called: OrganizationsApi#delete_organization_otel_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
665
+ end
666
+ return data, status_code, headers
667
+ end
668
+
610
669
  # Delete organization role
611
670
  # @param organization_id [String] Organization ID
612
671
  # @param role_id [String] Role ID
@@ -2116,6 +2175,76 @@ module DaytonaApiClient
2116
2175
  return data, status_code, headers
2117
2176
  end
2118
2177
 
2178
+ # Update organization OpenTelemetry configuration
2179
+ # @param organization_id [String] Organization ID
2180
+ # @param otel_config [OtelConfig]
2181
+ # @param [Hash] opts the optional parameters
2182
+ # @return [nil]
2183
+ def update_organization_otel_config(organization_id, otel_config, opts = {})
2184
+ update_organization_otel_config_with_http_info(organization_id, otel_config, opts)
2185
+ nil
2186
+ end
2187
+
2188
+ # Update organization OpenTelemetry configuration
2189
+ # @param organization_id [String] Organization ID
2190
+ # @param otel_config [OtelConfig]
2191
+ # @param [Hash] opts the optional parameters
2192
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
2193
+ def update_organization_otel_config_with_http_info(organization_id, otel_config, opts = {})
2194
+ if @api_client.config.debugging
2195
+ @api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization_otel_config ...'
2196
+ end
2197
+ # verify the required parameter 'organization_id' is set
2198
+ if @api_client.config.client_side_validation && organization_id.nil?
2199
+ fail ArgumentError, "Missing the required parameter 'organization_id' when calling OrganizationsApi.update_organization_otel_config"
2200
+ end
2201
+ # verify the required parameter 'otel_config' is set
2202
+ if @api_client.config.client_side_validation && otel_config.nil?
2203
+ fail ArgumentError, "Missing the required parameter 'otel_config' when calling OrganizationsApi.update_organization_otel_config"
2204
+ end
2205
+ # resource path
2206
+ local_var_path = '/organizations/{organizationId}/otel-config'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
2207
+
2208
+ # query parameters
2209
+ query_params = opts[:query_params] || {}
2210
+
2211
+ # header parameters
2212
+ header_params = opts[:header_params] || {}
2213
+ # HTTP header 'Content-Type'
2214
+ content_type = @api_client.select_header_content_type(['application/json'])
2215
+ if !content_type.nil?
2216
+ header_params['Content-Type'] = content_type
2217
+ end
2218
+
2219
+ # form parameters
2220
+ form_params = opts[:form_params] || {}
2221
+
2222
+ # http body (model)
2223
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(otel_config)
2224
+
2225
+ # return_type
2226
+ return_type = opts[:debug_return_type]
2227
+
2228
+ # auth_names
2229
+ auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
2230
+
2231
+ new_options = opts.merge(
2232
+ :operation => :"OrganizationsApi.update_organization_otel_config",
2233
+ :header_params => header_params,
2234
+ :query_params => query_params,
2235
+ :form_params => form_params,
2236
+ :body => post_body,
2237
+ :auth_names => auth_names,
2238
+ :return_type => return_type
2239
+ )
2240
+
2241
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2242
+ if @api_client.config.debugging
2243
+ @api_client.config.logger.debug "API called: OrganizationsApi#update_organization_otel_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2244
+ end
2245
+ return data, status_code, headers
2246
+ end
2247
+
2119
2248
  # Update organization quota
2120
2249
  # @param organization_id [String] Organization ID
2121
2250
  # @param update_organization_quota [UpdateOrganizationQuota]
@@ -1930,6 +1930,7 @@ module DaytonaApiClient
1930
1930
  # @param sandbox_id_or_name [String] ID or name of the sandbox
1931
1931
  # @param [Hash] opts the optional parameters
1932
1932
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1933
+ # @option opts [Boolean] :skip_start If true, the sandbox is left in STOPPED after recovery instead of being started.
1933
1934
  # @return [Sandbox]
1934
1935
  def recover_sandbox(sandbox_id_or_name, opts = {})
1935
1936
  data, _status_code, _headers = recover_sandbox_with_http_info(sandbox_id_or_name, opts)
@@ -1940,6 +1941,7 @@ module DaytonaApiClient
1940
1941
  # @param sandbox_id_or_name [String] ID or name of the sandbox
1941
1942
  # @param [Hash] opts the optional parameters
1942
1943
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
1944
+ # @option opts [Boolean] :skip_start If true, the sandbox is left in STOPPED after recovery instead of being started.
1943
1945
  # @return [Array<(Sandbox, Integer, Hash)>] Sandbox data, response status code and response headers
1944
1946
  def recover_sandbox_with_http_info(sandbox_id_or_name, opts = {})
1945
1947
  if @api_client.config.debugging
@@ -1954,6 +1956,7 @@ module DaytonaApiClient
1954
1956
 
1955
1957
  # query parameters
1956
1958
  query_params = opts[:query_params] || {}
1959
+ query_params[:'skipStart'] = opts[:'skip_start'] if !opts[:'skip_start'].nil?
1957
1960
 
1958
1961
  # header parameters
1959
1962
  header_params = opts[:header_params] || {}
@@ -39,6 +39,9 @@ module DaytonaApiClient
39
39
  # Comma-separated list of allowed CIDR network addresses for the sandbox
40
40
  attr_accessor :network_allow_list
41
41
 
42
+ # The sandbox class type
43
+ attr_accessor :_class
44
+
42
45
  # The target (region) where the sandbox will be created
43
46
  attr_accessor :target
44
47
 
@@ -69,8 +72,27 @@ module DaytonaApiClient
69
72
  # Build information for the sandbox
70
73
  attr_accessor :build_info
71
74
 
72
- # ID or name of an existing sandbox to link the new sandbox to. The new sandbox will be scheduled on the same runner as the linked sandbox so a local network can be established between them. Only supported for android-class snapshots. Linked sandboxes must be ephemeral (autoDeleteInterval=0) and cannot themselves be linked to another sandbox.
73
- attr_accessor :linked_sandbox
75
+ class EnumAttributeValidator
76
+ attr_reader :datatype
77
+ attr_reader :allowable_values
78
+
79
+ def initialize(datatype, allowable_values)
80
+ @allowable_values = allowable_values.map do |value|
81
+ case datatype.to_s
82
+ when /Integer/i
83
+ value.to_i
84
+ when /Float/i
85
+ value.to_f
86
+ else
87
+ value
88
+ end
89
+ end
90
+ end
91
+
92
+ def valid?(value)
93
+ !value || allowable_values.include?(value)
94
+ end
95
+ end
74
96
 
75
97
  # Attribute mapping from ruby-style variable name to JSON key.
76
98
  def self.attribute_map
@@ -83,6 +105,7 @@ module DaytonaApiClient
83
105
  :'public' => :'public',
84
106
  :'network_block_all' => :'networkBlockAll',
85
107
  :'network_allow_list' => :'networkAllowList',
108
+ :'_class' => :'class',
86
109
  :'target' => :'target',
87
110
  :'cpu' => :'cpu',
88
111
  :'gpu' => :'gpu',
@@ -92,8 +115,7 @@ module DaytonaApiClient
92
115
  :'auto_archive_interval' => :'autoArchiveInterval',
93
116
  :'auto_delete_interval' => :'autoDeleteInterval',
94
117
  :'volumes' => :'volumes',
95
- :'build_info' => :'buildInfo',
96
- :'linked_sandbox' => :'linkedSandbox'
118
+ :'build_info' => :'buildInfo'
97
119
  }
98
120
  end
99
121
 
@@ -118,6 +140,7 @@ module DaytonaApiClient
118
140
  :'public' => :'Boolean',
119
141
  :'network_block_all' => :'Boolean',
120
142
  :'network_allow_list' => :'String',
143
+ :'_class' => :'String',
121
144
  :'target' => :'String',
122
145
  :'cpu' => :'Integer',
123
146
  :'gpu' => :'Integer',
@@ -127,8 +150,7 @@ module DaytonaApiClient
127
150
  :'auto_archive_interval' => :'Integer',
128
151
  :'auto_delete_interval' => :'Integer',
129
152
  :'volumes' => :'Array<SandboxVolume>',
130
- :'build_info' => :'CreateBuildInfo',
131
- :'linked_sandbox' => :'String'
153
+ :'build_info' => :'CreateBuildInfo'
132
154
  }
133
155
  end
134
156
 
@@ -190,6 +212,10 @@ module DaytonaApiClient
190
212
  self.network_allow_list = attributes[:'network_allow_list']
191
213
  end
192
214
 
215
+ if attributes.key?(:'_class')
216
+ self._class = attributes[:'_class']
217
+ end
218
+
193
219
  if attributes.key?(:'target')
194
220
  self.target = attributes[:'target']
195
221
  end
@@ -231,10 +257,6 @@ module DaytonaApiClient
231
257
  if attributes.key?(:'build_info')
232
258
  self.build_info = attributes[:'build_info']
233
259
  end
234
-
235
- if attributes.key?(:'linked_sandbox')
236
- self.linked_sandbox = attributes[:'linked_sandbox']
237
- end
238
260
  end
239
261
 
240
262
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -249,9 +271,21 @@ module DaytonaApiClient
249
271
  # @return true if the model is valid
250
272
  def valid?
251
273
  warn '[DEPRECATED] the `valid?` method is obsolete'
274
+ _class_validator = EnumAttributeValidator.new('String', ["small", "medium", "large", "unknown_default_open_api"])
275
+ return false unless _class_validator.valid?(@_class)
252
276
  true
253
277
  end
254
278
 
279
+ # Custom attribute writer method checking allowed values (enum).
280
+ # @param [Object] _class Object to be assigned
281
+ def _class=(_class)
282
+ validator = EnumAttributeValidator.new('String', ["small", "medium", "large", "unknown_default_open_api"])
283
+ unless validator.valid?(_class)
284
+ fail ArgumentError, "invalid value for \"_class\", must be one of #{validator.allowable_values}."
285
+ end
286
+ @_class = _class
287
+ end
288
+
255
289
  # Checks equality by comparing each attribute.
256
290
  # @param [Object] Object to be compared
257
291
  def ==(o)
@@ -265,6 +299,7 @@ module DaytonaApiClient
265
299
  public == o.public &&
266
300
  network_block_all == o.network_block_all &&
267
301
  network_allow_list == o.network_allow_list &&
302
+ _class == o._class &&
268
303
  target == o.target &&
269
304
  cpu == o.cpu &&
270
305
  gpu == o.gpu &&
@@ -274,8 +309,7 @@ module DaytonaApiClient
274
309
  auto_archive_interval == o.auto_archive_interval &&
275
310
  auto_delete_interval == o.auto_delete_interval &&
276
311
  volumes == o.volumes &&
277
- build_info == o.build_info &&
278
- linked_sandbox == o.linked_sandbox
312
+ build_info == o.build_info
279
313
  end
280
314
 
281
315
  # @see the `==` method
@@ -287,7 +321,7 @@ module DaytonaApiClient
287
321
  # Calculates hash code according to all attributes.
288
322
  # @return [Integer] Hash code
289
323
  def hash
290
- [name, snapshot, user, env, labels, public, network_block_all, network_allow_list, target, cpu, gpu, memory, disk, auto_stop_interval, auto_archive_interval, auto_delete_interval, volumes, build_info, linked_sandbox].hash
324
+ [name, snapshot, user, env, labels, public, network_block_all, network_allow_list, _class, target, cpu, gpu, memory, disk, auto_stop_interval, auto_archive_interval, auto_delete_interval, volumes, build_info].hash
291
325
  end
292
326
 
293
327
  # Builds the object from hash
@@ -42,31 +42,6 @@ module DaytonaApiClient
42
42
  # ID of the region where the snapshot will be available. Defaults to organization default region if not specified.
43
43
  attr_accessor :region_id
44
44
 
45
- # Target sandbox class (e.g. `linux`, `android`). Determines which runners can host sandboxes created from this snapshot. Defaults to `linux`.
46
- attr_accessor :sandbox_class
47
-
48
- class EnumAttributeValidator
49
- attr_reader :datatype
50
- attr_reader :allowable_values
51
-
52
- def initialize(datatype, allowable_values)
53
- @allowable_values = allowable_values.map do |value|
54
- case datatype.to_s
55
- when /Integer/i
56
- value.to_i
57
- when /Float/i
58
- value.to_f
59
- else
60
- value
61
- end
62
- end
63
- end
64
-
65
- def valid?(value)
66
- !value || allowable_values.include?(value)
67
- end
68
- end
69
-
70
45
  # Attribute mapping from ruby-style variable name to JSON key.
71
46
  def self.attribute_map
72
47
  {
@@ -78,8 +53,7 @@ module DaytonaApiClient
78
53
  :'memory' => :'memory',
79
54
  :'disk' => :'disk',
80
55
  :'build_info' => :'buildInfo',
81
- :'region_id' => :'regionId',
82
- :'sandbox_class' => :'sandboxClass'
56
+ :'region_id' => :'regionId'
83
57
  }
84
58
  end
85
59
 
@@ -104,8 +78,7 @@ module DaytonaApiClient
104
78
  :'memory' => :'Integer',
105
79
  :'disk' => :'Integer',
106
80
  :'build_info' => :'CreateBuildInfo',
107
- :'region_id' => :'String',
108
- :'sandbox_class' => :'SandboxClass'
81
+ :'region_id' => :'String'
109
82
  }
110
83
  end
111
84
 
@@ -170,10 +143,6 @@ module DaytonaApiClient
170
143
  if attributes.key?(:'region_id')
171
144
  self.region_id = attributes[:'region_id']
172
145
  end
173
-
174
- if attributes.key?(:'sandbox_class')
175
- self.sandbox_class = attributes[:'sandbox_class']
176
- end
177
146
  end
178
147
 
179
148
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -219,8 +188,7 @@ module DaytonaApiClient
219
188
  memory == o.memory &&
220
189
  disk == o.disk &&
221
190
  build_info == o.build_info &&
222
- region_id == o.region_id &&
223
- sandbox_class == o.sandbox_class
191
+ region_id == o.region_id
224
192
  end
225
193
 
226
194
  # @see the `==` method
@@ -232,7 +200,7 @@ module DaytonaApiClient
232
200
  # Calculates hash code according to all attributes.
233
201
  # @return [Integer] Hash code
234
202
  def hash
235
- [name, image_name, entrypoint, cpu, gpu, memory, disk, build_info, region_id, sandbox_class].hash
203
+ [name, image_name, entrypoint, cpu, gpu, memory, disk, build_info, region_id].hash
236
204
  end
237
205
 
238
206
  # Builds the object from hash
@@ -30,6 +30,9 @@ module DaytonaApiClient
30
30
  # Whether the workspace http preview is publicly accessible
31
31
  attr_accessor :public
32
32
 
33
+ # The workspace class type
34
+ attr_accessor :_class
35
+
33
36
  # The target (region) where the workspace will be created
34
37
  attr_accessor :target
35
38
 
@@ -87,6 +90,7 @@ module DaytonaApiClient
87
90
  :'env' => :'env',
88
91
  :'labels' => :'labels',
89
92
  :'public' => :'public',
93
+ :'_class' => :'class',
90
94
  :'target' => :'target',
91
95
  :'cpu' => :'cpu',
92
96
  :'gpu' => :'gpu',
@@ -117,6 +121,7 @@ module DaytonaApiClient
117
121
  :'env' => :'Hash<String, String>',
118
122
  :'labels' => :'Hash<String, String>',
119
123
  :'public' => :'Boolean',
124
+ :'_class' => :'String',
120
125
  :'target' => :'String',
121
126
  :'cpu' => :'Integer',
122
127
  :'gpu' => :'Integer',
@@ -175,6 +180,10 @@ module DaytonaApiClient
175
180
  self.public = attributes[:'public']
176
181
  end
177
182
 
183
+ if attributes.key?(:'_class')
184
+ self._class = attributes[:'_class']
185
+ end
186
+
178
187
  if attributes.key?(:'target')
179
188
  self.target = attributes[:'target']
180
189
  end
@@ -226,11 +235,23 @@ module DaytonaApiClient
226
235
  # @return true if the model is valid
227
236
  def valid?
228
237
  warn '[DEPRECATED] the `valid?` method is obsolete'
238
+ _class_validator = EnumAttributeValidator.new('String', ["small", "medium", "large", "unknown_default_open_api"])
239
+ return false unless _class_validator.valid?(@_class)
229
240
  target_validator = EnumAttributeValidator.new('String', ["eu", "us", "asia", "unknown_default_open_api"])
230
241
  return false unless target_validator.valid?(@target)
231
242
  true
232
243
  end
233
244
 
245
+ # Custom attribute writer method checking allowed values (enum).
246
+ # @param [Object] _class Object to be assigned
247
+ def _class=(_class)
248
+ validator = EnumAttributeValidator.new('String', ["small", "medium", "large", "unknown_default_open_api"])
249
+ unless validator.valid?(_class)
250
+ fail ArgumentError, "invalid value for \"_class\", must be one of #{validator.allowable_values}."
251
+ end
252
+ @_class = _class
253
+ end
254
+
234
255
  # Custom attribute writer method checking allowed values (enum).
235
256
  # @param [Object] target Object to be assigned
236
257
  def target=(target)
@@ -251,6 +272,7 @@ module DaytonaApiClient
251
272
  env == o.env &&
252
273
  labels == o.labels &&
253
274
  public == o.public &&
275
+ _class == o._class &&
254
276
  target == o.target &&
255
277
  cpu == o.cpu &&
256
278
  gpu == o.gpu &&
@@ -271,7 +293,7 @@ module DaytonaApiClient
271
293
  # Calculates hash code according to all attributes.
272
294
  # @return [Integer] Hash code
273
295
  def hash
274
- [image, user, env, labels, public, target, cpu, gpu, memory, disk, auto_stop_interval, auto_archive_interval, volumes, build_info].hash
296
+ [image, user, env, labels, public, _class, target, cpu, gpu, memory, disk, auto_stop_interval, auto_archive_interval, volumes, build_info].hash
275
297
  end
276
298
 
277
299
  # Builds the object from hash
@@ -60,9 +60,6 @@ module DaytonaApiClient
60
60
  # Analytics API URL
61
61
  attr_accessor :analytics_api_url
62
62
 
63
- # Stripe publishable key for client-side Stripe.js
64
- attr_accessor :stripe_publishable_key
65
-
66
63
  # SSH Gateway command
67
64
  attr_accessor :ssh_gateway_command
68
65
 
@@ -90,7 +87,6 @@ module DaytonaApiClient
90
87
  :'environment' => :'environment',
91
88
  :'billing_api_url' => :'billingApiUrl',
92
89
  :'analytics_api_url' => :'analyticsApiUrl',
93
- :'stripe_publishable_key' => :'stripePublishableKey',
94
90
  :'ssh_gateway_command' => :'sshGatewayCommand',
95
91
  :'ssh_gateway_public_key' => :'sshGatewayPublicKey',
96
92
  :'rate_limit' => :'rateLimit'
@@ -125,7 +121,6 @@ module DaytonaApiClient
125
121
  :'environment' => :'String',
126
122
  :'billing_api_url' => :'String',
127
123
  :'analytics_api_url' => :'String',
128
- :'stripe_publishable_key' => :'String',
129
124
  :'ssh_gateway_command' => :'String',
130
125
  :'ssh_gateway_public_key' => :'String',
131
126
  :'rate_limit' => :'RateLimitConfig'
@@ -238,10 +233,6 @@ module DaytonaApiClient
238
233
  self.analytics_api_url = attributes[:'analytics_api_url']
239
234
  end
240
235
 
241
- if attributes.key?(:'stripe_publishable_key')
242
- self.stripe_publishable_key = attributes[:'stripe_publishable_key']
243
- end
244
-
245
236
  if attributes.key?(:'ssh_gateway_command')
246
237
  self.ssh_gateway_command = attributes[:'ssh_gateway_command']
247
238
  end
@@ -455,7 +446,6 @@ module DaytonaApiClient
455
446
  environment == o.environment &&
456
447
  billing_api_url == o.billing_api_url &&
457
448
  analytics_api_url == o.analytics_api_url &&
458
- stripe_publishable_key == o.stripe_publishable_key &&
459
449
  ssh_gateway_command == o.ssh_gateway_command &&
460
450
  ssh_gateway_public_key == o.ssh_gateway_public_key &&
461
451
  rate_limit == o.rate_limit
@@ -470,7 +460,7 @@ module DaytonaApiClient
470
460
  # Calculates hash code according to all attributes.
471
461
  # @return [Integer] Hash code
472
462
  def hash
473
- [version, posthog, oidc, linked_accounts_enabled, announcements, pylon_app_id, proxy_template_url, proxy_toolbox_url, default_snapshot, dashboard_url, max_auto_archive_interval, maintanance_mode, environment, billing_api_url, analytics_api_url, stripe_publishable_key, ssh_gateway_command, ssh_gateway_public_key, rate_limit].hash
463
+ [version, posthog, oidc, linked_accounts_enabled, announcements, pylon_app_id, proxy_template_url, proxy_toolbox_url, default_snapshot, dashboard_url, max_auto_archive_interval, maintanance_mode, environment, billing_api_url, analytics_api_url, ssh_gateway_command, ssh_gateway_public_key, rate_limit].hash
474
464
  end
475
465
 
476
466
  # Builds the object from hash
@@ -78,6 +78,9 @@ module DaytonaApiClient
78
78
  # Experimental configuration
79
79
  attr_accessor :experimental_config
80
80
 
81
+ # OpenTelemetry collection configuration
82
+ attr_accessor :otel_config
83
+
81
84
  # Authenticated rate limit TTL in seconds
82
85
  attr_accessor :authenticated_rate_limit_ttl_seconds
83
86
 
@@ -111,6 +114,7 @@ module DaytonaApiClient
111
114
  :'sandbox_create_rate_limit' => :'sandboxCreateRateLimit',
112
115
  :'sandbox_lifecycle_rate_limit' => :'sandboxLifecycleRateLimit',
113
116
  :'experimental_config' => :'experimentalConfig',
117
+ :'otel_config' => :'otelConfig',
114
118
  :'authenticated_rate_limit_ttl_seconds' => :'authenticatedRateLimitTtlSeconds',
115
119
  :'sandbox_create_rate_limit_ttl_seconds' => :'sandboxCreateRateLimitTtlSeconds',
116
120
  :'sandbox_lifecycle_rate_limit_ttl_seconds' => :'sandboxLifecycleRateLimitTtlSeconds'
@@ -151,6 +155,7 @@ module DaytonaApiClient
151
155
  :'sandbox_create_rate_limit' => :'Float',
152
156
  :'sandbox_lifecycle_rate_limit' => :'Float',
153
157
  :'experimental_config' => :'Object',
158
+ :'otel_config' => :'OtelConfig',
154
159
  :'authenticated_rate_limit_ttl_seconds' => :'Float',
155
160
  :'sandbox_create_rate_limit_ttl_seconds' => :'Float',
156
161
  :'sandbox_lifecycle_rate_limit_ttl_seconds' => :'Float'
@@ -163,6 +168,7 @@ module DaytonaApiClient
163
168
  :'authenticated_rate_limit',
164
169
  :'sandbox_create_rate_limit',
165
170
  :'sandbox_lifecycle_rate_limit',
171
+ :'otel_config',
166
172
  :'authenticated_rate_limit_ttl_seconds',
167
173
  :'sandbox_create_rate_limit_ttl_seconds',
168
174
  :'sandbox_lifecycle_rate_limit_ttl_seconds'
@@ -309,6 +315,12 @@ module DaytonaApiClient
309
315
  self.experimental_config = nil
310
316
  end
311
317
 
318
+ if attributes.key?(:'otel_config')
319
+ self.otel_config = attributes[:'otel_config']
320
+ else
321
+ self.otel_config = nil
322
+ end
323
+
312
324
  if attributes.key?(:'authenticated_rate_limit_ttl_seconds')
313
325
  self.authenticated_rate_limit_ttl_seconds = attributes[:'authenticated_rate_limit_ttl_seconds']
314
326
  else
@@ -624,6 +636,7 @@ module DaytonaApiClient
624
636
  sandbox_create_rate_limit == o.sandbox_create_rate_limit &&
625
637
  sandbox_lifecycle_rate_limit == o.sandbox_lifecycle_rate_limit &&
626
638
  experimental_config == o.experimental_config &&
639
+ otel_config == o.otel_config &&
627
640
  authenticated_rate_limit_ttl_seconds == o.authenticated_rate_limit_ttl_seconds &&
628
641
  sandbox_create_rate_limit_ttl_seconds == o.sandbox_create_rate_limit_ttl_seconds &&
629
642
  sandbox_lifecycle_rate_limit_ttl_seconds == o.sandbox_lifecycle_rate_limit_ttl_seconds
@@ -638,7 +651,7 @@ module DaytonaApiClient
638
651
  # Calculates hash code according to all attributes.
639
652
  # @return [Integer] Hash code
640
653
  def hash
641
- [id, name, created_by, personal, created_at, updated_at, suspended, suspended_at, suspension_reason, suspended_until, suspension_cleanup_grace_period_hours, max_cpu_per_sandbox, max_memory_per_sandbox, max_disk_per_sandbox, snapshot_deactivation_timeout_minutes, sandbox_limited_network_egress, default_region_id, authenticated_rate_limit, sandbox_create_rate_limit, sandbox_lifecycle_rate_limit, experimental_config, authenticated_rate_limit_ttl_seconds, sandbox_create_rate_limit_ttl_seconds, sandbox_lifecycle_rate_limit_ttl_seconds].hash
654
+ [id, name, created_by, personal, created_at, updated_at, suspended, suspended_at, suspension_reason, suspended_until, suspension_cleanup_grace_period_hours, max_cpu_per_sandbox, max_memory_per_sandbox, max_disk_per_sandbox, snapshot_deactivation_timeout_minutes, sandbox_limited_network_egress, default_region_id, authenticated_rate_limit, sandbox_create_rate_limit, sandbox_lifecycle_rate_limit, experimental_config, otel_config, authenticated_rate_limit_ttl_seconds, sandbox_create_rate_limit_ttl_seconds, sandbox_lifecycle_rate_limit_ttl_seconds].hash
642
655
  end
643
656
 
644
657
  # Builds the object from hash
@@ -42,8 +42,8 @@ module DaytonaApiClient
42
42
  # The type of GPU
43
43
  attr_accessor :gpu_type
44
44
 
45
- # The sandbox class supported by this runner
46
- attr_accessor :sandbox_class
45
+ # The class of the runner
46
+ attr_accessor :_class
47
47
 
48
48
  # Current CPU usage percentage
49
49
  attr_accessor :current_cpu_usage_percentage
@@ -139,7 +139,7 @@ module DaytonaApiClient
139
139
  :'disk' => :'disk',
140
140
  :'gpu' => :'gpu',
141
141
  :'gpu_type' => :'gpuType',
142
- :'sandbox_class' => :'sandboxClass',
142
+ :'_class' => :'class',
143
143
  :'current_cpu_usage_percentage' => :'currentCpuUsagePercentage',
144
144
  :'current_memory_usage_percentage' => :'currentMemoryUsagePercentage',
145
145
  :'current_disk_usage_percentage' => :'currentDiskUsagePercentage',
@@ -185,7 +185,7 @@ module DaytonaApiClient
185
185
  :'disk' => :'Float',
186
186
  :'gpu' => :'Float',
187
187
  :'gpu_type' => :'String',
188
- :'sandbox_class' => :'SandboxClass',
188
+ :'_class' => :'SandboxClass',
189
189
  :'current_cpu_usage_percentage' => :'Float',
190
190
  :'current_memory_usage_percentage' => :'Float',
191
191
  :'current_disk_usage_percentage' => :'Float',
@@ -275,10 +275,10 @@ module DaytonaApiClient
275
275
  self.gpu_type = attributes[:'gpu_type']
276
276
  end
277
277
 
278
- if attributes.key?(:'sandbox_class')
279
- self.sandbox_class = attributes[:'sandbox_class']
278
+ if attributes.key?(:'_class')
279
+ self._class = attributes[:'_class']
280
280
  else
281
- self.sandbox_class = nil
281
+ self._class = nil
282
282
  end
283
283
 
284
284
  if attributes.key?(:'current_cpu_usage_percentage')
@@ -401,8 +401,8 @@ module DaytonaApiClient
401
401
  invalid_properties.push('invalid value for "disk", disk cannot be nil.')
402
402
  end
403
403
 
404
- if @sandbox_class.nil?
405
- invalid_properties.push('invalid value for "sandbox_class", sandbox_class cannot be nil.')
404
+ if @_class.nil?
405
+ invalid_properties.push('invalid value for "_class", _class cannot be nil.')
406
406
  end
407
407
 
408
408
  if @region.nil?
@@ -452,7 +452,7 @@ module DaytonaApiClient
452
452
  return false if @cpu.nil?
453
453
  return false if @memory.nil?
454
454
  return false if @disk.nil?
455
- return false if @sandbox_class.nil?
455
+ return false if @_class.nil?
456
456
  return false if @region.nil?
457
457
  return false if @name.nil?
458
458
  return false if @state.nil?
@@ -506,13 +506,13 @@ module DaytonaApiClient
506
506
  end
507
507
 
508
508
  # Custom attribute writer method with validation
509
- # @param [Object] sandbox_class Value to be assigned
510
- def sandbox_class=(sandbox_class)
511
- if sandbox_class.nil?
512
- fail ArgumentError, 'sandbox_class cannot be nil'
509
+ # @param [Object] _class Value to be assigned
510
+ def _class=(_class)
511
+ if _class.nil?
512
+ fail ArgumentError, '_class cannot be nil'
513
513
  end
514
514
 
515
- @sandbox_class = sandbox_class
515
+ @_class = _class
516
516
  end
517
517
 
518
518
  # Custom attribute writer method with validation
@@ -619,7 +619,7 @@ module DaytonaApiClient
619
619
  disk == o.disk &&
620
620
  gpu == o.gpu &&
621
621
  gpu_type == o.gpu_type &&
622
- sandbox_class == o.sandbox_class &&
622
+ _class == o._class &&
623
623
  current_cpu_usage_percentage == o.current_cpu_usage_percentage &&
624
624
  current_memory_usage_percentage == o.current_memory_usage_percentage &&
625
625
  current_disk_usage_percentage == o.current_disk_usage_percentage &&
@@ -651,7 +651,7 @@ module DaytonaApiClient
651
651
  # Calculates hash code according to all attributes.
652
652
  # @return [Integer] Hash code
653
653
  def hash
654
- [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, created_at, updated_at, version, api_version, runner_class, app_version].hash
654
+ [id, domain, api_url, proxy_url, cpu, memory, disk, gpu, gpu_type, _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, created_at, updated_at, version, api_version, runner_class, app_version].hash
655
655
  end
656
656
 
657
657
  # Builds the object from hash
@@ -42,8 +42,8 @@ module DaytonaApiClient
42
42
  # The type of GPU
43
43
  attr_accessor :gpu_type
44
44
 
45
- # The sandbox class supported by this runner
46
- attr_accessor :sandbox_class
45
+ # The class of the runner
46
+ attr_accessor :_class
47
47
 
48
48
  # Current CPU usage percentage
49
49
  attr_accessor :current_cpu_usage_percentage
@@ -145,7 +145,7 @@ module DaytonaApiClient
145
145
  :'disk' => :'disk',
146
146
  :'gpu' => :'gpu',
147
147
  :'gpu_type' => :'gpuType',
148
- :'sandbox_class' => :'sandboxClass',
148
+ :'_class' => :'class',
149
149
  :'current_cpu_usage_percentage' => :'currentCpuUsagePercentage',
150
150
  :'current_memory_usage_percentage' => :'currentMemoryUsagePercentage',
151
151
  :'current_disk_usage_percentage' => :'currentDiskUsagePercentage',
@@ -193,7 +193,7 @@ module DaytonaApiClient
193
193
  :'disk' => :'Float',
194
194
  :'gpu' => :'Float',
195
195
  :'gpu_type' => :'String',
196
- :'sandbox_class' => :'SandboxClass',
196
+ :'_class' => :'SandboxClass',
197
197
  :'current_cpu_usage_percentage' => :'Float',
198
198
  :'current_memory_usage_percentage' => :'Float',
199
199
  :'current_disk_usage_percentage' => :'Float',
@@ -285,10 +285,10 @@ module DaytonaApiClient
285
285
  self.gpu_type = attributes[:'gpu_type']
286
286
  end
287
287
 
288
- if attributes.key?(:'sandbox_class')
289
- self.sandbox_class = attributes[:'sandbox_class']
288
+ if attributes.key?(:'_class')
289
+ self._class = attributes[:'_class']
290
290
  else
291
- self.sandbox_class = nil
291
+ self._class = nil
292
292
  end
293
293
 
294
294
  if attributes.key?(:'current_cpu_usage_percentage')
@@ -421,8 +421,8 @@ module DaytonaApiClient
421
421
  invalid_properties.push('invalid value for "disk", disk cannot be nil.')
422
422
  end
423
423
 
424
- if @sandbox_class.nil?
425
- invalid_properties.push('invalid value for "sandbox_class", sandbox_class cannot be nil.')
424
+ if @_class.nil?
425
+ invalid_properties.push('invalid value for "_class", _class cannot be nil.')
426
426
  end
427
427
 
428
428
  if @region.nil?
@@ -476,7 +476,7 @@ module DaytonaApiClient
476
476
  return false if @cpu.nil?
477
477
  return false if @memory.nil?
478
478
  return false if @disk.nil?
479
- return false if @sandbox_class.nil?
479
+ return false if @_class.nil?
480
480
  return false if @region.nil?
481
481
  return false if @name.nil?
482
482
  return false if @state.nil?
@@ -531,13 +531,13 @@ module DaytonaApiClient
531
531
  end
532
532
 
533
533
  # Custom attribute writer method with validation
534
- # @param [Object] sandbox_class Value to be assigned
535
- def sandbox_class=(sandbox_class)
536
- if sandbox_class.nil?
537
- fail ArgumentError, 'sandbox_class cannot be nil'
534
+ # @param [Object] _class Value to be assigned
535
+ def _class=(_class)
536
+ if _class.nil?
537
+ fail ArgumentError, '_class cannot be nil'
538
538
  end
539
539
 
540
- @sandbox_class = sandbox_class
540
+ @_class = _class
541
541
  end
542
542
 
543
543
  # Custom attribute writer method with validation
@@ -654,7 +654,7 @@ module DaytonaApiClient
654
654
  disk == o.disk &&
655
655
  gpu == o.gpu &&
656
656
  gpu_type == o.gpu_type &&
657
- sandbox_class == o.sandbox_class &&
657
+ _class == o._class &&
658
658
  current_cpu_usage_percentage == o.current_cpu_usage_percentage &&
659
659
  current_memory_usage_percentage == o.current_memory_usage_percentage &&
660
660
  current_disk_usage_percentage == o.current_disk_usage_percentage &&
@@ -688,7 +688,7 @@ module DaytonaApiClient
688
688
  # Calculates hash code according to all attributes.
689
689
  # @return [Integer] Hash code
690
690
  def hash
691
- [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, created_at, updated_at, version, api_version, runner_class, app_version, api_key, region_type].hash
691
+ [id, domain, api_url, proxy_url, cpu, memory, disk, gpu, gpu_type, _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, created_at, updated_at, version, api_version, runner_class, app_version, api_key, region_type].hash
692
692
  end
693
693
 
694
694
  # Builds the object from hash
@@ -103,10 +103,7 @@ module DaytonaApiClient
103
103
  attr_accessor :last_activity_at
104
104
 
105
105
  # The class of the sandbox
106
- attr_accessor :sandbox_class
107
-
108
- # Whether the sandbox is an android-device sandbox (inherited from the source snapshot at creation time)
109
- attr_accessor :android_device
106
+ attr_accessor :_class
110
107
 
111
108
  # The version of the daemon running in the sandbox
112
109
  attr_accessor :daemon_version
@@ -114,9 +111,6 @@ module DaytonaApiClient
114
111
  # The runner ID of the sandbox
115
112
  attr_accessor :runner_id
116
113
 
117
- # ID of the sandbox this sandbox is linked to. When set, the sandbox is co-located on the same runner as the linked sandbox.
118
- attr_accessor :linked_sandbox_id
119
-
120
114
  # The toolbox proxy URL for the sandbox
121
115
  attr_accessor :toolbox_proxy_url
122
116
 
@@ -174,11 +168,9 @@ module DaytonaApiClient
174
168
  :'created_at' => :'createdAt',
175
169
  :'updated_at' => :'updatedAt',
176
170
  :'last_activity_at' => :'lastActivityAt',
177
- :'sandbox_class' => :'sandboxClass',
178
- :'android_device' => :'androidDevice',
171
+ :'_class' => :'class',
179
172
  :'daemon_version' => :'daemonVersion',
180
173
  :'runner_id' => :'runnerId',
181
- :'linked_sandbox_id' => :'linkedSandboxId',
182
174
  :'toolbox_proxy_url' => :'toolboxProxyUrl'
183
175
  }
184
176
  end
@@ -225,11 +217,9 @@ module DaytonaApiClient
225
217
  :'created_at' => :'String',
226
218
  :'updated_at' => :'String',
227
219
  :'last_activity_at' => :'String',
228
- :'sandbox_class' => :'String',
229
- :'android_device' => :'Boolean',
220
+ :'_class' => :'String',
230
221
  :'daemon_version' => :'String',
231
222
  :'runner_id' => :'String',
232
- :'linked_sandbox_id' => :'String',
233
223
  :'toolbox_proxy_url' => :'String'
234
224
  }
235
225
  end
@@ -404,12 +394,8 @@ module DaytonaApiClient
404
394
  self.last_activity_at = attributes[:'last_activity_at']
405
395
  end
406
396
 
407
- if attributes.key?(:'sandbox_class')
408
- self.sandbox_class = attributes[:'sandbox_class']
409
- end
410
-
411
- if attributes.key?(:'android_device')
412
- self.android_device = attributes[:'android_device']
397
+ if attributes.key?(:'_class')
398
+ self._class = attributes[:'_class']
413
399
  end
414
400
 
415
401
  if attributes.key?(:'daemon_version')
@@ -420,10 +406,6 @@ module DaytonaApiClient
420
406
  self.runner_id = attributes[:'runner_id']
421
407
  end
422
408
 
423
- if attributes.key?(:'linked_sandbox_id')
424
- self.linked_sandbox_id = attributes[:'linked_sandbox_id']
425
- end
426
-
427
409
  if attributes.key?(:'toolbox_proxy_url')
428
410
  self.toolbox_proxy_url = attributes[:'toolbox_proxy_url']
429
411
  else
@@ -514,8 +496,8 @@ module DaytonaApiClient
514
496
  return false if @disk.nil?
515
497
  backup_state_validator = EnumAttributeValidator.new('String', ["None", "Pending", "InProgress", "Completed", "Error", "unknown_default_open_api"])
516
498
  return false unless backup_state_validator.valid?(@backup_state)
517
- sandbox_class_validator = EnumAttributeValidator.new('String', ["linux-vm", "android", "container", "unknown_default_open_api"])
518
- return false unless sandbox_class_validator.valid?(@sandbox_class)
499
+ _class_validator = EnumAttributeValidator.new('String', ["small", "medium", "large", "unknown_default_open_api"])
500
+ return false unless _class_validator.valid?(@_class)
519
501
  return false if @toolbox_proxy_url.nil?
520
502
  true
521
503
  end
@@ -661,13 +643,13 @@ module DaytonaApiClient
661
643
  end
662
644
 
663
645
  # Custom attribute writer method checking allowed values (enum).
664
- # @param [Object] sandbox_class Object to be assigned
665
- def sandbox_class=(sandbox_class)
666
- validator = EnumAttributeValidator.new('String', ["linux-vm", "android", "container", "unknown_default_open_api"])
667
- unless validator.valid?(sandbox_class)
668
- fail ArgumentError, "invalid value for \"sandbox_class\", must be one of #{validator.allowable_values}."
646
+ # @param [Object] _class Object to be assigned
647
+ def _class=(_class)
648
+ validator = EnumAttributeValidator.new('String', ["small", "medium", "large", "unknown_default_open_api"])
649
+ unless validator.valid?(_class)
650
+ fail ArgumentError, "invalid value for \"_class\", must be one of #{validator.allowable_values}."
669
651
  end
670
- @sandbox_class = sandbox_class
652
+ @_class = _class
671
653
  end
672
654
 
673
655
  # Custom attribute writer method with validation
@@ -714,11 +696,9 @@ module DaytonaApiClient
714
696
  created_at == o.created_at &&
715
697
  updated_at == o.updated_at &&
716
698
  last_activity_at == o.last_activity_at &&
717
- sandbox_class == o.sandbox_class &&
718
- android_device == o.android_device &&
699
+ _class == o._class &&
719
700
  daemon_version == o.daemon_version &&
720
701
  runner_id == o.runner_id &&
721
- linked_sandbox_id == o.linked_sandbox_id &&
722
702
  toolbox_proxy_url == o.toolbox_proxy_url
723
703
  end
724
704
 
@@ -731,7 +711,7 @@ module DaytonaApiClient
731
711
  # Calculates hash code according to all attributes.
732
712
  # @return [Integer] Hash code
733
713
  def hash
734
- [id, organization_id, name, snapshot, user, env, labels, public, network_block_all, network_allow_list, target, cpu, gpu, memory, disk, state, desired_state, error_reason, recoverable, backup_state, backup_created_at, auto_stop_interval, auto_archive_interval, auto_delete_interval, volumes, build_info, created_at, updated_at, last_activity_at, sandbox_class, android_device, daemon_version, runner_id, linked_sandbox_id, toolbox_proxy_url].hash
714
+ [id, organization_id, name, snapshot, user, env, labels, public, network_block_all, network_allow_list, target, cpu, gpu, memory, disk, state, desired_state, error_reason, recoverable, backup_state, backup_created_at, auto_stop_interval, auto_archive_interval, auto_delete_interval, volumes, build_info, created_at, updated_at, last_activity_at, _class, daemon_version, runner_id, toolbox_proxy_url].hash
735
715
  end
736
716
 
737
717
  # Builds the object from hash
@@ -15,13 +15,13 @@ require 'time'
15
15
 
16
16
  module DaytonaApiClient
17
17
  class SandboxClass
18
- LINUX_VM = "linux-vm".freeze
19
- ANDROID = "android".freeze
20
- CONTAINER = "container".freeze
18
+ SMALL = "small".freeze
19
+ MEDIUM = "medium".freeze
20
+ LARGE = "large".freeze
21
21
  UNKNOWN_DEFAULT_OPEN_API = "unknown_default_open_api".freeze
22
22
 
23
23
  def self.all_vars
24
- @all_vars ||= [LINUX_VM, ANDROID, CONTAINER, UNKNOWN_DEFAULT_OPEN_API].freeze
24
+ @all_vars ||= [SMALL, MEDIUM, LARGE, UNKNOWN_DEFAULT_OPEN_API].freeze
25
25
  end
26
26
 
27
27
  # Builds the enum from string
@@ -59,9 +59,6 @@ module DaytonaApiClient
59
59
  # The snapshot reference
60
60
  attr_accessor :ref
61
61
 
62
- # Whether the snapshot is an android-device image. Sandboxes created from it inherit the flag and are provisioned via the android-device container flow on the runner.
63
- attr_accessor :android_device
64
-
65
62
  class EnumAttributeValidator
66
63
  attr_reader :datatype
67
64
  attr_reader :allowable_values
@@ -106,8 +103,7 @@ module DaytonaApiClient
106
103
  :'build_info' => :'buildInfo',
107
104
  :'region_ids' => :'regionIds',
108
105
  :'initial_runner_id' => :'initialRunnerId',
109
- :'ref' => :'ref',
110
- :'android_device' => :'androidDevice'
106
+ :'ref' => :'ref'
111
107
  }
112
108
  end
113
109
 
@@ -143,8 +139,7 @@ module DaytonaApiClient
143
139
  :'build_info' => :'BuildInfo',
144
140
  :'region_ids' => :'Array<String>',
145
141
  :'initial_runner_id' => :'String',
146
- :'ref' => :'String',
147
- :'android_device' => :'Boolean'
142
+ :'ref' => :'String'
148
143
  }
149
144
  end
150
145
 
@@ -285,10 +280,6 @@ module DaytonaApiClient
285
280
  if attributes.key?(:'ref')
286
281
  self.ref = attributes[:'ref']
287
282
  end
288
-
289
- if attributes.key?(:'android_device')
290
- self.android_device = attributes[:'android_device']
291
- end
292
283
  end
293
284
 
294
285
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -480,8 +471,7 @@ module DaytonaApiClient
480
471
  build_info == o.build_info &&
481
472
  region_ids == o.region_ids &&
482
473
  initial_runner_id == o.initial_runner_id &&
483
- ref == o.ref &&
484
- android_device == o.android_device
474
+ ref == o.ref
485
475
  end
486
476
 
487
477
  # @see the `==` method
@@ -493,7 +483,7 @@ module DaytonaApiClient
493
483
  # Calculates hash code according to all attributes.
494
484
  # @return [Integer] Hash code
495
485
  def hash
496
- [id, organization_id, general, name, image_name, state, size, entrypoint, cpu, gpu, mem, disk, error_reason, created_at, updated_at, last_used_at, build_info, region_ids, initial_runner_id, ref, android_device].hash
486
+ [id, organization_id, general, name, image_name, state, size, entrypoint, cpu, gpu, mem, disk, error_reason, created_at, updated_at, last_used_at, build_info, region_ids, initial_runner_id, ref].hash
497
487
  end
498
488
 
499
489
  # Builds the object from hash
@@ -103,10 +103,7 @@ module DaytonaApiClient
103
103
  attr_accessor :last_activity_at
104
104
 
105
105
  # The class of the sandbox
106
- attr_accessor :sandbox_class
107
-
108
- # Whether the sandbox is an android-device sandbox (inherited from the source snapshot at creation time)
109
- attr_accessor :android_device
106
+ attr_accessor :_class
110
107
 
111
108
  # The version of the daemon running in the sandbox
112
109
  attr_accessor :daemon_version
@@ -114,9 +111,6 @@ module DaytonaApiClient
114
111
  # The runner ID of the sandbox
115
112
  attr_accessor :runner_id
116
113
 
117
- # ID of the sandbox this sandbox is linked to. When set, the sandbox is co-located on the same runner as the linked sandbox.
118
- attr_accessor :linked_sandbox_id
119
-
120
114
  # The toolbox proxy URL for the sandbox
121
115
  attr_accessor :toolbox_proxy_url
122
116
 
@@ -186,11 +180,9 @@ module DaytonaApiClient
186
180
  :'created_at' => :'createdAt',
187
181
  :'updated_at' => :'updatedAt',
188
182
  :'last_activity_at' => :'lastActivityAt',
189
- :'sandbox_class' => :'sandboxClass',
190
- :'android_device' => :'androidDevice',
183
+ :'_class' => :'class',
191
184
  :'daemon_version' => :'daemonVersion',
192
185
  :'runner_id' => :'runnerId',
193
- :'linked_sandbox_id' => :'linkedSandboxId',
194
186
  :'toolbox_proxy_url' => :'toolboxProxyUrl',
195
187
  :'image' => :'image',
196
188
  :'snapshot_state' => :'snapshotState',
@@ -241,11 +233,9 @@ module DaytonaApiClient
241
233
  :'created_at' => :'String',
242
234
  :'updated_at' => :'String',
243
235
  :'last_activity_at' => :'String',
244
- :'sandbox_class' => :'String',
245
- :'android_device' => :'Boolean',
236
+ :'_class' => :'String',
246
237
  :'daemon_version' => :'String',
247
238
  :'runner_id' => :'String',
248
- :'linked_sandbox_id' => :'String',
249
239
  :'toolbox_proxy_url' => :'String',
250
240
  :'image' => :'String',
251
241
  :'snapshot_state' => :'String',
@@ -424,12 +414,8 @@ module DaytonaApiClient
424
414
  self.last_activity_at = attributes[:'last_activity_at']
425
415
  end
426
416
 
427
- if attributes.key?(:'sandbox_class')
428
- self.sandbox_class = attributes[:'sandbox_class']
429
- end
430
-
431
- if attributes.key?(:'android_device')
432
- self.android_device = attributes[:'android_device']
417
+ if attributes.key?(:'_class')
418
+ self._class = attributes[:'_class']
433
419
  end
434
420
 
435
421
  if attributes.key?(:'daemon_version')
@@ -440,10 +426,6 @@ module DaytonaApiClient
440
426
  self.runner_id = attributes[:'runner_id']
441
427
  end
442
428
 
443
- if attributes.key?(:'linked_sandbox_id')
444
- self.linked_sandbox_id = attributes[:'linked_sandbox_id']
445
- end
446
-
447
429
  if attributes.key?(:'toolbox_proxy_url')
448
430
  self.toolbox_proxy_url = attributes[:'toolbox_proxy_url']
449
431
  else
@@ -550,8 +532,8 @@ module DaytonaApiClient
550
532
  return false if @disk.nil?
551
533
  backup_state_validator = EnumAttributeValidator.new('String', ["None", "Pending", "InProgress", "Completed", "Error", "unknown_default_open_api"])
552
534
  return false unless backup_state_validator.valid?(@backup_state)
553
- sandbox_class_validator = EnumAttributeValidator.new('String', ["linux-vm", "android", "container", "unknown_default_open_api"])
554
- return false unless sandbox_class_validator.valid?(@sandbox_class)
535
+ _class_validator = EnumAttributeValidator.new('String', ["small", "medium", "large", "unknown_default_open_api"])
536
+ return false unless _class_validator.valid?(@_class)
555
537
  return false if @toolbox_proxy_url.nil?
556
538
  snapshot_state_validator = EnumAttributeValidator.new('String', ["None", "Pending", "InProgress", "Completed", "Error", "unknown_default_open_api"])
557
539
  return false unless snapshot_state_validator.valid?(@snapshot_state)
@@ -699,13 +681,13 @@ module DaytonaApiClient
699
681
  end
700
682
 
701
683
  # Custom attribute writer method checking allowed values (enum).
702
- # @param [Object] sandbox_class Object to be assigned
703
- def sandbox_class=(sandbox_class)
704
- validator = EnumAttributeValidator.new('String', ["linux-vm", "android", "container", "unknown_default_open_api"])
705
- unless validator.valid?(sandbox_class)
706
- fail ArgumentError, "invalid value for \"sandbox_class\", must be one of #{validator.allowable_values}."
684
+ # @param [Object] _class Object to be assigned
685
+ def _class=(_class)
686
+ validator = EnumAttributeValidator.new('String', ["small", "medium", "large", "unknown_default_open_api"])
687
+ unless validator.valid?(_class)
688
+ fail ArgumentError, "invalid value for \"_class\", must be one of #{validator.allowable_values}."
707
689
  end
708
- @sandbox_class = sandbox_class
690
+ @_class = _class
709
691
  end
710
692
 
711
693
  # Custom attribute writer method with validation
@@ -762,11 +744,9 @@ module DaytonaApiClient
762
744
  created_at == o.created_at &&
763
745
  updated_at == o.updated_at &&
764
746
  last_activity_at == o.last_activity_at &&
765
- sandbox_class == o.sandbox_class &&
766
- android_device == o.android_device &&
747
+ _class == o._class &&
767
748
  daemon_version == o.daemon_version &&
768
749
  runner_id == o.runner_id &&
769
- linked_sandbox_id == o.linked_sandbox_id &&
770
750
  toolbox_proxy_url == o.toolbox_proxy_url &&
771
751
  image == o.image &&
772
752
  snapshot_state == o.snapshot_state &&
@@ -783,7 +763,7 @@ module DaytonaApiClient
783
763
  # Calculates hash code according to all attributes.
784
764
  # @return [Integer] Hash code
785
765
  def hash
786
- [id, organization_id, name, snapshot, user, env, labels, public, network_block_all, network_allow_list, target, cpu, gpu, memory, disk, state, desired_state, error_reason, recoverable, backup_state, backup_created_at, auto_stop_interval, auto_archive_interval, auto_delete_interval, volumes, build_info, created_at, updated_at, last_activity_at, sandbox_class, android_device, daemon_version, runner_id, linked_sandbox_id, toolbox_proxy_url, image, snapshot_state, snapshot_created_at, info].hash
766
+ [id, organization_id, name, snapshot, user, env, labels, public, network_block_all, network_allow_list, target, cpu, gpu, memory, disk, state, desired_state, error_reason, recoverable, backup_state, backup_created_at, auto_stop_interval, auto_archive_interval, auto_delete_interval, volumes, build_info, created_at, updated_at, last_activity_at, _class, daemon_version, runner_id, toolbox_proxy_url, image, snapshot_state, snapshot_created_at, info].hash
787
767
  end
788
768
 
789
769
  # Builds the object from hash
@@ -11,5 +11,5 @@ Generator version: 7.21.0
11
11
  =end
12
12
 
13
13
  module DaytonaApiClient
14
- VERSION = '0.171.0.rc.1'
14
+ VERSION = '0.172.0'
15
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daytona_api_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.171.0.rc.1
4
+ version: 0.172.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - daytonaio