tccli 3.0.1132.1__py2.py3-none-any.whl → 3.0.1134.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 (83) hide show
  1. tccli/__init__.py +1 -1
  2. tccli/services/apm/v20210622/api.json +1 -0
  3. tccli/services/apm/v20210622/examples.json +1 -1
  4. tccli/services/asr/v20190614/api.json +2 -2
  5. tccli/services/billing/v20180709/api.json +10 -0
  6. tccli/services/cam/v20190116/api.json +41 -12
  7. tccli/services/cdwch/v20200915/api.json +9 -9
  8. tccli/services/cdwch/v20200915/examples.json +1 -1
  9. tccli/services/cdwdoris/v20211228/api.json +18 -0
  10. tccli/services/cfw/v20190904/api.json +4 -4
  11. tccli/services/ckafka/v20190819/api.json +130 -74
  12. tccli/services/ckafka/v20190819/examples.json +17 -17
  13. tccli/services/cls/v20201016/api.json +1 -1
  14. tccli/services/cls/v20201016/examples.json +1 -1
  15. tccli/services/cmq/v20190304/api.json +53 -49
  16. tccli/services/cmq/v20190304/examples.json +2 -2
  17. tccli/services/cms/v20190321/api.json +2 -0
  18. tccli/services/cms/v20190321/examples.json +1 -1
  19. tccli/services/csip/v20221121/api.json +137 -42
  20. tccli/services/csip/v20221121/examples.json +4 -4
  21. tccli/services/cynosdb/cynosdb_client.py +57 -4
  22. tccli/services/cynosdb/v20190107/api.json +451 -0
  23. tccli/services/cynosdb/v20190107/examples.json +8 -0
  24. tccli/services/dlc/dlc_client.py +106 -0
  25. tccli/services/dlc/v20210125/api.json +181 -0
  26. tccli/services/dlc/v20210125/examples.json +16 -0
  27. tccli/services/dsgc/v20190723/api.json +65 -58
  28. tccli/services/dsgc/v20190723/examples.json +5 -5
  29. tccli/services/dts/dts_client.py +0 -53
  30. tccli/services/dts/v20180330/api.json +0 -98
  31. tccli/services/dts/v20180330/examples.json +0 -8
  32. tccli/services/eb/v20210416/examples.json +1 -1
  33. tccli/services/emr/v20190103/api.json +5 -5
  34. tccli/services/ess/ess_client.py +411 -305
  35. tccli/services/ess/v20201111/api.json +144 -0
  36. tccli/services/ess/v20201111/examples.json +16 -0
  37. tccli/services/essbasic/essbasic_client.py +110 -4
  38. tccli/services/essbasic/v20210526/api.json +139 -4
  39. tccli/services/essbasic/v20210526/examples.json +16 -0
  40. tccli/services/gaap/v20180529/api.json +1 -1
  41. tccli/services/gaap/v20180529/examples.json +0 -6
  42. tccli/services/iecp/v20210914/api.json +40 -40
  43. tccli/services/ims/v20201229/api.json +2 -2
  44. tccli/services/lke/lke_client.py +171 -12
  45. tccli/services/lke/v20231130/api.json +524 -0
  46. tccli/services/lke/v20231130/examples.json +24 -0
  47. tccli/services/mongodb/mongodb_client.py +57 -4
  48. tccli/services/mongodb/v20190725/api.json +96 -0
  49. tccli/services/mongodb/v20190725/examples.json +8 -0
  50. tccli/services/monitor/v20180724/api.json +47 -19
  51. tccli/services/monitor/v20180724/examples.json +4 -4
  52. tccli/services/mps/v20190612/api.json +57 -7
  53. tccli/services/mps/v20190612/examples.json +1 -1
  54. tccli/services/ocr/v20181119/api.json +373 -3
  55. tccli/services/organization/organization_client.py +118 -12
  56. tccli/services/organization/v20210331/api.json +68 -0
  57. tccli/services/organization/v20210331/examples.json +16 -0
  58. tccli/services/pts/v20210728/api.json +1 -1
  59. tccli/services/pts/v20210728/examples.json +1 -1
  60. tccli/services/rum/v20210622/api.json +2 -0
  61. tccli/services/rum/v20210622/examples.json +1 -1
  62. tccli/services/sms/v20210111/api.json +26 -26
  63. tccli/services/tcr/v20190924/api.json +13 -10
  64. tccli/services/tcr/v20190924/examples.json +2 -2
  65. tccli/services/tdmq/tdmq_client.py +443 -19
  66. tccli/services/tdmq/v20200217/api.json +570 -0
  67. tccli/services/tdmq/v20200217/examples.json +64 -0
  68. tccli/services/tke/tke_client.py +53 -0
  69. tccli/services/tke/v20180525/api.json +227 -41
  70. tccli/services/tke/v20180525/examples.json +26 -0
  71. tccli/services/trro/v20220325/api.json +6 -6
  72. tccli/services/trtc/v20190722/api.json +1 -1
  73. tccli/services/tse/v20201207/api.json +13 -2
  74. tccli/services/tsf/v20180326/api.json +47 -35
  75. tccli/services/tsf/v20180326/examples.json +4 -4
  76. tccli/services/waf/v20180125/api.json +65 -9
  77. tccli/services/waf/v20180125/examples.json +1 -1
  78. tccli/services/wedata/v20210820/api.json +30 -19
  79. {tccli-3.0.1132.1.dist-info → tccli-3.0.1134.1.dist-info}/METADATA +2 -2
  80. {tccli-3.0.1132.1.dist-info → tccli-3.0.1134.1.dist-info}/RECORD +83 -83
  81. {tccli-3.0.1132.1.dist-info → tccli-3.0.1134.1.dist-info}/WHEEL +0 -0
  82. {tccli-3.0.1132.1.dist-info → tccli-3.0.1134.1.dist-info}/entry_points.txt +0 -0
  83. {tccli-3.0.1132.1.dist-info → tccli-3.0.1134.1.dist-info}/license_files/LICENSE +0 -0
