Skip to content

Commit e5d843d

Browse files
committed
Ecs support hibernation.
1 parent f18f38c commit e5d843d

31 files changed

+1173
-1
lines changed

CHANGELOG

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2021-03-31 Version: 4.23.11
2+
- Ecs support hibernation.
3+
- DescribeSnapshotGroups add ProgressStatus.
4+
15
2021-03-30 Version: 3.3.4
26
- Generated 2020-05-18 for `dataworks-public`.
37

aliyun-net-sdk-ecs/Ecs/Model/V20140526/AllocateDedicatedHostsRequest.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ public AllocateDedicatedHostsRequest()
5050

5151
private string resourceGroupId;
5252

53+
private int? minQuantity;
54+
5355
private string actionOnMaintenance;
5456

5557
private string dedicatedHostClusterId;
@@ -153,6 +155,19 @@ public string ResourceGroupId
153155
}
154156
}
155157

158+
public int? MinQuantity
159+
{
160+
get
161+
{
162+
return minQuantity;
163+
}
164+
set
165+
{
166+
minQuantity = value;
167+
DictionaryUtil.Add(QueryParameters, "MinQuantity", value.ToString());
168+
}
169+
}
170+
156171
public string ActionOnMaintenance
157172
{
158173
get

aliyun-net-sdk-ecs/Ecs/Model/V20140526/CreateCapacityReservationRequest.cs

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,14 @@ public CreateCapacityReservationRequest()
5050

5151
private string platform;
5252

53+
private string resourceGroupId;
54+
5355
private string privatePoolOptionsMatchCriteria;
5456

5557
private string instanceType;
5658

59+
private List<Tag> tags = new List<Tag>(){ };
60+
5761
private string endTimeType;
5862

5963
private string resourceOwnerAccount;
@@ -135,6 +139,19 @@ public string Platform
135139
}
136140
}
137141

142+
public string ResourceGroupId
143+
{
144+
get
145+
{
146+
return resourceGroupId;
147+
}
148+
set
149+
{
150+
resourceGroupId = value;
151+
DictionaryUtil.Add(QueryParameters, "ResourceGroupId", value);
152+
}
153+
}
154+
138155
public string PrivatePoolOptionsMatchCriteria
139156
{
140157
get
@@ -161,6 +178,24 @@ public string InstanceType
161178
}
162179
}
163180

181+
public List<Tag> Tags
182+
{
183+
get
184+
{
185+
return tags;
186+
}
187+
188+
set
189+
{
190+
tags = value;
191+
for (int i = 0; i < tags.Count; i++)
192+
{
193+
DictionaryUtil.Add(QueryParameters,"Tag." + (i + 1) + ".Key", tags[i].Key);
194+
DictionaryUtil.Add(QueryParameters,"Tag." + (i + 1) + ".Value", tags[i].Value);
195+
}
196+
}
197+
}
198+
164199
public string EndTimeType
165200
{
166201
get
@@ -267,6 +302,38 @@ public int? InstanceAmount
267302
instanceAmount = value;
268303
DictionaryUtil.Add(QueryParameters, "InstanceAmount", value.ToString());
269304
}
305+
}
306+
307+
public class Tag
308+
{
309+
310+
private string key;
311+
312+
private string value_;
313+
314+
public string Key
315+
{
316+
get
317+
{
318+
return key;
319+
}
320+
set
321+
{
322+
key = value;
323+
}
324+
}
325+
326+
public string Value
327+
{
328+
get
329+
{
330+
return value_;
331+
}
332+
set
333+
{
334+
value_ = value;
335+
}
336+
}
270337
}
271338

272339
public override CreateCapacityReservationResponse GetResponse(UnmarshallerContext unmarshallerContext)

aliyun-net-sdk-ecs/Ecs/Model/V20140526/CreateElasticityAssuranceRequest.cs

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,14 @@ public CreateElasticityAssuranceRequest()
4848

4949
private string startTime;
5050

51+
private string resourceGroupId;
52+
5153
private string privatePoolOptionsMatchCriteria;
5254

5355
private List<string> instanceTypes = new List<string>(){ };
5456

57+
private List<Tag> tags = new List<Tag>(){ };
58+
5559
private int? period;
5660

5761
private string resourceOwnerAccount;
@@ -124,6 +128,19 @@ public string StartTime
124128
}
125129
}
126130

131+
public string ResourceGroupId
132+
{
133+
get
134+
{
135+
return resourceGroupId;
136+
}
137+
set
138+
{
139+
resourceGroupId = value;
140+
DictionaryUtil.Add(QueryParameters, "ResourceGroupId", value);
141+
}
142+
}
143+
127144
public string PrivatePoolOptionsMatchCriteria
128145
{
129146
get
@@ -154,6 +171,24 @@ public List<string> InstanceTypes
154171
}
155172
}
156173

