Skip to content

Commit 145abb7

Browse files
committed
Generated 2019-03-27 for dg.
1 parent a06b681 commit 145abb7

31 files changed

+1377
-0
lines changed

aliyun-python-sdk-dg/ChangeLog.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2021-01-18 Version: 1.0.9
2+
- Generated 2019-03-27 for `dg`.
3+

aliyun-python-sdk-dg/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.

aliyun-python-sdk-dg/MANIFEST.in

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include LICENSE README.rst ChangeLog.txt

aliyun-python-sdk-dg/README.rst

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
=============================================================
2+
aliyun-python-sdk-dg
3+
=============================================================
4+
5+
.. This is the dg 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.9'
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
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+
"cn-shanghai-internal-test-1": "dg.aliyuncs.com",
25+
"cn-shenzhen-su18-b01": "dg.aliyuncs.com",
26+
"cn-beijing": "dg.aliyuncs.com",
27+
"cn-shanghai-inner": "dg.aliyuncs.com",
28+
"cn-hangzhou-internal-prod-1": "dg.aliyuncs.com",
29+
"cn-north-2-gov-1": "dg.aliyuncs.com",
30+
"cn-yushanfang": "dg.aliyuncs.com",
31+
"cn-qingdao-nebula": "dg.aliyuncs.com",
32+
"cn-beijing-finance-pop": "dg.aliyuncs.com",
33+
"cn-wuhan": "dg.aliyuncs.com",
34+
"cn-zhangjiakou": "dg.aliyuncs.com",
35+
"us-west-1": "dg.aliyuncs.com",
36+
"rus-west-1-pop": "dg.aliyuncs.com",
37+
"cn-shanghai-et15-b01": "dg.aliyuncs.com",
38+
"cn-hangzhou-bj-b01": "dg.aliyuncs.com",
39+
"cn-zhangbei-na61-b01": "dg.aliyuncs.com",
40+
"ap-northeast-1": "dg.aliyuncs.com",
41+
"cn-shanghai-et2-b01": "dg.aliyuncs.com",
42+
"ap-southeast-1": "dg.aliyuncs.com",
43+
"ap-southeast-2": "dg.aliyuncs.com",
44+
"ap-southeast-3": "dg.aliyuncs.com",
45+
"ap-southeast-5": "dg.aliyuncs.com",
46+
"us-east-1": "dg.aliyuncs.com",
47+
"cn-shenzhen-inner": "dg.aliyuncs.com",
48+
"cn-zhangjiakou-na62-a01": "dg.aliyuncs.com",
49+
"cn-beijing-gov-1": "dg.aliyuncs.com",
50+
"ap-south-1": "dg.aliyuncs.com",
51+
"cn-shenzhen-st4-d01": "dg.aliyuncs.com",
52+
"cn-haidian-cm12-c01": "dg.aliyuncs.com",
53+
"cn-qingdao": "dg.aliyuncs.com",
54+
"cn-hongkong-finance-pop": "dg.aliyuncs.com",
55+
"cn-shanghai": "dg.aliyuncs.com",
56+
"cn-shanghai-finance-1": "dg.aliyuncs.com",
57+
"cn-hongkong": "dg.aliyuncs.com",
58+
"eu-central-1": "dg.aliyuncs.com",
59+
"cn-shenzhen": "dg.aliyuncs.com",
60+
"cn-zhengzhou-nebula-1": "dg.aliyuncs.com",
61+
"eu-west-1": "dg.aliyuncs.com",
62+
"cn-hangzhou-internal-test-1": "dg.aliyuncs.com",
63+
"eu-west-1-oxs": "dg.aliyuncs.com",
64+
"cn-beijing-finance-1": "dg.aliyuncs.com",
65+
"cn-hangzhou-internal-test-3": "dg.aliyuncs.com",
66+
"cn-hangzhou-internal-test-2": "dg.aliyuncs.com",
67+
"cn-shenzhen-finance-1": "dg.aliyuncs.com",
68+
"me-east-1": "dg.aliyuncs.com",
69+
"cn-chengdu": "dg.aliyuncs.com",
70+
"cn-hangzhou-test-306": "dg.aliyuncs.com",
71+
"cn-hangzhou-finance": "dg.aliyuncs.com",
72+
"cn-beijing-nu16-b01": "dg.aliyuncs.com",
73+
"cn-edge-1": "dg.aliyuncs.com",
74+
"cn-huhehaote": "dg.aliyuncs.com",
75+
"cn-fujian": "dg.aliyuncs.com",
76+
"ap-northeast-2-pop": "dg.aliyuncs.com",
77+
}
78+
self.endpoint_regional = "regional"
79+
80+
def getEndpointMap(self):
81+
return self.endpoint_map
82+
83+
def getEndpointRegional(self):
84+
return self.endpoint_regional
85+
86+
87+
endpoint_data = EndpointData()

