Skip to content

Commit 2c52dc9

Browse files
committed
Support Storage And Network Features For LaunchTemplate.
1 parent 6fa1a74 commit 2c52dc9

26 files changed

+955
-16
lines changed

CHANGELOG

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2022-07-11 Version: 4.24.18
2+
- Support Storage And Network Features For LaunchTemplate.
3+
14
2022-07-11 Version: 7.41.0
25
- Add new api for rule.
36

aliyun-net-sdk-ecs/Ecs/Endpoint.cs

-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ public class Endpoint
3838
{ "cn-shanghai-finance-1", "ecs-cn-hangzhou.aliyuncs.com" },
3939
{ "cn-beijing-finance-pop", "ecs.aliyuncs.com" },
4040
{ "cn-wuhan", "ecs.aliyuncs.com" },
41-
{ "us-west-1", "ecs.aliyuncs.com" },
4241
{ "cn-zhangbei", "ecs.aliyuncs.com" },
4342
{ "cn-zhengzhou-nebula-1", "ecs.cn-qingdao-nebula.aliyuncs.com" },
4443
{ "rus-west-1-pop", "ecs.aliyuncs.com" },
@@ -56,7 +55,6 @@ public class Endpoint
5655
{ "cn-hangzhou-finance", "ecs.aliyuncs.com" },
5756
{ "cn-beijing-nu16-b01", "ecs-cn-hangzhou.aliyuncs.com" },
5857
{ "cn-edge-1", "ecs.cn-qingdao-nebula.aliyuncs.com" },
59-
{ "us-east-1", "ecs.aliyuncs.com" },
6058
{ "cn-fujian", "ecs-cn-hangzhou.aliyuncs.com" },
6159
{ "ap-northeast-2-pop", "ecs.aliyuncs.com" },
6260
{ "cn-shenzhen-inner", "ecs.aliyuncs.com" },

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

+138
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ public CreateAutoProvisioningGroupRequest()
8888

8989
private float? maxSpotPrice;
9090

91+
private List<string> launchConfigurationArns = new List<string>(){ };
92+
9193
private bool? launchConfigurationPasswordInherit;
9294

9395
private string clientToken;
@@ -102,6 +104,8 @@ public CreateAutoProvisioningGroupRequest()
102104

103105
private string launchConfigurationCreditSpecification;
104106

107+
private LaunchConfigurationSystemDisk launchConfigurationSystemDisk_;
108+
105109
private string launchConfigurationInstanceName;
106110

107111
private string launchConfigurationInstanceDescription;
@@ -494,6 +498,28 @@ public float? MaxSpotPrice
494498
}
495499
}
496500

501+
public List<string> LaunchConfigurationArns
502+
{
503+
get
504+
{
505+
return launchConfigurationArns;
506+
}
507+
508+
set
509+
{
510+
launchConfigurationArns = value;
511+
if(launchConfigurationArns != null)
512+
{
513+
for (int depth1 = 0; depth1 < launchConfigurationArns.Count; depth1++)
514+
{
515+
DictionaryUtil.Add(QueryParameters,"LaunchConfiguration.Arn." + (depth1 + 1), launchConfigurationArns[depth1]);
516+
DictionaryUtil.Add(QueryParameters,"LaunchConfiguration.Arn." + (depth1 + 1), launchConfigurationArns[depth1]);
517+
DictionaryUtil.Add(QueryParameters,"LaunchConfiguration.Arn." + (depth1 + 1), launchConfigurationArns[depth1]);
518+
}
519+
}
520+
}
521+
}
522+
497523
public bool? LaunchConfigurationPasswordInherit
498524
{
499525
get
@@ -585,6 +611,26 @@ public string LaunchConfigurationCreditSpecification
585611
}
586612
}
587613

