@alicloud/cas20200407 3.2.9 → 3.2.11

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/dist/client.js CHANGED
@@ -172,7 +172,7 @@ class Client extends openapi_core_1.default {
172
172
  return await this.addCloudAccessWithOptions(request, runtime);
173
173
  }
174
174
  /**
175
- * Submits a certificate application for a Certificate Management Service instance.
175
+ * Applies for a certificate.
176
176
  *
177
177
  * @param request - ApplyCertificateRequest
178
178
  * @param runtime - runtime options for this request RuntimeOptions
@@ -201,7 +201,7 @@ class Client extends openapi_core_1.default {
201
201
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ApplyCertificateResponse({}));
202
202
  }
203
203
  /**
204
- * Submits a certificate application for a Certificate Management Service instance.
204
+ * Applies for a certificate.
205
205
  *
206
206
  * @param request - ApplyCertificateRequest
207
207
  * @returns ApplyCertificateResponse
@@ -364,7 +364,7 @@ class Client extends openapi_core_1.default {
364
364
  return await this.cancelOrderRequestWithOptions(request, runtime);
365
365
  }
366
366
  /**
367
- * Cancels a pending certificate application that has not been issued.
367
+ * Revokes a certificate application.
368
368
  *
369
369
  * @param request - CancelPendingCertificateRequest
370
370
  * @param runtime - runtime options for this request RuntimeOptions
@@ -393,7 +393,7 @@ class Client extends openapi_core_1.default {
393
393
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.CancelPendingCertificateResponse({}));
394
394
  }
395
395
  /**
396
- * Cancels a pending certificate application that has not been issued.
396
+ * Revokes a certificate application.
397
397
  *
398
398
  * @param request - CancelPendingCertificateRequest
399
399
  * @returns CancelPendingCertificateResponse
@@ -613,6 +613,129 @@ class Client extends openapi_core_1.default {
613
613
  let runtime = new $dara.RuntimeOptions({});
614
614
  return await this.createCertificateWithCsrRequestWithOptions(request, runtime);
615
615
  }
616
+ /**
617
+ * Creates a company.
618
+ *
619
+ * @param request - CreateCompanyRequest
620
+ * @param runtime - runtime options for this request RuntimeOptions
621
+ * @returns CreateCompanyResponse
622
+ */
623
+ async createCompanyWithOptions(request, runtime) {
624
+ request.validate();
625
+ let query = {};
626
+ if (!$dara.isNull(request.city)) {
627
+ query["City"] = request.city;
628
+ }
629
+ if (!$dara.isNull(request.companyAddress)) {
630
+ query["CompanyAddress"] = request.companyAddress;
631
+ }
632
+ if (!$dara.isNull(request.companyCode)) {
633
+ query["CompanyCode"] = request.companyCode;
634
+ }
635
+ if (!$dara.isNull(request.companyEmail)) {
636
+ query["CompanyEmail"] = request.companyEmail;
637
+ }
638
+ if (!$dara.isNull(request.companyName)) {
639
+ query["CompanyName"] = request.companyName;
640
+ }
641
+ if (!$dara.isNull(request.companyPhone)) {
642
+ query["CompanyPhone"] = request.companyPhone;
643
+ }
644
+ if (!$dara.isNull(request.companyType)) {
645
+ query["CompanyType"] = request.companyType;
646
+ }
647
+ if (!$dara.isNull(request.countryCode)) {
648
+ query["CountryCode"] = request.countryCode;
649
+ }
650
+ if (!$dara.isNull(request.department)) {
651
+ query["Department"] = request.department;
652
+ }
653
+ if (!$dara.isNull(request.lang)) {
654
+ query["Lang"] = request.lang;
655
+ }
656
+ if (!$dara.isNull(request.postCode)) {
657
+ query["PostCode"] = request.postCode;
658
+ }
659
+ if (!$dara.isNull(request.province)) {
660
+ query["Province"] = request.province;
661
+ }
662
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
663
+ query: openapi_core_2.OpenApiUtil.query(query),
664
+ });
665
+ let params = new openapi_core_2.$OpenApiUtil.Params({
666
+ action: "CreateCompany",
667
+ version: "2020-04-07",
668
+ protocol: "HTTPS",
669
+ pathname: "/",
670
+ method: "POST",
671
+ authType: "AK",
672
+ style: "RPC",
673
+ reqBodyType: "formData",
674
+ bodyType: "json",
675
+ });
676
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateCompanyResponse({}));
677
+ }
678
+ /**
679
+ * Creates a company.
680
+ *
681
+ * @param request - CreateCompanyRequest
682
+ * @returns CreateCompanyResponse
683
+ */
684
+ async createCompany(request) {
685
+ let runtime = new $dara.RuntimeOptions({});
686
+ return await this.createCompanyWithOptions(request, runtime);
687
+ }
688
+ /**
689
+ * Creates a certificate application contact.
690
+ *
691
+ * @param request - CreateContactRequest
692
+ * @param runtime - runtime options for this request RuntimeOptions
693
+ * @returns CreateContactResponse
694
+ */
695
+ async createContactWithOptions(request, runtime) {
696
+ request.validate();
697
+ let query = {};
698
+ if (!$dara.isNull(request.email)) {
699
+ query["Email"] = request.email;
700
+ }
701
+ if (!$dara.isNull(request.idcard)) {
702
+ query["Idcard"] = request.idcard;
703
+ }
704
+ if (!$dara.isNull(request.mobile)) {
705
+ query["Mobile"] = request.mobile;
706
+ }
707
+ if (!$dara.isNull(request.name)) {
708
+ query["Name"] = request.name;
709
+ }
710
+ if (!$dara.isNull(request.webhooks)) {
711
+ query["Webhooks"] = request.webhooks;
712
+ }
713
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
714
+ query: openapi_core_2.OpenApiUtil.query(query),
715
+ });
716
+ let params = new openapi_core_2.$OpenApiUtil.Params({
717
+ action: "CreateContact",
718
+ version: "2020-04-07",
719
+ protocol: "HTTPS",
720
+ pathname: "/",
721
+ method: "POST",
722
+ authType: "AK",
723
+ style: "RPC",
724
+ reqBodyType: "formData",
725
+ bodyType: "json",
726
+ });
727
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateContactResponse({}));
728
+ }
729
+ /**
730
+ * Creates a certificate application contact.
731
+ *
732
+ * @param request - CreateContactRequest
733
+ * @returns CreateContactResponse
734
+ */
735
+ async createContact(request) {
736
+ let runtime = new $dara.RuntimeOptions({});
737
+ return await this.createContactWithOptions(request, runtime);
738
+ }
616
739
  /**
617
740
  * 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).
618
741
  *
@@ -1031,6 +1154,84 @@ class Client extends openapi_core_1.default {
1031
1154
  let runtime = new $dara.RuntimeOptions({});
1032
1155
  return await this.deleteCloudAccessWithOptions(request, runtime);
1033
1156
  }
1157
+ /**
1158
+ * Deletes a company.
1159
+ *
1160
+ * @param request - DeleteCompanyRequest
1161
+ * @param runtime - runtime options for this request RuntimeOptions
1162
+ * @returns DeleteCompanyResponse
1163
+ */
1164
+ async deleteCompanyWithOptions(request, runtime) {
1165
+ request.validate();
1166
+ let query = {};
1167
+ if (!$dara.isNull(request.companyId)) {
1168
+ query["CompanyId"] = request.companyId;
1169
+ }
1170
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1171
+ query: openapi_core_2.OpenApiUtil.query(query),
1172
+ });
1173
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1174
+ action: "DeleteCompany",
1175
+ version: "2020-04-07",
1176
+ protocol: "HTTPS",
1177
+ pathname: "/",
1178
+ method: "POST",
1179
+ authType: "AK",
1180
+ style: "RPC",
1181
+ reqBodyType: "formData",
1182
+ bodyType: "json",
1183
+ });
1184
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteCompanyResponse({}));
1185
+ }
1186
+ /**
1187
+ * Deletes a company.
1188
+ *
1189
+ * @param request - DeleteCompanyRequest
1190
+ * @returns DeleteCompanyResponse
1191
+ */
1192
+ async deleteCompany(request) {
1193
+ let runtime = new $dara.RuntimeOptions({});
1194
+ return await this.deleteCompanyWithOptions(request, runtime);
1195
+ }
1196
+ /**
1197
+ * Deletes a contact.
1198
+ *
1199
+ * @param request - DeleteContactRequest
1200
+ * @param runtime - runtime options for this request RuntimeOptions
1201
+ * @returns DeleteContactResponse
1202
+ */
1203
+ async deleteContactWithOptions(request, runtime) {
1204
+ request.validate();
1205
+ let query = {};
1206
+ if (!$dara.isNull(request.contactId)) {
1207
+ query["ContactId"] = request.contactId;
1208
+ }
1209
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1210
+ query: openapi_core_2.OpenApiUtil.query(query),
1211
+ });
1212
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1213
+ action: "DeleteContact",
1214
+ version: "2020-04-07",
1215
+ protocol: "HTTPS",
1216
+ pathname: "/",
1217
+ method: "POST",
1218
+ authType: "AK",
1219
+ style: "RPC",
1220
+ reqBodyType: "formData",
1221
+ bodyType: "json",
1222
+ });
1223
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteContactResponse({}));
1224
+ }
1225
+ /**
1226
+ * Deletes a contact.
1227
+ *
1228
+ * @param request - DeleteContactRequest
1229
+ * @returns DeleteContactResponse
1230
+ */
1231
+ async deleteContact(request) {
1232
+ let runtime = new $dara.RuntimeOptions({});
1233
+ return await this.deleteContactWithOptions(request, runtime);
1234
+ }
1034
1235
  /**
1035
1236
  * Deletes a certificate signing request (CSR).
1036
1237
  *
@@ -1640,12 +1841,12 @@ class Client extends openapi_core_1.default {
1640
1841
  return await this.encryptWithOptions(request, runtime);
1641
1842
  }
1642
1843
  /**
1643
- * Queries the total number of certificate-related assets, such as websites and cloud resources.
1844
+ * Queries the number of assets.
1644
1845
  *
1645
1846
  * @remarks
1646
- * This API call queries the number of CA certificates that you have created, including root CA certificates and sub-CA certificates.
1647
- * ## QPS Limit
1648
- * 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.
1847
+ * Queries the number of CA certificates (including root CA certificates and subordinate CA certificates) that you have created.
1848
+ * ## QPS limit
1849
+ * 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.
1649
1850
  *
1650
1851
  * @param runtime - runtime options for this request RuntimeOptions
1651
1852
  * @returns GetAssetCountResponse
@@ -1666,12 +1867,12 @@ class Client extends openapi_core_1.default {
1666
1867
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetAssetCountResponse({}));
1667
1868
  }
1668
1869
  /**
1669
- * Queries the total number of certificate-related assets, such as websites and cloud resources.
1870
+ * Queries the number of assets.
1670
1871
  *
1671
1872
  * @remarks
1672
- * This API call queries the number of CA certificates that you have created, including root CA certificates and sub-CA certificates.
1673
- * ## QPS Limit
1674
- * 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.
1873
+ * Queries the number of CA certificates (including root CA certificates and subordinate CA certificates) that you have created.
1874
+ * ## QPS limit
1875
+ * 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.
1675
1876
  * @returns GetAssetCountResponse
1676
1877
  */
