Skip to content

Commit 5c4992b

Browse files
committed
Update API DescribeInstances: add response parameters Body.Instances.$.Storage.SupportCreateFullyManagedStorage.
1 parent 1dd56e7 commit 5c4992b

File tree

4 files changed

+55
-153
lines changed

4 files changed

+55
-153
lines changed

foasconsole-20211028/ChangeLog.txt

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2025-05-06 Version: 2.1.1
2+
- Update API DescribeInstances: add response parameters Body.Instances.$.Storage.SupportCreateFullyManagedStorage.
3+
- Update API DescribeInstances: add response parameters Body.Instances.$.Storage.SupportMigrationProgressDetection.
4+
5+
16
2025-03-06 Version: 2.1.0
27
- Support API ConvertHybridInstance.
38
- Support API ConvertPrepayInstance.

foasconsole-20211028/pom.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>com.aliyun</groupId>
55
<artifactId>foasconsole20211028</artifactId>
6-
<version>2.1.0</version>
6+
<version>2.1.1</version>
77
<packaging>jar</packaging>
88
<name>foasconsole20211028</name>
99
<description>Alibaba Cloud foasconsole (20211028) SDK for Java
@@ -46,7 +46,7 @@
4646
<dependency>
4747
<groupId>com.aliyun</groupId>
4848
<artifactId>tea-openapi</artifactId>
49-
<version>0.3.6</version>
49+
<version>0.3.8</version>
5050
</dependency>
5151
<dependency>
5252
<groupId>com.aliyun</groupId>
@@ -78,7 +78,7 @@
7878
<plugin>
7979
<groupId>org.apache.maven.plugins</groupId>
8080
<artifactId>maven-gpg-plugin</artifactId>
81-
<version>1.6</version>
81+
<version>3.1.0</version>
8282
<executions>
8383
<execution>
8484
<id>sign-artifacts</id>

foasconsole-20211028/src/main/java/com/aliyun/foasconsole20211028/Client.java

+25-150
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,7 @@ public ConvertHybridInstanceResponse convertHybridInstanceWithOptions(ConvertHyb
6969
new TeaPair("reqBodyType", "formData"),
7070
new TeaPair("bodyType", "json")
7171
));
72-
if (com.aliyun.teautil.Common.isUnset(_signatureVersion) || !com.aliyun.teautil.Common.equalString(_signatureVersion, "v4")) {
73-
return TeaModel.toModel(this.callApi(params, req, runtime), new ConvertHybridInstanceResponse());
74-
} else {
75-
return TeaModel.toModel(this.execute(params, req, runtime), new ConvertHybridInstanceResponse());
76-
}
77-
72+
return TeaModel.toModel(this.callApi(params, req, runtime), new ConvertHybridInstanceResponse());
7873
}
7974

