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

Files changed (38) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/aiart/v20221229/aiart_client.py +4 -11
  3. tencentcloud/aiart/v20221229/models.py +6 -5
  4. tencentcloud/antiddos/v20200309/models.py +13 -0
  5. tencentcloud/asr/v20190614/asr_client.py +1 -1
  6. tencentcloud/asr/v20190614/models.py +15 -4
  7. tencentcloud/cdb/v20170320/cdb_client.py +46 -0
  8. tencentcloud/cdb/v20170320/errorcodes.py +3 -0
  9. tencentcloud/cdb/v20170320/models.py +360 -0
  10. tencentcloud/csip/v20221121/models.py +3 -0
  11. tencentcloud/es/v20180416/models.py +12 -12
  12. tencentcloud/faceid/v20180301/faceid_client.py +1 -1
  13. tencentcloud/faceid/v20180301/models.py +12 -0
  14. tencentcloud/hunyuan/v20230901/hunyuan_client.py +8 -8
  15. tencentcloud/hunyuan/v20230901/models.py +121 -30
  16. tencentcloud/iss/v20230517/models.py +50 -0
  17. tencentcloud/lke/__init__.py +0 -0
  18. tencentcloud/lke/v20231130/__init__.py +0 -0
  19. tencentcloud/lke/v20231130/errorcodes.py +30 -0
  20. tencentcloud/lke/v20231130/lke_client.py +1751 -0
  21. tencentcloud/lke/v20231130/models.py +13358 -0
  22. tencentcloud/mna/v20210119/errorcodes.py +12 -0
  23. tencentcloud/mna/v20210119/models.py +301 -5
  24. tencentcloud/monitor/v20180724/models.py +0 -82
  25. tencentcloud/monitor/v20180724/monitor_client.py +0 -23
  26. tencentcloud/redis/v20180412/models.py +1 -1
  27. tencentcloud/sms/v20210111/models.py +1 -0
  28. tencentcloud/soe/v20180724/models.py +1 -1
  29. tencentcloud/tione/v20211111/models.py +48 -1
  30. tencentcloud/trtc/v20190722/models.py +97 -2
  31. tencentcloud/trtc/v20190722/trtc_client.py +3 -3
  32. tencentcloud/wedata/v20210820/models.py +345 -2088
  33. tencentcloud/wedata/v20210820/wedata_client.py +0 -253
  34. {tencentcloud_sdk_python-3.0.1126.dist-info → tencentcloud_sdk_python-3.0.1128.dist-info}/METADATA +1 -1
  35. {tencentcloud_sdk_python-3.0.1126.dist-info → tencentcloud_sdk_python-3.0.1128.dist-info}/RECORD +38 -33
  36. {tencentcloud_sdk_python-3.0.1126.dist-info → tencentcloud_sdk_python-3.0.1128.dist-info}/LICENSE +0 -0
  37. {tencentcloud_sdk_python-3.0.1126.dist-info → tencentcloud_sdk_python-3.0.1128.dist-info}/WHEEL +0 -0
  38. {tencentcloud_sdk_python-3.0.1126.dist-info → tencentcloud_sdk_python-3.0.1128.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.1126'
17
+ __version__ = '3.0.1128'
@@ -27,12 +27,8 @@ class AiartClient(AbstractClient):
27
27
 
28
28
 
29
29
  def ImageToImage(self, request):
30
- """智能图生图接口将根据输入的图片及辅助描述文本,智能生成与之相关的结果图。
31
- 输入:单边分辨率小于2000、转成 Base64 字符串后小于 5MB 的图片,建议同时输入描述文本。
32
- 输出:对应风格及分辨率的 AI 生成图。
33
- 可支持的风格详见 [智能图生图风格列表](https://cloud.tencent.com/document/product/1668/86250),请将列表中的“风格编号”传入 Styles 数组,建议选择一种风格。
34
-
35
- 请求频率限制为1次/秒。
30
+ """智能图生图接口提供基础版图生图能力,将根据输入的图像及文本描述,智能生成风格转化后的图像。建议避免输入人像过小、姿势复杂、人数较多的人像图片。
31
+ 智能图生图默认提供3个并发任务数,代表最多能同时处理3个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
36
32
 
37
33
  :param request: Request instance for ImageToImage.
38
34
  :type request: :class:`tencentcloud.aiart.v20221229.models.ImageToImageRequest`
@@ -107,12 +103,9 @@ class AiartClient(AbstractClient):
107
103
 
108
104
 
109
105
  def TextToImage(self, request):
110
- """智能文生图接口将根据输入的描述文本,智能生成与之相关的结果图。
111
- 输入:256个字符以内的描述性文本,推荐使用中文。
112
- 输出:对应风格及分辨率的 AI 生成图。
113
- 可支持的风格详见 [智能文生图风格列表](https://cloud.tencent.com/document/product/1668/86249),请将列表中的“风格编号”传入 Styles 数组,建议选择一种风格。
106
+ """智能文生图接口提供基础版文生图能力,将根据输入的文本描述,智能生成与之相关的结果图。
114
107
 
115
- 请求频率限制为1次/秒。
108
+ 智能文生图默认提供3个并发任务数,代表最多能同时处理3个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
116
109
 
117
110
  :param request: Request instance for TextToImage.
118
111
  :type request: :class:`tencentcloud.aiart.v20221229.models.TextToImageRequest`
@@ -28,12 +28,12 @@ class ImageToImageRequest(AbstractModel):
28
28
  :param _InputImage: 输入图 Base64 数据。
29
29
  算法将根据输入的图片,结合文本描述智能生成与之相关的图像。
30
30
  Base64 和 Url 必须提供一个,如果都提供以 Base64 为准。
31
- 图片限制:单边分辨率小于2000,转成 Base64 字符串后小于 5MB
31
+ 图片限制:单边分辨率小于5000,转成 Base64 字符串后小于 8MB
32
32
  :type InputImage: str
33
33
  :param _InputUrl: 输入图 Url。
34
34
  算法将根据输入的图片,结合文本描述智能生成与之相关的图像。
35
35
  Base64 和 Url 必须提供一个,如果都提供以 Base64 为准。
36
- 图片限制:单边分辨率小于2000,转成 Base64 字符串后小于 5MB
36
+ 图片限制:单边分辨率小于5000,转成 Base64 字符串后小于8MB
37
37
  :type InputUrl: str
38
38
  :param _Prompt: 文本描述。
39
39
  用于在输入图的基础上引导生成图效果,增加生成结果中出现描述内容的可能。
@@ -48,7 +48,8 @@ Base64 和 Url 必须提供一个,如果都提供以 Base64 为准。
48
48
  推荐使用且只使用一种风格。不传默认使用201(日系动漫风格)。
49
49
  :type Styles: list of str
50
50
  :param _ResultConfig: 生成图结果的配置,包括输出图片分辨率和尺寸等。
51
- 支持生成以下分辨率的图片:origin(与输入图分辨率一致)、768:768(1:1)、768:1024(3:4)、1024:768(4:3),不传默认使用origin。
51
+ 支持生成以下分辨率的图片:origin(与输入图分辨率一致,长边最高为2000,超出将做等比例缩小)、768:768(1:1)、768:1024(3:4)、1024:768(4:3)。
52
+ 不传默认使用origin。
52
53
  :type ResultConfig: :class:`tencentcloud.aiart.v20221229.models.ResultConfig`
53
54
  :param _LogoAdd: 为生成结果图添加标识的开关,默认为1。
54
55
  1:添加标识。
@@ -495,9 +496,9 @@ class ResultConfig(AbstractModel):
495
496
  r"""
496
497
  :param _Resolution: 生成图分辨率
497
498
 
498
- 智能文生图支持生成以下分辨率的图片:768:768(1:1)、768:1024(3:4)、1024:768(4:3)、1024:1024(1:1)、720:1280(9:16)、1280:720(16:9)、768:1280(3:5)、1280:768(5:3)、1080:1920(9:16)、1920:1080(16:9),不传默认使用768:768
499
+ 智能文生图支持生成以下分辨率的图片:768:768(1:1)、768:1024(3:4)、1024:768(4:3)、1024:1024(1:1)、720:1280(9:16)、1280:720(16:9)、768:1280(3:5)、1280:768(5:3)、1080:1920(9:16)、1920:1080(16:9),不传默认使用768:768
499
500
 
500
- 智能图生图支持生成以下分辨率的图片:origin(与输入图分辨率一致)、768:768(1:1)、768:1024(3:4)、1024:768(4:3),不传默认使用origin,如果指定生成的长宽比与输入图长宽比差异过大可能导致图片内容被裁剪
501
+ 智能图生图支持生成以下分辨率的图片:origin(与输入图分辨率一致,长边最高为2000,超出将做等比例缩小)、768:768(1:1)、768:1024(3:4)、1024:768(4:3),不传默认使用origin,如果指定生成的长宽比与输入图长宽比差异过大可能导致图片内容被裁剪。
501
502
  :type Resolution: str
502
503
  """
503
504
  self._Resolution = None
@@ -1426,6 +1426,9 @@ class BGPInstance(AbstractModel):
1426
1426
  :param _PlanCntFlag: 是否是商业模式优化-普惠版
1427
1427
  注意:此字段可能返回 null,表示取不到有效值。
1428
1428
  :type PlanCntFlag: int
1429
+ :param _SuperPackFlag: 是否为超级高防包
1430
+ 注意:此字段可能返回 null,表示取不到有效值。
1431
+ :type SuperPackFlag: int
1429
1432
  """
1430
1433
  self._InstanceDetail = None
1431
1434
  self._SpecificationLimit = None
@@ -1450,6 +1453,7 @@ class BGPInstance(AbstractModel):
1450
1453
  self._ModifyTime = None
1451
1454
  self._BasicPlusFlag = None
1452
1455
  self._PlanCntFlag = None
1456
+ self._SuperPackFlag = None
1453
1457
 
1454
1458
  @property
1455
1459
  def InstanceDetail(self):
@@ -1635,6 +1639,14 @@ class BGPInstance(AbstractModel):
1635
1639
  def PlanCntFlag(self, PlanCntFlag):
1636
1640
  self._PlanCntFlag = PlanCntFlag
1637
1641
 
1642
+ @property
1643
+ def SuperPackFlag(self):
1644
+ return self._SuperPackFlag
1645
+
1646
+ @SuperPackFlag.setter
1647
+ def SuperPackFlag(self, SuperPackFlag):
1648
+ self._SuperPackFlag = SuperPackFlag
1649
+
1638
1650
 
1639
1651
  def _deserialize(self, params):
1640
1652
  if params.get("InstanceDetail") is not None:
@@ -1680,6 +1692,7 @@ class BGPInstance(AbstractModel):
1680
1692
  self._ModifyTime = params.get("ModifyTime")
1681
1693
  self._BasicPlusFlag = params.get("BasicPlusFlag")
1682
1694
  self._PlanCntFlag = params.get("PlanCntFlag")
1695
+ self._SuperPackFlag = params.get("SuperPackFlag")
1683
1696
  memeber_set = set(params.keys())
1684
1697
  for name, value in vars(self).items():
1685
1698
  property_name = name[1:]
@@ -55,7 +55,7 @@ class AsrClient(AbstractClient):
55
55
  <br>• 每个热词表最多可添加1000个词,每个词最长10个汉字或30个英文字符,不能超出限制。
56
56
  <br>• 热词表可以通过数组或者本地文件形式上传。
57
57
  <br>• 本地文件必须为UTF-8编码格式,每行仅添加一个热词且不能包含标点和特殊字符。
58
- <br>• 热词权重取值范围为[1,11]之间的整数,权重越大代表该词被识别出来的概率越大。
58
+ <br>• 热词权重取值范围为[1,11]之间的整数或者100,权重越大代表该词被识别出来的概率越大。
59
59
  <br>• 注意: 热词权重设置为11时,当前热词将升级为超级热词,建议仅将重要且必须生效的热词设置到11,设置过多权重为11的热词将影响整体字准率。
60
60
 
61
61
  :param request: Request instance for CreateAsrVocab.
@@ -171,8 +171,10 @@ class CreateAsrVocabRequest(AbstractModel):
171
171
  :type Name: str
172
172
  :param _Description: 热词表描述,长度在0-1000之间
173
173
  :type Description: str
174
- :param _WordWeights: 词权重数组,包含全部的热词和对应的权重。每个热词的长度不大于10个汉字或30个英文字符,权重为[1,11]之间整数,数组长度不大于1000
175
- 注意: 热词权重设置为11时,当前热词将升级为超级热词,建议仅将重要且必须生效的热词设置到11,设置过多权重为11的热词将影响整体字准率。
174
+ :param _WordWeights: 词权重数组,包含全部的热词和对应的权重。每个热词的长度不大于10个汉字或30个英文字符,权重为[1,11]之间整数或者100,数组长度不大于1000
175
+ 注意:
176
+ - 热词权重设置为11时,当前热词将升级为超级热词,建议仅将重要且必须生效的热词设置到11,设置过多权重为11的热词将影响整体字准率。
177
+ - 热词权重设置为100时,当前热词开启热词增强同音替换功能(仅支持8k_zh,16k_zh),举例:热词配置“蜜制|100”时,与“蜜制”同拼音(mizhi)的“秘制”的识别结果会被强制替换成“蜜制”。因此建议客户根据自己的实际情况开启该功能。建议仅将重要且必须生效的热词设置到100,设置过多权重为100的热词将影响整体字准率。
176
178
  :type WordWeights: list of HotWord
177
179
  :param _WordWeightStr: 词权重文件(纯文本文件)的二进制base64编码,以行分隔,每行的格式为word|weight,即以英文符号|为分割,左边为词,右边为权重,如:你好|5。
178
180
  当用户传此参数(参数长度大于0),即以此参数解析词权重,WordWeights会被忽略
@@ -863,10 +865,14 @@ class CreateRecTaskRequest(AbstractModel):
863
865
 
864
866
  @property
865
867
  def ReinforceHotword(self):
868
+ warnings.warn("parameter `ReinforceHotword` is deprecated", DeprecationWarning)
869
+
866
870
  return self._ReinforceHotword
867
871
 
868
872
  @ReinforceHotword.setter
869
873
  def ReinforceHotword(self, ReinforceHotword):
874
+ warnings.warn("parameter `ReinforceHotword` is deprecated", DeprecationWarning)
875
+
870
876
  self._ReinforceHotword = ReinforceHotword
871
877
 
872
878
  @property
@@ -2441,7 +2447,7 @@ class SentenceRecognitionRequest(AbstractModel):
2441
2447
  :param _ReinforceHotword: 热词增强功能。1:开启后(仅支持8k_zh,16k_zh),将开启同音替换功能,同音字、词在热词中配置。举例:热词配置“蜜制”并开启增强功能后,与“蜜制”同拼音(mizhi)的“秘制”的识别结果会被强制替换成“蜜制”。因此建议客户根据自己的实际情况开启该功能。
2442
2448
  :type ReinforceHotword: int
2443
2449
  :param _HotwordList: 临时热词表:该参数用于提升识别准确率。
2444
- 单个热词限制:"热词|权重",单个热词不超过30个字符(最多10个汉字),权重1-11,如:“腾讯云|5” 或 “ASR|11”;
2450
+ 单个热词限制:"热词|权重",单个热词不超过30个字符(最多10个汉字),权重1-11或者100,如:“腾讯云|5” 或 “ASR|11”;
2445
2451
  临时热词表限制:多个热词用英文逗号分割,最多支持128个热词,如:“腾讯云|10,语音识别|5,ASR|11”;
2446
2452
  参数 hotword_list(热词表) 与 hotword_id(临时热词表) 区别:
2447
2453
  hotword_id:热词表。需要先在控制台或接口创建热词表,获得对应hotword_id传入参数来使用热词功能;
@@ -2449,6 +2455,7 @@ hotword_list:临时热词表。每次请求时直接传入临时热词表来
2449
2455
  注意:
2450
2456
  • 如果同时传入了 hotword_id 和 hotword_list,会优先使用 hotword_list;
2451
2457
  • 热词权重设置为11时,当前热词将升级为超级热词,建议仅将重要且必须生效的热词设置到11,设置过多权重为11的热词将影响整体字准率。
2458
+ • 热词权重设置为100时,当前热词开启热词增强同音替换功能(仅支持8k_zh,16k_zh),举例:热词配置“蜜制|100”时,与“蜜制”同拼音(mizhi)的“秘制”的识别结果会被强制替换成“蜜制”。因此建议客户根据自己的实际情况开启该功能。建议仅将重要且必须生效的热词设置到100,设置过多权重为100的热词将影响整体字准率。
2452
2459
  :type HotwordList: str
2453
2460
  :param _InputSampleRate: 支持pcm格式的8k音频在与引擎采样率不匹配的情况下升采样到16k后识别,能有效提升识别准确率。仅支持:8000。如:传入 8000 ,则pcm音频采样率为8k,当引擎选用16k_zh, 那么该8k采样率的pcm音频可以在16k_zh引擎下正常识别。 注:此参数仅适用于pcm格式音频,不传入值将维持默认状态,即默认调用的引擎采样率等于pcm音频采样率。
2454
2461
  :type InputSampleRate: int
@@ -2615,10 +2622,14 @@ hotword_list:临时热词表。每次请求时直接传入临时热词表来
2615
2622
 
2616
2623
  @property
2617
2624
  def ReinforceHotword(self):
2625
+ warnings.warn("parameter `ReinforceHotword` is deprecated", DeprecationWarning)
2626
+
2618
2627
  return self._ReinforceHotword
2619
2628
 
2620
2629
  @ReinforceHotword.setter
2621
2630
  def ReinforceHotword(self, ReinforceHotword):
2631
+ warnings.warn("parameter `ReinforceHotword` is deprecated", DeprecationWarning)
2632
+
2622
2633
  self._ReinforceHotword = ReinforceHotword
2623
2634
 
2624
2635
  @property
@@ -3103,7 +3114,7 @@ class UpdateAsrVocabRequest(AbstractModel):
3103
3114
  :type VocabId: str
3104
3115
  :param _Name: 热词表名称,长度在1-255之间
3105
3116
  :type Name: str
3106
- :param _WordWeights: 词权重数组,包含全部的热词和对应的权重。每个热词的长度不大于10个汉字或30个英文字符,权重为[1,11]之间整数,数组长度不大于1000
3117
+ :param _WordWeights: 词权重数组,包含全部的热词和对应的权重。每个热词的长度不大于10个汉字或30个英文字符,权重为[1,11]之间整数或100,数组长度不大于1000
3107
3118
  :type WordWeights: list of HotWord
3108
3119
  :param _WordWeightStr: 词权重文件(纯文本文件)的二进制base64编码,以行分隔,每行的格式为word|weight,即以英文符号|为分割,左边为词,右边为权重,如:你好|5。
3109
3120
  当用户传此参数(参数长度大于0),即以此参数解析词权重,WordWeights会被忽略
@@ -164,6 +164,29 @@ class CdbClient(AbstractClient):
164
164
  raise TencentCloudSDKException(type(e).__name__, str(e))
165
165
 
166
166
 
167
+ def CheckMigrateCluster(self, request):
168
+ """高可用实例一键迁移到集群版校验
169
+
170
+ :param request: Request instance for CheckMigrateCluster.
171
+ :type request: :class:`tencentcloud.cdb.v20170320.models.CheckMigrateClusterRequest`
172
+ :rtype: :class:`tencentcloud.cdb.v20170320.models.CheckMigrateClusterResponse`
173
+
174
+ """
175
+ try:
176
+ params = request._serialize()
177
+ headers = request.headers
178
+ body = self.call("CheckMigrateCluster", params, headers=headers)
179
+ response = json.loads(body)
180
+ model = models.CheckMigrateClusterResponse()
181
+ model._deserialize(response["Response"])
182
+ return model
183
+ except Exception as e:
184
+ if isinstance(e, TencentCloudSDKException):
185
+ raise
186
+ else:
187
+ raise TencentCloudSDKException(type(e).__name__, str(e))
188
+
189
+
167
190
  def CloseAuditService(self, request):
168
191
  """实例关闭审计服务
169
192
 
@@ -1402,6 +1425,29 @@ class CdbClient(AbstractClient):
1402
1425
  raise TencentCloudSDKException(type(e).__name__, str(e))
1403
1426
 
1404
1427
 
1428
+ def DescribeClusterInfo(self, request):
1429
+ """本接口(DescribeClusterInfo)用于查询集群版实例信息。
1430
+
1431
+ :param request: Request instance for DescribeClusterInfo.
1432
+ :type request: :class:`tencentcloud.cdb.v20170320.models.DescribeClusterInfoRequest`
1433
+ :rtype: :class:`tencentcloud.cdb.v20170320.models.DescribeClusterInfoResponse`
1434
+
1435
+ """
1436
+ try:
1437
+ params = request._serialize()
1438
+ headers = request.headers
1439
+ body = self.call("DescribeClusterInfo", params, headers=headers)
1440
+ response = json.loads(body)
1441
+ model = models.DescribeClusterInfoResponse()
1442
+ model._deserialize(response["Response"])
1443
+ return model
1444
+ except Exception as e:
1445
+ if isinstance(e, TencentCloudSDKException):
1446
+ raise
1447
+ else:
1448
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1449
+
1450
+
1405
1451
  def DescribeCpuExpandStrategy(self, request):
1406
1452
  """通过该 API 可以查询实例的 CPU 弹性扩容策略
1407
1453
 
@@ -575,6 +575,9 @@ RESOURCENOTFOUND_INSTANCENOTFUNDERROR = 'ResourceNotFound.InstanceNotFundError'
575
575
  # 资源不可用。
576
576
  RESOURCEUNAVAILABLE = 'ResourceUnavailable'
577
577
 
578
+ # 未授权操作。
579
+ UNAUTHORIZEDOPERATION = 'UnauthorizedOperation'
580
+
578
581
  # 认证失败,没有足够权限。
579
582
  UNAUTHORIZEDOPERATION_NOTENOUGHPRIVILEGES = 'UnauthorizedOperation.NotEnoughPrivileges'
580
583
 
@@ -322,6 +322,111 @@ class AddTimeWindowResponse(AbstractModel):
322
322
  self._RequestId = params.get("RequestId")
323
323
 
324
324
 
325
+ class AddressInfo(AbstractModel):
326
+ """实例地址信息
327
+
328
+ """
329
+
330
+ def __init__(self):
331
+ r"""
332
+ :param _ResourceId: 地址的资源id标识。
333
+ :type ResourceId: str
334
+ :param _UniqVpcId: 地址所在的vpc。
335
+ :type UniqVpcId: str
336
+ :param _UniqSubnetId: 地址所在的子网。
337
+ :type UniqSubnetId: str
338
+ :param _Vip: 地址的vip。
339
+ :type Vip: str
340
+ :param _VPort: 地址的端口。
341
+ :type VPort: int
342
+ :param _WanDomain: 外网地址域名。
343
+ :type WanDomain: str
344
+ :param _WanPort: 外网地址端口。
345
+ :type WanPort: int
346
+ """
347
+ self._ResourceId = None
348
+ self._UniqVpcId = None
349
+ self._UniqSubnetId = None
350
+ self._Vip = None
351
+ self._VPort = None
352
+ self._WanDomain = None
353
+ self._WanPort = None
354
+
355
+ @property
356
+ def ResourceId(self):
357
+ return self._ResourceId
358
+
359
+ @ResourceId.setter
360
+ def ResourceId(self, ResourceId):
361
+ self._ResourceId = ResourceId
362
+
363
+ @property
364
+ def UniqVpcId(self):
365
+ return self._UniqVpcId
366
+
367
+ @UniqVpcId.setter
368
+ def UniqVpcId(self, UniqVpcId):
369
+ self._UniqVpcId = UniqVpcId
370
+
371
+ @property
372
+ def UniqSubnetId(self):
373
+ return self._UniqSubnetId
374
+
375
+ @UniqSubnetId.setter
376
+ def UniqSubnetId(self, UniqSubnetId):
377
+ self._UniqSubnetId = UniqSubnetId
378
+
379
+ @property
380
+ def Vip(self):
381
+ return self._Vip
382
+
383
+ @Vip.setter
384
+ def Vip(self, Vip):
385
+ self._Vip = Vip
386
+
387
+ @property
388
+ def VPort(self):
389
+ return self._VPort
390
+
391
+ @VPort.setter
392
+ def VPort(self, VPort):
393
+ self._VPort = VPort
394
+
395
+ @property
396
+ def WanDomain(self):
397
+ return self._WanDomain
398
+
399
+ @WanDomain.setter
400
+ def WanDomain(self, WanDomain):
401
+ self._WanDomain = WanDomain
402
+
403
+ @property
404
+ def WanPort(self):
405
+ return self._WanPort
406
+
407
+ @WanPort.setter
408
+ def WanPort(self, WanPort):
409
+ self._WanPort = WanPort
410
+
411
+
412
+ def _deserialize(self, params):
413
+ self._ResourceId = params.get("ResourceId")
414
+ self._UniqVpcId = params.get("UniqVpcId")
415
+ self._UniqSubnetId = params.get("UniqSubnetId")
416
+ self._Vip = params.get("Vip")
417
+ self._VPort = params.get("VPort")
418
+ self._WanDomain = params.get("WanDomain")
419
+ self._WanPort = params.get("WanPort")
420
+ memeber_set = set(params.keys())
421
+ for name, value in vars(self).items():
422
+ property_name = name[1:]
423
+ if property_name in memeber_set:
424
+ memeber_set.remove(property_name)
425
+ if len(memeber_set) > 0:
426
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
427
+
428
+
429
+
325
430
  class AdjustCdbProxyAddressRequest(AbstractModel):
326
431
  """AdjustCdbProxyAddress请求参数结构体
327
432
 
@@ -3847,6 +3952,37 @@ class CdbZoneSellConf(AbstractModel):
3847
3952
 
3848
3953
 
3849
3954
 
3955
+ class CheckMigrateClusterRequest(AbstractModel):
3956
+ """CheckMigrateCluster请求参数结构体
3957
+
3958
+ """
3959
+
3960
+
3961
+ class CheckMigrateClusterResponse(AbstractModel):
3962
+ """CheckMigrateCluster返回参数结构体
3963
+
3964
+ """
3965
+
3966
+ def __init__(self):
3967
+ r"""
3968
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3969
+ :type RequestId: str
3970
+ """
3971
+ self._RequestId = None
3972
+
3973
+ @property
3974
+ def RequestId(self):
3975
+ return self._RequestId
3976
+
3977
+ @RequestId.setter
3978
+ def RequestId(self, RequestId):
3979
+ self._RequestId = RequestId
3980
+
3981
+
3982
+ def _deserialize(self, params):
3983
+ self._RequestId = params.get("RequestId")
3984
+
3985
+
3850
3986
  class CloneItem(AbstractModel):
3851
3987
  """克隆任务记录。
3852
3988
 
@@ -4268,6 +4404,88 @@ class CloseWanServiceResponse(AbstractModel):
4268
4404
  self._RequestId = params.get("RequestId")
4269
4405
 
4270
4406
 
4407
+ class ClusterNodeInfo(AbstractModel):
4408
+ """集群版实例节点信息
4409
+
4410
+ """
4411
+
4412
+ def __init__(self):
4413
+ r"""
4414
+ :param _NodeId: 节点id。
4415
+ :type NodeId: str
4416
+ :param _Role: 节点的角色。
4417
+ :type Role: str
4418
+ :param _Zone: 节点所在可用区。
4419
+ :type Zone: str
4420
+ :param _Weight: 节点的权重
4421
+ :type Weight: int
4422
+ :param _Status: 节点状态。
4423
+ 注意:此字段可能返回 null,表示取不到有效值。
4424
+ :type Status: str
4425
+ """
4426
+ self._NodeId = None
4427
+ self._Role = None
4428
+ self._Zone = None
4429
+ self._Weight = None
4430
+ self._Status = None
4431
+
4432
+ @property
4433
+ def NodeId(self):
4434
+ return self._NodeId
4435
+
4436
+ @NodeId.setter
4437
+ def NodeId(self, NodeId):
4438
+ self._NodeId = NodeId
4439
+
4440
+ @property
4441
+ def Role(self):
4442
+ return self._Role
4443
+
4444
+ @Role.setter
4445
+ def Role(self, Role):
4446
+ self._Role = Role
4447
+
4448
+ @property
4449
+ def Zone(self):
4450
+ return self._Zone
4451
+
4452
+ @Zone.setter
4453
+ def Zone(self, Zone):
4454
+ self._Zone = Zone
4455
+
4456
+ @property
4457
+ def Weight(self):
4458
+ return self._Weight
4459
+
4460
+ @Weight.setter
4461
+ def Weight(self, Weight):
4462
+ self._Weight = Weight
4463
+
4464
+ @property
4465
+ def Status(self):
4466
+ return self._Status
4467
+
4468
+ @Status.setter
4469
+ def Status(self, Status):
4470
+ self._Status = Status
4471
+
4472
+
4473
+ def _deserialize(self, params):
4474
+ self._NodeId = params.get("NodeId")
4475
+ self._Role = params.get("Role")
4476
+ self._Zone = params.get("Zone")
4477
+ self._Weight = params.get("Weight")
4478
+ self._Status = params.get("Status")
4479
+ memeber_set = set(params.keys())
4480
+ for name, value in vars(self).items():
4481
+ property_name = name[1:]
4482
+ if property_name in memeber_set:
4483
+ memeber_set.remove(property_name)
4484
+ if len(memeber_set) > 0:
4485
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
4486
+
4487
+
4488
+
4271
4489
  class ColumnPrivilege(AbstractModel):
4272
4490
  """列权限信息
4273
4491
 
@@ -11646,6 +11864,148 @@ class DescribeCloneListResponse(AbstractModel):
11646
11864
  self._RequestId = params.get("RequestId")
11647
11865
 
11648
11866
 
11867
+ class DescribeClusterInfoRequest(AbstractModel):
11868
+ """DescribeClusterInfo请求参数结构体
11869
+
11870
+ """
11871
+
11872
+ def __init__(self):
11873
+ r"""
11874
+ :param _InstanceId: 实例id。
11875
+ :type InstanceId: str
11876
+ """
11877
+ self._InstanceId = None
11878
+
11879
+ @property
11880
+ def InstanceId(self):
11881
+ return self._InstanceId
11882
+
11883
+ @InstanceId.setter
11884
+ def InstanceId(self, InstanceId):
11885
+ self._InstanceId = InstanceId
11886
+
11887
+
11888
+ def _deserialize(self, params):
11889
+ self._InstanceId = params.get("InstanceId")
11890
+ memeber_set = set(params.keys())
11891
+ for name, value in vars(self).items():
11892
+ property_name = name[1:]
11893
+ if property_name in memeber_set:
11894
+ memeber_set.remove(property_name)
11895
+ if len(memeber_set) > 0:
11896
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
11897
+
11898
+
11899
+
11900
+ class DescribeClusterInfoResponse(AbstractModel):
11901
+ """DescribeClusterInfo返回参数结构体
11902
+
11903
+ """
11904
+
11905
+ def __init__(self):
11906
+ r"""
11907
+ :param _ClusterName: 实例名称。
11908
+ :type ClusterName: str
11909
+ :param _ReadWriteAddress: 集群读写地址信息。
11910
+ :type ReadWriteAddress: :class:`tencentcloud.cdb.v20170320.models.AddressInfo`
11911
+ :param _ReadOnlyAddress: 集群只读地址信息。
11912
+ :type ReadOnlyAddress: list of AddressInfo
11913
+ :param _NodeList: 集群节点列表信息。
11914
+ :type NodeList: list of ClusterNodeInfo
11915
+ :param _ReadonlyLimit: 只读空间保护阈值,单位GB
11916
+ :type ReadonlyLimit: int
11917
+ :param _NodeCount: 实例节点数。
11918
+ :type NodeCount: int
11919
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
11920
+ :type RequestId: str
11921
+ """
11922
+ self._ClusterName = None
11923
+ self._ReadWriteAddress = None
11924
+ self._ReadOnlyAddress = None
11925
+ self._NodeList = None
11926
+ self._ReadonlyLimit = None
11927
+ self._NodeCount = None
11928
+ self._RequestId = None
11929
+
11930
+ @property
11931
+ def ClusterName(self):
11932
+ return self._ClusterName
11933
+
11934
+ @ClusterName.setter
11935
+ def ClusterName(self, ClusterName):
11936
+ self._ClusterName = ClusterName
11937
+
11938
+ @property
11939
+ def ReadWriteAddress(self):
11940
+ return self._ReadWriteAddress
11941
+
11942
+ @ReadWriteAddress.setter
11943
+ def ReadWriteAddress(self, ReadWriteAddress):
11944
+ self._ReadWriteAddress = ReadWriteAddress
11945
+
11946
+ @property
11947
+ def ReadOnlyAddress(self):
11948
+ return self._ReadOnlyAddress
11949
+
11950
+ @ReadOnlyAddress.setter
11951
+ def ReadOnlyAddress(self, ReadOnlyAddress):
11952
+ self._ReadOnlyAddress = ReadOnlyAddress
11953
+
11954
+ @property
11955
+ def NodeList(self):
11956
+ return self._NodeList
11957
+
11958
+ @NodeList.setter
11959
+ def NodeList(self, NodeList):
11960
+ self._NodeList = NodeList
11961
+
11962
+ @property
11963
+ def ReadonlyLimit(self):
11964
+ return self._ReadonlyLimit
11965
+
11966
+ @ReadonlyLimit.setter
11967
+ def ReadonlyLimit(self, ReadonlyLimit):
11968
+ self._ReadonlyLimit = ReadonlyLimit
11969
+
11970
+ @property
11971
+ def NodeCount(self):
11972
+ return self._NodeCount
11973
+
11974
+ @NodeCount.setter
11975
+ def NodeCount(self, NodeCount):
11976
+ self._NodeCount = NodeCount
11977
+
11978
+ @property
11979
+ def RequestId(self):
11980
+ return self._RequestId
11981
+
11982
+ @RequestId.setter
11983
+ def RequestId(self, RequestId):
11984
+ self._RequestId = RequestId
11985
+
11986
+
11987
+ def _deserialize(self, params):
11988
+ self._ClusterName = params.get("ClusterName")
11989
+ if params.get("ReadWriteAddress") is not None:
11990
+ self._ReadWriteAddress = AddressInfo()
11991
+ self._ReadWriteAddress._deserialize(params.get("ReadWriteAddress"))
11992
+ if params.get("ReadOnlyAddress") is not None:
11993
+ self._ReadOnlyAddress = []
11994
+ for item in params.get("ReadOnlyAddress"):
11995
+ obj = AddressInfo()
11996
+ obj._deserialize(item)
11997
+ self._ReadOnlyAddress.append(obj)
11998
+ if params.get("NodeList") is not None:
11999
+ self._NodeList = []
12000
+ for item in params.get("NodeList"):
12001
+ obj = ClusterNodeInfo()
12002
+ obj._deserialize(item)
12003
+ self._NodeList.append(obj)
12004
+ self._ReadonlyLimit = params.get("ReadonlyLimit")
12005
+ self._NodeCount = params.get("NodeCount")
12006
+ self._RequestId = params.get("RequestId")
12007
+
12008
+
11649
12009
  class DescribeCpuExpandStrategyRequest(AbstractModel):
11650
12010
  """DescribeCpuExpandStrategy请求参数结构体
11651
12011
 
@@ -16057,13 +16057,16 @@ class WhereFilter(AbstractModel):
16057
16057
  def __init__(self):
16058
16058
  r"""
16059
16059
  :param _Name: 过滤的项
16060
+ 注意:此字段可能返回 null,表示取不到有效值。
16060
16061
  :type Name: str
16061
16062
  :param _Values: 过滤的值
16063
+ 注意:此字段可能返回 null,表示取不到有效值。
16062
16064
  :type Values: list of str
16063
16065
  :param _OperatorType: 中台定义:
16064
16066
  1等于 2大于 3小于 4大于等于 5小于等于 6不等于 9模糊匹配 13非模糊匹配 14按位与
16065
16067
  精确匹配填 7 模糊匹配填9
16066
16068
 
16069
+ 注意:此字段可能返回 null,表示取不到有效值。
16067
16070
  :type OperatorType: int
16068
16071
  """
16069
16072
  self._Name = None