tccli 3.0.1091.1__py2.py3-none-any.whl → 3.0.1093.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 (161) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/cdb/v20170320/CheckMigrateCluster.md +18 -0
  3. tccli/examples/cdb/v20170320/DescribeClusterInfo.md +59 -0
  4. tccli/examples/domain/v20180808/BidPreDomains.md +21 -0
  5. tccli/examples/domain/v20180808/DescribeReservedBidInfo.md +43 -0
  6. tccli/examples/domain/v20180808/DescribeReservedPreDomainInfo.md +31 -0
  7. tccli/examples/es/v20180416/UpdateInstance.md +27 -27
  8. tccli/examples/es/v20180416/UpdatePlugins.md +6 -6
  9. tccli/examples/ess/v20201111/CreateBatchOrganizationRegistrationTasks.md +146 -0
  10. tccli/examples/ess/v20201111/CreateOrganizationAuthUrl.md +28 -0
  11. tccli/examples/ess/v20201111/CreateOrganizationBatchSignUrl.md +28 -0
  12. tccli/examples/hunyuan/v20230901/ChatPro.md +69 -31
  13. tccli/examples/hunyuan/v20230901/ChatStd.md +40 -1
  14. tccli/examples/lke/v20231130/CheckAttributeLabelExist.md +24 -0
  15. tccli/examples/lke/v20231130/CheckAttributeLabelRefer.md +23 -0
  16. tccli/examples/lke/v20231130/CreateApp.md +24 -0
  17. tccli/examples/lke/v20231130/CreateAttributeLabel.md +24 -0
  18. tccli/examples/lke/v20231130/CreateCorp.md +24 -0
  19. tccli/examples/lke/v20231130/CreateQA.md +24 -0
  20. tccli/examples/lke/v20231130/CreateQACate.md +26 -0
  21. tccli/examples/lke/v20231130/CreateRejectedQuestion.md +22 -0
  22. tccli/examples/lke/v20231130/CreateRelease.md +21 -0
  23. tccli/examples/lke/v20231130/DeleteApp.md +21 -0
  24. tccli/examples/lke/v20231130/DeleteAttributeLabel.md +21 -0
  25. tccli/examples/lke/v20231130/DeleteDoc.md +21 -0
  26. tccli/examples/lke/v20231130/DeleteQA.md +21 -0
  27. tccli/examples/lke/v20231130/DeleteQACate.md +21 -0
  28. tccli/examples/lke/v20231130/DeleteRejectedQuestion.md +21 -0
  29. tccli/examples/lke/v20231130/DescribeApp.md +29 -0
  30. tccli/examples/lke/v20231130/DescribeAttributeLabel.md +28 -0
  31. tccli/examples/lke/v20231130/DescribeCorp.md +21 -0
  32. tccli/examples/lke/v20231130/DescribeDoc.md +44 -0
  33. tccli/examples/lke/v20231130/DescribeQA.md +42 -0
  34. tccli/examples/lke/v20231130/DescribeRefer.md +35 -0
  35. tccli/examples/lke/v20231130/DescribeRelease.md +25 -0
  36. tccli/examples/lke/v20231130/DescribeReleaseInfo.md +24 -0
  37. tccli/examples/lke/v20231130/DescribeRobotBizIDByAppKey.md +21 -0
  38. tccli/examples/lke/v20231130/DescribeStorageCredential.md +32 -0
  39. tccli/examples/lke/v20231130/DescribeUnsatisfiedReplyContext.md +121 -0
  40. tccli/examples/lke/v20231130/ExportAttributeLabel.md +21 -0
  41. tccli/examples/lke/v20231130/ExportQAList.md +21 -0
  42. tccli/examples/lke/v20231130/ExportUnsatisfiedReply.md +21 -0
  43. tccli/examples/lke/v20231130/GenerateQA.md +21 -0
  44. tccli/examples/lke/v20231130/GetAppKnowledgeCount.md +22 -0
  45. tccli/examples/lke/v20231130/GetAppSecret.md +24 -0
  46. tccli/examples/lke/v20231130/GetDocPreview.md +26 -0
  47. tccli/examples/lke/v20231130/GetEmbedding.md +29 -0
  48. tccli/examples/lke/v20231130/GetMsgRecord.md +51 -0
  49. tccli/examples/lke/v20231130/GetTaskStatus.md +0 -0
  50. tccli/examples/lke/v20231130/GetWsToken.md +44 -0
  51. tccli/examples/lke/v20231130/GroupQA.md +44 -0
  52. tccli/examples/lke/v20231130/IgnoreUnsatisfiedReply.md +21 -0
  53. tccli/examples/lke/v20231130/IsTransferIntent.md +22 -0
  54. tccli/examples/lke/v20231130/ListApp.md +36 -0
  55. tccli/examples/lke/v20231130/ListAppCategory.md +25 -0
  56. tccli/examples/lke/v20231130/ListAttributeLabel.md +33 -0
  57. tccli/examples/lke/v20231130/ListDoc.md +52 -0
  58. tccli/examples/lke/v20231130/ListModel.md +31 -0
  59. tccli/examples/lke/v20231130/ListQA.md +66 -0
  60. tccli/examples/lke/v20231130/ListQACate.md +41 -0
  61. tccli/examples/lke/v20231130/ListRejectedQuestion.md +52 -0
  62. tccli/examples/lke/v20231130/ListRejectedQuestionPreview.md +37 -0
  63. tccli/examples/lke/v20231130/ListRelease.md +36 -0
  64. tccli/examples/lke/v20231130/ListReleaseConfigPreview.md +129 -0
  65. tccli/examples/lke/v20231130/ListReleaseDocPreview.md +38 -0
  66. tccli/examples/lke/v20231130/ListReleaseQAPreview.md +107 -0
  67. tccli/examples/lke/v20231130/ListSelectDoc.md +27 -0
  68. tccli/examples/lke/v20231130/ListUnsatisfiedReply.md +24 -0
  69. tccli/examples/lke/v20231130/ModifyApp.md +25 -0
  70. tccli/examples/lke/v20231130/ModifyAttributeLabel.md +23 -0
  71. tccli/examples/lke/v20231130/ModifyDoc.md +25 -0
  72. tccli/examples/lke/v20231130/ModifyDocAttrRange.md +25 -0
  73. tccli/examples/lke/v20231130/ModifyQA.md +24 -0
  74. tccli/examples/lke/v20231130/ModifyQAAttrRange.md +25 -0
  75. tccli/examples/lke/v20231130/ModifyQACate.md +22 -0
  76. tccli/examples/lke/v20231130/ModifyRejectedQuestion.md +22 -0
  77. tccli/examples/lke/v20231130/ParseDoc.md +25 -0
  78. tccli/examples/lke/v20231130/QueryParseDocResult.md +24 -0
  79. tccli/examples/lke/v20231130/QueryRewrite.md +25 -0
  80. tccli/examples/lke/v20231130/RateMsgRecord.md +22 -0
  81. tccli/examples/lke/v20231130/ResetSession.md +20 -0
  82. tccli/examples/lke/v20231130/RetryDocAudit.md +21 -0
  83. tccli/examples/lke/v20231130/RetryDocParse.md +21 -0
  84. tccli/examples/lke/v20231130/RetryRelease.md +21 -0
  85. tccli/examples/lke/v20231130/SaveDoc.md +34 -0
  86. tccli/examples/lke/v20231130/StopDocParse.md +21 -0
  87. tccli/examples/lke/v20231130/UploadAttributeLabel.md +27 -0
  88. tccli/examples/lke/v20231130/VerifyQA.md +27 -0
  89. tccli/examples/mna/v20210119/GetFlowPackages.md +3 -1
  90. tccli/examples/mna/v20210119/GetFlowStatistic.md +42 -0
  91. tccli/examples/ocr/v20181119/GeneralBasicOCR.md +0 -1
  92. tccli/examples/rce/v20201103/ManageMarketingRisk.md +19 -56
  93. tccli/examples/sqlserver/v20180328/DescribeRestoreTimeRange.md +23 -0
  94. tccli/examples/svp/v20240125/CreateSavingPlanOrder.md +1 -1
  95. tccli/examples/tke/v20180525/DescribeSupportedRuntime.md +25 -0
  96. tccli/examples/tke/v20180525/ModifyClusterRuntimeConfig.md +27 -0
  97. tccli/examples/vod/v20180717/CreateSubAppId.md +1 -1
  98. tccli/examples/vod/v20180717/DescribeAdaptiveDynamicStreamingTemplates.md +5 -1
  99. tccli/examples/vod/v20180717/DescribeSubAppIds.md +8 -8
  100. tccli/examples/vod/v20180717/ModifySubAppIdInfo.md +3 -3
  101. tccli/examples/vod/v20180717/ModifySubAppIdStatus.md +1 -1
  102. tccli/services/__init__.py +3 -0
  103. tccli/services/aiart/v20221229/api.json +25 -6
  104. tccli/services/antiddos/v20200309/api.json +10 -0
  105. tccli/services/asr/v20190614/api.json +4 -4
  106. tccli/services/bsca/v20210811/api.json +19 -1
  107. tccli/services/ccc/v20200210/api.json +12 -12
  108. tccli/services/cdb/cdb_client.py +106 -0
  109. tccli/services/cdb/v20170320/api.json +255 -0
  110. tccli/services/cdb/v20170320/examples.json +16 -0
  111. tccli/services/cdn/v20180606/api.json +4 -4
  112. tccli/services/ckafka/v20190819/api.json +29 -24
  113. tccli/services/domain/domain_client.py +114 -8
  114. tccli/services/domain/v20180808/api.json +177 -4
  115. tccli/services/domain/v20180808/examples.json +22 -0
  116. tccli/services/dts/v20211206/api.json +2 -2
  117. tccli/services/es/v20180416/api.json +12 -12
  118. tccli/services/es/v20180416/examples.json +21 -21
  119. tccli/services/ess/ess_client.py +149 -43
  120. tccli/services/ess/v20201111/api.json +406 -4
  121. tccli/services/ess/v20201111/examples.json +34 -0
  122. tccli/services/essbasic/v20210526/api.json +2 -2
  123. tccli/services/faceid/v20180301/api.json +10 -1
  124. tccli/services/hunyuan/v20230901/api.json +67 -21
  125. tccli/services/hunyuan/v20230901/examples.json +17 -5
  126. tccli/services/iai/v20180301/api.json +19 -19
  127. tccli/services/lcic/v20220817/api.json +49 -0
  128. tccli/services/lke/__init__.py +4 -0
  129. tccli/services/lke/lke_client.py +4117 -0
  130. tccli/services/lke/v20231130/api.json +9020 -0
  131. tccli/services/lke/v20231130/examples.json +617 -0
  132. tccli/services/mna/v20210119/api.json +249 -29
  133. tccli/services/mna/v20210119/examples.json +7 -1
  134. tccli/services/monitor/v20180724/api.json +30 -10
  135. tccli/services/ocr/v20181119/api.json +29 -15
  136. tccli/services/ocr/v20181119/examples.json +1 -1
  137. tccli/services/rce/v20201103/api.json +4 -4
  138. tccli/services/rce/v20201103/examples.json +3 -3
  139. tccli/services/redis/v20180412/api.json +1 -1
  140. tccli/services/scf/v20180416/api.json +18 -9
  141. tccli/services/sms/v20210111/api.json +1 -1
  142. tccli/services/sqlserver/sqlserver_client.py +110 -57
  143. tccli/services/sqlserver/v20180328/api.json +63 -0
  144. tccli/services/sqlserver/v20180328/examples.json +8 -0
  145. tccli/services/svp/v20240125/examples.json +1 -1
  146. tccli/services/tat/v20201028/api.json +3 -3
  147. tccli/services/tione/v20211111/api.json +25 -1
  148. tccli/services/tke/tke_client.py +106 -0
  149. tccli/services/tke/v20180525/api.json +229 -17
  150. tccli/services/tke/v20180525/examples.json +17 -1
  151. tccli/services/trtc/v20190722/api.json +46 -4
  152. tccli/services/vod/v20180717/api.json +24 -24
  153. tccli/services/vod/v20180717/examples.json +8 -8
  154. tccli/services/wedata/v20210820/api.json +295 -1437
  155. tccli/services/wedata/v20210820/examples.json +0 -88
  156. tccli/services/wedata/wedata_client.py +33 -616
  157. {tccli-3.0.1091.1.dist-info → tccli-3.0.1093.1.dist-info}/METADATA +2 -2
  158. {tccli-3.0.1091.1.dist-info → tccli-3.0.1093.1.dist-info}/RECORD +161 -73
  159. {tccli-3.0.1091.1.dist-info → tccli-3.0.1093.1.dist-info}/WHEEL +0 -0
  160. {tccli-3.0.1091.1.dist-info → tccli-3.0.1093.1.dist-info}/entry_points.txt +0 -0
  161. {tccli-3.0.1091.1.dist-info → tccli-3.0.1093.1.dist-info}/license_files/LICENSE +0 -0
