tccli 3.0.1098.1__py2.py3-none-any.whl → 3.0.1100.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/cfw/v20190904/DescribeIPStatusList.md +4 -4
  3. tccli/examples/cls/v20201016/CreateCosRecharge.md +4 -4
  4. tccli/examples/cls/v20201016/CreateDashboardSubscribe.md +18 -0
  5. tccli/examples/cls/v20201016/DeleteDashboardSubscribe.md +18 -0
  6. tccli/examples/cls/v20201016/DescribeDashboardSubscribes.md +18 -0
  7. tccli/examples/cls/v20201016/ModifyCosRecharge.md +3 -3
  8. tccli/examples/cls/v20201016/ModifyDashboardSubscribe.md +18 -0
  9. tccli/examples/cls/v20201016/OpenKafkaConsumer.md +1 -1
  10. tccli/examples/cls/v20201016/SearchDashboardSubscribe.md +35 -0
  11. tccli/examples/cynosdb/v20190107/DescribeChangedParamsAfterUpgrade.md +31 -0
  12. tccli/examples/dlc/v20210125/CreateSparkSessionBatchSQL.md +1 -1
  13. tccli/examples/domain/v20180808/ModifyTemplate.md +73 -0
  14. tccli/examples/ess/v20201111/DescribeBatchOrganizationRegistrationUrls.md +27 -0
  15. tccli/examples/faceid/v20180301/GetFaceIdResult.md +3 -1
  16. tccli/examples/hunyuan/v20230901/ChatCompletions.md +183 -0
  17. tccli/examples/hunyuan/v20230901/ChatPro.md +2 -2
  18. tccli/examples/ims/v20200713/ImageModeration.md +4 -1
  19. tccli/examples/lke/v20231130/GetEmbedding.md +1 -1
  20. tccli/examples/lke/v20231130/GetMsgRecord.md +4 -1
  21. tccli/examples/ocr/v20181119/RecognizeGeneralTextImageWarn.md +83 -0
  22. tccli/examples/rum/v20210622/CreateWhitelist.md +2 -2
  23. tccli/examples/rum/v20210622/DescribeRumGroupLog.md +3 -3
  24. tccli/examples/rum/v20210622/DescribeRumLogExport.md +6 -6
  25. tccli/examples/rum/v20210622/DescribeRumStatsLogList.md +2 -2
  26. tccli/examples/teo/v20220901/CreatePlan.md +47 -0
  27. tccli/examples/teo/v20220901/DescribeRealtimeLogDeliveryTasks.md +42 -21
  28. tccli/examples/teo/v20220901/DestroyPlan.md +20 -0
  29. tccli/examples/teo/v20220901/IncreasePlanQuota.md +46 -0
  30. tccli/examples/teo/v20220901/ModifyPlan.md +21 -0
  31. tccli/examples/teo/v20220901/RenewPlan.md +23 -0
  32. tccli/examples/teo/v20220901/UpgradePlan.md +23 -0
  33. tccli/examples/tione/v20191022/UpdateCodeRepository.md +1 -1
  34. tccli/examples/tke/v20180525/CheckInstancesUpgradeAble.md +15 -7
  35. tccli/examples/tke/v20180525/CreateCluster.md +58 -142
  36. tccli/examples/tke/v20180525/DescribeClusterNodePools.md +1 -0
  37. tccli/examples/tke/v20180525/GetUpgradeInstanceProgress.md +18 -19
  38. tccli/examples/tke/v20180525/ModifyClusterAuthenticationOptions.md +3 -0
  39. tccli/examples/tke/v20180525/ModifyNodePoolInstanceTypes.md +1 -1
  40. tccli/examples/tms/v20201229/AnswerQuestion.md +21 -0
  41. tccli/examples/vpc/v20170312/DescribeVpnGatewayRoutes.md +2 -1
  42. tccli/examples/vpc/v20170312/ModifyVpnGatewayRoutes.md +8 -4
  43. tccli/services/aiart/v20221229/api.json +5 -5
  44. tccli/services/ccc/v20200210/api.json +1 -1
  45. tccli/services/cfs/v20190719/api.json +27 -27
  46. tccli/services/cfw/v20190904/api.json +5 -5
  47. tccli/services/cfw/v20190904/examples.json +1 -1
  48. tccli/services/cloudstudio/v20230508/api.json +13 -4
  49. tccli/services/cls/cls_client.py +337 -72
  50. tccli/services/cls/v20201016/api.json +501 -66
  51. tccli/services/cls/v20201016/examples.json +45 -5
  52. tccli/services/cynosdb/cynosdb_client.py +53 -0
  53. tccli/services/cynosdb/v20190107/api.json +120 -2
  54. tccli/services/cynosdb/v20190107/examples.json +8 -0
  55. tccli/services/dcdb/v20180411/api.json +2 -2
  56. tccli/services/dlc/v20210125/api.json +14 -4
  57. tccli/services/dlc/v20210125/examples.json +1 -1
  58. tccli/services/domain/domain_client.py +53 -0
  59. tccli/services/domain/v20180808/api.json +62 -0
  60. tccli/services/domain/v20180808/examples.json +8 -0
  61. tccli/services/dts/v20211206/api.json +1 -1
  62. tccli/services/ess/ess_client.py +57 -4
  63. tccli/services/ess/v20201111/api.json +89 -1
  64. tccli/services/ess/v20201111/examples.json +8 -0
  65. tccli/services/essbasic/v20210526/api.json +1 -1
  66. tccli/services/faceid/v20180301/api.json +21 -1
  67. tccli/services/faceid/v20180301/examples.json +1 -1
  68. tccli/services/hunyuan/hunyuan_client.py +53 -0
  69. tccli/services/hunyuan/v20230901/api.json +165 -26
  70. tccli/services/hunyuan/v20230901/examples.json +33 -1
  71. tccli/services/ims/v20200713/api.json +13 -0
  72. tccli/services/ims/v20200713/examples.json +1 -1
  73. tccli/services/ims/v20201229/api.json +2 -1
  74. tccli/services/iotvideo/v20211125/api.json +15 -0
  75. tccli/services/lcic/v20220817/api.json +1 -1
  76. tccli/services/lke/lke_client.py +114 -8
  77. tccli/services/lke/v20231130/api.json +492 -0
  78. tccli/services/lke/v20231130/examples.json +18 -2
  79. tccli/services/mariadb/v20170312/api.json +2 -2
  80. tccli/services/monitor/v20180724/api.json +1 -1
  81. tccli/services/mps/v20190612/api.json +46 -1
  82. tccli/services/ocr/ocr_client.py +53 -0
  83. tccli/services/ocr/v20181119/api.json +156 -0
  84. tccli/services/ocr/v20181119/examples.json +8 -0
  85. tccli/services/rce/v20201103/api.json +9 -9
  86. tccli/services/rum/v20210622/api.json +37 -35
  87. tccli/services/rum/v20210622/examples.json +7 -7
  88. tccli/services/tdmq/v20200217/api.json +6 -6
  89. tccli/services/teo/teo_client.py +338 -20
  90. tccli/services/teo/v20220901/api.json +503 -18
  91. tccli/services/teo/v20220901/examples.json +62 -2
  92. tccli/services/tione/v20191022/api.json +6 -7
  93. tccli/services/tione/v20191022/examples.json +1 -1
  94. tccli/services/tione/v20211111/api.json +2 -0
  95. tccli/services/tke/v20180525/api.json +77 -93
  96. tccli/services/tke/v20180525/examples.json +7 -7
  97. tccli/services/tms/tms_client.py +53 -0
  98. tccli/services/tms/v20201229/api.json +44 -0
  99. tccli/services/tms/v20201229/examples.json +8 -0
  100. tccli/services/tmt/v20180321/api.json +1 -1
  101. tccli/services/tse/v20201207/api.json +49 -1
  102. tccli/services/vpc/v20170312/api.json +3 -0
  103. tccli/services/vpc/v20170312/examples.json +3 -3
  104. tccli/services/waf/v20180125/api.json +2 -2
  105. {tccli-3.0.1098.1.dist-info → tccli-3.0.1100.1.dist-info}/METADATA +2 -2
  106. {tccli-3.0.1098.1.dist-info → tccli-3.0.1100.1.dist-info}/RECORD +109 -92
  107. {tccli-3.0.1098.1.dist-info → tccli-3.0.1100.1.dist-info}/WHEEL +0 -0
  108. {tccli-3.0.1098.1.dist-info → tccli-3.0.1100.1.dist-info}/entry_points.txt +0 -0
  109. {tccli-3.0.1098.1.dist-info → tccli-3.0.1100.1.dist-info}/license_files/LICENSE +0 -0
