@alicloud/cas20200407 3.2.12 → 3.2.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (189) hide show
  1. package/dist/client.d.ts +296 -38
  2. package/dist/client.js +566 -40
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/CreateContactRequest.d.ts +1 -1
  5. package/dist/models/CreateRollbackTaskRequest.d.ts +33 -0
  6. package/dist/models/CreateRollbackTaskRequest.js +60 -0
  7. package/dist/models/CreateRollbackTaskRequest.js.map +1 -0
  8. package/dist/models/CreateRollbackTaskResponse.d.ts +19 -0
  9. package/dist/models/CreateRollbackTaskResponse.js +69 -0
  10. package/dist/models/CreateRollbackTaskResponse.js.map +1 -0
  11. package/dist/models/CreateRollbackTaskResponseBody.d.ts +29 -0
  12. package/dist/models/CreateRollbackTaskResponseBody.js +60 -0
  13. package/dist/models/CreateRollbackTaskResponseBody.js.map +1 -0
  14. package/dist/models/CreateWarehouseRequest.d.ts +3 -3
  15. package/dist/models/CreateWarehouseResponseBody.d.ts +1 -1
  16. package/dist/models/DeleteInstanceRequest.d.ts +8 -0
  17. package/dist/models/DeleteInstanceRequest.js +2 -0
  18. package/dist/models/DeleteInstanceRequest.js.map +1 -1
  19. package/dist/models/DeleteUserCertificateRequest.d.ts +9 -2
  20. package/dist/models/DeleteUserCertificateRequest.js +2 -0
  21. package/dist/models/DeleteUserCertificateRequest.js.map +1 -1
  22. package/dist/models/GetCertificateDetailResponseBody.d.ts +63 -51
  23. package/dist/models/GetCertificateDetailResponseBody.js +2 -0
  24. package/dist/models/GetCertificateDetailResponseBody.js.map +1 -1
  25. package/dist/models/GetCertificatePackageCountRequest.d.ts +13 -0
  26. package/dist/models/GetCertificatePackageCountRequest.js +54 -0
  27. package/dist/models/GetCertificatePackageCountRequest.js.map +1 -0
  28. package/dist/models/GetCertificatePackageCountResponse.d.ts +19 -0
  29. package/dist/models/GetCertificatePackageCountResponse.js +69 -0
  30. package/dist/models/GetCertificatePackageCountResponse.js.map +1 -0
  31. package/dist/models/GetCertificatePackageCountResponseBody.d.ts +72 -0
  32. package/dist/models/GetCertificatePackageCountResponseBody.js +68 -0
  33. package/dist/models/GetCertificatePackageCountResponseBody.js.map +1 -0
  34. package/dist/models/GetContactRequest.d.ts +2 -0
  35. package/dist/models/GetContactRequest.js.map +1 -1
  36. package/dist/models/GetContactResponseBody.d.ts +6 -2
  37. package/dist/models/GetContactResponseBody.js.map +1 -1
  38. package/dist/models/GetInstanceDetailResponseBody.d.ts +105 -36
  39. package/dist/models/GetInstanceDetailResponseBody.js +16 -0
  40. package/dist/models/GetInstanceDetailResponseBody.js.map +1 -1
  41. package/dist/models/ListCertWarehouseRequest.d.ts +7 -13
  42. package/dist/models/ListCertWarehouseRequest.js.map +1 -1
  43. package/dist/models/ListCertWarehouseResponseBody.d.ts +16 -23
  44. package/dist/models/ListCertWarehouseResponseBody.js.map +1 -1
  45. package/dist/models/ListCertificatesRequest.d.ts +12 -19
  46. package/dist/models/ListCertificatesRequest.js.map +1 -1
  47. package/dist/models/ListCertificatesResponseBody.d.ts +54 -50
  48. package/dist/models/ListCertificatesResponseBody.js +2 -0
  49. package/dist/models/ListCertificatesResponseBody.js.map +1 -1
  50. package/dist/models/ListContactRequest.d.ts +2 -2
  51. package/dist/models/ListContactResponseBody.d.ts +4 -0
  52. package/dist/models/ListContactResponseBody.js.map +1 -1
  53. package/dist/models/ListInstancesRequest.d.ts +24 -4
  54. package/dist/models/ListInstancesRequest.js +4 -0
  55. package/dist/models/ListInstancesRequest.js.map +1 -1
  56. package/dist/models/ListInstancesResponseBody.d.ts +46 -18
  57. package/dist/models/ListInstancesResponseBody.js +6 -0
  58. package/dist/models/ListInstancesResponseBody.js.map +1 -1
  59. package/dist/models/ListTagKeysRequest.d.ts +73 -0
  60. package/dist/models/ListTagKeysRequest.js +70 -0
  61. package/dist/models/ListTagKeysRequest.js.map +1 -0
  62. package/dist/models/ListTagKeysResponse.d.ts +19 -0
  63. package/dist/models/ListTagKeysResponse.js +69 -0
  64. package/dist/models/ListTagKeysResponse.js.map +1 -0
  65. package/dist/models/ListTagKeysResponseBody.d.ts +94 -0
  66. package/dist/models/ListTagKeysResponseBody.js +94 -0
  67. package/dist/models/ListTagKeysResponseBody.js.map +1 -0
  68. package/dist/models/ListTagResourcesRequest.d.ts +87 -0
  69. package/dist/models/ListTagResourcesRequest.js +95 -0
  70. package/dist/models/ListTagResourcesRequest.js.map +1 -0
  71. package/dist/models/ListTagResourcesResponse.d.ts +19 -0
  72. package/dist/models/ListTagResourcesResponse.js +69 -0
  73. package/dist/models/ListTagResourcesResponse.js.map +1 -0
  74. package/dist/models/ListTagResourcesResponseBody.d.ts +67 -0
  75. package/dist/models/ListTagResourcesResponseBody.js +114 -0
  76. package/dist/models/ListTagResourcesResponseBody.js.map +1 -0
  77. package/dist/models/ListTrusteeOrderRequest.d.ts +45 -0
  78. package/dist/models/ListTrusteeOrderRequest.js +64 -0
  79. package/dist/models/ListTrusteeOrderRequest.js.map +1 -0
  80. package/dist/models/ListTrusteeOrderResponse.d.ts +19 -0
  81. package/dist/models/ListTrusteeOrderResponse.js +69 -0
  82. package/dist/models/ListTrusteeOrderResponse.js.map +1 -0
  83. package/dist/models/ListTrusteeOrderResponseBody.d.ts +85 -0
  84. package/dist/models/ListTrusteeOrderResponseBody.js +66 -0
  85. package/dist/models/ListTrusteeOrderResponseBody.js.map +1 -0
  86. package/dist/models/RevokeCertificateRequest.d.ts +4 -1
  87. package/dist/models/RevokeCertificateRequest.js.map +1 -1
  88. package/dist/models/RevokeCertificateResponseBody.d.ts +1 -1
  89. package/dist/models/ShareCertificateRequest.d.ts +33 -0
  90. package/dist/models/ShareCertificateRequest.js +60 -0
  91. package/dist/models/ShareCertificateRequest.js.map +1 -0
  92. package/dist/models/ShareCertificateResponse.d.ts +19 -0
  93. package/dist/models/ShareCertificateResponse.js +69 -0
  94. package/dist/models/ShareCertificateResponse.js.map +1 -0
  95. package/dist/models/ShareCertificateResponseBody.d.ts +21 -0
  96. package/dist/models/ShareCertificateResponseBody.js +58 -0
  97. package/dist/models/ShareCertificateResponseBody.js.map +1 -0
  98. package/dist/models/TagResourcesRequest.d.ts +73 -0
  99. package/dist/models/TagResourcesRequest.js +91 -0
  100. package/dist/models/TagResourcesRequest.js.map +1 -0
  101. package/dist/models/TagResourcesResponse.d.ts +19 -0
  102. package/dist/models/TagResourcesResponse.js +69 -0
  103. package/dist/models/TagResourcesResponse.js.map +1 -0
  104. package/dist/models/TagResourcesResponseBody.d.ts +21 -0
  105. package/dist/models/TagResourcesResponseBody.js +58 -0
  106. package/dist/models/TagResourcesResponseBody.js.map +1 -0
  107. package/dist/models/UntagResourcesRequest.d.ts +57 -0
  108. package/dist/models/UntagResourcesRequest.js +72 -0
  109. package/dist/models/UntagResourcesRequest.js.map +1 -0
  110. package/dist/models/UntagResourcesResponse.d.ts +19 -0
  111. package/dist/models/UntagResourcesResponse.js +69 -0
  112. package/dist/models/UntagResourcesResponse.js.map +1 -0
  113. package/dist/models/UntagResourcesResponseBody.d.ts +21 -0
  114. package/dist/models/UntagResourcesResponseBody.js +58 -0
  115. package/dist/models/UntagResourcesResponseBody.js.map +1 -0
  116. package/dist/models/UpdateCsrRequest.d.ts +2 -2
  117. package/dist/models/UpdateCsrResponseBody.d.ts +1 -1
  118. package/dist/models/UpdateInstanceRequest.d.ts +27 -39
  119. package/dist/models/UpdateInstanceRequest.js.map +1 -1
  120. package/dist/models/UpdateInstanceResponseBody.d.ts +1 -1
  121. package/dist/models/UpdateWorkerResourceStatusRequest.d.ts +3 -7
  122. package/dist/models/UpdateWorkerResourceStatusRequest.js.map +1 -1
  123. package/dist/models/UpdateWorkerResourceStatusResponseBody.d.ts +2 -2
  124. package/dist/models/UploadPcacertRequest.d.ts +5 -6
  125. package/dist/models/UploadPcacertRequest.js.map +1 -1
  126. package/dist/models/UploadPcacertResponseBody.d.ts +2 -2
  127. package/dist/models/UploadUserCertificateRequest.d.ts +19 -12
  128. package/dist/models/UploadUserCertificateRequest.js +2 -0
  129. package/dist/models/UploadUserCertificateRequest.js.map +1 -1
  130. package/dist/models/UploadUserCertificateResponseBody.d.ts +3 -3
  131. package/dist/models/model.d.ts +29 -0
  132. package/dist/models/model.js +64 -6
  133. package/dist/models/model.js.map +1 -1
  134. package/package.json +1 -1
  135. package/src/client.ts +617 -40
  136. package/src/models/CreateContactRequest.ts +1 -1
  137. package/src/models/CreateRollbackTaskRequest.ts +48 -0
  138. package/src/models/CreateRollbackTaskResponse.ts +40 -0
  139. package/src/models/CreateRollbackTaskResponseBody.ts +44 -0
  140. package/src/models/CreateWarehouseRequest.ts +3 -3
  141. package/src/models/CreateWarehouseResponseBody.ts +1 -1
  142. package/src/models/DeleteInstanceRequest.ts +10 -0
  143. package/src/models/DeleteUserCertificateRequest.ts +11 -2
  144. package/src/models/GetCertificateDetailResponseBody.ts +65 -51
  145. package/src/models/GetCertificatePackageCountRequest.ts +24 -0
  146. package/src/models/GetCertificatePackageCountResponse.ts +40 -0
  147. package/src/models/GetCertificatePackageCountResponseBody.ts +95 -0
  148. package/src/models/GetContactRequest.ts +2 -0
  149. package/src/models/GetContactResponseBody.ts +6 -2
  150. package/src/models/GetInstanceDetailResponseBody.ts +121 -36
  151. package/src/models/ListCertWarehouseRequest.ts +7 -13
  152. package/src/models/ListCertWarehouseResponseBody.ts +16 -23
  153. package/src/models/ListCertificatesRequest.ts +12 -19
  154. package/src/models/ListCertificatesResponseBody.ts +56 -50
  155. package/src/models/ListContactRequest.ts +2 -2
  156. package/src/models/ListContactResponseBody.ts +4 -0
  157. package/src/models/ListInstancesRequest.ts +28 -4
  158. package/src/models/ListInstancesResponseBody.ts +52 -18
  159. package/src/models/ListTagKeysRequest.ts +98 -0
  160. package/src/models/ListTagKeysResponse.ts +40 -0
  161. package/src/models/ListTagKeysResponseBody.ts +134 -0
  162. package/src/models/ListTagResourcesRequest.ts +128 -0
  163. package/src/models/ListTagResourcesResponse.ts +40 -0
  164. package/src/models/ListTagResourcesResponseBody.ts +118 -0
  165. package/src/models/ListTrusteeOrderRequest.ts +64 -0
  166. package/src/models/ListTrusteeOrderResponse.ts +40 -0
  167. package/src/models/ListTrusteeOrderResponseBody.ts +106 -0
  168. package/src/models/RevokeCertificateRequest.ts +4 -1
  169. package/src/models/RevokeCertificateResponseBody.ts +1 -1
  170. package/src/models/ShareCertificateRequest.ts +48 -0
  171. package/src/models/ShareCertificateResponse.ts +40 -0
  172. package/src/models/ShareCertificateResponseBody.ts +34 -0
  173. package/src/models/TagResourcesRequest.ts +110 -0
  174. package/src/models/TagResourcesResponse.ts +40 -0
  175. package/src/models/TagResourcesResponseBody.ts +34 -0
  176. package/src/models/UntagResourcesRequest.ts +84 -0
  177. package/src/models/UntagResourcesResponse.ts +40 -0
  178. package/src/models/UntagResourcesResponseBody.ts +34 -0
  179. package/src/models/UpdateCsrRequest.ts +2 -2
  180. package/src/models/UpdateCsrResponseBody.ts +1 -1
  181. package/src/models/UpdateInstanceRequest.ts +28 -40
  182. package/src/models/UpdateInstanceResponseBody.ts +1 -1
  183. package/src/models/UpdateWorkerResourceStatusRequest.ts +3 -7
  184. package/src/models/UpdateWorkerResourceStatusResponseBody.ts +2 -2
  185. package/src/models/UploadPcacertRequest.ts +5 -6
  186. package/src/models/UploadPcacertResponseBody.ts +2 -2
  187. package/src/models/UploadUserCertificateRequest.ts +21 -12
  188. package/src/models/UploadUserCertificateResponseBody.ts +3 -3
  189. package/src/models/model.ts +29 -0
