tccli 3.0.1317.1__py2.py3-none-any.whl → 3.0.1319.1__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/__init__.py +0 -3
  3. tccli/services/ams/v20201229/api.json +109 -113
  4. tccli/services/batch/v20170312/api.json +3 -3
  5. tccli/services/billing/v20180709/api.json +6 -6
  6. tccli/services/cbs/v20170312/api.json +2 -2
  7. tccli/services/cdwdoris/v20211228/api.json +67 -1
  8. tccli/services/clb/v20180317/api.json +1 -1
  9. tccli/services/cls/v20201016/api.json +25 -15
  10. tccli/services/cvm/v20170312/api.json +29 -29
  11. tccli/services/cynosdb/v20190107/api.json +7 -7
  12. tccli/services/dbbrain/v20210527/api.json +7 -3
  13. tccli/services/dlc/v20210125/api.json +112 -0
  14. tccli/services/dlc/v20210125/examples.json +3 -3
  15. tccli/services/dnspod/v20210323/examples.json +1 -1
  16. tccli/services/domain/v20180808/api.json +3 -3
  17. tccli/services/domain/v20180808/examples.json +1 -1
  18. tccli/services/dsgc/dsgc_client.py +247 -1042
  19. tccli/services/dsgc/v20190723/api.json +15 -365
  20. tccli/services/dsgc/v20190723/examples.json +1 -127
  21. tccli/services/dts/v20180330/api.json +2 -2
  22. tccli/services/es/v20180416/api.json +10 -0
  23. tccli/services/ess/v20201111/api.json +6 -6
  24. tccli/services/ess/v20201111/examples.json +10 -4
  25. tccli/services/essbasic/v20210526/api.json +2 -2
  26. tccli/services/goosefs/goosefs_client.py +386 -68
  27. tccli/services/goosefs/v20220519/api.json +510 -0
  28. tccli/services/goosefs/v20220519/examples.json +48 -0
  29. tccli/services/hai/v20230812/api.json +4 -4
  30. tccli/services/iotexplorer/v20190423/api.json +13 -3
  31. tccli/services/keewidb/v20220308/api.json +11 -2
  32. tccli/services/lighthouse/v20200324/api.json +1 -1
  33. tccli/services/live/v20180801/api.json +10 -0
  34. tccli/services/lke/v20231130/api.json +2 -58
  35. tccli/services/monitor/v20180724/api.json +8 -11
  36. tccli/services/mps/v20190612/api.json +20 -9
  37. tccli/services/mps/v20190612/examples.json +6 -0
  38. tccli/services/postgres/postgres_client.py +0 -53
  39. tccli/services/postgres/v20170312/api.json +9 -135
  40. tccli/services/postgres/v20170312/examples.json +0 -8
  41. tccli/services/scf/v20180416/api.json +2 -2
  42. tccli/services/ses/v20201002/api.json +9 -0
  43. tccli/services/sqlserver/v20180328/api.json +2 -2
  44. tccli/services/ssl/v20191205/api.json +18 -0
  45. tccli/services/ssl/v20191205/examples.json +2 -2
  46. tccli/services/tcb/v20180608/api.json +3 -3
  47. tccli/services/tdid/v20210519/examples.json +1 -1
  48. tccli/services/tione/tione_client.py +53 -0
  49. tccli/services/tione/v20211111/api.json +306 -1
  50. tccli/services/tione/v20211111/examples.json +8 -0
  51. tccli/services/tke/v20180525/api.json +1 -1
  52. tccli/services/tke/v20220501/api.json +11 -0
  53. tccli/services/trtc/v20190722/api.json +19 -1
  54. tccli/services/tse/v20201207/api.json +78 -4
  55. tccli/services/tts/v20190823/api.json +2 -2
  56. tccli/services/vpc/v20170312/api.json +3 -3
  57. tccli/services/waf/v20180125/examples.json +1 -1
  58. {tccli-3.0.1317.1.dist-info → tccli-3.0.1319.1.dist-info}/METADATA +2 -2
  59. {tccli-3.0.1317.1.dist-info → tccli-3.0.1319.1.dist-info}/RECORD +62 -66
  60. tccli/services/apcas/__init__.py +0 -4
  61. tccli/services/apcas/apcas_client.py +0 -525
  62. tccli/services/apcas/v20201127/api.json +0 -733
  63. tccli/services/apcas/v20201127/examples.json +0 -61
  64. {tccli-3.0.1317.1.dist-info → tccli-3.0.1319.1.dist-info}/WHEEL +0 -0
  65. {tccli-3.0.1317.1.dist-info → tccli-3.0.1319.1.dist-info}/entry_points.txt +0 -0
  66. {tccli-3.0.1317.1.dist-info → tccli-3.0.1319.1.dist-info}/license_files/LICENSE +0 -0
