@alicloud/cas20200407 2.0.0 → 2.0.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/src/client.ts CHANGED
@@ -723,6 +723,9 @@ export class CreateCsrRequest extends $tea.Model {
723
723
  /**
724
724
  * @remarks
725
725
  * The name of the company.
726
+ *
727
+ * @example
728
+ * aly
726
729
  */
727
730
  corpName?: string;
728
731
  /**
@@ -1435,6 +1438,8 @@ export class DeleteDeploymentJobResponse extends $tea.Model {
1435
1438
  export class DeletePCACertRequest extends $tea.Model {
1436
1439
  /**
1437
1440
  * @remarks
1441
+ * The unique identifier of the certificate. You can call the [ListCert](https://help.aliyun.com/document_detail/452331.html) operation to query the unique identifiers of certificates.
1442
+ *
1438
1443
  * This parameter is required.
1439
1444
  *
1440
1445
  * @example
@@ -1460,6 +1465,9 @@ export class DeletePCACertRequest extends $tea.Model {
1460
1465
 
1461
1466
  export class DeletePCACertResponseBody extends $tea.Model {
1462
1467
  /**
1468
+ * @remarks
1469
+ * The ID of the request.
1470
+ *
1463
1471
  * @example
1464
1472
  * 15C66C7B-671A-4297-9187-2C4477247A74
1465
1473
  */
@@ -3000,6 +3008,19 @@ export class GetUserCertificateDetailResponseBody extends $tea.Model {
3000
3008
  * ---BEGIN CERTIFICATE----- MIIF...... -----END CERTIFICATE-----
3001
3009
  */
3002
3010
  cert?: string;
3011
+ /**
3012
+ * @remarks
3013
+ * The certificate chain.
3014
+ */
3015
+ certChain?: GetUserCertificateDetailResponseBodyCertChain[];
3016
+ /**
3017
+ * @remarks
3018
+ * The unique identifier of the certificate. The value of this parameter must be in the {Certificate ID}-cn-hangzhou format.
3019
+ *
3020
+ * @example
3021
+ * 10741304-cn-hangzhou
3022
+ */
3023
+ certIdentifier?: string;
3003
3024
  /**
3004
3025
  * @remarks
3005
3026
  * The city of the company or organization to which the certificate purchaser belongs.
@@ -3081,7 +3102,7 @@ export class GetUserCertificateDetailResponseBody extends $tea.Model {
3081
3102
  id?: number;
3082
3103
  /**
3083
3104
  * @remarks
3084
- * The instance ID.
3105
+ * The instance ID of the resource.
3085
3106
  *
3086
3107
  * @example
3087
3108
  * cas-upload-50yf1q
@@ -3161,7 +3182,7 @@ export class GetUserCertificateDetailResponseBody extends $tea.Model {
3161
3182
  sans?: string;
3162
3183
  /**
3163
3184
  * @remarks
3164
- * The certificate serial No.
3185
+ * The serial number of the certificate.
3165
3186
  *
3166
3187
  * @example
3167
3188
  * 06ea4879591ddf84e6c8b6ba43607ccf
@@ -3169,7 +3190,7 @@ export class GetUserCertificateDetailResponseBody extends $tea.Model {
3169
3190
  serialNo?: string;
3170
3191
  /**
3171
3192
  * @remarks
3172
- * The certificate sha2 value.
3193
+ * The SHA-2 value of the certificate.
3173
3194
  *
3174
3195
  * @example
3175
3196
  * 840707695D5EE41323102DDC2CB4924AA561012FBDC4E1A6324147119ED3C339
@@ -3208,6 +3229,8 @@ export class GetUserCertificateDetailResponseBody extends $tea.Model {
3208
3229
  algorithm: 'Algorithm',
3209
3230
  buyInAliyun: 'BuyInAliyun',
3210
3231
  cert: 'Cert',
3232
+ certChain: 'CertChain',
3233
+ certIdentifier: 'CertIdentifier',
3211
3234
  city: 'City',
3212
3235
  common: 'Common',
3213
3236
  country: 'Country',
@@ -3240,6 +3263,8 @@ export class GetUserCertificateDetailResponseBody extends $tea.Model {
3240
3263
  algorithm: 'string',
3241
3264
  buyInAliyun: 'boolean',
3242
3265
  cert: 'string',
3266
+ certChain: { 'type': 'array', 'itemType': GetUserCertificateDetailResponseBodyCertChain },
3267
+ certIdentifier: 'string',
3243
3268
  city: 'string',
3244
3269
  common: 'string',
3245
3270
  country: 'string',
@@ -3785,6 +3810,10 @@ export class ListCloudAccessResponse extends $tea.Model {
3785
3810
  }
3786
3811
 
3787
3812
  export class ListCloudResourcesRequest extends $tea.Model {
3813
+ /**
3814
+ * @remarks
3815
+ * The certificate IDs.
3816
+ */
3788
3817
  certIds?: number[];
3789
3818
  /**
3790
3819
  * @remarks
@@ -3792,8 +3821,10 @@ export class ListCloudResourcesRequest extends $tea.Model {
3792
3821
  *
3793
3822
  * Valid values:
3794
3823
  *
3795
- * * Tencent: Tencent Cloud
3796
- * * aliyun: Alibaba Cloud
3824
+ * * Tencent
3825
+ * * Huawei
3826
+ * * Aws
3827
+ * * aliyun
3797
3828
  *
3798
3829
  * @example
3799
3830
  * Tencent
@@ -3801,7 +3832,44 @@ export class ListCloudResourcesRequest extends $tea.Model {
3801
3832
  cloudName?: string;
3802
3833
  /**
3803
3834
  * @remarks
3804
- * The cloud service. Only Content Delivery Network (CDN) is supported for Tencent Cloud.
3835
+ * The cloud service.
3836
+ *
3837
+ * Valid values when CloudName is set to aliyun:
3838
+ *
3839
+ * * SLB: Classic Load Balancer (CLB). This value is available only on the China site (aliyun.com).
3840
+ * * LIVE: ApsaraVideo Live. This value is available only on the China site (aliyun.com).
3841
+ * * webHosting: Cloud Web Hosting. This value is available only on the China site (aliyun.com).
3842
+ * * VOD: ApsaraVideo VOD. This value is available only on the China site (aliyun.com).
3843
+ * * CR: Container Registry. This value is available only on the China site (aliyun.com).
3844
+ * * DCDN: Dynamic Content Delivery Network (DCDN).
3845
+ * * DDOS: Anti-DDoS.
3846
+ * * CDN: Alibaba Cloud CDN (CDN).
3847
+ * * ALB: Application Load Balancer (ALB).
3848
+ * * APIGateway: API Gateway.
3849
+ * * FC: Function Compute.
3850
+ * * GA: Global Accelerator (GA).
3851
+ * * MSE: Microservices Engine (MSE).
3852
+ * * NLB: Network Load Balancer (NLB).
3853
+ * * OSS: Object Storage Service (OSS).
3854
+ * * SAE: Serverless App Engine (SAE).
3855
+ * * WAF: Web Application Firewall (WAF).
3856
+ *
3857
+ * Valid values when CloudName is set to Tencent:
3858
+ *
3859
+ * * TencentCDN: Content Delivery Network (CDN).
3860
+ * * TencentCLB: CLB.
3861
+ * * TencentWAF: WAF.
3862
+ *
3863
+ * Valid value when CloudName is set to Huawei:
3864
+ *
3865
+ * * HuaweiCDN: CDN.
3866
+ *
3867
+ * Valid values when CloudName is set to Aws:
3868
+ *
3869
+ * * AwsCloudFront: Amazon CloudFront.
3870
+ * * AwsCLB: CLB.
3871
+ * * AwsALB: ALB.
3872
+ * * AwsNLB: NLB.
3805
3873
  *
3806
3874
  * @example
3807
3875
  * SLB
@@ -3817,7 +3885,7 @@ export class ListCloudResourcesRequest extends $tea.Model {
3817
3885
  currentPage?: number;
3818
3886
  /**
3819
3887
  * @remarks
3820
- * The domain name bound to the cloud resource.
3888
+ * The keyword of the domain name or instance ID bound to the cloud resource.
3821
3889
  *
3822
3890
  * @example
3823
3891
  * cert-instanceId
@@ -3825,7 +3893,7 @@ export class ListCloudResourcesRequest extends $tea.Model {
3825
3893
  keyword?: string;
3826
3894
  /**
3827
3895
  * @remarks
3828
- * The AccessKey ID used to access cloud resources.
3896
+ * The AccessKey ID that is used to access cloud resources.
3829
3897
  *
3830
3898
  * @example
3831
3899
  * 21
@@ -3833,7 +3901,7 @@ export class ListCloudResourcesRequest extends $tea.Model {
3833
3901
  secretId?: string;
3834
3902
  /**
3835
3903
  * @remarks
3836
- * The number of revoked certificates per page. Default value: **20**.
3904
+ * The number of entries per page. Default value: **20**.
3837
3905
  *
3838
3906
  * @example
3839
3907
  * 20
@@ -3869,6 +3937,10 @@ export class ListCloudResourcesRequest extends $tea.Model {
3869
3937
  }
3870
3938
 
3871
3939
  export class ListCloudResourcesShrinkRequest extends $tea.Model {
3940
+ /**
3941
+ * @remarks
3942
+ * The certificate IDs.
3943
+ */
3872
3944
  certIdsShrink?: string;
3873
3945
  /**
3874
3946
  * @remarks
@@ -3876,8 +3948,10 @@ export class ListCloudResourcesShrinkRequest extends $tea.Model {
3876
3948
  *
3877
3949
  * Valid values:
3878
3950
  *
3879
- * * Tencent: Tencent Cloud
3880
- * * aliyun: Alibaba Cloud
3951
+ * * Tencent
3952
+ * * Huawei
3953
+ * * Aws
3954
+ * * aliyun
3881
3955
  *
3882
3956
  * @example
3883
3957
  * Tencent
@@ -3885,7 +3959,44 @@ export class ListCloudResourcesShrinkRequest extends $tea.Model {
3885
3959
  cloudName?: string;
3886
3960
  /**
3887
3961
  * @remarks
3888
- * The cloud service. Only Content Delivery Network (CDN) is supported for Tencent Cloud.
3962
+ * The cloud service.
3963
+ *
3964
+ * Valid values when CloudName is set to aliyun:
3965
+ *
3966
+ * * SLB: Classic Load Balancer (CLB). This value is available only on the China site (aliyun.com).
3967
+ * * LIVE: ApsaraVideo Live. This value is available only on the China site (aliyun.com).
3968
+ * * webHosting: Cloud Web Hosting. This value is available only on the China site (aliyun.com).
3969
+ * * VOD: ApsaraVideo VOD. This value is available only on the China site (aliyun.com).
3970
+ * * CR: Container Registry. This value is available only on the China site (aliyun.com).
3971
+ * * DCDN: Dynamic Content Delivery Network (DCDN).
3972
+ * * DDOS: Anti-DDoS.
3973
+ * * CDN: Alibaba Cloud CDN (CDN).
3974
+ * * ALB: Application Load Balancer (ALB).
3975
+ * * APIGateway: API Gateway.
3976
+ * * FC: Function Compute.
3977
+ * * GA: Global Accelerator (GA).
3978
+ * * MSE: Microservices Engine (MSE).
3979
+ * * NLB: Network Load Balancer (NLB).
3980
+ * * OSS: Object Storage Service (OSS).
3981
+ * * SAE: Serverless App Engine (SAE).
3982
+ * * WAF: Web Application Firewall (WAF).
3983
+ *
3984
+ * Valid values when CloudName is set to Tencent:
3985
+ *
3986
+ * * TencentCDN: Content Delivery Network (CDN).
3987
+ * * TencentCLB: CLB.
3988
+ * * TencentWAF: WAF.
3989
+ *
3990
+ * Valid value when CloudName is set to Huawei:
3991
+ *
3992
+ * * HuaweiCDN: CDN.
3993
+ *
3994
+ * Valid values when CloudName is set to Aws:
3995
+ *
3996
+ * * AwsCloudFront: Amazon CloudFront.
3997
+ * * AwsCLB: CLB.
3998
+ * * AwsALB: ALB.
3999
+ * * AwsNLB: NLB.
3889
4000
  *
3890
4001
  * @example
3891
4002
  * SLB
@@ -3901,7 +4012,7 @@ export class ListCloudResourcesShrinkRequest extends $tea.Model {
3901
4012
  currentPage?: number;
3902
4013
  /**
3903
4014
  * @remarks
3904
- * The domain name bound to the cloud resource.
4015
+ * The keyword of the domain name or instance ID bound to the cloud resource.
3905
4016
  *
3906
4017
  * @example
3907
4018
  * cert-instanceId
@@ -3909,7 +4020,7 @@ export class ListCloudResourcesShrinkRequest extends $tea.Model {
3909
4020
  keyword?: string;
3910
4021
  /**
3911
4022
  * @remarks
3912
- * The AccessKey ID used to access cloud resources.
4023
+ * The AccessKey ID that is used to access cloud resources.
3913
4024
  *
3914
4025
  * @example
3915
4026
  * 21
@@ -3917,7 +4028,7 @@ export class ListCloudResourcesShrinkRequest extends $tea.Model {
3917
4028
  secretId?: string;
3918
4029
  /**
3919
4030
  * @remarks
3920
- * The number of revoked certificates per page. Default value: **20**.
4031
+ * The number of entries per page. Default value: **20**.
3921
4032
  *
3922
4033
  * @example
3923
4034
  * 20
@@ -3963,7 +4074,7 @@ export class ListCloudResourcesResponseBody extends $tea.Model {
3963
4074
  currentPage?: number;
3964
4075
  /**
3965
4076
  * @remarks
3966
- * The response parameters.
4077
+ * The data returned for the request.
3967
4078
  */
3968
4079
  data?: ListCloudResourcesResponseBodyData[];
3969
4080
  /**
@@ -3976,7 +4087,7 @@ export class ListCloudResourcesResponseBody extends $tea.Model {
3976
4087
  requestId?: string;
3977
4088
  /**
3978
4089
  * @remarks
3979
- * The number of certificate authority (CA) certificates per page. Default value: **20**.
4090
+ * The number of entries per page. Default value: **20**.
3980
4091
  *
3981
4092
  * @example
3982
4093
  * 20
@@ -6408,6 +6519,72 @@ export class DescribeDeploymentJobStatusResponseBodyProductWorkerCount extends $
6408
6519
  }
6409
6520
  }
6410
6521
 
6522
+ export class GetUserCertificateDetailResponseBodyCertChain extends $tea.Model {
6523
+ /**
6524
+ * @remarks
6525
+ * The common name of the certificate.
6526
+ *
6527
+ * @example
6528
+ * test
6529
+ */
6530
+ commonName?: string;
6531
+ /**
6532
+ * @remarks
6533
+ * The common name of the issuer.
6534
+ *
6535
+ * @example
6536
+ * Encryption Everywhere DV TLS CA - G2
6537
+ */
6538
+ issuerCommonName?: string;
6539
+ /**
6540
+ * @remarks
6541
+ * The end of the validity period of the certificate.
6542
+ *
6543
+ * @example
6544
+ * 17322613180000
6545
+ */
6546
+ notAfter?: number;
6547
+ /**
6548
+ * @remarks
6549
+ * The beginning of the validity period of the certificate.
6550
+ *
6551
+ * @example
6552
+ * 17322633180000
6553
+ */
6554
+ notBefore?: number;
6555
+ /**
6556
+ * @remarks
6557
+ * The remaining days of the certificate validity period.
6558
+ *
6559
+ * @example
6560
+ * 1000
6561
+ */
6562
+ remainDay?: number;
6563
+ static names(): { [key: string]: string } {
6564
+ return {
6565
+ commonName: 'CommonName',
6566
+ issuerCommonName: 'IssuerCommonName',
6567
+ notAfter: 'NotAfter',
6568
+ notBefore: 'NotBefore',
6569
+ remainDay: 'RemainDay',
6570
+ };
6571
+ }
6572
+
6573
+ static types(): { [key: string]: any } {
6574
+ return {
6575
+ commonName: 'string',
6576
+ issuerCommonName: 'string',
6577
+ notAfter: 'number',
6578
+ notBefore: 'number',
6579
+ remainDay: 'number',
6580
+ };
6581
+ }
6582
+
6583
+ constructor(map?: { [key: string]: any }) {
6584
+ super(map);
6585
+ }
6586
+ }
6587
+
6411
6588
  export class ListCertResponseBodyCertList extends $tea.Model {
6412
6589
  /**
6413
6590
  * @remarks
@@ -6752,9 +6929,9 @@ export class ListCloudResourcesResponseBodyData extends $tea.Model {
6752
6929
  certStartTime?: string;
6753
6930
  /**
6754
6931
  * @remarks
6755
- * The AccessKey ID used to access cloud resources.
6932
+ * The AccessKey ID that is used to access cloud resources.
6756
6933
  *
6757
- * > This parameter is required only when you deploy certificates to services of multiple clouds.
6934
+ * > This parameter is returned only when you deploy certificates to cloud services of third-party clouds.
6758
6935
  *
6759
6936
  * @example
6760
6937
  * 1234
@@ -6762,10 +6939,14 @@ export class ListCloudResourcesResponseBodyData extends $tea.Model {
6762
6939
  cloudAccessId?: string;
6763
6940
  /**
6764
6941
  * @remarks
6765
- * The cloud service provider of the cloud resource. Valid values:
6942
+ * The cloud service provider.
6766
6943
  *
6767
- * * **aliyun**: Alibaba Cloud
6768
- * * **Tencent**: Tencent Cloud
6944
+ * Valid values:
6945
+ *
6946
+ * * Tencent
6947
+ * * Huawei
6948
+ * * Aws
6949
+ * * aliyun
6769
6950
  *
6770
6951
  * @example
6771
6952
  * aliyun
@@ -6812,8 +6993,8 @@ export class ListCloudResourcesResponseBodyData extends $tea.Model {
6812
6993
  * @remarks
6813
6994
  * Indicates whether HTTPS is enabled for the cloud resource. Valid values:
6814
6995
  *
6815
- * * **1**: yes
6816
- * * **0**: no
6996
+ * * **1**: yes.
6997
+ * * **0**: no.
6817
6998
  *
6818
6999
  * @example
6819
7000
  * 1
@@ -7011,6 +7192,9 @@ export class ListContactResponseBodyContactList extends $tea.Model {
7011
7192
  /**
7012
7193
  * @remarks
7013
7194
  * The name of the contact.
7195
+ *
7196
+ * @example
7197
+ * ty-yaoyue.com
7014
7198
  */
7015
7199
  name?: string;
7016
7200
  /**
@@ -7070,6 +7254,9 @@ export class ListCsrResponseBodyCsrList extends $tea.Model {
7070
7254
  /**
7071
7255
  * @remarks
7072
7256
  * The name of the company.
7257
+ *
7258
+ * @example
7259
+ * corp_name
7073
7260
  */
7074
7261
  corpName?: string;
7075
7262
  /**
@@ -9272,6 +9459,13 @@ export default class Client extends OpenApi {
9272
9459
  }
9273
9460
 
9274
9461
  /**
9462
+ * Deletes a private certificate from a certificate application repository.
9463
+ *
9464
+ * @remarks
9465
+ * You can call the DeletePCACert operation to delete a private certificate from a certificate application repository.
9466
+ * ### Limits
9467
+ * 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.
9468
+ *
9275
9469
  * @param request - DeletePCACertRequest
9276
9470
  * @param runtime - runtime options for this request RuntimeOptions
9277
9471
  * @returns DeletePCACertResponse
@@ -9301,6 +9495,13 @@ export default class Client extends OpenApi {
9301
9495
  }
9302
9496
 
9303
9497
  /**
9498
+ * Deletes a private certificate from a certificate application repository.
9499
+ *
9500
+ * @remarks
9501
+ * You can call the DeletePCACert operation to delete a private certificate from a certificate application repository.
9502
+ * ### Limits
9503
+ * 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.
9504
+ *
9304
9505
  * @param request - DeletePCACertRequest
9305
9506
  * @returns DeletePCACertResponse
9306
9507
  */