Skip to content

Commit 3a52298

Browse files
committed
Generate SDK unified.
1 parent badf69a commit 3a52298

31 files changed

+992
-877
lines changed

aliyun-python-sdk-ecs/ChangeLog.txt

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-04-15 Version: 4.24.82
2+
- Generate SDK unified.
3+
14
2025-03-12 Version: 4.24.81
25
- Unified upgrade SDK.
36

Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '4.24.81'
1+
__version__ = '4.24.82'

aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/AuthorizeSecurityGroupEgressRequest.py

+47-45
Original file line numberDiff line numberDiff line change
@@ -46,26 +46,11 @@ def get_SourcePortRange(self): # String
4646

4747
def set_SourcePortRange(self, SourcePortRange): # String
4848
self.add_query_param('SourcePortRange', SourcePortRange)
49-
def get_ClientToken(self): # String
50-
return self.get_query_params().get('ClientToken')
51-
52-
def set_ClientToken(self, ClientToken): # String
53-
self.add_query_param('ClientToken', ClientToken)
5449
def get_DestPrefixListId(self): # String
5550
return self.get_query_params().get('DestPrefixListId')
5651

5752
def set_DestPrefixListId(self, DestPrefixListId): # String
5853
self.add_query_param('DestPrefixListId', DestPrefixListId)
59-
def get_SecurityGroupId(self): # String
60-
return self.get_query_params().get('SecurityGroupId')
61-
62-
def set_SecurityGroupId(self, SecurityGroupId): # String
63-
self.add_query_param('SecurityGroupId', SecurityGroupId)
64-
def get_Description(self): # String
65-
return self.get_query_params().get('Description')
66-
67-
def set_Description(self, Description): # String
68-
self.add_query_param('Description', Description)
6954
def get_Permissions(self): # Array
7055
return self.get_query_params().get('Permissions')
7156

@@ -101,51 +86,28 @@ def set_Permissions(self, Permissions): # Array
10186
self.add_query_param('Permissions.' + str(index1 + 1) + '.NicType', value1.get('NicType'))
10287
if value1.get('Description') is not None:
10388
self.add_query_param('Permissions.' + str(index1 + 1) + '.Description', value1.get('Description'))
104-
def get_Policy(self): # String
105-
return self.get_query_params().get('Policy')
106-
107-
def set_Policy(self, Policy): # String
108-
self.add_query_param('Policy', Policy)
89+
if value1.get('PortRangeListId') is not None:
90+
self.add_query_param('Permissions.' + str(index1 + 1) + '.PortRangeListId', value1.get('PortRangeListId'))
10991
def get_Ipv6DestCidrIp(self): # String
11092
return self.get_query_params().get('Ipv6DestCidrIp')
11193

11294
def set_Ipv6DestCidrIp(self, Ipv6DestCidrIp): # String
11395
self.add_query_param('Ipv6DestCidrIp', Ipv6DestCidrIp)
114-
def get_Ipv6SourceCidrIp(self): # String
115-
return self.get_query_params().get('Ipv6SourceCidrIp')
116-
117-
def set_Ipv6SourceCidrIp(self, Ipv6SourceCidrIp): # String
118-
self.add_query_param('Ipv6SourceCidrIp', Ipv6SourceCidrIp)
11996
def get_PortRange(self): # String
12097
return self.get_query_params().get('PortRange')
12198

12299
def set_PortRange(self, PortRange): # String
123100
self.add_query_param('PortRange', PortRange)
124-
def get_ResourceOwnerAccount(self): # String
125-
return self.get_query_params().get('ResourceOwnerAccount')
126-
127-
def set_ResourceOwnerAccount(self, ResourceOwnerAccount): # String
128-
self.add_query_param('ResourceOwnerAccount', ResourceOwnerAccount)
129101
def get_IpProtocol(self): # String
130102
return self.get_query_params().get('IpProtocol')
131103

132104
def set_IpProtocol(self, IpProtocol): # String
133105
self.add_query_param('IpProtocol', IpProtocol)
134-
def get_OwnerAccount(self): # String
135-
return self.get_query_params().get('OwnerAccount')
136-
137-
def set_OwnerAccount(self, OwnerAccount): # String
138-
self.add_query_param('OwnerAccount', OwnerAccount)
139106
def get_SourceCidrIp(self): # String
140107
return self.get_query_params().get('SourceCidrIp')
141108

