tccli 3.0.1198.1__py2.py3-none-any.whl → 3.0.1200.1__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/aiart/v20221229/api.json +7 -7
  3. tccli/services/billing/v20180709/examples.json +2 -2
  4. tccli/services/ccc/ccc_client.py +57 -4
  5. tccli/services/ccc/v20200210/api.json +188 -0
  6. tccli/services/ccc/v20200210/examples.json +8 -0
  7. tccli/services/clb/v20180317/api.json +19 -1
  8. tccli/services/cme/v20191029/api.json +18 -8
  9. tccli/services/cwp/v20180228/api.json +2 -2
  10. tccli/services/cynosdb/cynosdb_client.py +0 -53
  11. tccli/services/cynosdb/v20190107/api.json +0 -92
  12. tccli/services/cynosdb/v20190107/examples.json +0 -8
  13. tccli/services/dasb/v20191018/api.json +32 -3
  14. tccli/services/dts/v20211206/api.json +7 -7
  15. tccli/services/emr/v20190103/api.json +4 -4
  16. tccli/services/ess/v20201111/api.json +13 -13
  17. tccli/services/ess/v20201111/examples.json +0 -6
  18. tccli/services/essbasic/v20210526/api.json +16 -7
  19. tccli/services/essbasic/v20210526/examples.json +0 -6
  20. tccli/services/faceid/v20180301/api.json +9 -0
  21. tccli/services/iecp/iecp_client.py +298 -1358
  22. tccli/services/iecp/v20210914/api.json +216 -2256
  23. tccli/services/iecp/v20210914/examples.json +0 -166
  24. tccli/services/ims/v20201229/api.json +9 -9
  25. tccli/services/ims/v20201229/examples.json +2 -2
  26. tccli/services/monitor/monitor_client.py +8 -114
  27. tccli/services/monitor/v20180724/api.json +0 -85
  28. tccli/services/monitor/v20180724/examples.json +0 -16
  29. tccli/services/ocr/v20181119/api.json +3 -3
  30. tccli/services/omics/v20221128/api.json +181 -34
  31. tccli/services/postgres/postgres_client.py +53 -0
  32. tccli/services/postgres/v20170312/api.json +191 -0
  33. tccli/services/postgres/v20170312/examples.json +16 -2
  34. tccli/services/rce/v20201103/api.json +17 -8
  35. tccli/services/ssl/v20191205/api.json +48 -0
  36. tccli/services/tcb/v20180608/api.json +21 -1
  37. tccli/services/tcss/v20201101/api.json +199 -3
  38. tccli/services/tcss/v20201101/examples.json +5 -5
  39. tccli/services/teo/v20220901/api.json +50 -0
  40. tccli/services/tke/v20180525/api.json +9 -9
  41. tccli/services/tke/v20220501/api.json +5 -5
  42. tccli/services/tse/v20201207/api.json +22 -0
  43. tccli/services/tsf/tsf_client.py +4 -57
  44. tccli/services/tsf/v20180326/api.json +0 -34
  45. tccli/services/tsf/v20180326/examples.json +0 -8
  46. tccli/services/tts/v20190823/api.json +1 -1
  47. tccli/services/vpc/v20170312/api.json +19 -0
  48. tccli/services/vpc/v20170312/examples.json +6 -0
  49. tccli/services/wedata/v20210820/api.json +11 -0
  50. {tccli-3.0.1198.1.dist-info → tccli-3.0.1200.1.dist-info}/METADATA +2 -2
  51. {tccli-3.0.1198.1.dist-info → tccli-3.0.1200.1.dist-info}/RECORD +54 -54
  52. {tccli-3.0.1198.1.dist-info → tccli-3.0.1200.1.dist-info}/WHEEL +0 -0
  53. {tccli-3.0.1198.1.dist-info → tccli-3.0.1200.1.dist-info}/entry_points.txt +0 -0
  54. {tccli-3.0.1198.1.dist-info → tccli-3.0.1200.1.dist-info}/license_files/LICENSE +0 -0
@@ -21,13 +21,6 @@
21
21
  "output": "BindingPolicyTagResponse",
22
22
  "status": "online"
23
23
  },
