tencentcloud-sdk-python 3.0.1314__py2.py3-none-any.whl → 3.0.1315__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.
- tencentcloud/__init__.py +1 -1
- tencentcloud/aiart/v20221229/models.py +4 -4
- tencentcloud/batch/v20170312/models.py +2 -2
- tencentcloud/cfw/v20190904/cfw_client.py +0 -25
- tencentcloud/cfw/v20190904/models.py +0 -374
- tencentcloud/ckafka/v20190819/models.py +17 -2
- tencentcloud/cvm/v20170312/models.py +2 -2
- tencentcloud/cwp/v20180228/cwp_client.py +0 -50
- tencentcloud/cwp/v20180228/models.py +83 -747
- tencentcloud/dsgc/v20190723/models.py +15 -0
- tencentcloud/ess/v20201111/models.py +2 -2
- tencentcloud/essbasic/v20210526/models.py +2 -2
- tencentcloud/lighthouse/v20200324/models.py +180 -0
- tencentcloud/live/v20180801/models.py +2 -2
- tencentcloud/lkeap/v20240522/lkeap_client.py +2 -1
- tencentcloud/lkeap/v20240522/models.py +12 -2
- tencentcloud/mna/v20210119/models.py +0 -20
- tencentcloud/mongodb/v20190725/models.py +26 -14
- tencentcloud/monitor/v20180724/models.py +8 -0
- tencentcloud/tccatalog/v20241024/models.py +30 -0
- {tencentcloud_sdk_python-3.0.1314.dist-info → tencentcloud_sdk_python-3.0.1315.dist-info}/METADATA +3 -1
- {tencentcloud_sdk_python-3.0.1314.dist-info → tencentcloud_sdk_python-3.0.1315.dist-info}/RECORD +25 -25
- {tencentcloud_sdk_python-3.0.1314.dist-info → tencentcloud_sdk_python-3.0.1315.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1314.dist-info → tencentcloud_sdk_python-3.0.1315.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1314.dist-info → tencentcloud_sdk_python-3.0.1315.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
@@ -2297,11 +2297,11 @@ class SketchToImageRequest(AbstractModel):
|
|
2297
2297
|
:type Prompt: str
|
2298
2298
|
:param _InputImage: 线稿图 Base64 数据。
|
2299
2299
|
Base64 和 Url 必须提供一个,如果都提供以Url 为准。
|
2300
|
-
图片限制:黑白线稿图片,单边分辨率小于5000且大于
|
2300
|
+
图片限制:黑白线稿图片,单边分辨率小于5000且大于128(分辨率过小会导致效果受损),转成 Base64 字符串后小于 6MB,格式支持 jpg、jpeg、png、bmp、tiff、webp。
|
2301
2301
|
:type InputImage: str
|
2302
2302
|
:param _InputUrl: 线稿图 Url。
|
2303
2303
|
Base64 和 Url 必须提供一个,如果都提供以Url 为准。
|
2304
|
-
图片限制:黑白线稿图片,单边分辨率小于5000且大于
|
2304
|
+
图片限制:黑白线稿图片,单边分辨率小于5000且大于128(分辨率过小会导致效果受损),转成 Base64 字符串后小于 6MB,格式支持 jpg、jpeg、png、bmp、tiff、webp。
|
2305
2305
|
:type InputUrl: str
|
2306
2306
|
:param _LogoAdd: 为生成结果图添加标识的开关,默认为1。
|
2307
2307
|
1:添加标识。
|
@@ -2339,7 +2339,7 @@ Base64 和 Url 必须提供一个,如果都提供以Url 为准。
|
|
2339
2339
|
def InputImage(self):
|
2340
2340
|
"""线稿图 Base64 数据。
|
2341
2341
|
Base64 和 Url 必须提供一个,如果都提供以Url 为准。
|
2342
|
-
图片限制:黑白线稿图片,单边分辨率小于5000且大于
|
2342
|
+
图片限制:黑白线稿图片,单边分辨率小于5000且大于128(分辨率过小会导致效果受损),转成 Base64 字符串后小于 6MB,格式支持 jpg、jpeg、png、bmp、tiff、webp。
|
2343
2343
|
:rtype: str
|
2344
2344
|
"""
|
2345
2345
|
return self._InputImage
|
@@ -2352,7 +2352,7 @@ Base64 和 Url 必须提供一个,如果都提供以Url 为准。
|
|
2352
2352
|
def InputUrl(self):
|
2353
2353
|
"""线稿图 Url。
|
2354
2354
|
Base64 和 Url 必须提供一个,如果都提供以Url 为准。
|
2355
|
-
图片限制:黑白线稿图片,单边分辨率小于5000且大于
|
2355
|
+
图片限制:黑白线稿图片,单边分辨率小于5000且大于128(分辨率过小会导致效果受损),转成 Base64 字符串后小于 6MB,格式支持 jpg、jpeg、png、bmp、tiff、webp。
|
2356
2356
|
:rtype: str
|
2357
2357
|
"""
|
2358
2358
|
return self._InputUrl
|
@@ -9706,7 +9706,7 @@ class SystemDisk(AbstractModel):
|
|
9706
9706
|
<li>CLOUD_TSSD:极速型SSD云硬盘</li><br>
|
9707
9707
|
默认取值:当前有库存的硬盘类型。
|
9708
9708
|
:type DiskType: str
|
9709
|
-
:param _DiskId: 系统盘ID。
|
9709
|
+
:param _DiskId: 系统盘ID。
|
9710
9710
|
该参数目前仅用于`DescribeInstances`等查询类接口的返回参数,不可用于`RunInstances`等写接口的入参。
|
9711
9711
|
:type DiskId: str
|
9712
9712
|
:param _DiskSize: 系统盘大小,单位:GB。默认值为 50
|
@@ -9748,7 +9748,7 @@ class SystemDisk(AbstractModel):
|
|
9748
9748
|
|
9749
9749
|
@property
|
9750
9750
|
def DiskId(self):
|
9751
|
-
"""系统盘ID。
|
9751
|
+
"""系统盘ID。
|
9752
9752
|
该参数目前仅用于`DescribeInstances`等查询类接口的返回参数,不可用于`RunInstances`等写接口的入参。
|
9753
9753
|
:rtype: str
|
9754
9754
|
"""
|
@@ -26,31 +26,6 @@ class CfwClient(AbstractClient):
|
|
26
26
|
_service = 'cfw'
|
27
27
|
|
28
28
|
|
29
|
-
def AddAcRule(self, request):
|
30
|
-
"""接口不再使用,已有新接口AddAclRule
|
31
|
-
|
32
|
-
添加互联网边界规则
|
33
|
-
|
34
|
-
:param request: Request instance for AddAcRule.
|
35
|
-
:type request: :class:`tencentcloud.cfw.v20190904.models.AddAcRuleRequest`
|
36
|
-
:rtype: :class:`tencentcloud.cfw.v20190904.models.AddAcRuleResponse`
|
37
|
-
|
38
|
-
"""
|
39
|
-
try:
|
40
|
-
params = request._serialize()
|
41
|
-
headers = request.headers
|
42
|
-
body = self.call("AddAcRule", params, headers=headers)
|
43
|
-
response = json.loads(body)
|
44
|
-
model = models.AddAcRuleResponse()
|
45
|
-
model._deserialize(response["Response"])
|
46
|
-
return model
|
47
|
-
except Exception as e:
|
48
|
-
if isinstance(e, TencentCloudSDKException):
|
49
|
-
raise
|
50
|
-
else:
|
51
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
52
|
-
|
53
|
-
|
54
29
|
def AddAclRule(self, request):
|
55
30
|
"""添加互联网边界访问控制规则
|
56
31
|
|
@@ -403,380 +403,6 @@ class AcListsData(AbstractModel):
|
|
403
403
|
|
404
404
|
|
405
405
|
|
406
|
-
class AddAcRuleRequest(AbstractModel):
|
407
|
-
"""AddAcRule请求参数结构体
|
408
|
-
|
409
|
-
"""
|
410
|
-
|
411
|
-
def __init__(self):
|
412
|
-
r"""
|
413
|
-
:param _OrderIndex: -1表示优先级最低,1表示优先级最高
|
414
|
-
:type OrderIndex: str
|
415
|
-
:param _RuleAction: 访问控制策略中设置的流量通过云防火墙的方式。取值:
|
416
|
-
accept:放行
|
417
|
-
drop:拒绝
|
418
|
-
log:观察
|
419
|
-
:type RuleAction: str
|
420
|
-
:param _Direction: 访问控制策略的流量方向。取值:
|
421
|
-
in:外对内流量访问控制
|
422
|
-
out:内对外流量访问控制
|
423
|
-
:type Direction: str
|
424
|
-
:param _Description: 访问控制策略的描述信息
|
425
|
-
:type Description: str
|
426
|
-
:param _SourceType: 访问控制策略中的源地址类型。取值:
|
427
|
-
net:源IP或网段(IP或者CIDR)
|
428
|
-
location:源区域
|
429
|
-
template:云防火墙地址模板
|
430
|
-
instance:实例id
|
431
|
-
vendor:云厂商
|
432
|
-
:type SourceType: str
|
433
|
-
:param _SourceContent: 访问控制策略中的源地址。取值:
|
434
|
-
当SourceType为net时,SourceContent为源IP地址或者CIDR地址。
|
435
|
-
例如:1.1.1.0/24
|
436
|
-
|
437
|
-
当SourceType为template时,SourceContent为源地址模板id。
|
438
|
-
|
439
|
-
当SourceType为location时,SourceContent为源区域。
|
440
|
-
例如["BJ11", "ZB"]
|
441
|
-
|
442
|
-
当SourceType为instance时,SourceContent为该实例id对应的公网ip。
|
443
|
-
例如ins-xxxxx
|
444
|
-
|
445
|
-
当SourceType为vendor时,SourceContent为所选择厂商的公网ip列表。
|
446
|
-
例如:aws,huawei,tencent,aliyun,azure,all代表以上五个
|
447
|
-
:type SourceContent: str
|
448
|
-
:param _DestType: 访问控制策略中的目的地址类型。取值:
|
449
|
-
net:目的IP或者网段(IP或者CIDR)
|
450
|
-
location:源区域
|
451
|
-
template:云防火墙地址模板
|
452
|
-
instance:实例id
|
453
|
-
vendor:云厂商
|
454
|
-
domain: 域名或者ip
|
455
|
-
:type DestType: str
|
456
|
-
:param _DestContent: 访问控制策略中的目的地址。取值:
|
457
|
-
当DestType为net时,DestContent为源IP地址或者CIDR地址。
|
458
|
-
例如:1.1.1.0/24
|
459
|
-
|
460
|
-
当DestType为template时,DestContent为源地址模板id。
|
461
|
-
|
462
|
-
当DestType为location时,DestContent为源区域。
|
463
|
-
例如["BJ11", "ZB"]
|
464
|
-
|
465
|
-
当DestType为instance时,DestContent为该实例id对应的公网ip。
|
466
|
-
例如ins-xxxxx
|
467
|
-
|
468
|
-
当DestType为domain时,DestContent为该实例id对应的域名规则。
|
469
|
-
例如*.qq.com
|
470
|
-
|
471
|
-
当DestType为vendor时,DestContent为所选择厂商的公网ip列表。
|
472
|
-
例如:aws,huawei,tencent,aliyun,azure,all代表以上五个
|
473
|
-
:type DestContent: str
|
474
|
-
:param _Port: 访问控制策略的端口。取值:
|
475
|
-
-1/-1:全部端口
|
476
|
-
80,443:80或者443
|
477
|
-
:type Port: str
|
478
|
-
:param _Protocol: 访问控制策略中流量访问的协议类型。取值:TCP,目前互联网边界规则只能支持TCP,不传参数默认就是TCP
|
479
|
-
:type Protocol: str
|
480
|
-
:param _ApplicationName: 七层协议,取值:
|
481
|
-
HTTP/HTTPS
|
482
|
-
TLS/SSL
|
483
|
-
:type ApplicationName: str
|
484
|
-
:param _Enable: 是否启用规则,默认为启用,取值:
|
485
|
-
true为启用,false为不启用
|
486
|
-
:type Enable: str
|
487
|
-
"""
|
488
|
-
self._OrderIndex = None
|
489
|
-
self._RuleAction = None
|
490
|
-
self._Direction = None
|
491
|
-
self._Description = None
|
492
|
-
self._SourceType = None
|
493
|
-
self._SourceContent = None
|
494
|
-
self._DestType = None
|
495
|
-
self._DestContent = None
|
496
|
-
self._Port = None
|
497
|
-
self._Protocol = None
|
498
|
-
self._ApplicationName = None
|
499
|
-
self._Enable = None
|
500
|
-
|
501
|
-
@property
|
502
|
-
def OrderIndex(self):
|
503
|
-
"""-1表示优先级最低,1表示优先级最高
|
504
|
-
:rtype: str
|
505
|
-
"""
|
506
|
-
return self._OrderIndex
|
507
|
-
|
508
|
-
@OrderIndex.setter
|
509
|
-
def OrderIndex(self, OrderIndex):
|
510
|
-
self._OrderIndex = OrderIndex
|
511
|
-
|
512
|
-
@property
|
513
|
-
def RuleAction(self):
|
514
|
-
"""访问控制策略中设置的流量通过云防火墙的方式。取值:
|
515
|
-
accept:放行
|
516
|
-
drop:拒绝
|
517
|
-
log:观察
|
518
|
-
:rtype: str
|
519
|
-
"""
|
520
|
-
return self._RuleAction
|
521
|
-
|
522
|
-
@RuleAction.setter
|
523
|
-
def RuleAction(self, RuleAction):
|
524
|
-
self._RuleAction = RuleAction
|
525
|
-
|
526
|
-
@property
|
527
|
-
def Direction(self):
|
528
|
-
"""访问控制策略的流量方向。取值:
|
529
|
-
in:外对内流量访问控制
|
530
|
-
out:内对外流量访问控制
|
531
|
-
:rtype: str
|
532
|
-
"""
|
533
|
-
return self._Direction
|
534
|
-
|
535
|
-
@Direction.setter
|
536
|
-
def Direction(self, Direction):
|
537
|
-
self._Direction = Direction
|
538
|
-
|
539
|
-
@property
|
540
|
-
def Description(self):
|
541
|
-
"""访问控制策略的描述信息
|
542
|
-
:rtype: str
|
543
|
-
"""
|
544
|
-
return self._Description
|
545
|
-
|
546
|
-
@Description.setter
|
547
|
-
def Description(self, Description):
|
548
|
-
self._Description = Description
|
549
|
-
|
550
|
-
@property
|
551
|
-
def SourceType(self):
|
552
|
-
"""访问控制策略中的源地址类型。取值:
|
553
|
-
net:源IP或网段(IP或者CIDR)
|
554
|
-
location:源区域
|
555
|
-
template:云防火墙地址模板
|
556
|
-
instance:实例id
|
557
|
-
vendor:云厂商
|
558
|
-
:rtype: str
|
559
|
-
"""
|
560
|
-
return self._SourceType
|
561
|
-
|
562
|
-
@SourceType.setter
|
563
|
-
def SourceType(self, SourceType):
|
564
|
-
self._SourceType = SourceType
|
565
|
-
|
566
|
-
@property
|
567
|
-
def SourceContent(self):
|
568
|
-
"""访问控制策略中的源地址。取值:
|
569
|
-
当SourceType为net时,SourceContent为源IP地址或者CIDR地址。
|
570
|
-
例如:1.1.1.0/24
|
571
|
-
|
572
|
-
当SourceType为template时,SourceContent为源地址模板id。
|
573
|
-
|
574
|
-
当SourceType为location时,SourceContent为源区域。
|
575
|
-
例如["BJ11", "ZB"]
|
576
|
-
|
577
|
-
当SourceType为instance时,SourceContent为该实例id对应的公网ip。
|
578
|
-
例如ins-xxxxx
|
579
|
-
|
580
|
-
当SourceType为vendor时,SourceContent为所选择厂商的公网ip列表。
|
581
|
-
例如:aws,huawei,tencent,aliyun,azure,all代表以上五个
|
582
|
-
:rtype: str
|
583
|
-
"""
|
584
|
-
return self._SourceContent
|
585
|
-
|
586
|
-
@SourceContent.setter
|
587
|
-
def SourceContent(self, SourceContent):
|
588
|
-
self._SourceContent = SourceContent
|
589
|
-
|
590
|
-
@property
|
591
|
-
def DestType(self):
|
592
|
-
"""访问控制策略中的目的地址类型。取值:
|
593
|
-
net:目的IP或者网段(IP或者CIDR)
|
594
|
-
location:源区域
|
595
|
-
template:云防火墙地址模板
|
596
|
-
instance:实例id
|
597
|
-
vendor:云厂商
|
598
|
-
domain: 域名或者ip
|
599
|
-
:rtype: str
|
600
|
-
"""
|
601
|
-
return self._DestType
|
602
|
-
|
603
|
-
@DestType.setter
|
604
|
-
def DestType(self, DestType):
|
605
|
-
self._DestType = DestType
|
606
|
-
|
607
|
-
@property
|
608
|
-
def DestContent(self):
|
609
|
-
"""访问控制策略中的目的地址。取值:
|
610
|
-
当DestType为net时,DestContent为源IP地址或者CIDR地址。
|
611
|
-
例如:1.1.1.0/24
|
612
|
-
|
613
|
-
当DestType为template时,DestContent为源地址模板id。
|
614
|
-
|
615
|
-
当DestType为location时,DestContent为源区域。
|
616
|
-
例如["BJ11", "ZB"]
|
617
|
-
|
618
|
-
当DestType为instance时,DestContent为该实例id对应的公网ip。
|
619
|
-
例如ins-xxxxx
|
620
|
-
|
621
|
-
当DestType为domain时,DestContent为该实例id对应的域名规则。
|
622
|
-
例如*.qq.com
|
623
|
-
|
624
|
-
当DestType为vendor时,DestContent为所选择厂商的公网ip列表。
|
625
|
-
例如:aws,huawei,tencent,aliyun,azure,all代表以上五个
|
626
|
-
:rtype: str
|
627
|
-
"""
|
628
|
-
return self._DestContent
|
629
|
-
|
630
|
-
@DestContent.setter
|
631
|
-
def DestContent(self, DestContent):
|
632
|
-
self._DestContent = DestContent
|
633
|
-
|
634
|
-
@property
|
635
|
-
def Port(self):
|
636
|
-
"""访问控制策略的端口。取值:
|
637
|
-
-1/-1:全部端口
|
638
|
-
80,443:80或者443
|
639
|
-
:rtype: str
|
640
|
-
"""
|
641
|
-
return self._Port
|
642
|
-
|
643
|
-
@Port.setter
|
644
|
-
def Port(self, Port):
|
645
|
-
self._Port = Port
|
646
|
-
|
647
|
-
@property
|
648
|
-
def Protocol(self):
|
649
|
-
"""访问控制策略中流量访问的协议类型。取值:TCP,目前互联网边界规则只能支持TCP,不传参数默认就是TCP
|
650
|
-
:rtype: str
|
651
|
-
"""
|
652
|
-
return self._Protocol
|
653
|
-
|
654
|
-
@Protocol.setter
|
655
|
-
def Protocol(self, Protocol):
|
656
|
-
self._Protocol = Protocol
|
657
|
-
|
658
|
-
@property
|
659
|
-
def ApplicationName(self):
|
660
|
-
"""七层协议,取值:
|
661
|
-
HTTP/HTTPS
|
662
|
-
TLS/SSL
|
663
|
-
:rtype: str
|
664
|
-
"""
|
665
|
-
return self._ApplicationName
|
666
|
-
|
667
|
-
@ApplicationName.setter
|
668
|
-
def ApplicationName(self, ApplicationName):
|
669
|
-
self._ApplicationName = ApplicationName
|
670
|
-
|
671
|
-
@property
|
672
|
-
def Enable(self):
|
673
|
-
"""是否启用规则,默认为启用,取值:
|
674
|
-
true为启用,false为不启用
|
675
|
-
:rtype: str
|
676
|
-
"""
|
677
|
-
return self._Enable
|
678
|
-
|
679
|
-
@Enable.setter
|
680
|
-
def Enable(self, Enable):
|
681
|
-
self._Enable = Enable
|
682
|
-
|
683
|
-
|
684
|
-
def _deserialize(self, params):
|
685
|
-
self._OrderIndex = params.get("OrderIndex")
|
686
|
-
self._RuleAction = params.get("RuleAction")
|
687
|
-
self._Direction = params.get("Direction")
|
688
|
-
self._Description = params.get("Description")
|
689
|
-
self._SourceType = params.get("SourceType")
|
690
|
-
self._SourceContent = params.get("SourceContent")
|
691
|
-
self._DestType = params.get("DestType")
|
692
|
-
self._DestContent = params.get("DestContent")
|
693
|
-
self._Port = params.get("Port")
|
694
|
-
self._Protocol = params.get("Protocol")
|
695
|
-
self._ApplicationName = params.get("ApplicationName")
|
696
|
-
self._Enable = params.get("Enable")
|
697
|
-
memeber_set = set(params.keys())
|
698
|
-
for name, value in vars(self).items():
|
699
|
-
property_name = name[1:]
|
700
|
-
if property_name in memeber_set:
|
701
|
-
memeber_set.remove(property_name)
|
702
|
-
if len(memeber_set) > 0:
|
703
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
704
|
-
|
705
|
-
|
706
|
-
|
707
|
-
class AddAcRuleResponse(AbstractModel):
|
708
|
-
"""AddAcRule返回参数结构体
|
709
|
-
|
710
|
-
"""
|
711
|
-
|
712
|
-
def __init__(self):
|
713
|
-
r"""
|
714
|
-
:param _RuleUuid: 创建成功后返回新策略的uuid
|
715
|
-
:type RuleUuid: int
|
716
|
-
:param _ReturnCode: 0代表成功,-1代表失败
|
717
|
-
:type ReturnCode: int
|
718
|
-
:param _ReturnMsg: success代表成功,failed代表失败
|
719
|
-
:type ReturnMsg: str
|
720
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
721
|
-
:type RequestId: str
|
722
|
-
"""
|
723
|
-
self._RuleUuid = None
|
724
|
-
self._ReturnCode = None
|
725
|
-
self._ReturnMsg = None
|
726
|
-
self._RequestId = None
|
727
|
-
|
728
|
-
@property
|
729
|
-
def RuleUuid(self):
|
730
|
-
"""创建成功后返回新策略的uuid
|
731
|
-
:rtype: int
|
732
|
-
"""
|
733
|
-
return self._RuleUuid
|
734
|
-
|
735
|
-
@RuleUuid.setter
|
736
|
-
def RuleUuid(self, RuleUuid):
|
737
|
-
self._RuleUuid = RuleUuid
|
738
|
-
|
739
|
-
@property
|
740
|
-
def ReturnCode(self):
|
741
|
-
"""0代表成功,-1代表失败
|
742
|
-
:rtype: int
|
743
|
-
"""
|
744
|
-
return self._ReturnCode
|
745
|
-
|
746
|
-
@ReturnCode.setter
|
747
|
-
def ReturnCode(self, ReturnCode):
|
748
|
-
self._ReturnCode = ReturnCode
|
749
|
-
|
750
|
-
@property
|
751
|
-
def ReturnMsg(self):
|
752
|
-
"""success代表成功,failed代表失败
|
753
|
-
:rtype: str
|
754
|
-
"""
|
755
|
-
return self._ReturnMsg
|
756
|
-
|
757
|
-
@ReturnMsg.setter
|
758
|
-
def ReturnMsg(self, ReturnMsg):
|
759
|
-
self._ReturnMsg = ReturnMsg
|
760
|
-
|
761
|
-
@property
|
762
|
-
def RequestId(self):
|
763
|
-
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
764
|
-
:rtype: str
|
765
|
-
"""
|
766
|
-
return self._RequestId
|
767
|
-
|
768
|
-
@RequestId.setter
|
769
|
-
def RequestId(self, RequestId):
|
770
|
-
self._RequestId = RequestId
|
771
|
-
|
772
|
-
|
773
|
-
def _deserialize(self, params):
|
774
|
-
self._RuleUuid = params.get("RuleUuid")
|
775
|
-
self._ReturnCode = params.get("ReturnCode")
|
776
|
-
self._ReturnMsg = params.get("ReturnMsg")
|
777
|
-
self._RequestId = params.get("RequestId")
|
778
|
-
|
779
|
-
|
780
406
|
class AddAclRuleRequest(AbstractModel):
|
781
407
|
"""AddAclRule请求参数结构体
|
782
408
|
|
@@ -24259,7 +24259,7 @@ class ModifyInstanceAttributesRequest(AbstractModel):
|
|
24259
24259
|
:type Config: :class:`tencentcloud.ckafka.v20190819.models.ModifyInstanceAttributesConfig`
|
24260
24260
|
:param _DynamicRetentionConfig: 动态消息保留策略配置
|
24261
24261
|
:type DynamicRetentionConfig: :class:`tencentcloud.ckafka.v20190819.models.DynamicRetentionTime`
|
24262
|
-
:param _RebalanceTime:
|
24262
|
+
:param _RebalanceTime: 用于修改升级版本或升配定时任务的执行时间,Unix时间戳,精确到秒
|
24263
24263
|
:type RebalanceTime: int
|
24264
24264
|
:param _PublicNetwork: 公网带宽 最小3Mbps 最大999Mbps 仅专业版支持填写
|
24265
24265
|
:type PublicNetwork: int
|
@@ -24267,6 +24267,8 @@ class ModifyInstanceAttributesRequest(AbstractModel):
|
|
24267
24267
|
:type DynamicDiskConfig: :class:`tencentcloud.ckafka.v20190819.models.DynamicDiskConfig`
|
24268
24268
|
:param _MaxMessageByte: 实例级别单条消息大小(单位byte) 最大 12582912(不包含) 最小1024(不包含)
|
24269
24269
|
:type MaxMessageByte: int
|
24270
|
+
:param _UncleanLeaderElectionEnable: 集群topic默认 unclean.leader.election.enable配置: 1 开启 0 关闭
|
24271
|
+
:type UncleanLeaderElectionEnable: int
|
24270
24272
|
"""
|
24271
24273
|
self._InstanceId = None
|
24272
24274
|
self._MsgRetentionTime = None
|
@@ -24277,6 +24279,7 @@ class ModifyInstanceAttributesRequest(AbstractModel):
|
|
24277
24279
|
self._PublicNetwork = None
|
24278
24280
|
self._DynamicDiskConfig = None
|
24279
24281
|
self._MaxMessageByte = None
|
24282
|
+
self._UncleanLeaderElectionEnable = None
|
24280
24283
|
|
24281
24284
|
@property
|
24282
24285
|
def InstanceId(self):
|
@@ -24335,7 +24338,7 @@ class ModifyInstanceAttributesRequest(AbstractModel):
|
|
24335
24338
|
|
24336
24339
|
@property
|
24337
24340
|
def RebalanceTime(self):
|
24338
|
-
"""
|
24341
|
+
"""用于修改升级版本或升配定时任务的执行时间,Unix时间戳,精确到秒
|
24339
24342
|
:rtype: int
|
24340
24343
|
"""
|
24341
24344
|
return self._RebalanceTime
|
@@ -24381,6 +24384,17 @@ class ModifyInstanceAttributesRequest(AbstractModel):
|
|
24381
24384
|
def MaxMessageByte(self, MaxMessageByte):
|
24382
24385
|
self._MaxMessageByte = MaxMessageByte
|
24383
24386
|
|
24387
|
+
@property
|
24388
|
+
def UncleanLeaderElectionEnable(self):
|
24389
|
+
"""集群topic默认 unclean.leader.election.enable配置: 1 开启 0 关闭
|
24390
|
+
:rtype: int
|
24391
|
+
"""
|
24392
|
+
return self._UncleanLeaderElectionEnable
|
24393
|
+
|
24394
|
+
@UncleanLeaderElectionEnable.setter
|
24395
|
+
def UncleanLeaderElectionEnable(self, UncleanLeaderElectionEnable):
|
24396
|
+
self._UncleanLeaderElectionEnable = UncleanLeaderElectionEnable
|
24397
|
+
|
24384
24398
|
|
24385
24399
|
def _deserialize(self, params):
|
24386
24400
|
self._InstanceId = params.get("InstanceId")
|
@@ -24398,6 +24412,7 @@ class ModifyInstanceAttributesRequest(AbstractModel):
|
|
24398
24412
|
self._DynamicDiskConfig = DynamicDiskConfig()
|
24399
24413
|
self._DynamicDiskConfig._deserialize(params.get("DynamicDiskConfig"))
|
24400
24414
|
self._MaxMessageByte = params.get("MaxMessageByte")
|
24415
|
+
self._UncleanLeaderElectionEnable = params.get("UncleanLeaderElectionEnable")
|
24401
24416
|
memeber_set = set(params.keys())
|
24402
24417
|
for name, value in vars(self).items():
|
24403
24418
|
property_name = name[1:]
|
@@ -20706,7 +20706,7 @@ class SystemDisk(AbstractModel):
|
|
20706
20706
|
<li>CLOUD_TSSD:极速型SSD云硬盘</li><br>
|
20707
20707
|
默认取值:当前有库存的硬盘类型。
|
20708
20708
|
:type DiskType: str
|
20709
|
-
:param _DiskId: 系统盘ID。
|
20709
|
+
:param _DiskId: 系统盘ID。
|
20710
20710
|
该参数目前仅用于`DescribeInstances`等查询类接口的返回参数,不可用于`RunInstances`等写接口的入参。
|
20711
20711
|
:type DiskId: str
|
20712
20712
|
:param _DiskSize: 系统盘大小,单位:GB。默认值为 50
|
@@ -20748,7 +20748,7 @@ class SystemDisk(AbstractModel):
|
|
20748
20748
|
|
20749
20749
|
@property
|
20750
20750
|
def DiskId(self):
|
20751
|
-
"""系统盘ID。
|
20751
|
+
"""系统盘ID。
|
20752
20752
|
该参数目前仅用于`DescribeInstances`等查询类接口的返回参数,不可用于`RunInstances`等写接口的入参。
|
20753
20753
|
:rtype: str
|
20754
20754
|
"""
|
@@ -2812,31 +2812,6 @@ class CwpClient(AbstractClient):
|
|
2812
2812
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
2813
2813
|
|
2814
2814
|
|
2815
|
-
def DescribeAttackLogs(self, request):
|
2816
|
-
"""DescribeAttackEvents 代替
|
2817
|
-
|
2818
|
-
按分页形式展示网络攻击日志列表
|
2819
|
-
|
2820
|
-
:param request: Request instance for DescribeAttackLogs.
|
2821
|
-
:type request: :class:`tencentcloud.cwp.v20180228.models.DescribeAttackLogsRequest`
|
2822
|
-
:rtype: :class:`tencentcloud.cwp.v20180228.models.DescribeAttackLogsResponse`
|
2823
|
-
|
2824
|
-
"""
|
2825
|
-
try:
|
2826
|
-
params = request._serialize()
|
2827
|
-
headers = request.headers
|
2828
|
-
body = self.call("DescribeAttackLogs", params, headers=headers)
|
2829
|
-
response = json.loads(body)
|
2830
|
-
model = models.DescribeAttackLogsResponse()
|
2831
|
-
model._deserialize(response["Response"])
|
2832
|
-
return model
|
2833
|
-
except Exception as e:
|
2834
|
-
if isinstance(e, TencentCloudSDKException):
|
2835
|
-
raise
|
2836
|
-
else:
|
2837
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
2838
|
-
|
2839
|
-
|
2840
2815
|
def DescribeAttackStatistics(self, request):
|
2841
2816
|
"""网络攻击数据统计
|
2842
2817
|
|
@@ -3987,31 +3962,6 @@ class CwpClient(AbstractClient):
|
|
3987
3962
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
3988
3963
|
|
3989
3964
|
|
3990
|
-
def DescribeComponentStatistics(self, request):
|
3991
|
-
"""接口已无效
|
3992
|
-
|
3993
|
-
本接口 (DescribeComponentStatistics) 用于获取组件统计列表数据。
|
3994
|
-
|
3995
|
-
:param request: Request instance for DescribeComponentStatistics.
|
3996
|
-
:type request: :class:`tencentcloud.cwp.v20180228.models.DescribeComponentStatisticsRequest`
|
3997
|
-
:rtype: :class:`tencentcloud.cwp.v20180228.models.DescribeComponentStatisticsResponse`
|
3998
|
-
|
3999
|
-
"""
|
4000
|
-
try:
|
4001
|
-
params = request._serialize()
|
4002
|
-
headers = request.headers
|
4003
|
-
body = self.call("DescribeComponentStatistics", params, headers=headers)
|
4004
|
-
response = json.loads(body)
|
4005
|
-
model = models.DescribeComponentStatisticsResponse()
|
4006
|
-
model._deserialize(response["Response"])
|
4007
|
-
return model
|
4008
|
-
except Exception as e:
|
4009
|
-
if isinstance(e, TencentCloudSDKException):
|
4010
|
-
raise
|
4011
|
-
else:
|
4012
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
4013
|
-
|
4014
|
-
|
4015
3965
|
def DescribeDefenceEventDetail(self, request):
|
4016
3966
|
"""获取漏洞防御事件详情
|
4017
3967
|
|