tccli 3.0.1286.1__py2.py3-none-any.whl → 3.0.1288.1__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.
- tccli/__init__.py +1 -1
- tccli/services/autoscaling/autoscaling_client.py +53 -0
- tccli/services/autoscaling/v20180419/api.json +53 -0
- tccli/services/autoscaling/v20180419/examples.json +8 -0
- tccli/services/billing/v20180709/api.json +254 -254
- tccli/services/captcha/v20190722/api.json +79 -77
- tccli/services/cdc/v20201214/api.json +123 -113
- tccli/services/cdwch/v20200915/api.json +70 -2
- tccli/services/cdwch/v20200915/examples.json +2 -2
- tccli/services/cdz/v20221123/api.json +10 -10
- tccli/services/cfs/v20190719/api.json +1 -1
- tccli/services/cvm/cvm_client.py +53 -0
- tccli/services/cvm/v20170312/api.json +110 -5
- tccli/services/cvm/v20170312/examples.json +8 -0
- tccli/services/cwp/v20180228/api.json +63 -15
- tccli/services/cynosdb/v20190107/api.json +298 -298
- tccli/services/dbbrain/v20210527/api.json +11 -2
- tccli/services/domain/v20180808/api.json +49 -29
- tccli/services/ess/v20201111/api.json +25 -1
- tccli/services/essbasic/v20210526/api.json +27 -3
- tccli/services/hunyuan/hunyuan_client.py +53 -0
- tccli/services/hunyuan/v20230901/api.json +329 -12
- tccli/services/hunyuan/v20230901/examples.json +8 -0
- tccli/services/lcic/v20220817/api.json +2 -2
- tccli/services/lighthouse/v20200324/api.json +47 -47
- tccli/services/lke/v20231130/api.json +10 -10
- tccli/services/lke/v20231130/examples.json +1 -1
- tccli/services/mariadb/v20170312/api.json +30 -30
- tccli/services/mongodb/v20190725/api.json +3 -3
- tccli/services/ocr/v20181119/api.json +36 -0
- tccli/services/redis/v20180412/api.json +4 -4
- tccli/services/ses/v20201002/api.json +1 -1
- tccli/services/ssl/v20191205/api.json +317 -317
- tccli/services/ssl/v20191205/examples.json +6 -6
- tccli/services/tat/v20201028/api.json +7 -7
- tccli/services/tat/v20201028/examples.json +1 -1
- tccli/services/tcb/v20180608/api.json +232 -231
- tccli/services/tcb/v20180608/examples.json +1 -7
- tccli/services/tchd/tchd_client.py +53 -0
- tccli/services/tchd/v20230306/api.json +89 -0
- tccli/services/tchd/v20230306/examples.json +8 -0
- tccli/services/tdmq/v20200217/api.json +232 -222
- tccli/services/teo/v20220901/api.json +129 -7
- tccli/services/trocket/trocket_client.py +53 -0
- tccli/services/trocket/v20230308/api.json +61 -0
- tccli/services/trocket/v20230308/examples.json +8 -0
- tccli/services/trro/trro_client.py +53 -0
- tccli/services/trro/v20220325/api.json +70 -0
- tccli/services/trro/v20220325/examples.json +8 -0
- tccli/services/waf/v20180125/api.json +225 -0
- tccli/services/waf/v20180125/examples.json +24 -0
- tccli/services/waf/waf_client.py +159 -0
- tccli/services/wedata/v20210820/api.json +124 -204
- tccli/services/wedata/v20210820/examples.json +7 -1
- {tccli-3.0.1286.1.dist-info → tccli-3.0.1288.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1286.1.dist-info → tccli-3.0.1288.1.dist-info}/RECORD +59 -59
- {tccli-3.0.1286.1.dist-info → tccli-3.0.1288.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1286.1.dist-info → tccli-3.0.1288.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1286.1.dist-info → tccli-3.0.1288.1.dist-info}/license_files/LICENSE +0 -0
@@ -285,16 +285,10 @@
|
|
285
285
|
}
|
286
286
|
],
|
287
287
|
"DescribeCloudBaseRunServer": [
|
288
|
-
{
|
289
|
-
"document": "",
|
290
|
-
"input": "https://tcb.tencentcloudapi.com/?Action=DescribeCloudBaseRunServer\n&EnvId=lotestapi100004\n&ServerName=dockerservicename\n&Offset=0\n&Limit=20\n&<公共请求参数>",
|
291
|
-
"output": "{\n \"Response\": {\n \"ImageRepo\": \"tcb-100019615070-mjph/ca-znrdxowd_test-domain2\",\n \"IsPublic\": false,\n \"RequestId\": \"52855bd0-25cc-4294-913c-0b8ee0c65e76\",\n \"ServerName\": \"test-domain2\",\n \"SourceType\": \"custom\",\n \"TotalCount\": 5,\n \"TrafficType\": \"\",\n \"VersionItems\": [\n {\n \"VersionName\": \"test-domain2-009\",\n \"FlowRatio\": 100,\n \"Status\": \"normal\",\n \"CreatedTime\": \"2023-11-13 17:10:30\",\n \"UpdatedTime\": \"2023-11-13 17:41:00\",\n \"BuildId\": 37196953,\n \"UploadType\": \"package\",\n \"Remark\": \"\",\n \"UrlParam\": null,\n \"Priority\": 0,\n \"IsDefaultPriority\": false,\n \"FlowParams\": null,\n \"MinReplicas\": 0,\n \"MaxReplicas\": 5,\n \"RunId\": \"multi_tenant_1r2Sxhqf7GP3Mx\",\n \"Percent\": 0,\n \"CurrentReplicas\": 0,\n \"Architecture\": \"\"\n }\n ]\n }\n}",
|
292
|
-
"title": "查看某个服务的装填"
|
293
|
-
},
|
294
288
|
{
|
295
289
|
"document": "查询单个云托管服务实例",
|
296
290
|
"input": "POST / HTTP/1.1\nHost: tcb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCloudBaseRunServer\n<公共请求参数>\n\n{\n \"EnvId\": \"pre-tenant-4g9db6fj62889354\",\n \"ServerName\": \"envparam\",\n \"Offset\": 0,\n \"Limit\": 100\n}",
|
297
|
-
"output": "{\n \"Response\": {\n \"ImageRepo\": \"tcb-100019615070-mjph/ca-znrdxowd_envparam\",\n \"IsPublic\": false,\n \"RequestId\": \"0a14bef2-57d8-4d74-9d54-c0850e5395b3\",\n \"ServerName\": \"envparam\",\n \"SourceType\": \"custom\",\n \"Tag\": \"\",\n \"TotalCount\": 1,\n \"TrafficType\": \"\",\n \"VersionItems\": [\n {\n \"Architecture\": \"\",\n \"BuildId\": 41355587,\n \"CreatedTime\": \"2024-04-03 13:12:39\",\n \"CurrentReplicas\": 0,\n \"FlowParams\": null,\n \"FlowRatio\": 100,\n \"IsDefaultPriority\": false,\n \"MaxReplicas\": 5,\n \"MinReplicas\": 0,\n \"Percent\": 0,\n \"Priority\": 0,\n \"Remark\": \"\",\n \"RunId\": \"multi_tenant_1rrsvOvTuxr1La\",\n \"Status\": \"normal\",\n \"UpdatedTime\": \"2024-04-03 13:43:14\",\n \"UploadType\": \"repository\",\n \"UrlParam\":
|
291
|
+
"output": "{\n \"Response\": {\n \"ImageRepo\": \"tcb-100019615070-mjph/ca-znrdxowd_envparam\",\n \"IsPublic\": false,\n \"RequestId\": \"0a14bef2-57d8-4d74-9d54-c0850e5395b3\",\n \"ServerName\": \"envparam\",\n \"SourceType\": \"custom\",\n \"Tag\": \"\",\n \"TotalCount\": 1,\n \"TrafficType\": \"\",\n \"VersionItems\": [\n {\n \"Architecture\": \"\",\n \"BuildId\": 41355587,\n \"CreatedTime\": \"2024-04-03 13:12:39\",\n \"CurrentReplicas\": 0,\n \"FlowParams\": null,\n \"FlowRatio\": 100,\n \"IsDefaultPriority\": false,\n \"MaxReplicas\": 5,\n \"MinReplicas\": 0,\n \"Percent\": 0,\n \"Priority\": 0,\n \"Remark\": \"\",\n \"RunId\": \"multi_tenant_1rrsvOvTuxr1La\",\n \"Status\": \"normal\",\n \"UpdatedTime\": \"2024-04-03 13:43:14\",\n \"UploadType\": \"repository\",\n \"UrlParam\": {\n \"Key\": \"url1\",\n \"Value\": \"value1\"\n },\n \"VersionName\": \"envparam-001\"\n }\n ]\n }\n}",
|
298
292
|
"title": "查询单个云托管服务实例"
|
299
293
|
}
|
300
294
|
],
|
@@ -69,6 +69,58 @@ def doDescribeEvents(args, parsed_globals):
|
|
69
69
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
70
70
|
|
71
71
|
|
72
|
+
def doDescribeEventStatistics(args, parsed_globals):
|
73
|
+
g_param = parse_global_arg(parsed_globals)
|
74
|
+
|
75
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
76
|
+
cred = credential.CVMRoleCredential()
|
77
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
78
|
+
cred = credential.STSAssumeRoleCredential(
|
79
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
80
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
81
|
+
)
|
82
|
+
elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN):
|
83
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
84
|
+
else:
|
85
|
+
cred = credential.Credential(
|
86
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
87
|
+
)
|
88
|
+
http_profile = HttpProfile(
|
89
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
90
|
+
reqMethod="POST",
|
91
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
92
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
93
|
+
)
|
94
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
95
|
+
if g_param[OptionsDefine.Language]:
|
96
|
+
profile.language = g_param[OptionsDefine.Language]
|
97
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
98
|
+
client = mod.TchdClient(cred, g_param[OptionsDefine.Region], profile)
|
99
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
100
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
101
|
+
model = models.DescribeEventStatisticsRequest()
|
102
|
+
model.from_json_string(json.dumps(args))
|
103
|
+
start_time = time.time()
|
104
|
+
while True:
|
105
|
+
rsp = client.DescribeEventStatistics(model)
|
106
|
+
result = rsp.to_json_string()
|
107
|
+
try:
|
108
|
+
json_obj = json.loads(result)
|
109
|
+
except TypeError as e:
|
110
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
111
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
112
|
+
break
|
113
|
+
cur_time = time.time()
|
114
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
115
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
116
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
117
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
118
|
+
else:
|
119
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
120
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
121
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
122
|
+
|
123
|
+
|
72
124
|
CLIENT_MAP = {
|
73
125
|
"v20230306": tchd_client_v20230306,
|
74
126
|
|
@@ -81,6 +133,7 @@ MODELS_MAP = {
|
|
81
133
|
|
82
134
|
ACTION_MAP = {
|
83
135
|
"DescribeEvents": doDescribeEvents,
|
136
|
+
"DescribeEventStatistics": doDescribeEventStatistics,
|
84
137
|
|
85
138
|
}
|
86
139
|
|
@@ -1,5 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"actions": {
|
3
|
+
"DescribeEventStatistics": {
|
4
|
+
"document": "本接口用于查询腾讯云健康看板的实时可用性事件信息,可以通过产品列表、地域进行过滤查询。\n可以参考健康看板历史事件页面来获取查询案例(链接:https://status.cloud.tencent.com/history)。",
|
5
|
+
"input": "DescribeEventStatisticsRequest",
|
6
|
+
"name": "查看事件统计",
|
7
|
+
"output": "DescribeEventStatisticsResponse",
|
8
|
+
"status": "online"
|
9
|
+
},
|
3
10
|
"DescribeEvents": {
|
4
11
|
"document": "本接口用于查询腾讯云健康看板的可用性事件信息,可以通过产品列表、地域列表和事件发生日期进行过滤查询。\n当查询的产品对应时间内无事件时将返回空结果。\n可以参考健康看板历史事件页面来获取查询案例(链接:https://status.cloud.tencent.com/history)。",
|
5
12
|
"input": "DescribeEventsRequest",
|
@@ -15,6 +22,52 @@
|
|
15
22
|
"serviceShortName": "tchd"
|
16
23
|
},
|
17
24
|
"objects": {
|
25
|
+
"DescribeEventStatisticsRequest": {
|
26
|
+
"document": "DescribeEventStatistics请求参数结构体",
|
27
|
+
"members": [
|
28
|
+
{
|
29
|
+
"disabled": false,
|
30
|
+
"document": "1. 查询非区域性产品事件时,地域ID指定为:non-regional\n2. 其他地域ID取值请参考:https://cloud.tencent.com/document/api/213/15692",
|
31
|
+
"example": "\"ap-beijing\"",
|
32
|
+
"member": "string",
|
33
|
+
"name": "RegionId",
|
34
|
+
"required": true,
|
35
|
+
"type": "string"
|
36
|
+
},
|
37
|
+
{
|
38
|
+
"disabled": false,
|
39
|
+
"document": "1. 不指定产品列表时将查询所有产品。\n2. 产品ID示例:cvm、lb、cdb、cdn、crs",
|
40
|
+
"example": "[\"tse\"]",
|
41
|
+
"member": "string",
|
42
|
+
"name": "ProductIds",
|
43
|
+
"required": false,
|
44
|
+
"type": "list"
|
45
|
+
}
|
46
|
+
],
|
47
|
+
"type": "object"
|
48
|
+
},
|
49
|
+
"DescribeEventStatisticsResponse": {
|
50
|
+
"document": "DescribeEventStatistics返回参数结构体",
|
51
|
+
"members": [
|
52
|
+
{
|
53
|
+
"disabled": false,
|
54
|
+
"document": "正常产品数",
|
55
|
+
"example": "{ \"NormalCount\": 77, \"NotifyCount\": 0, \"AbnormalCount\": 2 }",
|
56
|
+
"member": "TotalStatus",
|
57
|
+
"name": "Data",
|
58
|
+
"output_required": true,
|
59
|
+
"type": "object",
|
60
|
+
"value_allowed_null": false
|
61
|
+
},
|
62
|
+
{
|
63
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
64
|
+
"member": "string",
|
65
|
+
"name": "RequestId",
|
66
|
+
"type": "string"
|
67
|
+
}
|
68
|
+
],
|
69
|
+
"type": "object"
|
70
|
+
},
|
18
71
|
"DescribeEventsRequest": {
|
19
72
|
"document": "DescribeEvents请求参数结构体",
|
20
73
|
"members": [
|
@@ -161,6 +214,42 @@
|
|
161
214
|
}
|
162
215
|
],
|
163
216
|
"usage": "out"
|
217
|
+
},
|
218
|
+
"TotalStatus": {
|
219
|
+
"document": "状态汇总",
|
220
|
+
"members": [
|
221
|
+
{
|
222
|
+
"disabled": false,
|
223
|
+
"document": "正常状态的数目",
|
224
|
+
"example": "1",
|
225
|
+
"member": "int64",
|
226
|
+
"name": "NormalCount",
|
227
|
+
"required": false,
|
228
|
+
"type": "int",
|
229
|
+
"value_allowed_null": false
|
230
|
+
},
|
231
|
+
{
|
232
|
+
"disabled": false,
|
233
|
+
"document": "通知状态的数目",
|
234
|
+
"example": "1",
|
235
|
+
"member": "int64",
|
236
|
+
"name": "NotifyCount",
|
237
|
+
"required": false,
|
238
|
+
"type": "int",
|
239
|
+
"value_allowed_null": false
|
240
|
+
},
|
241
|
+
{
|
242
|
+
"disabled": false,
|
243
|
+
"document": "异常状态的数目\n注意:此字段可能返回 null,表示取不到有效值。",
|
244
|
+
"example": "1",
|
245
|
+
"member": "int64",
|
246
|
+
"name": "AbnormalCount",
|
247
|
+
"required": false,
|
248
|
+
"type": "int",
|
249
|
+
"value_allowed_null": true
|
250
|
+
}
|
251
|
+
],
|
252
|
+
"usage": "out"
|
164
253
|
}
|
165
254
|
},
|
166
255
|
"version": "1.0"
|
@@ -1,5 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"actions": {
|
3
|
+
"DescribeEventStatistics": [
|
4
|
+
{
|
5
|
+
"document": "查询腾讯云健康看板的实时可用性事件信息",
|
6
|
+
"input": "POST / HTTP/1.1\nHost: tchd.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeEventStatistics\n<公共请求参数>\n\n{\n \"RegionId\": \"ap-nanjing\",\n \"ProductIds\": [\n \"cvm\"\n ]\n}",
|
7
|
+
"output": "{\n \"Response\": {\n \"Data\": {\n \"AbnormalCount\": 0,\n \"NormalCount\": 1,\n \"NotifyCount\": 0\n },\n \"RequestId\": \"c6847868-264b-4879-b406-9283e708412b\"\n }\n}",
|
8
|
+
"title": "查询腾讯云健康看板的实时可用性事件信息"
|
9
|
+
}
|
10
|
+
],
|
3
11
|
"DescribeEvents": [
|
4
12
|
{
|
5
13
|
"document": "查询2024年07月30日发生在北京地域的 TSE 产品可用性事件",
|