zitadel-client 1.5.1 → 1.6.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/lib/zitadel/client/api/action_service_api.rb +670 -0
- data/lib/zitadel/client/api/settings_service_api.rb +125 -0
- data/lib/zitadel/client/api/web_key_service_api.rb +273 -0
- data/lib/zitadel/client/models/action_service_beta_condition.rb +257 -0
- data/lib/zitadel/client/models/action_service_beta_create_target_response.rb +251 -0
- data/lib/zitadel/client/models/action_service_beta_delete_target_response.rb +231 -0
- data/lib/zitadel/client/models/action_service_beta_event_execution.rb +307 -0
- data/lib/zitadel/client/models/action_service_beta_execution.rb +262 -0
- data/lib/zitadel/client/models/action_service_beta_execution_target_type.rb +240 -0
- data/lib/zitadel/client/models/action_service_beta_function_execution.rb +230 -0
- data/lib/zitadel/client/models/action_service_beta_get_target_response.rb +230 -0
- data/lib/zitadel/client/models/action_service_beta_in_target_i_ds_filter.rb +233 -0
- data/lib/zitadel/client/models/action_service_beta_list_execution_functions_response.rb +232 -0
- data/lib/zitadel/client/models/action_service_beta_list_execution_methods_response.rb +232 -0
- data/lib/zitadel/client/models/action_service_beta_list_execution_services_response.rb +232 -0
- data/lib/zitadel/client/models/action_service_beta_list_executions_response.rb +241 -0
- data/lib/zitadel/client/models/action_service_beta_list_targets_response.rb +241 -0
- data/lib/zitadel/client/models/action_service_beta_pagination_request.rb +251 -0
- data/lib/zitadel/client/models/action_service_beta_pagination_response.rb +241 -0
- data/lib/zitadel/client/models/action_service_beta_r_e_s_t_call.rb +231 -0
- data/lib/zitadel/client/models/action_service_beta_r_e_s_t_webhook.rb +231 -0
- data/lib/zitadel/client/models/action_service_beta_request_execution.rb +307 -0
- data/lib/zitadel/client/models/action_service_beta_response_execution.rb +307 -0
- data/lib/zitadel/client/models/action_service_beta_set_execution_response.rb +231 -0
- data/lib/zitadel/client/models/action_service_beta_target.rb +315 -0
- data/lib/zitadel/client/models/action_service_beta_target_field_name.rb +48 -0
- data/lib/zitadel/client/models/action_service_beta_target_name_filter.rb +283 -0
- data/lib/zitadel/client/models/action_service_beta_target_search_filter.rb +239 -0
- data/lib/zitadel/client/models/action_service_beta_text_filter_method.rb +47 -0
- data/lib/zitadel/client/models/action_service_beta_update_target_response.rb +241 -0
- data/lib/zitadel/client/models/action_service_create_target_request.rb +332 -0
- data/lib/zitadel/client/models/action_service_list_targets_request.rb +275 -0
- data/lib/zitadel/client/models/action_service_protobuf_any.rb +230 -0
- data/lib/zitadel/client/models/action_service_rpc_status.rb +250 -0
- data/lib/zitadel/client/models/action_service_set_execution_request.rb +242 -0
- data/lib/zitadel/client/models/action_service_update_target_request.rb +342 -0
- data/lib/zitadel/client/models/web_key_service_beta_activate_web_key_response.rb +231 -0
- data/lib/zitadel/client/models/web_key_service_beta_create_web_key_response.rb +241 -0
- data/lib/zitadel/client/models/web_key_service_beta_delete_web_key_response.rb +231 -0
- data/lib/zitadel/client/models/web_key_service_beta_e_c_d_s_a.rb +254 -0
- data/lib/zitadel/client/models/web_key_service_beta_e_c_d_s_a_curve.rb +43 -0
- data/lib/zitadel/client/models/web_key_service_beta_list_web_keys_response.rb +232 -0
- data/lib/zitadel/client/models/web_key_service_beta_r_s_a.rb +265 -0
- data/lib/zitadel/client/models/web_key_service_beta_r_s_a_bits.rb +43 -0
- data/lib/zitadel/client/models/web_key_service_beta_r_s_a_hasher.rb +43 -0
- data/lib/zitadel/client/models/web_key_service_beta_state.rb +44 -0
- data/lib/zitadel/client/models/web_key_service_beta_web_key.rb +289 -0
- data/lib/zitadel/client/models/web_key_service_create_web_key_request.rb +248 -0
- data/lib/zitadel/client/models/web_key_service_protobuf_any.rb +230 -0
- data/lib/zitadel/client/models/web_key_service_rpc_status.rb +250 -0
- data/lib/zitadel/client/version.rb +1 -1
- data/lib/zitadel/client/zitadel.rb +9 -5
- data/sig/lib.rbs +2 -0
- metadata +50 -2
- data/lib/zitadel/client/api/settings_api.rb +0 -147
@@ -0,0 +1,670 @@
|
|
1
|
+
=begin
|
2
|
+
#Zitadel SDK
|
3
|
+
|
4
|
+
#The Zitadel SDK is a convenience wrapper around the Zitadel APIs to assist you in integrating with your Zitadel environment. This SDK enables you to handle resources, settings, and configurations within the Zitadel platform.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
Generator version: 7.12.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module Zitadel::Client::Api
|
16
|
+
class ActionServiceApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Create Target
|
23
|
+
# Create a new target to your endpoint, which can be used in executions. Required permission: - `action.target.write` Required feature flag: - `actions`
|
24
|
+
# @param action_service_create_target_request [ActionServiceCreateTargetRequest]
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [ActionServiceBetaCreateTargetResponse]
|
27
|
+
def action_service_create_target(action_service_create_target_request, opts = {})
|
28
|
+
data, _status_code, _headers = action_service_create_target_with_http_info(action_service_create_target_request, opts)
|
29
|
+
data
|
30
|
+
end
|
31
|
+
|
32
|
+
# Create Target
|
33
|
+
# Create a new target to your endpoint, which can be used in executions. Required permission: - `action.target.write` Required feature flag: - `actions`
|
34
|
+
# @param action_service_create_target_request [ActionServiceCreateTargetRequest]
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @return [Array<(ActionServiceBetaCreateTargetResponse, Integer, Hash)>] ActionServiceBetaCreateTargetResponse data, response status code and response headers
|
37
|
+
def action_service_create_target_with_http_info(action_service_create_target_request, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: Api::ActionServiceApi.action_service_create_target ...' # MODIFIED
|
40
|
+
end
|
41
|
+
# verify the required parameter 'action_service_create_target_request' is set
|
42
|
+
if @api_client.config.client_side_validation && action_service_create_target_request.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'action_service_create_target_request' when calling Api::ActionServiceApi.action_service_create_target" # MODIFIED
|
44
|
+
end
|
45
|
+
# resource path
|
46
|
+
local_var_path = '/v2beta/actions/targets'
|
47
|
+
|
48
|
+
# query parameters
|
49
|
+
query_params = opts[:query_params] || {}
|
50
|
+
|
51
|
+
# header parameters
|
52
|
+
header_params = opts[:header_params] || {}
|
53
|
+
# HTTP header 'Accept' (if needed)
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
55
|
+
# HTTP header 'Content-Type'
|
56
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
57
|
+
if !content_type.nil?
|
58
|
+
header_params['Content-Type'] = content_type
|
59
|
+
end
|
60
|
+
|
61
|
+
# form parameters
|
62
|
+
form_params = opts[:form_params] || {}
|
63
|
+
|
64
|
+
# http body (model)
|
65
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(action_service_create_target_request)
|
66
|
+
|
67
|
+
# return_type
|
68
|
+
return_type = opts[:debug_return_type] || 'ActionServiceBetaCreateTargetResponse'
|
69
|
+
|
70
|
+
# auth_names
|
71
|
+
auth_names = opts[:debug_auth_names] || ['zitadelAccessToken']
|
72
|
+
|
73
|
+
new_options = opts.merge(
|
74
|
+
:operation => :"Api::ActionServiceApi.action_service_create_target", # MODIFIED
|
75
|
+
:header_params => header_params,
|
76
|
+
:query_params => query_params,
|
77
|
+
:form_params => form_params,
|
78
|
+
:body => post_body,
|
79
|
+
:auth_names => auth_names,
|
80
|
+
:return_type => return_type
|
81
|
+
)
|
82
|
+
|
83
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
84
|
+
if @api_client.config.debugging
|
85
|
+
@api_client.config.logger.debug "API called: Api::ActionServiceApi#action_service_create_target\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" # MODIFIED
|
86
|
+
end
|
87
|
+
return data, status_code, headers
|
88
|
+
end
|
89
|
+
|
90
|
+
# Delete Target
|
91
|
+
# Delete an existing target. This will remove it from any configured execution as well. In case the target is not found, the request will return a successful response as the desired state is already achieved. Required permission: - `action.target.delete` Required feature flag: - `actions`
|
92
|
+
# @param id [String]
|
93
|
+
# @param [Hash] opts the optional parameters
|
94
|
+
# @return [ActionServiceBetaDeleteTargetResponse]
|
95
|
+
def action_service_delete_target(id, opts = {})
|
96
|
+
data, _status_code, _headers = action_service_delete_target_with_http_info(id, opts)
|
97
|
+
data
|
98
|
+
end
|
99
|
+
|
100
|
+
# Delete Target
|
101
|
+
# Delete an existing target. This will remove it from any configured execution as well. In case the target is not found, the request will return a successful response as the desired state is already achieved. Required permission: - `action.target.delete` Required feature flag: - `actions`
|
102
|
+
# @param id [String]
|
103
|
+
# @param [Hash] opts the optional parameters
|
104
|
+
# @return [Array<(ActionServiceBetaDeleteTargetResponse, Integer, Hash)>] ActionServiceBetaDeleteTargetResponse data, response status code and response headers
|
105
|
+
def action_service_delete_target_with_http_info(id, opts = {})
|
106
|
+
if @api_client.config.debugging
|
107
|
+
@api_client.config.logger.debug 'Calling API: Api::ActionServiceApi.action_service_delete_target ...' # MODIFIED
|
108
|
+
end
|
109
|
+
# verify the required parameter 'id' is set
|
110
|
+
if @api_client.config.client_side_validation && id.nil?
|
111
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling Api::ActionServiceApi.action_service_delete_target" # MODIFIED
|
112
|
+
end
|
113
|
+
# resource path
|
114
|
+
local_var_path = '/v2beta/actions/targets/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
115
|
+
|
116
|
+
# query parameters
|
117
|
+
query_params = opts[:query_params] || {}
|
118
|
+
|
119
|
+
# header parameters
|
120
|
+
header_params = opts[:header_params] || {}
|
121
|
+
# HTTP header 'Accept' (if needed)
|
122
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
123
|
+
|
124
|
+
# form parameters
|
125
|
+
form_params = opts[:form_params] || {}
|
126
|
+
|
127
|
+
# http body (model)
|
128
|
+
post_body = opts[:debug_body]
|
129
|
+
|
130
|
+
# return_type
|
131
|
+
return_type = opts[:debug_return_type] || 'ActionServiceBetaDeleteTargetResponse'
|
132
|
+
|
133
|
+
# auth_names
|
134
|
+
auth_names = opts[:debug_auth_names] || ['zitadelAccessToken']
|
135
|
+
|
136
|
+
new_options = opts.merge(
|
137
|
+
:operation => :"Api::ActionServiceApi.action_service_delete_target", # MODIFIED
|
138
|
+
:header_params => header_params,
|
139
|
+
:query_params => query_params,
|
140
|
+
:form_params => form_params,
|
141
|
+
:body => post_body,
|
142
|
+
:auth_names => auth_names,
|
143
|
+
:return_type => return_type
|
144
|
+
)
|
145
|
+
|
146
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
147
|
+
if @api_client.config.debugging
|
148
|
+
@api_client.config.logger.debug "API called: Api::ActionServiceApi#action_service_delete_target\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" # MODIFIED
|
149
|
+
end
|
150
|
+
return data, status_code, headers
|
151
|
+
end
|
152
|
+
|
153
|
+
# Get Target
|
154
|
+
# Returns the target identified by the requested ID. Required permission: - `action.target.read` Required feature flag: - `actions`
|
155
|
+
# @param id [String]
|
156
|
+
# @param [Hash] opts the optional parameters
|
157
|
+
# @return [ActionServiceBetaGetTargetResponse]
|
158
|
+
def action_service_get_target(id, opts = {})
|
159
|
+
data, _status_code, _headers = action_service_get_target_with_http_info(id, opts)
|
160
|
+
data
|
161
|
+
end
|
162
|
+
|
163
|
+
# Get Target
|
164
|
+
# Returns the target identified by the requested ID. Required permission: - `action.target.read` Required feature flag: - `actions`
|
165
|
+
# @param id [String]
|
166
|
+
# @param [Hash] opts the optional parameters
|
167
|
+
# @return [Array<(ActionServiceBetaGetTargetResponse, Integer, Hash)>] ActionServiceBetaGetTargetResponse data, response status code and response headers
|
168
|
+
def action_service_get_target_with_http_info(id, opts = {})
|
169
|
+
if @api_client.config.debugging
|
170
|
+
@api_client.config.logger.debug 'Calling API: Api::ActionServiceApi.action_service_get_target ...' # MODIFIED
|
171
|
+
end
|
172
|
+
# verify the required parameter 'id' is set
|
173
|
+
if @api_client.config.client_side_validation && id.nil?
|
174
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling Api::ActionServiceApi.action_service_get_target" # MODIFIED
|
175
|
+
end
|
176
|
+
# resource path
|
177
|
+
local_var_path = '/v2beta/actions/targets/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
178
|
+
|
179
|
+
# query parameters
|
180
|
+
query_params = opts[:query_params] || {}
|
181
|
+
|
182
|
+
# header parameters
|
183
|
+
header_params = opts[:header_params] || {}
|
184
|
+
# HTTP header 'Accept' (if needed)
|
185
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
186
|
+
|
187
|
+
# form parameters
|
188
|
+
form_params = opts[:form_params] || {}
|
189
|
+
|
190
|
+
# http body (model)
|
191
|
+
post_body = opts[:debug_body]
|
192
|
+
|
193
|
+
# return_type
|
194
|
+
return_type = opts[:debug_return_type] || 'ActionServiceBetaGetTargetResponse'
|
195
|
+
|
196
|
+
# auth_names
|
197
|
+
auth_names = opts[:debug_auth_names] || ['zitadelAccessToken']
|
198
|
+
|
199
|
+
new_options = opts.merge(
|
200
|
+
:operation => :"Api::ActionServiceApi.action_service_get_target", # MODIFIED
|
201
|
+
:header_params => header_params,
|
202
|
+
:query_params => query_params,
|
203
|
+
:form_params => form_params,
|
204
|
+
:body => post_body,
|
205
|
+
:auth_names => auth_names,
|
206
|
+
:return_type => return_type
|
207
|
+
)
|
208
|
+
|
209
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
210
|
+
if @api_client.config.debugging
|
211
|
+
@api_client.config.logger.debug "API called: Api::ActionServiceApi#action_service_get_target\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" # MODIFIED
|
212
|
+
end
|
213
|
+
return data, status_code, headers
|
214
|
+
end
|
215
|
+
|
216
|
+
# List Execution Functions
|
217
|
+
# List all available functions which can be used as condition for executions.
|
218
|
+
# @param [Hash] opts the optional parameters
|
219
|
+
# @return [ActionServiceBetaListExecutionFunctionsResponse]
|
220
|
+
def action_service_list_execution_functions(opts = {})
|
221
|
+
data, _status_code, _headers = action_service_list_execution_functions_with_http_info(opts)
|
222
|
+
data
|
223
|
+
end
|
224
|
+
|
225
|
+
# List Execution Functions
|
226
|
+
# List all available functions which can be used as condition for executions.
|
227
|
+
# @param [Hash] opts the optional parameters
|
228
|
+
# @return [Array<(ActionServiceBetaListExecutionFunctionsResponse, Integer, Hash)>] ActionServiceBetaListExecutionFunctionsResponse data, response status code and response headers
|
229
|
+
def action_service_list_execution_functions_with_http_info(opts = {})
|
230
|
+
if @api_client.config.debugging
|
231
|
+
@api_client.config.logger.debug 'Calling API: Api::ActionServiceApi.action_service_list_execution_functions ...' # MODIFIED
|
232
|
+
end
|
233
|
+
# resource path
|
234
|
+
local_var_path = '/v2beta/actions/executions/functions'
|
235
|
+
|
236
|
+
# query parameters
|
237
|
+
query_params = opts[:query_params] || {}
|
238
|
+
|
239
|
+
# header parameters
|
240
|
+
header_params = opts[:header_params] || {}
|
241
|
+
# HTTP header 'Accept' (if needed)
|
242
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
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] || 'ActionServiceBetaListExecutionFunctionsResponse'
|
252
|
+
|
253
|
+
# auth_names
|
254
|
+
auth_names = opts[:debug_auth_names] || ['zitadelAccessToken']
|
255
|
+
|
256
|
+
new_options = opts.merge(
|
257
|
+
:operation => :"Api::ActionServiceApi.action_service_list_execution_functions", # MODIFIED
|
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(:GET, local_var_path, new_options)
|
267
|
+
if @api_client.config.debugging
|
268
|
+
@api_client.config.logger.debug "API called: Api::ActionServiceApi#action_service_list_execution_functions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" # MODIFIED
|
269
|
+
end
|
270
|
+
return data, status_code, headers
|
271
|
+
end
|
272
|
+
|
273
|
+
# List Execution Methods
|
274
|
+
# List all available methods which can be used as condition for executions.
|
275
|
+
# @param [Hash] opts the optional parameters
|
276
|
+
# @return [ActionServiceBetaListExecutionMethodsResponse]
|
277
|
+
def action_service_list_execution_methods(opts = {})
|
278
|
+
data, _status_code, _headers = action_service_list_execution_methods_with_http_info(opts)
|
279
|
+
data
|
280
|
+
end
|
281
|
+
|
282
|
+
# List Execution Methods
|
283
|
+
# List all available methods which can be used as condition for executions.
|
284
|
+
# @param [Hash] opts the optional parameters
|
285
|
+
# @return [Array<(ActionServiceBetaListExecutionMethodsResponse, Integer, Hash)>] ActionServiceBetaListExecutionMethodsResponse data, response status code and response headers
|
286
|
+
def action_service_list_execution_methods_with_http_info(opts = {})
|
287
|
+
if @api_client.config.debugging
|
288
|
+
@api_client.config.logger.debug 'Calling API: Api::ActionServiceApi.action_service_list_execution_methods ...' # MODIFIED
|
289
|
+
end
|
290
|
+
# resource path
|
291
|
+
local_var_path = '/v2beta/actions/executions/methods'
|
292
|
+
|
293
|
+
# query parameters
|
294
|
+
query_params = opts[:query_params] || {}
|
295
|
+
|
296
|
+
# header parameters
|
297
|
+
header_params = opts[:header_params] || {}
|
298
|
+
# HTTP header 'Accept' (if needed)
|
299
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
300
|
+
|
301
|
+
# form parameters
|
302
|
+
form_params = opts[:form_params] || {}
|
303
|
+
|
304
|
+
# http body (model)
|
305
|
+
post_body = opts[:debug_body]
|
306
|
+
|
307
|
+
# return_type
|
308
|
+
return_type = opts[:debug_return_type] || 'ActionServiceBetaListExecutionMethodsResponse'
|
309
|
+
|
310
|
+
# auth_names
|
311
|
+
auth_names = opts[:debug_auth_names] || ['zitadelAccessToken']
|
312
|
+
|
313
|
+
new_options = opts.merge(
|
314
|
+
:operation => :"Api::ActionServiceApi.action_service_list_execution_methods", # MODIFIED
|
315
|
+
:header_params => header_params,
|
316
|
+
:query_params => query_params,
|
317
|
+
:form_params => form_params,
|
318
|
+
:body => post_body,
|
319
|
+
:auth_names => auth_names,
|
320
|
+
:return_type => return_type
|
321
|
+
)
|
322
|
+
|
323
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
324
|
+
if @api_client.config.debugging
|
325
|
+
@api_client.config.logger.debug "API called: Api::ActionServiceApi#action_service_list_execution_methods\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" # MODIFIED
|
326
|
+
end
|
327
|
+
return data, status_code, headers
|
328
|
+
end
|
329
|
+
|
330
|
+
# List Execution Services
|
331
|
+
# List all available services which can be used as condition for executions.
|
332
|
+
# @param [Hash] opts the optional parameters
|
333
|
+
# @return [ActionServiceBetaListExecutionServicesResponse]
|
334
|
+
def action_service_list_execution_services(opts = {})
|
335
|
+
data, _status_code, _headers = action_service_list_execution_services_with_http_info(opts)
|
336
|
+
data
|
337
|
+
end
|
338
|
+
|
339
|
+
# List Execution Services
|
340
|
+
# List all available services which can be used as condition for executions.
|
341
|
+
# @param [Hash] opts the optional parameters
|
342
|
+
# @return [Array<(ActionServiceBetaListExecutionServicesResponse, Integer, Hash)>] ActionServiceBetaListExecutionServicesResponse data, response status code and response headers
|
343
|
+
def action_service_list_execution_services_with_http_info(opts = {})
|
344
|
+
if @api_client.config.debugging
|
345
|
+
@api_client.config.logger.debug 'Calling API: Api::ActionServiceApi.action_service_list_execution_services ...' # MODIFIED
|
346
|
+
end
|
347
|
+
# resource path
|
348
|
+
local_var_path = '/v2beta/actions/executions/services'
|
349
|
+
|
350
|
+
# query parameters
|
351
|
+
query_params = opts[:query_params] || {}
|
352
|
+
|
353
|
+
# header parameters
|
354
|
+
header_params = opts[:header_params] || {}
|
355
|
+
# HTTP header 'Accept' (if needed)
|
356
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
357
|
+
|
358
|
+
# form parameters
|
359
|
+
form_params = opts[:form_params] || {}
|
360
|
+
|
361
|
+
# http body (model)
|
362
|
+
post_body = opts[:debug_body]
|
363
|
+
|
364
|
+
# return_type
|
365
|
+
return_type = opts[:debug_return_type] || 'ActionServiceBetaListExecutionServicesResponse'
|
366
|
+
|
367
|
+
# auth_names
|
368
|
+
auth_names = opts[:debug_auth_names] || ['zitadelAccessToken']
|
369
|
+
|
370
|
+
new_options = opts.merge(
|
371
|
+
:operation => :"Api::ActionServiceApi.action_service_list_execution_services", # MODIFIED
|
372
|
+
:header_params => header_params,
|
373
|
+
:query_params => query_params,
|
374
|
+
:form_params => form_params,
|
375
|
+
:body => post_body,
|
376
|
+
:auth_names => auth_names,
|
377
|
+
:return_type => return_type
|
378
|
+
)
|
379
|
+
|
380
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
381
|
+
if @api_client.config.debugging
|
382
|
+
@api_client.config.logger.debug "API called: Api::ActionServiceApi#action_service_list_execution_services\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" # MODIFIED
|
383
|
+
end
|
384
|
+
return data, status_code, headers
|
385
|
+
end
|
386
|
+
|
387
|
+
# List Executions
|
388
|
+
# List all matching executions. By default all executions of the instance are returned that have at least one execution target. Make sure to include a limit and sorting for pagination. Required permission: - `action.execution.read` Required feature flag: - `actions`
|
389
|
+
# @param [Hash] opts the optional parameters
|
390
|
+
# @option opts [String] :pagination_offset Starting point for retrieval, in combination of offset used to query a set list of objects.
|
391
|
+
# @option opts [Integer] :pagination_limit limit is the maximum amount of objects returned. The default is set to 100 with a maximum of 1000 in the runtime configuration. If the limit exceeds the maximum configured ZITADEL will throw an error. If no limit is present the default is taken.
|
392
|
+
# @option opts [Boolean] :pagination_asc Asc is the sorting order. If true the list is sorted ascending, if false the list is sorted descending. The default is descending.
|
393
|
+
# @option opts [String] :sorting_column The field the result is sorted by. The default is the creation date. Beware that if you change this, your result pagination might be inconsistent. (default to 'EXECUTION_FIELD_NAME_UNSPECIFIED')
|
394
|
+
# @return [ActionServiceBetaListExecutionsResponse]
|
395
|
+
def action_service_list_executions(opts = {})
|
396
|
+
data, _status_code, _headers = action_service_list_executions_with_http_info(opts)
|
397
|
+
data
|
398
|
+
end
|
399
|
+
|
400
|
+
# List Executions
|
401
|
+
# List all matching executions. By default all executions of the instance are returned that have at least one execution target. Make sure to include a limit and sorting for pagination. Required permission: - `action.execution.read` Required feature flag: - `actions`
|
402
|
+
# @param [Hash] opts the optional parameters
|
403
|
+
# @option opts [String] :pagination_offset Starting point for retrieval, in combination of offset used to query a set list of objects.
|
404
|
+
# @option opts [Integer] :pagination_limit limit is the maximum amount of objects returned. The default is set to 100 with a maximum of 1000 in the runtime configuration. If the limit exceeds the maximum configured ZITADEL will throw an error. If no limit is present the default is taken.
|
405
|
+
# @option opts [Boolean] :pagination_asc Asc is the sorting order. If true the list is sorted ascending, if false the list is sorted descending. The default is descending.
|
406
|
+
# @option opts [String] :sorting_column The field the result is sorted by. The default is the creation date. Beware that if you change this, your result pagination might be inconsistent. (default to 'EXECUTION_FIELD_NAME_UNSPECIFIED')
|
407
|
+
# @return [Array<(ActionServiceBetaListExecutionsResponse, Integer, Hash)>] ActionServiceBetaListExecutionsResponse data, response status code and response headers
|
408
|
+
def action_service_list_executions_with_http_info(opts = {})
|
409
|
+
if @api_client.config.debugging
|
410
|
+
@api_client.config.logger.debug 'Calling API: Api::ActionServiceApi.action_service_list_executions ...' # MODIFIED
|
411
|
+
end
|
412
|
+
allowable_values = ["EXECUTION_FIELD_NAME_UNSPECIFIED", "EXECUTION_FIELD_NAME_ID", "EXECUTION_FIELD_NAME_CREATED_DATE", "EXECUTION_FIELD_NAME_CHANGED_DATE"]
|
413
|
+
if @api_client.config.client_side_validation && opts[:'sorting_column'] && !allowable_values.include?(opts[:'sorting_column'])
|
414
|
+
fail ArgumentError, "invalid value for \"sorting_column\", must be one of #{allowable_values}"
|
415
|
+
end
|
416
|
+
# resource path
|
417
|
+
local_var_path = '/v2beta/actions/executions/_search'
|
418
|
+
|
419
|
+
# query parameters
|
420
|
+
query_params = opts[:query_params] || {}
|
421
|
+
query_params[:'pagination.offset'] = opts[:'pagination_offset'] if !opts[:'pagination_offset'].nil?
|
422
|
+
query_params[:'pagination.limit'] = opts[:'pagination_limit'] if !opts[:'pagination_limit'].nil?
|
423
|
+
query_params[:'pagination.asc'] = opts[:'pagination_asc'] if !opts[:'pagination_asc'].nil?
|
424
|
+
query_params[:'sortingColumn'] = opts[:'sorting_column'] if !opts[:'sorting_column'].nil?
|
425
|
+
|
426
|
+
# header parameters
|
427
|
+
header_params = opts[:header_params] || {}
|
428
|
+
# HTTP header 'Accept' (if needed)
|
429
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
430
|
+
|
431
|
+
# form parameters
|
432
|
+
form_params = opts[:form_params] || {}
|
433
|
+
|
434
|
+
# http body (model)
|
435
|
+
post_body = opts[:debug_body]
|
436
|
+
|
437
|
+
# return_type
|
438
|
+
return_type = opts[:debug_return_type] || 'ActionServiceBetaListExecutionsResponse'
|
439
|
+
|
440
|
+
# auth_names
|
441
|
+
auth_names = opts[:debug_auth_names] || ['zitadelAccessToken']
|
442
|
+
|
443
|
+
new_options = opts.merge(
|
444
|
+
:operation => :"Api::ActionServiceApi.action_service_list_executions", # MODIFIED
|
445
|
+
:header_params => header_params,
|
446
|
+
:query_params => query_params,
|
447
|
+
:form_params => form_params,
|
448
|
+
:body => post_body,
|
449
|
+
:auth_names => auth_names,
|
450
|
+
:return_type => return_type
|
451
|
+
)
|
452
|
+
|
453
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
454
|
+
if @api_client.config.debugging
|
455
|
+
@api_client.config.logger.debug "API called: Api::ActionServiceApi#action_service_list_executions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" # MODIFIED
|
456
|
+
end
|
457
|
+
return data, status_code, headers
|
458
|
+
end
|
459
|
+
|
460
|
+
# List targets
|
461
|
+
# List all matching targets. By default all targets of the instance are returned. Make sure to include a limit and sorting for pagination. Required permission: - `action.target.read` Required feature flag: - `actions`
|
462
|
+
# @param action_service_list_targets_request [ActionServiceListTargetsRequest]
|
463
|
+
# @param [Hash] opts the optional parameters
|
464
|
+
# @return [ActionServiceBetaListTargetsResponse]
|
465
|
+
def action_service_list_targets(action_service_list_targets_request, opts = {})
|
466
|
+
data, _status_code, _headers = action_service_list_targets_with_http_info(action_service_list_targets_request, opts)
|
467
|
+
data
|
468
|
+
end
|
469
|
+
|
470
|
+
# List targets
|
471
|
+
# List all matching targets. By default all targets of the instance are returned. Make sure to include a limit and sorting for pagination. Required permission: - `action.target.read` Required feature flag: - `actions`
|
472
|
+
# @param action_service_list_targets_request [ActionServiceListTargetsRequest]
|
473
|
+
# @param [Hash] opts the optional parameters
|
474
|
+
# @return [Array<(ActionServiceBetaListTargetsResponse, Integer, Hash)>] ActionServiceBetaListTargetsResponse data, response status code and response headers
|
475
|
+
def action_service_list_targets_with_http_info(action_service_list_targets_request, opts = {})
|
476
|
+
if @api_client.config.debugging
|
477
|
+
@api_client.config.logger.debug 'Calling API: Api::ActionServiceApi.action_service_list_targets ...' # MODIFIED
|
478
|
+
end
|
479
|
+
# verify the required parameter 'action_service_list_targets_request' is set
|
480
|
+
if @api_client.config.client_side_validation && action_service_list_targets_request.nil?
|
481
|
+
fail ArgumentError, "Missing the required parameter 'action_service_list_targets_request' when calling Api::ActionServiceApi.action_service_list_targets" # MODIFIED
|
482
|
+
end
|
483
|
+
# resource path
|
484
|
+
local_var_path = '/v2beta/actions/targets/_search'
|
485
|
+
|
486
|
+
# query parameters
|
487
|
+
query_params = opts[:query_params] || {}
|
488
|
+
|
489
|
+
# header parameters
|
490
|
+
header_params = opts[:header_params] || {}
|
491
|
+
# HTTP header 'Accept' (if needed)
|
492
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
493
|
+
# HTTP header 'Content-Type'
|
494
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
495
|
+
if !content_type.nil?
|
496
|
+
header_params['Content-Type'] = content_type
|
497
|
+
end
|
498
|
+
|
499
|
+
# form parameters
|
500
|
+
form_params = opts[:form_params] || {}
|
501
|
+
|
502
|
+
# http body (model)
|
503
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(action_service_list_targets_request)
|
504
|
+
|
505
|
+
# return_type
|
506
|
+
return_type = opts[:debug_return_type] || 'ActionServiceBetaListTargetsResponse'
|
507
|
+
|
508
|
+
# auth_names
|
509
|
+
auth_names = opts[:debug_auth_names] || ['zitadelAccessToken']
|
510
|
+
|
511
|
+
new_options = opts.merge(
|
512
|
+
:operation => :"Api::ActionServiceApi.action_service_list_targets", # MODIFIED
|
513
|
+
:header_params => header_params,
|
514
|
+
:query_params => query_params,
|
515
|
+
:form_params => form_params,
|
516
|
+
:body => post_body,
|
517
|
+
:auth_names => auth_names,
|
518
|
+
:return_type => return_type
|
519
|
+
)
|
520
|
+
|
521
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
522
|
+
if @api_client.config.debugging
|
523
|
+
@api_client.config.logger.debug "API called: Api::ActionServiceApi#action_service_list_targets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" # MODIFIED
|
524
|
+
end
|
525
|
+
return data, status_code, headers
|
526
|
+
end
|
527
|
+
|
528
|
+
# Set Execution
|
529
|
+
# Sets an execution to call a target or include the targets of another execution. Setting an empty list of targets will remove all targets from the execution, making it a noop. Required permission: - `action.execution.write` Required feature flag: - `actions`
|
530
|
+
# @param action_service_set_execution_request [ActionServiceSetExecutionRequest]
|
531
|
+
# @param [Hash] opts the optional parameters
|
532
|
+
# @return [ActionServiceBetaSetExecutionResponse]
|
533
|
+
def action_service_set_execution(action_service_set_execution_request, opts = {})
|
534
|
+
data, _status_code, _headers = action_service_set_execution_with_http_info(action_service_set_execution_request, opts)
|
535
|
+
data
|
536
|
+
end
|
537
|
+
|
538
|
+
# Set Execution
|
539
|
+
# Sets an execution to call a target or include the targets of another execution. Setting an empty list of targets will remove all targets from the execution, making it a noop. Required permission: - `action.execution.write` Required feature flag: - `actions`
|
540
|
+
# @param action_service_set_execution_request [ActionServiceSetExecutionRequest]
|
541
|
+
# @param [Hash] opts the optional parameters
|
542
|
+
# @return [Array<(ActionServiceBetaSetExecutionResponse, Integer, Hash)>] ActionServiceBetaSetExecutionResponse data, response status code and response headers
|
543
|
+
def action_service_set_execution_with_http_info(action_service_set_execution_request, opts = {})
|
544
|
+
if @api_client.config.debugging
|
545
|
+
@api_client.config.logger.debug 'Calling API: Api::ActionServiceApi.action_service_set_execution ...' # MODIFIED
|
546
|
+
end
|
547
|
+
# verify the required parameter 'action_service_set_execution_request' is set
|
548
|
+
if @api_client.config.client_side_validation && action_service_set_execution_request.nil?
|
549
|
+
fail ArgumentError, "Missing the required parameter 'action_service_set_execution_request' when calling Api::ActionServiceApi.action_service_set_execution" # MODIFIED
|
550
|
+
end
|
551
|
+
# resource path
|
552
|
+
local_var_path = '/v2beta/actions/executions'
|
553
|
+
|
554
|
+
# query parameters
|
555
|
+
query_params = opts[:query_params] || {}
|
556
|
+
|
557
|
+
# header parameters
|
558
|
+
header_params = opts[:header_params] || {}
|
559
|
+
# HTTP header 'Accept' (if needed)
|
560
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
561
|
+
# HTTP header 'Content-Type'
|
562
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
563
|
+
if !content_type.nil?
|
564
|
+
header_params['Content-Type'] = content_type
|
565
|
+
end
|
566
|
+
|
567
|
+
# form parameters
|
568
|
+
form_params = opts[:form_params] || {}
|
569
|
+
|
570
|
+
# http body (model)
|
571
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(action_service_set_execution_request)
|
572
|
+
|
573
|
+
# return_type
|
574
|
+
return_type = opts[:debug_return_type] || 'ActionServiceBetaSetExecutionResponse'
|
575
|
+
|
576
|
+
# auth_names
|
577
|
+
auth_names = opts[:debug_auth_names] || ['zitadelAccessToken']
|
578
|
+
|
579
|
+
new_options = opts.merge(
|
580
|
+
:operation => :"Api::ActionServiceApi.action_service_set_execution", # MODIFIED
|
581
|
+
:header_params => header_params,
|
582
|
+
:query_params => query_params,
|
583
|
+
:form_params => form_params,
|
584
|
+
:body => post_body,
|
585
|
+
:auth_names => auth_names,
|
586
|
+
:return_type => return_type
|
587
|
+
)
|
588
|
+
|
589
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
590
|
+
if @api_client.config.debugging
|
591
|
+
@api_client.config.logger.debug "API called: Api::ActionServiceApi#action_service_set_execution\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" # MODIFIED
|
592
|
+
end
|
593
|
+
return data, status_code, headers
|
594
|
+
end
|
595
|
+
|
596
|
+
# Update Target
|
597
|
+
# Update an existing target. To generate a new signing key set the optional expirationSigningKey. Required permission: - `action.target.write` Required feature flag: - `actions`
|
598
|
+
# @param id [String]
|
599
|
+
# @param action_service_update_target_request [ActionServiceUpdateTargetRequest]
|
600
|
+
# @param [Hash] opts the optional parameters
|
601
|
+
# @return [ActionServiceBetaUpdateTargetResponse]
|
602
|
+
def action_service_update_target(id, action_service_update_target_request, opts = {})
|
603
|
+
data, _status_code, _headers = action_service_update_target_with_http_info(id, action_service_update_target_request, opts)
|
604
|
+
data
|
605
|
+
end
|
606
|
+
|
607
|
+
# Update Target
|
608
|
+
# Update an existing target. To generate a new signing key set the optional expirationSigningKey. Required permission: - `action.target.write` Required feature flag: - `actions`
|
609
|
+
# @param id [String]
|
610
|
+
# @param action_service_update_target_request [ActionServiceUpdateTargetRequest]
|
611
|
+
# @param [Hash] opts the optional parameters
|
612
|
+
# @return [Array<(ActionServiceBetaUpdateTargetResponse, Integer, Hash)>] ActionServiceBetaUpdateTargetResponse data, response status code and response headers
|
613
|
+
def action_service_update_target_with_http_info(id, action_service_update_target_request, opts = {})
|
614
|
+
if @api_client.config.debugging
|
615
|
+
@api_client.config.logger.debug 'Calling API: Api::ActionServiceApi.action_service_update_target ...' # MODIFIED
|
616
|
+
end
|
617
|
+
# verify the required parameter 'id' is set
|
618
|
+
if @api_client.config.client_side_validation && id.nil?
|
619
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling Api::ActionServiceApi.action_service_update_target" # MODIFIED
|
620
|
+
end
|
621
|
+
# verify the required parameter 'action_service_update_target_request' is set
|
622
|
+
if @api_client.config.client_side_validation && action_service_update_target_request.nil?
|
623
|
+
fail ArgumentError, "Missing the required parameter 'action_service_update_target_request' when calling Api::ActionServiceApi.action_service_update_target" # MODIFIED
|
624
|
+
end
|
625
|
+
# resource path
|
626
|
+
local_var_path = '/v2beta/actions/targets/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
627
|
+
|
628
|
+
# query parameters
|
629
|
+
query_params = opts[:query_params] || {}
|
630
|
+
|
631
|
+
# header parameters
|
632
|
+
header_params = opts[:header_params] || {}
|
633
|
+
# HTTP header 'Accept' (if needed)
|
634
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
635
|
+
# HTTP header 'Content-Type'
|
636
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
637
|
+
if !content_type.nil?
|
638
|
+
header_params['Content-Type'] = content_type
|
639
|
+
end
|
640
|
+
|
641
|
+
# form parameters
|
642
|
+
form_params = opts[:form_params] || {}
|
643
|
+
|
644
|
+
# http body (model)
|
645
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(action_service_update_target_request)
|
646
|
+
|
647
|
+
# return_type
|
648
|
+
return_type = opts[:debug_return_type] || 'ActionServiceBetaUpdateTargetResponse'
|
649
|
+
|
650
|
+
# auth_names
|
651
|
+
auth_names = opts[:debug_auth_names] || ['zitadelAccessToken']
|
652
|
+
|
653
|
+
new_options = opts.merge(
|
654
|
+
:operation => :"Api::ActionServiceApi.action_service_update_target", # MODIFIED
|
655
|
+
:header_params => header_params,
|
656
|
+
:query_params => query_params,
|
657
|
+
:form_params => form_params,
|
658
|
+
:body => post_body,
|
659
|
+
:auth_names => auth_names,
|
660
|
+
:return_type => return_type
|
661
|
+
)
|
662
|
+
|
663
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
664
|
+
if @api_client.config.debugging
|
665
|
+
@api_client.config.logger.debug "API called: Api::ActionServiceApi#action_service_update_target\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" # MODIFIED
|
666
|
+
end
|
667
|
+
return data, status_code, headers
|
668
|
+
end
|
669
|
+
end
|
670
|
+
end
|