Skip to content

Commit 24da51f

Browse files
committed
Support flow log.
1 parent 979ce25 commit 24da51f

File tree

54 files changed

+2537
-723
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+2537
-723
lines changed

aliyun-python-sdk-cbn/ChangeLog.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2020-03-05 Version: 1.0.5
2+
- Support flow log.
3+
- Support route map.
4+
15
2019-03-14 Version: 1.0.2
26
1, Update Dependency
37

aliyun-python-sdk-cbn/README.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1+
=============================================================
12
aliyun-python-sdk-cbn
2-
This is the cbn module of Aliyun Python SDK.
3+
=============================================================
4+
5+
.. This is the cbn module of Aliyun Python SDK.
36
47
Aliyun Python SDK is the official software development kit. It makes things easy to integrate your Python application, library, or script with Aliyun services.
58

69
This module works on Python versions:
710

811
2.6.5 and greater
9-
Documentation:
1012

11-
Please visit http://develop.aliyun.com/sdk/python
13+
**Documentation:**
14+
15+
Please visit `http://develop.aliyun.com/sdk/python <http://develop.aliyun.com/sdk/python>`_
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.0.2"
1+
__version__ = '1.0.5'
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
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": "cbn.aliyuncs.com",
25+
"cn-shenzhen-su18-b01": "cbn.aliyuncs.com",
26+
"cn-beijing": "cbn.aliyuncs.com",
27+
"cn-shanghai-inner": "cbn.aliyuncs.com",
28+
"cn-hangzhou-internal-prod-1": "cbn.aliyuncs.com",
29+
"cn-north-2-gov-1": "cbn.aliyuncs.com",
30+
"cn-yushanfang": "cbn.aliyuncs.com",
31+
"cn-qingdao-nebula": "cbn.aliyuncs.com",
32+
"cn-beijing-finance-pop": "cbn.aliyuncs.com",
33+
"cn-wuhan": "cbn.aliyuncs.com",
34+
"cn-zhangjiakou": "cbn.aliyuncs.com",
35+
"us-west-1": "cbn.aliyuncs.com",
36+
"rus-west-1-pop": "cbn.aliyuncs.com",
37+
"cn-shanghai-et15-b01": "cbn.aliyuncs.com",
38+
"cn-hangzhou-bj-b01": "cbn.aliyuncs.com",
39+
"cn-zhangbei-na61-b01": "cbn.aliyuncs.com",
40+
"ap-northeast-1": "cbn.aliyuncs.com",
41+
"cn-shanghai-et2-b01": "cbn.aliyuncs.com",
42+
"ap-southeast-1": "cbn.aliyuncs.com",
43+
"ap-southeast-2": "cbn.aliyuncs.com",
44+
"ap-southeast-3": "cbn.aliyuncs.com",
45+
"ap-southeast-5": "cbn.aliyuncs.com",
46+
"us-east-1": "cbn.aliyuncs.com",
47+
"cn-shenzhen-inner": "cbn.aliyuncs.com",
48+
"cn-zhangjiakou-na62-a01": "cbn.aliyuncs.com",
49+
"cn-beijing-gov-1": "cbn.aliyuncs.com",
50+
"ap-south-1": "cbn.aliyuncs.com",
51+
"cn-shenzhen-st4-d01": "cbn.aliyuncs.com",
52+
"cn-haidian-cm12-c01": "cbn.aliyuncs.com",
53+
"cn-qingdao": "cbn.aliyuncs.com",
54+
"cn-hongkong-finance-pop": "cbn.aliyuncs.com",
55+
"cn-shanghai": "cbn.aliyuncs.com",
56+
"cn-shanghai-finance-1": "cbn.aliyuncs.com",
57+
"cn-hongkong": "cbn.aliyuncs.com",
58+
"eu-central-1": "cbn.aliyuncs.com",
59+
"cn-shenzhen": "cbn.aliyuncs.com",
60+
"cn-zhengzhou-nebula-1": "cbn.aliyuncs.com",
61+
"eu-west-1": "cbn.aliyuncs.com",
62+
"cn-hangzhou-internal-test-1": "cbn.aliyuncs.com",
63+
"eu-west-1-oxs": "cbn.aliyuncs.com",
64+
"cn-beijing-finance-1": "cbn.aliyuncs.com",
65+
"cn-hangzhou-internal-test-3": "cbn.aliyuncs.com",
66+
"cn-shenzhen-finance-1": "cbn.aliyuncs.com",
67+
"cn-hangzhou-internal-test-2": "cbn.aliyuncs.com",
68+
"me-east-1": "cbn.aliyuncs.com",
69+
"cn-chengdu": "cbn.aliyuncs.com",
70+
"cn-hangzhou-test-306": "cbn.aliyuncs.com",
71+
"cn-hangzhou-finance": "cbn.aliyuncs.com",
72+
"cn-beijing-nu16-b01": "cbn.aliyuncs.com",
73+
"cn-edge-1": "cbn.aliyuncs.com",
74+
"cn-huhehaote": "cbn.aliyuncs.com",
75+
"cn-fujian": "cbn.aliyuncs.com",
76+
"ap-northeast-2-pop": "cbn.aliyuncs.com",
77+
"cn-hangzhou": "cbn.aliyuncs.com",
78+
}
79+
self.endpoint_regional = "regional"
80+
81+
def getEndpointMap(self):
82+
return self.endpoint_map
83+
84+
def getEndpointRegional(self):
85+
return self.endpoint_regional
86+
87+
88+
endpoint_data = EndpointData()
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
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 aliyunsdkcbn.endpoint import endpoint_data
22+
23+
class ActiveFlowLogRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'Cbn', '2017-09-12', 'ActiveFlowLog','Cbn')
27+
if hasattr(self, "endpoint_map"):
28+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
29+
if hasattr(self, "endpoint_regional"):
30+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
31+
32+
33+
def get_ResourceOwnerId(self):
34+
return self.get_query_params().get('ResourceOwnerId')
35+
36+
def set_ResourceOwnerId(self,ResourceOwnerId):
37+
self.add_query_param('ResourceOwnerId',ResourceOwnerId)
38+
39+
def get_ClientToken(self):
40+
return self.get_query_params().get('ClientToken')
41+
42+
def set_ClientToken(self,ClientToken):
43+
self.add_query_param('ClientToken',ClientToken)
44+
45+
def get_CenId(self):
46+
return self.get_query_params().get('CenId')
47+
48+
def set_CenId(self,CenId):
49+
self.add_query_param('CenId',CenId)
50+
51+
def get_ResourceOwnerAccount(self):
52+
return self.get_query_params().get('ResourceOwnerAccount')
53+
54+
def set_ResourceOwnerAccount(self,ResourceOwnerAccount):
55+
self.add_query_param('ResourceOwnerAccount',ResourceOwnerAccount)
56+
57+
def get_OwnerAccount(self):
58+
return self.get_query_params().get('OwnerAccount')
59+
60+
def set_OwnerAccount(self,OwnerAccount):
61+
self.add_query_param('OwnerAccount',OwnerAccount)
62+
63+
def get_OwnerId(self):
64+
return self.get_query_params().get('OwnerId')
65+
66+
def set_OwnerId(self,OwnerId):
67+
self.add_query_param('OwnerId',OwnerId)
68+
69+
def get_FlowLogId(self):
70+
return self.get_query_params().get('FlowLogId')
71+
72+
def set_FlowLogId(self,FlowLogId):
73+
self.add_query_param('FlowLogId',FlowLogId)

