tccli 3.0.1090.1__py2.py3-none-any.whl → 3.0.1092.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 (182) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/ccc/v20200210/UploadIvrAudio.md +16 -1
  3. tccli/examples/cdb/v20170320/CheckMigrateCluster.md +18 -0
  4. tccli/examples/cdb/v20170320/DescribeClusterInfo.md +59 -0
  5. tccli/examples/csip/v20221121/DescribeAssetViewVulRiskList.md +5 -302
  6. tccli/examples/domain/v20180808/BidPreDomains.md +21 -0
  7. tccli/examples/domain/v20180808/DescribeReservedBidInfo.md +43 -0
  8. tccli/examples/domain/v20180808/DescribeReservedPreDomainInfo.md +31 -0
  9. tccli/examples/es/v20180416/UpdateInstance.md +27 -27
  10. tccli/examples/es/v20180416/UpdatePlugins.md +6 -6
  11. tccli/examples/ess/v20201111/CreateBatchOrganizationRegistrationTasks.md +146 -0
  12. tccli/examples/ess/v20201111/CreateOrganizationAuthUrl.md +18 -0
  13. tccli/examples/ess/v20201111/CreateOrganizationBatchSignUrl.md +28 -0
  14. tccli/examples/gs/v20191118/StartPublishStreamToCSS.md +20 -0
  15. tccli/examples/hunyuan/v20230901/ChatPro.md +69 -31
  16. tccli/examples/hunyuan/v20230901/ChatStd.md +40 -1
  17. tccli/examples/lke/v20231130/CheckAttributeLabelExist.md +24 -0
  18. tccli/examples/lke/v20231130/CheckAttributeLabelRefer.md +23 -0
  19. tccli/examples/lke/v20231130/CreateApp.md +24 -0
  20. tccli/examples/lke/v20231130/CreateAttributeLabel.md +24 -0
  21. tccli/examples/lke/v20231130/CreateCorp.md +24 -0
  22. tccli/examples/lke/v20231130/CreateQA.md +24 -0
  23. tccli/examples/lke/v20231130/CreateQACate.md +26 -0
  24. tccli/examples/lke/v20231130/CreateRejectedQuestion.md +22 -0
  25. tccli/examples/lke/v20231130/CreateRelease.md +21 -0
  26. tccli/examples/lke/v20231130/DeleteApp.md +21 -0
  27. tccli/examples/lke/v20231130/DeleteAttributeLabel.md +21 -0
  28. tccli/examples/lke/v20231130/DeleteDoc.md +21 -0
  29. tccli/examples/lke/v20231130/DeleteQA.md +21 -0
  30. tccli/examples/lke/v20231130/DeleteQACate.md +21 -0
  31. tccli/examples/lke/v20231130/DeleteRejectedQuestion.md +21 -0
  32. tccli/examples/lke/v20231130/DescribeApp.md +29 -0
  33. tccli/examples/lke/v20231130/DescribeAttributeLabel.md +28 -0
  34. tccli/examples/lke/v20231130/DescribeCorp.md +21 -0
  35. tccli/examples/lke/v20231130/DescribeDoc.md +44 -0
  36. tccli/examples/lke/v20231130/DescribeQA.md +42 -0
  37. tccli/examples/lke/v20231130/DescribeRefer.md +35 -0
  38. tccli/examples/lke/v20231130/DescribeRelease.md +25 -0
  39. tccli/examples/lke/v20231130/DescribeReleaseInfo.md +24 -0
  40. tccli/examples/lke/v20231130/DescribeRobotBizIDByAppKey.md +21 -0
  41. tccli/examples/lke/v20231130/DescribeStorageCredential.md +32 -0
  42. tccli/examples/lke/v20231130/DescribeUnsatisfiedReplyContext.md +121 -0
  43. tccli/examples/lke/v20231130/ExportAttributeLabel.md +21 -0
  44. tccli/examples/lke/v20231130/ExportQAList.md +21 -0
  45. tccli/examples/lke/v20231130/ExportUnsatisfiedReply.md +21 -0
  46. tccli/examples/lke/v20231130/GenerateQA.md +21 -0
  47. tccli/examples/lke/v20231130/GetAppKnowledgeCount.md +22 -0
  48. tccli/examples/lke/v20231130/GetAppSecret.md +24 -0
  49. tccli/examples/lke/v20231130/GetDocPreview.md +26 -0
  50. tccli/examples/lke/v20231130/GetEmbedding.md +29 -0
  51. tccli/examples/lke/v20231130/GetMsgRecord.md +51 -0
  52. tccli/examples/lke/v20231130/GetTaskStatus.md +0 -0
  53. tccli/examples/lke/v20231130/GetWsToken.md +44 -0
  54. tccli/examples/lke/v20231130/GroupQA.md +44 -0
  55. tccli/examples/lke/v20231130/IgnoreUnsatisfiedReply.md +21 -0
  56. tccli/examples/lke/v20231130/IsTransferIntent.md +22 -0
  57. tccli/examples/lke/v20231130/ListApp.md +36 -0
  58. tccli/examples/lke/v20231130/ListAppCategory.md +25 -0
  59. tccli/examples/lke/v20231130/ListAttributeLabel.md +33 -0
  60. tccli/examples/lke/v20231130/ListDoc.md +52 -0
  61. tccli/examples/lke/v20231130/ListModel.md +31 -0
  62. tccli/examples/lke/v20231130/ListQA.md +66 -0
  63. tccli/examples/lke/v20231130/ListQACate.md +41 -0
  64. tccli/examples/lke/v20231130/ListRejectedQuestion.md +52 -0
  65. tccli/examples/lke/v20231130/ListRejectedQuestionPreview.md +37 -0
  66. tccli/examples/lke/v20231130/ListRelease.md +36 -0
  67. tccli/examples/lke/v20231130/ListReleaseConfigPreview.md +129 -0
  68. tccli/examples/lke/v20231130/ListReleaseDocPreview.md +38 -0
  69. tccli/examples/lke/v20231130/ListReleaseQAPreview.md +107 -0
  70. tccli/examples/lke/v20231130/ListSelectDoc.md +27 -0
  71. tccli/examples/lke/v20231130/ListUnsatisfiedReply.md +24 -0
  72. tccli/examples/lke/v20231130/ModifyApp.md +25 -0
  73. tccli/examples/lke/v20231130/ModifyAttributeLabel.md +23 -0
  74. tccli/examples/lke/v20231130/ModifyDoc.md +25 -0
  75. tccli/examples/lke/v20231130/ModifyDocAttrRange.md +25 -0
  76. tccli/examples/lke/v20231130/ModifyQA.md +24 -0
  77. tccli/examples/lke/v20231130/ModifyQAAttrRange.md +25 -0
  78. tccli/examples/lke/v20231130/ModifyQACate.md +22 -0
  79. tccli/examples/lke/v20231130/ModifyRejectedQuestion.md +22 -0
  80. tccli/examples/lke/v20231130/ParseDoc.md +25 -0
  81. tccli/examples/lke/v20231130/QueryParseDocResult.md +24 -0
  82. tccli/examples/lke/v20231130/QueryRewrite.md +25 -0
  83. tccli/examples/lke/v20231130/RateMsgRecord.md +22 -0
  84. tccli/examples/lke/v20231130/ResetSession.md +20 -0
  85. tccli/examples/lke/v20231130/RetryDocAudit.md +21 -0
  86. tccli/examples/lke/v20231130/RetryDocParse.md +21 -0
  87. tccli/examples/lke/v20231130/RetryRelease.md +21 -0
  88. tccli/examples/lke/v20231130/SaveDoc.md +34 -0
  89. tccli/examples/lke/v20231130/StopDocParse.md +21 -0
  90. tccli/examples/lke/v20231130/UploadAttributeLabel.md +27 -0
  91. tccli/examples/lke/v20231130/VerifyQA.md +27 -0
  92. tccli/examples/mna/v20210119/GetFlowPackages.md +3 -1
  93. tccli/examples/mna/v20210119/GetFlowStatistic.md +42 -0
  94. tccli/examples/ocr/v20181119/GeneralBasicOCR.md +0 -1
  95. tccli/examples/organization/v20210331/AddOrganizationNode.md +1 -1
  96. tccli/examples/organization/v20210331/BindOrganizationMemberAuthAccount.md +3 -3
  97. tccli/examples/organization/v20210331/CancelOrganizationMemberAuthAccount.md +3 -3
  98. tccli/examples/organization/v20210331/CheckAccountDelete.md +5 -5
  99. tccli/examples/organization/v20210331/CreateOrganizationMember.md +2 -2
  100. tccli/examples/organization/v20210331/CreateOrganizationMemberAuthIdentity.md +1 -1
  101. tccli/examples/organization/v20210331/CreateOrganizationMemberPolicy.md +5 -5
  102. tccli/examples/organization/v20210331/CreateOrganizationMembersPolicy.md +2 -2
  103. tccli/examples/organization/v20210331/DeleteOrganizationMembers.md +1 -1
  104. tccli/examples/organization/v20210331/DeleteOrganizationNodes.md +1 -1
  105. tccli/examples/organization/v20210331/DeleteShareUnitResources.md +1 -1
  106. tccli/examples/organization/v20210331/DescribeOrganizationMemberAuthAccounts.md +2 -2
  107. tccli/examples/organization/v20210331/DescribeOrganizationMemberPolicies.md +1 -1
  108. tccli/examples/organization/v20210331/MoveOrganizationNodeMembers.md +2 -2
  109. tccli/examples/organization/v20210331/QuitOrganization.md +1 -1
  110. tccli/examples/organization/v20210331/UpdateOrganizationMember.md +2 -2
  111. tccli/examples/organization/v20210331/UpdateOrganizationMemberEmailBind.md +3 -3
  112. tccli/examples/organization/v20210331/UpdateOrganizationNode.md +3 -2
  113. tccli/examples/sqlserver/v20180328/DescribeDBInstancesAttribute.md +7 -1
  114. tccli/examples/sqlserver/v20180328/DescribeRestoreTimeRange.md +23 -0
  115. tccli/examples/ssl/v20191205/DeployCertificateInstance.md +26 -1
  116. tccli/examples/tione/v20211111/CreateBatchTask.md +1 -0
  117. tccli/services/__init__.py +3 -0
  118. tccli/services/aiart/v20221229/api.json +7 -7
  119. tccli/services/antiddos/v20200309/api.json +10 -0
  120. tccli/services/asr/v20190614/api.json +6 -6
  121. tccli/services/captcha/v20190722/api.json +75 -31
  122. tccli/services/ccc/v20200210/api.json +10 -0
  123. tccli/services/ccc/v20200210/examples.json +1 -1
  124. tccli/services/cdb/cdb_client.py +106 -0
  125. tccli/services/cdb/v20170320/api.json +255 -0
  126. tccli/services/cdb/v20170320/examples.json +16 -0
  127. tccli/services/cdn/v20180606/api.json +4 -4
  128. tccli/services/cfg/v20210820/api.json +30 -33
  129. tccli/services/ckafka/v20190819/api.json +29 -24
  130. tccli/services/csip/v20221121/api.json +17 -11
  131. tccli/services/csip/v20221121/examples.json +1 -1
  132. tccli/services/domain/domain_client.py +114 -8
  133. tccli/services/domain/v20180808/api.json +174 -1
  134. tccli/services/domain/v20180808/examples.json +22 -0
  135. tccli/services/dts/v20211206/api.json +22 -2
  136. tccli/services/es/v20180416/api.json +12 -12
  137. tccli/services/es/v20180416/examples.json +21 -21
  138. tccli/services/ess/ess_client.py +149 -43
  139. tccli/services/ess/v20201111/api.json +215 -5
  140. tccli/services/ess/v20201111/examples.json +34 -0
  141. tccli/services/essbasic/v20210526/api.json +15 -15
  142. tccli/services/faceid/v20180301/api.json +14 -5
  143. tccli/services/gs/gs_client.py +53 -0
  144. tccli/services/gs/v20191118/api.json +43 -0
  145. tccli/services/gs/v20191118/examples.json +8 -0
  146. tccli/services/hunyuan/v20230901/api.json +67 -21
  147. tccli/services/hunyuan/v20230901/examples.json +17 -5
  148. tccli/services/iai/v20180301/api.json +19 -19
  149. tccli/services/iss/v20230517/api.json +38 -0
  150. tccli/services/live/v20180801/api.json +12 -12
  151. tccli/services/lke/__init__.py +4 -0
  152. tccli/services/lke/lke_client.py +4117 -0
  153. tccli/services/lke/v20231130/api.json +9010 -0
  154. tccli/services/lke/v20231130/examples.json +617 -0
  155. tccli/services/mna/v20210119/api.json +249 -29
  156. tccli/services/mna/v20210119/examples.json +7 -1
  157. tccli/services/monitor/monitor_client.py +0 -53
  158. tccli/services/monitor/v20180724/api.json +30 -62
  159. tccli/services/monitor/v20180724/examples.json +0 -8
  160. tccli/services/ocr/v20181119/api.json +5 -0
  161. tccli/services/ocr/v20181119/examples.json +1 -1
  162. tccli/services/organization/v20210331/api.json +128 -119
  163. tccli/services/organization/v20210331/examples.json +24 -24
  164. tccli/services/redis/v20180412/api.json +1 -1
  165. tccli/services/scf/v20180416/api.json +18 -9
  166. tccli/services/sms/v20210111/api.json +1 -1
  167. tccli/services/soe/v20180724/api.json +13 -13
  168. tccli/services/sqlserver/sqlserver_client.py +110 -57
  169. tccli/services/sqlserver/v20180328/api.json +109 -0
  170. tccli/services/sqlserver/v20180328/examples.json +9 -1
  171. tccli/services/ssl/v20191205/examples.json +7 -1
  172. tccli/services/tione/v20211111/api.json +61 -4
  173. tccli/services/tione/v20211111/examples.json +1 -1
  174. tccli/services/trtc/v20190722/api.json +79 -10
  175. tccli/services/wedata/v20210820/api.json +295 -1437
  176. tccli/services/wedata/v20210820/examples.json +0 -88
  177. tccli/services/wedata/wedata_client.py +33 -616
  178. {tccli-3.0.1090.1.dist-info → tccli-3.0.1092.1.dist-info}/METADATA +2 -2
  179. {tccli-3.0.1090.1.dist-info → tccli-3.0.1092.1.dist-info}/RECORD +182 -95
  180. {tccli-3.0.1090.1.dist-info → tccli-3.0.1092.1.dist-info}/WHEEL +0 -0
  181. {tccli-3.0.1090.1.dist-info → tccli-3.0.1092.1.dist-info}/entry_points.txt +0 -0
  182. {tccli-3.0.1090.1.dist-info → tccli-3.0.1092.1.dist-info}/license_files/LICENSE +0 -0
