tccli 3.0.1287.1__py2.py3-none-any.whl → 3.0.1289.1__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/plugins/sso/__init__.py +11 -1
  3. tccli/plugins/sso/login.py +3 -3
  4. tccli/services/asr/v20190614/api.json +6 -6
  5. tccli/services/asr/v20190614/examples.json +4 -4
  6. tccli/services/bi/v20220105/api.json +43 -0
  7. tccli/services/billing/v20180709/api.json +564 -504
  8. tccli/services/captcha/v20190722/api.json +79 -77
  9. tccli/services/cdc/v20201214/api.json +16 -16
  10. tccli/services/cdwpg/v20201230/api.json +5 -5
  11. tccli/services/cdwpg/v20201230/examples.json +6 -6
  12. tccli/services/cdz/v20221123/api.json +4 -4
  13. tccli/services/cfg/v20210820/api.json +197 -197
  14. tccli/services/cfg/v20210820/examples.json +1 -1
  15. tccli/services/cfs/v20190719/api.json +1 -1
  16. tccli/services/clb/v20180317/api.json +2 -2
  17. tccli/services/cvm/cvm_client.py +53 -0
  18. tccli/services/cvm/v20170312/api.json +110 -5
  19. tccli/services/cvm/v20170312/examples.json +8 -0
  20. tccli/services/cwp/v20180228/api.json +102 -24
  21. tccli/services/dbbrain/dbbrain_client.py +383 -12
  22. tccli/services/dbbrain/v20210527/api.json +884 -101
  23. tccli/services/dbbrain/v20210527/examples.json +56 -0
  24. tccli/services/domain/v20180808/api.json +52 -32
  25. tccli/services/dts/v20180330/api.json +34 -34
  26. tccli/services/dts/v20180330/examples.json +1 -1
  27. tccli/services/dts/v20211206/api.json +225 -223
  28. tccli/services/dts/v20211206/examples.json +2 -2
  29. tccli/services/ess/v20201111/api.json +53 -2
  30. tccli/services/essbasic/v20210526/api.json +54 -3
  31. tccli/services/hunyuan/v20230901/api.json +45 -12
  32. tccli/services/iotexplorer/iotexplorer_client.py +159 -0
  33. tccli/services/iotexplorer/v20190423/api.json +561 -0
  34. tccli/services/iotexplorer/v20190423/examples.json +24 -0
  35. tccli/services/iotvideo/iotvideo_client.py +106 -0
  36. tccli/services/iotvideo/v20211125/api.json +105 -0
  37. tccli/services/iotvideo/v20211125/examples.json +16 -0
  38. tccli/services/lighthouse/v20200324/api.json +46 -46
  39. tccli/services/lighthouse/v20200324/examples.json +2 -2
  40. tccli/services/lke/v20231130/api.json +6 -6
  41. tccli/services/lke/v20231130/examples.json +1 -1
  42. tccli/services/lkeap/v20240522/api.json +2 -2
  43. tccli/services/mariadb/v20170312/api.json +30 -30
  44. tccli/services/mongodb/v20190725/api.json +3 -3
  45. tccli/services/mps/v20190612/api.json +88 -6
  46. tccli/services/mqtt/v20240516/api.json +3 -3
  47. tccli/services/mqtt/v20240516/examples.json +5 -11
  48. tccli/services/organization/v20210331/api.json +113 -113
  49. tccli/services/redis/v20180412/api.json +4 -4
  50. tccli/services/ses/v20201002/api.json +1 -1
  51. tccli/services/svp/v20240125/api.json +1 -1
  52. tccli/services/tat/v20201028/api.json +7 -7
  53. tccli/services/tcb/v20180608/api.json +236 -235
  54. tccli/services/tcb/v20180608/examples.json +1 -7
  55. tccli/services/tdmq/v20200217/api.json +231 -221
  56. tccli/services/teo/v20220901/api.json +670 -12
  57. tccli/services/teo/v20220901/examples.json +21 -3
  58. tccli/services/tione/v20211111/api.json +64 -6
  59. tccli/services/trocket/trocket_client.py +53 -0
  60. tccli/services/trocket/v20230308/api.json +61 -0
  61. tccli/services/trocket/v20230308/examples.json +8 -0
  62. tccli/services/trro/trro_client.py +53 -0
  63. tccli/services/trro/v20220325/api.json +70 -0
  64. tccli/services/trro/v20220325/examples.json +8 -0
  65. tccli/services/vdb/v20230616/api.json +31 -2
  66. tccli/services/vdb/v20230616/examples.json +8 -2
  67. tccli/services/vrs/v20200824/api.json +14 -2
  68. tccli/services/vrs/v20200824/examples.json +1 -1
  69. tccli/services/waf/v20180125/api.json +225 -0
  70. tccli/services/waf/v20180125/examples.json +24 -0
  71. tccli/services/waf/waf_client.py +159 -0
  72. tccli/services/wedata/v20210820/api.json +48 -0
  73. {tccli-3.0.1287.1.dist-info → tccli-3.0.1289.1.dist-info}/METADATA +2 -2
  74. {tccli-3.0.1287.1.dist-info → tccli-3.0.1289.1.dist-info}/RECORD +77 -77
  75. {tccli-3.0.1287.1.dist-info → tccli-3.0.1289.1.dist-info}/WHEEL +0 -0
  76. {tccli-3.0.1287.1.dist-info → tccli-3.0.1289.1.dist-info}/entry_points.txt +0 -0
  77. {tccli-3.0.1287.1.dist-info → tccli-3.0.1289.1.dist-info}/license_files/LICENSE +0 -0