@@ -5349,6 +5349,7 @@
5349
5349
  "example": "无",
5350
5350
  "member": "TextDetection",
5351
5351
  "name": "TextDetections",
5352
+ "output_required": true,
5352
5353
  "type": "list",
5353
5354
  "value_allowed_null": false
5354
5355
  },
@@ -5358,6 +5359,7 @@
5358
5359
  "example": "zh",
5359
5360
  "member": "string",
5360
5361
  "name": "Language",
5362
+ "output_required": true,
5361
5363
  "type": "string",
5362
5364
  "value_allowed_null": false
5363
5365
  },
@@ -5367,6 +5369,7 @@
5367
5369
  "example": "6.5",
5368
5370
  "member": "float",
5369
5371
  "name": "Angel",
5372
+ "output_required": true,
5370
5373
  "type": "float",
5371
5374
  "value_allowed_null": false
5372
5375
  },
@@ -5376,6 +5379,7 @@
5376
5379
  "example": "0",
5377
5380
  "member": "int64",
5378
5381
  "name": "PdfPageSize",
5382
+ "output_required": true,
5379
5383
  "type": "int",
5380
5384
  "value_allowed_null": false
5381
5385
  },
@@ -5385,6 +5389,7 @@
5385
5389
  "example": "6.5",
5386
5390
  "member": "float",