aliyun-python-sdk-cbn/aliyunsdkcbn/request/v20170912/AssociateCenBandwidthPackageRequest.py

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
# "License"); you may not use this file except in compliance
77
# with the License. You may obtain a copy of the License at
88
#
9-
# http://www.apache.org/licenses/LICENSE-2.0
109
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
1111
#
1212
#
1313
# Unless required by applicable law or agreed to in writing,
@@ -18,34 +18,35 @@
1818
# under the License.
1919

2020
from aliyunsdkcore.request import RpcRequest
21+
from aliyunsdkcbn.endpoint import endpoint_data
22+
2123
class AssociateCenBandwidthPackageRequest(RpcRequest):
2224

2325
def __init__(self):
24-
RpcRequest.__init__(self, 'Cbn', '2017-09-12', 'AssociateCenBandwidthPackage','cbn')
26+
RpcRequest.__init__(self, 'Cbn', '2017-09-12', 'AssociateCenBandwidthPackage','Cbn')
27+
if hasattr(self, "endpoint_map"):
28+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
29+
if hasattr(self, "endpoint_regional"):
30+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
31+
2532

2633
def get_ResourceOwnerId(self):
2734
return self.get_query_params().get('ResourceOwnerId')
2835

2936
def set_ResourceOwnerId(self,ResourceOwnerId):
3037
self.add_query_param('ResourceOwnerId',ResourceOwnerId)
3138

32-
def get_ResourceOwnerAccount(self):
33-
return self.get_query_params().get('ResourceOwnerAccount')
34-
35-
def set_ResourceOwnerAccount(self,ResourceOwnerAccount):
36-
self.add_query_param('ResourceOwnerAccount',ResourceOwnerAccount)
37-
3839
def get_CenId(self):
3940
return self.get_query_params().get('CenId')
4041

4142
def set_CenId(self,CenId):
4243
self.add_query_param('CenId',CenId)
4344

44-
def get_CenBandwidthPackageId(self):
45-
return self.get_query_params().get('CenBandwidthPackageId')
45+
def get_ResourceOwnerAccount(self):
46+
return self.get_query_params().get('ResourceOwnerAccount')
4647

