tccli 3.0.1279.1__py2.py3-none-any.whl → 3.0.1281.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.
Files changed (86) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/acp/v20220105/api.json +68 -65
  3. tccli/services/aiart/v20221229/api.json +1 -1
  4. tccli/services/antiddos/v20200309/api.json +5 -1
  5. tccli/services/apm/v20210622/api.json +32 -32
  6. tccli/services/apm/v20210622/examples.json +1 -1
  7. tccli/services/autoscaling/v20180419/api.json +1 -1
  8. tccli/services/billing/v20180709/api.json +550 -529
  9. tccli/services/billing/v20180709/examples.json +4 -4
  10. tccli/services/cat/v20180409/api.json +1 -1
  11. tccli/services/cdwdoris/v20211228/api.json +15 -1
  12. tccli/services/cfg/v20210820/api.json +36 -23
  13. tccli/services/cfg/v20210820/examples.json +11 -11
  14. tccli/services/cfs/v20190719/examples.json +3 -3
  15. tccli/services/ciam/v20220331/api.json +111 -111
  16. tccli/services/ciam/v20220331/examples.json +8 -8
  17. tccli/services/cls/v20201016/api.json +1 -1
  18. tccli/services/controlcenter/controlcenter_client.py +212 -0
  19. tccli/services/controlcenter/v20230110/api.json +521 -3
  20. tccli/services/controlcenter/v20230110/examples.json +32 -0
  21. tccli/services/csip/v20221121/api.json +66 -6
  22. tccli/services/cvm/cvm_client.py +212 -0
  23. tccli/services/cvm/v20170312/api.json +1076 -272
  24. tccli/services/cvm/v20170312/examples.json +34 -2
  25. tccli/services/cynosdb/v20190107/api.json +13 -3
  26. tccli/services/dbbrain/v20191016/api.json +12 -8
  27. tccli/services/dbbrain/v20210527/api.json +20 -20
  28. tccli/services/dlc/v20210125/api.json +19 -0
  29. tccli/services/dlc/v20210125/examples.json +1 -1
  30. tccli/services/domain/v20180808/api.json +3 -3
  31. tccli/services/emr/v20190103/api.json +11 -0
  32. tccli/services/es/v20180416/api.json +13 -0
  33. tccli/services/goosefs/v20220519/api.json +16 -15
  34. tccli/services/goosefs/v20220519/examples.json +2 -2
  35. tccli/services/gwlb/v20240906/api.json +22 -3
  36. tccli/services/gwlb/v20240906/examples.json +1 -1
  37. tccli/services/ims/v20201229/api.json +1 -1
  38. tccli/services/iotcloud/v20210408/api.json +243 -245
  39. tccli/services/iotcloud/v20210408/examples.json +64 -64
  40. tccli/services/keewidb/v20220308/api.json +94 -94
  41. tccli/services/lcic/v20220817/api.json +110 -63
  42. tccli/services/lcic/v20220817/examples.json +6 -6
  43. tccli/services/live/v20180801/api.json +302 -288
  44. tccli/services/lke/lke_client.py +84 -84
  45. tccli/services/lke/v20231130/api.json +220 -164
  46. tccli/services/lke/v20231130/examples.json +16 -16
  47. tccli/services/lowcode/v20210108/api.json +120 -11
  48. tccli/services/lowcode/v20210108/examples.json +9 -9
  49. tccli/services/mariadb/v20170312/api.json +7 -7
  50. tccli/services/mariadb/v20170312/examples.json +1 -1
  51. tccli/services/mongodb/v20190725/api.json +7 -6
  52. tccli/services/mongodb/v20190725/examples.json +2 -2
  53. tccli/services/monitor/v20180724/examples.json +2 -2
  54. tccli/services/mqtt/mqtt_client.py +110 -4
  55. tccli/services/mqtt/v20240516/api.json +132 -0
  56. tccli/services/mqtt/v20240516/examples.json +22 -0
  57. tccli/services/ocr/v20181119/api.json +7 -7
  58. tccli/services/partners/partners_client.py +61 -8
  59. tccli/services/partners/v20180321/api.json +110 -0
  60. tccli/services/partners/v20180321/examples.json +8 -0
  61. tccli/services/pts/v20210728/api.json +44 -6
  62. tccli/services/redis/v20180412/api.json +66 -66
  63. tccli/services/rum/v20210622/api.json +90 -0
  64. tccli/services/sms/v20190711/examples.json +1 -1
  65. tccli/services/sms/v20210111/examples.json +1 -1
  66. tccli/services/tag/v20180813/api.json +3 -3
  67. tccli/services/tag/v20180813/examples.json +1 -1
  68. tccli/services/tat/v20201028/api.json +141 -128
  69. tccli/services/tat/v20201028/examples.json +12 -12
  70. tccli/services/tdmq/tdmq_client.py +53 -0
  71. tccli/services/tdmq/v20200217/api.json +93 -0
  72. tccli/services/tdmq/v20200217/examples.json +8 -0
  73. tccli/services/teo/v20220901/api.json +4 -4
  74. tccli/services/tke/v20180525/api.json +313 -313
  75. tccli/services/tke/v20220501/api.json +2 -2
  76. tccli/services/tms/v20201229/api.json +9 -0
  77. tccli/services/tsf/v20180326/api.json +884 -884
  78. tccli/services/vdb/v20230616/api.json +12 -12
  79. tccli/services/waf/v20180125/api.json +7 -7
  80. tccli/services/waf/v20180125/examples.json +1 -1
  81. tccli/services/wedata/v20210820/api.json +107 -0
  82. {tccli-3.0.1279.1.dist-info → tccli-3.0.1281.1.dist-info}/METADATA +2 -2
  83. {tccli-3.0.1279.1.dist-info → tccli-3.0.1281.1.dist-info}/RECORD +86 -86
  84. {tccli-3.0.1279.1.dist-info → tccli-3.0.1281.1.dist-info}/WHEEL +0 -0
  85. {tccli-3.0.1279.1.dist-info → tccli-3.0.1281.1.dist-info}/entry_points.txt +0 -0
  86. {tccli-3.0.1279.1.dist-info → tccli-3.0.1281.1.dist-info}/license_files/LICENSE +0 -0
