tccli 3.0.1365.1__py2.py3-none-any.whl → 3.0.1367.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 (51) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/apm/v20210622/api.json +16 -4
  3. tccli/services/cdb/v20170320/api.json +13 -13
  4. tccli/services/cdn/v20180606/api.json +11 -3
  5. tccli/services/cfw/cfw_client.py +34 -193
  6. tccli/services/cfw/v20190904/api.json +21 -341
  7. tccli/services/cfw/v20190904/examples.json +2 -26
  8. tccli/services/chc/v20230418/api.json +1 -1
  9. tccli/services/cls/v20201016/api.json +11 -11
  10. tccli/services/cls/v20201016/examples.json +2 -2
  11. tccli/services/ctem/v20231128/api.json +5 -5
  12. tccli/services/cwp/v20180228/api.json +12 -12
  13. tccli/services/cwp/v20180228/examples.json +4 -4
  14. tccli/services/cynosdb/v20190107/api.json +1 -1
  15. tccli/services/cynosdb/v20190107/examples.json +1 -1
  16. tccli/services/dlc/v20210125/api.json +234 -15
  17. tccli/services/dlc/v20210125/examples.json +3 -3
  18. tccli/services/es/v20250101/api.json +6 -6
  19. tccli/services/es/v20250101/examples.json +8 -8
  20. tccli/services/ess/v20201111/api.json +8 -8
  21. tccli/services/ess/v20201111/examples.json +6 -0
  22. tccli/services/essbasic/v20210526/api.json +2 -2
  23. tccli/services/ims/v20201229/api.json +2 -2
  24. tccli/services/iotexplorer/v20190423/api.json +72 -2
  25. tccli/services/lke/v20231130/api.json +47 -4
  26. tccli/services/mongodb/v20190725/api.json +2 -2
  27. tccli/services/mongodb/v20190725/examples.json +1 -1
  28. tccli/services/ocr/v20181119/api.json +169 -123
  29. tccli/services/partners/v20180321/api.json +4 -4
  30. tccli/services/postgres/v20170312/api.json +20 -20
  31. tccli/services/postgres/v20170312/examples.json +2 -2
  32. tccli/services/sqlserver/v20180328/api.json +24 -24
  33. tccli/services/sqlserver/v20180328/examples.json +4 -4
  34. tccli/services/ssl/v20191205/api.json +1 -1
  35. tccli/services/tcbr/v20220217/api.json +114 -9
  36. tccli/services/tcr/v20190924/api.json +2 -2
  37. tccli/services/teo/v20220901/api.json +16 -16
  38. tccli/services/tione/v20211111/api.json +38 -38
  39. tccli/services/tione/v20211111/examples.json +1 -1
  40. tccli/services/tsf/tsf_client.py +159 -0
  41. tccli/services/tsf/v20180326/api.json +583 -0
  42. tccli/services/tsf/v20180326/examples.json +24 -0
  43. tccli/services/wedata/v20210820/api.json +161 -9
  44. tccli/services/wedata/v20210820/examples.json +3 -9
  45. tccli/services/wsa/v20250508/api.json +2 -2
  46. tccli/services/wsa/v20250508/examples.json +2 -2
  47. {tccli-3.0.1365.1.dist-info → tccli-3.0.1367.1.dist-info}/METADATA +2 -2
  48. {tccli-3.0.1365.1.dist-info → tccli-3.0.1367.1.dist-info}/RECORD +51 -51
  49. {tccli-3.0.1365.1.dist-info → tccli-3.0.1367.1.dist-info}/WHEEL +0 -0
  50. {tccli-3.0.1365.1.dist-info → tccli-3.0.1367.1.dist-info}/entry_points.txt +0 -0
  51. {tccli-3.0.1365.1.dist-info → tccli-3.0.1367.1.dist-info}/license_files/LICENSE +0 -0