@@ -154,7 +154,7 @@
154
154
  {
155
155
  "document": "查询一致性校验任务列表",
156
156
  "input": "POST / HTTP/1.1\nHost: dts.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCompareTasks\n<公共请求参数>\n\n{\n \"JobId\": \"dts-e7ukka6g\"\n}",
157
- "output": "{\n \"Response\": {\n \"Items\": [\n {\n \"CheckProcess\": {\n \"Message\": \"\",\n \"Status\": \"\",\n \"StepAll\": 0,\n \"StepNow\": 0,\n \"Percent\": 0,\n \"Steps\": []\n },\n \"CompareProcess\": {\n \"Message\": \"done\",\n \"Status\": \"\",\n \"StepAll\": 0,\n \"StepNow\": 0,\n \"Steps\": []\n },\n \"CompareTaskId\": \"dts-amm1jw5q-cmp-bmuum7jk\",\n \"Conclusion\": \"same\",\n \"Config\": {\n \"ObjectItems\": [\n {\n \"DbMode\": \"partial\",\n \"DbName\": \"big100\",\n \"SchemaName\": \"\",\n \"TableMode\": \"partial\",\n \"Tables\": null,\n \"ViewMode\": \"none\",\n \"Views\": null\n },\n {\n \"DbMode\": \"all\",\n \"DbName\": \"db1\",\n \"SchemaName\": \"\",\n \"TableMode\": \"all\",\n \"Tables\": null,\n \"ViewMode\": \"all\",\n \"Views\": null\n }\n ],\n \"ObjectMode\": \"partial\"\n },\n \"CreatedAt\": \"2022-07-11 17:21:02\",\n \"FinishedAt\": \"2022-07-11 17:24:54\",\n \"Method\": \"dataCheck\",\n \"Options\": {\n \"Method\": \"dataCheck\",\n \"SampleRate\": 100,\n \"ThreadCount\": 1\n },\n \"JobId\": \"dts-amm1jw5q\",\n \"Message\": \"done\",\n \"StartedAt\": \"2022-07-11 17:24:09\",\n \"Status\": \"success\",\n \"TaskName\": \"defaultCmpTask\"\n }\n ],\n \"RequestId\": \"11d35c90-01bb-11ed-bad9-7b3bbe11abda\",\n \"TotalCount\": 1\n }\n}",
157
+ "output": "{\n \"Response\": {\n \"Items\": [\n {\n \"CheckProcess\": {\n \"Message\": \"\",\n \"Status\": \"\",\n \"StepAll\": 0,\n \"StepNow\": 0,\n \"Percent\": 0,\n \"Steps\": []\n },\n \"CompareProcess\": {\n \"Message\": \"done\",\n \"Status\": \"\",\n \"StepAll\": 0,\n \"StepNow\": 0,\n \"Steps\": []\n },\n \"CompareTaskId\": \"dts-amm1jw5q-cmp-bmuum7jk\",\n \"Conclusion\": \"same\",\n \"Config\": {\n \"ObjectItems\": [\n {\n \"DbMode\": \"partial\",\n \"DbName\": \"big100\",\n \"SchemaName\": \"\",\n \"TableMode\": \"partial\",\n \"Tables\": null,\n \"ViewMode\": \"none\",\n \"Views\": null\n },\n {\n \"DbMode\": \"all\",\n \"DbName\": \"db1\",\n \"SchemaName\": \"\",\n \"TableMode\": \"all\",\n \"Tables\": null,\n \"ViewMode\": \"all\",\n \"Views\": null\n }\n ],\n \"ObjectMode\": \"partial\",\n \"AdvancedObjects\": [\n \"index\"\n ]\n },\n \"CreatedAt\": \"2022-07-11 17:21:02\",\n \"FinishedAt\": \"2022-07-11 17:24:54\",\n \"Method\": \"dataCheck\",\n \"Options\": {\n \"Method\": \"dataCheck\",\n \"SampleRate\": 100,\n \"ThreadCount\": 1\n },\n \"JobId\": \"dts-amm1jw5q\",\n \"Message\": \"done\",\n \"StartedAt\": \"2022-07-11 17:24:09\",\n \"Status\": \"success\",\n \"TaskName\": \"defaultCmpTask\"\n }\n ],\n \"RequestId\": \"11d35c90-01bb-11ed-bad9-7b3bbe11abda\",\n \"TotalCount\": 1\n }\n}",
158
158
  "title": "查询一致性校验任务列表"
159
159
  }
160
160
  ],
