Skip to content

Commit 7622632

Browse files
committed
Support API GetKmsInstanceQuotaInfos.
1 parent f5e0785 commit 7622632

14 files changed

+296
-371
lines changed

kms-20160120/ChangeLog.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
2025-12-05 Version: 1.4.0
2+
- Support API GetKmsInstanceQuotaInfos.
3+
- Update API DescribeSecret: add response parameters Body.OwingService.
4+
- Update API GetKmsInstance: add response parameters Body.KmsInstance.Log.
5+
- Update API GetKmsInstance: add response parameters Body.KmsInstance.LogStorage.
6+
- Update API GetKmsInstance: add response parameters Body.KmsInstance.ProductType.
7+
- Update API GetKmsInstance: add response parameters Body.KmsInstance.SaleStatus.
8+
- Update API ListKmsInstances: add request parameters Filters.
9+
- Update API ListSecrets: add response parameters Body.SecretList.$.OwingService.
10+
11+
112
2025-07-25 Version: 1.3.1
213
- Generated java 2016-01-20 for Kms.
314

kms-20160120/pom.xml

Lines changed: 4 additions & 5 deletions
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>kms20160120</artifactId>
6-
<version>1.3.1</version>
6+
<version>1.4.0</version>
77
<packaging>jar</packaging>
88
<name>kms20160120</name>
99
<description>Aliyun KMS for Java
@@ -63,7 +63,7 @@
6363
<dependency>
6464
<groupId>com.aliyun</groupId>
6565
<artifactId>tea-openapi</artifactId>
66-
<version>0.3.8</version>
66+
<version>0.3.10</version>
6767
</dependency>
6868
<dependency>
6969
<groupId>com.aliyun</groupId>
@@ -73,7 +73,7 @@
7373
<dependency>
7474
<groupId>com.aliyun</groupId>
7575
<artifactId>alibabacloud-gateway-pop</artifactId>
76-
<version>0.0.8</version>
76+
<version>0.1.3</version>
7777
</dependency>
7878
</dependencies>
7979
<build>
@@ -185,12 +185,11 @@
185185
<plugin>
186186
<groupId>org.sonatype.central</groupId>
187187
<artifactId>central-publishing-maven-plugin</artifactId>
188-
<version>0.8.0</version>
188+
<version>0.9.0</version>
189189
<extensions>true</extensions>
190190
<configuration>
191191
<publishingServerId>central</publishingServerId>
192192
<autoPublish>true</autoPublish>
193-
<waitUntil>published</waitUntil>
194193
</configuration>
195194
</plugin>
196195
</plugins>

kms-20160120/src/main/java/com/aliyun/kms20160120/Client.java

Lines changed: 62 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1269,70 +1269,6 @@ public CreateApplicationAccessPointResponse createApplicationAccessPoint(CreateA
12691269
return this.createApplicationAccessPointWithOptions(request, runtime);
12701270
}
12711271

