tencentcloud-sdk-python 3.0.1340__py2.py3-none-any.whl → 3.0.1341__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/autoscaling/v20180419/autoscaling_client.py +26 -0
- tencentcloud/autoscaling/v20180419/models.py +94 -0
- tencentcloud/cdc/v20201214/models.py +29 -74
- tencentcloud/cdwch/v20200915/models.py +124 -0
- tencentcloud/cdz/v20221123/models.py +0 -8
- tencentcloud/cynosdb/v20190107/models.py +0 -290
- tencentcloud/dbbrain/v20210527/models.py +15 -0
- tencentcloud/hunyuan/v20230901/hunyuan_client.py +25 -0
- tencentcloud/hunyuan/v20230901/models.py +532 -0
- tencentcloud/lcic/v20220817/models.py +4 -4
- tencentcloud/lighthouse/v20200324/lighthouse_client.py +12 -3
- tencentcloud/lighthouse/v20200324/models.py +139 -39
- tencentcloud/lke/v20231130/lke_client.py +1 -1
- tencentcloud/lke/v20231130/models.py +6 -6
- tencentcloud/ocr/v20181119/models.py +82 -0
- tencentcloud/ssl/v20191205/models.py +7 -319
- tencentcloud/tchd/v20230306/models.py +168 -0
- tencentcloud/tchd/v20230306/tchd_client.py +24 -0
- tencentcloud/wedata/v20210820/models.py +133 -254
- {tencentcloud_sdk_python-3.0.1340.dist-info → tencentcloud_sdk_python-3.0.1341.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1340.dist-info → tencentcloud_sdk_python-3.0.1341.dist-info}/RECORD +25 -25
- {tencentcloud_sdk_python-3.0.1340.dist-info → tencentcloud_sdk_python-3.0.1341.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1340.dist-info → tencentcloud_sdk_python-3.0.1341.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1340.dist-info → tencentcloud_sdk_python-3.0.1341.dist-info}/top_level.txt +0 -0
@@ -18,6 +18,106 @@ import warnings
|
|
18
18
|
from tencentcloud.common.abstract_model import AbstractModel
|
19
19
|
|
20
20
|
|
21
|
+
class DescribeEventStatisticsRequest(AbstractModel):
|
22
|
+
"""DescribeEventStatistics请求参数结构体
|
23
|
+
|
24
|
+
"""
|
25
|
+
|
26
|
+
def __init__(self):
|
27
|
+
r"""
|
28
|
+
:param _RegionId: 1. 查询非区域性产品事件时,地域ID指定为:non-regional
|
29
|
+
2. 其他地域ID取值请参考:https://cloud.tencent.com/document/api/213/15692
|
30
|
+
:type RegionId: str
|
31
|
+
:param _ProductIds: 1. 不指定产品列表时将查询所有产品。
|
32
|
+
2. 产品ID示例:cvm、lb、cdb、cdn、crs
|
33
|
+
:type ProductIds: list of str
|
34
|
+
"""
|
35
|
+
self._RegionId = None
|
36
|
+
self._ProductIds = None
|
37
|
+
|
38
|
+
@property
|
39
|
+
def RegionId(self):
|
40
|
+
"""1. 查询非区域性产品事件时,地域ID指定为:non-regional
|
41
|
+
2. 其他地域ID取值请参考:https://cloud.tencent.com/document/api/213/15692
|
42
|
+
:rtype: str
|
43
|
+
"""
|
44
|
+
return self._RegionId
|
45
|
+
|
46
|
+
@RegionId.setter
|
47
|
+
def RegionId(self, RegionId):
|
48
|
+
self._RegionId = RegionId
|
49
|
+
|
50
|
+
@property
|
51
|
+
def ProductIds(self):
|
52
|
+
"""1. 不指定产品列表时将查询所有产品。
|
53
|
+
2. 产品ID示例:cvm、lb、cdb、cdn、crs
|
54
|
+
:rtype: list of str
|
55
|
+
"""
|
56
|
+
return self._ProductIds
|
57
|
+
|
58
|
+
@ProductIds.setter
|
59
|
+
def ProductIds(self, ProductIds):
|
60
|
+
self._ProductIds = ProductIds
|
61
|
+
|
62
|
+
|
63
|
+
def _deserialize(self, params):
|
64
|
+
self._RegionId = params.get("RegionId")
|
65
|
+
self._ProductIds = params.get("ProductIds")
|
66
|
+
memeber_set = set(params.keys())
|
67
|
+
for name, value in vars(self).items():
|
68
|
+
property_name = name[1:]
|
69
|
+
if property_name in memeber_set:
|
70
|
+
memeber_set.remove(property_name)
|
71
|
+
if len(memeber_set) > 0:
|
72
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
class DescribeEventStatisticsResponse(AbstractModel):
|
77
|
+
"""DescribeEventStatistics返回参数结构体
|
78
|
+
|
79
|
+
"""
|
80
|
+
|
81
|
+
def __init__(self):
|
82
|
+
r"""
|
83
|
+
:param _Data: 正常产品数
|
84
|
+
:type Data: :class:`tencentcloud.tchd.v20230306.models.TotalStatus`
|
85
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
86
|
+
:type RequestId: str
|
87
|
+
"""
|
88
|
+
self._Data = None
|
89
|
+
self._RequestId = None
|
90
|
+
|
91
|
+
@property
|
92
|
+
def Data(self):
|
93
|
+
"""正常产品数
|
94
|
+
:rtype: :class:`tencentcloud.tchd.v20230306.models.TotalStatus`
|
95
|
+
"""
|
96
|
+
return self._Data
|
97
|
+
|
98
|
+
@Data.setter
|
99
|
+
def Data(self, Data):
|
100
|
+
self._Data = Data
|
101
|
+
|
102
|
+
@property
|
103
|
+
def RequestId(self):
|
104
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
105
|
+
:rtype: str
|
106
|
+
"""
|
107
|
+
return self._RequestId
|
108
|
+
|
109
|
+
@RequestId.setter
|
110
|
+
def RequestId(self, RequestId):
|
111
|
+
self._RequestId = RequestId
|
112
|
+
|
113
|
+
|
114
|
+
def _deserialize(self, params):
|
115
|
+
if params.get("Data") is not None:
|
116
|
+
self._Data = TotalStatus()
|
117
|
+
self._Data._deserialize(params.get("Data"))
|
118
|
+
self._RequestId = params.get("RequestId")
|
119
|
+
|
120
|
+
|
21
121
|
class DescribeEventsRequest(AbstractModel):
|
22
122
|
"""DescribeEvents请求参数结构体
|
23
123
|
|
@@ -299,4 +399,72 @@ class ProductEventList(AbstractModel):
|
|
299
399
|
memeber_set.remove(property_name)
|
300
400
|
if len(memeber_set) > 0:
|
301
401
|
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
402
|
+
|
403
|
+
|
404
|
+
|
405
|
+
class TotalStatus(AbstractModel):
|
406
|
+
"""状态汇总
|
407
|
+
|
408
|
+
"""
|
409
|
+
|
410
|
+
def __init__(self):
|
411
|
+
r"""
|
412
|
+
:param _NormalCount: 正常状态的数目
|
413
|
+
:type NormalCount: int
|
414
|
+
:param _NotifyCount: 通知状态的数目
|
415
|
+
:type NotifyCount: int
|
416
|
+
:param _AbnormalCount: 异常状态的数目
|
417
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
418
|
+
:type AbnormalCount: int
|
419
|
+
"""
|
420
|
+
self._NormalCount = None
|
421
|
+
self._NotifyCount = None
|
422
|
+
self._AbnormalCount = None
|
423
|
+
|
424
|
+
@property
|
425
|
+
def NormalCount(self):
|
426
|
+
"""正常状态的数目
|
427
|
+
:rtype: int
|
428
|
+
"""
|
429
|
+
return self._NormalCount
|
430
|
+
|
431
|
+
@NormalCount.setter
|
432
|
+
def NormalCount(self, NormalCount):
|
433
|
+
self._NormalCount = NormalCount
|
434
|
+
|
435
|
+
@property
|
436
|
+
def NotifyCount(self):
|
437
|
+
"""通知状态的数目
|
438
|
+
:rtype: int
|
439
|
+
"""
|
440
|
+
return self._NotifyCount
|
441
|
+
|
442
|
+
@NotifyCount.setter
|
443
|
+
def NotifyCount(self, NotifyCount):
|
444
|
+
self._NotifyCount = NotifyCount
|
445
|
+
|
446
|
+
@property
|
447
|
+
def AbnormalCount(self):
|
448
|
+
"""异常状态的数目
|
449
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
450
|
+
:rtype: int
|
451
|
+
"""
|
452
|
+
return self._AbnormalCount
|
453
|
+
|
454
|
+
@AbnormalCount.setter
|
455
|
+
def AbnormalCount(self, AbnormalCount):
|
456
|
+
self._AbnormalCount = AbnormalCount
|
457
|
+
|
458
|
+
|
459
|
+
def _deserialize(self, params):
|
460
|
+
self._NormalCount = params.get("NormalCount")
|
461
|
+
self._NotifyCount = params.get("NotifyCount")
|
462
|
+
self._AbnormalCount = params.get("AbnormalCount")
|
463
|
+
memeber_set = set(params.keys())
|
464
|
+
for name, value in vars(self).items():
|
465
|
+
property_name = name[1:]
|
466
|
+
if property_name in memeber_set:
|
467
|
+
memeber_set.remove(property_name)
|
468
|
+
if len(memeber_set) > 0:
|
469
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
302
470
|
|
@@ -26,6 +26,30 @@ class TchdClient(AbstractClient):
|
|
26
26
|
_service = 'tchd'
|
27
27
|
|
28
28
|
|
29
|
+
def DescribeEventStatistics(self, request):
|
30
|
+
"""本接口用于查询腾讯云健康看板的实时可用性事件信息,可以通过产品列表、地域进行过滤查询。
|
31
|
+
可以参考健康看板历史事件页面来获取查询案例(链接:https://status.cloud.tencent.com/history)。
|
32
|
+
|
33
|
+
:param request: Request instance for DescribeEventStatistics.
|
34
|
+
:type request: :class:`tencentcloud.tchd.v20230306.models.DescribeEventStatisticsRequest`
|
35
|
+
:rtype: :class:`tencentcloud.tchd.v20230306.models.DescribeEventStatisticsResponse`
|
36
|
+
|
37
|
+
"""
|
38
|
+
try:
|
39
|
+
params = request._serialize()
|
40
|
+
headers = request.headers
|
41
|
+
body = self.call("DescribeEventStatistics", params, headers=headers)
|
42
|
+
response = json.loads(body)
|
43
|
+
model = models.DescribeEventStatisticsResponse()
|
44
|
+
model._deserialize(response["Response"])
|
45
|
+
return model
|
46
|
+
except Exception as e:
|
47
|
+
if isinstance(e, TencentCloudSDKException):
|
48
|
+
raise
|
49
|
+
else:
|
50
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
51
|
+
|
52
|
+
|
29
53
|
def DescribeEvents(self, request):
|
30
54
|
"""本接口用于查询腾讯云健康看板的可用性事件信息,可以通过产品列表、地域列表和事件发生日期进行过滤查询。
|
31
55
|
当查询的产品对应时间内无事件时将返回空结果。
|