tccli 3.0.897.1__py2.py3-none-any.whl → 3.0.899.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/examples/cdn/v20180606/ModifyDomainConfig.md +88 -0
- tccli/examples/cfs/v20190719/CreateMigrationTask.md +1 -1
- tccli/examples/cfs/v20190719/DeleteMigrationTask.md +1 -1
- tccli/examples/cfs/v20190719/ModifyFileSystemAutoScaleUpRule.md +1 -1
- tccli/examples/cfs/v20190719/ScaleUpFileSystem.md +1 -1
- tccli/examples/ckafka/v20190819/CreatePostPaidInstance.md +154 -0
- tccli/examples/cls/v20201016/DeleteShipper.md +2 -2
- tccli/examples/cls/v20201016/ModifyShipper.md +2 -2
- tccli/examples/cynosdb/v20190107/DescribeSupportProxyVersion.md +24 -0
- tccli/examples/ess/v20201111/CreateFlowApprovers.md +3 -1
- tccli/examples/ess/v20201111/DescribeThirdPartyAuthCode.md +1 -1
- tccli/examples/live/v20180801/DescribeLiveDomains.md +1 -1
- tccli/examples/nlp/v20190408/AnalyzeSentiment.md +24 -0
- tccli/examples/nlp/v20190408/ClassifyContent.md +39 -0
- tccli/examples/nlp/v20190408/ComposeCouplet.md +27 -0
- tccli/examples/nlp/v20190408/ComposePoetry.md +29 -0
- tccli/examples/postgres/v20170312/CreateReadOnlyDBInstance.md +1 -1
- tccli/examples/postgres/v20170312/UpgradeDBInstanceKernelVersion.md +1 -1
- tccli/examples/sqlserver/v20180328/DescribeDBInstancesAttribute.md +6 -1
- tccli/examples/sqlserver/v20180328/DescribeDBs.md +1 -1
- tccli/examples/tdmq/v20200217/CreateCmqQueue.md +2 -2
- tccli/examples/tke/v20180525/CreateClusterEndpointVip.md +1 -1
- tccli/examples/trp/v20210515/CreateCodeBatch.md +11 -5
- tccli/examples/trp/v20210515/DescribeScanLogs.md +1 -1
- tccli/examples/trp/v20210515/DescribeTraceCodeById.md +16 -11
- tccli/examples/trp/v20210515/ModifyCodeBatch.md +3 -3
- tccli/examples/waf/v20180125/ModifySpartaProtection.md +154 -0
- tccli/examples/wedata/v20210820/DescribeDimensionScore.md +15 -3
- tccli/examples/wedata/v20210820/DescribeQualityScore.md +1 -1
- tccli/examples/wedata/v20210820/DescribeQualityScoreTrend.md +10 -2
- tccli/examples/wedata/v20210820/DescribeTableQualityDetails.md +1 -1
- tccli/examples/wedata/v20210820/DescribeTableScoreTrend.md +10 -2
- tccli/services/antiddos/v20200309/api.json +45 -26
- tccli/services/apigateway/v20180808/api.json +17 -28
- tccli/services/asr/v20190614/api.json +3 -2
- tccli/services/cdb/v20170320/api.json +16 -11
- tccli/services/cdn/cdn_client.py +57 -4
- tccli/services/cdn/v20180606/api.json +52 -0
- tccli/services/cdn/v20180606/examples.json +26 -0
- tccli/services/cfs/v20190719/api.json +7 -0
- tccli/services/cfs/v20190719/examples.json +4 -4
- tccli/services/ckafka/ckafka_client.py +61 -8
- tccli/services/ckafka/v20190819/api.json +296 -6
- tccli/services/ckafka/v20190819/examples.json +20 -0
- tccli/services/cls/v20201016/api.json +3 -4
- tccli/services/cls/v20201016/examples.json +4 -4
- tccli/services/cynosdb/cynosdb_client.py +53 -0
- tccli/services/cynosdb/v20190107/api.json +72 -0
- tccli/services/cynosdb/v20190107/examples.json +8 -0
- tccli/services/ess/v20201111/api.json +44 -11
- tccli/services/ess/v20201111/examples.json +3 -3
- tccli/services/essbasic/v20210526/api.json +27 -1
- tccli/services/live/v20180801/api.json +4 -11
- tccli/services/live/v20180801/examples.json +1 -1
- tccli/services/nlp/nlp_client.py +216 -4
- tccli/services/nlp/v20190408/api.json +329 -0
- tccli/services/nlp/v20190408/examples.json +32 -0
- tccli/services/postgres/v20170312/api.json +2 -31
- tccli/services/postgres/v20170312/examples.json +2 -2
- tccli/services/sqlserver/v20180328/api.json +72 -15
- tccli/services/sqlserver/v20180328/examples.json +3 -3
- tccli/services/tbaas/tbaas_client.py +4 -322
- tccli/services/tbaas/v20180416/api.json +123 -825
- tccli/services/tbaas/v20180416/examples.json +0 -48
- tccli/services/tdid/tdid_client.py +60 -1650
- tccli/services/tdid/v20210519/api.json +394 -3848
- tccli/services/tdid/v20210519/examples.json +0 -240
- tccli/services/tdmq/v20200217/api.json +2 -19
- tccli/services/tdmq/v20200217/examples.json +2 -2
- tccli/services/tione/v20211111/api.json +24 -2
- tccli/services/tke/v20180525/api.json +4 -6
- tccli/services/tke/v20180525/examples.json +2 -2
- tccli/services/trp/v20210515/api.json +285 -113
- tccli/services/trp/v20210515/examples.json +6 -6
- tccli/services/tts/v20190823/api.json +7 -3
- tccli/services/waf/v20180125/api.json +401 -0
- tccli/services/waf/v20180125/examples.json +26 -0
- tccli/services/waf/waf_client.py +57 -4
- tccli/services/wedata/v20210820/api.json +151 -83
- tccli/services/wedata/v20210820/examples.json +8 -8
- {tccli-3.0.897.1.dist-info → tccli-3.0.899.1.dist-info}/METADATA +2 -2
- {tccli-3.0.897.1.dist-info → tccli-3.0.899.1.dist-info}/RECORD +86 -78
- {tccli-3.0.897.1.dist-info → tccli-3.0.899.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.897.1.dist-info → tccli-3.0.899.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.897.1.dist-info → tccli-3.0.899.1.dist-info}/license_files/LICENSE +0 -0
@@ -1,5 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"actions": {
|
3
|
+
"AnalyzeSentiment": {
|
4
|
+
"document": "情感分析接口能够对带有情感色彩的主观性文本进行分析、处理、归纳和推理,识别出用户的情感倾向,是积极、中性还是消极,并且提供各自概率。",
|
5
|
+
"input": "AnalyzeSentimentRequest",
|
6
|
+
"name": "情感分析V2",
|
7
|
+
"output": "AnalyzeSentimentResponse",
|
8
|
+
"status": "online"
|
9
|
+
},
|
3
10
|
"AutoSummarization": {
|
4
11
|
"document": "因业务调整该接口将于北京时间2023年8月1日0点下线,届时该产品功能将无法正常使用,为了避免对您的业务造成影响,请您尽快做好相关业务调整。详见:https://cloud.tencent.com/document/product/271/90711\n\n利用人工智能算法,自动抽取文本中的关键信息并生成指定长度的文本摘要。可用于新闻标题生成、科技文献摘要生成和商品评论摘要等。",
|
5
12
|
"input": "AutoSummarizationRequest",
|
@@ -14,6 +21,27 @@
|
|
14
21
|
"output": "ChatBotResponse",
|
15
22
|
"status": "deprecated"
|
16
23
|
},
|
24
|
+
"ClassifyContent": {
|
25
|
+
"document": "文本分类接口能够对用户输入的文章进行自动分类,将其映射到具体的类目上,用户只需要提供待分类的文本,而无需关注具体实现。该功能定义了一套较为完备的[三级分类体系](https://cloud.tencent.com/document/product/271/94286),积累了数百万的语料,经过多轮迭代优化打造了较先进的深度学习模型,以保证效果不断提升。",
|
26
|
+
"input": "ClassifyContentRequest",
|
27
|
+
"name": "文本分类V2",
|
28
|
+
"output": "ClassifyContentResponse",
|
29
|
+
"status": "online"
|
30
|
+
},
|
31
|
+
"ComposeCouplet": {
|
32
|
+
"document": "对联生成接口根据用户输入的命题关键词,智能生成一副完整的春联,包括上联、下联和横批。该接口利用先进的自然语言处理技术,确保生成的春联既符合传统对仗、对韵、对义的要求,又具有新意和创意,为用户提供独特的春节祝福。",
|
33
|
+
"input": "ComposeCoupletRequest",
|
34
|
+
"name": "对联生成",
|
35
|
+
"output": "ComposeCoupletResponse",
|
36
|
+
"status": "online"
|
37
|
+
},
|
38
|
+
"ComposePoetry": {
|
39
|
+
"document": "诗词生成接口利用现代的自然语言处理和深度学习技术,模仿了古代著名诗人的风格,为用户产生独特的诗词。用户只需输入的命题关键词,接口就能自动生成一首七言律诗或五言律诗。",
|
40
|
+
"input": "ComposePoetryRequest",
|
41
|
+
"name": "诗词生成",
|
42
|
+
"output": "ComposePoetryResponse",
|
43
|
+
"status": "online"
|
44
|
+
},
|
17
45
|
"CreateDict": {
|
18
46
|
"document": "因业务调整该接口将于北京时间2023年8月1日0点下线,届时该产品功能将无法正常使用,为了避免对您的业务造成影响,请您尽快做好相关业务调整。详见:https://cloud.tencent.com/document/product/271/90711\n\n根据指定的名称、描述创建自定义词库。",
|
19
47
|
"input": "CreateDictRequest",
|
@@ -246,6 +274,69 @@
|
|
246
274
|
"serviceShortName": "nlp"
|
247
275
|
},
|
248
276
|
"objects": {
|
277
|
+
"AnalyzeSentimentRequest": {
|
278
|
+
"document": "AnalyzeSentiment请求参数结构体",
|
279
|
+
"members": [
|
280
|
+
{
|
281
|
+
"disabled": false,
|
282
|
+
"document": "待分析的文本(仅支持UTF-8格式,不超过200字)。",
|
283
|
+
"example": "无",
|
284
|
+
"member": "string",
|
285
|
+
"name": "Text",
|
286
|
+
"required": true,
|
287
|
+
"type": "string"
|
288
|
+
}
|
289
|
+
],
|
290
|
+
"type": "object"
|
291
|
+
},
|
292
|
+
"AnalyzeSentimentResponse": {
|
293
|
+
"document": "AnalyzeSentiment返回参数结构体",
|
294
|
+
"members": [
|
295
|
+
{
|
296
|
+
"disabled": false,
|
297
|
+
"document": "正面情感概率。",
|
298
|
+
"example": "无",
|
299
|
+
"member": "float",
|
300
|
+
"name": "Positive",
|
301
|
+
"type": "float",
|
302
|
+
"value_allowed_null": false
|
303
|
+
},
|
304
|
+
{
|
305
|
+
"disabled": false,
|
306
|
+
"document": "中性情感概率。",
|
307
|
+
"example": "无",
|
308
|
+
"member": "float",
|
309
|
+
"name": "Neutral",
|
310
|
+
"type": "float",
|
311
|
+
"value_allowed_null": false
|
312
|
+
},
|
313
|
+
{
|
314
|
+
"disabled": false,
|
315
|
+
"document": "负面情感概率。",
|
316
|
+
"example": "无",
|
317
|
+
"member": "float",
|
318
|
+
"name": "Negative",
|
319
|
+
"type": "float",
|
320
|
+
"value_allowed_null": false
|
321
|
+
},
|
322
|
+
{
|
323
|
+
"disabled": false,
|
324
|
+
"document": "情感分类结果:\npositive:正面情感\nnegative:负面情感\nneutral:中性、无情感",
|
325
|
+
"example": "无",
|
326
|
+
"member": "string",
|
327
|
+
"name": "Sentiment",
|
328
|
+
"type": "string",
|
329
|
+
"value_allowed_null": false
|
330
|
+
},
|
331
|
+
{
|
332
|
+
"document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
|
333
|
+
"member": "string",
|
334
|
+
"name": "RequestId",
|
335
|
+
"type": "string"
|
336
|
+
}
|
337
|
+
],
|
338
|
+
"type": "object"
|
339
|
+
},
|
249
340
|
"AutoSummarizationRequest": {
|
250
341
|
"document": "AutoSummarization请求参数结构体",
|
251
342
|
"members": [
|
@@ -376,6 +467,52 @@
|
|
376
467
|
],
|
377
468
|
"usage": "in"
|
378
469
|
},
|
470
|
+
"Category": {
|
471
|
+
"document": "分类详细信息",
|
472
|
+
"members": [
|
473
|
+
{
|
474
|
+
"disabled": false,
|
475
|
+
"document": "分类id。\n注意:此字段可能返回 null,表示取不到有效值。",
|
476
|
+
"example": "无",
|
477
|
+
"member": "int64",
|
478
|
+
"name": "Id",
|
479
|
+
"required": false,
|
480
|
+
"type": "int",
|
481
|
+
"value_allowed_null": true
|
482
|
+
},
|
483
|
+
{
|
484
|
+
"disabled": false,
|
485
|
+
"document": "分类英文名。\n注意:此字段可能返回 null,表示取不到有效值。",
|
486
|
+
"example": "无",
|
487
|
+
"member": "string",
|
488
|
+
"name": "Label",
|
489
|
+
"required": false,
|
490
|
+
"type": "string",
|
491
|
+
"value_allowed_null": true
|
492
|
+
},
|
493
|
+
{
|
494
|
+
"disabled": false,
|
495
|
+
"document": "分类中文名。\n注意:此字段可能返回 null,表示取不到有效值。",
|
496
|
+
"example": "无",
|
497
|
+
"member": "string",
|
498
|
+
"name": "Name",
|
499
|
+
"required": false,
|
500
|
+
"type": "string",
|
501
|
+
"value_allowed_null": true
|
502
|
+
},
|
503
|
+
{
|
504
|
+
"disabled": false,
|
505
|
+
"document": "分类置信度。\n注意:此字段可能返回 null,表示取不到有效值。",
|
506
|
+
"example": "无",
|
507
|
+
"member": "float",
|
508
|
+
"name": "Score",
|
509
|
+
"required": false,
|
510
|
+
"type": "float",
|
511
|
+
"value_allowed_null": true
|
512
|
+
}
|
513
|
+
],
|
514
|
+
"usage": "out"
|
515
|
+
},
|
379
516
|
"ChatBotRequest": {
|
380
517
|
"document": "ChatBot请求参数结构体",
|
381
518
|
"members": [
|
@@ -560,6 +697,198 @@
|
|
560
697
|
],
|
561
698
|
"usage": "in"
|
562
699
|
},
|
700
|
+
"ClassifyContentRequest": {
|
701
|
+
"document": "ClassifyContent请求参数结构体",
|
702
|
+
"members": [
|
703
|
+
{
|
704
|
+
"disabled": false,
|
705
|
+
"document": "待分类的文章的标题(仅支持UTF-8格式,不超过100字符)。",
|
706
|
+
"example": "无",
|
707
|
+
"member": "string",
|
708
|
+
"name": "Title",
|
709
|
+
"required": true,
|
710
|
+
"type": "string"
|
711
|
+
},
|
712
|
+
{
|
713
|
+
"disabled": false,
|
714
|
+
"document": "待分类文章的内容, 每个元素对应一个段落。(仅支持UTF-8格式,文章内容长度总和不超过2000字符)",
|
715
|
+
"example": "无",
|
716
|
+
"member": "string",
|
717
|
+
"name": "Content",
|
718
|
+
"required": true,
|
719
|
+
"type": "list"
|
720
|
+
}
|
721
|
+
],
|
722
|
+
"type": "object"
|
723
|
+
},
|
724
|
+
"ClassifyContentResponse": {
|
725
|
+
"document": "ClassifyContent返回参数结构体",
|
726
|
+
"members": [
|
727
|
+
{
|
728
|
+
"disabled": false,
|
729
|
+
"document": "一级分类。分类详情见附录-三级分类体系表。",
|
730
|
+
"example": "无",
|
731
|
+
"member": "Category",
|
732
|
+
"name": "FirstClassification",
|
733
|
+
"output_required": true,
|
734
|
+
"type": "object",
|
735
|
+
"value_allowed_null": false
|
736
|
+
},
|
737
|
+
{
|
738
|
+
"disabled": false,
|
739
|
+
"document": "二级分类。分类详情见附录-三级分类体系表。",
|
740
|
+
"example": "无",
|
741
|
+
"member": "Category",
|
742
|
+
"name": "SecondClassification",
|
743
|
+
"output_required": true,
|
744
|
+
"type": "object",
|
745
|
+
"value_allowed_null": false
|
746
|
+
},
|
747
|
+
{
|
748
|
+
"disabled": false,
|
749
|
+
"document": "三级分类。分类详情见附录-三级分类体系表。\n注意:此字段可能返回 null,表示取不到有效值。",
|
750
|
+
"example": "无",
|
751
|
+
"member": "Category",
|
752
|
+
"name": "ThirdClassification",
|
753
|
+
"output_required": true,
|
754
|
+
"type": "object",
|
755
|
+
"value_allowed_null": true
|
756
|
+
},
|
757
|
+
{
|
758
|
+
"document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
|
759
|
+
"member": "string",
|
760
|
+
"name": "RequestId",
|
761
|
+
"type": "string"
|
762
|
+
}
|
763
|
+
],
|
764
|
+
"type": "object"
|
765
|
+
},
|
766
|
+
"ComposeCoupletRequest": {
|
767
|
+
"document": "ComposeCouplet请求参数结构体",
|
768
|
+
"members": [
|
769
|
+
{
|
770
|
+
"disabled": false,
|
771
|
+
"document": "生成对联的关键词。长度需>=2,当长度>2时,自动截取前两个字作为关键字。内容需为常用汉字(不含有数字、英文、韩语、日语、符号等等其他)。",
|
772
|
+
"example": "小鸡",
|
773
|
+
"member": "string",
|
774
|
+
"name": "Text",
|
775
|
+
"required": true,
|
776
|
+
"type": "string"
|
777
|
+
},
|
778
|
+
{
|
779
|
+
"disabled": false,
|
780
|
+
"document": "返回的文本结果为繁体还是简体。0:简体;1:繁体。默认为0。",
|
781
|
+
"example": "0",
|
782
|
+
"member": "int64",
|
783
|
+
"name": "TargetType",
|
784
|
+
"required": false,
|
785
|
+
"type": "int"
|
786
|
+
}
|
787
|
+
],
|
788
|
+
"type": "object"
|
789
|
+
},
|
790
|
+
"ComposeCoupletResponse": {
|
791
|
+
"document": "ComposeCouplet返回参数结构体",
|
792
|
+
"members": [
|
793
|
+
{
|
794
|
+
"disabled": false,
|
795
|
+
"document": "横批。",
|
796
|
+
"example": "满园春色",
|
797
|
+
"member": "string",
|
798
|
+
"name": "TopScroll",
|
799
|
+
"type": "string",
|
800
|
+
"value_allowed_null": false
|
801
|
+
},
|
802
|
+
{
|
803
|
+
"disabled": false,
|
804
|
+
"document": "上联与下联。",
|
805
|
+
"example": "无",
|
806
|
+
"member": "string",
|
807
|
+
"name": "Content",
|
808
|
+
"type": "list",
|
809
|
+
"value_allowed_null": false
|
810
|
+
},
|
811
|
+
{
|
812
|
+
"disabled": false,
|
813
|
+
"document": "当对联随机生成时,展示随机生成原因。",
|
814
|
+
"example": "无",
|
815
|
+
"member": "string",
|
816
|
+
"name": "RandomCause",
|
817
|
+
"type": "string",
|
818
|
+
"value_allowed_null": false
|
819
|
+
},
|
820
|
+
{
|
821
|
+
"document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
|
822
|
+
"member": "string",
|
823
|
+
"name": "RequestId",
|
824
|
+
"type": "string"
|
825
|
+
}
|
826
|
+
],
|
827
|
+
"type": "object"
|
828
|
+
},
|
829
|
+
"ComposePoetryRequest": {
|
830
|
+
"document": "ComposePoetry请求参数结构体",
|
831
|
+
"members": [
|
832
|
+
{
|
833
|
+
"disabled": false,
|
834
|
+
"document": "生成诗词的关键词。",
|
835
|
+
"example": "阳光",
|
836
|
+
"member": "string",
|
837
|
+
"name": "Text",
|
838
|
+
"required": true,
|
839
|
+
"type": "string"
|
840
|
+
},
|
841
|
+
{
|
842
|
+
"disabled": false,
|
843
|
+
"document": "生成诗词的类型。0:藏头或藏身;1:藏头;2:藏身。默认为0。",
|
844
|
+
"example": "0",
|
845
|
+
"member": "int64",
|
846
|
+
"name": "PoetryType",
|
847
|
+
"required": false,
|
848
|
+
"type": "int"
|
849
|
+
},
|
850
|
+
{
|
851
|
+
"disabled": false,
|
852
|
+
"document": "诗的体裁。0:五言律诗或七言律诗;5:五言律诗;7:七言律诗。默认为0。",
|
853
|
+
"example": "7",
|
854
|
+
"member": "int64",
|
855
|
+
"name": "Genre",
|
856
|
+
"required": false,
|
857
|
+
"type": "int"
|
858
|
+
}
|
859
|
+
],
|
860
|
+
"type": "object"
|
861
|
+
},
|
862
|
+
"ComposePoetryResponse": {
|
863
|
+
"document": "ComposePoetry返回参数结构体",
|
864
|
+
"members": [
|
865
|
+
{
|
866
|
+
"disabled": false,
|
867
|
+
"document": "诗题,即输入的生成诗词的关键词。",
|
868
|
+
"example": "阳光",
|
869
|
+
"member": "string",
|
870
|
+
"name": "Title",
|
871
|
+
"type": "string",
|
872
|
+
"value_allowed_null": false
|
873
|
+
},
|
874
|
+
{
|
875
|
+
"disabled": false,
|
876
|
+
"document": "诗的内容。",
|
877
|
+
"example": "无",
|
878
|
+
"member": "string",
|
879
|
+
"name": "Content",
|
880
|
+
"type": "list",
|
881
|
+
"value_allowed_null": false
|
882
|
+
},
|
883
|
+
{
|
884
|
+
"document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
|
885
|
+
"member": "string",
|
886
|
+
"name": "RequestId",
|
887
|
+
"type": "string"
|
888
|
+
}
|
889
|
+
],
|
890
|
+
"type": "object"
|
891
|
+
},
|
563
892
|
"CompoundParticiple": {
|
564
893
|
"document": "复合粒度分词和词性标注的结果。",
|
565
894
|
"members": [
|
@@ -1,5 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"actions": {
|
3
|
+
"AnalyzeSentiment": [
|
4
|
+
{
|
5
|
+
"document": "情感分析。",
|
6
|
+
"input": "POST / HTTP/1.1\nHost: nlp.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AnalyzeSentiment\n<公共请求参数>\n\n{\n \"Text\": \"我真开心。\"\n}",
|
7
|
+
"output": "{\n \"Response\": {\n \"Negative\": 0.004367333836853504,\n \"Neutral\": 0.06927284598350525,\n \"Positive\": 0.9263598322868347,\n \"RequestId\": \"848b909b-5ed7-44ad-b4d0-72bcf0be4f2a\",\n \"Sentiment\": \"positive\"\n }\n}",
|
8
|
+
"title": "情感分析调用示例"
|
9
|
+
}
|
10
|
+
],
|
3
11
|
"AutoSummarization": [
|
4
12
|
{
|
5
13
|
"document": "",
|
@@ -22,6 +30,30 @@
|
|
22
30
|
"title": "通用闲聊示例"
|
23
31
|
}
|
24
32
|
],
|
33
|
+
"ClassifyContent": [
|
34
|
+
{
|
35
|
+
"document": "文本分类。",
|
36
|
+
"input": "POST / HTTP/1.1\nHost: nlp.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ClassifyContent\n<公共请求参数>\n\n{\n \"Title\": \"巴萨队内危机重重,曝梅西跟董事会已决裂,巴托梅乌留他目的不纯\",\n \"Content\": [\n \"甘伯杯比赛,巴萨1-0击败艾尔切拿到了冠军,这是球队在甘伯杯上第43次拿下冠军,也是实现了8连冠的伟业,这支巴萨用一个冠军开启了新赛季的征途,本赛季能否从皇马手中夺得西甲冠军,非常让人期待。\",\n \"目前这支巴萨,虽然用冠军拉开了新赛季的帷幕,但谁都知道,球队问题依然很大,内部目前是危机重重,第一个是转会市场动作缓慢,第二个是球队更新换代几乎为零,第三个是新帅更换,战术体系重新调整,第四个就是高层面临调整,第五个就是梅西的心情问题。\",\n \"这5个问题里面,最后一个尤其重要,梅西的状态决定着这支巴萨的上限和未来。大家都知道,梅西这个夏天闹出离队,折腾了11天,最终是在合同约束下留在了巴萨,但回来后的他,在训练场及热身赛里,基本是没有笑容。\",\n \"没有人能知道梅西目前的心情,他似乎是不开心的,而一个不开心的梅西,对于巴萨来说,等于是没有牙和爪子的老虎,没有太多的威胁力,而来自零点电台的消息,梅西跟巴萨董事会的关系已经决裂,有球是跟巴托梅乌,至今没跟巴托梅乌说过话。\",\n \"巴托梅乌最近在接受采访的时候表示“不会和梅西介入冲突,坚决不会卖掉梅西,要让梅西在巴萨终老。”这番言论为巴托梅乌引来吐槽声音,事实上巴托梅乌不卖梅西的原因是一己私利而已,他不想在自己做主席的时候让梅西离开,这样他会成为千古罪人,所以他态度十分强硬,如果不是这个原因,早就卖掉梅西了。\",\n \"在梅西留队后,巴托梅乌试图去缓解董事会跟梅西的关系,但双方裂痕已经产生了,根本就无法愈合了,接下来摆在巴萨面前的只有两个选择:要不本赛季跟梅西续约,要不梅西下赛季自由身离队了。\"\n ]\n}",
|
37
|
+
"output": "{\n \"Response\": {\n \"FirstClassification\": {\n \"Id\": 110,\n \"Label\": \"sports\",\n \"Name\": \"体育\",\n \"Score\": 0.9999808073043823\n },\n \"RequestId\": \"cb3fe220-82f5-4359-9a48-9450573186e8\",\n \"SecondClassification\": {\n \"Id\": 11004,\n \"Label\": \"sports_footballexternal\",\n \"Name\": \"体育_国际足球\",\n \"Score\": 0.8565764427185059\n },\n \"ThirdClassification\": {\n \"Id\": 11004002,\n \"Label\": \"sports_footballexternal_xijia\",\n \"Name\": \"体育_国际足球_西甲\",\n \"Score\": 0.8565764427185059\n }\n }\n}",
|
38
|
+
"title": "文本分类调用示例"
|
39
|
+
}
|
40
|
+
],
|
41
|
+
"ComposeCouplet": [
|
42
|
+
{
|
43
|
+
"document": "对联生成。",
|
44
|
+
"input": "POST / HTTP/1.1\nHost: nlp.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ComposeCouplet\n<公共请求参数>\n\n{\n \"Text\": \"阳光\",\n \"TargetType\": 0\n}",
|
45
|
+
"output": "{\n \"Response\": {\n \"Content\": [\n \"阳春白雪江山秀\",\n \"光彩红梅岁月长\"\n ],\n \"RandomCause\": \"\",\n \"RequestId\": \"e9cc9a63-e2e9-4f92-a419-0fd8bf25cdf6\",\n \"TopScroll\": \"盛世新春\"\n }\n}",
|
46
|
+
"title": "对联生成调用示例"
|
47
|
+
}
|
48
|
+
],
|
49
|
+
"ComposePoetry": [
|
50
|
+
{
|
51
|
+
"document": "诗词生成。",
|
52
|
+
"input": "POST / HTTP/1.1\nHost: nlp.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ComposePoetry\n<公共请求参数>\n\n{\n \"Text\": \"阳光\",\n \"PoetryType\": 2,\n \"Genre\": 5\n}",
|
53
|
+
"output": "{\n \"Response\": {\n \"Content\": [\n \"洛阳无人见\",\n \"江城日光流\",\n \"月明山上路\",\n \"柳暗水中洲\"\n ],\n \"RequestId\": \"a4878a27-7a5c-4cd4-b17d-6a1ff403f626\",\n \"Title\": \"阳光\"\n }\n}",
|
54
|
+
"title": "诗词生成调用示例"
|
55
|
+
}
|
56
|
+
],
|
25
57
|
"CreateDict": [
|
26
58
|
{
|
27
59
|
"document": "",
|
@@ -2290,9 +2290,8 @@
|
|
2290
2290
|
"document": "CreateReadOnlyDBInstance请求参数结构体",
|
2291
2291
|
"members": [
|
2292
2292
|
{
|
2293
|
-
"default": "",
|
2294
2293
|
"disabled": false,
|
2295
|
-
"document": "售卖规格ID。该参数可以通过调用
|
2294
|
+
"document": "售卖规格ID。该参数可以通过调用DescribeClasses的返回值中的SpecCode字段来获取。",
|
2296
2295
|
"example": "SpecCode",
|
2297
2296
|
"member": "string",
|
2298
2297
|
"name": "SpecCode",
|
@@ -2300,7 +2299,6 @@
|
|
2300
2299
|
"type": "string"
|
2301
2300
|
},
|
2302
2301
|
{
|
2303
|
-
"default": "",
|
2304
2302
|
"disabled": false,
|
2305
2303
|
"document": "实例容量大小,单位:GB。",
|
2306
2304
|
"example": "1",
|
@@ -2310,7 +2308,6 @@
|
|
2310
2308
|
"type": "int"
|
2311
2309
|
},
|
2312
2310
|
{
|
2313
|
-
"default": "",
|
2314
2311
|
"disabled": false,
|
2315
2312
|
"document": "一次性购买的实例数量。取值1-100",
|
2316
2313
|
"example": "1",
|
@@ -2320,7 +2317,6 @@
|
|
2320
2317
|
"type": "int"
|
2321
2318
|
},
|
2322
2319
|
{
|
2323
|
-
"default": "",
|
2324
2320
|
"disabled": false,
|
2325
2321
|
"document": "购买时长,单位:月。目前只支持1,2,3,4,5,6,7,8,9,10,11,12,24,36这些值,按量计费模式下该参数传1。",
|
2326
2322
|
"example": "1",
|
@@ -2330,7 +2326,6 @@
|
|
2330
2326
|
"type": "int"
|
2331
2327
|
},
|
2332
2328
|
{
|
2333
|
-
"default": "",
|
2334
2329
|
"disabled": false,
|
2335
2330
|
"document": "只读实例的主实例ID",
|
2336
2331
|
"example": "MasterDBInstanceId",
|
@@ -2340,7 +2335,6 @@
|
|
2340
2335
|
"type": "string"
|
2341
2336
|
},
|
2342
2337
|
{
|
2343
|
-
"default": "",
|
2344
2338
|
"disabled": false,
|
2345
2339
|
"document": "可用区ID。该参数可以通过调用 DescribeZones 接口的返回值中的Zone字段来获取。",
|
2346
2340
|
"example": "ap-guangzhou-1",
|
@@ -2350,7 +2344,6 @@
|
|
2350
2344
|
"type": "string"
|
2351
2345
|
},
|
2352
2346
|
{
|
2353
|
-
"default": "",
|
2354
2347
|
"disabled": false,
|
2355
2348
|
"document": "项目ID。",
|
2356
2349
|
"example": "1",
|
@@ -2360,7 +2353,6 @@
|
|
2360
2353
|
"type": "int"
|
2361
2354
|
},
|
2362
2355
|
{
|
2363
|
-
"default": "",
|
2364
2356
|
"disabled": false,
|
2365
2357
|
"document": "【废弃】不再需要指定,内核版本号与主实例保持一致",
|
2366
2358
|
"example": "DBVersion",
|
@@ -2370,9 +2362,8 @@
|
|
2370
2362
|
"type": "string"
|
2371
2363
|
},
|
2372
2364
|
{
|
2373
|
-
"default": "",
|
2374
2365
|
"disabled": false,
|
2375
|
-
"document": "实例计费类型。目前支持:PREPAID(预付费,即包年包月),POSTPAID_BY_HOUR
|
2366
|
+
"document": "实例计费类型。目前支持:PREPAID(预付费,即包年包月),POSTPAID_BY_HOUR(后付费,即按量计费)。默认值:PREPAID。如果主实例为后付费,只读实例必须也为后付费。",
|
2376
2367
|
"example": "InstanceChargeType",
|
2377
2368
|
"member": "string",
|
2378
2369
|
"name": "InstanceChargeType",
|
@@ -2380,7 +2371,6 @@
|
|
2380
2371
|
"type": "string"
|
2381
2372
|
},
|
2382
2373
|
{
|
2383
|
-
"default": "",
|
2384
2374
|
"disabled": false,
|
2385
2375
|
"document": "是否自动使用代金券。1(是),0(否),默认不使用。",
|
2386
2376
|
"example": "1",
|
@@ -2390,7 +2380,6 @@
|
|
2390
2380
|
"type": "int"
|
2391
2381
|
},
|
2392
2382
|
{
|
2393
|
-
"default": "",
|
2394
2383
|
"disabled": false,
|
2395
2384
|
"document": "代金券ID列表,目前仅支持指定一张代金券。",
|
2396
2385
|
"example": "[1,2,3]",
|
@@ -2400,7 +2389,6 @@
|
|
2400
2389
|
"type": "list"
|
2401
2390
|
},
|
2402
2391
|
{
|
2403
|
-
"default": "",
|
2404
2392
|
"disabled": false,
|
2405
2393
|
"document": "续费标记:0-正常续费(默认);1-自动续费;",
|
2406
2394
|
"example": "1",
|
@@ -2410,7 +2398,6 @@
|
|
2410
2398
|
"type": "int"
|
2411
2399
|
},
|
2412
2400
|
{
|
2413
|
-
"default": "",
|
2414
2401
|
"disabled": false,
|
2415
2402
|
"document": "私有网络ID。",
|
2416
2403
|
"example": "VpcId",
|
@@ -2420,7 +2407,6 @@
|
|
2420
2407
|
"type": "string"
|
2421
2408
|
},
|
2422
2409
|
{
|
2423
|
-
"default": "",
|
2424
2410
|
"disabled": false,
|
2425
2411
|
"document": "私有网络子网ID。",
|
2426
2412
|
"example": "SubnetId",
|
@@ -2430,7 +2416,6 @@
|
|
2430
2416
|
"type": "string"
|
2431
2417
|
},
|
2432
2418
|
{
|
2433
|
-
"default": "",
|
2434
2419
|
"disabled": false,
|
2435
2420
|
"document": "优惠活动ID",
|
2436
2421
|
"example": "1",
|
@@ -2440,7 +2425,6 @@
|
|
2440
2425
|
"type": "int"
|
2441
2426
|
},
|
2442
2427
|
{
|
2443
|
-
"default": "",
|
2444
2428
|
"disabled": false,
|
2445
2429
|
"document": "实例名(后续支持)",
|
2446
2430
|
"example": "Name",
|
@@ -2450,7 +2434,6 @@
|
|
2450
2434
|
"type": "string"
|
2451
2435
|
},
|
2452
2436
|
{
|
2453
|
-
"default": "",
|
2454
2437
|
"disabled": false,
|
2455
2438
|
"document": "是否需要支持Ipv6,1:是,0:否",
|
2456
2439
|
"example": "1",
|
@@ -2460,7 +2443,6 @@
|
|
2460
2443
|
"type": "int"
|
2461
2444
|
},
|
2462
2445
|
{
|
2463
|
-
"default": "",
|
2464
2446
|
"disabled": false,
|
2465
2447
|
"document": "只读组ID。",
|
2466
2448
|
"example": "ReadOnlyGroupId",
|
@@ -2470,7 +2452,6 @@
|
|
2470
2452
|
"type": "string"
|
2471
2453
|
},
|
2472
2454
|
{
|
2473
|
-
"default": "",
|
2474
2455
|
"disabled": false,
|
2475
2456
|
"document": "实例需要绑定的Tag信息,默认为空(该类型为Tag数组类型)",
|
2476
2457
|
"example": "空",
|
@@ -2480,7 +2461,6 @@
|
|
2480
2461
|
"type": "object"
|
2481
2462
|
},
|
2482
2463
|
{
|
2483
|
-
"default": "",
|
2484
2464
|
"disabled": false,
|
2485
2465
|
"document": "安全组id",
|
2486
2466
|
"example": "[\"sasasasd\"]",
|
@@ -2501,7 +2481,6 @@
|
|
2501
2481
|
"example": "[1,2,3]",
|
2502
2482
|
"member": "string",
|
2503
2483
|
"name": "DealNames",
|
2504
|
-
"required": true,
|
2505
2484
|
"type": "list",
|
2506
2485
|
"value_allowed_null": false
|
2507
2486
|
},
|
@@ -2511,7 +2490,6 @@
|
|
2511
2490
|
"example": "BillId",
|
2512
2491
|
"member": "string",
|
2513
2492
|
"name": "BillId",
|
2514
|
-
"required": true,
|
2515
2493
|
"type": "string",
|
2516
2494
|
"value_allowed_null": false
|
2517
2495
|
},
|
@@ -2521,7 +2499,6 @@
|
|
2521
2499
|
"example": "[\"BillId\"]",
|
2522
2500
|
"member": "string",
|
2523
2501
|
"name": "DBInstanceIdSet",
|
2524
|
-
"required": true,
|
2525
2502
|
"type": "list",
|
2526
2503
|
"value_allowed_null": false
|
2527
2504
|
},
|
@@ -10205,7 +10182,6 @@
|
|
10205
10182
|
"document": "UpgradeDBInstanceKernelVersion请求参数结构体",
|
10206
10183
|
"members": [
|
10207
10184
|
{
|
10208
|
-
"default": "",
|
10209
10185
|
"disabled": false,
|
10210
10186
|
"document": "实例ID",
|
10211
10187
|
"example": "postgres-aser1j2o",
|
@@ -10215,7 +10191,6 @@
|
|
10215
10191
|
"type": "string"
|
10216
10192
|
},
|
10217
10193
|
{
|
10218
|
-
"default": "",
|
10219
10194
|
"disabled": false,
|
10220
10195
|
"document": "升级的目标内核版本号。可以通过接口DescribeDBVersions的返回字段AvailableUpgradeTarget获取。",
|
10221
10196
|
"example": "v12.4_r1.5",
|
@@ -10225,7 +10200,6 @@
|
|
10225
10200
|
"type": "string"
|
10226
10201
|
},
|
10227
10202
|
{
|
10228
|
-
"default": "",
|
10229
10203
|
"disabled": false,
|
10230
10204
|
"document": "指定实例升级内核版本号完成后的切换时间。可选值,\n0:立即切换(默认值)。\n1:指定时间切换。\n2:维护时间窗口内切换。",
|
10231
10205
|
"example": "1",
|
@@ -10235,7 +10209,6 @@
|
|
10235
10209
|
"type": "int"
|
10236
10210
|
},
|
10237
10211
|
{
|
10238
|
-
"default": "",
|
10239
10212
|
"disabled": false,
|
10240
10213
|
"document": "切换开始时间,时间格式:HH:MM:SS,例如:01:00:00。当SwitchTag为0或2时,该参数失效。",
|
10241
10214
|
"example": "01:00:00",
|
@@ -10245,7 +10218,6 @@
|
|
10245
10218
|
"type": "string"
|
10246
10219
|
},
|
10247
10220
|
{
|
10248
|
-
"default": "",
|
10249
10221
|
"disabled": false,
|
10250
10222
|
"document": "切换截止时间,时间格式:HH:MM:SS,例如:01:30:00。当SwitchTag为0或2时,该参数失效。SwitchStartTime和SwitchEndTime时间窗口不能小于30分钟。",
|
10251
10223
|
"example": "01:30:00",
|
@@ -10255,7 +10227,6 @@
|
|
10255
10227
|
"type": "string"
|
10256
10228
|
},
|
10257
10229
|
{
|
10258
|
-
"default": "",
|
10259
10230
|
"disabled": false,
|
10260
10231
|
"document": "是否对本次升级实例内核版本号操作执行预检查。可选值,\ntrue:执行预检查操作,不升级内核版本号。检查项目包含请求参数、内核版本号兼容性、实例参数等。\nfalse:发送正常请求(默认值),通过检查后直接升级内核版本号。",
|
10261
10232
|
"example": "true",
|
@@ -86,7 +86,7 @@
|
|
86
86
|
],
|
87
87
|
"CreateReadOnlyDBInstance": [
|
88
88
|
{
|
89
|
-
"document": "",
|
89
|
+
"document": "创建只读实例",
|
90
90
|
"input": "POST / HTTP/1.1\nHost: postgres.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateReadOnlyDBInstance\n<公共请求参数>\n\n{\n \"InstanceCount\": \"1\",\n \"AutoRenewFlag\": \"1\",\n \"Zone\": \"ap-guangzhou-2\",\n \"MasterDBInstanceId\": \"Postgres-testmaster\",\n \"DBVersion\": \"9.3.5\",\n \"Storage\": \"10\",\n \"Period\": \"1\",\n \"SpecCode\": \"cdb.pg.z1.2g\",\n \"InstanceChargeType\": \"prepaid\",\n \"AutoVoucher\": \"0\"\n}",
|
91
91
|
"output": "{\n \"Response\": {\n \"RequestId\": \"6ace8140-6b9e-4e81-a8ad-ef3f92b2aa90\",\n \"DealNames\": [\n \"20180119110001\"\n ],\n \"DBInstanceIdSet\": [\n \"123\"\n ],\n \"BillId\": \"123\"\n }\n}",
|
92
92
|
"title": "CreateReadOnlyDBInstance"
|
@@ -748,7 +748,7 @@
|
|
748
748
|
],
|
749
749
|
"UpgradeDBInstanceKernelVersion": [
|
750
750
|
{
|
751
|
-
"document": "",
|
751
|
+
"document": "升级实例内核小版本",
|
752
752
|
"input": "POST / HTTP/1.1\nHost: postgres.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpgradeDBInstanceKernelVersion\n<公共请求参数>\n\n{\n \"DBInstanceId\": \"pgro-g7w4itfg\",\n \"TargetDBKernelVersion\": \"v12.7_r1.5\",\n \"DryRun\": \"true\"\n}",
|
753
753
|
"output": "{\n \"Response\": {\n \"RequestId\": \"2b376d28-d5fd-40b0-9bdc-d992f8fed15d\"\n }\n}",
|
754
754
|
"title": "升级版本号"
|