5387
5391
  "name": "Angle",
5392
+ "output_required": true,
5388
5393
  "type": "float",
5389
5394
  "value_allowed_null": false
5390
5395
  },
@@ -12639,6 +12644,7 @@
12639
12644
  "example": "3102001968756",
12640
12645
  "member": "string",
12641
12646
  "name": "ID",
12647
+ "output_required": true,
12642
12648
  "type": "string",
12643
12649
  "value_allowed_null": false
12644
12650
  },
@@ -12648,6 +12654,7 @@
12648
12654
  "example": "นาย ธนกฤต บุญโญปกรุณ์",
12649
12655
  "member": "string",
12650
12656
  "name": "ThaiName",
12657
+ "output_required": true,
12651
12658
  "type": "string",
12652
12659
  "value_allowed_null": false
12653
12660
  },
@@ -12657,51 +12664,57 @@
12657
12664
  "example": "Mr. Thanakit",
12658
12665
  "member": "string",
12659
12666
  "name": "EnFirstName",
12667
+ "output_required": true,
12660
12668
  "type": "string",
12661
12669
  "value_allowed_null": false
12662
12670
  },
12663
12671
  {
12664
12672
  "disabled": false,
12665
- "document": "地址",
12666
- "example": "ที่อยู่21/19หมู่ที่3ต.บางคูครัดอ.บางบัวทอง",
12673
+ "document": "英文姓名",
12674
+ "example": "Boonyopakron",
12667
12675
  "member": "string",
12668
- "name": "Address",
12676
+ "name": "EnLastName",
12677
+ "output_required": true,
12669
12678
  "type": "string",
12670
12679
  "value_allowed_null": false
12671
12680
  },
