tccli 3.0.922.1__py2.py3-none-any.whl → 3.0.924.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 (110) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/examples/apigateway/v20180808/DescribeServicesStatus.md +33 -19
  3. tccli/examples/cdb/v20170320/CreateDBInstance.md +2 -2
  4. tccli/examples/ckafka/v20190819/CreateAcl.md +4 -1
  5. tccli/examples/clb/v20180317/CloneLoadBalancer.md +3 -3
  6. tccli/examples/clb/v20180317/DescribeListeners.md +49 -127
  7. tccli/examples/clb/v20180317/DescribeLoadBalancers.md +578 -158
  8. tccli/examples/cls/v20201016/CreateScheduledSql.md +13 -11
  9. tccli/examples/cls/v20201016/DeleteScheduledSql.md +2 -2
  10. tccli/examples/cls/v20201016/DescribeConfigs.md +2 -1
  11. tccli/examples/cls/v20201016/DescribeKafkaConsumer.md +23 -0
  12. tccli/examples/cls/v20201016/DescribeScheduledSqlInfo.md +22 -19
  13. tccli/examples/cls/v20201016/ModifyKafkaConsumer.md +21 -0
  14. tccli/examples/cls/v20201016/ModifyScheduledSql.md +11 -9
  15. tccli/examples/cynosdb/v20190107/DescribeAccounts.md +10 -10
  16. tccli/examples/cynosdb/v20190107/DescribeClusterDetail.md +77 -65
  17. tccli/examples/ess/v20201111/CancelUserAutoSignEnableUrl.md +1 -1
  18. tccli/examples/ess/v20201111/CreateBatchCancelFlowUrl.md +5 -4
  19. tccli/examples/ess/v20201111/CreateUserAutoSignEnableUrl.md +2 -2
  20. tccli/examples/ess/v20201111/DescribeFlowBriefs.md +6 -2
  21. tccli/examples/ess/v20201111/DescribeFlowEvidenceReport.md +1 -1
  22. tccli/examples/ess/v20201111/DescribeFlowInfo.md +24 -38
  23. tccli/examples/ess/v20201111/DescribeUserAutoSignStatus.md +1 -1
  24. tccli/examples/ess/v20201111/GetTaskResultApi.md +2 -2
  25. tccli/examples/essbasic/v20210526/ChannelBatchCancelFlows.md +5 -5
  26. tccli/examples/essbasic/v20210526/ChannelCreateBatchCancelFlowUrl.md +10 -8
  27. tccli/examples/essbasic/v20210526/ChannelCreateFlowSignUrl.md +9 -8
  28. tccli/examples/essbasic/v20210526/ChannelCreateWebThemeConfig.md +7 -6
  29. tccli/examples/essbasic/v20210526/DescribeFlowDetailInfo.md +19 -30
  30. tccli/examples/essbasic/v20210526/DescribeTemplates.md +13 -4
  31. tccli/examples/essbasic/v20210526/OperateChannelTemplate.md +2 -2
  32. tccli/examples/lcic/v20220817/DescribeRoom.md +2 -0
  33. tccli/examples/mna/v20210119/GetDevices.md +9 -16
  34. tccli/examples/mna/v20210119/UpdateDevice.md +7 -10
  35. tccli/examples/ms/v20180408/CreateEncryptInstance.md +30 -30
  36. tccli/examples/ms/v20180408/CreateOrderInstance.md +2 -2
  37. tccli/examples/ms/v20180408/DescribeEncryptInstances.md +73 -65
  38. tccli/examples/ms/v20180408/DescribeEncryptPlan.md +34 -34
  39. tccli/examples/ms/v20180408/DescribeOrderInstances.md +1 -1
  40. tccli/examples/oceanus/v20190422/CreateJobConfig.md +1 -1
  41. tccli/examples/tdmq/v20200217/CreateRocketMQVipInstance.md +28 -0
  42. tccli/examples/tione/v20211111/CreateNotebook.md +62 -0
  43. tccli/examples/tione/v20211111/CreateNotebookImage.md +18 -0
  44. tccli/examples/tione/v20211111/DeleteNotebook.md +20 -0
  45. tccli/examples/tione/v20211111/DeleteNotebookImageRecord.md +18 -0
  46. tccli/examples/tione/v20211111/DescribeNotebook.md +70 -0
  47. tccli/examples/tione/v20211111/DescribeNotebookImageKernels.md +23 -0
  48. tccli/examples/tione/v20211111/DescribeNotebookImageRecords.md +28 -0
  49. tccli/examples/tione/v20211111/DescribeNotebooks.md +77 -0
  50. tccli/examples/tione/v20211111/ModifyNotebook.md +64 -0
  51. tccli/examples/tione/v20211111/ModifyNotebookTags.md +22 -0
  52. tccli/examples/tione/v20211111/StartNotebook.md +20 -0
  53. tccli/examples/tione/v20211111/StopCreatingImage.md +18 -0
  54. tccli/examples/tione/v20211111/StopNotebook.md +20 -0
  55. tccli/examples/vpc/v20170312/CreateVpnGateway.md +20 -26
  56. tccli/examples/waf/v20180125/GetAttackHistogram.md +142 -0
  57. tccli/services/apigateway/v20180808/api.json +119 -12
  58. tccli/services/apigateway/v20180808/examples.json +4 -4
  59. tccli/services/asr/v20190614/api.json +1 -1
  60. tccli/services/cdb/v20170320/api.json +101 -90
  61. tccli/services/cdb/v20170320/examples.json +2 -2
  62. tccli/services/cdn/v20180606/api.json +59 -6
  63. tccli/services/ckafka/v20190819/api.json +10 -10
  64. tccli/services/ckafka/v20190819/examples.json +1 -1
  65. tccli/services/clb/v20180317/api.json +221 -68
  66. tccli/services/clb/v20180317/examples.json +10 -10
  67. tccli/services/cls/cls_client.py +110 -4
  68. tccli/services/cls/v20201016/api.json +330 -115
  69. tccli/services/cls/v20201016/examples.json +23 -7
  70. tccli/services/cynosdb/v20190107/api.json +82 -31
  71. tccli/services/cynosdb/v20190107/examples.json +3 -3
  72. tccli/services/dlc/v20210125/api.json +11 -11
  73. tccli/services/emr/v20190103/api.json +10 -0
  74. tccli/services/ess/v20201111/api.json +519 -142
  75. tccli/services/ess/v20201111/examples.json +9 -9
  76. tccli/services/essbasic/v20210526/api.json +195 -126
  77. tccli/services/essbasic/v20210526/examples.json +13 -13
  78. tccli/services/faceid/v20180301/api.json +21 -16
  79. tccli/services/lcic/v20220817/api.json +10 -0
  80. tccli/services/lcic/v20220817/examples.json +2 -2
  81. tccli/services/live/v20180801/api.json +42 -22
  82. tccli/services/mna/v20210119/api.json +11 -12
  83. tccli/services/mna/v20210119/examples.json +4 -4
  84. tccli/services/mps/v20190612/api.json +142 -61
  85. tccli/services/ms/v20180408/api.json +92 -19
  86. tccli/services/ms/v20180408/examples.json +31 -31
  87. tccli/services/nlp/v20190408/api.json +2 -1
  88. tccli/services/oceanus/v20190422/api.json +355 -41
  89. tccli/services/oceanus/v20190422/examples.json +1 -1
  90. tccli/services/ocr/ocr_client.py +4 -110
  91. tccli/services/ocr/v20181119/api.json +0 -315
  92. tccli/services/ocr/v20181119/examples.json +0 -16
  93. tccli/services/tdmq/tdmq_client.py +53 -0
  94. tccli/services/tdmq/v20200217/api.json +126 -0
  95. tccli/services/tdmq/v20200217/examples.json +8 -0
  96. tccli/services/teo/v20220901/api.json +18 -18
  97. tccli/services/tione/tione_client.py +987 -298
  98. tccli/services/tione/v20211111/api.json +1784 -20
  99. tccli/services/tione/v20211111/examples.json +104 -0
  100. tccli/services/tts/v20190823/api.json +1 -1
  101. tccli/services/vpc/v20170312/api.json +45 -65
  102. tccli/services/vpc/v20170312/examples.json +3 -3
  103. tccli/services/waf/v20180125/api.json +111 -0
  104. tccli/services/waf/v20180125/examples.json +8 -0
  105. tccli/services/waf/waf_client.py +57 -4
  106. {tccli-3.0.922.1.dist-info → tccli-3.0.924.1.dist-info}/METADATA +2 -2
  107. {tccli-3.0.922.1.dist-info → tccli-3.0.924.1.dist-info}/RECORD +110 -93
  108. {tccli-3.0.922.1.dist-info → tccli-3.0.924.1.dist-info}/WHEEL +0 -0
  109. {tccli-3.0.922.1.dist-info → tccli-3.0.924.1.dist-info}/entry_points.txt +0 -0
  110. {tccli-3.0.922.1.dist-info → tccli-3.0.924.1.dist-info}/license_files/LICENSE +0 -0
