tccli 3.0.1296.1__py2.py3-none-any.whl → 3.0.1298.1__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tccli/__init__.py +1 -1
- tccli/services/antiddos/v20200309/api.json +2 -2
- tccli/services/batch/v20170312/api.json +9 -8
- tccli/services/cbs/v20170312/api.json +1 -1
- tccli/services/ccc/ccc_client.py +230 -18
- tccli/services/ccc/v20200210/api.json +363 -0
- tccli/services/ccc/v20200210/examples.json +32 -0
- tccli/services/cls/cls_client.py +235 -23
- tccli/services/cls/v20201016/api.json +457 -3
- tccli/services/cls/v20201016/examples.json +32 -0
- tccli/services/cme/v20191029/examples.json +2 -2
- tccli/services/cvm/v20170312/api.json +2 -2
- tccli/services/cynosdb/v20190107/api.json +97 -77
- tccli/services/dbbrain/v20191016/api.json +146 -6
- tccli/services/dbbrain/v20210527/api.json +156 -20
- tccli/services/dlc/dlc_client.py +53 -0
- tccli/services/dlc/v20210125/api.json +162 -0
- tccli/services/dlc/v20210125/examples.json +8 -0
- tccli/services/dnspod/v20210323/api.json +105 -88
- tccli/services/dnspod/v20210323/examples.json +1 -1
- tccli/services/dts/v20211206/api.json +2 -2
- tccli/services/ess/v20201111/api.json +1 -1
- tccli/services/essbasic/v20210526/api.json +5 -5
- tccli/services/gs/gs_client.py +53 -0
- tccli/services/gs/v20191118/api.json +63 -0
- tccli/services/gs/v20191118/examples.json +9 -1
- tccli/services/hai/v20230812/api.json +16 -16
- tccli/services/iotcloud/v20210408/api.json +13 -17
- tccli/services/iotcloud/v20210408/examples.json +3 -3
- tccli/services/iotexplorer/v20190423/api.json +398 -341
- tccli/services/iotexplorer/v20190423/examples.json +50 -50
- tccli/services/iss/iss_client.py +411 -305
- tccli/services/iss/v20230517/api.json +236 -0
- tccli/services/iss/v20230517/examples.json +16 -0
- tccli/services/lighthouse/v20200324/api.json +3 -3
- tccli/services/live/v20180801/api.json +2 -2
- tccli/services/lke/v20231130/api.json +34 -1
- tccli/services/mps/v20190612/api.json +55 -53
- tccli/services/mps/v20190612/examples.json +40 -40
- tccli/services/mqtt/v20240516/api.json +56 -6
- tccli/services/mqtt/v20240516/examples.json +6 -6
- tccli/services/ocr/v20181119/api.json +73 -3
- tccli/services/partners/v20180321/api.json +10 -0
- tccli/services/rce/v20201103/api.json +0 -9
- tccli/services/rce/v20201103/examples.json +1 -1
- tccli/services/tdmq/v20200217/api.json +36 -6
- tccli/services/teo/v20220901/api.json +48 -7
- tccli/services/teo/v20220901/examples.json +51 -15
- tccli/services/tione/tione_client.py +220 -8
- tccli/services/tione/v20211111/api.json +359 -0
- tccli/services/tione/v20211111/examples.json +32 -0
- tccli/services/tke/v20180525/api.json +2 -2
- tccli/services/trro/trro_client.py +269 -4
- tccli/services/trro/v20220325/api.json +504 -0
- tccli/services/trro/v20220325/examples.json +40 -0
- tccli/services/trtc/v20190722/api.json +10 -1
- tccli/services/vdb/v20230616/api.json +738 -15
- tccli/services/vdb/v20230616/examples.json +64 -0
- tccli/services/vdb/vdb_client.py +428 -4
- tccli/services/vod/v20180717/api.json +13 -4
- tccli/services/vod/v20180717/examples.json +4 -4
- tccli/services/vod/v20240718/api.json +985 -0
- tccli/services/vod/v20240718/examples.json +66 -0
- tccli/services/vod/vod_client.py +330 -12
- tccli/services/wedata/v20210820/api.json +453 -0
- tccli/services/wedata/v20210820/examples.json +22 -0
- tccli/services/wedata/wedata_client.py +114 -8
- tccli/services/weilingwith/v20230427/api.json +10 -10
- {tccli-3.0.1296.1.dist-info → tccli-3.0.1298.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1296.1.dist-info → tccli-3.0.1298.1.dist-info}/RECORD +73 -73
- {tccli-3.0.1296.1.dist-info → tccli-3.0.1298.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1296.1.dist-info → tccli-3.0.1298.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1296.1.dist-info → tccli-3.0.1298.1.dist-info}/license_files/LICENSE +0 -0
@@ -346,7 +346,7 @@
|
|
346
346
|
},
|
347
347
|
{
|
348
348
|
"disabled": false,
|
349
|
-
"document": "服务产品类型,支持值包括: \"mysql\" - 云数据库 MySQL, \"cynosdb\" - 云数据库 CynosDB for MySQL,默认值为\"mysql\"。",
|
349
|
+
"document": "服务产品类型,支持值包括: \"mysql\" - 云数据库 MySQL, \"cynosdb\" - 云数据库 CynosDB for MySQL,\"redis\" - 云数据库 Redis,默认值为\"mysql\"。",
|
350
350
|
"example": "mysql",
|
351
351
|
"member": "string",
|
352
352
|
"name": "Product",
|
@@ -401,7 +401,7 @@
|
|
401
401
|
},
|
402
402
|
{
|
403
403
|
"disabled": false,
|
404
|
-
"document": "服务产品类型,支持值:\"mysql\" - 云数据库 MySQL;\"cynosdb\" - 云数据库 TDSQL-C for MySQL,默认为\"mysql\"。",
|
404
|
+
"document": "服务产品类型,支持值:\"mysql\" - 云数据库 MySQL;\"cynosdb\" - 云数据库 TDSQL-C for MySQL,\"redis\" - 云数据库 Redis,默认为\"mysql\"。",
|
405
405
|
"example": "mysql",
|
406
406
|
"member": "string",
|
407
407
|
"name": "Product",
|
@@ -420,6 +420,7 @@
|
|
420
420
|
"example": "https://dbbrain-sh-1256569818.cos.ap-guangzhou.myqcloud.com",
|
421
421
|
"member": "string",
|
422
422
|
"name": "ReportUrl",
|
423
|
+
"output_required": true,
|
423
424
|
"type": "string",
|
424
425
|
"value_allowed_null": false
|
425
426
|
},
|
@@ -429,6 +430,7 @@
|
|
429
430
|
"example": "1618890295",
|
430
431
|
"member": "int64",
|
431
432
|
"name": "ExpireTime",
|
433
|
+
"output_required": true,
|
432
434
|
"type": "int",
|
433
435
|
"value_allowed_null": false
|
434
436
|
},
|
@@ -828,7 +830,7 @@
|
|
828
830
|
},
|
829
831
|
{
|
830
832
|
"disabled": false,
|
831
|
-
"document": "服务产品类型,支持值包括: \"mysql\" - 云数据库 MySQL, \"cynosdb\" - 云数据库 CynosDB for MySQL,默认为\"mysql\"。",
|
833
|
+
"document": "服务产品类型,支持值包括: \"mysql\" - 云数据库 MySQL, \"cynosdb\" - 云数据库 CynosDB for MySQL,\"redis\" - 云数据库 Redis,默认为\"mysql\"。",
|
832
834
|
"example": "mysql",
|
833
835
|
"member": "string",
|
834
836
|
"name": "Product",
|
@@ -1055,7 +1057,7 @@
|
|
1055
1057
|
},
|
1056
1058
|
{
|
1057
1059
|
"disabled": false,
|
1058
|
-
"document": "任务的触发来源,支持的取值包括:\"DAILY_INSPECTION\" - 实例巡检;\"SCHEDULED\" -
|
1060
|
+
"document": "任务的触发来源,支持的取值包括:\"DAILY_INSPECTION\" - 实例巡检;\"SCHEDULED\" - 计划任务;\"MANUAL\" - 手动触发。",
|
1059
1061
|
"example": "[\"DAILY_INSPECTION\"]",
|
1060
1062
|
"member": "string",
|
1061
1063
|
"name": "Sources",
|
@@ -1100,7 +1102,7 @@
|
|
1100
1102
|
},
|
1101
1103
|
{
|
1102
1104
|
"disabled": false,
|
1103
|
-
"document": "服务产品类型,支持值:\"mysql\" - 云数据库 MySQL;\"cynosdb\" - 云数据库 TDSQL-C for MySQL,默认为\"mysql\"。",
|
1105
|
+
"document": "服务产品类型,支持值:\"mysql\" - 云数据库 MySQL;\"cynosdb\" - 云数据库 TDSQL-C for MySQL;\"redis\" - 云数据库 Redis,默认为\"mysql\"。",
|
1104
1106
|
"example": "mysql",
|
1105
1107
|
"member": "string",
|
1106
1108
|
"name": "Product",
|
@@ -1119,15 +1121,17 @@
|
|
1119
1121
|
"example": "1",
|
1120
1122
|
"member": "int64",
|
1121
1123
|
"name": "TotalCount",
|
1124
|
+
"output_required": true,
|
1122
1125
|
"type": "int",
|
1123
1126
|
"value_allowed_null": false
|
1124
1127
|
},
|
1125
1128
|
{
|
1126
1129
|
"disabled": false,
|
1127
1130
|
"document": "任务列表。",
|
1128
|
-
"example": "
|
1131
|
+
"example": "无",
|
1129
1132
|
"member": "HealthReportTask",
|
1130
1133
|
"name": "Tasks",
|
1134
|
+
"output_required": true,
|
1131
1135
|
"type": "list",
|
1132
1136
|
"value_allowed_null": false
|
1133
1137
|
},
|
@@ -2735,6 +2739,16 @@
|
|
2735
2739
|
"output_required": true,
|
2736
2740
|
"type": "list",
|
2737
2741
|
"value_allowed_null": false
|
2742
|
+
},
|
2743
|
+
{
|
2744
|
+
"disabled": false,
|
2745
|
+
"document": "健康等级版本,默认为V1",
|
2746
|
+
"example": "V2",
|
2747
|
+
"member": "string",
|
2748
|
+
"name": "HealthLevelVersion",
|
2749
|
+
"output_required": false,
|
2750
|
+
"type": "string",
|
2751
|
+
"value_allowed_null": false
|
2738
2752
|
}
|
2739
2753
|
],
|
2740
2754
|
"usage": "out"
|
@@ -2801,6 +2815,96 @@
|
|
2801
2815
|
"output_required": true,
|
2802
2816
|
"type": "string",
|
2803
2817
|
"value_allowed_null": false
|
2818
|
+
},
|
2819
|
+
{
|
2820
|
+
"disabled": false,
|
2821
|
+
"document": "CPU数量,对于Redis为0。",
|
2822
|
+
"example": "0",
|
2823
|
+
"member": "int64",
|
2824
|
+
"name": "Cpu",
|
2825
|
+
"output_required": false,
|
2826
|
+
"type": "int",
|
2827
|
+
"value_allowed_null": false
|
2828
|
+
},
|
2829
|
+
{
|
2830
|
+
"disabled": false,
|
2831
|
+
"document": "实例部署模式。",
|
2832
|
+
"example": "Standard",
|
2833
|
+
"member": "string",
|
2834
|
+
"name": "DeployMode",
|
2835
|
+
"output_required": false,
|
2836
|
+
"type": "string",
|
2837
|
+
"value_allowed_null": false
|
2838
|
+
},
|
2839
|
+
{
|
2840
|
+
"disabled": false,
|
2841
|
+
"document": "实例内存配置。",
|
2842
|
+
"example": "无",
|
2843
|
+
"member": "RedisInstanceConf",
|
2844
|
+
"name": "InstanceConf",
|
2845
|
+
"output_required": false,
|
2846
|
+
"type": "object",
|
2847
|
+
"value_allowed_null": false
|
2848
|
+
},
|
2849
|
+
{
|
2850
|
+
"disabled": false,
|
2851
|
+
"document": "DBbrain是否支持该实例。",
|
2852
|
+
"example": "true",
|
2853
|
+
"member": "bool",
|
2854
|
+
"name": "IsSupported",
|
2855
|
+
"output_required": false,
|
2856
|
+
"type": "bool",
|
2857
|
+
"value_allowed_null": false
|
2858
|
+
},
|
2859
|
+
{
|
2860
|
+
"disabled": false,
|
2861
|
+
"document": "实例内存,单位MB。",
|
2862
|
+
"example": "4096",
|
2863
|
+
"member": "int64",
|
2864
|
+
"name": "Memory",
|
2865
|
+
"output_required": false,
|
2866
|
+
"type": "int",
|
2867
|
+
"value_allowed_null": false
|
2868
|
+
},
|
2869
|
+
{
|
2870
|
+
"disabled": false,
|
2871
|
+
"document": "实例地域。",
|
2872
|
+
"example": "ap-guangzhou",
|
2873
|
+
"member": "string",
|
2874
|
+
"name": "Region",
|
2875
|
+
"output_required": false,
|
2876
|
+
"type": "string",
|
2877
|
+
"value_allowed_null": false
|
2878
|
+
},
|
2879
|
+
{
|
2880
|
+
"disabled": false,
|
2881
|
+
"document": "实例子网统一ID,对于redis为空字符串。\t",
|
2882
|
+
"example": "uniq_subnet_id",
|
2883
|
+
"member": "string",
|
2884
|
+
"name": "UniqSubnetId",
|
2885
|
+
"output_required": false,
|
2886
|
+
"type": "string",
|
2887
|
+
"value_allowed_null": false
|
2888
|
+
},
|
2889
|
+
{
|
2890
|
+
"disabled": false,
|
2891
|
+
"document": "实例私有网络统一ID,对于redis为空字符串。",
|
2892
|
+
"example": "uniq_vpc_id",
|
2893
|
+
"member": "string",
|
2894
|
+
"name": "UniqVpcId",
|
2895
|
+
"output_required": false,
|
2896
|
+
"type": "string",
|
2897
|
+
"value_allowed_null": false
|
2898
|
+
},
|
2899
|
+
{
|
2900
|
+
"disabled": false,
|
2901
|
+
"document": "实例磁盘容量,对于Redis为0。",
|
2902
|
+
"example": "0",
|
2903
|
+
"member": "int64",
|
2904
|
+
"name": "Volume",
|
2905
|
+
"output_required": false,
|
2906
|
+
"type": "int",
|
2907
|
+
"value_allowed_null": false
|
2804
2908
|
}
|
2805
2909
|
],
|
2806
2910
|
"usage": "out"
|
@@ -3483,6 +3587,42 @@
|
|
3483
3587
|
],
|
3484
3588
|
"usage": "both"
|
3485
3589
|
},
|
3590
|
+
"RedisInstanceConf": {
|
3591
|
+
"document": "Redis实例内存配置参数",
|
3592
|
+
"members": [
|
3593
|
+
{
|
3594
|
+
"disabled": false,
|
3595
|
+
"document": "副本数量",
|
3596
|
+
"example": "1",
|
3597
|
+
"member": "string",
|
3598
|
+
"name": "ReplicasNum",
|
3599
|
+
"output_required": true,
|
3600
|
+
"type": "string",
|
3601
|
+
"value_allowed_null": false
|
3602
|
+
},
|
3603
|
+
{
|
3604
|
+
"disabled": false,
|
3605
|
+
"document": "分片数量",
|
3606
|
+
"example": "1",
|
3607
|
+
"member": "string",
|
3608
|
+
"name": "ShardNum",
|
3609
|
+
"output_required": true,
|
3610
|
+
"type": "string",
|
3611
|
+
"value_allowed_null": false
|
3612
|
+
},
|
3613
|
+
{
|
3614
|
+
"disabled": false,
|
3615
|
+
"document": "分片内存大小,单位MB",
|
3616
|
+
"example": "4096",
|
3617
|
+
"member": "string",
|
3618
|
+
"name": "ShardSize",
|
3619
|
+
"output_required": true,
|
3620
|
+
"type": "string",
|
3621
|
+
"value_allowed_null": false
|
3622
|
+
}
|
3623
|
+
],
|
3624
|
+
"usage": "out"
|
3625
|
+
},
|
3486
3626
|
"SchemaItem": {
|
3487
3627
|
"document": "SchemaItem数组",
|
3488
3628
|
"members": [
|
@@ -1929,7 +1929,7 @@
|
|
1929
1929
|
},
|
1930
1930
|
{
|
1931
1931
|
"disabled": false,
|
1932
|
-
"document": "服务产品类型,支持值包括: \"mysql\" - 云数据库 MySQL, \"cynosdb\" - 云数据库 CynosDB for MySQL,默认值为\"mysql\"。",
|
1932
|
+
"document": "服务产品类型,支持值包括: \"mysql\" - 云数据库 MySQL, \"cynosdb\" - 云数据库 CynosDB for MySQL,\"redis\" - 云数据库 Redis,默认值为\"mysql\"。",
|
1933
1933
|
"example": "mysql",
|
1934
1934
|
"member": "string",
|
1935
1935
|
"name": "Product",
|
@@ -1984,7 +1984,7 @@
|
|
1984
1984
|
},
|
1985
1985
|
{
|
1986
1986
|
"disabled": false,
|
1987
|
-
"document": "服务产品类型,支持值:\"mysql\" - 云数据库 MySQL;\"cynosdb\" - 云数据库 TDSQL-C for MySQL,默认为\"mysql\"。",
|
1987
|
+
"document": "服务产品类型,支持值:\"mysql\" - 云数据库 MySQL;\"cynosdb\" - 云数据库 TDSQL-C for MySQL,\"redis\" - 云数据库 Redis,默认为\"mysql\"。",
|
1988
1988
|
"example": "mysql",
|
1989
1989
|
"member": "string",
|
1990
1990
|
"name": "Product",
|
@@ -2003,7 +2003,7 @@
|
|
2003
2003
|
"example": "https://dbbrain-sh-1256569818.cos.ap-guangzhou.myqcloud.com",
|
2004
2004
|
"member": "string",
|
2005
2005
|
"name": "ReportUrl",
|
2006
|
-
"
|
2006
|
+
"output_required": true,
|
2007
2007
|
"type": "string",
|
2008
2008
|
"value_allowed_null": false
|
2009
2009
|
},
|
@@ -2013,7 +2013,7 @@
|
|
2013
2013
|
"example": "1618890295",
|
2014
2014
|
"member": "int64",
|
2015
2015
|
"name": "ExpireTime",
|
2016
|
-
"
|
2016
|
+
"output_required": true,
|
2017
2017
|
"type": "int",
|
2018
2018
|
"value_allowed_null": false
|
2019
2019
|
},
|
@@ -3419,7 +3419,7 @@
|
|
3419
3419
|
},
|
3420
3420
|
{
|
3421
3421
|
"disabled": false,
|
3422
|
-
"document": "服务产品类型,支持值包括: \"mysql\" - 云数据库 MySQL, \"cynosdb\" - 云数据库 CynosDB for MySQL,默认为\"mysql\"。",
|
3422
|
+
"document": "服务产品类型,支持值包括: \"mysql\" - 云数据库 MySQL, \"cynosdb\" - 云数据库 CynosDB for MySQL,\"redis\" - 云数据库 Redis,默认为\"mysql\"。",
|
3423
3423
|
"example": "mysql",
|
3424
3424
|
"member": "string",
|
3425
3425
|
"name": "Product",
|
@@ -3748,7 +3748,7 @@
|
|
3748
3748
|
},
|
3749
3749
|
{
|
3750
3750
|
"disabled": false,
|
3751
|
-
"document": "任务的触发来源,支持的取值包括:\"DAILY_INSPECTION\" - 实例巡检;\"SCHEDULED\" -
|
3751
|
+
"document": "任务的触发来源,支持的取值包括:\"DAILY_INSPECTION\" - 实例巡检;\"SCHEDULED\" - 计划任务;\"MANUAL\" - 手动触发。",
|
3752
3752
|
"example": "[\"DAILY_INSPECTION\"]",
|
3753
3753
|
"member": "string",
|
3754
3754
|
"name": "Sources",
|
@@ -3793,7 +3793,7 @@
|
|
3793
3793
|
},
|
3794
3794
|
{
|
3795
3795
|
"disabled": false,
|
3796
|
-
"document": "服务产品类型,支持值:\"mysql\" - 云数据库 MySQL;\"cynosdb\" - 云数据库 TDSQL-C for MySQL,默认为\"mysql\"。",
|
3796
|
+
"document": "服务产品类型,支持值:\"mysql\" - 云数据库 MySQL;\"cynosdb\" - 云数据库 TDSQL-C for MySQL,\"redis\" - 云数据库 Redis,默认为\"mysql\"。",
|
3797
3797
|
"example": "mysql",
|
3798
3798
|
"member": "string",
|
3799
3799
|
"name": "Product",
|
@@ -3812,17 +3812,17 @@
|
|
3812
3812
|
"example": "1",
|
3813
3813
|
"member": "int64",
|
3814
3814
|
"name": "TotalCount",
|
3815
|
-
"
|
3815
|
+
"output_required": true,
|
3816
3816
|
"type": "int",
|
3817
3817
|
"value_allowed_null": false
|
3818
3818
|
},
|
3819
3819
|
{
|
3820
3820
|
"disabled": false,
|
3821
3821
|
"document": "任务列表。",
|
3822
|
-
"example": "
|
3822
|
+
"example": "无",
|
3823
3823
|
"member": "HealthReportTask",
|
3824
3824
|
"name": "Tasks",
|
3825
|
-
"
|
3825
|
+
"output_required": true,
|
3826
3826
|
"type": "list",
|
3827
3827
|
"value_allowed_null": false
|
3828
3828
|
},
|
@@ -7062,7 +7062,7 @@
|
|
7062
7062
|
"example": "63452",
|
7063
7063
|
"member": "int64",
|
7064
7064
|
"name": "AsyncRequestId",
|
7065
|
-
"
|
7065
|
+
"output_required": true,
|
7066
7066
|
"type": "int",
|
7067
7067
|
"value_allowed_null": false
|
7068
7068
|
},
|
@@ -7072,7 +7072,7 @@
|
|
7072
7072
|
"example": "DAILY_INSPECTION",
|
7073
7073
|
"member": "string",
|
7074
7074
|
"name": "Source",
|
7075
|
-
"
|
7075
|
+
"output_required": true,
|
7076
7076
|
"type": "string",
|
7077
7077
|
"value_allowed_null": false
|
7078
7078
|
},
|
@@ -7082,7 +7082,7 @@
|
|
7082
7082
|
"example": "100",
|
7083
7083
|
"member": "int64",
|
7084
7084
|
"name": "Progress",
|
7085
|
-
"
|
7085
|
+
"output_required": true,
|
7086
7086
|
"type": "int",
|
7087
7087
|
"value_allowed_null": false
|
7088
7088
|
},
|
@@ -7092,7 +7092,7 @@
|
|
7092
7092
|
"example": "2019-09-10 12:13:14",
|
7093
7093
|
"member": "datetime",
|
7094
7094
|
"name": "CreateTime",
|
7095
|
-
"
|
7095
|
+
"output_required": true,
|
7096
7096
|
"type": "string",
|
7097
7097
|
"value_allowed_null": false
|
7098
7098
|
},
|
@@ -7102,7 +7102,7 @@
|
|
7102
7102
|
"example": "2019-09-10 12:13:14",
|
7103
7103
|
"member": "datetime",
|
7104
7104
|
"name": "StartTime",
|
7105
|
-
"
|
7105
|
+
"output_required": true,
|
7106
7106
|
"type": "string",
|
7107
7107
|
"value_allowed_null": false
|
7108
7108
|
},
|
@@ -7112,27 +7112,27 @@
|
|
7112
7112
|
"example": "2019-09-10 12:13:14",
|
7113
7113
|
"member": "datetime",
|
7114
7114
|
"name": "EndTime",
|
7115
|
-
"
|
7115
|
+
"output_required": true,
|
7116
7116
|
"type": "string",
|
7117
7117
|
"value_allowed_null": false
|
7118
7118
|
},
|
7119
7119
|
{
|
7120
7120
|
"disabled": false,
|
7121
7121
|
"document": "任务所属实例的基础信息。",
|
7122
|
-
"example": "
|
7122
|
+
"example": "无",
|
7123
7123
|
"member": "InstanceBasicInfo",
|
7124
7124
|
"name": "InstanceInfo",
|
7125
|
-
"
|
7125
|
+
"output_required": true,
|
7126
7126
|
"type": "object",
|
7127
7127
|
"value_allowed_null": false
|
7128
7128
|
},
|
7129
7129
|
{
|
7130
7130
|
"disabled": false,
|
7131
7131
|
"document": "健康报告中的健康信息。",
|
7132
|
-
"example": "
|
7132
|
+
"example": "无",
|
7133
7133
|
"member": "HealthStatus",
|
7134
7134
|
"name": "HealthStatus",
|
7135
|
-
"
|
7135
|
+
"output_required": true,
|
7136
7136
|
"type": "object",
|
7137
7137
|
"value_allowed_null": false
|
7138
7138
|
}
|
@@ -7227,6 +7227,16 @@
|
|
7227
7227
|
"output_required": true,
|
7228
7228
|
"type": "list",
|
7229
7229
|
"value_allowed_null": false
|
7230
|
+
},
|
7231
|
+
{
|
7232
|
+
"disabled": false,
|
7233
|
+
"document": "健康等级版本,默认为\"V1\"",
|
7234
|
+
"example": "\"V2\"",
|
7235
|
+
"member": "string",
|
7236
|
+
"name": "HealthLevelVersion",
|
7237
|
+
"output_required": false,
|
7238
|
+
"type": "string",
|
7239
|
+
"value_allowed_null": false
|
7230
7240
|
}
|
7231
7241
|
],
|
7232
7242
|
"usage": "out"
|
@@ -7425,6 +7435,96 @@
|
|
7425
7435
|
"output_required": true,
|
7426
7436
|
"type": "string",
|
7427
7437
|
"value_allowed_null": false
|
7438
|
+
},
|
7439
|
+
{
|
7440
|
+
"disabled": false,
|
7441
|
+
"document": "CPU数量,对于Redis为0。",
|
7442
|
+
"example": "0",
|
7443
|
+
"member": "int64",
|
7444
|
+
"name": "Cpu",
|
7445
|
+
"output_required": false,
|
7446
|
+
"type": "int",
|
7447
|
+
"value_allowed_null": false
|
7448
|
+
},
|
7449
|
+
{
|
7450
|
+
"disabled": false,
|
7451
|
+
"document": "实例部署模式。",
|
7452
|
+
"example": "\"Standard\"",
|
7453
|
+
"member": "string",
|
7454
|
+
"name": "DeployMode",
|
7455
|
+
"output_required": false,
|
7456
|
+
"type": "string",
|
7457
|
+
"value_allowed_null": false
|
7458
|
+
},
|
7459
|
+
{
|
7460
|
+
"disabled": false,
|
7461
|
+
"document": "实例内存配置。",
|
7462
|
+
"example": "无",
|
7463
|
+
"member": "RedisInstanceConf",
|
7464
|
+
"name": "InstanceConf",
|
7465
|
+
"output_required": false,
|
7466
|
+
"type": "object",
|
7467
|
+
"value_allowed_null": false
|
7468
|
+
},
|
7469
|
+
{
|
7470
|
+
"disabled": false,
|
7471
|
+
"document": "DBbrain是否支持该实例。",
|
7472
|
+
"example": "true",
|
7473
|
+
"member": "bool",
|
7474
|
+
"name": "IsSupported",
|
7475
|
+
"output_required": false,
|
7476
|
+
"type": "bool",
|
7477
|
+
"value_allowed_null": false
|
7478
|
+
},
|
7479
|
+
{
|
7480
|
+
"disabled": false,
|
7481
|
+
"document": "实例内存,单位MB。",
|
7482
|
+
"example": "4096",
|
7483
|
+
"member": "int64",
|
7484
|
+
"name": "Memory",
|
7485
|
+
"output_required": false,
|
7486
|
+
"type": "int",
|
7487
|
+
"value_allowed_null": false
|
7488
|
+
},
|
7489
|
+
{
|
7490
|
+
"disabled": false,
|
7491
|
+
"document": "实例地域。",
|
7492
|
+
"example": "\"ap-guangzhou\"",
|
7493
|
+
"member": "string",
|
7494
|
+
"name": "Region",
|
7495
|
+
"output_required": false,
|
7496
|
+
"type": "string",
|
7497
|
+
"value_allowed_null": false
|
7498
|
+
},
|
7499
|
+
{
|
7500
|
+
"disabled": false,
|
7501
|
+
"document": "实例子网统一ID,对于redis为空字符串。",
|
7502
|
+
"example": "\"uniq_subnet_id\"",
|
7503
|
+
"member": "string",
|
7504
|
+
"name": "UniqSubnetId",
|
7505
|
+
"output_required": false,
|
7506
|
+
"type": "string",
|
7507
|
+
"value_allowed_null": false
|
7508
|
+
},
|
7509
|
+
{
|
7510
|
+
"disabled": false,
|
7511
|
+
"document": "实例私有网络统一ID,对于redis为空字符串。",
|
7512
|
+
"example": "\"uniq_vpc_id\"",
|
7513
|
+
"member": "string",
|
7514
|
+
"name": "UniqVpcId",
|
7515
|
+
"output_required": false,
|
7516
|
+
"type": "string",
|
7517
|
+
"value_allowed_null": false
|
7518
|
+
},
|
7519
|
+
{
|
7520
|
+
"disabled": false,
|
7521
|
+
"document": "实例磁盘容量,对于Redis为0。",
|
7522
|
+
"example": "0",
|
7523
|
+
"member": "int64",
|
7524
|
+
"name": "Volume",
|
7525
|
+
"output_required": false,
|
7526
|
+
"type": "int",
|
7527
|
+
"value_allowed_null": false
|
7428
7528
|
}
|
7429
7529
|
],
|
7430
7530
|
"usage": "out"
|
@@ -9154,6 +9254,42 @@
|
|
9154
9254
|
],
|
9155
9255
|
"usage": "out"
|
9156
9256
|
},
|
9257
|
+
"RedisInstanceConf": {
|
9258
|
+
"document": "Redis实例内存配置参数",
|
9259
|
+
"members": [
|
9260
|
+
{
|
9261
|
+
"disabled": false,
|
9262
|
+
"document": "副本数量",
|
9263
|
+
"example": "“1”",
|
9264
|
+
"member": "string",
|
9265
|
+
"name": "ReplicasNum",
|
9266
|
+
"output_required": true,
|
9267
|
+
"type": "string",
|
9268
|
+
"value_allowed_null": false
|
9269
|
+
},
|
9270
|
+
{
|
9271
|
+
"disabled": false,
|
9272
|
+
"document": "分片数量",
|
9273
|
+
"example": "“1”",
|
9274
|
+
"member": "string",
|
9275
|
+
"name": "ShardNum",
|
9276
|
+
"output_required": true,
|
9277
|
+
"type": "string",
|
9278
|
+
"value_allowed_null": false
|
9279
|
+
},
|
9280
|
+
{
|
9281
|
+
"disabled": false,
|
9282
|
+
"document": "分片内存大小,单位MB",
|
9283
|
+
"example": "“4096”",
|
9284
|
+
"member": "string",
|
9285
|
+
"name": "ShardSize",
|
9286
|
+
"output_required": true,
|
9287
|
+
"type": "string",
|
9288
|
+
"value_allowed_null": false
|
9289
|
+
}
|
9290
|
+
],
|
9291
|
+
"usage": "out"
|
9292
|
+
},
|
9157
9293
|
"RedisKeySpaceData": {
|
9158
9294
|
"document": "redis key空间信息。",
|
9159
9295
|
"members": [
|
tccli/services/dlc/dlc_client.py
CHANGED
@@ -6413,6 +6413,58 @@ def doUnbindWorkGroupsFromUser(args, parsed_globals):
|
|
6413
6413
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6414
6414
|
|
6415
6415
|
|
6416
|
+
def doCreateSparkSubmitTask(args, parsed_globals):
|
6417
|
+
g_param = parse_global_arg(parsed_globals)
|
6418
|
+
|
6419
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
6420
|
+
cred = credential.CVMRoleCredential()
|
6421
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
6422
|
+
cred = credential.STSAssumeRoleCredential(
|
6423
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
6424
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
6425
|
+
)
|
6426
|
+
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):
|
6427
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
6428
|
+
else:
|
6429
|
+
cred = credential.Credential(
|
6430
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
6431
|
+
)
|
6432
|
+
http_profile = HttpProfile(
|
6433
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
6434
|
+
reqMethod="POST",
|
6435
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
6436
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
6437
|
+
)
|
6438
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
6439
|
+
if g_param[OptionsDefine.Language]:
|
6440
|
+
profile.language = g_param[OptionsDefine.Language]
|
6441
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
6442
|
+
client = mod.DlcClient(cred, g_param[OptionsDefine.Region], profile)
|
6443
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
6444
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
6445
|
+
model = models.CreateSparkSubmitTaskRequest()
|
6446
|
+
model.from_json_string(json.dumps(args))
|
6447
|
+
start_time = time.time()
|
6448
|
+
while True:
|
6449
|
+
rsp = client.CreateSparkSubmitTask(model)
|
6450
|
+
result = rsp.to_json_string()
|
6451
|
+
try:
|
6452
|
+
json_obj = json.loads(result)
|
6453
|
+
except TypeError as e:
|
6454
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
6455
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
6456
|
+
break
|
6457
|
+
cur_time = time.time()
|
6458
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
6459
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
6460
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
6461
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
6462
|
+
else:
|
6463
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
6464
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
6465
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
6466
|
+
|
6467
|
+
|
6416
6468
|
def doDescribeWorkGroups(args, parsed_globals):
|
6417
6469
|
g_param = parse_global_arg(parsed_globals)
|
6418
6470
|
|
@@ -7691,6 +7743,7 @@ ACTION_MAP = {
|
|
7691
7743
|
"DeleteUsersFromWorkGroup": doDeleteUsersFromWorkGroup,
|
7692
7744
|
"DescribeSparkAppTasks": doDescribeSparkAppTasks,
|
7693
7745
|
"UnbindWorkGroupsFromUser": doUnbindWorkGroupsFromUser,
|
7746
|
+
"CreateSparkSubmitTask": doCreateSparkSubmitTask,
|
7694
7747
|
"DescribeWorkGroups": doDescribeWorkGroups,
|
7695
7748
|
"CreateScript": doCreateScript,
|
7696
7749
|
"RestartDataEngine": doRestartDataEngine,
|