daytona_api_client 0.195.0 → 0.197.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.
@@ -0,0 +1,165 @@
1
+ =begin
2
+ #Daytona
3
+
4
+ #Daytona AI platform API Docs
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: support@daytona.com
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.21.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module DaytonaApiClient
17
+ class PreviewWarning < ApiModelBase
18
+ # Whether the preview warning page is enabled for the sandbox
19
+ attr_accessor :enabled
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'enabled' => :'enabled'
25
+ }
26
+ end
27
+
28
+ # Returns attribute mapping this model knows about
29
+ def self.acceptable_attribute_map
30
+ attribute_map
31
+ end
32
+
33
+ # Returns all the JSON keys this model knows about
34
+ def self.acceptable_attributes
35
+ acceptable_attribute_map.values
36
+ end
37
+
38
+ # Attribute type mapping.
39
+ def self.openapi_types
40
+ {
41
+ :'enabled' => :'Boolean'
42
+ }
43
+ end
44
+
45
+ # List of attributes with nullable: true
46
+ def self.openapi_nullable
47
+ Set.new([
48
+ ])
49
+ end
50
+
51
+ # Initializes the object
52
+ # @param [Hash] attributes Model attributes in the form of hash
53
+ def initialize(attributes = {})
54
+ if (!attributes.is_a?(Hash))
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::PreviewWarning` initialize method"
56
+ end
57
+
58
+ # check to see if the attribute exists and convert string to symbol for hash key
59
+ acceptable_attribute_map = self.class.acceptable_attribute_map
60
+ attributes = attributes.each_with_object({}) { |(k, v), h|
61
+ if (!acceptable_attribute_map.key?(k.to_sym))
62
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::PreviewWarning`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
63
+ end
64
+ h[k.to_sym] = v
65
+ }
66
+
67
+ if attributes.key?(:'enabled')
68
+ self.enabled = attributes[:'enabled']
69
+ else
70
+ self.enabled = nil
71
+ end
72
+ end
73
+
74
+ # Show invalid properties with the reasons. Usually used together with valid?
75
+ # @return Array for valid properties with the reasons
76
+ def list_invalid_properties
77
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
78
+ invalid_properties = Array.new
79
+ if @enabled.nil?
80
+ invalid_properties.push('invalid value for "enabled", enabled cannot be nil.')
81
+ end
82
+
83
+ invalid_properties
84
+ end
85
+
86
+ # Check to see if the all the properties in the model are valid
87
+ # @return true if the model is valid
88
+ def valid?
89
+ warn '[DEPRECATED] the `valid?` method is obsolete'
90
+ return false if @enabled.nil?
91
+ true
92
+ end
93
+
94
+ # Custom attribute writer method with validation
95
+ # @param [Object] enabled Value to be assigned
96
+ def enabled=(enabled)
97
+ if enabled.nil?
98
+ fail ArgumentError, 'enabled cannot be nil'
99
+ end
100
+
101
+ @enabled = enabled
102
+ end
103
+
104
+ # Checks equality by comparing each attribute.
105
+ # @param [Object] Object to be compared
106
+ def ==(o)
107
+ return true if self.equal?(o)
108
+ self.class == o.class &&
109
+ enabled == o.enabled
110
+ end
111
+
112
+ # @see the `==` method
113
+ # @param [Object] Object to be compared
114
+ def eql?(o)
115
+ self == o
116
+ end
117
+
118
+ # Calculates hash code according to all attributes.
119
+ # @return [Integer] Hash code
120
+ def hash
121
+ [enabled].hash
122
+ end
123
+
124
+ # Builds the object from hash
125
+ # @param [Hash] attributes Model attributes in the form of hash
126
+ # @return [Object] Returns the model itself
127
+ def self.build_from_hash(attributes)
128
+ return nil unless attributes.is_a?(Hash)
129
+ attributes = attributes.transform_keys(&:to_sym)
130
+ transformed_hash = {}
131
+ openapi_types.each_pair do |key, type|
132
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
133
+ transformed_hash["#{key}"] = nil
134
+ elsif type =~ /\AArray<(.*)>/i
135
+ # check to ensure the input is an array given that the attribute
136
+ # is documented as an array but the input is not
137
+ if attributes[attribute_map[key]].is_a?(Array)
138
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
139
+ end
140
+ elsif !attributes[attribute_map[key]].nil?
141
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
142
+ end
143
+ end
144
+ new(transformed_hash)
145
+ end
146
+
147
+ # Returns the object in the form of hash
148
+ # @return [Hash] Returns the object in the form of hash
149
+ def to_hash
150
+ hash = {}
151
+ self.class.attribute_map.each_pair do |attr, param|
152
+ value = self.send(attr)
153
+ if value.nil?
154
+ is_nullable = self.class.openapi_nullable.include?(attr)
155
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
156
+ end
157
+
158
+ hash[param] = _to_hash(value)
159
+ end
160
+ hash
161
+ end
162
+
163
+ end
164
+
165
+ end
@@ -87,6 +87,9 @@ module DaytonaApiClient
87
87
  # Auto-stop interval in minutes (0 means disabled)
