bandwidth-sdk 17.0.0 → 17.1.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.lock +4 -4
- data/README.md +29 -3
- data/bandwidth-sdk.gemspec +1 -2
- data/bandwidth.yml +85 -22
- data/coverage/.last_run.json +1 -1
- data/coverage/.resultset.json +317 -487
- data/coverage/index.html +6317 -7908
- data/custom_templates/README.mustache +4 -1
- data/custom_templates/api_client.mustache +254 -0
- data/custom_templates/configuration.mustache +545 -0
- data/custom_templates/gem.mustache +2 -0
- data/docs/CallsApi.md +20 -5
- data/docs/ConferencesApi.md +36 -9
- data/docs/MFAApi.md +12 -3
- data/docs/MediaApi.md +16 -4
- data/docs/MessagesApi.md +8 -2
- data/docs/MultiChannelAction.md +32 -81
- data/docs/MultiChannelApi.md +5 -2
- data/docs/{MultiChannelChannelListObject.md → MultiChannelChannelListMMSObject.md} +3 -3
- data/docs/{MultiChannelMessageResponseDataChannelListInner.md → MultiChannelChannelListMMSResponseObject.md} +3 -3
- data/docs/MultiChannelChannelListObjectBase.md +22 -0
- data/docs/MultiChannelChannelListOwnerObject.md +18 -0
- data/docs/MultiChannelChannelListRBMObject.md +24 -0
- data/docs/{MultiChannelChannelListObjectContent.md → MultiChannelChannelListRBMObjectAllOfContent.md} +6 -10
- data/docs/MultiChannelChannelListRBMResponseObject.md +26 -0
- data/docs/MultiChannelChannelListRequestObject.md +24 -0
- data/docs/MultiChannelChannelListResponseObject.md +26 -0
- data/docs/MultiChannelChannelListSMSObject.md +24 -0
- data/docs/MultiChannelChannelListSMSResponseObject.md +26 -0
- data/docs/MultiChannelMessageRequest.md +1 -1
- data/docs/MultiChannelMessageResponseData.md +1 -1
- data/docs/PhoneNumberLookupApi.md +12 -3
- data/docs/RbmActionBase.md +1 -1
- data/docs/RbmSuggestionResponse.md +1 -1
- data/docs/RecordingsApi.md +40 -10
- data/docs/StatisticsApi.md +4 -1
- data/docs/TollFreeVerificationApi.md +36 -9
- data/docs/TranscriptionsApi.md +12 -3
- data/lib/bandwidth-sdk/api/calls_api.rb +6 -6
- data/lib/bandwidth-sdk/api/conferences_api.rb +10 -10
- data/lib/bandwidth-sdk/api/media_api.rb +5 -5
- data/lib/bandwidth-sdk/api/messages_api.rb +3 -3
- data/lib/bandwidth-sdk/api/mfa_api.rb +4 -4
- data/lib/bandwidth-sdk/api/multi_channel_api.rb +2 -2
- data/lib/bandwidth-sdk/api/phone_number_lookup_api.rb +4 -4
- data/lib/bandwidth-sdk/api/recordings_api.rb +11 -11
- data/lib/bandwidth-sdk/api/statistics_api.rb +2 -2
- data/lib/bandwidth-sdk/api/toll_free_verification_api.rb +13 -13
- data/lib/bandwidth-sdk/api/transcriptions_api.rb +4 -4
- data/lib/bandwidth-sdk/api_client.rb +9 -5
- data/lib/bandwidth-sdk/api_error.rb +1 -1
- data/lib/bandwidth-sdk/api_model_base.rb +88 -0
- data/lib/bandwidth-sdk/configuration.rb +50 -1
- data/lib/bandwidth-sdk/models/account_statistics.rb +11 -78
- data/lib/bandwidth-sdk/models/additional_denial_reason.rb +41 -78
- data/lib/bandwidth-sdk/models/address.rb +23 -90
- data/lib/bandwidth-sdk/models/answer_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/async_lookup_request.rb +11 -78
- data/lib/bandwidth-sdk/models/blocked_webhook.rb +13 -80
- data/lib/bandwidth-sdk/models/bridge_complete_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/bridge_target_complete_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/business_entity_type_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/business_registration_type_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/call_direction_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/call_recording_metadata.rb +11 -78
- data/lib/bandwidth-sdk/models/call_state.rb +11 -78
- data/lib/bandwidth-sdk/models/call_state_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/call_transcription.rb +11 -78
- data/lib/bandwidth-sdk/models/call_transcription_detected_language_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/call_transcription_metadata.rb +11 -78
- data/lib/bandwidth-sdk/models/call_transcription_response.rb +11 -78
- data/lib/bandwidth-sdk/models/call_transcription_track_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/callback.rb +1 -1
- data/lib/bandwidth-sdk/models/callback_method_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/card_width_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/code_request.rb +11 -78
- data/lib/bandwidth-sdk/models/completed_lookup_status_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/conference.rb +11 -78
- data/lib/bandwidth-sdk/models/conference_completed_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/conference_created_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/conference_member.rb +11 -78
- data/lib/bandwidth-sdk/models/conference_member_exit_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/conference_member_join_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/conference_recording_available_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/conference_recording_metadata.rb +11 -78
- data/lib/bandwidth-sdk/models/conference_redirect_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/conference_state_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/contact.rb +19 -86
- data/lib/bandwidth-sdk/models/create_async_bulk_lookup_response.rb +11 -78
- data/lib/bandwidth-sdk/models/create_async_bulk_lookup_response_data.rb +11 -78
- data/lib/bandwidth-sdk/models/create_call.rb +41 -78
- data/lib/bandwidth-sdk/models/create_call_response.rb +81 -78
- data/lib/bandwidth-sdk/models/create_message_request_error.rb +31 -78
- data/lib/bandwidth-sdk/models/create_multi_channel_message_response.rb +11 -78
- data/lib/bandwidth-sdk/models/create_sync_lookup_response.rb +11 -78
- data/lib/bandwidth-sdk/models/create_sync_lookup_response_data.rb +11 -78
- data/lib/bandwidth-sdk/models/deactivation_event_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/disconnect_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/diversion.rb +11 -78
- data/lib/bandwidth-sdk/models/dtmf_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/error.rb +11 -78
- data/lib/bandwidth-sdk/models/error_object.rb +41 -78
- data/lib/bandwidth-sdk/models/error_source.rb +11 -78
- data/lib/bandwidth-sdk/models/failure_webhook.rb +13 -80
- data/lib/bandwidth-sdk/models/field_error.rb +11 -78
- data/lib/bandwidth-sdk/models/file_format_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/gather_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/get_async_bulk_lookup_response.rb +11 -78
- data/lib/bandwidth-sdk/models/get_async_bulk_lookup_response_data.rb +11 -78
- data/lib/bandwidth-sdk/models/in_progress_lookup_status_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/inbound_callback.rb +61 -78
- data/lib/bandwidth-sdk/models/inbound_callback_message.rb +81 -78
- data/lib/bandwidth-sdk/models/inbound_callback_type_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/initiate_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/latest_message_delivery_status_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/line_type_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/link.rb +11 -78
- data/lib/bandwidth-sdk/models/link_schema.rb +11 -78
- data/lib/bandwidth-sdk/models/links_object.rb +11 -78
- data/lib/bandwidth-sdk/models/list_message_direction_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/list_message_item.rb +11 -78
- data/lib/bandwidth-sdk/models/lookup_error_response.rb +11 -78
- data/lib/bandwidth-sdk/models/lookup_error_schema.rb +11 -78
- data/lib/bandwidth-sdk/models/lookup_error_schema_meta.rb +11 -78
- data/lib/bandwidth-sdk/models/lookup_result.rb +11 -78
- data/lib/bandwidth-sdk/models/machine_detection_complete_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/machine_detection_configuration.rb +11 -78
- data/lib/bandwidth-sdk/models/machine_detection_mode_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/machine_detection_result.rb +11 -78
- data/lib/bandwidth-sdk/models/media.rb +11 -78
- data/lib/bandwidth-sdk/models/message.rb +11 -78
- data/lib/bandwidth-sdk/models/message_direction_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/message_request.rb +31 -78
- data/lib/bandwidth-sdk/models/message_status_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/message_type_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/messages_list.rb +11 -78
- data/lib/bandwidth-sdk/models/messaging_code_response.rb +11 -78
- data/lib/bandwidth-sdk/models/messaging_request_error.rb +31 -78
- data/lib/bandwidth-sdk/models/mfa_forbidden_request_error.rb +11 -78
- data/lib/bandwidth-sdk/models/mfa_request_error.rb +11 -78
- data/lib/bandwidth-sdk/models/mfa_unauthorized_request_error.rb +11 -78
- data/lib/bandwidth-sdk/models/mms_message_content.rb +11 -78
- data/lib/bandwidth-sdk/models/mms_message_content_file.rb +11 -78
- data/lib/bandwidth-sdk/models/multi_channel_action.rb +71 -27
- data/lib/bandwidth-sdk/models/multi_channel_action_calendar_event.rb +41 -78
- data/lib/bandwidth-sdk/models/{multi_channel_channel_list_object.rb → multi_channel_channel_list_mms_object.rb} +60 -80
- data/lib/bandwidth-sdk/models/{multi_channel_message_response_data_channel_list_inner.rb → multi_channel_channel_list_mms_response_object.rb} +65 -81
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_object_base.rb +238 -0
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_owner_object.rb +163 -0
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_rbm_object.rb +271 -0
- data/lib/bandwidth-sdk/models/{multi_channel_channel_list_object_content.rb → multi_channel_channel_list_rbm_object_all_of_content.rb} +5 -8
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_rbm_response_object.rb +299 -0
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_request_object.rb +103 -0
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_response_object.rb +103 -0
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_sms_object.rb +271 -0
- data/lib/bandwidth-sdk/models/multi_channel_channel_list_sms_response_object.rb +299 -0
- data/lib/bandwidth-sdk/models/multi_channel_error.rb +11 -78
- data/lib/bandwidth-sdk/models/multi_channel_message_channel_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/multi_channel_message_content.rb +11 -78
- data/lib/bandwidth-sdk/models/multi_channel_message_request.rb +22 -79
- data/lib/bandwidth-sdk/models/multi_channel_message_response_data.rb +42 -79
- data/lib/bandwidth-sdk/models/opt_in_workflow.rb +25 -82
- data/lib/bandwidth-sdk/models/page_info.rb +11 -78
- data/lib/bandwidth-sdk/models/priority_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/product_type_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_action_base.rb +21 -78
- data/lib/bandwidth-sdk/models/rbm_action_dial.rb +31 -78
- data/lib/bandwidth-sdk/models/rbm_action_open_url.rb +21 -78
- data/lib/bandwidth-sdk/models/rbm_action_type_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_action_view_location.rb +41 -78
- data/lib/bandwidth-sdk/models/rbm_card_content.rb +11 -78
- data/lib/bandwidth-sdk/models/rbm_card_content_media.rb +21 -78
- data/lib/bandwidth-sdk/models/rbm_location_response.rb +11 -78
- data/lib/bandwidth-sdk/models/rbm_media_height_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/rbm_message_carousel_card.rb +21 -78
- data/lib/bandwidth-sdk/models/rbm_message_content_file.rb +11 -78
- data/lib/bandwidth-sdk/models/rbm_message_content_rich_card.rb +3 -4
- data/lib/bandwidth-sdk/models/rbm_message_content_text.rb +11 -78
- data/lib/bandwidth-sdk/models/rbm_message_media.rb +21 -78
- data/lib/bandwidth-sdk/models/rbm_standalone_card.rb +41 -78
- data/lib/bandwidth-sdk/models/rbm_suggestion_response.rb +11 -78
- data/lib/bandwidth-sdk/models/recording_available_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/recording_complete_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/recording_state_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/recording_transcription_metadata.rb +11 -78
- data/lib/bandwidth-sdk/models/recording_transcriptions.rb +11 -78
- data/lib/bandwidth-sdk/models/redirect_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/redirect_method_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/sms_message_content.rb +11 -78
- data/lib/bandwidth-sdk/models/standalone_card_orientation_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/status_callback.rb +61 -78
- data/lib/bandwidth-sdk/models/status_callback_message.rb +81 -78
- data/lib/bandwidth-sdk/models/status_callback_type_enum.rb +6 -6
- data/lib/bandwidth-sdk/models/stir_shaken.rb +11 -78
- data/lib/bandwidth-sdk/models/sync_lookup_request.rb +11 -78
- data/lib/bandwidth-sdk/models/telephone_number.rb +11 -78
- data/lib/bandwidth-sdk/models/tfv_basic_authentication.rb +11 -78
- data/lib/bandwidth-sdk/models/tfv_callback_status_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/tfv_error.rb +11 -78
- data/lib/bandwidth-sdk/models/tfv_status.rb +13 -80
- data/lib/bandwidth-sdk/models/tfv_status_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/tfv_submission_info.rb +21 -88
- data/lib/bandwidth-sdk/models/tfv_submission_wrapper.rb +11 -78
- data/lib/bandwidth-sdk/models/thumbnail_alignment_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/transcribe_recording.rb +11 -78
- data/lib/bandwidth-sdk/models/transcription.rb +11 -78
- data/lib/bandwidth-sdk/models/transcription_available_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/transfer_answer_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/transfer_complete_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/transfer_disconnect_callback.rb +11 -78
- data/lib/bandwidth-sdk/models/update_call.rb +11 -78
- data/lib/bandwidth-sdk/models/update_call_recording.rb +21 -78
- data/lib/bandwidth-sdk/models/update_conference.rb +11 -78
- data/lib/bandwidth-sdk/models/update_conference_member.rb +11 -78
- data/lib/bandwidth-sdk/models/verification_denial_webhook.rb +13 -80
- data/lib/bandwidth-sdk/models/verification_request.rb +51 -88
- data/lib/bandwidth-sdk/models/verification_update_request.rb +51 -88
- data/lib/bandwidth-sdk/models/verification_webhook.rb +13 -80
- data/lib/bandwidth-sdk/models/verify_code_request.rb +13 -80
- data/lib/bandwidth-sdk/models/verify_code_response.rb +11 -78
- data/lib/bandwidth-sdk/models/voice_api_error.rb +11 -78
- data/lib/bandwidth-sdk/models/voice_code_response.rb +11 -78
- data/lib/bandwidth-sdk/models/webhook_subscription.rb +13 -80
- data/lib/bandwidth-sdk/models/webhook_subscription_basic_authentication.rb +11 -78
- data/lib/bandwidth-sdk/models/webhook_subscription_request_schema.rb +15 -82
- data/lib/bandwidth-sdk/models/webhook_subscription_type_enum.rb +1 -1
- data/lib/bandwidth-sdk/models/webhook_subscriptions_list_body.rb +21 -78
- data/lib/bandwidth-sdk/version.rb +2 -2
- data/lib/bandwidth-sdk.rb +13 -4
- data/openapitools.json +1 -1
- data/spec/smoke/calls_api_spec.rb +50 -76
- data/spec/smoke/conferences_api_spec.rb +7 -5
- data/spec/smoke/media_api_spec.rb +4 -2
- data/spec/smoke/messages_api_spec.rb +9 -4
- data/spec/smoke/mfa_api_spec.rb +9 -4
- data/spec/smoke/multi_channel_api_spec.rb +128 -25
- data/spec/smoke/phone_number_lookup_api_spec.rb +7 -5
- data/spec/smoke/recordings_api_spec.rb +7 -33
- data/spec/smoke/statistics_api_spec.rb +16 -8
- data/spec/smoke/toll_free_verification_api_spec.rb +6 -4
- data/spec/smoke/transcriptions_api_spec.rb +7 -5
- data/spec/spec_helper.rb +2 -0
- data/spec/unit/api/multi_channel_api_spec.rb +13 -2
- data/spec/unit/models/verify_code_request_spec.rb +1 -1
- metadata +27 -8
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: letstalk@bandwidth.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.17.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -75,7 +75,7 @@ module Bandwidth
|
|
|
75
75
|
return_type = opts[:debug_return_type] || 'File'
|
|
76
76
|
|
|
77
77
|
# auth_names
|
|
78
|
-
auth_names = opts[:debug_auth_names] || ['Basic']
|
|
78
|
+
auth_names = opts[:debug_auth_names] || ['Basic', 'OAuth2']
|
|
79
79
|
|
|
80
80
|
new_options = opts.merge(
|
|
81
81
|
:operation => :"ConferencesApi.download_conference_recording",
|
|
@@ -144,7 +144,7 @@ module Bandwidth
|
|
|
144
144
|
return_type = opts[:debug_return_type] || 'Conference'
|
|
145
145
|
|
|
146
146
|
# auth_names
|
|
147
|
-
auth_names = opts[:debug_auth_names] || ['Basic']
|
|
147
|
+
auth_names = opts[:debug_auth_names] || ['Basic', 'OAuth2']
|
|
148
148
|
|
|
149
149
|
new_options = opts.merge(
|
|
150
150
|
:operation => :"ConferencesApi.get_conference",
|
|
@@ -219,7 +219,7 @@ module Bandwidth
|
|
|
219
219
|
return_type = opts[:debug_return_type] || 'ConferenceMember'
|
|
220
220
|
|
|
221
221
|
# auth_names
|
|
222
|
-
auth_names = opts[:debug_auth_names] || ['Basic']
|
|
222
|
+
auth_names = opts[:debug_auth_names] || ['Basic', 'OAuth2']
|
|
223
223
|
|
|
224
224
|
new_options = opts.merge(
|
|
225
225
|
:operation => :"ConferencesApi.get_conference_member",
|
|
@@ -294,7 +294,7 @@ module Bandwidth
|
|
|
294
294
|
return_type = opts[:debug_return_type] || 'ConferenceRecordingMetadata'
|
|
295
295
|
|
|
296
296
|
# auth_names
|
|
297
|
-
auth_names = opts[:debug_auth_names] || ['Basic']
|
|
297
|
+
auth_names = opts[:debug_auth_names] || ['Basic', 'OAuth2']
|
|
298
298
|
|
|
299
299
|
new_options = opts.merge(
|
|
300
300
|
:operation => :"ConferencesApi.get_conference_recording",
|
|
@@ -363,7 +363,7 @@ module Bandwidth
|
|
|
363
363
|
return_type = opts[:debug_return_type] || 'Array<ConferenceRecordingMetadata>'
|
|
364
364
|
|
|
365
365
|
# auth_names
|
|
366
|
-
auth_names = opts[:debug_auth_names] || ['Basic']
|
|
366
|
+
auth_names = opts[:debug_auth_names] || ['Basic', 'OAuth2']
|
|
367
367
|
|
|
368
368
|
new_options = opts.merge(
|
|
369
369
|
:operation => :"ConferencesApi.list_conference_recordings",
|
|
@@ -449,7 +449,7 @@ module Bandwidth
|
|
|
449
449
|
return_type = opts[:debug_return_type] || 'Array<Conference>'
|
|
450
450
|
|
|
451
451
|
# auth_names
|
|
452
|
-
auth_names = opts[:debug_auth_names] || ['Basic']
|
|
452
|
+
auth_names = opts[:debug_auth_names] || ['Basic', 'OAuth2']
|
|
453
453
|
|
|
454
454
|
new_options = opts.merge(
|
|
455
455
|
:operation => :"ConferencesApi.list_conferences",
|
|
@@ -529,7 +529,7 @@ module Bandwidth
|
|
|
529
529
|
return_type = opts[:debug_return_type]
|
|
530
530
|
|
|
531
531
|
# auth_names
|
|
532
|
-
auth_names = opts[:debug_auth_names] || ['Basic']
|
|
532
|
+
auth_names = opts[:debug_auth_names] || ['Basic', 'OAuth2']
|
|
533
533
|
|
|
534
534
|
new_options = opts.merge(
|
|
535
535
|
:operation => :"ConferencesApi.update_conference",
|
|
@@ -609,7 +609,7 @@ module Bandwidth
|
|
|
609
609
|
return_type = opts[:debug_return_type]
|
|
610
610
|
|
|
611
611
|
# auth_names
|
|
612
|
-
auth_names = opts[:debug_auth_names] || ['Basic']
|
|
612
|
+
auth_names = opts[:debug_auth_names] || ['Basic', 'OAuth2']
|
|
613
613
|
|
|
614
614
|
new_options = opts.merge(
|
|
615
615
|
:operation => :"ConferencesApi.update_conference_bxml",
|
|
@@ -695,7 +695,7 @@ module Bandwidth
|
|
|
695
695
|
return_type = opts[:debug_return_type]
|
|
696
696
|
|
|
697
697
|
# auth_names
|
|
698
|
-
auth_names = opts[:debug_auth_names] || ['Basic']
|
|
698
|
+
auth_names = opts[:debug_auth_names] || ['Basic', 'OAuth2']
|
|
699
699
|
|
|
700
700
|
new_options = opts.merge(
|
|
701
701
|
:operation => :"ConferencesApi.update_conference_member",
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: letstalk@bandwidth.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.17.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -69,7 +69,7 @@ module Bandwidth
|
|
|
69
69
|
return_type = opts[:debug_return_type]
|
|
70
70
|
|
|
71
71
|
# auth_names
|
|
72
|
-
auth_names = opts[:debug_auth_names] || ['Basic']
|
|
72
|
+
auth_names = opts[:debug_auth_names] || ['Basic', 'OAuth2']
|
|
73
73
|
|
|
74
74
|
new_options = opts.merge(
|
|
75
75
|
:operation => :"MediaApi.delete_media",
|
|
@@ -138,7 +138,7 @@ module Bandwidth
|
|
|
138
138
|
return_type = opts[:debug_return_type] || 'File'
|
|
139
139
|
|
|
140
140
|
# auth_names
|
|
141
|
-
auth_names = opts[:debug_auth_names] || ['Basic']
|
|
141
|
+
auth_names = opts[:debug_auth_names] || ['Basic', 'OAuth2']
|
|
142
142
|
|
|
143
143
|
new_options = opts.merge(
|
|
144
144
|
:operation => :"MediaApi.get_media",
|
|
@@ -204,7 +204,7 @@ module Bandwidth
|
|
|
204
204
|
return_type = opts[:debug_return_type] || 'Array<Media>'
|
|
205
205
|
|
|
206
206
|
# auth_names
|
|
207
|
-
auth_names = opts[:debug_auth_names] || ['Basic']
|
|
207
|
+
auth_names = opts[:debug_auth_names] || ['Basic', 'OAuth2']
|
|
208
208
|
|
|
209
209
|
new_options = opts.merge(
|
|
210
210
|
:operation => :"MediaApi.list_media",
|
|
@@ -290,7 +290,7 @@ module Bandwidth
|
|
|
290
290
|
return_type = opts[:debug_return_type]
|
|
291
291
|
|
|
292
292
|
# auth_names
|
|
293
|
-
auth_names = opts[:debug_auth_names] || ['Basic']
|
|
293
|
+
auth_names = opts[:debug_auth_names] || ['Basic', 'OAuth2']
|
|
294
294
|
|
|
295
295
|
new_options = opts.merge(
|
|
296
296
|
:operation => :"MediaApi.upload_media",
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: letstalk@bandwidth.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.17.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -74,7 +74,7 @@ module Bandwidth
|
|
|
74
74
|
return_type = opts[:debug_return_type] || 'Message'
|
|
75
75
|
|
|
76
76
|
# auth_names
|
|
77
|
-
auth_names = opts[:debug_auth_names] || ['Basic']
|
|
77
|
+
auth_names = opts[:debug_auth_names] || ['Basic', 'OAuth2']
|
|
78
78
|
|
|
79
79
|
new_options = opts.merge(
|
|
80
80
|
:operation => :"MessagesApi.create_message",
|
|
@@ -218,7 +218,7 @@ module Bandwidth
|
|
|
218
218
|
return_type = opts[:debug_return_type] || 'MessagesList'
|
|
219
219
|
|
|
220
220
|
# auth_names
|
|
221
|
-
auth_names = opts[:debug_auth_names] || ['Basic']
|
|
221
|
+
auth_names = opts[:debug_auth_names] || ['Basic', 'OAuth2']
|
|
222
222
|
|
|
223
223
|
new_options = opts.merge(
|
|
224
224
|
:operation => :"MessagesApi.list_messages",
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: letstalk@bandwidth.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.17.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -74,7 +74,7 @@ module Bandwidth
|
|
|
74
74
|
return_type = opts[:debug_return_type] || 'MessagingCodeResponse'
|
|
75
75
|
|
|
76
76
|
# auth_names
|
|
77
|
-
auth_names = opts[:debug_auth_names] || ['Basic']
|
|
77
|
+
auth_names = opts[:debug_auth_names] || ['Basic', 'OAuth2']
|
|
78
78
|
|
|
79
79
|
new_options = opts.merge(
|
|
80
80
|
:operation => :"MFAApi.generate_messaging_code",
|
|
@@ -148,7 +148,7 @@ module Bandwidth
|
|
|
148
148
|
return_type = opts[:debug_return_type] || 'VoiceCodeResponse'
|
|
149
149
|
|
|
150
150
|
# auth_names
|
|
151
|
-
auth_names = opts[:debug_auth_names] || ['Basic']
|
|
151
|
+
auth_names = opts[:debug_auth_names] || ['Basic', 'OAuth2']
|
|
152
152
|
|
|
153
153
|
new_options = opts.merge(
|
|
154
154
|
:operation => :"MFAApi.generate_voice_code",
|
|
@@ -222,7 +222,7 @@ module Bandwidth
|
|
|
222
222
|
return_type = opts[:debug_return_type] || 'VerifyCodeResponse'
|
|
223
223
|
|
|
224
224
|
# auth_names
|
|
225
|
-
auth_names = opts[:debug_auth_names] || ['Basic']
|
|
225
|
+
auth_names = opts[:debug_auth_names] || ['Basic', 'OAuth2']
|
|
226
226
|
|
|
227
227
|
new_options = opts.merge(
|
|
228
228
|
:operation => :"MFAApi.verify_code",
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: letstalk@bandwidth.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.17.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -74,7 +74,7 @@ module Bandwidth
|
|
|
74
74
|
return_type = opts[:debug_return_type] || 'CreateMultiChannelMessageResponse'
|
|
75
75
|
|
|
76
76
|
# auth_names
|
|
77
|
-
auth_names = opts[:debug_auth_names] || ['Basic']
|
|
77
|
+
auth_names = opts[:debug_auth_names] || ['Basic', 'OAuth2']
|
|
78
78
|
|
|
79
79
|
new_options = opts.merge(
|
|
80
80
|
:operation => :"MultiChannelApi.create_multi_channel_message",
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: letstalk@bandwidth.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.17.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -74,7 +74,7 @@ module Bandwidth
|
|
|
74
74
|
return_type = opts[:debug_return_type] || 'CreateAsyncBulkLookupResponse'
|
|
75
75
|
|
|
76
76
|
# auth_names
|
|
77
|
-
auth_names = opts[:debug_auth_names] || ['Basic']
|
|
77
|
+
auth_names = opts[:debug_auth_names] || ['Basic', 'OAuth2']
|
|
78
78
|
|
|
79
79
|
new_options = opts.merge(
|
|
80
80
|
:operation => :"PhoneNumberLookupApi.create_async_bulk_lookup",
|
|
@@ -148,7 +148,7 @@ module Bandwidth
|
|
|
148
148
|
return_type = opts[:debug_return_type] || 'CreateSyncLookupResponse'
|
|
149
149
|
|
|
150
150
|
# auth_names
|
|
151
|
-
auth_names = opts[:debug_auth_names] || ['Basic']
|
|
151
|
+
auth_names = opts[:debug_auth_names] || ['Basic', 'OAuth2']
|
|
152
152
|
|
|
153
153
|
new_options = opts.merge(
|
|
154
154
|
:operation => :"PhoneNumberLookupApi.create_sync_lookup",
|
|
@@ -217,7 +217,7 @@ module Bandwidth
|
|
|
217
217
|
return_type = opts[:debug_return_type] || 'GetAsyncBulkLookupResponse'
|
|
218
218
|
|
|
219
219
|
# auth_names
|
|
220
|
-
auth_names = opts[:debug_auth_names] || ['Basic']
|
|
220
|
+
auth_names = opts[:debug_auth_names] || ['Basic', 'OAuth2']
|
|
221
221
|
|
|
222
222
|
new_options = opts.merge(
|
|
223
223
|
:operation => :"PhoneNumberLookupApi.get_async_bulk_lookup",
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: letstalk@bandwidth.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.17.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -75,7 +75,7 @@ module Bandwidth
|
|
|
75
75
|
return_type = opts[:debug_return_type]
|
|
76
76
|
|
|
77
77
|
# auth_names
|
|
78
|
-
auth_names = opts[:debug_auth_names] || ['Basic']
|
|
78
|
+
auth_names = opts[:debug_auth_names] || ['Basic', 'OAuth2']
|
|
79
79
|
|
|
80
80
|
new_options = opts.merge(
|
|
81
81
|
:operation => :"RecordingsApi.delete_recording",
|
|
@@ -150,7 +150,7 @@ module Bandwidth
|
|
|
150
150
|
return_type = opts[:debug_return_type]
|
|
151
151
|
|
|
152
152
|
# auth_names
|
|
153
|
-
auth_names = opts[:debug_auth_names] || ['Basic']
|
|
153
|
+
auth_names = opts[:debug_auth_names] || ['Basic', 'OAuth2']
|
|
154
154
|
|
|
155
155
|
new_options = opts.merge(
|
|
156
156
|
:operation => :"RecordingsApi.delete_recording_media",
|
|
@@ -225,7 +225,7 @@ module Bandwidth
|
|
|
225
225
|
return_type = opts[:debug_return_type]
|
|
226
226
|
|
|
227
227
|
# auth_names
|
|
228
|
-
auth_names = opts[:debug_auth_names] || ['Basic']
|
|
228
|
+
auth_names = opts[:debug_auth_names] || ['Basic', 'OAuth2']
|
|
229
229
|
|
|
230
230
|
new_options = opts.merge(
|
|
231
231
|
:operation => :"RecordingsApi.delete_recording_transcription",
|
|
@@ -300,7 +300,7 @@ module Bandwidth
|
|
|
300
300
|
return_type = opts[:debug_return_type] || 'File'
|
|
301
301
|
|
|
302
302
|
# auth_names
|
|
303
|
-
auth_names = opts[:debug_auth_names] || ['Basic']
|
|
303
|
+
auth_names = opts[:debug_auth_names] || ['Basic', 'OAuth2']
|
|
304
304
|
|
|
305
305
|
new_options = opts.merge(
|
|
306
306
|
:operation => :"RecordingsApi.download_call_recording",
|
|
@@ -375,7 +375,7 @@ module Bandwidth
|
|
|
375
375
|
return_type = opts[:debug_return_type] || 'CallRecordingMetadata'
|
|
376
376
|
|
|
377
377
|
# auth_names
|
|
378
|
-
auth_names = opts[:debug_auth_names] || ['Basic']
|
|
378
|
+
auth_names = opts[:debug_auth_names] || ['Basic', 'OAuth2']
|
|
379
379
|
|
|
380
380
|
new_options = opts.merge(
|
|
381
381
|
:operation => :"RecordingsApi.get_call_recording",
|
|
@@ -450,7 +450,7 @@ module Bandwidth
|
|
|
450
450
|
return_type = opts[:debug_return_type] || 'RecordingTranscriptions'
|
|
451
451
|
|
|
452
452
|
# auth_names
|
|
453
|
-
auth_names = opts[:debug_auth_names] || ['Basic']
|
|
453
|
+
auth_names = opts[:debug_auth_names] || ['Basic', 'OAuth2']
|
|
454
454
|
|
|
455
455
|
new_options = opts.merge(
|
|
456
456
|
:operation => :"RecordingsApi.get_recording_transcription",
|
|
@@ -525,7 +525,7 @@ module Bandwidth
|
|
|
525
525
|
return_type = opts[:debug_return_type] || 'Array<CallRecordingMetadata>'
|
|
526
526
|
|
|
527
527
|
# auth_names
|
|
528
|
-
auth_names = opts[:debug_auth_names] || ['Basic']
|
|
528
|
+
auth_names = opts[:debug_auth_names] || ['Basic', 'OAuth2']
|
|
529
529
|
|
|
530
530
|
new_options = opts.merge(
|
|
531
531
|
:operation => :"RecordingsApi.list_account_call_recordings",
|
|
@@ -594,7 +594,7 @@ module Bandwidth
|
|
|
594
594
|
return_type = opts[:debug_return_type] || 'Array<CallRecordingMetadata>'
|
|
595
595
|
|
|
596
596
|
# auth_names
|
|
597
|
-
auth_names = opts[:debug_auth_names] || ['Basic']
|
|
597
|
+
auth_names = opts[:debug_auth_names] || ['Basic', 'OAuth2']
|
|
598
598
|
|
|
599
599
|
new_options = opts.merge(
|
|
600
600
|
:operation => :"RecordingsApi.list_call_recordings",
|
|
@@ -680,7 +680,7 @@ module Bandwidth
|
|
|
680
680
|
return_type = opts[:debug_return_type]
|
|
681
681
|
|
|
682
682
|
# auth_names
|
|
683
|
-
auth_names = opts[:debug_auth_names] || ['Basic']
|
|
683
|
+
auth_names = opts[:debug_auth_names] || ['Basic', 'OAuth2']
|
|
684
684
|
|
|
685
685
|
new_options = opts.merge(
|
|
686
686
|
:operation => :"RecordingsApi.transcribe_call_recording",
|
|
@@ -760,7 +760,7 @@ module Bandwidth
|
|
|
760
760
|
return_type = opts[:debug_return_type]
|
|
761
761
|
|
|
762
762
|
# auth_names
|
|
763
|
-
auth_names = opts[:debug_auth_names] || ['Basic']
|
|
763
|
+
auth_names = opts[:debug_auth_names] || ['Basic', 'OAuth2']
|
|
764
764
|
|
|
765
765
|
new_options = opts.merge(
|
|
766
766
|
:operation => :"RecordingsApi.update_call_recording_state",
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: letstalk@bandwidth.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.17.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -63,7 +63,7 @@ module Bandwidth
|
|
|
63
63
|
return_type = opts[:debug_return_type] || 'AccountStatistics'
|
|
64
64
|
|
|
65
65
|
# auth_names
|
|
66
|
-
auth_names = opts[:debug_auth_names] || ['Basic']
|
|
66
|
+
auth_names = opts[:debug_auth_names] || ['Basic', 'OAuth2']
|
|
67
67
|
|
|
68
68
|
new_options = opts.merge(
|
|
69
69
|
:operation => :"StatisticsApi.get_statistics",
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: letstalk@bandwidth.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.17.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -74,7 +74,7 @@ module Bandwidth
|
|
|
74
74
|
return_type = opts[:debug_return_type] || 'WebhookSubscription'
|
|
75
75
|
|
|
76
76
|
# auth_names
|
|
77
|
-
auth_names = opts[:debug_auth_names] || ['Basic']
|
|
77
|
+
auth_names = opts[:debug_auth_names] || ['Basic', 'OAuth2']
|
|
78
78
|
|
|
79
79
|
new_options = opts.merge(
|
|
80
80
|
:operation => :"TollFreeVerificationApi.create_webhook_subscription",
|
|
@@ -127,7 +127,7 @@ module Bandwidth
|
|
|
127
127
|
end
|
|
128
128
|
|
|
129
129
|
if @api_client.config.client_side_validation && phone_number.to_s.length < 12
|
|
130
|
-
fail ArgumentError, 'invalid value for "phone_number" when calling TollFreeVerificationApi.delete_verification_request, the character length must be
|
|
130
|
+
fail ArgumentError, 'invalid value for "phone_number" when calling TollFreeVerificationApi.delete_verification_request, the character length must be greater than or equal to 12.'
|
|
131
131
|
end
|
|
132
132
|
|
|
133
133
|
pattern = Regexp.new(/^\+1(800|833|844|855|866|877|888)[2-9]\d{6}$/)
|
|
@@ -156,7 +156,7 @@ module Bandwidth
|
|
|
156
156
|
return_type = opts[:debug_return_type]
|
|
157
157
|
|
|
158
158
|
# auth_names
|
|
159
|
-
auth_names = opts[:debug_auth_names] || ['Basic']
|
|
159
|
+
auth_names = opts[:debug_auth_names] || ['Basic', 'OAuth2']
|
|
160
160
|
|
|
161
161
|
new_options = opts.merge(
|
|
162
162
|
:operation => :"TollFreeVerificationApi.delete_verification_request",
|
|
@@ -225,7 +225,7 @@ module Bandwidth
|
|
|
225
225
|
return_type = opts[:debug_return_type]
|
|
226
226
|
|
|
227
227
|
# auth_names
|
|
228
|
-
auth_names = opts[:debug_auth_names] || ['Basic']
|
|
228
|
+
auth_names = opts[:debug_auth_names] || ['Basic', 'OAuth2']
|
|
229
229
|
|
|
230
230
|
new_options = opts.merge(
|
|
231
231
|
:operation => :"TollFreeVerificationApi.delete_webhook_subscription",
|
|
@@ -278,7 +278,7 @@ module Bandwidth
|
|
|
278
278
|
end
|
|
279
279
|
|
|
280
280
|
if @api_client.config.client_side_validation && phone_number.to_s.length < 12
|
|
281
|
-
fail ArgumentError, 'invalid value for "phone_number" when calling TollFreeVerificationApi.get_toll_free_verification_status, the character length must be
|
|
281
|
+
fail ArgumentError, 'invalid value for "phone_number" when calling TollFreeVerificationApi.get_toll_free_verification_status, the character length must be greater than or equal to 12.'
|
|
282
282
|
end
|
|
283
283
|
|
|
284
284
|
pattern = Regexp.new(/^\+1(800|833|844|855|866|877|888)[2-9]\d{6}$/)
|
|
@@ -307,7 +307,7 @@ module Bandwidth
|
|
|
307
307
|
return_type = opts[:debug_return_type] || 'TfvStatus'
|
|
308
308
|
|
|
309
309
|
# auth_names
|
|
310
|
-
auth_names = opts[:debug_auth_names] || ['Basic']
|
|
310
|
+
auth_names = opts[:debug_auth_names] || ['Basic', 'OAuth2']
|
|
311
311
|
|
|
312
312
|
new_options = opts.merge(
|
|
313
313
|
:operation => :"TollFreeVerificationApi.get_toll_free_verification_status",
|
|
@@ -364,7 +364,7 @@ module Bandwidth
|
|
|
364
364
|
return_type = opts[:debug_return_type] || 'Array<String>'
|
|
365
365
|
|
|
366
366
|
# auth_names
|
|
367
|
-
auth_names = opts[:debug_auth_names] || ['Basic']
|
|
367
|
+
auth_names = opts[:debug_auth_names] || ['Basic', 'OAuth2']
|
|
368
368
|
|
|
369
369
|
new_options = opts.merge(
|
|
370
370
|
:operation => :"TollFreeVerificationApi.list_toll_free_use_cases",
|
|
@@ -427,7 +427,7 @@ module Bandwidth
|
|
|
427
427
|
return_type = opts[:debug_return_type] || 'WebhookSubscriptionsListBody'
|
|
428
428
|
|
|
429
429
|
# auth_names
|
|
430
|
-
auth_names = opts[:debug_auth_names] || ['Basic']
|
|
430
|
+
auth_names = opts[:debug_auth_names] || ['Basic', 'OAuth2']
|
|
431
431
|
|
|
432
432
|
new_options = opts.merge(
|
|
433
433
|
:operation => :"TollFreeVerificationApi.list_webhook_subscriptions",
|
|
@@ -501,7 +501,7 @@ module Bandwidth
|
|
|
501
501
|
return_type = opts[:debug_return_type]
|
|
502
502
|
|
|
503
503
|
# auth_names
|
|
504
|
-
auth_names = opts[:debug_auth_names] || ['Basic']
|
|
504
|
+
auth_names = opts[:debug_auth_names] || ['Basic', 'OAuth2']
|
|
505
505
|
|
|
506
506
|
new_options = opts.merge(
|
|
507
507
|
:operation => :"TollFreeVerificationApi.request_toll_free_verification",
|
|
@@ -556,7 +556,7 @@ module Bandwidth
|
|
|
556
556
|
end
|
|
557
557
|
|
|
558
558
|
if @api_client.config.client_side_validation && phone_number.to_s.length < 12
|
|
559
|
-
fail ArgumentError, 'invalid value for "phone_number" when calling TollFreeVerificationApi.update_toll_free_verification_request, the character length must be
|
|
559
|
+
fail ArgumentError, 'invalid value for "phone_number" when calling TollFreeVerificationApi.update_toll_free_verification_request, the character length must be greater than or equal to 12.'
|
|
560
560
|
end
|
|
561
561
|
|
|
562
562
|
pattern = Regexp.new(/^\+1(800|833|844|855|866|877|888)[2-9]\d{6}$/)
|
|
@@ -594,7 +594,7 @@ module Bandwidth
|
|
|
594
594
|
return_type = opts[:debug_return_type]
|
|
595
595
|
|
|
596
596
|
# auth_names
|
|
597
|
-
auth_names = opts[:debug_auth_names] || ['Basic']
|
|
597
|
+
auth_names = opts[:debug_auth_names] || ['Basic', 'OAuth2']
|
|
598
598
|
|
|
599
599
|
new_options = opts.merge(
|
|
600
600
|
:operation => :"TollFreeVerificationApi.update_toll_free_verification_request",
|
|
@@ -674,7 +674,7 @@ module Bandwidth
|
|
|
674
674
|
return_type = opts[:debug_return_type] || 'WebhookSubscription'
|
|
675
675
|
|
|
676
676
|
# auth_names
|
|
677
|
-
auth_names = opts[:debug_auth_names] || ['Basic']
|
|
677
|
+
auth_names = opts[:debug_auth_names] || ['Basic', 'OAuth2']
|
|
678
678
|
|
|
679
679
|
new_options = opts.merge(
|
|
680
680
|
:operation => :"TollFreeVerificationApi.update_webhook_subscription",
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: letstalk@bandwidth.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.17.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -75,7 +75,7 @@ module Bandwidth
|
|
|
75
75
|
return_type = opts[:debug_return_type]
|
|
76
76
|
|
|
77
77
|
# auth_names
|
|
78
|
-
auth_names = opts[:debug_auth_names] || ['Basic']
|
|
78
|
+
auth_names = opts[:debug_auth_names] || ['Basic', 'OAuth2']
|
|
79
79
|
|
|
80
80
|
new_options = opts.merge(
|
|
81
81
|
:operation => :"TranscriptionsApi.delete_real_time_transcription",
|
|
@@ -150,7 +150,7 @@ module Bandwidth
|
|
|
150
150
|
return_type = opts[:debug_return_type] || 'CallTranscriptionResponse'
|
|
151
151
|
|
|
152
152
|
# auth_names
|
|
153
|
-
auth_names = opts[:debug_auth_names] || ['Basic']
|
|
153
|
+
auth_names = opts[:debug_auth_names] || ['Basic', 'OAuth2']
|
|
154
154
|
|
|
155
155
|
new_options = opts.merge(
|
|
156
156
|
:operation => :"TranscriptionsApi.get_real_time_transcription",
|
|
@@ -219,7 +219,7 @@ module Bandwidth
|
|
|
219
219
|
return_type = opts[:debug_return_type] || 'Array<CallTranscriptionMetadata>'
|
|
220
220
|
|
|
221
221
|
# auth_names
|
|
222
|
-
auth_names = opts[:debug_auth_names] || ['Basic']
|
|
222
|
+
auth_names = opts[:debug_auth_names] || ['Basic', 'OAuth2']
|
|
223
223
|
|
|
224
224
|
new_options = opts.merge(
|
|
225
225
|
:operation => :"TranscriptionsApi.list_real_time_transcriptions",
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
The version of the OpenAPI document: 1.0.0
|
|
7
7
|
Contact: letstalk@bandwidth.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
|
-
Generator version: 7.
|
|
9
|
+
Generator version: 7.17.0
|
|
10
10
|
|
|
11
11
|
=end
|
|
12
12
|
|
|
@@ -322,9 +322,13 @@ module Bandwidth
|
|
|
322
322
|
data.each { |k, v| hash[k] = convert_to_type(v, sub_type) }
|
|
323
323
|
end
|
|
324
324
|
else
|
|
325
|
-
# models (e.g. Pet) or oneOf
|
|
325
|
+
# models (e.g. Pet) or oneOf/anyOf
|
|
326
326
|
klass = Bandwidth.const_get(return_type)
|
|
327
|
-
klass.respond_to?(:openapi_one_of)
|
|
327
|
+
if klass.respond_to?(:openapi_one_of) || klass.respond_to?(:openapi_any_of)
|
|
328
|
+
klass.build(data)
|
|
329
|
+
else
|
|
330
|
+
klass.build_from_hash(data)
|
|
331
|
+
end
|
|
328
332
|
end
|
|
329
333
|
end
|
|
330
334
|
|
|
@@ -353,8 +357,8 @@ module Bandwidth
|
|
|
353
357
|
auth_setting = @config.auth_settings[auth_name]
|
|
354
358
|
next unless auth_setting
|
|
355
359
|
case auth_setting[:in]
|
|
356
|
-
when 'header' then header_params[auth_setting[:key]] = auth_setting[:value]
|
|
357
|
-
when 'query' then query_params[auth_setting[:key]] = auth_setting[:value]
|
|
360
|
+
when 'header' then header_params[auth_setting[:key]] = auth_setting[:value] unless auth_setting[:value].nil?
|
|
361
|
+
when 'query' then query_params[auth_setting[:key]] = auth_setting[:value] unless auth_setting[:value].nil?
|
|
358
362
|
else fail ArgumentError, 'Authentication token must be in `query` or `header`'
|
|
359
363
|
end
|
|
360
364
|
end
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Bandwidth
|
|
3
|
+
|
|
4
|
+
#Bandwidth's Communication APIs
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
Contact: letstalk@bandwidth.com
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.17.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
module Bandwidth
|
|
14
|
+
class ApiModelBase
|
|
15
|
+
# Deserializes the data based on type
|
|
16
|
+
# @param string type Data type
|
|
17
|
+
# @param string value Value to be deserialized
|
|
18
|
+
# @return [Object] Deserialized data
|
|
19
|
+
def self._deserialize(type, value)
|
|
20
|
+
case type.to_sym
|
|
21
|
+
when :Time
|
|
22
|
+
Time.parse(value)
|
|
23
|
+
when :Date
|
|
24
|
+
Date.parse(value)
|
|
25
|
+
when :String
|
|
26
|
+
value.to_s
|
|
27
|
+
when :Integer
|
|
28
|
+
value.to_i
|
|
29
|
+
when :Float
|
|
30
|
+
value.to_f
|
|
31
|
+
when :Boolean
|
|
32
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
33
|
+
true
|
|
34
|
+
else
|
|
35
|
+
false
|
|
36
|
+
end
|
|
37
|
+
when :Object
|
|
38
|
+
# generic object (usually a Hash), return directly
|
|
39
|
+
value
|
|
40
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
41
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
42
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
43
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
44
|
+
k_type = Regexp.last_match[:k_type]
|
|
45
|
+
v_type = Regexp.last_match[:v_type]
|
|
46
|
+
{}.tap do |hash|
|
|
47
|
+
value.each do |k, v|
|
|
48
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
else # model
|
|
52
|
+
# models (e.g. Pet) or oneOf
|
|
53
|
+
klass = Bandwidth.const_get(type)
|
|
54
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Returns the string representation of the object
|
|
59
|
+
# @return [String] String presentation of the object
|
|
60
|
+
def to_s
|
|
61
|
+
to_hash.to_s
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
65
|
+
# @return [Hash] Returns the object in the form of hash
|
|
66
|
+
def to_body
|
|
67
|
+
to_hash
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Outputs non-array value in the form of hash
|
|
71
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
72
|
+
# @param [Object] value Any valid value
|
|
73
|
+
# @return [Hash] Returns the value in the form of hash
|
|
74
|
+
def _to_hash(value)
|
|
75
|
+
if value.is_a?(Array)
|
|
76
|
+
value.compact.map { |v| _to_hash(v) }
|
|
77
|
+
elsif value.is_a?(Hash)
|
|
78
|
+
{}.tap do |hash|
|
|
79
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
80
|
+
end
|
|
81
|
+
elsif value.respond_to? :to_hash
|
|
82
|
+
value.to_hash
|
|
83
|
+
else
|
|
84
|
+
value
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
end
|