Skip to content

Commit 65a29ae

Browse files
committed
Unified upgrade SDK.
1 parent e8fd673 commit 65a29ae

17 files changed

+435
-200
lines changed

aliyun-python-sdk-ecs/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2025-03-12 Version: 4.24.81
2+
- Unified upgrade SDK.
3+
14
2025-01-14 Version: 4.24.80
25
- Add EndTerminalSession.
36

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

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

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,6 @@ def get_ResourceOwnerId(self): # Long
3636

3737
def set_ResourceOwnerId(self, ResourceOwnerId): # Long
3838
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_Description(self): # String
45-
return self.get_query_params().get('Description')
46-
47-
def set_Description(self, Description): # String
48-
self.add_query_param('Description', Description)
4939
def get_CpuOverCommitRatio(self): # Float
5040
return self.get_query_params().get('CpuOverCommitRatio')
5141

@@ -66,11 +56,6 @@ def get_ActionOnMaintenance(self): # String
6656

6757
def set_ActionOnMaintenance(self, ActionOnMaintenance): # String
6858
self.add_query_param('ActionOnMaintenance', ActionOnMaintenance)
69-
def get_DedicatedHostClusterId(self): # String
70-
return self.get_query_params().get('DedicatedHostClusterId')
71-
72-
def set_DedicatedHostClusterId(self, DedicatedHostClusterId): # String
73-
self.add_query_param('DedicatedHostClusterId', DedicatedHostClusterId)
7459
def get_Tags(self): # RepeatList
7560
return self.get_query_params().get('Tag')
7661

@@ -80,11 +65,6 @@ def set_Tags(self, Tag): # RepeatList
8065
self.add_query_param('Tag.' + str(depth1 + 1) + '.Key', Tag[depth1].get('Key'))
8166
if Tag[depth1].get('Value') is not None:
8267
self.add_query_param('Tag.' + str(depth1 + 1) + '.Value', Tag[depth1].get('Value'))
83-
def get_DedicatedHostType(self): # String
84-
return self.get_query_params().get('DedicatedHostType')
85-
86-
def set_DedicatedHostType(self, DedicatedHostType): # String
87-
self.add_query_param('DedicatedHostType', DedicatedHostType)
8868
def get_AutoRenewPeriod(self): # Integer
8969
return self.get_query_params().get('AutoRenewPeriod')
9070

@@ -95,31 +75,11 @@ def get_Period(self): # Integer
9575

9676
def set_Period(self, Period): # Integer
9777
self.add_query_param('Period', Period)
98-
def get_Quantity(self): # Integer
99-
return self.get_query_params().get('Quantity')
100-
101-
def set_Quantity(self, Quantity): # Integer
102-
self.add_query_param('Quantity', Quantity)
10378
def get_DedicatedHostName(self): # String
10479
return self.get_query_params().get('DedicatedHostName')
10580

10681
def set_DedicatedHostName(self, DedicatedHostName): # String
10782
self.add_query_param('DedicatedHostName', DedicatedHostName)
108-
def get_ResourceOwnerAccount(self): # String
109-
return self.get_query_params().get('ResourceOwnerAccount')
110-
111-
def set_ResourceOwnerAccount(self, ResourceOwnerAccount): # String
112-
self.add_query_param('ResourceOwnerAccount', ResourceOwnerAccount)
113-
def get_OwnerAccount(self): # String
114-
return self.get_query_params().get('OwnerAccount')
115-
116-
def set_OwnerAccount(self, OwnerAccount): # String
117-
self.add_query_param('OwnerAccount', OwnerAccount)
118-
def get_AutoReleaseTime(self): # String
119-
return self.get_query_params().get('AutoReleaseTime')
120-
121-
def set_AutoReleaseTime(self, AutoReleaseTime): # String
122-
self.add_query_param('AutoReleaseTime', AutoReleaseTime)
12383
def get_OwnerId(self): # Long
12484
return self.get_query_params().get('OwnerId')
12585

@@ -150,13 +110,53 @@ def get_AutoPlacement(self): # String
150110

