tccli 3.0.1124.1__py2.py3-none-any.whl → 3.0.1126.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.
- tccli/__init__.py +1 -1
- tccli/services/cls/v20201016/api.json +1 -1
- tccli/services/cynosdb/v20190107/api.json +13 -10
- tccli/services/cynosdb/v20190107/examples.json +5 -5
- tccli/services/dlc/dlc_client.py +602 -72
- tccli/services/dlc/v20210125/api.json +856 -25
- tccli/services/dlc/v20210125/examples.json +86 -0
- tccli/services/domain/v20180808/api.json +702 -40
- tccli/services/domain/v20180808/examples.json +13 -13
- tccli/services/dts/v20180330/api.json +62 -37
- tccli/services/dts/v20180330/examples.json +1 -1
- tccli/services/eb/v20210416/api.json +63 -45
- tccli/services/eb/v20210416/examples.json +3 -9
- tccli/services/emr/v20190103/api.json +20 -0
- tccli/services/ess/v20201111/api.json +1 -1
- tccli/services/essbasic/v20210526/api.json +1 -1
- tccli/services/iotexplorer/v20190423/api.json +10 -10
- tccli/services/iotexplorer/v20190423/examples.json +1 -1
- tccli/services/mongodb/v20190725/api.json +18 -13
- tccli/services/monitor/v20180724/api.json +3 -2
- tccli/services/monitor/v20180724/examples.json +2 -2
- tccli/services/ocr/v20181119/api.json +4 -4
- tccli/services/ocr/v20181119/examples.json +1 -1
- tccli/services/postgres/postgres_client.py +57 -4
- tccli/services/postgres/v20170312/api.json +415 -284
- tccli/services/postgres/v20170312/examples.json +29 -15
- tccli/services/redis/redis_client.py +53 -0
- tccli/services/redis/v20180412/api.json +151 -0
- tccli/services/redis/v20180412/examples.json +8 -0
- tccli/services/rum/v20210622/examples.json +2 -2
- tccli/services/smh/v20210712/api.json +2 -2
- tccli/services/teo/teo_client.py +216 -4
- tccli/services/teo/v20220901/api.json +380 -5
- tccli/services/teo/v20220901/examples.json +32 -0
- tccli/services/tione/v20211111/api.json +70 -3
- tccli/services/tione/v20211111/examples.json +1 -1
- tccli/services/tse/tse_client.py +53 -0
- tccli/services/tse/v20201207/api.json +43 -0
- tccli/services/tse/v20201207/examples.json +8 -0
- tccli/services/vtc/v20240223/api.json +20 -0
- tccli/services/wedata/v20210820/api.json +20 -0
- {tccli-3.0.1124.1.dist-info → tccli-3.0.1126.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1124.1.dist-info → tccli-3.0.1126.1.dist-info}/RECORD +46 -46
- {tccli-3.0.1124.1.dist-info → tccli-3.0.1126.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1124.1.dist-info → tccli-3.0.1126.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1124.1.dist-info → tccli-3.0.1126.1.dist-info}/license_files/LICENSE +0 -0
| @@ -2414,8 +2414,8 @@ | |
| 2414 2414 | 
             
                  "members": [
         | 
| 2415 2415 | 
             
                    {
         | 
| 2416 2416 | 
             
                      "disabled": false,
         | 
| 2417 | 
            -
                      "document": "指定待查询参数列表的实例ID。例如:cmgo-p8vn****。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID。",
         | 
| 2418 | 
            -
                      "example": "cmgo | 
| 2417 | 
            +
                      "document": "指定待查询参数列表的实例 ID。例如:cmgo-p8vn****。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID。",
         | 
| 2418 | 
            +
                      "example": "cmgo-p8vn****",
         | 
| 2419 2419 | 
             
                      "member": "string",
         | 
| 2420 2420 | 
             
                      "name": "InstanceId",
         | 
| 2421 2421 | 
             
                      "required": true,
         | 
| @@ -2429,19 +2429,21 @@ | |
| 2429 2429 | 
             
                  "members": [
         | 
| 2430 2430 | 
             
                    {
         | 
| 2431 2431 | 
             
                      "disabled": false,
         | 
| 2432 | 
            -
                      "document": " | 
| 2432 | 
            +
                      "document": "参数值为枚举类型的参数集合。",
         | 
| 2433 2433 | 
             
                      "example": "无",
         | 
| 2434 2434 | 
             
                      "member": "InstanceEnumParam",
         | 
| 2435 2435 | 
             
                      "name": "InstanceEnumParam",
         | 
| 2436 | 
            +
                      "output_required": true,
         | 
| 2436 2437 | 
             
                      "type": "list",
         | 
| 2437 2438 | 
             
                      "value_allowed_null": false
         | 
| 2438 2439 | 
             
                    },
         | 
| 2439 2440 | 
             
                    {
         | 
| 2440 2441 | 
             
                      "disabled": false,
         | 
| 2441 | 
            -
                      "document": "参数值为 Integer  | 
| 2442 | 
            +
                      "document": "参数值为 Integer 类型的参数集合。",
         | 
| 2442 2443 | 
             
                      "example": "无",
         | 
| 2443 2444 | 
             
                      "member": "InstanceIntegerParam",
         | 
| 2444 2445 | 
             
                      "name": "InstanceIntegerParam",
         | 
| 2446 | 
            +
                      "output_required": true,
         | 
| 2445 2447 | 
             
                      "type": "list",
         | 
| 2446 2448 | 
             
                      "value_allowed_null": false
         | 
| 2447 2449 | 
             
                    },
         | 
| @@ -2451,6 +2453,7 @@ | |
| 2451 2453 | 
             
                      "example": "无",
         | 
| 2452 2454 | 
             
                      "member": "InstanceTextParam",
         | 
| 2453 2455 | 
             
                      "name": "InstanceTextParam",
         | 
| 2456 | 
            +
                      "output_required": true,
         | 
| 2454 2457 | 
             
                      "type": "list",
         | 
| 2455 2458 | 
             
                      "value_allowed_null": false
         | 
| 2456 2459 | 
             
                    },
         | 
| @@ -2460,15 +2463,17 @@ | |
| 2460 2463 | 
             
                      "example": "无",
         | 
| 2461 2464 | 
             
                      "member": "InstanceMultiParam",
         | 
| 2462 2465 | 
             
                      "name": "InstanceMultiParam",
         | 
| 2466 | 
            +
                      "output_required": true,
         | 
| 2463 2467 | 
             
                      "type": "list",
         | 
| 2464 2468 | 
             
                      "value_allowed_null": false
         | 
| 2465 2469 | 
             
                    },
         | 
| 2466 2470 | 
             
                    {
         | 
| 2467 2471 | 
             
                      "disabled": false,
         | 
| 2468 | 
            -
                      "document": " | 
| 2472 | 
            +
                      "document": "当前实例支持修改的参数数量。",
         | 
| 2469 2473 | 
             
                      "example": "2",
         | 
| 2470 2474 | 
             
                      "member": "uint64",
         | 
| 2471 2475 | 
             
                      "name": "TotalCount",
         | 
| 2476 | 
            +
                      "output_required": true,
         | 
| 2472 2477 | 
             
                      "type": "int",
         | 
| 2473 2478 | 
             
                      "value_allowed_null": false
         | 
| 2474 2479 | 
             
                    },
         | 
| @@ -3745,7 +3750,7 @@ | |
| 3745 3750 | 
             
                      "example": "\"all\"",
         | 
| 3746 3751 | 
             
                      "member": "string",
         | 
| 3747 3752 | 
             
                      "name": "CurrentValue",
         | 
| 3748 | 
            -
                      " | 
| 3753 | 
            +
                      "output_required": true,
         | 
| 3749 3754 | 
             
                      "type": "string",
         | 
| 3750 3755 | 
             
                      "value_allowed_null": false
         | 
| 3751 3756 | 
             
                    },
         | 
