tccli 3.0.1330.1__py2.py3-none-any.whl → 3.0.1333.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/asr/v20190614/api.json +1 -1
- tccli/services/autoscaling/v20180419/api.json +1 -1
- tccli/services/bmvpc/v20180625/api.json +36 -36
- tccli/services/ccc/ccc_client.py +53 -0
- tccli/services/ccc/v20200210/api.json +71 -2
- tccli/services/ccc/v20200210/examples.json +8 -0
- tccli/services/cdb/v20170320/api.json +37 -37
- tccli/services/cdn/v20180606/api.json +5 -5
- tccli/services/cdn/v20180606/examples.json +5 -5
- tccli/services/cfw/v20190904/api.json +1 -1
- tccli/services/ckafka/v20190819/api.json +11 -1
- tccli/services/clb/v20180317/api.json +18 -0
- tccli/services/cwp/v20180228/api.json +4 -4
- tccli/services/dbbrain/v20210527/api.json +1 -0
- tccli/services/dc/v20180410/api.json +39 -0
- tccli/services/dnspod/dnspod_client.py +106 -0
- tccli/services/dnspod/v20210323/api.json +509 -2
- tccli/services/dnspod/v20210323/examples.json +17 -1
- tccli/services/emr/v20190103/api.json +2 -2
- tccli/services/ess/ess_client.py +57 -4
- tccli/services/ess/v20201111/api.json +63 -2
- tccli/services/ess/v20201111/examples.json +8 -0
- tccli/services/essbasic/v20210526/api.json +3 -3
- tccli/services/faceid/v20180301/api.json +4 -4
- tccli/services/goosefs/v20220519/api.json +2 -2
- tccli/services/gs/gs_client.py +163 -4
- tccli/services/gs/v20191118/api.json +216 -0
- tccli/services/gs/v20191118/examples.json +24 -0
- tccli/services/ioa/ioa_client.py +167 -8
- tccli/services/ioa/v20220601/api.json +541 -1
- tccli/services/ioa/v20220601/examples.json +42 -0
- tccli/services/iotexplorer/v20190423/api.json +12 -12
- tccli/services/iotexplorer/v20190423/examples.json +2 -2
- tccli/services/live/v20180801/api.json +3 -3
- tccli/services/lke/lke_client.py +699 -63
- tccli/services/lke/v20231130/api.json +1754 -79
- tccli/services/lke/v20231130/examples.json +96 -0
- tccli/services/lkeap/v20240522/examples.json +5 -5
- tccli/services/lowcode/v20210108/api.json +41 -1
- tccli/services/lowcode/v20210108/examples.json +2 -2
- tccli/services/ocr/ocr_client.py +532 -320
- tccli/services/ocr/v20181119/api.json +545 -8
- tccli/services/ocr/v20181119/examples.json +32 -0
- tccli/services/sms/v20190711/api.json +4 -4
- tccli/services/sms/v20210111/api.json +4 -4
- tccli/services/ssl/v20191205/api.json +4 -4
- tccli/services/ssl/v20191205/examples.json +1 -1
- tccli/services/tat/v20201028/api.json +1 -1
- tccli/services/teo/v20220901/api.json +1 -1
- tccli/services/tke/tke_client.py +106 -0
- tccli/services/tke/v20180525/api.json +124 -0
- tccli/services/tke/v20180525/examples.json +16 -0
- tccli/services/trtc/v20190722/api.json +2 -2
- tccli/services/tsf/v20180326/api.json +46 -17
- tccli/services/tsf/v20180326/examples.json +10 -10
- tccli/services/vpc/v20170312/api.json +5 -5
- tccli/services/vpc/v20170312/examples.json +6 -6
- {tccli-3.0.1330.1.dist-info → tccli-3.0.1333.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1330.1.dist-info → tccli-3.0.1333.1.dist-info}/RECORD +63 -63
- {tccli-3.0.1330.1.dist-info → tccli-3.0.1333.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1330.1.dist-info → tccli-3.0.1333.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1330.1.dist-info → tccli-3.0.1333.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '3.0.
|
1
|
+
__version__ = '3.0.1333.1'
|
@@ -814,7 +814,7 @@
|
|
814
814
|
},
|
815
815
|
{
|
816
816
|
"disabled": false,
|
817
|
-
"document": "替换词汇表id, 适用于热词和自学习场景也无法解决的极端case词组, 会对识别结果强制替换。具体可参考[配置控制台](https://console.cloud.tencent.com/asr/replaceword)
|
817
|
+
"document": "替换词汇表id, 适用于热词和自学习场景也无法解决的极端case词组, 会对识别结果强制替换。具体可参考[配置控制台](https://console.cloud.tencent.com/asr/replaceword);强制替换功能可能会影响正常识别结果,请谨慎使用\n\n注意:\n1. 本功能配置完成后,预计在10分钟后生效\n",
|
818
818
|
"example": "26910027******d9fa530f9f39dcd35d8",
|
819
819
|
"member": "string",
|
820
820
|
"name": "ReplaceTextId",
|
@@ -2746,7 +2746,7 @@
|
|
2746
2746
|
},
|
2747
2747
|
{
|
2748
2748
|
"disabled": false,
|
2749
|
-
"document": "
|
2749
|
+
"document": "过滤条件。过滤字段取值范围如下:\n<ul>\n<li><strong>auto-scaling-group-id</strong><ul><li>按照【<strong>伸缩组ID</strong>】进行过滤。可通过登录 [控制台](https://console.cloud.tencent.com/autoscaling/group) 或调用接口 [DescribeAutoScalingGroups](https://cloud.tencent.com/document/api/377/20438) ,取返回信息中的 AutoScalingGroupId 获取伸缩组ID。</li><li>类型:String</li><li>必选:否</li><li>示例值: asg-kiju7yt5</li></ul></li><li><strong>activity-status-code</strong><ul><li>按照【<strong>伸缩活动状态</strong>】进行过滤</li><li>类型:String</li><li>必选:否</li><li>可选项: </li><ul><li>INIT:初始化中</li><li>RUNNING:运行中</li><li>SUCCESSFUL:活动成功</li><li>PARTIALLY_SUCCESSFUL:活动部分成功</li><li>FAILED:活动失败</li><li>CANCELLED:活动取消</li></ul></ul></li><li><strong>activity-type</strong><ul><li>按照【<strong>伸缩活动类型</strong>】进行过滤</li><li>类型:String</li><li>必选:否</li><li>可选项: </li><ul><li>SCALE_OUT:扩容活动</li><li>SCALE_IN:缩容活动</li><li>ATTACH_INSTANCES:添加实例</li><li>REMOVE_INSTANCES:销毁实例</li><li>DETACH_INSTANCES:移出实例</li><li>TERMINATE_INSTANCES_UNEXPECTEDLY:实例在CVM控制台被销毁</li><li>REPLACE_UNHEALTHY_INSTANCE:替换不健康实例</li><li>START_INSTANCES:开启实例</li><li>STOP_INSTANCES:关闭实例</li><li>INVOKE_COMMAND:执行命令</li></ul></ul></li><li><strong>activity-id</strong><ul><li>按照【<strong>伸缩活动ID</strong>】进行过滤。可通过登录 [控制台](https://console.cloud.tencent.com/autoscaling/group) 获取伸缩活动ID。</li><li>类型:String</li><li>必选:否</li><li>示例值: asa-hy6tr4ed</li></ul></li></ul>\n每次请求的`Filters`的上限为10,`Filter.Values`的上限为5。参数不支持同时指定`ActivityIds`和`Filters`。",
|
2750
2750
|
"example": "[{\"Name\": \"auto-scaling-group-id\", \"Values\": [\"asg-mgmeawez\"]}]",
|
2751
2751
|
"member": "Filter",
|
2752
2752
|
"name": "Filters",
|
@@ -8,11 +8,11 @@
|
|
8
8
|
"status": "online"
|
9
9
|
},
|
10
10
|
"AsyncRegisterIps": {
|
11
|
-
"document": "批量注册虚拟IP,异步接口。通过接口来查询任务进度。每次请求最多注册256个IP",
|
11
|
+
"document": "黑石1.0接口,业务已下线,90天无调用\n\n批量注册虚拟IP,异步接口。通过接口来查询任务进度。每次请求最多注册256个IP",
|
12
12
|
"input": "AsyncRegisterIpsRequest",
|
13
13
|
"name": "批量注册虚拟IP",
|
14
14
|
"output": "AsyncRegisterIpsResponse",
|
15
|
-
"status": "
|
15
|
+
"status": "deprecated"
|
16
16
|
},
|
17
17
|
"BindEipsToNatGateway": {
|
18
18
|
"document": "NAT网关绑定EIP接口,可将EIP绑定到NAT网关,该EIP作为访问外网的源IP地址,将流量发送到Internet",
|
@@ -22,25 +22,25 @@
|
|
22
22
|
"status": "online"
|
23
23
|
},
|
24
24
|
"BindIpsToNatGateway": {
|
25
|
-
"document": "可用于将子网的部分IP绑定到NAT网关",
|
25
|
+
"document": "黑石1.0接口,业务已下线,90天无调用\n\n可用于将子网的部分IP绑定到NAT网关",
|
26
26
|
"input": "BindIpsToNatGatewayRequest",
|
27
27
|
"name": "NAT网关绑定IP",
|
28
28
|
"output": "BindIpsToNatGatewayResponse",
|
29
|
-
"status": "
|
29
|
+
"status": "deprecated"
|
30
30
|
},
|
31
31
|
"BindSubnetsToNatGateway": {
|
32
|
-
"document": "
|
32
|
+
"document": "黑石1.0接口,业务已下线,90天无调用\n\nNAT网关绑定子网后,该子网内全部IP可出公网",
|
33
33
|
"input": "BindSubnetsToNatGatewayRequest",
|
34
34
|
"name": "NAT网关绑定子网",
|
35
35
|
"output": "BindSubnetsToNatGatewayResponse",
|
36
|
-
"status": "
|
36
|
+
"status": "deprecated"
|
37
37
|
},
|
38
38
|
"CreateCustomerGateway": {
|
39
|
-
"document": "本接口(CreateCustomerGateway)用于创建对端网关。",
|
39
|
+
"document": "90天无调用\n\n本接口(CreateCustomerGateway)用于创建对端网关。",
|
40
40
|
"input": "CreateCustomerGatewayRequest",
|
41
41
|
"name": "创建对端网关",
|
42
42
|
"output": "CreateCustomerGatewayResponse",
|
43
|
-
"status": "
|
43
|
+
"status": "deprecated"
|
44
44
|
},
|
45
45
|
"CreateDockerSubnetWithVlan": {
|
46
46
|
"document": "创建黑石Docker子网, 如果不指定VlanId,将会分配2000--2999范围的VlanId; 子网会关闭分布式网关",
|
@@ -50,11 +50,11 @@
|
|
50
50
|
"status": "online"
|
51
51
|
},
|
52
52
|
"CreateHostedInterface": {
|
53
|
-
"document": "本接口(CreateHostedInterface)用于黑石托管机器加入带VLANID不为5的子网。\n\n1) 不能加入vlanId 为5的子网,只能加入VLANID范围为2000-2999的子网。\n2) 每台托管机器最多可以加入20个子网。\n3) 每次调用最多能支持传入10台托管机器。",
|
53
|
+
"document": "黑石1.0接口,业务已下线,90天无调用\n\n本接口(CreateHostedInterface)用于黑石托管机器加入带VLANID不为5的子网。\n\n1) 不能加入vlanId 为5的子网,只能加入VLANID范围为2000-2999的子网。\n2) 每台托管机器最多可以加入20个子网。\n3) 每次调用最多能支持传入10台托管机器。",
|
54
54
|
"input": "CreateHostedInterfaceRequest",
|
55
55
|
"name": "黑石托管机器加入子网",
|
56
56
|
"output": "CreateHostedInterfaceResponse",
|
57
|
-
"status": "
|
57
|
+
"status": "deprecated"
|
58
58
|
},
|
59
59
|
"CreateInterfaces": {
|
60
60
|
"document": "物理机加入子网",
|
@@ -64,18 +64,18 @@
|
|
64
64
|
"status": "online"
|
65
65
|
},
|
66
66
|
"CreateNatGateway": {
|
67
|
-
"document": "创建NAT网关接口,可针对网段方式、子网全部IP、子网部分IP这三种方式创建NAT网关",
|
67
|
+
"document": "黑石1.0接口,业务已下线,90天无调用\n\n创建NAT网关接口,可针对网段方式、子网全部IP、子网部分IP这三种方式创建NAT网关",
|
68
68
|
"input": "CreateNatGatewayRequest",
|
69
69
|
"name": "创建NAT网关",
|
70
70
|
"output": "CreateNatGatewayResponse",
|
71
|
-
"status": "
|
71
|
+
"status": "deprecated"
|
72
72
|
},
|
73
73
|
"CreateRoutePolicies": {
|
74
|
-
"document": "创建黑石路由表的路由规则",
|
74
|
+
"document": "黑石1.0接口,业务已下线,90天无调用\n\n创建黑石路由表的路由规则",
|
75
75
|
"input": "CreateRoutePoliciesRequest",
|
76
76
|
"name": "创建黑石路由表的路由规则",
|
77
77
|
"output": "CreateRoutePoliciesResponse",
|
78
|
-
"status": "
|
78
|
+
"status": "deprecated"
|
79
79
|
},
|
80
80
|
"CreateSubnet": {
|
81
81
|
"document": "创建黑石私有网络的子网\n访问管理: 用户可以对VpcId进行授权操作。例如设置资源为[\"qcs::bmvpc:::unVpc/vpc-xxxxx\"]",
|
@@ -92,18 +92,18 @@
|
|
92
92
|
"status": "online"
|
93
93
|
},
|
94
94
|
"CreateVpc": {
|
95
|
-
"document": "创建黑石私有网络",
|
95
|
+
"document": "黑石1.0接口,业务已下线,90天无调用\n\n创建黑石私有网络",
|
96
96
|
"input": "CreateVpcRequest",
|
97
97
|
"name": "创建黑石私有网络",
|
98
98
|
"output": "CreateVpcResponse",
|
99
|
-
"status": "
|
99
|
+
"status": "deprecated"
|
100
100
|
},
|
101
101
|
"CreateVpcPeerConnection": {
|
102
|
-
"document": "创建对等连接",
|
102
|
+
"document": "黑石1.0接口,业务已下线,90天无调用\n\n创建对等连接",
|
103
103
|
"input": "CreateVpcPeerConnectionRequest",
|
104
104
|
"name": "创建对等连接",
|
105
105
|
"output": "CreateVpcPeerConnectionResponse",
|
106
|
-
"status": "
|
106
|
+
"status": "deprecated"
|
107
107
|
},
|
108
108
|
"DeleteCustomerGateway": {
|
109
109
|
"document": "本接口(DeleteCustomerGateway)用于删除对端网关。",
|
@@ -134,18 +134,18 @@
|
|
134
134
|
"status": "online"
|
135
135
|
},
|
136
136
|
"DeleteNatGateway": {
|
137
|
-
"document": "删除NAT网关",
|
137
|
+
"document": "黑石1.0接口,业务已下线,90天无调用\n\n删除NAT网关",
|
138
138
|
"input": "DeleteNatGatewayRequest",
|
139
139
|
"name": "删除NAT网关",
|
140
140
|
"output": "DeleteNatGatewayResponse",
|
141
|
-
"status": "
|
141
|
+
"status": "deprecated"
|
142
142
|
},
|
143
143
|
"DeleteRoutePolicy": {
|
144
|
-
"document": "删除黑石路由表路由规则",
|
144
|
+
"document": "黑石1.0接口,业务已下线,90天无调用\n\n删除黑石路由表路由规则",
|
145
145
|
"input": "DeleteRoutePolicyRequest",
|
146
146
|
"name": "删除黑石路由表路由规则",
|
147
147
|
"output": "DeleteRoutePolicyResponse",
|
148
|
-
"status": "
|
148
|
+
"status": "deprecated"
|
149
149
|
},
|
150
150
|
"DeleteSubnet": {
|
151
151
|
"document": "本接口(DeleteSubnet)用于删除黑石私有网络子网。\n删除子网前,请清理该子网下所有资源,包括物理机、负载均衡、黑石数据库、弹性IP、NAT网关等资源",
|
@@ -190,11 +190,11 @@
|
|
190
190
|
"status": "online"
|
191
191
|
},
|
192
192
|
"DeregisterIps": {
|
193
|
-
"document": "注销私有网络IP为空闲",
|
193
|
+
"document": "黑石1.0接口,业务已下线,90天无调用\n\n注销私有网络IP为空闲",
|
194
194
|
"input": "DeregisterIpsRequest",
|
195
195
|
"name": "注销私有网络IP",
|
196
196
|
"output": "DeregisterIpsResponse",
|
197
|
-
"status": "
|
197
|
+
"status": "deprecated"
|
198
198
|
},
|
199
199
|
"DescribeCustomerGateways": {
|
200
200
|
"document": "本接口(DescribeCustomerGateways)用于查询对端网关列表。",
|
@@ -316,11 +316,11 @@
|
|
316
316
|
"status": "online"
|
317
317
|
},
|
318
318
|
"DownloadCustomerGatewayConfiguration": {
|
319
|
-
"document": "本接口(DownloadCustomerGatewayConfiguration)用于下载VPN通道配置。",
|
319
|
+
"document": "90天无调用\n\n本接口(DownloadCustomerGatewayConfiguration)用于下载VPN通道配置。",
|
320
320
|
"input": "DownloadCustomerGatewayConfigurationRequest",
|
321
321
|
"name": "下载VPN通道配置",
|
322
322
|
"output": "DownloadCustomerGatewayConfigurationResponse",
|
323
|
-
"status": "
|
323
|
+
"status": "deprecated"
|
324
324
|
},
|
325
325
|
"ModifyCustomerGatewayAttribute": {
|
326
326
|
"document": "本接口(ModifyCustomerGatewayAttribute)用于修改对端网关信息。",
|
@@ -330,18 +330,18 @@
|
|
330
330
|
"status": "online"
|
331
331
|
},
|
332
332
|
"ModifyRoutePolicy": {
|
333
|
-
"document": "修改自定义路由",
|
333
|
+
"document": "黑石1.0接口,业务已下线,90天无调用\n\n修改自定义路由",
|
334
334
|
"input": "ModifyRoutePolicyRequest",
|
335
335
|
"name": "修改自定义路由",
|
336
336
|
"output": "ModifyRoutePolicyResponse",
|
337
|
-
"status": "
|
337
|
+
"status": "deprecated"
|
338
338
|
},
|
339
339
|
"ModifyRouteTable": {
|
340
|
-
"document": "修改路由表",
|
340
|
+
"document": "黑石1.0接口,业务已下线,90天无调用\n\n修改路由表",
|
341
341
|
"input": "ModifyRouteTableRequest",
|
342
342
|
"name": "修改路由表",
|
343
343
|
"output": "ModifyRouteTableResponse",
|
344
|
-
"status": "
|
344
|
+
"status": "deprecated"
|
345
345
|
},
|
346
346
|
"ModifySubnetAttribute": {
|
347
347
|
"document": "修改子网属性",
|
@@ -407,25 +407,25 @@
|
|
407
407
|
"status": "online"
|
408
408
|
},
|
409
409
|
"UnbindIpsFromNatGateway": {
|
410
|
-
"document": "
|
410
|
+
"document": "黑石1.0接口,业务已下线,90天无调用\n\nNAT网关解绑IP接口,可将子网的部分IP从NAT网关中解绑",
|
411
411
|
"input": "UnbindIpsFromNatGatewayRequest",
|
412
412
|
"name": "NAT网关解绑IP",
|
413
413
|
"output": "UnbindIpsFromNatGatewayResponse",
|
414
|
-
"status": "
|
414
|
+
"status": "deprecated"
|
415
415
|
},
|
416
416
|
"UnbindSubnetsFromNatGateway": {
|
417
|
-
"document": "
|
417
|
+
"document": "黑石1.0接口,业务已下线,90天无调用\n\nNAT网关解绑子网接口,可将子网解绑NAT网关",
|
418
418
|
"input": "UnbindSubnetsFromNatGatewayRequest",
|
419
419
|
"name": "NAT网关解绑子网",
|
420
420
|
"output": "UnbindSubnetsFromNatGatewayResponse",
|
421
|
-
"status": "
|
421
|
+
"status": "deprecated"
|
422
422
|
},
|
423
423
|
"UpgradeNatGateway": {
|
424
|
-
"document": "升级NAT网关接口,可NAT网关修改为小型NAT网关、中型NAT网关、以及大型NAT网关\n",
|
424
|
+
"document": "黑石1.0接口,业务已下线,90天无调用\n\n升级NAT网关接口,可NAT网关修改为小型NAT网关、中型NAT网关、以及大型NAT网关\n",
|
425
425
|
"input": "UpgradeNatGatewayRequest",
|
426
426
|
"name": "升级NAT网关",
|
427
427
|
"output": "UpgradeNatGatewayResponse",
|
428
|
-
"status": "
|
428
|
+
"status": "deprecated"
|
429
429
|
}
|
430
430
|
},
|
431
431
|
"metadata": {
|
tccli/services/ccc/ccc_client.py
CHANGED
@@ -641,6 +641,58 @@ def doDescribePSTNActiveSessionList(args, parsed_globals):
|
|
641
641
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
642
642
|
|
643
643
|
|
644
|
+
def doBindNumberCallInInterface(args, parsed_globals):
|
645
|
+
g_param = parse_global_arg(parsed_globals)
|
646
|
+
|
647
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
648
|
+
cred = credential.CVMRoleCredential()
|
649
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
650
|
+
cred = credential.STSAssumeRoleCredential(
|
651
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
652
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
653
|
+
)
|
654
|
+
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):
|
655
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
656
|
+
else:
|
657
|
+
cred = credential.Credential(
|
658
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
659
|
+
)
|
660
|
+
http_profile = HttpProfile(
|
661
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
662
|
+
reqMethod="POST",
|
663
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
664
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
665
|
+
)
|
666
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
667
|
+
if g_param[OptionsDefine.Language]:
|
668
|
+
profile.language = g_param[OptionsDefine.Language]
|
669
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
670
|
+
client = mod.CccClient(cred, g_param[OptionsDefine.Region], profile)
|
671
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
672
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
673
|
+
model = models.BindNumberCallInInterfaceRequest()
|
674
|
+
model.from_json_string(json.dumps(args))
|
675
|
+
start_time = time.time()
|
676
|
+
while True:
|
677
|
+
rsp = client.BindNumberCallInInterface(model)
|
678
|
+
result = rsp.to_json_string()
|
679
|
+
try:
|
680
|
+
json_obj = json.loads(result)
|
681
|
+
except TypeError as e:
|
682
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
683
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
684
|
+
break
|
685
|
+
cur_time = time.time()
|
686
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
687
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
688
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
689
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
690
|
+
else:
|
691
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
692
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
693
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
694
|
+
|
695
|
+
|
644
696
|
def doDeleteExtension(args, parsed_globals):
|
645
697
|
g_param = parse_global_arg(parsed_globals)
|
646
698
|
|
@@ -3784,6 +3836,7 @@ ACTION_MAP = {
|
|
3784
3836
|
"ModifyOwnNumberApply": doModifyOwnNumberApply,
|
3785
3837
|
"DescribePredictiveDialingCampaign": doDescribePredictiveDialingCampaign,
|
3786
3838
|
"DescribePSTNActiveSessionList": doDescribePSTNActiveSessionList,
|
3839
|
+
"BindNumberCallInInterface": doBindNumberCallInInterface,
|
3787
3840
|
"DeleteExtension": doDeleteExtension,
|
3788
3841
|
"BindStaffSkillGroupList": doBindStaffSkillGroupList,
|
3789
3842
|
"DescribeChatMessages": doDescribeChatMessages,
|
@@ -14,6 +14,13 @@
|
|
14
14
|
"output": "AbortPredictiveDialingCampaignResponse",
|
15
15
|
"status": "online"
|
16
16
|
},
|
17
|
+
"BindNumberCallInInterface": {
|
18
|
+
"document": "绑定号码呼入回调接口",
|
19
|
+
"input": "BindNumberCallInInterfaceRequest",
|
20
|
+
"name": "绑定号码呼入回调接口",
|
21
|
+
"output": "BindNumberCallInInterfaceResponse",
|
22
|
+
"status": "online"
|
23
|
+
},
|
17
24
|
"BindNumberCallOutSkillGroup": {
|
18
25
|
"document": "绑定号码外呼技能组",
|
19
26
|
"input": "BindNumberCallOutSkillGroupRequest",
|
@@ -1178,6 +1185,51 @@
|
|
1178
1185
|
],
|
1179
1186
|
"usage": "out"
|
1180
1187
|
},
|
1188
|
+
"BindNumberCallInInterfaceRequest": {
|
1189
|
+
"document": "BindNumberCallInInterface请求参数结构体",
|
1190
|
+
"members": [
|
1191
|
+
{
|
1192
|
+
"disabled": false,
|
1193
|
+
"document": "应用 ID(必填),可以查看 https://console.cloud.tencent.com/ccc",
|
1194
|
+
"example": "1400000000",
|
1195
|
+
"member": "uint64",
|
1196
|
+
"name": "SdkAppId",
|
1197
|
+
"required": true,
|
1198
|
+
"type": "int"
|
1199
|
+
},
|
1200
|
+
{
|
1201
|
+
"disabled": false,
|
1202
|
+
"document": "待绑定的号码",
|
1203
|
+
"example": "\"0086075512345678\"",
|
1204
|
+
"member": "string",
|
1205
|
+
"name": "Number",
|
1206
|
+
"required": true,
|
1207
|
+
"type": "string"
|
1208
|
+
},
|
1209
|
+
{
|
1210
|
+
"disabled": false,
|
1211
|
+
"document": "待绑定的回调地址",
|
1212
|
+
"example": "无",
|
1213
|
+
"member": "Interface",
|
1214
|
+
"name": "CallInInterface",
|
1215
|
+
"required": false,
|
1216
|
+
"type": "object"
|
1217
|
+
}
|
1218
|
+
],
|
1219
|
+
"type": "object"
|
1220
|
+
},
|
1221
|
+
"BindNumberCallInInterfaceResponse": {
|
1222
|
+
"document": "BindNumberCallInInterface返回参数结构体",
|
1223
|
+
"members": [
|
1224
|
+
{
|
1225
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
1226
|
+
"member": "string",
|
1227
|
+
"name": "RequestId",
|
1228
|
+
"type": "string"
|
1229
|
+
}
|
1230
|
+
],
|
1231
|
+
"type": "object"
|
1232
|
+
},
|
1181
1233
|
"BindNumberCallOutSkillGroupRequest": {
|
1182
1234
|
"document": "BindNumberCallOutSkillGroup请求参数结构体",
|
1183
1235
|
"members": [
|
@@ -1584,7 +1636,7 @@
|
|
1584
1636
|
],
|
1585
1637
|
"usage": "out"
|
1586
1638
|
},
|
1587
|
-
"
|
1639
|
+
"ClientInfo": {
|
1588
1640
|
"document": "座席登录的终端信息",
|
1589
1641
|
"members": [
|
1590
1642
|
{
|
@@ -6823,6 +6875,23 @@
|
|
6823
6875
|
],
|
6824
6876
|
"usage": "out"
|
6825
6877
|
},
|
6878
|
+
"Interface": {
|
6879
|
+
"document": "回调接口",
|
6880
|
+
"members": [
|
6881
|
+
{
|
6882
|
+
"disabled": false,
|
6883
|
+
"document": "接口地址",
|
6884
|
+
"example": "https://cloud.tencent.com/",
|
6885
|
+
"member": "string",
|
6886
|
+
"name": "URL",
|
6887
|
+
"output_required": false,
|
6888
|
+
"required": true,
|
6889
|
+
"type": "string",
|
6890
|
+
"value_allowed_null": false
|
6891
|
+
}
|
6892
|
+
],
|
6893
|
+
"usage": "both"
|
6894
|
+
},
|
6826
6895
|
"Message": {
|
6827
6896
|
"document": "单条消息",
|
6828
6897
|
"members": [
|
@@ -8734,7 +8803,7 @@
|
|
8734
8803
|
"disabled": false,
|
8735
8804
|
"document": "客服登录的端信息",
|
8736
8805
|
"example": "[{\"ClientType\": \"Web\", \"IsConnected\": true}]",
|
8737
|
-
"member": "
|
8806
|
+
"member": "ClientInfo",
|
8738
8807
|
"name": "ClientInfo",
|
8739
8808
|
"output_required": false,
|
8740
8809
|
"type": "list",
|
@@ -16,6 +16,14 @@
|
|
16
16
|
"title": "停止预测式外呼任务示例"
|
17
17
|
}
|
18
18
|
],
|
19
|
+
"BindNumberCallInInterface": [
|
20
|
+
{
|
21
|
+
"document": "",
|
22
|
+
"input": "POST / HTTP/1.1\nHost: ccc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: BindNumberCallInInterface\n<公共请求参数>\n\n{\n \"SdkAppId\": 1400000000,\n \"Number\": \"0086075586013388\",\n \"CallInInterface\": {\n \"URL\": \"https://cloud.tencent.com/\"\n }\n}",
|
23
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
|
24
|
+
"title": "绑定号码呼入回调接口"
|
25
|
+
}
|
26
|
+
],
|
19
27
|
"BindNumberCallOutSkillGroup": [
|
20
28
|
{
|
21
29
|
"document": "绑定号码和技能组",
|