tencentcloud-sdk-nodejs 4.0.504 → 4.0.506
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/CHANGELOG.md +277 -0
- package/README.md +17 -29
- package/SERVICE_CHANGELOG.md +272 -75
- package/examples/cvm_role.js +26 -0
- package/package.json +1 -1
- package/products.md +21 -21
- package/src/common/abstract_client.ts +27 -19
- package/src/common/cvm_role_credential.ts +62 -0
- package/src/common/http/fetch.ts +2 -2
- package/src/common/interface.ts +8 -1
- package/src/common/sdk_version.ts +1 -1
- package/src/services/antiddos/v20200309/antiddos_models.ts +23 -1
- package/src/services/billing/v20180709/billing_models.ts +4 -6
- package/src/services/ccc/v20200210/ccc_client.ts +13 -1
- package/src/services/ccc/v20200210/ccc_models.ts +54 -29
- package/src/services/cfs/v20190719/cfs_models.ts +12 -0
- package/src/services/cfw/v20190904/cfw_models.ts +1 -1
- package/src/services/cvm/v20170312/cvm_models.ts +24 -39
- package/src/services/essbasic/v20210526/essbasic_client.ts +1 -1
- package/src/services/gme/v20180711/gme_client.ts +6 -6
- package/src/services/gme/v20180711/gme_models.ts +7 -7
- package/src/services/mps/v20190612/mps_models.ts +15 -6
- package/src/services/nlp/v20190408/nlp_client.ts +28 -4
- package/src/services/nlp/v20190408/nlp_models.ts +118 -38
- package/src/services/ses/v20201002/ses_client.ts +12 -0
- package/src/services/ses/v20201002/ses_models.ts +25 -0
- package/src/services/ssl/v20191205/ssl_client.ts +1 -0
- package/src/services/ssl/v20191205/ssl_models.ts +47 -0
- package/src/services/thpc/v20220401/thpc_models.ts +5 -5
- package/src/services/tione/v20211111/tione_models.ts +29 -2
- package/src/services/trtc/v20190722/trtc_models.ts +4 -4
- package/src/services/tsf/v20180326/tsf_models.ts +3 -2
- package/src/services/vpc/v20170312/vpc_client.ts +1 -1
- package/src/services/vpc/v20170312/vpc_models.ts +14 -8
- package/tencentcloud/common/abstract_client.d.ts +3 -2
- package/tencentcloud/common/abstract_client.js +21 -13
- package/tencentcloud/common/cvm_role_credential.d.ts +17 -0
- package/tencentcloud/common/cvm_role_credential.js +47 -0
- package/tencentcloud/common/http/fetch.d.ts +2 -2
- package/tencentcloud/common/interface.d.ts +7 -1
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/antiddos/v20200309/antiddos_models.d.ts +19 -1
- package/tencentcloud/services/billing/v20180709/billing_models.d.ts +4 -6
- package/tencentcloud/services/ccc/v20200210/ccc_client.d.ts +5 -1
- package/tencentcloud/services/ccc/v20200210/ccc_client.js +6 -0
- package/tencentcloud/services/ccc/v20200210/ccc_models.d.ts +46 -24
- package/tencentcloud/services/cfs/v20190719/cfs_models.d.ts +10 -0
- package/tencentcloud/services/cfw/v20190904/cfw_models.d.ts +1 -1
- package/tencentcloud/services/cvm/v20170312/cvm_models.d.ts +19 -38
- package/tencentcloud/services/essbasic/v20210526/essbasic_client.d.ts +1 -1
- package/tencentcloud/services/essbasic/v20210526/essbasic_client.js +1 -1
- package/tencentcloud/services/gme/v20180711/gme_client.d.ts +6 -6
- package/tencentcloud/services/gme/v20180711/gme_client.js +6 -6
- package/tencentcloud/services/gme/v20180711/gme_models.d.ts +7 -7
- package/tencentcloud/services/mps/v20190612/mps_models.d.ts +12 -4
- package/tencentcloud/services/nlp/v20190408/nlp_client.d.ts +9 -1
- package/tencentcloud/services/nlp/v20190408/nlp_client.js +12 -0
- package/tencentcloud/services/nlp/v20190408/nlp_models.d.ts +103 -35
- package/tencentcloud/services/ses/v20201002/ses_client.d.ts +5 -1
- package/tencentcloud/services/ses/v20201002/ses_client.js +6 -0
- package/tencentcloud/services/ses/v20201002/ses_models.d.ts +22 -0
- package/tencentcloud/services/ssl/v20191205/ssl_models.d.ts +40 -0
- package/tencentcloud/services/thpc/v20220401/thpc_models.d.ts +5 -5
- package/tencentcloud/services/tione/v20211111/tione_models.d.ts +24 -2
- package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +4 -4
- package/tencentcloud/services/tsf/v20180326/tsf_models.d.ts +1 -0
- package/tencentcloud/services/vpc/v20170312/vpc_client.d.ts +1 -1
- package/tencentcloud/services/vpc/v20170312/vpc_client.js +1 -1
- package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +11 -6
- package/test/ccc.v20200210.test.js +10 -0
- package/test/nlp.v20190408.test.js +20 -0
- package/test/ses.v20201002.test.js +10 -0
|
@@ -29,6 +29,21 @@ export interface SentenceEmbeddingRequest {
|
|
|
29
29
|
*/
|
|
30
30
|
Text: string;
|
|
31
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* TextClassification请求参数结构体
|
|
34
|
+
*/
|
|
35
|
+
export interface TextClassificationRequest {
|
|
36
|
+
/**
|
|
37
|
+
* 待分类的文本(仅支持UTF-8格式,不超过10000字)
|
|
38
|
+
*/
|
|
39
|
+
Text: string;
|
|
40
|
+
/**
|
|
41
|
+
* 领域分类体系(默认取1值):
|
|
42
|
+
1、通用领域,二分类
|
|
43
|
+
2、新闻领域,五分类。类别数据不一定全部返回,详情见类目映射表(注意:目前五分类已下线不可用)
|
|
44
|
+
*/
|
|
45
|
+
Flag?: number;
|
|
46
|
+
}
|
|
32
47
|
/**
|
|
33
48
|
* WordSimilarity请求参数结构体
|
|
34
49
|
*/
|
|
@@ -474,19 +489,25 @@ export interface DescribeWordItemsRequest {
|
|
|
474
489
|
Text?: string;
|
|
475
490
|
}
|
|
476
491
|
/**
|
|
477
|
-
*
|
|
492
|
+
* GenerateCouplet返回参数结构体
|
|
478
493
|
*/
|
|
479
|
-
export interface
|
|
494
|
+
export interface GenerateCoupletResponse {
|
|
480
495
|
/**
|
|
481
|
-
*
|
|
496
|
+
* 横批。
|
|
482
497
|
*/
|
|
483
|
-
|
|
498
|
+
TopScroll: string;
|
|
484
499
|
/**
|
|
485
|
-
*
|
|
486
|
-
1、通用领域,二分类
|
|
487
|
-
2、新闻领域,五分类。类别数据不一定全部返回,详情见类目映射表(注意:目前五分类已下线不可用)
|
|
500
|
+
* 上联与下联。
|
|
488
501
|
*/
|
|
489
|
-
|
|
502
|
+
Content: Array<string>;
|
|
503
|
+
/**
|
|
504
|
+
* 当对联随机生成时,展示随机生成原因。
|
|
505
|
+
*/
|
|
506
|
+
RandomCause: string;
|
|
507
|
+
/**
|
|
508
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
509
|
+
*/
|
|
510
|
+
RequestId?: string;
|
|
490
511
|
}
|
|
491
512
|
/**
|
|
492
513
|
* CreateDict返回参数结构体
|
|
@@ -611,29 +632,17 @@ export interface PosToken {
|
|
|
611
632
|
Pos: string;
|
|
612
633
|
}
|
|
613
634
|
/**
|
|
614
|
-
*
|
|
635
|
+
* GeneratePoetry返回参数结构体
|
|
615
636
|
*/
|
|
616
|
-
export interface
|
|
617
|
-
/**
|
|
618
|
-
* 正面情感概率
|
|
619
|
-
*/
|
|
620
|
-
Positive: number;
|
|
637
|
+
export interface GeneratePoetryResponse {
|
|
621
638
|
/**
|
|
622
|
-
*
|
|
623
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
639
|
+
* 诗题,即输入的生成诗词的关键词。
|
|
624
640
|
*/
|
|
625
|
-
|
|
626
|
-
/**
|
|
627
|
-
* 负面情感概率
|
|
628
|
-
*/
|
|
629
|
-
Negative: number;
|
|
641
|
+
Title: string;
|
|
630
642
|
/**
|
|
631
|
-
*
|
|
632
|
-
1、positive,表示正面情感
|
|
633
|
-
2、negative,表示负面情感
|
|
634
|
-
3、neutral,表示中性、无情感
|
|
643
|
+
* 诗的内容。
|
|
635
644
|
*/
|
|
636
|
-
|
|
645
|
+
Content: Array<string>;
|
|
637
646
|
/**
|
|
638
647
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
639
648
|
*/
|
|
@@ -742,6 +751,19 @@ export interface DeleteDictRequest {
|
|
|
742
751
|
*/
|
|
743
752
|
DictId: string;
|
|
744
753
|
}
|
|
754
|
+
/**
|
|
755
|
+
* 文本相似度
|
|
756
|
+
*/
|
|
757
|
+
export interface Similarity {
|
|
758
|
+
/**
|
|
759
|
+
* 目标文本句子
|
|
760
|
+
*/
|
|
761
|
+
Text: string;
|
|
762
|
+
/**
|
|
763
|
+
* 相似度分数
|
|
764
|
+
*/
|
|
765
|
+
Score: number;
|
|
766
|
+
}
|
|
745
767
|
/**
|
|
746
768
|
* 命名实体识别结果
|
|
747
769
|
*/
|
|
@@ -764,13 +786,29 @@ export interface NerToken {
|
|
|
764
786
|
Type: string;
|
|
765
787
|
}
|
|
766
788
|
/**
|
|
767
|
-
*
|
|
789
|
+
* SentimentAnalysis返回参数结构体
|
|
768
790
|
*/
|
|
769
|
-
export interface
|
|
791
|
+
export interface SentimentAnalysisResponse {
|
|
770
792
|
/**
|
|
771
|
-
*
|
|
793
|
+
* 正面情感概率
|
|
772
794
|
*/
|
|
773
|
-
|
|
795
|
+
Positive: number;
|
|
796
|
+
/**
|
|
797
|
+
* 中性情感概率,当输入参数Mode取值为3class时有效,否则值为空
|
|
798
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
799
|
+
*/
|
|
800
|
+
Neutral: number;
|
|
801
|
+
/**
|
|
802
|
+
* 负面情感概率
|
|
803
|
+
*/
|
|
804
|
+
Negative: number;
|
|
805
|
+
/**
|
|
806
|
+
* 情感分类结果:
|
|
807
|
+
1、positive,表示正面情感
|
|
808
|
+
2、negative,表示负面情感
|
|
809
|
+
3、neutral,表示中性、无情感
|
|
810
|
+
*/
|
|
811
|
+
Sentiment: string;
|
|
774
812
|
/**
|
|
775
813
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
776
814
|
*/
|
|
@@ -805,17 +843,30 @@ export interface DependencyParsingResponse {
|
|
|
805
843
|
RequestId?: string;
|
|
806
844
|
}
|
|
807
845
|
/**
|
|
808
|
-
*
|
|
846
|
+
* SimilarWords返回参数结构体
|
|
809
847
|
*/
|
|
810
|
-
export interface
|
|
848
|
+
export interface SimilarWordsResponse {
|
|
811
849
|
/**
|
|
812
|
-
*
|
|
850
|
+
* 相似词数组
|
|
851
|
+
*/
|
|
852
|
+
SimilarWords?: Array<string>;
|
|
853
|
+
/**
|
|
854
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
855
|
+
*/
|
|
856
|
+
RequestId?: string;
|
|
857
|
+
}
|
|
858
|
+
/**
|
|
859
|
+
* GenerateCouplet请求参数结构体
|
|
860
|
+
*/
|
|
861
|
+
export interface GenerateCoupletRequest {
|
|
862
|
+
/**
|
|
863
|
+
* 生成对联的关键词。长度需>=2,当长度>2时,自动截取前两个字作为关键字。内容需为常用汉字(不含有数字、英文、韩语、日语、符号等等其他)。
|
|
813
864
|
*/
|
|
814
865
|
Text: string;
|
|
815
866
|
/**
|
|
816
|
-
*
|
|
867
|
+
* 返回的文本结果为繁体还是简体。0:简体;1:繁体。默认为0。
|
|
817
868
|
*/
|
|
818
|
-
|
|
869
|
+
TargetType?: number;
|
|
819
870
|
}
|
|
820
871
|
/**
|
|
821
872
|
* 文本纠错结果
|
|
@@ -853,6 +904,23 @@ export interface LexicalAnalysisRequest {
|
|
|
853
904
|
*/
|
|
854
905
|
Flag?: number;
|
|
855
906
|
}
|
|
907
|
+
/**
|
|
908
|
+
* GeneratePoetry请求参数结构体
|
|
909
|
+
*/
|
|
910
|
+
export interface GeneratePoetryRequest {
|
|
911
|
+
/**
|
|
912
|
+
* 生成诗词的关键词。
|
|
913
|
+
*/
|
|
914
|
+
Text: string;
|
|
915
|
+
/**
|
|
916
|
+
* 生成诗词的类型。0:藏头或藏身;1:藏头;2:藏身。默认为0。
|
|
917
|
+
*/
|
|
918
|
+
PoetryType?: number;
|
|
919
|
+
/**
|
|
920
|
+
* 诗的体裁。0:五言律诗或七言律诗;5:五言律诗;7:七言律诗。默认为0。
|
|
921
|
+
*/
|
|
922
|
+
Genre?: number;
|
|
923
|
+
}
|
|
856
924
|
/**
|
|
857
925
|
* CreateWordItems返回参数结构体
|
|
858
926
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AbstractClient } from "../../../common/abstract_client";
|
|
2
2
|
import { ClientConfig } from "../../../common/interface";
|
|
3
|
-
import { BatchSendEmailRequest, GetEmailTemplateRequest, ListSendTasksResponse, CreateReceiverResponse, CreateEmailTemplateRequest, ListEmailAddressResponse, ListEmailAddressRequest, ListReceiversRequest, GetEmailIdentityResponse, ListBlackEmailAddressRequest, ListSendTasksRequest, GetSendEmailStatusResponse, SendEmailRequest, DeleteBlackListRequest, BatchSendEmailResponse, DeleteEmailIdentityRequest, UpdateEmailIdentityRequest, GetEmailIdentityRequest, DeleteEmailIdentityResponse, GetStatisticsReportRequest, CreateReceiverRequest, DeleteEmailTemplateResponse, CreateEmailIdentityRequest, UpdateEmailIdentityResponse, DeleteEmailTemplateRequest, DeleteBlackListResponse, UpdateEmailTemplateRequest, ListEmailTemplatesRequest, CreateReceiverDetailWithDataResponse, CreateReceiverDetailResponse, ListEmailTemplatesResponse, SendEmailResponse, ListBlackEmailAddressResponse, GetSendEmailStatusRequest, DeleteReceiverRequest, ListEmailIdentitiesResponse, DeleteReceiverResponse, GetStatisticsReportResponse, DeleteEmailAddressRequest, DeleteEmailAddressResponse, CreateEmailIdentityResponse, CreateEmailAddressRequest, CreateReceiverDetailRequest, CreateEmailTemplateResponse, ListReceiversResponse, CreateEmailAddressResponse, UpdateEmailTemplateResponse, CreateReceiverDetailWithDataRequest, GetEmailTemplateResponse, ListEmailIdentitiesRequest } from "./ses_models";
|
|
3
|
+
import { BatchSendEmailRequest, GetEmailTemplateRequest, ListSendTasksResponse, CreateReceiverResponse, CreateEmailTemplateRequest, ListEmailAddressResponse, ListEmailAddressRequest, UpdateEmailSmtpPassWordResponse, ListReceiversRequest, GetEmailIdentityResponse, ListBlackEmailAddressRequest, ListSendTasksRequest, GetSendEmailStatusResponse, SendEmailRequest, DeleteBlackListRequest, BatchSendEmailResponse, DeleteEmailIdentityRequest, UpdateEmailIdentityRequest, GetEmailIdentityRequest, DeleteEmailIdentityResponse, GetStatisticsReportRequest, CreateReceiverRequest, DeleteEmailTemplateResponse, CreateEmailIdentityRequest, UpdateEmailSmtpPassWordRequest, UpdateEmailIdentityResponse, DeleteEmailTemplateRequest, DeleteBlackListResponse, UpdateEmailTemplateRequest, ListEmailTemplatesRequest, CreateReceiverDetailWithDataResponse, CreateReceiverDetailResponse, ListEmailTemplatesResponse, SendEmailResponse, ListBlackEmailAddressResponse, GetSendEmailStatusRequest, DeleteReceiverRequest, ListEmailIdentitiesResponse, DeleteReceiverResponse, GetStatisticsReportResponse, DeleteEmailAddressRequest, DeleteEmailAddressResponse, CreateEmailIdentityResponse, CreateEmailAddressRequest, CreateReceiverDetailRequest, CreateEmailTemplateResponse, ListReceiversResponse, CreateEmailAddressResponse, UpdateEmailTemplateResponse, CreateReceiverDetailWithDataRequest, GetEmailTemplateResponse, ListEmailIdentitiesRequest } from "./ses_models";
|
|
4
4
|
/**
|
|
5
5
|
* ses client
|
|
6
6
|
* @class
|
|
@@ -69,6 +69,10 @@ export declare class Client extends AbstractClient {
|
|
|
69
69
|
* 您可以通过此API批量发送TEXT或者HTML邮件,适用于营销类、通知类邮件。默认仅支持使用模板发送邮件。批量发送之前,需先创建收件人列表,和收件人地址,并通过收件人列表id来进行发送。批量发送任务支持定时发送和周期重复发送,定时发送需传TimedParam,周期重复发送需传CycleParam
|
|
70
70
|
*/
|
|
71
71
|
BatchSendEmail(req: BatchSendEmailRequest, cb?: (error: string, rep: BatchSendEmailResponse) => void): Promise<BatchSendEmailResponse>;
|
|
72
|
+
/**
|
|
73
|
+
* 设置邮箱的smtp密码。若要通过smtp发送邮件,必须为邮箱设置smtp密码。初始时,邮箱没有设置smtp密码,不能使用smtp的方式发送邮件。设置smtp密码后,可以修改密码。
|
|
74
|
+
*/
|
|
75
|
+
UpdateEmailSmtpPassWord(req: UpdateEmailSmtpPassWordRequest, cb?: (error: string, rep: UpdateEmailSmtpPassWordResponse) => void): Promise<UpdateEmailSmtpPassWordResponse>;
|
|
72
76
|
/**
|
|
73
77
|
* 删除发信模板
|
|
74
78
|
*/
|
|
@@ -119,6 +119,12 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
119
119
|
async BatchSendEmail(req, cb) {
|
|
120
120
|
return this.request("BatchSendEmail", req, cb);
|
|
121
121
|
}
|
|
122
|
+
/**
|
|
123
|
+
* 设置邮箱的smtp密码。若要通过smtp发送邮件,必须为邮箱设置smtp密码。初始时,邮箱没有设置smtp密码,不能使用smtp的方式发送邮件。设置smtp密码后,可以修改密码。
|
|
124
|
+
*/
|
|
125
|
+
async UpdateEmailSmtpPassWord(req, cb) {
|
|
126
|
+
return this.request("UpdateEmailSmtpPassWord", req, cb);
|
|
127
|
+
}
|
|
122
128
|
/**
|
|
123
129
|
* 删除发信模板
|
|
124
130
|
*/
|
|
@@ -123,6 +123,15 @@ export interface ListEmailAddressResponse {
|
|
|
123
123
|
* ListEmailAddress请求参数结构体
|
|
124
124
|
*/
|
|
125
125
|
export declare type ListEmailAddressRequest = null;
|
|
126
|
+
/**
|
|
127
|
+
* UpdateEmailSmtpPassWord返回参数结构体
|
|
128
|
+
*/
|
|
129
|
+
export interface UpdateEmailSmtpPassWordResponse {
|
|
130
|
+
/**
|
|
131
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
132
|
+
*/
|
|
133
|
+
RequestId?: string;
|
|
134
|
+
}
|
|
126
135
|
/**
|
|
127
136
|
* ListReceivers请求参数结构体
|
|
128
137
|
*/
|
|
@@ -569,6 +578,19 @@ export interface CreateEmailIdentityRequest {
|
|
|
569
578
|
*/
|
|
570
579
|
EmailIdentity: string;
|
|
571
580
|
}
|
|
581
|
+
/**
|
|
582
|
+
* UpdateEmailSmtpPassWord请求参数结构体
|
|
583
|
+
*/
|
|
584
|
+
export interface UpdateEmailSmtpPassWordRequest {
|
|
585
|
+
/**
|
|
586
|
+
* smtp密码,长度限制64
|
|
587
|
+
*/
|
|
588
|
+
Password: string;
|
|
589
|
+
/**
|
|
590
|
+
* 发信邮箱,长度限制128
|
|
591
|
+
*/
|
|
592
|
+
EmailAddress: string;
|
|
593
|
+
}
|
|
572
594
|
/**
|
|
573
595
|
* 收件人列表数据类型
|
|
574
596
|
*/
|
|
@@ -487,6 +487,26 @@ export interface Certificates {
|
|
|
487
487
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
488
488
|
*/
|
|
489
489
|
EncryptAlgorithm: string;
|
|
490
|
+
/**
|
|
491
|
+
* 上传CA证书的加密算法
|
|
492
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
493
|
+
*/
|
|
494
|
+
CAEncryptAlgorithms: Array<string>;
|
|
495
|
+
/**
|
|
496
|
+
* 上传CA证书的过期时间
|
|
497
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
498
|
+
*/
|
|
499
|
+
CAEndTimes: Array<string>;
|
|
500
|
+
/**
|
|
501
|
+
* 上传CA证书的通用名称
|
|
502
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
503
|
+
*/
|
|
504
|
+
CACommonNames: Array<string>;
|
|
505
|
+
/**
|
|
506
|
+
* 证书预审核信息
|
|
507
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
508
|
+
*/
|
|
509
|
+
PreAuditInfo: PreAuditInfo;
|
|
490
510
|
}
|
|
491
511
|
/**
|
|
492
512
|
* 获取证书列表(DescribeCertificates)返回参数键为 Certificates 数组下,key为CertificateExtra 的内容。
|
|
@@ -2106,6 +2126,26 @@ export interface RevokeCertificateRequest {
|
|
|
2106
2126
|
*/
|
|
2107
2127
|
Reason?: string;
|
|
2108
2128
|
}
|
|
2129
|
+
/**
|
|
2130
|
+
* 预审核信息列表
|
|
2131
|
+
*/
|
|
2132
|
+
export interface PreAuditInfo {
|
|
2133
|
+
/**
|
|
2134
|
+
* 证书总年限
|
|
2135
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2136
|
+
*/
|
|
2137
|
+
TotalPeriod: number;
|
|
2138
|
+
/**
|
|
2139
|
+
* 证书当前年限
|
|
2140
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2141
|
+
*/
|
|
2142
|
+
NowPeriod: number;
|
|
2143
|
+
/**
|
|
2144
|
+
* 证书预审核管理人ID
|
|
2145
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2146
|
+
*/
|
|
2147
|
+
ManagerId: string;
|
|
2148
|
+
}
|
|
2109
2149
|
/**
|
|
2110
2150
|
* 获取证书列表(DescribeCertificate)返回参数键为 SubmittedData 的内容。
|
|
2111
2151
|
*/
|
|
@@ -290,11 +290,11 @@ export interface LoginNodeOverview {
|
|
|
290
290
|
*/
|
|
291
291
|
export interface CFSOption {
|
|
292
292
|
/**
|
|
293
|
-
*
|
|
293
|
+
* 文件系统本地挂载路径。
|
|
294
294
|
*/
|
|
295
295
|
LocalPath: string;
|
|
296
296
|
/**
|
|
297
|
-
* 文件系统远程挂载ip
|
|
297
|
+
* 文件系统远程挂载ip及路径。
|
|
298
298
|
*/
|
|
299
299
|
RemotePath: string;
|
|
300
300
|
/**
|
|
@@ -850,15 +850,15 @@ export interface DescribeClustersResponse {
|
|
|
850
850
|
*/
|
|
851
851
|
export interface GooseFSOption {
|
|
852
852
|
/**
|
|
853
|
-
*
|
|
853
|
+
* 文件系统本地挂载路径。
|
|
854
854
|
*/
|
|
855
855
|
LocalPath: string;
|
|
856
856
|
/**
|
|
857
|
-
*
|
|
857
|
+
* 文件系统远程挂载路径。
|
|
858
858
|
*/
|
|
859
859
|
RemotePath: string;
|
|
860
860
|
/**
|
|
861
|
-
* 文件系统master的ip
|
|
861
|
+
* 文件系统master的ip和端口。
|
|
862
862
|
*/
|
|
863
863
|
Masters: Array<string>;
|
|
864
864
|
}
|
|
@@ -129,6 +129,10 @@ HYBRID_PAID:
|
|
|
129
129
|
* 服务限速限流相关配置
|
|
130
130
|
*/
|
|
131
131
|
ServiceLimit?: ServiceLimit;
|
|
132
|
+
/**
|
|
133
|
+
* 回调地址,用于回调创建服务状态信息,回调格式&内容详情见:[TI-ONE 接口回调说明](https://cloud.tencent.com/document/product/851/84292)
|
|
134
|
+
*/
|
|
135
|
+
CallbackUrl?: string;
|
|
132
136
|
}
|
|
133
137
|
/**
|
|
134
138
|
* 模型描述信息
|
|
@@ -1154,6 +1158,10 @@ export interface CreateBatchTaskRequest {
|
|
|
1154
1158
|
* 备注
|
|
1155
1159
|
*/
|
|
1156
1160
|
Remark?: string;
|
|
1161
|
+
/**
|
|
1162
|
+
* 任务执行结果回调URL,仅支持http和https。回调格式&内容详见: [TI-ONE 接口回调说明](https://cloud.tencent.com/document/product/851/84292)
|
|
1163
|
+
*/
|
|
1164
|
+
CallbackUrl?: string;
|
|
1157
1165
|
}
|
|
1158
1166
|
/**
|
|
1159
1167
|
* DescribeLatestTrainingMetrics返回参数结构体
|
|
@@ -2767,7 +2775,7 @@ export interface CreateTrainingTaskResponse {
|
|
|
2767
2775
|
/**
|
|
2768
2776
|
* 训练任务ID
|
|
2769
2777
|
*/
|
|
2770
|
-
Id
|
|
2778
|
+
Id?: string;
|
|
2771
2779
|
/**
|
|
2772
2780
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
2773
2781
|
*/
|
|
@@ -2879,6 +2887,10 @@ export interface CreateTrainingTaskRequest {
|
|
|
2879
2887
|
* 数据来源,eg:DATASET、COS、CFS、HDFS
|
|
2880
2888
|
*/
|
|
2881
2889
|
DataSource?: string;
|
|
2890
|
+
/**
|
|
2891
|
+
* 回调地址,用于创建/启动/停止训练任务的异步回调。回调格式&内容详见:[[TI-ONE接口回调说明]](https://cloud.tencent.com/document/product/851/84292)
|
|
2892
|
+
*/
|
|
2893
|
+
CallbackUrl?: string;
|
|
2882
2894
|
}
|
|
2883
2895
|
/**
|
|
2884
2896
|
* 实例状况
|
|
@@ -3696,7 +3708,7 @@ export interface CreateModelServiceResponse {
|
|
|
3696
3708
|
* 生成的模型服务
|
|
3697
3709
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
3698
3710
|
*/
|
|
3699
|
-
Service
|
|
3711
|
+
Service?: Service;
|
|
3700
3712
|
/**
|
|
3701
3713
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
3702
3714
|
*/
|
|
@@ -4334,6 +4346,11 @@ export interface TrainingTaskDetail {
|
|
|
4334
4346
|
* 任务状态,eg:STARTING启动中、RUNNING运行中、STOPPING停止中、STOPPED已停止、FAILED异常、SUCCEED已完成
|
|
4335
4347
|
*/
|
|
4336
4348
|
Status: string;
|
|
4349
|
+
/**
|
|
4350
|
+
* 回调地址
|
|
4351
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4352
|
+
*/
|
|
4353
|
+
CallbackUrl: string;
|
|
4337
4354
|
}
|
|
4338
4355
|
/**
|
|
4339
4356
|
* DescribeTrainingTasks返回参数结构体
|
|
@@ -4685,6 +4702,11 @@ export interface TrainingTaskSetItem {
|
|
|
4685
4702
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
4686
4703
|
*/
|
|
4687
4704
|
Tags: Array<Tag>;
|
|
4705
|
+
/**
|
|
4706
|
+
* 回调地址
|
|
4707
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4708
|
+
*/
|
|
4709
|
+
CallbackUrl: string;
|
|
4688
4710
|
}
|
|
4689
4711
|
/**
|
|
4690
4712
|
* DescribeTrainingModelVersions返回参数结构体
|
|
@@ -744,15 +744,15 @@ export interface SdkAppIdNewTrtcTimeUsage {
|
|
|
744
744
|
*/
|
|
745
745
|
export interface EncodeParams {
|
|
746
746
|
/**
|
|
747
|
-
* 混流-输出流音频采样率。取值为[48000, 44100, 32000, 24000, 16000, 8000],单位是Hz
|
|
747
|
+
* 混流-输出流音频采样率。取值为[48000, 44100, 32000, 24000, 16000, 8000],单位是Hz。混流任务发起过程中,为了保持CDN链接的稳定,不要修改音频参数(codec、采样率、码率、声道数)。
|
|
748
748
|
*/
|
|
749
749
|
AudioSampleRate: number;
|
|
750
750
|
/**
|
|
751
|
-
* 混流-输出流音频码率。取值范围[8,500],单位为kbps
|
|
751
|
+
* 混流-输出流音频码率。取值范围[8,500],单位为kbps。混流任务发起过程中,为了保持CDN链接的稳定,不要修改音频参数(codec、采样率、码率、声道数)。
|
|
752
752
|
*/
|
|
753
753
|
AudioBitrate: number;
|
|
754
754
|
/**
|
|
755
|
-
* 混流-输出流音频声道数,取值范围[1,2],1表示混流输出音频为单声道,2
|
|
755
|
+
* 混流-输出流音频声道数,取值范围[1,2],1表示混流输出音频为单声道,2表示混流输出音频为双声道。混流任务发起过程中,为了保持CDN链接的稳定,不要修改音频参数(codec、采样率、码率、声道数)。
|
|
756
756
|
*/
|
|
757
757
|
AudioChannels: number;
|
|
758
758
|
/**
|
|
@@ -791,7 +791,7 @@ export interface EncodeParams {
|
|
|
791
791
|
*/
|
|
792
792
|
BackgroundImageId?: number;
|
|
793
793
|
/**
|
|
794
|
-
* 混流-输出流音频编码类型,取值范围[0,1, 2],0为LC-AAC,1为HE-AAC,2为HE-AACv2。默认值为0。当音频编码设置为HE-AACv2时,只支持输出流音频声道数为双声道。HE-AAC和HE-AACv2支持的输出流音频采样率范围为[48000, 44100, 32000, 24000, 16000]
|
|
794
|
+
* 混流-输出流音频编码类型,取值范围[0,1, 2],0为LC-AAC,1为HE-AAC,2为HE-AACv2。默认值为0。当音频编码设置为HE-AACv2时,只支持输出流音频声道数为双声道。HE-AAC和HE-AACv2支持的输出流音频采样率范围为[48000, 44100, 32000, 24000, 16000]。混流任务发起过程中,为了保持CDN链接的稳定,不要修改音频参数(codec、采样率、码率、声道数)。
|
|
795
795
|
*/
|
|
796
796
|
AudioCodec?: number;
|
|
797
797
|
/**
|
|
@@ -941,7 +941,7 @@ export declare class Client extends AbstractClient {
|
|
|
941
941
|
DisassociateAddress(req: DisassociateAddressRequest, cb?: (error: string, rep: DisassociateAddressResponse) => void): Promise<DisassociateAddressResponse>;
|
|
942
942
|
/**
|
|
943
943
|
* 本接口(ReturnNormalAddresses)用于解绑并释放普通公网IP。
|
|
944
|
-
为完善公网IP的访问管理功能,此接口于2022年12月15日升级优化鉴权功能,升级后子用户调用此接口需向主账号申请CAM策略授权,否则可能调用失败。您可以提前为子账号配置操作授权,详情见
|
|
944
|
+
为完善公网IP的访问管理功能,此接口于2022年12月15日升级优化鉴权功能,升级后子用户调用此接口需向主账号申请CAM策略授权,否则可能调用失败。您可以提前为子账号配置操作授权,详情见[授权指南](https://cloud.tencent.com/document/product/598/34545)。
|
|
945
945
|
*/
|
|
946
946
|
ReturnNormalAddresses(req: ReturnNormalAddressesRequest, cb?: (error: string, rep: ReturnNormalAddressesResponse) => void): Promise<ReturnNormalAddressesResponse>;
|
|
947
947
|
/**
|
|
@@ -1347,7 +1347,7 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
1347
1347
|
}
|
|
1348
1348
|
/**
|
|
1349
1349
|
* 本接口(ReturnNormalAddresses)用于解绑并释放普通公网IP。
|
|
1350
|
-
为完善公网IP的访问管理功能,此接口于2022年12月15日升级优化鉴权功能,升级后子用户调用此接口需向主账号申请CAM策略授权,否则可能调用失败。您可以提前为子账号配置操作授权,详情见
|
|
1350
|
+
为完善公网IP的访问管理功能,此接口于2022年12月15日升级优化鉴权功能,升级后子用户调用此接口需向主账号申请CAM策略授权,否则可能调用失败。您可以提前为子账号配置操作授权,详情见[授权指南](https://cloud.tencent.com/document/product/598/34545)。
|
|
1351
1351
|
*/
|
|
1352
1352
|
async ReturnNormalAddresses(req, cb) {
|
|
1353
1353
|
return this.request("ReturnNormalAddresses", req, cb);
|
|
@@ -1366,13 +1366,10 @@ export interface ModifyBandwidthPackageAttributeRequest {
|
|
|
1366
1366
|
*/
|
|
1367
1367
|
BandwidthPackageName: string;
|
|
1368
1368
|
/**
|
|
1369
|
-
*
|
|
1369
|
+
* 带宽包计费模式,示例 :
|
|
1370
|
+
'TOP5_POSTPAID_BY_MONTH'(后付费-TOP5计费)
|
|
1370
1371
|
*/
|
|
1371
1372
|
ChargeType?: string;
|
|
1372
|
-
/**
|
|
1373
|
-
* 退款时迁移为后付费带宽包。默认值:否
|
|
1374
|
-
*/
|
|
1375
|
-
MigrateOnRefund?: boolean;
|
|
1376
1373
|
}
|
|
1377
1374
|
/**
|
|
1378
1375
|
* TransformAddress返回参数结构体
|
|
@@ -6778,9 +6775,13 @@ export interface CreateVpcEndPointServiceRequest {
|
|
|
6778
6775
|
*/
|
|
6779
6776
|
ServiceInstanceId: string;
|
|
6780
6777
|
/**
|
|
6781
|
-
*
|
|
6778
|
+
* ~~是否是PassService类型。该字段已废弃,请不要使用该字段。~~
|
|
6782
6779
|
*/
|
|
6783
6780
|
IsPassService?: boolean;
|
|
6781
|
+
/**
|
|
6782
|
+
* 挂载的PAAS服务类型,CLB,CDB,CRS,不填默认挂载为CLB。
|
|
6783
|
+
*/
|
|
6784
|
+
ServiceType?: string;
|
|
6784
6785
|
}
|
|
6785
6786
|
/**
|
|
6786
6787
|
* `IPv6`地址信息。
|
|
@@ -7536,6 +7537,10 @@ AnycastEIP是否用于绑定负载均衡。
|
|
|
7536
7537
|
* EIP名称,用于申请EIP时用户自定义该EIP的个性化名称,默认值:未命名
|
|
7537
7538
|
*/
|
|
7538
7539
|
AddressName?: string;
|
|
7540
|
+
/**
|
|
7541
|
+
* 网络出口,默认是:center_egress1
|
|
7542
|
+
*/
|
|
7543
|
+
Egress?: string;
|
|
7539
7544
|
}
|
|
7540
7545
|
/**
|
|
7541
7546
|
* 合规化审批单
|
|
@@ -48,6 +48,16 @@ it("ccc.v20200210.DescribeStaffInfoList", async function () {
|
|
|
48
48
|
}
|
|
49
49
|
})
|
|
50
50
|
|
|
51
|
+
it("ccc.v20200210.HangUpCall", async function () {
|
|
52
|
+
try {
|
|
53
|
+
const data = await client.HangUpCall({})
|
|
54
|
+
expect(data).to.be.ok
|
|
55
|
+
} catch(error) {
|
|
56
|
+
expect(error.requestId).to.be.ok
|
|
57
|
+
expect(error.code).to.be.ok
|
|
58
|
+
}
|
|
59
|
+
})
|
|
60
|
+
|
|
51
61
|
it("ccc.v20200210.DescribePSTNActiveSessionList", async function () {
|
|
52
62
|
try {
|
|
53
63
|
const data = await client.DescribePSTNActiveSessionList({})
|
|
@@ -98,6 +98,16 @@ it("nlp.v20190408.CreateDict", async function () {
|
|
|
98
98
|
}
|
|
99
99
|
})
|
|
100
100
|
|
|
101
|
+
it("nlp.v20190408.GeneratePoetry", async function () {
|
|
102
|
+
try {
|
|
103
|
+
const data = await client.GeneratePoetry({})
|
|
104
|
+
expect(data).to.be.ok
|
|
105
|
+
} catch(error) {
|
|
106
|
+
expect(error.requestId).to.be.ok
|
|
107
|
+
expect(error.code).to.be.ok
|
|
108
|
+
}
|
|
109
|
+
})
|
|
110
|
+
|
|
101
111
|
it("nlp.v20190408.TextClassification", async function () {
|
|
102
112
|
try {
|
|
103
113
|
const data = await client.TextClassification({})
|
|
@@ -148,6 +158,16 @@ it("nlp.v20190408.TextCorrection", async function () {
|
|
|
148
158
|
}
|
|
149
159
|
})
|
|
150
160
|
|
|
161
|
+
it("nlp.v20190408.GenerateCouplet", async function () {
|
|
162
|
+
try {
|
|
163
|
+
const data = await client.GenerateCouplet({})
|
|
164
|
+
expect(data).to.be.ok
|
|
165
|
+
} catch(error) {
|
|
166
|
+
expect(error.requestId).to.be.ok
|
|
167
|
+
expect(error.code).to.be.ok
|
|
168
|
+
}
|
|
169
|
+
})
|
|
170
|
+
|
|
151
171
|
it("nlp.v20190408.CreateWordItems", async function () {
|
|
152
172
|
try {
|
|
153
173
|
const data = await client.CreateWordItems({})
|
|
@@ -168,6 +168,16 @@ it("ses.v20201002.BatchSendEmail", async function () {
|
|
|
168
168
|
}
|
|
169
169
|
})
|
|
170
170
|
|
|
171
|
+
it("ses.v20201002.UpdateEmailSmtpPassWord", async function () {
|
|
172
|
+
try {
|
|
173
|
+
const data = await client.UpdateEmailSmtpPassWord({})
|
|
174
|
+
expect(data).to.be.ok
|
|
175
|
+
} catch(error) {
|
|
176
|
+
expect(error.requestId).to.be.ok
|
|
177
|
+
expect(error.code).to.be.ok
|
|
178
|
+
}
|
|
179
|
+
})
|
|
180
|
+
|
|
171
181
|
it("ses.v20201002.DeleteEmailTemplate", async function () {
|
|
172
182
|
try {
|
|
173
183
|
const data = await client.DeleteEmailTemplate({})
|