daytona_api_client 0.126.0.pre.alpha.5 → 0.134.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 +23 -0
- data/.openapi-generator-ignore +0 -2
- data/daytona_api_client.gemspec +1 -1
- data/fix-gemspec.sh +1 -1
- data/lib/daytona_api_client/api/admin_api.rb +325 -0
- data/lib/daytona_api_client/api/docker_registry_api.rb +3 -0
- data/lib/daytona_api_client/api/jobs_api.rb +299 -0
- data/lib/daytona_api_client/api/organizations_api.rb +518 -0
- data/lib/daytona_api_client/api/preview_api.rb +67 -0
- data/lib/daytona_api_client/api/regions_api.rb +9 -15
- data/lib/daytona_api_client/api/runners_api.rb +291 -23
- data/lib/daytona_api_client/api/sandbox_api.rb +277 -0
- data/lib/daytona_api_client/api/snapshots_api.rb +66 -0
- data/lib/daytona_api_client/models/admin_create_runner.rb +385 -0
- data/lib/daytona_api_client/models/build_info.rb +31 -4
- data/lib/daytona_api_client/models/create_region.rb +269 -0
- data/lib/daytona_api_client/models/create_region_response.rb +280 -0
- data/lib/daytona_api_client/models/create_runner.rb +31 -315
- data/lib/daytona_api_client/models/create_runner_response.rb +263 -0
- data/lib/daytona_api_client/models/create_snapshot.rb +14 -4
- data/lib/daytona_api_client/models/{create_audit_log.rb → job.rb} +166 -79
- data/lib/daytona_api_client/models/job_status.rb +42 -0
- data/lib/daytona_api_client/models/job_type.rb +49 -0
- data/lib/daytona_api_client/models/{paginated_snapshots_dto.rb → paginated_jobs.rb} +4 -4
- data/lib/daytona_api_client/models/poll_jobs_response.rb +238 -0
- data/lib/daytona_api_client/models/regenerate_api_key_response.rb +236 -0
- data/lib/daytona_api_client/models/region.rb +86 -4
- data/lib/daytona_api_client/models/region_type.rb +41 -0
- data/lib/daytona_api_client/models/runner.rb +79 -117
- data/lib/daytona_api_client/models/runner_full.rb +779 -0
- data/lib/daytona_api_client/models/runner_health_metrics.rb +533 -0
- data/lib/daytona_api_client/models/runner_healthcheck.rb +276 -0
- data/lib/daytona_api_client/models/runner_snapshot_dto.rb +0 -17
- data/lib/daytona_api_client/models/sandbox.rb +14 -4
- data/lib/daytona_api_client/models/signed_port_preview_url.rb +317 -0
- data/lib/daytona_api_client/models/snapshot_dto.rb +36 -4
- data/lib/daytona_api_client/models/snapshot_manager_credentials.rb +263 -0
- data/lib/daytona_api_client/models/ssh_access_dto.rb +31 -4
- data/lib/daytona_api_client/models/toolbox_proxy_url.rb +236 -0
- data/lib/daytona_api_client/models/update_job_status.rb +278 -0
- data/lib/daytona_api_client/models/update_region.rb +242 -0
- data/lib/daytona_api_client/models/update_sandbox_state_dto.rb +14 -4
- data/lib/daytona_api_client/models/url.rb +236 -0
- data/lib/daytona_api_client/models/workspace.rb +11 -1
- data/lib/daytona_api_client/version.rb +1 -1
- data/lib/daytona_api_client.rb +22 -0
- data/project.json +10 -4
- metadata +23 -5
- data/Gemfile +0 -9
- data/Gemfile.lock +0 -101
|
@@ -0,0 +1,236 @@
|
|
|
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.12.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module DaytonaApiClient
|
|
17
|
+
class Url
|
|
18
|
+
# URL response
|
|
19
|
+
attr_accessor :url
|
|
20
|
+
|
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
22
|
+
def self.attribute_map
|
|
23
|
+
{
|
|
24
|
+
:'url' => :'url'
|
|
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
|
+
:'url' => :'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::Url` 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::Url`. 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?(:'url')
|
|
68
|
+
self.url = attributes[:'url']
|
|
69
|
+
else
|
|
70
|
+
self.url = 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 @url.nil?
|
|
80
|
+
invalid_properties.push('invalid value for "url", url 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 @url.nil?
|
|
91
|
+
true
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
# Custom attribute writer method with validation
|
|
95
|
+
# @param [Object] url Value to be assigned
|
|
96
|
+
def url=(url)
|
|
97
|
+
if url.nil?
|
|
98
|
+
fail ArgumentError, 'url cannot be nil'
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
@url = url
|
|
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
|
+
url == o.url
|
|
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
|
+
[url].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
|
+
# Deserializes the data based on type
|
|
148
|
+
# @param string type Data type
|
|
149
|
+
# @param string value Value to be deserialized
|
|
150
|
+
# @return [Object] Deserialized data
|
|
151
|
+
def self._deserialize(type, value)
|
|
152
|
+
case type.to_sym
|
|
153
|
+
when :Time
|
|
154
|
+
Time.parse(value)
|
|
155
|
+
when :Date
|
|
156
|
+
Date.parse(value)
|
|
157
|
+
when :String
|
|
158
|
+
value.to_s
|
|
159
|
+
when :Integer
|
|
160
|
+
value.to_i
|
|
161
|
+
when :Float
|
|
162
|
+
value.to_f
|
|
163
|
+
when :Boolean
|
|
164
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
165
|
+
true
|
|
166
|
+
else
|
|
167
|
+
false
|
|
168
|
+
end
|
|
169
|
+
when :Object
|
|
170
|
+
# generic object (usually a Hash), return directly
|
|
171
|
+
value
|
|
172
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
173
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
174
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
175
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
176
|
+
k_type = Regexp.last_match[:k_type]
|
|
177
|
+
v_type = Regexp.last_match[:v_type]
|
|
178
|
+
{}.tap do |hash|
|
|
179
|
+
value.each do |k, v|
|
|
180
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
181
|
+
end
|
|
182
|
+
end
|
|
183
|
+
else # model
|
|
184
|
+
# models (e.g. Pet) or oneOf
|
|
185
|
+
klass = DaytonaApiClient.const_get(type)
|
|
186
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
187
|
+
end
|
|
188
|
+
end
|
|
189
|
+
|
|
190
|
+
# Returns the string representation of the object
|
|
191
|
+
# @return [String] String presentation of the object
|
|
192
|
+
def to_s
|
|
193
|
+
to_hash.to_s
|
|
194
|
+
end
|
|
195
|
+
|
|
196
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
197
|
+
# @return [Hash] Returns the object in the form of hash
|
|
198
|
+
def to_body
|
|
199
|
+
to_hash
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
# Returns the object in the form of hash
|
|
203
|
+
# @return [Hash] Returns the object in the form of hash
|
|
204
|
+
def to_hash
|
|
205
|
+
hash = {}
|
|
206
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
207
|
+
value = self.send(attr)
|
|
208
|
+
if value.nil?
|
|
209
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
210
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
hash[param] = _to_hash(value)
|
|
214
|
+
end
|
|
215
|
+
hash
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
# Outputs non-array value in the form of hash
|
|
219
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
220
|
+
# @param [Object] value Any valid value
|
|
221
|
+
# @return [Hash] Returns the value in the form of hash
|
|
222
|
+
def _to_hash(value)
|
|
223
|
+
if value.is_a?(Array)
|
|
224
|
+
value.compact.map { |v| _to_hash(v) }
|
|
225
|
+
elsif value.is_a?(Hash)
|
|
226
|
+
{}.tap do |hash|
|
|
227
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
228
|
+
end
|
|
229
|
+
elsif value.respond_to? :to_hash
|
|
230
|
+
value.to_hash
|
|
231
|
+
else
|
|
232
|
+
value
|
|
233
|
+
end
|
|
234
|
+
end
|
|
235
|
+
end
|
|
236
|
+
end
|
|
@@ -105,6 +105,9 @@ module DaytonaApiClient
|
|
|
105
105
|
# The version of the daemon running in the sandbox
|
|
106
106
|
attr_accessor :daemon_version
|
|
107
107
|
|
|
108
|
+
# The runner ID of the sandbox
|
|
109
|
+
attr_accessor :runner_id
|
|
110
|
+
|
|
108
111
|
# The image used for the workspace
|
|
109
112
|
attr_accessor :image
|
|
110
113
|
|
|
@@ -172,6 +175,7 @@ module DaytonaApiClient
|
|
|
172
175
|
:'updated_at' => :'updatedAt',
|
|
173
176
|
:'_class' => :'class',
|
|
174
177
|
:'daemon_version' => :'daemonVersion',
|
|
178
|
+
:'runner_id' => :'runnerId',
|
|
175
179
|
:'image' => :'image',
|
|
176
180
|
:'snapshot_state' => :'snapshotState',
|
|
177
181
|
:'snapshot_created_at' => :'snapshotCreatedAt',
|
|
@@ -222,6 +226,7 @@ module DaytonaApiClient
|
|
|
222
226
|
:'updated_at' => :'String',
|
|
223
227
|
:'_class' => :'String',
|
|
224
228
|
:'daemon_version' => :'String',
|
|
229
|
+
:'runner_id' => :'String',
|
|
225
230
|
:'image' => :'String',
|
|
226
231
|
:'snapshot_state' => :'String',
|
|
227
232
|
:'snapshot_created_at' => :'String',
|
|
@@ -403,6 +408,10 @@ module DaytonaApiClient
|
|
|
403
408
|
self.daemon_version = attributes[:'daemon_version']
|
|
404
409
|
end
|
|
405
410
|
|
|
411
|
+
if attributes.key?(:'runner_id')
|
|
412
|
+
self.runner_id = attributes[:'runner_id']
|
|
413
|
+
end
|
|
414
|
+
|
|
406
415
|
if attributes.key?(:'image')
|
|
407
416
|
self.image = attributes[:'image']
|
|
408
417
|
end
|
|
@@ -701,6 +710,7 @@ module DaytonaApiClient
|
|
|
701
710
|
updated_at == o.updated_at &&
|
|
702
711
|
_class == o._class &&
|
|
703
712
|
daemon_version == o.daemon_version &&
|
|
713
|
+
runner_id == o.runner_id &&
|
|
704
714
|
image == o.image &&
|
|
705
715
|
snapshot_state == o.snapshot_state &&
|
|
706
716
|
snapshot_created_at == o.snapshot_created_at &&
|
|
@@ -716,7 +726,7 @@ module DaytonaApiClient
|
|
|
716
726
|
# Calculates hash code according to all attributes.
|
|
717
727
|
# @return [Integer] Hash code
|
|
718
728
|
def hash
|
|
719
|
-
[id, organization_id, name, snapshot, user, env, labels, public, network_block_all, network_allow_list, target, cpu, gpu, 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, _class, daemon_version, image, snapshot_state, snapshot_created_at, info].hash
|
|
729
|
+
[id, organization_id, name, snapshot, user, env, labels, public, network_block_all, network_allow_list, target, cpu, gpu, 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, _class, daemon_version, runner_id, image, snapshot_state, snapshot_created_at, info].hash
|
|
720
730
|
end
|
|
721
731
|
|
|
722
732
|
# Builds the object from hash
|
data/lib/daytona_api_client.rb
CHANGED
|
@@ -18,6 +18,7 @@ require 'daytona_api_client/configuration'
|
|
|
18
18
|
|
|
19
19
|
# Models
|
|
20
20
|
require 'daytona_api_client/models/account_provider'
|
|
21
|
+
require 'daytona_api_client/models/admin_create_runner'
|
|
21
22
|
require 'daytona_api_client/models/announcement'
|
|
22
23
|
require 'daytona_api_client/models/api_key_list'
|
|
23
24
|
require 'daytona_api_client/models/api_key_response'
|
|
@@ -39,7 +40,10 @@ require 'daytona_api_client/models/create_organization'
|
|
|
39
40
|
require 'daytona_api_client/models/create_organization_invitation'
|
|
40
41
|
require 'daytona_api_client/models/create_organization_quota'
|
|
41
42
|
require 'daytona_api_client/models/create_organization_role'
|
|
43
|
+
require 'daytona_api_client/models/create_region'
|
|
44
|
+
require 'daytona_api_client/models/create_region_response'
|
|
42
45
|
require 'daytona_api_client/models/create_runner'
|
|
46
|
+
require 'daytona_api_client/models/create_runner_response'
|
|
43
47
|
require 'daytona_api_client/models/create_sandbox'
|
|
44
48
|
require 'daytona_api_client/models/create_session_request'
|
|
45
49
|
require 'daytona_api_client/models/create_snapshot'
|
|
@@ -67,6 +71,9 @@ require 'daytona_api_client/models/git_status'
|
|
|
67
71
|
require 'daytona_api_client/models/health_controller_check200_response'
|
|
68
72
|
require 'daytona_api_client/models/health_controller_check200_response_info_value'
|
|
69
73
|
require 'daytona_api_client/models/health_controller_check503_response'
|
|
74
|
+
require 'daytona_api_client/models/job'
|
|
75
|
+
require 'daytona_api_client/models/job_status'
|
|
76
|
+
require 'daytona_api_client/models/job_type'
|
|
70
77
|
require 'daytona_api_client/models/keyboard_hotkey_request'
|
|
71
78
|
require 'daytona_api_client/models/keyboard_press_request'
|
|
72
79
|
require 'daytona_api_client/models/keyboard_type_request'
|
|
@@ -95,8 +102,10 @@ require 'daytona_api_client/models/organization_suspension'
|
|
|
95
102
|
require 'daytona_api_client/models/organization_usage_overview'
|
|
96
103
|
require 'daytona_api_client/models/organization_user'
|
|
97
104
|
require 'daytona_api_client/models/paginated_audit_logs'
|
|
105
|
+
require 'daytona_api_client/models/paginated_jobs'
|
|
98
106
|
require 'daytona_api_client/models/paginated_sandboxes'
|
|
99
107
|
require 'daytona_api_client/models/paginated_snapshots'
|
|
108
|
+
require 'daytona_api_client/models/poll_jobs_response'
|
|
100
109
|
require 'daytona_api_client/models/port_preview_url'
|
|
101
110
|
require 'daytona_api_client/models/position'
|
|
102
111
|
require 'daytona_api_client/models/posthog_config'
|
|
@@ -113,14 +122,19 @@ require 'daytona_api_client/models/pty_session_info'
|
|
|
113
122
|
require 'daytona_api_client/models/range'
|
|
114
123
|
require 'daytona_api_client/models/rate_limit_config'
|
|
115
124
|
require 'daytona_api_client/models/rate_limit_entry'
|
|
125
|
+
require 'daytona_api_client/models/regenerate_api_key_response'
|
|
116
126
|
require 'daytona_api_client/models/region'
|
|
117
127
|
require 'daytona_api_client/models/region_quota'
|
|
118
128
|
require 'daytona_api_client/models/region_screenshot_response'
|
|
129
|
+
require 'daytona_api_client/models/region_type'
|
|
119
130
|
require 'daytona_api_client/models/region_usage_overview'
|
|
120
131
|
require 'daytona_api_client/models/registry_push_access_dto'
|
|
121
132
|
require 'daytona_api_client/models/replace_request'
|
|
122
133
|
require 'daytona_api_client/models/replace_result'
|
|
123
134
|
require 'daytona_api_client/models/runner'
|
|
135
|
+
require 'daytona_api_client/models/runner_full'
|
|
136
|
+
require 'daytona_api_client/models/runner_health_metrics'
|
|
137
|
+
require 'daytona_api_client/models/runner_healthcheck'
|
|
124
138
|
require 'daytona_api_client/models/runner_snapshot_dto'
|
|
125
139
|
require 'daytona_api_client/models/runner_state'
|
|
126
140
|
require 'daytona_api_client/models/sandbox'
|
|
@@ -137,19 +151,25 @@ require 'daytona_api_client/models/session'
|
|
|
137
151
|
require 'daytona_api_client/models/session_execute_request'
|
|
138
152
|
require 'daytona_api_client/models/session_execute_response'
|
|
139
153
|
require 'daytona_api_client/models/set_snapshot_general_status_dto'
|
|
154
|
+
require 'daytona_api_client/models/signed_port_preview_url'
|
|
140
155
|
require 'daytona_api_client/models/snapshot_dto'
|
|
156
|
+
require 'daytona_api_client/models/snapshot_manager_credentials'
|
|
141
157
|
require 'daytona_api_client/models/snapshot_state'
|
|
142
158
|
require 'daytona_api_client/models/ssh_access_dto'
|
|
143
159
|
require 'daytona_api_client/models/ssh_access_validation_dto'
|
|
144
160
|
require 'daytona_api_client/models/storage_access_dto'
|
|
161
|
+
require 'daytona_api_client/models/toolbox_proxy_url'
|
|
145
162
|
require 'daytona_api_client/models/update_docker_registry'
|
|
163
|
+
require 'daytona_api_client/models/update_job_status'
|
|
146
164
|
require 'daytona_api_client/models/update_organization_default_region'
|
|
147
165
|
require 'daytona_api_client/models/update_organization_invitation'
|
|
148
166
|
require 'daytona_api_client/models/update_organization_member_access'
|
|
149
167
|
require 'daytona_api_client/models/update_organization_quota'
|
|
150
168
|
require 'daytona_api_client/models/update_organization_region_quota'
|
|
151
169
|
require 'daytona_api_client/models/update_organization_role'
|
|
170
|
+
require 'daytona_api_client/models/update_region'
|
|
152
171
|
require 'daytona_api_client/models/update_sandbox_state_dto'
|
|
172
|
+
require 'daytona_api_client/models/url'
|
|
153
173
|
require 'daytona_api_client/models/user'
|
|
154
174
|
require 'daytona_api_client/models/user_home_dir_response'
|
|
155
175
|
require 'daytona_api_client/models/user_public_key'
|
|
@@ -164,11 +184,13 @@ require 'daytona_api_client/models/workspace'
|
|
|
164
184
|
require 'daytona_api_client/models/workspace_port_preview_url'
|
|
165
185
|
|
|
166
186
|
# APIs
|
|
187
|
+
require 'daytona_api_client/api/admin_api'
|
|
167
188
|
require 'daytona_api_client/api/api_keys_api'
|
|
168
189
|
require 'daytona_api_client/api/audit_api'
|
|
169
190
|
require 'daytona_api_client/api/config_api'
|
|
170
191
|
require 'daytona_api_client/api/docker_registry_api'
|
|
171
192
|
require 'daytona_api_client/api/health_api'
|
|
193
|
+
require 'daytona_api_client/api/jobs_api'
|
|
172
194
|
require 'daytona_api_client/api/object_storage_api'
|
|
173
195
|
require 'daytona_api_client/api/organizations_api'
|
|
174
196
|
require 'daytona_api_client/api/preview_api'
|
data/project.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"executor": "nx:run-commands",
|
|
19
19
|
"options": {
|
|
20
20
|
"cwd": "{projectRoot}",
|
|
21
|
-
"command": "if [ -n \"$RUBYGEMS_PKG_VERSION\" ]
|
|
21
|
+
"command": "if [ -n \"$RUBYGEMS_PKG_VERSION\" ]; then sed -i \"s/VERSION = '[^']*'/VERSION = '$RUBYGEMS_PKG_VERSION'/\" lib/daytona_api_client/version.rb && echo \"Changed version to $RUBYGEMS_PKG_VERSION\"; else echo \"Using version from version.rb\"; fi"
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
"lint": {
|
|
@@ -32,9 +32,11 @@
|
|
|
32
32
|
"executor": "nx:run-commands",
|
|
33
33
|
"options": {
|
|
34
34
|
"commands": [
|
|
35
|
-
"
|
|
35
|
+
"rm -rf libs/api-client-ruby/lib",
|
|
36
|
+
"yarn run openapi-generator-cli generate -i dist/apps/api/openapi.json -g ruby --additional-properties=gemAuthor=daytonaio,gemAuthorEmail=support@daytona.io,gemDescription=\\\"Daytona API Client\\\",gemHomepage=\\\"https://github.com/daytonaio/daytona\\\",gemVersion=$DEFAULT_GEM_VERSION,gemName=daytona_api_client -o libs/api-client-ruby",
|
|
36
37
|
"bash libs/api-client-ruby/fix-gemspec.sh",
|
|
37
|
-
"cd libs/api-client-ruby && bundle install"
|
|
38
|
+
"cd libs/api-client-ruby && bundle install",
|
|
39
|
+
"cd libs/api-client-ruby && bundle exec rubocop -a --fail-level=E"
|
|
38
40
|
],
|
|
39
41
|
"parallel": false
|
|
40
42
|
}
|
|
@@ -51,7 +53,11 @@
|
|
|
51
53
|
"executor": "nx:run-commands",
|
|
52
54
|
"options": {
|
|
53
55
|
"cwd": "{projectRoot}",
|
|
54
|
-
"
|
|
56
|
+
"commands": [
|
|
57
|
+
"mkdir -p ~/.gem && echo \":rubygems: $RUBYGEMS_API_KEY\" > ~/.gem/credentials && chmod 0600 ~/.gem/credentials",
|
|
58
|
+
"gem push daytona_api_client-*.gem --key rubygems --host https://rubygems.org"
|
|
59
|
+
],
|
|
60
|
+
"parallel": false
|
|
55
61
|
},
|
|
56
62
|
"dependsOn": ["build"]
|
|
57
63
|
}
|
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.134.0.alpha.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- daytonaio
|
|
@@ -62,17 +62,17 @@ files:
|
|
|
62
62
|
- ".openapi-generator/VERSION"
|
|
63
63
|
- ".rspec"
|
|
64
64
|
- ".rubocop.yml"
|
|
65
|
-
- Gemfile
|
|
66
|
-
- Gemfile.lock
|
|
67
65
|
- Rakefile
|
|
68
66
|
- daytona_api_client.gemspec
|
|
69
67
|
- fix-gemspec.sh
|
|
70
68
|
- lib/daytona_api_client.rb
|
|
69
|
+
- lib/daytona_api_client/api/admin_api.rb
|
|
71
70
|
- lib/daytona_api_client/api/api_keys_api.rb
|
|
72
71
|
- lib/daytona_api_client/api/audit_api.rb
|
|
73
72
|
- lib/daytona_api_client/api/config_api.rb
|
|
74
73
|
- lib/daytona_api_client/api/docker_registry_api.rb
|
|
75
74
|
- lib/daytona_api_client/api/health_api.rb
|
|
75
|
+
- lib/daytona_api_client/api/jobs_api.rb
|
|
76
76
|
- lib/daytona_api_client/api/object_storage_api.rb
|
|
77
77
|
- lib/daytona_api_client/api/organizations_api.rb
|
|
78
78
|
- lib/daytona_api_client/api/preview_api.rb
|
|
@@ -89,6 +89,7 @@ files:
|
|
|
89
89
|
- lib/daytona_api_client/api_error.rb
|
|
90
90
|
- lib/daytona_api_client/configuration.rb
|
|
91
91
|
- lib/daytona_api_client/models/account_provider.rb
|
|
92
|
+
- lib/daytona_api_client/models/admin_create_runner.rb
|
|
92
93
|
- lib/daytona_api_client/models/announcement.rb
|
|
93
94
|
- lib/daytona_api_client/models/api_key_list.rb
|
|
94
95
|
- lib/daytona_api_client/models/api_key_response.rb
|
|
@@ -103,7 +104,6 @@ files:
|
|
|
103
104
|
- lib/daytona_api_client/models/computer_use_status_response.rb
|
|
104
105
|
- lib/daytona_api_client/models/computer_use_stop_response.rb
|
|
105
106
|
- lib/daytona_api_client/models/create_api_key.rb
|
|
106
|
-
- lib/daytona_api_client/models/create_audit_log.rb
|
|
107
107
|
- lib/daytona_api_client/models/create_build_info.rb
|
|
108
108
|
- lib/daytona_api_client/models/create_docker_registry.rb
|
|
109
109
|
- lib/daytona_api_client/models/create_linked_account.rb
|
|
@@ -111,7 +111,10 @@ files:
|
|
|
111
111
|
- lib/daytona_api_client/models/create_organization_invitation.rb
|
|
112
112
|
- lib/daytona_api_client/models/create_organization_quota.rb
|
|
113
113
|
- lib/daytona_api_client/models/create_organization_role.rb
|
|
114
|
+
- lib/daytona_api_client/models/create_region.rb
|
|
115
|
+
- lib/daytona_api_client/models/create_region_response.rb
|
|
114
116
|
- lib/daytona_api_client/models/create_runner.rb
|
|
117
|
+
- lib/daytona_api_client/models/create_runner_response.rb
|
|
115
118
|
- lib/daytona_api_client/models/create_sandbox.rb
|
|
116
119
|
- lib/daytona_api_client/models/create_session_request.rb
|
|
117
120
|
- lib/daytona_api_client/models/create_snapshot.rb
|
|
@@ -139,6 +142,9 @@ files:
|
|
|
139
142
|
- lib/daytona_api_client/models/health_controller_check200_response.rb
|
|
140
143
|
- lib/daytona_api_client/models/health_controller_check200_response_info_value.rb
|
|
141
144
|
- lib/daytona_api_client/models/health_controller_check503_response.rb
|
|
145
|
+
- lib/daytona_api_client/models/job.rb
|
|
146
|
+
- lib/daytona_api_client/models/job_status.rb
|
|
147
|
+
- lib/daytona_api_client/models/job_type.rb
|
|
142
148
|
- lib/daytona_api_client/models/keyboard_hotkey_request.rb
|
|
143
149
|
- lib/daytona_api_client/models/keyboard_press_request.rb
|
|
144
150
|
- lib/daytona_api_client/models/keyboard_type_request.rb
|
|
@@ -167,9 +173,10 @@ files:
|
|
|
167
173
|
- lib/daytona_api_client/models/organization_usage_overview.rb
|
|
168
174
|
- lib/daytona_api_client/models/organization_user.rb
|
|
169
175
|
- lib/daytona_api_client/models/paginated_audit_logs.rb
|
|
176
|
+
- lib/daytona_api_client/models/paginated_jobs.rb
|
|
170
177
|
- lib/daytona_api_client/models/paginated_sandboxes.rb
|
|
171
178
|
- lib/daytona_api_client/models/paginated_snapshots.rb
|
|
172
|
-
- lib/daytona_api_client/models/
|
|
179
|
+
- lib/daytona_api_client/models/poll_jobs_response.rb
|
|
173
180
|
- lib/daytona_api_client/models/port_preview_url.rb
|
|
174
181
|
- lib/daytona_api_client/models/position.rb
|
|
175
182
|
- lib/daytona_api_client/models/posthog_config.rb
|
|
@@ -186,14 +193,19 @@ files:
|
|
|
186
193
|
- lib/daytona_api_client/models/range.rb
|
|
187
194
|
- lib/daytona_api_client/models/rate_limit_config.rb
|
|
188
195
|
- lib/daytona_api_client/models/rate_limit_entry.rb
|
|
196
|
+
- lib/daytona_api_client/models/regenerate_api_key_response.rb
|
|
189
197
|
- lib/daytona_api_client/models/region.rb
|
|
190
198
|
- lib/daytona_api_client/models/region_quota.rb
|
|
191
199
|
- lib/daytona_api_client/models/region_screenshot_response.rb
|
|
200
|
+
- lib/daytona_api_client/models/region_type.rb
|
|
192
201
|
- lib/daytona_api_client/models/region_usage_overview.rb
|
|
193
202
|
- lib/daytona_api_client/models/registry_push_access_dto.rb
|
|
194
203
|
- lib/daytona_api_client/models/replace_request.rb
|
|
195
204
|
- lib/daytona_api_client/models/replace_result.rb
|
|
196
205
|
- lib/daytona_api_client/models/runner.rb
|
|
206
|
+
- lib/daytona_api_client/models/runner_full.rb
|
|
207
|
+
- lib/daytona_api_client/models/runner_health_metrics.rb
|
|
208
|
+
- lib/daytona_api_client/models/runner_healthcheck.rb
|
|
197
209
|
- lib/daytona_api_client/models/runner_snapshot_dto.rb
|
|
198
210
|
- lib/daytona_api_client/models/runner_state.rb
|
|
199
211
|
- lib/daytona_api_client/models/sandbox.rb
|
|
@@ -210,19 +222,25 @@ files:
|
|
|
210
222
|
- lib/daytona_api_client/models/session_execute_request.rb
|
|
211
223
|
- lib/daytona_api_client/models/session_execute_response.rb
|
|
212
224
|
- lib/daytona_api_client/models/set_snapshot_general_status_dto.rb
|
|
225
|
+
- lib/daytona_api_client/models/signed_port_preview_url.rb
|
|
213
226
|
- lib/daytona_api_client/models/snapshot_dto.rb
|
|
227
|
+
- lib/daytona_api_client/models/snapshot_manager_credentials.rb
|
|
214
228
|
- lib/daytona_api_client/models/snapshot_state.rb
|
|
215
229
|
- lib/daytona_api_client/models/ssh_access_dto.rb
|
|
216
230
|
- lib/daytona_api_client/models/ssh_access_validation_dto.rb
|
|
217
231
|
- lib/daytona_api_client/models/storage_access_dto.rb
|
|
232
|
+
- lib/daytona_api_client/models/toolbox_proxy_url.rb
|
|
218
233
|
- lib/daytona_api_client/models/update_docker_registry.rb
|
|
234
|
+
- lib/daytona_api_client/models/update_job_status.rb
|
|
219
235
|
- lib/daytona_api_client/models/update_organization_default_region.rb
|
|
220
236
|
- lib/daytona_api_client/models/update_organization_invitation.rb
|
|
221
237
|
- lib/daytona_api_client/models/update_organization_member_access.rb
|
|
222
238
|
- lib/daytona_api_client/models/update_organization_quota.rb
|
|
223
239
|
- lib/daytona_api_client/models/update_organization_region_quota.rb
|
|
224
240
|
- lib/daytona_api_client/models/update_organization_role.rb
|
|
241
|
+
- lib/daytona_api_client/models/update_region.rb
|
|
225
242
|
- lib/daytona_api_client/models/update_sandbox_state_dto.rb
|
|
243
|
+
- lib/daytona_api_client/models/url.rb
|
|
226
244
|
- lib/daytona_api_client/models/user.rb
|
|
227
245
|
- lib/daytona_api_client/models/user_home_dir_response.rb
|
|
228
246
|
- lib/daytona_api_client/models/user_public_key.rb
|
data/Gemfile
DELETED
data/Gemfile.lock
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: .
|
|
3
|
-
specs:
|
|
4
|
-
daytona_api_client (0.126.0.pre.alpha.5)
|
|
5
|
-
typhoeus (~> 1.0, >= 1.0.1)
|
|
6
|
-
|
|
7
|
-
GEM
|
|
8
|
-
remote: https://rubygems.org/
|
|
9
|
-
specs:
|
|
10
|
-
ast (2.4.3)
|
|
11
|
-
byebug (12.0.0)
|
|
12
|
-
coderay (1.1.3)
|
|
13
|
-
diff-lcs (1.6.2)
|
|
14
|
-
ethon (0.15.0)
|
|
15
|
-
ffi (>= 1.15.0)
|
|
16
|
-
ffi (1.17.2)
|
|
17
|
-
ffi (1.17.2-aarch64-linux-gnu)
|
|
18
|
-
ffi (1.17.2-aarch64-linux-musl)
|
|
19
|
-
ffi (1.17.2-arm-linux-gnu)
|
|
20
|
-
ffi (1.17.2-arm-linux-musl)
|
|
21
|
-
ffi (1.17.2-arm64-darwin)
|
|
22
|
-
ffi (1.17.2-x86-linux-gnu)
|
|
23
|
-
ffi (1.17.2-x86-linux-musl)
|
|
24
|
-
ffi (1.17.2-x86_64-darwin)
|
|
25
|
-
ffi (1.17.2-x86_64-linux-gnu)
|
|
26
|
-
ffi (1.17.2-x86_64-linux-musl)
|
|
27
|
-
json (2.18.0)
|
|
28
|
-
language_server-protocol (3.17.0.5)
|
|
29
|
-
lint_roller (1.1.0)
|
|
30
|
-
method_source (1.1.0)
|
|
31
|
-
parallel (1.27.0)
|
|
32
|
-
parser (3.3.10.0)
|
|
33
|
-
ast (~> 2.4.1)
|
|
34
|
-
racc
|
|
35
|
-
prism (1.6.0)
|
|
36
|
-
pry (0.15.2)
|
|
37
|
-
coderay (~> 1.1)
|
|
38
|
-
method_source (~> 1.0)
|
|
39
|
-
pry-byebug (3.11.0)
|
|
40
|
-
byebug (~> 12.0)
|
|
41
|
-
pry (>= 0.13, < 0.16)
|
|
42
|
-
racc (1.8.1)
|
|
43
|
-
rainbow (3.1.1)
|
|
44
|
-
rake (13.3.1)
|
|
45
|
-
regexp_parser (2.11.3)
|
|
46
|
-
rspec (3.13.2)
|
|
47
|
-
rspec-core (~> 3.13.0)
|
|
48
|
-
rspec-expectations (~> 3.13.0)
|
|
49
|
-
rspec-mocks (~> 3.13.0)
|
|
50
|
-
rspec-core (3.13.6)
|
|
51
|
-
rspec-support (~> 3.13.0)
|
|
52
|
-
rspec-expectations (3.13.5)
|
|
53
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
54
|
-
rspec-support (~> 3.13.0)
|
|
55
|
-
rspec-mocks (3.13.7)
|
|
56
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
57
|
-
rspec-support (~> 3.13.0)
|
|
58
|
-
rspec-support (3.13.6)
|
|
59
|
-
rubocop (1.81.7)
|
|
60
|
-
json (~> 2.3)
|
|
61
|
-
language_server-protocol (~> 3.17.0.2)
|
|
62
|
-
lint_roller (~> 1.1.0)
|
|
63
|
-
parallel (~> 1.10)
|
|
64
|
-
parser (>= 3.3.0.2)
|
|
65
|
-
rainbow (>= 2.2.2, < 4.0)
|
|
66
|
-
regexp_parser (>= 2.9.3, < 3.0)
|
|
67
|
-
rubocop-ast (>= 1.47.1, < 2.0)
|
|
68
|
-
ruby-progressbar (~> 1.7)
|
|
69
|
-
unicode-display_width (>= 2.4.0, < 4.0)
|
|
70
|
-
rubocop-ast (1.48.0)
|
|
71
|
-
parser (>= 3.3.7.2)
|
|
72
|
-
prism (~> 1.4)
|
|
73
|
-
ruby-progressbar (1.13.0)
|
|
74
|
-
typhoeus (1.5.0)
|
|
75
|
-
ethon (>= 0.9.0, < 0.16.0)
|
|
76
|
-
unicode-display_width (3.2.0)
|
|
77
|
-
unicode-emoji (~> 4.1)
|
|
78
|
-
unicode-emoji (4.1.0)
|
|
79
|
-
|
|
80
|
-
PLATFORMS
|
|
81
|
-
aarch64-linux-gnu
|
|
82
|
-
aarch64-linux-musl
|
|
83
|
-
arm-linux-gnu
|
|
84
|
-
arm-linux-musl
|
|
85
|
-
arm64-darwin
|
|
86
|
-
ruby
|
|
87
|
-
x86-linux-gnu
|
|
88
|
-
x86-linux-musl
|
|
89
|
-
x86_64-darwin
|
|
90
|
-
x86_64-linux-gnu
|
|
91
|
-
x86_64-linux-musl
|
|
92
|
-
|
|
93
|
-
DEPENDENCIES
|
|
94
|
-
daytona_api_client!
|
|
95
|
-
pry-byebug
|
|
96
|
-
rake (~> 13.0)
|
|
97
|
-
rspec (~> 3.6, >= 3.6.0)
|
|
98
|
-
rubocop (~> 1.21)
|
|
99
|
-
|
|
100
|
-
BUNDLED WITH
|
|
101
|
-
2.6.9
|