daytona_api_client 0.187.0 → 0.190.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: 5e93c931704275e7d1ea773d1223b39e957a5da176c1bebf64dd4170acfb499b
4
- data.tar.gz: 30cc2580a106de35123785950df8489a4501072bbbfafae22701953090873894
3
+ metadata.gz: 7c6d9df79e366b91b1f6415cd4bb8639f310bec44d625df6e1d7f2b571d9c50f
4
+ data.tar.gz: 5cec9a63ab37af19fa8bde77f52b1b6479187c4b41d790dbdcdb69d92a2a8f27
5
5
  SHA512:
6
- metadata.gz: c31aa781b47d27d135f9ee369e70070bb24ecbeb7b6246497ad131fabbbfd5da106f60c352a4d4fb0d71fae14372d2dfc3bba94532f781ec65e4537254924626
7
- data.tar.gz: 9f4bd8531d1995fb7c3505445d99e5318946375f9d769b96a94918b056348b0ebdbef7434999e43e77cf55979f3ba81a43888241f24f7a7b7fd50fabf7eff746
6
+ metadata.gz: bbf40e3e48ab917b953c9143d75516b8795a5a90bae8bb74f85ac169c99bc227d9ea84b5474541450e5c73a80fd925869cfc52bd9becd1191cecf195ddcb4969
7
+ data.tar.gz: 72915fec877f00c5db740c311ab62bd3ef346ee408268d1728fb515bcecb27aeb34ca7b7e2a2814ec19ef7b03fecede8bac51b794b27ce8d5b34e94b7cc17c07
@@ -1927,7 +1927,7 @@ module DaytonaApiClient
1927
1927
  fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling SandboxApi.list_sandboxes_paginated_deprecated, must be greater than or equal to 1.'
1928
1928
  end
1929
1929
 
1930
- allowable_values = ["creating", "restoring", "destroying", "started", "stopped", "starting", "stopping", "error", "build_failed", "pending_build", "building_snapshot", "unknown", "pulling_snapshot", "archived", "archiving", "resizing", "snapshotting", "forking", "unknown_default_open_api"]
1930
+ allowable_values = ["creating", "restoring", "destroying", "started", "stopped", "starting", "stopping", "error", "build_failed", "pending_build", "building_snapshot", "unknown", "pulling_snapshot", "archived", "archiving", "resizing", "snapshotting", "forking", "pausing", "paused", "resuming", "unknown_default_open_api"]
1931
1931
  if @api_client.config.client_side_validation && opts[:'states'] && !opts[:'states'].all? { |item| allowable_values.include?(item) }
1932
1932
  fail ArgumentError, "invalid value for \"states\", must include one of #{allowable_values}"
1933
1933
  end
@@ -2023,6 +2023,70 @@ module DaytonaApiClient
2023
2023
  return data, status_code, headers
2024
2024
  end
2025
2025
 
2026
+ # Pause sandbox
2027
+ # @param sandbox_id_or_name [String] ID or name of the sandbox
2028
+ # @param [Hash] opts the optional parameters
2029
+ # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
2030
+ # @return [Sandbox]
2031
+ def pause_sandbox(sandbox_id_or_name, opts = {})
2032
+ data, _status_code, _headers = pause_sandbox_with_http_info(sandbox_id_or_name, opts)
2033
+ data
2034
+ end
2035
+
2036
+ # Pause sandbox
2037
+ # @param sandbox_id_or_name [String] ID or name of the sandbox
2038
+ # @param [Hash] opts the optional parameters
2039
+ # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
2040
+ # @return [Array<(Sandbox, Integer, Hash)>] Sandbox data, response status code and response headers
2041
+ def pause_sandbox_with_http_info(sandbox_id_or_name, opts = {})
2042
+ if @api_client.config.debugging
2043
+ @api_client.config.logger.debug 'Calling API: SandboxApi.pause_sandbox ...'
2044
+ end
2045
+ # verify the required parameter 'sandbox_id_or_name' is set
2046
+ if @api_client.config.client_side_validation && sandbox_id_or_name.nil?
2047
+ fail ArgumentError, "Missing the required parameter 'sandbox_id_or_name' when calling SandboxApi.pause_sandbox"
2048
+ end
2049
+ # resource path
2050
+ local_var_path = '/sandbox/{sandboxIdOrName}/pause'.sub('{' + 'sandboxIdOrName' + '}', CGI.escape(sandbox_id_or_name.to_s))
2051
+
2052
+ # query parameters
2053
+ query_params = opts[:query_params] || {}
2054
+
2055
+ # header parameters
2056
+ header_params = opts[:header_params] || {}
2057
+ # HTTP header 'Accept' (if needed)
2058
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
2059
+ header_params[:'X-Daytona-Organization-ID'] = opts[:'x_daytona_organization_id'] if !opts[:'x_daytona_organization_id'].nil?
2060
+
2061
+ # form parameters
2062
+ form_params = opts[:form_params] || {}
2063
+
2064
+ # http body (model)
2065
+ post_body = opts[:debug_body]
2066
+
2067
+ # return_type
2068
+ return_type = opts[:debug_return_type] || 'Sandbox'
2069
+
2070
+ # auth_names
2071
+ auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
2072
+
2073
+ new_options = opts.merge(
2074
+ :operation => :"SandboxApi.pause_sandbox",
2075
+ :header_params => header_params,
2076
+ :query_params => query_params,
2077
+ :form_params => form_params,
2078
+ :body => post_body,
2079
+ :auth_names => auth_names,
2080
+ :return_type => return_type
2081
+ )
2082
+
2083
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2084
+ if @api_client.config.debugging
2085
+ @api_client.config.logger.debug "API called: SandboxApi#pause_sandbox\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2086
+ end
2087
+ return data, status_code, headers
2088
+ end
2089
+
2026
2090
  # Recover sandbox from error state
