daytona_api_client 0.170.0 → 0.171.0.rc.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 35022ba1ef8d636a4cc93e878a23c6b067a97f58dfb4bbfac59cd6c5d970ece0
4
- data.tar.gz: 80dfdf509c886256b097d39f0e6a07bc54588f776b16817f23a34b3d120febc3
3
+ metadata.gz: f0b7f75e157b37721cfa700d8ba7e831d2e9b75f4d0217a6a152ca4a3f59181a
4
+ data.tar.gz: 83a1f740a72a7457a5b3df46017a49f2985002b91b9f7d6a8425f18e91a4391a
5
5
  SHA512:
6
- metadata.gz: 0a5fd2ed98fcb57022e342caf10f838bcb78857c79c64e250376f23415c4d9f7f6721f1d1def1cd30c0c892d2ef1069ba833edb26831a340aad49d56fbec35f6
7
- data.tar.gz: 323be9638dbb085318a9e31b720eb8c6573de410eade1deba0e61d1efaf864592876023fa64c0bc1e04cd3303da51d186de861dc3939829bfa3d6c9e752e1a27
6
+ metadata.gz: 74e9c467f4b4ede73df25e4d71cc037a4fc7ad9e638ad5e342a62b27e09bd0252aec8279b76219f9bea739b097b589566e470caa61a2765f07fa13a5694c19a7
7
+ data.tar.gz: 9ff20d817ab3f3063d765ba1d7cefe6700b252811a65186a1796deef7b2800fafc9012971c45b4bc6872c52f906d2246e3fc99fd3a1775f4368c7a0a5ea7dfe5
@@ -455,6 +455,7 @@ module DaytonaApiClient
455
455
 
456
456
  # List all runners
457
457
  # @param [Hash] opts the optional parameters
458
+ # @option opts [String] :region_id Filter runners by region ID
458
459
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
459
460
  # @return [Array<Runner>]
460
461
  def list_runners(opts = {})
@@ -464,6 +465,7 @@ module DaytonaApiClient
464
465
 
465
466
  # List all runners
466
467
  # @param [Hash] opts the optional parameters
468
+ # @option opts [String] :region_id Filter runners by region ID
467
469
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
468
470
  # @return [Array<(Array<Runner>, Integer, Hash)>] Array<Runner> data, response status code and response headers
469
471
  def list_runners_with_http_info(opts = {})
@@ -475,6 +477,7 @@ module DaytonaApiClient
475
477
 
476
478
  # query parameters
477
479
  query_params = opts[:query_params] || {}
480
+ query_params[:'regionId'] = opts[:'region_id'] if !opts[:'region_id'].nil?
478
481
 
479
482
  # header parameters
480
483
  header_params = opts[:header_params] || {}
@@ -39,9 +39,6 @@ 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
-
45
42
  # The target (region) where the sandbox will be created
46
43
  attr_accessor :target
47
44
 
@@ -72,27 +69,8 @@ module DaytonaApiClient
72
69
  # Build information for the sandbox
73
70
  attr_accessor :build_info
74
71
 
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
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
96
74
 
97
75
  # Attribute mapping from ruby-style variable name to JSON key.
98
76
  def self.attribute_map
@@ -105,7 +83,6 @@ module DaytonaApiClient
105
83
  :'public' => :'public',
106
84
  :'network_block_all' => :'networkBlockAll',
107
85
  :'network_allow_list' => :'networkAllowList',
108
- :'_class' => :'class',
109
86
  :'target' => :'target',
110
87
  :'cpu' => :'cpu',
111
88
  :'gpu' => :'gpu',
@@ -115,7 +92,8 @@ module DaytonaApiClient
115
92
  :'auto_archive_interval' => :'autoArchiveInterval',
116
93
  :'auto_delete_interval' => :'autoDeleteInterval',
117
94
  :'volumes' => :'volumes',
118
- :'build_info' => :'buildInfo'
95
+ :'build_info' => :'buildInfo',
96
+ :'linked_sandbox' => :'linkedSandbox'
119
97
  }
120
98
  end
121
99
 
@@ -140,7 +118,6 @@ module DaytonaApiClient
140
118
  :'public' => :'Boolean',
141
119
  :'network_block_all' => :'Boolean',
