tccli 3.0.1301.1__py2.py3-none-any.whl → 3.0.1303.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/billing/v20180709/api.json +2 -2
- tccli/services/billing/v20180709/examples.json +2 -2
- tccli/services/cam/v20190116/api.json +2 -2
- tccli/services/cat/v20180409/api.json +154 -0
- tccli/services/cat/v20180409/examples.json +3 -3
- tccli/services/ccc/v20200210/api.json +11 -1
- tccli/services/cdc/cdc_client.py +173 -67
- tccli/services/cdc/v20201214/api.json +96 -0
- tccli/services/cdc/v20201214/examples.json +16 -0
- tccli/services/cdn/v20180606/api.json +11 -0
- tccli/services/cdwpg/v20201230/api.json +1 -1
- tccli/services/cdwpg/v20201230/examples.json +1 -1
- tccli/services/clb/v20180317/api.json +2 -2
- tccli/services/cvm/v20170312/api.json +18 -0
- tccli/services/dbbrain/dbbrain_client.py +57 -4
- tccli/services/dbbrain/v20210527/api.json +62 -0
- tccli/services/dbbrain/v20210527/examples.json +8 -0
- tccli/services/dlc/dlc_client.py +53 -0
- tccli/services/dlc/v20210125/api.json +71 -0
- tccli/services/dlc/v20210125/examples.json +8 -0
- tccli/services/es/v20180416/api.json +3 -3
- tccli/services/es/v20180416/examples.json +3 -3
- tccli/services/gs/gs_client.py +110 -4
- tccli/services/gs/v20191118/api.json +128 -0
- tccli/services/gs/v20191118/examples.json +16 -0
- tccli/services/live/v20180801/api.json +1 -1
- tccli/services/lke/v20231130/api.json +4 -4
- tccli/services/lkeap/v20240522/api.json +1 -1
- tccli/services/monitor/v20180724/api.json +5 -5
- tccli/services/monitor/v20180724/examples.json +1 -1
- tccli/services/mps/v20190612/api.json +94 -29
- tccli/services/mps/v20190612/examples.json +1 -1
- tccli/services/postgres/v20170312/api.json +2 -2
- tccli/services/ssm/v20190923/api.json +27 -0
- tccli/services/tccatalog/v20241024/api.json +1 -1
- tccli/services/tccatalog/v20241024/examples.json +1 -1
- tccli/services/tdmq/v20200217/api.json +82 -82
- tccli/services/tdmq/v20200217/examples.json +28 -28
- tccli/services/tds/tds_client.py +53 -0
- tccli/services/tds/v20220801/api.json +265 -0
- tccli/services/tds/v20220801/examples.json +8 -0
- tccli/services/tem/v20210701/api.json +664 -575
- tccli/services/tem/v20210701/examples.json +2 -2
- tccli/services/teo/v20220901/api.json +2 -2
- tccli/services/tione/v20211111/api.json +385 -4
- tccli/services/trtc/v20190722/api.json +12 -12
- tccli/services/trtc/v20190722/examples.json +5 -5
- tccli/services/tse/v20201207/api.json +39 -6
- tccli/services/vod/v20180717/api.json +3 -3
- tccli/services/vpc/v20170312/api.json +4 -3
- tccli/services/waf/v20180125/api.json +116 -0
- {tccli-3.0.1301.1.dist-info → tccli-3.0.1303.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1301.1.dist-info → tccli-3.0.1303.1.dist-info}/RECORD +57 -57
- {tccli-3.0.1301.1.dist-info → tccli-3.0.1303.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1301.1.dist-info → tccli-3.0.1303.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1301.1.dist-info → tccli-3.0.1303.1.dist-info}/license_files/LICENSE +0 -0
@@ -89,30 +89,30 @@
|
|
89
89
|
"CreateRabbitMQBinding": [
|
90
90
|
{
|
91
91
|
"document": "",
|
92
|
-
"input": "POST / HTTP/1.1\nHost: tdmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateRabbitMQBinding\n<公共请求参数>\n\n{\n \"InstanceId\": \"amqp-
|
93
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"a8f28d5e-a7e2-4b0b-afa0-2fba09c077a0\",\n \"InstanceId\": \"amqp-
|
92
|
+
"input": "POST / HTTP/1.1\nHost: tdmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateRabbitMQBinding\n<公共请求参数>\n\n{\n \"InstanceId\": \"amqp-2ppxx4rq\",\n \"VirtualHost\": \"testVhost\",\n \"Source\": \"amq.direct\",\n \"DestinationType\": \"queue\",\n \"Destination\": \"prod.queue\",\n \"RoutingKey\": \"permission.created\"\n}",
|
93
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"a8f28d5e-a7e2-4b0b-afa0-2fba09c077a0\",\n \"InstanceId\": \"amqp-2ppxx4rq\",\n \"VirtualHost\": \"testVhost\",\n \"BindingId\": 127441\n }\n}",
|
94
94
|
"title": "创建RabbitMQ路由关系"
|
95
95
|
}
|
96
96
|
],
|
97
97
|
"CreateRabbitMQUser": [
|
98
98
|
{
|
99
|
-
"document": "
|
100
|
-
"input": "POST / HTTP/1.1\nHost: tdmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRabbitMQUser\n<公共请求参数>\n\n{\n \"InstanceId\": \"amqp-
|
99
|
+
"document": "",
|
100
|
+
"input": "POST / HTTP/1.1\nHost: tdmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRabbitMQUser\n<公共请求参数>\n\n{\n \"InstanceId\": \"amqp-2ppxx4rq\",\n \"User\": \"test_user\",\n \"Password\": \"abc123._\"\n}",
|
101
101
|
"output": "{\n \"Response\": {\n \"RequestId\": \"a8f28d5e-a7e2-4b0b-afa0-2fba09c077a0\",\n \"User\": \"test_user\"\n }\n}",
|
102
102
|
"title": "创建RabbitMQ用户"
|
103
103
|
}
|
104
104
|
],
|
105
105
|
"CreateRabbitMQVipInstance": [
|
106
106
|
{
|
107
|
-
"document": "创建RabbitMQ
|
107
|
+
"document": "创建 RabbitMQ 托管版实例",
|
108
108
|
"input": "POST / HTTP/1.1\nHost: tdmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateRabbitMQVipInstance\n<公共请求参数>\n\n{\n \"ZoneIds\": [\n 190001\n ],\n \"NodeSpec\": \"rabbit-vip-basic-2\",\n \"NodeNum\": 1,\n \"StorageSize\": 100,\n \"VpcId\": \"vpc-5ghsr4p9\",\n \"SubnetId\": \"subnet-67y9wil4\",\n \"ClusterName\": \"ApiCreate\",\n \"EnableCreateDefaultHaMirrorQueue\": false\n}",
|
109
109
|
"output": "{\n \"Response\": {\n \"RequestId\": \"a8f28d5e-a7e2-4b0b-afa0-2fba09c077a0\",\n \"TranId\": \"20230110002025620411234\",\n \"InstanceId\": \"amqp-jero744g\"\n }\n}",
|
110
|
-
"title": "创建RabbitMQ
|
110
|
+
"title": "创建 RabbitMQ 托管版实例"
|
111
111
|
}
|
112
112
|
],
|
113
113
|
"CreateRabbitMQVirtualHost": [
|
114
114
|
{
|
115
|
-
"document": "
|
115
|
+
"document": "",
|
116
116
|
"input": "POST / HTTP/1.1\nHost: tdmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateRabbitMQVirtualHost\n<公共请求参数>\n\n{\n \"InstanceId\": \"amqp-test\",\n \"VirtualHost\": \"testVhost\",\n \"Description\": \"hello\"\n}",
|
117
117
|
"output": "{\n \"Response\": {\n \"RequestId\": \"a8f28d5e-a7e2-4b0b-afa0-2fba09c077a0\",\n \"VirtualHost\": \"testVhost\"\n }\n}",
|
118
118
|
"title": "创建RabbitMQ的vhost"
|
@@ -257,39 +257,39 @@
|
|
257
257
|
"DeleteRabbitMQBinding": [
|
258
258
|
{
|
259
259
|
"document": "",
|
260
|
-
"input": "POST / HTTP/1.1\nHost: tdmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteRabbitMQBinding\n<公共请求参数>\n\n{\n \"InstanceId\": \"amqp-jero744g\",\n \"VirtualHost\": \"
|
261
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"a8f28d5e-a7e2-4b0b-afa0-2fba09c077a0\",\n \"InstanceId\": \"amqp-jero744g\",\n \"VirtualHost\": \"
|
260
|
+
"input": "POST / HTTP/1.1\nHost: tdmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteRabbitMQBinding\n<公共请求参数>\n\n{\n \"InstanceId\": \"amqp-jero744g\",\n \"VirtualHost\": \"testVhost\",\n \"BindingId\": 127441\n}",
|
261
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"a8f28d5e-a7e2-4b0b-afa0-2fba09c077a0\",\n \"InstanceId\": \"amqp-jero744g\",\n \"VirtualHost\": \"testVhost\",\n \"BindingId\": 127441\n }\n}",
|
262
262
|
"title": "解绑RabbitMQ路由关系"
|
263
263
|
}
|
264
264
|
],
|
265
265
|
"DeleteRabbitMQPermission": [
|
266
266
|
{
|
267
|
-
"document": "
|
268
|
-
"input": "POST / HTTP/1.1\nHost: tdmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRabbitMQVhost\n<公共请求参数>\n\n{\n \"InstanceId\": \"amqp-
|
267
|
+
"document": "",
|
268
|
+
"input": "POST / HTTP/1.1\nHost: tdmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRabbitMQVhost\n<公共请求参数>\n\n{\n \"InstanceId\": \"amqp-2ppxx4rq\",\n \"User\": \"admin\",\n \"VirtualHost\": \"testVhost\"\n}",
|
269
269
|
"output": "{\n \"Response\": {\n \"RequestId\": \"b7bd149f-06e1-40ad-82cb-9f0500b5194c\"\n }\n}",
|
270
270
|
"title": "删除RabbitMQ权限"
|
271
271
|
}
|
272
272
|
],
|
273
273
|
"DeleteRabbitMQUser": [
|
274
274
|
{
|
275
|
-
"document": "
|
276
|
-
"input": "POST / HTTP/1.1\nHost: tdmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteRabbitMQUser\n<公共请求参数>\n\n{\n \"InstanceId\": \"amqp-
|
275
|
+
"document": "",
|
276
|
+
"input": "POST / HTTP/1.1\nHost: tdmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteRabbitMQUser\n<公共请求参数>\n\n{\n \"InstanceId\": \"amqp-2ppxx4rq\",\n \"User\": \"test-user\"\n}",
|
277
277
|
"output": "{\n \"Response\": {\n \"RequestId\": \"a8f28d5e-a7e2-4b0b-afa0-2fba09c077a0\"\n }\n}",
|
278
278
|
"title": "删除RabbitMQ用户"
|
279
279
|
}
|
280
280
|
],
|
281
281
|
"DeleteRabbitMQVipInstance": [
|
282
282
|
{
|
283
|
-
"document": "
|
284
|
-
"input": "POST / HTTP/1.1\nHost: tdmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteRabbitMQVipInstance\n<公共请求参数>\n\n{\n \"InstanceId\": \"amqp-
|
285
|
-
"output": "{\n \"Response\": {\n \"TranId\": \"20230110002025620411234\",\n \"InstanceId\": \"amqp-
|
286
|
-
"title": "删除RabbitMQ
|
283
|
+
"document": "",
|
284
|
+
"input": "POST / HTTP/1.1\nHost: tdmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteRabbitMQVipInstance\n<公共请求参数>\n\n{\n \"InstanceId\": \"amqp-2ppxx4rq\"\n}",
|
285
|
+
"output": "{\n \"Response\": {\n \"TranId\": \"20230110002025620411234\",\n \"InstanceId\": \"amqp-2ppxx4rq\",\n \"RequestId\": \"a8f28d5e-a7e2-4b0b-afa0-2fba09c077a0\"\n }\n}",
|
286
|
+
"title": "删除 RabbitMQ 托管版实例"
|
287
287
|
}
|
288
288
|
],
|
289
289
|
"DeleteRabbitMQVirtualHost": [
|
290
290
|
{
|
291
|
-
"document": "
|
292
|
-
"input": "POST / HTTP/1.1\nHost: tdmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteRabbitMQVirtualHost\n<公共请求参数>\n\n{\n \"InstanceId\": \"amqp-
|
291
|
+
"document": "",
|
292
|
+
"input": "POST / HTTP/1.1\nHost: tdmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteRabbitMQVirtualHost\n<公共请求参数>\n\n{\n \"InstanceId\": \"amqp-2ppxx4rq\",\n \"VirtualHost\": \"testVhost\"\n}",
|
293
293
|
"output": "{\n \"Response\": {\n \"RequestId\": \"a8f28d5e-a7e2-4b0b-afa0-2fba09c077a0\"\n }\n}",
|
294
294
|
"title": "删除RabbitMQ的vhost"
|
295
295
|
}
|
@@ -576,10 +576,10 @@
|
|
576
576
|
],
|
577
577
|
"DescribeRabbitMQNodeList": [
|
578
578
|
{
|
579
|
-
"document": "RabbitMQ
|
580
|
-
"input": "POST / HTTP/1.1\nHost: tdmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRabbitMQNodeList\n<公共请求参数>\n\n{\n \"InstanceId\": \"amqp-
|
581
|
-
"output": "{\n \"Response\": {\n \"NodeList\": [\n {\n \"CPUUsage\": \"0.000%\",\n \"DiskUsage\": \"3.000%\",\n \"Memory\": 171,\n \"NodeName\": \"rabbit@rabbitmq-broker-
|
582
|
-
"title": "RabbitMQ
|
579
|
+
"document": "查询 RabbitMQ 托管版节点列表",
|
580
|
+
"input": "POST / HTTP/1.1\nHost: tdmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRabbitMQNodeList\n<公共请求参数>\n\n{\n \"InstanceId\": \"amqp-2ppxx4rq\",\n \"Offset\": 0,\n \"Limit\": 3,\n \"NodeName\": \"rabbit@rabbitmq-broker-1.rabbitmq-broker-internal.amqp-2ppxx4rq.svc.cluster.local\",\n \"Filters\": [\n {\n \"Name\": \"nodeStatus\",\n \"Values\": [\n \"running\"\n ]\n }\n ],\n \"SortElement\": \"cpuUsage\",\n \"SortOrder\": \"descend\"\n}",
|
581
|
+
"output": "{\n \"Response\": {\n \"NodeList\": [\n {\n \"CPUUsage\": \"0.000%\",\n \"DiskUsage\": \"3.000%\",\n \"Memory\": 171,\n \"NodeName\": \"rabbit@rabbitmq-broker-0.rabbitmq-broker-internal.amqp-2ppxx4rq.svc.cluster.local\",\n \"NodeStatus\": \"running\",\n \"ProcessNumber\": 459\n }\n ],\n \"RequestId\": \"a95bfcfd-8388-4f86-8511-ca3be8ed000c\",\n \"TotalCount\": 1\n }\n}",
|
582
|
+
"title": "查询 RabbitMQ 托管版节点列表"
|
583
583
|
}
|
584
584
|
],
|
585
585
|
"DescribeRabbitMQPermission": [
|
@@ -986,16 +986,16 @@
|
|
986
986
|
],
|
987
987
|
"ModifyRabbitMQPermission": [
|
988
988
|
{
|
989
|
-
"document": "
|
990
|
-
"input": "POST / HTTP/1.1\nHost: tdmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyRabbitMQPermission\n<公共请求参数>\n\n{\n \"InstanceId\": \"amqp-
|
989
|
+
"document": "",
|
990
|
+
"input": "POST / HTTP/1.1\nHost: tdmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyRabbitMQPermission\n<公共请求参数>\n\n{\n \"InstanceId\": \"amqp-2ppxx4rq\",\n \"User\": \"admin\",\n \"VirtualHost\": \"testVhost\",\n \"ConfigRegexp\": \".*\",\n \"WriteRegexp\": \".*\",\n \"ReadRegexp\": \".*\"\n}",
|
991
991
|
"output": "{\n \"Response\": {\n \"RequestId\": \"a8f28d5e-a7e2-4b0b-afa0-2fba09c077a0\"\n }\n}",
|
992
992
|
"title": "修改RabbitMQ权限"
|
993
993
|
}
|
994
994
|
],
|
995
995
|
"ModifyRabbitMQUser": [
|
996
996
|
{
|
997
|
-
"document": "
|
998
|
-
"input": "POST / HTTP/1.1\nHost: tdmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyRabbitMQUser\n<公共请求参数>\n\n{\n \"InstanceId\": \"amqp-
|
997
|
+
"document": "",
|
998
|
+
"input": "POST / HTTP/1.1\nHost: tdmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyRabbitMQUser\n<公共请求参数>\n\n{\n \"InstanceId\": \"amqp-2ppxx4rq\",\n \"User\": \"admin\",\n \"Password\": \"abc123._\"\n}",
|
999
999
|
"output": "{\n \"Response\": {\n \"RequestId\": \"a8f28d5e-a7e2-4b0b-afa0-2fba09c077a0\"\n }\n}",
|
1000
1000
|
"title": "修改RabbitMQ用户"
|
1001
1001
|
}
|
@@ -1010,7 +1010,7 @@
|
|
1010
1010
|
],
|
1011
1011
|
"ModifyRabbitMQVirtualHost": [
|
1012
1012
|
{
|
1013
|
-
"document": "
|
1013
|
+
"document": "",
|
1014
1014
|
"input": "POST / HTTP/1.1\nHost: tdmq.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyRabbitMQVirtualHost\n<公共请求参数>\n\n{\n \"InstanceId\": \"amqp-44w9928j\",\n \"VirtualHost\": \"testVhost\",\n \"Description\": \"hello\"\n}",
|
1015
1015
|
"output": "{\n \"Response\": {\n \"RequestId\": \"a8f28d5e-a7e2-4b0b-afa0-2fba09c077a0\"\n }\n}",
|
1016
1016
|
"title": "修改RabbitMQ的vhost"
|
tccli/services/tds/tds_client.py
CHANGED
@@ -69,6 +69,58 @@ def doDescribeFraudBase(args, parsed_globals):
|
|
69
69
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
70
70
|
|
71
71
|
|
72
|
+
def doDescribeFinanceFraudUltimate(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.TdsClient(cred, g_param[OptionsDefine.Region], profile)
|
99
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
100
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
101
|
+
model = models.DescribeFinanceFraudUltimateRequest()
|
102
|
+
model.from_json_string(json.dumps(args))
|
103
|
+
start_time = time.time()
|
104
|
+
while True:
|
105
|
+
rsp = client.DescribeFinanceFraudUltimate(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
|
def doDescribeFraudPremium(args, parsed_globals):
|
73
125
|
g_param = parse_global_arg(parsed_globals)
|
74
126
|
|
@@ -237,6 +289,7 @@ MODELS_MAP = {
|
|
237
289
|
|
238
290
|
ACTION_MAP = {
|
239
291
|
"DescribeFraudBase": doDescribeFraudBase,
|
292
|
+
"DescribeFinanceFraudUltimate": doDescribeFinanceFraudUltimate,
|
240
293
|
"DescribeFraudPremium": doDescribeFraudPremium,
|
241
294
|
"DescribeTrustedID": doDescribeTrustedID,
|
242
295
|
"DescribeFraudUltimate": doDescribeFraudUltimate,
|
@@ -1,5 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"actions": {
|
3
|
+
"DescribeFinanceFraudUltimate": {
|
4
|
+
"document": "查询设备标识及风险(金融旗舰版)",
|
5
|
+
"input": "DescribeFinanceFraudUltimateRequest",
|
6
|
+
"name": "查询设备标识及风险(金融旗舰版)",
|
7
|
+
"output": "DescribeFinanceFraudUltimateResponse",
|
8
|
+
"status": "online"
|
9
|
+
},
|
3
10
|
"DescribeFraudBase": {
|
4
11
|
"document": "查询设备风险",
|
5
12
|
"input": "DescribeFraudBaseRequest",
|
@@ -96,6 +103,264 @@
|
|
96
103
|
],
|
97
104
|
"usage": "in"
|
98
105
|
},
|
106
|
+
"DescribeFinanceFraudUltimateRequest": {
|
107
|
+
"document": "DescribeFinanceFraudUltimate请求参数结构体",
|
108
|
+
"members": [
|
109
|
+
{
|
110
|
+
"disabled": false,
|
111
|
+
"document": "客户端通过SDK获取的设备Token",
|
112
|
+
"example": "eHh4eHh4eHg=",
|
113
|
+
"member": "string",
|
114
|
+
"name": "DeviceToken",
|
115
|
+
"required": true,
|
116
|
+
"type": "string"
|
117
|
+
},
|
118
|
+
{
|
119
|
+
"disabled": false,
|
120
|
+
"document": "使用场景。目前仅支持login-登录场景、register-注册场景",
|
121
|
+
"example": "login",
|
122
|
+
"member": "string",
|
123
|
+
"name": "SceneCode",
|
124
|
+
"required": true,
|
125
|
+
"type": "string"
|
126
|
+
},
|
127
|
+
{
|
128
|
+
"disabled": false,
|
129
|
+
"document": "用户唯一标识",
|
130
|
+
"example": "15000000000",
|
131
|
+
"member": "string",
|
132
|
+
"name": "UserId",
|
133
|
+
"required": true,
|
134
|
+
"type": "string"
|
135
|
+
},
|
136
|
+
{
|
137
|
+
"disabled": false,
|
138
|
+
"document": "事件时间戳(毫秒)",
|
139
|
+
"example": "1666684836384",
|
140
|
+
"member": "uint64",
|
141
|
+
"name": "EventTime",
|
142
|
+
"required": true,
|
143
|
+
"type": "int"
|
144
|
+
},
|
145
|
+
{
|
146
|
+
"disabled": false,
|
147
|
+
"document": "事件耗时(毫秒),例如进入登录界面到点击登录按钮耗时",
|
148
|
+
"example": "1",
|
149
|
+
"member": "uint64",
|
150
|
+
"name": "ElapsedTime",
|
151
|
+
"required": false,
|
152
|
+
"type": "int"
|
153
|
+
},
|
154
|
+
{
|
155
|
+
"disabled": false,
|
156
|
+
"document": "微信的OpenId",
|
157
|
+
"example": "oOn8tchm7************0vlzm",
|
158
|
+
"member": "string",
|
159
|
+
"name": "WeChatOpenId",
|
160
|
+
"required": false,
|
161
|
+
"type": "string"
|
162
|
+
},
|
163
|
+
{
|
164
|
+
"disabled": false,
|
165
|
+
"document": "手机号码(注:不需要带国家代码 例如:13430421011)。可以传入原文或MD5",
|
166
|
+
"example": "15000000000",
|
167
|
+
"member": "string",
|
168
|
+
"name": "PhoneNumber",
|
169
|
+
"required": false,
|
170
|
+
"type": "string"
|
171
|
+
},
|
172
|
+
{
|
173
|
+
"disabled": false,
|
174
|
+
"document": "业务客户端IP",
|
175
|
+
"example": "183.60.88.11",
|
176
|
+
"member": "string",
|
177
|
+
"name": "BizClientIp",
|
178
|
+
"required": false,
|
179
|
+
"type": "string"
|
180
|
+
},
|
181
|
+
{
|
182
|
+
"disabled": false,
|
183
|
+
"document": "QQ的OpenId",
|
184
|
+
"example": "A8E0232CD************2058B0EA885",
|
185
|
+
"member": "string",
|
186
|
+
"name": "QQOpenId",
|
187
|
+
"required": false,
|
188
|
+
"type": "string"
|
189
|
+
},
|
190
|
+
{
|
191
|
+
"disabled": false,
|
192
|
+
"document": "数据授权信息",
|
193
|
+
"example": "无",
|
194
|
+
"member": "DataAuthorizationInfo",
|
195
|
+
"name": "DataAuthorization",
|
196
|
+
"required": false,
|
197
|
+
"type": "object"
|
198
|
+
}
|
199
|
+
],
|
200
|
+
"type": "object"
|
201
|
+
},
|
202
|
+
"DescribeFinanceFraudUltimateResponse": {
|
203
|
+
"document": "DescribeFinanceFraudUltimate返回参数结构体",
|
204
|
+
"members": [
|
205
|
+
{
|
206
|
+
"disabled": false,
|
207
|
+
"document": "App版本信息",
|
208
|
+
"example": "6.8.50",
|
209
|
+
"member": "string",
|
210
|
+
"name": "AppVersion",
|
211
|
+
"output_required": true,
|
212
|
+
"type": "string",
|
213
|
+
"value_allowed_null": false
|
214
|
+
},
|
215
|
+
{
|
216
|
+
"disabled": false,
|
217
|
+
"document": "品牌",
|
218
|
+
"example": "OPPO",
|
219
|
+
"member": "string",
|
220
|
+
"name": "Brand",
|
221
|
+
"output_required": true,
|
222
|
+
"type": "string",
|
223
|
+
"value_allowed_null": false
|
224
|
+
},
|
225
|
+
{
|
226
|
+
"disabled": false,
|
227
|
+
"document": "客户端IP",
|
228
|
+
"example": "2409:8929:270b:316:16f2:2dd6:2987:390a",
|
229
|
+
"member": "string",
|
230
|
+
"name": "ClientIp",
|
231
|
+
"output_required": true,
|
232
|
+
"type": "string",
|
233
|
+
"value_allowed_null": false
|
234
|
+
},
|
235
|
+
{
|
236
|
+
"disabled": false,
|
237
|
+
"document": "机型",
|
238
|
+
"example": "PEMM00",
|
239
|
+
"member": "string",
|
240
|
+
"name": "Model",
|
241
|
+
"output_required": true,
|
242
|
+
"type": "string",
|
243
|
+
"value_allowed_null": false
|
244
|
+
},
|
245
|
+
{
|
246
|
+
"disabled": false,
|
247
|
+
"document": "网络类型",
|
248
|
+
"example": "1",
|
249
|
+
"member": "string",
|
250
|
+
"name": "NetworkType",
|
251
|
+
"output_required": true,
|
252
|
+
"type": "string",
|
253
|
+
"value_allowed_null": false
|
254
|
+
},
|
255
|
+
{
|
256
|
+
"disabled": false,
|
257
|
+
"document": "应用包名",
|
258
|
+
"example": "com.xx.xxx",
|
259
|
+
"member": "string",
|
260
|
+
"name": "PackageName",
|
261
|
+
"output_required": true,
|
262
|
+
"type": "string",
|
263
|
+
"value_allowed_null": false
|
264
|
+
},
|
265
|
+
{
|
266
|
+
"disabled": false,
|
267
|
+
"document": "平台(2-Android,3-iOS,4-H5,5-微信小程序)",
|
268
|
+
"example": "2",
|
269
|
+
"member": "string",
|
270
|
+
"name": "Platform",
|
271
|
+
"output_required": true,
|
272
|
+
"type": "string",
|
273
|
+
"value_allowed_null": false
|
274
|
+
},
|
275
|
+
{
|
276
|
+
"disabled": false,
|
277
|
+
"document": "系统版本",
|
278
|
+
"example": "11",
|
279
|
+
"member": "string",
|
280
|
+
"name": "SystemVersion",
|
281
|
+
"output_required": true,
|
282
|
+
"type": "string",
|
283
|
+
"value_allowed_null": false
|
284
|
+
},
|
285
|
+
{
|
286
|
+
"disabled": false,
|
287
|
+
"document": "SDK版本号",
|
288
|
+
"example": "74",
|
289
|
+
"member": "string",
|
290
|
+
"name": "SdkBuildNo",
|
291
|
+
"output_required": true,
|
292
|
+
"type": "string",
|
293
|
+
"value_allowed_null": false
|
294
|
+
},
|
295
|
+
{
|
296
|
+
"disabled": false,
|
297
|
+
"document": "实时风险信息",
|
298
|
+
"example": "无",
|
299
|
+
"member": "RiskInfo",
|
300
|
+
"name": "RiskInfos",
|
301
|
+
"output_required": true,
|
302
|
+
"type": "list",
|
303
|
+
"value_allowed_null": false
|
304
|
+
},
|
305
|
+
{
|
306
|
+
"disabled": false,
|
307
|
+
"document": "离线风险信息",
|
308
|
+
"example": "无",
|
309
|
+
"member": "RiskInfo",
|
310
|
+
"name": "HistRiskInfos",
|
311
|
+
"output_required": true,
|
312
|
+
"type": "list",
|
313
|
+
"value_allowed_null": false
|
314
|
+
},
|
315
|
+
{
|
316
|
+
"disabled": false,
|
317
|
+
"document": "设备匿名标识",
|
318
|
+
"example": "85ADB490D96D6A0044D00798",
|
319
|
+
"member": "string",
|
320
|
+
"name": "Openid",
|
321
|
+
"output_required": true,
|
322
|
+
"type": "string",
|
323
|
+
"value_allowed_null": false
|
324
|
+
},
|
325
|
+
{
|
326
|
+
"disabled": false,
|
327
|
+
"document": "场景风险信息",
|
328
|
+
"example": "无",
|
329
|
+
"member": "RiskInfo",
|
330
|
+
"name": "SceneRiskInfos",
|
331
|
+
"output_required": true,
|
332
|
+
"type": "list",
|
333
|
+
"value_allowed_null": false
|
334
|
+
},
|
335
|
+
{
|
336
|
+
"disabled": false,
|
337
|
+
"document": "建议等级。1-极差,2-较差,3-中等,4-良好,5-优秀",
|
338
|
+
"example": "1",
|
339
|
+
"member": "uint64",
|
340
|
+
"name": "SuggestionLevel",
|
341
|
+
"output_required": true,
|
342
|
+
"type": "int",
|
343
|
+
"value_allowed_null": false
|
344
|
+
},
|
345
|
+
{
|
346
|
+
"disabled": false,
|
347
|
+
"document": "图灵盾统一ID",
|
348
|
+
"example": "BCC4AD40983ACF9CA18A55BC0A4401489833F362",
|
349
|
+
"member": "string",
|
350
|
+
"name": "Unionid",
|
351
|
+
"output_required": false,
|
352
|
+
"type": "string",
|
353
|
+
"value_allowed_null": false
|
354
|
+
},
|
355
|
+
{
|
356
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
357
|
+
"member": "string",
|
358
|
+
"name": "RequestId",
|
359
|
+
"type": "string"
|
360
|
+
}
|
361
|
+
],
|
362
|
+
"type": "object"
|
363
|
+
},
|
99
364
|
"DescribeFraudBaseRequest": {
|
100
365
|
"document": "DescribeFraudBase请求参数结构体",
|
101
366
|
"members": [
|
@@ -1,5 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"actions": {
|
3
|
+
"DescribeFinanceFraudUltimate": [
|
4
|
+
{
|
5
|
+
"document": "",
|
6
|
+
"input": "POST / HTTP/1.1\nHost: tds.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeFinanceFraudUltimate\n<公共请求参数>\n\n{\n \"DeviceToken\": \"v2:s6kBRbiOKZp/kenOxxxxxxxxx\",\n \"SceneCode\": \"login\",\n \"UserId\": \"user1\",\n \"EventTime\": 1666684836384,\n \"ElapsedTime\": 1,\n \"WeChatOpenId\": \"oEsXuszxxxxxxxxxxxxxxxx4qvEk\",\n \"PhoneNumber\": \"15800000000\",\n \"BizClientIp\": \"223.73.63.151\",\n \"QQOpenId\": \"ECA1B7XXXXXXXXXXXXXXXXXXXX06625D\",\n \"DataAuthorization\": {\n \"DataProviderName\": \"某某有限公司\",\n \"DataRecipientName\": \"腾讯云计算(北京)有限责任公司\",\n \"UserDataType\": [\n 1,\n 2,\n 3,\n 4\n ],\n \"IsAuthorize\": 1,\n \"AuthorizationTerm\": 1719805604,\n \"PrivacyPolicyLink\": \"https://www.*****.com/*\"\n }\n}",
|
7
|
+
"output": "{\n \"Response\": {\n \"Brand\": \"HONOR\",\n \"SdkBuildNo\": \"75\",\n \"AppVersion\": \"1.0.0\",\n \"Platform\": \"2\",\n \"SystemVersion\": \"10\",\n \"RequestId\": \"19a13dc5-1c2c-4d0e-bd08-13534b53c8f4\",\n \"NetworkType\": \"0\",\n \"Model\": \"LLD-AL20\",\n \"PackageName\": \"a.b.c\",\n \"ClientIp\": \"223.73.63.151\",\n \"RiskInfos\": [\n {\n \"Type\": 201,\n \"Level\": 1\n }\n ],\n \"HistRiskInfos\": [\n {\n \"Type\": 201,\n \"Level\": 1\n }\n ],\n \"Openid\": \"A10254A0046CEA0448A387BF\",\n \"SceneRiskInfos\": [\n {\n \"Type\": 100101,\n \"Level\": 1\n }\n ],\n \"SuggestionLevel\": 1,\n \"Unionid\": \"BCC4AD40983ACF9CA18A55BC0A4401489833F362\"\n }\n}",
|
8
|
+
"title": "查询设备标识及风险(金融旗舰版)"
|
9
|
+
}
|
10
|
+
],
|
3
11
|
"DescribeFraudBase": [
|
4
12
|
{
|
5
13
|
"document": "",
|