From 545f1624dd1a8bd932573c3162b4576446c58b82 Mon Sep 17 00:00:00 2001 From: DX-Bandwidth Date: Tue, 24 Sep 2024 14:07:39 +0000 Subject: [PATCH] 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 34bea6d..aa7391d 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 1bf576a..876a329 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']) 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 d9d41ce..ca1ee83 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 8b41ca1..29cb823 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 85294bb..864f53f 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 651a9c9..e32a643 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 d5c2003..9bb8365 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 ff8a5ef..9df9bd1 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 6e23041..c4fd1a8 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 a2fab6e..3090faf 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 4bd9d54..d4f03c8 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 ef8b4e6..69a86a7 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 5443716..dfe2c3c 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 c1f9ee1..33235d3 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 38ea785..7c7aa20 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 a3f050b..4df0d6f 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 41ec5e9..687ba02 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 53dd061..4535e63 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 1f7f3d3..c5d498b 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 a2f4e31..d177547 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 ab84624..546b229 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 05c1f82..0c20b9b 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 b53c8c3..d09ca31 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 33be701..432ab82 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 ac3a79e..c248df1 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 fd4ad86..0ab8bf8 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 483e62a..44d822a 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 bd48b6c..eb1a66a 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 ffdb7d8..71ac2b5 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 37d20ce..f0f32f4 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 1b31dbe..ad3a541 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 1ff9c17..0fda644 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 3dc3453..7623392 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 c27ae0c..a6d3e28 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 7559250..5c01c89 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 c658b08..0569ad3 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 fec6cdc..b35994e 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 96103ca..fb69bf2 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 cc23783..12be3a0 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 1c04a70..36c425f 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 13fa582..021f105 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 dbaa416..2cb77aa 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 b5d6f4d..28fa9d0 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 b808b5c..1f7c03f 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 36c03b9..8892649 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 1277b50..b410ebe 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 44d676b..a29968d 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 6cfda97..9c99e4e 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 13bb300..44c7780 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 a33c506..7255ff2 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 b98fc84..1a71f23 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 ed55a70..7466f12 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 8052b66..b701d41 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 1fe1874..3264a26 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 5ddfda5..badcabf 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 33e4792..69675e7 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 7c19a5c..7b61a7e 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 9ccd4d6..cd64e33 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 ddd3feb..42c57a7 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 6d18862..b939af3 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 d518dbe..0217289 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 a76e12d..8422a31 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 a4b42bb..a9ba4ca 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 5392bd7..86aa0cc 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 568e190..0fae1e5 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 0293ba5..be2e2c2 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 c51a794..829f918 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 d78c984..79e5368 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 bb7023c..eac3ed2 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 940bd21..148292a 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 f2c3a52..158ecea 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 fa7161c..e1eacd7 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 2f4b574..f6cbc71 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 8c7e0f4..af18138 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 7d30088..74b288e 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 8cd876f..40e3b91 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 663d6d6..80b4746 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 8a15bfd..5722c30 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 020e8fd..537efc5 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 d940d0b..65201b0 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 1c41d87..810a36c 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 7e2818f..7827a38 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 106cf96..5c1ed1e 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 6e7872f..d2821ab 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 abf8a07..7b7da86 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 d829b0b..d71543d 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 7f2fa2c..10f8b84 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 1b20b40..af4bdf0 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 02e2601..8e23b48 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 1f3be24..7a5a4b2 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 3fd7869..ca227c5 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 af5d26d..8849a3d 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 9652b5d..774c3b1 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 322a4a4..7472056 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 2c56275..b137412 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 37733c5..783d785 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 fe06685..994f01e 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 2443668..7b72726 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 0c308a9..cfacf09 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 4a0d37d..fb2958f 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 239cf34..67587a6 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 d77403c..4a31ee3 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 6437011..fad8c85 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