142
120
  :'network_allow_list' => :'String',
143
- :'_class' => :'String',
144
121
  :'target' => :'String',
145
122
  :'cpu' => :'Integer',
146
123
  :'gpu' => :'Integer',
@@ -150,7 +127,8 @@ module DaytonaApiClient
150
127
  :'auto_archive_interval' => :'Integer',
151
128
  :'auto_delete_interval' => :'Integer',
152
129
  :'volumes' => :'Array<SandboxVolume>',
153
- :'build_info' => :'CreateBuildInfo'
130
+ :'build_info' => :'CreateBuildInfo',
131
+ :'linked_sandbox' => :'String'
154
132
  }
155
133
  end
156
134
 
@@ -212,10 +190,6 @@ module DaytonaApiClient
212
190
  self.network_allow_list = attributes[:'network_allow_list']
213
191
  end
214
192
 
215
- if attributes.key?(:'_class')
216
- self._class = attributes[:'_class']
217
- end
218
-
219
193
  if attributes.key?(:'target')
220
194
  self.target = attributes[:'target']
221
195
  end
@@ -257,6 +231,10 @@ module DaytonaApiClient
257
231
  if attributes.key?(:'build_info')
258
232
  self.build_info = attributes[:'build_info']
259
233
  end
234
+
235
+ if attributes.key?(:'linked_sandbox')
236
+ self.linked_sandbox = attributes[:'linked_sandbox']
237
+ end
260
238
  end
261
239
 
262
240
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -271,21 +249,9 @@ module DaytonaApiClient
271
249
  # @return true if the model is valid
272
250
  def valid?
273
251
  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)
276
252
  true
277
253
  end
278
254
 
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
-
289
255
  # Checks equality by comparing each attribute.
290
256
  # @param [Object] Object to be compared
291
257
  def ==(o)
@@ -299,7 +265,6 @@ module DaytonaApiClient
299
265
  public == o.public &&
300
266
  network_block_all == o.network_block_all &&
301
267
  network_allow_list == o.network_allow_list &&
302
- _class == o._class &&
303
268
  target == o.target &&
304
269
  cpu == o.cpu &&
305
270
  gpu == o.gpu &&
@@ -309,7 +274,8 @@ module DaytonaApiClient
309
274
  auto_archive_interval == o.auto_archive_interval &&
310
275
  auto_delete_interval == o.auto_delete_interval &&
311
276
  volumes == o.volumes &&
312
- build_info == o.build_info
277
+ build_info == o.build_info &&
278
+ linked_sandbox == o.linked_sandbox
313
279
  end
314
280
 
315
281
  # @see the `==` method
@@ -321,7 +287,7 @@ module DaytonaApiClient
321
287
  # Calculates hash code according to all attributes.
322
288
  # @return [Integer] Hash code
323
289
  def 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
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
325
291
  end
326
292
 
327
293
  # Builds the object from hash
@@ -42,6 +42,31 @@ 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
+
45
70
  # Attribute mapping from ruby-style variable name to JSON key.
46
71
  def self.attribute_map
47
72
  {
@@ -53,7 +78,8 @@ module DaytonaApiClient
53
78
  :'memory' => :'memory',
54
79
  :'disk' => :'disk',
55
80
  :'build_info' => :'buildInfo',
56
- :'region_id' => :'regionId'
81
+ :'region_id' => :'regionId',
82
+ :'sandbox_class' => :'sandboxClass'
57
83
  }
58
84
  end
59
85
 
@@ -78,7 +104,8 @@ module DaytonaApiClient
78
104
  :'memory' => :'Integer',
79
105
  :'disk' => :'Integer',
80
106
  :'build_info' => :'CreateBuildInfo',
81
- :'region_id' => :'String'
107
+ :'region_id' => :'String',
108
+ :'sandbox_class' => :'SandboxClass'
82
109
  }
83
110
  end
84
111
 
@@ -143,6 +170,10 @@ module DaytonaApiClient
143
170
  if attributes.key?(:'region_id')
144
171
  self.region_id = attributes[:'region_id']
145
172
  end
173
+
174
+ if attributes.key?(:'sandbox_class')
175
+ self.sandbox_class = attributes[:'sandbox_class']
176
+ end
146
177
  end