| @@ -3755,7 +3760,7 @@ | |
| 3755 3760 | 
             
                      "example": "\"slowOp\"",
         | 
| 3756 3761 | 
             
                      "member": "string",
         | 
| 3757 3762 | 
             
                      "name": "DefaultValue",
         | 
| 3758 | 
            -
                      " | 
| 3763 | 
            +
                      "output_required": true,
         | 
| 3759 3764 | 
             
                      "type": "string",
         | 
| 3760 3765 | 
             
                      "value_allowed_null": false
         | 
| 3761 3766 | 
             
                    },
         | 
| @@ -3765,7 +3770,7 @@ | |
| 3765 3770 | 
             
                      "example": "[\"off\",\"slowOp\",\"all\"]",
         | 
| 3766 3771 | 
             
                      "member": "string",
         | 
| 3767 3772 | 
             
                      "name": "EnumValue",
         | 
| 3768 | 
            -
                      " | 
| 3773 | 
            +
                      "output_required": true,
         | 
| 3769 3774 | 
             
                      "type": "list",
         | 
| 3770 3775 | 
             
                      "value_allowed_null": false
         | 
| 3771 3776 | 
             
                    },
         | 
| @@ -3775,7 +3780,7 @@ | |
| 3775 3780 | 
             
                      "example": "\"0\"",
         | 
| 3776 3781 | 
             
                      "member": "string",
         | 
| 3777 3782 | 
             
                      "name": "NeedRestart",
         | 
| 3778 | 
            -
                      " | 
| 3783 | 
            +
                      "output_required": true,
         | 
