Skip to content

Commit 1a0b3db

Browse files
committed
Updated variable name
1 parent 18ad6f7 commit 1a0b3db

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_generated/operations/_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# pylint: disable=too-many-lines,too-many-statements
1+
# pylint: disable=too-many-lines
22
# coding=utf-8
33
# --------------------------------------------------------------------------
44
# Copyright (c) Microsoft Corporation. All rights reserved.

sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/_phone_numbers_client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,15 @@ def from_connection_string(
9999
def begin_purchase_phone_numbers(
100100
self,
101101
search_id, # type: str
102-
consentdnr=False, # type: bool
102+
consent_dnr=False, # type: bool
103103
**kwargs # type: Any
104104
):
105105
# type: (...) -> LROPoller[None]
106106
"""Purchases phone numbers.
107107
108108
:param search_id: The search id.
109109
:type search_id: str
110-
:param consent_to_not_resell_numbers/consentdnr: The consent Provided To Not Resell Phone Numbers.
110+
:param consent_to_not_resell_numbers/consent_dnr: The consent provided to not resell phone numbers.
111111
:type consent_to_not_resell_numbers: bool
112112
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
113113
:keyword polling: Pass in True if you'd like the LROBasePolling polling method,
@@ -119,7 +119,7 @@ def begin_purchase_phone_numbers(
119119
"""
120120
purchase_request = PhoneNumberPurchaseRequest(
121121
search_id=search_id,
122-
consent_to_not_resell_numbers=consentdnr
122+
consent_to_not_resell_numbers=consent_dnr
123123
)
124124

125125
polling_interval = kwargs.pop(

sdk/communication/azure-communication-phonenumbers/azure/communication/phonenumbers/aio/_phone_numbers_client_async.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,15 @@ def from_connection_string(
9999
async def begin_purchase_phone_numbers(
100100
self,
101101
search_id, # type: str
102-
consentdnr=False, # type: bool
102+
consent_dnr=False, # type: bool
103103
**kwargs # type: Any
104104
):
105105
# type: (...) -> AsyncLROPoller[None]
106106
"""Purchases phone numbers.
107107
108108
:param search_id: The search id.
109109
:type search_id: str
110-
:param consent_to_not_resell_numbers/consentdnr: The consent Provided To Not Resell Phone Numbers.
110+
:param consent_to_not_resell_numbers/consent_dnr: The consent Provided To Not Resell Phone Numbers.
111111
:type consent_to_not_resell_numbers: bool
112112
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
113113
:keyword polling: Pass in True if you'd like the LROBasePolling polling method,
@@ -117,7 +117,7 @@ async def begin_purchase_phone_numbers(
117117
for LRO operations if no Retry-After header is present.
118118
:rtype: ~azure.core.polling.AsyncLROPoller[None]
119119
"""
120-
purchase_request = PhoneNumberPurchaseRequest(search_id=search_id, consent_to_not_resell_numbers=consentdnr)
120+
purchase_request = PhoneNumberPurchaseRequest(search_id=search_id, consent_to_not_resell_numbers=consent_dnr)
121121

122122
polling_interval = kwargs.pop(
123123
'polling_interval', _DEFAULT_POLLING_INTERVAL_IN_SECONDS)

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def test_purchase_phone_numbers_dnr(self, **kwargs):
230230
)
231231
phone_number_to_buy = search_poller.result()
232232
purchase_poller = self.phone_number_client.begin_purchase_phone_numbers(
233-
phone_number_to_buy.search_id, consentdnr=True, polling=True)
233+
phone_number_to_buy.search_id, consent_dnr=True, polling=True)
234234
purchase_poller.result()
235235
assert purchase_poller.status() == PhoneNumberOperationStatus.SUCCEEDED.value
236236

@@ -257,7 +257,7 @@ def test_purchasefail_phone_numbers_dnr_no_consent_provided(self, **kwargs):
257257

258258
with pytest.raises(Exception) as ex:
259259
self.phone_number_client.begin_purchase_phone_numbers(
260-
phone_number_to_buy.search_id, consentdnr=False, polling=True)
260+
phone_number_to_buy.search_id, consent_dnr=False, polling=True)
261261
# purchase_poller.result()
262262
# assert purchase_poller.status() == PhoneNumberOperationStatus.FAILED.value
263263
assert is_client_error_status_code(

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ async def test_purchase_phone_numbers_from_managed_identity_dnr(self):
221221
)
222222
phone_number_to_buy = await search_poller.result()
223223
purchase_poller = await phone_number_client.begin_purchase_phone_numbers(
224-
phone_number_to_buy.search_id, consentdnr=True, polling=True)
224+
phone_number_to_buy.search_id, consent_dnr=True, polling=True)
225225

226226
await purchase_poller.result()
227227
assert purchase_poller.status() == PhoneNumberOperationStatus.SUCCEEDED.value
@@ -275,7 +275,7 @@ async def test_purchase_phone_numbers_dnr(self):
275275
)
276276
phone_number_to_buy = await search_poller.result()
277277
purchase_poller = await self.phone_number_client.begin_purchase_phone_numbers(
278-
phone_number_to_buy.search_id, consentdnr=True, polling=True)
278+
phone_number_to_buy.search_id, consent_dnr=True, polling=True)
279279

280280
await purchase_poller.result()
281281
assert purchase_poller.status() == PhoneNumberOperationStatus.SUCCEEDED.value

0 commit comments

Comments
 (0)