svix 1.60.1 → 1.61.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +5 -1
- data/Gemfile.lock +35 -21
- data/README.md +0 -7
- data/lib/svix/api/application.rb +96 -0
- data/lib/svix/api/authentication.rb +65 -0
- data/lib/svix/api/background_task.rb +39 -0
- data/lib/svix/api/endpoint.rb +202 -0
- data/lib/svix/api/environment.rb +39 -0
- data/lib/svix/api/event_type.rb +99 -0
- data/lib/svix/api/health.rb +21 -0
- data/lib/svix/api/integration.rb +91 -0
- data/lib/svix/api/message.rb +112 -0
- data/lib/svix/api/message_attempt.rb +123 -0
- data/lib/svix/api/operational_webhook_endpoint.rb +109 -0
- data/lib/svix/api/statistics.rb +36 -0
- data/lib/svix/api_error.rb +7 -17
- data/lib/svix/errors.rb +9 -9
- data/lib/svix/http_error_out.rb +18 -0
- data/lib/svix/http_validation_error.rb +18 -0
- data/lib/svix/internal.rb +0 -9
- data/lib/svix/models/aggregate_event_types_out.rb +32 -292
- data/lib/svix/models/app_portal_access_in.rb +31 -278
- data/lib/svix/models/app_portal_access_out.rb +27 -243
- data/lib/svix/models/app_usage_stats_in.rb +30 -234
- data/lib/svix/models/app_usage_stats_out.rb +31 -320
- data/lib/svix/models/application_in.rb +31 -298
- data/lib/svix/models/application_out.rb +37 -371
- data/lib/svix/models/application_patch.rb +31 -272
- data/lib/svix/models/application_token_expire_in.rb +28 -219
- data/lib/svix/models/background_task_out.rb +31 -307
- data/lib/svix/models/background_task_status.rb +14 -25
- data/lib/svix/models/background_task_type.rb +23 -26
- data/lib/svix/models/connector_in.rb +58 -385
- data/lib/svix/models/connector_kind.rb +28 -26
- data/lib/svix/models/dashboard_access_out.rb +27 -243
- data/lib/svix/models/endpoint_headers_in.rb +25 -202
- data/lib/svix/models/endpoint_headers_out.rb +30 -230
- data/lib/svix/models/endpoint_headers_patch_in.rb +28 -202
- data/lib/svix/models/endpoint_in.rb +61 -449
- data/lib/svix/models/endpoint_message_out.rb +48 -467
- data/lib/svix/models/endpoint_out.rb +67 -528
- data/lib/svix/models/endpoint_patch.rb +61 -383
- data/lib/svix/models/endpoint_secret_out.rb +25 -222
- data/lib/svix/models/endpoint_secret_rotate_in.rb +28 -212
- data/lib/svix/models/endpoint_stats.rb +31 -245
- data/lib/svix/models/endpoint_transformation_in.rb +30 -226
- data/lib/svix/models/endpoint_transformation_out.rb +30 -228
- data/lib/svix/models/endpoint_update.rb +58 -422
- data/lib/svix/models/environment_in.rb +31 -212
- data/lib/svix/models/environment_out.rb +35 -255
- data/lib/svix/models/event_example_in.rb +27 -261
- data/lib/svix/models/event_type_from_open_api.rb +35 -341
- data/lib/svix/models/event_type_import_open_api_in.rb +37 -228
- data/lib/svix/models/event_type_import_open_api_out.rb +28 -200
- data/lib/svix/models/event_type_import_open_api_out_data.rb +31 -211
- data/lib/svix/models/event_type_in.rb +37 -347
- data/lib/svix/models/event_type_out.rb +58 -389
- data/lib/svix/models/event_type_patch.rb +35 -289
- data/lib/svix/models/event_type_update.rb +35 -301
- data/lib/svix/models/expung_all_contents_out.rb +29 -292
- data/lib/svix/models/integration_in.rb +27 -239
- data/lib/svix/models/integration_key_out.rb +25 -200
- data/lib/svix/models/integration_out.rb +33 -324
- data/lib/svix/models/integration_update.rb +27 -239
- data/lib/svix/models/list_response_application_out.rb +34 -237
- data/lib/svix/models/list_response_background_task_out.rb +34 -237
- data/lib/svix/models/list_response_endpoint_message_out.rb +34 -237
- data/lib/svix/models/list_response_endpoint_out.rb +34 -237
- data/lib/svix/models/list_response_event_type_out.rb +34 -237
- data/lib/svix/models/list_response_integration_out.rb +34 -237
- data/lib/svix/models/list_response_message_attempt_out.rb +34 -237
- data/lib/svix/models/list_response_message_endpoint_out.rb +34 -237
- data/lib/svix/models/list_response_message_out.rb +34 -237
- data/lib/svix/models/list_response_operational_webhook_endpoint_out.rb +34 -237
- data/lib/svix/models/message_attempt_out.rb +64 -521
- data/lib/svix/models/message_attempt_trigger_type.rb +20 -28
- data/lib/svix/models/message_endpoint_out.rb +70 -557
- data/lib/svix/models/message_in.rb +58 -450
- data/lib/svix/models/message_out.rb +37 -414
- data/lib/svix/models/message_status.rb +24 -30
- data/lib/svix/models/operational_webhook_endpoint_headers_in.rb +28 -202
- data/lib/svix/models/operational_webhook_endpoint_headers_out.rb +30 -229
- data/lib/svix/models/operational_webhook_endpoint_in.rb +42 -380
- data/lib/svix/models/operational_webhook_endpoint_out.rb +64 -458
- data/lib/svix/models/operational_webhook_endpoint_secret_in.rb +28 -212
- data/lib/svix/models/operational_webhook_endpoint_secret_out.rb +28 -222
- data/lib/svix/models/operational_webhook_endpoint_update.rb +40 -353
- data/lib/svix/models/ordering.rb +15 -25
- data/lib/svix/models/recover_in.rb +28 -210
- data/lib/svix/models/recover_out.rb +29 -292
- data/lib/svix/models/replay_in.rb +28 -210
- data/lib/svix/models/replay_out.rb +29 -292
- data/lib/svix/models/status_code_class.rb +28 -32
- data/lib/svix/models/template_out.rb +70 -514
- data/lib/svix/svix.rb +50 -50
- data/lib/svix/svix_http_client.rb +110 -0
- data/lib/svix/util.rb +44 -25
- data/lib/svix/validation_error.rb +28 -0
- data/lib/svix/version.rb +1 -1
- data/lib/svix/webhook.rb +69 -65
- data/lib/svix.rb +51 -37
- data/svix.gemspec +1 -10
- metadata +22 -194
- data/lib/svix/api/application_api.rb +0 -772
- data/lib/svix/api/authentication_api.rb +0 -791
- data/lib/svix/api/background_tasks_api.rb +0 -191
- data/lib/svix/api/broadcast_api.rb +0 -93
- data/lib/svix/api/endpoint_api.rb +0 -2752
- data/lib/svix/api/environment_api.rb +0 -153
- data/lib/svix/api/environment_settings_api.rb +0 -79
- data/lib/svix/api/event_type_api.rb +0 -852
- data/lib/svix/api/events_api.rb +0 -102
- data/lib/svix/api/health_api.rb +0 -79
- data/lib/svix/api/inbound_api.rb +0 -209
- data/lib/svix/api/integration_api.rb +0 -707
- data/lib/svix/api/message_api.rb +0 -1192
- data/lib/svix/api/message_attempt_api.rb +0 -1245
- data/lib/svix/api/statistics_api.rb +0 -333
- data/lib/svix/api/stream_api.rb +0 -659
- data/lib/svix/api/stream_event_types_api.rb +0 -486
- data/lib/svix/api/transformation_template_api.rb +0 -967
- data/lib/svix/api/webhook_endpoint_api.rb +0 -748
- data/lib/svix/api_client.rb +0 -423
- data/lib/svix/application_api.rb +0 -35
- data/lib/svix/authentication_api.rb +0 -21
- data/lib/svix/background_tasks_api.rb +0 -17
- data/lib/svix/configuration.rb +0 -312
- data/lib/svix/endpoint_api.rb +0 -80
- data/lib/svix/event_type_api.rb +0 -37
- data/lib/svix/integration_api.rb +0 -38
- data/lib/svix/message_api.rb +0 -54
- data/lib/svix/message_attempt_api.rb +0 -51
- data/lib/svix/models/active_application_out.rb +0 -373
- data/lib/svix/models/active_endpoint_out.rb +0 -355
- data/lib/svix/models/aggregated_event_types.rb +0 -305
- data/lib/svix/models/application_message_failure.rb +0 -277
- data/lib/svix/models/application_message_id_pair.rb +0 -317
- data/lib/svix/models/application_stats.rb +0 -323
- data/lib/svix/models/application_stats_out.rb +0 -324
- data/lib/svix/models/attempt_statistics_data.rb +0 -229
- data/lib/svix/models/attempt_statistics_response.rb +0 -291
- data/lib/svix/models/auth_token_out.rb +0 -325
- data/lib/svix/models/azure_blob_storage_config.rb +0 -253
- data/lib/svix/models/background_task_finished_event.rb +0 -272
- data/lib/svix/models/background_task_finished_event2.rb +0 -331
- data/lib/svix/models/big_query_config.rb +0 -271
- data/lib/svix/models/border_radius_config.rb +0 -254
- data/lib/svix/models/border_radius_enum.rb +0 -43
- data/lib/svix/models/client_secret_jwt_params_in.rb +0 -297
- data/lib/svix/models/completion_choice.rb +0 -253
- data/lib/svix/models/completion_message.rb +0 -237
- data/lib/svix/models/count_out.rb +0 -258
- data/lib/svix/models/create_stream_in.rb +0 -232
- data/lib/svix/models/create_token_in.rb +0 -248
- data/lib/svix/models/custom_color_palette.rb +0 -295
- data/lib/svix/models/custom_strings_override.rb +0 -235
- data/lib/svix/models/custom_theme_override.rb +0 -223
- data/lib/svix/models/data.rb +0 -108
- data/lib/svix/models/data_any_of.rb +0 -240
- data/lib/svix/models/data_any_of1.rb +0 -223
- data/lib/svix/models/data_any_of2.rb +0 -241
- data/lib/svix/models/data_any_of3.rb +0 -223
- data/lib/svix/models/data_any_of4.rb +0 -240
- data/lib/svix/models/duration.rb +0 -275
- data/lib/svix/models/endpoint_created_event.rb +0 -272
- data/lib/svix/models/endpoint_created_event_data.rb +0 -410
- data/lib/svix/models/endpoint_deleted_event.rb +0 -272
- data/lib/svix/models/endpoint_deleted_event_data.rb +0 -410
- data/lib/svix/models/endpoint_disabled_event.rb +0 -272
- data/lib/svix/models/endpoint_disabled_event_data.rb +0 -451
- data/lib/svix/models/endpoint_disabled_trigger.rb +0 -40
- data/lib/svix/models/endpoint_enabled_event.rb +0 -272
- data/lib/svix/models/endpoint_enabled_event_data.rb +0 -410
- data/lib/svix/models/endpoint_mtls_config_in.rb +0 -233
- data/lib/svix/models/endpoint_mtls_config_out.rb +0 -215
- data/lib/svix/models/endpoint_oauth_config_in.rb +0 -350
- data/lib/svix/models/endpoint_oauth_config_out.rb +0 -315
- data/lib/svix/models/endpoint_transformation_simulate_in.rb +0 -330
- data/lib/svix/models/endpoint_transformation_simulate_out.rb +0 -296
- data/lib/svix/models/endpoint_updated_event.rb +0 -272
- data/lib/svix/models/endpoint_updated_event_data.rb +0 -410
- data/lib/svix/models/environment_settings_out.rb +0 -455
- data/lib/svix/models/event_in.rb +0 -258
- data/lib/svix/models/event_out.rb +0 -274
- data/lib/svix/models/event_stream_out.rb +0 -255
- data/lib/svix/models/event_type_example_out.rb +0 -221
- data/lib/svix/models/event_type_schema_in.rb +0 -221
- data/lib/svix/models/export_event_type_out.rb +0 -315
- data/lib/svix/models/font_size_config.rb +0 -230
- data/lib/svix/models/generate_in.rb +0 -221
- data/lib/svix/models/generate_out.rb +0 -287
- data/lib/svix/models/google_cloud_storage_config.rb +0 -239
- data/lib/svix/models/http_error_out.rb +0 -237
- data/lib/svix/models/http_validation_error.rb +0 -223
- data/lib/svix/models/hubspot_oauth_config_in.rb +0 -221
- data/lib/svix/models/inbound_path_params.rb +0 -277
- data/lib/svix/models/incoming_webhook_payload_out.rb +0 -235
- data/lib/svix/models/kafka_security_protocol_type.rb +0 -41
- data/lib/svix/models/list_response_active_application_out.rb +0 -261
- data/lib/svix/models/list_response_application_stats.rb +0 -261
- data/lib/svix/models/list_response_message_attempt_endpoint_out.rb +0 -261
- data/lib/svix/models/list_response_sink_out.rb +0 -261
- data/lib/svix/models/list_response_stream_event_type_out.rb +0 -261
- data/lib/svix/models/list_response_stream_out.rb +0 -261
- data/lib/svix/models/list_response_stream_sink_out.rb +0 -261
- data/lib/svix/models/list_response_template_out.rb +0 -261
- data/lib/svix/models/message_attempt_endpoint_out.rb +0 -545
- data/lib/svix/models/message_attempt_exhausted_event.rb +0 -272
- data/lib/svix/models/message_attempt_exhausted_event_data.rb +0 -482
- data/lib/svix/models/message_attempt_failed_data.rb +0 -293
- data/lib/svix/models/message_attempt_failing_event.rb +0 -272
- data/lib/svix/models/message_attempt_failing_event_data.rb +0 -482
- data/lib/svix/models/message_attempt_headers_out.rb +0 -263
- data/lib/svix/models/message_attempt_recovered_event.rb +0 -272
- data/lib/svix/models/message_attempt_recovered_event_data.rb +0 -482
- data/lib/svix/models/message_broadcast_in.rb +0 -423
- data/lib/svix/models/message_broadcast_out.rb +0 -315
- data/lib/svix/models/message_events_out.rb +0 -255
- data/lib/svix/models/message_precheck_in.rb +0 -288
- data/lib/svix/models/message_precheck_out.rb +0 -221
- data/lib/svix/models/message_raw_payload_out.rb +0 -221
- data/lib/svix/models/message_subscriber_auth_token_out.rb +0 -237
- data/lib/svix/models/o_auth_payload_in.rb +0 -237
- data/lib/svix/models/o_auth_payload_out.rb +0 -235
- data/lib/svix/models/oauth2_auth_method_in_out.rb +0 -41
- data/lib/svix/models/oauth2_grant_type_in_out.rb +0 -40
- data/lib/svix/models/oauth_jws_signing_algorithm.rb +0 -39
- data/lib/svix/models/one_time_token_in.rb +0 -221
- data/lib/svix/models/one_time_token_out.rb +0 -221
- data/lib/svix/models/polling_endpoint_message_out.rb +0 -454
- data/lib/svix/models/polling_endpoint_out.rb +0 -255
- data/lib/svix/models/redshift_config.rb +0 -317
- data/lib/svix/models/retry_schedule_in_out.rb +0 -216
- data/lib/svix/models/rotate_poller_token_in.rb +0 -280
- data/lib/svix/models/rotated_url_out.rb +0 -221
- data/lib/svix/models/s3_config.rb +0 -269
- data/lib/svix/models/sink_http_config.rb +0 -242
- data/lib/svix/models/sink_in.rb +0 -108
- data/lib/svix/models/sink_in_one_of.rb +0 -287
- data/lib/svix/models/sink_in_one_of1.rb +0 -319
- data/lib/svix/models/sink_in_one_of2.rb +0 -325
- data/lib/svix/models/sink_in_one_of3.rb +0 -271
- data/lib/svix/models/sink_in_one_of4.rb +0 -255
- data/lib/svix/models/sink_otel_v1_config.rb +0 -221
- data/lib/svix/models/sink_out.rb +0 -108
- data/lib/svix/models/sink_payload_format.rb +0 -39
- data/lib/svix/models/sink_secret_out.rb +0 -233
- data/lib/svix/models/sink_status.rb +0 -41
- data/lib/svix/models/sink_status_in.rb +0 -40
- data/lib/svix/models/sink_transform_in.rb +0 -248
- data/lib/svix/models/sink_transformation_out.rb +0 -226
- data/lib/svix/models/snowflake_config.rb +0 -287
- data/lib/svix/models/statistics_period.rb +0 -40
- data/lib/svix/models/stream_event_type_in.rb +0 -262
- data/lib/svix/models/stream_event_type_out.rb +0 -294
- data/lib/svix/models/stream_event_type_patch.rb +0 -254
- data/lib/svix/models/stream_in.rb +0 -287
- data/lib/svix/models/stream_out.rb +0 -350
- data/lib/svix/models/stream_patch.rb +0 -261
- data/lib/svix/models/stream_portal_access_in.rb +0 -293
- data/lib/svix/models/stream_sink_in.rb +0 -111
- data/lib/svix/models/stream_sink_in_one_of.rb +0 -271
- data/lib/svix/models/stream_sink_in_one_of1.rb +0 -271
- data/lib/svix/models/stream_sink_in_one_of2.rb +0 -271
- data/lib/svix/models/stream_sink_in_one_of3.rb +0 -271
- data/lib/svix/models/stream_sink_in_one_of4.rb +0 -271
- data/lib/svix/models/stream_sink_in_one_of5.rb +0 -271
- data/lib/svix/models/stream_sink_in_one_of6.rb +0 -271
- data/lib/svix/models/stream_sink_in_one_of7.rb +0 -271
- data/lib/svix/models/stream_sink_out.rb +0 -111
- data/lib/svix/models/stream_sink_patch.rb +0 -111
- data/lib/svix/models/template_patch.rb +0 -382
- data/lib/svix/models/template_update.rb +0 -402
- data/lib/svix/models/transformation_http_method.rb +0 -41
- data/lib/svix/models/transformation_simulate_in.rb +0 -330
- data/lib/svix/models/transformation_simulate_out.rb +0 -296
- data/lib/svix/models/validation_error.rb +0 -259
- data/lib/svix/statistics_api.rb +0 -17
@@ -1,2752 +0,0 @@
|
|
1
|
-
=begin
|
2
|
-
#Svix API
|
3
|
-
|
4
|
-
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
-
|
6
|
-
The version of the OpenAPI document: 1.1.1
|
7
|
-
|
8
|
-
Generated by: https://openapi-generator.tech
|
9
|
-
Generator version: 7.9.0
|
10
|
-
|
11
|
-
=end
|
12
|
-
|
13
|
-
require 'cgi'
|
14
|
-
|
15
|
-
module Svix
|
16
|
-
class EndpointApi
|
17
|
-
attr_accessor :api_client
|
18
|
-
|
19
|
-
def initialize(api_client = ApiClient.default)
|
20
|
-
@api_client = api_client
|
21
|
-
end
|
22
|
-
# Create Endpoint
|
23
|
-
# Create a new endpoint for the application. When `secret` is `null` the secret is automatically generated (recommended).
|
24
|
-
# @param app_id [String] The Application's ID or UID.
|
25
|
-
# @param endpoint_in [EndpointIn]
|
26
|
-
# @param [Hash] opts the optional parameters
|
27
|
-
# @option opts [String] :idempotency_key The request's idempotency key
|
28
|
-
# @return [EndpointOut]
|
29
|
-
def v1_endpoint_create(app_id, endpoint_in, opts = {})
|
30
|
-
data, _status_code, _headers = v1_endpoint_create_with_http_info(app_id, endpoint_in, opts)
|
31
|
-
data
|
32
|
-
end
|
33
|
-
|
34
|
-
# Create Endpoint
|
35
|
-
# Create a new endpoint for the application. When `secret` is `null` the secret is automatically generated (recommended).
|
36
|
-
# @param app_id [String] The Application's ID or UID.
|
37
|
-
# @param endpoint_in [EndpointIn]
|
38
|
-
# @param [Hash] opts the optional parameters
|
39
|
-
# @option opts [String] :idempotency_key The request's idempotency key
|
40
|
-
# @return [Array<(EndpointOut, Integer, Hash)>] EndpointOut data, response status code and response headers
|
41
|
-
def v1_endpoint_create_with_http_info(app_id, endpoint_in, opts = {})
|
42
|
-
if @api_client.config.debugging
|
43
|
-
@api_client.config.logger.debug 'Calling API: EndpointApi.v1_endpoint_create ...'
|
44
|
-
end
|
45
|
-
# verify the required parameter 'app_id' is set
|
46
|
-
if @api_client.config.client_side_validation && app_id.nil?
|
47
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_endpoint_create"
|
48
|
-
end
|
49
|
-
if @api_client.config.client_side_validation && app_id.to_s.length > 256
|
50
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_create, the character length must be smaller than or equal to 256.'
|
51
|
-
end
|
52
|
-
|
53
|
-
if @api_client.config.client_side_validation && app_id.to_s.length < 1
|
54
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_create, the character length must be great than or equal to 1.'
|
55
|
-
end
|
56
|
-
|
57
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
58
|
-
if @api_client.config.client_side_validation && app_id !~ pattern
|
59
|
-
fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_endpoint_create, must conform to the pattern #{pattern}."
|
60
|
-
end
|
61
|
-
|
62
|
-
# verify the required parameter 'endpoint_in' is set
|
63
|
-
if @api_client.config.client_side_validation && endpoint_in.nil?
|
64
|
-
fail ArgumentError, "Missing the required parameter 'endpoint_in' when calling EndpointApi.v1_endpoint_create"
|
65
|
-
end
|
66
|
-
# resource path
|
67
|
-
local_var_path = '/api/v1/app/{app_id}/endpoint'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
|
68
|
-
|
69
|
-
# query parameters
|
70
|
-
query_params = opts[:query_params] || {}
|
71
|
-
|
72
|
-
# header parameters
|
73
|
-
header_params = opts[:header_params] || {}
|
74
|
-
# HTTP header 'Accept' (if needed)
|
75
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
76
|
-
# HTTP header 'Content-Type'
|
77
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
78
|
-
if !content_type.nil?
|
79
|
-
header_params['Content-Type'] = content_type
|
80
|
-
end
|
81
|
-
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
82
|
-
|
83
|
-
# form parameters
|
84
|
-
form_params = opts[:form_params] || {}
|
85
|
-
|
86
|
-
# http body (model)
|
87
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(endpoint_in)
|
88
|
-
|
89
|
-
# return_type
|
90
|
-
return_type = opts[:debug_return_type] || 'EndpointOut'
|
91
|
-
|
92
|
-
# auth_names
|
93
|
-
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
94
|
-
|
95
|
-
new_options = opts.merge(
|
96
|
-
:operation => :"EndpointApi.v1_endpoint_create",
|
97
|
-
:header_params => header_params,
|
98
|
-
:query_params => query_params,
|
99
|
-
:form_params => form_params,
|
100
|
-
:body => post_body,
|
101
|
-
:auth_names => auth_names,
|
102
|
-
:return_type => return_type
|
103
|
-
)
|
104
|
-
|
105
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
106
|
-
if @api_client.config.debugging
|
107
|
-
@api_client.config.logger.debug "API called: EndpointApi#v1_endpoint_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
108
|
-
end
|
109
|
-
return data, status_code, headers
|
110
|
-
end
|
111
|
-
|
112
|
-
# Delete Endpoint
|
113
|
-
# Delete an endpoint.
|
114
|
-
# @param app_id [String] The Application's ID or UID.
|
115
|
-
# @param endpoint_id [String] The Endpoint's ID or UID.
|
116
|
-
# @param [Hash] opts the optional parameters
|
117
|
-
# @return [nil]
|
118
|
-
def v1_endpoint_delete(app_id, endpoint_id, opts = {})
|
119
|
-
v1_endpoint_delete_with_http_info(app_id, endpoint_id, opts)
|
120
|
-
nil
|
121
|
-
end
|
122
|
-
|
123
|
-
# Delete Endpoint
|
124
|
-
# Delete an endpoint.
|
125
|
-
# @param app_id [String] The Application's ID or UID.
|
126
|
-
# @param endpoint_id [String] The Endpoint's ID or UID.
|
127
|
-
# @param [Hash] opts the optional parameters
|
128
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
129
|
-
def v1_endpoint_delete_with_http_info(app_id, endpoint_id, opts = {})
|
130
|
-
if @api_client.config.debugging
|
131
|
-
@api_client.config.logger.debug 'Calling API: EndpointApi.v1_endpoint_delete ...'
|
132
|
-
end
|
133
|
-
# verify the required parameter 'app_id' is set
|
134
|
-
if @api_client.config.client_side_validation && app_id.nil?
|
135
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_endpoint_delete"
|
136
|
-
end
|
137
|
-
if @api_client.config.client_side_validation && app_id.to_s.length > 256
|
138
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_delete, the character length must be smaller than or equal to 256.'
|
139
|
-
end
|
140
|
-
|
141
|
-
if @api_client.config.client_side_validation && app_id.to_s.length < 1
|
142
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_delete, the character length must be great than or equal to 1.'
|
143
|
-
end
|
144
|
-
|
145
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
146
|
-
if @api_client.config.client_side_validation && app_id !~ pattern
|
147
|
-
fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_endpoint_delete, must conform to the pattern #{pattern}."
|
148
|
-
end
|
149
|
-
|
150
|
-
# verify the required parameter 'endpoint_id' is set
|
151
|
-
if @api_client.config.client_side_validation && endpoint_id.nil?
|
152
|
-
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.v1_endpoint_delete"
|
153
|
-
end
|
154
|
-
if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
|
155
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_delete, the character length must be smaller than or equal to 256.'
|
156
|
-
end
|
157
|
-
|
158
|
-
if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
|
159
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_delete, the character length must be great than or equal to 1.'
|
160
|
-
end
|
161
|
-
|
162
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
163
|
-
if @api_client.config.client_side_validation && endpoint_id !~ pattern
|
164
|
-
fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.v1_endpoint_delete, must conform to the pattern #{pattern}."
|
165
|
-
end
|
166
|
-
|
167
|
-
# resource path
|
168
|
-
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
169
|
-
|
170
|
-
# query parameters
|
171
|
-
query_params = opts[:query_params] || {}
|
172
|
-
|
173
|
-
# header parameters
|
174
|
-
header_params = opts[:header_params] || {}
|
175
|
-
# HTTP header 'Accept' (if needed)
|
176
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
177
|
-
|
178
|
-
# form parameters
|
179
|
-
form_params = opts[:form_params] || {}
|
180
|
-
|
181
|
-
# http body (model)
|
182
|
-
post_body = opts[:debug_body]
|
183
|
-
|
184
|
-
# return_type
|
185
|
-
return_type = opts[:debug_return_type]
|
186
|
-
|
187
|
-
# auth_names
|
188
|
-
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
189
|
-
|
190
|
-
new_options = opts.merge(
|
191
|
-
:operation => :"EndpointApi.v1_endpoint_delete",
|
192
|
-
:header_params => header_params,
|
193
|
-
:query_params => query_params,
|
194
|
-
:form_params => form_params,
|
195
|
-
:body => post_body,
|
196
|
-
:auth_names => auth_names,
|
197
|
-
:return_type => return_type
|
198
|
-
)
|
199
|
-
|
200
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
201
|
-
if @api_client.config.debugging
|
202
|
-
@api_client.config.logger.debug "API called: EndpointApi#v1_endpoint_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
203
|
-
end
|
204
|
-
return data, status_code, headers
|
205
|
-
end
|
206
|
-
|
207
|
-
# Delete Endpoint Mtls Config
|
208
|
-
# Delete endpoint mTLS configuration.
|
209
|
-
# @param app_id [String] The Application's ID or UID.
|
210
|
-
# @param endpoint_id [String] The Endpoint's ID or UID.
|
211
|
-
# @param [Hash] opts the optional parameters
|
212
|
-
# @return [nil]
|
213
|
-
def v1_endpoint_delete_mtls_config(app_id, endpoint_id, opts = {})
|
214
|
-
v1_endpoint_delete_mtls_config_with_http_info(app_id, endpoint_id, opts)
|
215
|
-
nil
|
216
|
-
end
|
217
|
-
|
218
|
-
# Delete Endpoint Mtls Config
|
219
|
-
# Delete endpoint mTLS configuration.
|
220
|
-
# @param app_id [String] The Application's ID or UID.
|
221
|
-
# @param endpoint_id [String] The Endpoint's ID or UID.
|
222
|
-
# @param [Hash] opts the optional parameters
|
223
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
224
|
-
def v1_endpoint_delete_mtls_config_with_http_info(app_id, endpoint_id, opts = {})
|
225
|
-
if @api_client.config.debugging
|
226
|
-
@api_client.config.logger.debug 'Calling API: EndpointApi.v1_endpoint_delete_mtls_config ...'
|
227
|
-
end
|
228
|
-
# verify the required parameter 'app_id' is set
|
229
|
-
if @api_client.config.client_side_validation && app_id.nil?
|
230
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_endpoint_delete_mtls_config"
|
231
|
-
end
|
232
|
-
if @api_client.config.client_side_validation && app_id.to_s.length > 256
|
233
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_delete_mtls_config, the character length must be smaller than or equal to 256.'
|
234
|
-
end
|
235
|
-
|
236
|
-
if @api_client.config.client_side_validation && app_id.to_s.length < 1
|
237
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_delete_mtls_config, the character length must be great than or equal to 1.'
|
238
|
-
end
|
239
|
-
|
240
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
241
|
-
if @api_client.config.client_side_validation && app_id !~ pattern
|
242
|
-
fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_endpoint_delete_mtls_config, must conform to the pattern #{pattern}."
|
243
|
-
end
|
244
|
-
|
245
|
-
# verify the required parameter 'endpoint_id' is set
|
246
|
-
if @api_client.config.client_side_validation && endpoint_id.nil?
|
247
|
-
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.v1_endpoint_delete_mtls_config"
|
248
|
-
end
|
249
|
-
if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
|
250
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_delete_mtls_config, the character length must be smaller than or equal to 256.'
|
251
|
-
end
|
252
|
-
|
253
|
-
if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
|
254
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_delete_mtls_config, the character length must be great than or equal to 1.'
|
255
|
-
end
|
256
|
-
|
257
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
258
|
-
if @api_client.config.client_side_validation && endpoint_id !~ pattern
|
259
|
-
fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.v1_endpoint_delete_mtls_config, must conform to the pattern #{pattern}."
|
260
|
-
end
|
261
|
-
|
262
|
-
# resource path
|
263
|
-
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/mtls'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
264
|
-
|
265
|
-
# query parameters
|
266
|
-
query_params = opts[:query_params] || {}
|
267
|
-
|
268
|
-
# header parameters
|
269
|
-
header_params = opts[:header_params] || {}
|
270
|
-
# HTTP header 'Accept' (if needed)
|
271
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
272
|
-
|
273
|
-
# form parameters
|
274
|
-
form_params = opts[:form_params] || {}
|
275
|
-
|
276
|
-
# http body (model)
|
277
|
-
post_body = opts[:debug_body]
|
278
|
-
|
279
|
-
# return_type
|
280
|
-
return_type = opts[:debug_return_type]
|
281
|
-
|
282
|
-
# auth_names
|
283
|
-
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
284
|
-
|
285
|
-
new_options = opts.merge(
|
286
|
-
:operation => :"EndpointApi.v1_endpoint_delete_mtls_config",
|
287
|
-
:header_params => header_params,
|
288
|
-
:query_params => query_params,
|
289
|
-
:form_params => form_params,
|
290
|
-
:body => post_body,
|
291
|
-
:auth_names => auth_names,
|
292
|
-
:return_type => return_type
|
293
|
-
)
|
294
|
-
|
295
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
296
|
-
if @api_client.config.debugging
|
297
|
-
@api_client.config.logger.debug "API called: EndpointApi#v1_endpoint_delete_mtls_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
298
|
-
end
|
299
|
-
return data, status_code, headers
|
300
|
-
end
|
301
|
-
|
302
|
-
# Delete Endpoint Oauth Config
|
303
|
-
# Delete endpoint OAuth configuration.
|
304
|
-
# @param app_id [String] The Application's ID or UID.
|
305
|
-
# @param endpoint_id [String] The Endpoint's ID or UID.
|
306
|
-
# @param [Hash] opts the optional parameters
|
307
|
-
# @return [nil]
|
308
|
-
def v1_endpoint_delete_oauth_config(app_id, endpoint_id, opts = {})
|
309
|
-
v1_endpoint_delete_oauth_config_with_http_info(app_id, endpoint_id, opts)
|
310
|
-
nil
|
311
|
-
end
|
312
|
-
|
313
|
-
# Delete Endpoint Oauth Config
|
314
|
-
# Delete endpoint OAuth configuration.
|
315
|
-
# @param app_id [String] The Application's ID or UID.
|
316
|
-
# @param endpoint_id [String] The Endpoint's ID or UID.
|
317
|
-
# @param [Hash] opts the optional parameters
|
318
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
319
|
-
def v1_endpoint_delete_oauth_config_with_http_info(app_id, endpoint_id, opts = {})
|
320
|
-
if @api_client.config.debugging
|
321
|
-
@api_client.config.logger.debug 'Calling API: EndpointApi.v1_endpoint_delete_oauth_config ...'
|
322
|
-
end
|
323
|
-
# verify the required parameter 'app_id' is set
|
324
|
-
if @api_client.config.client_side_validation && app_id.nil?
|
325
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_endpoint_delete_oauth_config"
|
326
|
-
end
|
327
|
-
if @api_client.config.client_side_validation && app_id.to_s.length > 256
|
328
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_delete_oauth_config, the character length must be smaller than or equal to 256.'
|
329
|
-
end
|
330
|
-
|
331
|
-
if @api_client.config.client_side_validation && app_id.to_s.length < 1
|
332
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_delete_oauth_config, the character length must be great than or equal to 1.'
|
333
|
-
end
|
334
|
-
|
335
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
336
|
-
if @api_client.config.client_side_validation && app_id !~ pattern
|
337
|
-
fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_endpoint_delete_oauth_config, must conform to the pattern #{pattern}."
|
338
|
-
end
|
339
|
-
|
340
|
-
# verify the required parameter 'endpoint_id' is set
|
341
|
-
if @api_client.config.client_side_validation && endpoint_id.nil?
|
342
|
-
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.v1_endpoint_delete_oauth_config"
|
343
|
-
end
|
344
|
-
if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
|
345
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_delete_oauth_config, the character length must be smaller than or equal to 256.'
|
346
|
-
end
|
347
|
-
|
348
|
-
if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
|
349
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_delete_oauth_config, the character length must be great than or equal to 1.'
|
350
|
-
end
|
351
|
-
|
352
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
353
|
-
if @api_client.config.client_side_validation && endpoint_id !~ pattern
|
354
|
-
fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.v1_endpoint_delete_oauth_config, must conform to the pattern #{pattern}."
|
355
|
-
end
|
356
|
-
|
357
|
-
# resource path
|
358
|
-
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/oauth'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
359
|
-
|
360
|
-
# query parameters
|
361
|
-
query_params = opts[:query_params] || {}
|
362
|
-
|
363
|
-
# header parameters
|
364
|
-
header_params = opts[:header_params] || {}
|
365
|
-
# HTTP header 'Accept' (if needed)
|
366
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
367
|
-
|
368
|
-
# form parameters
|
369
|
-
form_params = opts[:form_params] || {}
|
370
|
-
|
371
|
-
# http body (model)
|
372
|
-
post_body = opts[:debug_body]
|
373
|
-
|
374
|
-
# return_type
|
375
|
-
return_type = opts[:debug_return_type]
|
376
|
-
|
377
|
-
# auth_names
|
378
|
-
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
379
|
-
|
380
|
-
new_options = opts.merge(
|
381
|
-
:operation => :"EndpointApi.v1_endpoint_delete_oauth_config",
|
382
|
-
:header_params => header_params,
|
383
|
-
:query_params => query_params,
|
384
|
-
:form_params => form_params,
|
385
|
-
:body => post_body,
|
386
|
-
:auth_names => auth_names,
|
387
|
-
:return_type => return_type
|
388
|
-
)
|
389
|
-
|
390
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
391
|
-
if @api_client.config.debugging
|
392
|
-
@api_client.config.logger.debug "API called: EndpointApi#v1_endpoint_delete_oauth_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
393
|
-
end
|
394
|
-
return data, status_code, headers
|
395
|
-
end
|
396
|
-
|
397
|
-
# Get Endpoint
|
398
|
-
# Get an endpoint.
|
399
|
-
# @param app_id [String] The Application's ID or UID.
|
400
|
-
# @param endpoint_id [String] The Endpoint's ID or UID.
|
401
|
-
# @param [Hash] opts the optional parameters
|
402
|
-
# @return [EndpointOut]
|
403
|
-
def v1_endpoint_get(app_id, endpoint_id, opts = {})
|
404
|
-
data, _status_code, _headers = v1_endpoint_get_with_http_info(app_id, endpoint_id, opts)
|
405
|
-
data
|
406
|
-
end
|
407
|
-
|
408
|
-
# Get Endpoint
|
409
|
-
# Get an endpoint.
|
410
|
-
# @param app_id [String] The Application's ID or UID.
|
411
|
-
# @param endpoint_id [String] The Endpoint's ID or UID.
|
412
|
-
# @param [Hash] opts the optional parameters
|
413
|
-
# @return [Array<(EndpointOut, Integer, Hash)>] EndpointOut data, response status code and response headers
|
414
|
-
def v1_endpoint_get_with_http_info(app_id, endpoint_id, opts = {})
|
415
|
-
if @api_client.config.debugging
|
416
|
-
@api_client.config.logger.debug 'Calling API: EndpointApi.v1_endpoint_get ...'
|
417
|
-
end
|
418
|
-
# verify the required parameter 'app_id' is set
|
419
|
-
if @api_client.config.client_side_validation && app_id.nil?
|
420
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_endpoint_get"
|
421
|
-
end
|
422
|
-
if @api_client.config.client_side_validation && app_id.to_s.length > 256
|
423
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_get, the character length must be smaller than or equal to 256.'
|
424
|
-
end
|
425
|
-
|
426
|
-
if @api_client.config.client_side_validation && app_id.to_s.length < 1
|
427
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_get, the character length must be great than or equal to 1.'
|
428
|
-
end
|
429
|
-
|
430
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
431
|
-
if @api_client.config.client_side_validation && app_id !~ pattern
|
432
|
-
fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_endpoint_get, must conform to the pattern #{pattern}."
|
433
|
-
end
|
434
|
-
|
435
|
-
# verify the required parameter 'endpoint_id' is set
|
436
|
-
if @api_client.config.client_side_validation && endpoint_id.nil?
|
437
|
-
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.v1_endpoint_get"
|
438
|
-
end
|
439
|
-
if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
|
440
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_get, the character length must be smaller than or equal to 256.'
|
441
|
-
end
|
442
|
-
|
443
|
-
if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
|
444
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_get, the character length must be great than or equal to 1.'
|
445
|
-
end
|
446
|
-
|
447
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
448
|
-
if @api_client.config.client_side_validation && endpoint_id !~ pattern
|
449
|
-
fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.v1_endpoint_get, must conform to the pattern #{pattern}."
|
450
|
-
end
|
451
|
-
|
452
|
-
# resource path
|
453
|
-
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
454
|
-
|
455
|
-
# query parameters
|
456
|
-
query_params = opts[:query_params] || {}
|
457
|
-
|
458
|
-
# header parameters
|
459
|
-
header_params = opts[:header_params] || {}
|
460
|
-
# HTTP header 'Accept' (if needed)
|
461
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
462
|
-
|
463
|
-
# form parameters
|
464
|
-
form_params = opts[:form_params] || {}
|
465
|
-
|
466
|
-
# http body (model)
|
467
|
-
post_body = opts[:debug_body]
|
468
|
-
|
469
|
-
# return_type
|
470
|
-
return_type = opts[:debug_return_type] || 'EndpointOut'
|
471
|
-
|
472
|
-
# auth_names
|
473
|
-
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
474
|
-
|
475
|
-
new_options = opts.merge(
|
476
|
-
:operation => :"EndpointApi.v1_endpoint_get",
|
477
|
-
:header_params => header_params,
|
478
|
-
:query_params => query_params,
|
479
|
-
:form_params => form_params,
|
480
|
-
:body => post_body,
|
481
|
-
:auth_names => auth_names,
|
482
|
-
:return_type => return_type
|
483
|
-
)
|
484
|
-
|
485
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
486
|
-
if @api_client.config.debugging
|
487
|
-
@api_client.config.logger.debug "API called: EndpointApi#v1_endpoint_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
488
|
-
end
|
489
|
-
return data, status_code, headers
|
490
|
-
end
|
491
|
-
|
492
|
-
# Get Endpoint Headers
|
493
|
-
# Get the additional headers to be sent with the webhook.
|
494
|
-
# @param app_id [String] The Application's ID or UID.
|
495
|
-
# @param endpoint_id [String] The Endpoint's ID or UID.
|
496
|
-
# @param [Hash] opts the optional parameters
|
497
|
-
# @return [EndpointHeadersOut]
|
498
|
-
def v1_endpoint_get_headers(app_id, endpoint_id, opts = {})
|
499
|
-
data, _status_code, _headers = v1_endpoint_get_headers_with_http_info(app_id, endpoint_id, opts)
|
500
|
-
data
|
501
|
-
end
|
502
|
-
|
503
|
-
# Get Endpoint Headers
|
504
|
-
# Get the additional headers to be sent with the webhook.
|
505
|
-
# @param app_id [String] The Application's ID or UID.
|
506
|
-
# @param endpoint_id [String] The Endpoint's ID or UID.
|
507
|
-
# @param [Hash] opts the optional parameters
|
508
|
-
# @return [Array<(EndpointHeadersOut, Integer, Hash)>] EndpointHeadersOut data, response status code and response headers
|
509
|
-
def v1_endpoint_get_headers_with_http_info(app_id, endpoint_id, opts = {})
|
510
|
-
if @api_client.config.debugging
|
511
|
-
@api_client.config.logger.debug 'Calling API: EndpointApi.v1_endpoint_get_headers ...'
|
512
|
-
end
|
513
|
-
# verify the required parameter 'app_id' is set
|
514
|
-
if @api_client.config.client_side_validation && app_id.nil?
|
515
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_endpoint_get_headers"
|
516
|
-
end
|
517
|
-
if @api_client.config.client_side_validation && app_id.to_s.length > 256
|
518
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_get_headers, the character length must be smaller than or equal to 256.'
|
519
|
-
end
|
520
|
-
|
521
|
-
if @api_client.config.client_side_validation && app_id.to_s.length < 1
|
522
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_get_headers, the character length must be great than or equal to 1.'
|
523
|
-
end
|
524
|
-
|
525
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
526
|
-
if @api_client.config.client_side_validation && app_id !~ pattern
|
527
|
-
fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_endpoint_get_headers, must conform to the pattern #{pattern}."
|
528
|
-
end
|
529
|
-
|
530
|
-
# verify the required parameter 'endpoint_id' is set
|
531
|
-
if @api_client.config.client_side_validation && endpoint_id.nil?
|
532
|
-
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.v1_endpoint_get_headers"
|
533
|
-
end
|
534
|
-
if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
|
535
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_get_headers, the character length must be smaller than or equal to 256.'
|
536
|
-
end
|
537
|
-
|
538
|
-
if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
|
539
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_get_headers, the character length must be great than or equal to 1.'
|
540
|
-
end
|
541
|
-
|
542
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
543
|
-
if @api_client.config.client_side_validation && endpoint_id !~ pattern
|
544
|
-
fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.v1_endpoint_get_headers, must conform to the pattern #{pattern}."
|
545
|
-
end
|
546
|
-
|
547
|
-
# resource path
|
548
|
-
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/headers'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
549
|
-
|
550
|
-
# query parameters
|
551
|
-
query_params = opts[:query_params] || {}
|
552
|
-
|
553
|
-
# header parameters
|
554
|
-
header_params = opts[:header_params] || {}
|
555
|
-
# HTTP header 'Accept' (if needed)
|
556
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
557
|
-
|
558
|
-
# form parameters
|
559
|
-
form_params = opts[:form_params] || {}
|
560
|
-
|
561
|
-
# http body (model)
|
562
|
-
post_body = opts[:debug_body]
|
563
|
-
|
564
|
-
# return_type
|
565
|
-
return_type = opts[:debug_return_type] || 'EndpointHeadersOut'
|
566
|
-
|
567
|
-
# auth_names
|
568
|
-
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
569
|
-
|
570
|
-
new_options = opts.merge(
|
571
|
-
:operation => :"EndpointApi.v1_endpoint_get_headers",
|
572
|
-
:header_params => header_params,
|
573
|
-
:query_params => query_params,
|
574
|
-
:form_params => form_params,
|
575
|
-
:body => post_body,
|
576
|
-
:auth_names => auth_names,
|
577
|
-
:return_type => return_type
|
578
|
-
)
|
579
|
-
|
580
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
581
|
-
if @api_client.config.debugging
|
582
|
-
@api_client.config.logger.debug "API called: EndpointApi#v1_endpoint_get_headers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
583
|
-
end
|
584
|
-
return data, status_code, headers
|
585
|
-
end
|
586
|
-
|
587
|
-
# Get Endpoint Mtls Config
|
588
|
-
# Get endpoint mTLS configuration.
|
589
|
-
# @param app_id [String] The Application's ID or UID.
|
590
|
-
# @param endpoint_id [String] The Endpoint's ID or UID.
|
591
|
-
# @param [Hash] opts the optional parameters
|
592
|
-
# @return [EndpointMtlsConfigOut]
|
593
|
-
def v1_endpoint_get_mtls_config(app_id, endpoint_id, opts = {})
|
594
|
-
data, _status_code, _headers = v1_endpoint_get_mtls_config_with_http_info(app_id, endpoint_id, opts)
|
595
|
-
data
|
596
|
-
end
|
597
|
-
|
598
|
-
# Get Endpoint Mtls Config
|
599
|
-
# Get endpoint mTLS configuration.
|
600
|
-
# @param app_id [String] The Application's ID or UID.
|
601
|
-
# @param endpoint_id [String] The Endpoint's ID or UID.
|
602
|
-
# @param [Hash] opts the optional parameters
|
603
|
-
# @return [Array<(EndpointMtlsConfigOut, Integer, Hash)>] EndpointMtlsConfigOut data, response status code and response headers
|
604
|
-
def v1_endpoint_get_mtls_config_with_http_info(app_id, endpoint_id, opts = {})
|
605
|
-
if @api_client.config.debugging
|
606
|
-
@api_client.config.logger.debug 'Calling API: EndpointApi.v1_endpoint_get_mtls_config ...'
|
607
|
-
end
|
608
|
-
# verify the required parameter 'app_id' is set
|
609
|
-
if @api_client.config.client_side_validation && app_id.nil?
|
610
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_endpoint_get_mtls_config"
|
611
|
-
end
|
612
|
-
if @api_client.config.client_side_validation && app_id.to_s.length > 256
|
613
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_get_mtls_config, the character length must be smaller than or equal to 256.'
|
614
|
-
end
|
615
|
-
|
616
|
-
if @api_client.config.client_side_validation && app_id.to_s.length < 1
|
617
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_get_mtls_config, the character length must be great than or equal to 1.'
|
618
|
-
end
|
619
|
-
|
620
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
621
|
-
if @api_client.config.client_side_validation && app_id !~ pattern
|
622
|
-
fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_endpoint_get_mtls_config, must conform to the pattern #{pattern}."
|
623
|
-
end
|
624
|
-
|
625
|
-
# verify the required parameter 'endpoint_id' is set
|
626
|
-
if @api_client.config.client_side_validation && endpoint_id.nil?
|
627
|
-
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.v1_endpoint_get_mtls_config"
|
628
|
-
end
|
629
|
-
if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
|
630
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_get_mtls_config, the character length must be smaller than or equal to 256.'
|
631
|
-
end
|
632
|
-
|
633
|
-
if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
|
634
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_get_mtls_config, the character length must be great than or equal to 1.'
|
635
|
-
end
|
636
|
-
|
637
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
638
|
-
if @api_client.config.client_side_validation && endpoint_id !~ pattern
|
639
|
-
fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.v1_endpoint_get_mtls_config, must conform to the pattern #{pattern}."
|
640
|
-
end
|
641
|
-
|
642
|
-
# resource path
|
643
|
-
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/mtls'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
644
|
-
|
645
|
-
# query parameters
|
646
|
-
query_params = opts[:query_params] || {}
|
647
|
-
|
648
|
-
# header parameters
|
649
|
-
header_params = opts[:header_params] || {}
|
650
|
-
# HTTP header 'Accept' (if needed)
|
651
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
652
|
-
|
653
|
-
# form parameters
|
654
|
-
form_params = opts[:form_params] || {}
|
655
|
-
|
656
|
-
# http body (model)
|
657
|
-
post_body = opts[:debug_body]
|
658
|
-
|
659
|
-
# return_type
|
660
|
-
return_type = opts[:debug_return_type] || 'EndpointMtlsConfigOut'
|
661
|
-
|
662
|
-
# auth_names
|
663
|
-
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
664
|
-
|
665
|
-
new_options = opts.merge(
|
666
|
-
:operation => :"EndpointApi.v1_endpoint_get_mtls_config",
|
667
|
-
:header_params => header_params,
|
668
|
-
:query_params => query_params,
|
669
|
-
:form_params => form_params,
|
670
|
-
:body => post_body,
|
671
|
-
:auth_names => auth_names,
|
672
|
-
:return_type => return_type
|
673
|
-
)
|
674
|
-
|
675
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
676
|
-
if @api_client.config.debugging
|
677
|
-
@api_client.config.logger.debug "API called: EndpointApi#v1_endpoint_get_mtls_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
678
|
-
end
|
679
|
-
return data, status_code, headers
|
680
|
-
end
|
681
|
-
|
682
|
-
# Get Endpoint Oauth Config
|
683
|
-
# Get endpoint OAuth configuration.
|
684
|
-
# @param app_id [String] The Application's ID or UID.
|
685
|
-
# @param endpoint_id [String] The Endpoint's ID or UID.
|
686
|
-
# @param [Hash] opts the optional parameters
|
687
|
-
# @return [EndpointOauthConfigOut]
|
688
|
-
def v1_endpoint_get_oauth_config(app_id, endpoint_id, opts = {})
|
689
|
-
data, _status_code, _headers = v1_endpoint_get_oauth_config_with_http_info(app_id, endpoint_id, opts)
|
690
|
-
data
|
691
|
-
end
|
692
|
-
|
693
|
-
# Get Endpoint Oauth Config
|
694
|
-
# Get endpoint OAuth configuration.
|
695
|
-
# @param app_id [String] The Application's ID or UID.
|
696
|
-
# @param endpoint_id [String] The Endpoint's ID or UID.
|
697
|
-
# @param [Hash] opts the optional parameters
|
698
|
-
# @return [Array<(EndpointOauthConfigOut, Integer, Hash)>] EndpointOauthConfigOut data, response status code and response headers
|
699
|
-
def v1_endpoint_get_oauth_config_with_http_info(app_id, endpoint_id, opts = {})
|
700
|
-
if @api_client.config.debugging
|
701
|
-
@api_client.config.logger.debug 'Calling API: EndpointApi.v1_endpoint_get_oauth_config ...'
|
702
|
-
end
|
703
|
-
# verify the required parameter 'app_id' is set
|
704
|
-
if @api_client.config.client_side_validation && app_id.nil?
|
705
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_endpoint_get_oauth_config"
|
706
|
-
end
|
707
|
-
if @api_client.config.client_side_validation && app_id.to_s.length > 256
|
708
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_get_oauth_config, the character length must be smaller than or equal to 256.'
|
709
|
-
end
|
710
|
-
|
711
|
-
if @api_client.config.client_side_validation && app_id.to_s.length < 1
|
712
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_get_oauth_config, the character length must be great than or equal to 1.'
|
713
|
-
end
|
714
|
-
|
715
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
716
|
-
if @api_client.config.client_side_validation && app_id !~ pattern
|
717
|
-
fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_endpoint_get_oauth_config, must conform to the pattern #{pattern}."
|
718
|
-
end
|
719
|
-
|
720
|
-
# verify the required parameter 'endpoint_id' is set
|
721
|
-
if @api_client.config.client_side_validation && endpoint_id.nil?
|
722
|
-
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.v1_endpoint_get_oauth_config"
|
723
|
-
end
|
724
|
-
if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
|
725
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_get_oauth_config, the character length must be smaller than or equal to 256.'
|
726
|
-
end
|
727
|
-
|
728
|
-
if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
|
729
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_get_oauth_config, the character length must be great than or equal to 1.'
|
730
|
-
end
|
731
|
-
|
732
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
733
|
-
if @api_client.config.client_side_validation && endpoint_id !~ pattern
|
734
|
-
fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.v1_endpoint_get_oauth_config, must conform to the pattern #{pattern}."
|
735
|
-
end
|
736
|
-
|
737
|
-
# resource path
|
738
|
-
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/oauth'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
739
|
-
|
740
|
-
# query parameters
|
741
|
-
query_params = opts[:query_params] || {}
|
742
|
-
|
743
|
-
# header parameters
|
744
|
-
header_params = opts[:header_params] || {}
|
745
|
-
# HTTP header 'Accept' (if needed)
|
746
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
747
|
-
|
748
|
-
# form parameters
|
749
|
-
form_params = opts[:form_params] || {}
|
750
|
-
|
751
|
-
# http body (model)
|
752
|
-
post_body = opts[:debug_body]
|
753
|
-
|
754
|
-
# return_type
|
755
|
-
return_type = opts[:debug_return_type] || 'EndpointOauthConfigOut'
|
756
|
-
|
757
|
-
# auth_names
|
758
|
-
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
759
|
-
|
760
|
-
new_options = opts.merge(
|
761
|
-
:operation => :"EndpointApi.v1_endpoint_get_oauth_config",
|
762
|
-
:header_params => header_params,
|
763
|
-
:query_params => query_params,
|
764
|
-
:form_params => form_params,
|
765
|
-
:body => post_body,
|
766
|
-
:auth_names => auth_names,
|
767
|
-
:return_type => return_type
|
768
|
-
)
|
769
|
-
|
770
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
771
|
-
if @api_client.config.debugging
|
772
|
-
@api_client.config.logger.debug "API called: EndpointApi#v1_endpoint_get_oauth_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
773
|
-
end
|
774
|
-
return data, status_code, headers
|
775
|
-
end
|
776
|
-
|
777
|
-
# Get Endpoint Secret
|
778
|
-
# Get the endpoint's signing secret. This is used to verify the authenticity of the webhook. For more information please refer to [the consuming webhooks docs](https://docs.svix.com/consuming-webhooks/).
|
779
|
-
# @param app_id [String] The Application's ID or UID.
|
780
|
-
# @param endpoint_id [String] The Endpoint's ID or UID.
|
781
|
-
# @param [Hash] opts the optional parameters
|
782
|
-
# @return [EndpointSecretOut]
|
783
|
-
def v1_endpoint_get_secret(app_id, endpoint_id, opts = {})
|
784
|
-
data, _status_code, _headers = v1_endpoint_get_secret_with_http_info(app_id, endpoint_id, opts)
|
785
|
-
data
|
786
|
-
end
|
787
|
-
|
788
|
-
# Get Endpoint Secret
|
789
|
-
# Get the endpoint's signing secret. This is used to verify the authenticity of the webhook. For more information please refer to [the consuming webhooks docs](https://docs.svix.com/consuming-webhooks/).
|
790
|
-
# @param app_id [String] The Application's ID or UID.
|
791
|
-
# @param endpoint_id [String] The Endpoint's ID or UID.
|
792
|
-
# @param [Hash] opts the optional parameters
|
793
|
-
# @return [Array<(EndpointSecretOut, Integer, Hash)>] EndpointSecretOut data, response status code and response headers
|
794
|
-
def v1_endpoint_get_secret_with_http_info(app_id, endpoint_id, opts = {})
|
795
|
-
if @api_client.config.debugging
|
796
|
-
@api_client.config.logger.debug 'Calling API: EndpointApi.v1_endpoint_get_secret ...'
|
797
|
-
end
|
798
|
-
# verify the required parameter 'app_id' is set
|
799
|
-
if @api_client.config.client_side_validation && app_id.nil?
|
800
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_endpoint_get_secret"
|
801
|
-
end
|
802
|
-
if @api_client.config.client_side_validation && app_id.to_s.length > 256
|
803
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_get_secret, the character length must be smaller than or equal to 256.'
|
804
|
-
end
|
805
|
-
|
806
|
-
if @api_client.config.client_side_validation && app_id.to_s.length < 1
|
807
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_get_secret, the character length must be great than or equal to 1.'
|
808
|
-
end
|
809
|
-
|
810
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
811
|
-
if @api_client.config.client_side_validation && app_id !~ pattern
|
812
|
-
fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_endpoint_get_secret, must conform to the pattern #{pattern}."
|
813
|
-
end
|
814
|
-
|
815
|
-
# verify the required parameter 'endpoint_id' is set
|
816
|
-
if @api_client.config.client_side_validation && endpoint_id.nil?
|
817
|
-
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.v1_endpoint_get_secret"
|
818
|
-
end
|
819
|
-
if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
|
820
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_get_secret, the character length must be smaller than or equal to 256.'
|
821
|
-
end
|
822
|
-
|
823
|
-
if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
|
824
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_get_secret, the character length must be great than or equal to 1.'
|
825
|
-
end
|
826
|
-
|
827
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
828
|
-
if @api_client.config.client_side_validation && endpoint_id !~ pattern
|
829
|
-
fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.v1_endpoint_get_secret, must conform to the pattern #{pattern}."
|
830
|
-
end
|
831
|
-
|
832
|
-
# resource path
|
833
|
-
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/secret'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
834
|
-
|
835
|
-
# query parameters
|
836
|
-
query_params = opts[:query_params] || {}
|
837
|
-
|
838
|
-
# header parameters
|
839
|
-
header_params = opts[:header_params] || {}
|
840
|
-
# HTTP header 'Accept' (if needed)
|
841
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
842
|
-
|
843
|
-
# form parameters
|
844
|
-
form_params = opts[:form_params] || {}
|
845
|
-
|
846
|
-
# http body (model)
|
847
|
-
post_body = opts[:debug_body]
|
848
|
-
|
849
|
-
# return_type
|
850
|
-
return_type = opts[:debug_return_type] || 'EndpointSecretOut'
|
851
|
-
|
852
|
-
# auth_names
|
853
|
-
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
854
|
-
|
855
|
-
new_options = opts.merge(
|
856
|
-
:operation => :"EndpointApi.v1_endpoint_get_secret",
|
857
|
-
:header_params => header_params,
|
858
|
-
:query_params => query_params,
|
859
|
-
:form_params => form_params,
|
860
|
-
:body => post_body,
|
861
|
-
:auth_names => auth_names,
|
862
|
-
:return_type => return_type
|
863
|
-
)
|
864
|
-
|
865
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
866
|
-
if @api_client.config.debugging
|
867
|
-
@api_client.config.logger.debug "API called: EndpointApi#v1_endpoint_get_secret\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
868
|
-
end
|
869
|
-
return data, status_code, headers
|
870
|
-
end
|
871
|
-
|
872
|
-
# Endpoint Stats
|
873
|
-
# Get basic statistics for the endpoint.
|
874
|
-
# @param app_id [String] The Application's ID or UID.
|
875
|
-
# @param endpoint_id [String] The Endpoint's ID or UID.
|
876
|
-
# @param [Hash] opts the optional parameters
|
877
|
-
# @option opts [Time] :since Filter the range to data starting from this date.
|
878
|
-
# @option opts [Time] :_until Filter the range to data ending by this date.
|
879
|
-
# @return [EndpointStats]
|
880
|
-
def v1_endpoint_get_stats(app_id, endpoint_id, opts = {})
|
881
|
-
data, _status_code, _headers = v1_endpoint_get_stats_with_http_info(app_id, endpoint_id, opts)
|
882
|
-
data
|
883
|
-
end
|
884
|
-
|
885
|
-
# Endpoint Stats
|
886
|
-
# Get basic statistics for the endpoint.
|
887
|
-
# @param app_id [String] The Application's ID or UID.
|
888
|
-
# @param endpoint_id [String] The Endpoint's ID or UID.
|
889
|
-
# @param [Hash] opts the optional parameters
|
890
|
-
# @option opts [Time] :since Filter the range to data starting from this date.
|
891
|
-
# @option opts [Time] :_until Filter the range to data ending by this date.
|
892
|
-
# @return [Array<(EndpointStats, Integer, Hash)>] EndpointStats data, response status code and response headers
|
893
|
-
def v1_endpoint_get_stats_with_http_info(app_id, endpoint_id, opts = {})
|
894
|
-
if @api_client.config.debugging
|
895
|
-
@api_client.config.logger.debug 'Calling API: EndpointApi.v1_endpoint_get_stats ...'
|
896
|
-
end
|
897
|
-
# verify the required parameter 'app_id' is set
|
898
|
-
if @api_client.config.client_side_validation && app_id.nil?
|
899
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_endpoint_get_stats"
|
900
|
-
end
|
901
|
-
if @api_client.config.client_side_validation && app_id.to_s.length > 256
|
902
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_get_stats, the character length must be smaller than or equal to 256.'
|
903
|
-
end
|
904
|
-
|
905
|
-
if @api_client.config.client_side_validation && app_id.to_s.length < 1
|
906
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_get_stats, the character length must be great than or equal to 1.'
|
907
|
-
end
|
908
|
-
|
909
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
910
|
-
if @api_client.config.client_side_validation && app_id !~ pattern
|
911
|
-
fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_endpoint_get_stats, must conform to the pattern #{pattern}."
|
912
|
-
end
|
913
|
-
|
914
|
-
# verify the required parameter 'endpoint_id' is set
|
915
|
-
if @api_client.config.client_side_validation && endpoint_id.nil?
|
916
|
-
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.v1_endpoint_get_stats"
|
917
|
-
end
|
918
|
-
if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
|
919
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_get_stats, the character length must be smaller than or equal to 256.'
|
920
|
-
end
|
921
|
-
|
922
|
-
if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
|
923
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_get_stats, the character length must be great than or equal to 1.'
|
924
|
-
end
|
925
|
-
|
926
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
927
|
-
if @api_client.config.client_side_validation && endpoint_id !~ pattern
|
928
|
-
fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.v1_endpoint_get_stats, must conform to the pattern #{pattern}."
|
929
|
-
end
|
930
|
-
|
931
|
-
# resource path
|
932
|
-
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/stats'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
933
|
-
|
934
|
-
# query parameters
|
935
|
-
query_params = opts[:query_params] || {}
|
936
|
-
query_params[:'since'] = opts[:'since'] if !opts[:'since'].nil?
|
937
|
-
query_params[:'until'] = opts[:'_until'] if !opts[:'_until'].nil?
|
938
|
-
|
939
|
-
# header parameters
|
940
|
-
header_params = opts[:header_params] || {}
|
941
|
-
# HTTP header 'Accept' (if needed)
|
942
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
943
|
-
|
944
|
-
# form parameters
|
945
|
-
form_params = opts[:form_params] || {}
|
946
|
-
|
947
|
-
# http body (model)
|
948
|
-
post_body = opts[:debug_body]
|
949
|
-
|
950
|
-
# return_type
|
951
|
-
return_type = opts[:debug_return_type] || 'EndpointStats'
|
952
|
-
|
953
|
-
# auth_names
|
954
|
-
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
955
|
-
|
956
|
-
new_options = opts.merge(
|
957
|
-
:operation => :"EndpointApi.v1_endpoint_get_stats",
|
958
|
-
:header_params => header_params,
|
959
|
-
:query_params => query_params,
|
960
|
-
:form_params => form_params,
|
961
|
-
:body => post_body,
|
962
|
-
:auth_names => auth_names,
|
963
|
-
:return_type => return_type
|
964
|
-
)
|
965
|
-
|
966
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
967
|
-
if @api_client.config.debugging
|
968
|
-
@api_client.config.logger.debug "API called: EndpointApi#v1_endpoint_get_stats\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
969
|
-
end
|
970
|
-
return data, status_code, headers
|
971
|
-
end
|
972
|
-
|
973
|
-
# List Endpoints
|
974
|
-
# List the application's endpoints.
|
975
|
-
# @param app_id [String] The Application's ID or UID.
|
976
|
-
# @param [Hash] opts the optional parameters
|
977
|
-
# @option opts [Integer] :limit Limit the number of returned items
|
978
|
-
# @option opts [String] :iterator The iterator returned from a prior invocation
|
979
|
-
# @option opts [Ordering] :order The sorting order of the returned items
|
980
|
-
# @return [ListResponseEndpointOut]
|
981
|
-
def v1_endpoint_list(app_id, opts = {})
|
982
|
-
data, _status_code, _headers = v1_endpoint_list_with_http_info(app_id, opts)
|
983
|
-
data
|
984
|
-
end
|
985
|
-
|
986
|
-
# List Endpoints
|
987
|
-
# List the application's endpoints.
|
988
|
-
# @param app_id [String] The Application's ID or UID.
|
989
|
-
# @param [Hash] opts the optional parameters
|
990
|
-
# @option opts [Integer] :limit Limit the number of returned items
|
991
|
-
# @option opts [String] :iterator The iterator returned from a prior invocation
|
992
|
-
# @option opts [Ordering] :order The sorting order of the returned items
|
993
|
-
# @return [Array<(ListResponseEndpointOut, Integer, Hash)>] ListResponseEndpointOut data, response status code and response headers
|
994
|
-
def v1_endpoint_list_with_http_info(app_id, opts = {})
|
995
|
-
if @api_client.config.debugging
|
996
|
-
@api_client.config.logger.debug 'Calling API: EndpointApi.v1_endpoint_list ...'
|
997
|
-
end
|
998
|
-
# verify the required parameter 'app_id' is set
|
999
|
-
if @api_client.config.client_side_validation && app_id.nil?
|
1000
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_endpoint_list"
|
1001
|
-
end
|
1002
|
-
if @api_client.config.client_side_validation && app_id.to_s.length > 256
|
1003
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_list, the character length must be smaller than or equal to 256.'
|
1004
|
-
end
|
1005
|
-
|
1006
|
-
if @api_client.config.client_side_validation && app_id.to_s.length < 1
|
1007
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_list, the character length must be great than or equal to 1.'
|
1008
|
-
end
|
1009
|
-
|
1010
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
1011
|
-
if @api_client.config.client_side_validation && app_id !~ pattern
|
1012
|
-
fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_endpoint_list, must conform to the pattern #{pattern}."
|
1013
|
-
end
|
1014
|
-
|
1015
|
-
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 250
|
1016
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling EndpointApi.v1_endpoint_list, must be smaller than or equal to 250.'
|
1017
|
-
end
|
1018
|
-
|
1019
|
-
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
1020
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling EndpointApi.v1_endpoint_list, must be greater than or equal to 1.'
|
1021
|
-
end
|
1022
|
-
|
1023
|
-
if @api_client.config.client_side_validation && !opts[:'iterator'].nil? && opts[:'iterator'].to_s.length > 30
|
1024
|
-
fail ArgumentError, 'invalid value for "opts[:"iterator"]" when calling EndpointApi.v1_endpoint_list, the character length must be smaller than or equal to 30.'
|
1025
|
-
end
|
1026
|
-
|
1027
|
-
if @api_client.config.client_side_validation && !opts[:'iterator'].nil? && opts[:'iterator'].to_s.length < 30
|
1028
|
-
fail ArgumentError, 'invalid value for "opts[:"iterator"]" when calling EndpointApi.v1_endpoint_list, the character length must be great than or equal to 30.'
|
1029
|
-
end
|
1030
|
-
|
1031
|
-
pattern = Regexp.new(/^ep_[A-Za-z0-9]{27}$/)
|
1032
|
-
if @api_client.config.client_side_validation && !opts[:'iterator'].nil? && opts[:'iterator'] !~ pattern
|
1033
|
-
fail ArgumentError, "invalid value for 'opts[:\"iterator\"]' when calling EndpointApi.v1_endpoint_list, must conform to the pattern #{pattern}."
|
1034
|
-
end
|
1035
|
-
|
1036
|
-
# resource path
|
1037
|
-
local_var_path = '/api/v1/app/{app_id}/endpoint'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
|
1038
|
-
|
1039
|
-
# query parameters
|
1040
|
-
query_params = opts[:query_params] || {}
|
1041
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1042
|
-
query_params[:'iterator'] = opts[:'iterator'] if !opts[:'iterator'].nil?
|
1043
|
-
query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
|
1044
|
-
|
1045
|
-
# header parameters
|
1046
|
-
header_params = opts[:header_params] || {}
|
1047
|
-
# HTTP header 'Accept' (if needed)
|
1048
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
1049
|
-
|
1050
|
-
# form parameters
|
1051
|
-
form_params = opts[:form_params] || {}
|
1052
|
-
|
1053
|
-
# http body (model)
|
1054
|
-
post_body = opts[:debug_body]
|
1055
|
-
|
1056
|
-
# return_type
|
1057
|
-
return_type = opts[:debug_return_type] || 'ListResponseEndpointOut'
|
1058
|
-
|
1059
|
-
# auth_names
|
1060
|
-
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
1061
|
-
|
1062
|
-
new_options = opts.merge(
|
1063
|
-
:operation => :"EndpointApi.v1_endpoint_list",
|
1064
|
-
:header_params => header_params,
|
1065
|
-
:query_params => query_params,
|
1066
|
-
:form_params => form_params,
|
1067
|
-
:body => post_body,
|
1068
|
-
:auth_names => auth_names,
|
1069
|
-
:return_type => return_type
|
1070
|
-
)
|
1071
|
-
|
1072
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1073
|
-
if @api_client.config.debugging
|
1074
|
-
@api_client.config.logger.debug "API called: EndpointApi#v1_endpoint_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1075
|
-
end
|
1076
|
-
return data, status_code, headers
|
1077
|
-
end
|
1078
|
-
|
1079
|
-
# Patch Endpoint
|
1080
|
-
# Partially update an endpoint.
|
1081
|
-
# @param app_id [String] The Application's ID or UID.
|
1082
|
-
# @param endpoint_id [String] The Endpoint's ID or UID.
|
1083
|
-
# @param endpoint_patch [EndpointPatch]
|
1084
|
-
# @param [Hash] opts the optional parameters
|
1085
|
-
# @return [EndpointOut]
|
1086
|
-
def v1_endpoint_patch(app_id, endpoint_id, endpoint_patch, opts = {})
|
1087
|
-
data, _status_code, _headers = v1_endpoint_patch_with_http_info(app_id, endpoint_id, endpoint_patch, opts)
|
1088
|
-
data
|
1089
|
-
end
|
1090
|
-
|
1091
|
-
# Patch Endpoint
|
1092
|
-
# Partially update an endpoint.
|
1093
|
-
# @param app_id [String] The Application's ID or UID.
|
1094
|
-
# @param endpoint_id [String] The Endpoint's ID or UID.
|
1095
|
-
# @param endpoint_patch [EndpointPatch]
|
1096
|
-
# @param [Hash] opts the optional parameters
|
1097
|
-
# @return [Array<(EndpointOut, Integer, Hash)>] EndpointOut data, response status code and response headers
|
1098
|
-
def v1_endpoint_patch_with_http_info(app_id, endpoint_id, endpoint_patch, opts = {})
|
1099
|
-
if @api_client.config.debugging
|
1100
|
-
@api_client.config.logger.debug 'Calling API: EndpointApi.v1_endpoint_patch ...'
|
1101
|
-
end
|
1102
|
-
# verify the required parameter 'app_id' is set
|
1103
|
-
if @api_client.config.client_side_validation && app_id.nil?
|
1104
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_endpoint_patch"
|
1105
|
-
end
|
1106
|
-
if @api_client.config.client_side_validation && app_id.to_s.length > 256
|
1107
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_patch, the character length must be smaller than or equal to 256.'
|
1108
|
-
end
|
1109
|
-
|
1110
|
-
if @api_client.config.client_side_validation && app_id.to_s.length < 1
|
1111
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_patch, the character length must be great than or equal to 1.'
|
1112
|
-
end
|
1113
|
-
|
1114
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
1115
|
-
if @api_client.config.client_side_validation && app_id !~ pattern
|
1116
|
-
fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_endpoint_patch, must conform to the pattern #{pattern}."
|
1117
|
-
end
|
1118
|
-
|
1119
|
-
# verify the required parameter 'endpoint_id' is set
|
1120
|
-
if @api_client.config.client_side_validation && endpoint_id.nil?
|
1121
|
-
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.v1_endpoint_patch"
|
1122
|
-
end
|
1123
|
-
if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
|
1124
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_patch, the character length must be smaller than or equal to 256.'
|
1125
|
-
end
|
1126
|
-
|
1127
|
-
if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
|
1128
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_patch, the character length must be great than or equal to 1.'
|
1129
|
-
end
|
1130
|
-
|
1131
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
1132
|
-
if @api_client.config.client_side_validation && endpoint_id !~ pattern
|
1133
|
-
fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.v1_endpoint_patch, must conform to the pattern #{pattern}."
|
1134
|
-
end
|
1135
|
-
|
1136
|
-
# verify the required parameter 'endpoint_patch' is set
|
1137
|
-
if @api_client.config.client_side_validation && endpoint_patch.nil?
|
1138
|
-
fail ArgumentError, "Missing the required parameter 'endpoint_patch' when calling EndpointApi.v1_endpoint_patch"
|
1139
|
-
end
|
1140
|
-
# resource path
|
1141
|
-
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
1142
|
-
|
1143
|
-
# query parameters
|
1144
|
-
query_params = opts[:query_params] || {}
|
1145
|
-
|
1146
|
-
# header parameters
|
1147
|
-
header_params = opts[:header_params] || {}
|
1148
|
-
# HTTP header 'Accept' (if needed)
|
1149
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
1150
|
-
# HTTP header 'Content-Type'
|
1151
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
1152
|
-
if !content_type.nil?
|
1153
|
-
header_params['Content-Type'] = content_type
|
1154
|
-
end
|
1155
|
-
|
1156
|
-
# form parameters
|
1157
|
-
form_params = opts[:form_params] || {}
|
1158
|
-
|
1159
|
-
# http body (model)
|
1160
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(endpoint_patch)
|
1161
|
-
|
1162
|
-
# return_type
|
1163
|
-
return_type = opts[:debug_return_type] || 'EndpointOut'
|
1164
|
-
|
1165
|
-
# auth_names
|
1166
|
-
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
1167
|
-
|
1168
|
-
new_options = opts.merge(
|
1169
|
-
:operation => :"EndpointApi.v1_endpoint_patch",
|
1170
|
-
:header_params => header_params,
|
1171
|
-
:query_params => query_params,
|
1172
|
-
:form_params => form_params,
|
1173
|
-
:body => post_body,
|
1174
|
-
:auth_names => auth_names,
|
1175
|
-
:return_type => return_type
|
1176
|
-
)
|
1177
|
-
|
1178
|
-
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
1179
|
-
if @api_client.config.debugging
|
1180
|
-
@api_client.config.logger.debug "API called: EndpointApi#v1_endpoint_patch\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1181
|
-
end
|
1182
|
-
return data, status_code, headers
|
1183
|
-
end
|
1184
|
-
|
1185
|
-
# Patch Endpoint Headers
|
1186
|
-
# Partially set the additional headers to be sent with the webhook.
|
1187
|
-
# @param app_id [String] The Application's ID or UID.
|
1188
|
-
# @param endpoint_id [String] The Endpoint's ID or UID.
|
1189
|
-
# @param endpoint_headers_patch_in [EndpointHeadersPatchIn]
|
1190
|
-
# @param [Hash] opts the optional parameters
|
1191
|
-
# @return [nil]
|
1192
|
-
def v1_endpoint_patch_headers(app_id, endpoint_id, endpoint_headers_patch_in, opts = {})
|
1193
|
-
v1_endpoint_patch_headers_with_http_info(app_id, endpoint_id, endpoint_headers_patch_in, opts)
|
1194
|
-
nil
|
1195
|
-
end
|
1196
|
-
|
1197
|
-
# Patch Endpoint Headers
|
1198
|
-
# Partially set the additional headers to be sent with the webhook.
|
1199
|
-
# @param app_id [String] The Application's ID or UID.
|
1200
|
-
# @param endpoint_id [String] The Endpoint's ID or UID.
|
1201
|
-
# @param endpoint_headers_patch_in [EndpointHeadersPatchIn]
|
1202
|
-
# @param [Hash] opts the optional parameters
|
1203
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
1204
|
-
def v1_endpoint_patch_headers_with_http_info(app_id, endpoint_id, endpoint_headers_patch_in, opts = {})
|
1205
|
-
if @api_client.config.debugging
|
1206
|
-
@api_client.config.logger.debug 'Calling API: EndpointApi.v1_endpoint_patch_headers ...'
|
1207
|
-
end
|
1208
|
-
# verify the required parameter 'app_id' is set
|
1209
|
-
if @api_client.config.client_side_validation && app_id.nil?
|
1210
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_endpoint_patch_headers"
|
1211
|
-
end
|
1212
|
-
if @api_client.config.client_side_validation && app_id.to_s.length > 256
|
1213
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_patch_headers, the character length must be smaller than or equal to 256.'
|
1214
|
-
end
|
1215
|
-
|
1216
|
-
if @api_client.config.client_side_validation && app_id.to_s.length < 1
|
1217
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_patch_headers, the character length must be great than or equal to 1.'
|
1218
|
-
end
|
1219
|
-
|
1220
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
1221
|
-
if @api_client.config.client_side_validation && app_id !~ pattern
|
1222
|
-
fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_endpoint_patch_headers, must conform to the pattern #{pattern}."
|
1223
|
-
end
|
1224
|
-
|
1225
|
-
# verify the required parameter 'endpoint_id' is set
|
1226
|
-
if @api_client.config.client_side_validation && endpoint_id.nil?
|
1227
|
-
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.v1_endpoint_patch_headers"
|
1228
|
-
end
|
1229
|
-
if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
|
1230
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_patch_headers, the character length must be smaller than or equal to 256.'
|
1231
|
-
end
|
1232
|
-
|
1233
|
-
if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
|
1234
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_patch_headers, the character length must be great than or equal to 1.'
|
1235
|
-
end
|
1236
|
-
|
1237
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
1238
|
-
if @api_client.config.client_side_validation && endpoint_id !~ pattern
|
1239
|
-
fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.v1_endpoint_patch_headers, must conform to the pattern #{pattern}."
|
1240
|
-
end
|
1241
|
-
|
1242
|
-
# verify the required parameter 'endpoint_headers_patch_in' is set
|
1243
|
-
if @api_client.config.client_side_validation && endpoint_headers_patch_in.nil?
|
1244
|
-
fail ArgumentError, "Missing the required parameter 'endpoint_headers_patch_in' when calling EndpointApi.v1_endpoint_patch_headers"
|
1245
|
-
end
|
1246
|
-
# resource path
|
1247
|
-
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/headers'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
1248
|
-
|
1249
|
-
# query parameters
|
1250
|
-
query_params = opts[:query_params] || {}
|
1251
|
-
|
1252
|
-
# header parameters
|
1253
|
-
header_params = opts[:header_params] || {}
|
1254
|
-
# HTTP header 'Accept' (if needed)
|
1255
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
1256
|
-
# HTTP header 'Content-Type'
|
1257
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
1258
|
-
if !content_type.nil?
|
1259
|
-
header_params['Content-Type'] = content_type
|
1260
|
-
end
|
1261
|
-
|
1262
|
-
# form parameters
|
1263
|
-
form_params = opts[:form_params] || {}
|
1264
|
-
|
1265
|
-
# http body (model)
|
1266
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(endpoint_headers_patch_in)
|
1267
|
-
|
1268
|
-
# return_type
|
1269
|
-
return_type = opts[:debug_return_type]
|
1270
|
-
|
1271
|
-
# auth_names
|
1272
|
-
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
1273
|
-
|
1274
|
-
new_options = opts.merge(
|
1275
|
-
:operation => :"EndpointApi.v1_endpoint_patch_headers",
|
1276
|
-
:header_params => header_params,
|
1277
|
-
:query_params => query_params,
|
1278
|
-
:form_params => form_params,
|
1279
|
-
:body => post_body,
|
1280
|
-
:auth_names => auth_names,
|
1281
|
-
:return_type => return_type
|
1282
|
-
)
|
1283
|
-
|
1284
|
-
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
1285
|
-
if @api_client.config.debugging
|
1286
|
-
@api_client.config.logger.debug "API called: EndpointApi#v1_endpoint_patch_headers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1287
|
-
end
|
1288
|
-
return data, status_code, headers
|
1289
|
-
end
|
1290
|
-
|
1291
|
-
# Recover Failed Webhooks
|
1292
|
-
# Resend all failed messages since a given time. Messages that were sent successfully, even if failed initially, are not resent.
|
1293
|
-
# @param app_id [String] The Application's ID or UID.
|
1294
|
-
# @param endpoint_id [String] The Endpoint's ID or UID.
|
1295
|
-
# @param recover_in [RecoverIn]
|
1296
|
-
# @param [Hash] opts the optional parameters
|
1297
|
-
# @option opts [String] :idempotency_key The request's idempotency key
|
1298
|
-
# @return [RecoverOut]
|
1299
|
-
def v1_endpoint_recover(app_id, endpoint_id, recover_in, opts = {})
|
1300
|
-
data, _status_code, _headers = v1_endpoint_recover_with_http_info(app_id, endpoint_id, recover_in, opts)
|
1301
|
-
data
|
1302
|
-
end
|
1303
|
-
|
1304
|
-
# Recover Failed Webhooks
|
1305
|
-
# Resend all failed messages since a given time. Messages that were sent successfully, even if failed initially, are not resent.
|
1306
|
-
# @param app_id [String] The Application's ID or UID.
|
1307
|
-
# @param endpoint_id [String] The Endpoint's ID or UID.
|
1308
|
-
# @param recover_in [RecoverIn]
|
1309
|
-
# @param [Hash] opts the optional parameters
|
1310
|
-
# @option opts [String] :idempotency_key The request's idempotency key
|
1311
|
-
# @return [Array<(RecoverOut, Integer, Hash)>] RecoverOut data, response status code and response headers
|
1312
|
-
def v1_endpoint_recover_with_http_info(app_id, endpoint_id, recover_in, opts = {})
|
1313
|
-
if @api_client.config.debugging
|
1314
|
-
@api_client.config.logger.debug 'Calling API: EndpointApi.v1_endpoint_recover ...'
|
1315
|
-
end
|
1316
|
-
# verify the required parameter 'app_id' is set
|
1317
|
-
if @api_client.config.client_side_validation && app_id.nil?
|
1318
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_endpoint_recover"
|
1319
|
-
end
|
1320
|
-
if @api_client.config.client_side_validation && app_id.to_s.length > 256
|
1321
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_recover, the character length must be smaller than or equal to 256.'
|
1322
|
-
end
|
1323
|
-
|
1324
|
-
if @api_client.config.client_side_validation && app_id.to_s.length < 1
|
1325
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_recover, the character length must be great than or equal to 1.'
|
1326
|
-
end
|
1327
|
-
|
1328
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
1329
|
-
if @api_client.config.client_side_validation && app_id !~ pattern
|
1330
|
-
fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_endpoint_recover, must conform to the pattern #{pattern}."
|
1331
|
-
end
|
1332
|
-
|
1333
|
-
# verify the required parameter 'endpoint_id' is set
|
1334
|
-
if @api_client.config.client_side_validation && endpoint_id.nil?
|
1335
|
-
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.v1_endpoint_recover"
|
1336
|
-
end
|
1337
|
-
if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
|
1338
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_recover, the character length must be smaller than or equal to 256.'
|
1339
|
-
end
|
1340
|
-
|
1341
|
-
if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
|
1342
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_recover, the character length must be great than or equal to 1.'
|
1343
|
-
end
|
1344
|
-
|
1345
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
1346
|
-
if @api_client.config.client_side_validation && endpoint_id !~ pattern
|
1347
|
-
fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.v1_endpoint_recover, must conform to the pattern #{pattern}."
|
1348
|
-
end
|
1349
|
-
|
1350
|
-
# verify the required parameter 'recover_in' is set
|
1351
|
-
if @api_client.config.client_side_validation && recover_in.nil?
|
1352
|
-
fail ArgumentError, "Missing the required parameter 'recover_in' when calling EndpointApi.v1_endpoint_recover"
|
1353
|
-
end
|
1354
|
-
# resource path
|
1355
|
-
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/recover'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
1356
|
-
|
1357
|
-
# query parameters
|
1358
|
-
query_params = opts[:query_params] || {}
|
1359
|
-
|
1360
|
-
# header parameters
|
1361
|
-
header_params = opts[:header_params] || {}
|
1362
|
-
# HTTP header 'Accept' (if needed)
|
1363
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
1364
|
-
# HTTP header 'Content-Type'
|
1365
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
1366
|
-
if !content_type.nil?
|
1367
|
-
header_params['Content-Type'] = content_type
|
1368
|
-
end
|
1369
|
-
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
1370
|
-
|
1371
|
-
# form parameters
|
1372
|
-
form_params = opts[:form_params] || {}
|
1373
|
-
|
1374
|
-
# http body (model)
|
1375
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(recover_in)
|
1376
|
-
|
1377
|
-
# return_type
|
1378
|
-
return_type = opts[:debug_return_type] || 'RecoverOut'
|
1379
|
-
|
1380
|
-
# auth_names
|
1381
|
-
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
1382
|
-
|
1383
|
-
new_options = opts.merge(
|
1384
|
-
:operation => :"EndpointApi.v1_endpoint_recover",
|
1385
|
-
:header_params => header_params,
|
1386
|
-
:query_params => query_params,
|
1387
|
-
:form_params => form_params,
|
1388
|
-
:body => post_body,
|
1389
|
-
:auth_names => auth_names,
|
1390
|
-
:return_type => return_type
|
1391
|
-
)
|
1392
|
-
|
1393
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1394
|
-
if @api_client.config.debugging
|
1395
|
-
@api_client.config.logger.debug "API called: EndpointApi#v1_endpoint_recover\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1396
|
-
end
|
1397
|
-
return data, status_code, headers
|
1398
|
-
end
|
1399
|
-
|
1400
|
-
# Replay Missing Webhooks
|
1401
|
-
# Replays messages to the endpoint. Only messages that were created after `since` will be sent. Messages that were previously sent to the endpoint are not resent.
|
1402
|
-
# @param app_id [String] The Application's ID or UID.
|
1403
|
-
# @param endpoint_id [String] The Endpoint's ID or UID.
|
1404
|
-
# @param replay_in [ReplayIn]
|
1405
|
-
# @param [Hash] opts the optional parameters
|
1406
|
-
# @option opts [String] :idempotency_key The request's idempotency key
|
1407
|
-
# @return [ReplayOut]
|
1408
|
-
def v1_endpoint_replay_missing(app_id, endpoint_id, replay_in, opts = {})
|
1409
|
-
data, _status_code, _headers = v1_endpoint_replay_missing_with_http_info(app_id, endpoint_id, replay_in, opts)
|
1410
|
-
data
|
1411
|
-
end
|
1412
|
-
|
1413
|
-
# Replay Missing Webhooks
|
1414
|
-
# Replays messages to the endpoint. Only messages that were created after `since` will be sent. Messages that were previously sent to the endpoint are not resent.
|
1415
|
-
# @param app_id [String] The Application's ID or UID.
|
1416
|
-
# @param endpoint_id [String] The Endpoint's ID or UID.
|
1417
|
-
# @param replay_in [ReplayIn]
|
1418
|
-
# @param [Hash] opts the optional parameters
|
1419
|
-
# @option opts [String] :idempotency_key The request's idempotency key
|
1420
|
-
# @return [Array<(ReplayOut, Integer, Hash)>] ReplayOut data, response status code and response headers
|
1421
|
-
def v1_endpoint_replay_missing_with_http_info(app_id, endpoint_id, replay_in, opts = {})
|
1422
|
-
if @api_client.config.debugging
|
1423
|
-
@api_client.config.logger.debug 'Calling API: EndpointApi.v1_endpoint_replay_missing ...'
|
1424
|
-
end
|
1425
|
-
# verify the required parameter 'app_id' is set
|
1426
|
-
if @api_client.config.client_side_validation && app_id.nil?
|
1427
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_endpoint_replay_missing"
|
1428
|
-
end
|
1429
|
-
if @api_client.config.client_side_validation && app_id.to_s.length > 256
|
1430
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_replay_missing, the character length must be smaller than or equal to 256.'
|
1431
|
-
end
|
1432
|
-
|
1433
|
-
if @api_client.config.client_side_validation && app_id.to_s.length < 1
|
1434
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_replay_missing, the character length must be great than or equal to 1.'
|
1435
|
-
end
|
1436
|
-
|
1437
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
1438
|
-
if @api_client.config.client_side_validation && app_id !~ pattern
|
1439
|
-
fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_endpoint_replay_missing, must conform to the pattern #{pattern}."
|
1440
|
-
end
|
1441
|
-
|
1442
|
-
# verify the required parameter 'endpoint_id' is set
|
1443
|
-
if @api_client.config.client_side_validation && endpoint_id.nil?
|
1444
|
-
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.v1_endpoint_replay_missing"
|
1445
|
-
end
|
1446
|
-
if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
|
1447
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_replay_missing, the character length must be smaller than or equal to 256.'
|
1448
|
-
end
|
1449
|
-
|
1450
|
-
if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
|
1451
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_replay_missing, the character length must be great than or equal to 1.'
|
1452
|
-
end
|
1453
|
-
|
1454
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
1455
|
-
if @api_client.config.client_side_validation && endpoint_id !~ pattern
|
1456
|
-
fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.v1_endpoint_replay_missing, must conform to the pattern #{pattern}."
|
1457
|
-
end
|
1458
|
-
|
1459
|
-
# verify the required parameter 'replay_in' is set
|
1460
|
-
if @api_client.config.client_side_validation && replay_in.nil?
|
1461
|
-
fail ArgumentError, "Missing the required parameter 'replay_in' when calling EndpointApi.v1_endpoint_replay_missing"
|
1462
|
-
end
|
1463
|
-
# resource path
|
1464
|
-
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/replay-missing'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
1465
|
-
|
1466
|
-
# query parameters
|
1467
|
-
query_params = opts[:query_params] || {}
|
1468
|
-
|
1469
|
-
# header parameters
|
1470
|
-
header_params = opts[:header_params] || {}
|
1471
|
-
# HTTP header 'Accept' (if needed)
|
1472
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
1473
|
-
# HTTP header 'Content-Type'
|
1474
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
1475
|
-
if !content_type.nil?
|
1476
|
-
header_params['Content-Type'] = content_type
|
1477
|
-
end
|
1478
|
-
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
1479
|
-
|
1480
|
-
# form parameters
|
1481
|
-
form_params = opts[:form_params] || {}
|
1482
|
-
|
1483
|
-
# http body (model)
|
1484
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(replay_in)
|
1485
|
-
|
1486
|
-
# return_type
|
1487
|
-
return_type = opts[:debug_return_type] || 'ReplayOut'
|
1488
|
-
|
1489
|
-
# auth_names
|
1490
|
-
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
1491
|
-
|
1492
|
-
new_options = opts.merge(
|
1493
|
-
:operation => :"EndpointApi.v1_endpoint_replay_missing",
|
1494
|
-
:header_params => header_params,
|
1495
|
-
:query_params => query_params,
|
1496
|
-
:form_params => form_params,
|
1497
|
-
:body => post_body,
|
1498
|
-
:auth_names => auth_names,
|
1499
|
-
:return_type => return_type
|
1500
|
-
)
|
1501
|
-
|
1502
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1503
|
-
if @api_client.config.debugging
|
1504
|
-
@api_client.config.logger.debug "API called: EndpointApi#v1_endpoint_replay_missing\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1505
|
-
end
|
1506
|
-
return data, status_code, headers
|
1507
|
-
end
|
1508
|
-
|
1509
|
-
# Rotate Endpoint Secret
|
1510
|
-
# Rotates the endpoint's signing secret. The previous secret will remain valid for the next 24 hours.
|
1511
|
-
# @param app_id [String] The Application's ID or UID.
|
1512
|
-
# @param endpoint_id [String] The Endpoint's ID or UID.
|
1513
|
-
# @param endpoint_secret_rotate_in [EndpointSecretRotateIn]
|
1514
|
-
# @param [Hash] opts the optional parameters
|
1515
|
-
# @option opts [String] :idempotency_key The request's idempotency key
|
1516
|
-
# @return [nil]
|
1517
|
-
def v1_endpoint_rotate_secret(app_id, endpoint_id, endpoint_secret_rotate_in, opts = {})
|
1518
|
-
v1_endpoint_rotate_secret_with_http_info(app_id, endpoint_id, endpoint_secret_rotate_in, opts)
|
1519
|
-
nil
|
1520
|
-
end
|
1521
|
-
|
1522
|
-
# Rotate Endpoint Secret
|
1523
|
-
# Rotates the endpoint's signing secret. The previous secret will remain valid for the next 24 hours.
|
1524
|
-
# @param app_id [String] The Application's ID or UID.
|
1525
|
-
# @param endpoint_id [String] The Endpoint's ID or UID.
|
1526
|
-
# @param endpoint_secret_rotate_in [EndpointSecretRotateIn]
|
1527
|
-
# @param [Hash] opts the optional parameters
|
1528
|
-
# @option opts [String] :idempotency_key The request's idempotency key
|
1529
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
1530
|
-
def v1_endpoint_rotate_secret_with_http_info(app_id, endpoint_id, endpoint_secret_rotate_in, opts = {})
|
1531
|
-
if @api_client.config.debugging
|
1532
|
-
@api_client.config.logger.debug 'Calling API: EndpointApi.v1_endpoint_rotate_secret ...'
|
1533
|
-
end
|
1534
|
-
# verify the required parameter 'app_id' is set
|
1535
|
-
if @api_client.config.client_side_validation && app_id.nil?
|
1536
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_endpoint_rotate_secret"
|
1537
|
-
end
|
1538
|
-
if @api_client.config.client_side_validation && app_id.to_s.length > 256
|
1539
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_rotate_secret, the character length must be smaller than or equal to 256.'
|
1540
|
-
end
|
1541
|
-
|
1542
|
-
if @api_client.config.client_side_validation && app_id.to_s.length < 1
|
1543
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_rotate_secret, the character length must be great than or equal to 1.'
|
1544
|
-
end
|
1545
|
-
|
1546
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
1547
|
-
if @api_client.config.client_side_validation && app_id !~ pattern
|
1548
|
-
fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_endpoint_rotate_secret, must conform to the pattern #{pattern}."
|
1549
|
-
end
|
1550
|
-
|
1551
|
-
# verify the required parameter 'endpoint_id' is set
|
1552
|
-
if @api_client.config.client_side_validation && endpoint_id.nil?
|
1553
|
-
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.v1_endpoint_rotate_secret"
|
1554
|
-
end
|
1555
|
-
if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
|
1556
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_rotate_secret, the character length must be smaller than or equal to 256.'
|
1557
|
-
end
|
1558
|
-
|
1559
|
-
if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
|
1560
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_rotate_secret, the character length must be great than or equal to 1.'
|
1561
|
-
end
|
1562
|
-
|
1563
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
1564
|
-
if @api_client.config.client_side_validation && endpoint_id !~ pattern
|
1565
|
-
fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.v1_endpoint_rotate_secret, must conform to the pattern #{pattern}."
|
1566
|
-
end
|
1567
|
-
|
1568
|
-
# verify the required parameter 'endpoint_secret_rotate_in' is set
|
1569
|
-
if @api_client.config.client_side_validation && endpoint_secret_rotate_in.nil?
|
1570
|
-
fail ArgumentError, "Missing the required parameter 'endpoint_secret_rotate_in' when calling EndpointApi.v1_endpoint_rotate_secret"
|
1571
|
-
end
|
1572
|
-
# resource path
|
1573
|
-
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/secret/rotate'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
1574
|
-
|
1575
|
-
# query parameters
|
1576
|
-
query_params = opts[:query_params] || {}
|
1577
|
-
|
1578
|
-
# header parameters
|
1579
|
-
header_params = opts[:header_params] || {}
|
1580
|
-
# HTTP header 'Accept' (if needed)
|
1581
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
1582
|
-
# HTTP header 'Content-Type'
|
1583
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
1584
|
-
if !content_type.nil?
|
1585
|
-
header_params['Content-Type'] = content_type
|
1586
|
-
end
|
1587
|
-
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
1588
|
-
|
1589
|
-
# form parameters
|
1590
|
-
form_params = opts[:form_params] || {}
|
1591
|
-
|
1592
|
-
# http body (model)
|
1593
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(endpoint_secret_rotate_in)
|
1594
|
-
|
1595
|
-
# return_type
|
1596
|
-
return_type = opts[:debug_return_type]
|
1597
|
-
|
1598
|
-
# auth_names
|
1599
|
-
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
1600
|
-
|
1601
|
-
new_options = opts.merge(
|
1602
|
-
:operation => :"EndpointApi.v1_endpoint_rotate_secret",
|
1603
|
-
:header_params => header_params,
|
1604
|
-
:query_params => query_params,
|
1605
|
-
:form_params => form_params,
|
1606
|
-
:body => post_body,
|
1607
|
-
:auth_names => auth_names,
|
1608
|
-
:return_type => return_type
|
1609
|
-
)
|
1610
|
-
|
1611
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1612
|
-
if @api_client.config.debugging
|
1613
|
-
@api_client.config.logger.debug "API called: EndpointApi#v1_endpoint_rotate_secret\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1614
|
-
end
|
1615
|
-
return data, status_code, headers
|
1616
|
-
end
|
1617
|
-
|
1618
|
-
# Send Event Type Example Message
|
1619
|
-
# Send an example message for an event.
|
1620
|
-
# @param app_id [String] The Application's ID or UID.
|
1621
|
-
# @param endpoint_id [String] The Endpoint's ID or UID.
|
1622
|
-
# @param event_example_in [EventExampleIn]
|
1623
|
-
# @param [Hash] opts the optional parameters
|
1624
|
-
# @option opts [String] :idempotency_key The request's idempotency key
|
1625
|
-
# @return [MessageOut]
|
1626
|
-
def v1_endpoint_send_example(app_id, endpoint_id, event_example_in, opts = {})
|
1627
|
-
data, _status_code, _headers = v1_endpoint_send_example_with_http_info(app_id, endpoint_id, event_example_in, opts)
|
1628
|
-
data
|
1629
|
-
end
|
1630
|
-
|
1631
|
-
# Send Event Type Example Message
|
1632
|
-
# Send an example message for an event.
|
1633
|
-
# @param app_id [String] The Application's ID or UID.
|
1634
|
-
# @param endpoint_id [String] The Endpoint's ID or UID.
|
1635
|
-
# @param event_example_in [EventExampleIn]
|
1636
|
-
# @param [Hash] opts the optional parameters
|
1637
|
-
# @option opts [String] :idempotency_key The request's idempotency key
|
1638
|
-
# @return [Array<(MessageOut, Integer, Hash)>] MessageOut data, response status code and response headers
|
1639
|
-
def v1_endpoint_send_example_with_http_info(app_id, endpoint_id, event_example_in, opts = {})
|
1640
|
-
if @api_client.config.debugging
|
1641
|
-
@api_client.config.logger.debug 'Calling API: EndpointApi.v1_endpoint_send_example ...'
|
1642
|
-
end
|
1643
|
-
# verify the required parameter 'app_id' is set
|
1644
|
-
if @api_client.config.client_side_validation && app_id.nil?
|
1645
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_endpoint_send_example"
|
1646
|
-
end
|
1647
|
-
if @api_client.config.client_side_validation && app_id.to_s.length > 256
|
1648
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_send_example, the character length must be smaller than or equal to 256.'
|
1649
|
-
end
|
1650
|
-
|
1651
|
-
if @api_client.config.client_side_validation && app_id.to_s.length < 1
|
1652
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_send_example, the character length must be great than or equal to 1.'
|
1653
|
-
end
|
1654
|
-
|
1655
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
1656
|
-
if @api_client.config.client_side_validation && app_id !~ pattern
|
1657
|
-
fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_endpoint_send_example, must conform to the pattern #{pattern}."
|
1658
|
-
end
|
1659
|
-
|
1660
|
-
# verify the required parameter 'endpoint_id' is set
|
1661
|
-
if @api_client.config.client_side_validation && endpoint_id.nil?
|
1662
|
-
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.v1_endpoint_send_example"
|
1663
|
-
end
|
1664
|
-
if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
|
1665
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_send_example, the character length must be smaller than or equal to 256.'
|
1666
|
-
end
|
1667
|
-
|
1668
|
-
if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
|
1669
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_send_example, the character length must be great than or equal to 1.'
|
1670
|
-
end
|
1671
|
-
|
1672
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
1673
|
-
if @api_client.config.client_side_validation && endpoint_id !~ pattern
|
1674
|
-
fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.v1_endpoint_send_example, must conform to the pattern #{pattern}."
|
1675
|
-
end
|
1676
|
-
|
1677
|
-
# verify the required parameter 'event_example_in' is set
|
1678
|
-
if @api_client.config.client_side_validation && event_example_in.nil?
|
1679
|
-
fail ArgumentError, "Missing the required parameter 'event_example_in' when calling EndpointApi.v1_endpoint_send_example"
|
1680
|
-
end
|
1681
|
-
# resource path
|
1682
|
-
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/send-example'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
1683
|
-
|
1684
|
-
# query parameters
|
1685
|
-
query_params = opts[:query_params] || {}
|
1686
|
-
|
1687
|
-
# header parameters
|
1688
|
-
header_params = opts[:header_params] || {}
|
1689
|
-
# HTTP header 'Accept' (if needed)
|
1690
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
1691
|
-
# HTTP header 'Content-Type'
|
1692
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
1693
|
-
if !content_type.nil?
|
1694
|
-
header_params['Content-Type'] = content_type
|
1695
|
-
end
|
1696
|
-
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
1697
|
-
|
1698
|
-
# form parameters
|
1699
|
-
form_params = opts[:form_params] || {}
|
1700
|
-
|
1701
|
-
# http body (model)
|
1702
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(event_example_in)
|
1703
|
-
|
1704
|
-
# return_type
|
1705
|
-
return_type = opts[:debug_return_type] || 'MessageOut'
|
1706
|
-
|
1707
|
-
# auth_names
|
1708
|
-
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
1709
|
-
|
1710
|
-
new_options = opts.merge(
|
1711
|
-
:operation => :"EndpointApi.v1_endpoint_send_example",
|
1712
|
-
:header_params => header_params,
|
1713
|
-
:query_params => query_params,
|
1714
|
-
:form_params => form_params,
|
1715
|
-
:body => post_body,
|
1716
|
-
:auth_names => auth_names,
|
1717
|
-
:return_type => return_type
|
1718
|
-
)
|
1719
|
-
|
1720
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1721
|
-
if @api_client.config.debugging
|
1722
|
-
@api_client.config.logger.debug "API called: EndpointApi#v1_endpoint_send_example\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1723
|
-
end
|
1724
|
-
return data, status_code, headers
|
1725
|
-
end
|
1726
|
-
|
1727
|
-
# Get Endpoint Transformation
|
1728
|
-
# Get the transformation code associated with this endpoint.
|
1729
|
-
# @param app_id [String] The Application's ID or UID.
|
1730
|
-
# @param endpoint_id [String] The Endpoint's ID or UID.
|
1731
|
-
# @param [Hash] opts the optional parameters
|
1732
|
-
# @return [EndpointTransformationOut]
|
1733
|
-
def v1_endpoint_transformation_get(app_id, endpoint_id, opts = {})
|
1734
|
-
data, _status_code, _headers = v1_endpoint_transformation_get_with_http_info(app_id, endpoint_id, opts)
|
1735
|
-
data
|
1736
|
-
end
|
1737
|
-
|
1738
|
-
# Get Endpoint Transformation
|
1739
|
-
# Get the transformation code associated with this endpoint.
|
1740
|
-
# @param app_id [String] The Application's ID or UID.
|
1741
|
-
# @param endpoint_id [String] The Endpoint's ID or UID.
|
1742
|
-
# @param [Hash] opts the optional parameters
|
1743
|
-
# @return [Array<(EndpointTransformationOut, Integer, Hash)>] EndpointTransformationOut data, response status code and response headers
|
1744
|
-
def v1_endpoint_transformation_get_with_http_info(app_id, endpoint_id, opts = {})
|
1745
|
-
if @api_client.config.debugging
|
1746
|
-
@api_client.config.logger.debug 'Calling API: EndpointApi.v1_endpoint_transformation_get ...'
|
1747
|
-
end
|
1748
|
-
# verify the required parameter 'app_id' is set
|
1749
|
-
if @api_client.config.client_side_validation && app_id.nil?
|
1750
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_endpoint_transformation_get"
|
1751
|
-
end
|
1752
|
-
if @api_client.config.client_side_validation && app_id.to_s.length > 256
|
1753
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_transformation_get, the character length must be smaller than or equal to 256.'
|
1754
|
-
end
|
1755
|
-
|
1756
|
-
if @api_client.config.client_side_validation && app_id.to_s.length < 1
|
1757
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_transformation_get, the character length must be great than or equal to 1.'
|
1758
|
-
end
|
1759
|
-
|
1760
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
1761
|
-
if @api_client.config.client_side_validation && app_id !~ pattern
|
1762
|
-
fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_endpoint_transformation_get, must conform to the pattern #{pattern}."
|
1763
|
-
end
|
1764
|
-
|
1765
|
-
# verify the required parameter 'endpoint_id' is set
|
1766
|
-
if @api_client.config.client_side_validation && endpoint_id.nil?
|
1767
|
-
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.v1_endpoint_transformation_get"
|
1768
|
-
end
|
1769
|
-
if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
|
1770
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_transformation_get, the character length must be smaller than or equal to 256.'
|
1771
|
-
end
|
1772
|
-
|
1773
|
-
if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
|
1774
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_transformation_get, the character length must be great than or equal to 1.'
|
1775
|
-
end
|
1776
|
-
|
1777
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
1778
|
-
if @api_client.config.client_side_validation && endpoint_id !~ pattern
|
1779
|
-
fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.v1_endpoint_transformation_get, must conform to the pattern #{pattern}."
|
1780
|
-
end
|
1781
|
-
|
1782
|
-
# resource path
|
1783
|
-
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/transformation'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
1784
|
-
|
1785
|
-
# query parameters
|
1786
|
-
query_params = opts[:query_params] || {}
|
1787
|
-
|
1788
|
-
# header parameters
|
1789
|
-
header_params = opts[:header_params] || {}
|
1790
|
-
# HTTP header 'Accept' (if needed)
|
1791
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
1792
|
-
|
1793
|
-
# form parameters
|
1794
|
-
form_params = opts[:form_params] || {}
|
1795
|
-
|
1796
|
-
# http body (model)
|
1797
|
-
post_body = opts[:debug_body]
|
1798
|
-
|
1799
|
-
# return_type
|
1800
|
-
return_type = opts[:debug_return_type] || 'EndpointTransformationOut'
|
1801
|
-
|
1802
|
-
# auth_names
|
1803
|
-
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
1804
|
-
|
1805
|
-
new_options = opts.merge(
|
1806
|
-
:operation => :"EndpointApi.v1_endpoint_transformation_get",
|
1807
|
-
:header_params => header_params,
|
1808
|
-
:query_params => query_params,
|
1809
|
-
:form_params => form_params,
|
1810
|
-
:body => post_body,
|
1811
|
-
:auth_names => auth_names,
|
1812
|
-
:return_type => return_type
|
1813
|
-
)
|
1814
|
-
|
1815
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1816
|
-
if @api_client.config.debugging
|
1817
|
-
@api_client.config.logger.debug "API called: EndpointApi#v1_endpoint_transformation_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1818
|
-
end
|
1819
|
-
return data, status_code, headers
|
1820
|
-
end
|
1821
|
-
|
1822
|
-
# Set Endpoint Transformation
|
1823
|
-
# Set or unset the transformation code associated with this endpoint.
|
1824
|
-
# @param app_id [String] The Application's ID or UID.
|
1825
|
-
# @param endpoint_id [String] The Endpoint's ID or UID.
|
1826
|
-
# @param endpoint_transformation_in [EndpointTransformationIn]
|
1827
|
-
# @param [Hash] opts the optional parameters
|
1828
|
-
# @return [nil]
|
1829
|
-
def v1_endpoint_transformation_partial_update(app_id, endpoint_id, endpoint_transformation_in, opts = {})
|
1830
|
-
v1_endpoint_transformation_partial_update_with_http_info(app_id, endpoint_id, endpoint_transformation_in, opts)
|
1831
|
-
nil
|
1832
|
-
end
|
1833
|
-
|
1834
|
-
# Set Endpoint Transformation
|
1835
|
-
# Set or unset the transformation code associated with this endpoint.
|
1836
|
-
# @param app_id [String] The Application's ID or UID.
|
1837
|
-
# @param endpoint_id [String] The Endpoint's ID or UID.
|
1838
|
-
# @param endpoint_transformation_in [EndpointTransformationIn]
|
1839
|
-
# @param [Hash] opts the optional parameters
|
1840
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
1841
|
-
def v1_endpoint_transformation_partial_update_with_http_info(app_id, endpoint_id, endpoint_transformation_in, opts = {})
|
1842
|
-
if @api_client.config.debugging
|
1843
|
-
@api_client.config.logger.debug 'Calling API: EndpointApi.v1_endpoint_transformation_partial_update ...'
|
1844
|
-
end
|
1845
|
-
# verify the required parameter 'app_id' is set
|
1846
|
-
if @api_client.config.client_side_validation && app_id.nil?
|
1847
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_endpoint_transformation_partial_update"
|
1848
|
-
end
|
1849
|
-
if @api_client.config.client_side_validation && app_id.to_s.length > 256
|
1850
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_transformation_partial_update, the character length must be smaller than or equal to 256.'
|
1851
|
-
end
|
1852
|
-
|
1853
|
-
if @api_client.config.client_side_validation && app_id.to_s.length < 1
|
1854
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_transformation_partial_update, the character length must be great than or equal to 1.'
|
1855
|
-
end
|
1856
|
-
|
1857
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
1858
|
-
if @api_client.config.client_side_validation && app_id !~ pattern
|
1859
|
-
fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_endpoint_transformation_partial_update, must conform to the pattern #{pattern}."
|
1860
|
-
end
|
1861
|
-
|
1862
|
-
# verify the required parameter 'endpoint_id' is set
|
1863
|
-
if @api_client.config.client_side_validation && endpoint_id.nil?
|
1864
|
-
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.v1_endpoint_transformation_partial_update"
|
1865
|
-
end
|
1866
|
-
if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
|
1867
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_transformation_partial_update, the character length must be smaller than or equal to 256.'
|
1868
|
-
end
|
1869
|
-
|
1870
|
-
if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
|
1871
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_transformation_partial_update, the character length must be great than or equal to 1.'
|
1872
|
-
end
|
1873
|
-
|
1874
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
1875
|
-
if @api_client.config.client_side_validation && endpoint_id !~ pattern
|
1876
|
-
fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.v1_endpoint_transformation_partial_update, must conform to the pattern #{pattern}."
|
1877
|
-
end
|
1878
|
-
|
1879
|
-
# verify the required parameter 'endpoint_transformation_in' is set
|
1880
|
-
if @api_client.config.client_side_validation && endpoint_transformation_in.nil?
|
1881
|
-
fail ArgumentError, "Missing the required parameter 'endpoint_transformation_in' when calling EndpointApi.v1_endpoint_transformation_partial_update"
|
1882
|
-
end
|
1883
|
-
# resource path
|
1884
|
-
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/transformation'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
1885
|
-
|
1886
|
-
# query parameters
|
1887
|
-
query_params = opts[:query_params] || {}
|
1888
|
-
|
1889
|
-
# header parameters
|
1890
|
-
header_params = opts[:header_params] || {}
|
1891
|
-
# HTTP header 'Accept' (if needed)
|
1892
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
1893
|
-
# HTTP header 'Content-Type'
|
1894
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
1895
|
-
if !content_type.nil?
|
1896
|
-
header_params['Content-Type'] = content_type
|
1897
|
-
end
|
1898
|
-
|
1899
|
-
# form parameters
|
1900
|
-
form_params = opts[:form_params] || {}
|
1901
|
-
|
1902
|
-
# http body (model)
|
1903
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(endpoint_transformation_in)
|
1904
|
-
|
1905
|
-
# return_type
|
1906
|
-
return_type = opts[:debug_return_type]
|
1907
|
-
|
1908
|
-
# auth_names
|
1909
|
-
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
1910
|
-
|
1911
|
-
new_options = opts.merge(
|
1912
|
-
:operation => :"EndpointApi.v1_endpoint_transformation_partial_update",
|
1913
|
-
:header_params => header_params,
|
1914
|
-
:query_params => query_params,
|
1915
|
-
:form_params => form_params,
|
1916
|
-
:body => post_body,
|
1917
|
-
:auth_names => auth_names,
|
1918
|
-
:return_type => return_type
|
1919
|
-
)
|
1920
|
-
|
1921
|
-
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
1922
|
-
if @api_client.config.debugging
|
1923
|
-
@api_client.config.logger.debug "API called: EndpointApi#v1_endpoint_transformation_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1924
|
-
end
|
1925
|
-
return data, status_code, headers
|
1926
|
-
end
|
1927
|
-
|
1928
|
-
# Simulate
|
1929
|
-
# Simulate running the transformation on the payload and code.
|
1930
|
-
# @param app_id [String] The Application's ID or UID.
|
1931
|
-
# @param endpoint_id [String] The Endpoint's ID or UID.
|
1932
|
-
# @param endpoint_transformation_simulate_in [EndpointTransformationSimulateIn]
|
1933
|
-
# @param [Hash] opts the optional parameters
|
1934
|
-
# @option opts [String] :idempotency_key The request's idempotency key
|
1935
|
-
# @return [EndpointTransformationSimulateOut]
|
1936
|
-
def v1_endpoint_transformation_simulate(app_id, endpoint_id, endpoint_transformation_simulate_in, opts = {})
|
1937
|
-
data, _status_code, _headers = v1_endpoint_transformation_simulate_with_http_info(app_id, endpoint_id, endpoint_transformation_simulate_in, opts)
|
1938
|
-
data
|
1939
|
-
end
|
1940
|
-
|
1941
|
-
# Simulate
|
1942
|
-
# Simulate running the transformation on the payload and code.
|
1943
|
-
# @param app_id [String] The Application's ID or UID.
|
1944
|
-
# @param endpoint_id [String] The Endpoint's ID or UID.
|
1945
|
-
# @param endpoint_transformation_simulate_in [EndpointTransformationSimulateIn]
|
1946
|
-
# @param [Hash] opts the optional parameters
|
1947
|
-
# @option opts [String] :idempotency_key The request's idempotency key
|
1948
|
-
# @return [Array<(EndpointTransformationSimulateOut, Integer, Hash)>] EndpointTransformationSimulateOut data, response status code and response headers
|
1949
|
-
def v1_endpoint_transformation_simulate_with_http_info(app_id, endpoint_id, endpoint_transformation_simulate_in, opts = {})
|
1950
|
-
if @api_client.config.debugging
|
1951
|
-
@api_client.config.logger.debug 'Calling API: EndpointApi.v1_endpoint_transformation_simulate ...'
|
1952
|
-
end
|
1953
|
-
# verify the required parameter 'app_id' is set
|
1954
|
-
if @api_client.config.client_side_validation && app_id.nil?
|
1955
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_endpoint_transformation_simulate"
|
1956
|
-
end
|
1957
|
-
if @api_client.config.client_side_validation && app_id.to_s.length > 256
|
1958
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_transformation_simulate, the character length must be smaller than or equal to 256.'
|
1959
|
-
end
|
1960
|
-
|
1961
|
-
if @api_client.config.client_side_validation && app_id.to_s.length < 1
|
1962
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_transformation_simulate, the character length must be great than or equal to 1.'
|
1963
|
-
end
|
1964
|
-
|
1965
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
1966
|
-
if @api_client.config.client_side_validation && app_id !~ pattern
|
1967
|
-
fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_endpoint_transformation_simulate, must conform to the pattern #{pattern}."
|
1968
|
-
end
|
1969
|
-
|
1970
|
-
# verify the required parameter 'endpoint_id' is set
|
1971
|
-
if @api_client.config.client_side_validation && endpoint_id.nil?
|
1972
|
-
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.v1_endpoint_transformation_simulate"
|
1973
|
-
end
|
1974
|
-
if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
|
1975
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_transformation_simulate, the character length must be smaller than or equal to 256.'
|
1976
|
-
end
|
1977
|
-
|
1978
|
-
if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
|
1979
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_transformation_simulate, the character length must be great than or equal to 1.'
|
1980
|
-
end
|
1981
|
-
|
1982
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
1983
|
-
if @api_client.config.client_side_validation && endpoint_id !~ pattern
|
1984
|
-
fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.v1_endpoint_transformation_simulate, must conform to the pattern #{pattern}."
|
1985
|
-
end
|
1986
|
-
|
1987
|
-
# verify the required parameter 'endpoint_transformation_simulate_in' is set
|
1988
|
-
if @api_client.config.client_side_validation && endpoint_transformation_simulate_in.nil?
|
1989
|
-
fail ArgumentError, "Missing the required parameter 'endpoint_transformation_simulate_in' when calling EndpointApi.v1_endpoint_transformation_simulate"
|
1990
|
-
end
|
1991
|
-
# resource path
|
1992
|
-
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/transformation/simulate'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
1993
|
-
|
1994
|
-
# query parameters
|
1995
|
-
query_params = opts[:query_params] || {}
|
1996
|
-
|
1997
|
-
# header parameters
|
1998
|
-
header_params = opts[:header_params] || {}
|
1999
|
-
# HTTP header 'Accept' (if needed)
|
2000
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
2001
|
-
# HTTP header 'Content-Type'
|
2002
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
2003
|
-
if !content_type.nil?
|
2004
|
-
header_params['Content-Type'] = content_type
|
2005
|
-
end
|
2006
|
-
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
2007
|
-
|
2008
|
-
# form parameters
|
2009
|
-
form_params = opts[:form_params] || {}
|
2010
|
-
|
2011
|
-
# http body (model)
|
2012
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(endpoint_transformation_simulate_in)
|
2013
|
-
|
2014
|
-
# return_type
|
2015
|
-
return_type = opts[:debug_return_type] || 'EndpointTransformationSimulateOut'
|
2016
|
-
|
2017
|
-
# auth_names
|
2018
|
-
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
2019
|
-
|
2020
|
-
new_options = opts.merge(
|
2021
|
-
:operation => :"EndpointApi.v1_endpoint_transformation_simulate",
|
2022
|
-
:header_params => header_params,
|
2023
|
-
:query_params => query_params,
|
2024
|
-
:form_params => form_params,
|
2025
|
-
:body => post_body,
|
2026
|
-
:auth_names => auth_names,
|
2027
|
-
:return_type => return_type
|
2028
|
-
)
|
2029
|
-
|
2030
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
2031
|
-
if @api_client.config.debugging
|
2032
|
-
@api_client.config.logger.debug "API called: EndpointApi#v1_endpoint_transformation_simulate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2033
|
-
end
|
2034
|
-
return data, status_code, headers
|
2035
|
-
end
|
2036
|
-
|
2037
|
-
# Update Endpoint
|
2038
|
-
# Update an endpoint.
|
2039
|
-
# @param app_id [String] The Application's ID or UID.
|
2040
|
-
# @param endpoint_id [String] The Endpoint's ID or UID.
|
2041
|
-
# @param endpoint_update [EndpointUpdate]
|
2042
|
-
# @param [Hash] opts the optional parameters
|
2043
|
-
# @return [EndpointOut]
|
2044
|
-
def v1_endpoint_update(app_id, endpoint_id, endpoint_update, opts = {})
|
2045
|
-
data, _status_code, _headers = v1_endpoint_update_with_http_info(app_id, endpoint_id, endpoint_update, opts)
|
2046
|
-
data
|
2047
|
-
end
|
2048
|
-
|
2049
|
-
# Update Endpoint
|
2050
|
-
# Update an endpoint.
|
2051
|
-
# @param app_id [String] The Application's ID or UID.
|
2052
|
-
# @param endpoint_id [String] The Endpoint's ID or UID.
|
2053
|
-
# @param endpoint_update [EndpointUpdate]
|
2054
|
-
# @param [Hash] opts the optional parameters
|
2055
|
-
# @return [Array<(EndpointOut, Integer, Hash)>] EndpointOut data, response status code and response headers
|
2056
|
-
def v1_endpoint_update_with_http_info(app_id, endpoint_id, endpoint_update, opts = {})
|
2057
|
-
if @api_client.config.debugging
|
2058
|
-
@api_client.config.logger.debug 'Calling API: EndpointApi.v1_endpoint_update ...'
|
2059
|
-
end
|
2060
|
-
# verify the required parameter 'app_id' is set
|
2061
|
-
if @api_client.config.client_side_validation && app_id.nil?
|
2062
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_endpoint_update"
|
2063
|
-
end
|
2064
|
-
if @api_client.config.client_side_validation && app_id.to_s.length > 256
|
2065
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_update, the character length must be smaller than or equal to 256.'
|
2066
|
-
end
|
2067
|
-
|
2068
|
-
if @api_client.config.client_side_validation && app_id.to_s.length < 1
|
2069
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_update, the character length must be great than or equal to 1.'
|
2070
|
-
end
|
2071
|
-
|
2072
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
2073
|
-
if @api_client.config.client_side_validation && app_id !~ pattern
|
2074
|
-
fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_endpoint_update, must conform to the pattern #{pattern}."
|
2075
|
-
end
|
2076
|
-
|
2077
|
-
# verify the required parameter 'endpoint_id' is set
|
2078
|
-
if @api_client.config.client_side_validation && endpoint_id.nil?
|
2079
|
-
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.v1_endpoint_update"
|
2080
|
-
end
|
2081
|
-
if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
|
2082
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_update, the character length must be smaller than or equal to 256.'
|
2083
|
-
end
|
2084
|
-
|
2085
|
-
if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
|
2086
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_update, the character length must be great than or equal to 1.'
|
2087
|
-
end
|
2088
|
-
|
2089
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
2090
|
-
if @api_client.config.client_side_validation && endpoint_id !~ pattern
|
2091
|
-
fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.v1_endpoint_update, must conform to the pattern #{pattern}."
|
2092
|
-
end
|
2093
|
-
|
2094
|
-
# verify the required parameter 'endpoint_update' is set
|
2095
|
-
if @api_client.config.client_side_validation && endpoint_update.nil?
|
2096
|
-
fail ArgumentError, "Missing the required parameter 'endpoint_update' when calling EndpointApi.v1_endpoint_update"
|
2097
|
-
end
|
2098
|
-
# resource path
|
2099
|
-
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
2100
|
-
|
2101
|
-
# query parameters
|
2102
|
-
query_params = opts[:query_params] || {}
|
2103
|
-
|
2104
|
-
# header parameters
|
2105
|
-
header_params = opts[:header_params] || {}
|
2106
|
-
# HTTP header 'Accept' (if needed)
|
2107
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
2108
|
-
# HTTP header 'Content-Type'
|
2109
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
2110
|
-
if !content_type.nil?
|
2111
|
-
header_params['Content-Type'] = content_type
|
2112
|
-
end
|
2113
|
-
|
2114
|
-
# form parameters
|
2115
|
-
form_params = opts[:form_params] || {}
|
2116
|
-
|
2117
|
-
# http body (model)
|
2118
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(endpoint_update)
|
2119
|
-
|
2120
|
-
# return_type
|
2121
|
-
return_type = opts[:debug_return_type] || 'EndpointOut'
|
2122
|
-
|
2123
|
-
# auth_names
|
2124
|
-
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
2125
|
-
|
2126
|
-
new_options = opts.merge(
|
2127
|
-
:operation => :"EndpointApi.v1_endpoint_update",
|
2128
|
-
:header_params => header_params,
|
2129
|
-
:query_params => query_params,
|
2130
|
-
:form_params => form_params,
|
2131
|
-
:body => post_body,
|
2132
|
-
:auth_names => auth_names,
|
2133
|
-
:return_type => return_type
|
2134
|
-
)
|
2135
|
-
|
2136
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
2137
|
-
if @api_client.config.debugging
|
2138
|
-
@api_client.config.logger.debug "API called: EndpointApi#v1_endpoint_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2139
|
-
end
|
2140
|
-
return data, status_code, headers
|
2141
|
-
end
|
2142
|
-
|
2143
|
-
# Update Endpoint Headers
|
2144
|
-
# Set the additional headers to be sent with the webhook.
|
2145
|
-
# @param app_id [String] The Application's ID or UID.
|
2146
|
-
# @param endpoint_id [String] The Endpoint's ID or UID.
|
2147
|
-
# @param endpoint_headers_in [EndpointHeadersIn]
|
2148
|
-
# @param [Hash] opts the optional parameters
|
2149
|
-
# @return [nil]
|
2150
|
-
def v1_endpoint_update_headers(app_id, endpoint_id, endpoint_headers_in, opts = {})
|
2151
|
-
v1_endpoint_update_headers_with_http_info(app_id, endpoint_id, endpoint_headers_in, opts)
|
2152
|
-
nil
|
2153
|
-
end
|
2154
|
-
|
2155
|
-
# Update Endpoint Headers
|
2156
|
-
# Set the additional headers to be sent with the webhook.
|
2157
|
-
# @param app_id [String] The Application's ID or UID.
|
2158
|
-
# @param endpoint_id [String] The Endpoint's ID or UID.
|
2159
|
-
# @param endpoint_headers_in [EndpointHeadersIn]
|
2160
|
-
# @param [Hash] opts the optional parameters
|
2161
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
2162
|
-
def v1_endpoint_update_headers_with_http_info(app_id, endpoint_id, endpoint_headers_in, opts = {})
|
2163
|
-
if @api_client.config.debugging
|
2164
|
-
@api_client.config.logger.debug 'Calling API: EndpointApi.v1_endpoint_update_headers ...'
|
2165
|
-
end
|
2166
|
-
# verify the required parameter 'app_id' is set
|
2167
|
-
if @api_client.config.client_side_validation && app_id.nil?
|
2168
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_endpoint_update_headers"
|
2169
|
-
end
|
2170
|
-
if @api_client.config.client_side_validation && app_id.to_s.length > 256
|
2171
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_update_headers, the character length must be smaller than or equal to 256.'
|
2172
|
-
end
|
2173
|
-
|
2174
|
-
if @api_client.config.client_side_validation && app_id.to_s.length < 1
|
2175
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_update_headers, the character length must be great than or equal to 1.'
|
2176
|
-
end
|
2177
|
-
|
2178
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
2179
|
-
if @api_client.config.client_side_validation && app_id !~ pattern
|
2180
|
-
fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_endpoint_update_headers, must conform to the pattern #{pattern}."
|
2181
|
-
end
|
2182
|
-
|
2183
|
-
# verify the required parameter 'endpoint_id' is set
|
2184
|
-
if @api_client.config.client_side_validation && endpoint_id.nil?
|
2185
|
-
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.v1_endpoint_update_headers"
|
2186
|
-
end
|
2187
|
-
if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
|
2188
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_update_headers, the character length must be smaller than or equal to 256.'
|
2189
|
-
end
|
2190
|
-
|
2191
|
-
if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
|
2192
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_update_headers, the character length must be great than or equal to 1.'
|
2193
|
-
end
|
2194
|
-
|
2195
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
2196
|
-
if @api_client.config.client_side_validation && endpoint_id !~ pattern
|
2197
|
-
fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.v1_endpoint_update_headers, must conform to the pattern #{pattern}."
|
2198
|
-
end
|
2199
|
-
|
2200
|
-
# verify the required parameter 'endpoint_headers_in' is set
|
2201
|
-
if @api_client.config.client_side_validation && endpoint_headers_in.nil?
|
2202
|
-
fail ArgumentError, "Missing the required parameter 'endpoint_headers_in' when calling EndpointApi.v1_endpoint_update_headers"
|
2203
|
-
end
|
2204
|
-
# resource path
|
2205
|
-
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/headers'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
2206
|
-
|
2207
|
-
# query parameters
|
2208
|
-
query_params = opts[:query_params] || {}
|
2209
|
-
|
2210
|
-
# header parameters
|
2211
|
-
header_params = opts[:header_params] || {}
|
2212
|
-
# HTTP header 'Accept' (if needed)
|
2213
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
2214
|
-
# HTTP header 'Content-Type'
|
2215
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
2216
|
-
if !content_type.nil?
|
2217
|
-
header_params['Content-Type'] = content_type
|
2218
|
-
end
|
2219
|
-
|
2220
|
-
# form parameters
|
2221
|
-
form_params = opts[:form_params] || {}
|
2222
|
-
|
2223
|
-
# http body (model)
|
2224
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(endpoint_headers_in)
|
2225
|
-
|
2226
|
-
# return_type
|
2227
|
-
return_type = opts[:debug_return_type]
|
2228
|
-
|
2229
|
-
# auth_names
|
2230
|
-
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
2231
|
-
|
2232
|
-
new_options = opts.merge(
|
2233
|
-
:operation => :"EndpointApi.v1_endpoint_update_headers",
|
2234
|
-
:header_params => header_params,
|
2235
|
-
:query_params => query_params,
|
2236
|
-
:form_params => form_params,
|
2237
|
-
:body => post_body,
|
2238
|
-
:auth_names => auth_names,
|
2239
|
-
:return_type => return_type
|
2240
|
-
)
|
2241
|
-
|
2242
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
2243
|
-
if @api_client.config.debugging
|
2244
|
-
@api_client.config.logger.debug "API called: EndpointApi#v1_endpoint_update_headers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2245
|
-
end
|
2246
|
-
return data, status_code, headers
|
2247
|
-
end
|
2248
|
-
|
2249
|
-
# Update Endpoint Mtls Config
|
2250
|
-
# Create / update endpoint mTLS configuration.
|
2251
|
-
# @param app_id [String] The Application's ID or UID.
|
2252
|
-
# @param endpoint_id [String] The Endpoint's ID or UID.
|
2253
|
-
# @param endpoint_mtls_config_in [EndpointMtlsConfigIn]
|
2254
|
-
# @param [Hash] opts the optional parameters
|
2255
|
-
# @return [nil]
|
2256
|
-
def v1_endpoint_update_mtls_config(app_id, endpoint_id, endpoint_mtls_config_in, opts = {})
|
2257
|
-
v1_endpoint_update_mtls_config_with_http_info(app_id, endpoint_id, endpoint_mtls_config_in, opts)
|
2258
|
-
nil
|
2259
|
-
end
|
2260
|
-
|
2261
|
-
# Update Endpoint Mtls Config
|
2262
|
-
# Create / update endpoint mTLS configuration.
|
2263
|
-
# @param app_id [String] The Application's ID or UID.
|
2264
|
-
# @param endpoint_id [String] The Endpoint's ID or UID.
|
2265
|
-
# @param endpoint_mtls_config_in [EndpointMtlsConfigIn]
|
2266
|
-
# @param [Hash] opts the optional parameters
|
2267
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
2268
|
-
def v1_endpoint_update_mtls_config_with_http_info(app_id, endpoint_id, endpoint_mtls_config_in, opts = {})
|
2269
|
-
if @api_client.config.debugging
|
2270
|
-
@api_client.config.logger.debug 'Calling API: EndpointApi.v1_endpoint_update_mtls_config ...'
|
2271
|
-
end
|
2272
|
-
# verify the required parameter 'app_id' is set
|
2273
|
-
if @api_client.config.client_side_validation && app_id.nil?
|
2274
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_endpoint_update_mtls_config"
|
2275
|
-
end
|
2276
|
-
if @api_client.config.client_side_validation && app_id.to_s.length > 256
|
2277
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_update_mtls_config, the character length must be smaller than or equal to 256.'
|
2278
|
-
end
|
2279
|
-
|
2280
|
-
if @api_client.config.client_side_validation && app_id.to_s.length < 1
|
2281
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_update_mtls_config, the character length must be great than or equal to 1.'
|
2282
|
-
end
|
2283
|
-
|
2284
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
2285
|
-
if @api_client.config.client_side_validation && app_id !~ pattern
|
2286
|
-
fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_endpoint_update_mtls_config, must conform to the pattern #{pattern}."
|
2287
|
-
end
|
2288
|
-
|
2289
|
-
# verify the required parameter 'endpoint_id' is set
|
2290
|
-
if @api_client.config.client_side_validation && endpoint_id.nil?
|
2291
|
-
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.v1_endpoint_update_mtls_config"
|
2292
|
-
end
|
2293
|
-
if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
|
2294
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_update_mtls_config, the character length must be smaller than or equal to 256.'
|
2295
|
-
end
|
2296
|
-
|
2297
|
-
if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
|
2298
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_update_mtls_config, the character length must be great than or equal to 1.'
|
2299
|
-
end
|
2300
|
-
|
2301
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
2302
|
-
if @api_client.config.client_side_validation && endpoint_id !~ pattern
|
2303
|
-
fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.v1_endpoint_update_mtls_config, must conform to the pattern #{pattern}."
|
2304
|
-
end
|
2305
|
-
|
2306
|
-
# verify the required parameter 'endpoint_mtls_config_in' is set
|
2307
|
-
if @api_client.config.client_side_validation && endpoint_mtls_config_in.nil?
|
2308
|
-
fail ArgumentError, "Missing the required parameter 'endpoint_mtls_config_in' when calling EndpointApi.v1_endpoint_update_mtls_config"
|
2309
|
-
end
|
2310
|
-
# resource path
|
2311
|
-
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/mtls'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
2312
|
-
|
2313
|
-
# query parameters
|
2314
|
-
query_params = opts[:query_params] || {}
|
2315
|
-
|
2316
|
-
# header parameters
|
2317
|
-
header_params = opts[:header_params] || {}
|
2318
|
-
# HTTP header 'Accept' (if needed)
|
2319
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
2320
|
-
# HTTP header 'Content-Type'
|
2321
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
2322
|
-
if !content_type.nil?
|
2323
|
-
header_params['Content-Type'] = content_type
|
2324
|
-
end
|
2325
|
-
|
2326
|
-
# form parameters
|
2327
|
-
form_params = opts[:form_params] || {}
|
2328
|
-
|
2329
|
-
# http body (model)
|
2330
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(endpoint_mtls_config_in)
|
2331
|
-
|
2332
|
-
# return_type
|
2333
|
-
return_type = opts[:debug_return_type]
|
2334
|
-
|
2335
|
-
# auth_names
|
2336
|
-
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
2337
|
-
|
2338
|
-
new_options = opts.merge(
|
2339
|
-
:operation => :"EndpointApi.v1_endpoint_update_mtls_config",
|
2340
|
-
:header_params => header_params,
|
2341
|
-
:query_params => query_params,
|
2342
|
-
:form_params => form_params,
|
2343
|
-
:body => post_body,
|
2344
|
-
:auth_names => auth_names,
|
2345
|
-
:return_type => return_type
|
2346
|
-
)
|
2347
|
-
|
2348
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
2349
|
-
if @api_client.config.debugging
|
2350
|
-
@api_client.config.logger.debug "API called: EndpointApi#v1_endpoint_update_mtls_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2351
|
-
end
|
2352
|
-
return data, status_code, headers
|
2353
|
-
end
|
2354
|
-
|
2355
|
-
# Update Endpoint Oauth Config
|
2356
|
-
# Create / update endpoint OAuth configuration.
|
2357
|
-
# @param app_id [String] The Application's ID or UID.
|
2358
|
-
# @param endpoint_id [String] The Endpoint's ID or UID.
|
2359
|
-
# @param endpoint_oauth_config_in [EndpointOauthConfigIn]
|
2360
|
-
# @param [Hash] opts the optional parameters
|
2361
|
-
# @return [nil]
|
2362
|
-
def v1_endpoint_update_oauth_config(app_id, endpoint_id, endpoint_oauth_config_in, opts = {})
|
2363
|
-
v1_endpoint_update_oauth_config_with_http_info(app_id, endpoint_id, endpoint_oauth_config_in, opts)
|
2364
|
-
nil
|
2365
|
-
end
|
2366
|
-
|
2367
|
-
# Update Endpoint Oauth Config
|
2368
|
-
# Create / update endpoint OAuth configuration.
|
2369
|
-
# @param app_id [String] The Application's ID or UID.
|
2370
|
-
# @param endpoint_id [String] The Endpoint's ID or UID.
|
2371
|
-
# @param endpoint_oauth_config_in [EndpointOauthConfigIn]
|
2372
|
-
# @param [Hash] opts the optional parameters
|
2373
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
2374
|
-
def v1_endpoint_update_oauth_config_with_http_info(app_id, endpoint_id, endpoint_oauth_config_in, opts = {})
|
2375
|
-
if @api_client.config.debugging
|
2376
|
-
@api_client.config.logger.debug 'Calling API: EndpointApi.v1_endpoint_update_oauth_config ...'
|
2377
|
-
end
|
2378
|
-
# verify the required parameter 'app_id' is set
|
2379
|
-
if @api_client.config.client_side_validation && app_id.nil?
|
2380
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_endpoint_update_oauth_config"
|
2381
|
-
end
|
2382
|
-
if @api_client.config.client_side_validation && app_id.to_s.length > 256
|
2383
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_update_oauth_config, the character length must be smaller than or equal to 256.'
|
2384
|
-
end
|
2385
|
-
|
2386
|
-
if @api_client.config.client_side_validation && app_id.to_s.length < 1
|
2387
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_endpoint_update_oauth_config, the character length must be great than or equal to 1.'
|
2388
|
-
end
|
2389
|
-
|
2390
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
2391
|
-
if @api_client.config.client_side_validation && app_id !~ pattern
|
2392
|
-
fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_endpoint_update_oauth_config, must conform to the pattern #{pattern}."
|
2393
|
-
end
|
2394
|
-
|
2395
|
-
# verify the required parameter 'endpoint_id' is set
|
2396
|
-
if @api_client.config.client_side_validation && endpoint_id.nil?
|
2397
|
-
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.v1_endpoint_update_oauth_config"
|
2398
|
-
end
|
2399
|
-
if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
|
2400
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_update_oauth_config, the character length must be smaller than or equal to 256.'
|
2401
|
-
end
|
2402
|
-
|
2403
|
-
if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
|
2404
|
-
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.v1_endpoint_update_oauth_config, the character length must be great than or equal to 1.'
|
2405
|
-
end
|
2406
|
-
|
2407
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
2408
|
-
if @api_client.config.client_side_validation && endpoint_id !~ pattern
|
2409
|
-
fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.v1_endpoint_update_oauth_config, must conform to the pattern #{pattern}."
|
2410
|
-
end
|
2411
|
-
|
2412
|
-
# verify the required parameter 'endpoint_oauth_config_in' is set
|
2413
|
-
if @api_client.config.client_side_validation && endpoint_oauth_config_in.nil?
|
2414
|
-
fail ArgumentError, "Missing the required parameter 'endpoint_oauth_config_in' when calling EndpointApi.v1_endpoint_update_oauth_config"
|
2415
|
-
end
|
2416
|
-
# resource path
|
2417
|
-
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/oauth'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
2418
|
-
|
2419
|
-
# query parameters
|
2420
|
-
query_params = opts[:query_params] || {}
|
2421
|
-
|
2422
|
-
# header parameters
|
2423
|
-
header_params = opts[:header_params] || {}
|
2424
|
-
# HTTP header 'Accept' (if needed)
|
2425
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
2426
|
-
# HTTP header 'Content-Type'
|
2427
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
2428
|
-
if !content_type.nil?
|
2429
|
-
header_params['Content-Type'] = content_type
|
2430
|
-
end
|
2431
|
-
|
2432
|
-
# form parameters
|
2433
|
-
form_params = opts[:form_params] || {}
|
2434
|
-
|
2435
|
-
# http body (model)
|
2436
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(endpoint_oauth_config_in)
|
2437
|
-
|
2438
|
-
# return_type
|
2439
|
-
return_type = opts[:debug_return_type]
|
2440
|
-
|
2441
|
-
# auth_names
|
2442
|
-
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
2443
|
-
|
2444
|
-
new_options = opts.merge(
|
2445
|
-
:operation => :"EndpointApi.v1_endpoint_update_oauth_config",
|
2446
|
-
:header_params => header_params,
|
2447
|
-
:query_params => query_params,
|
2448
|
-
:form_params => form_params,
|
2449
|
-
:body => post_body,
|
2450
|
-
:auth_names => auth_names,
|
2451
|
-
:return_type => return_type
|
2452
|
-
)
|
2453
|
-
|
2454
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
2455
|
-
if @api_client.config.debugging
|
2456
|
-
@api_client.config.logger.debug "API called: EndpointApi#v1_endpoint_update_oauth_config\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2457
|
-
end
|
2458
|
-
return data, status_code, headers
|
2459
|
-
end
|
2460
|
-
|
2461
|
-
# Create Sink
|
2462
|
-
# Create a new sink for the application.
|
2463
|
-
# @param app_id [String] The Application's ID or UID.
|
2464
|
-
# @param sink_in [SinkIn]
|
2465
|
-
# @param [Hash] opts the optional parameters
|
2466
|
-
# @option opts [String] :idempotency_key The request's idempotency key
|
2467
|
-
# @return [SinkOut]
|
2468
|
-
def v1_sink_create(app_id, sink_in, opts = {})
|
2469
|
-
data, _status_code, _headers = v1_sink_create_with_http_info(app_id, sink_in, opts)
|
2470
|
-
data
|
2471
|
-
end
|
2472
|
-
|
2473
|
-
# Create Sink
|
2474
|
-
# Create a new sink for the application.
|
2475
|
-
# @param app_id [String] The Application's ID or UID.
|
2476
|
-
# @param sink_in [SinkIn]
|
2477
|
-
# @param [Hash] opts the optional parameters
|
2478
|
-
# @option opts [String] :idempotency_key The request's idempotency key
|
2479
|
-
# @return [Array<(SinkOut, Integer, Hash)>] SinkOut data, response status code and response headers
|
2480
|
-
def v1_sink_create_with_http_info(app_id, sink_in, opts = {})
|
2481
|
-
if @api_client.config.debugging
|
2482
|
-
@api_client.config.logger.debug 'Calling API: EndpointApi.v1_sink_create ...'
|
2483
|
-
end
|
2484
|
-
# verify the required parameter 'app_id' is set
|
2485
|
-
if @api_client.config.client_side_validation && app_id.nil?
|
2486
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_sink_create"
|
2487
|
-
end
|
2488
|
-
if @api_client.config.client_side_validation && app_id.to_s.length > 256
|
2489
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_sink_create, the character length must be smaller than or equal to 256.'
|
2490
|
-
end
|
2491
|
-
|
2492
|
-
if @api_client.config.client_side_validation && app_id.to_s.length < 1
|
2493
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_sink_create, the character length must be great than or equal to 1.'
|
2494
|
-
end
|
2495
|
-
|
2496
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
2497
|
-
if @api_client.config.client_side_validation && app_id !~ pattern
|
2498
|
-
fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_sink_create, must conform to the pattern #{pattern}."
|
2499
|
-
end
|
2500
|
-
|
2501
|
-
# verify the required parameter 'sink_in' is set
|
2502
|
-
if @api_client.config.client_side_validation && sink_in.nil?
|
2503
|
-
fail ArgumentError, "Missing the required parameter 'sink_in' when calling EndpointApi.v1_sink_create"
|
2504
|
-
end
|
2505
|
-
# resource path
|
2506
|
-
local_var_path = '/api/v1/app/{app_id}/sink'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
|
2507
|
-
|
2508
|
-
# query parameters
|
2509
|
-
query_params = opts[:query_params] || {}
|
2510
|
-
|
2511
|
-
# header parameters
|
2512
|
-
header_params = opts[:header_params] || {}
|
2513
|
-
# HTTP header 'Accept' (if needed)
|
2514
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
2515
|
-
# HTTP header 'Content-Type'
|
2516
|
-
content_type = @api_client.select_header_content_type(['application/json'])
|
2517
|
-
if !content_type.nil?
|
2518
|
-
header_params['Content-Type'] = content_type
|
2519
|
-
end
|
2520
|
-
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
2521
|
-
|
2522
|
-
# form parameters
|
2523
|
-
form_params = opts[:form_params] || {}
|
2524
|
-
|
2525
|
-
# http body (model)
|
2526
|
-
post_body = opts[:debug_body] || @api_client.object_to_http_body(sink_in)
|
2527
|
-
|
2528
|
-
# return_type
|
2529
|
-
return_type = opts[:debug_return_type] || 'SinkOut'
|
2530
|
-
|
2531
|
-
# auth_names
|
2532
|
-
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
2533
|
-
|
2534
|
-
new_options = opts.merge(
|
2535
|
-
:operation => :"EndpointApi.v1_sink_create",
|
2536
|
-
:header_params => header_params,
|
2537
|
-
:query_params => query_params,
|
2538
|
-
:form_params => form_params,
|
2539
|
-
:body => post_body,
|
2540
|
-
:auth_names => auth_names,
|
2541
|
-
:return_type => return_type
|
2542
|
-
)
|
2543
|
-
|
2544
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
2545
|
-
if @api_client.config.debugging
|
2546
|
-
@api_client.config.logger.debug "API called: EndpointApi#v1_sink_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2547
|
-
end
|
2548
|
-
return data, status_code, headers
|
2549
|
-
end
|
2550
|
-
|
2551
|
-
# Get Sink
|
2552
|
-
# Get a sink.
|
2553
|
-
# @param app_id [String] The Application's ID or UID.
|
2554
|
-
# @param sink_id [String] The Endpoint's ID or UID.
|
2555
|
-
# @param [Hash] opts the optional parameters
|
2556
|
-
# @return [SinkOut]
|
2557
|
-
def v1_sink_get(app_id, sink_id, opts = {})
|
2558
|
-
data, _status_code, _headers = v1_sink_get_with_http_info(app_id, sink_id, opts)
|
2559
|
-
data
|
2560
|
-
end
|
2561
|
-
|
2562
|
-
# Get Sink
|
2563
|
-
# Get a sink.
|
2564
|
-
# @param app_id [String] The Application's ID or UID.
|
2565
|
-
# @param sink_id [String] The Endpoint's ID or UID.
|
2566
|
-
# @param [Hash] opts the optional parameters
|
2567
|
-
# @return [Array<(SinkOut, Integer, Hash)>] SinkOut data, response status code and response headers
|
2568
|
-
def v1_sink_get_with_http_info(app_id, sink_id, opts = {})
|
2569
|
-
if @api_client.config.debugging
|
2570
|
-
@api_client.config.logger.debug 'Calling API: EndpointApi.v1_sink_get ...'
|
2571
|
-
end
|
2572
|
-
# verify the required parameter 'app_id' is set
|
2573
|
-
if @api_client.config.client_side_validation && app_id.nil?
|
2574
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_sink_get"
|
2575
|
-
end
|
2576
|
-
if @api_client.config.client_side_validation && app_id.to_s.length > 256
|
2577
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_sink_get, the character length must be smaller than or equal to 256.'
|
2578
|
-
end
|
2579
|
-
|
2580
|
-
if @api_client.config.client_side_validation && app_id.to_s.length < 1
|
2581
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_sink_get, the character length must be great than or equal to 1.'
|
2582
|
-
end
|
2583
|
-
|
2584
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
2585
|
-
if @api_client.config.client_side_validation && app_id !~ pattern
|
2586
|
-
fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_sink_get, must conform to the pattern #{pattern}."
|
2587
|
-
end
|
2588
|
-
|
2589
|
-
# verify the required parameter 'sink_id' is set
|
2590
|
-
if @api_client.config.client_side_validation && sink_id.nil?
|
2591
|
-
fail ArgumentError, "Missing the required parameter 'sink_id' when calling EndpointApi.v1_sink_get"
|
2592
|
-
end
|
2593
|
-
if @api_client.config.client_side_validation && sink_id.to_s.length > 256
|
2594
|
-
fail ArgumentError, 'invalid value for "sink_id" when calling EndpointApi.v1_sink_get, the character length must be smaller than or equal to 256.'
|
2595
|
-
end
|
2596
|
-
|
2597
|
-
if @api_client.config.client_side_validation && sink_id.to_s.length < 1
|
2598
|
-
fail ArgumentError, 'invalid value for "sink_id" when calling EndpointApi.v1_sink_get, the character length must be great than or equal to 1.'
|
2599
|
-
end
|
2600
|
-
|
2601
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
2602
|
-
if @api_client.config.client_side_validation && sink_id !~ pattern
|
2603
|
-
fail ArgumentError, "invalid value for 'sink_id' when calling EndpointApi.v1_sink_get, must conform to the pattern #{pattern}."
|
2604
|
-
end
|
2605
|
-
|
2606
|
-
# resource path
|
2607
|
-
local_var_path = '/api/v1/app/{app_id}/sink/{sink_id}'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'sink_id' + '}', CGI.escape(sink_id.to_s))
|
2608
|
-
|
2609
|
-
# query parameters
|
2610
|
-
query_params = opts[:query_params] || {}
|
2611
|
-
|
2612
|
-
# header parameters
|
2613
|
-
header_params = opts[:header_params] || {}
|
2614
|
-
# HTTP header 'Accept' (if needed)
|
2615
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
2616
|
-
|
2617
|
-
# form parameters
|
2618
|
-
form_params = opts[:form_params] || {}
|
2619
|
-
|
2620
|
-
# http body (model)
|
2621
|
-
post_body = opts[:debug_body]
|
2622
|
-
|
2623
|
-
# return_type
|
2624
|
-
return_type = opts[:debug_return_type] || 'SinkOut'
|
2625
|
-
|
2626
|
-
# auth_names
|
2627
|
-
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
2628
|
-
|
2629
|
-
new_options = opts.merge(
|
2630
|
-
:operation => :"EndpointApi.v1_sink_get",
|
2631
|
-
:header_params => header_params,
|
2632
|
-
:query_params => query_params,
|
2633
|
-
:form_params => form_params,
|
2634
|
-
:body => post_body,
|
2635
|
-
:auth_names => auth_names,
|
2636
|
-
:return_type => return_type
|
2637
|
-
)
|
2638
|
-
|
2639
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
2640
|
-
if @api_client.config.debugging
|
2641
|
-
@api_client.config.logger.debug "API called: EndpointApi#v1_sink_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2642
|
-
end
|
2643
|
-
return data, status_code, headers
|
2644
|
-
end
|
2645
|
-
|
2646
|
-
# List Sinks
|
2647
|
-
# List the application's sinks.
|
2648
|
-
# @param app_id [String] The Application's ID or UID.
|
2649
|
-
# @param [Hash] opts the optional parameters
|
2650
|
-
# @option opts [Integer] :limit Limit the number of returned items
|
2651
|
-
# @option opts [String] :iterator The iterator returned from a prior invocation
|
2652
|
-
# @option opts [Ordering] :order The sorting order of the returned items
|
2653
|
-
# @return [ListResponseSinkOut]
|
2654
|
-
def v1_sink_list(app_id, opts = {})
|
2655
|
-
data, _status_code, _headers = v1_sink_list_with_http_info(app_id, opts)
|
2656
|
-
data
|
2657
|
-
end
|
2658
|
-
|
2659
|
-
# List Sinks
|
2660
|
-
# List the application's sinks.
|
2661
|
-
# @param app_id [String] The Application's ID or UID.
|
2662
|
-
# @param [Hash] opts the optional parameters
|
2663
|
-
# @option opts [Integer] :limit Limit the number of returned items
|
2664
|
-
# @option opts [String] :iterator The iterator returned from a prior invocation
|
2665
|
-
# @option opts [Ordering] :order The sorting order of the returned items
|
2666
|
-
# @return [Array<(ListResponseSinkOut, Integer, Hash)>] ListResponseSinkOut data, response status code and response headers
|
2667
|
-
def v1_sink_list_with_http_info(app_id, opts = {})
|
2668
|
-
if @api_client.config.debugging
|
2669
|
-
@api_client.config.logger.debug 'Calling API: EndpointApi.v1_sink_list ...'
|
2670
|
-
end
|
2671
|
-
# verify the required parameter 'app_id' is set
|
2672
|
-
if @api_client.config.client_side_validation && app_id.nil?
|
2673
|
-
fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.v1_sink_list"
|
2674
|
-
end
|
2675
|
-
if @api_client.config.client_side_validation && app_id.to_s.length > 256
|
2676
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_sink_list, the character length must be smaller than or equal to 256.'
|
2677
|
-
end
|
2678
|
-
|
2679
|
-
if @api_client.config.client_side_validation && app_id.to_s.length < 1
|
2680
|
-
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.v1_sink_list, the character length must be great than or equal to 1.'
|
2681
|
-
end
|
2682
|
-
|
2683
|
-
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
2684
|
-
if @api_client.config.client_side_validation && app_id !~ pattern
|
2685
|
-
fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.v1_sink_list, must conform to the pattern #{pattern}."
|
2686
|
-
end
|
2687
|
-
|
2688
|
-
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 250
|
2689
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling EndpointApi.v1_sink_list, must be smaller than or equal to 250.'
|
2690
|
-
end
|
2691
|
-
|
2692
|
-
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] < 1
|
2693
|
-
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling EndpointApi.v1_sink_list, must be greater than or equal to 1.'
|
2694
|
-
end
|
2695
|
-
|
2696
|
-
if @api_client.config.client_side_validation && !opts[:'iterator'].nil? && opts[:'iterator'].to_s.length > 30
|
2697
|
-
fail ArgumentError, 'invalid value for "opts[:"iterator"]" when calling EndpointApi.v1_sink_list, the character length must be smaller than or equal to 30.'
|
2698
|
-
end
|
2699
|
-
|
2700
|
-
if @api_client.config.client_side_validation && !opts[:'iterator'].nil? && opts[:'iterator'].to_s.length < 30
|
2701
|
-
fail ArgumentError, 'invalid value for "opts[:"iterator"]" when calling EndpointApi.v1_sink_list, the character length must be great than or equal to 30.'
|
2702
|
-
end
|
2703
|
-
|
2704
|
-
pattern = Regexp.new(/^ep_[A-Za-z0-9]{27}$/)
|
2705
|
-
if @api_client.config.client_side_validation && !opts[:'iterator'].nil? && opts[:'iterator'] !~ pattern
|
2706
|
-
fail ArgumentError, "invalid value for 'opts[:\"iterator\"]' when calling EndpointApi.v1_sink_list, must conform to the pattern #{pattern}."
|
2707
|
-
end
|
2708
|
-
|
2709
|
-
# resource path
|
2710
|
-
local_var_path = '/api/v1/app/{app_id}/sink'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
|
2711
|
-
|
2712
|
-
# query parameters
|
2713
|
-
query_params = opts[:query_params] || {}
|
2714
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
2715
|
-
query_params[:'iterator'] = opts[:'iterator'] if !opts[:'iterator'].nil?
|
2716
|
-
query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil?
|
2717
|
-
|
2718
|
-
# header parameters
|
2719
|
-
header_params = opts[:header_params] || {}
|
2720
|
-
# HTTP header 'Accept' (if needed)
|
2721
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
2722
|
-
|
2723
|
-
# form parameters
|
2724
|
-
form_params = opts[:form_params] || {}
|
2725
|
-
|
2726
|
-
# http body (model)
|
2727
|
-
post_body = opts[:debug_body]
|
2728
|
-
|
2729
|
-
# return_type
|
2730
|
-
return_type = opts[:debug_return_type] || 'ListResponseSinkOut'
|
2731
|
-
|
2732
|
-
# auth_names
|
2733
|
-
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
2734
|
-
|
2735
|
-
new_options = opts.merge(
|
2736
|
-
:operation => :"EndpointApi.v1_sink_list",
|
2737
|
-
:header_params => header_params,
|
2738
|
-
:query_params => query_params,
|
2739
|
-
:form_params => form_params,
|
2740
|
-
:body => post_body,
|
2741
|
-
:auth_names => auth_names,
|
2742
|
-
:return_type => return_type
|
2743
|
-
)
|
2744
|
-
|
2745
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
2746
|
-
if @api_client.config.debugging
|
2747
|
-
@api_client.config.logger.debug "API called: EndpointApi#v1_sink_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2748
|
-
end
|
2749
|
-
return data, status_code, headers
|
2750
|
-
end
|
2751
|
-
end
|
2752
|
-
end
|