daytona_api_client 0.167.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +9 -0
- data/Gemfile.lock +101 -0
- data/daytona_api_client.gemspec +2 -2
- data/lib/daytona_api_client/api/api_keys_api.rb +1 -1
- data/lib/daytona_api_client/api/audit_api.rb +139 -9
- data/lib/daytona_api_client/api/docker_registry_api.rb +66 -5
- data/lib/daytona_api_client/api/health_api.rb +2 -53
- data/lib/daytona_api_client/api/organizations_api.rb +162 -953
- data/lib/daytona_api_client/api/preview_api.rb +7 -76
- data/lib/daytona_api_client/api/runners_api.rb +21 -408
- data/lib/daytona_api_client/api/sandbox_api.rb +214 -1462
- data/lib/daytona_api_client/api/snapshots_api.rb +110 -36
- data/lib/daytona_api_client/api/toolbox_api.rb +740 -740
- data/lib/daytona_api_client/api/users_api.rb +238 -1
- data/lib/daytona_api_client/api/volumes_api.rb +1 -1
- data/lib/daytona_api_client/api/webhooks_api.rb +267 -4
- data/lib/daytona_api_client/api/workspace_api.rb +5 -5
- data/lib/daytona_api_client/api_client.rb +1 -1
- data/lib/daytona_api_client/configuration.rb +1 -4
- data/lib/daytona_api_client/models/account_provider.rb +0 -2
- data/lib/daytona_api_client/models/announcement.rb +0 -2
- data/lib/daytona_api_client/models/api_key_list.rb +0 -2
- data/lib/daytona_api_client/models/api_key_response.rb +0 -2
- data/lib/daytona_api_client/models/audit_log.rb +1 -21
- data/lib/daytona_api_client/models/build_info.rb +4 -33
- data/lib/daytona_api_client/models/command.rb +0 -2
- data/lib/daytona_api_client/models/completion_context.rb +0 -2
- data/lib/daytona_api_client/models/completion_item.rb +0 -2
- data/lib/daytona_api_client/models/completion_list.rb +0 -2
- data/lib/daytona_api_client/models/compressed_screenshot_response.rb +0 -2
- data/lib/daytona_api_client/models/computer_use_start_response.rb +0 -2
- data/lib/daytona_api_client/models/computer_use_status_response.rb +0 -2
- data/lib/daytona_api_client/models/computer_use_stop_response.rb +0 -2
- data/lib/daytona_api_client/models/create_api_key.rb +1 -3
- data/lib/daytona_api_client/models/{job.rb → create_audit_log.rb} +79 -168
- data/lib/daytona_api_client/models/create_build_info.rb +0 -2
- data/lib/daytona_api_client/models/create_docker_registry.rb +65 -6
- data/lib/daytona_api_client/models/create_linked_account.rb +0 -2
- data/lib/daytona_api_client/models/create_organization.rb +4 -33
- data/lib/daytona_api_client/models/create_organization_invitation.rb +0 -2
- data/lib/daytona_api_client/models/create_organization_quota.rb +0 -2
- data/lib/daytona_api_client/models/create_organization_role.rb +0 -2
- data/lib/daytona_api_client/models/create_runner.rb +315 -33
- data/lib/daytona_api_client/models/create_sandbox.rb +1 -13
- data/lib/daytona_api_client/models/create_session_request.rb +0 -2
- data/lib/daytona_api_client/models/create_snapshot.rb +14 -16
- data/lib/daytona_api_client/models/create_user.rb +1 -12
- data/lib/daytona_api_client/models/create_volume.rb +0 -2
- data/lib/daytona_api_client/models/create_workspace.rb +0 -2
- data/lib/daytona_api_client/models/daytona_configuration.rb +4 -53
- data/lib/daytona_api_client/models/display_info_response.rb +0 -2
- data/lib/daytona_api_client/models/docker_registry.rb +0 -2
- data/lib/daytona_api_client/models/download_files.rb +0 -2
- data/lib/daytona_api_client/models/execute_request.rb +0 -2
- data/lib/daytona_api_client/models/execute_response.rb +0 -2
- data/lib/daytona_api_client/models/file_info.rb +0 -2
- data/lib/daytona_api_client/models/file_status.rb +0 -2
- data/lib/daytona_api_client/models/git_add_request.rb +0 -2
- data/lib/daytona_api_client/models/git_branch_request.rb +0 -2
- data/lib/daytona_api_client/models/git_checkout_request.rb +0 -2
- data/lib/daytona_api_client/models/git_clone_request.rb +0 -2
- data/lib/daytona_api_client/models/git_commit_info.rb +0 -2
- data/lib/daytona_api_client/models/git_commit_request.rb +0 -2
- data/lib/daytona_api_client/models/git_commit_response.rb +0 -2
- data/lib/daytona_api_client/models/git_delete_branch_request.rb +0 -2
- data/lib/daytona_api_client/models/git_repo_request.rb +0 -2
- data/lib/daytona_api_client/models/git_status.rb +0 -2
- data/lib/daytona_api_client/models/health_controller_check200_response.rb +0 -2
- data/lib/daytona_api_client/models/health_controller_check200_response_info_value.rb +0 -2
- data/lib/daytona_api_client/models/health_controller_check503_response.rb +0 -2
- data/lib/daytona_api_client/models/keyboard_hotkey_request.rb +0 -2
- data/lib/daytona_api_client/models/keyboard_press_request.rb +0 -2
- data/lib/daytona_api_client/models/keyboard_type_request.rb +0 -2
- data/lib/daytona_api_client/models/list_branch_response.rb +0 -2
- data/lib/daytona_api_client/models/lsp_completion_params.rb +0 -2
- data/lib/daytona_api_client/models/lsp_document_request.rb +0 -2
- data/lib/daytona_api_client/models/lsp_location.rb +0 -2
- data/lib/daytona_api_client/models/lsp_server_request.rb +0 -2
- data/lib/daytona_api_client/models/lsp_symbol.rb +0 -2
- data/lib/daytona_api_client/models/match.rb +0 -2
- data/lib/daytona_api_client/models/mouse_click_request.rb +0 -2
- data/lib/daytona_api_client/models/mouse_click_response.rb +0 -2
- data/lib/daytona_api_client/models/mouse_drag_request.rb +0 -2
- data/lib/daytona_api_client/models/mouse_drag_response.rb +0 -2
- data/lib/daytona_api_client/models/mouse_move_request.rb +0 -2
- data/lib/daytona_api_client/models/mouse_move_response.rb +0 -2
- data/lib/daytona_api_client/models/mouse_position.rb +0 -2
- data/lib/daytona_api_client/models/mouse_scroll_request.rb +0 -2
- data/lib/daytona_api_client/models/mouse_scroll_response.rb +0 -2
- data/lib/daytona_api_client/models/oidc_config.rb +0 -2
- data/lib/daytona_api_client/models/organization.rb +85 -148
- data/lib/daytona_api_client/models/organization_invitation.rb +0 -2
- data/lib/daytona_api_client/models/organization_role.rb +0 -2
- data/lib/daytona_api_client/models/organization_sandbox_default_limited_network_egress.rb +0 -2
- data/lib/daytona_api_client/models/organization_suspension.rb +5 -9
- data/lib/daytona_api_client/models/organization_usage_overview.rb +146 -20
- data/lib/daytona_api_client/models/organization_user.rb +0 -2
- data/lib/daytona_api_client/models/paginated_audit_logs.rb +4 -16
- data/lib/daytona_api_client/models/paginated_sandboxes.rb +0 -2
- data/lib/daytona_api_client/models/paginated_snapshots.rb +0 -2
- data/lib/daytona_api_client/models/{paginated_jobs.rb → paginated_snapshots_dto.rb} +4 -6
- data/lib/daytona_api_client/models/port_preview_url.rb +14 -33
- data/lib/daytona_api_client/models/position.rb +0 -2
- data/lib/daytona_api_client/models/posthog_config.rb +0 -2
- data/lib/daytona_api_client/models/process_errors_response.rb +0 -2
- data/lib/daytona_api_client/models/process_logs_response.rb +0 -2
- data/lib/daytona_api_client/models/process_restart_response.rb +0 -2
- data/lib/daytona_api_client/models/process_status_response.rb +0 -2
- data/lib/daytona_api_client/models/project_dir_response.rb +0 -2
- data/lib/daytona_api_client/models/pty_create_request.rb +0 -2
- data/lib/daytona_api_client/models/pty_create_response.rb +0 -2
- data/lib/daytona_api_client/models/pty_list_response.rb +0 -2
- data/lib/daytona_api_client/models/pty_resize_request.rb +0 -2
- data/lib/daytona_api_client/models/pty_session_info.rb +0 -2
- data/lib/daytona_api_client/models/range.rb +0 -2
- data/lib/daytona_api_client/models/region.rb +4 -180
- data/lib/daytona_api_client/models/region_screenshot_response.rb +0 -2
- data/lib/daytona_api_client/models/registry_push_access_dto.rb +0 -2
- data/lib/daytona_api_client/models/replace_request.rb +0 -2
- data/lib/daytona_api_client/models/replace_result.rb +0 -2
- data/lib/daytona_api_client/models/runner.rb +117 -108
- data/lib/daytona_api_client/models/runner_snapshot_dto.rb +17 -2
- data/lib/daytona_api_client/models/sandbox.rb +14 -80
- data/lib/daytona_api_client/models/sandbox_info.rb +0 -2
- data/lib/daytona_api_client/models/sandbox_labels.rb +0 -2
- data/lib/daytona_api_client/models/sandbox_state.rb +1 -4
- data/lib/daytona_api_client/models/sandbox_volume.rb +4 -16
- data/lib/daytona_api_client/models/screenshot_response.rb +0 -2
- data/lib/daytona_api_client/models/search_files_response.rb +0 -2
- data/lib/daytona_api_client/models/send_webhook_dto.rb +1 -25
- data/lib/daytona_api_client/models/session.rb +0 -2
- data/lib/daytona_api_client/models/session_execute_request.rb +0 -2
- data/lib/daytona_api_client/models/session_execute_response.rb +0 -2
- data/lib/daytona_api_client/models/set_snapshot_general_status_dto.rb +0 -2
- data/lib/daytona_api_client/models/snapshot_dto.rb +4 -38
- data/lib/daytona_api_client/models/snapshot_state.rb +4 -1
- data/lib/daytona_api_client/models/ssh_access_dto.rb +4 -33
- data/lib/daytona_api_client/models/ssh_access_validation_dto.rb +24 -6
- data/lib/daytona_api_client/models/storage_access_dto.rb +0 -2
- data/lib/daytona_api_client/models/update_docker_registry.rb +0 -2
- data/lib/daytona_api_client/models/update_organization_invitation.rb +0 -2
- data/lib/daytona_api_client/models/update_organization_member_access.rb +0 -2
- data/lib/daytona_api_client/models/update_organization_quota.rb +41 -92
- data/lib/daytona_api_client/models/update_organization_role.rb +0 -2
- data/lib/daytona_api_client/models/update_sandbox_state_dto.rb +6 -28
- data/lib/daytona_api_client/models/user.rb +0 -2
- data/lib/daytona_api_client/models/user_home_dir_response.rb +0 -2
- data/lib/daytona_api_client/models/user_public_key.rb +0 -2
- data/lib/daytona_api_client/models/volume_dto.rb +0 -2
- data/lib/daytona_api_client/models/webhook_app_portal_access.rb +1 -30
- data/lib/daytona_api_client/models/{admin_get_webhook_status200_response.rb → webhook_controller_get_status200_response.rb} +3 -5
- data/lib/daytona_api_client/models/webhook_initialization_status.rb +0 -2
- data/lib/daytona_api_client/models/windows_response.rb +0 -2
- data/lib/daytona_api_client/models/work_dir_response.rb +0 -2
- data/lib/daytona_api_client/models/workspace.rb +27 -66
- data/lib/daytona_api_client/version.rb +1 -1
- data/lib/daytona_api_client.rb +2 -46
- data/project.json +11 -38
- metadata +6 -54
- data/.gitignore +0 -39
- data/.openapi-generator/FILES +0 -209
- data/.openapi-generator/VERSION +0 -1
- data/.openapi-generator-ignore +0 -31
- data/.rspec +0 -2
- data/.rubocop.yml +0 -148
- data/fix-gemspec.sh +0 -11
- data/lib/daytona_api_client/api/admin_api.rb +0 -1151
- data/lib/daytona_api_client/api/jobs_api.rb +0 -299
- data/lib/daytona_api_client/api/regions_api.rb +0 -77
- data/lib/daytona_api_client/models/admin_create_runner.rb +0 -387
- data/lib/daytona_api_client/models/create_region.rb +0 -271
- data/lib/daytona_api_client/models/create_region_response.rb +0 -282
- data/lib/daytona_api_client/models/create_runner_response.rb +0 -265
- data/lib/daytona_api_client/models/create_sandbox_snapshot.rb +0 -238
- data/lib/daytona_api_client/models/fork_sandbox.rb +0 -221
- data/lib/daytona_api_client/models/job_status.rb +0 -42
- data/lib/daytona_api_client/models/job_type.rb +0 -52
- data/lib/daytona_api_client/models/log_entry.rb +0 -407
- data/lib/daytona_api_client/models/metric_data_point.rb +0 -265
- data/lib/daytona_api_client/models/metric_series.rb +0 -267
- data/lib/daytona_api_client/models/metrics_response.rb +0 -240
- data/lib/daytona_api_client/models/otel_config.rb +0 -251
- data/lib/daytona_api_client/models/paginated_logs.rb +0 -321
- data/lib/daytona_api_client/models/paginated_traces.rb +0 -321
- data/lib/daytona_api_client/models/poll_jobs_response.rb +0 -240
- data/lib/daytona_api_client/models/rate_limit_config.rb +0 -251
- data/lib/daytona_api_client/models/rate_limit_entry.rb +0 -231
- data/lib/daytona_api_client/models/regenerate_api_key_response.rb +0 -238
- data/lib/daytona_api_client/models/region_quota.rb +0 -389
- data/lib/daytona_api_client/models/region_type.rb +0 -41
- data/lib/daytona_api_client/models/region_usage_overview.rb +0 -393
- data/lib/daytona_api_client/models/resize_sandbox.rb +0 -298
- data/lib/daytona_api_client/models/runner_class.rb +0 -40
- data/lib/daytona_api_client/models/runner_full.rb +0 -808
- data/lib/daytona_api_client/models/runner_health_metrics.rb +0 -535
- data/lib/daytona_api_client/models/runner_healthcheck.rb +0 -290
- data/lib/daytona_api_client/models/runner_service_health.rb +0 -275
- data/lib/daytona_api_client/models/signed_port_preview_url.rb +0 -319
- data/lib/daytona_api_client/models/snapshot_manager_credentials.rb +0 -265
- data/lib/daytona_api_client/models/toolbox_proxy_url.rb +0 -238
- data/lib/daytona_api_client/models/trace_span.rb +0 -405
- data/lib/daytona_api_client/models/trace_summary.rb +0 -383
- data/lib/daytona_api_client/models/update_job_status.rb +0 -280
- data/lib/daytona_api_client/models/update_organization_default_region.rb +0 -238
- data/lib/daytona_api_client/models/update_organization_region_quota.rb +0 -287
- data/lib/daytona_api_client/models/update_region.rb +0 -244
- data/lib/daytona_api_client/models/url.rb +0 -238
- data/lib/daytona_api_client/models/webhook_event.rb +0 -45
- data/lib/daytona_api_client/models/workspace_port_preview_url.rb +0 -265
|
@@ -1,1151 +0,0 @@
|
|
|
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
|
-
# Check if an image can be cleaned up
|
|
23
|
-
# @param image_name [String] Image name with tag to check
|
|
24
|
-
# @param [Hash] opts the optional parameters
|
|
25
|
-
# @return [Boolean]
|
|
26
|
-
def admin_can_cleanup_image(image_name, opts = {})
|
|
27
|
-
data, _status_code, _headers = admin_can_cleanup_image_with_http_info(image_name, opts)
|
|
28
|
-
data
|
|
29
|
-
end
|
|
30
|
-
|
|
31
|
-
# Check if an image can be cleaned up
|
|
32
|
-
# @param image_name [String] Image name with tag to check
|
|
33
|
-
# @param [Hash] opts the optional parameters
|
|
34
|
-
# @return [Array<(Boolean, Integer, Hash)>] Boolean data, response status code and response headers
|
|
35
|
-
def admin_can_cleanup_image_with_http_info(image_name, opts = {})
|
|
36
|
-
if @api_client.config.debugging
|
|
37
|
-
@api_client.config.logger.debug 'Calling API: AdminApi.admin_can_cleanup_image ...'
|
|
38
|
-
end
|
|
39
|
-
# verify the required parameter 'image_name' is set
|
|
40
|
-
if @api_client.config.client_side_validation && image_name.nil?
|
|
41
|
-
fail ArgumentError, "Missing the required parameter 'image_name' when calling AdminApi.admin_can_cleanup_image"
|
|
42
|
-
end
|
|
43
|
-
# resource path
|
|
44
|
-
local_var_path = '/admin/snapshots/can-cleanup-image'
|
|
45
|
-
|
|
46
|
-
# query parameters
|
|
47
|
-
query_params = opts[:query_params] || {}
|
|
48
|
-
query_params[:'imageName'] = image_name
|
|
49
|
-
|
|
50
|
-
# header parameters
|
|
51
|
-
header_params = opts[:header_params] || {}
|
|
52
|
-
# HTTP header 'Accept' (if needed)
|
|
53
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
54
|
-
|
|
55
|
-
# form parameters
|
|
56
|
-
form_params = opts[:form_params] || {}
|
|
57
|
-
|
|
58
|
-
# http body (model)
|
|
59
|
-
post_body = opts[:debug_body]
|
|
60
|
-
|
|
61
|
-
# return_type
|
|
62
|
-
return_type = opts[:debug_return_type] || 'Boolean'
|
|
63
|
-
|
|
64
|
-
# auth_names
|
|
65
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
66
|
-
|
|
67
|
-
new_options = opts.merge(
|
|
68
|
-
:operation => :"AdminApi.admin_can_cleanup_image",
|
|
69
|
-
:header_params => header_params,
|
|
70
|
-
:query_params => query_params,
|
|
71
|
-
:form_params => form_params,
|
|
72
|
-
:body => post_body,
|
|
73
|
-
:auth_names => auth_names,
|
|
74
|
-
:return_type => return_type
|
|
75
|
-
)
|
|
76
|
-
|
|
77
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
78
|
-
if @api_client.config.debugging
|
|
79
|
-
@api_client.config.logger.debug "API called: AdminApi#admin_can_cleanup_image\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
80
|
-
end
|
|
81
|
-
return data, status_code, headers
|
|
82
|
-
end
|
|
83
|
-
|
|
84
|
-
# Create runner
|
|
85
|
-
# @param admin_create_runner [AdminCreateRunner]
|
|
86
|
-
# @param [Hash] opts the optional parameters
|
|
87
|
-
# @return [CreateRunnerResponse]
|
|
88
|
-
def admin_create_runner(admin_create_runner, opts = {})
|
|
89
|
-
data, _status_code, _headers = admin_create_runner_with_http_info(admin_create_runner, opts)
|
|
90
|
-
data
|
|
91
|
-
end
|
|
92
|
-
|
|
93
|
-
# Create runner
|
|
94
|
-
# @param admin_create_runner [AdminCreateRunner]
|
|
95
|
-
# @param [Hash] opts the optional parameters
|
|
96
|
-
# @return [Array<(CreateRunnerResponse, Integer, Hash)>] CreateRunnerResponse data, response status code and response headers
|
|
97
|
-
def admin_create_runner_with_http_info(admin_create_runner, opts = {})
|
|
98
|
-
if @api_client.config.debugging
|
|
99
|
-
@api_client.config.logger.debug 'Calling API: AdminApi.admin_create_runner ...'
|
|
100
|
-
end
|
|
101
|
-
# verify the required parameter 'admin_create_runner' is set
|
|
102
|
-
if @api_client.config.client_side_validation && admin_create_runner.nil?
|
|
103
|
-
fail ArgumentError, "Missing the required parameter 'admin_create_runner' when calling AdminApi.admin_create_runner"
|
|
104
|
-
end
|
|
105
|
-
# resource path
|
|
106
|
-
local_var_path = '/admin/runners'
|
|
107
|
-
|
|
108
|
-
# query parameters
|
|
109
|
-
query_params = opts[:query_params] || {}
|
|
110
|
-
|
|
111
|
-
# header parameters
|
|
112
|
-
header_params = opts[:header_params] || {}
|
|
113
|
-
# HTTP header 'Accept' (if needed)
|
|
114
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
115
|
-
# HTTP header 'Content-Type'
|
|
116
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
117
|
-
if !content_type.nil?
|
|
118
|
-
header_params['Content-Type'] = content_type
|
|
119
|
-
end
|
|
120
|
-
|
|
121
|
-
# form parameters
|
|
122
|
-
form_params = opts[:form_params] || {}
|
|
123
|
-
|
|
124
|
-
# http body (model)
|
|
125
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(admin_create_runner)
|
|
126
|
-
|
|
127
|
-
# return_type
|
|
128
|
-
return_type = opts[:debug_return_type] || 'CreateRunnerResponse'
|
|
129
|
-
|
|
130
|
-
# auth_names
|
|
131
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
132
|
-
|
|
133
|
-
new_options = opts.merge(
|
|
134
|
-
:operation => :"AdminApi.admin_create_runner",
|
|
135
|
-
:header_params => header_params,
|
|
136
|
-
:query_params => query_params,
|
|
137
|
-
:form_params => form_params,
|
|
138
|
-
:body => post_body,
|
|
139
|
-
:auth_names => auth_names,
|
|
140
|
-
:return_type => return_type
|
|
141
|
-
)
|
|
142
|
-
|
|
143
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
144
|
-
if @api_client.config.debugging
|
|
145
|
-
@api_client.config.logger.debug "API called: AdminApi#admin_create_runner\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
146
|
-
end
|
|
147
|
-
return data, status_code, headers
|
|
148
|
-
end
|
|
149
|
-
|
|
150
|
-
# Create user
|
|
151
|
-
# @param create_user [CreateUser]
|
|
152
|
-
# @param [Hash] opts the optional parameters
|
|
153
|
-
# @return [nil]
|
|
154
|
-
def admin_create_user(create_user, opts = {})
|
|
155
|
-
admin_create_user_with_http_info(create_user, opts)
|
|
156
|
-
nil
|
|
157
|
-
end
|
|
158
|
-
|
|
159
|
-
# Create user
|
|
160
|
-
# @param create_user [CreateUser]
|
|
161
|
-
# @param [Hash] opts the optional parameters
|
|
162
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
163
|
-
def admin_create_user_with_http_info(create_user, opts = {})
|
|
164
|
-
if @api_client.config.debugging
|
|
165
|
-
@api_client.config.logger.debug 'Calling API: AdminApi.admin_create_user ...'
|
|
166
|
-
end
|
|
167
|
-
# verify the required parameter 'create_user' is set
|
|
168
|
-
if @api_client.config.client_side_validation && create_user.nil?
|
|
169
|
-
fail ArgumentError, "Missing the required parameter 'create_user' when calling AdminApi.admin_create_user"
|
|
170
|
-
end
|
|
171
|
-
# resource path
|
|
172
|
-
local_var_path = '/admin/users'
|
|
173
|
-
|
|
174
|
-
# query parameters
|
|
175
|
-
query_params = opts[:query_params] || {}
|
|
176
|
-
|
|
177
|
-
# header parameters
|
|
178
|
-
header_params = opts[:header_params] || {}
|
|
179
|
-
# HTTP header 'Content-Type'
|
|
180
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
181
|
-
if !content_type.nil?
|
|
182
|
-
header_params['Content-Type'] = content_type
|
|
183
|
-
end
|
|
184
|
-
|
|
185
|
-
# form parameters
|
|
186
|
-
form_params = opts[:form_params] || {}
|
|
187
|
-
|
|
188
|
-
# http body (model)
|
|
189
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_user)
|
|
190
|
-
|
|
191
|
-
# return_type
|
|
192
|
-
return_type = opts[:debug_return_type]
|
|
193
|
-
|
|
194
|
-
# auth_names
|
|
195
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
196
|
-
|
|
197
|
-
new_options = opts.merge(
|
|
198
|
-
:operation => :"AdminApi.admin_create_user",
|
|
199
|
-
:header_params => header_params,
|
|
200
|
-
:query_params => query_params,
|
|
201
|
-
:form_params => form_params,
|
|
202
|
-
:body => post_body,
|
|
203
|
-
:auth_names => auth_names,
|
|
204
|
-
:return_type => return_type
|
|
205
|
-
)
|
|
206
|
-
|
|
207
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
208
|
-
if @api_client.config.debugging
|
|
209
|
-
@api_client.config.logger.debug "API called: AdminApi#admin_create_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
210
|
-
end
|
|
211
|
-
return data, status_code, headers
|
|
212
|
-
end
|
|
213
|
-
|
|
214
|
-
# Delete runner
|
|
215
|
-
# @param id [String] Runner ID
|
|
216
|
-
# @param [Hash] opts the optional parameters
|
|
217
|
-
# @return [nil]
|
|
218
|
-
def admin_delete_runner(id, opts = {})
|
|
219
|
-
admin_delete_runner_with_http_info(id, opts)
|
|
220
|
-
nil
|
|
221
|
-
end
|
|
222
|
-
|
|
223
|
-
# Delete runner
|
|
224
|
-
# @param id [String] Runner ID
|
|
225
|
-
# @param [Hash] opts the optional parameters
|
|
226
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
227
|
-
def admin_delete_runner_with_http_info(id, opts = {})
|
|
228
|
-
if @api_client.config.debugging
|
|
229
|
-
@api_client.config.logger.debug 'Calling API: AdminApi.admin_delete_runner ...'
|
|
230
|
-
end
|
|
231
|
-
# verify the required parameter 'id' is set
|
|
232
|
-
if @api_client.config.client_side_validation && id.nil?
|
|
233
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling AdminApi.admin_delete_runner"
|
|
234
|
-
end
|
|
235
|
-
# resource path
|
|
236
|
-
local_var_path = '/admin/runners/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
237
|
-
|
|
238
|
-
# query parameters
|
|
239
|
-
query_params = opts[:query_params] || {}
|
|
240
|
-
|
|
241
|
-
# header parameters
|
|
242
|
-
header_params = opts[:header_params] || {}
|
|
243
|
-
|
|
244
|
-
# form parameters
|
|
245
|
-
form_params = opts[:form_params] || {}
|
|
246
|
-
|
|
247
|
-
# http body (model)
|
|
248
|
-
post_body = opts[:debug_body]
|
|
249
|
-
|
|
250
|
-
# return_type
|
|
251
|
-
return_type = opts[:debug_return_type]
|
|
252
|
-
|
|
253
|
-
# auth_names
|
|
254
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
255
|
-
|
|
256
|
-
new_options = opts.merge(
|
|
257
|
-
:operation => :"AdminApi.admin_delete_runner",
|
|
258
|
-
:header_params => header_params,
|
|
259
|
-
:query_params => query_params,
|
|
260
|
-
:form_params => form_params,
|
|
261
|
-
:body => post_body,
|
|
262
|
-
:auth_names => auth_names,
|
|
263
|
-
:return_type => return_type
|
|
264
|
-
)
|
|
265
|
-
|
|
266
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
267
|
-
if @api_client.config.debugging
|
|
268
|
-
@api_client.config.logger.debug "API called: AdminApi#admin_delete_runner\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
269
|
-
end
|
|
270
|
-
return data, status_code, headers
|
|
271
|
-
end
|
|
272
|
-
|
|
273
|
-
# Get all audit logs
|
|
274
|
-
# @param [Hash] opts the optional parameters
|
|
275
|
-
# @option opts [Float] :page Page number of the results (default to 1)
|
|
276
|
-
# @option opts [Float] :limit Number of results per page (default to 100)
|
|
277
|
-
# @option opts [Time] :from From date (ISO 8601 format)
|
|
278
|
-
# @option opts [Time] :to To date (ISO 8601 format)
|
|
279
|
-
# @option opts [String] :next_token Token for cursor-based pagination. When provided, takes precedence over page parameter.
|
|
280
|
-
# @return [PaginatedAuditLogs]
|
|
281
|
-
def admin_get_all_audit_logs(opts = {})
|
|
282
|
-
data, _status_code, _headers = admin_get_all_audit_logs_with_http_info(opts)
|
|
283
|
-
data
|
|
284
|
-
end
|
|
285
|
-
|
|
286
|
-
# Get all audit logs
|
|
287
|
-
# @param [Hash] opts the optional parameters
|
|
288
|
-
# @option opts [Float] :page Page number of the results (default to 1)
|
|
289
|
-
# @option opts [Float] :limit Number of results per page (default to 100)
|
|
290
|
-
# @option opts [Time] :from From date (ISO 8601 format)
|
|
291
|
-
# @option opts [Time] :to To date (ISO 8601 format)
|
|
292
|
-
# @option opts [String] :next_token Token for cursor-based pagination. When provided, takes precedence over page parameter.
|
|
293
|
-
# @return [Array<(PaginatedAuditLogs, Integer, Hash)>] PaginatedAuditLogs data, response status code and response headers
|
|
294
|
-
def admin_get_all_audit_logs_with_http_info(opts = {})
|
|
295
|
-
if @api_client.config.debugging
|
|
296
|
-
@api_client.config.logger.debug 'Calling API: AdminApi.admin_get_all_audit_logs ...'
|
|
297
|
-
end
|
|
298
|
-
if @api_client.config.client_side_validation && !opts[:'page'].nil? && opts[:'page'] < 1
|
|
299
|
-
fail ArgumentError, 'invalid value for "opts[:"page"]" when calling AdminApi.admin_get_all_audit_logs, must be greater than or equal to 1.'
|
|
300
|
-
end
|
|
301
|
-
|
|
302
|
-
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 200
|
|
303
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling AdminApi.admin_get_all_audit_logs, must be smaller than or equal to 200.'
|
|
304
|
-
end
|
|
305
|
-
|
|
306
|
-
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
|
307
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling AdminApi.admin_get_all_audit_logs, must be greater than or equal to 1.'
|
|
308
|
-
end
|
|
309
|
-
|
|
310
|
-
# resource path
|
|
311
|
-
local_var_path = '/admin/audit'
|
|
312
|
-
|
|
313
|
-
# query parameters
|
|
314
|
-
query_params = opts[:query_params] || {}
|
|
315
|
-
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
316
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
317
|
-
query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil?
|
|
318
|
-
query_params[:'to'] = opts[:'to'] if !opts[:'to'].nil?
|
|
319
|
-
query_params[:'nextToken'] = opts[:'next_token'] if !opts[:'next_token'].nil?
|
|
320
|
-
|
|
321
|
-
# header parameters
|
|
322
|
-
header_params = opts[:header_params] || {}
|
|
323
|
-
# HTTP header 'Accept' (if needed)
|
|
324
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
325
|
-
|
|
326
|
-
# form parameters
|
|
327
|
-
form_params = opts[:form_params] || {}
|
|
328
|
-
|
|
329
|
-
# http body (model)
|
|
330
|
-
post_body = opts[:debug_body]
|
|
331
|
-
|
|
332
|
-
# return_type
|
|
333
|
-
return_type = opts[:debug_return_type] || 'PaginatedAuditLogs'
|
|
334
|
-
|
|
335
|
-
# auth_names
|
|
336
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
337
|
-
|
|
338
|
-
new_options = opts.merge(
|
|
339
|
-
:operation => :"AdminApi.admin_get_all_audit_logs",
|
|
340
|
-
:header_params => header_params,
|
|
341
|
-
:query_params => query_params,
|
|
342
|
-
:form_params => form_params,
|
|
343
|
-
:body => post_body,
|
|
344
|
-
:auth_names => auth_names,
|
|
345
|
-
:return_type => return_type
|
|
346
|
-
)
|
|
347
|
-
|
|
348
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
349
|
-
if @api_client.config.debugging
|
|
350
|
-
@api_client.config.logger.debug "API called: AdminApi#admin_get_all_audit_logs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
351
|
-
end
|
|
352
|
-
return data, status_code, headers
|
|
353
|
-
end
|
|
354
|
-
|
|
355
|
-
# Get delivery attempts for a webhook message
|
|
356
|
-
# @param organization_id [String]
|
|
357
|
-
# @param message_id [String]
|
|
358
|
-
# @param [Hash] opts the optional parameters
|
|
359
|
-
# @return [Array<Object>]
|
|
360
|
-
def admin_get_message_attempts(organization_id, message_id, opts = {})
|
|
361
|
-
data, _status_code, _headers = admin_get_message_attempts_with_http_info(organization_id, message_id, opts)
|
|
362
|
-
data
|
|
363
|
-
end
|
|
364
|
-
|
|
365
|
-
# Get delivery attempts for a webhook message
|
|
366
|
-
# @param organization_id [String]
|
|
367
|
-
# @param message_id [String]
|
|
368
|
-
# @param [Hash] opts the optional parameters
|
|
369
|
-
# @return [Array<(Array<Object>, Integer, Hash)>] Array<Object> data, response status code and response headers
|
|
370
|
-
def admin_get_message_attempts_with_http_info(organization_id, message_id, opts = {})
|
|
371
|
-
if @api_client.config.debugging
|
|
372
|
-
@api_client.config.logger.debug 'Calling API: AdminApi.admin_get_message_attempts ...'
|
|
373
|
-
end
|
|
374
|
-
# verify the required parameter 'organization_id' is set
|
|
375
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
376
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling AdminApi.admin_get_message_attempts"
|
|
377
|
-
end
|
|
378
|
-
# verify the required parameter 'message_id' is set
|
|
379
|
-
if @api_client.config.client_side_validation && message_id.nil?
|
|
380
|
-
fail ArgumentError, "Missing the required parameter 'message_id' when calling AdminApi.admin_get_message_attempts"
|
|
381
|
-
end
|
|
382
|
-
# resource path
|
|
383
|
-
local_var_path = '/admin/webhooks/organizations/{organizationId}/messages/{messageId}/attempts'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s)).sub('{' + 'messageId' + '}', CGI.escape(message_id.to_s))
|
|
384
|
-
|
|
385
|
-
# query parameters
|
|
386
|
-
query_params = opts[:query_params] || {}
|
|
387
|
-
|
|
388
|
-
# header parameters
|
|
389
|
-
header_params = opts[:header_params] || {}
|
|
390
|
-
# HTTP header 'Accept' (if needed)
|
|
391
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
392
|
-
|
|
393
|
-
# form parameters
|
|
394
|
-
form_params = opts[:form_params] || {}
|
|
395
|
-
|
|
396
|
-
# http body (model)
|
|
397
|
-
post_body = opts[:debug_body]
|
|
398
|
-
|
|
399
|
-
# return_type
|
|
400
|
-
return_type = opts[:debug_return_type] || 'Array<Object>'
|
|
401
|
-
|
|
402
|
-
# auth_names
|
|
403
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
404
|
-
|
|
405
|
-
new_options = opts.merge(
|
|
406
|
-
:operation => :"AdminApi.admin_get_message_attempts",
|
|
407
|
-
:header_params => header_params,
|
|
408
|
-
:query_params => query_params,
|
|
409
|
-
:form_params => form_params,
|
|
410
|
-
:body => post_body,
|
|
411
|
-
:auth_names => auth_names,
|
|
412
|
-
:return_type => return_type
|
|
413
|
-
)
|
|
414
|
-
|
|
415
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
416
|
-
if @api_client.config.debugging
|
|
417
|
-
@api_client.config.logger.debug "API called: AdminApi#admin_get_message_attempts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
418
|
-
end
|
|
419
|
-
return data, status_code, headers
|
|
420
|
-
end
|
|
421
|
-
|
|
422
|
-
# Get runner by ID
|
|
423
|
-
# @param id [String] Runner ID
|
|
424
|
-
# @param [Hash] opts the optional parameters
|
|
425
|
-
# @return [RunnerFull]
|
|
426
|
-
def admin_get_runner_by_id(id, opts = {})
|
|
427
|
-
data, _status_code, _headers = admin_get_runner_by_id_with_http_info(id, opts)
|
|
428
|
-
data
|
|
429
|
-
end
|
|
430
|
-
|
|
431
|
-
# Get runner by ID
|
|
432
|
-
# @param id [String] Runner ID
|
|
433
|
-
# @param [Hash] opts the optional parameters
|
|
434
|
-
# @return [Array<(RunnerFull, Integer, Hash)>] RunnerFull data, response status code and response headers
|
|
435
|
-
def admin_get_runner_by_id_with_http_info(id, opts = {})
|
|
436
|
-
if @api_client.config.debugging
|
|
437
|
-
@api_client.config.logger.debug 'Calling API: AdminApi.admin_get_runner_by_id ...'
|
|
438
|
-
end
|
|
439
|
-
# verify the required parameter 'id' is set
|
|
440
|
-
if @api_client.config.client_side_validation && id.nil?
|
|
441
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling AdminApi.admin_get_runner_by_id"
|
|
442
|
-
end
|
|
443
|
-
# resource path
|
|
444
|
-
local_var_path = '/admin/runners/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
445
|
-
|
|
446
|
-
# query parameters
|
|
447
|
-
query_params = opts[:query_params] || {}
|
|
448
|
-
|
|
449
|
-
# header parameters
|
|
450
|
-
header_params = opts[:header_params] || {}
|
|
451
|
-
# HTTP header 'Accept' (if needed)
|
|
452
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
453
|
-
|
|
454
|
-
# form parameters
|
|
455
|
-
form_params = opts[:form_params] || {}
|
|
456
|
-
|
|
457
|
-
# http body (model)
|
|
458
|
-
post_body = opts[:debug_body]
|
|
459
|
-
|
|
460
|
-
# return_type
|
|
461
|
-
return_type = opts[:debug_return_type] || 'RunnerFull'
|
|
462
|
-
|
|
463
|
-
# auth_names
|
|
464
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
465
|
-
|
|
466
|
-
new_options = opts.merge(
|
|
467
|
-
:operation => :"AdminApi.admin_get_runner_by_id",
|
|
468
|
-
:header_params => header_params,
|
|
469
|
-
:query_params => query_params,
|
|
470
|
-
:form_params => form_params,
|
|
471
|
-
:body => post_body,
|
|
472
|
-
:auth_names => auth_names,
|
|
473
|
-
:return_type => return_type
|
|
474
|
-
)
|
|
475
|
-
|
|
476
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
477
|
-
if @api_client.config.debugging
|
|
478
|
-
@api_client.config.logger.debug "API called: AdminApi#admin_get_runner_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
479
|
-
end
|
|
480
|
-
return data, status_code, headers
|
|
481
|
-
end
|
|
482
|
-
|
|
483
|
-
# Get user by ID
|
|
484
|
-
# @param id [String]
|
|
485
|
-
# @param [Hash] opts the optional parameters
|
|
486
|
-
# @return [User]
|
|
487
|
-
def admin_get_user(id, opts = {})
|
|
488
|
-
data, _status_code, _headers = admin_get_user_with_http_info(id, opts)
|
|
489
|
-
data
|
|
490
|
-
end
|
|
491
|
-
|
|
492
|
-
# Get user by ID
|
|
493
|
-
# @param id [String]
|
|
494
|
-
# @param [Hash] opts the optional parameters
|
|
495
|
-
# @return [Array<(User, Integer, Hash)>] User data, response status code and response headers
|
|
496
|
-
def admin_get_user_with_http_info(id, opts = {})
|
|
497
|
-
if @api_client.config.debugging
|
|
498
|
-
@api_client.config.logger.debug 'Calling API: AdminApi.admin_get_user ...'
|
|
499
|
-
end
|
|
500
|
-
# verify the required parameter 'id' is set
|
|
501
|
-
if @api_client.config.client_side_validation && id.nil?
|
|
502
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling AdminApi.admin_get_user"
|
|
503
|
-
end
|
|
504
|
-
# resource path
|
|
505
|
-
local_var_path = '/admin/users/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
506
|
-
|
|
507
|
-
# query parameters
|
|
508
|
-
query_params = opts[:query_params] || {}
|
|
509
|
-
|
|
510
|
-
# header parameters
|
|
511
|
-
header_params = opts[:header_params] || {}
|
|
512
|
-
# HTTP header 'Accept' (if needed)
|
|
513
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
514
|
-
|
|
515
|
-
# form parameters
|
|
516
|
-
form_params = opts[:form_params] || {}
|
|
517
|
-
|
|
518
|
-
# http body (model)
|
|
519
|
-
post_body = opts[:debug_body]
|
|
520
|
-
|
|
521
|
-
# return_type
|
|
522
|
-
return_type = opts[:debug_return_type] || 'User'
|
|
523
|
-
|
|
524
|
-
# auth_names
|
|
525
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
526
|
-
|
|
527
|
-
new_options = opts.merge(
|
|
528
|
-
:operation => :"AdminApi.admin_get_user",
|
|
529
|
-
:header_params => header_params,
|
|
530
|
-
:query_params => query_params,
|
|
531
|
-
:form_params => form_params,
|
|
532
|
-
:body => post_body,
|
|
533
|
-
:auth_names => auth_names,
|
|
534
|
-
:return_type => return_type
|
|
535
|
-
)
|
|
536
|
-
|
|
537
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
538
|
-
if @api_client.config.debugging
|
|
539
|
-
@api_client.config.logger.debug "API called: AdminApi#admin_get_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
540
|
-
end
|
|
541
|
-
return data, status_code, headers
|
|
542
|
-
end
|
|
543
|
-
|
|
544
|
-
# Get webhook service status
|
|
545
|
-
# @param [Hash] opts the optional parameters
|
|
546
|
-
# @return [AdminGetWebhookStatus200Response]
|
|
547
|
-
def admin_get_webhook_status(opts = {})
|
|
548
|
-
data, _status_code, _headers = admin_get_webhook_status_with_http_info(opts)
|
|
549
|
-
data
|
|
550
|
-
end
|
|
551
|
-
|
|
552
|
-
# Get webhook service status
|
|
553
|
-
# @param [Hash] opts the optional parameters
|
|
554
|
-
# @return [Array<(AdminGetWebhookStatus200Response, Integer, Hash)>] AdminGetWebhookStatus200Response data, response status code and response headers
|
|
555
|
-
def admin_get_webhook_status_with_http_info(opts = {})
|
|
556
|
-
if @api_client.config.debugging
|
|
557
|
-
@api_client.config.logger.debug 'Calling API: AdminApi.admin_get_webhook_status ...'
|
|
558
|
-
end
|
|
559
|
-
# resource path
|
|
560
|
-
local_var_path = '/admin/webhooks/status'
|
|
561
|
-
|
|
562
|
-
# query parameters
|
|
563
|
-
query_params = opts[:query_params] || {}
|
|
564
|
-
|
|
565
|
-
# header parameters
|
|
566
|
-
header_params = opts[:header_params] || {}
|
|
567
|
-
# HTTP header 'Accept' (if needed)
|
|
568
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
569
|
-
|
|
570
|
-
# form parameters
|
|
571
|
-
form_params = opts[:form_params] || {}
|
|
572
|
-
|
|
573
|
-
# http body (model)
|
|
574
|
-
post_body = opts[:debug_body]
|
|
575
|
-
|
|
576
|
-
# return_type
|
|
577
|
-
return_type = opts[:debug_return_type] || 'AdminGetWebhookStatus200Response'
|
|
578
|
-
|
|
579
|
-
# auth_names
|
|
580
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
581
|
-
|
|
582
|
-
new_options = opts.merge(
|
|
583
|
-
:operation => :"AdminApi.admin_get_webhook_status",
|
|
584
|
-
:header_params => header_params,
|
|
585
|
-
:query_params => query_params,
|
|
586
|
-
:form_params => form_params,
|
|
587
|
-
:body => post_body,
|
|
588
|
-
:auth_names => auth_names,
|
|
589
|
-
:return_type => return_type
|
|
590
|
-
)
|
|
591
|
-
|
|
592
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
593
|
-
if @api_client.config.debugging
|
|
594
|
-
@api_client.config.logger.debug "API called: AdminApi#admin_get_webhook_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
595
|
-
end
|
|
596
|
-
return data, status_code, headers
|
|
597
|
-
end
|
|
598
|
-
|
|
599
|
-
# Initialize webhooks for an organization
|
|
600
|
-
# @param organization_id [String]
|
|
601
|
-
# @param [Hash] opts the optional parameters
|
|
602
|
-
# @return [nil]
|
|
603
|
-
def admin_initialize_webhooks(organization_id, opts = {})
|
|
604
|
-
admin_initialize_webhooks_with_http_info(organization_id, opts)
|
|
605
|
-
nil
|
|
606
|
-
end
|
|
607
|
-
|
|
608
|
-
# Initialize webhooks for an organization
|
|
609
|
-
# @param organization_id [String]
|
|
610
|
-
# @param [Hash] opts the optional parameters
|
|
611
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
612
|
-
def admin_initialize_webhooks_with_http_info(organization_id, opts = {})
|
|
613
|
-
if @api_client.config.debugging
|
|
614
|
-
@api_client.config.logger.debug 'Calling API: AdminApi.admin_initialize_webhooks ...'
|
|
615
|
-
end
|
|
616
|
-
# verify the required parameter 'organization_id' is set
|
|
617
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
618
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling AdminApi.admin_initialize_webhooks"
|
|
619
|
-
end
|
|
620
|
-
# resource path
|
|
621
|
-
local_var_path = '/admin/webhooks/organizations/{organizationId}/initialize'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
622
|
-
|
|
623
|
-
# query parameters
|
|
624
|
-
query_params = opts[:query_params] || {}
|
|
625
|
-
|
|
626
|
-
# header parameters
|
|
627
|
-
header_params = opts[:header_params] || {}
|
|
628
|
-
|
|
629
|
-
# form parameters
|
|
630
|
-
form_params = opts[:form_params] || {}
|
|
631
|
-
|
|
632
|
-
# http body (model)
|
|
633
|
-
post_body = opts[:debug_body]
|
|
634
|
-
|
|
635
|
-
# return_type
|
|
636
|
-
return_type = opts[:debug_return_type]
|
|
637
|
-
|
|
638
|
-
# auth_names
|
|
639
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
640
|
-
|
|
641
|
-
new_options = opts.merge(
|
|
642
|
-
:operation => :"AdminApi.admin_initialize_webhooks",
|
|
643
|
-
:header_params => header_params,
|
|
644
|
-
:query_params => query_params,
|
|
645
|
-
:form_params => form_params,
|
|
646
|
-
:body => post_body,
|
|
647
|
-
:auth_names => auth_names,
|
|
648
|
-
:return_type => return_type
|
|
649
|
-
)
|
|
650
|
-
|
|
651
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
652
|
-
if @api_client.config.debugging
|
|
653
|
-
@api_client.config.logger.debug "API called: AdminApi#admin_initialize_webhooks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
654
|
-
end
|
|
655
|
-
return data, status_code, headers
|
|
656
|
-
end
|
|
657
|
-
|
|
658
|
-
# List all runners
|
|
659
|
-
# @param [Hash] opts the optional parameters
|
|
660
|
-
# @option opts [String] :region_id Filter runners by region ID
|
|
661
|
-
# @return [Array<RunnerFull>]
|
|
662
|
-
def admin_list_runners(opts = {})
|
|
663
|
-
data, _status_code, _headers = admin_list_runners_with_http_info(opts)
|
|
664
|
-
data
|
|
665
|
-
end
|
|
666
|
-
|
|
667
|
-
# List all runners
|
|
668
|
-
# @param [Hash] opts the optional parameters
|
|
669
|
-
# @option opts [String] :region_id Filter runners by region ID
|
|
670
|
-
# @return [Array<(Array<RunnerFull>, Integer, Hash)>] Array<RunnerFull> data, response status code and response headers
|
|
671
|
-
def admin_list_runners_with_http_info(opts = {})
|
|
672
|
-
if @api_client.config.debugging
|
|
673
|
-
@api_client.config.logger.debug 'Calling API: AdminApi.admin_list_runners ...'
|
|
674
|
-
end
|
|
675
|
-
# resource path
|
|
676
|
-
local_var_path = '/admin/runners'
|
|
677
|
-
|
|
678
|
-
# query parameters
|
|
679
|
-
query_params = opts[:query_params] || {}
|
|
680
|
-
query_params[:'regionId'] = opts[:'region_id'] if !opts[:'region_id'].nil?
|
|
681
|
-
|
|
682
|
-
# header parameters
|
|
683
|
-
header_params = opts[:header_params] || {}
|
|
684
|
-
# HTTP header 'Accept' (if needed)
|
|
685
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
686
|
-
|
|
687
|
-
# form parameters
|
|
688
|
-
form_params = opts[:form_params] || {}
|
|
689
|
-
|
|
690
|
-
# http body (model)
|
|
691
|
-
post_body = opts[:debug_body]
|
|
692
|
-
|
|
693
|
-
# return_type
|
|
694
|
-
return_type = opts[:debug_return_type] || 'Array<RunnerFull>'
|
|
695
|
-
|
|
696
|
-
# auth_names
|
|
697
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
698
|
-
|
|
699
|
-
new_options = opts.merge(
|
|
700
|
-
:operation => :"AdminApi.admin_list_runners",
|
|
701
|
-
:header_params => header_params,
|
|
702
|
-
:query_params => query_params,
|
|
703
|
-
:form_params => form_params,
|
|
704
|
-
:body => post_body,
|
|
705
|
-
:auth_names => auth_names,
|
|
706
|
-
:return_type => return_type
|
|
707
|
-
)
|
|
708
|
-
|
|
709
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
710
|
-
if @api_client.config.debugging
|
|
711
|
-
@api_client.config.logger.debug "API called: AdminApi#admin_list_runners\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
712
|
-
end
|
|
713
|
-
return data, status_code, headers
|
|
714
|
-
end
|
|
715
|
-
|
|
716
|
-
# List all users
|
|
717
|
-
# @param [Hash] opts the optional parameters
|
|
718
|
-
# @return [nil]
|
|
719
|
-
def admin_list_users(opts = {})
|
|
720
|
-
admin_list_users_with_http_info(opts)
|
|
721
|
-
nil
|
|
722
|
-
end
|
|
723
|
-
|
|
724
|
-
# List all users
|
|
725
|
-
# @param [Hash] opts the optional parameters
|
|
726
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
727
|
-
def admin_list_users_with_http_info(opts = {})
|
|
728
|
-
if @api_client.config.debugging
|
|
729
|
-
@api_client.config.logger.debug 'Calling API: AdminApi.admin_list_users ...'
|
|
730
|
-
end
|
|
731
|
-
# resource path
|
|
732
|
-
local_var_path = '/admin/users'
|
|
733
|
-
|
|
734
|
-
# query parameters
|
|
735
|
-
query_params = opts[:query_params] || {}
|
|
736
|
-
|
|
737
|
-
# header parameters
|
|
738
|
-
header_params = opts[:header_params] || {}
|
|
739
|
-
|
|
740
|
-
# form parameters
|
|
741
|
-
form_params = opts[:form_params] || {}
|
|
742
|
-
|
|
743
|
-
# http body (model)
|
|
744
|
-
post_body = opts[:debug_body]
|
|
745
|
-
|
|
746
|
-
# return_type
|
|
747
|
-
return_type = opts[:debug_return_type]
|
|
748
|
-
|
|
749
|
-
# auth_names
|
|
750
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
751
|
-
|
|
752
|
-
new_options = opts.merge(
|
|
753
|
-
:operation => :"AdminApi.admin_list_users",
|
|
754
|
-
:header_params => header_params,
|
|
755
|
-
:query_params => query_params,
|
|
756
|
-
:form_params => form_params,
|
|
757
|
-
:body => post_body,
|
|
758
|
-
:auth_names => auth_names,
|
|
759
|
-
:return_type => return_type
|
|
760
|
-
)
|
|
761
|
-
|
|
762
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
763
|
-
if @api_client.config.debugging
|
|
764
|
-
@api_client.config.logger.debug "API called: AdminApi#admin_list_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
765
|
-
end
|
|
766
|
-
return data, status_code, headers
|
|
767
|
-
end
|
|
768
|
-
|
|
769
|
-
# Recover sandbox from error state as an admin
|
|
770
|
-
# @param sandbox_id [String] ID of the sandbox
|
|
771
|
-
# @param [Hash] opts the optional parameters
|
|
772
|
-
# @return [Sandbox]
|
|
773
|
-
def admin_recover_sandbox(sandbox_id, opts = {})
|
|
774
|
-
data, _status_code, _headers = admin_recover_sandbox_with_http_info(sandbox_id, opts)
|
|
775
|
-
data
|
|
776
|
-
end
|
|
777
|
-
|
|
778
|
-
# Recover sandbox from error state as an admin
|
|
779
|
-
# @param sandbox_id [String] ID of the sandbox
|
|
780
|
-
# @param [Hash] opts the optional parameters
|
|
781
|
-
# @return [Array<(Sandbox, Integer, Hash)>] Sandbox data, response status code and response headers
|
|
782
|
-
def admin_recover_sandbox_with_http_info(sandbox_id, opts = {})
|
|
783
|
-
if @api_client.config.debugging
|
|
784
|
-
@api_client.config.logger.debug 'Calling API: AdminApi.admin_recover_sandbox ...'
|
|
785
|
-
end
|
|
786
|
-
# verify the required parameter 'sandbox_id' is set
|
|
787
|
-
if @api_client.config.client_side_validation && sandbox_id.nil?
|
|
788
|
-
fail ArgumentError, "Missing the required parameter 'sandbox_id' when calling AdminApi.admin_recover_sandbox"
|
|
789
|
-
end
|
|
790
|
-
# resource path
|
|
791
|
-
local_var_path = '/admin/sandbox/{sandboxId}/recover'.sub('{' + 'sandboxId' + '}', CGI.escape(sandbox_id.to_s))
|
|
792
|
-
|
|
793
|
-
# query parameters
|
|
794
|
-
query_params = opts[:query_params] || {}
|
|
795
|
-
|
|
796
|
-
# header parameters
|
|
797
|
-
header_params = opts[:header_params] || {}
|
|
798
|
-
# HTTP header 'Accept' (if needed)
|
|
799
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
800
|
-
|
|
801
|
-
# form parameters
|
|
802
|
-
form_params = opts[:form_params] || {}
|
|
803
|
-
|
|
804
|
-
# http body (model)
|
|
805
|
-
post_body = opts[:debug_body]
|
|
806
|
-
|
|
807
|
-
# return_type
|
|
808
|
-
return_type = opts[:debug_return_type] || 'Sandbox'
|
|
809
|
-
|
|
810
|
-
# auth_names
|
|
811
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
812
|
-
|
|
813
|
-
new_options = opts.merge(
|
|
814
|
-
:operation => :"AdminApi.admin_recover_sandbox",
|
|
815
|
-
:header_params => header_params,
|
|
816
|
-
:query_params => query_params,
|
|
817
|
-
:form_params => form_params,
|
|
818
|
-
:body => post_body,
|
|
819
|
-
:auth_names => auth_names,
|
|
820
|
-
:return_type => return_type
|
|
821
|
-
)
|
|
822
|
-
|
|
823
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
824
|
-
if @api_client.config.debugging
|
|
825
|
-
@api_client.config.logger.debug "API called: AdminApi#admin_recover_sandbox\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
826
|
-
end
|
|
827
|
-
return data, status_code, headers
|
|
828
|
-
end
|
|
829
|
-
|
|
830
|
-
# Regenerate user key pair
|
|
831
|
-
# @param id [String]
|
|
832
|
-
# @param [Hash] opts the optional parameters
|
|
833
|
-
# @return [nil]
|
|
834
|
-
def admin_regenerate_key_pair(id, opts = {})
|
|
835
|
-
admin_regenerate_key_pair_with_http_info(id, opts)
|
|
836
|
-
nil
|
|
837
|
-
end
|
|
838
|
-
|
|
839
|
-
# Regenerate user key pair
|
|
840
|
-
# @param id [String]
|
|
841
|
-
# @param [Hash] opts the optional parameters
|
|
842
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
843
|
-
def admin_regenerate_key_pair_with_http_info(id, opts = {})
|
|
844
|
-
if @api_client.config.debugging
|
|
845
|
-
@api_client.config.logger.debug 'Calling API: AdminApi.admin_regenerate_key_pair ...'
|
|
846
|
-
end
|
|
847
|
-
# verify the required parameter 'id' is set
|
|
848
|
-
if @api_client.config.client_side_validation && id.nil?
|
|
849
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling AdminApi.admin_regenerate_key_pair"
|
|
850
|
-
end
|
|
851
|
-
# resource path
|
|
852
|
-
local_var_path = '/admin/users/{id}/regenerate-key-pair'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
853
|
-
|
|
854
|
-
# query parameters
|
|
855
|
-
query_params = opts[:query_params] || {}
|
|
856
|
-
|
|
857
|
-
# header parameters
|
|
858
|
-
header_params = opts[:header_params] || {}
|
|
859
|
-
|
|
860
|
-
# form parameters
|
|
861
|
-
form_params = opts[:form_params] || {}
|
|
862
|
-
|
|
863
|
-
# http body (model)
|
|
864
|
-
post_body = opts[:debug_body]
|
|
865
|
-
|
|
866
|
-
# return_type
|
|
867
|
-
return_type = opts[:debug_return_type]
|
|
868
|
-
|
|
869
|
-
# auth_names
|
|
870
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
871
|
-
|
|
872
|
-
new_options = opts.merge(
|
|
873
|
-
:operation => :"AdminApi.admin_regenerate_key_pair",
|
|
874
|
-
:header_params => header_params,
|
|
875
|
-
:query_params => query_params,
|
|
876
|
-
:form_params => form_params,
|
|
877
|
-
:body => post_body,
|
|
878
|
-
:auth_names => auth_names,
|
|
879
|
-
:return_type => return_type
|
|
880
|
-
)
|
|
881
|
-
|
|
882
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
883
|
-
if @api_client.config.debugging
|
|
884
|
-
@api_client.config.logger.debug "API called: AdminApi#admin_regenerate_key_pair\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
885
|
-
end
|
|
886
|
-
return data, status_code, headers
|
|
887
|
-
end
|
|
888
|
-
|
|
889
|
-
# Send a webhook message to an organization
|
|
890
|
-
# @param organization_id [String]
|
|
891
|
-
# @param send_webhook_dto [SendWebhookDto]
|
|
892
|
-
# @param [Hash] opts the optional parameters
|
|
893
|
-
# @return [nil]
|
|
894
|
-
def admin_send_webhook(organization_id, send_webhook_dto, opts = {})
|
|
895
|
-
admin_send_webhook_with_http_info(organization_id, send_webhook_dto, opts)
|
|
896
|
-
nil
|
|
897
|
-
end
|
|
898
|
-
|
|
899
|
-
# Send a webhook message to an organization
|
|
900
|
-
# @param organization_id [String]
|
|
901
|
-
# @param send_webhook_dto [SendWebhookDto]
|
|
902
|
-
# @param [Hash] opts the optional parameters
|
|
903
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
904
|
-
def admin_send_webhook_with_http_info(organization_id, send_webhook_dto, opts = {})
|
|
905
|
-
if @api_client.config.debugging
|
|
906
|
-
@api_client.config.logger.debug 'Calling API: AdminApi.admin_send_webhook ...'
|
|
907
|
-
end
|
|
908
|
-
# verify the required parameter 'organization_id' is set
|
|
909
|
-
if @api_client.config.client_side_validation && organization_id.nil?
|
|
910
|
-
fail ArgumentError, "Missing the required parameter 'organization_id' when calling AdminApi.admin_send_webhook"
|
|
911
|
-
end
|
|
912
|
-
# verify the required parameter 'send_webhook_dto' is set
|
|
913
|
-
if @api_client.config.client_side_validation && send_webhook_dto.nil?
|
|
914
|
-
fail ArgumentError, "Missing the required parameter 'send_webhook_dto' when calling AdminApi.admin_send_webhook"
|
|
915
|
-
end
|
|
916
|
-
# resource path
|
|
917
|
-
local_var_path = '/admin/webhooks/organizations/{organizationId}/send'.sub('{' + 'organizationId' + '}', CGI.escape(organization_id.to_s))
|
|
918
|
-
|
|
919
|
-
# query parameters
|
|
920
|
-
query_params = opts[:query_params] || {}
|
|
921
|
-
|
|
922
|
-
# header parameters
|
|
923
|
-
header_params = opts[:header_params] || {}
|
|
924
|
-
# HTTP header 'Content-Type'
|
|
925
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
926
|
-
if !content_type.nil?
|
|
927
|
-
header_params['Content-Type'] = content_type
|
|
928
|
-
end
|
|
929
|
-
|
|
930
|
-
# form parameters
|
|
931
|
-
form_params = opts[:form_params] || {}
|
|
932
|
-
|
|
933
|
-
# http body (model)
|
|
934
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(send_webhook_dto)
|
|
935
|
-
|
|
936
|
-
# return_type
|
|
937
|
-
return_type = opts[:debug_return_type]
|
|
938
|
-
|
|
939
|
-
# auth_names
|
|
940
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
941
|
-
|
|
942
|
-
new_options = opts.merge(
|
|
943
|
-
:operation => :"AdminApi.admin_send_webhook",
|
|
944
|
-
:header_params => header_params,
|
|
945
|
-
:query_params => query_params,
|
|
946
|
-
:form_params => form_params,
|
|
947
|
-
:body => post_body,
|
|
948
|
-
:auth_names => auth_names,
|
|
949
|
-
:return_type => return_type
|
|
950
|
-
)
|
|
951
|
-
|
|
952
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
953
|
-
if @api_client.config.debugging
|
|
954
|
-
@api_client.config.logger.debug "API called: AdminApi#admin_send_webhook\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
955
|
-
end
|
|
956
|
-
return data, status_code, headers
|
|
957
|
-
end
|
|
958
|
-
|
|
959
|
-
# Set default registry
|
|
960
|
-
# @param id [String] ID of the docker registry
|
|
961
|
-
# @param [Hash] opts the optional parameters
|
|
962
|
-
# @return [DockerRegistry]
|
|
963
|
-
def admin_set_default_registry(id, opts = {})
|
|
964
|
-
data, _status_code, _headers = admin_set_default_registry_with_http_info(id, opts)
|
|
965
|
-
data
|
|
966
|
-
end
|
|
967
|
-
|
|
968
|
-
# Set default registry
|
|
969
|
-
# @param id [String] ID of the docker registry
|
|
970
|
-
# @param [Hash] opts the optional parameters
|
|
971
|
-
# @return [Array<(DockerRegistry, Integer, Hash)>] DockerRegistry data, response status code and response headers
|
|
972
|
-
def admin_set_default_registry_with_http_info(id, opts = {})
|
|
973
|
-
if @api_client.config.debugging
|
|
974
|
-
@api_client.config.logger.debug 'Calling API: AdminApi.admin_set_default_registry ...'
|
|
975
|
-
end
|
|
976
|
-
# verify the required parameter 'id' is set
|
|
977
|
-
if @api_client.config.client_side_validation && id.nil?
|
|
978
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling AdminApi.admin_set_default_registry"
|
|
979
|
-
end
|
|
980
|
-
# resource path
|
|
981
|
-
local_var_path = '/admin/docker-registry/{id}/set-default'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
982
|
-
|
|
983
|
-
# query parameters
|
|
984
|
-
query_params = opts[:query_params] || {}
|
|
985
|
-
|
|
986
|
-
# header parameters
|
|
987
|
-
header_params = opts[:header_params] || {}
|
|
988
|
-
# HTTP header 'Accept' (if needed)
|
|
989
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
990
|
-
|
|
991
|
-
# form parameters
|
|
992
|
-
form_params = opts[:form_params] || {}
|
|
993
|
-
|
|
994
|
-
# http body (model)
|
|
995
|
-
post_body = opts[:debug_body]
|
|
996
|
-
|
|
997
|
-
# return_type
|
|
998
|
-
return_type = opts[:debug_return_type] || 'DockerRegistry'
|
|
999
|
-
|
|
1000
|
-
# auth_names
|
|
1001
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1002
|
-
|
|
1003
|
-
new_options = opts.merge(
|
|
1004
|
-
:operation => :"AdminApi.admin_set_default_registry",
|
|
1005
|
-
:header_params => header_params,
|
|
1006
|
-
:query_params => query_params,
|
|
1007
|
-
:form_params => form_params,
|
|
1008
|
-
:body => post_body,
|
|
1009
|
-
:auth_names => auth_names,
|
|
1010
|
-
:return_type => return_type
|
|
1011
|
-
)
|
|
1012
|
-
|
|
1013
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1014
|
-
if @api_client.config.debugging
|
|
1015
|
-
@api_client.config.logger.debug "API called: AdminApi#admin_set_default_registry\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1016
|
-
end
|
|
1017
|
-
return data, status_code, headers
|
|
1018
|
-
end
|
|
1019
|
-
|
|
1020
|
-
# Set snapshot general status
|
|
1021
|
-
# @param id [String] Snapshot ID
|
|
1022
|
-
# @param set_snapshot_general_status_dto [SetSnapshotGeneralStatusDto]
|
|
1023
|
-
# @param [Hash] opts the optional parameters
|
|
1024
|
-
# @return [SnapshotDto]
|
|
1025
|
-
def admin_set_snapshot_general_status(id, set_snapshot_general_status_dto, opts = {})
|
|
1026
|
-
data, _status_code, _headers = admin_set_snapshot_general_status_with_http_info(id, set_snapshot_general_status_dto, opts)
|
|
1027
|
-
data
|
|
1028
|
-
end
|
|
1029
|
-
|
|
1030
|
-
# Set snapshot general status
|
|
1031
|
-
# @param id [String] Snapshot ID
|
|
1032
|
-
# @param set_snapshot_general_status_dto [SetSnapshotGeneralStatusDto]
|
|
1033
|
-
# @param [Hash] opts the optional parameters
|
|
1034
|
-
# @return [Array<(SnapshotDto, Integer, Hash)>] SnapshotDto data, response status code and response headers
|
|
1035
|
-
def admin_set_snapshot_general_status_with_http_info(id, set_snapshot_general_status_dto, opts = {})
|
|
1036
|
-
if @api_client.config.debugging
|
|
1037
|
-
@api_client.config.logger.debug 'Calling API: AdminApi.admin_set_snapshot_general_status ...'
|
|
1038
|
-
end
|
|
1039
|
-
# verify the required parameter 'id' is set
|
|
1040
|
-
if @api_client.config.client_side_validation && id.nil?
|
|
1041
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling AdminApi.admin_set_snapshot_general_status"
|
|
1042
|
-
end
|
|
1043
|
-
# verify the required parameter 'set_snapshot_general_status_dto' is set
|
|
1044
|
-
if @api_client.config.client_side_validation && set_snapshot_general_status_dto.nil?
|
|
1045
|
-
fail ArgumentError, "Missing the required parameter 'set_snapshot_general_status_dto' when calling AdminApi.admin_set_snapshot_general_status"
|
|
1046
|
-
end
|
|
1047
|
-
# resource path
|
|
1048
|
-
local_var_path = '/admin/snapshots/{id}/general'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1049
|
-
|
|
1050
|
-
# query parameters
|
|
1051
|
-
query_params = opts[:query_params] || {}
|
|
1052
|
-
|
|
1053
|
-
# header parameters
|
|
1054
|
-
header_params = opts[:header_params] || {}
|
|
1055
|
-
# HTTP header 'Accept' (if needed)
|
|
1056
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1057
|
-
# HTTP header 'Content-Type'
|
|
1058
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1059
|
-
if !content_type.nil?
|
|
1060
|
-
header_params['Content-Type'] = content_type
|
|
1061
|
-
end
|
|
1062
|
-
|
|
1063
|
-
# form parameters
|
|
1064
|
-
form_params = opts[:form_params] || {}
|
|
1065
|
-
|
|
1066
|
-
# http body (model)
|
|
1067
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(set_snapshot_general_status_dto)
|
|
1068
|
-
|
|
1069
|
-
# return_type
|
|
1070
|
-
return_type = opts[:debug_return_type] || 'SnapshotDto'
|
|
1071
|
-
|
|
1072
|
-
# auth_names
|
|
1073
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1074
|
-
|
|
1075
|
-
new_options = opts.merge(
|
|
1076
|
-
:operation => :"AdminApi.admin_set_snapshot_general_status",
|
|
1077
|
-
:header_params => header_params,
|
|
1078
|
-
:query_params => query_params,
|
|
1079
|
-
:form_params => form_params,
|
|
1080
|
-
:body => post_body,
|
|
1081
|
-
:auth_names => auth_names,
|
|
1082
|
-
:return_type => return_type
|
|
1083
|
-
)
|
|
1084
|
-
|
|
1085
|
-
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
1086
|
-
if @api_client.config.debugging
|
|
1087
|
-
@api_client.config.logger.debug "API called: AdminApi#admin_set_snapshot_general_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1088
|
-
end
|
|
1089
|
-
return data, status_code, headers
|
|
1090
|
-
end
|
|
1091
|
-
|
|
1092
|
-
# Update runner scheduling status
|
|
1093
|
-
# @param id [String]
|
|
1094
|
-
# @param [Hash] opts the optional parameters
|
|
1095
|
-
# @return [nil]
|
|
1096
|
-
def admin_update_runner_scheduling(id, opts = {})
|
|
1097
|
-
admin_update_runner_scheduling_with_http_info(id, opts)
|
|
1098
|
-
nil
|
|
1099
|
-
end
|
|
1100
|
-
|
|
1101
|
-
# Update runner scheduling status
|
|
1102
|
-
# @param id [String]
|
|
1103
|
-
# @param [Hash] opts the optional parameters
|
|
1104
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
1105
|
-
def admin_update_runner_scheduling_with_http_info(id, opts = {})
|
|
1106
|
-
if @api_client.config.debugging
|
|
1107
|
-
@api_client.config.logger.debug 'Calling API: AdminApi.admin_update_runner_scheduling ...'
|
|
1108
|
-
end
|
|
1109
|
-
# verify the required parameter 'id' is set
|
|
1110
|
-
if @api_client.config.client_side_validation && id.nil?
|
|
1111
|
-
fail ArgumentError, "Missing the required parameter 'id' when calling AdminApi.admin_update_runner_scheduling"
|
|
1112
|
-
end
|
|
1113
|
-
# resource path
|
|
1114
|
-
local_var_path = '/admin/runners/{id}/scheduling'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
1115
|
-
|
|
1116
|
-
# query parameters
|
|
1117
|
-
query_params = opts[:query_params] || {}
|
|
1118
|
-
|
|
1119
|
-
# header parameters
|
|
1120
|
-
header_params = opts[:header_params] || {}
|
|
1121
|
-
|
|
1122
|
-
# form parameters
|
|
1123
|
-
form_params = opts[:form_params] || {}
|
|
1124
|
-
|
|
1125
|
-
# http body (model)
|
|
1126
|
-
post_body = opts[:debug_body]
|
|
1127
|
-
|
|
1128
|
-
# return_type
|
|
1129
|
-
return_type = opts[:debug_return_type]
|
|
1130
|
-
|
|
1131
|
-
# auth_names
|
|
1132
|
-
auth_names = opts[:debug_auth_names] || ['bearer', 'oauth2']
|
|
1133
|
-
|
|
1134
|
-
new_options = opts.merge(
|
|
1135
|
-
:operation => :"AdminApi.admin_update_runner_scheduling",
|
|
1136
|
-
:header_params => header_params,
|
|
1137
|
-
:query_params => query_params,
|
|
1138
|
-
:form_params => form_params,
|
|
1139
|
-
:body => post_body,
|
|
1140
|
-
:auth_names => auth_names,
|
|
1141
|
-
:return_type => return_type
|
|
1142
|
-
)
|
|
1143
|
-
|
|
1144
|
-
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
1145
|
-
if @api_client.config.debugging
|
|
1146
|
-
@api_client.config.logger.debug "API called: AdminApi#admin_update_runner_scheduling\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1147
|
-
end
|
|
1148
|
-
return data, status_code, headers
|
|
1149
|
-
end
|
|
1150
|
-
end
|
|
1151
|
-
end
|