24
- "CheckIsPrometheusNewUser": {
25
- "document": "接口功能是检查是否为prometheus新用户,已有其他功能更加全面的接口替代\n\n判断用户是否为云原生监控新用户,即在任何地域下均未创建过监控实例的用户",
26
- "input": "CheckIsPrometheusNewUserRequest",
27
- "name": "判断用户是否为云原生监控新用户",
28
- "output": "CheckIsPrometheusNewUserResponse",
29
- "status": "deprecated"
30
- },
31
24
  "CleanGrafanaInstance": {
32
25
  "document": "强制销毁 Grafana 实例",
33
26
  "input": "CleanGrafanaInstanceRequest",
@@ -658,13 +651,6 @@
658
651
  "output": "DescribePrometheusInstancesOverviewResponse",
659
652
  "status": "online"
660
653
  },
661
- "DescribePrometheusRecordRuleYaml": {
662
- "document": "DescribePrometheusRecordRules 接口可完全代替该接口。近30天仅有3次调用,且都是报错请求\n\n拉取Prometheus聚合规则yaml列表",
663
- "input": "DescribePrometheusRecordRuleYamlRequest",
664
- "name": "拉取Prometheus聚合规则yaml列表",
665
- "output": "DescribePrometheusRecordRuleYamlResponse",
666
- "status": "deprecated"
667
- },
668
654
  "DescribePrometheusRecordRules": {
669
655
  "document": "获取聚合规则列表,包含关联集群内crd资源创建的record rule",
670
656
  "input": "DescribePrometheusRecordRulesRequest",
@@ -2838,23 +2824,6 @@
2838
2824
  ],
2839
2825
  "usage": "both"
2840
2826
  },
2841
- "CheckIsPrometheusNewUserRequest": {
2842
- "document": "CheckIsPrometheusNewUser请求参数结构体",
2843
- "members": [],
2844
- "type": "object"
2845
- },
2846
- "CheckIsPrometheusNewUserResponse": {
2847
- "document": "CheckIsPrometheusNewUser返回参数结构体",
2848
- "members": [
2849
- {
2850
- "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
2851
- "member": "string",
2852
- "name": "RequestId",
2853
- "type": "string"
2854
- }
2855
- ],
2856
- "type": "object"
2857
- },
2858
2827
  "CleanGrafanaInstanceRequest": {
2859
2828
  "document": "CleanGrafanaInstance请求参数结构体",
2860
2829
  "members": [
@@ -12237,60 +12206,6 @@
12237
12206
  ],
12238
12207
  "type": "object"
12239
12208
  },
12240
- "DescribePrometheusRecordRuleYamlRequest": {
12241
- "document": "DescribePrometheusRecordRuleYaml请求参数结构体",
12242
- "members": [
12243
- {
12244
- "disabled": false,
12245
- "document": "实例id",
12246
- "example": "xxx",
12247
- "member": "string",
12248
- "name": "InstanceId",
12249
- "required": true,
12250
- "type": "string"
12251
- },
12252
- {
12253
- "disabled": false,
12254
- "document": "分页",
12255
- "example": "1",
12256
- "member": "uint64",
12257
- "name": "Offset",
12258
- "required": false,
12259
- "type": "int"
12260
- },
12261
- {
12262
- "disabled": false,
12263
- "document": "分页",
12264
- "example": "10",
12265
- "member": "uint64",
12266
- "name": "Limit",
12267
- "required": false,
12268
- "type": "int"
12269
- },
12270
- {
12271
- "disabled": false,
12272
- "document": "过滤,当前支持\nName = Name\nValues = 目标名称列表",
12273
- "example": "xxx",
12274
- "member": "Filter",
12275
- "name": "Filters",
12276
- "required": false,
12277
- "type": "list"
12278
- }
12279
- ],
12280
- "type": "object"
12281
- },
12282
- "DescribePrometheusRecordRuleYamlResponse": {
12283
- "document": "DescribePrometheusRecordRuleYaml返回参数结构体",
12284
- "members": [
12285
- {
12286
- "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
12287
- "member": "string",
12288
- "name": "RequestId",
12289
- "type": "string"
12290
- }
12291
- ],
12292
- "type": "object"
12293
- },
12294
12209
  "DescribePrometheusRecordRulesRequest": {
12295
12210
  "document": "DescribePrometheusRecordRules请求参数结构体",
12296
12211
  "members": [
@@ -24,14 +24,6 @@
24
24
  "title": "策略绑定标签"
25
25
  }
26
26
  ],