2027
2091
  # @param sandbox_id_or_name [String] ID or name of the sandbox
2028
2092
  # @param [Hash] opts the optional parameters
@@ -2517,7 +2581,8 @@ module DaytonaApiClient
2517
2581
  return data, status_code, headers
2518
2582
  end
2519
2583
 
2520
- # Start sandbox
2584
+ # Start or resume sandbox
2585
+ # Starts a stopped or archived sandbox, or resumes a paused sandbox. The transition taken depends on the current sandbox state.
2521
2586
  # @param sandbox_id_or_name [String] ID or name of the sandbox
2522
2587
  # @param [Hash] opts the optional parameters
2523
2588
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
@@ -2527,7 +2592,8 @@ module DaytonaApiClient
2527
2592
  data
2528
2593
  end
2529
2594
 
2530
- # Start sandbox
2595
+ # Start or resume sandbox
2596
+ # Starts a stopped or archived sandbox, or resumes a paused sandbox. The transition taken depends on the current sandbox state.
2531
2597
  # @param sandbox_id_or_name [String] ID or name of the sandbox
2532
2598
  # @param [Hash] opts the optional parameters
2533
2599
  # @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
@@ -33,6 +33,9 @@ module DaytonaApiClient
33
33
 
34
34
  attr_accessor :volume_quota
35
35
 
36
+ # Maximum number of snapshots an organization can process (building or pulling) concurrently. Excess are queued. <= 0 means unlimited.
37
+ attr_accessor :max_concurrent_snapshot_processing
38
+
36
39
  # Attribute mapping from ruby-style variable name to JSON key.
37
40
  def self.attribute_map
38
41
  {
@@ -44,7 +47,8 @@ module DaytonaApiClient
44
47
  :'max_disk_per_sandbox' => :'maxDiskPerSandbox',
45
48
  :'snapshot_quota' => :'snapshotQuota',
46
49
  :'max_snapshot_size' => :'maxSnapshotSize',
47
- :'volume_quota' => :'volumeQuota'
50
+ :'volume_quota' => :'volumeQuota',
51
+ :'max_concurrent_snapshot_processing' => :'maxConcurrentSnapshotProcessing'
48
52
  }
49
53
  end
50
54
 
@@ -69,7 +73,8 @@ module DaytonaApiClient
69
73
  :'max_disk_per_sandbox' => :'Float',
70
74
  :'snapshot_quota' => :'Float',
71
75
  :'max_snapshot_size' => :'Float',
72
- :'volume_quota' => :'Float'
76
+ :'volume_quota' => :'Float',
77
+ :'max_concurrent_snapshot_processing' => :'Float'
73
78
  }
74
79
  end
75
80
 
@@ -130,6 +135,10 @@ module DaytonaApiClient
130
135
  if attributes.key?(:'volume_quota')
131
136
  self.volume_quota = attributes[:'volume_quota']
132
137
  end
138
+
139
+ if attributes.key?(:'max_concurrent_snapshot_processing')
140
+ self.max_concurrent_snapshot_processing = attributes[:'max_concurrent_snapshot_processing']
141
+ end
133
142
  end
134
143
 
135
144
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -160,7 +169,8 @@ module DaytonaApiClient
160
169
  max_disk_per_sandbox == o.max_disk_per_sandbox &&
161
170
  snapshot_quota == o.snapshot_quota &&
162
171
  max_snapshot_size == o.max_snapshot_size &&
163
- volume_quota == o.volume_quota
172
+ volume_quota == o.volume_quota &&
173
+ max_concurrent_snapshot_processing == o.max_concurrent_snapshot_processing
164
174
  end
165
175
 
166
176
  # @see the `==` method
@@ -172,7 +182,7 @@ module DaytonaApiClient
172
182
  # Calculates hash code according to all attributes.
173
183
  # @return [Integer] Hash code
174
184
  def hash
