tccli 3.0.898.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.
Files changed (48) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/cfs/v20190719/CreateMigrationTask.md +1 -1
  3. tccli/examples/cfs/v20190719/DeleteMigrationTask.md +1 -1
  4. tccli/examples/cfs/v20190719/ModifyFileSystemAutoScaleUpRule.md +1 -1
  5. tccli/examples/cfs/v20190719/ScaleUpFileSystem.md +1 -1
  6. tccli/examples/cls/v20201016/DeleteShipper.md +2 -2
  7. tccli/examples/cls/v20201016/ModifyShipper.md +2 -2
  8. tccli/examples/live/v20180801/DescribeLiveDomains.md +1 -1
  9. tccli/examples/nlp/v20190408/AnalyzeSentiment.md +24 -0
  10. tccli/examples/nlp/v20190408/ClassifyContent.md +39 -0
  11. tccli/examples/nlp/v20190408/ComposeCouplet.md +27 -0
  12. tccli/examples/nlp/v20190408/ComposePoetry.md +29 -0
  13. tccli/examples/waf/v20180125/ModifySpartaProtection.md +154 -0
  14. tccli/examples/wedata/v20210820/DescribeDimensionScore.md +15 -3
  15. tccli/examples/wedata/v20210820/DescribeQualityScore.md +1 -1
  16. tccli/examples/wedata/v20210820/DescribeQualityScoreTrend.md +10 -2
  17. tccli/examples/wedata/v20210820/DescribeTableQualityDetails.md +1 -1
  18. tccli/examples/wedata/v20210820/DescribeTableScoreTrend.md +10 -2
  19. tccli/services/antiddos/v20200309/api.json +45 -26
  20. tccli/services/apigateway/v20180808/api.json +17 -28
  21. tccli/services/asr/v20190614/api.json +3 -2
  22. tccli/services/cdb/v20170320/api.json +16 -11
  23. tccli/services/cfs/v20190719/api.json +7 -0
  24. tccli/services/cfs/v20190719/examples.json +4 -4
  25. tccli/services/ckafka/v20190819/api.json +20 -8
  26. tccli/services/cls/v20201016/api.json +3 -4
  27. tccli/services/cls/v20201016/examples.json +4 -4
  28. tccli/services/ess/v20201111/api.json +2 -0
  29. tccli/services/live/v20180801/api.json +4 -11
  30. tccli/services/live/v20180801/examples.json +1 -1
  31. tccli/services/nlp/nlp_client.py +216 -4
  32. tccli/services/nlp/v20190408/api.json +329 -0
  33. tccli/services/nlp/v20190408/examples.json +32 -0
  34. tccli/services/tbaas/v20180416/api.json +16 -16
  35. tccli/services/tdid/tdid_client.py +0 -106
  36. tccli/services/tdid/v20210519/api.json +25 -306
  37. tccli/services/tdid/v20210519/examples.json +0 -16
  38. tccli/services/tts/v20190823/api.json +7 -3
  39. tccli/services/waf/v20180125/api.json +401 -0
  40. tccli/services/waf/v20180125/examples.json +26 -0
  41. tccli/services/waf/waf_client.py +57 -4
  42. tccli/services/wedata/v20210820/api.json +151 -83
  43. tccli/services/wedata/v20210820/examples.json +8 -8
  44. {tccli-3.0.898.1.dist-info → tccli-3.0.899.1.dist-info}/METADATA +2 -2
  45. {tccli-3.0.898.1.dist-info → tccli-3.0.899.1.dist-info}/RECORD +48 -43
  46. {tccli-3.0.898.1.dist-info → tccli-3.0.899.1.dist-info}/WHEEL +0 -0
  47. {tccli-3.0.898.1.dist-info → tccli-3.0.899.1.dist-info}/entry_points.txt +0 -0
  48. {tccli-3.0.898.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": "",
@@ -15,11 +15,11 @@
15
15
  "status": "online"
16
16
  },
17
17
  "CreateChaincodeAndInstallForUser": {
18
- "document": "创建并安装合约",
18
+ "document": "接口已废弃,请通过控制台查询或操作\n\n创建并安装合约",
19
19
  "input": "CreateChaincodeAndInstallForUserRequest",
20
20
  "name": "创建并安装合约",
21
21
  "output": "CreateChaincodeAndInstallForUserResponse",
22
- "status": "online"
22
+ "status": "deprecated"
23
23
  },