47-
def set_CenBandwidthPackageId(self,CenBandwidthPackageId):
48-
self.add_query_param('CenBandwidthPackageId',CenBandwidthPackageId)
48+
def set_ResourceOwnerAccount(self,ResourceOwnerAccount):
49+
self.add_query_param('ResourceOwnerAccount',ResourceOwnerAccount)
4950

5051
def get_OwnerAccount(self):
5152
return self.get_query_params().get('OwnerAccount')
@@ -57,4 +58,10 @@ def get_OwnerId(self):
5758
return self.get_query_params().get('OwnerId')
5859

5960
def set_OwnerId(self,OwnerId):
60-
self.add_query_param('OwnerId',OwnerId)
61+
self.add_query_param('OwnerId',OwnerId)
62+
63+
def get_CenBandwidthPackageId(self):
64+
return self.get_query_params().get('CenBandwidthPackageId')
65+
66+
def set_CenBandwidthPackageId(self,CenBandwidthPackageId):
67+
self.add_query_param('CenBandwidthPackageId',CenBandwidthPackageId)

aliyun-python-sdk-cbn/aliyunsdkcbn/request/v20170912/AttachCenChildInstanceRequest.py

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
# "License"); you may not use this file except in compliance
77
# with the License. You may obtain a copy of the License at
88
#
9-
# http://www.apache.org/licenses/LICENSE-2.0
109
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
1111
#
1212
#
1313
# Unless required by applicable law or agreed to in writing,
@@ -18,35 +18,42 @@
1818
# under the License.
1919

2020
from aliyunsdkcore.request import RpcRequest
21+
from aliyunsdkcbn.endpoint import endpoint_data
22+
2123
class AttachCenChildInstanceRequest(RpcRequest):
2224

2325
def __init__(self):
24-
RpcRequest.__init__(self, 'Cbn', '2017-09-12', 'AttachCenChildInstance','cbn')
25-
26-
def get_ChildInstanceId(self):
27-
return self.get_query_params().get('ChildInstanceId')
26+
RpcRequest.__init__(self, 'Cbn', '2017-09-12', 'AttachCenChildInstance','Cbn')
27+
if hasattr(self, "endpoint_map"):
28+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
29+
if hasattr(self, "endpoint_regional"):
30+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
2831

29-
def set_ChildInstanceId(self,ChildInstanceId):
30-
self.add_query_param('ChildInstanceId',ChildInstanceId)
3132

3233
def get_ResourceOwnerId(self):
3334
return self.get_query_params().get('ResourceOwnerId')
3435

3536
def set_ResourceOwnerId(self,ResourceOwnerId):
3637
self.add_query_param('ResourceOwnerId',ResourceOwnerId)
3738

38-
def get_ResourceOwnerAccount(self):
39-
return self.get_query_params().get('ResourceOwnerAccount')
40-
41-
def set_ResourceOwnerAccount(self,ResourceOwnerAccount):
42-
self.add_query_param('ResourceOwnerAccount',ResourceOwnerAccount)
43-
4439
def get_CenId(self):
4540
return self.get_query_params().get('CenId')
4641

4742
def set_CenId(self,CenId):
4843
self.add_query_param('CenId',CenId)
4944

45+
def get_ChildInstanceRegionId(self):
46+
return self.get_query_params().get('ChildInstanceRegionId')
47+
48+
def set_ChildInstanceRegionId(self,ChildInstanceRegionId):
49+
self.add_query_param('ChildInstanceRegionId',ChildInstanceRegionId)
50+
51+
def get_ResourceOwnerAccount(self):
52+
return self.get_query_params().get('ResourceOwnerAccount')
53+
54+
def set_ResourceOwnerAccount(self,ResourceOwnerAccount):
55+
self.add_query_param('ResourceOwnerAccount',ResourceOwnerAccount)
56+
5057
def get_OwnerAccount(self):
5158
return self.get_query_params().get('OwnerAccount')
5259

@@ -71,8 +78,8 @@ def get_ChildInstanceOwnerId(self):
7178
def set_ChildInstanceOwnerId(self,ChildInstanceOwnerId):
7279
self.add_query_param('ChildInstanceOwnerId',ChildInstanceOwnerId)
7380

74-
def get_ChildInstanceRegionId(self):
75-
return self.get_query_params().get('ChildInstanceRegionId')
81+
def get_ChildInstanceId(self):
82+
return self.get_query_params().get('ChildInstanceId')
7683

77-
def set_ChildInstanceRegionId(self,ChildInstanceRegionId):
78-
self.add_query_param('ChildInstanceRegionId',ChildInstanceRegionId)
84+
def set_ChildInstanceId(self,ChildInstanceId):
85+
self.add_query_param('ChildInstanceId',ChildInstanceId)

0 commit comments

Comments
 (0)