147
178
 
148
179
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -188,7 +219,8 @@ module DaytonaApiClient
188
219
  memory == o.memory &&
189
220
  disk == o.disk &&
190
221
  build_info == o.build_info &&
191
- region_id == o.region_id
222
+ region_id == o.region_id &&
223
+ sandbox_class == o.sandbox_class
192
224
  end
193
225
 
194
226
  # @see the `==` method
@@ -200,7 +232,7 @@ module DaytonaApiClient
200
232
  # Calculates hash code according to all attributes.
201
233
  # @return [Integer] Hash code
202
234
  def hash
203
- [name, image_name, entrypoint, cpu, gpu, memory, disk, build_info, region_id].hash
235
+ [name, image_name, entrypoint, cpu, gpu, memory, disk, build_info, region_id, sandbox_class].hash
204
236
  end
205
237
 
206
238
  # Builds the object from hash
@@ -30,9 +30,6 @@ 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
-
36
33
  # The target (region) where the workspace will be created
37
34
  attr_accessor :target
38
35
 
@@ -90,7 +87,6 @@ module DaytonaApiClient
90
87
  :'env' => :'env',
91
88
  :'labels' => :'labels',
92
89
  :'public' => :'public',
93
- :'_class' => :'class',
94
90
  :'target' => :'target',
95
91
  :'cpu' => :'cpu',
96
92
  :'gpu' => :'gpu',
@@ -121,7 +117,6 @@ module DaytonaApiClient
121
117
  :'env' => :'Hash<String, String>',
122
118
  :'labels' => :'Hash<String, String>',
123
119
  :'public' => :'Boolean',
124
- :'_class' => :'String',
125
120
  :'target' => :'String',
126
121
  :'cpu' => :'Integer',
127
122
  :'gpu' => :'Integer',
@@ -180,10 +175,6 @@ module DaytonaApiClient
180
175
  self.public = attributes[:'public']
181
176
  end
182
177
 
183
- if attributes.key?(:'_class')
184
- self._class = attributes[:'_class']
185
- end
186
-
187
178
  if attributes.key?(:'target')
188
179
  self.target = attributes[:'target']
189
180
  end
@@ -235,23 +226,11 @@ module DaytonaApiClient
235
226
  # @return true if the model is valid
236
227
  def valid?
237
228
  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)
240
229
  target_validator = EnumAttributeValidator.new('String', ["eu", "us", "asia", "unknown_default_open_api"])
241
230
  return false unless target_validator.valid?(@target)
242
231
  true
243
232
  end
244
233
 
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
-
255
234
  # Custom attribute writer method checking allowed values (enum).
256
235
  # @param [Object] target Object to be assigned
257
236
  def target=(target)
@@ -272,7 +251,6 @@ module DaytonaApiClient
272
251
  env == o.env &&
273
252
  labels == o.labels &&
274
253
  public == o.public &&
275
- _class == o._class &&
276
254
  target == o.target &&
277
255
  cpu == o.cpu &&
278
256
  gpu == o.gpu &&
@@ -293,7 +271,7 @@ module DaytonaApiClient
293
271
  # Calculates hash code according to all attributes.
294
272
  # @return [Integer] Hash code
295
273
  def hash
296
- [image, user, env, labels, public, _class, target, cpu, gpu, memory, disk, auto_stop_interval, auto_archive_interval, volumes, build_info].hash
274
+ [image, user, env, labels, public, target, cpu, gpu, memory, disk, auto_stop_interval, auto_archive_interval, volumes, build_info].hash
297
275
  end
298
276
 
299
277
  # Builds the object from hash
@@ -60,6 +60,9 @@ 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
+
63
66
  # SSH Gateway command
64
67
  attr_accessor :ssh_gateway_command
65
68
 
@@ -87,6 +90,7 @@ module DaytonaApiClient
87
90
  :'environment' => :'environment',
88
91
  :'billing_api_url' => :'billingApiUrl',
89
92
  :'analytics_api_url' => :'analyticsApiUrl',
93
+ :'stripe_publishable_key' => :'stripePublishableKey',
90
94
  :'ssh_gateway_command' => :'sshGatewayCommand',
91
95
  :'ssh_gateway_public_key' => :'sshGatewayPublicKey',