@@ -16920,7 +16920,7 @@
16920
16920
  "members": [
16921
16921
  {
16922
16922
  "disabled": false,
16923
- "document": "任务状态(1:失败;2:成功但结果为空;3:成功且结果非空)",
16923
+ "document": "任务状态(1:分析失败;2:下载/读取视频/图片失败;3:成功)",
16924
16924
  "example": "3",
16925
16925
  "member": "int64",
16926
16926
  "name": "Status",
@@ -16931,7 +16931,7 @@
16931
16931
  {
16932
16932
  "disabled": false,
16933
16933
  "document": "识别到的目标类型。可能取值:\n\n- `person`:人\n- `vehicle`:车辆\n- `dog`:狗\n- `cat`:猫\n- `fire`:火焰\n- `smoke`:烟雾\n- `package`:快递包裹\n- `license_plate`:车牌\n",
16934
- "example": "[\"person\", \"vehicle\"]",
16934
+ "example": "[\"person\"]",
16935
16935
  "member": "string",
16936
16936
  "name": "DetectedClassifications",
16937
16937
  "output_required": false,
@@ -16940,13 +16940,23 @@
16940
16940
  },
16941
16941
  {
16942
16942
  "disabled": false,
16943
- "document": "视频摘要文本",
16943
+ "document": "摘要文本",
16944
16944
  "example": "一人在水泥地面上行走",
16945
16945
  "member": "string",
16946
16946
  "name": "Summary",
16947
16947
  "output_required": false,
16948
16948
  "type": "string",
16949
16949
  "value_allowed_null": false
16950
+ },
16951
+ {
16952
+ "disabled": false,
16953
+ "document": "摘要文本(次选语言)",
16954
+ "example": "A person walking on the concrete floor",
16955
+ "member": "string",
16956
+ "name": "AlternativeSummary",
16957
+ "output_required": false,
16958
+ "type": "string",
16959
+ "value_allowed_null": false
16950
16960
  }
16951
16961
  ],
16952
16962
  "usage": "out"
@@ -1788,8 +1788,8 @@
1788
1788
  "type": "string"
1789
1789
  },
1790
1790
  {
1791
- "disabled": false,
1792
- "document": "根据标签的 Key 和 Value 筛选资源。该参数不配置或者数组设置为空值,则不根据标签进行过滤。",
1791
+ "disabled": true,
1792
+ "document": "废弃字段。请使用TagList传参。",
1793
1793
  "example": "具体参考数据结构。",
1794
1794
  "member": "InstanceTagInfo",
1795
1795
  "name": "InstanceTags",
@@ -1804,6 +1804,15 @@
1804
1804
  "name": "TagKeys",
1805
1805
  "required": false,
1806
1806
  "type": "list"
1807
+ },
1808
+ {
1809
+ "disabled": false,
1810
+ "document": "根据标签的 Key 和 Value 筛选资源。该参数不配置或者数组设置为空值,则不根据标签进行过滤。",
1811
+ "example": "无",
1812
+ "member": "InstanceTagInfo",
1813
+ "name": "TagList",
1814
+ "required": false,
1815
+ "type": "list"
1807
1816
  }
1808
1817
  ],
1809
1818
  "type": "object"
@@ -8480,7 +8480,7 @@
8480
8480
  "members": [
8481
8481
  {
8482
8482
  "disabled": false,
8483
- "document": "续费周期。",
8483
+ "document": "续费周期。\n单位:月。\n取值范围: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36]",
8484
8484
  "example": "1",
8485
8485
  "member": "int64",
8486
8486
  "name": "Period",
@@ -18573,6 +18573,16 @@
18573
18573
  "output_required": true,
18574
18574
  "type": "string",
18575
18575
  "value_allowed_null": false
18576
+ },
18577
+ {
18578
+ "disabled": false,
18579
+ "document": "关键帧间隔 GOP ,单位:ms。",
18580
+ "example": "2000",
18581
+ "member": "int64",
18582
+ "name": "GopSize",
18583
+ "output_required": false,
18584
+ "type": "int",
18585
+ "value_allowed_null": false
18576
18586
  }
18577
18587
  ],
18578
18588
  "usage": "out"
@@ -659,7 +659,7 @@
659
659
  "status": "online"
660
660
  },
661
661
  "SaveDoc": {
662
- "document": "知识库文档问答保存。\n将文件存储到应用的知识库内需要三步:\n1.获取临时密钥,参考[接口文档](https://cloud.tencent.com/document/product/1759/105050)。获取临时密钥不同参数组合权限不一样,可参考 [知识引擎操作 cos 指南](https://cloud.tencent.com/document/product/1759/116238)\n2.调用腾讯云提供的 cos 存储接口,将文件存储到知识引擎 cos 中:具体可参考[ COS SDK 概览](https://cloud.tencent.com/document/product/436/6474), 注意使用的是临时密钥的方式操作 COS \n3.调用本接口,将文件的基础信息存储到知识引擎中。\n以上步骤可参考[文档](https://cloud.tencent.com/document/product/1759/108903),文档最后有[代码demo](https://cloud.tencent.com/document/product/1759/108903#demo),可作为参考。",
662
+ "document": "知识库文档问答保存。\n将文件存储到应用的知识库内需要三步:\n1.获取临时密钥,参考[接口文档](https://cloud.tencent.com/document/product/1759/105050)。获取临时密钥不同参数组合权限不一样,可参考 [智能体开发平台操作 cos 指南](https://cloud.tencent.com/document/product/1759/116238)\n2.调用腾讯云提供的 cos 存储接口,将文件存储到智能体开发平台 cos 中:具体可参考[ COS SDK 概览](https://cloud.tencent.com/document/product/436/6474), 注意使用的是临时密钥的方式操作 COS \n3.调用本接口,将文件的基础信息存储到智能体开发平台中。\n以上步骤可参考[文档](https://cloud.tencent.com/document/product/1759/108903),文档最后有[代码demo](https://cloud.tencent.com/document/product/1759/108903#demo),可作为参考。",
663
663
  "input": "SaveDocRequest",
664
664
  "name": "知识库文档录入",
665
665
  "output": "SaveDocResponse",
@@ -4554,26 +4554,6 @@
4554
4554
  "type": "string",
4555
4555
  "value_allowed_null": false
4556
4556
  },
