tccli 3.0.1102.1__py2.py3-none-any.whl → 3.0.1104.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/examples/aiart/v20221229/ImageToImage.md +1 -1
- tccli/examples/csip/v20221121/DescribeDbAssets.md +7 -0
- tccli/examples/csip/v20221121/DescribeOrganizationUserInfo.md +12 -1
- tccli/examples/cwp/v20180228/DescribePublicProxyInstallCommand.md +4 -4
- tccli/examples/cynosdb/v20190107/CreateCLSDelivery.md +18 -0
- tccli/examples/cynosdb/v20190107/DeleteCLSDelivery.md +18 -0
- tccli/examples/cynosdb/v20190107/DescribeInstanceCLSLogDelivery.md +18 -0
- tccli/examples/cynosdb/v20190107/StartCLSDelivery.md +18 -0
- tccli/examples/cynosdb/v20190107/StopCLSDelivery.md +18 -0
- tccli/examples/ess/v20201111/CreateUserVerifyUrl.md +29 -0
- tccli/examples/ess/v20201111/DescribeUserVerifyStatus.md +23 -0
- tccli/examples/hai/v20230812/DescribeInstances.md +3 -2
- tccli/examples/hunyuan/v20230901/QueryHunyuanImageJob.md +33 -0
- tccli/examples/hunyuan/v20230901/SubmitHunyuanImageJob.md +21 -0
- tccli/examples/iotexplorer/v20190423/CreateTRTCSignaturesWithRoomId.md +30 -0
- tccli/examples/iotexplorer/v20190423/DescribeCloudStorageAIServiceTask.md +36 -0
- tccli/examples/iotexplorer/v20190423/DescribeCloudStorageAIServiceTasks.md +3 -0
- tccli/examples/iotexplorer/v20190423/DismissRoomByStrRoomIdFromTRTC.md +20 -0
- tccli/examples/iotexplorer/v20190423/GenerateCloudStorageAIServiceTaskFileURL.md +24 -0
- tccli/examples/iotexplorer/v20190423/RemoveUserByRoomIdFromTRTC.md +21 -0
- tccli/examples/lighthouse/v20200324/DescribeInstancesDeniedActions.md +11 -6
- tccli/examples/live/v20180801/DescribeLivePadProcessorList.md +25 -0
- tccli/examples/live/v20180801/StopLivePadProcessor.md +23 -0
- tccli/examples/mrs/v20200910/DrugInstructionObject.md +98 -0
- tccli/examples/ssl/v20191205/DescribeDownloadCertificateUrl.md +23 -0
- tccli/examples/tke/v20220501/CreateNodePool.md +33 -0
- tccli/examples/tke/v20220501/DeleteNodePool.md +21 -0
- tccli/examples/tke/v20220501/DescribeNodePools.md +9 -3
- tccli/examples/tke/v20220501/ModifyNodePool.md +32 -0
- tccli/examples/waf/v20180125/CreateIpAccessControl.md +27 -0
- tccli/examples/waf/v20180125/DeleteIpAccessControlV2.md +25 -0
- tccli/examples/waf/v20180125/ImportIpAccessControl.md +30 -0
- tccli/examples/waf/v20180125/ModifyIpAccessControl.md +28 -0
- tccli/services/aiart/v20221229/api.json +3 -3
- tccli/services/aiart/v20221229/examples.json +1 -1
- tccli/services/apm/v20210622/api.json +1 -1
- tccli/services/batch/v20170312/api.json +1 -1
- tccli/services/billing/v20180709/api.json +2 -2
- tccli/services/captcha/v20190722/api.json +2 -2
- tccli/services/ccc/v20200210/api.json +3 -3
- tccli/services/cdb/v20170320/api.json +2 -2
- tccli/services/clb/v20180317/api.json +2 -2
- tccli/services/cls/v20201016/api.json +2 -2
- tccli/services/csip/v20221121/api.json +80 -2
- tccli/services/csip/v20221121/examples.json +4 -4
- tccli/services/cvm/v20170312/api.json +1 -1
- tccli/services/cwp/v20180228/api.json +17 -5
- tccli/services/cwp/v20180228/examples.json +2 -2
- tccli/services/cynosdb/cynosdb_client.py +269 -4
- tccli/services/cynosdb/v20190107/api.json +131 -0
- tccli/services/cynosdb/v20190107/examples.json +40 -0
- tccli/services/dlc/v20210125/api.json +70 -1
- tccli/services/ess/ess_client.py +110 -4
- tccli/services/ess/v20201111/api.json +185 -5
- tccli/services/ess/v20201111/examples.json +16 -0
- tccli/services/essbasic/v20210526/api.json +4 -4
- tccli/services/faceid/v20180301/api.json +1 -1
- tccli/services/fmu/v20191213/api.json +1 -1
- tccli/services/hai/v20230812/api.json +2 -2
- tccli/services/hai/v20230812/examples.json +1 -1
- tccli/services/hunyuan/hunyuan_client.py +110 -4
- tccli/services/hunyuan/v20230901/api.json +188 -4
- tccli/services/hunyuan/v20230901/examples.json +16 -0
- tccli/services/iotexplorer/iotexplorer_client.py +298 -33
- tccli/services/iotexplorer/v20190423/api.json +359 -20
- tccli/services/iotexplorer/v20190423/examples.json +41 -1
- tccli/services/iss/v20230517/api.json +10 -0
- tccli/services/lighthouse/v20200324/api.json +45 -33
- tccli/services/lighthouse/v20200324/examples.json +3 -3
- tccli/services/live/live_client.py +114 -8
- tccli/services/live/v20180801/api.json +124 -0
- tccli/services/live/v20180801/examples.json +16 -0
- tccli/services/lke/v20231130/api.json +109 -3
- tccli/services/mrs/mrs_client.py +53 -0
- tccli/services/mrs/v20200910/api.json +1649 -415
- tccli/services/mrs/v20200910/examples.json +8 -0
- tccli/services/ocr/v20181119/api.json +1 -1
- tccli/services/rce/rce_client.py +0 -53
- tccli/services/rce/v20201103/api.json +0 -197
- tccli/services/rce/v20201103/examples.json +0 -8
- tccli/services/ssl/ssl_client.py +57 -4
- tccli/services/ssl/v20191205/api.json +63 -0
- tccli/services/ssl/v20191205/examples.json +8 -0
- tccli/services/ssm/v20190923/api.json +1 -1
- tccli/services/tdmq/v20200217/api.json +40 -10
- tccli/services/teo/v20220901/api.json +34 -0
- tccli/services/tke/tke_client.py +171 -12
- tccli/services/tke/v20180525/api.json +1 -1
- tccli/services/tke/v20220501/api.json +1403 -86
- tccli/services/tke/v20220501/examples.json +25 -1
- tccli/services/trtc/v20190722/api.json +6 -9
- tccli/services/tse/v20201207/api.json +2 -2
- tccli/services/vpc/v20170312/api.json +1 -0
- tccli/services/waf/v20180125/api.json +396 -0
- tccli/services/waf/v20180125/examples.json +32 -0
- tccli/services/waf/waf_client.py +216 -4
- {tccli-3.0.1102.1.dist-info → tccli-3.0.1104.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1102.1.dist-info → tccli-3.0.1104.1.dist-info}/RECORD +102 -77
- {tccli-3.0.1102.1.dist-info → tccli-3.0.1104.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1102.1.dist-info → tccli-3.0.1104.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1102.1.dist-info → tccli-3.0.1104.1.dist-info}/license_files/LICENSE +0 -0
@@ -1,5 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"actions": {
|
3
|
+
"DrugInstructionObject": [
|
4
|
+
{
|
5
|
+
"document": "药品说明书PDF文件结构化",
|
6
|
+
"input": "POST / HTTP/1.1\nHost: mrs.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DrugInstructionObject\n<公共请求参数>\n\n{\n \"PdfInfo\": {\n \"Base64\": \"PDF文件Base64编码\"\n }\n}",
|
7
|
+
"output": "{\n \"Response\": {\n \"ChemicalProductInfo\": {\n \"ActiveIngredient\": {\n \"ChemicalFormula\": \"HCO\\r\\n D H-011.\\r\\n HD\\r\\n CH\\r\\n NH p H_DH\\r\\n 0=\\r\\n DH\",\n \"MolecularFormula\": \"(C15H25NO3)2C4H503\",\n \"MolecularWeight\": \"684.82\",\n \"Text\": \"主要组成成份:\\r\\n 本品主要成份为酒石酸美托洛尔;化学名称为:1-异丙氨基-3-[对-(2-甲氧\\r\\n乙基)苯氧基]-2-丙醇L(+)-酒石酸盐\\r\\n 化学结构式:\\r\\n HCO\\r\\n D H-011.\\r\\n HD\\r\\n CH\\r\\n NH p H_DH\\r\\n 0=\\r\\n DH\\r\\n 分子式: (C15H25NO3)2C4H503\\r\\n 分子量: 684.82\"\n },\n \"AdverseReaction\": {\n \"Text\": \"不良反应的发生率约为10%,通常与剂量有关。\\r\\n 常见(>1/100)\\r\\n 一般副作用:疲劳,头痛,头晕\\r\\n 循环系统:肢端发冷,心动过缓,心悸\\r\\n 胃肠系统: 腹痛,恶心,呕吐,腹泻和便秘\\r\\n 少见\\r\\n 一般副作用: 胸痛,体重增加\\r\\n 循环系统: 心力衰竭暂时恶化\\r\\n 神经系统: 睡眠障碍,感觉异常\\r\\n 呼吸系统: 气急,支气管哮喘或有气喘症状者可发生支气管痉挛\\r\\n 罕见(<1/1000)\\r\\n 一般副作用: 多汗,脱发,味觉改变,可逆性性功能异常\\r\\n 血液系统: 血小板减少\\r\\n 循环系统: 房室传导时间延长,心律失常,水肿,晕厥\\r\\n 神经系统:梦魇 ,抑郁,记忆力损害,精神错乱,神经质,焦虑,幻觉\\r\\n 皮肤: 皮肤过敏反应,银屑病加重,光过敏\\r\\n 肝: 转氨酶升高\\r\\n 眼: 视觉损害,眼干和/或眼刺激\\r\\n 耳: 耳鸣\\r\\n 偶有关节痛、肝炎、肌肉疼痛性痉挛、口干、结膜炎样症状、鼻炎和注意力\\r\\n损害以及在伴有血管疾病的患者中出现坏疽的病例报道。\"\n },\n \"Appearance\": {\n \"Text\": \"本品为白色片。\"\n },\n \"Approval\": {\n \"Text\": \"50mg:国药准字H32025390\\t\\r\\n25mg:国药准字H32025391\"\n },\n \"Brochure\": {\n \"Text\": \"(1) 25mg (2)50mg\"\n },\n \"Contraindications\": {\n \"Text\": \"心源性休克。病态窦房结综合征。II、III度房室传导阻滞。不稳定的、失代\\r\\n偿性心力衰竭患者(肺水肿、低灌注或低血压),持续地或间歇地接受β受体激\\r\\n动剂正变力性治疗的患者。有症状的心动过缓或低血压。本品不可给予心率<45\\r\\n次/分、P-Q间期>0.24秒或收缩压<100mmHg的怀疑急性心肌梗死的患者。伴有坏\\r\\n疽危险的严重外周血管疾病患者。对本品中任何成份或其它B受体阻滞剂过敏者。\"\n },\n \"Dosage\": {\n \"Text\": \"口服。剂量应个体化,以避免心动过缓的发生。应空腹服药,进餐时服药可\\r\\n使美托洛尔的生物利用度增加40%。\\r\\n 治疗高血压:每日100mg一200mg,分1至2次服用。\\r\\n 急性心肌梗死:主张在早期,即最初的几小时内使用,因为即刻使用在未能\\r\\n溶栓的患者中可减小梗死范围、降低短期(15天)死亡率(此作用在用药后24小时\\r\\n既出现)。 在已经溶栓的患者中可降低再梗死率与再缺血率,若在2小时内用药还\\r\\n可以降低死亡率。一般用法:可先静脉注射美托洛尔一次2.5~5mg(2分钟内),\\r\\n每5分钟一次,共3次总剂量为10~15mg。之后15分钟开始口服25~50mg,每6~\\r\\n12小时1次,共24~48小时,然后口服一次50~100mg,一日2次。\\r\\n 不稳定性心绞痛:也主张早期使用,用法用量可参照急性心肌梗死。\\r\\n 急性心肌梗死发生心房颤动时若无禁忌可静脉使用美托洛尔,其方法同上。\\r\\n 心肌梗死后若无禁忌应长期使用,因为已经证明这样做可以降低心源性死亡\\r\\n率,包括猝死。一般一次50~100mg,一日2次。\\r\\n 在治疗高血压、心绞痛、心律失常、肥厚型心肌病、甲状腺功能亢 进等症 时\\r\\n一般一次25~50mg,一 日2~3次,或一次100mg,一日2次。\\r\\n 心力衰竭:应在使用洋地黄和(或)利尿剂等抗心力衰竭的治疗基础上使用本\\r\\n药。起初一次6.25mg,一日2~3次,以后视临床情况每数日至一周一次增加6.25~\\r\\n12.5mg,一日2~3次,最大剂量可用至一次50~100mg,一日2次。\\r\\n 最大剂量一日不应超过300mg~400mg。\"\n },\n \"ExecutiveStandards\": {\n \"Text\": \"《中国药典》2020年版二部\"\n },\n \"GeriatricUse\": {\n \"Text\": \"老年人的药代动力学与年轻人相比无明显改变,因而老年患者用量无需调整。\"\n },\n \"Indications\": {\n \"Text\": \"用于治疗 高血压、心绞痛、心肌梗死、肥厚型心肌病、主动脉夹层、心律失\\r\\n常、甲状腺功能亢进、心脏神经官能症等。近年来尚用于心力衰竭的治疗,此时\\r\\n应在有经验的医师指导下使用。\"\n },\n \"Interactions\": {\n \"Text\": \"美托洛尔是一种CYP2D6的作用底物。抑制CYP2D6的药物可影响美托洛尔的血\\r\\n浆浓度。抑制CYP2D6的药物如奎尼丁、特比萘芬、帕罗西汀、氟西汀、舍曲林、\\r\\n塞来昔布、普罗帕酮和苯海拉明。对于服用本品的患者,在开始上述药物的治疗\\r\\n开始应减低本品的剂量。\\r\\n 本品应避免与下列药物合并使用:\\r\\n 巴比妥类药物:巴比妥类药物(对戊巴比妥作过研究)可通过酶诱导作用使\\r\\n美托洛尔的代谢增加。\\r\\n 普罗帕酮:4例已经使用美托洛尔的患者,在给予普罗帕酮后,美托洛尔的\\r\\n血浆浓度增高2~5倍,其中2例发生与美托洛尔有关的副作用。这种相互作用在\\r\\n8例健康志愿者中得到证实。对于这种相互作用的可能的解释是,普罗帕酮与奎\\r\\n尼丁相似,可通过细胞色素P4502D6途径抑制美托洛尔的代谢。由于普罗帕酮也\\r\\n具有β受体阻滞效应,其与美托洛尔的联合使用很难掌握。\\r\\n 维拉帕米:维拉帕米与β受体阻滞剂合用时(已有与阿替洛尔、普萘洛尔和\\r\\n吲哚洛尔合用的报道),有可能引起心动过缓和血压下降。维拉帕米和β受体阻\\r\\n滞剂对于房室传导和窦房结功能有相加的抑制作用。\\r\\n 本品与下列药物合并使用时可能需要调整剂量:\\r\\n 胺碘酮:一例报道显示,同时使用胺碘酮和美托洛尔,有可能发生明显的窦\\r\\n性心动过缓。胺碘酮的半衰期很长(约50天),这意味着在胺碘酮治疗停止后较\\r\\n长的一段时间内,使用美托洛尔仍有可能发生两药的相互作用。\\r\\n I类抗心律失常药物: I类抗心律失常药物与β受体阻滞剂有相加的负性肌力\\r\\n作用,故在左心室功能受损的患者中,有可能引起严重的血流动力学副作用。病\\r\\n态窦房结综合征和病理性房室传导阻滞的患者,也应避免同时使用美托洛尔和I\\r\\n类抗心律失常药物。丙吡胺和美托洛尔之间的相互作用已有明确的资料证明。\\r\\n 非甾体类抗炎/抗风湿药(NSAID): 已发现NSAID抗炎镇痛药可抵消β受体阻\\r\\n滞剂的抗高血压作用。在这方面,经过研究的药物主要是吲哚美辛。β受体阻滞\\r\\n剂很可能不与舒林酸发生相互作用。在一项双氯芬酸的研究中,未发现β受体阻\\r\\n滞剂与双氯芬酸有相互作用。\\r\\n 苯海拉明: 在快速轻化代谢人群中,苯海拉明使美托洛尔通过CYP 2D6转化\\r\\n代谢成a-羟美托洛尔的清除降低2.5倍。美托洛尔的作用因而增强。苯海拉明可\\r\\n能抑制其它 CYP2D6底物的代谢。\\r\\n 地尔硫草: 钙离子拮抗剂和β受体阻滞剂对于房室传导和窦房结功能有相加\\r\\n的抑制作用。 已经有β受体阻滞剂与地尔硫草合并使用时发生明显心动过缓的病\\r\\n例报道。\\r\\n 肾上腺素: 约有10例报道显示,接受非选择性β受体阻滞剂(包括吲哚洛尔\\r\\n和普萘洛尔)治疗的患者,在给予肾上腺素后发生明显的高血压和心动过缓。这\\r\\n些临床 观察结果 已经在对健康志愿者的研究中得到证实。局部麻醉药中的肾上腺\\r\\n素在血管内给药时有可能引起这种反应。根据推测,使用心脏选择性的β受体阻\\r\\n滞剂时, 发生这种反应的危险性较低。\\r\\n 苯丙醇胺: 苯丙醇胺50mg单剂给药能使健康志愿者的舒张压升高到病理的水\\r\\n平。普萘洛尔通常能 拮抗 这种由苯丙醇胺引起的血压增高。但是在接受大剂量苯\\r\\n丙醇胺 治疗的 患者中, β受体阻滞剂可反常地引起高血压反应。在单独使用苯丙\\r\\n醇胺治疗的过程中,也有发生高血压反应的报道。\\r\\n 奎尼丁: 奎尼丁在所谓的快速羟化者(该类型在瑞典超过90%)中可抑制\\r\\n美托洛尔的代谢,结果使后者的血浆浓度显着升高、β受体阻滞作用增强。其他\\r\\n经由同一酶解途径(细胞色素P450 2D6)进行代谢的β受体阻滞剂,也可能会与奎\\r\\n尼丁发生同样的相互作用。\\r\\n 可乐定: β受体阻滞剂有可能加重可乐定突然停用时所发生的反跳性高血压。\\r\\n如欲终止与可乐定的联合治疗,应在停用可乐定前数日停用β受体阻滞剂。\\r\\n 利福平: 利福平可诱导美托洛尔的代谢,导致后者的血药浓度降低。\\r\\n 应严密监控同时接受其它β受体阻滞剂(如:滴眼液)或单胺氧化酶(MAO)抑\\r\\n制剂的患者。在接受β受体阻滞剂治疗的患者,吸入麻醉会增加心脏抑制作用。\\r\\n 接受β受体阻滞剂治疗的患者应重新调整口服降糖药的剂量。若与西咪替丁\\r\\n或肼屈嗪合用,美托洛尔的血浆浓度会增加。\"\n },\n \"Manufacturer\": {\n \"Address\": \"泰州市药城大道88号\",\n \"PostalCode\": \"225300\",\n \"Text\": \"委托方企业名称:阿斯利康制药有限公司\\t\\r\\n注册地址:无锡市新区黄山路2号\\t\\r\\n邮政编码:214028\\t\\r\\n受托方企业名称:阿斯利康药业(中国)有限公司\\t\\r\\n生产地址:泰州市药城大道88号\\t\\r\\n邮政编码:225300\\t\\r\\n质量投诉电话:4008281755,800 8281755\\t\\r\\n产品信息免费咨询电话:400 820 8116,800 820 8116\\t\\r\\n传真:021-38723255\\t\\r\\n网址:www.astrazeneca.com.cn\\t\\r\\n\\r\\n AstraZeneca\\r\\n 2003-2020\\r\\n BETALOC和倍他乐克是AstraZeneca公司的商标。\\r\\n AstraZeneca\",\n \"Website\": \"www.astrazeneca.com.cn\\t\\r\\n\\r\\n AstraZeneca\\r\\n 2003-2020\\r\\n BETALOC和倍他乐克是AstraZeneca公司的商标。\\r\\n AstraZeneca\"\n },\n \"Name\": {\n \"BarndName\": \"倍他乐克\",\n \"EnName\": \"MetoprololTartrate Tablets\",\n \"GenericName\": \"酒石酸美托洛尔片\",\n \"Pinyin\": \"Jiushisuan Meituoluoer Pian\",\n \"Text\": \"通用名称: 酒石酸美托洛尔片\\r\\n 商品名称: 倍他乐克\\r\\n 英文名称: MetoprololTartrate Tablets\\r\\n 汉语拼音: Jiushisuan Meituoluoer Pian\"\n },\n \"Overdose\": {\n \"Text\": \"毒性: 美托洛尔7.5g引起成人致死性中毒。一例5岁儿童误服100mg经洗胃后\\r\\n无任何症状。12岁儿童给予450mg引起中度中毒,成人给予1.4g引起中度中毒、\\r\\n给予2.5g引起重度中毒、给予7.5g引起极重度中毒。\\r\\n 症状: 心血管系统症状最为显着,但某些病例,特别是儿童和年轻患者,可\\r\\n能以中枢神经系统症状和呼吸抑制为主要表现。主要的中毒症状有心动过缓、I~\\r\\nIII度房室传导阻滞、心搏停止、血压下降、外周循环灌注不良、心功能不全、\\r\\n心源性休克、呼吸抑制和窒息。其他症状包括疲乏、精神错乱、神志丧失、频细\\r\\n震颤、痉挛、出汗、感觉异常、支气管痉挛、恶心、呕吐、可能有食管痉挛、低\\r\\n血糖(儿童特别容易发生)或高血糖症、高钾血症,对肾脏的影响,以及一过性\\r\\n肌无力综合征。合并酒精,抗高血压药、奎尼丁或巴比妥类药物可能加重患者的\\r\\n病情。药物过量的首发症状可见于服药后20分钟至2小时。\\r\\n 治疗: 诊断明确者,给予洗胃和活性炭,并严密观察病情变化。注意!为减\\r\\n少迷走神经刺激的危险,洗胃前应先静脉给予阿托品(成人0.25~0.5mg,儿童\\r\\n10~20μg/kg)。有指征时,进行气管内插管和呼吸支持治疗。给予适当的容量\\r\\n替代治疗,输注葡萄糖,监测心电图。阿托品1.0~2.0mg静脉注射,必要时可重\\r\\n复注射(主要控制迷走神经症状)。对心肌功能抑制的患者,可滴注多巴酚丁胺\\r\\n或多巴胺,葡乳醛酸钙(9mg/ml)10~20ml。另一种替代方法是胰高血糖素50~\\r\\n150μg/kg,1分钟内静脉注射,继以静脉滴注,或用氨力农。部分患者加用肾上\\r\\n腺素有效。QRS波增宽和心律失常的患者,可输注氯化钠或碳酸氢钠。可能需要\\r\\n安装心脏起搏器。对心搏骤停的患者,有时需要长达数小时的复苏抢救。治疗支\\r\\n气管痉挛时,可使用特布他林(注射或吸入)。此外,进行对症治疗。\"\n },\n \"Packaging\": {\n \"Text\": \"铝塑泡包装;\\r\\n25mg:20片/板/盒,20片/板x2板/盒,20片/板x3板/盒;\\r\\n50mg:20片/板/盒,20片/板x2板/盒;\"\n },\n \"PediatricUse\": {\n \"Text\": \"儿童使用本品的经验有限。\"\n },\n \"Pharmacokinetics\": {\n \"Text\": \"本品的生物利用度为40-50%。在服药后1-2小时达到最大的β受体阻滞作用。\\r\\n每日一次口服100mg后,对心率的作用在12小时后仍显着。美托洛尔主要在肝脏\\r\\n由CYP2D6代谢,三个主要的代谢物已被确定,均无具有临床意义的β受体阻滞作\\r\\n用。血浆半衰期为3-5小时。约5%的美托洛尔以原形由肾排泄,其馀的均被代谢。\"\n },\n \"PharmacologyToxicology\": {\n \"Text\": \"美托洛尔是一种选择性的β受体阻滞剂,其对心脏β受体产生作用所需剂\\r\\n量低于其对外周血管和支气管上的β:受体产生作用所需剂量。随剂量增加,β\\r\\n受体选择性可能降低。\\r\\n 美托洛尔无β受体激动作用,几乎无膜激活作用。β受体阻滞剂有负性变力\\r\\n和变时作用。\\r\\n 美托洛尔的治疗可减弱与生理和心理负荷有关的儿茶酚胺的作用,降低心率、\\r\\n心排出量及血压。在应激状态下,肾上腺分泌的肾上腺素增加,美托洛尔不会妨\\r\\n碍正常的生理性血管扩张。在治疗剂量,美托洛尔对支气管平滑肌的收缩作用弱\\r\\n于非选择性的β受体阻滞剂,该特性使之能与β受体激动剂合用,治疗合并有支\\r\\n气管哮喘或其他明显的阻塞性肺病的患者。美托洛尔对胰岛素释放及糖代谢的影\\r\\n响小于非选择性β受体阻滞剂,因而可用于糖尿病患者。与非选择性β受体阻滞\\r\\n剂相比,美托洛尔对低血糖的心血管反应如心动过速的影响较小,血糖回升至正\\r\\n常水平的速度较快。\\r\\n 对于高血压患者,本品可明显降低直立位、平卧位及运动时的血压,作用持\\r\\n续24小时以上。美托洛尔治疗开始时可观察到外周血管阻力的增加,然而,长期\\r\\n治疗获得的血压下降可能是由于外周血管阻力下降而心排出量不变。对于男性中\\r\\n/重度高血压患者,美托洛尔可降低心血管病死亡的危险。美托洛尔不会引起电\\r\\n解质紊乱。\\r\\n 对快速型心律失常的患者,本品可阻断交感神经活性增加的作用,使心率减\\r\\n慢。这主要通过降低起搏细胞的自律性,及延长室上性传导时间来实现。\\r\\n 本品显示快速有效的缓解甲状腺毒症的症状。高剂量的美托洛尔可降低升高\\r\\n的T3值。T4水平不受影响。\\r\\n 美托洛尔可减少再次心肌梗死的危险,减少心源性死亡特别是心肌梗死后猝\\r\\n死的危险。\"\n },\n \"Precautions\": {\n \"Text\": \"肾功能损害\\r\\n 肾功能对本品清除率无明显影响,因此肾功能损害患者无需调整剂量。\\r\\n 肝功能损害\\r\\n 通常肝硬化患者所用美托洛尔的剂量与肝功能正常者相同。仅在肝功能非常\\r\\n严重损害(如旁路手术患者)时才需考虑减少剂量。\\r\\n 接受β受体阻滞剂治疗的患者不可静脉给予维拉帕米。\\r\\n 美托洛尔可能使外周血管循环障碍疾病的症状如间歇性跛行加重。对严重的\\r\\n肾功能损害、伴代谢性酸中毒的严重急症,及合用洋地黄时,必须慎重。\\r\\n 在没有伴随治疗的情况下,本品不可用于潜在的或有症状的心功能不全的患\\r\\n者。患变异型(Prinzmetal氏)心绞痛的患者,在使用β受体阻滞剂后可能会由于\\r\\na受体介导的冠状血管收缩而导致心绞痛发作的频度和程度加重。因此,非选择\\r\\n性β受体阻滞剂不能用于此类患者。选择性β受体阻滞剂在使用时也必须慎重。\\r\\n 对支气管哮喘或其他慢性阻塞性肺病患者,应同时给予足够的扩支气管治疗,\\r\\nβ受体激动剂的剂量可能需要增加。\\r\\n 美托洛尔的治疗对糖代谢的影响或掩盖低血糖的危险低于非选择性β受体\\r\\n阻滞剂。\\r\\n 在罕见的情况下,原有的中度房室传导异常可能加重(可能导致房室阻滞)。\\r\\n β受体阻滞剂的治疗可能会妨碍对过敏反应的治疗,常规剂量的肾上腺素治\\r\\n疗并不总能得到预期的疗效。嗜铬细胞瘤患者若使用本品,应考虑合并使用α受\\r\\n体阻滞剂。\\r\\n 本品应尽可能逐步撤药,整个撤药过程至少用二周时间,剂量逐渐减低,直\\r\\n至最后减至25mg(50mg片的半片)。在此期间,特别是对于已知伴有缺血性心脏\\r\\n病的患者应进行密切监测。在撤除β受体阻滞剂期间,可能会使冠状动脉事件,\\r\\n包括心脏猝死的危险增加。\\r\\n 在手术前应告知麻醉医师患者正在服用本品。对接受手术的患者,不推荐停\\r\\n用β受体阻滞剂。\\r\\n 对驾驶汽车和操作机械的影响\\r\\n 在用本品治疗过程中可能会发生眩晕和疲劳,因此在需要集中注意力时,如\\r\\n驾驶和操作机械时应慎用。\\r\\n 运动员慎用\"\n },\n \"PregnancyLactationUse\": {\n \"Text\": \"β受体阻滞剂(包括美托洛尔)会减少胎盘灌注,可引起胎儿发育迟缓、心\\r\\n动过缓、宫内死亡、流产及早产。\\r\\n 美托洛尔在人乳中浓度很高(大约相当于母体血浆浓度的三倍)。β受体阻\\r\\n滞剂(包括美托洛尔)可对新生儿和婴儿产生不利影响,尤其是心动过缓。\\r\\n 除非必要,美托洛尔不得用于孕妇或哺乳期妇女。\\r\\n 妊娠、哺乳期妇女不宜使用本品。\\r\\n 如果你已经妊娠或正在哺乳期间、可能妊娠或试图怀孕,应在使用本品前咨\\r\\n询医生。\"\n },\n \"Storage\": {\n \"Text\": \"避光、密封保存。\"\n },\n \"ValidityPeriod\": {\n \"Text\": \"36个月\"\n }\n },\n \"RequestId\": \"108e3fa2-355b-4c1e-adfd-08557bbbc6ec\"\n }\n}",
|
8
|
+
"title": "药品说明书PDF文件结构化"
|
9
|
+
}
|
10
|
+
],
|
3
11
|
"ImageMask": [
|
4
12
|
{
|
5
13
|
"document": "",
|
@@ -14505,7 +14505,7 @@
|
|
14505
14505
|
},
|
14506
14506
|
{
|
14507
14507
|
"disabled": false,
|
14508
|
-
"document": "配置id支持:\nGeneral -- 通用场景\nOnlineTaxiItinerary -- 网约车行程单\nRideHailingDriverLicense -- 网约车驾驶证\nRideHailingTransportLicense -- 网约车运输证\nWayBill -- 快递运单\nAccountOpeningPermit -- 银行开户许可证\nInvoiceEng -- 海外发票模版\nCoin --钱币识别模板\nOnboardingDocuments -- 入职材料识别\nPropertyOwnershipCertificate -- 房产证识别\nRealEstateCertificate --不动产权证识别\nHouseEncumbranceCertificate -- 他权证识别\nCarInsurance --
|
14508
|
+
"document": "配置id支持:\nGeneral -- 通用场景\nOnlineTaxiItinerary -- 网约车行程单\nRideHailingDriverLicense -- 网约车驾驶证\nRideHailingTransportLicense -- 网约车运输证\nWayBill -- 快递运单\nAccountOpeningPermit -- 银行开户许可证\nInvoiceEng -- 海外发票模版\nCoin --钱币识别模板\nOnboardingDocuments -- 入职材料识别\nPropertyOwnershipCertificate -- 房产证识别\nRealEstateCertificate --不动产权证识别\nHouseEncumbranceCertificate -- 他权证识别\nCarInsurance -- 车险保单\nMultiRealEstateCertificate -- 房产证、不动产证、产权证等材料合一模板",
|
14509
14509
|
"example": "无",
|
14510
14510
|
"member": "string",
|
14511
14511
|
"name": "ConfigId",
|
tccli/services/rce/rce_client.py
CHANGED
@@ -17,58 +17,6 @@ from tencentcloud.rce.v20201103 import models as models_v20201103
|
|
17
17
|
from jmespath import search
|
18
18
|
import time
|
19
19
|
|
20
|
-
def doDescribeRiskTrends(args, parsed_globals):
|
21
|
-
g_param = parse_global_arg(parsed_globals)
|
22
|
-
|
23
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
24
|
-
cred = credential.CVMRoleCredential()
|
25
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
26
|
-
cred = credential.STSAssumeRoleCredential(
|
27
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
28
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
29
|
-
)
|
30
|
-
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):
|
31
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
32
|
-
else:
|
33
|
-
cred = credential.Credential(
|
34
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
35
|
-
)
|
36
|
-
http_profile = HttpProfile(
|
37
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
38
|
-
reqMethod="POST",
|
39
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
40
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
41
|
-
)
|
42
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
43
|
-
if g_param[OptionsDefine.Language]:
|
44
|
-
profile.language = g_param[OptionsDefine.Language]
|
45
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
46
|
-
client = mod.RceClient(cred, g_param[OptionsDefine.Region], profile)
|
47
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
48
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
49
|
-
model = models.DescribeRiskTrendsRequest()
|
50
|
-
model.from_json_string(json.dumps(args))
|
51
|
-
start_time = time.time()
|
52
|
-
while True:
|
53
|
-
rsp = client.DescribeRiskTrends(model)
|
54
|
-
result = rsp.to_json_string()
|
55
|
-
try:
|
56
|
-
json_obj = json.loads(result)
|
57
|
-
except TypeError as e:
|
58
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
59
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
60
|
-
break
|
61
|
-
cur_time = time.time()
|
62
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
63
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
64
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
65
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
66
|
-
else:
|
67
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
68
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
69
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
70
|
-
|
71
|
-
|
72
20
|
def doDescribeRiskAssessment(args, parsed_globals):
|
73
21
|
g_param = parse_global_arg(parsed_globals)
|
74
22
|
|
@@ -184,7 +132,6 @@ MODELS_MAP = {
|
|
184
132
|
}
|
185
133
|
|
186
134
|
ACTION_MAP = {
|
187
|
-
"DescribeRiskTrends": doDescribeRiskTrends,
|
188
135
|
"DescribeRiskAssessment": doDescribeRiskAssessment,
|
189
136
|
"ManageMarketingRisk": doManageMarketingRisk,
|
190
137
|
|
@@ -7,13 +7,6 @@
|
|
7
7
|
"output": "DescribeRiskAssessmentResponse",
|
8
8
|
"status": "online"
|
9
9
|
},
|
10
|
-
"DescribeRiskTrends": {
|
11
|
-
"document": "以图表形式展示三种请求状态的趋势变化",
|
12
|
-
"input": "DescribeRiskTrendsRequest",
|
13
|
-
"name": "风险趋势统计",
|
14
|
-
"output": "DescribeRiskTrendsResponse",
|
15
|
-
"status": "online"
|
16
|
-
},
|
17
10
|
"ManageMarketingRisk": {
|
18
11
|
"document": "全栈式风控引擎(RiskControlEngine,RCE)是基于人工智能技术和腾讯20年风控实战沉淀,依托腾讯海量业务构建的风控引擎,以轻量级的 SaaS 服务方式接入,帮助您快速解决注册、登录、营销活动等关键场景遇到的欺诈问题,实时防御黑灰产作恶。",
|
19
12
|
"input": "ManageMarketingRiskRequest",
|
@@ -88,42 +81,6 @@
|
|
88
81
|
],
|
89
82
|
"type": "object"
|
90
83
|
},
|
91
|
-
"DescribeRiskTrendsRequest": {
|
92
|
-
"document": "DescribeRiskTrends请求参数结构体",
|
93
|
-
"members": [
|
94
|
-
{
|
95
|
-
"disabled": false,
|
96
|
-
"document": "业务入参",
|
97
|
-
"example": "",
|
98
|
-
"member": "InputFrontRisk",
|
99
|
-
"name": "BusinessSecurityData",
|
100
|
-
"required": true,
|
101
|
-
"type": "object"
|
102
|
-
}
|
103
|
-
],
|
104
|
-
"type": "object"
|
105
|
-
},
|
106
|
-
"DescribeRiskTrendsResponse": {
|
107
|
-
"document": "DescribeRiskTrends返回参数结构体",
|
108
|
-
"members": [
|
109
|
-
{
|
110
|
-
"disabled": false,
|
111
|
-
"document": "业务出参",
|
112
|
-
"example": "",
|
113
|
-
"member": "OutputFrontRiskData",
|
114
|
-
"name": "Data",
|
115
|
-
"type": "object",
|
116
|
-
"value_allowed_null": false
|
117
|
-
},
|
118
|
-
{
|
119
|
-
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
120
|
-
"member": "string",
|
121
|
-
"name": "RequestId",
|
122
|
-
"type": "string"
|
123
|
-
}
|
124
|
-
],
|
125
|
-
"type": "object"
|
126
|
-
},
|
127
84
|
"InputCryptoManageMarketingRisk": {
|
128
85
|
"document": "全栈式风控引擎入参",
|
129
86
|
"members": [
|
@@ -186,72 +143,6 @@
|
|
186
143
|
],
|
187
144
|
"usage": "in"
|
188
145
|
},
|
189
|
-
"InputFrontRisk": {
|
190
|
-
"document": "风险趋势统计--入参",
|
191
|
-
"members": [
|
192
|
-
{
|
193
|
-
"disabled": false,
|
194
|
-
"document": "事件ID",
|
195
|
-
"example": "",
|
196
|
-
"member": "int64",
|
197
|
-
"name": "EventId",
|
198
|
-
"required": true,
|
199
|
-
"type": "int",
|
200
|
-
"value_allowed_null": false
|
201
|
-
},
|
202
|
-
{
|
203
|
-
"disabled": false,
|
204
|
-
"document": "开始时间",
|
205
|
-
"example": "",
|
206
|
-
"member": "string",
|
207
|
-
"name": "StartTime",
|
208
|
-
"required": false,
|
209
|
-
"type": "string",
|
210
|
-
"value_allowed_null": false
|
211
|
-
},
|
212
|
-
{
|
213
|
-
"disabled": false,
|
214
|
-
"document": "结束时间",
|
215
|
-
"example": "",
|
216
|
-
"member": "string",
|
217
|
-
"name": "EndTime",
|
218
|
-
"required": false,
|
219
|
-
"type": "string",
|
220
|
-
"value_allowed_null": false
|
221
|
-
},
|
222
|
-
{
|
223
|
-
"disabled": false,
|
224
|
-
"document": "趋势类型",
|
225
|
-
"example": "",
|
226
|
-
"member": "int64",
|
227
|
-
"name": "Type",
|
228
|
-
"required": false,
|
229
|
-
"type": "int",
|
230
|
-
"value_allowed_null": false
|
231
|
-
},
|
232
|
-
{
|
233
|
-
"disabled": false,
|
234
|
-
"document": "当前开始时间",
|
235
|
-
"example": "",
|
236
|
-
"member": "string",
|
237
|
-
"name": "CurrentStartTime",
|
238
|
-
"required": false,
|
239
|
-
"type": "string",
|
240
|
-
"value_allowed_null": false
|
241
|
-
},
|
242
|
-
{
|
243
|
-
"disabled": false,
|
244
|
-
"document": "当前结束时间",
|
245
|
-
"example": "",
|
246
|
-
"member": "string",
|
247
|
-
"name": "CurrentEndTime",
|
248
|
-
"required": false,
|
249
|
-
"type": "string",
|
250
|
-
"value_allowed_null": false
|
251
|
-
}
|
252
|
-
],
|
253
|
-
"usage": "in"
|
254
|
-
},
|
255
146
|
"InputManageMarketingRisk": {
|
256
147
|
"document": "全栈式风控引擎入参",
|
257
148
|
"members": [
|
@@ -591,94 +482,6 @@
|
|
591
482
|
],
|
592
483
|
"usage": "in"
|
593
484
|
},
|
594
|
-
"OutputFrontRisk": {
|
595
|
-
"document": "风险趋势统计出参,需要为数组",
|
596
|
-
"members": [
|
597
|
-
{
|
598
|
-
"disabled": false,
|
599
|
-
"document": "名称\n注意:此字段可能返回 null,表示取不到有效值。",
|
600
|
-
"example": "",
|
601
|
-
"member": "string",
|
602
|
-
"name": "Name",
|
603
|
-
"required": true,
|
604
|
-
"type": "string",
|
605
|
-
"value_allowed_null": true
|
606
|
-
},
|
607
|
-
{
|
608
|
-
"disabled": false,
|
609
|
-
"document": "参数值\n注意:此字段可能返回 null,表示取不到有效值。",
|
610
|
-
"example": "",
|
611
|
-
"member": "OutputFrontRiskValue",
|
612
|
-
"name": "Value",
|
613
|
-
"required": true,
|
614
|
-
"type": "list",
|
615
|
-
"value_allowed_null": true
|
616
|
-
}
|
617
|
-
],
|
618
|
-
"usage": "out"
|
619
|
-
},
|
620
|
-
"OutputFrontRiskData": {
|
621
|
-
"document": "风险趋势统计--出参",
|
622
|
-
"members": [
|
623
|
-
{
|
624
|
-
"disabled": false,
|
625
|
-
"document": "返回码[0:成功;非0:标识失败错误码]。\n注意:此字段可能返回 null,表示取不到有效值。",
|
626
|
-
"example": "",
|
627
|
-
"member": "int64",
|
628
|
-
"name": "Code",
|
629
|
-
"required": true,
|
630
|
-
"type": "int",
|
631
|
-
"value_allowed_null": true
|
632
|
-
},
|
633
|
-
{
|
634
|
-
"disabled": false,
|
635
|
-
"document": "出错消息[UTF-8编码]。\n注意:此字段可能返回 null,表示取不到有效值。",
|
636
|
-
"example": "",
|
637
|
-
"member": "string",
|
638
|
-
"name": "Message",
|
639
|
-
"required": true,
|
640
|
-
"type": "string",
|
641
|
-
"value_allowed_null": true
|
642
|
-
},
|
643
|
-
{
|
644
|
-
"disabled": false,
|
645
|
-
"document": "返回结果。\n注意:此字段可能返回 null,表示取不到有效值。",
|
646
|
-
"example": "",
|
647
|
-
"member": "OutputFrontRisk",
|
648
|
-
"name": "Value",
|
649
|
-
"required": true,
|
650
|
-
"type": "list",
|
651
|
-
"value_allowed_null": true
|
652
|
-
}
|
653
|
-
],
|
654
|
-
"usage": "out"
|
655
|
-
},
|
656
|
-
"OutputFrontRiskValue": {
|
657
|
-
"document": "风险趋势统计--值",
|
658
|
-
"members": [
|
659
|
-
{
|
660
|
-
"disabled": false,
|
661
|
-
"document": "请求次数\n注意:此字段可能返回 null,表示取不到有效值。",
|
662
|
-
"example": "",
|
663
|
-
"member": "int64",
|
664
|
-
"name": "Requests",
|
665
|
-
"required": true,
|
666
|
-
"type": "int",
|
667
|
-
"value_allowed_null": true
|
668
|
-
},
|
669
|
-
{
|
670
|
-
"disabled": false,
|
671
|
-
"document": "日期标签\n注意:此字段可能返回 null,表示取不到有效值。",
|
672
|
-
"example": "",
|
673
|
-
"member": "string",
|
674
|
-
"name": "Index",
|
675
|
-
"required": true,
|
676
|
-
"type": "string",
|
677
|
-
"value_allowed_null": true
|
678
|
-
}
|
679
|
-
],
|
680
|
-
"usage": "out"
|
681
|
-
},
|
682
485
|
"OutputManageMarketingRisk": {
|
683
486
|
"document": "全栈式风控引擎出参",
|
684
487
|
"members": [
|
@@ -8,14 +8,6 @@
|
|
8
8
|
"title": "DescribeRiskAssessment"
|
9
9
|
}
|
10
10
|
],
|
11
|
-
"DescribeRiskTrends": [
|
12
|
-
{
|
13
|
-
"document": "",
|
14
|
-
"input": "https://rce.tencentcloudapi.com/?Action=DescribeRiskTrends\n&BusinessSecurityData.EventId=-1\n&<公共请求参数>",
|
15
|
-
"output": "{\n \"Response\": {\n \"Data\": {\n \"Code\": 0,\n \"Message\": \"OK\",\n \"Value\": [\n {\n \"Name\": \"请求总量\",\n \"Value\": [\n {\n \"Requests\": 0,\n \"Index\": \"2020-06-10 00:00:00\"\n },\n {\n \"Requests\": 0,\n \"Index\": \"2020-06-11 00:00:00\"\n },\n {\n \"Requests\": 0,\n \"Index\": \"2020-06-12 00:00:00\"\n },\n {\n \"Requests\": 0,\n \"Index\": \"2020-06-13 00:00:00\"\n },\n {\n \"Requests\": 0,\n \"Index\": \"2020-06-14 00:00:00\"\n },\n {\n \"Requests\": 0,\n \"Index\": \"2020-06-15 00:00:00\"\n },\n {\n \"Requests\": 0,\n \"Index\": \"2020-06-16 00:00:00\"\n },\n {\n \"Requests\": 0,\n \"Index\": \"2020-06-17 00:00:00\"\n },\n {\n \"Requests\": 0,\n \"Index\": \"2020-06-17 10:21:23\"\n }\n ]\n },\n {\n \"Name\": \"正常请求量\",\n \"Value\": [\n {\n \"Requests\": 0,\n \"Index\": \"2020-06-10 00:00:00\"\n },\n {\n \"Requests\": 0,\n \"Index\": \"2020-06-11 00:00:00\"\n },\n {\n \"Requests\": 0,\n \"Index\": \"2020-06-12 00:00:00\"\n },\n {\n \"Requests\": 0,\n \"Index\": \"2020-06-13 00:00:00\"\n },\n {\n \"Requests\": 0,\n \"Index\": \"2020-06-14 00:00:00\"\n },\n {\n \"Requests\": 0,\n \"Index\": \"2020-06-15 00:00:00\"\n },\n {\n \"Requests\": 0,\n \"Index\": \"2020-06-16 00:00:00\"\n },\n {\n \"Requests\": 0,\n \"Index\": \"2020-06-17 00:00:00\"\n },\n {\n \"Requests\": 0,\n \"Index\": \"2020-06-17 10:21:23\"\n }\n ]\n },\n {\n \"Name\": \"疑似请求量\",\n \"Value\": [\n {\n \"Requests\": 0,\n \"Index\": \"2020-06-10 00:00:00\"\n },\n {\n \"Requests\": 0,\n \"Index\": \"2020-06-11 00:00:00\"\n },\n {\n \"Requests\": 0,\n \"Index\": \"2020-06-12 00:00:00\"\n },\n {\n \"Requests\": 0,\n \"Index\": \"2020-06-13 00:00:00\"\n },\n {\n \"Requests\": 0,\n \"Index\": \"2020-06-14 00:00:00\"\n },\n {\n \"Requests\": 0,\n \"Index\": \"2020-06-15 00:00:00\"\n },\n {\n \"Requests\": 0,\n \"Index\": \"2020-06-16 00:00:00\"\n },\n {\n \"Requests\": 0,\n \"Index\": \"2020-06-17 00:00:00\"\n },\n {\n \"Requests\": 0,\n \"Index\": \"2020-06-17 10:21:23\"\n }\n ]\n },\n {\n \"Name\": \"风险请求量\",\n \"Value\": [\n {\n \"Requests\": 0,\n \"Index\": \"2020-06-10 00:00:00\"\n },\n {\n \"Requests\": 0,\n \"Index\": \"2020-06-11 00:00:00\"\n },\n {\n \"Requests\": 0,\n \"Index\": \"2020-06-12 00:00:00\"\n },\n {\n \"Requests\": 0,\n \"Index\": \"2020-06-13 00:00:00\"\n },\n {\n \"Requests\": 0,\n \"Index\": \"2020-06-14 00:00:00\"\n },\n {\n \"Requests\": 0,\n \"Index\": \"2020-06-15 00:00:00\"\n },\n {\n \"Requests\": 0,\n \"Index\": \"2020-06-16 00:00:00\"\n },\n {\n \"Requests\": 0,\n \"Index\": \"2020-06-17 00:00:00\"\n },\n {\n \"Requests\": 0,\n \"Index\": \"2020-06-17 10:21:23\"\n }\n ]\n }\n ]\n },\n \"RequestId\": \"6ef60bec-0242-43af-bb20-270359fb54a7\"\n }\n}",
|
16
|
-
"title": "DescribeRiskTrends"
|
17
|
-
}
|
18
|
-
],
|
19
11
|
"ManageMarketingRisk": [
|
20
12
|
{
|
21
13
|
"document": "使用手机号MD5请求方式",
|
tccli/services/ssl/ssl_client.py
CHANGED
@@ -329,7 +329,7 @@ def doDeleteManager(args, parsed_globals):
|
|
329
329
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
330
330
|
|
331
331
|
|
332
|
-
def
|
332
|
+
def doDescribeDownloadCertificateUrl(args, parsed_globals):
|
333
333
|
g_param = parse_global_arg(parsed_globals)
|
334
334
|
|
335
335
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -358,11 +358,11 @@ def doUploadConfirmLetter(args, parsed_globals):
|
|
358
358
|
client = mod.SslClient(cred, g_param[OptionsDefine.Region], profile)
|
359
359
|
client._sdkVersion += ("_CLI_" + __version__)
|
360
360
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
361
|
-
model = models.
|
361
|
+
model = models.DescribeDownloadCertificateUrlRequest()
|
362
362
|
model.from_json_string(json.dumps(args))
|
363
363
|
start_time = time.time()
|
364
364
|
while True:
|
365
|
-
rsp = client.
|
365
|
+
rsp = client.DescribeDownloadCertificateUrl(model)
|
366
366
|
result = rsp.to_json_string()
|
367
367
|
try:
|
368
368
|
json_obj = json.loads(result)
|
@@ -2253,6 +2253,58 @@ def doCreateCertificate(args, parsed_globals):
|
|
2253
2253
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2254
2254
|
|
2255
2255
|
|
2256
|
+
def doUploadConfirmLetter(args, parsed_globals):
|
2257
|
+
g_param = parse_global_arg(parsed_globals)
|
2258
|
+
|
2259
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2260
|
+
cred = credential.CVMRoleCredential()
|
2261
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2262
|
+
cred = credential.STSAssumeRoleCredential(
|
2263
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2264
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2265
|
+
)
|
2266
|
+
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):
|
2267
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2268
|
+
else:
|
2269
|
+
cred = credential.Credential(
|
2270
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2271
|
+
)
|
2272
|
+
http_profile = HttpProfile(
|
2273
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2274
|
+
reqMethod="POST",
|
2275
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
2276
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2277
|
+
)
|
2278
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2279
|
+
if g_param[OptionsDefine.Language]:
|
2280
|
+
profile.language = g_param[OptionsDefine.Language]
|
2281
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2282
|
+
client = mod.SslClient(cred, g_param[OptionsDefine.Region], profile)
|
2283
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2284
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2285
|
+
model = models.UploadConfirmLetterRequest()
|
2286
|
+
model.from_json_string(json.dumps(args))
|
2287
|
+
start_time = time.time()
|
2288
|
+
while True:
|
2289
|
+
rsp = client.UploadConfirmLetter(model)
|
2290
|
+
result = rsp.to_json_string()
|
2291
|
+
try:
|
2292
|
+
json_obj = json.loads(result)
|
2293
|
+
except TypeError as e:
|
2294
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2295
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2296
|
+
break
|
2297
|
+
cur_time = time.time()
|
2298
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2299
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2300
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2301
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2302
|
+
else:
|
2303
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2304
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2305
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2306
|
+
|
2307
|
+
|
2256
2308
|
def doDescribeHostLighthouseInstanceList(args, parsed_globals):
|
2257
2309
|
g_param = parse_global_arg(parsed_globals)
|
2258
2310
|
|
@@ -2998,7 +3050,7 @@ ACTION_MAP = {
|
|
2998
3050
|
"DescribeHostTkeInstanceList": doDescribeHostTkeInstanceList,
|
2999
3051
|
"UploadRevokeLetter": doUploadRevokeLetter,
|
3000
3052
|
"DeleteManager": doDeleteManager,
|
3001
|
-
"
|
3053
|
+
"DescribeDownloadCertificateUrl": doDescribeDownloadCertificateUrl,
|
3002
3054
|
"DeployCertificateInstance": doDeployCertificateInstance,
|
3003
3055
|
"SubmitAuditManager": doSubmitAuditManager,
|
3004
3056
|
"DescribePackages": doDescribePackages,
|
@@ -3035,6 +3087,7 @@ ACTION_MAP = {
|
|
3035
3087
|
"DescribeHostUpdateRecordDetail": doDescribeHostUpdateRecordDetail,
|
3036
3088
|
"DescribeHostUpdateRecord": doDescribeHostUpdateRecord,
|
3037
3089
|
"CreateCertificate": doCreateCertificate,
|
3090
|
+
"UploadConfirmLetter": doUploadConfirmLetter,
|
3038
3091
|
"DescribeHostLighthouseInstanceList": doDescribeHostLighthouseInstanceList,
|
3039
3092
|
"UpdateCertificateRecordRollback": doUpdateCertificateRecordRollback,
|
3040
3093
|
"DescribeHostVodInstanceList": doDescribeHostVodInstanceList,
|
@@ -161,6 +161,13 @@
|
|
161
161
|
"output": "DescribeDeployedResourcesResponse",
|
162
162
|
"status": "online"
|
163
163
|
},
|
164
|
+
"DescribeDownloadCertificateUrl": {
|
165
|
+
"document": "获取下载证书链接",
|
166
|
+
"input": "DescribeDownloadCertificateUrlRequest",
|
167
|
+
"name": "获取下载证书链接",
|
168
|
+
"output": "DescribeDownloadCertificateUrlResponse",
|
169
|
+
"status": "online"
|
170
|
+
},
|
164
171
|
"DescribeHostApiGatewayInstanceList": {
|
165
172
|
"document": "查询证书apiGateway云资源部署实例列表",
|
166
173
|
"input": "DescribeHostApiGatewayInstanceListRequest",
|
@@ -4558,6 +4565,62 @@
|
|
4558
4565
|
],
|
4559
4566
|
"type": "object"
|
4560
4567
|
},
|
4568
|
+
"DescribeDownloadCertificateUrlRequest": {
|
4569
|
+
"document": "DescribeDownloadCertificateUrl请求参数结构体",
|
4570
|
+
"members": [
|
4571
|
+
{
|
4572
|
+
"disabled": false,
|
4573
|
+
"document": "证书ID",
|
4574
|
+
"example": "s2dyw1",
|
4575
|
+
"member": "string",
|
4576
|
+
"name": "CertificateId",
|
4577
|
+
"required": true,
|
4578
|
+
"type": "string"
|
4579
|
+
},
|
4580
|
+
{
|
4581
|
+
"disabled": false,
|
4582
|
+
"document": "下载的服务类型: nginx tomcat apache iis jks other root",
|
4583
|
+
"example": "nginx",
|
4584
|
+
"member": "string",
|
4585
|
+
"name": "ServiceType",
|
4586
|
+
"required": false,
|
4587
|
+
"type": "string"
|
4588
|
+
}
|
4589
|
+
],
|
4590
|
+
"type": "object"
|
4591
|
+
},
|
4592
|
+
"DescribeDownloadCertificateUrlResponse": {
|
4593
|
+
"document": "DescribeDownloadCertificateUrl返回参数结构体",
|
4594
|
+
"members": [
|
4595
|
+
{
|
4596
|
+
"disabled": false,
|
4597
|
+
"document": "下载链接",
|
4598
|
+
"example": "https://xxxxx.zip",
|
4599
|
+
"member": "string",
|
4600
|
+
"name": "DownloadCertificateUrl",
|
4601
|
+
"required": true,
|
4602
|
+
"type": "string",
|
4603
|
+
"value_allowed_null": false
|
4604
|
+
},
|
4605
|
+
{
|
4606
|
+
"disabled": false,
|
4607
|
+
"document": "下载文件的名称",
|
4608
|
+
"example": "xxx.com_nginx.zip",
|
4609
|
+
"member": "string",
|
4610
|
+
"name": "DownloadFilename",
|
4611
|
+
"required": true,
|
4612
|
+
"type": "string",
|
4613
|
+
"value_allowed_null": false
|
4614
|
+
},
|
4615
|
+
{
|
4616
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
4617
|
+
"member": "string",
|
4618
|
+
"name": "RequestId",
|
4619
|
+
"type": "string"
|
4620
|
+
}
|
4621
|
+
],
|
4622
|
+
"type": "object"
|
4623
|
+
},
|
4561
4624
|
"DescribeHostApiGatewayInstanceListRequest": {
|
4562
4625
|
"document": "DescribeHostApiGatewayInstanceList请求参数结构体",
|
4563
4626
|
"members": [
|
@@ -202,6 +202,14 @@
|
|
202
202
|
"title": "证书查询关联资源"
|
203
203
|
}
|
204
204
|
],
|
205
|
+
"DescribeDownloadCertificateUrl": [
|
206
|
+
{
|
207
|
+
"document": "",
|
208
|
+
"input": "POST / HTTP/1.1\nHost: ssl.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeDownloadCertificateUrl\n<公共请求参数>\n\n{\n \"CertificateId\": \"sduwd123\",\n \"ServiceType\": \"nginx\"\n}",
|
209
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"xxx-xxx-xxx-xxx\",\n \"DownloadCertificateUrl\": \"http://xxx.zip\",\n \"DownloadFilename\": \"xxx.com_nginx.zip\"\n }\n}",
|
210
|
+
"title": "返回成功"
|
211
|
+
}
|
212
|
+
],
|
205
213
|
"DescribeHostApiGatewayInstanceList": [
|
206
214
|
{
|
207
215
|
"document": "查询证书ddos云资源部署实例列表",
|