tencentcloud-sdk-python 3.0.1115__py2.py3-none-any.whl → 3.0.1116__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 +52 -0
- tencentcloud/aiart/v20221229/errorcodes.py +6 -0
- tencentcloud/aiart/v20221229/models.py +267 -0
- tencentcloud/cdb/v20170320/models.py +91 -0
- tencentcloud/ckafka/v20190819/ckafka_client.py +1 -1
- tencentcloud/ckafka/v20190819/models.py +1 -1
- tencentcloud/ess/v20201111/ess_client.py +1 -1
- tencentcloud/ess/v20201111/models.py +221 -14
- tencentcloud/essbasic/v20210526/models.py +219 -12
- tencentcloud/faceid/v20180301/faceid_client.py +46 -0
- tencentcloud/faceid/v20180301/models.py +218 -0
- tencentcloud/oceanus/v20190422/models.py +1 -1
- tencentcloud/wedata/v20210820/models.py +40 -0
- {tencentcloud_sdk_python-3.0.1115.dist-info → tencentcloud_sdk_python-3.0.1116.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1115.dist-info → tencentcloud_sdk_python-3.0.1116.dist-info}/RECORD +19 -19
- {tencentcloud_sdk_python-3.0.1115.dist-info → tencentcloud_sdk_python-3.0.1116.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1115.dist-info → tencentcloud_sdk_python-3.0.1116.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1115.dist-info → tencentcloud_sdk_python-3.0.1116.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
|
@@ -54,6 +54,58 @@ class AiartClient(AbstractClient):
|
|
|
54
54
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
55
55
|
|
|
56
56
|
|
|
57
|
+
def QueryTextToImageProJob(self, request):
|
|
58
|
+
"""文生图(高级版)接口基于高级版文生图大模型,将根据输入的文本描述,智能生成与之相关的结果图。分为提交任务和查询任务2个接口。
|
|
59
|
+
提交任务:输入文本等,提交一个文生图(高级版)异步任务,获得任务 ID。
|
|
60
|
+
查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得生成图像结果。
|
|
61
|
+
并发任务数(并发)说明:并发任务数指能同时处理的任务数量。文生图(高级版)默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
|
|
62
|
+
|
|
63
|
+
:param request: Request instance for QueryTextToImageProJob.
|
|
64
|
+
:type request: :class:`tencentcloud.aiart.v20221229.models.QueryTextToImageProJobRequest`
|
|
65
|
+
:rtype: :class:`tencentcloud.aiart.v20221229.models.QueryTextToImageProJobResponse`
|
|
66
|
+
|
|
67
|
+
"""
|
|
68
|
+
try:
|
|
69
|
+
params = request._serialize()
|
|
70
|
+
headers = request.headers
|
|
71
|
+
body = self.call("QueryTextToImageProJob", params, headers=headers)
|
|
72
|
+
response = json.loads(body)
|
|
73
|
+
model = models.QueryTextToImageProJobResponse()
|
|
74
|
+
model._deserialize(response["Response"])
|
|
75
|
+
return model
|
|
76
|
+
except Exception as e:
|
|
77
|
+
if isinstance(e, TencentCloudSDKException):
|
|
78
|
+
raise
|
|
79
|
+
else:
|
|
80
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
def SubmitTextToImageProJob(self, request):
|
|
84
|
+
"""文生图(高级版)接口基于高级版文生图大模型,将根据输入的文本描述,智能生成与之相关的结果图。分为提交任务和查询任务2个接口。
|
|
85
|
+
提交任务:输入文本等,提交一个文生图(高级版)异步任务,获得任务 ID。
|
|
86
|
+
查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得生成图像结果。
|
|
87
|
+
并发任务数(并发)说明:并发任务数指能同时处理的任务数量。文生图(高级版)默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
|
|
88
|
+
|
|
89
|
+
:param request: Request instance for SubmitTextToImageProJob.
|
|
90
|
+
:type request: :class:`tencentcloud.aiart.v20221229.models.SubmitTextToImageProJobRequest`
|
|
91
|
+
:rtype: :class:`tencentcloud.aiart.v20221229.models.SubmitTextToImageProJobResponse`
|
|
92
|
+
|
|
93
|
+
"""
|
|
94
|
+
try:
|
|
95
|
+
params = request._serialize()
|
|
96
|
+
headers = request.headers
|
|
97
|
+
body = self.call("SubmitTextToImageProJob", params, headers=headers)
|
|
98
|
+
response = json.loads(body)
|
|
99
|
+
model = models.SubmitTextToImageProJobResponse()
|
|
100
|
+
model._deserialize(response["Response"])
|
|
101
|
+
return model
|
|
102
|
+
except Exception as e:
|
|
103
|
+
if isinstance(e, TencentCloudSDKException):
|
|
104
|
+
raise
|
|
105
|
+
else:
|
|
106
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
107
|
+
|
|
108
|
+
|
|
57
109
|
def TextToImage(self, request):
|
|
58
110
|
"""智能文生图接口将根据输入的描述文本,智能生成与之相关的结果图。
|
|
59
111
|
输入:256个字符以内的描述性文本,推荐使用中文。
|
|
@@ -38,6 +38,9 @@ FAILEDOPERATION_IMAGESIZEEXCEED = 'FailedOperation.ImageSizeExceed'
|
|
|
38
38
|
# 服务内部错误,请稍后重试。
|
|
39
39
|
FAILEDOPERATION_INNERERROR = 'FailedOperation.InnerError'
|
|
40
40
|
|
|
41
|
+
# 任务不存在。
|
|
42
|
+
FAILEDOPERATION_JOBNOTEXIST = 'FailedOperation.JobNotExist'
|
|
43
|
+
|
|
41
44
|
# 整个请求体太大(通常主要是图片)。
|
|
42
45
|
FAILEDOPERATION_REQUESTENTITYTOOLARGE = 'FailedOperation.RequestEntityTooLarge'
|
|
43
46
|
|
|
@@ -59,6 +62,9 @@ INVALIDPARAMETER_INVALIDPARAMETER = 'InvalidParameter.InvalidParameter'
|
|
|
59
62
|
# 图片为空。
|
|
60
63
|
INVALIDPARAMETERVALUE_IMAGEEMPTY = 'InvalidParameterValue.ImageEmpty'
|
|
61
64
|
|
|
65
|
+
# 当前引擎不支持自定义水印。
|
|
66
|
+
INVALIDPARAMETERVALUE_LOGOPARAMERR = 'InvalidParameterValue.LogoParamErr'
|
|
67
|
+
|
|
62
68
|
# 参数字段或者值有误
|
|
63
69
|
INVALIDPARAMETERVALUE_PARAMETERVALUEERROR = 'InvalidParameterValue.ParameterValueError'
|
|
64
70
|
|
|
@@ -350,6 +350,143 @@ class LogoRect(AbstractModel):
|
|
|
350
350
|
|
|
351
351
|
|
|
352
352
|
|
|
353
|
+
class QueryTextToImageProJobRequest(AbstractModel):
|
|
354
|
+
"""QueryTextToImageProJob请求参数结构体
|
|
355
|
+
|
|
356
|
+
"""
|
|
357
|
+
|
|
358
|
+
def __init__(self):
|
|
359
|
+
r"""
|
|
360
|
+
:param _JobId: 任务 ID。
|
|
361
|
+
:type JobId: str
|
|
362
|
+
"""
|
|
363
|
+
self._JobId = None
|
|
364
|
+
|
|
365
|
+
@property
|
|
366
|
+
def JobId(self):
|
|
367
|
+
return self._JobId
|
|
368
|
+
|
|
369
|
+
@JobId.setter
|
|
370
|
+
def JobId(self, JobId):
|
|
371
|
+
self._JobId = JobId
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
def _deserialize(self, params):
|
|
375
|
+
self._JobId = params.get("JobId")
|
|
376
|
+
memeber_set = set(params.keys())
|
|
377
|
+
for name, value in vars(self).items():
|
|
378
|
+
property_name = name[1:]
|
|
379
|
+
if property_name in memeber_set:
|
|
380
|
+
memeber_set.remove(property_name)
|
|
381
|
+
if len(memeber_set) > 0:
|
|
382
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
class QueryTextToImageProJobResponse(AbstractModel):
|
|
387
|
+
"""QueryTextToImageProJob返回参数结构体
|
|
388
|
+
|
|
389
|
+
"""
|
|
390
|
+
|
|
391
|
+
def __init__(self):
|
|
392
|
+
r"""
|
|
393
|
+
:param _JobStatusCode: 当前任务状态码:
|
|
394
|
+
1:排队中、3:处理中、5:处理失败、7:处理完成。
|
|
395
|
+
|
|
396
|
+
:type JobStatusCode: str
|
|
397
|
+
:param _JobStatusMsg: 当前任务状态:排队中、处理中、处理失败或者处理完成。
|
|
398
|
+
|
|
399
|
+
:type JobStatusMsg: str
|
|
400
|
+
:param _JobErrorCode: 任务处理失败错误码。
|
|
401
|
+
|
|
402
|
+
:type JobErrorCode: str
|
|
403
|
+
:param _JobErrorMsg: 任务处理失败错误信息。
|
|
404
|
+
|
|
405
|
+
:type JobErrorMsg: str
|
|
406
|
+
:param _ResultImage: 生成图 URL 列表,有效期1小时,请及时保存。
|
|
407
|
+
|
|
408
|
+
:type ResultImage: list of str
|
|
409
|
+
:param _ResultDetails: 结果 detail 数组,Success 代表成功。
|
|
410
|
+
|
|
411
|
+
:type ResultDetails: list of str
|
|
412
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
413
|
+
:type RequestId: str
|
|
414
|
+
"""
|
|
415
|
+
self._JobStatusCode = None
|
|
416
|
+
self._JobStatusMsg = None
|
|
417
|
+
self._JobErrorCode = None
|
|
418
|
+
self._JobErrorMsg = None
|
|
419
|
+
self._ResultImage = None
|
|
420
|
+
self._ResultDetails = None
|
|
421
|
+
self._RequestId = None
|
|
422
|
+
|
|
423
|
+
@property
|
|
424
|
+
def JobStatusCode(self):
|
|
425
|
+
return self._JobStatusCode
|
|
426
|
+
|
|
427
|
+
@JobStatusCode.setter
|
|
428
|
+
def JobStatusCode(self, JobStatusCode):
|
|
429
|
+
self._JobStatusCode = JobStatusCode
|
|
430
|
+
|
|
431
|
+
@property
|
|
432
|
+
def JobStatusMsg(self):
|
|
433
|
+
return self._JobStatusMsg
|
|
434
|
+
|
|
435
|
+
@JobStatusMsg.setter
|
|
436
|
+
def JobStatusMsg(self, JobStatusMsg):
|
|
437
|
+
self._JobStatusMsg = JobStatusMsg
|
|
438
|
+
|
|
439
|
+
@property
|
|
440
|
+
def JobErrorCode(self):
|
|
441
|
+
return self._JobErrorCode
|
|
442
|
+
|
|
443
|
+
@JobErrorCode.setter
|
|
444
|
+
def JobErrorCode(self, JobErrorCode):
|
|
445
|
+
self._JobErrorCode = JobErrorCode
|
|
446
|
+
|
|
447
|
+
@property
|
|
448
|
+
def JobErrorMsg(self):
|
|
449
|
+
return self._JobErrorMsg
|
|
450
|
+
|
|
451
|
+
@JobErrorMsg.setter
|
|
452
|
+
def JobErrorMsg(self, JobErrorMsg):
|
|
453
|
+
self._JobErrorMsg = JobErrorMsg
|
|
454
|
+
|
|
455
|
+
@property
|
|
456
|
+
def ResultImage(self):
|
|
457
|
+
return self._ResultImage
|
|
458
|
+
|
|
459
|
+
@ResultImage.setter
|
|
460
|
+
def ResultImage(self, ResultImage):
|
|
461
|
+
self._ResultImage = ResultImage
|
|
462
|
+
|
|
463
|
+
@property
|
|
464
|
+
def ResultDetails(self):
|
|
465
|
+
return self._ResultDetails
|
|
466
|
+
|
|
467
|
+
@ResultDetails.setter
|
|
468
|
+
def ResultDetails(self, ResultDetails):
|
|
469
|
+
self._ResultDetails = ResultDetails
|
|
470
|
+
|
|
471
|
+
@property
|
|
472
|
+
def RequestId(self):
|
|
473
|
+
return self._RequestId
|
|
474
|
+
|
|
475
|
+
@RequestId.setter
|
|
476
|
+
def RequestId(self, RequestId):
|
|
477
|
+
self._RequestId = RequestId
|
|
478
|
+
|
|
479
|
+
|
|
480
|
+
def _deserialize(self, params):
|
|
481
|
+
self._JobStatusCode = params.get("JobStatusCode")
|
|
482
|
+
self._JobStatusMsg = params.get("JobStatusMsg")
|
|
483
|
+
self._JobErrorCode = params.get("JobErrorCode")
|
|
484
|
+
self._JobErrorMsg = params.get("JobErrorMsg")
|
|
485
|
+
self._ResultImage = params.get("ResultImage")
|
|
486
|
+
self._ResultDetails = params.get("ResultDetails")
|
|
487
|
+
self._RequestId = params.get("RequestId")
|
|
488
|
+
|
|
489
|
+
|
|
353
490
|
class ResultConfig(AbstractModel):
|
|
354
491
|
"""返回结果配置
|
|
355
492
|
|
|
@@ -387,6 +524,136 @@ class ResultConfig(AbstractModel):
|
|
|
387
524
|
|
|
388
525
|
|
|
389
526
|
|
|
527
|
+
class SubmitTextToImageProJobRequest(AbstractModel):
|
|
528
|
+
"""SubmitTextToImageProJob请求参数结构体
|
|
529
|
+
|
|
530
|
+
"""
|
|
531
|
+
|
|
532
|
+
def __init__(self):
|
|
533
|
+
r"""
|
|
534
|
+
:param _Prompt: 文本描述。
|
|
535
|
+
算法将根据输入的文本智能生成与之相关的图像。
|
|
536
|
+
不能为空,推荐使用中文。最多可传100个 utf-8 字符。
|
|
537
|
+
:type Prompt: str
|
|
538
|
+
:param _Style: 绘画风格。
|
|
539
|
+
请在 [文生图(高级版)风格列表](https://cloud.tencent.com/document/product/1668/104567) 中选择期望的风格,传入风格编号。
|
|
540
|
+
不传默认不指定风格。
|
|
541
|
+
:type Style: str
|
|
542
|
+
:param _Resolution: 生成图分辨率。
|
|
543
|
+
支持生成以下分辨率的图片: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),不传默认使用1024:1024。
|
|
544
|
+
:type Resolution: str
|
|
545
|
+
:param _LogoAdd: 为生成结果图添加显式水印标识的开关,默认为1。
|
|
546
|
+
1:添加。
|
|
547
|
+
0:不添加。
|
|
548
|
+
其他数值:默认按1处理。
|
|
549
|
+
建议您使用显著标识来提示结果图使用了 AI 绘画技术,是 AI 生成的图片。
|
|
550
|
+
:type LogoAdd: int
|
|
551
|
+
:param _Engine: 文生图引擎,默认使用engine1。
|
|
552
|
+
取值:
|
|
553
|
+
engine1
|
|
554
|
+
engine2
|
|
555
|
+
:type Engine: str
|
|
556
|
+
"""
|
|
557
|
+
self._Prompt = None
|
|
558
|
+
self._Style = None
|
|
559
|
+
self._Resolution = None
|
|
560
|
+
self._LogoAdd = None
|
|
561
|
+
self._Engine = None
|
|
562
|
+
|
|
563
|
+
@property
|
|
564
|
+
def Prompt(self):
|
|
565
|
+
return self._Prompt
|
|
566
|
+
|
|
567
|
+
@Prompt.setter
|
|
568
|
+
def Prompt(self, Prompt):
|
|
569
|
+
self._Prompt = Prompt
|
|
570
|
+
|
|
571
|
+
@property
|
|
572
|
+
def Style(self):
|
|
573
|
+
return self._Style
|
|
574
|
+
|
|
575
|
+
@Style.setter
|
|
576
|
+
def Style(self, Style):
|
|
577
|
+
self._Style = Style
|
|
578
|
+
|
|
579
|
+
@property
|
|
580
|
+
def Resolution(self):
|
|
581
|
+
return self._Resolution
|
|
582
|
+
|
|
583
|
+
@Resolution.setter
|
|
584
|
+
def Resolution(self, Resolution):
|
|
585
|
+
self._Resolution = Resolution
|
|
586
|
+
|
|
587
|
+
@property
|
|
588
|
+
def LogoAdd(self):
|
|
589
|
+
return self._LogoAdd
|
|
590
|
+
|
|
591
|
+
@LogoAdd.setter
|
|
592
|
+
def LogoAdd(self, LogoAdd):
|
|
593
|
+
self._LogoAdd = LogoAdd
|
|
594
|
+
|
|
595
|
+
@property
|
|
596
|
+
def Engine(self):
|
|
597
|
+
return self._Engine
|
|
598
|
+
|
|
599
|
+
@Engine.setter
|
|
600
|
+
def Engine(self, Engine):
|
|
601
|
+
self._Engine = Engine
|
|
602
|
+
|
|
603
|
+
|
|
604
|
+
def _deserialize(self, params):
|
|
605
|
+
self._Prompt = params.get("Prompt")
|
|
606
|
+
self._Style = params.get("Style")
|
|
607
|
+
self._Resolution = params.get("Resolution")
|
|
608
|
+
self._LogoAdd = params.get("LogoAdd")
|
|
609
|
+
self._Engine = params.get("Engine")
|
|
610
|
+
memeber_set = set(params.keys())
|
|
611
|
+
for name, value in vars(self).items():
|
|
612
|
+
property_name = name[1:]
|
|
613
|
+
if property_name in memeber_set:
|
|
614
|
+
memeber_set.remove(property_name)
|
|
615
|
+
if len(memeber_set) > 0:
|
|
616
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
617
|
+
|
|
618
|
+
|
|
619
|
+
|
|
620
|
+
class SubmitTextToImageProJobResponse(AbstractModel):
|
|
621
|
+
"""SubmitTextToImageProJob返回参数结构体
|
|
622
|
+
|
|
623
|
+
"""
|
|
624
|
+
|
|
625
|
+
def __init__(self):
|
|
626
|
+
r"""
|
|
627
|
+
:param _JobId: 任务 ID。
|
|
628
|
+
:type JobId: str
|
|
629
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
630
|
+
:type RequestId: str
|
|
631
|
+
"""
|
|
632
|
+
self._JobId = None
|
|
633
|
+
self._RequestId = None
|
|
634
|
+
|
|
635
|
+
@property
|
|
636
|
+
def JobId(self):
|
|
637
|
+
return self._JobId
|
|
638
|
+
|
|
639
|
+
@JobId.setter
|
|
640
|
+
def JobId(self, JobId):
|
|
641
|
+
self._JobId = JobId
|
|
642
|
+
|
|
643
|
+
@property
|
|
644
|
+
def RequestId(self):
|
|
645
|
+
return self._RequestId
|
|
646
|
+
|
|
647
|
+
@RequestId.setter
|
|
648
|
+
def RequestId(self, RequestId):
|
|
649
|
+
self._RequestId = RequestId
|
|
650
|
+
|
|
651
|
+
|
|
652
|
+
def _deserialize(self, params):
|
|
653
|
+
self._JobId = params.get("JobId")
|
|
654
|
+
self._RequestId = params.get("RequestId")
|
|
655
|
+
|
|
656
|
+
|
|
390
657
|
class TextToImageRequest(AbstractModel):
|
|
391
658
|
"""TextToImage请求参数结构体
|
|
392
659
|
|
|
@@ -5691,6 +5691,10 @@ class CreateCloneInstanceRequest(AbstractModel):
|
|
|
5691
5691
|
:type CageId: str
|
|
5692
5692
|
:param _ProjectId: 项目ID,默认项目ID0
|
|
5693
5693
|
:type ProjectId: int
|
|
5694
|
+
:param _PayType: 付费类型,PRE_PAID:包年包月,USED_PAID:按量计费。默认为按量计费
|
|
5695
|
+
:type PayType: str
|
|
5696
|
+
:param _Period: 实例时长,PayType为PRE_PAID时必传,单位:月,可选值包括 [1,2,3,4,5,6,7,8,9,10,11,12,24,36]。
|
|
5697
|
+
:type Period: int
|
|
5694
5698
|
"""
|
|
5695
5699
|
self._InstanceId = None
|
|
5696
5700
|
self._SpecifiedRollbackTime = None
|
|
@@ -5713,6 +5717,8 @@ class CreateCloneInstanceRequest(AbstractModel):
|
|
|
5713
5717
|
self._DryRun = None
|
|
5714
5718
|
self._CageId = None
|
|
5715
5719
|
self._ProjectId = None
|
|
5720
|
+
self._PayType = None
|
|
5721
|
+
self._Period = None
|
|
5716
5722
|
|
|
5717
5723
|
@property
|
|
5718
5724
|
def InstanceId(self):
|
|
@@ -5882,6 +5888,22 @@ class CreateCloneInstanceRequest(AbstractModel):
|
|
|
5882
5888
|
def ProjectId(self, ProjectId):
|
|
5883
5889
|
self._ProjectId = ProjectId
|
|
5884
5890
|
|
|
5891
|
+
@property
|
|
5892
|
+
def PayType(self):
|
|
5893
|
+
return self._PayType
|
|
5894
|
+
|
|
5895
|
+
@PayType.setter
|
|
5896
|
+
def PayType(self, PayType):
|
|
5897
|
+
self._PayType = PayType
|
|
5898
|
+
|
|
5899
|
+
@property
|
|
5900
|
+
def Period(self):
|
|
5901
|
+
return self._Period
|
|
5902
|
+
|
|
5903
|
+
@Period.setter
|
|
5904
|
+
def Period(self, Period):
|
|
5905
|
+
self._Period = Period
|
|
5906
|
+
|
|
5885
5907
|
|
|
5886
5908
|
def _deserialize(self, params):
|
|
5887
5909
|
self._InstanceId = params.get("InstanceId")
|
|
@@ -5910,6 +5932,8 @@ class CreateCloneInstanceRequest(AbstractModel):
|
|
|
5910
5932
|
self._DryRun = params.get("DryRun")
|
|
5911
5933
|
self._CageId = params.get("CageId")
|
|
5912
5934
|
self._ProjectId = params.get("ProjectId")
|
|
5935
|
+
self._PayType = params.get("PayType")
|
|
5936
|
+
self._Period = params.get("Period")
|
|
5913
5937
|
memeber_set = set(params.keys())
|
|
5914
5938
|
for name, value in vars(self).items():
|
|
5915
5939
|
property_name = name[1:]
|
|
@@ -28455,6 +28479,55 @@ class TagsInfoOfInstance(AbstractModel):
|
|
|
28455
28479
|
|
|
28456
28480
|
|
|
28457
28481
|
|
|
28482
|
+
class TaskAttachInfo(AbstractModel):
|
|
28483
|
+
"""任务列表中的部分任务支持特定的附加信息
|
|
28484
|
+
|
|
28485
|
+
"""
|
|
28486
|
+
|
|
28487
|
+
def __init__(self):
|
|
28488
|
+
r"""
|
|
28489
|
+
:param _AttachKey: 升级任务:
|
|
28490
|
+
”FastUpgradeStatus“:表示升级类型。1-原地升级;0-普通升级。
|
|
28491
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
28492
|
+
:type AttachKey: str
|
|
28493
|
+
:param _AttachValue: 升级任务:
|
|
28494
|
+
”FastUpgradeStatus“:表示升级类型。1-原地升级;0-普通升级。
|
|
28495
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
28496
|
+
:type AttachValue: str
|
|
28497
|
+
"""
|
|
28498
|
+
self._AttachKey = None
|
|
28499
|
+
self._AttachValue = None
|
|
28500
|
+
|
|
28501
|
+
@property
|
|
28502
|
+
def AttachKey(self):
|
|
28503
|
+
return self._AttachKey
|
|
28504
|
+
|
|
28505
|
+
@AttachKey.setter
|
|
28506
|
+
def AttachKey(self, AttachKey):
|
|
28507
|
+
self._AttachKey = AttachKey
|
|
28508
|
+
|
|
28509
|
+
@property
|
|
28510
|
+
def AttachValue(self):
|
|
28511
|
+
return self._AttachValue
|
|
28512
|
+
|
|
28513
|
+
@AttachValue.setter
|
|
28514
|
+
def AttachValue(self, AttachValue):
|
|
28515
|
+
self._AttachValue = AttachValue
|
|
28516
|
+
|
|
28517
|
+
|
|
28518
|
+
def _deserialize(self, params):
|
|
28519
|
+
self._AttachKey = params.get("AttachKey")
|
|
28520
|
+
self._AttachValue = params.get("AttachValue")
|
|
28521
|
+
memeber_set = set(params.keys())
|
|
28522
|
+
for name, value in vars(self).items():
|
|
28523
|
+
property_name = name[1:]
|
|
28524
|
+
if property_name in memeber_set:
|
|
28525
|
+
memeber_set.remove(property_name)
|
|
28526
|
+
if len(memeber_set) > 0:
|
|
28527
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
28528
|
+
|
|
28529
|
+
|
|
28530
|
+
|
|
28458
28531
|
class TaskDetail(AbstractModel):
|
|
28459
28532
|
"""实例任务详情
|
|
28460
28533
|
|
|
@@ -28504,6 +28577,9 @@ class TaskDetail(AbstractModel):
|
|
|
28504
28577
|
:type InstanceIds: list of str
|
|
28505
28578
|
:param _AsyncRequestId: 异步任务的请求 ID。
|
|
28506
28579
|
:type AsyncRequestId: str
|
|
28580
|
+
:param _TaskAttachInfo: 任务的附加信息。
|
|
28581
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
28582
|
+
:type TaskAttachInfo: list of TaskAttachInfo
|
|
28507
28583
|
"""
|
|
28508
28584
|
self._Code = None
|
|
28509
28585
|
self._Message = None
|
|
@@ -28515,6 +28591,7 @@ class TaskDetail(AbstractModel):
|
|
|
28515
28591
|
self._EndTime = None
|
|
28516
28592
|
self._InstanceIds = None
|
|
28517
28593
|
self._AsyncRequestId = None
|
|
28594
|
+
self._TaskAttachInfo = None
|
|
28518
28595
|
|
|
28519
28596
|
@property
|
|
28520
28597
|
def Code(self):
|
|
@@ -28596,6 +28673,14 @@ class TaskDetail(AbstractModel):
|
|
|
28596
28673
|
def AsyncRequestId(self, AsyncRequestId):
|
|
28597
28674
|
self._AsyncRequestId = AsyncRequestId
|
|
28598
28675
|
|
|
28676
|
+
@property
|
|
28677
|
+
def TaskAttachInfo(self):
|
|
28678
|
+
return self._TaskAttachInfo
|
|
28679
|
+
|
|
28680
|
+
@TaskAttachInfo.setter
|
|
28681
|
+
def TaskAttachInfo(self, TaskAttachInfo):
|
|
28682
|
+
self._TaskAttachInfo = TaskAttachInfo
|
|
28683
|
+
|
|
28599
28684
|
|
|
28600
28685
|
def _deserialize(self, params):
|
|
28601
28686
|
self._Code = params.get("Code")
|
|
@@ -28608,6 +28693,12 @@ class TaskDetail(AbstractModel):
|
|
|
28608
28693
|
self._EndTime = params.get("EndTime")
|
|
28609
28694
|
self._InstanceIds = params.get("InstanceIds")
|
|
28610
28695
|
self._AsyncRequestId = params.get("AsyncRequestId")
|
|
28696
|
+
if params.get("TaskAttachInfo") is not None:
|
|
28697
|
+
self._TaskAttachInfo = []
|
|
28698
|
+
for item in params.get("TaskAttachInfo"):
|
|
28699
|
+
obj = TaskAttachInfo()
|
|
28700
|
+
obj._deserialize(item)
|
|
28701
|
+
self._TaskAttachInfo.append(obj)
|
|
28611
28702
|
memeber_set = set(params.keys())
|
|
28612
28703
|
for name, value in vars(self).items():
|
|
28613
28704
|
property_name = name[1:]
|
|
@@ -1638,7 +1638,7 @@ class CkafkaClient(AbstractClient):
|
|
|
1638
1638
|
|
|
1639
1639
|
|
|
1640
1640
|
def ModifyAclRule(self, request):
|
|
1641
|
-
"""
|
|
1641
|
+
"""修改ACL策略,目前只支持预设规则的是否应用到新增topic这一项的修改
|
|
1642
1642
|
|
|
1643
1643
|
:param request: Request instance for ModifyAclRule.
|
|
1644
1644
|
:type request: :class:`tencentcloud.ckafka.v20190819.models.ModifyAclRuleRequest`
|
|
@@ -18764,7 +18764,7 @@ class ModifyAclRuleRequest(AbstractModel):
|
|
|
18764
18764
|
:type InstanceId: str
|
|
18765
18765
|
:param _RuleName: ACL策略名
|
|
18766
18766
|
:type RuleName: str
|
|
18767
|
-
:param _IsApplied:
|
|
18767
|
+
:param _IsApplied: 修改预设规则时传入,是否应用到新增的Topic
|
|
18768
18768
|
:type IsApplied: int
|
|
18769
18769
|
"""
|
|
18770
18770
|
self._InstanceId = None
|
|
@@ -2209,7 +2209,7 @@ class EssClient(AbstractClient):
|
|
|
2209
2209
|
注:
|
|
2210
2210
|
1.<font color="red">合同发起后就会扣减合同的额度</font>, 只有撤销没有参与方签署过或只有自动签署签署过的合同,才会返还合同额度。(过期,拒签,签署完成,解除完成等状态不会返还额度)
|
|
2211
2211
|
|
|
2212
|
-
2.<font color="red"
|
|
2212
|
+
2.<font color="red">静默(自动)签署不支持非本企业合同签署方存在填写</font>功能
|
|
2213
2213
|
|
|
2214
2214
|
3.<font color="red">在发起签署流程之前,建议等待 [PDF合成完成的回调](https://qian.tencent.com/developers/company/callback_types_file_resources)</font>,尤其是当模板中存在动态表格等复杂填写控件时,因为合成过程可能会耗费秒级别的时间。
|
|
2215
2215
|
|