Skip to content

Commit 1c45297

Browse files
committed
Delete API PhoneNumberStatusForVirtual.
1 parent 9a2ad3b commit 1c45297

File tree

5 files changed

+25
-352
lines changed

5 files changed

+25
-352
lines changed

dytnsapi-20200217/ChangeLog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2025-04-29 Version: 3.0.0
2+
- Delete API PhoneNumberStatusForVirtual.
3+
- Update API PhoneNumberEncrypt: add request parameters OutId.
4+
- Update API PhoneNumberEncrypt: add response parameters Body.Data.$.OutId.
5+
6+
17
2025-01-19 Version: 2.11.0
28
- Support API DescribePhoneNumberAnalysisPai.
39
- Support API DescribePhoneNumberOperatorAttributeAnnual.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '2.11.0'
1+
__version__ = '3.0.0'

dytnsapi-20200217/alibabacloud_dytnsapi20200217/client.py

Lines changed: 4 additions & 144 deletions
Original file line numberDiff line numberDiff line change
@@ -2885,6 +2885,8 @@ def phone_number_encrypt_with_options(
28852885
query['InputNumber'] = request.input_number
28862886
if not UtilClient.is_unset(request.mask):
28872887
query['Mask'] = request.mask
2888+
if not UtilClient.is_unset(request.out_id):
2889+
query['OutId'] = request.out_id
28882890
if not UtilClient.is_unset(request.owner_id):
28892891
query['OwnerId'] = request.owner_id
28902892
if not UtilClient.is_unset(request.resource_owner_account):
@@ -2934,6 +2936,8 @@ async def phone_number_encrypt_with_options_async(
29342936
query['InputNumber'] = request.input_number
29352937
if not UtilClient.is_unset(request.mask):
29362938
query['Mask'] = request.mask
2939+
if not UtilClient.is_unset(request.out_id):
2940+
query['OutId'] = request.out_id
29372941
if not UtilClient.is_unset(request.owner_id):
29382942
query['OwnerId'] = request.owner_id
29392943
if not UtilClient.is_unset(request.resource_owner_account):
@@ -3553,150 +3557,6 @@ async def phone_number_status_for_sms_async(
35533557
runtime = util_models.RuntimeOptions()
35543558
return await self.phone_number_status_for_sms_with_options_async(request, runtime)
35553559

3556-
def phone_number_status_for_virtual_with_options(
3557-
self,
3558-
request: dytnsapi_20200217_models.PhoneNumberStatusForVirtualRequest,
3559-
runtime: util_models.RuntimeOptions,
3560-
) -> dytnsapi_20200217_models.PhoneNumberStatusForVirtualResponse:
3561-
"""
3562-
@summary Queries the status of a virtual phone number. You can choose an encryption method for your phone number query, including plaintext, MD5, and SHA256.
3563-
3564-
@description Before you call this operation, make sure that you are familiar with the [billing](https://help.aliyun.com/document_detail/154751.html) of Cell Phone Number Service.
3565-
You are charged only if the value of Code is OK and the value of IsPrivacyNumber is true or false.
3566-
By default, only Alibaba Cloud accounts can call this operation. RAM users can call this operation only after the RAM users are granted the related permissions. For more information, see [Grant permissions to RAM users](https://help.aliyun.com/document_detail/154006.html).
3567-
Before you call this operation, perform the following operations: Log on to the Cell Phone Number Service console. On the [Labels](https://dytns.console.aliyun.com/analysis/square) page, find the label that you want to use, click **Activate Now**, enter the required information, and then submit your application. After your application is approved, you can use the label.
3568-
### [](#qps)QPS limits
3569-
You can call this operation up to 300 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
3570-
3571-
@param request: PhoneNumberStatusForVirtualRequest
3572-
@param runtime: runtime options for this request RuntimeOptions
3573-
@return: PhoneNumberStatusForVirtualResponse
3574-
"""
3575-
UtilClient.validate_model(request)
3576-
query = {}
3577-
if not UtilClient.is_unset(request.auth_code):
3578-
query['AuthCode'] = request.auth_code
3579-
if not UtilClient.is_unset(request.input_number):
3580-
query['InputNumber'] = request.input_number
3581-
if not UtilClient.is_unset(request.mask):
3582-
query['Mask'] = request.mask
3583-
if not UtilClient.is_unset(request.owner_id):
3584-
query['OwnerId'] = request.owner_id
3585-
if not UtilClient.is_unset(request.resource_owner_account):
3586-
query['ResourceOwnerAccount'] = request.resource_owner_account
3587-
if not UtilClient.is_unset(request.resource_owner_id):
3588-
query['ResourceOwnerId'] = request.resource_owner_id
3589-
req = open_api_models.OpenApiRequest(
3590-
query=OpenApiUtilClient.query(query)
3591-
)
3592-
params = open_api_models.Params(
3593-
action='PhoneNumberStatusForVirtual',
3594-
version='2020-02-17',
3595-
protocol='HTTPS',
3596-
pathname='/',
3597-
method='POST',
3598-
auth_type='AK',
3599-
style='RPC',
3600-
req_body_type='formData',
3601-
body_type='json'
3602-
)
3603-
return TeaCore.from_map(
3604-
dytnsapi_20200217_models.PhoneNumberStatusForVirtualResponse(),
3605-
self.call_api(params, req, runtime)
3606-
)
3607-
3608-
async def phone_number_status_for_virtual_with_options_async(
3609-
self,
3610-
request: dytnsapi_20200217_models.PhoneNumberStatusForVirtualRequest,
3611-
runtime: util_models.RuntimeOptions,
3612-
) -> dytnsapi_20200217_models.PhoneNumberStatusForVirtualResponse:
3613-
"""
3614-
@summary Queries the status of a virtual phone number. You can choose an encryption method for your phone number query, including plaintext, MD5, and SHA256.
3615-
3616-
@description Before you call this operation, make sure that you are familiar with the [billing](https://help.aliyun.com/document_detail/154751.html) of Cell Phone Number Service.
3617-
You are charged only if the value of Code is OK and the value of IsPrivacyNumber is true or false.
3618-
By default, only Alibaba Cloud accounts can call this operation. RAM users can call this operation only after the RAM users are granted the related permissions. For more information, see [Grant permissions to RAM users](https://help.aliyun.com/document_detail/154006.html).
3619-
Before you call this operation, perform the following operations: Log on to the Cell Phone Number Service console. On the [Labels](https://dytns.console.aliyun.com/analysis/square) page, find the label that you want to use, click **Activate Now**, enter the required information, and then submit your application. After your application is approved, you can use the label.
3620-
### [](#qps)QPS limits
3621-
You can call this operation up to 300 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
3622-
3623-
@param request: PhoneNumberStatusForVirtualRequest
3624-
@param runtime: runtime options for this request RuntimeOptions
3625-
@return: PhoneNumberStatusForVirtualResponse
3626-
"""
3627-
UtilClient.validate_model(request)
3628-
query = {}
3629-
if not UtilClient.is_unset(request.auth_code):
3630-
query['AuthCode'] = request.auth_code
3631-
if not UtilClient.is_unset(request.input_number):
3632-
query['InputNumber'] = request.input_number
3633-
if not UtilClient.is_unset(request.mask):
3634-
query['Mask'] = request.mask
3635-
if not UtilClient.is_unset(request.owner_id):
3636-
query['OwnerId'] = request.owner_id
3637-
if not UtilClient.is_unset(request.resource_owner_account):
3638-
query['ResourceOwnerAccount'] = request.resource_owner_account
3639-
if not UtilClient.is_unset(request.resource_owner_id):
3640-
query['ResourceOwnerId'] = request.resource_owner_id
3641-
req = open_api_models.OpenApiRequest(
3642-
query=OpenApiUtilClient.query(query)
3643-
)
3644-
params = open_api_models.Params(
3645-
action='PhoneNumberStatusForVirtual',
3646-
version='2020-02-17',
3647-
protocol='HTTPS',
3648-
pathname='/',
3649-
method='POST',
3650-
auth_type='AK',
3651-
style='RPC',
3652-
req_body_type='formData',
3653-
body_type='json'
3654-
)
3655-
return TeaCore.from_map(
3656-
dytnsapi_20200217_models.PhoneNumberStatusForVirtualResponse(),
3657-
await self.call_api_async(params, req, runtime)
3658-
)
3659-
3660-
def phone_number_status_for_virtual(
3661-
self,
3662-
request: dytnsapi_20200217_models.PhoneNumberStatusForVirtualRequest,
3663-
) -> dytnsapi_20200217_models.PhoneNumberStatusForVirtualResponse:
3664-
"""
3665-
@summary Queries the status of a virtual phone number. You can choose an encryption method for your phone number query, including plaintext, MD5, and SHA256.
3666-
3667-
@description Before you call this operation, make sure that you are familiar with the [billing](https://help.aliyun.com/document_detail/154751.html) of Cell Phone Number Service.
3668-
You are charged only if the value of Code is OK and the value of IsPrivacyNumber is true or false.
3669-
By default, only Alibaba Cloud accounts can call this operation. RAM users can call this operation only after the RAM users are granted the related permissions. For more information, see [Grant permissions to RAM users](https://help.aliyun.com/document_detail/154006.html).
3670-
Before you call this operation, perform the following operations: Log on to the Cell Phone Number Service console. On the [Labels](https://dytns.console.aliyun.com/analysis/square) page, find the label that you want to use, click **Activate Now**, enter the required information, and then submit your application. After your application is approved, you can use the label.
3671-
### [](#qps)QPS limits
3672-
You can call this operation up to 300 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
3673-
3674-
@param request: PhoneNumberStatusForVirtualRequest
3675-
@return: PhoneNumberStatusForVirtualResponse
3676-
"""
3677-
runtime = util_models.RuntimeOptions()
3678-
return self.phone_number_status_for_virtual_with_options(request, runtime)
3679-
3680-
async def phone_number_status_for_virtual_async(
3681-
self,
3682-
request: dytnsapi_20200217_models.PhoneNumberStatusForVirtualRequest,
3683-
) -> dytnsapi_20200217_models.PhoneNumberStatusForVirtualResponse:
3684-
"""
3685-
@summary Queries the status of a virtual phone number. You can choose an encryption method for your phone number query, including plaintext, MD5, and SHA256.
3686-
3687-
@description Before you call this operation, make sure that you are familiar with the [billing](https://help.aliyun.com/document_detail/154751.html) of Cell Phone Number Service.
3688-
You are charged only if the value of Code is OK and the value of IsPrivacyNumber is true or false.
3689-
By default, only Alibaba Cloud accounts can call this operation. RAM users can call this operation only after the RAM users are granted the related permissions. For more information, see [Grant permissions to RAM users](https://help.aliyun.com/document_detail/154006.html).
3690-
Before you call this operation, perform the following operations: Log on to the Cell Phone Number Service console. On the [Labels](https://dytns.console.aliyun.com/analysis/square) page, find the label that you want to use, click **Activate Now**, enter the required information, and then submit your application. After your application is approved, you can use the label.
3691-
### [](#qps)QPS limits
3692-
You can call this operation up to 300 times per second per account. If the number of calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
3693-
3694-
@param request: PhoneNumberStatusForVirtualRequest
3695-
@return: PhoneNumberStatusForVirtualResponse
3696-
"""
3697-
runtime = util_models.RuntimeOptions()
3698-
return await self.phone_number_status_for_virtual_with_options_async(request, runtime)
3699-
37003560
def phone_number_status_for_voice_with_options(
37013561
self,
37023562
request: dytnsapi_20200217_models.PhoneNumberStatusForVoiceRequest,

0 commit comments

Comments
 (0)