27
- "CheckIsPrometheusNewUser": [
28
- {
29
- "document": "判断用户是否为新用户",
30
- "input": "POST / HTTP/1.1\nHost: monitor.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CheckIsPrometheusNewUser\n<公共请求参数>\n\n{}",
31
- "output": "{\n \"Response\": {\n \"RequestId\": \"xx\"\n }\n}",
32
- "title": "判断用户是否为新用户"
33
- }
34
- ],
35
27
  "CleanGrafanaInstance": [
36
28
  {
37
29
  "document": "强制销毁 Grafana 实例",
@@ -914,14 +906,6 @@
914
906
  "title": "获取实例列表"
915
907
  }
916
908
  ],
917
- "DescribePrometheusRecordRuleYaml": [
918
- {
919
- "document": "拉取聚合规则列表",
920
- "input": "https://monitor.tencentcloudapi.com/?Action=DescribePrometheusRecordRuleYaml\n&InstanceId=prom-xxx\n&<公共请求参数>",
921
- "output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
922
- "title": "拉取聚合规则列表"
923
- }
924
- ],
925
909
  "DescribePrometheusRecordRules": [
926
910
  {
927
911
  "document": "拉取聚合规则",
@@ -365,7 +365,7 @@
365
365
  "status": "online"
366
366
  },
367
367
  "RecognizeIndonesiaIDCardOCR": {
368
- "document": "印尼身份证识别\n\n默认接口请求频率限制:20次/秒。",
368
+ "document": "印尼身份证识别\n\n默认接口请求频率限制:5次/秒。",
369
369
  "input": "RecognizeIndonesiaIDCardOCRRequest",
370
370
  "name": "印尼身份证识别",
371
371
  "output": "RecognizeIndonesiaIDCardOCRResponse",
@@ -2536,7 +2536,7 @@
2536
2536
  },
2537
2537
  {
2538
2538
  "disabled": false,
2539
- "document": "可以指定要识别的票证类型,指定后不出现在此列表的票证将不返回类型。不指定时默认返回所有支持类别票证的识别信息。\n\n以下是当前支持的类型:\nIDCardFront: 身份证正面识别\nIDCardBack: 身份证背面识别\nPassport: 护照\nBusinessCard: 名片识别\nBankCard: 银行卡识别\nVehicleLicenseFront: 行驶证主页识别\nVehicleLicenseBack: 行驶证副页识别\nDriverLicenseFront: 驾驶证主页识别\nDriverLicenseBack: 驾驶证副页识别\nPermitFront: 港澳台通行证正面\nResidenceBooklet: 户口本资料页\nMainlandPermitFront: 港澳台来往内地通行证正面\nHmtResidentPermitFront: 港澳台居住证正面\nHmtResidentPermitBack: 港澳台居住证背面\nEstateCert: 不动产证\nBizLicense: 营业执照",
2539
+ "document": "可以指定要识别的票证类型,指定后不出现在此列表的票证将不返回类型。不指定时默认返回所有支持类别票证的识别信息。\n\n以下是当前支持的类型:\nIDCardFront: 身份证正面识别\nIDCardBack: 身份证背面识别\nPassport: 护照\nBusinessCard: 名片识别\nBankCard: 银行卡识别\nVehicleLicenseFront: 行驶证主页识别\nVehicleLicenseBack: 行驶证副页识别\nDriverLicenseFront: 驾驶证主页识别\nDriverLicenseBack: 驾驶证副页识别\nPermitFront: 港澳台通行证正面\nResidenceBooklet: 户口本资料页\nMainlandPermitFront: 港澳台来往内地通行证正面\nHmtResidentPermitFront: 港澳台居住证正面\nHmtResidentPermitBack: 港澳台居住证背面\nEstateCert: 不动产证\nBizLicense: 营业执照\nForeignPermanentResidentFront: 外国人永居证正面识别\nForeignPermanentResidentBack: 外国人永居证背面识别",
2540
2540
  "example": "\"\"",
2541
2541
  "member": "string",
2542
2542
  "name": "DiscernType",
@@ -2555,7 +2555,7 @@
2555
2555
  "example": "\"\"",
2556
2556
  "member": "ClassifyDetectInfo",
2557
2557
  "name": "ClassifyDetectInfos",
2558
- "required": true,
2558
+ "output_required": true,
2559
2559
  "type": "list",
2560
2560
  "value_allowed_null": false
2561
2561
  },
@@ -232,7 +232,7 @@
232
232
  "value_allowed_null": true
233
233
  },