88
88
  attr_accessor :auto_stop_interval
89
89
 
90
+ # Auto-pause interval in minutes (0 means disabled)
91
+ attr_accessor :auto_pause_interval
92
+
90
93
  # Auto-archive interval in minutes
91
94
  attr_accessor :auto_archive_interval
92
95
 
@@ -172,6 +175,7 @@ module DaytonaApiClient
172
175
  :'backup_state' => :'backupState',
173
176
  :'backup_created_at' => :'backupCreatedAt',
174
177
  :'auto_stop_interval' => :'autoStopInterval',
178
+ :'auto_pause_interval' => :'autoPauseInterval',
175
179
  :'auto_archive_interval' => :'autoArchiveInterval',
176
180
  :'auto_delete_interval' => :'autoDeleteInterval',
177
181
  :'volumes' => :'volumes',
@@ -224,6 +228,7 @@ module DaytonaApiClient
224
228
  :'backup_state' => :'String',
225
229
  :'backup_created_at' => :'String',
226
230
  :'auto_stop_interval' => :'Float',
231
+ :'auto_pause_interval' => :'Float',
227
232
  :'auto_archive_interval' => :'Float',
228
233
  :'auto_delete_interval' => :'Float',
229
234
  :'volumes' => :'Array<SandboxVolume>',
@@ -387,6 +392,10 @@ module DaytonaApiClient
387
392
  self.auto_stop_interval = attributes[:'auto_stop_interval']
388
393
  end
389
394
 
395
+ if attributes.key?(:'auto_pause_interval')
396
+ self.auto_pause_interval = attributes[:'auto_pause_interval']
397
+ end
398
+
390
399
  if attributes.key?(:'auto_archive_interval')
391
400
  self.auto_archive_interval = attributes[:'auto_archive_interval']
392
401
  end
@@ -718,6 +727,7 @@ module DaytonaApiClient
718
727
  backup_state == o.backup_state &&
719
728
  backup_created_at == o.backup_created_at &&
720
729
  auto_stop_interval == o.auto_stop_interval &&
730
+ auto_pause_interval == o.auto_pause_interval &&
721
731
  auto_archive_interval == o.auto_archive_interval &&
722
732
  auto_delete_interval == o.auto_delete_interval &&
723
733
  volumes == o.volumes &&
@@ -741,7 +751,7 @@ module DaytonaApiClient
741
751
  # Calculates hash code according to all attributes.
742
752
  # @return [Integer] Hash code
743
753
  def 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