142109
def set_SourceCidrIp(self, SourceCidrIp): # String
143110
self.add_query_param('SourceCidrIp', SourceCidrIp)
144-
def get_DestGroupId(self): # String
145-
return self.get_query_params().get('DestGroupId')
146-
147-
def set_DestGroupId(self, DestGroupId): # String
148-
self.add_query_param('DestGroupId', DestGroupId)
149111
def get_OwnerId(self): # Long
150112
return self.get_query_params().get('OwnerId')
151113

@@ -156,16 +118,56 @@ def get_Priority(self): # String
156118

157119
def set_Priority(self, Priority): # String
158120
self.add_query_param('Priority', Priority)
159-
def get_DestGroupOwnerAccount(self): # String
160-
return self.get_query_params().get('DestGroupOwnerAccount')
161-
162-
def set_DestGroupOwnerAccount(self, DestGroupOwnerAccount): # String
163-
self.add_query_param('DestGroupOwnerAccount', DestGroupOwnerAccount)
164121
def get_DestCidrIp(self): # String
165122
return self.get_query_params().get('DestCidrIp')
166123

167124
def set_DestCidrIp(self, DestCidrIp): # String
168125
self.add_query_param('DestCidrIp', DestCidrIp)
126+
def get_ClientToken(self): # String
127+
return self.get_query_params().get('ClientToken')
128+
129+
def set_ClientToken(self, ClientToken): # String
130+
self.add_query_param('ClientToken', ClientToken)
131+
def get_SecurityGroupId(self): # String
132+
return self.get_query_params().get('SecurityGroupId')
133+
134+
def set_SecurityGroupId(self, SecurityGroupId): # String
135+
self.add_query_param('SecurityGroupId', SecurityGroupId)
136+
def get_Description(self): # String
137+
return self.get_query_params().get('Description')
138+
139+
def set_Description(self, Description): # String
140+
self.add_query_param('Description', Description)
141+
def get_Policy(self): # String
142+
return self.get_query_params().get('Policy')
143+
144+
def set_Policy(self, Policy): # String
145+
self.add_query_param('Policy', Policy)
146+
def get_Ipv6SourceCidrIp(self): # String
147+
return self.get_query_params().get('Ipv6SourceCidrIp')
148+
149+
def set_Ipv6SourceCidrIp(self, Ipv6SourceCidrIp): # String
150+
self.add_query_param('Ipv6SourceCidrIp', Ipv6SourceCidrIp)
151+
def get_ResourceOwnerAccount(self): # String
152+
return self.get_query_params().get('ResourceOwnerAccount')
153+
154+
def set_ResourceOwnerAccount(self, ResourceOwnerAccount): # String
155+
self.add_query_param('ResourceOwnerAccount', ResourceOwnerAccount)
156+
def get_OwnerAccount(self): # String
157+
return self.get_query_params().get('OwnerAccount')
158+
159+
def set_OwnerAccount(self, OwnerAccount): # String
160+
self.add_query_param('OwnerAccount', OwnerAccount)
161+
def get_DestGroupId(self): # String
162+
return self.get_query_params().get('DestGroupId')
163+
164+
def set_DestGroupId(self, DestGroupId): # String
165+
self.add_query_param('DestGroupId', DestGroupId)
166+
def get_DestGroupOwnerAccount(self): # String
167+
return self.get_query_params().get('DestGroupOwnerAccount')
168+
169+
def set_DestGroupOwnerAccount(self, DestGroupOwnerAccount): # String
170+
self.add_query_param('DestGroupOwnerAccount', DestGroupOwnerAccount)
169171
def get_DestGroupOwnerId(self): # Long
170172
return self.get_query_params().get('DestGroupOwnerId')
171173

aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/AuthorizeSecurityGroupRequest.py

+42-40
Original file line numberDiff line numberDiff line change
@@ -51,26 +51,6 @@ def get_SourcePortRange(self): # String
5151

5252
def set_SourcePortRange(self, SourcePortRange): # String
5353
self.add_query_param('SourcePortRange', SourcePortRange)
54-
def get_ClientToken(self): # String
55-
return self.get_query_params().get('ClientToken')
56-
57-
def set_ClientToken(self, ClientToken): # String
58-
self.add_query_param('ClientToken', ClientToken)
59-
def get_SecurityGroupId(self): # String
60-
return self.get_query_params().get('SecurityGroupId')
61-
62-
def set_SecurityGroupId(self, SecurityGroupId): # String
63-
self.add_query_param('SecurityGroupId', SecurityGroupId)
64-
def get_Description(self): # String
65-
return self.get_query_params().get('Description')
66-
67-
def set_Description(self, Description): # String
68-
self.add_query_param('Description', Description)
69-
def get_SourceGroupOwnerId(self): # Long
70-
return self.get_query_params().get('SourceGroupOwnerId')
71-
72-
def set_SourceGroupOwnerId(self, SourceGroupOwnerId): # Long
73-
self.add_query_param('SourceGroupOwnerId', SourceGroupOwnerId)
7454
def get_SourceGroupOwnerAccount(self): # String
7555
return self.get_query_params().get('SourceGroupOwnerAccount')
7656