@@ -854,6 +854,13 @@
854
854
  "output": "RemoveClusterSlaveZoneResponse",
855
855
  "status": "online"
856
856
  },
857
+ "RenewClusters": {
858
+ "document": "续费集群",
859
+ "input": "RenewClustersRequest",
860
+ "name": "续费集群",
861
+ "output": "RenewClustersResponse",
862
+ "status": "online"
863
+ },
857
864
  "ResetAccountPassword": {
858
865
  "document": "本接口(ResetAccountPassword)用于修改数据库账号密码",
859
866
  "input": "ResetAccountPasswordRequest",
@@ -2476,6 +2483,16 @@
2476
2483
  "type": "string",
2477
2484
  "value_allowed_null": false
2478
2485
  },
2486
+ {
2487
+ "disabled": false,
2488
+ "document": "地域\n注意:此字段可能返回 null,表示取不到有效值。",
2489
+ "example": "无",
2490
+ "member": "string",
2491
+ "name": "Region",
2492
+ "output_required": false,
2493
+ "type": "string",
2494
+ "value_allowed_null": true
2495
+ },
2479
2496
  {
2480
2497
  "disabled": false,
2481
2498
  "document": "任务创建时间",
@@ -2785,6 +2802,16 @@
2785
2802
  "output_required": false,
2786
2803
  "type": "object",
2787
2804
  "value_allowed_null": true
2805
+ },
2806
+ {
2807
+ "disabled": false,
2808
+ "document": "实例日志投递信息\n\n注意:此字段可能返回 null,表示取不到有效值。",
2809
+ "example": "无",
2810
+ "member": "InstanceCLSDeliveryInfo",
2811
+ "name": "InstanceCLSDeliveryInfos",
2812
+ "output_required": false,
2813
+ "type": "list",
2814
+ "value_allowed_null": true
2788
2815
  }