4557
- {
4558
- "disabled": false,
4559
- "document": "文档的用户自定义ID",
4560
- "example": "无",
4561
- "member": "string",
4562
- "name": "CustomerKnowledgeId",
4563
- "output_required": false,
4564
- "type": "string",
4565
- "value_allowed_null": false
4566
- },
4567
- {
4568
- "disabled": false,
4569
- "document": "文档的属性标记,0: 不做用户外部权限校验",
4570
- "example": "无",
4571
- "member": "uint64",
4572
- "name": "AttributeFlags",
4573
- "output_required": false,
4574
- "type": "list",
4575
- "value_allowed_null": false
4576
- },
4577
4557
  {
4578
4558
  "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
4579
4559
  "member": "string",
@@ -11711,24 +11691,6 @@
11711
11691
  "name": "CateBizId",
11712
11692
  "required": false,
11713
11693
  "type": "string"
11714
- },
11715
- {
11716
- "disabled": false,
11717
- "document": "文档的用户自定义ID",
11718
- "example": "无",
11719
- "member": "string",
11720
- "name": "CustomerKnowledgeId",
11721
- "required": false,
11722
- "type": "string"
11723
- },
11724
- {
11725
- "disabled": false,
11726
- "document": "文档的属性标记,0: 不做用户外部权限校验",
11727
- "example": "无",
11728
- "member": "uint64",
11729
- "name": "AttributeFlags",
11730
- "required": false,
11731
- "type": "list"
11732
11694
  }
11733
11695
  ],
11734
11696
  "type": "object"
@@ -14325,7 +14287,7 @@
14325
14287
  },
14326
14288
  {
14327
14289
  "disabled": false,
14328
- "document": "文档操作类型:1:批量导入(批量导入问答对);2:文档导入(正常导入单个文档) 默认为1 <br> 请注意,opt=1的时候请从知识引擎页面下载excel模板",
14290
+ "document": "文档操作类型:1:批量导入(批量导入问答对);2:文档导入(正常导入单个文档) 默认为1 <br> 请注意,opt=1的时候请从腾讯云智能体开发平台页面下载excel模板",
14329
14291
  "example": "无",
14330
14292
  "member": "uint64",
14331
14293
  "name": "Opt",
@@ -14340,24 +14302,6 @@
14340
14302
  "name": "CateBizId",
14341
14303
  "required": false,
14342
14304
  "type": "string"
14343
- },
14344
- {
14345
- "disabled": false,
14346
- "document": "文档的用户自定义ID",
14347
- "example": "无",
14348
- "member": "string",
14349
- "name": "CustomerKnowledgeId",
14350
- "required": false,
14351
- "type": "string"
14352
- },
14353
- {
14354
- "disabled": false,
14355
- "document": "文档的属性标记,0: 不做用户外部权限校验",
14356
- "example": "无",
14357
- "member": "uint64",
14358
- "name": "AttributeFlags",
14359
- "required": false,
14360
- "type": "list"
14361
14305
  }
14362
14306
  ],
14363
14307
  "type": "object"
@@ -15724,32 +15724,29 @@
15724
15724
  {
15725
15725
  "disabled": false,
15726
15726
  "document": "维度",
15727
- "example": "",
15727
+ "example": "vm_uuid",
15728
15728
  "member": "string",
15729
15729
  "name": "Key",
15730
15730
  "required": true,
15731
- "type": "string",
15732
- "value_allowed_null": false
15731
+ "type": "string"
15733
15732
  },
15734
15733
  {
15735
15734
  "disabled": false,
15736
- "document": "操作符,支持等于(eq)、不等于(ne),以及in",
15737
- "example": "",
15735
+ "document": "操作符,支持=、in",
15736
+ "example": "=",
15738
15737
  "member": "string",
15739
15738
  "name": "Operator",
15740
15739
  "required": true,
15741
- "type": "string",
15742
- "value_allowed_null": false
15740
+ "type": "string"
15743
15741
  },
15744
15742
  {
15745
15743
  "disabled": false,
15746
- "document": "维度值,当Op是eq、ne时,只使用第一个元素",
15747
- "example": "",
15744
+ "document": "维度值,当Op是=时,只使用第一个元素",
15745
+ "example": "dsdsedcsd",
15748
15746
  "member": "string",
15749
15747
  "name": "Value",
15750
15748
  "required": true,
15751
- "type": "list",
15752
- "value_allowed_null": false
15749
+ "type": "list"
15753
15750
  }
