Skip to content

Commit 3c6a430

Browse files
committed
Add ModifySystemEventAttribute.
1 parent 75d305c commit 3c6a430

74 files changed

Lines changed: 1858 additions & 112 deletions

File tree

Some content is hidden

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

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+
2026-07-01 Version: 4.24.83
2+
- Add ModifySystemEventAttribute.
3+
14
2025-04-15 Version: 4.24.82
25
- Generate SDK unified.
36

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

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

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

3737
def set_ResourceOwnerId(self, ResourceOwnerId): # Long
3838
self.add_query_param('ResourceOwnerId', ResourceOwnerId)
39+
def get_autoSnapshotPolicyId(self): # String
40+
return self.get_query_params().get('autoSnapshotPolicyId')
41+
42+
def set_autoSnapshotPolicyId(self, autoSnapshotPolicyId): # String
43+
self.add_query_param('autoSnapshotPolicyId', autoSnapshotPolicyId)
3944
def get_diskIds(self): # String
4045
return self.get_query_params().get('diskIds')
4146

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
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 aliyunsdkecs.endpoint import endpoint_data
22+
23+
class CloneDisksRequest(RpcRequest):
24+
25+
def __init__(self):
26+
RpcRequest.__init__(self, 'Ecs', '2014-05-26', 'CloneDisks','ecs')
27+
self.set_protocol_type('https')
28+
self.set_method('POST')
29+
30+
if hasattr(self, "endpoint_map"):
31+
setattr(self, "endpoint_map", endpoint_data.getEndpointMap())
32+
if hasattr(self, "endpoint_regional"):
33+
setattr(self, "endpoint_regional", endpoint_data.getEndpointRegional())
34+
35+
def get_ResourceOwnerId(self): # Long
36+
return self.get_query_params().get('ResourceOwnerId')
37+
38+
def set_ResourceOwnerId(self, ResourceOwnerId): # Long
39+
self.add_query_param('ResourceOwnerId', ResourceOwnerId)
40+
def get_ClientToken(self): # String
41+
return self.get_query_params().get('ClientToken')
42+
43+
def set_ClientToken(self, ClientToken): # String
44+
self.add_query_param('ClientToken', ClientToken)
45+
def get_DiskName(self): # String
46+
return self.get_query_params().get('DiskName')
47+
48+
def set_DiskName(self, DiskName): # String
49+
self.add_query_param('DiskName', DiskName)
50+
def get_ResourceGroupId(self): # String
51+
return self.get_query_params().get('ResourceGroupId')
52+
53+
def set_ResourceGroupId(self, ResourceGroupId): # String
54+
self.add_query_param('ResourceGroupId', ResourceGroupId)
55+
def get_DiskCategory(self): # String
56+
return self.get_query_params().get('DiskCategory')
57+
58+
def set_DiskCategory(self, DiskCategory): # String
59+
self.add_query_param('DiskCategory', DiskCategory)
60+
def get_MultiAttach(self): # String
61+
return self.get_query_params().get('MultiAttach')
62+
63+
def set_MultiAttach(self, MultiAttach): # String
64+
self.add_query_param('MultiAttach', MultiAttach)
65+
def get_Tags(self): # RepeatList
66+
return self.get_query_params().get('Tag')
67+
68+
def set_Tags(self, Tag): # RepeatList
69+
for depth1 in range(len(Tag)):
70+
if Tag[depth1].get('Value') is not None:
71+
self.add_query_param('Tag.' + str(depth1 + 1) + '.Value', Tag[depth1].get('Value'))
72+
if Tag[depth1].get('Key') is not None:
73+
self.add_query_param('Tag.' + str(depth1 + 1) + '.Key', Tag[depth1].get('Key'))
74+
def get_Arns(self): # RepeatList
75+
return self.get_query_params().get('Arn')
76+
77+
def set_Arns(self, Arn): # RepeatList
78+
for depth1 in range(len(Arn)):
79+
if Arn[depth1].get('Rolearn') is not None:
80+
self.add_query_param('Arn.' + str(depth1 + 1) + '.Rolearn', Arn[depth1].get('Rolearn'))
81+
if Arn[depth1].get('RoleType') is not None:
82+
self.add_query_param('Arn.' + str(depth1 + 1) + '.RoleType', Arn[depth1].get('RoleType'))
83+
if Arn[depth1].get('AssumeRoleFor') is not None:
84+
self.add_query_param('Arn.' + str(depth1 + 1) + '.AssumeRoleFor', Arn[depth1].get('AssumeRoleFor'))
85+
def get_SourceDiskId(self): # String
86+
return self.get_query_params().get('SourceDiskId')
87+
88+
def set_SourceDiskId(self, SourceDiskId): # String
89+
self.add_query_param('SourceDiskId', SourceDiskId)
90+
def get_DryRun(self): # String
91+
return self.get_query_params().get('DryRun')
92+
93+
def set_DryRun(self, DryRun): # String
94+
self.add_query_param('DryRun', DryRun)
95+
def get_PerformanceLevel(self): # String
96+
return self.get_query_params().get('PerformanceLevel')
97+
98+
def set_PerformanceLevel(self, PerformanceLevel): # String
99+
self.add_query_param('PerformanceLevel', PerformanceLevel)
100+
def get_OwnerId(self): # Long
101+
return self.get_query_params().get('OwnerId')
102+
103+
def set_OwnerId(self, OwnerId): # Long
104+
self.add_query_param('OwnerId', OwnerId)
105+
def get_BurstingEnabled(self): # Boolean
106+
return self.get_query_params().get('BurstingEnabled')
107+
108+
def set_BurstingEnabled(self, BurstingEnabled): # Boolean
109+
self.add_query_param('BurstingEnabled', BurstingEnabled)
110+
def get_ProvisionedIops(self): # Long
111+
return self.get_query_params().get('ProvisionedIops')
112+
113+
def set_ProvisionedIops(self, ProvisionedIops): # Long
114+
self.add_query_param('ProvisionedIops', ProvisionedIops)
115+
def get_Size(self): # Integer
116+
return self.get_query_params().get('Size')
117+
118+
def set_Size(self, Size): # Integer
119+
self.add_query_param('Size', Size)
120+
def get_Encrypted(self): # Boolean
121+
return self.get_query_params().get('Encrypted')
122+
123+
def set_Encrypted(self, Encrypted): # Boolean
124+
self.add_query_param('Encrypted', Encrypted)
125+
def get_KmsKeyId(self): # String
126+
return self.get_query_params().get('KmsKeyId')
127+
128+
def set_KmsKeyId(self, KmsKeyId): # String
129+
self.add_query_param('KmsKeyId', KmsKeyId)

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

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