24
24
  "DownloadUserCert": {
25
25
  "document": "下载用户证书",
@@ -43,39 +43,39 @@
43
43
  "status": "online"
44
44
  },
45
45
  "GetChaincodeCompileLogForUser": {
46
- "document": "获取合约编译日志",
46
+ "document": "接口已废弃,请通过控制台查询或操作\n\n获取合约编译日志",
47
47
  "input": "GetChaincodeCompileLogForUserRequest",
48
48
  "name": "获取合约编译日志",
49
49
  "output": "GetChaincodeCompileLogForUserResponse",
50
- "status": "online"
50
+ "status": "deprecated"
51
51
  },
52
52
  "GetChaincodeInitializeResultForUser": {
53
- "document": "实例化结果查询",
53
+ "document": "接口已废弃,请通过控制台查询或操作\n\n实例化结果查询",
54
54
  "input": "GetChaincodeInitializeResultForUserRequest",
55
55
  "name": "实例化结果查询",
56
56
  "output": "GetChaincodeInitializeResultForUserResponse",
57
- "status": "online"
57
+ "status": "deprecated"
58
58
  },
59
59
  "GetChaincodeLogForUser": {
60
- "document": "获取合约容器日志",
60
+ "document": "接口已废弃,请通过控制台查询或操作\n\n获取合约容器日志",
61
61
  "input": "GetChaincodeLogForUserRequest",
62
62
  "name": "获取合约容器日志",
63
63
  "output": "GetChaincodeLogForUserResponse",
64
- "status": "online"
64
+ "status": "deprecated"
65
65
  },
66
66
  "GetChannelListForUser": {
67
- "document": "获取通道列表",
67
+ "document": "接口已废弃,请通过控制台查询或操作\n\n获取通道列表",
68
68
  "input": "GetChannelListForUserRequest",
69
69
  "name": "获取通道列表",
70
70
  "output": "GetChannelListForUserResponse",
71
- "status": "online"
71
+ "status": "deprecated"
72
72
  },
73
73
  "GetClusterListForUser": {
74
- "document": "获取该用户的网络列表。网络信息中包含组织信息,但仅包含该用户所在组织的信息。",
74
+ "document": "接口已废弃,请通过控制台查询或操作\n\n获取该用户的网络列表。网络信息中包含组织信息,但仅包含该用户所在组织的信息。",
75
75
  "input": "GetClusterListForUserRequest",
76
76
  "name": "获取网络列表",
77
77
  "output": "GetClusterListForUserResponse",
78
- "status": "online"
78
+ "status": "deprecated"
79
79
  },
80
80
  "GetClusterSummary": {
81
81
  "document": "获取区块链网络概要",
@@ -106,11 +106,11 @@
106
106
  "status": "online"
107
107
  },
108
108
  "GetPeerLogForUser": {
109
- "document": "获取节点日志",
109
+ "document": "接口已废弃,请通过控制台查询或操作\n\n获取节点日志",
110
110
  "input": "GetPeerLogForUserRequest",
111
111
  "name": "获取节点日志",
112
112
  "output": "GetPeerLogForUserResponse",
113
- "status": "online"
113
+ "status": "deprecated"
114
114
  },
115
115
  "GetTransactionDetailForUser": {
116
116
  "document": "获取交易详情",
@@ -120,11 +120,11 @@
120
120
  "status": "online"
121
121
  },
122
122
  "InitializeChaincodeForUser": {
123
- "document": "实例化合约",
123
+ "document": "接口已废弃,请通过控制台查询或操作\n\n实例化合约",
124
124
  "input": "InitializeChaincodeForUserRequest",
125
125
  "name": "实例化合约",
126
126
  "output": "InitializeChaincodeForUserResponse",
127
- "status": "online"
127
+ "status": "deprecated"
128
128
  },