@@ -2669,58 +2669,6 @@ def doDeleteRestoreTask(args, parsed_globals):
2669
2669
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2670
2670
 
2671
2671
 
2672
- def doCompleteMigration(args, parsed_globals):
2673
- g_param = parse_global_arg(parsed_globals)
2674
-
2675
- if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2676
- cred = credential.CVMRoleCredential()
2677
- elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2678
- cred = credential.STSAssumeRoleCredential(
2679
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2680
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2681
- )
2682
- 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):
2683
- cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2684
- else:
2685
- cred = credential.Credential(
2686
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2687
- )
2688
- http_profile = HttpProfile(
2689
- reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2690
- reqMethod="POST",
2691
- endpoint=g_param[OptionsDefine.Endpoint],
2692
- proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2693
- )
2694
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2695
- if g_param[OptionsDefine.Language]:
2696
- profile.language = g_param[OptionsDefine.Language]
2697
- mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2698
- client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
2699
- client._sdkVersion += ("_CLI_" + __version__)
2700
- models = MODELS_MAP[g_param[OptionsDefine.Version]]
2701
- model = models.CompleteMigrationRequest()
2702
- model.from_json_string(json.dumps(args))
2703
- start_time = time.time()
2704
- while True:
2705
- rsp = client.CompleteMigration(model)
2706
- result = rsp.to_json_string()
2707
- try:
2708
- json_obj = json.loads(result)
2709
- except TypeError as e:
2710
- json_obj = json.loads(result.decode('utf-8')) # python3.3
2711
- if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2712
- break
2713
- cur_time = time.time()
2714
- if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2715
- raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2716
- (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2717
- search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2718
- else:
2719
- print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2720
- time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2721
- FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2722
-
2723
-
2724
2672
  def doDescribeProjectSecurityGroups(args, parsed_globals):
2725
2673
  g_param = parse_global_arg(parsed_globals)
2726
2674
 
@@ -3865,6 +3813,58 @@ def doModifyInstanceParam(args, parsed_globals):
3865
3813
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3866
3814
 
3867
3815
 
3816
+ def doDescribeRestoreTimeRange(args, parsed_globals):
3817
+ g_param = parse_global_arg(parsed_globals)
3818
+
3819
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3820
+ cred = credential.CVMRoleCredential()
3821
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3822
+ cred = credential.STSAssumeRoleCredential(
3823
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3824
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
3825
+ )
3826
+ 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):
3827
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3828
+ else:
3829
+ cred = credential.Credential(
3830
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3831
+ )
3832
+ http_profile = HttpProfile(
3833
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3834
+ reqMethod="POST",
3835
+ endpoint=g_param[OptionsDefine.Endpoint],
3836
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3837
+ )
3838
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3839
+ if g_param[OptionsDefine.Language]:
3840
+ profile.language = g_param[OptionsDefine.Language]
3841
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3842
+ client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
3843
+ client._sdkVersion += ("_CLI_" + __version__)
3844
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
3845
+ model = models.DescribeRestoreTimeRangeRequest()
3846
+ model.from_json_string(json.dumps(args))
3847
+ start_time = time.time()
3848
+ while True:
3849
+ rsp = client.DescribeRestoreTimeRange(model)
3850
+ result = rsp.to_json_string()
3851
+ try:
3852
+ json_obj = json.loads(result)
3853
+ except TypeError as e:
3854
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
3855
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
3856
+ break
3857
+ cur_time = time.time()
3858
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
3859
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
3860
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
3861
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
3862
+ else:
3863
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
3864
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
3865
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3866
+
3867
+
3868
3868
  def doDescribeSlowlogs(args, parsed_globals):