175
- [total_cpu_quota, total_memory_quota, total_disk_quota, max_cpu_per_sandbox, max_memory_per_sandbox, max_disk_per_sandbox, snapshot_quota, max_snapshot_size, volume_quota].hash
185
+ [total_cpu_quota, total_memory_quota, total_disk_quota, max_cpu_per_sandbox, max_memory_per_sandbox, max_disk_per_sandbox, snapshot_quota, max_snapshot_size, volume_quota, max_concurrent_snapshot_processing].hash
176
186
  end
177
187
 
178
188
  # Builds the object from hash
@@ -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
+ # Comma-separated list of allowed domains for the sandbox
43
+ attr_accessor :domain_allow_list
44
+
42
45
  # The target (region) where the sandbox will be created
43
46
  attr_accessor :target
44
47
 
@@ -86,6 +89,7 @@ module DaytonaApiClient
86
89
  :'public' => :'public',
87
90
  :'network_block_all' => :'networkBlockAll',
88
91
  :'network_allow_list' => :'networkAllowList',
92
+ :'domain_allow_list' => :'domainAllowList',
89
93
  :'target' => :'target',
90
94
  :'cpu' => :'cpu',
91
95
  :'gpu' => :'gpu',
@@ -122,6 +126,7 @@ module DaytonaApiClient
122
126
  :'public' => :'Boolean',
123
127
  :'network_block_all' => :'Boolean',
124
128
  :'network_allow_list' => :'String',
129
+ :'domain_allow_list' => :'String',
125
130
  :'target' => :'String',
126
131
  :'cpu' => :'Integer',
127
132
  :'gpu' => :'Integer',
@@ -195,6 +200,10 @@ module DaytonaApiClient
195
200
  self.network_allow_list = attributes[:'network_allow_list']
196
201
  end
197
202
 
203
+ if attributes.key?(:'domain_allow_list')
204
+ self.domain_allow_list = attributes[:'domain_allow_list']
205
+ end
206
+
198
207
  if attributes.key?(:'target')
199
208
  self.target = attributes[:'target']
200
209
  end
@@ -276,6 +285,7 @@ module DaytonaApiClient
276
285
  public == o.public &&
277
286
  network_block_all == o.network_block_all &&
278
287
  network_allow_list == o.network_allow_list &&
288
+ domain_allow_list == o.domain_allow_list &&
279
289
  target == o.target &&
280
290
  cpu == o.cpu &&
281
291
  gpu == o.gpu &&
@@ -299,7 +309,7 @@ module DaytonaApiClient
299
309
  # Calculates hash code according to all attributes.
300
310
  # @return [Integer] Hash code
301
311
  def hash
302
- [name, snapshot, user, env, labels, public, network_block_all, network_allow_list, target, cpu, gpu, gpu_type, memory, disk, auto_stop_interval, auto_archive_interval, auto_delete_interval, volumes, build_info, linked_sandbox].hash
312
+ [name, snapshot, user, env, labels, public, network_block_all, network_allow_list, domain_allow_list, target, cpu, gpu, gpu_type, memory, disk, auto_stop_interval, auto_archive_interval, auto_delete_interval, volumes, build_info, linked_sandbox].hash
303
313
  end
304
314
 
305
315
  # 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
@@ -29,10 +29,11 @@ module DaytonaApiClient
29
29
  UPDATE_SANDBOX_NETWORK_SETTINGS = "UPDATE_SANDBOX_NETWORK_SETTINGS".freeze
30
30
  SNAPSHOT_SANDBOX = "SNAPSHOT_SANDBOX".freeze
31
31
  FORK_SANDBOX = "FORK_SANDBOX".freeze
32
+ PAUSE_SANDBOX = "PAUSE_SANDBOX".freeze
32
33
  UNKNOWN_DEFAULT_OPEN_API = "unknown_default_open_api".freeze
33
34
 
34
35
  def self.all_vars
35
- @all_vars ||= [CREATE_SANDBOX, START_SANDBOX, STOP_SANDBOX, DESTROY_SANDBOX, RESIZE_SANDBOX, CREATE_BACKUP, BUILD_SNAPSHOT, PULL_SNAPSHOT, RECOVER_SANDBOX, INSPECT_SNAPSHOT_IN_REGISTRY, REMOVE_SNAPSHOT, UPDATE_SANDBOX_NETWORK_SETTINGS, SNAPSHOT_SANDBOX, FORK_SANDBOX, UNKNOWN_DEFAULT_OPEN_API].freeze
36
+ @all_vars ||= [CREATE_SANDBOX, START_SANDBOX, STOP_SANDBOX, DESTROY_SANDBOX, RESIZE_SANDBOX, CREATE_BACKUP, BUILD_SNAPSHOT, PULL_SNAPSHOT, RECOVER_SANDBOX, INSPECT_SNAPSHOT_IN_REGISTRY, REMOVE_SNAPSHOT, UPDATE_SANDBOX_NETWORK_SETTINGS, SNAPSHOT_SANDBOX, FORK_SANDBOX, PAUSE_SANDBOX, UNKNOWN_DEFAULT_OPEN_API].freeze
36
37
  end