@@ -111,16 +91,8 @@ def set_Permissions(self, Permissions): # Array
11191
self.add_query_param('Permissions.' + str(index1 + 1) + '.NicType', value1.get('NicType'))
11292
if value1.get('Description') is not None:
11393
self.add_query_param('Permissions.' + str(index1 + 1) + '.Description', value1.get('Description'))
114-
def get_Policy(self): # String
115-
return self.get_query_params().get('Policy')
116-
117-
def set_Policy(self, Policy): # String
118-
self.add_query_param('Policy', Policy)
119-
def get_Ipv6SourceCidrIp(self): # String
120-
return self.get_query_params().get('Ipv6SourceCidrIp')
121-
122-
def set_Ipv6SourceCidrIp(self, Ipv6SourceCidrIp): # String
123-
self.add_query_param('Ipv6SourceCidrIp', Ipv6SourceCidrIp)
94+
if value1.get('PortRangeListId') is not None:
95+
self.add_query_param('Permissions.' + str(index1 + 1) + '.PortRangeListId', value1.get('PortRangeListId'))
12496
def get_Ipv6DestCidrIp(self): # String
12597
return self.get_query_params().get('Ipv6DestCidrIp')
12698

@@ -131,21 +103,11 @@ def get_PortRange(self): # String
131103

132104
def set_PortRange(self, PortRange): # String
133105
self.add_query_param('PortRange', PortRange)
134-
def get_ResourceOwnerAccount(self): # String
135-
return self.get_query_params().get('ResourceOwnerAccount')
136-
137-
def set_ResourceOwnerAccount(self, ResourceOwnerAccount): # String
138-
self.add_query_param('ResourceOwnerAccount', ResourceOwnerAccount)
139106
def get_IpProtocol(self): # String
140107
return self.get_query_params().get('IpProtocol')
141108

142109
def set_IpProtocol(self, IpProtocol): # String
143110
self.add_query_param('IpProtocol', IpProtocol)
144-
def get_OwnerAccount(self): # String
145-
return self.get_query_params().get('OwnerAccount')
146-
147-
def set_OwnerAccount(self, OwnerAccount): # String
148-
self.add_query_param('OwnerAccount', OwnerAccount)
149111
def get_SourceCidrIp(self): # String
150112
return self.get_query_params().get('SourceCidrIp')
151113

@@ -171,3 +133,43 @@ def get_SourceGroupId(self): # String
171133

172134
def set_SourceGroupId(self, SourceGroupId): # String
173135
self.add_query_param('SourceGroupId', SourceGroupId)
136+
def get_ClientToken(self): # String
137+
return self.get_query_params().get('ClientToken')
138+
139+
def set_ClientToken(self, ClientToken): # String
140+
self.add_query_param('ClientToken', ClientToken)
141+
def get_SecurityGroupId(self): # String
142+
return self.get_query_params().get('SecurityGroupId')
143+
144+
def set_SecurityGroupId(self, SecurityGroupId): # String
145+
self.add_query_param('SecurityGroupId', SecurityGroupId)
146+
def get_Description(self): # String
147+
return self.get_query_params().get('Description')
148+
149+
def set_Description(self, Description): # String
150+
self.add_query_param('Description', Description)
151+
def get_SourceGroupOwnerId(self): # Long
152+
return self.get_query_params().get('SourceGroupOwnerId')
153+
154+
def set_SourceGroupOwnerId(self, SourceGroupOwnerId): # Long
155+
self.add_query_param('SourceGroupOwnerId', SourceGroupOwnerId)
156+
def get_Policy(self): # String
157+
return self.get_query_params().get('Policy')
158+
159+
def set_Policy(self, Policy): # String
160+
self.add_query_param('Policy', Policy)
161+
def get_Ipv6SourceCidrIp(self): # String
162+
return self.get_query_params().get('Ipv6SourceCidrIp')
163+
164+
def set_Ipv6SourceCidrIp(self, Ipv6SourceCidrIp): # String
165+
self.add_query_param('Ipv6SourceCidrIp', Ipv6SourceCidrIp)
166+
def get_ResourceOwnerAccount(self): # String
167+
return self.get_query_params().get('ResourceOwnerAccount')
168+
169+
def set_ResourceOwnerAccount(self, ResourceOwnerAccount): # String
170+
self.add_query_param('ResourceOwnerAccount', ResourceOwnerAccount)
171+
def get_OwnerAccount(self): # String
172+
return self.get_query_params().get('OwnerAccount')
173+
174+
def set_OwnerAccount(self, OwnerAccount): # String
175+
self.add_query_param('OwnerAccount', OwnerAccount)