234
234
  {
235
- "disabled": false,
235
+ "disabled": true,
236
236
  "document": "Git信息。\n注意:此字段可能返回 null,表示取不到有效值。",
237
237
  "example": "无",
238
238
  "member": "string",
@@ -240,6 +240,16 @@
240
240
  "output_required": false,
241
241
  "type": "string",
242
242
  "value_allowed_null": true
243
+ },
244
+ {
245
+ "disabled": false,
246
+ "document": "Git信息。\n注意:此字段可能返回 null,表示取不到有效值。",
247
+ "example": "无",
248
+ "member": "GitInfo",
249
+ "name": "GitSource",
250
+ "output_required": false,
251
+ "type": "object",
252
+ "value_allowed_null": true
243
253
  }
244
254
  ],
245
255
  "usage": "out"
@@ -723,7 +733,7 @@
723
733
  },
724
734
  {
725
735
  "disabled": false,
726
- "document": "过滤器,支持过滤字段:\n- Name:任务批次名称\n- RunGroupId:任务批次ID\n- Status:任务批次状态",
736
+ "document": "过滤器,支持过滤字段:\n- Name:任务批次名称\n- RunGroupId:任务批次ID\n- Status:任务批次状态\n- ApplicationId:应用ID\n- Type:类型(支持WDL,NEXTFLOW)",
727
737
  "example": "无",
728
738
  "member": "Filter",
729
739
  "name": "Filters",
@@ -797,7 +807,7 @@
797
807
  },
798
808
  {
799
809
  "disabled": false,
800
- "document": "过滤器,支持过滤字段:\n- RunGroupId:任务批次ID\n- Status:任务状态\n- RunUuid:任务UUID\n- UserDefinedId:用户定义ID",
810
+ "document": "过滤器,支持过滤字段:\n- RunGroupId:任务批次ID\n- Status:任务状态\n- RunUuid:任务UUID\n- ApplicationId:应用ID\n- UserDefinedId:用户定义ID(批量运行表格第一列)",
801
811
  "example": "无",
802
812
  "member": "Filter",
803
813
  "name": "Filters",
@@ -1504,51 +1514,61 @@
1504
1514
  "members": [
1505
1515
  {
1506
1516
  "disabled": false,
1507
- "document": "Git地址。",
1517
+ "document": "Git地址。\n注意:此字段可能返回 null,表示取不到有效值。",
1508
1518
  "example": "无",
1509
1519
  "member": "string",
1510
1520
  "name": "GitHttpPath",
1521
+ "output_required": false,
1511
1522
  "required": true,
1512
- "type": "string"
1523
+ "type": "string",
1524
+ "value_allowed_null": true
1513
1525
  },
1514
1526
  {
1515
1527
  "disabled": false,
1516
- "document": "Git用户名。",
1528
+ "document": "Git用户名。\n注意:此字段可能返回 null,表示取不到有效值。",
1517
1529
  "example": "无",
1518
1530
  "member": "string",
1519
1531
  "name": "GitUserName",
1532
+ "output_required": false,
1520
1533
  "required": false,
1521
- "type": "string"
1534
+ "type": "string",
1535
+ "value_allowed_null": true
1522
1536
  },
1523
1537
  {
1524
1538
  "disabled": false,
1525
- "document": "Git密码或者Token",
1539
+ "document": "Git密码或者Token。\n注意:此字段可能返回 null,表示取不到有效值。",
1526
1540
  "example": "无",
1527
1541
  "member": "string",
1528
1542
  "name": "GitTokenOrPassword",
1543
+ "output_required": false,
1529
1544
  "required": false,
1530
- "type": "string"
1545
+ "type": "string",
1546
+ "value_allowed_null": true
1531
1547
  },
1532
1548
  {
1533
1549
  "disabled": false,
1534
- "document": "分支。",
1550
+ "document": "分支。\n注意:此字段可能返回 null,表示取不到有效值。",
1535
1551
  "example": "无",
1536
1552
  "member": "string",
1537
1553
  "name": "Branch",
1554
+ "output_required": false,
1538
1555
  "required": false,
1539
- "type": "string"
1556
+ "type": "string",
1557
+ "value_allowed_null": true
1540
1558
  },
1541
1559
  {
1542
1560
  "disabled": false,
1543
- "document": "标签。",
1561
+ "document": "标签。\n注意:此字段可能返回 null,表示取不到有效值。",
1544
1562
  "example": "无",
1545
1563
  "member": "string",
1546
1564
  "name": "Tag",
1565
+ "output_required": false,
1547
1566
  "required": false,
1548
- "type": "string"
1567
+ "type": "string",
1568
+ "value_allowed_null": true
1549
1569
  }
1550
1570
  ],
1551
- "usage": "in"
1571
+ "usage": "both"
1552
1572
  },