@@ -52,7 +52,7 @@
52
52
  ],
53
53
  "CreateJobConfig": [
54
54
  {
55
- "document": "",
55
+ "document": "创建一个作业配置",
56
56
  "input": "POST / HTTP/1.1\nHost: oceanus.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateJobConfig\n<公共请求参数>\n\n{\n \"ProgramArgs\": \"2000\",\n \"EntrypointClass\": \"com.tencent.flink.test.WordCount\",\n \"JobId\": \"cql-n8yaia0y\"\n}",
57
57
  "output": "{\n \"Response\": {\n \"Version\": 2,\n \"RequestId\": \"5f124d6f-b035-4d29-9467-dd62eccdbf23\"\n }\n}",
58
58
  "title": "新建作业配置示例"
@@ -173,7 +173,7 @@ def doImageEnhancement(args, parsed_globals):
173
173
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
174
174
 
175
175
 
176
- def doQueryBarCode(args, parsed_globals):
176
+ def doGeneralBasicOCR(args, parsed_globals):
177
177
  g_param = parse_global_arg(parsed_globals)
178
178
 
179
179
  if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
@@ -202,11 +202,11 @@ def doQueryBarCode(args, parsed_globals):
202
202
  client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
203
203
  client._sdkVersion += ("_CLI_" + __version__)
204
204
  models = MODELS_MAP[g_param[OptionsDefine.Version]]
205
- model = models.QueryBarCodeRequest()
205
+ model = models.GeneralBasicOCRRequest()
206
206
  model.from_json_string(json.dumps(args))
207
207
  start_time = time.time()
208
208
  while True:
209
- rsp = client.QueryBarCode(model)
209
+ rsp = client.GeneralBasicOCR(model)
210
210
  result = rsp.to_json_string()
211
211
  try:
212
212
  json_obj = json.loads(result)
@@ -2097,58 +2097,6 @@ def doTextDetect(args, parsed_globals):
2097
2097
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2098
2098
 
2099
2099
 
2100
- def doVerifyEnterpriseFourFactors(args, parsed_globals):
2101
- g_param = parse_global_arg(parsed_globals)
2102
-
2103
- if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2104
- cred = credential.CVMRoleCredential()
2105
- elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2106
- cred = credential.STSAssumeRoleCredential(
2107
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2108
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
2109
- )
2110
- 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):
2111
- cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2112
- else:
2113
- cred = credential.Credential(
2114
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2115
- )
2116
- http_profile = HttpProfile(
2117
- reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2118
- reqMethod="POST",
2119
- endpoint=g_param[OptionsDefine.Endpoint],
2120
- proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2121
- )
2122
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2123
- if g_param[OptionsDefine.Language]:
2124
- profile.language = g_param[OptionsDefine.Language]
2125
- mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2126
- client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
2127
- client._sdkVersion += ("_CLI_" + __version__)
2128
- models = MODELS_MAP[g_param[OptionsDefine.Version]]
2129
- model = models.VerifyEnterpriseFourFactorsRequest()
2130
- model.from_json_string(json.dumps(args))
2131
- start_time = time.time()
2132
- while True:
2133
- rsp = client.VerifyEnterpriseFourFactors(model)
2134
- result = rsp.to_json_string()
2135
- try:
2136
- json_obj = json.loads(result)
2137
- except TypeError as e:
2138
- json_obj = json.loads(result.decode('utf-8')) # python3.3
2139
- if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2140
- break
2141
- cur_time = time.time()
2142
- if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2143
- raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2144
- (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2145
- search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2146
- else:
2147
- print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2148
- time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2149
- FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2150
-
2151
-
2152
2100
  def doBusInvoiceOCR(args, parsed_globals):
2153
2101
  g_param = parse_global_arg(parsed_globals)
2154
2102
 
@@ -3969,58 +3917,6 @@ def doRecognizeHealthCodeOCR(args, parsed_globals):
3969
3917
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
3970
3918
 
3971
3919
 
3972
- def doGeneralBasicOCR(args, parsed_globals):
3973
- g_param = parse_global_arg(parsed_globals)
3974
-
3975
- if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
3976
- cred = credential.CVMRoleCredential()
3977
- elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
3978
- cred = credential.STSAssumeRoleCredential(
3979
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
3980
- g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
3981
- )
3982
- 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):
3983
- cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
3984
- else:
3985
- cred = credential.Credential(
3986
- g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
3987
- )
3988
- http_profile = HttpProfile(
3989
- reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
3990
- reqMethod="POST",
3991
- endpoint=g_param[OptionsDefine.Endpoint],
3992
- proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
3993
- )
3994
- profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
3995
- if g_param[OptionsDefine.Language]:
3996
- profile.language = g_param[OptionsDefine.Language]
3997
- mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
3998
- client = mod.OcrClient(cred, g_param[OptionsDefine.Region], profile)
3999
- client._sdkVersion += ("_CLI_" + __version__)
4000
- models = MODELS_MAP[g_param[OptionsDefine.Version]]
4001
- model = models.GeneralBasicOCRRequest()
4002
- model.from_json_string(json.dumps(args))
4003
- start_time = time.time()
4004
- while True:
4005
- rsp = client.GeneralBasicOCR(model)
4006
- result = rsp.to_json_string()
4007
- try:
4008
- json_obj = json.loads(result)
4009
- except TypeError as e:
4010
- json_obj = json.loads(result.decode('utf-8')) # python3.3
4011
- if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4012
- break
4013
- cur_time = time.time()
4014
- if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4015
- raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4016
- (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4017
- search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4018
- else:
4019
- print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4020
- time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4021
- FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4022
-
4023
-
4024
3920
  def doRecognizeTableOCR(args, parsed_globals):
4025
3921
  g_param = parse_global_arg(parsed_globals)
4026
3922
 
@@ -4451,7 +4347,7 @@ ACTION_MAP = {
4451
4347
  "InsuranceBillOCR": doInsuranceBillOCR,
4452
4348
  "VerifyBasicBizLicense": doVerifyBasicBizLicense,
4453
4349
  "ImageEnhancement": doImageEnhancement,
4454
- "QueryBarCode": doQueryBarCode,
4350
+ "GeneralBasicOCR": doGeneralBasicOCR,
4455
4351
  "SmartStructuralOCRV2": doSmartStructuralOCRV2,
4456
4352
  "EnterpriseLicenseOCR": doEnterpriseLicenseOCR,
4457
4353
  "BusinessCardOCR": doBusinessCardOCR,
@@ -4488,7 +4384,6 @@ ACTION_MAP = {
4488
4384
  "PermitOCR": doPermitOCR,
4489
4385
  "RecognizeThaiIDCardOCR": doRecognizeThaiIDCardOCR,
4490
4386
  "TextDetect": doTextDetect,
4491
- "VerifyEnterpriseFourFactors": doVerifyEnterpriseFourFactors,
4492
4387
  "BusInvoiceOCR": doBusInvoiceOCR,
4493
4388
  "RecognizePhilippinesSssIDOCR": doRecognizePhilippinesSssIDOCR,
4494
4389
  "TableOCR": doTableOCR,
@@ -4524,7 +4419,6 @@ ACTION_MAP = {
4524
4419
  "RecognizePhilippinesDrivingLicenseOCR": doRecognizePhilippinesDrivingLicenseOCR,
4525
4420
  "VerifyOfdVatInvoiceOCR": doVerifyOfdVatInvoiceOCR,
4526
4421
  "RecognizeHealthCodeOCR": doRecognizeHealthCodeOCR,
4527
- "GeneralBasicOCR": doGeneralBasicOCR,
4528
4422
  "RecognizeTableOCR": doRecognizeTableOCR,
4529
4423
  "RecognizeIndonesiaIDCardOCR": doRecognizeIndonesiaIDCardOCR,
4530
4424
  "DriverLicenseOCR": doDriverLicenseOCR,
@@ -308,13 +308,6 @@
308
308
  "output": "QrcodeOCRResponse",
309
309
  "status": "online"
310
310
  },
311
- "QueryBarCode": {
312
- "document": "库源服务调整,该接口在2023年6月1日将正式下线。\n\n本接口支持条形码备案信息查询,返回条形码查询结果的相关信息,包括产品名称、产品英文名称、品牌名称、规格型号、宽度、高度、深度、关键字、产品描述、厂家名称、厂家地址、企业社会信用代码13个字段信息。\n\n产品优势:直联中国物品编码中心,查询结果更加准确、可靠。",
313
- "input": "QueryBarCodeRequest",
314
- "name": "条码信息查询",
315
- "output": "QueryBarCodeResponse",
316
- "status": "deprecated"
317
- },
318
311
  "QuotaInvoiceOCR": {
319
312
  "document": "本接口支持定额发票的发票号码、发票代码、金额(大小写)、发票消费类型、地区及是否有公司印章等关键字段的识别。\n\n默认接口请求频率限制:5次/秒。",
320
313
  "input": "QuotaInvoiceOCRRequest",
@@ -567,13 +560,6 @@
567
560
  "output": "VerifyBizLicenseResponse",
568
561
  "status": "deprecated"
569
562
  },
570
- "VerifyEnterpriseFourFactors": {
571
- "document": "库源服务调整,该接口在2023年6月1日将正式下线。\n\n此接口基于企业四要素授权“姓名、证件号码、企业标识、企业全称”,验证企业信息是否一致。",
572
- "input": "VerifyEnterpriseFourFactorsRequest",
573
- "name": "企业四要素核验",
574
- "output": "VerifyEnterpriseFourFactorsResponse",
575
- "status": "deprecated"
576
- },
577
563
  "VerifyOfdVatInvoiceOCR": {
578
564
  "document": "本接口支持OFD格式的增值税电子普通发票和增值税电子专用发票的识别,返回发票代码、发票号码、开票日期、验证码、机器编号、密码区,购买方和销售方信息,包括名称、纳税人识别号、地址电话、开户行及账号,以及价税合计、开票人、收款人、复核人、税额、不含税金额等字段信息。",
579
565
  "input": "VerifyOfdVatInvoiceOCRRequest",
@@ -2346,34 +2332,6 @@
2346
2332
  ],
2347
2333
  "type": "object"
2348
2334
  },
2349
- "Detail": {
2350
- "document": "企业四要素核验结果",
2351
- "members": [
2352
- {
2353
- "default": "",
2354
- "disabled": false,
2355
- "document": "企业四要素核验结果状态码",
2356
- "example": "7",
2357
- "member": "int64",
2358
- "name": "Result",
2359
- "required": true,
2360
- "type": "int",
2361
- "value_allowed_null": false
2362
- },
2363
- {
2364
- "default": "",
2365
- "disabled": false,
2366
- "document": "企业四要素核验结果描述",
2367
- "example": "string",
2368
- "member": "string",
2369
- "name": "Desc",
2370
- "required": true,
2371
- "type": "string",
2372
- "value_allowed_null": false
2373
- }
2374
- ],
2375
- "usage": "out"
2376
- },
2377
2335
  "DetectedWordCoordPoint": {
2378
2336
  "document": "单字在原图中的坐标,以四个顶点坐标表示,以左上角为起点,顺时针返回。",
2379
2337
  "members": [
@@ -7917,162 +7875,6 @@
7917
7875
  ],
7918
7876
  "usage": "out"
7919
7877
  },
7920
- "ProductDataRecord": {
7921
- "document": "商品码信息",
7922
- "members": [
7923
- {
7924
- "default": "",
7925
- "disabled": false,
7926
- "document": "产品名称",
7927
- "member": "string",
7928
- "name": "ProductName",
7929
- "required": true,
7930
- "type": "string",
7931
- "value_allowed_null": false
7932
- },
7933
- {
7934
- "default": "",
7935
- "disabled": false,
7936
- "document": "产品名称(英文)",
7937
- "member": "string",
7938
- "name": "EnName",
7939
- "required": true,
7940
- "type": "string",
7941
- "value_allowed_null": false
7942
- },
7943
- {
7944
- "default": "",
7945
- "disabled": false,
7946
- "document": "品牌名称",
7947
- "member": "string",
7948
- "name": "BrandName",
7949
- "required": true,
7950
- "type": "string",
7951
- "value_allowed_null": false
7952
- },
7953
- {
7954
- "default": "",
7955
- "disabled": false,
7956
- "document": "规格型号",
7957
- "member": "string",
7958
- "name": "Type",
7959
- "required": true,
7960
- "type": "string",
7961
- "value_allowed_null": false
7962
- },
7963
- {
7964
- "default": "",
7965
- "disabled": false,
7966
- "document": "宽度,单位毫米",
7967
- "member": "string",
7968
- "name": "Width",
7969
- "required": true,
7970
- "type": "string",
7971
- "value_allowed_null": false
7972
- },
7973
- {
7974
- "default": "",
7975
- "disabled": false,
7976
- "document": "高度,单位毫米",
7977
- "member": "string",
7978
- "name": "Height",
7979
- "required": true,
7980
- "type": "string",
7981
- "value_allowed_null": false
7982
- },
7983
- {
7984
- "default": "",
7985
- "disabled": false,
7986
- "document": "深度,单位毫米",
7987
- "member": "string",
7988
- "name": "Depth",
7989
- "required": true,
7990
- "type": "string",
7991
- "value_allowed_null": false
7992
- },
7993
- {
7994
- "default": "",
7995
- "disabled": false,
7996
- "document": "关键字",
7997
- "member": "string",
7998
- "name": "KeyWord",
7999
- "required": true,
8000
- "type": "string",
8001
- "value_allowed_null": false
8002
- },
8003
- {
8004
- "default": "",
8005
- "disabled": false,
8006
- "document": "简短描述",
8007
- "member": "string",
8008
- "name": "Description",
8009
- "required": true,
8010
- "type": "string",
8011
- "value_allowed_null": false
8012
- },
8013
- {
8014
- "default": "",
8015
- "disabled": false,
8016
- "document": "图片链接",
8017
- "member": "string",
8018
- "name": "ImageLink",
8019
- "required": true,
8020
- "type": "list",
8021
- "value_allowed_null": false
8022
- },
8023
- {
8024
- "default": "",
8025
- "disabled": false,
8026
- "document": "厂家名称",
8027
- "member": "string",
8028
- "name": "ManufacturerName",
8029
- "required": true,
8030
- "type": "string",
8031
- "value_allowed_null": false
8032
- },
8033
- {
8034
- "default": "",
8035
- "disabled": false,
8036
- "document": "厂家地址",
8037
- "member": "string",
8038
- "name": "ManufacturerAddress",
8039
- "required": true,
8040
- "type": "string",
8041
- "value_allowed_null": false
8042
- },
8043
- {
8044
- "default": "",
8045
- "disabled": false,
8046
- "document": "企业社会信用代码",
8047
- "member": "string",
8048
- "name": "FirmCode",
8049
- "required": true,
8050
- "type": "string",
8051
- "value_allowed_null": false
8052
- },
8053
- {
8054
- "default": "",
8055
- "disabled": false,
8056
- "document": "表示数据查询状态\ncheckResult\t状态说明\n1\t 经查,该商品条码已在中国物品编码中心注册\n2\t经查,该厂商识别代码已在中国物品编码中心注册,但编码信息未按规定通报。\n3\t经查,该厂商识别代码已于xxxxx注销,请关注产品生产日期。\n4\t经查,该企业以及条码未经条码中心注册,属于违法使用\n-1\t经查,该商品条码被冒用\n-2\t经查,该厂商识别代码已在中国物品编码中心注册,但该产品已经下市\nS001 未找到该厂商识别代码的注册信息。\nS002\t\t该厂商识别代码已经在GS1注册,但编码信息未通报\nS003\t\t该商品条码已在GS1通报\nS004\t\t该商品条码已注销\nS005\t\t数字不正确。GS1前缀(3位国家/地区代码)用于特殊用途。\nE001\t\t完整性失败:此GTIN的长度无效。\nE002\t\t完整性失败:校验位不正确。\nE003\t\t完整性失败:字符串包含字母数字字符。\nE004\t\t数字不正确。GS1前缀(3位国家/地区代码)不存在。\nE005\t\t数字不正确。GS1前缀(3位国家/地区代码)用于特殊用途。\nE006\t\t数字不正确。尚未分配该GS1公司前缀。\nE008\t 经查,该企业厂商识别代码以及条码尚未通报",
8057
- "member": "string",
8058
- "name": "CheckResult",
8059
- "required": true,
8060
- "type": "string",
8061
- "value_allowed_null": false
8062
- },
8063
- {
8064
- "default": "",
8065
- "disabled": false,
8066
- "document": "UNSPSC分类码",
8067
- "member": "string",
8068
- "name": "CategoryCode",
8069
- "required": true,
8070
- "type": "string",
8071
- "value_allowed_null": false
8072
- }
8073
- ],
8074
- "usage": "out"
8075
- },
8076
7878
  "PropOwnerCertOCRRequest": {
8077
7879
  "document": "PropOwnerCertOCR请求参数结构体",
8078
7880
  "members": [
@@ -8328,51 +8130,6 @@
8328
8130
  ],
8329
8131
  "usage": "out"
8330
8132
  },
8331
- "QueryBarCodeRequest": {
8332
- "document": "QueryBarCode请求参数结构体",
8333
- "members": [
8334
- {
8335
- "disabled": false,
8336
- "document": "条形码",
8337
- "example": "6928804021912",
8338
- "member": "string",
8339
- "name": "BarCode",
8340
- "required": true,
8341
- "type": "string"
8342
- }
8343
- ],
8344
- "type": "object"
8345
- },
8346
- "QueryBarCodeResponse": {
8347
- "document": "QueryBarCode返回参数结构体",
8348
- "members": [
8349
- {
8350
- "disabled": false,
8351
- "document": "条码",
8352
- "example": "06941858722888",
8353
- "member": "string",
8354
- "name": "BarCode",
8355
- "type": "string",
8356
- "value_allowed_null": false
8357
- },
8358
- {
8359
- "disabled": false,
8360
- "document": "条码信息数组",
8361
- "example": "无",
8362
- "member": "ProductDataRecord",
8363
- "name": "ProductDataRecords",
8364
- "type": "list",
8365
- "value_allowed_null": false
8366
- },
8367
- {
8368
- "document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
8369
- "member": "string",
8370
- "name": "RequestId",
8371
- "type": "string"
8372
- }
8373
- ],
8374
- "type": "object"
8375
- },
8376
8133
  "QuestionBlockObj": {
8377
8134
  "document": "数学试题识别结构化对象",
8378
8135
  "members": [
@@ -18078,78 +17835,6 @@
18078
17835
  ],
18079
17836
  "type": "object"
18080
17837
  },
18081
- "VerifyEnterpriseFourFactorsRequest": {
18082
- "document": "VerifyEnterpriseFourFactors请求参数结构体",
18083
- "members": [
18084
- {
18085
- "disabled": false,
18086
- "document": "姓名",
18087
- "example": "string",
18088
- "member": "string",
18089
- "name": "RealName",
18090
- "required": true,
18091
- "type": "string"
18092
- },
18093
- {
18094
- "disabled": false,
18095
- "document": "证件号码(公司注册证件号)",
18096
- "example": "string",
18097
- "member": "string",
18098
- "name": "IdCard",
18099
- "required": true,
18100
- "type": "string"
18101
- },
18102
- {
18103
- "disabled": false,
18104
- "document": "企业全称",
18105
- "example": "string",
18106
- "member": "string",
18107
- "name": "EnterpriseName",
18108
- "required": true,
18109
- "type": "string"
18110
- },
18111
- {
18112
- "disabled": false,
18113
- "document": "企业标识(注册号,统一社会信用代码)",
18114
- "example": "string",
18115
- "member": "string",
18116
- "name": "EnterpriseMark",
18117
- "required": true,
18118
- "type": "string"
18119
- }
18120
- ],
18121
- "type": "object"
18122
- },
18123
- "VerifyEnterpriseFourFactorsResponse": {
18124
- "document": "VerifyEnterpriseFourFactors返回参数结构体",
18125
- "members": [
18126
- {
18127
- "disabled": false,
18128
- "document": "核验一致性(1:一致,2:不一致,3:查询无记录)",
18129
- "example": "1",
18130
- "member": "int64",
18131
- "name": "State",
18132
- "type": "int",
18133
- "value_allowed_null": false
18134
- },
18135
- {
18136
- "disabled": false,
18137
- "document": "核验结果明细,7:企业法人/负责人,6:企业股东,5:企\n业管理人员,-21:企业名称与企业标识不符,-22:姓名不一致,-23:证件号码不一致,-24:企业名称不一致,-25:企业标识不一致\n注意:此字段可能返回 null,表示取不到有效值。",
18138
- "example": "无",
18139
- "member": "Detail",
18140
- "name": "Detail",
18141
- "type": "object",
18142
- "value_allowed_null": true
18143
- },
18144
- {
18145
- "document": "唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。",
18146
- "member": "string",
18147
- "name": "RequestId",
18148
- "type": "string"
18149
- }
18150
- ],
18151
- "type": "object"
18152
- },
18153
17838
  "VerifyOfdVatInvoiceOCRRequest": {
18154
17839
  "document": "VerifyOfdVatInvoiceOCR请求参数结构体",
18155
17840
  "members": [
@@ -406,14 +406,6 @@
406
406
  "title": "二维码和条形码识别示例代码 [前往调试工具](https://console.cloud.tencent.com/api/explorer?Product=ocr&Version=2018-11-19&Action=QrcodeOCR)"
407
407
  }
408
408
  ],
409
- "QueryBarCode": [
410
- {
411
- "document": "查询条码信息",
412
- "input": "POST / HTTP/1.1\nHost: ocr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: QueryBarCode\n<公共请求参数>\n\n{\n \"BarCode\": \"6928804021912\"\n}",
413
- "output": "{\n \"Response\": {\n \"BarCode\": \"06928804021912\",\n \"ProductDataRecords\": [\n {\n \"BrandName\": \"美汁源\",\n \"CategoryCode\": \"\",\n \"CheckResult\": \"1\",\n \"Depth\": \"\",\n \"Description\": \"\",\n \"EnName\": \"\",\n \"FirmCode\": \"911100006000138767\",\n \"Height\": \"\",\n \"ImageLink\": [\n \"\"\n ],\n \"KeyWord\": \"480ml美汁源葡萄气泡饮葡萄汁汽水 *12\",\n \"ManufacturerAddress\": \"北京市朝阳区酒仙桥路20号楼3层301号312室\",\n \"ManufacturerName\": \"太古中萃发展有限公司\",\n \"ProductName\": \"480ml美汁源葡萄气泡饮葡萄汁汽水 *12\",\n \"Type\": \"480ml*12\",\n \"Width\": \"\"\n }\n ],\n \"RequestId\": \"e2ca3708-f5cd-49de-b254-4d9beca0eef6\"\n }\n}",
414
- "title": "查询条码信息"
415
- }
416
- ],
417
409
  "QuotaInvoiceOCR": [
418
410
  {
419
411
  "document": "定额发票识别",
@@ -726,14 +718,6 @@
726
718
  "title": "营业执照识别及核验详细版示例代码(输入关键字段进行核验)"
727
719
  }
728
720
  ],
729
- "VerifyEnterpriseFourFactors": [
730
- {
731
- "document": "企业四要素核验示例代码(输入关键字段进行核验)",
732
- "input": "POST / HTTP/1.1\nHost: ocr.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: VerifyEnterpriseFourFactors\n<公共请求参数>\n\n{\n \"IdCard\": \"610110190001010812\",\n \"EnterpriseName\": \"大饼网络工作室\",\n \"RealName\": \"李大饼\",\n \"EnterpriseMark\": \"92770729JK3A9WAU7J\"\n}",
733
- "output": "{\n \"Response\": {\n \"Detail\": {\n \"Desc\": \"企业法人/负责人\",\n \"Result\": 7\n },\n \"RequestId\": \"9406f64f-b57d-4d53-b58a-f65e5f1f90f0\",\n \"State\": 1\n }\n}",
734
- "title": "企业四要素核验示例代码(输入关键字段进行核验)"
735
- }
736
- ],
737
721
  "VerifyOfdVatInvoiceOCR": [
738
722
  {
739
723
  "document": "ofd发票识别",
@@ -1889,6 +1889,58 @@ def doDescribeCmqDeadLetterSourceQueues(args, parsed_globals):
1889
1889
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1890
1890
 
1891
1891
 
1892
+ def doCreateRocketMQVipInstance(args, parsed_globals):
1893
+ g_param = parse_global_arg(parsed_globals)
1894
+
1895
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
1896
+ cred = credential.CVMRoleCredential()
1897
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
1898
+ cred = credential.STSAssumeRoleCredential(
1899
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
1900
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')]
1901
+ )
1902
+ 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):
1903
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
1904
+ else:
1905
+ cred = credential.Credential(
1906
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
1907
+ )
1908
+ http_profile = HttpProfile(
1909
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
1910
+ reqMethod="POST",
1911
+ endpoint=g_param[OptionsDefine.Endpoint],
1912
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
1913
+ )
1914
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
1915
+ if g_param[OptionsDefine.Language]:
1916
+ profile.language = g_param[OptionsDefine.Language]
1917
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
1918
+ client = mod.TdmqClient(cred, g_param[OptionsDefine.Region], profile)
1919
+ client._sdkVersion += ("_CLI_" + __version__)
1920
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
1921
+ model = models.CreateRocketMQVipInstanceRequest()
1922
+ model.from_json_string(json.dumps(args))
1923
+ start_time = time.time()
1924
+ while True:
1925
+ rsp = client.CreateRocketMQVipInstance(model)
1926
+ result = rsp.to_json_string()
1927
+ try:
1928
+ json_obj = json.loads(result)
1929
+ except TypeError as e:
1930
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
1931
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
1932
+ break
1933
+ cur_time = time.time()
1934
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
1935
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
1936
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
1937
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
1938
+ else:
1939
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
1940
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
1941
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
1942
+
1943
+
1892
1944
  def doDescribeClusters(args, parsed_globals):
1893
1945
  g_param = parse_global_arg(parsed_globals)
1894
1946
 
@@ -5316,6 +5368,7 @@ ACTION_MAP = {
5316
5368
  "DescribeCmqSubscriptionDetail": doDescribeCmqSubscriptionDetail,
5317
5369
  "DescribeRabbitMQVirtualHost": doDescribeRabbitMQVirtualHost,
5318
5370
  "DescribeCmqDeadLetterSourceQueues": doDescribeCmqDeadLetterSourceQueues,
5371
+ "CreateRocketMQVipInstance": doCreateRocketMQVipInstance,
5319
5372
  "DescribeClusters": doDescribeClusters,
5320
5373
  "DescribeRabbitMQVipInstance": doDescribeRabbitMQVipInstance,
5321
5374
  "ResetRocketMQConsumerOffSet": doResetRocketMQConsumerOffSet,