Skip to content

Commit 9590d3e

Browse files
committed
Support HA VPN attachment.
1 parent 2860e93 commit 9590d3e

File tree

103 files changed

+3619
-148
lines changed

Some content is hidden

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

103 files changed

+3619
-148
lines changed

aliyun-python-sdk-vpc/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2024-10-25 Version: 3.0.46
2+
- Support HA VPN attachment.
3+
14
2023-07-21 Version: 3.0.45
25
- Add error code.
36
- Add Deliver Param.

aliyun-python-sdk-vpc/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Aliyun Python SDK is the official software development kit. It makes things easy
88

99
This module works on Python versions:
1010

11-
2.6.5 and greater
11+
3.7 and greater
1212

1313
**Documentation:**
1414

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '3.0.45'
1+
__version__ = '3.0.46'

aliyun-python-sdk-vpc/aliyunsdkvpc/endpoint.py

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,45 +21,37 @@
2121
class EndpointData():
2222
def __init__(self):
2323
self.endpoint_map = {
24-
"cn-shanghai-internal-test-1": "vpc.aliyuncs.com",
24+
"cn-shanghai-internal-test-1": "vpc-pre.cn-hangzhou.aliyuncs.com",
2525
"cn-beijing-gov-1": "vpc.aliyuncs.com",
2626
"cn-shenzhen-su18-b01": "vpc.aliyuncs.com",
27-
"cn-beijing": "vpc.aliyuncs.com",
2827
"cn-shanghai-inner": "vpc.aliyuncs.com",
2928
"cn-shenzhen-st4-d01": "vpc.aliyuncs.com",
3029
"cn-haidian-cm12-c01": "vpc.aliyuncs.com",
3130
"cn-hangzhou-internal-prod-1": "vpc.aliyuncs.com",
3231
"cn-north-2-gov-1": "vpc.aliyuncs.com",
3332
"cn-yushanfang": "vpc.aliyuncs.com",
34-
"cn-qingdao": "vpc.aliyuncs.com",
3533
"cn-hongkong-finance-pop": "vpc.aliyuncs.com",
3634
"cn-qingdao-nebula": "vpc-nebula.cn-qingdao-nebula.aliyuncs.com",
37-
"cn-shanghai": "vpc.aliyuncs.com",
3835
"cn-shanghai-finance-1": "vpc.aliyuncs.com",
39-
"cn-hongkong": "vpc.aliyuncs.com",
4036
"cn-beijing-finance-pop": "vpc.aliyuncs.com",
4137
"cn-wuhan": "vpc.aliyuncs.com",
42-
"us-west-1": "vpc.aliyuncs.com",
4338
"cn-zhangbei": "vpc.aliyuncs.com",
44-
"cn-shenzhen": "vpc.aliyuncs.com",
4539
"cn-zhengzhou-nebula-1": "vpc-nebula.cn-qingdao-nebula.aliyuncs.com",
4640
"rus-west-1-pop": "vpc.aliyuncs.com",
47-
"cn-shanghai-et15-b01": "vpc.aliyuncs.com",
41+
"cn-shanghai-et15-b01": "vpc-pre.cn-hangzhou.aliyuncs.com",
4842
"cn-hangzhou-bj-b01": "vpc.aliyuncs.com",
49-
"cn-hangzhou-internal-test-1": "vpc.aliyuncs.com",
43+
"cn-hangzhou-internal-test-1": "vpc-pre.cn-hangzhou.aliyuncs.com",
5044
"eu-west-1-oxs": "vpc-nebula.cn-shenzhen-cloudstone.aliyuncs.com",
5145
"cn-zhangbei-na61-b01": "vpc.aliyuncs.com",
52-
"cn-hangzhou-internal-test-3": "vpc.aliyuncs.com",
46+
"cn-hangzhou-internal-test-3": "vpc-pre.cn-hangzhou.aliyuncs.com",
5347
"cn-shenzhen-finance-1": "vpc.aliyuncs.com",
54-
"cn-hangzhou-internal-test-2": "vpc.aliyuncs.com",
55-
"cn-hangzhou-test-306": "vpc.aliyuncs.com",
48+
"cn-hangzhou-internal-test-2": "vpc-inner-pre.cn-hangzhou.aliyuncs.com",
49+
"cn-hangzhou-test-306": "vpc-pre.cn-hangzhou.aliyuncs.com",
5650
"cn-huhehaote-nebula-1": "vpc-nebula.cn-qingdao-nebula.aliyuncs.com",
5751
"cn-shanghai-et2-b01": "vpc.aliyuncs.com",
5852
"cn-hangzhou-finance": "vpc.aliyuncs.com",
59-
"ap-southeast-1": "vpc.aliyuncs.com",
6053
"cn-beijing-nu16-b01": "vpc.aliyuncs.com",
6154
"cn-edge-1": "vpc-nebula.cn-qingdao-nebula.aliyuncs.com",
62-
"us-east-1": "vpc.aliyuncs.com",
6355
"cn-fujian": "vpc.aliyuncs.com",
6456
"ap-northeast-2-pop": "vpc.aliyuncs.com",
6557
"cn-shenzhen-inner": "vpc.aliyuncs.com",
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
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 aliyunsdkvpc.endpoint import endpoint_data
22+
23+
class AllocateIpv6AddressRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'Vpc', '2016-04-28', 'AllocateIpv6Address','vpc')
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_ClientToken(self): # String
40+
return self.get_query_params().get('ClientToken')
41+
42+
def set_ClientToken(self, ClientToken): # String
43+
self.add_query_param('ClientToken', ClientToken)
44+
def get_Ipv6AddressDescription(self): # String
45+
return self.get_query_params().get('Ipv6AddressDescription')
46+
47+
def set_Ipv6AddressDescription(self, Ipv6AddressDescription): # String
48+
self.add_query_param('Ipv6AddressDescription', Ipv6AddressDescription)
49+
def get_ResourceGroupId(self): # String
50+
return self.get_query_params().get('ResourceGroupId')
51+
52+
def set_ResourceGroupId(self, ResourceGroupId): # String
53+
self.add_query_param('ResourceGroupId', ResourceGroupId)
54+
def get_AddressType(self): # String
55+
return self.get_query_params().get('AddressType')
56+
57+
def set_AddressType(self, AddressType): # String
58+
self.add_query_param('AddressType', AddressType)
59+
def get_Tags(self): # RepeatList
60+
return self.get_query_params().get('Tag')
61+
62+
def set_Tags(self, Tag): # RepeatList
63+
for depth1 in range(len(Tag)):
64+
if Tag[depth1].get('Key') is not None:
65+
self.add_query_param('Tag.' + str(depth1 + 1) + '.Key', Tag[depth1].get('Key'))
66+
if Tag[depth1].get('Value') is not None:
67+
self.add_query_param('Tag.' + str(depth1 + 1) + '.Value', Tag[depth1].get('Value'))
68+
def get_Ipv6AddressName(self): # String
69+
return self.get_query_params().get('Ipv6AddressName')
70+
71+
def set_Ipv6AddressName(self, Ipv6AddressName): # String
72+
self.add_query_param('Ipv6AddressName', Ipv6AddressName)
73+
def get_DryRun(self): # Boolean
74+
return self.get_query_params().get('DryRun')
75+
76+
def set_DryRun(self, DryRun): # Boolean
77+
self.add_query_param('DryRun', DryRun)
78+
def get_ResourceOwnerAccount(self): # String
79+
return self.get_query_params().get('ResourceOwnerAccount')
80+
81+
def set_ResourceOwnerAccount(self, ResourceOwnerAccount): # String
82+
self.add_query_param('ResourceOwnerAccount', ResourceOwnerAccount)
83+
def get_OwnerAccount(self): # String
84+
return self.get_query_params().get('OwnerAccount')
85+
86+
def set_OwnerAccount(self, OwnerAccount): # String
87+
self.add_query_param('OwnerAccount', OwnerAccount)
88+
def get_OwnerId(self): # Long
89+
return self.get_query_params().get('OwnerId')
90+
91+
def set_OwnerId(self, OwnerId): # Long
92+
self.add_query_param('OwnerId', OwnerId)
93+
def get_VSwitchId(self): # String
94+
return self.get_query_params().get('VSwitchId')
95+
96+
def set_VSwitchId(self, VSwitchId): # String
97+
self.add_query_param('VSwitchId', VSwitchId)
98+
def get_Ipv6Address(self): # String
99+
return self.get_query_params().get('Ipv6Address')
100+
101+
def set_Ipv6Address(self, Ipv6Address): # String
102+
self.add_query_param('Ipv6Address', Ipv6Address)

