tccli 3.0.1391.1__py2.py3-none-any.whl → 3.0.1414.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.
Potentially problematic release.
This version of tccli might be problematic. Click here for more details.
- tccli/__init__.py +1 -1
- tccli/services/__init__.py +2 -1
- tccli/services/ai3d/v20250513/api.json +22 -4
- tccli/services/aiart/aiart_client.py +173 -67
- tccli/services/aiart/v20221229/api.json +193 -0
- tccli/services/aiart/v20221229/examples.json +16 -0
- tccli/services/apm/apm_client.py +53 -0
- tccli/services/apm/v20210622/api.json +354 -0
- tccli/services/apm/v20210622/examples.json +8 -0
- tccli/services/asr/v20190614/api.json +3 -3
- tccli/services/autoscaling/v20180419/api.json +24 -2
- tccli/services/batch/v20170312/api.json +1 -1
- tccli/services/bda/bda_client.py +15 -704
- tccli/services/bda/v20200324/api.json +107 -1819
- tccli/services/bda/v20200324/examples.json +0 -176
- tccli/services/billing/billing_client.py +326 -8
- tccli/services/billing/v20180709/api.json +2200 -255
- tccli/services/billing/v20180709/examples.json +48 -0
- tccli/services/cam/v20190116/api.json +4 -4
- tccli/services/captcha/v20190722/api.json +3 -3
- tccli/services/cat/v20180409/api.json +7 -7
- tccli/services/ccc/ccc_client.py +235 -76
- tccli/services/ccc/v20200210/api.json +502 -18
- tccli/services/ccc/v20200210/examples.json +24 -0
- tccli/services/cdb/cdb_client.py +106 -0
- tccli/services/cdb/v20170320/api.json +257 -44
- tccli/services/cdb/v20170320/examples.json +22 -6
- tccli/services/cdn/cdn_client.py +4 -163
- tccli/services/cdn/v20180606/api.json +61 -310
- tccli/services/cdn/v20180606/examples.json +1 -25
- tccli/services/cdwdoris/v20211228/api.json +51 -12
- tccli/services/cdwpg/v20201230/api.json +11 -1
- tccli/services/cdwpg/v20201230/examples.json +1 -1
- tccli/services/cfg/v20210820/api.json +11 -1
- tccli/services/cfs/cfs_client.py +41 -94
- tccli/services/cfs/v20190719/api.json +171 -55
- tccli/services/cfs/v20190719/examples.json +1 -9
- tccli/services/cfw/v20190904/api.json +122 -10
- tccli/services/ckafka/ckafka_client.py +188 -29
- tccli/services/ckafka/v20190819/api.json +277 -4
- tccli/services/ckafka/v20190819/examples.json +25 -1
- tccli/services/clb/clb_client.py +0 -265
- tccli/services/clb/v20180317/api.json +130 -296
- tccli/services/clb/v20180317/examples.json +12 -40
- tccli/services/cloudapp/v20220530/api.json +55 -0
- tccli/services/cloudaudit/v20190319/api.json +11 -0
- tccli/services/cloudhsm/v20191112/api.json +10 -10
- tccli/services/cls/v20201016/api.json +63 -45
- tccli/services/cls/v20201016/examples.json +10 -4
- tccli/services/csip/v20221121/api.json +53 -3
- tccli/services/ctem/v20231128/api.json +320 -0
- tccli/services/ctem/v20231128/examples.json +3 -3
- tccli/services/cvm/cvm_client.py +0 -212
- tccli/services/cvm/v20170312/api.json +91 -843
- tccli/services/cvm/v20170312/examples.json +32 -58
- tccli/services/cynosdb/cynosdb_client.py +167 -8
- tccli/services/cynosdb/v20190107/api.json +1126 -148
- tccli/services/cynosdb/v20190107/examples.json +31 -7
- tccli/services/dbbrain/dbbrain_client.py +246 -87
- tccli/services/dbbrain/v20191016/api.json +74 -62
- tccli/services/dbbrain/v20191016/examples.json +1 -1
- tccli/services/dbbrain/v20210527/api.json +601 -177
- tccli/services/dbbrain/v20210527/examples.json +28 -4
- tccli/services/dc/v20180410/api.json +101 -3
- tccli/services/dcdb/v20180411/api.json +1 -1
- tccli/services/dlc/dlc_client.py +53 -0
- tccli/services/dlc/v20210125/api.json +237 -24
- tccli/services/dlc/v20210125/examples.json +12 -4
- tccli/services/dnspod/dnspod_client.py +106 -0
- tccli/services/dnspod/v20210323/api.json +126 -20
- tccli/services/dnspod/v20210323/examples.json +17 -7
- tccli/services/dsgc/v20190723/api.json +73 -15
- tccli/services/dts/v20180330/api.json +4 -4
- tccli/services/dts/v20211206/api.json +408 -127
- tccli/services/dts/v20211206/examples.json +15 -9
- tccli/services/eb/v20210416/api.json +41 -1
- tccli/services/eb/v20210416/examples.json +1 -1
- tccli/services/emr/v20190103/api.json +56 -9
- tccli/services/emr/v20190103/examples.json +5 -5
- tccli/services/es/es_client.py +273 -8
- tccli/services/es/v20180416/api.json +845 -33
- tccli/services/es/v20180416/examples.json +33 -1
- tccli/services/es/v20250101/api.json +135 -2
- tccli/services/es/v20250101/examples.json +8 -0
- tccli/services/ess/ess_client.py +509 -32
- tccli/services/ess/v20201111/api.json +1366 -113
- tccli/services/ess/v20201111/examples.json +94 -10
- tccli/services/essbasic/v20210526/api.json +265 -27
- tccli/services/essbasic/v20210526/examples.json +12 -12
- tccli/services/facefusion/v20220927/api.json +1 -1
- tccli/services/gaap/v20180529/api.json +18 -8
- tccli/services/gme/gme_client.py +53 -0
- tccli/services/gme/v20180711/api.json +241 -1
- tccli/services/gme/v20180711/examples.json +8 -0
- tccli/services/gs/gs_client.py +216 -4
- tccli/services/gs/v20191118/api.json +202 -1
- tccli/services/gs/v20191118/examples.json +32 -0
- tccli/services/gwlb/gwlb_client.py +53 -0
- tccli/services/gwlb/v20240906/api.json +150 -0
- tccli/services/gwlb/v20240906/examples.json +8 -0
- tccli/services/hai/v20230812/api.json +5 -5
- tccli/services/hunyuan/v20230901/api.json +3 -3
- tccli/services/hunyuan/v20230901/examples.json +1 -1
- tccli/services/iai/v20180301/api.json +227 -207
- tccli/services/iai/v20180301/examples.json +26 -26
- tccli/services/iai/v20200303/api.json +4 -4
- tccli/services/iai/v20200303/examples.json +1 -1
- tccli/services/ioa/ioa_client.py +265 -0
- tccli/services/ioa/v20220601/api.json +781 -85
- tccli/services/ioa/v20220601/examples.json +46 -0
- tccli/services/iotexplorer/iotexplorer_client.py +387 -16
- tccli/services/iotexplorer/v20190423/api.json +1183 -63
- tccli/services/iotexplorer/v20190423/examples.json +92 -0
- tccli/services/keewidb/v20220308/api.json +69 -17
- tccli/services/keewidb/v20220308/examples.json +5 -5
- tccli/services/lcic/v20220817/api.json +61 -15
- tccli/services/lighthouse/v20200324/api.json +193 -24
- tccli/services/lighthouse/v20200324/examples.json +9 -3
- tccli/services/live/v20180801/api.json +6 -6
- tccli/services/live/v20180801/examples.json +7 -1
- tccli/services/lke/lke_client.py +40 -93
- tccli/services/lke/v20231130/api.json +943 -390
- tccli/services/lke/v20231130/examples.json +38 -46
- tccli/services/lkeap/v20240522/api.json +39 -12
- tccli/services/lkeap/v20240522/examples.json +12 -0
- tccli/services/mariadb/v20170312/api.json +1 -1
- tccli/services/mna/v20210119/api.json +11 -2
- tccli/services/mna/v20210119/examples.json +1 -1
- tccli/services/mongodb/mongodb_client.py +334 -16
- tccli/services/mongodb/v20190725/api.json +1092 -383
- tccli/services/mongodb/v20190725/examples.json +69 -21
- tccli/services/monitor/monitor_client.py +106 -0
- tccli/services/monitor/v20180724/api.json +383 -12
- tccli/services/monitor/v20180724/examples.json +24 -2
- tccli/services/mps/mps_client.py +220 -8
- tccli/services/mps/v20190612/api.json +1999 -179
- tccli/services/mps/v20190612/examples.json +56 -6
- tccli/services/mqtt/v20240516/api.json +10 -0
- tccli/services/mqtt/v20240516/examples.json +3 -9
- tccli/services/nlp/v20190408/api.json +6 -6
- tccli/services/oceanus/oceanus_client.py +318 -0
- tccli/services/oceanus/v20190422/api.json +461 -26
- tccli/services/oceanus/v20190422/examples.json +50 -2
- tccli/services/ocr/ocr_client.py +41 -253
- tccli/services/ocr/v20181119/api.json +153 -659
- tccli/services/ocr/v20181119/examples.json +8 -40
- tccli/services/omics/v20221128/api.json +90 -7
- tccli/services/organization/v20210331/api.json +46 -7
- tccli/services/postgres/v20170312/api.json +333 -77
- tccli/services/postgres/v20170312/examples.json +37 -31
- tccli/services/privatedns/privatedns_client.py +641 -58
- tccli/services/privatedns/v20201028/api.json +930 -19
- tccli/services/privatedns/v20201028/examples.json +91 -3
- tccli/services/pts/v20210728/api.json +2 -2
- tccli/services/redis/v20180412/api.json +303 -109
- tccli/services/redis/v20180412/examples.json +12 -12
- tccli/services/region/v20220627/api.json +1 -1
- tccli/services/rum/v20210622/api.json +22 -4
- tccli/services/rum/v20210622/examples.json +2 -2
- tccli/services/sms/v20190711/api.json +12 -12
- tccli/services/sms/v20190711/examples.json +9 -3
- tccli/services/sms/v20210111/api.json +13 -13
- tccli/services/sms/v20210111/examples.json +8 -2
- tccli/services/sqlserver/v20180328/api.json +46 -7
- tccli/services/sqlserver/v20180328/examples.json +2 -2
- tccli/services/ssl/v20191205/api.json +28 -0
- tccli/services/svp/v20240125/api.json +14 -4
- tccli/services/tag/v20180813/api.json +3 -3
- tccli/services/tat/v20201028/api.json +22 -3
- tccli/services/tcb/v20180608/api.json +1 -1
- tccli/services/tcss/tcss_client.py +228 -69
- tccli/services/tcss/v20201101/api.json +273 -25
- tccli/services/tcss/v20201101/examples.json +26 -2
- tccli/services/teo/teo_client.py +317 -52
- tccli/services/teo/v20220901/api.json +1824 -242
- tccli/services/teo/v20220901/examples.json +109 -21
- tccli/services/thpc/thpc_client.py +57 -4
- tccli/services/thpc/v20230321/api.json +163 -21
- tccli/services/thpc/v20230321/examples.json +13 -5
- tccli/services/tione/tione_client.py +163 -4
- tccli/services/tione/v20211111/api.json +285 -21
- tccli/services/tione/v20211111/examples.json +27 -3
- tccli/services/tke/tke_client.py +8 -8
- tccli/services/tke/v20180525/api.json +168 -130
- tccli/services/tke/v20180525/examples.json +20 -20
- tccli/services/tke/v20220501/api.json +215 -3
- tccli/services/tke/v20220501/examples.json +8 -0
- tccli/services/tms/tms_client.py +106 -0
- tccli/services/tms/v20201229/api.json +249 -3
- tccli/services/tms/v20201229/examples.json +16 -0
- tccli/services/tmt/v20180321/api.json +78 -1
- tccli/services/trabbit/v20230418/api.json +271 -4
- tccli/services/trabbit/v20230418/examples.json +9 -3
- tccli/services/trocket/v20230308/api.json +4 -4
- tccli/services/trro/trro_client.py +106 -0
- tccli/services/trro/v20220325/api.json +456 -0
- tccli/services/trro/v20220325/examples.json +16 -0
- tccli/services/trtc/v20190722/api.json +197 -49
- tccli/services/trtc/v20190722/examples.json +4 -4
- tccli/services/tse/v20201207/api.json +69 -2
- tccli/services/tse/v20201207/examples.json +3 -3
- tccli/services/tsf/v20180326/api.json +70 -7
- tccli/services/tsf/v20180326/examples.json +2 -2
- tccli/services/vclm/v20240523/api.json +145 -0
- tccli/services/vclm/v20240523/examples.json +16 -0
- tccli/services/vclm/vclm_client.py +106 -0
- tccli/services/vcube/v20220410/api.json +1 -1
- tccli/services/vod/v20180717/api.json +7 -7
- tccli/services/vpc/v20170312/api.json +1216 -70
- tccli/services/vpc/v20170312/examples.json +139 -3
- tccli/services/vpc/vpc_client.py +1023 -122
- tccli/services/vrs/v20200824/api.json +11 -11
- tccli/services/vrs/v20200824/examples.json +1 -1
- tccli/services/vtc/v20240223/api.json +14 -14
- tccli/services/waf/v20180125/api.json +812 -143
- tccli/services/waf/v20180125/examples.json +2 -2
- tccli/services/wedata/v20210820/api.json +1281 -601
- tccli/services/wedata/v20210820/examples.json +127 -157
- tccli/services/wedata/v20250806/api.json +19335 -0
- tccli/services/wedata/v20250806/examples.json +999 -0
- tccli/services/wedata/wedata_client.py +7072 -1131
- {tccli-3.0.1391.1.dist-info → tccli-3.0.1414.1.dist-info}/METADATA +9 -7
- {tccli-3.0.1391.1.dist-info → tccli-3.0.1414.1.dist-info}/RECORD +226 -224
- {tccli-3.0.1391.1.dist-info → tccli-3.0.1414.1.dist-info}/WHEEL +1 -1
- {tccli-3.0.1391.1.dist-info → tccli-3.0.1414.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1391.1.dist-info/license_files → tccli-3.0.1414.1.dist-info/licenses}/LICENSE +0 -0
|
@@ -3070,7 +3070,7 @@
|
|
|
3070
3070
|
{
|
|
3071
3071
|
"disabled": false,
|
|
3072
3072
|
"document": "返回实例的配置文件相关的信息",
|
|
3073
|
-
"example": "
|
|
3073
|
+
"example": "无",
|
|
3074
3074
|
"member": "ClusterConfigsInfoFromEMR",
|
|
3075
3075
|
"name": "ClusterConfList",
|
|
3076
3076
|
"output_required": true,
|
|
@@ -3107,6 +3107,16 @@
|
|
|
3107
3107
|
"type": "bool",
|
|
3108
3108
|
"value_allowed_null": false
|
|
3109
3109
|
},
|
|
3110
|
+
{
|
|
3111
|
+
"disabled": false,
|
|
3112
|
+
"document": "实例已经存在的jar包列表",
|
|
3113
|
+
"example": "无",
|
|
3114
|
+
"member": "ClusterConfigsInfoFromEMR",
|
|
3115
|
+
"name": "ExistingJarConfList",
|
|
3116
|
+
"output_required": false,
|
|
3117
|
+
"type": "list",
|
|
3118
|
+
"value_allowed_null": false
|
|
3119
|
+
},
|
|
3110
3120
|
{
|
|
3111
3121
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
|
3112
3122
|
"member": "string",
|
|
@@ -4025,8 +4035,8 @@
|
|
|
4025
4035
|
"members": [
|
|
4026
4036
|
{
|
|
4027
4037
|
"disabled": false,
|
|
4028
|
-
"document": "
|
|
4029
|
-
"example": "
|
|
4038
|
+
"document": "集群状态 \n Init 创建中 \nServing 运行中 \nIsolated 已隔离 \nChanging 变更中",
|
|
4039
|
+
"example": "Serving",
|
|
4030
4040
|
"member": "string",
|
|
4031
4041
|
"name": "InstanceState",
|
|
4032
4042
|
"output_required": true,
|
|
@@ -4036,7 +4046,7 @@
|
|
|
4036
4046
|
{
|
|
4037
4047
|
"disabled": false,
|
|
4038
4048
|
"document": "集群操作创建时间",
|
|
4039
|
-
"example": "
|
|
4049
|
+
"example": "2025-09-01 23:01:23",
|
|
4040
4050
|
"member": "string",
|
|
4041
4051
|
"name": "FlowCreateTime",
|
|
4042
4052
|
"output_required": true,
|
|
@@ -5404,7 +5414,7 @@
|
|
|
5404
5414
|
"members": [
|
|
5405
5415
|
{
|
|
5406
5416
|
"disabled": false,
|
|
5407
|
-
"document": "集群实例ID, \"
|
|
5417
|
+
"document": "集群实例ID, \"cdwdoris-xxxx\" 字符串类型",
|
|
5408
5418
|
"example": "cdwch-xxxxxxxx",
|
|
5409
5419
|
"member": "string",
|
|
5410
5420
|
"name": "InstanceId",
|
|
@@ -5424,8 +5434,8 @@
|
|
|
5424
5434
|
},
|
|
5425
5435
|
{
|
|
5426
5436
|
"disabled": false,
|
|
5427
|
-
"document": "状态,\nInit
|
|
5428
|
-
"example": "
|
|
5437
|
+
"document": "状态,\nInit 创建中\nServing 运行中\nIsolated 已隔离\nChanging 变更中",
|
|
5438
|
+
"example": "Serving",
|
|
5429
5439
|
"member": "string",
|
|
5430
5440
|
"name": "Status",
|
|
5431
5441
|
"output_required": true,
|
|
@@ -5584,7 +5594,7 @@
|
|
|
5584
5594
|
},
|
|
5585
5595
|
{
|
|
5586
5596
|
"disabled": false,
|
|
5587
|
-
"document": "可用区说明,例如 \"
|
|
5597
|
+
"document": "可用区说明,例如 \"广州三区\"",
|
|
5588
5598
|
"example": "广州三区",
|
|
5589
5599
|
"member": "string",
|
|
5590
5600
|
"name": "ZoneDesc",
|
|
@@ -5665,7 +5675,7 @@
|
|
|
5665
5675
|
{
|
|
5666
5676
|
"disabled": false,
|
|
5667
5677
|
"document": "日志集ID",
|
|
5668
|
-
"example": "seqeas-
|
|
5678
|
+
"example": "seqeas-13q1",
|
|
5669
5679
|
"member": "string",
|
|
5670
5680
|
"name": "ClsLogSetId",
|
|
5671
5681
|
"output_required": true,
|
|
@@ -5725,7 +5735,7 @@
|
|
|
5725
5735
|
{
|
|
5726
5736
|
"disabled": false,
|
|
5727
5737
|
"document": "cos桶",
|
|
5728
|
-
"example": "bucketName-cos-apps-cq-
|
|
5738
|
+
"example": "bucketName-cos-apps-cq-12782193",
|
|
5729
5739
|
"member": "string",
|
|
5730
5740
|
"name": "CosBucketName",
|
|
5731
5741
|
"output_required": false,
|
|
@@ -5775,7 +5785,7 @@
|
|
|
5775
5785
|
{
|
|
5776
5786
|
"disabled": false,
|
|
5777
5787
|
"document": "页面特性,用于前端屏蔽一些页面入口",
|
|
5778
|
-
"example": "[\"catalog\",\"
|
|
5788
|
+
"example": "[\"catalog\",\"notthis\"]",
|
|
5779
5789
|
"member": "string",
|
|
5780
5790
|
"name": "Characteristic",
|
|
5781
5791
|
"output_required": false,
|
|
@@ -5865,7 +5875,7 @@
|
|
|
5865
5875
|
{
|
|
5866
5876
|
"disabled": false,
|
|
5867
5877
|
"document": "冷热分层使用COS桶",
|
|
5868
|
-
"example": "bucketName-cos-apps-cq-
|
|
5878
|
+
"example": "bucketName-cos-apps-cq-1382198",
|
|
5869
5879
|
"member": "string",
|
|
5870
5880
|
"name": "CoolDownBucket",
|
|
5871
5881
|
"output_required": false,
|
|
@@ -5951,6 +5961,26 @@
|
|
|
5951
5961
|
"output_required": false,
|
|
5952
5962
|
"type": "bool",
|
|
5953
5963
|
"value_allowed_null": false
|
|
5964
|
+
},
|
|
5965
|
+
{
|
|
5966
|
+
"disabled": false,
|
|
5967
|
+
"document": "Cos容量包大小",
|
|
5968
|
+
"example": "3130",
|
|
5969
|
+
"member": "int64",
|
|
5970
|
+
"name": "CosPkgCapacity",
|
|
5971
|
+
"output_required": false,
|
|
5972
|
+
"type": "int",
|
|
5973
|
+
"value_allowed_null": false
|
|
5974
|
+
},
|
|
5975
|
+
{
|
|
5976
|
+
"disabled": false,
|
|
5977
|
+
"document": "集群是否使用托管桶",
|
|
5978
|
+
"example": "false",
|
|
5979
|
+
"member": "bool",
|
|
5980
|
+
"name": "UseManagedBucket",
|
|
5981
|
+
"output_required": false,
|
|
5982
|
+
"type": "bool",
|
|
5983
|
+
"value_allowed_null": false
|
|
5954
5984
|
}
|
|
5955
5985
|
],
|
|
5956
5986
|
"usage": "out"
|
|
@@ -6779,6 +6809,15 @@
|
|
|
6779
6809
|
"name": "DefaultComputeGroup",
|
|
6780
6810
|
"required": false,
|
|
6781
6811
|
"type": "string"
|
|
6812
|
+
},
|
|
6813
|
+
{
|
|
6814
|
+
"disabled": false,
|
|
6815
|
+
"document": "0: 灵活场景 1: 固定场景",
|
|
6816
|
+
"example": "1",
|
|
6817
|
+
"member": "int64",
|
|
6818
|
+
"name": "ComputeGroupType",
|
|
6819
|
+
"required": false,
|
|
6820
|
+
"type": "int"
|
|
6782
6821
|
}
|
|
6783
6822
|
],
|
|
6784
6823
|
"type": "object"
|
|
@@ -749,13 +749,23 @@
|
|
|
749
749
|
{
|
|
750
750
|
"disabled": false,
|
|
751
751
|
"document": "账号数组",
|
|
752
|
-
"example": "
|
|
752
|
+
"example": "无",
|
|
753
753
|
"member": "AccountInfo",
|
|
754
754
|
"name": "Accounts",
|
|
755
755
|
"output_required": true,
|
|
756
756
|
"type": "list",
|
|
757
757
|
"value_allowed_null": false
|
|
758
758
|
},
|
|
759
|
+
{
|
|
760
|
+
"disabled": false,
|
|
761
|
+
"document": "error:...",
|
|
762
|
+
"example": "1",
|
|
763
|
+
"member": "string",
|
|
764
|
+
"name": "ErrorMsg",
|
|
765
|
+
"output_required": false,
|
|
766
|
+
"type": "string",
|
|
767
|
+
"value_allowed_null": false
|
|
768
|
+
},
|
|
759
769
|
{
|
|
760
770
|
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
|
761
771
|
"member": "string",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
{
|
|
13
13
|
"document": "",
|
|
14
14
|
"input": "POST / HTTP/1.1\nHost: cdwpg.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAccounts\n<公共请求参数>\n\n{\n \"Offset\": 0,\n \"Limit\": 10,\n \"InstanceId\": \"cdwpg_rzshdeh1\"\n}",
|
|
15
|
-
"output": "{\n \"Response\": {\n \"Accounts\": [\n {\n \"InstanceId\": \"cdwpg-rzshdeh1\",\n \"Perms\": [\n \"Create role\",\n \"Create DB\"\n ],\n \"UserName\": \"dbadmin\"\n }\n ],\n \"RequestId\": \"88aeb3ac-19d8-4c89-b4e2-905cbf74100d\",\n \"TotalCount\": 1\n }\n}",
|
|
15
|
+
"output": "{\n \"Response\": {\n \"Accounts\": [\n {\n \"InstanceId\": \"cdwpg-rzshdeh1\",\n \"Perms\": [\n \"Create role\",\n \"Create DB\"\n ],\n \"UserName\": \"dbadmin\"\n }\n ],\n \"RequestId\": \"88aeb3ac-19d8-4c89-b4e2-905cbf74100d\",\n \"ErrorMsg\": \"\",\n \"TotalCount\": 1\n }\n}",
|
|
16
16
|
"title": "账号管理"
|
|
17
17
|
}
|
|
18
18
|
],
|
|
@@ -3233,7 +3233,7 @@
|
|
|
3233
3233
|
{
|
|
3234
3234
|
"disabled": false,
|
|
3235
3235
|
"document": "任务ID",
|
|
3236
|
-
"example": "
|
|
3236
|
+
"example": "329",
|
|
3237
3237
|
"member": "int64",
|
|
3238
3238
|
"name": "TaskId",
|
|
3239
3239
|
"output_required": true,
|
|
@@ -3389,6 +3389,16 @@
|
|
|
3389
3389
|
"output_required": false,
|
|
3390
3390
|
"type": "string",
|
|
3391
3391
|
"value_allowed_null": false
|
|
3392
|
+
},
|
|
3393
|
+
{
|
|
3394
|
+
"disabled": false,
|
|
3395
|
+
"document": "来源",
|
|
3396
|
+
"example": "1",
|
|
3397
|
+
"member": "int64",
|
|
3398
|
+
"name": "TaskSource",
|
|
3399
|
+
"output_required": false,
|
|
3400
|
+
"type": "int",
|
|
3401
|
+
"value_allowed_null": false
|
|
3392
3402
|
}
|
|
3393
3403
|
],
|
|
3394
3404
|
"usage": "out"
|
tccli/services/cfs/cfs_client.py
CHANGED
|
@@ -537,7 +537,7 @@ def doCreateDataFlow(args, parsed_globals):
|
|
|
537
537
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
538
538
|
|
|
539
539
|
|
|
540
|
-
def
|
|
540
|
+
def doDeleteUserQuota(args, parsed_globals):
|
|
541
541
|
g_param = parse_global_arg(parsed_globals)
|
|
542
542
|
|
|
543
543
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -566,11 +566,11 @@ def doDeleteCfsPGroup(args, parsed_globals):
|
|
|
566
566
|
client = mod.CfsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
567
567
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
568
568
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
569
|
-
model = models.
|
|
569
|
+
model = models.DeleteUserQuotaRequest()
|
|
570
570
|
model.from_json_string(json.dumps(args))
|
|
571
571
|
start_time = time.time()
|
|
572
572
|
while True:
|
|
573
|
-
rsp = client.
|
|
573
|
+
rsp = client.DeleteUserQuota(model)
|
|
574
574
|
result = rsp.to_json_string()
|
|
575
575
|
try:
|
|
576
576
|
json_obj = json.loads(result)
|
|
@@ -589,7 +589,7 @@ def doDeleteCfsPGroup(args, parsed_globals):
|
|
|
589
589
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
590
590
|
|
|
591
591
|
|
|
592
|
-
def
|
|
592
|
+
def doDeleteCfsPGroup(args, parsed_globals):
|
|
593
593
|
g_param = parse_global_arg(parsed_globals)
|
|
594
594
|
|
|
595
595
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -618,11 +618,11 @@ def doDeleteLifecyclePolicy(args, parsed_globals):
|
|
|
618
618
|
client = mod.CfsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
619
619
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
620
620
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
621
|
-
model = models.
|
|
621
|
+
model = models.DeleteCfsPGroupRequest()
|
|
622
622
|
model.from_json_string(json.dumps(args))
|
|
623
623
|
start_time = time.time()
|
|
624
624
|
while True:
|
|
625
|
-
rsp = client.
|
|
625
|
+
rsp = client.DeleteCfsPGroup(model)
|
|
626
626
|
result = rsp.to_json_string()
|
|
627
627
|
try:
|
|
628
628
|
json_obj = json.loads(result)
|
|
@@ -641,7 +641,7 @@ def doDeleteLifecyclePolicy(args, parsed_globals):
|
|
|
641
641
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
642
642
|
|
|
643
643
|
|
|
644
|
-
def
|
|
644
|
+
def doDeleteLifecyclePolicy(args, parsed_globals):
|
|
645
645
|
g_param = parse_global_arg(parsed_globals)
|
|
646
646
|
|
|
647
647
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -670,11 +670,11 @@ def doCreateLifecyclePolicyDownloadTask(args, parsed_globals):
|
|
|
670
670
|
client = mod.CfsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
671
671
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
672
672
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
673
|
-
model = models.
|
|
673
|
+
model = models.DeleteLifecyclePolicyRequest()
|
|
674
674
|
model.from_json_string(json.dumps(args))
|
|
675
675
|
start_time = time.time()
|
|
676
676
|
while True:
|
|
677
|
-
rsp = client.
|
|
677
|
+
rsp = client.DeleteLifecyclePolicy(model)
|
|
678
678
|
result = rsp.to_json_string()
|
|
679
679
|
try:
|
|
680
680
|
json_obj = json.loads(result)
|
|
@@ -693,7 +693,7 @@ def doCreateLifecyclePolicyDownloadTask(args, parsed_globals):
|
|
|
693
693
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
694
694
|
|
|
695
695
|
|
|
696
|
-
def
|
|
696
|
+
def doCreateLifecyclePolicyDownloadTask(args, parsed_globals):
|
|
697
697
|
g_param = parse_global_arg(parsed_globals)
|
|
698
698
|
|
|
699
699
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -722,11 +722,11 @@ def doDeleteCfsRule(args, parsed_globals):
|
|
|
722
722
|
client = mod.CfsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
723
723
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
724
724
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
725
|
-
model = models.
|
|
725
|
+
model = models.CreateLifecyclePolicyDownloadTaskRequest()
|
|
726
726
|
model.from_json_string(json.dumps(args))
|
|
727
727
|
start_time = time.time()
|
|
728
728
|
while True:
|
|
729
|
-
rsp = client.
|
|
729
|
+
rsp = client.CreateLifecyclePolicyDownloadTask(model)
|
|
730
730
|
result = rsp.to_json_string()
|
|
731
731
|
try:
|
|
732
732
|
json_obj = json.loads(result)
|
|
@@ -745,7 +745,7 @@ def doDeleteCfsRule(args, parsed_globals):
|
|
|
745
745
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
746
746
|
|
|
747
747
|
|
|
748
|
-
def
|
|
748
|
+
def doDeleteCfsRule(args, parsed_globals):
|
|
749
749
|
g_param = parse_global_arg(parsed_globals)
|
|
750
750
|
|
|
751
751
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -774,11 +774,11 @@ def doDescribeCfsServiceStatus(args, parsed_globals):
|
|
|
774
774
|
client = mod.CfsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
775
775
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
776
776
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
777
|
-
model = models.
|
|
777
|
+
model = models.DeleteCfsRuleRequest()
|
|
778
778
|
model.from_json_string(json.dumps(args))
|
|
779
779
|
start_time = time.time()
|
|
780
780
|
while True:
|
|
781
|
-
rsp = client.
|
|
781
|
+
rsp = client.DeleteCfsRule(model)
|
|
782
782
|
result = rsp.to_json_string()
|
|
783
783
|
try:
|
|
784
784
|
json_obj = json.loads(result)
|
|
@@ -797,7 +797,7 @@ def doDescribeCfsServiceStatus(args, parsed_globals):
|
|
|
797
797
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
798
798
|
|
|
799
799
|
|
|
800
|
-
def
|
|
800
|
+
def doDescribeCfsServiceStatus(args, parsed_globals):
|
|
801
801
|
g_param = parse_global_arg(parsed_globals)
|
|
802
802
|
|
|
803
803
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -826,11 +826,11 @@ def doStopMigrationTask(args, parsed_globals):
|
|
|
826
826
|
client = mod.CfsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
827
827
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
828
828
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
829
|
-
model = models.
|
|
829
|
+
model = models.DescribeCfsServiceStatusRequest()
|
|
830
830
|
model.from_json_string(json.dumps(args))
|
|
831
831
|
start_time = time.time()
|
|
832
832
|
while True:
|
|
833
|
-
rsp = client.
|
|
833
|
+
rsp = client.DescribeCfsServiceStatus(model)
|
|
834
834
|
result = rsp.to_json_string()
|
|
835
835
|
try:
|
|
836
836
|
json_obj = json.loads(result)
|
|
@@ -849,7 +849,7 @@ def doStopMigrationTask(args, parsed_globals):
|
|
|
849
849
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
850
850
|
|
|
851
851
|
|
|
852
|
-
def
|
|
852
|
+
def doStopMigrationTask(args, parsed_globals):
|
|
853
853
|
g_param = parse_global_arg(parsed_globals)
|
|
854
854
|
|
|
855
855
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -878,11 +878,11 @@ def doDescribeMigrationTasks(args, parsed_globals):
|
|
|
878
878
|
client = mod.CfsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
879
879
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
880
880
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
881
|
-
model = models.
|
|
881
|
+
model = models.StopMigrationTaskRequest()
|
|
882
882
|
model.from_json_string(json.dumps(args))
|
|
883
883
|
start_time = time.time()
|
|
884
884
|
while True:
|
|
885
|
-
rsp = client.
|
|
885
|
+
rsp = client.StopMigrationTask(model)
|
|
886
886
|
result = rsp.to_json_string()
|
|
887
887
|
try:
|
|
888
888
|
json_obj = json.loads(result)
|
|
@@ -901,7 +901,7 @@ def doDescribeMigrationTasks(args, parsed_globals):
|
|
|
901
901
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
902
902
|
|
|
903
903
|
|
|
904
|
-
def
|
|
904
|
+
def doDescribeMigrationTasks(args, parsed_globals):
|
|
905
905
|
g_param = parse_global_arg(parsed_globals)
|
|
906
906
|
|
|
907
907
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -930,11 +930,11 @@ def doDescribeAvailableZoneInfo(args, parsed_globals):
|
|
|
930
930
|
client = mod.CfsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
931
931
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
932
932
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
933
|
-
model = models.
|
|
933
|
+
model = models.DescribeMigrationTasksRequest()
|
|
934
934
|
model.from_json_string(json.dumps(args))
|
|
935
935
|
start_time = time.time()
|
|
936
936
|
while True:
|
|
937
|
-
rsp = client.
|
|
937
|
+
rsp = client.DescribeMigrationTasks(model)
|
|
938
938
|
result = rsp.to_json_string()
|
|
939
939
|
try:
|
|
940
940
|
json_obj = json.loads(result)
|
|
@@ -953,7 +953,7 @@ def doDescribeAvailableZoneInfo(args, parsed_globals):
|
|
|
953
953
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
954
954
|
|
|
955
955
|
|
|
956
|
-
def
|
|
956
|
+
def doDescribeAvailableZoneInfo(args, parsed_globals):
|
|
957
957
|
g_param = parse_global_arg(parsed_globals)
|
|
958
958
|
|
|
959
959
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -982,11 +982,11 @@ def doCreateLifecycleDataTask(args, parsed_globals):
|
|
|
982
982
|
client = mod.CfsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
983
983
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
984
984
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
985
|
-
model = models.
|
|
985
|
+
model = models.DescribeAvailableZoneInfoRequest()
|
|
986
986
|
model.from_json_string(json.dumps(args))
|
|
987
987
|
start_time = time.time()
|
|
988
988
|
while True:
|
|
989
|
-
rsp = client.
|
|
989
|
+
rsp = client.DescribeAvailableZoneInfo(model)
|
|
990
990
|
result = rsp.to_json_string()
|
|
991
991
|
try:
|
|
992
992
|
json_obj = json.loads(result)
|
|
@@ -1005,7 +1005,7 @@ def doCreateLifecycleDataTask(args, parsed_globals):
|
|
|
1005
1005
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1006
1006
|
|
|
1007
1007
|
|
|
1008
|
-
def
|
|
1008
|
+
def doCreateLifecycleDataTask(args, parsed_globals):
|
|
1009
1009
|
g_param = parse_global_arg(parsed_globals)
|
|
1010
1010
|
|
|
1011
1011
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -1034,11 +1034,11 @@ def doScaleUpFileSystem(args, parsed_globals):
|
|
|
1034
1034
|
client = mod.CfsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1035
1035
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
1036
1036
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1037
|
-
model = models.
|
|
1037
|
+
model = models.CreateLifecycleDataTaskRequest()
|
|
1038
1038
|
model.from_json_string(json.dumps(args))
|
|
1039
1039
|
start_time = time.time()
|
|
1040
1040
|
while True:
|
|
1041
|
-
rsp = client.
|
|
1041
|
+
rsp = client.CreateLifecycleDataTask(model)
|
|
1042
1042
|
result = rsp.to_json_string()
|
|
1043
1043
|
try:
|
|
1044
1044
|
json_obj = json.loads(result)
|
|
@@ -1057,7 +1057,7 @@ def doScaleUpFileSystem(args, parsed_globals):
|
|
|
1057
1057
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1058
1058
|
|
|
1059
1059
|
|
|
1060
|
-
def
|
|
1060
|
+
def doScaleUpFileSystem(args, parsed_globals):
|
|
1061
1061
|
g_param = parse_global_arg(parsed_globals)
|
|
1062
1062
|
|
|
1063
1063
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -1086,11 +1086,11 @@ def doSignUpCfsService(args, parsed_globals):
|
|
|
1086
1086
|
client = mod.CfsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1087
1087
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
1088
1088
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1089
|
-
model = models.
|
|
1089
|
+
model = models.ScaleUpFileSystemRequest()
|
|
1090
1090
|
model.from_json_string(json.dumps(args))
|
|
1091
1091
|
start_time = time.time()
|
|
1092
1092
|
while True:
|
|
1093
|
-
rsp = client.
|
|
1093
|
+
rsp = client.ScaleUpFileSystem(model)
|
|
1094
1094
|
result = rsp.to_json_string()
|
|
1095
1095
|
try:
|
|
1096
1096
|
json_obj = json.loads(result)
|
|
@@ -1109,7 +1109,7 @@ def doSignUpCfsService(args, parsed_globals):
|
|
|
1109
1109
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
1110
1110
|
|
|
1111
1111
|
|
|
1112
|
-
def
|
|
1112
|
+
def doSignUpCfsService(args, parsed_globals):
|
|
1113
1113
|
g_param = parse_global_arg(parsed_globals)
|
|
1114
1114
|
|
|
1115
1115
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -1138,11 +1138,11 @@ def doCreateAutoSnapshotPolicy(args, parsed_globals):
|
|
|
1138
1138
|
client = mod.CfsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
1139
1139
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
1140
1140
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
1141
|
-
model = models.
|
|
1141
|
+
model = models.SignUpCfsServiceRequest()
|
|
1142
1142
|
model.from_json_string(json.dumps(args))
|
|
1143
1143
|
start_time = time.time()
|
|
1144
1144
|
while True:
|
|
1145
|
-
rsp = client.
|
|
1145
|
+
rsp = client.SignUpCfsService(model)
|
|
1146
1146
|
result = rsp.to_json_string()
|
|
1147
1147
|
try:
|
|
1148
1148
|
json_obj = json.loads(result)
|
|
@@ -2305,59 +2305,7 @@ def doCreateMigrationTask(args, parsed_globals):
|
|
|
2305
2305
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2306
2306
|
|
|
2307
2307
|
|
|
2308
|
-
def
|
|
2309
|
-
g_param = parse_global_arg(parsed_globals)
|
|
2310
|
-
|
|
2311
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
2312
|
-
cred = credential.CVMRoleCredential()
|
|
2313
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
|
2314
|
-
cred = credential.STSAssumeRoleCredential(
|
|
2315
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
|
2316
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
|
2317
|
-
)
|
|
2318
|
-
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):
|
|
2319
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
|
2320
|
-
else:
|
|
2321
|
-
cred = credential.Credential(
|
|
2322
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
|
2323
|
-
)
|
|
2324
|
-
http_profile = HttpProfile(
|
|
2325
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
|
2326
|
-
reqMethod="POST",
|
|
2327
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
|
2328
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
|
2329
|
-
)
|
|
2330
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
|
2331
|
-
if g_param[OptionsDefine.Language]:
|
|
2332
|
-
profile.language = g_param[OptionsDefine.Language]
|
|
2333
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
|
2334
|
-
client = mod.CfsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2335
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
|
2336
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2337
|
-
model = models.DeleteMountTargetRequest()
|
|
2338
|
-
model.from_json_string(json.dumps(args))
|
|
2339
|
-
start_time = time.time()
|
|
2340
|
-
while True:
|
|
2341
|
-
rsp = client.DeleteMountTarget(model)
|
|
2342
|
-
result = rsp.to_json_string()
|
|
2343
|
-
try:
|
|
2344
|
-
json_obj = json.loads(result)
|
|
2345
|
-
except TypeError as e:
|
|
2346
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
|
2347
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
|
2348
|
-
break
|
|
2349
|
-
cur_time = time.time()
|
|
2350
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
|
2351
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
|
2352
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
|
2353
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
|
2354
|
-
else:
|
|
2355
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
|
2356
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
|
2357
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
def doDeleteUserQuota(args, parsed_globals):
|
|
2308
|
+
def doCreateAutoSnapshotPolicy(args, parsed_globals):
|
|
2361
2309
|
g_param = parse_global_arg(parsed_globals)
|
|
2362
2310
|
|
|
2363
2311
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
|
@@ -2386,11 +2334,11 @@ def doDeleteUserQuota(args, parsed_globals):
|
|
|
2386
2334
|
client = mod.CfsClient(cred, g_param[OptionsDefine.Region], profile)
|
|
2387
2335
|
client._sdkVersion += ("_CLI_" + __version__)
|
|
2388
2336
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
|
2389
|
-
model = models.
|
|
2337
|
+
model = models.CreateAutoSnapshotPolicyRequest()
|
|
2390
2338
|
model.from_json_string(json.dumps(args))
|
|
2391
2339
|
start_time = time.time()
|
|
2392
2340
|
while True:
|
|
2393
|
-
rsp = client.
|
|
2341
|
+
rsp = client.CreateAutoSnapshotPolicy(model)
|
|
2394
2342
|
result = rsp.to_json_string()
|
|
2395
2343
|
try:
|
|
2396
2344
|
json_obj = json.loads(result)
|
|
@@ -3054,6 +3002,7 @@ ACTION_MAP = {
|
|
|
3054
3002
|
"CreateCfsPGroup": doCreateCfsPGroup,
|
|
3055
3003
|
"BindAutoSnapshotPolicy": doBindAutoSnapshotPolicy,
|
|
3056
3004
|
"CreateDataFlow": doCreateDataFlow,
|
|
3005
|
+
"DeleteUserQuota": doDeleteUserQuota,
|
|
3057
3006
|
"DeleteCfsPGroup": doDeleteCfsPGroup,
|
|
3058
3007
|
"DeleteLifecyclePolicy": doDeleteLifecyclePolicy,
|
|
3059
3008
|
"CreateLifecyclePolicyDownloadTask": doCreateLifecyclePolicyDownloadTask,
|
|
@@ -3065,7 +3014,6 @@ ACTION_MAP = {
|
|
|
3065
3014
|
"CreateLifecycleDataTask": doCreateLifecycleDataTask,
|
|
3066
3015
|
"ScaleUpFileSystem": doScaleUpFileSystem,
|
|
3067
3016
|
"SignUpCfsService": doSignUpCfsService,
|
|
3068
|
-
"CreateAutoSnapshotPolicy": doCreateAutoSnapshotPolicy,
|
|
3069
3017
|
"DeleteMigrationTask": doDeleteMigrationTask,
|
|
3070
3018
|
"UpdateFileSystemBandwidthLimit": doUpdateFileSystemBandwidthLimit,
|
|
3071
3019
|
"UpdateCfsFileSystemSizeLimit": doUpdateCfsFileSystemSizeLimit,
|
|
@@ -3088,8 +3036,7 @@ ACTION_MAP = {
|
|
|
3088
3036
|
"DescribeCfsFileSystemClients": doDescribeCfsFileSystemClients,
|
|
3089
3037
|
"DescribeBucketList": doDescribeBucketList,
|
|
3090
3038
|
"CreateMigrationTask": doCreateMigrationTask,
|
|
3091
|
-
"
|
|
3092
|
-
"DeleteUserQuota": doDeleteUserQuota,
|
|
3039
|
+
"CreateAutoSnapshotPolicy": doCreateAutoSnapshotPolicy,
|
|
3093
3040
|
"DescribeAutoSnapshotPolicies": doDescribeAutoSnapshotPolicies,
|
|
3094
3041
|
"DeleteAutoSnapshotPolicy": doDeleteAutoSnapshotPolicy,
|
|
3095
3042
|
"StopLifecycleDataTask": doStopLifecycleDataTask,
|