composio 0.1.0 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,6 +18,8 @@ module Composio
18
18
 
19
19
  # Execute action
20
20
  #
21
+ # Execute an action. Support both connected account and no auth auth.
22
+ #
21
23
  # @param action_id [String]
22
24
  # @param connected_account_id [String]
23
25
  # @param app_name [String]
@@ -42,6 +44,8 @@ module Composio
42
44
 
43
45
  # Execute action
44
46
  #
47
+ # Execute an action. Support both connected account and no auth auth.
48
+ #
45
49
  # @param action_id [String]
46
50
  # @param connected_account_id [String]
47
51
  # @param app_name [String]
@@ -64,6 +68,7 @@ module Composio
64
68
  end
65
69
 
66
70
  # Execute action
71
+ # Execute an action. Support both connected account and no auth auth.
67
72
  # @param action_id [String]
68
73
  # @param [Hash] opts the optional parameters
69
74
  # @option opts [ActionExecutionReqDTO] :action_execution_req_dto ActionExecutionReqDTO
@@ -74,6 +79,7 @@ module Composio
74
79
  end
75
80
 
76
81
  # Execute action
82
+ # Execute an action. Support both connected account and no auth auth.
77
83
  # @param action_id [String]
78
84
  # @param [Hash] opts the optional parameters
79
85
  # @option opts [ActionExecutionReqDTO] :action_execution_req_dto ActionExecutionReqDTO
@@ -92,7 +98,7 @@ module Composio
92
98
  end
93
99
 
94
100
  # resource path
95
- local_var_path = '/api/v1/actions/{actionId}/execute'.sub('{' + 'actionId' + '}', CGI.escape(action_id.to_s))
101
+ local_var_path = '/api/v2/actions/{actionId}/execute'.sub('{' + 'actionId' + '}', CGI.escape(action_id.to_s))
96
102
 
97
103
  # query parameters
98
104
  query_params = opts[:query_params] || {}
@@ -137,133 +143,6 @@ module Composio
137
143
  end
138
144
 
139
145
 
