tencentcloud-sdk-python 3.0.1479__py2.py3-none-any.whl → 3.0.1480__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.

Potentially problematic release.


This version of tencentcloud-sdk-python might be problematic. Click here for more details.

@@ -20330,7 +20330,7 @@ class DescribeOpenPolicyListRequest(AbstractModel):
20330
20330
 
20331
20331
  def __init__(self):
20332
20332
  r"""
20333
- :param _ClusterId: 集群ID
20333
+ :param _ClusterId: 集群ID,请从容器服务集群列表获取(https://console.cloud.tencent.com/tke2/cluster)
20334
20334
  :type ClusterId: str
20335
20335
  :param _Category: 策略分类 基线:baseline 优选:priority 可选:optional
20336
20336
  :type Category: str
@@ -20340,7 +20340,7 @@ class DescribeOpenPolicyListRequest(AbstractModel):
20340
20340
 
20341
20341
  @property
20342
20342
  def ClusterId(self):
20343
- r"""集群ID
20343
+ r"""集群ID,请从容器服务集群列表获取(https://console.cloud.tencent.com/tke2/cluster)
20344
20344
  :rtype: str
20345
20345
  """
20346
20346
  return self._ClusterId
@@ -37075,7 +37075,63 @@ class OpenPolicyInfo(AbstractModel):
37075
37075
  :type EventNums: int
37076
37076
  :param _Name: 策略英文名称
37077
37077
  :type Name: str