3869
3869
  g_param = parse_global_arg(parsed_globals)
3870
3870
 
@@ -4437,6 +4437,58 @@ def doDescribeBusinessIntelligenceFile(args, parsed_globals):
4437
4437
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4438
4438
 
4439
4439
 
4440
+ def doStartBackupMigration(args, parsed_globals):
4441
+ g_param = parse_global_arg(parsed_globals)
4442
+
4443
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
4444
+ cred = credential.CVMRoleCredential()
4445
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4446
+ cred = credential.STSAssumeRoleCredential(
4447
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4448
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4449
+ )
4450
+ 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):
4451
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4452
+ else:
4453
+ cred = credential.Credential(
4454
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
4455
+ )
4456
+ http_profile = HttpProfile(
4457
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
4458
+ reqMethod="POST",
4459
+ endpoint=g_param[OptionsDefine.Endpoint],
4460
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4461
+ )
4462
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4463
+ if g_param[OptionsDefine.Language]:
4464
+ profile.language = g_param[OptionsDefine.Language]
4465
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4466
+ client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
4467
+ client._sdkVersion += ("_CLI_" + __version__)
4468
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4469
+ model = models.StartBackupMigrationRequest()
4470
+ model.from_json_string(json.dumps(args))
4471
+ start_time = time.time()
4472
+ while True:
4473
+ rsp = client.StartBackupMigration(model)
4474
+ result = rsp.to_json_string()
4475
+ try:
4476
+ json_obj = json.loads(result)
4477
+ except TypeError as e:
4478
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4479
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4480
+ break
4481
+ cur_time = time.time()
4482
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4483
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4484
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4485
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4486
+ else:
4487
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4488
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4489
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4490
+
4491
+
4440
4492
  def doAssociateSecurityGroups(args, parsed_globals):
