tccli 3.0.1124.1__py2.py3-none-any.whl → 3.0.1125.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- 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/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/ess/v20201111/api.json +1 -1
- tccli/services/essbasic/v20210526/api.json +1 -1
- tccli/services/mongodb/v20190725/api.json +18 -13
- tccli/services/monitor/v20180724/api.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 +404 -273
- tccli/services/postgres/v20170312/examples.json +29 -15
- tccli/services/rum/v20210622/examples.json +2 -2
- tccli/services/smh/v20210712/api.json +2 -2
- tccli/services/teo/v20220901/api.json +5 -5
- tccli/services/tione/v20211111/api.json +70 -3
- tccli/services/tione/v20211111/examples.json +1 -1
- 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.1125.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1124.1.dist-info → tccli-3.0.1125.1.dist-info}/RECORD +32 -32
- {tccli-3.0.1124.1.dist-info → tccli-3.0.1125.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1124.1.dist-info → tccli-3.0.1125.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1124.1.dist-info → tccli-3.0.1125.1.dist-info}/license_files/LICENSE +0 -0
@@ -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
|
|