From 8ae1e5a1863901b9a2bcbdbb4ad71d20b0ae0edf Mon Sep 17 00:00:00 2001 From: DX-Bandwidth Date: Tue, 8 Oct 2024 14:07:19 +0000 Subject: [PATCH 1/2] Generate SDK with OpenAPI Generator Version 7.8.0 --- bandwidth-sdk.gemspec | 22 +++++++++--------- bandwidth.yml | 23 +++++++++++++++++-- docs/CallsApi.md | 6 ++--- lib/bandwidth-sdk/api/calls_api.rb | 12 +++++----- lib/bandwidth-sdk/api/conferences_api.rb | 6 ++--- lib/bandwidth-sdk/api/media_api.rb | 2 +- lib/bandwidth-sdk/api/messages_api.rb | 2 +- lib/bandwidth-sdk/api/mfa_api.rb | 6 ++--- .../api/phone_number_lookup_api.rb | 2 +- lib/bandwidth-sdk/api/recordings_api.rb | 4 ++-- lib/bandwidth-sdk/api_error.rb | 2 +- lib/bandwidth-sdk/configuration.rb | 1 + .../models/account_statistics.rb | 4 +++- lib/bandwidth-sdk/models/answer_callback.rb | 4 +++- .../models/bridge_complete_callback.rb | 4 +++- .../models/bridge_target_complete_callback.rb | 4 +++- .../models/call_direction_enum.rb | 4 ++-- .../models/call_recording_metadata.rb | 4 +++- lib/bandwidth-sdk/models/call_state.rb | 4 +++- lib/bandwidth-sdk/models/call_state_enum.rb | 4 ++-- .../models/call_transcription.rb | 4 +++- ...ll_transcription_detected_language_enum.rb | 6 ++--- .../models/call_transcription_metadata.rb | 4 +++- .../models/call_transcription_response.rb | 4 +++- .../models/call_transcription_track_enum.rb | 4 ++-- .../models/callback_method_enum.rb | 4 ++-- lib/bandwidth-sdk/models/code_request.rb | 4 +++- lib/bandwidth-sdk/models/conference.rb | 4 +++- .../models/conference_completed_callback.rb | 4 +++- .../models/conference_created_callback.rb | 4 +++- lib/bandwidth-sdk/models/conference_member.rb | 4 +++- .../models/conference_member_exit_callback.rb | 4 +++- .../models/conference_member_join_callback.rb | 4 +++- ...conference_recording_available_callback.rb | 4 +++- .../models/conference_recording_metadata.rb | 4 +++- .../models/conference_redirect_callback.rb | 4 +++- .../models/conference_state_enum.rb | 4 ++-- lib/bandwidth-sdk/models/create_call.rb | 4 +++- .../models/create_call_response.rb | 4 +++- .../models/create_lookup_response.rb | 4 +++- .../models/create_message_request_error.rb | 4 +++- lib/bandwidth-sdk/models/deferred_result.rb | 4 +++- .../models/disconnect_callback.rb | 4 +++- lib/bandwidth-sdk/models/diversion.rb | 4 +++- lib/bandwidth-sdk/models/dtmf_callback.rb | 4 +++- lib/bandwidth-sdk/models/field_error.rb | 4 +++- lib/bandwidth-sdk/models/file_format_enum.rb | 4 ++-- lib/bandwidth-sdk/models/gather_callback.rb | 4 +++- .../models/inbound_message_callback.rb | 4 +++- .../inbound_message_callback_message.rb | 4 +++- lib/bandwidth-sdk/models/initiate_callback.rb | 4 +++- .../models/list_message_direction_enum.rb | 4 ++-- lib/bandwidth-sdk/models/list_message_item.rb | 4 +++- lib/bandwidth-sdk/models/lookup_request.rb | 4 +++- lib/bandwidth-sdk/models/lookup_result.rb | 4 +++- lib/bandwidth-sdk/models/lookup_status.rb | 4 +++- .../models/lookup_status_enum.rb | 8 +++---- .../machine_detection_complete_callback.rb | 4 +++- .../models/machine_detection_configuration.rb | 4 +++- .../models/machine_detection_mode_enum.rb | 4 ++-- .../models/machine_detection_result.rb | 4 +++- lib/bandwidth-sdk/models/media.rb | 4 +++- lib/bandwidth-sdk/models/message.rb | 4 +++- .../models/message_delivered_callback.rb | 4 +++- .../message_delivered_callback_message.rb | 4 +++- .../models/message_direction_enum.rb | 4 ++-- .../models/message_failed_callback.rb | 4 +++- .../models/message_failed_callback_message.rb | 4 +++- lib/bandwidth-sdk/models/message_request.rb | 4 +++- .../models/message_sending_callback.rb | 4 +++- .../message_sending_callback_message.rb | 4 +++- .../models/message_status_enum.rb | 16 ++++++------- lib/bandwidth-sdk/models/message_type_enum.rb | 4 ++-- lib/bandwidth-sdk/models/messages_list.rb | 4 +++- .../models/messaging_code_response.rb | 4 +++- .../models/messaging_request_error.rb | 4 +++- .../models/mfa_forbidden_request_error.rb | 4 +++- lib/bandwidth-sdk/models/mfa_request_error.rb | 4 +++- .../models/mfa_unauthorized_request_error.rb | 4 +++- lib/bandwidth-sdk/models/page_info.rb | 4 +++- lib/bandwidth-sdk/models/priority_enum.rb | 4 ++-- .../models/recording_available_callback.rb | 4 +++- .../models/recording_complete_callback.rb | 4 +++- .../models/recording_state_enum.rb | 4 ++-- .../recording_transcription_metadata.rb | 4 +++- .../models/recording_transcriptions.rb | 4 +++- lib/bandwidth-sdk/models/redirect_callback.rb | 4 +++- .../models/redirect_method_enum.rb | 4 ++-- lib/bandwidth-sdk/models/stir_shaken.rb | 4 +++- lib/bandwidth-sdk/models/tag.rb | 4 +++- .../models/tn_lookup_request_error.rb | 4 +++- .../models/transcribe_recording.rb | 4 +++- lib/bandwidth-sdk/models/transcription.rb | 4 +++- .../transcription_available_callback.rb | 4 +++- .../models/transfer_answer_callback.rb | 4 +++- .../models/transfer_complete_callback.rb | 4 +++- .../models/transfer_disconnect_callback.rb | 4 +++- lib/bandwidth-sdk/models/update_call.rb | 4 +++- .../models/update_call_recording.rb | 4 +++- lib/bandwidth-sdk/models/update_conference.rb | 4 +++- .../models/update_conference_member.rb | 4 +++- .../models/verify_code_request.rb | 4 +++- .../models/verify_code_response.rb | 4 +++- lib/bandwidth-sdk/models/voice_api_error.rb | 4 +++- .../models/voice_code_response.rb | 4 +++- 105 files changed, 326 insertions(+), 152 deletions(-) diff --git a/bandwidth-sdk.gemspec b/bandwidth-sdk.gemspec index aa7391d3..34bea6d3 100644 --- a/bandwidth-sdk.gemspec +++ b/bandwidth-sdk.gemspec @@ -12,20 +12,20 @@ Generator version: 7.8.0 =end -$:.push File.expand_path('../lib', __FILE__) -require 'bandwidth-sdk/version' +$:.push File.expand_path("../lib", __FILE__) +require "bandwidth-sdk/version" Gem::Specification.new do |s| - s.name = 'bandwidth-sdk' + s.name = "bandwidth-sdk" s.version = Bandwidth::VERSION s.platform = Gem::Platform::RUBY - s.authors = ['Bandwidth'] - s.email = ['dx@bandwidth.com'] - s.homepage = 'https://github.com/Bandwidth/ruby-sdk' - s.summary = 'Bandwidth Ruby SDK' - s.description = 'The official client SDK for Bandwidth's Voice, Messaging, MFA, and WebRTC APIs' - s.license = 'MIT' - s.required_ruby_version = '>=2.7' + s.authors = ["Bandwidth"] + s.email = ["dx@bandwidth.com"] + s.homepage = "https://github.com/Bandwidth/ruby-sdk" + s.summary = "Bandwidth Ruby SDK" + s.description = "The official client SDK for Bandwidth's Voice, Messaging, MFA, and WebRTC APIs" + s.license = "MIT" + s.required_ruby_version = ">=2.7" s.metadata = {} s.add_runtime_dependency 'faraday', '>= 1.0.1', '< 3.0' @@ -38,5 +38,5 @@ Gem::Specification.new do |s| s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? } s.test_files = `find spec/*`.split("\n") s.executables = [] - s.require_paths = ['lib'] + s.require_paths = ["lib"] end diff --git a/bandwidth.yml b/bandwidth.yml index c4b1fb2b..1361c836 100644 --- a/bandwidth.yml +++ b/bandwidth.yml @@ -5658,13 +5658,32 @@ components: $ref: '#/components/schemas/createCall' updateCallRequest: description: >- - JSON object containing information to redirect an existing call to a new - BXML document + JSON or BXML object containing information to redirect an existing call + to a new BXML document required: true content: application/json: schema: $ref: '#/components/schemas/updateCall' + application/xml: + schema: + type: string + description: A valid BXML document to replace the call's current BXML. + examples: + speakSentence: + summary: Speak Sentence + value: |- + + + This is a test sentence. + + redirectUrl: + summary: Redirect + value: |- + + + + updateCallBxmlRequest: required: true content: diff --git a/docs/CallsApi.md b/docs/CallsApi.md index cb021d62..f5b5caab 100644 --- a/docs/CallsApi.md +++ b/docs/CallsApi.md @@ -264,7 +264,7 @@ end api_instance = Bandwidth::CallsApi.new account_id = '9900000' # String | Your Bandwidth Account ID. call_id = 'c-15ac29a2-1331029c-2cb0-4a07-b215-b22865662d85' # String | Programmable Voice API Call ID. -update_call = Bandwidth::UpdateCall.new # UpdateCall | JSON object containing information to redirect an existing call to a new BXML document +update_call = Bandwidth::UpdateCall.new # UpdateCall | JSON or BXML object containing information to redirect an existing call to a new BXML document begin # Update Call @@ -298,7 +298,7 @@ end | ---- | ---- | ----------- | ----- | | **account_id** | **String** | Your Bandwidth Account ID. | | | **call_id** | **String** | Programmable Voice API Call ID. | | -| **update_call** | [**UpdateCall**](UpdateCall.md) | JSON object containing information to redirect an existing call to a new BXML document | | +| **update_call** | [**UpdateCall**](UpdateCall.md) | JSON or BXML object containing information to redirect an existing call to a new BXML document | | ### Return type @@ -310,7 +310,7 @@ nil (empty response body) ### HTTP request headers -- **Content-Type**: application/json +- **Content-Type**: application/json, application/xml - **Accept**: application/json diff --git a/lib/bandwidth-sdk/api/calls_api.rb b/lib/bandwidth-sdk/api/calls_api.rb index 876a329f..bf62a031 100644 --- a/lib/bandwidth-sdk/api/calls_api.rb +++ b/lib/bandwidth-sdk/api/calls_api.rb @@ -61,7 +61,7 @@ def create_call_with_http_info(account_id, create_call, opts = {}) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end # form parameters @@ -258,7 +258,7 @@ def list_calls_with_http_info(account_id, opts = {}) # Interrupts and redirects a call to a different URL that should return a BXML document. # @param account_id [String] Your Bandwidth Account ID. # @param call_id [String] Programmable Voice API Call ID. - # @param update_call [UpdateCall] JSON object containing information to redirect an existing call to a new BXML document + # @param update_call [UpdateCall] JSON or BXML object containing information to redirect an existing call to a new BXML document # @param [Hash] opts the optional parameters # @return [nil] def update_call(account_id, call_id, update_call, opts = {}) @@ -270,7 +270,7 @@ def update_call(account_id, call_id, update_call, opts = {}) # Interrupts and redirects a call to a different URL that should return a BXML document. # @param account_id [String] Your Bandwidth Account ID. # @param call_id [String] Programmable Voice API Call ID. - # @param update_call [UpdateCall] JSON object containing information to redirect an existing call to a new BXML document + # @param update_call [UpdateCall] JSON or BXML object containing information to redirect an existing call to a new BXML document # @param [Hash] opts the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def update_call_with_http_info(account_id, call_id, update_call, opts = {}) @@ -300,9 +300,9 @@ def update_call_with_http_info(account_id, call_id, update_call, opts = {}) # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept'] # HTTP header 'Content-Type' - content_type = @api_client.select_header_content_type(['application/json']) + content_type = @api_client.select_header_content_type(['application/json', 'application/xml']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end # form parameters @@ -382,7 +382,7 @@ def update_call_bxml_with_http_info(account_id, call_id, body, opts = {}) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/xml']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end # form parameters diff --git a/lib/bandwidth-sdk/api/conferences_api.rb b/lib/bandwidth-sdk/api/conferences_api.rb index ca1ee830..d9d41ce1 100644 --- a/lib/bandwidth-sdk/api/conferences_api.rb +++ b/lib/bandwidth-sdk/api/conferences_api.rb @@ -516,7 +516,7 @@ def update_conference_with_http_info(account_id, conference_id, update_conferenc # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end # form parameters @@ -596,7 +596,7 @@ def update_conference_bxml_with_http_info(account_id, conference_id, body, opts # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/xml']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end # form parameters @@ -682,7 +682,7 @@ def update_conference_member_with_http_info(account_id, conference_id, member_id # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end # form parameters diff --git a/lib/bandwidth-sdk/api/media_api.rb b/lib/bandwidth-sdk/api/media_api.rb index 29cb823f..8b41ca1c 100644 --- a/lib/bandwidth-sdk/api/media_api.rb +++ b/lib/bandwidth-sdk/api/media_api.rb @@ -275,7 +275,7 @@ def upload_media_with_http_info(account_id, media_id, body, opts = {}) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json', 'application/ogg', 'application/pdf', 'application/rtf', 'application/zip', 'application/x-tar', 'application/xml', 'application/gzip', 'application/x-bzip2', 'application/x-gzip', 'application/smil', 'application/javascript', 'audio/mp4', 'audio/mpeg', 'audio/ogg', 'audio/flac', 'audio/webm', 'audio/wav', 'audio/amr', 'audio/3gpp', 'image/bmp', 'image/gif', 'image/jpeg', 'image/pjpeg', 'image/png', 'image/svg+xml', 'image/tiff', 'image/webp', 'image/x-icon', 'text/css', 'text/csv', 'text/calendar', 'text/plain', 'text/javascript', 'text/vcard', 'text/vnd.wap.wml', 'text/xml', 'video/avi', 'video/mp4', 'video/mpeg', 'video/ogg', 'video/quicktime', 'video/webm', 'video/x-ms-wmv']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end header_params[:'Content-Type'] = opts[:'content_type'] if !opts[:'content_type'].nil? header_params[:'Cache-Control'] = opts[:'cache_control'] if !opts[:'cache_control'].nil? diff --git a/lib/bandwidth-sdk/api/messages_api.rb b/lib/bandwidth-sdk/api/messages_api.rb index 864f53f5..85294bba 100644 --- a/lib/bandwidth-sdk/api/messages_api.rb +++ b/lib/bandwidth-sdk/api/messages_api.rb @@ -61,7 +61,7 @@ def create_message_with_http_info(account_id, message_request, opts = {}) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end # form parameters diff --git a/lib/bandwidth-sdk/api/mfa_api.rb b/lib/bandwidth-sdk/api/mfa_api.rb index e32a6438..651a9c9a 100644 --- a/lib/bandwidth-sdk/api/mfa_api.rb +++ b/lib/bandwidth-sdk/api/mfa_api.rb @@ -61,7 +61,7 @@ def generate_messaging_code_with_http_info(account_id, code_request, opts = {}) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end # form parameters @@ -135,7 +135,7 @@ def generate_voice_code_with_http_info(account_id, code_request, opts = {}) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end # form parameters @@ -209,7 +209,7 @@ def verify_code_with_http_info(account_id, verify_code_request, opts = {}) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end # form parameters diff --git a/lib/bandwidth-sdk/api/phone_number_lookup_api.rb b/lib/bandwidth-sdk/api/phone_number_lookup_api.rb index 9bb83658..d5c2003f 100644 --- a/lib/bandwidth-sdk/api/phone_number_lookup_api.rb +++ b/lib/bandwidth-sdk/api/phone_number_lookup_api.rb @@ -61,7 +61,7 @@ def create_lookup_with_http_info(account_id, lookup_request, opts = {}) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end # form parameters diff --git a/lib/bandwidth-sdk/api/recordings_api.rb b/lib/bandwidth-sdk/api/recordings_api.rb index 9df9bd1e..ff8a5eff 100644 --- a/lib/bandwidth-sdk/api/recordings_api.rb +++ b/lib/bandwidth-sdk/api/recordings_api.rb @@ -667,7 +667,7 @@ def transcribe_call_recording_with_http_info(account_id, call_id, recording_id, # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end # form parameters @@ -747,7 +747,7 @@ def update_call_recording_state_with_http_info(account_id, call_id, update_call_ # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end # form parameters diff --git a/lib/bandwidth-sdk/api_error.rb b/lib/bandwidth-sdk/api_error.rb index c4fd1a8b..6e230413 100644 --- a/lib/bandwidth-sdk/api_error.rb +++ b/lib/bandwidth-sdk/api_error.rb @@ -43,7 +43,7 @@ def to_s def message if @message.nil? - msg = 'Error message: the server returns an error' + msg = "Error message: the server returns an error" else msg = @message end diff --git a/lib/bandwidth-sdk/configuration.rb b/lib/bandwidth-sdk/configuration.rb index 3090faf3..a2fab6e4 100644 --- a/lib/bandwidth-sdk/configuration.rb +++ b/lib/bandwidth-sdk/configuration.rb @@ -621,5 +621,6 @@ def configure_middleware(connection) end end end + end end diff --git a/lib/bandwidth-sdk/models/account_statistics.rb b/lib/bandwidth-sdk/models/account_statistics.rb index d4f03c86..4bd9d54b 100644 --- a/lib/bandwidth-sdk/models/account_statistics.rb +++ b/lib/bandwidth-sdk/models/account_statistics.rb @@ -52,7 +52,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::AccountStatistics` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::AccountStatistics` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -219,5 +219,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/answer_callback.rb b/lib/bandwidth-sdk/models/answer_callback.rb index 69a86a7e..ef8b4e62 100644 --- a/lib/bandwidth-sdk/models/answer_callback.rb +++ b/lib/bandwidth-sdk/models/answer_callback.rb @@ -137,7 +137,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::AnswerCallback` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::AnswerCallback` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -364,5 +364,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/bridge_complete_callback.rb b/lib/bandwidth-sdk/models/bridge_complete_callback.rb index dfe2c3ca..54437162 100644 --- a/lib/bandwidth-sdk/models/bridge_complete_callback.rb +++ b/lib/bandwidth-sdk/models/bridge_complete_callback.rb @@ -149,7 +149,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::BridgeCompleteCallback` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::BridgeCompleteCallback` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -386,5 +386,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/bridge_target_complete_callback.rb b/lib/bandwidth-sdk/models/bridge_target_complete_callback.rb index 33235d33..c1f9ee11 100644 --- a/lib/bandwidth-sdk/models/bridge_target_complete_callback.rb +++ b/lib/bandwidth-sdk/models/bridge_target_complete_callback.rb @@ -132,7 +132,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::BridgeTargetCompleteCallback` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::BridgeTargetCompleteCallback` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -354,5 +354,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/call_direction_enum.rb b/lib/bandwidth-sdk/models/call_direction_enum.rb index 7c7aa20c..38ea785c 100644 --- a/lib/bandwidth-sdk/models/call_direction_enum.rb +++ b/lib/bandwidth-sdk/models/call_direction_enum.rb @@ -15,8 +15,8 @@ module Bandwidth class CallDirectionEnum - INBOUND = 'inbound'.freeze - OUTBOUND = 'outbound'.freeze + INBOUND = "inbound".freeze + OUTBOUND = "outbound".freeze def self.all_vars @all_vars ||= [INBOUND, OUTBOUND].freeze diff --git a/lib/bandwidth-sdk/models/call_recording_metadata.rb b/lib/bandwidth-sdk/models/call_recording_metadata.rb index 4df0d6ff..a3f050b8 100644 --- a/lib/bandwidth-sdk/models/call_recording_metadata.rb +++ b/lib/bandwidth-sdk/models/call_recording_metadata.rb @@ -158,7 +158,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::CallRecordingMetadata` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::CallRecordingMetadata` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -410,5 +410,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/call_state.rb b/lib/bandwidth-sdk/models/call_state.rb index 687ba026..41ec5e91 100644 --- a/lib/bandwidth-sdk/models/call_state.rb +++ b/lib/bandwidth-sdk/models/call_state.rb @@ -163,7 +163,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::CallState` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::CallState` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -412,5 +412,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/call_state_enum.rb b/lib/bandwidth-sdk/models/call_state_enum.rb index 4535e63a..53dd061f 100644 --- a/lib/bandwidth-sdk/models/call_state_enum.rb +++ b/lib/bandwidth-sdk/models/call_state_enum.rb @@ -15,8 +15,8 @@ module Bandwidth class CallStateEnum - ACTIVE = 'active'.freeze - COMPLETED = 'completed'.freeze + ACTIVE = "active".freeze + COMPLETED = "completed".freeze def self.all_vars @all_vars ||= [ACTIVE, COMPLETED].freeze diff --git a/lib/bandwidth-sdk/models/call_transcription.rb b/lib/bandwidth-sdk/models/call_transcription.rb index c5d498bc..1f7f3d3d 100644 --- a/lib/bandwidth-sdk/models/call_transcription.rb +++ b/lib/bandwidth-sdk/models/call_transcription.rb @@ -82,7 +82,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::CallTranscription` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::CallTranscription` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -287,5 +287,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/call_transcription_detected_language_enum.rb b/lib/bandwidth-sdk/models/call_transcription_detected_language_enum.rb index d177547b..a2f4e317 100644 --- a/lib/bandwidth-sdk/models/call_transcription_detected_language_enum.rb +++ b/lib/bandwidth-sdk/models/call_transcription_detected_language_enum.rb @@ -15,9 +15,9 @@ module Bandwidth class CallTranscriptionDetectedLanguageEnum - EN_US = 'en-US'.freeze - ES_US = 'es-US'.freeze - FR_FR = 'fr-FR'.freeze + EN_US = "en-US".freeze + ES_US = "es-US".freeze + FR_FR = "fr-FR".freeze def self.all_vars @all_vars ||= [EN_US, ES_US, FR_FR].freeze diff --git a/lib/bandwidth-sdk/models/call_transcription_metadata.rb b/lib/bandwidth-sdk/models/call_transcription_metadata.rb index 546b229b..ab846249 100644 --- a/lib/bandwidth-sdk/models/call_transcription_metadata.rb +++ b/lib/bandwidth-sdk/models/call_transcription_metadata.rb @@ -57,7 +57,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::CallTranscriptionMetadata` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::CallTranscriptionMetadata` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -229,5 +229,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/call_transcription_response.rb b/lib/bandwidth-sdk/models/call_transcription_response.rb index 0c20b9bf..05c1f82b 100644 --- a/lib/bandwidth-sdk/models/call_transcription_response.rb +++ b/lib/bandwidth-sdk/models/call_transcription_response.rb @@ -61,7 +61,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::CallTranscriptionResponse` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::CallTranscriptionResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -240,5 +240,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/call_transcription_track_enum.rb b/lib/bandwidth-sdk/models/call_transcription_track_enum.rb index d09ca316..b53c8c3d 100644 --- a/lib/bandwidth-sdk/models/call_transcription_track_enum.rb +++ b/lib/bandwidth-sdk/models/call_transcription_track_enum.rb @@ -15,8 +15,8 @@ module Bandwidth class CallTranscriptionTrackEnum - INBOUND = 'inbound'.freeze - OUTBOUND = 'outbound'.freeze + INBOUND = "inbound".freeze + OUTBOUND = "outbound".freeze def self.all_vars @all_vars ||= [INBOUND, OUTBOUND].freeze diff --git a/lib/bandwidth-sdk/models/callback_method_enum.rb b/lib/bandwidth-sdk/models/callback_method_enum.rb index 432ab823..33be701d 100644 --- a/lib/bandwidth-sdk/models/callback_method_enum.rb +++ b/lib/bandwidth-sdk/models/callback_method_enum.rb @@ -15,8 +15,8 @@ module Bandwidth class CallbackMethodEnum - GET = 'GET'.freeze - POST = 'POST'.freeze + GET = "GET".freeze + POST = "POST".freeze def self.all_vars @all_vars ||= [GET, POST].freeze diff --git a/lib/bandwidth-sdk/models/code_request.rb b/lib/bandwidth-sdk/models/code_request.rb index c248df15..ac3a79e0 100644 --- a/lib/bandwidth-sdk/models/code_request.rb +++ b/lib/bandwidth-sdk/models/code_request.rb @@ -72,7 +72,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::CodeRequest` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::CodeRequest` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -430,5 +430,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/conference.rb b/lib/bandwidth-sdk/models/conference.rb index 0ab8bf8e..fd4ad869 100644 --- a/lib/bandwidth-sdk/models/conference.rb +++ b/lib/bandwidth-sdk/models/conference.rb @@ -108,7 +108,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::Conference` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::Conference` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -309,5 +309,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/conference_completed_callback.rb b/lib/bandwidth-sdk/models/conference_completed_callback.rb index 44d822a9..483e62ad 100644 --- a/lib/bandwidth-sdk/models/conference_completed_callback.rb +++ b/lib/bandwidth-sdk/models/conference_completed_callback.rb @@ -69,7 +69,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::ConferenceCompletedCallback` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::ConferenceCompletedCallback` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -251,5 +251,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/conference_created_callback.rb b/lib/bandwidth-sdk/models/conference_created_callback.rb index eb1a66ad..bd48b6cf 100644 --- a/lib/bandwidth-sdk/models/conference_created_callback.rb +++ b/lib/bandwidth-sdk/models/conference_created_callback.rb @@ -69,7 +69,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::ConferenceCreatedCallback` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::ConferenceCreatedCallback` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -251,5 +251,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/conference_member.rb b/lib/bandwidth-sdk/models/conference_member.rb index 71ac2b5b..ffdb7d8e 100644 --- a/lib/bandwidth-sdk/models/conference_member.rb +++ b/lib/bandwidth-sdk/models/conference_member.rb @@ -73,7 +73,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::ConferenceMember` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::ConferenceMember` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -262,5 +262,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/conference_member_exit_callback.rb b/lib/bandwidth-sdk/models/conference_member_exit_callback.rb index f0f32f4a..37d20ce4 100644 --- a/lib/bandwidth-sdk/models/conference_member_exit_callback.rb +++ b/lib/bandwidth-sdk/models/conference_member_exit_callback.rb @@ -84,7 +84,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::ConferenceMemberExitCallback` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::ConferenceMemberExitCallback` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -281,5 +281,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/conference_member_join_callback.rb b/lib/bandwidth-sdk/models/conference_member_join_callback.rb index ad3a5416..1b31dbe4 100644 --- a/lib/bandwidth-sdk/models/conference_member_join_callback.rb +++ b/lib/bandwidth-sdk/models/conference_member_join_callback.rb @@ -84,7 +84,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::ConferenceMemberJoinCallback` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::ConferenceMemberJoinCallback` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -281,5 +281,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/conference_recording_available_callback.rb b/lib/bandwidth-sdk/models/conference_recording_available_callback.rb index 0fda6447..1ff9c176 100644 --- a/lib/bandwidth-sdk/models/conference_recording_available_callback.rb +++ b/lib/bandwidth-sdk/models/conference_recording_available_callback.rb @@ -136,7 +136,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::ConferenceRecordingAvailableCallback` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::ConferenceRecordingAvailableCallback` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -363,5 +363,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/conference_recording_metadata.rb b/lib/bandwidth-sdk/models/conference_recording_metadata.rb index 76233926..3dc34537 100644 --- a/lib/bandwidth-sdk/models/conference_recording_metadata.rb +++ b/lib/bandwidth-sdk/models/conference_recording_metadata.rb @@ -124,7 +124,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::ConferenceRecordingMetadata` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::ConferenceRecordingMetadata` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -341,5 +341,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/conference_redirect_callback.rb b/lib/bandwidth-sdk/models/conference_redirect_callback.rb index a6d3e28a..c27ae0c2 100644 --- a/lib/bandwidth-sdk/models/conference_redirect_callback.rb +++ b/lib/bandwidth-sdk/models/conference_redirect_callback.rb @@ -69,7 +69,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::ConferenceRedirectCallback` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::ConferenceRedirectCallback` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -251,5 +251,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/conference_state_enum.rb b/lib/bandwidth-sdk/models/conference_state_enum.rb index 5c01c899..7559250e 100644 --- a/lib/bandwidth-sdk/models/conference_state_enum.rb +++ b/lib/bandwidth-sdk/models/conference_state_enum.rb @@ -15,8 +15,8 @@ module Bandwidth class ConferenceStateEnum - ACTIVE = 'active'.freeze - COMPLETED = 'completed'.freeze + ACTIVE = "active".freeze + COMPLETED = "completed".freeze def self.all_vars @all_vars ||= [ACTIVE, COMPLETED].freeze diff --git a/lib/bandwidth-sdk/models/create_call.rb b/lib/bandwidth-sdk/models/create_call.rb index 0569ad38..c658b085 100644 --- a/lib/bandwidth-sdk/models/create_call.rb +++ b/lib/bandwidth-sdk/models/create_call.rb @@ -181,7 +181,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::CreateCall` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::CreateCall` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -694,5 +694,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/create_call_response.rb b/lib/bandwidth-sdk/models/create_call_response.rb index b35994e5..fec6cdc4 100644 --- a/lib/bandwidth-sdk/models/create_call_response.rb +++ b/lib/bandwidth-sdk/models/create_call_response.rb @@ -178,7 +178,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::CreateCallResponse` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::CreateCallResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -555,5 +555,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/create_lookup_response.rb b/lib/bandwidth-sdk/models/create_lookup_response.rb index fb69bf23..96103cac 100644 --- a/lib/bandwidth-sdk/models/create_lookup_response.rb +++ b/lib/bandwidth-sdk/models/create_lookup_response.rb @@ -74,7 +74,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::CreateLookupResponse` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::CreateLookupResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -241,5 +241,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/create_message_request_error.rb b/lib/bandwidth-sdk/models/create_message_request_error.rb index 12be3a00..cc237838 100644 --- a/lib/bandwidth-sdk/models/create_message_request_error.rb +++ b/lib/bandwidth-sdk/models/create_message_request_error.rb @@ -54,7 +54,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::CreateMessageRequestError` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::CreateMessageRequestError` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -242,5 +242,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/deferred_result.rb b/lib/bandwidth-sdk/models/deferred_result.rb index 36c425f7..1c04a707 100644 --- a/lib/bandwidth-sdk/models/deferred_result.rb +++ b/lib/bandwidth-sdk/models/deferred_result.rb @@ -50,7 +50,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::DeferredResult` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::DeferredResult` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -217,5 +217,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/disconnect_callback.rb b/lib/bandwidth-sdk/models/disconnect_callback.rb index 021f105f..13fa5825 100644 --- a/lib/bandwidth-sdk/models/disconnect_callback.rb +++ b/lib/bandwidth-sdk/models/disconnect_callback.rb @@ -154,7 +154,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::DisconnectCallback` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::DisconnectCallback` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -396,5 +396,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/diversion.rb b/lib/bandwidth-sdk/models/diversion.rb index 2cb77aa7..dbaa4169 100644 --- a/lib/bandwidth-sdk/models/diversion.rb +++ b/lib/bandwidth-sdk/models/diversion.rb @@ -77,7 +77,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::Diversion` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::Diversion` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -269,5 +269,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/dtmf_callback.rb b/lib/bandwidth-sdk/models/dtmf_callback.rb index 28fa9d0a..b5d6f4da 100644 --- a/lib/bandwidth-sdk/models/dtmf_callback.rb +++ b/lib/bandwidth-sdk/models/dtmf_callback.rb @@ -152,7 +152,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::DtmfCallback` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::DtmfCallback` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -394,5 +394,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/field_error.rb b/lib/bandwidth-sdk/models/field_error.rb index 1f7c03f6..b808b5c3 100644 --- a/lib/bandwidth-sdk/models/field_error.rb +++ b/lib/bandwidth-sdk/models/field_error.rb @@ -52,7 +52,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::FieldError` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::FieldError` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -219,5 +219,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/file_format_enum.rb b/lib/bandwidth-sdk/models/file_format_enum.rb index 88926490..36c03b9c 100644 --- a/lib/bandwidth-sdk/models/file_format_enum.rb +++ b/lib/bandwidth-sdk/models/file_format_enum.rb @@ -15,8 +15,8 @@ module Bandwidth class FileFormatEnum - MP3 = 'mp3'.freeze - WAV = 'wav'.freeze + MP3 = "mp3".freeze + WAV = "wav".freeze def self.all_vars @all_vars ||= [MP3, WAV].freeze diff --git a/lib/bandwidth-sdk/models/gather_callback.rb b/lib/bandwidth-sdk/models/gather_callback.rb index b410ebe3..1277b501 100644 --- a/lib/bandwidth-sdk/models/gather_callback.rb +++ b/lib/bandwidth-sdk/models/gather_callback.rb @@ -157,7 +157,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::GatherCallback` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::GatherCallback` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -404,5 +404,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/inbound_message_callback.rb b/lib/bandwidth-sdk/models/inbound_message_callback.rb index a29968d7..44d676bb 100644 --- a/lib/bandwidth-sdk/models/inbound_message_callback.rb +++ b/lib/bandwidth-sdk/models/inbound_message_callback.rb @@ -63,7 +63,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::InboundMessageCallback` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::InboundMessageCallback` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -280,5 +280,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/inbound_message_callback_message.rb b/lib/bandwidth-sdk/models/inbound_message_callback_message.rb index 9c99e4e4..6cfda971 100644 --- a/lib/bandwidth-sdk/models/inbound_message_callback_message.rb +++ b/lib/bandwidth-sdk/models/inbound_message_callback_message.rb @@ -113,7 +113,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::InboundMessageCallbackMessage` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::InboundMessageCallbackMessage` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -407,5 +407,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/initiate_callback.rb b/lib/bandwidth-sdk/models/initiate_callback.rb index 44c7780f..13bb300f 100644 --- a/lib/bandwidth-sdk/models/initiate_callback.rb +++ b/lib/bandwidth-sdk/models/initiate_callback.rb @@ -122,7 +122,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::InitiateCallback` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::InitiateCallback` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -339,5 +339,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/list_message_direction_enum.rb b/lib/bandwidth-sdk/models/list_message_direction_enum.rb index 7255ff24..a33c5063 100644 --- a/lib/bandwidth-sdk/models/list_message_direction_enum.rb +++ b/lib/bandwidth-sdk/models/list_message_direction_enum.rb @@ -15,8 +15,8 @@ module Bandwidth class ListMessageDirectionEnum - INBOUND = 'INBOUND'.freeze - OUTBOUND = 'OUTBOUND'.freeze + INBOUND = "INBOUND".freeze + OUTBOUND = "OUTBOUND".freeze def self.all_vars @all_vars ||= [INBOUND, OUTBOUND].freeze diff --git a/lib/bandwidth-sdk/models/list_message_item.rb b/lib/bandwidth-sdk/models/list_message_item.rb index 1a71f23b..b98fc841 100644 --- a/lib/bandwidth-sdk/models/list_message_item.rb +++ b/lib/bandwidth-sdk/models/list_message_item.rb @@ -152,7 +152,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::ListMessageItem` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::ListMessageItem` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -394,5 +394,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/lookup_request.rb b/lib/bandwidth-sdk/models/lookup_request.rb index 7466f122..ed55a70a 100644 --- a/lib/bandwidth-sdk/models/lookup_request.rb +++ b/lib/bandwidth-sdk/models/lookup_request.rb @@ -47,7 +47,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::LookupRequest` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::LookupRequest` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -218,5 +218,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/lookup_result.rb b/lib/bandwidth-sdk/models/lookup_result.rb index b701d414..8052b66f 100644 --- a/lib/bandwidth-sdk/models/lookup_result.rb +++ b/lib/bandwidth-sdk/models/lookup_result.rb @@ -88,7 +88,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::LookupResult` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::LookupResult` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -290,5 +290,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/lookup_status.rb b/lib/bandwidth-sdk/models/lookup_status.rb index 3264a26d..1fe1874c 100644 --- a/lib/bandwidth-sdk/models/lookup_status.rb +++ b/lib/bandwidth-sdk/models/lookup_status.rb @@ -84,7 +84,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::LookupStatus` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::LookupStatus` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -265,5 +265,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/lookup_status_enum.rb b/lib/bandwidth-sdk/models/lookup_status_enum.rb index badcabfc..5ddfda5a 100644 --- a/lib/bandwidth-sdk/models/lookup_status_enum.rb +++ b/lib/bandwidth-sdk/models/lookup_status_enum.rb @@ -15,10 +15,10 @@ module Bandwidth class LookupStatusEnum - IN_PROGRESS = 'IN_PROGRESS'.freeze - COMPLETE = 'COMPLETE'.freeze - PARTIAL_COMPLETE = 'PARTIAL_COMPLETE'.freeze - FAILED = 'FAILED'.freeze + IN_PROGRESS = "IN_PROGRESS".freeze + COMPLETE = "COMPLETE".freeze + PARTIAL_COMPLETE = "PARTIAL_COMPLETE".freeze + FAILED = "FAILED".freeze def self.all_vars @all_vars ||= [IN_PROGRESS, COMPLETE, PARTIAL_COMPLETE, FAILED].freeze diff --git a/lib/bandwidth-sdk/models/machine_detection_complete_callback.rb b/lib/bandwidth-sdk/models/machine_detection_complete_callback.rb index 69675e73..33e4792e 100644 --- a/lib/bandwidth-sdk/models/machine_detection_complete_callback.rb +++ b/lib/bandwidth-sdk/models/machine_detection_complete_callback.rb @@ -137,7 +137,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MachineDetectionCompleteCallback` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::MachineDetectionCompleteCallback` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -364,5 +364,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/machine_detection_configuration.rb b/lib/bandwidth-sdk/models/machine_detection_configuration.rb index 7b61a7e3..7c19a5c2 100644 --- a/lib/bandwidth-sdk/models/machine_detection_configuration.rb +++ b/lib/bandwidth-sdk/models/machine_detection_configuration.rb @@ -151,7 +151,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MachineDetectionConfiguration` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::MachineDetectionConfiguration` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -489,5 +489,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/machine_detection_mode_enum.rb b/lib/bandwidth-sdk/models/machine_detection_mode_enum.rb index cd64e339..9ccd4d6b 100644 --- a/lib/bandwidth-sdk/models/machine_detection_mode_enum.rb +++ b/lib/bandwidth-sdk/models/machine_detection_mode_enum.rb @@ -15,8 +15,8 @@ module Bandwidth class MachineDetectionModeEnum - SYNC = 'sync'.freeze - ASYNC = 'async'.freeze + SYNC = "sync".freeze + ASYNC = "async".freeze def self.all_vars @all_vars ||= [SYNC, ASYNC].freeze diff --git a/lib/bandwidth-sdk/models/machine_detection_result.rb b/lib/bandwidth-sdk/models/machine_detection_result.rb index 42c57a7f..ddd3feb4 100644 --- a/lib/bandwidth-sdk/models/machine_detection_result.rb +++ b/lib/bandwidth-sdk/models/machine_detection_result.rb @@ -53,7 +53,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MachineDetectionResult` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::MachineDetectionResult` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -220,5 +220,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/media.rb b/lib/bandwidth-sdk/models/media.rb index b939af38..6d18862b 100644 --- a/lib/bandwidth-sdk/models/media.rb +++ b/lib/bandwidth-sdk/models/media.rb @@ -54,7 +54,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::Media` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::Media` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -226,5 +226,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/message.rb b/lib/bandwidth-sdk/models/message.rb index 02172899..d518dbe8 100644 --- a/lib/bandwidth-sdk/models/message.rb +++ b/lib/bandwidth-sdk/models/message.rb @@ -127,7 +127,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::Message` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::Message` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -373,5 +373,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/message_delivered_callback.rb b/lib/bandwidth-sdk/models/message_delivered_callback.rb index 8422a312..a76e12d3 100644 --- a/lib/bandwidth-sdk/models/message_delivered_callback.rb +++ b/lib/bandwidth-sdk/models/message_delivered_callback.rb @@ -63,7 +63,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MessageDeliveredCallback` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::MessageDeliveredCallback` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -280,5 +280,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/message_delivered_callback_message.rb b/lib/bandwidth-sdk/models/message_delivered_callback_message.rb index a9ba4ca8..a4b42bbb 100644 --- a/lib/bandwidth-sdk/models/message_delivered_callback_message.rb +++ b/lib/bandwidth-sdk/models/message_delivered_callback_message.rb @@ -113,7 +113,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MessageDeliveredCallbackMessage` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::MessageDeliveredCallbackMessage` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -414,5 +414,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/message_direction_enum.rb b/lib/bandwidth-sdk/models/message_direction_enum.rb index 86aa0cc0..5392bd73 100644 --- a/lib/bandwidth-sdk/models/message_direction_enum.rb +++ b/lib/bandwidth-sdk/models/message_direction_enum.rb @@ -15,8 +15,8 @@ module Bandwidth class MessageDirectionEnum - IN = 'in'.freeze - OUT = 'out'.freeze + IN = "in".freeze + OUT = "out".freeze def self.all_vars @all_vars ||= [IN, OUT].freeze diff --git a/lib/bandwidth-sdk/models/message_failed_callback.rb b/lib/bandwidth-sdk/models/message_failed_callback.rb index 0fae1e55..568e190d 100644 --- a/lib/bandwidth-sdk/models/message_failed_callback.rb +++ b/lib/bandwidth-sdk/models/message_failed_callback.rb @@ -67,7 +67,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MessageFailedCallback` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::MessageFailedCallback` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -296,5 +296,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/message_failed_callback_message.rb b/lib/bandwidth-sdk/models/message_failed_callback_message.rb index be2e2c2d..0293ba52 100644 --- a/lib/bandwidth-sdk/models/message_failed_callback_message.rb +++ b/lib/bandwidth-sdk/models/message_failed_callback_message.rb @@ -113,7 +113,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MessageFailedCallbackMessage` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::MessageFailedCallbackMessage` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -414,5 +414,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/message_request.rb b/lib/bandwidth-sdk/models/message_request.rb index 829f918a..c51a7944 100644 --- a/lib/bandwidth-sdk/models/message_request.rb +++ b/lib/bandwidth-sdk/models/message_request.rb @@ -103,7 +103,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MessageRequest` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::MessageRequest` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -354,5 +354,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/message_sending_callback.rb b/lib/bandwidth-sdk/models/message_sending_callback.rb index 79e5368e..d78c984f 100644 --- a/lib/bandwidth-sdk/models/message_sending_callback.rb +++ b/lib/bandwidth-sdk/models/message_sending_callback.rb @@ -63,7 +63,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MessageSendingCallback` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::MessageSendingCallback` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -280,5 +280,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/message_sending_callback_message.rb b/lib/bandwidth-sdk/models/message_sending_callback_message.rb index eac3ed26..bb7023c6 100644 --- a/lib/bandwidth-sdk/models/message_sending_callback_message.rb +++ b/lib/bandwidth-sdk/models/message_sending_callback_message.rb @@ -113,7 +113,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MessageSendingCallbackMessage` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::MessageSendingCallbackMessage` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -414,5 +414,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/message_status_enum.rb b/lib/bandwidth-sdk/models/message_status_enum.rb index 148292a7..940bd215 100644 --- a/lib/bandwidth-sdk/models/message_status_enum.rb +++ b/lib/bandwidth-sdk/models/message_status_enum.rb @@ -15,14 +15,14 @@ module Bandwidth class MessageStatusEnum - RECEIVED = 'RECEIVED'.freeze - QUEUED = 'QUEUED'.freeze - SENDING = 'SENDING'.freeze - SENT = 'SENT'.freeze - FAILED = 'FAILED'.freeze - DELIVERED = 'DELIVERED'.freeze - ACCEPTED = 'ACCEPTED'.freeze - UNDELIVERED = 'UNDELIVERED'.freeze + RECEIVED = "RECEIVED".freeze + QUEUED = "QUEUED".freeze + SENDING = "SENDING".freeze + SENT = "SENT".freeze + FAILED = "FAILED".freeze + DELIVERED = "DELIVERED".freeze + ACCEPTED = "ACCEPTED".freeze + UNDELIVERED = "UNDELIVERED".freeze def self.all_vars @all_vars ||= [RECEIVED, QUEUED, SENDING, SENT, FAILED, DELIVERED, ACCEPTED, UNDELIVERED].freeze diff --git a/lib/bandwidth-sdk/models/message_type_enum.rb b/lib/bandwidth-sdk/models/message_type_enum.rb index 158eceaa..f2c3a527 100644 --- a/lib/bandwidth-sdk/models/message_type_enum.rb +++ b/lib/bandwidth-sdk/models/message_type_enum.rb @@ -15,8 +15,8 @@ module Bandwidth class MessageTypeEnum - SMS = 'sms'.freeze - MMS = 'mms'.freeze + SMS = "sms".freeze + MMS = "mms".freeze def self.all_vars @all_vars ||= [SMS, MMS].freeze diff --git a/lib/bandwidth-sdk/models/messages_list.rb b/lib/bandwidth-sdk/models/messages_list.rb index e1eacd7d..fa7161c6 100644 --- a/lib/bandwidth-sdk/models/messages_list.rb +++ b/lib/bandwidth-sdk/models/messages_list.rb @@ -55,7 +55,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MessagesList` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::MessagesList` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -229,5 +229,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/messaging_code_response.rb b/lib/bandwidth-sdk/models/messaging_code_response.rb index f6cbc716..2f4b5748 100644 --- a/lib/bandwidth-sdk/models/messaging_code_response.rb +++ b/lib/bandwidth-sdk/models/messaging_code_response.rb @@ -47,7 +47,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MessagingCodeResponse` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::MessagingCodeResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -209,5 +209,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/messaging_request_error.rb b/lib/bandwidth-sdk/models/messaging_request_error.rb index af181381..8c7e0f46 100644 --- a/lib/bandwidth-sdk/models/messaging_request_error.rb +++ b/lib/bandwidth-sdk/models/messaging_request_error.rb @@ -50,7 +50,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MessagingRequestError` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::MessagingRequestError` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -231,5 +231,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/mfa_forbidden_request_error.rb b/lib/bandwidth-sdk/models/mfa_forbidden_request_error.rb index 74b288e1..7d300887 100644 --- a/lib/bandwidth-sdk/models/mfa_forbidden_request_error.rb +++ b/lib/bandwidth-sdk/models/mfa_forbidden_request_error.rb @@ -47,7 +47,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MfaForbiddenRequestError` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::MfaForbiddenRequestError` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -209,5 +209,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/mfa_request_error.rb b/lib/bandwidth-sdk/models/mfa_request_error.rb index 40e3b912..8cd876f2 100644 --- a/lib/bandwidth-sdk/models/mfa_request_error.rb +++ b/lib/bandwidth-sdk/models/mfa_request_error.rb @@ -52,7 +52,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MfaRequestError` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::MfaRequestError` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -219,5 +219,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/mfa_unauthorized_request_error.rb b/lib/bandwidth-sdk/models/mfa_unauthorized_request_error.rb index 80b47460..663d6d6e 100644 --- a/lib/bandwidth-sdk/models/mfa_unauthorized_request_error.rb +++ b/lib/bandwidth-sdk/models/mfa_unauthorized_request_error.rb @@ -47,7 +47,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MfaUnauthorizedRequestError` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::MfaUnauthorizedRequestError` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -209,5 +209,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/page_info.rb b/lib/bandwidth-sdk/models/page_info.rb index 5722c302..8a15bfdd 100644 --- a/lib/bandwidth-sdk/models/page_info.rb +++ b/lib/bandwidth-sdk/models/page_info.rb @@ -62,7 +62,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::PageInfo` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::PageInfo` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -239,5 +239,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/priority_enum.rb b/lib/bandwidth-sdk/models/priority_enum.rb index 537efc58..020e8fdb 100644 --- a/lib/bandwidth-sdk/models/priority_enum.rb +++ b/lib/bandwidth-sdk/models/priority_enum.rb @@ -15,8 +15,8 @@ module Bandwidth class PriorityEnum - DEFAULT = 'default'.freeze - HIGH = 'high'.freeze + DEFAULT = "default".freeze + HIGH = "high".freeze def self.all_vars @all_vars ||= [DEFAULT, HIGH].freeze diff --git a/lib/bandwidth-sdk/models/recording_available_callback.rb b/lib/bandwidth-sdk/models/recording_available_callback.rb index 65201b01..d940d0bc 100644 --- a/lib/bandwidth-sdk/models/recording_available_callback.rb +++ b/lib/bandwidth-sdk/models/recording_available_callback.rb @@ -176,7 +176,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::RecordingAvailableCallback` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::RecordingAvailableCallback` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -443,5 +443,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/recording_complete_callback.rb b/lib/bandwidth-sdk/models/recording_complete_callback.rb index 810a36c6..1c41d878 100644 --- a/lib/bandwidth-sdk/models/recording_complete_callback.rb +++ b/lib/bandwidth-sdk/models/recording_complete_callback.rb @@ -177,7 +177,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::RecordingCompleteCallback` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::RecordingCompleteCallback` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -444,5 +444,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/recording_state_enum.rb b/lib/bandwidth-sdk/models/recording_state_enum.rb index 7827a386..7e2818fd 100644 --- a/lib/bandwidth-sdk/models/recording_state_enum.rb +++ b/lib/bandwidth-sdk/models/recording_state_enum.rb @@ -15,8 +15,8 @@ module Bandwidth class RecordingStateEnum - PAUSED = 'paused'.freeze - RECORDING = 'recording'.freeze + PAUSED = "paused".freeze + RECORDING = "recording".freeze def self.all_vars @all_vars ||= [PAUSED, RECORDING].freeze diff --git a/lib/bandwidth-sdk/models/recording_transcription_metadata.rb b/lib/bandwidth-sdk/models/recording_transcription_metadata.rb index 5c1ed1e8..106cf96c 100644 --- a/lib/bandwidth-sdk/models/recording_transcription_metadata.rb +++ b/lib/bandwidth-sdk/models/recording_transcription_metadata.rb @@ -63,7 +63,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::RecordingTranscriptionMetadata` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::RecordingTranscriptionMetadata` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -240,5 +240,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/recording_transcriptions.rb b/lib/bandwidth-sdk/models/recording_transcriptions.rb index d2821ab7..6e7872fb 100644 --- a/lib/bandwidth-sdk/models/recording_transcriptions.rb +++ b/lib/bandwidth-sdk/models/recording_transcriptions.rb @@ -46,7 +46,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::RecordingTranscriptions` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::RecordingTranscriptions` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -210,5 +210,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/redirect_callback.rb b/lib/bandwidth-sdk/models/redirect_callback.rb index 7b7da865..abf8a078 100644 --- a/lib/bandwidth-sdk/models/redirect_callback.rb +++ b/lib/bandwidth-sdk/models/redirect_callback.rb @@ -147,7 +147,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::RedirectCallback` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::RedirectCallback` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -384,5 +384,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/redirect_method_enum.rb b/lib/bandwidth-sdk/models/redirect_method_enum.rb index d71543d5..d829b0b6 100644 --- a/lib/bandwidth-sdk/models/redirect_method_enum.rb +++ b/lib/bandwidth-sdk/models/redirect_method_enum.rb @@ -15,8 +15,8 @@ module Bandwidth class RedirectMethodEnum - GET = 'GET'.freeze - POST = 'POST'.freeze + GET = "GET".freeze + POST = "POST".freeze def self.all_vars @all_vars ||= [GET, POST].freeze diff --git a/lib/bandwidth-sdk/models/stir_shaken.rb b/lib/bandwidth-sdk/models/stir_shaken.rb index 10f8b845..7f2fa2c9 100644 --- a/lib/bandwidth-sdk/models/stir_shaken.rb +++ b/lib/bandwidth-sdk/models/stir_shaken.rb @@ -57,7 +57,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::StirShaken` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::StirShaken` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -229,5 +229,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/tag.rb b/lib/bandwidth-sdk/models/tag.rb index af4bdf09..1b20b406 100644 --- a/lib/bandwidth-sdk/models/tag.rb +++ b/lib/bandwidth-sdk/models/tag.rb @@ -50,7 +50,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::Tag` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::Tag` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -217,5 +217,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/tn_lookup_request_error.rb b/lib/bandwidth-sdk/models/tn_lookup_request_error.rb index 8e23b488..02e26013 100644 --- a/lib/bandwidth-sdk/models/tn_lookup_request_error.rb +++ b/lib/bandwidth-sdk/models/tn_lookup_request_error.rb @@ -47,7 +47,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::TnLookupRequestError` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::TnLookupRequestError` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -209,5 +209,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/transcribe_recording.rb b/lib/bandwidth-sdk/models/transcribe_recording.rb index 7a5a4b2d..1f3be24d 100644 --- a/lib/bandwidth-sdk/models/transcribe_recording.rb +++ b/lib/bandwidth-sdk/models/transcribe_recording.rb @@ -104,7 +104,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::TranscribeRecording` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::TranscribeRecording` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -356,5 +356,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/transcription.rb b/lib/bandwidth-sdk/models/transcription.rb index ca227c50..3fd78699 100644 --- a/lib/bandwidth-sdk/models/transcription.rb +++ b/lib/bandwidth-sdk/models/transcription.rb @@ -52,7 +52,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::Transcription` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::Transcription` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -219,5 +219,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/transcription_available_callback.rb b/lib/bandwidth-sdk/models/transcription_available_callback.rb index 8849a3db..af5d26d5 100644 --- a/lib/bandwidth-sdk/models/transcription_available_callback.rb +++ b/lib/bandwidth-sdk/models/transcription_available_callback.rb @@ -170,7 +170,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::TranscriptionAvailableCallback` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::TranscriptionAvailableCallback` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -432,5 +432,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/transfer_answer_callback.rb b/lib/bandwidth-sdk/models/transfer_answer_callback.rb index 774c3b1e..9652b5de 100644 --- a/lib/bandwidth-sdk/models/transfer_answer_callback.rb +++ b/lib/bandwidth-sdk/models/transfer_answer_callback.rb @@ -142,7 +142,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::TransferAnswerCallback` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::TransferAnswerCallback` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -374,5 +374,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/transfer_complete_callback.rb b/lib/bandwidth-sdk/models/transfer_complete_callback.rb index 74720560..322a4a43 100644 --- a/lib/bandwidth-sdk/models/transfer_complete_callback.rb +++ b/lib/bandwidth-sdk/models/transfer_complete_callback.rb @@ -159,7 +159,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::TransferCompleteCallback` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::TransferCompleteCallback` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -406,5 +406,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/transfer_disconnect_callback.rb b/lib/bandwidth-sdk/models/transfer_disconnect_callback.rb index b1374129..2c56275c 100644 --- a/lib/bandwidth-sdk/models/transfer_disconnect_callback.rb +++ b/lib/bandwidth-sdk/models/transfer_disconnect_callback.rb @@ -169,7 +169,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::TransferDisconnectCallback` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::TransferDisconnectCallback` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -426,5 +426,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/update_call.rb b/lib/bandwidth-sdk/models/update_call.rb index 783d7850..37733c55 100644 --- a/lib/bandwidth-sdk/models/update_call.rb +++ b/lib/bandwidth-sdk/models/update_call.rb @@ -121,7 +121,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::UpdateCall` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::UpdateCall` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -409,5 +409,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/update_call_recording.rb b/lib/bandwidth-sdk/models/update_call_recording.rb index 994f01e0..fe066850 100644 --- a/lib/bandwidth-sdk/models/update_call_recording.rb +++ b/lib/bandwidth-sdk/models/update_call_recording.rb @@ -68,7 +68,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::UpdateCallRecording` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::UpdateCallRecording` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -237,5 +237,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/update_conference.rb b/lib/bandwidth-sdk/models/update_conference.rb index 7b72726b..24436689 100644 --- a/lib/bandwidth-sdk/models/update_conference.rb +++ b/lib/bandwidth-sdk/models/update_conference.rb @@ -115,7 +115,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::UpdateConference` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::UpdateConference` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -383,5 +383,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/update_conference_member.rb b/lib/bandwidth-sdk/models/update_conference_member.rb index cfacf093..0c308a96 100644 --- a/lib/bandwidth-sdk/models/update_conference_member.rb +++ b/lib/bandwidth-sdk/models/update_conference_member.rb @@ -58,7 +58,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::UpdateConferenceMember` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::UpdateConferenceMember` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -232,5 +232,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/verify_code_request.rb b/lib/bandwidth-sdk/models/verify_code_request.rb index fb2958fb..4a0d37de 100644 --- a/lib/bandwidth-sdk/models/verify_code_request.rb +++ b/lib/bandwidth-sdk/models/verify_code_request.rb @@ -62,7 +62,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::VerifyCodeRequest` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::VerifyCodeRequest` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -337,5 +337,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/verify_code_response.rb b/lib/bandwidth-sdk/models/verify_code_response.rb index 67587a6b..239cf34b 100644 --- a/lib/bandwidth-sdk/models/verify_code_response.rb +++ b/lib/bandwidth-sdk/models/verify_code_response.rb @@ -47,7 +47,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::VerifyCodeResponse` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::VerifyCodeResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -209,5 +209,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/voice_api_error.rb b/lib/bandwidth-sdk/models/voice_api_error.rb index 4a31ee3a..d77403c8 100644 --- a/lib/bandwidth-sdk/models/voice_api_error.rb +++ b/lib/bandwidth-sdk/models/voice_api_error.rb @@ -55,7 +55,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::VoiceApiError` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::VoiceApiError` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -227,5 +227,7 @@ def _to_hash(value) value end end + end + end diff --git a/lib/bandwidth-sdk/models/voice_code_response.rb b/lib/bandwidth-sdk/models/voice_code_response.rb index fad8c855..6437011d 100644 --- a/lib/bandwidth-sdk/models/voice_code_response.rb +++ b/lib/bandwidth-sdk/models/voice_code_response.rb @@ -47,7 +47,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::VoiceCodeResponse` initialize method' + fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::VoiceCodeResponse` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key @@ -209,5 +209,7 @@ def _to_hash(value) value end end + end + end From 0a776cffc649d65597930008591dd29f0efeb98f Mon Sep 17 00:00:00 2001 From: DX-Bandwidth Date: Tue, 8 Oct 2024 14:07:43 +0000 Subject: [PATCH 2/2] Clean SDK using Rubocop --- bandwidth-sdk.gemspec | 22 +++++++++---------- lib/bandwidth-sdk/api/calls_api.rb | 6 ++--- lib/bandwidth-sdk/api/conferences_api.rb | 6 ++--- lib/bandwidth-sdk/api/media_api.rb | 2 +- lib/bandwidth-sdk/api/messages_api.rb | 2 +- lib/bandwidth-sdk/api/mfa_api.rb | 6 ++--- .../api/phone_number_lookup_api.rb | 2 +- lib/bandwidth-sdk/api/recordings_api.rb | 4 ++-- lib/bandwidth-sdk/api_error.rb | 2 +- lib/bandwidth-sdk/configuration.rb | 1 - .../models/account_statistics.rb | 4 +--- lib/bandwidth-sdk/models/answer_callback.rb | 4 +--- .../models/bridge_complete_callback.rb | 4 +--- .../models/bridge_target_complete_callback.rb | 4 +--- .../models/call_direction_enum.rb | 4 ++-- .../models/call_recording_metadata.rb | 4 +--- lib/bandwidth-sdk/models/call_state.rb | 4 +--- lib/bandwidth-sdk/models/call_state_enum.rb | 4 ++-- .../models/call_transcription.rb | 4 +--- ...ll_transcription_detected_language_enum.rb | 6 ++--- .../models/call_transcription_metadata.rb | 4 +--- .../models/call_transcription_response.rb | 4 +--- .../models/call_transcription_track_enum.rb | 4 ++-- .../models/callback_method_enum.rb | 4 ++-- lib/bandwidth-sdk/models/code_request.rb | 4 +--- lib/bandwidth-sdk/models/conference.rb | 4 +--- .../models/conference_completed_callback.rb | 4 +--- .../models/conference_created_callback.rb | 4 +--- lib/bandwidth-sdk/models/conference_member.rb | 4 +--- .../models/conference_member_exit_callback.rb | 4 +--- .../models/conference_member_join_callback.rb | 4 +--- ...conference_recording_available_callback.rb | 4 +--- .../models/conference_recording_metadata.rb | 4 +--- .../models/conference_redirect_callback.rb | 4 +--- .../models/conference_state_enum.rb | 4 ++-- lib/bandwidth-sdk/models/create_call.rb | 4 +--- .../models/create_call_response.rb | 4 +--- .../models/create_lookup_response.rb | 4 +--- .../models/create_message_request_error.rb | 4 +--- lib/bandwidth-sdk/models/deferred_result.rb | 4 +--- .../models/disconnect_callback.rb | 4 +--- lib/bandwidth-sdk/models/diversion.rb | 4 +--- lib/bandwidth-sdk/models/dtmf_callback.rb | 4 +--- lib/bandwidth-sdk/models/field_error.rb | 4 +--- lib/bandwidth-sdk/models/file_format_enum.rb | 4 ++-- lib/bandwidth-sdk/models/gather_callback.rb | 4 +--- .../models/inbound_message_callback.rb | 4 +--- .../inbound_message_callback_message.rb | 4 +--- lib/bandwidth-sdk/models/initiate_callback.rb | 4 +--- .../models/list_message_direction_enum.rb | 4 ++-- lib/bandwidth-sdk/models/list_message_item.rb | 4 +--- lib/bandwidth-sdk/models/lookup_request.rb | 4 +--- lib/bandwidth-sdk/models/lookup_result.rb | 4 +--- lib/bandwidth-sdk/models/lookup_status.rb | 4 +--- .../models/lookup_status_enum.rb | 8 +++---- .../machine_detection_complete_callback.rb | 4 +--- .../models/machine_detection_configuration.rb | 4 +--- .../models/machine_detection_mode_enum.rb | 4 ++-- .../models/machine_detection_result.rb | 4 +--- lib/bandwidth-sdk/models/media.rb | 4 +--- lib/bandwidth-sdk/models/message.rb | 4 +--- .../models/message_delivered_callback.rb | 4 +--- .../message_delivered_callback_message.rb | 4 +--- .../models/message_direction_enum.rb | 4 ++-- .../models/message_failed_callback.rb | 4 +--- .../models/message_failed_callback_message.rb | 4 +--- lib/bandwidth-sdk/models/message_request.rb | 4 +--- .../models/message_sending_callback.rb | 4 +--- .../message_sending_callback_message.rb | 4 +--- .../models/message_status_enum.rb | 16 +++++++------- lib/bandwidth-sdk/models/message_type_enum.rb | 4 ++-- lib/bandwidth-sdk/models/messages_list.rb | 4 +--- .../models/messaging_code_response.rb | 4 +--- .../models/messaging_request_error.rb | 4 +--- .../models/mfa_forbidden_request_error.rb | 4 +--- lib/bandwidth-sdk/models/mfa_request_error.rb | 4 +--- .../models/mfa_unauthorized_request_error.rb | 4 +--- lib/bandwidth-sdk/models/page_info.rb | 4 +--- lib/bandwidth-sdk/models/priority_enum.rb | 4 ++-- .../models/recording_available_callback.rb | 4 +--- .../models/recording_complete_callback.rb | 4 +--- .../models/recording_state_enum.rb | 4 ++-- .../recording_transcription_metadata.rb | 4 +--- .../models/recording_transcriptions.rb | 4 +--- lib/bandwidth-sdk/models/redirect_callback.rb | 4 +--- .../models/redirect_method_enum.rb | 4 ++-- lib/bandwidth-sdk/models/stir_shaken.rb | 4 +--- lib/bandwidth-sdk/models/tag.rb | 4 +--- .../models/tn_lookup_request_error.rb | 4 +--- .../models/transcribe_recording.rb | 4 +--- lib/bandwidth-sdk/models/transcription.rb | 4 +--- .../transcription_available_callback.rb | 4 +--- .../models/transfer_answer_callback.rb | 4 +--- .../models/transfer_complete_callback.rb | 4 +--- .../models/transfer_disconnect_callback.rb | 4 +--- lib/bandwidth-sdk/models/update_call.rb | 4 +--- .../models/update_call_recording.rb | 4 +--- lib/bandwidth-sdk/models/update_conference.rb | 4 +--- .../models/update_conference_member.rb | 4 +--- .../models/verify_code_request.rb | 4 +--- .../models/verify_code_response.rb | 4 +--- lib/bandwidth-sdk/models/voice_api_error.rb | 4 +--- .../models/voice_code_response.rb | 4 +--- 103 files changed, 144 insertions(+), 299 deletions(-) diff --git a/bandwidth-sdk.gemspec b/bandwidth-sdk.gemspec index 34bea6d3..aa7391d3 100644 --- a/bandwidth-sdk.gemspec +++ b/bandwidth-sdk.gemspec @@ -12,20 +12,20 @@ Generator version: 7.8.0 =end -$:.push File.expand_path("../lib", __FILE__) -require "bandwidth-sdk/version" +$:.push File.expand_path('../lib', __FILE__) +require 'bandwidth-sdk/version' Gem::Specification.new do |s| - s.name = "bandwidth-sdk" + s.name = 'bandwidth-sdk' s.version = Bandwidth::VERSION s.platform = Gem::Platform::RUBY - s.authors = ["Bandwidth"] - s.email = ["dx@bandwidth.com"] - s.homepage = "https://github.com/Bandwidth/ruby-sdk" - s.summary = "Bandwidth Ruby SDK" - s.description = "The official client SDK for Bandwidth's Voice, Messaging, MFA, and WebRTC APIs" - s.license = "MIT" - s.required_ruby_version = ">=2.7" + s.authors = ['Bandwidth'] + s.email = ['dx@bandwidth.com'] + s.homepage = 'https://github.com/Bandwidth/ruby-sdk' + s.summary = 'Bandwidth Ruby SDK' + s.description = 'The official client SDK for Bandwidth's Voice, Messaging, MFA, and WebRTC APIs' + s.license = 'MIT' + s.required_ruby_version = '>=2.7' s.metadata = {} s.add_runtime_dependency 'faraday', '>= 1.0.1', '< 3.0' @@ -38,5 +38,5 @@ Gem::Specification.new do |s| s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? } s.test_files = `find spec/*`.split("\n") s.executables = [] - s.require_paths = ["lib"] + s.require_paths = ['lib'] end diff --git a/lib/bandwidth-sdk/api/calls_api.rb b/lib/bandwidth-sdk/api/calls_api.rb index bf62a031..68fe7b6a 100644 --- a/lib/bandwidth-sdk/api/calls_api.rb +++ b/lib/bandwidth-sdk/api/calls_api.rb @@ -61,7 +61,7 @@ def create_call_with_http_info(account_id, create_call, opts = {}) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end # form parameters @@ -302,7 +302,7 @@ def update_call_with_http_info(account_id, call_id, update_call, opts = {}) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json', 'application/xml']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end # form parameters @@ -382,7 +382,7 @@ def update_call_bxml_with_http_info(account_id, call_id, body, opts = {}) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/xml']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end # form parameters diff --git a/lib/bandwidth-sdk/api/conferences_api.rb b/lib/bandwidth-sdk/api/conferences_api.rb index d9d41ce1..ca1ee830 100644 --- a/lib/bandwidth-sdk/api/conferences_api.rb +++ b/lib/bandwidth-sdk/api/conferences_api.rb @@ -516,7 +516,7 @@ def update_conference_with_http_info(account_id, conference_id, update_conferenc # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end # form parameters @@ -596,7 +596,7 @@ def update_conference_bxml_with_http_info(account_id, conference_id, body, opts # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/xml']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end # form parameters @@ -682,7 +682,7 @@ def update_conference_member_with_http_info(account_id, conference_id, member_id # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end # form parameters diff --git a/lib/bandwidth-sdk/api/media_api.rb b/lib/bandwidth-sdk/api/media_api.rb index 8b41ca1c..29cb823f 100644 --- a/lib/bandwidth-sdk/api/media_api.rb +++ b/lib/bandwidth-sdk/api/media_api.rb @@ -275,7 +275,7 @@ def upload_media_with_http_info(account_id, media_id, body, opts = {}) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json', 'application/ogg', 'application/pdf', 'application/rtf', 'application/zip', 'application/x-tar', 'application/xml', 'application/gzip', 'application/x-bzip2', 'application/x-gzip', 'application/smil', 'application/javascript', 'audio/mp4', 'audio/mpeg', 'audio/ogg', 'audio/flac', 'audio/webm', 'audio/wav', 'audio/amr', 'audio/3gpp', 'image/bmp', 'image/gif', 'image/jpeg', 'image/pjpeg', 'image/png', 'image/svg+xml', 'image/tiff', 'image/webp', 'image/x-icon', 'text/css', 'text/csv', 'text/calendar', 'text/plain', 'text/javascript', 'text/vcard', 'text/vnd.wap.wml', 'text/xml', 'video/avi', 'video/mp4', 'video/mpeg', 'video/ogg', 'video/quicktime', 'video/webm', 'video/x-ms-wmv']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end header_params[:'Content-Type'] = opts[:'content_type'] if !opts[:'content_type'].nil? header_params[:'Cache-Control'] = opts[:'cache_control'] if !opts[:'cache_control'].nil? diff --git a/lib/bandwidth-sdk/api/messages_api.rb b/lib/bandwidth-sdk/api/messages_api.rb index 85294bba..864f53f5 100644 --- a/lib/bandwidth-sdk/api/messages_api.rb +++ b/lib/bandwidth-sdk/api/messages_api.rb @@ -61,7 +61,7 @@ def create_message_with_http_info(account_id, message_request, opts = {}) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end # form parameters diff --git a/lib/bandwidth-sdk/api/mfa_api.rb b/lib/bandwidth-sdk/api/mfa_api.rb index 651a9c9a..e32a6438 100644 --- a/lib/bandwidth-sdk/api/mfa_api.rb +++ b/lib/bandwidth-sdk/api/mfa_api.rb @@ -61,7 +61,7 @@ def generate_messaging_code_with_http_info(account_id, code_request, opts = {}) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end # form parameters @@ -135,7 +135,7 @@ def generate_voice_code_with_http_info(account_id, code_request, opts = {}) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end # form parameters @@ -209,7 +209,7 @@ def verify_code_with_http_info(account_id, verify_code_request, opts = {}) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end # form parameters diff --git a/lib/bandwidth-sdk/api/phone_number_lookup_api.rb b/lib/bandwidth-sdk/api/phone_number_lookup_api.rb index d5c2003f..9bb83658 100644 --- a/lib/bandwidth-sdk/api/phone_number_lookup_api.rb +++ b/lib/bandwidth-sdk/api/phone_number_lookup_api.rb @@ -61,7 +61,7 @@ def create_lookup_with_http_info(account_id, lookup_request, opts = {}) # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end # form parameters diff --git a/lib/bandwidth-sdk/api/recordings_api.rb b/lib/bandwidth-sdk/api/recordings_api.rb index ff8a5eff..9df9bd1e 100644 --- a/lib/bandwidth-sdk/api/recordings_api.rb +++ b/lib/bandwidth-sdk/api/recordings_api.rb @@ -667,7 +667,7 @@ def transcribe_call_recording_with_http_info(account_id, call_id, recording_id, # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end # form parameters @@ -747,7 +747,7 @@ def update_call_recording_state_with_http_info(account_id, call_id, update_call_ # HTTP header 'Content-Type' content_type = @api_client.select_header_content_type(['application/json']) if !content_type.nil? - header_params['Content-Type'] = content_type + header_params['Content-Type'] = content_type end # form parameters diff --git a/lib/bandwidth-sdk/api_error.rb b/lib/bandwidth-sdk/api_error.rb index 6e230413..c4fd1a8b 100644 --- a/lib/bandwidth-sdk/api_error.rb +++ b/lib/bandwidth-sdk/api_error.rb @@ -43,7 +43,7 @@ def to_s def message if @message.nil? - msg = "Error message: the server returns an error" + msg = 'Error message: the server returns an error' else msg = @message end diff --git a/lib/bandwidth-sdk/configuration.rb b/lib/bandwidth-sdk/configuration.rb index a2fab6e4..3090faf3 100644 --- a/lib/bandwidth-sdk/configuration.rb +++ b/lib/bandwidth-sdk/configuration.rb @@ -621,6 +621,5 @@ def configure_middleware(connection) end end end - end end diff --git a/lib/bandwidth-sdk/models/account_statistics.rb b/lib/bandwidth-sdk/models/account_statistics.rb index 4bd9d54b..d4f03c86 100644 --- a/lib/bandwidth-sdk/models/account_statistics.rb +++ b/lib/bandwidth-sdk/models/account_statistics.rb @@ -52,7 +52,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::AccountStatistics` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::AccountStatistics` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -219,7 +219,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/answer_callback.rb b/lib/bandwidth-sdk/models/answer_callback.rb index ef8b4e62..69a86a7e 100644 --- a/lib/bandwidth-sdk/models/answer_callback.rb +++ b/lib/bandwidth-sdk/models/answer_callback.rb @@ -137,7 +137,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::AnswerCallback` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::AnswerCallback` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -364,7 +364,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/bridge_complete_callback.rb b/lib/bandwidth-sdk/models/bridge_complete_callback.rb index 54437162..dfe2c3ca 100644 --- a/lib/bandwidth-sdk/models/bridge_complete_callback.rb +++ b/lib/bandwidth-sdk/models/bridge_complete_callback.rb @@ -149,7 +149,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::BridgeCompleteCallback` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::BridgeCompleteCallback` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -386,7 +386,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/bridge_target_complete_callback.rb b/lib/bandwidth-sdk/models/bridge_target_complete_callback.rb index c1f9ee11..33235d33 100644 --- a/lib/bandwidth-sdk/models/bridge_target_complete_callback.rb +++ b/lib/bandwidth-sdk/models/bridge_target_complete_callback.rb @@ -132,7 +132,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::BridgeTargetCompleteCallback` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::BridgeTargetCompleteCallback` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -354,7 +354,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/call_direction_enum.rb b/lib/bandwidth-sdk/models/call_direction_enum.rb index 38ea785c..7c7aa20c 100644 --- a/lib/bandwidth-sdk/models/call_direction_enum.rb +++ b/lib/bandwidth-sdk/models/call_direction_enum.rb @@ -15,8 +15,8 @@ module Bandwidth class CallDirectionEnum - INBOUND = "inbound".freeze - OUTBOUND = "outbound".freeze + INBOUND = 'inbound'.freeze + OUTBOUND = 'outbound'.freeze def self.all_vars @all_vars ||= [INBOUND, OUTBOUND].freeze diff --git a/lib/bandwidth-sdk/models/call_recording_metadata.rb b/lib/bandwidth-sdk/models/call_recording_metadata.rb index a3f050b8..4df0d6ff 100644 --- a/lib/bandwidth-sdk/models/call_recording_metadata.rb +++ b/lib/bandwidth-sdk/models/call_recording_metadata.rb @@ -158,7 +158,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::CallRecordingMetadata` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::CallRecordingMetadata` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -410,7 +410,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/call_state.rb b/lib/bandwidth-sdk/models/call_state.rb index 41ec5e91..687ba026 100644 --- a/lib/bandwidth-sdk/models/call_state.rb +++ b/lib/bandwidth-sdk/models/call_state.rb @@ -163,7 +163,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::CallState` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::CallState` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -412,7 +412,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/call_state_enum.rb b/lib/bandwidth-sdk/models/call_state_enum.rb index 53dd061f..4535e63a 100644 --- a/lib/bandwidth-sdk/models/call_state_enum.rb +++ b/lib/bandwidth-sdk/models/call_state_enum.rb @@ -15,8 +15,8 @@ module Bandwidth class CallStateEnum - ACTIVE = "active".freeze - COMPLETED = "completed".freeze + ACTIVE = 'active'.freeze + COMPLETED = 'completed'.freeze def self.all_vars @all_vars ||= [ACTIVE, COMPLETED].freeze diff --git a/lib/bandwidth-sdk/models/call_transcription.rb b/lib/bandwidth-sdk/models/call_transcription.rb index 1f7f3d3d..c5d498bc 100644 --- a/lib/bandwidth-sdk/models/call_transcription.rb +++ b/lib/bandwidth-sdk/models/call_transcription.rb @@ -82,7 +82,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::CallTranscription` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::CallTranscription` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -287,7 +287,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/call_transcription_detected_language_enum.rb b/lib/bandwidth-sdk/models/call_transcription_detected_language_enum.rb index a2f4e317..d177547b 100644 --- a/lib/bandwidth-sdk/models/call_transcription_detected_language_enum.rb +++ b/lib/bandwidth-sdk/models/call_transcription_detected_language_enum.rb @@ -15,9 +15,9 @@ module Bandwidth class CallTranscriptionDetectedLanguageEnum - EN_US = "en-US".freeze - ES_US = "es-US".freeze - FR_FR = "fr-FR".freeze + EN_US = 'en-US'.freeze + ES_US = 'es-US'.freeze + FR_FR = 'fr-FR'.freeze def self.all_vars @all_vars ||= [EN_US, ES_US, FR_FR].freeze diff --git a/lib/bandwidth-sdk/models/call_transcription_metadata.rb b/lib/bandwidth-sdk/models/call_transcription_metadata.rb index ab846249..546b229b 100644 --- a/lib/bandwidth-sdk/models/call_transcription_metadata.rb +++ b/lib/bandwidth-sdk/models/call_transcription_metadata.rb @@ -57,7 +57,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::CallTranscriptionMetadata` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::CallTranscriptionMetadata` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -229,7 +229,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/call_transcription_response.rb b/lib/bandwidth-sdk/models/call_transcription_response.rb index 05c1f82b..0c20b9bf 100644 --- a/lib/bandwidth-sdk/models/call_transcription_response.rb +++ b/lib/bandwidth-sdk/models/call_transcription_response.rb @@ -61,7 +61,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::CallTranscriptionResponse` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::CallTranscriptionResponse` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -240,7 +240,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/call_transcription_track_enum.rb b/lib/bandwidth-sdk/models/call_transcription_track_enum.rb index b53c8c3d..d09ca316 100644 --- a/lib/bandwidth-sdk/models/call_transcription_track_enum.rb +++ b/lib/bandwidth-sdk/models/call_transcription_track_enum.rb @@ -15,8 +15,8 @@ module Bandwidth class CallTranscriptionTrackEnum - INBOUND = "inbound".freeze - OUTBOUND = "outbound".freeze + INBOUND = 'inbound'.freeze + OUTBOUND = 'outbound'.freeze def self.all_vars @all_vars ||= [INBOUND, OUTBOUND].freeze diff --git a/lib/bandwidth-sdk/models/callback_method_enum.rb b/lib/bandwidth-sdk/models/callback_method_enum.rb index 33be701d..432ab823 100644 --- a/lib/bandwidth-sdk/models/callback_method_enum.rb +++ b/lib/bandwidth-sdk/models/callback_method_enum.rb @@ -15,8 +15,8 @@ module Bandwidth class CallbackMethodEnum - GET = "GET".freeze - POST = "POST".freeze + GET = 'GET'.freeze + POST = 'POST'.freeze def self.all_vars @all_vars ||= [GET, POST].freeze diff --git a/lib/bandwidth-sdk/models/code_request.rb b/lib/bandwidth-sdk/models/code_request.rb index ac3a79e0..c248df15 100644 --- a/lib/bandwidth-sdk/models/code_request.rb +++ b/lib/bandwidth-sdk/models/code_request.rb @@ -72,7 +72,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::CodeRequest` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::CodeRequest` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -430,7 +430,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/conference.rb b/lib/bandwidth-sdk/models/conference.rb index fd4ad869..0ab8bf8e 100644 --- a/lib/bandwidth-sdk/models/conference.rb +++ b/lib/bandwidth-sdk/models/conference.rb @@ -108,7 +108,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::Conference` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::Conference` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -309,7 +309,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/conference_completed_callback.rb b/lib/bandwidth-sdk/models/conference_completed_callback.rb index 483e62ad..44d822a9 100644 --- a/lib/bandwidth-sdk/models/conference_completed_callback.rb +++ b/lib/bandwidth-sdk/models/conference_completed_callback.rb @@ -69,7 +69,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::ConferenceCompletedCallback` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::ConferenceCompletedCallback` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -251,7 +251,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/conference_created_callback.rb b/lib/bandwidth-sdk/models/conference_created_callback.rb index bd48b6cf..eb1a66ad 100644 --- a/lib/bandwidth-sdk/models/conference_created_callback.rb +++ b/lib/bandwidth-sdk/models/conference_created_callback.rb @@ -69,7 +69,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::ConferenceCreatedCallback` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::ConferenceCreatedCallback` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -251,7 +251,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/conference_member.rb b/lib/bandwidth-sdk/models/conference_member.rb index ffdb7d8e..71ac2b5b 100644 --- a/lib/bandwidth-sdk/models/conference_member.rb +++ b/lib/bandwidth-sdk/models/conference_member.rb @@ -73,7 +73,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::ConferenceMember` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::ConferenceMember` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -262,7 +262,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/conference_member_exit_callback.rb b/lib/bandwidth-sdk/models/conference_member_exit_callback.rb index 37d20ce4..f0f32f4a 100644 --- a/lib/bandwidth-sdk/models/conference_member_exit_callback.rb +++ b/lib/bandwidth-sdk/models/conference_member_exit_callback.rb @@ -84,7 +84,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::ConferenceMemberExitCallback` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::ConferenceMemberExitCallback` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -281,7 +281,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/conference_member_join_callback.rb b/lib/bandwidth-sdk/models/conference_member_join_callback.rb index 1b31dbe4..ad3a5416 100644 --- a/lib/bandwidth-sdk/models/conference_member_join_callback.rb +++ b/lib/bandwidth-sdk/models/conference_member_join_callback.rb @@ -84,7 +84,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::ConferenceMemberJoinCallback` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::ConferenceMemberJoinCallback` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -281,7 +281,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/conference_recording_available_callback.rb b/lib/bandwidth-sdk/models/conference_recording_available_callback.rb index 1ff9c176..0fda6447 100644 --- a/lib/bandwidth-sdk/models/conference_recording_available_callback.rb +++ b/lib/bandwidth-sdk/models/conference_recording_available_callback.rb @@ -136,7 +136,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::ConferenceRecordingAvailableCallback` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::ConferenceRecordingAvailableCallback` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -363,7 +363,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/conference_recording_metadata.rb b/lib/bandwidth-sdk/models/conference_recording_metadata.rb index 3dc34537..76233926 100644 --- a/lib/bandwidth-sdk/models/conference_recording_metadata.rb +++ b/lib/bandwidth-sdk/models/conference_recording_metadata.rb @@ -124,7 +124,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::ConferenceRecordingMetadata` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::ConferenceRecordingMetadata` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -341,7 +341,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/conference_redirect_callback.rb b/lib/bandwidth-sdk/models/conference_redirect_callback.rb index c27ae0c2..a6d3e28a 100644 --- a/lib/bandwidth-sdk/models/conference_redirect_callback.rb +++ b/lib/bandwidth-sdk/models/conference_redirect_callback.rb @@ -69,7 +69,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::ConferenceRedirectCallback` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::ConferenceRedirectCallback` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -251,7 +251,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/conference_state_enum.rb b/lib/bandwidth-sdk/models/conference_state_enum.rb index 7559250e..5c01c899 100644 --- a/lib/bandwidth-sdk/models/conference_state_enum.rb +++ b/lib/bandwidth-sdk/models/conference_state_enum.rb @@ -15,8 +15,8 @@ module Bandwidth class ConferenceStateEnum - ACTIVE = "active".freeze - COMPLETED = "completed".freeze + ACTIVE = 'active'.freeze + COMPLETED = 'completed'.freeze def self.all_vars @all_vars ||= [ACTIVE, COMPLETED].freeze diff --git a/lib/bandwidth-sdk/models/create_call.rb b/lib/bandwidth-sdk/models/create_call.rb index c658b085..0569ad38 100644 --- a/lib/bandwidth-sdk/models/create_call.rb +++ b/lib/bandwidth-sdk/models/create_call.rb @@ -181,7 +181,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::CreateCall` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::CreateCall` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -694,7 +694,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/create_call_response.rb b/lib/bandwidth-sdk/models/create_call_response.rb index fec6cdc4..b35994e5 100644 --- a/lib/bandwidth-sdk/models/create_call_response.rb +++ b/lib/bandwidth-sdk/models/create_call_response.rb @@ -178,7 +178,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::CreateCallResponse` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::CreateCallResponse` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -555,7 +555,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/create_lookup_response.rb b/lib/bandwidth-sdk/models/create_lookup_response.rb index 96103cac..fb69bf23 100644 --- a/lib/bandwidth-sdk/models/create_lookup_response.rb +++ b/lib/bandwidth-sdk/models/create_lookup_response.rb @@ -74,7 +74,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::CreateLookupResponse` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::CreateLookupResponse` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -241,7 +241,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/create_message_request_error.rb b/lib/bandwidth-sdk/models/create_message_request_error.rb index cc237838..12be3a00 100644 --- a/lib/bandwidth-sdk/models/create_message_request_error.rb +++ b/lib/bandwidth-sdk/models/create_message_request_error.rb @@ -54,7 +54,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::CreateMessageRequestError` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::CreateMessageRequestError` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -242,7 +242,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/deferred_result.rb b/lib/bandwidth-sdk/models/deferred_result.rb index 1c04a707..36c425f7 100644 --- a/lib/bandwidth-sdk/models/deferred_result.rb +++ b/lib/bandwidth-sdk/models/deferred_result.rb @@ -50,7 +50,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::DeferredResult` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::DeferredResult` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -217,7 +217,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/disconnect_callback.rb b/lib/bandwidth-sdk/models/disconnect_callback.rb index 13fa5825..021f105f 100644 --- a/lib/bandwidth-sdk/models/disconnect_callback.rb +++ b/lib/bandwidth-sdk/models/disconnect_callback.rb @@ -154,7 +154,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::DisconnectCallback` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::DisconnectCallback` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -396,7 +396,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/diversion.rb b/lib/bandwidth-sdk/models/diversion.rb index dbaa4169..2cb77aa7 100644 --- a/lib/bandwidth-sdk/models/diversion.rb +++ b/lib/bandwidth-sdk/models/diversion.rb @@ -77,7 +77,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::Diversion` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::Diversion` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -269,7 +269,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/dtmf_callback.rb b/lib/bandwidth-sdk/models/dtmf_callback.rb index b5d6f4da..28fa9d0a 100644 --- a/lib/bandwidth-sdk/models/dtmf_callback.rb +++ b/lib/bandwidth-sdk/models/dtmf_callback.rb @@ -152,7 +152,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::DtmfCallback` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::DtmfCallback` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -394,7 +394,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/field_error.rb b/lib/bandwidth-sdk/models/field_error.rb index b808b5c3..1f7c03f6 100644 --- a/lib/bandwidth-sdk/models/field_error.rb +++ b/lib/bandwidth-sdk/models/field_error.rb @@ -52,7 +52,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::FieldError` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::FieldError` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -219,7 +219,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/file_format_enum.rb b/lib/bandwidth-sdk/models/file_format_enum.rb index 36c03b9c..88926490 100644 --- a/lib/bandwidth-sdk/models/file_format_enum.rb +++ b/lib/bandwidth-sdk/models/file_format_enum.rb @@ -15,8 +15,8 @@ module Bandwidth class FileFormatEnum - MP3 = "mp3".freeze - WAV = "wav".freeze + MP3 = 'mp3'.freeze + WAV = 'wav'.freeze def self.all_vars @all_vars ||= [MP3, WAV].freeze diff --git a/lib/bandwidth-sdk/models/gather_callback.rb b/lib/bandwidth-sdk/models/gather_callback.rb index 1277b501..b410ebe3 100644 --- a/lib/bandwidth-sdk/models/gather_callback.rb +++ b/lib/bandwidth-sdk/models/gather_callback.rb @@ -157,7 +157,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::GatherCallback` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::GatherCallback` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -404,7 +404,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/inbound_message_callback.rb b/lib/bandwidth-sdk/models/inbound_message_callback.rb index 44d676bb..a29968d7 100644 --- a/lib/bandwidth-sdk/models/inbound_message_callback.rb +++ b/lib/bandwidth-sdk/models/inbound_message_callback.rb @@ -63,7 +63,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::InboundMessageCallback` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::InboundMessageCallback` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -280,7 +280,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/inbound_message_callback_message.rb b/lib/bandwidth-sdk/models/inbound_message_callback_message.rb index 6cfda971..9c99e4e4 100644 --- a/lib/bandwidth-sdk/models/inbound_message_callback_message.rb +++ b/lib/bandwidth-sdk/models/inbound_message_callback_message.rb @@ -113,7 +113,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::InboundMessageCallbackMessage` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::InboundMessageCallbackMessage` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -407,7 +407,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/initiate_callback.rb b/lib/bandwidth-sdk/models/initiate_callback.rb index 13bb300f..44c7780f 100644 --- a/lib/bandwidth-sdk/models/initiate_callback.rb +++ b/lib/bandwidth-sdk/models/initiate_callback.rb @@ -122,7 +122,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::InitiateCallback` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::InitiateCallback` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -339,7 +339,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/list_message_direction_enum.rb b/lib/bandwidth-sdk/models/list_message_direction_enum.rb index a33c5063..7255ff24 100644 --- a/lib/bandwidth-sdk/models/list_message_direction_enum.rb +++ b/lib/bandwidth-sdk/models/list_message_direction_enum.rb @@ -15,8 +15,8 @@ module Bandwidth class ListMessageDirectionEnum - INBOUND = "INBOUND".freeze - OUTBOUND = "OUTBOUND".freeze + INBOUND = 'INBOUND'.freeze + OUTBOUND = 'OUTBOUND'.freeze def self.all_vars @all_vars ||= [INBOUND, OUTBOUND].freeze diff --git a/lib/bandwidth-sdk/models/list_message_item.rb b/lib/bandwidth-sdk/models/list_message_item.rb index b98fc841..1a71f23b 100644 --- a/lib/bandwidth-sdk/models/list_message_item.rb +++ b/lib/bandwidth-sdk/models/list_message_item.rb @@ -152,7 +152,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::ListMessageItem` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::ListMessageItem` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -394,7 +394,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/lookup_request.rb b/lib/bandwidth-sdk/models/lookup_request.rb index ed55a70a..7466f122 100644 --- a/lib/bandwidth-sdk/models/lookup_request.rb +++ b/lib/bandwidth-sdk/models/lookup_request.rb @@ -47,7 +47,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::LookupRequest` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::LookupRequest` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -218,7 +218,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/lookup_result.rb b/lib/bandwidth-sdk/models/lookup_result.rb index 8052b66f..b701d414 100644 --- a/lib/bandwidth-sdk/models/lookup_result.rb +++ b/lib/bandwidth-sdk/models/lookup_result.rb @@ -88,7 +88,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::LookupResult` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::LookupResult` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -290,7 +290,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/lookup_status.rb b/lib/bandwidth-sdk/models/lookup_status.rb index 1fe1874c..3264a26d 100644 --- a/lib/bandwidth-sdk/models/lookup_status.rb +++ b/lib/bandwidth-sdk/models/lookup_status.rb @@ -84,7 +84,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::LookupStatus` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::LookupStatus` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -265,7 +265,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/lookup_status_enum.rb b/lib/bandwidth-sdk/models/lookup_status_enum.rb index 5ddfda5a..badcabfc 100644 --- a/lib/bandwidth-sdk/models/lookup_status_enum.rb +++ b/lib/bandwidth-sdk/models/lookup_status_enum.rb @@ -15,10 +15,10 @@ module Bandwidth class LookupStatusEnum - IN_PROGRESS = "IN_PROGRESS".freeze - COMPLETE = "COMPLETE".freeze - PARTIAL_COMPLETE = "PARTIAL_COMPLETE".freeze - FAILED = "FAILED".freeze + IN_PROGRESS = 'IN_PROGRESS'.freeze + COMPLETE = 'COMPLETE'.freeze + PARTIAL_COMPLETE = 'PARTIAL_COMPLETE'.freeze + FAILED = 'FAILED'.freeze def self.all_vars @all_vars ||= [IN_PROGRESS, COMPLETE, PARTIAL_COMPLETE, FAILED].freeze diff --git a/lib/bandwidth-sdk/models/machine_detection_complete_callback.rb b/lib/bandwidth-sdk/models/machine_detection_complete_callback.rb index 33e4792e..69675e73 100644 --- a/lib/bandwidth-sdk/models/machine_detection_complete_callback.rb +++ b/lib/bandwidth-sdk/models/machine_detection_complete_callback.rb @@ -137,7 +137,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::MachineDetectionCompleteCallback` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MachineDetectionCompleteCallback` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -364,7 +364,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/machine_detection_configuration.rb b/lib/bandwidth-sdk/models/machine_detection_configuration.rb index 7c19a5c2..7b61a7e3 100644 --- a/lib/bandwidth-sdk/models/machine_detection_configuration.rb +++ b/lib/bandwidth-sdk/models/machine_detection_configuration.rb @@ -151,7 +151,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::MachineDetectionConfiguration` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MachineDetectionConfiguration` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -489,7 +489,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/machine_detection_mode_enum.rb b/lib/bandwidth-sdk/models/machine_detection_mode_enum.rb index 9ccd4d6b..cd64e339 100644 --- a/lib/bandwidth-sdk/models/machine_detection_mode_enum.rb +++ b/lib/bandwidth-sdk/models/machine_detection_mode_enum.rb @@ -15,8 +15,8 @@ module Bandwidth class MachineDetectionModeEnum - SYNC = "sync".freeze - ASYNC = "async".freeze + SYNC = 'sync'.freeze + ASYNC = 'async'.freeze def self.all_vars @all_vars ||= [SYNC, ASYNC].freeze diff --git a/lib/bandwidth-sdk/models/machine_detection_result.rb b/lib/bandwidth-sdk/models/machine_detection_result.rb index ddd3feb4..42c57a7f 100644 --- a/lib/bandwidth-sdk/models/machine_detection_result.rb +++ b/lib/bandwidth-sdk/models/machine_detection_result.rb @@ -53,7 +53,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::MachineDetectionResult` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MachineDetectionResult` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -220,7 +220,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/media.rb b/lib/bandwidth-sdk/models/media.rb index 6d18862b..b939af38 100644 --- a/lib/bandwidth-sdk/models/media.rb +++ b/lib/bandwidth-sdk/models/media.rb @@ -54,7 +54,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::Media` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::Media` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -226,7 +226,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/message.rb b/lib/bandwidth-sdk/models/message.rb index d518dbe8..02172899 100644 --- a/lib/bandwidth-sdk/models/message.rb +++ b/lib/bandwidth-sdk/models/message.rb @@ -127,7 +127,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::Message` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::Message` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -373,7 +373,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/message_delivered_callback.rb b/lib/bandwidth-sdk/models/message_delivered_callback.rb index a76e12d3..8422a312 100644 --- a/lib/bandwidth-sdk/models/message_delivered_callback.rb +++ b/lib/bandwidth-sdk/models/message_delivered_callback.rb @@ -63,7 +63,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::MessageDeliveredCallback` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MessageDeliveredCallback` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -280,7 +280,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/message_delivered_callback_message.rb b/lib/bandwidth-sdk/models/message_delivered_callback_message.rb index a4b42bbb..a9ba4ca8 100644 --- a/lib/bandwidth-sdk/models/message_delivered_callback_message.rb +++ b/lib/bandwidth-sdk/models/message_delivered_callback_message.rb @@ -113,7 +113,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::MessageDeliveredCallbackMessage` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MessageDeliveredCallbackMessage` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -414,7 +414,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/message_direction_enum.rb b/lib/bandwidth-sdk/models/message_direction_enum.rb index 5392bd73..86aa0cc0 100644 --- a/lib/bandwidth-sdk/models/message_direction_enum.rb +++ b/lib/bandwidth-sdk/models/message_direction_enum.rb @@ -15,8 +15,8 @@ module Bandwidth class MessageDirectionEnum - IN = "in".freeze - OUT = "out".freeze + IN = 'in'.freeze + OUT = 'out'.freeze def self.all_vars @all_vars ||= [IN, OUT].freeze diff --git a/lib/bandwidth-sdk/models/message_failed_callback.rb b/lib/bandwidth-sdk/models/message_failed_callback.rb index 568e190d..0fae1e55 100644 --- a/lib/bandwidth-sdk/models/message_failed_callback.rb +++ b/lib/bandwidth-sdk/models/message_failed_callback.rb @@ -67,7 +67,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::MessageFailedCallback` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MessageFailedCallback` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -296,7 +296,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/message_failed_callback_message.rb b/lib/bandwidth-sdk/models/message_failed_callback_message.rb index 0293ba52..be2e2c2d 100644 --- a/lib/bandwidth-sdk/models/message_failed_callback_message.rb +++ b/lib/bandwidth-sdk/models/message_failed_callback_message.rb @@ -113,7 +113,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::MessageFailedCallbackMessage` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MessageFailedCallbackMessage` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -414,7 +414,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/message_request.rb b/lib/bandwidth-sdk/models/message_request.rb index c51a7944..829f918a 100644 --- a/lib/bandwidth-sdk/models/message_request.rb +++ b/lib/bandwidth-sdk/models/message_request.rb @@ -103,7 +103,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::MessageRequest` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MessageRequest` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -354,7 +354,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/message_sending_callback.rb b/lib/bandwidth-sdk/models/message_sending_callback.rb index d78c984f..79e5368e 100644 --- a/lib/bandwidth-sdk/models/message_sending_callback.rb +++ b/lib/bandwidth-sdk/models/message_sending_callback.rb @@ -63,7 +63,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::MessageSendingCallback` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MessageSendingCallback` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -280,7 +280,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/message_sending_callback_message.rb b/lib/bandwidth-sdk/models/message_sending_callback_message.rb index bb7023c6..eac3ed26 100644 --- a/lib/bandwidth-sdk/models/message_sending_callback_message.rb +++ b/lib/bandwidth-sdk/models/message_sending_callback_message.rb @@ -113,7 +113,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::MessageSendingCallbackMessage` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MessageSendingCallbackMessage` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -414,7 +414,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/message_status_enum.rb b/lib/bandwidth-sdk/models/message_status_enum.rb index 940bd215..148292a7 100644 --- a/lib/bandwidth-sdk/models/message_status_enum.rb +++ b/lib/bandwidth-sdk/models/message_status_enum.rb @@ -15,14 +15,14 @@ module Bandwidth class MessageStatusEnum - RECEIVED = "RECEIVED".freeze - QUEUED = "QUEUED".freeze - SENDING = "SENDING".freeze - SENT = "SENT".freeze - FAILED = "FAILED".freeze - DELIVERED = "DELIVERED".freeze - ACCEPTED = "ACCEPTED".freeze - UNDELIVERED = "UNDELIVERED".freeze + RECEIVED = 'RECEIVED'.freeze + QUEUED = 'QUEUED'.freeze + SENDING = 'SENDING'.freeze + SENT = 'SENT'.freeze + FAILED = 'FAILED'.freeze + DELIVERED = 'DELIVERED'.freeze + ACCEPTED = 'ACCEPTED'.freeze + UNDELIVERED = 'UNDELIVERED'.freeze def self.all_vars @all_vars ||= [RECEIVED, QUEUED, SENDING, SENT, FAILED, DELIVERED, ACCEPTED, UNDELIVERED].freeze diff --git a/lib/bandwidth-sdk/models/message_type_enum.rb b/lib/bandwidth-sdk/models/message_type_enum.rb index f2c3a527..158eceaa 100644 --- a/lib/bandwidth-sdk/models/message_type_enum.rb +++ b/lib/bandwidth-sdk/models/message_type_enum.rb @@ -15,8 +15,8 @@ module Bandwidth class MessageTypeEnum - SMS = "sms".freeze - MMS = "mms".freeze + SMS = 'sms'.freeze + MMS = 'mms'.freeze def self.all_vars @all_vars ||= [SMS, MMS].freeze diff --git a/lib/bandwidth-sdk/models/messages_list.rb b/lib/bandwidth-sdk/models/messages_list.rb index fa7161c6..e1eacd7d 100644 --- a/lib/bandwidth-sdk/models/messages_list.rb +++ b/lib/bandwidth-sdk/models/messages_list.rb @@ -55,7 +55,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::MessagesList` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MessagesList` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -229,7 +229,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/messaging_code_response.rb b/lib/bandwidth-sdk/models/messaging_code_response.rb index 2f4b5748..f6cbc716 100644 --- a/lib/bandwidth-sdk/models/messaging_code_response.rb +++ b/lib/bandwidth-sdk/models/messaging_code_response.rb @@ -47,7 +47,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::MessagingCodeResponse` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MessagingCodeResponse` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -209,7 +209,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/messaging_request_error.rb b/lib/bandwidth-sdk/models/messaging_request_error.rb index 8c7e0f46..af181381 100644 --- a/lib/bandwidth-sdk/models/messaging_request_error.rb +++ b/lib/bandwidth-sdk/models/messaging_request_error.rb @@ -50,7 +50,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::MessagingRequestError` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MessagingRequestError` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -231,7 +231,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/mfa_forbidden_request_error.rb b/lib/bandwidth-sdk/models/mfa_forbidden_request_error.rb index 7d300887..74b288e1 100644 --- a/lib/bandwidth-sdk/models/mfa_forbidden_request_error.rb +++ b/lib/bandwidth-sdk/models/mfa_forbidden_request_error.rb @@ -47,7 +47,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::MfaForbiddenRequestError` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MfaForbiddenRequestError` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -209,7 +209,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/mfa_request_error.rb b/lib/bandwidth-sdk/models/mfa_request_error.rb index 8cd876f2..40e3b912 100644 --- a/lib/bandwidth-sdk/models/mfa_request_error.rb +++ b/lib/bandwidth-sdk/models/mfa_request_error.rb @@ -52,7 +52,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::MfaRequestError` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MfaRequestError` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -219,7 +219,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/mfa_unauthorized_request_error.rb b/lib/bandwidth-sdk/models/mfa_unauthorized_request_error.rb index 663d6d6e..80b47460 100644 --- a/lib/bandwidth-sdk/models/mfa_unauthorized_request_error.rb +++ b/lib/bandwidth-sdk/models/mfa_unauthorized_request_error.rb @@ -47,7 +47,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::MfaUnauthorizedRequestError` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::MfaUnauthorizedRequestError` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -209,7 +209,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/page_info.rb b/lib/bandwidth-sdk/models/page_info.rb index 8a15bfdd..5722c302 100644 --- a/lib/bandwidth-sdk/models/page_info.rb +++ b/lib/bandwidth-sdk/models/page_info.rb @@ -62,7 +62,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::PageInfo` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::PageInfo` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -239,7 +239,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/priority_enum.rb b/lib/bandwidth-sdk/models/priority_enum.rb index 020e8fdb..537efc58 100644 --- a/lib/bandwidth-sdk/models/priority_enum.rb +++ b/lib/bandwidth-sdk/models/priority_enum.rb @@ -15,8 +15,8 @@ module Bandwidth class PriorityEnum - DEFAULT = "default".freeze - HIGH = "high".freeze + DEFAULT = 'default'.freeze + HIGH = 'high'.freeze def self.all_vars @all_vars ||= [DEFAULT, HIGH].freeze diff --git a/lib/bandwidth-sdk/models/recording_available_callback.rb b/lib/bandwidth-sdk/models/recording_available_callback.rb index d940d0bc..65201b01 100644 --- a/lib/bandwidth-sdk/models/recording_available_callback.rb +++ b/lib/bandwidth-sdk/models/recording_available_callback.rb @@ -176,7 +176,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::RecordingAvailableCallback` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::RecordingAvailableCallback` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -443,7 +443,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/recording_complete_callback.rb b/lib/bandwidth-sdk/models/recording_complete_callback.rb index 1c41d878..810a36c6 100644 --- a/lib/bandwidth-sdk/models/recording_complete_callback.rb +++ b/lib/bandwidth-sdk/models/recording_complete_callback.rb @@ -177,7 +177,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::RecordingCompleteCallback` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::RecordingCompleteCallback` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -444,7 +444,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/recording_state_enum.rb b/lib/bandwidth-sdk/models/recording_state_enum.rb index 7e2818fd..7827a386 100644 --- a/lib/bandwidth-sdk/models/recording_state_enum.rb +++ b/lib/bandwidth-sdk/models/recording_state_enum.rb @@ -15,8 +15,8 @@ module Bandwidth class RecordingStateEnum - PAUSED = "paused".freeze - RECORDING = "recording".freeze + PAUSED = 'paused'.freeze + RECORDING = 'recording'.freeze def self.all_vars @all_vars ||= [PAUSED, RECORDING].freeze diff --git a/lib/bandwidth-sdk/models/recording_transcription_metadata.rb b/lib/bandwidth-sdk/models/recording_transcription_metadata.rb index 106cf96c..5c1ed1e8 100644 --- a/lib/bandwidth-sdk/models/recording_transcription_metadata.rb +++ b/lib/bandwidth-sdk/models/recording_transcription_metadata.rb @@ -63,7 +63,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::RecordingTranscriptionMetadata` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::RecordingTranscriptionMetadata` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -240,7 +240,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/recording_transcriptions.rb b/lib/bandwidth-sdk/models/recording_transcriptions.rb index 6e7872fb..d2821ab7 100644 --- a/lib/bandwidth-sdk/models/recording_transcriptions.rb +++ b/lib/bandwidth-sdk/models/recording_transcriptions.rb @@ -46,7 +46,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::RecordingTranscriptions` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::RecordingTranscriptions` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -210,7 +210,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/redirect_callback.rb b/lib/bandwidth-sdk/models/redirect_callback.rb index abf8a078..7b7da865 100644 --- a/lib/bandwidth-sdk/models/redirect_callback.rb +++ b/lib/bandwidth-sdk/models/redirect_callback.rb @@ -147,7 +147,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::RedirectCallback` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::RedirectCallback` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -384,7 +384,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/redirect_method_enum.rb b/lib/bandwidth-sdk/models/redirect_method_enum.rb index d829b0b6..d71543d5 100644 --- a/lib/bandwidth-sdk/models/redirect_method_enum.rb +++ b/lib/bandwidth-sdk/models/redirect_method_enum.rb @@ -15,8 +15,8 @@ module Bandwidth class RedirectMethodEnum - GET = "GET".freeze - POST = "POST".freeze + GET = 'GET'.freeze + POST = 'POST'.freeze def self.all_vars @all_vars ||= [GET, POST].freeze diff --git a/lib/bandwidth-sdk/models/stir_shaken.rb b/lib/bandwidth-sdk/models/stir_shaken.rb index 7f2fa2c9..10f8b845 100644 --- a/lib/bandwidth-sdk/models/stir_shaken.rb +++ b/lib/bandwidth-sdk/models/stir_shaken.rb @@ -57,7 +57,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::StirShaken` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::StirShaken` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -229,7 +229,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/tag.rb b/lib/bandwidth-sdk/models/tag.rb index 1b20b406..af4bdf09 100644 --- a/lib/bandwidth-sdk/models/tag.rb +++ b/lib/bandwidth-sdk/models/tag.rb @@ -50,7 +50,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::Tag` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::Tag` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -217,7 +217,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/tn_lookup_request_error.rb b/lib/bandwidth-sdk/models/tn_lookup_request_error.rb index 02e26013..8e23b488 100644 --- a/lib/bandwidth-sdk/models/tn_lookup_request_error.rb +++ b/lib/bandwidth-sdk/models/tn_lookup_request_error.rb @@ -47,7 +47,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::TnLookupRequestError` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::TnLookupRequestError` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -209,7 +209,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/transcribe_recording.rb b/lib/bandwidth-sdk/models/transcribe_recording.rb index 1f3be24d..7a5a4b2d 100644 --- a/lib/bandwidth-sdk/models/transcribe_recording.rb +++ b/lib/bandwidth-sdk/models/transcribe_recording.rb @@ -104,7 +104,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::TranscribeRecording` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::TranscribeRecording` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -356,7 +356,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/transcription.rb b/lib/bandwidth-sdk/models/transcription.rb index 3fd78699..ca227c50 100644 --- a/lib/bandwidth-sdk/models/transcription.rb +++ b/lib/bandwidth-sdk/models/transcription.rb @@ -52,7 +52,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::Transcription` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::Transcription` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -219,7 +219,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/transcription_available_callback.rb b/lib/bandwidth-sdk/models/transcription_available_callback.rb index af5d26d5..8849a3db 100644 --- a/lib/bandwidth-sdk/models/transcription_available_callback.rb +++ b/lib/bandwidth-sdk/models/transcription_available_callback.rb @@ -170,7 +170,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::TranscriptionAvailableCallback` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::TranscriptionAvailableCallback` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -432,7 +432,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/transfer_answer_callback.rb b/lib/bandwidth-sdk/models/transfer_answer_callback.rb index 9652b5de..774c3b1e 100644 --- a/lib/bandwidth-sdk/models/transfer_answer_callback.rb +++ b/lib/bandwidth-sdk/models/transfer_answer_callback.rb @@ -142,7 +142,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::TransferAnswerCallback` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::TransferAnswerCallback` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -374,7 +374,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/transfer_complete_callback.rb b/lib/bandwidth-sdk/models/transfer_complete_callback.rb index 322a4a43..74720560 100644 --- a/lib/bandwidth-sdk/models/transfer_complete_callback.rb +++ b/lib/bandwidth-sdk/models/transfer_complete_callback.rb @@ -159,7 +159,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::TransferCompleteCallback` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::TransferCompleteCallback` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -406,7 +406,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/transfer_disconnect_callback.rb b/lib/bandwidth-sdk/models/transfer_disconnect_callback.rb index 2c56275c..b1374129 100644 --- a/lib/bandwidth-sdk/models/transfer_disconnect_callback.rb +++ b/lib/bandwidth-sdk/models/transfer_disconnect_callback.rb @@ -169,7 +169,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::TransferDisconnectCallback` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::TransferDisconnectCallback` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -426,7 +426,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/update_call.rb b/lib/bandwidth-sdk/models/update_call.rb index 37733c55..783d7850 100644 --- a/lib/bandwidth-sdk/models/update_call.rb +++ b/lib/bandwidth-sdk/models/update_call.rb @@ -121,7 +121,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::UpdateCall` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::UpdateCall` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -409,7 +409,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/update_call_recording.rb b/lib/bandwidth-sdk/models/update_call_recording.rb index fe066850..994f01e0 100644 --- a/lib/bandwidth-sdk/models/update_call_recording.rb +++ b/lib/bandwidth-sdk/models/update_call_recording.rb @@ -68,7 +68,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::UpdateCallRecording` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::UpdateCallRecording` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -237,7 +237,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/update_conference.rb b/lib/bandwidth-sdk/models/update_conference.rb index 24436689..7b72726b 100644 --- a/lib/bandwidth-sdk/models/update_conference.rb +++ b/lib/bandwidth-sdk/models/update_conference.rb @@ -115,7 +115,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::UpdateConference` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::UpdateConference` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -383,7 +383,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/update_conference_member.rb b/lib/bandwidth-sdk/models/update_conference_member.rb index 0c308a96..cfacf093 100644 --- a/lib/bandwidth-sdk/models/update_conference_member.rb +++ b/lib/bandwidth-sdk/models/update_conference_member.rb @@ -58,7 +58,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::UpdateConferenceMember` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::UpdateConferenceMember` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -232,7 +232,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/verify_code_request.rb b/lib/bandwidth-sdk/models/verify_code_request.rb index 4a0d37de..fb2958fb 100644 --- a/lib/bandwidth-sdk/models/verify_code_request.rb +++ b/lib/bandwidth-sdk/models/verify_code_request.rb @@ -62,7 +62,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::VerifyCodeRequest` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::VerifyCodeRequest` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -337,7 +337,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/verify_code_response.rb b/lib/bandwidth-sdk/models/verify_code_response.rb index 239cf34b..67587a6b 100644 --- a/lib/bandwidth-sdk/models/verify_code_response.rb +++ b/lib/bandwidth-sdk/models/verify_code_response.rb @@ -47,7 +47,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::VerifyCodeResponse` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::VerifyCodeResponse` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -209,7 +209,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/voice_api_error.rb b/lib/bandwidth-sdk/models/voice_api_error.rb index d77403c8..4a31ee3a 100644 --- a/lib/bandwidth-sdk/models/voice_api_error.rb +++ b/lib/bandwidth-sdk/models/voice_api_error.rb @@ -55,7 +55,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::VoiceApiError` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::VoiceApiError` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -227,7 +227,5 @@ def _to_hash(value) value end end - end - end diff --git a/lib/bandwidth-sdk/models/voice_code_response.rb b/lib/bandwidth-sdk/models/voice_code_response.rb index 6437011d..fad8c855 100644 --- a/lib/bandwidth-sdk/models/voice_code_response.rb +++ b/lib/bandwidth-sdk/models/voice_code_response.rb @@ -47,7 +47,7 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Bandwidth::VoiceCodeResponse` initialize method" + fail ArgumentError, 'The input argument (attributes) must be a hash in `Bandwidth::VoiceCodeResponse` initialize method' end # check to see if the attribute exists and convert string to symbol for hash key @@ -209,7 +209,5 @@ def _to_hash(value) value end end - end - end