4441
4493
  g_param = parse_global_arg(parsed_globals)
4442
4494
 
@@ -6985,7 +7037,7 @@ def doModifyBackupMigration(args, parsed_globals):
6985
7037
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
6986
7038
 
6987
7039
 
6988
- def doStartBackupMigration(args, parsed_globals):
7040
+ def doCompleteMigration(args, parsed_globals):
6989
7041
  g_param = parse_global_arg(parsed_globals)
6990
7042
 
6991
7043
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -7014,11 +7066,11 @@ def doStartBackupMigration(args, parsed_globals):
7014
7066
  client = mod.SqlserverClient(cred, g_param[OptionsDefine.Region], profile)
7015
7067
  client._sdkVersion += ("_CLI_" + __version__)
7016
7068
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
7017
- model = models.StartBackupMigrationRequest()
7069
+ model = models.CompleteMigrationRequest()
7018
7070
  model.from_json_string(json.dumps(args))
7019
7071
  start_time = time.time()
7020
7072
  while True:
7021
- rsp = client.StartBackupMigration(model)
7073
+ rsp = client.CompleteMigration(model)
7022
7074
  result = rsp.to_json_string()
7023
7075
  try:
7024
7076
  json_obj = json.loads(result)
@@ -7619,7 +7671,6 @@ ACTION_MAP = {
7619
7671
  "BalanceReadOnlyGroup": doBalanceReadOnlyGroup,
7620
7672
  "ModifyDatabaseCDC": doModifyDatabaseCDC,
7621
7673
  "DeleteRestoreTask": doDeleteRestoreTask,
7622
- "CompleteMigration": doCompleteMigration,
7623
7674
  "DescribeProjectSecurityGroups": doDescribeProjectSecurityGroups,
7624
7675
  "CreateAccount": doCreateAccount,
7625
7676
  "StopMigration": doStopMigration,
@@ -7642,6 +7693,7 @@ ACTION_MAP = {
7642
7693
  "ModifyDatabaseShrinkMDF": doModifyDatabaseShrinkMDF,
7643
7694
  "ResetAccountPassword": doResetAccountPassword,
7644
7695
  "ModifyInstanceParam": doModifyInstanceParam,
7696
+ "DescribeRestoreTimeRange": doDescribeRestoreTimeRange,
7645
7697
  "DescribeSlowlogs": doDescribeSlowlogs,
7646
7698
  "DescribeUploadIncrementalInfo": doDescribeUploadIncrementalInfo,
7647
7699
  "StartMigrationCheck": doStartMigrationCheck,
@@ -7653,6 +7705,7 @@ ACTION_MAP = {
7653
7705
  "CreateBackupMigration": doCreateBackupMigration,
7654
7706
  "DescribeDBInstances": doDescribeDBInstances,
7655
7707
  "DescribeBusinessIntelligenceFile": doDescribeBusinessIntelligenceFile,
7708
+ "StartBackupMigration": doStartBackupMigration,
7656
7709
  "AssociateSecurityGroups": doAssociateSecurityGroups,
7657
7710
  "OpenInterCommunication": doOpenInterCommunication,
7658
7711
  "CreateIncrementalMigration": doCreateIncrementalMigration,
@@ -7702,7 +7755,7 @@ ACTION_MAP = {
7702
7755
  "InquiryPriceRenewDBInstance": doInquiryPriceRenewDBInstance,
7703
7756
  "DescribeXEvents": doDescribeXEvents,
7704
7757
  "ModifyBackupMigration": doModifyBackupMigration,
7705
- "StartBackupMigration": doStartBackupMigration,
7758
+ "CompleteMigration": doCompleteMigration,
7706
7759
  "DescribeAccountPrivilegeByDB": doDescribeAccountPrivilegeByDB,
7707
7760
  "DescribeProductSpec": doDescribeProductSpec,
7708
7761
  "DescribeBackupByFlowId": doDescribeBackupByFlowId,
@@ -574,6 +574,13 @@
574
574
  "output": "DescribeRestoreTaskResponse",
575
575
  "status": "online"
576
576
  },
577
+ "DescribeRestoreTimeRange": {
578
+ "document": "本接口(DescribeRestoreTimeRange)用于查询按照时间点可回档的时间范围。",
579
+ "input": "DescribeRestoreTimeRangeRequest",
580
+ "name": "查询按照时间点可回档的时间范围",
581
+ "output": "DescribeRestoreTimeRangeResponse",
582
+ "status": "online"
583
+ },
577
584
  "DescribeRollbackTime": {
578
585
  "document": "本接口(DescribeRollbackTime)用于查询实例可回档时间范围",
579
586
  "input": "DescribeRollbackTimeRequest",
@@ -7601,6 +7608,16 @@
7601
7608
  "type": "object",
7602
7609
  "value_allowed_null": false
7603
7610
  },
7611
+ {
7612
+ "disabled": false,
7613
+ "document": "等待回收的IP列表",
7614
+ "example": "[{\"Vip\":\"127.0.0.1\",\"RecycleTime\":\"2024-03-26 12:28:41\"}],]",
7615
+ "member": "OldVip",
7616
+ "name": "OldVipList",
7617
+ "output_required": true,
7618
+ "type": "list",
7619
+ "value_allowed_null": false
7620
+ },
7604
7621
  {
7605
7622
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
7606
7623
  "member": "string",
@@ -10634,6 +10651,62 @@
10634
10651
  ],
10635
10652
  "type": "object"
10636
10653
  },
10654
+ "DescribeRestoreTimeRangeRequest": {
10655
+ "document": "DescribeRestoreTimeRange请求参数结构体",
10656
+ "members": [
10657
+ {
10658
+ "disabled": false,
10659
+ "document": "实例ID",
10660
+ "example": "mssql-j8kv137v",
10661
+ "member": "string",
10662
+ "name": "InstanceId",
10663
+ "required": true,
10664
+ "type": "string"
10665
+ },
10666
+ {
10667
+ "disabled": false,
10668
+ "document": "回档的目标实例ID,不填默认回档到原实例",
10669
+ "example": "mssql-dj5i29c5n",
10670
+ "member": "string",
10671
+ "name": "TargetInstanceId",
10672
+ "required": false,
10673
+ "type": "string"
10674
+ }
10675
+ ],
10676
+ "type": "object"
10677
+ },
10678
+ "DescribeRestoreTimeRangeResponse": {
10679
+ "document": "DescribeRestoreTimeRange返回参数结构体",
10680
+ "members": [
10681
+ {
10682
+ "disabled": false,
10683
+ "document": "按照时间点可回档的最小时间",
10684
+ "example": "2024-01-01 00:00:00",
10685
+ "member": "string",
10686
+ "name": "MinTime",
10687
+ "output_required": true,
10688
+ "type": "string",
10689
+ "value_allowed_null": false
10690
+ },
10691
+ {
10692
+ "disabled": false,
10693
+ "document": "按照时间点可回档的最大时间",
10694
+ "example": "2024-01-07 00:00:00",
10695
+ "member": "string",
10696
+ "name": "MaxTime",
10697
+ "output_required": true,
10698
+ "type": "string",
10699
+ "value_allowed_null": false
10700
+ },
10701
+ {
10702
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
10703
+ "member": "string",
10704
+ "name": "RequestId",
10705
+ "type": "string"
10706
+ }
10707
+ ],
10708
+ "type": "object"
10709
+ },
10637
10710
  "DescribeRollbackTimeRequest": {
10638
10711
  "document": "DescribeRollbackTime请求参数结构体",
10639
10712
  "members": [
@@ -14615,6 +14688,42 @@
14615
14688
  ],
14616
14689
  "type": "object"
14617
14690
  },
14691
+ "OldVip": {
14692
+ "document": "用于返回实例存在的未回收的ip数量",
14693
+ "members": [
14694
+ {
14695
+ "disabled": false,
14696
+ "document": "未回收的旧ip",
14697
+ "example": "127.0.0.1",
14698
+ "member": "string",
14699
+ "name": "Vip",
14700
+ "output_required": true,
14701
+ "type": "string",
14702
+ "value_allowed_null": false
14703
+ },
14704
+ {
14705
+ "disabled": false,
14706
+ "document": "ip回收时间",
14707
+ "example": "2024-03-26 12:28:41",
14708
+ "member": "string",
14709
+ "name": "RecycleTime",
14710
+ "output_required": true,
14711
+ "type": "string",
14712
+ "value_allowed_null": false
14713
+ },
14714
+ {
14715
+ "disabled": false,
14716
+ "document": "旧IP保留时间小时数\n注意:此字段可能返回 null,表示取不到有效值。",
14717
+ "example": "1",
14718
+ "member": "int64",
14719
+ "name": "OldIpRetainTime",
14720
+ "output_required": true,
14721
+ "type": "int",
14722
+ "value_allowed_null": true
14723
+ }
14724
+ ],
14725
+ "usage": "out"
14726
+ },
14618
14727
  "OpenInterCommunicationRequest": {
14619
14728
  "document": "OpenInterCommunication请求参数结构体",
14620
14729
  "members": [
@@ -412,7 +412,7 @@
412
412
  {
413
413
  "document": "查询实例附属属性",
414
414
  "input": "POST / HTTP/1.1\nHost: sqlserver.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDBInstancesAttribute\n<公共请求参数>\n\n{\n \"InstanceId\": \"mssql-j8kv137v\"\n}",
415
- "output": "{\n \"Response\": {\n \"BlockedThreshold\": 0,\n \"EventSaveDays\": 7,\n \"InstanceId\": \"mssql-j8kv137v\",\n \"RegularBackupCounts\": 0,\n \"RegularBackupEnable\": \"disable\",\n \"RegularBackupSaveDays\": 0,\n \"RegularBackupStartTime\": \"\",\n \"RegularBackupStrategy\": \"months\",\n \"RequestId\": \"9db13c19-d660-43c4-b340-7ba86b7b1470\",\n \"SSLConfig\": {\n \"Encryption\": \"disable\",\n \"SSLValidity\": 0,\n \"SSLValidityPeriod\": \"0000-00-00 00:00:00\"\n },\n \"TDEConfig\": {\n \"CertificateAttribution\": \"self\",\n \"Encryption\": \"disable\",\n \"QuoteUin\": \"\"\n },\n \"DrReadableInfo\": {\n \"SlaveStatus\": \"enable\",\n \"ReadableStatus\": \"enable\",\n \"Vip\": \"127.0.0.1\",\n \"VPort\": 1433,\n \"UniqVpcId\": \"vpc-h8a9j18\",\n \"UniqSubnetId\": \"sub-jia891k9\"\n }\n }\n}",
415
+ "output": "{\n \"Response\": {\n \"BlockedThreshold\": 0,\n \"EventSaveDays\": 7,\n \"InstanceId\": \"mssql-j8kv137v\",\n \"RegularBackupCounts\": 0,\n \"RegularBackupEnable\": \"disable\",\n \"RegularBackupSaveDays\": 0,\n \"RegularBackupStartTime\": \"\",\n \"RegularBackupStrategy\": \"months\",\n \"RequestId\": \"9db13c19-d660-43c4-b340-7ba86b7b1470\",\n \"SSLConfig\": {\n \"Encryption\": \"disable\",\n \"SSLValidity\": 0,\n \"SSLValidityPeriod\": \"0000-00-00 00:00:00\"\n },\n \"TDEConfig\": {\n \"CertificateAttribution\": \"self\",\n \"Encryption\": \"disable\",\n \"QuoteUin\": \"\"\n },\n \"DrReadableInfo\": {\n \"SlaveStatus\": \"enable\",\n \"ReadableStatus\": \"enable\",\n \"Vip\": \"127.0.0.1\",\n \"VPort\": 1433,\n \"UniqVpcId\": \"vpc-h8a9j18\",\n \"UniqSubnetId\": \"sub-jia891k9\"\n },\n \"OldVipList\": [\n {\n \"Vip\": \"127.0.0.1\",\n \"RecycleTime\": \"2024-03-26 12:28:41\"\n }\n ]\n }\n}",
416
416
  "title": "查询实例mssql-j8kv137v的附属属性"
417
417
  }
418
418
  ],
@@ -680,6 +680,14 @@
680
680
  "title": "查询回档任务列表"
681
681
  }
682
682
  ],
683
+ "DescribeRestoreTimeRange": [
684
+ {
685
+ "document": "本接口(DescribeRestoreTimeRange)用于查询按照时间点可回档的时间范围。",
686
+ "input": "POST / HTTP/1.1\nHost: sqlserver.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRestoreTimeRange\n<公共请求参数>\n\n{\n \"InstanceId\": \"mssql-aj89iq78\",\n \"TargetInstanceId\": \"mssql-jkoa09sf\"\n}",
687
+ "output": "{\n \"Response\": {\n \"MinTime\": \"2024-01-01 00:00:00\",\n \"MaxTime\": \"2024-01-07 00:00:00\",\n \"RequestId\": \"cd7a35be-2fbf-f3a6-210a-ea9afe158817\"\n }\n}",
688
+ "title": "查询按照时间点可回档的时间范围。"
689
+ }
690
+ ],
683
691
  "DescribeRollbackTime": [
684
692
  {
685
693
  "document": "",
@@ -97,9 +97,15 @@
97
97
  "DeployCertificateInstance": [
98
98
  {
99
99
  "document": "证书部署到clb云资源实例列表, 若部署的监听器开启了SNI,则InstanceIdList传参需要到域名, 若未开启SNI, InstanceIdList只需要到监听器",
100
- "input": "POST / HTTP/1.1\nHost: ssl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeployCertificateInstance\n<公共请求参数>\n\n{\n \"CertificateId\": \"vyRlKIeI\",\n \"InstanceIdList\": [\n \"lb-pk278gkq|lbl-2yju432e\",\n \"lb-mmgz14kg|lbl-5q6yn03o|asdasd.ninghhuang.top\"\n ]\n}",
100
+ "input": "POST / HTTP/1.1\nHost: ssl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeployCertificateInstance\n<公共请求参数>\n\n{\n \"CertificateId\": \"vyRlKIeI\",\n \"InstanceIdList\": [\n \"lb-pk278gkq|lbl-2yju432e\",\n \"lb-mmgz14kg|lbl-5q6yn03o|clb1.ninghhuang.top\"\n ],\n \"ResourceType\": \"clb\"\n}",
101
101
  "output": "{\n \"Response\": {\n \"DeployRecordId\": 1,\n \"DeployStatus\": 0,\n \"RequestId\": \"abc\"\n }\n}",
102
102
  "title": "证书部署到clb云资源实例列表"
103
+ },
104
+ {
105
+ "document": "证书部署到cdn云资源域名列表",
106
+ "input": "POST / HTTP/1.1\nHost: ssl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeployCertificateInstance\n<公共请求参数>\n\n{\n \"CertificateId\": \"vyRlKIeI\",\n \"InstanceIdList\": [\n \"cdn1.ninghhuang.top\",\n \"cdn2.ninghhuang.top\"\n ],\n \"ResourceType\": \"cdn\"\n}",
107
+ "output": "{\n \"Response\": {\n \"DeployRecordId\": 1,\n \"DeployStatus\": 0,\n \"RequestId\": \"abc\"\n }\n}",
108
+ "title": "证书部署到cdn云资源实例列表"
103
109
  }
104
110
  ],
105
111
  "DeployCertificateRecordRetry": [
@@ -1925,7 +1925,7 @@
1925
1925
  "type": "object"
1926
1926
  },
1927
1927
  {
1928
- "disabled": false,
1928
+ "disabled": true,
1929
1929
  "document": "启动命令",
1930
1930
  "example": "sh start.sh",
1931
1931
  "member": "string",
@@ -1986,6 +1986,15 @@
1986
1986
  "name": "CallbackUrl",
1987
1987
  "required": false,
1988
1988
  "type": "string"
1989
+ },
1990
+ {
1991
+ "disabled": false,
1992
+ "document": "以Base64方式编码的启动命令。假设启动命令是/app/run.sh,则此处输入参数应该为L2FwcC9ydW4uc2g=。",
1993
+ "example": "L2FwcC9ydW4uc2g=",
1994
+ "member": "string",
1995
+ "name": "StartCmdBase64",
1996
+ "required": false,
1997
+ "type": "string"
1989
1998
  }
1990
1999
  ],
1991
2000
  "type": "object"
@@ -2404,7 +2413,7 @@
2404
2413
  },
2405
2414
  {
2406
2415
  "disabled": false,
2407
- "document": "服务的启动命令",
2416
+ "document": "服务的启动命令,如遇特殊字符导致配置失败,可使用CommandBase64参数",
2408
2417
  "example": "无",
2409
2418
  "member": "string",
2410
2419
  "name": "Command",
@@ -2419,6 +2428,15 @@
2419
2428
  "name": "ServiceEIP",
2420
2429
  "required": false,
2421
2430
  "type": "object"
2431
+ },
2432
+ {
2433
+ "disabled": false,
2434
+ "document": "服务的启动命令,以base64格式进行输入",
2435
+ "example": "无",
2436
+ "member": "string",
2437
+ "name": "CommandBase64",
2438
+ "required": false,
2439
+ "type": "string"
2422
2440
  }
2423
2441
  ],