@@ -194,7 +194,7 @@
194
194
  {
195
195
  "document": "",
196
196
  "input": "POST / HTTP/1.1\nHost: dts.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeMigrationJobs\n<公共请求参数>\n\n{\n \"JobId\": \"dts-amm1jw5q\"\n}",
197
- "output": "{\n \"Response\": {\n \"JobList\": [\n {\n \"Action\": {\n \"AllAction\": [\n \"view\",\n \"modify\",\n \"check\",\n \"start\",\n \"configure\",\n \"stop\",\n \"complete\",\n \"resume\",\n \"createCmpTask\",\n \"isolate\",\n \"offline\",\n \"resize\",\n \"recover\"\n ],\n \"AllowedAction\": [\n \"view\",\n \"stop\",\n \"complete\",\n \"createCmpTask\",\n \"view\",\n \"isolate\",\n \"resize\"\n ]\n },\n \"CompareTask\": {\n \"CompareTaskId\": \"dts-amm1jw5q-cmp-bmuum7jk\",\n \"Status\": \"consistent\"\n },\n \"CreateTime\": \"2022-07-11 16:20:49\",\n \"DstInfo\": {\n \"AccessType\": \"cdb\",\n \"DatabaseType\": \"mysql\",\n \"ExtraAttr\": [],\n \"Info\": [\n {\n \"Account\": \"\",\n \"AccountMode\": \"\",\n \"AccountRole\": \"\",\n \"CcnGwId\": \"\",\n \"CvmInstanceId\": \"\",\n \"DbKernel\": \"\",\n \"EngineVersion\": \"\",\n \"Host\": \"\",\n \"InstanceId\": \"cdb-o7uph0cj\",\n \"Password\": \"Rogerp@ssw0rd\",\n \"Port\": 0,\n \"Role\": \"\",\n \"SubnetId\": \"\",\n \"TmpSecretId\": \"\",\n \"TmpSecretKey\": \"\",\n \"TmpToken\": \"\",\n \"UniqDcgId\": \"\",\n \"UniqVpnGwId\": \"\",\n \"User\": \"root\",\n \"VpcId\": \"\"\n }\n ],\n \"NodeType\": \"simple\",\n \"Region\": \"ap-guangzhou\",\n \"Supplier\": \"\"\n },\n \"EndTime\": \"0000-00-00 00:00:00\",\n \"ExpectRunTime\": \"\",\n \"JobId\": \"dts-amm1jw5q\",\n \"JobName\": \"test_config_api\",\n \"RunMode\": \"immediate\",\n \"SrcInfo\": {\n \"AccessType\": \"intranet\",\n \"DatabaseType\": \"mysql\",\n \"ExtraAttr\": [],\n \"Info\": [\n {\n \"Account\": \"\",\n \"AccountMode\": \"\",\n \"AccountRole\": \"\",\n \"CcnGwId\": \"\",\n \"CvmInstanceId\": \"\",\n \"DbKernel\": \"\",\n \"EngineVersion\": \"5.7\",\n \"Host\": \"9.123.210.37\",\n \"InstanceId\": \"\",\n \"Password\": \"Rogerp@ssw0rd\",\n \"Port\": 31035,\n \"Role\": \"\",\n \"SubnetId\": \"\",\n \"TmpSecretId\": \"\",\n \"TmpSecretKey\": \"\",\n \"TmpToken\": \"\",\n \"UniqDcgId\": \"\",\n \"UniqVpnGwId\": \"\",\n \"User\": \"root\",\n \"VpcId\": \"\"\n }\n ],\n \"NodeType\": \"simple\",\n \"Region\": \"ap-guangzhou\",\n \"Supplier\": \"\"\n },\n \"StartTime\": \"2022-07-11 17:20:56\",\n \"Status\": \"readyComplete\",\n \"Tags\": [],\n \"TradeInfo\": {\n \"BillingType\": \"billing\",\n \"DealName\": \"20220711715001047929481\",\n \"ExpireTime\": \"0000-00-00 00:00:00\",\n \"InstanceClass\": \"xlarge\",\n \"IsolateReason\": \"\",\n \"LastDealName\": \"\",\n \"OfflineReason\": \"\",\n \"PayType\": \"postpay\",\n \"TradeStatus\": \"normal\"\n },\n \"UpdateTime\": \"2022-07-11 17:26:40\"\n }\n ],\n \"RequestId\": \"asdfadfasdfasdf\",\n \"TotalCount\": 1\n }\n}",
197
+ "output": "{\n \"Response\": {\n \"JobList\": [\n {\n \"Action\": {\n \"AllAction\": [\n \"view\",\n \"modify\",\n \"check\",\n \"start\",\n \"configure\",\n \"stop\",\n \"complete\",\n \"resume\",\n \"createCmpTask\",\n \"isolate\",\n \"offline\",\n \"resize\",\n \"recover\"\n ],\n \"AllowedAction\": [\n \"view\",\n \"stop\",\n \"complete\",\n \"createCmpTask\",\n \"view\",\n \"isolate\",\n \"resize\"\n ]\n },\n \"CompareTask\": {\n \"CompareTaskId\": \"dts-amm1jw5q-cmp-bmuum7jk\",\n \"Status\": \"consistent\"\n },\n \"CreateTime\": \"2022-07-11 16:20:49\",\n \"BriefMsg\": \"\",\n \"DumperResumeCtrl\": \"yes\",\n \"AutoRetryTimeRangeMinutes\": 5,\n \"StepInfo\": {\n \"MasterSlaveDistance\": 0,\n \"SecondsBehindMaster\": 0,\n \"StepAll\": 3,\n \"StepInfo\": [\n {\n \"Errors\": [],\n \"StartTime\": \"2022-07-11 17:21:59\",\n \"Status\": \"finished\",\n \"StepId\": \"dumper\",\n \"StepName\": \"源库导出\",\n \"StepNo\": 1,\n \"Percent\": 100,\n \"StepMessage\": \"\",\n \"Warnings\": []\n },\n {\n \"Errors\": [],\n \"StartTime\": \"2022-07-11 17:22:43\",\n \"Status\": \"finished\",\n \"StepId\": \"loader\",\n \"StepName\": \"数据导入\",\n \"StepNo\": 2,\n \"Percent\": 100,\n \"StepMessage\": \"\",\n \"Warnings\": []\n },\n {\n \"Errors\": [],\n \"StartTime\": \"2022-07-11 17:23:26\",\n \"Status\": \"running\",\n \"StepId\": \"sinker\",\n \"StepName\": \"同步增量\",\n \"Percent\": 0,\n \"StepMessage\": \"\",\n \"StepNo\": 3,\n \"Warnings\": []\n }\n ],\n \"StepNow\": 3\n },\n \"DstInfo\": {\n \"AccessType\": \"cdb\",\n \"DatabaseType\": \"mysql\",\n \"ExtraAttr\": [],\n \"Info\": [\n {\n \"Account\": \"\",\n \"AccountMode\": \"\",\n \"AccountRole\": \"\",\n \"CcnGwId\": \"\",\n \"CvmInstanceId\": \"\",\n \"DbKernel\": \"\",\n \"EngineVersion\": \"\",\n \"Host\": \"\",\n \"InstanceId\": \"cdb-o7uph0cj\",\n \"Password\": \"Rogerp@ssw0rd\",\n \"Port\": 0,\n \"Role\": \"\",\n \"SubnetId\": \"\",\n \"TmpSecretId\": \"\",\n \"TmpSecretKey\": \"\",\n \"TmpToken\": \"\",\n \"UniqDcgId\": \"\",\n \"UniqVpnGwId\": \"\",\n \"User\": \"root\",\n \"VpcId\": \"\"\n }\n ],\n \"NodeType\": \"simple\",\n \"Region\": \"ap-guangzhou\",\n \"Supplier\": \"\"\n },\n \"EndTime\": \"0000-00-00 00:00:00\",\n \"ExpectRunTime\": \"\",\n \"JobId\": \"dts-amm1jw5q\",\n \"JobName\": \"test_config_api\",\n \"RunMode\": \"immediate\",\n \"SrcInfo\": {\n \"AccessType\": \"intranet\",\n \"DatabaseType\": \"mysql\",\n \"ExtraAttr\": [],\n \"Info\": [\n {\n \"Account\": \"\",\n \"AccountMode\": \"\",\n \"AccountRole\": \"\",\n \"CcnGwId\": \"\",\n \"CvmInstanceId\": \"\",\n \"DbKernel\": \"\",\n \"EngineVersion\": \"5.7\",\n \"Host\": \"9.123.210.37\",\n \"InstanceId\": \"\",\n \"Password\": \"Rogerp@ssw0rd\",\n \"Port\": 31035,\n \"Role\": \"\",\n \"SubnetId\": \"\",\n \"TmpSecretId\": \"\",\n \"TmpSecretKey\": \"\",\n \"TmpToken\": \"\",\n \"UniqDcgId\": \"\",\n \"UniqVpnGwId\": \"\",\n \"User\": \"root\",\n \"VpcId\": \"\"\n }\n ],\n \"NodeType\": \"simple\",\n \"Region\": \"ap-guangzhou\",\n \"Supplier\": \"\"\n },\n \"StartTime\": \"2022-07-11 17:20:56\",\n \"Status\": \"readyComplete\",\n \"Tags\": [],\n \"TradeInfo\": {\n \"BillingType\": \"billing\",\n \"DealName\": \"20220711715001047929481\",\n \"ExpireTime\": \"0000-00-00 00:00:00\",\n \"OfflineTime\": \"0000-00-00 00:00:00\",\n \"IsolateTime\": \"0000-00-00 00:00:00\",\n \"InstanceClass\": \"xlarge\",\n \"IsolateReason\": \"\",\n \"LastDealName\": \"\",\n \"OfflineReason\": \"\",\n \"PayType\": \"postpay\",\n \"TradeStatus\": \"normal\"\n },\n \"UpdateTime\": \"2022-07-11 17:26:40\"\n }\n ],\n \"RequestId\": \"asdfadfasdfasdf\",\n \"TotalCount\": 1\n }\n}",
198
198
  "title": "查询数据迁移任务列表"
199
199
  }