package/dist/client.js CHANGED
@@ -101,8 +101,6 @@ class Client extends openapi_core_1.default {
101
101
  'rus-west-1-pop': "cas.aliyuncs.com",
102
102
  'us-east-1': "cas.aliyuncs.com",
103
103
  'us-west-1': "cas.aliyuncs.com",
104
- 'eu-central-1': "cas.eu-central-1.aliyuncs.com",
105
- 'ap-southeast-1': "cas.ap-southeast-1.aliyuncs.com",
106
104
  };
107
105
  this.checkConfig(config);
108
106
  this._endpoint = this.getEndpoint("cas", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
@@ -858,6 +856,48 @@ class Client extends openapi_core_1.default {
858
856
  let runtime = new $dara.RuntimeOptions({});
859
857
  return await this.createDeploymentJobWithOptions(request, runtime);
860
858
  }
859
+ /**
860
+ * Rolls back a deployment.
861
+ *
862
+ * @param request - CreateRollbackTaskRequest
863
+ * @param runtime - runtime options for this request RuntimeOptions
864
+ * @returns CreateRollbackTaskResponse
865
+ */
866
+ async createRollbackTaskWithOptions(request, runtime) {
867
+ request.validate();
868
+ let query = {};
869
+ if (!$dara.isNull(request.jobId)) {
870
+ query["JobId"] = request.jobId;
871
+ }
872
+ if (!$dara.isNull(request.workerId)) {
873
+ query["WorkerId"] = request.workerId;
874
+ }
875
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
876
+ query: openapi_core_2.OpenApiUtil.query(query),
877
+ });
878
+ let params = new openapi_core_2.$OpenApiUtil.Params({
879
+ action: "CreateRollbackTask",
880
+ version: "2020-04-07",
881
+ protocol: "HTTPS",
882
+ pathname: "/",
883
+ method: "POST",
884
+ authType: "AK",
885
+ style: "RPC",
886
+ reqBodyType: "formData",
887
+ bodyType: "json",
888
+ });
889
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateRollbackTaskResponse({}));
890
+ }
891
+ /**
892
+ * Rolls back a deployment.
893
+ *
894
+ * @param request - CreateRollbackTaskRequest
895
+ * @returns CreateRollbackTaskResponse
896
+ */
897
+ async createRollbackTask(request) {
898
+ let runtime = new $dara.RuntimeOptions({});
899
+ return await this.createRollbackTaskWithOptions(request, runtime);
900
+ }
861
901
  /**
862
902
  * Issues a single client certificate from the general user certificate repository.
863
903
  *
@@ -952,7 +992,12 @@ class Client extends openapi_core_1.default {
952
992
  return await this.createWHClientCertificateWithOptions(request, runtime);
953
993
  }
954
994
  /**
955
- * Creates a certificate warehouse.
995
+ * Creates a certificate repository.
996
+ *
997
+ * @remarks
998
+ * This operation is used to query the list of certificate repositories.
999
+ * ### QPS limit
1000
+ * The China single-user QPS limit for this operation is 10 calls per second. If this limit is exceeded, the API call is throttled, which may affect your business. Call this operation appropriately.
956
1001
  *
957
1002
  * @param request - CreateWarehouseRequest
958
1003
  * @param runtime - runtime options for this request RuntimeOptions
@@ -987,7 +1032,12 @@ class Client extends openapi_core_1.default {
987
1032
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateWarehouseResponse({}));
988
1033
  }
989
1034
  /**
990
- * Creates a certificate warehouse.
1035
+ * Creates a certificate repository.
1036
+ *
1037
+ * @remarks
1038
+ * This operation is used to query the list of certificate repositories.
1039
+ * ### QPS limit
1040
+ * The China single-user QPS limit for this operation is 10 calls per second. If this limit is exceeded, the API call is throttled, which may affect your business. Call this operation appropriately.
991
1041
  *
992
1042
  * @param request - CreateWarehouseRequest
993
1043
  * @returns CreateWarehouseResponse
@@ -1307,7 +1357,13 @@ class Client extends openapi_core_1.default {
1307
1357
  return await this.deleteDeploymentJobWithOptions(request, runtime);
1308
1358
  }
1309
1359
  /**
1310
- * Deletes a Certificate Management Service instance.
1360
+ * Deletes an instance.
1361
+ *
1362
+ * @remarks
1363
+ * Queries the status information of a private Certificate Authority (CA) instance that you purchased in the SSL Certificate console by using the ID of the private CA instance. For example, you can query the status of the CA instance, the number of certificates included, and the number of certificates issued.
1364
+ * Before you invoke this operation, you must have purchased a private CA in the [Certificate Management Service console](https://yundun.console.aliyun.com/?p=cas#/pca/rootlist). For more information, see [Purchase a private CA](https://help.aliyun.com/document_detail/208553.html).
1365
+ * ## QPS limit
1366
+ * The single-user QPS limit for this operation is 10 calls per second. If the limit is exceeded, the API call is throttled, which may affect your business. Invoke this operation as needed.
1311
1367
  *
1312
1368
  * @param request - DeleteInstanceRequest
1313
1369
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1316,6 +1372,9 @@ class Client extends openapi_core_1.default {
1316
1372
  async deleteInstanceWithOptions(request, runtime) {
1317
1373
  request.validate();
1318
1374
  let query = {};
1375
+ if (!$dara.isNull(request.clientToken)) {
1376
+ query["ClientToken"] = request.clientToken;
1377
+ }
1319
1378
  if (!$dara.isNull(request.instanceId)) {
1320
1379
  query["InstanceId"] = request.instanceId;
1321
1380
  }
@@ -1336,7 +1395,13 @@ class Client extends openapi_core_1.default {
1336
1395
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteInstanceResponse({}));
1337
1396
  }
1338
1397
  /**
1339
- * Deletes a Certificate Management Service instance.
1398
+ * Deletes an instance.
1399
+ *
1400
+ * @remarks
1401
+ * Queries the status information of a private Certificate Authority (CA) instance that you purchased in the SSL Certificate console by using the ID of the private CA instance. For example, you can query the status of the CA instance, the number of certificates included, and the number of certificates issued.
1402
+ * Before you invoke this operation, you must have purchased a private CA in the [Certificate Management Service console](https://yundun.console.aliyun.com/?p=cas#/pca/rootlist). For more information, see [Purchase a private CA](https://help.aliyun.com/document_detail/208553.html).
1403
+ * ## QPS limit
1404
+ * The single-user QPS limit for this operation is 10 calls per second. If the limit is exceeded, the API call is throttled, which may affect your business. Invoke this operation as needed.
1340
1405
  *
1341
1406
  * @param request - DeleteInstanceRequest
1342
1407
  * @returns DeleteInstanceResponse
@@ -1395,10 +1460,10 @@ class Client extends openapi_core_1.default {
1395
1460
  return await this.deletePCACertWithOptions(request, runtime);
1396
1461
  }
1397
1462
  /**
1398
- * Deletes an expired, revoked, or manually uploaded certificate from Certificate Management Service.
1463
+ * Deletes an expired, revoked, or uploaded certificate.
1399
1464
  *
1400
1465
  * @remarks
1401
- * This operation is limited to 100 queries per second (QPS) per user. API calls exceeding this limit are throttled, which can impact your business. We recommend calling this operation at a reasonable rate to avoid this.
1466
+ * The China single-user queries per second (QPS) limit for this operation is 100. If this limit is exceeded, the API call is throttled, which may affect your business. Call this operation at an appropriate frequency.
1402
1467
  *
1403
1468
  * @param request - DeleteUserCertificateRequest
1404
1469
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1410,6 +1475,9 @@ class Client extends openapi_core_1.default {
1410
1475
  if (!$dara.isNull(request.certId)) {
1411
1476
  query["CertId"] = request.certId;
1412
1477
  }
1478
+ if (!$dara.isNull(request.clientToken)) {
1479
+ query["ClientToken"] = request.clientToken;
1480
+ }
1413
1481
  let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1414
1482
  query: openapi_core_2.OpenApiUtil.query(query),
1415
1483
  });
@@ -1427,10 +1495,10 @@ class Client extends openapi_core_1.default {
1427
1495
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteUserCertificateResponse({}));
1428
1496
  }
1429
1497
  /**
1430
- * Deletes an expired, revoked, or manually uploaded certificate from Certificate Management Service.
1498
+ * Deletes an expired, revoked, or uploaded certificate.
1431
1499
  *
1432
1500
  * @remarks
1433
- * This operation is limited to 100 queries per second (QPS) per user. API calls exceeding this limit are throttled, which can impact your business. We recommend calling this operation at a reasonable rate to avoid this.
1501
+ * The China single-user queries per second (QPS) limit for this operation is 100. If this limit is exceeded, the API call is throttled, which may affect your business. Call this operation at an appropriate frequency.
1434
1502
  *
1435
1503
  * @param request - DeleteUserCertificateRequest
1436
1504
  * @returns DeleteUserCertificateResponse
@@ -1911,7 +1979,10 @@ class Client extends openapi_core_1.default {
1911
1979
  return await this.getCertWarehouseQuotaWithOptions(runtime);
1912
1980
  }
1913
1981
  /**
1914
- * Retrieves certificate details, excluding the certificate body and private key.
1982
+ * Queries the details of a certificate. The certificate content and private key content are not returned.
1983
+ *
1984
+ * @remarks
1985
+ * The per-user queries per second (QPS) limit for this operation is 100. If this limit is exceeded, the API calls are throttled, which may affect your business. Use this operation as appropriate.
1915
1986
  *
1916
1987
  * @param request - GetCertificateDetailRequest
1917
1988
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1940,7 +2011,10 @@ class Client extends openapi_core_1.default {
1940
2011
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetCertificateDetailResponse({}));
1941
2012
  }
1942
2013
  /**
1943
- * Retrieves certificate details, excluding the certificate body and private key.
2014
+ * Queries the details of a certificate. The certificate content and private key content are not returned.
2015
+ *
2016
+ * @remarks
2017
+ * The per-user queries per second (QPS) limit for this operation is 100. If this limit is exceeded, the API calls are throttled, which may affect your business. Use this operation as appropriate.
1944
2018
  *
1945
2019
  * @param request - GetCertificateDetailRequest
1946
2020
  * @returns GetCertificateDetailResponse
@@ -1949,6 +2023,49 @@ class Client extends openapi_core_1.default {
1949
2023
  let runtime = new $dara.RuntimeOptions({});
1950
2024
  return await this.getCertificateDetailWithOptions(request, runtime);
1951
2025
  }
2026
+ /**
2027
+ * Retrieves the number of certificate resource plans.
2028
+ *
2029
+ * @remarks
2030
+ * Queries the number of CA certificates (including root CA certificates and subordinate CA certificates) that you have created.
2031
+ * ## QPS limit
2032
+ * The single-user QPS limit for this operation is 10 calls per second. If this limit is exceeded, the API call is throttled, which may affect your business. Call this operation as needed.
2033
+ *
2034
+ * @param request - GetCertificatePackageCountRequest
2035
+ * @param runtime - runtime options for this request RuntimeOptions
2036
+ * @returns GetCertificatePackageCountResponse
2037
+ */
2038
+ async getCertificatePackageCountWithOptions(request, runtime) {
2039
+ request.validate();
2040
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({});
2041
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2042
+ action: "GetCertificatePackageCount",
2043
+ version: "2020-04-07",
2044
+ protocol: "HTTPS",
2045
+ pathname: "/",
2046
+ method: "POST",
2047
+ authType: "AK",
2048
+ style: "RPC",
2049
+ reqBodyType: "formData",
2050
+ bodyType: "json",
2051
+ });
2052
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetCertificatePackageCountResponse({}));
2053
+ }
2054
+ /**
2055
+ * Retrieves the number of certificate resource plans.
2056
+ *
2057
+ * @remarks
2058
+ * Queries the number of CA certificates (including root CA certificates and subordinate CA certificates) that you have created.
2059
+ * ## QPS limit
2060
+ * The single-user QPS limit for this operation is 10 calls per second. If this limit is exceeded, the API call is throttled, which may affect your business. Call this operation as needed.
2061
+ *
2062
+ * @param request - GetCertificatePackageCountRequest
2063
+ * @returns GetCertificatePackageCountResponse
2064
+ */
2065
+ async getCertificatePackageCount(request) {
2066
+ let runtime = new $dara.RuntimeOptions({});
2067
+ return await this.getCertificatePackageCountWithOptions(request, runtime);
2068
+ }
1952
2069
  /**
1953
2070
  * Retrieves the details of a company.
1954
2071
  *
@@ -2069,6 +2186,12 @@ class Client extends openapi_core_1.default {
2069
2186
  /**
2070
2187
  * Queries the details of an instance.
2071
2188
  *
2189
+ * @remarks
2190
+ * This operation queries the status information of a Private Certificate Authority (PCA) instance that you purchased in the Certificate Management Service console by using the instance ID. The status information includes the CA instance status, the number of digital certificates included, and the number of digital certificates issued.
2191
+ * Before you invoke this operation, you must have purchased a private CA in the [Certificate Management Service console](https://yundun.console.aliyun.com/?p=cas#/pca/rootlist). For more information, see [Purchase a private CA](https://help.aliyun.com/document_detail/208553.html).
2192
+ * ## QPS limit
2193
+ * The QPS limit for a single user is 10 calls per second. If the limit is exceeded, throttling is triggered, which may affect your business. Invoke this operation as appropriate.
2194
+ *
2072
2195
  * @param request - GetInstanceDetailRequest
2073
2196
  * @param runtime - runtime options for this request RuntimeOptions
2074
2197
  * @returns GetInstanceDetailResponse
@@ -2098,6 +2221,12 @@ class Client extends openapi_core_1.default {
2098
2221
  /**
2099
2222
  * Queries the details of an instance.
2100
2223
  *
2224
+ * @remarks
2225
+ * This operation queries the status information of a Private Certificate Authority (PCA) instance that you purchased in the Certificate Management Service console by using the instance ID. The status information includes the CA instance status, the number of digital certificates included, and the number of digital certificates issued.
2226
+ * Before you invoke this operation, you must have purchased a private CA in the [Certificate Management Service console](https://yundun.console.aliyun.com/?p=cas#/pca/rootlist). For more information, see [Purchase a private CA](https://help.aliyun.com/document_detail/208553.html).
2227
+ * ## QPS limit
2228
+ * The QPS limit for a single user is 10 calls per second. If the limit is exceeded, throttling is triggered, which may affect your business. Invoke this operation as appropriate.
2229
+ *
2101
2230
  * @param request - GetInstanceDetailRequest
2102
2231
  * @returns GetInstanceDetailResponse
2103
2232
  */
