@alicloud/cas20200407 3.2.9 → 3.2.10

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 (167) hide show
  1. package/dist/client.d.ts +171 -36
  2. package/dist/client.js +492 -36
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/ApplyCertificateRequest.d.ts +1 -1
  5. package/dist/models/CancelPendingCertificateResponseBody.d.ts +1 -1
  6. package/dist/models/CreateCompanyRequest.d.ts +129 -0
  7. package/dist/models/CreateCompanyRequest.js +80 -0
  8. package/dist/models/CreateCompanyRequest.js.map +1 -0
  9. package/dist/models/CreateCompanyResponse.d.ts +19 -0
  10. package/dist/models/CreateCompanyResponse.js +69 -0
  11. package/dist/models/CreateCompanyResponse.js.map +1 -0
  12. package/dist/models/CreateCompanyResponseBody.d.ts +29 -0
  13. package/dist/models/CreateCompanyResponseBody.js +60 -0
  14. package/dist/models/CreateCompanyResponseBody.js.map +1 -0
  15. package/dist/models/CreateContactRequest.d.ts +57 -0
  16. package/dist/models/CreateContactRequest.js +66 -0
  17. package/dist/models/CreateContactRequest.js.map +1 -0
  18. package/dist/models/CreateContactResponse.d.ts +19 -0
  19. package/dist/models/CreateContactResponse.js +69 -0
  20. package/dist/models/CreateContactResponse.js.map +1 -0
  21. package/dist/models/CreateContactResponseBody.d.ts +29 -0
  22. package/dist/models/CreateContactResponseBody.js +60 -0
  23. package/dist/models/CreateContactResponseBody.js.map +1 -0
  24. package/dist/models/DeleteCompanyRequest.d.ts +23 -0
  25. package/dist/models/DeleteCompanyRequest.js +58 -0
  26. package/dist/models/DeleteCompanyRequest.js.map +1 -0
  27. package/dist/models/DeleteCompanyResponse.d.ts +19 -0
  28. package/dist/models/DeleteCompanyResponse.js +69 -0
  29. package/dist/models/DeleteCompanyResponse.js.map +1 -0
  30. package/dist/models/DeleteCompanyResponseBody.d.ts +21 -0
  31. package/dist/models/DeleteCompanyResponseBody.js +58 -0
  32. package/dist/models/DeleteCompanyResponseBody.js.map +1 -0
  33. package/dist/models/DeleteContactRequest.d.ts +23 -0
  34. package/dist/models/DeleteContactRequest.js +58 -0
  35. package/dist/models/DeleteContactRequest.js.map +1 -0
  36. package/dist/models/DeleteContactResponse.d.ts +19 -0
  37. package/dist/models/DeleteContactResponse.js +69 -0
  38. package/dist/models/DeleteContactResponse.js.map +1 -0
  39. package/dist/models/DeleteContactResponseBody.d.ts +21 -0
  40. package/dist/models/DeleteContactResponseBody.js +58 -0
  41. package/dist/models/DeleteContactResponseBody.js.map +1 -0
  42. package/dist/models/GetAssetCountResponseBody.d.ts +13 -13
  43. package/dist/models/GetCompanyRequest.d.ts +23 -0
  44. package/dist/models/GetCompanyRequest.js +58 -0
  45. package/dist/models/GetCompanyRequest.js.map +1 -0
  46. package/dist/models/GetCompanyResponse.d.ts +19 -0
  47. package/dist/models/GetCompanyResponse.js +69 -0
  48. package/dist/models/GetCompanyResponse.js.map +1 -0
  49. package/dist/models/GetCompanyResponseBody.d.ts +125 -0
  50. package/dist/models/GetCompanyResponseBody.js +84 -0
  51. package/dist/models/GetCompanyResponseBody.js.map +1 -0
  52. package/dist/models/GetContactRequest.d.ts +21 -0
  53. package/dist/models/GetContactRequest.js +58 -0
  54. package/dist/models/GetContactRequest.js.map +1 -0
  55. package/dist/models/GetContactResponse.d.ts +19 -0
  56. package/dist/models/GetContactResponse.js +69 -0
  57. package/dist/models/GetContactResponse.js.map +1 -0
  58. package/dist/models/GetContactResponseBody.d.ts +85 -0
  59. package/dist/models/GetContactResponseBody.js +74 -0
  60. package/dist/models/GetContactResponseBody.js.map +1 -0
  61. package/dist/models/GetInstanceDetailResponseBody.d.ts +12 -12
  62. package/dist/models/GetUserCertificateDetailRequest.d.ts +7 -2
  63. package/dist/models/GetUserCertificateDetailRequest.js.map +1 -1
  64. package/dist/models/GetUserCertificateDetailResponseBody.d.ts +37 -35
  65. package/dist/models/GetUserCertificateDetailResponseBody.js.map +1 -1
  66. package/dist/models/ListAssetCountRequest.d.ts +5 -5
  67. package/dist/models/ListAssetCountResponseBody.d.ts +6 -6
  68. package/dist/models/ListCompaniesRequest.d.ts +45 -0
  69. package/dist/models/ListCompaniesRequest.js +64 -0
  70. package/dist/models/ListCompaniesRequest.js.map +1 -0
  71. package/dist/models/ListCompaniesResponse.d.ts +19 -0
  72. package/dist/models/ListCompaniesResponse.js +69 -0
  73. package/dist/models/ListCompaniesResponse.js.map +1 -0
  74. package/dist/models/ListCompaniesResponseBody.d.ts +166 -0
  75. package/dist/models/ListCompaniesResponseBody.js +112 -0
  76. package/dist/models/ListCompaniesResponseBody.js.map +1 -0
  77. package/dist/models/ListContactRequest.d.ts +3 -3
  78. package/dist/models/ListContactResponseBody.d.ts +12 -12
  79. package/dist/models/ListDeploymentJobRequest.d.ts +3 -23
  80. package/dist/models/ListDeploymentJobRequest.js.map +1 -1
  81. package/dist/models/ListDeploymentJobResponseBody.d.ts +29 -39
  82. package/dist/models/ListDeploymentJobResponseBody.js.map +1 -1
  83. package/dist/models/ListInstancesRequest.d.ts +7 -5
  84. package/dist/models/ListInstancesRequest.js.map +1 -1
  85. package/dist/models/ListInstancesResponseBody.d.ts +23 -14
  86. package/dist/models/ListInstancesResponseBody.js.map +1 -1
  87. package/dist/models/ListUserCertificateOrderRequest.d.ts +20 -30
  88. package/dist/models/ListUserCertificateOrderRequest.js.map +1 -1
  89. package/dist/models/ListUserCertificateOrderResponseBody.d.ts +59 -76
  90. package/dist/models/ListUserCertificateOrderResponseBody.js.map +1 -1
  91. package/dist/models/RefundInstanceRequest.d.ts +1 -1
  92. package/dist/models/RefundInstanceResponseBody.d.ts +1 -1
  93. package/dist/models/RevokeCertificateResponseBody.d.ts +1 -1
  94. package/dist/models/UpdateCompanyRequest.d.ts +137 -0
  95. package/dist/models/UpdateCompanyRequest.js +82 -0
  96. package/dist/models/UpdateCompanyRequest.js.map +1 -0
  97. package/dist/models/UpdateCompanyResponse.d.ts +19 -0
  98. package/dist/models/UpdateCompanyResponse.js +69 -0
  99. package/dist/models/UpdateCompanyResponse.js.map +1 -0
  100. package/dist/models/UpdateCompanyResponseBody.d.ts +29 -0
  101. package/dist/models/UpdateCompanyResponseBody.js +60 -0
  102. package/dist/models/UpdateCompanyResponseBody.js.map +1 -0
  103. package/dist/models/UpdateContactRequest.d.ts +63 -0
  104. package/dist/models/UpdateContactRequest.js +68 -0
  105. package/dist/models/UpdateContactRequest.js.map +1 -0
  106. package/dist/models/UpdateContactResponse.d.ts +19 -0
  107. package/dist/models/UpdateContactResponse.js +69 -0
  108. package/dist/models/UpdateContactResponse.js.map +1 -0
  109. package/dist/models/UpdateContactResponseBody.d.ts +29 -0
  110. package/dist/models/UpdateContactResponseBody.js +60 -0
  111. package/dist/models/UpdateContactResponseBody.js.map +1 -0
  112. package/dist/models/UpdateCsrRequest.d.ts +2 -2
  113. package/dist/models/UpdateCsrResponseBody.d.ts +1 -1
  114. package/dist/models/model.d.ts +28 -0
  115. package/dist/models/model.js +62 -5
  116. package/dist/models/model.js.map +1 -1
  117. package/package.json +2 -2
  118. package/src/client.ts +554 -36
  119. package/src/models/ApplyCertificateRequest.ts +1 -1
  120. package/src/models/CancelPendingCertificateResponseBody.ts +1 -1
  121. package/src/models/CreateCompanyRequest.ts +164 -0
  122. package/src/models/CreateCompanyResponse.ts +40 -0
  123. package/src/models/CreateCompanyResponseBody.ts +44 -0
  124. package/src/models/CreateContactRequest.ts +78 -0
  125. package/src/models/CreateContactResponse.ts +40 -0
  126. package/src/models/CreateContactResponseBody.ts +44 -0
  127. package/src/models/DeleteCompanyRequest.ts +36 -0
  128. package/src/models/DeleteCompanyResponse.ts +40 -0
  129. package/src/models/DeleteCompanyResponseBody.ts +34 -0
  130. package/src/models/DeleteContactRequest.ts +36 -0
  131. package/src/models/DeleteContactResponse.ts +40 -0
  132. package/src/models/DeleteContactResponseBody.ts +34 -0
  133. package/src/models/GetAssetCountResponseBody.ts +13 -13
  134. package/src/models/GetCompanyRequest.ts +36 -0
  135. package/src/models/GetCompanyResponse.ts +40 -0
  136. package/src/models/GetCompanyResponseBody.ts +164 -0
  137. package/src/models/GetContactRequest.ts +34 -0
  138. package/src/models/GetContactResponse.ts +40 -0
  139. package/src/models/GetContactResponseBody.ts +114 -0
  140. package/src/models/GetInstanceDetailResponseBody.ts +12 -12
  141. package/src/models/GetUserCertificateDetailRequest.ts +7 -2
  142. package/src/models/GetUserCertificateDetailResponseBody.ts +37 -35
  143. package/src/models/ListAssetCountRequest.ts +5 -5
  144. package/src/models/ListAssetCountResponseBody.ts +6 -6
  145. package/src/models/ListCompaniesRequest.ts +64 -0
  146. package/src/models/ListCompaniesResponse.ts +40 -0
  147. package/src/models/ListCompaniesResponseBody.ts +224 -0
  148. package/src/models/ListContactRequest.ts +3 -3
  149. package/src/models/ListContactResponseBody.ts +12 -12
  150. package/src/models/ListDeploymentJobRequest.ts +3 -23
  151. package/src/models/ListDeploymentJobResponseBody.ts +29 -39
  152. package/src/models/ListInstancesRequest.ts +7 -5
  153. package/src/models/ListInstancesResponseBody.ts +23 -14
  154. package/src/models/ListUserCertificateOrderRequest.ts +20 -30
  155. package/src/models/ListUserCertificateOrderResponseBody.ts +59 -76
  156. package/src/models/RefundInstanceRequest.ts +1 -1
  157. package/src/models/RefundInstanceResponseBody.ts +1 -1
  158. package/src/models/RevokeCertificateResponseBody.ts +1 -1
  159. package/src/models/UpdateCompanyRequest.ts +174 -0
  160. package/src/models/UpdateCompanyResponse.ts +40 -0
  161. package/src/models/UpdateCompanyResponseBody.ts +44 -0
  162. package/src/models/UpdateContactRequest.ts +86 -0
  163. package/src/models/UpdateContactResponse.ts +40 -0
  164. package/src/models/UpdateContactResponseBody.ts +44 -0
  165. package/src/models/UpdateCsrRequest.ts +2 -2
  166. package/src/models/UpdateCsrResponseBody.ts +1 -1
  167. package/src/models/model.ts +28 -0