37
38
 
38
39
  # Builds the enum from string
@@ -27,13 +27,17 @@ module DaytonaApiClient
27
27
  # Sandbox lifecycle rate limit
28
28
  attr_accessor :sandbox_lifecycle
29
29
 
30
+ # Sandbox list rate limit
31
+ attr_accessor :sandbox_list
32
+
30
33
  # Attribute mapping from ruby-style variable name to JSON key.
31
34
  def self.attribute_map
32
35
  {
33
36
  :'failed_auth' => :'failedAuth',
34
37
  :'authenticated' => :'authenticated',
35
38
  :'sandbox_create' => :'sandboxCreate',
36
- :'sandbox_lifecycle' => :'sandboxLifecycle'
39
+ :'sandbox_lifecycle' => :'sandboxLifecycle',
40
+ :'sandbox_list' => :'sandboxList'
37
41
  }
38
42
  end
39
43
 
@@ -53,7 +57,8 @@ module DaytonaApiClient
53
57
  :'failed_auth' => :'RateLimitEntry',
54
58
  :'authenticated' => :'RateLimitEntry',
55
59
  :'sandbox_create' => :'RateLimitEntry',
56
- :'sandbox_lifecycle' => :'RateLimitEntry'
60
+ :'sandbox_lifecycle' => :'RateLimitEntry',
61
+ :'sandbox_list' => :'RateLimitEntry'
57
62
  }
58
63
  end
59
64
 
@@ -94,6 +99,10 @@ module DaytonaApiClient
94
99
  if attributes.key?(:'sandbox_lifecycle')
95
100
  self.sandbox_lifecycle = attributes[:'sandbox_lifecycle']
96
101
  end
102
+
103
+ if attributes.key?(:'sandbox_list')
104
+ self.sandbox_list = attributes[:'sandbox_list']
105
+ end
97
106
  end
98
107
 
99
108
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -119,7 +128,8 @@ module DaytonaApiClient
119
128
  failed_auth == o.failed_auth &&
120
129
  authenticated == o.authenticated &&
121
130
  sandbox_create == o.sandbox_create &&
122
- sandbox_lifecycle == o.sandbox_lifecycle
131
+ sandbox_lifecycle == o.sandbox_lifecycle &&
132
+ sandbox_list == o.sandbox_list
123
133
  end
124
134
 
125
135
  # @see the `==` method
@@ -131,7 +141,7 @@ module DaytonaApiClient
131
141
  # Calculates hash code according to all attributes.
132
142
  # @return [Integer] Hash code
133
143
  def hash
134
- [failed_auth, authenticated, sandbox_create, sandbox_lifecycle].hash
144
+ [failed_auth, authenticated, sandbox_create, sandbox_lifecycle, sandbox_list].hash
135
145
  end
136
146
 
137
147
  # Builds the object from hash
@@ -108,6 +108,9 @@ module DaytonaApiClient
108
108
  # The app version of the runner
109
109
  attr_accessor :app_version
110
110
 
111
+ # Deprecated runner class property
112
+ attr_accessor :_class
113
+
111
114
  class EnumAttributeValidator
112
115
  attr_reader :datatype
113
116
  attr_reader :allowable_values
@@ -163,7 +166,8 @@ module DaytonaApiClient
163
166
  :'version' => :'version',
164
167
  :'api_version' => :'apiVersion',
165
168
  :'runner_class' => :'runnerClass',
166
- :'app_version' => :'appVersion'
169
+ :'app_version' => :'appVersion',
170
+ :'_class' => :'class'
167
171
  }
168
172
  end
169
173
 
@@ -210,7 +214,8 @@ module DaytonaApiClient
210
214
  :'version' => :'String',
211
215
  :'api_version' => :'String',
212
216
  :'runner_class' => :'RunnerClass',
213
- :'app_version' => :'String'
217
+ :'app_version' => :'String',
218
+ :'_class' => :'String'
214
219
  }
215
220
  end
216
221
 
@@ -389,6 +394,10 @@ module DaytonaApiClient
389
394
  if attributes.key?(:'app_version')
390
395
  self.app_version = attributes[:'app_version']
391
396
  end
397
+
398
+ if attributes.key?(:'_class')
399
+ self._class = attributes[:'_class']
400
+ end
392
401
  end
393
402
 
394
403
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -651,7 +660,8 @@ module DaytonaApiClient
651
660
  version == o.version &&
652
661
  api_version == o.api_version &&
653
662
  runner_class == o.runner_class &&
654
- app_version == o.app_version
663
+ app_version == o.app_version &&
664
+ _class == o._class
655
665
  end
656
666
 
