volcano-sdk 0.34.0 → 0.35.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/README.md +53 -4
- data/lib/volcano/client.rb +1 -1
- data/lib/volcano/durable.rb +9 -4
- data/lib/volcano/durable_approval_models.rb +1 -1
- data/lib/volcano/durable_message_arguments.rb +49 -0
- data/lib/volcano/durable_message_backlog.rb +38 -0
- data/lib/volcano/durable_message_catch_ups.rb +112 -0
- data/lib/volcano/durable_message_models.rb +62 -0
- data/lib/volcano/durable_message_responses.rb +107 -0
- data/lib/volcano/durable_message_session.rb +72 -0
- data/lib/volcano/durable_message_stream.rb +176 -0
- data/lib/volcano/durable_messages.rb +217 -0
- data/lib/volcano/durable_models.rb +32 -3
- data/lib/volcano/generated/lib/volcano-generated/api/auth_admin_api.rb +2 -2
- data/lib/volcano/generated/lib/volcano-generated/api/auth_configuration_api.rb +2 -2
- data/lib/volcano/generated/lib/volcano-generated/api/autofix_api.rb +222 -0
- data/lib/volcano/generated/lib/volcano-generated/api/durable_functions_api.rb +725 -0
- data/lib/volcano/generated/lib/volcano-generated/api/frontends_api.rb +2 -2
- data/lib/volcano/generated/lib/volcano-generated/api/issues_api.rb +254 -0
- data/lib/volcano/generated/lib/volcano-generated/api/sandboxes_api.rb +20 -20
- data/lib/volcano/generated/lib/volcano-generated/api/system_api.rb +57 -0
- data/lib/volcano/generated/lib/volcano-generated/api/variable_environments_api.rb +373 -0
- data/lib/volcano/generated/lib/volcano-generated/api/verified_domains_api.rb +2 -2
- data/lib/volcano/generated/lib/volcano-generated/models/auth_config.rb +46 -4
- data/lib/volcano/generated/lib/volcano-generated/models/auth_insights_series_point.rb +110 -2
- data/lib/volcano/generated/lib/volcano-generated/models/autofix_model.rb +45 -0
- data/lib/volcano/generated/lib/volcano-generated/models/autofix_provider.rb +40 -0
- data/lib/volcano/generated/lib/volcano-generated/models/autofix_settings.rb +385 -0
- data/lib/volcano/generated/lib/volcano-generated/models/autofix_stage.rb +40 -0
- data/lib/volcano/generated/lib/volcano-generated/models/capability.rb +214 -0
- data/lib/volcano/generated/lib/volcano-generated/models/capability_list.rb +166 -0
- data/lib/volcano/generated/lib/volcano-generated/models/capability_status.rb +40 -0
- data/lib/volcano/generated/lib/volcano-generated/models/create_sandbox_session_request.rb +16 -53
- data/lib/volcano/generated/lib/volcano-generated/models/create_variable_environment_request.rb +176 -0
- data/lib/volcano/generated/lib/volcano-generated/models/durable_execution.rb +14 -4
- data/lib/volcano/generated/lib/volcano-generated/models/durable_message.rb +396 -0
- data/lib/volcano/generated/lib/volcano-generated/models/durable_message_direction.rb +40 -0
- data/lib/volcano/generated/lib/volcano-generated/models/durable_message_list.rb +194 -0
- data/lib/volcano/generated/lib/volcano-generated/models/durable_message_sender.rb +203 -0
- data/lib/volcano/generated/lib/volcano-generated/models/durable_message_session_registration.rb +165 -0
- data/lib/volcano/generated/lib/volcano-generated/models/durable_message_status.rb +43 -0
- data/lib/volcano/generated/lib/volcano-generated/models/durable_message_wait.rb +278 -0
- data/lib/volcano/generated/lib/volcano-generated/models/durable_message_wait_list.rb +167 -0
- data/lib/volcano/generated/lib/volcano-generated/models/durable_message_wait_registration.rb +225 -0
- data/lib/volcano/generated/lib/volcano-generated/models/durable_message_wait_status.rb +43 -0
- data/lib/volcano/generated/lib/volcano-generated/models/frontend.rb +11 -1
- data/lib/volcano/generated/lib/volcano-generated/models/frontend_custom_domain_conflict_error.rb +1 -1
- data/lib/volcano/generated/lib/volcano-generated/models/frontend_custom_domain_response.rb +25 -2
- data/lib/volcano/generated/lib/volcano-generated/models/issue.rb +493 -0
- data/lib/volcano/generated/lib/volcano-generated/models/issue_status.rb +41 -0
- data/lib/volcano/generated/lib/volcano-generated/models/metric_usage_data.rb +1 -1
- data/lib/volcano/generated/lib/volcano-generated/models/open_durable_message_session_request.rb +228 -0
- data/lib/volcano/generated/lib/volcano-generated/models/paginated_issues.rb +230 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_config.rb +10 -1
- data/lib/volcano/generated/lib/volcano-generated/models/project_config_autofix.rb +206 -0
- data/lib/volcano/generated/lib/volcano-generated/models/project_config_custom_domain.rb +1 -1
- data/lib/volcano/generated/lib/volcano-generated/models/project_config_sandbox.rb +12 -50
- data/lib/volcano/generated/lib/volcano-generated/models/project_frontend_custom_domain.rb +25 -2
- data/lib/volcano/generated/lib/volcano-generated/models/publish_durable_message_request.rb +205 -0
- data/lib/volcano/generated/lib/volcano-generated/models/register_durable_message_wait_request.rb +284 -0
- data/lib/volcano/generated/lib/volcano-generated/models/rename_variable_environment_request.rb +176 -0
- data/lib/volcano/generated/lib/volcano-generated/models/request_durable_approval_request.rb +1 -1
- data/lib/volcano/generated/lib/volcano-generated/models/sandbox_command_request.rb +11 -12
- data/lib/volcano/generated/lib/volcano-generated/models/sandbox_execution_request.rb +51 -13
- data/lib/volcano/generated/lib/volcano-generated/models/sandbox_session.rb +4 -30
- data/lib/volcano/generated/lib/volcano-generated/models/send_durable_message_request.rb +205 -0
- data/lib/volcano/generated/lib/volcano-generated/models/update_auth_config_request.rb +79 -1
- data/lib/volcano/generated/lib/volcano-generated/models/update_autofix_settings_request.rb +273 -0
- data/lib/volcano/generated/lib/volcano-generated/models/update_issue_request.rb +186 -0
- data/lib/volcano/generated/lib/volcano-generated/models/variable_environment.rb +325 -0
- data/lib/volcano/generated/lib/volcano-generated/models/variable_environment_list.rb +175 -0
- data/lib/volcano/generated/lib/volcano-generated.rb +34 -0
- data/lib/volcano/generated_transport.rb +1 -0
- data/lib/volcano/generated_transport_durable_messages.rb +57 -0
- data/lib/volcano/realtime/channel_callbacks.rb +5 -1
- data/lib/volcano/realtime/channel_lifecycle.rb +4 -1
- data/lib/volcano/realtime/durable_channel.rb +47 -0
- data/lib/volcano/realtime/lifecycle.rb +37 -1
- data/lib/volcano/realtime/protocol.rb +7 -3
- data/lib/volcano/realtime/protocol_dispatch.rb +1 -1
- data/lib/volcano/realtime/protocol_io.rb +7 -4
- data/lib/volcano/realtime/protocol_lifecycle.rb +7 -0
- data/lib/volcano/realtime/protocol_recovery.rb +23 -12
- data/lib/volcano/realtime.rb +42 -8
- data/lib/volcano/redaction.rb +1 -1
- data/lib/volcano/version.rb +1 -1
- data/lib/volcano.rb +8 -0
- data/sig/core_facades.rbs +15 -0
- data/sig/durable_message_records.rbs +68 -0
- data/sig/durable_records.rbs +17 -9
- metadata +46 -1
|
@@ -0,0 +1,373 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Volcano API
|
|
3
|
+
|
|
4
|
+
#Public API for Volcano clients, SDKs, and CLI tooling (Port 8000). This specification intentionally excludes first-party/internal APIs. See api/openapi-internal.yaml for non-public internal and Builder operations.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 3.0.0
|
|
7
|
+
Contact: support@volcano.dev
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.17.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module Volcano::Generated
|
|
16
|
+
class VariableEnvironmentsApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Create a variable Environment
|
|
23
|
+
# Creates a custom variable Environment. Global is reserved and already exists. A Project may have at most 100 custom Environments.
|
|
24
|
+
# @param id [String] Project ID
|
|
25
|
+
# @param create_variable_environment_request [CreateVariableEnvironmentRequest]
|
|
26
|
+
# @param [Hash] opts the optional parameters
|
|
27
|
+
# @return [VariableEnvironment]
|
|
28
|
+
def create_variable_environment(id, create_variable_environment_request, opts = {})
|
|
29
|
+
data, _status_code, _headers = create_variable_environment_with_http_info(id, create_variable_environment_request, opts)
|
|
30
|
+
data
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Create a variable Environment
|
|
34
|
+
# Creates a custom variable Environment. Global is reserved and already exists. A Project may have at most 100 custom Environments.
|
|
35
|
+
# @param id [String] Project ID
|
|
36
|
+
# @param create_variable_environment_request [CreateVariableEnvironmentRequest]
|
|
37
|
+
# @param [Hash] opts the optional parameters
|
|
38
|
+
# @return [Array<(VariableEnvironment, Integer, Hash)>] VariableEnvironment data, response status code and response headers
|
|
39
|
+
def create_variable_environment_with_http_info(id, create_variable_environment_request, opts = {})
|
|
40
|
+
if @api_client.config.debugging
|
|
41
|
+
@api_client.config.logger.debug 'Calling API: VariableEnvironmentsApi.create_variable_environment ...'
|
|
42
|
+
end
|
|
43
|
+
# verify the required parameter 'id' is set
|
|
44
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
45
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VariableEnvironmentsApi.create_variable_environment"
|
|
46
|
+
end
|
|
47
|
+
# verify the required parameter 'create_variable_environment_request' is set
|
|
48
|
+
if @api_client.config.client_side_validation && create_variable_environment_request.nil?
|
|
49
|
+
fail ArgumentError, "Missing the required parameter 'create_variable_environment_request' when calling VariableEnvironmentsApi.create_variable_environment"
|
|
50
|
+
end
|
|
51
|
+
# resource path
|
|
52
|
+
local_var_path = '/projects/{id}/variable-environments'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
53
|
+
|
|
54
|
+
# query parameters
|
|
55
|
+
query_params = opts[:query_params] || {}
|
|
56
|
+
|
|
57
|
+
# header parameters
|
|
58
|
+
header_params = opts[:header_params] || {}
|
|
59
|
+
# HTTP header 'Accept' (if needed)
|
|
60
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
61
|
+
# HTTP header 'Content-Type'
|
|
62
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
63
|
+
if !content_type.nil?
|
|
64
|
+
header_params['Content-Type'] = content_type
|
|
65
|
+
end
|
|
66
|
+
|
|
67
|
+
# form parameters
|
|
68
|
+
form_params = opts[:form_params] || {}
|
|
69
|
+
|
|
70
|
+
# http body (model)
|
|
71
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_variable_environment_request)
|
|
72
|
+
|
|
73
|
+
# return_type
|
|
74
|
+
return_type = opts[:debug_return_type] || 'VariableEnvironment'
|
|
75
|
+
|
|
76
|
+
# auth_names
|
|
77
|
+
auth_names = opts[:debug_auth_names] || ['UserToken', 'ProjectAccessToken']
|
|
78
|
+
|
|
79
|
+
new_options = opts.merge(
|
|
80
|
+
:operation => :"VariableEnvironmentsApi.create_variable_environment",
|
|
81
|
+
:header_params => header_params,
|
|
82
|
+
:query_params => query_params,
|
|
83
|
+
:form_params => form_params,
|
|
84
|
+
:body => post_body,
|
|
85
|
+
:auth_names => auth_names,
|
|
86
|
+
:return_type => return_type
|
|
87
|
+
)
|
|
88
|
+
|
|
89
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
90
|
+
if @api_client.config.debugging
|
|
91
|
+
@api_client.config.logger.debug "API called: VariableEnvironmentsApi#create_variable_environment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
92
|
+
end
|
|
93
|
+
return data, status_code, headers
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# Delete a variable Environment
|
|
97
|
+
# Deletes a custom Environment. Global cannot be deleted.
|
|
98
|
+
# @param id [String] Project ID
|
|
99
|
+
# @param environment_id [String] Variable Environment ID
|
|
100
|
+
# @param [Hash] opts the optional parameters
|
|
101
|
+
# @return [nil]
|
|
102
|
+
def delete_variable_environment(id, environment_id, opts = {})
|
|
103
|
+
delete_variable_environment_with_http_info(id, environment_id, opts)
|
|
104
|
+
nil
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# Delete a variable Environment
|
|
108
|
+
# Deletes a custom Environment. Global cannot be deleted.
|
|
109
|
+
# @param id [String] Project ID
|
|
110
|
+
# @param environment_id [String] Variable Environment ID
|
|
111
|
+
# @param [Hash] opts the optional parameters
|
|
112
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
113
|
+
def delete_variable_environment_with_http_info(id, environment_id, opts = {})
|
|
114
|
+
if @api_client.config.debugging
|
|
115
|
+
@api_client.config.logger.debug 'Calling API: VariableEnvironmentsApi.delete_variable_environment ...'
|
|
116
|
+
end
|
|
117
|
+
# verify the required parameter 'id' is set
|
|
118
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
119
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VariableEnvironmentsApi.delete_variable_environment"
|
|
120
|
+
end
|
|
121
|
+
# verify the required parameter 'environment_id' is set
|
|
122
|
+
if @api_client.config.client_side_validation && environment_id.nil?
|
|
123
|
+
fail ArgumentError, "Missing the required parameter 'environment_id' when calling VariableEnvironmentsApi.delete_variable_environment"
|
|
124
|
+
end
|
|
125
|
+
# resource path
|
|
126
|
+
local_var_path = '/projects/{id}/variable-environments/{environmentId}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'environmentId' + '}', CGI.escape(environment_id.to_s))
|
|
127
|
+
|
|
128
|
+
# query parameters
|
|
129
|
+
query_params = opts[:query_params] || {}
|
|
130
|
+
|
|
131
|
+
# header parameters
|
|
132
|
+
header_params = opts[:header_params] || {}
|
|
133
|
+
# HTTP header 'Accept' (if needed)
|
|
134
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
135
|
+
|
|
136
|
+
# form parameters
|
|
137
|
+
form_params = opts[:form_params] || {}
|
|
138
|
+
|
|
139
|
+
# http body (model)
|
|
140
|
+
post_body = opts[:debug_body]
|
|
141
|
+
|
|
142
|
+
# return_type
|
|
143
|
+
return_type = opts[:debug_return_type]
|
|
144
|
+
|
|
145
|
+
# auth_names
|
|
146
|
+
auth_names = opts[:debug_auth_names] || ['UserToken', 'ProjectAccessToken']
|
|
147
|
+
|
|
148
|
+
new_options = opts.merge(
|
|
149
|
+
:operation => :"VariableEnvironmentsApi.delete_variable_environment",
|
|
150
|
+
:header_params => header_params,
|
|
151
|
+
:query_params => query_params,
|
|
152
|
+
:form_params => form_params,
|
|
153
|
+
:body => post_body,
|
|
154
|
+
:auth_names => auth_names,
|
|
155
|
+
:return_type => return_type
|
|
156
|
+
)
|
|
157
|
+
|
|
158
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
159
|
+
if @api_client.config.debugging
|
|
160
|
+
@api_client.config.logger.debug "API called: VariableEnvironmentsApi#delete_variable_environment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
161
|
+
end
|
|
162
|
+
return data, status_code, headers
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# Get a variable Environment
|
|
166
|
+
# @param id [String] Project ID
|
|
167
|
+
# @param environment_id [String] Variable Environment ID
|
|
168
|
+
# @param [Hash] opts the optional parameters
|
|
169
|
+
# @return [VariableEnvironment]
|
|
170
|
+
def get_variable_environment(id, environment_id, opts = {})
|
|
171
|
+
data, _status_code, _headers = get_variable_environment_with_http_info(id, environment_id, opts)
|
|
172
|
+
data
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# Get a variable Environment
|
|
176
|
+
# @param id [String] Project ID
|
|
177
|
+
# @param environment_id [String] Variable Environment ID
|
|
178
|
+
# @param [Hash] opts the optional parameters
|
|
179
|
+
# @return [Array<(VariableEnvironment, Integer, Hash)>] VariableEnvironment data, response status code and response headers
|
|
180
|
+
def get_variable_environment_with_http_info(id, environment_id, opts = {})
|
|
181
|
+
if @api_client.config.debugging
|
|
182
|
+
@api_client.config.logger.debug 'Calling API: VariableEnvironmentsApi.get_variable_environment ...'
|
|
183
|
+
end
|
|
184
|
+
# verify the required parameter 'id' is set
|
|
185
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
186
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VariableEnvironmentsApi.get_variable_environment"
|
|
187
|
+
end
|
|
188
|
+
# verify the required parameter 'environment_id' is set
|
|
189
|
+
if @api_client.config.client_side_validation && environment_id.nil?
|
|
190
|
+
fail ArgumentError, "Missing the required parameter 'environment_id' when calling VariableEnvironmentsApi.get_variable_environment"
|
|
191
|
+
end
|
|
192
|
+
# resource path
|
|
193
|
+
local_var_path = '/projects/{id}/variable-environments/{environmentId}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'environmentId' + '}', CGI.escape(environment_id.to_s))
|
|
194
|
+
|
|
195
|
+
# query parameters
|
|
196
|
+
query_params = opts[:query_params] || {}
|
|
197
|
+
|
|
198
|
+
# header parameters
|
|
199
|
+
header_params = opts[:header_params] || {}
|
|
200
|
+
# HTTP header 'Accept' (if needed)
|
|
201
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
202
|
+
|
|
203
|
+
# form parameters
|
|
204
|
+
form_params = opts[:form_params] || {}
|
|
205
|
+
|
|
206
|
+
# http body (model)
|
|
207
|
+
post_body = opts[:debug_body]
|
|
208
|
+
|
|
209
|
+
# return_type
|
|
210
|
+
return_type = opts[:debug_return_type] || 'VariableEnvironment'
|
|
211
|
+
|
|
212
|
+
# auth_names
|
|
213
|
+
auth_names = opts[:debug_auth_names] || ['UserToken', 'ProjectAccessToken']
|
|
214
|
+
|
|
215
|
+
new_options = opts.merge(
|
|
216
|
+
:operation => :"VariableEnvironmentsApi.get_variable_environment",
|
|
217
|
+
:header_params => header_params,
|
|
218
|
+
:query_params => query_params,
|
|
219
|
+
:form_params => form_params,
|
|
220
|
+
:body => post_body,
|
|
221
|
+
:auth_names => auth_names,
|
|
222
|
+
:return_type => return_type
|
|
223
|
+
)
|
|
224
|
+
|
|
225
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
226
|
+
if @api_client.config.debugging
|
|
227
|
+
@api_client.config.logger.debug "API called: VariableEnvironmentsApi#get_variable_environment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
228
|
+
end
|
|
229
|
+
return data, status_code, headers
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
# List variable Environments
|
|
233
|
+
# @param id [String] Project ID
|
|
234
|
+
# @param [Hash] opts the optional parameters
|
|
235
|
+
# @return [VariableEnvironmentList]
|
|
236
|
+
def list_variable_environments(id, opts = {})
|
|
237
|
+
data, _status_code, _headers = list_variable_environments_with_http_info(id, opts)
|
|
238
|
+
data
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
# List variable Environments
|
|
242
|
+
# @param id [String] Project ID
|
|
243
|
+
# @param [Hash] opts the optional parameters
|
|
244
|
+
# @return [Array<(VariableEnvironmentList, Integer, Hash)>] VariableEnvironmentList data, response status code and response headers
|
|
245
|
+
def list_variable_environments_with_http_info(id, opts = {})
|
|
246
|
+
if @api_client.config.debugging
|
|
247
|
+
@api_client.config.logger.debug 'Calling API: VariableEnvironmentsApi.list_variable_environments ...'
|
|
248
|
+
end
|
|
249
|
+
# verify the required parameter 'id' is set
|
|
250
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
251
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VariableEnvironmentsApi.list_variable_environments"
|
|
252
|
+
end
|
|
253
|
+
# resource path
|
|
254
|
+
local_var_path = '/projects/{id}/variable-environments'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
|
255
|
+
|
|
256
|
+
# query parameters
|
|
257
|
+
query_params = opts[:query_params] || {}
|
|
258
|
+
|
|
259
|
+
# header parameters
|
|
260
|
+
header_params = opts[:header_params] || {}
|
|
261
|
+
# HTTP header 'Accept' (if needed)
|
|
262
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
263
|
+
|
|
264
|
+
# form parameters
|
|
265
|
+
form_params = opts[:form_params] || {}
|
|
266
|
+
|
|
267
|
+
# http body (model)
|
|
268
|
+
post_body = opts[:debug_body]
|
|
269
|
+
|
|
270
|
+
# return_type
|
|
271
|
+
return_type = opts[:debug_return_type] || 'VariableEnvironmentList'
|
|
272
|
+
|
|
273
|
+
# auth_names
|
|
274
|
+
auth_names = opts[:debug_auth_names] || ['UserToken', 'ProjectAccessToken']
|
|
275
|
+
|
|
276
|
+
new_options = opts.merge(
|
|
277
|
+
:operation => :"VariableEnvironmentsApi.list_variable_environments",
|
|
278
|
+
:header_params => header_params,
|
|
279
|
+
:query_params => query_params,
|
|
280
|
+
:form_params => form_params,
|
|
281
|
+
:body => post_body,
|
|
282
|
+
:auth_names => auth_names,
|
|
283
|
+
:return_type => return_type
|
|
284
|
+
)
|
|
285
|
+
|
|
286
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
287
|
+
if @api_client.config.debugging
|
|
288
|
+
@api_client.config.logger.debug "API called: VariableEnvironmentsApi#list_variable_environments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
289
|
+
end
|
|
290
|
+
return data, status_code, headers
|
|
291
|
+
end
|
|
292
|
+
|
|
293
|
+
# Rename a variable Environment
|
|
294
|
+
# Renames a custom Environment without changing its stable ID. Global cannot be renamed.
|
|
295
|
+
# @param id [String] Project ID
|
|
296
|
+
# @param environment_id [String] Variable Environment ID
|
|
297
|
+
# @param rename_variable_environment_request [RenameVariableEnvironmentRequest]
|
|
298
|
+
# @param [Hash] opts the optional parameters
|
|
299
|
+
# @return [VariableEnvironment]
|
|
300
|
+
def rename_variable_environment(id, environment_id, rename_variable_environment_request, opts = {})
|
|
301
|
+
data, _status_code, _headers = rename_variable_environment_with_http_info(id, environment_id, rename_variable_environment_request, opts)
|
|
302
|
+
data
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
# Rename a variable Environment
|
|
306
|
+
# Renames a custom Environment without changing its stable ID. Global cannot be renamed.
|
|
307
|
+
# @param id [String] Project ID
|
|
308
|
+
# @param environment_id [String] Variable Environment ID
|
|
309
|
+
# @param rename_variable_environment_request [RenameVariableEnvironmentRequest]
|
|
310
|
+
# @param [Hash] opts the optional parameters
|
|
311
|
+
# @return [Array<(VariableEnvironment, Integer, Hash)>] VariableEnvironment data, response status code and response headers
|
|
312
|
+
def rename_variable_environment_with_http_info(id, environment_id, rename_variable_environment_request, opts = {})
|
|
313
|
+
if @api_client.config.debugging
|
|
314
|
+
@api_client.config.logger.debug 'Calling API: VariableEnvironmentsApi.rename_variable_environment ...'
|
|
315
|
+
end
|
|
316
|
+
# verify the required parameter 'id' is set
|
|
317
|
+
if @api_client.config.client_side_validation && id.nil?
|
|
318
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling VariableEnvironmentsApi.rename_variable_environment"
|
|
319
|
+
end
|
|
320
|
+
# verify the required parameter 'environment_id' is set
|
|
321
|
+
if @api_client.config.client_side_validation && environment_id.nil?
|
|
322
|
+
fail ArgumentError, "Missing the required parameter 'environment_id' when calling VariableEnvironmentsApi.rename_variable_environment"
|
|
323
|
+
end
|
|
324
|
+
# verify the required parameter 'rename_variable_environment_request' is set
|
|
325
|
+
if @api_client.config.client_side_validation && rename_variable_environment_request.nil?
|
|
326
|
+
fail ArgumentError, "Missing the required parameter 'rename_variable_environment_request' when calling VariableEnvironmentsApi.rename_variable_environment"
|
|
327
|
+
end
|
|
328
|
+
# resource path
|
|
329
|
+
local_var_path = '/projects/{id}/variable-environments/{environmentId}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'environmentId' + '}', CGI.escape(environment_id.to_s))
|
|
330
|
+
|
|
331
|
+
# query parameters
|
|
332
|
+
query_params = opts[:query_params] || {}
|
|
333
|
+
|
|
334
|
+
# header parameters
|
|
335
|
+
header_params = opts[:header_params] || {}
|
|
336
|
+
# HTTP header 'Accept' (if needed)
|
|
337
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
338
|
+
# HTTP header 'Content-Type'
|
|
339
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
340
|
+
if !content_type.nil?
|
|
341
|
+
header_params['Content-Type'] = content_type
|
|
342
|
+
end
|
|
343
|
+
|
|
344
|
+
# form parameters
|
|
345
|
+
form_params = opts[:form_params] || {}
|
|
346
|
+
|
|
347
|
+
# http body (model)
|
|
348
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(rename_variable_environment_request)
|
|
349
|
+
|
|
350
|
+
# return_type
|
|
351
|
+
return_type = opts[:debug_return_type] || 'VariableEnvironment'
|
|
352
|
+
|
|
353
|
+
# auth_names
|
|
354
|
+
auth_names = opts[:debug_auth_names] || ['UserToken', 'ProjectAccessToken']
|
|
355
|
+
|
|
356
|
+
new_options = opts.merge(
|
|
357
|
+
:operation => :"VariableEnvironmentsApi.rename_variable_environment",
|
|
358
|
+
:header_params => header_params,
|
|
359
|
+
:query_params => query_params,
|
|
360
|
+
:form_params => form_params,
|
|
361
|
+
:body => post_body,
|
|
362
|
+
:auth_names => auth_names,
|
|
363
|
+
:return_type => return_type
|
|
364
|
+
)
|
|
365
|
+
|
|
366
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
367
|
+
if @api_client.config.debugging
|
|
368
|
+
@api_client.config.logger.debug "API called: VariableEnvironmentsApi#rename_variable_environment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
369
|
+
end
|
|
370
|
+
return data, status_code, headers
|
|
371
|
+
end
|
|
372
|
+
end
|
|
373
|
+
end
|
|
@@ -144,7 +144,7 @@ module Volcano::Generated
|
|
|
144
144
|
end
|
|
145
145
|
|
|
146
146
|
# Verify a domain
|
|
147
|
-
# Verifies the account's ownership of a domain and every name below it. Verify a registrable domain such as `example.com` to cover all of its subdomains, or a delegated subdomain you control. Publish a TXT record named `_volcano.<domain>`, then send this request. Without the record, the response is `409` with `code: ownership_verification_required` and the `required_record` to publish. Its value
|
|
147
|
+
# Verifies the account's ownership of a domain and every name below it. Verify a registrable domain such as `example.com` to cover all of its subdomains, or a delegated subdomain you control. Publish a TXT record named `_volcano.<domain>`, then send this request. Without the record, the response is `409` with `code: ownership_verification_required` and the `required_record` to publish. Its value stays the same until Volcano rotates the key it is derived from. The record must be served at that name itself; a record reached through a CNAME does not count. When another account verified the domain, publishing your record moves the domain to your account once that account's record is no longer published. Keep your record published so the domain stays yours. After Volcano rotates the key the value is derived from, only a record with the new value counts. Verifying a domain the account already verified returns `200`.
|
|
148
148
|
# @param verify_domain_request [VerifyDomainRequest]
|
|
149
149
|
# @param [Hash] opts the optional parameters
|
|
150
150
|
# @return [VerifiedDomain]
|
|
@@ -154,7 +154,7 @@ module Volcano::Generated
|
|
|
154
154
|
end
|
|
155
155
|
|
|
156
156
|
# Verify a domain
|
|
157
|
-
# Verifies the account's ownership of a domain and every name below it. Verify a registrable domain such as `example.com` to cover all of its subdomains, or a delegated subdomain you control. Publish a TXT record named `_volcano.<domain>`, then send this request. Without the record, the response is `409` with `code: ownership_verification_required` and the `required_record` to publish. Its value
|
|
157
|
+
# Verifies the account's ownership of a domain and every name below it. Verify a registrable domain such as `example.com` to cover all of its subdomains, or a delegated subdomain you control. Publish a TXT record named `_volcano.<domain>`, then send this request. Without the record, the response is `409` with `code: ownership_verification_required` and the `required_record` to publish. Its value stays the same until Volcano rotates the key it is derived from. The record must be served at that name itself; a record reached through a CNAME does not count. When another account verified the domain, publishing your record moves the domain to your account once that account's record is no longer published. Keep your record published so the domain stays yours. After Volcano rotates the key the value is derived from, only a record with the new value counts. Verifying a domain the account already verified returns `200`.
|
|
158
158
|
# @param verify_domain_request [VerifyDomainRequest]
|
|
159
159
|
# @param [Hash] opts the optional parameters
|
|
160
160
|
# @return [Array<(VerifiedDomain, Integer, Hash)>] VerifiedDomain data, response status code and response headers
|
|
@@ -23,6 +23,9 @@ module Volcano::Generated
|
|
|
23
23
|
# Refresh token lifetime in seconds
|
|
24
24
|
attr_accessor :refresh_token_lifetime
|
|
25
25
|
|
|
26
|
+
# A refresh within this many seconds of the refresh token being issued returns the same refresh token instead of rotating it, so concurrent refreshes from several tabs all succeed
|
|
27
|
+
attr_accessor :refresh_token_reuse_interval
|
|
28
|
+
|
|
26
29
|
# Force re-login after inactivity (seconds, 0=never)
|
|
27
30
|
attr_accessor :inactivity_timeout
|
|
28
31
|
|
|
@@ -57,6 +60,9 @@ module Volcano::Generated
|
|
|
57
60
|
# Refreshes per hour per IP
|
|
58
61
|
attr_accessor :rate_limit_token_refresh
|
|
59
62
|
|
|
63
|
+
# Password reset requests per hour per IP. Unlike the other limits, 0 applies the default of 10 instead of turning the limit off.
|
|
64
|
+
attr_accessor :rate_limit_password_reset
|
|
65
|
+
|
|
60
66
|
attr_accessor :cors_enabled
|
|
61
67
|
|
|
62
68
|
attr_accessor :cors_allowed_origins
|
|
@@ -136,6 +142,10 @@ module Volcano::Generated
|
|
|
136
142
|
# Optional override for the device-authorization verification page. When set, POST /auth/device/authorize returns this URL (with the user_code) as verification_uri/verification_uri_complete instead of the built-in managed device page. Lets a CLI surface the project's own RFC 8628 approval page. Empty falls back to the managed page.
|
|
137
143
|
attr_accessor :device_verification_url
|
|
138
144
|
|
|
145
|
+
attr_accessor :created_at
|
|
146
|
+
|
|
147
|
+
attr_accessor :updated_at
|
|
148
|
+
|
|
139
149
|
class EnumAttributeValidator
|
|
140
150
|
attr_reader :datatype
|
|
141
151
|
attr_reader :allowable_values
|
|
@@ -164,6 +174,7 @@ module Volcano::Generated
|
|
|
164
174
|
:'project_id' => :'project_id',
|
|
165
175
|
:'access_token_lifetime' => :'access_token_lifetime',
|
|
166
176
|
:'refresh_token_lifetime' => :'refresh_token_lifetime',
|
|
177
|
+
:'refresh_token_reuse_interval' => :'refresh_token_reuse_interval',
|
|
167
178
|
:'inactivity_timeout' => :'inactivity_timeout',
|
|
168
179
|
:'max_session_duration' => :'max_session_duration',
|
|
169
180
|
:'min_password_length' => :'min_password_length',
|
|
@@ -177,6 +188,7 @@ module Volcano::Generated
|
|
|
177
188
|
:'rate_limit_signup' => :'rate_limit_signup',
|
|
178
189
|
:'rate_limit_signin' => :'rate_limit_signin',
|
|
179
190
|
:'rate_limit_token_refresh' => :'rate_limit_token_refresh',
|
|
191
|
+
:'rate_limit_password_reset' => :'rate_limit_password_reset',
|
|
180
192
|
:'cors_enabled' => :'cors_enabled',
|
|
181
193
|
:'cors_allowed_origins' => :'cors_allowed_origins',
|
|
182
194
|
:'enable_anonymous_signins' => :'enable_anonymous_signins',
|
|
@@ -206,7 +218,9 @@ module Volcano::Generated
|
|
|
206
218
|
:'post_auth_redirect_url' => :'post_auth_redirect_url',
|
|
207
219
|
:'allowed_redirect_urls' => :'allowed_redirect_urls',
|
|
208
220
|
:'post_logout_redirect_url' => :'post_logout_redirect_url',
|
|
209
|
-
:'device_verification_url' => :'device_verification_url'
|
|
221
|
+
:'device_verification_url' => :'device_verification_url',
|
|
222
|
+
:'created_at' => :'created_at',
|
|
223
|
+
:'updated_at' => :'updated_at'
|
|
210
224
|
}
|
|
211
225
|
end
|
|
212
226
|
|
|
@@ -226,6 +240,7 @@ module Volcano::Generated
|
|
|
226
240
|
:'project_id' => :'String',
|
|
227
241
|
:'access_token_lifetime' => :'Integer',
|
|
228
242
|
:'refresh_token_lifetime' => :'Integer',
|
|
243
|
+
:'refresh_token_reuse_interval' => :'Integer',
|
|
229
244
|
:'inactivity_timeout' => :'Integer',
|
|
230
245
|
:'max_session_duration' => :'Integer',
|
|
231
246
|
:'min_password_length' => :'Integer',
|
|
@@ -239,6 +254,7 @@ module Volcano::Generated
|
|
|
239
254
|
:'rate_limit_signup' => :'Integer',
|
|
240
255
|
:'rate_limit_signin' => :'Integer',
|
|
241
256
|
:'rate_limit_token_refresh' => :'Integer',
|
|
257
|
+
:'rate_limit_password_reset' => :'Integer',
|
|
242
258
|
:'cors_enabled' => :'Boolean',
|
|
243
259
|
:'cors_allowed_origins' => :'Array<String>',
|
|
244
260
|
:'enable_anonymous_signins' => :'Boolean',
|
|
@@ -268,7 +284,9 @@ module Volcano::Generated
|
|
|
268
284
|
:'post_auth_redirect_url' => :'String',
|
|
269
285
|
:'allowed_redirect_urls' => :'Array<String>',
|
|
270
286
|
:'post_logout_redirect_url' => :'String',
|
|
271
|
-
:'device_verification_url' => :'String'
|
|
287
|
+
:'device_verification_url' => :'String',
|
|
288
|
+
:'created_at' => :'Time',
|
|
289
|
+
:'updated_at' => :'Time'
|
|
272
290
|
}
|
|
273
291
|
end
|
|
274
292
|
|
|
@@ -310,6 +328,12 @@ module Volcano::Generated
|
|
|
310
328
|
self.refresh_token_lifetime = 2592000
|
|
311
329
|
end
|
|
312
330
|
|
|
331
|
+
if attributes.key?(:'refresh_token_reuse_interval')
|
|
332
|
+
self.refresh_token_reuse_interval = attributes[:'refresh_token_reuse_interval']
|
|
333
|
+
else
|
|
334
|
+
self.refresh_token_reuse_interval = 10
|
|
335
|
+
end
|
|
336
|
+
|
|
313
337
|
if attributes.key?(:'inactivity_timeout')
|
|
314
338
|
self.inactivity_timeout = attributes[:'inactivity_timeout']
|
|
315
339
|
else
|
|
@@ -388,6 +412,12 @@ module Volcano::Generated
|
|
|
388
412
|
self.rate_limit_token_refresh = 1000
|
|
389
413
|
end
|
|
390
414
|
|
|
415
|
+
if attributes.key?(:'rate_limit_password_reset')
|
|
416
|
+
self.rate_limit_password_reset = attributes[:'rate_limit_password_reset']
|
|
417
|
+
else
|
|
418
|
+
self.rate_limit_password_reset = 10
|
|
419
|
+
end
|
|
420
|
+
|
|
391
421
|
if attributes.key?(:'cors_enabled')
|
|
392
422
|
self.cors_enabled = attributes[:'cors_enabled']
|
|
393
423
|
else
|
|
@@ -547,6 +577,14 @@ module Volcano::Generated
|
|
|
547
577
|
if attributes.key?(:'device_verification_url')
|
|
548
578
|
self.device_verification_url = attributes[:'device_verification_url']
|
|
549
579
|
end
|
|
580
|
+
|
|
581
|
+
if attributes.key?(:'created_at')
|
|
582
|
+
self.created_at = attributes[:'created_at']
|
|
583
|
+
end
|
|
584
|
+
|
|
585
|
+
if attributes.key?(:'updated_at')
|
|
586
|
+
self.updated_at = attributes[:'updated_at']
|
|
587
|
+
end
|
|
550
588
|
end
|
|
551
589
|
|
|
552
590
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -627,6 +665,7 @@ module Volcano::Generated
|
|
|
627
665
|
project_id == o.project_id &&
|
|
628
666
|
access_token_lifetime == o.access_token_lifetime &&
|
|
629
667
|
refresh_token_lifetime == o.refresh_token_lifetime &&
|
|
668
|
+
refresh_token_reuse_interval == o.refresh_token_reuse_interval &&
|
|
630
669
|
inactivity_timeout == o.inactivity_timeout &&
|
|
631
670
|
max_session_duration == o.max_session_duration &&
|
|
632
671
|
min_password_length == o.min_password_length &&
|
|
@@ -640,6 +679,7 @@ module Volcano::Generated
|
|
|
640
679
|
rate_limit_signup == o.rate_limit_signup &&
|
|
641
680
|
rate_limit_signin == o.rate_limit_signin &&
|
|
642
681
|
rate_limit_token_refresh == o.rate_limit_token_refresh &&
|
|
682
|
+
rate_limit_password_reset == o.rate_limit_password_reset &&
|
|
643
683
|
cors_enabled == o.cors_enabled &&
|
|
644
684
|
cors_allowed_origins == o.cors_allowed_origins &&
|
|
645
685
|
enable_anonymous_signins == o.enable_anonymous_signins &&
|
|
@@ -669,7 +709,9 @@ module Volcano::Generated
|
|
|
669
709
|
post_auth_redirect_url == o.post_auth_redirect_url &&
|
|
670
710
|
allowed_redirect_urls == o.allowed_redirect_urls &&
|
|
671
711
|
post_logout_redirect_url == o.post_logout_redirect_url &&
|
|
672
|
-
device_verification_url == o.device_verification_url
|
|
712
|
+
device_verification_url == o.device_verification_url &&
|
|
713
|
+
created_at == o.created_at &&
|
|
714
|
+
updated_at == o.updated_at
|
|
673
715
|
end
|
|
674
716
|
|
|
675
717
|
# @see the `==` method
|
|
@@ -681,7 +723,7 @@ module Volcano::Generated
|
|
|
681
723
|
# Calculates hash code according to all attributes.
|
|
682
724
|
# @return [Integer] Hash code
|
|
683
725
|
def hash
|
|
684
|
-
[project_id, access_token_lifetime, refresh_token_lifetime, inactivity_timeout, max_session_duration, min_password_length, password_policy, require_uppercase, require_lowercase, require_numbers, require_special_chars, enable_signup, enable_email_password, rate_limit_signup, rate_limit_signin, rate_limit_token_refresh, cors_enabled, cors_allowed_origins, enable_anonymous_signins, allowed_email_domains, allowed_email_domains_mode, platform_token_ttl, allow_password_reset, password_reset_timeout, max_password_history, cors_allow_credentials, cors_max_age, require_email_confirmation, email_confirmation_timeout, auto_link_verified_oauth, email_enabled, email_from_address, email_from_name, smtp_host, smtp_port, smtp_username, smtp_password_configured, smtp_use_tls, email_confirmation_subject, email_password_reset_subject, email_password_changed_subject, managed_auth_enabled, post_auth_redirect_url, allowed_redirect_urls, post_logout_redirect_url, device_verification_url].hash
|
|
726
|
+
[project_id, access_token_lifetime, refresh_token_lifetime, refresh_token_reuse_interval, inactivity_timeout, max_session_duration, min_password_length, password_policy, require_uppercase, require_lowercase, require_numbers, require_special_chars, enable_signup, enable_email_password, rate_limit_signup, rate_limit_signin, rate_limit_token_refresh, rate_limit_password_reset, cors_enabled, cors_allowed_origins, enable_anonymous_signins, allowed_email_domains, allowed_email_domains_mode, platform_token_ttl, allow_password_reset, password_reset_timeout, max_password_history, cors_allow_credentials, cors_max_age, require_email_confirmation, email_confirmation_timeout, auto_link_verified_oauth, email_enabled, email_from_address, email_from_name, smtp_host, smtp_port, smtp_username, smtp_password_configured, smtp_use_tls, email_confirmation_subject, email_password_reset_subject, email_password_changed_subject, managed_auth_enabled, post_auth_redirect_url, allowed_redirect_urls, post_logout_redirect_url, device_verification_url, created_at, updated_at].hash
|
|
685
727
|
end
|
|
686
728
|
|
|
687
729
|
# Builds the object from hash
|