8075
/**
@@ -144,12 +139,7 @@ public ConvertInstanceResponse convertInstanceWithOptions(ConvertInstanceRequest
144139
new TeaPair("reqBodyType", "formData"),
145140
new TeaPair("bodyType", "json")
146141
));
147-
if (com.aliyun.teautil.Common.isUnset(_signatureVersion) || !com.aliyun.teautil.Common.equalString(_signatureVersion, "v4")) {
148-
return TeaModel.toModel(this.callApi(params, req, runtime), new ConvertInstanceResponse());
149-
} else {
150-
return TeaModel.toModel(this.execute(params, req, runtime), new ConvertInstanceResponse());
151-
}
152-
142+
return TeaModel.toModel(this.callApi(params, req, runtime), new ConvertInstanceResponse());
153143
}
154144

155145
/**
@@ -197,12 +187,7 @@ public ConvertPrepayInstanceResponse convertPrepayInstanceWithOptions(ConvertPre
197187
new TeaPair("reqBodyType", "formData"),
198188
new TeaPair("bodyType", "json")
199189
));
200-
if (com.aliyun.teautil.Common.isUnset(_signatureVersion) || !com.aliyun.teautil.Common.equalString(_signatureVersion, "v4")) {
201-
return TeaModel.toModel(this.callApi(params, req, runtime), new ConvertPrepayInstanceResponse());
202-
} else {
203-
return TeaModel.toModel(this.execute(params, req, runtime), new ConvertPrepayInstanceResponse());
204-
}
205-
190+
return TeaModel.toModel(this.callApi(params, req, runtime), new ConvertPrepayInstanceResponse());
206191
}
207192

208193
/**
@@ -348,12 +333,7 @@ public CreateInstanceResponse createInstanceWithOptions(CreateInstanceRequest tm
348333
new TeaPair("reqBodyType", "formData"),
349334
new TeaPair("bodyType", "json")
350335
));
351-
if (com.aliyun.teautil.Common.isUnset(_signatureVersion) || !com.aliyun.teautil.Common.equalString(_signatureVersion, "v4")) {
352-
return TeaModel.toModel(this.callApi(params, req, runtime), new CreateInstanceResponse());
353-
} else {
354-
return TeaModel.toModel(this.execute(params, req, runtime), new CreateInstanceResponse());
355-
}
356-
336+
return TeaModel.toModel(this.callApi(params, req, runtime), new CreateInstanceResponse());
357337
}
358338

359339
/**
@@ -419,12 +399,7 @@ public CreateNamespaceResponse createNamespaceWithOptions(CreateNamespaceRequest
419399
new TeaPair("reqBodyType", "formData"),
420400
new TeaPair("bodyType", "json")
421401
));
422-
if (com.aliyun.teautil.Common.isUnset(_signatureVersion) || !com.aliyun.teautil.Common.equalString(_signatureVersion, "v4")) {
423-
return TeaModel.toModel(this.callApi(params, req, runtime), new CreateNamespaceResponse());
424-
} else {
425-
return TeaModel.toModel(this.execute(params, req, runtime), new CreateNamespaceResponse());
426-
}
427-
402+
return TeaModel.toModel(this.callApi(params, req, runtime), new CreateNamespaceResponse());
428403
}
429404

430405
/**
@@ -472,12 +447,7 @@ public DeleteInstanceResponse deleteInstanceWithOptions(DeleteInstanceRequest re
472447
new TeaPair("reqBodyType", "formData"),
473448
new TeaPair("bodyType", "json")
474449
));
475-
if (com.aliyun.teautil.Common.isUnset(_signatureVersion) || !com.aliyun.teautil.Common.equalString(_signatureVersion, "v4")) {
476-
return TeaModel.toModel(this.callApi(params, req, runtime), new DeleteInstanceResponse());
477-
} else {
478-
return TeaModel.toModel(this.execute(params, req, runtime), new DeleteInstanceResponse());
479-
}
480-
450+
return TeaModel.toModel(this.callApi(params, req, runtime), new DeleteInstanceResponse());
481451
}
482452

483453
/**
@@ -529,12 +499,7 @@ public DeleteNamespaceResponse deleteNamespaceWithOptions(DeleteNamespaceRequest
529499
new TeaPair("reqBodyType", "formData"),
530500
new TeaPair("bodyType", "json")
531501
));
532-
if (com.aliyun.teautil.Common.isUnset(_signatureVersion) || !com.aliyun.teautil.Common.equalString(_signatureVersion, "v4")) {
533-
return TeaModel.toModel(this.callApi(params, req, runtime), new DeleteNamespaceResponse());
534-
} else {
535-
return TeaModel.toModel(this.execute(params, req, runtime), new DeleteNamespaceResponse());
536-
}
537-
502+
return TeaModel.toModel(this.callApi(params, req, runtime), new DeleteNamespaceResponse());
538503
}
539504

540505
/**
@@ -580,12 +545,7 @@ public DescribeInstancesResponse describeInstancesWithOptions(DescribeInstancesR
580545
new TeaPair("reqBodyType", "formData"),
581546
new TeaPair("bodyType", "json")
582547
));
583-
if (com.aliyun.teautil.Common.isUnset(_signatureVersion) || !com.aliyun.teautil.Common.equalString(_signatureVersion, "v4")) {
584-
return TeaModel.toModel(this.callApi(params, req, runtime), new DescribeInstancesResponse());
585-
} else {
586-
return TeaModel.toModel(this.execute(params, req, runtime), new DescribeInstancesResponse());
587-
}
588-
548+
return TeaModel.toModel(this.callApi(params, req, runtime), new DescribeInstancesResponse());
589549
}
590550

591551
/**
@@ -631,12 +591,7 @@ public DescribeNamespacesResponse describeNamespacesWithOptions(DescribeNamespac
631591
new TeaPair("reqBodyType", "formData"),
632592
new TeaPair("bodyType", "json")
633593
));
634-
if (com.aliyun.teautil.Common.isUnset(_signatureVersion) || !com.aliyun.teautil.Common.equalString(_signatureVersion, "v4")) {
635-
return TeaModel.toModel(this.callApi(params, req, runtime), new DescribeNamespacesResponse());
636-
} else {
637-
return TeaModel.toModel(this.execute(params, req, runtime), new DescribeNamespacesResponse());
638-
}
639-
594+
return TeaModel.toModel(this.callApi(params, req, runtime), new DescribeNamespacesResponse());
640595
}
641596

642597
/**
@@ -672,12 +627,7 @@ public DescribeSupportedRegionsResponse describeSupportedRegionsWithOptions(com.
672627
new TeaPair("reqBodyType", "formData"),
673628
new TeaPair("bodyType", "json")
674629
));
675-
if (com.aliyun.teautil.Common.isUnset(_signatureVersion) || !com.aliyun.teautil.Common.equalString(_signatureVersion, "v4")) {
676-
return TeaModel.toModel(this.callApi(params, req, runtime), new DescribeSupportedRegionsResponse());
677-
} else {
678-
return TeaModel.toModel(this.execute(params, req, runtime), new DescribeSupportedRegionsResponse());
679-
}
680-
630+
return TeaModel.toModel(this.callApi(params, req, runtime), new DescribeSupportedRegionsResponse());
681631
}
682632

683633
/**
@@ -715,12 +665,7 @@ public DescribeSupportedZonesResponse describeSupportedZonesWithOptions(Describe
715665
new TeaPair("reqBodyType", "formData"),
716666
new TeaPair("bodyType", "json")
717667
));
718-
if (com.aliyun.teautil.Common.isUnset(_signatureVersion) || !com.aliyun.teautil.Common.equalString(_signatureVersion, "v4")) {
719-
return TeaModel.toModel(this.callApi(params, req, runtime), new DescribeSupportedZonesResponse());
720-
} else {
721-
return TeaModel.toModel(this.execute(params, req, runtime), new DescribeSupportedZonesResponse());
722-
}
723-
668+
return TeaModel.toModel(this.callApi(params, req, runtime), new DescribeSupportedZonesResponse());
724669
}
725670

726671
/**
@@ -780,12 +725,7 @@ public ListTagResourcesResponse listTagResourcesWithOptions(ListTagResourcesRequ
780725
new TeaPair("reqBodyType", "formData"),
781726
new TeaPair("bodyType", "json")
782727
));
783-
if (com.aliyun.teautil.Common.isUnset(_signatureVersion) || !com.aliyun.teautil.Common.equalString(_signatureVersion, "v4")) {
784-
return TeaModel.toModel(this.callApi(params, req, runtime), new ListTagResourcesResponse());
785-
} else {
786-
return TeaModel.toModel(this.execute(params, req, runtime), new ListTagResourcesResponse());
787-
}
788-
728+
return TeaModel.toModel(this.callApi(params, req, runtime), new ListTagResourcesResponse());
789729
}
790730

791731
/**
@@ -843,12 +783,7 @@ public ModifyElasticResourceSpecResponse modifyElasticResourceSpecWithOptions(Mo
843783
new TeaPair("reqBodyType", "formData"),
844784
new TeaPair("bodyType", "json")
845785
));
846-
if (com.aliyun.teautil.Common.isUnset(_signatureVersion) || !com.aliyun.teautil.Common.equalString(_signatureVersion, "v4")) {
847-
return TeaModel.toModel(this.callApi(params, req, runtime), new ModifyElasticResourceSpecResponse());
848-
} else {
849-
return TeaModel.toModel(this.execute(params, req, runtime), new ModifyElasticResourceSpecResponse());
850-
}
851-
786+
return TeaModel.toModel(this.callApi(params, req, runtime), new ModifyElasticResourceSpecResponse());
852787
}
853788

854789
/**
@@ -910,12 +845,7 @@ public ModifyInstanceVswitchResponse modifyInstanceVswitchWithOptions(ModifyInst
910845
new TeaPair("reqBodyType", "formData"),
911846
new TeaPair("bodyType", "json")
912847
));
913-
if (com.aliyun.teautil.Common.isUnset(_signatureVersion) || !com.aliyun.teautil.Common.equalString(_signatureVersion, "v4")) {
914-
return TeaModel.toModel(this.callApi(params, req, runtime), new ModifyInstanceVswitchResponse());
915-
} else {
916-
return TeaModel.toModel(this.execute(params, req, runtime), new ModifyInstanceVswitchResponse());
917-
}
918-
848+
return TeaModel.toModel(this.callApi(params, req, runtime), new ModifyInstanceVswitchResponse());
919849
}
920850

921851
/**
@@ -991,12 +921,7 @@ public ModifyNamespaceSpecV2Response modifyNamespaceSpecV2WithOptions(ModifyName
991921
new TeaPair("reqBodyType", "formData"),
992922
new TeaPair("bodyType", "json")
993923
));
994-
if (com.aliyun.teautil.Common.isUnset(_signatureVersion) || !com.aliyun.teautil.Common.equalString(_signatureVersion, "v4")) {
995-
return TeaModel.toModel(this.callApi(params, req, runtime), new ModifyNamespaceSpecV2Response());
996-
} else {
997-
return TeaModel.toModel(this.execute(params, req, runtime), new ModifyNamespaceSpecV2Response());
998-
}
999-
924+
return TeaModel.toModel(this.callApi(params, req, runtime), new ModifyNamespaceSpecV2Response());
1000925
}
1001926

1002927
/**
@@ -1082,12 +1007,7 @@ public ModifyPrepayInstanceSpecResponse modifyPrepayInstanceSpecWithOptions(Modi
10821007
new TeaPair("reqBodyType", "formData"),
10831008
new TeaPair("bodyType", "json")
10841009
));
1085-
if (com.aliyun.teautil.Common.isUnset(_signatureVersion) || !com.aliyun.teautil.Common.equalString(_signatureVersion, "v4")) {
1086-
return TeaModel.toModel(this.callApi(params, req, runtime), new ModifyPrepayInstanceSpecResponse());
1087-
} else {
1088-
return TeaModel.toModel(this.execute(params, req, runtime), new ModifyPrepayInstanceSpecResponse());
1089-
}
1090-
1010+
return TeaModel.toModel(this.callApi(params, req, runtime), new ModifyPrepayInstanceSpecResponse());
10911011
}
10921012

10931013
/**
@@ -1157,12 +1077,7 @@ public ModifyPrepayNamespaceSpecResponse modifyPrepayNamespaceSpecWithOptions(Mo
11571077
new TeaPair("reqBodyType", "formData"),
11581078
new TeaPair("bodyType", "json")
11591079
));
1160-
if (com.aliyun.teautil.Common.isUnset(_signatureVersion) || !com.aliyun.teautil.Common.equalString(_signatureVersion, "v4")) {
1161-
return TeaModel.toModel(this.callApi(params, req, runtime), new ModifyPrepayNamespaceSpecResponse());
1162-
} else {
1163-
return TeaModel.toModel(this.execute(params, req, runtime), new ModifyPrepayNamespaceSpecResponse());
1164-
}
1165-
1080+
return TeaModel.toModel(this.callApi(params, req, runtime), new ModifyPrepayNamespaceSpecResponse());
11661081
}
11671082

11681083
/**
@@ -1236,12 +1151,7 @@ public QueryConvertInstancePriceResponse queryConvertInstancePriceWithOptions(Qu
12361151
new TeaPair("reqBodyType", "formData"),
12371152
new TeaPair("bodyType", "json")
12381153
));
1239-
if (com.aliyun.teautil.Common.isUnset(_signatureVersion) || !com.aliyun.teautil.Common.equalString(_signatureVersion, "v4")) {
1240-
return TeaModel.toModel(this.callApi(params, req, runtime), new QueryConvertInstancePriceResponse());
1241-
} else {
1242-
return TeaModel.toModel(this.execute(params, req, runtime), new QueryConvertInstancePriceResponse());
1243-
}
1244-
1154+
return TeaModel.toModel(this.callApi(params, req, runtime), new QueryConvertInstancePriceResponse());
12451155
}
12461156

12471157
/**
@@ -1289,12 +1199,7 @@ public QueryConvertPrepayInstancePriceResponse queryConvertPrepayInstancePriceWi
12891199
new TeaPair("reqBodyType", "formData"),
12901200
new TeaPair("bodyType", "json")
12911201
));
1292-
if (com.aliyun.teautil.Common.isUnset(_signatureVersion) || !com.aliyun.teautil.Common.equalString(_signatureVersion, "v4")) {
1293-
return TeaModel.toModel(this.callApi(params, req, runtime), new QueryConvertPrepayInstancePriceResponse());
1294-
} else {
1295-
return TeaModel.toModel(this.execute(params, req, runtime), new QueryConvertPrepayInstancePriceResponse());
1296-
}
1297-
1202+
return TeaModel.toModel(this.callApi(params, req, runtime), new QueryConvertPrepayInstancePriceResponse());
12981203
}
12991204

13001205
/**
@@ -1416,12 +1321,7 @@ public QueryCreateInstancePriceResponse queryCreateInstancePriceWithOptions(Quer
14161321
new TeaPair("reqBodyType", "formData"),
14171322
new TeaPair("bodyType", "json")
14181323
));
1419-
if (com.aliyun.teautil.Common.isUnset(_signatureVersion) || !com.aliyun.teautil.Common.equalString(_signatureVersion, "v4")) {
1420-
return TeaModel.toModel(this.callApi(params, req, runtime), new QueryCreateInstancePriceResponse());
1421-
} else {
1422-
return TeaModel.toModel(this.execute(params, req, runtime), new QueryCreateInstancePriceResponse());
1423-
}
1424-
1324+
return TeaModel.toModel(this.callApi(params, req, runtime), new QueryCreateInstancePriceResponse());
14251325
}
14261326

14271327
/**
@@ -1507,12 +1407,7 @@ public QueryModifyInstancePriceResponse queryModifyInstancePriceWithOptions(Quer
15071407
new TeaPair("reqBodyType", "formData"),
15081408
new TeaPair("bodyType", "json")
15091409
));
1510-
if (com.aliyun.teautil.Common.isUnset(_signatureVersion) || !com.aliyun.teautil.Common.equalString(_signatureVersion, "v4")) {
1511-
return TeaModel.toModel(this.callApi(params, req, runtime), new QueryModifyInstancePriceResponse());
1512-
} else {
1513-
return TeaModel.toModel(this.execute(params, req, runtime), new QueryModifyInstancePriceResponse());
1514-
}
1515-
1410+
return TeaModel.toModel(this.callApi(params, req, runtime), new QueryModifyInstancePriceResponse());
15161411
}
15171412

15181413
/**
@@ -1568,12 +1463,7 @@ public QueryRenewInstancePriceResponse queryRenewInstancePriceWithOptions(QueryR
15681463
new TeaPair("reqBodyType", "formData"),
15691464
new TeaPair("bodyType", "json")
15701465
));
1571-
if (com.aliyun.teautil.Common.isUnset(_signatureVersion) || !com.aliyun.teautil.Common.equalString(_signatureVersion, "v4")) {
1572-
return TeaModel.toModel(this.callApi(params, req, runtime), new QueryRenewInstancePriceResponse());
1573-
} else {
1574-
return TeaModel.toModel(this.execute(params, req, runtime), new QueryRenewInstancePriceResponse());
1575-
}
1576-
1466+
return TeaModel.toModel(this.callApi(params, req, runtime), new QueryRenewInstancePriceResponse());
15771467
}
15781468

15791469
/**
@@ -1629,12 +1519,7 @@ public RenewInstanceResponse renewInstanceWithOptions(RenewInstanceRequest reque
16291519
new TeaPair("reqBodyType", "formData"),
16301520
new TeaPair("bodyType", "json")
16311521
));
1632-
if (com.aliyun.teautil.Common.isUnset(_signatureVersion) || !com.aliyun.teautil.Common.equalString(_signatureVersion, "v4")) {
1633-
return TeaModel.toModel(this.callApi(params, req, runtime), new RenewInstanceResponse());
1634-
} else {
1635-
return TeaModel.toModel(this.execute(params, req, runtime), new RenewInstanceResponse());
1636-
}
1637-
1522+
return TeaModel.toModel(this.callApi(params, req, runtime), new RenewInstanceResponse());
16381523
}
16391524

16401525
/**
@@ -1690,12 +1575,7 @@ public TagResourcesResponse tagResourcesWithOptions(TagResourcesRequest request,
16901575
new TeaPair("reqBodyType", "formData"),
16911576
new TeaPair("bodyType", "json")
16921577
));
1693-
if (com.aliyun.teautil.Common.isUnset(_signatureVersion) || !com.aliyun.teautil.Common.equalString(_signatureVersion, "v4")) {
1694-
return TeaModel.toModel(this.callApi(params, req, runtime), new TagResourcesResponse());
1695-
} else {
1696-
return TeaModel.toModel(this.execute(params, req, runtime), new TagResourcesResponse());
1697-
}
1698-
1578+
return TeaModel.toModel(this.callApi(params, req, runtime), new TagResourcesResponse());
16991579
}
17001580

17011581
/**
@@ -1755,12 +1635,7 @@ public UntagResourcesResponse untagResourcesWithOptions(UntagResourcesRequest re
17551635
new TeaPair("reqBodyType", "formData"),
17561636
new TeaPair("bodyType", "json")
17571637
));
1758-
if (com.aliyun.teautil.Common.isUnset(_signatureVersion) || !com.aliyun.teautil.Common.equalString(_signatureVersion, "v4")) {
1759-
return TeaModel.toModel(this.callApi(params, req, runtime), new UntagResourcesResponse());
1760-
} else {
1761-
return TeaModel.toModel(this.execute(params, req, runtime), new UntagResourcesResponse());
1762-
}
1763-
1638+
return TeaModel.toModel(this.callApi(params, req, runtime), new UntagResourcesResponse());
17641639
}
17651640

17661641
/**

0 commit comments

Comments
 (0)