tccli 3.0.1391.1__py2.py3-none-any.whl → 3.0.1414.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.
Potentially problematic release.
This version of tccli might be problematic. Click here for more details.
- tccli/__init__.py +1 -1
- tccli/services/__init__.py +2 -1
- tccli/services/ai3d/v20250513/api.json +22 -4
- tccli/services/aiart/aiart_client.py +173 -67
- tccli/services/aiart/v20221229/api.json +193 -0
- tccli/services/aiart/v20221229/examples.json +16 -0
- tccli/services/apm/apm_client.py +53 -0
- tccli/services/apm/v20210622/api.json +354 -0
- tccli/services/apm/v20210622/examples.json +8 -0
- tccli/services/asr/v20190614/api.json +3 -3
- tccli/services/autoscaling/v20180419/api.json +24 -2
- tccli/services/batch/v20170312/api.json +1 -1
- tccli/services/bda/bda_client.py +15 -704
- tccli/services/bda/v20200324/api.json +107 -1819
- tccli/services/bda/v20200324/examples.json +0 -176
- tccli/services/billing/billing_client.py +326 -8
- tccli/services/billing/v20180709/api.json +2200 -255
- tccli/services/billing/v20180709/examples.json +48 -0
- tccli/services/cam/v20190116/api.json +4 -4
- tccli/services/captcha/v20190722/api.json +3 -3
- tccli/services/cat/v20180409/api.json +7 -7
- tccli/services/ccc/ccc_client.py +235 -76
- tccli/services/ccc/v20200210/api.json +502 -18
- tccli/services/ccc/v20200210/examples.json +24 -0
- tccli/services/cdb/cdb_client.py +106 -0
- tccli/services/cdb/v20170320/api.json +257 -44
- tccli/services/cdb/v20170320/examples.json +22 -6
- tccli/services/cdn/cdn_client.py +4 -163
- tccli/services/cdn/v20180606/api.json +61 -310
- tccli/services/cdn/v20180606/examples.json +1 -25
- tccli/services/cdwdoris/v20211228/api.json +51 -12
- tccli/services/cdwpg/v20201230/api.json +11 -1
- tccli/services/cdwpg/v20201230/examples.json +1 -1
- tccli/services/cfg/v20210820/api.json +11 -1
- tccli/services/cfs/cfs_client.py +41 -94
- tccli/services/cfs/v20190719/api.json +171 -55
- tccli/services/cfs/v20190719/examples.json +1 -9
- tccli/services/cfw/v20190904/api.json +122 -10
- tccli/services/ckafka/ckafka_client.py +188 -29
- tccli/services/ckafka/v20190819/api.json +277 -4
- tccli/services/ckafka/v20190819/examples.json +25 -1
- tccli/services/clb/clb_client.py +0 -265
- tccli/services/clb/v20180317/api.json +130 -296
- tccli/services/clb/v20180317/examples.json +12 -40
- tccli/services/cloudapp/v20220530/api.json +55 -0
- tccli/services/cloudaudit/v20190319/api.json +11 -0
- tccli/services/cloudhsm/v20191112/api.json +10 -10
- tccli/services/cls/v20201016/api.json +63 -45
- tccli/services/cls/v20201016/examples.json +10 -4
- tccli/services/csip/v20221121/api.json +53 -3
- tccli/services/ctem/v20231128/api.json +320 -0
- tccli/services/ctem/v20231128/examples.json +3 -3
- tccli/services/cvm/cvm_client.py +0 -212
- tccli/services/cvm/v20170312/api.json +91 -843
- tccli/services/cvm/v20170312/examples.json +32 -58
- tccli/services/cynosdb/cynosdb_client.py +167 -8
- tccli/services/cynosdb/v20190107/api.json +1126 -148
- tccli/services/cynosdb/v20190107/examples.json +31 -7
- tccli/services/dbbrain/dbbrain_client.py +246 -87
- tccli/services/dbbrain/v20191016/api.json +74 -62
- tccli/services/dbbrain/v20191016/examples.json +1 -1
- tccli/services/dbbrain/v20210527/api.json +601 -177
- tccli/services/dbbrain/v20210527/examples.json +28 -4
- tccli/services/dc/v20180410/api.json +101 -3
- tccli/services/dcdb/v20180411/api.json +1 -1
- tccli/services/dlc/dlc_client.py +53 -0
- tccli/services/dlc/v20210125/api.json +237 -24
- tccli/services/dlc/v20210125/examples.json +12 -4
- tccli/services/dnspod/dnspod_client.py +106 -0
- tccli/services/dnspod/v20210323/api.json +126 -20
- tccli/services/dnspod/v20210323/examples.json +17 -7
- tccli/services/dsgc/v20190723/api.json +73 -15
- tccli/services/dts/v20180330/api.json +4 -4
- tccli/services/dts/v20211206/api.json +408 -127
- tccli/services/dts/v20211206/examples.json +15 -9
- tccli/services/eb/v20210416/api.json +41 -1
- tccli/services/eb/v20210416/examples.json +1 -1
- tccli/services/emr/v20190103/api.json +56 -9
- tccli/services/emr/v20190103/examples.json +5 -5
- tccli/services/es/es_client.py +273 -8
- tccli/services/es/v20180416/api.json +845 -33
- tccli/services/es/v20180416/examples.json +33 -1
- tccli/services/es/v20250101/api.json +135 -2
- tccli/services/es/v20250101/examples.json +8 -0
- tccli/services/ess/ess_client.py +509 -32
- tccli/services/ess/v20201111/api.json +1366 -113
- tccli/services/ess/v20201111/examples.json +94 -10
- tccli/services/essbasic/v20210526/api.json +265 -27
- tccli/services/essbasic/v20210526/examples.json +12 -12
- tccli/services/facefusion/v20220927/api.json +1 -1
- tccli/services/gaap/v20180529/api.json +18 -8
- tccli/services/gme/gme_client.py +53 -0
- tccli/services/gme/v20180711/api.json +241 -1
- tccli/services/gme/v20180711/examples.json +8 -0
- tccli/services/gs/gs_client.py +216 -4
- tccli/services/gs/v20191118/api.json +202 -1
- tccli/services/gs/v20191118/examples.json +32 -0
- tccli/services/gwlb/gwlb_client.py +53 -0
- tccli/services/gwlb/v20240906/api.json +150 -0
- tccli/services/gwlb/v20240906/examples.json +8 -0
- tccli/services/hai/v20230812/api.json +5 -5
- tccli/services/hunyuan/v20230901/api.json +3 -3
- tccli/services/hunyuan/v20230901/examples.json +1 -1
- tccli/services/iai/v20180301/api.json +227 -207
- tccli/services/iai/v20180301/examples.json +26 -26
- tccli/services/iai/v20200303/api.json +4 -4
- tccli/services/iai/v20200303/examples.json +1 -1
- tccli/services/ioa/ioa_client.py +265 -0
- tccli/services/ioa/v20220601/api.json +781 -85
- tccli/services/ioa/v20220601/examples.json +46 -0
- tccli/services/iotexplorer/iotexplorer_client.py +387 -16
- tccli/services/iotexplorer/v20190423/api.json +1183 -63
- tccli/services/iotexplorer/v20190423/examples.json +92 -0
- tccli/services/keewidb/v20220308/api.json +69 -17
- tccli/services/keewidb/v20220308/examples.json +5 -5
- tccli/services/lcic/v20220817/api.json +61 -15
- tccli/services/lighthouse/v20200324/api.json +193 -24
- tccli/services/lighthouse/v20200324/examples.json +9 -3
- tccli/services/live/v20180801/api.json +6 -6
- tccli/services/live/v20180801/examples.json +7 -1
- tccli/services/lke/lke_client.py +40 -93
- tccli/services/lke/v20231130/api.json +943 -390
- tccli/services/lke/v20231130/examples.json +38 -46
- tccli/services/lkeap/v20240522/api.json +39 -12
- tccli/services/lkeap/v20240522/examples.json +12 -0
- tccli/services/mariadb/v20170312/api.json +1 -1
- tccli/services/mna/v20210119/api.json +11 -2
- tccli/services/mna/v20210119/examples.json +1 -1
- tccli/services/mongodb/mongodb_client.py +334 -16
- tccli/services/mongodb/v20190725/api.json +1092 -383
- tccli/services/mongodb/v20190725/examples.json +69 -21
- tccli/services/monitor/monitor_client.py +106 -0
- tccli/services/monitor/v20180724/api.json +383 -12
- tccli/services/monitor/v20180724/examples.json +24 -2
- tccli/services/mps/mps_client.py +220 -8
- tccli/services/mps/v20190612/api.json +1999 -179
- tccli/services/mps/v20190612/examples.json +56 -6
- tccli/services/mqtt/v20240516/api.json +10 -0
- tccli/services/mqtt/v20240516/examples.json +3 -9
- tccli/services/nlp/v20190408/api.json +6 -6
- tccli/services/oceanus/oceanus_client.py +318 -0
- tccli/services/oceanus/v20190422/api.json +461 -26
- tccli/services/oceanus/v20190422/examples.json +50 -2
- tccli/services/ocr/ocr_client.py +41 -253
- tccli/services/ocr/v20181119/api.json +153 -659
- tccli/services/ocr/v20181119/examples.json +8 -40
- tccli/services/omics/v20221128/api.json +90 -7
- tccli/services/organization/v20210331/api.json +46 -7
- tccli/services/postgres/v20170312/api.json +333 -77
- tccli/services/postgres/v20170312/examples.json +37 -31
- tccli/services/privatedns/privatedns_client.py +641 -58
- tccli/services/privatedns/v20201028/api.json +930 -19
- tccli/services/privatedns/v20201028/examples.json +91 -3
- tccli/services/pts/v20210728/api.json +2 -2
- tccli/services/redis/v20180412/api.json +303 -109
- tccli/services/redis/v20180412/examples.json +12 -12
- tccli/services/region/v20220627/api.json +1 -1
- tccli/services/rum/v20210622/api.json +22 -4
- tccli/services/rum/v20210622/examples.json +2 -2
- tccli/services/sms/v20190711/api.json +12 -12
- tccli/services/sms/v20190711/examples.json +9 -3
- tccli/services/sms/v20210111/api.json +13 -13
- tccli/services/sms/v20210111/examples.json +8 -2
- tccli/services/sqlserver/v20180328/api.json +46 -7
- tccli/services/sqlserver/v20180328/examples.json +2 -2
- tccli/services/ssl/v20191205/api.json +28 -0
- tccli/services/svp/v20240125/api.json +14 -4
- tccli/services/tag/v20180813/api.json +3 -3
- tccli/services/tat/v20201028/api.json +22 -3
- tccli/services/tcb/v20180608/api.json +1 -1
- tccli/services/tcss/tcss_client.py +228 -69
- tccli/services/tcss/v20201101/api.json +273 -25
- tccli/services/tcss/v20201101/examples.json +26 -2
- tccli/services/teo/teo_client.py +317 -52
- tccli/services/teo/v20220901/api.json +1824 -242
- tccli/services/teo/v20220901/examples.json +109 -21
- tccli/services/thpc/thpc_client.py +57 -4
- tccli/services/thpc/v20230321/api.json +163 -21
- tccli/services/thpc/v20230321/examples.json +13 -5
- tccli/services/tione/tione_client.py +163 -4
- tccli/services/tione/v20211111/api.json +285 -21
- tccli/services/tione/v20211111/examples.json +27 -3
- tccli/services/tke/tke_client.py +8 -8
- tccli/services/tke/v20180525/api.json +168 -130
- tccli/services/tke/v20180525/examples.json +20 -20
- tccli/services/tke/v20220501/api.json +215 -3
- tccli/services/tke/v20220501/examples.json +8 -0
- tccli/services/tms/tms_client.py +106 -0
- tccli/services/tms/v20201229/api.json +249 -3
- tccli/services/tms/v20201229/examples.json +16 -0
- tccli/services/tmt/v20180321/api.json +78 -1
- tccli/services/trabbit/v20230418/api.json +271 -4
- tccli/services/trabbit/v20230418/examples.json +9 -3
- tccli/services/trocket/v20230308/api.json +4 -4
- tccli/services/trro/trro_client.py +106 -0
- tccli/services/trro/v20220325/api.json +456 -0
- tccli/services/trro/v20220325/examples.json +16 -0
- tccli/services/trtc/v20190722/api.json +197 -49
- tccli/services/trtc/v20190722/examples.json +4 -4
- tccli/services/tse/v20201207/api.json +69 -2
- tccli/services/tse/v20201207/examples.json +3 -3
- tccli/services/tsf/v20180326/api.json +70 -7
- tccli/services/tsf/v20180326/examples.json +2 -2
- tccli/services/vclm/v20240523/api.json +145 -0
- tccli/services/vclm/v20240523/examples.json +16 -0
- tccli/services/vclm/vclm_client.py +106 -0
- tccli/services/vcube/v20220410/api.json +1 -1
- tccli/services/vod/v20180717/api.json +7 -7
- tccli/services/vpc/v20170312/api.json +1216 -70
- tccli/services/vpc/v20170312/examples.json +139 -3
- tccli/services/vpc/vpc_client.py +1023 -122
- tccli/services/vrs/v20200824/api.json +11 -11
- tccli/services/vrs/v20200824/examples.json +1 -1
- tccli/services/vtc/v20240223/api.json +14 -14
- tccli/services/waf/v20180125/api.json +812 -143
- tccli/services/waf/v20180125/examples.json +2 -2
- tccli/services/wedata/v20210820/api.json +1281 -601
- tccli/services/wedata/v20210820/examples.json +127 -157
- tccli/services/wedata/v20250806/api.json +19335 -0
- tccli/services/wedata/v20250806/examples.json +999 -0
- tccli/services/wedata/wedata_client.py +7072 -1131
- {tccli-3.0.1391.1.dist-info → tccli-3.0.1414.1.dist-info}/METADATA +9 -7
- {tccli-3.0.1391.1.dist-info → tccli-3.0.1414.1.dist-info}/RECORD +226 -224
- {tccli-3.0.1391.1.dist-info → tccli-3.0.1414.1.dist-info}/WHEEL +1 -1
- {tccli-3.0.1391.1.dist-info → tccli-3.0.1414.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1391.1.dist-info/license_files → tccli-3.0.1414.1.dist-info/licenses}/LICENSE +0 -0
|
@@ -56,6 +56,13 @@
|
|
|
56
56
|
"output": "QueryMemeJobResponse",
|
|
57
57
|
"status": "online"
|
|
58
58
|
},
|
|
59
|
+
"QueryTextToImageJob": {
|
|
60
|
+
"document": "混元生图接口,基于混元大模型,根据输入的文本描述快速生成图片。\n默认提供0个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。",
|
|
61
|
+
"input": "QueryTextToImageJobRequest",
|
|
62
|
+
"name": "查询混元生图3.0任务",
|
|
63
|
+
"output": "QueryTextToImageJobResponse",
|
|
64
|
+
"status": "online"
|
|
65
|
+
},
|
|
59
66
|
"QueryTextToImageProJob": {
|
|
60
67
|
"document": "本接口已迁移至腾讯混元大模型-混元生图,即将停止此处维护,可切换至 [混元生图 API](https://cloud.tencent.com/document/product/1729/105970) 继续使用。\n文生图(高级版)接口基于高级版文生图大模型,将根据输入的文本描述,智能生成与之相关的结果图。分为提交任务和查询任务2个接口。\n提交任务:输入文本等,提交一个文生图(高级版)异步任务,获得任务 ID。\n查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得生成图像结果。\n并发任务数(并发)说明:并发任务数指能同时处理的任务数量。文生图(高级版)默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。",
|
|
61
68
|
"input": "QueryTextToImageProJobRequest",
|
|
@@ -112,6 +119,13 @@
|
|
|
112
119
|
"output": "SubmitMemeJobResponse",
|
|
113
120
|
"status": "online"
|
|
114
121
|
},
|
|
122
|
+
"SubmitTextToImageJob": {
|
|
123
|
+
"document": "混元生图接口,基于混元大模型,根据输入的文本描述快速生成图片。\n默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。",
|
|
124
|
+
"input": "SubmitTextToImageJobRequest",
|
|
125
|
+
"name": "提交混元生图3.0任务",
|
|
126
|
+
"output": "SubmitTextToImageJobResponse",
|
|
127
|
+
"status": "online"
|
|
128
|
+
},
|
|
115
129
|
"SubmitTextToImageProJob": {
|
|
116
130
|
"document": "本接口已迁移至腾讯混元大模型-混元生图,即将停止此处维护,可切换至 [混元生图 API](https://cloud.tencent.com/document/product/1729/105969) 继续使用。\n文生图(高级版)接口基于高级版文生图大模型,将根据输入的文本描述,智能生成与之相关的结果图。分为提交任务和查询任务2个接口。\n提交任务:输入文本等,提交一个文生图(高级版)异步任务,获得任务 ID。\n查询任务:根据任务 ID 查询任务的处理状态、处理结果,任务处理完成后可获得生成图像结果。\n并发任务数(并发)说明:并发任务数指能同时处理的任务数量。文生图(高级版)默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。",
|
|
117
131
|
"input": "SubmitTextToImageProJobRequest",
|
|
@@ -1071,6 +1085,103 @@
|
|
|
1071
1085
|
],
|
|
1072
1086
|
"type": "object"
|
|
1073
1087
|
},
|
|
1088
|
+
"QueryTextToImageJobRequest": {
|
|
1089
|
+
"document": "QueryTextToImageJob请求参数结构体",
|
|
1090
|
+
"members": [
|
|
1091
|
+
{
|
|
1092
|
+
"disabled": false,
|
|
1093
|
+
"document": "任务 ID。",
|
|
1094
|
+
"example": "1344213737283272704",
|
|
1095
|
+
"member": "string",
|
|
1096
|
+
"name": "JobId",
|
|
1097
|
+
"required": true,
|
|
1098
|
+
"type": "string"
|
|
1099
|
+
}
|
|
1100
|
+
],
|
|
1101
|
+
"type": "object"
|
|
1102
|
+
},
|
|
1103
|
+
"QueryTextToImageJobResponse": {
|
|
1104
|
+
"document": "QueryTextToImageJob返回参数结构体",
|
|
1105
|
+
"members": [
|
|
1106
|
+
{
|
|
1107
|
+
"disabled": false,
|
|
1108
|
+
"document": "当前任务状态码:\n1:等待中、2:运行中、4:处理失败、5:处理完成。",
|
|
1109
|
+
"example": "1",
|
|
1110
|
+
"member": "string",
|
|
1111
|
+
"name": "JobStatusCode",
|
|
1112
|
+
"output_required": false,
|
|
1113
|
+
"type": "string",
|
|
1114
|
+
"value_allowed_null": false
|
|
1115
|
+
},
|
|
1116
|
+
{
|
|
1117
|
+
"disabled": false,
|
|
1118
|
+
"document": "当前任务状态:排队中、处理中、处理失败或者处理完成。\n",
|
|
1119
|
+
"example": "1",
|
|
1120
|
+
"member": "string",
|
|
1121
|
+
"name": "JobStatusMsg",
|
|
1122
|
+
"output_required": false,
|
|
1123
|
+
"type": "string",
|
|
1124
|
+
"value_allowed_null": false
|
|
1125
|
+
},
|
|
1126
|
+
{
|
|
1127
|
+
"disabled": false,
|
|
1128
|
+
"document": "任务处理失败错误码。\n",
|
|
1129
|
+
"example": "1",
|
|
1130
|
+
"member": "string",
|
|
1131
|
+
"name": "JobErrorCode",
|
|
1132
|
+
"output_required": false,
|
|
1133
|
+
"type": "string",
|
|
1134
|
+
"value_allowed_null": false
|
|
1135
|
+
},
|
|
1136
|
+
{
|
|
1137
|
+
"disabled": false,
|
|
1138
|
+
"document": "任务处理失败错误信息。\n",
|
|
1139
|
+
"example": "1",
|
|
1140
|
+
"member": "string",
|
|
1141
|
+
"name": "JobErrorMsg",
|
|
1142
|
+
"output_required": false,
|
|
1143
|
+
"type": "string",
|
|
1144
|
+
"value_allowed_null": false
|
|
1145
|
+
},
|
|
1146
|
+
{
|
|
1147
|
+
"disabled": false,
|
|
1148
|
+
"document": "生成图 URL 列表,有效期1小时,请及时保存。\n",
|
|
1149
|
+
"example": "[\"string\"]",
|
|
1150
|
+
"member": "string",
|
|
1151
|
+
"name": "ResultImage",
|
|
1152
|
+
"output_required": false,
|
|
1153
|
+
"type": "list",
|
|
1154
|
+
"value_allowed_null": false
|
|
1155
|
+
},
|
|
1156
|
+
{
|
|
1157
|
+
"disabled": false,
|
|
1158
|
+
"document": "结果 detail 数组,Success 代表成功。\n",
|
|
1159
|
+
"example": "[\"string\"]",
|
|
1160
|
+
"member": "string",
|
|
1161
|
+
"name": "ResultDetails",
|
|
1162
|
+
"output_required": false,
|
|
1163
|
+
"type": "list",
|
|
1164
|
+
"value_allowed_null": false
|
|
1165
|
+
},
|
|
1166
|
+
{
|
|
1167
|
+
"disabled": false,
|
|
1168
|
+
"document": "对应 SubmitTextToImageProJob 接口中 Revise 参数。开启扩写时,返回扩写后的 prompt 文本。 如果关闭扩写,将直接返回原始输入的 prompt。",
|
|
1169
|
+
"example": "[\"string\"]",
|
|
1170
|
+
"member": "string",
|
|
1171
|
+
"name": "RevisedPrompt",
|
|
1172
|
+
"output_required": false,
|
|
1173
|
+
"type": "list",
|
|
1174
|
+
"value_allowed_null": false
|
|
1175
|
+
},
|
|
1176
|
+
{
|
|
1177
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
|
1178
|
+
"member": "string",
|
|
1179
|
+
"name": "RequestId",
|
|
1180
|
+
"type": "string"
|
|
1181
|
+
}
|
|
1182
|
+
],
|
|
1183
|
+
"type": "object"
|
|
1184
|
+
},
|
|
1074
1185
|
"QueryTextToImageProJobRequest": {
|
|
1075
1186
|
"document": "QueryTextToImageProJob请求参数结构体",
|
|
1076
1187
|
"members": [
|
|
@@ -1849,6 +1960,88 @@
|
|
|
1849
1960
|
],
|
|
1850
1961
|
"type": "object"
|
|
1851
1962
|
},
|
|
1963
|
+
"SubmitTextToImageJobRequest": {
|
|
1964
|
+
"document": "SubmitTextToImageJob请求参数结构体",
|
|
1965
|
+
"members": [
|
|
1966
|
+
{
|
|
1967
|
+
"disabled": false,
|
|
1968
|
+
"document": "文本描述。 \n算法将根据输入的文本智能生成与之相关的图像。 \n不能为空,推荐使用中文。最多可传1024个 utf-8 字符。",
|
|
1969
|
+
"example": "雨中, 竹林, 小路",
|
|
1970
|
+
"member": "string",
|
|
1971
|
+
"name": "Prompt",
|
|
1972
|
+
"required": true,
|
|
1973
|
+
"type": "string"
|
|
1974
|
+
},
|
|
1975
|
+
{
|
|
1976
|
+
"disabled": false,
|
|
1977
|
+
"document": "生成图分辨率,仅支持以下分辨率:\n640:1408,704:1344,768:1280,832:1216,896:1152,960:1088,1024:1024,1088:960,1152:896,1216:832,1280:768,1344:704,1408:640",
|
|
1978
|
+
"example": "1",
|
|
1979
|
+
"member": "string",
|
|
1980
|
+
"name": "Resolution",
|
|
1981
|
+
"required": false,
|
|
1982
|
+
"type": "string"
|
|
1983
|
+
},
|
|
1984
|
+
{
|
|
1985
|
+
"disabled": false,
|
|
1986
|
+
"document": "随机种子,默认随机。\n不传:随机种子生成。\n正数:固定种子生成。\n扩写开启时固定种子不生效,将保持随机。",
|
|
1987
|
+
"example": "1",
|
|
1988
|
+
"member": "int64",
|
|
1989
|
+
"name": "Seed",
|
|
1990
|
+
"required": false,
|
|
1991
|
+
"type": "int"
|
|
1992
|
+
},
|
|
1993
|
+
{
|
|
1994
|
+
"disabled": false,
|
|
1995
|
+
"document": "为生成结果图添加显式水印标识的开关,默认为1。 \n1:添加。 \n0:不添加。 \n其他数值:默认按1处理。 \n建议您使用显著标识来提示结果图使用了 AI 绘画技术,是 AI 生成的图片。",
|
|
1996
|
+
"example": "1",
|
|
1997
|
+
"member": "int64",
|
|
1998
|
+
"name": "LogoAdd",
|
|
1999
|
+
"required": false,
|
|
2000
|
+
"type": "int"
|
|
2001
|
+
},
|
|
2002
|
+
{
|
|
2003
|
+
"disabled": false,
|
|
2004
|
+
"document": "标识内容设置。\n默认在生成结果图右下角添加“图片由 AI 生成”字样,您可根据自身需要替换为其他的标识图片。",
|
|
2005
|
+
"example": "无",
|
|
2006
|
+
"member": "LogoParam",
|
|
2007
|
+
"name": "LogoParam",
|
|
2008
|
+
"required": false,
|
|
2009
|
+
"type": "object"
|
|
2010
|
+
},
|
|
2011
|
+
{
|
|
2012
|
+
"disabled": false,
|
|
2013
|
+
"document": "是否开启prompt改写,默认开启,改写预计会增加20s左右耗时。\n\n如果关闭改写,需要调用方自己接改写,否则对生图效果有较大影响,改写方法可以参考:[改写](https://github.com/Tencent-Hunyuan/HunyuanImage-3.0/tree/main/PE)",
|
|
2014
|
+
"example": "0",
|
|
2015
|
+
"member": "int64",
|
|
2016
|
+
"name": "Revise",
|
|
2017
|
+
"required": false,
|
|
2018
|
+
"type": "int"
|
|
2019
|
+
}
|
|
2020
|
+
],
|
|
2021
|
+
"type": "object"
|
|
2022
|
+
},
|
|
2023
|
+
"SubmitTextToImageJobResponse": {
|
|
2024
|
+
"document": "SubmitTextToImageJob返回参数结构体",
|
|
2025
|
+
"members": [
|
|
2026
|
+
{
|
|
2027
|
+
"disabled": false,
|
|
2028
|
+
"document": "任务 ID。",
|
|
2029
|
+
"example": "jobid",
|
|
2030
|
+
"member": "string",
|
|
2031
|
+
"name": "JobId",
|
|
2032
|
+
"output_required": true,
|
|
2033
|
+
"type": "string",
|
|
2034
|
+
"value_allowed_null": false
|
|
2035
|
+
},
|
|
2036
|
+
{
|
|
2037
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
|
2038
|
+
"member": "string",
|
|
2039
|
+
"name": "RequestId",
|
|
2040
|
+
"type": "string"
|
|
2041
|
+
}
|
|
2042
|
+
],
|
|
2043
|
+
"type": "object"
|
|
2044
|
+
},
|
|
1852
2045
|
"SubmitTextToImageProJobRequest": {
|
|
1853
2046
|
"document": "SubmitTextToImageProJob请求参数结构体",
|
|
1854
2047
|
"members": [
|
|
@@ -64,6 +64,14 @@
|
|
|
64
64
|
"title": "调用示例"
|
|
65
65
|
}
|
|
66
66
|
],
|
|
67
|
+
"QueryTextToImageJob": [
|
|
68
|
+
{
|
|
69
|
+
"document": "",
|
|
70
|
+
"input": "POST / HTTP/1.1\nHost: aiart.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: QueryTextToImageJob\n<公共请求参数>\n\n{\n \"JobId\": \"1344213737283272704\"\n}",
|
|
71
|
+
"output": "{\n \"Response\": {\n \"JobErrorCode\": \"\",\n \"JobErrorMsg\": \"\",\n \"JobStatusCode\": \"5\",\n \"JobStatusMsg\": \"处理完成\",\n \"RequestId\": \"e4a4eef5-f4aa-40ff-aae0-5e51c5ef5b1e\",\n \"ResultDetails\": [\n \"Success\"\n ],\n \"ResultImage\": [\n \"https://cos.ap-guangzhou.myqcloud.com/xxx.jpg\"\n ],\n \"RevisedPrompt\": [\n \"一只可爱的小狗正蹲在草地上,它的小耳朵竖立着,鼻子微微皱起,显得十分警觉,小狗的毛色是鲜亮的红色\"\n ]\n }\n}",
|
|
72
|
+
"title": "查询文生图任务"
|
|
73
|
+
}
|
|
74
|
+
],
|
|
67
75
|
"QueryTextToImageProJob": [
|
|
68
76
|
{
|
|
69
77
|
"document": "成功调用",
|
|
@@ -128,6 +136,14 @@
|
|
|
128
136
|
"title": "调用示例"
|
|
129
137
|
}
|
|
130
138
|
],
|
|
139
|
+
"SubmitTextToImageJob": [
|
|
140
|
+
{
|
|
141
|
+
"document": "",
|
|
142
|
+
"input": "POST / HTTP/1.1\nHost: aiart.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SubmitTextToImageJob\n<公共请求参数>\n\n{\n \"Prompt\": \"小狗\"\n}",
|
|
143
|
+
"output": "{\n \"Response\": {\n \"JobId\": \"1344213737283272704\",\n \"RequestId\": \"af61e1d4-0931-4dc5-b5a9-eb89bae54616\"\n }\n}",
|
|
144
|
+
"title": "提交文生图任务"
|
|
145
|
+
}
|
|
146
|
+
],
|
|
131
147
|
"SubmitTextToImageProJob": [
|
|
132
148
|
{
|
|
133
149
|
"document": "成功调用",
|
tccli/services/apm/apm_client.py
CHANGED
|
@@ -693,6 +693,58 @@ def doCreateApmInstance(args, parsed_globals):
|
|
|
693
693
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
694
694
|
|
|
695
695
|
|
|
696
|
+
def doDescribeApmServiceMetric(args, parsed_globals):
|
|
697
|
+
g_param = parse_global_arg(parsed_globals)
|
|
698
|
+
|
|
699
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
700
|
+
cred = credential.CVMRoleCredential()
|
|
701
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
702
|
+
cred = credential.STSAssumeRoleCredential(
|
|
703
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
704
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
705
|
+
)
|
|
706
|
+
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):
|
|
707
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
708
|
+
else:
|
|
709
|
+
cred = credential.Credential(
|
|
710
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
711
|
+
)
|
|
712
|
+
http_profile = HttpProfile(
|
|
713
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
714
|
+
reqMethod="POST",
|
|
715
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
|
716
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
717
|
+
)
|
|
718
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
719
|
+
if g_param[OptionsDefine.Language]:
|
|
720
|
+
profile.language = g_param[OptionsDefine.Language]
|
|
721
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
722
|
+
client = mod.ApmClient(cred, g_param[OptionsDefine.Region], profile)
|
|
723
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
|
724
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
725
|
+
model = models.DescribeApmServiceMetricRequest()
|
|
726
|
+
model.from_json_string(json.dumps(args))
|
|
727
|
+
start_time = time.time()
|
|
728
|
+
while True:
|
|
729
|
+
rsp = client.DescribeApmServiceMetric(model)
|
|
730
|
+
result = rsp.to_json_string()
|
|
731
|
+
try:
|
|
732
|
+
json_obj = json.loads(result)
|
|
733
|
+
except TypeError as e:
|
|
734
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
735
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
736
|
+
break
|
|
737
|
+
cur_time = time.time()
|
|
738
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
739
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
740
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
741
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
742
|
+
else:
|
|
743
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
744
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
745
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
746
|
+
|
|
747
|
+
|
|
696
748
|
def doDescribeServiceOverview(args, parsed_globals):
|
|
697
749
|
g_param = parse_global_arg(parsed_globals)
|
|
698
750
|
|
|
@@ -769,6 +821,7 @@ ACTION_MAP = {
|
|
|
769
821
|
"DescribeMetricRecords": doDescribeMetricRecords,
|
|
770
822
|
"TerminateApmInstance": doTerminateApmInstance,
|
|
771
823
|
"CreateApmInstance": doCreateApmInstance,
|
|
824
|
+
"DescribeApmServiceMetric": doDescribeApmServiceMetric,
|
|
772
825
|
"DescribeServiceOverview": doDescribeServiceOverview,
|
|
773
826
|
|
|
774
827
|
}
|