| 3779 3784 | 
             
                      "type": "string",
         | 
| 3780 3785 | 
             
                      "value_allowed_null": false
         | 
| 3781 3786 | 
             
                    },
         | 
| @@ -3785,7 +3790,7 @@ | |
| 3785 3790 | 
             
                      "example": "\"operationProfiling.mode\"",
         | 
| 3786 3791 | 
             
                      "member": "string",
         | 
| 3787 3792 | 
             
                      "name": "ParamName",
         | 
| 3788 | 
            -
                      " | 
| 3793 | 
            +
                      "output_required": true,
         | 
| 3789 3794 | 
             
                      "type": "string",
         | 
| 3790 3795 | 
             
                      "value_allowed_null": false
         | 
| 3791 3796 | 
             
                    },
         | 
| @@ -3795,7 +3800,7 @@ | |
| 3795 3800 | 
             
                      "example": "[\"事务加锁超时时间\",\"max transaction lockrequest timeout millis\"]",
         | 
| 3796 3801 | 
             
                      "member": "string",
         | 
| 3797 3802 | 
             
                      "name": "Tips",
         | 
| 3798 | 
            -
                      " | 
| 3803 | 
            +
                      "output_required": true,
         | 
| 3799 3804 | 
             
                      "type": "list",
         | 
| 3800 3805 | 
             
                      "value_allowed_null": false
         | 
| 3801 3806 | 
             
                    },
         | 
| @@ -3805,7 +3810,7 @@ | |
| 3805 3810 | 
             
                      "example": "\"enum\"",
         | 
| 3806 3811 | 
             
                      "member": "string",
         | 
| 3807 3812 | 
             
                      "name": "ValueType",
         | 
| 3808 | 
            -
                      " | 
| 3813 | 
            +
                      "output_required": true,
         | 
| 3809 3814 | 
             
                      "type": "string",
         | 
| 3810 3815 | 
             
                      "value_allowed_null": false
         | 
| 3811 3816 | 
             
                    },
         | 
| @@ -3815,7 +3820,7 @@ | |
| 3815 3820 | 
             
                      "example": "1",
         | 
| 3816 3821 | 
             
                      "member": "uint64",
         | 
| 3817 3822 | 
             
                      "name": "Status",
         | 
| 3818 | 
            -
                      " | 
| 3823 | 
            +
                      "output_required": true,
         | 
| 3819 3824 | 
             
                      "type": "int",
         | 
| 3820 3825 | 
             
                      "value_allowed_null": false
         | 
| 3821 3826 | 
             
                    }
         | 
| @@ -638,7 +638,7 @@ | |
| 638 638 | 
             
                  "status": "online"
         | 
| 639 639 | 
             
                },
         | 
| 640 640 | 
             
                "DescribePrometheusInstanceUsage": {
         | 
| 641 | 
            -
                  "document": " | 
| 641 | 
            +
                  "document": "查询Prometheus按量实例用量",
         | 
| 642 642 | 
             
                  "input": "DescribePrometheusInstanceUsageRequest",
         | 
| 643 643 | 
             
                  "name": "查询Prometheus按量实例用量",
         | 
| 644 644 | 
             
                  "output": "DescribePrometheusInstanceUsageResponse",
         | 
| @@ -8535,6 +8535,7 @@ | |
| 8535 8535 | 
             
                      "example": "[]",
         | 
| 8536 8536 | 
             
                      "member": "GrafanaNotificationChannel",
         | 
| 8537 8537 | 
             
                      "name": "NotificationChannelSet",
         | 
| 8538 | 
            +
                      "output_required": true,
         | 
| 8538 8539 | 
             
                      "type": "list",
         | 
| 8539 8540 | 
             
                      "value_allowed_null": false
         | 
| 8540 8541 | 
             
                    },
         | 
| @@ -11988,7 +11989,7 @@ | |
| 11988 11989 | 
             
                      "example": "无",
         | 
| 11989 11990 | 
             
                      "member": "PrometheusInstanceTenantUsage",
         | 
| 11990 11991 | 
             
                      "name": "UsageSet",
         | 
| 11991 | 
            -
                      " | 
| 11992 | 
            +
                      "output_required": true,
         | 
| 11992 11993 | 
             
                      "type": "list",
         | 
| 11993 11994 | 
             
                      "value_allowed_null": true
         | 
| 11994 11995 | 
             
                    },
         | 