1272-
/**
1273-
* <b>description</b> :
1274-
* <p>To create a certificate, you must specify the type of the asymmetric key. Certificates Manager generates a private key and returns a certificate signing request (CSR). Submit the CSR in the Privacy Enhanced Mail (PEM) format to a certificate authority (CA) to obtain the formal certificate and certificate chain. Then, call the <a href="https://help.aliyun.com/document_detail/212136.html">UploadCertificate</a> operation to import the certificate into Certificates Manager.
1275-
* In this example, a certificate is created and the CSR is obtained.</p>
1276-
*
1277-
* @param tmpReq CreateCertificateRequest
1278-
* @param runtime runtime options for this request RuntimeOptions
1279-
* @return CreateCertificateResponse
1280-
*/
1281-
public CreateCertificateResponse createCertificateWithOptions(CreateCertificateRequest tmpReq, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
1282-
com.aliyun.teautil.Common.validateModel(tmpReq);
1283-
CreateCertificateShrinkRequest request = new CreateCertificateShrinkRequest();
1284-
com.aliyun.openapiutil.Client.convert(tmpReq, request);
1285-
if (!com.aliyun.teautil.Common.isUnset(tmpReq.subjectAlternativeNames)) {
1286-
request.subjectAlternativeNamesShrink = com.aliyun.openapiutil.Client.arrayToStringWithSpecifiedStyle(tmpReq.subjectAlternativeNames, "SubjectAlternativeNames", "json");
1287-
}
1288-
1289-
java.util.Map<String, Object> query = new java.util.HashMap<>();
1290-
if (!com.aliyun.teautil.Common.isUnset(request.exportablePrivateKey)) {
1291-
query.put("ExportablePrivateKey", request.exportablePrivateKey);
1292-
}
1293-
1294-
if (!com.aliyun.teautil.Common.isUnset(request.keySpec)) {
1295-
query.put("KeySpec", request.keySpec);
1296-
}
1297-
1298-
if (!com.aliyun.teautil.Common.isUnset(request.subject)) {
1299-
query.put("Subject", request.subject);
1300-
}
1301-
1302-
if (!com.aliyun.teautil.Common.isUnset(request.subjectAlternativeNamesShrink)) {
1303-
query.put("SubjectAlternativeNames", request.subjectAlternativeNamesShrink);
1304-
}
1305-
1306-
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
1307-
new TeaPair("query", com.aliyun.openapiutil.Client.query(query))
1308-
));
1309-
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
1310-
new TeaPair("action", "CreateCertificate"),
1311-
new TeaPair("version", "2016-01-20"),
1312-
new TeaPair("protocol", "HTTPS"),
1313-
new TeaPair("pathname", "/"),
1314-
new TeaPair("method", "POST"),
1315-
new TeaPair("authType", "AK"),
1316-
new TeaPair("style", "RPC"),
1317-
new TeaPair("reqBodyType", "formData"),
1318-
new TeaPair("bodyType", "json")
1319-
));
1320-
return TeaModel.toModel(this.callApi(params, req, runtime), new CreateCertificateResponse());
1321-
}
1322-
1323-
/**
1324-
* <b>description</b> :
1325-
* <p>To create a certificate, you must specify the type of the asymmetric key. Certificates Manager generates a private key and returns a certificate signing request (CSR). Submit the CSR in the Privacy Enhanced Mail (PEM) format to a certificate authority (CA) to obtain the formal certificate and certificate chain. Then, call the <a href="https://help.aliyun.com/document_detail/212136.html">UploadCertificate</a> operation to import the certificate into Certificates Manager.
1326-
* In this example, a certificate is created and the CSR is obtained.</p>
1327-
*
1328-
* @param request CreateCertificateRequest
1329-
* @return CreateCertificateResponse
1330-
*/
1331-
public CreateCertificateResponse createCertificate(CreateCertificateRequest request) throws Exception {
1332-
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
1333-
return this.createCertificateWithOptions(request, runtime);
1334-
}
1335-
13361272
/**
13371273
* <b>description</b> :
13381274
* <p>To perform cryptographic operations and retrieve secret values, self-managed applications must use a client key to access a Key Management Service (KMS) instance. The following process shows how to create a client key-based application access point (AAP):
@@ -3366,6 +3302,54 @@ public GetKmsInstanceResponse getKmsInstance(GetKmsInstanceRequest request) thro
33663302
return this.getKmsInstanceWithOptions(request, runtime);
33673303
}
33683304

3305+
/**
3306+
* <b>summary</b> :
3307+
* <p>获取实例配额信息</p>
3308+
*
3309+
* @param request GetKmsInstanceQuotaInfosRequest
3310+
* @param runtime runtime options for this request RuntimeOptions
3311+
* @return GetKmsInstanceQuotaInfosResponse
3312+
*/
3313+
public GetKmsInstanceQuotaInfosResponse getKmsInstanceQuotaInfosWithOptions(GetKmsInstanceQuotaInfosRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
3314+
com.aliyun.teautil.Common.validateModel(request);
3315+
java.util.Map<String, Object> query = new java.util.HashMap<>();
3316+
if (!com.aliyun.teautil.Common.isUnset(request.kmsInstanceId)) {
3317+
query.put("KmsInstanceId", request.kmsInstanceId);
3318+
}
3319+
3320+
if (!com.aliyun.teautil.Common.isUnset(request.resourceType)) {
3321+
query.put("ResourceType", request.resourceType);
3322+
}
3323+
3324+
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
3325+
new TeaPair("query", com.aliyun.openapiutil.Client.query(query))
3326+
));
3327+
com.aliyun.teaopenapi.models.Params params = com.aliyun.teaopenapi.models.Params.build(TeaConverter.buildMap(
3328+
new TeaPair("action", "GetKmsInstanceQuotaInfos"),
3329+
new TeaPair("version", "2016-01-20"),
3330+
new TeaPair("protocol", "HTTPS"),
3331+
new TeaPair("pathname", "/"),
3332+
new TeaPair("method", "POST"),
3333+
new TeaPair("authType", "AK"),
3334+
new TeaPair("style", "RPC"),
3335+
new TeaPair("reqBodyType", "formData"),
3336+
new TeaPair("bodyType", "json")
3337+
));
3338+
return TeaModel.toModel(this.callApi(params, req, runtime), new GetKmsInstanceQuotaInfosResponse());
3339+
}
3340+
3341+
/**
3342+
* <b>summary</b> :
3343+
* <p>获取实例配额信息</p>
3344+
*
3345+
* @param request GetKmsInstanceQuotaInfosRequest
3346+
* @return GetKmsInstanceQuotaInfosResponse
3347+
*/
3348+
public GetKmsInstanceQuotaInfosResponse getKmsInstanceQuotaInfos(GetKmsInstanceQuotaInfosRequest request) throws Exception {
3349+
com.aliyun.teautil.models.RuntimeOptions runtime = new com.aliyun.teautil.models.RuntimeOptions();
3350+
return this.getKmsInstanceQuotaInfosWithOptions(request, runtime);
3351+
}
3352+
33693353
/**
33703354
* <b>description</b> :
33713355
* <p>The returned parameters can be used to call the <a href="https://www.alibabacloud.com/help/en/key-management-service/latest/importkeymaterial">ImportKeyMaterial</a> operation.</p>
@@ -4119,6 +4103,10 @@ public ListKeysResponse listKeys(ListKeysRequest request) throws Exception {
41194103
public ListKmsInstancesResponse listKmsInstancesWithOptions(ListKmsInstancesRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
41204104
com.aliyun.teautil.Common.validateModel(request);
41214105
java.util.Map<String, Object> query = new java.util.HashMap<>();
4106+
if (!com.aliyun.teautil.Common.isUnset(request.filters)) {
4107+
query.put("Filters", request.filters);
4108+
}
4109+
41224110
if (!com.aliyun.teautil.Common.isUnset(request.pageNumber)) {
41234111
query.put("PageNumber", request.pageNumber);
41244112
}
@@ -5537,7 +5525,15 @@ public UpdateKeyDescriptionResponse updateKeyDescription(UpdateKeyDescriptionReq
55375525
*/
55385526
public UpdateKmsInstanceBindVpcResponse updateKmsInstanceBindVpcWithOptions(UpdateKmsInstanceBindVpcRequest request, com.aliyun.teautil.models.RuntimeOptions runtime) throws Exception {
55395527
com.aliyun.teautil.Common.validateModel(request);
5540-
java.util.Map<String, String> query = com.aliyun.openapiutil.Client.query(com.aliyun.teautil.Common.toMap(request));
5528+
java.util.Map<String, Object> query = new java.util.HashMap<>();
5529+
if (!com.aliyun.teautil.Common.isUnset(request.bindVpcs)) {
5530+
query.put("BindVpcs", request.bindVpcs);
5531+
}
5532+
5533+
if (!com.aliyun.teautil.Common.isUnset(request.kmsInstanceId)) {
5534+
query.put("KmsInstanceId", request.kmsInstanceId);
5535+
}
5536+
55415537
com.aliyun.teaopenapi.models.OpenApiRequest req = com.aliyun.teaopenapi.models.OpenApiRequest.build(TeaConverter.buildMap(
55425538
new TeaPair("query", com.aliyun.openapiutil.Client.query(query))
55435539
));
@@ -5546,7 +5542,7 @@ public UpdateKmsInstanceBindVpcResponse updateKmsInstanceBindVpcWithOptions(Upda
55465542
new TeaPair("version", "2016-01-20"),
55475543
new TeaPair("protocol", "HTTPS"),
55485544
new TeaPair("pathname", "/"),
5549-
new TeaPair("method", "GET"),
5545+
new TeaPair("method", "POST"),
55505546
new TeaPair("authType", "AK"),
55515547
new TeaPair("style", "RPC"),
55525548
new TeaPair("reqBodyType", "formData"),

kms-20160120/src/main/java/com/aliyun/kms20160120/models/CreateCertificateRequest.java

Lines changed: 0 additions & 103 deletions
This file was deleted.

0 commit comments

Comments
 (0)