@@ -849,6 +849,58 @@ def doModifyInstanceCertBinding(args, parsed_globals):
849
849
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
850
850
 
851
851
 
852
+ def doDescribeInsVPCEndpoints(args, parsed_globals):
853
+ g_param = parse_global_arg(parsed_globals)
854
+
855
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
856
+ cred = credential.CVMRoleCredential()
857
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
858
+ cred = credential.STSAssumeRoleCredential(
859
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
860
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
861
+ )
862
+ 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):
863
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
864
+ else:
865
+ cred = credential.Credential(
866
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
867
+ )
868
+ http_profile = HttpProfile(
869
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
870
+ reqMethod="POST",
871
+ endpoint=g_param[OptionsDefine.Endpoint],
872
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
873
+ )
874
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
875
+ if g_param[OptionsDefine.Language]:
876
+ profile.language = g_param[OptionsDefine.Language]
877
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
878
+ client = mod.MqttClient(cred, g_param[OptionsDefine.Region], profile)
879
+ client._sdkVersion += ("_CLI_" + __version__)
880
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
881
+ model = models.DescribeInsVPCEndpointsRequest()
882
+ model.from_json_string(json.dumps(args))
883
+ start_time = time.time()
884
+ while True:
885
+ rsp = client.DescribeInsVPCEndpoints(model)
886
+ result = rsp.to_json_string()
887
+ try:
888
+ json_obj = json.loads(result)
889
+ except TypeError as e:
890
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
891
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
892
+ break
893
+ cur_time = time.time()
894
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
895
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
896
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
897
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
898
+ else:
899
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
900
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
901
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
902
+
903
+
852
904
  def doApplyRegistrationCode(args, parsed_globals):
853
905
  g_param = parse_global_arg(parsed_globals)
854
906
 
@@ -1213,7 +1265,7 @@ def doModifyJWKSAuthenticator(args, parsed_globals):
1213
1265
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1214
1266
 
1215
1267
 
1216
- def doDeleteInsPublicEndpoint(args, parsed_globals):
1268
+ def doPublishMessage(args, parsed_globals):
1217
1269
  g_param = parse_global_arg(parsed_globals)
1218
1270
 
1219
1271
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -1242,11 +1294,11 @@ def doDeleteInsPublicEndpoint(args, parsed_globals):
1242
1294
  client = mod.MqttClient(cred, g_param[OptionsDefine.Region], profile)
1243
1295
  client._sdkVersion += ("_CLI_" + __version__)
1244
1296
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
1245
- model = models.DeleteInsPublicEndpointRequest()
1297
+ model = models.PublishMessageRequest()
1246
1298
  model.from_json_string(json.dumps(args))
1247
1299
  start_time = time.time()
1248
1300
  while True:
1249
- rsp = client.DeleteInsPublicEndpoint(model)
1301
+ rsp = client.PublishMessage(model)
1250
1302
  result = rsp.to_json_string()
1251
1303
  try:
1252
1304
  json_obj = json.loads(result)
@@ -1317,6 +1369,58 @@ def doDescribeDeviceCertificate(args, parsed_globals):
1317
1369
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1318
1370
 
1319
1371
 
1372
+ def doDeleteInsPublicEndpoint(args, parsed_globals):
1373
+ g_param = parse_global_arg(parsed_globals)
1374
+
1375
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1376
+ cred = credential.CVMRoleCredential()
1377
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1378
+ cred = credential.STSAssumeRoleCredential(
1379
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1380
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
1381
+ )
1382
+ 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):
1383
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1384
+ else:
1385
+ cred = credential.Credential(
1386
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1387
+ )
1388
+ http_profile = HttpProfile(
1389
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1390
+ reqMethod="POST",
1391
+ endpoint=g_param[OptionsDefine.Endpoint],
1392
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1393
+ )
1394
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1395
+ if g_param[OptionsDefine.Language]:
1396
+ profile.language = g_param[OptionsDefine.Language]
1397
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1398
+ client = mod.MqttClient(cred, g_param[OptionsDefine.Region], profile)
1399
+ client._sdkVersion += ("_CLI_" + __version__)
1400
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1401
+ model = models.DeleteInsPublicEndpointRequest()
1402
+ model.from_json_string(json.dumps(args))
1403
+ start_time = time.time()
1404
+ while True:
1405
+ rsp = client.DeleteInsPublicEndpoint(model)
1406
+ result = rsp.to_json_string()
1407
+ try:
1408
+ json_obj = json.loads(result)
1409
+ except TypeError as e:
1410
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1411
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1412
+ break
1413
+ cur_time = time.time()
1414
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1415
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1416
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1417
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1418
+ else:
1419
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1420
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1421
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1422
+
1423
+
1320
1424
  def doRevokedDeviceCertificate(args, parsed_globals):
1321
1425
  g_param = parse_global_arg(parsed_globals)
