tccli 3.0.1307.1__py2.py3-none-any.whl → 3.0.1309.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/aiart/v20221229/api.json +29 -19
- tccli/services/apm/v20210622/api.json +38 -0
- tccli/services/asr/v20190614/api.json +64 -64
- tccli/services/asr/v20190614/examples.json +4 -4
- tccli/services/bh/v20230418/api.json +2 -2
- tccli/services/cat/cat_client.py +53 -0
- tccli/services/cat/v20180409/api.json +80 -0
- tccli/services/cat/v20180409/examples.json +8 -0
- tccli/services/cdwch/v20200915/api.json +3 -3
- tccli/services/cfs/v20190719/api.json +9 -0
- tccli/services/clb/v20180317/api.json +120 -78
- tccli/services/clb/v20180317/examples.json +31 -31
- tccli/services/cloudaudit/v20190319/api.json +67 -67
- tccli/services/cloudaudit/v20190319/examples.json +2 -2
- tccli/services/config/v20220802/api.json +184 -165
- tccli/services/cvm/v20170312/api.json +2 -2
- tccli/services/cynosdb/cynosdb_client.py +53 -0
- tccli/services/cynosdb/v20190107/api.json +63 -0
- tccli/services/cynosdb/v20190107/examples.json +8 -0
- tccli/services/dsgc/dsgc_client.py +53 -0
- tccli/services/dsgc/v20190723/api.json +221 -7
- tccli/services/dsgc/v20190723/examples.json +8 -0
- tccli/services/ess/v20201111/api.json +1 -1
- tccli/services/hunyuan/hunyuan_client.py +53 -0
- tccli/services/hunyuan/v20230901/api.json +155 -0
- tccli/services/hunyuan/v20230901/examples.json +8 -0
- tccli/services/iss/v20230517/examples.json +1 -1
- tccli/services/mongodb/v20190725/api.json +1 -1
- tccli/services/ocr/v20181119/api.json +13 -3
- tccli/services/organization/v20210331/api.json +12 -12
- tccli/services/partners/partners_client.py +57 -4
- tccli/services/partners/v20180321/api.json +151 -0
- tccli/services/partners/v20180321/examples.json +14 -0
- tccli/services/postgres/v20170312/api.json +1 -1
- tccli/services/tdmq/v20200217/api.json +118 -14
- tccli/services/tdmq/v20200217/examples.json +1 -1
- tccli/services/teo/v20220901/api.json +9 -9
- tccli/services/teo/v20220901/examples.json +1 -1
- tccli/services/thpc/v20230321/api.json +1 -1
- tccli/services/trocket/v20230308/api.json +123 -19
- tccli/services/trocket/v20230308/examples.json +1 -1
- tccli/services/vpc/v20170312/api.json +114 -112
- tccli/services/vpc/v20170312/examples.json +4 -4
- tccli/services/waf/v20180125/api.json +43 -0
- tccli/services/waf/v20180125/examples.json +8 -0
- tccli/services/waf/waf_client.py +57 -4
- tccli/services/wedata/v20210820/api.json +1046 -10
- tccli/services/wedata/v20210820/examples.json +49 -1
- tccli/services/wedata/wedata_client.py +350 -32
- {tccli-3.0.1307.1.dist-info → tccli-3.0.1309.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1307.1.dist-info → tccli-3.0.1309.1.dist-info}/RECORD +55 -55
- {tccli-3.0.1307.1.dist-info → tccli-3.0.1309.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1307.1.dist-info → tccli-3.0.1309.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1307.1.dist-info → tccli-3.0.1309.1.dist-info}/license_files/LICENSE +0 -0
tccli/services/cat/cat_client.py
CHANGED
@@ -225,6 +225,58 @@ def doUpdateProbeTaskAttributes(args, parsed_globals):
|
|
225
225
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
226
226
|
|
227
227
|
|
228
|
+
def doDescribeProbeMetricTagValues(args, parsed_globals):
|
229
|
+
g_param = parse_global_arg(parsed_globals)
|
230
|
+
|
231
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
232
|
+
cred = credential.CVMRoleCredential()
|
233
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
234
|
+
cred = credential.STSAssumeRoleCredential(
|
235
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
236
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
237
|
+
)
|
238
|
+
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):
|
239
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
240
|
+
else:
|
241
|
+
cred = credential.Credential(
|
242
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
243
|
+
)
|
244
|
+
http_profile = HttpProfile(
|
245
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
246
|
+
reqMethod="POST",
|
247
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
248
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
249
|
+
)
|
250
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
251
|
+
if g_param[OptionsDefine.Language]:
|
252
|
+
profile.language = g_param[OptionsDefine.Language]
|
253
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
254
|
+
client = mod.CatClient(cred, g_param[OptionsDefine.Region], profile)
|
255
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
256
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
257
|
+
model = models.DescribeProbeMetricTagValuesRequest()
|
258
|
+
model.from_json_string(json.dumps(args))
|
259
|
+
start_time = time.time()
|
260
|
+
while True:
|
261
|
+
rsp = client.DescribeProbeMetricTagValues(model)
|
262
|
+
result = rsp.to_json_string()
|
263
|
+
try:
|
264
|
+
json_obj = json.loads(result)
|
265
|
+
except TypeError as e:
|
266
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
267
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
268
|
+
break
|
269
|
+
cur_time = time.time()
|
270
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
271
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
272
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
273
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
274
|
+
else:
|
275
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
276
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
277
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
278
|
+
|
279
|
+
|
228
280
|
def doDescribeNodes(args, parsed_globals):
|
229
281
|
g_param = parse_global_arg(parsed_globals)
|
230
282
|
|
@@ -708,6 +760,7 @@ ACTION_MAP = {
|
|
708
760
|
"DescribeProbeMetricData": doDescribeProbeMetricData,
|
709
761
|
"DescribeProbeTasks": doDescribeProbeTasks,
|
710
762
|
"UpdateProbeTaskAttributes": doUpdateProbeTaskAttributes,
|
763
|
+
"DescribeProbeMetricTagValues": doDescribeProbeMetricTagValues,
|
711
764
|
"DescribeNodes": doDescribeNodes,
|
712
765
|
"CreateProbeTasks": doCreateProbeTasks,
|
713
766
|
"DescribeProbeNodes": doDescribeProbeNodes,
|
@@ -49,6 +49,13 @@
|
|
49
49
|
"output": "DescribeProbeMetricDataResponse",
|
50
50
|
"status": "online"
|
51
51
|
},
|
52
|
+
"DescribeProbeMetricTagValues": {
|
53
|
+
"document": "查询同个任务类型下的维度标签值,包括查询用户任务信息,具体任务下的多个维度标签信息。(通过为DescribeProbeMetricData接口的Filters参数添加维度筛选条件,可实现多维数据分析)",
|
54
|
+
"input": "DescribeProbeMetricTagValuesRequest",
|
55
|
+
"name": "查询云拨测维度标签值",
|
56
|
+
"output": "DescribeProbeMetricTagValuesResponse",
|
57
|
+
"status": "online"
|
58
|
+
},
|
52
59
|
"DescribeProbeNodes": {
|
53
60
|
"document": "查询拨测节点",
|
54
61
|
"input": "DescribeProbeNodesRequest",
|
@@ -842,6 +849,79 @@
|
|
842
849
|
],
|
843
850
|
"type": "object"
|
844
851
|
},
|
852
|
+
"DescribeProbeMetricTagValuesRequest": {
|
853
|
+
"document": "DescribeProbeMetricTagValues请求参数结构体",
|
854
|
+
"members": [
|
855
|
+
{
|
856
|
+
"disabled": false,
|
857
|
+
"document": "分析任务类型,支持以下几种类型:\nAnalyzeTaskType_Network:网络质量\nAnalyzeTaskType_Browse:页面性能 \nAnalyzeTaskType_Transport:端口性能\nAnalyzeTaskType_UploadDownload:文件传输\nAnalyzeTaskType_MediaStream:音视频体验\n",
|
858
|
+
"example": "AnalyzeTaskType_UploadDownload",
|
859
|
+
"member": "string",
|
860
|
+
"name": "AnalyzeTaskType",
|
861
|
+
"required": false,
|
862
|
+
"type": "string"
|
863
|
+
},
|
864
|
+
{
|
865
|
+
"disabled": false,
|
866
|
+
"document": "维度标签值,参考:\nhost:任务域名\nerrorInfo:状态类型\narea:拨测点地区\noperator:拨测点运营商\ntaskId:任务ID",
|
867
|
+
"example": "host",
|
868
|
+
"member": "string",
|
869
|
+
"name": "Key",
|
870
|
+
"required": false,
|
871
|
+
"type": "string"
|
872
|
+
},
|
873
|
+
{
|
874
|
+
"disabled": false,
|
875
|
+
"document": "过滤条件,可以传单个过滤条件也可以拼接多个参数,支持正则匹配",
|
876
|
+
"example": "host = 'www.qq.com' and taskId =~ /^(task-probe123)$/",
|
877
|
+
"member": "string",
|
878
|
+
"name": "Filter",
|
879
|
+
"required": false,
|
880
|
+
"type": "string"
|
881
|
+
},
|
882
|
+
{
|
883
|
+
"disabled": false,
|
884
|
+
"document": "过滤条件数组",
|
885
|
+
"example": "[\"\"]",
|
886
|
+
"member": "string",
|
887
|
+
"name": "Filters",
|
888
|
+
"required": false,
|
889
|
+
"type": "list"
|
890
|
+
},
|
891
|
+
{
|
892
|
+
"disabled": false,
|
893
|
+
"document": "时间范围",
|
894
|
+
"example": "time >= now()-1h",
|
895
|
+
"member": "string",
|
896
|
+
"name": "TimeRange",
|
897
|
+
"required": false,
|
898
|
+
"type": "string"
|
899
|
+
}
|
900
|
+
],
|
901
|
+
"type": "object"
|
902
|
+
},
|
903
|
+
"DescribeProbeMetricTagValuesResponse": {
|
904
|
+
"document": "DescribeProbeMetricTagValues返回参数结构体",
|
905
|
+
"members": [
|
906
|
+
{
|
907
|
+
"disabled": false,
|
908
|
+
"document": "标签值序列化后的字符串",
|
909
|
+
"example": "无",
|
910
|
+
"member": "string",
|
911
|
+
"name": "TagValueSet",
|
912
|
+
"output_required": true,
|
913
|
+
"type": "string",
|
914
|
+
"value_allowed_null": false
|
915
|
+
},
|
916
|
+
{
|
917
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
918
|
+
"member": "string",
|
919
|
+
"name": "RequestId",
|
920
|
+
"type": "string"
|
921
|
+
}
|
922
|
+
],
|
923
|
+
"type": "object"
|
924
|
+
},
|
845
925
|
"DescribeProbeNodesRequest": {
|
846
926
|
"document": "DescribeProbeNodes请求参数结构体",
|
847
927
|
"members": [
|
@@ -74,6 +74,14 @@
|
|
74
74
|
"title": "请求浏览数据"
|
75
75
|
}
|
76
76
|
],
|
77
|
+
"DescribeProbeMetricTagValues": [
|
78
|
+
{
|
79
|
+
"document": "请求域名数据\n",
|
80
|
+
"input": "POST / HTTP/1.1\nHost: cat.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeProbeMetricTagValues\n<公共请求参数>\n\n{\n \"AnalyzeTaskType\": \"AnalyzeTaskType_Network\",\n \"Key\": \"area\",\n \"Filter\": \"host = 'baidu.com'\",\n \"TimeRange\": \"now()-30d\"\n}",
|
81
|
+
"output": "{\n \"Response\": {\n \"TagValueSet\": \"{\\\"name\\\":\\\"netenv_request_gauge\\\",\\\"columns\\\":[\\\"key\\\",\\\"value\\\"],\\\"values\\\":[[\\\"area\\\",\\\"上海\\\"]],\\\"tags\\\":null}\",\n \"RequestId\": \"asd\"\n }\n}",
|
82
|
+
"title": "请求域名数据"
|
83
|
+
}
|
84
|
+
],
|
77
85
|
"DescribeProbeNodes": [
|
78
86
|
{
|
79
87
|
"document": "查询拨测节点\n",
|
@@ -864,7 +864,7 @@
|
|
864
864
|
{
|
865
865
|
"disabled": false,
|
866
866
|
"document": "数据节点\nSpecName从DescribeSpec接口中返回的DataSpec.Name获取",
|
867
|
-
"example": "{\"SpecName\":\"
|
867
|
+
"example": "{\"SpecName\":\"S_16_64_H\", \"Count\":1, \"DiskSize\":200}",
|
868
868
|
"member": "NodeSpec",
|
869
869
|
"name": "DataSpec",
|
870
870
|
"required": true,
|
@@ -918,7 +918,7 @@
|
|
918
918
|
{
|
919
919
|
"disabled": false,
|
920
920
|
"document": "ZK节点\nSpecName从DescribeSpec接口中返回的CommonSpec.Name(ZK节点)获取",
|
921
|
-
"example": "{\"SpecName\":\"
|
921
|
+
"example": "{\"SpecName\":\"S_4_16_P\", \"Count\":1, \"DiskSize\":200}",
|
922
922
|
"member": "NodeSpec",
|
923
923
|
"name": "CommonSpec",
|
924
924
|
"required": false,
|
@@ -936,7 +936,7 @@
|
|
936
936
|
{
|
937
937
|
"disabled": false,
|
938
938
|
"document": "副可用去信息",
|
939
|
-
"example": "[{\"ap-guangzhou-
|
939
|
+
"example": "[ { \"SecondaryZone\": \"ap-guangzhou-4\", \"SecondarySubnet\": \"subnet-atpdmj7g\", \"SecondaryUserSubnetIPNum\": 223 }, { \"SecondaryZone\": \"ap-guangzhou-6\", \"SecondarySubnet\": \"subnet-e4nl52om\", \"SecondaryUserSubnetIPNum\": 4 } ]",
|
940
940
|
"member": "SecondaryZoneInfo",
|
941
941
|
"name": "SecondaryZoneInfo",
|
942
942
|
"required": false,
|
@@ -1037,6 +1037,15 @@
|
|
1037
1037
|
"name": "EnableAutoScaleUp",
|
1038
1038
|
"required": false,
|
1039
1039
|
"type": "bool"
|
1040
|
+
},
|
1041
|
+
{
|
1042
|
+
"disabled": false,
|
1043
|
+
"document": "v1.5:创建普通版的通用文件系统;\nv3.1:创建增强版的通用文件系统\n说明:增强版的通用系统需要开通白名单才能使用,如有需要请提交工单与我们联系。",
|
1044
|
+
"example": "v1.5",
|
1045
|
+
"member": "string",
|
1046
|
+
"name": "CfsVersion",
|
1047
|
+
"required": false,
|
1048
|
+
"type": "string"
|
1040
1049
|
}
|
1041
1050
|
],
|
1042
1051
|
"type": "object"
|