tencentcloud-sdk-python 3.0.1256__py2.py3-none-any.whl → 3.0.1258__py2.py3-none-any.whl

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.
Files changed (109) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/apm/v20210622/models.py +26 -0
  3. tencentcloud/asr/v20190614/models.py +3 -2
  4. tencentcloud/autoscaling/v20180419/autoscaling_client.py +7 -1
  5. tencentcloud/autoscaling/v20180419/errorcodes.py +3 -0
  6. tencentcloud/autoscaling/v20180419/models.py +18 -2
  7. tencentcloud/bi/v20220105/models.py +44 -4
  8. tencentcloud/billing/v20180709/billing_client.py +23 -0
  9. tencentcloud/billing/v20180709/errorcodes.py +6 -0
  10. tencentcloud/billing/v20180709/models.py +424 -0
  11. tencentcloud/bsca/v20210811/models.py +306 -1
  12. tencentcloud/ccc/v20200210/ccc_client.py +23 -0
  13. tencentcloud/ccc/v20200210/errorcodes.py +6 -0
  14. tencentcloud/ccc/v20200210/models.py +249 -136
  15. tencentcloud/cdb/v20170320/cdb_client.py +1 -1
  16. tencentcloud/cdb/v20170320/models.py +25 -1
  17. tencentcloud/cdn/v20180606/models.py +1 -1
  18. tencentcloud/cdwdoris/v20211228/models.py +29 -2
  19. tencentcloud/cfw/v20190904/cfw_client.py +6 -30
  20. tencentcloud/cfw/v20190904/models.py +267 -479
  21. tencentcloud/ciam/v20220331/models.py +13 -0
  22. tencentcloud/ckafka/v20190819/models.py +5 -5
  23. tencentcloud/clb/v20180317/models.py +1 -1
  24. tencentcloud/cloudaudit/v20190319/cloudaudit_client.py +30 -34
  25. tencentcloud/cloudaudit/v20190319/errorcodes.py +0 -39
  26. tencentcloud/cloudaudit/v20190319/models.py +328 -254
  27. tencentcloud/cls/v20201016/cls_client.py +8 -1
  28. tencentcloud/cls/v20201016/models.py +551 -109
  29. tencentcloud/csip/v20221121/models.py +225 -12
  30. tencentcloud/cvm/v20170312/errorcodes.py +6 -0
  31. tencentcloud/cvm/v20170312/models.py +78 -0
  32. tencentcloud/cwp/v20180228/cwp_client.py +3 -1
  33. tencentcloud/cwp/v20180228/models.py +206 -52
  34. tencentcloud/cynosdb/v20190107/cynosdb_client.py +27 -27
  35. tencentcloud/cynosdb/v20190107/models.py +78 -0
  36. tencentcloud/dasb/v20191018/models.py +155 -0
  37. tencentcloud/dlc/v20210125/models.py +13 -0
  38. tencentcloud/domain/v20180808/errorcodes.py +45 -0
  39. tencentcloud/eb/v20210416/models.py +19 -19
  40. tencentcloud/emr/v20190103/models.py +12 -0
  41. tencentcloud/es/v20180416/errorcodes.py +4 -1
  42. tencentcloud/es/v20180416/es_client.py +92 -0
  43. tencentcloud/es/v20180416/models.py +770 -12
  44. tencentcloud/ess/v20201111/ess_client.py +71 -4
  45. tencentcloud/ess/v20201111/models.py +260 -10
  46. tencentcloud/essbasic/v20210526/essbasic_client.py +135 -51
  47. tencentcloud/essbasic/v20210526/models.py +390 -21
  48. tencentcloud/gaap/v20180529/models.py +40 -3
  49. tencentcloud/hunyuan/v20230901/models.py +12 -0
  50. tencentcloud/ioa/v20220601/errorcodes.py +15 -0
  51. tencentcloud/ioa/v20220601/ioa_client.py +26 -2
  52. tencentcloud/ioa/v20220601/models.py +516 -46
  53. tencentcloud/iotexplorer/v20190423/models.py +52 -0
  54. tencentcloud/iotvideo/v20191126/iotvideo_client.py +46 -0
  55. tencentcloud/iotvideo/v20191126/models.py +379 -0
  56. tencentcloud/iss/v20230517/models.py +25 -0
  57. tencentcloud/lighthouse/v20200324/errorcodes.py +1 -1
  58. tencentcloud/live/v20180801/models.py +51 -0
  59. tencentcloud/mongodb/v20190725/models.py +3 -7
  60. tencentcloud/mqtt/v20240516/models.py +4 -4
  61. tencentcloud/ocr/v20181119/models.py +7 -16
  62. tencentcloud/ocr/v20181119/ocr_client.py +1 -0
  63. tencentcloud/organization/v20210331/errorcodes.py +31 -1
  64. tencentcloud/organization/v20210331/models.py +674 -0
  65. tencentcloud/organization/v20210331/organization_client.py +138 -0
  66. tencentcloud/partners/v20180321/models.py +71 -0
  67. tencentcloud/partners/v20180321/partners_client.py +23 -0
  68. tencentcloud/privatedns/v20201028/errorcodes.py +12 -0
  69. tencentcloud/privatedns/v20201028/models.py +858 -4
  70. tencentcloud/privatedns/v20201028/privatedns_client.py +92 -0
  71. tencentcloud/region/v20220627/models.py +0 -1
  72. tencentcloud/scf/v20180416/models.py +889 -8
  73. tencentcloud/scf/v20180416/scf_client.py +115 -0
  74. tencentcloud/smop/v20201203/models.py +17 -17
  75. tencentcloud/ssl/v20191205/models.py +44 -3
  76. tencentcloud/ssm/v20190923/models.py +84 -0
  77. tencentcloud/tat/v20201028/models.py +1 -29
  78. tencentcloud/tcss/v20201101/models.py +815 -33
  79. tencentcloud/tcss/v20201101/tcss_client.py +1 -1
  80. tencentcloud/tdmq/v20200217/models.py +7 -7
  81. tencentcloud/tem/v20210701/models.py +202 -198
  82. tencentcloud/teo/v20220901/errorcodes.py +51 -0
  83. tencentcloud/teo/v20220901/models.py +1470 -97
  84. tencentcloud/teo/v20220901/teo_client.py +115 -0
  85. tencentcloud/tke/v20180525/models.py +70 -0
  86. tencentcloud/tke/v20180525/tke_client.py +23 -0
  87. tencentcloud/tms/v20201229/models.py +0 -558
  88. tencentcloud/tms/v20201229/tms_client.py +0 -23
  89. tencentcloud/trp/v20210515/models.py +6 -6
  90. tencentcloud/trtc/v20190722/models.py +353 -4
  91. tencentcloud/tse/v20201207/models.py +94 -0
  92. tencentcloud/tse/v20201207/tse_client.py +23 -0
  93. tencentcloud/vclm/v20240523/models.py +166 -0
  94. tencentcloud/vpc/v20170312/models.py +137 -6
  95. tencentcloud/vpc/v20170312/vpc_client.py +23 -0
  96. tencentcloud/waf/v20180125/models.py +99 -0
  97. tencentcloud/waf/v20180125/waf_client.py +23 -0
  98. tencentcloud/wedata/v20210820/models.py +991 -0
  99. tencentcloud/wedata/v20210820/wedata_client.py +46 -0
  100. {tencentcloud_sdk_python-3.0.1256.dist-info → tencentcloud_sdk_python-3.0.1258.dist-info}/METADATA +1 -1
  101. {tencentcloud_sdk_python-3.0.1256.dist-info → tencentcloud_sdk_python-3.0.1258.dist-info}/RECORD +104 -109
  102. tencentcloud/cr/__init__.py +0 -0
  103. tencentcloud/cr/v20180321/__init__.py +0 -0
  104. tencentcloud/cr/v20180321/cr_client.py +0 -672
  105. tencentcloud/cr/v20180321/errorcodes.py +0 -114
  106. tencentcloud/cr/v20180321/models.py +0 -4966
  107. {tencentcloud_sdk_python-3.0.1256.dist-info → tencentcloud_sdk_python-3.0.1258.dist-info}/LICENSE +0 -0
  108. {tencentcloud_sdk_python-3.0.1256.dist-info → tencentcloud_sdk_python-3.0.1258.dist-info}/WHEEL +0 -0
  109. {tencentcloud_sdk_python-3.0.1256.dist-info → tencentcloud_sdk_python-3.0.1258.dist-info}/top_level.txt +0 -0