1322
1426
 
@@ -2384,6 +2488,7 @@ ACTION_MAP = {
2384
2488
  "DescribeAuthenticator": doDescribeAuthenticator,
2385
2489
  "RegisterDeviceCertificate": doRegisterDeviceCertificate,
2386
2490
  "ModifyInstanceCertBinding": doModifyInstanceCertBinding,
2491
+ "DescribeInsVPCEndpoints": doDescribeInsVPCEndpoints,
2387
2492
  "ApplyRegistrationCode": doApplyRegistrationCode,
2388
2493
  "DescribeProductSKUList": doDescribeProductSKUList,
2389
2494
  "DescribeCaCertificates": doDescribeCaCertificates,
@@ -2391,8 +2496,9 @@ ACTION_MAP = {
2391
2496
  "CreateTopic": doCreateTopic,
2392
2497
  "DeleteDeviceCertificate": doDeleteDeviceCertificate,
2393
2498
  "ModifyJWKSAuthenticator": doModifyJWKSAuthenticator,
2394
- "DeleteInsPublicEndpoint": doDeleteInsPublicEndpoint,
2499
+ "PublishMessage": doPublishMessage,
2395
2500
  "DescribeDeviceCertificate": doDescribeDeviceCertificate,
2501
+ "DeleteInsPublicEndpoint": doDeleteInsPublicEndpoint,
2396
2502
  "RevokedDeviceCertificate": doRevokedDeviceCertificate,
2397
2503
  "DescribeInstance": doDescribeInstance,
2398
2504
  "DeleteTopic": doDeleteTopic,
@@ -189,6 +189,13 @@
189
189
  "output": "DescribeInsPublicEndpointsResponse",
190
190
  "status": "online"
191
191
  },
192
+ "DescribeInsVPCEndpoints": {
193
+ "document": "查询MQTT实例公网接入点",
194
+ "input": "DescribeInsVPCEndpointsRequest",
195
+ "name": "查询MQTT实例VPC接入点",
196
+ "output": "DescribeInsVPCEndpointsResponse",
197
+ "status": "online"
198
+ },
192
199
  "DescribeInstance": {
193
200
  "document": "查询实例信息",
194
201
  "input": "DescribeInstanceRequest",
@@ -287,6 +294,13 @@
287
294
  "output": "ModifyUserResponse",
288
295
  "status": "online"
289
296
  },
297
+ "PublishMessage": {
298
+ "document": "发布 MQTT 消息到消息主题或客户端",
299
+ "input": "PublishMessageRequest",
300
+ "name": "发布 MQTT 消息",
301
+ "output": "PublishMessageResponse",
302
+ "status": "online"
303
+ },
290
304
  "RegisterCaCertificate": {
291
305
  "document": "注册ca证书",
292
306
  "input": "RegisterCaCertificateRequest",
@@ -2323,6 +2337,43 @@
2323
2337
  ],
2324
2338
  "type": "object"
2325
2339
  },
2340
+ "DescribeInsVPCEndpointsRequest": {
2341
+ "document": "DescribeInsVPCEndpoints请求参数结构体",
2342
+ "members": [
2343
+ {
2344
+ "disabled": false,
2345
+ "document": "实例ID",
2346
+ "example": "mqtt-xxxx",
2347
+ "member": "string",
2348
+ "name": "InstanceId",
2349
+ "required": true,
2350
+ "type": "string"
2351
+ }
2352
+ ],
2353
+ "type": "object"
2354
+ },
2355
+ "DescribeInsVPCEndpointsResponse": {
2356
+ "document": "DescribeInsVPCEndpoints返回参数结构体",
2357
+ "members": [
2358
+ {
2359
+ "disabled": false,
2360
+ "document": "接入点",
2361
+ "example": " [ \t\t\t{ \t\t\t\t\"Host\": \"mqtt-47ka4rdr-cd-qcloud.mqtt.tencenttdmq.com\", \t\t\t\t\"Port\": 1883, \t\t\t\t\"SubnetId\": null, \t\t\t\t\"Type\": \"mqtt-tcp\", \t\t\t\t\"Url\": \"mqtt-47ka4rdr-cd-qcloud.mqtt.tencenttdmq.com:1883\", \t\t\t\t\"VpcId\": null \t\t\t}, \t\t\t{ \t\t\t\t\"Host\": \"mqtt-47ka4rdr-cd-qcloud.mqtt.tencenttdmq.com\", \t\t\t\t\"Port\": 8888, \t\t\t\t\"SubnetId\": null, \t\t\t\t\"Type\": \"mqtt-ws\", \t\t\t\t\"Url\": \"mqtt-47ka4rdr-cd-qcloud.mqtt.tencenttdmq.com:8888\", \t\t\t\t\"VpcId\": null \t\t\t} \t\t]",
2362
+ "member": "MQTTEndpointItem",
2363
+ "name": "Endpoints",
2364
+ "output_required": false,
2365
+ "type": "list",
2366
+ "value_allowed_null": false
2367
+ },
2368
+ {
2369
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
2370
+ "member": "string",
2371
+ "name": "RequestId",
2372
+ "type": "string"
2373
+ }
2374
+ ],
2375
+ "type": "object"
2376
+ },
2326
2377
  "DescribeInstanceListRequest": {
2327
2378
  "document": "DescribeInstanceList请求参数结构体",
2328
2379
  "members": [
@@ -4327,6 +4378,87 @@
4327
4378
  ],
4328
4379
  "usage": "both"
4329
4380
  },
