turnkey_client 0.0.18 → 0.0.19
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/lib/turnkey_client/api/default_api.rb +46 -0
- data/lib/turnkey_client/api/ip_allowlist_api.rb +193 -0
- data/lib/turnkey_client/api/organizations_api.rb +290 -0
- data/lib/turnkey_client/api/signing_api.rb +232 -0
- data/lib/turnkey_client/api/tvc_api.rb +773 -0
- data/lib/turnkey_client/api/wallets_api.rb +4 -4
- data/lib/turnkey_client/configuration.rb +7 -0
- data/lib/turnkey_client/models/activate_billing_tier_intent.rb +14 -4
- data/lib/turnkey_client/models/activity_type.rb +21 -0
- data/lib/turnkey_client/models/address_format.rb +2 -0
- data/lib/turnkey_client/models/app_status.rb +243 -0
- data/lib/turnkey_client/models/boot_proof.rb +17 -6
- data/lib/turnkey_client/models/create_oauth_providers_intent_v2.rb +228 -0
- data/lib/turnkey_client/models/create_oauth_providers_request.rb +2 -2
- data/lib/turnkey_client/models/create_oauth_providers_result_v2.rb +213 -0
- data/lib/turnkey_client/models/create_read_write_session_intent_v2.rb +1 -1
- data/lib/turnkey_client/models/create_sub_organization_intent_v8.rb +316 -0
- data/lib/turnkey_client/models/create_sub_organization_request.rb +2 -2
- data/lib/turnkey_client/models/create_sub_organization_result_v8.rb +230 -0
- data/lib/turnkey_client/models/create_tvc_app_intent.rb +9 -9
- data/lib/turnkey_client/models/create_tvc_app_request.rb +288 -0
- data/lib/turnkey_client/models/create_tvc_deployment_intent.rb +45 -48
- data/lib/turnkey_client/models/create_tvc_deployment_request.rb +288 -0
- data/lib/turnkey_client/models/create_tvc_manifest_approvals_request.rb +288 -0
- data/lib/turnkey_client/models/create_users_intent_v4.rb +213 -0
- data/lib/turnkey_client/models/create_users_request.rb +2 -2
- data/lib/turnkey_client/models/create_webhook_endpoint_intent.rb +238 -0
- data/lib/turnkey_client/models/create_webhook_endpoint_request.rb +298 -0
- data/lib/turnkey_client/models/create_webhook_endpoint_result.rb +225 -0
- data/lib/turnkey_client/models/delete_tvc_app_and_deployments_intent.rb +211 -0
- data/lib/turnkey_client/models/delete_tvc_app_and_deployments_request.rb +298 -0
- data/lib/turnkey_client/models/delete_tvc_app_and_deployments_result.rb +211 -0
- data/lib/turnkey_client/models/delete_tvc_deployment_intent.rb +211 -0
- data/lib/turnkey_client/models/delete_tvc_deployment_request.rb +298 -0
- data/lib/turnkey_client/models/delete_tvc_deployment_result.rb +211 -0
- data/lib/turnkey_client/models/delete_webhook_endpoint_intent.rb +211 -0
- data/lib/turnkey_client/models/delete_webhook_endpoint_request.rb +298 -0
- data/lib/turnkey_client/models/delete_webhook_endpoint_result.rb +211 -0
- data/lib/turnkey_client/models/deployment_status.rb +255 -0
- data/lib/turnkey_client/models/eth_failure_details.rb +208 -0
- data/lib/turnkey_client/models/eth_send_transaction_intent.rb +12 -1
- data/lib/turnkey_client/models/feature_name.rb +1 -0
- data/lib/turnkey_client/models/get_app_status_request.rb +226 -0
- data/lib/turnkey_client/models/get_app_status_response.rb +210 -0
- data/lib/turnkey_client/models/get_ip_allowlist_request.rb +222 -0
- data/lib/turnkey_client/models/get_ip_allowlist_response.rb +210 -0
- data/lib/turnkey_client/models/get_send_transaction_status_response.rb +10 -1
- data/lib/turnkey_client/models/get_tvc_app_deployments_request.rb +226 -0
- data/lib/turnkey_client/models/get_tvc_app_deployments_response.rb +213 -0
- data/lib/turnkey_client/models/get_tvc_app_request.rb +226 -0
- data/lib/turnkey_client/models/get_tvc_app_response.rb +210 -0
- data/lib/turnkey_client/models/get_tvc_apps_request.rb +211 -0
- data/lib/turnkey_client/models/get_tvc_apps_response.rb +213 -0
- data/lib/turnkey_client/models/get_tvc_deployment_request.rb +226 -0
- data/lib/turnkey_client/models/get_tvc_deployment_response.rb +210 -0
- data/lib/turnkey_client/models/get_wallet_address_balances_request.rb +4 -4
- data/lib/turnkey_client/models/init_otp_auth_intent.rb +1 -1
- data/lib/turnkey_client/models/init_otp_auth_intent_v2.rb +1 -1
- data/lib/turnkey_client/models/init_otp_intent_v3.rb +336 -0
- data/lib/turnkey_client/models/init_otp_request.rb +2 -2
- data/lib/turnkey_client/models/init_otp_result_v2.rb +226 -0
- data/lib/turnkey_client/models/intent.rb +193 -4
- data/lib/turnkey_client/models/ip_allowlist.rb +261 -0
- data/lib/turnkey_client/models/ip_allowlist_intent_rule.rb +222 -0
- data/lib/turnkey_client/models/ip_allowlist_rule.rb +232 -0
- data/lib/turnkey_client/models/list_supported_assets_request.rb +3 -3
- data/lib/turnkey_client/models/list_webhook_endpoints_request.rb +211 -0
- data/lib/turnkey_client/models/list_webhook_endpoints_response.rb +212 -0
- data/lib/turnkey_client/models/login_usage.rb +211 -0
- data/lib/turnkey_client/models/noop_codegen_anchor_response.rb +219 -0
- data/lib/turnkey_client/models/oauth2_authenticate_intent.rb +6 -2
- data/lib/turnkey_client/models/oauth_provider_params_v2.rb +230 -0
- data/lib/turnkey_client/models/oidc_claims.rb +241 -0
- data/lib/turnkey_client/models/otp_login_intent_v2.rb +262 -0
- data/lib/turnkey_client/models/otp_login_request.rb +2 -2
- data/lib/turnkey_client/models/post_tvc_quorum_key_share_intent.rb +240 -0
- data/lib/turnkey_client/models/post_tvc_quorum_key_share_result.rb +211 -0
- data/lib/turnkey_client/models/quorum_key_share_approval_bundle.rb +241 -0
- data/lib/turnkey_client/models/remove_ip_allowlist_intent.rb +207 -0
- data/lib/turnkey_client/models/remove_ip_allowlist_request.rb +298 -0
- data/lib/turnkey_client/models/remove_ip_allowlist_result.rb +196 -0
- data/lib/turnkey_client/models/restore_tvc_deployment_intent.rb +211 -0
- data/lib/turnkey_client/models/restore_tvc_deployment_request.rb +298 -0
- data/lib/turnkey_client/models/restore_tvc_deployment_result.rb +211 -0
- data/lib/turnkey_client/models/result.rb +166 -4
- data/lib/turnkey_client/models/root_user_params_v5.rb +284 -0
- data/lib/turnkey_client/models/set_ip_allowlist_intent.rb +241 -0
- data/lib/turnkey_client/models/set_ip_allowlist_request.rb +298 -0
- data/lib/turnkey_client/models/set_ip_allowlist_result.rb +196 -0
- data/lib/turnkey_client/models/signup_usage.rb +249 -0
- data/lib/turnkey_client/models/signup_usage_v2.rb +249 -0
- data/lib/turnkey_client/models/sol_send_transaction_intent.rb +3 -3
- data/lib/turnkey_client/models/solana_config.rb +207 -0
- data/lib/turnkey_client/models/solana_failure_details.rb +273 -0
- data/lib/turnkey_client/models/solana_send_transaction_status.rb +207 -0
- data/lib/turnkey_client/models/spark_claim_leaf.rb +241 -0
- data/lib/turnkey_client/models/spark_claim_package.rb +275 -0
- data/lib/turnkey_client/models/spark_claim_transfer_intent.rb +225 -0
- data/lib/turnkey_client/models/spark_claim_transfer_request.rb +288 -0
- data/lib/turnkey_client/models/spark_claim_transfer_result.rb +230 -0
- data/lib/turnkey_client/models/spark_deposit_derivation.rb +196 -0
- data/lib/turnkey_client/models/spark_encrypted_operator_package.rb +226 -0
- data/lib/turnkey_client/models/spark_frost_commitment.rb +241 -0
- data/lib/turnkey_client/models/spark_htlc_preimage_derivation.rb +196 -0
- data/lib/turnkey_client/models/spark_identity_derivation.rb +196 -0
- data/lib/turnkey_client/models/spark_key_derivation.rb +241 -0
- data/lib/turnkey_client/models/spark_leaf_public_key.rb +226 -0
- data/lib/turnkey_client/models/spark_lightning_receive_package.rb +228 -0
- data/lib/turnkey_client/models/spark_operator_recipient.rb +226 -0
- data/lib/turnkey_client/models/spark_partial_signature.rb +241 -0
- data/lib/turnkey_client/models/spark_prepare_lightning_receive_intent.rb +225 -0
- data/lib/turnkey_client/models/spark_prepare_lightning_receive_request.rb +288 -0
- data/lib/turnkey_client/models/spark_prepare_lightning_receive_result.rb +228 -0
- data/lib/turnkey_client/models/spark_prepare_transfer_intent.rb +225 -0
- data/lib/turnkey_client/models/spark_prepare_transfer_request.rb +288 -0
- data/lib/turnkey_client/models/spark_prepare_transfer_result.rb +245 -0
- data/lib/turnkey_client/models/spark_sign_frost_intent.rb +228 -0
- data/lib/turnkey_client/models/spark_sign_frost_request.rb +288 -0
- data/lib/turnkey_client/models/spark_sign_frost_result.rb +213 -0
- data/lib/turnkey_client/models/spark_signature_request.rb +268 -0
- data/lib/turnkey_client/models/spark_signing_leaf_derivation.rb +211 -0
- data/lib/turnkey_client/models/spark_static_deposit_derivation.rb +211 -0
- data/lib/turnkey_client/models/spark_transfer_leaf.rb +272 -0
- data/lib/turnkey_client/models/spark_transfer_package.rb +275 -0
- data/lib/turnkey_client/models/token_usage.rb +252 -0
- data/lib/turnkey_client/models/tvc_app.rb +353 -0
- data/lib/turnkey_client/models/tvc_container_spec.rb +302 -0
- data/lib/turnkey_client/models/tvc_deployment.rb +372 -0
- data/lib/turnkey_client/models/tvc_health_check_type.rb +27 -0
- data/lib/turnkey_client/models/tvc_manifest.rb +254 -0
- data/lib/turnkey_client/models/tvc_operator.rb +269 -0
- data/lib/turnkey_client/models/tvc_operator_approval.rb +283 -0
- data/lib/turnkey_client/models/tvc_operator_set.rb +301 -0
- data/lib/turnkey_client/models/tx_error.rb +22 -4
- data/lib/turnkey_client/models/update_auth_proxy_config_intent.rb +17 -5
- data/lib/turnkey_client/models/update_organization_name_intent.rb +211 -0
- data/lib/turnkey_client/models/update_organization_name_request.rb +298 -0
- data/lib/turnkey_client/models/update_organization_name_result.rb +226 -0
- data/lib/turnkey_client/models/update_tvc_app_live_deployment_intent.rb +211 -0
- data/lib/turnkey_client/models/update_tvc_app_live_deployment_request.rb +298 -0
- data/lib/turnkey_client/models/update_tvc_app_live_deployment_result.rb +196 -0
- data/lib/turnkey_client/models/update_webhook_endpoint_intent.rb +244 -0
- data/lib/turnkey_client/models/update_webhook_endpoint_request.rb +298 -0
- data/lib/turnkey_client/models/update_webhook_endpoint_result.rb +225 -0
- data/lib/turnkey_client/models/upsert_gas_usage_config_intent.rb +15 -6
- data/lib/turnkey_client/models/usage_type.rb +27 -0
- data/lib/turnkey_client/models/user_params_v4.rb +301 -0
- data/lib/turnkey_client/models/validate_tvc_image_request.rb +237 -0
- data/lib/turnkey_client/models/validate_tvc_image_response.rb +205 -0
- data/lib/turnkey_client/models/verify_otp_intent_v2.rb +237 -0
- data/lib/turnkey_client/models/verify_otp_request.rb +2 -2
- data/lib/turnkey_client/models/web_authn_stamp.rb +256 -0
- data/lib/turnkey_client/models/webhook_endpoint_data.rb +283 -0
- data/lib/turnkey_client/models/webhook_subscription_params.rb +233 -0
- data/lib/turnkey_client/version.rb +1 -1
- data/lib/turnkey_client.rb +122 -0
- metadata +124 -2
|
@@ -0,0 +1,773 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#API Reference
|
|
3
|
+
|
|
4
|
+
#Review our [API Introduction](../api-introduction) to get started.
|
|
5
|
+
|
|
6
|
+
OpenAPI spec version: 1.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
9
|
+
=end
|
|
10
|
+
|
|
11
|
+
module TurnkeyClient
|
|
12
|
+
class TVCApi
|
|
13
|
+
attr_accessor :api_client
|
|
14
|
+
|
|
15
|
+
def initialize(api_client = ApiClient.default)
|
|
16
|
+
@api_client = api_client
|
|
17
|
+
end
|
|
18
|
+
# Create a TVC App
|
|
19
|
+
# Create a new TVC application
|
|
20
|
+
# @param body
|
|
21
|
+
# @param [Hash] opts the optional parameters
|
|
22
|
+
# @return [ActivityResponse]
|
|
23
|
+
def create_tvc_app(body, opts = {})
|
|
24
|
+
data, _status_code, _headers = create_tvc_app_with_http_info(body, opts)
|
|
25
|
+
data
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# Create a TVC App
|
|
29
|
+
# Create a new TVC application
|
|
30
|
+
# @param body
|
|
31
|
+
# @param [Hash] opts the optional parameters
|
|
32
|
+
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
|
33
|
+
def create_tvc_app_with_http_info(body, opts = {})
|
|
34
|
+
if @api_client.config.debugging
|
|
35
|
+
@api_client.config.logger.debug 'Calling API: TVCApi.create_tvc_app ...'
|
|
36
|
+
end
|
|
37
|
+
# verify the required parameter 'body' is set
|
|
38
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
39
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling TVCApi.create_tvc_app"
|
|
40
|
+
end
|
|
41
|
+
# resource path
|
|
42
|
+
local_var_path = '/public/v1/submit/create_tvc_app'
|
|
43
|
+
|
|
44
|
+
# query parameters
|
|
45
|
+
query_params = opts[:query_params] || {}
|
|
46
|
+
|
|
47
|
+
# header parameters
|
|
48
|
+
header_params = opts[:header_params] || {}
|
|
49
|
+
# HTTP header 'Accept' (if needed)
|
|
50
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
51
|
+
# HTTP header 'Content-Type'
|
|
52
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
53
|
+
|
|
54
|
+
# form parameters
|
|
55
|
+
form_params = opts[:form_params] || {}
|
|
56
|
+
|
|
57
|
+
# http body (model)
|
|
58
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
59
|
+
|
|
60
|
+
return_type = opts[:return_type] || 'ActivityResponse'
|
|
61
|
+
|
|
62
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
|
63
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
64
|
+
:header_params => header_params,
|
|
65
|
+
:query_params => query_params,
|
|
66
|
+
:form_params => form_params,
|
|
67
|
+
:body => post_body,
|
|
68
|
+
:auth_names => auth_names,
|
|
69
|
+
:return_type => return_type)
|
|
70
|
+
|
|
71
|
+
if @api_client.config.debugging
|
|
72
|
+
@api_client.config.logger.debug "API called: TVCApi#create_tvc_app\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
73
|
+
end
|
|
74
|
+
return data, status_code, headers
|
|
75
|
+
end
|
|
76
|
+
# Create a TVC Deployment
|
|
77
|
+
# Create a new TVC Deployment
|
|
78
|
+
# @param body
|
|
79
|
+
# @param [Hash] opts the optional parameters
|
|
80
|
+
# @return [ActivityResponse]
|
|
81
|
+
def create_tvc_deployment(body, opts = {})
|
|
82
|
+
data, _status_code, _headers = create_tvc_deployment_with_http_info(body, opts)
|
|
83
|
+
data
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Create a TVC Deployment
|
|
87
|
+
# Create a new TVC Deployment
|
|
88
|
+
# @param body
|
|
89
|
+
# @param [Hash] opts the optional parameters
|
|
90
|
+
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
|
91
|
+
def create_tvc_deployment_with_http_info(body, opts = {})
|
|
92
|
+
if @api_client.config.debugging
|
|
93
|
+
@api_client.config.logger.debug 'Calling API: TVCApi.create_tvc_deployment ...'
|
|
94
|
+
end
|
|
95
|
+
# verify the required parameter 'body' is set
|
|
96
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
97
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling TVCApi.create_tvc_deployment"
|
|
98
|
+
end
|
|
99
|
+
# resource path
|
|
100
|
+
local_var_path = '/public/v1/submit/create_tvc_deployment'
|
|
101
|
+
|
|
102
|
+
# query parameters
|
|
103
|
+
query_params = opts[:query_params] || {}
|
|
104
|
+
|
|
105
|
+
# header parameters
|
|
106
|
+
header_params = opts[:header_params] || {}
|
|
107
|
+
# HTTP header 'Accept' (if needed)
|
|
108
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
109
|
+
# HTTP header 'Content-Type'
|
|
110
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
111
|
+
|
|
112
|
+
# form parameters
|
|
113
|
+
form_params = opts[:form_params] || {}
|
|
114
|
+
|
|
115
|
+
# http body (model)
|
|
116
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
117
|
+
|
|
118
|
+
return_type = opts[:return_type] || 'ActivityResponse'
|
|
119
|
+
|
|
120
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
|
121
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
122
|
+
:header_params => header_params,
|
|
123
|
+
:query_params => query_params,
|
|
124
|
+
:form_params => form_params,
|
|
125
|
+
:body => post_body,
|
|
126
|
+
:auth_names => auth_names,
|
|
127
|
+
:return_type => return_type)
|
|
128
|
+
|
|
129
|
+
if @api_client.config.debugging
|
|
130
|
+
@api_client.config.logger.debug "API called: TVCApi#create_tvc_deployment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
131
|
+
end
|
|
132
|
+
return data, status_code, headers
|
|
133
|
+
end
|
|
134
|
+
# Create TVC Manifest Approvals
|
|
135
|
+
# Post one or more manifest approvals for a TVC Manifest
|
|
136
|
+
# @param body
|
|
137
|
+
# @param [Hash] opts the optional parameters
|
|
138
|
+
# @return [ActivityResponse]
|
|
139
|
+
def create_tvc_manifest_approvals(body, opts = {})
|
|
140
|
+
data, _status_code, _headers = create_tvc_manifest_approvals_with_http_info(body, opts)
|
|
141
|
+
data
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# Create TVC Manifest Approvals
|
|
145
|
+
# Post one or more manifest approvals for a TVC Manifest
|
|
146
|
+
# @param body
|
|
147
|
+
# @param [Hash] opts the optional parameters
|
|
148
|
+
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
|
149
|
+
def create_tvc_manifest_approvals_with_http_info(body, opts = {})
|
|
150
|
+
if @api_client.config.debugging
|
|
151
|
+
@api_client.config.logger.debug 'Calling API: TVCApi.create_tvc_manifest_approvals ...'
|
|
152
|
+
end
|
|
153
|
+
# verify the required parameter 'body' is set
|
|
154
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
155
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling TVCApi.create_tvc_manifest_approvals"
|
|
156
|
+
end
|
|
157
|
+
# resource path
|
|
158
|
+
local_var_path = '/public/v1/submit/create_tvc_manifest_approvals'
|
|
159
|
+
|
|
160
|
+
# query parameters
|
|
161
|
+
query_params = opts[:query_params] || {}
|
|
162
|
+
|
|
163
|
+
# header parameters
|
|
164
|
+
header_params = opts[:header_params] || {}
|
|
165
|
+
# HTTP header 'Accept' (if needed)
|
|
166
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
167
|
+
# HTTP header 'Content-Type'
|
|
168
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
169
|
+
|
|
170
|
+
# form parameters
|
|
171
|
+
form_params = opts[:form_params] || {}
|
|
172
|
+
|
|
173
|
+
# http body (model)
|
|
174
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
175
|
+
|
|
176
|
+
return_type = opts[:return_type] || 'ActivityResponse'
|
|
177
|
+
|
|
178
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
|
179
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
180
|
+
:header_params => header_params,
|
|
181
|
+
:query_params => query_params,
|
|
182
|
+
:form_params => form_params,
|
|
183
|
+
:body => post_body,
|
|
184
|
+
:auth_names => auth_names,
|
|
185
|
+
:return_type => return_type)
|
|
186
|
+
|
|
187
|
+
if @api_client.config.debugging
|
|
188
|
+
@api_client.config.logger.debug "API called: TVCApi#create_tvc_manifest_approvals\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
189
|
+
end
|
|
190
|
+
return data, status_code, headers
|
|
191
|
+
end
|
|
192
|
+
# Delete a TVC App and all of its deployments
|
|
193
|
+
# Delete a TVC App and all of its deployments
|
|
194
|
+
# @param body
|
|
195
|
+
# @param [Hash] opts the optional parameters
|
|
196
|
+
# @return [ActivityResponse]
|
|
197
|
+
def delete_tvc_app_and_deployments(body, opts = {})
|
|
198
|
+
data, _status_code, _headers = delete_tvc_app_and_deployments_with_http_info(body, opts)
|
|
199
|
+
data
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
# Delete a TVC App and all of its deployments
|
|
203
|
+
# Delete a TVC App and all of its deployments
|
|
204
|
+
# @param body
|
|
205
|
+
# @param [Hash] opts the optional parameters
|
|
206
|
+
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
|
207
|
+
def delete_tvc_app_and_deployments_with_http_info(body, opts = {})
|
|
208
|
+
if @api_client.config.debugging
|
|
209
|
+
@api_client.config.logger.debug 'Calling API: TVCApi.delete_tvc_app_and_deployments ...'
|
|
210
|
+
end
|
|
211
|
+
# verify the required parameter 'body' is set
|
|
212
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
213
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling TVCApi.delete_tvc_app_and_deployments"
|
|
214
|
+
end
|
|
215
|
+
# resource path
|
|
216
|
+
local_var_path = '/public/v1/submit/delete_tvc_app_and_deployments'
|
|
217
|
+
|
|
218
|
+
# query parameters
|
|
219
|
+
query_params = opts[:query_params] || {}
|
|
220
|
+
|
|
221
|
+
# header parameters
|
|
222
|
+
header_params = opts[:header_params] || {}
|
|
223
|
+
# HTTP header 'Accept' (if needed)
|
|
224
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
225
|
+
# HTTP header 'Content-Type'
|
|
226
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
227
|
+
|
|
228
|
+
# form parameters
|
|
229
|
+
form_params = opts[:form_params] || {}
|
|
230
|
+
|
|
231
|
+
# http body (model)
|
|
232
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
233
|
+
|
|
234
|
+
return_type = opts[:return_type] || 'ActivityResponse'
|
|
235
|
+
|
|
236
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
|
237
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
238
|
+
:header_params => header_params,
|
|
239
|
+
:query_params => query_params,
|
|
240
|
+
:form_params => form_params,
|
|
241
|
+
:body => post_body,
|
|
242
|
+
:auth_names => auth_names,
|
|
243
|
+
:return_type => return_type)
|
|
244
|
+
|
|
245
|
+
if @api_client.config.debugging
|
|
246
|
+
@api_client.config.logger.debug "API called: TVCApi#delete_tvc_app_and_deployments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
247
|
+
end
|
|
248
|
+
return data, status_code, headers
|
|
249
|
+
end
|
|
250
|
+
# Delete a TVC Deployment
|
|
251
|
+
# Delete a TVC Deployment
|
|
252
|
+
# @param body
|
|
253
|
+
# @param [Hash] opts the optional parameters
|
|
254
|
+
# @return [ActivityResponse]
|
|
255
|
+
def delete_tvc_deployment(body, opts = {})
|
|
256
|
+
data, _status_code, _headers = delete_tvc_deployment_with_http_info(body, opts)
|
|
257
|
+
data
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
# Delete a TVC Deployment
|
|
261
|
+
# Delete a TVC Deployment
|
|
262
|
+
# @param body
|
|
263
|
+
# @param [Hash] opts the optional parameters
|
|
264
|
+
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
|
265
|
+
def delete_tvc_deployment_with_http_info(body, opts = {})
|
|
266
|
+
if @api_client.config.debugging
|
|
267
|
+
@api_client.config.logger.debug 'Calling API: TVCApi.delete_tvc_deployment ...'
|
|
268
|
+
end
|
|
269
|
+
# verify the required parameter 'body' is set
|
|
270
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
271
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling TVCApi.delete_tvc_deployment"
|
|
272
|
+
end
|
|
273
|
+
# resource path
|
|
274
|
+
local_var_path = '/public/v1/submit/delete_tvc_deployment'
|
|
275
|
+
|
|
276
|
+
# query parameters
|
|
277
|
+
query_params = opts[:query_params] || {}
|
|
278
|
+
|
|
279
|
+
# header parameters
|
|
280
|
+
header_params = opts[:header_params] || {}
|
|
281
|
+
# HTTP header 'Accept' (if needed)
|
|
282
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
283
|
+
# HTTP header 'Content-Type'
|
|
284
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
285
|
+
|
|
286
|
+
# form parameters
|
|
287
|
+
form_params = opts[:form_params] || {}
|
|
288
|
+
|
|
289
|
+
# http body (model)
|
|
290
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
291
|
+
|
|
292
|
+
return_type = opts[:return_type] || 'ActivityResponse'
|
|
293
|
+
|
|
294
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
|
295
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
296
|
+
:header_params => header_params,
|
|
297
|
+
:query_params => query_params,
|
|
298
|
+
:form_params => form_params,
|
|
299
|
+
:body => post_body,
|
|
300
|
+
:auth_names => auth_names,
|
|
301
|
+
:return_type => return_type)
|
|
302
|
+
|
|
303
|
+
if @api_client.config.debugging
|
|
304
|
+
@api_client.config.logger.debug "API called: TVCApi#delete_tvc_deployment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
305
|
+
end
|
|
306
|
+
return data, status_code, headers
|
|
307
|
+
end
|
|
308
|
+
# Get TVC App status
|
|
309
|
+
# Get live runtime status for a TVC App from the cluster.
|
|
310
|
+
# @param body
|
|
311
|
+
# @param [Hash] opts the optional parameters
|
|
312
|
+
# @return [GetAppStatusResponse]
|
|
313
|
+
def get_app_status(body, opts = {})
|
|
314
|
+
data, _status_code, _headers = get_app_status_with_http_info(body, opts)
|
|
315
|
+
data
|
|
316
|
+
end
|
|
317
|
+
|
|
318
|
+
# Get TVC App status
|
|
319
|
+
# Get live runtime status for a TVC App from the cluster.
|
|
320
|
+
# @param body
|
|
321
|
+
# @param [Hash] opts the optional parameters
|
|
322
|
+
# @return [Array<(GetAppStatusResponse, Integer, Hash)>] GetAppStatusResponse data, response status code and response headers
|
|
323
|
+
def get_app_status_with_http_info(body, opts = {})
|
|
324
|
+
if @api_client.config.debugging
|
|
325
|
+
@api_client.config.logger.debug 'Calling API: TVCApi.get_app_status ...'
|
|
326
|
+
end
|
|
327
|
+
# verify the required parameter 'body' is set
|
|
328
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
329
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling TVCApi.get_app_status"
|
|
330
|
+
end
|
|
331
|
+
# resource path
|
|
332
|
+
local_var_path = '/public/v1/query/get_app_status'
|
|
333
|
+
|
|
334
|
+
# query parameters
|
|
335
|
+
query_params = opts[:query_params] || {}
|
|
336
|
+
|
|
337
|
+
# header parameters
|
|
338
|
+
header_params = opts[:header_params] || {}
|
|
339
|
+
# HTTP header 'Accept' (if needed)
|
|
340
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
341
|
+
# HTTP header 'Content-Type'
|
|
342
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
343
|
+
|
|
344
|
+
# form parameters
|
|
345
|
+
form_params = opts[:form_params] || {}
|
|
346
|
+
|
|
347
|
+
# http body (model)
|
|
348
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
349
|
+
|
|
350
|
+
return_type = opts[:return_type] || 'GetAppStatusResponse'
|
|
351
|
+
|
|
352
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
|
353
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
354
|
+
:header_params => header_params,
|
|
355
|
+
:query_params => query_params,
|
|
356
|
+
:form_params => form_params,
|
|
357
|
+
:body => post_body,
|
|
358
|
+
:auth_names => auth_names,
|
|
359
|
+
:return_type => return_type)
|
|
360
|
+
|
|
361
|
+
if @api_client.config.debugging
|
|
362
|
+
@api_client.config.logger.debug "API called: TVCApi#get_app_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
363
|
+
end
|
|
364
|
+
return data, status_code, headers
|
|
365
|
+
end
|
|
366
|
+
# Get TVC App
|
|
367
|
+
# Get details about a single TVC App
|
|
368
|
+
# @param body
|
|
369
|
+
# @param [Hash] opts the optional parameters
|
|
370
|
+
# @return [GetTvcAppResponse]
|
|
371
|
+
def get_tvc_app(body, opts = {})
|
|
372
|
+
data, _status_code, _headers = get_tvc_app_with_http_info(body, opts)
|
|
373
|
+
data
|
|
374
|
+
end
|
|
375
|
+
|
|
376
|
+
# Get TVC App
|
|
377
|
+
# Get details about a single TVC App
|
|
378
|
+
# @param body
|
|
379
|
+
# @param [Hash] opts the optional parameters
|
|
380
|
+
# @return [Array<(GetTvcAppResponse, Integer, Hash)>] GetTvcAppResponse data, response status code and response headers
|
|
381
|
+
def get_tvc_app_with_http_info(body, opts = {})
|
|
382
|
+
if @api_client.config.debugging
|
|
383
|
+
@api_client.config.logger.debug 'Calling API: TVCApi.get_tvc_app ...'
|
|
384
|
+
end
|
|
385
|
+
# verify the required parameter 'body' is set
|
|
386
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
387
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling TVCApi.get_tvc_app"
|
|
388
|
+
end
|
|
389
|
+
# resource path
|
|
390
|
+
local_var_path = '/public/v1/query/get_tvc_app'
|
|
391
|
+
|
|
392
|
+
# query parameters
|
|
393
|
+
query_params = opts[:query_params] || {}
|
|
394
|
+
|
|
395
|
+
# header parameters
|
|
396
|
+
header_params = opts[:header_params] || {}
|
|
397
|
+
# HTTP header 'Accept' (if needed)
|
|
398
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
399
|
+
# HTTP header 'Content-Type'
|
|
400
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
401
|
+
|
|
402
|
+
# form parameters
|
|
403
|
+
form_params = opts[:form_params] || {}
|
|
404
|
+
|
|
405
|
+
# http body (model)
|
|
406
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
407
|
+
|
|
408
|
+
return_type = opts[:return_type] || 'GetTvcAppResponse'
|
|
409
|
+
|
|
410
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
|
411
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
412
|
+
:header_params => header_params,
|
|
413
|
+
:query_params => query_params,
|
|
414
|
+
:form_params => form_params,
|
|
415
|
+
:body => post_body,
|
|
416
|
+
:auth_names => auth_names,
|
|
417
|
+
:return_type => return_type)
|
|
418
|
+
|
|
419
|
+
if @api_client.config.debugging
|
|
420
|
+
@api_client.config.logger.debug "API called: TVCApi#get_tvc_app\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
421
|
+
end
|
|
422
|
+
return data, status_code, headers
|
|
423
|
+
end
|
|
424
|
+
# List TVC Deployments
|
|
425
|
+
# List all deployments for a given TVC App
|
|
426
|
+
# @param body
|
|
427
|
+
# @param [Hash] opts the optional parameters
|
|
428
|
+
# @return [GetTvcAppDeploymentsResponse]
|
|
429
|
+
def get_tvc_app_deployments(body, opts = {})
|
|
430
|
+
data, _status_code, _headers = get_tvc_app_deployments_with_http_info(body, opts)
|
|
431
|
+
data
|
|
432
|
+
end
|
|
433
|
+
|
|
434
|
+
# List TVC Deployments
|
|
435
|
+
# List all deployments for a given TVC App
|
|
436
|
+
# @param body
|
|
437
|
+
# @param [Hash] opts the optional parameters
|
|
438
|
+
# @return [Array<(GetTvcAppDeploymentsResponse, Integer, Hash)>] GetTvcAppDeploymentsResponse data, response status code and response headers
|
|
439
|
+
def get_tvc_app_deployments_with_http_info(body, opts = {})
|
|
440
|
+
if @api_client.config.debugging
|
|
441
|
+
@api_client.config.logger.debug 'Calling API: TVCApi.get_tvc_app_deployments ...'
|
|
442
|
+
end
|
|
443
|
+
# verify the required parameter 'body' is set
|
|
444
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
445
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling TVCApi.get_tvc_app_deployments"
|
|
446
|
+
end
|
|
447
|
+
# resource path
|
|
448
|
+
local_var_path = '/public/v1/query/list_tvc_app_deployments'
|
|
449
|
+
|
|
450
|
+
# query parameters
|
|
451
|
+
query_params = opts[:query_params] || {}
|
|
452
|
+
|
|
453
|
+
# header parameters
|
|
454
|
+
header_params = opts[:header_params] || {}
|
|
455
|
+
# HTTP header 'Accept' (if needed)
|
|
456
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
457
|
+
# HTTP header 'Content-Type'
|
|
458
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
459
|
+
|
|
460
|
+
# form parameters
|
|
461
|
+
form_params = opts[:form_params] || {}
|
|
462
|
+
|
|
463
|
+
# http body (model)
|
|
464
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
465
|
+
|
|
466
|
+
return_type = opts[:return_type] || 'GetTvcAppDeploymentsResponse'
|
|
467
|
+
|
|
468
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
|
469
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
470
|
+
:header_params => header_params,
|
|
471
|
+
:query_params => query_params,
|
|
472
|
+
:form_params => form_params,
|
|
473
|
+
:body => post_body,
|
|
474
|
+
:auth_names => auth_names,
|
|
475
|
+
:return_type => return_type)
|
|
476
|
+
|
|
477
|
+
if @api_client.config.debugging
|
|
478
|
+
@api_client.config.logger.debug "API called: TVCApi#get_tvc_app_deployments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
479
|
+
end
|
|
480
|
+
return data, status_code, headers
|
|
481
|
+
end
|
|
482
|
+
# List TVC Apps
|
|
483
|
+
# List all TVC Apps within an organization.
|
|
484
|
+
# @param body
|
|
485
|
+
# @param [Hash] opts the optional parameters
|
|
486
|
+
# @return [GetTvcAppsResponse]
|
|
487
|
+
def get_tvc_apps(body, opts = {})
|
|
488
|
+
data, _status_code, _headers = get_tvc_apps_with_http_info(body, opts)
|
|
489
|
+
data
|
|
490
|
+
end
|
|
491
|
+
|
|
492
|
+
# List TVC Apps
|
|
493
|
+
# List all TVC Apps within an organization.
|
|
494
|
+
# @param body
|
|
495
|
+
# @param [Hash] opts the optional parameters
|
|
496
|
+
# @return [Array<(GetTvcAppsResponse, Integer, Hash)>] GetTvcAppsResponse data, response status code and response headers
|
|
497
|
+
def get_tvc_apps_with_http_info(body, opts = {})
|
|
498
|
+
if @api_client.config.debugging
|
|
499
|
+
@api_client.config.logger.debug 'Calling API: TVCApi.get_tvc_apps ...'
|
|
500
|
+
end
|
|
501
|
+
# verify the required parameter 'body' is set
|
|
502
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
503
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling TVCApi.get_tvc_apps"
|
|
504
|
+
end
|
|
505
|
+
# resource path
|
|
506
|
+
local_var_path = '/public/v1/query/list_tvc_apps'
|
|
507
|
+
|
|
508
|
+
# query parameters
|
|
509
|
+
query_params = opts[:query_params] || {}
|
|
510
|
+
|
|
511
|
+
# header parameters
|
|
512
|
+
header_params = opts[:header_params] || {}
|
|
513
|
+
# HTTP header 'Accept' (if needed)
|
|
514
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
515
|
+
# HTTP header 'Content-Type'
|
|
516
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
517
|
+
|
|
518
|
+
# form parameters
|
|
519
|
+
form_params = opts[:form_params] || {}
|
|
520
|
+
|
|
521
|
+
# http body (model)
|
|
522
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
523
|
+
|
|
524
|
+
return_type = opts[:return_type] || 'GetTvcAppsResponse'
|
|
525
|
+
|
|
526
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
|
527
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
528
|
+
:header_params => header_params,
|
|
529
|
+
:query_params => query_params,
|
|
530
|
+
:form_params => form_params,
|
|
531
|
+
:body => post_body,
|
|
532
|
+
:auth_names => auth_names,
|
|
533
|
+
:return_type => return_type)
|
|
534
|
+
|
|
535
|
+
if @api_client.config.debugging
|
|
536
|
+
@api_client.config.logger.debug "API called: TVCApi#get_tvc_apps\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
537
|
+
end
|
|
538
|
+
return data, status_code, headers
|
|
539
|
+
end
|
|
540
|
+
# Get TVC Deployment
|
|
541
|
+
# Get details about a single TVC Deployment
|
|
542
|
+
# @param body
|
|
543
|
+
# @param [Hash] opts the optional parameters
|
|
544
|
+
# @return [GetTvcDeploymentResponse]
|
|
545
|
+
def get_tvc_deployment(body, opts = {})
|
|
546
|
+
data, _status_code, _headers = get_tvc_deployment_with_http_info(body, opts)
|
|
547
|
+
data
|
|
548
|
+
end
|
|
549
|
+
|
|
550
|
+
# Get TVC Deployment
|
|
551
|
+
# Get details about a single TVC Deployment
|
|
552
|
+
# @param body
|
|
553
|
+
# @param [Hash] opts the optional parameters
|
|
554
|
+
# @return [Array<(GetTvcDeploymentResponse, Integer, Hash)>] GetTvcDeploymentResponse data, response status code and response headers
|
|
555
|
+
def get_tvc_deployment_with_http_info(body, opts = {})
|
|
556
|
+
if @api_client.config.debugging
|
|
557
|
+
@api_client.config.logger.debug 'Calling API: TVCApi.get_tvc_deployment ...'
|
|
558
|
+
end
|
|
559
|
+
# verify the required parameter 'body' is set
|
|
560
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
561
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling TVCApi.get_tvc_deployment"
|
|
562
|
+
end
|
|
563
|
+
# resource path
|
|
564
|
+
local_var_path = '/public/v1/query/get_tvc_deployment'
|
|
565
|
+
|
|
566
|
+
# query parameters
|
|
567
|
+
query_params = opts[:query_params] || {}
|
|
568
|
+
|
|
569
|
+
# header parameters
|
|
570
|
+
header_params = opts[:header_params] || {}
|
|
571
|
+
# HTTP header 'Accept' (if needed)
|
|
572
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
573
|
+
# HTTP header 'Content-Type'
|
|
574
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
575
|
+
|
|
576
|
+
# form parameters
|
|
577
|
+
form_params = opts[:form_params] || {}
|
|
578
|
+
|
|
579
|
+
# http body (model)
|
|
580
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
581
|
+
|
|
582
|
+
return_type = opts[:return_type] || 'GetTvcDeploymentResponse'
|
|
583
|
+
|
|
584
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
|
585
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
586
|
+
:header_params => header_params,
|
|
587
|
+
:query_params => query_params,
|
|
588
|
+
:form_params => form_params,
|
|
589
|
+
:body => post_body,
|
|
590
|
+
:auth_names => auth_names,
|
|
591
|
+
:return_type => return_type)
|
|
592
|
+
|
|
593
|
+
if @api_client.config.debugging
|
|
594
|
+
@api_client.config.logger.debug "API called: TVCApi#get_tvc_deployment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
595
|
+
end
|
|
596
|
+
return data, status_code, headers
|
|
597
|
+
end
|
|
598
|
+
# Restore a TVC Deployment
|
|
599
|
+
# Restore a deleted TVC Deployment
|
|
600
|
+
# @param body
|
|
601
|
+
# @param [Hash] opts the optional parameters
|
|
602
|
+
# @return [ActivityResponse]
|
|
603
|
+
def restore_tvc_deployment(body, opts = {})
|
|
604
|
+
data, _status_code, _headers = restore_tvc_deployment_with_http_info(body, opts)
|
|
605
|
+
data
|
|
606
|
+
end
|
|
607
|
+
|
|
608
|
+
# Restore a TVC Deployment
|
|
609
|
+
# Restore a deleted TVC Deployment
|
|
610
|
+
# @param body
|
|
611
|
+
# @param [Hash] opts the optional parameters
|
|
612
|
+
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
|
613
|
+
def restore_tvc_deployment_with_http_info(body, opts = {})
|
|
614
|
+
if @api_client.config.debugging
|
|
615
|
+
@api_client.config.logger.debug 'Calling API: TVCApi.restore_tvc_deployment ...'
|
|
616
|
+
end
|
|
617
|
+
# verify the required parameter 'body' is set
|
|
618
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
619
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling TVCApi.restore_tvc_deployment"
|
|
620
|
+
end
|
|
621
|
+
# resource path
|
|
622
|
+
local_var_path = '/public/v1/submit/restore_tvc_deployment'
|
|
623
|
+
|
|
624
|
+
# query parameters
|
|
625
|
+
query_params = opts[:query_params] || {}
|
|
626
|
+
|
|
627
|
+
# header parameters
|
|
628
|
+
header_params = opts[:header_params] || {}
|
|
629
|
+
# HTTP header 'Accept' (if needed)
|
|
630
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
631
|
+
# HTTP header 'Content-Type'
|
|
632
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
633
|
+
|
|
634
|
+
# form parameters
|
|
635
|
+
form_params = opts[:form_params] || {}
|
|
636
|
+
|
|
637
|
+
# http body (model)
|
|
638
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
639
|
+
|
|
640
|
+
return_type = opts[:return_type] || 'ActivityResponse'
|
|
641
|
+
|
|
642
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
|
643
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
644
|
+
:header_params => header_params,
|
|
645
|
+
:query_params => query_params,
|
|
646
|
+
:form_params => form_params,
|
|
647
|
+
:body => post_body,
|
|
648
|
+
:auth_names => auth_names,
|
|
649
|
+
:return_type => return_type)
|
|
650
|
+
|
|
651
|
+
if @api_client.config.debugging
|
|
652
|
+
@api_client.config.logger.debug "API called: TVCApi#restore_tvc_deployment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
653
|
+
end
|
|
654
|
+
return data, status_code, headers
|
|
655
|
+
end
|
|
656
|
+
# Set TVC App live deployment
|
|
657
|
+
# Set the live deployment for a TVC App
|
|
658
|
+
# @param body
|
|
659
|
+
# @param [Hash] opts the optional parameters
|
|
660
|
+
# @return [ActivityResponse]
|
|
661
|
+
def update_tvc_app_live_deployment(body, opts = {})
|
|
662
|
+
data, _status_code, _headers = update_tvc_app_live_deployment_with_http_info(body, opts)
|
|
663
|
+
data
|
|
664
|
+
end
|
|
665
|
+
|
|
666
|
+
# Set TVC App live deployment
|
|
667
|
+
# Set the live deployment for a TVC App
|
|
668
|
+
# @param body
|
|
669
|
+
# @param [Hash] opts the optional parameters
|
|
670
|
+
# @return [Array<(ActivityResponse, Integer, Hash)>] ActivityResponse data, response status code and response headers
|
|
671
|
+
def update_tvc_app_live_deployment_with_http_info(body, opts = {})
|
|
672
|
+
if @api_client.config.debugging
|
|
673
|
+
@api_client.config.logger.debug 'Calling API: TVCApi.update_tvc_app_live_deployment ...'
|
|
674
|
+
end
|
|
675
|
+
# verify the required parameter 'body' is set
|
|
676
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
677
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling TVCApi.update_tvc_app_live_deployment"
|
|
678
|
+
end
|
|
679
|
+
# resource path
|
|
680
|
+
local_var_path = '/public/v1/submit/set_tvc_app_live_deployment'
|
|
681
|
+
|
|
682
|
+
# query parameters
|
|
683
|
+
query_params = opts[:query_params] || {}
|
|
684
|
+
|
|
685
|
+
# header parameters
|
|
686
|
+
header_params = opts[:header_params] || {}
|
|
687
|
+
# HTTP header 'Accept' (if needed)
|
|
688
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
689
|
+
# HTTP header 'Content-Type'
|
|
690
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
691
|
+
|
|
692
|
+
# form parameters
|
|
693
|
+
form_params = opts[:form_params] || {}
|
|
694
|
+
|
|
695
|
+
# http body (model)
|
|
696
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
697
|
+
|
|
698
|
+
return_type = opts[:return_type] || 'ActivityResponse'
|
|
699
|
+
|
|
700
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
|
701
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
702
|
+
:header_params => header_params,
|
|
703
|
+
:query_params => query_params,
|
|
704
|
+
:form_params => form_params,
|
|
705
|
+
:body => post_body,
|
|
706
|
+
:auth_names => auth_names,
|
|
707
|
+
:return_type => return_type)
|
|
708
|
+
|
|
709
|
+
if @api_client.config.debugging
|
|
710
|
+
@api_client.config.logger.debug "API called: TVCApi#update_tvc_app_live_deployment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
711
|
+
end
|
|
712
|
+
return data, status_code, headers
|
|
713
|
+
end
|
|
714
|
+
# Validate Container Image for TVC
|
|
715
|
+
# Validate a container image URL and pull secret for TVC deployment
|
|
716
|
+
# @param body
|
|
717
|
+
# @param [Hash] opts the optional parameters
|
|
718
|
+
# @return [ValidateTvcImageResponse]
|
|
719
|
+
def validate_tvc_image(body, opts = {})
|
|
720
|
+
data, _status_code, _headers = validate_tvc_image_with_http_info(body, opts)
|
|
721
|
+
data
|
|
722
|
+
end
|
|
723
|
+
|
|
724
|
+
# Validate Container Image for TVC
|
|
725
|
+
# Validate a container image URL and pull secret for TVC deployment
|
|
726
|
+
# @param body
|
|
727
|
+
# @param [Hash] opts the optional parameters
|
|
728
|
+
# @return [Array<(ValidateTvcImageResponse, Integer, Hash)>] ValidateTvcImageResponse data, response status code and response headers
|
|
729
|
+
def validate_tvc_image_with_http_info(body, opts = {})
|
|
730
|
+
if @api_client.config.debugging
|
|
731
|
+
@api_client.config.logger.debug 'Calling API: TVCApi.validate_tvc_image ...'
|
|
732
|
+
end
|
|
733
|
+
# verify the required parameter 'body' is set
|
|
734
|
+
if @api_client.config.client_side_validation && body.nil?
|
|
735
|
+
fail ArgumentError, "Missing the required parameter 'body' when calling TVCApi.validate_tvc_image"
|
|
736
|
+
end
|
|
737
|
+
# resource path
|
|
738
|
+
local_var_path = '/public/v1/query/validate_tvc_image'
|
|
739
|
+
|
|
740
|
+
# query parameters
|
|
741
|
+
query_params = opts[:query_params] || {}
|
|
742
|
+
|
|
743
|
+
# header parameters
|
|
744
|
+
header_params = opts[:header_params] || {}
|
|
745
|
+
# HTTP header 'Accept' (if needed)
|
|
746
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
747
|
+
# HTTP header 'Content-Type'
|
|
748
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
749
|
+
|
|
750
|
+
# form parameters
|
|
751
|
+
form_params = opts[:form_params] || {}
|
|
752
|
+
|
|
753
|
+
# http body (model)
|
|
754
|
+
post_body = opts[:body] || @api_client.object_to_http_body(body)
|
|
755
|
+
|
|
756
|
+
return_type = opts[:return_type] || 'ValidateTvcImageResponse'
|
|
757
|
+
|
|
758
|
+
auth_names = opts[:auth_names] || ['ApiKeyAuth', 'AuthenticatorAuth']
|
|
759
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
760
|
+
:header_params => header_params,
|
|
761
|
+
:query_params => query_params,
|
|
762
|
+
:form_params => form_params,
|
|
763
|
+
:body => post_body,
|
|
764
|
+
:auth_names => auth_names,
|
|
765
|
+
:return_type => return_type)
|
|
766
|
+
|
|
767
|
+
if @api_client.config.debugging
|
|
768
|
+
@api_client.config.logger.debug "API called: TVCApi#validate_tvc_image\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
769
|
+
end
|
|
770
|
+
return data, status_code, headers
|
|
771
|
+
end
|
|
772
|
+
end
|
|
773
|
+
end
|