package/src/client.ts CHANGED
@@ -145,7 +145,7 @@ export default class Client extends OpenApi {
145
145
  }
146
146
 
147
147
  /**
148
- * Submits a certificate application for a Certificate Management Service instance.
148
+ * Applies for a certificate.
149
149
  *
150
150
  * @param request - ApplyCertificateRequest
151
151
  * @param runtime - runtime options for this request RuntimeOptions
@@ -176,7 +176,7 @@ export default class Client extends OpenApi {
176
176
  }
177
177
 
178
178
  /**
179
- * Submits a certificate application for a Certificate Management Service instance.
179
+ * Applies for a certificate.
180
180
  *
181
181
  * @param request - ApplyCertificateRequest
182
182
  * @returns ApplyCertificateResponse
@@ -353,7 +353,7 @@ export default class Client extends OpenApi {
353
353
  }
354
354
 
355
355
  /**
356
- * Cancels a pending certificate application that has not been issued.
356
+ * Revokes a certificate application.
357
357
  *
358
358
  * @param request - CancelPendingCertificateRequest
359
359
  * @param runtime - runtime options for this request RuntimeOptions
@@ -384,7 +384,7 @@ export default class Client extends OpenApi {
384
384
  }
385
385
 
386
386
  /**
387
- * Cancels a pending certificate application that has not been issued.
387
+ * Revokes a certificate application.
388
388
  *
389
389
  * @param request - CancelPendingCertificateRequest
390
390
  * @returns CancelPendingCertificateResponse
@@ -634,6 +634,150 @@ export default class Client extends OpenApi {
634
634
  return await this.createCertificateWithCsrRequestWithOptions(request, runtime);
635
635
  }
636
636
 
637
+ /**
638
+ * Creates a company.
639
+ *
640
+ * @param request - CreateCompanyRequest
641
+ * @param runtime - runtime options for this request RuntimeOptions
642
+ * @returns CreateCompanyResponse
643
+ */
644
+ async createCompanyWithOptions(request: $_model.CreateCompanyRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateCompanyResponse> {
645
+ request.validate();
646
+ let query = { };
647
+ if (!$dara.isNull(request.city)) {
648
+ query["City"] = request.city;
649
+ }
650
+
651
+ if (!$dara.isNull(request.companyAddress)) {
652
+ query["CompanyAddress"] = request.companyAddress;
653
+ }
654
+
655
+ if (!$dara.isNull(request.companyCode)) {
656
+ query["CompanyCode"] = request.companyCode;
657
+ }
658
+
659
+ if (!$dara.isNull(request.companyEmail)) {
660
+ query["CompanyEmail"] = request.companyEmail;
661
+ }
662
+
663
+ if (!$dara.isNull(request.companyName)) {
664
+ query["CompanyName"] = request.companyName;
665
+ }
666
+
667
+ if (!$dara.isNull(request.companyPhone)) {
668
+ query["CompanyPhone"] = request.companyPhone;
669
+ }
670
+
671
+ if (!$dara.isNull(request.companyType)) {
672
+ query["CompanyType"] = request.companyType;
673
+ }
674
+
675
+ if (!$dara.isNull(request.countryCode)) {
676
+ query["CountryCode"] = request.countryCode;
677
+ }
678
+
679
+ if (!$dara.isNull(request.department)) {
680
+ query["Department"] = request.department;
681
+ }
682
+
683
+ if (!$dara.isNull(request.lang)) {
684
+ query["Lang"] = request.lang;
685
+ }
686
+
687
+ if (!$dara.isNull(request.postCode)) {
688
+ query["PostCode"] = request.postCode;
689
+ }
690
+
691
+ if (!$dara.isNull(request.province)) {
692
+ query["Province"] = request.province;
693
+ }
694
+
695
+ let req = new $OpenApiUtil.OpenApiRequest({
696
+ query: OpenApiUtil.query(query),
697
+ });
698
+ let params = new $OpenApiUtil.Params({
699
+ action: "CreateCompany",
700
+ version: "2020-04-07",
701
+ protocol: "HTTPS",
702
+ pathname: "/",
703
+ method: "POST",
704
+ authType: "AK",
705
+ style: "RPC",
706
+ reqBodyType: "formData",
707
+ bodyType: "json",
708
+ });
709
+ return $dara.cast<$_model.CreateCompanyResponse>(await this.callApi(params, req, runtime), new $_model.CreateCompanyResponse({}));
710
+ }
711
+
712
+ /**
713
+ * Creates a company.
714
+ *
715
+ * @param request - CreateCompanyRequest
716
+ * @returns CreateCompanyResponse
717
+ */
718
+ async createCompany(request: $_model.CreateCompanyRequest): Promise<$_model.CreateCompanyResponse> {
719
+ let runtime = new $dara.RuntimeOptions({ });
720
+ return await this.createCompanyWithOptions(request, runtime);
721
+ }
722
+
723
+ /**
724
+ * Creates a certificate application contact.
725
+ *
726
+ * @param request - CreateContactRequest
727
+ * @param runtime - runtime options for this request RuntimeOptions
728
+ * @returns CreateContactResponse
729
+ */
730
+ async createContactWithOptions(request: $_model.CreateContactRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateContactResponse> {
731
+ request.validate();
732
+ let query = { };
733
+ if (!$dara.isNull(request.email)) {
734
+ query["Email"] = request.email;
735
+ }
736
+
737
+ if (!$dara.isNull(request.idcard)) {
738
+ query["Idcard"] = request.idcard;
739
+ }
740
+
741
+ if (!$dara.isNull(request.mobile)) {
742
+ query["Mobile"] = request.mobile;
743
+ }
744
+
745
+ if (!$dara.isNull(request.name)) {
746
+ query["Name"] = request.name;
747
+ }
748
+
749
+ if (!$dara.isNull(request.webhooks)) {
750
+ query["Webhooks"] = request.webhooks;
751
+ }
752
+
753
+ let req = new $OpenApiUtil.OpenApiRequest({
754
+ query: OpenApiUtil.query(query),
755
+ });
756
+ let params = new $OpenApiUtil.Params({
757
+ action: "CreateContact",
758
+ version: "2020-04-07",
759
+ protocol: "HTTPS",
760
+ pathname: "/",
761
+ method: "POST",
762
+ authType: "AK",
763
+ style: "RPC",
764
+ reqBodyType: "formData",
765
+ bodyType: "json",
766
+ });
767
+ return $dara.cast<$_model.CreateContactResponse>(await this.callApi(params, req, runtime), new $_model.CreateContactResponse({}));
768
+ }
769
+
770
+ /**
771
+ * Creates a certificate application contact.
772
+ *
773
+ * @param request - CreateContactRequest
774
+ * @returns CreateContactResponse
775
+ */
776
+ async createContact(request: $_model.CreateContactRequest): Promise<$_model.CreateContactResponse> {
777
+ let runtime = new $dara.RuntimeOptions({ });
778
+ return await this.createContactWithOptions(request, runtime);
779
+ }
780
+
637
781
  /**
638
782
  * Creates a certificate signing request (CSR) that contains information about an SSL certificate to apply for, such as the domain names and the certificate holder. You must provide a CSR when you submit a certificate application to a certificate authority (CA).
639
783
  *
@@ -1110,6 +1254,90 @@ export default class Client extends OpenApi {
1110
1254
  return await this.deleteCloudAccessWithOptions(request, runtime);
1111
1255
  }
1112
1256
 
1257
+ /**
1258
+ * Deletes a company.
1259
+ *
1260
+ * @param request - DeleteCompanyRequest
1261
+ * @param runtime - runtime options for this request RuntimeOptions
1262
+ * @returns DeleteCompanyResponse
1263
+ */
1264
+ async deleteCompanyWithOptions(request: $_model.DeleteCompanyRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteCompanyResponse> {
1265
+ request.validate();
1266
+ let query = { };
1267
+ if (!$dara.isNull(request.companyId)) {
1268
+ query["CompanyId"] = request.companyId;
1269
+ }
1270
+
1271
+ let req = new $OpenApiUtil.OpenApiRequest({
1272
+ query: OpenApiUtil.query(query),
1273
+ });
1274
+ let params = new $OpenApiUtil.Params({
1275
+ action: "DeleteCompany",
1276
+ version: "2020-04-07",
1277
+ protocol: "HTTPS",
1278
+ pathname: "/",
1279
+ method: "POST",
1280
+ authType: "AK",
1281
+ style: "RPC",
1282
+ reqBodyType: "formData",
1283
+ bodyType: "json",
1284
+ });
1285
+ return $dara.cast<$_model.DeleteCompanyResponse>(await this.callApi(params, req, runtime), new $_model.DeleteCompanyResponse({}));
1286
+ }
1287
+
1288
+ /**
1289
+ * Deletes a company.
1290
+ *
1291
+ * @param request - DeleteCompanyRequest
1292
+ * @returns DeleteCompanyResponse
1293
+ */
1294
+ async deleteCompany(request: $_model.DeleteCompanyRequest): Promise<$_model.DeleteCompanyResponse> {
1295
+ let runtime = new $dara.RuntimeOptions({ });
1296
+ return await this.deleteCompanyWithOptions(request, runtime);
1297
+ }
1298
+
1299
+ /**
1300
+ * Deletes a contact.
1301
+ *
1302
+ * @param request - DeleteContactRequest
1303
+ * @param runtime - runtime options for this request RuntimeOptions
1304
+ * @returns DeleteContactResponse
1305
+ */
1306
+ async deleteContactWithOptions(request: $_model.DeleteContactRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteContactResponse> {
1307
+ request.validate();
1308
+ let query = { };
1309
+ if (!$dara.isNull(request.contactId)) {
1310
+ query["ContactId"] = request.contactId;
1311
+ }
1312
+
1313
+ let req = new $OpenApiUtil.OpenApiRequest({
1314
+ query: OpenApiUtil.query(query),
1315
+ });
1316
+ let params = new $OpenApiUtil.Params({
1317
+ action: "DeleteContact",
1318
+ version: "2020-04-07",
1319
+ protocol: "HTTPS",
1320
+ pathname: "/",
1321
+ method: "POST",
1322
+ authType: "AK",
1323
+ style: "RPC",
1324
+ reqBodyType: "formData",
1325
+ bodyType: "json",
1326
+ });
1327
+ return $dara.cast<$_model.DeleteContactResponse>(await this.callApi(params, req, runtime), new $_model.DeleteContactResponse({}));
1328
+ }
1329
+
1330
+ /**
1331
+ * Deletes a contact.
1332
+ *
1333
+ * @param request - DeleteContactRequest
1334
+ * @returns DeleteContactResponse
1335
+ */
1336
+ async deleteContact(request: $_model.DeleteContactRequest): Promise<$_model.DeleteContactResponse> {
1337
+ let runtime = new $dara.RuntimeOptions({ });
1338
+ return await this.deleteContactWithOptions(request, runtime);
1339
+ }
1340
+
1113
1341
  /**
1114
1342
  * Deletes a certificate signing request (CSR).
1115
1343
  *
@@ -1767,12 +1995,12 @@ export default class Client extends OpenApi {
1767
1995
  }
1768
1996
 
1769
1997
  /**
1770
- * Queries the total number of certificate-related assets, such as websites and cloud resources.
1998
+ * Queries the number of assets.
1771
1999
  *
1772
2000
  * @remarks
1773
- * This API call queries the number of CA certificates that you have created, including root CA certificates and sub-CA certificates.
1774
- * ## QPS Limit
1775
- * This API call has a single-user limit of 10 queries per second (QPS). If you exceed this limit, API calls are rate-limited. This may affect your business. We recommend that you call this API operation at a reasonable rate.
2001
+ * Queries the number of CA certificates (including root CA certificates and subordinate CA certificates) that you have created.
2002
+ * ## QPS limit
2003
+ * The China 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.
1776
2004
  *
1777
2005
  * @param runtime - runtime options for this request RuntimeOptions
1778
2006
  * @returns GetAssetCountResponse
@@ -1794,12 +2022,12 @@ export default class Client extends OpenApi {
1794
2022
  }
1795
2023
 
1796
2024
  /**
1797
- * Queries the total number of certificate-related assets, such as websites and cloud resources.
2025
+ * Queries the number of assets.
1798
2026
  *
1799
2027
  * @remarks
1800
- * This API call queries the number of CA certificates that you have created, including root CA certificates and sub-CA certificates.
1801
- * ## QPS Limit
1802
- * This API call has a single-user limit of 10 queries per second (QPS). If you exceed this limit, API calls are rate-limited. This may affect your business. We recommend that you call this API operation at a reasonable rate.
2028
+ * Queries the number of CA certificates (including root CA certificates and subordinate CA certificates) that you have created.
2029
+ * ## QPS limit
2030
+ * The China 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.
1803
2031
  * @returns GetAssetCountResponse
1804
2032
  */
1805
2033
  async getAssetCount(): Promise<$_model.GetAssetCountResponse> {
@@ -1886,6 +2114,90 @@ export default class Client extends OpenApi {
1886
2114
  return await this.getCertificateDetailWithOptions(request, runtime);
1887
2115
  }
1888
2116
 
2117
+ /**
2118
+ * Retrieves the details of a company.
2119
+ *
2120
+ * @param request - GetCompanyRequest
2121
+ * @param runtime - runtime options for this request RuntimeOptions
2122
+ * @returns GetCompanyResponse
2123
+ */
2124
+ async getCompanyWithOptions(request: $_model.GetCompanyRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetCompanyResponse> {
2125
+ request.validate();
2126
+ let query = { };
2127
+ if (!$dara.isNull(request.companyId)) {
2128
+ query["CompanyId"] = request.companyId;
2129
+ }
2130
+
2131
+ let req = new $OpenApiUtil.OpenApiRequest({
2132
+ query: OpenApiUtil.query(query),
2133
+ });
2134
+ let params = new $OpenApiUtil.Params({
2135
+ action: "GetCompany",
2136
+ version: "2020-04-07",
2137
+ protocol: "HTTPS",
2138
+ pathname: "/",
2139
+ method: "POST",
2140
+ authType: "AK",
2141
+ style: "RPC",
2142
+ reqBodyType: "formData",
2143
+ bodyType: "json",
2144
+ });
2145
+ return $dara.cast<$_model.GetCompanyResponse>(await this.callApi(params, req, runtime), new $_model.GetCompanyResponse({}));
2146
+ }
2147
+
2148
+ /**
2149
+ * Retrieves the details of a company.
2150
+ *
2151
+ * @param request - GetCompanyRequest
2152
+ * @returns GetCompanyResponse
2153
+ */
2154
+ async getCompany(request: $_model.GetCompanyRequest): Promise<$_model.GetCompanyResponse> {
2155
+ let runtime = new $dara.RuntimeOptions({ });
2156
+ return await this.getCompanyWithOptions(request, runtime);
2157
+ }
2158
+
2159
+ /**
2160
+ * Retrieves a contact.
2161
+ *
2162
+ * @param request - GetContactRequest
2163
+ * @param runtime - runtime options for this request RuntimeOptions
2164
+ * @returns GetContactResponse
2165
+ */
2166
+ async getContactWithOptions(request: $_model.GetContactRequest, runtime: $dara.RuntimeOptions): Promise<$_model.GetContactResponse> {
2167
+ request.validate();
2168
+ let query = { };
2169
+ if (!$dara.isNull(request.contactId)) {
2170
+ query["ContactId"] = request.contactId;
2171
+ }
2172
+
2173
+ let req = new $OpenApiUtil.OpenApiRequest({
2174
+ query: OpenApiUtil.query(query),
2175
+ });
2176
+ let params = new $OpenApiUtil.Params({
2177
+ action: "GetContact",
2178
+ version: "2020-04-07",
2179
+ protocol: "HTTPS",
2180
+ pathname: "/",
2181
+ method: "POST",
2182
+ authType: "AK",
2183
+ style: "RPC",
2184
+ reqBodyType: "formData",
2185
+ bodyType: "json",
2186
+ });
2187
+ return $dara.cast<$_model.GetContactResponse>(await this.callApi(params, req, runtime), new $_model.GetContactResponse({}));
2188
+ }
2189
+
2190
+ /**
2191
+ * Retrieves a contact.
2192
+ *
2193
+ * @param request - GetContactRequest
2194
+ * @returns GetContactResponse
2195
+ */
2196
+ async getContact(request: $_model.GetContactRequest): Promise<$_model.GetContactResponse> {
2197
+ let runtime = new $dara.RuntimeOptions({ });
2198
+ return await this.getContactWithOptions(request, runtime);
2199
+ }
2200
+
1889
2201
  /**
1890
2202
  * Queries the content of a certificate signing request (CSR).
1891
2203
  *
@@ -2166,10 +2478,10 @@ export default class Client extends OpenApi {
2166
2478
  }
2167
2479
 
2168
2480
  /**
2169
- * Retrieves certificate details, including the basic information, certificate body, and private key. You can also use this operation to download the certificate content and private key.
2481
+ * Retrieves the details of a certificate, including basic information and public/private key content. You can use this operation to download the certificate content and private key.
2170
2482
  *
2171
2483
  * @remarks
2172
- * The queries per second (QPS) limit for each user is 100. If you exceed this limit, the system throttles your API calls, which may affect your business. We recommend that you call this operation within this limit.
2484
+ * 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 appropriately.
2173
2485
  *
2174
2486
  * @param request - GetUserCertificateDetailRequest
2175
2487
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2204,10 +2516,10 @@ export default class Client extends OpenApi {
2204
2516
  }
2205
2517
 
2206
2518
  /**
2207
- * Retrieves certificate details, including the basic information, certificate body, and private key. You can also use this operation to download the certificate content and private key.
2519
+ * Retrieves the details of a certificate, including basic information and public/private key content. You can use this operation to download the certificate content and private key.
2208
2520
  *
2209
2521
  * @remarks
2210
- * The queries per second (QPS) limit for each user is 100. If you exceed this limit, the system throttles your API calls, which may affect your business. We recommend that you call this operation within this limit.
2522
+ * 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 appropriately.
2211
2523
  *
2212
2524
  * @param request - GetUserCertificateDetailRequest
2213
2525
  * @returns GetUserCertificateDetailResponse
@@ -2218,12 +2530,12 @@ export default class Client extends OpenApi {
2218
2530
  }
2219
2531
 
2220
2532
  /**
2221
- * Queries the certificate deployment statistics by cloud service type.
2533
+ * Queries the resource statistics list of cloud services.
2222
2534
  *
2223
2535
  * @remarks
2224
- * Queries the number of created Certificate Authority (CA) certificates, including root and subordinate CA certificates.
2536
+ * Queries the number of CA certificates (including root CA certificates and subordinate CA certificates) that you have created.
2225
2537
  * ## QPS limit
2226
- * Each user can make up to 10 queries per second (QPS). If you exceed this limit, the system applies rate limiting to your API calls. This may affect your business. Make API calls at a reasonable rate.
2538
+ * The China single-user QPS limit for this operation is 10 calls per second. If this limit is exceeded, the API calls are throttled, which may affect your business. Call this operation as needed.
2227
2539
  *
2228
2540
  * @param request - ListAssetCountRequest
2229
2541
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2266,12 +2578,12 @@ export default class Client extends OpenApi {
2266
2578
  }
2267
2579
 
2268
2580
  /**
2269
- * Queries the certificate deployment statistics by cloud service type.
2581
+ * Queries the resource statistics list of cloud services.
2270
2582
  *
2271
2583
  * @remarks
2272
- * Queries the number of created Certificate Authority (CA) certificates, including root and subordinate CA certificates.
2584
+ * Queries the number of CA certificates (including root CA certificates and subordinate CA certificates) that you have created.
2273
2585
  * ## QPS limit
2274
- * Each user can make up to 10 queries per second (QPS). If you exceed this limit, the system applies rate limiting to your API calls. This may affect your business. Make API calls at a reasonable rate.
2586
+ * The China single-user QPS limit for this operation is 10 calls per second. If this limit is exceeded, the API calls are throttled, which may affect your business. Call this operation as needed.
2275
2587
  *
2276
2588
  * @param request - ListAssetCountRequest
2277
2589
  * @returns ListAssetCountResponse
@@ -2618,7 +2930,61 @@ export default class Client extends OpenApi {
2618
2930
  }
2619
2931
 
2620
2932
  /**
2621
- * Queries the contacts that receive certificate deployment notifications.
2933
+ * Retrieves a list of companies.
2934
+ *
2935
+ * @param request - ListCompaniesRequest
2936
+ * @param runtime - runtime options for this request RuntimeOptions
2937
+ * @returns ListCompaniesResponse
2938
+ */
2939
+ async listCompaniesWithOptions(request: $_model.ListCompaniesRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListCompaniesResponse> {
2940
+ request.validate();
2941
+ let query = { };
2942
+ if (!$dara.isNull(request.companyId)) {
2943
+ query["CompanyId"] = request.companyId;
2944
+ }
2945
+
2946
+ if (!$dara.isNull(request.currentPage)) {
2947
+ query["CurrentPage"] = request.currentPage;
2948
+ }
2949
+
2950
+ if (!$dara.isNull(request.keyword)) {
2951
+ query["Keyword"] = request.keyword;
2952
+ }
2953
+
2954
+ if (!$dara.isNull(request.showSize)) {
2955
+ query["ShowSize"] = request.showSize;
2956
+ }
2957
+
2958
+ let req = new $OpenApiUtil.OpenApiRequest({
2959
+ query: OpenApiUtil.query(query),
2960
+ });
2961
+ let params = new $OpenApiUtil.Params({
2962
+ action: "ListCompanies",
2963
+ version: "2020-04-07",
2964
+ protocol: "HTTPS",
2965
+ pathname: "/",
2966
+ method: "POST",
2967
+ authType: "AK",
2968
+ style: "RPC",
2969
+ reqBodyType: "formData",
2970
+ bodyType: "json",
2971
+ });
2972
+ return $dara.cast<$_model.ListCompaniesResponse>(await this.callApi(params, req, runtime), new $_model.ListCompaniesResponse({}));
2973
+ }
2974
+
2975
+ /**
2976
+ * Retrieves a list of companies.
2977
+ *
2978
+ * @param request - ListCompaniesRequest
2979
+ * @returns ListCompaniesResponse
2980
+ */
2981
+ async listCompanies(request: $_model.ListCompaniesRequest): Promise<$_model.ListCompaniesResponse> {
2982
+ let runtime = new $dara.RuntimeOptions({ });
2983
+ return await this.listCompaniesWithOptions(request, runtime);
2984
+ }
2985
+
2986
+ /**
2987
+ * Retrieves a list of contacts.
2622
2988
  *
2623
2989
  * @param request - ListContactRequest
2624
2990
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2657,7 +3023,7 @@ export default class Client extends OpenApi {
2657
3023
  }
2658
3024
 
2659
3025
  /**
2660
- * Queries the contacts that receive certificate deployment notifications.
3026
+ * Retrieves a list of contacts.
2661
3027
  *
2662
3028
  * @param request - ListContactRequest
2663
3029
  * @returns ListContactResponse
@@ -2722,7 +3088,7 @@ export default class Client extends OpenApi {
2722
3088
  }
2723
3089
 
2724
3090
  /**
2725
- * Queries the certificate deployment tasks that are created in your account.
3091
+ * Retrieves a list of deployment tasks after you create a deployment task.
2726
3092
  *
2727
3093
  * @param request - ListDeploymentJobRequest
2728
3094
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2765,7 +3131,7 @@ export default class Client extends OpenApi {
2765
3131
  }
2766
3132
 
2767
3133
  /**
2768
- * Queries the certificate deployment tasks that are created in your account.
3134
+ * Retrieves a list of deployment tasks after you create a deployment task.
2769
3135
  *
2770
3136
  * @param request - ListDeploymentJobRequest
2771
3137
  * @returns ListDeploymentJobResponse
@@ -2934,12 +3300,12 @@ export default class Client extends OpenApi {
2934
3300
  }
2935
3301
 
2936
3302
  /**
2937
- * Queries the SSL certificates and certificate orders in your account.
3303
+ * Queries the list of user certificates or orders.
2938
3304
  *
2939
3305
  * @remarks
2940
- * This operation queries a list of your certificates or orders. Set OrderType to CERT or UPLOAD to query certificates. Set OrderType to CPACK or BUY to query orders.
3306
+ * This operation is used to query the list of user certificates or orders. If OrderType is set to CERT or UPLOAD, the certificate list is queried. If OrderType is set to CPACK or BUY, the order list is queried.
2941
3307
  * ## QPS limit
2942
- * The queries per second (QPS) limit for a single user is 10 calls per second. If you exceed this limit, API calls are throttled, which may affect your business. Plan your calls accordingly.
3308
+ * 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.
2943
3309
  *
2944
3310
  * @param request - ListUserCertificateOrderRequest
2945
3311
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2990,12 +3356,12 @@ export default class Client extends OpenApi {
2990
3356
  }
2991
3357
 
2992
3358
  /**
2993
- * Queries the SSL certificates and certificate orders in your account.
3359
+ * Queries the list of user certificates or orders.
2994
3360
  *
2995
3361
  * @remarks
2996
- * This operation queries a list of your certificates or orders. Set OrderType to CERT or UPLOAD to query certificates. Set OrderType to CPACK or BUY to query orders.
3362
+ * This operation is used to query the list of user certificates or orders. If OrderType is set to CERT or UPLOAD, the certificate list is queried. If OrderType is set to CPACK or BUY, the order list is queried.
2997
3363
  * ## QPS limit
2998
- * The queries per second (QPS) limit for a single user is 10 calls per second. If you exceed this limit, API calls are throttled, which may affect your business. Plan your calls accordingly.
3364
+ * 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.
2999
3365
  *
3000
3366
  * @param request - ListUserCertificateOrderRequest
3001
3367
  * @returns ListUserCertificateOrderResponse
@@ -3192,7 +3558,7 @@ export default class Client extends OpenApi {
3192
3558
  }
3193
3559
 
3194
3560
  /**
3195
- * Refunds a Certificate Management Service instance if the refund is requested within seven days of purchase.
3561
+ * Refunds an instance within 7 days.
3196
3562
  *
3197
3563
  * @param request - RefundInstanceRequest
3198
3564
  * @param runtime - runtime options for this request RuntimeOptions
@@ -3223,7 +3589,7 @@ export default class Client extends OpenApi {
3223
3589
  }
3224
3590
 
3225
3591
  /**
3226
- * Refunds a Certificate Management Service instance if the refund is requested within seven days of purchase.
3592
+ * Refunds an instance within 7 days.
3227
3593
  *
3228
3594
  * @param request - RefundInstanceRequest
3229
3595
  * @returns RefundInstanceResponse
@@ -3458,7 +3824,159 @@ export default class Client extends OpenApi {
3458
3824
  }
3459
3825
 
3460
3826
  /**
3461
- * Updates the private key associated with a certificate signing request (CSR).
3827
+ * Updates company information.
3828
+ *
3829
+ * @param request - UpdateCompanyRequest
3830
+ * @param runtime - runtime options for this request RuntimeOptions
3831
+ * @returns UpdateCompanyResponse
3832
+ */
3833
+ async updateCompanyWithOptions(request: $_model.UpdateCompanyRequest, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateCompanyResponse> {
3834
+ request.validate();
3835
+ let query = { };
3836
+ if (!$dara.isNull(request.city)) {
3837
+ query["City"] = request.city;
3838
+ }
3839
+
3840
+ if (!$dara.isNull(request.companyAddress)) {
3841
+ query["CompanyAddress"] = request.companyAddress;
3842
+ }
3843
+
3844
+ if (!$dara.isNull(request.companyCode)) {
3845
+ query["CompanyCode"] = request.companyCode;
3846
+ }
3847
+
3848
+ if (!$dara.isNull(request.companyEmail)) {
3849
+ query["CompanyEmail"] = request.companyEmail;
3850
+ }
3851
+
3852
+ if (!$dara.isNull(request.companyId)) {
3853
+ query["CompanyId"] = request.companyId;
3854
+ }
3855
+
3856
+ if (!$dara.isNull(request.companyName)) {
3857
+ query["CompanyName"] = request.companyName;
3858
+ }
3859
+
3860
+ if (!$dara.isNull(request.companyPhone)) {
3861
+ query["CompanyPhone"] = request.companyPhone;
3862
+ }
3863
+
3864
+ if (!$dara.isNull(request.companyType)) {
3865
+ query["CompanyType"] = request.companyType;
3866
+ }
3867
+
3868
+ if (!$dara.isNull(request.countryCode)) {
3869
+ query["CountryCode"] = request.countryCode;
3870
+ }
3871
+
3872
+ if (!$dara.isNull(request.department)) {
3873
+ query["Department"] = request.department;
3874
+ }
3875
+
3876
+ if (!$dara.isNull(request.lang)) {
3877
+ query["Lang"] = request.lang;
3878
+ }
3879
+
3880
+ if (!$dara.isNull(request.postCode)) {
3881
+ query["PostCode"] = request.postCode;
3882
+ }
3883
+
3884
+ if (!$dara.isNull(request.province)) {
3885
+ query["Province"] = request.province;
3886
+ }
3887
+
3888
+ let req = new $OpenApiUtil.OpenApiRequest({
3889
+ query: OpenApiUtil.query(query),
3890
+ });
3891
+ let params = new $OpenApiUtil.Params({
3892
+ action: "UpdateCompany",
3893
+ version: "2020-04-07",
3894
+ protocol: "HTTPS",
3895
+ pathname: "/",
3896
+ method: "POST",
3897
+ authType: "AK",
3898
+ style: "RPC",
3899
+ reqBodyType: "formData",
3900
+ bodyType: "json",
3901
+ });
3902
+ return $dara.cast<$_model.UpdateCompanyResponse>(await this.callApi(params, req, runtime), new $_model.UpdateCompanyResponse({}));
3903
+ }
3904
+
3905
+ /**
3906
+ * Updates company information.
3907
+ *
3908
+ * @param request - UpdateCompanyRequest
3909
+ * @returns UpdateCompanyResponse
3910
+ */
3911
+ async updateCompany(request: $_model.UpdateCompanyRequest): Promise<$_model.UpdateCompanyResponse> {
3912
+ let runtime = new $dara.RuntimeOptions({ });
3913
+ return await this.updateCompanyWithOptions(request, runtime);
3914
+ }
3915
+
3916
+ /**
3917
+ * Updates a contact.
3918
+ *
3919
+ * @param request - UpdateContactRequest
3920
+ * @param runtime - runtime options for this request RuntimeOptions
3921
+ * @returns UpdateContactResponse
3922
+ */
3923
+ async updateContactWithOptions(request: $_model.UpdateContactRequest, runtime: $dara.RuntimeOptions): Promise<$_model.UpdateContactResponse> {
3924
+ request.validate();
3925
+ let query = { };
3926
+ if (!$dara.isNull(request.contactId)) {
3927
+ query["ContactId"] = request.contactId;
3928
+ }
3929
+
3930
+ if (!$dara.isNull(request.email)) {
3931
+ query["Email"] = request.email;
3932
+ }
3933
+
3934
+ if (!$dara.isNull(request.idcard)) {
3935
+ query["Idcard"] = request.idcard;
3936
+ }
3937
+
3938
+ if (!$dara.isNull(request.mobile)) {
3939
+ query["Mobile"] = request.mobile;
3940
+ }
3941
+
3942
+ if (!$dara.isNull(request.name)) {
3943
+ query["Name"] = request.name;
3944
+ }
3945
+
3946
+ if (!$dara.isNull(request.webhooks)) {
3947
+ query["Webhooks"] = request.webhooks;
3948
+ }
3949
+
3950
+ let req = new $OpenApiUtil.OpenApiRequest({
3951
+ query: OpenApiUtil.query(query),
3952
+ });
3953
+ let params = new $OpenApiUtil.Params({
3954
+ action: "UpdateContact",
3955
+ version: "2020-04-07",
3956
+ protocol: "HTTPS",
3957
+ pathname: "/",
3958
+ method: "POST",
3959
+ authType: "AK",
3960
+ style: "RPC",
3961
+ reqBodyType: "formData",
3962
+ bodyType: "json",
3963
+ });
3964
+ return $dara.cast<$_model.UpdateContactResponse>(await this.callApi(params, req, runtime), new $_model.UpdateContactResponse({}));
3965
+ }
3966
+
3967
+ /**
3968
+ * Updates a contact.
3969
+ *
3970
+ * @param request - UpdateContactRequest
3971
+ * @returns UpdateContactResponse
3972
+ */
3973
+ async updateContact(request: $_model.UpdateContactRequest): Promise<$_model.UpdateContactResponse> {
3974
+ let runtime = new $dara.RuntimeOptions({ });
3975
+ return await this.updateContactWithOptions(request, runtime);
3976
+ }
3977
+
3978
+ /**
3979
+ * Uploads the private key corresponding to a CSR if the private key was not provided when the local CSR was uploaded.
3462
3980
  *
3463
3981
  * @param request - UpdateCsrRequest
3464
3982
  * @param runtime - runtime options for this request RuntimeOptions
@@ -3493,7 +4011,7 @@ export default class Client extends OpenApi {
3493
4011
  }
3494
4012
 
3495
4013
  /**
3496
- * Updates the private key associated with a certificate signing request (CSR).
4014
+ * Uploads the private key corresponding to a CSR if the private key was not provided when the local CSR was uploaded.
3497
4015
  *
3498
4016
  * @param request - UpdateCsrRequest
3499
4017
  * @returns UpdateCsrResponse