140
- # Execute action
141
- #
142
- # Execute an action. Support both connected account and no auth auth.
143
- #
144
- # @param action_id [String]
145
- # @param connected_account_id [String]
146
- # @param app_name [String]
147
- # @param entity_id [String]
148
- # @param endpoint [String]
149
- # @param input [Object]
150
- # @param text [String]
151
- # @param body [ActionExecutionReqDTO]
152
- # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
153
- def execute_0(action_id:, connected_account_id: SENTINEL, app_name: SENTINEL, entity_id: SENTINEL, endpoint: SENTINEL, input: SENTINEL, text: SENTINEL, extra: {})
154
- _body = {}
155
- _body[:connectedAccountId] = connected_account_id if connected_account_id != SENTINEL
156
- _body[:appName] = app_name if app_name != SENTINEL
157
- _body[:entityId] = entity_id if entity_id != SENTINEL
158
- _body[:endpoint] = endpoint if endpoint != SENTINEL
159
- _body[:input] = input if input != SENTINEL
160
- _body[:text] = text if text != SENTINEL
161
- extra[:action_execution_req_dto] = _body if !_body.empty?
162
- api_response = execute_0_with_http_info_impl(action_id, extra)
163
- api_response.data
164
- end
165
-
166
- # Execute action
167
- #
168
- # Execute an action. Support both connected account and no auth auth.
169
- #
170
- # @param action_id [String]
171
- # @param connected_account_id [String]
172
- # @param app_name [String]
173
- # @param entity_id [String]
174
- # @param endpoint [String]
175
- # @param input [Object]
176
- # @param text [String]
177
- # @param body [ActionExecutionReqDTO]
178
- # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
179
- def execute_0_with_http_info(action_id:, connected_account_id: SENTINEL, app_name: SENTINEL, entity_id: SENTINEL, endpoint: SENTINEL, input: SENTINEL, text: SENTINEL, extra: {})
180
- _body = {}
181
- _body[:connectedAccountId] = connected_account_id if connected_account_id != SENTINEL
182
- _body[:appName] = app_name if app_name != SENTINEL
183
- _body[:entityId] = entity_id if entity_id != SENTINEL
184
- _body[:endpoint] = endpoint if endpoint != SENTINEL
185
- _body[:input] = input if input != SENTINEL
186
- _body[:text] = text if text != SENTINEL
187
- extra[:action_execution_req_dto] = _body if !_body.empty?
188
- execute_0_with_http_info_impl(action_id, extra)
189
- end
190
-
191
- # Execute action
192
- # Execute an action. Support both connected account and no auth auth.
193
- # @param action_id [String]
194
- # @param [Hash] opts the optional parameters
195
- # @option opts [ActionExecutionReqDTO] :action_execution_req_dto ActionExecutionReqDTO
196
- # @return [ActionExecutionResDto]
197
- private def execute_0_impl(action_id, opts = {})
198
- data, _status_code, _headers = execute_0_with_http_info(action_id, opts)
199
- data
200
- end
201
-
202
- # Execute action
203
- # Execute an action. Support both connected account and no auth auth.
204
- # @param action_id [String]
205
- # @param [Hash] opts the optional parameters
206
- # @option opts [ActionExecutionReqDTO] :action_execution_req_dto ActionExecutionReqDTO
207
- # @return [APIResponse] data is ActionExecutionResDto, status code, headers and response
208
- private def execute_0_with_http_info_impl(action_id, opts = {})
209
- if @api_client.config.debugging
210
- @api_client.config.logger.debug 'Calling API: ActionsApi.execute_0 ...'
211
- end
212
- # verify the required parameter 'action_id' is set
213
- if @api_client.config.client_side_validation && action_id.nil?
214
- fail ArgumentError, "Missing the required parameter 'action_id' when calling ActionsApi.execute_0"
215
- end
216
- pattern = Regexp.new(/[^\/#\?]+?/)
217
- if @api_client.config.client_side_validation && action_id !~ pattern
218
- fail ArgumentError, "invalid value for 'action_id' when calling ActionsApi.execute_0, must conform to the pattern #{pattern}."
219
- end
220
-
221
- # resource path
222
- local_var_path = '/api/v2/actions/{actionId}/execute'.sub('{' + 'actionId' + '}', CGI.escape(action_id.to_s))
223
-
224
- # query parameters
225
- query_params = opts[:query_params] || {}
226
-
227
- # header parameters
228
- header_params = opts[:header_params] || {}
229
- # HTTP header 'Accept' (if needed)
230
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
231
- # HTTP header 'Content-Type'
232
- content_type = @api_client.select_header_content_type(['application/json'])
233
- if !content_type.nil?
234
- header_params['Content-Type'] = content_type
235
- end
236
-
237
- # form parameters
238
- form_params = opts[:form_params] || {}
239
-
240
- # http body (model)
241
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'action_execution_req_dto'])
242
-
243
- # return_type
244
- return_type = opts[:debug_return_type] || 'ActionExecutionResDto'
245
-
246
- # auth_names
247
- auth_names = opts[:debug_auth_names] || ['api_key']
248
-
249
- new_options = opts.merge(
250
- :operation => :"ActionsApi.execute_0",
251
- :header_params => header_params,
252
- :query_params => query_params,
253
- :form_params => form_params,
254
- :body => post_body,
255
- :auth_names => auth_names,
256
- :return_type => return_type
257
- )
258
-
259
- data, status_code, headers, response = @api_client.call_api(:POST, local_var_path, new_options)
260
- if @api_client.config.debugging
261
- @api_client.config.logger.debug "API called: ActionsApi#execute_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
262
- end
263
- APIResponse::new(data, status_code, headers, response)
264
- end
265
-
266
-
267
146
  # Execute action proxy
268
147
  #
269
148
  # Execute an action with direct auth.
@@ -359,140 +238,57 @@ module Composio
359
238
  end
360
239
 
361
240
 
