tencentcloud-sdk-python-teo 3.1.174__tar.gz → 3.1.176__tar.gz

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 (22) hide show
  1. {tencentcloud_sdk_python_teo-3.1.174 → tencentcloud_sdk_python_teo-3.1.176}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_teo-3.1.174 → tencentcloud_sdk_python_teo-3.1.176}/setup.py +1 -1
  3. {tencentcloud_sdk_python_teo-3.1.174 → tencentcloud_sdk_python_teo-3.1.176}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_teo-3.1.174 → tencentcloud_sdk_python_teo-3.1.176}/tencentcloud/teo/v20220901/models.py +716 -55
  5. {tencentcloud_sdk_python_teo-3.1.174 → tencentcloud_sdk_python_teo-3.1.176}/tencentcloud_sdk_python_teo.egg-info/PKG-INFO +2 -2
  6. tencentcloud_sdk_python_teo-3.1.176/tencentcloud_sdk_python_teo.egg-info/requires.txt +1 -0
  7. tencentcloud_sdk_python_teo-3.1.174/tencentcloud_sdk_python_teo.egg-info/requires.txt +0 -1
  8. {tencentcloud_sdk_python_teo-3.1.174 → tencentcloud_sdk_python_teo-3.1.176}/README.rst +0 -0
  9. {tencentcloud_sdk_python_teo-3.1.174 → tencentcloud_sdk_python_teo-3.1.176}/setup.cfg +0 -0
  10. {tencentcloud_sdk_python_teo-3.1.174 → tencentcloud_sdk_python_teo-3.1.176}/tencentcloud/teo/__init__.py +0 -0
  11. {tencentcloud_sdk_python_teo-3.1.174 → tencentcloud_sdk_python_teo-3.1.176}/tencentcloud/teo/v20220106/__init__.py +0 -0
  12. {tencentcloud_sdk_python_teo-3.1.174 → tencentcloud_sdk_python_teo-3.1.176}/tencentcloud/teo/v20220106/errorcodes.py +0 -0
  13. {tencentcloud_sdk_python_teo-3.1.174 → tencentcloud_sdk_python_teo-3.1.176}/tencentcloud/teo/v20220106/models.py +0 -0
  14. {tencentcloud_sdk_python_teo-3.1.174 → tencentcloud_sdk_python_teo-3.1.176}/tencentcloud/teo/v20220106/teo_client.py +0 -0
  15. {tencentcloud_sdk_python_teo-3.1.174 → tencentcloud_sdk_python_teo-3.1.176}/tencentcloud/teo/v20220106/teo_client_async.py +0 -0
  16. {tencentcloud_sdk_python_teo-3.1.174 → tencentcloud_sdk_python_teo-3.1.176}/tencentcloud/teo/v20220901/__init__.py +0 -0
  17. {tencentcloud_sdk_python_teo-3.1.174 → tencentcloud_sdk_python_teo-3.1.176}/tencentcloud/teo/v20220901/errorcodes.py +0 -0
  18. {tencentcloud_sdk_python_teo-3.1.174 → tencentcloud_sdk_python_teo-3.1.176}/tencentcloud/teo/v20220901/teo_client.py +0 -0
  19. {tencentcloud_sdk_python_teo-3.1.174 → tencentcloud_sdk_python_teo-3.1.176}/tencentcloud/teo/v20220901/teo_client_async.py +0 -0
  20. {tencentcloud_sdk_python_teo-3.1.174 → tencentcloud_sdk_python_teo-3.1.176}/tencentcloud_sdk_python_teo.egg-info/SOURCES.txt +0 -0
  21. {tencentcloud_sdk_python_teo-3.1.174 → tencentcloud_sdk_python_teo-3.1.176}/tencentcloud_sdk_python_teo.egg-info/dependency_links.txt +0 -0
  22. {tencentcloud_sdk_python_teo-3.1.174 → tencentcloud_sdk_python_teo-3.1.176}/tencentcloud_sdk_python_teo.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-teo