15754
15751
  ],
15755
15752
  "usage": "in"
@@ -862,7 +862,7 @@
862
862
  "status": "online"
863
863
  },
864
864
  "ProcessImage": {
865
- "document": "发起图片处理,功能包括:\n1. 格式转换;\n2. 图像增强;",
865
+ "document": "发起图片处理,功能包括:\n1. 格式转换;\n2. 图像增强;\n3. 图像擦除;",
866
866
  "input": "ProcessImageRequest",
867
867
  "name": "发起图片处理",
868
868
  "output": "ProcessImageResponse",
@@ -6497,7 +6497,7 @@
6497
6497
  },
6498
6498
  {
6499
6499
  "disabled": false,
6500
- "document": "当前热词库状态,数值表示绑定该热词库的智能字幕模板数量。\nStatus 为 0 ,表示该热词库没有被智能字幕模版引用可以删除;\nStatus 不为 0,表示该热词库不能被删除。\n注意:此字段可能返回 null,表示取不到有效值。",
6500
+ "document": "当前热词库状态,数值表示绑定该热词库的智能字幕模板数量。\nStatus 为 0 ,表示该热词库没有被智能字幕模板引用可以删除;\nStatus 不为 0,表示该热词库不能被删除。\n注意:此字段可能返回 null,表示取不到有效值。",
6501
6501
  "example": "1",
6502
6502
  "member": "uint64",
6503
6503
  "name": "Status",
@@ -17128,7 +17128,7 @@
17128
17128
  {
17129
17129
  "disabled": false,
17130
17130
  "document": "用户自定义人物过滤标签,指定需要返回的用户自定义人物的标签。如果未填或者为空,则全部自定义人物结果都返回。\n标签个数最多 100 个,每个标签长度最多 16 个字符。",
17131
- "example": "[\"张三\"]",
17131
+ "example": "[\"artist\"]",
17132
17132
  "member": "string",
17133
17133
  "name": "UserDefineLibraryLabelSet",
17134
17134
  "output_required": true,
@@ -17183,7 +17183,7 @@
17183
17183
  {
17184
17184
  "disabled": false,
17185
17185
  "document": "用户自定义人物过滤标签,指定需要返回的用户自定义人物的标签。如果未填或者为空,则全部自定义人物结果都返回。\n标签个数最多 100 个,每个标签长度最多 16 个字符。",
17186
- "example": "[\"张三\"]",
17186
+ "example": "[\"artist\"]",
17187
17187
  "member": "string",
17188
17188
  "name": "UserDefineLibraryLabelSet",
17189
17189
  "required": false,
@@ -18371,7 +18371,7 @@
18371
18371
  "members": [
18372
18372
  {
18373
18373
  "disabled": false,
18374
- "document": "图片框选区域类型,可选值:\n<li>logo:图标;</li>\n<li>text:文字。</li>\n默认值:logo。\n注意:此字段可能返回 null,表示取不到有效值。",
18374
+ "document": "图片框选区域类型,可选值:\n<li>logo:图标;</li>\n<li>text:文字;</li>\n默认值:logo。\n注意:此字段可能返回 null,表示取不到有效值。",
18375
18375
  "example": "logo",
18376
18376
  "member": "string",
18377
18377
  "name": "Type",
@@ -18390,6 +18390,17 @@
18390
18390
  "required": false,
18391
18391
  "type": "list",
18392
18392
  "value_allowed_null": true
18393
+ },
18394
+ {
18395
+ "disabled": false,
18396
+ "document": "图片框选区域坐标,[x1, y1, x2, y2],即左上角坐标、右下角坐标, 当AreaCoordSet未指定时生效。\n- [0.1, 0.1, 0.3, 0.3] : 表示比例 (数值小于1)\n- [50, 50, 350, 280] : 表示像素 (数值大于等于1)\n注意:此字段可能返回 null,表示取不到有效值。",
18397
+ "example": "[0.1, 0.1, 0.2, 0.2]",
18398
+ "member": "float",
18399
+ "name": "BoundingBox",
18400
+ "output_required": false,
18401
+ "required": false,
18402
+ "type": "list",
18403
+ "value_allowed_null": true
18393
18404
  }
18394
18405
  ],
18395
18406
  "usage": "both"
@@ -23284,7 +23295,7 @@
23284
23295
  "members": [
23285
23296
  {
23286
23297
  "disabled": false,
23287
- "document": "热词库 id \n如果热词库是文本热词:Name 和 Content 至少填一个 \n如果热词库是:Name、FileContent 和 FileName 至少填一个 \n",
23298
+ "document": "热词库 id \n如果热词库是临时热词:Name 和 Content 至少填一个 \n如果热词库是文件热词:Name、FileContent 和 FileName 至少填一个 \n",
23288
23299
  "example": "hwd-aexxxxxxxxxxxxxx1481",
23289
23300
  "member": "string",
23290
23301
  "name": "HotwordsId",
@@ -26240,7 +26251,7 @@
26240
26251
  {
26241
26252
  "disabled": false,
26242
26253
  "document": "图片处理生成的文件输出的路径。如果不填表示与 InputInfo 中文件所在的目录一致。如果是目录,如`/image/201907/`,表示继承原文件名输出到该目录。",
26243
- "example": "",
26254
+ "example": "/image/",
26244
26255
  "member": "string",
26245
26256
  "name": "OutputDir",
26246
26257
  "required": false,
@@ -29504,7 +29515,7 @@
29504
29515
  {
29505
29516
  "disabled": false,
29506
29517
  "document": "智能字幕模板名称\n注意:此字段可能返回 null,表示取不到有效值。",
29507
- "example": "模版1",
29518
+ "example": "模板1",
29508
29519
  "member": "string",
29509
29520
  "name": "Name",
29510
29521
  "output_required": false,
@@ -29514,7 +29525,7 @@
29514
29525
  {
29515
29526
  "disabled": false,
29516
29527
  "document": "智能字幕模板描述信息\n注意:此字段可能返回 null,表示取不到有效值。",
29517
- "example": "用于A的模版",
29528
+ "example": "用于A的模板",
29518
29529
  "member": "string",
29519
29530
  "name": "Comment",
29520
29531
  "output_required": false,
@@ -1170,6 +1170,12 @@
1170
1170
  "input": "POST / HTTP/1.1\nHost: mps.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ProcessImage\n<公共请求参数>\n\n{\n \"InputInfo\": {\n \"Type\": \"COS\",\n \"CosInputInfo\": {\n \"Bucket\": \"bucket-test\",\n \"Region\": \"ap-shanghai\",\n \"Object\": \"/image/test.png\"\n }\n },\n \"OutputStorage\": {\n \"Type\": \"COS\",\n \"CosOutputStorage\": {\n \"Bucket\": \"bucket-test\",\n \"Region\": \"ap-shanghai\"\n }\n },\n \"ImageTask\": {\n \"EncodeConfig\": {\n \"Format\": \"jpeg\",\n \"Quality\": 75\n },\n \"EnhanceConfig\": {\n \"SuperResolution\": {\n \"Switch\": \"ON\"\n }\n }\n }\n}",
1171
1171
  "output": "{\n \"Response\": {\n \"RequestId\": \"03b25aab-8883-497e-838f-d760c3e220f6\",\n \"TaskId\": \"3pg2p4jEfbFHYo2rgB0Kzl0esg4NeBItcZyllxO4HNJXdNeRUhk9GjDMjCj1auPv\"\n }\n}",
1172
1172
  "title": "发起图片增强"
1173
+ },
1174
+ {
1175
+ "document": "发起图片擦除",
1176
+ "input": "POST / HTTP/1.1\nHost: mps.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ProcessImage\n<公共请求参数>\n\n{\n \"InputInfo\": {\n \"Type\": \"COS\",\n \"CosInputInfo\": {\n \"Bucket\": \"bucket-test\",\n \"Region\": \"ap-shanghai\",\n \"Object\": \"/image/test.png\"\n }\n },\n \"OutputStorage\": {\n \"Type\": \"COS\",\n \"CosOutputStorage\": {\n \"Bucket\": \"bucket-test\",\n \"Region\": \"ap-shanghai\"\n }\n },\n \"ImageTask\": {\n \"EncodeConfig\": {\n \"Format\": \"jpeg\",\n \"Quality\": 75\n },\n \"EraseConfig\": {\n \"ImageEraseLogo\": {\n \"Switch\": \"ON\",\n \"ImageAreaBoxes\": [\n {\n \"Type\": \"logo\",\n \"AreaCoordSet\": [\n 101,\n 85,\n 111,\n 95\n ]\n }\n ]\n }\n }\n }\n}",
1177
+ "output": "{\n \"Response\": {\n \"RequestId\": \"03b25aab-8883-497e-838f-d760c3e220f6\",\n \"TaskId\": \"3pg2p4jEfbFHYo2rgB0Kzl0esg4NeBItcZyllxO4HNJXdNeRUhk9GjDMjCj1auPv\"\n }\n}",
1178
+ "title": "发起图片擦除"
1173
1179
  }
1174
1180
  ],
1175
1181
  "ProcessLiveStream": [
@@ -5373,58 +5373,6 @@ def doDescribeDBInstanceAttribute(args, parsed_globals):
5373
5373
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5374
5374
 
5375
5375
 
5376
- def doUpgradeDBInstance(args, parsed_globals):
5377
- g_param = parse_global_arg(parsed_globals)
5378
-
5379
- if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
5380
- cred = credential.CVMRoleCredential()
5381
- elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
5382
- cred = credential.STSAssumeRoleCredential(
5383
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5384
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5385
- )
5386
- 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):
5387
- cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5388
- else:
5389
- cred = credential.Credential(
5390
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
5391
- )
5392
- http_profile = HttpProfile(
5393
- reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
5394
- reqMethod="POST",
5395
- endpoint=g_param[OptionsDefine.Endpoint],
5396
- proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5397
- )
5398
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5399
- if g_param[OptionsDefine.Language]:
5400
- profile.language = g_param[OptionsDefine.Language]
5401
- mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5402
- client = mod.PostgresClient(cred, g_param[OptionsDefine.Region], profile)
5403
- client._sdkVersion += ("_CLI_" + __version__)
5404
- models = MODELS_MAP[g_param[OptionsDefine.Version]]
5405
- model = models.UpgradeDBInstanceRequest()
5406
- model.from_json_string(json.dumps(args))
5407
- start_time = time.time()
5408
- while True:
5409
- rsp = client.UpgradeDBInstance(model)
5410
- result = rsp.to_json_string()
5411
- try:
5412
- json_obj = json.loads(result)
5413
- except TypeError as e:
5414
- json_obj = json.loads(result.decode('utf-8')) # python3.3
5415
- if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
5416
- break
5417
- cur_time = time.time()
5418
- if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
5419
- raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
5420
- (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
5421
- search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
5422
- else:
5423
- print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
5424
- time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
5425
- FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5426
-
5427
-
5428
5376
  def doCreateInstances(args, parsed_globals):
5429
5377
  g_param = parse_global_arg(parsed_globals)
5430
5378
 
@@ -5591,7 +5539,6 @@ ACTION_MAP = {
5591
5539
  "LockAccount": doLockAccount,
5592
5540
  "DescribeReadOnlyGroups": doDescribeReadOnlyGroups,
5593
5541
  "DescribeDBInstanceAttribute": doDescribeDBInstanceAttribute,
5594
- "UpgradeDBInstance": doUpgradeDBInstance,
5595
5542
  "CreateInstances": doCreateInstances,
5596
5543
 
5597
5544
  }
@@ -239,9 +239,9 @@
239
239
  "status": "online"
240
240
  },
241
241
  "DescribeDBBackups": {
242
- "document": "本接口(DescribeDBBackups)用于查询实例备份列表。本接口已废弃,推荐使用接口[DescribeBaseBackups](https://cloud.tencent.com/document/api/409/89022)替代。",
242
+ "document": "本接口(DescribeDBBackups)用于查询实例备份列表。**本接口属于早期接口,已停止功能迭代,推荐使用接口**[DescribeBaseBackups](https://cloud.tencent.com/document/api/409/89022)**替代**。",
243
243
  "input": "DescribeDBBackupsRequest",
244
- "name": "查询实例备份列表(废弃)",
244
+ "name": "查询实例备份列表",
245
245
  "output": "DescribeDBBackupsResponse",
246
246
  "status": "online"
247
247
  },
@@ -309,9 +309,9 @@
309
309
  "status": "online"
310
310
  },
311
311
  "DescribeDBXlogs": {
312
- "document": "本接口(DescribeDBXlogs)用于获取实例Xlog列表。本接口已废弃,推荐使用接口[DescribeLogBackups](https://cloud.tencent.com/document/api/409/89021)替代。",
312
+ "document": "本接口(DescribeDBXlogs)用于获取实例Xlog列表。 **本接口属于早期接口,已停止功能迭代,推荐使用接口**[DescribeLogBackups](https://cloud.tencent.com/document/api/409/89021)**替代**。",
313
313
  "input": "DescribeDBXlogsRequest",
314
- "name": "获取实例Xlog列表(废弃)",
314
+ "name": "获取实例Xlog列表",
315
315
  "output": "DescribeDBXlogsResponse",
316
316
  "status": "online"
317
317
  },
@@ -393,9 +393,9 @@
393
393
  "status": "online"
394
394
  },
395
395
  "DescribeProductConfig": {
396
- "document": "本接口(DescribeProductConfig)用于查询售卖规格配置。本接口已废弃,推荐使用新接口[DescribeClasses](https://cloud.tencent.com/document/api/409/89019)",
396
+ "document": "本接口(DescribeProductConfig)用于查询售卖规格配置。**本接口属于早期接口,已停止功能迭代,推荐使用新接口**[DescribeClasses](https://cloud.tencent.com/document/api/409/89019)**替代**。",
397
397
  "input": "DescribeProductConfigRequest",
398
- "name": "查询售卖规格配置(废弃)",
398
+ "name": "查询售卖规格配置",
399
399
  "output": "DescribeProductConfigResponse",
400
400
  "status": "online"
401
401
  },
@@ -714,13 +714,6 @@
714
714
  "output": "UnlockAccountResponse",
715
715
  "status": "online"
716
716
  },
717
- "UpgradeDBInstance": {
718
- "document": "早期接口,不规范,已提供新接口 ModifyDBInstanceSpec 替换\n\n本接口(UpgradeDBInstance)用于升级实例配置。本接口已废弃,推荐使用接口[ModifyDBInstanceSpec](https://cloud.tencent.com/document/api/409/63689)替代。",
719
- "input": "UpgradeDBInstanceRequest",
720
- "name": "升级实例配置(废弃)",
721
- "output": "UpgradeDBInstanceResponse",
722
- "status": "deprecated"
723
- },
724
717
  "UpgradeDBInstanceKernelVersion": {
725
718
  "document": "本接口(UpgradeDBInstanceKernelVersion)用于升级实例的内核版本号。",
726
719
  "input": "UpgradeDBInstanceKernelVersionRequest",
@@ -5337,7 +5330,7 @@
5337
5330
  {
5338
5331
  "disabled": false,
5339
5332
  "document": "备份列表",
5340
- "example": "[ { \"SetId\": \"f77ecd1a-087c-5c66-8c35-95c835d7ec24\", \"Status\": 2, \"InternalAddr\": \"http://172.16.16.30:8366/download/20180622015612.tar.gz?giz7Z4LlMjascFkshSSB4+B1gaI0F3HAQIZcFPDbIsdfgfJdfs+89qfhuYQ5wC0ooTcDIdUwB4iJlL1by8xfKkcMAv8nr8g67P6hhg5YOnk=\", \"StartTime\": \"2018-06-22 01:56:01.181971\", \"ExternalAddr\": \"https://gz-dl-postgres.cloud.tencent.com/download/20180622015612.tar.gz?giz7Z4LlMjascFkshSSB4+B1gaI0F3HAQIZcFPDbIsdfgfJdfs+89qfhuYQ5wC0ooTcDIdUwB4iJlL1by8xfKkcMAv8nr8g67P6hhg5YOnk=\", \"Strategy\": 1, \"DbList\": [ \"db1\" ], \"Way\": 1, \"EndTime\": \"2018-06-22 01:56:55.071181\", \"Type\": 1, \"Id\": 450, \"Size\": 3654968 } ]",
5333
+ "example": "",
5341
5334
  "member": "DBBackup",
5342
5335
  "name": "BackupList",
5343
5336
  "output_required": true,
@@ -6014,7 +6007,7 @@
6014
6007
  {
6015
6008
  "disabled": false,
6016
6009
  "document": "Xlog列表",
6017
- "example": "[ { \"StartTime\": \"2018-06-22 01:56:46\", \"InternalAddr\": \"http://172.16.16.30:8366/download/20180622015646_20180622015653.tar.gz?giz7Z4LlMjal0S0oJY6+5JbQ1MfhjybTALKlriBmLUrmJMxzi1C3EagZ/IhOQeSGyXm+Qr3D3I2GL1G4RV69vLVylUaeIJ+zH+CEG5Ast0GoDmpzjJ5Jaw==\", \"EndTime\": \"2018-06-22 01:56:53\", \"ExternalAddr\": \"https://gz-dl-postgres.cloud.tencent.com/download/20180622015646_20180622015653.tar.gz?giz7Z4LlMjal0S0oJY6+5JbQ1MfhjybTALKlriBmLUrmJMxzi1C3EagZ/IhOQeSGyXm+Qr3D3I2GL1G4RV69vLVylUaeIJ+zH+CEG5Ast0GoDmpzjJ5Jaw==\", \"Id\": 450, \"Size\": 247967 }, { \"StartTime\": \"2018-06-22 01:56:17\", \"InternalAddr\": \"http://172.16.16.30:8366/download/20180622015617_20180622015645.tar.gz?giz7Z4LlMjal0S0oJY6+5JbQ1MfhjybTALKlriBmLUrmJMxzi1C3Eamxg5sq4mNUSXLgasiI8P5xiJVUBOrLUPKLYacTxFWP8y56/f36byxdYH5+PGMzOA==\", \"EndTime\": \"2018-06-22 01:56:45\", \"ExternalAddr\": \"https://gz-dl-postgres.cloud.tencent.com/download/20180622015617_20180622015645.tar.gz?giz7Z4LlMjal0S0oJY6+5JbQ1MfhjybTALKlriBmLUrmJMxzi1C3Eamxg5sq4mNUSXLgasiI8P5xiJVUBOrLUPKLYacTxFWP8y56/f36byxdYH5+PGMzOA==\", \"Id\": 450, \"Size\": 899618 } ]",
6010
+ "example": "",
6018
6011
  "member": "Xlog",
6019
6012
  "name": "XlogList",
6020
6013
  "output_required": true,
@@ -6817,7 +6810,7 @@
6817
6810
  {
6818
6811
  "disabled": false,
6819
6812
  "document": "售卖规格列表。",
6820
- "example": "[ { \"Region\": \"ap-guangzhou\", \"Zone\": \"ap-guangzhou-2\", \"SupportKMSRegions\": [ \"ap-guangzhou\" ], \"SpecItemInfoList\": [ { \"SpecCode\": \"pg.it.2xlarge16\", \"Version\": \"10.4\", \"VersionName\": \"PostgreSQL 10\", \"Cpu\": 1, \"Memory\": 2048, \"MaxStorage\": 1000, \"MinStorage\": 10, \"Qps\": 2100, \"Pid\": 11004, \"Type\": \"TS85\", \"KernelVersion\": \"v10.4_r1.0\", \"MajorVersion\": \"10\", \"IsSupportTDE\": 1 } ] } ]",
6813
+ "example": "",
6821
6814
  "member": "SpecInfo",
6822
6815
  "name": "SpecInfoList",
6823
6816
  "output_required": true,
@@ -12075,125 +12068,6 @@
12075
12068
  ],
12076
12069
  "type": "object"
12077
12070
  },
12078
- "UpgradeDBInstanceRequest": {
12079
- "document": "UpgradeDBInstance请求参数结构体",
12080
- "members": [
12081
- {
12082
- "disabled": false,
12083
- "document": "升级后的实例内存大小,单位GB",
12084
- "example": "2",
12085
- "member": "int64",
12086
- "name": "Memory",
12087
- "required": true,
12088
- "type": "int"
12089
- },
12090
- {
12091
- "disabled": false,
12092
- "document": "升级后的实例磁盘大小,单位GB",
12093
- "example": "200",
12094
- "member": "int64",
12095
- "name": "Storage",
12096
- "required": true,
12097
- "type": "int"
12098
- },
12099
- {
12100
- "disabled": false,
12101
- "document": "实例ID,形如postgres-lnp6j617",
12102
- "example": "postgres-6bwgamo3",
12103
- "member": "string",
12104
- "name": "DBInstanceId",
12105
- "required": true,
12106
- "type": "string"
12107
- },
12108
- {
12109
- "disabled": false,
12110
- "document": "是否自动使用代金券,1是,0否,默认不使用",
12111
- "example": "0",
12112
- "member": "int64",
12113
- "name": "AutoVoucher",
12114
- "required": false,
12115
- "type": "int"
12116
- },
12117
- {
12118
- "disabled": false,
12119
- "document": "代金券ID列表,目前仅支持指定一张代金券",
12120
- "example": "[ \"OZRCGNAV8D9BMI9KMG1FIQ\" ]",
12121
- "member": "string",
12122
- "name": "VoucherIds",
12123
- "required": false,
12124
- "type": "list"
12125
- },
12126
- {
12127
- "disabled": false,
12128
- "document": "活动ID",
12129
- "example": "36921",
12130
- "member": "int64",
12131
- "name": "ActivityId",
12132
- "required": false,
12133
- "type": "int"
12134
- },
12135
- {
12136
- "disabled": false,
12137
- "document": "指定实例配置完成变更后的切换时间,默认为 立即切换,入参为 0 :立即切换 。1:指定时间切换。",
12138
- "example": "0",
12139
- "member": "int64",
12140
- "name": "SwitchTag",
12141
- "required": false,
12142
- "type": "int"
12143
- },
12144
- {
12145
- "disabled": false,
12146
- "document": "切换开始时间",
12147
- "example": "8:30:00",
12148
- "member": "string",
12149
- "name": "SwitchStartTime",
12150
- "required": false,
12151
- "type": "string"
12152
- },
12153
- {
12154
- "disabled": false,
12155
- "document": "切换截止时间",
12156
- "example": "8:30:00",
12157
- "member": "string",
12158
- "name": "SwitchEndTime",
12159
- "required": false,
12160
- "type": "string"
12161
- }
12162
- ],
12163
- "type": "object"
12164
- },
12165
- "UpgradeDBInstanceResponse": {
12166
- "document": "UpgradeDBInstance返回参数结构体",
12167
- "members": [
12168
- {
12169
- "disabled": false,
12170
- "document": "交易名字。",
12171
- "example": "201806127634",
12172
- "member": "string",
12173
- "name": "DealName",
12174
- "output_required": true,
12175
- "type": "string",
12176
- "value_allowed_null": false
12177
- },
12178
- {
12179
- "disabled": false,
12180
- "document": "冻结流水号",
12181
- "example": "20241204591002321368561",
12182
- "member": "string",
12183
- "name": "BillId",
12184
- "output_required": true,
12185
- "type": "string",
12186
- "value_allowed_null": false
12187
- },
12188
- {
12189
- "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
12190
- "member": "string",
12191
- "name": "RequestId",
12192
- "type": "string"
12193
- }
12194
- ],
12195
- "type": "object"
12196
- },
12197
12071
  "Version": {
12198
12072
  "document": "数据库版本号信息",
12199
12073
  "members": [
@@ -972,14 +972,6 @@
972
972
  "title": "解除数据库账号锁定"
973
973
  }
974
974
  ],
975
- "UpgradeDBInstance": [
976
- {
977
- "document": "调整实例postgres-6bwgamo3规格为内存2GB、存储100GB。",
978
- "input": "POST / HTTP/1.1\nHost: postgres.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpgradeDBInstance\n<公共请求参数>\n\n{\n \"Storage\": \"200\",\n \"DBInstanceId\": \"postgres-6bwgamo3\",\n \"Memory\": \"2\"\n}",
979
- "output": "{\n \"Response\": {\n \"RequestId\": \"08fdf411-5d39-44f2-8e1d-a58ee60b237d\",\n \"DealName\": \"201806127634\",\n \"BillId\": \"20241204591002321368561\"\n }\n}",
980
- "title": "升级实例"
981
- }
982
- ],
983
975
  "UpgradeDBInstanceKernelVersion": [
984
976
  {
985
977
  "document": "升级实例内核小版本",