@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/src/client.ts
CHANGED
|
@@ -82,6 +82,56 @@ export default class Client extends OpenApi {
|
|
|
82
82
|
return OpenApiUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
/**
|
|
86
|
+
* 添加授权ak
|
|
87
|
+
*
|
|
88
|
+
* @param request - AddCloudAccessRequest
|
|
89
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
90
|
+
* @returns AddCloudAccessResponse
|
|
91
|
+
*/
|
|
92
|
+
async addCloudAccessWithOptions(request: $_model.AddCloudAccessRequest, runtime: $dara.RuntimeOptions): Promise<$_model.AddCloudAccessResponse> {
|
|
93
|
+
request.validate();
|
|
94
|
+
let query = { };
|
|
95
|
+
if (!$dara.isNull(request.cloudName)) {
|
|
96
|
+
query["CloudName"] = request.cloudName;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
if (!$dara.isNull(request.secretId)) {
|
|
100
|
+
query["SecretId"] = request.secretId;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
if (!$dara.isNull(request.secretKey)) {
|
|
104
|
+
query["SecretKey"] = request.secretKey;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
108
|
+
query: OpenApiUtil.query(query),
|
|
109
|
+
});
|
|
110
|
+
let params = new $OpenApiUtil.Params({
|
|
111
|
+
action: "AddCloudAccess",
|
|
112
|
+
version: "2020-04-07",
|
|
113
|
+
protocol: "HTTPS",
|
|
114
|
+
pathname: "/",
|
|
115
|
+
method: "POST",
|
|
116
|
+
authType: "AK",
|
|
117
|
+
style: "RPC",
|
|
118
|
+
reqBodyType: "formData",
|
|
119
|
+
bodyType: "json",
|
|
120
|
+
});
|
|
121
|
+
return $dara.cast<$_model.AddCloudAccessResponse>(await this.callApi(params, req, runtime), new $_model.AddCloudAccessResponse({}));
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
/**
|
|
125
|
+
* 添加授权ak
|
|
126
|
+
*
|
|
127
|
+
* @param request - AddCloudAccessRequest
|
|
128
|
+
* @returns AddCloudAccessResponse
|
|
129
|
+
*/
|
|
130
|
+
async addCloudAccess(request: $_model.AddCloudAccessRequest): Promise<$_model.AddCloudAccessResponse> {
|
|
131
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
132
|
+
return await this.addCloudAccessWithOptions(request, runtime);
|
|
133
|
+
}
|
|
134
|
+
|
|
85
135
|
/**
|
|
86
136
|
* 申请证书
|
|
87
137
|
*
|
|
@@ -648,6 +698,162 @@ export default class Client extends OpenApi {
|
|
|
648
698
|
return await this.createDeploymentJobWithOptions(request, runtime);
|
|
649
699
|
}
|
|
650
700
|
|
|
701
|
+
/**
|
|
702
|
+
* Applies for a client certificate in a certificate repository of a single user.
|
|
703
|
+
*
|
|
704
|
+
* @param request - CreateWHClientCertificateRequest
|
|
705
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
706
|
+
* @returns CreateWHClientCertificateResponse
|
|
707
|
+
*/
|
|
708
|
+
async createWHClientCertificateWithOptions(request: $_model.CreateWHClientCertificateRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateWHClientCertificateResponse> {
|
|
709
|
+
request.validate();
|
|
710
|
+
let query = { };
|
|
711
|
+
if (!$dara.isNull(request.afterTime)) {
|
|
712
|
+
query["AfterTime"] = request.afterTime;
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
if (!$dara.isNull(request.algorithm)) {
|
|
716
|
+
query["Algorithm"] = request.algorithm;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
if (!$dara.isNull(request.beforeTime)) {
|
|
720
|
+
query["BeforeTime"] = request.beforeTime;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
if (!$dara.isNull(request.commonName)) {
|
|
724
|
+
query["CommonName"] = request.commonName;
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
if (!$dara.isNull(request.country)) {
|
|
728
|
+
query["Country"] = request.country;
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
if (!$dara.isNull(request.csr)) {
|
|
732
|
+
query["Csr"] = request.csr;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
if (!$dara.isNull(request.days)) {
|
|
736
|
+
query["Days"] = request.days;
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
if (!$dara.isNull(request.immediately)) {
|
|
740
|
+
query["Immediately"] = request.immediately;
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
if (!$dara.isNull(request.locality)) {
|
|
744
|
+
query["Locality"] = request.locality;
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
if (!$dara.isNull(request.months)) {
|
|
748
|
+
query["Months"] = request.months;
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
if (!$dara.isNull(request.organization)) {
|
|
752
|
+
query["Organization"] = request.organization;
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
if (!$dara.isNull(request.organizationUnit)) {
|
|
756
|
+
query["OrganizationUnit"] = request.organizationUnit;
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
if (!$dara.isNull(request.parentIdentifier)) {
|
|
760
|
+
query["ParentIdentifier"] = request.parentIdentifier;
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
if (!$dara.isNull(request.sanType)) {
|
|
764
|
+
query["SanType"] = request.sanType;
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
if (!$dara.isNull(request.sanValue)) {
|
|
768
|
+
query["SanValue"] = request.sanValue;
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
if (!$dara.isNull(request.state)) {
|
|
772
|
+
query["State"] = request.state;
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
if (!$dara.isNull(request.years)) {
|
|
776
|
+
query["Years"] = request.years;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
780
|
+
query: OpenApiUtil.query(query),
|
|
781
|
+
});
|
|
782
|
+
let params = new $OpenApiUtil.Params({
|
|
783
|
+
action: "CreateWHClientCertificate",
|
|
784
|
+
version: "2020-04-07",
|
|
785
|
+
protocol: "HTTPS",
|
|
786
|
+
pathname: "/",
|
|
787
|
+
method: "POST",
|
|
788
|
+
authType: "AK",
|
|
789
|
+
style: "RPC",
|
|
790
|
+
reqBodyType: "formData",
|
|
791
|
+
bodyType: "json",
|
|
792
|
+
});
|
|
793
|
+
return $dara.cast<$_model.CreateWHClientCertificateResponse>(await this.callApi(params, req, runtime), new $_model.CreateWHClientCertificateResponse({}));
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
/**
|
|
797
|
+
* Applies for a client certificate in a certificate repository of a single user.
|
|
798
|
+
*
|
|
799
|
+
* @param request - CreateWHClientCertificateRequest
|
|
800
|
+
* @returns CreateWHClientCertificateResponse
|
|
801
|
+
*/
|
|
802
|
+
async createWHClientCertificate(request: $_model.CreateWHClientCertificateRequest): Promise<$_model.CreateWHClientCertificateResponse> {
|
|
803
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
804
|
+
return await this.createWHClientCertificateWithOptions(request, runtime);
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
/**
|
|
808
|
+
* 创建证书仓库。
|
|
809
|
+
*
|
|
810
|
+
* @param request - CreateWarehouseRequest
|
|
811
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
812
|
+
* @returns CreateWarehouseResponse
|
|
813
|
+
*/
|
|
814
|
+
async createWarehouseWithOptions(request: $_model.CreateWarehouseRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CreateWarehouseResponse> {
|
|
815
|
+
request.validate();
|
|
816
|
+
let query = { };
|
|
817
|
+
if (!$dara.isNull(request.biz)) {
|
|
818
|
+
query["Biz"] = request.biz;
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
if (!$dara.isNull(request.name)) {
|
|
822
|
+
query["Name"] = request.name;
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
if (!$dara.isNull(request.type)) {
|
|
826
|
+
query["Type"] = request.type;
|
|
827
|
+
}
|
|
828
|
+
|
|
829
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
830
|
+
query: OpenApiUtil.query(query),
|
|
831
|
+
});
|
|
832
|
+
let params = new $OpenApiUtil.Params({
|
|
833
|
+
action: "CreateWarehouse",
|
|
834
|
+
version: "2020-04-07",
|
|
835
|
+
protocol: "HTTPS",
|
|
836
|
+
pathname: "/",
|
|
837
|
+
method: "POST",
|
|
838
|
+
authType: "AK",
|
|
839
|
+
style: "RPC",
|
|
840
|
+
reqBodyType: "formData",
|
|
841
|
+
bodyType: "json",
|
|
842
|
+
});
|
|
843
|
+
return $dara.cast<$_model.CreateWarehouseResponse>(await this.callApi(params, req, runtime), new $_model.CreateWarehouseResponse({}));
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
/**
|
|
847
|
+
* 创建证书仓库。
|
|
848
|
+
*
|
|
849
|
+
* @param request - CreateWarehouseRequest
|
|
850
|
+
* @returns CreateWarehouseResponse
|
|
851
|
+
*/
|
|
852
|
+
async createWarehouse(request: $_model.CreateWarehouseRequest): Promise<$_model.CreateWarehouseResponse> {
|
|
853
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
854
|
+
return await this.createWarehouseWithOptions(request, runtime);
|
|
855
|
+
}
|
|
856
|
+
|
|
651
857
|
/**
|
|
652
858
|
* Decrypts a certificate in a certificate repository.
|
|
653
859
|
*
|
|
@@ -769,7 +975,49 @@ export default class Client extends OpenApi {
|
|
|
769
975
|
}
|
|
770
976
|
|
|
771
977
|
/**
|
|
772
|
-
*
|
|
978
|
+
* 删除授权ak
|
|
979
|
+
*
|
|
980
|
+
* @param request - DeleteCloudAccessRequest
|
|
981
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
982
|
+
* @returns DeleteCloudAccessResponse
|
|
983
|
+
*/
|
|
984
|
+
async deleteCloudAccessWithOptions(request: $_model.DeleteCloudAccessRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteCloudAccessResponse> {
|
|
985
|
+
request.validate();
|
|
986
|
+
let query = { };
|
|
987
|
+
if (!$dara.isNull(request.accessId)) {
|
|
988
|
+
query["AccessId"] = request.accessId;
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
992
|
+
query: OpenApiUtil.query(query),
|
|
993
|
+
});
|
|
994
|
+
let params = new $OpenApiUtil.Params({
|
|
995
|
+
action: "DeleteCloudAccess",
|
|
996
|
+
version: "2020-04-07",
|
|
997
|
+
protocol: "HTTPS",
|
|
998
|
+
pathname: "/",
|
|
999
|
+
method: "POST",
|
|
1000
|
+
authType: "AK",
|
|
1001
|
+
style: "RPC",
|
|
1002
|
+
reqBodyType: "formData",
|
|
1003
|
+
bodyType: "json",
|
|
1004
|
+
});
|
|
1005
|
+
return $dara.cast<$_model.DeleteCloudAccessResponse>(await this.callApi(params, req, runtime), new $_model.DeleteCloudAccessResponse({}));
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
/**
|
|
1009
|
+
* 删除授权ak
|
|
1010
|
+
*
|
|
1011
|
+
* @param request - DeleteCloudAccessRequest
|
|
1012
|
+
* @returns DeleteCloudAccessResponse
|
|
1013
|
+
*/
|
|
1014
|
+
async deleteCloudAccess(request: $_model.DeleteCloudAccessRequest): Promise<$_model.DeleteCloudAccessResponse> {
|
|
1015
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1016
|
+
return await this.deleteCloudAccessWithOptions(request, runtime);
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
/**
|
|
1020
|
+
* Deletes a Certificate Signing Request (CSR) that is no longer required.
|
|
773
1021
|
*
|
|
774
1022
|
* @param request - DeleteCsrRequest
|
|
775
1023
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -800,7 +1048,7 @@ export default class Client extends OpenApi {
|
|
|
800
1048
|
}
|
|
801
1049
|
|
|
802
1050
|
/**
|
|
803
|
-
* Deletes a
|
|
1051
|
+
* Deletes a Certificate Signing Request (CSR) that is no longer required.
|
|
804
1052
|
*
|
|
805
1053
|
* @param request - DeleteCsrRequest
|
|
806
1054
|
* @returns DeleteCsrResponse
|
|
@@ -994,6 +1242,48 @@ export default class Client extends OpenApi {
|
|
|
994
1242
|
return await this.deleteUserCertificateWithOptions(request, runtime);
|
|
995
1243
|
}
|
|
996
1244
|
|
|
1245
|
+
/**
|
|
1246
|
+
* 删除证书仓库
|
|
1247
|
+
*
|
|
1248
|
+
* @param request - DeleteWarehouseRequest
|
|
1249
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1250
|
+
* @returns DeleteWarehouseResponse
|
|
1251
|
+
*/
|
|
1252
|
+
async deleteWarehouseWithOptions(request: $_model.DeleteWarehouseRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteWarehouseResponse> {
|
|
1253
|
+
request.validate();
|
|
1254
|
+
let query = { };
|
|
1255
|
+
if (!$dara.isNull(request.warehouseInstanceId)) {
|
|
1256
|
+
query["WarehouseInstanceId"] = request.warehouseInstanceId;
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1259
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1260
|
+
query: OpenApiUtil.query(query),
|
|
1261
|
+
});
|
|
1262
|
+
let params = new $OpenApiUtil.Params({
|
|
1263
|
+
action: "DeleteWarehouse",
|
|
1264
|
+
version: "2020-04-07",
|
|
1265
|
+
protocol: "HTTPS",
|
|
1266
|
+
pathname: "/",
|
|
1267
|
+
method: "POST",
|
|
1268
|
+
authType: "AK",
|
|
1269
|
+
style: "RPC",
|
|
1270
|
+
reqBodyType: "formData",
|
|
1271
|
+
bodyType: "json",
|
|
1272
|
+
});
|
|
1273
|
+
return $dara.cast<$_model.DeleteWarehouseResponse>(await this.callApi(params, req, runtime), new $_model.DeleteWarehouseResponse({}));
|
|
1274
|
+
}
|
|
1275
|
+
|
|
1276
|
+
/**
|
|
1277
|
+
* 删除证书仓库
|
|
1278
|
+
*
|
|
1279
|
+
* @param request - DeleteWarehouseRequest
|
|
1280
|
+
* @returns DeleteWarehouseResponse
|
|
1281
|
+
*/
|
|
1282
|
+
async deleteWarehouse(request: $_model.DeleteWarehouseRequest): Promise<$_model.DeleteWarehouseResponse> {
|
|
1283
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1284
|
+
return await this.deleteWarehouseWithOptions(request, runtime);
|
|
1285
|
+
}
|
|
1286
|
+
|
|
997
1287
|
/**
|
|
998
1288
|
* Deletes the worker of a deployment task.
|
|
999
1289
|
*
|
|
@@ -1258,6 +1548,48 @@ export default class Client extends OpenApi {
|
|
|
1258
1548
|
return await this.describePackageStateWithOptions(request, runtime);
|
|
1259
1549
|
}
|
|
1260
1550
|
|
|
1551
|
+
/**
|
|
1552
|
+
* 查询仓库证书详情。
|
|
1553
|
+
*
|
|
1554
|
+
* @param request - DescribeWarehouseCertRequest
|
|
1555
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1556
|
+
* @returns DescribeWarehouseCertResponse
|
|
1557
|
+
*/
|
|
1558
|
+
async describeWarehouseCertWithOptions(request: $_model.DescribeWarehouseCertRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeWarehouseCertResponse> {
|
|
1559
|
+
request.validate();
|
|
1560
|
+
let query = { };
|
|
1561
|
+
if (!$dara.isNull(request.certIdentifier)) {
|
|
1562
|
+
query["CertIdentifier"] = request.certIdentifier;
|
|
1563
|
+
}
|
|
1564
|
+
|
|
1565
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1566
|
+
query: OpenApiUtil.query(query),
|
|
1567
|
+
});
|
|
1568
|
+
let params = new $OpenApiUtil.Params({
|
|
1569
|
+
action: "DescribeWarehouseCert",
|
|
1570
|
+
version: "2020-04-07",
|
|
1571
|
+
protocol: "HTTPS",
|
|
1572
|
+
pathname: "/",
|
|
1573
|
+
method: "POST",
|
|
1574
|
+
authType: "AK",
|
|
1575
|
+
style: "RPC",
|
|
1576
|
+
reqBodyType: "formData",
|
|
1577
|
+
bodyType: "json",
|
|
1578
|
+
});
|
|
1579
|
+
return $dara.cast<$_model.DescribeWarehouseCertResponse>(await this.callApi(params, req, runtime), new $_model.DescribeWarehouseCertResponse({}));
|
|
1580
|
+
}
|
|
1581
|
+
|
|
1582
|
+
/**
|
|
1583
|
+
* 查询仓库证书详情。
|
|
1584
|
+
*
|
|
1585
|
+
* @param request - DescribeWarehouseCertRequest
|
|
1586
|
+
* @returns DescribeWarehouseCertResponse
|
|
1587
|
+
*/
|
|
1588
|
+
async describeWarehouseCert(request: $_model.DescribeWarehouseCertRequest): Promise<$_model.DescribeWarehouseCertResponse> {
|
|
1589
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1590
|
+
return await this.describeWarehouseCertWithOptions(request, runtime);
|
|
1591
|
+
}
|
|
1592
|
+
|
|
1261
1593
|
/**
|
|
1262
1594
|
* Encrypts a certificate in a certificate repository.
|
|
1263
1595
|
*
|
|
@@ -1327,7 +1659,39 @@ export default class Client extends OpenApi {
|
|
|
1327
1659
|
}
|
|
1328
1660
|
|
|
1329
1661
|
/**
|
|
1330
|
-
*
|
|
1662
|
+
* 统计资产数量
|
|
1663
|
+
*
|
|
1664
|
+
* @param request - GetAssetCountRequest
|
|
1665
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1666
|
+
* @returns GetAssetCountResponse
|
|
1667
|
+
*/
|
|
1668
|
+
async getAssetCountWithOptions(runtime: $dara.RuntimeOptions): Promise<$_model.GetAssetCountResponse> {
|
|
1669
|
+
let req = new $OpenApiUtil.OpenApiRequest({ });
|
|
1670
|
+
let params = new $OpenApiUtil.Params({
|
|
1671
|
+
action: "GetAssetCount",
|
|
1672
|
+
version: "2020-04-07",
|
|
1673
|
+
protocol: "HTTPS",
|
|
1674
|
+
pathname: "/",
|
|
1675
|
+
method: "POST",
|
|
1676
|
+
authType: "AK",
|
|
1677
|
+
style: "RPC",
|
|
1678
|
+
reqBodyType: "formData",
|
|
1679
|
+
bodyType: "json",
|
|
1680
|
+
});
|
|
1681
|
+
return $dara.cast<$_model.GetAssetCountResponse>(await this.callApi(params, req, runtime), new $_model.GetAssetCountResponse({}));
|
|
1682
|
+
}
|
|
1683
|
+
|
|
1684
|
+
/**
|
|
1685
|
+
* 统计资产数量
|
|
1686
|
+
* @returns GetAssetCountResponse
|
|
1687
|
+
*/
|
|
1688
|
+
async getAssetCount(): Promise<$_model.GetAssetCountResponse> {
|
|
1689
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1690
|
+
return await this.getAssetCountWithOptions(runtime);
|
|
1691
|
+
}
|
|
1692
|
+
|
|
1693
|
+
/**
|
|
1694
|
+
* 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.
|
|
1331
1695
|
*
|
|
1332
1696
|
* @remarks
|
|
1333
1697
|
* 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.
|
|
@@ -1353,7 +1717,7 @@ export default class Client extends OpenApi {
|
|
|
1353
1717
|
}
|
|
1354
1718
|
|
|
1355
1719
|
/**
|
|
1356
|
-
* Queries the quota for certificate repositories.
|
|
1720
|
+
* 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.
|
|
1357
1721
|
*
|
|
1358
1722
|
* @remarks
|
|
1359
1723
|
* 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.
|
|
@@ -1532,6 +1896,38 @@ export default class Client extends OpenApi {
|
|
|
1532
1896
|
return await this.getInstanceSummaryWithOptions(request, runtime);
|
|
1533
1897
|
}
|
|
1534
1898
|
|
|
1899
|
+
/**
|
|
1900
|
+
* 统计风险资产数量
|
|
1901
|
+
*
|
|
1902
|
+
* @param request - GetRiskCountRequest
|
|
1903
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1904
|
+
* @returns GetRiskCountResponse
|
|
1905
|
+
*/
|
|
1906
|
+
async getRiskCountWithOptions(runtime: $dara.RuntimeOptions): Promise<$_model.GetRiskCountResponse> {
|
|
1907
|
+
let req = new $OpenApiUtil.OpenApiRequest({ });
|
|
1908
|
+
let params = new $OpenApiUtil.Params({
|
|
1909
|
+
action: "GetRiskCount",
|
|
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<$_model.GetRiskCountResponse>(await this.callApi(params, req, runtime), new $_model.GetRiskCountResponse({}));
|
|
1920
|
+
}
|
|
1921
|
+
|
|
1922
|
+
/**
|
|
1923
|
+
* 统计风险资产数量
|
|
1924
|
+
* @returns GetRiskCountResponse
|
|
1925
|
+
*/
|
|
1926
|
+
async getRiskCount(): Promise<$_model.GetRiskCountResponse> {
|
|
1927
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1928
|
+
return await this.getRiskCountWithOptions(runtime);
|
|
1929
|
+
}
|
|
1930
|
+
|
|
1535
1931
|
/**
|
|
1536
1932
|
* 查询异步任务状态
|
|
1537
1933
|
*
|
|
@@ -1579,7 +1975,7 @@ export default class Client extends OpenApi {
|
|
|
1579
1975
|
}
|
|
1580
1976
|
|
|
1581
1977
|
/**
|
|
1582
|
-
* Queries
|
|
1978
|
+
* 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.
|
|
1583
1979
|
*
|
|
1584
1980
|
* @remarks
|
|
1585
1981
|
* 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.
|
|
@@ -1617,7 +2013,7 @@ export default class Client extends OpenApi {
|
|
|
1617
2013
|
}
|
|
1618
2014
|
|
|
1619
2015
|
/**
|
|
1620
|
-
* Queries
|
|
2016
|
+
* 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.
|
|
1621
2017
|
*
|
|
1622
2018
|
* @remarks
|
|
1623
2019
|
* 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.
|
|
@@ -1630,6 +2026,60 @@ export default class Client extends OpenApi {
|
|
|
1630
2026
|
return await this.getUserCertificateDetailWithOptions(request, runtime);
|
|
1631
2027
|
}
|
|
1632
2028
|
|
|
2029
|
+
/**
|
|
2030
|
+
* 查询云产品资源统计列表
|
|
2031
|
+
*
|
|
2032
|
+
* @param request - ListAssetCountRequest
|
|
2033
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2034
|
+
* @returns ListAssetCountResponse
|
|
2035
|
+
*/
|
|
2036
|
+
async listAssetCountWithOptions(request: $_model.ListAssetCountRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListAssetCountResponse> {
|
|
2037
|
+
request.validate();
|
|
2038
|
+
let query = { };
|
|
2039
|
+
if (!$dara.isNull(request.currentPage)) {
|
|
2040
|
+
query["CurrentPage"] = request.currentPage;
|
|
2041
|
+
}
|
|
2042
|
+
|
|
2043
|
+
if (!$dara.isNull(request.endDate)) {
|
|
2044
|
+
query["EndDate"] = request.endDate;
|
|
2045
|
+
}
|
|
2046
|
+
|
|
2047
|
+
if (!$dara.isNull(request.showSize)) {
|
|
2048
|
+
query["ShowSize"] = request.showSize;
|
|
2049
|
+
}
|
|
2050
|
+
|
|
2051
|
+
if (!$dara.isNull(request.startDate)) {
|
|
2052
|
+
query["StartDate"] = request.startDate;
|
|
2053
|
+
}
|
|
2054
|
+
|
|
2055
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2056
|
+
query: OpenApiUtil.query(query),
|
|
2057
|
+
});
|
|
2058
|
+
let params = new $OpenApiUtil.Params({
|
|
2059
|
+
action: "ListAssetCount",
|
|
2060
|
+
version: "2020-04-07",
|
|
2061
|
+
protocol: "HTTPS",
|
|
2062
|
+
pathname: "/",
|
|
2063
|
+
method: "POST",
|
|
2064
|
+
authType: "AK",
|
|
2065
|
+
style: "RPC",
|
|
2066
|
+
reqBodyType: "formData",
|
|
2067
|
+
bodyType: "json",
|
|
2068
|
+
});
|
|
2069
|
+
return $dara.cast<$_model.ListAssetCountResponse>(await this.callApi(params, req, runtime), new $_model.ListAssetCountResponse({}));
|
|
2070
|
+
}
|
|
2071
|
+
|
|
2072
|
+
/**
|
|
2073
|
+
* 查询云产品资源统计列表
|
|
2074
|
+
*
|
|
2075
|
+
* @param request - ListAssetCountRequest
|
|
2076
|
+
* @returns ListAssetCountResponse
|
|
2077
|
+
*/
|
|
2078
|
+
async listAssetCount(request: $_model.ListAssetCountRequest): Promise<$_model.ListAssetCountResponse> {
|
|
2079
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2080
|
+
return await this.listAssetCountWithOptions(request, runtime);
|
|
2081
|
+
}
|
|
2082
|
+
|
|
1633
2083
|
/**
|
|
1634
2084
|
* Queries the certificates in a certificate repository.
|
|
1635
2085
|
*
|
|
@@ -1651,6 +2101,10 @@ export default class Client extends OpenApi {
|
|
|
1651
2101
|
query["CurrentPage"] = request.currentPage;
|
|
1652
2102
|
}
|
|
1653
2103
|
|
|
2104
|
+
if (!$dara.isNull(request.identifiers)) {
|
|
2105
|
+
query["Identifiers"] = request.identifiers;
|
|
2106
|
+
}
|
|
2107
|
+
|
|
1654
2108
|
if (!$dara.isNull(request.keyWord)) {
|
|
1655
2109
|
query["KeyWord"] = request.keyWord;
|
|
1656
2110
|
}
|
|
@@ -2013,7 +2467,7 @@ export default class Client extends OpenApi {
|
|
|
2013
2467
|
}
|
|
2014
2468
|
|
|
2015
2469
|
/**
|
|
2016
|
-
* Queries
|
|
2470
|
+
* Queries the details of Certificate Signing Requests (CSRs).
|
|
2017
2471
|
*
|
|
2018
2472
|
* @param request - ListCsrRequest
|
|
2019
2473
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2056,7 +2510,7 @@ export default class Client extends OpenApi {
|
|
|
2056
2510
|
}
|
|
2057
2511
|
|
|
2058
2512
|
/**
|
|
2059
|
-
* Queries
|
|
2513
|
+
* Queries the details of Certificate Signing Requests (CSRs).
|
|
2060
2514
|
*
|
|
2061
2515
|
* @param request - ListCsrRequest
|
|
2062
2516
|
* @returns ListCsrResponse
|
|
@@ -2350,6 +2804,70 @@ export default class Client extends OpenApi {
|
|
|
2350
2804
|
return await this.listUserCertificateOrderWithOptions(request, runtime);
|
|
2351
2805
|
}
|
|
2352
2806
|
|
|
2807
|
+
/**
|
|
2808
|
+
* 查询证书仓库
|
|
2809
|
+
*
|
|
2810
|
+
* @param tmpReq - ListWarehouseRequest
|
|
2811
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2812
|
+
* @returns ListWarehouseResponse
|
|
2813
|
+
*/
|
|
2814
|
+
async listWarehouseWithOptions(tmpReq: $_model.ListWarehouseRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListWarehouseResponse> {
|
|
2815
|
+
tmpReq.validate();
|
|
2816
|
+
let request = new $_model.ListWarehouseShrinkRequest({ });
|
|
2817
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
2818
|
+
if (!$dara.isNull(tmpReq.warehouseInstanceIds)) {
|
|
2819
|
+
request.warehouseInstanceIdsShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.warehouseInstanceIds, "WarehouseInstanceIds", "json");
|
|
2820
|
+
}
|
|
2821
|
+
|
|
2822
|
+
if (!$dara.isNull(tmpReq.warehouseTypes)) {
|
|
2823
|
+
request.warehouseTypesShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.warehouseTypes, "WarehouseTypes", "json");
|
|
2824
|
+
}
|
|
2825
|
+
|
|
2826
|
+
let query = { };
|
|
2827
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
2828
|
+
query["MaxResults"] = request.maxResults;
|
|
2829
|
+
}
|
|
2830
|
+
|
|
2831
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
2832
|
+
query["NextToken"] = request.nextToken;
|
|
2833
|
+
}
|
|
2834
|
+
|
|
2835
|
+
if (!$dara.isNull(request.warehouseInstanceIdsShrink)) {
|
|
2836
|
+
query["WarehouseInstanceIds"] = request.warehouseInstanceIdsShrink;
|
|
2837
|
+
}
|
|
2838
|
+
|
|
2839
|
+
if (!$dara.isNull(request.warehouseTypesShrink)) {
|
|
2840
|
+
query["WarehouseTypes"] = request.warehouseTypesShrink;
|
|
2841
|
+
}
|
|
2842
|
+
|
|
2843
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
2844
|
+
query: OpenApiUtil.query(query),
|
|
2845
|
+
});
|
|
2846
|
+
let params = new $OpenApiUtil.Params({
|
|
2847
|
+
action: "ListWarehouse",
|
|
2848
|
+
version: "2020-04-07",
|
|
2849
|
+
protocol: "HTTPS",
|
|
2850
|
+
pathname: "/",
|
|
2851
|
+
method: "POST",
|
|
2852
|
+
authType: "AK",
|
|
2853
|
+
style: "RPC",
|
|
2854
|
+
reqBodyType: "formData",
|
|
2855
|
+
bodyType: "json",
|
|
2856
|
+
});
|
|
2857
|
+
return $dara.cast<$_model.ListWarehouseResponse>(await this.callApi(params, req, runtime), new $_model.ListWarehouseResponse({}));
|
|
2858
|
+
}
|
|
2859
|
+
|
|
2860
|
+
/**
|
|
2861
|
+
* 查询证书仓库
|
|
2862
|
+
*
|
|
2863
|
+
* @param request - ListWarehouseRequest
|
|
2864
|
+
* @returns ListWarehouseResponse
|
|
2865
|
+
*/
|
|
2866
|
+
async listWarehouse(request: $_model.ListWarehouseRequest): Promise<$_model.ListWarehouseResponse> {
|
|
2867
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
2868
|
+
return await this.listWarehouseWithOptions(request, runtime);
|
|
2869
|
+
}
|
|
2870
|
+
|
|
2353
2871
|
/**
|
|
2354
2872
|
* 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.
|
|
2355
2873
|
*
|
|
@@ -2604,6 +3122,54 @@ export default class Client extends OpenApi {
|
|
|
2604
3122
|
return await this.revokeCertificateWithOptions(request, runtime);
|
|
2605
3123
|
}
|
|
2606
3124
|
|
|
3125
|
+
/**
|
|
3126
|
+
* Revokes a client certificate or a server certificate in a certificate repository.
|
|
3127
|
+
*
|
|
3128
|
+
* @remarks
|
|
3129
|
+
* 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.
|
|
3130
|
+
*
|
|
3131
|
+
* @param request - RevokeWHClientCertificateRequest
|
|
3132
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3133
|
+
* @returns RevokeWHClientCertificateResponse
|
|
3134
|
+
*/
|
|
3135
|
+
async revokeWHClientCertificateWithOptions(request: $_model.RevokeWHClientCertificateRequest, runtime: $dara.RuntimeOptions): Promise<$_model.RevokeWHClientCertificateResponse> {
|
|
3136
|
+
request.validate();
|
|
3137
|
+
let query = { };
|
|
3138
|
+
if (!$dara.isNull(request.identifier)) {
|
|
3139
|
+
query["Identifier"] = request.identifier;
|
|
3140
|
+
}
|
|
3141
|
+
|
|
3142
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
3143
|
+
query: OpenApiUtil.query(query),
|
|
3144
|
+
});
|
|
3145
|
+
let params = new $OpenApiUtil.Params({
|
|
3146
|
+
action: "RevokeWHClientCertificate",
|
|
3147
|
+
version: "2020-04-07",
|
|
3148
|
+
protocol: "HTTPS",
|
|
3149
|
+
pathname: "/",
|
|
3150
|
+
method: "POST",
|
|
3151
|
+
authType: "AK",
|
|
3152
|
+
style: "RPC",
|
|
3153
|
+
reqBodyType: "formData",
|
|
3154
|
+
bodyType: "json",
|
|
3155
|
+
});
|
|
3156
|
+
return $dara.cast<$_model.RevokeWHClientCertificateResponse>(await this.callApi(params, req, runtime), new $_model.RevokeWHClientCertificateResponse({}));
|
|
3157
|
+
}
|
|
3158
|
+
|
|
3159
|
+
/**
|
|
3160
|
+
* Revokes a client certificate or a server certificate in a certificate repository.
|
|
3161
|
+
*
|
|
3162
|
+
* @remarks
|
|
3163
|
+
* 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.
|
|
3164
|
+
*
|
|
3165
|
+
* @param request - RevokeWHClientCertificateRequest
|
|
3166
|
+
* @returns RevokeWHClientCertificateResponse
|
|
3167
|
+
*/
|
|
3168
|
+
async revokeWHClientCertificate(request: $_model.RevokeWHClientCertificateRequest): Promise<$_model.RevokeWHClientCertificateResponse> {
|
|
3169
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
3170
|
+
return await this.revokeWHClientCertificateWithOptions(request, runtime);
|
|
3171
|
+
}
|
|
3172
|
+
|
|
2607
3173
|
/**
|
|
2608
3174
|
* Signs a private certificate in a certificate application repository.
|
|
2609
3175
|
*
|
|
@@ -2677,7 +3243,7 @@ export default class Client extends OpenApi {
|
|
|
2677
3243
|
}
|
|
2678
3244
|
|
|
2679
3245
|
/**
|
|
2680
|
-
*
|
|
3246
|
+
* 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.
|
|
2681
3247
|
*
|
|
2682
3248
|
* @param request - UpdateCsrRequest
|
|
2683
3249
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2712,7 +3278,7 @@ export default class Client extends OpenApi {
|
|
|
2712
3278
|
}
|
|
2713
3279
|
|
|
2714
3280
|
/**
|
|
2715
|
-
*
|
|
3281
|
+
* 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.
|
|
2716
3282
|
*
|
|
2717
3283
|
* @param request - UpdateCsrRequest
|
|
2718
3284
|
* @returns UpdateCsrResponse
|
|
@@ -2979,7 +3545,7 @@ export default class Client extends OpenApi {
|
|
|
2979
3545
|
}
|
|
2980
3546
|
|
|
2981
3547
|
/**
|
|
2982
|
-
* Uploads
|
|
3548
|
+
* 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.
|
|
2983
3549
|
*
|
|
2984
3550
|
* @param request - UploadCsrRequest
|
|
2985
3551
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -3018,7 +3584,7 @@ export default class Client extends OpenApi {
|
|
|
3018
3584
|
}
|
|
3019
3585
|
|
|
3020
3586
|
/**
|
|
3021
|
-
* Uploads
|
|
3587
|
+
* 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.
|
|
3022
3588
|
*
|
|
3023
3589
|
* @param request - UploadCsrRequest
|
|
3024
3590
|
* @returns UploadCsrResponse
|
|
@@ -3028,6 +3594,70 @@ export default class Client extends OpenApi {
|
|
|
3028
3594
|
return await this.uploadCsrWithOptions(request, runtime);
|
|
3029
3595
|
}
|
|
3030
3596
|
|
|
3597
|
+
/**
|
|
3598
|
+
* The private key of the certificate.
|
|
3599
|
+
*
|
|
3600
|
+
* @remarks
|
|
3601
|
+
* You can call this operation to upload a private certificate to a certificate repository.
|
|
3602
|
+
* ## [](#qps-)Limits
|
|
3603
|
+
* 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.
|
|
3604
|
+
*
|
|
3605
|
+
* @param request - UploadPCACertRequest
|
|
3606
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3607
|
+
* @returns UploadPCACertResponse
|
|
3608
|
+
*/
|
|
3609
|
+
async uploadPCACertWithOptions(request: $_model.UploadPCACertRequest, runtime: $dara.RuntimeOptions): Promise<$_model.UploadPCACertResponse> {
|
|
3610
|
+
request.validate();
|
|
3611
|
+
let query = { };
|
|
3612
|
+
if (!$dara.isNull(request.cert)) {
|
|
3613
|
+
query["Cert"] = request.cert;
|
|
3614
|
+
}
|
|
3615
|
+
|
|
3616
|
+
if (!$dara.isNull(request.name)) {
|
|
3617
|
+
query["Name"] = request.name;
|
|
3618
|
+
}
|
|
3619
|
+
|
|
3620
|
+
if (!$dara.isNull(request.privateKey)) {
|
|
3621
|
+
query["PrivateKey"] = request.privateKey;
|
|
3622
|
+
}
|
|
3623
|
+
|
|
3624
|
+
if (!$dara.isNull(request.warehouseId)) {
|
|
3625
|
+
query["WarehouseId"] = request.warehouseId;
|
|
3626
|
+
}
|
|
3627
|
+
|
|
3628
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
3629
|
+
query: OpenApiUtil.query(query),
|
|
3630
|
+
});
|
|
3631
|
+
let params = new $OpenApiUtil.Params({
|
|
3632
|
+
action: "UploadPCACert",
|
|
3633
|
+
version: "2020-04-07",
|
|
3634
|
+
protocol: "HTTPS",
|
|
3635
|
+
pathname: "/",
|
|
3636
|
+
method: "POST",
|
|
3637
|
+
authType: "AK",
|
|
3638
|
+
style: "RPC",
|
|
3639
|
+
reqBodyType: "formData",
|
|
3640
|
+
bodyType: "json",
|
|
3641
|
+
});
|
|
3642
|
+
return $dara.cast<$_model.UploadPCACertResponse>(await this.callApi(params, req, runtime), new $_model.UploadPCACertResponse({}));
|
|
3643
|
+
}
|
|
3644
|
+
|
|
3645
|
+
/**
|
|
3646
|
+
* The private key of the certificate.
|
|
3647
|
+
*
|
|
3648
|
+
* @remarks
|
|
3649
|
+
* You can call this operation to upload a private certificate to a certificate repository.
|
|
3650
|
+
* ## [](#qps-)Limits
|
|
3651
|
+
* 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.
|
|
3652
|
+
*
|
|
3653
|
+
* @param request - UploadPCACertRequest
|
|
3654
|
+
* @returns UploadPCACertResponse
|
|
3655
|
+
*/
|
|
3656
|
+
async uploadPCACert(request: $_model.UploadPCACertRequest): Promise<$_model.UploadPCACertResponse> {
|
|
3657
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
3658
|
+
return await this.uploadPCACertWithOptions(request, runtime);
|
|
3659
|
+
}
|
|
3660
|
+
|
|
3031
3661
|
/**
|
|
3032
3662
|
* Uploads a certificate.
|
|
3033
3663
|
*
|