200
200
  ],
@@ -2791,6 +2791,15 @@
2791
2791
  "name": "CacheApproverInfo",
2792
2792
  "required": false,
2793
2793
  "type": "bool"
2794
+ },
2795
+ {
2796
+ "disabled": false,
2797
+ "document": "是否允许此链接中签署方批量拒签。\n <ul><li>false (默认): 不允许批量拒签</li> <li>true : 允许批量拒签。</li></ul>\n\n注:`合同组暂不支持批量拒签功能。`\n",
2798
+ "example": "false",
2799
+ "member": "bool",
2800
+ "name": "CanBatchReject",
2801
+ "required": false,
2802
+ "type": "bool"
2794
2803
  }
2795
2804
  ],
2796
2805
  "type": "object"
@@ -2936,6 +2945,15 @@
2936
2945
  "name": "UrlUseEnv",
2937
2946
  "required": false,
2938
2947
  "type": "string"
2948
+ },
2949
+ {
2950
+ "disabled": false,
2951
+ "document": "是否允许此链接中签署方批量拒签。 <ul><li>false (默认): 不允许批量拒签</li> <li>true : 允许批量拒签。</li></ul>注:`合同组暂不支持批量拒签功能。`",
2952
+ "example": "false",
2953
+ "member": "bool",
2954
+ "name": "CanBatchReject",
2955
+ "required": false,
2956
+ "type": "bool"
2939
2957
  }
2940
2958
  ],
2941
2959
  "type": "object"
@@ -4608,6 +4626,15 @@
4608
4626
  "name": "ResultPageConfig",
4609
4627
  "required": false,
4610
4628
  "type": "list"
4629
+ },
4630
+ {
4631
+ "disabled": false,
4632
+ "document": "签署控件的配置信息,用在嵌入式发起的页面配置,包括 \n - 签署控件 是否默认展示日期.",
4633
+ "example": "无",
4634
+ "member": "SignComponentConfig",
4635
+ "name": "SignComponentConfig",
4636
+ "required": false,
4637
+ "type": "object"
4611
4638
  }
4612
4639
  ],
4613
4640
  "usage": "in"
@@ -6555,12 +6582,21 @@
6555
6582
  },
6556
6583
  {
6557
6584
  "disabled": false,
6558
- "document": "在短信通知、填写、签署流程中,若标题、按钮、合同详情等地方存在“合同”字样时,可根据此配置指定文案,可选文案如下: <ul><li> <b>0</b> :合同(默认值)</li> <li> <b>1</b> :文件</li> <li> <b>2</b> :协议</li></ul>效果如下:![FlowDisplayType](https://qcloudimg.tencent-cloud.cn/raw/e4a2c4d638717cc901d3dbd5137c9bbc.png)",
6585
+ "document": "在短信通知、填写、签署流程中,若标题、按钮、合同详情等地方存在“合同”字样时,可根据此配置指定文案,可选文案如下: <ul><li> <b>0</b> :合同(默认值)</li> <li> <b>1</b> :文件</li> <li> <b>2</b> :协议</li><li> <b>3</b> :文书</li></ul>效果如下:![FlowDisplayType](https://qcloudimg.tencent-cloud.cn/raw/e4a2c4d638717cc901d3dbd5137c9bbc.png)",
6559
6586
  "example": "1",
6560
6587
  "member": "int64",
6561
6588
  "name": "FlowDisplayType",
6562
6589
  "required": false,
6563
6590
  "type": "int"
6591
+ },
6592
+ {
6593
+ "disabled": true,
6594
+ "document": "<font color=\"red\">此参数已经废弃,请使用 CreateFlowOption 里面的 SignComponentConfig</font>\n签署控件的配置信息,用在嵌入式发起的页面配置,\n包括 \n\n- 签署控件 是否默认展示日期.",
6595
+ "example": "无",
6596
+ "member": "SignComponentConfig",
6597
+ "name": "SignComponentConfig",
6598
+ "required": false,
6599
+ "type": "object"
6564
6600
  }