2789
2816
  ],
2790
2817
  "usage": "out"
@@ -11470,6 +11497,58 @@
11470
11497
  ],
11471
11498
  "usage": "both"
11472
11499
  },
11500
+ "ExchangeInstanceInfo": {
11501
+ "document": "交换实例信息",
11502
+ "members": [
11503
+ {
11504
+ "disabled": false,
11505
+ "document": "源实例信息\n注意:此字段可能返回 null,表示取不到有效值。",
11506
+ "example": "无",
11507
+ "member": "RollbackInstanceInfo",
11508
+ "name": "SrcInstanceInfo",
11509
+ "output_required": false,
11510
+ "type": "object",
11511
+ "value_allowed_null": true
11512
+ },
11513
+ {
11514
+ "disabled": false,
11515
+ "document": "目标实例信息\n注意:此字段可能返回 null,表示取不到有效值。",
11516
+ "example": "无",
11517
+ "member": "RollbackInstanceInfo",
11518
+ "name": "DstInstanceInfo",
11519
+ "output_required": false,
11520
+ "type": "object",
11521
+ "value_allowed_null": true
11522
+ }
11523
+ ],
11524
+ "usage": "out"
11525
+ },
11526
+ "ExchangeRoGroupInfo": {
11527
+ "document": "交换RO组信息",
11528
+ "members": [
11529
+ {
11530
+ "disabled": false,
11531
+ "document": "源RO组信息\n注意:此字段可能返回 null,表示取不到有效值。",
11532
+ "example": "无",
11533
+ "member": "RollbackRoGroupInfo",
11534
+ "name": "SrcRoGroupInfo",
11535
+ "output_required": false,
11536
+ "type": "object",
11537
+ "value_allowed_null": true
11538
+ },
11539
+ {
11540
+ "disabled": false,
11541
+ "document": "目标RO组信息\n注意:此字段可能返回 null,表示取不到有效值。",
11542
+ "example": "无",
11543
+ "member": "RollbackRoGroupInfo",
11544
+ "name": "DstRoGroupInfo",
11545
+ "output_required": false,
11546
+ "type": "object",
11547
+ "value_allowed_null": true
11548
+ }
11549
+ ],
11550
+ "usage": "out"
11551
+ },
11473
11552
  "ExportInstanceErrorLogsRequest": {
11474
11553
  "document": "ExportInstanceErrorLogs请求参数结构体",
11475
11554
  "members": [
@@ -17225,6 +17304,110 @@
17225
17304
  ],
17226
17305
  "type": "object"
17227
17306
  },