657
667
  # @see the `==` method
@@ -663,7 +673,7 @@ module DaytonaApiClient
663
673
  # Calculates hash code according to all attributes.
664
674
  # @return [Integer] Hash code
665
675
  def hash
666
- [id, domain, api_url, proxy_url, cpu, memory, disk, gpu, gpu_type, sandbox_class, current_cpu_usage_percentage, current_memory_usage_percentage, current_disk_usage_percentage, current_allocated_cpu, current_allocated_memory_gi_b, current_allocated_disk_gi_b, current_snapshot_count, current_started_sandboxes, availability_score, region, name, state, last_checked, unschedulable, tags, created_at, updated_at, version, api_version, runner_class, app_version].hash
676
+ [id, domain, api_url, proxy_url, cpu, memory, disk, gpu, gpu_type, sandbox_class, current_cpu_usage_percentage, current_memory_usage_percentage, current_disk_usage_percentage, current_allocated_cpu, current_allocated_memory_gi_b, current_allocated_disk_gi_b, current_snapshot_count, current_started_sandboxes, availability_score, region, name, state, last_checked, unschedulable, tags, created_at, updated_at, version, api_version, runner_class, app_version, _class].hash
667
677
  end
668
678
 
669
679
  # Builds the object from hash
@@ -108,6 +108,9 @@ module DaytonaApiClient
108
108
  # The app version of the runner
109
109
  attr_accessor :app_version
110
110
 
111
+ # Deprecated runner class property
112
+ attr_accessor :_class
113
+
111
114
  # The API key for the runner
112
115
  attr_accessor :api_key
113
116
 
@@ -170,6 +173,7 @@ module DaytonaApiClient
170
173
  :'api_version' => :'apiVersion',
171
174
  :'runner_class' => :'runnerClass',
172
175
  :'app_version' => :'appVersion',
176
+ :'_class' => :'class',
173
177
  :'api_key' => :'apiKey',
174
178
  :'region_type' => :'regionType'
175
179
  }
@@ -219,6 +223,7 @@ module DaytonaApiClient
219
223
  :'api_version' => :'String',
220
224
  :'runner_class' => :'RunnerClass',
221
225
  :'app_version' => :'String',
226
+ :'_class' => :'String',
222
227
  :'api_key' => :'String',
223
228
  :'region_type' => :'RegionType'
224
229
  }
@@ -400,6 +405,10 @@ module DaytonaApiClient
400
405
  self.app_version = attributes[:'app_version']
401
406
  end
402
407
 
408
+ if attributes.key?(:'_class')
409
+ self._class = attributes[:'_class']
410
+ end
411
+
403
412
  if attributes.key?(:'api_key')
404
413
  self.api_key = attributes[:'api_key']
405
414
  else
@@ -687,6 +696,7 @@ module DaytonaApiClient
687
696
  api_version == o.api_version &&
688
697
  runner_class == o.runner_class &&
689
698
  app_version == o.app_version &&
699
+ _class == o._class &&
690
700
  api_key == o.api_key &&
691
701
  region_type == o.region_type
692
702
  end
@@ -700,7 +710,7 @@ module DaytonaApiClient
700
710
  # Calculates hash code according to all attributes.
701
711
  # @return [Integer] Hash code
702
712
  def hash
703
- [id, domain, api_url, proxy_url, cpu, memory, disk, gpu, gpu_type, sandbox_class, current_cpu_usage_percentage, current_memory_usage_percentage, current_disk_usage_percentage, current_allocated_cpu, current_allocated_memory_gi_b, current_allocated_disk_gi_b, current_snapshot_count, current_started_sandboxes, availability_score, region, name, state, last_checked, unschedulable, tags, created_at, updated_at, version, api_version, runner_class, app_version, api_key, region_type].hash
713
+ [id, domain, api_url, proxy_url, cpu, memory, disk, gpu, gpu_type, sandbox_class, current_cpu_usage_percentage, current_memory_usage_percentage, current_disk_usage_percentage, current_allocated_cpu, current_allocated_memory_gi_b, current_allocated_disk_gi_b, current_snapshot_count, current_started_sandboxes, availability_score, region, name, state, last_checked, unschedulable, tags, created_at, updated_at, version, api_version, runner_class, app_version, _class, api_key, region_type].hash
704
714
  end
705
715
 
706
716
  # Builds the object from hash
@@ -45,6 +45,9 @@ module DaytonaApiClient
45
45
  # Comma-separated list of allowed CIDR network addresses for the sandbox
46
46
  attr_accessor :network_allow_list
47
47
 
48
+ # Comma-separated list of allowed domains for the sandbox
49
+ attr_accessor :domain_allow_list
50
+
48
51
  # The target environment for the sandbox
49
52
  attr_accessor :target
50
53
 
@@ -155,6 +158,7 @@ module DaytonaApiClient
155
158
  :'public' => :'public',
