nightona_api_client 0.191.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 +7 -0
- data/.gitignore +39 -0
- data/.openapi-generator/FILES +212 -0
- data/.openapi-generator/VERSION +1 -0
- data/.openapi-generator-ignore +31 -0
- data/.rspec +2 -0
- data/.rubocop.yml +148 -0
- data/Rakefile +10 -0
- data/fix-gemspec.sh +11 -0
- data/lib/nightona_api_client/api/admin_api.rb +1449 -0
- data/lib/nightona_api_client/api/api_keys_api.rb +401 -0
- data/lib/nightona_api_client/api/audit_api.rb +110 -0
- data/lib/nightona_api_client/api/config_api.rb +77 -0
- data/lib/nightona_api_client/api/docker_registry_api.rb +411 -0
- data/lib/nightona_api_client/api/health_api.rb +126 -0
- data/lib/nightona_api_client/api/jobs_api.rb +299 -0
- data/lib/nightona_api_client/api/object_storage_api.rb +80 -0
- data/lib/nightona_api_client/api/organizations_api.rb +2615 -0
- data/lib/nightona_api_client/api/preview_api.rb +278 -0
- data/lib/nightona_api_client/api/regions_api.rb +77 -0
- data/lib/nightona_api_client/api/runners_api.rb +711 -0
- data/lib/nightona_api_client/api/sandbox_api.rb +3064 -0
- data/lib/nightona_api_client/api/snapshots_api.rb +567 -0
- data/lib/nightona_api_client/api/toolbox_api.rb +5108 -0
- data/lib/nightona_api_client/api/users_api.rb +316 -0
- data/lib/nightona_api_client/api/volumes_api.rb +342 -0
- data/lib/nightona_api_client/api/webhooks_api.rb +276 -0
- data/lib/nightona_api_client/api_client.rb +397 -0
- data/lib/nightona_api_client/api_error.rb +58 -0
- data/lib/nightona_api_client/api_model_base.rb +88 -0
- data/lib/nightona_api_client/configuration.rb +309 -0
- data/lib/nightona_api_client/models/account_provider.rb +190 -0
- data/lib/nightona_api_client/models/admin_create_runner.rb +326 -0
- data/lib/nightona_api_client/models/admin_get_webhook_status200_response.rb +147 -0
- data/lib/nightona_api_client/models/announcement.rb +175 -0
- data/lib/nightona_api_client/models/api_key_list.rb +313 -0
- data/lib/nightona_api_client/models/api_key_response.rb +273 -0
- data/lib/nightona_api_client/models/audit_log.rb +369 -0
- data/lib/nightona_api_client/models/build_info.rb +241 -0
- data/lib/nightona_api_client/models/command.rb +202 -0
- data/lib/nightona_api_client/models/completion_context.rb +173 -0
- data/lib/nightona_api_client/models/completion_item.rb +218 -0
- data/lib/nightona_api_client/models/completion_list.rb +192 -0
- data/lib/nightona_api_client/models/compressed_screenshot_response.rb +185 -0
- data/lib/nightona_api_client/models/computer_use_start_response.rb +192 -0
- data/lib/nightona_api_client/models/computer_use_status_response.rb +189 -0
- data/lib/nightona_api_client/models/computer_use_stop_response.rb +192 -0
- data/lib/nightona_api_client/models/create_api_key.rb +217 -0
- data/lib/nightona_api_client/models/create_build_info.rb +177 -0
- data/lib/nightona_api_client/models/create_docker_registry.rb +256 -0
- data/lib/nightona_api_client/models/create_linked_account.rb +192 -0
- data/lib/nightona_api_client/models/create_organization.rb +192 -0
- data/lib/nightona_api_client/models/create_organization_invitation.rb +255 -0
- data/lib/nightona_api_client/models/create_organization_quota.rb +219 -0
- data/lib/nightona_api_client/models/create_organization_region_quota.rb +372 -0
- data/lib/nightona_api_client/models/create_organization_role.rb +233 -0
- data/lib/nightona_api_client/models/create_region.rb +198 -0
- data/lib/nightona_api_client/models/create_region_response.rb +209 -0
- data/lib/nightona_api_client/models/create_runner.rb +202 -0
- data/lib/nightona_api_client/models/create_runner_response.rb +192 -0
- data/lib/nightona_api_client/models/create_sandbox.rb +356 -0
- data/lib/nightona_api_client/models/create_sandbox_snapshot.rb +177 -0
- data/lib/nightona_api_client/models/create_session_request.rb +165 -0
- data/lib/nightona_api_client/models/create_snapshot.rb +291 -0
- data/lib/nightona_api_client/models/create_user.rb +269 -0
- data/lib/nightona_api_client/models/create_volume.rb +164 -0
- data/lib/nightona_api_client/models/display_info_response.rb +167 -0
- data/lib/nightona_api_client/models/docker_registry.rb +378 -0
- data/lib/nightona_api_client/models/download_files.rb +167 -0
- data/lib/nightona_api_client/models/execute_request.rb +184 -0
- data/lib/nightona_api_client/models/execute_response.rb +192 -0
- data/lib/nightona_api_client/models/file_info.rb +346 -0
- data/lib/nightona_api_client/models/file_status.rb +242 -0
- data/lib/nightona_api_client/models/fork_sandbox.rb +148 -0
- data/lib/nightona_api_client/models/git_add_request.rb +193 -0
- data/lib/nightona_api_client/models/git_branch_request.rb +190 -0
- data/lib/nightona_api_client/models/git_checkout_request.rb +190 -0
- data/lib/nightona_api_client/models/git_clone_request.rb +226 -0
- data/lib/nightona_api_client/models/git_commit_info.rb +268 -0
- data/lib/nightona_api_client/models/git_commit_request.rb +254 -0
- data/lib/nightona_api_client/models/git_commit_response.rb +164 -0
- data/lib/nightona_api_client/models/git_delete_branch_request.rb +190 -0
- data/lib/nightona_api_client/models/git_repo_request.rb +182 -0
- data/lib/nightona_api_client/models/git_status.rb +219 -0
- data/lib/nightona_api_client/models/gpu_type.rb +41 -0
- data/lib/nightona_api_client/models/health_controller_check200_response.rb +182 -0
- data/lib/nightona_api_client/models/health_controller_check200_response_info_value.rb +164 -0
- data/lib/nightona_api_client/models/health_controller_check503_response.rb +182 -0
- data/lib/nightona_api_client/models/job.rb +366 -0
- data/lib/nightona_api_client/models/job_status.rb +43 -0
- data/lib/nightona_api_client/models/job_type.rb +54 -0
- data/lib/nightona_api_client/models/keyboard_hotkey_request.rb +165 -0
- data/lib/nightona_api_client/models/keyboard_press_request.rb +177 -0
- data/lib/nightona_api_client/models/keyboard_type_request.rb +175 -0
- data/lib/nightona_api_client/models/list_branch_response.rb +166 -0
- data/lib/nightona_api_client/models/list_sandboxes_response.rb +180 -0
- data/lib/nightona_api_client/models/log_entry.rb +334 -0
- data/lib/nightona_api_client/models/lsp_completion_params.rb +254 -0
- data/lib/nightona_api_client/models/lsp_document_request.rb +219 -0
- data/lib/nightona_api_client/models/lsp_location.rb +190 -0
- data/lib/nightona_api_client/models/lsp_server_request.rb +192 -0
- data/lib/nightona_api_client/models/lsp_symbol.rb +216 -0
- data/lib/nightona_api_client/models/match.rb +216 -0
- data/lib/nightona_api_client/models/metric_data_point.rb +192 -0
- data/lib/nightona_api_client/models/metric_series.rb +194 -0
- data/lib/nightona_api_client/models/metrics_response.rb +167 -0
- data/lib/nightona_api_client/models/mouse_click_request.rb +212 -0
- data/lib/nightona_api_client/models/mouse_click_response.rb +192 -0
- data/lib/nightona_api_client/models/mouse_drag_request.rb +256 -0
- data/lib/nightona_api_client/models/mouse_drag_response.rb +192 -0
- data/lib/nightona_api_client/models/mouse_move_request.rb +192 -0
- data/lib/nightona_api_client/models/mouse_move_response.rb +192 -0
- data/lib/nightona_api_client/models/mouse_position.rb +192 -0
- data/lib/nightona_api_client/models/mouse_scroll_request.rb +229 -0
- data/lib/nightona_api_client/models/mouse_scroll_response.rb +165 -0
- data/lib/nightona_api_client/models/nightona_configuration.rb +507 -0
- data/lib/nightona_api_client/models/oidc_config.rb +219 -0
- data/lib/nightona_api_client/models/organization.rb +698 -0
- data/lib/nightona_api_client/models/organization_invitation.rb +463 -0
- data/lib/nightona_api_client/models/organization_role.rb +341 -0
- data/lib/nightona_api_client/models/organization_sandbox_default_limited_network_egress.rb +165 -0
- data/lib/nightona_api_client/models/organization_suspension.rb +221 -0
- data/lib/nightona_api_client/models/organization_usage_overview.rb +270 -0
- data/lib/nightona_api_client/models/organization_user.rb +380 -0
- data/lib/nightona_api_client/models/otel_config.rb +178 -0
- data/lib/nightona_api_client/models/paginated_audit_logs.rb +254 -0
- data/lib/nightona_api_client/models/paginated_jobs.rb +244 -0
- data/lib/nightona_api_client/models/paginated_logs.rb +248 -0
- data/lib/nightona_api_client/models/paginated_sandboxes_deprecated.rb +244 -0
- data/lib/nightona_api_client/models/paginated_snapshots.rb +244 -0
- data/lib/nightona_api_client/models/paginated_traces.rb +248 -0
- data/lib/nightona_api_client/models/poll_jobs_response.rb +167 -0
- data/lib/nightona_api_client/models/port_preview_url.rb +219 -0
- data/lib/nightona_api_client/models/position.rb +190 -0
- data/lib/nightona_api_client/models/posthog_config.rb +192 -0
- data/lib/nightona_api_client/models/process_errors_response.rb +192 -0
- data/lib/nightona_api_client/models/process_logs_response.rb +192 -0
- data/lib/nightona_api_client/models/process_restart_response.rb +192 -0
- data/lib/nightona_api_client/models/process_status_response.rb +192 -0
- data/lib/nightona_api_client/models/project_dir_response.rb +147 -0
- data/lib/nightona_api_client/models/pty_create_request.rb +217 -0
- data/lib/nightona_api_client/models/pty_create_response.rb +165 -0
- data/lib/nightona_api_client/models/pty_list_response.rb +167 -0
- data/lib/nightona_api_client/models/pty_resize_request.rb +192 -0
- data/lib/nightona_api_client/models/pty_session_info.rb +354 -0
- data/lib/nightona_api_client/models/range.rb +190 -0
- data/lib/nightona_api_client/models/rate_limit_config.rb +178 -0
- data/lib/nightona_api_client/models/rate_limit_entry.rb +158 -0
- data/lib/nightona_api_client/models/regenerate_api_key_response.rb +165 -0
- data/lib/nightona_api_client/models/region.rb +339 -0
- data/lib/nightona_api_client/models/region_quota.rb +437 -0
- data/lib/nightona_api_client/models/region_screenshot_response.rb +185 -0
- data/lib/nightona_api_client/models/region_type.rb +42 -0
- data/lib/nightona_api_client/models/region_usage_overview.rb +515 -0
- data/lib/nightona_api_client/models/registry_push_access_dto.rb +300 -0
- data/lib/nightona_api_client/models/replace_request.rb +218 -0
- data/lib/nightona_api_client/models/replace_result.rb +165 -0
- data/lib/nightona_api_client/models/resize_sandbox.rb +225 -0
- data/lib/nightona_api_client/models/runner.rb +710 -0
- data/lib/nightona_api_client/models/runner_class.rb +40 -0
- data/lib/nightona_api_client/models/runner_full.rb +747 -0
- data/lib/nightona_api_client/models/runner_health_metrics.rb +482 -0
- data/lib/nightona_api_client/models/runner_healthcheck.rb +217 -0
- data/lib/nightona_api_client/models/runner_service_health.rb +202 -0
- data/lib/nightona_api_client/models/runner_snapshot_dto.rb +202 -0
- data/lib/nightona_api_client/models/runner_state.rb +44 -0
- data/lib/nightona_api_client/models/sandbox.rb +788 -0
- data/lib/nightona_api_client/models/sandbox_class.rb +43 -0
- data/lib/nightona_api_client/models/sandbox_desired_state.rb +45 -0
- data/lib/nightona_api_client/models/sandbox_labels.rb +167 -0
- data/lib/nightona_api_client/models/sandbox_list_item.rb +658 -0
- data/lib/nightona_api_client/models/sandbox_list_sort_direction.rb +41 -0
- data/lib/nightona_api_client/models/sandbox_list_sort_field.rb +45 -0
- data/lib/nightona_api_client/models/sandbox_state.rb +61 -0
- data/lib/nightona_api_client/models/sandbox_volume.rb +202 -0
- data/lib/nightona_api_client/models/screenshot_response.rb +185 -0
- data/lib/nightona_api_client/models/search_files_response.rb +166 -0
- data/lib/nightona_api_client/models/send_webhook_dto.rb +224 -0
- data/lib/nightona_api_client/models/session.rb +180 -0
- data/lib/nightona_api_client/models/session_execute_request.rb +185 -0
- data/lib/nightona_api_client/models/session_execute_response.rb +168 -0
- data/lib/nightona_api_client/models/set_snapshot_general_status_dto.rb +165 -0
- data/lib/nightona_api_client/models/signed_port_preview_url.rb +246 -0
- data/lib/nightona_api_client/models/snapshot_dto.rb +562 -0
- data/lib/nightona_api_client/models/snapshot_manager_credentials.rb +192 -0
- data/lib/nightona_api_client/models/snapshot_state.rb +47 -0
- data/lib/nightona_api_client/models/ssh_access_dto.rb +327 -0
- data/lib/nightona_api_client/models/ssh_access_validation_dto.rb +192 -0
- data/lib/nightona_api_client/models/storage_access_dto.rb +300 -0
- data/lib/nightona_api_client/models/toolbox_proxy_url.rb +165 -0
- data/lib/nightona_api_client/models/trace_span.rb +332 -0
- data/lib/nightona_api_client/models/trace_summary.rb +310 -0
- data/lib/nightona_api_client/models/update_docker_registry.rb +239 -0
- data/lib/nightona_api_client/models/update_job_status.rb +207 -0
- data/lib/nightona_api_client/models/update_organization_default_region.rb +165 -0
- data/lib/nightona_api_client/models/update_organization_invitation.rb +228 -0
- data/lib/nightona_api_client/models/update_organization_member_access.rb +218 -0
- data/lib/nightona_api_client/models/update_organization_quota.rb +295 -0
- data/lib/nightona_api_client/models/update_organization_region_quota.rb +299 -0
- data/lib/nightona_api_client/models/update_organization_role.rb +233 -0
- data/lib/nightona_api_client/models/update_region.rb +171 -0
- data/lib/nightona_api_client/models/update_sandbox_network_settings.rb +168 -0
- data/lib/nightona_api_client/models/update_sandbox_state_dto.rb +209 -0
- data/lib/nightona_api_client/models/url.rb +165 -0
- data/lib/nightona_api_client/models/user.rb +275 -0
- data/lib/nightona_api_client/models/user_home_dir_response.rb +147 -0
- data/lib/nightona_api_client/models/user_public_key.rb +192 -0
- data/lib/nightona_api_client/models/volume_dto.rb +346 -0
- data/lib/nightona_api_client/models/volume_state.rb +46 -0
- data/lib/nightona_api_client/models/webhook_app_portal_access.rb +192 -0
- data/lib/nightona_api_client/models/webhook_event.rb +46 -0
- data/lib/nightona_api_client/models/webhook_initialization_status.rb +272 -0
- data/lib/nightona_api_client/models/windows_response.rb +194 -0
- data/lib/nightona_api_client/models/work_dir_response.rb +147 -0
- data/lib/nightona_api_client/version.rb +15 -0
- data/lib/nightona_api_client.rb +241 -0
- data/nightona_api_client.gemspec +39 -0
- data/project.json +68 -0
- metadata +299 -0
|
@@ -0,0 +1,411 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Nightona
|
|
3
|
+
|
|
4
|
+
#Nightona AI platform API Docs
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
Contact: amaraaamka0404@gmail.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.21.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module NightonaApiClient
|
|
16
|
+
class DockerRegistryApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Create registry
|
|
23
|
+
# @param create_docker_registry [CreateDockerRegistry]
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @option opts [String] :x_nightona_organization_id Use with JWT to specify the organization ID
|
|
26
|
+
# @return [DockerRegistry]
|
|
27
|
+
def create_registry(create_docker_registry, opts = {})
|
|
28
|
+
data, _status_code, _headers = create_registry_with_http_info(create_docker_registry, opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Create registry
|
|
33
|
+
# @param create_docker_registry [CreateDockerRegistry]
|
|
34
|
+
# @param [Hash] opts the optional parameters
|
|
35
|
+
# @option opts [String] :x_nightona_organization_id Use with JWT to specify the organization ID
|
|
36
|
+
# @return [Array<(DockerRegistry, Integer, Hash)>] DockerRegistry data, response status code and response headers
|
|
37
|
+
def create_registry_with_http_info(create_docker_registry, opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: DockerRegistryApi.create_registry ...'
|
|
40
|
+
end
|
|
41
|
+
# verify the required parameter 'create_docker_registry' is set
|
|
42
|
+
if @api_client.config.client_side_validation && create_docker_registry.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'create_docker_registry' when calling DockerRegistryApi.create_registry"
|
|
44
|
+
end
|
|
45
|
+
# resource path
|
|
46
|
+
local_var_path = '/docker-registry'
|
|
47
|
+
|
|
48
|
+
# query parameters
|
|
49
|
+
query_params = opts[:query_params] || {}
|
|
50
|
+
|
|
51
|
+
# header parameters
|
|
52
|
+
header_params = opts[:header_params] || {}
|
|
53
|
+
# HTTP header 'Accept' (if needed)
|
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
55
|
+
# HTTP header 'Content-Type'
|
|
56
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
57
|
+
if !content_type.nil?
|
|
58
|
+
header_params['Content-Type'] = content_type
|
|
59
|
+
end
|
|
60
|
+
header_params[:'X-Nightona-Organization-ID'] = opts[:'x_nightona_organization_id'] if !opts[:'x_nightona_organization_id'].nil?
|
|
61
|
+
|
|
62
|
+
# form parameters
|
|
63
|
+
form_params = opts[:form_params] || {}
|
|
64
|
+
|
|
65
|
+
# http body (model)
|
|
66
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_docker_registry)
|
|
67
|
+
|
|
68
|
+
# return_type
|
|
69
|
+
return_type = opts[:debug_return_type] || 'DockerRegistry'
|
|
70
|
+
|
|
71
|
+
# auth_names
|
|
72
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
73
|
+
|
|
74
|
+
new_options = opts.merge(
|
|
75
|
+
:operation => :"DockerRegistryApi.create_registry",
|
|
76
|
+
:header_params => header_params,
|
|
77
|
+
:query_params => query_params,
|
|
78
|
+
:form_params => form_params,
|
|
79
|
+
:body => post_body,
|
|
80
|
+
:auth_names => auth_names,
|
|
81
|
+
:return_type => return_type
|
|
82
|
+
)
|
|
83
|
+
|
|
84
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
85
|
+
if @api_client.config.debugging
|
|
86
|
+
@api_client.config.logger.debug "API called: DockerRegistryApi#create_registry\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
87
|
+
end
|
|
88
|
+
return data, status_code, headers
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# Delete registry
|
|
92
|
+
# @param id [String] ID of the docker registry
|
|
93
|
+
# @param [Hash] opts the optional parameters
|
|
94
|
+
# @option opts [String] :x_nightona_organization_id Use with JWT to specify the organization ID
|
|
95
|
+
# @return [nil]
|
|
96
|
+
def delete_registry(id, opts = {})
|
|
97
|
+
delete_registry_with_http_info(id, opts)
|
|
98
|
+
nil
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Delete registry
|
|
102
|
+
# @param id [String] ID of the docker registry
|
|
103
|
+
# @param [Hash] opts the optional parameters
|
|
104
|
+
# @option opts [String] :x_nightona_organization_id Use with JWT to specify the organization ID
|
|
105
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
106
|
+
def delete_registry_with_http_info(id, opts = {})
|
|
107
|
+
if @api_client.config.debugging
|
|
108
|
+
@api_client.config.logger.debug 'Calling API: DockerRegistryApi.delete_registry ...'
|
|
109
|
+
end
|
|
110
|
+
# verify the required parameter 'id' is set
|
|
111
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
112
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling DockerRegistryApi.delete_registry"
|
|
113
|
+
end
|
|
114
|
+
# resource path
|
|
115
|
+
local_var_path = '/docker-registry/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
116
|
+
|
|
117
|
+
# query parameters
|
|
118
|
+
query_params = opts[:query_params] || {}
|
|
119
|
+
|
|
120
|
+
# header parameters
|
|
121
|
+
header_params = opts[:header_params] || {}
|
|
122
|
+
header_params[:'X-Nightona-Organization-ID'] = opts[:'x_nightona_organization_id'] if !opts[:'x_nightona_organization_id'].nil?
|
|
123
|
+
|
|
124
|
+
# form parameters
|
|
125
|
+
form_params = opts[:form_params] || {}
|
|
126
|
+
|
|
127
|
+
# http body (model)
|
|
128
|
+
post_body = opts[:debug_body]
|
|
129
|
+
|
|
130
|
+
# return_type
|
|
131
|
+
return_type = opts[:debug_return_type]
|
|
132
|
+
|
|
133
|
+
# auth_names
|
|
134
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
135
|
+
|
|
136
|
+
new_options = opts.merge(
|
|
137
|
+
:operation => :"DockerRegistryApi.delete_registry",
|
|
138
|
+
:header_params => header_params,
|
|
139
|
+
:query_params => query_params,
|
|
140
|
+
:form_params => form_params,
|
|
141
|
+
:body => post_body,
|
|
142
|
+
:auth_names => auth_names,
|
|
143
|
+
:return_type => return_type
|
|
144
|
+
)
|
|
145
|
+
|
|
146
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
147
|
+
if @api_client.config.debugging
|
|
148
|
+
@api_client.config.logger.debug "API called: DockerRegistryApi#delete_registry\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
149
|
+
end
|
|
150
|
+
return data, status_code, headers
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# Get registry
|
|
154
|
+
# @param id [String] ID of the docker registry
|
|
155
|
+
# @param [Hash] opts the optional parameters
|
|
156
|
+
# @option opts [String] :x_nightona_organization_id Use with JWT to specify the organization ID
|
|
157
|
+
# @return [DockerRegistry]
|
|
158
|
+
def get_registry(id, opts = {})
|
|
159
|
+
data, _status_code, _headers = get_registry_with_http_info(id, opts)
|
|
160
|
+
data
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
# Get registry
|
|
164
|
+
# @param id [String] ID of the docker registry
|
|
165
|
+
# @param [Hash] opts the optional parameters
|
|
166
|
+
# @option opts [String] :x_nightona_organization_id Use with JWT to specify the organization ID
|
|
167
|
+
# @return [Array<(DockerRegistry, Integer, Hash)>] DockerRegistry data, response status code and response headers
|
|
168
|
+
def get_registry_with_http_info(id, opts = {})
|
|
169
|
+
if @api_client.config.debugging
|
|
170
|
+
@api_client.config.logger.debug 'Calling API: DockerRegistryApi.get_registry ...'
|
|
171
|
+
end
|
|
172
|
+
# verify the required parameter 'id' is set
|
|
173
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
174
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling DockerRegistryApi.get_registry"
|
|
175
|
+
end
|
|
176
|
+
# resource path
|
|
177
|
+
local_var_path = '/docker-registry/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
178
|
+
|
|
179
|
+
# query parameters
|
|
180
|
+
query_params = opts[:query_params] || {}
|
|
181
|
+
|
|
182
|
+
# header parameters
|
|
183
|
+
header_params = opts[:header_params] || {}
|
|
184
|
+
# HTTP header 'Accept' (if needed)
|
|
185
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
186
|
+
header_params[:'X-Nightona-Organization-ID'] = opts[:'x_nightona_organization_id'] if !opts[:'x_nightona_organization_id'].nil?
|
|
187
|
+
|
|
188
|
+
# form parameters
|
|
189
|
+
form_params = opts[:form_params] || {}
|
|
190
|
+
|
|
191
|
+
# http body (model)
|
|
192
|
+
post_body = opts[:debug_body]
|
|
193
|
+
|
|
194
|
+
# return_type
|
|
195
|
+
return_type = opts[:debug_return_type] || 'DockerRegistry'
|
|
196
|
+
|
|
197
|
+
# auth_names
|
|
198
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
199
|
+
|
|
200
|
+
new_options = opts.merge(
|
|
201
|
+
:operation => :"DockerRegistryApi.get_registry",
|
|
202
|
+
:header_params => header_params,
|
|
203
|
+
:query_params => query_params,
|
|
204
|
+
:form_params => form_params,
|
|
205
|
+
:body => post_body,
|
|
206
|
+
:auth_names => auth_names,
|
|
207
|
+
:return_type => return_type
|
|
208
|
+
)
|
|
209
|
+
|
|
210
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
211
|
+
if @api_client.config.debugging
|
|
212
|
+
@api_client.config.logger.debug "API called: DockerRegistryApi#get_registry\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
213
|
+
end
|
|
214
|
+
return data, status_code, headers
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
# Get temporary registry access for pushing snapshots
|
|
218
|
+
# @param [Hash] opts the optional parameters
|
|
219
|
+
# @option opts [String] :x_nightona_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)
|
|
221
|
+
# @return [RegistryPushAccessDto]
|
|
222
|
+
def get_transient_push_access(opts = {})
|
|
223
|
+
data, _status_code, _headers = get_transient_push_access_with_http_info(opts)
|
|
224
|
+
data
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
# Get temporary registry access for pushing snapshots
|
|
228
|
+
# @param [Hash] opts the optional parameters
|
|
229
|
+
# @option opts [String] :x_nightona_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)
|
|
231
|
+
# @return [Array<(RegistryPushAccessDto, Integer, Hash)>] RegistryPushAccessDto data, response status code and response headers
|
|
232
|
+
def get_transient_push_access_with_http_info(opts = {})
|
|
233
|
+
if @api_client.config.debugging
|
|
234
|
+
@api_client.config.logger.debug 'Calling API: DockerRegistryApi.get_transient_push_access ...'
|
|
235
|
+
end
|
|
236
|
+
# resource path
|
|
237
|
+
local_var_path = '/docker-registry/registry-push-access'
|
|
238
|
+
|
|
239
|
+
# query parameters
|
|
240
|
+
query_params = opts[:query_params] || {}
|
|
241
|
+
query_params[:'regionId'] = opts[:'region_id'] if !opts[:'region_id'].nil?
|
|
242
|
+
|
|
243
|
+
# header parameters
|
|
244
|
+
header_params = opts[:header_params] || {}
|
|
245
|
+
# HTTP header 'Accept' (if needed)
|
|
246
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
247
|
+
header_params[:'X-Nightona-Organization-ID'] = opts[:'x_nightona_organization_id'] if !opts[:'x_nightona_organization_id'].nil?
|
|
248
|
+
|
|
249
|
+
# form parameters
|
|
250
|
+
form_params = opts[:form_params] || {}
|
|
251
|
+
|
|
252
|
+
# http body (model)
|
|
253
|
+
post_body = opts[:debug_body]
|
|
254
|
+
|
|
255
|
+
# return_type
|
|
256
|
+
return_type = opts[:debug_return_type] || 'RegistryPushAccessDto'
|
|
257
|
+
|
|
258
|
+
# auth_names
|
|
259
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
260
|
+
|
|
261
|
+
new_options = opts.merge(
|
|
262
|
+
:operation => :"DockerRegistryApi.get_transient_push_access",
|
|
263
|
+
:header_params => header_params,
|
|
264
|
+
:query_params => query_params,
|
|
265
|
+
:form_params => form_params,
|
|
266
|
+
:body => post_body,
|
|
267
|
+
:auth_names => auth_names,
|
|
268
|
+
:return_type => return_type
|
|
269
|
+
)
|
|
270
|
+
|
|
271
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
272
|
+
if @api_client.config.debugging
|
|
273
|
+
@api_client.config.logger.debug "API called: DockerRegistryApi#get_transient_push_access\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
274
|
+
end
|
|
275
|
+
return data, status_code, headers
|
|
276
|
+
end
|
|
277
|
+
|
|
278
|
+
# List registries
|
|
279
|
+
# @param [Hash] opts the optional parameters
|
|
280
|
+
# @option opts [String] :x_nightona_organization_id Use with JWT to specify the organization ID
|
|
281
|
+
# @return [Array<DockerRegistry>]
|
|
282
|
+
def list_registries(opts = {})
|
|
283
|
+
data, _status_code, _headers = list_registries_with_http_info(opts)
|
|
284
|
+
data
|
|
285
|
+
end
|
|
286
|
+
|
|
287
|
+
# List registries
|
|
288
|
+
# @param [Hash] opts the optional parameters
|
|
289
|
+
# @option opts [String] :x_nightona_organization_id Use with JWT to specify the organization ID
|
|
290
|
+
# @return [Array<(Array<DockerRegistry>, Integer, Hash)>] Array<DockerRegistry> data, response status code and response headers
|
|
291
|
+
def list_registries_with_http_info(opts = {})
|
|
292
|
+
if @api_client.config.debugging
|
|
293
|
+
@api_client.config.logger.debug 'Calling API: DockerRegistryApi.list_registries ...'
|
|
294
|
+
end
|
|
295
|
+
# resource path
|
|
296
|
+
local_var_path = '/docker-registry'
|
|
297
|
+
|
|
298
|
+
# query parameters
|
|
299
|
+
query_params = opts[:query_params] || {}
|
|
300
|
+
|
|
301
|
+
# header parameters
|
|
302
|
+
header_params = opts[:header_params] || {}
|
|
303
|
+
# HTTP header 'Accept' (if needed)
|
|
304
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
305
|
+
header_params[:'X-Nightona-Organization-ID'] = opts[:'x_nightona_organization_id'] if !opts[:'x_nightona_organization_id'].nil?
|
|
306
|
+
|
|
307
|
+
# form parameters
|
|
308
|
+
form_params = opts[:form_params] || {}
|
|
309
|
+
|
|
310
|
+
# http body (model)
|
|
311
|
+
post_body = opts[:debug_body]
|
|
312
|
+
|
|
313
|
+
# return_type
|
|
314
|
+
return_type = opts[:debug_return_type] || 'Array<DockerRegistry>'
|
|
315
|
+
|
|
316
|
+
# auth_names
|
|
317
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
318
|
+
|
|
319
|
+
new_options = opts.merge(
|
|
320
|
+
:operation => :"DockerRegistryApi.list_registries",
|
|
321
|
+
:header_params => header_params,
|
|
322
|
+
:query_params => query_params,
|
|
323
|
+
:form_params => form_params,
|
|
324
|
+
:body => post_body,
|
|
325
|
+
:auth_names => auth_names,
|
|
326
|
+
:return_type => return_type
|
|
327
|
+
)
|
|
328
|
+
|
|
329
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
330
|
+
if @api_client.config.debugging
|
|
331
|
+
@api_client.config.logger.debug "API called: DockerRegistryApi#list_registries\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
332
|
+
end
|
|
333
|
+
return data, status_code, headers
|
|
334
|
+
end
|
|
335
|
+
|
|
336
|
+
# Update registry
|
|
337
|
+
# @param id [String] ID of the docker registry
|
|
338
|
+
# @param update_docker_registry [UpdateDockerRegistry]
|
|
339
|
+
# @param [Hash] opts the optional parameters
|
|
340
|
+
# @option opts [String] :x_nightona_organization_id Use with JWT to specify the organization ID
|
|
341
|
+
# @return [DockerRegistry]
|
|
342
|
+
def update_registry(id, update_docker_registry, opts = {})
|
|
343
|
+
data, _status_code, _headers = update_registry_with_http_info(id, update_docker_registry, opts)
|
|
344
|
+
data
|
|
345
|
+
end
|
|
346
|
+
|
|
347
|
+
# Update registry
|
|
348
|
+
# @param id [String] ID of the docker registry
|
|
349
|
+
# @param update_docker_registry [UpdateDockerRegistry]
|
|
350
|
+
# @param [Hash] opts the optional parameters
|
|
351
|
+
# @option opts [String] :x_nightona_organization_id Use with JWT to specify the organization ID
|
|
352
|
+
# @return [Array<(DockerRegistry, Integer, Hash)>] DockerRegistry data, response status code and response headers
|
|
353
|
+
def update_registry_with_http_info(id, update_docker_registry, opts = {})
|
|
354
|
+
if @api_client.config.debugging
|
|
355
|
+
@api_client.config.logger.debug 'Calling API: DockerRegistryApi.update_registry ...'
|
|
356
|
+
end
|
|
357
|
+
# verify the required parameter 'id' is set
|
|
358
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
359
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling DockerRegistryApi.update_registry"
|
|
360
|
+
end
|
|
361
|
+
# verify the required parameter 'update_docker_registry' is set
|
|
362
|
+
if @api_client.config.client_side_validation && update_docker_registry.nil?
|
|
363
|
+
fail ArgumentError, "Missing the required parameter 'update_docker_registry' when calling DockerRegistryApi.update_registry"
|
|
364
|
+
end
|
|
365
|
+
# resource path
|
|
366
|
+
local_var_path = '/docker-registry/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
367
|
+
|
|
368
|
+
# query parameters
|
|
369
|
+
query_params = opts[:query_params] || {}
|
|
370
|
+
|
|
371
|
+
# header parameters
|
|
372
|
+
header_params = opts[:header_params] || {}
|
|
373
|
+
# HTTP header 'Accept' (if needed)
|
|
374
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
375
|
+
# HTTP header 'Content-Type'
|
|
376
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
377
|
+
if !content_type.nil?
|
|
378
|
+
header_params['Content-Type'] = content_type
|
|
379
|
+
end
|
|
380
|
+
header_params[:'X-Nightona-Organization-ID'] = opts[:'x_nightona_organization_id'] if !opts[:'x_nightona_organization_id'].nil?
|
|
381
|
+
|
|
382
|
+
# form parameters
|
|
383
|
+
form_params = opts[:form_params] || {}
|
|
384
|
+
|
|
385
|
+
# http body (model)
|
|
386
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_docker_registry)
|
|
387
|
+
|
|
388
|
+
# return_type
|
|
389
|
+
return_type = opts[:debug_return_type] || 'DockerRegistry'
|
|
390
|
+
|
|
391
|
+
# auth_names
|
|
392
|
+
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
393
|
+
|
|
394
|
+
new_options = opts.merge(
|
|
395
|
+
:operation => :"DockerRegistryApi.update_registry",
|
|
396
|
+
:header_params => header_params,
|
|
397
|
+
:query_params => query_params,
|
|
398
|
+
:form_params => form_params,
|
|
399
|
+
:body => post_body,
|
|
400
|
+
:auth_names => auth_names,
|
|
401
|
+
:return_type => return_type
|
|
402
|
+
)
|
|
403
|
+
|
|
404
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
405
|
+
if @api_client.config.debugging
|
|
406
|
+
@api_client.config.logger.debug "API called: DockerRegistryApi#update_registry\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
407
|
+
end
|
|
408
|
+
return data, status_code, headers
|
|
409
|
+
end
|
|
410
|
+
end
|
|
411
|
+
end
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Nightona
|
|
3
|
+
|
|
4
|
+
#Nightona AI platform API Docs
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
Contact: amaraaamka0404@gmail.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.21.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module NightonaApiClient
|
|
16
|
+
class HealthApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# @param [Hash] opts the optional parameters
|
|
23
|
+
# @return [HealthControllerCheck200Response]
|
|
24
|
+
def health_controller_check(opts = {})
|
|
25
|
+
data, _status_code, _headers = health_controller_check_with_http_info(opts)
|
|
26
|
+
data
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
# @param [Hash] opts the optional parameters
|
|
30
|
+
# @return [Array<(HealthControllerCheck200Response, Integer, Hash)>] HealthControllerCheck200Response data, response status code and response headers
|
|
31
|
+
def health_controller_check_with_http_info(opts = {})
|
|
32
|
+
if @api_client.config.debugging
|
|
33
|
+
@api_client.config.logger.debug 'Calling API: HealthApi.health_controller_check ...'
|
|
34
|
+
end
|
|
35
|
+
# resource path
|
|
36
|
+
local_var_path = '/health/ready'
|
|
37
|
+
|
|
38
|
+
# query parameters
|
|
39
|
+
query_params = opts[:query_params] || {}
|
|
40
|
+
|
|
41
|
+
# header parameters
|
|
42
|
+
header_params = opts[:header_params] || {}
|
|
43
|
+
# HTTP header 'Accept' (if needed)
|
|
44
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
45
|
+
|
|
46
|
+
# form parameters
|
|
47
|
+
form_params = opts[:form_params] || {}
|
|
48
|
+
|
|
49
|
+
# http body (model)
|
|
50
|
+
post_body = opts[:debug_body]
|
|
51
|
+
|
|
52
|
+
# return_type
|
|
53
|
+
return_type = opts[:debug_return_type] || 'HealthControllerCheck200Response'
|
|
54
|
+
|
|
55
|
+
# auth_names
|
|
56
|
+
auth_names = opts[:debug_auth_names] || ['bearer']
|
|
57
|
+
|
|
58
|
+
new_options = opts.merge(
|
|
59
|
+
:operation => :"HealthApi.health_controller_check",
|
|
60
|
+
:header_params => header_params,
|
|
61
|
+
:query_params => query_params,
|
|
62
|
+
:form_params => form_params,
|
|
63
|
+
:body => post_body,
|
|
64
|
+
:auth_names => auth_names,
|
|
65
|
+
:return_type => return_type
|
|
66
|
+
)
|
|
67
|
+
|
|
68
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
69
|
+
if @api_client.config.debugging
|
|
70
|
+
@api_client.config.logger.debug "API called: HealthApi#health_controller_check\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
71
|
+
end
|
|
72
|
+
return data, status_code, headers
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# @param [Hash] opts the optional parameters
|
|
76
|
+
# @return [nil]
|
|
77
|
+
def health_controller_live(opts = {})
|
|
78
|
+
health_controller_live_with_http_info(opts)
|
|
79
|
+
nil
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# @param [Hash] opts the optional parameters
|
|
83
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
84
|
+
def health_controller_live_with_http_info(opts = {})
|
|
85
|
+
if @api_client.config.debugging
|
|
86
|
+
@api_client.config.logger.debug 'Calling API: HealthApi.health_controller_live ...'
|
|
87
|
+
end
|
|
88
|
+
# resource path
|
|
89
|
+
local_var_path = '/health'
|
|
90
|
+
|
|
91
|
+
# query parameters
|
|
92
|
+
query_params = opts[:query_params] || {}
|
|
93
|
+
|
|
94
|
+
# header parameters
|
|
95
|
+
header_params = opts[:header_params] || {}
|
|
96
|
+
|
|
97
|
+
# form parameters
|
|
98
|
+
form_params = opts[:form_params] || {}
|
|
99
|
+
|
|
100
|
+
# http body (model)
|
|
101
|
+
post_body = opts[:debug_body]
|
|
102
|
+
|
|
103
|
+
# return_type
|
|
104
|
+
return_type = opts[:debug_return_type]
|
|
105
|
+
|
|
106
|
+
# auth_names
|
|
107
|
+
auth_names = opts[:debug_auth_names] || []
|
|
108
|
+
|
|
109
|
+
new_options = opts.merge(
|
|
110
|
+
:operation => :"HealthApi.health_controller_live",
|
|
111
|
+
:header_params => header_params,
|
|
112
|
+
:query_params => query_params,
|
|
113
|
+
:form_params => form_params,
|
|
114
|
+
:body => post_body,
|
|
115
|
+
:auth_names => auth_names,
|
|
116
|
+
:return_type => return_type
|
|
117
|
+
)
|
|
118
|
+
|
|
119
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
120
|
+
if @api_client.config.debugging
|
|
121
|
+
@api_client.config.logger.debug "API called: HealthApi#health_controller_live\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
122
|
+
end
|
|
123
|
+
return data, status_code, headers
|
|
124
|
+
end
|
|
125
|
+
end
|
|
126
|
+
end
|