@@ -2115,7 +2115,7 @@
2115
2115
  {
2116
2116
  "disabled": false,
2117
2117
  "document": "资源配置,需填写对应算力规格ID和节点数量,算力规格ID查询接口为DescribeBillingSpecsPrice,eg:[{\"Role\":\"WORKER\", \"InstanceType\": \"TI.S.MEDIUM.POST\", \"InstanceNum\": 1}]",
2118
- "example": "[ { \"Role\": \"WORKER\", \"Cpu\": 1000, \"Memory\": 1024, \"GpuType\": \"\", \"Gpu\": 0, \"InstanceNum\": 1 } ]",
2118
+ "example": "",
2119
2119
  "member": "ResourceConfigInfo",
2120
2120
  "name": "ResourceConfigInfos",
2121
2121
  "required": true,
@@ -2151,7 +2151,7 @@
2151
2151
  {
2152
2152
  "disabled": false,
2153
2153
  "document": "预付费专用资源组ID,通过DescribeBillingResourceGroups接口查询",
2154
- "example": "test",
2154
+ "example": "rsg-1368bcxs",
2155
2155
  "member": "string",
2156
2156
  "name": "ResourceGroupId",
2157
2157
  "required": false,
@@ -2160,7 +2160,7 @@
2160
2160
  {
2161
2161
  "disabled": false,
2162
2162
  "document": "标签配置",
2163
- "example": "[ { \"TagKey\": \"test_key\", \"TagValue\": \"test_value\" } ]",
2163
+ "example": "",
2164
2164
  "member": "Tag",
2165
2165
  "name": "Tags",
2166
2166
  "required": false,
@@ -2169,7 +2169,7 @@
2169
2169
  {
2170
2170
  "disabled": false,
2171
2171
  "document": "自定义镜像信息",
2172
- "example": "{ \"ImageType\": \"TCR\", \"ImageUrl\": \"tione-live.tencentcloudcr.com/llm_picture/llm_picture_image:v1\", \"RegistryRegion\": \"ap-shanghai\", \"RegistryId\": \"tcr-f40c5gin\" }",
2172
+ "example": "",
2173
2173
  "member": "ImageInfo",
2174
2174
  "name": "ImageInfo",
2175
2175
  "required": false,
@@ -2178,7 +2178,7 @@
2178
2178
  {
2179
2179
  "disabled": false,
2180
2180
  "document": "COS代码包路径",
2181
- "example": "{ \"Bucket\": \"\", \"Region\": \"\", \"Paths\": [] }",
2181
+ "example": "",
2182
2182
  "member": "CosPathInfo",
2183
2183
  "name": "CodePackagePath",
2184
2184
  "required": false,
@@ -2187,7 +2187,7 @@
2187
2187
  {
2188
2188
  "disabled": false,
2189
2189
  "document": "任务的启动命令,按任务训练模式输入,如遇特殊字符导致配置失败,可使用EncodedStartCmdInfo参数",
2190
- "example": "{\"StartCmd\":\"bash start.sh\"}",
2190
+ "example": "",
2191
2191
  "member": "StartCmdInfo",
2192
2192
  "name": "StartCmdInfo",
2193
2193
  "required": false,
@@ -2205,7 +2205,7 @@
2205
2205
  {
2206
2206
  "disabled": false,
2207
2207
  "document": "数据配置,依赖DataSource字段,数量不超过10个",
2208
- "example": "[ { \"DataSourceType\": \"CFS\", \"DataSourceUsage\": \"\", \"MappingPath\": \"/opt/ml/input/data/\", \"CFSSource\": { \"Id\": \"cfs-2v0cr9jr\", \"Path\": \"/\" } } ]",
2208
+ "example": "",
2209
2209
  "member": "DataConfig",
2210
2210
  "name": "DataConfigs",
2211
2211
  "required": false,
@@ -2232,7 +2232,7 @@
2232
2232
  {
2233
2233
  "disabled": false,
2234
2234
  "document": "COS训练输出路径",
2235
- "example": "{ \"Bucket\": \"\", \"Region\": \"\", \"Paths\": [] }",
2235
+ "example": "",
2236
2236
  "member": "CosPathInfo",
2237
2237
  "name": "Output",
2238
2238
  "required": false,
@@ -2241,7 +2241,7 @@
2241
2241
  {
2242
2242
  "disabled": false,
2243
2243
  "document": "CLS日志配置",
2244
- "example": "{ \"LogsetId\": \"6c517622-a734-4d99-bfb8-1008c46d1108\", \"TopicId\": \"3cfb6994-e3e9-4085-a624-a654245de6c5\" }",
2244
+ "example": "",
2245
2245
  "member": "LogConfig",
2246
2246
  "name": "LogConfig",
2247
2247
  "required": false,
@@ -2286,7 +2286,7 @@
2286
2286
  {
2287
2287
  "disabled": false,
2288
2288
  "document": "回调地址,用于创建/启动/停止训练任务的异步回调。回调格式&内容详见:[[TI-ONE接口回调说明]](https://cloud.tencent.com/document/product/851/84292)",
2289
- "example": "",
2289
+ "example": "http://callback.url",
2290
2290
  "member": "string",
2291
2291
  "name": "CallbackUrl",
2292
2292
  "required": false,
@@ -2295,7 +2295,7 @@
2295
2295
  {
2296
2296
  "disabled": false,
2297
2297
  "document": "编码后的任务启动命令,与StartCmdInfo同时配置时,仅当前参数生效",
2298
- "example": "{ \"StartCmdInfo\": \"eyJXb3JrZXJTdGFydENtZCI6InNsZWVwIDEwMDAifQ==\" }",
2298
+ "example": "",
2299
2299
  "member": "EncodedStartCmdInfo",
2300
2300
  "name": "EncodedStartCmdInfo",
2301
2301
  "required": false,
@@ -2304,7 +2304,7 @@
2304
2304
  {
2305
2305
  "disabled": false,
2306
2306
  "document": "代码仓库配置",
2307
- "example": "[{\"Id\":\"cr-1000669213287070080\",\"TargetPath\":\"/opt/ml/code\"}]",
2307
+ "example": "",
2308
2308
  "member": "CodeRepoConfig",
2309
2309
  "name": "CodeRepos",
2310
2310
  "required": false,
@@ -2319,7 +2319,7 @@
2319
2319
  {
2320
2320
  "disabled": false,
2321
2321
  "document": "训练任务ID",
2322
- "example": "12312313",
2322
+ "example": "train-13766824497408",
2323
2323
  "member": "string",
2324
2324
  "name": "Id",
2325
2325
  "output_required": true,
@@ -12122,7 +12122,7 @@
12122
12122
  {
12123
12123
  "disabled": false,
12124
12124
  "document": "训练任务ID",
12125
- "example": "train-123311",
12125
+ "example": "train-2872332131",
12126
12126
  "member": "string",
12127
12127
  "name": "Id",
12128
12128
  "output_required": true,
@@ -12132,7 +12132,7 @@
12132
12132
  {
12133
12133
  "disabled": false,
12134
12134
  "document": "训练任务名称",
12135
- "example": "test",
12135
+ "example": "lora精调",
12136
12136
  "member": "string",
12137
12137
  "name": "Name",
12138
12138
  "output_required": true,
@@ -12212,7 +12212,7 @@
12212
12212
  {
12213
12213
  "disabled": false,
12214
12214
  "document": "计费模式",
12215
- "example": "",
12215
+ "example": "POSTPAID_BY_HOUR",
12216
12216
  "member": "string",
12217
12217
  "name": "ChargeType",
12218
12218
  "output_required": true,
@@ -12222,7 +12222,7 @@
12222
12222
  {
12223
12223
  "disabled": false,
12224
12224
  "document": "预付费专用资源组\n注意:此字段可能返回 null,表示取不到有效值。",
12225
- "example": "",
12225
+ "example": "rsg-21husx",
12226
12226
  "member": "string",
12227
12227
  "name": "ResourceGroupId",
12228
12228
  "output_required": true,
@@ -12232,7 +12232,7 @@
12232
12232
  {
12233
12233
  "disabled": false,
12234
12234
  "document": "资源配置",
12235
- "example": "[{\"Role\":\"WORKER\",\"Cpu\":1000,\"Memory\":1024,\"GpuType\":\"\",\"Gpu\":0,\"InstanceType\":\"\",\"InstanceTypeAlias\":\"\",\"InstanceNum\":1,\"RDMAConfig\":{\"Enable\":false},\"ExtendedResourceList\":{},\"ArchType\":\"\"}]",
12235
+ "example": "",
12236
12236
  "member": "ResourceConfigInfo",
12237
12237
  "name": "ResourceConfigInfos",
12238
12238
  "output_required": true,
@@ -12242,7 +12242,7 @@
12242
12242
  {
12243
12243
  "disabled": false,
12244
12244
  "document": "标签\n注意:此字段可能返回 null,表示取不到有效值。",
12245
- "example": "[\"test\":\"test\"]",
12245
+ "example": "",
12246
12246
  "member": "Tag",
12247
12247
  "name": "Tags",
12248
12248
  "output_required": true,
@@ -12252,7 +12252,7 @@
12252
12252
  {
12253
12253
  "disabled": false,
12254
12254
  "document": "训练模式,eg:PS_WORKER、DDP、MPI、HOROVOD\n注意:此字段可能返回 null,表示取不到有效值。",
12255
- "example": "",
12255
+ "example": "DDP",
12256
12256
  "member": "string",
12257
12257
  "name": "TrainingMode",
12258
12258
  "output_required": true,
@@ -12292,7 +12292,7 @@
12292
12292
  {
12293
12293
  "disabled": false,
12294
12294
  "document": "数据配置\n注意:此字段可能返回 null,表示取不到有效值。",
12295
- "example": "[{\"MappingPath\":\"/opt/ml/output/data\",\"DataSourceType\":\"CFS\",\"DataSourceUsage\":\"OUTPUT\",\"CFSSource\":{\"Id\":\"cfs-123abcd\",\"Path\":\"/exp1/output\"}}]",
12295
+ "example": "",
12296
12296
  "member": "DataConfig",
12297
12297
  "name": "DataConfigs",
12298
12298
  "output_required": true,
@@ -12302,7 +12302,7 @@
12302
12302
  {
12303
12303
  "disabled": false,
12304
12304
  "document": "调优参数\n注意:此字段可能返回 null,表示取不到有效值。",
12305
- "example": "",
12305
+ "example": "{\\n \\\"Epoch\\\": \\\"2\\\",\\n \\\"BatchSize\\\": \\\"1\\\"\\n}",
12306
12306
  "member": "string",
12307
12307
  "name": "TuningParameters",
12308
12308
  "output_required": true,
@@ -12342,7 +12342,7 @@
12342
12342
  {
12343
12343
  "disabled": false,
12344
12344
  "document": "VPC ID\n注意:此字段可能返回 null,表示取不到有效值。",
12345
- "example": "",
12345
+ "example": "vpc-dk01hv",
12346
12346
  "member": "string",
12347
12347
  "name": "VpcId",
12348
12348
  "output_required": true,
@@ -12352,7 +12352,7 @@
12352
12352
  {
12353
12353
  "disabled": false,
12354
12354
  "document": "子网ID\n注意:此字段可能返回 null,表示取不到有效值。",
12355
- "example": "",
12355
+ "example": "subnet-rd571",
12356
12356
  "member": "string",
12357
12357
  "name": "SubnetId",
12358
12358
  "output_required": true,
@@ -12382,7 +12382,7 @@
12382
12382
  {
12383
12383
  "disabled": false,
12384
12384
  "document": "创建时间",
12385
- "example": "",
12385
+ "example": "2025-08-01T10:59:53+08",
12386
12386
  "member": "string",
12387
12387
  "name": "CreateTime",
12388
12388
  "output_required": true,
@@ -12392,7 +12392,7 @@
12392
12392
  {
12393
12393
  "disabled": false,
12394
12394
  "document": "训练开始时间\n注意:此字段可能返回 null,表示取不到有效值。",
12395
- "example": "",
12395
+ "example": "2025-08-01T10:59:53+08",
12396
12396
  "member": "string",
12397
12397
  "name": "StartTime",
12398
12398
  "output_required": true,
@@ -12402,7 +12402,7 @@
12402
12402
  {
12403
12403
  "disabled": false,
12404
12404
  "document": "计费状态,eg:BILLING计费中,ARREARS_STOP欠费停止,NOT_BILLING不在计费中",
12405
- "example": "",
12405
+ "example": "BILLING",
12406
12406
  "member": "string",
12407
12407
  "name": "ChargeStatus",
12408
12408
  "output_required": true,
@@ -12412,7 +12412,7 @@
12412
12412
  {
12413
12413
  "disabled": false,
12414
12414
  "document": "最近一次实例ID\n注意:此字段可能返回 null,表示取不到有效值。",
12415
- "example": "567233",
12415
+ "example": "train-1376681210928497408-agjc33ds0q0",
12416
12416
  "member": "string",
12417
12417
  "name": "LatestInstanceId",
12418
12418
  "output_required": true,
@@ -12422,7 +12422,7 @@
12422
12422
  {
12423
12423
  "disabled": false,
12424
12424
  "document": "TensorBoard ID\n注意:此字段可能返回 null,表示取不到有效值。",
12425
- "example": "tensorborad-123311",
12425
+ "example": "tb-273hcds7",
12426
12426
  "member": "string",
12427
12427
  "name": "TensorBoardId",
12428
12428
  "output_required": true,
@@ -12432,7 +12432,7 @@
12432
12432
  {
12433
12433
  "disabled": false,
12434
12434
  "document": "备注\n注意:此字段可能返回 null,表示取不到有效值。",
12435
- "example": "",
12435
+ "example": "Remark",
12436
12436
  "member": "string",
12437
12437
  "name": "Remark",
12438
12438
  "output_required": true,
@@ -12442,7 +12442,7 @@
12442
12442
  {
12443
12443
  "disabled": false,
12444
12444
  "document": "失败原因\n注意:此字段可能返回 null,表示取不到有效值。",
12445
- "example": "",
12445
+ "example": "User Stop",
12446
12446
  "member": "string",
12447
12447
  "name": "FailureReason",
12448
12448
  "output_required": true,
@@ -12452,7 +12452,7 @@
12452
12452
  {
12453
12453
  "disabled": false,
12454
12454
  "document": "更新时间",
12455
- "example": "",
12455
+ "example": "2025-08-01T10:59:53+08",
12456
12456
  "member": "string",
12457
12457
  "name": "UpdateTime",
12458
12458
  "output_required": true,
@@ -12462,7 +12462,7 @@
12462
12462
  {
12463
12463
  "disabled": false,
12464
12464
  "document": "训练结束时间\n注意:此字段可能返回 null,表示取不到有效值。",
12465
- "example": "",
12465
+ "example": "2025-08-01T10:59:53+08",
12466
12466
  "member": "string",
12467
12467
  "name": "EndTime",
12468
12468
  "output_required": true,
@@ -12482,7 +12482,7 @@
12482
12482
  {
12483
12483
  "disabled": false,
12484
12484
  "document": "预付费专用资源组名称\n注意:此字段可能返回 null,表示取不到有效值。",
12485
- "example": "",
12485
+ "example": "测试资源组",
12486
12486
  "member": "string",
12487
12487
  "name": "ResourceGroupName",
12488
12488
  "output_required": true,
@@ -12492,7 +12492,7 @@
12492
12492
  {
12493
12493
  "disabled": false,
12494
12494
  "document": "任务信息\n注意:此字段可能返回 null,表示取不到有效值。",
12495
- "example": "",
12495
+ "example": "task message",
12496
12496
  "member": "string",
12497
12497
  "name": "Message",
12498
12498
  "output_required": true,
@@ -12502,7 +12502,7 @@
12502
12502
  {
12503
12503
  "disabled": false,
12504
12504
  "document": "任务状态,eg:STARTING启动中、RUNNING运行中、STOPPING停止中、STOPPED已停止、FAILED异常、SUCCEED已完成",
12505
- "example": "",
12505
+ "example": "RUNNING",
12506
12506
  "member": "string",
12507
12507
  "name": "Status",
12508
12508
  "output_required": true,
@@ -12512,7 +12512,7 @@
12512
12512
  {
12513
12513
  "disabled": false,
12514
12514
  "document": "回调地址\n注意:此字段可能返回 null,表示取不到有效值。",
12515
- "example": "",
12515
+ "example": "http://callback.url",
12516
12516
  "member": "string",
12517
12517
  "name": "CallbackUrl",
12518
12518
  "output_required": true,
@@ -12522,7 +12522,7 @@
12522
12522
  {
12523
12523
  "disabled": false,
12524
12524
  "document": "任务关联的代码仓库配置",
12525
- "example": "[{\"Id\":\"cr-1000669213287070080\",\"TargetPath\":\"/opt/ml/code\"}]\t",
12525
+ "example": "",
12526
12526
  "member": "CodeRepoConfig",
12527
12527
  "name": "CodeRepos",
12528
12528
  "output_required": false,
@@ -59,7 +59,7 @@
59
59
  "CreateTrainingTask": [
60
60
  {
61
61
  "document": "创建训练任务",
62
- "input": "POST / HTTP/1.1\nHost: tione.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateTrainingTask\n<公共请求参数>\n\n{\n \"Name\": \"test\",\n \"FrameworkName\": \"PYTORCH\",\n \"FrameworkEnvironment\": \"tilearn-llm1.0-torch2.1-angel-vllm1.0-py3.10-cuda12.1-gpu\",\n \"TrainingMode\": \"DDP\",\n \"ChargeType\": \"PREPAID\",\n \"ResourceConfigInfos\": [\n {\n \"Role\": \"WORKER\",\n \"Cpu\": 1000,\n \"Memory\": 1024,\n \"GpuType\": \"\",\n \"Gpu\": 0,\n \"InstanceType\": \"\",\n \"InstanceTypeAlias\": \"\",\n \"InstanceNum\": 1\n }\n ],\n \"ResourceGroupId\": \"ersg-rf6p8zb8\",\n \"Tags\": [],\n \"Remark\": \"\",\n \"CodePackagePath\": {\n \"Bucket\": \"test-gz-1256580188\",\n \"Region\": \"ap-guangzhou\",\n \"Paths\": [\n \"test/\"\n ]\n },\n \"EncodedStartCmdInfo\": {\n \"StartCmdInfo\": \"eyJTdGFydENtZCI6IiIsIlBzU3RhcnRDbWQiOiIiLCJXb3JrZXJTdGFydENtZCI6InNsZWVwIDEwIn0=\"\n },\n \"DataConfigs\": [\n {\n \"DataSourceType\": \"CFS\",\n \"MappingPath\": \"/opt/ml/input/data/\",\n \"CFSSource\": {\n \"Id\": \"cfs-pchxhlg9\",\n \"Path\": \"/bin\"\n }\n }\n ],\n \"TuningParameters\": \"{\\\"test\\\":\\\"test\\\"}\",\n \"Output\": {\n \"Bucket\": \"test-gz-1256580188\",\n \"Region\": \"ap-guangzhou\",\n \"Paths\": [\n \"cos_test/\"\n ]\n },\n \"LogEnable\": false,\n \"VpcId\": \"vpc-a26qv3af\",\n \"SubnetId\": \"subnet-m7xhqcyc\"\n}",
62
+ "input": "POST / HTTP/1.1\nHost: tione.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateTrainingTask\n<公共请求参数>\n\n{\n \"Name\": \"zhangsan-lora\",\n \"FrameworkName\": \"PYTORCH\",\n \"FrameworkEnvironment\": \"tilearn-llm1.0-torch2.1-angel-vllm1.0-py3.10-cuda12.1-gpu\",\n \"TrainingMode\": \"DDP\",\n \"ChargeType\": \"PREPAID\",\n \"ResourceConfigInfos\": [\n {\n \"Role\": \"WORKER\",\n \"Cpu\": 1000,\n \"Memory\": 1024,\n \"GpuType\": \"\",\n \"Gpu\": 0,\n \"InstanceType\": \"\",\n \"InstanceTypeAlias\": \"\",\n \"InstanceNum\": 1\n }\n ],\n \"ResourceGroupId\": \"ersg-rf6p8zb8\",\n \"Tags\": [],\n \"Remark\": \"\",\n \"CodePackagePath\": {\n \"Bucket\": \"test-gz-1256580188\",\n \"Region\": \"ap-guangzhou\",\n \"Paths\": [\n \"test/\"\n ]\n },\n \"EncodedStartCmdInfo\": {\n \"StartCmdInfo\": \"eyJTdGFydENtZCI6IiIsIlBzU3RhcnRDbWQiOiIiLCJXb3JrZXJTdGFydENtZCI6InNsZWVwIDEwIn0=\"\n },\n \"DataConfigs\": [\n {\n \"DataSourceType\": \"CFS\",\n \"MappingPath\": \"/opt/ml/input/data/\",\n \"CFSSource\": {\n \"Id\": \"cfs-pchxhlg9\",\n \"Path\": \"/bin\"\n }\n }\n ],\n \"TuningParameters\": \"{\\\"test\\\":\\\"test\\\"}\",\n \"Output\": {\n \"Bucket\": \"test-gz-1256580188\",\n \"Region\": \"ap-guangzhou\",\n \"Paths\": [\n \"cos_test/\"\n ]\n },\n \"LogEnable\": false,\n \"VpcId\": \"vpc-a26qv3af\",\n \"SubnetId\": \"subnet-m7xhqcyc\"\n}",
63
63
  "output": "{\n \"Response\": {\n \"Id\": \"train-1208038387393233920\",\n \"RequestId\": \"0161f5a9-3f60-4e39-86ab-fb87b225964d\"\n }\n}",
64
64
  "title": "创建训练任务"
65
65
  }
@@ -4437,6 +4437,58 @@ def doCreatePublicConfigWithDetailResp(args, parsed_globals):
4437
4437
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4438
4438
 
4439
4439
 
4440
+ def doDescribeLicenses(args, parsed_globals):
4441
+ g_param = parse_global_arg(parsed_globals)
4442
+
4443
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
4444
+ cred = credential.CVMRoleCredential()
4445
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
4446
+ cred = credential.STSAssumeRoleCredential(
4447
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
4448
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
4449
+ )
4450
+ 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):
4451
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
4452
+ else:
4453
+ cred = credential.Credential(
4454
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
4455
+ )
4456
+ http_profile = HttpProfile(
4457
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
4458
+ reqMethod="POST",
4459
+ endpoint=g_param[OptionsDefine.Endpoint],
4460
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
4461
+ )
4462
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
4463
+ if g_param[OptionsDefine.Language]:
4464
+ profile.language = g_param[OptionsDefine.Language]
4465
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
4466
+ client = mod.TsfClient(cred, g_param[OptionsDefine.Region], profile)
4467
+ client._sdkVersion += ("_CLI_" + __version__)
4468
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
4469
+ model = models.DescribeLicensesRequest()
4470
+ model.from_json_string(json.dumps(args))
4471
+ start_time = time.time()
4472
+ while True:
4473
+ rsp = client.DescribeLicenses(model)
4474
+ result = rsp.to_json_string()
4475
+ try:
4476
+ json_obj = json.loads(result)
4477
+ except TypeError as e:
4478
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
4479
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
4480
+ break
4481
+ cur_time = time.time()
4482
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
4483
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
4484
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
4485
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
4486
+ else:
4487
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
4488
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
4489
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
4490
+
4491
+
4440
4492
  def doCreateUnitRuleWithDetailResp(args, parsed_globals):
4441
4493
  g_param = parse_global_arg(parsed_globals)
4442
4494
 
@@ -9793,6 +9845,58 @@ def doDeployGroup(args, parsed_globals):
9793
9845
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
9794
9846
 
9795
9847
 
9848
+ def doDescribeLogCapacity(args, parsed_globals):
9849
+ g_param = parse_global_arg(parsed_globals)
9850
+
9851
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
9852
+ cred = credential.CVMRoleCredential()
9853
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
9854
+ cred = credential.STSAssumeRoleCredential(
9855
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
9856
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
9857
+ )
9858
+ 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):
9859
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
9860
+ else:
9861
+ cred = credential.Credential(
9862
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
9863
+ )
9864
+ http_profile = HttpProfile(
9865
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
9866
+ reqMethod="POST",
9867
+ endpoint=g_param[OptionsDefine.Endpoint],
9868
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
9869
+ )
9870
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
9871
+ if g_param[OptionsDefine.Language]:
9872
+ profile.language = g_param[OptionsDefine.Language]
9873
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
9874
+ client = mod.TsfClient(cred, g_param[OptionsDefine.Region], profile)
9875
+ client._sdkVersion += ("_CLI_" + __version__)
9876
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
9877
+ model = models.DescribeLogCapacityRequest()
9878
+ model.from_json_string(json.dumps(args))
9879
+ start_time = time.time()
9880
+ while True:
9881
+ rsp = client.DescribeLogCapacity(model)
9882
+ result = rsp.to_json_string()
9883
+ try:
9884
+ json_obj = json.loads(result)
9885
+ except TypeError as e:
9886
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
9887
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
9888
+ break
9889
+ cur_time = time.time()
9890
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
9891
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
9892
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
9893
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
9894
+ else:
9895
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
9896
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
9897
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
9898
+
9899
+
9796
9900
  def doReleasePublicConfig(args, parsed_globals):
9797
9901
  g_param = parse_global_arg(parsed_globals)
9798
9902
 
@@ -11665,6 +11769,58 @@ def doDisableLaneRule(args, parsed_globals):
11665
11769
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
11666
11770
 
11667
11771
 
11772
+ def doDescribeResourceConfig(args, parsed_globals):
11773
+ g_param = parse_global_arg(parsed_globals)
11774
+
11775
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
11776
+ cred = credential.CVMRoleCredential()
11777
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
11778
+ cred = credential.STSAssumeRoleCredential(
11779
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
11780
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
11781
+ )
11782
+ 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):
11783
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
11784
+ else:
11785
+ cred = credential.Credential(
11786
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
11787
+ )
11788
+ http_profile = HttpProfile(
11789
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
11790
+ reqMethod="POST",
11791
+ endpoint=g_param[OptionsDefine.Endpoint],
11792
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
11793
+ )
11794
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
11795
+ if g_param[OptionsDefine.Language]:
11796
+ profile.language = g_param[OptionsDefine.Language]
11797
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
11798
+ client = mod.TsfClient(cred, g_param[OptionsDefine.Region], profile)
11799
+ client._sdkVersion += ("_CLI_" + __version__)
11800
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
11801
+ model = models.DescribeResourceConfigRequest()
11802
+ model.from_json_string(json.dumps(args))
11803
+ start_time = time.time()
11804
+ while True:
11805
+ rsp = client.DescribeResourceConfig(model)
11806
+ result = rsp.to_json_string()
11807
+ try:
11808
+ json_obj = json.loads(result)
11809
+ except TypeError as e:
11810
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
11811
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
11812
+ break
11813
+ cur_time = time.time()
11814
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
11815
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
11816
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
11817
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
11818
+ else:
11819
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
11820
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
11821
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
11822
+
11823
+
11668
11824
  CLIENT_MAP = {
11669
11825
  "v20180326": tsf_client_v20180326,
11670
11826
 
@@ -11761,6 +11917,7 @@ ACTION_MAP = {
11761
11917
  "DescribeClusters": doDescribeClusters,
11762
11918
  "DescribeBusinessLogConfigs": doDescribeBusinessLogConfigs,
11763
11919
  "CreatePublicConfigWithDetailResp": doCreatePublicConfigWithDetailResp,
11920
+ "DescribeLicenses": doDescribeLicenses,
11764
11921
  "CreateUnitRuleWithDetailResp": doCreateUnitRuleWithDetailResp,
11765
11922
  "ReleaseConfig": doReleaseConfig,
11766
11923
  "DescribePublicConfigReleases": doDescribePublicConfigReleases,
@@ -11864,6 +12021,7 @@ ACTION_MAP = {
11864
12021
  "DescribeTaskRecords": doDescribeTaskRecords,
11865
12022
  "DescribeBasicResourceUsage": doDescribeBasicResourceUsage,
11866
12023
  "DeployGroup": doDeployGroup,
12024
+ "DescribeLogCapacity": doDescribeLogCapacity,
11867
12025
  "ReleasePublicConfig": doReleasePublicConfig,
11868
12026
  "DeleteUnitNamespaces": doDeleteUnitNamespaces,
11869
12027
  "DescribeInstances": doDescribeInstances,
@@ -11900,6 +12058,7 @@ ACTION_MAP = {
11900
12058
  "StartGroup": doStartGroup,
11901
12059
  "ModifyContainerGroup": doModifyContainerGroup,
11902
12060
  "DisableLaneRule": doDisableLaneRule,
12061
+ "DescribeResourceConfig": doDescribeResourceConfig,
11903
12062
 
11904
12063
  }
11905
12064