@@ -363,564 +363,6 @@ class HitInfo(AbstractModel):
363
363
 
364
364
 
365
365
 
366
- class LabelGrade(AbstractModel):
367
- """内容审核多级标签结构
368
-
369
- """
370
-
371
- def __init__(self):
372
- r"""
373
- :param _Code: 内容审核结果客户定制标签码
374
- 注意:此字段可能返回 null,表示取不到有效值。
375
- :type Code: str
376
- :param _Grade1: 内容审核结果客户定制一级标签
377
- 注意:此字段可能返回 null,表示取不到有效值。
378
- :type Grade1: str
379
- :param _Grade2: 内容审核结果客户定制二级标签
380
- 注意:此字段可能返回 null,表示取不到有效值。
381
- :type Grade2: str
382
- :param _Grade3: 内容审核结果客户定制三级标签
383
- 注意:此字段可能返回 null,表示取不到有效值。
384
- :type Grade3: str
385
- """
386
- self._Code = None
387
- self._Grade1 = None
388
- self._Grade2 = None
389
- self._Grade3 = None
390
-
391
- @property
392
- def Code(self):
393
- return self._Code
394
-
395
- @Code.setter
396
- def Code(self, Code):
397
- self._Code = Code
398
-
399
- @property
400
- def Grade1(self):
401
- return self._Grade1
402
-
403
- @Grade1.setter
404
- def Grade1(self, Grade1):
405
- self._Grade1 = Grade1
406
-
407
- @property
408
- def Grade2(self):
409
- return self._Grade2
410
-
411
- @Grade2.setter
412
- def Grade2(self, Grade2):
413
- self._Grade2 = Grade2
414
-
415
- @property
416
- def Grade3(self):
417
- return self._Grade3
418
-
419
- @Grade3.setter
420
- def Grade3(self, Grade3):
421
- self._Grade3 = Grade3
422
-
423
-
424
- def _deserialize(self, params):
425
- self._Code = params.get("Code")
426
- self._Grade1 = params.get("Grade1")
427
- self._Grade2 = params.get("Grade2")
428
- self._Grade3 = params.get("Grade3")
429
- memeber_set = set(params.keys())
430
- for name, value in vars(self).items():
431
- property_name = name[1:]
432
- if property_name in memeber_set:
433
- memeber_set.remove(property_name)
434
- if len(memeber_set) > 0:
435
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
436
-
437
-
438
-
439
- class LibCheckResult(AbstractModel):
440
- """库检测结果
441
-
442
- """
443
-
444
- def __init__(self):
445
- r"""
446
- :param _LibId: 库ID
447
- 注意:此字段可能返回 null,表示取不到有效值。
448
- :type LibId: str
449
- :param _LibName: 库名称
450
- 注意:此字段可能返回 null,表示取不到有效值。
451
- :type LibName: str
452
- :param _LibType: 库类型
453
- 注意:此字段可能返回 null,表示取不到有效值。
454
- :type LibType: int
455
- :param _Keyword: 命中的关键词
456
- 注意:此字段可能返回 null,表示取不到有效值。
457
- :type Keyword: str
458
- :param _Positions: 命中的关键词在送审文本的位置,可能存在多个位置,每个位置显示开始位置和结束位置
459
- 注意:此字段可能返回 null,表示取不到有效值。
460
- :type Positions: list of Positions
461
- """
462
- self._LibId = None
463
- self._LibName = None
464
- self._LibType = None
465
- self._Keyword = None
466
- self._Positions = None
467
-
468
- @property
469
- def LibId(self):
470
- return self._LibId
471
-
472
- @LibId.setter
473
- def LibId(self, LibId):
474
- self._LibId = LibId
475
-
476
- @property
477
- def LibName(self):
478
- return self._LibName
479
-
480
- @LibName.setter
481
- def LibName(self, LibName):
482
- self._LibName = LibName
483
-
484
- @property
485
- def LibType(self):
486
- return self._LibType
487
-
488
- @LibType.setter
489
- def LibType(self, LibType):
490
- self._LibType = LibType
491
-
492
- @property
493
- def Keyword(self):
494
- return self._Keyword
495
-
496
- @Keyword.setter
497
- def Keyword(self, Keyword):
498
- self._Keyword = Keyword
499
-
500
- @property
501
- def Positions(self):
502
- return self._Positions
503
-
504
- @Positions.setter
505
- def Positions(self, Positions):
506
- self._Positions = Positions
507
-
508
-
509
- def _deserialize(self, params):
510
- self._LibId = params.get("LibId")
511
- self._LibName = params.get("LibName")
512
- self._LibType = params.get("LibType")
513
- self._Keyword = params.get("Keyword")
514
- if params.get("Positions") is not None:
515
- self._Positions = []
516
- for item in params.get("Positions"):
517
- obj = Positions()
518
- obj._deserialize(item)
519
- self._Positions.append(obj)
520
- memeber_set = set(params.keys())
521
- for name, value in vars(self).items():
522
- property_name = name[1:]
523
- if property_name in memeber_set:
524
- memeber_set.remove(property_name)
525
- if len(memeber_set) > 0:
526
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
527
-
528
-
529
-
530
- class ModelResult(AbstractModel):
531
- """模型检测结果
532
-
533
- """
534
-
535
- def __init__(self):
536
- r"""
537
- :param _Content: 模型检测出的违规内容
538
- 注意:此字段可能返回 null,表示取不到有效值。
539
- :type Content: str
540
- :param _Positions: 模型检测出的违规内容的位置
541
- 注意:此字段可能返回 null,表示取不到有效值。
542
- :type Positions: list of Positions
543
- """
544
- self._Content = None
545
- self._Positions = None
546
-
547
- @property
548
- def Content(self):
549
- return self._Content
550
-
551
- @Content.setter
552
- def Content(self, Content):
553
- self._Content = Content
554
-
555
- @property
556
- def Positions(self):
557
- return self._Positions
558
-
559
- @Positions.setter
560
- def Positions(self, Positions):
561
- self._Positions = Positions
562
-
563
-
564
- def _deserialize(self, params):
565
- self._Content = params.get("Content")
566
- if params.get("Positions") is not None:
567
- self._Positions = []
568
- for item in params.get("Positions"):
569
- obj = Positions()
570
- obj._deserialize(item)
571
- self._Positions.append(obj)
572
- memeber_set = set(params.keys())
573
- for name, value in vars(self).items():
574
- property_name = name[1:]
575
- if property_name in memeber_set:
576
- memeber_set.remove(property_name)
577
- if len(memeber_set) > 0:
578
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
579
-
580
-
581
-
582
- class ModerateTextRequest(AbstractModel):
583
- """ModerateText请求参数结构体
584
-
585
- """
586
-
587
- def __init__(self):
588
- r"""
589
- :param _Content: 该字段表示待检测对象的文本内容,文本需要按utf-8格式编码,长度不能超过10000个字符(按unicode编码计算),并进行 Base64加密
590
- :type Content: str
591
- :param _BizType: 该字段表示策略的具体编号,用于接口调度,在内容安全控制台中可配置。若不传入Biztype参数(留空),则代表采用默认的识别策略;传入则会在审核时根据业务场景采取不同的审核策略。
592
- 备注:Biztype仅为数字、字母与下划线的组合,长度为3-32个字符;不同Biztype关联不同的业务场景与识别能力策略,调用前请确认正确的Biztype
593
- :type BizType: str
594
- :param _DataId: 该字段表示您为待检测对象分配的数据ID,传入后可方便您对文件进行标识和管理。
595
- 取值:由英文字母(大小写均可)、数字及四个特殊符号(_,-,@,#)组成,长度不超过64个字符
596
- :type DataId: str
597
- :param _User: 该字段表示待检测对象对应的用户相关信息,传入后可便于甄别相应违规风险用户
598
- :type User: :class:`tencentcloud.tms.v20201229.models.User`
599
- :param _Device: 该字段表示待检测对象对应的设备相关信息,传入后可便于甄别相应违规风险设备
600
- :type Device: :class:`tencentcloud.tms.v20201229.models.Device`
601
- """
602
- self._Content = None
603
- self._BizType = None
604
- self._DataId = None
605
- self._User = None
606
- self._Device = None
607
-
608
- @property
609
- def Content(self):
610
- return self._Content
611
-
612
- @Content.setter
613
- def Content(self, Content):
614
- self._Content = Content
615
-
616
- @property
617
- def BizType(self):
618
- return self._BizType
619
-
620
- @BizType.setter
621
- def BizType(self, BizType):
622
- self._BizType = BizType
623
-
624
- @property
625
- def DataId(self):
626
- return self._DataId
627
-
628
- @DataId.setter
629
- def DataId(self, DataId):
630
- self._DataId = DataId
631
-
632
- @property
633
- def User(self):
634
- return self._User
635
-
636
- @User.setter
637
- def User(self, User):
638
- self._User = User
639
-
640
- @property
641
- def Device(self):
642
- return self._Device
643
-
644
- @Device.setter
645
- def Device(self, Device):
646
- self._Device = Device
647
-
648
-
649
- def _deserialize(self, params):
650
- self._Content = params.get("Content")
651
- self._BizType = params.get("BizType")
652
- self._DataId = params.get("DataId")
653
- if params.get("User") is not None:
654
- self._User = User()
655
- self._User._deserialize(params.get("User"))
656
- if params.get("Device") is not None:
657
- self._Device = Device()
658
- self._Device._deserialize(params.get("Device"))
659
- memeber_set = set(params.keys())
660
- for name, value in vars(self).items():
661
- property_name = name[1:]
662
- if property_name in memeber_set:
663
- memeber_set.remove(property_name)
664
- if len(memeber_set) > 0:
665
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
666
-
667
-
668
-
669
- class ModerateTextResponse(AbstractModel):
670
- """ModerateText返回参数结构体
671
-
672
- """
673
-
674
- def __init__(self):
675
- r"""
676
- :param _DataId: 该字段用于返回检测对象对应请求参数中的DataId,与输入的DataId字段中的内容对应
677
- :type DataId: str
678
- :param _BizType: 该字段用于返回请求参数中的BizType参数
679
- :type BizType: str
680
- :param _Suggestion: 该字段用于返回后续操作建议。当您获取到判定结果后,返回值表示系统推荐的后续操作;建议您按照业务所需,对不同违规类型与建议值进行处理。
681
- 返回值:Block:建议屏蔽,Review :建议人工复审,Pass:建议通过
682
- :type Suggestion: str
683
- :param _Label: 命中标签,可参阅对应数据结构(LabelGrade)的详细描述
684
- :type Label: :class:`tencentcloud.tms.v20201229.models.LabelGrade`
685
- :param _TcLabelCodes: 命中标签对应腾讯侧定义的标签
686
- :type TcLabelCodes: list of str
687
- :param _Keywords: 该字段用于返回当前标签(Label)下被检测文本命中的关键词信息,用于标注文本违规的具体原因(如:加我微信)。该参数可能会有多个返回值,代表命中的多个关键词;如返回值为空且Score不为空,则代表识别结果所对应的恶意标签(Label)是来自于语义模型判断的返回值
688
- :type Keywords: list of str
689
- :param _ModerationDetails: 该字段用于返回文本审核的详细结果,返回值信息可参阅对应数据结构(ModerationDetail)的详细描述
690
- :type ModerationDetails: list of ModerationDetail
691
- :param _Score: 该字段用于返回审核结果置信度,使用百分制。分数越高表示结果可信度越高。
692
- :type Score: int
693
- :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
694
- :type RequestId: str
695
- """
696
- self._DataId = None
697
- self._BizType = None
698
- self._Suggestion = None
699
- self._Label = None
700
- self._TcLabelCodes = None
701
- self._Keywords = None
702
- self._ModerationDetails = None
703
- self._Score = None
704
- self._RequestId = None
705
-
706
- @property
707
- def DataId(self):
708
- return self._DataId
709
-
710
- @DataId.setter
711
- def DataId(self, DataId):
712
- self._DataId = DataId
713
-
714
- @property
715
- def BizType(self):
716
- return self._BizType
717
-
718
- @BizType.setter
719
- def BizType(self, BizType):
720
- self._BizType = BizType
721
-
722
- @property
723
- def Suggestion(self):
724
- return self._Suggestion
725
-
726
- @Suggestion.setter
727
- def Suggestion(self, Suggestion):
728
- self._Suggestion = Suggestion
729
-
730
- @property
731
- def Label(self):
732
- return self._Label
733
-
734
- @Label.setter
735
- def Label(self, Label):
736
- self._Label = Label
737
-
738
- @property
739
- def TcLabelCodes(self):
740
- return self._TcLabelCodes
741
-
742
- @TcLabelCodes.setter
743
- def TcLabelCodes(self, TcLabelCodes):
744
- self._TcLabelCodes = TcLabelCodes
745
-
746
- @property
747
- def Keywords(self):
748
- return self._Keywords
749
-
750
- @Keywords.setter
751
- def Keywords(self, Keywords):
752
- self._Keywords = Keywords
753
-
754
- @property
755
- def ModerationDetails(self):
756
- return self._ModerationDetails
757
-
758
- @ModerationDetails.setter
759
- def ModerationDetails(self, ModerationDetails):
760
- self._ModerationDetails = ModerationDetails
761
-
762
- @property
763
- def Score(self):
764
- return self._Score
765
-
766
- @Score.setter
767
- def Score(self, Score):
768
- self._Score = Score
769
-
770
- @property
771
- def RequestId(self):
772
- return self._RequestId
773
-
774
- @RequestId.setter
775
- def RequestId(self, RequestId):
776
- self._RequestId = RequestId
777
-
778
-
779
- def _deserialize(self, params):
780
- self._DataId = params.get("DataId")
781
- self._BizType = params.get("BizType")
782
- self._Suggestion = params.get("Suggestion")
783
- if params.get("Label") is not None:
784
- self._Label = LabelGrade()
785
- self._Label._deserialize(params.get("Label"))
786
- self._TcLabelCodes = params.get("TcLabelCodes")
787
- self._Keywords = params.get("Keywords")
788
- if params.get("ModerationDetails") is not None:
789
- self._ModerationDetails = []
790
- for item in params.get("ModerationDetails"):
791
- obj = ModerationDetail()
792
- obj._deserialize(item)
793
- self._ModerationDetails.append(obj)
794
- self._Score = params.get("Score")
795
- self._RequestId = params.get("RequestId")
796
-
797
-
798
- class ModerationDetail(AbstractModel):
799
- """文本审核明细结果
800
-
801
- """
802
-
803
- def __init__(self):
804
- r"""
805
- :param _Suggestion: 审核建议,Block表示建议拦截,Review表示建议人工复审,Pass表示建议放行
806
- 注意:此字段可能返回 null,表示取不到有效值。
807
- :type Suggestion: str
808
- :param _Label: 命中标签,含标签码和一二三级标签名
809
- 注意:此字段可能返回 null,表示取不到有效值。
810
- :type Label: :class:`tencentcloud.tms.v20201229.models.LabelGrade`
811
- :param _Score: 标签得分
812
- 注意:此字段可能返回 null,表示取不到有效值。
813
- :type Score: int
814
- :param _TcLabelCodes: label对应腾讯侧命中标签码
815
- 注意:此字段可能返回 null,表示取不到有效值。
816
- :type TcLabelCodes: list of str
817
- :param _LibResults: 库检测命中详情
818
- 注意:此字段可能返回 null,表示取不到有效值。
819
- :type LibResults: list of LibCheckResult
820
- :param _ModelResults: 模型检测详情
821
- 注意:此字段可能返回 null,表示取不到有效值。
822
- :type ModelResults: list of ModelResult
823
- :param _SentimentResult: 情绪正负向检测结果
824
- 注意:此字段可能返回 null,表示取不到有效值。
825
- :type SentimentResult: :class:`tencentcloud.tms.v20201229.models.SentimentDetail`
826
- """
827
- self._Suggestion = None
828
- self._Label = None
829
- self._Score = None
830
- self._TcLabelCodes = None
831
- self._LibResults = None
832
- self._ModelResults = None
833
- self._SentimentResult = None
834
-
835
- @property
836
- def Suggestion(self):
837
- return self._Suggestion
838
-
839
- @Suggestion.setter
840
- def Suggestion(self, Suggestion):
841
- self._Suggestion = Suggestion
842
-
843
- @property
844
- def Label(self):
845
- return self._Label
846
-
847
- @Label.setter
848
- def Label(self, Label):
849
- self._Label = Label
850
-
851
- @property
852
- def Score(self):
853
- return self._Score
854
-
855
- @Score.setter
856
- def Score(self, Score):
857
- self._Score = Score
858
-
859
- @property
860
- def TcLabelCodes(self):
861
- return self._TcLabelCodes
862
-
863
- @TcLabelCodes.setter
864
- def TcLabelCodes(self, TcLabelCodes):
865
- self._TcLabelCodes = TcLabelCodes
866
-
867
- @property
868
- def LibResults(self):
869
- return self._LibResults
870
-
871
- @LibResults.setter
872
- def LibResults(self, LibResults):
873
- self._LibResults = LibResults
874
-
875
- @property
876
- def ModelResults(self):
877
- return self._ModelResults
878
-
879
- @ModelResults.setter
880
- def ModelResults(self, ModelResults):
881
- self._ModelResults = ModelResults
882
-
883
- @property
884
- def SentimentResult(self):
885
- return self._SentimentResult
886
-
887
- @SentimentResult.setter
888
- def SentimentResult(self, SentimentResult):
889
- self._SentimentResult = SentimentResult
890
-
891
-
892
- def _deserialize(self, params):
893
- self._Suggestion = params.get("Suggestion")
894
- if params.get("Label") is not None:
895
- self._Label = LabelGrade()
896
- self._Label._deserialize(params.get("Label"))
897
- self._Score = params.get("Score")
898
- self._TcLabelCodes = params.get("TcLabelCodes")
899
- if params.get("LibResults") is not None:
900
- self._LibResults = []
901
- for item in params.get("LibResults"):
902
- obj = LibCheckResult()
903
- obj._deserialize(item)
904
- self._LibResults.append(obj)
905
- if params.get("ModelResults") is not None:
906
- self._ModelResults = []
907
- for item in params.get("ModelResults"):
908
- obj = ModelResult()
909
- obj._deserialize(item)
910
- self._ModelResults.append(obj)
911
- if params.get("SentimentResult") is not None:
912
- self._SentimentResult = SentimentDetail()
913
- self._SentimentResult._deserialize(params.get("SentimentResult"))
914
- memeber_set = set(params.keys())
915
- for name, value in vars(self).items():
916
- property_name = name[1:]
917
- if property_name in memeber_set:
918
- memeber_set.remove(property_name)
919
- if len(memeber_set) > 0:
920
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
921
-
922
-
923
-
924
366
  class Positions(AbstractModel):