156
159
  :'network_block_all' => :'networkBlockAll',
157
160
  :'network_allow_list' => :'networkAllowList',
161
+ :'domain_allow_list' => :'domainAllowList',
158
162
  :'target' => :'target',
159
163
  :'cpu' => :'cpu',
160
164
  :'gpu' => :'gpu',
@@ -206,6 +210,7 @@ module DaytonaApiClient
206
210
  :'public' => :'Boolean',
207
211
  :'network_block_all' => :'Boolean',
208
212
  :'network_allow_list' => :'String',
213
+ :'domain_allow_list' => :'String',
209
214
  :'target' => :'String',
210
215
  :'cpu' => :'Float',
211
216
  :'gpu' => :'Float',
@@ -316,6 +321,10 @@ module DaytonaApiClient
316
321
  self.network_allow_list = attributes[:'network_allow_list']
317
322
  end
318
323
 
324
+ if attributes.key?(:'domain_allow_list')
325
+ self.domain_allow_list = attributes[:'domain_allow_list']
326
+ end
327
+
319
328
  if attributes.key?(:'target')
320
329
  self.target = attributes[:'target']
321
330
  else
@@ -695,6 +704,7 @@ module DaytonaApiClient
695
704
  public == o.public &&
696
705
  network_block_all == o.network_block_all &&
697
706
  network_allow_list == o.network_allow_list &&
707
+ domain_allow_list == o.domain_allow_list &&
698
708
  target == o.target &&
699
709
  cpu == o.cpu &&
700
710
  gpu == o.gpu &&
@@ -731,7 +741,7 @@ module DaytonaApiClient
731
741
  # Calculates hash code according to all attributes.
732
742
  # @return [Integer] Hash code
733
743
  def hash
734
- [id, organization_id, name, snapshot, user, env, labels, public, network_block_all, network_allow_list, target, cpu, gpu, gpu_type, 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, daemon_version, runner_id, linked_sandbox_id, toolbox_proxy_url].hash
744
+ [id, organization_id, name, snapshot, user, env, labels, public, network_block_all, network_allow_list, domain_allow_list, target, cpu, gpu, gpu_type, 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, daemon_version, runner_id, linked_sandbox_id, toolbox_proxy_url].hash
735
745
  end
736
746
 
737
747
  # Builds the object from hash
@@ -20,10 +20,11 @@ module DaytonaApiClient
20
20
  STOPPED = "stopped".freeze
21
21
  RESIZED = "resized".freeze
22
22
  ARCHIVED = "archived".freeze
23
+ PAUSED = "paused".freeze
23
24
  UNKNOWN_DEFAULT_OPEN_API = "unknown_default_open_api".freeze
24
25
 
25
26
  def self.all_vars
26
- @all_vars ||= [DESTROYED, STARTED, STOPPED, RESIZED, ARCHIVED, UNKNOWN_DEFAULT_OPEN_API].freeze
27
+ @all_vars ||= [DESTROYED, STARTED, STOPPED, RESIZED, ARCHIVED, PAUSED, UNKNOWN_DEFAULT_OPEN_API].freeze
27
28
  end
28
29
 
29
30
  # Builds the enum from string
@@ -34,10 +34,13 @@ module DaytonaApiClient
34
34
  RESIZING = "resizing".freeze
35
35
  SNAPSHOTTING = "snapshotting".freeze
36
36
  FORKING = "forking".freeze
37
+ PAUSING = "pausing".freeze
38
+ PAUSED = "paused".freeze
39
+ RESUMING = "resuming".freeze
37
40
  UNKNOWN_DEFAULT_OPEN_API = "unknown_default_open_api".freeze
38
41
 
39
42
  def self.all_vars
40
- @all_vars ||= [CREATING, RESTORING, DESTROYED, DESTROYING, STARTED, STOPPED, STARTING, STOPPING, ERROR, BUILD_FAILED, PENDING_BUILD, BUILDING_SNAPSHOT, UNKNOWN, PULLING_SNAPSHOT, ARCHIVED, ARCHIVING, RESIZING, SNAPSHOTTING, FORKING, UNKNOWN_DEFAULT_OPEN_API].freeze
43
+ @all_vars ||= [CREATING, RESTORING, DESTROYED, DESTROYING, STARTED, STOPPED, STARTING, STOPPING, ERROR, BUILD_FAILED, PENDING_BUILD, BUILDING_SNAPSHOT, UNKNOWN, PULLING_SNAPSHOT, ARCHIVED, ARCHIVING, RESIZING, SNAPSHOTTING, FORKING, PAUSING, PAUSED, RESUMING, UNKNOWN_DEFAULT_OPEN_API].freeze
41
44
  end
42
45
 
43
46
  # Builds the enum from string
@@ -42,6 +42,9 @@ module DaytonaApiClient
42
42
  # Time in minutes before an unused snapshot is deactivated
