@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.
- package/dist/client.d.ts +171 -36
- package/dist/client.js +492 -36
- package/dist/client.js.map +1 -1
- package/dist/models/ApplyCertificateRequest.d.ts +1 -1
- package/dist/models/CancelPendingCertificateResponseBody.d.ts +1 -1
- package/dist/models/CreateCompanyRequest.d.ts +129 -0
- package/dist/models/CreateCompanyRequest.js +80 -0
- package/dist/models/CreateCompanyRequest.js.map +1 -0
- package/dist/models/CreateCompanyResponse.d.ts +19 -0
- package/dist/models/CreateCompanyResponse.js +69 -0
- package/dist/models/CreateCompanyResponse.js.map +1 -0
- package/dist/models/CreateCompanyResponseBody.d.ts +29 -0
- package/dist/models/CreateCompanyResponseBody.js +60 -0
- package/dist/models/CreateCompanyResponseBody.js.map +1 -0
- package/dist/models/CreateContactRequest.d.ts +57 -0
- package/dist/models/CreateContactRequest.js +66 -0
- package/dist/models/CreateContactRequest.js.map +1 -0
- package/dist/models/CreateContactResponse.d.ts +19 -0
- package/dist/models/CreateContactResponse.js +69 -0
- package/dist/models/CreateContactResponse.js.map +1 -0
- package/dist/models/CreateContactResponseBody.d.ts +29 -0
- package/dist/models/CreateContactResponseBody.js +60 -0
- package/dist/models/CreateContactResponseBody.js.map +1 -0
- package/dist/models/DeleteCompanyRequest.d.ts +23 -0
- package/dist/models/DeleteCompanyRequest.js +58 -0
- package/dist/models/DeleteCompanyRequest.js.map +1 -0
- package/dist/models/DeleteCompanyResponse.d.ts +19 -0
- package/dist/models/DeleteCompanyResponse.js +69 -0
- package/dist/models/DeleteCompanyResponse.js.map +1 -0
- package/dist/models/DeleteCompanyResponseBody.d.ts +21 -0
- package/dist/models/DeleteCompanyResponseBody.js +58 -0
- package/dist/models/DeleteCompanyResponseBody.js.map +1 -0
- package/dist/models/DeleteContactRequest.d.ts +23 -0
- package/dist/models/DeleteContactRequest.js +58 -0
- package/dist/models/DeleteContactRequest.js.map +1 -0
- package/dist/models/DeleteContactResponse.d.ts +19 -0
- package/dist/models/DeleteContactResponse.js +69 -0
- package/dist/models/DeleteContactResponse.js.map +1 -0
- package/dist/models/DeleteContactResponseBody.d.ts +21 -0
- package/dist/models/DeleteContactResponseBody.js +58 -0
- package/dist/models/DeleteContactResponseBody.js.map +1 -0
- package/dist/models/GetAssetCountResponseBody.d.ts +13 -13
- package/dist/models/GetCompanyRequest.d.ts +23 -0
- package/dist/models/GetCompanyRequest.js +58 -0
- package/dist/models/GetCompanyRequest.js.map +1 -0
- package/dist/models/GetCompanyResponse.d.ts +19 -0
- package/dist/models/GetCompanyResponse.js +69 -0
- package/dist/models/GetCompanyResponse.js.map +1 -0
- package/dist/models/GetCompanyResponseBody.d.ts +125 -0
- package/dist/models/GetCompanyResponseBody.js +84 -0
- package/dist/models/GetCompanyResponseBody.js.map +1 -0
- package/dist/models/GetContactRequest.d.ts +21 -0
- package/dist/models/GetContactRequest.js +58 -0
- package/dist/models/GetContactRequest.js.map +1 -0
- package/dist/models/GetContactResponse.d.ts +19 -0
- package/dist/models/GetContactResponse.js +69 -0
- package/dist/models/GetContactResponse.js.map +1 -0
- package/dist/models/GetContactResponseBody.d.ts +85 -0
- package/dist/models/GetContactResponseBody.js +74 -0
- package/dist/models/GetContactResponseBody.js.map +1 -0
- package/dist/models/GetInstanceDetailResponseBody.d.ts +12 -12
- package/dist/models/GetUserCertificateDetailRequest.d.ts +7 -2
- package/dist/models/GetUserCertificateDetailRequest.js.map +1 -1
- package/dist/models/GetUserCertificateDetailResponseBody.d.ts +37 -35
- package/dist/models/GetUserCertificateDetailResponseBody.js.map +1 -1
- package/dist/models/ListAssetCountRequest.d.ts +5 -5
- package/dist/models/ListAssetCountResponseBody.d.ts +6 -6
- package/dist/models/ListCompaniesRequest.d.ts +45 -0
- package/dist/models/ListCompaniesRequest.js +64 -0
- package/dist/models/ListCompaniesRequest.js.map +1 -0
- package/dist/models/ListCompaniesResponse.d.ts +19 -0
- package/dist/models/ListCompaniesResponse.js +69 -0
- package/dist/models/ListCompaniesResponse.js.map +1 -0
- package/dist/models/ListCompaniesResponseBody.d.ts +166 -0
- package/dist/models/ListCompaniesResponseBody.js +112 -0
- package/dist/models/ListCompaniesResponseBody.js.map +1 -0
- package/dist/models/ListContactRequest.d.ts +3 -3
- package/dist/models/ListContactResponseBody.d.ts +12 -12
- package/dist/models/ListDeploymentJobRequest.d.ts +3 -23
- package/dist/models/ListDeploymentJobRequest.js.map +1 -1
- package/dist/models/ListDeploymentJobResponseBody.d.ts +29 -39
- package/dist/models/ListDeploymentJobResponseBody.js.map +1 -1
- package/dist/models/ListInstancesRequest.d.ts +7 -5
- package/dist/models/ListInstancesRequest.js.map +1 -1
- package/dist/models/ListInstancesResponseBody.d.ts +23 -14
- package/dist/models/ListInstancesResponseBody.js.map +1 -1
- package/dist/models/ListUserCertificateOrderRequest.d.ts +20 -30
- package/dist/models/ListUserCertificateOrderRequest.js.map +1 -1
- package/dist/models/ListUserCertificateOrderResponseBody.d.ts +59 -76
- package/dist/models/ListUserCertificateOrderResponseBody.js.map +1 -1
- package/dist/models/RefundInstanceRequest.d.ts +1 -1
- package/dist/models/RefundInstanceResponseBody.d.ts +1 -1
- package/dist/models/RevokeCertificateResponseBody.d.ts +1 -1
- package/dist/models/UpdateCompanyRequest.d.ts +137 -0
- package/dist/models/UpdateCompanyRequest.js +82 -0
- package/dist/models/UpdateCompanyRequest.js.map +1 -0
- package/dist/models/UpdateCompanyResponse.d.ts +19 -0
- package/dist/models/UpdateCompanyResponse.js +69 -0
- package/dist/models/UpdateCompanyResponse.js.map +1 -0
- package/dist/models/UpdateCompanyResponseBody.d.ts +29 -0
- package/dist/models/UpdateCompanyResponseBody.js +60 -0
- package/dist/models/UpdateCompanyResponseBody.js.map +1 -0
- package/dist/models/UpdateContactRequest.d.ts +63 -0
- package/dist/models/UpdateContactRequest.js +68 -0
- package/dist/models/UpdateContactRequest.js.map +1 -0
- package/dist/models/UpdateContactResponse.d.ts +19 -0
- package/dist/models/UpdateContactResponse.js +69 -0
- package/dist/models/UpdateContactResponse.js.map +1 -0
- package/dist/models/UpdateContactResponseBody.d.ts +29 -0
- package/dist/models/UpdateContactResponseBody.js +60 -0
- package/dist/models/UpdateContactResponseBody.js.map +1 -0
- package/dist/models/UpdateCsrRequest.d.ts +2 -2
- package/dist/models/UpdateCsrResponseBody.d.ts +1 -1
- package/dist/models/model.d.ts +28 -0
- package/dist/models/model.js +62 -5
- package/dist/models/model.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +554 -36
- package/src/models/ApplyCertificateRequest.ts +1 -1
- package/src/models/CancelPendingCertificateResponseBody.ts +1 -1
- package/src/models/CreateCompanyRequest.ts +164 -0
- package/src/models/CreateCompanyResponse.ts +40 -0
- package/src/models/CreateCompanyResponseBody.ts +44 -0
- package/src/models/CreateContactRequest.ts +78 -0
- package/src/models/CreateContactResponse.ts +40 -0
- package/src/models/CreateContactResponseBody.ts +44 -0
- package/src/models/DeleteCompanyRequest.ts +36 -0
- package/src/models/DeleteCompanyResponse.ts +40 -0
- package/src/models/DeleteCompanyResponseBody.ts +34 -0
- package/src/models/DeleteContactRequest.ts +36 -0
- package/src/models/DeleteContactResponse.ts +40 -0
- package/src/models/DeleteContactResponseBody.ts +34 -0
- package/src/models/GetAssetCountResponseBody.ts +13 -13
- package/src/models/GetCompanyRequest.ts +36 -0
- package/src/models/GetCompanyResponse.ts +40 -0
- package/src/models/GetCompanyResponseBody.ts +164 -0
- package/src/models/GetContactRequest.ts +34 -0
- package/src/models/GetContactResponse.ts +40 -0
- package/src/models/GetContactResponseBody.ts +114 -0
- package/src/models/GetInstanceDetailResponseBody.ts +12 -12
- package/src/models/GetUserCertificateDetailRequest.ts +7 -2
- package/src/models/GetUserCertificateDetailResponseBody.ts +37 -35
- package/src/models/ListAssetCountRequest.ts +5 -5
- package/src/models/ListAssetCountResponseBody.ts +6 -6
- package/src/models/ListCompaniesRequest.ts +64 -0
- package/src/models/ListCompaniesResponse.ts +40 -0
- package/src/models/ListCompaniesResponseBody.ts +224 -0
- package/src/models/ListContactRequest.ts +3 -3
- package/src/models/ListContactResponseBody.ts +12 -12
- package/src/models/ListDeploymentJobRequest.ts +3 -23
- package/src/models/ListDeploymentJobResponseBody.ts +29 -39
- package/src/models/ListInstancesRequest.ts +7 -5
- package/src/models/ListInstancesResponseBody.ts +23 -14
- package/src/models/ListUserCertificateOrderRequest.ts +20 -30
- package/src/models/ListUserCertificateOrderResponseBody.ts +59 -76
- package/src/models/RefundInstanceRequest.ts +1 -1
- package/src/models/RefundInstanceResponseBody.ts +1 -1
- package/src/models/RevokeCertificateResponseBody.ts +1 -1
- package/src/models/UpdateCompanyRequest.ts +174 -0
- package/src/models/UpdateCompanyResponse.ts +40 -0
- package/src/models/UpdateCompanyResponseBody.ts +44 -0
- package/src/models/UpdateContactRequest.ts +86 -0
- package/src/models/UpdateContactResponse.ts +40 -0
- package/src/models/UpdateContactResponseBody.ts +44 -0
- package/src/models/UpdateCsrRequest.ts +2 -2
- package/src/models/UpdateCsrResponseBody.ts +1 -1
- 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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
|
1998
|
+
* Queries the number of assets.
|
|
1771
1999
|
*
|
|
1772
2000
|
* @remarks
|
|
1773
|
-
*
|
|
1774
|
-
* ## QPS
|
|
1775
|
-
*
|
|
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
|
|
2025
|
+
* Queries the number of assets.
|
|
1798
2026
|
*
|
|
1799
2027
|
* @remarks
|
|
1800
|
-
*
|
|
1801
|
-
* ## QPS
|
|
1802
|
-
*
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
2533
|
+
* Queries the resource statistics list of cloud services.
|
|
2222
2534
|
*
|
|
2223
2535
|
* @remarks
|
|
2224
|
-
* Queries the number of
|
|
2536
|
+
* Queries the number of CA certificates (including root CA certificates and subordinate CA certificates) that you have created.
|
|
2225
2537
|
* ## QPS limit
|
|
2226
|
-
*
|
|
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
|
|
2581
|
+
* Queries the resource statistics list of cloud services.
|
|
2270
2582
|
*
|
|
2271
2583
|
* @remarks
|
|
2272
|
-
* Queries the number of
|
|
2584
|
+
* Queries the number of CA certificates (including root CA certificates and subordinate CA certificates) that you have created.
|
|
2273
2585
|
* ## QPS limit
|
|
2274
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
|
3303
|
+
* Queries the list of user certificates or orders.
|
|
2938
3304
|
*
|
|
2939
3305
|
* @remarks
|
|
2940
|
-
* This operation
|
|
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
|
|
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
|
|
3359
|
+
* Queries the list of user certificates or orders.
|
|
2994
3360
|
*
|
|
2995
3361
|
* @remarks
|
|
2996
|
-
* This operation
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
*
|
|
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
|