Skip to content

Commit c6aa5d8

Browse files
authored
Rename to AZURE_PHONE_NUMBER (#18760)
1 parent c859158 commit c6aa5d8

16 files changed

+28
-28
lines changed

sdk/communication/azure-communication-phonenumbers/samples/get_purchased_phone_number_sample.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
Set the environment variables with your own values before running the sample:
1616
1) COMMUNICATION_SAMPLES_CONNECTION_STRING - The connection string including your endpoint and
1717
access key of your Azure Communication Service
18-
2) AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER - The phone number you want to get its information
18+
2) AZURE_PHONE_NUMBER - The phone number you want to get its information
1919
"""
2020

2121
import os
@@ -24,7 +24,7 @@
2424
)
2525

2626
connection_str = os.getenv('COMMUNICATION_SAMPLES_CONNECTION_STRING')
27-
phone_number = os.getenv("AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER") # e.g. "+18001234567"
27+
phone_number = os.getenv("AZURE_PHONE_NUMBER") # e.g. "+18001234567"
2828
phone_numbers_client = PhoneNumbersClient.from_connection_string(connection_str)
2929

3030
def get_purchased_phone_number_information():

sdk/communication/azure-communication-phonenumbers/samples/get_purchased_phone_number_sample_async.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
Set the environment variables with your own values before running the sample:
1616
1) COMMUNICATION_SAMPLES_CONNECTION_STRING - The connection string including your endpoint and
1717
access key of your Azure Communication Service
18-
2) AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER - The phone number you want to get its information
18+
2) AZURE_PHONE_NUMBER - The phone number you want to get its information
1919
"""
2020

2121
import asyncio
@@ -25,7 +25,7 @@
2525
)
2626

2727
connection_str = os.getenv('COMMUNICATION_SAMPLES_CONNECTION_STRING')
28-
phone_number = os.getenv("AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER") # e.g. "+18001234567"
28+
phone_number = os.getenv("AZURE_PHONE_NUMBER") # e.g. "+18001234567"
2929
phone_numbers_client = PhoneNumbersClient.from_connection_string(connection_str)
3030

3131
async def get_purchased_phone_number_information():

sdk/communication/azure-communication-phonenumbers/samples/release_phone_number_sample.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
Set the environment variables with your own values before running the sample:
1616
1) COMMUNICATION_SAMPLES_CONNECTION_STRING - The connection string including your endpoint and
1717
access key of your Azure Communication Service
18-
2) AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER_TO_RELEASE - The phone number you want to release
18+
2) AZURE_PHONE_NUMBER_TO_RELEASE - The phone number you want to release
1919
"""
2020

2121
import os
@@ -25,7 +25,7 @@
2525

2626
connection_str = os.getenv('COMMUNICATION_SAMPLES_CONNECTION_STRING')
2727
phone_number_to_release = os.getenv(
28-
"AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER_TO_RELEASE" # e.g. "+18001234567"
28+
"AZURE_PHONE_NUMBER_TO_RELEASE" # e.g. "+18001234567"
2929
)
3030
phone_numbers_client = PhoneNumbersClient.from_connection_string(connection_str)
3131

sdk/communication/azure-communication-phonenumbers/samples/release_phone_number_sample_async.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
Set the environment variables with your own values before running the sample:
1616
1) COMMUNICATION_SAMPLES_CONNECTION_STRING - The connection string including your endpoint and
1717
access key of your Azure Communication Service
18-
2) AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER_TO_RELEASE - The phone number you want to release
18+
2) AZURE_PHONE_NUMBER_TO_RELEASE - The phone number you want to release
1919
"""
2020

2121
import asyncio
@@ -26,7 +26,7 @@
2626

2727
connection_str = os.getenv('COMMUNICATION_SAMPLES_CONNECTION_STRING')
2828
phone_number_to_release = os.getenv(
29-
"AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER_TO_RELEASE" # e.g. "+18001234567"
29+
"AZURE_PHONE_NUMBER_TO_RELEASE" # e.g. "+18001234567"
3030
)
3131
phone_numbers_client = PhoneNumbersClient.from_connection_string(connection_str)
3232