3
- Version: 3.1.174
3
+ Version: 3.1.176
4
4
  Summary: Tencent Cloud Teo SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.174
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.176
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-teo',
11
- install_requires=["tencentcloud-sdk-python-common>=3.1.174,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.176,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Teo SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.174'
17
+ __version__ = '3.1.176'
@@ -16621,6 +16621,323 @@ class CustomTime(AbstractModel):
16621
16621
 
16622
16622
 
16623
16623
 
16624
+ class CustomVariable(AbstractModel):
16625
+ r"""自定义变量详情。
16626
+
16627
+ """
16628
+
16629
+ def __init__(self):
16630
+ r"""
16631
+ :param _Name: <p>变量名称。需填写完整前缀:user.zone.* 表示站点级自定义变量,user.rule.* 表示规则级自定义变量。前缀后的自定义部分仅支持大小写字母、数字和下划线。变量名称区分大小写,长度不能超过 50 个字符。变量创建成功后,名称不可修改。</p>
16632
+ :type Name: str
16633
+ :param _InitialValue: <p>变量初始值。支持使用常量字符串、变量以及公式。长度不能超过 255 个字符。</p>
16634
+ :type InitialValue: str
16635
+ :param _Description: <p>变量描述。长度限制不超过 60 个字符。</p>
16636
+ :type Description: str
16637
+ """
16638
+ self._Name = None
16639
+ self._InitialValue = None
16640
+ self._Description = None
16641
+
16642
+ @property
16643
+ def Name(self):
16644
+ r"""<p>变量名称。需填写完整前缀:user.zone.* 表示站点级自定义变量,user.rule.* 表示规则级自定义变量。前缀后的自定义部分仅支持大小写字母、数字和下划线。变量名称区分大小写,长度不能超过 50 个字符。变量创建成功后,名称不可修改。</p>
16645
+ :rtype: str
16646
+ """
16647
+ return self._Name
16648
+
16649
+ @Name.setter
16650
+ def Name(self, Name):
16651
+ self._Name = Name
16652
+
16653
+ @property
16654
+ def InitialValue(self):
16655
+ r"""<p>变量初始值。支持使用常量字符串、变量以及公式。长度不能超过 255 个字符。</p>
16656
+ :rtype: str
16657
+ """
16658
+ return self._InitialValue
16659
+
16660
+ @InitialValue.setter
16661
+ def InitialValue(self, InitialValue):
16662
+ self._InitialValue = InitialValue
16663
+
16664
+ @property
16665
+ def Description(self):
16666
+ r"""<p>变量描述。长度限制不超过 60 个字符。</p>
16667
+ :rtype: str
16668
+ """
16669
+ return self._Description
16670
+
16671
+ @Description.setter
16672
+ def Description(self, Description):
16673
+ self._Description = Description
16674
+
16675
+
16676
+ def _deserialize(self, params):
16677
+ self._Name = params.get("Name")
16678
+ self._InitialValue = params.get("InitialValue")
16679
+ self._Description = params.get("Description")
16680
+ memeber_set = set(params.keys())
16681
+ for name, value in vars(self).items():
16682
+ property_name = name[1:]
16683
+ if property_name in memeber_set:
16684
+ memeber_set.remove(property_name)
16685
+ if len(memeber_set) > 0:
16686
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
16687
+
16688
+
16689
+
16690
+ class CustomVariableOperation(AbstractModel):
16691
+ r"""自定义变量运算详情。
16692
+
16693
+ """
16694
+
16695
+ def __init__(self):
16696
+ r"""
16697
+ :param _Branches: <p>子规则分支。此列表当前只支持填写一项规则,多填无效。</p>
16698
+ 注意:此字段可能返回 null,表示取不到有效值。
16699
+ :type Branches: list of CustomVariableOperationRuleBranch
16700
+ :param _Description: <p>规则注释。可以填写多个注释。</p>
16701
+ :type Description: list of str
16702
+ """
16703
+ self._Branches = None
16704
+ self._Description = None
16705
+
16706
+ @property
16707
+ def Branches(self):
16708
+ r"""<p>子规则分支。此列表当前只支持填写一项规则,多填无效。</p>
16709
+ 注意:此字段可能返回 null,表示取不到有效值。
16710
+ :rtype: list of CustomVariableOperationRuleBranch
16711
+ """
16712
+ return self._Branches
16713
+
16714
+ @Branches.setter
16715
+ def Branches(self, Branches):
16716
+ self._Branches = Branches
16717
+
16718
+ @property
16719
+ def Description(self):
16720
+ r"""<p>规则注释。可以填写多个注释。</p>
16721
+ :rtype: list of str
16722
+ """
16723
+ return self._Description
16724
+
16725
+ @Description.setter
16726
+ def Description(self, Description):
16727
+ self._Description = Description
16728
+
16729
+
16730
+ def _deserialize(self, params):
16731
+ if params.get("Branches") is not None:
16732
+ self._Branches = []
16733
+ for item in params.get("Branches"):
16734
+ obj = CustomVariableOperationRuleBranch()
16735
+ obj._deserialize(item)
16736
+ self._Branches.append(obj)
16737
+ self._Description = params.get("Description")
16738
+ memeber_set = set(params.keys())
16739
+ for name, value in vars(self).items():
16740
+ property_name = name[1:]
16741
+ if property_name in memeber_set:
16742
+ memeber_set.remove(property_name)
16743
+ if len(memeber_set) > 0:
16744
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
16745
+
16746
+
16747
+
16748
+ class CustomVariableOperationRuleAction(AbstractModel):
16749
+ r"""自定义变量规则操作。
16750
+
16751
+ """
16752
+
16753
+ def __init__(self):
16754
+ r"""
16755
+ :param _Name: <p>操作名称。名称需要与参数结构体对应,例如 Name=Set,则 SetParameters 必填。当前仅支持填写 Set。</p><li>Set:自定义变量设置;</li>
16756
+ :type Name: str
16757
+ :param _SetParameters: <p>自定义变量设置参数。此参数中若存在多条运算,按照数组的顺序依次执行。当 Name 取值为 Set 时,该参数必填。</p>
16758
+ 注意:此字段可能返回 null,表示取不到有效值。
16759
+ :type SetParameters: :class:`tencentcloud.teo.v20220901.models.SetParameters`
16760
+ """
16761
+ self._Name = None
16762
+ self._SetParameters = None
16763
+
16764
+ @property
16765
+ def Name(self):
16766
+ r"""<p>操作名称。名称需要与参数结构体对应,例如 Name=Set,则 SetParameters 必填。当前仅支持填写 Set。</p><li>Set:自定义变量设置;</li>
16767
+ :rtype: str
16768
+ """
16769
+ return self._Name
16770
+
16771
+ @Name.setter
16772
+ def Name(self, Name):
16773
+ self._Name = Name
16774
+
16775
+ @property
16776
+ def SetParameters(self):
16777
+ r"""<p>自定义变量设置参数。此参数中若存在多条运算,按照数组的顺序依次执行。当 Name 取值为 Set 时,该参数必填。</p>
16778
+ 注意:此字段可能返回 null,表示取不到有效值。
16779
+ :rtype: :class:`tencentcloud.teo.v20220901.models.SetParameters`
16780
+ """
16781
+ return self._SetParameters
16782
+
16783
+ @SetParameters.setter
16784
+ def SetParameters(self, SetParameters):
16785
+ self._SetParameters = SetParameters
16786
+
16787
+
16788
+ def _deserialize(self, params):
16789
+ self._Name = params.get("Name")
16790
+ if params.get("SetParameters") is not None:
16791
+ self._SetParameters = SetParameters()
16792
+ self._SetParameters._deserialize(params.get("SetParameters"))
16793
+ memeber_set = set(params.keys())
16794
+ for name, value in vars(self).items():
16795
+ property_name = name[1:]
16796
+ if property_name in memeber_set:
16797
+ memeber_set.remove(property_name)
16798
+ if len(memeber_set) > 0:
16799
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
16800
+
16801
+
16802
+
16803
+ class CustomVariableOperationRuleBranch(AbstractModel):
16804
+ r"""自定义变量运算子规则分支。
16805
+
16806
+ """
16807
+
16808
+ def __init__(self):
16809
+ r"""
16810
+ :param _Condition: <p><a href="https://cloud.tencent.com/document/product/1552/90438#33f65828-c6c6-4b66-a011-25a20b548d5d">匹配条件</a>。</p>
16811
+ :type Condition: str
16812
+ :param _Actions: <p><a href="https://cloud.tencent.com/document/product/1552/90438#c7bd7e02-9247-4a72-b0e4-11c27cadb198">操作</a>。<br>注意:Actions 和 SubRules 不可同时为空。</p>
16813
+ 注意:此字段可能返回 null,表示取不到有效值。
16814
+ :type Actions: list of CustomVariableOperationRuleAction
16815
+ :param _SubRules: <p>子规则列表。此列表中若存在多条规则,按照从上往下的顺序依次执行。<br>注意:SubRules 和 Actions 不可同时为空。且当前只支持填写一层 SubRules。</p>
16816
+ 注意:此字段可能返回 null,表示取不到有效值。
16817
+ :type SubRules: list of CustomVariableOperationSubRule
16818
+ """
16819
+ self._Condition = None
16820
+ self._Actions = None
16821
+ self._SubRules = None
16822
+
16823
+ @property
16824
+ def Condition(self):
16825
+ r"""<p><a href="https://cloud.tencent.com/document/product/1552/90438#33f65828-c6c6-4b66-a011-25a20b548d5d">匹配条件</a>。</p>
16826
+ :rtype: str
16827
+ """
16828
+ return self._Condition
16829
+
16830
+ @Condition.setter
16831
+ def Condition(self, Condition):
16832
+ self._Condition = Condition
16833
+
16834
+ @property
16835
+ def Actions(self):
16836
+ r"""<p><a href="https://cloud.tencent.com/document/product/1552/90438#c7bd7e02-9247-4a72-b0e4-11c27cadb198">操作</a>。<br>注意:Actions 和 SubRules 不可同时为空。</p>
16837
+ 注意:此字段可能返回 null,表示取不到有效值。
16838
+ :rtype: list of CustomVariableOperationRuleAction
16839
+ """
16840
+ return self._Actions
16841
+
16842
+ @Actions.setter
16843
+ def Actions(self, Actions):
16844
+ self._Actions = Actions
16845
+
16846
+ @property
16847
+ def SubRules(self):
16848
+ r"""<p>子规则列表。此列表中若存在多条规则,按照从上往下的顺序依次执行。<br>注意:SubRules 和 Actions 不可同时为空。且当前只支持填写一层 SubRules。</p>
16849
+ 注意:此字段可能返回 null,表示取不到有效值。
16850
+ :rtype: list of CustomVariableOperationSubRule
16851
+ """
16852
+ return self._SubRules
16853
+
16854
+ @SubRules.setter
16855
+ def SubRules(self, SubRules):
16856
+ self._SubRules = SubRules
16857
+
16858
+
16859
+ def _deserialize(self, params):
16860
+ self._Condition = params.get("Condition")
16861
+ if params.get("Actions") is not None:
16862
+ self._Actions = []
16863
+ for item in params.get("Actions"):
16864
+ obj = CustomVariableOperationRuleAction()
16865
+ obj._deserialize(item)
16866
+ self._Actions.append(obj)
16867
+ if params.get("SubRules") is not None:
16868
+ self._SubRules = []
16869
+ for item in params.get("SubRules"):
16870
+ obj = CustomVariableOperationSubRule()
16871
+ obj._deserialize(item)
16872
+ self._SubRules.append(obj)
16873
+ memeber_set = set(params.keys())
16874
+ for name, value in vars(self).items():
16875
+ property_name = name[1:]
16876
+ if property_name in memeber_set:
16877
+ memeber_set.remove(property_name)
16878
+ if len(memeber_set) > 0:
16879
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
16880
+
16881
+
16882
+
16883
+ class CustomVariableOperationSubRule(AbstractModel):
16884
+ r"""自定义变量运算子规则。
16885
+
16886
+ """
16887
+
16888
+ def __init__(self):
16889
+ r"""
16890
+ :param _Branches: <p>子规则分支</p>
16891
+ 注意:此字段可能返回 null,表示取不到有效值。
16892
+ :type Branches: list of CustomVariableOperationRuleBranch
16893
+ :param _Description: <p>规则注释。</p>
16894
+ :type Description: list of str
16895
+ """
16896
+ self._Branches = None
16897
+ self._Description = None
16898
+
16899
+ @property
16900
+ def Branches(self):
16901
+ r"""<p>子规则分支</p>
16902
+ 注意:此字段可能返回 null,表示取不到有效值。
16903
+ :rtype: list of CustomVariableOperationRuleBranch
16904
+ """
16905
+ return self._Branches
16906
+
16907
+ @Branches.setter
16908
+ def Branches(self, Branches):
16909
+ self._Branches = Branches
16910
+
16911
+ @property
16912
+ def Description(self):
16913
+ r"""<p>规则注释。</p>
16914
+ :rtype: list of str
16915
+ """
16916
+ return self._Description
16917
+
16918
+ @Description.setter
16919
+ def Description(self, Description):
16920
+ self._Description = Description
16921
+
16922
+
16923
+ def _deserialize(self, params):
16924
+ if params.get("Branches") is not None:
16925
+ self._Branches = []
16926
+ for item in params.get("Branches"):
16927
+ obj = CustomVariableOperationRuleBranch()
16928
+ obj._deserialize(item)
16929
+ self._Branches.append(obj)
16930
+ self._Description = params.get("Description")
16931
+ memeber_set = set(params.keys())
16932
+ for name, value in vars(self).items():
16933
+ property_name = name[1:]
16934
+ if property_name in memeber_set:
16935
+ memeber_set.remove(property_name)
16936
+ if len(memeber_set) > 0:
16937
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
16938
+
16939
+
16940
+
16624
16941
  class CustomizedHeader(AbstractModel):
16625
16942
  r"""负载均衡实例 HTTP/HTTPS 健康检查策略下可配置的自定义头部。
16626
16943
 
@@ -40920,6 +41237,153 @@ class InferenceEnvironmentVariable(AbstractModel):
40920
41237
 
40921
41238
 
40922
41239
 
41240
+ class InferenceHardwareConfig(AbstractModel):
41241
+ r"""推理服务硬件配置。
41242
+
41243
+ """
41244
+
41245
+ def __init__(self):
41246
+ r"""
41247
+ :param _GPUNum: <p>推理服务单个实例分配的 GPU 卡数,当前仅支持整数值,且必须为 <code>HardwareSpecId</code> 对应规格的 <code>AllowedGPUNums</code> 中的可选值。</p><p>若不填充,则使用所选 <code>HardwareSpecId</code> 规格对应的默认 <code>GPUNum</code> 值。</p>
41248
+ :type GPUNum: float
41249
+ :param _CPUNum: <p>推理服务单个实例分配的 CPU 核数,当前仅支持整数值。</p><p>若不填充,则使用所选 <code>HardwareSpecId</code> 规格对应的默认 <code>CPUNum</code> 值。</p>
41250
+ :type CPUNum: float
41251
+ :param _MemSize: <p>推理服务单实例分配的内存大小。</p><p>单位:MB</p><p>若不填充,则使用所选 <code>HardwareSpecId</code> 对应规格的默认 <code>MemSize</code> 值;若填充,则必须为 <code>1024</code> 的整数倍。</p>
41252
+ :type MemSize: int
41253
+ :param _DiskSize: <p>推理服务单实例分配的临时磁盘大小。</p><p>单位:MB</p><p>若不填充,则使用所选 <code>HardwareSpecId</code> 对应规格的默认 <code>DiskSize</code> 值;若填充,则必须为 <code>1024</code> 的整数倍。</p>
41254
+ :type DiskSize: int
41255
+ """
41256
+ self._GPUNum = None
41257
+ self._CPUNum = None
41258
+ self._MemSize = None
41259
+ self._DiskSize = None
41260
+
41261
+ @property
41262
+ def GPUNum(self):
41263
+ r"""<p>推理服务单个实例分配的 GPU 卡数,当前仅支持整数值,且必须为 <code>HardwareSpecId</code> 对应规格的 <code>AllowedGPUNums</code> 中的可选值。</p><p>若不填充,则使用所选 <code>HardwareSpecId</code> 规格对应的默认 <code>GPUNum</code> 值。</p>
41264
+ :rtype: float
41265
+ """
41266
+ return self._GPUNum
41267
+
41268
+ @GPUNum.setter
41269
+ def GPUNum(self, GPUNum):
41270
+ self._GPUNum = GPUNum
41271
+
41272
+ @property
41273
+ def CPUNum(self):
41274
+ r"""<p>推理服务单个实例分配的 CPU 核数,当前仅支持整数值。</p><p>若不填充,则使用所选 <code>HardwareSpecId</code> 规格对应的默认 <code>CPUNum</code> 值。</p>
41275
+ :rtype: float
41276
+ """
41277
+ return self._CPUNum
41278
+
41279
+ @CPUNum.setter
41280
+ def CPUNum(self, CPUNum):
41281
+ self._CPUNum = CPUNum
41282
+
41283
+ @property
41284
+ def MemSize(self):
41285
+ r"""<p>推理服务单实例分配的内存大小。</p><p>单位:MB</p><p>若不填充,则使用所选 <code>HardwareSpecId</code> 对应规格的默认 <code>MemSize</code> 值;若填充,则必须为 <code>1024</code> 的整数倍。</p>
41286
+ :rtype: int
41287
+ """
41288
+ return self._MemSize
41289
+
41290
+ @MemSize.setter
41291
+ def MemSize(self, MemSize):
41292
+ self._MemSize = MemSize
41293
+
41294
+ @property
41295
+ def DiskSize(self):
41296
+ r"""<p>推理服务单实例分配的临时磁盘大小。</p><p>单位:MB</p><p>若不填充,则使用所选 <code>HardwareSpecId</code> 对应规格的默认 <code>DiskSize</code> 值;若填充,则必须为 <code>1024</code> 的整数倍。</p>
41297
+ :rtype: int
41298
+ """
41299
+ return self._DiskSize
41300
+
41301
+ @DiskSize.setter
41302
+ def DiskSize(self, DiskSize):
41303
+ self._DiskSize = DiskSize
41304
+
41305
+
41306
+ def _deserialize(self, params):
41307
+ self._GPUNum = params.get("GPUNum")
41308
+ self._CPUNum = params.get("CPUNum")
41309
+ self._MemSize = params.get("MemSize")
41310
+ self._DiskSize = params.get("DiskSize")
41311
+ memeber_set = set(params.keys())
41312
+ for name, value in vars(self).items():
41313
+ property_name = name[1:]
41314
+ if property_name in memeber_set:
41315
+ memeber_set.remove(property_name)
41316
+ if len(memeber_set) > 0:
41317
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
41318
+
41319
+
41320
+
41321
+ class InferenceHardwareConfigForModify(AbstractModel):
41322
+ r"""推理服务资源硬件配置的修改参数。
41323
+
41324
+ """
41325
+
41326
+ def __init__(self):
41327
+ r"""
41328
+ :param _CPUNum: <p>推理服务单实例分配的 CPU 核数,当前仅支持整数值。</p><p>若不填充,则不修改。</p>
41329
+ :type CPUNum: float
41330
+ :param _MemSize: <p>推理服务单实例分配的内存大小。</p><p>单位:MB</p><p>若不填充,则不修改;若填写,则必须为 <code>1024</code> 的整数倍。</p>
41331
+ :type MemSize: int
41332
+ :param _DiskSize: <p>推理服务单实例分配的临时磁盘大小。</p><p>单位:MB</p><p>若不填充,则不修改;若填充,则必须为 <code>1024</code> 的整数倍。</p>
41333
+ :type DiskSize: int
41334
+ """
41335
+ self._CPUNum = None
41336
+ self._MemSize = None
41337
+ self._DiskSize = None
41338
+
41339
+ @property
41340
+ def CPUNum(self):
41341
+ r"""<p>推理服务单实例分配的 CPU 核数,当前仅支持整数值。</p><p>若不填充,则不修改。</p>
41342
+ :rtype: float
41343
+ """
41344
+ return self._CPUNum
41345
+
41346
+ @CPUNum.setter
41347
+ def CPUNum(self, CPUNum):
41348
+ self._CPUNum = CPUNum
41349
+
41350
+ @property
41351
+ def MemSize(self):
41352
+ r"""<p>推理服务单实例分配的内存大小。</p><p>单位:MB</p><p>若不填充,则不修改;若填写,则必须为 <code>1024</code> 的整数倍。</p>
41353
+ :rtype: int
41354
+ """
41355
+ return self._MemSize
41356
+
41357
+ @MemSize.setter
41358
+ def MemSize(self, MemSize):
41359
+ self._MemSize = MemSize
41360
+
41361
+ @property
41362
+ def DiskSize(self):
41363
+ r"""<p>推理服务单实例分配的临时磁盘大小。</p><p>单位:MB</p><p>若不填充,则不修改;若填充,则必须为 <code>1024</code> 的整数倍。</p>
41364
+ :rtype: int
41365
+ """
41366
+ return self._DiskSize
41367
+
41368
+ @DiskSize.setter
41369
+ def DiskSize(self, DiskSize):
41370
+ self._DiskSize = DiskSize
41371
+
41372
+
41373
+ def _deserialize(self, params):
41374
+ self._CPUNum = params.get("CPUNum")
41375
+ self._MemSize = params.get("MemSize")
41376
+ self._DiskSize = params.get("DiskSize")
41377
+ memeber_set = set(params.keys())
41378
+ for name, value in vars(self).items():
41379
+ property_name = name[1:]
41380
+ if property_name in memeber_set:
41381
+ memeber_set.remove(property_name)
41382
+ if len(memeber_set) > 0:
41383
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
41384
+
41385
+
41386
+
40923
41387
  class InferenceHardwareSpecification(AbstractModel):
40924
41388
  r"""推理硬件规格信息。
40925
41389
 
@@ -40927,40 +41391,64 @@ class InferenceHardwareSpecification(AbstractModel):
40927
41391
 
40928
41392
  def __init__(self):
40929
41393
  r"""
40930
- :param _Spec: 规格标识。
41394
+ :param _Spec: <p>规格标识。已废弃,参考使用字段 <code>HardwareSpecId</code>。</p>
40931
41395
  :type Spec: str
40932
- :param _Name: 规格名称。
41396
+ :param _HardwareSpecId: <p>规格唯一标识 ID。</p>
41397
+ :type HardwareSpecId: str
41398
+ :param _Name: <p>规格名称。</p>
40933
41399
  :type Name: str
40934
- :param _CPUNum: CPU 核数。
41400
+ :param _GPUNum: <p>规格默认分配的 GPU 卡数。</p>
41401
+ :type GPUNum: float
41402
+ :param _CPUNum: <p>规格默认分配的 CPU 核数。</p>
40935
41403
  :type CPUNum: float
40936
- :param _MemSize: 内存大小。单位为 MB。
41404
+ :param _MemSize: <p>规格默认分配的内存大小。</p><p>单位:MB</p>
40937
41405
  :type MemSize: int
40938
- :param _GPUNum: GPU 卡数。
40939
- :type GPUNum: float
40940
- :param _GPUMemSize: 显存大小。单位为 MB。
41406
+ :param _GPUMemSize: <p>规格默认分配的显存大小。</p><p>单位:MB</p>
40941
41407
  :type GPUMemSize: int
41408
+ :param _DiskSize: <p>规格默认分配的磁盘大小。</p><p>单位:MB</p>
41409
+ :type DiskSize: int
41410
+ :param _AllowedGPUNums: <p>规格当前支持的 GPU 卡数列表。</p><p>若不填充或填充空数组,则仅支持规格默认分配的 GPU 卡数。</p>
41411
+ :type AllowedGPUNums: list of float
40942
41412
  """
40943
41413
  self._Spec = None
41414
+ self._HardwareSpecId = None
40944
41415
  self._Name = None
41416
+ self._GPUNum = None
40945
41417
  self._CPUNum = None
40946
41418
  self._MemSize = None
40947
- self._GPUNum = None
40948
41419
  self._GPUMemSize = None
41420
+ self._DiskSize = None
41421
+ self._AllowedGPUNums = None
40949
41422
 
40950
41423
  @property
40951
41424
  def Spec(self):
40952
- r"""规格标识。
41425
+ warnings.warn("parameter `Spec` is deprecated", DeprecationWarning)
41426
+
41427
+ r"""<p>规格标识。已废弃,参考使用字段 <code>HardwareSpecId</code>。</p>
40953
41428
  :rtype: str
40954
41429
  """
40955
41430
  return self._Spec
40956
41431
 
40957
41432
  @Spec.setter
40958
41433
  def Spec(self, Spec):
41434
+ warnings.warn("parameter `Spec` is deprecated", DeprecationWarning)
41435
+
40959
41436
  self._Spec = Spec
40960
41437
 
41438
+ @property
41439
+ def HardwareSpecId(self):
41440
+ r"""<p>规格唯一标识 ID。</p>
41441
+ :rtype: str
41442
+ """
41443
+ return self._HardwareSpecId
41444
+
41445
+ @HardwareSpecId.setter
41446
+ def HardwareSpecId(self, HardwareSpecId):
41447
+ self._HardwareSpecId = HardwareSpecId
41448
+
40961
41449
  @property
40962
41450
  def Name(self):
40963
- r"""规格名称。
41451
+ r"""<p>规格名称。</p>
40964
41452
  :rtype: str
40965
41453
  """
40966
41454
  return self._Name
@@ -40969,9 +41457,20 @@ class InferenceHardwareSpecification(AbstractModel):
40969
41457
  def Name(self, Name):
40970
41458
  self._Name = Name
40971
41459
 
41460
+ @property
41461
+ def GPUNum(self):
41462
+ r"""<p>规格默认分配的 GPU 卡数。</p>
41463
+ :rtype: float
41464
+ """
41465
+ return self._GPUNum
41466
+
41467
+ @GPUNum.setter
41468
+ def GPUNum(self, GPUNum):
41469
+ self._GPUNum = GPUNum
41470
+
40972
41471
  @property
40973
41472
  def CPUNum(self):
40974
- r"""CPU 核数。
41473
+ r"""<p>规格默认分配的 CPU 核数。</p>
40975
41474
  :rtype: float
40976
41475
  """
40977
41476
  return self._CPUNum
@@ -40982,7 +41481,7 @@ class InferenceHardwareSpecification(AbstractModel):
40982
41481
 
40983
41482
  @property
40984
41483
  def MemSize(self):
40985
- r"""内存大小。单位为 MB。
41484
+ r"""<p>规格默认分配的内存大小。</p><p>单位:MB</p>
40986
41485
  :rtype: int
40987
41486
  """
40988
41487
  return self._MemSize
@@ -40991,20 +41490,9 @@ class InferenceHardwareSpecification(AbstractModel):
40991
41490
  def MemSize(self, MemSize):
40992
41491
  self._MemSize = MemSize
40993
41492
 
40994
- @property
40995
- def GPUNum(self):
40996
- r"""GPU 卡数。
40997
- :rtype: float
40998
- """
40999
- return self._GPUNum
41000
-
41001
- @GPUNum.setter
41002
- def GPUNum(self, GPUNum):
41003
- self._GPUNum = GPUNum
41004
-
41005
41493
  @property
41006
41494
  def GPUMemSize(self):
41007
- r"""显存大小。单位为 MB。
41495
+ r"""<p>规格默认分配的显存大小。</p><p>单位:MB</p>
41008
41496
  :rtype: int
41009
41497
  """
41010
41498
  return self._GPUMemSize
@@ -41013,14 +41501,39 @@ class InferenceHardwareSpecification(AbstractModel):
41013
41501
  def GPUMemSize(self, GPUMemSize):
41014
41502
  self._GPUMemSize = GPUMemSize
41015
41503
 
41504
+ @property
41505
+ def DiskSize(self):
41506
+ r"""<p>规格默认分配的磁盘大小。</p><p>单位:MB</p>
41507
+ :rtype: int
41508
+ """
41509
+ return self._DiskSize
41510
+
41511
+ @DiskSize.setter
41512
+ def DiskSize(self, DiskSize):
41513
+ self._DiskSize = DiskSize
41514
+
41515
+ @property
41516
+ def AllowedGPUNums(self):
41517
+ r"""<p>规格当前支持的 GPU 卡数列表。</p><p>若不填充或填充空数组,则仅支持规格默认分配的 GPU 卡数。</p>
41518
+ :rtype: list of float
41519
+ """
41520
+ return self._AllowedGPUNums
41521
+
41522
+ @AllowedGPUNums.setter
41523
+ def AllowedGPUNums(self, AllowedGPUNums):
41524
+ self._AllowedGPUNums = AllowedGPUNums
41525
+
41016
41526
 
41017
41527
  def _deserialize(self, params):
41018
41528
  self._Spec = params.get("Spec")
41529
+ self._HardwareSpecId = params.get("HardwareSpecId")
41019
41530
  self._Name = params.get("Name")
41531
+ self._GPUNum = params.get("GPUNum")
41020
41532
  self._CPUNum = params.get("CPUNum")
41021
41533
  self._MemSize = params.get("MemSize")
41022
- self._GPUNum = params.get("GPUNum")
41023
41534
  self._GPUMemSize = params.get("GPUMemSize")
41535
+ self._DiskSize = params.get("DiskSize")
41536
+ self._AllowedGPUNums = params.get("AllowedGPUNums")
41024
41537
  memeber_set = set(params.keys())
41025
41538
  for name, value in vars(self).items():
41026
41539
  property_name = name[1:]
@@ -41074,28 +41587,34 @@ class InferenceResourceConfig(AbstractModel):
41074
41587
 
41075
41588
  def __init__(self):
41076
41589
  r"""
41077
- :param _ScalingMode: 扩容缩容的方式。取值有:<li>Auto:根据请求量自动调整实例数量;</li><li>Manual:人工设置固定的实例数量。</li>
41590
+ :param _ScalingMode: <p>扩容缩容的方式。取值有:<li>Auto:根据请求量自动调整实例数量;</li><li>Manual:人工设置固定的实例数量。</li></p>
41078
41591
  :type ScalingMode: str
41079
- :param _HardwareSpec: 硬件规格。
41592
+ :param _HardwareSpec: <p>硬件规格标识。已废弃,请参考使用 <code>HardwareSpecId</code>。</p>
41080
41593
  :type HardwareSpec: str
41081
- :param _AutoScalingConfig: 推理服务自动伸缩配置。当 ScalingMode 为 Auto 时必填。
41594
+ :param _HardwareSpecId: <p>硬件规格唯一标识 ID,可通过 <code>DescribeInferenceHardwareSpecifications</code> 接口获取当前站点支持的硬件规格。</p><p>系统默认按照所选 <code>HardwareSpecId</code> 对应的硬件规格配置推理服务所需资源;如需调整,可通过 <code>HardwareConfig</code> 自定义硬件资源配置。</p>
41595
+ :type HardwareSpecId: str
41596
+ :param _HardwareConfig: <p>推理服务硬件配置。</p><p>作为入参时,若未填充则按照所选 <code>HardwareSpecId</code> 规格的默认值配置硬件资源;若填充则优先按照填写值进行配置。</p>
41597
+ :type HardwareConfig: :class:`tencentcloud.teo.v20220901.models.InferenceHardwareConfig`
41598
+ :param _AutoScalingConfig: <p>推理服务自动伸缩配置。当 ScalingMode 为 Auto 时必填。</p>
41082
41599
  注意:此字段可能返回 null,表示取不到有效值。
41083
41600
  :type AutoScalingConfig: :class:`tencentcloud.teo.v20220901.models.InferenceAutoScalingConfig`
41084
- :param _ManualInstanceConfig: 推理服务人工设置实例配置。当 ScalingMode 为 Manual 时必填。
41601
+ :param _ManualInstanceConfig: <p>推理服务人工设置实例配置。当 ScalingMode 为 Manual 时必填。</p>
41085
41602
  注意:此字段可能返回 null,表示取不到有效值。
41086
41603
  :type ManualInstanceConfig: :class:`tencentcloud.teo.v20220901.models.InferenceManualInstanceConfig`
41087
- :param _Concurrency: 单实例的并发数。默认值为 1。
41604
+ :param _Concurrency: <p>单实例的并发数。默认值为 1。</p>
41088
41605
  :type Concurrency: int
41089
41606
  """
41090
41607
  self._ScalingMode = None
41091
41608
  self._HardwareSpec = None
41609
+ self._HardwareSpecId = None
41610
+ self._HardwareConfig = None
41092
41611
  self._AutoScalingConfig = None
41093
41612
  self._ManualInstanceConfig = None
41094
41613
  self._Concurrency = None
41095
41614
 
41096
41615
  @property
41097
41616
  def ScalingMode(self):
41098
- r"""扩容缩容的方式。取值有:<li>Auto:根据请求量自动调整实例数量;</li><li>Manual:人工设置固定的实例数量。</li>
41617
+ r"""<p>扩容缩容的方式。取值有:<li>Auto:根据请求量自动调整实例数量;</li><li>Manual:人工设置固定的实例数量。</li></p>
41099
41618
  :rtype: str
41100
41619
  """
41101
41620
  return self._ScalingMode
@@ -41106,18 +41625,44 @@ class InferenceResourceConfig(AbstractModel):
41106
41625
 
41107
41626
  @property
41108
41627
  def HardwareSpec(self):
41109
- r"""硬件规格。
41628
+ warnings.warn("parameter `HardwareSpec` is deprecated", DeprecationWarning)
41629
+
41630
+ r"""<p>硬件规格标识。已废弃,请参考使用 <code>HardwareSpecId</code>。</p>
41110
41631
  :rtype: str
41111
41632
  """
41112
41633
  return self._HardwareSpec
41113
41634
 
41114
41635
  @HardwareSpec.setter
41115
41636
  def HardwareSpec(self, HardwareSpec):
41637
+ warnings.warn("parameter `HardwareSpec` is deprecated", DeprecationWarning)
41638
+
41116
41639
  self._HardwareSpec = HardwareSpec
41117
41640
 
41641
+ @property
41642
+ def HardwareSpecId(self):
41643
+ r"""<p>硬件规格唯一标识 ID,可通过 <code>DescribeInferenceHardwareSpecifications</code> 接口获取当前站点支持的硬件规格。</p><p>系统默认按照所选 <code>HardwareSpecId</code> 对应的硬件规格配置推理服务所需资源;如需调整,可通过 <code>HardwareConfig</code> 自定义硬件资源配置。</p>
41644
+ :rtype: str
41645
+ """
41646
+ return self._HardwareSpecId
41647
+
41648
+ @HardwareSpecId.setter
41649
+ def HardwareSpecId(self, HardwareSpecId):
41650
+ self._HardwareSpecId = HardwareSpecId
41651
+
41652
+ @property
41653
+ def HardwareConfig(self):
41654
+ r"""<p>推理服务硬件配置。</p><p>作为入参时,若未填充则按照所选 <code>HardwareSpecId</code> 规格的默认值配置硬件资源;若填充则优先按照填写值进行配置。</p>
41655
+ :rtype: :class:`tencentcloud.teo.v20220901.models.InferenceHardwareConfig`
41656
+ """
41657
+ return self._HardwareConfig
41658
+
41659
+ @HardwareConfig.setter
41660
+ def HardwareConfig(self, HardwareConfig):
41661
+ self._HardwareConfig = HardwareConfig
41662
+
41118
41663
  @property
41119
41664
  def AutoScalingConfig(self):
41120
- r"""推理服务自动伸缩配置。当 ScalingMode 为 Auto 时必填。
41665
+ r"""<p>推理服务自动伸缩配置。当 ScalingMode 为 Auto 时必填。</p>
41121
41666
  注意:此字段可能返回 null,表示取不到有效值。
41122
41667
  :rtype: :class:`tencentcloud.teo.v20220901.models.InferenceAutoScalingConfig`
41123
41668
  """
@@ -41129,7 +41674,7 @@ class InferenceResourceConfig(AbstractModel):
41129
41674
 
41130
41675
  @property
41131
41676
  def ManualInstanceConfig(self):
41132
- r"""推理服务人工设置实例配置。当 ScalingMode 为 Manual 时必填。
41677
+ r"""<p>推理服务人工设置实例配置。当 ScalingMode 为 Manual 时必填。</p>
41133
41678
  注意:此字段可能返回 null,表示取不到有效值。
41134
41679
  :rtype: :class:`tencentcloud.teo.v20220901.models.InferenceManualInstanceConfig`
41135
41680
  """
@@ -41141,7 +41686,7 @@ class InferenceResourceConfig(AbstractModel):
41141
41686
 
41142
41687
  @property
41143
41688
  def Concurrency(self):
41144
- r"""单实例的并发数。默认值为 1。
41689
+ r"""<p>单实例的并发数。默认值为 1。</p>
41145
41690
  :rtype: int
41146
41691
  """
41147
41692
  return self._Concurrency
@@ -41154,6 +41699,10 @@ class InferenceResourceConfig(AbstractModel):
41154
41699
  def _deserialize(self, params):
41155
41700
  self._ScalingMode = params.get("ScalingMode")
41156
41701
  self._HardwareSpec = params.get("HardwareSpec")
41702
+ self._HardwareSpecId = params.get("HardwareSpecId")
41703
+ if params.get("HardwareConfig") is not None:
41704
+ self._HardwareConfig = InferenceHardwareConfig()
41705
+ self._HardwareConfig._deserialize(params.get("HardwareConfig"))
41157
41706
  if params.get("AutoScalingConfig") is not None:
41158
41707
  self._AutoScalingConfig = InferenceAutoScalingConfig()
41159
41708
  self._AutoScalingConfig._deserialize(params.get("AutoScalingConfig"))
@@ -41178,23 +41727,26 @@ class InferenceResourceConfigForModify(AbstractModel):
41178
41727
 
41179
41728
  def __init__(self):
41180
41729
  r"""
41181
- :param _ScalingMode: 扩容缩容的方式。取值有:<li>Auto:根据请求量自动调整实例数量;</li><li>Manual:人工设置固定的实例数量。</li>
41730
+ :param _ScalingMode: <p>扩容缩容的方式。取值有:<li>Auto:根据请求量自动调整实例数量;</li><li>Manual:人工设置固定的实例数量。</li></p>
41182
41731
  :type ScalingMode: str
41183
- :param _AutoScalingConfig: 推理服务自动伸缩配置。当 ScalingMode 为 Auto 时必填。
41732
+ :param _AutoScalingConfig: <p>推理服务自动伸缩配置。当 ScalingMode 为 Auto 时必填。</p>
41184
41733
  :type AutoScalingConfig: :class:`tencentcloud.teo.v20220901.models.InferenceAutoScalingConfig`
41185
- :param _ManualInstanceConfig: 推理服务人工设置实例配置。当 ScalingMode 为 Manual 时必填。
41734
+ :param _ManualInstanceConfig: <p>推理服务人工设置实例配置。当 ScalingMode 为 Manual 时必填。</p>
41186
41735
  :type ManualInstanceConfig: :class:`tencentcloud.teo.v20220901.models.InferenceManualInstanceConfig`
41187
- :param _Concurrency: 单实例的并发数。默认值为 1。
41736
+ :param _Concurrency: <p>单实例的并发数。默认值为 1。</p>
41188
41737
  :type Concurrency: int
41738
+ :param _HardwareConfig: <p>推理服务的硬件资源配置。</p>
41739
+ :type HardwareConfig: :class:`tencentcloud.teo.v20220901.models.InferenceHardwareConfigForModify`
41189
41740
  """
41190
41741
  self._ScalingMode = None
41191
41742
  self._AutoScalingConfig = None
41192
41743
  self._ManualInstanceConfig = None
41193
41744
  self._Concurrency = None
41745
+ self._HardwareConfig = None
41194
41746
 
41195
41747
  @property
41196
41748
  def ScalingMode(self):
41197
- r"""扩容缩容的方式。取值有:<li>Auto:根据请求量自动调整实例数量;</li><li>Manual:人工设置固定的实例数量。</li>
41749
+ r"""<p>扩容缩容的方式。取值有:<li>Auto:根据请求量自动调整实例数量;</li><li>Manual:人工设置固定的实例数量。</li></p>
41198
41750
  :rtype: str
41199
41751
  """
41200
41752
  return self._ScalingMode
@@ -41205,7 +41757,7 @@ class InferenceResourceConfigForModify(AbstractModel):
41205
41757
 
41206
41758
  @property
41207
41759
  def AutoScalingConfig(self):
41208
- r"""推理服务自动伸缩配置。当 ScalingMode 为 Auto 时必填。
41760
+ r"""<p>推理服务自动伸缩配置。当 ScalingMode 为 Auto 时必填。</p>
41209
41761
  :rtype: :class:`tencentcloud.teo.v20220901.models.InferenceAutoScalingConfig`
41210
41762
  """
41211
41763
  return self._AutoScalingConfig
@@ -41216,7 +41768,7 @@ class InferenceResourceConfigForModify(AbstractModel):
41216
41768
 
41217
41769
  @property
41218
41770
  def ManualInstanceConfig(self):
41219
- r"""推理服务人工设置实例配置。当 ScalingMode 为 Manual 时必填。
41771
+ r"""<p>推理服务人工设置实例配置。当 ScalingMode 为 Manual 时必填。</p>
41220
41772
  :rtype: :class:`tencentcloud.teo.v20220901.models.InferenceManualInstanceConfig`
41221
41773
  """
41222
41774
  return self._ManualInstanceConfig
@@ -41227,7 +41779,7 @@ class InferenceResourceConfigForModify(AbstractModel):
41227
41779
 
41228
41780
  @property
41229
41781
  def Concurrency(self):
41230
- r"""单实例的并发数。默认值为 1。
41782
+ r"""<p>单实例的并发数。默认值为 1。</p>
41231
41783
  :rtype: int
41232
41784
  """
41233
41785
  return self._Concurrency
@@ -41236,6 +41788,17 @@ class InferenceResourceConfigForModify(AbstractModel):
41236
41788
  def Concurrency(self, Concurrency):
41237
41789
  self._Concurrency = Concurrency
41238
41790
 
41791
+ @property
41792
+ def HardwareConfig(self):
41793
+ r"""<p>推理服务的硬件资源配置。</p>
41794
+ :rtype: :class:`tencentcloud.teo.v20220901.models.InferenceHardwareConfigForModify`
41795
+ """
41796
+ return self._HardwareConfig
41797
+
41798
+ @HardwareConfig.setter
41799
+ def HardwareConfig(self, HardwareConfig):
41800
+ self._HardwareConfig = HardwareConfig
41801
+
41239
41802
 
41240
41803
  def _deserialize(self, params):
41241
41804
  self._ScalingMode = params.get("ScalingMode")
@@ -41246,6 +41809,9 @@ class InferenceResourceConfigForModify(AbstractModel):
41246
41809
  self._ManualInstanceConfig = InferenceManualInstanceConfig()
41247
41810
  self._ManualInstanceConfig._deserialize(params.get("ManualInstanceConfig"))
41248
41811
  self._Concurrency = params.get("Concurrency")
41812
+ if params.get("HardwareConfig") is not None:
41813
+ self._HardwareConfig = InferenceHardwareConfigForModify()
41814
+ self._HardwareConfig._deserialize(params.get("HardwareConfig"))
41249
41815
  memeber_set = set(params.keys())
41250
41816
  for name, value in vars(self).items():
41251
41817
  property_name = name[1:]
@@ -60915,30 +61481,38 @@ class RuleEngineItem(AbstractModel):
60915
61481
 
60916
61482
  def __init__(self):
60917
61483
  r"""
60918
- :param _Status: 规则状态。取值有:<li> enable: 启用; </li><li> disable: 未启用。</li>
61484
+ :param _Status: <p>规则状态。取值有:<li> enable: 启用; </li><li> disable: 未启用。</li></p>
60919
61485
  :type Status: str
60920
- :param _RuleId: 规则 ID。规则的唯一性标识,当调用 ModifyL7AccRules 时,该参数必填。
61486
+ :param _RuleId: <p>规则 ID。规则的唯一性标识,当调用 ModifyL7AccRule 时,该参数必填。</p>
60921
61487
  :type RuleId: str
60922
- :param _RuleName: 规则名称。名称长度限制不超过 255 个字符。
61488
+ :param _RuleName: <p>规则名称。名称长度限制不超过 255 个字符。</p>
60923
61489
  :type RuleName: str
60924
- :param _Description: 规则注释。可以填写多个注释。
61490
+ :param _Description: <p>规则注释。可以填写多个注释。</p>
60925
61491
  :type Description: list of str
60926
- :param _Branches: 子规则分支。此列表当前只支持填写一项规则,多填无效。
61492
+ :param _CustomVariables: <p>规则级自定义变量列表。CustomVariable.Name 需要使用 user.rule. 作为前缀。变量按照数组顺序依次初始化,InitialValue 支持引用站点级自定义变量,以及位于当前变量之前的规则级自定义变量,不支持引用当前变量自身或位于其后的规则级自定义变量。站点级自定义变量可通过 DescribeZoneCustomVariables 接口查询。当 Branches 为空时 CustomVariable 不允许填写,填写无效。</p>
61493
+ 注意:此字段可能返回 null,表示取不到有效值。
61494
+ :type CustomVariables: list of CustomVariable
61495
+ :param _CustomVariableOperations: <p>规则级自定义变量运算详情。运算中支持引用站点级自定义变量和当前规则已定义的规则级自定义变量。站点级自定义变量可通过 DescribeZoneCustomVariables 接口查询。此列表当前只支持填写一项规则,多填无效。当 Branches 为空时 CustomVariableOperations 不允许填写,填写无效。</p>
61496
+ 注意:此字段可能返回 null,表示取不到有效值。
61497
+ :type CustomVariableOperations: list of CustomVariableOperation
61498
+ :param _Branches: <p>子规则分支。此列表当前只支持填写一项规则,多填无效。</p>
60927
61499
  注意:此字段可能返回 null,表示取不到有效值。
60928
61500
  :type Branches: list of RuleBranch
60929
- :param _RulePriority: 规则优先级。仅作为出参使用。
61501
+ :param _RulePriority: <p>规则优先级。仅作为出参使用。</p>
60930
61502
  :type RulePriority: int
60931
61503
  """
60932
61504
  self._Status = None
60933
61505
  self._RuleId = None
60934
61506
  self._RuleName = None
60935
61507
  self._Description = None
61508
+ self._CustomVariables = None
61509
+ self._CustomVariableOperations = None
60936
61510
  self._Branches = None
60937
61511
  self._RulePriority = None
60938
61512
 
60939
61513
  @property
60940
61514
  def Status(self):
60941
- r"""规则状态。取值有:<li> enable: 启用; </li><li> disable: 未启用。</li>
61515
+ r"""<p>规则状态。取值有:<li> enable: 启用; </li><li> disable: 未启用。</li></p>
60942
61516
  :rtype: str
60943
61517
  """
60944
61518
  return self._Status
@@ -60949,7 +61523,7 @@ class RuleEngineItem(AbstractModel):
60949
61523
 
60950
61524
  @property
60951
61525
  def RuleId(self):
60952
- r"""规则 ID。规则的唯一性标识,当调用 ModifyL7AccRules 时,该参数必填。
61526
+ r"""<p>规则 ID。规则的唯一性标识,当调用 ModifyL7AccRule 时,该参数必填。</p>
60953
61527
  :rtype: str
60954
61528
  """
60955
61529
  return self._RuleId
@@ -60960,7 +61534,7 @@ class RuleEngineItem(AbstractModel):
60960
61534
 
60961
61535
  @property
60962
61536
  def RuleName(self):
60963
- r"""规则名称。名称长度限制不超过 255 个字符。
61537
+ r"""<p>规则名称。名称长度限制不超过 255 个字符。</p>
60964
61538
  :rtype: str
60965
61539
  """
60966
61540
  return self._RuleName
@@ -60971,7 +61545,7 @@ class RuleEngineItem(AbstractModel):
60971
61545
 
60972
61546
  @property
60973
61547
  def Description(self):
60974
- r"""规则注释。可以填写多个注释。
61548
+ r"""<p>规则注释。可以填写多个注释。</p>
60975
61549
  :rtype: list of str
60976
61550
  """
60977
61551
  return self._Description
@@ -60980,9 +61554,33 @@ class RuleEngineItem(AbstractModel):
60980
61554
  def Description(self, Description):
60981
61555
  self._Description = Description
60982
61556
 
61557
+ @property
61558
+ def CustomVariables(self):
61559
+ r"""<p>规则级自定义变量列表。CustomVariable.Name 需要使用 user.rule. 作为前缀。变量按照数组顺序依次初始化,InitialValue 支持引用站点级自定义变量,以及位于当前变量之前的规则级自定义变量,不支持引用当前变量自身或位于其后的规则级自定义变量。站点级自定义变量可通过 DescribeZoneCustomVariables 接口查询。当 Branches 为空时 CustomVariable 不允许填写,填写无效。</p>
61560
+ 注意:此字段可能返回 null,表示取不到有效值。
61561
+ :rtype: list of CustomVariable
61562
+ """
61563
+ return self._CustomVariables
61564
+
61565
+ @CustomVariables.setter
61566
+ def CustomVariables(self, CustomVariables):
61567
+ self._CustomVariables = CustomVariables
61568
+
61569
+ @property
61570
+ def CustomVariableOperations(self):
61571
+ r"""<p>规则级自定义变量运算详情。运算中支持引用站点级自定义变量和当前规则已定义的规则级自定义变量。站点级自定义变量可通过 DescribeZoneCustomVariables 接口查询。此列表当前只支持填写一项规则,多填无效。当 Branches 为空时 CustomVariableOperations 不允许填写,填写无效。</p>
61572
+ 注意:此字段可能返回 null,表示取不到有效值。
61573
+ :rtype: list of CustomVariableOperation
61574
+ """
61575
+ return self._CustomVariableOperations
61576
+
61577
+ @CustomVariableOperations.setter
61578
+ def CustomVariableOperations(self, CustomVariableOperations):
61579
+ self._CustomVariableOperations = CustomVariableOperations
61580
+
60983
61581
  @property
60984
61582
  def Branches(self):
60985
- r"""子规则分支。此列表当前只支持填写一项规则,多填无效。
61583
+ r"""<p>子规则分支。此列表当前只支持填写一项规则,多填无效。</p>
60986
61584
  注意:此字段可能返回 null,表示取不到有效值。
60987
61585
  :rtype: list of RuleBranch
60988
61586
  """
@@ -60994,7 +61592,7 @@ class RuleEngineItem(AbstractModel):
60994
61592
 
60995
61593
  @property
60996
61594
  def RulePriority(self):
60997
- r"""规则优先级。仅作为出参使用。
61595
+ r"""<p>规则优先级。仅作为出参使用。</p>
60998
61596
  :rtype: int
60999
61597
  """
61000
61598
  return self._RulePriority
@@ -61009,6 +61607,18 @@ class RuleEngineItem(AbstractModel):
61009
61607
  self._RuleId = params.get("RuleId")
61010
61608
  self._RuleName = params.get("RuleName")
61011
61609
  self._Description = params.get("Description")
61610
+ if params.get("CustomVariables") is not None:
61611
+ self._CustomVariables = []
61612
+ for item in params.get("CustomVariables"):
61613
+ obj = CustomVariable()
61614
+ obj._deserialize(item)
61615
+ self._CustomVariables.append(obj)
61616
+ if params.get("CustomVariableOperations") is not None:
61617
+ self._CustomVariableOperations = []
61618
+ for item in params.get("CustomVariableOperations"):
61619
+ obj = CustomVariableOperation()
61620
+ obj._deserialize(item)
61621
+ self._CustomVariableOperations.append(obj)
61012
61622
  if params.get("Branches") is not None:
61013
61623
  self._Branches = []
61014
61624
  for item in params.get("Branches"):
@@ -63088,6 +63698,57 @@ class SetContentIdentifierParameters(AbstractModel):
63088
63698
 
63089
63699
 
63090
63700
 
63701
+ class SetParameters(AbstractModel):
63702
+ r"""自定义变量设置参数。
63703
+
63704
+ """
63705
+
63706
+ def __init__(self):
63707
+ r"""
63708
+ :param _Name: <p>自定义变量名称。自定义变量必须先被定义才可进行运算。</p>
63709
+ :type Name: str
63710
+ :param _Value: <p>自定义变量赋值。支持使用常量字符串、变量以及公式,不支持中文。长度不能超过 1000 个字符。</p>
63711
+ :type Value: str
63712
+ """
63713
+ self._Name = None
63714
+ self._Value = None
63715
+
63716
+ @property
63717
+ def Name(self):
63718
+ r"""<p>自定义变量名称。自定义变量必须先被定义才可进行运算。</p>
63719
+ :rtype: str
63720
+ """
63721
+ return self._Name
63722
+
63723
+ @Name.setter
63724
+ def Name(self, Name):
63725
+ self._Name = Name
63726
+
63727
+ @property
63728
+ def Value(self):
63729
+ r"""<p>自定义变量赋值。支持使用常量字符串、变量以及公式,不支持中文。长度不能超过 1000 个字符。</p>
63730
+ :rtype: str
63731
+ """
63732
+ return self._Value
63733
+
63734
+ @Value.setter
63735
+ def Value(self, Value):
63736
+ self._Value = Value
63737
+
63738
+
63739
+ def _deserialize(self, params):
63740
+ self._Name = params.get("Name")
63741
+ self._Value = params.get("Value")
63742
+ memeber_set = set(params.keys())
63743
+ for name, value in vars(self).items():
63744
+ property_name = name[1:]
63745
+ if property_name in memeber_set:
63746
+ memeber_set.remove(property_name)
63747
+ if len(memeber_set) > 0:
63748
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
63749
+
63750
+
63751
+
63091
63752
  class SharedCNAMEInfo(AbstractModel):
63092
63753
  r"""共享CNAME明细
63093
63754
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-teo
3
- Version: 3.1.174
3
+ Version: 3.1.176
4
4
  Summary: Tencent Cloud Teo SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.174
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.176
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.176
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.174