17307
+ "RenewClustersRequest": {
17308
+ "document": "RenewClusters请求参数结构体",
17309
+ "members": [
17310
+ {
17311
+ "disabled": false,
17312
+ "document": "集群ID",
17313
+ "example": "cynosdbpg-bzxxrmtq",
17314
+ "member": "string",
17315
+ "name": "ClusterId",
17316
+ "required": true,
17317
+ "type": "string"
17318
+ },
17319
+ {
17320
+ "disabled": false,
17321
+ "document": "续费时长",
17322
+ "example": "1",
17323
+ "member": "float",
17324
+ "name": "TimeSpan",
17325
+ "required": true,
17326
+ "type": "float"
17327
+ },
17328
+ {
17329
+ "disabled": false,
17330
+ "document": "时间单位 y,m,d,h,i,s",
17331
+ "example": "m",
17332
+ "member": "string",
17333
+ "name": "TimeUnit",
17334
+ "required": true,
17335
+ "type": "string"
17336
+ },
17337
+ {
17338
+ "disabled": false,
17339
+ "document": "交易模式 0-下单并支付 1-下单",
17340
+ "example": "0",
17341
+ "member": "int64",
17342
+ "name": "DealMode",
17343
+ "required": false,
17344
+ "type": "int"
17345
+ }
17346
+ ],
17347
+ "type": "object"
17348
+ },
17349
+ "RenewClustersResponse": {
17350
+ "document": "RenewClusters返回参数结构体",
17351
+ "members": [
17352
+ {
17353
+ "disabled": false,
17354
+ "document": "预付费总订单号\n注意:此字段可能返回 null,表示取不到有效值。",
17355
+ "example": "123",
17356
+ "member": "string",
17357
+ "name": "BigDealIds",
17358
+ "required": true,
17359
+ "type": "list",
17360
+ "value_allowed_null": true
17361
+ },
17362
+ {
17363
+ "disabled": false,
17364
+ "document": "退款订单号\n注意:此字段可能返回 null,表示取不到有效值。",
17365
+ "example": "[134]",
17366
+ "member": "string",
17367
+ "name": "DealNames",
17368
+ "required": true,
17369
+ "type": "list",
17370
+ "value_allowed_null": true
17371
+ },
17372
+ {
17373
+ "disabled": false,
17374
+ "document": "冻结流水,一次开通一个冻结流水\n注意:此字段可能返回 null,表示取不到有效值。",
17375
+ "example": "0",
17376
+ "member": "string",
17377
+ "name": "TranId",
17378
+ "required": true,
17379
+ "type": "string",
17380
+ "value_allowed_null": true
17381
+ },
17382
+ {
17383
+ "disabled": false,
17384
+ "document": "每个订单号对应的发货资源id列表\n注意:此字段可能返回 null,表示取不到有效值。",
17385
+ "example": "无",
17386
+ "member": "string",
17387
+ "name": "ResourceIds",
17388
+ "required": true,
17389
+ "type": "list",
17390
+ "value_allowed_null": true
17391
+ },
17392
+ {
17393
+ "disabled": false,
17394
+ "document": "集群id列表\n注意:此字段可能返回 null,表示取不到有效值。",
17395
+ "example": "无",
17396
+ "member": "string",
17397
+ "name": "ClusterIds",
17398
+ "required": true,
17399
+ "type": "list",
17400
+ "value_allowed_null": true
17401
+ },
17402
+ {
17403
+ "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
17404
+ "member": "string",
17405
+ "name": "RequestId",
17406
+ "type": "string"
17407
+ }
17408
+ ],
17409
+ "type": "object"
17410
+ },
17228
17411
  "ResetAccountPasswordRequest": {
17229
17412
  "document": "ResetAccountPassword请求参数结构体",
17230
17413
  "members": [
@@ -17678,6 +17861,16 @@
17678
17861
  "output_required": true,
17679
17862
  "type": "string",
17680
17863
  "value_allowed_null": true
17864
+ },
17865
+ {
17866
+ "disabled": false,
17867
+ "document": "回档进程\n注意:此字段可能返回 null,表示取不到有效值。",
17868
+ "example": "无",
17869
+ "member": "RollbackProcessInfo",
17870
+ "name": "RollbackProcess",
17871
+ "output_required": false,
17872
+ "type": "object",
17873
+ "value_allowed_null": true
17681
17874
  }
17682
17875
  ],
17683
17876
  "usage": "out"
@@ -17710,6 +17903,264 @@
17710
17903
  ],
17711
17904
  "usage": "both"
17712
17905
  },