@@ -1701,6 +1701,7 @@
1701
1701
  "example": "1560355200",
1702
1702
  "member": "uint64",
1703
1703
  "name": "StartTime",
1704
+ "output_required": true,
1704
1705
  "required": true,
1705
1706
  "type": "int",
1706
1707
  "value_allowed_null": false
@@ -1711,6 +1712,7 @@
1711
1712
  "example": "1601196327",
1712
1713
  "member": "uint64",
1713
1714
  "name": "EndTime",
1715
+ "output_required": true,
1714
1716
  "required": true,
1715
1717
  "type": "int",
1716
1718
  "value_allowed_null": false
@@ -1721,6 +1723,7 @@
1721
1723
  "example": "/100008401725/AQTV2839QJ/sp01_328202375/events/123.jpg",
1722
1724
  "member": "string",
1723
1725
  "name": "Thumbnail",
1726
+ "output_required": true,
1724
1727
  "required": true,
1725
1728
  "type": "string",
1726
1729
  "value_allowed_null": false
@@ -1731,9 +1734,21 @@
1731
1734
  "example": "low_power",
1732
1735
  "member": "string",
1733
1736
  "name": "EventId",
1737
+ "output_required": true,
1734
1738
  "required": true,
1735
1739
  "type": "string",
1736
1740
  "value_allowed_null": false
