@@ -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" ),
0 commit comments