92
96
  :'rate_limit' => :'rateLimit'
@@ -121,6 +125,7 @@ module DaytonaApiClient
121
125
  :'environment' => :'String',
122
126
  :'billing_api_url' => :'String',
123
127
  :'analytics_api_url' => :'String',
128
+ :'stripe_publishable_key' => :'String',
124
129
  :'ssh_gateway_command' => :'String',
125
130
  :'ssh_gateway_public_key' => :'String',
126
131
  :'rate_limit' => :'RateLimitConfig'
@@ -233,6 +238,10 @@ module DaytonaApiClient
233
238
  self.analytics_api_url = attributes[:'analytics_api_url']
234
239
  end
235
240
 
241
+ if attributes.key?(:'stripe_publishable_key')
242
+ self.stripe_publishable_key = attributes[:'stripe_publishable_key']
243
+ end
244
+
236
245
  if attributes.key?(:'ssh_gateway_command')
237
246
  self.ssh_gateway_command = attributes[:'ssh_gateway_command']
238
247
  end
@@ -446,6 +455,7 @@ module DaytonaApiClient
446
455
  environment == o.environment &&
447
456
  billing_api_url == o.billing_api_url &&
448
457
  analytics_api_url == o.analytics_api_url &&
458
+ stripe_publishable_key == o.stripe_publishable_key &&
449
459
  ssh_gateway_command == o.ssh_gateway_command &&
450
460
  ssh_gateway_public_key == o.ssh_gateway_public_key &&
451
461
  rate_limit == o.rate_limit
@@ -460,7 +470,7 @@ module DaytonaApiClient
460
470
  # Calculates hash code according to all attributes.
461
471
  # @return [Integer] Hash code
462
472
  def 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
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
464
474
  end
465
475
 
466
476
  # 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 class of the runner
46
- attr_accessor :_class
45
+ # The sandbox class supported by this runner
46
+ attr_accessor :sandbox_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
- :'_class' => :'class',
142
+ :'sandbox_class' => :'sandboxClass',
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
- :'_class' => :'SandboxClass',
188
+ :'sandbox_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?(:'_class')
279
- self._class = attributes[:'_class']
278
+ if attributes.key?(:'sandbox_class')
279
+ self.sandbox_class = attributes[:'sandbox_class']
280
280
  else
281
- self._class = nil
281
+ self.sandbox_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 @_class.nil?
405
- invalid_properties.push('invalid value for "_class", _class cannot be nil.')
404
+ if @sandbox_class.nil?
405
+ invalid_properties.push('invalid value for "sandbox_class", sandbox_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 @_class.nil?
455
+ return false if @sandbox_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] _class Value to be assigned
510
- def _class=(_class)
511
- if _class.nil?
512
- fail ArgumentError, '_class cannot be nil'
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'
513
513
  end
514
514
 
515
- @_class = _class
515
+ @sandbox_class = sandbox_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
- _class == o._class &&
622
+ sandbox_class == o.sandbox_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, _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, 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
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 class of the runner
46
- attr_accessor :_class
45
+ # The sandbox class supported by this runner
46
+ attr_accessor :sandbox_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
- :'_class' => :'class',
148
+ :'sandbox_class' => :'sandboxClass',
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
- :'_class' => :'SandboxClass',
196
+ :'sandbox_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?(:'_class')
289
- self._class = attributes[:'_class']
288
+ if attributes.key?(:'sandbox_class')
289
+ self.sandbox_class = attributes[:'sandbox_class']
290
290
  else
291
- self._class = nil
291
+ self.sandbox_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 @_class.nil?
425
- invalid_properties.push('invalid value for "_class", _class cannot be nil.')
424
+ if @sandbox_class.nil?
425
+ invalid_properties.push('invalid value for "sandbox_class", sandbox_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 @_class.nil?
479
+ return false if @sandbox_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] _class Value to be assigned
535
- def _class=(_class)
536
- if _class.nil?
537
- fail ArgumentError, '_class cannot be nil'
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'
538
538
  end
539
539
 
540
- @_class = _class
540
+ @sandbox_class = sandbox_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
- _class == o._class &&
657
+ sandbox_class == o.sandbox_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, _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, 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
692
692
  end
693
693
 
694
694
  # Builds the object from hash