1741
+ },
1742
+ {
1743
+ "disabled": false,
1744
+ "document": "事件录像上传状态,Finished: 全部上传成功 Partial: 部分上传成功 Failed: 上传失败\n注意:此字段可能返回 null,表示取不到有效值。",
1745
+ "example": "Finished",
1746
+ "member": "string",
1747
+ "name": "UploadStatus",
1748
+ "output_required": false,
1749
+ "required": false,
1750
+ "type": "string",
1751
+ "value_allowed_null": true
1737
1752
  }
1738
1753
  ],
1739
1754
  "usage": "both"
@@ -5552,7 +5552,7 @@
5552
5552
  },
5553
5553
  {
5554
5554
  "disabled": false,
5555
- "document": "直播方式:0 常规模式(默认)1 回放直播模式(伪直播)",
5555
+ "document": "直播方式:0 常规模式(默认)1 回放直播模式(伪直播)。 目前支持从回放直播模式(伪直播)改为常规模式,不支持从常规模式改为回放直播模式(伪直播)",
5556
5556
  "example": "0",
5557
5557
  "member": "uint64",
5558
5558
  "name": "LiveType",
@@ -2357,6 +2357,58 @@ def doCreateQA(args, parsed_globals):
2357
2357
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2358
2358
 
2359
2359
 
2360
+ def doExportUnsatisfiedReply(args, parsed_globals):
2361
+ g_param = parse_global_arg(parsed_globals)
2362
+
2363
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2364
+ cred = credential.CVMRoleCredential()
2365
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2366
+ cred = credential.STSAssumeRoleCredential(
2367
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2368
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2369
+ )
2370
+ 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):
2371
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2372
+ else:
2373
+ cred = credential.Credential(
2374
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2375
+ )
2376
+ http_profile = HttpProfile(
2377
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2378
+ reqMethod="POST",
2379
+ endpoint=g_param[OptionsDefine.Endpoint],
2380
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2381
+ )
2382
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2383
+ if g_param[OptionsDefine.Language]:
2384
+ profile.language = g_param[OptionsDefine.Language]
2385
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2386
+ client = mod.LkeClient(cred, g_param[OptionsDefine.Region], profile)
2387
+ client._sdkVersion += ("_CLI_" + __version__)
2388
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2389
+ model = models.ExportUnsatisfiedReplyRequest()
2390
+ model.from_json_string(json.dumps(args))
2391
+ start_time = time.time()
2392
+ while True:
2393
+ rsp = client.ExportUnsatisfiedReply(model)
2394
+ result = rsp.to_json_string()
2395
+ try:
2396
+ json_obj = json.loads(result)
2397
+ except TypeError as e:
2398
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2399
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2400
+ break
2401
+ cur_time = time.time()
2402
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2403
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2404
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2405
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2406
+ else:
2407
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2408
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2409
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2410
+
2411
+
2360
2412
  def doResetSession(args, parsed_globals):
2361
2413
  g_param = parse_global_arg(parsed_globals)
2362
2414
 
@@ -3345,6 +3397,58 @@ def doGetTaskStatus(args, parsed_globals):
3345
3397
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3346
3398
 
3347
3399
 
3400
+ def doDescribeRefer(args, parsed_globals):
3401
+ g_param = parse_global_arg(parsed_globals)
3402
+
3403
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3404
+ cred = credential.CVMRoleCredential()
3405
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3406
+ cred = credential.STSAssumeRoleCredential(
3407
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3408
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3409
+ )
3410
+ 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):
3411
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3412
+ else:
3413
+ cred = credential.Credential(
3414
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3415
+ )
3416
+ http_profile = HttpProfile(
3417
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3418
+ reqMethod="POST",
3419
+ endpoint=g_param[OptionsDefine.Endpoint],
3420
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3421
+ )
3422
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3423
+ if g_param[OptionsDefine.Language]:
3424
+ profile.language = g_param[OptionsDefine.Language]
3425
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3426
+ client = mod.LkeClient(cred, g_param[OptionsDefine.Region], profile)
3427
+ client._sdkVersion += ("_CLI_" + __version__)
3428
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3429
+ model = models.DescribeReferRequest()
3430
+ model.from_json_string(json.dumps(args))
3431
+ start_time = time.time()
3432
+ while True:
3433
+ rsp = client.DescribeRefer(model)
3434
+ result = rsp.to_json_string()
3435
+ try:
3436
+ json_obj = json.loads(result)
3437
+ except TypeError as e:
3438
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3439
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3440
+ break
3441
+ cur_time = time.time()
3442
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3443
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3444
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3445
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3446
+ else:
3447
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3448
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3449
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3450
+
3451
+
3348
3452
  def doDeleteQACate(args, parsed_globals):