37078
- :param _Kind: 策略模板类型
37078
+ :param _Kind: 策略模板类型,支持的类型如下:
37079
+ 优选策略:
37080
+ blocknamespacedeletion:存在pod的命名空间不允许删除
37081
+ blockcrddeletion:存在cr的crd不允许删除
37082
+ blockmountablevolumetype:禁止挂载指定的volume类型
37083
+ disallowalwayspullimage:禁止镜像拉取策略使用Always
37084
+ tkeallowedrepos:容器镜像来源限制
37085
+ blockunknowndaemonset:禁止未知的DaemonSet部署
37086
+ blockpvdeletion:PV处于绑定状态则不允许删除
37087
+ corednsprotect:CoreDNS组件删除保护
37088
+ blockschedulablenodedelete:非封锁状态的Node不允许删除
37089
+ resourcesdeletionprotection:资源删除保护
37090
+ tkeenirequest:弹性网卡资源配置限制
37091
+ blockworkloadcrossversionupgrade:工作负载镜像版本升级策略管控
37092
+ blockserviceaccountgranthighprivilegepermission:ServiceAccount权限管控
37093
+ blockclusteripserviceexist:不允许Service为ClusterIP类型
37094
+ blockinternetaccess:禁止公网访问
37095
+ assign:禁止访问Metadata Server
37096
+ blockhostnetworkpod:禁止创建HostNetwork类型Pod
37097
+
37098
+ 可选策略:
37099
+ blockvolumemountpath:禁止容器挂载指定的目录
37100
+ k8sallowedrepos:容器镜像必须以指定字符串列表中的字符串开头
37101
+ k8sblockendpointeditdefaultrole:禁止默认ClusterRole修改Endpoints
37102
+ k8sblockloadbalancer:不允许Service为LoadBalancer类型
37103
+ k8sblocknodeport:不允许Service为NodePort类型
37104
+ k8sblockwildcardingress:禁止ingress配置空白或通配符类型的hostname
37105
+ k8scontainerlimits:限制容器必须设置CPU和内存Limit
37106
+ k8scontainerratios:限制CPU和内存的Request与Limit的最大比率
37107
+ k8scontainerrequests:限制CPU和内存的Request必须设置且小于配置的最大值
37108
+ k8srequiredresources:必须配置内存的Limit,CPU和内存的Request
37109
+ k8sdisallowanonymous:不允许将白名单以外的ClusterRole和Role关联到system:anonymous User和system:unauthenticated Group
37110
+ k8sdisallowedtags:约束容器镜像tag
37111
+ k8sexternalips:限制服务externalIP仅为允许的IP地址列表
37112
+ k8simagedigests:容器镜像必须包含digest
37113
+ noupdateserviceaccount:拒绝白名单外的资源更新ServiceAccount
37114
+ k8sreplicalimits:要求具有spec.replicas字段的对象(Deployments、ReplicaSets等)在定义的范围内
37115
+ k8srequiredannotations:要求资源包含指定的annotations,其值与提供的正则表达式匹配
37116
+ k8srequiredlabels:要求资源包含指定的标签,其值与提供的正则表达式匹配
37117
+ k8srequiredprobes:要求Pod具有Readiness或Liveness Probe
37118
+ k8spspautomountserviceaccounttokenpod:约束容器不能设置automountServiceAccountToken为true
37119
+ k8spspallowprivilegeescalationcontainer:约束PodSecurityPolicy中的allowPrivilegeEscalation字段为false
37120
+ k8spspapparmor:约束AppArmor字段列表
37121
+ k8spspcapabilities:限制PodSecurityPolicy中的allowedCapabilities和requiredDropCapabilities字段
37122
+ k8spspflexvolumes:约束PodSecurityPolicy中的allowedFlexVolumes字段类型
37123
+ k8spspforbiddensysctls:约束PodSecurityPolicy中的sysctls字段不能使用的name
37124
+ k8spspfsgroup:控制PodSecurityPolicy中的fsGroup字段在限制范围内
37125
+ k8spsphostfilesystem:约束PodSecurityPolicy中的hostPath字段的参数
37126
+ k8spsphostnamespace:限制PodSecurityPolicy中的hostPID和hostIPC字段
37127
+ k8spsphostnetworkingports:约束PodSecurityPolicy中的hostNetwork和hostPorts字段
37128
+ k8spspprivilegedcontainer:禁止PodSecurityPolicy中的privileged字段为true
37129
+ k8spspprocmount:约束PodSecurityPolicy中的allowedProcMountTypes字段
37130
+ k8spspreadonlyrootfilesystem:约束PodSecurityPolicy中的readOnlyRootFilesystem字段
37131
+ k8spspseccomp:约束PodSecurityPolicy上的seccomp.security.alpha.kubernetes.io/allowedProfileNames注解
37132
+ k8spspselinuxv2:约束Pod定义SELinux配置的允许列表
37133
+ k8spspallowedusers:约束PodSecurityPolicy中的runAsUser、runAsGroup、supplementalGroups和fsGroup字段
37134
+ k8spspvolumetypes:约束PodSecurityPolicy中的volumes字段类型
37079
37135
  :type Kind: str
37080
37136
  :param _EnabledStatus: 策略开关状态:open打开,close关闭
37081
37137
  :type EnabledStatus: str
@@ -37164,7 +37220,63 @@ class OpenPolicyInfo(AbstractModel):
37164
37220
 
37165
37221
  @property
37166
37222
  def Kind(self):