aliyun-python-sdk-vpc/aliyunsdkvpc/request/v20160428/AllocateIpv6InternetBandwidthRequest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ def get_ClientToken(self): # String
4141

4242
def set_ClientToken(self, ClientToken): # String
4343
self.add_query_param('ClientToken', ClientToken)
44+
def get_DryRun(self): # Boolean
45+
return self.get_query_params().get('DryRun')
46+
47+
def set_DryRun(self, DryRun): # Boolean
48+
self.add_query_param('DryRun', DryRun)
4449
def get_Bandwidth(self): # Integer
4550
return self.get_query_params().get('Bandwidth')
4651

aliyun-python-sdk-vpc/aliyunsdkvpc/request/v20160428/AssociateNetworkAclRequest.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ def get_NetworkAclId(self): # String
4646

4747
def set_NetworkAclId(self, NetworkAclId): # String
4848
self.add_query_param('NetworkAclId', NetworkAclId)
49+
def get_DryRun(self): # Boolean
50+
return self.get_query_params().get('DryRun')
51+
52+
def set_DryRun(self, DryRun): # Boolean
53+
self.add_query_param('DryRun', DryRun)
4954
def get_Resources(self): # RepeatList
5055
return self.get_query_params().get('Resource')
5156

@@ -60,6 +65,11 @@ def get_ResourceOwnerAccount(self): # String
6065

