daytona_api_client 0.196.0 → 0.198.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.openapi-generator/FILES +3 -68
- data/lib/daytona_api_client/api/admin_api.rb +70 -0
- data/lib/daytona_api_client/api/organizations_api.rb +131 -0
- data/lib/daytona_api_client/api/preview_api.rb +64 -0
- data/lib/daytona_api_client/api/sandbox_api.rb +70 -0
- data/lib/daytona_api_client/models/{computer_use_status_response.rb → available_sandbox_class.rb} +84 -24
- data/lib/daytona_api_client/models/create_sandbox.rb +11 -1
- data/lib/daytona_api_client/models/organization.rb +28 -1
- data/lib/daytona_api_client/models/{create_session_request.rb → organization_preview_warning.rb} +20 -20
- data/lib/daytona_api_client/models/{download_files.rb → preview_warning.rb} +20 -22
- data/lib/daytona_api_client/models/sandbox.rb +11 -1
- data/lib/daytona_api_client/models/sandbox_list_item.rb +11 -1
- data/lib/daytona_api_client/version.rb +1 -1
- data/lib/daytona_api_client.rb +3 -68
- metadata +4 -69
- data/lib/daytona_api_client/api/toolbox_api.rb +0 -5108
- data/lib/daytona_api_client/models/command.rb +0 -202
- data/lib/daytona_api_client/models/completion_context.rb +0 -173
- data/lib/daytona_api_client/models/completion_item.rb +0 -218
- data/lib/daytona_api_client/models/completion_list.rb +0 -192
- data/lib/daytona_api_client/models/compressed_screenshot_response.rb +0 -185
- data/lib/daytona_api_client/models/computer_use_start_response.rb +0 -192
- data/lib/daytona_api_client/models/computer_use_stop_response.rb +0 -192
- data/lib/daytona_api_client/models/display_info_response.rb +0 -167
- data/lib/daytona_api_client/models/execute_request.rb +0 -184
- data/lib/daytona_api_client/models/execute_response.rb +0 -192
- data/lib/daytona_api_client/models/file_info.rb +0 -346
- data/lib/daytona_api_client/models/file_status.rb +0 -242
- data/lib/daytona_api_client/models/git_add_request.rb +0 -193
- data/lib/daytona_api_client/models/git_branch_request.rb +0 -190
- data/lib/daytona_api_client/models/git_checkout_request.rb +0 -190
- data/lib/daytona_api_client/models/git_clone_request.rb +0 -226
- data/lib/daytona_api_client/models/git_commit_info.rb +0 -268
- data/lib/daytona_api_client/models/git_commit_request.rb +0 -254
- data/lib/daytona_api_client/models/git_commit_response.rb +0 -164
- data/lib/daytona_api_client/models/git_delete_branch_request.rb +0 -190
- data/lib/daytona_api_client/models/git_repo_request.rb +0 -182
- data/lib/daytona_api_client/models/git_status.rb +0 -219
- data/lib/daytona_api_client/models/keyboard_hotkey_request.rb +0 -165
- data/lib/daytona_api_client/models/keyboard_press_request.rb +0 -177
- data/lib/daytona_api_client/models/keyboard_type_request.rb +0 -175
- data/lib/daytona_api_client/models/list_branch_response.rb +0 -166
- data/lib/daytona_api_client/models/lsp_completion_params.rb +0 -254
- data/lib/daytona_api_client/models/lsp_document_request.rb +0 -219
- data/lib/daytona_api_client/models/lsp_location.rb +0 -190
- data/lib/daytona_api_client/models/lsp_server_request.rb +0 -192
- data/lib/daytona_api_client/models/lsp_symbol.rb +0 -216
- data/lib/daytona_api_client/models/match.rb +0 -216
- data/lib/daytona_api_client/models/mouse_click_request.rb +0 -212
- data/lib/daytona_api_client/models/mouse_click_response.rb +0 -192
- data/lib/daytona_api_client/models/mouse_drag_request.rb +0 -256
- data/lib/daytona_api_client/models/mouse_drag_response.rb +0 -192
- data/lib/daytona_api_client/models/mouse_move_request.rb +0 -192
- data/lib/daytona_api_client/models/mouse_move_response.rb +0 -192
- data/lib/daytona_api_client/models/mouse_position.rb +0 -192
- data/lib/daytona_api_client/models/mouse_scroll_request.rb +0 -229
- data/lib/daytona_api_client/models/mouse_scroll_response.rb +0 -165
- data/lib/daytona_api_client/models/position.rb +0 -190
- data/lib/daytona_api_client/models/process_errors_response.rb +0 -192
- data/lib/daytona_api_client/models/process_logs_response.rb +0 -192
- data/lib/daytona_api_client/models/process_restart_response.rb +0 -192
- data/lib/daytona_api_client/models/process_status_response.rb +0 -192
- data/lib/daytona_api_client/models/project_dir_response.rb +0 -147
- data/lib/daytona_api_client/models/pty_create_request.rb +0 -217
- data/lib/daytona_api_client/models/pty_create_response.rb +0 -165
- data/lib/daytona_api_client/models/pty_list_response.rb +0 -167
- data/lib/daytona_api_client/models/pty_resize_request.rb +0 -192
- data/lib/daytona_api_client/models/pty_session_info.rb +0 -354
- data/lib/daytona_api_client/models/range.rb +0 -190
- data/lib/daytona_api_client/models/region_screenshot_response.rb +0 -185
- data/lib/daytona_api_client/models/replace_request.rb +0 -218
- data/lib/daytona_api_client/models/replace_result.rb +0 -165
- data/lib/daytona_api_client/models/screenshot_response.rb +0 -185
- data/lib/daytona_api_client/models/search_files_response.rb +0 -166
- data/lib/daytona_api_client/models/session.rb +0 -180
- data/lib/daytona_api_client/models/session_execute_request.rb +0 -185
- data/lib/daytona_api_client/models/session_execute_response.rb +0 -168
- data/lib/daytona_api_client/models/user_home_dir_response.rb +0 -147
- data/lib/daytona_api_client/models/windows_response.rb +0 -194
- data/lib/daytona_api_client/models/work_dir_response.rb +0 -147
data/lib/daytona_api_client/models/{computer_use_status_response.rb → available_sandbox_class.rb}
RENAMED
|
@@ -14,9 +14,14 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module DaytonaApiClient
|
|
17
|
-
class
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
class AvailableSandboxClass < ApiModelBase
|
|
18
|
+
attr_accessor :region_id
|
|
19
|
+
|
|
20
|
+
attr_accessor :sandbox_class
|
|
21
|
+
|
|
22
|
+
attr_accessor :gpu_available
|
|
23
|
+
|
|
24
|
+
attr_accessor :allowed_gpu_types
|
|
20
25
|
|
|
21
26
|
class EnumAttributeValidator
|
|
22
27
|
attr_reader :datatype
|
|
@@ -43,7 +48,10 @@ module DaytonaApiClient
|
|
|
43
48
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
44
49
|
def self.attribute_map
|
|
45
50
|
{
|
|
46
|
-
:'
|
|
51
|
+
:'region_id' => :'regionId',
|
|
52
|
+
:'sandbox_class' => :'sandboxClass',
|
|
53
|
+
:'gpu_available' => :'gpuAvailable',
|
|
54
|
+
:'allowed_gpu_types' => :'allowedGpuTypes'
|
|
47
55
|
}
|
|
48
56
|
end
|
|
49
57
|
|
|
@@ -60,7 +68,10 @@ module DaytonaApiClient
|
|
|
60
68
|
# Attribute type mapping.
|
|
61
69
|
def self.openapi_types
|
|
62
70
|
{
|
|
63
|
-
:'
|
|
71
|
+
:'region_id' => :'String',
|
|
72
|
+
:'sandbox_class' => :'SandboxClass',
|
|
73
|
+
:'gpu_available' => :'Boolean',
|
|
74
|
+
:'allowed_gpu_types' => :'Array<GpuType>'
|
|
64
75
|
}
|
|
65
76
|
end
|
|
66
77
|
|
|
@@ -74,22 +85,40 @@ module DaytonaApiClient
|
|
|
74
85
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
75
86
|
def initialize(attributes = {})
|
|
76
87
|
if (!attributes.is_a?(Hash))
|
|
77
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::
|
|
88
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::AvailableSandboxClass` initialize method"
|
|
78
89
|
end
|
|
79
90
|
|
|
80
91
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
81
92
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
82
93
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
83
94
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
84
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::
|
|
95
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::AvailableSandboxClass`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
85
96
|
end
|
|
86
97
|
h[k.to_sym] = v
|
|
87
98
|
}
|
|
88
99
|
|
|
89
|
-
if attributes.key?(:'
|
|
90
|
-
self.
|
|
100
|
+
if attributes.key?(:'region_id')
|
|
101
|
+
self.region_id = attributes[:'region_id']
|
|
91
102
|
else
|
|
92
|
-
self.
|
|
103
|
+
self.region_id = nil
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
if attributes.key?(:'sandbox_class')
|
|
107
|
+
self.sandbox_class = attributes[:'sandbox_class']
|
|
108
|
+
else
|
|
109
|
+
self.sandbox_class = nil
|
|
110
|
+
end
|
|
111
|
+
|
|
112
|
+
if attributes.key?(:'gpu_available')
|
|
113
|
+
self.gpu_available = attributes[:'gpu_available']
|
|
114
|
+
else
|
|
115
|
+
self.gpu_available = nil
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
if attributes.key?(:'allowed_gpu_types')
|
|
119
|
+
if (value = attributes[:'allowed_gpu_types']).is_a?(Array)
|
|
120
|
+
self.allowed_gpu_types = value
|
|
121
|
+
end
|
|
93
122
|
end
|
|
94
123
|
end
|
|
95
124
|
|
|
@@ -98,8 +127,16 @@ module DaytonaApiClient
|
|
|
98
127
|
def list_invalid_properties
|
|
99
128
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
100
129
|
invalid_properties = Array.new
|
|
101
|
-
if @
|
|
102
|
-
invalid_properties.push('invalid value for "
|
|
130
|
+
if @region_id.nil?
|
|
131
|
+
invalid_properties.push('invalid value for "region_id", region_id cannot be nil.')
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
if @sandbox_class.nil?
|
|
135
|
+
invalid_properties.push('invalid value for "sandbox_class", sandbox_class cannot be nil.')
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
if @gpu_available.nil?
|
|
139
|
+
invalid_properties.push('invalid value for "gpu_available", gpu_available cannot be nil.')
|
|
103
140
|
end
|
|
104
141
|
|
|
105
142
|
invalid_properties
|
|
@@ -109,20 +146,40 @@ module DaytonaApiClient
|
|
|
109
146
|
# @return true if the model is valid
|
|
110
147
|
def valid?
|
|
111
148
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
112
|
-
return false if @
|
|
113
|
-
|
|
114
|
-
return false
|
|
149
|
+
return false if @region_id.nil?
|
|
150
|
+
return false if @sandbox_class.nil?
|
|
151
|
+
return false if @gpu_available.nil?
|
|
115
152
|
true
|
|
116
153
|
end
|
|
117
154
|
|
|
118
|
-
# Custom attribute writer method
|
|
119
|
-
# @param [Object]
|
|
120
|
-
def
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
155
|
+
# Custom attribute writer method with validation
|
|
156
|
+
# @param [Object] region_id Value to be assigned
|
|
157
|
+
def region_id=(region_id)
|
|
158
|
+
if region_id.nil?
|
|
159
|
+
fail ArgumentError, 'region_id cannot be nil'
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
@region_id = region_id
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# Custom attribute writer method with validation
|
|
166
|
+
# @param [Object] sandbox_class Value to be assigned
|
|
167
|
+
def sandbox_class=(sandbox_class)
|
|
168
|
+
if sandbox_class.nil?
|
|
169
|
+
fail ArgumentError, 'sandbox_class cannot be nil'
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
@sandbox_class = sandbox_class
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# Custom attribute writer method with validation
|
|
176
|
+
# @param [Object] gpu_available Value to be assigned
|
|
177
|
+
def gpu_available=(gpu_available)
|
|
178
|
+
if gpu_available.nil?
|
|
179
|
+
fail ArgumentError, 'gpu_available cannot be nil'
|
|
124
180
|
end
|
|
125
|
-
|
|
181
|
+
|
|
182
|
+
@gpu_available = gpu_available
|
|
126
183
|
end
|
|
127
184
|
|
|
128
185
|
# Checks equality by comparing each attribute.
|
|
@@ -130,7 +187,10 @@ module DaytonaApiClient
|
|
|
130
187
|
def ==(o)
|
|
131
188
|
return true if self.equal?(o)
|
|
132
189
|
self.class == o.class &&
|
|
133
|
-
|
|
190
|
+
region_id == o.region_id &&
|
|
191
|
+
sandbox_class == o.sandbox_class &&
|
|
192
|
+
gpu_available == o.gpu_available &&
|
|
193
|
+
allowed_gpu_types == o.allowed_gpu_types
|
|
134
194
|
end
|
|
135
195
|
|
|
136
196
|
# @see the `==` method
|
|
@@ -142,7 +202,7 @@ module DaytonaApiClient
|
|
|
142
202
|
# Calculates hash code according to all attributes.
|
|
143
203
|
# @return [Integer] Hash code
|
|
144
204
|
def hash
|
|
145
|
-
[
|
|
205
|
+
[region_id, sandbox_class, gpu_available, allowed_gpu_types].hash
|
|
146
206
|
end
|
|
147
207
|
|
|
148
208
|
# Builds the object from hash
|
|
@@ -63,6 +63,9 @@ module DaytonaApiClient
|
|
|
63
63
|
# Auto-stop interval in minutes (0 means disabled)
|
|
64
64
|
attr_accessor :auto_stop_interval
|
|
65
65
|
|
|
66
|
+
# Auto-pause interval in minutes (0 means disabled). Only supported for sandbox classes that support pausing. Not allowed for ephemeral sandboxes. At most one of autoStopInterval and autoPauseInterval may be non-zero. For non-ephemeral sandbox classes that support pausing, defaults to 60 minutes (with auto-stop disabled) when neither interval is provided.
|
|
67
|
+
attr_accessor :auto_pause_interval
|
|
68
|
+
|
|
66
69
|
# Auto-archive interval in minutes (0 means the maximum interval will be used)
|
|
67
70
|
attr_accessor :auto_archive_interval
|
|
68
71
|
|
|
@@ -100,6 +103,7 @@ module DaytonaApiClient
|
|
|
100
103
|
:'memory' => :'memory',
|
|
101
104
|
:'disk' => :'disk',
|
|
102
105
|
:'auto_stop_interval' => :'autoStopInterval',
|
|
106
|
+
:'auto_pause_interval' => :'autoPauseInterval',
|
|
103
107
|
:'auto_archive_interval' => :'autoArchiveInterval',
|
|
104
108
|
:'auto_delete_interval' => :'autoDeleteInterval',
|
|
105
109
|
:'volumes' => :'volumes',
|
|
@@ -138,6 +142,7 @@ module DaytonaApiClient
|
|
|
138
142
|
:'memory' => :'Integer',
|
|
139
143
|
:'disk' => :'Integer',
|
|
140
144
|
:'auto_stop_interval' => :'Integer',
|
|
145
|
+
:'auto_pause_interval' => :'Integer',
|
|
141
146
|
:'auto_archive_interval' => :'Integer',
|
|
142
147
|
:'auto_delete_interval' => :'Integer',
|
|
143
148
|
:'volumes' => :'Array<SandboxVolume>',
|
|
@@ -239,6 +244,10 @@ module DaytonaApiClient
|
|
|
239
244
|
self.auto_stop_interval = attributes[:'auto_stop_interval']
|
|
240
245
|
end
|
|
241
246
|
|
|
247
|
+
if attributes.key?(:'auto_pause_interval')
|
|
248
|
+
self.auto_pause_interval = attributes[:'auto_pause_interval']
|
|
249
|
+
end
|
|
250
|
+
|
|
242
251
|
if attributes.key?(:'auto_archive_interval')
|
|
243
252
|
self.auto_archive_interval = attributes[:'auto_archive_interval']
|
|
244
253
|
end
|
|
@@ -304,6 +313,7 @@ module DaytonaApiClient
|
|
|
304
313
|
memory == o.memory &&
|
|
305
314
|
disk == o.disk &&
|
|
306
315
|
auto_stop_interval == o.auto_stop_interval &&
|
|
316
|
+
auto_pause_interval == o.auto_pause_interval &&
|
|
307
317
|
auto_archive_interval == o.auto_archive_interval &&
|
|
308
318
|
auto_delete_interval == o.auto_delete_interval &&
|
|
309
319
|
volumes == o.volumes &&
|
|
@@ -321,7 +331,7 @@ module DaytonaApiClient
|
|
|
321
331
|
# Calculates hash code according to all attributes.
|
|
322
332
|
# @return [Integer] Hash code
|
|
323
333
|
def hash
|
|
324
|
-
[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, secrets].hash
|
|
334
|
+
[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_pause_interval, auto_archive_interval, auto_delete_interval, volumes, build_info, linked_sandbox, secrets].hash
|
|
325
335
|
end
|
|
326
336
|
|
|
327
337
|
# Builds the object from hash
|
|
@@ -69,6 +69,9 @@ module DaytonaApiClient
|
|
|
69
69
|
# Sandbox default network block all
|
|
70
70
|
attr_accessor :sandbox_limited_network_egress
|
|
71
71
|
|
|
72
|
+
# Whether the proxy shows the preview URL warning page for this organization
|
|
73
|
+
attr_accessor :preview_warning_enabled
|
|
74
|
+
|
|
72
75
|
# Default region ID
|
|
73
76
|
attr_accessor :default_region_id
|
|
74
77
|
|
|
@@ -117,6 +120,7 @@ module DaytonaApiClient
|
|
|
117
120
|
:'max_secrets_per_sandbox' => :'maxSecretsPerSandbox',
|
|
118
121
|
:'snapshot_deactivation_timeout_minutes' => :'snapshotDeactivationTimeoutMinutes',
|
|
119
122
|
:'sandbox_limited_network_egress' => :'sandboxLimitedNetworkEgress',
|
|
123
|
+
:'preview_warning_enabled' => :'previewWarningEnabled',
|
|
120
124
|
:'default_region_id' => :'defaultRegionId',
|
|
121
125
|
:'authenticated_rate_limit' => :'authenticatedRateLimit',
|
|
122
126
|
:'sandbox_create_rate_limit' => :'sandboxCreateRateLimit',
|
|
@@ -160,6 +164,7 @@ module DaytonaApiClient
|
|
|
160
164
|
:'max_secrets_per_sandbox' => :'Float',
|
|
161
165
|
:'snapshot_deactivation_timeout_minutes' => :'Float',
|
|
162
166
|
:'sandbox_limited_network_egress' => :'Boolean',
|
|
167
|
+
:'preview_warning_enabled' => :'Boolean',
|
|
163
168
|
:'default_region_id' => :'String',
|
|
164
169
|
:'authenticated_rate_limit' => :'Float',
|
|
165
170
|
:'sandbox_create_rate_limit' => :'Float',
|
|
@@ -309,6 +314,12 @@ module DaytonaApiClient
|
|
|
309
314
|
self.sandbox_limited_network_egress = nil
|
|
310
315
|
end
|
|
311
316
|
|
|
317
|
+
if attributes.key?(:'preview_warning_enabled')
|
|
318
|
+
self.preview_warning_enabled = attributes[:'preview_warning_enabled']
|
|
319
|
+
else
|
|
320
|
+
self.preview_warning_enabled = nil
|
|
321
|
+
end
|
|
322
|
+
|
|
312
323
|
if attributes.key?(:'default_region_id')
|
|
313
324
|
self.default_region_id = attributes[:'default_region_id']
|
|
314
325
|
end
|
|
@@ -439,6 +450,10 @@ module DaytonaApiClient
|
|
|
439
450
|
invalid_properties.push('invalid value for "sandbox_limited_network_egress", sandbox_limited_network_egress cannot be nil.')
|
|
440
451
|
end
|
|
441
452
|
|
|
453
|
+
if @preview_warning_enabled.nil?
|
|
454
|
+
invalid_properties.push('invalid value for "preview_warning_enabled", preview_warning_enabled cannot be nil.')
|
|
455
|
+
end
|
|
456
|
+
|
|
442
457
|
if @experimental_config.nil?
|
|
443
458
|
invalid_properties.push('invalid value for "experimental_config", experimental_config cannot be nil.')
|
|
444
459
|
end
|
|
@@ -468,6 +483,7 @@ module DaytonaApiClient
|
|
|
468
483
|
return false if @max_secrets_per_sandbox.nil?
|
|
469
484
|
return false if @snapshot_deactivation_timeout_minutes.nil?
|
|
470
485
|
return false if @sandbox_limited_network_egress.nil?
|
|
486
|
+
return false if @preview_warning_enabled.nil?
|
|
471
487
|
return false if @experimental_config.nil?
|
|
472
488
|
true
|
|
473
489
|
end
|
|
@@ -652,6 +668,16 @@ module DaytonaApiClient
|
|
|
652
668
|
@sandbox_limited_network_egress = sandbox_limited_network_egress
|
|
653
669
|
end
|
|
654
670
|
|
|
671
|
+
# Custom attribute writer method with validation
|
|
672
|
+
# @param [Object] preview_warning_enabled Value to be assigned
|
|
673
|
+
def preview_warning_enabled=(preview_warning_enabled)
|
|
674
|
+
if preview_warning_enabled.nil?
|
|
675
|
+
fail ArgumentError, 'preview_warning_enabled cannot be nil'
|
|
676
|
+
end
|
|
677
|
+
|
|
678
|
+
@preview_warning_enabled = preview_warning_enabled
|
|
679
|
+
end
|
|
680
|
+
|
|
655
681
|
# Custom attribute writer method with validation
|
|
656
682
|
# @param [Object] experimental_config Value to be assigned
|
|
657
683
|
def experimental_config=(experimental_config)
|
|
@@ -685,6 +711,7 @@ module DaytonaApiClient
|
|
|
685
711
|
max_secrets_per_sandbox == o.max_secrets_per_sandbox &&
|
|
686
712
|
snapshot_deactivation_timeout_minutes == o.snapshot_deactivation_timeout_minutes &&
|
|
687
713
|
sandbox_limited_network_egress == o.sandbox_limited_network_egress &&
|
|
714
|
+
preview_warning_enabled == o.preview_warning_enabled &&
|
|
688
715
|
default_region_id == o.default_region_id &&
|
|
689
716
|
authenticated_rate_limit == o.authenticated_rate_limit &&
|
|
690
717
|
sandbox_create_rate_limit == o.sandbox_create_rate_limit &&
|
|
@@ -705,7 +732,7 @@ module DaytonaApiClient
|
|
|
705
732
|
# Calculates hash code according to all attributes.
|
|
706
733
|
# @return [Integer] Hash code
|
|
707
734
|
def hash
|
|
708
|
-
[id, name, created_by, personal, created_at, updated_at, suspended, suspended_at, suspension_reason, suspended_until, suspension_cleanup_grace_period_hours, max_cpu_per_sandbox, max_memory_per_sandbox, max_disk_per_sandbox, secret_quota, max_secrets_per_sandbox, snapshot_deactivation_timeout_minutes, sandbox_limited_network_egress, default_region_id, authenticated_rate_limit, sandbox_create_rate_limit, sandbox_lifecycle_rate_limit, experimental_config, otel_config, authenticated_rate_limit_ttl_seconds, sandbox_create_rate_limit_ttl_seconds, sandbox_lifecycle_rate_limit_ttl_seconds].hash
|
|
735
|
+
[id, name, created_by, personal, created_at, updated_at, suspended, suspended_at, suspension_reason, suspended_until, suspension_cleanup_grace_period_hours, max_cpu_per_sandbox, max_memory_per_sandbox, max_disk_per_sandbox, secret_quota, max_secrets_per_sandbox, snapshot_deactivation_timeout_minutes, sandbox_limited_network_egress, preview_warning_enabled, default_region_id, authenticated_rate_limit, sandbox_create_rate_limit, sandbox_lifecycle_rate_limit, experimental_config, otel_config, authenticated_rate_limit_ttl_seconds, sandbox_create_rate_limit_ttl_seconds, sandbox_lifecycle_rate_limit_ttl_seconds].hash
|
|
709
736
|
end
|
|
710
737
|
|
|
711
738
|
# Builds the object from hash
|
data/lib/daytona_api_client/models/{create_session_request.rb → organization_preview_warning.rb}
RENAMED
|
@@ -14,14 +14,14 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module DaytonaApiClient
|
|
17
|
-
class
|
|
18
|
-
#
|
|
19
|
-
attr_accessor :
|
|
17
|
+
class OrganizationPreviewWarning < ApiModelBase
|
|
18
|
+
# Whether the proxy shows the preview URL warning page for this organization
|
|
19
|
+
attr_accessor :preview_warning_enabled
|
|
20
20
|
|
|
21
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
22
22
|
def self.attribute_map
|
|
23
23
|
{
|
|
24
|
-
:'
|
|
24
|
+
:'preview_warning_enabled' => :'previewWarningEnabled'
|
|
25
25
|
}
|
|
26
26
|
end
|
|
27
27
|
|
|
@@ -38,7 +38,7 @@ module DaytonaApiClient
|
|
|
38
38
|
# Attribute type mapping.
|
|
39
39
|
def self.openapi_types
|
|
40
40
|
{
|
|
41
|
-
:'
|
|
41
|
+
:'preview_warning_enabled' => :'Boolean'
|
|
42
42
|
}
|
|
43
43
|
end
|
|
44
44
|
|
|
@@ -52,22 +52,22 @@ module DaytonaApiClient
|
|
|
52
52
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
53
53
|
def initialize(attributes = {})
|
|
54
54
|
if (!attributes.is_a?(Hash))
|
|
55
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::
|
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::OrganizationPreviewWarning` initialize method"
|
|
56
56
|
end
|
|
57
57
|
|
|
58
58
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
59
59
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
60
60
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
61
61
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
62
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::
|
|
62
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::OrganizationPreviewWarning`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
63
63
|
end
|
|
64
64
|
h[k.to_sym] = v
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
if attributes.key?(:'
|
|
68
|
-
self.
|
|
67
|
+
if attributes.key?(:'preview_warning_enabled')
|
|
68
|
+
self.preview_warning_enabled = attributes[:'preview_warning_enabled']
|
|
69
69
|
else
|
|
70
|
-
self.
|
|
70
|
+
self.preview_warning_enabled = nil
|
|
71
71
|
end
|
|
72
72
|
end
|
|
73
73
|
|
|
@@ -76,8 +76,8 @@ module DaytonaApiClient
|
|
|
76
76
|
def list_invalid_properties
|
|
77
77
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
78
78
|
invalid_properties = Array.new
|
|
79
|
-
if @
|
|
80
|
-
invalid_properties.push('invalid value for "
|
|
79
|
+
if @preview_warning_enabled.nil?
|
|
80
|
+
invalid_properties.push('invalid value for "preview_warning_enabled", preview_warning_enabled cannot be nil.')
|
|
81
81
|
end
|
|
82
82
|
|
|
83
83
|
invalid_properties
|
|
@@ -87,18 +87,18 @@ module DaytonaApiClient
|
|
|
87
87
|
# @return true if the model is valid
|
|
88
88
|
def valid?
|
|
89
89
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
90
|
-
return false if @
|
|
90
|
+
return false if @preview_warning_enabled.nil?
|
|
91
91
|
true
|
|
92
92
|
end
|
|
93
93
|
|
|
94
94
|
# Custom attribute writer method with validation
|
|
95
|
-
# @param [Object]
|
|
96
|
-
def
|
|
97
|
-
if
|
|
98
|
-
fail ArgumentError, '
|
|
95
|
+
# @param [Object] preview_warning_enabled Value to be assigned
|
|
96
|
+
def preview_warning_enabled=(preview_warning_enabled)
|
|
97
|
+
if preview_warning_enabled.nil?
|
|
98
|
+
fail ArgumentError, 'preview_warning_enabled cannot be nil'
|
|
99
99
|
end
|
|
100
100
|
|
|
101
|
-
@
|
|
101
|
+
@preview_warning_enabled = preview_warning_enabled
|
|
102
102
|
end
|
|
103
103
|
|
|
104
104
|
# Checks equality by comparing each attribute.
|
|
@@ -106,7 +106,7 @@ module DaytonaApiClient
|
|
|
106
106
|
def ==(o)
|
|
107
107
|
return true if self.equal?(o)
|
|
108
108
|
self.class == o.class &&
|
|
109
|
-
|
|
109
|
+
preview_warning_enabled == o.preview_warning_enabled
|
|
110
110
|
end
|
|
111
111
|
|
|
112
112
|
# @see the `==` method
|
|
@@ -118,7 +118,7 @@ module DaytonaApiClient
|
|
|
118
118
|
# Calculates hash code according to all attributes.
|
|
119
119
|
# @return [Integer] Hash code
|
|
120
120
|
def hash
|
|
121
|
-
[
|
|
121
|
+
[preview_warning_enabled].hash
|
|
122
122
|
end
|
|
123
123
|
|
|
124
124
|
# Builds the object from hash
|
|
@@ -14,14 +14,14 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module DaytonaApiClient
|
|
17
|
-
class
|
|
18
|
-
#
|
|
19
|
-
attr_accessor :
|
|
17
|
+
class PreviewWarning < ApiModelBase
|
|
18
|
+
# Whether the preview warning page is enabled for the sandbox
|
|
19
|
+
attr_accessor :enabled
|
|
20
20
|
|
|
21
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
22
22
|
def self.attribute_map
|
|
23
23
|
{
|
|
24
|
-
:'
|
|
24
|
+
:'enabled' => :'enabled'
|
|
25
25
|
}
|
|
26
26
|
end
|
|
27
27
|
|
|
@@ -38,7 +38,7 @@ module DaytonaApiClient
|
|
|
38
38
|
# Attribute type mapping.
|
|
39
39
|
def self.openapi_types
|
|
40
40
|
{
|
|
41
|
-
:'
|
|
41
|
+
:'enabled' => :'Boolean'
|
|
42
42
|
}
|
|
43
43
|
end
|
|
44
44
|
|
|
@@ -52,24 +52,22 @@ module DaytonaApiClient
|
|
|
52
52
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
53
53
|
def initialize(attributes = {})
|
|
54
54
|
if (!attributes.is_a?(Hash))
|
|
55
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::
|
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `DaytonaApiClient::PreviewWarning` initialize method"
|
|
56
56
|
end
|
|
57
57
|
|
|
58
58
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
59
59
|
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
60
60
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
61
61
|
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
62
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `DaytonaApiClient::
|
|
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
63
|
end
|
|
64
64
|
h[k.to_sym] = v
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
if attributes.key?(:'
|
|
68
|
-
|
|
69
|
-
self.paths = value
|
|
70
|
-
end
|
|
67
|
+
if attributes.key?(:'enabled')
|
|
68
|
+
self.enabled = attributes[:'enabled']
|
|
71
69
|
else
|
|
72
|
-
self.
|
|
70
|
+
self.enabled = nil
|
|
73
71
|
end
|
|
74
72
|
end
|
|
75
73
|
|
|
@@ -78,8 +76,8 @@ module DaytonaApiClient
|
|
|
78
76
|
def list_invalid_properties
|
|
79
77
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
80
78
|
invalid_properties = Array.new
|
|
81
|
-
if @
|
|
82
|
-
invalid_properties.push('invalid value for "
|
|
79
|
+
if @enabled.nil?
|
|
80
|
+
invalid_properties.push('invalid value for "enabled", enabled cannot be nil.')
|
|
83
81
|
end
|
|
84
82
|
|
|
85
83
|
invalid_properties
|
|
@@ -89,18 +87,18 @@ module DaytonaApiClient
|
|
|
89
87
|
# @return true if the model is valid
|
|
90
88
|
def valid?
|
|
91
89
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
92
|
-
return false if @
|
|
90
|
+
return false if @enabled.nil?
|
|
93
91
|
true
|
|
94
92
|
end
|
|
95
93
|
|
|
96
94
|
# Custom attribute writer method with validation
|
|
97
|
-
# @param [Object]
|
|
98
|
-
def
|
|
99
|
-
if
|
|
100
|
-
fail ArgumentError, '
|
|
95
|
+
# @param [Object] enabled Value to be assigned
|
|
96
|
+
def enabled=(enabled)
|
|
97
|
+
if enabled.nil?
|
|
98
|
+
fail ArgumentError, 'enabled cannot be nil'
|
|
101
99
|
end
|
|
102
100
|
|
|
103
|
-
@
|
|
101
|
+
@enabled = enabled
|
|
104
102
|
end
|
|
105
103
|
|
|
106
104
|
# Checks equality by comparing each attribute.
|
|
@@ -108,7 +106,7 @@ module DaytonaApiClient
|
|
|
108
106
|
def ==(o)
|
|
109
107
|
return true if self.equal?(o)
|
|
110
108
|
self.class == o.class &&
|
|
111
|
-
|
|
109
|
+
enabled == o.enabled
|
|
112
110
|
end
|
|
113
111
|
|
|
114
112
|
# @see the `==` method
|
|
@@ -120,7 +118,7 @@ module DaytonaApiClient
|
|
|
120
118
|
# Calculates hash code according to all attributes.
|
|
121
119
|
# @return [Integer] Hash code
|
|
122
120
|
def hash
|
|
123
|
-
[
|
|
121
|
+
[enabled].hash
|
|
124
122
|
end
|
|
125
123
|
|
|
126
124
|
# Builds the object from hash
|
|
@@ -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
|