37167
- r"""策略模板类型
37223
+ r"""策略模板类型,支持的类型如下:
37224
+ 优选策略:
37225
+ blocknamespacedeletion:存在pod的命名空间不允许删除
37226
+ blockcrddeletion:存在cr的crd不允许删除
37227
+ blockmountablevolumetype:禁止挂载指定的volume类型
37228
+ disallowalwayspullimage:禁止镜像拉取策略使用Always
37229
+ tkeallowedrepos:容器镜像来源限制
37230
+ blockunknowndaemonset:禁止未知的DaemonSet部署
37231
+ blockpvdeletion:PV处于绑定状态则不允许删除
37232
+ corednsprotect:CoreDNS组件删除保护
37233
+ blockschedulablenodedelete:非封锁状态的Node不允许删除
37234
+ resourcesdeletionprotection:资源删除保护
37235
+ tkeenirequest:弹性网卡资源配置限制
37236
+ blockworkloadcrossversionupgrade:工作负载镜像版本升级策略管控
37237
+ blockserviceaccountgranthighprivilegepermission:ServiceAccount权限管控
37238
+ blockclusteripserviceexist:不允许Service为ClusterIP类型
37239
+ blockinternetaccess:禁止公网访问
37240
+ assign:禁止访问Metadata Server
37241
+ blockhostnetworkpod:禁止创建HostNetwork类型Pod
37242
+
37243
+ 可选策略:
37244
+ blockvolumemountpath:禁止容器挂载指定的目录
37245
+ k8sallowedrepos:容器镜像必须以指定字符串列表中的字符串开头
37246
+ k8sblockendpointeditdefaultrole:禁止默认ClusterRole修改Endpoints
37247
+ k8sblockloadbalancer:不允许Service为LoadBalancer类型
37248
+ k8sblocknodeport:不允许Service为NodePort类型
37249
+ k8sblockwildcardingress:禁止ingress配置空白或通配符类型的hostname
37250
+ k8scontainerlimits:限制容器必须设置CPU和内存Limit
37251
+ k8scontainerratios:限制CPU和内存的Request与Limit的最大比率
37252
+ k8scontainerrequests:限制CPU和内存的Request必须设置且小于配置的最大值
37253
+ k8srequiredresources:必须配置内存的Limit,CPU和内存的Request
37254
+ k8sdisallowanonymous:不允许将白名单以外的ClusterRole和Role关联到system:anonymous User和system:unauthenticated Group
37255
+ k8sdisallowedtags:约束容器镜像tag
37256
+ k8sexternalips:限制服务externalIP仅为允许的IP地址列表
37257
+ k8simagedigests:容器镜像必须包含digest
37258
+ noupdateserviceaccount:拒绝白名单外的资源更新ServiceAccount
37259
+ k8sreplicalimits:要求具有spec.replicas字段的对象(Deployments、ReplicaSets等)在定义的范围内
37260
+ k8srequiredannotations:要求资源包含指定的annotations,其值与提供的正则表达式匹配
37261
+ k8srequiredlabels:要求资源包含指定的标签,其值与提供的正则表达式匹配
37262
+ k8srequiredprobes:要求Pod具有Readiness或Liveness Probe
37263
+ k8spspautomountserviceaccounttokenpod:约束容器不能设置automountServiceAccountToken为true
37264
+ k8spspallowprivilegeescalationcontainer:约束PodSecurityPolicy中的allowPrivilegeEscalation字段为false
37265
+ k8spspapparmor:约束AppArmor字段列表
37266
+ k8spspcapabilities:限制PodSecurityPolicy中的allowedCapabilities和requiredDropCapabilities字段
37267
+ k8spspflexvolumes:约束PodSecurityPolicy中的allowedFlexVolumes字段类型
37268
+ k8spspforbiddensysctls:约束PodSecurityPolicy中的sysctls字段不能使用的name
37269
+ k8spspfsgroup:控制PodSecurityPolicy中的fsGroup字段在限制范围内
37270
+ k8spsphostfilesystem:约束PodSecurityPolicy中的hostPath字段的参数
37271
+ k8spsphostnamespace:限制PodSecurityPolicy中的hostPID和hostIPC字段
37272
+ k8spsphostnetworkingports:约束PodSecurityPolicy中的hostNetwork和hostPorts字段
37273
+ k8spspprivilegedcontainer:禁止PodSecurityPolicy中的privileged字段为true
37274
+ k8spspprocmount:约束PodSecurityPolicy中的allowedProcMountTypes字段
37275
+ k8spspreadonlyrootfilesystem:约束PodSecurityPolicy中的readOnlyRootFilesystem字段
37276
+ k8spspseccomp:约束PodSecurityPolicy上的seccomp.security.alpha.kubernetes.io/allowedProfileNames注解
37277
+ k8spspselinuxv2:约束Pod定义SELinux配置的允许列表
37278
+ k8spspallowedusers:约束PodSecurityPolicy中的runAsUser、runAsGroup、supplementalGroups和fsGroup字段
37279
+ k8spspvolumetypes:约束PodSecurityPolicy中的volumes字段类型
37168
37280
  :rtype: str
