tccli 3.0.1308.1__py2.py3-none-any.whl → 3.0.1310.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.
- tccli/__init__.py +1 -1
- tccli/services/apm/v20210622/api.json +18 -0
- tccli/services/asr/v20190614/api.json +9 -0
- tccli/services/bh/v20230418/api.json +193 -2
- tccli/services/bh/v20230418/examples.json +2 -2
- tccli/services/cat/cat_client.py +53 -0
- tccli/services/cat/v20180409/api.json +80 -0
- tccli/services/cat/v20180409/examples.json +8 -0
- tccli/services/cdb/cdb_client.py +0 -53
- tccli/services/cdb/v20170320/api.json +0 -64
- tccli/services/cdb/v20170320/examples.json +0 -8
- tccli/services/cdwch/v20200915/examples.json +1 -1
- tccli/services/cfs/v20190719/api.json +9 -0
- tccli/services/cfw/v20190904/api.json +11 -1
- tccli/services/cfw/v20190904/examples.json +2 -2
- tccli/services/dsgc/v20190723/api.json +28 -18
- tccli/services/dsgc/v20190723/examples.json +1 -1
- tccli/services/ess/ess_client.py +53 -0
- tccli/services/ess/v20201111/api.json +103 -4
- tccli/services/ess/v20201111/examples.json +14 -0
- tccli/services/essbasic/essbasic_client.py +53 -0
- tccli/services/essbasic/v20210526/api.json +110 -2
- tccli/services/essbasic/v20210526/examples.json +14 -0
- tccli/services/gaap/gaap_client.py +12 -171
- tccli/services/gaap/v20180529/api.json +0 -325
- tccli/services/gaap/v20180529/examples.json +0 -24
- tccli/services/hunyuan/hunyuan_client.py +53 -0
- tccli/services/hunyuan/v20230901/api.json +162 -7
- tccli/services/hunyuan/v20230901/examples.json +8 -0
- tccli/services/iai/v20180301/api.json +12 -12
- tccli/services/iai/v20180301/examples.json +8 -2
- tccli/services/iss/v20230517/examples.json +1 -1
- tccli/services/keewidb/v20220308/api.json +1 -1
- tccli/services/keewidb/v20220308/examples.json +1 -1
- tccli/services/lighthouse/v20200324/api.json +2 -2
- tccli/services/mongodb/v20190725/api.json +1 -1
- tccli/services/partners/partners_client.py +57 -4
- tccli/services/partners/v20180321/api.json +151 -0
- tccli/services/partners/v20180321/examples.json +14 -0
- tccli/services/postgres/v20170312/api.json +7 -7
- tccli/services/redis/v20180412/api.json +12 -12
- tccli/services/redis/v20180412/examples.json +4 -4
- tccli/services/tcbr/v20220217/api.json +94 -0
- tccli/services/tdmq/v20200217/api.json +4 -4
- tccli/services/teo/v20220901/api.json +9 -9
- tccli/services/teo/v20220901/examples.json +1 -1
- tccli/services/thpc/v20230321/api.json +2 -2
- tccli/services/tmt/v20180321/api.json +1 -1
- tccli/services/vpc/v20170312/api.json +11 -11
- tccli/services/vpc/v20170312/examples.json +1 -1
- tccli/services/waf/v20180125/api.json +183 -29
- tccli/services/waf/v20180125/examples.json +7 -1
- tccli/services/wedata/v20210820/api.json +1519 -0
- tccli/services/wedata/v20210820/examples.json +65 -1
- tccli/services/wedata/wedata_client.py +424 -0
- {tccli-3.0.1308.1.dist-info → tccli-3.0.1310.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1308.1.dist-info → tccli-3.0.1310.1.dist-info}/RECORD +60 -60
- {tccli-3.0.1308.1.dist-info → tccli-3.0.1310.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1308.1.dist-info → tccli-3.0.1310.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1308.1.dist-info → tccli-3.0.1310.1.dist-info}/license_files/LICENSE +0 -0
@@ -84,13 +84,6 @@
|
|
84
84
|
"output": "CreateDomainErrorPageInfoResponse",
|
85
85
|
"status": "online"
|
86
86
|
},
|
87
|
-
"CreateFirstLinkSession": {
|
88
|
-
"document": "产品功能已下线,对应的api接口下线\n\n本接口(CreateFirstLinkSession)用于创建接入段加速会话,创建有可能成功,也可能失败,需要通过返回码来进行判断。",
|
89
|
-
"input": "CreateFirstLinkSessionRequest",
|
90
|
-
"name": "创建接入段加速会话",
|
91
|
-
"output": "CreateFirstLinkSessionResponse",
|
92
|
-
"status": "deprecated"
|
93
|
-
},
|
94
87
|
"CreateGlobalDomain": {
|
95
88
|
"document": "用来创建统一域名",
|
96
89
|
"input": "CreateGlobalDomainRequest",
|
@@ -196,13 +189,6 @@
|
|
196
189
|
"output": "DeleteDomainErrorPageInfoResponse",
|
197
190
|
"status": "online"
|
198
191
|
},
|
199
|
-
"DeleteFirstLinkSession": {
|
200
|
-
"document": "产品功能已下线,下线对应的api接口\n\n本接口(DeleteFirstLinkSession)用于删除接入段加速会话,删除加速会话后会停止加速。",
|
201
|
-
"input": "DeleteFirstLinkSessionRequest",
|
202
|
-
"name": "删除接入段加速会话",
|
203
|
-
"output": "DeleteFirstLinkSessionResponse",
|
204
|
-
"status": "deprecated"
|
205
|
-
},
|
206
192
|
"DeleteGlobalDomain": {
|
207
193
|
"document": "删除统一域名",
|
208
194
|
"input": "DeleteGlobalDomainRequest",
|
@@ -336,13 +322,6 @@
|
|
336
322
|
"output": "DescribeDomainErrorPageInfoByIdsResponse",
|
337
323
|
"status": "online"
|
338
324
|
},
|
339
|
-
"DescribeFirstLinkSession": {
|
340
|
-
"document": "产品功能已下线,下线对应的api接口\n\n本接口(DescribeFirstLinkSession)用于查询接入段加速会话状态,包括会话状态,生效时长,加速套餐等信息。",
|
341
|
-
"input": "DescribeFirstLinkSessionRequest",
|
342
|
-
"name": "查询接入段加速会话信息",
|
343
|
-
"output": "DescribeFirstLinkSessionResponse",
|
344
|
-
"status": "deprecated"
|
345
|
-
},
|
346
325
|
"DescribeGlobalDomainDns": {
|
347
326
|
"document": "查询域名解析列表",
|
348
327
|
"input": "DescribeGlobalDomainDnsRequest",
|
@@ -1220,30 +1199,6 @@
|
|
1220
1199
|
],
|
1221
1200
|
"type": "object"
|
1222
1201
|
},
|
1223
|
-
"Capacity": {
|
1224
|
-
"document": "接口扩展参数",
|
1225
|
-
"members": [
|
1226
|
-
{
|
1227
|
-
"disabled": false,
|
1228
|
-
"document": "电信鉴权的Token",
|
1229
|
-
"example": "auth-token",
|
1230
|
-
"member": "string",
|
1231
|
-
"name": "CTCCToken",
|
1232
|
-
"required": false,
|
1233
|
-
"type": "string"
|
1234
|
-
},
|
1235
|
-
{
|
1236
|
-
"disabled": false,
|
1237
|
-
"document": "终端所处在的省份,建议不填写由服务端自动获取,若需填写请填写带有省、市、自治区、特别行政区等后缀的省份中文全称",
|
1238
|
-
"example": "广东省",
|
1239
|
-
"member": "string",
|
1240
|
-
"name": "Province",
|
1241
|
-
"required": false,
|
1242
|
-
"type": "string"
|
1243
|
-
}
|
1244
|
-
],
|
1245
|
-
"usage": "in"
|
1246
|
-
},
|
1247
1202
|
"Certificate": {
|
1248
1203
|
"document": "服务器证书",
|
1249
1204
|
"members": [
|
@@ -2087,89 +2042,6 @@
|
|
2087
2042
|
],
|
2088
2043
|
"type": "object"
|
2089
2044
|
},
|
2090
|
-
"CreateFirstLinkSessionRequest": {
|
2091
|
-
"document": "CreateFirstLinkSession请求参数结构体",
|
2092
|
-
"members": [
|
2093
|
-
{
|
2094
|
-
"disabled": false,
|
2095
|
-
"document": "模版ID",
|
2096
|
-
"example": "flt-12345678",
|
2097
|
-
"member": "string",
|
2098
|
-
"name": "TemplateId",
|
2099
|
-
"required": true,
|
2100
|
-
"type": "string"
|
2101
|
-
},
|
2102
|
-
{
|
2103
|
-
"disabled": false,
|
2104
|
-
"document": "终端网络信息",
|
2105
|
-
"example": "无",
|
2106
|
-
"member": "SrcAddressInfo",
|
2107
|
-
"name": "SrcAddressInfo",
|
2108
|
-
"required": true,
|
2109
|
-
"type": "object"
|
2110
|
-
},
|
2111
|
-
{
|
2112
|
-
"disabled": false,
|
2113
|
-
"document": "加速目标网络信息",
|
2114
|
-
"example": "无",
|
2115
|
-
"member": "DestAddressInfo",
|
2116
|
-
"name": "DestAddressInfo",
|
2117
|
-
"required": true,
|
2118
|
-
"type": "object"
|
2119
|
-
},
|
2120
|
-
{
|
2121
|
-
"disabled": false,
|
2122
|
-
"document": "终端设备信息",
|
2123
|
-
"example": "无",
|
2124
|
-
"member": "DeviceInfo",
|
2125
|
-
"name": "DeviceInfo",
|
2126
|
-
"required": false,
|
2127
|
-
"type": "object"
|
2128
|
-
},
|
2129
|
-
{
|
2130
|
-
"disabled": false,
|
2131
|
-
"document": "接口扩展参数,如果是电信用户,需要填充CTCC Token字段",
|
2132
|
-
"example": "无",
|
2133
|
-
"member": "Capacity",
|
2134
|
-
"name": "Capacity",
|
2135
|
-
"required": false,
|
2136
|
-
"type": "object"
|
2137
|
-
}
|
2138
|
-
],
|
2139
|
-
"type": "object"
|
2140
|
-
},
|
2141
|
-
"CreateFirstLinkSessionResponse": {
|
2142
|
-
"document": "CreateFirstLinkSession返回参数结构体",
|
2143
|
-
"members": [
|
2144
|
-
{
|
2145
|
-
"disabled": false,
|
2146
|
-
"document": "加速成功时返回,单次加速唯一会话Id。。\n注意:此字段可能返回 null,表示取不到有效值。",
|
2147
|
-
"example": "16323902746ebb80e918b94b818a5647fbb0d921f8-3-65537",
|
2148
|
-
"member": "string",
|
2149
|
-
"name": "SessionId",
|
2150
|
-
"required": true,
|
2151
|
-
"type": "string",
|
2152
|
-
"value_allowed_null": true
|
2153
|
-
},
|
2154
|
-
{
|
2155
|
-
"disabled": false,
|
2156
|
-
"document": "剩余的加速时间,单位秒。\n注意:此字段可能返回 null,表示取不到有效值。",
|
2157
|
-
"example": "1790",
|
2158
|
-
"member": "int64",
|
2159
|
-
"name": "Duration",
|
2160
|
-
"required": true,
|
2161
|
-
"type": "int",
|
2162
|
-
"value_allowed_null": true
|
2163
|
-
},
|
2164
|
-
{
|
2165
|
-
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
2166
|
-
"member": "string",
|
2167
|
-
"name": "RequestId",
|
2168
|
-
"type": "string"
|
2169
|
-
}
|
2170
|
-
],
|
2171
|
-
"type": "object"
|
2172
|
-
},
|
2173
2045
|
"CreateGlobalDomainDnsRequest": {
|
2174
2046
|
"document": "CreateGlobalDomainDns请求参数结构体",
|
2175
2047
|
"members": [
|
@@ -3441,33 +3313,6 @@
|
|
3441
3313
|
],
|
3442
3314
|
"type": "object"
|
3443
3315
|
},
|
3444
|
-
"DeleteFirstLinkSessionRequest": {
|
3445
|
-
"document": "DeleteFirstLinkSession请求参数结构体",
|
3446
|
-
"members": [
|
3447
|
-
{
|
3448
|
-
"disabled": false,
|
3449
|
-
"document": "单次加速唯一会话Id",
|
3450
|
-
"example": "16323902746ebb80e918b94b818a5647fbb0d921f8-3-65537",
|
3451
|
-
"member": "string",
|
3452
|
-
"name": "SessionId",
|
3453
|
-
"required": true,
|
3454
|
-
"type": "string"
|
3455
|
-
}
|
3456
|
-
],
|
3457
|
-
"type": "object"
|
3458
|
-
},
|
3459
|
-
"DeleteFirstLinkSessionResponse": {
|
3460
|
-
"document": "DeleteFirstLinkSession返回参数结构体",
|
3461
|
-
"members": [
|
3462
|
-
{
|
3463
|
-
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
3464
|
-
"member": "string",
|
3465
|
-
"name": "RequestId",
|
3466
|
-
"type": "string"
|
3467
|
-
}
|
3468
|
-
],
|
3469
|
-
"type": "object"
|
3470
|
-
},
|
3471
3316
|
"DeleteGlobalDomainDnsRequest": {
|
3472
3317
|
"document": "DeleteGlobalDomainDns请求参数结构体",
|
3473
3318
|
"members": [
|
@@ -4219,83 +4064,6 @@
|
|
4219
4064
|
],
|
4220
4065
|
"type": "object"
|
4221
4066
|
},
|
4222
|
-
"DescribeFirstLinkSessionRequest": {
|
4223
|
-
"document": "DescribeFirstLinkSession请求参数结构体",
|
4224
|
-
"members": [
|
4225
|
-
{
|
4226
|
-
"disabled": false,
|
4227
|
-
"document": "单次加速唯一会话Id",
|
4228
|
-
"example": "16323902746ebb80e918b94b818a5647fbb0d921f8-3-65537",
|
4229
|
-
"member": "string",
|
4230
|
-
"name": "SessionId",
|
4231
|
-
"required": true,
|
4232
|
-
"type": "string"
|
4233
|
-
}
|
4234
|
-
],
|
4235
|
-
"type": "object"
|
4236
|
-
},
|
4237
|
-
"DescribeFirstLinkSessionResponse": {
|
4238
|
-
"document": "DescribeFirstLinkSession返回参数结构体",
|
4239
|
-
"members": [
|
4240
|
-
{
|
4241
|
-
"disabled": false,
|
4242
|
-
"document": "会话状态,具体如下:\n1: 加速中;\n0: 非加速中。\n注意:此字段可能返回 null,表示取不到有效值。",
|
4243
|
-
"example": "1",
|
4244
|
-
"member": "int64",
|
4245
|
-
"name": "Status",
|
4246
|
-
"required": true,
|
4247
|
-
"type": "int",
|
4248
|
-
"value_allowed_null": true
|
4249
|
-
},
|
4250
|
-
{
|
4251
|
-
"disabled": false,
|
4252
|
-
"document": "剩余加速时间,单位秒。\n注意:此字段可能返回 null,表示取不到有效值。",
|
4253
|
-
"example": "1790",
|
4254
|
-
"member": "int64",
|
4255
|
-
"name": "Duration",
|
4256
|
-
"required": true,
|
4257
|
-
"type": "int",
|
4258
|
-
"value_allowed_null": true
|
4259
|
-
},
|
4260
|
-
{
|
4261
|
-
"disabled": false,
|
4262
|
-
"document": "加速套餐类型。\n套餐说明如下:\nT100K:上/下行保障100kbps;\nBD4M:下行带宽保障4Mbps;\nBU4M:上行带宽保障4Mbps。\n注意:此字段可能返回 null,表示取不到有效值。",
|
4263
|
-
"example": "T100K",
|
4264
|
-
"member": "string",
|
4265
|
-
"name": "SuiteType",
|
4266
|
-
"required": true,
|
4267
|
-
"type": "string",
|
4268
|
-
"value_allowed_null": true
|
4269
|
-
},
|
4270
|
-
{
|
4271
|
-
"disabled": false,
|
4272
|
-
"document": "加速终端的公网ip\n注意:此字段可能返回 null,表示取不到有效值。",
|
4273
|
-
"example": "211.97.129.234",
|
4274
|
-
"member": "string",
|
4275
|
-
"name": "SrcPublicIpv4",
|
4276
|
-
"required": true,
|
4277
|
-
"type": "string",
|
4278
|
-
"value_allowed_null": true
|
4279
|
-
},
|
4280
|
-
{
|
4281
|
-
"disabled": false,
|
4282
|
-
"document": "加速目标ip\n注意:此字段可能返回 null,表示取不到有效值。",
|
4283
|
-
"example": "无",
|
4284
|
-
"member": "string",
|
4285
|
-
"name": "DestIpv4",
|
4286
|
-
"required": true,
|
4287
|
-
"type": "list",
|
4288
|
-
"value_allowed_null": true
|
4289
|
-
},
|
4290
|
-
{
|
4291
|
-
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
4292
|
-
"member": "string",
|
4293
|
-
"name": "RequestId",
|
4294
|
-
"type": "string"
|
4295
|
-
}
|
4296
|
-
],
|
4297
|
-
"type": "object"
|
4298
|
-
},
|
4299
4067
|
"DescribeGlobalDomainDnsRequest": {
|
4300
4068
|
"document": "DescribeGlobalDomainDns请求参数结构体",
|
4301
4069
|
"members": [
|
@@ -6384,22 +6152,6 @@
|
|
6384
6152
|
],
|
6385
6153
|
"type": "object"
|
6386
6154
|
},
|
6387
|
-
"DestAddressInfo": {
|
6388
|
-
"document": "网络加速的目标地址信息",
|
6389
|
-
"members": [
|
6390
|
-
{
|
6391
|
-
"disabled": false,
|
6392
|
-
"document": "加速的目标IP,可多ip一起加速",
|
6393
|
-
"example": "[\"192.168.0.0.1\"]",
|
6394
|
-
"member": "string",
|
6395
|
-
"name": "DestIp",
|
6396
|
-
"required": true,
|
6397
|
-
"type": "list",
|
6398
|
-
"value_allowed_null": false
|
6399
|
-
}
|
6400
|
-
],
|
6401
|
-
"usage": "both"
|
6402
|
-
},
|
6403
6155
|
"DestroyProxiesRequest": {
|
6404
6156
|
"document": "DestroyProxies请求参数结构体",
|
6405
6157
|
"members": [
|
@@ -6474,57 +6226,6 @@
|
|
6474
6226
|
],
|
6475
6227
|
"type": "object"
|
6476
6228
|
},
|
6477
|
-
"DeviceInfo": {
|
6478
|
-
"document": "终端设备信息",
|
6479
|
-
"members": [
|
6480
|
-
{
|
6481
|
-
"disabled": false,
|
6482
|
-
"document": "设备数据卡所属的运营商\n1:移动\n2:电信\n3:联通\n4:广电\n99:其他",
|
6483
|
-
"example": "2",
|
6484
|
-
"member": "int64",
|
6485
|
-
"name": "Vendor",
|
6486
|
-
"required": false,
|
6487
|
-
"type": "int"
|
6488
|
-
},
|
6489
|
-
{
|
6490
|
-
"disabled": false,
|
6491
|
-
"document": "设备操作系统\n1:Android\n2: IOS\n99:其他",
|
6492
|
-
"example": "1",
|
6493
|
-
"member": "int64",
|
6494
|
-
"name": "OS",
|
6495
|
-
"required": false,
|
6496
|
-
"type": "int"
|
6497
|
-
},
|
6498
|
-
{
|
6499
|
-
"disabled": false,
|
6500
|
-
"document": "设备唯一标识\nIOS 填写 IDFV\nAndroid 填写 IMEI",
|
6501
|
-
"example": "359881030314356",
|
6502
|
-
"member": "string",
|
6503
|
-
"name": "DeviceId",
|
6504
|
-
"required": false,
|
6505
|
-
"type": "string"
|
6506
|
-
},
|
6507
|
-
{
|
6508
|
-
"disabled": false,
|
6509
|
-
"document": "用户手机号码",
|
6510
|
-
"example": "13112341234",
|
6511
|
-
"member": "string",
|
6512
|
-
"name": "PhoneNum",
|
6513
|
-
"required": false,
|
6514
|
-
"type": "string"
|
6515
|
-
},
|
6516
|
-
{
|
6517
|
-
"disabled": false,
|
6518
|
-
"document": "无线信息\n1:4G\n2:5G\n3:WIFI\n99:其他",
|
6519
|
-
"example": "1",
|
6520
|
-
"member": "int64",
|
6521
|
-
"name": "Wireless",
|
6522
|
-
"required": false,
|
6523
|
-
"type": "int"
|
6524
|
-
}
|
6525
|
-
],
|
6526
|
-
"usage": "in"
|
6527
|
-
},
|
6528
6229
|
"DisableGlobalDomainRequest": {
|
6529
6230
|
"document": "DisableGlobalDomain请求参数结构体",
|
6530
6231
|
"members": [
|
@@ -10914,32 +10615,6 @@
|
|
10914
10615
|
],
|
10915
10616
|
"type": "object"
|
10916
10617
|
},
|
10917
|
-
"SrcAddressInfo": {
|
10918
|
-
"document": "网络加速的原地址信息",
|
10919
|
-
"members": [
|
10920
|
-
{
|
10921
|
-
"disabled": false,
|
10922
|
-
"document": "内网Ip4地址",
|
10923
|
-
"example": "192.168.0.0.1",
|
10924
|
-
"member": "string",
|
10925
|
-
"name": "SrcIpv4",
|
10926
|
-
"required": true,
|
10927
|
-
"type": "string",
|
10928
|
-
"value_allowed_null": false
|
10929
|
-
},
|
10930
|
-
{
|
10931
|
-
"disabled": false,
|
10932
|
-
"document": "公网Ip4地址",
|
10933
|
-
"example": "192.168.0.0.1",
|
10934
|
-
"member": "string",
|
10935
|
-
"name": "SrcPublicIpv4",
|
10936
|
-
"required": true,
|
10937
|
-
"type": "string",
|
10938
|
-
"value_allowed_null": false
|
10939
|
-
}
|
10940
|
-
],
|
10941
|
-
"usage": "in"
|
10942
|
-
},
|
10943
10618
|
"StatisticsDataInfo": {
|
10944
10619
|
"document": "统计数据信息",
|
10945
10620
|
"members": [
|
@@ -108,14 +108,6 @@
|
|
108
108
|
"title": "CreateDomainErrorPageInfo"
|
109
109
|
}
|
110
110
|
],
|
111
|
-
"CreateFirstLinkSession": [
|
112
|
-
{
|
113
|
-
"document": "",
|
114
|
-
"input": "POST / HTTP/1.1\nHost: gaap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateFirstLinkSession\n<公共请求参数>\n\n{\n \"TemplateId\": \"flt-4av6kul7\",\n \"DestAddressInfo\": {\n \"DestIp\": [\n \"143.244.174.31\"\n ]\n },\n \"SrcAddressInfo\": {\n \"SrcIpv4\": \"10.51.105.127\",\n \"SrcPublicIpv4\": \"211.97.128.200\"\n }\n}",
|
115
|
-
"output": "{\n \"Response\": {\n \"SessionId\": \"ZWViYzAwNzJmNjRkNGExMDgyMjkzZTY0YzU0ZjZhNDY=-1-0\",\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\",\n \"Duration\": 1790\n }\n}",
|
116
|
-
"title": "创建接入段加速会话"
|
117
|
-
}
|
118
|
-
],
|
119
111
|
"CreateGlobalDomain": [
|
120
112
|
{
|
121
113
|
"document": "创建域名示例",
|
@@ -242,14 +234,6 @@
|
|
242
234
|
"title": "DeleteDomainErrorPageInfo"
|
243
235
|
}
|
244
236
|
],
|
245
|
-
"DeleteFirstLinkSession": [
|
246
|
-
{
|
247
|
-
"document": "",
|
248
|
-
"input": "POST / HTTP/1.1\nHost: gaap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteFirstLinkSession\n<公共请求参数>\n\n{\n \"SessionId\": \"ZWViYzAwNzJmNjRkNGExMDgyMjkzZTY0YzU0ZjZhNDY=-1-0\"\n}",
|
249
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
|
250
|
-
"title": "删除接入段加速会话"
|
251
|
-
}
|
252
|
-
],
|
253
237
|
"DeleteGlobalDomain": [
|
254
238
|
{
|
255
239
|
"document": "",
|
@@ -402,14 +386,6 @@
|
|
402
386
|
"title": "DescribeDomainErrorPageInfoByIds"
|
403
387
|
}
|
404
388
|
],
|
405
|
-
"DescribeFirstLinkSession": [
|
406
|
-
{
|
407
|
-
"document": "",
|
408
|
-
"input": "POST / HTTP/1.1\nHost: gaap.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeFirstLinkSession\n<公共请求参数>\n\n{\n \"SessionId\": \"MTYzMjczNDYyNDU0MWE5OWY3MWMzYTQ3OGZhMjJkY2NlNDU0NDE2YzE3-3-65537\"\n}",
|
409
|
-
"output": "{\n \"Response\": {\n \"Status\": 1,\n \"DestIpv4\": [\n \"143.244.174.31\"\n ],\n \"Duration\": 1771,\n \"SuiteType\": \"T100K\",\n \"RequestId\": \"q708a7c6-db58-4729-8e09-2ea6b727109p\",\n \"SrcPublicIpv4\": \"211.97.129.234\"\n }\n}",
|
410
|
-
"title": "查询接入段加速会话信息"
|
411
|
-
}
|
412
|
-
],
|
413
389
|
"DescribeGlobalDomainDns": [
|
414
390
|
{
|
415
391
|
"document": "",
|
@@ -329,6 +329,58 @@ def doGetEmbedding(args, parsed_globals):
|
|
329
329
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
330
330
|
|
331
331
|
|
332
|
+
def doImageQuestion(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.HunyuanClient(cred, g_param[OptionsDefine.Region], profile)
|
359
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
360
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
361
|
+
model = models.ImageQuestionRequest()
|
362
|
+
model.from_json_string(json.dumps(args))
|
363
|
+
start_time = time.time()
|
364
|
+
while True:
|
365
|
+
rsp = client.ImageQuestion(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 doCreateThread(args, parsed_globals):
|
333
385
|
g_param = parse_global_arg(parsed_globals)
|
334
386
|
|
@@ -1178,6 +1230,7 @@ ACTION_MAP = {
|
|
1178
1230
|
"ChatTranslations": doChatTranslations,
|
1179
1231
|
"GetThreadMessageList": doGetThreadMessageList,
|
1180
1232
|
"GetEmbedding": doGetEmbedding,
|
1233
|
+
"ImageQuestion": doImageQuestion,
|
1181
1234
|
"CreateThread": doCreateThread,
|
1182
1235
|
"RunThread": doRunThread,
|
1183
1236
|
"SetPayMode": doSetPayMode,
|