@@ -103,7 +103,10 @@ module DaytonaApiClient
103
103
  attr_accessor :last_activity_at
104
104
 
105
105
  # The class of the sandbox
106
- attr_accessor :_class
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
107
110
 
108
111
  # The version of the daemon running in the sandbox
109
112
  attr_accessor :daemon_version
@@ -111,6 +114,9 @@ module DaytonaApiClient
111
114
  # The runner ID of the sandbox
112
115
  attr_accessor :runner_id
113
116
 
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
+
114
120
  # The toolbox proxy URL for the sandbox
115
121
  attr_accessor :toolbox_proxy_url
116
122
 
@@ -168,9 +174,11 @@ module DaytonaApiClient
168
174
  :'created_at' => :'createdAt',
169
175
  :'updated_at' => :'updatedAt',
170
176
  :'last_activity_at' => :'lastActivityAt',
171
- :'_class' => :'class',
177
+ :'sandbox_class' => :'sandboxClass',
178
+ :'android_device' => :'androidDevice',
172
179
  :'daemon_version' => :'daemonVersion',
173
180
  :'runner_id' => :'runnerId',
181
+ :'linked_sandbox_id' => :'linkedSandboxId',
174
182
  :'toolbox_proxy_url' => :'toolboxProxyUrl'
175
183
  }
176
184
  end
@@ -217,9 +225,11 @@ module DaytonaApiClient
217
225
  :'created_at' => :'String',
218
226
  :'updated_at' => :'String',
219
227
  :'last_activity_at' => :'String',
220
- :'_class' => :'String',
228
+ :'sandbox_class' => :'String',
229
+ :'android_device' => :'Boolean',
221
230
  :'daemon_version' => :'String',
222
231
  :'runner_id' => :'String',
232
+ :'linked_sandbox_id' => :'String',
223
233
  :'toolbox_proxy_url' => :'String'
224
234
  }
225
235
  end
@@ -394,8 +404,12 @@ module DaytonaApiClient
394
404
  self.last_activity_at = attributes[:'last_activity_at']
395
405
  end
396
406
 
397
- if attributes.key?(:'_class')
398
- self._class = attributes[:'_class']
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']
399
413
  end
400
414
 
401
415
  if attributes.key?(:'daemon_version')
@@ -406,6 +420,10 @@ module DaytonaApiClient
406
420
  self.runner_id = attributes[:'runner_id']
407
421
  end
408
422
 
423
+ if attributes.key?(:'linked_sandbox_id')
424
+ self.linked_sandbox_id = attributes[:'linked_sandbox_id']
425
+ end
426
+
409
427
  if attributes.key?(:'toolbox_proxy_url')
410
428
  self.toolbox_proxy_url = attributes[:'toolbox_proxy_url']
411
429
  else
@@ -496,8 +514,8 @@ module DaytonaApiClient
496
514
  return false if @disk.nil?
497
515
  backup_state_validator = EnumAttributeValidator.new('String', ["None", "Pending", "InProgress", "Completed", "Error", "unknown_default_open_api"])
498
516
  return false unless backup_state_validator.valid?(@backup_state)
499
- _class_validator = EnumAttributeValidator.new('String', ["small", "medium", "large", "unknown_default_open_api"])
500
- return false unless _class_validator.valid?(@_class)
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)
501
519
  return false if @toolbox_proxy_url.nil?
502
520
  true
503
521
  end
@@ -643,13 +661,13 @@ module DaytonaApiClient
643
661
  end
644
662
 
645
663
  # Custom attribute writer method checking allowed values (enum).
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}."
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}."
651
669
  end
652
- @_class = _class
670
+ @sandbox_class = sandbox_class
653
671
  end
654
672
 
655
673
  # Custom attribute writer method with validation
@@ -696,9 +714,11 @@ module DaytonaApiClient
696
714
  created_at == o.created_at &&
697
715
  updated_at == o.updated_at &&
698
716
  last_activity_at == o.last_activity_at &&
699
- _class == o._class &&
717
+ sandbox_class == o.sandbox_class &&
718
+ android_device == o.android_device &&
700
719
  daemon_version == o.daemon_version &&
701
720
  runner_id == o.runner_id &&
