lib/bandwidth/configuration.rb in bandwidth-sdk-6.2.0 vs lib/bandwidth/configuration.rb in bandwidth-sdk-7.0.0
- old
+ new
@@ -15,11 +15,11 @@
# An enum for API servers.
class Server
SERVER = [
DEFAULT = 'default'.freeze,
MESSAGINGDEFAULT = 'MessagingDefault'.freeze,
- TWOFACTORAUTHDEFAULT = 'TwoFactorAuthDefault'.freeze,
+ MULTIFACTORAUTHDEFAULT = 'MultiFactorAuthDefault'.freeze,
PHONENUMBERLOOKUPDEFAULT = 'PhoneNumberLookupDefault'.freeze,
VOICEDEFAULT = 'VoiceDefault'.freeze,
WEBRTCDEFAULT = 'WebRtcDefault'.freeze
].freeze
end
@@ -37,12 +37,12 @@
attr_reader :retry_methods
attr_reader :environment
attr_reader :base_url
attr_reader :messaging_basic_auth_user_name
attr_reader :messaging_basic_auth_password
- attr_reader :two_factor_auth_basic_auth_user_name
- attr_reader :two_factor_auth_basic_auth_password
+ attr_reader :multi_factor_auth_basic_auth_user_name
+ attr_reader :multi_factor_auth_basic_auth_password
attr_reader :phone_number_lookup_basic_auth_user_name
attr_reader :phone_number_lookup_basic_auth_password
attr_reader :voice_basic_auth_user_name
attr_reader :voice_basic_auth_password
attr_reader :web_rtc_basic_auth_user_name
@@ -58,12 +58,12 @@
retry_methods: %i[get put get put],
environment: Environment::PRODUCTION,
base_url: 'https://www.example.com',
messaging_basic_auth_user_name: 'TODO: Replace',
messaging_basic_auth_password: 'TODO: Replace',
- two_factor_auth_basic_auth_user_name: 'TODO: Replace',
- two_factor_auth_basic_auth_password: 'TODO: Replace',
+ multi_factor_auth_basic_auth_user_name: 'TODO: Replace',
+ multi_factor_auth_basic_auth_password: 'TODO: Replace',
phone_number_lookup_basic_auth_user_name: 'TODO: Replace',
phone_number_lookup_basic_auth_password: 'TODO: Replace',
voice_basic_auth_user_name: 'TODO: Replace',
voice_basic_auth_password: 'TODO: Replace',
web_rtc_basic_auth_user_name: 'TODO: Replace',
@@ -98,14 +98,14 @@
# The password to use with basic authentication
@messaging_basic_auth_password = messaging_basic_auth_password
# The username to use with basic authentication
- @two_factor_auth_basic_auth_user_name = two_factor_auth_basic_auth_user_name
+ @multi_factor_auth_basic_auth_user_name = multi_factor_auth_basic_auth_user_name
# The password to use with basic authentication
- @two_factor_auth_basic_auth_password = two_factor_auth_basic_auth_password
+ @multi_factor_auth_basic_auth_password = multi_factor_auth_basic_auth_password
# The username to use with basic authentication
@phone_number_lookup_basic_auth_user_name = phone_number_lookup_basic_auth_user_name
# The password to use with basic authentication
@@ -130,12 +130,12 @@
def clone_with(timeout: nil, max_retries: nil, retry_interval: nil,
backoff_factor: nil, retry_statuses: nil, retry_methods: nil,
environment: nil, base_url: nil,
messaging_basic_auth_user_name: nil,
messaging_basic_auth_password: nil,
- two_factor_auth_basic_auth_user_name: nil,
- two_factor_auth_basic_auth_password: nil,
+ multi_factor_auth_basic_auth_user_name: nil,
+ multi_factor_auth_basic_auth_password: nil,
phone_number_lookup_basic_auth_user_name: nil,
phone_number_lookup_basic_auth_password: nil,
voice_basic_auth_user_name: nil,
voice_basic_auth_password: nil,
web_rtc_basic_auth_user_name: nil,
@@ -148,12 +148,12 @@
retry_methods ||= self.retry_methods
environment ||= self.environment
base_url ||= self.base_url
messaging_basic_auth_user_name ||= self.messaging_basic_auth_user_name
messaging_basic_auth_password ||= self.messaging_basic_auth_password
- two_factor_auth_basic_auth_user_name ||= self.two_factor_auth_basic_auth_user_name
- two_factor_auth_basic_auth_password ||= self.two_factor_auth_basic_auth_password
+ multi_factor_auth_basic_auth_user_name ||= self.multi_factor_auth_basic_auth_user_name
+ multi_factor_auth_basic_auth_password ||= self.multi_factor_auth_basic_auth_password
phone_number_lookup_basic_auth_user_name ||= self.phone_number_lookup_basic_auth_user_name
phone_number_lookup_basic_auth_password ||= self.phone_number_lookup_basic_auth_password
voice_basic_auth_user_name ||= self.voice_basic_auth_user_name
voice_basic_auth_password ||= self.voice_basic_auth_password
web_rtc_basic_auth_user_name ||= self.web_rtc_basic_auth_user_name
@@ -164,12 +164,12 @@
retry_interval: retry_interval, backoff_factor: backoff_factor,
retry_statuses: retry_statuses, retry_methods: retry_methods,
environment: environment, base_url: base_url,
messaging_basic_auth_user_name: messaging_basic_auth_user_name,
messaging_basic_auth_password: messaging_basic_auth_password,
- two_factor_auth_basic_auth_user_name: two_factor_auth_basic_auth_user_name,
- two_factor_auth_basic_auth_password: two_factor_auth_basic_auth_password,
+ multi_factor_auth_basic_auth_user_name: multi_factor_auth_basic_auth_user_name,
+ multi_factor_auth_basic_auth_password: multi_factor_auth_basic_auth_password,
phone_number_lookup_basic_auth_user_name: phone_number_lookup_basic_auth_user_name,
phone_number_lookup_basic_auth_password: phone_number_lookup_basic_auth_password,
voice_basic_auth_user_name: voice_basic_auth_user_name,
voice_basic_auth_password: voice_basic_auth_password,
web_rtc_basic_auth_user_name: web_rtc_basic_auth_user_name,
@@ -188,18 +188,18 @@
# All the environments the SDK can run in.
ENVIRONMENTS = {
Environment::PRODUCTION => {
Server::DEFAULT => 'api.bandwidth.com',
Server::MESSAGINGDEFAULT => 'https://messaging.bandwidth.com/api/v2',
- Server::TWOFACTORAUTHDEFAULT => 'https://mfa.bandwidth.com/api/v1',
+ Server::MULTIFACTORAUTHDEFAULT => 'https://mfa.bandwidth.com/api/v1',
Server::PHONENUMBERLOOKUPDEFAULT => 'https://numbers.bandwidth.com/api/v1',
Server::VOICEDEFAULT => 'https://voice.bandwidth.com',
Server::WEBRTCDEFAULT => 'https://api.webrtc.bandwidth.com/v1'
},
Environment::CUSTOM => {
Server::DEFAULT => '{base_url}',
Server::MESSAGINGDEFAULT => '{base_url}',
- Server::TWOFACTORAUTHDEFAULT => '{base_url}',
+ Server::MULTIFACTORAUTHDEFAULT => '{base_url}',
Server::PHONENUMBERLOOKUPDEFAULT => '{base_url}',
Server::VOICEDEFAULT => '{base_url}',
Server::WEBRTCDEFAULT => '{base_url}'
}
}.freeze