tccli 3.0.1135.1__py2.py3-none-any.whl → 3.0.1137.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/command.py +4 -1
- tccli/help_command.py +4 -1
- tccli/services/__init__.py +3 -0
- tccli/services/asr/asr_client.py +53 -0
- tccli/services/asr/v20190614/api.json +193 -1
- tccli/services/asr/v20190614/examples.json +8 -0
- tccli/services/batch/v20170312/api.json +8 -5
- tccli/services/batch/v20170312/examples.json +1 -1
- tccli/services/cdb/v20170320/api.json +3 -3
- tccli/services/ckafka/v20190819/api.json +1 -1
- tccli/services/cls/v20201016/api.json +93 -0
- tccli/services/cwp/cwp_client.py +0 -53
- tccli/services/cwp/v20180228/api.json +0 -43
- tccli/services/cwp/v20180228/examples.json +0 -8
- tccli/services/cynosdb/v20190107/api.json +10 -0
- tccli/services/dlc/dlc_client.py +53 -0
- tccli/services/dlc/v20210125/api.json +157 -23
- tccli/services/dlc/v20210125/examples.json +14 -6
- tccli/services/dsgc/v20190723/api.json +35 -35
- tccli/services/dts/v20211206/api.json +3 -3
- tccli/services/eiam/v20210420/api.json +4 -4
- tccli/services/eiam/v20210420/examples.json +4 -4
- tccli/services/ess/v20201111/api.json +1 -1
- tccli/services/essbasic/v20210526/api.json +4 -4
- tccli/services/faceid/v20180301/api.json +1 -1
- tccli/services/ioa/ioa_client.py +159 -0
- tccli/services/ioa/v20220601/api.json +897 -80
- tccli/services/ioa/v20220601/examples.json +24 -0
- tccli/services/iotexplorer/iotexplorer_client.py +231 -19
- tccli/services/iotexplorer/v20190423/api.json +332 -0
- tccli/services/iotexplorer/v20190423/examples.json +32 -0
- tccli/services/lighthouse/v20200324/api.json +14 -14
- tccli/services/lighthouse/v20200324/examples.json +7 -7
- tccli/services/live/v20180801/api.json +12 -6
- tccli/services/lke/lke_client.py +175 -16
- tccli/services/lke/v20231130/api.json +429 -4
- tccli/services/lke/v20231130/examples.json +24 -0
- tccli/services/ocr/v20181119/api.json +3 -3
- tccli/services/partners/v20180321/api.json +26 -16
- tccli/services/tcr/v20190924/api.json +57 -35
- tccli/services/tcr/v20190924/examples.json +4 -4
- tccli/services/tcss/v20201101/api.json +123 -13
- tccli/services/tcss/v20201101/examples.json +3 -3
- tccli/services/tdmq/tdmq_client.py +53 -0
- tccli/services/tdmq/v20200217/api.json +301 -0
- tccli/services/tdmq/v20200217/examples.json +8 -0
- tccli/services/tem/v20210701/api.json +8 -5
- tccli/services/tem/v20210701/examples.json +2 -2
- tccli/services/tke/v20180525/api.json +13 -3
- tccli/services/trocket/trocket_client.py +65 -12
- tccli/services/trocket/v20230308/api.json +196 -0
- tccli/services/trocket/v20230308/examples.json +8 -0
- tccli/services/trtc/v20190722/api.json +45 -63
- tccli/services/tsi/__init__.py +4 -0
- tccli/services/tsi/tsi_client.py +301 -0
- tccli/services/tsi/v20210325/api.json +373 -0
- tccli/services/tsi/v20210325/examples.json +29 -0
- tccli/services/tts/v20190823/api.json +2 -2
- tccli/services/vpc/v20170312/api.json +36 -16
- tccli/services/vpc/v20170312/examples.json +9 -3
- tccli/services/waf/v20180125/api.json +70 -0
- tccli/services/waf/v20180125/examples.json +8 -0
- tccli/services/waf/waf_client.py +53 -0
- tccli/services/wedata/v20210820/api.json +377 -0
- tccli/services/wedata/v20210820/examples.json +8 -0
- tccli/services/wedata/wedata_client.py +61 -8
- {tccli-3.0.1135.1.dist-info → tccli-3.0.1137.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1135.1.dist-info → tccli-3.0.1137.1.dist-info}/RECORD +72 -68
- {tccli-3.0.1135.1.dist-info → tccli-3.0.1137.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1135.1.dist-info → tccli-3.0.1137.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1135.1.dist-info → tccli-3.0.1137.1.dist-info}/license_files/LICENSE +0 -0
@@ -1553,6 +1553,13 @@
|
|
1553
1553
|
"name": "开发空间-保存任务信息",
|
1554
1554
|
"output": "UploadContentResponse",
|
1555
1555
|
"status": "online"
|
1556
|
+
},
|
1557
|
+
"UploadResource": {
|
1558
|
+
"document": "资源管理-上传资源",
|
1559
|
+
"input": "UploadResourceRequest",
|
1560
|
+
"name": "【资源管理】上传资源",
|
1561
|
+
"output": "UploadResourceResponse",
|
1562
|
+
"status": "online"
|
1556
1563
|
}
|
1557
1564
|
},
|
1558
1565
|
"metadata": {
|
@@ -40211,6 +40218,376 @@
|
|
40211
40218
|
],
|
40212
40219
|
"type": "object"
|
40213
40220
|
},
|
40221
|
+
"UploadResourceRequest": {
|
40222
|
+
"document": "UploadResource请求参数结构体",
|
40223
|
+
"members": [
|
40224
|
+
{
|
40225
|
+
"disabled": false,
|
40226
|
+
"document": "资源上传请求信息",
|
40227
|
+
"example": "无",
|
40228
|
+
"member": "UploadResourceRequestInfo",
|
40229
|
+
"name": "UploadResourceRequestInfo",
|
40230
|
+
"required": false,
|
40231
|
+
"type": "object"
|
40232
|
+
},
|
40233
|
+
{
|
40234
|
+
"disabled": false,
|
40235
|
+
"document": "项目id",
|
40236
|
+
"example": "无",
|
40237
|
+
"member": "string",
|
40238
|
+
"name": "ProjectId",
|
40239
|
+
"required": false,
|
40240
|
+
"type": "string"
|
40241
|
+
}
|
40242
|
+
],
|
40243
|
+
"type": "object"
|
40244
|
+
},
|
40245
|
+
"UploadResourceRequestInfo": {
|
40246
|
+
"document": "资管管理-上传资源请求",
|
40247
|
+
"members": [
|
40248
|
+
{
|
40249
|
+
"disabled": false,
|
40250
|
+
"document": "项目id",
|
40251
|
+
"example": "无",
|
40252
|
+
"member": "string",
|
40253
|
+
"name": "ProjectId",
|
40254
|
+
"required": true,
|
40255
|
+
"type": "string"
|
40256
|
+
},
|
40257
|
+
{
|
40258
|
+
"disabled": false,
|
40259
|
+
"document": "资源路径",
|
40260
|
+
"example": "无",
|
40261
|
+
"member": "string",
|
40262
|
+
"name": "FilePath",
|
40263
|
+
"required": true,
|
40264
|
+
"type": "string"
|
40265
|
+
},
|
40266
|
+
{
|
40267
|
+
"disabled": false,
|
40268
|
+
"document": "桶名称",
|
40269
|
+
"example": "无",
|
40270
|
+
"member": "string",
|
40271
|
+
"name": "BucketName",
|
40272
|
+
"required": true,
|
40273
|
+
"type": "string"
|
40274
|
+
},
|
40275
|
+
{
|
40276
|
+
"disabled": false,
|
40277
|
+
"document": "所属地区",
|
40278
|
+
"example": "无",
|
40279
|
+
"member": "string",
|
40280
|
+
"name": "Region",
|
40281
|
+
"required": true,
|
40282
|
+
"type": "string"
|
40283
|
+
},
|
40284
|
+
{
|
40285
|
+
"disabled": false,
|
40286
|
+
"document": "是否为新资源",
|
40287
|
+
"example": "无",
|
40288
|
+
"member": "bool",
|
40289
|
+
"name": "NewFile",
|
40290
|
+
"required": true,
|
40291
|
+
"type": "bool"
|
40292
|
+
},
|
40293
|
+
{
|
40294
|
+
"disabled": false,
|
40295
|
+
"document": "资源列表",
|
40296
|
+
"example": "无",
|
40297
|
+
"member": "string",
|
40298
|
+
"name": "FileList",
|
40299
|
+
"required": false,
|
40300
|
+
"type": "list"
|
40301
|
+
},
|
40302
|
+
{
|
40303
|
+
"disabled": false,
|
40304
|
+
"document": "资源大小列表",
|
40305
|
+
"example": "无",
|
40306
|
+
"member": "string",
|
40307
|
+
"name": "FileSizeList",
|
40308
|
+
"required": false,
|
40309
|
+
"type": "list"
|
40310
|
+
},
|
40311
|
+
{
|
40312
|
+
"disabled": false,
|
40313
|
+
"document": "File Md5(适配私有化,公有云可以不传)",
|
40314
|
+
"example": "无",
|
40315
|
+
"member": "string",
|
40316
|
+
"name": "FileMd5",
|
40317
|
+
"required": false,
|
40318
|
+
"type": "string"
|
40319
|
+
}
|
40320
|
+
],
|
40321
|
+
"usage": "in"
|
40322
|
+
},
|
40323
|
+
"UploadResourceResponse": {
|
40324
|
+
"document": "UploadResource返回参数结构体",
|
40325
|
+
"members": [
|
40326
|
+
{
|
40327
|
+
"disabled": false,
|
40328
|
+
"document": "资源文件信息列表",
|
40329
|
+
"example": "无",
|
40330
|
+
"member": "UserFileDTONew",
|
40331
|
+
"name": "Data",
|
40332
|
+
"output_required": true,
|
40333
|
+
"type": "list",
|
40334
|
+
"value_allowed_null": false
|
40335
|
+
},
|
40336
|
+
{
|
40337
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
40338
|
+
"member": "string",
|
40339
|
+
"name": "RequestId",
|
40340
|
+
"type": "string"
|
40341
|
+
}
|
40342
|
+
],
|
40343
|
+
"type": "object"
|
40344
|
+
},
|
40345
|
+
"UserFileDTONew": {
|
40346
|
+
"document": "用户文件信息",
|
40347
|
+
"members": [
|
40348
|
+
{
|
40349
|
+
"disabled": false,
|
40350
|
+
"document": "资源ID\n注意:此字段可能返回 null,表示取不到有效值。",
|
40351
|
+
"example": "111111",
|
40352
|
+
"member": "string",
|
40353
|
+
"name": "ResourceId",
|
40354
|
+
"output_required": true,
|
40355
|
+
"type": "string",
|
40356
|
+
"value_allowed_null": true
|
40357
|
+
},
|
40358
|
+
{
|
40359
|
+
"disabled": false,
|
40360
|
+
"document": "文件名\n注意:此字段可能返回 null,表示取不到有效值。",
|
40361
|
+
"example": "1111",
|
40362
|
+
"member": "string",
|
40363
|
+
"name": "FileName",
|
40364
|
+
"output_required": true,
|
40365
|
+
"type": "string",
|
40366
|
+
"value_allowed_null": true
|
40367
|
+
},
|
40368
|
+
{
|
40369
|
+
"disabled": false,
|
40370
|
+
"document": "文件类型,如 jar zip 等\n注意:此字段可能返回 null,表示取不到有效值。",
|
40371
|
+
"example": "jar",
|
40372
|
+
"member": "string",
|
40373
|
+
"name": "FileExtensionType",
|
40374
|
+
"output_required": true,
|
40375
|
+
"type": "string",
|
40376
|
+
"value_allowed_null": true
|
40377
|
+
},
|
40378
|
+
{
|
40379
|
+
"disabled": false,
|
40380
|
+
"document": "文件上传类型,资源管理为 resource\n注意:此字段可能返回 null,表示取不到有效值。",
|
40381
|
+
"example": "resouce",
|
40382
|
+
"member": "string",
|
40383
|
+
"name": "Type",
|
40384
|
+
"output_required": true,
|
40385
|
+
"type": "string",
|
40386
|
+
"value_allowed_null": true
|
40387
|
+
},
|
40388
|
+
{
|
40389
|
+
"disabled": false,
|
40390
|
+
"document": "文件MD5值\n注意:此字段可能返回 null,表示取不到有效值。",
|
40391
|
+
"example": "aaaaa",
|
40392
|
+
"member": "string",
|
40393
|
+
"name": "Md5Value",
|
40394
|
+
"output_required": true,
|
40395
|
+
"type": "string",
|
40396
|
+
"value_allowed_null": true
|
40397
|
+
},
|
40398
|
+
{
|
40399
|
+
"disabled": false,
|
40400
|
+
"document": "创建时间\n注意:此字段可能返回 null,表示取不到有效值。",
|
40401
|
+
"example": "2023-02-27 00:00:00",
|
40402
|
+
"member": "string",
|
40403
|
+
"name": "CreateTime",
|
40404
|
+
"output_required": true,
|
40405
|
+
"type": "string",
|
40406
|
+
"value_allowed_null": true
|
40407
|
+
},
|
40408
|
+
{
|
40409
|
+
"disabled": false,
|
40410
|
+
"document": "更新时间\n注意:此字段可能返回 null,表示取不到有效值。",
|
40411
|
+
"example": "2023-02-27 00:00:00",
|
40412
|
+
"member": "string",
|
40413
|
+
"name": "UpdateTime",
|
40414
|
+
"output_required": true,
|
40415
|
+
"type": "string",
|
40416
|
+
"value_allowed_null": true
|
40417
|
+
},
|
40418
|
+
{
|
40419
|
+
"disabled": false,
|
40420
|
+
"document": "文件大小,单位为字节\n注意:此字段可能返回 null,表示取不到有效值。",
|
40421
|
+
"example": "123123",
|
40422
|
+
"member": "uint64",
|
40423
|
+
"name": "Size",
|
40424
|
+
"output_required": true,
|
40425
|
+
"type": "int",
|
40426
|
+
"value_allowed_null": true
|
40427
|
+
},
|
40428
|
+
{
|
40429
|
+
"disabled": false,
|
40430
|
+
"document": "本地路径\n注意:此字段可能返回 null,表示取不到有效值。",
|
40431
|
+
"example": "/datastudio/resource/jaydenjhu/xxxx/wedata-spark-1.0-SNAPSHOT.ja",
|
40432
|
+
"member": "string",
|
40433
|
+
"name": "LocalPath",
|
40434
|
+
"output_required": true,
|
40435
|
+
"type": "string",
|
40436
|
+
"value_allowed_null": true
|
40437
|
+
},
|
40438
|
+
{
|
40439
|
+
"disabled": false,
|
40440
|
+
"document": "本地临时路径\n注意:此字段可能返回 null,表示取不到有效值。",
|
40441
|
+
"example": "/tmp/datastudio/resource/1171938931991703552/jaydenjhu/xxxx/wed",
|
40442
|
+
"member": "string",
|
40443
|
+
"name": "LocalTempPath",
|
40444
|
+
"output_required": true,
|
40445
|
+
"type": "string",
|
40446
|
+
"value_allowed_null": true
|
40447
|
+
},
|
40448
|
+
{
|
40449
|
+
"disabled": false,
|
40450
|
+
"document": "远程路径\n注意:此字段可能返回 null,表示取不到有效值。",
|
40451
|
+
"example": "/datastudio/resource/1171938931991703552/jaydenjhu/xxxx/wedata-s",
|
40452
|
+
"member": "string",
|
40453
|
+
"name": "RemotePath",
|
40454
|
+
"output_required": true,
|
40455
|
+
"type": "string",
|
40456
|
+
"value_allowed_null": true
|
40457
|
+
},
|
40458
|
+
{
|
40459
|
+
"disabled": false,
|
40460
|
+
"document": "文件拥有者名字\n注意:此字段可能返回 null,表示取不到有效值。",
|
40461
|
+
"example": "fe",
|
40462
|
+
"member": "string",
|
40463
|
+
"name": "OwnerName",
|
40464
|
+
"output_required": true,
|
40465
|
+
"type": "string",
|
40466
|
+
"value_allowed_null": true
|
40467
|
+
},
|
40468
|
+
{
|
40469
|
+
"disabled": false,
|
40470
|
+
"document": "文件拥有者uin\n注意:此字段可能返回 null,表示取不到有效值。",
|
40471
|
+
"example": "100022256608",
|
40472
|
+
"member": "string",
|
40473
|
+
"name": "Owner",
|
40474
|
+
"output_required": true,
|
40475
|
+
"type": "string",
|
40476
|
+
"value_allowed_null": true
|
40477
|
+
},
|
40478
|
+
{
|
40479
|
+
"disabled": false,
|
40480
|
+
"document": "文件深度\n注意:此字段可能返回 null,表示取不到有效值。",
|
40481
|
+
"example": "1",
|
40482
|
+
"member": "string",
|
40483
|
+
"name": "PathDepth",
|
40484
|
+
"output_required": true,
|
40485
|
+
"type": "string",
|
40486
|
+
"value_allowed_null": true
|
40487
|
+
},
|
40488
|
+
{
|
40489
|
+
"disabled": false,
|
40490
|
+
"document": "项目ID\n注意:此字段可能返回 null,表示取不到有效值。",
|
40491
|
+
"example": "1111",
|
40492
|
+
"member": "string",
|
40493
|
+
"name": "ProjectId",
|
40494
|
+
"output_required": true,
|
40495
|
+
"type": "string",
|
40496
|
+
"value_allowed_null": true
|
40497
|
+
},
|
40498
|
+
{
|
40499
|
+
"disabled": false,
|
40500
|
+
"document": "附加信息\n注意:此字段可能返回 null,表示取不到有效值。",
|
40501
|
+
"example": "xxxx",
|
40502
|
+
"member": "string",
|
40503
|
+
"name": "ExtraInfo",
|
40504
|
+
"output_required": true,
|
40505
|
+
"type": "string",
|
40506
|
+
"value_allowed_null": true
|
40507
|
+
},
|
40508
|
+
{
|
40509
|
+
"disabled": false,
|
40510
|
+
"document": "本地临时压缩文件绝对路径\n注意:此字段可能返回 null,表示取不到有效值。",
|
40511
|
+
"example": "xxx",
|
40512
|
+
"member": "string",
|
40513
|
+
"name": "ZipPath",
|
40514
|
+
"output_required": true,
|
40515
|
+
"type": "string",
|
40516
|
+
"value_allowed_null": true
|
40517
|
+
},
|
40518
|
+
{
|
40519
|
+
"disabled": false,
|
40520
|
+
"document": "文件所属存储桶\n注意:此字段可能返回 null,表示取不到有效值。",
|
40521
|
+
"example": "agent-test-1257305158",
|
40522
|
+
"member": "string",
|
40523
|
+
"name": "Bucket",
|
40524
|
+
"output_required": true,
|
40525
|
+
"type": "string",
|
40526
|
+
"value_allowed_null": true
|
40527
|
+
},
|
40528
|
+
{
|
40529
|
+
"disabled": false,
|
40530
|
+
"document": "文件所属存储桶的地域\n注意:此字段可能返回 null,表示取不到有效值。",
|
40531
|
+
"example": "ap-guangzhou",
|
40532
|
+
"member": "string",
|
40533
|
+
"name": "Region",
|
40534
|
+
"output_required": true,
|
40535
|
+
"type": "string",
|
40536
|
+
"value_allowed_null": true
|
40537
|
+
},
|
40538
|
+
{
|
40539
|
+
"disabled": false,
|
40540
|
+
"document": "删除用户名称\n注意:此字段可能返回 null,表示取不到有效值。",
|
40541
|
+
"example": "无",
|
40542
|
+
"member": "string",
|
40543
|
+
"name": "DeleteName",
|
40544
|
+
"output_required": true,
|
40545
|
+
"type": "string",
|
40546
|
+
"value_allowed_null": true
|
40547
|
+
},
|
40548
|
+
{
|
40549
|
+
"disabled": false,
|
40550
|
+
"document": "删除用户id\n注意:此字段可能返回 null,表示取不到有效值。",
|
40551
|
+
"example": "无",
|
40552
|
+
"member": "string",
|
40553
|
+
"name": "DeleteOwner",
|
40554
|
+
"output_required": true,
|
40555
|
+
"type": "string",
|
40556
|
+
"value_allowed_null": true
|
40557
|
+
},
|
40558
|
+
{
|
40559
|
+
"disabled": false,
|
40560
|
+
"document": "操作者id\n注意:此字段可能返回 null,表示取不到有效值。",
|
40561
|
+
"example": "无",
|
40562
|
+
"member": "string",
|
40563
|
+
"name": "Operator",
|
40564
|
+
"output_required": true,
|
40565
|
+
"type": "string",
|
40566
|
+
"value_allowed_null": true
|
40567
|
+
},
|
40568
|
+
{
|
40569
|
+
"disabled": false,
|
40570
|
+
"document": "操作者名称\n注意:此字段可能返回 null,表示取不到有效值。",
|
40571
|
+
"example": "无",
|
40572
|
+
"member": "string",
|
40573
|
+
"name": "OperatorName",
|
40574
|
+
"output_required": true,
|
40575
|
+
"type": "string",
|
40576
|
+
"value_allowed_null": true
|
40577
|
+
},
|
40578
|
+
{
|
40579
|
+
"disabled": false,
|
40580
|
+
"document": "全路径\n注意:此字段可能返回 null,表示取不到有效值。",
|
40581
|
+
"example": "无",
|
40582
|
+
"member": "string",
|
40583
|
+
"name": "FullPath",
|
40584
|
+
"output_required": false,
|
40585
|
+
"type": "string",
|
40586
|
+
"value_allowed_null": true
|
40587
|
+
}
|
40588
|
+
],
|
40589
|
+
"usage": "out"
|
40590
|
+
},
|
40214
40591
|
"UserFileInfo": {
|
40215
40592
|
"document": "开发空间-获取数据开发脚本信息响应体",
|
40216
40593
|
"members": [
|
@@ -1895,6 +1895,14 @@
|
|
1895
1895
|
"output": "{\n \"Response\": {\n \"RequestId\": \"b24bf87c-c391-42cc-a41e-077f946bdff1\",\n \"ScriptInfo\": {\n \"Bucket\": \"wedata-agent-sh-1257305432\",\n \"CreateTime\": \"2024-04-10 10:38:15\",\n \"ExtraInfo\": \"{\\\"taskId\\\":\\\"ap-shanghai|wedata-agent-sh-1257305432|/datastudio/personal/shell1234.sh\\\"}\",\n \"FileExtensionType\": \"sh\",\n \"FileName\": \"shell1234.sh\",\n \"LocalPath\": \"/datastudio/personal/shell1234.sh\",\n \"LocalTempPath\": null,\n \"Md5Value\": null,\n \"Owner\": \"100028649733\",\n \"OwnerName\": \"demo\",\n \"PathDepth\": null,\n \"ProjectId\": \"100028649733\",\n \"Region\": \"ap-shanghai\",\n \"RemotePath\": \"/datastudio/personal/100028649733/shell1234.sh\",\n \"ResourceId\": \"3342446a-d046-4a97-9fe6-3c5dd9866ba4\",\n \"Size\": null,\n \"Type\": \"personal\",\n \"UpdateTime\": \"2024-04-10 10:38:15\",\n \"ZipPath\": null\n }\n }\n}",
|
1896
1896
|
"title": "UploadContent 示例"
|
1897
1897
|
}
|
1898
|
+
],
|
1899
|
+
"UploadResource": [
|
1900
|
+
{
|
1901
|
+
"document": "资源上传",
|
1902
|
+
"input": "POST / HTTP/1.1\nHost: wedata.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UploadResource\n<公共请求参数>\n\n{\n \"UploadResourceRequestInfo\": {\n \"ProjectId\": \"abc\",\n \"FileList\": [\n \"abc\"\n ],\n \"FilePath\": \"abc\",\n \"BucketName\": \"abc\",\n \"Region\": \"abc\",\n \"NewFile\": true,\n \"FileSizeList\": [\n \"abc\"\n ]\n }\n}",
|
1903
|
+
"output": "{\n \"Response\": {\n \"Data\": [\n {\n \"ResourceId\": \"abc\",\n \"FileName\": \"abc\",\n \"FileExtensionType\": \"abc\",\n \"Type\": \"abc\",\n \"Md5Value\": \"abc\",\n \"CreateTime\": \"abc\",\n \"UpdateTime\": \"abc\",\n \"Size\": 1,\n \"LocalPath\": \"abc\",\n \"LocalTempPath\": \"abc\",\n \"RemotePath\": \"abc\",\n \"OwnerName\": \"abc\",\n \"Owner\": \"abc\",\n \"PathDepth\": \"abc\",\n \"ProjectId\": \"abc\",\n \"ExtraInfo\": \"abc\",\n \"ZipPath\": \"abc\",\n \"Bucket\": \"abc\",\n \"Region\": \"abc\",\n \"DeleteName\": \"abc\",\n \"DeleteOwner\": \"abc\",\n \"Operator\": \"abc\",\n \"OperatorName\": \"abc\"\n }\n ],\n \"RequestId\": \"abc\"\n }\n}",
|
1904
|
+
"title": "资源上传接口示例"
|
1905
|
+
}
|
1898
1906
|
]
|
1899
1907
|
},
|
1900
1908
|
"version": "1.0"
|
@@ -6985,7 +6985,7 @@ def doCheckIntegrationTaskNameExists(args, parsed_globals):
|
|
6985
6985
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6986
6986
|
|
6987
6987
|
|
6988
|
-
def
|
6988
|
+
def doUploadResource(args, parsed_globals):
|
6989
6989
|
g_param = parse_global_arg(parsed_globals)
|
6990
6990
|
|
6991
6991
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -7014,11 +7014,11 @@ def doDescribeRulesByPage(args, parsed_globals):
|
|
7014
7014
|
client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
|
7015
7015
|
client._sdkVersion += ("_CLI_" + __version__)
|
7016
7016
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
7017
|
-
model = models.
|
7017
|
+
model = models.UploadResourceRequest()
|
7018
7018
|
model.from_json_string(json.dumps(args))
|
7019
7019
|
start_time = time.time()
|
7020
7020
|
while True:
|
7021
|
-
rsp = client.
|
7021
|
+
rsp = client.UploadResource(model)
|
7022
7022
|
result = rsp.to_json_string()
|
7023
7023
|
try:
|
7024
7024
|
json_obj = json.loads(result)
|
@@ -7245,7 +7245,7 @@ def doBatchMakeUpIntegrationTasks(args, parsed_globals):
|
|
7245
7245
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
7246
7246
|
|
7247
7247
|
|
7248
|
-
def
|
7248
|
+
def doDescribeRulesByPage(args, parsed_globals):
|
7249
7249
|
g_param = parse_global_arg(parsed_globals)
|
7250
7250
|
|
7251
7251
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -7274,11 +7274,11 @@ def doUploadContent(args, parsed_globals):
|
|
7274
7274
|
client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
|
7275
7275
|
client._sdkVersion += ("_CLI_" + __version__)
|
7276
7276
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
7277
|
-
model = models.
|
7277
|
+
model = models.DescribeRulesByPageRequest()
|
7278
7278
|
model.from_json_string(json.dumps(args))
|
7279
7279
|
start_time = time.time()
|
7280
7280
|
while True:
|
7281
|
-
rsp = client.
|
7281
|
+
rsp = client.DescribeRulesByPage(model)
|
7282
7282
|
result = rsp.to_json_string()
|
7283
7283
|
try:
|
7284
7284
|
json_obj = json.loads(result)
|
@@ -9481,6 +9481,58 @@ def doDescribeIntegrationVersionNodesInfo(args, parsed_globals):
|
|
9481
9481
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
9482
9482
|
|
9483
9483
|
|
9484
|
+
def doUploadContent(args, parsed_globals):
|
9485
|
+
g_param = parse_global_arg(parsed_globals)
|
9486
|
+
|
9487
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
9488
|
+
cred = credential.CVMRoleCredential()
|
9489
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
9490
|
+
cred = credential.STSAssumeRoleCredential(
|
9491
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
9492
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
9493
|
+
)
|
9494
|
+
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):
|
9495
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
9496
|
+
else:
|
9497
|
+
cred = credential.Credential(
|
9498
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
9499
|
+
)
|
9500
|
+
http_profile = HttpProfile(
|
9501
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
9502
|
+
reqMethod="POST",
|
9503
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
9504
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
9505
|
+
)
|
9506
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
9507
|
+
if g_param[OptionsDefine.Language]:
|
9508
|
+
profile.language = g_param[OptionsDefine.Language]
|
9509
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
9510
|
+
client = mod.WedataClient(cred, g_param[OptionsDefine.Region], profile)
|
9511
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
9512
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
9513
|
+
model = models.UploadContentRequest()
|
9514
|
+
model.from_json_string(json.dumps(args))
|
9515
|
+
start_time = time.time()
|
9516
|
+
while True:
|
9517
|
+
rsp = client.UploadContent(model)
|
9518
|
+
result = rsp.to_json_string()
|
9519
|
+
try:
|
9520
|
+
json_obj = json.loads(result)
|
9521
|
+
except TypeError as e:
|
9522
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
9523
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
9524
|
+
break
|
9525
|
+
cur_time = time.time()
|
9526
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
9527
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
9528
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
9529
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
9530
|
+
else:
|
9531
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
9532
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
9533
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
9534
|
+
|
9535
|
+
|
9484
9536
|
def doModifyTaskAlarmRegular(args, parsed_globals):
|
9485
9537
|
g_param = parse_global_arg(parsed_globals)
|
9486
9538
|
|
@@ -11706,12 +11758,12 @@ ACTION_MAP = {
|
|
11706
11758
|
"DeleteRule": doDeleteRule,
|
11707
11759
|
"CheckAlarmRegularNameExist": doCheckAlarmRegularNameExist,
|
11708
11760
|
"CheckIntegrationTaskNameExists": doCheckIntegrationTaskNameExists,
|
11709
|
-
"
|
11761
|
+
"UploadResource": doUploadResource,
|
11710
11762
|
"ModifyMonitorStatus": doModifyMonitorStatus,
|
11711
11763
|
"DeleteProjectUsers": doDeleteProjectUsers,
|
11712
11764
|
"DeleteFile": doDeleteFile,
|
11713
11765
|
"BatchMakeUpIntegrationTasks": doBatchMakeUpIntegrationTasks,
|
11714
|
-
"
|
11766
|
+
"DescribeRulesByPage": doDescribeRulesByPage,
|
11715
11767
|
"DescribeRuleTemplate": doDescribeRuleTemplate,
|
11716
11768
|
"DescribeRule": doDescribeRule,
|
11717
11769
|
"ModifyWorkflowInfo": doModifyWorkflowInfo,
|
@@ -11754,6 +11806,7 @@ ACTION_MAP = {
|
|
11754
11806
|
"ModifyDataSource": doModifyDataSource,
|
11755
11807
|
"DescribeTaskAlarmRegulations": doDescribeTaskAlarmRegulations,
|
11756
11808
|
"DescribeIntegrationVersionNodesInfo": doDescribeIntegrationVersionNodesInfo,
|
11809
|
+
"UploadContent": doUploadContent,
|
11757
11810
|
"ModifyTaskAlarmRegular": doModifyTaskAlarmRegular,
|
11758
11811
|
"DescribeTableMeta": doDescribeTableMeta,
|
11759
11812
|
"DeleteCustomFunction": doDeleteCustomFunction,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: tccli
|
3
|
-
Version: 3.0.
|
3
|
+
Version: 3.0.1137.1
|
4
4
|
Summary: Universal Command Line Environment for Tencent Cloud
|
5
5
|
Project-URL: Bug Tracker, https://github.com/TencentCloud/tencentcloud-cli/issues
|
6
6
|
Project-URL: Homepage, https://github.com/TencentCloud/tencentcloud-cli
|
@@ -13,7 +13,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
13
13
|
Classifier: Programming Language :: Python :: 3
|
14
14
|
Requires-Dist: jmespath==0.10.0
|
15
15
|
Requires-Dist: six==1.16.0
|
16
|
-
Requires-Dist: tencentcloud-sdk-python>=3.0.
|
16
|
+
Requires-Dist: tencentcloud-sdk-python>=3.0.1137
|
17
17
|
Description-Content-Type: text/markdown
|
18
18
|
|
19
19
|
# 命令行工具简介
|