721
+ linked_sandbox_id == o.linked_sandbox_id &&
702
722
  toolbox_proxy_url == o.toolbox_proxy_url
703
723
  end
704
724
 
@@ -711,7 +731,7 @@ module DaytonaApiClient
711
731
  # Calculates hash code according to all attributes.
712
732
  # @return [Integer] Hash code
713
733
  def 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
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
715
735
  end
716
736
 
717
737
  # Builds the object from hash
@@ -15,13 +15,13 @@ require 'time'
15
15
 
16
16
  module DaytonaApiClient
17
17
  class SandboxClass
18
- SMALL = "small".freeze
19
- MEDIUM = "medium".freeze
20
- LARGE = "large".freeze
18
+ LINUX_VM = "linux-vm".freeze
19
+ ANDROID = "android".freeze
20
+ CONTAINER = "container".freeze
21
21
  UNKNOWN_DEFAULT_OPEN_API = "unknown_default_open_api".freeze
22
22
 
23
23
  def self.all_vars
24
- @all_vars ||= [SMALL, MEDIUM, LARGE, UNKNOWN_DEFAULT_OPEN_API].freeze
24
+ @all_vars ||= [LINUX_VM, ANDROID, CONTAINER, UNKNOWN_DEFAULT_OPEN_API].freeze
25
25
  end
26
26
 
27
27
  # Builds the enum from string
@@ -59,6 +59,9 @@ 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
+
62
65
  class EnumAttributeValidator
63
66
  attr_reader :datatype
64
67
  attr_reader :allowable_values
@@ -103,7 +106,8 @@ module DaytonaApiClient
103
106
  :'build_info' => :'buildInfo',
104
107
  :'region_ids' => :'regionIds',
105
108
  :'initial_runner_id' => :'initialRunnerId',
106
- :'ref' => :'ref'
109
+ :'ref' => :'ref',
110
+ :'android_device' => :'androidDevice'
107
111
  }
108
112
  end
109
113
 
@@ -139,7 +143,8 @@ module DaytonaApiClient
139
143
  :'build_info' => :'BuildInfo',
140
144
  :'region_ids' => :'Array<String>',
141
145
  :'initial_runner_id' => :'String',
142
- :'ref' => :'String'
146
+ :'ref' => :'String',
147
+ :'android_device' => :'Boolean'
143
148
  }
144
149
  end
145
150
 
@@ -280,6 +285,10 @@ module DaytonaApiClient
280
285
  if attributes.key?(:'ref')
281
286
  self.ref = attributes[:'ref']
282
287
  end
288
+
289
+ if attributes.key?(:'android_device')
290
+ self.android_device = attributes[:'android_device']
291
+ end
283
292
  end
284
293
 
285
294
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -471,7 +480,8 @@ module DaytonaApiClient
471
480
  build_info == o.build_info &&
472
481
  region_ids == o.region_ids &&
473
482
  initial_runner_id == o.initial_runner_id &&
474
- ref == o.ref
483
+ ref == o.ref &&
484
+ android_device == o.android_device
475
485
  end
476
486
 
477
487
  # @see the `==` method
@@ -483,7 +493,7 @@ module DaytonaApiClient
483
493
  # Calculates hash code according to all attributes.
484
494
  # @return [Integer] Hash code
485
495
  def 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
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
487
497
  end
488
498
 
489
499
  # Builds the object from hash
@@ -103,7 +103,10 @@ module DaytonaApiClient
103
103
  attr_accessor :last_activity_at
104
104
 
105
105
  # The class of the sandbox
106
- attr_accessor :_class
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
107
110
 
108
111
  # The version of the daemon running in the sandbox
109
112
  attr_accessor :daemon_version
@@ -111,6 +114,9 @@ module DaytonaApiClient
111
114
  # The runner ID of the sandbox
112
115
  attr_accessor :runner_id
113
116
 
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
+
114
120
  # The toolbox proxy URL for the sandbox
115
121
  attr_accessor :toolbox_proxy_url
116
122
 
@@ -180,9 +186,11 @@ module DaytonaApiClient
180
186
  :'created_at' => :'createdAt',
181
187
  :'updated_at' => :'updatedAt',
182
188
  :'last_activity_at' => :'lastActivityAt',