12672
12681
  {
12673
12682
  "disabled": false,
12674
- "document": "出生日期",
12675
- "example": "14ธ.ค.2509",
12683
+ "document": "泰文签发日期",
12684
+ "example": "9ธ.ค.2559",
12676
12685
  "member": "string",
12677
- "name": "Birthday",
12686
+ "name": "IssueDate",
12687
+ "output_required": true,
12678
12688
  "type": "string",
12679
12689
  "value_allowed_null": false
12680
12690
  },
12681
12691
  {
12682
12692
  "disabled": false,
12683
- "document": "签发日期",
12684
- "example": "9ธ.ค.2559",
12693
+ "document": "泰文到期日期",
12694
+ "example": "13ธ.ค.2567",
12685
12695
  "member": "string",
12686
- "name": "IssueDate",
12696
+ "name": "ExpirationDate",
12697
+ "output_required": true,
12687
12698
  "type": "string",
12688
12699
  "value_allowed_null": false
12689
12700
  },
12690
12701
  {
12691
12702
  "disabled": false,
12692
- "document": "到期日期",
12693
- "example": "13ธ.ค.2567",
12703
+ "document": "泰文出生日期",
12704
+ "example": "14ธ.ค.2509",
12694
12705
  "member": "string",
12695
- "name": "ExpirationDate",
12706
+ "name": "Birthday",
12707
+ "output_required": true,
12696
12708
  "type": "string",
12697
12709
  "value_allowed_null": false
12698
12710
  },
12699
12711
  {
12700
12712
  "disabled": false,
12701
- "document": "英文姓名",
12702
- "example": "Boonyopakron",
12713
+ "document": "地址",
12714
+ "example": "ที่อยู่21/19หมู่ที่3ต.บางคูครัดอ.บางบัวทอง",
12703
12715
  "member": "string",
12704
- "name": "EnLastName",
12716
+ "name": "Address",
12717
+ "output_required": true,
12705
12718
  "type": "string",
12706
12719
  "value_allowed_null": false
12707
12720
  },
@@ -12711,6 +12724,7 @@
12711
12724
  "example": "无",
12712
12725
  "member": "string",
12713
12726
  "name": "PortraitImage",
12727
+ "output_required": true,
12714
12728
  "type": "string",
12715
12729
  "value_allowed_null": false
12716
12730
  },