37169
37281
  """
37170
37282
  return self._Kind
@@ -44,6 +44,36 @@ INVALIDPARAMETERVALUE_ERRTEXTCONTENTTYPE = 'InvalidParameterValue.ErrTextContent
44
44
  # Type参数值不支持
45
45
  INVALIDPARAMETERVALUE_ERRTYPE = 'InvalidParameterValue.ErrType'
46
46
 
47
+ # BizType参数错误
48
+ INVALIDPARAMETERVALUE_INVALIDBIZTYPE = 'InvalidParameterValue.InvalidBizType'
49
+
50
+ # InvalidParameterValue.InvalidContent
51
+ INVALIDPARAMETERVALUE_INVALIDCONTENT = 'InvalidParameterValue.InvalidContent'
52
+
53
+ # ContentType参数错误
54
+ INVALIDPARAMETERVALUE_INVALIDCONTENTTYPE = 'InvalidParameterValue.InvalidContentType'
55
+
56
+ # FileName参数错误
57
+ INVALIDPARAMETERVALUE_INVALIDFILENAME = 'InvalidParameterValue.InvalidFileName'
58
+
59
+ # FileType参数错误
60
+ INVALIDPARAMETERVALUE_INVALIDFILETYPE = 'InvalidParameterValue.InvalidFileType'
61
+
62
+ # FileUrl参数错误
63
+ INVALIDPARAMETERVALUE_INVALIDFILEURL = 'InvalidParameterValue.InvalidFileUrl'
64
+
65
+ # Requirement参数错误
66
+ INVALIDPARAMETERVALUE_INVALIDREQUIREMENT = 'InvalidParameterValue.InvalidRequirement'
67
+
68
+ # TaskId参数错误
69
+ INVALIDPARAMETERVALUE_INVALIDTASKID = 'InvalidParameterValue.InvalidTaskId'
70
+
71
+ # Verbose参数错误
72
+ INVALIDPARAMETERVALUE_INVALIDVERBOSE = 'InvalidParameterValue.InvalidVerbose'
73
+
74
+ # 任务ID不存在
75
+ INVALIDPARAMETERVALUE_TASKIDNOTFOUND = 'InvalidParameterValue.TaskIdNotFound'
76
+
47
77
  # 请求的次数超过了频率限制。
48
78
  REQUESTLIMITEXCEEDED = 'RequestLimitExceeded'
49
79
 
@@ -18,6 +18,148 @@ import warnings
18
18
  from tencentcloud.common.abstract_model import AbstractModel
19
19
 
20
20
 
21
+ class CreateFinancialLLMTaskRequest(AbstractModel):
22
+ r"""CreateFinancialLLMTask请求参数结构体
23
+
24
+ """
25
+
26
+ def __init__(self):
27
+ r"""
28
+ :param _BizType: 审核策略BizType
29
+ :type BizType: str
30
+ :param _FileType: 待审文件类型,目前支持:PDF, DOC, DOCX
31
+ :type FileType: str
32
+ :param _ContentType: 送审内容类型:1-文档,2-文本
33
+ :type ContentType: int
34
+ :param _Content: 送审内容,根据ContentType字段的取值,传入送审文档的Url链接,或送审文本的Base64编码
35
+
36
+ 文档限制:
37
+
38
+ - 文件下载时间不超过15秒(文件存储于腾讯云的Url可保障更高的下载速度和稳定性,建议文件存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。)
39
+ - 所下载文件经 Base64 编码后不超过支持的文件大小:PDF/DOC/DOCX - 200M
40
+ - 文档解析后的纯文本长度不超过 10000字
41
+
42
+ 文本限制:Base64解码后的文本长度不超过10000字
43
+
44
+ :type Content: str
45
+ """
46
+ self._BizType = None
47
+ self._FileType = None
48
+ self._ContentType = None
49
+ self._Content = None
50
+
51
+ @property
52
+ def BizType(self):
53
+ r"""审核策略BizType
54
+ :rtype: str
55
+ """
56
+ return self._BizType
57
+
58
+ @BizType.setter
59
+ def BizType(self, BizType):
60
+ self._BizType = BizType
61
+
62
+ @property
63
+ def FileType(self):
64
+ r"""待审文件类型,目前支持:PDF, DOC, DOCX
65
+ :rtype: str
66
+ """
67
+ return self._FileType
68
+
69
+ @FileType.setter
70
+ def FileType(self, FileType):
71
+ self._FileType = FileType
72
+
73
+ @property
74
+ def ContentType(self):
75
+ r"""送审内容类型:1-文档,2-文本
76
+ :rtype: int
77
+ """
78
+ return self._ContentType
79
+
80
+ @ContentType.setter
81
+ def ContentType(self, ContentType):
82
+ self._ContentType = ContentType
83
+
84
+ @property
85
+ def Content(self):
86
+ r"""送审内容,根据ContentType字段的取值,传入送审文档的Url链接,或送审文本的Base64编码
87
+
88
+ 文档限制:
89
+
90
+ - 文件下载时间不超过15秒(文件存储于腾讯云的Url可保障更高的下载速度和稳定性,建议文件存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。)
91
+ - 所下载文件经 Base64 编码后不超过支持的文件大小:PDF/DOC/DOCX - 200M
92
+ - 文档解析后的纯文本长度不超过 10000字
93
+
94
+ 文本限制:Base64解码后的文本长度不超过10000字
95
+
96
+ :rtype: str
97
+ """
98
+ return self._Content
99
+
100
+ @Content.setter
101
+ def Content(self, Content):
102
+ self._Content = Content
103
+
104
+
105
+ def _deserialize(self, params):
106
+ self._BizType = params.get("BizType")
107
+ self._FileType = params.get("FileType")
108
+ self._ContentType = params.get("ContentType")
109
+ self._Content = params.get("Content")
110
+ memeber_set = set(params.keys())
111
+ for name, value in vars(self).items():
112
+ property_name = name[1:]
113
+ if property_name in memeber_set:
114
+ memeber_set.remove(property_name)
115
+ if len(memeber_set) > 0:
116
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
117
+
118
+
119
+
120
+ class CreateFinancialLLMTaskResponse(AbstractModel):
121
+ r"""CreateFinancialLLMTask返回参数结构体
122
+
123
+ """
124
+
125
+ def __init__(self):
126
+ r"""
127
+ :param _TaskId: 金融大模型审校任务ID
128
+ :type TaskId: str
129
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
130
+ :type RequestId: str
131
+ """
132
+ self._TaskId = None
133
+ self._RequestId = None
134
+
135
+ @property
136
+ def TaskId(self):
137
+ r"""金融大模型审校任务ID
138
+ :rtype: str
139
+ """
140
+ return self._TaskId
141
+
142
+ @TaskId.setter
143
+ def TaskId(self, TaskId):
144
+ self._TaskId = TaskId
145
+
146
+ @property
147
+ def RequestId(self):
148
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
149
+ :rtype: str
150
+ """
151
+ return self._RequestId
152
+
153
+ @RequestId.setter
154
+ def RequestId(self, RequestId):
155
+ self._RequestId = RequestId
156
+
157
+
158
+ def _deserialize(self, params):
159
+ self._TaskId = params.get("TaskId")
160
+ self._RequestId = params.get("RequestId")
161
+
162
+
21
163
  class DetailResults(AbstractModel):
