Skip to content

Commit dfe99b9

Browse files
committed
Add DiskIds for CreateSnapshotGroup.
1 parent 7eaedf0 commit dfe99b9

12 files changed

+105
-16
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+
2021-09-14 Version: 4.24.8
2+
- Add DiskIds for CreateSnapshotGroup.
3+
14
2021-08-19 Version: 4.24.7
25
- Add SupportSessionManager for DescribeCloudAssistantStatus.
36

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

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ def get_Description(self):
5555
def set_Description(self,Description):
5656
self.add_query_param('Description',Description)
5757

58+
def get_Type(self):
59+
return self.get_query_params().get('Type')
60+
61+
def set_Type(self,Type):
62+
self.add_query_param('Type',Type)
63+
5864
def get_Capacity(self):
5965
return self.get_query_params().get('Capacity')
6066

@@ -79,12 +85,6 @@ def get_ResourceOwnerAccount(self):
7985
def set_ResourceOwnerAccount(self,ResourceOwnerAccount):
8086
self.add_query_param('ResourceOwnerAccount',ResourceOwnerAccount)
8187

82-
def get_PerformanceLevel(self):
83-
return self.get_query_params().get('PerformanceLevel')
84-
85-
def set_PerformanceLevel(self,PerformanceLevel):
86-
self.add_query_param('PerformanceLevel',PerformanceLevel)
87-
8888
def get_OwnerAccount(self):
8989
return self.get_query_params().get('OwnerAccount')
9090

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,6 @@ def set_Arns(self, Arns):
119119
if Arns[depth1].get('AssumeRoleFor') is not None:
120120
self.add_query_param('Arn.' + str(depth1 + 1) + '.AssumeRoleFor', Arns[depth1].get('AssumeRoleFor'))
121121

122-
def get_DedicatedBlockStorageClusterId(self):
123-
return self.get_query_params().get('DedicatedBlockStorageClusterId')
124-
125-
def set_DedicatedBlockStorageClusterId(self,DedicatedBlockStorageClusterId):
126-
self.add_query_param('DedicatedBlockStorageClusterId',DedicatedBlockStorageClusterId)
127-
128122
def get_ResourceOwnerAccount(self):
129123
return self.get_query_params().get('ResourceOwnerAccount')
130124

@@ -179,6 +173,12 @@ def get_ZoneId(self):
179173
def set_ZoneId(self,ZoneId):
180174
self.add_query_param('ZoneId',ZoneId)
181175

176+
def get_StorageClusterId(self):
177+
return self.get_query_params().get('StorageClusterId')
178+
179+
def set_StorageClusterId(self,StorageClusterId):
180+
self.add_query_param('StorageClusterId',StorageClusterId)
181+
182182
def get_KMSKeyId(self):
183183
return self.get_query_params().get('KMSKeyId')
184184

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@ def get_Password(self):
9797
def set_Password(self,Password):
9898
self.add_query_param('Password',Password)
9999

100+
def get_SystemDisk(self):
101+
return self.get_query_params().get('SystemDisk')
102+
103+
def set_SystemDisk(self,SystemDisk):
104+
self.add_query_param('SystemDisk',SystemDisk)
105+
100106
def get_DeploymentSetGroupNo(self):
101107
return self.get_query_params().get('DeploymentSetGroupNo')
102108

@@ -414,6 +420,8 @@ def set_DataDisks(self, DataDisks):
414420
self.add_query_param('DataDisk.' + str(depth1 + 1) + '.EncryptAlgorithm', DataDisks[depth1].get('EncryptAlgorithm'))
415421
if DataDisks[depth1].get('Description') is not None:
416422
self.add_query_param('DataDisk.' + str(depth1 + 1) + '.Description', DataDisks[depth1].get('Description'))
423+
if DataDisks[depth1].get('StorageClusterId') is not None:
424+
self.add_query_param('DataDisk.' + str(depth1 + 1) + '.StorageClusterId', DataDisks[depth1].get('StorageClusterId'))
417425
if DataDisks[depth1].get('Category') is not None:
418426
self.add_query_param('DataDisk.' + str(depth1 + 1) + '.Category', DataDisks[depth1].get('Category'))
419427
if DataDisks[depth1].get('KMSKeyId') is not None:

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,36 @@ def get_Description(self):
5757
def set_Description(self,Description):
5858
self.add_query_param('Description',Description)
5959

60+
def get_ResourceGroupId(self):
61+
return self.get_query_params().get('ResourceGroupId')
62+
63+
def set_ResourceGroupId(self,ResourceGroupId):
64+
self.add_query_param('ResourceGroupId',ResourceGroupId)
65+
6066
def get_InstantAccessRetentionDays(self):
6167
return self.get_query_params().get('InstantAccessRetentionDays')
6268

6369
def set_InstantAccessRetentionDays(self,InstantAccessRetentionDays):
6470
self.add_query_param('InstantAccessRetentionDays',InstantAccessRetentionDays)
6571