2424
2442
  "type": "object"
@@ -3193,7 +3211,7 @@
3193
3211
  },
3194
3212
  {
3195
3213
  "disabled": false,
3196
- "document": "启动命令信息,默认为sh start.sh",
3214
+ "document": "任务的启动命令,按任务训练模式输入,如遇特殊字符导致配置失败,可使用EncodedStartCmdInfo参数",
3197
3215
  "example": "无",
3198
3216
  "member": "StartCmdInfo",
3199
3217
  "name": "StartCmdInfo",
@@ -3307,6 +3325,15 @@
3307
3325
  "name": "PreTrainModel",
3308
3326
  "required": false,
3309
3327
  "type": "object"
3328
+ },
3329
+ {
3330
+ "disabled": false,
3331
+ "document": "编码后的任务启动命令,与StartCmdInfo同时配置时,仅当前参数生效",
3332
+ "example": "无",
3333
+ "member": "EncodedStartCmdInfo",
3334
+ "name": "EncodedStartCmdInfo",
3335
+ "required": false,
3336
+ "type": "object"
3310
3337
  }
3311
3338
  ],
3312
3339
  "type": "object"
@@ -7300,6 +7327,21 @@
7300
7327
  ],
7301
7328
  "usage": "out"
7302
7329
  },
7330
+ "EncodedStartCmdInfo": {
7331
+ "document": "编码后的启动命令信息",
7332
+ "members": [
7333
+ {
7334
+ "disabled": false,
7335
+ "document": "任务的启动命令,以base64格式输入,注意转换时需要完整输入{\"StartCmd\":\"\",\"PsStartCmd\":\"\",\"WorkerStartCmd\":\"\"}",
7336
+ "example": "无",
7337
+ "member": "string",
7338
+ "name": "StartCmdInfo",
7339
+ "required": false,
7340
+ "type": "string"
7341
+ }
7342
+ ],
7343
+ "usage": "in"
7344
+ },
7303
7345
  "EngineVersion": {
7304
7346
  "document": "引擎版本",
7305
7347
  "members": [
@@ -9695,7 +9737,7 @@
9695
9737
  },
9696
9738
  {
9697
9739
  "disabled": false,
9698
- "document": "服务的启动命令",
9740
+ "document": "服务的启动命令,如遇特殊字符导致配置失败,可使用CommandBase64参数",
9699
9741
  "example": "无",
9700
9742
  "member": "string",
9701
9743
  "name": "Command",
@@ -9710,6 +9752,15 @@
9710
9752
  "name": "ServiceEIP",
9711
9753
  "required": false,
9712
9754
  "type": "object"
9755
+ },
9756
+ {
9757
+ "disabled": false,
9758
+ "document": "服务的启动命令,以base64格式进行输入",
9759
+ "example": "无",
9760
+ "member": "string",
9761
+ "name": "CommandBase64",
9762
+ "required": false,
9763
+ "type": "string"
9713
9764
  }
9714
9765
  ],