1677
1878
  async getAssetCount() {
@@ -1752,6 +1953,84 @@ class Client extends openapi_core_1.default {
1752
1953
  let runtime = new $dara.RuntimeOptions({});
1753
1954
  return await this.getCertificateDetailWithOptions(request, runtime);
1754
1955
  }
1956
+ /**
1957
+ * Retrieves the details of a company.
1958
+ *
1959
+ * @param request - GetCompanyRequest
1960
+ * @param runtime - runtime options for this request RuntimeOptions
1961
+ * @returns GetCompanyResponse
1962
+ */
1963
+ async getCompanyWithOptions(request, runtime) {
1964
+ request.validate();
1965
+ let query = {};
1966
+ if (!$dara.isNull(request.companyId)) {
1967
+ query["CompanyId"] = request.companyId;
1968
+ }
1969
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1970
+ query: openapi_core_2.OpenApiUtil.query(query),
1971
+ });
1972
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1973
+ action: "GetCompany",
1974
+ version: "2020-04-07",
1975
+ protocol: "HTTPS",
1976
+ pathname: "/",
1977
+ method: "POST",
1978
+ authType: "AK",
1979
+ style: "RPC",
1980
+ reqBodyType: "formData",
1981
+ bodyType: "json",
1982
+ });
1983
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetCompanyResponse({}));
1984
+ }
1985
+ /**
1986
+ * Retrieves the details of a company.
1987
+ *
1988
+ * @param request - GetCompanyRequest
1989
+ * @returns GetCompanyResponse
1990
+ */
1991
+ async getCompany(request) {
1992
+ let runtime = new $dara.RuntimeOptions({});
1993
+ return await this.getCompanyWithOptions(request, runtime);
1994
+ }
1995
+ /**
1996
+ * Retrieves a contact.
1997
+ *
1998
+ * @param request - GetContactRequest
1999
+ * @param runtime - runtime options for this request RuntimeOptions
2000
+ * @returns GetContactResponse
2001
+ */
2002
+ async getContactWithOptions(request, runtime) {
2003
+ request.validate();
2004
+ let query = {};
2005
+ if (!$dara.isNull(request.contactId)) {
2006
+ query["ContactId"] = request.contactId;
2007
+ }
2008
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2009
+ query: openapi_core_2.OpenApiUtil.query(query),
2010
+ });
2011
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2012
+ action: "GetContact",
2013
+ version: "2020-04-07",
2014
+ protocol: "HTTPS",
2015
+ pathname: "/",
2016
+ method: "POST",
2017
+ authType: "AK",
2018
+ style: "RPC",
2019
+ reqBodyType: "formData",
2020
+ bodyType: "json",
2021
+ });
2022
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetContactResponse({}));
2023
+ }
2024
+ /**
2025
+ * Retrieves a contact.
2026
+ *
2027
+ * @param request - GetContactRequest
2028
+ * @returns GetContactResponse
2029
+ */
2030
+ async getContact(request) {
2031
+ let runtime = new $dara.RuntimeOptions({});
2032
+ return await this.getContactWithOptions(request, runtime);
2033
+ }
1755
2034
  /**
1756
2035
  * Queries the content of a certificate signing request (CSR).
1757
2036
  *
@@ -2011,10 +2290,10 @@ class Client extends openapi_core_1.default {
2011
2290
  return await this.getTaskAttributeWithOptions(request, runtime);
2012
2291
  }
2013
2292
  /**
2014
- * 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.
2293
+ * 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.
2015
2294
  *
2016
2295
  * @remarks
2017
- * 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.
2296
+ * 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.
2018
2297
  *
2019
2298
  * @param request - GetUserCertificateDetailRequest
2020
2299
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2046,10 +2325,10 @@ class Client extends openapi_core_1.default {
2046
2325
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetUserCertificateDetailResponse({}));
2047
2326
  }
2048
2327
  /**
2049
- * 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.
2328
+ * 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.
2050
2329
  *
2051
2330
  * @remarks
2052
- * 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.
2331
+ * 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.
2053
2332
  *
2054
2333
  * @param request - GetUserCertificateDetailRequest
2055
2334
  * @returns GetUserCertificateDetailResponse
@@ -2059,12 +2338,12 @@ class Client extends openapi_core_1.default {
2059
2338
  return await this.getUserCertificateDetailWithOptions(request, runtime);
2060
2339
  }
2061
2340
  /**
2062
- * Queries the certificate deployment statistics by cloud service type.
2341
+ * Queries the resource statistics list of cloud services.
2063
2342
  *
2064
2343
  * @remarks
2065
- * Queries the number of created Certificate Authority (CA) certificates, including root and subordinate CA certificates.
2344
+ * Queries the number of CA certificates (including root CA certificates and subordinate CA certificates) that you have created.
2066
2345
  * ## QPS limit
2067
- * 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.
2346
+ * 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.
2068
2347
  *
2069
2348
  * @param request - ListAssetCountRequest
2070
2349
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2102,12 +2381,12 @@ class Client extends openapi_core_1.default {
2102
2381
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListAssetCountResponse({}));
2103
2382
  }
2104
2383
  /**
2105
- * Queries the certificate deployment statistics by cloud service type.
2384
+ * Queries the resource statistics list of cloud services.
2106
2385
  *
2107
2386
  * @remarks
2108
- * Queries the number of created Certificate Authority (CA) certificates, including root and subordinate CA certificates.
2387
+ * Queries the number of CA certificates (including root CA certificates and subordinate CA certificates) that you have created.
2109
2388
  * ## QPS limit
2110
- * 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.
2389
+ * 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.
2111
2390
  *
2112
2391
  * @param request - ListAssetCountRequest
2113
2392
  * @returns ListAssetCountResponse
@@ -2411,7 +2690,55 @@ class Client extends openapi_core_1.default {
2411
2690
  return await this.listCloudResourcesWithOptions(request, runtime);
2412
2691
  }
2413
2692
  /**
2414
- * Queries the contacts that receive certificate deployment notifications.
2693
+ * Retrieves a list of companies.
2694
+ *
2695
+ * @param request - ListCompaniesRequest
2696
+ * @param runtime - runtime options for this request RuntimeOptions
2697
+ * @returns ListCompaniesResponse
2698
+ */
2699
+ async listCompaniesWithOptions(request, runtime) {
2700
+ request.validate();
2701
+ let query = {};
2702
+ if (!$dara.isNull(request.companyId)) {
2703
+ query["CompanyId"] = request.companyId;
2704
+ }
2705
+ if (!$dara.isNull(request.currentPage)) {
2706
+ query["CurrentPage"] = request.currentPage;
2707
+ }
2708
+ if (!$dara.isNull(request.keyword)) {
2709
+ query["Keyword"] = request.keyword;
2710
+ }
2711
+ if (!$dara.isNull(request.showSize)) {
2712
+ query["ShowSize"] = request.showSize;
2713
+ }
2714
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
2715
+ query: openapi_core_2.OpenApiUtil.query(query),
2716
+ });
2717
+ let params = new openapi_core_2.$OpenApiUtil.Params({
2718
+ action: "ListCompanies",
2719
+ version: "2020-04-07",
2720
+ protocol: "HTTPS",
2721
+ pathname: "/",
2722
+ method: "POST",
2723
+ authType: "AK",
2724
+ style: "RPC",
2725
+ reqBodyType: "formData",
2726
+ bodyType: "json",
2727
+ });
2728
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListCompaniesResponse({}));
2729
+ }
2730
+ /**
2731
+ * Retrieves a list of companies.
2732
+ *
2733
+ * @param request - ListCompaniesRequest
2734
+ * @returns ListCompaniesResponse
2735
+ */
2736
+ async listCompanies(request) {
2737
+ let runtime = new $dara.RuntimeOptions({});
2738
+ return await this.listCompaniesWithOptions(request, runtime);
2739
+ }
2740
+ /**
2741
+ * Retrieves a list of contacts.
2415
2742
  *
2416
2743
  * @param request - ListContactRequest
2417
2744
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2446,7 +2773,7 @@ class Client extends openapi_core_1.default {
2446
2773
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListContactResponse({}));
2447
2774
  }
2448
2775
  /**
2449
- * Queries the contacts that receive certificate deployment notifications.
2776
+ * Retrieves a list of contacts.
2450
2777
  *
2451
2778
  * @param request - ListContactRequest
2452
2779
  * @returns ListContactResponse
@@ -2504,7 +2831,7 @@ class Client extends openapi_core_1.default {
2504
2831
  return await this.listCsrWithOptions(request, runtime);
2505
2832
  }
2506
2833
  /**
2507
- * Queries the certificate deployment tasks that are created in your account.
2834
+ * Retrieves a list of deployment tasks after you create a deployment task.
2508
2835
  *
2509
2836
  * @param request - ListDeploymentJobRequest
2510
2837
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2542,7 +2869,7 @@ class Client extends openapi_core_1.default {
2542
2869
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListDeploymentJobResponse({}));
2543
2870
  }
2544
2871
  /**
2545
- * Queries the certificate deployment tasks that are created in your account.
2872
+ * Retrieves a list of deployment tasks after you create a deployment task.
2546
2873
  *
2547
2874
  * @param request - ListDeploymentJobRequest
2548
2875
  * @returns ListDeploymentJobResponse
@@ -2693,12 +3020,12 @@ class Client extends openapi_core_1.default {
2693
3020
  return await this.listInstancesWithOptions(request, runtime);
2694
3021
  }
2695
3022
  /**
2696
- * Queries the SSL certificates and certificate orders in your account.
3023
+ * Queries the list of user certificates or orders.
2697
3024
  *
2698
3025
  * @remarks
2699
- * 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.
3026
+ * 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.
2700
3027
  * ## QPS limit
2701
- * 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.
3028
+ * 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.
2702
3029
  *
2703
3030
  * @param request - ListUserCertificateOrderRequest
2704
3031
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2742,12 +3069,12 @@ class Client extends openapi_core_1.default {
2742
3069
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListUserCertificateOrderResponse({}));
2743
3070
  }
2744
3071
  /**
2745
- * Queries the SSL certificates and certificate orders in your account.
3072
+ * Queries the list of user certificates or orders.
2746
3073
  *
2747
3074
  * @remarks
2748
- * 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.
3075
+ * 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.
2749
3076
  * ## QPS limit
2750
- * 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.
3077
+ * 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.
2751
3078
  *
2752
3079
  * @param request - ListUserCertificateOrderRequest
2753
3080
  * @returns ListUserCertificateOrderResponse
@@ -2922,7 +3249,7 @@ class Client extends openapi_core_1.default {
2922
3249
  return await this.moveResourceGroupWithOptions(request, runtime);
2923
3250
  }
2924
3251
  /**
2925
- * Refunds a Certificate Management Service instance if the refund is requested within seven days of purchase.
3252
+ * Refunds an instance within 7 days.
2926
3253
  *
2927
3254
  * @param request - RefundInstanceRequest
2928
3255
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2951,7 +3278,7 @@ class Client extends openapi_core_1.default {
2951
3278
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.RefundInstanceResponse({}));
2952
3279
  }
2953
3280
  /**
2954
- * Refunds a Certificate Management Service instance if the refund is requested within seven days of purchase.
3281
+ * Refunds an instance within 7 days.
2955
3282
  *
2956
3283
  * @param request - RefundInstanceRequest
2957
3284
  * @returns RefundInstanceResponse
@@ -3165,7 +3492,136 @@ class Client extends openapi_core_1.default {
3165
3492
  return await this.signWithOptions(request, runtime);
3166
3493
  }
3167
3494
  /**
3168
- * Updates the private key associated with a certificate signing request (CSR).
3495
+ * Updates company information.
3496
+ *
3497
+ * @param request - UpdateCompanyRequest
3498
+ * @param runtime - runtime options for this request RuntimeOptions
3499
+ * @returns UpdateCompanyResponse
3500
+ */
3501
+ async updateCompanyWithOptions(request, runtime) {
3502
+ request.validate();
3503
+ let query = {};
3504
+ if (!$dara.isNull(request.city)) {
3505
+ query["City"] = request.city;
3506
+ }
3507
+ if (!$dara.isNull(request.companyAddress)) {
3508
+ query["CompanyAddress"] = request.companyAddress;
3509
+ }
3510
+ if (!$dara.isNull(request.companyCode)) {
3511
+ query["CompanyCode"] = request.companyCode;
3512
+ }
3513
+ if (!$dara.isNull(request.companyEmail)) {
3514
+ query["CompanyEmail"] = request.companyEmail;
3515
+ }
3516
+ if (!$dara.isNull(request.companyId)) {
3517
+ query["CompanyId"] = request.companyId;
3518
+ }
3519
+ if (!$dara.isNull(request.companyName)) {
3520
+ query["CompanyName"] = request.companyName;
3521
+ }
3522
+ if (!$dara.isNull(request.companyPhone)) {
3523
+ query["CompanyPhone"] = request.companyPhone;
3524
+ }
3525
+ if (!$dara.isNull(request.companyType)) {
3526
+ query["CompanyType"] = request.companyType;
3527
+ }
3528
+ if (!$dara.isNull(request.countryCode)) {
3529
+ query["CountryCode"] = request.countryCode;
3530
+ }
3531
+ if (!$dara.isNull(request.department)) {
3532
+ query["Department"] = request.department;
3533
+ }
3534
+ if (!$dara.isNull(request.lang)) {
3535
+ query["Lang"] = request.lang;
3536
+ }
3537
+ if (!$dara.isNull(request.postCode)) {
3538
+ query["PostCode"] = request.postCode;
3539
+ }
3540
+ if (!$dara.isNull(request.province)) {
3541
+ query["Province"] = request.province;
3542
+ }
3543
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3544
+ query: openapi_core_2.OpenApiUtil.query(query),
3545
+ });
3546
+ let params = new openapi_core_2.$OpenApiUtil.Params({
3547
+ action: "UpdateCompany",
3548
+ version: "2020-04-07",
3549
+ protocol: "HTTPS",
3550
+ pathname: "/",
3551
+ method: "POST",
3552
+ authType: "AK",
3553
+ style: "RPC",
3554
+ reqBodyType: "formData",
3555
+ bodyType: "json",
3556
+ });
3557
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateCompanyResponse({}));
3558
+ }
3559
+ /**
3560
+ * Updates company information.
3561
+ *
3562
+ * @param request - UpdateCompanyRequest
3563
+ * @returns UpdateCompanyResponse
3564
+ */
3565
+ async updateCompany(request) {
3566
+ let runtime = new $dara.RuntimeOptions({});
3567
+ return await this.updateCompanyWithOptions(request, runtime);
3568
+ }
3569
+ /**
3570
+ * Updates a contact.
3571
+ *
3572
+ * @param request - UpdateContactRequest
3573
+ * @param runtime - runtime options for this request RuntimeOptions
3574
+ * @returns UpdateContactResponse
3575
+ */
3576
+ async updateContactWithOptions(request, runtime) {
3577
+ request.validate();
3578
+ let query = {};
3579
+ if (!$dara.isNull(request.contactId)) {
3580
+ query["ContactId"] = request.contactId;
3581
+ }
3582
+ if (!$dara.isNull(request.email)) {
3583
+ query["Email"] = request.email;
3584
+ }
3585
+ if (!$dara.isNull(request.idcard)) {
3586
+ query["Idcard"] = request.idcard;
3587
+ }
3588
+ if (!$dara.isNull(request.mobile)) {
3589
+ query["Mobile"] = request.mobile;
3590
+ }
3591
+ if (!$dara.isNull(request.name)) {
3592
+ query["Name"] = request.name;
3593
+ }
3594
+ if (!$dara.isNull(request.webhooks)) {
3595
+ query["Webhooks"] = request.webhooks;
3596
+ }
3597
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
3598
+ query: openapi_core_2.OpenApiUtil.query(query),
3599
+ });
3600
+ let params = new openapi_core_2.$OpenApiUtil.Params({
3601
+ action: "UpdateContact",
3602
+ version: "2020-04-07",
3603
+ protocol: "HTTPS",
3604
+ pathname: "/",
3605
+ method: "POST",
3606
+ authType: "AK",
3607
+ style: "RPC",
3608
+ reqBodyType: "formData",
3609
+ bodyType: "json",
3610
+ });
3611
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateContactResponse({}));
3612
+ }
3613
+ /**
3614
+ * Updates a contact.
3615
+ *
3616
+ * @param request - UpdateContactRequest
3617
+ * @returns UpdateContactResponse
3618
+ */
3619
+ async updateContact(request) {
3620
+ let runtime = new $dara.RuntimeOptions({});
3621
+ return await this.updateContactWithOptions(request, runtime);
3622
+ }
3623
+ /**
3624
+ * Uploads the private key corresponding to a CSR if the private key was not provided when the local CSR was uploaded.
3169
3625
  *
3170
3626
  * @param request - UpdateCsrRequest
3171
3627
  * @param runtime - runtime options for this request RuntimeOptions
@@ -3197,7 +3653,7 @@ class Client extends openapi_core_1.default {
3197
3653
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateCsrResponse({}));
3198
3654
  }
3199
3655
  /**
3200
- * Updates the private key associated with a certificate signing request (CSR).
3656
+ * Uploads the private key corresponding to a CSR if the private key was not provided when the local CSR was uploaded.
3201
3657
  *
3202
3658
  * @param request - UpdateCsrRequest
3203
3659
  * @returns UpdateCsrResponse