@alicloud/cas20200407 3.2.0 → 3.2.3
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 +151 -3
- package/dist/client.js +456 -3
- 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/ListCertRequest.d.ts +1 -0
- package/dist/models/ListCertRequest.js +2 -0
- package/dist/models/ListCertRequest.js.map +1 -1
- package/dist/models/ListCertResponseBody.d.ts +3 -0
- package/dist/models/ListCertResponseBody.js +6 -0
- package/dist/models/ListCertResponseBody.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 +29 -0
- package/dist/models/model.js +63 -5
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +512 -3
- 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/ListCertRequest.ts +3 -0
- package/src/models/ListCertResponseBody.ts +9 -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 +29 -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
|
*
|
|
@@ -728,6 +905,45 @@ class Client extends openapi_core_1.default {
|
|
|
728
905
|
let runtime = new $dara.RuntimeOptions({});
|
|
729
906
|
return await this.deleteCertificateRequestWithOptions(request, runtime);
|
|
730
907
|
}
|
|
908
|
+
/**
|
|
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
|
+
}
|
|
731
947
|
/**
|
|
732
948
|
* Deletes a Certificate Signing Request (CSR) that is no longer required.
|
|
733
949
|
*
|
|
@@ -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
|
*
|
|
@@ -1247,7 +1541,6 @@ class Client extends openapi_core_1.default {
|
|
|
1247
1541
|
/**
|
|
1248
1542
|
* 统计资产数量
|
|
1249
1543
|
*
|
|
1250
|
-
* @param request - GetAssetCountRequest
|
|
1251
1544
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1252
1545
|
* @returns GetAssetCountResponse
|
|
1253
1546
|
*/
|
|
@@ -1280,7 +1573,6 @@ class Client extends openapi_core_1.default {
|
|
|
1280
1573
|
* @remarks
|
|
1281
1574
|
* 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.
|
|
1282
1575
|
*
|
|
1283
|
-
* @param request - GetCertWarehouseQuotaRequest
|
|
1284
1576
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1285
1577
|
* @returns GetCertWarehouseQuotaResponse
|
|
1286
1578
|
*/
|
|
@@ -1469,7 +1761,6 @@ class Client extends openapi_core_1.default {
|
|
|
1469
1761
|
/**
|
|
1470
1762
|
* 统计风险资产数量
|
|
1471
1763
|
*
|
|
1472
|
-
* @param request - GetRiskCountRequest
|
|
1473
1764
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
1474
1765
|
* @returns GetRiskCountResponse
|
|
1475
1766
|
*/
|
|
@@ -1653,6 +1944,9 @@ class Client extends openapi_core_1.default {
|
|
|
1653
1944
|
if (!$dara.isNull(request.currentPage)) {
|
|
1654
1945
|
query["CurrentPage"] = request.currentPage;
|
|
1655
1946
|
}
|
|
1947
|
+
if (!$dara.isNull(request.identifiers)) {
|
|
1948
|
+
query["Identifiers"] = request.identifiers;
|
|
1949
|
+
}
|
|
1656
1950
|
if (!$dara.isNull(request.keyWord)) {
|
|
1657
1951
|
query["KeyWord"] = request.keyWord;
|
|
1658
1952
|
}
|
|
@@ -2271,6 +2565,62 @@ class Client extends openapi_core_1.default {
|
|
|
2271
2565
|
let runtime = new $dara.RuntimeOptions({});
|
|
2272
2566
|
return await this.listUserCertificateOrderWithOptions(request, runtime);
|
|
2273
2567
|
}
|
|
2568
|
+
/**
|
|
2569
|
+
* 查询证书仓库
|
|
2570
|
+
*
|
|
2571
|
+
* @param tmpReq - ListWarehouseRequest
|
|
2572
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2573
|
+
* @returns ListWarehouseResponse
|
|
2574
|
+
*/
|
|
2575
|
+
async listWarehouseWithOptions(tmpReq, runtime) {
|
|
2576
|
+
tmpReq.validate();
|
|
2577
|
+
let request = new $_model.ListWarehouseShrinkRequest({});
|
|
2578
|
+
openapi_core_2.OpenApiUtil.convert(tmpReq, request);
|
|
2579
|
+
if (!$dara.isNull(tmpReq.warehouseInstanceIds)) {
|
|
2580
|
+
request.warehouseInstanceIdsShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.warehouseInstanceIds, "WarehouseInstanceIds", "json");
|
|
2581
|
+
}
|
|
2582
|
+
if (!$dara.isNull(tmpReq.warehouseTypes)) {
|
|
2583
|
+
request.warehouseTypesShrink = openapi_core_2.OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.warehouseTypes, "WarehouseTypes", "json");
|
|
2584
|
+
}
|
|
2585
|
+
let query = {};
|
|
2586
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
2587
|
+
query["MaxResults"] = request.maxResults;
|
|
2588
|
+
}
|
|
2589
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
2590
|
+
query["NextToken"] = request.nextToken;
|
|
2591
|
+
}
|
|
2592
|
+
if (!$dara.isNull(request.warehouseInstanceIdsShrink)) {
|
|
2593
|
+
query["WarehouseInstanceIds"] = request.warehouseInstanceIdsShrink;
|
|
2594
|
+
}
|
|
2595
|
+
if (!$dara.isNull(request.warehouseTypesShrink)) {
|
|
2596
|
+
query["WarehouseTypes"] = request.warehouseTypesShrink;
|
|
2597
|
+
}
|
|
2598
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2599
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
2600
|
+
});
|
|
2601
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2602
|
+
action: "ListWarehouse",
|
|
2603
|
+
version: "2020-04-07",
|
|
2604
|
+
protocol: "HTTPS",
|
|
2605
|
+
pathname: "/",
|
|
2606
|
+
method: "POST",
|
|
2607
|
+
authType: "AK",
|
|
2608
|
+
style: "RPC",
|
|
2609
|
+
reqBodyType: "formData",
|
|
2610
|
+
bodyType: "json",
|
|
2611
|
+
});
|
|
2612
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListWarehouseResponse({}));
|
|
2613
|
+
}
|
|
2614
|
+
/**
|
|
2615
|
+
* 查询证书仓库
|
|
2616
|
+
*
|
|
2617
|
+
* @param request - ListWarehouseRequest
|
|
2618
|
+
* @returns ListWarehouseResponse
|
|
2619
|
+
*/
|
|
2620
|
+
async listWarehouse(request) {
|
|
2621
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
2622
|
+
return await this.listWarehouseWithOptions(request, runtime);
|
|
2623
|
+
}
|
|
2274
2624
|
/**
|
|
2275
2625
|
* 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.
|
|
2276
2626
|
*
|
|
@@ -2501,6 +2851,51 @@ class Client extends openapi_core_1.default {
|
|
|
2501
2851
|
let runtime = new $dara.RuntimeOptions({});
|
|
2502
2852
|
return await this.revokeCertificateWithOptions(request, runtime);
|
|
2503
2853
|
}
|
|
2854
|
+
/**
|
|
2855
|
+
* Revokes a client certificate or a server certificate in a certificate repository.
|
|
2856
|
+
*
|
|
2857
|
+
* @remarks
|
|
2858
|
+
* 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.
|
|
2859
|
+
*
|
|
2860
|
+
* @param request - RevokeWHClientCertificateRequest
|
|
2861
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
2862
|
+
* @returns RevokeWHClientCertificateResponse
|
|
2863
|
+
*/
|
|
2864
|
+
async revokeWHClientCertificateWithOptions(request, runtime) {
|
|
2865
|
+
request.validate();
|
|
2866
|
+
let query = {};
|
|
2867
|
+
if (!$dara.isNull(request.identifier)) {
|
|
2868
|
+
query["Identifier"] = request.identifier;
|
|
2869
|
+
}
|
|
2870
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
2871
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
2872
|
+
});
|
|
2873
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
2874
|
+
action: "RevokeWHClientCertificate",
|
|
2875
|
+
version: "2020-04-07",
|
|
2876
|
+
protocol: "HTTPS",
|
|
2877
|
+
pathname: "/",
|
|
2878
|
+
method: "POST",
|
|
2879
|
+
authType: "AK",
|
|
2880
|
+
style: "RPC",
|
|
2881
|
+
reqBodyType: "formData",
|
|
2882
|
+
bodyType: "json",
|
|
2883
|
+
});
|
|
2884
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.RevokeWHClientCertificateResponse({}));
|
|
2885
|
+
}
|
|
2886
|
+
/**
|
|
2887
|
+
* Revokes a client certificate or a server certificate in a certificate repository.
|
|
2888
|
+
*
|
|
2889
|
+
* @remarks
|
|
2890
|
+
* 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.
|
|
2891
|
+
*
|
|
2892
|
+
* @param request - RevokeWHClientCertificateRequest
|
|
2893
|
+
* @returns RevokeWHClientCertificateResponse
|
|
2894
|
+
*/
|
|
2895
|
+
async revokeWHClientCertificate(request) {
|
|
2896
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
2897
|
+
return await this.revokeWHClientCertificateWithOptions(request, runtime);
|
|
2898
|
+
}
|
|
2504
2899
|
/**
|
|
2505
2900
|
* Signs a private certificate in a certificate application repository.
|
|
2506
2901
|
*
|
|
@@ -2874,6 +3269,64 @@ class Client extends openapi_core_1.default {
|
|
|
2874
3269
|
let runtime = new $dara.RuntimeOptions({});
|
|
2875
3270
|
return await this.uploadCsrWithOptions(request, runtime);
|
|
2876
3271
|
}
|
|
3272
|
+
/**
|
|
3273
|
+
* The private key of the certificate.
|
|
3274
|
+
*
|
|
3275
|
+
* @remarks
|
|
3276
|
+
* You can call this operation to upload a private certificate to a certificate repository.
|
|
3277
|
+
* ## [](#qps-)Limits
|
|
3278
|
+
* 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.
|
|
3279
|
+
*
|
|
3280
|
+
* @param request - UploadPCACertRequest
|
|
3281
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3282
|
+
* @returns UploadPCACertResponse
|
|
3283
|
+
*/
|
|
3284
|
+
async uploadPCACertWithOptions(request, runtime) {
|
|
3285
|
+
request.validate();
|
|
3286
|
+
let query = {};
|
|
3287
|
+
if (!$dara.isNull(request.cert)) {
|
|
3288
|
+
query["Cert"] = request.cert;
|
|
3289
|
+
}
|
|
3290
|
+
if (!$dara.isNull(request.name)) {
|
|
3291
|
+
query["Name"] = request.name;
|
|
3292
|
+
}
|
|
3293
|
+
if (!$dara.isNull(request.privateKey)) {
|
|
3294
|
+
query["PrivateKey"] = request.privateKey;
|
|
3295
|
+
}
|
|
3296
|
+
if (!$dara.isNull(request.warehouseId)) {
|
|
3297
|
+
query["WarehouseId"] = request.warehouseId;
|
|
3298
|
+
}
|
|
3299
|
+
let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
|
|
3300
|
+
query: openapi_core_2.OpenApiUtil.query(query),
|
|
3301
|
+
});
|
|
3302
|
+
let params = new openapi_core_2.$OpenApiUtil.Params({
|
|
3303
|
+
action: "UploadPCACert",
|
|
3304
|
+
version: "2020-04-07",
|
|
3305
|
+
protocol: "HTTPS",
|
|
3306
|
+
pathname: "/",
|
|
3307
|
+
method: "POST",
|
|
3308
|
+
authType: "AK",
|
|
3309
|
+
style: "RPC",
|
|
3310
|
+
reqBodyType: "formData",
|
|
3311
|
+
bodyType: "json",
|
|
3312
|
+
});
|
|
3313
|
+
return $dara.cast(await this.callApi(params, req, runtime), new $_model.UploadPCACertResponse({}));
|
|
3314
|
+
}
|
|
3315
|
+
/**
|
|
3316
|
+
* The private key of the certificate.
|
|
3317
|
+
*
|
|
3318
|
+
* @remarks
|
|
3319
|
+
* You can call this operation to upload a private certificate to a certificate repository.
|
|
3320
|
+
* ## [](#qps-)Limits
|
|
3321
|
+
* 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.
|
|
3322
|
+
*
|
|
3323
|
+
* @param request - UploadPCACertRequest
|
|
3324
|
+
* @returns UploadPCACertResponse
|
|
3325
|
+
*/
|
|
3326
|
+
async uploadPCACert(request) {
|
|
3327
|
+
let runtime = new $dara.RuntimeOptions({});
|
|
3328
|
+
return await this.uploadPCACertWithOptions(request, runtime);
|
|
3329
|
+
}
|
|
2877
3330
|
/**
|
|
2878
3331
|
* Uploads a certificate.
|
|
2879
3332
|
*
|