129
129
  "Invoke": {
130
130
  "document": "新增交易",
@@ -589,58 +589,6 @@ def doCheckChain(args, parsed_globals):
589
589
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
590
590
 
591
591
 
592
- def doGetDidClusterList(args, parsed_globals):
593
- g_param = parse_global_arg(parsed_globals)
594
-
595
- if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
596
- cred = credential.CVMRoleCredential()
597
- elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
598
- cred = credential.STSAssumeRoleCredential(
599
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
600
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
601
- )
602
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
603
- cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
604
- else:
605
- cred = credential.Credential(
606
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
607
- )
608
- http_profile = HttpProfile(
609
- reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
610
- reqMethod="POST",
611
- endpoint=g_param[OptionsDefine.Endpoint],
612
- proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
613
- )
614
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
615
- if g_param[OptionsDefine.Language]:
616
- profile.language = g_param[OptionsDefine.Language]
617
- mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
618
- client = mod.TdidClient(cred, g_param[OptionsDefine.Region], profile)
619
- client._sdkVersion += ("_CLI_" + __version__)
620
- models = MODELS_MAP[g_param[OptionsDefine.Version]]
621
- model = models.GetDidClusterListRequest()
622
- model.from_json_string(json.dumps(args))
623
- start_time = time.time()
624
- while True:
625
- rsp = client.GetDidClusterList(model)
626
- result = rsp.to_json_string()
627
- try:
628
- json_obj = json.loads(result)
629
- except TypeError as e:
630
- json_obj = json.loads(result.decode('utf-8')) # python3.3
631
- if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
632
- break
633
- cur_time = time.time()
634
- if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
635
- raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
636
- (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
637
- search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
638
- else:
639
- print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
640
- time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
641
- FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
642
-
643
-
644
592
  def doGetCredentialStatus(args, parsed_globals):
645
593
  g_param = parse_global_arg(parsed_globals)
646
594
 
@@ -693,58 +641,6 @@ def doGetCredentialStatus(args, parsed_globals):
693
641
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
694
642
 
695
643
 
696
- def doGetDidClusterDetail(args, parsed_globals):
697
- g_param = parse_global_arg(parsed_globals)
698
-
699
- if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
700
- cred = credential.CVMRoleCredential()
701
- elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
702
- cred = credential.STSAssumeRoleCredential(
703
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
704
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
705
- )
706
- elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
707
- cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
708
- else:
709
- cred = credential.Credential(
710
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
711
- )
712
- http_profile = HttpProfile(
713
- reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
714
- reqMethod="POST",
715
- endpoint=g_param[OptionsDefine.Endpoint],
716
- proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
717
- )
718
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
719
- if g_param[OptionsDefine.Language]:
720
- profile.language = g_param[OptionsDefine.Language]
721
- mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
722
- client = mod.TdidClient(cred, g_param[OptionsDefine.Region], profile)
723
- client._sdkVersion += ("_CLI_" + __version__)
724
- models = MODELS_MAP[g_param[OptionsDefine.Version]]
725
- model = models.GetDidClusterDetailRequest()
726
- model.from_json_string(json.dumps(args))
727
- start_time = time.time()
728
- while True:
729
- rsp = client.GetDidClusterDetail(model)
730
- result = rsp.to_json_string()
731
- try:
732
- json_obj = json.loads(result)
733
- except TypeError as e:
734
- json_obj = json.loads(result.decode('utf-8')) # python3.3
735
- if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
736
- break
737
- cur_time = time.time()
738
- if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
739
- raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
740
- (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
741
- search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
742
- else:
743
- print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
744
- time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
745
- FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
746
-
747
-
748
644
  def doGetConsortiumClusterList(args, parsed_globals):
749
645
  g_param = parse_global_arg(parsed_globals)
750
646
 
@@ -1079,9 +975,7 @@ ACTION_MAP = {
1079
975
  "GetAgencyTDid": doGetAgencyTDid,
1080
976
  "CreateTDidByPrivateKey": doCreateTDidByPrivateKey,
1081
977
  "CheckChain": doCheckChain,
1082
- "GetDidClusterList": doGetDidClusterList,
1083
978
  "GetCredentialStatus": doGetCredentialStatus,
1084
- "GetDidClusterDetail": doGetDidClusterDetail,
1085
979
  "GetConsortiumClusterList": doGetConsortiumClusterList,
1086
980
  "VerifyCredential": doVerifyCredential,
1087
981
  "AddLabel": doAddLabel,