| @@ -706,7 +706,7 @@ | |
| 706 706 | 
             
                  {
         | 
| 707 707 | 
             
                    "document": "列出 Grafana 告警通道",
         | 
| 708 708 | 
             
                    "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeGrafanaNotificationChannels\n<公共请求参数>\n\n{\n    \"InstanceId\": \"grafana-12345678\",\n    \"ChannelState\": 0,\n    \"Limit\": 0,\n    \"Offset\": 0,\n    \"ChannelName\": \"test\",\n    \"ChannelIDs\": [\n        \"nchannel-abcd1234\"\n    ]\n}",
         | 
| 709 | 
            -
                    "output": "{\n    \"Response\": {\n        \"NotificationChannelSet\": [\n            {\n                \"ChannelId\": \" | 
| 709 | 
            +
                    "output": "{\n    \"Response\": {\n        \"NotificationChannelSet\": [\n            {\n                \"ChannelId\": \"abc\",\n                \"ChannelName\": \"abc\",\n                \"Receivers\": [\n                    \"abc\"\n                ],\n                \"CreatedAt\": \"2020-09-22T00:00:00+00:00\",\n                \"UpdatedAt\": \"2020-09-22T00:00:00+00:00\",\n                \"OrgId\": \"abc\",\n                \"ExtraOrgIds\": [\n                    \"abc\"\n                ],\n                \"OrgIds\": [\n                    \"abc\"\n                ],\n                \"OrganizationIds\": [\n                    \"abc\"\n                ]\n            }\n        ],\n        \"RequestId\": \"abc\"\n    }\n}",
         | 
| 710 710 | 
             
                    "title": "列出 Grafana 告警通道"
         | 
| 711 711 | 
             
                  }
         | 
| 712 712 | 
             
                ],
         | 
| @@ -1311,7 +1311,7 @@ | |
| 1311 1311 | 
             
                "UpdateDNSConfig": [
         | 
| 1312 1312 | 
             
                  {
         | 
| 1313 1313 | 
             
                    "document": "更新 Grafana 的 DNS 配置",
         | 
| 1314 | 
            -
                    "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateDNSConfig\n<公共请求参数>\n\n{\n    \"InstanceId\": \"grafana-12345678\",\n    \"NameServers\": [\n        \" | 
| 1314 | 
            +
                    "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateDNSConfig\n<公共请求参数>\n\n{\n    \"InstanceId\": \"grafana-12345678\",\n    \"NameServers\": [\n        \"1.1.1.1\"\n    ]\n}",
         | 
| 1315 1315 | 
             
                    "output": "{\n    \"Response\": {\n        \"RequestId\": \"fpllngzieyoh54e1244ols7k2hh3gdny\"\n    }\n}",
         | 
| 1316 1316 | 
             
                    "title": "更新 Grafana 的 DNS 配置"
         | 
| 1317 1317 | 
             
                  }
         | 
| @@ -141,9 +141,9 @@ | |
| 141 141 | 
             
                  "status": "online"
         | 
| 142 142 | 
             
                },
         | 
| 143 143 | 
             
                "GeneralAccurateOCR": {
         | 
| 144 | 
            -
                  "document": "本接口支持图像整体文字的检测和识别。支持中文、英文、中英文、数字和特殊字符号的识别,并返回文字框位置和文字内容。\n\n适用于文字较多、版式复杂、对识别准召率要求较高的场景,如试卷试题、网络图片、街景店招牌、法律卷宗等场景。\n\n | 
| 144 | 
            +
                  "document": "本接口支持图像整体文字的检测和识别。支持中文、英文、中英文、数字和特殊字符号的识别,并返回文字框位置和文字内容。\n\n适用于文字较多、版式复杂、对识别准召率要求较高的场景,如试卷试题、网络图片、街景店招牌、法律卷宗等场景。\n\n产品优势:与通用印刷体识别接口相比,本接口提供更高精度的通用文字识别服务,在手写体、文字较多、长串数字、小字、模糊字、倾斜文本等困难场景下,高精度版的准确率和召回率更高。\n\n通用文字识别不同版本的差异如下:\n<table style=\"width:715px\">\n      <thead>\n        <tr>\n          <th style=\"width:150px\"></th>\n          <th >【荐】通用印刷体识别(高精度版)</th>\n          <th style=\"width:200px\"><a href=\"https://cloud.tencent.com/document/product/866/33526\">【荐】通用印刷体识别</a></th>\n          <th><a href=\"https://cloud.tencent.com/document/product/866/37831\">通用印刷体识别(精简版)</a></th>\n        </tr>\n      </thead>\n      <tbody>\n        <tr>\n          <td> 适用场景</td>\n          <td>适用于文字较多、长串数字、小字、模糊字、倾斜文本等困难场景</td>\n          <td>适用于所有通用场景的印刷体识别</td>\n          <td>适用于快速文本识别场景,准召率有一定损失,价格更优惠</td>\n        </tr>\n        <tr>\n          <td>识别准确率</td>\n          <td>99%</td>\n          <td>96%</td>\n          <td>91%</td>\n        </tr>\n        <tr>\n          <td>价格</td>\n          <td>高</td>\n          <td>中</td>\n          <td>低</td>\n        </tr>\n        <tr>\n          <td>支持的语言</td>\n          <td>中文、英文、中英文</td>\n          <td>中文、英文、中英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语</td>  \n          <td>中文、英文、中英文</td>\n        </tr>\n        <tr>\n          <td>自动语言检测</td>\n          <td>支持</td>\n          <td>支持</td>  \n          <td>支持</td>\n        </tr>\n        <tr>\n          <td>返回文本行坐标</td>\n          <td>支持</td>\n          <td>支持</td>\n          <td>支持</td>\n        </tr>\n        <tr>\n          <td>自动旋转纠正</td>\n          <td>支持旋转识别,返回角度信息</td>\n          <td>支持旋转识别,返回角度信息</td>\n          <td>支持旋转识别,返回角度信息</td>\n        </tr>\n      </tbody>\n    </table>\n\n默认接口请求频率限制:10次/秒。",
         | 
| 145 145 | 
             
                  "input": "GeneralAccurateOCRRequest",
         | 
| 146 | 
            -
                  "name": " | 
| 146 | 
            +
                  "name": "通用文字识别(高精度版)",
         | 
| 147 147 | 
             
                  "output": "GeneralAccurateOCRResponse",
         | 
| 148 148 | 
             
                  "status": "online"
         | 
| 149 149 | 
             
                },
         | 
