Skip to content

Commit 0b7addd

Browse files
committedSep 24, 2021
Fixed SDK update delay.
1 parent d5ce46b commit 0b7addd

13 files changed

+313
-0
lines changed
 
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2021-09-24 Version: 1.0.2
2+
- Fixed SDK update delay.
3+

‎aliyun-python-sdk-dytnsapi/LICENSE

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright 1999-present Alibaba Group Holding Ltd.
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include LICENSE README.rst ChangeLog.txt

‎aliyun-python-sdk-dytnsapi/README.rst

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
=============================================================
2+
aliyun-python-sdk-dytnsapi
3+
=============================================================
4+
5+
.. This is the dytnsapi module of Aliyun Python SDK.
6+
7+
Aliyun Python SDK is the official software development kit. It makes things easy to integrate your Python application, library, or script with Aliyun services.
8+
9+
This module works on Python versions:
10+
11+
2.6.5 and greater
12+
13+
**Documentation:**
14+
15+
Please visit `http://develop.aliyun.com/sdk/python <http://develop.aliyun.com/sdk/python>`_
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = '1.0.2'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# # Licensed to the Apache Software Foundation (ASF) under one
2+
# # or more contributor license agreements. See the NOTICE file
3+
# # distributed with this work for additional information
4+
# # regarding copyright ownership. The ASF licenses this file
5+
# # to you under the Apache License, Version 2.0 (the
6+
# # "License"); you may not use this file except in compliance
7+
# # with the License. You may obtain a copy of the License at
8+
# #
9+
# #
10+
# # http://www.apache.org/licenses/LICENSE-2.0
11+
# #
12+
# #
13+
# # Unless required by applicable law or agreed to in writing,
14+
# # software distributed under the License is distributed on an
15+
# # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# # KIND, either express or implied. See the License for the
17+
# # specific language governing permissions and limitations
18+
# # under the License.
19+
20+
21+
class EndpointData():
22+
def __init__(self):
23+
self.endpoint_map = {}
24+
self.endpoint_regional = "central"
25+
26+
def getEndpointMap(self):
27+
return self.endpoint_map
28+
29+
def getEndpointRegional(self):
30+
return self.endpoint_regional
31+
32+
33+
endpoint_data = EndpointData()

‎aliyun-python-sdk-dytnsapi/aliyunsdkdytnsapi/request/__init__.py

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
from aliyunsdkdytnsapi.endpoint import endpoint_data
22+
23+
class DescribePhoneNumberAttributeRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'Dytnsapi', '2020-02-17', 'DescribePhoneNumberAttribute')
27+
self.set_method('POST')
28+
29+
if hasattr(self, "endpoint_map"):
30+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
31+
if hasattr(self, "endpoint_regional"):
32+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
33+
34+
def get_ResourceOwnerId(self): # Long
35+
return self.get_query_params().get('ResourceOwnerId')
36+
37+
def set_ResourceOwnerId(self, ResourceOwnerId): # Long
38+
self.add_query_param('ResourceOwnerId', ResourceOwnerId)
39+
def get_ResourceOwnerAccount(self): # String
40+
return self.get_query_params().get('ResourceOwnerAccount')
41+
42+
def set_ResourceOwnerAccount(self, ResourceOwnerAccount): # String
43+
self.add_query_param('ResourceOwnerAccount', ResourceOwnerAccount)
44+
def get_PhoneNumber(self): # String
45+
return self.get_query_params().get('PhoneNumber')
46+
47+
def set_PhoneNumber(self, PhoneNumber): # String
48+
self.add_query_param('PhoneNumber', PhoneNumber)
49+
def get_OwnerId(self): # Long
50+
return self.get_query_params().get('OwnerId')
51+
52+
def set_OwnerId(self, OwnerId): # Long
53+
self.add_query_param('OwnerId', OwnerId)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
from aliyunsdkdytnsapi.endpoint import endpoint_data
22+
23+
class DescribePhoneNumberResaleRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'Dytnsapi', '2020-02-17', 'DescribePhoneNumberResale')
27+
self.set_method('POST')
28+
29+
if hasattr(self, "endpoint_map"):
30+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
31+
if hasattr(self, "endpoint_regional"):
32+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
33+
34+
def get_ResourceOwnerId(self): # Long
35+
return self.get_query_params().get('ResourceOwnerId')
36+
37+
def set_ResourceOwnerId(self, ResourceOwnerId): # Long
38+
self.add_query_param('ResourceOwnerId', ResourceOwnerId)
39+
def get_ResourceOwnerAccount(self): # String
40+
return self.get_query_params().get('ResourceOwnerAccount')
41+
42+
def set_ResourceOwnerAccount(self, ResourceOwnerAccount): # String
43+
self.add_query_param('ResourceOwnerAccount', ResourceOwnerAccount)
44+
def get_PhoneNumber(self): # String
45+
return self.get_query_params().get('PhoneNumber')
46+
47+
def set_PhoneNumber(self, PhoneNumber): # String
48+
self.add_query_param('PhoneNumber', PhoneNumber)
49+
def get_OwnerId(self): # Long
50+
return self.get_query_params().get('OwnerId')
51+
52+
def set_OwnerId(self, OwnerId): # Long
53+
self.add_query_param('OwnerId', OwnerId)
54+
def get_Since(self): # String
55+
return self.get_query_params().get('Since')
56+
57+
def set_Since(self, Since): # String
58+
self.add_query_param('Since', Since)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
from aliyunsdkdytnsapi.endpoint import endpoint_data
22+
23+
class DescribePhoneNumberStatusRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'Dytnsapi', '2020-02-17', 'DescribePhoneNumberStatus')
27+
self.set_method('POST')
28+
29+
if hasattr(self, "endpoint_map"):
30+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
31+
if hasattr(self, "endpoint_regional"):
32+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
33+
34+
def get_ResourceOwnerId(self): # Long
35+
return self.get_query_params().get('ResourceOwnerId')
36+
37+
def set_ResourceOwnerId(self, ResourceOwnerId): # Long
38+
self.add_query_param('ResourceOwnerId', ResourceOwnerId)
39+
def get_ResourceOwnerAccount(self): # String
40+
return self.get_query_params().get('ResourceOwnerAccount')
41+
42+
def set_ResourceOwnerAccount(self, ResourceOwnerAccount): # String
43+
self.add_query_param('ResourceOwnerAccount', ResourceOwnerAccount)
44+
def get_PhoneNumber(self): # String
45+
return self.get_query_params().get('PhoneNumber')
46+
47+
def set_PhoneNumber(self, PhoneNumber): # String
48+
self.add_query_param('PhoneNumber', PhoneNumber)
49+
def get_OwnerId(self): # Long
50+
return self.get_query_params().get('OwnerId')
51+
52+
def set_OwnerId(self, OwnerId): # Long
53+
self.add_query_param('OwnerId', OwnerId)