4747
def set_EncryptAlgorithm(self, EncryptAlgorithm): # String
4848
self.add_query_param('EncryptAlgorithm', EncryptAlgorithm)
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)
4954
def get_DestinationRegionId(self): # String
5055
return self.get_query_params().get('DestinationRegionId')
5156

@@ -65,6 +70,11 @@ def set_Tags(self, Tag): # RepeatList
6570
self.add_query_param('Tag.' + str(depth1 + 1) + '.Value', Tag[depth1].get('Value'))
6671
if Tag[depth1].get('Key') is not None:
6772
self.add_query_param('Tag.' + str(depth1 + 1) + '.Key', Tag[depth1].get('Key'))
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)
6878
def get_ResourceOwnerAccount(self): # String
6979
return self.get_query_params().get('ResourceOwnerAccount')
7080

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ 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)
3944
def get_Description(self): # String
4045
return self.get_query_params().get('Description')
4146

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

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,11 @@ def get_MinTargetCapacity(self): # String
211211

212212
def set_MinTargetCapacity(self, MinTargetCapacity): # String
213213
self.add_query_param('MinTargetCapacity', MinTargetCapacity)
214+
def get_ExecutionMode(self): # String
215+
return self.get_query_params().get('ExecutionMode')
216+
217+
def set_ExecutionMode(self, ExecutionMode): # String
218+
self.add_query_param('ExecutionMode', ExecutionMode)
214219
def get_MaxSpotPrice(self): # Float
215220
return self.get_query_params().get('MaxSpotPrice')
216221