614+
public LaunchConfigurationSystemDisk LaunchConfigurationSystemDisk_
615+
{
616+
get
617+
{
618+
return launchConfigurationSystemDisk_;
619+
}
620+
621+
set
622+
{
623+
launchConfigurationSystemDisk_ = value;
624+
if(launchConfigurationSystemDisk_ != null)
625+
{
626+
627+
DictionaryUtil.Add(QueryParameters,"LaunchConfiguration.SystemDisk.Encrypted", launchConfigurationSystemDisk_.Encrypted);
628+
DictionaryUtil.Add(QueryParameters,"LaunchConfiguration.SystemDisk.KMSKeyId", launchConfigurationSystemDisk_.KMSKeyId);
629+
DictionaryUtil.Add(QueryParameters,"LaunchConfiguration.SystemDisk.EncryptAlgorithm", launchConfigurationSystemDisk_.EncryptAlgorithm);
630+
}
631+
}
632+
}
633+
588634
public string LaunchConfigurationInstanceName
589635
{
590636
get
@@ -1109,6 +1155,98 @@ public string DiskCategory
11091155
}
11101156
}
11111157

1158+
public class LaunchConfigurationArn
1159+
{
1160+
1161+
private string rolearn;
1162+
1163+
private string roleType;
1164+
1165+
private long? assumeRoleFor;
1166+
1167+
public string Rolearn
1168+
{
1169+
get
1170+
{
1171+
return rolearn;
1172+
}
1173+
set
1174+
{
1175+
rolearn = value;
1176+
}
1177+
}
1178+
1179+
public string RoleType
1180+
{
1181+
get
1182+
{
1183+
return roleType;
1184+
}
1185+
set
1186+
{
1187+
roleType = value;
1188+
}
1189+
}
1190+
1191+
public long? AssumeRoleFor
1192+
{
1193+
get
1194+
{
1195+
return assumeRoleFor;
1196+
}
1197+
set
1198+
{
1199+
assumeRoleFor = value;
1200+
}
1201+
}
1202+
}
1203+
1204+
public class LaunchConfigurationSystemDisk
1205+
{
1206+
1207+
private string encrypted;
1208+
1209+
private string kMSKeyId;
1210+
1211+
private string encryptAlgorithm;
1212+
1213+
public string Encrypted
1214+
{
1215+
get
1216+
{
1217+
return encrypted;
1218+
}
1219+
set
1220+
{
1221+
encrypted = value;
1222+
}
1223+
}
1224+
1225+
public string KMSKeyId
1226+
{
1227+
get
1228+
{
1229+
return kMSKeyId;
1230+
}
1231+
set
1232+
{
1233+
kMSKeyId = value;
1234+
}
1235+
}
1236+
1237+
public string EncryptAlgorithm
1238+
{
1239+
get
1240+
{
1241+
return encryptAlgorithm;
1242+
}
1243+
set
1244+
{
1245+
encryptAlgorithm = value;
1246+
}
1247+
}
1248+
}
1249+
11121250
public class LaunchTemplateConfig
11131251
{
11141252

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

+15
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ public CreateCommandRequest()
5252

5353
private long? timeout;
5454

55+
private string contentEncoding;
56+
5557
private string resourceOwnerAccount;
5658

5759
private string ownerAccount;
@@ -140,6 +142,19 @@ public long? Timeout
140142
}
141143
}
142144

145+
public string ContentEncoding
146+
{
147+
get
148+
{
149+
return contentEncoding;
150+
}
151+
set
152+
{
153+
contentEncoding = value;
154+
DictionaryUtil.Add(QueryParameters, "ContentEncoding", value);
155+
}
156+
}
157+
143158
public string ResourceOwnerAccount
144159
{
145160
get

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -325,10 +325,10 @@ public SystemDisk SystemDisk_
325325
set
326326
{
327327
systemDisk_ = value;
328-
if(SystemDisk_ != null)
328+
if(systemDisk_ != null)
329329
{
330330

331-
DictionaryUtil.Add(QueryParameters,"SystemDisk.StorageClusterId", SystemDisk_.StorageClusterId);
331+
DictionaryUtil.Add(QueryParameters,"SystemDisk.StorageClusterId", systemDisk_.StorageClusterId);
332332
}
333333
}
334334
}

0 commit comments

Comments
 (0)