@alicloud/cas20200407 3.2.13 → 3.2.15

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 (181) hide show
  1. package/dist/client.d.ts +294 -36
  2. package/dist/client.js +567 -38
  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/GetInstanceDetailResponseBody.d.ts +152 -63
  37. package/dist/models/GetInstanceDetailResponseBody.js +18 -0
  38. package/dist/models/GetInstanceDetailResponseBody.js.map +1 -1
  39. package/dist/models/ListCertWarehouseRequest.d.ts +7 -13
  40. package/dist/models/ListCertWarehouseRequest.js.map +1 -1
  41. package/dist/models/ListCertWarehouseResponseBody.d.ts +16 -23
  42. package/dist/models/ListCertWarehouseResponseBody.js.map +1 -1
  43. package/dist/models/ListCertificatesRequest.d.ts +12 -19
  44. package/dist/models/ListCertificatesRequest.js.map +1 -1
  45. package/dist/models/ListCertificatesResponseBody.d.ts +54 -50
  46. package/dist/models/ListCertificatesResponseBody.js +2 -0
  47. package/dist/models/ListCertificatesResponseBody.js.map +1 -1
  48. package/dist/models/ListInstancesRequest.d.ts +33 -9
  49. package/dist/models/ListInstancesRequest.js +6 -0
  50. package/dist/models/ListInstancesRequest.js.map +1 -1
  51. package/dist/models/ListInstancesResponseBody.d.ts +45 -23
  52. package/dist/models/ListInstancesResponseBody.js +6 -0
  53. package/dist/models/ListInstancesResponseBody.js.map +1 -1
  54. package/dist/models/ListTagKeysRequest.d.ts +73 -0
  55. package/dist/models/ListTagKeysRequest.js +70 -0
  56. package/dist/models/ListTagKeysRequest.js.map +1 -0
  57. package/dist/models/ListTagKeysResponse.d.ts +19 -0
  58. package/dist/models/ListTagKeysResponse.js +69 -0
  59. package/dist/models/ListTagKeysResponse.js.map +1 -0
  60. package/dist/models/ListTagKeysResponseBody.d.ts +94 -0
  61. package/dist/models/ListTagKeysResponseBody.js +94 -0
  62. package/dist/models/ListTagKeysResponseBody.js.map +1 -0
  63. package/dist/models/ListTagResourcesRequest.d.ts +87 -0
  64. package/dist/models/ListTagResourcesRequest.js +95 -0
  65. package/dist/models/ListTagResourcesRequest.js.map +1 -0
  66. package/dist/models/ListTagResourcesResponse.d.ts +19 -0
  67. package/dist/models/ListTagResourcesResponse.js +69 -0
  68. package/dist/models/ListTagResourcesResponse.js.map +1 -0
  69. package/dist/models/ListTagResourcesResponseBody.d.ts +67 -0
  70. package/dist/models/ListTagResourcesResponseBody.js +114 -0
  71. package/dist/models/ListTagResourcesResponseBody.js.map +1 -0
  72. package/dist/models/ListTrusteeOrderRequest.d.ts +45 -0
  73. package/dist/models/ListTrusteeOrderRequest.js +64 -0
  74. package/dist/models/ListTrusteeOrderRequest.js.map +1 -0
  75. package/dist/models/ListTrusteeOrderResponse.d.ts +19 -0
  76. package/dist/models/ListTrusteeOrderResponse.js +69 -0
  77. package/dist/models/ListTrusteeOrderResponse.js.map +1 -0
  78. package/dist/models/ListTrusteeOrderResponseBody.d.ts +85 -0
  79. package/dist/models/ListTrusteeOrderResponseBody.js +66 -0
  80. package/dist/models/ListTrusteeOrderResponseBody.js.map +1 -0
  81. package/dist/models/RevokeCertificateRequest.d.ts +4 -1
  82. package/dist/models/RevokeCertificateRequest.js.map +1 -1
  83. package/dist/models/RevokeCertificateResponseBody.d.ts +1 -1
  84. package/dist/models/ShareCertificateRequest.d.ts +33 -0
  85. package/dist/models/ShareCertificateRequest.js +60 -0
  86. package/dist/models/ShareCertificateRequest.js.map +1 -0
  87. package/dist/models/ShareCertificateResponse.d.ts +19 -0
  88. package/dist/models/ShareCertificateResponse.js +69 -0
  89. package/dist/models/ShareCertificateResponse.js.map +1 -0
  90. package/dist/models/ShareCertificateResponseBody.d.ts +21 -0
  91. package/dist/models/ShareCertificateResponseBody.js +58 -0
  92. package/dist/models/ShareCertificateResponseBody.js.map +1 -0
  93. package/dist/models/TagResourcesRequest.d.ts +73 -0
  94. package/dist/models/TagResourcesRequest.js +91 -0
  95. package/dist/models/TagResourcesRequest.js.map +1 -0
  96. package/dist/models/TagResourcesResponse.d.ts +19 -0
  97. package/dist/models/TagResourcesResponse.js +69 -0
  98. package/dist/models/TagResourcesResponse.js.map +1 -0
  99. package/dist/models/TagResourcesResponseBody.d.ts +21 -0
  100. package/dist/models/TagResourcesResponseBody.js +58 -0
  101. package/dist/models/TagResourcesResponseBody.js.map +1 -0
  102. package/dist/models/UntagResourcesRequest.d.ts +57 -0
  103. package/dist/models/UntagResourcesRequest.js +72 -0
  104. package/dist/models/UntagResourcesRequest.js.map +1 -0
  105. package/dist/models/UntagResourcesResponse.d.ts +19 -0
  106. package/dist/models/UntagResourcesResponse.js +69 -0
  107. package/dist/models/UntagResourcesResponse.js.map +1 -0
  108. package/dist/models/UntagResourcesResponseBody.d.ts +21 -0
  109. package/dist/models/UntagResourcesResponseBody.js +58 -0
  110. package/dist/models/UntagResourcesResponseBody.js.map +1 -0
  111. package/dist/models/UpdateCsrRequest.d.ts +2 -2
  112. package/dist/models/UpdateCsrResponseBody.d.ts +1 -1
  113. package/dist/models/UpdateInstanceRequest.d.ts +27 -39
  114. package/dist/models/UpdateInstanceRequest.js.map +1 -1
  115. package/dist/models/UpdateInstanceResponseBody.d.ts +1 -1
  116. package/dist/models/UpdateWorkerResourceStatusRequest.d.ts +3 -7
  117. package/dist/models/UpdateWorkerResourceStatusRequest.js.map +1 -1
  118. package/dist/models/UpdateWorkerResourceStatusResponseBody.d.ts +2 -2
  119. package/dist/models/UploadPcacertRequest.d.ts +5 -6
  120. package/dist/models/UploadPcacertRequest.js.map +1 -1
  121. package/dist/models/UploadPcacertResponseBody.d.ts +2 -2
  122. package/dist/models/UploadUserCertificateRequest.d.ts +19 -12
  123. package/dist/models/UploadUserCertificateRequest.js +2 -0
  124. package/dist/models/UploadUserCertificateRequest.js.map +1 -1
  125. package/dist/models/UploadUserCertificateResponseBody.d.ts +3 -3
  126. package/dist/models/model.d.ts +29 -0
  127. package/dist/models/model.js +64 -6
  128. package/dist/models/model.js.map +1 -1
  129. package/package.json +1 -1
  130. package/src/client.ts +619 -38
  131. package/src/models/CreateContactRequest.ts +1 -1
  132. package/src/models/CreateRollbackTaskRequest.ts +48 -0
  133. package/src/models/CreateRollbackTaskResponse.ts +40 -0
  134. package/src/models/CreateRollbackTaskResponseBody.ts +44 -0
  135. package/src/models/CreateWarehouseRequest.ts +3 -3
  136. package/src/models/CreateWarehouseResponseBody.ts +1 -1
  137. package/src/models/DeleteInstanceRequest.ts +10 -0
  138. package/src/models/DeleteUserCertificateRequest.ts +11 -2
  139. package/src/models/GetCertificateDetailResponseBody.ts +65 -51
  140. package/src/models/GetCertificatePackageCountRequest.ts +24 -0
  141. package/src/models/GetCertificatePackageCountResponse.ts +40 -0
  142. package/src/models/GetCertificatePackageCountResponseBody.ts +95 -0
  143. package/src/models/GetContactRequest.ts +2 -0
  144. package/src/models/GetInstanceDetailResponseBody.ts +170 -63
  145. package/src/models/ListCertWarehouseRequest.ts +7 -13
  146. package/src/models/ListCertWarehouseResponseBody.ts +16 -23
  147. package/src/models/ListCertificatesRequest.ts +12 -19
  148. package/src/models/ListCertificatesResponseBody.ts +56 -50
  149. package/src/models/ListInstancesRequest.ts +39 -9
  150. package/src/models/ListInstancesResponseBody.ts +51 -23
  151. package/src/models/ListTagKeysRequest.ts +98 -0
  152. package/src/models/ListTagKeysResponse.ts +40 -0
  153. package/src/models/ListTagKeysResponseBody.ts +134 -0
  154. package/src/models/ListTagResourcesRequest.ts +128 -0
  155. package/src/models/ListTagResourcesResponse.ts +40 -0
  156. package/src/models/ListTagResourcesResponseBody.ts +118 -0
  157. package/src/models/ListTrusteeOrderRequest.ts +64 -0
  158. package/src/models/ListTrusteeOrderResponse.ts +40 -0
  159. package/src/models/ListTrusteeOrderResponseBody.ts +106 -0
  160. package/src/models/RevokeCertificateRequest.ts +4 -1
  161. package/src/models/RevokeCertificateResponseBody.ts +1 -1
  162. package/src/models/ShareCertificateRequest.ts +48 -0
  163. package/src/models/ShareCertificateResponse.ts +40 -0
  164. package/src/models/ShareCertificateResponseBody.ts +34 -0
  165. package/src/models/TagResourcesRequest.ts +110 -0
  166. package/src/models/TagResourcesResponse.ts +40 -0
  167. package/src/models/TagResourcesResponseBody.ts +34 -0
  168. package/src/models/UntagResourcesRequest.ts +84 -0
  169. package/src/models/UntagResourcesResponse.ts +40 -0
  170. package/src/models/UntagResourcesResponseBody.ts +34 -0
  171. package/src/models/UpdateCsrRequest.ts +2 -2
  172. package/src/models/UpdateCsrResponseBody.ts +1 -1
  173. package/src/models/UpdateInstanceRequest.ts +28 -40
  174. package/src/models/UpdateInstanceResponseBody.ts +1 -1
  175. package/src/models/UpdateWorkerResourceStatusRequest.ts +3 -7
  176. package/src/models/UpdateWorkerResourceStatusResponseBody.ts +2 -2
  177. package/src/models/UploadPcacertRequest.ts +5 -6
  178. package/src/models/UploadPcacertResponseBody.ts +2 -2
  179. package/src/models/UploadUserCertificateRequest.ts +21 -12
  180. package/src/models/UploadUserCertificateResponseBody.ts +3 -3
  181. 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