aliyun-python-sdk-dg/aliyunsdkdg/request/__init__.py

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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 aliyunsdkdg.endpoint import endpoint_data
22+
23+
class AddDatabaseListRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'dg', '2019-03-27', 'AddDatabaseList','dg')
27+
self.set_method('POST')
28+
if hasattr(self, "endpoint_map"):
29+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
30+
if hasattr(self, "endpoint_regional"):
31+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
32+
33+
34+
def get_DatabaseString(self):
35+
return self.get_body_params().get('DatabaseString')
36+
37+
def set_DatabaseString(self,DatabaseString):
38+
self.add_body_params('DatabaseString', DatabaseString)
39+
40+
def get_ClientToken(self):
41+
return self.get_body_params().get('ClientToken')
42+
43+
def set_ClientToken(self,ClientToken):
44+
self.add_body_params('ClientToken', ClientToken)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
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 aliyunsdkdg.endpoint import endpoint_data
22+
23+
class AddDatabaseRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'dg', '2019-03-27', 'AddDatabase','dg')
27+
self.set_protocol_type('https')
28+
self.set_method('POST')
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+
35+
def get_ClientToken(self):
36+
return self.get_body_params().get('ClientToken')
37+
38+
def set_ClientToken(self,ClientToken):
39+
self.add_body_params('ClientToken', ClientToken)
40+
41+
def get_Host(self):
42+
return self.get_body_params().get('Host')
43+
44+
def set_Host(self,Host):
45+
self.add_body_params('Host', Host)
46+
47+
def get_DbUserName(self):
48+
return self.get_body_params().get('DbUserName')
49+
50+
def set_DbUserName(self,DbUserName):
51+
self.add_body_params('DbUserName', DbUserName)
52+
53+
def get_DbDescription(self):
54+
return self.get_body_params().get('DbDescription')
55+
56+
def set_DbDescription(self,DbDescription):
57+
self.add_body_params('DbDescription', DbDescription)
58+
59+
def get_GatewayId(self):
60+
return self.get_body_params().get('GatewayId')
61+
62+
def set_GatewayId(self,GatewayId):
63+
self.add_body_params('GatewayId', GatewayId)
64+
65+
def get_DbName(self):
66+
return self.get_body_params().get('DbName')
67+
68+
def set_DbName(self,DbName):
69+
self.add_body_params('DbName', DbName)
70+
71+
def get_Port(self):
72+
return self.get_body_params().get('Port')
73+
74+
def set_Port(self,Port):
75+
self.add_body_params('Port', Port)
76+
77+
def get_DbPassword(self):
78+
return self.get_body_params().get('DbPassword')
79+
80+
def set_DbPassword(self,DbPassword):
81+
self.add_body_params('DbPassword', DbPassword)
82+
83+
def get_DbType(self):
84+
return self.get_body_params().get('DbType')
85+
86+
def set_DbType(self,DbType):
87+
self.add_body_params('DbType', DbType)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
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 aliyunsdkdg.endpoint import endpoint_data
22+
23+
class ConnectDatabaseRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'dg', '2019-03-27', 'ConnectDatabase','dg')
27+
self.set_protocol_type('https')
28+
self.set_method('POST')
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+
35+
def get_DbName(self):
36+
return self.get_body_params().get('DbName')
37+
38+
def set_DbName(self,DbName):
39+
self.add_body_params('DbName', DbName)
40+
41+
def get_Port(self):
42+
return self.get_body_params().get('Port')
43+
44+
def set_Port(self,Port):
45+
self.add_body_params('Port', Port)
46+
47+
def get_DbPassword(self):
48+
return self.get_body_params().get('DbPassword')
49+
50+
def set_DbPassword(self,DbPassword):
51+
self.add_body_params('DbPassword', DbPassword)
52+
53+
def get_Host(self):
54+
return self.get_body_params().get('Host')
55+
56+
def set_Host(self,Host):
57+
self.add_body_params('Host', Host)
58+
59+
def get_DbType(self):
60+
return self.get_body_params().get('DbType')
61+
62+
def set_DbType(self,DbType):
63+
self.add_body_params('DbType', DbType)
64+
65+
def get_DbUserName(self):
66+
return self.get_body_params().get('DbUserName')
67+
68+
def set_DbUserName(self,DbUserName):
69+
self.add_body_params('DbUserName', DbUserName)
70+
71+
def get_GatewayId(self):
72+
return self.get_body_params().get('GatewayId')
73+
74+
def set_GatewayId(self,GatewayId):
75+
self.add_body_params('GatewayId', GatewayId)

0 commit comments

Comments
 (0)