1553
1573
  "ImportTableFileRequest": {
1554
1574
  "document": "ImportTableFile请求参数结构体",
@@ -2367,6 +2387,26 @@
2367
2387
  "type": "string",
2368
2388
  "value_allowed_null": false
2369
2389
  },
2390
+ {
2391
+ "disabled": false,
2392
+ "document": "应用版本。\n注意:此字段可能返回 null,表示取不到有效值。",
2393
+ "example": "无",
2394
+ "member": "ApplicationVersion",
2395
+ "name": "ApplicationVersion",
2396
+ "output_required": false,
2397
+ "type": "object",
2398
+ "value_allowed_null": true
2399
+ },
2400
+ {
2401
+ "disabled": false,
2402
+ "document": "应用访问类型:\n- PRIVATE 私有应用\n- PUBLIC 公共应用\n注意:此字段可能返回 null,表示取不到有效值。",
2403
+ "example": "无",
2404
+ "member": "string",
2405
+ "name": "AccessMode",
2406
+ "output_required": false,
2407
+ "type": "string",
2408
+ "value_allowed_null": true
2409
+ },
2370
2410
  {
2371
2411
  "disabled": false,
2372
2412
  "document": "环境ID。",
@@ -2427,6 +2467,26 @@
2427
2467
  "type": "string",
2428
2468
  "value_allowed_null": false
2429
2469
  },
2470
+ {
2471
+ "disabled": false,
2472
+ "document": "任务批次类型 :\n- WDL\n- NEXTFLOW\n注意:此字段可能返回 null,表示取不到有效值。",
2473
+ "example": "无",
2474
+ "member": "string",
2475
+ "name": "Type",
2476
+ "output_required": false,
2477
+ "type": "string",
2478
+ "value_allowed_null": true
2479
+ },
2480
+ {
2481
+ "disabled": false,
2482
+ "document": "工作目录。\n注意:此字段可能返回 null,表示取不到有效值。",
2483
+ "example": "无",
2484
+ "member": "string",
2485
+ "name": "WorkDir",
2486
+ "output_required": false,
2487
+ "type": "string",
2488
+ "value_allowed_null": true
2489
+ },
2430
2490
  {
2431
2491
  "disabled": false,
2432
2492
  "document": "任务输入。",
@@ -2437,6 +2497,36 @@
2437
2497
  "type": "string",
2438
2498
  "value_allowed_null": false
2439
2499
  },