+ * Queries the status information of a Private Certificate Authority (PCA) instance that you purchased through the SSL Certificate Service console by using the instance ID. The information includes the instance status, the total number of certificates, and the number of issued certificates.
2369
+ * Before you invoke this operation, you must purchase a private CA through the [digital 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 invocations per second. If the limit is exceeded, API invocations are throttled, which may affect your services. Invoke this operation at a reasonable frequency.
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
+ * Queries the status information of a Private Certificate Authority (PCA) instance that you purchased through the SSL Certificate Service console by using the instance ID. The information includes the instance status, the total number of certificates, and the number of issued certificates.
2406
+ * Before you invoke this operation, you must purchase a private CA through the [digital 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 invocations per second. If the limit is exceeded, API invocations are throttled, which may affect your services. Invoke this operation at a reasonable frequency.
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
@@ -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 specifying the IDs of the private CA 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 invoking 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 calls per second. If the limit is exceeded, the API invoke is throttled, which may affect your business. Invoke this operation as needed.
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
  }
@@ -3267,6 +3426,10 @@ export default class Client extends OpenApi {
3267
3426
  query["Status"] = request.status;
3268
3427
  }
3269
3428
 
3429
+ if (!$dara.isNull(request.versionType)) {
3430
+ query["VersionType"] = request.versionType;
3431
+ }
3432
+
3270
3433
  let req = new $OpenApiUtil.OpenApiRequest({
3271
3434
  query: OpenApiUtil.query(query),
3272
3435
  });
@@ -3287,6 +3450,12 @@ export default class Client extends OpenApi {
3287
3450
  /**
3288
3451
  * Retrieves a list of instances.
3289
3452
  *
3453
+ * @remarks
3454
+ * Queries the status information of Private Certificate Authority (PCA) instances that you purchased through the SSL Certificate console by specifying the IDs of the private CA 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.
3455
+ * Before invoking 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).
3456
+ * ## QPS limit
3457
+ * The single-user QPS limit for this operation is 10 calls per second. If the limit is exceeded, the API invoke is throttled, which may affect your business. Invoke this operation as needed.
3458
+ *
3290
3459
  * @param request - ListInstancesRequest
3291
3460
  * @returns ListInstancesResponse
3292
3461
  */
@@ -3295,6 +3464,222 @@ export default class Client extends OpenApi {
3295
3464
  return await this.listInstancesWithOptions(request, runtime);
3296
3465
  }
3297
3466
 
3467
+ /**
3468
+ * Retrieves a list of tag keys and values.
3469
+ *
3470
+ * @remarks
3471
+ * 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.
3472
+ * 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).
3473
+ * ## QPS limit
3474
+ * 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.
3475
+ *
3476
+ * @param request - ListTagKeysRequest
3477
+ * @param runtime - runtime options for this request RuntimeOptions
3478
+ * @returns ListTagKeysResponse
3479
+ */
3480
+ async listTagKeysWithOptions(request: $_model.ListTagKeysRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListTagKeysResponse> {
3481
+ request.validate();
3482
+ let query = { };
3483
+ if (!$dara.isNull(request.currentPage)) {
3484
+ query["CurrentPage"] = request.currentPage;
3485
+ }
3486
+
3487
+ if (!$dara.isNull(request.maxResults)) {
3488
+ query["MaxResults"] = request.maxResults;
3489
+ }
3490
+
3491
+ if (!$dara.isNull(request.nextToken)) {
3492
+ query["NextToken"] = request.nextToken;
3493
+ }
3494
+
3495
+ if (!$dara.isNull(request.pageSize)) {
3496
+ query["PageSize"] = request.pageSize;
3497
+ }
3498
+
3499
+ if (!$dara.isNull(request.regionId)) {
3500
+ query["RegionId"] = request.regionId;
3501
+ }
3502
+
3503
+ if (!$dara.isNull(request.resourceGroupId)) {
3504
+ query["ResourceGroupId"] = request.resourceGroupId;
3505
+ }
3506
+
3507
+ if (!$dara.isNull(request.resourceType)) {
3508
+ query["ResourceType"] = request.resourceType;
3509
+ }
3510
+
3511
+ let req = new $OpenApiUtil.OpenApiRequest({
3512
+ query: OpenApiUtil.query(query),
3513
+ });
3514
+ let params = new $OpenApiUtil.Params({
3515
+ action: "ListTagKeys",
3516
+ version: "2020-04-07",
3517
+ protocol: "HTTPS",
3518
+ pathname: "/",
3519
+ method: "POST",
3520
+ authType: "AK",
3521
+ style: "RPC",
3522
+ reqBodyType: "formData",
3523
+ bodyType: "json",
3524
+ });
3525
+ return $dara.cast<$_model.ListTagKeysResponse>(await this.callApi(params, req, runtime), new $_model.ListTagKeysResponse({}));
3526
+ }
3527
+
3528
+ /**
3529
+ * Retrieves a list of tag keys and values.
3530
+ *
3531
+ * @remarks
3532
+ * 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.
3533
+ * 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).
3534
+ * ## QPS limit
3535
+ * 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.
3536
+ *
3537
+ * @param request - ListTagKeysRequest
3538
+ * @returns ListTagKeysResponse
3539
+ */
3540
+ async listTagKeys(request: $_model.ListTagKeysRequest): Promise<$_model.ListTagKeysResponse> {
3541
+ let runtime = new $dara.RuntimeOptions({ });
3542
+ return await this.listTagKeysWithOptions(request, runtime);
3543
+ }
3544
+
3545
+ /**
3546
+ * Retrieves the tags associated with a resource.
3547
+ *
3548
+ * @remarks
3549
+ * 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.
3550
+ * 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).
3551
+ * ## QPS limit
3552
+ * 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.
3553
+ *
3554
+ * @param request - ListTagResourcesRequest
3555
+ * @param runtime - runtime options for this request RuntimeOptions
3556
+ * @returns ListTagResourcesResponse
3557
+ */
3558
+ async listTagResourcesWithOptions(request: $_model.ListTagResourcesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListTagResourcesResponse> {
3559
+ request.validate();
3560
+ let query = { };
3561
+ if (!$dara.isNull(request.maxResults)) {
3562
+ query["MaxResults"] = request.maxResults;
3563
+ }
3564
+
3565
+ if (!$dara.isNull(request.nextToken)) {
3566
+ query["NextToken"] = request.nextToken;
3567
+ }
3568
+
3569
+ if (!$dara.isNull(request.regionId)) {
3570
+ query["RegionId"] = request.regionId;
3571
+ }
3572
+
3573
+ if (!$dara.isNull(request.resourceId)) {
3574
+ query["ResourceId"] = request.resourceId;
3575
+ }
3576
+
3577
+ if (!$dara.isNull(request.resourceType)) {
3578
+ query["ResourceType"] = request.resourceType;
3579
+ }
3580
+
3581
+ if (!$dara.isNull(request.tag)) {
3582
+ query["Tag"] = request.tag;
3583
+ }
3584
+
3585
+ let req = new $OpenApiUtil.OpenApiRequest({
3586
+ query: OpenApiUtil.query(query),
3587
+ });
3588
+ let params = new $OpenApiUtil.Params({
3589
+ action: "ListTagResources",
3590
+ version: "2020-04-07",
3591
+ protocol: "HTTPS",
3592
+ pathname: "/",
3593
+ method: "POST",
3594
+ authType: "AK",
3595
+ style: "RPC",
3596
+ reqBodyType: "formData",
3597
+ bodyType: "json",
3598
+ });
3599
+ return $dara.cast<$_model.ListTagResourcesResponse>(await this.callApi(params, req, runtime), new $_model.ListTagResourcesResponse({}));
3600
+ }
3601
+
3602
+ /**
3603
+ * Retrieves the tags associated with a resource.
3604
+ *
3605
+ * @remarks
3606
+ * 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.
3607
+ * 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).
3608
+ * ## QPS limit
3609
+ * 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.
3610
+ *
3611
+ * @param request - ListTagResourcesRequest
3612
+ * @returns ListTagResourcesResponse
3613
+ */
3614
+ async listTagResources(request: $_model.ListTagResourcesRequest): Promise<$_model.ListTagResourcesResponse> {
3615
+ let runtime = new $dara.RuntimeOptions({ });
3616
+ return await this.listTagResourcesWithOptions(request, runtime);
3617
+ }
3618
+
3619
+ /**
3620
+ * Retrieves the list of managed orders.
3621
+ *
3622
+ * @remarks
3623
+ * Queries the managed orders for a certificate or order.
3624
+ * ## QPS limit
3625
+ * 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.
3626
+ *
3627
+ * @param request - ListTrusteeOrderRequest
3628
+ * @param runtime - runtime options for this request RuntimeOptions
3629
+ * @returns ListTrusteeOrderResponse
3630
+ */
3631
+ async listTrusteeOrderWithOptions(request: $_model.ListTrusteeOrderRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListTrusteeOrderResponse> {
3632
+ request.validate();
3633
+ let query = { };
3634
+ if (!$dara.isNull(request.certificateId)) {
3635
+ query["CertificateId"] = request.certificateId;
3636
+ }
3637
+
3638
+ if (!$dara.isNull(request.maxResults)) {
3639
+ query["MaxResults"] = request.maxResults;
3640
+ }
3641
+
3642
+ if (!$dara.isNull(request.nextToken)) {
3643
+ query["NextToken"] = request.nextToken;
3644
+ }
3645
+
3646
+ if (!$dara.isNull(request.orderId)) {
3647
+ query["OrderId"] = request.orderId;
3648
+ }
3649
+
3650
+ let req = new $OpenApiUtil.OpenApiRequest({
3651
+ query: OpenApiUtil.query(query),
3652
+ });
3653
+ let params = new $OpenApiUtil.Params({
3654
+ action: "ListTrusteeOrder",
3655
+ version: "2020-04-07",
3656
+ protocol: "HTTPS",
3657
+ pathname: "/",
3658
+ method: "POST",
3659
+ authType: "AK",
3660
+ style: "RPC",
3661
+ reqBodyType: "formData",
3662
+ bodyType: "json",
3663
+ });
3664
+ return $dara.cast<$_model.ListTrusteeOrderResponse>(await this.callApi(params, req, runtime), new $_model.ListTrusteeOrderResponse({}));
3665
+ }
3666
+
3667
+ /**
3668
+ * Retrieves the list of managed orders.
3669
+ *
3670
+ * @remarks
3671
+ * Queries the managed orders for a certificate or order.
3672
+ * ## QPS limit
3673
+ * 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.
3674
+ *
3675
+ * @param request - ListTrusteeOrderRequest
3676
+ * @returns ListTrusteeOrderResponse
3677
+ */
3678
+ async listTrusteeOrder(request: $_model.ListTrusteeOrderRequest): Promise<$_model.ListTrusteeOrderResponse> {
3679
+ let runtime = new $dara.RuntimeOptions({ });
3680
+ return await this.listTrusteeOrderWithOptions(request, runtime);
3681
+ }
3682
+
3298
3683
  /**
3299
3684
  * Queries the list of user certificates or orders.
3300
3685
  *
@@ -3656,6 +4041,11 @@ export default class Client extends OpenApi {
3656
4041
  /**
3657
4042
  * Revokes a certificate.
3658
4043
  *
4044
+ * @remarks
4045
+ * 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.
4046
+ * ## QPS limit
4047
+ * 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.
4048
+ *
3659
4049
  * @param request - RevokeCertificateRequest
3660
4050
  * @param runtime - runtime options for this request RuntimeOptions
3661
4051
  * @returns RevokeCertificateResponse
@@ -3691,6 +4081,11 @@ export default class Client extends OpenApi {
3691
4081
  /**
3692
4082
  * Revokes a certificate.
3693
4083
  *
4084
+ * @remarks
4085
+ * 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.
4086
+ * ## QPS limit
4087
+ * 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.
4088
+ *
3694
4089
  * @param request - RevokeCertificateRequest
3695
4090
  * @returns RevokeCertificateResponse
3696
4091
  */
@@ -3747,6 +4142,52 @@ export default class Client extends OpenApi {
3747
4142
  return await this.revokeWHClientCertificateWithOptions(request, runtime);
3748
4143
  }
3749
4144
 
4145
+ /**
4146
+ * Shares a certificate.
4147
+ *
4148
+ * @param request - ShareCertificateRequest
4149
+ * @param runtime - runtime options for this request RuntimeOptions
4150
+ * @returns ShareCertificateResponse
4151
+ */
4152
+ async shareCertificateWithOptions(request: $_model.ShareCertificateRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ShareCertificateResponse> {
4153
+ request.validate();
4154
+ let query = { };
4155
+ if (!$dara.isNull(request.certificateId)) {
4156
+ query["CertificateId"] = request.certificateId;
4157
+ }
4158
+
4159
+ if (!$dara.isNull(request.targetUserId)) {
4160
+ query["TargetUserId"] = request.targetUserId;
4161
+ }
4162
+
4163
+ let req = new $OpenApiUtil.OpenApiRequest({
4164
+ query: OpenApiUtil.query(query),
4165
+ });
4166
+ let params = new $OpenApiUtil.Params({
4167
+ action: "ShareCertificate",
4168
+ version: "2020-04-07",
4169
+ protocol: "HTTPS",
4170
+ pathname: "/",
4171
+ method: "POST",
4172
+ authType: "AK",
4173
+ style: "RPC",
4174
+ reqBodyType: "formData",
4175
+ bodyType: "json",
4176
+ });
4177
+ return $dara.cast<$_model.ShareCertificateResponse>(await this.callApi(params, req, runtime), new $_model.ShareCertificateResponse({}));
4178
+ }
4179
+
4180
+ /**
4181
+ * Shares a certificate.
4182
+ *
4183
+ * @param request - ShareCertificateRequest
4184
+ * @returns ShareCertificateResponse
4185
+ */
4186
+ async shareCertificate(request: $_model.ShareCertificateRequest): Promise<$_model.ShareCertificateResponse> {
4187
+ let runtime = new $dara.RuntimeOptions({ });
4188
+ return await this.shareCertificateWithOptions(request, runtime);
4189
+ }
4190
+
3750
4191
  /**
3751
4192
  * This operation creates a digital signature with a PCA certificate from a certificate repository.
3752
4193
  *
@@ -3819,6 +4260,142 @@ export default class Client extends OpenApi {
3819
4260
  return await this.signWithOptions(request, runtime);
3820
4261
  }
3821
4262
 
4263
+ /**
4264
+ * Adds resource tags.
4265
+ *
4266
+ * @remarks
4267
+ * Queries the status information of a private Certificate Authority (CA) instance that you purchased in the Certificate Service console by using the ID of the private CA instance. For example, you can query the status of the CA instance, the number of SSL certificates included, and the number of SSL certificates issued.
4268
+ * Before you invoke this operation, you must have purchased a private CA in the [digital 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).
4269
+ * ## QPS limit
4270
+ * 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.
4271
+ *
4272
+ * @param request - TagResourcesRequest
4273
+ * @param runtime - runtime options for this request RuntimeOptions
4274
+ * @returns TagResourcesResponse
4275
+ */
4276
+ async tagResourcesWithOptions(request: $_model.TagResourcesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.TagResourcesResponse> {
4277
+ request.validate();
4278
+ let query = { };
4279
+ if (!$dara.isNull(request.regionId)) {
4280
+ query["RegionId"] = request.regionId;
4281
+ }
4282
+
4283
+ if (!$dara.isNull(request.resourceId)) {
4284
+ query["ResourceId"] = request.resourceId;
4285
+ }
4286
+
4287
+ if (!$dara.isNull(request.resourceType)) {
4288
+ query["ResourceType"] = request.resourceType;
4289
+ }
4290
+
4291
+ if (!$dara.isNull(request.tag)) {
4292
+ query["Tag"] = request.tag;
4293
+ }
4294
+
4295
+ let req = new $OpenApiUtil.OpenApiRequest({
4296
+ query: OpenApiUtil.query(query),
4297
+ });
4298
+ let params = new $OpenApiUtil.Params({
4299
+ action: "TagResources",
4300
+ version: "2020-04-07",
4301
+ protocol: "HTTPS",
4302
+ pathname: "/",
4303
+ method: "POST",
4304
+ authType: "AK",
4305
+ style: "RPC",
4306
+ reqBodyType: "formData",
4307
+ bodyType: "json",
4308
+ });
4309
+ return $dara.cast<$_model.TagResourcesResponse>(await this.callApi(params, req, runtime), new $_model.TagResourcesResponse({}));
4310
+ }
4311
+
4312
+ /**
4313
+ * Adds resource tags.
4314
+ *
4315
+ * @remarks
4316
+ * Queries the status information of a private Certificate Authority (CA) instance that you purchased in the Certificate Service console by using the ID of the private CA instance. For example, you can query the status of the CA instance, the number of SSL certificates included, and the number of SSL certificates issued.
4317
+ * Before you invoke this operation, you must have purchased a private CA in the [digital 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).
4318
+ * ## QPS limit
4319
+ * 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.
4320
+ *
4321
+ * @param request - TagResourcesRequest
4322
+ * @returns TagResourcesResponse
4323
+ */
4324
+ async tagResources(request: $_model.TagResourcesRequest): Promise<$_model.TagResourcesResponse> {
4325
+ let runtime = new $dara.RuntimeOptions({ });
4326
+ return await this.tagResourcesWithOptions(request, runtime);
4327
+ }
4328
+
4329
+ /**
4330
+ * Removes tags.
4331
+ *
4332
+ * @remarks
4333
+ * 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.
4334
+ * 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).
4335
+ * ## QPS limit
4336
+ * 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.
4337
+ *
4338
+ * @param request - UntagResourcesRequest
4339
+ * @param runtime - runtime options for this request RuntimeOptions
4340
+ * @returns UntagResourcesResponse
4341
+ */
4342
+ async untagResourcesWithOptions(request: $_model.UntagResourcesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.UntagResourcesResponse> {
4343
+ request.validate();
4344
+ let query = { };
4345
+ if (!$dara.isNull(request.all)) {
4346
+ query["All"] = request.all;
4347
+ }
4348
+
4349
+ if (!$dara.isNull(request.regionId)) {
4350
+ query["RegionId"] = request.regionId;
4351
+ }
4352
+
4353
+ if (!$dara.isNull(request.resourceId)) {
4354
+ query["ResourceId"] = request.resourceId;
4355
+ }
4356
+
4357
+ if (!$dara.isNull(request.resourceType)) {
4358
+ query["ResourceType"] = request.resourceType;
4359
+ }
4360
+
4361
+ if (!$dara.isNull(request.tagKey)) {
4362
+ query["TagKey"] = request.tagKey;
4363
+ }
4364
+
4365
+ let req = new $OpenApiUtil.OpenApiRequest({
4366
+ query: OpenApiUtil.query(query),
4367
+ });
4368
+ let params = new $OpenApiUtil.Params({
4369
+ action: "UntagResources",
4370
+ version: "2020-04-07",
4371
+ protocol: "HTTPS",
4372
+ pathname: "/",
4373
+ method: "POST",
4374
+ authType: "AK",
4375
+ style: "RPC",
4376
+ reqBodyType: "formData",
4377
+ bodyType: "json",
4378
+ });
4379
+ return $dara.cast<$_model.UntagResourcesResponse>(await this.callApi(params, req, runtime), new $_model.UntagResourcesResponse({}));
4380
+ }
4381
+
4382
+ /**
4383
+ * Removes tags.
4384
+ *
4385
+ * @remarks
4386
+ * 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.
4387
+ * 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).
4388
+ * ## QPS limit
4389
+ * 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.
4390
+ *
4391
+ * @param request - UntagResourcesRequest
4392
+ * @returns UntagResourcesResponse
4393
+ */
4394
+ async untagResources(request: $_model.UntagResourcesRequest): Promise<$_model.UntagResourcesResponse> {
4395
+ let runtime = new $dara.RuntimeOptions({ });
4396
+ return await this.untagResourcesWithOptions(request, runtime);
4397
+ }
4398
+
3822
4399
  /**
3823
4400
  * Updates company information.
3824
4401
  *
@@ -3972,7 +4549,7 @@ export default class Client extends OpenApi {
3972
4549
  }
3973
4550
 
3974
4551
  /**
3975
- * Uploads the private key corresponding to a CSR if the private key was not provided when the local CSR was uploaded.
4552
+ * Uploads the private key corresponding to a CSR if you did not provide the CSR private key when uploading the local CSR.
3976
4553
  *
3977
4554
  * @param request - UpdateCsrRequest
3978
4555
  * @param runtime - runtime options for this request RuntimeOptions
@@ -4007,7 +4584,7 @@ export default class Client extends OpenApi {
4007
4584
  }
4008
4585
 
4009
4586
  /**
4010
- * Uploads the private key corresponding to a CSR if the private key was not provided when the local CSR was uploaded.
4587
+ * Uploads the private key corresponding to a CSR if you did not provide the CSR private key when uploading the local CSR.
4011
4588
  *
4012
4589
  * @param request - UpdateCsrRequest
4013
4590
  * @returns UpdateCsrResponse
@@ -4126,7 +4703,7 @@ export default class Client extends OpenApi {
4126
4703
  }
4127
4704
 
4128
4705
  /**
4129
- * Updates the configuration of a Certificate Management Service instance.
4706
+ * Updates an instance.
4130
4707
  *
4131
4708
  * @param request - UpdateInstanceRequest
4132
4709
  * @param runtime - runtime options for this request RuntimeOptions
@@ -4213,7 +4790,7 @@ export default class Client extends OpenApi {
4213
4790
  }
4214
4791
 
4215
4792
  /**
4216
- * Updates the configuration of a Certificate Management Service instance.
4793
+ * Updates an instance.
4217
4794
  *
4218
4795
  * @param request - UpdateInstanceRequest
4219
4796
  * @returns UpdateInstanceResponse
@@ -4224,7 +4801,7 @@ export default class Client extends OpenApi {
4224
4801
  }
4225
4802
 
4226
4803
  /**
4227
- * Rolls back or re-executes a worker task in a certificate deployment task.
4804
+ * Updates the status of a worker task in a deployment task.
4228
4805
  *
4229
4806
  * @param request - UpdateWorkerResourceStatusRequest
4230
4807
  * @param runtime - runtime options for this request RuntimeOptions
@@ -4263,7 +4840,7 @@ export default class Client extends OpenApi {
4263
4840
  }
4264
4841
 
4265
4842
  /**
4266
- * Rolls back or re-executes a worker task in a certificate deployment task.
4843
+ * Updates the status of a worker task in a deployment task.
4267
4844
  *
4268
4845
  * @param request - UpdateWorkerResourceStatusRequest
4269
4846
  * @returns UpdateWorkerResourceStatusResponse
@@ -4324,12 +4901,12 @@ export default class Client extends OpenApi {
4324
4901
  }
4325
4902
 
4326
4903
  /**
4327
- * Uploads a PCA certificate to a certificate warehouse.
4904
+ * Uploads a PCA certificate to a certificate repository.
4328
4905
  *
4329
4906
  * @remarks
4330
- * Use this operation to upload a PCA certificate to a certificate warehouse.
4907
+ * Uploads a PCA certificate to a certificate repository.
4331
4908
  * ## 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.
4909
+ * 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
4910
  *
4334
4911
  * @param request - UploadPCACertRequest
4335
4912
  * @param runtime - runtime options for this request RuntimeOptions
@@ -4372,12 +4949,12 @@ export default class Client extends OpenApi {
4372
4949
  }
4373
4950
 
4374
4951
  /**
4375
- * Uploads a PCA certificate to a certificate warehouse.
4952
+ * Uploads a PCA certificate to a certificate repository.
4376
4953
  *
4377
4954
  * @remarks
4378
- * Use this operation to upload a PCA certificate to a certificate warehouse.
4955
+ * Uploads a PCA certificate to a certificate repository.
4379
4956
  * ## 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.
4957
+ * 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
4958
  *
4382
4959
  * @param request - UploadPCACertRequest
4383
4960
  * @returns UploadPCACertResponse
@@ -4388,10 +4965,10 @@ export default class Client extends OpenApi {
4388
4965
  }
4389
4966
 
4390
4967
  /**
4391
- * Uploads a certificate and its private key to Certificate Management Service. Both SM and non-SM certificates are supported.
4968
+ * Uploads a certificate, including a standard SM certificate or a non-SM certificate.
4392
4969
  *
4393
4970
  * @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.
4971
+ * 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
4972
  *
4396
4973
  * @param request - UploadUserCertificateRequest
4397
4974
  * @param runtime - runtime options for this request RuntimeOptions
@@ -4404,6 +4981,10 @@ export default class Client extends OpenApi {
4404
4981
  query["Cert"] = request.cert;
4405
4982
  }
4406
4983
 
4984
+ if (!$dara.isNull(request.clientToken)) {
4985
+ query["ClientToken"] = request.clientToken;
4986
+ }
4987
+
4407
4988
  if (!$dara.isNull(request.encryptCert)) {
4408
4989
  query["EncryptCert"] = request.encryptCert;
4409
4990
  }
@@ -4454,10 +5035,10 @@ export default class Client extends OpenApi {
4454
5035
  }
4455
5036
 
4456
5037
  /**
4457
- * Uploads a certificate and its private key to Certificate Management Service. Both SM and non-SM certificates are supported.
5038
+ * Uploads a certificate, including a standard SM certificate or a non-SM certificate.
4458
5039
  *
4459
5040
  * @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.
5041
+ * 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
5042
  *
4462
5043
  * @param request - UploadUserCertificateRequest
4463
5044
  * @returns UploadUserCertificateResponse