754
+ [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_pause_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
745
755
  end
746
756
 
747
757
  # Builds the object from hash
@@ -78,6 +78,9 @@ module DaytonaApiClient
78
78
  # Auto-stop interval in minutes (0 means disabled)
79
79
  attr_accessor :auto_stop_interval
80
80
 
81
+ # Auto-pause interval in minutes (0 means disabled)
82
+ attr_accessor :auto_pause_interval
83
+
81
84
  # Auto-archive interval in minutes
82
85
  attr_accessor :auto_archive_interval
83
86
 
@@ -145,6 +148,7 @@ module DaytonaApiClient
145
148
  :'labels' => :'labels',
146
149
  :'backup_state' => :'backupState',
147
150
  :'auto_stop_interval' => :'autoStopInterval',
151
+ :'auto_pause_interval' => :'autoPauseInterval',
148
152
  :'auto_archive_interval' => :'autoArchiveInterval',
149
153
  :'auto_delete_interval' => :'autoDeleteInterval',
150
154
  :'created_at' => :'createdAt',
@@ -189,6 +193,7 @@ module DaytonaApiClient
189
193
  :'labels' => :'Hash<String, String>',
190
194
  :'backup_state' => :'String',
191
195
  :'auto_stop_interval' => :'Float',
196
+ :'auto_pause_interval' => :'Float',
192
197
  :'auto_archive_interval' => :'Float',
193
198
  :'auto_delete_interval' => :'Float',
194
199
  :'created_at' => :'String',
@@ -329,6 +334,10 @@ module DaytonaApiClient
329
334
  self.auto_stop_interval = attributes[:'auto_stop_interval']
330
335
  end
331
336
 
337
+ if attributes.key?(:'auto_pause_interval')
338
+ self.auto_pause_interval = attributes[:'auto_pause_interval']
339
+ end
340
+
332
341
  if attributes.key?(:'auto_archive_interval')
333
342
  self.auto_archive_interval = attributes[:'auto_archive_interval']
334
343
  end
@@ -593,6 +602,7 @@ module DaytonaApiClient
593
602
  labels == o.labels &&
594
603
  backup_state == o.backup_state &&
595
604
  auto_stop_interval == o.auto_stop_interval &&
605
+ auto_pause_interval == o.auto_pause_interval &&
596
606
  auto_archive_interval == o.auto_archive_interval &&
597
607
  auto_delete_interval == o.auto_delete_interval &&
598
608
  created_at == o.created_at &&
@@ -611,7 +621,7 @@ module DaytonaApiClient
611
621
  # Calculates hash code according to all attributes.
612
622
  # @return [Integer] Hash code
613
623
  def hash
614
- [id, organization_id, name, target, runner_id, sandbox_class, state, desired_state, snapshot, user, error_reason, recoverable, public, cpu, gpu, gpu_type, memory, disk, labels, backup_state, auto_stop_interval, auto_archive_interval, auto_delete_interval, created_at, updated_at, last_activity_at, daemon_version, toolbox_proxy_url].hash
624
+ [id, organization_id, name, target, runner_id, sandbox_class, state, desired_state, snapshot, user, error_reason, recoverable, public, cpu, gpu, gpu_type, memory, disk, labels, backup_state, auto_stop_interval, auto_pause_interval, auto_archive_interval, auto_delete_interval, created_at, updated_at, last_activity_at, daemon_version, toolbox_proxy_url].hash
615
625
  end
616
626
 
617
627
  # Builds the object from hash
@@ -0,0 +1,167 @@
1
+ =begin
2
+ #Daytona
3
+
4
+ #Daytona AI platform API Docs
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: support@daytona.com
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.21.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module DaytonaApiClient
17
+ class UpdateSandboxSecrets < ApiModelBase
18
+ # Secrets to mount in this sandbox, replacing the previously mounted set. Each entry maps an env var name to a vault secret name. Pass an empty array to detach all secrets.
19
+ attr_accessor :secrets
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'secrets' => :'secrets'
25
+ }
26
+ end
27
+
28
+ # Returns attribute mapping this model knows about
29
+ def self.acceptable_attribute_map
30
+ attribute_map
31
+ end
32
+
33
+ # Returns all the JSON keys this model knows about
34
+ def self.acceptable_attributes
35
+ acceptable_attribute_map.values
36
+ end
37
+
38
+ # Attribute type mapping.
39
+ def self.openapi_types
40
+ {
41
+ :'secrets' => :'Array<Hash<String, String>>'
42
+ }
43
+ end
44
+
45
+ # List of attributes with nullable: true
46
+ def self.openapi_nullable
47
+ Set.new([
48
+ ])
49
+ end
50
+
51
+ # Initializes the object
52
+ # @param [Hash] attributes Model attributes in the form of hash
53
+ def initialize(attributes = {})
54
+ if (!attributes.is_a?(Hash))
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::UpdateSandboxSecrets` initialize method"
56
+ end
57
+
58
+ # check to see if the attribute exists and convert string to symbol for hash key
59
+ acceptable_attribute_map = self.class.acceptable_attribute_map
60
+ attributes = attributes.each_with_object({}) { |(k, v), h|
61
+ if (!acceptable_attribute_map.key?(k.to_sym))
62
+ fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::UpdateSandboxSecrets`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
63
+ end
64
+ h[k.to_sym] = v
65
+ }
66
+
67
+ if attributes.key?(:'secrets')
68
+ if (value = attributes[:'secrets']).is_a?(Array)
69
+ self.secrets = value
70
+ end
71
+ else
72
+ self.secrets = nil
73
+ end
74
+ end
75
+
76
+ # Show invalid properties with the reasons. Usually used together with valid?
77
+ # @return Array for valid properties with the reasons
78
+ def list_invalid_properties
79
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
80
+ invalid_properties = Array.new
81
+ if @secrets.nil?
82
+ invalid_properties.push('invalid value for "secrets", secrets cannot be nil.')
83
+ end
84
+
85
+ invalid_properties
86
+ end
87
+
88
+ # Check to see if the all the properties in the model are valid
89
+ # @return true if the model is valid
90
+ def valid?
91
+ warn '[DEPRECATED] the `valid?` method is obsolete'
92
+ return false if @secrets.nil?
93
+ true
94
+ end
95
+
96
+ # Custom attribute writer method with validation
97
+ # @param [Object] secrets Value to be assigned
98
+ def secrets=(secrets)
99
+ if secrets.nil?
100
+ fail ArgumentError, 'secrets cannot be nil'
101
+ end
102
+
103
+ @secrets = secrets
104
+ end
105
+
106
+ # Checks equality by comparing each attribute.
107
+ # @param [Object] Object to be compared
108
+ def ==(o)
109
+ return true if self.equal?(o)
110
+ self.class == o.class &&
111
+ secrets == o.secrets
112
+ end
113
+
114
+ # @see the `==` method
115
+ # @param [Object] Object to be compared
116
+ def eql?(o)
117
+ self == o
118
+ end
119
+
120
+ # Calculates hash code according to all attributes.
121
+ # @return [Integer] Hash code
122
+ def hash
123
+ [secrets].hash
124
+ end
125
+
126
+ # Builds the object from hash
127
+ # @param [Hash] attributes Model attributes in the form of hash
128
+ # @return [Object] Returns the model itself
129
+ def self.build_from_hash(attributes)
130
+ return nil unless attributes.is_a?(Hash)
131
+ attributes = attributes.transform_keys(&:to_sym)
132
+ transformed_hash = {}
133
+ openapi_types.each_pair do |key, type|
134
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
135
+ transformed_hash["#{key}"] = nil
136
+ elsif type =~ /\AArray<(.*)>/i
137
+ # check to ensure the input is an array given that the attribute
138
+ # is documented as an array but the input is not
139
+ if attributes[attribute_map[key]].is_a?(Array)
140
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
141
+ end
142
+ elsif !attributes[attribute_map[key]].nil?
143
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
144
+ end
145
+ end
146
+ new(transformed_hash)
147
+ end
148
+
149
+ # Returns the object in the form of hash
150
+ # @return [Hash] Returns the object in the form of hash
151
+ def to_hash
152
+ hash = {}
153
+ self.class.attribute_map.each_pair do |attr, param|
154
+ value = self.send(attr)
155
+ if value.nil?
156
+ is_nullable = self.class.openapi_nullable.include?(attr)
157
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
158
+ end
159
+
160
+ hash[param] = _to_hash(value)
161
+ end
162
+ hash
163
+ end
164
+
165
+ end
166
+
167
+ end
@@ -11,5 +11,5 @@ Generator version: 7.21.0
11
11
  =end