6565
6601
  ],
6566
6602
  "type": "object"
@@ -12221,7 +12257,7 @@
12221
12257
  },
12222
12258
  {
12223
12259
  "disabled": false,
12224
- "document": "在短信通知、填写、签署流程中,若标题、按钮、合同详情等地方存在“合同”字样时,可根据此配置指定文案,可选文案如下: <ul><li> <b>0</b> :合同(默认值)</li> <li> <b>1</b> :文件</li> <li> <b>2</b> :协议</li></ul>效果如下:![FlowDisplayType](https://qcloudimg.tencent-cloud.cn/raw/e4a2c4d638717cc901d3dbd5137c9bbc.png)",
12260
+ "document": "在短信通知、填写、签署流程中,若标题、按钮、合同详情等地方存在“合同”字样时,可根据此配置指定文案,可选文案如下: <ul><li> <b>0</b> :合同(默认值)</li> <li> <b>1</b> :文件</li> <li> <b>2</b> :协议</li><li> <b>3</b> :文书</li></ul>效果如下:![FlowDisplayType](https://qcloudimg.tencent-cloud.cn/raw/e4a2c4d638717cc901d3dbd5137c9bbc.png)",
12225
12261
  "example": "1",
12226
12262
  "member": "int64",
12227
12263
  "name": "FlowDisplayType",
@@ -14734,6 +14770,21 @@
14734
14770
  ],
14735
14771
  "usage": "both"
14736
14772
  },
14773
+ "SignComponentConfig": {
14774
+ "document": "签署控件的配置信息,用在嵌入式发起的页面配置,包括\n\n- 签署控件是否默认展示日期.",
14775
+ "members": [
14776
+ {
14777
+ "disabled": false,
14778
+ "document": "签署控件默认属性配置,是否默认展示签署日期, 在页面中可以进行修改。\n\n- false 展示签署日期(默认)\n- true 不展示签署日期 \n![image](https://qcloudimg.tencent-cloud.cn/raw/448514412e2f69f6129425beda4ff568.png)。",
14779
+ "example": "false",
14780
+ "member": "bool",
14781
+ "name": "HideDate",
14782
+ "required": false,
14783
+ "type": "bool"
14784
+ }
14785
+ ],
14786
+ "usage": "in"
14787
+ },
14737
14788
  "SignQrCode": {
14738
14789
  "document": "签署二维码的基本信息,用于创建二维码,用户可扫描该二维码进行签署操作。",
14739
14790
  "members": [
@@ -1209,7 +1209,7 @@
1209
1209
  },
1210
1210
  {
1211
1211
  "disabled": false,
1212
- "document": "在短信通知、填写、签署流程中,若标题、按钮、合同详情等地方存在“合同”字样时,可根据此配置指定文案,可选文案如下: <ul><li> <b>0</b> :合同(默认值)</li> <li> <b>1</b> :文件</li> <li> <b>2</b> :协议</li></ul>效果如下:![FlowDisplayType](https://qcloudimg.tencent-cloud.cn/raw/e4a2c4d638717cc901d3dbd5137c9bbc.png)\n",
1212
+ "document": "在短信通知、填写、签署流程中,若标题、按钮、合同详情等地方存在“合同”字样时,可根据此配置指定文案,可选文案如下: <ul><li> <b>0</b> :合同(默认值)</li> <li> <b>1</b> :文件</li> <li> <b>2</b> :协议</li><li> <b>3</b> :文书</li></ul>效果如下:![FlowDisplayType](https://qcloudimg.tencent-cloud.cn/raw/e4a2c4d638717cc901d3dbd5137c9bbc.png)\n",
1213
1213
  "example": "1",
1214
1214
  "member": "int64",
1215
1215
  "name": "FlowDisplayType",
@@ -1862,6 +1862,15 @@
1862
1862
  "name": "CacheApproverInfo",
1863
1863
  "required": false,
1864
1864
  "type": "bool"
1865
+ },
1866
+ {
1867
+ "disabled": false,
1868
+ "document": "是否允许此链接中签署方批量拒签。 <ul><li>false (默认): 不允许批量拒签</li> <li>true : 允许批量拒签。</li></ul>注:`合同组暂不支持批量拒签功能。`",
1869
+ "example": "false",
1870
+ "member": "bool",
1871
+ "name": "CanBatchReject",
1872
+ "required": false,
1873
+ "type": "bool"
1865
1874
  }
1866
1875
  ],
1867
1876
  "type": "object"
@@ -2025,6 +2034,15 @@
2025
2034
  "name": "UrlUseEnv",
2026
2035
  "required": false,
2027
2036
  "type": "string"
2037
+ },
2038
+ {
2039
+ "disabled": false,
2040
+ "document": "是否允许此链接中签署方批量拒签。 <ul><li>false (默认): 不允许批量拒签</li> <li>true : 允许批量拒签。</li></ul>注:`合同组暂不支持批量拒签功能。`",
2041
+ "example": "false",
2042
+ "member": "bool",
2043
+ "name": "CanBatchReject",
2044
+ "required": false,
2045
+ "type": "bool"
2028
2046
  }
2029
2047
  ],
2030
2048
  "type": "object"
@@ -3454,6 +3472,15 @@
3454
3472
  "name": "Operator",
3455
3473
  "required": false,
3456
3474
  "type": "object"
