tccli 3.0.1147.1__py2.py3-none-any.whl → 3.0.1149.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/aiart/aiart_client.py +53 -0
- tccli/services/aiart/v20221229/api.json +80 -0
- tccli/services/aiart/v20221229/examples.json +8 -0
- tccli/services/asr/v20190614/api.json +6 -6
- tccli/services/cam/v20190116/api.json +4 -4
- tccli/services/cam/v20190116/examples.json +1 -1
- tccli/services/clb/v20180317/api.json +1 -1
- tccli/services/cwp/v20180228/api.json +63 -16
- tccli/services/cwp/v20180228/examples.json +1 -1
- tccli/services/dcdb/v20180411/api.json +2 -0
- tccli/services/dnspod/v20210323/api.json +9 -0
- tccli/services/ess/ess_client.py +53 -0
- tccli/services/ess/v20201111/api.json +67 -5
- tccli/services/ess/v20201111/examples.json +14 -0
- tccli/services/essbasic/essbasic_client.py +57 -4
- tccli/services/essbasic/v20210526/api.json +56 -3
- tccli/services/essbasic/v20210526/examples.json +8 -0
- tccli/services/gaap/gaap_client.py +53 -0
- tccli/services/gaap/v20180529/api.json +24 -0
- tccli/services/gaap/v20180529/examples.json +8 -0
- tccli/services/lighthouse/v20200324/api.json +33 -31
- tccli/services/lighthouse/v20200324/examples.json +3 -3
- tccli/services/live/v20180801/api.json +6 -0
- tccli/services/live/v20180801/examples.json +1 -1
- tccli/services/lke/lke_client.py +53 -0
- tccli/services/lke/v20231130/api.json +160 -1
- tccli/services/lke/v20231130/examples.json +8 -0
- tccli/services/mariadb/mariadb_client.py +53 -0
- tccli/services/mariadb/v20170312/api.json +88 -0
- tccli/services/mariadb/v20170312/examples.json +8 -0
- tccli/services/mna/mna_client.py +485 -8
- tccli/services/mna/v20210119/api.json +743 -21
- tccli/services/mna/v20210119/examples.json +72 -0
- tccli/services/mongodb/v20190725/api.json +35 -35
- tccli/services/monitor/v20180724/api.json +1 -1
- tccli/services/mps/v20190612/api.json +31 -10
- tccli/services/oceanus/v20190422/api.json +24 -0
- tccli/services/organization/v20210331/api.json +1 -1
- tccli/services/rum/v20210622/api.json +9 -0
- tccli/services/tdmq/v20200217/api.json +12 -10
- tccli/services/tdmq/v20200217/examples.json +1 -1
- tccli/services/thpc/v20230321/api.json +11 -3
- tccli/services/tke/v20180525/api.json +3 -3
- tccli/services/trtc/v20190722/api.json +15 -5
- tccli/services/tsf/tsf_client.py +110 -4
- tccli/services/tsf/v20180326/api.json +142 -0
- tccli/services/tsf/v20180326/examples.json +16 -0
- tccli/services/vpc/v20170312/api.json +1 -1
- {tccli-3.0.1147.1.dist-info → tccli-3.0.1149.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1147.1.dist-info → tccli-3.0.1149.1.dist-info}/RECORD +54 -54
- {tccli-3.0.1147.1.dist-info → tccli-3.0.1149.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1147.1.dist-info → tccli-3.0.1149.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1147.1.dist-info → tccli-3.0.1149.1.dist-info}/license_files/LICENSE +0 -0
@@ -2662,8 +2662,8 @@
|
|
2662
2662
|
"members": [
|
2663
2663
|
{
|
2664
2664
|
"disabled": false,
|
2665
|
-
"document": "实例 ID
|
2666
|
-
"example": "[\"lhins-f4s49nap
|
2665
|
+
"document": "实例 ID 列表。可通过[DescribeInstances](https://cloud.tencent.com/document/api/1207/47573)接口返回值中的InstanceId获取。 当前最多支持1个。",
|
2666
|
+
"example": "[\"lhins-f4s49nap\"]",
|
2667
2667
|
"member": "string",
|
2668
2668
|
"name": "InstanceIds",
|
2669
2669
|
"required": true,
|
@@ -2681,7 +2681,7 @@
|
|
2681
2681
|
"example": "1",
|
2682
2682
|
"member": "int64",
|
2683
2683
|
"name": "TotalCount",
|
2684
|
-
"
|
2684
|
+
"output_required": true,
|
2685
2685
|
"type": "int",
|
2686
2686
|
"value_allowed_null": false
|
2687
2687
|
},
|
@@ -2691,7 +2691,7 @@
|
|
2691
2691
|
"example": "无",
|
2692
2692
|
"member": "BlueprintInstance",
|
2693
2693
|
"name": "BlueprintInstanceSet",
|
2694
|
-
"
|
2694
|
+
"output_required": true,
|
2695
2695
|
"type": "list",
|
2696
2696
|
"value_allowed_null": false
|
2697
2697
|
},
|
@@ -2737,7 +2737,7 @@
|
|
2737
2737
|
{
|
2738
2738
|
"disabled": false,
|
2739
2739
|
"document": "过滤器列表。\n<li>blueprint-id</li>按照【镜像 ID】进行过滤。\n类型:String\n必选:否\n<li>blueprint-type</li>按照【镜像类型】进行过滤。\n取值:APP_OS(应用镜像 );PURE_OS(系统镜像);DOCKER(Docker容器镜像);PRIVATE(自定义镜像);SHARED(共享镜像)。\n类型:String\n必选:否\n<li>platform-type</li>按照【镜像平台类型】进行过滤。\n取值: LINUX_UNIX(Linux/Unix系统);WINDOWS(Windows 系统)。\n类型:String\n必选:否\n<li>blueprint-name</li>按照【镜像名称】进行过滤。\n类型:String\n必选:否\n<li>blueprint-state</li>按照【镜像状态】进行过滤。\n类型:String\n必选:否\n<li>scene-id</li>按照【使用场景Id】进行过滤。\n类型:String\n必选:否\n\n每次请求的 Filters 的上限为 10,Filter.Values 的上限为 100。参数不支持同时指定 BlueprintIds 和 Filters 。",
|
2740
|
-
"example": "
|
2740
|
+
"example": "无",
|
2741
2741
|
"member": "Filter",
|
2742
2742
|
"name": "Filters",
|
2743
2743
|
"required": false,
|
@@ -2755,15 +2755,17 @@
|
|
2755
2755
|
"example": "1",
|
2756
2756
|
"member": "int64",
|
2757
2757
|
"name": "TotalCount",
|
2758
|
+
"output_required": true,
|
2758
2759
|
"type": "int",
|
2759
2760
|
"value_allowed_null": false
|
2760
2761
|
},
|
2761
2762
|
{
|
2762
2763
|
"disabled": false,
|
2763
2764
|
"document": "镜像详细信息列表。",
|
2764
|
-
"example": "
|
2765
|
+
"example": "无",
|
2765
2766
|
"member": "Blueprint",
|
2766
2767
|
"name": "BlueprintSet",
|
2768
|
+
"output_required": true,
|
2767
2769
|
"type": "list",
|
2768
2770
|
"value_allowed_null": false
|
2769
2771
|
},
|
@@ -4113,7 +4115,7 @@
|
|
4113
4115
|
{
|
4114
4116
|
"disabled": false,
|
4115
4117
|
"document": "实例 ID 列表。每次请求批量实例的上限为 100。可通过[DescribeInstances](https://cloud.tencent.com/document/api/1207/47573)接口返回值中的InstanceId获取。",
|
4116
|
-
"example": "[\"lhins-ruy9d2tw
|
4118
|
+
"example": "[\"lhins-ruy9d2tw\"]",
|
4117
4119
|
"member": "string",
|
4118
4120
|
"name": "InstanceIds",
|
4119
4121
|
"required": true,
|
@@ -4271,7 +4273,7 @@
|
|
4271
4273
|
{
|
4272
4274
|
"disabled": false,
|
4273
4275
|
"document": "实例 ID 列表。每次请求批量实例的上限为 100。可通过[DescribeInstances](https://cloud.tencent.com/document/api/1207/47573)接口返回值中的InstanceId获取。",
|
4274
|
-
"example": "[\"lhins-ruy9d2tw
|
4276
|
+
"example": "[\"lhins-ruy9d2tw\",\"lhins-xusdke45\"]",
|
4275
4277
|
"member": "string",
|
4276
4278
|
"name": "InstanceIds",
|
4277
4279
|
"required": false,
|
@@ -4307,7 +4309,7 @@
|
|
4307
4309
|
"example": "2",
|
4308
4310
|
"member": "int64",
|
4309
4311
|
"name": "TotalCount",
|
4310
|
-
"
|
4312
|
+
"output_required": true,
|
4311
4313
|
"type": "int",
|
4312
4314
|
"value_allowed_null": false
|
4313
4315
|
},
|
@@ -4317,7 +4319,7 @@
|
|
4317
4319
|
"example": "无",
|
4318
4320
|
"member": "InstanceReturnable",
|
4319
4321
|
"name": "InstanceReturnableSet",
|
4320
|
-
"
|
4322
|
+
"output_required": true,
|
4321
4323
|
"type": "list",
|
4322
4324
|
"value_allowed_null": false
|
4323
4325
|
},
|
@@ -5107,7 +5109,7 @@
|
|
5107
5109
|
"example": "lhdisk-p1zflrif",
|
5108
5110
|
"member": "string",
|
5109
5111
|
"name": "DiskId",
|
5110
|
-
"
|
5112
|
+
"output_required": true,
|
5111
5113
|
"type": "string",
|
5112
5114
|
"value_allowed_null": false
|
5113
5115
|
},
|
@@ -5117,7 +5119,7 @@
|
|
5117
5119
|
"example": "lhins-anxwfvxh",
|
5118
5120
|
"member": "string",
|
5119
5121
|
"name": "InstanceId",
|
5120
|
-
"
|
5122
|
+
"output_required": true,
|
5121
5123
|
"type": "string",
|
5122
5124
|
"value_allowed_null": false
|
5123
5125
|
},
|
@@ -5127,7 +5129,7 @@
|
|
5127
5129
|
"example": "ap-guangzhou-1",
|
5128
5130
|
"member": "string",
|
5129
5131
|
"name": "Zone",
|
5130
|
-
"
|
5132
|
+
"output_required": true,
|
5131
5133
|
"type": "string",
|
5132
5134
|
"value_allowed_null": false
|
5133
5135
|
},
|
@@ -5137,7 +5139,7 @@
|
|
5137
5139
|
"example": "disk-name",
|
5138
5140
|
"member": "string",
|
5139
5141
|
"name": "DiskName",
|
5140
|
-
"
|
5142
|
+
"output_required": true,
|
5141
5143
|
"type": "string",
|
5142
5144
|
"value_allowed_null": false
|
5143
5145
|
},
|
@@ -5147,7 +5149,7 @@
|
|
5147
5149
|
"example": "DATA_DISK",
|
5148
5150
|
"member": "string",
|
5149
5151
|
"name": "DiskUsage",
|
5150
|
-
"
|
5152
|
+
"output_required": true,
|
5151
5153
|
"type": "string",
|
5152
5154
|
"value_allowed_null": false
|
5153
5155
|
},
|
@@ -5157,7 +5159,7 @@
|
|
5157
5159
|
"example": "CLOUD_SSD",
|
5158
5160
|
"member": "string",
|
5159
5161
|
"name": "DiskType",
|
5160
|
-
"
|
5162
|
+
"output_required": true,
|
5161
5163
|
"type": "string",
|
5162
5164
|
"value_allowed_null": false
|
5163
5165
|
},
|
@@ -5167,7 +5169,7 @@
|
|
5167
5169
|
"example": "PREPAID",
|
5168
5170
|
"member": "string",
|
5169
5171
|
"name": "DiskChargeType",
|
5170
|
-
"
|
5172
|
+
"output_required": true,
|
5171
5173
|
"type": "string",
|
5172
5174
|
"value_allowed_null": false
|
5173
5175
|
},
|
@@ -5177,7 +5179,7 @@
|
|
5177
5179
|
"example": "20",
|
5178
5180
|
"member": "int64",
|
5179
5181
|
"name": "DiskSize",
|
5180
|
-
"
|
5182
|
+
"output_required": true,
|
5181
5183
|
"type": "int",
|
5182
5184
|
"value_allowed_null": false
|
5183
5185
|
},
|
@@ -5187,7 +5189,7 @@
|
|
5187
5189
|
"example": "NOTIFY_AND_MANUAL_RENEW",
|
5188
5190
|
"member": "string",
|
5189
5191
|
"name": "RenewFlag",
|
5190
|
-
"
|
5192
|
+
"output_required": true,
|
5191
5193
|
"type": "string",
|
5192
5194
|
"value_allowed_null": false
|
5193
5195
|
},
|
@@ -5197,7 +5199,7 @@
|
|
5197
5199
|
"example": "UNATTACHED",
|
5198
5200
|
"member": "string",
|
5199
5201
|
"name": "DiskState",
|
5200
|
-
"
|
5202
|
+
"output_required": true,
|
5201
5203
|
"type": "string",
|
5202
5204
|
"value_allowed_null": false
|
5203
5205
|
},
|
@@ -5207,7 +5209,7 @@
|
|
5207
5209
|
"example": "False",
|
5208
5210
|
"member": "bool",
|
5209
5211
|
"name": "Attached",
|
5210
|
-
"
|
5212
|
+
"output_required": true,
|
5211
5213
|
"type": "bool",
|
5212
5214
|
"value_allowed_null": false
|
5213
5215
|
},
|
@@ -5217,7 +5219,7 @@
|
|
5217
5219
|
"example": "False",
|
5218
5220
|
"member": "bool",
|
5219
5221
|
"name": "DeleteWithInstance",
|
5220
|
-
"
|
5222
|
+
"output_required": true,
|
5221
5223
|
"type": "bool",
|
5222
5224
|
"value_allowed_null": false
|
5223
5225
|
},
|
@@ -5227,7 +5229,7 @@
|
|
5227
5229
|
"example": "CreateDisks",
|
5228
5230
|
"member": "string",
|
5229
5231
|
"name": "LatestOperation",
|
5230
|
-
"
|
5232
|
+
"output_required": true,
|
5231
5233
|
"type": "string",
|
5232
5234
|
"value_allowed_null": false
|
5233
5235
|
},
|
@@ -5237,7 +5239,7 @@
|
|
5237
5239
|
"example": "SUCCESS",
|
5238
5240
|
"member": "string",
|
5239
5241
|
"name": "LatestOperationState",
|
5240
|
-
"
|
5242
|
+
"output_required": true,
|
5241
5243
|
"type": "string",
|
5242
5244
|
"value_allowed_null": false
|
5243
5245
|
},
|
@@ -5247,7 +5249,7 @@
|
|
5247
5249
|
"example": "b786faac-d27b-4f70-a52e-3ae725e0f639",
|
5248
5250
|
"member": "string",
|
5249
5251
|
"name": "LatestOperationRequestId",
|
5250
|
-
"
|
5252
|
+
"output_required": true,
|
5251
5253
|
"type": "string",
|
5252
5254
|
"value_allowed_null": false
|
5253
5255
|
},
|
@@ -5257,7 +5259,7 @@
|
|
5257
5259
|
"example": "2021-08-25T08:50:57Z",
|
5258
5260
|
"member": "datetime_iso",
|
5259
5261
|
"name": "CreatedTime",
|
5260
|
-
"
|
5262
|
+
"output_required": true,
|
5261
5263
|
"type": "string",
|
5262
5264
|
"value_allowed_null": true
|
5263
5265
|
},
|
@@ -5267,7 +5269,7 @@
|
|
5267
5269
|
"example": "2021-08-25T08:50:57Z",
|
5268
5270
|
"member": "datetime_iso",
|
5269
5271
|
"name": "ExpiredTime",
|
5270
|
-
"
|
5272
|
+
"output_required": true,
|
5271
5273
|
"type": "string",
|
5272
5274
|
"value_allowed_null": true
|
5273
5275
|
},
|
@@ -5277,7 +5279,7 @@
|
|
5277
5279
|
"example": "2021-08-25T08:50:57Z",
|
5278
5280
|
"member": "datetime_iso",
|
5279
5281
|
"name": "IsolatedTime",
|
5280
|
-
"
|
5282
|
+
"output_required": true,
|
5281
5283
|
"type": "string",
|
5282
5284
|
"value_allowed_null": true
|
5283
5285
|
},
|
@@ -5287,7 +5289,7 @@
|
|
5287
5289
|
"example": "1",
|
5288
5290
|
"member": "int64",
|
5289
5291
|
"name": "DiskBackupCount",
|
5290
|
-
"
|
5292
|
+
"output_required": true,
|
5291
5293
|
"type": "int",
|
5292
5294
|
"value_allowed_null": false
|
5293
5295
|
},
|
@@ -5297,7 +5299,7 @@
|
|
5297
5299
|
"example": "1",
|
5298
5300
|
"member": "int64",
|
5299
5301
|
"name": "DiskBackupQuota",
|
5300
|
-
"
|
5302
|
+
"output_required": true,
|
5301
5303
|
"type": "int",
|
5302
5304
|
"value_allowed_null": false
|
5303
5305
|
}
|
@@ -8250,7 +8252,7 @@
|
|
8250
8252
|
{
|
8251
8253
|
"disabled": false,
|
8252
8254
|
"document": "实例 ID 列表。每次请求批量实例的上限为 100。可通过[DescribeInstances](https://cloud.tencent.com/document/api/1207/47573)接口返回值中的InstanceId获取。",
|
8253
|
-
"example": "[\"lhins-ruy9d2tw
|
8255
|
+
"example": "[\"lhins-ruy9d2tw\",\"lhins-rusdke45\"]",
|
8254
8256
|
"member": "string",
|
8255
8257
|
"name": "InstanceIds",
|
8256
8258
|
"required": true,
|
@@ -196,15 +196,15 @@
|
|
196
196
|
{
|
197
197
|
"document": "",
|
198
198
|
"input": "https://lighthouse.tencentcloudapi.com/?Action=DescribeBlueprintInstances\n&InstanceIds.0=lhins-f4s49nap\n&<公共请求参数>",
|
199
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"BlueprintInstanceSet\": [\n {\n \"InstanceId\": \"lhins-
|
199
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"BlueprintInstanceSet\": [\n {\n \"InstanceId\": \"lhins-f4s49nap\",\n \"Blueprint\": {\n \"BlueprintId\": \"lhbp-lf6jlx98\",\n \"DisplayTitle\": \"宝塔Linux面板\",\n \"DisplayVersion\": \"8.1.0 腾讯云专享版\",\n \"BlueprintName\": \"btpanel_exclusive\",\n \"Description\": \"宝塔Linux面板(BT-Panel)是一款简单好用的服务器运维管理面板,支持一键LAMP/LNMP/集群/监控/网站/FTP/数据库/JAVA等100多项服务器管理功能,能够极大提升运维管理效率。宝塔面板腾讯云专享版由腾讯云与堡塔公司联合开发,与普通版相比,专享版默认集成腾讯云COSFS、CDN和DNS解析插件,让用户更便捷的使用宝塔面板对腾讯云产品进行管理和操作。该镜像基于OpenCloudOS 9操作系统。\",\n \"OsName\": \"OpenCloudOS 9\",\n \"Platform\": \"OPENCLOUDOS\",\n \"PlatformType\": \"LINUX_UNIX\",\n \"BlueprintType\": \"APP_OS\",\n \"ImageUrl\": \"https://cloudcache.tencent-cloud.com/open_proj/proj_qcloud_v2/tc-console/tea-static-lighthouse/src/styles/slice/bt-panel.svg\",\n \"RequiredSystemDiskSize\": 20,\n \"RequiredMemorySize\": 1,\n \"BlueprintState\": \"NORMAL\",\n \"SupportAutomationTools\": true,\n \"ImageId\": \"\",\n \"CommunityUrl\": \"https://www.bt.cn\",\n \"GuideUrl\": \"https://cloud.tencent.com/document/product/1207/47425\",\n \"SceneIdSet\": [\n \"lhsc-3bzsddow\"\n ],\n \"DockerVersion\": null,\n \"BlueprintShared\": false,\n \"CreatedTime\": \"2024-05-08T03:43:06Z\"\n },\n \"SoftwareSet\": [\n {\n \"Name\": \"宝塔Linux面板\",\n \"Version\": \"8.1.0 腾讯云专享版\",\n \"ImageUrl\": \"https://imgcache.qq.com/open_proj/proj_qcloud_v2/tc-console/tea-static-lighthouse/src/styles/slice/bt-panel.svg\",\n \"InstallDir\": \"/www\",\n \"DetailSet\": [\n {\n \"Key\": \"BTPanelIndexUrl\",\n \"Title\": \"面板首页地址\",\n \"Value\": \"http://1.13.251.147:面板端口/tencentcloud\"\n },\n {\n \"Key\": \"BTPanelPort\",\n \"Title\": \"面板端口\",\n \"Value\": \"默认为8888,您可以在登录面板后修改面板端口\"\n },\n {\n \"Key\": \"BTPanelCredential\",\n \"Title\": \"用户名与密码\",\n \"Value\": \"sudo /etc/init.d/bt default\"\n }\n ]\n }\n ]\n }\n ],\n \"RequestId\": \"128d0517-4eb0-4301-868c-650eaeac5556\"\n }\n}",
|
200
200
|
"title": "查询镜像实例信息"
|
201
201
|
}
|
202
202
|
],
|
203
203
|
"DescribeBlueprints": [
|
204
204
|
{
|
205
205
|
"document": "查询镜像信息",
|
206
|
-
"input": "POST / HTTP/1.1\nHost: lighthouse.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBlueprints\n<公共请求参数>\n\n{\n \"BlueprintIds\": [\n \"lhbp-
|
207
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"BlueprintSet\": [\n {\n \"BlueprintId\": \"lhbp-
|
206
|
+
"input": "POST / HTTP/1.1\nHost: lighthouse.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBlueprints\n<公共请求参数>\n\n{\n \"BlueprintIds\": [\n \"lhbp-lf6jlx98\"\n ]\n}",
|
207
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"BlueprintSet\": [\n {\n \"BlueprintId\": \"lhbp-lf6jlx98\",\n \"DisplayTitle\": \"宝塔Linux面板\",\n \"DisplayVersion\": \"8.1.0 腾讯云专享版\",\n \"BlueprintName\": \"btpanel_exclusive\",\n \"Description\": \"宝塔Linux面板(BT-Panel)是一款简单好用的服务器运维管理面板,支持一键LAMP/LNMP/集群/监控/网站/FTP/数据库/JAVA等100多项服务器管理功能,能够极大提升运维管理效率。宝塔面板腾讯云专享版由腾讯云与堡塔公司联合开发,与普通版相比,专享版默认集成腾讯云COSFS、CDN和DNS解析插件,让用户更便捷的使用宝塔面板对腾讯云产品进行管理和操作。该镜像基于OpenCloudOS 9操作系统。\",\n \"OsName\": \"OpenCloudOS 9\",\n \"Platform\": \"OPENCLOUDOS\",\n \"PlatformType\": \"LINUX_UNIX\",\n \"BlueprintType\": \"APP_OS\",\n \"ImageUrl\": \"https://cloudcache.tencent-cloud.com/open_proj/proj_qcloud_v2/tc-console/tea-static-lighthouse/src/styles/slice/bt-panel.svg\",\n \"RequiredSystemDiskSize\": 20,\n \"RequiredMemorySize\": 1,\n \"BlueprintState\": \"NORMAL\",\n \"SupportAutomationTools\": true,\n \"ImageId\": \"\",\n \"CommunityUrl\": \"https://www.bt.cn\",\n \"GuideUrl\": \"https://cloud.tencent.com/document/product/1207/47425\",\n \"SceneIdSet\": [\n \"lhsc-3bzsddow\"\n ],\n \"DockerVersion\": null,\n \"BlueprintShared\": false,\n \"CreatedTime\": \"2024-05-08T03:43:06Z\"\n }\n ],\n \"RequestId\": \"817c4e56-36fc-47ff-bfb6-c4462816972b\"\n }\n}",
|
208
208
|
"title": "查询镜像信息"
|
209
209
|
}
|
210
210
|
],
|
@@ -7136,6 +7136,7 @@
|
|
7136
7136
|
"example": "无",
|
7137
7137
|
"member": "PullStreamTaskInfo",
|
7138
7138
|
"name": "TaskInfos",
|
7139
|
+
"output_required": true,
|
7139
7140
|
"type": "list",
|
7140
7141
|
"value_allowed_null": false
|
7141
7142
|
},
|
@@ -7145,6 +7146,7 @@
|
|
7145
7146
|
"example": "1",
|
7146
7147
|
"member": "uint64",
|
7147
7148
|
"name": "PageNum",
|
7149
|
+
"output_required": true,
|
7148
7150
|
"type": "int",
|
7149
7151
|
"value_allowed_null": false
|
7150
7152
|
},
|
@@ -7154,6 +7156,7 @@
|
|
7154
7156
|
"example": "10",
|
7155
7157
|
"member": "uint64",
|
7156
7158
|
"name": "PageSize",
|
7159
|
+
"output_required": true,
|
7157
7160
|
"type": "int",
|
7158
7161
|
"value_allowed_null": false
|
7159
7162
|
},
|
@@ -7163,6 +7166,7 @@
|
|
7163
7166
|
"example": "1",
|
7164
7167
|
"member": "uint64",
|
7165
7168
|
"name": "TotalNum",
|
7169
|
+
"output_required": true,
|
7166
7170
|
"type": "int",
|
7167
7171
|
"value_allowed_null": false
|
7168
7172
|
},
|
@@ -7172,6 +7176,7 @@
|
|
7172
7176
|
"example": "1",
|
7173
7177
|
"member": "uint64",
|
7174
7178
|
"name": "TotalPage",
|
7179
|
+
"output_required": true,
|
7175
7180
|
"type": "int",
|
7176
7181
|
"value_allowed_null": false
|
7177
7182
|
},
|
@@ -7181,6 +7186,7 @@
|
|
7181
7186
|
"example": "20",
|
7182
7187
|
"member": "uint64",
|
7183
7188
|
"name": "LimitTaskNum",
|
7189
|
+
"output_required": true,
|
7184
7190
|
"type": "int",
|
7185
7191
|
"value_allowed_null": false
|
7186
7192
|
},
|
@@ -636,7 +636,7 @@
|
|
636
636
|
{
|
637
637
|
"document": "查询直播拉流任务。",
|
638
638
|
"input": "POST / HTTP/1.1\nHost: live.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeLivePullStreamTasks\n<公共请求参数>\n\n{\n \"TaskId\": \"123\"\n}",
|
639
|
-
"output": "{\n \"Response\": {\n \"TaskInfos\": [\n {\n \"AppName\": \"live\",\n \"Region\": \"ap-beijing\",\n \"CallbackInfo\": \"\",\n \"CallbackEvents\": [\n \"TaskStart\",\n \"TaskExit\"\n ],\n \"CallbackUrl\": \"\",\n \"CreateBy\": \"yourname\",\n \"DomainName\": \"yourdomain.com\",\n \"EndTime\": \"2020-04-25T00:30:00Z\",\n \"ErrorInfo\": \"\",\n \"PushArgs\": \"txsecret=7cbb8f382a21e8d2f6cd8098100d3b8e&txtime=5ea0450d\",\n \"SourceType\": \"PullLivePushLive\",\n \"SourceUrls\": [\n \"http://yourdomain/live/test.flv\"\n ],\n \"StartTime\": \"2020-04-20T00:30:00Z\",\n \"Status\": \"enable\",\n \"StreamName\": \"teststream\",\n \"Comment\": \"abc\",\n \"TaskId\": \"10054\",\n \"UpdateBy\": \"\",\n \"UpdateTime\": \"2020-04-23T05:07:43Z\",\n \"CreateTime\": \"2020-04-20T05:07:43Z\",\n \"VodLoopTimes\": -1,\n \"VodRefreshType\": \"ImmediateNewSource\",\n \"VodLocalMode\": 0,\n \"BackupSourceType\": \"\",\n \"BackupSourceUrl\": \"\",\n \"WatermarkList\": [],\n \"RecentPullInfo\": {\n \"FileUrl\": \"http://yourdomain/live/test.flv\",\n \"OffsetTime\": 95,\n \"LoopedTimes\": 0,\n \"ReportTime\": \"2020-04-23T08:20:39Z\"\n }\n }\n ],\n \"PageNum\": 1,\n \"PageSize\": 10,\n \"TotalNum\": 1,\n \"TotalPage\": 1,\n \"LimitTaskNum\": 20,\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
|
639
|
+
"output": "{\n \"Response\": {\n \"TaskInfos\": [\n {\n \"AppName\": \"live\",\n \"Region\": \"ap-beijing\",\n \"CallbackInfo\": \"\",\n \"CallbackEvents\": [\n \"TaskStart\",\n \"TaskExit\"\n ],\n \"CallbackUrl\": \"\",\n \"CreateBy\": \"yourname\",\n \"DomainName\": \"yourdomain.com\",\n \"EndTime\": \"2020-04-25T00:30:00Z\",\n \"ErrorInfo\": \"\",\n \"BackupToUrl\": \"\",\n \"RecordTemplateId\": \"\",\n \"PushArgs\": \"txsecret=7cbb8f382a21e8d2f6cd8098100d3b8e&txtime=5ea0450d\",\n \"SourceType\": \"PullLivePushLive\",\n \"SourceUrls\": [\n \"http://yourdomain/live/test.flv\"\n ],\n \"StartTime\": \"2020-04-20T00:30:00Z\",\n \"Status\": \"enable\",\n \"StreamName\": \"teststream\",\n \"Comment\": \"abc\",\n \"TaskId\": \"10054\",\n \"UpdateBy\": \"\",\n \"UpdateTime\": \"2020-04-23T05:07:43Z\",\n \"CreateTime\": \"2020-04-20T05:07:43Z\",\n \"VodLoopTimes\": -1,\n \"VodRefreshType\": \"ImmediateNewSource\",\n \"VodLocalMode\": 0,\n \"BackupSourceType\": \"\",\n \"BackupSourceUrl\": \"\",\n \"WatermarkList\": [],\n \"RecentPullInfo\": {\n \"FileUrl\": \"http://yourdomain/live/test.flv\",\n \"OffsetTime\": 95,\n \"LoopedTimes\": 0,\n \"ReportTime\": \"2020-04-23T08:20:39Z\"\n }\n }\n ],\n \"PageNum\": 1,\n \"PageSize\": 10,\n \"TotalNum\": 1,\n \"TotalPage\": 1,\n \"LimitTaskNum\": 20,\n \"RequestId\": \"3c140219-cfe9-470e-b241-907877d6fb03\"\n }\n}",
|
640
640
|
"title": "请求示例"
|
641
641
|
}
|
642
642
|
],
|
tccli/services/lke/lke_client.py
CHANGED
@@ -3501,6 +3501,58 @@ def doListAttributeLabel(args, parsed_globals):
|
|
3501
3501
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3502
3502
|
|
3503
3503
|
|
3504
|
+
def doDescribeSegments(args, parsed_globals):
|
3505
|
+
g_param = parse_global_arg(parsed_globals)
|
3506
|
+
|
3507
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
3508
|
+
cred = credential.CVMRoleCredential()
|
3509
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
3510
|
+
cred = credential.STSAssumeRoleCredential(
|
3511
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
3512
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
3513
|
+
)
|
3514
|
+
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):
|
3515
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
3516
|
+
else:
|
3517
|
+
cred = credential.Credential(
|
3518
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
3519
|
+
)
|
3520
|
+
http_profile = HttpProfile(
|
3521
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
3522
|
+
reqMethod="POST",
|
3523
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
3524
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
3525
|
+
)
|
3526
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
3527
|
+
if g_param[OptionsDefine.Language]:
|
3528
|
+
profile.language = g_param[OptionsDefine.Language]
|
3529
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
3530
|
+
client = mod.LkeClient(cred, g_param[OptionsDefine.Region], profile)
|
3531
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
3532
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3533
|
+
model = models.DescribeSegmentsRequest()
|
3534
|
+
model.from_json_string(json.dumps(args))
|
3535
|
+
start_time = time.time()
|
3536
|
+
while True:
|
3537
|
+
rsp = client.DescribeSegments(model)
|
3538
|
+
result = rsp.to_json_string()
|
3539
|
+
try:
|
3540
|
+
json_obj = json.loads(result)
|
3541
|
+
except TypeError as e:
|
3542
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
3543
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
3544
|
+
break
|
3545
|
+
cur_time = time.time()
|
3546
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
3547
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
3548
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
3549
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
3550
|
+
else:
|
3551
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
3552
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
3553
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3554
|
+
|
3555
|
+
|
3504
3556
|
def doListRejectedQuestion(args, parsed_globals):
|
3505
3557
|
g_param = parse_global_arg(parsed_globals)
|
3506
3558
|
|
@@ -4307,6 +4359,7 @@ ACTION_MAP = {
|
|
4307
4359
|
"ListModel": doListModel,
|
4308
4360
|
"GroupQA": doGroupQA,
|
4309
4361
|
"ListAttributeLabel": doListAttributeLabel,
|
4362
|
+
"DescribeSegments": doDescribeSegments,
|
4310
4363
|
"ListRejectedQuestion": doListRejectedQuestion,
|
4311
4364
|
"ListReleaseConfigPreview": doListReleaseConfigPreview,
|
4312
4365
|
"GetTaskStatus": doGetTaskStatus,
|
@@ -182,6 +182,13 @@
|
|
182
182
|
"output": "DescribeRobotBizIDByAppKeyResponse",
|
183
183
|
"status": "online"
|
184
184
|
},
|
185
|
+
"DescribeSegments": {
|
186
|
+
"document": "获取片段详情",
|
187
|
+
"input": "DescribeSegmentsRequest",
|
188
|
+
"name": "获取片段详情",
|
189
|
+
"output": "DescribeSegmentsResponse",
|
190
|
+
"status": "online"
|
191
|
+
},
|
185
192
|
"DescribeStorageCredential": {
|
186
193
|
"document": "获取文件上传临时密钥",
|
187
194
|
"input": "DescribeStorageCredentialRequest",
|
@@ -3428,6 +3435,52 @@
|
|
3428
3435
|
],
|
3429
3436
|
"type": "object"
|
3430
3437
|
},
|
3438
|
+
"DescribeSegmentsRequest": {
|
3439
|
+
"document": "DescribeSegments请求参数结构体",
|
3440
|
+
"members": [
|
3441
|
+
{
|
3442
|
+
"disabled": false,
|
3443
|
+
"document": "应用ID",
|
3444
|
+
"example": "无",
|
3445
|
+
"member": "string",
|
3446
|
+
"name": "BotBizId",
|
3447
|
+
"required": true,
|
3448
|
+
"type": "string"
|
3449
|
+
},
|
3450
|
+
{
|
3451
|
+
"disabled": false,
|
3452
|
+
"document": "文档ID",
|
3453
|
+
"example": "无",
|
3454
|
+
"member": "string",
|
3455
|
+
"name": "SegBizId",
|
3456
|
+
"required": false,
|
3457
|
+
"type": "list"
|
3458
|
+
}
|
3459
|
+
],
|
3460
|
+
"type": "object"
|
3461
|
+
},
|
3462
|
+
"DescribeSegmentsResponse": {
|
3463
|
+
"document": "DescribeSegments返回参数结构体",
|
3464
|
+
"members": [
|
3465
|
+
{
|
3466
|
+
"disabled": false,
|
3467
|
+
"document": "片段列表\n注意:此字段可能返回 null,表示取不到有效值。",
|
3468
|
+
"example": "无",
|
3469
|
+
"member": "DocSegment",
|
3470
|
+
"name": "List",
|
3471
|
+
"output_required": false,
|
3472
|
+
"type": "list",
|
3473
|
+
"value_allowed_null": true
|
3474
|
+
},
|
3475
|
+
{
|
3476
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
3477
|
+
"member": "string",
|
3478
|
+
"name": "RequestId",
|
3479
|
+
"type": "string"
|
3480
|
+
}
|
3481
|
+
],
|
3482
|
+
"type": "object"
|
3483
|
+
},
|
3431
3484
|
"DescribeStorageCredentialRequest": {
|
3432
3485
|
"document": "DescribeStorageCredential请求参数结构体",
|
3433
3486
|
"members": [
|
@@ -3646,6 +3699,112 @@
|
|
3646
3699
|
],
|
3647
3700
|
"type": "object"
|
3648
3701
|
},
|
3702
|
+
"DocSegment": {
|
3703
|
+
"document": "文档片段",
|
3704
|
+
"members": [
|
3705
|
+
{
|
3706
|
+
"disabled": false,
|
3707
|
+
"document": "片段ID\n注意:此字段可能返回 null,表示取不到有效值。",
|
3708
|
+
"example": "无",
|
3709
|
+
"member": "string",
|
3710
|
+
"name": "Id",
|
3711
|
+
"output_required": false,
|
3712
|
+
"type": "string",
|
3713
|
+
"value_allowed_null": true
|
3714
|
+
},
|
3715
|
+
{
|
3716
|
+
"disabled": false,
|
3717
|
+
"document": "业务ID\n注意:此字段可能返回 null,表示取不到有效值。",
|
3718
|
+
"example": "无",
|
3719
|
+
"member": "string",
|
3720
|
+
"name": "BusinessId",
|
3721
|
+
"output_required": false,
|
3722
|
+
"type": "string",
|
3723
|
+
"value_allowed_null": true
|
3724
|
+
},
|
3725
|
+
{
|
3726
|
+
"disabled": false,
|
3727
|
+
"document": "文件类型(markdown,word,txt)\n注意:此字段可能返回 null,表示取不到有效值。",
|
3728
|
+
"example": "无",
|
3729
|
+
"member": "string",
|
3730
|
+
"name": "FileType",
|
3731
|
+
"output_required": false,
|
3732
|
+
"type": "string",
|
3733
|
+
"value_allowed_null": true
|
3734
|
+
},
|
3735
|
+
{
|
3736
|
+
"disabled": false,
|
3737
|
+
"document": "文档切片类型(segment-文档切片 table-表格)\n注意:此字段可能返回 null,表示取不到有效值。",
|
3738
|
+
"example": "无",
|
3739
|
+
"member": "string",
|
3740
|
+
"name": "SegmentType",
|
3741
|
+
"output_required": false,
|
3742
|
+
"type": "string",
|
3743
|
+
"value_allowed_null": true
|
3744
|
+
},
|
3745
|
+
{
|
3746
|
+
"disabled": false,
|
3747
|
+
"document": "标题\n注意:此字段可能返回 null,表示取不到有效值。",
|
3748
|
+
"example": "无",
|
3749
|
+
"member": "string",
|
3750
|
+
"name": "Title",
|
3751
|
+
"output_required": false,
|
3752
|
+
"type": "string",
|
3753
|
+
"value_allowed_null": true
|
3754
|
+
},
|
3755
|
+
{
|
3756
|
+
"disabled": false,
|
3757
|
+
"document": "段落内容\n注意:此字段可能返回 null,表示取不到有效值。",
|
3758
|
+
"example": "无",
|
3759
|
+
"member": "string",
|
3760
|
+
"name": "PageContent",
|
3761
|
+
"output_required": false,
|
3762
|
+
"type": "string",
|
3763
|
+
"value_allowed_null": true
|
3764
|
+
},
|
3765
|
+
{
|
3766
|
+
"disabled": false,
|
3767
|
+
"document": "段落原文\n注意:此字段可能返回 null,表示取不到有效值。",
|
3768
|
+
"example": "无",
|
3769
|
+
"member": "string",
|
3770
|
+
"name": "OrgData",
|
3771
|
+
"output_required": false,
|
3772
|
+
"type": "string",
|
3773
|
+
"value_allowed_null": true
|
3774
|
+
},
|
3775
|
+
{
|
3776
|
+
"disabled": false,
|
3777
|
+
"document": "文章ID\n注意:此字段可能返回 null,表示取不到有效值。",
|
3778
|
+
"example": "无",
|
3779
|
+
"member": "string",
|
3780
|
+
"name": "DocId",
|
3781
|
+
"output_required": false,
|
3782
|
+
"type": "string",
|
3783
|
+
"value_allowed_null": true
|
3784
|
+
},
|
3785
|
+
{
|
3786
|
+
"disabled": false,
|
3787
|
+
"document": "文档业务ID\n注意:此字段可能返回 null,表示取不到有效值。",
|
3788
|
+
"example": "无",
|
3789
|
+
"member": "string",
|
3790
|
+
"name": "DocBizId",
|
3791
|
+
"output_required": false,
|
3792
|
+
"type": "string",
|
3793
|
+
"value_allowed_null": true
|
3794
|
+
},
|
3795
|
+
{
|
3796
|
+
"disabled": false,
|
3797
|
+
"document": "文档链接\n注意:此字段可能返回 null,表示取不到有效值。",
|
3798
|
+
"example": "无",
|
3799
|
+
"member": "string",
|
3800
|
+
"name": "DocUrl",
|
3801
|
+
"output_required": false,
|
3802
|
+
"type": "string",
|
3803
|
+
"value_allowed_null": true
|
3804
|
+
}
|
3805
|
+
],
|
3806
|
+
"usage": "out"
|
3807
|
+
},
|
3649
3808
|
"DocumentElement": {
|
3650
3809
|
"document": "文档元素字段",
|
3651
3810
|
"members": [
|
@@ -10008,7 +10167,7 @@
|
|
10008
10167
|
},
|
10009
10168
|
{
|
10010
10169
|
"disabled": false,
|
10011
|
-
"document": "文档操作类型:1
|
10170
|
+
"document": "文档操作类型:1:批量导入(批量导入问答对);2:文档导入(正常导入单个文档)",
|
10012
10171
|
"example": "无",
|
10013
10172
|
"member": "uint64",
|
10014
10173
|
"name": "Opt",
|
@@ -208,6 +208,14 @@
|
|
208
208
|
"title": "通过AppKey查询应用业务ID"
|
209
209
|
}
|
210
210
|
],
|
211
|
+
"DescribeSegments": [
|
212
|
+
{
|
213
|
+
"document": "片段请求",
|
214
|
+
"input": "POST / HTTP/1.1\nHost: lke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeSegments\n<公共请求参数>\n\n{\n \"BotBizId\": \"1771107658358063104\",\n \"SegBizId\": [\n \"1111\",\n \"2222\"\n ]\n}",
|
215
|
+
"output": "{\n \"Response\": {\n \"List\": [],\n \"RequestId\": \"83500528-9870-4c63-ad21-de5dc6d4a059\"\n }\n}",
|
216
|
+
"title": "片段请求"
|
217
|
+
}
|
218
|
+
],
|
211
219
|
"DescribeStorageCredential": [
|
212
220
|
{
|
213
221
|
"document": "",
|