tencentcloud-sdk-python 3.0.1127__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.
- tencentcloud/__init__.py +1 -1
- tencentcloud/aiart/v20221229/aiart_client.py +4 -11
- tencentcloud/aiart/v20221229/models.py +6 -5
- tencentcloud/antiddos/v20200309/models.py +13 -0
- tencentcloud/cdb/v20170320/cdb_client.py +46 -0
- tencentcloud/cdb/v20170320/errorcodes.py +3 -0
- tencentcloud/cdb/v20170320/models.py +360 -0
- tencentcloud/es/v20180416/models.py +12 -12
- tencentcloud/faceid/v20180301/faceid_client.py +1 -1
- tencentcloud/faceid/v20180301/models.py +12 -0
- tencentcloud/hunyuan/v20230901/hunyuan_client.py +8 -8
- tencentcloud/hunyuan/v20230901/models.py +121 -30
- tencentcloud/lke/__init__.py +0 -0
- tencentcloud/lke/v20231130/__init__.py +0 -0
- tencentcloud/lke/v20231130/errorcodes.py +30 -0
- tencentcloud/lke/v20231130/lke_client.py +1751 -0
- tencentcloud/lke/v20231130/models.py +13358 -0
- tencentcloud/mna/v20210119/errorcodes.py +12 -0
- tencentcloud/mna/v20210119/models.py +301 -5
- tencentcloud/redis/v20180412/models.py +1 -1
- tencentcloud/sms/v20210111/models.py +1 -0
- tencentcloud/tione/v20211111/models.py +48 -1
- tencentcloud/trtc/v20190722/models.py +72 -1
- tencentcloud/wedata/v20210820/models.py +345 -2088
- tencentcloud/wedata/v20210820/wedata_client.py +0 -253
- {tencentcloud_sdk_python-3.0.1127.dist-info → tencentcloud_sdk_python-3.0.1128.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1127.dist-info → tencentcloud_sdk_python-3.0.1128.dist-info}/RECORD +30 -25
- {tencentcloud_sdk_python-3.0.1127.dist-info → tencentcloud_sdk_python-3.0.1128.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1127.dist-info → tencentcloud_sdk_python-3.0.1128.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1127.dist-info → tencentcloud_sdk_python-3.0.1128.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
|
@@ -27,12 +27,8 @@ class AiartClient(AbstractClient):
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
def ImageToImage(self, request):
|
|
30
|
-
"""
|
|
31
|
-
|
|
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
|
-
|
|
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
|
-
图片限制:单边分辨率小于
|
|
31
|
+
图片限制:单边分辨率小于5000,转成 Base64 字符串后小于 8MB。
|
|
32
32
|
:type InputImage: str
|
|
33
33
|
:param _InputUrl: 输入图 Url。
|
|
34
34
|
算法将根据输入的图片,结合文本描述智能生成与之相关的图像。
|
|
35
35
|
Base64 和 Url 必须提供一个,如果都提供以 Base64 为准。
|
|
36
|
-
图片限制:单边分辨率小于
|
|
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
|
|
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
|
|
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:]
|
|
@@ -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
|
|
|
@@ -1837,14 +1837,14 @@ class CreateServerlessInstanceRequest(AbstractModel):
|
|
|
1837
1837
|
|
|
1838
1838
|
def __init__(self):
|
|
1839
1839
|
r"""
|
|
1840
|
+
:param _IndexName: 索引名,需以-AppId结尾
|
|
1841
|
+
:type IndexName: str
|
|
1840
1842
|
:param _Zone: 可用区
|
|
1841
1843
|
:type Zone: str
|
|
1842
1844
|
:param _VpcId: 私有网络ID
|
|
1843
1845
|
:type VpcId: str
|
|
1844
1846
|
:param _SubnetId: 子网ID
|
|
1845
1847
|
:type SubnetId: str
|
|
1846
|
-
:param _IndexName: 索引名,需以-AppId结尾
|
|
1847
|
-
:type IndexName: str
|
|
1848
1848
|
:param _IndexMetaJson: 创建的索引元数据JSON,如mappings、settings
|
|
1849
1849
|
:type IndexMetaJson: str
|
|
1850
1850
|
:param _SpaceId: 创建索引的空间ID
|
|
@@ -1862,10 +1862,10 @@ class CreateServerlessInstanceRequest(AbstractModel):
|
|
|
1862
1862
|
:param _KibanaWhiteIpList: kibana公网白名单
|
|
1863
1863
|
:type KibanaWhiteIpList: list of str
|
|
1864
1864
|
"""
|
|
1865
|
+
self._IndexName = None
|
|
1865
1866
|
self._Zone = None
|
|
1866
1867
|
self._VpcId = None
|
|
1867
1868
|
self._SubnetId = None
|
|
1868
|
-
self._IndexName = None
|
|
1869
1869
|
self._IndexMetaJson = None
|
|
1870
1870
|
self._SpaceId = None
|
|
1871
1871
|
self._Username = None
|
|
@@ -1875,6 +1875,14 @@ class CreateServerlessInstanceRequest(AbstractModel):
|
|
|
1875
1875
|
self._TagList = None
|
|
1876
1876
|
self._KibanaWhiteIpList = None
|
|
1877
1877
|
|
|
1878
|
+
@property
|
|
1879
|
+
def IndexName(self):
|
|
1880
|
+
return self._IndexName
|
|
1881
|
+
|
|
1882
|
+
@IndexName.setter
|
|
1883
|
+
def IndexName(self, IndexName):
|
|
1884
|
+
self._IndexName = IndexName
|
|
1885
|
+
|
|
1878
1886
|
@property
|
|
1879
1887
|
def Zone(self):
|
|
1880
1888
|
return self._Zone
|
|
@@ -1899,14 +1907,6 @@ class CreateServerlessInstanceRequest(AbstractModel):
|
|
|
1899
1907
|
def SubnetId(self, SubnetId):
|
|
1900
1908
|
self._SubnetId = SubnetId
|
|
1901
1909
|
|
|
1902
|
-
@property
|
|
1903
|
-
def IndexName(self):
|
|
1904
|
-
return self._IndexName
|
|
1905
|
-
|
|
1906
|
-
@IndexName.setter
|
|
1907
|
-
def IndexName(self, IndexName):
|
|
1908
|
-
self._IndexName = IndexName
|
|
1909
|
-
|
|
1910
1910
|
@property
|
|
1911
1911
|
def IndexMetaJson(self):
|
|
1912
1912
|
return self._IndexMetaJson
|
|
@@ -1973,10 +1973,10 @@ class CreateServerlessInstanceRequest(AbstractModel):
|
|
|
1973
1973
|
|
|
1974
1974
|
|
|
1975
1975
|
def _deserialize(self, params):
|
|
1976
|
+
self._IndexName = params.get("IndexName")
|
|
1976
1977
|
self._Zone = params.get("Zone")
|
|
1977
1978
|
self._VpcId = params.get("VpcId")
|
|
1978
1979
|
self._SubnetId = params.get("SubnetId")
|
|
1979
|
-
self._IndexName = params.get("IndexName")
|
|
1980
1980
|
self._IndexMetaJson = params.get("IndexMetaJson")
|
|
1981
1981
|
self._SpaceId = params.get("SpaceId")
|
|
1982
1982
|
self._Username = params.get("Username")
|
|
@@ -579,7 +579,7 @@ class FaceidClient(AbstractClient):
|
|
|
579
579
|
|
|
580
580
|
|
|
581
581
|
def ImageRecognition(self, request):
|
|
582
|
-
"""
|
|
582
|
+
"""传入照片和身份信息,判断该照片与权威库的证件照是否属于同一个人(该接口已停止接入,新客户请使用<a href="https://cloud.tencent.com/document/product/1007/102203">照片人脸核身(V2.0)</a>接口)。
|
|
583
583
|
|
|
584
584
|
:param request: Request instance for ImageRecognition.
|
|
585
585
|
:type request: :class:`tencentcloud.faceid.v20180301.models.ImageRecognitionRequest`
|
|
@@ -7784,9 +7784,12 @@ class RuleIdConfig(AbstractModel):
|
|
|
7784
7784
|
0:问答模式,DetectAuth接口需要传入IntentionQuestions字段;
|
|
7785
7785
|
1:点头模式,DetectAuth接口需要传入IntentionActions字段;
|
|
7786
7786
|
:type IntentionType: int
|
|
7787
|
+
:param _MouthOpenRecognition: 用户语音回答过程中是否开启张嘴识别检测,默认不开启,仅在意愿核身问答模式中使用。
|
|
7788
|
+
:type MouthOpenRecognition: bool
|
|
7787
7789
|
"""
|
|
7788
7790
|
self._IntentionRecognition = None
|
|
7789
7791
|
self._IntentionType = None
|
|
7792
|
+
self._MouthOpenRecognition = None
|
|
7790
7793
|
|
|
7791
7794
|
@property
|
|
7792
7795
|
def IntentionRecognition(self):
|
|
@@ -7804,10 +7807,19 @@ class RuleIdConfig(AbstractModel):
|
|
|
7804
7807
|
def IntentionType(self, IntentionType):
|
|
7805
7808
|
self._IntentionType = IntentionType
|
|
7806
7809
|
|
|
7810
|
+
@property
|
|
7811
|
+
def MouthOpenRecognition(self):
|
|
7812
|
+
return self._MouthOpenRecognition
|
|
7813
|
+
|
|
7814
|
+
@MouthOpenRecognition.setter
|
|
7815
|
+
def MouthOpenRecognition(self, MouthOpenRecognition):
|
|
7816
|
+
self._MouthOpenRecognition = MouthOpenRecognition
|
|
7817
|
+
|
|
7807
7818
|
|
|
7808
7819
|
def _deserialize(self, params):
|
|
7809
7820
|
self._IntentionRecognition = params.get("IntentionRecognition")
|
|
7810
7821
|
self._IntentionType = params.get("IntentionType")
|
|
7822
|
+
self._MouthOpenRecognition = params.get("MouthOpenRecognition")
|
|
7811
7823
|
memeber_set = set(params.keys())
|
|
7812
7824
|
for name, value in vars(self).items():
|
|
7813
7825
|
property_name = name[1:]
|