3475
+ },
3476
+ {
3477
+ "disabled": true,
3478
+ "document": "<font color=\"red\">此参数已经废弃,请使用 CreateFlowOption 里面的 SignComponentConfig</font>\n签署控件的配置信息,用在嵌入式发起的页面配置,包括\n\n- 签署控件 是否默认展示日期.",
3479
+ "example": "无",
3480
+ "member": "SignComponentConfig",
3481
+ "name": "SignComponentConfig",
3482
+ "required": false,
3483
+ "type": "object"
3457
3484
  }
3458
3485
  ],
3459
3486
  "type": "object"
@@ -7487,6 +7514,15 @@
7487
7514
  "name": "SkipUploadFile",
7488
7515
  "required": false,
7489
7516
  "type": "bool"
7517
+ },
7518
+ {
7519
+ "disabled": false,
7520
+ "document": "签署控件的配置信息,用在嵌入式发起的页面配置,包括 \n - 签署控件 是否默认展示日期.",
7521
+ "example": "无",
7522
+ "member": "SignComponentConfig",
7523
+ "name": "SignComponentConfig",
7524
+ "required": false,
7525
+ "type": "object"
7490
7526
  }
7491
7527
  ],
7492
7528
  "usage": "in"
@@ -10595,7 +10631,7 @@
10595
10631
  },
10596
10632
  {
10597
10633
  "disabled": false,
10598
- "document": "在短信通知、填写、签署流程中,若标题、按钮、合同详情等地方存在“合同”字样时,可根据此配置指定文案,可选文案如下: <ul><li> <b>0</b> :合同(默认值)</li> <li> <b>1</b> :文件</li> <li> <b>2</b> :协议</li></ul>效果如下:![FlowDisplayType](https://qcloudimg.tencent-cloud.cn/raw/e4a2c4d638717cc901d3dbd5137c9bbc.png)",
10634
+ "document": "在短信通知、填写、签署流程中,若标题、按钮、合同详情等地方存在“合同”字样时,可根据此配置指定文案,可选文案如下: <ul><li> <b>0</b> :合同(默认值)</li> <li> <b>1</b> :文件</li> <li> <b>2</b> :协议</li><li> <b>3</b> :文书</li></ul>效果如下:![FlowDisplayType](https://qcloudimg.tencent-cloud.cn/raw/e4a2c4d638717cc901d3dbd5137c9bbc.png)",
10599
10635
  "example": "1",
10600
10636
  "member": "int64",
10601
10637
  "name": "FlowDisplayType",
@@ -10875,7 +10911,7 @@
10875
10911
  },
10876
10912
  {
10877
10913
  "disabled": false,
10878
- "document": "在短信通知、填写、签署流程中,若标题、按钮、合同详情等地方存在“合同”字样时,可根据此配置指定文案,可选文案如下: <ul><li> <b>0</b> :合同(默认值)</li> <li> <b>1</b> :文件</li> <li> <b>2</b> :协议</li></ul>效果如下:![FlowDisplayType](https://qcloudimg.tencent-cloud.cn/raw/e4a2c4d638717cc901d3dbd5137c9bbc.png)",
10914
+ "document": "在短信通知、填写、签署流程中,若标题、按钮、合同详情等地方存在“合同”字样时,可根据此配置指定文案,可选文案如下: <ul><li> <b>0</b> :合同(默认值)</li> <li> <b>1</b> :文件</li> <li> <b>2</b> :协议</li><li> <b>3</b> :文书</li></ul>效果如下:![FlowDisplayType](https://qcloudimg.tencent-cloud.cn/raw/e4a2c4d638717cc901d3dbd5137c9bbc.png)",
10879
10915
  "example": "1",
10880
10916
  "member": "int64",
10881
10917
  "name": "FlowDisplayType",
@@ -12942,6 +12978,21 @@
12942
12978
  ],
12943
12979
  "usage": "out"
12944
12980
  },
12981
+ "SignComponentConfig": {
12982
+ "document": "签署控件的配置信息,用在嵌入式发起的页面配置,包括 \n\n- 签署控件 是否默认展示日期.",
12983
+ "members": [
12984
+ {
12985
+ "disabled": false,
12986
+ "document": "签署控件默认属性配置,是否默认展示签署日期, 在页面中可以进行修改。\n\n- false 展示签署日期(默认)\n- true 不展示签署日期 \n![image](https://qcloudimg.tencent-cloud.cn/raw/448514412e2f69f6129425beda4ff568.png)。",
12987
+ "example": "false",
12988
+ "member": "bool",
12989
+ "name": "HideDate",
12990
+ "required": false,
12991
+ "type": "bool"
12992
+ }
12993
+ ],
12994
+ "usage": "in"
12995
+ },
12945
12996
  "SignQrCode": {
12946
12997
  "document": "签署二维码的基本信息,用于创建二维码,用户可扫描该二维码进行签署操作。",
12947
12998
  "members": [
@@ -1969,6 +1969,30 @@
1969
1969
  ],
1970
1970
  "usage": "both"
1971
1971
  },