@@ -190,7 +190,7 @@
190
190
  {
191
191
  "document": "识别多场景、任意版面下整图文字的识别",
192
192
  "input": "POST / HTTP/1.1\nHost: ocr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GeneralBasicOCR\n<公共请求参数>\n\n{\n \"ImageUrl\": \"https://xx/a.jpg\"\n}",
193
- "output": "{\n \"Response\": {\n \"Angel\": 359.989990234375,\n \"Angle\": 359.989990234375,\n \"Language\": \"zh\",\n \"PdfPageSize\": 0,\n \"RequestId\": \"f50122de-c766-4fdc-90e5-73a984a259cb\",\n \"TextDetections\": [\n {\n \"AdvancedInfo\": \"{\\\"Parag\\\":{\\\"ParagNo\\\":1}}\",\n \"Confidence\": 100,\n \"DetectedText\": \"Sun\",\n \"ItemPolygon\": {\n \"Height\": 35,\n \"Width\": 74,\n \"X\": 464,\n \"Y\": 100\n },\n \"Polygon\": [\n {\n \"X\": 464,\n \"Y\": 100\n },\n {\n \"X\": 538,\n \"Y\": 100\n },\n {\n \"X\": 538,\n \"Y\": 135\n },\n {\n \"X\": 464,\n \"Y\": 135\n }\n ],\n \"WordCoordPoint\": [],\n \"Words\": []\n },\n {\n \"AdvancedInfo\": \"{\\\"Parag\\\":{\\\"ParagNo\\\":2}}\",\n \"Confidence\": 100,\n \"DetectedText\": \"1月8日\",\n \"ItemPolygon\": {\n \"Height\": 18,\n \"Width\": 52,\n \"X\": 476,\n \"Y\": 141\n },\n \"Polygon\": [\n {\n \"X\": 476,\n \"Y\": 141\n },\n {\n \"X\": 528,\n \"Y\": 141\n },\n {\n \"X\": 528,\n \"Y\": 159\n },\n {\n \"X\": 476,\n \"Y\": 159\n }\n ],\n \"WordCoordPoint\": [],\n \"Words\": []\n },\n {\n \"AdvancedInfo\": \"{\\\"Parag\\\":{\\\"ParagNo\\\":3}}\",\n \"Confidence\": 100,\n \"DetectedText\": \"八色鸫\",\n \"ItemPolygon\": {\n \"Height\": 28,\n \"Width\": 85,\n \"X\": 62,\n \"Y\": 443\n },\n \"Polygon\": [\n {\n \"X\": 62,\n \"Y\": 443\n },\n {\n \"X\": 147,\n \"Y\": 442\n },\n {\n \"X\": 147,\n \"Y\": 470\n },\n {\n \"X\": 63,\n \"Y\": 471\n }\n ],\n \"WordCoordPoint\": [],\n \"Words\": []\n },\n {\n \"AdvancedInfo\": \"{\\\"Parag\\\":{\\\"ParagNo\\\":4}}\",\n \"Confidence\": 100,\n \"DetectedText\": \"Pitta nympha\",\n \"ItemPolygon\": {\n \"Height\": 17,\n \"Width\": 96,\n \"X\": 61,\n \"Y\": 482\n },\n \"Polygon\": [\n {\n \"X\": 61,\n \"Y\": 482\n },\n {\n \"X\": 157,\n \"Y\": 483\n },\n {\n \"X\": 157,\n \"Y\": 500\n },\n {\n \"X\": 61,\n \"Y\": 499\n }\n ],\n \"WordCoordPoint\": [],\n \"Words\": []\n },\n {\n \"AdvancedInfo\": \"{\\\"Parag\\\":{\\\"ParagNo\\\":5}}\",\n \"Confidence\": 100,\n \"DetectedText\": \"八色鸫雌鸟和雄鸟一样漂亮。它经常在亚热带的森林地面上走动,捕\",\n \"ItemPolygon\": {\n \"Height\": 18,\n \"Width\": 426,\n \"X\": 60,\n \"Y\": 506\n },\n \"Polygon\": [\n {\n \"X\": 60,\n \"Y\": 506\n },\n {\n \"X\": 486,\n \"Y\": 503\n },\n {\n \"X\": 486,\n \"Y\": 521\n },\n {\n \"X\": 60,\n \"Y\": 523\n }\n ],\n \"WordCoordPoint\": [],\n \"Words\": []\n },\n {\n \"AdvancedInfo\": \"{\\\"Parag\\\":{\\\"ParagNo\\\":5}}\",\n \"Confidence\": 100,\n \"DetectedText\": \"食落叶下的昆虫和晰蜴等小动物,唱歌时会飞到树上。因为森林砍伐\",\n \"ItemPolygon\": {\n \"Height\": 16,\n \"Width\": 426,\n \"X\": 60,\n \"Y\": 530\n },\n \"Polygon\": [\n {\n \"X\": 60,\n \"Y\": 530\n },\n {\n \"X\": 486,\n \"Y\": 530\n },\n {\n \"X\": 486,\n \"Y\": 546\n },\n {\n \"X\": 60,\n \"Y\": 546\n }\n ],\n \"WordCoordPoint\": [],\n \"Words\": []\n },\n {\n \"AdvancedInfo\": \"{\\\"Parag\\\":{\\\"ParagNo\\\":5}}\",\n \"Confidence\": 100,\n \"DetectedText\": \"和非法的玩赏鸟贸易,现在它的数量已明显减少。\",\n \"ItemPolygon\": {\n \"Height\": 18,\n \"Width\": 308,\n \"X\": 59,\n \"Y\": 554\n },\n \"Polygon\": [\n {\n \"X\": 59,\n \"Y\": 554\n },\n {\n \"X\": 367,\n \"Y\": 552\n },\n {\n \"X\": 368,\n \"Y\": 570\n },\n {\n \"X\": 59,\n \"Y\": 572\n }\n ],\n \"WordCoordPoint\": [],\n \"Words\": []\n }\n ]\n }\n}",
193
+ "output": "{\n \"Response\": {\n \"Angle\": 359.989990234375,\n \"Language\": \"zh\",\n \"PdfPageSize\": 0,\n \"RequestId\": \"f50122de-c766-4fdc-90e5-73a984a259cb\",\n \"TextDetections\": [\n {\n \"AdvancedInfo\": \"{\\\"Parag\\\":{\\\"ParagNo\\\":1}}\",\n \"Confidence\": 100,\n \"DetectedText\": \"Sun\",\n \"ItemPolygon\": {\n \"Height\": 35,\n \"Width\": 74,\n \"X\": 464,\n \"Y\": 100\n },\n \"Polygon\": [\n {\n \"X\": 464,\n \"Y\": 100\n },\n {\n \"X\": 538,\n \"Y\": 100\n },\n {\n \"X\": 538,\n \"Y\": 135\n },\n {\n \"X\": 464,\n \"Y\": 135\n }\n ],\n \"WordCoordPoint\": [],\n \"Words\": []\n },\n {\n \"AdvancedInfo\": \"{\\\"Parag\\\":{\\\"ParagNo\\\":2}}\",\n \"Confidence\": 100,\n \"DetectedText\": \"1月8日\",\n \"ItemPolygon\": {\n \"Height\": 18,\n \"Width\": 52,\n \"X\": 476,\n \"Y\": 141\n },\n \"Polygon\": [\n {\n \"X\": 476,\n \"Y\": 141\n },\n {\n \"X\": 528,\n \"Y\": 141\n },\n {\n \"X\": 528,\n \"Y\": 159\n },\n {\n \"X\": 476,\n \"Y\": 159\n }\n ],\n \"WordCoordPoint\": [],\n \"Words\": []\n },\n {\n \"AdvancedInfo\": \"{\\\"Parag\\\":{\\\"ParagNo\\\":3}}\",\n \"Confidence\": 100,\n \"DetectedText\": \"八色鸫\",\n \"ItemPolygon\": {\n \"Height\": 28,\n \"Width\": 85,\n \"X\": 62,\n \"Y\": 443\n },\n \"Polygon\": [\n {\n \"X\": 62,\n \"Y\": 443\n },\n {\n \"X\": 147,\n \"Y\": 442\n },\n {\n \"X\": 147,\n \"Y\": 470\n },\n {\n \"X\": 63,\n \"Y\": 471\n }\n ],\n \"WordCoordPoint\": [],\n \"Words\": []\n },\n {\n \"AdvancedInfo\": \"{\\\"Parag\\\":{\\\"ParagNo\\\":4}}\",\n \"Confidence\": 100,\n \"DetectedText\": \"Pitta nympha\",\n \"ItemPolygon\": {\n \"Height\": 17,\n \"Width\": 96,\n \"X\": 61,\n \"Y\": 482\n },\n \"Polygon\": [\n {\n \"X\": 61,\n \"Y\": 482\n },\n {\n \"X\": 157,\n \"Y\": 483\n },\n {\n \"X\": 157,\n \"Y\": 500\n },\n {\n \"X\": 61,\n \"Y\": 499\n }\n ],\n \"WordCoordPoint\": [],\n \"Words\": []\n },\n {\n \"AdvancedInfo\": \"{\\\"Parag\\\":{\\\"ParagNo\\\":5}}\",\n \"Confidence\": 100,\n \"DetectedText\": \"八色鸫雌鸟和雄鸟一样漂亮。它经常在亚热带的森林地面上走动,捕\",\n \"ItemPolygon\": {\n \"Height\": 18,\n \"Width\": 426,\n \"X\": 60,\n \"Y\": 506\n },\n \"Polygon\": [\n {\n \"X\": 60,\n \"Y\": 506\n },\n {\n \"X\": 486,\n \"Y\": 503\n },\n {\n \"X\": 486,\n \"Y\": 521\n },\n {\n \"X\": 60,\n \"Y\": 523\n }\n ],\n \"WordCoordPoint\": [],\n \"Words\": []\n },\n {\n \"AdvancedInfo\": \"{\\\"Parag\\\":{\\\"ParagNo\\\":5}}\",\n \"Confidence\": 100,\n \"DetectedText\": \"食落叶下的昆虫和晰蜴等小动物,唱歌时会飞到树上。因为森林砍伐\",\n \"ItemPolygon\": {\n \"Height\": 16,\n \"Width\": 426,\n \"X\": 60,\n \"Y\": 530\n },\n \"Polygon\": [\n {\n \"X\": 60,\n \"Y\": 530\n },\n {\n \"X\": 486,\n \"Y\": 530\n },\n {\n \"X\": 486,\n \"Y\": 546\n },\n {\n \"X\": 60,\n \"Y\": 546\n }\n ],\n \"WordCoordPoint\": [],\n \"Words\": []\n },\n {\n \"AdvancedInfo\": \"{\\\"Parag\\\":{\\\"ParagNo\\\":5}}\",\n \"Confidence\": 100,\n \"DetectedText\": \"和非法的玩赏鸟贸易,现在它的数量已明显减少。\",\n \"ItemPolygon\": {\n \"Height\": 18,\n \"Width\": 308,\n \"X\": 59,\n \"Y\": 554\n },\n \"Polygon\": [\n {\n \"X\": 59,\n \"Y\": 554\n },\n {\n \"X\": 367,\n \"Y\": 552\n },\n {\n \"X\": 368,\n \"Y\": 570\n },\n {\n \"X\": 59,\n \"Y\": 572\n }\n ],\n \"WordCoordPoint\": [],\n \"Words\": []\n }\n ]\n }\n}",
194
194
  "title": "通用印刷体识别示例代码 [ 前往调试工具](https://console.cloud.tencent.com/api/explorer?Product=ocr&Action=GeneralBasicOCR)"
195
195
  }