| @@ -582,7 +582,7 @@ | |
| 582 582 | 
             
                  "status": "online"
         | 
| 583 583 | 
             
                },
         | 
| 584 584 | 
             
                "VinOCR": {
         | 
| 585 | 
            -
                  "document": "本接口支持图片内车辆识别代号(VIN | 
| 585 | 
            +
                  "document": "本接口支持图片内车辆识别代号(VIN)的检测和识别。\n默认接口请求频率限制:10次/秒。",
         | 
| 586 586 | 
             
                  "input": "VinOCRRequest",
         | 
| 587 587 | 
             
                  "name": "车辆VIN码识别",
         | 
| 588 588 | 
             
                  "output": "VinOCRResponse",
         | 
| @@ -20664,7 +20664,7 @@ | |
| 20664 20664 | 
             
                      "example": "LBV2B25G2E5069977",
         | 
| 20665 20665 | 
             
                      "member": "string",
         | 
| 20666 20666 | 
             
                      "name": "Vin",
         | 
| 20667 | 
            -
                      " | 
| 20667 | 
            +
                      "output_required": true,
         | 
| 20668 20668 | 
             
                      "type": "string",
         | 
| 20669 20669 | 
             
                      "value_allowed_null": false
         | 
| 20670 20670 | 
             
                    },
         | 
| @@ -183,7 +183,7 @@ | |
| 183 183 | 
             
                    "document": "图像整体文字的检测和识别,返回文字框位置与文字内容",
         | 
| 184 184 | 
             
                    "input": "POST / HTTP/1.1\nHost: ocr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GeneralAccurateOCR\n<公共请求参数>\n\n{\n    \"ImageUrl\": \"https://xx/a.jpg\"\n}",
         | 