22
164
  r"""文本审核返回的详细结果
23
165
 
@@ -331,6 +473,295 @@ class Device(AbstractModel):
331
473
 
332
474
 
333
475
 
476
+ class FinancialLLMViolationDetail(AbstractModel):
477
+ r"""金融大模型审校 违规明细
478
+
479
+ """
480
+
481
+ def __init__(self):
482
+ r"""
483
+ :param _Label: 违规点
484
+ :type Label: str
485
+ :param _Suggestion: 处置建议
486
+ :type Suggestion: str
487
+ :param _Reasons: 违规原因列表
488
+ :type Reasons: list of FinancialLLMViolationReason
489
+ """
490
+ self._Label = None
491
+ self._Suggestion = None
492
+ self._Reasons = None
493
+
494
+ @property
495
+ def Label(self):
496
+ r"""违规点
497
+ :rtype: str
498
+ """
499
+ return self._Label
500
+
501
+ @Label.setter
502
+ def Label(self, Label):
503
+ self._Label = Label
504
+
505
+ @property
506
+ def Suggestion(self):
507
+ r"""处置建议
508
+ :rtype: str
509
+ """
510
+ return self._Suggestion
511
+
512
+ @Suggestion.setter
513
+ def Suggestion(self, Suggestion):
514
+ self._Suggestion = Suggestion
515
+
516
+ @property
517
+ def Reasons(self):
518
+ r"""违规原因列表
519
+ :rtype: list of FinancialLLMViolationReason
520
+ """
521
+ return self._Reasons
522
+
523
+ @Reasons.setter
524
+ def Reasons(self, Reasons):
525
+ self._Reasons = Reasons
526
+
527
+
528
+ def _deserialize(self, params):
529
+ self._Label = params.get("Label")
530
+ self._Suggestion = params.get("Suggestion")
531
+ if params.get("Reasons") is not None:
532
+ self._Reasons = []
533
+ for item in params.get("Reasons"):
534
+ obj = FinancialLLMViolationReason()
535
+ obj._deserialize(item)
536
+ self._Reasons.append(obj)
537
+ memeber_set = set(params.keys())
538
+ for name, value in vars(self).items():
539
+ property_name = name[1:]
540
+ if property_name in memeber_set:
541
+ memeber_set.remove(property_name)
542
+ if len(memeber_set) > 0:
543
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
544
+
545
+
546
+
547
+ class FinancialLLMViolationReason(AbstractModel):
548
+ r"""金融大模型审校-违规原因
549
+
550
+ """
551
+
552
+ def __init__(self):
553
+ r"""
554
+ :param _TargetText: 违规原文片段
555
+ :type TargetText: str
556
+ :param _Reason: 违规原因
557
+ :type Reason: str
558
+ """
559
+ self._TargetText = None
560
+ self._Reason = None
561
+
562
+ @property
563
+ def TargetText(self):
564
+ r"""违规原文片段
565
+ :rtype: str
566
+ """
567
+ return self._TargetText
568
+
569
+ @TargetText.setter
570
+ def TargetText(self, TargetText):
571
+ self._TargetText = TargetText
572
+
573
+ @property
574
+ def Reason(self):
575
+ r"""违规原因
576
+ :rtype: str
577
+ """
578
+ return self._Reason
579
+
580
+ @Reason.setter
581
+ def Reason(self, Reason):
582
+ self._Reason = Reason
583
+
584
+
585
+ def _deserialize(self, params):
586
+ self._TargetText = params.get("TargetText")
587
+ self._Reason = params.get("Reason")
588
+ memeber_set = set(params.keys())
589
+ for name, value in vars(self).items():
590
+ property_name = name[1:]
591
+ if property_name in memeber_set:
592
+ memeber_set.remove(property_name)
593
+ if len(memeber_set) > 0:
594
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
595
+
596
+
597
+
598
+ class GetFinancialLLMTaskResultRequest(AbstractModel):
599
+ r"""GetFinancialLLMTaskResult请求参数结构体
600
+
601
+ """
602
+
603
+ def __init__(self):
604
+ r"""
605
+ :param _TaskId: 金融大模型审校任务ID
606
+ :type TaskId: str
607
+ """
608
+ self._TaskId = None
609
+
610
+ @property
611
+ def TaskId(self):
612
+ r"""金融大模型审校任务ID
613
+ :rtype: str
614
+ """
615
+ return self._TaskId
616
+
617
+ @TaskId.setter
618
+ def TaskId(self, TaskId):
619
+ self._TaskId = TaskId
620
+
621
+
622
+ def _deserialize(self, params):
623
+ self._TaskId = params.get("TaskId")
624
+ memeber_set = set(params.keys())
625
+ for name, value in vars(self).items():
626
+ property_name = name[1:]
627
+ if property_name in memeber_set:
628
+ memeber_set.remove(property_name)
629
+ if len(memeber_set) > 0:
630
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
631
+
632
+
633
+
634
+ class GetFinancialLLMTaskResultResponse(AbstractModel):
635
+ r"""GetFinancialLLMTaskResult返回参数结构体
636
+
637
+ """
638
+
639
+ def __init__(self):
640
+ r"""
641
+ :param _Status: 审校任务状态:
642
+
643
+ - Success: 成功
644
+ - Processing: 处理中,请等待
645
+ - Failed: 失败
646
+ :type Status: str
647
+ :param _ModerationResult: 大模型审校结果
648
+ :type ModerationResult: str
649
+ :param _FailureReason: 审校任务失败原因,仅当任务失败时有值
650
+ :type FailureReason: str
651
+ :param _StartTime: 审校任务开始时间
652
+ :type StartTime: str
653
+ :param _ReviewedLabels: 本次检测的违规点列表
654
+ :type ReviewedLabels: list of str
655
+ :param _Details: 违规明细
656
+ :type Details: list of FinancialLLMViolationDetail
657
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
658
+ :type RequestId: str
659
+ """
660
+ self._Status = None
661
+ self._ModerationResult = None
662
+ self._FailureReason = None
663
+ self._StartTime = None
664
+ self._ReviewedLabels = None
665
+ self._Details = None
666
+ self._RequestId = None
667
+
668
+ @property
669
+ def Status(self):
670
+ r"""审校任务状态:
671
+
672
+ - Success: 成功
673
+ - Processing: 处理中,请等待
674
+ - Failed: 失败
675
+ :rtype: str
676
+ """
677
+ return self._Status
678
+
679
+ @Status.setter
680
+ def Status(self, Status):
681
+ self._Status = Status
682
+
683
+ @property
684
+ def ModerationResult(self):
685
+ r"""大模型审校结果
686
+ :rtype: str
687
+ """
688
+ return self._ModerationResult
689
+
690
+ @ModerationResult.setter
691
+ def ModerationResult(self, ModerationResult):
692
+ self._ModerationResult = ModerationResult
693
+
694
+ @property
695
+ def FailureReason(self):
696
+ r"""审校任务失败原因,仅当任务失败时有值
697
+ :rtype: str
698
+ """
699
+ return self._FailureReason
700
+
701
+ @FailureReason.setter
702
+ def FailureReason(self, FailureReason):
703
+ self._FailureReason = FailureReason
704
+
705
+ @property
706
+ def StartTime(self):
707
+ r"""审校任务开始时间
708
+ :rtype: str
709
+ """
710
+ return self._StartTime
711
+
712
+ @StartTime.setter
713
+ def StartTime(self, StartTime):
714
+ self._StartTime = StartTime
715
+
716
+ @property
717
+ def ReviewedLabels(self):
718
+ r"""本次检测的违规点列表
719
+ :rtype: list of str
720
+ """
721
+ return self._ReviewedLabels
722
+
723
+ @ReviewedLabels.setter
724
+ def ReviewedLabels(self, ReviewedLabels):
725
+ self._ReviewedLabels = ReviewedLabels
726
+
727
+ @property
728
+ def Details(self):
729
+ r"""违规明细
730
+ :rtype: list of FinancialLLMViolationDetail
731
+ """
732
+ return self._Details
733
+
734
+ @Details.setter
735
+ def Details(self, Details):
736
+ self._Details = Details
737
+
738
+ @property
739
+ def RequestId(self):
740
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
741
+ :rtype: str
742
+ """
743
+ return self._RequestId
744
+
745
+ @RequestId.setter
746
+ def RequestId(self, RequestId):
747
+ self._RequestId = RequestId
748
+
749
+
750
+ def _deserialize(self, params):
751
+ self._Status = params.get("Status")
752
+ self._ModerationResult = params.get("ModerationResult")
753
+ self._FailureReason = params.get("FailureReason")
754
+ self._StartTime = params.get("StartTime")
755
+ self._ReviewedLabels = params.get("ReviewedLabels")
756
+ if params.get("Details") is not None:
757
+ self._Details = []
758
+ for item in params.get("Details"):
759
+ obj = FinancialLLMViolationDetail()
760
+ obj._deserialize(item)
761
+ self._Details.append(obj)
762
+ self._RequestId = params.get("RequestId")
763
+
764
+
334
765
  class HitInfo(AbstractModel):