@@ -235,6 +240,19 @@ def set_LaunchConfiguration(self, LaunchConfiguration): # Struct
235240
if LaunchConfiguration.get('ImageOptions') is not None:
236241
if LaunchConfiguration.get('ImageOptions').get('LoginAsNonRoot') is not None:
237242
self.add_query_param('LaunchConfiguration.ImageOptions.LoginAsNonRoot', LaunchConfiguration.get('ImageOptions').get('LoginAsNonRoot'))
243+
if LaunchConfiguration.get('SchedulerOptions') is not None:
244+
if LaunchConfiguration.get('SchedulerOptions').get('DedicatedHostId') is not None:
245+
self.add_query_param('LaunchConfiguration.SchedulerOptions.DedicatedHostId', LaunchConfiguration.get('SchedulerOptions').get('DedicatedHostId'))
246+
if LaunchConfiguration.get('SchedulerOptions').get('DedicatedHostClusterId') is not None:
247+
self.add_query_param('LaunchConfiguration.SchedulerOptions.DedicatedHostClusterId', LaunchConfiguration.get('SchedulerOptions').get('DedicatedHostClusterId'))
248+
if LaunchConfiguration.get('SecurityOptions') is not None:
249+
if LaunchConfiguration.get('SecurityOptions').get('TrustedSystemMode') is not None:
250+
self.add_query_param('LaunchConfiguration.SecurityOptions.TrustedSystemMode', LaunchConfiguration.get('SecurityOptions').get('TrustedSystemMode'))
251+
if LaunchConfiguration.get('CpuOptions') is not None:
252+
if LaunchConfiguration.get('CpuOptions').get('Core') is not None:
253+
self.add_query_param('LaunchConfiguration.CpuOptions.Core', LaunchConfiguration.get('CpuOptions').get('Core'))
254+
if LaunchConfiguration.get('CpuOptions').get('ThreadsPerCore') is not None:
255+
self.add_query_param('LaunchConfiguration.CpuOptions.ThreadsPerCore', LaunchConfiguration.get('CpuOptions').get('ThreadsPerCore'))
238256
def get_LaunchConfigurationArns(self): # RepeatList
239257
return self.get_query_params().get('LaunchConfiguration.Arn')
240258

@@ -317,6 +335,14 @@ def get_ResourcePoolOptions(self): # Struct
317335

318336
def set_ResourcePoolOptions(self, ResourcePoolOptions): # Struct
319337
self.add_query_param("ResourcePoolOptions", json.dumps(ResourcePoolOptions))
338+
def get_CandidateOptions(self): # Struct
339+
return self.get_query_params().get('CandidateOptions')
340+
341+
def set_CandidateOptions(self, CandidateOptions): # Struct
342+
if CandidateOptions.get('TimeoutMinutes') is not None:
343+
self.add_query_param('CandidateOptions.TimeoutMinutes', CandidateOptions.get('TimeoutMinutes'))
344+
if CandidateOptions.get('Evaluate') is not None:
345+
self.add_query_param('CandidateOptions.Evaluate', CandidateOptions.get('Evaluate'))
320346
def get_TerminateInstances(self): # Boolean
321347
return self.get_query_params().get('TerminateInstances')
322348

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

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

102102
def set_InstanceType(self, InstanceType): # String
103103
self.add_query_param('InstanceType', InstanceType)
104+
def get_InstanceChargeType(self): # String
105+
return self.get_query_params().get('InstanceChargeType')
106+
107+
def set_InstanceChargeType(self, InstanceChargeType): # String
108+
self.add_query_param('InstanceChargeType', InstanceChargeType)
104109
def get_ResourceOwnerAccount(self): # String
105110
return self.get_query_params().get('ResourceOwnerAccount')
106111

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ 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)
3944
def get_WorkingDir(self): # String
4045
return self.get_query_params().get('WorkingDir')
4146

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

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

4747
def set_Description(self, Description): # String
4848
self.add_query_param('Description', Description)
49+
def get_Type(self): # String
50+
return self.get_query_params().get('Type')
51+
52+
def set_Type(self, Type): # String
53+
self.add_query_param('Type', Type)
4954
def get_GroupCount(self): # Long
5055
return self.get_query_params().get('GroupCount')
5156

@@ -91,3 +96,8 @@ def get_Strategy(self): # String
9196

9297
def set_Strategy(self, Strategy): # String
9398
self.add_query_param('Strategy', Strategy)
99+
def get_Affinity(self): # Long
100+
return self.get_query_params().get('Affinity')
101+
102+
def set_Affinity(self, Affinity): # Long
103+
self.add_query_param('Affinity', Affinity)

0 commit comments

Comments
 (0)