tccli 3.0.1134.1__py2.py3-none-any.whl → 3.0.1136.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/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/cdb_client.py +57 -4
- tccli/services/cdb/v20170320/api.json +270 -0
- tccli/services/cdb/v20170320/examples.json +8 -0
- tccli/services/ckafka/v20190819/api.json +1 -1
- tccli/services/cls/v20201016/api.json +3 -3
- tccli/services/dlc/dlc_client.py +53 -0
- tccli/services/dlc/v20210125/api.json +138 -4
- tccli/services/dlc/v20210125/examples.json +13 -5
- tccli/services/dsgc/v20190723/api.json +35 -35
- 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 +3 -3
- tccli/services/facefusion/v20181201/api.json +12 -12
- tccli/services/facefusion/v20181201/examples.json +4 -4
- tccli/services/iotexplorer/iotexplorer_client.py +53 -0
- tccli/services/iotexplorer/v20190423/api.json +137 -4
- tccli/services/iotexplorer/v20190423/examples.json +8 -0
- tccli/services/lcic/v20220817/api.json +4 -4
- tccli/services/lighthouse/v20200324/api.json +15 -15
- tccli/services/lighthouse/v20200324/examples.json +7 -7
- tccli/services/lke/lke_client.py +175 -16
- tccli/services/lke/v20231130/api.json +782 -165
- tccli/services/lke/v20231130/examples.json +35 -5
- tccli/services/ocr/v20181119/api.json +1 -1
- tccli/services/ses/v20201002/api.json +20 -1
- tccli/services/tdmq/tdmq_client.py +53 -0
- tccli/services/tdmq/v20200217/api.json +321 -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 +33 -21
- tccli/services/tke/v20180525/examples.json +4 -4
- 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 +48 -66
- 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/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-3.0.1134.1.dist-info → tccli-3.0.1136.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1134.1.dist-info → tccli-3.0.1136.1.dist-info}/RECORD +58 -54
- {tccli-3.0.1134.1.dist-info → tccli-3.0.1136.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1134.1.dist-info → tccli-3.0.1136.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1134.1.dist-info → tccli-3.0.1136.1.dist-info}/license_files/LICENSE +0 -0
@@ -588,6 +588,13 @@
|
|
588
588
|
"output": "DescribeInstanceParamsResponse",
|
589
589
|
"status": "online"
|
590
590
|
},
|
591
|
+
"DescribeInstanceUpgradeType": {
|
592
|
+
"document": "本接口(DescribeInstanceUpgradeType)用于查询数据库实例升级类型。",
|
593
|
+
"input": "DescribeInstanceUpgradeTypeRequest",
|
594
|
+
"name": "查询数据库实例升级类型",
|
595
|
+
"output": "DescribeInstanceUpgradeTypeResponse",
|
596
|
+
"status": "online"
|
597
|
+
},
|
591
598
|
"DescribeLocalBinlogConfig": {
|
592
599
|
"document": "该接口用于查询实例本地binlog保留策略。",
|
593
600
|
"input": "DescribeLocalBinlogConfigRequest",
|
@@ -4223,6 +4230,30 @@
|
|
4223
4230
|
],
|
4224
4231
|
"usage": "both"
|
4225
4232
|
},
|
4233
|
+
"ClusterTopology": {
|
4234
|
+
"document": "集群版的节点拓扑配置。",
|
4235
|
+
"members": [
|
4236
|
+
{
|
4237
|
+
"disabled": false,
|
4238
|
+
"document": "RW 节点拓扑。",
|
4239
|
+
"example": "无",
|
4240
|
+
"member": "ReadWriteNode",
|
4241
|
+
"name": "ReadWriteNode",
|
4242
|
+
"required": false,
|
4243
|
+
"type": "object"
|
4244
|
+
},
|
4245
|
+
{
|
4246
|
+
"disabled": false,
|
4247
|
+
"document": "RO 节点拓扑。",
|
4248
|
+
"example": "无",
|
4249
|
+
"member": "ReadonlyNode",
|
4250
|
+
"name": "ReadOnlyNodes",
|
4251
|
+
"required": false,
|
4252
|
+
"type": "list"
|
4253
|
+
}
|
4254
|
+
],
|
4255
|
+
"usage": "in"
|
4256
|
+
},
|
4226
4257
|
"ColumnPrivilege": {
|
4227
4258
|
"document": "列权限信息",
|
4228
4259
|
"members": [
|
@@ -10858,6 +10889,161 @@
|
|
10858
10889
|
],
|
10859
10890
|
"type": "object"
|
10860
10891
|
},
|
10892
|
+
"DescribeInstanceUpgradeTypeRequest": {
|
10893
|
+
"document": "DescribeInstanceUpgradeType请求参数结构体",
|
10894
|
+
"members": [
|
10895
|
+
{
|
10896
|
+
"disabled": false,
|
10897
|
+
"document": "实例id",
|
10898
|
+
"example": "cdb-xxx",
|
10899
|
+
"member": "string",
|
10900
|
+
"name": "InstanceId",
|
10901
|
+
"required": true,
|
10902
|
+
"type": "string"
|
10903
|
+
},
|
10904
|
+
{
|
10905
|
+
"disabled": false,
|
10906
|
+
"document": "目标实例cpu",
|
10907
|
+
"example": "2",
|
10908
|
+
"member": "float",
|
10909
|
+
"name": "DstCpu",
|
10910
|
+
"required": true,
|
10911
|
+
"type": "float"
|
10912
|
+
},
|
10913
|
+
{
|
10914
|
+
"disabled": false,
|
10915
|
+
"document": "目标实例内存",
|
10916
|
+
"example": "4000",
|
10917
|
+
"member": "uint64",
|
10918
|
+
"name": "DstMemory",
|
10919
|
+
"required": true,
|
10920
|
+
"type": "int"
|
10921
|
+
},
|
10922
|
+
{
|
10923
|
+
"disabled": false,
|
10924
|
+
"document": "目标实例磁盘",
|
10925
|
+
"example": "8000",
|
10926
|
+
"member": "uint64",
|
10927
|
+
"name": "DstDisk",
|
10928
|
+
"required": true,
|
10929
|
+
"type": "int"
|
10930
|
+
},
|
10931
|
+
{
|
10932
|
+
"disabled": false,
|
10933
|
+
"document": "目标实例版本",
|
10934
|
+
"example": "5.7",
|
10935
|
+
"member": "string",
|
10936
|
+
"name": "DstVersion",
|
10937
|
+
"required": false,
|
10938
|
+
"type": "string"
|
10939
|
+
},
|
10940
|
+
{
|
10941
|
+
"disabled": false,
|
10942
|
+
"document": "目标实例部署模型",
|
10943
|
+
"example": "0",
|
10944
|
+
"member": "int64",
|
10945
|
+
"name": "DstDeployMode",
|
10946
|
+
"required": false,
|
10947
|
+
"type": "int"
|
10948
|
+
},
|
10949
|
+
{
|
10950
|
+
"disabled": false,
|
10951
|
+
"document": "目标实例复制类型",
|
10952
|
+
"example": "0",
|
10953
|
+
"member": "int64",
|
10954
|
+
"name": "DstProtectMode",
|
10955
|
+
"required": false,
|
10956
|
+
"type": "int"
|
10957
|
+
},
|
10958
|
+
{
|
10959
|
+
"disabled": false,
|
10960
|
+
"document": "目标实例备机1可用区",
|
10961
|
+
"example": "100001",
|
10962
|
+
"member": "int64",
|
10963
|
+
"name": "DstSlaveZone",
|
10964
|
+
"required": false,
|
10965
|
+
"type": "int"
|
10966
|
+
},
|
10967
|
+
{
|
10968
|
+
"disabled": false,
|
10969
|
+
"document": "目标实例备机2可用区",
|
10970
|
+
"example": "100001",
|
10971
|
+
"member": "int64",
|
10972
|
+
"name": "DstBackupZone",
|
10973
|
+
"required": false,
|
10974
|
+
"type": "int"
|
10975
|
+
},
|
10976
|
+
{
|
10977
|
+
"disabled": false,
|
10978
|
+
"document": "目标实例类型",
|
10979
|
+
"example": "CUSTOM",
|
10980
|
+
"member": "string",
|
10981
|
+
"name": "DstCdbType",
|
10982
|
+
"required": false,
|
10983
|
+
"type": "string"
|
10984
|
+
},
|
10985
|
+
{
|
10986
|
+
"disabled": false,
|
10987
|
+
"document": "目标实例主可用区",
|
10988
|
+
"example": "100001",
|
10989
|
+
"member": "int64",
|
10990
|
+
"name": "DstZoneId",
|
10991
|
+
"required": false,
|
10992
|
+
"type": "int"
|
10993
|
+
},
|
10994
|
+
{
|
10995
|
+
"disabled": false,
|
10996
|
+
"document": "独享集群CDB实例的节点分布情况",
|
10997
|
+
"example": "无",
|
10998
|
+
"member": "NodeDistribution",
|
10999
|
+
"name": "NodeDistribution",
|
11000
|
+
"required": false,
|
11001
|
+
"type": "object"
|
11002
|
+
},
|
11003
|
+
{
|
11004
|
+
"disabled": false,
|
11005
|
+
"document": "集群版的节点拓扑配置",
|
11006
|
+
"example": "无",
|
11007
|
+
"member": "ClusterTopology",
|
11008
|
+
"name": "ClusterTopology",
|
11009
|
+
"required": false,
|
11010
|
+
"type": "object"
|
11011
|
+
}
|
11012
|
+
],
|
11013
|
+
"type": "object"
|
11014
|
+
},
|
11015
|
+
"DescribeInstanceUpgradeTypeResponse": {
|
11016
|
+
"document": "DescribeInstanceUpgradeType返回参数结构体",
|
11017
|
+
"members": [
|
11018
|
+
{
|
11019
|
+
"disabled": false,
|
11020
|
+
"document": "实例id",
|
11021
|
+
"example": "cdb-xxx",
|
11022
|
+
"member": "string",
|
11023
|
+
"name": "InstanceId",
|
11024
|
+
"output_required": true,
|
11025
|
+
"type": "string",
|
11026
|
+
"value_allowed_null": false
|
11027
|
+
},
|
11028
|
+
{
|
11029
|
+
"disabled": false,
|
11030
|
+
"document": "实例升级类型",
|
11031
|
+
"example": "Trsf",
|
11032
|
+
"member": "string",
|
11033
|
+
"name": "UpgradeType",
|
11034
|
+
"output_required": true,
|
11035
|
+
"type": "string",
|
11036
|
+
"value_allowed_null": false
|
11037
|
+
},
|
11038
|
+
{
|
11039
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
11040
|
+
"member": "string",
|
11041
|
+
"name": "RequestId",
|
11042
|
+
"type": "string"
|
11043
|
+
}
|
11044
|
+
],
|
11045
|
+
"type": "object"
|
11046
|
+
},
|
10861
11047
|
"DescribeLocalBinlogConfigRequest": {
|
10862
11048
|
"document": "DescribeLocalBinlogConfig请求参数结构体",
|
10863
11049
|
"members": [
|
@@ -16097,6 +16283,42 @@
|
|
16097
16283
|
],
|
16098
16284
|
"type": "object"
|
16099
16285
|
},
|
16286
|
+
"NodeDistribution": {
|
16287
|
+
"document": "独享集群CDB实例的节点分布情况",
|
16288
|
+
"members": [
|
16289
|
+
{
|
16290
|
+
"disabled": false,
|
16291
|
+
"document": "主实例Master节点所在主机ID或者只读实例所在主机ID",
|
16292
|
+
"example": "dch-fexbu7pp",
|
16293
|
+
"member": "string",
|
16294
|
+
"name": "Node",
|
16295
|
+
"required": true,
|
16296
|
+
"type": "string",
|
16297
|
+
"value_allowed_null": false
|
16298
|
+
},
|
16299
|
+
{
|
16300
|
+
"disabled": false,
|
16301
|
+
"document": "主实例第一Slave节点所在主机ID",
|
16302
|
+
"example": "dch-cawss6q",
|
16303
|
+
"member": "string",
|
16304
|
+
"name": "SlaveNodeOne",
|
16305
|
+
"required": true,
|
16306
|
+
"type": "string",
|
16307
|
+
"value_allowed_null": false
|
16308
|
+
},
|
16309
|
+
{
|
16310
|
+
"disabled": false,
|
16311
|
+
"document": "主实例第二Slave节点所在主机ID",
|
16312
|
+
"example": "dch-bsxj39l",
|
16313
|
+
"member": "string",
|
16314
|
+
"name": "SlaveNodeTwo",
|
16315
|
+
"required": true,
|
16316
|
+
"type": "string",
|
16317
|
+
"value_allowed_null": false
|
16318
|
+
}
|
16319
|
+
],
|
16320
|
+
"usage": "in"
|
16321
|
+
},
|
16100
16322
|
"OfflineIsolatedInstancesRequest": {
|
16101
16323
|
"document": "OfflineIsolatedInstances请求参数结构体",
|
16102
16324
|
"members": [
|
@@ -17320,6 +17542,54 @@
|
|
17320
17542
|
],
|
17321
17543
|
"usage": "in"
|
17322
17544
|
},
|
17545
|
+
"ReadWriteNode": {
|
17546
|
+
"document": "集群版 RW 节点的配置。",
|
17547
|
+
"members": [
|
17548
|
+
{
|
17549
|
+
"disabled": false,
|
17550
|
+
"document": "RW 节点所在可用区。",
|
17551
|
+
"example": "ap-guangzhou-4",
|
17552
|
+
"member": "string",
|
17553
|
+
"name": "Zone",
|
17554
|
+
"required": true,
|
17555
|
+
"type": "string"
|
17556
|
+
},
|
17557
|
+
{
|
17558
|
+
"disabled": false,
|
17559
|
+
"document": "升级集群版实例时,如果要调整只读节点可用区,需要指定节点id。",
|
17560
|
+
"example": "dbn-73ktfl1j",
|
17561
|
+
"member": "string",
|
17562
|
+
"name": "NodeId",
|
17563
|
+
"required": false,
|
17564
|
+
"type": "string"
|
17565
|
+
}
|
17566
|
+
],
|
17567
|
+
"usage": "in"
|
17568
|
+
},
|
17569
|
+
"ReadonlyNode": {
|
17570
|
+
"document": "集群版的 RO 节点配置。",
|
17571
|
+
"members": [
|
17572
|
+
{
|
17573
|
+
"disabled": false,
|
17574
|
+
"document": "是否分布在随机可用区。传入YES表示随机可用区。否则使用Zone指定的可用区。",
|
17575
|
+
"example": "YES",
|
17576
|
+
"member": "string",
|
17577
|
+
"name": "IsRandomZone",
|
17578
|
+
"required": false,
|
17579
|
+
"type": "string"
|
17580
|
+
},
|
17581
|
+
{
|
17582
|
+
"disabled": false,
|
17583
|
+
"document": "指定该节点分布在哪个可用区。",
|
17584
|
+
"example": "无",
|
17585
|
+
"member": "string",
|
17586
|
+
"name": "Zone",
|
17587
|
+
"required": false,
|
17588
|
+
"type": "string"
|
17589
|
+
}
|
17590
|
+
],
|
17591
|
+
"usage": "in"
|
17592
|
+
},
|
17323
17593
|
"ReleaseIsolatedDBInstancesRequest": {
|
17324
17594
|
"document": "ReleaseIsolatedDBInstances请求参数结构体",
|
17325
17595
|
"members": [
|
@@ -714,6 +714,14 @@
|
|
714
714
|
"title": "查询实例的可设置参数列表"
|
715
715
|
}
|
716
716
|
],
|
717
|
+
"DescribeInstanceUpgradeType": [
|
718
|
+
{
|
719
|
+
"document": "",
|
720
|
+
"input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeInstanceUpgradeType\n<公共请求参数>\n\n{\n \"InstanceId\": \"cdb-xxxxx\",\n \"DstCpu\": 1,\n \"DstMemory\": 1000,\n \"DstDisk\": 200,\n \"DstVersion\": \"8.0\",\n \"DstProtectMode\": 0,\n \"DstDeployMode\": 0,\n \"DstSlaveZone\": 100003,\n \"DstBackupZone\": 0,\n \"DstCdbType\": \"CUSTOM\"\n}",
|
721
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"6EF60BEC-0242-43AF-BB20-270359FB54A7\",\n \"InstanceId\": \"cdb-xxx\",\n \"UpgradeType\": \"Trsf\"\n }\n}",
|
722
|
+
"title": "查询数据库实例升级类型"
|
723
|
+
}
|
724
|
+
],
|
717
725
|
"DescribeLocalBinlogConfig": [
|
718
726
|
{
|
719
727
|
"document": "",
|
@@ -7587,7 +7587,7 @@
|
|
7587
7587
|
"members": [
|
7588
7588
|
{
|
7589
7589
|
"disabled": false,
|
7590
|
-
"document": "
|
7590
|
+
"document": "<ul><li>topicName 按照【日志主题名称】进行过滤,默认为模糊匹配,可使用 PreciseSearch 参数设置为精确匹配。类型:String。必选:否</li>\n<li>logsetName 按照【日志集名称】进行过滤,默认为模糊匹配,可使用 PreciseSearch 参数设置为精确匹配。类型:String。必选:否</li>\n<li>topicId 按照【日志主题ID】进行过滤。类型:String。必选:否</li>\n<li>logsetId 按照【日志集ID】进行过滤,可通过调用 DescribeLogsets 查询已创建的日志集列表或登录控制台进行查看;也可以调用 CreateLogset 创建新的日志集。类型:String。必选:否</li>\n<li>tagKey 按照【标签键】进行过滤。类型:String。必选:否</li>\n<li>tag:tagKey 按照【标签键值对】进行过滤。tagKey 使用具体的标签键进行替换,例如 tag:exampleKey。类型:String。必选:否</li>\n<li>storageType 按照【日志主题的存储类型】进行过滤。可选值 hot(标准存储),cold(低频存储)类型:String。必选:否</li></ul>\n注意:每次请求的 Filters 的上限为10,Filter.Values 的上限为100。",
|
7591
7591
|
"example": "无",
|
7592
7592
|
"member": "Filter",
|
7593
7593
|
"name": "Filters",
|
@@ -7614,7 +7614,7 @@
|
|
7614
7614
|
},
|
7615
7615
|
{
|
7616
7616
|
"disabled": false,
|
7617
|
-
"document": "控制Filters相关字段是否为精确匹配。\n
|
7617
|
+
"document": "控制Filters相关字段是否为精确匹配。\n<ul><li>0: 默认值,topicName 和 logsetName 模糊匹配</li>\n<li>1: topicName 精确匹配</li>\n<li>2: logsetName精确匹配</li>\n<li>3: topicName 和logsetName 都精确匹配</li></ul>",
|
7618
7618
|
"example": "1",
|
7619
7619
|
"member": "uint64",
|
7620
7620
|
"name": "PreciseSearch",
|
@@ -7623,7 +7623,7 @@
|
|
7623
7623
|
},
|
7624
7624
|
{
|
7625
7625
|
"disabled": false,
|
7626
|
-
"document": "主题类型\n
|
7626
|
+
"document": "主题类型\n<ul><li>0:日志主题,默认值</li>\n<li>1:指标主题</li></ul>",
|
7627
7627
|
"example": "无",
|
7628
7628
|
"member": "uint64",
|
7629
7629
|
"name": "BizType",
|
tccli/services/dlc/dlc_client.py
CHANGED
@@ -2825,6 +2825,58 @@ def doAttachWorkGroupPolicy(args, parsed_globals):
|
|
2825
2825
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2826
2826
|
|
2827
2827
|
|
2828
|
+
def doDescribeDataEnginesScaleDetail(args, parsed_globals):
|
2829
|
+
g_param = parse_global_arg(parsed_globals)
|
2830
|
+
|
2831
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2832
|
+
cred = credential.CVMRoleCredential()
|
2833
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2834
|
+
cred = credential.STSAssumeRoleCredential(
|
2835
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2836
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2837
|
+
)
|
2838
|
+
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):
|
2839
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2840
|
+
else:
|
2841
|
+
cred = credential.Credential(
|
2842
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2843
|
+
)
|
2844
|
+
http_profile = HttpProfile(
|
2845
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2846
|
+
reqMethod="POST",
|
2847
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
2848
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2849
|
+
)
|
2850
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2851
|
+
if g_param[OptionsDefine.Language]:
|
2852
|
+
profile.language = g_param[OptionsDefine.Language]
|
2853
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2854
|
+
client = mod.DlcClient(cred, g_param[OptionsDefine.Region], profile)
|
2855
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2856
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2857
|
+
model = models.DescribeDataEnginesScaleDetailRequest()
|
2858
|
+
model.from_json_string(json.dumps(args))
|
2859
|
+
start_time = time.time()
|
2860
|
+
while True:
|
2861
|
+
rsp = client.DescribeDataEnginesScaleDetail(model)
|
2862
|
+
result = rsp.to_json_string()
|
2863
|
+
try:
|
2864
|
+
json_obj = json.loads(result)
|
2865
|
+
except TypeError as e:
|
2866
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2867
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2868
|
+
break
|
2869
|
+
cur_time = time.time()
|
2870
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2871
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2872
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2873
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2874
|
+
else:
|
2875
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2876
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2877
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2878
|
+
|
2879
|
+
|
2828
2880
|
def doCreateSparkApp(args, parsed_globals):
|
2829
2881
|
g_param = parse_global_arg(parsed_globals)
|
2830
2882
|
|
@@ -7362,6 +7414,7 @@ ACTION_MAP = {
|
|
7362
7414
|
"CreateInternalTable": doCreateInternalTable,
|
7363
7415
|
"GenerateCreateMangedTableSql": doGenerateCreateMangedTableSql,
|
7364
7416
|
"AttachWorkGroupPolicy": doAttachWorkGroupPolicy,
|
7417
|
+
"DescribeDataEnginesScaleDetail": doDescribeDataEnginesScaleDetail,
|
7365
7418
|
"CreateSparkApp": doCreateSparkApp,
|
7366
7419
|
"DescribeThirdPartyAccessUser": doDescribeThirdPartyAccessUser,
|
7367
7420
|
"RollbackDataEngineImage": doRollbackDataEngineImage,
|
@@ -427,6 +427,13 @@
|
|
427
427
|
"output": "DescribeDataEnginesResponse",
|
428
428
|
"status": "online"
|
429
429
|
},
|
430
|
+
"DescribeDataEnginesScaleDetail": {
|
431
|
+
"document": "查询引擎规格详情",
|
432
|
+
"input": "DescribeDataEnginesScaleDetailRequest",
|
433
|
+
"name": "查看引擎的规格明细",
|
434
|
+
"output": "DescribeDataEnginesScaleDetailResponse",
|
435
|
+
"status": "online"
|
436
|
+
},
|
430
437
|
"DescribeDatabases": {
|
431
438
|
"document": "本接口(DescribeDatabases)用于查询数据库列表。",
|
432
439
|
"input": "DescribeDatabasesRequest",
|
@@ -6230,6 +6237,78 @@
|
|
6230
6237
|
],
|
6231
6238
|
"usage": "both"
|
6232
6239
|
},
|
6240
|
+
"DataEngineScaleInfo": {
|
6241
|
+
"document": "引擎规格详情",
|
6242
|
+
"members": [
|
6243
|
+
{
|
6244
|
+
"disabled": false,
|
6245
|
+
"document": "引擎ID\n注意:此字段可能返回 null,表示取不到有效值。",
|
6246
|
+
"example": "dataengine-abc",
|
6247
|
+
"member": "string",
|
6248
|
+
"name": "DataEngineId",
|
6249
|
+
"output_required": false,
|
6250
|
+
"type": "string",
|
6251
|
+
"value_allowed_null": true
|
6252
|
+
},
|
6253
|
+
{
|
6254
|
+
"disabled": false,
|
6255
|
+
"document": "引擎名称\n注意:此字段可能返回 null,表示取不到有效值。",
|
6256
|
+
"example": "abc",
|
6257
|
+
"member": "string",
|
6258
|
+
"name": "DataEngineName",
|
6259
|
+
"output_required": false,
|
6260
|
+
"type": "string",
|
6261
|
+
"value_allowed_null": true
|
6262
|
+
},
|
6263
|
+
{
|
6264
|
+
"disabled": false,
|
6265
|
+
"document": "引擎规格详情\n注意:此字段可能返回 null,表示取不到有效值。",
|
6266
|
+
"example": " [ { \"StartTime\": \"2024-06-06 12:00:00\", \"EndTime\": \"2024-06-06 13:00:00\", \"CU\": 0 } ]",
|
6267
|
+
"member": "DataEngineScaleInfoDetail",
|
6268
|
+
"name": "ScaleDetail",
|
6269
|
+
"output_required": false,
|
6270
|
+
"type": "list",
|
6271
|
+
"value_allowed_null": true
|
6272
|
+
}
|
6273
|
+
],
|
6274
|
+
"usage": "out"
|
6275
|
+
},
|
6276
|
+
"DataEngineScaleInfoDetail": {
|
6277
|
+
"document": "引擎规格详情",
|
6278
|
+
"members": [
|
6279
|
+
{
|
6280
|
+
"disabled": false,
|
6281
|
+
"document": "统计开始时间,格式为:yyyy-MM-dd HH:mm:ss\n注意:此字段可能返回 null,表示取不到有效值。",
|
6282
|
+
"example": "2024-06-06 12:00:00",
|
6283
|
+
"member": "string",
|
6284
|
+
"name": "StartTime",
|
6285
|
+
"output_required": false,
|
6286
|
+
"type": "string",
|
6287
|
+
"value_allowed_null": true
|
6288
|
+
},
|
6289
|
+
{
|
6290
|
+
"disabled": false,
|
6291
|
+
"document": "统计结束时间,格式为:yyyy-MM-dd HH:mm:ss\n注意:此字段可能返回 null,表示取不到有效值。",
|
6292
|
+
"example": "2024-06-06 13:00:00",
|
6293
|
+
"member": "string",
|
6294
|
+
"name": "EndTime",
|
6295
|
+
"output_required": false,
|
6296
|
+
"type": "string",
|
6297
|
+
"value_allowed_null": true
|
6298
|
+
},
|
6299
|
+
{
|
6300
|
+
"disabled": false,
|
6301
|
+
"document": "当前统计时间段,引擎规格\n注意:此字段可能返回 null,表示取不到有效值。",
|
6302
|
+
"example": "16",
|
6303
|
+
"member": "int64",
|
6304
|
+
"name": "CU",
|
6305
|
+
"output_required": false,
|
6306
|
+
"type": "int",
|
6307
|
+
"value_allowed_null": true
|
6308
|
+
}
|
6309
|
+
],
|
6310
|
+
"usage": "out"
|
6311
|
+
},
|
6233
6312
|
"DataFormat": {
|
6234
6313
|
"document": "数据表数据格式。",
|
6235
6314
|
"members": [
|
@@ -7918,7 +7997,7 @@
|
|
7918
7997
|
"example": "无",
|
7919
7998
|
"member": "DMSTableInfo",
|
7920
7999
|
"name": "TableList",
|
7921
|
-
"
|
8000
|
+
"output_required": true,
|
7922
8001
|
"type": "list",
|
7923
8002
|
"value_allowed_null": true
|
7924
8003
|
},
|
@@ -7928,7 +8007,7 @@
|
|
7928
8007
|
"example": "1",
|
7929
8008
|
"member": "int64",
|
7930
8009
|
"name": "TotalCount",
|
7931
|
-
"
|
8010
|
+
"output_required": true,
|
7932
8011
|
"type": "int",
|
7933
8012
|
"value_allowed_null": true
|
7934
8013
|
},
|
@@ -8312,6 +8391,61 @@
|
|
8312
8391
|
],
|
8313
8392
|
"type": "object"
|
8314
8393
|
},
|
8394
|
+
"DescribeDataEnginesScaleDetailRequest": {
|
8395
|
+
"document": "DescribeDataEnginesScaleDetail请求参数结构体",
|
8396
|
+
"members": [
|
8397
|
+
{
|
8398
|
+
"disabled": false,
|
8399
|
+
"document": "引擎名称列表",
|
8400
|
+
"example": "[\"test\"]",
|
8401
|
+
"member": "string",
|
8402
|
+
"name": "DataEngineNames",
|
8403
|
+
"required": false,
|
8404
|
+
"type": "list"
|
8405
|
+
},
|
8406
|
+
{
|
8407
|
+
"disabled": false,
|
8408
|
+
"document": "开始时间,时间格式:yyyy-MM-dd HH:mm:ss,最长查询一个月内的记录",
|
8409
|
+
"example": "2024-06-07 00:00:00",
|
8410
|
+
"member": "string",
|
8411
|
+
"name": "StartTime",
|
8412
|
+
"required": false,
|
8413
|
+
"type": "string"
|
8414
|
+
},
|
8415
|
+
{
|
8416
|
+
"disabled": false,
|
8417
|
+
"document": "结束时间,时间格式:yyyy-MM-dd HH:mm:ss,最长查询一个月内的记录",
|
8418
|
+
"example": "2024-06-08 00:00:00",
|
8419
|
+
"member": "string",
|
8420
|
+
"name": "EndTime",
|
8421
|
+
"required": false,
|
8422
|
+
"type": "string"
|
8423
|
+
}
|
8424
|
+
],
|
8425
|
+
"type": "object"
|
8426
|
+
},
|
8427
|
+
"DescribeDataEnginesScaleDetailResponse": {
|
8428
|
+
"document": "DescribeDataEnginesScaleDetail返回参数结构体",
|
8429
|
+
"members": [
|
8430
|
+
{
|
8431
|
+
"disabled": false,
|
8432
|
+
"document": "引擎规格统计详细信息\n注意:此字段可能返回 null,表示取不到有效值。",
|
8433
|
+
"example": "无",
|
8434
|
+
"member": "DataEngineScaleInfo",
|
8435
|
+
"name": "Scales",
|
8436
|
+
"output_required": false,
|
8437
|
+
"type": "list",
|
8438
|
+
"value_allowed_null": true
|
8439
|
+
},
|
8440
|
+
{
|
8441
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
8442
|
+
"member": "string",
|
8443
|
+
"name": "RequestId",
|
8444
|
+
"type": "string"
|
8445
|
+
}
|
8446
|
+
],
|
8447
|
+
"type": "object"
|
8448
|
+
},
|
8315
8449
|
"DescribeDatabasesRequest": {
|
8316
8450
|
"document": "DescribeDatabases请求参数结构体",
|
8317
8451
|
"members": [
|
@@ -11600,10 +11734,10 @@
|
|
11600
11734
|
{
|
11601
11735
|
"disabled": false,
|
11602
11736
|
"document": "状态",
|
11603
|
-
"example": "
|
11737
|
+
"example": "true",
|
11604
11738
|
"member": "bool",
|
11605
11739
|
"name": "Status",
|
11606
|
-
"
|
11740
|
+
"output_required": true,
|
11607
11741
|
"type": "bool",
|
11608
11742
|
"value_allowed_null": false
|
11609
11743
|
},
|