9715
9766
  "type": "object"
@@ -11492,6 +11543,7 @@
11492
11543
  "example": "1000",
11493
11544
  "member": "uint64",
11494
11545
  "name": "Cpu",
11546
+ "output_required": true,
11495
11547
  "required": true,
11496
11548
  "type": "int",
11497
11549
  "value_allowed_null": true
@@ -11502,6 +11554,7 @@
11502
11554
  "example": "256",
11503
11555
  "member": "uint64",
11504
11556
  "name": "Memory",
11557
+ "output_required": true,
11505
11558
  "required": true,
11506
11559
  "type": "int",
11507
11560
  "value_allowed_null": true
@@ -11512,6 +11565,7 @@
11512
11565
  "example": "100",
11513
11566
  "member": "uint64",
11514
11567
  "name": "Gpu",
11568
+ "output_required": true,
11515
11569
  "required": false,
11516
11570
  "type": "int",
11517
11571
  "value_allowed_null": true
@@ -11522,6 +11576,7 @@
11522
11576
  "example": "none",
11523
11577
  "member": "string",
11524
11578
  "name": "GpuType",
11579
+ "output_required": true,
11525
11580
  "required": false,
11526
11581
  "type": "string",
11527
11582
  "value_allowed_null": true
@@ -11532,6 +11587,7 @@
11532
11587
  "example": "50",
