@alicloud/cas20200407 3.1.0 → 3.2.2
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 +204 -12
- package/dist/client.js +576 -12
- package/dist/client.js.map +1 -1
- package/dist/models/AddCloudAccessRequest.d.ts +28 -0
- package/dist/models/AddCloudAccessRequest.js +62 -0
- package/dist/models/AddCloudAccessRequest.js.map +1 -0
- package/dist/models/AddCloudAccessResponse.d.ts +19 -0
- package/dist/models/AddCloudAccessResponse.js +69 -0
- package/dist/models/AddCloudAccessResponse.js.map +1 -0
- package/dist/models/AddCloudAccessResponseBody.d.ts +21 -0
- package/dist/models/AddCloudAccessResponseBody.js +58 -0
- package/dist/models/AddCloudAccessResponseBody.js.map +1 -0
- package/dist/models/CreateWarehouseRequest.d.ts +28 -0
- package/dist/models/CreateWarehouseRequest.js +62 -0
- package/dist/models/CreateWarehouseRequest.js.map +1 -0
- package/dist/models/CreateWarehouseResponse.d.ts +19 -0
- package/dist/models/CreateWarehouseResponse.js +69 -0
- package/dist/models/CreateWarehouseResponse.js.map +1 -0
- package/dist/models/CreateWarehouseResponseBody.d.ts +23 -0
- package/dist/models/CreateWarehouseResponseBody.js +60 -0
- package/dist/models/CreateWarehouseResponseBody.js.map +1 -0
- package/dist/models/CreateWhclientCertificateRequest.d.ts +97 -0
- package/dist/models/CreateWhclientCertificateRequest.js +90 -0
- package/dist/models/CreateWhclientCertificateRequest.js.map +1 -0
- package/dist/models/CreateWhclientCertificateResponse.d.ts +19 -0
- package/dist/models/CreateWhclientCertificateResponse.js +69 -0
- package/dist/models/CreateWhclientCertificateResponse.js.map +1 -0
- package/dist/models/CreateWhclientCertificateResponseBody.d.ts +43 -0
- package/dist/models/CreateWhclientCertificateResponseBody.js +68 -0
- package/dist/models/CreateWhclientCertificateResponseBody.js.map +1 -0
- package/dist/models/DeleteCloudAccessRequest.d.ts +18 -0
- package/dist/models/DeleteCloudAccessRequest.js +58 -0
- package/dist/models/DeleteCloudAccessRequest.js.map +1 -0
- package/dist/models/DeleteCloudAccessResponse.d.ts +19 -0
- package/dist/models/DeleteCloudAccessResponse.js +69 -0
- package/dist/models/DeleteCloudAccessResponse.js.map +1 -0
- package/dist/models/DeleteCloudAccessResponseBody.d.ts +21 -0
- package/dist/models/DeleteCloudAccessResponseBody.js +58 -0
- package/dist/models/DeleteCloudAccessResponseBody.js.map +1 -0
- package/dist/models/DeleteWarehouseRequest.d.ts +18 -0
- package/dist/models/DeleteWarehouseRequest.js +58 -0
- package/dist/models/DeleteWarehouseRequest.js.map +1 -0
- package/dist/models/DeleteWarehouseResponse.d.ts +19 -0
- package/dist/models/DeleteWarehouseResponse.js +69 -0
- package/dist/models/DeleteWarehouseResponse.js.map +1 -0
- package/dist/models/DeleteWarehouseResponseBody.d.ts +18 -0
- package/dist/models/DeleteWarehouseResponseBody.js +58 -0
- package/dist/models/DeleteWarehouseResponseBody.js.map +1 -0
- package/dist/models/DescribeWarehouseCertRequest.d.ts +18 -0
- package/dist/models/DescribeWarehouseCertRequest.js +58 -0
- package/dist/models/DescribeWarehouseCertRequest.js.map +1 -0
- package/dist/models/DescribeWarehouseCertResponse.d.ts +19 -0
- package/dist/models/DescribeWarehouseCertResponse.js +69 -0
- package/dist/models/DescribeWarehouseCertResponse.js.map +1 -0
- package/dist/models/DescribeWarehouseCertResponseBody.d.ts +73 -0
- package/dist/models/DescribeWarehouseCertResponseBody.js +80 -0
- package/dist/models/DescribeWarehouseCertResponseBody.js.map +1 -0
- package/dist/models/GetAssetCountResponse.d.ts +19 -0
- package/dist/models/GetAssetCountResponse.js +69 -0
- package/dist/models/GetAssetCountResponse.js.map +1 -0
- package/dist/models/GetAssetCountResponseBody.d.ts +30 -0
- package/dist/models/GetAssetCountResponseBody.js +82 -0
- package/dist/models/GetAssetCountResponseBody.js.map +1 -0
- package/dist/models/GetRiskCountResponse.d.ts +19 -0
- package/dist/models/GetRiskCountResponse.js +69 -0
- package/dist/models/GetRiskCountResponse.js.map +1 -0
- package/dist/models/GetRiskCountResponseBody.d.ts +36 -0
- package/dist/models/GetRiskCountResponseBody.js +94 -0
- package/dist/models/GetRiskCountResponseBody.js.map +1 -0
- package/dist/models/ListAssetCountRequest.d.ts +33 -0
- package/dist/models/ListAssetCountRequest.js +64 -0
- package/dist/models/ListAssetCountRequest.js.map +1 -0
- package/dist/models/ListAssetCountResponse.d.ts +19 -0
- package/dist/models/ListAssetCountResponse.js +69 -0
- package/dist/models/ListAssetCountResponse.js.map +1 -0
- package/dist/models/ListAssetCountResponseBody.d.ts +76 -0
- package/dist/models/ListAssetCountResponseBody.js +98 -0
- package/dist/models/ListAssetCountResponseBody.js.map +1 -0
- package/dist/models/ListCertRequest.d.ts +1 -0
- package/dist/models/ListCertRequest.js +2 -0
- package/dist/models/ListCertRequest.js.map +1 -1
- package/dist/models/ListWarehouseRequest.d.ts +33 -0
- package/dist/models/ListWarehouseRequest.js +70 -0
- package/dist/models/ListWarehouseRequest.js.map +1 -0
- package/dist/models/ListWarehouseResponse.d.ts +19 -0
- package/dist/models/ListWarehouseResponse.js +69 -0
- package/dist/models/ListWarehouseResponse.js.map +1 -0
- package/dist/models/ListWarehouseResponseBody.d.ts +61 -0
- package/dist/models/ListWarehouseResponseBody.js +92 -0
- package/dist/models/ListWarehouseResponseBody.js.map +1 -0
- package/dist/models/ListWarehouseShrinkRequest.d.ts +33 -0
- package/dist/models/ListWarehouseShrinkRequest.js +64 -0
- package/dist/models/ListWarehouseShrinkRequest.js.map +1 -0
- package/dist/models/RevokeWhclientCertificateRequest.d.ts +23 -0
- package/dist/models/RevokeWhclientCertificateRequest.js +58 -0
- package/dist/models/RevokeWhclientCertificateRequest.js.map +1 -0
- package/dist/models/RevokeWhclientCertificateResponse.d.ts +19 -0
- package/dist/models/RevokeWhclientCertificateResponse.js +69 -0
- package/dist/models/RevokeWhclientCertificateResponse.js.map +1 -0
- package/dist/models/RevokeWhclientCertificateResponseBody.d.ts +21 -0
- package/dist/models/RevokeWhclientCertificateResponseBody.js +58 -0
- package/dist/models/RevokeWhclientCertificateResponseBody.js.map +1 -0
- package/dist/models/UploadPcacertRequest.d.ts +53 -0
- package/dist/models/UploadPcacertRequest.js +64 -0
- package/dist/models/UploadPcacertRequest.js.map +1 -0
- package/dist/models/UploadPcacertResponse.d.ts +19 -0
- package/dist/models/UploadPcacertResponse.js +69 -0
- package/dist/models/UploadPcacertResponse.js.map +1 -0
- package/dist/models/UploadPcacertResponseBody.d.ts +26 -0
- package/dist/models/UploadPcacertResponseBody.js +60 -0
- package/dist/models/UploadPcacertResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +37 -0
- package/dist/models/model.js +79 -4
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +642 -12
- package/src/models/AddCloudAccessRequest.ts +45 -0
- package/src/models/AddCloudAccessResponse.ts +40 -0
- package/src/models/AddCloudAccessResponseBody.ts +34 -0
- package/src/models/CreateWarehouseRequest.ts +45 -0
- package/src/models/CreateWarehouseResponse.ts +40 -0
- package/src/models/CreateWarehouseResponseBody.ts +38 -0
- package/src/models/CreateWhclientCertificateRequest.ts +142 -0
- package/src/models/CreateWhclientCertificateResponse.ts +40 -0
- package/src/models/CreateWhclientCertificateResponseBody.ts +66 -0
- package/src/models/DeleteCloudAccessRequest.ts +31 -0
- package/src/models/DeleteCloudAccessResponse.ts +40 -0
- package/src/models/DeleteCloudAccessResponseBody.ts +34 -0
- package/src/models/DeleteWarehouseRequest.ts +31 -0
- package/src/models/DeleteWarehouseResponse.ts +40 -0
- package/src/models/DeleteWarehouseResponseBody.ts +31 -0
- package/src/models/DescribeWarehouseCertRequest.ts +31 -0
- package/src/models/DescribeWarehouseCertResponse.ts +40 -0
- package/src/models/DescribeWarehouseCertResponseBody.ts +108 -0
- package/src/models/GetAssetCountResponse.ts +40 -0
- package/src/models/GetAssetCountResponseBody.ts +67 -0
- package/src/models/GetRiskCountResponse.ts +40 -0
- package/src/models/GetRiskCountResponseBody.ts +85 -0
- package/src/models/ListAssetCountRequest.ts +52 -0
- package/src/models/ListAssetCountResponse.ts +40 -0
- package/src/models/ListAssetCountResponseBody.ts +120 -0
- package/src/models/ListCertRequest.ts +3 -0
- package/src/models/ListWarehouseRequest.ts +58 -0
- package/src/models/ListWarehouseResponse.ts +40 -0
- package/src/models/ListWarehouseResponseBody.ts +99 -0
- package/src/models/ListWarehouseShrinkRequest.ts +52 -0
- package/src/models/RevokeWhclientCertificateRequest.ts +36 -0
- package/src/models/RevokeWhclientCertificateResponse.ts +40 -0
- package/src/models/RevokeWhclientCertificateResponseBody.ts +34 -0
- package/src/models/UploadPcacertRequest.ts +72 -0
- package/src/models/UploadPcacertResponse.ts +40 -0
- package/src/models/UploadPcacertResponseBody.ts +41 -0
- package/src/models/model.ts +37 -0
package/dist/client.js
CHANGED
|
@@ -114,6 +114,51 @@ class Client extends openapi_core_1.default {
|
|
|
114
114
|
}
|
|
115
115
|
return openapi_core_2.OpenApiUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
116
116
|
}
|
|
117
|
+
/**
|
|
118
|
+
* 添加授权ak
|
|
119
|
+
*
|
|
120
|
+
* @param request - AddCloudAccessRequest
|
|
121
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
122
|
+
* @returns AddCloudAccessResponse
|
|
123
|
+
*/
|
|
124
|
+
async addCloudAccessWithOptions(request, runtime) {
|
|
125
|
+
request.validate();
|
|
126
|
+
let query = {};
|
|
127
|
+
if (!$dara.isNull(request.cloudName)) {
|
|
128
|
+
query["CloudName"] = request.cloudName;
|
|
129
|
+
}
|
|
130
|
+
if (!$dara.isNull(request.secretId)) {
|
|
131
|
+
query["SecretId"] = request.secretId;
|
|
132
|
+
}
|
|
133
|
+
if (!$dara.isNull(request.secretKey)) {
|
|
134
|
+
query["SecretKey"] = request.secretKey;
|
|
135
|
+
}
|
|
136
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
137
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
138
|
+
});
|
|
139
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
140
|
+
action: "AddCloudAccess",
|
|
141
|
+
version: "2020-04-07",
|
|
142
|
+
protocol: "HTTPS",
|
|
143
|
+
pathname: "/",
|
|
144
|
+
method: "POST",
|
|
145
|
+
authType: "AK",
|
|
146
|
+
style: "RPC",
|
|
147
|
+
reqBodyType: "formData",
|
|
148
|
+
bodyType: "json",
|
|
149
|
+
});
|
|
150
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.AddCloudAccessResponse({}));
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* 添加授权ak
|
|
154
|
+
*
|
|
155
|
+
* @param request - AddCloudAccessRequest
|
|
156
|
+
* @returns AddCloudAccessResponse
|
|
157
|
+
*/
|
|
158
|
+
async addCloudAccess(request) {
|
|
159
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
160
|
+
return await this.addCloudAccessWithOptions(request, runtime);
|
|
161
|
+
}
|
|
117
162
|
/**
|
|
118
163
|
* 申请证书
|
|
119
164
|
*
|
|
@@ -619,6 +664,138 @@ class Client extends openapi_core_1.default {
|
|
|
619
664
|
let runtime = new $dara.RuntimeOptions({});
|
|
620
665
|
return await this.createDeploymentJobWithOptions(request, runtime);
|
|
621
666
|
}
|
|
667
|
+
/**
|
|
668
|
+
* Applies for a client certificate in a certificate repository of a single user.
|
|
669
|
+
*
|
|
670
|
+
* @param request - CreateWHClientCertificateRequest
|
|
671
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
672
|
+
* @returns CreateWHClientCertificateResponse
|
|
673
|
+
*/
|
|
674
|
+
async createWHClientCertificateWithOptions(request, runtime) {
|
|
675
|
+
request.validate();
|
|
676
|
+
let query = {};
|
|
677
|
+
if (!$dara.isNull(request.afterTime)) {
|
|
678
|
+
query["AfterTime"] = request.afterTime;
|
|
679
|
+
}
|
|
680
|
+
if (!$dara.isNull(request.algorithm)) {
|
|
681
|
+
query["Algorithm"] = request.algorithm;
|
|
682
|
+
}
|
|
683
|
+
if (!$dara.isNull(request.beforeTime)) {
|
|
684
|
+
query["BeforeTime"] = request.beforeTime;
|
|
685
|
+
}
|
|
686
|
+
if (!$dara.isNull(request.commonName)) {
|
|
687
|
+
query["CommonName"] = request.commonName;
|
|
688
|
+
}
|
|
689
|
+
if (!$dara.isNull(request.country)) {
|
|
690
|
+
query["Country"] = request.country;
|
|
691
|
+
}
|
|
692
|
+
if (!$dara.isNull(request.csr)) {
|
|
693
|
+
query["Csr"] = request.csr;
|
|
694
|
+
}
|
|
695
|
+
if (!$dara.isNull(request.days)) {
|
|
696
|
+
query["Days"] = request.days;
|
|
697
|
+
}
|
|
698
|
+
if (!$dara.isNull(request.immediately)) {
|
|
699
|
+
query["Immediately"] = request.immediately;
|
|
700
|
+
}
|
|
701
|
+
if (!$dara.isNull(request.locality)) {
|
|
702
|
+
query["Locality"] = request.locality;
|
|
703
|
+
}
|
|
704
|
+
if (!$dara.isNull(request.months)) {
|
|
705
|
+
query["Months"] = request.months;
|
|
706
|
+
}
|
|
707
|
+
if (!$dara.isNull(request.organization)) {
|
|
708
|
+
query["Organization"] = request.organization;
|
|
709
|
+
}
|
|
710
|
+
if (!$dara.isNull(request.organizationUnit)) {
|
|
711
|
+
query["OrganizationUnit"] = request.organizationUnit;
|
|
712
|
+
}
|
|
713
|
+
if (!$dara.isNull(request.parentIdentifier)) {
|
|
714
|
+
query["ParentIdentifier"] = request.parentIdentifier;
|
|
715
|
+
}
|
|
716
|
+
if (!$dara.isNull(request.sanType)) {
|
|
717
|
+
query["SanType"] = request.sanType;
|
|
718
|
+
}
|
|
719
|
+
if (!$dara.isNull(request.sanValue)) {
|
|
720
|
+
query["SanValue"] = request.sanValue;
|
|
721
|
+
}
|
|
722
|
+
if (!$dara.isNull(request.state)) {
|
|
723
|
+
query["State"] = request.state;
|
|
724
|
+
}
|
|
725
|
+
if (!$dara.isNull(request.years)) {
|
|
726
|
+
query["Years"] = request.years;
|
|
727
|
+
}
|
|
728
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
729
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
730
|
+
});
|
|
731
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
732
|
+
action: "CreateWHClientCertificate",
|
|
733
|
+
version: "2020-04-07",
|
|
734
|
+
protocol: "HTTPS",
|
|
735
|
+
pathname: "/",
|
|
736
|
+
method: "POST",
|
|
737
|
+
authType: "AK",
|
|
738
|
+
style: "RPC",
|
|
739
|
+
reqBodyType: "formData",
|
|
740
|
+
bodyType: "json",
|
|
741
|
+
});
|
|
742
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateWHClientCertificateResponse({}));
|
|
743
|
+
}
|
|
744
|
+
/**
|
|
745
|
+
* Applies for a client certificate in a certificate repository of a single user.
|
|
746
|
+
*
|
|
747
|
+
* @param request - CreateWHClientCertificateRequest
|
|
748
|
+
* @returns CreateWHClientCertificateResponse
|
|
749
|
+
*/
|
|
750
|
+
async createWHClientCertificate(request) {
|
|
751
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
752
|
+
return await this.createWHClientCertificateWithOptions(request, runtime);
|
|
753
|
+
}
|
|
754
|
+
/**
|
|
755
|
+
* 创建证书仓库。
|
|
756
|
+
*
|
|
757
|
+
* @param request - CreateWarehouseRequest
|
|
758
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
759
|
+
* @returns CreateWarehouseResponse
|
|
760
|
+
*/
|
|
761
|
+
async createWarehouseWithOptions(request, runtime) {
|
|
762
|
+
request.validate();
|
|
763
|
+
let query = {};
|
|
764
|
+
if (!$dara.isNull(request.biz)) {
|
|
765
|
+
query["Biz"] = request.biz;
|
|
766
|
+
}
|
|
767
|
+
if (!$dara.isNull(request.name)) {
|
|
768
|
+
query["Name"] = request.name;
|
|
769
|
+
}
|
|
770
|
+
if (!$dara.isNull(request.type)) {
|
|
771
|
+
query["Type"] = request.type;
|
|
772
|
+
}
|
|
773
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
774
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
775
|
+
});
|
|
776
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
777
|
+
action: "CreateWarehouse",
|
|
778
|
+
version: "2020-04-07",
|
|
779
|
+
protocol: "HTTPS",
|
|
780
|
+
pathname: "/",
|
|
781
|
+
method: "POST",
|
|
782
|
+
authType: "AK",
|
|
783
|
+
style: "RPC",
|
|
784
|
+
reqBodyType: "formData",
|
|
785
|
+
bodyType: "json",
|
|
786
|
+
});
|
|
787
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.CreateWarehouseResponse({}));
|
|
788
|
+
}
|
|
789
|
+
/**
|
|
790
|
+
* 创建证书仓库。
|
|
791
|
+
*
|
|
792
|
+
* @param request - CreateWarehouseRequest
|
|
793
|
+
* @returns CreateWarehouseResponse
|
|
794
|
+
*/
|
|
795
|
+
async createWarehouse(request) {
|
|
796
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
797
|
+
return await this.createWarehouseWithOptions(request, runtime);
|
|
798
|
+
}
|
|
622
799
|
/**
|
|
623
800
|
* Decrypts a certificate in a certificate repository.
|
|
624
801
|
*
|
|
@@ -729,7 +906,46 @@ class Client extends openapi_core_1.default {
|
|
|
729
906
|
return await this.deleteCertificateRequestWithOptions(request, runtime);
|
|
730
907
|
}
|
|
731
908
|
/**
|
|
732
|
-
*
|
|
909
|
+
* 删除授权ak
|
|
910
|
+
*
|
|
911
|
+
* @param request - DeleteCloudAccessRequest
|
|
912
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
913
|
+
* @returns DeleteCloudAccessResponse
|
|
914
|
+
*/
|
|
915
|
+
async deleteCloudAccessWithOptions(request, runtime) {
|
|
916
|
+
request.validate();
|
|
917
|
+
let query = {};
|
|
918
|
+
if (!$dara.isNull(request.accessId)) {
|
|
919
|
+
query["AccessId"] = request.accessId;
|
|
920
|
+
}
|
|
921
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
922
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
923
|
+
});
|
|
924
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
925
|
+
action: "DeleteCloudAccess",
|
|
926
|
+
version: "2020-04-07",
|
|
927
|
+
protocol: "HTTPS",
|
|
928
|
+
pathname: "/",
|
|
929
|
+
method: "POST",
|
|
930
|
+
authType: "AK",
|
|
931
|
+
style: "RPC",
|
|
932
|
+
reqBodyType: "formData",
|
|
933
|
+
bodyType: "json",
|
|
934
|
+
});
|
|
935
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteCloudAccessResponse({}));
|
|
936
|
+
}
|
|
937
|
+
/**
|
|
938
|
+
* 删除授权ak
|
|
939
|
+
*
|
|
940
|
+
* @param request - DeleteCloudAccessRequest
|
|
941
|
+
* @returns DeleteCloudAccessResponse
|
|
942
|
+
*/
|
|
943
|
+
async deleteCloudAccess(request) {
|
|
944
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
945
|
+
return await this.deleteCloudAccessWithOptions(request, runtime);
|
|
946
|
+
}
|
|
947
|
+
/**
|
|
948
|
+
* Deletes a Certificate Signing Request (CSR) that is no longer required.
|
|
733
949
|
*
|
|
734
950
|
* @param request - DeleteCsrRequest
|
|
735
951
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -758,7 +974,7 @@ class Client extends openapi_core_1.default {
|
|
|
758
974
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteCsrResponse({}));
|
|
759
975
|
}
|
|
760
976
|
/**
|
|
761
|
-
* Deletes a
|
|
977
|
+
* Deletes a Certificate Signing Request (CSR) that is no longer required.
|
|
762
978
|
*
|
|
763
979
|
* @param request - DeleteCsrRequest
|
|
764
980
|
* @returns DeleteCsrResponse
|
|
@@ -939,6 +1155,45 @@ class Client extends openapi_core_1.default {
|
|
|
939
1155
|
let runtime = new $dara.RuntimeOptions({});
|
|
940
1156
|
return await this.deleteUserCertificateWithOptions(request, runtime);
|
|
941
1157
|
}
|
|
1158
|
+
/**
|
|
1159
|
+
* 删除证书仓库
|
|
1160
|
+
*
|
|
1161
|
+
* @param request - DeleteWarehouseRequest
|
|
1162
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1163
|
+
* @returns DeleteWarehouseResponse
|
|
1164
|
+
*/
|
|
1165
|
+
async deleteWarehouseWithOptions(request, runtime) {
|
|
1166
|
+
request.validate();
|
|
1167
|
+
let query = {};
|
|
1168
|
+
if (!$dara.isNull(request.warehouseInstanceId)) {
|
|
1169
|
+
query["WarehouseInstanceId"] = request.warehouseInstanceId;
|
|
1170
|
+
}
|
|
1171
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1172
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1173
|
+
});
|
|
1174
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1175
|
+
action: "DeleteWarehouse",
|
|
1176
|
+
version: "2020-04-07",
|
|
1177
|
+
protocol: "HTTPS",
|
|
1178
|
+
pathname: "/",
|
|
1179
|
+
method: "POST",
|
|
1180
|
+
authType: "AK",
|
|
1181
|
+
style: "RPC",
|
|
1182
|
+
reqBodyType: "formData",
|
|
1183
|
+
bodyType: "json",
|
|
1184
|
+
});
|
|
1185
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DeleteWarehouseResponse({}));
|
|
1186
|
+
}
|
|
1187
|
+
/**
|
|
1188
|
+
* 删除证书仓库
|
|
1189
|
+
*
|
|
1190
|
+
* @param request - DeleteWarehouseRequest
|
|
1191
|
+
* @returns DeleteWarehouseResponse
|
|
1192
|
+
*/
|
|
1193
|
+
async deleteWarehouse(request) {
|
|
1194
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1195
|
+
return await this.deleteWarehouseWithOptions(request, runtime);
|
|
1196
|
+
}
|
|
942
1197
|
/**
|
|
943
1198
|
* Deletes the worker of a deployment task.
|
|
944
1199
|
*
|
|
@@ -1184,6 +1439,45 @@ class Client extends openapi_core_1.default {
|
|
|
1184
1439
|
let runtime = new $dara.RuntimeOptions({});
|
|
1185
1440
|
return await this.describePackageStateWithOptions(request, runtime);
|
|
1186
1441
|
}
|
|
1442
|
+
/**
|
|
1443
|
+
* 查询仓库证书详情。
|
|
1444
|
+
*
|
|
1445
|
+
* @param request - DescribeWarehouseCertRequest
|
|
1446
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1447
|
+
* @returns DescribeWarehouseCertResponse
|
|
1448
|
+
*/
|
|
1449
|
+
async describeWarehouseCertWithOptions(request, runtime) {
|
|
1450
|
+
request.validate();
|
|
1451
|
+
let query = {};
|
|
1452
|
+
if (!$dara.isNull(request.certIdentifier)) {
|
|
1453
|
+
query["CertIdentifier"] = request.certIdentifier;
|
|
1454
|
+
}
|
|
1455
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1456
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1457
|
+
});
|
|
1458
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1459
|
+
action: "DescribeWarehouseCert",
|
|
1460
|
+
version: "2020-04-07",
|
|
1461
|
+
protocol: "HTTPS",
|
|
1462
|
+
pathname: "/",
|
|
1463
|
+
method: "POST",
|
|
1464
|
+
authType: "AK",
|
|
1465
|
+
style: "RPC",
|
|
1466
|
+
reqBodyType: "formData",
|
|
1467
|
+
bodyType: "json",
|
|
1468
|
+
});
|
|
1469
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.DescribeWarehouseCertResponse({}));
|
|
1470
|
+
}
|
|
1471
|
+
/**
|
|
1472
|
+
* 查询仓库证书详情。
|
|
1473
|
+
*
|
|
1474
|
+
* @param request - DescribeWarehouseCertRequest
|
|
1475
|
+
* @returns DescribeWarehouseCertResponse
|
|
1476
|
+
*/
|
|
1477
|
+
async describeWarehouseCert(request) {
|
|
1478
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1479
|
+
return await this.describeWarehouseCertWithOptions(request, runtime);
|
|
1480
|
+
}
|
|
1187
1481
|
/**
|
|
1188
1482
|
* Encrypts a certificate in a certificate repository.
|
|
1189
1483
|
*
|
|
@@ -1245,7 +1539,37 @@ class Client extends openapi_core_1.default {
|
|
|
1245
1539
|
return await this.encryptWithOptions(request, runtime);
|
|
1246
1540
|
}
|
|
1247
1541
|
/**
|
|
1248
|
-
*
|
|
1542
|
+
* 统计资产数量
|
|
1543
|
+
*
|
|
1544
|
+
* @param request - GetAssetCountRequest
|
|
1545
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1546
|
+
* @returns GetAssetCountResponse
|
|
1547
|
+
*/
|
|
1548
|
+
async getAssetCountWithOptions(runtime) {
|
|
1549
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({});
|
|
1550
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1551
|
+
action: "GetAssetCount",
|
|
1552
|
+
version: "2020-04-07",
|
|
1553
|
+
protocol: "HTTPS",
|
|
1554
|
+
pathname: "/",
|
|
1555
|
+
method: "POST",
|
|
1556
|
+
authType: "AK",
|
|
1557
|
+
style: "RPC",
|
|
1558
|
+
reqBodyType: "formData",
|
|
1559
|
+
bodyType: "json",
|
|
1560
|
+
});
|
|
1561
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetAssetCountResponse({}));
|
|
1562
|
+
}
|
|
1563
|
+
/**
|
|
1564
|
+
* 统计资产数量
|
|
1565
|
+
* @returns GetAssetCountResponse
|
|
1566
|
+
*/
|
|
1567
|
+
async getAssetCount() {
|
|
1568
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1569
|
+
return await this.getAssetCountWithOptions(runtime);
|
|
1570
|
+
}
|
|
1571
|
+
/**
|
|
1572
|
+
* Queries the API call quota for certificate application repositories. When you call API operations for signature generation, signature verification, data encryption, and data decryption, your API call quota for certificate application repositories is consumed. If your API call quota is exhausted, you can no longer call specific certificate application repository-related operations. You can call this operation to query the API call quota for certificate application repositories.
|
|
1249
1573
|
*
|
|
1250
1574
|
* @remarks
|
|
1251
1575
|
* You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
@@ -1270,7 +1594,7 @@ class Client extends openapi_core_1.default {
|
|
|
1270
1594
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetCertWarehouseQuotaResponse({}));
|
|
1271
1595
|
}
|
|
1272
1596
|
/**
|
|
1273
|
-
* Queries the quota for certificate repositories.
|
|
1597
|
+
* Queries the API call quota for certificate application repositories. When you call API operations for signature generation, signature verification, data encryption, and data decryption, your API call quota for certificate application repositories is consumed. If your API call quota is exhausted, you can no longer call specific certificate application repository-related operations. You can call this operation to query the API call quota for certificate application repositories.
|
|
1274
1598
|
*
|
|
1275
1599
|
* @remarks
|
|
1276
1600
|
* You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
@@ -1436,6 +1760,36 @@ class Client extends openapi_core_1.default {
|
|
|
1436
1760
|
let runtime = new $dara.RuntimeOptions({});
|
|
1437
1761
|
return await this.getInstanceSummaryWithOptions(request, runtime);
|
|
1438
1762
|
}
|
|
1763
|
+
/**
|
|
1764
|
+
* 统计风险资产数量
|
|
1765
|
+
*
|
|
1766
|
+
* @param request - GetRiskCountRequest
|
|
1767
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1768
|
+
* @returns GetRiskCountResponse
|
|
1769
|
+
*/
|
|
1770
|
+
async getRiskCountWithOptions(runtime) {
|
|
1771
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({});
|
|
1772
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1773
|
+
action: "GetRiskCount",
|
|
1774
|
+
version: "2020-04-07",
|
|
1775
|
+
protocol: "HTTPS",
|
|
1776
|
+
pathname: "/",
|
|
1777
|
+
method: "POST",
|
|
1778
|
+
authType: "AK",
|
|
1779
|
+
style: "RPC",
|
|
1780
|
+
reqBodyType: "formData",
|
|
1781
|
+
bodyType: "json",
|
|
1782
|
+
});
|
|
1783
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetRiskCountResponse({}));
|
|
1784
|
+
}
|
|
1785
|
+
/**
|
|
1786
|
+
* 统计风险资产数量
|
|
1787
|
+
* @returns GetRiskCountResponse
|
|
1788
|
+
*/
|
|
1789
|
+
async getRiskCount() {
|
|
1790
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1791
|
+
return await this.getRiskCountWithOptions(runtime);
|
|
1792
|
+
}
|
|
1439
1793
|
/**
|
|
1440
1794
|
* 查询异步任务状态
|
|
1441
1795
|
*
|
|
@@ -1479,7 +1833,7 @@ class Client extends openapi_core_1.default {
|
|
|
1479
1833
|
return await this.getTaskAttributeWithOptions(request, runtime);
|
|
1480
1834
|
}
|
|
1481
1835
|
/**
|
|
1482
|
-
* Queries
|
|
1836
|
+
* Queries certificate details, including the basic information and public and private key content. You can call this operation to download the certificate and private key.
|
|
1483
1837
|
*
|
|
1484
1838
|
* @remarks
|
|
1485
1839
|
* You can call this operation up to 100 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
@@ -1514,7 +1868,7 @@ class Client extends openapi_core_1.default {
|
|
|
1514
1868
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.GetUserCertificateDetailResponse({}));
|
|
1515
1869
|
}
|
|
1516
1870
|
/**
|
|
1517
|
-
* Queries
|
|
1871
|
+
* Queries certificate details, including the basic information and public and private key content. You can call this operation to download the certificate and private key.
|
|
1518
1872
|
*
|
|
1519
1873
|
* @remarks
|
|
1520
1874
|
* You can call this operation up to 100 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
@@ -1526,6 +1880,54 @@ class Client extends openapi_core_1.default {
|
|
|
1526
1880
|
let runtime = new $dara.RuntimeOptions({});
|
|
1527
1881
|
return await this.getUserCertificateDetailWithOptions(request, runtime);
|
|
1528
1882
|
}
|
|
1883
|
+
/**
|
|
1884
|
+
* 查询云产品资源统计列表
|
|
1885
|
+
*
|
|
1886
|
+
* @param request - ListAssetCountRequest
|
|
1887
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1888
|
+
* @returns ListAssetCountResponse
|
|
1889
|
+
*/
|
|
1890
|
+
async listAssetCountWithOptions(request, runtime) {
|
|
1891
|
+
request.validate();
|
|
1892
|
+
let query = {};
|
|
1893
|
+
if (!$dara.isNull(request.currentPage)) {
|
|
1894
|
+
query["CurrentPage"] = request.currentPage;
|
|
1895
|
+
}
|
|
1896
|
+
if (!$dara.isNull(request.endDate)) {
|
|
1897
|
+
query["EndDate"] = request.endDate;
|
|
1898
|
+
}
|
|
1899
|
+
if (!$dara.isNull(request.showSize)) {
|
|
1900
|
+
query["ShowSize"] = request.showSize;
|
|
1901
|
+
}
|
|
1902
|
+
if (!$dara.isNull(request.startDate)) {
|
|
1903
|
+
query["StartDate"] = request.startDate;
|
|
1904
|
+
}
|
|
1905
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
1906
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
1907
|
+
});
|
|
1908
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
1909
|
+
action: "ListAssetCount",
|
|
1910
|
+
version: "2020-04-07",
|
|
1911
|
+
protocol: "HTTPS",
|
|
1912
|
+
pathname: "/",
|
|
1913
|
+
method: "POST",
|
|
1914
|
+
authType: "AK",
|
|
1915
|
+
style: "RPC",
|
|
1916
|
+
reqBodyType: "formData",
|
|
1917
|
+
bodyType: "json",
|
|
1918
|
+
});
|
|
1919
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListAssetCountResponse({}));
|
|
1920
|
+
}
|
|
1921
|
+
/**
|
|
1922
|
+
* 查询云产品资源统计列表
|
|
1923
|
+
*
|
|
1924
|
+
* @param request - ListAssetCountRequest
|
|
1925
|
+
* @returns ListAssetCountResponse
|
|
1926
|
+
*/
|
|
1927
|
+
async listAssetCount(request) {
|
|
1928
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
1929
|
+
return await this.listAssetCountWithOptions(request, runtime);
|
|
1930
|
+
}
|
|
1529
1931
|
/**
|
|
1530
1932
|
* Queries the certificates in a certificate repository.
|
|
1531
1933
|
*
|
|
@@ -1545,6 +1947,9 @@ class Client extends openapi_core_1.default {
|
|
|
1545
1947
|
if (!$dara.isNull(request.currentPage)) {
|
|
1546
1948
|
query["CurrentPage"] = request.currentPage;
|
|
1547
1949
|
}
|
|
1950
|
+
if (!$dara.isNull(request.identifiers)) {
|
|
1951
|
+
query["Identifiers"] = request.identifiers;
|
|
1952
|
+
}
|
|
1548
1953
|
if (!$dara.isNull(request.keyWord)) {
|
|
1549
1954
|
query["KeyWord"] = request.keyWord;
|
|
1550
1955
|
}
|
|
@@ -1863,7 +2268,7 @@ class Client extends openapi_core_1.default {
|
|
|
1863
2268
|
return await this.listContactWithOptions(request, runtime);
|
|
1864
2269
|
}
|
|
1865
2270
|
/**
|
|
1866
|
-
* Queries
|
|
2271
|
+
* Queries the details of Certificate Signing Requests (CSRs).
|
|
1867
2272
|
*
|
|
1868
2273
|
* @param request - ListCsrRequest
|
|
1869
2274
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1901,7 +2306,7 @@ class Client extends openapi_core_1.default {
|
|
|
1901
2306
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListCsrResponse({}));
|
|
1902
2307
|
}
|
|
1903
2308
|
/**
|
|
1904
|
-
* Queries
|
|
2309
|
+
* Queries the details of Certificate Signing Requests (CSRs).
|
|
1905
2310
|
*
|
|
1906
2311
|
* @param request - ListCsrRequest
|
|
1907
2312
|
* @returns ListCsrResponse
|
|
@@ -2163,6 +2568,62 @@ class Client extends openapi_core_1.default {
|
|
|
2163
2568
|
let runtime = new $dara.RuntimeOptions({});
|
|
2164
2569
|
return await this.listUserCertificateOrderWithOptions(request, runtime);
|
|
2165
2570
|
}
|
|
2571
|
+
/**
|
|
2572
|
+
* 查询证书仓库
|
|
2573
|
+
*
|
|
2574
|
+
* @param tmpReq - ListWarehouseRequest
|
|
2575
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2576
|
+
* @returns ListWarehouseResponse
|
|
2577
|
+
*/
|
|
2578
|
+
async listWarehouseWithOptions(tmpReq, runtime) {
|
|
2579
|
+
tmpReq.validate();
|
|
2580
|
+
let request = new $_model.ListWarehouseShrinkRequest({});
|
|
2581
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
2582
|
+
if (!$dara.isNull(tmpReq.warehouseInstanceIds)) {
|
|
2583
|
+
request.warehouseInstanceIdsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.warehouseInstanceIds, "WarehouseInstanceIds", "json");
|
|
2584
|
+
}
|
|
2585
|
+
if (!$dara.isNull(tmpReq.warehouseTypes)) {
|
|
2586
|
+
request.warehouseTypesShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.warehouseTypes, "WarehouseTypes", "json");
|
|
2587
|
+
}
|
|
2588
|
+
let query = {};
|
|
2589
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
2590
|
+
query["MaxResults"] = request.maxResults;
|
|
2591
|
+
}
|
|
2592
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
2593
|
+
query["NextToken"] = request.nextToken;
|
|
2594
|
+
}
|
|
2595
|
+
if (!$dara.isNull(request.warehouseInstanceIdsShrink)) {
|
|
2596
|
+
query["WarehouseInstanceIds"] = request.warehouseInstanceIdsShrink;
|
|
2597
|
+
}
|
|
2598
|
+
if (!$dara.isNull(request.warehouseTypesShrink)) {
|
|
2599
|
+
query["WarehouseTypes"] = request.warehouseTypesShrink;
|
|
2600
|
+
}
|
|
2601
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2602
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
2603
|
+
});
|
|
2604
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2605
|
+
action: "ListWarehouse",
|
|
2606
|
+
version: "2020-04-07",
|
|
2607
|
+
protocol: "HTTPS",
|
|
2608
|
+
pathname: "/",
|
|
2609
|
+
method: "POST",
|
|
2610
|
+
authType: "AK",
|
|
2611
|
+
style: "RPC",
|
|
2612
|
+
reqBodyType: "formData",
|
|
2613
|
+
bodyType: "json",
|
|
2614
|
+
});
|
|
2615
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListWarehouseResponse({}));
|
|
2616
|
+
}
|
|
2617
|
+
/**
|
|
2618
|
+
* 查询证书仓库
|
|
2619
|
+
*
|
|
2620
|
+
* @param request - ListWarehouseRequest
|
|
2621
|
+
* @returns ListWarehouseResponse
|
|
2622
|
+
*/
|
|
2623
|
+
async listWarehouse(request) {
|
|
2624
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
2625
|
+
return await this.listWarehouseWithOptions(request, runtime);
|
|
2626
|
+
}
|
|
2166
2627
|
/**
|
|
2167
2628
|
* Queries the details about the worker tasks of a deployment task. Alibaba Cloud allows you to deploy multiple certificates at a time. Therefore, a deployment task may include multiple worker tasks in multiple cloud services. A worker task refers to a task that deploys a certificate to a cloud resource in a cloud service.
|
|
2168
2629
|
*
|
|
@@ -2393,6 +2854,51 @@ class Client extends openapi_core_1.default {
|
|
|
2393
2854
|
let runtime = new $dara.RuntimeOptions({});
|
|
2394
2855
|
return await this.revokeCertificateWithOptions(request, runtime);
|
|
2395
2856
|
}
|
|
2857
|
+
/**
|
|
2858
|
+
* Revokes a client certificate or a server certificate in a certificate repository.
|
|
2859
|
+
*
|
|
2860
|
+
* @remarks
|
|
2861
|
+
* You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
2862
|
+
*
|
|
2863
|
+
* @param request - RevokeWHClientCertificateRequest
|
|
2864
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2865
|
+
* @returns RevokeWHClientCertificateResponse
|
|
2866
|
+
*/
|
|
2867
|
+
async revokeWHClientCertificateWithOptions(request, runtime) {
|
|
2868
|
+
request.validate();
|
|
2869
|
+
let query = {};
|
|
2870
|
+
if (!$dara.isNull(request.identifier)) {
|
|
2871
|
+
query["Identifier"] = request.identifier;
|
|
2872
|
+
}
|
|
2873
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2874
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
2875
|
+
});
|
|
2876
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2877
|
+
action: "RevokeWHClientCertificate",
|
|
2878
|
+
version: "2020-04-07",
|
|
2879
|
+
protocol: "HTTPS",
|
|
2880
|
+
pathname: "/",
|
|
2881
|
+
method: "POST",
|
|
2882
|
+
authType: "AK",
|
|
2883
|
+
style: "RPC",
|
|
2884
|
+
reqBodyType: "formData",
|
|
2885
|
+
bodyType: "json",
|
|
2886
|
+
});
|
|
2887
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.RevokeWHClientCertificateResponse({}));
|
|
2888
|
+
}
|
|
2889
|
+
/**
|
|
2890
|
+
* Revokes a client certificate or a server certificate in a certificate repository.
|
|
2891
|
+
*
|
|
2892
|
+
* @remarks
|
|
2893
|
+
* You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
2894
|
+
*
|
|
2895
|
+
* @param request - RevokeWHClientCertificateRequest
|
|
2896
|
+
* @returns RevokeWHClientCertificateResponse
|
|
2897
|
+
*/
|
|
2898
|
+
async revokeWHClientCertificate(request) {
|
|
2899
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
2900
|
+
return await this.revokeWHClientCertificateWithOptions(request, runtime);
|
|
2901
|
+
}
|
|
2396
2902
|
/**
|
|
2397
2903
|
* Signs a private certificate in a certificate application repository.
|
|
2398
2904
|
*
|
|
@@ -2458,7 +2964,7 @@ class Client extends openapi_core_1.default {
|
|
|
2458
2964
|
return await this.signWithOptions(request, runtime);
|
|
2459
2965
|
}
|
|
2460
2966
|
/**
|
|
2461
|
-
*
|
|
2967
|
+
* Uploads or updates the private key for a Certificate Signing Request (CSR). If you did not upload the required priviate when you uploaded a CSR, you can call this operation to upload or update the private key.
|
|
2462
2968
|
*
|
|
2463
2969
|
* @param request - UpdateCsrRequest
|
|
2464
2970
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2490,7 +2996,7 @@ class Client extends openapi_core_1.default {
|
|
|
2490
2996
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UpdateCsrResponse({}));
|
|
2491
2997
|
}
|
|
2492
2998
|
/**
|
|
2493
|
-
*
|
|
2999
|
+
* Uploads or updates the private key for a Certificate Signing Request (CSR). If you did not upload the required priviate when you uploaded a CSR, you can call this operation to upload or update the private key.
|
|
2494
3000
|
*
|
|
2495
3001
|
* @param request - UpdateCsrRequest
|
|
2496
3002
|
* @returns UpdateCsrResponse
|
|
@@ -2722,7 +3228,7 @@ class Client extends openapi_core_1.default {
|
|
|
2722
3228
|
return await this.updateWorkerResourceStatusWithOptions(request, runtime);
|
|
2723
3229
|
}
|
|
2724
3230
|
/**
|
|
2725
|
-
* Uploads
|
|
3231
|
+
* Uploads an existing Certificate Signing Request (CSR). You can use the CSR when you upload a certificate. You can also manage the uploaded CSRs in a centralized manner.
|
|
2726
3232
|
*
|
|
2727
3233
|
* @param request - UploadCsrRequest
|
|
2728
3234
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2757,7 +3263,7 @@ class Client extends openapi_core_1.default {
|
|
|
2757
3263
|
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UploadCsrResponse({}));
|
|
2758
3264
|
}
|
|
2759
3265
|
/**
|
|
2760
|
-
* Uploads
|
|
3266
|
+
* Uploads an existing Certificate Signing Request (CSR). You can use the CSR when you upload a certificate. You can also manage the uploaded CSRs in a centralized manner.
|
|
2761
3267
|
*
|
|
2762
3268
|
* @param request - UploadCsrRequest
|
|
2763
3269
|
* @returns UploadCsrResponse
|
|
@@ -2766,6 +3272,64 @@ class Client extends openapi_core_1.default {
|
|
|
2766
3272
|
let runtime = new $dara.RuntimeOptions({});
|
|
2767
3273
|
return await this.uploadCsrWithOptions(request, runtime);
|
|
2768
3274
|
}
|
|
3275
|
+
/**
|
|
3276
|
+
* The private key of the certificate.
|
|
3277
|
+
*
|
|
3278
|
+
* @remarks
|
|
3279
|
+
* You can call this operation to upload a private certificate to a certificate repository.
|
|
3280
|
+
* ## [](#qps-)Limits
|
|
3281
|
+
* You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
3282
|
+
*
|
|
3283
|
+
* @param request - UploadPCACertRequest
|
|
3284
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3285
|
+
* @returns UploadPCACertResponse
|
|
3286
|
+
*/
|
|
3287
|
+
async uploadPCACertWithOptions(request, runtime) {
|
|
3288
|
+
request.validate();
|
|
3289
|
+
let query = {};
|
|
3290
|
+
if (!$dara.isNull(request.cert)) {
|
|
3291
|
+
query["Cert"] = request.cert;
|
|
3292
|
+
}
|
|
3293
|
+
if (!$dara.isNull(request.name)) {
|
|
3294
|
+
query["Name"] = request.name;
|
|
3295
|
+
}
|
|
3296
|
+
if (!$dara.isNull(request.privateKey)) {
|
|
3297
|
+
query["PrivateKey"] = request.privateKey;
|
|
3298
|
+
}
|
|
3299
|
+
if (!$dara.isNull(request.warehouseId)) {
|
|
3300
|
+
query["WarehouseId"] = request.warehouseId;
|
|
3301
|
+
}
|
|
3302
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
3303
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
3304
|
+
});
|
|
3305
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
3306
|
+
action: "UploadPCACert",
|
|
3307
|
+
version: "2020-04-07",
|
|
3308
|
+
protocol: "HTTPS",
|
|
3309
|
+
pathname: "/",
|
|
3310
|
+
method: "POST",
|
|
3311
|
+
authType: "AK",
|
|
3312
|
+
style: "RPC",
|
|
3313
|
+
reqBodyType: "formData",
|
|
3314
|
+
bodyType: "json",
|
|
3315
|
+
});
|
|
3316
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UploadPCACertResponse({}));
|
|
3317
|
+
}
|
|
3318
|
+
/**
|
|
3319
|
+
* The private key of the certificate.
|
|
3320
|
+
*
|
|
3321
|
+
* @remarks
|
|
3322
|
+
* You can call this operation to upload a private certificate to a certificate repository.
|
|
3323
|
+
* ## [](#qps-)Limits
|
|
3324
|
+
* You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.
|
|
3325
|
+
*
|
|
3326
|
+
* @param request - UploadPCACertRequest
|
|
3327
|
+
* @returns UploadPCACertResponse
|
|
3328
|
+
*/
|
|
3329
|
+
async uploadPCACert(request) {
|
|
3330
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
3331
|
+
return await this.uploadPCACertWithOptions(request, runtime);
|
|
3332
|
+
}
|
|
2769
3333
|
/**
|
|
2770
3334
|
* Uploads a certificate.
|
|
2771
3335
|
*
|