362
- # Execute action proxy
363
- #
364
- # @param endpoint [String]
365
- # @param connected_account_id [String]
366
- # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
367
- def execute_proxy(endpoint:, connected_account_id:, extra: {})
368
- api_response = execute_proxy_with_http_info_impl(endpoint, connected_account_id, extra)
369
- api_response.data
370
- end
371
-
372
- # Execute action proxy
373
- #
374
- # @param endpoint [String]
375
- # @param connected_account_id [String]
376
- # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
377
- def execute_proxy_with_http_info(endpoint:, connected_account_id:, extra: {})
378
- execute_proxy_with_http_info_impl(endpoint, connected_account_id, extra)
379
- end
380
-
381
- # Execute action proxy
382
- # @param endpoint [String]
383
- # @param connected_account_id [String]
384
- # @param [Hash] opts the optional parameters
385
- # @return [ExecuteActionResDTO]
386
- private def execute_proxy_impl(endpoint, connected_account_id, opts = {})
387
- data, _status_code, _headers = execute_proxy_with_http_info(endpoint, connected_account_id, opts)
388
- data
389
- end
390
-
391
- # Execute action proxy
392
- # @param endpoint [String]
393
- # @param connected_account_id [String]
394
- # @param [Hash] opts the optional parameters
395
- # @return [APIResponse] data is ExecuteActionResDTO, status code, headers and response
396
- private def execute_proxy_with_http_info_impl(endpoint, connected_account_id, opts = {})
397
- if @api_client.config.debugging
398
- @api_client.config.logger.debug 'Calling API: ActionsApi.execute_proxy ...'
399
- end
400
- # verify the required parameter 'endpoint' is set
401
- if @api_client.config.client_side_validation && endpoint.nil?
402
- fail ArgumentError, "Missing the required parameter 'endpoint' when calling ActionsApi.execute_proxy"
403
- end
404
- # verify the required parameter 'connected_account_id' is set
405
- if @api_client.config.client_side_validation && connected_account_id.nil?
406
- fail ArgumentError, "Missing the required parameter 'connected_account_id' when calling ActionsApi.execute_proxy"
407
- end
408
- # resource path
409
- local_var_path = '/api/v1/actions/proxy'
410
-
411
- # query parameters
412
- query_params = opts[:query_params] || {}
413
- query_params[:'endpoint'] = endpoint
414
- query_params[:'connectedAccountId'] = connected_account_id
415
-
416
- # header parameters
417
- header_params = opts[:header_params] || {}
418
- # HTTP header 'Accept' (if needed)
419
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
420
-
421
- # form parameters
422
- form_params = opts[:form_params] || {}
423
-
424
- # http body (model)
425
- post_body = opts[:debug_body]
426
-
427
- # return_type
428
- return_type = opts[:debug_return_type] || 'ExecuteActionResDTO'
429
-
430
- # auth_names
431
- auth_names = opts[:debug_auth_names] || ['api_key']
432
-
433
- new_options = opts.merge(
434
- :operation => :"ActionsApi.execute_proxy",
435
- :header_params => header_params,
436
- :query_params => query_params,
437
- :form_params => form_params,
438
- :body => post_body,
439
- :auth_names => auth_names,
440
- :return_type => return_type
441
- )
442
-
443
- data, status_code, headers, response = @api_client.call_api(:POST, local_var_path, new_options)
444
- if @api_client.config.debugging
445
- @api_client.config.logger.debug "API called: ActionsApi#execute_proxy\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
446
- end
447
- APIResponse::new(data, status_code, headers, response)
448
- end
449
-
450
-
451
241
  # Get action
452
242
  #
243
+ # Get action details
244
+ #
453
245
  # @param action_id [String]
454
246
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
455
- def get(action_id:, extra: {})
456
- api_response = get_with_http_info_impl(action_id, extra)
247
+ def get_action_by_id(action_id:, extra: {})
248
+ api_response = get_action_by_id_with_http_info_impl(action_id, extra)
457
249
  api_response.data
458
250
  end
459
251
 
460
252
  # Get action
461
253
  #
254
+ # Get action details
255
+ #
462
256
  # @param action_id [String]
463
257
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
464
- def get_with_http_info(action_id:, extra: {})
465
- get_with_http_info_impl(action_id, extra)
258
+ def get_action_by_id_with_http_info(action_id:, extra: {})
259
+ get_action_by_id_with_http_info_impl(action_id, extra)
466
260
  end
467
261
 
468
262
  # Get action
263
+ # Get action details
469
264
  # @param action_id [String]
470
265
  # @param [Hash] opts the optional parameters
471
266
  # @return [ActionDetails]
472
- private def get_impl(action_id, opts = {})
473
- data, _status_code, _headers = get_with_http_info(action_id, opts)
267
+ private def get_action_by_id_impl(action_id, opts = {})
268
+ data, _status_code, _headers = get_action_by_id_with_http_info(action_id, opts)
474
269
  data
475
270
  end
476
271
 
477
272
  # Get action
273
+ # Get action details
478
274
  # @param action_id [String]
479
275
  # @param [Hash] opts the optional parameters
480
276
  # @return [APIResponse] data is ActionDetails, status code, headers and response
481
- private def get_with_http_info_impl(action_id, opts = {})
277
+ private def get_action_by_id_with_http_info_impl(action_id, opts = {})
482
278
  if @api_client.config.debugging
483
- @api_client.config.logger.debug 'Calling API: ActionsApi.get ...'
279
+ @api_client.config.logger.debug 'Calling API: ActionsApi.get_action_by_id ...'
484
280
  end
485
281
  # verify the required parameter 'action_id' is set
486
282
  if @api_client.config.client_side_validation && action_id.nil?
487
- fail ArgumentError, "Missing the required parameter 'action_id' when calling ActionsApi.get"
283
+ fail ArgumentError, "Missing the required parameter 'action_id' when calling ActionsApi.get_action_by_id"
488
284
  end