11533
11588
  "member": "uint64",
11534
11589
  "name": "RealGpu",
11590
+ "output_required": true,
11535
11591
  "required": false,
11536
11592
  "type": "int",
11537
11593
  "value_allowed_null": false
@@ -11542,6 +11598,7 @@
11542
11598
  "example": "{}",
11543
11599
  "member": "GpuDetail",
11544
11600
  "name": "RealGpuDetailSet",
11601
+ "output_required": true,
11545
11602
  "required": false,
11546
11603
  "type": "list",
11547
11604
  "value_allowed_null": false
@@ -19,7 +19,7 @@
19
19
  "CreateBatchTask": [
20
20
  {
21
21
  "document": "批量预测示例请求",
22
- "input": "POST / HTTP/1.1\nHost: tione.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateBatchTask\n<公共请求参数>\n\n{\n \"BatchTaskName\": \"task-xx\",\n \"ChargeType\": \"POSTPAID_BY_HOUR\",\n \"ResourceGroupId\": \"trsg-c7xxxx\",\n \"ResourceConfigInfo\": {\n \"Role\": \"WORKER\",\n \"Cpu\": 1,\n \"Memory\": 1,\n \"GpuType\": \"A\",\n \"Gpu\": 1,\n \"InstanceType\": \"TI.S.LARGE.POST-XXX\",\n \"InstanceNum\": 1\n },\n \"Tags\": [\n {\n \"TagKey\": \"abc\",\n \"TagValue\": \"def\"\n }\n ],\n \"ModelInfo\": {\n \"ModelId\": \"abc-id\",\n \"ModelName\": \"Pytorch\",\n \"ModelVersionId\": \"mv-v2-abcdef\",\n \"ModelVersion\": \"v2\",\n \"ModelSource\": \"cos\",\n \"CosPathInfo\": {\n \"Bucket\": \"test-sh-123\",\n \"Region\": \"ap-shanghai\",\n \"Paths\": [\n \"test/model\"\n ]\n },\n \"AlgorithmFramework\": \"torch\",\n \"ModelType\": \"ACCELERATE\"\n },\n \"ImageInfo\": {\n \"ImageType\": \"CCR\",\n \"ImageUrl\": \"ccr.tencentyun.com/a/b/c\",\n \"RegistryRegion\": \"\",\n \"RegistryId\": \"\"\n },\n \"CodePackage\": {\n \"Bucket\": \"testbkt-1234\",\n \"Region\": \"ap-shanghai\",\n \"Paths\": [\n \"test/model/code_Path\"\n ]\n },\n \"StartCmd\": \"python3 /opt/ml/code/model_service.py\",\n \"DataConfigs\": [\n {\n \"MappingPath\": \"\",\n \"DataSourceType\": \"\",\n \"DataSetSource\": {\n \"Id\": \"12345678\"\n },\n \"COSSource\": {\n \"Bucket\": \"test-bkt-1234\",\n \"Region\": \"ap-shanghai\",\n \"Paths\": [\n \"test/data/\"\n ]\n },\n \"CFSSource\": {\n \"Id\": \"12345\",\n \"Path\": \"/data\"\n },\n \"HDFSSource\": {\n \"Id\": \"12345\",\n \"Path\": \"test/hdfs_path/\"\n }\n }\n ],\n \"Outputs\": [\n {\n \"MappingPath\": \"\",\n \"DataSourceType\": \"cos\",\n \"DataSetSource\": {\n \"Id\": \"ds-12345-xx\"\n },\n \"COSSource\": {\n \"Bucket\": \"testbkt-12345\",\n \"Region\": \"ap-shanghai\",\n \"Paths\": [\n \"tests/outputs/\"\n ]\n },\n \"CFSSource\": {\n \"Id\": \"\",\n \"Path\": \"\"\n },\n \"HDFSSource\": {\n \"Id\": \"\",\n \"Path\": \"\"\n }\n }\n ],\n \"LogEnable\": true,\n \"LogConfig\": {\n \"LogsetId\": \"123456\",\n \"TopicId\": \"topic-12345\"\n },\n \"VpcId\": \"12345\",\n \"SubnetId\": \"12345\",\n \"Remark\": \"\",\n \"CallbackUrl\": \"\"\n}",
22
+ "input": "POST / HTTP/1.1\nHost: tione.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateBatchTask\n<公共请求参数>\n\n{\n \"BatchTaskName\": \"task-xx\",\n \"ChargeType\": \"POSTPAID_BY_HOUR\",\n \"ResourceGroupId\": \"trsg-c7xxxx\",\n \"ResourceConfigInfo\": {\n \"Role\": \"WORKER\",\n \"Cpu\": 1,\n \"Memory\": 1,\n \"GpuType\": \"A\",\n \"Gpu\": 1,\n \"InstanceType\": \"TI.S.LARGE.POST-XXX\",\n \"InstanceNum\": 1\n },\n \"Tags\": [\n {\n \"TagKey\": \"abc\",\n \"TagValue\": \"def\"\n }\n ],\n \"ModelInfo\": {\n \"ModelId\": \"abc-id\",\n \"ModelName\": \"Pytorch\",\n \"ModelVersionId\": \"mv-v2-abcdef\",\n \"ModelVersion\": \"v2\",\n \"ModelSource\": \"cos\",\n \"CosPathInfo\": {\n \"Bucket\": \"test-sh-123\",\n \"Region\": \"ap-shanghai\",\n \"Paths\": [\n \"test/model\"\n ]\n },\n \"AlgorithmFramework\": \"torch\",\n \"ModelType\": \"ACCELERATE\"\n },\n \"ImageInfo\": {\n \"ImageType\": \"CCR\",\n \"ImageUrl\": \"ccr.tencentyun.com/a/b/c\",\n \"RegistryRegion\": \"\",\n \"RegistryId\": \"\"\n },\n \"CodePackage\": {\n \"Bucket\": \"testbkt-1234\",\n \"Region\": \"ap-shanghai\",\n \"Paths\": [\n \"test/model/code_Path\"\n ]\n },\n \"StartCmd\": \"python3 /opt/ml/code/model_service.py\",\n \"StartCmdBase64\": \"L2FwcC9ydW4uc2g=\",\n \"DataConfigs\": [\n {\n \"MappingPath\": \"\",\n \"DataSourceType\": \"\",\n \"DataSetSource\": {\n \"Id\": \"12345678\"\n },\n \"COSSource\": {\n \"Bucket\": \"test-bkt-1234\",\n \"Region\": \"ap-shanghai\",\n \"Paths\": [\n \"test/data/\"\n ]\n },\n \"CFSSource\": {\n \"Id\": \"12345\",\n \"Path\": \"/data\"\n },\n \"HDFSSource\": {\n \"Id\": \"12345\",\n \"Path\": \"test/hdfs_path/\"\n }\n }\n ],\n \"Outputs\": [\n {\n \"MappingPath\": \"\",\n \"DataSourceType\": \"cos\",\n \"DataSetSource\": {\n \"Id\": \"ds-12345-xx\"\n },\n \"COSSource\": {\n \"Bucket\": \"testbkt-12345\",\n \"Region\": \"ap-shanghai\",\n \"Paths\": [\n \"tests/outputs/\"\n ]\n },\n \"CFSSource\": {\n \"Id\": \"\",\n \"Path\": \"\"\n },\n \"HDFSSource\": {\n \"Id\": \"\",\n \"Path\": \"\"\n }\n }\n ],\n \"LogEnable\": true,\n \"LogConfig\": {\n \"LogsetId\": \"123456\",\n \"TopicId\": \"topic-12345\"\n },\n \"VpcId\": \"12345\",\n \"SubnetId\": \"12345\",\n \"Remark\": \"\",\n \"CallbackUrl\": \"\"\n}",
23
23
  "output": "{\n \"Response\": {\n \"BatchTaskId\": \"task-123-xx\",\n \"RequestId\": \"abcdef-1234\"\n }\n}",
24
24
  "title": "CreateBatchTask"
25
25
  }