tccli 3.0.1215.1__py2.py3-none-any.whl → 3.0.1217.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/argparser.py +1 -1
- tccli/command.py +2 -2
- tccli/configure.py +46 -1
- tccli/credentials.py +25 -0
- tccli/main.py +6 -2
- tccli/plugins/sso/__init__.py +61 -0
- tccli/plugins/sso/configs.py +4 -0
- tccli/plugins/sso/configure.py +45 -0
- tccli/plugins/sso/login.py +144 -0
- tccli/plugins/sso/logout.py +21 -0
- tccli/plugins/sso/terminal.py +161 -0
- tccli/plugins/sso/texts.py +40 -0
- tccli/services/__init__.py +6 -3
- tccli/services/acp/v20220105/api.json +7 -7
- tccli/services/acp/v20220105/examples.json +2 -2
- tccli/services/aiart/v20221229/api.json +29 -29
- tccli/services/aiart/v20221229/examples.json +8 -8
- tccli/services/apigateway/v20180808/api.json +18 -17
- tccli/services/apigateway/v20180808/examples.json +12 -12
- tccli/services/apm/v20210622/api.json +118 -4
- tccli/services/asr/v20190614/api.json +21 -20
- tccli/services/asr/v20190614/examples.json +13 -13
- tccli/services/autoscaling/v20180419/api.json +371 -309
- tccli/services/autoscaling/v20180419/examples.json +17 -17
- tccli/services/batch/v20170312/api.json +7 -7
- tccli/services/bda/v20200324/api.json +39 -31
- tccli/services/bda/v20200324/examples.json +9 -9
- tccli/services/bh/__init__.py +4 -0
- tccli/services/bh/bh_client.py +3428 -0
- tccli/services/bh/v20230418/api.json +8180 -0
- tccli/services/bh/v20230418/examples.json +519 -0
- tccli/services/bi/v20220105/api.json +80 -4
- tccli/services/bi/v20220105/examples.json +1 -1
- tccli/services/billing/billing_client.py +53 -0
- tccli/services/billing/v20180709/api.json +330 -24
- tccli/services/billing/v20180709/examples.json +8 -0
- tccli/services/bsca/v20210811/api.json +223 -18
- tccli/services/bsca/v20210811/examples.json +4 -4
- tccli/services/btoe/v20210514/api.json +4 -4
- tccli/services/btoe/v20210514/examples.json +2 -2
- tccli/services/ca/v20230228/api.json +60 -0
- tccli/services/cam/v20190116/api.json +11 -11
- tccli/services/cat/v20180409/api.json +9 -0
- tccli/services/cbs/v20170312/api.json +200 -188
- tccli/services/cbs/v20170312/examples.json +4 -4
- tccli/services/ccc/ccc_client.py +53 -0
- tccli/services/ccc/v20200210/api.json +541 -325
- tccli/services/ccc/v20200210/examples.json +26 -18
- tccli/services/cdb/cdb_client.py +13 -13
- tccli/services/cdb/v20170320/api.json +308 -274
- tccli/services/cdb/v20170320/examples.json +38 -38
- tccli/services/cdc/v20201214/api.json +283 -270
- tccli/services/cdc/v20201214/examples.json +26 -26
- tccli/services/cdn/v20180606/api.json +5 -3
- tccli/services/cds/v20180420/api.json +82 -76
- tccli/services/cds/v20180420/examples.json +1 -1
- tccli/services/cdwch/v20200915/api.json +1 -1
- tccli/services/cdwdoris/v20211228/api.json +54 -4
- tccli/services/cdz/v20221123/api.json +41 -5
- tccli/services/cfg/v20210820/api.json +31 -0
- tccli/services/cfs/v20190719/api.json +89 -1
- tccli/services/cfs/v20190719/examples.json +1 -1
- tccli/services/cfw/cfw_client.py +0 -53
- tccli/services/cfw/v20190904/api.json +1895 -2011
- tccli/services/cfw/v20190904/examples.json +175 -171
- tccli/services/ciam/v20220331/api.json +316 -315
- tccli/services/ciam/v20220331/examples.json +49 -49
- tccli/services/ckafka/v20190819/api.json +104 -75
- tccli/services/clb/v20180317/api.json +48 -26
- tccli/services/clb/v20180317/examples.json +1 -1
- tccli/services/cloudapp/v20220530/api.json +5 -1
- tccli/services/cloudaudit/cloudaudit_client.py +30 -30
- tccli/services/cloudaudit/v20190319/api.json +254 -211
- tccli/services/cloudaudit/v20190319/examples.json +19 -19
- tccli/services/cloudstudio/v20230508/api.json +38 -37
- tccli/services/cloudstudio/v20230508/examples.json +4 -4
- tccli/services/cls/cls_client.py +216 -4
- tccli/services/cls/v20201016/api.json +935 -147
- tccli/services/cls/v20201016/examples.json +43 -5
- tccli/services/csip/v20221121/api.json +2566 -2386
- tccli/services/csip/v20221121/examples.json +108 -108
- tccli/services/cvm/v20170312/api.json +191 -112
- tccli/services/cvm/v20170312/examples.json +2 -2
- tccli/services/cwp/cwp_client.py +4 -110
- tccli/services/cwp/v20180228/api.json +6498 -6252
- tccli/services/cwp/v20180228/examples.json +372 -412
- tccli/services/cynosdb/v20190107/api.json +170 -110
- tccli/services/cynosdb/v20190107/examples.json +91 -91
- tccli/services/dasb/v20191018/api.json +859 -637
- tccli/services/dasb/v20191018/examples.json +101 -101
- tccli/services/dcdb/dcdb_client.py +114 -61
- tccli/services/dcdb/v20180411/api.json +141 -7
- tccli/services/dcdb/v20180411/examples.json +32 -0
- tccli/services/dlc/v20210125/api.json +21 -11
- tccli/services/dnspod/dnspod_client.py +417 -46
- tccli/services/dnspod/v20210323/api.json +751 -30
- tccli/services/dnspod/v20210323/examples.json +62 -0
- tccli/services/domain/v20180808/api.json +3 -3
- tccli/services/domain/v20180808/examples.json +3 -3
- tccli/services/dts/v20211206/api.json +4 -4
- tccli/services/eb/v20210416/api.json +15 -15
- tccli/services/eb/v20210416/examples.json +1 -1
- tccli/services/ecm/v20190719/api.json +2 -2
- tccli/services/emr/v20190103/api.json +339 -114
- tccli/services/emr/v20190103/examples.json +64 -82
- tccli/services/es/es_client.py +249 -37
- tccli/services/es/v20180416/api.json +550 -0
- tccli/services/es/v20180416/examples.json +33 -1
- tccli/services/ess/ess_client.py +53 -0
- tccli/services/ess/v20201111/api.json +192 -38
- tccli/services/ess/v20201111/examples.json +35 -9
- tccli/services/essbasic/essbasic_client.py +106 -0
- tccli/services/essbasic/v20210526/api.json +287 -60
- tccli/services/essbasic/v20210526/examples.json +58 -18
- tccli/services/facefusion/v20181201/api.json +47 -45
- tccli/services/facefusion/v20181201/examples.json +2 -2
- tccli/services/facefusion/v20220927/api.json +54 -48
- tccli/services/facefusion/v20220927/examples.json +5 -5
- tccli/services/faceid/v20180301/api.json +497 -496
- tccli/services/faceid/v20180301/examples.json +219 -101
- tccli/services/fmu/v20191213/api.json +59 -67
- tccli/services/fmu/v20191213/examples.json +22 -22
- tccli/services/ft/v20200304/api.json +53 -57
- tccli/services/ft/v20200304/examples.json +14 -14
- tccli/services/gaap/v20180529/api.json +44 -26
- tccli/services/gaap/v20180529/examples.json +24 -30
- tccli/services/gme/v20180711/api.json +21 -11
- tccli/services/gme/v20180711/examples.json +1 -1
- tccli/services/hai/v20230812/api.json +116 -9
- tccli/services/hai/v20230812/examples.json +4 -4
- tccli/services/hunyuan/hunyuan_client.py +436 -12
- tccli/services/hunyuan/v20230901/api.json +1482 -118
- tccli/services/hunyuan/v20230901/examples.json +82 -18
- tccli/services/iai/v20180301/api.json +23 -19
- tccli/services/iai/v20180301/examples.json +2 -2
- tccli/services/iai/v20200303/api.json +530 -511
- tccli/services/iai/v20200303/examples.json +116 -86
- tccli/services/ig/__init__.py +4 -0
- tccli/services/ig/ig_client.py +195 -0
- tccli/services/ig/v20210518/api.json +83 -0
- tccli/services/ig/v20210518/examples.json +13 -0
- tccli/services/ioa/ioa_client.py +53 -0
- tccli/services/ioa/v20220601/api.json +662 -413
- tccli/services/ioa/v20220601/examples.json +24 -10
- tccli/services/iotexplorer/v20190423/api.json +73 -13
- tccli/services/iotexplorer/v20190423/examples.json +3 -3
- tccli/services/iotvideo/iotvideo_client.py +106 -0
- tccli/services/iotvideo/v20191126/api.json +256 -24
- tccli/services/iotvideo/v20191126/examples.json +19 -3
- tccli/services/iotvideo/v20201215/api.json +1 -1
- tccli/services/iotvideo/v20201215/examples.json +1 -1
- tccli/services/iotvideo/v20211125/api.json +1 -1
- tccli/services/iotvideo/v20211125/examples.json +2 -2
- tccli/services/iss/iss_client.py +69 -122
- tccli/services/iss/v20230517/api.json +10 -54
- tccli/services/iss/v20230517/examples.json +0 -14
- tccli/services/kms/v20190118/api.json +301 -268
- tccli/services/kms/v20190118/examples.json +45 -51
- tccli/services/lcic/lcic_client.py +159 -0
- tccli/services/lcic/v20220817/api.json +273 -1
- tccli/services/lcic/v20220817/examples.json +24 -0
- tccli/services/lighthouse/v20200324/api.json +56 -0
- tccli/services/live/live_client.py +159 -0
- tccli/services/live/v20180801/api.json +279 -9
- tccli/services/live/v20180801/examples.json +24 -0
- tccli/services/lke/v20231130/api.json +17 -17
- tccli/services/lke/v20231130/examples.json +19 -25
- tccli/services/mariadb/v20170312/api.json +7 -7
- tccli/services/market/v20191010/api.json +3 -3
- tccli/services/market/v20191010/examples.json +2 -2
- tccli/services/mmps/v20200710/api.json +47 -47
- tccli/services/mmps/v20200710/examples.json +3 -3
- tccli/services/mongodb/v20190725/api.json +10 -12
- tccli/services/monitor/v20180724/api.json +46 -19
- tccli/services/mps/v20190612/api.json +282 -5
- tccli/services/mps/v20190612/examples.json +25 -1
- tccli/services/mqtt/v20240516/api.json +2 -2
- tccli/services/mrs/v20200910/api.json +72 -34
- tccli/services/mrs/v20200910/examples.json +2 -2
- tccli/services/ms/v20180408/api.json +535 -506
- tccli/services/ms/v20180408/examples.json +25 -25
- tccli/services/oceanus/v20190422/api.json +130 -0
- tccli/services/ocr/ocr_client.py +232 -20
- tccli/services/ocr/v20181119/api.json +2263 -758
- tccli/services/ocr/v20181119/examples.json +200 -180
- tccli/services/omics/v20221128/api.json +614 -553
- tccli/services/omics/v20221128/examples.json +9 -9
- tccli/services/organization/organization_client.py +352 -34
- tccli/services/organization/v20210331/api.json +464 -4
- tccli/services/organization/v20210331/examples.json +49 -1
- tccli/services/partners/v20180321/api.json +244 -234
- tccli/services/partners/v20180321/examples.json +19 -19
- tccli/services/privatedns/privatedns_client.py +428 -4
- tccli/services/privatedns/v20201028/api.json +815 -11
- tccli/services/privatedns/v20201028/examples.json +64 -0
- tccli/services/pts/v20210728/api.json +18 -0
- tccli/services/pts/v20210728/examples.json +1 -1
- tccli/services/rce/rce_client.py +53 -0
- tccli/services/rce/v20201103/api.json +146 -0
- tccli/services/rce/v20201103/examples.json +8 -0
- tccli/services/redis/v20180412/api.json +42 -42
- tccli/services/redis/v20180412/examples.json +19 -19
- tccli/services/region/v20220627/api.json +1 -1
- tccli/services/rum/v20210622/api.json +9 -0
- tccli/services/scf/scf_client.py +269 -4
- tccli/services/scf/v20180416/api.json +569 -15
- tccli/services/scf/v20180416/examples.json +47 -1
- tccli/services/smop/v20201203/api.json +46 -42
- tccli/services/smop/v20201203/examples.json +2 -2
- tccli/services/soe/v20180724/api.json +10 -10
- tccli/services/sqlserver/v20180328/api.json +21 -8
- tccli/services/sqlserver/v20180328/examples.json +5 -5
- tccli/services/ssl/v20191205/api.json +98 -5
- tccli/services/ssm/v20190923/api.json +292 -231
- tccli/services/ssm/v20190923/examples.json +42 -42
- tccli/services/tat/v20201028/api.json +124 -122
- tccli/services/tat/v20201028/examples.json +24 -30
- tccli/services/tchd/v20230306/api.json +5 -5
- tccli/services/tchd/v20230306/examples.json +3 -3
- tccli/services/tcr/v20190924/api.json +1 -1
- tccli/services/tcr/v20190924/examples.json +1 -1
- tccli/services/tcss/v20201101/api.json +1984 -1437
- tccli/services/tcss/v20201101/examples.json +350 -368
- tccli/services/tdmq/v20200217/api.json +603 -464
- tccli/services/tdmq/v20200217/examples.json +105 -105
- tccli/services/tds/v20220801/api.json +4 -4
- tccli/services/tem/v20210701/api.json +429 -372
- tccli/services/tem/v20210701/examples.json +85 -85
- tccli/services/teo/teo_client.py +277 -12
- tccli/services/teo/v20220901/api.json +1029 -124
- tccli/services/teo/v20220901/examples.json +84 -8
- tccli/services/thpc/v20230321/api.json +5 -5
- tccli/services/tke/tke_client.py +270 -58
- tccli/services/tke/v20180525/api.json +79 -27
- tccli/services/tke/v20180525/examples.json +9 -1
- tccli/services/tke/v20220501/api.json +176 -0
- tccli/services/tke/v20220501/examples.json +24 -0
- tccli/services/tms/tms_client.py +4 -57
- tccli/services/tms/v20201229/api.json +0 -354
- tccli/services/tms/v20201229/examples.json +0 -8
- tccli/services/tmt/v20180321/api.json +38 -8
- tccli/services/trp/v20210515/api.json +86 -74
- tccli/services/trp/v20210515/examples.json +65 -65
- tccli/services/trro/v20220325/api.json +72 -71
- tccli/services/trro/v20220325/examples.json +8 -8
- tccli/services/trtc/trtc_client.py +8 -61
- tccli/services/trtc/v20190722/api.json +293 -52
- tccli/services/trtc/v20190722/examples.json +3 -11
- tccli/services/tse/tse_client.py +110 -4
- tccli/services/tse/v20201207/api.json +122 -7
- tccli/services/tse/v20201207/examples.json +25 -9
- tccli/services/vclm/v20240523/api.json +225 -82
- tccli/services/vclm/v20240523/examples.json +13 -19
- tccli/services/vod/v20180717/api.json +431 -4
- tccli/services/vod/v20180717/examples.json +25 -5
- tccli/services/vod/v20240718/api.json +11 -11
- tccli/services/vod/v20240718/examples.json +4 -4
- tccli/services/vod/vod_client.py +53 -0
- tccli/services/vpc/v20170312/api.json +1195 -892
- tccli/services/vpc/v20170312/examples.json +84 -68
- tccli/services/vpc/vpc_client.py +168 -62
- tccli/services/waf/v20180125/api.json +2611 -2187
- tccli/services/waf/v20180125/examples.json +224 -284
- tccli/services/waf/waf_client.py +225 -119
- tccli/services/wav/v20210129/api.json +48 -48
- tccli/services/wav/v20210129/examples.json +4 -4
- tccli/services/wedata/v20210820/api.json +1595 -25
- tccli/services/wedata/v20210820/examples.json +44 -4
- tccli/services/wedata/wedata_client.py +265 -0
- tccli/services/weilingwith/v20230427/api.json +6 -6
- tccli/services/weilingwith/v20230427/examples.json +3 -3
- tccli/sso.py +229 -0
- {tccli-3.0.1215.1.dist-info → tccli-3.0.1217.1.dist-info}/METADATA +6 -2
- {tccli-3.0.1215.1.dist-info → tccli-3.0.1217.1.dist-info}/RECORD +278 -265
- tccli/services/cr/__init__.py +0 -4
- tccli/services/cr/cr_client.py +0 -1626
- tccli/services/cr/v20180321/api.json +0 -2829
- tccli/services/cr/v20180321/examples.json +0 -235
- {tccli-3.0.1215.1.dist-info → tccli-3.0.1217.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1215.1.dist-info → tccli-3.0.1217.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1215.1.dist-info → tccli-3.0.1217.1.dist-info}/license_files/LICENSE +0 -0
@@ -1316,6 +1316,13 @@
|
|
1316
1316
|
"output": "ModifyClusterEndpointSPResponse",
|
1317
1317
|
"status": "online"
|
1318
1318
|
},
|
1319
|
+
"ModifyClusterImage": {
|
1320
|
+
"document": "修改集群镜像",
|
1321
|
+
"input": "ModifyClusterImageRequest",
|
1322
|
+
"name": "修改集群镜像",
|
1323
|
+
"output": "ModifyClusterImageResponse",
|
1324
|
+
"status": "online"
|
1325
|
+
},
|
1319
1326
|
"ModifyClusterNodePool": {
|
1320
1327
|
"document": "编辑节点池",
|
1321
1328
|
"input": "ModifyClusterNodePoolRequest",
|
@@ -4584,7 +4591,7 @@
|
|
4584
4591
|
{
|
4585
4592
|
"disabled": false,
|
4586
4593
|
"document": "集群ID",
|
4587
|
-
"example": "cls-
|
4594
|
+
"example": "cls-brjqpljb",
|
4588
4595
|
"member": "string",
|
4589
4596
|
"name": "ClusterId",
|
4590
4597
|
"required": true,
|
@@ -4593,7 +4600,7 @@
|
|
4593
4600
|
{
|
4594
4601
|
"disabled": false,
|
4595
4602
|
"document": "集群端口所在的子网ID (仅在开启非外网访问时需要填,必须为集群所在VPC内的子网)",
|
4596
|
-
"example": "subnet-
|
4603
|
+
"example": "subnet-3ht1odzw",
|
4597
4604
|
"member": "string",
|
4598
4605
|
"name": "SubnetId",
|
4599
4606
|
"required": false,
|
@@ -4619,8 +4626,8 @@
|
|
4619
4626
|
},
|
4620
4627
|
{
|
4621
4628
|
"disabled": false,
|
4622
|
-
"document": "
|
4623
|
-
"example": "sg-
|
4629
|
+
"document": "使用的安全组,只有外网访问需要传递(开启外网访问且不使用已有clb时必传)",
|
4630
|
+
"example": "sg-kineiakx",
|
4624
4631
|
"member": "string",
|
4625
4632
|
"name": "SecurityGroup",
|
4626
4633
|
"required": false,
|
@@ -5600,7 +5607,7 @@
|
|
5600
5607
|
{
|
5601
5608
|
"disabled": false,
|
5602
5609
|
"document": "k8s版本号。可为1.18.4 1.20.6。",
|
5603
|
-
"example": "1.
|
5610
|
+
"example": "1.18.4",
|
5604
5611
|
"member": "string",
|
5605
5612
|
"name": "K8SVersion",
|
5606
5613
|
"required": true,
|
@@ -5618,7 +5625,7 @@
|
|
5618
5625
|
{
|
5619
5626
|
"disabled": false,
|
5620
5627
|
"document": "集群名称",
|
5621
|
-
"example": "
|
5628
|
+
"example": "cluster-name",
|
5622
5629
|
"member": "string",
|
5623
5630
|
"name": "ClusterName",
|
5624
5631
|
"required": true,
|
@@ -5627,7 +5634,7 @@
|
|
5627
5634
|
{
|
5628
5635
|
"disabled": false,
|
5629
5636
|
"document": "子网Id 列表",
|
5630
|
-
"example": "[",
|
5637
|
+
"example": "[\"subnet-pxir56ns\"]",
|
5631
5638
|
"member": "string",
|
5632
5639
|
"name": "SubnetIds",
|
5633
5640
|
"required": true,
|
@@ -5636,7 +5643,7 @@
|
|
5636
5643
|
{
|
5637
5644
|
"disabled": false,
|
5638
5645
|
"document": "集群描述信息",
|
5639
|
-
"example": "
|
5646
|
+
"example": "cluster-desc",
|
5640
5647
|
"member": "string",
|
5641
5648
|
"name": "ClusterDesc",
|
5642
5649
|
"required": false,
|
@@ -5654,7 +5661,7 @@
|
|
5654
5661
|
{
|
5655
5662
|
"disabled": false,
|
5656
5663
|
"document": "集群自定义的Dns服务器信息",
|
5657
|
-
"example": "
|
5664
|
+
"example": "[]",
|
5658
5665
|
"member": "DnsServerConf",
|
5659
5666
|
"name": "DnsServers",
|
5660
5667
|
"required": false,
|
@@ -5663,7 +5670,7 @@
|
|
5663
5670
|
{
|
5664
5671
|
"disabled": false,
|
5665
5672
|
"document": "扩展参数。须是map[string]string 的json 格式。",
|
5666
|
-
"example": "{
|
5673
|
+
"example": "{}",
|
5667
5674
|
"member": "string",
|
5668
5675
|
"name": "ExtraParam",
|
5669
5676
|
"required": false,
|
@@ -5681,7 +5688,7 @@
|
|
5681
5688
|
{
|
5682
5689
|
"disabled": false,
|
5683
5690
|
"document": "标签描述列表。通过指定该参数可以同时绑定标签到相应的资源实例,当前仅支持绑定标签到集群实例。",
|
5684
|
-
"example": "
|
5691
|
+
"example": "[]",
|
5685
5692
|
"member": "TagSpecification",
|
5686
5693
|
"name": "TagSpecification",
|
5687
5694
|
"required": false,
|
@@ -5690,7 +5697,7 @@
|
|
5690
5697
|
{
|
5691
5698
|
"disabled": false,
|
5692
5699
|
"document": "子网信息列表",
|
5693
|
-
"example": "
|
5700
|
+
"example": "[]",
|
5694
5701
|
"member": "SubnetInfos",
|
5695
5702
|
"name": "SubnetInfos",
|
5696
5703
|
"required": false,
|
@@ -7493,7 +7500,7 @@
|
|
7493
7500
|
{
|
7494
7501
|
"disabled": false,
|
7495
7502
|
"document": "集群ID",
|
7496
|
-
"example": "cls-
|
7503
|
+
"example": "cls-br2j3s0c",
|
7497
7504
|
"member": "string",
|
7498
7505
|
"name": "ClusterId",
|
7499
7506
|
"required": true,
|
@@ -7501,7 +7508,7 @@
|
|
7501
7508
|
},
|
7502
7509
|
{
|
7503
7510
|
"disabled": false,
|
7504
|
-
"document": "
|
7511
|
+
"document": "超级节点池ID列表",
|
7505
7512
|
"example": "[\"np-meg2rq7e\"]",
|
7506
7513
|
"member": "string",
|
7507
7514
|
"name": "NodePoolIds",
|
@@ -7510,7 +7517,7 @@
|
|
7510
7517
|
},
|
7511
7518
|
{
|
7512
7519
|
"disabled": false,
|
7513
|
-
"document": "
|
7520
|
+
"document": "是否强制删除,在超级节点上有pod的情况下,如果选择非强制删除,则删除会失败",
|
7514
7521
|
"example": "无",
|
7515
7522
|
"member": "bool",
|
7516
7523
|
"name": "Force",
|
@@ -18398,14 +18405,14 @@
|
|
18398
18405
|
"members": [
|
18399
18406
|
{
|
18400
18407
|
"disabled": false,
|
18401
|
-
"document": "实例登录密码。不同操作系统类型密码复杂度限制不一样,具体如下:<li>Linux实例密码必须8到30位,至少包括两项[a-z],[A-Z]、[0-9] 和 [( ) \\` ~ ! @ # $ % ^ & * - + = | { } [ ] : ; ' , . ? / ]中的特殊符号。</li><li>Windows实例密码必须12到30位,至少包括三项[a-z],[A-Z],[0-9] 和 [( ) \\` ~ ! @ # $ % ^ & * - + = | { } [ ] : ; ' , . ? /]中的特殊符号。</li
|
18402
|
-
"example": "
|
18408
|
+
"document": "实例登录密码。不同操作系统类型密码复杂度限制不一样,具体如下:<li>Linux实例密码必须8到30位,至少包括两项[a-z],[A-Z]、[0-9] 和 [( ) \\` ~ ! @ # $ % ^ & * - + = | { } [ ] : ; ' , . ? / ]中的特殊符号。</li><li>Windows实例密码必须12到30位,至少包括三项[a-z],[A-Z],[0-9] 和 [( ) \\` ~ ! @ # $ % ^ & * - + = | { } [ ] : ; ' , . ? /]中的特殊符号。</li>若不指定该参数,则由系统随机生成密码,并通过站内信方式通知到用户。",
|
18409
|
+
"example": "123456@ABC",
|
18403
18410
|
"member": "string",
|
18404
18411
|
"name": "Password",
|
18405
|
-
"output_required":
|
18412
|
+
"output_required": false,
|
18406
18413
|
"required": false,
|
18407
18414
|
"type": "string",
|
18408
|
-
"value_allowed_null":
|
18415
|
+
"value_allowed_null": false
|
18409
18416
|
},
|
18410
18417
|
{
|
18411
18418
|
"disabled": false,
|
@@ -18413,7 +18420,7 @@
|
|
18413
18420
|
"example": "[\"skey-3glfot13\"]",
|
18414
18421
|
"member": "string",
|
18415
18422
|
"name": "KeyIds",
|
18416
|
-
"output_required":
|
18423
|
+
"output_required": false,
|
18417
18424
|
"required": false,
|
18418
18425
|
"type": "list",
|
18419
18426
|
"value_allowed_null": true
|
@@ -18424,7 +18431,7 @@
|
|
18424
18431
|
"example": "abc",
|
18425
18432
|
"member": "string",
|
18426
18433
|
"name": "KeepImageLogin",
|
18427
|
-
"output_required":
|
18434
|
+
"output_required": false,
|
18428
18435
|
"required": false,
|
18429
18436
|
"type": "string",
|
18430
18437
|
"value_allowed_null": true
|
@@ -18793,6 +18800,42 @@
|
|
18793
18800
|
],
|
18794
18801
|
"type": "object"
|
18795
18802
|
},
|
18803
|
+
"ModifyClusterImageRequest": {
|
18804
|
+
"document": "ModifyClusterImage请求参数结构体",
|
18805
|
+
"members": [
|
18806
|
+
{
|
18807
|
+
"disabled": false,
|
18808
|
+
"document": "集群ID",
|
18809
|
+
"example": "cls-1oxlc88c",
|
18810
|
+
"member": "string",
|
18811
|
+
"name": "ClusterId",
|
18812
|
+
"required": true,
|
18813
|
+
"type": "string"
|
18814
|
+
},
|
18815
|
+
{
|
18816
|
+
"disabled": false,
|
18817
|
+
"document": "指定有效的镜像ID,格式形如img-xxxx。可通过登录控制台查询,也可调用接口 [DescribeImages](https://cloud.tencent.com/document/api/213/15715),取返回信息中的ImageId字段。",
|
18818
|
+
"example": "img-9qabwvbn",
|
18819
|
+
"member": "string",
|
18820
|
+
"name": "ImageId",
|
18821
|
+
"required": true,
|
18822
|
+
"type": "string"
|
18823
|
+
}
|
18824
|
+
],
|
18825
|
+
"type": "object"
|
18826
|
+
},
|
18827
|
+
"ModifyClusterImageResponse": {
|
18828
|
+
"document": "ModifyClusterImage返回参数结构体",
|
18829
|
+
"members": [
|
18830
|
+
{
|
18831
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
18832
|
+
"member": "string",
|
18833
|
+
"name": "RequestId",
|
18834
|
+
"type": "string"
|
18835
|
+
}
|
18836
|
+
],
|
18837
|
+
"type": "object"
|
18838
|
+
},
|
18796
18839
|
"ModifyClusterNodePoolRequest": {
|
18797
18840
|
"document": "ModifyClusterNodePool请求参数结构体",
|
18798
18841
|
"members": [
|
@@ -25204,7 +25247,7 @@
|
|
25204
25247
|
{
|
25205
25248
|
"disabled": false,
|
25206
25249
|
"document": "集群ID",
|
25207
|
-
"example": "
|
25250
|
+
"example": "cls-123deabc",
|
25208
25251
|
"member": "string",
|
25209
25252
|
"name": "ClusterId",
|
25210
25253
|
"required": true,
|
@@ -25213,7 +25256,7 @@
|
|
25213
25256
|
{
|
25214
25257
|
"disabled": false,
|
25215
25258
|
"document": "addon名称",
|
25216
|
-
"example": "
|
25259
|
+
"example": "cbs",
|
25217
25260
|
"member": "string",
|
25218
25261
|
"name": "AddonName",
|
25219
25262
|
"required": true,
|
@@ -25221,8 +25264,8 @@
|
|
25221
25264
|
},
|
25222
25265
|
{
|
25223
25266
|
"disabled": false,
|
25224
|
-
"document": "addon
|
25225
|
-
"example": "
|
25267
|
+
"document": "addon版本(不传默认不更新,不传AddonVersion时RawValues必传)",
|
25268
|
+
"example": "1.1.14",
|
25226
25269
|
"member": "string",
|
25227
25270
|
"name": "AddonVersion",
|
25228
25271
|
"required": false,
|
@@ -25230,12 +25273,21 @@
|
|
25230
25273
|
},
|
25231
25274
|
{
|
25232
25275
|
"disabled": false,
|
25233
|
-
"document": "addon的参数,是一个json格式的base64转码后的字符串(addon参数由DescribeAddonValues
|
25234
|
-
"example": "
|
25276
|
+
"document": "addon的参数,是一个json格式的base64转码后的字符串(addon参数由DescribeAddonValues获取,不传RawValues时AddonVersion必传))",
|
25277
|
+
"example": "WyJyZWdpc3RyeS5hZGRyZXNzPWh0dHBzOi8vY2NyLmNjcy50ZW5jZW50eXVuLmNvbSIsImFnZW50LmRvd25sb2FkUmF0ZT0yMDk3MTUyMCIsImt1YmV2ZXJzaW9uPTEuMjYuMSIsInJlcGxpY2FzPTIiXQ==",
|
25235
25278
|
"member": "string",
|
25236
25279
|
"name": "RawValues",
|
25237
25280
|
"required": false,
|
25238
25281
|
"type": "string"
|
25282
|
+
},
|
25283
|
+
{
|
25284
|
+
"disabled": false,
|
25285
|
+
"document": "addon参数的更新策略,支持replace和merge两种策略,默认值为merge,兼容旧版本API。replace:使用新RawValues全量替换addon原RawValues,merge:根据新RawValues新增或更新addon原RawValues中对应参数。",
|
25286
|
+
"example": "merge",
|
25287
|
+
"member": "string",
|
25288
|
+
"name": "UpdateStrategy",
|
25289
|
+
"required": false,
|
25290
|
+
"type": "string"
|
25239
25291
|
}
|
25240
25292
|
],
|
25241
25293
|
"type": "object"
|
@@ -1630,6 +1630,14 @@
|
|
1630
1630
|
"title": "修改托管集群外网端口的安全策略"
|
1631
1631
|
}
|
1632
1632
|
],
|
1633
|
+
"ModifyClusterImage": [
|
1634
|
+
{
|
1635
|
+
"document": "",
|
1636
|
+
"input": "https://tke.tencentcloudapi.com/?Action=ModifyClusterImage\r\n&ClusterId=cls-xxxxxxxx\r\n&ImageId=img-xxxxxxxx\r\n&<公共请求参数>",
|
1637
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"0b45d041-0f53-428f-ac89-51375d018e95\"\n }\n}",
|
1638
|
+
"title": "修改集群镜像"
|
1639
|
+
}
|
1640
|
+
],
|
1633
1641
|
"ModifyClusterNodePool": [
|
1634
1642
|
{
|
1635
1643
|
"document": "",
|
@@ -1896,7 +1904,7 @@
|
|
1896
1904
|
{
|
1897
1905
|
"document": "获取一个addon的版本和参数",
|
1898
1906
|
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateAddon\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-123deabc\",\n \"AddonName\": \"cbs\",\n \"AddonVersion\": \"1.1.0\"\n}",
|
1899
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
1907
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"f55aaa93-c681-47c9-860a-59ae16ade268\"\n }\n}",
|
1900
1908
|
"title": "更新一个addon"
|
1901
1909
|
}
|
1902
1910
|
],
|
@@ -76,6 +76,27 @@
|
|
76
76
|
"name": "更新 TKE 节点池",
|
77
77
|
"output": "ModifyNodePoolResponse",
|
78
78
|
"status": "online"
|
79
|
+
},
|
80
|
+
"RebootMachines": {
|
81
|
+
"document": "重启原生节点实例",
|
82
|
+
"input": "RebootMachinesRequest",
|
83
|
+
"name": "重启原生节点实例",
|
84
|
+
"output": "RebootMachinesResponse",
|
85
|
+
"status": "online"
|
86
|
+
},
|
87
|
+
"StartMachines": {
|
88
|
+
"document": "本接口 (StartMachines) 用于启动一个或多个原生节点实例。\n\n只有状态为 Stopped 的实例才可以进行此操作。\n接口调用成功后,等待一分钟左右,实例会进入 Running 状态。\n支持批量操作。每次请求批量实例的上限为100。\n本接口为同步接口,启动实例请求发送成功后会返回一个RequestId,此时操作并未立即完成。实例操作结果可以通过调用 DescribeClusterInstances 接口查询,如果实例的最新状态为 Running,则代表启动实例操作成功。",
|
89
|
+
"input": "StartMachinesRequest",
|
90
|
+
"name": "启动原生节点实例",
|
91
|
+
"output": "StartMachinesResponse",
|
92
|
+
"status": "online"
|
93
|
+
},
|
94
|
+
"StopMachines": {
|
95
|
+
"document": "本接口 (StopMachines) 用于关闭一个或多个原生节点实例。\n\n只有状态为 Running 的实例才可以进行此操作。\n接口调用成功时,实例会进入 Stopping 状态;关闭实例成功时,实例会进入 Stopped 状态。\n支持强制关闭。强制关机的效果等同于关闭物理计算机的电源开关。强制关机可能会导致数据丢失或文件系统损坏,请仅在服务器不能正常关机时使用。\n支持批量操作。每次请求批量实例的上限为 100。\n本接口为同步接口,关闭实例请求发送成功后会返回一个RequestId,此时操作并未立即完成。实例操作结果可以通过调用 DescribeClusterInstances 接口查询,如果实例的最新状stopped_with_charging,则代表关闭实例操作成功。",
|
96
|
+
"input": "StopMachinesRequest",
|
97
|
+
"name": "关闭原生节点实例",
|
98
|
+
"output": "StopMachinesResponse",
|
99
|
+
"status": "online"
|
79
100
|
}
|
80
101
|
},
|
81
102
|
"metadata": {
|
@@ -421,6 +442,15 @@
|
|
421
442
|
"name": "KeyIds",
|
422
443
|
"required": false,
|
423
444
|
"type": "list"
|
445
|
+
},
|
446
|
+
{
|
447
|
+
"disabled": false,
|
448
|
+
"document": "节点池类型",
|
449
|
+
"example": "NativeCVM或者Native",
|
450
|
+
"member": "string",
|
451
|
+
"name": "MachineType",
|
452
|
+
"required": false,
|
453
|
+
"type": "string"
|
424
454
|
}
|
425
455
|
],
|
426
456
|
"usage": "in"
|
@@ -2313,6 +2343,16 @@
|
|
2313
2343
|
"output_required": true,
|
2314
2344
|
"type": "string",
|
2315
2345
|
"value_allowed_null": true
|
2346
|
+
},
|
2347
|
+
{
|
2348
|
+
"disabled": false,
|
2349
|
+
"document": "**原生节点对应的实例 ID**\n\n- ins-q47ofw6 表示这个实例是一个 CVM 的实例\n- eks-f8mvyaep 表示这个实例是一个 CXM 的实例\n注意:此字段可能返回 null,表示取不到有效值。",
|
2350
|
+
"example": "ins-q47ofw6r, eks-f8mvyaep",
|
2351
|
+
"member": "string",
|
2352
|
+
"name": "InstanceId",
|
2353
|
+
"output_required": false,
|
2354
|
+
"type": "string",
|
2355
|
+
"value_allowed_null": true
|
2316
2356
|
}
|
2317
2357
|
],
|
2318
2358
|
"usage": "out"
|
@@ -2529,6 +2569,16 @@
|
|
2529
2569
|
"output_required": false,
|
2530
2570
|
"type": "list",
|
2531
2571
|
"value_allowed_null": true
|
2572
|
+
},
|
2573
|
+
{
|
2574
|
+
"disabled": false,
|
2575
|
+
"document": "原生节点机型 Native, NativeCVM\n注意:此字段可能返回 null,表示取不到有效值。",
|
2576
|
+
"example": "Native",
|
2577
|
+
"member": "string",
|
2578
|
+
"name": "MachineType",
|
2579
|
+
"output_required": false,
|
2580
|
+
"type": "string",
|
2581
|
+
"value_allowed_null": true
|
2532
2582
|
}
|
2533
2583
|
],
|
2534
2584
|
"usage": "out"
|
@@ -2725,6 +2775,51 @@
|
|
2725
2775
|
],
|
2726
2776
|
"usage": "out"
|
2727
2777
|
},
|
2778
|
+
"RebootMachinesRequest": {
|
2779
|
+
"document": "RebootMachines请求参数结构体",
|
2780
|
+
"members": [
|
2781
|
+
{
|
2782
|
+
"disabled": false,
|
2783
|
+
"document": "集群 ID",
|
2784
|
+
"example": "cls-0dku0jec",
|
2785
|
+
"member": "string",
|
2786
|
+
"name": "ClusterId",
|
2787
|
+
"required": true,
|
2788
|
+
"type": "string"
|
2789
|
+
},
|
2790
|
+
{
|
2791
|
+
"disabled": false,
|
2792
|
+
"document": "节点名字列表,一次请求,传入节点数量上限为100个",
|
2793
|
+
"example": "[\"np-5tx2l4dc-4tzgqy\", \"np-5tx2l4dc-fb8jl\"]",
|
2794
|
+
"member": "string",
|
2795
|
+
"name": "MachineNames",
|
2796
|
+
"required": true,
|
2797
|
+
"type": "list"
|
2798
|
+
},
|
2799
|
+
{
|
2800
|
+
"disabled": false,
|
2801
|
+
"document": "实例的关闭模式。取值范围:\nsoft_first:表示在正常关闭失败后进行强制关闭\nhard:直接强制关闭\nsoft:仅软关机默认取值:soft。",
|
2802
|
+
"example": "soft",
|
2803
|
+
"member": "string",
|
2804
|
+
"name": "StopType",
|
2805
|
+
"required": false,
|
2806
|
+
"type": "string"
|
2807
|
+
}
|
2808
|
+
],
|
2809
|
+
"type": "object"
|
2810
|
+
},
|
2811
|
+
"RebootMachinesResponse": {
|
2812
|
+
"document": "RebootMachines返回参数结构体",
|
2813
|
+
"members": [
|
2814
|
+
{
|
2815
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
2816
|
+
"member": "string",
|
2817
|
+
"name": "RequestId",
|
2818
|
+
"type": "string"
|
2819
|
+
}
|
2820
|
+
],
|
2821
|
+
"type": "object"
|
2822
|
+
},
|
2728
2823
|
"RegularNodeInfo": {
|
2729
2824
|
"document": "普通节点信息",
|
2730
2825
|
"members": [
|
@@ -2907,6 +3002,87 @@
|
|
2907
3002
|
],
|
2908
3003
|
"usage": "in"
|
2909
3004
|
},
|
3005
|
+
"StartMachinesRequest": {
|
3006
|
+
"document": "StartMachines请求参数结构体",
|
3007
|
+
"members": [
|
3008
|
+
{
|
3009
|
+
"disabled": false,
|
3010
|
+
"document": "集群 ID",
|
3011
|
+
"example": "cls-0dku0jec",
|
3012
|
+
"member": "string",
|
3013
|
+
"name": "ClusterId",
|
3014
|
+
"required": true,
|
3015
|
+
"type": "string"
|
3016
|
+
},
|
3017
|
+
{
|
3018
|
+
"disabled": false,
|
3019
|
+
"document": "节点名字列表,一次请求,传入节点数量上限为100个",
|
3020
|
+
"example": "[\"np-5tx2l4dc-4tzgqy\", \"np-5tx2l4dc-fb8jl\"]",
|
3021
|
+
"member": "string",
|
3022
|
+
"name": "MachineNames",
|
3023
|
+
"required": true,
|
3024
|
+
"type": "list"
|
3025
|
+
}
|
3026
|
+
],
|
3027
|
+
"type": "object"
|
3028
|
+
},
|
3029
|
+
"StartMachinesResponse": {
|
3030
|
+
"document": "StartMachines返回参数结构体",
|
3031
|
+
"members": [
|
3032
|
+
{
|
3033
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
3034
|
+
"member": "string",
|
3035
|
+
"name": "RequestId",
|
3036
|
+
"type": "string"
|
3037
|
+
}
|
3038
|
+
],
|
3039
|
+
"type": "object"
|
3040
|
+
},
|
3041
|
+
"StopMachinesRequest": {
|
3042
|
+
"document": "StopMachines请求参数结构体",
|
3043
|
+
"members": [
|
3044
|
+
{
|
3045
|
+
"disabled": false,
|
3046
|
+
"document": "集群 ID",
|
3047
|
+
"example": "cls-0dku0jec",
|
3048
|
+
"member": "string",
|
3049
|
+
"name": "ClusterId",
|
3050
|
+
"required": true,
|
3051
|
+
"type": "string"
|
3052
|
+
},
|
3053
|
+
{
|
3054
|
+
"disabled": false,
|
3055
|
+
"document": "节点名字列表,一次请求,传入节点数量上限为100个",
|
3056
|
+
"example": "[\"np-5tx2l4dc-4tzgqy\", \"np-5tx2l4dc-fb8jl\"]",
|
3057
|
+
"member": "string",
|
3058
|
+
"name": "MachineNames",
|
3059
|
+
"required": true,
|
3060
|
+
"type": "list"
|
3061
|
+
},
|
3062
|
+
{
|
3063
|
+
"disabled": false,
|
3064
|
+
"document": "实例的关闭模式。取值范围:\nsoft_first:表示在正常关闭失败后进行强制关闭\nhard:直接强制关闭\nsoft:仅软关机",
|
3065
|
+
"example": "soft",
|
3066
|
+
"member": "string",
|
3067
|
+
"name": "StopType",
|
3068
|
+
"required": false,
|
3069
|
+
"type": "string"
|
3070
|
+
}
|
3071
|
+
],
|
3072
|
+
"type": "object"
|
3073
|
+
},
|
3074
|
+
"StopMachinesResponse": {
|
3075
|
+
"document": "StopMachines返回参数结构体",
|
3076
|
+
"members": [
|
3077
|
+
{
|
3078
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
3079
|
+
"member": "string",
|
3080
|
+
"name": "RequestId",
|
3081
|
+
"type": "string"
|
3082
|
+
}
|
3083
|
+
],
|
3084
|
+
"type": "object"
|
3085
|
+
},
|
2910
3086
|
"SuperNodeInfo": {
|
2911
3087
|
"document": "超级节点信息",
|
2912
3088
|
"members": [
|
@@ -93,6 +93,30 @@
|
|
93
93
|
"output": "{\n \"Response\": {\n \"RequestId\": \"abc\"\n }\n}",
|
94
94
|
"title": "更新 TKE 节点池"
|
95
95
|
}
|
96
|
+
],
|
97
|
+
"RebootMachines": [
|
98
|
+
{
|
99
|
+
"document": "该接口支持原生节点重启,重启时限制一次重启的原生节点数量最多为100个",
|
100
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RebootMachines\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-0dku0jec\",\n \"MachineNames\": [\n \"np-5tx2l4dc-4srqm\",\n \"np-5tx2l4dc-4srqn\"\n ],\n \"StopType\": \"soft\"\n}",
|
101
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"3c0b712f-28a8-42a7-a89a-b4448a01421f\"\n }\n}",
|
102
|
+
"title": "重启原生节点实例"
|
103
|
+
}
|
104
|
+
],
|
105
|
+
"StartMachines": [
|
106
|
+
{
|
107
|
+
"document": "启动原生节点实例",
|
108
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StartMachines\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-0dku0jec\",\n \"MachineNames\": [\n \"np-5tx2l4dc-4srqm\"\n ]\n}",
|
109
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"4f2b3354-ab65-4f1d-9a44-7b95a84f4ce3\"\n }\n}",
|
110
|
+
"title": "启动原生节点实例"
|
111
|
+
}
|
112
|
+
],
|
113
|
+
"StopMachines": [
|
114
|
+
{
|
115
|
+
"document": "关闭原生节点实例",
|
116
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: StopMachines\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-0dku0jec\",\n \"MachineNames\": [\n \"np-5tx2l4dc-4srqm\"\n ],\n \"StopType\": \"soft\"\n}",
|
117
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"a27a0c33-fe13-4373-bc88-863791d68f61\"\n }\n}",
|
118
|
+
"title": "关闭原生节点实例"
|
119
|
+
}
|
96
120
|
]
|
97
121
|
},
|
98
122
|
"version": "1.0"
|
tccli/services/tms/tms_client.py
CHANGED
@@ -71,7 +71,7 @@ def doDescribeTextStat(args, parsed_globals):
|
|
71
71
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
72
72
|
|
73
73
|
|
74
|
-
def
|
74
|
+
def doAccountTipoffAccess(args, parsed_globals):
|
75
75
|
g_param = parse_global_arg(parsed_globals)
|
76
76
|
|
77
77
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -100,11 +100,11 @@ def doModerateText(args, parsed_globals):
|
|
100
100
|
client = mod.TmsClient(cred, g_param[OptionsDefine.Region], profile)
|
101
101
|
client._sdkVersion += ("_CLI_" + __version__)
|
102
102
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
103
|
-
model = models.
|
103
|
+
model = models.AccountTipoffAccessRequest()
|
104
104
|
model.from_json_string(json.dumps(args))
|
105
105
|
start_time = time.time()
|
106
106
|
while True:
|
107
|
-
rsp = client.
|
107
|
+
rsp = client.AccountTipoffAccess(model)
|
108
108
|
result = rsp.to_json_string()
|
109
109
|
try:
|
110
110
|
json_obj = json.loads(result)
|
@@ -227,58 +227,6 @@ def doDescribeTextLib(args, parsed_globals):
|
|
227
227
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
228
228
|
|
229
229
|
|
230
|
-
def doAccountTipoffAccess(args, parsed_globals):
|
231
|
-
g_param = parse_global_arg(parsed_globals)
|
232
|
-
|
233
|
-
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
234
|
-
cred = credential.CVMRoleCredential()
|
235
|
-
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
236
|
-
cred = credential.STSAssumeRoleCredential(
|
237
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
238
|
-
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
239
|
-
)
|
240
|
-
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):
|
241
|
-
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
242
|
-
else:
|
243
|
-
cred = credential.Credential(
|
244
|
-
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
245
|
-
)
|
246
|
-
http_profile = HttpProfile(
|
247
|
-
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
248
|
-
reqMethod="POST",
|
249
|
-
endpoint=g_param[OptionsDefine.Endpoint],
|
250
|
-
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
251
|
-
)
|
252
|
-
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
253
|
-
if g_param[OptionsDefine.Language]:
|
254
|
-
profile.language = g_param[OptionsDefine.Language]
|
255
|
-
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
256
|
-
client = mod.TmsClient(cred, g_param[OptionsDefine.Region], profile)
|
257
|
-
client._sdkVersion += ("_CLI_" + __version__)
|
258
|
-
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
259
|
-
model = models.AccountTipoffAccessRequest()
|
260
|
-
model.from_json_string(json.dumps(args))
|
261
|
-
start_time = time.time()
|
262
|
-
while True:
|
263
|
-
rsp = client.AccountTipoffAccess(model)
|
264
|
-
result = rsp.to_json_string()
|
265
|
-
try:
|
266
|
-
json_obj = json.loads(result)
|
267
|
-
except TypeError as e:
|
268
|
-
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
269
|
-
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
270
|
-
break
|
271
|
-
cur_time = time.time()
|
272
|
-
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
273
|
-
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
274
|
-
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
275
|
-
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
276
|
-
else:
|
277
|
-
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
278
|
-
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
279
|
-
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
280
|
-
|
281
|
-
|
282
230
|
CLIENT_MAP = {
|
283
231
|
"v20201229": tms_client_v20201229,
|
284
232
|
"v20200713": tms_client_v20200713,
|
@@ -293,10 +241,9 @@ MODELS_MAP = {
|
|
293
241
|
|
294
242
|
ACTION_MAP = {
|
295
243
|
"DescribeTextStat": doDescribeTextStat,
|
296
|
-
"
|
244
|
+
"AccountTipoffAccess": doAccountTipoffAccess,
|
297
245
|
"TextModeration": doTextModeration,
|
298
246
|
"DescribeTextLib": doDescribeTextLib,
|
299
|
-
"AccountTipoffAccess": doAccountTipoffAccess,
|
300
247
|
|
301
248
|
}
|
302
249
|
|