tencentcloud-sdk-python 3.0.1399__py2.py3-none-any.whl → 3.0.1401__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 (29) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/asr/v20190614/models.py +8 -0
  3. tencentcloud/autoscaling/v20180419/models.py +6 -10
  4. tencentcloud/cdb/v20170320/models.py +60 -40
  5. tencentcloud/ckafka/v20190819/models.py +15 -0
  6. tencentcloud/common/abstract_client.py +21 -13
  7. tencentcloud/cwp/v20180228/cwp_client.py +6 -2
  8. tencentcloud/dc/v20180410/models.py +60 -0
  9. tencentcloud/emr/v20190103/emr_client.py +3 -1
  10. tencentcloud/es/v20250101/es_client.py +4 -2
  11. tencentcloud/ess/v20201111/ess_client.py +23 -0
  12. tencentcloud/ess/v20201111/models.py +117 -0
  13. tencentcloud/essbasic/v20210526/models.py +4 -2
  14. tencentcloud/goosefs/v20220519/goosefs_client.py +3 -1
  15. tencentcloud/iotexplorer/v20190423/models.py +2 -2
  16. tencentcloud/lke/v20231130/lke_client.py +116 -0
  17. tencentcloud/lke/v20231130/models.py +2319 -614
  18. tencentcloud/ocr/v20181119/ocr_client.py +1 -1
  19. tencentcloud/ssl/v20191205/errorcodes.py +12 -0
  20. tencentcloud/ssl/v20191205/models.py +6 -8
  21. tencentcloud/ssl/v20191205/ssl_client.py +2 -2
  22. tencentcloud/tat/v20201028/models.py +24 -0
  23. tencentcloud/vpc/v20170312/errorcodes.py +9 -0
  24. tencentcloud/vpc/v20170312/models.py +4 -4
  25. {tencentcloud_sdk_python-3.0.1399.dist-info → tencentcloud_sdk_python-3.0.1401.dist-info}/METADATA +1 -1
  26. {tencentcloud_sdk_python-3.0.1399.dist-info → tencentcloud_sdk_python-3.0.1401.dist-info}/RECORD +29 -29
  27. {tencentcloud_sdk_python-3.0.1399.dist-info → tencentcloud_sdk_python-3.0.1401.dist-info}/LICENSE +0 -0
  28. {tencentcloud_sdk_python-3.0.1399.dist-info → tencentcloud_sdk_python-3.0.1401.dist-info}/WHEEL +0 -0
  29. {tencentcloud_sdk_python-3.0.1399.dist-info → tencentcloud_sdk_python-3.0.1401.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py CHANGED
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1399'
17
+ __version__ = '3.0.1401'
@@ -999,6 +999,10 @@ class CreateRecTaskRequest(AbstractModel):
999
999
 
1000
1000
  :type KeyWordLibIdList: list of str
1001
1001
  :param _ReplaceTextId: 替换词汇表id, 适用于热词和自学习场景也无法解决的极端case词组, 会对识别结果强制替换。具体可参考[配置控制台](https://console.cloud.tencent.com/asr/replaceword);强制替换功能可能会影响正常识别结果,请谨慎使用
1002
+
1003
+ 注意:
1004
+ 1. 本功能配置完成后,预计在10分钟后生效
1005
+
1002
1006
  :type ReplaceTextId: str
1003
1007
  """
1004
1008
  self._EngineModelType = None
@@ -1427,6 +1431,10 @@ class CreateRecTaskRequest(AbstractModel):
1427
1431
  @property
1428
1432
  def ReplaceTextId(self):
1429
1433
  """替换词汇表id, 适用于热词和自学习场景也无法解决的极端case词组, 会对识别结果强制替换。具体可参考[配置控制台](https://console.cloud.tencent.com/asr/replaceword);强制替换功能可能会影响正常识别结果,请谨慎使用
1434
+
1435
+ 注意:
1436
+ 1. 本功能配置完成后,预计在10分钟后生效
1437
+
1430
1438
  :rtype: str
1431
1439
  """
1432
1440
  return self._ReplaceTextId
@@ -4639,11 +4639,9 @@ class DescribeAutoScalingActivitiesRequest(AbstractModel):
4639
4639
  r"""
4640
4640
  :param _ActivityIds: 按照一个或者多个伸缩活动ID查询。伸缩活动ID形如:`asa-5l2ejpfo`。每次请求的上限为100。参数不支持同时指定`ActivityIds`和`Filters`。
4641
4641
  :type ActivityIds: list of str
4642
- :param _Filters: 过滤条件。
4643
- <li> auto-scaling-group-id - String - 是否必填:否 -(过滤条件)按照伸缩组ID过滤。可通过登录 [控制台](https://console.cloud.tencent.com/autoscaling/group) 或调用接口 [DescribeAutoScalingGroups](https://cloud.tencent.com/document/api/377/20438) ,取返回信息中的 AutoScalingGroupId 获取伸缩组ID。</li>
4644
- <li> activity-status-code - String - 是否必填:否 -(过滤条件)按照伸缩活动状态过滤。(INIT:初始化中|RUNNING:运行中|SUCCESSFUL:活动成功|PARTIALLY_SUCCESSFUL:活动部分成功|FAILED:活动失败|CANCELLED:活动取消)</li>
4645
- <li> activity-type - String - 是否必填:否 -(过滤条件)按照伸缩活动类型过滤。(SCALE_OUT:扩容活动|SCALE_IN:缩容活动|ATTACH_INSTANCES:添加实例|REMOVE_INSTANCES:销毁实例|DETACH_INSTANCES:移出实例|TERMINATE_INSTANCES_UNEXPECTEDLY:实例在CVM控制台被销毁|REPLACE_UNHEALTHY_INSTANCE:替换不健康实例|UPDATE_LOAD_BALANCERS:更新负载均衡器)</li>
4646
- <li> activity-id - String - 是否必填:否 -(过滤条件)按照伸缩活动ID过滤。</li>
4642
+ :param _Filters: 过滤条件。过滤字段取值范围如下:
4643
+ <ul>
4644
+ <li><strong>auto-scaling-group-id</strong><ul><li>按照【<strong>伸缩组ID</strong>】进行过滤。可通过登录 [控制台](https://console.cloud.tencent.com/autoscaling/group) 或调用接口 [DescribeAutoScalingGroups](https://cloud.tencent.com/document/api/377/20438) ,取返回信息中的 AutoScalingGroupId 获取伸缩组ID。</li><li>类型:String</li><li>必选:否</li><li>示例值: asg-kiju7yt5</li></ul></li><li><strong>activity-status-code</strong><ul><li>按照【<strong>伸缩活动状态</strong>】进行过滤</li><li>类型:String</li><li>必选:否</li><li>可选项: </li><ul><li>INIT:初始化中</li><li>RUNNING:运行中</li><li>SUCCESSFUL:活动成功</li><li>PARTIALLY_SUCCESSFUL:活动部分成功</li><li>FAILED:活动失败</li><li>CANCELLED:活动取消</li></ul></ul></li><li><strong>activity-type</strong><ul><li>按照【<strong>伸缩活动类型</strong>】进行过滤</li><li>类型:String</li><li>必选:否</li><li>可选项: </li><ul><li>SCALE_OUT:扩容活动</li><li>SCALE_IN:缩容活动</li><li>ATTACH_INSTANCES:添加实例</li><li>REMOVE_INSTANCES:销毁实例</li><li>DETACH_INSTANCES:移出实例</li><li>TERMINATE_INSTANCES_UNEXPECTEDLY:实例在CVM控制台被销毁</li><li>REPLACE_UNHEALTHY_INSTANCE:替换不健康实例</li><li>START_INSTANCES:开启实例</li><li>STOP_INSTANCES:关闭实例</li><li>INVOKE_COMMAND:执行命令</li></ul></ul></li><li><strong>activity-id</strong><ul><li>按照【<strong>伸缩活动ID</strong>】进行过滤。可通过登录 [控制台](https://console.cloud.tencent.com/autoscaling/group) 获取伸缩活动ID。</li><li>类型:String</li><li>必选:否</li><li>示例值: asa-hy6tr4ed</li></ul></li></ul>
4647
4645
  每次请求的`Filters`的上限为10,`Filter.Values`的上限为5。参数不支持同时指定`ActivityIds`和`Filters`。
4648
4646
  :type Filters: list of Filter
4649
4647
  :param _Limit: 返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
@@ -4675,11 +4673,9 @@ class DescribeAutoScalingActivitiesRequest(AbstractModel):
4675
4673
 
4676
4674
  @property
4677
4675
  def Filters(self):
4678
- """过滤条件。
4679
- <li> auto-scaling-group-id - String - 是否必填:否 -(过滤条件)按照伸缩组ID过滤。可通过登录 [控制台](https://console.cloud.tencent.com/autoscaling/group) 或调用接口 [DescribeAutoScalingGroups](https://cloud.tencent.com/document/api/377/20438) ,取返回信息中的 AutoScalingGroupId 获取伸缩组ID。</li>
4680
- <li> activity-status-code - String - 是否必填:否 -(过滤条件)按照伸缩活动状态过滤。(INIT:初始化中|RUNNING:运行中|SUCCESSFUL:活动成功|PARTIALLY_SUCCESSFUL:活动部分成功|FAILED:活动失败|CANCELLED:活动取消)</li>
4681
- <li> activity-type - String - 是否必填:否 -(过滤条件)按照伸缩活动类型过滤。(SCALE_OUT:扩容活动|SCALE_IN:缩容活动|ATTACH_INSTANCES:添加实例|REMOVE_INSTANCES:销毁实例|DETACH_INSTANCES:移出实例|TERMINATE_INSTANCES_UNEXPECTEDLY:实例在CVM控制台被销毁|REPLACE_UNHEALTHY_INSTANCE:替换不健康实例|UPDATE_LOAD_BALANCERS:更新负载均衡器)</li>
4682
- <li> activity-id - String - 是否必填:否 -(过滤条件)按照伸缩活动ID过滤。</li>
4676
+ """过滤条件。过滤字段取值范围如下:
4677
+ <ul>
4678
+ <li><strong>auto-scaling-group-id</strong><ul><li>按照【<strong>伸缩组ID</strong>】进行过滤。可通过登录 [控制台](https://console.cloud.tencent.com/autoscaling/group) 或调用接口 [DescribeAutoScalingGroups](https://cloud.tencent.com/document/api/377/20438) ,取返回信息中的 AutoScalingGroupId 获取伸缩组ID。</li><li>类型:String</li><li>必选:否</li><li>示例值: asg-kiju7yt5</li></ul></li><li><strong>activity-status-code</strong><ul><li>按照【<strong>伸缩活动状态</strong>】进行过滤</li><li>类型:String</li><li>必选:否</li><li>可选项: </li><ul><li>INIT:初始化中</li><li>RUNNING:运行中</li><li>SUCCESSFUL:活动成功</li><li>PARTIALLY_SUCCESSFUL:活动部分成功</li><li>FAILED:活动失败</li><li>CANCELLED:活动取消</li></ul></ul></li><li><strong>activity-type</strong><ul><li>按照【<strong>伸缩活动类型</strong>】进行过滤</li><li>类型:String</li><li>必选:否</li><li>可选项: </li><ul><li>SCALE_OUT:扩容活动</li><li>SCALE_IN:缩容活动</li><li>ATTACH_INSTANCES:添加实例</li><li>REMOVE_INSTANCES:销毁实例</li><li>DETACH_INSTANCES:移出实例</li><li>TERMINATE_INSTANCES_UNEXPECTEDLY:实例在CVM控制台被销毁</li><li>REPLACE_UNHEALTHY_INSTANCE:替换不健康实例</li><li>START_INSTANCES:开启实例</li><li>STOP_INSTANCES:关闭实例</li><li>INVOKE_COMMAND:执行命令</li></ul></ul></li><li><strong>activity-id</strong><ul><li>按照【<strong>伸缩活动ID</strong>】进行过滤。可通过登录 [控制台](https://console.cloud.tencent.com/autoscaling/group) 获取伸缩活动ID。</li><li>类型:String</li><li>必选:否</li><li>示例值: asa-hy6tr4ed</li></ul></li></ul>
4683
4679
  每次请求的`Filters`的上限为10,`Filter.Values`的上限为5。参数不支持同时指定`ActivityIds`和`Filters`。
4684
4680
  :rtype: list of Filter
4685
4681
  """
@@ -15014,14 +15014,14 @@ class DescribeCPUExpandStrategyInfoRequest(AbstractModel):
15014
15014
 
15015
15015
  def __init__(self):
15016
15016
  r"""
15017
- :param _InstanceId: 实例 ID
15017
+ :param _InstanceId: 实例 ID。
15018
15018
  :type InstanceId: str
15019
15019
  """
15020
15020
  self._InstanceId = None
15021
15021
 
15022
15022
  @property
15023
15023
  def InstanceId(self):
15024
- """实例 ID
15024
+ """实例 ID。
15025
15025
  :rtype: str
15026
15026
  """
15027
15027
  return self._InstanceId
@@ -15050,18 +15050,18 @@ class DescribeCPUExpandStrategyInfoResponse(AbstractModel):
15050
15050
 
15051
15051
  def __init__(self):
15052
15052
  r"""
15053
- :param _Type: 策略类型。可选值 auto、manual。如果返回为NULL说明尚未开通弹性扩容策略
15053
+ :param _Type: 策略类型。输出值 auto、manual。如果返回为 NULL 说明尚未开通弹性扩容策略。
15054
15054
  注意:此字段可能返回 null,表示取不到有效值。
15055
15055
  :type Type: str
15056
- :param _ExpandCpu: 手动扩容的 CPU 。Type为 manual 时有效。
15056
+ :param _ExpandCpu: 手动扩容的 CPU 。Type 为 manual 时有效。
15057
15057
  注意:此字段可能返回 null,表示取不到有效值。
15058
15058
  :type ExpandCpu: int
15059
- :param _AutoStrategy: 自动扩容策略。Type 为 auto 时有效
15059
+ :param _AutoStrategy: 自动扩容策略。Type 为 auto 时有效。
15060
15060
  注意:此字段可能返回 null,表示取不到有效值。
15061
15061
  :type AutoStrategy: :class:`tencentcloud.cdb.v20170320.models.AutoStrategy`
15062
15062
  :param _PeriodStrategy: 按周期扩容策略。
15063
15063
  :type PeriodStrategy: :class:`tencentcloud.cdb.v20170320.models.PeriodStrategy`
15064
- :param _TimeIntervalStrategy: 按时间段扩容策略
15064
+ :param _TimeIntervalStrategy: 按时间段扩容策略。
15065
15065
  :type TimeIntervalStrategy: :class:`tencentcloud.cdb.v20170320.models.TimeIntervalStrategy`
15066
15066
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
15067
15067
  :type RequestId: str
@@ -15075,7 +15075,7 @@ class DescribeCPUExpandStrategyInfoResponse(AbstractModel):
15075
15075
 
15076
15076
  @property
15077
15077
  def Type(self):
15078
- """策略类型。可选值 auto、manual。如果返回为NULL说明尚未开通弹性扩容策略
15078
+ """策略类型。输出值 auto、manual。如果返回为 NULL 说明尚未开通弹性扩容策略。
15079
15079
  注意:此字段可能返回 null,表示取不到有效值。
15080
15080
  :rtype: str
15081
15081
  """
@@ -15087,7 +15087,7 @@ class DescribeCPUExpandStrategyInfoResponse(AbstractModel):
15087
15087
 
15088
15088
  @property
15089
15089
  def ExpandCpu(self):
15090
- """手动扩容的 CPU 。Type为 manual 时有效。
15090
+ """手动扩容的 CPU 。Type 为 manual 时有效。
15091
15091
  注意:此字段可能返回 null,表示取不到有效值。
15092
15092
  :rtype: int
15093
15093
  """
@@ -15099,7 +15099,7 @@ class DescribeCPUExpandStrategyInfoResponse(AbstractModel):
15099
15099
 
15100
15100
  @property
15101
15101
  def AutoStrategy(self):
15102
- """自动扩容策略。Type 为 auto 时有效
15102
+ """自动扩容策略。Type 为 auto 时有效。
15103
15103
  注意:此字段可能返回 null,表示取不到有效值。
15104
15104
  :rtype: :class:`tencentcloud.cdb.v20170320.models.AutoStrategy`
15105
15105
  """
@@ -15122,7 +15122,7 @@ class DescribeCPUExpandStrategyInfoResponse(AbstractModel):
15122
15122
 
15123
15123
  @property
15124
15124
  def TimeIntervalStrategy(self):
15125
- """按时间段扩容策略
15125
+ """按时间段扩容策略。
15126
15126
  :rtype: :class:`tencentcloud.cdb.v20170320.models.TimeIntervalStrategy`
15127
15127
  """
15128
15128
  return self._TimeIntervalStrategy
@@ -36273,18 +36273,19 @@ class StartCpuExpandRequest(AbstractModel):
36273
36273
 
36274
36274
  def __init__(self):
36275
36275
  r"""
36276
- :param _InstanceId: 实例 ID
36276
+ :param _InstanceId: 实例 ID。
36277
36277
  :type InstanceId: str
36278
- :param _Type: 扩容类型。auto 自动 manual 立即生效 timeInterval 按时间段 period 按周期
36278
+ :param _Type: 扩容类型。auto 自动 manual 立即生效 timeInterval 按时间段 period 按周期。
36279
+
36279
36280
  :type Type: str
36280
36281
  :param _ExpandCpu: 手动扩容时,扩容的 CPU 核心数。
36281
36282
  说明:1. Type 为 manual 时必传。2. 扩容的 CPU 核心数上限为当前实例 CPU 核心数,比如8核16G最大可手动扩容的 CPU 核心数为8,即范围为1 - 8。
36282
36283
  :type ExpandCpu: int
36283
36284
  :param _AutoStrategy: 自动扩容策略。Type 为 auto 时必传。
36284
36285
  :type AutoStrategy: :class:`tencentcloud.cdb.v20170320.models.AutoStrategy`
36285
- :param _TimeIntervalStrategy: 按时间段扩容策略
36286
+ :param _TimeIntervalStrategy: 按时间段扩容策略。
36286
36287
  :type TimeIntervalStrategy: :class:`tencentcloud.cdb.v20170320.models.TimeIntervalStrategy`
36287
- :param _PeriodStrategy: 按周期扩容策略
36288
+ :param _PeriodStrategy: 按周期扩容策略。
36288
36289
  :type PeriodStrategy: :class:`tencentcloud.cdb.v20170320.models.PeriodStrategy`
36289
36290
  """
36290
36291
  self._InstanceId = None
@@ -36296,7 +36297,7 @@ class StartCpuExpandRequest(AbstractModel):
36296
36297
 
36297
36298
  @property
36298
36299
  def InstanceId(self):
36299
- """实例 ID
36300
+ """实例 ID。
36300
36301
  :rtype: str
36301
36302
  """
36302
36303
  return self._InstanceId
@@ -36307,7 +36308,8 @@ class StartCpuExpandRequest(AbstractModel):
36307
36308
 
36308
36309
  @property
36309
36310
  def Type(self):
36310
- """扩容类型。auto 自动 manual 立即生效 timeInterval 按时间段 period 按周期
36311
+ """扩容类型。auto 自动 manual 立即生效 timeInterval 按时间段 period 按周期。
36312
+
36311
36313
  :rtype: str
36312
36314
  """
36313
36315
  return self._Type
@@ -36341,7 +36343,7 @@ class StartCpuExpandRequest(AbstractModel):
36341
36343
 
36342
36344
  @property
36343
36345
  def TimeIntervalStrategy(self):
36344
- """按时间段扩容策略
36346
+ """按时间段扩容策略。
36345
36347
  :rtype: :class:`tencentcloud.cdb.v20170320.models.TimeIntervalStrategy`
36346
36348
  """
36347
36349
  return self._TimeIntervalStrategy
@@ -36352,7 +36354,7 @@ class StartCpuExpandRequest(AbstractModel):
36352
36354
 
36353
36355
  @property
36354
36356
  def PeriodStrategy(self):
36355
- """按周期扩容策略
36357
+ """按周期扩容策略。
36356
36358
  :rtype: :class:`tencentcloud.cdb.v20170320.models.PeriodStrategy`
36357
36359
  """
36358
36360
  return self._PeriodStrategy
@@ -37270,19 +37272,26 @@ class TImeCycle(AbstractModel):
37270
37272
 
37271
37273
  def __init__(self):
37272
37274
  r"""
37273
- :param _Monday: 周一的扩容时间段
37275
+ :param _Monday: 按周期扩容时,是否选择周一扩容。
37276
+ 说明:取值 true,表示选择,取值 false,表示不选择。
37274
37277
  :type Monday: bool
37275
- :param _Tuesday: 周二的扩容时间段
37278
+ :param _Tuesday: 按周期扩容时,是否选择周二扩容。
37279
+ 说明:取值 true,表示选择,取值 false,表示不选择。
37276
37280
  :type Tuesday: bool
37277
- :param _Wednesday: 周三的扩容时间段
37281
+ :param _Wednesday: 按周期扩容时,是否选择周三扩容。
37282
+ 说明:取值 true,表示选择,取值 false,表示不选择。
37278
37283
  :type Wednesday: bool
37279
- :param _Thursday: 周四的扩容时间段
37284
+ :param _Thursday: 按周期扩容时,是否选择周四扩容。
37285
+ 说明:取值 true,表示选择,取值 false,表示不选择。
37280
37286
  :type Thursday: bool
37281
- :param _Friday: 周五的扩容时间段
37287
+ :param _Friday: 按周期扩容时,是否选择周五扩容。
37288
+ 说明:取值 true,表示选择,取值 false,表示不选择。
37282
37289
  :type Friday: bool
37283
- :param _Saturday: 周六的扩容时间段
37290
+ :param _Saturday: 按周期扩容时,是否选择周六扩容。
37291
+ 说明:取值 true,表示选择,取值 false,表示不选择。
37284
37292
  :type Saturday: bool
37285
- :param _Sunday: 周日的扩容时间段
37293
+ :param _Sunday: 按周期扩容时,是否选择周日扩容。
37294
+ 说明:取值 true,表示选择,取值 false,表示不选择。
37286
37295
  :type Sunday: bool
37287
37296
  """
37288
37297
  self._Monday = None
@@ -37295,7 +37304,8 @@ class TImeCycle(AbstractModel):
37295
37304
 
37296
37305
  @property
37297
37306
  def Monday(self):
37298
- """周一的扩容时间段
37307
+ """按周期扩容时,是否选择周一扩容。
37308
+ 说明:取值 true,表示选择,取值 false,表示不选择。
37299
37309
  :rtype: bool
37300
37310
  """
37301
37311
  return self._Monday
@@ -37306,7 +37316,8 @@ class TImeCycle(AbstractModel):
37306
37316
 
37307
37317
  @property
37308
37318
  def Tuesday(self):
37309
- """周二的扩容时间段
37319
+ """按周期扩容时,是否选择周二扩容。
37320
+ 说明:取值 true,表示选择,取值 false,表示不选择。
37310
37321
  :rtype: bool
37311
37322
  """
37312
37323
  return self._Tuesday
@@ -37317,7 +37328,8 @@ class TImeCycle(AbstractModel):
37317
37328
 
37318
37329
  @property
37319
37330
  def Wednesday(self):
37320
- """周三的扩容时间段
37331
+ """按周期扩容时,是否选择周三扩容。
37332
+ 说明:取值 true,表示选择,取值 false,表示不选择。
37321
37333
  :rtype: bool
37322
37334
  """
37323
37335
  return self._Wednesday
@@ -37328,7 +37340,8 @@ class TImeCycle(AbstractModel):
37328
37340
 
37329
37341
  @property
37330
37342
  def Thursday(self):
37331
- """周四的扩容时间段
37343
+ """按周期扩容时,是否选择周四扩容。
37344
+ 说明:取值 true,表示选择,取值 false,表示不选择。
37332
37345
  :rtype: bool
37333
37346
  """
37334
37347
  return self._Thursday
@@ -37339,7 +37352,8 @@ class TImeCycle(AbstractModel):
37339
37352
 
37340
37353
  @property
37341
37354
  def Friday(self):
37342
- """周五的扩容时间段
37355
+ """按周期扩容时,是否选择周五扩容。
37356
+ 说明:取值 true,表示选择,取值 false,表示不选择。
37343
37357
  :rtype: bool
37344
37358
  """
37345
37359
  return self._Friday
@@ -37350,7 +37364,8 @@ class TImeCycle(AbstractModel):
37350
37364
 
37351
37365
  @property
37352
37366
  def Saturday(self):
37353
- """周六的扩容时间段
37367
+ """按周期扩容时,是否选择周六扩容。
37368
+ 说明:取值 true,表示选择,取值 false,表示不选择。
37354
37369
  :rtype: bool
37355
37370
  """
37356
37371
  return self._Saturday
@@ -37361,7 +37376,8 @@ class TImeCycle(AbstractModel):
37361
37376
 
37362
37377
  @property
37363
37378
  def Sunday(self):
37364
- """周日的扩容时间段
37379
+ """按周期扩容时,是否选择周日扩容。
37380
+ 说明:取值 true,表示选择,取值 false,表示不选择。
37365
37381
  :rtype: bool
37366
37382
  """
37367
37383
  return self._Sunday
@@ -38010,9 +38026,9 @@ class TimeInterval(AbstractModel):
38010
38026
 
38011
38027
  def __init__(self):
38012
38028
  r"""
38013
- :param _StartTime: 开始时间
38029
+ :param _StartTime: 开始时间。
38014
38030
  :type StartTime: str
38015
- :param _EndTime: 结束时间
38031
+ :param _EndTime: 结束时间。
38016
38032
  :type EndTime: str
38017
38033
  """
38018
38034
  self._StartTime = None
@@ -38020,7 +38036,7 @@ class TimeInterval(AbstractModel):
38020
38036
 
38021
38037
  @property
38022
38038
  def StartTime(self):
38023
- """开始时间
38039
+ """开始时间。
38024
38040
  :rtype: str
38025
38041
  """
38026
38042
  return self._StartTime
@@ -38031,7 +38047,7 @@ class TimeInterval(AbstractModel):
38031
38047
 
38032
38048
  @property
38033
38049
  def EndTime(self):
38034
- """结束时间
38050
+ """结束时间。
38035
38051
  :rtype: str
38036
38052
  """
38037
38053
  return self._EndTime
@@ -38061,9 +38077,11 @@ class TimeIntervalStrategy(AbstractModel):
38061
38077
 
38062
38078
  def __init__(self):
38063
38079
  r"""
38064
- :param _StartTime: 开始扩容时间
38080
+ :param _StartTime: 开始扩容时间。
38081
+ 说明:此值的格式为 Integer 的时间戳。
38065
38082
  :type StartTime: int
38066
- :param _EndTime: 结束扩容时间
38083
+ :param _EndTime: 结束扩容时间。
38084
+ 说明:此值的格式为 Integer 的时间戳。
38067
38085
  :type EndTime: int
38068
38086
  """
38069
38087
  self._StartTime = None
@@ -38071,7 +38089,8 @@ class TimeIntervalStrategy(AbstractModel):
38071
38089
 
38072
38090
  @property
38073
38091
  def StartTime(self):
38074
- """开始扩容时间
38092
+ """开始扩容时间。
38093
+ 说明:此值的格式为 Integer 的时间戳。
38075
38094
  :rtype: int
38076
38095
  """
38077
38096
  return self._StartTime
@@ -38082,7 +38101,8 @@ class TimeIntervalStrategy(AbstractModel):
38082
38101
 
38083
38102
  @property
38084
38103
  def EndTime(self):
38085
- """结束扩容时间
38104
+ """结束扩容时间。
38105
+ 说明:此值的格式为 Integer 的时间戳。
38086
38106
  :rtype: int
38087
38107
  """
38088
38108
  return self._EndTime
@@ -8475,6 +8475,8 @@ class DatahubTaskInfo(AbstractModel):
8475
8475
  :type DatahubId: str
8476
8476
  :param _StepList: 步骤列表
8477
8477
  :type StepList: list of str
8478
+ :param _Description: 任务描述信息
8479
+ :type Description: str
8478
8480
  """
8479
8481
  self._TaskId = None
8480
8482
  self._TaskName = None
@@ -8488,6 +8490,7 @@ class DatahubTaskInfo(AbstractModel):
8488
8490
  self._TaskCurrentStep = None
8489
8491
  self._DatahubId = None
8490
8492
  self._StepList = None
8493
+ self._Description = None
8491
8494
 
8492
8495
  @property
8493
8496
  def TaskId(self):
@@ -8621,6 +8624,17 @@ class DatahubTaskInfo(AbstractModel):
8621
8624
  def StepList(self, StepList):
8622
8625
  self._StepList = StepList
8623
8626
 
8627
+ @property
8628
+ def Description(self):
8629
+ """任务描述信息
8630
+ :rtype: str
8631
+ """
8632
+ return self._Description
8633
+
8634
+ @Description.setter
8635
+ def Description(self, Description):
8636
+ self._Description = Description
8637
+
8624
8638
 
8625
8639
  def _deserialize(self, params):
8626
8640
  self._TaskId = params.get("TaskId")
@@ -8639,6 +8653,7 @@ class DatahubTaskInfo(AbstractModel):
8639
8653
  self._TaskCurrentStep = params.get("TaskCurrentStep")
8640
8654
  self._DatahubId = params.get("DatahubId")
8641
8655
  self._StepList = params.get("StepList")
8656
+ self._Description = params.get("Description")
8642
8657
  memeber_set = set(params.keys())
8643
8658
  for name, value in vars(self).items():
8644
8659
  property_name = name[1:]
@@ -28,8 +28,10 @@ import logging.handlers
28
28
 
29
29
  try:
30
30
  from urllib.parse import urlencode
31
+ from urllib.parse import urlparse
31
32
  except ImportError:
32
33
  from urllib import urlencode
34
+ from urlparse import urlparse
33
35
 
34
36
  import tencentcloud
35
37
  from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException
@@ -133,11 +135,11 @@ class AbstractClient(object):
133
135
  elif self.profile.signMethod == "TC3-HMAC-SHA256" or options.get("IsMultipart") is True:
134
136
  self._build_req_with_tc3_signature(action, params, req_inter, options)
135
137
  elif self.profile.signMethod in ("HmacSHA1", "HmacSHA256"):
136
- self._build_req_with_old_signature(action, params, req_inter)
138
+ self._build_req_with_old_signature(action, params, req_inter, options)
137
139
  else:
138
140
  raise TencentCloudSDKException("ClientError", "Invalid signature method.")
139
141
 
140
- def _build_req_with_old_signature(self, action, params, req):
142
+ def _build_req_with_old_signature(self, action, params, req, options):
141
143
  params = copy.deepcopy(self._fix_params(params))
142
144
  params['Action'] = action[0].upper() + action[1:]
143
145
  params['RequestClient'] = self.request_client
@@ -160,7 +162,7 @@ class AbstractClient(object):
160
162
  if self.profile.language:
161
163
  params['Language'] = self.profile.language
162
164
 
163
- signInParam = self._format_sign_string(params)
165
+ signInParam = self._format_sign_string(params, options)
164
166
  params['Signature'] = Sign.sign(str(self.credential.secret_key),
165
167
  str(signInParam),
166
168
  str(self.profile.signMethod))
@@ -185,7 +187,7 @@ class AbstractClient(object):
185
187
  raise SDKError("ClientError",
186
188
  "Invalid request method GET for multipart.")
187
189
 
188
- endpoint = self._get_endpoint()
190
+ endpoint = self._get_endpoint(options=options)
189
191
  timestamp = int(time.time())
190
192
  req.header["Host"] = endpoint
191
193
  req.header["X-TC-Action"] = action[0].upper() + action[1:]
@@ -276,7 +278,7 @@ class AbstractClient(object):
276
278
  raise SDKError("ClientError",
277
279
  "Invalid request method GET for multipart.")
278
280
 
279
- endpoint = self._get_endpoint()
281
+ endpoint = self._get_endpoint(options=options)
280
282
  timestamp = int(time.time())
281
283
  req.header["Host"] = endpoint
282
284
  req.header["X-TC-Action"] = action[0].upper() + action[1:]
@@ -333,20 +335,23 @@ class AbstractClient(object):
333
335
  logger.debug("GetResponse: %s", ResponsePrettyFormatter(resp_inter))
334
336
  raise TencentCloudSDKException("ServerNetworkError", resp_inter.content)
335
337
 
336
- def _format_sign_string(self, params):
338
+ def _format_sign_string(self, params, options=None):
337
339
  formatParam = {}
338
340
  for k in params:
339
341
  formatParam[k.replace('_', '.')] = params[k]
340
342
  strParam = '&'.join('%s=%s' % (k, formatParam[k]) for k in sorted(formatParam))
341
- msg = '%s%s%s?%s' % (self.profile.httpProfile.reqMethod, self._get_endpoint(), self._requestPath, strParam)
343
+ msg = '%s%s%s?%s' % (
344
+ self.profile.httpProfile.reqMethod, self._get_endpoint(options=options), self._requestPath, strParam)
342
345
  return msg
343
346
 
344
347
  def _get_service_domain(self):
345
348
  rootDomain = self.profile.httpProfile.rootDomain
346
349
  return self._service + "." + rootDomain
347
350
 
348
- def _get_endpoint(self):
351
+ def _get_endpoint(self, options=None):
349
352
  endpoint = self.profile.httpProfile.endpoint
353
+ if not endpoint and options:
354
+ endpoint = urlparse(options.get("Endpoint", "")).hostname
350
355
  if endpoint is None:
351
356
  endpoint = self._get_service_domain()
352
357
  return endpoint
@@ -420,7 +425,7 @@ class AbstractClient(object):
420
425
  headers["X-TC-TraceId"] = str(uuid.uuid4())
421
426
  if not self.profile.disable_region_breaker:
422
427
  return self._call_with_region_breaker(action, params, options, headers)
423
- req = RequestInternal(self._get_endpoint(),
428
+ req = RequestInternal(self._get_endpoint(options=options),
424
429
  self.profile.httpProfile.reqMethod,
425
430
  self._requestPath,
426
431
  header=headers)
@@ -444,7 +449,7 @@ class AbstractClient(object):
444
449
  return retryer.send_request(_call_once).content
445
450
 
446
451
  def _call_with_region_breaker(self, action, params, options=None, headers=None):
447
- endpoint = self._get_endpoint()
452
+ endpoint = self._get_endpoint(options=options)
448
453
  generation, need_break = self.circuit_breaker.before_requests()
449
454
  if need_break:
450
455
  endpoint = self._service + "." + self.profile.region_breaker_profile.backup_endpoint
@@ -470,7 +475,7 @@ class AbstractClient(object):
470
475
  self._check_error(resp)
471
476
  return resp.content
472
477
 
473
- def call_octet_stream(self, action, headers, body):
478
+ def call_octet_stream(self, action, headers, body, options=None):
474
479
  """Invoke API with application/ocet-stream content-type.
475
480
 
476
481
  Note:
@@ -490,12 +495,14 @@ class AbstractClient(object):
490
495
  if self.profile.httpProfile.reqMethod != "POST":
491
496
  raise SDKError("ClientError", "Invalid request method.")
492
497
 
493
- req = RequestInternal(self._get_endpoint(),
498
+ if not options:
499
+ options = {}
500
+ req = RequestInternal(self._get_endpoint(options=options),
494
501
  self.profile.httpProfile.reqMethod,
495
502
  self._requestPath,
496
503
  header=headers)
497
504
  req.data = body
498
- options = {"IsOctetStream": True}
505
+ options["IsOctetStream"] = True
499
506
  self._build_req_inter(action, None, req, options)
500
507
 
501
508
  resp = self.request.send_request(req)
@@ -538,6 +545,7 @@ class AbstractClient(object):
538
545
  :param options: Request options, like {"SkipSign": False, "IsMultipart": False, "IsOctetStream": False, "BinaryParams": []}
539
546
  :type options: dict
540
547
  """
548
+
541
549
  def _call_once():
542
550
  resp = self._call(action, params, options, headers)
543
551
  self._check_status(resp)
@@ -50,7 +50,9 @@ class CwpClient(AbstractClient):
50
50
 
51
51
 
52
52
  def CancelIgnoreVul(self, request):
53
- """取消漏洞忽略
53
+ """产品变动切换到了\\n切换到 AddVulIgnoreRule / ModifyVulIgnoreRule CancelVulIgnoreRule\\n相关接口
54
+
55
+ 取消漏洞忽略
54
56
 
55
57
  :param request: Request instance for CancelIgnoreVul.
56
58
  :type request: :class:`tencentcloud.cwp.v20180228.models.CancelIgnoreVulRequest`
@@ -9828,7 +9830,9 @@ class CwpClient(AbstractClient):
9828
9830
 
9829
9831
 
9830
9832
  def IgnoreImpactedHosts(self, request):
9831
- """本接口 (IgnoreImpactedHosts) 用于忽略漏洞。
9833
+ """产品变动切换到了\\n切换到 AddVulIgnoreRule / ModifyVulIgnoreRule CancelVulIgnoreRule\\n相关接口
9834
+
9835
+ 本接口 (IgnoreImpactedHosts) 用于忽略漏洞。
9832
9836
 
9833
9837
  :param request: Request instance for IgnoreImpactedHosts.
9834
9838
  :type request: :class:`tencentcloud.cwp.v20180228.models.IgnoreImpactedHostsRequest`