1972
+ "Image": {
1973
+ "document": "图片信息",
1974
+ "members": [
1975
+ {
1976
+ "disabled": false,
1977
+ "document": "图片Url。",
1978
+ "example": "https://xxx.com/image.jpg",
1979
+ "member": "string",
1980
+ "name": "ImageUrl",
1981
+ "required": false,
1982
+ "type": "string"
1983
+ },
1984
+ {
1985
+ "disabled": false,
1986
+ "document": "图片Base64。",
1987
+ "example": "/9j/4QlQaHR0c...N6a2M5ZCI",
1988
+ "member": "string",
1989
+ "name": "ImageBase64",
1990
+ "required": false,
1991
+ "type": "string"
1992
+ }
1993
+ ],
1994
+ "usage": "in"
1995
+ },
1972
1996
  "ImageUrl": {
1973
1997
  "document": "具体的图片内容",
1974
1998
  "members": [
@@ -3009,7 +3033,7 @@
3009
3033
  },
3010
3034
  {
3011
3035
  "disabled": false,
3012
- "document": "生成图分辨率。\n支持生成以下分辨率的图片:768:768(1:1)、768:1024(3:4)、1024:768(4:3)、1024:1024(1:1)、720:1280(9:16)、1280:720(16:9)、768:1280(3:5)、1280:768(5:3),不传默认使用1024:1024",
3036
+ "document": "生成图分辨率。\n支持生成以下分辨率的图片:768:768(1:1)、768:1024(3:4)、1024:768(4:3)、1024:1024(1:1)、720:1280(9:16)、1280:720(16:9)、768:1280(3:5)、1280:768(5:3),不传默认使用1024:1024。\n如果上传 ContentImage 参考图,分辨率仅支持:768:768(1:1)、768:1024(3:4)、1024:768(4:3)、1024:1024(1:1),不传将自动适配分辨率。如果参考图被用于做风格转换,将生成保持原图长宽比例且长边为1024的图片,指定的分辨率不生效。",
3013
3037
  "example": "1024:1024",
3014
3038
  "member": "string",
3015
3039
  "name": "Resolution",
@@ -3027,16 +3051,7 @@
3027
3051
  },
3028
3052
  {
3029
3053
  "disabled": false,
3030
- "document": "随机种子,默认随机。\n不传:随机种子生成。\n正数:固定种子生成。",
3031
- "example": "1",
3032
- "member": "int64",
3033
- "name": "Seed",
3034
- "required": false,
3035
- "type": "int"
3036
- },
3037
- {
3038
- "disabled": false,
3039
- "document": "超分选项,默认不做超分,可选开启。\n x2:2倍超分\n x4:4倍超分",
3054
+ "document": "超分选项,默认不做超分,可选开启。\n x2:2倍超分\n x4:4倍超分\n在 Resolution 的基础上按比例提高分辨率,例如1024:1024开启2倍超分后将得到2048:2048。",
3040
3055
  "example": "x2",
3041
3056
  "member": "string",
3042
3057
  "name": "Clarity",
@@ -3045,13 +3060,31 @@
3045
3060
  },
3046
3061
  {
3047
3062
  "disabled": false,
3048
- "document": "prompt 扩写开关。1为开启,0为关闭,不传默认开启。\n开启扩写后,将自动扩写原始输入的 prompt 并使用扩写后的 prompt 生成图片,返回生成图片结果时将一并返回扩写后的 prompt 文本。\n如果关闭扩写,将直接使用原始输入的 prompt 生成图片。\n建议开启,在多数场景下可提升生成图片效果、丰富生成图片细节。",
3063
+ "document": "用于引导内容的参考图。\n图片限制:单边分辨率小于5000,转成 Base64 字符串后小于 8MB,格式支持 jpg、jpeg、png、bmp、tiff、webp。",
3064
+ "example": "{\"ImageUrl\":\"https://xxx.com/image.jpg\"}",
3065
+ "member": "Image",
3066
+ "name": "ContentImage",
3067
+ "required": false,
3068
+ "type": "object"
3069
+ },
3070
+ {
3071
+ "disabled": false,
3072
+ "document": "prompt 扩写开关。1为开启,0为关闭,不传默认开启。\n开启扩写后,将自动扩写原始输入的 prompt 并使用扩写后的 prompt 生成图片,返回生成图片结果时将一并返回扩写后的 prompt 文本。\n如果关闭扩写,将直接使用原始输入的 prompt 生成图片。如果上传了参考图,扩写关闭不生效,将保持开启。\n建议开启,在多数场景下可提升生成图片效果、丰富生成图片细节。",
3049
3073
  "example": "0",
3050
3074
  "member": "int64",
3051
3075
  "name": "Revise",
3052
3076
  "required": false,
3053
3077
  "type": "int"
3054
3078
  },
3079
+ {
3080
+ "disabled": false,
3081
+ "document": "随机种子,默认随机。\n不传:随机种子生成。\n正数:固定种子生成。\n扩写开启时固定种子不生效,将保持随机。",
3082
+ "example": "1",
3083
+ "member": "int64",
3084
+ "name": "Seed",
3085
+ "required": false,
3086
+ "type": "int"
3087
+ },
3055
3088
  {
3056
3089
  "disabled": false,
3057
3090
  "document": "为生成结果图添加显式水印标识的开关,默认为1。 \n1:添加。 \n0:不添加。 \n其他数值:默认按1处理。 \n建议您使用显著标识来提示结果图使用了 AI 绘画技术,是 AI 生成的图片。",
@@ -329,6 +329,58 @@ def doDescribeDevice(args, parsed_globals):
329
329
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
330
330
 
331
331
 
332
+ def doDescribeP2PRoute(args, parsed_globals):
333
+ g_param = parse_global_arg(parsed_globals)
334
+
335
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
336
+ cred = credential.CVMRoleCredential()
337
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
338
+ cred = credential.STSAssumeRoleCredential(
339
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
340
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
341
+ )
342
+ 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):
343
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
344
+ else:
345
+ cred = credential.Credential(
346
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
347
+ )
348
+ http_profile = HttpProfile(
349
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
350
+ reqMethod="POST",
351
+ endpoint=g_param[OptionsDefine.Endpoint],
352
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
353
+ )
354
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
355
+ if g_param[OptionsDefine.Language]:
356
+ profile.language = g_param[OptionsDefine.Language]
357
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
358
+ client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
359
+ client._sdkVersion += ("_CLI_" + __version__)
360
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
361
+ model = models.DescribeP2PRouteRequest()
362
+ model.from_json_string(json.dumps(args))
363
+ start_time = time.time()
364
+ while True:
365
+ rsp = client.DescribeP2PRoute(model)
366
+ result = rsp.to_json_string()
367
+ try:
368
+ json_obj = json.loads(result)
369
+ except TypeError as e:
370
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
371
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
372
+ break
373
+ cur_time = time.time()
374
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
375
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
376
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
377
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
378
+ else:
379
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
380
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
381
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
382
+
383
+
332
384
  def doDescribeCloudStorageEventsWithAITasks(args, parsed_globals):
333
385
  g_param = parse_global_arg(parsed_globals)
334
386
 
@@ -2409,6 +2461,58 @@ def doDescribeVideoLicense(args, parsed_globals):
2409
2461
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2410
2462
 
2411
2463
 
2464
+ def doChangeP2PRoute(args, parsed_globals):
2465
+ g_param = parse_global_arg(parsed_globals)
2466
+
2467
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2468
+ cred = credential.CVMRoleCredential()
2469
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2470
+ cred = credential.STSAssumeRoleCredential(
2471
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2472
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2473
+ )
2474
+ 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):
2475
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2476
+ else:
2477
+ cred = credential.Credential(
2478
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2479
+ )
2480
+ http_profile = HttpProfile(
2481
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2482
+ reqMethod="POST",
2483
+ endpoint=g_param[OptionsDefine.Endpoint],
2484
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2485
+ )
2486
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2487
+ if g_param[OptionsDefine.Language]:
2488
+ profile.language = g_param[OptionsDefine.Language]
2489
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2490
+ client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
2491
+ client._sdkVersion += ("_CLI_" + __version__)
2492
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2493
+ model = models.ChangeP2PRouteRequest()
2494
+ model.from_json_string(json.dumps(args))
2495
+ start_time = time.time()
2496
+ while True:
2497
+ rsp = client.ChangeP2PRoute(model)
2498
+ result = rsp.to_json_string()
2499
+ try:
2500
+ json_obj = json.loads(result)
2501
+ except TypeError as e:
2502
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2503
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2504
+ break
2505
+ cur_time = time.time()
2506
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2507
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2508
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2509
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2510
+ else:
2511
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2512
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2513
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2514
+
2515
+
2412
2516
  def doSearchStudioProduct(args, parsed_globals):