174+
public List<Tag> Tags
175+
{
176+
get
177+
{
178+
return tags;
179+
}
180+
181+
set
182+
{
183+
tags = value;
184+
for (int i = 0; i < tags.Count; i++)
185+
{
186+
DictionaryUtil.Add(QueryParameters,"Tag." + (i + 1) + ".Key", tags[i].Key);
187+
DictionaryUtil.Add(QueryParameters,"Tag." + (i + 1) + ".Value", tags[i].Value);
188+
}
189+
}
190+
}
191+
157192
public int? Period
158193
{
159194
get
@@ -286,6 +321,38 @@ public int? InstanceAmount
286321
instanceAmount = value;
287322
DictionaryUtil.Add(QueryParameters, "InstanceAmount", value.ToString());
288323
}
324+
}
325+
326+
public class Tag
327+
{
328+
329+
private string key;
330+
331+
private string value_;
332+
333+
public string Key
334+
{
335+
get
336+
{
337+
return key;
338+
}
339+
set
340+
{
341+
key = value;
342+
}
343+
}
344+
345+
public string Value
346+
{
347+
get
348+
{
349+
return value_;
350+
}
351+
set
352+
{
353+
value_ = value;
354+
}
355+
}
289356
}
290357

291358
public override CreateElasticityAssuranceResponse GetResponse(UnmarshallerContext unmarshallerContext)

aliyun-net-sdk-ecs/Ecs/Model/V20140526/CreateInstanceRequest.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@ public CreateInstanceRequest()
116116

117117
private int? internetMaxBandwidthOut;
118118

119+
private bool? hibernationOptionsConfigured;
120+
119121
private string description;
120122

121123
private string systemDiskCategory;
@@ -667,6 +669,19 @@ public int? InternetMaxBandwidthOut
667669
}
668670
}
669671

672+
public bool? HibernationOptionsConfigured
673+
{
674+
get
675+
{
676+
return hibernationOptionsConfigured;
677+
}
678+
set
679+
{
680+
hibernationOptionsConfigured = value;
681+
DictionaryUtil.Add(QueryParameters, "HibernationOptions.Configured", value.ToString());
682+
}
683+
}
684+
670685
public string Description
671686
{
672687
get

aliyun-net-sdk-ecs/Ecs/Model/V20140526/DescribeCapacityReservationsRequest.cs

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,14 @@ public DescribeCapacityReservationsRequest()
4444

4545
private string platform;
4646

47+
private string resourceGroupId;
48+
4749
private string nextToken;
4850

4951
private string instanceType;
5052

53+
private List<Tag> tags = new List<Tag>(){ };
54+
5155
private string instanceChargeType;
5256

5357
private string resourceOwnerAccount;
@@ -90,6 +94,19 @@ public string Platform
9094
}
9195
}
9296

97+
public string ResourceGroupId
98+
{
99+
get
100+
{
101+
return resourceGroupId;
102+
}
103+
set
104+
{
105+
resourceGroupId = value;
106+
DictionaryUtil.Add(QueryParameters, "ResourceGroupId", value);
107+
}
108+
}
109+
93110
public string NextToken
94111
{
95112
get
@@ -116,6 +133,24 @@ public string InstanceType
116133
}
117134
}
118135

136+
public List<Tag> Tags
137+
{
138+
get
139+
{
140+
return tags;
141+
}
142+
143+
set
144+
{
145+
tags = value;
146+
for (int i = 0; i < tags.Count; i++)
147+
{
148+
DictionaryUtil.Add(QueryParameters,"Tag." + (i + 1) + ".Key", tags[i].Key);
149+
DictionaryUtil.Add(QueryParameters,"Tag." + (i + 1) + ".Value", tags[i].Value);
150+
}
151+
}
152+
}
153+
119154
public string InstanceChargeType
120155
{
121156
get
@@ -218,6 +253,38 @@ public string Status
218253
status = value;
219254
DictionaryUtil.Add(QueryParameters, "Status", value);
220255
}
256+
}
257+
258+
public class Tag
259+
{
260+
261+
private string key;
262+
263+
private string value_;
264+
265+
public string Key
266+
{
267+
get
268+
{
269+
return key;
270+
}
271+
set
272+
{
273+
key = value;
274+
}
275+
}
276+
277+
public string Value
278+
{
279+
get
280+
{
281+
return value_;
282+
}
283+
set
284+
{
285+
value_ = value;
286+
}
287+
}
221288
}
222289

223290
public override DescribeCapacityReservationsResponse GetResponse(UnmarshallerContext unmarshallerContext)

0 commit comments

Comments
 (0)