@alicloud/cas20200407 1.3.0 → 2.0.0
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 +9 -357
- package/dist/client.js +5 -396
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +11 -633
package/dist/client.d.ts
CHANGED
|
@@ -811,158 +811,6 @@ export declare class CreateDeploymentJobResponse extends $tea.Model {
|
|
|
811
811
|
[key: string]: any;
|
|
812
812
|
});
|
|
813
813
|
}
|
|
814
|
-
export declare class CreateWHClientCertificateRequest extends $tea.Model {
|
|
815
|
-
/**
|
|
816
|
-
* @example
|
|
817
|
-
* 1665819958
|
|
818
|
-
*/
|
|
819
|
-
afterTime?: number;
|
|
820
|
-
/**
|
|
821
|
-
* @example
|
|
822
|
-
* RSA_2048
|
|
823
|
-
*/
|
|
824
|
-
algorithm?: string;
|
|
825
|
-
/**
|
|
826
|
-
* @example
|
|
827
|
-
* 1634283958
|
|
828
|
-
*/
|
|
829
|
-
beforeTime?: number;
|
|
830
|
-
/**
|
|
831
|
-
* @example
|
|
832
|
-
* aliyun
|
|
833
|
-
*/
|
|
834
|
-
commonName?: string;
|
|
835
|
-
/**
|
|
836
|
-
* @example
|
|
837
|
-
* CN
|
|
838
|
-
*/
|
|
839
|
-
country?: string;
|
|
840
|
-
/**
|
|
841
|
-
* @example
|
|
842
|
-
* -----BEGIN CERTIFICATE REQUEST----- ...... -----END CERTIFICATE REQUEST-----
|
|
843
|
-
*/
|
|
844
|
-
csr?: string;
|
|
845
|
-
/**
|
|
846
|
-
* @example
|
|
847
|
-
* 365
|
|
848
|
-
*/
|
|
849
|
-
days?: number;
|
|
850
|
-
/**
|
|
851
|
-
* @example
|
|
852
|
-
* 1
|
|
853
|
-
*/
|
|
854
|
-
immediately?: number;
|
|
855
|
-
/**
|
|
856
|
-
* @example
|
|
857
|
-
* Hangzhou
|
|
858
|
-
*/
|
|
859
|
-
locality?: string;
|
|
860
|
-
/**
|
|
861
|
-
* @example
|
|
862
|
-
* 12
|
|
863
|
-
*/
|
|
864
|
-
months?: number;
|
|
865
|
-
organization?: string;
|
|
866
|
-
/**
|
|
867
|
-
* @example
|
|
868
|
-
* IT
|
|
869
|
-
*/
|
|
870
|
-
organizationUnit?: string;
|
|
871
|
-
/**
|
|
872
|
-
* @remarks
|
|
873
|
-
* This parameter is required.
|
|
874
|
-
*
|
|
875
|
-
* @example
|
|
876
|
-
* 273ae6bb538d538c70c01f81jh2****
|
|
877
|
-
*/
|
|
878
|
-
parentIdentifier?: string;
|
|
879
|
-
/**
|
|
880
|
-
* @example
|
|
881
|
-
* 2
|
|
882
|
-
*/
|
|
883
|
-
sanType?: number;
|
|
884
|
-
/**
|
|
885
|
-
* @example
|
|
886
|
-
* example.com
|
|
887
|
-
*/
|
|
888
|
-
sanValue?: string;
|
|
889
|
-
/**
|
|
890
|
-
* @example
|
|
891
|
-
* Zhejiang
|
|
892
|
-
*/
|
|
893
|
-
state?: string;
|
|
894
|
-
/**
|
|
895
|
-
* @example
|
|
896
|
-
* 1
|
|
897
|
-
*/
|
|
898
|
-
years?: number;
|
|
899
|
-
static names(): {
|
|
900
|
-
[key: string]: string;
|
|
901
|
-
};
|
|
902
|
-
static types(): {
|
|
903
|
-
[key: string]: any;
|
|
904
|
-
};
|
|
905
|
-
constructor(map?: {
|
|
906
|
-
[key: string]: any;
|
|
907
|
-
});
|
|
908
|
-
}
|
|
909
|
-
export declare class CreateWHClientCertificateResponseBody extends $tea.Model {
|
|
910
|
-
/**
|
|
911
|
-
* @example
|
|
912
|
-
* -----BEGIN CERTIFICATE-----\\n......\\n-----END CERTIFICATE-----\\n-----BEGIN CERTIFICATE-----\\n......\\n-----END CERTIFICATE-----\\n
|
|
913
|
-
*/
|
|
914
|
-
certificateChain?: string;
|
|
915
|
-
/**
|
|
916
|
-
* @example
|
|
917
|
-
* 190ae6bb538d538c70c01f81dcf2****
|
|
918
|
-
*/
|
|
919
|
-
identifier?: string;
|
|
920
|
-
/**
|
|
921
|
-
* @example
|
|
922
|
-
* -----BEGIN CERTIFICATE-----\\n......\\n-----END CERTIFICATE-----
|
|
923
|
-
*/
|
|
924
|
-
parentX509Certificate?: string;
|
|
925
|
-
/**
|
|
926
|
-
* @example
|
|
927
|
-
* 8C467B38-3910-447D-87BC-AC049166F216
|
|
928
|
-
*/
|
|
929
|
-
requestId?: string;
|
|
930
|
-
/**
|
|
931
|
-
* @example
|
|
932
|
-
* -----BEGIN CERTIFICATE-----\\n......\\n-----END CERTIFICATE-----
|
|
933
|
-
*/
|
|
934
|
-
rootX509Certificate?: string;
|
|
935
|
-
/**
|
|
936
|
-
* @example
|
|
937
|
-
* -----BEGIN CERTIFICATE-----\\n......\\n-----END CERTIFICATE-----
|
|
938
|
-
*/
|
|
939
|
-
x509Certificate?: string;
|
|
940
|
-
static names(): {
|
|
941
|
-
[key: string]: string;
|
|
942
|
-
};
|
|
943
|
-
static types(): {
|
|
944
|
-
[key: string]: any;
|
|
945
|
-
};
|
|
946
|
-
constructor(map?: {
|
|
947
|
-
[key: string]: any;
|
|
948
|
-
});
|
|
949
|
-
}
|
|
950
|
-
export declare class CreateWHClientCertificateResponse extends $tea.Model {
|
|
951
|
-
headers?: {
|
|
952
|
-
[key: string]: string;
|
|
953
|
-
};
|
|
954
|
-
statusCode?: number;
|
|
955
|
-
body?: CreateWHClientCertificateResponseBody;
|
|
956
|
-
static names(): {
|
|
957
|
-
[key: string]: string;
|
|
958
|
-
};
|
|
959
|
-
static types(): {
|
|
960
|
-
[key: string]: any;
|
|
961
|
-
};
|
|
962
|
-
constructor(map?: {
|
|
963
|
-
[key: string]: any;
|
|
964
|
-
});
|
|
965
|
-
}
|
|
966
814
|
export declare class DecryptRequest extends $tea.Model {
|
|
967
815
|
/**
|
|
968
816
|
* @remarks
|
|
@@ -1602,7 +1450,7 @@ export declare class DescribeCloudResourceStatusRequest extends $tea.Model {
|
|
|
1602
1450
|
* > You can call the [ListCloudAccess](https://help.aliyun.com/document_detail/2712219.html) operation to obtain the ID.
|
|
1603
1451
|
*
|
|
1604
1452
|
* @example
|
|
1605
|
-
*
|
|
1453
|
+
* AKID9*******XX
|
|
1606
1454
|
*/
|
|
1607
1455
|
secretId?: string;
|
|
1608
1456
|
static names(): {
|
|
@@ -2343,6 +2191,14 @@ export declare class GetCsrDetailResponseBody extends $tea.Model {
|
|
|
2343
2191
|
* -----BEGIN CERTIFICATE REQUEST----- ...... -----END CERTIFICATE REQUEST-----
|
|
2344
2192
|
*/
|
|
2345
2193
|
csr?: string;
|
|
2194
|
+
/**
|
|
2195
|
+
* @remarks
|
|
2196
|
+
* The private key. Specify a Base64-encoded string.
|
|
2197
|
+
*
|
|
2198
|
+
* @example
|
|
2199
|
+
* -----BEGIN RSA PRIVATE KEY-----…… -----END RSA PRIVATE KEY-----
|
|
2200
|
+
*/
|
|
2201
|
+
privateKey?: string;
|
|
2346
2202
|
/**
|
|
2347
2203
|
* @remarks
|
|
2348
2204
|
* The request ID.
|
|
@@ -4124,62 +3980,6 @@ export declare class RenewCertificateOrderForPackageRequestResponse extends $tea
|
|
|
4124
3980
|
[key: string]: any;
|
|
4125
3981
|
});
|
|
4126
3982
|
}
|
|
4127
|
-
export declare class RevokeWHClientCertificateRequest extends $tea.Model {
|
|
4128
|
-
/**
|
|
4129
|
-
* @remarks
|
|
4130
|
-
* The unique identifier of the client certificate or server certificate that you want to revoke.
|
|
4131
|
-
*
|
|
4132
|
-
* This parameter is required.
|
|
4133
|
-
*
|
|
4134
|
-
* @example
|
|
4135
|
-
* 160ae6bb538d538c70c01f81dcf2****
|
|
4136
|
-
*/
|
|
4137
|
-
identifier?: string;
|
|
4138
|
-
static names(): {
|
|
4139
|
-
[key: string]: string;
|
|
4140
|
-
};
|
|
4141
|
-
static types(): {
|
|
4142
|
-
[key: string]: any;
|
|
4143
|
-
};
|
|
4144
|
-
constructor(map?: {
|
|
4145
|
-
[key: string]: any;
|
|
4146
|
-
});
|
|
4147
|
-
}
|
|
4148
|
-
export declare class RevokeWHClientCertificateResponseBody extends $tea.Model {
|
|
4149
|
-
/**
|
|
4150
|
-
* @remarks
|
|
4151
|
-
* The ID of the request.
|
|
4152
|
-
*
|
|
4153
|
-
* @example
|
|
4154
|
-
* 15C66C7B-671A-4297-9187-2C4477247A74
|
|
4155
|
-
*/
|
|
4156
|
-
requestId?: string;
|
|
4157
|
-
static names(): {
|
|
4158
|
-
[key: string]: string;
|
|
4159
|
-
};
|
|
4160
|
-
static types(): {
|
|
4161
|
-
[key: string]: any;
|
|
4162
|
-
};
|
|
4163
|
-
constructor(map?: {
|
|
4164
|
-
[key: string]: any;
|
|
4165
|
-
});
|
|
4166
|
-
}
|
|
4167
|
-
export declare class RevokeWHClientCertificateResponse extends $tea.Model {
|
|
4168
|
-
headers?: {
|
|
4169
|
-
[key: string]: string;
|
|
4170
|
-
};
|
|
4171
|
-
statusCode?: number;
|
|
4172
|
-
body?: RevokeWHClientCertificateResponseBody;
|
|
4173
|
-
static names(): {
|
|
4174
|
-
[key: string]: string;
|
|
4175
|
-
};
|
|
4176
|
-
static types(): {
|
|
4177
|
-
[key: string]: any;
|
|
4178
|
-
};
|
|
4179
|
-
constructor(map?: {
|
|
4180
|
-
[key: string]: any;
|
|
4181
|
-
});
|
|
4182
|
-
}
|
|
4183
3983
|
export declare class SignRequest extends $tea.Model {
|
|
4184
3984
|
/**
|
|
4185
3985
|
* @remarks
|
|
@@ -4699,97 +4499,6 @@ export declare class UploadCsrResponse extends $tea.Model {
|
|
|
4699
4499
|
[key: string]: any;
|
|
4700
4500
|
});
|
|
4701
4501
|
}
|
|
4702
|
-
export declare class UploadPCACertRequest extends $tea.Model {
|
|
4703
|
-
/**
|
|
4704
|
-
* @remarks
|
|
4705
|
-
* <UploadPCACertResponse>
|
|
4706
|
-
* <RequestId>15C66C7B-671A-4297-9187-2C4477247A74</RequestId>
|
|
4707
|
-
* </UploadPCACertResponse>
|
|
4708
|
-
*
|
|
4709
|
-
* This parameter is required.
|
|
4710
|
-
*
|
|
4711
|
-
* @example
|
|
4712
|
-
* -----BEGIN CERTIFICATE----- MIIEJDCCAwygAwIBAgIQITRHItTLTQizTyd3K7AMRTANBgkqhkiG9w0BAQsFADBe **************** 5/akmr2GK/Y= -----END CERTIFICATE----- -----BEGIN CERTIFICATE----- MIIDuzCCAqOgAwIBAgIQSEIWDPfWTDKZcWNyL2O+fjANBgkqhkiG9w0BAQsFADBf **************** URUHyMW5Qd5Q9g6Y4sDOIm6It9TF7EjpwMs42R30agcRYzuUsN72ZFBYFJwnBX8= -----END CERTIFICATE----- -----BEGIN CERTIFICATE----- MIIDizCCAnOgAwIBAgIRAMfjPkDKfELTo07l3A3cUSYwDQYJKoZIhvcNAQELBQAw ********* CjWTnYPhCcO2uIcnqMt7zCVs5LXBK/XSwlAXKMvKT0uuzw9VxeMfEabflKu0By8= -----END CERTIFICATE-----
|
|
4713
|
-
*/
|
|
4714
|
-
cert?: string;
|
|
4715
|
-
/**
|
|
4716
|
-
* @remarks
|
|
4717
|
-
* UploadPCACert
|
|
4718
|
-
*
|
|
4719
|
-
* @example
|
|
4720
|
-
* cert_name
|
|
4721
|
-
*/
|
|
4722
|
-
name?: string;
|
|
4723
|
-
/**
|
|
4724
|
-
* @remarks
|
|
4725
|
-
* Uploads a private certificate to a certificate repository.
|
|
4726
|
-
*
|
|
4727
|
-
* @example
|
|
4728
|
-
* -----BEGIN RSA PRIVATE KEY----- MIIEowIBAAKCAQEA5SIfpNCBoiDrZhX1H39CHwQMVD0kBNeBTWfP9xkeesvfzbOz ******* POVNFfDf9h7pJtQ5fRZNTYTDs/d+cH62Z3+nS74mNnEfff0nkvne -----END RSA PRIVATE KEY-----
|
|
4729
|
-
*/
|
|
4730
|
-
privateKey?: string;
|
|
4731
|
-
/**
|
|
4732
|
-
* @remarks
|
|
4733
|
-
* The ID of the repository.
|
|
4734
|
-
*
|
|
4735
|
-
* > You can call the [ListCertWarehouse](https://help.aliyun.com/document_detail/455805.html) operation to query the ID.
|
|
4736
|
-
*
|
|
4737
|
-
* This parameter is required.
|
|
4738
|
-
*
|
|
4739
|
-
* @example
|
|
4740
|
-
* 1
|
|
4741
|
-
*/
|
|
4742
|
-
warehouseId?: number;
|
|
4743
|
-
static names(): {
|
|
4744
|
-
[key: string]: string;
|
|
4745
|
-
};
|
|
4746
|
-
static types(): {
|
|
4747
|
-
[key: string]: any;
|
|
4748
|
-
};
|
|
4749
|
-
constructor(map?: {
|
|
4750
|
-
[key: string]: any;
|
|
4751
|
-
});
|
|
4752
|
-
}
|
|
4753
|
-
export declare class UploadPCACertResponseBody extends $tea.Model {
|
|
4754
|
-
/**
|
|
4755
|
-
* @remarks
|
|
4756
|
-
* The unique identifier of the certificate.
|
|
4757
|
-
*
|
|
4758
|
-
* @example
|
|
4759
|
-
* 1ed65580-7e33-6a50-8630-dd13fdc009ee
|
|
4760
|
-
*/
|
|
4761
|
-
identifier?: string;
|
|
4762
|
-
/**
|
|
4763
|
-
* @example
|
|
4764
|
-
* 15C66C7B-671A-4297-9187-2C4477247A74
|
|
4765
|
-
*/
|
|
4766
|
-
requestId?: string;
|
|
4767
|
-
static names(): {
|
|
4768
|
-
[key: string]: string;
|
|
4769
|
-
};
|
|
4770
|
-
static types(): {
|
|
4771
|
-
[key: string]: any;
|
|
4772
|
-
};
|
|
4773
|
-
constructor(map?: {
|
|
4774
|
-
[key: string]: any;
|
|
4775
|
-
});
|
|
4776
|
-
}
|
|
4777
|
-
export declare class UploadPCACertResponse extends $tea.Model {
|
|
4778
|
-
headers?: {
|
|
4779
|
-
[key: string]: string;
|
|
4780
|
-
};
|
|
4781
|
-
statusCode?: number;
|
|
4782
|
-
body?: UploadPCACertResponseBody;
|
|
4783
|
-
static names(): {
|
|
4784
|
-
[key: string]: string;
|
|
4785
|
-
};
|
|
4786
|
-
static types(): {
|
|
4787
|
-
[key: string]: any;
|
|
4788
|
-
};
|
|
4789
|
-
constructor(map?: {
|
|
4790
|
-
[key: string]: any;
|
|
4791
|
-
});
|
|
4792
|
-
}
|
|
4793
4502
|
export declare class UploadUserCertificateRequest extends $tea.Model {
|
|
4794
4503
|
/**
|
|
4795
4504
|
* @remarks
|
|
@@ -7042,17 +6751,6 @@ export default class Client extends OpenApi {
|
|
|
7042
6751
|
* @returns CreateDeploymentJobResponse
|
|
7043
6752
|
*/
|
|
7044
6753
|
createDeploymentJob(request: CreateDeploymentJobRequest): Promise<CreateDeploymentJobResponse>;
|
|
7045
|
-
/**
|
|
7046
|
-
* @param request - CreateWHClientCertificateRequest
|
|
7047
|
-
* @param runtime - runtime options for this request RuntimeOptions
|
|
7048
|
-
* @returns CreateWHClientCertificateResponse
|
|
7049
|
-
*/
|
|
7050
|
-
createWHClientCertificateWithOptions(request: CreateWHClientCertificateRequest, runtime: $Util.RuntimeOptions): Promise<CreateWHClientCertificateResponse>;
|
|
7051
|
-
/**
|
|
7052
|
-
* @param request - CreateWHClientCertificateRequest
|
|
7053
|
-
* @returns CreateWHClientCertificateResponse
|
|
7054
|
-
*/
|
|
7055
|
-
createWHClientCertificate(request: CreateWHClientCertificateRequest): Promise<CreateWHClientCertificateResponse>;
|
|
7056
6754
|
/**
|
|
7057
6755
|
* Decrypts a certificate in a certificate repository.
|
|
7058
6756
|
*
|
|
@@ -7564,27 +7262,6 @@ export default class Client extends OpenApi {
|
|
|
7564
7262
|
* @returns RenewCertificateOrderForPackageRequestResponse
|
|
7565
7263
|
*/
|
|
7566
7264
|
renewCertificateOrderForPackageRequest(request: RenewCertificateOrderForPackageRequestRequest): Promise<RenewCertificateOrderForPackageRequestResponse>;
|
|
7567
|
-
/**
|
|
7568
|
-
* Revokes a client certificate or a server certificate in a certificate repository.
|
|
7569
|
-
*
|
|
7570
|
-
* @remarks
|
|
7571
|
-
* 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.
|
|
7572
|
-
*
|
|
7573
|
-
* @param request - RevokeWHClientCertificateRequest
|
|
7574
|
-
* @param runtime - runtime options for this request RuntimeOptions
|
|
7575
|
-
* @returns RevokeWHClientCertificateResponse
|
|
7576
|
-
*/
|
|
7577
|
-
revokeWHClientCertificateWithOptions(request: RevokeWHClientCertificateRequest, runtime: $Util.RuntimeOptions): Promise<RevokeWHClientCertificateResponse>;
|
|
7578
|
-
/**
|
|
7579
|
-
* Revokes a client certificate or a server certificate in a certificate repository.
|
|
7580
|
-
*
|
|
7581
|
-
* @remarks
|
|
7582
|
-
* 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.
|
|
7583
|
-
*
|
|
7584
|
-
* @param request - RevokeWHClientCertificateRequest
|
|
7585
|
-
* @returns RevokeWHClientCertificateResponse
|
|
7586
|
-
*/
|
|
7587
|
-
revokeWHClientCertificate(request: RevokeWHClientCertificateRequest): Promise<RevokeWHClientCertificateResponse>;
|
|
7588
7265
|
/**
|
|
7589
7266
|
* Signs a private certificate in a certificate application repository.
|
|
7590
7267
|
*
|
|
@@ -7685,31 +7362,6 @@ export default class Client extends OpenApi {
|
|
|
7685
7362
|
* @returns UploadCsrResponse
|
|
7686
7363
|
*/
|
|
7687
7364
|
uploadCsr(request: UploadCsrRequest): Promise<UploadCsrResponse>;
|
|
7688
|
-
/**
|
|
7689
|
-
* The private key of the certificate.
|
|
7690
|
-
*
|
|
7691
|
-
* @remarks
|
|
7692
|
-
* You can call this operation to upload a private certificate to a certificate repository.
|
|
7693
|
-
* ## [](#qps-)Limits
|
|
7694
|
-
* 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.
|
|
7695
|
-
*
|
|
7696
|
-
* @param request - UploadPCACertRequest
|
|
7697
|
-
* @param runtime - runtime options for this request RuntimeOptions
|
|
7698
|
-
* @returns UploadPCACertResponse
|
|
7699
|
-
*/
|
|
7700
|
-
uploadPCACertWithOptions(request: UploadPCACertRequest, runtime: $Util.RuntimeOptions): Promise<UploadPCACertResponse>;
|
|
7701
|
-
/**
|
|
7702
|
-
* The private key of the certificate.
|
|
7703
|
-
*
|
|
7704
|
-
* @remarks
|
|
7705
|
-
* You can call this operation to upload a private certificate to a certificate repository.
|
|
7706
|
-
* ## [](#qps-)Limits
|
|
7707
|
-
* 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.
|
|
7708
|
-
*
|
|
7709
|
-
* @param request - UploadPCACertRequest
|
|
7710
|
-
* @returns UploadPCACertResponse
|
|
7711
|
-
*/
|
|
7712
|
-
uploadPCACert(request: UploadPCACertRequest): Promise<UploadPCACertResponse>;
|
|
7713
7365
|
/**
|
|
7714
7366
|
* Uploads a certificate.
|
|
7715
7367
|
*
|