tccli 3.0.1391.1__py2.py3-none-any.whl → 3.0.1414.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.
Potentially problematic release.
This version of tccli might be problematic. Click here for more details.
- tccli/__init__.py +1 -1
- tccli/services/__init__.py +2 -1
- tccli/services/ai3d/v20250513/api.json +22 -4
- tccli/services/aiart/aiart_client.py +173 -67
- tccli/services/aiart/v20221229/api.json +193 -0
- tccli/services/aiart/v20221229/examples.json +16 -0
- tccli/services/apm/apm_client.py +53 -0
- tccli/services/apm/v20210622/api.json +354 -0
- tccli/services/apm/v20210622/examples.json +8 -0
- tccli/services/asr/v20190614/api.json +3 -3
- tccli/services/autoscaling/v20180419/api.json +24 -2
- tccli/services/batch/v20170312/api.json +1 -1
- tccli/services/bda/bda_client.py +15 -704
- tccli/services/bda/v20200324/api.json +107 -1819
- tccli/services/bda/v20200324/examples.json +0 -176
- tccli/services/billing/billing_client.py +326 -8
- tccli/services/billing/v20180709/api.json +2200 -255
- tccli/services/billing/v20180709/examples.json +48 -0
- tccli/services/cam/v20190116/api.json +4 -4
- tccli/services/captcha/v20190722/api.json +3 -3
- tccli/services/cat/v20180409/api.json +7 -7
- tccli/services/ccc/ccc_client.py +235 -76
- tccli/services/ccc/v20200210/api.json +502 -18
- tccli/services/ccc/v20200210/examples.json +24 -0
- tccli/services/cdb/cdb_client.py +106 -0
- tccli/services/cdb/v20170320/api.json +257 -44
- tccli/services/cdb/v20170320/examples.json +22 -6
- tccli/services/cdn/cdn_client.py +4 -163
- tccli/services/cdn/v20180606/api.json +61 -310
- tccli/services/cdn/v20180606/examples.json +1 -25
- tccli/services/cdwdoris/v20211228/api.json +51 -12
- tccli/services/cdwpg/v20201230/api.json +11 -1
- tccli/services/cdwpg/v20201230/examples.json +1 -1
- tccli/services/cfg/v20210820/api.json +11 -1
- tccli/services/cfs/cfs_client.py +41 -94
- tccli/services/cfs/v20190719/api.json +171 -55
- tccli/services/cfs/v20190719/examples.json +1 -9
- tccli/services/cfw/v20190904/api.json +122 -10
- tccli/services/ckafka/ckafka_client.py +188 -29
- tccli/services/ckafka/v20190819/api.json +277 -4
- tccli/services/ckafka/v20190819/examples.json +25 -1
- tccli/services/clb/clb_client.py +0 -265
- tccli/services/clb/v20180317/api.json +130 -296
- tccli/services/clb/v20180317/examples.json +12 -40
- tccli/services/cloudapp/v20220530/api.json +55 -0
- tccli/services/cloudaudit/v20190319/api.json +11 -0
- tccli/services/cloudhsm/v20191112/api.json +10 -10
- tccli/services/cls/v20201016/api.json +63 -45
- tccli/services/cls/v20201016/examples.json +10 -4
- tccli/services/csip/v20221121/api.json +53 -3
- tccli/services/ctem/v20231128/api.json +320 -0
- tccli/services/ctem/v20231128/examples.json +3 -3
- tccli/services/cvm/cvm_client.py +0 -212
- tccli/services/cvm/v20170312/api.json +91 -843
- tccli/services/cvm/v20170312/examples.json +32 -58
- tccli/services/cynosdb/cynosdb_client.py +167 -8
- tccli/services/cynosdb/v20190107/api.json +1126 -148
- tccli/services/cynosdb/v20190107/examples.json +31 -7
- tccli/services/dbbrain/dbbrain_client.py +246 -87
- tccli/services/dbbrain/v20191016/api.json +74 -62
- tccli/services/dbbrain/v20191016/examples.json +1 -1
- tccli/services/dbbrain/v20210527/api.json +601 -177
- tccli/services/dbbrain/v20210527/examples.json +28 -4
- tccli/services/dc/v20180410/api.json +101 -3
- tccli/services/dcdb/v20180411/api.json +1 -1
- tccli/services/dlc/dlc_client.py +53 -0
- tccli/services/dlc/v20210125/api.json +237 -24
- tccli/services/dlc/v20210125/examples.json +12 -4
- tccli/services/dnspod/dnspod_client.py +106 -0
- tccli/services/dnspod/v20210323/api.json +126 -20
- tccli/services/dnspod/v20210323/examples.json +17 -7
- tccli/services/dsgc/v20190723/api.json +73 -15
- tccli/services/dts/v20180330/api.json +4 -4
- tccli/services/dts/v20211206/api.json +408 -127
- tccli/services/dts/v20211206/examples.json +15 -9
- tccli/services/eb/v20210416/api.json +41 -1
- tccli/services/eb/v20210416/examples.json +1 -1
- tccli/services/emr/v20190103/api.json +56 -9
- tccli/services/emr/v20190103/examples.json +5 -5
- tccli/services/es/es_client.py +273 -8
- tccli/services/es/v20180416/api.json +845 -33
- tccli/services/es/v20180416/examples.json +33 -1
- tccli/services/es/v20250101/api.json +135 -2
- tccli/services/es/v20250101/examples.json +8 -0
- tccli/services/ess/ess_client.py +509 -32
- tccli/services/ess/v20201111/api.json +1366 -113
- tccli/services/ess/v20201111/examples.json +94 -10
- tccli/services/essbasic/v20210526/api.json +265 -27
- tccli/services/essbasic/v20210526/examples.json +12 -12
- tccli/services/facefusion/v20220927/api.json +1 -1
- tccli/services/gaap/v20180529/api.json +18 -8
- tccli/services/gme/gme_client.py +53 -0
- tccli/services/gme/v20180711/api.json +241 -1
- tccli/services/gme/v20180711/examples.json +8 -0
- tccli/services/gs/gs_client.py +216 -4
- tccli/services/gs/v20191118/api.json +202 -1
- tccli/services/gs/v20191118/examples.json +32 -0
- tccli/services/gwlb/gwlb_client.py +53 -0
- tccli/services/gwlb/v20240906/api.json +150 -0
- tccli/services/gwlb/v20240906/examples.json +8 -0
- tccli/services/hai/v20230812/api.json +5 -5
- tccli/services/hunyuan/v20230901/api.json +3 -3
- tccli/services/hunyuan/v20230901/examples.json +1 -1
- tccli/services/iai/v20180301/api.json +227 -207
- tccli/services/iai/v20180301/examples.json +26 -26
- tccli/services/iai/v20200303/api.json +4 -4
- tccli/services/iai/v20200303/examples.json +1 -1
- tccli/services/ioa/ioa_client.py +265 -0
- tccli/services/ioa/v20220601/api.json +781 -85
- tccli/services/ioa/v20220601/examples.json +46 -0
- tccli/services/iotexplorer/iotexplorer_client.py +387 -16
- tccli/services/iotexplorer/v20190423/api.json +1183 -63
- tccli/services/iotexplorer/v20190423/examples.json +92 -0
- tccli/services/keewidb/v20220308/api.json +69 -17
- tccli/services/keewidb/v20220308/examples.json +5 -5
- tccli/services/lcic/v20220817/api.json +61 -15
- tccli/services/lighthouse/v20200324/api.json +193 -24
- tccli/services/lighthouse/v20200324/examples.json +9 -3
- tccli/services/live/v20180801/api.json +6 -6
- tccli/services/live/v20180801/examples.json +7 -1
- tccli/services/lke/lke_client.py +40 -93
- tccli/services/lke/v20231130/api.json +943 -390
- tccli/services/lke/v20231130/examples.json +38 -46
- tccli/services/lkeap/v20240522/api.json +39 -12
- tccli/services/lkeap/v20240522/examples.json +12 -0
- tccli/services/mariadb/v20170312/api.json +1 -1
- tccli/services/mna/v20210119/api.json +11 -2
- tccli/services/mna/v20210119/examples.json +1 -1
- tccli/services/mongodb/mongodb_client.py +334 -16
- tccli/services/mongodb/v20190725/api.json +1092 -383
- tccli/services/mongodb/v20190725/examples.json +69 -21
- tccli/services/monitor/monitor_client.py +106 -0
- tccli/services/monitor/v20180724/api.json +383 -12
- tccli/services/monitor/v20180724/examples.json +24 -2
- tccli/services/mps/mps_client.py +220 -8
- tccli/services/mps/v20190612/api.json +1999 -179
- tccli/services/mps/v20190612/examples.json +56 -6
- tccli/services/mqtt/v20240516/api.json +10 -0
- tccli/services/mqtt/v20240516/examples.json +3 -9
- tccli/services/nlp/v20190408/api.json +6 -6
- tccli/services/oceanus/oceanus_client.py +318 -0
- tccli/services/oceanus/v20190422/api.json +461 -26
- tccli/services/oceanus/v20190422/examples.json +50 -2
- tccli/services/ocr/ocr_client.py +41 -253
- tccli/services/ocr/v20181119/api.json +153 -659
- tccli/services/ocr/v20181119/examples.json +8 -40
- tccli/services/omics/v20221128/api.json +90 -7
- tccli/services/organization/v20210331/api.json +46 -7
- tccli/services/postgres/v20170312/api.json +333 -77
- tccli/services/postgres/v20170312/examples.json +37 -31
- tccli/services/privatedns/privatedns_client.py +641 -58
- tccli/services/privatedns/v20201028/api.json +930 -19
- tccli/services/privatedns/v20201028/examples.json +91 -3
- tccli/services/pts/v20210728/api.json +2 -2
- tccli/services/redis/v20180412/api.json +303 -109
- tccli/services/redis/v20180412/examples.json +12 -12
- tccli/services/region/v20220627/api.json +1 -1
- tccli/services/rum/v20210622/api.json +22 -4
- tccli/services/rum/v20210622/examples.json +2 -2
- tccli/services/sms/v20190711/api.json +12 -12
- tccli/services/sms/v20190711/examples.json +9 -3
- tccli/services/sms/v20210111/api.json +13 -13
- tccli/services/sms/v20210111/examples.json +8 -2
- tccli/services/sqlserver/v20180328/api.json +46 -7
- tccli/services/sqlserver/v20180328/examples.json +2 -2
- tccli/services/ssl/v20191205/api.json +28 -0
- tccli/services/svp/v20240125/api.json +14 -4
- tccli/services/tag/v20180813/api.json +3 -3
- tccli/services/tat/v20201028/api.json +22 -3
- tccli/services/tcb/v20180608/api.json +1 -1
- tccli/services/tcss/tcss_client.py +228 -69
- tccli/services/tcss/v20201101/api.json +273 -25
- tccli/services/tcss/v20201101/examples.json +26 -2
- tccli/services/teo/teo_client.py +317 -52
- tccli/services/teo/v20220901/api.json +1824 -242
- tccli/services/teo/v20220901/examples.json +109 -21
- tccli/services/thpc/thpc_client.py +57 -4
- tccli/services/thpc/v20230321/api.json +163 -21
- tccli/services/thpc/v20230321/examples.json +13 -5
- tccli/services/tione/tione_client.py +163 -4
- tccli/services/tione/v20211111/api.json +285 -21
- tccli/services/tione/v20211111/examples.json +27 -3
- tccli/services/tke/tke_client.py +8 -8
- tccli/services/tke/v20180525/api.json +168 -130
- tccli/services/tke/v20180525/examples.json +20 -20
- tccli/services/tke/v20220501/api.json +215 -3
- tccli/services/tke/v20220501/examples.json +8 -0
- tccli/services/tms/tms_client.py +106 -0
- tccli/services/tms/v20201229/api.json +249 -3
- tccli/services/tms/v20201229/examples.json +16 -0
- tccli/services/tmt/v20180321/api.json +78 -1
- tccli/services/trabbit/v20230418/api.json +271 -4
- tccli/services/trabbit/v20230418/examples.json +9 -3
- tccli/services/trocket/v20230308/api.json +4 -4
- tccli/services/trro/trro_client.py +106 -0
- tccli/services/trro/v20220325/api.json +456 -0
- tccli/services/trro/v20220325/examples.json +16 -0
- tccli/services/trtc/v20190722/api.json +197 -49
- tccli/services/trtc/v20190722/examples.json +4 -4
- tccli/services/tse/v20201207/api.json +69 -2
- tccli/services/tse/v20201207/examples.json +3 -3
- tccli/services/tsf/v20180326/api.json +70 -7
- tccli/services/tsf/v20180326/examples.json +2 -2
- tccli/services/vclm/v20240523/api.json +145 -0
- tccli/services/vclm/v20240523/examples.json +16 -0
- tccli/services/vclm/vclm_client.py +106 -0
- tccli/services/vcube/v20220410/api.json +1 -1
- tccli/services/vod/v20180717/api.json +7 -7
- tccli/services/vpc/v20170312/api.json +1216 -70
- tccli/services/vpc/v20170312/examples.json +139 -3
- tccli/services/vpc/vpc_client.py +1023 -122
- tccli/services/vrs/v20200824/api.json +11 -11
- tccli/services/vrs/v20200824/examples.json +1 -1
- tccli/services/vtc/v20240223/api.json +14 -14
- tccli/services/waf/v20180125/api.json +812 -143
- tccli/services/waf/v20180125/examples.json +2 -2
- tccli/services/wedata/v20210820/api.json +1281 -601
- tccli/services/wedata/v20210820/examples.json +127 -157
- tccli/services/wedata/v20250806/api.json +19335 -0
- tccli/services/wedata/v20250806/examples.json +999 -0
- tccli/services/wedata/wedata_client.py +7072 -1131
- {tccli-3.0.1391.1.dist-info → tccli-3.0.1414.1.dist-info}/METADATA +9 -7
- {tccli-3.0.1391.1.dist-info → tccli-3.0.1414.1.dist-info}/RECORD +226 -224
- {tccli-3.0.1391.1.dist-info → tccli-3.0.1414.1.dist-info}/WHEEL +1 -1
- {tccli-3.0.1391.1.dist-info → tccli-3.0.1414.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1391.1.dist-info/license_files → tccli-3.0.1414.1.dist-info/licenses}/LICENSE +0 -0
tccli/services/ccc/ccc_client.py
CHANGED
|
@@ -17,7 +17,7 @@ from tencentcloud.ccc.v20200210 import models as models_v20200210
|
|
|
17
17
|
from jmespath import search
|
|
18
18
|
import time
|
|
19
19
|
|
|
20
|
-
def
|
|
20
|
+
def doDescribeAIAnalysisResult(args, parsed_globals):
|
|
21
21
|
g_param = parse_global_arg(parsed_globals)
|
|
22
22
|
|
|
23
23
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -46,11 +46,11 @@ def doModifyCompanyApply(args, parsed_globals):
|
|
|
46
46
|
client = mod.CccClient(cred, g_param[OptionsDefine.Region], profile)
|
|
47
47
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
48
48
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
49
|
-
model = models.
|
|
49
|
+
model = models.DescribeAIAnalysisResultRequest()
|
|
50
50
|
model.from_json_string(json.dumps(args))
|
|
51
51
|
start_time = time.time()
|
|
52
52
|
while True:
|
|
53
|
-
rsp = client.
|
|
53
|
+
rsp = client.DescribeAIAnalysisResult(model)
|
|
54
54
|
result = rsp.to_json_string()
|
|
55
55
|
try:
|
|
56
56
|
json_obj = json.loads(result)
|
|
@@ -69,7 +69,7 @@ def doModifyCompanyApply(args, parsed_globals):
|
|
|
69
69
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
70
70
|
|
|
71
71
|
|
|
72
|
-
def
|
|
72
|
+
def doDescribeExtensions(args, parsed_globals):
|
|
73
73
|
g_param = parse_global_arg(parsed_globals)
|
|
74
74
|
|
|
75
75
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -98,11 +98,11 @@ def doUnbindNumberCallOutSkillGroup(args, parsed_globals):
|
|
|
98
98
|
client = mod.CccClient(cred, g_param[OptionsDefine.Region], profile)
|
|
99
99
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
100
100
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
101
|
-
model = models.
|
|
101
|
+
model = models.DescribeExtensionsRequest()
|
|
102
102
|
model.from_json_string(json.dumps(args))
|
|
103
103
|
start_time = time.time()
|
|
104
104
|
while True:
|
|
105
|
-
rsp = client.
|
|
105
|
+
rsp = client.DescribeExtensions(model)
|
|
106
106
|
result = rsp.to_json_string()
|
|
107
107
|
try:
|
|
108
108
|
json_obj = json.loads(result)
|
|
@@ -121,7 +121,7 @@ def doUnbindNumberCallOutSkillGroup(args, parsed_globals):
|
|
|
121
121
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
122
122
|
|
|
123
123
|
|
|
124
|
-
def
|
|
124
|
+
def doDescribeAILatency(args, parsed_globals):
|
|
125
125
|
g_param = parse_global_arg(parsed_globals)
|
|
126
126
|
|
|
127
127
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -150,11 +150,11 @@ def doModifyStaff(args, parsed_globals):
|
|
|
150
150
|
client = mod.CccClient(cred, g_param[OptionsDefine.Region], profile)
|
|
151
151
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
152
152
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
153
|
-
model = models.
|
|
153
|
+
model = models.DescribeAILatencyRequest()
|
|
154
154
|
model.from_json_string(json.dumps(args))
|
|
155
155
|
start_time = time.time()
|
|
156
156
|
while True:
|
|
157
|
-
rsp = client.
|
|
157
|
+
rsp = client.DescribeAILatency(model)
|
|
158
158
|
result = rsp.to_json_string()
|
|
159
159
|
try:
|
|
160
160
|
json_obj = json.loads(result)
|
|
@@ -173,7 +173,7 @@ 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
|
|
176
|
+
def doCreateExtension(args, parsed_globals):
|
|
177
177
|
g_param = parse_global_arg(parsed_globals)
|
|
178
178
|
|
|
179
179
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -202,11 +202,11 @@ def doDescribeAILatency(args, parsed_globals):
|
|
|
202
202
|
client = mod.CccClient(cred, g_param[OptionsDefine.Region], profile)
|
|
203
203
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
204
204
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
205
|
-
model = models.
|
|
205
|
+
model = models.CreateExtensionRequest()
|
|
206
206
|
model.from_json_string(json.dumps(args))
|
|
207
207
|
start_time = time.time()
|
|
208
208
|
while True:
|
|
209
|
-
rsp = client.
|
|
209
|
+
rsp = client.CreateExtension(model)
|
|
210
210
|
result = rsp.to_json_string()
|
|
211
211
|
try:
|
|
212
212
|
json_obj = json.loads(result)
|
|
@@ -225,7 +225,7 @@ def doDescribeAILatency(args, parsed_globals):
|
|
|
225
225
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
226
226
|
|
|
227
227
|
|
|
228
|
-
def
|
|
228
|
+
def doAbortAgentCruiseDialingCampaign(args, parsed_globals):
|
|
229
229
|
g_param = parse_global_arg(parsed_globals)
|
|
230
230
|
|
|
231
231
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -254,11 +254,11 @@ def doCreateExtension(args, parsed_globals):
|
|
|
254
254
|
client = mod.CccClient(cred, g_param[OptionsDefine.Region], profile)
|
|
255
255
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
256
256
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
257
|
-
model = models.
|
|
257
|
+
model = models.AbortAgentCruiseDialingCampaignRequest()
|
|
258
258
|
model.from_json_string(json.dumps(args))
|
|
259
259
|
start_time = time.time()
|
|
260
260
|
while True:
|
|
261
|
-
rsp = client.
|
|
261
|
+
rsp = client.AbortAgentCruiseDialingCampaign(model)
|
|
262
262
|
result = rsp.to_json_string()
|
|
263
263
|
try:
|
|
264
264
|
json_obj = json.loads(result)
|
|
@@ -277,7 +277,7 @@ def doCreateExtension(args, parsed_globals):
|
|
|
277
277
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
278
278
|
|
|
279
279
|
|
|
280
|
-
def
|
|
280
|
+
def doCreateAICall(args, parsed_globals):
|
|
281
281
|
g_param = parse_global_arg(parsed_globals)
|
|
282
282
|
|
|
283
283
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -306,11 +306,11 @@ def doAbortAgentCruiseDialingCampaign(args, parsed_globals):
|
|
|
306
306
|
client = mod.CccClient(cred, g_param[OptionsDefine.Region], profile)
|
|
307
307
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
308
308
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
309
|
-
model = models.
|
|
309
|
+
model = models.CreateAICallRequest()
|
|
310
310
|
model.from_json_string(json.dumps(args))
|
|
311
311
|
start_time = time.time()
|
|
312
312
|
while True:
|
|
313
|
-
rsp = client.
|
|
313
|
+
rsp = client.CreateAICall(model)
|
|
314
314
|
result = rsp.to_json_string()
|
|
315
315
|
try:
|
|
316
316
|
json_obj = json.loads(result)
|
|
@@ -329,7 +329,7 @@ def doAbortAgentCruiseDialingCampaign(args, parsed_globals):
|
|
|
329
329
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
330
330
|
|
|
331
331
|
|
|
332
|
-
def
|
|
332
|
+
def doDescribeAgentCruiseDialingCampaign(args, parsed_globals):
|
|
333
333
|
g_param = parse_global_arg(parsed_globals)
|
|
334
334
|
|
|
335
335
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -358,11 +358,11 @@ def doCreateAICall(args, parsed_globals):
|
|
|
358
358
|
client = mod.CccClient(cred, g_param[OptionsDefine.Region], profile)
|
|
359
359
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
360
360
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
361
|
-
model = models.
|
|
361
|
+
model = models.DescribeAgentCruiseDialingCampaignRequest()
|
|
362
362
|
model.from_json_string(json.dumps(args))
|
|
363
363
|
start_time = time.time()
|
|
364
364
|
while True:
|
|
365
|
-
rsp = client.
|
|
365
|
+
rsp = client.DescribeAgentCruiseDialingCampaign(model)
|
|
366
366
|
result = rsp.to_json_string()
|
|
367
367
|
try:
|
|
368
368
|
json_obj = json.loads(result)
|
|
@@ -381,7 +381,7 @@ def doCreateAICall(args, parsed_globals):
|
|
|
381
381
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
382
382
|
|
|
383
383
|
|
|
384
|
-
def
|
|
384
|
+
def doDeleteCCCSkillGroup(args, parsed_globals):
|
|
385
385
|
g_param = parse_global_arg(parsed_globals)
|
|
386
386
|
|
|
387
387
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -410,11 +410,11 @@ def doDescribeAgentCruiseDialingCampaign(args, parsed_globals):
|
|
|
410
410
|
client = mod.CccClient(cred, g_param[OptionsDefine.Region], profile)
|
|
411
411
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
412
412
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
413
|
-
model = models.
|
|
413
|
+
model = models.DeleteCCCSkillGroupRequest()
|
|
414
414
|
model.from_json_string(json.dumps(args))
|
|
415
415
|
start_time = time.time()
|
|
416
416
|
while True:
|
|
417
|
-
rsp = client.
|
|
417
|
+
rsp = client.DeleteCCCSkillGroup(model)
|
|
418
418
|
result = rsp.to_json_string()
|
|
419
419
|
try:
|
|
420
420
|
json_obj = json.loads(result)
|
|
@@ -433,7 +433,7 @@ def doDescribeAgentCruiseDialingCampaign(args, parsed_globals):
|
|
|
433
433
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
434
434
|
|
|
435
435
|
|
|
436
|
-
def
|
|
436
|
+
def doStopAutoCalloutTask(args, parsed_globals):
|
|
437
437
|
g_param = parse_global_arg(parsed_globals)
|
|
438
438
|
|
|
439
439
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -462,11 +462,11 @@ def doDeleteCCCSkillGroup(args, parsed_globals):
|
|
|
462
462
|
client = mod.CccClient(cred, g_param[OptionsDefine.Region], profile)
|
|
463
463
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
464
464
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
465
|
-
model = models.
|
|
465
|
+
model = models.StopAutoCalloutTaskRequest()
|
|
466
466
|
model.from_json_string(json.dumps(args))
|
|
467
467
|
start_time = time.time()
|
|
468
468
|
while True:
|
|
469
|
-
rsp = client.
|
|
469
|
+
rsp = client.StopAutoCalloutTask(model)
|
|
470
470
|
result = rsp.to_json_string()
|
|
471
471
|
try:
|
|
472
472
|
json_obj = json.loads(result)
|
|
@@ -485,7 +485,7 @@ def doDeleteCCCSkillGroup(args, parsed_globals):
|
|
|
485
485
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
486
486
|
|
|
487
487
|
|
|
488
|
-
def
|
|
488
|
+
def doDisableCCCPhoneNumber(args, parsed_globals):
|
|
489
489
|
g_param = parse_global_arg(parsed_globals)
|
|
490
490
|
|
|
491
491
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -514,11 +514,11 @@ def doStopAutoCalloutTask(args, parsed_globals):
|
|
|
514
514
|
client = mod.CccClient(cred, g_param[OptionsDefine.Region], profile)
|
|
515
515
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
516
516
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
517
|
-
model = models.
|
|
517
|
+
model = models.DisableCCCPhoneNumberRequest()
|
|
518
518
|
model.from_json_string(json.dumps(args))
|
|
519
519
|
start_time = time.time()
|
|
520
520
|
while True:
|
|
521
|
-
rsp = client.
|
|
521
|
+
rsp = client.DisableCCCPhoneNumber(model)
|
|
522
522
|
result = rsp.to_json_string()
|
|
523
523
|
try:
|
|
524
524
|
json_obj = json.loads(result)
|
|
@@ -537,7 +537,7 @@ def doStopAutoCalloutTask(args, parsed_globals):
|
|
|
537
537
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
538
538
|
|
|
539
539
|
|
|
540
|
-
def
|
|
540
|
+
def doDescribePSTNActiveSessionList(args, parsed_globals):
|
|
541
541
|
g_param = parse_global_arg(parsed_globals)
|
|
542
542
|
|
|
543
543
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -566,11 +566,11 @@ def doDisableCCCPhoneNumber(args, parsed_globals):
|
|
|
566
566
|
client = mod.CccClient(cred, g_param[OptionsDefine.Region], profile)
|
|
567
567
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
568
568
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
569
|
-
model = models.
|
|
569
|
+
model = models.DescribePSTNActiveSessionListRequest()
|
|
570
570
|
model.from_json_string(json.dumps(args))
|
|
571
571
|
start_time = time.time()
|
|
572
572
|
while True:
|
|
573
|
-
rsp = client.
|
|
573
|
+
rsp = client.DescribePSTNActiveSessionList(model)
|
|
574
574
|
result = rsp.to_json_string()
|
|
575
575
|
try:
|
|
576
576
|
json_obj = json.loads(result)
|
|
@@ -589,7 +589,7 @@ def doDisableCCCPhoneNumber(args, parsed_globals):
|
|
|
589
589
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
590
590
|
|
|
591
591
|
|
|
592
|
-
def
|
|
592
|
+
def doBindNumberCallInInterface(args, parsed_globals):
|
|
593
593
|
g_param = parse_global_arg(parsed_globals)
|
|
594
594
|
|
|
595
595
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -618,11 +618,11 @@ def doDescribePSTNActiveSessionList(args, parsed_globals):
|
|
|
618
618
|
client = mod.CccClient(cred, g_param[OptionsDefine.Region], profile)
|
|
619
619
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
620
620
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
621
|
-
model = models.
|
|
621
|
+
model = models.BindNumberCallInInterfaceRequest()
|
|
622
622
|
model.from_json_string(json.dumps(args))
|
|
623
623
|
start_time = time.time()
|
|
624
624
|
while True:
|
|
625
|
-
rsp = client.
|
|
625
|
+
rsp = client.BindNumberCallInInterface(model)
|
|
626
626
|
result = rsp.to_json_string()
|
|
627
627
|
try:
|
|
628
628
|
json_obj = json.loads(result)
|
|
@@ -641,7 +641,7 @@ 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
|
|
644
|
+
def doDeleteExtension(args, parsed_globals):
|
|
645
645
|
g_param = parse_global_arg(parsed_globals)
|
|
646
646
|
|
|
647
647
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -670,11 +670,11 @@ def doBindNumberCallInInterface(args, parsed_globals):
|
|
|
670
670
|
client = mod.CccClient(cred, g_param[OptionsDefine.Region], profile)
|
|
671
671
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
672
672
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
673
|
-
model = models.
|
|
673
|
+
model = models.DeleteExtensionRequest()
|
|
674
674
|
model.from_json_string(json.dumps(args))
|
|
675
675
|
start_time = time.time()
|
|
676
676
|
while True:
|
|
677
|
-
rsp = client.
|
|
677
|
+
rsp = client.DeleteExtension(model)
|
|
678
678
|
result = rsp.to_json_string()
|
|
679
679
|
try:
|
|
680
680
|
json_obj = json.loads(result)
|
|
@@ -693,7 +693,7 @@ def doBindNumberCallInInterface(args, parsed_globals):
|
|
|
693
693
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
694
694
|
|
|
695
695
|
|
|
696
|
-
def
|
|
696
|
+
def doBindStaffSkillGroupList(args, parsed_globals):
|
|
697
697
|
g_param = parse_global_arg(parsed_globals)
|
|
698
698
|
|
|
699
699
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -722,11 +722,11 @@ def doDeleteExtension(args, parsed_globals):
|
|
|
722
722
|
client = mod.CccClient(cred, g_param[OptionsDefine.Region], profile)
|
|
723
723
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
724
724
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
725
|
-
model = models.
|
|
725
|
+
model = models.BindStaffSkillGroupListRequest()
|
|
726
726
|
model.from_json_string(json.dumps(args))
|
|
727
727
|
start_time = time.time()
|
|
728
728
|
while True:
|
|
729
|
-
rsp = client.
|
|
729
|
+
rsp = client.BindStaffSkillGroupList(model)
|
|
730
730
|
result = rsp.to_json_string()
|
|
731
731
|
try:
|
|
732
732
|
json_obj = json.loads(result)
|
|
@@ -745,7 +745,7 @@ def doDeleteExtension(args, parsed_globals):
|
|
|
745
745
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
746
746
|
|
|
747
747
|
|
|
748
|
-
def
|
|
748
|
+
def doDescribeChatMessages(args, parsed_globals):
|
|
749
749
|
g_param = parse_global_arg(parsed_globals)
|
|
750
750
|
|
|
751
751
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -774,11 +774,11 @@ def doBindStaffSkillGroupList(args, parsed_globals):
|
|
|
774
774
|
client = mod.CccClient(cred, g_param[OptionsDefine.Region], profile)
|
|
775
775
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
776
776
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
777
|
-
model = models.
|
|
777
|
+
model = models.DescribeChatMessagesRequest()
|
|
778
778
|
model.from_json_string(json.dumps(args))
|
|
779
779
|
start_time = time.time()
|
|
780
780
|
while True:
|
|
781
|
-
rsp = client.
|
|
781
|
+
rsp = client.DescribeChatMessages(model)
|
|
782
782
|
result = rsp.to_json_string()
|
|
783
783
|
try:
|
|
784
784
|
json_obj = json.loads(result)
|
|
@@ -797,7 +797,7 @@ def doBindStaffSkillGroupList(args, parsed_globals):
|
|
|
797
797
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
798
798
|
|
|
799
799
|
|
|
800
|
-
def
|
|
800
|
+
def doDescribeIMCdrs(args, parsed_globals):
|
|
801
801
|
g_param = parse_global_arg(parsed_globals)
|
|
802
802
|
|
|
803
803
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -826,11 +826,11 @@ def doDescribeChatMessages(args, parsed_globals):
|
|
|
826
826
|
client = mod.CccClient(cred, g_param[OptionsDefine.Region], profile)
|
|
827
827
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
828
828
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
829
|
-
model = models.
|
|
829
|
+
model = models.DescribeIMCdrsRequest()
|
|
830
830
|
model.from_json_string(json.dumps(args))
|
|
831
831
|
start_time = time.time()
|
|
832
832
|
while True:
|
|
833
|
-
rsp = client.
|
|
833
|
+
rsp = client.DescribeIMCdrs(model)
|
|
834
834
|
result = rsp.to_json_string()
|
|
835
835
|
try:
|
|
836
836
|
json_obj = json.loads(result)
|
|
@@ -849,7 +849,7 @@ def doDescribeChatMessages(args, parsed_globals):
|
|
|
849
849
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
850
850
|
|
|
851
851
|
|
|
852
|
-
def
|
|
852
|
+
def doCreatePredictiveDialingCampaign(args, parsed_globals):
|
|
853
853
|
g_param = parse_global_arg(parsed_globals)
|
|
854
854
|
|
|
855
855
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -878,11 +878,11 @@ def doDescribeIMCdrs(args, parsed_globals):
|
|
|
878
878
|
client = mod.CccClient(cred, g_param[OptionsDefine.Region], profile)
|
|
879
879
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
880
880
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
881
|
-
model = models.
|
|
881
|
+
model = models.CreatePredictiveDialingCampaignRequest()
|
|
882
882
|
model.from_json_string(json.dumps(args))
|
|
883
883
|
start_time = time.time()
|
|
884
884
|
while True:
|
|
885
|
-
rsp = client.
|
|
885
|
+
rsp = client.CreatePredictiveDialingCampaign(model)
|
|
886
886
|
result = rsp.to_json_string()
|
|
887
887
|
try:
|
|
888
888
|
json_obj = json.loads(result)
|
|
@@ -901,7 +901,7 @@ def doDescribeIMCdrs(args, parsed_globals):
|
|
|
901
901
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
902
902
|
|
|
903
903
|
|
|
904
|
-
def
|
|
904
|
+
def doDeleteStaff(args, parsed_globals):
|
|
905
905
|
g_param = parse_global_arg(parsed_globals)
|
|
906
906
|
|
|
907
907
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -930,11 +930,11 @@ def doCreatePredictiveDialingCampaign(args, parsed_globals):
|
|
|
930
930
|
client = mod.CccClient(cred, g_param[OptionsDefine.Region], profile)
|
|
931
931
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
932
932
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
933
|
-
model = models.
|
|
933
|
+
model = models.DeleteStaffRequest()
|
|
934
934
|
model.from_json_string(json.dumps(args))
|
|
935
935
|
start_time = time.time()
|
|
936
936
|
while True:
|
|
937
|
-
rsp = client.
|
|
937
|
+
rsp = client.DeleteStaff(model)
|
|
938
938
|
result = rsp.to_json_string()
|
|
939
939
|
try:
|
|
940
940
|
json_obj = json.loads(result)
|
|
@@ -953,7 +953,7 @@ def doCreatePredictiveDialingCampaign(args, parsed_globals):
|
|
|
953
953
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
954
954
|
|
|
955
955
|
|
|
956
|
-
def
|
|
956
|
+
def doAbortPredictiveDialingCampaign(args, parsed_globals):
|
|
957
957
|
g_param = parse_global_arg(parsed_globals)
|
|
958
958
|
|
|
959
959
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -982,11 +982,11 @@ def doDeleteStaff(args, parsed_globals):
|
|
|
982
982
|
client = mod.CccClient(cred, g_param[OptionsDefine.Region], profile)
|
|
983
983
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
984
984
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
985
|
-
model = models.
|
|
985
|
+
model = models.AbortPredictiveDialingCampaignRequest()
|
|
986
986
|
model.from_json_string(json.dumps(args))
|
|
987
987
|
start_time = time.time()
|
|
988
988
|
while True:
|
|
989
|
-
rsp = client.
|
|
989
|
+
rsp = client.AbortPredictiveDialingCampaign(model)
|
|
990
990
|
result = rsp.to_json_string()
|
|
991
991
|
try:
|
|
992
992
|
json_obj = json.loads(result)
|
|
@@ -1005,7 +1005,7 @@ def doDeleteStaff(args, parsed_globals):
|
|
|
1005
1005
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1006
1006
|
|
|
1007
1007
|
|
|
1008
|
-
def
|
|
1008
|
+
def doDescribeActiveCarrierPrivilegeNumber(args, parsed_globals):
|
|
1009
1009
|
g_param = parse_global_arg(parsed_globals)
|
|
1010
1010
|
|
|
1011
1011
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -1034,11 +1034,63 @@ def doDescribeExtensions(args, parsed_globals):
|
|
|
1034
1034
|
client = mod.CccClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1035
1035
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
1036
1036
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1037
|
-
model = models.
|
|
1037
|
+
model = models.DescribeActiveCarrierPrivilegeNumberRequest()
|
|
1038
1038
|
model.from_json_string(json.dumps(args))
|
|
1039
1039
|
start_time = time.time()
|
|
1040
1040
|
while True:
|
|
1041
|
-
rsp = client.
|
|
1041
|
+
rsp = client.DescribeActiveCarrierPrivilegeNumber(model)
|
|
1042
|
+
result = rsp.to_json_string()
|
|
1043
|
+
try:
|
|
1044
|
+
json_obj = json.loads(result)
|
|
1045
|
+
except TypeError as e:
|
|
1046
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
1047
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
1048
|
+
break
|
|
1049
|
+
cur_time = time.time()
|
|
1050
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
1051
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
1052
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
1053
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
1054
|
+
else:
|
|
1055
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
1056
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
1057
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1058
|
+
|
|
1059
|
+
|
|
1060
|
+
def doModifyCompanyApply(args, parsed_globals):
|
|
1061
|
+
g_param = parse_global_arg(parsed_globals)
|
|
1062
|
+
|
|
1063
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
1064
|
+
cred = credential.CVMRoleCredential()
|
|
1065
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
1066
|
+
cred = credential.STSAssumeRoleCredential(
|
|
1067
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
1068
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
1069
|
+
)
|
|
1070
|
+
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):
|
|
1071
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
1072
|
+
else:
|
|
1073
|
+
cred = credential.Credential(
|
|
1074
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
1075
|
+
)
|
|
1076
|
+
http_profile = HttpProfile(
|
|
1077
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
1078
|
+
reqMethod="POST",
|
|
1079
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1080
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1081
|
+
)
|
|
1082
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
1083
|
+
if g_param[OptionsDefine.Language]:
|
|
1084
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
1085
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
1086
|
+
client = mod.CccClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1087
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
1088
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1089
|
+
model = models.ModifyCompanyApplyRequest()
|
|
1090
|
+
model.from_json_string(json.dumps(args))
|
|
1091
|
+
start_time = time.time()
|
|
1092
|
+
while True:
|
|
1093
|
+
rsp = client.ModifyCompanyApply(model)
|
|
1042
1094
|
result = rsp.to_json_string()
|
|
1043
1095
|
try:
|
|
1044
1096
|
json_obj = json.loads(result)
|
|
@@ -1161,6 +1213,58 @@ def doResetExtensionPassword(args, parsed_globals):
|
|
|
1161
1213
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1162
1214
|
|
|
1163
1215
|
|
|
1216
|
+
def doSetStaffStatus(args, parsed_globals):
|
|
1217
|
+
g_param = parse_global_arg(parsed_globals)
|
|
1218
|
+
|
|
1219
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
1220
|
+
cred = credential.CVMRoleCredential()
|
|
1221
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
1222
|
+
cred = credential.STSAssumeRoleCredential(
|
|
1223
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
1224
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
1225
|
+
)
|
|
1226
|
+
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):
|
|
1227
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
1228
|
+
else:
|
|
1229
|
+
cred = credential.Credential(
|
|
1230
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
1231
|
+
)
|
|
1232
|
+
http_profile = HttpProfile(
|
|
1233
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
1234
|
+
reqMethod="POST",
|
|
1235
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1236
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1237
|
+
)
|
|
1238
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
1239
|
+
if g_param[OptionsDefine.Language]:
|
|
1240
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
1241
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
1242
|
+
client = mod.CccClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1243
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
1244
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1245
|
+
model = models.SetStaffStatusRequest()
|
|
1246
|
+
model.from_json_string(json.dumps(args))
|
|
1247
|
+
start_time = time.time()
|
|
1248
|
+
while True:
|
|
1249
|
+
rsp = client.SetStaffStatus(model)
|
|
1250
|
+
result = rsp.to_json_string()
|
|
1251
|
+
try:
|
|
1252
|
+
json_obj = json.loads(result)
|
|
1253
|
+
except TypeError as e:
|
|
1254
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
1255
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
1256
|
+
break
|
|
1257
|
+
cur_time = time.time()
|
|
1258
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
1259
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
1260
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
1261
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
1262
|
+
else:
|
|
1263
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
1264
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
1265
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1266
|
+
|
|
1267
|
+
|
|
1164
1268
|
def doCreateStaff(args, parsed_globals):
|
|
1165
1269
|
g_param = parse_global_arg(parsed_globals)
|
|
1166
1270
|
|
|
@@ -1681,7 +1785,7 @@ def doCreateCompanyApply(args, parsed_globals):
|
|
|
1681
1785
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1682
1786
|
|
|
1683
1787
|
|
|
1684
|
-
def
|
|
1788
|
+
def doModifyStaff(args, parsed_globals):
|
|
1685
1789
|
g_param = parse_global_arg(parsed_globals)
|
|
1686
1790
|
|
|
1687
1791
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -1710,11 +1814,11 @@ def doDescribeTelCdr(args, parsed_globals):
|
|
|
1710
1814
|
client = mod.CccClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1711
1815
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
1712
1816
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1713
|
-
model = models.
|
|
1817
|
+
model = models.ModifyStaffRequest()
|
|
1714
1818
|
model.from_json_string(json.dumps(args))
|
|
1715
1819
|
start_time = time.time()
|
|
1716
1820
|
while True:
|
|
1717
|
-
rsp = client.
|
|
1821
|
+
rsp = client.ModifyStaff(model)
|
|
1718
1822
|
result = rsp.to_json_string()
|
|
1719
1823
|
try:
|
|
1720
1824
|
json_obj = json.loads(result)
|
|
@@ -1837,6 +1941,58 @@ def doDescribeStaffStatusHistory(args, parsed_globals):
|
|
|
1837
1941
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1838
1942
|
|
|
1839
1943
|
|
|
1944
|
+
def doUnbindNumberCallOutSkillGroup(args, parsed_globals):
|
|
1945
|
+
g_param = parse_global_arg(parsed_globals)
|
|
1946
|
+
|
|
1947
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
1948
|
+
cred = credential.CVMRoleCredential()
|
|
1949
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
1950
|
+
cred = credential.STSAssumeRoleCredential(
|
|
1951
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
1952
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
1953
|
+
)
|
|
1954
|
+
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):
|
|
1955
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
1956
|
+
else:
|
|
1957
|
+
cred = credential.Credential(
|
|
1958
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
1959
|
+
)
|
|
1960
|
+
http_profile = HttpProfile(
|
|
1961
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
1962
|
+
reqMethod="POST",
|
|
1963
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
1964
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
1965
|
+
)
|
|
1966
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
1967
|
+
if g_param[OptionsDefine.Language]:
|
|
1968
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
1969
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
1970
|
+
client = mod.CccClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1971
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
1972
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1973
|
+
model = models.UnbindNumberCallOutSkillGroupRequest()
|
|
1974
|
+
model.from_json_string(json.dumps(args))
|
|
1975
|
+
start_time = time.time()
|
|
1976
|
+
while True:
|
|
1977
|
+
rsp = client.UnbindNumberCallOutSkillGroup(model)
|
|
1978
|
+
result = rsp.to_json_string()
|
|
1979
|
+
try:
|
|
1980
|
+
json_obj = json.loads(result)
|
|
1981
|
+
except TypeError as e:
|
|
1982
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
1983
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
1984
|
+
break
|
|
1985
|
+
cur_time = time.time()
|
|
1986
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
1987
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
1988
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
1989
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
1990
|
+
else:
|
|
1991
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
1992
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
1993
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1994
|
+
|
|
1995
|
+
|
|
1840
1996
|
def doModifyOwnNumberApply(args, parsed_globals):
|
|
1841
1997
|
g_param = parse_global_arg(parsed_globals)
|
|
1842
1998
|
|
|
@@ -2201,7 +2357,7 @@ def doCreateAgentCruiseDialingCampaign(args, parsed_globals):
|
|
|
2201
2357
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2202
2358
|
|
|
2203
2359
|
|
|
2204
|
-
def
|
|
2360
|
+
def doDescribeAIAgentInfoList(args, parsed_globals):
|
|
2205
2361
|
g_param = parse_global_arg(parsed_globals)
|
|
2206
2362
|
|
|
2207
2363
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -2230,11 +2386,11 @@ def doDescribeActiveCarrierPrivilegeNumber(args, parsed_globals):
|
|
|
2230
2386
|
client = mod.CccClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2231
2387
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
2232
2388
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2233
|
-
model = models.
|
|
2389
|
+
model = models.DescribeAIAgentInfoListRequest()
|
|
2234
2390
|
model.from_json_string(json.dumps(args))
|
|
2235
2391
|
start_time = time.time()
|
|
2236
2392
|
while True:
|
|
2237
|
-
rsp = client.
|
|
2393
|
+
rsp = client.DescribeAIAgentInfoList(model)
|
|
2238
2394
|
result = rsp.to_json_string()
|
|
2239
2395
|
try:
|
|
2240
2396
|
json_obj = json.loads(result)
|
|
@@ -3657,7 +3813,7 @@ def doDescribeNumbers(args, parsed_globals):
|
|
|
3657
3813
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
3658
3814
|
|
|
3659
3815
|
|
|
3660
|
-
def
|
|
3816
|
+
def doDescribeTelCdr(args, parsed_globals):
|
|
3661
3817
|
g_param = parse_global_arg(parsed_globals)
|
|
3662
3818
|
|
|
3663
3819
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -3686,11 +3842,11 @@ def doAbortPredictiveDialingCampaign(args, parsed_globals):
|
|
|
3686
3842
|
client = mod.CccClient(cred, g_param[OptionsDefine.Region], profile)
|
|
3687
3843
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
3688
3844
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
3689
|
-
model = models.
|
|
3845
|
+
model = models.DescribeTelCdrRequest()
|
|
3690
3846
|
model.from_json_string(json.dumps(args))
|
|
3691
3847
|
start_time = time.time()
|
|
3692
3848
|
while True:
|
|
3693
|
-
rsp = client.
|
|
3849
|
+
rsp = client.DescribeTelCdr(model)
|
|
3694
3850
|
result = rsp.to_json_string()
|
|
3695
3851
|
try:
|
|
3696
3852
|
json_obj = json.loads(result)
|
|
@@ -3980,9 +4136,8 @@ MODELS_MAP = {
|
|
|
3980
4136
|
}
|
|
3981
4137
|
|
|
3982
4138
|
ACTION_MAP = {
|
|
3983
|
-
"
|
|
3984
|
-
"
|
|
3985
|
-
"ModifyStaff": doModifyStaff,
|
|
4139
|
+
"DescribeAIAnalysisResult": doDescribeAIAnalysisResult,
|
|
4140
|
+
"DescribeExtensions": doDescribeExtensions,
|
|
3986
4141
|
"DescribeAILatency": doDescribeAILatency,
|
|
3987
4142
|
"CreateExtension": doCreateExtension,
|
|
3988
4143
|
"AbortAgentCruiseDialingCampaign": doAbortAgentCruiseDialingCampaign,
|
|
@@ -3999,9 +4154,12 @@ ACTION_MAP = {
|
|
|
3999
4154
|
"DescribeIMCdrs": doDescribeIMCdrs,
|
|
4000
4155
|
"CreatePredictiveDialingCampaign": doCreatePredictiveDialingCampaign,
|
|
4001
4156
|
"DeleteStaff": doDeleteStaff,
|
|
4002
|
-
"
|
|
4157
|
+
"AbortPredictiveDialingCampaign": doAbortPredictiveDialingCampaign,
|
|
4158
|
+
"DescribeActiveCarrierPrivilegeNumber": doDescribeActiveCarrierPrivilegeNumber,
|
|
4159
|
+
"ModifyCompanyApply": doModifyCompanyApply,
|
|
4003
4160
|
"DescribeAutoCalloutTasks": doDescribeAutoCalloutTasks,
|
|
4004
4161
|
"ResetExtensionPassword": doResetExtensionPassword,
|
|
4162
|
+
"SetStaffStatus": doSetStaffStatus,
|
|
4005
4163
|
"CreateStaff": doCreateStaff,
|
|
4006
4164
|
"DescribeAICallExtractResult": doDescribeAICallExtractResult,
|
|
4007
4165
|
"DescribeExtension": doDescribeExtension,
|
|
@@ -4012,9 +4170,10 @@ ACTION_MAP = {
|
|
|
4012
4170
|
"DescribeAutoCalloutTask": doDescribeAutoCalloutTask,
|
|
4013
4171
|
"DescribePredictiveDialingSessions": doDescribePredictiveDialingSessions,
|
|
4014
4172
|
"CreateCompanyApply": doCreateCompanyApply,
|
|
4015
|
-
"
|
|
4173
|
+
"ModifyStaff": doModifyStaff,
|
|
4016
4174
|
"TransferToManual": doTransferToManual,
|
|
4017
4175
|
"DescribeStaffStatusHistory": doDescribeStaffStatusHistory,
|
|
4176
|
+
"UnbindNumberCallOutSkillGroup": doUnbindNumberCallOutSkillGroup,
|
|
4018
4177
|
"ModifyOwnNumberApply": doModifyOwnNumberApply,
|
|
4019
4178
|
"DescribeSessionDetail": doDescribeSessionDetail,
|
|
4020
4179
|
"DescribeIvrAudioList": doDescribeIvrAudioList,
|
|
@@ -4022,7 +4181,7 @@ ACTION_MAP = {
|
|
|
4022
4181
|
"UploadIvrAudio": doUploadIvrAudio,
|
|
4023
4182
|
"CreateCarrierPrivilegeNumberApplicant": doCreateCarrierPrivilegeNumberApplicant,
|
|
4024
4183
|
"CreateAgentCruiseDialingCampaign": doCreateAgentCruiseDialingCampaign,
|
|
4025
|
-
"
|
|
4184
|
+
"DescribeAIAgentInfoList": doDescribeAIAgentInfoList,
|
|
4026
4185
|
"CreateOwnNumberApply": doCreateOwnNumberApply,
|
|
4027
4186
|
"DescribeCCCBuyInfoList": doDescribeCCCBuyInfoList,
|
|
4028
4187
|
"ResumePredictiveDialingCampaign": doResumePredictiveDialingCampaign,
|
|
@@ -4050,7 +4209,7 @@ ACTION_MAP = {
|
|
|
4050
4209
|
"ControlAIConversation": doControlAIConversation,
|
|
4051
4210
|
"CreateSDKLoginToken": doCreateSDKLoginToken,
|
|
4052
4211
|
"DescribeNumbers": doDescribeNumbers,
|
|
4053
|
-
"
|
|
4212
|
+
"DescribeTelCdr": doDescribeTelCdr,
|
|
4054
4213
|
"DescribeCompanyList": doDescribeCompanyList,
|
|
4055
4214
|
"CreateAIAgentCall": doCreateAIAgentCall,
|
|
4056
4215
|
"DeletePredictiveDialingCampaign": doDeletePredictiveDialingCampaign,
|