43
43
  attr_accessor :snapshot_deactivation_timeout_minutes
44
44
 
45
+ # Maximum number of snapshots an organization can process (building or pulling) concurrently. Excess are queued. <= 0 means unlimited.
46
+ attr_accessor :max_concurrent_snapshot_processing
47
+
45
48
  # Attribute mapping from ruby-style variable name to JSON key.
46
49
  def self.attribute_map
47
50
  {
@@ -57,7 +60,8 @@ module DaytonaApiClient
57
60
  :'authenticated_rate_limit_ttl_seconds' => :'authenticatedRateLimitTtlSeconds',
58
61
  :'sandbox_create_rate_limit_ttl_seconds' => :'sandboxCreateRateLimitTtlSeconds',
59
62
  :'sandbox_lifecycle_rate_limit_ttl_seconds' => :'sandboxLifecycleRateLimitTtlSeconds',
60
- :'snapshot_deactivation_timeout_minutes' => :'snapshotDeactivationTimeoutMinutes'
63
+ :'snapshot_deactivation_timeout_minutes' => :'snapshotDeactivationTimeoutMinutes',
64
+ :'max_concurrent_snapshot_processing' => :'maxConcurrentSnapshotProcessing'
61
65
  }
62
66
  end
63
67
 
@@ -86,7 +90,8 @@ module DaytonaApiClient
86
90
  :'authenticated_rate_limit_ttl_seconds' => :'Float',
87
91
  :'sandbox_create_rate_limit_ttl_seconds' => :'Float',
88
92
  :'sandbox_lifecycle_rate_limit_ttl_seconds' => :'Float',
89
- :'snapshot_deactivation_timeout_minutes' => :'Float'
93
+ :'snapshot_deactivation_timeout_minutes' => :'Float',
94
+ :'max_concurrent_snapshot_processing' => :'Float'
90
95
  }
91
96
  end
92
97
 
@@ -105,7 +110,8 @@ module DaytonaApiClient
105
110
  :'authenticated_rate_limit_ttl_seconds',
106
111
  :'sandbox_create_rate_limit_ttl_seconds',
107
112
  :'sandbox_lifecycle_rate_limit_ttl_seconds',
108
- :'snapshot_deactivation_timeout_minutes'
113
+ :'snapshot_deactivation_timeout_minutes',
114
+ :'max_concurrent_snapshot_processing'
109
115
  ])
110
116
  end
111
117
 
@@ -202,6 +208,12 @@ module DaytonaApiClient
202
208
  else
203
209
  self.snapshot_deactivation_timeout_minutes = nil
204
210
  end
211
+
212
+ if attributes.key?(:'max_concurrent_snapshot_processing')
213
+ self.max_concurrent_snapshot_processing = attributes[:'max_concurrent_snapshot_processing']
214
+ else
215
+ self.max_concurrent_snapshot_processing = nil
216
+ end
205
217
  end
206
218
 
207
219
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -236,7 +248,8 @@ module DaytonaApiClient
236
248
  authenticated_rate_limit_ttl_seconds == o.authenticated_rate_limit_ttl_seconds &&
237
249
  sandbox_create_rate_limit_ttl_seconds == o.sandbox_create_rate_limit_ttl_seconds &&
238
250
  sandbox_lifecycle_rate_limit_ttl_seconds == o.sandbox_lifecycle_rate_limit_ttl_seconds &&
239
- snapshot_deactivation_timeout_minutes == o.snapshot_deactivation_timeout_minutes
251
+ snapshot_deactivation_timeout_minutes == o.snapshot_deactivation_timeout_minutes &&
252
+ max_concurrent_snapshot_processing == o.max_concurrent_snapshot_processing
240
253
  end
241
254
 
242
255
  # @see the `==` method
@@ -248,7 +261,7 @@ module DaytonaApiClient
248
261
  # Calculates hash code according to all attributes.
249
262
  # @return [Integer] Hash code
250
263
  def hash
251
- [max_cpu_per_sandbox, max_memory_per_sandbox, max_disk_per_sandbox, snapshot_quota, max_snapshot_size, volume_quota, authenticated_rate_limit, sandbox_create_rate_limit, sandbox_lifecycle_rate_limit, authenticated_rate_limit_ttl_seconds, sandbox_create_rate_limit_ttl_seconds, sandbox_lifecycle_rate_limit_ttl_seconds, snapshot_deactivation_timeout_minutes].hash
264
+ [max_cpu_per_sandbox, max_memory_per_sandbox, max_disk_per_sandbox, snapshot_quota, max_snapshot_size, volume_quota, authenticated_rate_limit, sandbox_create_rate_limit, sandbox_lifecycle_rate_limit, authenticated_rate_limit_ttl_seconds, sandbox_create_rate_limit_ttl_seconds, sandbox_lifecycle_rate_limit_ttl_seconds, snapshot_deactivation_timeout_minutes, max_concurrent_snapshot_processing].hash
252
265
  end