| 185 185 | 
             
                    "output": "{\n    \"Response\": {\n        \"Angle\": 359.989990234375,\n        \"RequestId\": \"05441696-96fb-48a8-a445-49df03836fba\",\n        \"TextDetections\": [\n            {\n                \"AdvancedInfo\": \"{\\\"Parag\\\":{\\\"ParagNo\\\":1}}\",\n                \"Confidence\": 99,\n                \"DetectedText\": \"轻断食:正在横扫全球的瘦身革命\",\n                \"ItemPolygon\": {\n                    \"Height\": 22,\n                    \"Width\": 263,\n                    \"X\": 446,\n                    \"Y\": 93\n                },\n                \"Polygon\": [\n                    {\n                        \"X\": 446,\n                        \"Y\": 93\n                    },\n                    {\n                        \"X\": 709,\n                        \"Y\": 96\n                    },\n                    {\n                        \"X\": 708,\n                        \"Y\": 118\n                    },\n                    {\n                        \"X\": 446,\n                        \"Y\": 114\n                    }\n                ],\n                \"WordCoordPoint\": [],\n                \"Words\": []\n            },\n            {\n                \"AdvancedInfo\": \"{\\\"Parag\\\":{\\\"ParagNo\\\":2}}\",\n                \"Confidence\": 99,\n                \"DetectedText\": \"专题报道。\",\n                \"ItemPolygon\": {\n                    \"Height\": 25,\n                    \"Width\": 100,\n                    \"X\": 47,\n                    \"Y\": 201\n                },\n                \"Polygon\": [\n                    {\n                        \"X\": 47,\n                        \"Y\": 201\n                    },\n                    {\n                        \"X\": 147,\n                        \"Y\": 200\n                    },\n                    {\n                        \"X\": 147,\n                        \"Y\": 225\n                    },\n                    {\n                        \"X\": 48,\n                        \"Y\": 226\n                    }\n                ],\n                \"WordCoordPoint\": [],\n                \"Words\": []\n            },\n            {\n                \"AdvancedInfo\": \"{\\\"Parag\\\":{\\\"ParagNo\\\":3}}\",\n                \"Confidence\": 99,\n                \"DetectedText\": \"2009年,我写了 《减肥前要做的101件事》(101 Things to Do\",\n                \"ItemPolygon\": {\n                    \"Height\": 27,\n                    \"Width\": 628,\n                    \"X\": 88,\n                    \"Y\": 244\n                },\n                \"Polygon\": [\n                    {\n                        \"X\": 88,\n                        \"Y\": 244\n                    },\n                    {\n                        \"X\": 716,\n                        \"Y\": 247\n                    },\n                    {\n                        \"X\": 716,\n                        \"Y\": 274\n                    },\n                    {\n                        \"X\": 88,\n                        \"Y\": 271\n                    }\n                ],\n                \"WordCoordPoint\": [],\n                \"Words\": []\n            },\n            {\n                \"AdvancedInfo\": \"{\\\"Parag\\\":{\\\"ParagNo\\\":3}}\",\n                \"Confidence\": 99,\n                \"DetectedText\": \"Before You Diet), 归纳我尝试各种流行减肥法的气馁经验, 每种方\",\n                \"ItemPolygon\": {\n                    \"Height\": 27,\n                    \"Width\": 675,\n                    \"X\": 42,\n                    \"Y\": 292\n                },\n                \"Polygon\": [\n                    {\n                        \"X\": 42,\n                        \"Y\": 292\n                    },\n                    {\n                        \"X\": 717,\n                        \"Y\": 290\n                    },\n                    {\n                        \"X\": 717,\n                        \"Y\": 317\n                    },\n                    {\n                        \"X\": 43,\n                        \"Y\": 320\n                    }\n                ],\n                \"WordCoordPoint\": [],\n                \"Words\": []\n            },\n            {\n                \"AdvancedInfo\": \"{\\\"Parag\\\":{\\\"ParagNo\\\":3}}\",\n                \"Confidence\": 99,\n                \"DetectedText\": \"法似乎都注定失败。\",\n                \"ItemPolygon\": {\n                    \"Height\": 25,\n                    \"Width\": 192,\n                    \"X\": 45,\n                    \"Y\": 340\n                },\n                \"Polygon\": [\n                    {\n                        \"X\": 45,\n                        \"Y\": 340\n                    },\n                    {\n                        \"X\": 237,\n                        \"Y\": 340\n                    },\n                    {\n                        \"X\": 237,\n                        \"Y\": 365\n                    },\n                    {\n                        \"X\": 45,\n                        \"Y\": 365\n                    }\n                ],\n                \"WordCoordPoint\": [],\n                \"Words\": []\n            },\n            {\n                \"AdvancedInfo\": \"{\\\"Parag\\\":{\\\"ParagNo\\\":4}}\",\n                \"Confidence\": 99,\n                \"DetectedText\": \"这二十年来我接触过的减肥方法中, 只有轻断食让我在瘦下来之 \",\n                \"ItemPolygon\": {\n                    \"Height\": 27,\n                    \"Width\": 633,\n                    \"X\": 88,\n                    \"Y\": 384\n                },\n                \"Polygon\": [\n                    {\n                        \"X\": 88,\n                        \"Y\": 384\n                    },\n                    {\n                        \"X\": 721,\n                        \"Y\": 384\n                    },\n                    {\n                        \"X\": 721,\n                        \"Y\": 411\n                    },\n                    {\n                        \"X\": 88,\n                        \"Y\": 411\n                    }\n                ],\n                \"WordCoordPoint\": [],\n                \"Words\": []\n            },\n            {\n                \"AdvancedInfo\": \"{\\\"Parag\\\":{\\\"ParagNo\\\":4}}\",\n                \"Confidence\": 99,\n                \"DetectedText\": \"后不反弹。\",\n                \"ItemPolygon\": {\n                    \"Height\": 24,\n                    \"Width\": 105,\n                    \"X\": 42,\n                    \"Y\": 435\n                },\n                \"Polygon\": [\n                    {\n                        \"X\": 42,\n                        \"Y\": 435\n                    },\n                    {\n                        \"X\": 147,\n                        \"Y\": 433\n                    },\n                    {\n                        \"X\": 148,\n                        \"Y\": 457\n                    },\n                    {\n                        \"X\": 43,\n                        \"Y\": 460\n                    }\n                ],\n                \"WordCoordPoint\": [],\n                \"Words\": []\n            },\n            {\n                \"AdvancedInfo\": \"{\\\"Parag\\\":{\\\"ParagNo\\\":4}}\",\n                \"Confidence\": 96,\n                \"DetectedText\": \"至于抗衰老的健康益处,\",\n                \"ItemPolygon\": {\n                    \"Height\": 24,\n                    \"Width\": 250,\n                    \"X\": 148,\n                    \"Y\": 433\n                },\n                \"Polygon\": [\n                    {\n                        \"X\": 148,\n                        \"Y\": 433\n                    },\n                    {\n                        \"X\": 398,\n                        \"Y\": 433\n                    },\n                    {\n                        \"X\": 398,\n                        \"Y\": 457\n                    },\n                    {\n                        \"X\": 148,\n                        \"Y\": 457\n                    }\n                ],\n                \"WordCoordPoint\": [],\n                \"Words\": []\n            },\n            {\n                \"AdvancedInfo\": \"{\\\"Parag\\\":{\\\"ParagNo\\\":4}}\",\n                \"Confidence\": 99,\n                \"DetectedText\": \"更是得来全不费工夫。\",\n                \"ItemPolygon\": {\n                    \"Height\": 26,\n                    \"Width\": 223,\n                    \"X\": 398,\n                    \"Y\": 431\n                },\n                \"Polygon\": [\n                    {\n                        \"X\": 398,\n                        \"Y\": 431\n                    },\n                    {\n                        \"X\": 621,\n                        \"Y\": 431\n                    },\n                    {\n                        \"X\": 621,\n                        \"Y\": 457\n                    },\n                    {\n                        \"X\": 398,\n                        \"Y\": 457\n                    }\n                ],\n                \"WordCoordPoint\": [],\n                \"Words\": []\n            }\n        ]\n    }\n}",
         | 
