daytona_api_client 0.134.0.alpha.1 → 1.0.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/Gemfile +9 -0
- data/Gemfile.lock +101 -0
- data/daytona_api_client.gemspec +2 -2
- data/lib/daytona_api_client/api/audit_api.rb +66 -18
- data/lib/daytona_api_client/api/docker_registry_api.rb +0 -3
- data/lib/daytona_api_client/api/organizations_api.rb +29 -754
- data/lib/daytona_api_client/api/preview_api.rb +5 -74
- data/lib/daytona_api_client/api/runners_api.rb +20 -343
- data/lib/daytona_api_client/api/sandbox_api.rb +194 -558
- data/lib/daytona_api_client/api/snapshots_api.rb +0 -66
- data/lib/daytona_api_client/api/toolbox_api.rb +711 -711
- data/lib/daytona_api_client/api/workspace_api.rb +3 -3
- data/lib/daytona_api_client/models/build_info.rb +4 -31
- data/lib/daytona_api_client/models/{job.rb → create_audit_log.rb} +79 -166
- data/lib/daytona_api_client/models/create_organization.rb +4 -31
- data/lib/daytona_api_client/models/create_runner.rb +315 -31
- data/lib/daytona_api_client/models/create_sandbox.rb +1 -11
- data/lib/daytona_api_client/models/create_snapshot.rb +4 -14
- data/lib/daytona_api_client/models/create_user.rb +1 -10
- data/lib/daytona_api_client/models/daytona_configuration.rb +4 -41
- data/lib/daytona_api_client/models/organization.rb +85 -53
- data/lib/daytona_api_client/models/organization_usage_overview.rb +146 -18
- data/lib/daytona_api_client/models/paginated_audit_logs.rb +4 -14
- data/lib/daytona_api_client/models/{paginated_jobs.rb → paginated_snapshots_dto.rb} +4 -4
- data/lib/daytona_api_client/models/port_preview_url.rb +14 -31
- data/lib/daytona_api_client/models/region.rb +4 -178
- data/lib/daytona_api_client/models/runner.rb +117 -79
- data/lib/daytona_api_client/models/runner_snapshot_dto.rb +17 -0
- data/lib/daytona_api_client/models/sandbox.rb +14 -51
- data/lib/daytona_api_client/models/sandbox_volume.rb +4 -14
- data/lib/daytona_api_client/models/snapshot_dto.rb +4 -36
- data/lib/daytona_api_client/models/snapshot_state.rb +4 -1
- data/lib/daytona_api_client/models/ssh_access_dto.rb +4 -31
- data/lib/daytona_api_client/models/ssh_access_validation_dto.rb +24 -4
- data/lib/daytona_api_client/models/update_organization_quota.rb +41 -41
- data/lib/daytona_api_client/models/update_sandbox_state_dto.rb +4 -24
- data/lib/daytona_api_client/models/workspace.rb +35 -45
- data/lib/daytona_api_client/version.rb +1 -1
- data/lib/daytona_api_client.rb +1 -30
- data/project.json +6 -34
- metadata +5 -38
- data/.gitignore +0 -39
- data/.openapi-generator/FILES +0 -194
- data/.openapi-generator/VERSION +0 -1
- data/.openapi-generator-ignore +0 -31
- data/.rspec +0 -2
- data/.rubocop.yml +0 -148
- data/fix-gemspec.sh +0 -11
- data/lib/daytona_api_client/api/admin_api.rb +0 -325
- data/lib/daytona_api_client/api/jobs_api.rb +0 -299
- data/lib/daytona_api_client/api/regions_api.rb +0 -77
- data/lib/daytona_api_client/models/admin_create_runner.rb +0 -385
- data/lib/daytona_api_client/models/create_region.rb +0 -269
- data/lib/daytona_api_client/models/create_region_response.rb +0 -280
- data/lib/daytona_api_client/models/create_runner_response.rb +0 -263
- data/lib/daytona_api_client/models/job_status.rb +0 -42
- data/lib/daytona_api_client/models/job_type.rb +0 -49
- data/lib/daytona_api_client/models/poll_jobs_response.rb +0 -238
- data/lib/daytona_api_client/models/rate_limit_config.rb +0 -249
- data/lib/daytona_api_client/models/rate_limit_entry.rb +0 -229
- data/lib/daytona_api_client/models/regenerate_api_key_response.rb +0 -236
- data/lib/daytona_api_client/models/region_quota.rb +0 -339
- data/lib/daytona_api_client/models/region_type.rb +0 -41
- data/lib/daytona_api_client/models/region_usage_overview.rb +0 -391
- data/lib/daytona_api_client/models/runner_full.rb +0 -779
- data/lib/daytona_api_client/models/runner_health_metrics.rb +0 -533
- data/lib/daytona_api_client/models/runner_healthcheck.rb +0 -276
- data/lib/daytona_api_client/models/signed_port_preview_url.rb +0 -317
- data/lib/daytona_api_client/models/snapshot_manager_credentials.rb +0 -263
- data/lib/daytona_api_client/models/toolbox_proxy_url.rb +0 -236
- data/lib/daytona_api_client/models/update_job_status.rb +0 -278
- data/lib/daytona_api_client/models/update_organization_default_region.rb +0 -236
- data/lib/daytona_api_client/models/update_organization_region_quota.rb +0 -245
- data/lib/daytona_api_client/models/update_region.rb +0 -242
- data/lib/daytona_api_client/models/url.rb +0 -236
- data/lib/daytona_api_client/models/workspace_port_preview_url.rb +0 -263
|
@@ -15,21 +15,21 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module DaytonaApiClient
|
|
17
17
|
class PortPreviewUrl
|
|
18
|
-
# ID of the sandbox
|
|
19
|
-
attr_accessor :sandbox_id
|
|
20
|
-
|
|
21
18
|
# Preview url
|
|
22
19
|
attr_accessor :url
|
|
23
20
|
|
|
24
21
|
# Access token
|
|
25
22
|
attr_accessor :token
|
|
26
23
|
|
|
24
|
+
# Legacy preview url using runner domain
|
|
25
|
+
attr_accessor :legacy_proxy_url
|
|
26
|
+
|
|
27
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
28
|
def self.attribute_map
|
|
29
29
|
{
|
|
30
|
-
:'sandbox_id' => :'sandboxId',
|
|
31
30
|
:'url' => :'url',
|
|
32
|
-
:'token' => :'token'
|
|
31
|
+
:'token' => :'token',
|
|
32
|
+
:'legacy_proxy_url' => :'legacyProxyUrl'
|
|
33
33
|
}
|
|
34
34
|
end
|
|
35
35
|
|
|
@@ -46,9 +46,9 @@ module DaytonaApiClient
|
|
|
46
46
|
# Attribute type mapping.
|
|
47
47
|
def self.openapi_types
|
|
48
48
|
{
|
|
49
|
-
:'sandbox_id' => :'String',
|
|
50
49
|
:'url' => :'String',
|
|
51
|
-
:'token' => :'String'
|
|
50
|
+
:'token' => :'String',
|
|
51
|
+
:'legacy_proxy_url' => :'String'
|
|
52
52
|
}
|
|
53
53
|
end
|
|
54
54
|
|
|
@@ -74,12 +74,6 @@ module DaytonaApiClient
|
|
|
74
74
|
h[k.to_sym] = v
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
if attributes.key?(:'sandbox_id')
|
|
78
|
-
self.sandbox_id = attributes[:'sandbox_id']
|
|
79
|
-
else
|
|
80
|
-
self.sandbox_id = nil
|
|
81
|
-
end
|
|
82
|
-
|
|
83
77
|
if attributes.key?(:'url')
|
|
84
78
|
self.url = attributes[:'url']
|
|
85
79
|
else
|
|
@@ -91,6 +85,10 @@ module DaytonaApiClient
|
|
|
91
85
|
else
|
|
92
86
|
self.token = nil
|
|
93
87
|
end
|
|
88
|
+
|
|
89
|
+
if attributes.key?(:'legacy_proxy_url')
|
|
90
|
+
self.legacy_proxy_url = attributes[:'legacy_proxy_url']
|
|
91
|
+
end
|
|
94
92
|
end
|
|
95
93
|
|
|
96
94
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -98,10 +96,6 @@ module DaytonaApiClient
|
|
|
98
96
|
def list_invalid_properties
|
|
99
97
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
100
98
|
invalid_properties = Array.new
|
|
101
|
-
if @sandbox_id.nil?
|
|
102
|
-
invalid_properties.push('invalid value for "sandbox_id", sandbox_id cannot be nil.')
|
|
103
|
-
end
|
|
104
|
-
|
|
105
99
|
if @url.nil?
|
|
106
100
|
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
|
107
101
|
end
|
|
@@ -117,22 +111,11 @@ module DaytonaApiClient
|
|
|
117
111
|
# @return true if the model is valid
|
|
118
112
|
def valid?
|
|
119
113
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
120
|
-
return false if @sandbox_id.nil?
|
|
121
114
|
return false if @url.nil?
|
|
122
115
|
return false if @token.nil?
|
|
123
116
|
true
|
|
124
117
|
end
|
|
125
118
|
|
|
126
|
-
# Custom attribute writer method with validation
|
|
127
|
-
# @param [Object] sandbox_id Value to be assigned
|
|
128
|
-
def sandbox_id=(sandbox_id)
|
|
129
|
-
if sandbox_id.nil?
|
|
130
|
-
fail ArgumentError, 'sandbox_id cannot be nil'
|
|
131
|
-
end
|
|
132
|
-
|
|
133
|
-
@sandbox_id = sandbox_id
|
|
134
|
-
end
|
|
135
|
-
|
|
136
119
|
# Custom attribute writer method with validation
|
|
137
120
|
# @param [Object] url Value to be assigned
|
|
138
121
|
def url=(url)
|
|
@@ -158,9 +141,9 @@ module DaytonaApiClient
|
|
|
158
141
|
def ==(o)
|
|
159
142
|
return true if self.equal?(o)
|
|
160
143
|
self.class == o.class &&
|
|
161
|
-
sandbox_id == o.sandbox_id &&
|
|
162
144
|
url == o.url &&
|
|
163
|
-
token == o.token
|
|
145
|
+
token == o.token &&
|
|
146
|
+
legacy_proxy_url == o.legacy_proxy_url
|
|
164
147
|
end
|
|
165
148
|
|
|
166
149
|
# @see the `==` method
|
|
@@ -172,7 +155,7 @@ module DaytonaApiClient
|
|
|
172
155
|
# Calculates hash code according to all attributes.
|
|
173
156
|
# @return [Integer] Hash code
|
|
174
157
|
def hash
|
|
175
|
-
[
|
|
158
|
+
[url, token, legacy_proxy_url].hash
|
|
176
159
|
end
|
|
177
160
|
|
|
178
161
|
# Builds the object from hash
|
|
@@ -15,67 +15,13 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module DaytonaApiClient
|
|
17
17
|
class Region
|
|
18
|
-
# Region ID
|
|
19
|
-
attr_accessor :id
|
|
20
|
-
|
|
21
18
|
# Region name
|
|
22
19
|
attr_accessor :name
|
|
23
20
|
|
|
24
|
-
# Organization ID
|
|
25
|
-
attr_accessor :organization_id
|
|
26
|
-
|
|
27
|
-
# The type of the region
|
|
28
|
-
attr_accessor :region_type
|
|
29
|
-
|
|
30
|
-
# Creation timestamp
|
|
31
|
-
attr_accessor :created_at
|
|
32
|
-
|
|
33
|
-
# Last update timestamp
|
|
34
|
-
attr_accessor :updated_at
|
|
35
|
-
|
|
36
|
-
# Proxy URL for the region
|
|
37
|
-
attr_accessor :proxy_url
|
|
38
|
-
|
|
39
|
-
# SSH Gateway URL for the region
|
|
40
|
-
attr_accessor :ssh_gateway_url
|
|
41
|
-
|
|
42
|
-
# Snapshot Manager URL for the region
|
|
43
|
-
attr_accessor :snapshot_manager_url
|
|
44
|
-
|
|
45
|
-
class EnumAttributeValidator
|
|
46
|
-
attr_reader :datatype
|
|
47
|
-
attr_reader :allowable_values
|
|
48
|
-
|
|
49
|
-
def initialize(datatype, allowable_values)
|
|
50
|
-
@allowable_values = allowable_values.map do |value|
|
|
51
|
-
case datatype.to_s
|
|
52
|
-
when /Integer/i
|
|
53
|
-
value.to_i
|
|
54
|
-
when /Float/i
|
|
55
|
-
value.to_f
|
|
56
|
-
else
|
|
57
|
-
value
|
|
58
|
-
end
|
|
59
|
-
end
|
|
60
|
-
end
|
|
61
|
-
|
|
62
|
-
def valid?(value)
|
|
63
|
-
!value || allowable_values.include?(value)
|
|
64
|
-
end
|
|
65
|
-
end
|
|
66
|
-
|
|
67
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
68
22
|
def self.attribute_map
|
|
69
23
|
{
|
|
70
|
-
:'
|
|
71
|
-
:'name' => :'name',
|
|
72
|
-
:'organization_id' => :'organizationId',
|
|
73
|
-
:'region_type' => :'regionType',
|
|
74
|
-
:'created_at' => :'createdAt',
|
|
75
|
-
:'updated_at' => :'updatedAt',
|
|
76
|
-
:'proxy_url' => :'proxyUrl',
|
|
77
|
-
:'ssh_gateway_url' => :'sshGatewayUrl',
|
|
78
|
-
:'snapshot_manager_url' => :'snapshotManagerUrl'
|
|
24
|
+
:'name' => :'name'
|
|
79
25
|
}
|
|
80
26
|
end
|
|
81
27
|
|
|
@@ -92,25 +38,13 @@ module DaytonaApiClient
|
|
|
92
38
|
# Attribute type mapping.
|
|
93
39
|
def self.openapi_types
|
|
94
40
|
{
|
|
95
|
-
:'
|
|
96
|
-
:'name' => :'String',
|
|
97
|
-
:'organization_id' => :'String',
|
|
98
|
-
:'region_type' => :'RegionType',
|
|
99
|
-
:'created_at' => :'String',
|
|
100
|
-
:'updated_at' => :'String',
|
|
101
|
-
:'proxy_url' => :'String',
|
|
102
|
-
:'ssh_gateway_url' => :'String',
|
|
103
|
-
:'snapshot_manager_url' => :'String'
|
|
41
|
+
:'name' => :'String'
|
|
104
42
|
}
|
|
105
43
|
end
|
|
106
44
|
|
|
107
45
|
# List of attributes with nullable: true
|
|
108
46
|
def self.openapi_nullable
|
|
109
47
|
Set.new([
|
|
110
|
-
:'organization_id',
|
|
111
|
-
:'proxy_url',
|
|
112
|
-
:'ssh_gateway_url',
|
|
113
|
-
:'snapshot_manager_url'
|
|
114
48
|
])
|
|
115
49
|
end
|
|
116
50
|
|
|
@@ -130,51 +64,11 @@ module DaytonaApiClient
|
|
|
130
64
|
h[k.to_sym] = v
|
|
131
65
|
}
|
|
132
66
|
|
|
133
|
-
if attributes.key?(:'id')
|
|
134
|
-
self.id = attributes[:'id']
|
|
135
|
-
else
|
|
136
|
-
self.id = nil
|
|
137
|
-
end
|
|
138
|
-
|
|
139
67
|
if attributes.key?(:'name')
|
|
140
68
|
self.name = attributes[:'name']
|
|
141
69
|
else
|
|
142
70
|
self.name = nil
|
|
143
71
|
end
|
|
144
|
-
|
|
145
|
-
if attributes.key?(:'organization_id')
|
|
146
|
-
self.organization_id = attributes[:'organization_id']
|
|
147
|
-
end
|
|
148
|
-
|
|
149
|
-
if attributes.key?(:'region_type')
|
|
150
|
-
self.region_type = attributes[:'region_type']
|
|
151
|
-
else
|
|
152
|
-
self.region_type = nil
|
|
153
|
-
end
|
|
154
|
-
|
|
155
|
-
if attributes.key?(:'created_at')
|
|
156
|
-
self.created_at = attributes[:'created_at']
|
|
157
|
-
else
|
|
158
|
-
self.created_at = nil
|
|
159
|
-
end
|
|
160
|
-
|
|
161
|
-
if attributes.key?(:'updated_at')
|
|
162
|
-
self.updated_at = attributes[:'updated_at']
|
|
163
|
-
else
|
|
164
|
-
self.updated_at = nil
|
|
165
|
-
end
|
|
166
|
-
|
|
167
|
-
if attributes.key?(:'proxy_url')
|
|
168
|
-
self.proxy_url = attributes[:'proxy_url']
|
|
169
|
-
end
|
|
170
|
-
|
|
171
|
-
if attributes.key?(:'ssh_gateway_url')
|
|
172
|
-
self.ssh_gateway_url = attributes[:'ssh_gateway_url']
|
|
173
|
-
end
|
|
174
|
-
|
|
175
|
-
if attributes.key?(:'snapshot_manager_url')
|
|
176
|
-
self.snapshot_manager_url = attributes[:'snapshot_manager_url']
|
|
177
|
-
end
|
|
178
72
|
end
|
|
179
73
|
|
|
180
74
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -182,26 +76,10 @@ module DaytonaApiClient
|
|
|
182
76
|
def list_invalid_properties
|
|
183
77
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
184
78
|
invalid_properties = Array.new
|
|
185
|
-
if @id.nil?
|
|
186
|
-
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
187
|
-
end
|
|
188
|
-
|
|
189
79
|
if @name.nil?
|
|
190
80
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
191
81
|
end
|
|
192
82
|
|
|
193
|
-
if @region_type.nil?
|
|
194
|
-
invalid_properties.push('invalid value for "region_type", region_type cannot be nil.')
|
|
195
|
-
end
|
|
196
|
-
|
|
197
|
-
if @created_at.nil?
|
|
198
|
-
invalid_properties.push('invalid value for "created_at", created_at cannot be nil.')
|
|
199
|
-
end
|
|
200
|
-
|
|
201
|
-
if @updated_at.nil?
|
|
202
|
-
invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.')
|
|
203
|
-
end
|
|
204
|
-
|
|
205
83
|
invalid_properties
|
|
206
84
|
end
|
|
207
85
|
|
|
@@ -209,24 +87,10 @@ module DaytonaApiClient
|
|
|
209
87
|
# @return true if the model is valid
|
|
210
88
|
def valid?
|
|
211
89
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
212
|
-
return false if @id.nil?
|
|
213
90
|
return false if @name.nil?
|
|
214
|
-
return false if @region_type.nil?
|
|
215
|
-
return false if @created_at.nil?
|
|
216
|
-
return false if @updated_at.nil?
|
|
217
91
|
true
|
|
218
92
|
end
|
|
219
93
|
|
|
220
|
-
# Custom attribute writer method with validation
|
|
221
|
-
# @param [Object] id Value to be assigned
|
|
222
|
-
def id=(id)
|
|
223
|
-
if id.nil?
|
|
224
|
-
fail ArgumentError, 'id cannot be nil'
|
|
225
|
-
end
|
|
226
|
-
|
|
227
|
-
@id = id
|
|
228
|
-
end
|
|
229
|
-
|
|
230
94
|
# Custom attribute writer method with validation
|
|
231
95
|
# @param [Object] name Value to be assigned
|
|
232
96
|
def name=(name)
|
|
@@ -237,50 +101,12 @@ module DaytonaApiClient
|
|
|
237
101
|
@name = name
|
|
238
102
|
end
|
|
239
103
|
|
|
240
|
-
# Custom attribute writer method with validation
|
|
241
|
-
# @param [Object] region_type Value to be assigned
|
|
242
|
-
def region_type=(region_type)
|
|
243
|
-
if region_type.nil?
|
|
244
|
-
fail ArgumentError, 'region_type cannot be nil'
|
|
245
|
-
end
|
|
246
|
-
|
|
247
|
-
@region_type = region_type
|
|
248
|
-
end
|
|
249
|
-
|
|
250
|
-
# Custom attribute writer method with validation
|
|
251
|
-
# @param [Object] created_at Value to be assigned
|
|
252
|
-
def created_at=(created_at)
|
|
253
|
-
if created_at.nil?
|
|
254
|
-
fail ArgumentError, 'created_at cannot be nil'
|
|
255
|
-
end
|
|
256
|
-
|
|
257
|
-
@created_at = created_at
|
|
258
|
-
end
|
|
259
|
-
|
|
260
|
-
# Custom attribute writer method with validation
|
|
261
|
-
# @param [Object] updated_at Value to be assigned
|
|
262
|
-
def updated_at=(updated_at)
|
|
263
|
-
if updated_at.nil?
|
|
264
|
-
fail ArgumentError, 'updated_at cannot be nil'
|
|
265
|
-
end
|
|
266
|
-
|
|
267
|
-
@updated_at = updated_at
|
|
268
|
-
end
|
|
269
|
-
|
|
270
104
|
# Checks equality by comparing each attribute.
|
|
271
105
|
# @param [Object] Object to be compared
|
|
272
106
|
def ==(o)
|
|
273
107
|
return true if self.equal?(o)
|
|
274
108
|
self.class == o.class &&
|
|
275
|
-
|
|
276
|
-
name == o.name &&
|
|
277
|
-
organization_id == o.organization_id &&
|
|
278
|
-
region_type == o.region_type &&
|
|
279
|
-
created_at == o.created_at &&
|
|
280
|
-
updated_at == o.updated_at &&
|
|
281
|
-
proxy_url == o.proxy_url &&
|
|
282
|
-
ssh_gateway_url == o.ssh_gateway_url &&
|
|
283
|
-
snapshot_manager_url == o.snapshot_manager_url
|
|
109
|
+
name == o.name
|
|
284
110
|
end
|
|
285
111
|
|
|
286
112
|
# @see the `==` method
|
|
@@ -292,7 +118,7 @@ module DaytonaApiClient
|
|
|
292
118
|
# Calculates hash code according to all attributes.
|
|
293
119
|
# @return [Integer] Hash code
|
|
294
120
|
def hash
|
|
295
|
-
[
|
|
121
|
+
[name].hash
|
|
296
122
|
end
|
|
297
123
|
|
|
298
124
|
# Builds the object from hash
|