@@ -2458,12 +2587,12 @@ class Client extends openapi_core_1.default {
2458
2587
  return await this.listCertWithOptions(request, runtime);
2459
2588
  }
2460
2589
  /**
2461
- * Queries the certificate application repositories in your account.
2590
+ * Queries the list of certificate repositories.
2462
2591
  *
2463
2592
  * @remarks
2464
- * You can call the ListCertWarehouse operation to query certificate repositories.
2465
- * ### Limits
2466
- * You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
2593
+ * Queries the list of certificate repositories.
2594
+ * ### QPS limit
2595
+ * The single-user QPS limit for this API is 10 calls per second. If this limit is exceeded, the API calls are throttled, which may affect your business. Call this API appropriately.
2467
2596
  *
2468
2597
  * @param request - ListCertWarehouseRequest
2469
2598
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2504,12 +2633,12 @@ class Client extends openapi_core_1.default {
2504
2633
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListCertWarehouseResponse({}));
2505
2634
  }
2506
2635
  /**
2507
- * Queries the certificate application repositories in your account.
2636
+ * Queries the list of certificate repositories.
2508
2637
  *
2509
2638
  * @remarks
2510
- * You can call the ListCertWarehouse operation to query certificate repositories.
2511
- * ### Limits
2512
- * You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
2639
+ * Queries the list of certificate repositories.
2640
+ * ### QPS limit
2641
+ * The single-user QPS limit for this API is 10 calls per second. If this limit is exceeded, the API calls are throttled, which may affect your business. Call this API appropriately.
2513
2642
  *
2514
2643
  * @param request - ListCertWarehouseRequest
2515
2644
  * @returns ListCertWarehouseResponse
@@ -2519,7 +2648,11 @@ class Client extends openapi_core_1.default {
2519
2648
  return await this.listCertWarehouseWithOptions(request, runtime);
2520
2649
  }
2521
2650
  /**
2522
- * Queries the certificates managed by Certificate Management Service.
2651
+ * Retrieves a list of certificates.
2652
+ *
2653
+ * @remarks
2654
+ * Queries the operation logs of CA certificates, including root CA certificates and subordinate CA certificates. For example, you can query the creation logs and status change logs of CA certificates.
2655
+ * The per-user queries per second (QPS) limit for this operation is 10. If this limit is exceeded, API calls are throttled, which may affect your business. Call this operation at an appropriate frequency.
2523
2656
  *
2524
2657
  * @param request - ListCertificatesRequest
2525
2658
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2566,7 +2699,11 @@ class Client extends openapi_core_1.default {
2566
2699
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListCertificatesResponse({}));
2567
2700
  }
2568
2701
  /**
2569
- * Queries the certificates managed by Certificate Management Service.
2702
+ * Retrieves a list of certificates.
2703
+ *
2704
+ * @remarks
2705
+ * Queries the operation logs of CA certificates, including root CA certificates and subordinate CA certificates. For example, you can query the creation logs and status change logs of CA certificates.
2706
+ * The per-user queries per second (QPS) limit for this operation is 10. If this limit is exceeded, API calls are throttled, which may affect your business. Call this operation at an appropriate frequency.
2570
2707
  *
2571
2708
  * @param request - ListCertificatesRequest
2572
2709
  * @returns ListCertificatesResponse
@@ -2734,7 +2871,7 @@ class Client extends openapi_core_1.default {
2734
2871
  return await this.listCompaniesWithOptions(request, runtime);
2735
2872
  }
2736
2873
  /**
2737
- * Retrieves a list of contacts.
2874
+ * Retrieves the list of contacts.
2738
2875
  *
2739
2876
  * @param request - ListContactRequest
2740
2877
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2769,7 +2906,7 @@ class Client extends openapi_core_1.default {
2769
2906
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListContactResponse({}));
2770
2907
  }
2771
2908
  /**
2772
- * Retrieves a list of contacts.
2909
+ * Retrieves the list of contacts.
2773
2910
  *
2774
2911
  * @param request - ListContactRequest
2775
2912
  * @returns ListContactResponse
@@ -2955,6 +3092,12 @@ class Client extends openapi_core_1.default {
2955
3092
  /**
2956
3093
  * Retrieves a list of instances.
2957
3094
  *
3095
+ * @remarks
3096
+ * Queries the status information of Private Certificate Authority (PCA) instances that you purchased through the SSL Certificate console by using the IDs of the PCA instances. For example, you can query the status of a CA instance, the number of digital certificates included, and the number of digital certificates issued.
3097
+ * Before you invoke this operation, you must have purchased a private CA through the [Certificate Management Service console](https://yundun.console.aliyun.com/?p=cas#/pca/rootlist). For more information, see [Purchase a private CA](https://help.aliyun.com/document_detail/208553.html).
3098
+ * ## QPS limit
3099
+ * The single-user QPS limit for this operation is 10 requests per second. If the limit is exceeded, API calls are throttled, which may affect your business. Invoke this operation at an appropriate frequency.
3100
+ *
2958
3101
  * @param request - ListInstancesRequest
2959
3102
  * @param runtime - runtime options for this request RuntimeOptions
2960
3103
  * @returns ListInstancesResponse
@@ -2962,6 +3105,9 @@ class Client extends openapi_core_1.default {
2962
3105
  async listInstancesWithOptions(request, runtime) {
2963
3106
  request.validate();
2964
3107
  let query = {};
3108
+ if (!$dara.isNull(request.autoReissueFlag)) {
3109
+ query["AutoReissueFlag"] = request.autoReissueFlag;
3110
+ }
2965
3111
  if (!$dara.isNull(request.brand)) {
2966
3112
  query["Brand"] = request.brand;
2967
3113
  }
@@ -2983,6 +3129,9 @@ class Client extends openapi_core_1.default {
2983
3129
  if (!$dara.isNull(request.resourceGroupId)) {
2984
3130
  query["ResourceGroupId"] = request.resourceGroupId;
2985
3131
  }
3132
+ if (!$dara.isNull(request.serverDeployFlag)) {
3133
+ query["ServerDeployFlag"] = request.serverDeployFlag;
3134
+ }
2986
3135
  if (!$dara.isNull(request.showSize)) {
2987
3136
  query["ShowSize"] = request.showSize;
2988
3137
  }
@@ -3008,6 +3157,12 @@ class Client extends openapi_core_1.default {
3008
3157
  /**
3009
3158
  * Retrieves a list of instances.
3010
3159
  *
3160
+ * @remarks
3161
+ * Queries the status information of Private Certificate Authority (PCA) instances that you purchased through the SSL Certificate console by using the IDs of the PCA instances. For example, you can query the status of a CA instance, the number of digital certificates included, and the number of digital certificates issued.
3162
+ * Before you invoke this operation, you must have purchased a private CA through the [Certificate Management Service console](https://yundun.console.aliyun.com/?p=cas#/pca/rootlist). For more information, see [Purchase a private CA](https://help.aliyun.com/document_detail/208553.html).
3163
+ * ## QPS limit
3164
+ * The single-user QPS limit for this operation is 10 requests per second. If the limit is exceeded, API calls are throttled, which may affect your business. Invoke this operation at an appropriate frequency.
3165
+ *
3011
3166
  * @param request - ListInstancesRequest
3012
3167
  * @returns ListInstancesResponse
3013
3168
  */
