tencentcloud-sdk-python 3.0.1049__py2.py3-none-any.whl → 3.0.1051__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/cam/v20190116/models.py +12 -0
- tencentcloud/cdwdoris/__init__.py +0 -0
- tencentcloud/cdwdoris/v20211228/__init__.py +0 -0
- tencentcloud/cdwdoris/v20211228/cdwdoris_client.py +95 -0
- tencentcloud/cdwdoris/v20211228/errorcodes.py +18 -0
- tencentcloud/cdwdoris/v20211228/models.py +1396 -0
- tencentcloud/csip/v20221121/csip_client.py +23 -0
- tencentcloud/csip/v20221121/models.py +486 -0
- tencentcloud/cvm/v20170312/errorcodes.py +3 -0
- tencentcloud/ess/v20201111/models.py +30 -17
- tencentcloud/essbasic/v20210526/essbasic_client.py +27 -1
- tencentcloud/essbasic/v20210526/models.py +386 -15
- tencentcloud/lcic/v20220817/models.py +14 -1
- tencentcloud/monitor/v20180724/models.py +167 -18
- tencentcloud/monitor/v20180724/monitor_client.py +5 -5
- tencentcloud/privatedns/v20201028/models.py +84 -0
- tencentcloud/privatedns/v20201028/privatedns_client.py +23 -0
- tencentcloud/pts/v20210728/models.py +25 -25
- tencentcloud/redis/v20180412/models.py +246 -0
- tencentcloud/redis/v20180412/redis_client.py +69 -0
- tencentcloud/ssm/v20190923/models.py +11 -5
- tencentcloud/tcr/v20190924/models.py +0 -270
- tencentcloud/tcr/v20190924/tcr_client.py +0 -25
- tencentcloud/tdmq/v20200217/models.py +31 -0
- tencentcloud/teo/v20220901/errorcodes.py +18 -0
- tencentcloud/teo/v20220901/models.py +1 -1
- tencentcloud/tke/v20180525/errorcodes.py +18 -0
- tencentcloud/tke/v20180525/models.py +189 -0
- tencentcloud/tke/v20180525/tke_client.py +46 -0
- tencentcloud/vod/v20180717/errorcodes.py +3 -0
- tencentcloud/waf/v20180125/models.py +4 -4
- {tencentcloud_sdk_python-3.0.1049.dist-info → tencentcloud_sdk_python-3.0.1051.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1049.dist-info → tencentcloud_sdk_python-3.0.1051.dist-info}/RECORD +37 -32
- {tencentcloud_sdk_python-3.0.1049.dist-info → tencentcloud_sdk_python-3.0.1051.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1049.dist-info → tencentcloud_sdk_python-3.0.1051.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1049.dist-info → tencentcloud_sdk_python-3.0.1051.dist-info}/top_level.txt +0 -0
|
@@ -18,6 +18,66 @@ import warnings
|
|
|
18
18
|
from tencentcloud.common.abstract_model import AbstractModel
|
|
19
19
|
|
|
20
20
|
|
|
21
|
+
class AlarmConditionFilter(AbstractModel):
|
|
22
|
+
"""策略过滤条件
|
|
23
|
+
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
def __init__(self):
|
|
27
|
+
r"""
|
|
28
|
+
:param _Type: 类型
|
|
29
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30
|
+
:type Type: str
|
|
31
|
+
:param _Expression: 表达式
|
|
32
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
33
|
+
:type Expression: str
|
|
34
|
+
:param _Dimensions: 过滤条件
|
|
35
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
36
|
+
:type Dimensions: str
|
|
37
|
+
"""
|
|
38
|
+
self._Type = None
|
|
39
|
+
self._Expression = None
|
|
40
|
+
self._Dimensions = None
|
|
41
|
+
|
|
42
|
+
@property
|
|
43
|
+
def Type(self):
|
|
44
|
+
return self._Type
|
|
45
|
+
|
|
46
|
+
@Type.setter
|
|
47
|
+
def Type(self, Type):
|
|
48
|
+
self._Type = Type
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
def Expression(self):
|
|
52
|
+
return self._Expression
|
|
53
|
+
|
|
54
|
+
@Expression.setter
|
|
55
|
+
def Expression(self, Expression):
|
|
56
|
+
self._Expression = Expression
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def Dimensions(self):
|
|
60
|
+
return self._Dimensions
|
|
61
|
+
|
|
62
|
+
@Dimensions.setter
|
|
63
|
+
def Dimensions(self, Dimensions):
|
|
64
|
+
self._Dimensions = Dimensions
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
def _deserialize(self, params):
|
|
68
|
+
self._Type = params.get("Type")
|
|
69
|
+
self._Expression = params.get("Expression")
|
|
70
|
+
self._Dimensions = params.get("Dimensions")
|
|
71
|
+
memeber_set = set(params.keys())
|
|
72
|
+
for name, value in vars(self).items():
|
|
73
|
+
property_name = name[1:]
|
|
74
|
+
if property_name in memeber_set:
|
|
75
|
+
memeber_set.remove(property_name)
|
|
76
|
+
if len(memeber_set) > 0:
|
|
77
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
21
81
|
class AlarmEvent(AbstractModel):
|
|
22
82
|
"""告警事件
|
|
23
83
|
|
|
@@ -75,6 +135,53 @@ class AlarmEvent(AbstractModel):
|
|
|
75
135
|
|
|
76
136
|
|
|
77
137
|
|
|
138
|
+
class AlarmGroupByItem(AbstractModel):
|
|
139
|
+
"""聚合条件
|
|
140
|
+
|
|
141
|
+
"""
|
|
142
|
+
|
|
143
|
+
def __init__(self):
|
|
144
|
+
r"""
|
|
145
|
+
:param _Id: Item Id
|
|
146
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
147
|
+
:type Id: str
|
|
148
|
+
:param _Name: 名称
|
|
149
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
150
|
+
:type Name: str
|
|
151
|
+
"""
|
|
152
|
+
self._Id = None
|
|
153
|
+
self._Name = None
|
|
154
|
+
|
|
155
|
+
@property
|
|
156
|
+
def Id(self):
|
|
157
|
+
return self._Id
|
|
158
|
+
|
|
159
|
+
@Id.setter
|
|
160
|
+
def Id(self, Id):
|
|
161
|
+
self._Id = Id
|
|
162
|
+
|
|
163
|
+
@property
|
|
164
|
+
def Name(self):
|
|
165
|
+
return self._Name
|
|
166
|
+
|
|
167
|
+
@Name.setter
|
|
168
|
+
def Name(self, Name):
|
|
169
|
+
self._Name = Name
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
def _deserialize(self, params):
|
|
173
|
+
self._Id = params.get("Id")
|
|
174
|
+
self._Name = params.get("Name")
|
|
175
|
+
memeber_set = set(params.keys())
|
|
176
|
+
for name, value in vars(self).items():
|
|
177
|
+
property_name = name[1:]
|
|
178
|
+
if property_name in memeber_set:
|
|
179
|
+
memeber_set.remove(property_name)
|
|
180
|
+
if len(memeber_set) > 0:
|
|
181
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
|
|
78
185
|
class AlarmHierarchicalNotice(AbstractModel):
|
|
79
186
|
"""通知模板ID及通知等级列表,["Remind","Serious"]表示该通知模板仅接收提醒和严重类别的告警
|
|
80
187
|
|
|
@@ -1008,6 +1115,12 @@ class AlarmPolicy(AbstractModel):
|
|
|
1008
1115
|
:param _TagInstances: 标签
|
|
1009
1116
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1010
1117
|
:type TagInstances: list of TagInstance
|
|
1118
|
+
:param _Filter: 过滤条件
|
|
1119
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1120
|
+
:type Filter: :class:`tencentcloud.monitor.v20180724.models.AlarmConditionFilter`
|
|
1121
|
+
:param _GroupBy: 聚合条件
|
|
1122
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1123
|
+
:type GroupBy: list of AlarmGroupByItem
|
|
1011
1124
|
:param _FilterDimensionsParam: 策略关联的过滤维度信息
|
|
1012
1125
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
1013
1126
|
:type FilterDimensionsParam: str
|
|
@@ -1059,6 +1172,8 @@ class AlarmPolicy(AbstractModel):
|
|
|
1059
1172
|
self._RuleType = None
|
|
1060
1173
|
self._OriginId = None
|
|
1061
1174
|
self._TagInstances = None
|
|
1175
|
+
self._Filter = None
|
|
1176
|
+
self._GroupBy = None
|
|
1062
1177
|
self._FilterDimensionsParam = None
|
|
1063
1178
|
self._IsOneClick = None
|
|
1064
1179
|
self._OneClickStatus = None
|
|
@@ -1299,6 +1414,22 @@ class AlarmPolicy(AbstractModel):
|
|
|
1299
1414
|
def TagInstances(self, TagInstances):
|
|
1300
1415
|
self._TagInstances = TagInstances
|
|
1301
1416
|
|
|
1417
|
+
@property
|
|
1418
|
+
def Filter(self):
|
|
1419
|
+
return self._Filter
|
|
1420
|
+
|
|
1421
|
+
@Filter.setter
|
|
1422
|
+
def Filter(self, Filter):
|
|
1423
|
+
self._Filter = Filter
|
|
1424
|
+
|
|
1425
|
+
@property
|
|
1426
|
+
def GroupBy(self):
|
|
1427
|
+
return self._GroupBy
|
|
1428
|
+
|
|
1429
|
+
@GroupBy.setter
|
|
1430
|
+
def GroupBy(self, GroupBy):
|
|
1431
|
+
self._GroupBy = GroupBy
|
|
1432
|
+
|
|
1302
1433
|
@property
|
|
1303
1434
|
def FilterDimensionsParam(self):
|
|
1304
1435
|
return self._FilterDimensionsParam
|
|
@@ -1407,6 +1538,15 @@ class AlarmPolicy(AbstractModel):
|
|
|
1407
1538
|
obj = TagInstance()
|
|
1408
1539
|
obj._deserialize(item)
|
|
1409
1540
|
self._TagInstances.append(obj)
|
|
1541
|
+
if params.get("Filter") is not None:
|
|
1542
|
+
self._Filter = AlarmConditionFilter()
|
|
1543
|
+
self._Filter._deserialize(params.get("Filter"))
|
|
1544
|
+
if params.get("GroupBy") is not None:
|
|
1545
|
+
self._GroupBy = []
|
|
1546
|
+
for item in params.get("GroupBy"):
|
|
1547
|
+
obj = AlarmGroupByItem()
|
|
1548
|
+
obj._deserialize(item)
|
|
1549
|
+
self._GroupBy.append(obj)
|
|
1410
1550
|
self._FilterDimensionsParam = params.get("FilterDimensionsParam")
|
|
1411
1551
|
self._IsOneClick = params.get("IsOneClick")
|
|
1412
1552
|
self._OneClickStatus = params.get("OneClickStatus")
|
|
@@ -3607,16 +3747,16 @@ class CreateExporterIntegrationRequest(AbstractModel):
|
|
|
3607
3747
|
r"""
|
|
3608
3748
|
:param _InstanceId: 实例 ID
|
|
3609
3749
|
:type InstanceId: str
|
|
3610
|
-
:param _Kind: 类型
|
|
3750
|
+
:param _Kind: 类型(可通过 DescribePrometheusIntegrations 接口获取,取每一项中的 ExporterType 字段)
|
|
3611
3751
|
:type Kind: str
|
|
3612
3752
|
:param _Content: 集成配置
|
|
3613
3753
|
:type Content: str
|
|
3614
|
-
:param _KubeType: Kubernetes
|
|
3754
|
+
:param _KubeType: Kubernetes 集群类型,可不填,取值如下:
|
|
3615
3755
|
<li> 1= 容器集群(TKE) </li>
|
|
3616
|
-
<li> 2
|
|
3617
|
-
<li> 3= Prometheus
|
|
3756
|
+
<li> 2=弹性集群(EKS) </li>
|
|
3757
|
+
<li> 3= Prometheus管理的弹性集群(MEKS) </li>
|
|
3618
3758
|
:type KubeType: int
|
|
3619
|
-
:param _ClusterId: 集群 ID
|
|
3759
|
+
:param _ClusterId: 集群 ID,可不填
|
|
3620
3760
|
:type ClusterId: str
|
|
3621
3761
|
"""
|
|
3622
3762
|
self._InstanceId = None
|
|
@@ -4946,13 +5086,13 @@ class CreatePrometheusMultiTenantInstancePostPayModeRequest(AbstractModel):
|
|
|
4946
5086
|
r"""
|
|
4947
5087
|
:param _InstanceName: 实例名
|
|
4948
5088
|
:type InstanceName: str
|
|
4949
|
-
:param _VpcId: VPC ID
|
|
5089
|
+
:param _VpcId: VPC ID(可通过 vpc:DescribeVpcs 接口获取,与实例同地域)
|
|
4950
5090
|
:type VpcId: str
|
|
4951
|
-
:param _SubnetId: 子网 ID
|
|
5091
|
+
:param _SubnetId: 子网 ID(可通过 vpc:DescribeSubnets 接口获取)
|
|
4952
5092
|
:type SubnetId: str
|
|
4953
5093
|
:param _DataRetentionTime: 数据存储时间(单位天),限制值为15,30,45之一
|
|
4954
5094
|
:type DataRetentionTime: int
|
|
4955
|
-
:param _Zone: 可用区
|
|
5095
|
+
:param _Zone: 可用区(与子网同可用区)
|
|
4956
5096
|
:type Zone: str
|
|
4957
5097
|
:param _TagSpecification: 实例的标签
|
|
4958
5098
|
:type TagSpecification: list of PrometheusTag
|
|
@@ -5173,11 +5313,11 @@ class CreatePrometheusScrapeJobRequest(AbstractModel):
|
|
|
5173
5313
|
|
|
5174
5314
|
def __init__(self):
|
|
5175
5315
|
r"""
|
|
5176
|
-
:param _InstanceId: Prometheus 实例 ID
|
|
5316
|
+
:param _InstanceId: Prometheus 实例 ID
|
|
5177
5317
|
:type InstanceId: str
|
|
5178
|
-
:param _AgentId: Agent ID
|
|
5318
|
+
:param _AgentId: Agent ID(可通过DescribePrometheusAgents 接口获取)
|
|
5179
5319
|
:type AgentId: str
|
|
5180
|
-
:param _Config:
|
|
5320
|
+
:param _Config: 抓取任务配置
|
|
5181
5321
|
:type Config: str
|
|
5182
5322
|
"""
|
|
5183
5323
|
self._InstanceId = None
|
|
@@ -5341,7 +5481,7 @@ class CreateRecordingRuleRequest(AbstractModel):
|
|
|
5341
5481
|
r"""
|
|
5342
5482
|
:param _Name: 聚合规则名称
|
|
5343
5483
|
:type Name: str
|
|
5344
|
-
:param _Group: 聚合规则组内容,格式为 yaml
|
|
5484
|
+
:param _Group: 聚合规则组内容,格式为 yaml,通过 base64 进行编码。
|
|
5345
5485
|
:type Group: str
|
|
5346
5486
|
:param _InstanceId: Prometheus 实例 ID
|
|
5347
5487
|
:type InstanceId: str
|
|
@@ -5976,16 +6116,16 @@ class DeleteExporterIntegrationRequest(AbstractModel):
|
|
|
5976
6116
|
r"""
|
|
5977
6117
|
:param _InstanceId: 实例 ID
|
|
5978
6118
|
:type InstanceId: str
|
|
5979
|
-
:param _Kind: 类型
|
|
6119
|
+
:param _Kind: 类型(可通过 DescribeExporterIntegrations获取)
|
|
5980
6120
|
:type Kind: str
|
|
5981
6121
|
:param _Name: 名字
|
|
5982
6122
|
:type Name: str
|
|
5983
6123
|
:param _KubeType: Kubernetes 集群类型,取值如下:
|
|
5984
6124
|
<li> 1= 容器集群(TKE) </li>
|
|
5985
|
-
<li> 2
|
|
5986
|
-
<li> 3= Prometheus
|
|
6125
|
+
<li> 2=弹性集群(EKS) </li>
|
|
6126
|
+
<li> 3= Prometheus管理的弹性集群(MEKS) </li>
|
|
5987
6127
|
:type KubeType: int
|
|
5988
|
-
:param _ClusterId: 集群 ID
|
|
6128
|
+
:param _ClusterId: 集群 ID,可不填
|
|
5989
6129
|
:type ClusterId: str
|
|
5990
6130
|
"""
|
|
5991
6131
|
self._InstanceId = None
|
|
@@ -6698,9 +6838,9 @@ class DeletePrometheusScrapeJobsRequest(AbstractModel):
|
|
|
6698
6838
|
r"""
|
|
6699
6839
|
:param _InstanceId: 实例 ID
|
|
6700
6840
|
:type InstanceId: str
|
|
6701
|
-
:param _AgentId: Agent ID
|
|
6841
|
+
:param _AgentId: Agent ID(可通过 DescribePrometheusAgents 接口获取)
|
|
6702
6842
|
:type AgentId: str
|
|
6703
|
-
:param _JobIds: 任务 ID 列表
|
|
6843
|
+
:param _JobIds: 任务 ID 列表(可通过 DescribePrometheusScrapeJobs 接口获取)
|
|
6704
6844
|
:type JobIds: list of str
|
|
6705
6845
|
"""
|
|
6706
6846
|
self._InstanceId = None
|
|
@@ -30198,6 +30338,13 @@ class UpgradeGrafanaDashboardRequest(AbstractModel):
|
|
|
30198
30338
|
:param _InstanceId: 实例 ID
|
|
30199
30339
|
:type InstanceId: str
|
|
30200
30340
|
:param _IntegrationCodes: Prometheus 集成项 Code,升级对应的 Dashboard,取值如下:
|
|
30341
|
+
<li>qcloud</li>
|
|
30342
|
+
<li>cvm_process_exporter</li>
|
|
30343
|
+
<li>cvm_node_exporter</li>
|
|
30344
|
+
<li>cvm</li>
|
|
30345
|
+
<li>kubernetes</li>
|
|
30346
|
+
<li>cdwch</li>
|
|
30347
|
+
<li>rocketmq</li>
|
|
30201
30348
|
<li>spring_mvc</li>
|
|
30202
30349
|
<li>mysql</li>
|
|
30203
30350
|
<li>go</li>
|
|
@@ -30215,6 +30362,8 @@ class UpgradeGrafanaDashboardRequest(AbstractModel):
|
|
|
30215
30362
|
<li>tps</li>
|
|
30216
30363
|
<li>istio</li>
|
|
30217
30364
|
<li>etcd</li>
|
|
30365
|
+
<li>pts</li>
|
|
30366
|
+
<li>kong</li>
|
|
30218
30367
|
:type IntegrationCodes: list of str
|
|
30219
30368
|
"""
|
|
30220
30369
|
self._InstanceId = None
|
|
@@ -213,7 +213,7 @@ class MonitorClient(AbstractClient):
|
|
|
213
213
|
|
|
214
214
|
|
|
215
215
|
def CreateExporterIntegration(self, request):
|
|
216
|
-
"""
|
|
216
|
+
"""创建集成中心 exporter 集成,因集成较多,建议控制台创建集成。(前提:已授权创建托管 EKS 集群,验证方式:1. 控制台界面确认,未提示授权则表示已授权创建;2. 通过 DescribePrometheusInstanceInitStatus 接口查询集群状态,如果托管集群不存在,可通过 RunPrometheusInstance 接口创建)
|
|
217
217
|
|
|
218
218
|
:param request: Request instance for CreateExporterIntegration.
|
|
219
219
|
:type request: :class:`tencentcloud.monitor.v20180724.models.CreateExporterIntegrationRequest`
|
|
@@ -489,7 +489,7 @@ class MonitorClient(AbstractClient):
|
|
|
489
489
|
|
|
490
490
|
|
|
491
491
|
def CreatePrometheusScrapeJob(self, request):
|
|
492
|
-
"""创建 Prometheus 抓取任务
|
|
492
|
+
"""创建 Prometheus Agent 抓取任务
|
|
493
493
|
|
|
494
494
|
:param request: Request instance for CreatePrometheusScrapeJob.
|
|
495
495
|
:type request: :class:`tencentcloud.monitor.v20180724.models.CreatePrometheusScrapeJobRequest`
|
|
@@ -675,7 +675,7 @@ class MonitorClient(AbstractClient):
|
|
|
675
675
|
|
|
676
676
|
|
|
677
677
|
def DeleteExporterIntegration(self, request):
|
|
678
|
-
"""
|
|
678
|
+
"""删除集成中心 exporter 集成
|
|
679
679
|
|
|
680
680
|
:param request: Request instance for DeleteExporterIntegration.
|
|
681
681
|
:type request: :class:`tencentcloud.monitor.v20180724.models.DeleteExporterIntegrationRequest`
|
|
@@ -882,7 +882,7 @@ class MonitorClient(AbstractClient):
|
|
|
882
882
|
|
|
883
883
|
|
|
884
884
|
def DeletePrometheusScrapeJobs(self, request):
|
|
885
|
-
"""删除 Prometheus 抓取任务
|
|
885
|
+
"""删除 Prometheus Agent 抓取任务
|
|
886
886
|
|
|
887
887
|
:param request: Request instance for DeletePrometheusScrapeJobs.
|
|
888
888
|
:type request: :class:`tencentcloud.monitor.v20180724.models.DeletePrometheusScrapeJobsRequest`
|
|
@@ -2341,7 +2341,7 @@ class MonitorClient(AbstractClient):
|
|
|
2341
2341
|
|
|
2342
2342
|
|
|
2343
2343
|
def DestroyPrometheusInstance(self, request):
|
|
2344
|
-
"""彻底删除 Prometheus 实例相关数据,给定的实例必须先被 Terminate
|
|
2344
|
+
"""彻底删除 Prometheus 实例相关数据,给定的实例必须先被 Terminate(该接口是异步接口,实例是否释放需要通过 DescribePrometheusInstances 接口返回的状态来判断)。
|
|
2345
2345
|
|
|
2346
2346
|
:param request: Request instance for DestroyPrometheusInstance.
|
|
2347
2347
|
:type request: :class:`tencentcloud.monitor.v20180724.models.DestroyPrometheusInstanceRequest`
|
|
@@ -3518,6 +3518,90 @@ class PrivateZoneRecord(AbstractModel):
|
|
|
3518
3518
|
|
|
3519
3519
|
|
|
3520
3520
|
|
|
3521
|
+
class QueryAsyncBindVpcStatusRequest(AbstractModel):
|
|
3522
|
+
"""QueryAsyncBindVpcStatus请求参数结构体
|
|
3523
|
+
|
|
3524
|
+
"""
|
|
3525
|
+
|
|
3526
|
+
def __init__(self):
|
|
3527
|
+
r"""
|
|
3528
|
+
:param _UniqId: 唯一ID
|
|
3529
|
+
:type UniqId: str
|
|
3530
|
+
"""
|
|
3531
|
+
self._UniqId = None
|
|
3532
|
+
|
|
3533
|
+
@property
|
|
3534
|
+
def UniqId(self):
|
|
3535
|
+
return self._UniqId
|
|
3536
|
+
|
|
3537
|
+
@UniqId.setter
|
|
3538
|
+
def UniqId(self, UniqId):
|
|
3539
|
+
self._UniqId = UniqId
|
|
3540
|
+
|
|
3541
|
+
|
|
3542
|
+
def _deserialize(self, params):
|
|
3543
|
+
self._UniqId = params.get("UniqId")
|
|
3544
|
+
memeber_set = set(params.keys())
|
|
3545
|
+
for name, value in vars(self).items():
|
|
3546
|
+
property_name = name[1:]
|
|
3547
|
+
if property_name in memeber_set:
|
|
3548
|
+
memeber_set.remove(property_name)
|
|
3549
|
+
if len(memeber_set) > 0:
|
|
3550
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
3551
|
+
|
|
3552
|
+
|
|
3553
|
+
|
|
3554
|
+
class QueryAsyncBindVpcStatusResponse(AbstractModel):
|
|
3555
|
+
"""QueryAsyncBindVpcStatus返回参数结构体
|
|
3556
|
+
|
|
3557
|
+
"""
|
|
3558
|
+
|
|
3559
|
+
def __init__(self):
|
|
3560
|
+
r"""
|
|
3561
|
+
:param _Status: processing 处理中,success 执行成功,
|
|
3562
|
+
failed 执行失败
|
|
3563
|
+
:type Status: str
|
|
3564
|
+
:param _ErrorMsg: 错误信息
|
|
3565
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3566
|
+
:type ErrorMsg: str
|
|
3567
|
+
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
3568
|
+
:type RequestId: str
|
|
3569
|
+
"""
|
|
3570
|
+
self._Status = None
|
|
3571
|
+
self._ErrorMsg = None
|
|
3572
|
+
self._RequestId = None
|
|
3573
|
+
|
|
3574
|
+
@property
|
|
3575
|
+
def Status(self):
|
|
3576
|
+
return self._Status
|
|
3577
|
+
|
|
3578
|
+
@Status.setter
|
|
3579
|
+
def Status(self, Status):
|
|
3580
|
+
self._Status = Status
|
|
3581
|
+
|
|
3582
|
+
@property
|
|
3583
|
+
def ErrorMsg(self):
|
|
3584
|
+
return self._ErrorMsg
|
|
3585
|
+
|
|
3586
|
+
@ErrorMsg.setter
|
|
3587
|
+
def ErrorMsg(self, ErrorMsg):
|
|
3588
|
+
self._ErrorMsg = ErrorMsg
|
|
3589
|
+
|
|
3590
|
+
@property
|
|
3591
|
+
def RequestId(self):
|
|
3592
|
+
return self._RequestId
|
|
3593
|
+
|
|
3594
|
+
@RequestId.setter
|
|
3595
|
+
def RequestId(self, RequestId):
|
|
3596
|
+
self._RequestId = RequestId
|
|
3597
|
+
|
|
3598
|
+
|
|
3599
|
+
def _deserialize(self, params):
|
|
3600
|
+
self._Status = params.get("Status")
|
|
3601
|
+
self._ErrorMsg = params.get("ErrorMsg")
|
|
3602
|
+
self._RequestId = params.get("RequestId")
|
|
3603
|
+
|
|
3604
|
+
|
|
3521
3605
|
class SubscribePrivateZoneServiceRequest(AbstractModel):
|
|
3522
3606
|
"""SubscribePrivateZoneService请求参数结构体
|
|
3523
3607
|
|
|
@@ -555,6 +555,29 @@ class PrivatednsClient(AbstractClient):
|
|
|
555
555
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
556
556
|
|
|
557
557
|
|
|
558
|
+
def QueryAsyncBindVpcStatus(self, request):
|
|
559
|
+
"""查询异步绑定vpc操作状态
|
|
560
|
+
|
|
561
|
+
:param request: Request instance for QueryAsyncBindVpcStatus.
|
|
562
|
+
:type request: :class:`tencentcloud.privatedns.v20201028.models.QueryAsyncBindVpcStatusRequest`
|
|
563
|
+
:rtype: :class:`tencentcloud.privatedns.v20201028.models.QueryAsyncBindVpcStatusResponse`
|
|
564
|
+
|
|
565
|
+
"""
|
|
566
|
+
try:
|
|
567
|
+
params = request._serialize()
|
|
568
|
+
headers = request.headers
|
|
569
|
+
body = self.call("QueryAsyncBindVpcStatus", params, headers=headers)
|
|
570
|
+
response = json.loads(body)
|
|
571
|
+
model = models.QueryAsyncBindVpcStatusResponse()
|
|
572
|
+
model._deserialize(response["Response"])
|
|
573
|
+
return model
|
|
574
|
+
except Exception as e:
|
|
575
|
+
if isinstance(e, TencentCloudSDKException):
|
|
576
|
+
raise
|
|
577
|
+
else:
|
|
578
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
579
|
+
|
|
580
|
+
|
|
558
581
|
def SubscribePrivateZoneService(self, request):
|
|
559
582
|
"""开通私有域解析
|
|
560
583
|
|
|
@@ -95,7 +95,7 @@ class AbortJobRequest(AbstractModel):
|
|
|
95
95
|
|
|
96
96
|
def __init__(self):
|
|
97
97
|
r"""
|
|
98
|
-
:param _JobId:
|
|
98
|
+
:param _JobId: 待停止的压测任务的 ID(所有的压测任务 ID 可以从 DescribeJobs 接口获取)
|
|
99
99
|
:type JobId: str
|
|
100
100
|
:param _ProjectId: 项目ID
|
|
101
101
|
:type ProjectId: str
|
|
@@ -191,7 +191,7 @@ class AdjustJobSpeedRequest(AbstractModel):
|
|
|
191
191
|
r"""
|
|
192
192
|
:param _JobId: 任务ID
|
|
193
193
|
:type JobId: str
|
|
194
|
-
:param _TargetRequestsPerSecond: 目标RPS
|
|
194
|
+
:param _TargetRequestsPerSecond: 目标 RPS。其取值应大于起始 RPS,并且小于最大 RPS
|
|
195
195
|
:type TargetRequestsPerSecond: int
|
|
196
196
|
"""
|
|
197
197
|
self._JobId = None
|
|
@@ -1093,11 +1093,11 @@ class CreateAlertChannelRequest(AbstractModel):
|
|
|
1093
1093
|
|
|
1094
1094
|
def __init__(self):
|
|
1095
1095
|
r"""
|
|
1096
|
-
:param _NoticeId:
|
|
1096
|
+
:param _NoticeId: monitor 服务的告警通知模板的 NoticeId,可从 monitor 服务的云 API 的 DescribeAlarmNotices 接口响应里的 Id 字段获取。(CreateAlertChannel 接口的入参里用于标识一个告警通知模板的 AMPConsumerId 与 NoticeId 二选一即可)
|
|
1097
1097
|
:type NoticeId: str
|
|
1098
1098
|
:param _ProjectId: 项目 ID
|
|
1099
1099
|
:type ProjectId: str
|
|
1100
|
-
:param _AMPConsumerId:
|
|
1100
|
+
:param _AMPConsumerId: monitor 服务的告警通知模板的 AMPConsumerId,可从 monitor 服务的云 API 的 DescribeAlarmNotices 接口响应里的 AMPConsumerId 字段获取。(CreateAlertChannel 接口的入参里用于标识一个告警通知模板的 AMPConsumerId 与 NoticeId 二选一即可)
|
|
1101
1101
|
:type AMPConsumerId: str
|
|
1102
1102
|
"""
|
|
1103
1103
|
self._NoticeId = None
|
|
@@ -1353,7 +1353,7 @@ class CreateFileRequest(AbstractModel):
|
|
|
1353
1353
|
|
|
1354
1354
|
def __init__(self):
|
|
1355
1355
|
r"""
|
|
1356
|
-
:param _FileId: 文件 ID
|
|
1356
|
+
:param _FileId: 文件 ID。其值应为前序步骤上传该文件到 cos 桶后,文件在 cos 桶中的相应目录
|
|
1357
1357
|
:type FileId: str
|
|
1358
1358
|
:param _ProjectId: 项目 ID
|
|
1359
1359
|
:type ProjectId: str
|
|
@@ -2489,7 +2489,7 @@ class DeleteAlertChannelRequest(AbstractModel):
|
|
|
2489
2489
|
r"""
|
|
2490
2490
|
:param _ProjectId: 项目 ID
|
|
2491
2491
|
:type ProjectId: str
|
|
2492
|
-
:param _NoticeId: Notice ID
|
|
2492
|
+
:param _NoticeId: 待删除的通知渠道的 Notice ID(所有通知渠道的 Notice ID 可以从 DescribeAlertChannels 接口获取)
|
|
2493
2493
|
:type NoticeId: str
|
|
2494
2494
|
"""
|
|
2495
2495
|
self._ProjectId = None
|
|
@@ -2629,7 +2629,7 @@ class DeleteFilesRequest(AbstractModel):
|
|
|
2629
2629
|
r"""
|
|
2630
2630
|
:param _ProjectId: 项目 ID
|
|
2631
2631
|
:type ProjectId: str
|
|
2632
|
-
:param _FileIds:
|
|
2632
|
+
:param _FileIds: 待删除的文件的 ID(所有文件 ID 可从接口 DescribeFiles 获取)
|
|
2633
2633
|
:type FileIds: list of str
|
|
2634
2634
|
"""
|
|
2635
2635
|
self._ProjectId = None
|
|
@@ -2697,7 +2697,7 @@ class DeleteJobsRequest(AbstractModel):
|
|
|
2697
2697
|
|
|
2698
2698
|
def __init__(self):
|
|
2699
2699
|
r"""
|
|
2700
|
-
:param _JobIds:
|
|
2700
|
+
:param _JobIds: 待删除的任务的 ID(所有任务的 ID 可以从 DescribeJobs 获取)
|
|
2701
2701
|
:type JobIds: list of str
|
|
2702
2702
|
:param _ProjectId: 项目ID
|
|
2703
2703
|
:type ProjectId: str
|
|
@@ -4064,9 +4064,9 @@ class DescribeLabelValuesRequest(AbstractModel):
|
|
|
4064
4064
|
:type JobId: str
|
|
4065
4065
|
:param _ScenarioId: 场景ID
|
|
4066
4066
|
:type ScenarioId: str
|
|
4067
|
-
:param _Metric:
|
|
4067
|
+
:param _Metric: 指标名。取值范围参见 DescribeMetricLabelWithValues 接口返回的所有指标名
|
|
4068
4068
|
:type Metric: str
|
|
4069
|
-
:param _LabelName:
|
|
4069
|
+
:param _LabelName: 标签名。取值范围参见 DescribeMetricLabelWithValues 接口返回的指标及其支持的标签名
|
|
4070
4070
|
:type LabelName: str
|
|
4071
4071
|
:param _ProjectId: 项目ID
|
|
4072
4072
|
:type ProjectId: str
|
|
@@ -4802,13 +4802,13 @@ class DescribeSampleBatchQueryRequest(AbstractModel):
|
|
|
4802
4802
|
|
|
4803
4803
|
def __init__(self):
|
|
4804
4804
|
r"""
|
|
4805
|
-
:param _JobId:
|
|
4805
|
+
:param _JobId: 压测任务的 ID
|
|
4806
4806
|
:type JobId: str
|
|
4807
|
-
:param _ScenarioId:
|
|
4807
|
+
:param _ScenarioId: 场景的 ID
|
|
4808
4808
|
:type ScenarioId: str
|
|
4809
4809
|
:param _Queries: 查询指标数组
|
|
4810
4810
|
:type Queries: list of InternalMetricQuery
|
|
4811
|
-
:param _ProjectId:
|
|
4811
|
+
:param _ProjectId: 项目的 ID
|
|
4812
4812
|
:type ProjectId: str
|
|
4813
4813
|
"""
|
|
4814
4814
|
self._JobId = None
|
|
@@ -5325,11 +5325,11 @@ class DescribeSampleMatrixQueryRequest(AbstractModel):
|
|
|
5325
5325
|
:type ProjectId: str
|
|
5326
5326
|
:param _ScenarioId: 场景ID
|
|
5327
5327
|
:type ScenarioId: str
|
|
5328
|
-
:param _Metric:
|
|
5328
|
+
:param _Metric: 指标名。取值范围参见 DescribeMetricLabelWithValues 接口返回的所有指标名
|
|
5329
5329
|
:type Metric: str
|
|
5330
|
-
:param _Aggregation:
|
|
5330
|
+
:param _Aggregation: 聚合函数。取值范围:Rate,Count,Avg,P90,P95,P99,Gauge
|
|
5331
5331
|
:type Aggregation: str
|
|
5332
|
-
:param _Filters:
|
|
5332
|
+
:param _Filters: 用标签过滤规则来过滤指标,规则中包含标签名 LabelName、标签值 LabelValue、操作符 Operator(0代表相等,1代表不等)
|
|
5333
5333
|
:type Filters: list of Filter
|
|
5334
5334
|
:param _GroupBy: 分组
|
|
5335
5335
|
:type GroupBy: list of str
|
|
@@ -5473,13 +5473,13 @@ class DescribeSampleQueryRequest(AbstractModel):
|
|
|
5473
5473
|
:type JobId: str
|
|
5474
5474
|
:param _ScenarioId: 场景Id
|
|
5475
5475
|
:type ScenarioId: str
|
|
5476
|
-
:param _Metric:
|
|
5476
|
+
:param _Metric: 指标名。取值范围参见 DescribeMetricLabelWithValues 接口返回的所有指标名
|
|
5477
5477
|
:type Metric: str
|
|
5478
|
-
:param _Aggregation:
|
|
5478
|
+
:param _Aggregation: 聚合函数。取值范围:Rate,Count,Avg,P90,P95,P99,Gauge
|
|
5479
5479
|
:type Aggregation: str
|
|
5480
5480
|
:param _ProjectId: 项目ID
|
|
5481
5481
|
:type ProjectId: str
|
|
5482
|
-
:param _Labels:
|
|
5482
|
+
:param _Labels: 标签过滤条件。各指标支持的标签参见 DescribeMetricLabelWithValues 接口返回的所有指标及其支持的标签
|
|
5483
5483
|
:type Labels: list of Label
|
|
5484
5484
|
"""
|
|
5485
5485
|
self._JobId = None
|
|
@@ -6832,11 +6832,11 @@ class InternalMetricQuery(AbstractModel):
|
|
|
6832
6832
|
r"""
|
|
6833
6833
|
:param _Metric: 指标名
|
|
6834
6834
|
:type Metric: str
|
|
6835
|
-
:param _Aggregation:
|
|
6835
|
+
:param _Aggregation: 聚合函数。取值范围:Rate,Count,Avg,P90,P95,P99,Gauge
|
|
6836
6836
|
:type Aggregation: str
|
|
6837
6837
|
:param _Labels: deprecated, 请使用Filters
|
|
6838
6838
|
:type Labels: list of Label
|
|
6839
|
-
:param _Filters:
|
|
6839
|
+
:param _Filters: 用标签过滤规则来过滤指标,规则中包含标签名 LabelName、标签值 LabelValue、操作符 Operator(0代表相等,1代表不等)
|
|
6840
6840
|
:type Filters: list of Filter
|
|
6841
6841
|
:param _GroupBy: 指标分组
|
|
6842
6842
|
:type GroupBy: list of str
|
|
@@ -7544,9 +7544,9 @@ class Label(AbstractModel):
|
|
|
7544
7544
|
|
|
7545
7545
|
def __init__(self):
|
|
7546
7546
|
r"""
|
|
7547
|
-
:param _LabelName:
|
|
7547
|
+
:param _LabelName: 标签名
|
|
7548
7548
|
:type LabelName: str
|
|
7549
|
-
:param _LabelValue:
|
|
7549
|
+
:param _LabelValue: 标签值
|
|
7550
7550
|
:type LabelValue: str
|
|
7551
7551
|
"""
|
|
7552
7552
|
self._LabelName = None
|
|
@@ -10542,7 +10542,7 @@ class UpdateFileScenarioRelationRequest(AbstractModel):
|
|
|
10542
10542
|
|
|
10543
10543
|
def __init__(self):
|
|
10544
10544
|
r"""
|
|
10545
|
-
:param _FileId: 文件 ID
|
|
10545
|
+
:param _FileId: 文件 ID。其值应为前序步骤上传该文件到 cos 桶后,文件在 cos 桶中的相应目录
|
|
10546
10546
|
:type FileId: str
|
|
10547
10547
|
:param _ProjectId: 项目 ID
|
|
10548
10548
|
:type ProjectId: str
|
|
@@ -10835,7 +10835,7 @@ class UpdateScenarioRequest(AbstractModel):
|
|
|
10835
10835
|
:type Name: str
|
|
10836
10836
|
:param _Description: 场景描述
|
|
10837
10837
|
:type Description: str
|
|
10838
|
-
:param _Type:
|
|
10838
|
+
:param _Type: 压测场景的模式类型。取值范围:pts-http 代表简单模式,pts-js 代表脚本模式,pts-jmeter 代表 JMeter 模式。
|
|
10839
10839
|
:type Type: str
|
|
10840
10840
|
:param _Load: 施压配置
|
|
10841
10841
|
:type Load: :class:`tencentcloud.pts.v20210728.models.Load`
|