| 186 | 
            -
                    "title": " | 
| 186 | 
            +
                    "title": "通用文字识别(高精度版)示例代码 [ 前往调试工具](https://console.cloud.tencent.com/api/explorer?Product=ocr&Action=GeneralAccurateOCR)"
         | 
| 187 187 | 
             
                  }
         | 
| 188 188 | 
             
                ],
         | 
| 189 189 | 
             
                "GeneralBasicOCR": [
         | 
| @@ -2721,7 +2721,7 @@ def doResetAccountPassword(args, parsed_globals): | |
| 2721 2721 | 
             
                FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
         | 
| 2722 2722 |  | 
| 2723 2723 |  | 
| 2724 | 
            -
            def  | 
| 2724 | 
            +
            def doRestoreDBInstanceObjects(args, parsed_globals):
         | 
| 2725 2725 | 
             
                g_param = parse_global_arg(parsed_globals)
         | 
| 2726 2726 |  | 
| 2727 2727 | 
             
                if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
         | 
| @@ -2750,11 +2750,11 @@ def doDescribeDBInstanceAttribute(args, parsed_globals): | |
| 2750 2750 | 
             
                client = mod.PostgresClient(cred, g_param[OptionsDefine.Region], profile)
         | 
| 2751 2751 | 
             
                client._sdkVersion += ("_CLI_" + __version__)
         | 
| 2752 2752 | 
             
                models = MODELS_MAP[g_param[OptionsDefine.Version]]
         | 
| 2753 | 
            -
                model = models. | 
| 2753 | 
            +
                model = models.RestoreDBInstanceObjectsRequest()
         | 
| 2754 2754 | 
             
                model.from_json_string(json.dumps(args))
         | 
| 2755 2755 | 
             
                start_time = time.time()
         | 
| 2756 2756 | 
             
                while True:
         | 
| 2757 | 
            -
                    rsp = client. | 
| 2757 | 
            +
                    rsp = client.RestoreDBInstanceObjects(model)
         | 
| 2758 2758 | 
             
                    result = rsp.to_json_string()
         | 
| 2759 2759 | 
             
                    try:
         | 
| 2760 2760 | 
             
                        json_obj = json.loads(result)
         | 
| @@ -4593,6 +4593,58 @@ def doDescribeReadOnlyGroups(args, parsed_globals): | |
| 4593 4593 | 
             
                FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
         | 
| 4594 4594 |  | 
| 4595 4595 |  | 
| 4596 | 
            +
            def doDescribeDBInstanceAttribute(args, parsed_globals):
         | 
| 4597 | 
            +
                g_param = parse_global_arg(parsed_globals)
         | 
| 4598 | 
            +
             | 
| 4599 | 
            +
                if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
         | 
| 4600 | 
            +
                    cred = credential.CVMRoleCredential()
         | 
| 4601 | 
            +
                elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
         | 
| 4602 | 
            +
                    cred = credential.STSAssumeRoleCredential(
         | 
| 4603 | 
            +
                        g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
         | 
| 4604 | 
            +
                        g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
         | 
| 4605 | 
            +
                    )
         | 
| 4606 | 
            +
                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):
         | 