151111
def set_AutoPlacement(self, AutoPlacement): # String
152112
self.add_query_param('AutoPlacement', AutoPlacement)
153-
def get_ChargeType(self): # String
154-
return self.get_query_params().get('ChargeType')
155-
156-
def set_ChargeType(self, ChargeType): # String
157-
self.add_query_param('ChargeType', ChargeType)
158113
def get_NetworkAttributesUdpTimeout(self): # Integer
159114
return self.get_query_params().get('NetworkAttributes.UdpTimeout')
160115

161116
def set_NetworkAttributesUdpTimeout(self, NetworkAttributesUdpTimeout): # Integer
162117
self.add_query_param('NetworkAttributes.UdpTimeout', NetworkAttributesUdpTimeout)
118+
def get_ClientToken(self): # String
119+
return self.get_query_params().get('ClientToken')
120+
121+
def set_ClientToken(self, ClientToken): # String
122+
self.add_query_param('ClientToken', ClientToken)
123+
def get_Description(self): # String
124+
return self.get_query_params().get('Description')
125+
126+
def set_Description(self, Description): # String
127+
self.add_query_param('Description', Description)
128+
def get_DedicatedHostClusterId(self): # String
129+
return self.get_query_params().get('DedicatedHostClusterId')
130+
131+
def set_DedicatedHostClusterId(self, DedicatedHostClusterId): # String
132+
self.add_query_param('DedicatedHostClusterId', DedicatedHostClusterId)
133+
def get_DedicatedHostType(self): # String
134+
return self.get_query_params().get('DedicatedHostType')
135+
136+
def set_DedicatedHostType(self, DedicatedHostType): # String
137+
self.add_query_param('DedicatedHostType', DedicatedHostType)
138+
def get_Quantity(self): # Integer
139+
return self.get_query_params().get('Quantity')
140+
141+
def set_Quantity(self, Quantity): # Integer
142+
self.add_query_param('Quantity', Quantity)
143+
def get_ResourceOwnerAccount(self): # String
144+
return self.get_query_params().get('ResourceOwnerAccount')
145+
146+
def set_ResourceOwnerAccount(self, ResourceOwnerAccount): # String
147+
self.add_query_param('ResourceOwnerAccount', ResourceOwnerAccount)
148+
def get_OwnerAccount(self): # String
149+
return self.get_query_params().get('OwnerAccount')
150+
151+
def set_OwnerAccount(self, OwnerAccount): # String
152+
self.add_query_param('OwnerAccount', OwnerAccount)
153+
def get_AutoReleaseTime(self): # String
154+
return self.get_query_params().get('AutoReleaseTime')
155+
156+
def set_AutoReleaseTime(self, AutoReleaseTime): # String
157+
self.add_query_param('AutoReleaseTime', AutoReleaseTime)
158+
def get_ChargeType(self): # String
159+
return self.get_query_params().get('ChargeType')
160+
161+
def set_ChargeType(self, ChargeType): # String
162+
self.add_query_param('ChargeType', ChargeType)

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

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,17 @@ def get_LaunchTemplateId(self): # String
168168

169169
def set_LaunchTemplateId(self, LaunchTemplateId): # String
170170
self.add_query_param('LaunchTemplateId', LaunchTemplateId)
171+
def get_PrePaidOptions(self): # Struct
172+
return self.get_query_params().get('PrePaidOptions')
173+
174+
def set_PrePaidOptions(self, PrePaidOptions): # Struct
175+
if PrePaidOptions.get('SpecifyCapacityDistribution') is not None:
176+
for index1, value1 in enumerate(PrePaidOptions.get('SpecifyCapacityDistribution')):
177+
if value1.get('InstanceTypes') is not None:
178+
for index2, value2 in enumerate(value1.get('InstanceTypes')):
179+
self.add_query_param('PrePaidOptions.SpecifyCapacityDistribution.' + str(index1 + 1) + '.InstanceTypes.' + str(index2 + 1), value2)
180+
if value1.get('MinTargetCapacity') is not None:
181+
self.add_query_param('PrePaidOptions.SpecifyCapacityDistribution.' + str(index1 + 1) + '.MinTargetCapacity', value1.get('MinTargetCapacity'))
171182
def get_OwnerId(self): # Long
172183
return self.get_query_params().get('OwnerId')
173184

@@ -203,6 +214,18 @@ def get_MaxSpotPrice(self): # Float
203214