aliyun-python-sdk-ecs/aliyunsdkecs/request/v20140526/CreateAutoProvisioningGroupRequest.py

+11
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ def set_LaunchConfigurationDataDisks(self, LaunchConfigurationDataDisk): # Repe
6363
self.add_query_param('LaunchConfiguration.DataDisk.' + str(depth1 + 1) + '.ProvisionedIops', LaunchConfigurationDataDisk[depth1].get('ProvisionedIops'))
6464
if LaunchConfigurationDataDisk[depth1].get('BurstingEnabled') is not None:
6565
self.add_query_param('LaunchConfiguration.DataDisk.' + str(depth1 + 1) + '.BurstingEnabled', LaunchConfigurationDataDisk[depth1].get('BurstingEnabled'))
66+
if LaunchConfigurationDataDisk[depth1].get('AutoSnapshotPolicyId') is not None:
67+
self.add_query_param('LaunchConfiguration.DataDisk.' + str(depth1 + 1) + '.AutoSnapshotPolicyId', LaunchConfigurationDataDisk[depth1].get('AutoSnapshotPolicyId'))
6668
def get_ResourceOwnerId(self): # Long
6769
return self.get_query_params().get('ResourceOwnerId')
6870

@@ -226,6 +228,13 @@ def set_LaunchConfiguration(self, LaunchConfiguration): # Struct
226228
self.add_query_param('LaunchConfiguration.AutoRenew', LaunchConfiguration.get('AutoRenew'))
227229
if LaunchConfiguration.get('AutoRenewPeriod') is not None:
228230
self.add_query_param('LaunchConfiguration.AutoRenewPeriod', LaunchConfiguration.get('AutoRenewPeriod'))
231+
if LaunchConfiguration.get('SpotDuration') is not None:
232+
self.add_query_param('LaunchConfiguration.SpotDuration', LaunchConfiguration.get('SpotDuration'))
233+
if LaunchConfiguration.get('SpotInterruptionBehavior') is not None:
234+
self.add_query_param('LaunchConfiguration.SpotInterruptionBehavior', LaunchConfiguration.get('SpotInterruptionBehavior'))
235+
if LaunchConfiguration.get('ImageOptions') is not None:
236+
if LaunchConfiguration.get('ImageOptions').get('LoginAsNonRoot') is not None:
237+
self.add_query_param('LaunchConfiguration.ImageOptions.LoginAsNonRoot', LaunchConfiguration.get('ImageOptions').get('LoginAsNonRoot'))
229238
def get_LaunchConfigurationArns(self): # RepeatList
230239
return self.get_query_params().get('LaunchConfiguration.Arn')
231240

@@ -286,6 +295,8 @@ def set_LaunchConfigurationSystemDisk(self, LaunchConfigurationSystemDisk): # S
286295
self.add_query_param('LaunchConfiguration.SystemDisk.ProvisionedIops', LaunchConfigurationSystemDisk.get('ProvisionedIops'))
287296
if LaunchConfigurationSystemDisk.get('BurstingEnabled') is not None:
288297
self.add_query_param('LaunchConfiguration.SystemDisk.BurstingEnabled', LaunchConfigurationSystemDisk.get('BurstingEnabled'))
298+
if LaunchConfigurationSystemDisk.get('AutoSnapshotPolicyId') is not None:
299+
self.add_query_param('LaunchConfiguration.SystemDisk.AutoSnapshotPolicyId', LaunchConfigurationSystemDisk.get('AutoSnapshotPolicyId'))
289300
def get_LaunchConfigurationInstanceName(self): # String
290301
return self.get_query_params().get('LaunchConfiguration.InstanceName')
291302

0 commit comments

Comments
 (0)