daytona_api_client 0.178.0 → 0.180.0.alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.openapi-generator/FILES +5 -6
- data/lib/daytona_api_client/api/sandbox_api.rb +124 -30
- data/lib/daytona_api_client/api/webhooks_api.rb +64 -0
- data/lib/daytona_api_client/models/{workspace_port_preview_url.rb → list_sandboxes_response.rb} +31 -43
- data/lib/daytona_api_client/models/{paginated_sandboxes.rb → paginated_sandboxes_deprecated.rb} +3 -3
- data/lib/daytona_api_client/models/region_quota.rb +67 -5
- data/lib/daytona_api_client/models/region_usage_overview.rb +93 -5
- data/lib/daytona_api_client/models/{workspace.rb → sandbox_list_item.rb} +123 -273
- data/lib/daytona_api_client/models/sandbox_list_sort_direction.rb +41 -0
- data/lib/daytona_api_client/models/sandbox_list_sort_field.rb +45 -0
- data/lib/daytona_api_client/models/update_organization_region_quota.rb +47 -5
- data/lib/daytona_api_client/version.rb +1 -1
- data/lib/daytona_api_client.rb +5 -6
- metadata +6 -7
- data/lib/daytona_api_client/api/workspace_api.rb +0 -955
- data/lib/daytona_api_client/models/create_workspace.rb +0 -340
- data/lib/daytona_api_client/models/sandbox_info.rb +0 -202
|
@@ -0,0 +1,41 @@
|
|
|
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 SandboxListSortDirection
|
|
18
|
+
ASC = "asc".freeze
|
|
19
|
+
DESC = "desc".freeze
|
|
20
|
+
UNKNOWN_DEFAULT_OPEN_API = "unknown_default_open_api".freeze
|
|
21
|
+
|
|
22
|
+
def self.all_vars
|
|
23
|
+
@all_vars ||= [ASC, DESC, UNKNOWN_DEFAULT_OPEN_API].freeze
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
# Builds the enum from string
|
|
27
|
+
# @param [String] The enum value in the form of the string
|
|
28
|
+
# @return [String] The enum value
|
|
29
|
+
def self.build_from_hash(value)
|
|
30
|
+
new.build_from_hash(value)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Builds the enum from string
|
|
34
|
+
# @param [String] The enum value in the form of the string
|
|
35
|
+
# @return [String] The enum value
|
|
36
|
+
def build_from_hash(value)
|
|
37
|
+
return value if SandboxListSortDirection.all_vars.include?(value)
|
|
38
|
+
UNKNOWN_DEFAULT_OPEN_API
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,45 @@
|
|
|
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 SandboxListSortField
|
|
18
|
+
NAME = "name".freeze
|
|
19
|
+
CPU = "cpu".freeze
|
|
20
|
+
MEMORY_GIB = "memoryGib".freeze
|
|
21
|
+
DISK_GIB = "diskGib".freeze
|
|
22
|
+
LAST_ACTIVITY_AT = "lastActivityAt".freeze
|
|
23
|
+
CREATED_AT = "createdAt".freeze
|
|
24
|
+
UNKNOWN_DEFAULT_OPEN_API = "unknown_default_open_api".freeze
|
|
25
|
+
|
|
26
|
+
def self.all_vars
|
|
27
|
+
@all_vars ||= [NAME, CPU, MEMORY_GIB, DISK_GIB, LAST_ACTIVITY_AT, CREATED_AT, UNKNOWN_DEFAULT_OPEN_API].freeze
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Builds the enum from string
|
|
31
|
+
# @param [String] The enum value in the form of the string
|
|
32
|
+
# @return [String] The enum value
|
|
33
|
+
def self.build_from_hash(value)
|
|
34
|
+
new.build_from_hash(value)
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Builds the enum from string
|
|
38
|
+
# @param [String] The enum value in the form of the string
|
|
39
|
+
# @return [String] The enum value
|
|
40
|
+
def build_from_hash(value)
|
|
41
|
+
return value if SandboxListSortField.all_vars.include?(value)
|
|
42
|
+
UNKNOWN_DEFAULT_OPEN_API
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
@@ -21,6 +21,8 @@ module DaytonaApiClient
|
|
|
21
21
|
|
|
22
22
|
attr_accessor :total_disk_quota
|
|
23
23
|
|
|
24
|
+
attr_accessor :total_gpu_quota
|
|
25
|
+
|
|
24
26
|
attr_accessor :max_cpu_per_sandbox
|
|
25
27
|
|
|
26
28
|
attr_accessor :max_memory_per_sandbox
|
|
@@ -29,16 +31,26 @@ module DaytonaApiClient
|
|
|
29
31
|
|
|
30
32
|
attr_accessor :max_disk_per_non_ephemeral_sandbox
|
|
31
33
|
|
|
34
|
+
attr_accessor :max_cpu_per_gpu_sandbox
|
|
35
|
+
|
|
36
|
+
attr_accessor :max_memory_per_gpu_sandbox
|
|
37
|
+
|
|
38
|
+
attr_accessor :max_disk_per_gpu_sandbox
|
|
39
|
+
|
|
32
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
33
41
|
def self.attribute_map
|
|
34
42
|
{
|
|
35
43
|
:'total_cpu_quota' => :'totalCpuQuota',
|
|
36
44
|
:'total_memory_quota' => :'totalMemoryQuota',
|
|
37
45
|
:'total_disk_quota' => :'totalDiskQuota',
|
|
46
|
+
:'total_gpu_quota' => :'totalGpuQuota',
|
|
38
47
|
:'max_cpu_per_sandbox' => :'maxCpuPerSandbox',
|
|
39
48
|
:'max_memory_per_sandbox' => :'maxMemoryPerSandbox',
|
|
40
49
|
:'max_disk_per_sandbox' => :'maxDiskPerSandbox',
|
|
41
|
-
:'max_disk_per_non_ephemeral_sandbox' => :'maxDiskPerNonEphemeralSandbox'
|
|
50
|
+
:'max_disk_per_non_ephemeral_sandbox' => :'maxDiskPerNonEphemeralSandbox',
|
|
51
|
+
:'max_cpu_per_gpu_sandbox' => :'maxCpuPerGpuSandbox',
|
|
52
|
+
:'max_memory_per_gpu_sandbox' => :'maxMemoryPerGpuSandbox',
|
|
53
|
+
:'max_disk_per_gpu_sandbox' => :'maxDiskPerGpuSandbox'
|
|
42
54
|
}
|
|
43
55
|
end
|
|
44
56
|
|
|
@@ -58,10 +70,14 @@ module DaytonaApiClient
|
|
|
58
70
|
:'total_cpu_quota' => :'Float',
|
|
59
71
|
:'total_memory_quota' => :'Float',
|
|
60
72
|
:'total_disk_quota' => :'Float',
|
|
73
|
+
:'total_gpu_quota' => :'Float',
|
|
61
74
|
:'max_cpu_per_sandbox' => :'Float',
|
|
62
75
|
:'max_memory_per_sandbox' => :'Float',
|
|
63
76
|
:'max_disk_per_sandbox' => :'Float',
|
|
64
|
-
:'max_disk_per_non_ephemeral_sandbox' => :'Float'
|
|
77
|
+
:'max_disk_per_non_ephemeral_sandbox' => :'Float',
|
|
78
|
+
:'max_cpu_per_gpu_sandbox' => :'Float',
|
|
79
|
+
:'max_memory_per_gpu_sandbox' => :'Float',
|
|
80
|
+
:'max_disk_per_gpu_sandbox' => :'Float'
|
|
65
81
|
}
|
|
66
82
|
end
|
|
67
83
|
|
|
@@ -71,10 +87,14 @@ module DaytonaApiClient
|
|
|
71
87
|
:'total_cpu_quota',
|
|
72
88
|
:'total_memory_quota',
|
|
73
89
|
:'total_disk_quota',
|
|
90
|
+
:'total_gpu_quota',
|
|
74
91
|
:'max_cpu_per_sandbox',
|
|
75
92
|
:'max_memory_per_sandbox',
|
|
76
93
|
:'max_disk_per_sandbox',
|
|
77
|
-
:'max_disk_per_non_ephemeral_sandbox'
|
|
94
|
+
:'max_disk_per_non_ephemeral_sandbox',
|
|
95
|
+
:'max_cpu_per_gpu_sandbox',
|
|
96
|
+
:'max_memory_per_gpu_sandbox',
|
|
97
|
+
:'max_disk_per_gpu_sandbox'
|
|
78
98
|
])
|
|
79
99
|
end
|
|
80
100
|
|
|
@@ -112,6 +132,12 @@ module DaytonaApiClient
|
|
|
112
132
|
self.total_disk_quota = nil
|
|
113
133
|
end
|
|
114
134
|
|
|
135
|
+
if attributes.key?(:'total_gpu_quota')
|
|
136
|
+
self.total_gpu_quota = attributes[:'total_gpu_quota']
|
|
137
|
+
else
|
|
138
|
+
self.total_gpu_quota = nil
|
|
139
|
+
end
|
|
140
|
+
|
|
115
141
|
if attributes.key?(:'max_cpu_per_sandbox')
|
|
116
142
|
self.max_cpu_per_sandbox = attributes[:'max_cpu_per_sandbox']
|
|
117
143
|
end
|
|
@@ -127,6 +153,18 @@ module DaytonaApiClient
|
|
|
127
153
|
if attributes.key?(:'max_disk_per_non_ephemeral_sandbox')
|
|
128
154
|
self.max_disk_per_non_ephemeral_sandbox = attributes[:'max_disk_per_non_ephemeral_sandbox']
|
|
129
155
|
end
|
|
156
|
+
|
|
157
|
+
if attributes.key?(:'max_cpu_per_gpu_sandbox')
|
|
158
|
+
self.max_cpu_per_gpu_sandbox = attributes[:'max_cpu_per_gpu_sandbox']
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
if attributes.key?(:'max_memory_per_gpu_sandbox')
|
|
162
|
+
self.max_memory_per_gpu_sandbox = attributes[:'max_memory_per_gpu_sandbox']
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
if attributes.key?(:'max_disk_per_gpu_sandbox')
|
|
166
|
+
self.max_disk_per_gpu_sandbox = attributes[:'max_disk_per_gpu_sandbox']
|
|
167
|
+
end
|
|
130
168
|
end
|
|
131
169
|
|
|
132
170
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -152,10 +190,14 @@ module DaytonaApiClient
|
|
|
152
190
|
total_cpu_quota == o.total_cpu_quota &&
|
|
153
191
|
total_memory_quota == o.total_memory_quota &&
|
|
154
192
|
total_disk_quota == o.total_disk_quota &&
|
|
193
|
+
total_gpu_quota == o.total_gpu_quota &&
|
|
155
194
|
max_cpu_per_sandbox == o.max_cpu_per_sandbox &&
|
|
156
195
|
max_memory_per_sandbox == o.max_memory_per_sandbox &&
|
|
157
196
|
max_disk_per_sandbox == o.max_disk_per_sandbox &&
|
|
158
|
-
max_disk_per_non_ephemeral_sandbox == o.max_disk_per_non_ephemeral_sandbox
|
|
197
|
+
max_disk_per_non_ephemeral_sandbox == o.max_disk_per_non_ephemeral_sandbox &&
|
|
198
|
+
max_cpu_per_gpu_sandbox == o.max_cpu_per_gpu_sandbox &&
|
|
199
|
+
max_memory_per_gpu_sandbox == o.max_memory_per_gpu_sandbox &&
|
|
200
|
+
max_disk_per_gpu_sandbox == o.max_disk_per_gpu_sandbox
|
|
159
201
|
end
|
|
160
202
|
|
|
161
203
|
# @see the `==` method
|
|
@@ -167,7 +209,7 @@ module DaytonaApiClient
|
|
|
167
209
|
# Calculates hash code according to all attributes.
|
|
168
210
|
# @return [Integer] Hash code
|
|
169
211
|
def hash
|
|
170
|
-
[total_cpu_quota, total_memory_quota, total_disk_quota, max_cpu_per_sandbox, max_memory_per_sandbox, max_disk_per_sandbox, max_disk_per_non_ephemeral_sandbox].hash
|
|
212
|
+
[total_cpu_quota, total_memory_quota, total_disk_quota, total_gpu_quota, max_cpu_per_sandbox, max_memory_per_sandbox, max_disk_per_sandbox, max_disk_per_non_ephemeral_sandbox, max_cpu_per_gpu_sandbox, max_memory_per_gpu_sandbox, max_disk_per_gpu_sandbox].hash
|
|
171
213
|
end
|
|
172
214
|
|
|
173
215
|
# Builds the object from hash
|
data/lib/daytona_api_client.rb
CHANGED
|
@@ -52,7 +52,6 @@ require 'daytona_api_client/models/create_session_request'
|
|
|
52
52
|
require 'daytona_api_client/models/create_snapshot'
|
|
53
53
|
require 'daytona_api_client/models/create_user'
|
|
54
54
|
require 'daytona_api_client/models/create_volume'
|
|
55
|
-
require 'daytona_api_client/models/create_workspace'
|
|
56
55
|
require 'daytona_api_client/models/daytona_configuration'
|
|
57
56
|
require 'daytona_api_client/models/display_info_response'
|
|
58
57
|
require 'daytona_api_client/models/docker_registry'
|
|
@@ -82,6 +81,7 @@ require 'daytona_api_client/models/keyboard_hotkey_request'
|
|
|
82
81
|
require 'daytona_api_client/models/keyboard_press_request'
|
|
83
82
|
require 'daytona_api_client/models/keyboard_type_request'
|
|
84
83
|
require 'daytona_api_client/models/list_branch_response'
|
|
84
|
+
require 'daytona_api_client/models/list_sandboxes_response'
|
|
85
85
|
require 'daytona_api_client/models/log_entry'
|
|
86
86
|
require 'daytona_api_client/models/lsp_completion_params'
|
|
87
87
|
require 'daytona_api_client/models/lsp_document_request'
|
|
@@ -113,7 +113,7 @@ require 'daytona_api_client/models/otel_config'
|
|
|
113
113
|
require 'daytona_api_client/models/paginated_audit_logs'
|
|
114
114
|
require 'daytona_api_client/models/paginated_jobs'
|
|
115
115
|
require 'daytona_api_client/models/paginated_logs'
|
|
116
|
-
require 'daytona_api_client/models/
|
|
116
|
+
require 'daytona_api_client/models/paginated_sandboxes_deprecated'
|
|
117
117
|
require 'daytona_api_client/models/paginated_snapshots'
|
|
118
118
|
require 'daytona_api_client/models/paginated_traces'
|
|
119
119
|
require 'daytona_api_client/models/poll_jobs_response'
|
|
@@ -154,8 +154,10 @@ require 'daytona_api_client/models/runner_state'
|
|
|
154
154
|
require 'daytona_api_client/models/sandbox'
|
|
155
155
|
require 'daytona_api_client/models/sandbox_class'
|
|
156
156
|
require 'daytona_api_client/models/sandbox_desired_state'
|
|
157
|
-
require 'daytona_api_client/models/sandbox_info'
|
|
158
157
|
require 'daytona_api_client/models/sandbox_labels'
|
|
158
|
+
require 'daytona_api_client/models/sandbox_list_item'
|
|
159
|
+
require 'daytona_api_client/models/sandbox_list_sort_direction'
|
|
160
|
+
require 'daytona_api_client/models/sandbox_list_sort_field'
|
|
159
161
|
require 'daytona_api_client/models/sandbox_state'
|
|
160
162
|
require 'daytona_api_client/models/sandbox_volume'
|
|
161
163
|
require 'daytona_api_client/models/screenshot_response'
|
|
@@ -197,8 +199,6 @@ require 'daytona_api_client/models/webhook_event'
|
|
|
197
199
|
require 'daytona_api_client/models/webhook_initialization_status'
|
|
198
200
|
require 'daytona_api_client/models/windows_response'
|
|
199
201
|
require 'daytona_api_client/models/work_dir_response'
|
|
200
|
-
require 'daytona_api_client/models/workspace'
|
|
201
|
-
require 'daytona_api_client/models/workspace_port_preview_url'
|
|
202
202
|
|
|
203
203
|
# APIs
|
|
204
204
|
require 'daytona_api_client/api/admin_api'
|
|
@@ -219,7 +219,6 @@ require 'daytona_api_client/api/toolbox_api'
|
|
|
219
219
|
require 'daytona_api_client/api/users_api'
|
|
220
220
|
require 'daytona_api_client/api/volumes_api'
|
|
221
221
|
require 'daytona_api_client/api/webhooks_api'
|
|
222
|
-
require 'daytona_api_client/api/workspace_api'
|
|
223
222
|
|
|
224
223
|
module DaytonaApiClient
|
|
225
224
|
class << self
|
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.
|
|
4
|
+
version: 0.180.0.alpha.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- daytonaio
|
|
@@ -84,7 +84,6 @@ files:
|
|
|
84
84
|
- lib/daytona_api_client/api/users_api.rb
|
|
85
85
|
- lib/daytona_api_client/api/volumes_api.rb
|
|
86
86
|
- lib/daytona_api_client/api/webhooks_api.rb
|
|
87
|
-
- lib/daytona_api_client/api/workspace_api.rb
|
|
88
87
|
- lib/daytona_api_client/api_client.rb
|
|
89
88
|
- lib/daytona_api_client/api_error.rb
|
|
90
89
|
- lib/daytona_api_client/api_model_base.rb
|
|
@@ -123,7 +122,6 @@ files:
|
|
|
123
122
|
- lib/daytona_api_client/models/create_snapshot.rb
|
|
124
123
|
- lib/daytona_api_client/models/create_user.rb
|
|
125
124
|
- lib/daytona_api_client/models/create_volume.rb
|
|
126
|
-
- lib/daytona_api_client/models/create_workspace.rb
|
|
127
125
|
- lib/daytona_api_client/models/daytona_configuration.rb
|
|
128
126
|
- lib/daytona_api_client/models/display_info_response.rb
|
|
129
127
|
- lib/daytona_api_client/models/docker_registry.rb
|
|
@@ -153,6 +151,7 @@ files:
|
|
|
153
151
|
- lib/daytona_api_client/models/keyboard_press_request.rb
|
|
154
152
|
- lib/daytona_api_client/models/keyboard_type_request.rb
|
|
155
153
|
- lib/daytona_api_client/models/list_branch_response.rb
|
|
154
|
+
- lib/daytona_api_client/models/list_sandboxes_response.rb
|
|
156
155
|
- lib/daytona_api_client/models/log_entry.rb
|
|
157
156
|
- lib/daytona_api_client/models/lsp_completion_params.rb
|
|
158
157
|
- lib/daytona_api_client/models/lsp_document_request.rb
|
|
@@ -184,7 +183,7 @@ files:
|
|
|
184
183
|
- lib/daytona_api_client/models/paginated_audit_logs.rb
|
|
185
184
|
- lib/daytona_api_client/models/paginated_jobs.rb
|
|
186
185
|
- lib/daytona_api_client/models/paginated_logs.rb
|
|
187
|
-
- lib/daytona_api_client/models/
|
|
186
|
+
- lib/daytona_api_client/models/paginated_sandboxes_deprecated.rb
|
|
188
187
|
- lib/daytona_api_client/models/paginated_snapshots.rb
|
|
189
188
|
- lib/daytona_api_client/models/paginated_traces.rb
|
|
190
189
|
- lib/daytona_api_client/models/poll_jobs_response.rb
|
|
@@ -225,8 +224,10 @@ files:
|
|
|
225
224
|
- lib/daytona_api_client/models/sandbox.rb
|
|
226
225
|
- lib/daytona_api_client/models/sandbox_class.rb
|
|
227
226
|
- lib/daytona_api_client/models/sandbox_desired_state.rb
|
|
228
|
-
- lib/daytona_api_client/models/sandbox_info.rb
|
|
229
227
|
- lib/daytona_api_client/models/sandbox_labels.rb
|
|
228
|
+
- lib/daytona_api_client/models/sandbox_list_item.rb
|
|
229
|
+
- lib/daytona_api_client/models/sandbox_list_sort_direction.rb
|
|
230
|
+
- lib/daytona_api_client/models/sandbox_list_sort_field.rb
|
|
230
231
|
- lib/daytona_api_client/models/sandbox_state.rb
|
|
231
232
|
- lib/daytona_api_client/models/sandbox_volume.rb
|
|
232
233
|
- lib/daytona_api_client/models/screenshot_response.rb
|
|
@@ -268,8 +269,6 @@ files:
|
|
|
268
269
|
- lib/daytona_api_client/models/webhook_initialization_status.rb
|
|
269
270
|
- lib/daytona_api_client/models/windows_response.rb
|
|
270
271
|
- lib/daytona_api_client/models/work_dir_response.rb
|
|
271
|
-
- lib/daytona_api_client/models/workspace.rb
|
|
272
|
-
- lib/daytona_api_client/models/workspace_port_preview_url.rb
|
|
273
272
|
- lib/daytona_api_client/version.rb
|
|
274
273
|
- project.json
|
|
275
274
|
homepage: https://github.com/daytonaio/daytona
|