2500
+ {
2501
+ "disabled": false,
2502
+ "document": "任务输入类型:\n- JSON: 导入JSON\n- MANUAL: 手动输入\n- COS: COS文件\n注意:此字段可能返回 null,表示取不到有效值。",
2503
+ "example": "无",
2504
+ "member": "string",
2505
+ "name": "InputType",
2506
+ "output_required": false,
2507
+ "type": "string",
2508
+ "value_allowed_null": true
2509
+ },
2510
+ {
2511
+ "disabled": false,
2512
+ "document": "输入COS地址。\n注意:此字段可能返回 null,表示取不到有效值。",
2513
+ "example": "无",
2514
+ "member": "string",
2515
+ "name": "InputCosUri",
2516
+ "output_required": false,
2517
+ "type": "string",
2518
+ "value_allowed_null": true
2519
+ },
2520
+ {
2521
+ "disabled": false,
2522
+ "document": "输入模版ID。\n注意:此字段可能返回 null,表示取不到有效值。",
2523
+ "example": "无",
2524
+ "member": "string",
2525
+ "name": "InputTemplateId",
2526
+ "output_required": false,
2527
+ "type": "string",
2528
+ "value_allowed_null": true
2529
+ },
2440
2530
  {
2441
2531
  "disabled": false,
2442
2532
  "document": "WDL运行选项。",
@@ -2457,6 +2547,16 @@
2457
2547
  "type": "object",
2458
2548
  "value_allowed_null": true
2459
2549
  },
2550
+ {
2551
+ "disabled": false,
2552
+ "document": "使用的缓存卷。\n注意:此字段可能返回 null,表示取不到有效值。",
2553
+ "example": "无",
2554
+ "member": "VolumeInfo",
2555
+ "name": "Volumes",
2556
+ "output_required": false,
2557
+ "type": "list",
2558
+ "value_allowed_null": true
2559
+ },
2460
2560
  {
2461
2561
  "disabled": false,
2462
2562
  "document": "任务总数量。",
@@ -2497,6 +2597,16 @@
2497
2597
  "type": "string",
2498
2598
  "value_allowed_null": false
2499
2599
  },
2600
+ {
2601
+ "disabled": false,
2602
+ "document": "运行结果通知方式。\n注意:此字段可能返回 null,表示取不到有效值。",
2603
+ "example": "无",
2604
+ "member": "string",
2605
+ "name": "ResultNotify",
2606
+ "output_required": false,
2607
+ "type": "string",
2608
+ "value_allowed_null": true
2609
+ },
2500
2610
  {
2501
2611
  "disabled": false,
2502
2612
  "document": "创建时间。",
@@ -2536,26 +2646,6 @@
2536
2646
  "output_required": false,
2537
2647
  "type": "string",
2538
2648
  "value_allowed_null": true
2539
- },
2540
- {
2541
- "disabled": false,
2542
- "document": "运行结果通知方式。\n注意:此字段可能返回 null,表示取不到有效值。",
2543
- "example": "无",
2544
- "member": "string",
2545
- "name": "ResultNotify",
2546
- "output_required": false,
2547
- "type": "string",
2548
- "value_allowed_null": true
2549
- },
2550
- {
2551
- "disabled": false,
2552
- "document": "应用版本。\n注意:此字段可能返回 null,表示取不到有效值。",
2553
- "example": "无",
2554
- "member": "ApplicationVersion",
2555
- "name": "ApplicationVersion",
2556
- "output_required": false,
2557
- "type": "object",
2558
- "value_allowed_null": true
2559
2649
  }
2560
2650
  ],
2561
2651
  "usage": "out"
@@ -2743,6 +2833,16 @@
2743
2833
  "type": "bool",
2744
2834
  "value_allowed_null": true
2745
2835
  },
2836
+ {
2837
+ "disabled": false,
2838
+ "document": "工作目录。\n注意:此字段可能返回 null,表示取不到有效值。",
2839
+ "example": "无",
2840
+ "member": "string",
2841
+ "name": "WorkDir",
2842
+ "output_required": false,
2843
+ "type": "string",
2844
+ "value_allowed_null": true
2845
+ },
2746
2846
  {
2747
2847
  "disabled": false,
2748
2848
  "document": "标准输出。\n注意:此字段可能返回 null,表示取不到有效值。",
@@ -2833,6 +2933,17 @@
2833
2933
  "required": false,
2834
2934
  "type": "bool",
2835
2935
  "value_allowed_null": true
2936
+ },
2937
+ {
2938
+ "disabled": false,
2939
+ "document": "是否添加运行信息到输出目录中\n注意:此字段可能返回 null,表示取不到有效值。",
2940
+ "example": "无",
2941
+ "member": "bool",
2942
+ "name": "AddRunInfoToOutputDir",
2943
+ "output_required": false,
2944
+ "required": false,
2945
+ "type": "bool",
2946
+ "value_allowed_null": true
2836
2947
  }