196
196
  ],
@@ -489,7 +489,7 @@
489
489
  "example": "无",
490
490
  "member": "OutputManageMarketingRisk",
491
491
  "name": "Data",
492
- "required": true,
492
+ "output_required": true,
493
493
  "type": "object",
494
494
  "value_allowed_null": false
495
495
  },
@@ -572,7 +572,7 @@
572
572
  },
573
573
  {
574
574
  "disabled": false,
575
- "document": "MD5手机号,AccountType是10004时,此处无需重复填写。",
575
+ "document": "账号绑定的MD5手机号。\n注释:只支持标准中国大陆11位手机号MD5加密后位的32位小写字符串。",
576
576
  "example": "无",
577
577
  "member": "string",
578
578
  "name": "MobilePhone",
@@ -581,7 +581,7 @@
581
581
  },
582
582
  {
583
583
  "disabled": false,
584
- "document": "用户设备号,AccountType是8时,此处无需重复填写。",
584
+ "document": "用户设备号,支持IMEI、IMEIMD5、IDFA、IDFAMD5。\n注释:IMEIMD5、IDFAMD5加密方式,对IMEI、IDFA明文进行MD5加密,加密后取32位小写值。",
585
585
  "example": "无",
586
586
  "member": "string",
587
587
  "name": "DeviceId",
@@ -730,7 +730,7 @@
730
730
  "members": [
731
731
  {
732
732
  "disabled": false,
733
- "document": "账号ID:对应输入参数。\n当AccountType为1时,对应QQ的OpenId。\n当AccountType为2时,对应微信的OpenId/UnionId。\n当AccountType为8时,对应IMEI、IDFA、IMEIMD5或者IDFAMD5。\n当AccountType为10004时,对应手机号的MD5值。\n请注意:此字段可能返回null,表示无法获取有效值。\n注意:此字段可能返回 null,表示取不到有效值。",
733
+ "document": "账号ID:对应输入参数。\n当AccountType为1时,对应QQ的OpenId。\n当AccountType为2时,对应微信的OpenId/UnionId。\n当AccountType为8时,对应IMEI、IDFA、IMEIMD5或者IDFAMD5。\n当AccountType为10004时,对应手机号的MD5值。\n注意:此字段可能返回 null,表示取不到有效值。",
734
734
  "example": "3ac9aa8a9a0074918763bfd6ed526ed9",
735
735
  "member": "string",
736
736
  "name": "UserId",
@@ -18,9 +18,9 @@
18
18
  ],
19
19
  "ManageMarketingRisk": [
20
20
  {
21
- "document": "",
22
- "input": "POST / HTTP/1.1\nHost: rce.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ManageMarketingRisk\n<公共请求参数>\n\n{\n \"BusinessSecurityData\": {\n \"PostTime\": 1,\n \"Account\": {\n \"QQAccount\": {\n \"QQOpenId\": \"xx\",\n \"AppIdUser\": \"xx\",\n \"DeviceId\": \"xx\",\n \"MobilePhone\": \"xx\",\n \"AssociateAccount\": \"xx\"\n },\n \"OtherAccount\": {\n \"DeviceId\": \"xx\",\n \"MobilePhone\": \"xx\",\n \"AccountId\": \"xx\"\n },\n \"WeChatAccount\": {\n \"MobilePhone\": \"xx\",\n \"WeChatAccessToken\": \"xx\",\n \"WeChatSubType\": 1,\n \"DeviceId\": \"xx\",\n \"AssociateAccount\": \"xx\",\n \"WeChatOpenId\": \"xx\",\n \"RandStr\": \"xx\"\n },\n \"AccountType\": 1\n },\n \"CookieHash\": \"xx\",\n \"BusinessId\": 1,\n \"DeviceType\": 0,\n \"XForwardedFor\": \"xx\",\n \"UserId\": \"xx\",\n \"CheckDevice\": 0,\n \"Details\": [\n {\n \"FieldName\": \"xx\",\n \"FieldValue\": \"xx\"\n }\n ],\n \"MacAddress\": \"xx\",\n \"UserAgent\": \"xx\",\n \"EmailAddress\": \"xx\",\n \"VendorId\": \"xx\",\n \"SceneCode\": \"xx\",\n \"Sponsor\": {\n \"SponsorDeviceNumber\": \"xx\",\n \"SponsorIp\": \"xx\",\n \"CampaignUrl\": \"xx\",\n \"SponsorOpenId\": \"xx\",\n \"SponsorPhone\": \"xx\"\n },\n \"UserIp\": \"xx\",\n \"Referer\": \"xx\",\n \"OnlineScam\": {\n \"ContentRiskLevel\": 0,\n \"ContentLabel\": \"xx\",\n \"ContentType\": 0,\n \"FraudAccount\": \"xx\",\n \"FraudType\": 0\n },\n \"Nickname\": \"xx\",\n \"DeviceToken\": \"xx\",\n \"DeviceBusinessId\": 0\n }\n}",
23
- "output": "{\n \"Response\": {\n \"Data\": {\n \"Code\": 0,\n \"Message\": \"OK\",\n \"Value\": {\n \"UserId\": \"oz5I********************GfVv\",\n \"UserIp\": \"127.0.0.1\",\n \"PostTime\": 1590753783,\n \"AssociateAccount\": \"\",\n \"RiskLevel\": \"reject\",\n \"RiskType\": [\n 101,\n 1,\n 2,\n 105\n ]\n },\n \"UUid\": \"***********************\"\n },\n \"RequestId\": \"a6227506-5f00-43cf-9a4c-66fe931cefc9\"\n }\n}",
21
+ "document": "使用手机号MD5请求方式",
22
+ "input": "POST / HTTP/1.1\nHost: rce.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ManageMarketingRisk\n<公共请求参数>\n\n{\n \"BusinessSecurityData\": {\n \"Account\": {\n \"AccountType\": 10004,\n \"OtherAccount\": {\n \"AccountId\": \"3ac9aa********************526ed9\"\n }\n },\n \"SceneCode\": \"e_activity_antirush\",\n \"UserIp\": \"113.***.***.150\",\n \"PostTime\": 1712841851\n }\n}",
23
+ "output": "{\n \"Response\": {\n \"Data\": {\n \"Code\": 0,\n \"Message\": \"OK\",\n \"UUid\": \"9a570741-****-****-****-****0b788232\",\n \"Value\": {\n \"AssociateAccount\": \"\",\n \"ConstId\": \"\",\n \"PostTime\": 1712841851,\n \"RiskInformation\": null,\n \"RiskLevel\": \"reject\",\n \"RiskType\": [\n 201,\n 1,\n 21,\n 11,\n 2011\n ],\n \"UserId\": \"3ac9aa********************526ed9\",\n \"UserIp\": \"113.***.***.150\"\n }\n },\n \"RequestId\": \"5d9e8c5d-****-****-****-1c0dca666edb\"\n }\n}",
24
24
  "title": "ManageMarketingRisk"
25
25
  }
26
26
  ]
@@ -7287,7 +7287,7 @@
7287
7287
  },
7288
7288
  {
7289
7289
  "disabled": false,
7290
- "document": "实例当前Cache小版本。\n注意:此字段可能返回 null,表示取不到有效值。",
7290
+ "document": "实例当前Cache小版本。如果实例加入全球复制组,显示全球复制的内核版本。\n注意:此字段可能返回 null,表示取不到有效值。",
7291
7291
  "example": "4.3.0",
7292
7292
  "member": "string",
7293
7293
  "name": "CurrentRedisVersion",
@@ -572,9 +572,10 @@
572
572
  {
573
573
  "disabled": false,
574
574
  "document": "用户id",
575
- "example": "",
575
+ "example": "",
576
576
  "member": "string",
577
577
  "name": "UserId",
578
+ "output_required": true,
578
579
  "required": true,
579
580
  "type": "string",
580
581
  "value_allowed_null": false
@@ -582,9 +583,10 @@
582
583
  {
583
584
  "disabled": false,
584
585
  "document": "用户组id",
585
- "example": "",
586
+ "example": "",
586
587
  "member": "string",
587
588
  "name": "UserGroupId",
589
+ "output_required": true,
588
590
  "required": true,
589
591
  "type": "string",
590
592
  "value_allowed_null": false
@@ -592,9 +594,10 @@
592
594
  {
593
595
  "disabled": false,
594
596
  "document": "文件系统实例id",
595
- "example": "",
597
+ "example": "",
596
598
  "member": "string",
597
599
  "name": "CfsId",
600
+ "output_required": true,
598
601
  "required": true,
599
602
  "type": "string",
600
603
  "value_allowed_null": false
@@ -602,9 +605,10 @@
602
605
  {
603
606
  "disabled": false,
604
607
  "document": "文件系统挂载点id",
605
- "example": "",
608
+ "example": "",
606
609
  "member": "string",
607
610
  "name": "MountInsId",
611
+ "output_required": true,
608
612
  "required": true,
609
613
  "type": "string",
610
614
  "value_allowed_null": false
@@ -612,9 +616,10 @@
612
616
  {
613
617
  "disabled": false,
614
618
  "document": "本地挂载点",
615
- "example": "",
619
+ "example": "",
616
620
  "member": "string",
617
621
  "name": "LocalMountDir",
622
+ "output_required": true,
618
623
  "required": true,
619
624
  "type": "string",
620
625
  "value_allowed_null": false
@@ -622,9 +627,10 @@
622
627
  {
623
628
  "disabled": false,
624
629
  "document": "远程挂载点",
625
- "example": "",
630
+ "example": "",
626
631
  "member": "string",
627
632
  "name": "RemoteMountDir",
633
+ "output_required": true,
628
634
  "required": true,
629
635
  "type": "string",
630
636
  "value_allowed_null": false
@@ -632,9 +638,10 @@
632
638
  {
633
639
  "disabled": false,
634
640
  "document": "文件系统ip,配置 cfs 时无需填写。\n注意:此字段可能返回 null,表示取不到有效值。\n注意:此字段可能返回 null,表示取不到有效值。",
635
- "example": "",
641
+ "example": "",
636
642
  "member": "string",
637
643
  "name": "IpAddress",
644
+ "output_required": true,
638
645
  "required": false,
639
646
  "type": "string",
640
647
  "value_allowed_null": true
@@ -642,9 +649,10 @@
642
649
  {
643
650
  "disabled": false,
644
651
  "document": "文件系统所在的私有网络id,配置 cfs 时无需填写。\n注意:此字段可能返回 null,表示取不到有效值。\n注意:此字段可能返回 null,表示取不到有效值。",
645
- "example": "",
652
+ "example": "",
646
653
  "member": "string",
647
654
  "name": "MountVpcId",
655
+ "output_required": true,
648
656
  "required": false,
649
657
  "type": "string",
650
658
  "value_allowed_null": true
@@ -652,9 +660,10 @@
652
660
  {
653
661
  "disabled": false,
654
662
  "document": "文件系统所在私有网络的子网id,配置 cfs 时无需填写。\n注意:此字段可能返回 null,表示取不到有效值。\n注意:此字段可能返回 null,表示取不到有效值。",
655
- "example": "",
663
+ "example": "",
656
664
  "member": "string",
657
665
  "name": "MountSubnetId",
666
+ "output_required": true,
658
667
  "required": false,
659
668
  "type": "string",
660
669
  "value_allowed_null": true
@@ -1091,7 +1091,7 @@
1091
1091
  },
1092
1092
  {
1093
1093
  "disabled": false,
1094
- "document": "是否国际/港澳台短信:\n0:表示国内短信。\n1:表示国际/港澳台短信。",
1094
+ "document": "是否国际/港澳台短信:\n0:表示国内短信。\n1:表示国际/港澳台短信。\n注:需要和待修改模板 International 值保持一致,该参数不能直接修改国内模板到国际模板。",
1095
1095
  "example": "0",
1096
1096
  "member": "uint64",
1097
1097
  "name": "International",
@@ -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,