204215
def set_MaxSpotPrice(self, MaxSpotPrice): # Float
205216
self.add_query_param('MaxSpotPrice', MaxSpotPrice)
217+
def get_LaunchConfiguration(self): # Struct
218+
return self.get_query_params().get('LaunchConfiguration')
219+
220+
def set_LaunchConfiguration(self, LaunchConfiguration): # Struct
221+
if LaunchConfiguration.get('Period') is not None:
222+
self.add_query_param('LaunchConfiguration.Period', LaunchConfiguration.get('Period'))
223+
if LaunchConfiguration.get('PeriodUnit') is not None:
224+
self.add_query_param('LaunchConfiguration.PeriodUnit', LaunchConfiguration.get('PeriodUnit'))
225+
if LaunchConfiguration.get('AutoRenew') is not None:
226+
self.add_query_param('LaunchConfiguration.AutoRenew', LaunchConfiguration.get('AutoRenew'))
227+
if LaunchConfiguration.get('AutoRenewPeriod') is not None:
228+
self.add_query_param('LaunchConfiguration.AutoRenewPeriod', LaunchConfiguration.get('AutoRenewPeriod'))
206229
def get_LaunchConfigurationArns(self): # RepeatList
207230
return self.get_query_params().get('LaunchConfiguration.Arn')
208231

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

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,11 @@ def set_Tags(self, Tag): # RepeatList
7676
self.add_query_param('Tag.' + str(depth1 + 1) + '.Key', Tag[depth1].get('Key'))
7777
if Tag[depth1].get('Value') is not None:
7878
self.add_query_param('Tag.' + str(depth1 + 1) + '.Value', Tag[depth1].get('Value'))
79+
def get_AutoRenewPeriod(self): # Integer
80+
return self.get_query_params().get('AutoRenewPeriod')
81+
82+
def set_AutoRenewPeriod(self, AutoRenewPeriod): # Integer
83+
self.add_query_param('AutoRenewPeriod', AutoRenewPeriod)
7984
def get_Period(self): # Integer
8085
return self.get_query_params().get('Period')
8186

@@ -116,12 +121,30 @@ def get_PeriodUnit(self): # String
116121

117122
def set_PeriodUnit(self, PeriodUnit): # String
118123
self.add_query_param('PeriodUnit', PeriodUnit)
124+
def get_AutoRenew(self): # Boolean
125+
return self.get_query_params().get('AutoRenew')
126+
127+
def set_AutoRenew(self, AutoRenew): # Boolean
128+
self.add_query_param('AutoRenew', AutoRenew)
119129
def get_ZoneIds(self): # RepeatList
120130
return self.get_query_params().get('ZoneId')
121131

122132
def set_ZoneIds(self, ZoneId): # RepeatList
123133
for depth1 in range(len(ZoneId)):
124134
self.add_query_param('ZoneId.' + str(depth1 + 1), ZoneId[depth1])
135+
def get_RecurrenceRuless(self): # RepeatList
136+
return self.get_query_params().get('RecurrenceRules')
137+
138+
def set_RecurrenceRuless(self, RecurrenceRules): # RepeatList
139+
for depth1 in range(len(RecurrenceRules)):
140+
if RecurrenceRules[depth1].get('RecurrenceType') is not None:
141+
self.add_query_param('RecurrenceRules.' + str(depth1 + 1) + '.RecurrenceType', RecurrenceRules[depth1].get('RecurrenceType'))
142+
if RecurrenceRules[depth1].get('RecurrenceValue') is not None:
143+
self.add_query_param('RecurrenceRules.' + str(depth1 + 1) + '.RecurrenceValue', RecurrenceRules[depth1].get('RecurrenceValue'))
144+
if RecurrenceRules[depth1].get('StartHour') is not None:
145+
self.add_query_param('RecurrenceRules.' + str(depth1 + 1) + '.StartHour', RecurrenceRules[depth1].get('StartHour'))
146+
if RecurrenceRules[depth1].get('EndHour') is not None:
147+
self.add_query_param('RecurrenceRules.' + str(depth1 + 1) + '.EndHour', RecurrenceRules[depth1].get('EndHour'))
125148
def get_InstanceAmount(self): # Integer
126149
return self.get_query_params().get('InstanceAmount')
127150

0 commit comments

Comments
 (0)