72+
def get_DiskIds(self):
73+
return self.get_query_params().get('DiskId')
74+
75+
def set_DiskIds(self, DiskIds):
76+
for depth1 in range(len(DiskIds)):
77+
if DiskIds[depth1] is not None:
78+
self.add_query_param('DiskId.' + str(depth1 + 1) , DiskIds[depth1])
79+
80+
def get_Tags(self):
81+
return self.get_query_params().get('Tag')
82+
83+
def set_Tags(self, Tags):
84+
for depth1 in range(len(Tags)):
85+
if Tags[depth1].get('Key') is not None:
86+
self.add_query_param('Tag.' + str(depth1 + 1) + '.Key', Tags[depth1].get('Key'))
87+
if Tags[depth1].get('Value') is not None:
88+
self.add_query_param('Tag.' + str(depth1 + 1) + '.Value', Tags[depth1].get('Value'))
89+
6690
def get_ResourceOwnerAccount(self):
6791
return self.get_query_params().get('ResourceOwnerAccount')
6892

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ def get_PageNumber(self):
4949
def set_PageNumber(self,PageNumber):
5050
self.add_query_param('PageNumber',PageNumber)
5151

52+
def get_ResourceGroupId(self):
53+
return self.get_query_params().get('ResourceGroupId')
54+
55+
def set_ResourceGroupId(self,ResourceGroupId):
56+
self.add_query_param('ResourceGroupId',ResourceGroupId)
57+
5258
def get_PageSize(self):
5359
return self.get_query_params().get('PageSize')
5460

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ def set_Tags(self, Tags):
6767
if Tags[depth1].get('Value') is not None:
6868
self.add_query_param('Tag.' + str(depth1 + 1) + '.Value', Tags[depth1].get('Value'))
6969

70+
def get_Owner(self):
71+
return self.get_query_params().get('Owner')
72+
73+
def set_Owner(self,Owner):
74+
self.add_query_param('Owner',Owner)
75+
7076
def get_ResourceOwnerAccount(self):
7177
return self.get_query_params().get('ResourceOwnerAccount')
7278

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

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@ def get_ResourceGroupId(self):
7979
def set_ResourceGroupId(self,ResourceGroupId):
8080
self.add_query_param('ResourceGroupId',ResourceGroupId)
8181

82+
def get_NextToken(self):
83+
return self.get_query_params().get('NextToken')
84+
85+
def set_NextToken(self,NextToken):
86+
self.add_query_param('NextToken',NextToken)
87+
8288
def get_PageSize(self):
8389
return self.get_query_params().get('PageSize')
8490

@@ -90,8 +96,8 @@ def get_Tags(self):
9096

9197
def set_Tags(self, Tags):
9298
for depth1 in range(len(Tags)):
93-
if Tags[depth1].get('Value') is not None:
94-
self.add_query_param('Tag.' + str(depth1 + 1) + '.Value', Tags[depth1].get('Value'))
99+
if Tags[depth1].get('value') is not None:
100+
self.add_query_param('Tag.' + str(depth1 + 1) + '.value', Tags[depth1].get('value'))
95101
if Tags[depth1].get('Key') is not None:
96102
self.add_query_param('Tag.' + str(depth1 + 1) + '.Key', Tags[depth1].get('Key'))
97103

@@ -135,4 +141,10 @@ def get_VpcId(self):
135141
return self.get_query_params().get('VpcId')
136142

137143
def set_VpcId(self,VpcId):
138-
self.add_query_param('VpcId',VpcId)
144+
self.add_query_param('VpcId',VpcId)
145+
146+
def get_MaxResults(self):
147+
return self.get_query_params().get('MaxResults')
148+
149+
def set_MaxResults(self,MaxResults):
150+
self.add_query_param('MaxResults',MaxResults)

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,28 @@ def get_ResourceOwnerId(self):
3737
def set_ResourceOwnerId(self,ResourceOwnerId):
3838
self.add_query_param('ResourceOwnerId',ResourceOwnerId)
3939

40+
def get_ResourceGroupId(self):
41+
return self.get_query_params().get('ResourceGroupId')
42+
43+
def set_ResourceGroupId(self,ResourceGroupId):
44+
self.add_query_param('ResourceGroupId',ResourceGroupId)
45+
4046
def get_NextToken(self):
4147
return self.get_query_params().get('NextToken')
4248

4349
def set_NextToken(self,NextToken):
4450
self.add_query_param('NextToken',NextToken)
4551

52+
def get_Tags(self):
53+
return self.get_query_params().get('Tag')
54+
55+
def set_Tags(self, Tags):
56+
for depth1 in range(len(Tags)):
57+
if Tags[depth1].get('Key') is not None:
58+
self.add_query_param('Tag.' + str(depth1 + 1) + '.Key', Tags[depth1].get('Key'))
59+
if Tags[depth1].get('Value') is not None:
60+
self.add_query_param('Tag.' + str(depth1 + 1) + '.Value', Tags[depth1].get('Value'))
61+
4662
def get_ResourceOwnerAccount(self):
4763
return self.get_query_params().get('ResourceOwnerAccount')
4864

0 commit comments

Comments
 (0)