489
285
  pattern = Regexp.new(/[^\/#\?]+?/)
490
286
  if @api_client.config.client_side_validation && action_id !~ pattern
491
- fail ArgumentError, "invalid value for 'action_id' when calling ActionsApi.get, must conform to the pattern #{pattern}."
287
+ fail ArgumentError, "invalid value for 'action_id' when calling ActionsApi.get_action_by_id, must conform to the pattern #{pattern}."
492
288
  end
493
289
 
494
290
  # resource path
495
- local_var_path = '/api/v1/actions/{actionId}'.sub('{' + 'actionId' + '}', CGI.escape(action_id.to_s))
291
+ local_var_path = '/api/v2/actions/{actionId}'.sub('{' + 'actionId' + '}', CGI.escape(action_id.to_s))
496
292
 
497
293
  # query parameters
498
294
  query_params = opts[:query_params] || {}
@@ -515,7 +311,7 @@ module Composio
515
311
  auth_names = opts[:debug_auth_names] || ['api_key']
516
312
 
517
313
  new_options = opts.merge(
518
- :operation => :"ActionsApi.get",
314
+ :operation => :"ActionsApi.get_action_by_id",
519
315
  :header_params => header_params,
520
316
  :query_params => query_params,
521
317
  :form_params => form_params,
@@ -526,135 +322,45 @@ module Composio
526
322
 
527
323
  data, status_code, headers, response = @api_client.call_api(:GET, local_var_path, new_options)
528
324
  if @api_client.config.debugging
529
- @api_client.config.logger.debug "API called: ActionsApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
325
+ @api_client.config.logger.debug "API called: ActionsApi#get_action_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
530
326
  end
531
327
  APIResponse::new(data, status_code, headers, response)
532
328
  end
533
329
 
534
330
 
535
- # Get action
331
+ # List actions minimal
536
332
  #
537
- # Get action details
333
+ # Retrieve a list of all actions based on query parameters.
538
334
  #
539
- # @param action_id [String]
335
+ # @param app_names [String]
336
+ # @param use_case [String]
337
+ # @param show_enabled_only [Boolean]
338
+ # @param limit [Float]
339
+ # @param apps [String]
340
+ # @param actions [String]
341
+ # @param tags [String]
342
+ # @param usecase_limit [Float]
343
+ # @param filter_important_actions [Boolean]
344
+ # @param show_all [Boolean]
540
345
  # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
541
- def get_action_by_id(action_id:, extra: {})
542
- api_response = get_action_by_id_with_http_info_impl(action_id, extra)
346
+ def get_all_actions_based_on_query(app_names: SENTINEL, use_case: SENTINEL, show_enabled_only: SENTINEL, limit: SENTINEL, apps: SENTINEL, actions: SENTINEL, tags: SENTINEL, usecase_limit: SENTINEL, filter_important_actions: SENTINEL, show_all: SENTINEL, extra: {})
347
+ extra[:app_names] = app_names if app_names != SENTINEL
348
+ extra[:use_case] = use_case if use_case != SENTINEL
349
+ extra[:show_enabled_only] = show_enabled_only if show_enabled_only != SENTINEL
350
+ extra[:limit] = limit if limit != SENTINEL
351
+ extra[:apps] = apps if apps != SENTINEL
352
+ extra[:actions] = actions if actions != SENTINEL
353
+ extra[:tags] = tags if tags != SENTINEL
354
+ extra[:usecase_limit] = usecase_limit if usecase_limit != SENTINEL
355
+ extra[:filter_important_actions] = filter_important_actions if filter_important_actions != SENTINEL
356
+ extra[:show_all] = show_all if show_all != SENTINEL
357
+ api_response = get_all_actions_based_on_query_with_http_info_impl(extra)
543
358
  api_response.data
544
359
  end
545
360
 
546
- # Get action
361
+ # List actions minimal
547
362
  #
548
- # Get action details
549
- #
550
- # @param action_id [String]
551
- # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
552
- def get_action_by_id_with_http_info(action_id:, extra: {})
553
- get_action_by_id_with_http_info_impl(action_id, extra)
554
- end
555
-
556
- # Get action
557
- # Get action details
558
- # @param action_id [String]
559
- # @param [Hash] opts the optional parameters
560
- # @return [ActionDetails]
561
- private def get_action_by_id_impl(action_id, opts = {})
562
- data, _status_code, _headers = get_action_by_id_with_http_info(action_id, opts)
563
- data
564
- end
565
-
566
- # Get action
567
- # Get action details
568
- # @param action_id [String]
569
- # @param [Hash] opts the optional parameters
570
- # @return [APIResponse] data is ActionDetails, status code, headers and response
571
- private def get_action_by_id_with_http_info_impl(action_id, opts = {})
572
- if @api_client.config.debugging
573
- @api_client.config.logger.debug 'Calling API: ActionsApi.get_action_by_id ...'
574
- end
575
- # verify the required parameter 'action_id' is set
576
- if @api_client.config.client_side_validation && action_id.nil?
577
- fail ArgumentError, "Missing the required parameter 'action_id' when calling ActionsApi.get_action_by_id"
578
- end
579
- pattern = Regexp.new(/[^\/#\?]+?/)
580
- if @api_client.config.client_side_validation && action_id !~ pattern
581
- fail ArgumentError, "invalid value for 'action_id' when calling ActionsApi.get_action_by_id, must conform to the pattern #{pattern}."
582
- end
583
-
584
- # resource path
585
- local_var_path = '/api/v2/actions/{actionId}'.sub('{' + 'actionId' + '}', CGI.escape(action_id.to_s))
586
-
587
- # query parameters
588
- query_params = opts[:query_params] || {}
589
-
590
- # header parameters
591
- header_params = opts[:header_params] || {}
592
- # HTTP header 'Accept' (if needed)
593
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
594
-
595
- # form parameters
596
- form_params = opts[:form_params] || {}
597
-
598
- # http body (model)
599
- post_body = opts[:debug_body]
600
-
601
- # return_type
602
- return_type = opts[:debug_return_type] || 'ActionDetails'
603
-
604
- # auth_names
605
- auth_names = opts[:debug_auth_names] || ['api_key']
606
-
607
- new_options = opts.merge(
608
- :operation => :"ActionsApi.get_action_by_id",
609
- :header_params => header_params,
610
- :query_params => query_params,
611
- :form_params => form_params,
612
- :body => post_body,
613
- :auth_names => auth_names,
614
- :return_type => return_type
615
- )
616
-
617
- data, status_code, headers, response = @api_client.call_api(:GET, local_var_path, new_options)
618
- if @api_client.config.debugging
619
- @api_client.config.logger.debug "API called: ActionsApi#get_action_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
620
- end
621
- APIResponse::new(data, status_code, headers, response)
622
- end
623
-
624
-
625
- # List actions minimal
626
- #
627
- # Retrieve a list of all actions based on query parameters.
628
- #
629
- # @param app_names [String]
630
- # @param use_case [String]
631
- # @param show_enabled_only [Boolean]
632
- # @param limit [Float]
633
- # @param apps [String]
634
- # @param actions [String]
635
- # @param tags [String]
636
- # @param usecase_limit [Float]
637
- # @param filter_important_actions [Boolean]
638
- # @param show_all [Boolean]
639
- # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
640
- def get_all_actions_based_on_query(app_names: SENTINEL, use_case: SENTINEL, show_enabled_only: SENTINEL, limit: SENTINEL, apps: SENTINEL, actions: SENTINEL, tags: SENTINEL, usecase_limit: SENTINEL, filter_important_actions: SENTINEL, show_all: SENTINEL, extra: {})
641
- extra[:app_names] = app_names if app_names != SENTINEL
642
- extra[:use_case] = use_case if use_case != SENTINEL
643
- extra[:show_enabled_only] = show_enabled_only if show_enabled_only != SENTINEL
644
- extra[:limit] = limit if limit != SENTINEL
645
- extra[:apps] = apps if apps != SENTINEL
646
- extra[:actions] = actions if actions != SENTINEL
647
- extra[:tags] = tags if tags != SENTINEL
648
- extra[:usecase_limit] = usecase_limit if usecase_limit != SENTINEL
649
- extra[:filter_important_actions] = filter_important_actions if filter_important_actions != SENTINEL
650
- extra[:show_all] = show_all if show_all != SENTINEL
651
- api_response = get_all_actions_based_on_query_with_http_info_impl(extra)
652
- api_response.data
653
- end
654
-
655
- # List actions minimal
656
- #
657
- # Retrieve a list of all actions based on query parameters.
363
+ # Retrieve a list of all actions based on query parameters.
658
364
  #
659
365
  # @param app_names [String]
660
366
  # @param use_case [String]
@@ -767,294 +473,6 @@ module Composio
767
473
  end
768
474
  APIResponse::new(data, status_code, headers, response)
769
475
  end
770
-
771
-
772
- # List actions
773
- #
774
- # @param app_names [String]
775
- # @param use_case [String]
776
- # @param show_enabled_only [Boolean]
777
- # @param limit [Float]
778
- # @param apps [String]
779
- # @param actions [String]
780
- # @param tags [String]
781
- # @param usecase_limit [Float]
782
- # @param filter_important_actions [Boolean]
783
- # @param show_all [Boolean]
784
- # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
785
- def list(app_names: SENTINEL, use_case: SENTINEL, show_enabled_only: SENTINEL, limit: SENTINEL, apps: SENTINEL, actions: SENTINEL, tags: SENTINEL, usecase_limit: SENTINEL, filter_important_actions: SENTINEL, show_all: SENTINEL, extra: {})
786
- extra[:app_names] = app_names if app_names != SENTINEL
787
- extra[:use_case] = use_case if use_case != SENTINEL
788
- extra[:show_enabled_only] = show_enabled_only if show_enabled_only != SENTINEL
789
- extra[:limit] = limit if limit != SENTINEL
790
- extra[:apps] = apps if apps != SENTINEL
791
- extra[:actions] = actions if actions != SENTINEL
792
- extra[:tags] = tags if tags != SENTINEL
793
- extra[:usecase_limit] = usecase_limit if usecase_limit != SENTINEL
794
- extra[:filter_important_actions] = filter_important_actions if filter_important_actions != SENTINEL
795
- extra[:show_all] = show_all if show_all != SENTINEL
796
- api_response = list_with_http_info_impl(extra)
797
- api_response.data
798
- end
799
-
800
- # List actions
801
- #
802
- # @param app_names [String]
803
- # @param use_case [String]
804
- # @param show_enabled_only [Boolean]
805
- # @param limit [Float]
806
- # @param apps [String]
807
- # @param actions [String]
808
- # @param tags [String]
809
- # @param usecase_limit [Float]
810
- # @param filter_important_actions [Boolean]
811
- # @param show_all [Boolean]
812
- # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
813
- def list_with_http_info(app_names: SENTINEL, use_case: SENTINEL, show_enabled_only: SENTINEL, limit: SENTINEL, apps: SENTINEL, actions: SENTINEL, tags: SENTINEL, usecase_limit: SENTINEL, filter_important_actions: SENTINEL, show_all: SENTINEL, extra: {})
814
- extra[:app_names] = app_names if app_names != SENTINEL
815
- extra[:use_case] = use_case if use_case != SENTINEL
816
- extra[:show_enabled_only] = show_enabled_only if show_enabled_only != SENTINEL
817
- extra[:limit] = limit if limit != SENTINEL
818
- extra[:apps] = apps if apps != SENTINEL
819
- extra[:actions] = actions if actions != SENTINEL
820
- extra[:tags] = tags if tags != SENTINEL
821
- extra[:usecase_limit] = usecase_limit if usecase_limit != SENTINEL
822
- extra[:filter_important_actions] = filter_important_actions if filter_important_actions != SENTINEL
823
- extra[:show_all] = show_all if show_all != SENTINEL
824
- list_with_http_info_impl(extra)
825
- end
826
-
827
- # List actions
828
- # @param [Hash] opts the optional parameters
829
- # @option opts [String] :app_names
830
- # @option opts [String] :use_case
831
- # @option opts [Boolean] :show_enabled_only
832
- # @option opts [Float] :limit
833
- # @option opts [String] :apps
834
- # @option opts [String] :actions
835
- # @option opts [String] :tags
836
- # @option opts [Float] :usecase_limit
837
- # @option opts [Boolean] :filter_important_actions
838
- # @option opts [Boolean] :show_all
839
- # @return [ActionsListResponseDTO]
840
- private def list_impl(opts = {})
841
- data, _status_code, _headers = list_with_http_info(opts)
842
- data
843
- end
844
-
845
- # List actions
846
- # @param [Hash] opts the optional parameters
847
- # @option opts [String] :app_names
848
- # @option opts [String] :use_case
849
- # @option opts [Boolean] :show_enabled_only
850
- # @option opts [Float] :limit
851
- # @option opts [String] :apps
852
- # @option opts [String] :actions
853
- # @option opts [String] :tags
854
- # @option opts [Float] :usecase_limit
855
- # @option opts [Boolean] :filter_important_actions
856
- # @option opts [Boolean] :show_all
857
- # @return [APIResponse] data is ActionsListResponseDTO, status code, headers and response
858
- private def list_with_http_info_impl(opts = {})
859
- if @api_client.config.debugging
860
- @api_client.config.logger.debug 'Calling API: ActionsApi.list ...'
861
- end
862
- # resource path
863
- local_var_path = '/api/v1/actions'
864
-
865
- # query parameters
866
- query_params = opts[:query_params] || {}
867
- query_params[:'appNames'] = opts[:'app_names'] if !opts[:'app_names'].nil?
868
- query_params[:'useCase'] = opts[:'use_case'] if !opts[:'use_case'].nil?
869
- query_params[:'showEnabledOnly'] = opts[:'show_enabled_only'] if !opts[:'show_enabled_only'].nil?
870
- query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
871
- query_params[:'apps'] = opts[:'apps'] if !opts[:'apps'].nil?
872
- query_params[:'actions'] = opts[:'actions'] if !opts[:'actions'].nil?
873
- query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil?
874
- query_params[:'usecaseLimit'] = opts[:'usecase_limit'] if !opts[:'usecase_limit'].nil?
875
- query_params[:'filterImportantActions'] = opts[:'filter_important_actions'] if !opts[:'filter_important_actions'].nil?
876
- query_params[:'showAll'] = opts[:'show_all'] if !opts[:'show_all'].nil?
877
-
878
- # header parameters
879
- header_params = opts[:header_params] || {}
880
- # HTTP header 'Accept' (if needed)
881
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
882
-
883
- # form parameters
884
- form_params = opts[:form_params] || {}
885
-
886
- # http body (model)
887
- post_body = opts[:debug_body]
888
-
889
- # return_type
890
- return_type = opts[:debug_return_type] || 'ActionsListResponseDTO'
891
-
892
- # auth_names
893
- auth_names = opts[:debug_auth_names] || ['api_key']
894
-
895
- new_options = opts.merge(
896
- :operation => :"ActionsApi.list",
897
- :header_params => header_params,
898
- :query_params => query_params,
899
- :form_params => form_params,
900
- :body => post_body,
901
- :auth_names => auth_names,
902
- :return_type => return_type
903
- )
904
-
905
- data, status_code, headers, response = @api_client.call_api(:GET, local_var_path, new_options)
906
- if @api_client.config.debugging
907
- @api_client.config.logger.debug "API called: ActionsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
908
- end
909
- APIResponse::new(data, status_code, headers, response)
910
- end
911
-
912
-
913
- # List actions
914
- #
915
- # Retrieve a list of all actions based on query parameters.
916
- #
917
- # @param app_names [String]
918
- # @param use_case [String]
919
- # @param show_enabled_only [Boolean]
920
- # @param limit [Float]
921
- # @param apps [String]
922
- # @param actions [String]
923
- # @param tags [String]
924
- # @param usecase_limit [Float]
925
- # @param filter_important_actions [Boolean]
926
- # @param show_all [Boolean]
927
- # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
928
- def list_0(app_names: SENTINEL, use_case: SENTINEL, show_enabled_only: SENTINEL, limit: SENTINEL, apps: SENTINEL, actions: SENTINEL, tags: SENTINEL, usecase_limit: SENTINEL, filter_important_actions: SENTINEL, show_all: SENTINEL, extra: {})
929
- extra[:app_names] = app_names if app_names != SENTINEL
930
- extra[:use_case] = use_case if use_case != SENTINEL
931
- extra[:show_enabled_only] = show_enabled_only if show_enabled_only != SENTINEL
932
- extra[:limit] = limit if limit != SENTINEL
933
- extra[:apps] = apps if apps != SENTINEL
934
- extra[:actions] = actions if actions != SENTINEL
935
- extra[:tags] = tags if tags != SENTINEL
936
- extra[:usecase_limit] = usecase_limit if usecase_limit != SENTINEL
937
- extra[:filter_important_actions] = filter_important_actions if filter_important_actions != SENTINEL
938
- extra[:show_all] = show_all if show_all != SENTINEL
939
- api_response = list_0_with_http_info_impl(extra)
940
- api_response.data
941
- end
942
-
943
- # List actions
944
- #
945
- # Retrieve a list of all actions based on query parameters.
946
- #
947
- # @param app_names [String]
948
- # @param use_case [String]
949
- # @param show_enabled_only [Boolean]
950
- # @param limit [Float]
951
- # @param apps [String]
952
- # @param actions [String]
953
- # @param tags [String]
954
- # @param usecase_limit [Float]
955
- # @param filter_important_actions [Boolean]
956
- # @param show_all [Boolean]
957
- # @param [Hash] extra additional parameters to pass along through :header_params, :query_params, or parameter name
958
- def list_0_with_http_info(app_names: SENTINEL, use_case: SENTINEL, show_enabled_only: SENTINEL, limit: SENTINEL, apps: SENTINEL, actions: SENTINEL, tags: SENTINEL, usecase_limit: SENTINEL, filter_important_actions: SENTINEL, show_all: SENTINEL, extra: {})
959
- extra[:app_names] = app_names if app_names != SENTINEL
960
- extra[:use_case] = use_case if use_case != SENTINEL
961
- extra[:show_enabled_only] = show_enabled_only if show_enabled_only != SENTINEL
962
- extra[:limit] = limit if limit != SENTINEL
963
- extra[:apps] = apps if apps != SENTINEL
964
- extra[:actions] = actions if actions != SENTINEL
965
- extra[:tags] = tags if tags != SENTINEL
966
- extra[:usecase_limit] = usecase_limit if usecase_limit != SENTINEL
967
- extra[:filter_important_actions] = filter_important_actions if filter_important_actions != SENTINEL
968
- extra[:show_all] = show_all if show_all != SENTINEL
969
- list_0_with_http_info_impl(extra)
970
- end
971
-
972
- # List actions
973
- # Retrieve a list of all actions based on query parameters.
974
- # @param [Hash] opts the optional parameters
975
- # @option opts [String] :app_names
976
- # @option opts [String] :use_case
977
- # @option opts [Boolean] :show_enabled_only
978
- # @option opts [Float] :limit
979
- # @option opts [String] :apps
980
- # @option opts [String] :actions
981
- # @option opts [String] :tags
982
- # @option opts [Float] :usecase_limit
983
- # @option opts [Boolean] :filter_important_actions
984
- # @option opts [Boolean] :show_all
985
- # @return [ActionsListResponseDTO]
986
- private def list_0_impl(opts = {})
987
- data, _status_code, _headers = list_0_with_http_info(opts)
988
- data
989
- end
990
-
991
- # List actions
992
- # Retrieve a list of all actions based on query parameters.
993
- # @param [Hash] opts the optional parameters
994
- # @option opts [String] :app_names
995
- # @option opts [String] :use_case
996
- # @option opts [Boolean] :show_enabled_only
997
- # @option opts [Float] :limit
998
- # @option opts [String] :apps
999
- # @option opts [String] :actions
1000
- # @option opts [String] :tags
1001
- # @option opts [Float] :usecase_limit
1002
- # @option opts [Boolean] :filter_important_actions
1003
- # @option opts [Boolean] :show_all
1004
- # @return [APIResponse] data is ActionsListResponseDTO, status code, headers and response
1005
- private def list_0_with_http_info_impl(opts = {})
1006
- if @api_client.config.debugging
1007
- @api_client.config.logger.debug 'Calling API: ActionsApi.list_0 ...'
1008
- end
1009
- # resource path
1010
- local_var_path = '/api/v2/actions'
1011
-
1012
- # query parameters
1013
- query_params = opts[:query_params] || {}
1014
- query_params[:'appNames'] = opts[:'app_names'] if !opts[:'app_names'].nil?
1015
- query_params[:'useCase'] = opts[:'use_case'] if !opts[:'use_case'].nil?
1016
- query_params[:'showEnabledOnly'] = opts[:'show_enabled_only'] if !opts[:'show_enabled_only'].nil?
1017
- query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
1018
- query_params[:'apps'] = opts[:'apps'] if !opts[:'apps'].nil?
1019
- query_params[:'actions'] = opts[:'actions'] if !opts[:'actions'].nil?
1020
- query_params[:'tags'] = opts[:'tags'] if !opts[:'tags'].nil?
1021
- query_params[:'usecaseLimit'] = opts[:'usecase_limit'] if !opts[:'usecase_limit'].nil?
1022
- query_params[:'filterImportantActions'] = opts[:'filter_important_actions'] if !opts[:'filter_important_actions'].nil?
1023
- query_params[:'showAll'] = opts[:'show_all'] if !opts[:'show_all'].nil?
1024
-
1025
- # header parameters
1026
- header_params = opts[:header_params] || {}
1027
- # HTTP header 'Accept' (if needed)
1028
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1029
-
1030
- # form parameters
1031
- form_params = opts[:form_params] || {}
1032
-
1033
- # http body (model)
1034
- post_body = opts[:debug_body]
1035
-
1036
- # return_type
1037
- return_type = opts[:debug_return_type] || 'ActionsListResponseDTO'
1038
-
1039
- # auth_names
1040
- auth_names = opts[:debug_auth_names] || ['api_key']
1041
-
1042
- new_options = opts.merge(
1043
- :operation => :"ActionsApi.list_0",
1044
- :header_params => header_params,
1045
- :query_params => query_params,
1046
- :form_params => form_params,
1047
- :body => post_body,
1048
- :auth_names => auth_names,
1049
- :return_type => return_type
1050
- )
1051
-
1052
- data, status_code, headers, response = @api_client.call_api(:GET, local_var_path, new_options)
1053
- if @api_client.config.debugging
1054
- @api_client.config.logger.debug "API called: ActionsApi#list_0\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1055
- end
1056
- APIResponse::new(data, status_code, headers, response)
1057
- end
1058
476
  end
1059
477
 
1060
478
  # top-level client access to avoid having the user to insantiate their own API instances