12
12
 
13
13
  module DaytonaApiClient
14
- VERSION = '0.195.0'
14
+ VERSION = '0.197.0'
15
15
  end
@@ -26,6 +26,7 @@ require 'daytona_api_client/models/announcement'
26
26
  require 'daytona_api_client/models/api_key_list'
27
27
  require 'daytona_api_client/models/api_key_response'
28
28
  require 'daytona_api_client/models/audit_log'
29
+ require 'daytona_api_client/models/available_sandbox_class'
29
30
  require 'daytona_api_client/models/build_info'
30
31
  require 'daytona_api_client/models/command'
31
32
  require 'daytona_api_client/models/completion_context'
@@ -111,6 +112,7 @@ require 'daytona_api_client/models/mouse_scroll_response'
111
112
  require 'daytona_api_client/models/oidc_config'
112
113
  require 'daytona_api_client/models/organization'
113
114
  require 'daytona_api_client/models/organization_invitation'
115
+ require 'daytona_api_client/models/organization_preview_warning'
114
116
  require 'daytona_api_client/models/organization_role'
115
117
  require 'daytona_api_client/models/organization_sandbox_default_limited_network_egress'
116
118
  require 'daytona_api_client/models/organization_suspension'
@@ -127,6 +129,7 @@ require 'daytona_api_client/models/poll_jobs_response'
127
129
  require 'daytona_api_client/models/port_preview_url'