2413
2517
  g_param = parse_global_arg(parsed_globals)
2414
2518
 
@@ -4749,6 +4853,58 @@ def doCreateFreeCloudStorage(args, parsed_globals):
4749
4853
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4750
4854
 
4751
4855
 
4856
+ def doModifyApplication(args, parsed_globals):
4857
+ g_param = parse_global_arg(parsed_globals)
4858
+
4859
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
4860
+ cred = credential.CVMRoleCredential()
4861
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4862
+ cred = credential.STSAssumeRoleCredential(
4863
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4864
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4865
+ )
4866
+ 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):
4867
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4868
+ else:
4869
+ cred = credential.Credential(
4870
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
4871
+ )
4872
+ http_profile = HttpProfile(
4873
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
4874
+ reqMethod="POST",
4875
+ endpoint=g_param[OptionsDefine.Endpoint],
4876
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4877
+ )
4878
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4879
+ if g_param[OptionsDefine.Language]:
4880
+ profile.language = g_param[OptionsDefine.Language]
4881
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4882
+ client = mod.IotexplorerClient(cred, g_param[OptionsDefine.Region], profile)
4883
+ client._sdkVersion += ("_CLI_" + __version__)
4884
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4885
+ model = models.ModifyApplicationRequest()
4886
+ model.from_json_string(json.dumps(args))
4887
+ start_time = time.time()
4888
+ while True:
4889
+ rsp = client.ModifyApplication(model)
4890
+ result = rsp.to_json_string()
4891
+ try:
4892
+ json_obj = json.loads(result)
4893
+ except TypeError as e:
4894
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4895
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4896
+ break
4897
+ cur_time = time.time()
4898
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4899
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4900
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4901
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4902
+ else:
4903
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4904
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4905
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4906
+
4907
+
4752
4908
  def doUpdateDevicesEnableState(args, parsed_globals):
4753
4909
  g_param = parse_global_arg(parsed_globals)
4754
4910
 
@@ -8146,6 +8302,7 @@ ACTION_MAP = {
8146
8302
  "DescribeDevicePackages": doDescribeDevicePackages,
8147
8303
  "DescribeFirmwareUpdateStatus": doDescribeFirmwareUpdateStatus,
8148
8304
  "DescribeDevice": doDescribeDevice,
8305
+ "DescribeP2PRoute": doDescribeP2PRoute,
8149
8306
  "DescribeCloudStorageEventsWithAITasks": doDescribeCloudStorageEventsWithAITasks,
8150
8307
  "DescribeTopicPolicy": doDescribeTopicPolicy,
8151
8308
  "CreateCloudStorageAIService": doCreateCloudStorageAIService,
@@ -8186,6 +8343,7 @@ ACTION_MAP = {
8186
8343
  "DescribeCloudStorageUsers": doDescribeCloudStorageUsers,
8187
8344
  "TransferCloudStorage": doTransferCloudStorage,
8188
8345
  "DescribeVideoLicense": doDescribeVideoLicense,
8346
+ "ChangeP2PRoute": doChangeP2PRoute,
8189
8347
  "SearchStudioProduct": doSearchStudioProduct,
8190
8348
  "ModifyTopicRule": doModifyTopicRule,
8191
8349
  "InheritCloudStorageUser": doInheritCloudStorageUser,
@@ -8231,6 +8389,7 @@ ACTION_MAP = {
8231
8389
  "InvokeCloudStorageAIServiceTask": doInvokeCloudStorageAIServiceTask,
8232
8390
  "DescribeActivateLicenseService": doDescribeActivateLicenseService,
8233
8391
  "CreateFreeCloudStorage": doCreateFreeCloudStorage,
8392
+ "ModifyApplication": doModifyApplication,
8234
8393
  "UpdateDevicesEnableState": doUpdateDevicesEnableState,
8235
8394
  "ModifyProject": doModifyProject,
8236
8395
  "BindProducts": doBindProducts,