| 4607 | 
            +
                    cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
         | 
| 4608 | 
            +
                else:
         | 
| 4609 | 
            +
                    cred = credential.Credential(
         | 
| 4610 | 
            +
                        g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
         | 
| 4611 | 
            +
                    )
         | 
| 4612 | 
            +
                http_profile = HttpProfile(
         | 
| 4613 | 
            +
                    reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
         | 
| 4614 | 
            +
                    reqMethod="POST",
         | 
| 4615 | 
            +
                    endpoint=g_param[OptionsDefine.Endpoint],
         | 
| 4616 | 
            +
                    proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
         | 
| 4617 | 
            +
                )
         | 
| 4618 | 
            +
                profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
         | 
| 4619 | 
            +
                if g_param[OptionsDefine.Language]:
         | 
| 4620 | 
            +
                    profile.language = g_param[OptionsDefine.Language]
         | 
| 4621 | 
            +
                mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
         | 
| 4622 | 
            +
                client = mod.PostgresClient(cred, g_param[OptionsDefine.Region], profile)
         | 
| 4623 | 
            +
                client._sdkVersion += ("_CLI_" + __version__)
         | 
| 4624 | 
            +
                models = MODELS_MAP[g_param[OptionsDefine.Version]]
         | 
| 4625 | 
            +
                model = models.DescribeDBInstanceAttributeRequest()
         | 
| 4626 | 
            +
                model.from_json_string(json.dumps(args))
         | 
| 4627 | 
            +
                start_time = time.time()
         | 
| 4628 | 
            +
                while True:
         | 
| 4629 | 
            +
                    rsp = client.DescribeDBInstanceAttribute(model)
         | 
| 4630 | 
            +
                    result = rsp.to_json_string()
         | 
| 4631 | 
            +
                    try:
         | 
| 4632 | 
            +
                        json_obj = json.loads(result)
         | 
| 4633 | 
            +
                    except TypeError as e:
         | 
| 4634 | 
            +
                        json_obj = json.loads(result.decode('utf-8'))  # python3.3
         | 
| 4635 | 
            +
                    if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
         | 
| 4636 | 
            +
                        break
         | 
| 4637 | 
            +
                    cur_time = time.time()
         | 
| 4638 | 
            +
                    if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
         | 
| 4639 | 
            +
                        raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
         | 
| 4640 | 
            +
                        (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
         | 
| 4641 | 
            +
                        search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
         | 
| 4642 | 
            +
                    else:
         | 
| 4643 | 
            +
                        print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
         | 
| 4644 | 
            +
                    time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
         | 
| 4645 | 
            +
                FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
         | 
| 4646 | 
            +
             | 
| 4647 | 
            +
             | 
| 4596 4648 | 
             
            def doUpgradeDBInstance(args, parsed_globals):
         | 
| 4597 4649 | 
             
                g_param = parse_global_arg(parsed_globals)
         | 
| 4598 4650 |  | 
| @@ -4760,7 +4812,7 @@ ACTION_MAP = { | |
| 4760 4812 | 
             
                "DeleteReadOnlyGroup": doDeleteReadOnlyGroup,
         | 
| 4761 4813 | 
             
                "UpgradeDBInstanceKernelVersion": doUpgradeDBInstanceKernelVersion,
         | 
| 4762 4814 | 
             
                "ResetAccountPassword": doResetAccountPassword,
         | 
| 4763 | 
            -
                " | 
| 4815 | 
            +
                "RestoreDBInstanceObjects": doRestoreDBInstanceObjects,
         | 
| 4764 4816 | 
             
                "DeleteDBInstanceNetworkAccess": doDeleteDBInstanceNetworkAccess,
         | 
| 4765 4817 | 
             
                "ModifyDBInstancesProject": doModifyDBInstancesProject,
         | 
| 4766 4818 | 
             
                "DescribeDBXlogs": doDescribeDBXlogs,
         | 
| @@ -4796,6 +4848,7 @@ ACTION_MAP = { | |
| 4796 4848 | 
             
                "ModifyBackupDownloadRestriction": doModifyBackupDownloadRestriction,
         | 
| 4797 4849 | 
             
                "DescribeDBVersions": doDescribeDBVersions,
         | 
| 4798 4850 | 
             
                "DescribeReadOnlyGroups": doDescribeReadOnlyGroups,
         | 
| 4851 | 
            +
                "DescribeDBInstanceAttribute": doDescribeDBInstanceAttribute,
         | 
| 4799 4852 | 
             
                "UpgradeDBInstance": doUpgradeDBInstance,
         | 
| 4800 4853 | 
             
                "CreateInstances": doCreateInstances,
         | 
| 4801 4854 |  |