925
367
  """标识命中的违规关键词位置信息
926
368
 
@@ -26,29 +26,6 @@ class TmsClient(AbstractClient):
26
26
  _service = 'tms'
27
27
 
28
28
 
29
- def ModerateText(self, request):
30
- """天御文本内容安全定制标签文本审核接口为定制接口,会按照客户定制标签输出审核结果,如需使用请联系商务经理或[在线客服](https://cloud.tencent.com/online-service?from=doc_1125)咨询。
31
-
32
- :param request: Request instance for ModerateText.
33
- :type request: :class:`tencentcloud.tms.v20201229.models.ModerateTextRequest`
34
- :rtype: :class:`tencentcloud.tms.v20201229.models.ModerateTextResponse`
35
-
36
- """
37
- try:
38
- params = request._serialize()
39
- headers = request.headers
40
- body = self.call("ModerateText", params, headers=headers)
41
- response = json.loads(body)
42
- model = models.ModerateTextResponse()
43
- model._deserialize(response["Response"])
44
- return model
45
- except Exception as e:
46
- if isinstance(e, TencentCloudSDKException):
47
- raise
48
- else:
49
- raise TencentCloudSDKException(type(e).__name__, str(e))
50
-
51
-
52
29
  def TextModeration(self, request):
53
30
  """本接口(Text Moderation)用于提交文本内容进行智能审核任务。使用前请您使用腾讯云主账号登录控制台 [开通文本内容安全服务](https://console.cloud.tencent.com/cms) 并调整好对应的业务配置。
54
31
 
@@ -2297,7 +2297,7 @@ class CreateMerchantRequest(AbstractModel):
2297
2297
  :type Remark: str
2298
2298
  :param _CorpId: 企业ID
2299
2299
  :type CorpId: int
2300
- :param _CodeType: 码包来源 0:自建, 1:第三发
2300
+ :param _CodeType: 码包来源 0:自建, 1:第三方
2301
2301
  :type CodeType: int
2302
2302
  :param _CodeUrl: 码包前缀地址 第三方码包时必填
2303
2303
  :type CodeUrl: str
@@ -3752,7 +3752,7 @@ class DescribeCodeBatchesRequest(AbstractModel):
3752
3752
  :type BatchType: str
3753
3753
  :param _CorpId: 企业ID
3754
3754
  :type CorpId: int
3755
- :param _Status: 批次状态
3755
+ :param _Status: 批次状态 0: 未激活 1: 已激活 -1: 已冻结
3756
3756
  :type Status: int
3757
3757
  """
3758
3758
  self._MerchantId = None
@@ -6563,7 +6563,7 @@ class DescribeTraceDataListRequest(AbstractModel):
6563
6563
  :type TaskId: str
6564
6564
  :param _PageNumber: 页数
6565
6565
  :type PageNumber: int
6566
- :param _Code: 二维码
6566
+ :param _Code: 溯源码
6567
6567
  :type Code: str
6568
6568
  :param _Phase: 溯源阶段 0:商品 1:通用 2:内部溯源 3:外部溯源
6569
6569
  :type Phase: int
@@ -6660,9 +6660,9 @@ class DescribeTraceDataListResponse(AbstractModel):
6660
6660
 
6661
6661
  def __init__(self):
6662
6662
  r"""
6663
- :param _TotalCount: 数量
6663
+ :param _TotalCount: 溯源阶段数量
6664
6664
  :type TotalCount: int
6665
- :param _TraceDataList:
6665
+ :param _TraceDataList: 溯源明细
6666
6666
  :type TraceDataList: list of TraceData
6667
6667
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
6668
6668
  :type RequestId: str
@@ -7504,7 +7504,7 @@ class ModifyMerchantRequest(AbstractModel):
7504
7504
  :type Remark: str
7505
7505
  :param _CorpId: 企业ID
7506
7506
  :type CorpId: int
7507
- :param _CodeType: 码包来源 0:自建, 1:第三码包,暂不支持修改
7507
+ :param _CodeType: 码包来源 0:自建, 1:第三方码包,暂不支持修改
7508
7508
  :type CodeType: int
7509
7509
  :param _CodeUrl: 码包前缀地址 第三方码包时必填
7510
7510
  :type CodeUrl: str