253
266
 
254
267
  # Builds the object from hash
@@ -21,11 +21,15 @@ module DaytonaApiClient
21
21
  # Comma-separated list of allowed CIDR network addresses for the sandbox
22
22
  attr_accessor :network_allow_list
23
23
 
24
+ # Comma-separated list of allowed domains for the sandbox
25
+ attr_accessor :domain_allow_list
26
+
24
27
  # Attribute mapping from ruby-style variable name to JSON key.
25
28
  def self.attribute_map
26
29
  {
27
30
  :'network_block_all' => :'networkBlockAll',
28
- :'network_allow_list' => :'networkAllowList'
31
+ :'network_allow_list' => :'networkAllowList',
32
+ :'domain_allow_list' => :'domainAllowList'
29
33
  }
30
34
  end
31
35
 
@@ -43,7 +47,8 @@ module DaytonaApiClient
43
47
  def self.openapi_types
44
48
  {
45
49
  :'network_block_all' => :'Boolean',
46
- :'network_allow_list' => :'String'
50
+ :'network_allow_list' => :'String',
51
+ :'domain_allow_list' => :'String'
47
52
  }
48
53
  end
49
54
 
@@ -76,6 +81,10 @@ module DaytonaApiClient
76
81
  if attributes.key?(:'network_allow_list')
77
82
  self.network_allow_list = attributes[:'network_allow_list']
78
83
  end
84
+
85
+ if attributes.key?(:'domain_allow_list')
86
+ self.domain_allow_list = attributes[:'domain_allow_list']
87
+ end
79
88
  end
80
89
 
81
90
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -99,7 +108,8 @@ module DaytonaApiClient
99
108
  return true if self.equal?(o)
100
109
  self.class == o.class &&
101
110
  network_block_all == o.network_block_all &&
102
- network_allow_list == o.network_allow_list
111
+ network_allow_list == o.network_allow_list &&
112
+ domain_allow_list == o.domain_allow_list
103
113
  end
104
114
 
105
115
  # @see the `==` method
@@ -111,7 +121,7 @@ module DaytonaApiClient
111
121
  # Calculates hash code according to all attributes.
112
122
  # @return [Integer] Hash code
113
123
  def hash
114
- [network_block_all, network_allow_list].hash
124
+ [network_block_all, network_allow_list, domain_allow_list].hash
115
125
  end
116
126
 
117
127
  # Builds the object from hash
@@ -128,7 +128,7 @@ module DaytonaApiClient
128
128
  def valid?
129
129
  warn '[DEPRECATED] the `valid?` method is obsolete'
130
130
  return false if @state.nil?
131
- state_validator = EnumAttributeValidator.new('String', ["creating", "restoring", "destroyed", "destroying", "started", "stopped", "starting", "stopping", "error", "build_failed", "pending_build", "building_snapshot", "unknown", "pulling_snapshot", "archived", "archiving", "resizing", "snapshotting", "forking", "unknown_default_open_api"])
131
+ state_validator = EnumAttributeValidator.new('String', ["creating", "restoring", "destroyed", "destroying", "started", "stopped", "starting", "stopping", "error", "build_failed", "pending_build", "building_snapshot", "unknown", "pulling_snapshot", "archived", "archiving", "resizing", "snapshotting", "forking", "pausing", "paused", "resuming", "unknown_default_open_api"])
132
132
  return false unless state_validator.valid?(@state)
133
133
  true
134
134
  end
@@ -136,7 +136,7 @@ module DaytonaApiClient
136
136
  # Custom attribute writer method checking allowed values (enum).
137
137
  # @param [Object] state Object to be assigned
138
138
  def state=(state)
139
- validator = EnumAttributeValidator.new('String', ["creating", "restoring", "destroyed", "destroying", "started", "stopped", "starting", "stopping", "error", "build_failed", "pending_build", "building_snapshot", "unknown", "pulling_snapshot", "archived", "archiving", "resizing", "snapshotting", "forking", "unknown_default_open_api"])
139
+ validator = EnumAttributeValidator.new('String', ["creating", "restoring", "destroyed", "destroying", "started", "stopped", "starting", "stopping", "error", "build_failed", "pending_build", "building_snapshot", "unknown", "pulling_snapshot", "archived", "archiving", "resizing", "snapshotting", "forking", "pausing", "paused", "resuming", "unknown_default_open_api"])
140
140
  unless validator.valid?(state)
141
141
  fail ArgumentError, "invalid value for \"state\", must be one of #{validator.allowable_values}."
142
142
  end
@@ -11,5 +11,5 @@ Generator version: 7.21.0
11
11
  =end
12
12
 
13
13
  module DaytonaApiClient
14
- VERSION = '0.187.0'
14
+ VERSION = '0.190.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.187.0
4
+ version: 0.190.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - daytonaio