4381
+ "PublishMessageRequest": {
4382
+ "document": "PublishMessage请求参数结构体",
4383
+ "members": [
4384
+ {
4385
+ "disabled": false,
4386
+ "document": "实例ID",
4387
+ "example": "rocketmq-xxxx",
4388
+ "member": "string",
4389
+ "name": "InstanceId",
4390
+ "required": true,
4391
+ "type": "string"
4392
+ },
4393
+ {
4394
+ "disabled": false,
4395
+ "document": "消息 payload,需要按 encoding 指定的编码方式进行编码",
4396
+ "example": "Hello MQTT!",
4397
+ "member": "string",
4398
+ "name": "Payload",
4399
+ "required": true,
4400
+ "type": "string"
4401
+ },
4402
+ {
4403
+ "disabled": false,
4404
+ "document": "消息目的主题,该参数与 TargetClientId 二选一",
4405
+ "example": "test/a/b",
4406
+ "member": "string",
4407
+ "name": "TargetTopic",
4408
+ "required": false,
4409
+ "type": "string"
4410
+ },
4411
+ {
4412
+ "disabled": false,
4413
+ "document": "消息目的客户端 ID,该参数与 TargetTopic 二选一",
4414
+ "example": "myclient0001",
4415
+ "member": "string",
4416
+ "name": "TargetClientId",
4417
+ "required": false,
4418
+ "type": "string"
4419
+ },
4420
+ {
4421
+ "disabled": false,
4422
+ "document": "消息 payload 编码,可选 plain 或 base64,默认为 plain(即不编码)",
4423
+ "example": "plain",
4424
+ "member": "string",
4425
+ "name": "Encoding",
4426
+ "required": false,
4427
+ "type": "string"
4428
+ },
4429
+ {
4430
+ "disabled": false,
4431
+ "document": "消息的服务质量等级,默认为 1",
4432
+ "example": "1",
4433
+ "member": "int64",
4434
+ "name": "Qos",
4435
+ "required": false,
4436
+ "type": "int"
4437
+ },
4438
+ {
4439
+ "disabled": false,
4440
+ "document": "是否为保留消息,默认为 false,且仅支持发布到主题的消息设置为 true",
4441
+ "example": "false",
4442
+ "member": "bool",
4443
+ "name": "Retain",
4444
+ "required": false,
4445
+ "type": "bool"
4446
+ }
4447
+ ],
4448
+ "type": "object"
4449
+ },
4450
+ "PublishMessageResponse": {
4451
+ "document": "PublishMessage返回参数结构体",
4452
+ "members": [
4453
+ {
4454
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
4455
+ "member": "string",
4456
+ "name": "RequestId",
4457
+ "type": "string"
4458
+ }
4459
+ ],
4460
+ "type": "object"
4461
+ },
4330
4462
  "RegisterCaCertificateRequest": {
4331
4463
  "document": "RegisterCaCertificate请求参数结构体",
4332
4464
  "members": [
@@ -222,6 +222,20 @@
222
222
  "title": "示例"
223
223
  }
224
224
  ],
225
+ "DescribeInsVPCEndpoints": [
226
+ {
227
+ "document": "样例",
228
+ "input": "POST / HTTP/1.1\nHost: mqtt.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeMQTTInsVPCEndpoints\n<公共请求参数>\n\n{\n \"InstanceId\": \"mqtt-25zqb75a\"\n}",
229
+ "output": "{\n \"Error\": null,\n \"RequestId\": null,\n \"Response\": {\n \"Endpoints\": [\n {\n \"Host\": \"mqtt-25zqb75a-qy.mqtt.qcloud.tencenttdmq.com\",\n \"Ip\": \"10.0.0.25\",\n \"Port\": 1883,\n \"SubnetId\": \"subnet-fr9ez60m\",\n \"Type\": \"mqtt-tcp\",\n \"Url\": \"mqtt-25zqb75a-qy.mqtt.qcloud.tencenttdmq.com:1883\",\n \"VpcId\": \"vpc-35wk4c6h\"\n },\n {\n \"Host\": \"mqtt-25zqb75a-qy.mqtt.qcloud.tencenttdmq.com\",\n \"Ip\": \"10.0.0.25\",\n \"Port\": 8888,\n \"SubnetId\": \"subnet-fr9ez60m\",\n \"Type\": \"mqtt-ws\",\n \"Url\": \"mqtt-25zqb75a-qy.mqtt.qcloud.tencenttdmq.com:8888\",\n \"VpcId\": \"vpc-35wk4c6h\"\n }\n ],\n \"RequestId\": \"4313484d-47c1-4fc8-b402-f997d2ba7256\"\n }\n}",
230
+ "title": "样例"
231
+ },
232
+ {
233
+ "document": "示例",
234
+ "input": "POST / HTTP/1.1\nHost: mqtt.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeInsVPCEndpoints\n<公共请求参数>\n\n{\n \"InstanceId\": \"mqtt-g4r4x85z\"\n}",
235
+ "output": "{\n \"Error\": null,\n \"RequestId\": null,\n \"Response\": {\n \"Endpoints\": [\n {\n \"Host\": \"mqtt-g4r4x85z-cd-vpc.mqtt.tencenttdmq.com\",\n \"Ip\": \"127.0.0.1\",\n \"Port\": 1883,\n \"SubnetId\": null,\n \"Type\": \"mqtt-tcp\",\n \"Url\": \"mqtt-g4r4x85z-cd-vpc.mqtt.tencenttdmq.com:1883\",\n \"VpcId\": null\n },\n {\n \"Host\": \"mqtt-g4r4x85z-cd-vpc.mqtt.tencenttdmq.com\",\n \"Ip\": \"127.0.0.1\",\n \"Port\": 8888,\n \"SubnetId\": null,\n \"Type\": \"mqtt-ws\",\n \"Url\": \"mqtt-g4r4x85z-cd-vpc.mqtt.tencenttdmq.com:8888\",\n \"VpcId\": null\n },\n {\n \"Host\": \"mqtt-g4r4x85z-cd-vpc.mqtt.tencenttdmq.com\",\n \"Ip\": \"127.0.0.1\",\n \"Port\": 8883,\n \"SubnetId\": null,\n \"Type\": \"mqtt-tls\",\n \"Url\": \"mqtt-g4r4x85z-cd-vpc.mqtt.tencenttdmq.com:8883\",\n \"VpcId\": null\n }\n ],\n \"RequestId\": \"ec17e61f-7749-4192-bbc7-804b031a7da8\"\n }\n}",
236
+ "title": "示例"
237
+ }
238
+ ],
225
239
  "DescribeInstance": [
226
240
  {
227
241
  "document": "示例",
@@ -334,6 +348,14 @@
334
348
  "title": "示例"
335
349
  }
336
350
  ],
