From ea93a499f5638fd5bdb81242033b40c1b9633716 Mon Sep 17 00:00:00 2001 From: ab_sabaa Date: Fri, 14 May 2021 11:02:20 -0700 Subject: [PATCH] Rename to AZURE_PHONE_NUMBER --- .../samples/get_purchased_phone_number_sample.py | 4 ++-- .../samples/get_purchased_phone_number_sample_async.py | 4 ++-- .../samples/release_phone_number_sample.py | 4 ++-- .../samples/release_phone_number_sample_async.py | 4 ++-- .../samples/update_phone_number_capabilities_sample.py | 4 ++-- .../samples/update_phone_number_capabilities_sample_async.py | 4 ++-- .../test/test_phone_number_administration_client.py | 2 +- .../test/test_phone_number_administration_client_async.py | 2 +- .../samples/send_sms_to_multiple_recipients_sample.py | 4 ++-- .../samples/send_sms_to_multiple_recipients_sample_async.py | 4 ++-- .../samples/send_sms_to_single_recipient_sample.py | 4 ++-- .../samples/send_sms_to_single_recipient_sample_async.py | 4 ++-- .../samples/sms_token_credential_auth_sample.py | 4 ++-- .../samples/sms_token_credential_auth_sample_async.py | 4 ++-- .../azure-communication-sms/tests/test_sms_client_e2e.py | 2 +- .../tests/test_sms_client_e2e_async.py | 2 +- 16 files changed, 28 insertions(+), 28 deletions(-) diff --git a/sdk/communication/azure-communication-phonenumbers/samples/get_purchased_phone_number_sample.py b/sdk/communication/azure-communication-phonenumbers/samples/get_purchased_phone_number_sample.py index c6a94e5b3b90..562eff620cef 100644 --- a/sdk/communication/azure-communication-phonenumbers/samples/get_purchased_phone_number_sample.py +++ b/sdk/communication/azure-communication-phonenumbers/samples/get_purchased_phone_number_sample.py @@ -15,7 +15,7 @@ Set the environment variables with your own values before running the sample: 1) COMMUNICATION_SAMPLES_CONNECTION_STRING - The connection string including your endpoint and access key of your Azure Communication Service - 2) AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER - The phone number you want to get its information + 2) AZURE_PHONE_NUMBER - The phone number you want to get its information """ import os @@ -24,7 +24,7 @@ ) connection_str = os.getenv('COMMUNICATION_SAMPLES_CONNECTION_STRING') -phone_number = os.getenv("AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER") # e.g. "+18001234567" +phone_number = os.getenv("AZURE_PHONE_NUMBER") # e.g. "+18001234567" phone_numbers_client = PhoneNumbersClient.from_connection_string(connection_str) def get_purchased_phone_number_information(): diff --git a/sdk/communication/azure-communication-phonenumbers/samples/get_purchased_phone_number_sample_async.py b/sdk/communication/azure-communication-phonenumbers/samples/get_purchased_phone_number_sample_async.py index 2baeb4f8dff8..3f39e5b89180 100644 --- a/sdk/communication/azure-communication-phonenumbers/samples/get_purchased_phone_number_sample_async.py +++ b/sdk/communication/azure-communication-phonenumbers/samples/get_purchased_phone_number_sample_async.py @@ -15,7 +15,7 @@ Set the environment variables with your own values before running the sample: 1) COMMUNICATION_SAMPLES_CONNECTION_STRING - The connection string including your endpoint and access key of your Azure Communication Service - 2) AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER - The phone number you want to get its information + 2) AZURE_PHONE_NUMBER - The phone number you want to get its information """ import asyncio @@ -25,7 +25,7 @@ ) connection_str = os.getenv('COMMUNICATION_SAMPLES_CONNECTION_STRING') -phone_number = os.getenv("AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER") # e.g. "+18001234567" +phone_number = os.getenv("AZURE_PHONE_NUMBER") # e.g. "+18001234567" phone_numbers_client = PhoneNumbersClient.from_connection_string(connection_str) async def get_purchased_phone_number_information(): diff --git a/sdk/communication/azure-communication-phonenumbers/samples/release_phone_number_sample.py b/sdk/communication/azure-communication-phonenumbers/samples/release_phone_number_sample.py index d782b13a8ca9..6cd888bc3f67 100644 --- a/sdk/communication/azure-communication-phonenumbers/samples/release_phone_number_sample.py +++ b/sdk/communication/azure-communication-phonenumbers/samples/release_phone_number_sample.py @@ -15,7 +15,7 @@ Set the environment variables with your own values before running the sample: 1) COMMUNICATION_SAMPLES_CONNECTION_STRING - The connection string including your endpoint and access key of your Azure Communication Service - 2) AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER_TO_RELEASE - The phone number you want to release + 2) AZURE_PHONE_NUMBER_TO_RELEASE - The phone number you want to release """ import os @@ -25,7 +25,7 @@ connection_str = os.getenv('COMMUNICATION_SAMPLES_CONNECTION_STRING') phone_number_to_release = os.getenv( - "AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER_TO_RELEASE" # e.g. "+18001234567" + "AZURE_PHONE_NUMBER_TO_RELEASE" # e.g. "+18001234567" ) phone_numbers_client = PhoneNumbersClient.from_connection_string(connection_str) diff --git a/sdk/communication/azure-communication-phonenumbers/samples/release_phone_number_sample_async.py b/sdk/communication/azure-communication-phonenumbers/samples/release_phone_number_sample_async.py index f3d71f375102..588f01bd6f05 100644 --- a/sdk/communication/azure-communication-phonenumbers/samples/release_phone_number_sample_async.py +++ b/sdk/communication/azure-communication-phonenumbers/samples/release_phone_number_sample_async.py @@ -15,7 +15,7 @@ Set the environment variables with your own values before running the sample: 1) COMMUNICATION_SAMPLES_CONNECTION_STRING - The connection string including your endpoint and access key of your Azure Communication Service - 2) AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER_TO_RELEASE - The phone number you want to release + 2) AZURE_PHONE_NUMBER_TO_RELEASE - The phone number you want to release """ import asyncio @@ -26,7 +26,7 @@ connection_str = os.getenv('COMMUNICATION_SAMPLES_CONNECTION_STRING') phone_number_to_release = os.getenv( - "AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER_TO_RELEASE" # e.g. "+18001234567" + "AZURE_PHONE_NUMBER_TO_RELEASE" # e.g. "+18001234567" ) phone_numbers_client = PhoneNumbersClient.from_connection_string(connection_str) diff --git a/sdk/communication/azure-communication-phonenumbers/samples/update_phone_number_capabilities_sample.py b/sdk/communication/azure-communication-phonenumbers/samples/update_phone_number_capabilities_sample.py index dd9e671fc1d8..d6e0a29e2a45 100644 --- a/sdk/communication/azure-communication-phonenumbers/samples/update_phone_number_capabilities_sample.py +++ b/sdk/communication/azure-communication-phonenumbers/samples/update_phone_number_capabilities_sample.py @@ -15,7 +15,7 @@ Set the environment variables with your own values before running the sample: 1) COMMUNICATION_SAMPLES_CONNECTION_STRING - The connection string including your endpoint and access key of your Azure Communication Service - 2) AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER - The phone number you want to update + 2) AZURE_PHONE_NUMBER - The phone number you want to update """ import os @@ -26,7 +26,7 @@ connection_str = os.getenv('COMMUNICATION_SAMPLES_CONNECTION_STRING') phone_number_to_update = os.getenv( - "AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER" # e.g. "+15551234567" + "AZURE_PHONE_NUMBER" # e.g. "+15551234567" ) phone_numbers_client = PhoneNumbersClient.from_connection_string(connection_str) diff --git a/sdk/communication/azure-communication-phonenumbers/samples/update_phone_number_capabilities_sample_async.py b/sdk/communication/azure-communication-phonenumbers/samples/update_phone_number_capabilities_sample_async.py index d32971e4bf33..8cafa84d5872 100644 --- a/sdk/communication/azure-communication-phonenumbers/samples/update_phone_number_capabilities_sample_async.py +++ b/sdk/communication/azure-communication-phonenumbers/samples/update_phone_number_capabilities_sample_async.py @@ -15,7 +15,7 @@ Set the environment variables with your own values before running the sample: 1) COMMUNICATION_SAMPLES_CONNECTION_STRING - The connection string including your endpoint and access key of your Azure Communication Service - 2) AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER - The phone number you want to update + 2) AZURE_PHONE_NUMBER - The phone number you want to update """ import asyncio @@ -25,7 +25,7 @@ connection_str = os.getenv('COMMUNICATION_SAMPLES_CONNECTION_STRING') phone_number_to_update = os.getenv( - "AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER" # e.g. "+15551234567" + "AZURE_PHONE_NUMBER" # e.g. "+15551234567" ) phone_numbers_client = PhoneNumbersClient.from_connection_string(connection_str) diff --git a/sdk/communication/azure-communication-phonenumbers/test/test_phone_number_administration_client.py b/sdk/communication/azure-communication-phonenumbers/test/test_phone_number_administration_client.py index 649cd14f018e..e9e0a565e404 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/test_phone_number_administration_client.py +++ b/sdk/communication/azure-communication-phonenumbers/test/test_phone_number_administration_client.py @@ -27,7 +27,7 @@ def setUp(self): self.phone_number = "sanitized" self.country_code = "US" else: - self.phone_number = os.getenv("AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER") + self.phone_number = os.getenv("AZURE_PHONE_NUMBER") self.country_code = os.getenv("AZURE_COMMUNICATION_SERVICE_COUNTRY_CODE", "US") self.phone_number_client = PhoneNumbersClient.from_connection_string( self.connection_str, diff --git a/sdk/communication/azure-communication-phonenumbers/test/test_phone_number_administration_client_async.py b/sdk/communication/azure-communication-phonenumbers/test/test_phone_number_administration_client_async.py index 2716f2202e1a..73cae289c4ce 100644 --- a/sdk/communication/azure-communication-phonenumbers/test/test_phone_number_administration_client_async.py +++ b/sdk/communication/azure-communication-phonenumbers/test/test_phone_number_administration_client_async.py @@ -28,7 +28,7 @@ def setUp(self): self.phone_number = "sanitized" self.country_code = "US" else: - self.phone_number = os.getenv("AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER") + self.phone_number = os.getenv("AZURE_PHONE_NUMBER") self.country_code = os.getenv("AZURE_COMMUNICATION_SERVICE_COUNTRY_CODE", "US") self.phone_number_client = PhoneNumbersClient.from_connection_string( self.connection_str, diff --git a/sdk/communication/azure-communication-sms/samples/send_sms_to_multiple_recipients_sample.py b/sdk/communication/azure-communication-sms/samples/send_sms_to_multiple_recipients_sample.py index e3463fa89419..ea46d7333aa8 100644 --- a/sdk/communication/azure-communication-sms/samples/send_sms_to_multiple_recipients_sample.py +++ b/sdk/communication/azure-communication-sms/samples/send_sms_to_multiple_recipients_sample.py @@ -15,7 +15,7 @@ python send_sms_to_multiple_recipients_sample.py Set the environment variable with your own value before running the sample: 1) COMMUNICATION_SAMPLES_CONNECTION_STRING - the connection string in your ACS resource - 2) AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER - a phone number with SMS capabilities in your ACS resource + 2) AZURE_PHONE_NUMBER - a phone number with SMS capabilities in your ACS resource """ import os @@ -27,7 +27,7 @@ class SmsMultipleRecipientsSample(object): connection_string = os.getenv("COMMUNICATION_SAMPLES_CONNECTION_STRING") - phone_number = os.getenv("AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER") + phone_number = os.getenv("AZURE_PHONE_NUMBER") def send_sms_to_multiple_recipients(self): sms_client = SmsClient.from_connection_string(self.connection_string) diff --git a/sdk/communication/azure-communication-sms/samples/send_sms_to_multiple_recipients_sample_async.py b/sdk/communication/azure-communication-sms/samples/send_sms_to_multiple_recipients_sample_async.py index 2fce707bb260..a5a89afc4da2 100644 --- a/sdk/communication/azure-communication-sms/samples/send_sms_to_multiple_recipients_sample_async.py +++ b/sdk/communication/azure-communication-sms/samples/send_sms_to_multiple_recipients_sample_async.py @@ -15,7 +15,7 @@ python send_sms_to_multiple_recipients_sample_async.py Set the environment variable with your own value before running the sample: 1) COMMUNICATION_SAMPLES_CONNECTION_STRING - the connection string in your ACS resource - 2) AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER - a phone number with SMS capabilities in your ACS resource + 2) AZURE_PHONE_NUMBER - a phone number with SMS capabilities in your ACS resource """ import os @@ -28,7 +28,7 @@ class SmsMultipleRecipientsSampleAsync(object): connection_string = os.getenv("COMMUNICATION_SAMPLES_CONNECTION_STRING") - phone_number = os.getenv("AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER") + phone_number = os.getenv("AZURE_PHONE_NUMBER") async def send_sms_to_multiple_recipients_async(self): sms_client = SmsClient.from_connection_string(self.connection_string) diff --git a/sdk/communication/azure-communication-sms/samples/send_sms_to_single_recipient_sample.py b/sdk/communication/azure-communication-sms/samples/send_sms_to_single_recipient_sample.py index ea21daadfe12..c27eba12c7f9 100644 --- a/sdk/communication/azure-communication-sms/samples/send_sms_to_single_recipient_sample.py +++ b/sdk/communication/azure-communication-sms/samples/send_sms_to_single_recipient_sample.py @@ -15,7 +15,7 @@ python send_sms_to_single_recipient_sample.py Set the environment variable with your own value before running the sample: 1) COMMUNICATION_SAMPLES_CONNECTION_STRING - the connection string in your ACS resource - 2) AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER - a phone number with SMS capabilities in your ACS resource + 2) AZURE_PHONE_NUMBER - a phone number with SMS capabilities in your ACS resource """ import os @@ -27,7 +27,7 @@ class SmsSingleRecipientSample(object): connection_string = os.getenv("COMMUNICATION_SAMPLES_CONNECTION_STRING") - phone_number = os.getenv("AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER") + phone_number = os.getenv("AZURE_PHONE_NUMBER") def send_sms_to_single_recipient(self): sms_client = SmsClient.from_connection_string(self.connection_string) diff --git a/sdk/communication/azure-communication-sms/samples/send_sms_to_single_recipient_sample_async.py b/sdk/communication/azure-communication-sms/samples/send_sms_to_single_recipient_sample_async.py index 5df09f9ffaba..192f673d4545 100644 --- a/sdk/communication/azure-communication-sms/samples/send_sms_to_single_recipient_sample_async.py +++ b/sdk/communication/azure-communication-sms/samples/send_sms_to_single_recipient_sample_async.py @@ -15,7 +15,7 @@ python send_sms_to_single_recipient_sample_async.py Set the environment variable with your own value before running the sample: 1) COMMUNICATION_SAMPLES_CONNECTION_STRING - the connection string in your ACS resource - 2) AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER - a phone number with SMS capabilities in your ACS resource + 2) AZURE_PHONE_NUMBER - a phone number with SMS capabilities in your ACS resource """ import os @@ -28,7 +28,7 @@ class SmsSingleRecipientSampleAsync(object): connection_string = os.getenv("COMMUNICATION_SAMPLES_CONNECTION_STRING") - phone_number = os.getenv("AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER") + phone_number = os.getenv("AZURE_PHONE_NUMBER") async def send_sms_to_single_recipient_async(self): sms_client = SmsClient.from_connection_string(self.connection_string) diff --git a/sdk/communication/azure-communication-sms/samples/sms_token_credential_auth_sample.py b/sdk/communication/azure-communication-sms/samples/sms_token_credential_auth_sample.py index 0611146e438b..af67906dbd54 100644 --- a/sdk/communication/azure-communication-sms/samples/sms_token_credential_auth_sample.py +++ b/sdk/communication/azure-communication-sms/samples/sms_token_credential_auth_sample.py @@ -15,7 +15,7 @@ python sms_token_credential_auth_sample.py Set the environment variable with your own value before running the sample: 1) COMMUNICATION_SAMPLES_CONNECTION_STRING - the connection string in your ACS resource - 2) AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER - a phone number with SMS capabilities in your ACS resource + 2) AZURE_PHONE_NUMBER - a phone number with SMS capabilities in your ACS resource """ import os @@ -29,7 +29,7 @@ class SmsTokenCredentialAuthSample(object): connection_str = os.getenv('COMMUNICATION_SAMPLES_CONNECTION_STRING') - phone_number = os.getenv("AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER") + phone_number = os.getenv("AZURE_PHONE_NUMBER") def sms_token_credential_auth(self): # To use Azure Active Directory Authentication (DefaultAzureCredential) make sure to have diff --git a/sdk/communication/azure-communication-sms/samples/sms_token_credential_auth_sample_async.py b/sdk/communication/azure-communication-sms/samples/sms_token_credential_auth_sample_async.py index 77156e1aac46..ba8a7be6fd97 100644 --- a/sdk/communication/azure-communication-sms/samples/sms_token_credential_auth_sample_async.py +++ b/sdk/communication/azure-communication-sms/samples/sms_token_credential_auth_sample_async.py @@ -15,7 +15,7 @@ python sms_token_credential_auth_sample_async.py Set the environment variable with your own value before running the sample: 1) COMMUNICATION_SAMPLES_CONNECTION_STRING - the connection string in your ACS resource - 2) AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER - a phone number with SMS capabilities in your ACS resource + 2) AZURE_PHONE_NUMBER - a phone number with SMS capabilities in your ACS resource """ import os @@ -30,7 +30,7 @@ class SmsTokenCredentialAuthSampleAsync(object): connection_string = os.getenv('COMMUNICATION_SAMPLES_CONNECTION_STRING') - phone_number = os.getenv("AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER") + phone_number = os.getenv("AZURE_PHONE_NUMBER") async def sms_token_credential_auth_async(self): # To use Azure Active Directory Authentication (DefaultAzureCredential) make sure to have diff --git a/sdk/communication/azure-communication-sms/tests/test_sms_client_e2e.py b/sdk/communication/azure-communication-sms/tests/test_sms_client_e2e.py index 5f4c78dbef52..d5f0c130aa89 100644 --- a/sdk/communication/azure-communication-sms/tests/test_sms_client_e2e.py +++ b/sdk/communication/azure-communication-sms/tests/test_sms_client_e2e.py @@ -37,7 +37,7 @@ def setUp(self): self.recording_processors.extend([ BodyReplacerProcessor(keys=["to", "from", "messageId", "repeatabilityRequestId", "repeatabilityFirstSent"])]) else: - self.phone_number = os.getenv("AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER") + self.phone_number = os.getenv("AZURE_PHONE_NUMBER") self.recording_processors.extend([ BodyReplacerProcessor(keys=["to", "from", "messageId", "repeatabilityRequestId", "repeatabilityFirstSent"]), ResponseReplacerProcessor(keys=[self._resource_name])]) diff --git a/sdk/communication/azure-communication-sms/tests/test_sms_client_e2e_async.py b/sdk/communication/azure-communication-sms/tests/test_sms_client_e2e_async.py index a6d7e3ff376f..894d6f696da3 100644 --- a/sdk/communication/azure-communication-sms/tests/test_sms_client_e2e_async.py +++ b/sdk/communication/azure-communication-sms/tests/test_sms_client_e2e_async.py @@ -36,7 +36,7 @@ def setUp(self): self.recording_processors.extend([ BodyReplacerProcessor(keys=["to", "from", "messageId", "repeatabilityRequestId", "repeatabilityFirstSent"])]) else: - self.phone_number = os.getenv("AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER") + self.phone_number = os.getenv("AZURE_PHONE_NUMBER") self.recording_processors.extend([ BodyReplacerProcessor(keys=["to", "from", "messageId", "repeatabilityRequestId", "repeatabilityFirstSent"]), ResponseReplacerProcessor(keys=[self._resource_name])])