‎aliyun-python-sdk-dytnsapi/aliyunsdkdytnsapi/request/v20200217/__init__.py

Whitespace-only changes.

‎aliyun-python-sdk-dytnsapi/setup.cfg

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[metadata]
2+
license_file = LICENSE
3+
4+
[bdist_wheel]
5+
universal = 1

‎aliyun-python-sdk-dytnsapi/setup.py

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
#!/usr/bin/python
2+
'''
3+
Licensed to the Apache Software Foundation (ASF) under one
4+
or more contributor license agreements. See the NOTICE file
5+
distributed with this work for additional information
6+
regarding copyright ownership. The ASF licenses this file
7+
to you under the Apache License, Version 2.0 (the
8+
"License"); you may not use this file except in compliance
9+
with the License. You may obtain a copy of the License at
10+
11+
http://www.apache.org/licenses/LICENSE-2.0
12+
13+
Unless required by applicable law or agreed to in writing,
14+
software distributed under the License is distributed on an
15+
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
KIND, either express or implied. See the License for the
17+
specific language governing permissions and limitations
18+
under the License.
19+
'''
20+
21+
from setuptools import setup, find_packages
22+
import os
23+
import sys
24+
25+
"""
26+
setup module for dytnsapi.
27+
28+
Created on 7/3/2015
29+
30+
@author: alex
31+
"""
32+
33+
PACKAGE = "aliyunsdkdytnsapi"
34+
NAME = "aliyun-python-sdk-dytnsapi"
35+
DESCRIPTION = "The dytnsapi module of Aliyun Python sdk."
36+
AUTHOR = "Aliyun"
37+
AUTHOR_EMAIL = "aliyun-developers-efficiency@list.alibaba-inc.com"
38+
URL = "http://develop.aliyun.com/sdk/python"
39+
40+
TOPDIR = os.path.dirname(__file__) or "."
41+
VERSION = __import__(PACKAGE).__version__
42+
43+
desc_file = open("README.rst")
44+
try:
45+
LONG_DESCRIPTION = desc_file.read()
46+
finally:
47+
desc_file.close()
48+
49+
setup(
50+
name=NAME,
51+
version=VERSION,
52+
description=DESCRIPTION,
53+
long_description=LONG_DESCRIPTION,
54+
author=AUTHOR,
55+
author_email=AUTHOR_EMAIL,
56+
license="Apache",
57+
url=URL,
58+
keywords=["aliyun","sdk","dytnsapi"],
59+
packages=find_packages(exclude=["tests*"]),
60+
include_package_data=True,
61+
platforms="any",
62+
install_requires=["aliyun-python-sdk-core>=2.11.5",],
63+
classifiers=(
64+
"Development Status :: 4 - Beta",
65+
"Intended Audience :: Developers",
66+
"License :: OSI Approved :: Apache Software License",
67+
"Programming Language :: Python",
68+
"Programming Language :: Python :: 2.6",
69+
"Programming Language :: Python :: 2.7",
70+
"Programming Language :: Python :: 3",
71+
"Programming Language :: Python :: 3.3",
72+
"Programming Language :: Python :: 3.4",
73+
"Programming Language :: Python :: 3.5",
74+
"Programming Language :: Python :: 3.6",
75+
"Topic :: Software Development",
76+
)
77+
78+
)

0 commit comments

Comments
 (0)
Please sign in to comment.