183
- :'_class' => :'class',
189
+ :'sandbox_class' => :'sandboxClass',
190
+ :'android_device' => :'androidDevice',
184
191
  :'daemon_version' => :'daemonVersion',
185
192
  :'runner_id' => :'runnerId',
193
+ :'linked_sandbox_id' => :'linkedSandboxId',
186
194
  :'toolbox_proxy_url' => :'toolboxProxyUrl',
187
195
  :'image' => :'image',
188
196
  :'snapshot_state' => :'snapshotState',
@@ -233,9 +241,11 @@ module DaytonaApiClient
233
241
  :'created_at' => :'String',
234
242
  :'updated_at' => :'String',
235
243
  :'last_activity_at' => :'String',
236
- :'_class' => :'String',
244
+ :'sandbox_class' => :'String',
245
+ :'android_device' => :'Boolean',
237
246
  :'daemon_version' => :'String',
238
247
  :'runner_id' => :'String',
248
+ :'linked_sandbox_id' => :'String',
239
249
  :'toolbox_proxy_url' => :'String',
240
250
  :'image' => :'String',
241
251
  :'snapshot_state' => :'String',
@@ -414,8 +424,12 @@ module DaytonaApiClient
414
424
  self.last_activity_at = attributes[:'last_activity_at']
415
425
  end
416
426
 
417
- if attributes.key?(:'_class')
418
- self._class = attributes[:'_class']
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']
419
433
  end
420
434
 
421
435
  if attributes.key?(:'daemon_version')
@@ -426,6 +440,10 @@ module DaytonaApiClient
426
440
  self.runner_id = attributes[:'runner_id']
427
441
  end
428
442
 
443
+ if attributes.key?(:'linked_sandbox_id')
444
+ self.linked_sandbox_id = attributes[:'linked_sandbox_id']
445
+ end
446
+
429
447
  if attributes.key?(:'toolbox_proxy_url')
430
448
  self.toolbox_proxy_url = attributes[:'toolbox_proxy_url']
431
449
  else
@@ -532,8 +550,8 @@ module DaytonaApiClient
532
550
  return false if @disk.nil?
533
551
  backup_state_validator = EnumAttributeValidator.new('String', ["None", "Pending", "InProgress", "Completed", "Error", "unknown_default_open_api"])
534
552
  return false unless backup_state_validator.valid?(@backup_state)
535
- _class_validator = EnumAttributeValidator.new('String', ["small", "medium", "large", "unknown_default_open_api"])
536
- return false unless _class_validator.valid?(@_class)
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)
537
555
  return false if @toolbox_proxy_url.nil?
538
556
  snapshot_state_validator = EnumAttributeValidator.new('String', ["None", "Pending", "InProgress", "Completed", "Error", "unknown_default_open_api"])
539
557
  return false unless snapshot_state_validator.valid?(@snapshot_state)
@@ -681,13 +699,13 @@ module DaytonaApiClient
681
699
  end
682
700
 
683
701
  # Custom attribute writer method checking allowed values (enum).
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}."
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}."
689
707
  end
690
- @_class = _class
708
+ @sandbox_class = sandbox_class
691
709
  end
692
710
 
693
711
  # Custom attribute writer method with validation
@@ -744,9 +762,11 @@ module DaytonaApiClient
744
762
  created_at == o.created_at &&
745
763
  updated_at == o.updated_at &&
746
764
  last_activity_at == o.last_activity_at &&
747
- _class == o._class &&
765
+ sandbox_class == o.sandbox_class &&
766
+ android_device == o.android_device &&
748
767
  daemon_version == o.daemon_version &&
749
768
  runner_id == o.runner_id &&
769
+ linked_sandbox_id == o.linked_sandbox_id &&
750
770
  toolbox_proxy_url == o.toolbox_proxy_url &&
751
771
  image == o.image &&
752
772
  snapshot_state == o.snapshot_state &&
@@ -763,7 +783,7 @@ module DaytonaApiClient
763
783
  # Calculates hash code according to all attributes.
764
784
  # @return [Integer] Hash code
765
785
  def 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
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
767
787
  end
768
788
 
769
789
  # 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.170.0'
14
+ VERSION = '0.171.0.rc.1'
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.170.0
4
+ version: 0.171.0.rc.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - daytonaio