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
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4aa51026758ed13bd4facfed35b70c0e98f786eed8c406cc75566c9f84dda4d0
|
|
4
|
+
data.tar.gz: 348cda7fc5dd01fe26400ce6b503dff4e65c700be2cefa8ff79e663e7e2f753b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 66832706f0637f9e0b5f7d6295af599df0b1793b50b0ca01ac7c5b4c5b4b0f90ba87f3dc4785d0c934604d871e53f280d99cc75a6a6dae47c303a3bbd2213a32
|
|
7
|
+
data.tar.gz: 80380c73b1f7453e2455b9962f18320d1eebced7342cffebdb56ab78a5ff5b7519c24d4675d506a2d2cb0976b4efe8dea46edc2ab215da42d46b5f5fd3f77516
|
data/.openapi-generator/FILES
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
.gitignore
|
|
2
2
|
.rspec
|
|
3
3
|
.rubocop.yml
|
|
4
|
+
Gemfile
|
|
4
5
|
Rakefile
|
|
5
6
|
lib/daytona_api_client.rb
|
|
7
|
+
lib/daytona_api_client/api/admin_api.rb
|
|
6
8
|
lib/daytona_api_client/api/api_keys_api.rb
|
|
7
9
|
lib/daytona_api_client/api/audit_api.rb
|
|
8
10
|
lib/daytona_api_client/api/config_api.rb
|
|
9
11
|
lib/daytona_api_client/api/docker_registry_api.rb
|
|
10
12
|
lib/daytona_api_client/api/health_api.rb
|
|
13
|
+
lib/daytona_api_client/api/jobs_api.rb
|
|
11
14
|
lib/daytona_api_client/api/object_storage_api.rb
|
|
12
15
|
lib/daytona_api_client/api/organizations_api.rb
|
|
13
16
|
lib/daytona_api_client/api/preview_api.rb
|
|
@@ -24,6 +27,7 @@ lib/daytona_api_client/api_client.rb
|
|
|
24
27
|
lib/daytona_api_client/api_error.rb
|
|
25
28
|
lib/daytona_api_client/configuration.rb
|
|
26
29
|
lib/daytona_api_client/models/account_provider.rb
|
|
30
|
+
lib/daytona_api_client/models/admin_create_runner.rb
|
|
27
31
|
lib/daytona_api_client/models/announcement.rb
|
|
28
32
|
lib/daytona_api_client/models/api_key_list.rb
|
|
29
33
|
lib/daytona_api_client/models/api_key_response.rb
|
|
@@ -45,7 +49,10 @@ lib/daytona_api_client/models/create_organization.rb
|
|
|
45
49
|
lib/daytona_api_client/models/create_organization_invitation.rb
|
|
46
50
|
lib/daytona_api_client/models/create_organization_quota.rb
|
|
47
51
|
lib/daytona_api_client/models/create_organization_role.rb
|
|
52
|
+
lib/daytona_api_client/models/create_region.rb
|
|
53
|
+
lib/daytona_api_client/models/create_region_response.rb
|
|
48
54
|
lib/daytona_api_client/models/create_runner.rb
|
|
55
|
+
lib/daytona_api_client/models/create_runner_response.rb
|
|
49
56
|
lib/daytona_api_client/models/create_sandbox.rb
|
|
50
57
|
lib/daytona_api_client/models/create_session_request.rb
|
|
51
58
|
lib/daytona_api_client/models/create_snapshot.rb
|
|
@@ -73,6 +80,9 @@ lib/daytona_api_client/models/git_status.rb
|
|
|
73
80
|
lib/daytona_api_client/models/health_controller_check200_response.rb
|
|
74
81
|
lib/daytona_api_client/models/health_controller_check200_response_info_value.rb
|
|
75
82
|
lib/daytona_api_client/models/health_controller_check503_response.rb
|
|
83
|
+
lib/daytona_api_client/models/job.rb
|
|
84
|
+
lib/daytona_api_client/models/job_status.rb
|
|
85
|
+
lib/daytona_api_client/models/job_type.rb
|
|
76
86
|
lib/daytona_api_client/models/keyboard_hotkey_request.rb
|
|
77
87
|
lib/daytona_api_client/models/keyboard_press_request.rb
|
|
78
88
|
lib/daytona_api_client/models/keyboard_type_request.rb
|
|
@@ -101,8 +111,10 @@ lib/daytona_api_client/models/organization_suspension.rb
|
|
|
101
111
|
lib/daytona_api_client/models/organization_usage_overview.rb
|
|
102
112
|
lib/daytona_api_client/models/organization_user.rb
|
|
103
113
|
lib/daytona_api_client/models/paginated_audit_logs.rb
|
|
114
|
+
lib/daytona_api_client/models/paginated_jobs.rb
|
|
104
115
|
lib/daytona_api_client/models/paginated_sandboxes.rb
|
|
105
116
|
lib/daytona_api_client/models/paginated_snapshots.rb
|
|
117
|
+
lib/daytona_api_client/models/poll_jobs_response.rb
|
|
106
118
|
lib/daytona_api_client/models/port_preview_url.rb
|
|
107
119
|
lib/daytona_api_client/models/position.rb
|
|
108
120
|
lib/daytona_api_client/models/posthog_config.rb
|
|
@@ -119,14 +131,19 @@ lib/daytona_api_client/models/pty_session_info.rb
|
|
|
119
131
|
lib/daytona_api_client/models/range.rb
|
|
120
132
|
lib/daytona_api_client/models/rate_limit_config.rb
|
|
121
133
|
lib/daytona_api_client/models/rate_limit_entry.rb
|
|
134
|
+
lib/daytona_api_client/models/regenerate_api_key_response.rb
|
|
122
135
|
lib/daytona_api_client/models/region.rb
|
|
123
136
|
lib/daytona_api_client/models/region_quota.rb
|
|
124
137
|
lib/daytona_api_client/models/region_screenshot_response.rb
|
|
138
|
+
lib/daytona_api_client/models/region_type.rb
|
|
125
139
|
lib/daytona_api_client/models/region_usage_overview.rb
|
|
126
140
|
lib/daytona_api_client/models/registry_push_access_dto.rb
|
|
127
141
|
lib/daytona_api_client/models/replace_request.rb
|
|
128
142
|
lib/daytona_api_client/models/replace_result.rb
|
|
129
143
|
lib/daytona_api_client/models/runner.rb
|
|
144
|
+
lib/daytona_api_client/models/runner_full.rb
|
|
145
|
+
lib/daytona_api_client/models/runner_health_metrics.rb
|
|
146
|
+
lib/daytona_api_client/models/runner_healthcheck.rb
|
|
130
147
|
lib/daytona_api_client/models/runner_snapshot_dto.rb
|
|
131
148
|
lib/daytona_api_client/models/runner_state.rb
|
|
132
149
|
lib/daytona_api_client/models/sandbox.rb
|
|
@@ -143,19 +160,25 @@ lib/daytona_api_client/models/session.rb
|
|
|
143
160
|
lib/daytona_api_client/models/session_execute_request.rb
|
|
144
161
|
lib/daytona_api_client/models/session_execute_response.rb
|
|
145
162
|
lib/daytona_api_client/models/set_snapshot_general_status_dto.rb
|
|
163
|
+
lib/daytona_api_client/models/signed_port_preview_url.rb
|
|
146
164
|
lib/daytona_api_client/models/snapshot_dto.rb
|
|
165
|
+
lib/daytona_api_client/models/snapshot_manager_credentials.rb
|
|
147
166
|
lib/daytona_api_client/models/snapshot_state.rb
|
|
148
167
|
lib/daytona_api_client/models/ssh_access_dto.rb
|
|
149
168
|
lib/daytona_api_client/models/ssh_access_validation_dto.rb
|
|
150
169
|
lib/daytona_api_client/models/storage_access_dto.rb
|
|
170
|
+
lib/daytona_api_client/models/toolbox_proxy_url.rb
|
|
151
171
|
lib/daytona_api_client/models/update_docker_registry.rb
|
|
172
|
+
lib/daytona_api_client/models/update_job_status.rb
|
|
152
173
|
lib/daytona_api_client/models/update_organization_default_region.rb
|
|
153
174
|
lib/daytona_api_client/models/update_organization_invitation.rb
|
|
154
175
|
lib/daytona_api_client/models/update_organization_member_access.rb
|
|
155
176
|
lib/daytona_api_client/models/update_organization_quota.rb
|
|
156
177
|
lib/daytona_api_client/models/update_organization_region_quota.rb
|
|
157
178
|
lib/daytona_api_client/models/update_organization_role.rb
|
|
179
|
+
lib/daytona_api_client/models/update_region.rb
|
|
158
180
|
lib/daytona_api_client/models/update_sandbox_state_dto.rb
|
|
181
|
+
lib/daytona_api_client/models/url.rb
|
|
159
182
|
lib/daytona_api_client/models/user.rb
|
|
160
183
|
lib/daytona_api_client/models/user_home_dir_response.rb
|
|
161
184
|
lib/daytona_api_client/models/user_public_key.rb
|
data/.openapi-generator-ignore
CHANGED
data/daytona_api_client.gemspec
CHANGED
|
@@ -32,7 +32,7 @@ Gem::Specification.new do |s|
|
|
|
32
32
|
|
|
33
33
|
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
|
34
34
|
|
|
35
|
-
s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) || f.end_with?('.gem') }
|
|
35
|
+
s.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) || f.end_with?('.gem') || f.start_with?('Gemfile') }
|
|
36
36
|
s.test_files = Dir.exist?('spec') ? Dir.glob('spec/**/*') : []
|
|
37
37
|
s.executables = []
|
|
38
38
|
s.require_paths = ["lib"]
|
data/fix-gemspec.sh
CHANGED
|
@@ -4,7 +4,7 @@ SCRIPT_DIR="$(dirname "$0")"
|
|
|
4
4
|
|
|
5
5
|
# Fix gemspec: replace backtick find commands with git ls-files and Dir.glob
|
|
6
6
|
# This is safer and works correctly in CI environments
|
|
7
|
-
sed -i "s/\`find \*\`\.split(\"\\\\n\")\.uniq\.sort\.select { |f| !f\.empty? }/\`git ls-files -z\`\.split(\"\\\\x0\")\.reject { |f| f.match(%r{^(test|spec|features)\/}) || f.end_with?('.gem') }/g" "$SCRIPT_DIR/daytona_api_client.gemspec"
|
|
7
|
+
sed -i "s/\`find \*\`\.split(\"\\\\n\")\.uniq\.sort\.select { |f| !f\.empty? }/\`git ls-files -z\`\.split(\"\\\\x0\")\.reject { |f| f.match(%r{^(test|spec|features)\/}) || f.end_with?('.gem') || f.start_with?('Gemfile') }/g" "$SCRIPT_DIR/daytona_api_client.gemspec"
|
|
8
8
|
sed -i "s/\`find spec\/\*\`\.split(\"\\\\n\")/Dir.exist?('spec') ? Dir.glob('spec\/\*\*\/\*') : []/g" "$SCRIPT_DIR/daytona_api_client.gemspec"
|
|
9
9
|
|
|
10
10
|
# Fix Gemfile: update rubocop from ~> 0.66.0 to ~> 1.21
|
|
@@ -0,0 +1,325 @@
|
|
|
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 'cgi'
|
|
14
|
+
|
|
15
|
+
module DaytonaApiClient
|
|
16
|
+
class AdminApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Create runner
|
|
23
|
+
# @param admin_create_runner [AdminCreateRunner]
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @return [CreateRunnerResponse]
|
|
26
|
+
def admin_create_runner(admin_create_runner, opts = {})
|
|
27
|
+
data, _status_code, _headers = admin_create_runner_with_http_info(admin_create_runner, opts)
|
|
28
|
+
data
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# Create runner
|
|
32
|
+
# @param admin_create_runner [AdminCreateRunner]
|
|
33
|
+
# @param [Hash] opts the optional parameters
|
|
34
|
+
# @return [Array<(CreateRunnerResponse, Integer, Hash)>] CreateRunnerResponse data, response status code and response headers
|
|
35
|
+
def admin_create_runner_with_http_info(admin_create_runner, opts = {})
|
|
36
|
+
if @api_client.config.debugging
|
|
37
|
+
@api_client.config.logger.debug 'Calling API: AdminApi.admin_create_runner ...'
|
|
38
|
+
end
|
|
39
|
+
# verify the required parameter 'admin_create_runner' is set
|
|
40
|
+
if @api_client.config.client_side_validation && admin_create_runner.nil?
|
|
41
|
+
fail ArgumentError, "Missing the required parameter 'admin_create_runner' when calling AdminApi.admin_create_runner"
|
|
42
|
+
end
|
|
43
|
+
# resource path
|
|
44
|
+
local_var_path = '/admin/runners'
|
|
45
|
+
|
|
46
|
+
# query parameters
|
|
47
|
+
query_params = opts[:query_params] || {}
|
|
48
|
+
|
|
49
|
+
# header parameters
|
|
50
|
+
header_params = opts[:header_params] || {}
|
|
51
|
+
# HTTP header 'Accept' (if needed)
|
|
52
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
53
|
+
# HTTP header 'Content-Type'
|
|
54
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
55
|
+
if !content_type.nil?
|
|
56
|
+
header_params['Content-Type'] = content_type
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
# form parameters
|
|
60
|
+
form_params = opts[:form_params] || {}
|
|
61
|
+
|
|
62
|
+
# http body (model)
|
|
63
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(admin_create_runner)
|
|
64
|
+
|
|
65
|
+
# return_type
|
|
66
|
+
return_type = opts[:debug_return_type] || 'CreateRunnerResponse'
|
|
67
|
+
|
|
68
|
+
# auth_names
|
|
69
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
70
|
+
|
|
71
|
+
new_options = opts.merge(
|
|
72
|
+
:operation => :"AdminApi.admin_create_runner",
|
|
73
|
+
:header_params => header_params,
|
|
74
|
+
:query_params => query_params,
|
|
75
|
+
:form_params => form_params,
|
|
76
|
+
:body => post_body,
|
|
77
|
+
:auth_names => auth_names,
|
|
78
|
+
:return_type => return_type
|
|
79
|
+
)
|
|
80
|
+
|
|
81
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
82
|
+
if @api_client.config.debugging
|
|
83
|
+
@api_client.config.logger.debug "API called: AdminApi#admin_create_runner\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
84
|
+
end
|
|
85
|
+
return data, status_code, headers
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Delete runner
|
|
89
|
+
# @param id [String] Runner ID
|
|
90
|
+
# @param [Hash] opts the optional parameters
|
|
91
|
+
# @return [nil]
|
|
92
|
+
def admin_delete_runner(id, opts = {})
|
|
93
|
+
admin_delete_runner_with_http_info(id, opts)
|
|
94
|
+
nil
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Delete runner
|
|
98
|
+
# @param id [String] Runner ID
|
|
99
|
+
# @param [Hash] opts the optional parameters
|
|
100
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
101
|
+
def admin_delete_runner_with_http_info(id, opts = {})
|
|
102
|
+
if @api_client.config.debugging
|
|
103
|
+
@api_client.config.logger.debug 'Calling API: AdminApi.admin_delete_runner ...'
|
|
104
|
+
end
|
|
105
|
+
# verify the required parameter 'id' is set
|
|
106
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
107
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling AdminApi.admin_delete_runner"
|
|
108
|
+
end
|
|
109
|
+
# resource path
|
|
110
|
+
local_var_path = '/admin/runners/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
111
|
+
|
|
112
|
+
# query parameters
|
|
113
|
+
query_params = opts[:query_params] || {}
|
|
114
|
+
|
|
115
|
+
# header parameters
|
|
116
|
+
header_params = opts[:header_params] || {}
|
|
117
|
+
|
|
118
|
+
# form parameters
|
|
119
|
+
form_params = opts[:form_params] || {}
|
|
120
|
+
|
|
121
|
+
# http body (model)
|
|
122
|
+
post_body = opts[:debug_body]
|
|
123
|
+
|
|
124
|
+
# return_type
|
|
125
|
+
return_type = opts[:debug_return_type]
|
|
126
|
+
|
|
127
|
+
# auth_names
|
|
128
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
129
|
+
|
|
130
|
+
new_options = opts.merge(
|
|
131
|
+
:operation => :"AdminApi.admin_delete_runner",
|
|
132
|
+
:header_params => header_params,
|
|
133
|
+
:query_params => query_params,
|
|
134
|
+
:form_params => form_params,
|
|
135
|
+
:body => post_body,
|
|
136
|
+
:auth_names => auth_names,
|
|
137
|
+
:return_type => return_type
|
|
138
|
+
)
|
|
139
|
+
|
|
140
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
141
|
+
if @api_client.config.debugging
|
|
142
|
+
@api_client.config.logger.debug "API called: AdminApi#admin_delete_runner\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
143
|
+
end
|
|
144
|
+
return data, status_code, headers
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# Get runner by ID
|
|
148
|
+
# @param id [String] Runner ID
|
|
149
|
+
# @param [Hash] opts the optional parameters
|
|
150
|
+
# @return [RunnerFull]
|
|
151
|
+
def admin_get_runner_by_id(id, opts = {})
|
|
152
|
+
data, _status_code, _headers = admin_get_runner_by_id_with_http_info(id, opts)
|
|
153
|
+
data
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
# Get runner by ID
|
|
157
|
+
# @param id [String] Runner ID
|
|
158
|
+
# @param [Hash] opts the optional parameters
|
|
159
|
+
# @return [Array<(RunnerFull, Integer, Hash)>] RunnerFull data, response status code and response headers
|
|
160
|
+
def admin_get_runner_by_id_with_http_info(id, opts = {})
|
|
161
|
+
if @api_client.config.debugging
|
|
162
|
+
@api_client.config.logger.debug 'Calling API: AdminApi.admin_get_runner_by_id ...'
|
|
163
|
+
end
|
|
164
|
+
# verify the required parameter 'id' is set
|
|
165
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
166
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling AdminApi.admin_get_runner_by_id"
|
|
167
|
+
end
|
|
168
|
+
# resource path
|
|
169
|
+
local_var_path = '/admin/runners/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
170
|
+
|
|
171
|
+
# query parameters
|
|
172
|
+
query_params = opts[:query_params] || {}
|
|
173
|
+
|
|
174
|
+
# header parameters
|
|
175
|
+
header_params = opts[:header_params] || {}
|
|
176
|
+
# HTTP header 'Accept' (if needed)
|
|
177
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
178
|
+
|
|
179
|
+
# form parameters
|
|
180
|
+
form_params = opts[:form_params] || {}
|
|
181
|
+
|
|
182
|
+
# http body (model)
|
|
183
|
+
post_body = opts[:debug_body]
|
|
184
|
+
|
|
185
|
+
# return_type
|
|
186
|
+
return_type = opts[:debug_return_type] || 'RunnerFull'
|
|
187
|
+
|
|
188
|
+
# auth_names
|
|
189
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
190
|
+
|
|
191
|
+
new_options = opts.merge(
|
|
192
|
+
:operation => :"AdminApi.admin_get_runner_by_id",
|
|
193
|
+
:header_params => header_params,
|
|
194
|
+
:query_params => query_params,
|
|
195
|
+
:form_params => form_params,
|
|
196
|
+
:body => post_body,
|
|
197
|
+
:auth_names => auth_names,
|
|
198
|
+
:return_type => return_type
|
|
199
|
+
)
|
|
200
|
+
|
|
201
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
202
|
+
if @api_client.config.debugging
|
|
203
|
+
@api_client.config.logger.debug "API called: AdminApi#admin_get_runner_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
204
|
+
end
|
|
205
|
+
return data, status_code, headers
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
# List all runners
|
|
209
|
+
# @param [Hash] opts the optional parameters
|
|
210
|
+
# @option opts [String] :region_id Filter runners by region ID
|
|
211
|
+
# @return [Array<RunnerFull>]
|
|
212
|
+
def admin_list_runners(opts = {})
|
|
213
|
+
data, _status_code, _headers = admin_list_runners_with_http_info(opts)
|
|
214
|
+
data
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
# List all runners
|
|
218
|
+
# @param [Hash] opts the optional parameters
|
|
219
|
+
# @option opts [String] :region_id Filter runners by region ID
|
|
220
|
+
# @return [Array<(Array<RunnerFull>, Integer, Hash)>] Array<RunnerFull> data, response status code and response headers
|
|
221
|
+
def admin_list_runners_with_http_info(opts = {})
|
|
222
|
+
if @api_client.config.debugging
|
|
223
|
+
@api_client.config.logger.debug 'Calling API: AdminApi.admin_list_runners ...'
|
|
224
|
+
end
|
|
225
|
+
# resource path
|
|
226
|
+
local_var_path = '/admin/runners'
|
|
227
|
+
|
|
228
|
+
# query parameters
|
|
229
|
+
query_params = opts[:query_params] || {}
|
|
230
|
+
query_params[:'regionId'] = opts[:'region_id'] if !opts[:'region_id'].nil?
|
|
231
|
+
|
|
232
|
+
# header parameters
|
|
233
|
+
header_params = opts[:header_params] || {}
|
|
234
|
+
# HTTP header 'Accept' (if needed)
|
|
235
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
236
|
+
|
|
237
|
+
# form parameters
|
|
238
|
+
form_params = opts[:form_params] || {}
|
|
239
|
+
|
|
240
|
+
# http body (model)
|
|
241
|
+
post_body = opts[:debug_body]
|
|
242
|
+
|
|
243
|
+
# return_type
|
|
244
|
+
return_type = opts[:debug_return_type] || 'Array<RunnerFull>'
|
|
245
|
+
|
|
246
|
+
# auth_names
|
|
247
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
248
|
+
|
|
249
|
+
new_options = opts.merge(
|
|
250
|
+
:operation => :"AdminApi.admin_list_runners",
|
|
251
|
+
:header_params => header_params,
|
|
252
|
+
:query_params => query_params,
|
|
253
|
+
:form_params => form_params,
|
|
254
|
+
:body => post_body,
|
|
255
|
+
:auth_names => auth_names,
|
|
256
|
+
:return_type => return_type
|
|
257
|
+
)
|
|
258
|
+
|
|
259
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
260
|
+
if @api_client.config.debugging
|
|
261
|
+
@api_client.config.logger.debug "API called: AdminApi#admin_list_runners\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
262
|
+
end
|
|
263
|
+
return data, status_code, headers
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
# Update runner scheduling status
|
|
267
|
+
# @param id [String]
|
|
268
|
+
# @param [Hash] opts the optional parameters
|
|
269
|
+
# @return [nil]
|
|
270
|
+
def admin_update_runner_scheduling(id, opts = {})
|
|
271
|
+
admin_update_runner_scheduling_with_http_info(id, opts)
|
|
272
|
+
nil
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
# Update runner scheduling status
|
|
276
|
+
# @param id [String]
|
|
277
|
+
# @param [Hash] opts the optional parameters
|
|
278
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
279
|
+
def admin_update_runner_scheduling_with_http_info(id, opts = {})
|
|
280
|
+
if @api_client.config.debugging
|
|
281
|
+
@api_client.config.logger.debug 'Calling API: AdminApi.admin_update_runner_scheduling ...'
|
|
282
|
+
end
|
|
283
|
+
# verify the required parameter 'id' is set
|
|
284
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
285
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling AdminApi.admin_update_runner_scheduling"
|
|
286
|
+
end
|
|
287
|
+
# resource path
|
|
288
|
+
local_var_path = '/admin/runners/{id}/scheduling'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
289
|
+
|
|
290
|
+
# query parameters
|
|
291
|
+
query_params = opts[:query_params] || {}
|
|
292
|
+
|
|
293
|
+
# header parameters
|
|
294
|
+
header_params = opts[:header_params] || {}
|
|
295
|
+
|
|
296
|
+
# form parameters
|
|
297
|
+
form_params = opts[:form_params] || {}
|
|
298
|
+
|
|
299
|
+
# http body (model)
|
|
300
|
+
post_body = opts[:debug_body]
|
|
301
|
+
|
|
302
|
+
# return_type
|
|
303
|
+
return_type = opts[:debug_return_type]
|
|
304
|
+
|
|
305
|
+
# auth_names
|
|
306
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
307
|
+
|
|
308
|
+
new_options = opts.merge(
|
|
309
|
+
:operation => :"AdminApi.admin_update_runner_scheduling",
|
|
310
|
+
:header_params => header_params,
|
|
311
|
+
:query_params => query_params,
|
|
312
|
+
:form_params => form_params,
|
|
313
|
+
:body => post_body,
|
|
314
|
+
:auth_names => auth_names,
|
|
315
|
+
:return_type => return_type
|
|
316
|
+
)
|
|
317
|
+
|
|
318
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
319
|
+
if @api_client.config.debugging
|
|
320
|
+
@api_client.config.logger.debug "API called: AdminApi#admin_update_runner_scheduling\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
321
|
+
end
|
|
322
|
+
return data, status_code, headers
|
|
323
|
+
end
|
|
324
|
+
end
|
|
325
|
+
end
|
|
@@ -217,6 +217,7 @@ module DaytonaApiClient
|
|
|
217
217
|
# Get temporary registry access for pushing snapshots
|
|
218
218
|
# @param [Hash] opts the optional parameters
|
|
219
219
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
220
|
+
# @option opts [String] :region_id ID of the region where the snapshot will be available (defaults to organization default region)
|
|
220
221
|
# @return [RegistryPushAccessDto]
|
|
221
222
|
def get_transient_push_access(opts = {})
|
|
222
223
|
data, _status_code, _headers = get_transient_push_access_with_http_info(opts)
|
|
@@ -226,6 +227,7 @@ module DaytonaApiClient
|
|
|
226
227
|
# Get temporary registry access for pushing snapshots
|
|
227
228
|
# @param [Hash] opts the optional parameters
|
|
228
229
|
# @option opts [String] :x_daytona_organization_id Use with JWT to specify the organization ID
|
|
230
|
+
# @option opts [String] :region_id ID of the region where the snapshot will be available (defaults to organization default region)
|
|
229
231
|
# @return [Array<(RegistryPushAccessDto, Integer, Hash)>] RegistryPushAccessDto data, response status code and response headers
|
|
230
232
|
def get_transient_push_access_with_http_info(opts = {})
|
|
231
233
|
if @api_client.config.debugging
|
|
@@ -236,6 +238,7 @@ module DaytonaApiClient
|
|
|
236
238
|
|
|
237
239
|
# query parameters
|
|
238
240
|
query_params = opts[:query_params] || {}
|
|
241
|
+
query_params[:'regionId'] = opts[:'region_id'] if !opts[:'region_id'].nil?
|
|
239
242
|
|
|
240
243
|
# header parameters
|
|
241
244
|
header_params = opts[:header_params] || {}
|