sdk/communication/azure-communication-phonenumbers/samples/update_phone_number_capabilities_sample.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
Set the environment variables with your own values before running the sample:
1616
1) COMMUNICATION_SAMPLES_CONNECTION_STRING - The connection string including your endpoint and
1717
access key of your Azure Communication Service
18-
2) AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER - The phone number you want to update
18+
2) AZURE_PHONE_NUMBER - The phone number you want to update
1919
"""
2020

2121
import os
@@ -26,7 +26,7 @@
2626

2727
connection_str = os.getenv('COMMUNICATION_SAMPLES_CONNECTION_STRING')
2828
phone_number_to_update = os.getenv(
29-
"AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER" # e.g. "+15551234567"
29+
"AZURE_PHONE_NUMBER" # e.g. "+15551234567"
3030
)
3131
phone_numbers_client = PhoneNumbersClient.from_connection_string(connection_str)
3232

sdk/communication/azure-communication-phonenumbers/samples/update_phone_number_capabilities_sample_async.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
Set the environment variables with your own values before running the sample:
1616
1) COMMUNICATION_SAMPLES_CONNECTION_STRING - The connection string including your endpoint and
1717
access key of your Azure Communication Service
18-
2) AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER - The phone number you want to update
18+
2) AZURE_PHONE_NUMBER - The phone number you want to update
1919
"""
2020

2121
import asyncio
@@ -25,7 +25,7 @@
2525

2626
connection_str = os.getenv('COMMUNICATION_SAMPLES_CONNECTION_STRING')
2727
phone_number_to_update = os.getenv(
28-
"AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER" # e.g. "+15551234567"
28+
"AZURE_PHONE_NUMBER" # e.g. "+15551234567"
2929
)
3030
phone_numbers_client = PhoneNumbersClient.from_connection_string(connection_str)
3131

sdk/communication/azure-communication-phonenumbers/test/test_phone_number_administration_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def setUp(self):
2727
self.phone_number = "sanitized"
2828
self.country_code = "US"
2929
else:
30-
self.phone_number = os.getenv("AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER")
30+
self.phone_number = os.getenv("AZURE_PHONE_NUMBER")
3131
self.country_code = os.getenv("AZURE_COMMUNICATION_SERVICE_COUNTRY_CODE", "US")
3232
self.phone_number_client = PhoneNumbersClient.from_connection_string(
3333
self.connection_str,

sdk/communication/azure-communication-phonenumbers/test/test_phone_number_administration_client_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def setUp(self):
2828
self.phone_number = "sanitized"
2929
self.country_code = "US"
3030
else:
31-
self.phone_number = os.getenv("AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER")
31+
self.phone_number = os.getenv("AZURE_PHONE_NUMBER")
3232
self.country_code = os.getenv("AZURE_COMMUNICATION_SERVICE_COUNTRY_CODE", "US")
3333
self.phone_number_client = PhoneNumbersClient.from_connection_string(
3434
self.connection_str,

sdk/communication/azure-communication-sms/samples/send_sms_to_multiple_recipients_sample.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
python send_sms_to_multiple_recipients_sample.py
1616
Set the environment variable with your own value before running the sample:
1717
1) COMMUNICATION_SAMPLES_CONNECTION_STRING - the connection string in your ACS resource
18-
2) AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER - a phone number with SMS capabilities in your ACS resource
18+
2) AZURE_PHONE_NUMBER - a phone number with SMS capabilities in your ACS resource
1919
"""
2020

2121
import os
@@ -27,7 +27,7 @@
2727
class SmsMultipleRecipientsSample(object):
2828

2929
connection_string = os.getenv("COMMUNICATION_SAMPLES_CONNECTION_STRING")
30-
phone_number = os.getenv("AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER")
30+
phone_number = os.getenv("AZURE_PHONE_NUMBER")
3131

3232
def send_sms_to_multiple_recipients(self):
3333
sms_client = SmsClient.from_connection_string(self.connection_string)

sdk/communication/azure-communication-sms/samples/send_sms_to_multiple_recipients_sample_async.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
python send_sms_to_multiple_recipients_sample_async.py
1616
Set the environment variable with your own value before running the sample:
1717
1) COMMUNICATION_SAMPLES_CONNECTION_STRING - the connection string in your ACS resource
18-
2) AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER - a phone number with SMS capabilities in your ACS resource
18+
2) AZURE_PHONE_NUMBER - a phone number with SMS capabilities in your ACS resource
1919
"""
2020

2121
import os
@@ -28,7 +28,7 @@
2828
class SmsMultipleRecipientsSampleAsync(object):
2929

3030
connection_string = os.getenv("COMMUNICATION_SAMPLES_CONNECTION_STRING")
31-
phone_number = os.getenv("AZURE_COMMUNICATION_SERVICE_PHONE_NUMBER")
31+
phone_number = os.getenv("AZURE_PHONE_NUMBER")
3232

3333
async def send_sms_to_multiple_recipients_async(self):
3434
sms_client = SmsClient.from_connection_string(self.connection_string)

0 commit comments

Comments
 (0)