tccli 3.0.1295.2__py2.py3-none-any.whl → 3.0.1296.2__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/antiddos/v20200309/api.json +123 -116
- tccli/services/bi/v20220105/api.json +17 -17
- tccli/services/bi/v20220105/examples.json +16 -16
- tccli/services/cam/v20190116/api.json +2 -2
- tccli/services/cam/v20190116/examples.json +1 -1
- tccli/services/ccc/v20200210/api.json +35 -17
- tccli/services/cdn/v20180606/api.json +61 -55
- tccli/services/cdn/v20180606/examples.json +11 -11
- tccli/services/cfw/v20190904/api.json +1 -1
- tccli/services/chc/v20230418/api.json +1 -1
- tccli/services/ckafka/v20190819/api.json +3 -3
- tccli/services/cme/v20191029/api.json +522 -501
- tccli/services/cme/v20191029/examples.json +138 -138
- tccli/services/cvm/v20170312/api.json +1 -1
- tccli/services/cwp/v20180228/api.json +40 -0
- tccli/services/cynosdb/v20190107/api.json +15 -15
- tccli/services/domain/v20180808/api.json +5 -5
- tccli/services/dts/v20180330/api.json +2 -2
- tccli/services/dts/v20211206/api.json +14 -14
- tccli/services/ecdn/v20191012/api.json +4 -4
- tccli/services/emr/v20190103/api.json +2 -2
- tccli/services/ess/v20201111/api.json +13 -4
- tccli/services/essbasic/v20210526/api.json +1 -1
- tccli/services/gs/v20191118/api.json +9 -0
- tccli/services/iotcloud/v20210408/api.json +35 -31
- tccli/services/iotcloud/v20210408/examples.json +7 -7
- tccli/services/iotexplorer/v20190423/api.json +20 -0
- tccli/services/iotvideo/v20201215/api.json +4 -4
- tccli/services/iotvideo/v20201215/examples.json +2 -2
- tccli/services/iotvideo/v20211125/api.json +27 -7
- tccli/services/iotvideo/v20211125/examples.json +5 -5
- tccli/services/live/v20180801/api.json +31 -2
- tccli/services/live/v20180801/examples.json +1 -1
- tccli/services/lkeap/v20240522/api.json +10 -0
- tccli/services/mmps/v20200710/api.json +8 -8
- tccli/services/mqtt/v20240516/api.json +82 -43
- tccli/services/mqtt/v20240516/examples.json +7 -7
- tccli/services/ocr/ocr_client.py +16 -175
- tccli/services/ocr/v20181119/api.json +15 -245
- tccli/services/ocr/v20181119/examples.json +1 -25
- tccli/services/partners/partners_client.py +118 -65
- tccli/services/partners/v20180321/api.json +93 -0
- tccli/services/partners/v20180321/examples.json +8 -0
- tccli/services/sqlserver/v20180328/api.json +37 -0
- tccli/services/tag/v20180813/api.json +75 -73
- tccli/services/tag/v20180813/examples.json +10 -10
- tccli/services/tdid/v20210519/api.json +12 -12
- tccli/services/tdmq/tdmq_client.py +0 -53
- tccli/services/tdmq/v20200217/api.json +0 -52
- tccli/services/tdmq/v20200217/examples.json +0 -8
- tccli/services/thpc/v20230321/api.json +10 -0
- tccli/services/tke/v20180525/api.json +5 -5
- tccli/services/tke/v20180525/examples.json +1 -1
- tccli/services/trtc/v20190722/api.json +19 -0
- tccli/services/vod/v20180717/api.json +732 -670
- tccli/services/vod/v20180717/examples.json +31 -31
- tccli/services/vpc/v20170312/api.json +53 -53
- tccli/services/vpc/v20170312/examples.json +5 -5
- {tccli-3.0.1295.2.dist-info → tccli-3.0.1296.2.dist-info}/METADATA +2 -2
- {tccli-3.0.1295.2.dist-info → tccli-3.0.1296.2.dist-info}/RECORD +64 -64
- {tccli-3.0.1295.2.dist-info → tccli-3.0.1296.2.dist-info}/WHEEL +0 -0
- {tccli-3.0.1295.2.dist-info → tccli-3.0.1296.2.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1295.2.dist-info → tccli-3.0.1296.2.dist-info}/license_files/LICENSE +0 -0
@@ -69,7 +69,7 @@ def doAssignClientsToSales(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 doDescribeAgentBills(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 doDescribeAgentAuditedClients(args, parsed_globals):
|
|
98
98
|
client = mod.PartnersClient(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.DescribeAgentBillsRequest()
|
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.DescribeAgentBills(model)
|
106
106
|
result = rsp.to_json_string()
|
107
107
|
try:
|
108
108
|
json_obj = json.loads(result)
|
@@ -121,7 +121,7 @@ def doDescribeAgentAuditedClients(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 doAgentTransferMoney(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 doCreatePayRelationForClient(args, parsed_globals):
|
|
150
150
|
client = mod.PartnersClient(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.AgentTransferMoneyRequest()
|
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.AgentTransferMoney(model)
|
158
158
|
result = rsp.to_json_string()
|
159
159
|
try:
|
160
160
|
json_obj = json.loads(result)
|
@@ -173,7 +173,7 @@ def doCreatePayRelationForClient(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 doDescribeRebateInfos(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 doDescribeClientBalanceNew(args, parsed_globals):
|
|
202
202
|
client = mod.PartnersClient(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.DescribeRebateInfosRequest()
|
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.DescribeRebateInfos(model)
|
210
210
|
result = rsp.to_json_string()
|
211
211
|
try:
|
212
212
|
json_obj = json.loads(result)
|
@@ -225,7 +225,7 @@ def doDescribeClientBalanceNew(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 doRemovePayRelationForClient(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 doAgentPayDeals(args, parsed_globals):
|
|
254
254
|
client = mod.PartnersClient(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.RemovePayRelationForClientRequest()
|
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.RemovePayRelationForClient(model)
|
262
262
|
result = rsp.to_json_string()
|
263
263
|
try:
|
264
264
|
json_obj = json.loads(result)
|
@@ -277,7 +277,7 @@ def doAgentPayDeals(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 doModifyClientRemark(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 doDescribeAgentBills(args, parsed_globals):
|
|
306
306
|
client = mod.PartnersClient(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.ModifyClientRemarkRequest()
|
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.ModifyClientRemark(model)
|
314
314
|
result = rsp.to_json_string()
|
315
315
|
try:
|
316
316
|
json_obj = json.loads(result)
|
@@ -329,7 +329,7 @@ def doDescribeAgentBills(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 doDescribeAgentClientGrade(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 doDescribeRebateInfosNew(args, parsed_globals):
|
|
358
358
|
client = mod.PartnersClient(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.DescribeAgentClientGradeRequest()
|
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.DescribeAgentClientGrade(model)
|
366
366
|
result = rsp.to_json_string()
|
367
367
|
try:
|
368
368
|
json_obj = json.loads(result)
|
@@ -381,7 +381,7 @@ def doDescribeRebateInfosNew(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 doDescribeUnbindClientList(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 doAgentTransferMoney(args, parsed_globals):
|
|
410
410
|
client = mod.PartnersClient(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.DescribeUnbindClientListRequest()
|
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.DescribeUnbindClientList(model)
|
418
418
|
result = rsp.to_json_string()
|
419
419
|
try:
|
420
420
|
json_obj = json.loads(result)
|
@@ -433,7 +433,7 @@ def doAgentTransferMoney(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 doAgentPayDeals(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 doDescribeRebateInfos(args, parsed_globals):
|
|
462
462
|
client = mod.PartnersClient(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.AgentPayDealsRequest()
|
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.AgentPayDeals(model)
|
470
470
|
result = rsp.to_json_string()
|
471
471
|
try:
|
472
472
|
json_obj = json.loads(result)
|
@@ -537,7 +537,7 @@ def doDescribeSalesmans(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 doAuditApplyClient(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 doRemovePayRelationForClient(args, parsed_globals):
|
|
566
566
|
client = mod.PartnersClient(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.AuditApplyClientRequest()
|
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.AuditApplyClient(model)
|
574
574
|
result = rsp.to_json_string()
|
575
575
|
try:
|
576
576
|
json_obj = json.loads(result)
|
@@ -589,7 +589,7 @@ def doRemovePayRelationForClient(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 doDescribeClientSwitchTraTaskInfo(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 doModifyClientRemark(args, parsed_globals):
|
|
618
618
|
client = mod.PartnersClient(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.DescribeClientSwitchTraTaskInfoRequest()
|
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.DescribeClientSwitchTraTaskInfo(model)
|
626
626
|
result = rsp.to_json_string()
|
627
627
|
try:
|
628
628
|
json_obj = json.loads(result)
|
@@ -641,7 +641,7 @@ def doModifyClientRemark(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 doDescribeAgentPayDealsV2(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 doDescribeAgentRelateBigDealIds(args, parsed_globals):
|
|
670
670
|
client = mod.PartnersClient(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.DescribeAgentPayDealsV2Request()
|
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.DescribeAgentPayDealsV2(model)
|
678
678
|
result = rsp.to_json_string()
|
679
679
|
try:
|
680
680
|
json_obj = json.loads(result)
|
@@ -693,7 +693,7 @@ def doDescribeAgentRelateBigDealIds(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 doDescribeAgentAuditedClients(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 doDescribeAgentClients(args, parsed_globals):
|
|
722
722
|
client = mod.PartnersClient(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.DescribeAgentAuditedClientsRequest()
|
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.DescribeAgentAuditedClients(model)
|
730
730
|
result = rsp.to_json_string()
|
731
731
|
try:
|
732
732
|
json_obj = json.loads(result)
|
@@ -797,7 +797,7 @@ def doDescribeClientJoinIncreaseList(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 doDescribeAgentSelfPayDealsV2(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 doAuditApplyClient(args, parsed_globals):
|
|
826
826
|
client = mod.PartnersClient(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.DescribeAgentSelfPayDealsV2Request()
|
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.DescribeAgentSelfPayDealsV2(model)
|
834
834
|
result = rsp.to_json_string()
|
835
835
|
try:
|
836
836
|
json_obj = json.loads(result)
|
@@ -849,7 +849,7 @@ def doAuditApplyClient(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 doDescribeAgentRelateBigDealIds(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 doDescribeAgentPayDealsV2(args, parsed_globals):
|
|
878
878
|
client = mod.PartnersClient(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.DescribeAgentRelateBigDealIdsRequest()
|
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.DescribeAgentRelateBigDealIds(model)
|
886
886
|
result = rsp.to_json_string()
|
887
887
|
try:
|
888
888
|
json_obj = json.loads(result)
|
@@ -901,7 +901,7 @@ def doDescribeAgentPayDealsV2(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 doDescribeAgentDealsByCache(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 doDescribeAgentClientGrade(args, parsed_globals):
|
|
930
930
|
client = mod.PartnersClient(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.DescribeAgentDealsByCacheRequest()
|
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.DescribeAgentDealsByCache(model)
|
938
938
|
result = rsp.to_json_string()
|
939
939
|
try:
|
940
940
|
json_obj = json.loads(result)
|
@@ -953,7 +953,7 @@ def doDescribeAgentClientGrade(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 doDescribeClientBalanceNew(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 doDescribeAgentSelfPayDealsV2(args, parsed_globals):
|
|
982
982
|
client = mod.PartnersClient(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.DescribeClientBalanceNewRequest()
|
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.DescribeClientBalanceNew(model)
|
990
990
|
result = rsp.to_json_string()
|
991
991
|
try:
|
992
992
|
json_obj = json.loads(result)
|
@@ -1005,7 +1005,7 @@ def doDescribeAgentSelfPayDealsV2(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 doDescribeRebateInfosNew(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,11 @@ def doDescribeUnbindClientList(args, parsed_globals):
|
|
1034
1034
|
client = mod.PartnersClient(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.DescribeRebateInfosNewRequest()
|
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.DescribeRebateInfosNew(model)
|
1042
1042
|
result = rsp.to_json_string()
|
1043
1043
|
try:
|
1044
1044
|
json_obj = json.loads(result)
|
@@ -1057,7 +1057,7 @@ def doDescribeUnbindClientList(args, parsed_globals):
|
|
1057
1057
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1058
1058
|
|
1059
1059
|
|
1060
|
-
def
|
1060
|
+
def doDescribeAgentClients(args, parsed_globals):
|
1061
1061
|
g_param = parse_global_arg(parsed_globals)
|
1062
1062
|
|
1063
1063
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -1086,11 +1086,63 @@ def doDescribeAgentDealsByCache(args, parsed_globals):
|
|
1086
1086
|
client = mod.PartnersClient(cred, g_param[OptionsDefine.Region], profile)
|
1087
1087
|
client._sdkVersion += ("_CLI_" + __version__)
|
1088
1088
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1089
|
-
model = models.
|
1089
|
+
model = models.DescribeAgentClientsRequest()
|
1090
1090
|
model.from_json_string(json.dumps(args))
|
1091
1091
|
start_time = time.time()
|
1092
1092
|
while True:
|
1093
|
-
rsp = client.
|
1093
|
+
rsp = client.DescribeAgentClients(model)
|
1094
|
+
result = rsp.to_json_string()
|
1095
|
+
try:
|
1096
|
+
json_obj = json.loads(result)
|
1097
|
+
except TypeError as e:
|
1098
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
1099
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
1100
|
+
break
|
1101
|
+
cur_time = time.time()
|
1102
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
1103
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
1104
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
1105
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
1106
|
+
else:
|
1107
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
1108
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
1109
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
1110
|
+
|
1111
|
+
|
1112
|
+
def doCreatePayRelationForClient(args, parsed_globals):
|
1113
|
+
g_param = parse_global_arg(parsed_globals)
|
1114
|
+
|
1115
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
1116
|
+
cred = credential.CVMRoleCredential()
|
1117
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
1118
|
+
cred = credential.STSAssumeRoleCredential(
|
1119
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
1120
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
1121
|
+
)
|
1122
|
+
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):
|
1123
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
1124
|
+
else:
|
1125
|
+
cred = credential.Credential(
|
1126
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
1127
|
+
)
|
1128
|
+
http_profile = HttpProfile(
|
1129
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
1130
|
+
reqMethod="POST",
|
1131
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
1132
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
1133
|
+
)
|
1134
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
1135
|
+
if g_param[OptionsDefine.Language]:
|
1136
|
+
profile.language = g_param[OptionsDefine.Language]
|
1137
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
1138
|
+
client = mod.PartnersClient(cred, g_param[OptionsDefine.Region], profile)
|
1139
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
1140
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
1141
|
+
model = models.CreatePayRelationForClientRequest()
|
1142
|
+
model.from_json_string(json.dumps(args))
|
1143
|
+
start_time = time.time()
|
1144
|
+
while True:
|
1145
|
+
rsp = client.CreatePayRelationForClient(model)
|
1094
1146
|
result = rsp.to_json_string()
|
1095
1147
|
try:
|
1096
1148
|
json_obj = json.loads(result)
|
@@ -1121,26 +1173,27 @@ MODELS_MAP = {
|
|
1121
1173
|
|
1122
1174
|
ACTION_MAP = {
|
1123
1175
|
"AssignClientsToSales": doAssignClientsToSales,
|
1124
|
-
"DescribeAgentAuditedClients": doDescribeAgentAuditedClients,
|
1125
|
-
"CreatePayRelationForClient": doCreatePayRelationForClient,
|
1126
|
-
"DescribeClientBalanceNew": doDescribeClientBalanceNew,
|
1127
|
-
"AgentPayDeals": doAgentPayDeals,
|
1128
1176
|
"DescribeAgentBills": doDescribeAgentBills,
|
1129
|
-
"DescribeRebateInfosNew": doDescribeRebateInfosNew,
|
1130
1177
|
"AgentTransferMoney": doAgentTransferMoney,
|
1131
1178
|
"DescribeRebateInfos": doDescribeRebateInfos,
|
1132
|
-
"DescribeSalesmans": doDescribeSalesmans,
|
1133
1179
|
"RemovePayRelationForClient": doRemovePayRelationForClient,
|
1134
1180
|
"ModifyClientRemark": doModifyClientRemark,
|
1135
|
-
"
|
1136
|
-
"
|
1137
|
-
"
|
1181
|
+
"DescribeAgentClientGrade": doDescribeAgentClientGrade,
|
1182
|
+
"DescribeUnbindClientList": doDescribeUnbindClientList,
|
1183
|
+
"AgentPayDeals": doAgentPayDeals,
|
1184
|
+
"DescribeSalesmans": doDescribeSalesmans,
|
1138
1185
|
"AuditApplyClient": doAuditApplyClient,
|
1186
|
+
"DescribeClientSwitchTraTaskInfo": doDescribeClientSwitchTraTaskInfo,
|
1139
1187
|
"DescribeAgentPayDealsV2": doDescribeAgentPayDealsV2,
|
1140
|
-
"
|
1188
|
+
"DescribeAgentAuditedClients": doDescribeAgentAuditedClients,
|
1189
|
+
"DescribeClientJoinIncreaseList": doDescribeClientJoinIncreaseList,
|
1141
1190
|
"DescribeAgentSelfPayDealsV2": doDescribeAgentSelfPayDealsV2,
|
1142
|
-
"
|
1191
|
+
"DescribeAgentRelateBigDealIds": doDescribeAgentRelateBigDealIds,
|
1143
1192
|
"DescribeAgentDealsByCache": doDescribeAgentDealsByCache,
|
1193
|
+
"DescribeClientBalanceNew": doDescribeClientBalanceNew,
|
1194
|
+
"DescribeRebateInfosNew": doDescribeRebateInfosNew,
|
1195
|
+
"DescribeAgentClients": doDescribeAgentClients,
|
1196
|
+
"CreatePayRelationForClient": doCreatePayRelationForClient,
|
1144
1197
|
|
1145
1198
|
}
|
1146
1199
|
|
@@ -105,6 +105,13 @@
|
|
105
105
|
"output": "DescribeClientJoinIncreaseListResponse",
|
106
106
|
"status": "online"
|
107
107
|
},
|
108
|
+
"DescribeClientSwitchTraTaskInfo": {
|
109
|
+
"document": "查询客户的交易类型切换任务的信息,查询成功则获取当前用户的切换链接,查询失败则返回失败的原因",
|
110
|
+
"input": "DescribeClientSwitchTraTaskInfoRequest",
|
111
|
+
"name": "查询客户交易类型切换任务信息",
|
112
|
+
"output": "DescribeClientSwitchTraTaskInfoResponse",
|
113
|
+
"status": "online"
|
114
|
+
},
|
108
115
|
"DescribeRebateInfos": {
|
109
116
|
"document": "【该接口已下线,请切换使用升级版本DescribeRebateInfosNew】代理商可查询自己名下全部返佣信息",
|
110
117
|
"input": "DescribeRebateInfosRequest",
|
@@ -2224,6 +2231,92 @@
|
|
2224
2231
|
],
|
2225
2232
|
"type": "object"
|
2226
2233
|
},
|
2234
|
+
"DescribeClientSwitchTraTaskInfoRequest": {
|
2235
|
+
"document": "DescribeClientSwitchTraTaskInfo请求参数结构体",
|
2236
|
+
"members": [
|
2237
|
+
{
|
2238
|
+
"disabled": false,
|
2239
|
+
"document": "代客UIN",
|
2240
|
+
"example": "10000001",
|
2241
|
+
"member": "string",
|
2242
|
+
"name": "ClientUin",
|
2243
|
+
"required": true,
|
2244
|
+
"type": "string"
|
2245
|
+
},
|
2246
|
+
{
|
2247
|
+
"disabled": false,
|
2248
|
+
"document": "1:代理,2:代采",
|
2249
|
+
"example": "1",
|
2250
|
+
"member": "int64",
|
2251
|
+
"name": "SwitchType",
|
2252
|
+
"required": true,
|
2253
|
+
"type": "int"
|
2254
|
+
}
|
2255
|
+
],
|
2256
|
+
"type": "object"
|
2257
|
+
},
|
2258
|
+
"DescribeClientSwitchTraTaskInfoResponse": {
|
2259
|
+
"document": "DescribeClientSwitchTraTaskInfo返回参数结构体",
|
2260
|
+
"members": [
|
2261
|
+
{
|
2262
|
+
"disabled": false,
|
2263
|
+
"document": "客户UIN",
|
2264
|
+
"example": "100000001",
|
2265
|
+
"member": "string",
|
2266
|
+
"name": "ClientUin",
|
2267
|
+
"output_required": true,
|
2268
|
+
"type": "string",
|
2269
|
+
"value_allowed_null": false
|
2270
|
+
},
|
2271
|
+
{
|
2272
|
+
"disabled": false,
|
2273
|
+
"document": "切换类型:代理,代采",
|
2274
|
+
"example": "代理",
|
2275
|
+
"member": "string",
|
2276
|
+
"name": "SwitchType",
|
2277
|
+
"output_required": true,
|
2278
|
+
"type": "string",
|
2279
|
+
"value_allowed_null": false
|
2280
|
+
},
|
2281
|
+
{
|
2282
|
+
"disabled": false,
|
2283
|
+
"document": "ok,符合,fail,不符合",
|
2284
|
+
"example": "ok",
|
2285
|
+
"member": "string",
|
2286
|
+
"name": "Result",
|
2287
|
+
"output_required": false,
|
2288
|
+
"type": "string",
|
2289
|
+
"value_allowed_null": false
|
2290
|
+
},
|
2291
|
+
{
|
2292
|
+
"disabled": false,
|
2293
|
+
"document": "切换链接",
|
2294
|
+
"example": "https://xxxx/translate?taskId=xxxx",
|
2295
|
+
"member": "string",
|
2296
|
+
"name": "SwitchUrl",
|
2297
|
+
"output_required": false,
|
2298
|
+
"type": "string",
|
2299
|
+
"value_allowed_null": false
|
2300
|
+
},
|
2301
|
+
{
|
2302
|
+
"disabled": false,
|
2303
|
+
"document": "不符合的原因",
|
2304
|
+
"example": "xxxx处于欠票状态",
|
2305
|
+
"member": "string",
|
2306
|
+
"name": "ResultMsg",
|
2307
|
+
"output_required": false,
|
2308
|
+
"type": "string",
|
2309
|
+
"value_allowed_null": false
|
2310
|
+
},
|
2311
|
+
{
|
2312
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
2313
|
+
"member": "string",
|
2314
|
+
"name": "RequestId",
|
2315
|
+
"type": "string"
|
2316
|
+
}
|
2317
|
+
],
|
2318
|
+
"type": "object"
|
2319
|
+
},
|
2227
2320
|
"DescribeRebateInfosNewRequest": {
|
2228
2321
|
"document": "DescribeRebateInfosNew请求参数结构体",
|
2229
2322
|
"members": [
|
@@ -126,6 +126,14 @@
|
|
126
126
|
"title": "查询客户参与增量激励考核信息"
|
127
127
|
}
|
128
128
|
],
|
129
|
+
"DescribeClientSwitchTraTaskInfo": [
|
130
|
+
{
|
131
|
+
"document": "",
|
132
|
+
"input": "POST / HTTP/1.1\nHost: partners.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeClientSwitchTraTaskInfo\n<公共请求参数>\n\n{\n \"ClientUin\": \"100000000001\",\n \"SwitchType\": 2\n}",
|
133
|
+
"output": "{\n \"Response\": {\n \"ClientUin\": \"100000000001\",\n \"RequestId\": \"cdfe0563-f4c5-4a2c-9420-0f92dc360e66\",\n \"Result\": \"ok\",\n \"ResultMsg\": \"\",\n \"SwitchType\": \"代采\",\n \"SwitchUrl\": \"https://partner.cloud.tencent.com/translate?taskId=xxxxxxxxxxxxxxxxxxx\"\n }\n}",
|
134
|
+
"title": "查询客户的交易类型切换任务信息"
|
135
|
+
}
|
136
|
+
],
|
129
137
|
"DescribeRebateInfos": [
|
130
138
|
{
|
131
139
|
"document": "查询某代理商在2018年2月份的返佣信息",
|