2837
2948
  ],
2838
2949
  "usage": "both"
@@ -3390,6 +3501,42 @@
3390
3501
  }
3391
3502
  ],
3392
3503
  "usage": "out"
3504
+ },
3505
+ "VolumeInfo": {
3506
+ "document": "缓存卷信息。",
3507
+ "members": [
3508
+ {
3509
+ "disabled": false,
3510
+ "document": "缓存卷ID。\n注意:此字段可能返回 null,表示取不到有效值。",
3511
+ "example": "无",
3512
+ "member": "string",
3513
+ "name": "VolumeId",
3514
+ "output_required": false,
3515
+ "type": "string",
3516
+ "value_allowed_null": true
3517
+ },
3518
+ {
3519
+ "disabled": false,
3520
+ "document": "名称。\n注意:此字段可能返回 null,表示取不到有效值。",
3521
+ "example": "无",
3522
+ "member": "string",
3523
+ "name": "Name",
3524
+ "output_required": false,
3525
+ "type": "string",
3526
+ "value_allowed_null": true
3527
+ },
3528
+ {
3529
+ "disabled": false,
3530
+ "document": "挂载路径。\n注意:此字段可能返回 null,表示取不到有效值。",
3531
+ "example": "无",
3532
+ "member": "string",
3533
+ "name": "MountPath",
3534
+ "output_required": false,
3535
+ "type": "string",
3536
+ "value_allowed_null": true
3537
+ }
3538
+ ],
3539
+ "usage": "out"
3393
3540
  }
3394
3541
  },
3395
3542
  "version": "1.0"
@@ -433,6 +433,58 @@ def doModifyDBInstanceName(args, parsed_globals):
433
433
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
434
434
 
435
435
 
436
+ def doDescribeDedicatedClusters(args, parsed_globals):
437
+ g_param = parse_global_arg(parsed_globals)
438
+
439
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
440
+ cred = credential.CVMRoleCredential()
441
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
442
+ cred = credential.STSAssumeRoleCredential(
443
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
444
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
445
+ )
446
+ 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):
447
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
448
+ else:
449
+ cred = credential.Credential(
450
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
451
+ )
452
+ http_profile = HttpProfile(
453
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
454
+ reqMethod="POST",
455
+ endpoint=g_param[OptionsDefine.Endpoint],
456
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
457
+ )
458
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
459
+ if g_param[OptionsDefine.Language]:
460
+ profile.language = g_param[OptionsDefine.Language]
461
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
462
+ client = mod.PostgresClient(cred, g_param[OptionsDefine.Region], profile)
463
+ client._sdkVersion += ("_CLI_" + __version__)
464
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
465
+ model = models.DescribeDedicatedClustersRequest()
466
+ model.from_json_string(json.dumps(args))
467
+ start_time = time.time()
468
+ while True:
469
+ rsp = client.DescribeDedicatedClusters(model)
470
+ result = rsp.to_json_string()
471
+ try:
472
+ json_obj = json.loads(result)
473
+ except TypeError as e:
474
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
475
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
476
+ break
477
+ cur_time = time.time()
478
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
479
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
480
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
481
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
482
+ else:
483
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
484
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
485
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
486
+
487
+
436
488
  def doDeleteParameterTemplate(args, parsed_globals):
437
489
  g_param = parse_global_arg(parsed_globals)
438
490
 
@@ -5236,6 +5288,7 @@ ACTION_MAP = {
5236
5288
  "ModifyAccountRemark": doModifyAccountRemark,
5237
5289
  "SetAutoRenewFlag": doSetAutoRenewFlag,
5238
5290
  "ModifyDBInstanceName": doModifyDBInstanceName,
5291
+ "DescribeDedicatedClusters": doDescribeDedicatedClusters,
5239
5292
  "DeleteParameterTemplate": doDeleteParameterTemplate,
5240
5293
  "DescribeDBInstanceParameters": doDescribeDBInstanceParameters,
5241
5294
  "DeleteServerlessDBInstance": doDeleteServerlessDBInstance,