tccli 3.0.1300.3__py2.py3-none-any.whl → 3.0.1302.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/__init__.py +2 -1
- tccli/services/asr/v20190614/api.json +18 -18
- tccli/services/batch/v20170312/api.json +14 -14
- tccli/services/bh/bh_client.py +623 -93
- tccli/services/bh/v20230418/api.json +1054 -32
- tccli/services/bh/v20230418/examples.json +93 -1
- tccli/services/billing/billing_client.py +4 -57
- tccli/services/billing/v20180709/api.json +3 -305
- tccli/services/billing/v20180709/examples.json +2 -10
- tccli/services/bpaas/v20181217/api.json +56 -56
- tccli/services/cat/cat_client.py +61 -8
- tccli/services/cat/v20180409/api.json +115 -0
- tccli/services/cat/v20180409/examples.json +20 -0
- tccli/services/cbs/v20170312/api.json +9 -7
- tccli/services/cbs/v20170312/examples.json +2 -2
- tccli/services/ccc/ccc_client.py +216 -4
- tccli/services/ccc/v20200210/api.json +364 -6
- tccli/services/ccc/v20200210/examples.json +32 -0
- tccli/services/cdb/v20170320/api.json +23 -14
- tccli/services/cdb/v20170320/examples.json +3 -3
- 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 +365 -279
- tccli/services/cdwch/v20200915/api.json +21 -21
- tccli/services/cdwdoris/v20211228/api.json +21 -1
- tccli/services/cdwdoris/v20211228/examples.json +4 -4
- tccli/services/cdwpg/v20201230/api.json +375 -360
- tccli/services/cdwpg/v20201230/examples.json +1 -1
- tccli/services/cfw/cfw_client.py +53 -0
- tccli/services/cfw/v20190904/api.json +201 -5
- tccli/services/cfw/v20190904/examples.json +8 -0
- tccli/services/chc/chc_client.py +57 -4
- tccli/services/chc/v20230418/api.json +108 -1
- tccli/services/chc/v20230418/examples.json +8 -0
- tccli/services/ckafka/ckafka_client.py +408 -302
- tccli/services/ckafka/v20190819/api.json +197 -2
- tccli/services/ckafka/v20190819/examples.json +16 -0
- tccli/services/clb/v20180317/api.json +439 -379
- tccli/services/clb/v20180317/examples.json +7 -7
- tccli/services/cls/cls_client.py +53 -0
- tccli/services/cls/v20201016/api.json +86 -3
- tccli/services/cls/v20201016/examples.json +11 -3
- tccli/services/cvm/v20170312/api.json +165 -147
- tccli/services/cvm/v20170312/examples.json +6 -6
- tccli/services/cwp/v20180228/api.json +93 -14
- tccli/services/cwp/v20180228/examples.json +7 -7
- tccli/services/cynosdb/cynosdb_client.py +171 -12
- tccli/services/cynosdb/v20190107/api.json +252 -3
- tccli/services/cynosdb/v20190107/examples.json +24 -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/dc/v20180410/api.json +1 -1
- tccli/services/dlc/dlc_client.py +53 -0
- tccli/services/dlc/v20210125/api.json +816 -655
- tccli/services/dlc/v20210125/examples.json +73 -59
- tccli/services/dsgc/v20190723/api.json +18 -0
- tccli/services/dts/v20211206/api.json +4 -4
- tccli/services/dts/v20211206/examples.json +6 -0
- tccli/services/emr/emr_client.py +53 -0
- tccli/services/emr/v20190103/api.json +127 -0
- tccli/services/emr/v20190103/examples.json +8 -0
- tccli/services/es/es_client.py +686 -151
- tccli/services/es/v20180416/api.json +509 -436
- tccli/services/es/v20180416/examples.json +43 -49
- tccli/services/es/v20250101/api.json +1391 -0
- tccli/services/es/v20250101/examples.json +85 -0
- tccli/services/ess/ess_client.py +53 -0
- tccli/services/ess/v20201111/api.json +142 -21
- tccli/services/ess/v20201111/examples.json +14 -0
- tccli/services/essbasic/essbasic_client.py +53 -0
- tccli/services/essbasic/v20210526/api.json +112 -9
- tccli/services/essbasic/v20210526/examples.json +8 -0
- tccli/services/gaap/v20180529/api.json +321 -312
- tccli/services/gaap/v20180529/examples.json +2 -2
- tccli/services/gs/gs_client.py +538 -8
- tccli/services/gs/v20191118/api.json +947 -44
- tccli/services/gs/v20191118/examples.json +87 -1
- tccli/services/gwlb/v20240906/api.json +56 -37
- tccli/services/gwlb/v20240906/examples.json +11 -5
- tccli/services/hunyuan/hunyuan_client.py +175 -69
- tccli/services/hunyuan/v20230901/api.json +191 -1
- tccli/services/hunyuan/v20230901/examples.json +17 -1
- tccli/services/ioa/ioa_client.py +227 -15
- tccli/services/ioa/v20220601/api.json +479 -0
- tccli/services/ioa/v20220601/examples.json +44 -0
- tccli/services/iotexplorer/iotexplorer_client.py +322 -4
- tccli/services/iotexplorer/v20190423/api.json +865 -52
- tccli/services/iotexplorer/v20190423/examples.json +64 -16
- tccli/services/iotvideo/iotvideo_client.py +57 -4
- tccli/services/iotvideo/v20211125/api.json +146 -0
- tccli/services/iotvideo/v20211125/examples.json +8 -0
- tccli/services/iotvideoindustry/v20201201/api.json +1 -1
- tccli/services/kms/v20190118/api.json +38 -2
- tccli/services/lcic/v20220817/api.json +66 -1
- tccli/services/lcic/v20220817/examples.json +1 -1
- tccli/services/lighthouse/lighthouse_client.py +0 -106
- tccli/services/lighthouse/v20200324/api.json +11 -98
- tccli/services/lighthouse/v20200324/examples.json +0 -16
- tccli/services/live/v20180801/api.json +1 -1
- tccli/services/lke/v20231130/api.json +208 -10
- tccli/services/lke/v20231130/examples.json +10 -10
- tccli/services/lkeap/lkeap_client.py +53 -0
- tccli/services/lkeap/v20240522/api.json +48 -4
- tccli/services/lkeap/v20240522/examples.json +8 -0
- tccli/services/mna/mna_client.py +4 -163
- tccli/services/mna/v20210119/api.json +0 -524
- tccli/services/mna/v20210119/examples.json +0 -24
- tccli/services/monitor/monitor_client.py +114 -8
- tccli/services/monitor/v20180724/api.json +129 -18
- tccli/services/monitor/v20180724/examples.json +17 -1
- tccli/services/mps/v20190612/api.json +1223 -1031
- tccli/services/mps/v20190612/examples.json +1 -1
- tccli/services/nlp/v20190408/examples.json +1 -1
- tccli/services/oceanus/v20190422/api.json +12 -12
- tccli/services/oceanus/v20190422/examples.json +15 -3
- tccli/services/ocr/v20181119/api.json +13 -3
- tccli/services/postgres/v20170312/api.json +2 -2
- tccli/services/privatedns/v20201028/api.json +30 -11
- tccli/services/privatedns/v20201028/examples.json +10 -10
- tccli/services/rce/v20201103/api.json +3 -3
- tccli/services/ses/v20201002/api.json +10 -1
- tccli/services/smop/v20201203/api.json +2 -2
- tccli/services/sqlserver/v20180328/api.json +1 -1
- tccli/services/ssm/v20190923/api.json +27 -0
- tccli/services/sts/sts_client.py +53 -0
- tccli/services/sts/v20180813/api.json +101 -1
- tccli/services/sts/v20180813/examples.json +8 -0
- tccli/services/taf/taf_client.py +0 -53
- tccli/services/taf/v20200210/api.json +0 -138
- tccli/services/taf/v20200210/examples.json +0 -8
- tccli/services/tan/v20220420/api.json +2 -2
- tccli/services/tat/v20201028/api.json +2 -2
- tccli/services/tcb/v20180608/api.json +29 -1
- tccli/services/tcbr/v20220217/api.json +32 -0
- tccli/services/tccatalog/v20241024/api.json +1 -1
- tccli/services/tccatalog/v20241024/examples.json +1 -1
- tccli/services/tcr/v20190924/api.json +5 -5
- tccli/services/tcr/v20190924/examples.json +2 -2
- tccli/services/tcss/v20201101/api.json +84 -34
- tccli/services/tcss/v20201101/examples.json +2809 -0
- tccli/services/tdmq/v20200217/api.json +40 -0
- tccli/services/tdmq/v20200217/examples.json +1 -1
- 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 +236 -208
- tccli/services/teo/v20220901/examples.json +13 -13
- tccli/services/tione/tione_client.py +53 -0
- tccli/services/tione/v20211111/api.json +256 -0
- tccli/services/tione/v20211111/examples.json +8 -0
- tccli/services/tke/v20180525/api.json +1 -1
- tccli/services/trocket/trocket_client.py +489 -12
- tccli/services/trocket/v20230308/api.json +925 -146
- tccli/services/trocket/v20230308/examples.json +72 -0
- tccli/services/trtc/v20190722/api.json +13 -19
- tccli/services/trtc/v20190722/examples.json +8 -8
- tccli/services/tse/v20201207/api.json +1016 -995
- tccli/services/tse/v20201207/examples.json +2 -2
- tccli/services/tsf/v20180326/api.json +510 -465
- tccli/services/tsf/v20180326/examples.json +4 -4
- tccli/services/tts/v20190823/api.json +10 -10
- tccli/services/vclm/v20240523/api.json +2 -2
- tccli/services/vcube/v20220410/api.json +10 -0
- tccli/services/vdb/v20230616/api.json +10 -0
- tccli/services/vdb/v20230616/examples.json +1 -1
- tccli/services/vpc/v20170312/api.json +824 -254
- tccli/services/vpc/v20170312/examples.json +66 -10
- tccli/services/vpc/vpc_client.py +383 -12
- tccli/services/vrs/v20200824/api.json +9 -0
- tccli/services/waf/v20180125/api.json +8113 -5814
- tccli/services/waf/v20180125/examples.json +90 -0
- tccli/services/waf/waf_client.py +559 -82
- tccli/services/wedata/v20210820/api.json +1379 -24
- tccli/services/wedata/v20210820/examples.json +25 -1
- tccli/services/wedata/wedata_client.py +171 -12
- tccli/services/weilingwith/v20230427/api.json +1 -1
- tccli/services/weilingwith/v20230427/examples.json +3 -3
- {tccli-3.0.1300.3.dist-info → tccli-3.0.1302.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1300.3.dist-info → tccli-3.0.1302.1.dist-info}/RECORD +187 -184
- {tccli-3.0.1300.3.dist-info → tccli-3.0.1302.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1300.3.dist-info → tccli-3.0.1302.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1300.3.dist-info → tccli-3.0.1302.1.dist-info}/license_files/LICENSE +0 -0
@@ -38,6 +38,26 @@
|
|
38
38
|
"title": "获取历史即时拨测任务"
|
39
39
|
}
|
40
40
|
],
|
41
|
+
"DescribeNodeGroups": [
|
42
|
+
{
|
43
|
+
"document": "获取拨测点组\n",
|
44
|
+
"input": "POST / HTTP/1.1\nHost: cat.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeNodeGroups\nX-TC-Language: zh-CN\n<公共请求参数>\n\n{\n \"RegionID\": 1,\n \"NetServiceID\": 99\n}",
|
45
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"fyy3-g7ujmxbouxshy3plmkmhlnmdbfh\"\n }\n}",
|
46
|
+
"title": "获取拨测点组"
|
47
|
+
},
|
48
|
+
{
|
49
|
+
"document": "获取定时任务中网络质量任务类型,PC类任务的可用性拨测点组",
|
50
|
+
"input": "POST / HTTP/1.1\nHost: cat.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeNodeGroups\nX-TC-Language: zh-CN\n<公共请求参数>\n\n{\n \"NodeGroupType\": 1,\n \"IPType\": 0,\n \"NodeType\": [\n 1\n ],\n \"TaskType\": 5,\n \"ProbeType\": 0\n}",
|
51
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"3ea82ed9-5901-4c69-b5e2-c4c84c9538e5\"\n }\n}",
|
52
|
+
"title": "获取定时任务拨测点组"
|
53
|
+
},
|
54
|
+
{
|
55
|
+
"document": "获取即时拨测任务中网络质量任务类型,PC类任务的精选拨测点组",
|
56
|
+
"input": "POST / HTTP/1.1\nHost: cat.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeNodeGroups\nX-TC-Language: zh-CN\n<公共请求参数>\n\n{\n \"NodeGroupType\": 0,\n \"TaskCategory\": 1,\n \"IPType\": 0,\n \"NodeType\": [\n 1,\n 2\n ],\n \"TaskType\": 5,\n \"ProbeType\": 1\n}",
|
57
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"248cfe54-6cb6-46c7-b73d-9c78108add00\"\n }\n}",
|
58
|
+
"title": "获取即时拨测拨测点组"
|
59
|
+
}
|
60
|
+
],
|
41
61
|
"DescribeNodes": [
|
42
62
|
{
|
43
63
|
"document": "获取拨测节点",
|
@@ -2423,7 +2423,7 @@
|
|
2423
2423
|
},
|
2424
2424
|
{
|
2425
2425
|
"disabled": false,
|
2426
|
-
"document": "
|
2426
|
+
"document": "过滤条件。参数不支持同时指定SnapshotIds和Filters。<br><ul><li>snapshot-id<ul><li>按照云硬盘快照ID进行过滤</li><li>类型:String</li><li>必选:否</li></ul></li><li>snapshot-name<ul><li>按照云硬盘快照名称进行过滤</li><li>类型:String</li><li>必选:否</li></ul></li><li>snapshot-state<ul><li>按照云硬盘快照状态进行过滤</li><li>类型:String</li><li>必选:否</li><li>取值范围:<ul><li><code>NORMAL</code>:正常 </li><li><code>CREATING</code>:创建中 </li><li><code>ROLLBACKING</code>:回滚中 </li><li><code>COPYING_FROM_REMOTE</code>:跨地域复制中 </li><li><code>CHECKING_COPIED</code>:复制校验中</li><li><code>TORECYCLE</code>:待回收</li></ul></li></ul></li><li>disk-usage<ul><li>按照云硬盘使用用途进行过滤</li><li>类型:String</li><li>必选:否</li><li>取值范围:<ul><li><code>SYSTEM_DISK</code>:代表系统盘</li><li><code>DATA_DISK</code>:代表数据盘</li></ul></li></ul></li><li>project-id<ul><li>按云硬盘所属项目ID过滤</li><li>类型:String</li><li>必选:否</li></ul></li><li>disk-id<ul><li>按照云硬盘ID进行过滤,一次最多只能传入10个值</li><li>类型:String</li><li>必选:否</li></ul></li><li>encrypt<ul><li>按是否加密进行过滤</li><li>类型:String</li><li>必选:否</li></ul></li><li>snapshot-type<ul><li>按快照归属类型查询</li><li>类型:String</li><li>必选:否</li><li>取值范围:<ul><li><code>SHARED_SNAPSHOT</code>:表示共享过来的快照</li><li><code>PRIVATE_SNAPSHOT</code>:表示自己的私有快照</li></ul></li></ul></li></ul>",
|
2427
2427
|
"example": "无",
|
2428
2428
|
"member": "Filter",
|
2429
2429
|
"name": "Filters",
|
@@ -2441,7 +2441,7 @@
|
|
2441
2441
|
},
|
2442
2442
|
{
|
2443
2443
|
"disabled": false,
|
2444
|
-
"document": "
|
2444
|
+
"document": "快照列表排序的依据字段。取值范围:\n<ul>\n<li>CREATE_TIME:依据快照的创建时间排序</li>\n<li>默认按创建时间排序</li>\n</ul>",
|
2445
2445
|
"example": "CREATE_TIME",
|
2446
2446
|
"member": "string",
|
2447
2447
|
"name": "OrderField",
|
@@ -2459,7 +2459,7 @@
|
|
2459
2459
|
},
|
2460
2460
|
{
|
2461
2461
|
"disabled": false,
|
2462
|
-
"document": "
|
2462
|
+
"document": "输出云盘列表的排列顺序。取值范围:\n<ul>\n <li>ASC:升序排列</li>\n <li>DESC:降序排列。</li>\n</ul>\n",
|
2463
2463
|
"example": "DESC",
|
2464
2464
|
"member": "string",
|
2465
2465
|
"name": "Order",
|
@@ -2478,6 +2478,7 @@
|
|
2478
2478
|
"example": "20",
|
2479
2479
|
"member": "uint64",
|
2480
2480
|
"name": "TotalCount",
|
2481
|
+
"output_required": true,
|
2481
2482
|
"type": "int",
|
2482
2483
|
"value_allowed_null": false
|
2483
2484
|
},
|
@@ -2487,6 +2488,7 @@
|
|
2487
2488
|
"example": "无",
|
2488
2489
|
"member": "Snapshot",
|
2489
2490
|
"name": "SnapshotSet",
|
2491
|
+
"output_required": true,
|
2490
2492
|
"type": "list",
|
2491
2493
|
"value_allowed_null": false
|
2492
2494
|
},
|
@@ -3789,7 +3791,7 @@
|
|
3789
3791
|
"members": [
|
3790
3792
|
{
|
3791
3793
|
"disabled": false,
|
3792
|
-
"document": "定期快照策略ID
|
3794
|
+
"document": "定期快照策略ID。可以通过[查询定期快照策略](https://cloud.tencent.com/document/product/362/33556)API查询。",
|
3793
3795
|
"example": "asp-nqu08k2l",
|
3794
3796
|
"member": "string",
|
3795
3797
|
"name": "AutoSnapshotPolicyId",
|
@@ -3799,7 +3801,7 @@
|
|
3799
3801
|
{
|
3800
3802
|
"disabled": false,
|
3801
3803
|
"document": "是否激活定期快照策略,FALSE表示未激活,TRUE表示激活,默认为TRUE。",
|
3802
|
-
"example": "
|
3804
|
+
"example": "TRUE",
|
3803
3805
|
"member": "bool",
|
3804
3806
|
"name": "IsActivated",
|
3805
3807
|
"required": false,
|
@@ -4523,7 +4525,7 @@
|
|
4523
4525
|
{
|
4524
4526
|
"disabled": false,
|
4525
4527
|
"document": "后付费云盘的计价单元,取值范围:<br><li>HOUR:表示后付费云盘的计价单元是按小时计算。</li>\n注意:此字段可能返回 null,表示取不到有效值。",
|
4526
|
-
"example": "\"
|
4528
|
+
"example": "\"HOUR\"",
|
4527
4529
|
"member": "string",
|
4528
4530
|
"name": "ChargeUnit",
|
4529
4531
|
"output_required": true,
|
@@ -5050,7 +5052,7 @@
|
|
5050
5052
|
"members": [
|
5051
5053
|
{
|
5052
5054
|
"disabled": false,
|
5053
|
-
"document": "需退还的云盘ID
|
5055
|
+
"document": "需退还的云盘ID列表,通过[DescribeDisks](/document/product/362/16315)接口查询。",
|
5054
5056
|
"example": "[\"disk-l7mxexxc\"]",
|
5055
5057
|
"member": "string",
|
5056
5058
|
"name": "DiskIds",
|
@@ -369,7 +369,7 @@
|
|
369
369
|
"RenewDisk": [
|
370
370
|
{
|
371
371
|
"document": "给云硬盘续费一个月,并设置自动续费标识",
|
372
|
-
"input": "POST / HTTP/1.1\nHost: cbs.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RenewDisk\n<公共请求参数>\n\n{\n \"DiskChargePrepaid\": {\n \"RenewFlag\": \"NOTIFY_AND_AUTO_RENEW\",\n \"Period\":
|
372
|
+
"input": "POST / HTTP/1.1\nHost: cbs.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RenewDisk\n<公共请求参数>\n\n{\n \"DiskChargePrepaid\": {\n \"RenewFlag\": \"NOTIFY_AND_AUTO_RENEW\",\n \"Period\": 1\n },\n \"DiskId\": \"disk-jwk0zvrg\"\n}",
|
373
373
|
"output": "{\n \"Response\": {\n \"RequestId\": \"6e2e5089-244a-4102-d347-5a1f8058b1db\"\n }\n}",
|
374
374
|
"title": "给云硬盘续费一个月,并设置自动续费标识"
|
375
375
|
},
|
@@ -383,7 +383,7 @@
|
|
383
383
|
"ResizeDisk": [
|
384
384
|
{
|
385
385
|
"document": "将云硬盘扩容到200G",
|
386
|
-
"input": "POST / HTTP/1.1\nHost: cbs.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ResizeDisk\n<公共请求参数>\n\n{\n \"DiskSize\":
|
386
|
+
"input": "POST / HTTP/1.1\nHost: cbs.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ResizeDisk\n<公共请求参数>\n\n{\n \"DiskSize\": 200,\n \"DiskId\": \"disk-lzrg2pwi\"\n}",
|
387
387
|
"output": "{\n \"Response\": {\n \"RequestId\": \"adefc06d-2cf1-29f6-24a6-5a1f81b5c0ac\"\n }\n}",
|
388
388
|
"title": "将云硬盘扩容到200G"
|
389
389
|
}
|
tccli/services/ccc/ccc_client.py
CHANGED
@@ -173,6 +173,58 @@ def doModifyStaff(args, parsed_globals):
|
|
173
173
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
174
174
|
|
175
175
|
|
176
|
+
def doDescribeAILatency(args, parsed_globals):
|
177
|
+
g_param = parse_global_arg(parsed_globals)
|
178
|
+
|
179
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
180
|
+
cred = credential.CVMRoleCredential()
|
181
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
182
|
+
cred = credential.STSAssumeRoleCredential(
|
183
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
184
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
185
|
+
)
|
186
|
+
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):
|
187
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
188
|
+
else:
|
189
|
+
cred = credential.Credential(
|
190
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
191
|
+
)
|
192
|
+
http_profile = HttpProfile(
|
193
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
194
|
+
reqMethod="POST",
|
195
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
196
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
197
|
+
)
|
198
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
199
|
+
if g_param[OptionsDefine.Language]:
|
200
|
+
profile.language = g_param[OptionsDefine.Language]
|
201
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
202
|
+
client = mod.CccClient(cred, g_param[OptionsDefine.Region], profile)
|
203
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
204
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
205
|
+
model = models.DescribeAILatencyRequest()
|
206
|
+
model.from_json_string(json.dumps(args))
|
207
|
+
start_time = time.time()
|
208
|
+
while True:
|
209
|
+
rsp = client.DescribeAILatency(model)
|
210
|
+
result = rsp.to_json_string()
|
211
|
+
try:
|
212
|
+
json_obj = json.loads(result)
|
213
|
+
except TypeError as e:
|
214
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
215
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
216
|
+
break
|
217
|
+
cur_time = time.time()
|
218
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
219
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
220
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
221
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
222
|
+
else:
|
223
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
224
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
225
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
226
|
+
|
227
|
+
|
176
228
|
def doDescribeAutoCalloutTasks(args, parsed_globals):
|
177
229
|
g_param = parse_global_arg(parsed_globals)
|
178
230
|
|
@@ -381,7 +433,7 @@ def doDescribeAgentCruiseDialingCampaign(args, parsed_globals):
|
|
381
433
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
382
434
|
|
383
435
|
|
384
|
-
def
|
436
|
+
def doDeleteCCCSkillGroup(args, parsed_globals):
|
385
437
|
g_param = parse_global_arg(parsed_globals)
|
386
438
|
|
387
439
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -410,11 +462,11 @@ def doDescribeTelRecordAsr(args, parsed_globals):
|
|
410
462
|
client = mod.CccClient(cred, g_param[OptionsDefine.Region], profile)
|
411
463
|
client._sdkVersion += ("_CLI_" + __version__)
|
412
464
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
413
|
-
model = models.
|
465
|
+
model = models.DeleteCCCSkillGroupRequest()
|
414
466
|
model.from_json_string(json.dumps(args))
|
415
467
|
start_time = time.time()
|
416
468
|
while True:
|
417
|
-
rsp = client.
|
469
|
+
rsp = client.DeleteCCCSkillGroup(model)
|
418
470
|
result = rsp.to_json_string()
|
419
471
|
try:
|
420
472
|
json_obj = json.loads(result)
|
@@ -2825,6 +2877,58 @@ def doCreateUserSig(args, parsed_globals):
|
|
2825
2877
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2826
2878
|
|
2827
2879
|
|
2880
|
+
def doDescribeTelRecordAsr(args, parsed_globals):
|
2881
|
+
g_param = parse_global_arg(parsed_globals)
|
2882
|
+
|
2883
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2884
|
+
cred = credential.CVMRoleCredential()
|
2885
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2886
|
+
cred = credential.STSAssumeRoleCredential(
|
2887
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2888
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2889
|
+
)
|
2890
|
+
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):
|
2891
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2892
|
+
else:
|
2893
|
+
cred = credential.Credential(
|
2894
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2895
|
+
)
|
2896
|
+
http_profile = HttpProfile(
|
2897
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2898
|
+
reqMethod="POST",
|
2899
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
2900
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2901
|
+
)
|
2902
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2903
|
+
if g_param[OptionsDefine.Language]:
|
2904
|
+
profile.language = g_param[OptionsDefine.Language]
|
2905
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2906
|
+
client = mod.CccClient(cred, g_param[OptionsDefine.Region], profile)
|
2907
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2908
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2909
|
+
model = models.DescribeTelRecordAsrRequest()
|
2910
|
+
model.from_json_string(json.dumps(args))
|
2911
|
+
start_time = time.time()
|
2912
|
+
while True:
|
2913
|
+
rsp = client.DescribeTelRecordAsr(model)
|
2914
|
+
result = rsp.to_json_string()
|
2915
|
+
try:
|
2916
|
+
json_obj = json.loads(result)
|
2917
|
+
except TypeError as e:
|
2918
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2919
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2920
|
+
break
|
2921
|
+
cur_time = time.time()
|
2922
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2923
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2924
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2925
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2926
|
+
else:
|
2927
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2928
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2929
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2930
|
+
|
2931
|
+
|
2828
2932
|
def doHangUpCall(args, parsed_globals):
|
2829
2933
|
g_param = parse_global_arg(parsed_globals)
|
2830
2934
|
|
@@ -3085,6 +3189,58 @@ def doDescribeIMCdrList(args, parsed_globals):
|
|
3085
3189
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3086
3190
|
|
3087
3191
|
|
3192
|
+
def doForceMemberOffline(args, parsed_globals):
|
3193
|
+
g_param = parse_global_arg(parsed_globals)
|
3194
|
+
|
3195
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3196
|
+
cred = credential.CVMRoleCredential()
|
3197
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3198
|
+
cred = credential.STSAssumeRoleCredential(
|
3199
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3200
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3201
|
+
)
|
3202
|
+
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):
|
3203
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3204
|
+
else:
|
3205
|
+
cred = credential.Credential(
|
3206
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3207
|
+
)
|
3208
|
+
http_profile = HttpProfile(
|
3209
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3210
|
+
reqMethod="POST",
|
3211
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3212
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3213
|
+
)
|
3214
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3215
|
+
if g_param[OptionsDefine.Language]:
|
3216
|
+
profile.language = g_param[OptionsDefine.Language]
|
3217
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3218
|
+
client = mod.CccClient(cred, g_param[OptionsDefine.Region], profile)
|
3219
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3220
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3221
|
+
model = models.ForceMemberOfflineRequest()
|
3222
|
+
model.from_json_string(json.dumps(args))
|
3223
|
+
start_time = time.time()
|
3224
|
+
while True:
|
3225
|
+
rsp = client.ForceMemberOffline(model)
|
3226
|
+
result = rsp.to_json_string()
|
3227
|
+
try:
|
3228
|
+
json_obj = json.loads(result)
|
3229
|
+
except TypeError as e:
|
3230
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3231
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3232
|
+
break
|
3233
|
+
cur_time = time.time()
|
3234
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3235
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3236
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3237
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3238
|
+
else:
|
3239
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3240
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3241
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3242
|
+
|
3243
|
+
|
3088
3244
|
def doDescribeCallInMetrics(args, parsed_globals):
|
3089
3245
|
g_param = parse_global_arg(parsed_globals)
|
3090
3246
|
|
@@ -3501,6 +3657,58 @@ def doDeletePredictiveDialingCampaign(args, parsed_globals):
|
|
3501
3657
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3502
3658
|
|
3503
3659
|
|
3660
|
+
def doRestoreMemberOnline(args, parsed_globals):
|
3661
|
+
g_param = parse_global_arg(parsed_globals)
|
3662
|
+
|
3663
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3664
|
+
cred = credential.CVMRoleCredential()
|
3665
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3666
|
+
cred = credential.STSAssumeRoleCredential(
|
3667
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3668
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3669
|
+
)
|
3670
|
+
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):
|
3671
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3672
|
+
else:
|
3673
|
+
cred = credential.Credential(
|
3674
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3675
|
+
)
|
3676
|
+
http_profile = HttpProfile(
|
3677
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3678
|
+
reqMethod="POST",
|
3679
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3680
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3681
|
+
)
|
3682
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3683
|
+
if g_param[OptionsDefine.Language]:
|
3684
|
+
profile.language = g_param[OptionsDefine.Language]
|
3685
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3686
|
+
client = mod.CccClient(cred, g_param[OptionsDefine.Region], profile)
|
3687
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3688
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3689
|
+
model = models.RestoreMemberOnlineRequest()
|
3690
|
+
model.from_json_string(json.dumps(args))
|
3691
|
+
start_time = time.time()
|
3692
|
+
while True:
|
3693
|
+
rsp = client.RestoreMemberOnline(model)
|
3694
|
+
result = rsp.to_json_string()
|
3695
|
+
try:
|
3696
|
+
json_obj = json.loads(result)
|
3697
|
+
except TypeError as e:
|
3698
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3699
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3700
|
+
break
|
3701
|
+
cur_time = time.time()
|
3702
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3703
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3704
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3705
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3706
|
+
else:
|
3707
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3708
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3709
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3710
|
+
|
3711
|
+
|
3504
3712
|
def doUpdatePredictiveDialingCampaign(args, parsed_globals):
|
3505
3713
|
g_param = parse_global_arg(parsed_globals)
|
3506
3714
|
|
@@ -3567,11 +3775,12 @@ ACTION_MAP = {
|
|
3567
3775
|
"ModifyCompanyApply": doModifyCompanyApply,
|
3568
3776
|
"UnbindNumberCallOutSkillGroup": doUnbindNumberCallOutSkillGroup,
|
3569
3777
|
"ModifyStaff": doModifyStaff,
|
3778
|
+
"DescribeAILatency": doDescribeAILatency,
|
3570
3779
|
"DescribeAutoCalloutTasks": doDescribeAutoCalloutTasks,
|
3571
3780
|
"AbortAgentCruiseDialingCampaign": doAbortAgentCruiseDialingCampaign,
|
3572
3781
|
"CreateAICall": doCreateAICall,
|
3573
3782
|
"DescribeAgentCruiseDialingCampaign": doDescribeAgentCruiseDialingCampaign,
|
3574
|
-
"
|
3783
|
+
"DeleteCCCSkillGroup": doDeleteCCCSkillGroup,
|
3575
3784
|
"ModifyOwnNumberApply": doModifyOwnNumberApply,
|
3576
3785
|
"DescribePredictiveDialingCampaign": doDescribePredictiveDialingCampaign,
|
3577
3786
|
"DescribePSTNActiveSessionList": doDescribePSTNActiveSessionList,
|
@@ -3618,11 +3827,13 @@ ACTION_MAP = {
|
|
3618
3827
|
"ModifyExtension": doModifyExtension,
|
3619
3828
|
"UpdateCCCSkillGroup": doUpdateCCCSkillGroup,
|
3620
3829
|
"CreateUserSig": doCreateUserSig,
|
3830
|
+
"DescribeTelRecordAsr": doDescribeTelRecordAsr,
|
3621
3831
|
"HangUpCall": doHangUpCall,
|
3622
3832
|
"PausePredictiveDialingCampaign": doPausePredictiveDialingCampaign,
|
3623
3833
|
"CreateAdminURL": doCreateAdminURL,
|
3624
3834
|
"DescribeProtectedTelCdr": doDescribeProtectedTelCdr,
|
3625
3835
|
"DescribeIMCdrList": doDescribeIMCdrList,
|
3836
|
+
"ForceMemberOffline": doForceMemberOffline,
|
3626
3837
|
"DescribeCallInMetrics": doDescribeCallInMetrics,
|
3627
3838
|
"DescribeTelCdr": doDescribeTelCdr,
|
3628
3839
|
"CreateSDKLoginToken": doCreateSDKLoginToken,
|
@@ -3631,6 +3842,7 @@ ACTION_MAP = {
|
|
3631
3842
|
"DescribeCompanyList": doDescribeCompanyList,
|
3632
3843
|
"CreateAIAgentCall": doCreateAIAgentCall,
|
3633
3844
|
"DeletePredictiveDialingCampaign": doDeletePredictiveDialingCampaign,
|
3845
|
+
"RestoreMemberOnline": doRestoreMemberOnline,
|
3634
3846
|
"UpdatePredictiveDialingCampaign": doUpdatePredictiveDialingCampaign,
|
3635
3847
|
|
3636
3848
|
}
|