128
130
  require 'daytona_api_client/models/position'
129
131
  require 'daytona_api_client/models/posthog_config'
132
+ require 'daytona_api_client/models/preview_warning'
130
133
  require 'daytona_api_client/models/process_errors_response'
131
134
  require 'daytona_api_client/models/process_logs_response'
132
135
  require 'daytona_api_client/models/process_restart_response'
@@ -197,6 +200,7 @@ require 'daytona_api_client/models/update_organization_region_quota'
197
200
  require 'daytona_api_client/models/update_organization_role'
198
201
  require 'daytona_api_client/models/update_region'
199
202
  require 'daytona_api_client/models/update_sandbox_network_settings'
203
+ require 'daytona_api_client/models/update_sandbox_secrets'
200
204
  require 'daytona_api_client/models/update_sandbox_state_dto'
201
205
  require 'daytona_api_client/models/update_secret'
202
206
  require 'daytona_api_client/models/url'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daytona_api_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.195.0
4
+ version: 0.197.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - daytona
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 1980-01-01 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: typhoeus
@@ -97,6 +97,7 @@ files:
97
97
  - lib/daytona_api_client/models/api_key_list.rb
98
98
  - lib/daytona_api_client/models/api_key_response.rb
99
99
  - lib/daytona_api_client/models/audit_log.rb
100
+ - lib/daytona_api_client/models/available_sandbox_class.rb
100
101
  - lib/daytona_api_client/models/build_info.rb
101
102
  - lib/daytona_api_client/models/command.rb
102
103
  - lib/daytona_api_client/models/completion_context.rb
@@ -182,6 +183,7 @@ files:
182
183
  - lib/daytona_api_client/models/oidc_config.rb
183
184
  - lib/daytona_api_client/models/organization.rb
184
185
  - lib/daytona_api_client/models/organization_invitation.rb
186
+ - lib/daytona_api_client/models/organization_preview_warning.rb
185
187
  - lib/daytona_api_client/models/organization_role.rb
186
188
  - lib/daytona_api_client/models/organization_sandbox_default_limited_network_egress.rb
187
189
  - lib/daytona_api_client/models/organization_suspension.rb
@@ -198,6 +200,7 @@ files:
198
200
  - lib/daytona_api_client/models/port_preview_url.rb
199
201
  - lib/daytona_api_client/models/position.rb
200
202
  - lib/daytona_api_client/models/posthog_config.rb
203
+ - lib/daytona_api_client/models/preview_warning.rb
201
204
  - lib/daytona_api_client/models/process_errors_response.rb
202
205
  - lib/daytona_api_client/models/process_logs_response.rb
203
206
  - lib/daytona_api_client/models/process_restart_response.rb
@@ -268,6 +271,7 @@ files:
268
271
  - lib/daytona_api_client/models/update_organization_role.rb
269
272
  - lib/daytona_api_client/models/update_region.rb
270
273
  - lib/daytona_api_client/models/update_sandbox_network_settings.rb
274
+ - lib/daytona_api_client/models/update_sandbox_secrets.rb
271
275
  - lib/daytona_api_client/models/update_sandbox_state_dto.rb
272
276
  - lib/daytona_api_client/models/update_secret.rb
273
277
  - lib/daytona_api_client/models/url.rb
@@ -301,7 +305,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
301
305
  - !ruby/object:Gem::Version
302
306
  version: '0'
303
307
  requirements: []
304
- rubygems_version: 3.7.2
308
+ rubygems_version: 3.6.9
305
309
  specification_version: 4
306
310
  summary: Daytona Ruby Gem
307
311
  test_files: []