@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/src/client.ts CHANGED
@@ -64,8 +64,6 @@ export default class Client extends OpenApi {
64
64
  'rus-west-1-pop': "cas.aliyuncs.com",
65
65
  'us-east-1': "cas.aliyuncs.com",
66
66
  'us-west-1': "cas.aliyuncs.com",
67
- 'eu-central-1': "cas.eu-central-1.aliyuncs.com",
68
- 'ap-southeast-1': "cas.ap-southeast-1.aliyuncs.com",
69
67
  };
70
68
  this.checkConfig(config);
71
69
  this._endpoint = this.getEndpoint("cas", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
@@ -920,6 +918,52 @@ export default class Client extends OpenApi {
920
918
  return await this.createDeploymentJobWithOptions(request, runtime);
921
919
  }
922
920
 
921
+ /**
922
+ * Rolls back a deployment.
923
+ *
924
+ * @param request - CreateRollbackTaskRequest
925
+ * @param runtime - runtime options for this request RuntimeOptions
926
+ * @returns CreateRollbackTaskResponse
927
+ */
928
+ async createRollbackTaskWithOptions(request: $_model.CreateRollbackTaskRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateRollbackTaskResponse> {
929
+ request.validate();
930
+ let query = { };
931
+ if (!$dara.isNull(request.jobId)) {
932
+ query["JobId"] = request.jobId;
933
+ }
934
+
935
+ if (!$dara.isNull(request.workerId)) {
936
+ query["WorkerId"] = request.workerId;
937
+ }
938
+
939
+ let req = new $OpenApiUtil.OpenApiRequest({
940
+ query: OpenApiUtil.query(query),
941
+ });
942
+ let params = new $OpenApiUtil.Params({
943
+ action: "CreateRollbackTask",
944
+ version: "2020-04-07",
945
+ protocol: "HTTPS",
946
+ pathname: "/",
947
+ method: "POST",
948
+ authType: "AK",
949
+ style: "RPC",
950
+ reqBodyType: "formData",
951
+ bodyType: "json",
952
+ });
953
+ return $dara.cast<$_model.CreateRollbackTaskResponse>(await this.callApi(params, req, runtime), new $_model.CreateRollbackTaskResponse({}));
954
+ }
955
+
956
+ /**
957
+ * Rolls back a deployment.
958
+ *
959
+ * @param request - CreateRollbackTaskRequest
960
+ * @returns CreateRollbackTaskResponse
961
+ */
962
+ async createRollbackTask(request: $_model.CreateRollbackTaskRequest): Promise<$_model.CreateRollbackTaskResponse> {
963
+ let runtime = new $dara.RuntimeOptions({ });
964
+ return await this.createRollbackTaskWithOptions(request, runtime);
965
+ }
966
+
923
967
  /**
924
968
  * Issues a single client certificate from the general user certificate repository.
925
969
  *
@@ -1033,7 +1077,12 @@ export default class Client extends OpenApi {
1033
1077
  }
1034
1078
 
1035
1079
  /**
1036
- * Creates a certificate warehouse.
1080
+ * Creates a certificate repository.
1081
+ *
1082
+ * @remarks
1083
+ * This operation is used to query the list of certificate repositories.
1084
+ * ### QPS limit
1085
+ * 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.
1037
1086
  *
1038
1087
  * @param request - CreateWarehouseRequest
1039
1088
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1072,7 +1121,12 @@ export default class Client extends OpenApi {
1072
1121
  }
1073
1122
 
1074
1123
  /**
1075
- * Creates a certificate warehouse.
1124
+ * Creates a certificate repository.
1125
+ *
1126
+ * @remarks
1127
+ * This operation is used to query the list of certificate repositories.
1128
+ * ### QPS limit
1129
+ * 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.
1076
1130
  *
1077
1131
  * @param request - CreateWarehouseRequest
1078
1132
  * @returns CreateWarehouseResponse
@@ -1419,7 +1473,13 @@ export default class Client extends OpenApi {
1419
1473
  }
1420
1474
 
1421
1475
  /**
1422
- * Deletes a Certificate Management Service instance.
1476
+ * Deletes an instance.
1477
+ *
1478
+ * @remarks
1479
+ * 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.
1480
+ * 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).
1481
+ * ## QPS limit
1482
+ * 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.
1423
1483
  *
1424
1484
  * @param request - DeleteInstanceRequest
1425
1485
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1428,6 +1488,10 @@ export default class Client extends OpenApi {
1428
1488
  async deleteInstanceWithOptions(request: $_model.DeleteInstanceRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteInstanceResponse> {
1429
1489
  request.validate();
1430
1490
  let query = { };
1491
+ if (!$dara.isNull(request.clientToken)) {
1492
+ query["ClientToken"] = request.clientToken;
1493
+ }
1494
+
1431
1495
  if (!$dara.isNull(request.instanceId)) {
1432
1496
  query["InstanceId"] = request.instanceId;
1433
1497
  }
@@ -1450,7 +1514,13 @@ export default class Client extends OpenApi {
1450
1514
  }
1451
1515
 
1452
1516
  /**
1453
- * Deletes a Certificate Management Service instance.
1517
+ * Deletes an instance.
1518
+ *
1519
+ * @remarks
1520
+ * 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.
1521
+ * 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).
1522
+ * ## QPS limit
1523
+ * 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.
1454
1524
  *
1455
1525
  * @param request - DeleteInstanceRequest
1456
1526
  * @returns DeleteInstanceResponse
@@ -1513,10 +1583,10 @@ export default class Client extends OpenApi {
1513
1583
  }
1514
1584
 
1515
1585
  /**
1516
- * Deletes an expired, revoked, or manually uploaded certificate from Certificate Management Service.
1586
+ * Deletes an expired, revoked, or uploaded certificate.
1517
1587
  *
1518
1588
  * @remarks
1519
- * 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.
1589
+ * 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.
1520
1590
  *
1521
1591
  * @param request - DeleteUserCertificateRequest
1522
1592
  * @param runtime - runtime options for this request RuntimeOptions
@@ -1529,6 +1599,10 @@ export default class Client extends OpenApi {
1529
1599
  query["CertId"] = request.certId;
1530
1600
  }
1531
1601
 
1602
+ if (!$dara.isNull(request.clientToken)) {
1603
+ query["ClientToken"] = request.clientToken;
1604
+ }
1605
+
1532
1606
  let req = new $OpenApiUtil.OpenApiRequest({
1533
1607
  query: OpenApiUtil.query(query),
1534
1608
  });
@@ -1547,10 +1621,10 @@ export default class Client extends OpenApi {
1547
1621
  }
1548
1622
 
1549
1623
  /**
1550
- * Deletes an expired, revoked, or manually uploaded certificate from Certificate Management Service.
1624
+ * Deletes an expired, revoked, or uploaded certificate.
1551
1625
  *
1552
1626
  * @remarks
1553
- * 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.
1627
+ * 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.
1554
1628
  *
1555
1629
  * @param request - DeleteUserCertificateRequest
1556
1630
  * @returns DeleteUserCertificateResponse
@@ -2069,7 +2143,10 @@ export default class Client extends OpenApi {
2069
2143
  }
2070
2144
 
2071
2145
  /**
2072
- * Retrieves certificate details, excluding the certificate body and private key.
2146
+ * Queries the details of a certificate. The certificate content and private key content are not returned.
2147
+ *
2148
+ * @remarks
2149
+ * 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.
2073
2150
  *
2074
2151
  * @param request - GetCertificateDetailRequest
2075
2152
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2100,7 +2177,10 @@ export default class Client extends OpenApi {
2100
2177
  }
2101
2178
 
2102
2179
  /**
2103
- * Retrieves certificate details, excluding the certificate body and private key.
2180
+ * Queries the details of a certificate. The certificate content and private key content are not returned.
2181
+ *
2182
+ * @remarks
2183
+ * 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.
2104
2184
  *
2105
2185
  * @param request - GetCertificateDetailRequest
2106
2186
  * @returns GetCertificateDetailResponse
@@ -2110,6 +2190,51 @@ export default class Client extends OpenApi {
2110
2190
  return await this.getCertificateDetailWithOptions(request, runtime);
2111
2191
  }
2112
2192
 
2193
+ /**
2194
+ * Retrieves the number of certificate resource plans.
2195
+ *
2196
+ * @remarks
2197
+ * Queries the number of CA certificates (including root CA certificates and subordinate CA certificates) that you have created.
2198
+ * ## QPS limit
2199
+ * 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.
2200
+ *
2201
+ * @param request - GetCertificatePackageCountRequest
2202
+ * @param runtime - runtime options for this request RuntimeOptions
2203
+ * @returns GetCertificatePackageCountResponse
2204
+ */
2205
+ async getCertificatePackageCountWithOptions(request: $_model.GetCertificatePackageCountRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetCertificatePackageCountResponse> {
2206
+ request.validate();
2207
+ let req = new $OpenApiUtil.OpenApiRequest({ });
2208
+ let params = new $OpenApiUtil.Params({
2209
+ action: "GetCertificatePackageCount",
2210
+ version: "2020-04-07",
2211
+ protocol: "HTTPS",
2212
+ pathname: "/",
2213
+ method: "POST",
2214
+ authType: "AK",
2215
+ style: "RPC",
2216
+ reqBodyType: "formData",
2217
+ bodyType: "json",
2218
+ });
2219
+ return $dara.cast<$_model.GetCertificatePackageCountResponse>(await this.callApi(params, req, runtime), new $_model.GetCertificatePackageCountResponse({}));
2220
+ }
2221
+
2222
+ /**
2223
+ * Retrieves the number of certificate resource plans.
2224
+ *
2225
+ * @remarks
2226
+ * Queries the number of CA certificates (including root CA certificates and subordinate CA certificates) that you have created.
2227
+ * ## QPS limit
2228
+ * 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.
2229
+ *
2230
+ * @param request - GetCertificatePackageCountRequest
2231
+ * @returns GetCertificatePackageCountResponse
2232
+ */
2233
+ async getCertificatePackageCount(request: $_model.GetCertificatePackageCountRequest): Promise<$_model.GetCertificatePackageCountResponse> {
2234
+ let runtime = new $dara.RuntimeOptions({ });
2235
+ return await this.getCertificatePackageCountWithOptions(request, runtime);
2236
+ }
2237
+
2113
2238
  /**
2114
2239
  * Retrieves the details of a company.
2115
2240
  *
@@ -2239,6 +2364,12 @@ export default class Client extends OpenApi {
2239
2364
  /**
2240
2365
  * Queries the details of an instance.
2241
2366
  *
2367
+ * @remarks
2368
+ * 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.
2369
+ * 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).
2370
+ * ## QPS limit
2371
+ * 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.
2372
+ *
2242
2373
  * @param request - GetInstanceDetailRequest
2243
2374
  * @param runtime - runtime options for this request RuntimeOptions
2244
2375
  * @returns GetInstanceDetailResponse
@@ -2270,6 +2401,12 @@ export default class Client extends OpenApi {
2270
2401
  /**
2271
2402
  * Queries the details of an instance.
2272
2403
  *
2404
+ * @remarks
2405
+ * 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.
2406
+ * 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).
2407
+ * ## QPS limit
2408
+ * 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.
2409
+ *
2273
2410
  * @param request - GetInstanceDetailRequest
2274
2411
  * @returns GetInstanceDetailResponse
2275
2412
  */
@@ -2666,12 +2803,12 @@ export default class Client extends OpenApi {
2666
2803
  }
2667
2804
 
2668
2805
  /**
2669
- * Queries the certificate application repositories in your account.
2806
+ * Queries the list of certificate repositories.
2670
2807
  *
2671
2808
  * @remarks
2672
- * You can call the ListCertWarehouse operation to query certificate repositories.
2673
- * ### Limits
2674
- * 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.
2809
+ * Queries the list of certificate repositories.
2810
+ * ### QPS limit
2811
+ * 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.
2675
2812
  *
2676
2813
  * @param request - ListCertWarehouseRequest
2677
2814
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2718,12 +2855,12 @@ export default class Client extends OpenApi {
2718
2855
  }
2719
2856
 
2720
2857
  /**
2721
- * Queries the certificate application repositories in your account.
2858
+ * Queries the list of certificate repositories.
2722
2859
  *
2723
2860
  * @remarks
2724
- * You can call the ListCertWarehouse operation to query certificate repositories.
2725
- * ### Limits
2726
- * 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.
2861
+ * Queries the list of certificate repositories.
2862
+ * ### QPS limit
2863
+ * 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.
2727
2864
  *
2728
2865
  * @param request - ListCertWarehouseRequest
2729
2866
  * @returns ListCertWarehouseResponse
@@ -2734,7 +2871,11 @@ export default class Client extends OpenApi {
2734
2871
  }
2735
2872
 
2736
2873
  /**
2737
- * Queries the certificates managed by Certificate Management Service.
2874
+ * Retrieves a list of certificates.
2875
+ *
2876
+ * @remarks
2877
+ * 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.
2878
+ * 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.
2738
2879
  *
2739
2880
  * @param request - ListCertificatesRequest
2740
2881
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2789,7 +2930,11 @@ export default class Client extends OpenApi {
2789
2930
  }
2790
2931
 
2791
2932
  /**
2792
- * Queries the certificates managed by Certificate Management Service.
2933
+ * Retrieves a list of certificates.
2934
+ *
2935
+ * @remarks
2936
+ * 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.
2937
+ * 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.
2793
2938
  *
2794
2939
  * @param request - ListCertificatesRequest
2795
2940
  * @returns ListCertificatesResponse
@@ -2980,7 +3125,7 @@ export default class Client extends OpenApi {
2980
3125
  }
2981
3126
 
2982
3127
  /**
2983
- * Retrieves a list of contacts.
3128
+ * Retrieves the list of contacts.
2984
3129
  *
2985
3130
  * @param request - ListContactRequest
2986
3131
  * @param runtime - runtime options for this request RuntimeOptions
@@ -3019,7 +3164,7 @@ export default class Client extends OpenApi {
3019
3164
  }
3020
3165
 
3021
3166
  /**
3022
- * Retrieves a list of contacts.
3167
+ * Retrieves the list of contacts.
3023
3168
  *
3024
3169
  * @param request - ListContactRequest
3025
3170
  * @returns ListContactResponse
@@ -3224,6 +3369,12 @@ export default class Client extends OpenApi {
3224
3369
  /**
3225
3370
  * Retrieves a list of instances.
3226
3371
  *
3372
+ * @remarks
3373
+ * 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.
3374
+ * 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).
3375
+ * ## QPS limit
3376
+ * 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.
3377
+ *
3227
3378
  * @param request - ListInstancesRequest
3228
3379
  * @param runtime - runtime options for this request RuntimeOptions
3229
3380
  * @returns ListInstancesResponse
@@ -3231,6 +3382,10 @@ export default class Client extends OpenApi {
3231
3382
  async listInstancesWithOptions(request: $_model.ListInstancesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListInstancesResponse> {
3232
3383
  request.validate();
3233
3384
  let query = { };
3385
+ if (!$dara.isNull(request.autoReissueFlag)) {
3386
+ query["AutoReissueFlag"] = request.autoReissueFlag;
3387
+ }
3388
+
3234
3389
  if (!$dara.isNull(request.brand)) {
3235
3390
  query["Brand"] = request.brand;
3236
3391
  }
@@ -3259,6 +3414,10 @@ export default class Client extends OpenApi {
3259
3414
  query["ResourceGroupId"] = request.resourceGroupId;
3260
3415
  }
3261
3416
 
3417
+ if (!$dara.isNull(request.serverDeployFlag)) {
3418
+ query["ServerDeployFlag"] = request.serverDeployFlag;
3419
+ }
3420
+
3262
3421
  if (!$dara.isNull(request.showSize)) {
3263
3422
  query["ShowSize"] = request.showSize;
3264
3423
  }
@@ -3287,6 +3446,12 @@ export default class Client extends OpenApi {
3287
3446
  /**
3288
3447
  * Retrieves a list of instances.
3289
3448
  *
3449
+ * @remarks
3450
+ * 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.
3451
+ * 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).
3452
+ * ## QPS limit
3453
+ * 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.
3454
+ *
3290
3455
  * @param request - ListInstancesRequest
3291
3456
  * @returns ListInstancesResponse
3292
3457
  */
@@ -3295,6 +3460,222 @@ export default class Client extends OpenApi {
3295
3460
  return await this.listInstancesWithOptions(request, runtime);
3296
3461
  }
3297
3462
 
3463
+ /**
3464
+ * Retrieves a list of tag keys and values.
3465
+ *
3466
+ * @remarks
3467
+ * 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.
3468
+ * 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).
3469
+ * ## QPS limit
3470
+ * 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.
3471
+ *
3472
+ * @param request - ListTagKeysRequest
3473
+ * @param runtime - runtime options for this request RuntimeOptions
3474
+ * @returns ListTagKeysResponse
3475
+ */
3476
+ async listTagKeysWithOptions(request: $_model.ListTagKeysRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListTagKeysResponse> {
3477
+ request.validate();
3478
+ let query = { };
3479
+ if (!$dara.isNull(request.currentPage)) {
3480
+ query["CurrentPage"] = request.currentPage;
3481
+ }
3482
+
3483
+ if (!$dara.isNull(request.maxResults)) {
3484
+ query["MaxResults"] = request.maxResults;
3485
+ }
3486
+
3487
+ if (!$dara.isNull(request.nextToken)) {
3488
+ query["NextToken"] = request.nextToken;
3489
+ }
3490
+
3491
+ if (!$dara.isNull(request.pageSize)) {
3492
+ query["PageSize"] = request.pageSize;
3493
+ }
3494
+
3495
+ if (!$dara.isNull(request.regionId)) {
3496
+ query["RegionId"] = request.regionId;
3497
+ }
3498
+
3499
+ if (!$dara.isNull(request.resourceGroupId)) {
3500
+ query["ResourceGroupId"] = request.resourceGroupId;
3501
+ }
3502
+
3503
+ if (!$dara.isNull(request.resourceType)) {
3504
+ query["ResourceType"] = request.resourceType;
3505
+ }
3506
+
3507
+ let req = new $OpenApiUtil.OpenApiRequest({
3508
+ query: OpenApiUtil.query(query),
3509
+ });
3510
+ let params = new $OpenApiUtil.Params({
3511
+ action: "ListTagKeys",
3512
+ version: "2020-04-07",
3513
+ protocol: "HTTPS",
3514
+ pathname: "/",
3515
+ method: "POST",
3516
+ authType: "AK",
3517
+ style: "RPC",
3518
+ reqBodyType: "formData",
3519
+ bodyType: "json",
3520
+ });
3521
+ return $dara.cast<$_model.ListTagKeysResponse>(await this.callApi(params, req, runtime), new $_model.ListTagKeysResponse({}));
3522
+ }
3523
+
3524
+ /**
3525
+ * Retrieves a list of tag keys and values.
3526
+ *
3527
+ * @remarks
3528
+ * 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.
3529
+ * 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).
3530
+ * ## QPS limit
3531
+ * 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.
3532
+ *
3533
+ * @param request - ListTagKeysRequest
3534
+ * @returns ListTagKeysResponse
3535
+ */
3536
+ async listTagKeys(request: $_model.ListTagKeysRequest): Promise<$_model.ListTagKeysResponse> {
3537
+ let runtime = new $dara.RuntimeOptions({ });
3538
+ return await this.listTagKeysWithOptions(request, runtime);
3539
+ }
3540
+
3541
+ /**
3542
+ * Retrieves the tags associated with a resource.
3543
+ *
3544
+ * @remarks
3545
+ * 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.
3546
+ * 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).
3547
+ * ## QPS limit
3548
+ * 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.
3549
+ *
3550
+ * @param request - ListTagResourcesRequest
3551
+ * @param runtime - runtime options for this request RuntimeOptions
3552
+ * @returns ListTagResourcesResponse
3553
+ */
3554
+ async listTagResourcesWithOptions(request: $_model.ListTagResourcesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListTagResourcesResponse> {
3555
+ request.validate();
3556
+ let query = { };
3557
+ if (!$dara.isNull(request.maxResults)) {
3558
+ query["MaxResults"] = request.maxResults;
3559
+ }
3560
+
3561
+ if (!$dara.isNull(request.nextToken)) {
3562
+ query["NextToken"] = request.nextToken;
3563
+ }
3564
+
3565
+ if (!$dara.isNull(request.regionId)) {
3566
+ query["RegionId"] = request.regionId;
3567
+ }
3568
+
3569
+ if (!$dara.isNull(request.resourceId)) {
3570
+ query["ResourceId"] = request.resourceId;
3571
+ }
3572
+
3573
+ if (!$dara.isNull(request.resourceType)) {
3574
+ query["ResourceType"] = request.resourceType;
3575
+ }
3576
+
3577
+ if (!$dara.isNull(request.tag)) {
3578
+ query["Tag"] = request.tag;
3579
+ }
3580
+
3581
+ let req = new $OpenApiUtil.OpenApiRequest({
3582
+ query: OpenApiUtil.query(query),
3583
+ });
3584
+ let params = new $OpenApiUtil.Params({
3585
+ action: "ListTagResources",
3586
+ version: "2020-04-07",
3587
+ protocol: "HTTPS",
3588
+ pathname: "/",
3589
+ method: "POST",
3590
+ authType: "AK",
3591
+ style: "RPC",
3592
+ reqBodyType: "formData",
3593
+ bodyType: "json",
3594
+ });
3595
+ return $dara.cast<$_model.ListTagResourcesResponse>(await this.callApi(params, req, runtime), new $_model.ListTagResourcesResponse({}));
3596
+ }
3597
+
3598
+ /**
3599
+ * Retrieves the tags associated with a resource.
3600
+ *
3601
+ * @remarks
3602
+ * 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.
3603
+ * 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).
3604
+ * ## QPS limit
3605
+ * 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.
3606
+ *
3607
+ * @param request - ListTagResourcesRequest
3608
+ * @returns ListTagResourcesResponse
3609
+ */
3610
+ async listTagResources(request: $_model.ListTagResourcesRequest): Promise<$_model.ListTagResourcesResponse> {
3611
+ let runtime = new $dara.RuntimeOptions({ });
3612
+ return await this.listTagResourcesWithOptions(request, runtime);
3613
+ }
3614
+
3615
+ /**
3616
+ * Retrieves the list of managed orders.
3617
+ *
3618
+ * @remarks
3619
+ * Queries the managed orders for a certificate or order.
3620
+ * ## QPS limit
3621
+ * 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.
3622
+ *
3623
+ * @param request - ListTrusteeOrderRequest
3624
+ * @param runtime - runtime options for this request RuntimeOptions
3625
+ * @returns ListTrusteeOrderResponse
3626
+ */
3627
+ async listTrusteeOrderWithOptions(request: $_model.ListTrusteeOrderRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListTrusteeOrderResponse> {
3628
+ request.validate();
3629
+ let query = { };
3630
+ if (!$dara.isNull(request.certificateId)) {
3631
+ query["CertificateId"] = request.certificateId;
3632
+ }
3633
+
3634
+ if (!$dara.isNull(request.maxResults)) {
3635
+ query["MaxResults"] = request.maxResults;
3636
+ }
3637
+
3638
+ if (!$dara.isNull(request.nextToken)) {
3639
+ query["NextToken"] = request.nextToken;
3640
+ }
3641
+
3642
+ if (!$dara.isNull(request.orderId)) {
3643
+ query["OrderId"] = request.orderId;
3644
+ }
3645
+
3646
+ let req = new $OpenApiUtil.OpenApiRequest({
3647
+ query: OpenApiUtil.query(query),
3648
+ });
3649
+ let params = new $OpenApiUtil.Params({
3650
+ action: "ListTrusteeOrder",
3651
+ version: "2020-04-07",
3652
+ protocol: "HTTPS",
3653
+ pathname: "/",
3654
+ method: "POST",
3655
+ authType: "AK",
3656
+ style: "RPC",
3657
+ reqBodyType: "formData",
3658
+ bodyType: "json",
3659
+ });
3660
+ return $dara.cast<$_model.ListTrusteeOrderResponse>(await this.callApi(params, req, runtime), new $_model.ListTrusteeOrderResponse({}));
3661
+ }
3662
+
3663
+ /**
3664
+ * Retrieves the list of managed orders.
3665
+ *
3666
+ * @remarks
3667
+ * Queries the managed orders for a certificate or order.
3668
+ * ## QPS limit
3669
+ * 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.
3670
+ *
3671
+ * @param request - ListTrusteeOrderRequest
3672
+ * @returns ListTrusteeOrderResponse
3673
+ */
3674
+ async listTrusteeOrder(request: $_model.ListTrusteeOrderRequest): Promise<$_model.ListTrusteeOrderResponse> {
3675
+ let runtime = new $dara.RuntimeOptions({ });
3676
+ return await this.listTrusteeOrderWithOptions(request, runtime);
3677
+ }
3678
+
3298
3679
  /**
3299
3680
  * Queries the list of user certificates or orders.
3300
3681
  *
@@ -3656,6 +4037,11 @@ export default class Client extends OpenApi {
3656
4037
  /**
3657
4038
  * Revokes a certificate.
3658
4039
  *
4040
+ * @remarks
4041
+ * 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.
4042
+ * ## QPS limit
4043
+ * 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.
4044
+ *
3659
4045
  * @param request - RevokeCertificateRequest
3660
4046
  * @param runtime - runtime options for this request RuntimeOptions
3661
4047
  * @returns RevokeCertificateResponse
@@ -3691,6 +4077,11 @@ export default class Client extends OpenApi {
3691
4077
  /**
3692
4078
  * Revokes a certificate.
3693
4079
  *
4080
+ * @remarks
4081
+ * 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.
4082
+ * ## QPS limit
4083
+ * 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.
4084
+ *
3694
4085
  * @param request - RevokeCertificateRequest
3695
4086
  * @returns RevokeCertificateResponse
3696
4087
  */
@@ -3747,6 +4138,52 @@ export default class Client extends OpenApi {
3747
4138
  return await this.revokeWHClientCertificateWithOptions(request, runtime);
3748
4139
  }
3749
4140
 
4141
+ /**
4142
+ * Shares a certificate.
4143
+ *
4144
+ * @param request - ShareCertificateRequest
4145
+ * @param runtime - runtime options for this request RuntimeOptions
4146
+ * @returns ShareCertificateResponse
4147
+ */
4148
+ async shareCertificateWithOptions(request: $_model.ShareCertificateRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ShareCertificateResponse> {
4149
+ request.validate();
4150
+ let query = { };
4151
+ if (!$dara.isNull(request.certificateId)) {
4152
+ query["CertificateId"] = request.certificateId;
4153
+ }
4154
+
4155
+ if (!$dara.isNull(request.targetUserId)) {
4156
+ query["TargetUserId"] = request.targetUserId;
4157
+ }
4158
+
4159
+ let req = new $OpenApiUtil.OpenApiRequest({
4160
+ query: OpenApiUtil.query(query),
4161
+ });
4162
+ let params = new $OpenApiUtil.Params({
4163
+ action: "ShareCertificate",
4164
+ version: "2020-04-07",
4165
+ protocol: "HTTPS",
4166
+ pathname: "/",
4167
+ method: "POST",
4168
+ authType: "AK",
4169
+ style: "RPC",
4170
+ reqBodyType: "formData",
4171
+ bodyType: "json",
4172
+ });
4173
+ return $dara.cast<$_model.ShareCertificateResponse>(await this.callApi(params, req, runtime), new $_model.ShareCertificateResponse({}));
4174
+ }
4175
+
4176
+ /**
4177
+ * Shares a certificate.
4178
+ *
4179
+ * @param request - ShareCertificateRequest
4180
+ * @returns ShareCertificateResponse
4181
+ */
4182
+ async shareCertificate(request: $_model.ShareCertificateRequest): Promise<$_model.ShareCertificateResponse> {
4183
+ let runtime = new $dara.RuntimeOptions({ });
4184
+ return await this.shareCertificateWithOptions(request, runtime);
4185
+ }
4186
+
3750
4187
  /**
3751
4188
  * This operation creates a digital signature with a PCA certificate from a certificate repository.
3752
4189
  *
@@ -3819,6 +4256,142 @@ export default class Client extends OpenApi {
3819
4256
  return await this.signWithOptions(request, runtime);
3820
4257
  }
3821
4258
 
4259
+ /**
4260
+ * Adds resource tags.
4261
+ *
4262
+ * @remarks
4263
+ * 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.
4264
+ * 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).
4265
+ * ## QPS limit
4266
+ * 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.
4267
+ *
4268
+ * @param request - TagResourcesRequest
4269
+ * @param runtime - runtime options for this request RuntimeOptions
4270
+ * @returns TagResourcesResponse
4271
+ */
4272
+ async tagResourcesWithOptions(request: $_model.TagResourcesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.TagResourcesResponse> {
4273
+ request.validate();
4274
+ let query = { };
4275
+ if (!$dara.isNull(request.regionId)) {
4276
+ query["RegionId"] = request.regionId;
4277
+ }
4278
+
4279
+ if (!$dara.isNull(request.resourceId)) {
4280
+ query["ResourceId"] = request.resourceId;
4281
+ }
4282
+
4283
+ if (!$dara.isNull(request.resourceType)) {
4284
+ query["ResourceType"] = request.resourceType;
4285
+ }
4286
+
4287
+ if (!$dara.isNull(request.tag)) {
4288
+ query["Tag"] = request.tag;
4289
+ }
4290
+
4291
+ let req = new $OpenApiUtil.OpenApiRequest({
4292
+ query: OpenApiUtil.query(query),
4293
+ });
4294
+ let params = new $OpenApiUtil.Params({
4295
+ action: "TagResources",
4296
+ version: "2020-04-07",
4297
+ protocol: "HTTPS",
4298
+ pathname: "/",
4299
+ method: "POST",
4300
+ authType: "AK",
4301
+ style: "RPC",
4302
+ reqBodyType: "formData",
4303
+ bodyType: "json",
4304
+ });
4305
+ return $dara.cast<$_model.TagResourcesResponse>(await this.callApi(params, req, runtime), new $_model.TagResourcesResponse({}));
4306
+ }
4307
+
4308
+ /**
4309
+ * Adds resource tags.
4310
+ *
4311
+ * @remarks
4312
+ * 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.
4313
+ * 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).
4314
+ * ## QPS limit
4315
+ * 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.
4316
+ *
4317
+ * @param request - TagResourcesRequest
4318
+ * @returns TagResourcesResponse
4319
+ */
4320
+ async tagResources(request: $_model.TagResourcesRequest): Promise<$_model.TagResourcesResponse> {
4321
+ let runtime = new $dara.RuntimeOptions({ });
4322
+ return await this.tagResourcesWithOptions(request, runtime);
4323
+ }
4324
+
4325
+ /**
4326
+ * Removes tags.
4327
+ *
4328
+ * @remarks
4329
+ * 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.
4330
+ * 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).
4331
+ * ## QPS limit
4332
+ * 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.
4333
+ *
4334
+ * @param request - UntagResourcesRequest
4335
+ * @param runtime - runtime options for this request RuntimeOptions
4336
+ * @returns UntagResourcesResponse
4337
+ */
4338
+ async untagResourcesWithOptions(request: $_model.UntagResourcesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.UntagResourcesResponse> {
4339
+ request.validate();
4340
+ let query = { };
4341
+ if (!$dara.isNull(request.all)) {
4342
+ query["All"] = request.all;
4343
+ }
4344
+
4345
+ if (!$dara.isNull(request.regionId)) {
4346
+ query["RegionId"] = request.regionId;
4347
+ }
4348
+
4349
+ if (!$dara.isNull(request.resourceId)) {
4350
+ query["ResourceId"] = request.resourceId;
4351
+ }
4352
+
4353
+ if (!$dara.isNull(request.resourceType)) {
4354
+ query["ResourceType"] = request.resourceType;
4355
+ }
4356
+
4357
+ if (!$dara.isNull(request.tagKey)) {
4358
+ query["TagKey"] = request.tagKey;
4359
+ }
4360
+
4361
+ let req = new $OpenApiUtil.OpenApiRequest({
4362
+ query: OpenApiUtil.query(query),
4363
+ });
4364
+ let params = new $OpenApiUtil.Params({
4365
+ action: "UntagResources",
4366
+ version: "2020-04-07",
4367
+ protocol: "HTTPS",
4368
+ pathname: "/",
4369
+ method: "POST",
4370
+ authType: "AK",
4371
+ style: "RPC",
4372
+ reqBodyType: "formData",
4373
+ bodyType: "json",
4374
+ });
4375
+ return $dara.cast<$_model.UntagResourcesResponse>(await this.callApi(params, req, runtime), new $_model.UntagResourcesResponse({}));
4376
+ }
4377
+
4378
+ /**
4379
+ * Removes tags.
4380
+ *
4381
+ * @remarks
4382
+ * 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.
4383
+ * 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).
4384
+ * ## QPS limit
4385
+ * 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.
4386
+ *
4387
+ * @param request - UntagResourcesRequest
4388
+ * @returns UntagResourcesResponse
4389
+ */
4390
+ async untagResources(request: $_model.UntagResourcesRequest): Promise<$_model.UntagResourcesResponse> {
4391
+ let runtime = new $dara.RuntimeOptions({ });
4392
+ return await this.untagResourcesWithOptions(request, runtime);
4393
+ }
4394
+
3822
4395
  /**
3823
4396
  * Updates company information.
3824
4397
  *
@@ -3972,7 +4545,7 @@ export default class Client extends OpenApi {
3972
4545
  }
3973
4546
 
3974
4547
  /**
3975
- * Uploads the private key corresponding to a CSR if the private key was not provided when the local CSR was uploaded.
4548
+ * Uploads the private key corresponding to a CSR if you did not provide the CSR private key when uploading the local CSR.
3976
4549
  *
3977
4550
  * @param request - UpdateCsrRequest
3978
4551
  * @param runtime - runtime options for this request RuntimeOptions
@@ -4007,7 +4580,7 @@ export default class Client extends OpenApi {
4007
4580
  }
4008
4581
 
4009
4582
  /**
4010
- * Uploads the private key corresponding to a CSR if the private key was not provided when the local CSR was uploaded.
4583
+ * Uploads the private key corresponding to a CSR if you did not provide the CSR private key when uploading the local CSR.
4011
4584
  *
4012
4585
  * @param request - UpdateCsrRequest
4013
4586
  * @returns UpdateCsrResponse
@@ -4126,7 +4699,7 @@ export default class Client extends OpenApi {
4126
4699
  }
4127
4700
 
4128
4701
  /**
4129
- * Updates the configuration of a Certificate Management Service instance.
4702
+ * Updates an instance.
4130
4703
  *
4131
4704
  * @param request - UpdateInstanceRequest
4132
4705
  * @param runtime - runtime options for this request RuntimeOptions
@@ -4213,7 +4786,7 @@ export default class Client extends OpenApi {
4213
4786
  }
4214
4787
 
4215
4788
  /**
4216
- * Updates the configuration of a Certificate Management Service instance.
4789
+ * Updates an instance.
4217
4790
  *
4218
4791
  * @param request - UpdateInstanceRequest
4219
4792
  * @returns UpdateInstanceResponse
@@ -4224,7 +4797,7 @@ export default class Client extends OpenApi {
4224
4797
  }
4225
4798
 
4226
4799
  /**
4227
- * Rolls back or re-executes a worker task in a certificate deployment task.
4800
+ * Updates the status of a worker task in a deployment task.
4228
4801
  *
4229
4802
  * @param request - UpdateWorkerResourceStatusRequest
4230
4803
  * @param runtime - runtime options for this request RuntimeOptions
@@ -4263,7 +4836,7 @@ export default class Client extends OpenApi {
4263
4836
  }
4264
4837
 
4265
4838
  /**
4266
- * Rolls back or re-executes a worker task in a certificate deployment task.
4839
+ * Updates the status of a worker task in a deployment task.
4267
4840
  *
4268
4841
  * @param request - UpdateWorkerResourceStatusRequest
4269
4842
  * @returns UpdateWorkerResourceStatusResponse
@@ -4324,12 +4897,12 @@ export default class Client extends OpenApi {
4324
4897
  }
4325
4898
 
4326
4899
  /**
4327
- * Uploads a PCA certificate to a certificate warehouse.
4900
+ * Uploads a PCA certificate to a certificate repository.
4328
4901
  *
4329
4902
  * @remarks
4330
- * Use this operation to upload a PCA certificate to a certificate warehouse.
4903
+ * Uploads a PCA certificate to a certificate repository.
4331
4904
  * ## QPS limit
4332
- * The QPS limit for this operation is 10 requests per second per user. Exceeding this limit triggers throttling, which can affect your business.
4905
+ * 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.
4333
4906
  *
4334
4907
  * @param request - UploadPCACertRequest
4335
4908
  * @param runtime - runtime options for this request RuntimeOptions
@@ -4372,12 +4945,12 @@ export default class Client extends OpenApi {
4372
4945
  }
4373
4946
 
4374
4947
  /**
4375
- * Uploads a PCA certificate to a certificate warehouse.
4948
+ * Uploads a PCA certificate to a certificate repository.
4376
4949
  *
4377
4950
  * @remarks
4378
- * Use this operation to upload a PCA certificate to a certificate warehouse.
4951
+ * Uploads a PCA certificate to a certificate repository.
4379
4952
  * ## QPS limit
4380
- * The QPS limit for this operation is 10 requests per second per user. Exceeding this limit triggers throttling, which can affect your business.
4953
+ * 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.
4381
4954
  *
4382
4955
  * @param request - UploadPCACertRequest
4383
4956
  * @returns UploadPCACertResponse
@@ -4388,10 +4961,10 @@ export default class Client extends OpenApi {
4388
4961
  }
4389
4962
 
4390
4963
  /**
4391
- * Uploads a certificate and its private key to Certificate Management Service. Both SM and non-SM certificates are supported.
4964
+ * Uploads a certificate, including a standard SM certificate or a non-SM certificate.
4392
4965
  *
4393
4966
  * @remarks
4394
- * 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.
4967
+ * 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.
4395
4968
  *
4396
4969
  * @param request - UploadUserCertificateRequest
4397
4970
  * @param runtime - runtime options for this request RuntimeOptions
@@ -4404,6 +4977,10 @@ export default class Client extends OpenApi {
4404
4977
  query["Cert"] = request.cert;
4405
4978
  }
4406
4979
 
4980
+ if (!$dara.isNull(request.clientToken)) {
4981
+ query["ClientToken"] = request.clientToken;
4982
+ }
4983
+
4407
4984
  if (!$dara.isNull(request.encryptCert)) {
4408
4985
  query["EncryptCert"] = request.encryptCert;
4409
4986
  }
@@ -4454,10 +5031,10 @@ export default class Client extends OpenApi {
4454
5031
  }
4455
5032
 
4456
5033
  /**
4457
- * Uploads a certificate and its private key to Certificate Management Service. Both SM and non-SM certificates are supported.
5034
+ * Uploads a certificate, including a standard SM certificate or a non-SM certificate.
4458
5035
  *
4459
5036
  * @remarks
4460
- * 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.
5037
+ * 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.
4461
5038
  *
4462
5039
  * @param request - UploadUserCertificateRequest
4463
5040
  * @returns UploadUserCertificateResponse