@@ -3015,6 +3170,199 @@ class Client extends openapi_core_1.default {
3015
3170
  let runtime = new $dara.RuntimeOptions({});
3016
3171
  return await this.listInstancesWithOptions(request, runtime);
3017
3172
  }
3173
+ /**
3174
+ * Retrieves a list of tag keys and values.
3175
+ *
3176
+ * @remarks
3177
+ * Queries the status information of a private Certificate Authority (CA) instance that you purchased in the SSL Certificate console by using the ID of the private CA instance. For example, you can query the status of the CA instance, the number of certificates included, and the number of certificates issued.
3178
+ * Before you invoke this operation, you must have purchased a private CA in the [Certificate Management Service console](https://yundun.console.aliyun.com/?p=cas#/pca/rootlist). For more information, see [Purchase a private CA](https://help.aliyun.com/document_detail/208553.html).
3179
+ * ## QPS limit
3180
+ * The single-user QPS limit for this operation is 10 calls per second. If the limit is exceeded, the API call is throttled, which may affect your business. Invoke this operation as appropriate.
3181
+ *
3182
+ * @param request - ListTagKeysRequest
3183
+ * @param runtime - runtime options for this request RuntimeOptions
3184
+ * @returns ListTagKeysResponse
3185
+ */
3186
+ async listTagKeysWithOptions(request, runtime) {
3187
+ request.validate();
3188
+ let query = {};
3189
+ if (!$dara.isNull(request.currentPage)) {
3190
+ query["CurrentPage"] = request.currentPage;
3191
+ }
3192
+ if (!$dara.isNull(request.maxResults)) {
3193
+ query["MaxResults"] = request.maxResults;
3194
+ }
3195
+ if (!$dara.isNull(request.nextToken)) {
3196
+ query["NextToken"] = request.nextToken;
3197
+ }
3198
+ if (!$dara.isNull(request.pageSize)) {
3199
+ query["PageSize"] = request.pageSize;
3200
+ }
3201
+ if (!$dara.isNull(request.regionId)) {
3202
+ query["RegionId"] = request.regionId;
3203
+ }
3204
+ if (!$dara.isNull(request.resourceGroupId)) {
3205
+ query["ResourceGroupId"] = request.resourceGroupId;
3206
+ }
3207
+ if (!$dara.isNull(request.resourceType)) {
3208
+ query["ResourceType"] = request.resourceType;
3209
+ }
3210
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3211
+ query: openapi_core_2.OpenApiUtil.query(query),
3212
+ });
3213
+ let params = new openapi_core_2.$OpenApiUtil.Params({
3214
+ action: "ListTagKeys",
3215
+ version: "2020-04-07",
3216
+ protocol: "HTTPS",
3217
+ pathname: "/",
3218
+ method: "POST",
3219
+ authType: "AK",
3220
+ style: "RPC",
3221
+ reqBodyType: "formData",
3222
+ bodyType: "json",
3223
+ });
3224
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListTagKeysResponse({}));
3225
+ }
3226
+ /**
3227
+ * Retrieves a list of tag keys and values.
3228
+ *
3229
+ * @remarks
3230
+ * Queries the status information of a private Certificate Authority (CA) instance that you purchased in the SSL Certificate console by using the ID of the private CA instance. For example, you can query the status of the CA instance, the number of certificates included, and the number of certificates issued.
3231
+ * Before you invoke this operation, you must have purchased a private CA in the [Certificate Management Service console](https://yundun.console.aliyun.com/?p=cas#/pca/rootlist). For more information, see [Purchase a private CA](https://help.aliyun.com/document_detail/208553.html).
3232
+ * ## QPS limit
3233
+ * The single-user QPS limit for this operation is 10 calls per second. If the limit is exceeded, the API call is throttled, which may affect your business. Invoke this operation as appropriate.
3234
+ *
3235
+ * @param request - ListTagKeysRequest
3236
+ * @returns ListTagKeysResponse
3237
+ */
3238
+ async listTagKeys(request) {
3239
+ let runtime = new $dara.RuntimeOptions({});
3240
+ return await this.listTagKeysWithOptions(request, runtime);
3241
+ }
3242
+ /**
3243
+ * Retrieves the tags associated with a resource.
3244
+ *
3245
+ * @remarks
3246
+ * This operation queries the status information of a private Certificate Authority (CA) instance that you purchased through the SSL Certificate console by using the ID of the private CA instance. For example, you can query the status of the CA instance, the number of digital certificates included, and the number of digital certificates issued.
3247
+ * Before you invoke this operation, you must have purchased a private CA through the [Certificate Management Service console](https://yundun.console.aliyun.com/?p=cas#/pca/rootlist). For more information, see [Purchase a private CA](https://help.aliyun.com/document_detail/208553.html).
3248
+ * ## QPS limit
3249
+ * The single-user QPS limit for this operation is 10 calls per second. If the limit is exceeded, API calls are throttled, which may affect your business. Invoke this operation appropriately.
3250
+ *
3251
+ * @param request - ListTagResourcesRequest
3252
+ * @param runtime - runtime options for this request RuntimeOptions
3253
+ * @returns ListTagResourcesResponse
3254
+ */
3255
+ async listTagResourcesWithOptions(request, runtime) {
3256
+ request.validate();
3257
+ let query = {};
3258
+ if (!$dara.isNull(request.maxResults)) {
3259
+ query["MaxResults"] = request.maxResults;
3260
+ }
3261
+ if (!$dara.isNull(request.nextToken)) {
3262
+ query["NextToken"] = request.nextToken;
3263
+ }
3264
+ if (!$dara.isNull(request.regionId)) {
3265
+ query["RegionId"] = request.regionId;
3266
+ }
3267
+ if (!$dara.isNull(request.resourceId)) {
3268
+ query["ResourceId"] = request.resourceId;
3269
+ }
3270
+ if (!$dara.isNull(request.resourceType)) {
3271
+ query["ResourceType"] = request.resourceType;
3272
+ }
3273
+ if (!$dara.isNull(request.tag)) {
3274
+ query["Tag"] = request.tag;
3275
+ }
3276
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3277
+ query: openapi_core_2.OpenApiUtil.query(query),
3278
+ });
3279
+ let params = new openapi_core_2.$OpenApiUtil.Params({
3280
+ action: "ListTagResources",
3281
+ version: "2020-04-07",
3282
+ protocol: "HTTPS",
3283
+ pathname: "/",
3284
+ method: "POST",
3285
+ authType: "AK",
3286
+ style: "RPC",
3287
+ reqBodyType: "formData",
3288
+ bodyType: "json",
3289
+ });
3290
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListTagResourcesResponse({}));
3291
+ }
3292
+ /**
3293
+ * Retrieves the tags associated with a resource.
3294
+ *
3295
+ * @remarks
3296
+ * This operation queries the status information of a private Certificate Authority (CA) instance that you purchased through the SSL Certificate console by using the ID of the private CA instance. For example, you can query the status of the CA instance, the number of digital certificates included, and the number of digital certificates issued.
3297
+ * Before you invoke this operation, you must have purchased a private CA through the [Certificate Management Service console](https://yundun.console.aliyun.com/?p=cas#/pca/rootlist). For more information, see [Purchase a private CA](https://help.aliyun.com/document_detail/208553.html).
3298
+ * ## QPS limit
3299
+ * The single-user QPS limit for this operation is 10 calls per second. If the limit is exceeded, API calls are throttled, which may affect your business. Invoke this operation appropriately.
3300
+ *
3301
+ * @param request - ListTagResourcesRequest
3302
+ * @returns ListTagResourcesResponse
3303
+ */
3304
+ async listTagResources(request) {
3305
+ let runtime = new $dara.RuntimeOptions({});
3306
+ return await this.listTagResourcesWithOptions(request, runtime);
3307
+ }
3308
+ /**
3309
+ * Retrieves the list of managed orders.
3310
+ *
3311
+ * @remarks
3312
+ * Queries the managed orders for a certificate or order.
3313
+ * ## QPS limit
3314
+ * The single-user QPS limit for this operation is 10 calls per second. If this limit is exceeded, the API call is throttled, which may affect your business. Call this operation appropriately.
3315
+ *
3316
+ * @param request - ListTrusteeOrderRequest
3317
+ * @param runtime - runtime options for this request RuntimeOptions
3318
+ * @returns ListTrusteeOrderResponse
3319
+ */
3320
+ async listTrusteeOrderWithOptions(request, runtime) {
3321
+ request.validate();
3322
+ let query = {};
3323
+ if (!$dara.isNull(request.certificateId)) {
3324
+ query["CertificateId"] = request.certificateId;
3325
+ }
3326
+ if (!$dara.isNull(request.maxResults)) {
3327
+ query["MaxResults"] = request.maxResults;
3328
+ }
3329
+ if (!$dara.isNull(request.nextToken)) {
3330
+ query["NextToken"] = request.nextToken;
3331
+ }
3332
+ if (!$dara.isNull(request.orderId)) {
3333
+ query["OrderId"] = request.orderId;
3334
+ }
3335
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3336
+ query: openapi_core_2.OpenApiUtil.query(query),
3337
+ });
3338
+ let params = new openapi_core_2.$OpenApiUtil.Params({
3339
+ action: "ListTrusteeOrder",
3340
+ version: "2020-04-07",
3341
+ protocol: "HTTPS",
3342
+ pathname: "/",
3343
+ method: "POST",
3344
+ authType: "AK",
3345
+ style: "RPC",
3346
+ reqBodyType: "formData",
3347
+ bodyType: "json",
3348
+ });
3349
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListTrusteeOrderResponse({}));
3350
+ }
3351
+ /**
3352
+ * Retrieves the list of managed orders.
3353
+ *
3354
+ * @remarks
3355
+ * Queries the managed orders for a certificate or order.
3356
+ * ## QPS limit
3357
+ * The single-user QPS limit for this operation is 10 calls per second. If this limit is exceeded, the API call is throttled, which may affect your business. Call this operation appropriately.
3358
+ *
3359
+ * @param request - ListTrusteeOrderRequest
3360
+ * @returns ListTrusteeOrderResponse
3361
+ */
3362
+ async listTrusteeOrder(request) {
3363
+ let runtime = new $dara.RuntimeOptions({});
3364
+ return await this.listTrusteeOrderWithOptions(request, runtime);
3365
+ }
3018
3366
  /**
3019
3367
  * Queries the list of user certificates or orders.
3020
3368
  *
@@ -3339,6 +3687,11 @@ class Client extends openapi_core_1.default {
3339
3687
  /**
3340
3688
  * Revokes a certificate.
3341
3689
  *
3690
+ * @remarks
3691
+ * Invokes this operation to query the details of all revoked client certificates and server certificates by paging. The details include the unique identifier, serial number, and revocation date of each certificate.
3692
+ * ## QPS limit
3693
+ * The queries per second (QPS) limit for a single user for this operation is 10. If the limit is exceeded, API calls are throttled, which may affect your business. Invoke this operation at an appropriate frequency.
3694
+ *
3342
3695
  * @param request - RevokeCertificateRequest
3343
3696
  * @param runtime - runtime options for this request RuntimeOptions
3344
3697
  * @returns RevokeCertificateResponse
@@ -3371,6 +3724,11 @@ class Client extends openapi_core_1.default {
3371
3724
  /**
3372
3725
  * Revokes a certificate.
3373
3726
  *
3727
+ * @remarks
3728
+ * Invokes this operation to query the details of all revoked client certificates and server certificates by paging. The details include the unique identifier, serial number, and revocation date of each certificate.
3729
+ * ## QPS limit
3730
+ * The queries per second (QPS) limit for a single user for this operation is 10. If the limit is exceeded, API calls are throttled, which may affect your business. Invoke this operation at an appropriate frequency.
3731
+ *
3374
3732
  * @param request - RevokeCertificateRequest
3375
3733
  * @returns RevokeCertificateResponse
3376
3734
  */