335
766
  r"""关键词命中位置信息
336
767
 
@@ -26,6 +26,52 @@ class TmsClient(AbstractClient):
26
26
  _service = 'tms'
27
27
 
28
28
 
29
+ def CreateFinancialLLMTask(self, request):
30
+ r"""创建金融大模型审校任务
31
+
32
+ :param request: Request instance for CreateFinancialLLMTask.
33
+ :type request: :class:`tencentcloud.tms.v20201229.models.CreateFinancialLLMTaskRequest`
34
+ :rtype: :class:`tencentcloud.tms.v20201229.models.CreateFinancialLLMTaskResponse`
35
+
36
+ """
37
+ try:
38
+ params = request._serialize()
39
+ headers = request.headers
40
+ body = self.call("CreateFinancialLLMTask", params, headers=headers)
41
+ response = json.loads(body)
42
+ model = models.CreateFinancialLLMTaskResponse()
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
+ def GetFinancialLLMTaskResult(self, request):
53
+ r"""获取金融大模型审校任务结果
54
+
55
+ :param request: Request instance for GetFinancialLLMTaskResult.
56
+ :type request: :class:`tencentcloud.tms.v20201229.models.GetFinancialLLMTaskResultRequest`
57
+ :rtype: :class:`tencentcloud.tms.v20201229.models.GetFinancialLLMTaskResultResponse`
58
+
59
+ """
60
+ try:
61
+ params = request._serialize()
62
+ headers = request.headers
63
+ body = self.call("GetFinancialLLMTaskResult", params, headers=headers)
64
+ response = json.loads(body)
65
+ model = models.GetFinancialLLMTaskResultResponse()
66
+ model._deserialize(response["Response"])
67
+ return model
68
+ except Exception as e:
69
+ if isinstance(e, TencentCloudSDKException):
70
+ raise
71
+ else:
72
+ raise TencentCloudSDKException(type(e).__name__, str(e))
73
+
74
+
29
75
  def TextModeration(self, request):
30
76
  r"""本接口(Text Moderation)用于提交文本内容进行智能审核任务。使用前请您使用腾讯云主账号登录控制台 [开通文本内容安全服务](https://console.cloud.tencent.com/cms) 并调整好对应的业务配置。
31
77
 
@@ -731,6 +731,9 @@ INVALIDPARAMETERVALUE_CONTAINERGROUPAPPLICATIONIDNULL = 'InvalidParameterValue.C
731
731
  # 集群 CPU 资源不足。
732
732
  INVALIDPARAMETERVALUE_CONTAINERGROUPCPULIMITOVER = 'InvalidParameterValue.ContainergroupCpulimitOver'
733
733
 
734
+ # 容器Env的Value和ValueFrom不能同时使用
735
+ INVALIDPARAMETERVALUE_CONTAINERGROUPENVVALUEBOTHSET = 'InvalidParameterValue.ContainergroupEnvValueBothSet'
736
+
734
737
  # 容器 Env 的 Value 和 ValueFrom 至少要有一个。
735
738
  INVALIDPARAMETERVALUE_CONTAINERGROUPENVVALUENOTSET = 'InvalidParameterValue.ContainergroupEnvValueNotSet'
736
739