6166
def set_ResourceOwnerAccount(self, ResourceOwnerAccount): # String
6267
self.add_query_param('ResourceOwnerAccount', ResourceOwnerAccount)
68+
def get_OwnerAccount(self): # String
69+
return self.get_query_params().get('OwnerAccount')
70+
71+
def set_OwnerAccount(self, OwnerAccount): # String
72+
self.add_query_param('OwnerAccount', OwnerAccount)
6373
def get_OwnerId(self): # Long
6474
return self.get_query_params().get('OwnerId')
6575

aliyun-python-sdk-vpc/aliyunsdkvpc/request/v20160428/AssociateRouteTableWithGatewayRequest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ def get_RouteTableId(self): # String
5151

5252
def set_RouteTableId(self, RouteTableId): # String
5353
self.add_query_param('RouteTableId', RouteTableId)
54+
def get_GatewayType(self): # String
55+
return self.get_query_params().get('GatewayType')
56+
57+
def set_GatewayType(self, GatewayType): # String
58+
self.add_query_param('GatewayType', GatewayType)
5459
def get_DryRun(self): # Boolean
5560
return self.get_query_params().get('DryRun')
5661

aliyun-python-sdk-vpc/aliyunsdkvpc/request/v20160428/AssociateVpcCidrBlockRequest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ def get_IPv6CidrBlock(self): # String
7171

7272
def set_IPv6CidrBlock(self, IPv6CidrBlock): # String
7373
self.add_query_param('IPv6CidrBlock', IPv6CidrBlock)
74+
def get_SecondaryCidrMask(self): # Integer
75+
return self.get_query_params().get('SecondaryCidrMask')
76+
77+
def set_SecondaryCidrMask(self, SecondaryCidrMask): # Integer
78+
self.add_query_param('SecondaryCidrMask', SecondaryCidrMask)
7479
def get_SecondaryCidrBlock(self): # String
7580
return self.get_query_params().get('SecondaryCidrBlock')
7681

aliyun-python-sdk-vpc/aliyunsdkvpc/request/v20160428/CompletePhysicalConnectionLOARequest.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,21 @@ def get_ClientToken(self): # String
4646

4747
def set_ClientToken(self, ClientToken): # String
4848
self.add_query_param('ClientToken', ClientToken)
49+
def get_LineSPContactInfo(self): # String
50+
return self.get_query_params().get('LineSPContactInfo')
51+
52+
def set_LineSPContactInfo(self, LineSPContactInfo): # String
53+
self.add_query_param('LineSPContactInfo', LineSPContactInfo)
54+
def get_FinishWork(self): # Boolean
55+
return self.get_query_params().get('FinishWork')
56+
57+
def set_FinishWork(self, FinishWork): # Boolean
58+
self.add_query_param('FinishWork', FinishWork)
59+
def get_LineServiceProvider(self): # String
60+
return self.get_query_params().get('LineServiceProvider')
61+
62+
def set_LineServiceProvider(self, LineServiceProvider): # String
63+
self.add_query_param('LineServiceProvider', LineServiceProvider)
4964
def get_LineLabel(self): # String
5065
return self.get_query_params().get('LineLabel')
5166

0 commit comments

Comments
 (0)