17906
+ "RollbackInstanceInfo": {
17907
+ "document": "回档实例信息",
17908
+ "members": [
17909
+ {
17910
+ "disabled": false,
17911
+ "document": "集群ID\n注意:此字段可能返回 null,表示取不到有效值。",
17912
+ "example": "无",
17913
+ "member": "string",
17914
+ "name": "ClusterId",
17915
+ "output_required": false,
17916
+ "type": "string",
17917
+ "value_allowed_null": true
17918
+ },
17919
+ {
17920
+ "disabled": false,
17921
+ "document": "集群名称\n注意:此字段可能返回 null,表示取不到有效值。",
17922
+ "example": "无",
17923
+ "member": "string",
17924
+ "name": "ClusterName",
17925
+ "output_required": false,
17926
+ "type": "string",
17927
+ "value_allowed_null": true
17928
+ },
17929
+ {
17930
+ "disabled": false,
17931
+ "document": "vpc信息\n注意:此字段可能返回 null,表示取不到有效值。",
17932
+ "example": "无",
17933
+ "member": "string",
17934
+ "name": "UniqVpcId",
17935
+ "output_required": false,
17936
+ "type": "string",
17937
+ "value_allowed_null": true
17938
+ },
17939
+ {
17940
+ "disabled": false,
17941
+ "document": "子网信息\n注意:此字段可能返回 null,表示取不到有效值。",
17942
+ "example": "无",
17943
+ "member": "string",
17944
+ "name": "UniqSubnetId",
17945
+ "output_required": false,
17946
+ "type": "string",
17947
+ "value_allowed_null": true
17948
+ },
17949
+ {
17950
+ "disabled": false,
17951
+ "document": "vip信息\n注意:此字段可能返回 null,表示取不到有效值。",
17952
+ "example": "无",
17953
+ "member": "string",
17954
+ "name": "Vip",
17955
+ "output_required": false,
17956
+ "type": "string",
17957
+ "value_allowed_null": true
17958
+ },
17959
+ {
17960
+ "disabled": false,
17961
+ "document": "vport信息\n注意:此字段可能返回 null,表示取不到有效值。",
17962
+ "example": "无",
17963
+ "member": "int64",
17964
+ "name": "Vport",
17965
+ "output_required": false,
17966
+ "type": "int",
17967
+ "value_allowed_null": true
17968
+ },
17969
+ {
17970
+ "disabled": false,
17971
+ "document": "实例ID\n注意:此字段可能返回 null,表示取不到有效值。",
17972
+ "example": "无",
17973
+ "member": "string",
17974
+ "name": "InstanceId",
17975
+ "output_required": false,
17976
+ "type": "string",
17977
+ "value_allowed_null": true
17978
+ },
17979
+ {
17980
+ "disabled": false,
17981
+ "document": "实例名称\n注意:此字段可能返回 null,表示取不到有效值。",
17982
+ "example": "无",
17983
+ "member": "string",
17984
+ "name": "InstanceName",
17985
+ "output_required": false,
17986
+ "type": "string",
17987
+ "value_allowed_null": true
17988
+ },
17989
+ {
17990
+ "disabled": false,
17991
+ "document": "状态\n注意:此字段可能返回 null,表示取不到有效值。",
17992
+ "example": "无",
17993
+ "member": "string",
17994
+ "name": "Status",
17995
+ "output_required": false,
17996
+ "type": "string",
17997
+ "value_allowed_null": true
17998
+ },
17999
+ {
18000
+ "disabled": false,
18001
+ "document": "cpu大小\n注意:此字段可能返回 null,表示取不到有效值。",
18002
+ "example": "无",
18003
+ "member": "int64",
18004
+ "name": "Cpu",
18005
+ "output_required": false,
18006
+ "type": "int",
18007
+ "value_allowed_null": true
18008
+ },
18009
+ {
18010
+ "disabled": false,
18011
+ "document": "内存大小\n注意:此字段可能返回 null,表示取不到有效值。",
18012
+ "example": "无",
18013
+ "member": "int64",
18014
+ "name": "Mem",
18015
+ "output_required": false,
18016
+ "type": "int",
18017
+ "value_allowed_null": true
18018
+ },
18019
+ {
18020
+ "disabled": false,
18021
+ "document": "存储大小\n注意:此字段可能返回 null,表示取不到有效值。",
18022
+ "example": "无",
18023
+ "member": "int64",
18024
+ "name": "StorageLimit",
18025
+ "output_required": false,
18026
+ "type": "int",
18027
+ "value_allowed_null": true
18028
+ }
18029
+ ],
18030
+ "usage": "out"
18031
+ },
18032
+ "RollbackProcessInfo": {
18033
+ "document": "回档进度详情",
18034
+ "members": [
18035
+ {
18036
+ "disabled": false,
18037
+ "document": "是否可以交换vip\n注意:此字段可能返回 null,表示取不到有效值。",
18038
+ "example": "无",
18039
+ "member": "bool",
18040
+ "name": "IsVipSwitchable",
18041
+ "output_required": false,
18042
+ "type": "bool",
18043
+ "value_allowed_null": true
18044
+ },
18045
+ {
18046
+ "disabled": false,
18047
+ "document": "vip可交换时间\n注意:此字段可能返回 null,表示取不到有效值。",
18048
+ "example": "无",
18049
+ "member": "string",
18050
+ "name": "VipSwitchableTime",
18051
+ "output_required": false,
18052
+ "type": "string",
18053
+ "value_allowed_null": true
18054
+ },
18055
+ {
18056
+ "disabled": false,
18057
+ "document": "交换实例列表\n注意:此字段可能返回 null,表示取不到有效值。",
18058
+ "example": "无",
18059
+ "member": "ExchangeInstanceInfo",
18060
+ "name": "ExchangeInstanceInfoList",
18061
+ "output_required": false,
18062
+ "type": "list",
18063
+ "value_allowed_null": true
18064
+ },
18065
+ {
18066
+ "disabled": false,
18067
+ "document": "交换RO组列表\n注意:此字段可能返回 null,表示取不到有效值。",
18068
+ "example": "无",
18069
+ "member": "ExchangeRoGroupInfo",
18070
+ "name": "ExchangeRoGroupInfoList",
18071
+ "output_required": false,
18072
+ "type": "list",
18073
+ "value_allowed_null": true
18074
+ },
18075
+ {
18076
+ "disabled": false,
18077
+ "document": "当前步骤\n注意:此字段可能返回 null,表示取不到有效值。",
18078
+ "example": "无",
18079
+ "member": "string",
18080
+ "name": "CurrentStep",
18081
+ "output_required": false,
18082
+ "type": "string",
18083
+ "value_allowed_null": true
18084
+ },
18085
+ {
18086
+ "disabled": false,
18087
+ "document": "当前步骤进度\n注意:此字段可能返回 null,表示取不到有效值。",
18088
+ "example": "无",
18089
+ "member": "int64",
18090
+ "name": "CurrentStepProgress",
18091
+ "output_required": false,
18092
+ "type": "int",
18093
+ "value_allowed_null": true
18094
+ },
18095
+ {
18096
+ "disabled": false,
18097
+ "document": "当前步骤剩余时间\n注意:此字段可能返回 null,表示取不到有效值。",
18098
+ "example": "无",
18099
+ "member": "string",
18100
+ "name": "CurrentStepRemainingTime",
18101
+ "output_required": false,
18102
+ "type": "string",
18103
+ "value_allowed_null": true
18104
+ }
18105
+ ],
18106
+ "usage": "out"
18107
+ },
18108
+ "RollbackRoGroupInfo": {
18109
+ "document": "回档RO组信息",
18110
+ "members": [
18111
+ {
18112
+ "disabled": false,
18113
+ "document": "实例组ID\n注意:此字段可能返回 null,表示取不到有效值。",
18114
+ "example": "无",
18115
+ "member": "string",
18116
+ "name": "InstanceGroupId",
18117
+ "output_required": false,
18118
+ "type": "string",
18119
+ "value_allowed_null": true
18120
+ },
18121
+ {
18122
+ "disabled": false,
18123
+ "document": "vpc信息\n注意:此字段可能返回 null,表示取不到有效值。",
18124
+ "example": "无",
18125
+ "member": "string",
18126
+ "name": "UniqVpcId",
18127
+ "output_required": false,
18128
+ "type": "string",
18129
+ "value_allowed_null": true
18130
+ },
18131
+ {
18132
+ "disabled": false,
18133
+ "document": "子网信息\n注意:此字段可能返回 null,表示取不到有效值。",
18134
+ "example": "无",
18135
+ "member": "string",
18136
+ "name": "UniqSubnetId",
18137
+ "output_required": false,
18138
+ "type": "string",
18139
+ "value_allowed_null": true
18140
+ },
18141
+ {
18142
+ "disabled": false,
18143
+ "document": "vip信息\n注意:此字段可能返回 null,表示取不到有效值。",
18144
+ "example": "无",
18145
+ "member": "string",
18146
+ "name": "Vip",
18147
+ "output_required": false,
18148
+ "type": "string",
18149
+ "value_allowed_null": true
18150
+ },
18151
+ {
18152
+ "disabled": false,
18153
+ "document": "vport信息\n注意:此字段可能返回 null,表示取不到有效值。",
18154
+ "example": "无",
18155
+ "member": "int64",
18156
+ "name": "Vport",
18157
+ "output_required": false,
18158
+ "type": "int",
18159
+ "value_allowed_null": true
18160
+ }
18161
+ ],
18162
+ "usage": "out"
18163
+ },
17713
18164
  "RollbackTable": {
17714
18165
  "document": "回档数据库及表",
17715
18166
  "members": [
@@ -1000,6 +1000,14 @@
1000
1000
  "title": "关闭多可用区部署"
1001
1001
  }
1002
1002
  ],