@@ -3423,6 +3781,48 @@ class Client extends openapi_core_1.default {
3423
3781
  let runtime = new $dara.RuntimeOptions({});
3424
3782
  return await this.revokeWHClientCertificateWithOptions(request, runtime);
3425
3783
  }
3784
+ /**
3785
+ * Shares a certificate.
3786
+ *
3787
+ * @param request - ShareCertificateRequest
3788
+ * @param runtime - runtime options for this request RuntimeOptions
3789
+ * @returns ShareCertificateResponse
3790
+ */
3791
+ async shareCertificateWithOptions(request, runtime) {
3792
+ request.validate();
3793
+ let query = {};
3794
+ if (!$dara.isNull(request.certificateId)) {
3795
+ query["CertificateId"] = request.certificateId;
3796
+ }
3797
+ if (!$dara.isNull(request.targetUserId)) {
3798
+ query["TargetUserId"] = request.targetUserId;
3799
+ }
3800
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3801
+ query: openapi_core_2.OpenApiUtil.query(query),
3802
+ });
3803
+ let params = new openapi_core_2.$OpenApiUtil.Params({
3804
+ action: "ShareCertificate",
3805
+ version: "2020-04-07",
3806
+ protocol: "HTTPS",
3807
+ pathname: "/",
3808
+ method: "POST",
3809
+ authType: "AK",
3810
+ style: "RPC",
3811
+ reqBodyType: "formData",
3812
+ bodyType: "json",
3813
+ });
3814
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ShareCertificateResponse({}));
3815
+ }
3816
+ /**
3817
+ * Shares a certificate.
3818
+ *
3819
+ * @param request - ShareCertificateRequest
3820
+ * @returns ShareCertificateResponse
3821
+ */
3822
+ async shareCertificate(request) {
3823
+ let runtime = new $dara.RuntimeOptions({});
3824
+ return await this.shareCertificateWithOptions(request, runtime);
3825
+ }
3426
3826
  /**
3427
3827
  * This operation creates a digital signature with a PCA certificate from a certificate repository.
3428
3828
  *
@@ -3487,6 +3887,129 @@ class Client extends openapi_core_1.default {
3487
3887
  let runtime = new $dara.RuntimeOptions({});
3488
3888
  return await this.signWithOptions(request, runtime);
3489
3889
  }
3890
+ /**
3891
+ * Adds resource tags.
3892
+ *
3893
+ * @remarks
3894
+ * Queries the status information of a private Certificate Authority (CA) instance that you purchased through the SSL Certificate console by using the ID of the private CA instance. For example, you can query the status of the CA instance, the number of certificates included, and the number of certificates issued.
3895
+ * Before you invoke this operation, you must have purchased a private CA through the [Certificate Management Service console](https://yundun.console.aliyun.com/?p=cas#/pca/rootlist). For more information, see [Purchase a private CA](https://help.aliyun.com/document_detail/208553.html).
3896
+ * ## QPS limit
3897
+ * The single-user QPS limit for this operation is 10 calls per second. If the limit is exceeded, the API call is throttled, which may affect your business. Invoke this operation as needed.
3898
+ *
3899
+ * @param request - TagResourcesRequest
3900
+ * @param runtime - runtime options for this request RuntimeOptions
3901
+ * @returns TagResourcesResponse
3902
+ */
3903
+ async tagResourcesWithOptions(request, runtime) {
3904
+ request.validate();
3905
+ let query = {};
3906
+ if (!$dara.isNull(request.regionId)) {
3907
+ query["RegionId"] = request.regionId;
3908
+ }
3909
+ if (!$dara.isNull(request.resourceId)) {
3910
+ query["ResourceId"] = request.resourceId;
3911
+ }
3912
+ if (!$dara.isNull(request.resourceType)) {
3913
+ query["ResourceType"] = request.resourceType;
3914
+ }
3915
+ if (!$dara.isNull(request.tag)) {
3916
+ query["Tag"] = request.tag;
3917
+ }
3918
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3919
+ query: openapi_core_2.OpenApiUtil.query(query),
3920
+ });
3921
+ let params = new openapi_core_2.$OpenApiUtil.Params({
3922
+ action: "TagResources",
3923
+ version: "2020-04-07",
3924
+ protocol: "HTTPS",
3925
+ pathname: "/",
3926
+ method: "POST",
3927
+ authType: "AK",
3928
+ style: "RPC",
3929
+ reqBodyType: "formData",
3930
+ bodyType: "json",
3931
+ });
3932
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.TagResourcesResponse({}));
3933
+ }
3934
+ /**
3935
+ * Adds resource tags.
3936
+ *
3937
+ * @remarks
3938
+ * Queries the status information of a private Certificate Authority (CA) instance that you purchased through the SSL Certificate console by using the ID of the private CA instance. For example, you can query the status of the CA instance, the number of certificates included, and the number of certificates issued.
3939
+ * Before you invoke this operation, you must have purchased a private CA through the [Certificate Management Service console](https://yundun.console.aliyun.com/?p=cas#/pca/rootlist). For more information, see [Purchase a private CA](https://help.aliyun.com/document_detail/208553.html).
3940
+ * ## QPS limit
3941
+ * The single-user QPS limit for this operation is 10 calls per second. If the limit is exceeded, the API call is throttled, which may affect your business. Invoke this operation as needed.
3942
+ *
3943
+ * @param request - TagResourcesRequest
3944
+ * @returns TagResourcesResponse
3945
+ */
3946
+ async tagResources(request) {
3947
+ let runtime = new $dara.RuntimeOptions({});
3948
+ return await this.tagResourcesWithOptions(request, runtime);
3949
+ }
3950
+ /**
3951
+ * Removes tags.
3952
+ *
3953
+ * @remarks
3954
+ * Queries the status information of a private Certificate Authority (CA) instance that you purchased through the SSL Certificate console by using the ID of the private CA instance. The status information includes the CA instance status, the number of digital certificates included, and the number of digital certificates issued.
3955
+ * Before you invoke this operation, you must have purchased a private CA through the [Certificate Management Service console](https://yundun.console.aliyun.com/?p=cas#/pca/rootlist). For more information, see [Purchase a private CA](https://help.aliyun.com/document_detail/208553.html).
3956
+ * ## QPS limit
3957
+ * The single-user QPS limit for this operation is 10 calls per second. If the limit is exceeded, the API call is throttled, which may affect your business. Invoke this operation as needed.
3958
+ *
3959
+ * @param request - UntagResourcesRequest
3960
+ * @param runtime - runtime options for this request RuntimeOptions
3961
+ * @returns UntagResourcesResponse
3962
+ */
3963
+ async untagResourcesWithOptions(request, runtime) {
3964
+ request.validate();
3965
+ let query = {};
3966
+ if (!$dara.isNull(request.all)) {
3967
+ query["All"] = request.all;
3968
+ }
3969
+ if (!$dara.isNull(request.regionId)) {
3970
+ query["RegionId"] = request.regionId;
3971
+ }
3972
+ if (!$dara.isNull(request.resourceId)) {
3973
+ query["ResourceId"] = request.resourceId;
3974
+ }
3975
+ if (!$dara.isNull(request.resourceType)) {
3976
+ query["ResourceType"] = request.resourceType;
3977
+ }
3978
+ if (!$dara.isNull(request.tagKey)) {
3979
+ query["TagKey"] = request.tagKey;
3980
+ }
3981
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3982
+ query: openapi_core_2.OpenApiUtil.query(query),
3983
+ });
3984
+ let params = new openapi_core_2.$OpenApiUtil.Params({
3985
+ action: "UntagResources",
3986
+ version: "2020-04-07",
3987
+ protocol: "HTTPS",
3988
+ pathname: "/",
3989
+ method: "POST",
3990
+ authType: "AK",
3991
+ style: "RPC",
3992
+ reqBodyType: "formData",
3993
+ bodyType: "json",
3994
+ });
3995
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.UntagResourcesResponse({}));
3996
+ }
3997
+ /**
3998
+ * Removes tags.
3999
+ *
4000
+ * @remarks
4001
+ * Queries the status information of a private Certificate Authority (CA) instance that you purchased through the SSL Certificate console by using the ID of the private CA instance. The status information includes the CA instance status, the number of digital certificates included, and the number of digital certificates issued.
4002
+ * Before you invoke this operation, you must have purchased a private CA through the [Certificate Management Service console](https://yundun.console.aliyun.com/?p=cas#/pca/rootlist). For more information, see [Purchase a private CA](https://help.aliyun.com/document_detail/208553.html).
4003
+ * ## QPS limit
4004
+ * The single-user QPS limit for this operation is 10 calls per second. If the limit is exceeded, the API call is throttled, which may affect your business. Invoke this operation as needed.
4005
+ *
4006
+ * @param request - UntagResourcesRequest
4007
+ * @returns UntagResourcesResponse
4008
+ */
4009
+ async untagResources(request) {
4010
+ let runtime = new $dara.RuntimeOptions({});
4011
+ return await this.untagResourcesWithOptions(request, runtime);
4012
+ }
3490
4013
  /**
3491
4014
  * Updates company information.
3492
4015
  *
@@ -3617,7 +4140,7 @@ class Client extends openapi_core_1.default {
3617
4140
  return await this.updateContactWithOptions(request, runtime);
3618
4141
  }
3619
4142
  /**
3620
- * Uploads the private key corresponding to a CSR if the private key was not provided when the local CSR was uploaded.
4143
+ * Uploads the private key corresponding to a CSR if you did not provide the CSR private key when uploading the local CSR.
3621
4144
  *
3622
4145
  * @param request - UpdateCsrRequest
3623
4146
  * @param runtime - runtime options for this request RuntimeOptions
@@ -3649,7 +4172,7 @@ class Client extends openapi_core_1.default {
3649
4172
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateCsrResponse({}));
3650
4173
  }
3651
4174
  /**
3652
- * Uploads the private key corresponding to a CSR if the private key was not provided when the local CSR was uploaded.
4175
+ * Uploads the private key corresponding to a CSR if you did not provide the CSR private key when uploading the local CSR.
3653
4176
  *
3654
4177
  * @param request - UpdateCsrRequest
3655
4178
  * @returns UpdateCsrResponse
@@ -3755,7 +4278,7 @@ class Client extends openapi_core_1.default {
3755
4278
  return await this.updateDeploymentJobStatusWithOptions(request, runtime);
3756
4279
  }
3757
4280
  /**
3758
- * Updates the configuration of a Certificate Management Service instance.
4281
+ * Updates an instance.
3759
4282
  *
3760
4283
  * @param request - UpdateInstanceRequest
3761
4284
  * @param runtime - runtime options for this request RuntimeOptions
@@ -3826,7 +4349,7 @@ class Client extends openapi_core_1.default {
3826
4349
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateInstanceResponse({}));
3827
4350
  }
3828
4351
  /**
3829
- * Updates the configuration of a Certificate Management Service instance.
4352
+ * Updates an instance.
3830
4353
  *
3831
4354
  * @param request - UpdateInstanceRequest
3832
4355
  * @returns UpdateInstanceResponse
@@ -3836,7 +4359,7 @@ class Client extends openapi_core_1.default {
3836
4359
  return await this.updateInstanceWithOptions(request, runtime);
3837
4360
  }
3838
4361
  /**
3839
- * Rolls back or re-executes a worker task in a certificate deployment task.
4362
+ * Updates the status of a worker task in a deployment task.
3840
4363
  *
3841
4364
  * @param request - UpdateWorkerResourceStatusRequest
3842
4365
  * @param runtime - runtime options for this request RuntimeOptions
@@ -3871,7 +4394,7 @@ class Client extends openapi_core_1.default {
3871
4394
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateWorkerResourceStatusResponse({}));
3872
4395
  }
3873
4396
  /**
3874
- * Rolls back or re-executes a worker task in a certificate deployment task.
4397
+ * Updates the status of a worker task in a deployment task.
3875
4398
  *
3876
4399
  * @param request - UpdateWorkerResourceStatusRequest
3877
4400
  * @returns UpdateWorkerResourceStatusResponse
@@ -3926,12 +4449,12 @@ class Client extends openapi_core_1.default {
3926
4449
  return await this.uploadCsrWithOptions(request, runtime);
3927
4450
  }
3928
4451
  /**
3929
- * Uploads a PCA certificate to a certificate warehouse.
4452
+ * Uploads a PCA certificate to a certificate repository.
3930
4453
  *
3931
4454
  * @remarks
3932
- * Use this operation to upload a PCA certificate to a certificate warehouse.
4455
+ * Uploads a PCA certificate to a certificate repository.
3933
4456
  * ## QPS limit
3934
- * The QPS limit for this operation is 10 requests per second per user. Exceeding this limit triggers throttling, which can affect your business.
4457
+ * The single-user QPS limit for this API is 10 calls per second. If this limit is exceeded, the API call is throttled, which may affect your business. Call this operation as needed.
3935
4458
  *
3936
4459
  * @param request - UploadPCACertRequest
3937
4460
  * @param runtime - runtime options for this request RuntimeOptions
@@ -3969,12 +4492,12 @@ class Client extends openapi_core_1.default {
3969
4492
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.UploadPCACertResponse({}));
3970
4493
  }
3971
4494
  /**
3972
- * Uploads a PCA certificate to a certificate warehouse.
4495
+ * Uploads a PCA certificate to a certificate repository.
3973
4496
  *
3974
4497
  * @remarks
3975
- * Use this operation to upload a PCA certificate to a certificate warehouse.
4498
+ * Uploads a PCA certificate to a certificate repository.
3976
4499
  * ## QPS limit
3977
- * The QPS limit for this operation is 10 requests per second per user. Exceeding this limit triggers throttling, which can affect your business.
4500
+ * The single-user QPS limit for this API is 10 calls per second. If this limit is exceeded, the API call is throttled, which may affect your business. Call this operation as needed.
3978
4501
  *
3979
4502
  * @param request - UploadPCACertRequest
3980
4503
  * @returns UploadPCACertResponse
@@ -3984,10 +4507,10 @@ class Client extends openapi_core_1.default {
3984
4507
  return await this.uploadPCACertWithOptions(request, runtime);
3985
4508
  }
3986
4509
  /**
3987
- * Uploads a certificate and its private key to Certificate Management Service. Both SM and non-SM certificates are supported.
4510
+ * Uploads a certificate, including a standard SM certificate or a non-SM certificate.
3988
4511
  *
3989
4512
  * @remarks
3990
- * The queries per second (QPS) limit for this operation is 100 for each user. If you exceed this limit, API calls are throttled. This may affect your business. Plan your calls accordingly.
4513
+ * The maximum number of calls per user is 100 per second. If the limit is exceeded, API calls are throttled, which may affect your business. Call this operation at a reasonable rate.
3991
4514
  *
3992
4515
  * @param request - UploadUserCertificateRequest
3993
4516
  * @param runtime - runtime options for this request RuntimeOptions
@@ -3999,6 +4522,9 @@ class Client extends openapi_core_1.default {
3999
4522
  if (!$dara.isNull(request.cert)) {
4000
4523
  query["Cert"] = request.cert;
4001
4524
  }
4525
+ if (!$dara.isNull(request.clientToken)) {
4526
+ query["ClientToken"] = request.clientToken;
4527
+ }
4002
4528
  if (!$dara.isNull(request.encryptCert)) {
4003
4529
  query["EncryptCert"] = request.encryptCert;
4004
4530
  }
@@ -4040,10 +4566,10 @@ class Client extends openapi_core_1.default {
4040
4566
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.UploadUserCertificateResponse({}));
4041
4567
  }
4042
4568
  /**
4043
- * Uploads a certificate and its private key to Certificate Management Service. Both SM and non-SM certificates are supported.
4569
+ * Uploads a certificate, including a standard SM certificate or a non-SM certificate.
4044
4570
  *
4045
4571
  * @remarks
4046
- * The queries per second (QPS) limit for this operation is 100 for each user. If you exceed this limit, API calls are throttled. This may affect your business. Plan your calls accordingly.
4572
+ * The maximum number of calls per user is 100 per second. If the limit is exceeded, API calls are throttled, which may affect your business. Call this operation at a reasonable rate.
4047
4573
  *
4048
4574
  * @param request - UploadUserCertificateRequest
4049
4575
  * @returns UploadUserCertificateResponse