351
+ "PublishMessage": [
352
+ {
353
+ "document": "",
354
+ "input": "POST / HTTP/1.1\nHost: mqtt.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: PublishMQTTMessage\n<公共请求参数>\n\n{\n \"InstanceId\": \"mqtt-xxx\",\n \"TargetTopic\": \"test/a/b\",\n \"Payload\": \"Hello MQTT!\",\n \"Encoding\": \"plain\",\n \"Qos\": 1,\n \"Retain\": false\n}",
355
+ "output": "{\n \"Response\": {\n \"RequestId\": \"416510a6-f614-487d-bbca-e7fdbf72fc29\"\n }\n}",
356
+ "title": "发布消息到主题"
357
+ }
358
+ ],
337
359
  "RegisterCaCertificate": [
338
360
  {
339
361
  "document": "示例",
@@ -386,7 +386,7 @@
386
386
  "status": "online"
387
387
  },
388
388
  "RecognizeGeneralInvoice": {
389
- "document": "本接口支持 PDF多页(最多30页)、一页中单张、多张、类型票据的混合识别,同时支持单选识别某类票据,已支持票种包括:增值税发票(专票、普票、卷票、区块链发票、通行费发票)、全电发票(专票、普票)、非税发票(通用票据、统一缴纳书)、定额发票、通用机打发票、购车发票(机动车销售发票、二手车发票)、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票共14种标准报销发票,支持OFD格式的 增值税电子普通发票、增值税电子专用发票、电子发票(普通发票)、电子发票(增值税专用发票)、电子发票(机票行程单)、电子发票(铁路电子客票)的第一页识别,并支持非上述类型的其他发票的智能识别,点击[立即试用](https://cloud.tencent.com/product/ocr)。\n\n默认接口请求频率限制:5次/秒。\n\n\n支持返回的细项目子票种SubType、子票种中文TypeDescription、以及对应所属大类票种Type 的说明如下列表:\n<table style=\"width:715px\">\n <thead>\n <tr>\n <th style=\"width:200px\">SubType 子票种英文</th>\n <th style=\"width:200px\">TypeDescription子票种中文</th>\n <th >Type 所属大类票种</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td> VatSpecialInvoice</td>\n <td> 增值税专用发票 </td>\n <td> 3 </td>\n </tr>\n <tr>\n <td> VatCommonInvoice</td>\n <td> 增值税普通发票 </td>\n <td> 3 </td>\n </tr>\n <tr>\n <td> VatElectronicCommonInvoice </td>\n <td> 增值税电子普通发票 </td>\n <td> 3 </td>\n </tr>\n <tr>\n <td> VatElectronicSpecialInvoice </td>\n <td> 增值税电子专用发票 </td>\n <td> 3 </td>\n </tr>\n <tr>\n <td> VatElectronicInvoiceBlockchain</td>\n <td> 区块链电子发票 </td>\n <td> 3 </td>\n </tr>\n <tr>\n <td> VatElectronicInvoiceToll</td>\n <td> 增值税电子普通发票(通行费)</td>\n <td> 3 </td>\n </tr>\n <tr>\n <td> VatSalesList</td>\n <td> 增值税销货清单</td>\n <td> 3 </td>\n </tr>\n <tr>\n <td> VatElectronicSpecialInvoiceFull</td>\n <td> 电子发票(专用发票)</td>\n <td> 16 </td>\n </tr>\n <tr>\n <td> VatElectronicInvoiceFull</td>\n <td> 电子发票(普通发票) </td>\n <td> 16 </td>\n </tr>\n <tr>\n <td> ElectronicFlightTicketFull</td>\n <td> 电子发票(机票行程单)</td>\n <td> 16 </td>\n </tr>\n <tr>\n <td> ElectronicTrainTicketFull</td>\n <td> 电子发票(铁路电子客票)</td>\n <td> 16 </td>\n </tr>\n <tr>\n <td> MotorVehicleSaleInvoice </td>\n <td> 机动车销售统一发票 </td>\n <td> 12 </td>\n </tr>\n <tr>\n <td> UsedCarPurchaseInvoice </td>\n <td> 二手车销售统一发票 </td>\n <td> 12 </td>\n </tr>\n <tr>\n <td> VatInvoiceRoll </td>\n <td> 增值税普通发票(卷票) </td>\n <td> 11 </td>\n </tr>\n <tr>\n <td> TaxiTicket </td>\n <td> 出租车发票 </td>\n <td> 0 </td>\n </tr>\n <tr>\n <td> QuotaInvoice </td>\n <td> 定额发票 </td>\n <td> 1 </td>\n </tr>\n <tr>\n <td> TrainTicket </td>\n <td> 火车票 </td>\n <td> 2 </td>\n </tr>\n <tr>\n <td> AirTransport </td>\n <td> 机票行程单 </td>\n <td> 5 </td>\n </tr>\n <tr>\n <td> MachinePrintedInvoice </td>\n <td> 通用机打发票 </td>\n <td> 8 </td>\n </tr>\n <tr>\n <td> BusInvoice </td>\n <td> 汽车票 </td>\n <td> 9 </td>\n </tr>\n <tr>\n <td> ShippingInvoice </td>\n <td> 轮船票 </td>\n <td> 10 </td>\n </tr>\n <tr>\n <td> NonTaxIncomeGeneralBill </td>\n <td> 非税收入通用票据 </td>\n <td> 15 </td>\n </tr>\n <tr>\n <td> NonTaxIncomeElectronicBill </td>\n <td> 非税收入一般缴款书(电子) </td>\n <td> 15 </td>\n </tr>\n <tr>\n <td> TollInvoice </td>\n <td> 过路过桥费发票 </td>\n <td> 13 </td>\n </tr>\n <tr>\n <td> MedicalOutpatientInvoice </td>\n <td> 医疗门诊收费票据(电子) </td>\n <td> 17 </td>\n </tr>\n <tr>\n <td> MedicalHospitalizedInvoice </td>\n <td> 医疗住院收费票据(电子) </td>\n <td> 17 </td>\n </tr>\n <tr>\n <td> TaxPayment </td>\n <td> 完税凭证 </td>\n <td> 18 </td>\n </tr>\n <tr>\n <td> CustomsPaymentReceipt </td>\n <td> 海关缴款 </td>\n <td> 19 </td>\n </tr>\n <tr>\n <td> OtherInvoice </td>\n <td> 其他发票 </td>\n <td> -1 </td>\n </tr>\n </tbody>\n </table>",
389
+ "document": "本接口支持 PDF多页(最多30页)、一页中单张、多张、类型票据的混合识别,同时支持单选识别某类票据,已支持票种包括:增值税发票(专票、普票、卷票、区块链发票、通行费发票)、全电发票(专票、普票)、非税发票(通用票据、统一缴纳书)、定额发票、通用机打发票、购车发票(机动车销售发票、二手车发票)、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票等常用标准报销发票,支持OFD格式的 增值税电子普通发票、增值税电子专用发票、电子发票(普通发票)、电子发票(增值税专用发票)、电子发票(机票行程单)、电子发票(铁路电子客票)的第一页识别,并支持非上述类型的其他发票的智能识别,点击[立即试用](https://cloud.tencent.com/product/ocr)。\n\n默认接口请求频率限制:5次/秒。\n\n\n支持返回的细项目子票种SubType、子票种中文TypeDescription、以及对应所属大类票种Type 的说明如下列表:\n<table style=\"width:715px\">\n <thead>\n <tr>\n <th style=\"width:200px\">SubType 子票种英文</th>\n <th style=\"width:200px\">TypeDescription子票种中文</th>\n <th >Type 所属大类票种</th>\n </tr>\n </thead>\n <tbody>\n <tr>\n <td> VatSpecialInvoice</td>\n <td> 增值税专用发票 </td>\n <td> 3 </td>\n </tr>\n <tr>\n <td> VatCommonInvoice</td>\n <td> 增值税普通发票 </td>\n <td> 3 </td>\n </tr>\n <tr>\n <td> VatElectronicCommonInvoice </td>\n <td> 增值税电子普通发票 </td>\n <td> 3 </td>\n </tr>\n <tr>\n <td> VatElectronicSpecialInvoice </td>\n <td> 增值税电子专用发票 </td>\n <td> 3 </td>\n </tr>\n <tr>\n <td> VatElectronicInvoiceBlockchain</td>\n <td> 区块链电子发票 </td>\n <td> 3 </td>\n </tr>\n <tr>\n <td> VatElectronicInvoiceToll</td>\n <td> 增值税电子普通发票(通行费)</td>\n <td> 3 </td>\n </tr>\n <tr>\n <td> VatSalesList</td>\n <td> 增值税销货清单</td>\n <td> 3 </td>\n </tr>\n <tr>\n <td> VatElectronicSpecialInvoiceFull</td>\n <td> 电子发票(专用发票)</td>\n <td> 16 </td>\n </tr>\n <tr>\n <td> VatElectronicInvoiceFull</td>\n <td> 电子发票(普通发票) </td>\n <td> 16 </td>\n </tr>\n <tr>\n <td> ElectronicFlightTicketFull</td>\n <td> 电子发票(机票行程单)</td>\n <td> 16 </td>\n </tr>\n <tr>\n <td> ElectronicTrainTicketFull</td>\n <td> 电子发票(铁路电子客票)</td>\n <td> 16 </td>\n </tr>\n <tr>\n <td> MotorVehicleSaleInvoice </td>\n <td> 机动车销售统一发票 </td>\n <td> 12 </td>\n </tr>\n <tr>\n <td> UsedCarPurchaseInvoice </td>\n <td> 二手车销售统一发票 </td>\n <td> 12 </td>\n </tr>\n <tr>\n <td> VatInvoiceRoll </td>\n <td> 增值税普通发票(卷票) </td>\n <td> 11 </td>\n </tr>\n <tr>\n <td> TaxiTicket </td>\n <td> 出租车发票 </td>\n <td> 0 </td>\n </tr>\n <tr>\n <td> QuotaInvoice </td>\n <td> 定额发票 </td>\n <td> 1 </td>\n </tr>\n <tr>\n <td> TrainTicket </td>\n <td> 火车票 </td>\n <td> 2 </td>\n </tr>\n <tr>\n <td> AirTransport </td>\n <td> 机票行程单 </td>\n <td> 5 </td>\n </tr>\n <tr>\n <td> MachinePrintedInvoice </td>\n <td> 通用机打发票 </td>\n <td> 8 </td>\n </tr>\n <tr>\n <td> BusInvoice </td>\n <td> 汽车票 </td>\n <td> 9 </td>\n </tr>\n <tr>\n <td> ShippingInvoice </td>\n <td> 轮船票 </td>\n <td> 10 </td>\n </tr>\n <tr>\n <td> NonTaxIncomeGeneralBill </td>\n <td> 非税收入通用票据 </td>\n <td> 15 </td>\n </tr>\n <tr>\n <td> NonTaxIncomeElectronicBill </td>\n <td> 非税收入一般缴款书(电子) </td>\n <td> 15 </td>\n </tr>\n <tr>\n <td> TollInvoice </td>\n <td> 过路过桥费发票 </td>\n <td> 13 </td>\n </tr>\n <tr>\n <td> MedicalOutpatientInvoice </td>\n <td> 医疗门诊收费票据(电子) </td>\n <td> 17 </td>\n </tr>\n <tr>\n <td> MedicalHospitalizedInvoice </td>\n <td> 医疗住院收费票据(电子) </td>\n <td> 17 </td>\n </tr>\n <tr>\n <td> TaxPayment </td>\n <td> 完税凭证 </td>\n <td> 18 </td>\n </tr>\n <tr>\n <td> CustomsPaymentReceipt </td>\n <td> 海关缴款 </td>\n <td> 19 </td>\n </tr>\n <tr>\n <td> OtherInvoice </td>\n <td> 其他发票 </td>\n <td> -1 </td>\n </tr>\n </tbody>\n </table>",
390
390
  "input": "RecognizeGeneralInvoiceRequest",
391
391
  "name": "通用票据识别(高级版)",
392
392
  "output": "RecognizeGeneralInvoiceResponse",
@@ -8693,7 +8693,7 @@
8693
8693
  {
8694
8694
  "disabled": true,
8695
8695
  "document": "告警码\n-9103\t证照翻拍告警\n-9102\t证照复印件告警\n-9106 证件遮挡告警\n-9107 模糊图片告警",
8696
- "example": "[]",
8696
+ "example": "[-9103]",
8697
8697
  "member": "int64",
8698
8698
  "name": "Warn",
8699
8699
  "output_required": true,
@@ -13541,7 +13541,7 @@
13541
13541
  "members": [
13542
13542
  {
13543
13543
  "disabled": false,
13544
- "document": "图片的 Base64 值。\n支持的图片格式:PNG、JPG、JPEG、PDF,暂不支持 GIF 格式。\n支持的图片大小:所下载图片经Base64编码后不超过 8M。图片下载时间不超过 3 秒。\n支持的图片像素:单边介于20-10000px之间。\n图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。",
13544
+ "document": "图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG、PDF,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:单边介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。",
13545
13545
  "example": "/9j/sBmIZTmfcZ4.....eIrQsBGNnnW8=",
13546
13546
  "member": "string",
13547
13547
  "name": "ImageBase64",
@@ -13550,7 +13550,7 @@
13550
13550
  },
13551
13551
  {
13552
13552
  "disabled": false,
13553
- "document": "图片的 Url 地址。\n支持的图片格式:PNG、JPG、JPEG、PDF,暂不支持 GIF 格式。\n支持的图片大小:所下载图片经 Base64 编码后不超过 8M。图片下载时间不超过 3 秒。\n支持的图片像素:单边介于20-10000px之间。\n图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。\n非腾讯云存储的 Url 速度和稳定性可能受一定影响。",
13553
+ "document": "图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG、PDF,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:单边介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。",
13554
13554
  "example": "https://ocr-demo-1254418846.cos.ap-guangzhou.myqcloud.com/invoice/MixedInvoiceDetect/MixedInvoiceDetect1.jpg",
13555
13555
  "member": "string",
13556
13556
  "name": "ImageUrl",
@@ -16669,7 +16669,7 @@
16669
16669
  "members": [
16670
16670
  {
16671
16671
  "disabled": false,
16672
- "document": "图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。",
16672
+ "document": "图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,WORD,EXCEL,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。",
16673
16673
  "example": "https://ocr-demo-1254418846.cos.ap-guangzhou.myqcloud.com/document/SmartStructuralOCR/SmartStructuralPro1.png",
16674
16674
  "member": "string",
16675
16675
  "name": "ImageUrl",
@@ -16678,7 +16678,7 @@
16678
16678
  },
16679
16679
  {
16680
16680
  "disabled": false,
16681
- "document": "图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。",
16681
+ "document": "图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,WORD,EXCEL,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。",
16682
16682
  "example": "/9j/4AAQSkZJRg.....s97n//2Q==",
16683
16683
  "member": "string",
16684
16684
  "name": "ImageBase64",
@@ -16714,7 +16714,7 @@
16714
16714
  },
16715
16715
  {
16716
16716
  "disabled": false,
16717
- "document": "配置id支持:General -- 通用场景 InvoiceEng -- 海运提单、国际invoice模版 WayBillEng --海运订单模板",
16717
+ "document": "配置id支持:\nGeneral -- 通用场景 \nInvoiceEng -- 国际invoice模版 \nWayBillEng --海运订单模板\nCustomsDeclaration -- 进出口报关单\nWeightNote -- 磅单\nMedicalMeter -- 血压仪表识别\nBillOfLading -- 海运提单\nEntrustmentBook -- 海运托书\nWordRecognize -- 手写英文作文模版\nStatement -- 对账单识别模板\nBookingConfirmation -- 配舱通知书识别模板",
16718
16718
  "example": "General",
16719
16719
  "member": "string",
16720
16720
  "name": "ConfigId",
@@ -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 doAuditApplyClient(args, parsed_globals):
176
+ def doDescribeClientBalanceNew(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 doAuditApplyClient(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.AuditApplyClientRequest()
205
+ model = models.DescribeClientBalanceNewRequest()
206
206
  model.from_json_string(json.dumps(args))
207
207
  start_time = time.time()
208
208
  while True:
209
- rsp = client.AuditApplyClient(model)
209
+ rsp = client.DescribeClientBalanceNew(model)
210
210
  result = rsp.to_json_string()
211
211
  try:
212
212
  json_obj = json.loads(result)
@@ -745,7 +745,7 @@ def doDescribeAgentClients(args, parsed_globals):
745
745
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
746
746
 
747
747
 
748
- def doDescribeClientBalanceNew(args, parsed_globals):
748
+ def doDescribeClientJoinIncreaseList(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,63 @@ def doDescribeClientBalanceNew(args, parsed_globals):
774
774
  client = mod.PartnersClient(cred, g_param[OptionsDefine.Region], profile)
775
775
  client._sdkVersion += ("_CLI_" + __version__)
776
776
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
777
- model = models.DescribeClientBalanceNewRequest()
777
+ model = models.DescribeClientJoinIncreaseListRequest()
778
778
  model.from_json_string(json.dumps(args))
779
779
  start_time = time.time()
780
780
  while True:
781
- rsp = client.DescribeClientBalanceNew(model)
781
+ rsp = client.DescribeClientJoinIncreaseList(model)
782
+ result = rsp.to_json_string()
783
+ try:
784
+ json_obj = json.loads(result)
785
+ except TypeError as e:
786
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
787
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
788
+ break
789
+ cur_time = time.time()
790
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
791
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
792
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
793
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
794
+ else:
795
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
796
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
797
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
798
+
799
+
800
+ def doAuditApplyClient(args, parsed_globals):
801
+ g_param = parse_global_arg(parsed_globals)
802
+
803
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
804
+ cred = credential.CVMRoleCredential()
805
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
806
+ cred = credential.STSAssumeRoleCredential(
807
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
808
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
809
+ )
810
+ 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):
811
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
812
+ else:
813
+ cred = credential.Credential(
814
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
815
+ )
816
+ http_profile = HttpProfile(
817
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
818
+ reqMethod="POST",
819
+ endpoint=g_param[OptionsDefine.Endpoint],
820
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
821
+ )
822
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
823
+ if g_param[OptionsDefine.Language]:
824
+ profile.language = g_param[OptionsDefine.Language]
825
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
826
+ client = mod.PartnersClient(cred, g_param[OptionsDefine.Region], profile)
827
+ client._sdkVersion += ("_CLI_" + __version__)
828
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
829
+ model = models.AuditApplyClientRequest()
830
+ model.from_json_string(json.dumps(args))
831
+ start_time = time.time()
832
+ while True:
833
+ rsp = client.AuditApplyClient(model)
782
834
  result = rsp.to_json_string()
783
835
  try:
784
836
  json_obj = json.loads(result)
@@ -1071,7 +1123,7 @@ ACTION_MAP = {
1071
1123
  "AssignClientsToSales": doAssignClientsToSales,
1072
1124
  "DescribeAgentAuditedClients": doDescribeAgentAuditedClients,
1073
1125
  "CreatePayRelationForClient": doCreatePayRelationForClient,
1074
- "AuditApplyClient": doAuditApplyClient,
1126
+ "DescribeClientBalanceNew": doDescribeClientBalanceNew,
1075
1127
  "AgentPayDeals": doAgentPayDeals,
1076
1128
  "DescribeAgentBills": doDescribeAgentBills,
1077
1129
  "DescribeRebateInfosNew": doDescribeRebateInfosNew,
@@ -1082,7 +1134,8 @@ ACTION_MAP = {
1082
1134
  "ModifyClientRemark": doModifyClientRemark,
1083
1135
  "DescribeAgentRelateBigDealIds": doDescribeAgentRelateBigDealIds,
1084
1136
  "DescribeAgentClients": doDescribeAgentClients,
1085
- "DescribeClientBalanceNew": doDescribeClientBalanceNew,
1137
+ "DescribeClientJoinIncreaseList": doDescribeClientJoinIncreaseList,
1138
+ "AuditApplyClient": doAuditApplyClient,
1086
1139
  "DescribeAgentPayDealsV2": doDescribeAgentPayDealsV2,
1087
1140
  "DescribeAgentClientGrade": doDescribeAgentClientGrade,
1088
1141
  "DescribeAgentSelfPayDealsV2": doDescribeAgentSelfPayDealsV2,