1003
+ "RenewClusters": [
1004
+ {
1005
+ "document": "",
1006
+ "input": "POST / HTTP/1.1\nHost: cynosdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RenewClusters\n<公共请求参数>\n\n{\n \"TimeUnit\": \"xx\",\n \"DealMode\": 0,\n \"ClusterId\": \"xx\",\n \"TimeSpan\": 0.0\n}",
1007
+ "output": "{\n \"Response\": {\n \"TranId\": \"\",\n \"BigDealIds\": null,\n \"ResourceIds\": [],\n \"RequestId\": \"11b4ce54-xxxx\",\n \"ClusterIds\": [],\n \"DealNames\": [\n \"xxx\",\n \"xxx\",\n \"xxx\"\n ]\n }\n}",
1008
+ "title": "续费集群"
1009
+ }
1010
+ ],
1003
1011
  "ResetAccountPassword": [
1004
1012
  {
1005
1013
  "document": "修改数据库账号密码",
@@ -2565,6 +2565,58 @@ def doReportHeartbeatMetaData(args, parsed_globals):
2565
2565
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2566
2566
 
2567
2567
 
2568
+ def doDescribeSparkSessionBatchSQLCost(args, parsed_globals):
2569
+ g_param = parse_global_arg(parsed_globals)
2570
+
2571
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
2572
+ cred = credential.CVMRoleCredential()
2573
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
2574
+ cred = credential.STSAssumeRoleCredential(
2575
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
2576
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
2577
+ )
2578
+ 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):
2579
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
2580
+ else:
2581
+ cred = credential.Credential(
2582
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
2583
+ )
2584
+ http_profile = HttpProfile(
2585
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
2586
+ reqMethod="POST",
2587
+ endpoint=g_param[OptionsDefine.Endpoint],
2588
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
2589
+ )
2590
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
2591
+ if g_param[OptionsDefine.Language]:
2592
+ profile.language = g_param[OptionsDefine.Language]
2593
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
2594
+ client = mod.DlcClient(cred, g_param[OptionsDefine.Region], profile)
2595
+ client._sdkVersion += ("_CLI_" + __version__)
2596
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
2597
+ model = models.DescribeSparkSessionBatchSQLCostRequest()
2598
+ model.from_json_string(json.dumps(args))
2599
+ start_time = time.time()
2600
+ while True:
2601
+ rsp = client.DescribeSparkSessionBatchSQLCost(model)
2602
+ result = rsp.to_json_string()
2603
+ try:
2604
+ json_obj = json.loads(result)
2605
+ except TypeError as e:
2606
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
2607
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
2608
+ break
2609
+ cur_time = time.time()
2610
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
2611
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
2612
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
2613
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
2614
+ else:
2615
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
2616
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
2617
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
2618
+
2619
+
2568
2620
  def doDescribeUpdatableDataEngines(args, parsed_globals):
2569
2621
  g_param = parse_global_arg(parsed_globals)
2570
2622
 
@@ -5061,6 +5113,58 @@ def doDescribeEngineUsageInfo(args, parsed_globals):
5061
5113
  FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5062
5114
 
5063
5115
 
5116
+ def doDescribeTasksOverview(args, parsed_globals):
5117
+ g_param = parse_global_arg(parsed_globals)
5118
+
5119
+ if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
5120
+ cred = credential.CVMRoleCredential()
5121
+ elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
5122
+ cred = credential.STSAssumeRoleCredential(
5123
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
5124
+ g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
5125
+ )
5126
+ 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):
5127
+ cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
5128
+ else:
5129
+ cred = credential.Credential(
5130
+ g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
5131
+ )
5132
+ http_profile = HttpProfile(
5133
+ reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
5134
+ reqMethod="POST",
5135
+ endpoint=g_param[OptionsDefine.Endpoint],
5136
+ proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
5137
+ )
5138
+ profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
5139
+ if g_param[OptionsDefine.Language]:
5140
+ profile.language = g_param[OptionsDefine.Language]
5141
+ mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
5142
+ client = mod.DlcClient(cred, g_param[OptionsDefine.Region], profile)
5143
+ client._sdkVersion += ("_CLI_" + __version__)
5144
+ models = MODELS_MAP[g_param[OptionsDefine.Version]]
5145
+ model = models.DescribeTasksOverviewRequest()
5146
+ model.from_json_string(json.dumps(args))
5147
+ start_time = time.time()
5148
+ while True:
5149
+ rsp = client.DescribeTasksOverview(model)
5150
+ result = rsp.to_json_string()
5151
+ try:
5152
+ json_obj = json.loads(result)
5153
+ except TypeError as e:
5154
+ json_obj = json.loads(result.decode('utf-8')) # python3.3
5155
+ if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
5156
+ break
5157
+ cur_time = time.time()
5158
+ if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
5159
+ raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
5160
+ (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
5161
+ search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
5162
+ else:
5163
+ print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
5164
+ time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
5165
+ FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
5166
+
5167
+
5064
5168
  def doUpdateDataEngineConfig(args, parsed_globals):
5065
5169
  g_param = parse_global_arg(parsed_globals)
5066
5170
 
@@ -7253,6 +7357,7 @@ ACTION_MAP = {
7253
7357
  "DescribeTablesName": doDescribeTablesName,
7254
7358
  "DeleteCHDFSBindingProduct": doDeleteCHDFSBindingProduct,
7255
7359
  "ReportHeartbeatMetaData": doReportHeartbeatMetaData,
7360
+ "DescribeSparkSessionBatchSQLCost": doDescribeSparkSessionBatchSQLCost,
7256
7361
  "DescribeUpdatableDataEngines": doDescribeUpdatableDataEngines,
7257
7362
  "CreateInternalTable": doCreateInternalTable,
7258
7363
  "GenerateCreateMangedTableSql": doGenerateCreateMangedTableSql,
@@ -7301,6 +7406,7 @@ ACTION_MAP = {
7301
7406
  "DeleteDataEngine": doDeleteDataEngine,
7302
7407
  "DeleteUser": doDeleteUser,
7303
7408
  "DescribeEngineUsageInfo": doDescribeEngineUsageInfo,
7409
+ "DescribeTasksOverview": doDescribeTasksOverview,
7304
7410
  "UpdateDataEngineConfig": doUpdateDataEngineConfig,
7305
7411
  "CreateTasksInOrder": doCreateTasksInOrder,
7306
7412
  "UpdateRowFilter": doUpdateRowFilter,