3349
3453
  g_param = parse_global_arg(parsed_globals)
3350
3454
 
@@ -3501,7 +3605,7 @@ def doRetryRelease(args, parsed_globals):
3501
3605
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3502
3606
 
3503
3607
 
3504
- def doExportUnsatisfiedReply(args, parsed_globals):
3608
+ def doQueryParseDocResult(args, parsed_globals):
3505
3609
  g_param = parse_global_arg(parsed_globals)
3506
3610
 
3507
3611
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3530,11 +3634,11 @@ def doExportUnsatisfiedReply(args, parsed_globals):
3530
3634
  client = mod.LkeClient(cred, g_param[OptionsDefine.Region], profile)
3531
3635
  client._sdkVersion += ("_CLI_" + __version__)
3532
3636
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3533
- model = models.ExportUnsatisfiedReplyRequest()
3637
+ model = models.QueryParseDocResultRequest()
3534
3638
  model.from_json_string(json.dumps(args))
3535
3639
  start_time = time.time()
3536
3640
  while True:
3537
- rsp = client.ExportUnsatisfiedReply(model)
3641
+ rsp = client.QueryParseDocResult(model)
3538
3642
  result = rsp.to_json_string()
3539
3643
  try:
3540
3644
  json_obj = json.loads(result)
@@ -3709,7 +3813,7 @@ def doVerifyQA(args, parsed_globals):
3709
3813
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3710
3814
 
3711
3815
 
3712
- def doDescribeRefer(args, parsed_globals):
3816
+ def doParseDoc(args, parsed_globals):
3713
3817
  g_param = parse_global_arg(parsed_globals)
3714
3818
 
3715
3819
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -3738,11 +3842,11 @@ def doDescribeRefer(args, parsed_globals):
3738
3842
  client = mod.LkeClient(cred, g_param[OptionsDefine.Region], profile)
3739
3843
  client._sdkVersion += ("_CLI_" + __version__)
3740
3844
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
3741
- model = models.DescribeReferRequest()
3845
+ model = models.ParseDocRequest()
3742
3846
  model.from_json_string(json.dumps(args))
3743
3847
  start_time = time.time()
3744
3848
  while True:
3745
- rsp = client.DescribeRefer(model)
3849
+ rsp = client.ParseDoc(model)
3746
3850
  result = rsp.to_json_string()
3747
3851
  try:
3748
3852
  json_obj = json.loads(result)
@@ -3869,6 +3973,7 @@ ACTION_MAP = {
3869
3973
  "RetryDocParse": doRetryDocParse,
3870
3974
  "CreateCorp": doCreateCorp,
3871
3975
  "CreateQA": doCreateQA,
3976
+ "ExportUnsatisfiedReply": doExportUnsatisfiedReply,
3872
3977
  "ResetSession": doResetSession,
3873
3978
  "ListQACate": doListQACate,
3874
3979
  "GetAppKnowledgeCount": doGetAppKnowledgeCount,
@@ -3888,14 +3993,15 @@ ACTION_MAP = {
3888
3993
  "ListRejectedQuestion": doListRejectedQuestion,
3889
3994
  "ListReleaseConfigPreview": doListReleaseConfigPreview,
3890
3995
  "GetTaskStatus": doGetTaskStatus,
3996
+ "DescribeRefer": doDescribeRefer,
3891
3997
  "DeleteQACate": doDeleteQACate,
3892
3998
  "CreateQACate": doCreateQACate,
3893
3999
  "RetryRelease": doRetryRelease,
3894
- "ExportUnsatisfiedReply": doExportUnsatisfiedReply,
4000
+ "QueryParseDocResult": doQueryParseDocResult,
3895
4001
  "StopDocParse": doStopDocParse,
3896
4002
  "ExportAttributeLabel": doExportAttributeLabel,
3897
4003
  "VerifyQA": doVerifyQA,
3898
- "DescribeRefer": doDescribeRefer,
4004
+ "ParseDoc": doParseDoc,
3899
4005
  "ListDoc": doListDoc,
3900
4006
 
3901
4007
  }