tccli 3.0.1121.1__py2.py3-none-any.whl → 3.0.1122.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/services/__init__.py +3 -0
- tccli/services/antiddos/v20200309/api.json +19 -0
- tccli/services/cdb/v20170320/api.json +127 -26
- tccli/services/cdb/v20170320/examples.json +2 -2
- tccli/services/domain/v20180808/api.json +18 -0
- tccli/services/ess/ess_client.py +53 -0
- tccli/services/ess/v20201111/api.json +126 -0
- tccli/services/ess/v20201111/examples.json +20 -0
- tccli/services/faceid/v20180301/api.json +2 -2
- tccli/services/lighthouse/v20200324/api.json +72 -64
- tccli/services/lighthouse/v20200324/examples.json +1 -1
- tccli/services/tcb/v20180608/api.json +5 -5
- tccli/services/tcr/v20190924/api.json +1 -1
- tccli/services/tcr/v20190924/examples.json +1 -1
- tccli/services/tse/v20201207/api.json +22 -0
- tccli/services/tsf/v20180326/api.json +77 -16
- tccli/services/vdb/__init__.py +4 -0
- tccli/services/vdb/v20230616/api.json +505 -0
- tccli/services/vdb/v20230616/examples.json +13 -0
- tccli/services/vdb/vdb_client.py +195 -0
- tccli/services/waf/v20180125/api.json +124 -0
- tccli/services/waf/v20180125/examples.json +8 -0
- tccli/services/waf/waf_client.py +53 -0
- tccli/services/wedata/v20210820/api.json +9 -0
- {tccli-3.0.1121.1.dist-info → tccli-3.0.1122.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1121.1.dist-info → tccli-3.0.1122.1.dist-info}/RECORD +30 -26
- {tccli-3.0.1121.1.dist-info → tccli-3.0.1122.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1121.1.dist-info → tccli-3.0.1122.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1121.1.dist-info → tccli-3.0.1122.1.dist-info}/license_files/LICENSE +0 -0
tccli/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '3.0.
|
1
|
+
__version__ = '3.0.1122.1'
|
tccli/services/__init__.py
CHANGED
@@ -1878,6 +1878,16 @@
|
|
1878
1878
|
"output_required": false,
|
1879
1879
|
"type": "int",
|
1880
1880
|
"value_allowed_null": true
|
1881
|
+
},
|
1882
|
+
{
|
1883
|
+
"disabled": false,
|
1884
|
+
"document": "所属ZoneId\n注意:此字段可能返回 null,表示取不到有效值。",
|
1885
|
+
"example": "1",
|
1886
|
+
"member": "int64",
|
1887
|
+
"name": "ZoneId",
|
1888
|
+
"output_required": false,
|
1889
|
+
"type": "int",
|
1890
|
+
"value_allowed_null": true
|
1881
1891
|
}
|
1882
1892
|
],
|
1883
1893
|
"usage": "out"
|
@@ -7074,6 +7084,15 @@
|
|
7074
7084
|
"name": "FilterTransRegionFlag",
|
7075
7085
|
"required": false,
|
7076
7086
|
"type": "int"
|
7087
|
+
},
|
7088
|
+
{
|
7089
|
+
"disabled": false,
|
7090
|
+
"document": "zoenid列表",
|
7091
|
+
"example": "无",
|
7092
|
+
"member": "int64",
|
7093
|
+
"name": "FilterZoneIdList",
|
7094
|
+
"required": false,
|
7095
|
+
"type": "list"
|
7077
7096
|
}
|
7078
7097
|
],
|
7079
7098
|
"type": "object"
|
@@ -1526,7 +1526,7 @@
|
|
1526
1526
|
},
|
1527
1527
|
{
|
1528
1528
|
"disabled": false,
|
1529
|
-
"document": "
|
1529
|
+
"document": "是否开启连接池\n注意:如需使用数据库代理连接池能力,MySQL 8.0 主实例的内核小版本要大于等于 MySQL 8.0 20230630。",
|
1530
1530
|
"example": "true",
|
1531
1531
|
"member": "bool",
|
1532
1532
|
"name": "ConnectionPool",
|
@@ -1541,6 +1541,24 @@
|
|
1541
1541
|
"name": "ProxyAllocation",
|
1542
1542
|
"required": false,
|
1543
1543
|
"type": "list"
|
1544
|
+
},
|
1545
|
+
{
|
1546
|
+
"disabled": false,
|
1547
|
+
"document": "是否开启自适应负载均衡",
|
1548
|
+
"example": "false",
|
1549
|
+
"member": "bool",
|
1550
|
+
"name": "AutoLoadBalance",
|
1551
|
+
"required": false,
|
1552
|
+
"type": "bool"
|
1553
|
+
},
|
1554
|
+
{
|
1555
|
+
"disabled": false,
|
1556
|
+
"document": "访问模式:就近访问,均衡分配",
|
1557
|
+
"example": "balance",
|
1558
|
+
"member": "string",
|
1559
|
+
"name": "AccessMode",
|
1560
|
+
"required": false,
|
1561
|
+
"type": "string"
|
1544
1562
|
}
|
1545
1563
|
],
|
1546
1564
|
"type": "object"
|
@@ -4895,7 +4913,7 @@
|
|
4895
4913
|
},
|
4896
4914
|
{
|
4897
4915
|
"disabled": false,
|
4898
|
-
"document": "
|
4916
|
+
"document": "是否开启连接池\n注意:如需使用数据库代理连接池能力,MySQL 8.0 主实例的内核小版本要大于等于 MySQL 8.0 20230630。",
|
4899
4917
|
"example": "true",
|
4900
4918
|
"member": "bool",
|
4901
4919
|
"name": "ConnectionPool",
|
@@ -4946,6 +4964,24 @@
|
|
4946
4964
|
"name": "ConnectionPoolType",
|
4947
4965
|
"required": false,
|
4948
4966
|
"type": "string"
|
4967
|
+
},
|
4968
|
+
{
|
4969
|
+
"disabled": false,
|
4970
|
+
"document": "是否自适应负载均衡",
|
4971
|
+
"example": "false",
|
4972
|
+
"member": "bool",
|
4973
|
+
"name": "AutoLoadBalance",
|
4974
|
+
"required": false,
|
4975
|
+
"type": "bool"
|
4976
|
+
},
|
4977
|
+
{
|
4978
|
+
"disabled": false,
|
4979
|
+
"document": "接入模式",
|
4980
|
+
"example": "nearBy",
|
4981
|
+
"member": "string",
|
4982
|
+
"name": "AccessMode",
|
4983
|
+
"required": false,
|
4984
|
+
"type": "string"
|
4949
4985
|
}
|
4950
4986
|
],
|
4951
4987
|
"type": "object"
|
@@ -4959,6 +4995,7 @@
|
|
4959
4995
|
"example": "1312",
|
4960
4996
|
"member": "string",
|
4961
4997
|
"name": "AsyncRequestId",
|
4998
|
+
"output_required": true,
|
4962
4999
|
"type": "string",
|
4963
5000
|
"value_allowed_null": true
|
4964
5001
|
},
|
@@ -8713,6 +8750,7 @@
|
|
8713
8750
|
"example": "1",
|
8714
8751
|
"member": "uint64",
|
8715
8752
|
"name": "Count",
|
8753
|
+
"output_required": true,
|
8716
8754
|
"type": "int",
|
8717
8755
|
"value_allowed_null": true
|
8718
8756
|
},
|
@@ -8722,6 +8760,7 @@
|
|
8722
8760
|
"example": "无",
|
8723
8761
|
"member": "ProxyGroupInfo",
|
8724
8762
|
"name": "ProxyInfos",
|
8763
|
+
"output_required": true,
|
8725
8764
|
"type": "list",
|
8726
8765
|
"value_allowed_null": true
|
8727
8766
|
},
|
@@ -11185,7 +11224,7 @@
|
|
11185
11224
|
"example": "1.3.1",
|
11186
11225
|
"member": "string",
|
11187
11226
|
"name": "ProxyVersion",
|
11188
|
-
"
|
11227
|
+
"output_required": true,
|
11189
11228
|
"type": "string",
|
11190
11229
|
"value_allowed_null": true
|
11191
11230
|
},
|
@@ -11195,7 +11234,7 @@
|
|
11195
11234
|
"example": "true",
|
11196
11235
|
"member": "bool",
|
11197
11236
|
"name": "SupportPool",
|
11198
|
-
"
|
11237
|
+
"output_required": true,
|
11199
11238
|
"type": "bool",
|
11200
11239
|
"value_allowed_null": true
|
11201
11240
|
},
|
@@ -11205,7 +11244,7 @@
|
|
11205
11244
|
"example": "1",
|
11206
11245
|
"member": "uint64",
|
11207
11246
|
"name": "PoolMin",
|
11208
|
-
"
|
11247
|
+
"output_required": true,
|
11209
11248
|
"type": "int",
|
11210
11249
|
"value_allowed_null": true
|
11211
11250
|
},
|
@@ -11215,7 +11254,7 @@
|
|
11215
11254
|
"example": "10",
|
11216
11255
|
"member": "uint64",
|
11217
11256
|
"name": "PoolMax",
|
11218
|
-
"
|
11257
|
+
"output_required": true,
|
11219
11258
|
"type": "int",
|
11220
11259
|
"value_allowed_null": true
|
11221
11260
|
},
|
@@ -11225,7 +11264,7 @@
|
|
11225
11264
|
"example": "true",
|
11226
11265
|
"member": "bool",
|
11227
11266
|
"name": "SupportTransSplit",
|
11228
|
-
"
|
11267
|
+
"output_required": true,
|
11229
11268
|
"type": "bool",
|
11230
11269
|
"value_allowed_null": true
|
11231
11270
|
},
|
@@ -11235,7 +11274,7 @@
|
|
11235
11274
|
"example": "1.1.1",
|
11236
11275
|
"member": "string",
|
11237
11276
|
"name": "SupportPoolMinVersion",
|
11238
|
-
"
|
11277
|
+
"output_required": true,
|
11239
11278
|
"type": "string",
|
11240
11279
|
"value_allowed_null": true
|
11241
11280
|
},
|
@@ -11245,7 +11284,7 @@
|
|
11245
11284
|
"example": "1.3.1",
|
11246
11285
|
"member": "string",
|
11247
11286
|
"name": "SupportTransSplitMinVersion",
|
11248
|
-
"
|
11287
|
+
"output_required": true,
|
11249
11288
|
"type": "string",
|
11250
11289
|
"value_allowed_null": true
|
11251
11290
|
},
|
@@ -11255,7 +11294,27 @@
|
|
11255
11294
|
"example": "true",
|
11256
11295
|
"member": "bool",
|
11257
11296
|
"name": "SupportReadOnly",
|
11258
|
-
"
|
11297
|
+
"output_required": true,
|
11298
|
+
"type": "bool",
|
11299
|
+
"value_allowed_null": true
|
11300
|
+
},
|
11301
|
+
{
|
11302
|
+
"disabled": false,
|
11303
|
+
"document": "是否自动均衡负载\n注意:此字段可能返回 null,表示取不到有效值。",
|
11304
|
+
"example": "true",
|
11305
|
+
"member": "bool",
|
11306
|
+
"name": "SupportAutoLoadBalance",
|
11307
|
+
"output_required": true,
|
11308
|
+
"type": "bool",
|
11309
|
+
"value_allowed_null": true
|
11310
|
+
},
|
11311
|
+
{
|
11312
|
+
"disabled": false,
|
11313
|
+
"document": "是否支持接入模式\n注意:此字段可能返回 null,表示取不到有效值。",
|
11314
|
+
"example": "true",
|
11315
|
+
"member": "bool",
|
11316
|
+
"name": "SupportAccessMode",
|
11317
|
+
"output_required": true,
|
11259
11318
|
"type": "bool",
|
11260
11319
|
"value_allowed_null": true
|
11261
11320
|
},
|
@@ -16705,7 +16764,7 @@
|
|
16705
16764
|
"example": "proxyaddr-ixw3ll2d",
|
16706
16765
|
"member": "string",
|
16707
16766
|
"name": "ProxyAddressId",
|
16708
|
-
"
|
16767
|
+
"output_required": true,
|
16709
16768
|
"type": "string",
|
16710
16769
|
"value_allowed_null": false
|
16711
16770
|
},
|
@@ -16715,7 +16774,7 @@
|
|
16715
16774
|
"example": "vpc-ixw3ll2d",
|
16716
16775
|
"member": "string",
|
16717
16776
|
"name": "UniqVpcId",
|
16718
|
-
"
|
16777
|
+
"output_required": true,
|
16719
16778
|
"type": "string",
|
16720
16779
|
"value_allowed_null": false
|
16721
16780
|
},
|
@@ -16725,7 +16784,7 @@
|
|
16725
16784
|
"example": "subnet-ixw3ll2d",
|
16726
16785
|
"member": "string",
|
16727
16786
|
"name": "UniqSubnetId",
|
16728
|
-
"
|
16787
|
+
"output_required": true,
|
16729
16788
|
"type": "string",
|
16730
16789
|
"value_allowed_null": false
|
16731
16790
|
},
|
@@ -16735,7 +16794,7 @@
|
|
16735
16794
|
"example": "192.0.0.1",
|
16736
16795
|
"member": "string",
|
16737
16796
|
"name": "Vip",
|
16738
|
-
"
|
16797
|
+
"output_required": true,
|
16739
16798
|
"type": "string",
|
16740
16799
|
"value_allowed_null": false
|
16741
16800
|
},
|
@@ -16745,7 +16804,7 @@
|
|
16745
16804
|
"example": "80",
|
16746
16805
|
"member": "uint64",
|
16747
16806
|
"name": "VPort",
|
16748
|
-
"
|
16807
|
+
"output_required": true,
|
16749
16808
|
"type": "int",
|
16750
16809
|
"value_allowed_null": false
|
16751
16810
|
},
|
@@ -16755,7 +16814,7 @@
|
|
16755
16814
|
"example": "system",
|
16756
16815
|
"member": "string",
|
16757
16816
|
"name": "WeightMode",
|
16758
|
-
"
|
16817
|
+
"output_required": true,
|
16759
16818
|
"type": "string",
|
16760
16819
|
"value_allowed_null": true
|
16761
16820
|
},
|
@@ -16765,7 +16824,7 @@
|
|
16765
16824
|
"example": "true",
|
16766
16825
|
"member": "bool",
|
16767
16826
|
"name": "IsKickOut",
|
16768
|
-
"
|
16827
|
+
"output_required": true,
|
16769
16828
|
"type": "bool",
|
16770
16829
|
"value_allowed_null": true
|
16771
16830
|
},
|
@@ -16775,7 +16834,7 @@
|
|
16775
16834
|
"example": "2",
|
16776
16835
|
"member": "uint64",
|
16777
16836
|
"name": "MinCount",
|
16778
|
-
"
|
16837
|
+
"output_required": true,
|
16779
16838
|
"type": "int",
|
16780
16839
|
"value_allowed_null": true
|
16781
16840
|
},
|
@@ -16785,7 +16844,7 @@
|
|
16785
16844
|
"example": "10",
|
16786
16845
|
"member": "uint64",
|
16787
16846
|
"name": "MaxDelay",
|
16788
|
-
"
|
16847
|
+
"output_required": true,
|
16789
16848
|
"type": "int",
|
16790
16849
|
"value_allowed_null": true
|
16791
16850
|
},
|
@@ -16795,7 +16854,7 @@
|
|
16795
16854
|
"example": "true",
|
16796
16855
|
"member": "bool",
|
16797
16856
|
"name": "AutoAddRo",
|
16798
|
-
"
|
16857
|
+
"output_required": true,
|
16799
16858
|
"type": "bool",
|
16800
16859
|
"value_allowed_null": true
|
16801
16860
|
},
|
@@ -16805,7 +16864,7 @@
|
|
16805
16864
|
"example": "false",
|
16806
16865
|
"member": "bool",
|
16807
16866
|
"name": "ReadOnly",
|
16808
|
-
"
|
16867
|
+
"output_required": true,
|
16809
16868
|
"type": "bool",
|
16810
16869
|
"value_allowed_null": true
|
16811
16870
|
},
|
@@ -16815,7 +16874,7 @@
|
|
16815
16874
|
"example": "true",
|
16816
16875
|
"member": "bool",
|
16817
16876
|
"name": "TransSplit",
|
16818
|
-
"
|
16877
|
+
"output_required": true,
|
16819
16878
|
"type": "bool",
|
16820
16879
|
"value_allowed_null": true
|
16821
16880
|
},
|
@@ -16825,7 +16884,7 @@
|
|
16825
16884
|
"example": "true",
|
16826
16885
|
"member": "bool",
|
16827
16886
|
"name": "FailOver",
|
16828
|
-
"
|
16887
|
+
"output_required": true,
|
16829
16888
|
"type": "bool",
|
16830
16889
|
"value_allowed_null": true
|
16831
16890
|
},
|
@@ -16835,7 +16894,7 @@
|
|
16835
16894
|
"example": "true",
|
16836
16895
|
"member": "bool",
|
16837
16896
|
"name": "ConnectionPool",
|
16838
|
-
"
|
16897
|
+
"output_required": true,
|
16839
16898
|
"type": "bool",
|
16840
16899
|
"value_allowed_null": true
|
16841
16900
|
},
|
@@ -16845,7 +16904,7 @@
|
|
16845
16904
|
"example": "test",
|
16846
16905
|
"member": "string",
|
16847
16906
|
"name": "Desc",
|
16848
|
-
"
|
16907
|
+
"output_required": true,
|
16849
16908
|
"type": "string",
|
16850
16909
|
"value_allowed_null": true
|
16851
16910
|
},
|
@@ -16855,9 +16914,29 @@
|
|
16855
16914
|
"example": "无",
|
16856
16915
|
"member": "ProxyAllocation",
|
16857
16916
|
"name": "ProxyAllocation",
|
16858
|
-
"
|
16917
|
+
"output_required": true,
|
16859
16918
|
"type": "list",
|
16860
16919
|
"value_allowed_null": true
|
16920
|
+
},
|
16921
|
+
{
|
16922
|
+
"disabled": false,
|
16923
|
+
"document": "接入模式\n注意:此字段可能返回 null,表示取不到有效值。",
|
16924
|
+
"example": "balance",
|
16925
|
+
"member": "string",
|
16926
|
+
"name": "AccessMode",
|
16927
|
+
"output_required": false,
|
16928
|
+
"type": "string",
|
16929
|
+
"value_allowed_null": true
|
16930
|
+
},
|
16931
|
+
{
|
16932
|
+
"disabled": false,
|
16933
|
+
"document": "是否开启自动负载均衡\n注意:此字段可能返回 null,表示取不到有效值。",
|
16934
|
+
"example": "false",
|
16935
|
+
"member": "bool",
|
16936
|
+
"name": "AutoLoadBalance",
|
16937
|
+
"output_required": false,
|
16938
|
+
"type": "bool",
|
16939
|
+
"value_allowed_null": true
|
16861
16940
|
}
|
16862
16941
|
],
|
16863
16942
|
"usage": "out"
|
@@ -17083,6 +17162,28 @@
|
|
17083
17162
|
"required": false,
|
17084
17163
|
"type": "string",
|
17085
17164
|
"value_allowed_null": true
|
17165
|
+
},
|
17166
|
+
{
|
17167
|
+
"disabled": false,
|
17168
|
+
"document": "实例节点ID\n注意:此字段可能返回 null,表示取不到有效值。",
|
17169
|
+
"example": "cbn-test",
|
17170
|
+
"member": "string",
|
17171
|
+
"name": "InstNodeId",
|
17172
|
+
"output_required": false,
|
17173
|
+
"required": false,
|
17174
|
+
"type": "string",
|
17175
|
+
"value_allowed_null": true
|
17176
|
+
},
|
17177
|
+
{
|
17178
|
+
"disabled": false,
|
17179
|
+
"document": "节点角色\n注意:此字段可能返回 null,表示取不到有效值。",
|
17180
|
+
"example": "master",
|
17181
|
+
"member": "string",
|
17182
|
+
"name": "InstNodeRole",
|
17183
|
+
"output_required": false,
|
17184
|
+
"required": false,
|
17185
|
+
"type": "string",
|
17186
|
+
"value_allowed_null": true
|
17086
17187
|
}
|
17087
17188
|
],
|
17088
17189
|
"usage": "both"
|
@@ -504,7 +504,7 @@
|
|
504
504
|
{
|
505
505
|
"document": "查询代理信息",
|
506
506
|
"input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeCdbProxyInfo\n<公共请求参数>\n\n{\n \"InstanceId\": \"cdb-aykuksx3\"\n}",
|
507
|
-
"output": "{\n \"Response\": {\n \"Count\": 1,\n \"ProxyInfos\": [\n {\n \"ConnectionPoolLimit\": 5,\n \"ProxyAddress\": [\n {\n \"AutoAddRo\": true,\n \"ConnectionPool\": false,\n \"Desc\": \"\",\n \"FailOver\": true,\n \"IsKickOut\": false,\n \"MaxDelay\": 0,\n \"MinCount\": 0,\n \"ProxyAddressId\": \"proxyaddr-test\",\n \"ProxyAllocation\": [\n {\n \"ProxyInstance\": [\n {\n \"InstanceId\": \"cdb-test\",\n \"InstanceName\": \"测试\",\n \"InstanceType\": \"1\",\n \"Region\": \"ap-nanjing\",\n \"Status\": 1,\n \"Weight\": 0,\n \"Zone\": \"ap-nanjing-1\"\n }\n ],\n \"Region\": \"ap-nanjing\",\n \"Zone\": \"ap-nanjing-1\"\n }\n ],\n \"ReadOnly\": false,\n \"TransSplit\": false,\n \"UniqSubnetId\": \"subnet-test\",\n \"UniqVpcId\": \"vpc-test\",\n \"VPort\": 3306,\n \"Vip\": \"10.0.0.0\",\n \"WeightMode\": \"custom\"\n }\n ],\n \"ProxyGroupId\": \"proxy-mfxftest\",\n \"ProxyNode\": [\n {\n \"Cpu\": 2,\n \"Mem\": 4000,\n \"ProxyId\": \"proxynode-test\",\n \"Region\": \"ap-nanjing\",\n \"Status\": \"online\",\n \"Zone\": \"ap-nanjing-1\",\n \"Connection\": 1\n }\n ],\n \"ProxyVersion\": \"1.3.7\",\n \"Status\": \"online\",\n \"SupportCreateProxyAddress\": false,\n \"SupportUpgradeProxyMysqlVersion\": \"20211030\",\n \"SupportUpgradeProxyVersion\": \"1.3.7\",\n \"TaskStatus\": \"ProxyModifyAddress\"\n }\n ],\n \"RequestId\": \"69d4c061-9730-4e2f-btttbb2-a74624bc9a6c\"\n }\n}",
|
507
|
+
"output": "{\n \"Response\": {\n \"Count\": 1,\n \"ProxyInfos\": [\n {\n \"ConnectionPoolLimit\": 5,\n \"ProxyAddress\": [\n {\n \"AutoAddRo\": true,\n \"ConnectionPool\": false,\n \"Desc\": \"\",\n \"FailOver\": true,\n \"IsKickOut\": false,\n \"MaxDelay\": 0,\n \"MinCount\": 0,\n \"ProxyAddressId\": \"proxyaddr-test\",\n \"AccessMode\": \"balance\",\n \"ProxyAllocation\": [\n {\n \"ProxyInstance\": [\n {\n \"InstanceId\": \"cdb-test\",\n \"InstanceName\": \"测试\",\n \"InstanceType\": \"1\",\n \"Region\": \"ap-nanjing\",\n \"Status\": 1,\n \"Weight\": 0,\n \"Zone\": \"ap-nanjing-1\"\n }\n ],\n \"Region\": \"ap-nanjing\",\n \"Zone\": \"ap-nanjing-1\"\n }\n ],\n \"ReadOnly\": false,\n \"TransSplit\": false,\n \"UniqSubnetId\": \"subnet-test\",\n \"UniqVpcId\": \"vpc-test\",\n \"VPort\": 3306,\n \"Vip\": \"10.0.0.0\",\n \"WeightMode\": \"custom\"\n }\n ],\n \"ProxyGroupId\": \"proxy-mfxftest\",\n \"ProxyNode\": [\n {\n \"Cpu\": 2,\n \"Mem\": 4000,\n \"ProxyId\": \"proxynode-test\",\n \"Region\": \"ap-nanjing\",\n \"Status\": \"online\",\n \"Zone\": \"ap-nanjing-1\",\n \"Connection\": 1\n }\n ],\n \"ProxyVersion\": \"1.3.7\",\n \"Status\": \"online\",\n \"SupportCreateProxyAddress\": false,\n \"SupportUpgradeProxyMysqlVersion\": \"20211030\",\n \"SupportUpgradeProxyVersion\": \"1.3.7\",\n \"TaskStatus\": \"ProxyModifyAddress\"\n }\n ],\n \"RequestId\": \"69d4c061-9730-4e2f-btttbb2-a74624bc9a6c\"\n }\n}",
|
508
508
|
"title": "查询代理信息"
|
509
509
|
}
|
510
510
|
],
|
@@ -758,7 +758,7 @@
|
|
758
758
|
{
|
759
759
|
"document": "",
|
760
760
|
"input": "POST / HTTP/1.1\nHost: cdb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeProxySupportParam\n<公共请求参数>\n\n{\n \"InstanceId\": \"cdb-xxx\"\n}",
|
761
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"xx-xxx-xxx\",\n \"ProxyVersion\": \"1.3.1\",\n \"SupportPool\": true,\n \"PoolMin\": 1,\n \"PoolMax\": 10,\n \"SupportTransSplit\": true,\n \"SupportTransSplitMinVersion\": \"1.3.1\",\n \"SupportPoolMinVersion\": \"1.1.1\",\n \"SupportReadOnly\": true\n }\n}",
|
761
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"xx-xxx-xxx\",\n \"ProxyVersion\": \"1.3.1\",\n \"SupportPool\": true,\n \"PoolMin\": 1,\n \"PoolMax\": 10,\n \"SupportTransSplit\": true,\n \"SupportTransSplitMinVersion\": \"1.3.1\",\n \"SupportPoolMinVersion\": \"1.1.1\",\n \"SupportReadOnly\": true,\n \"SupportAutoLoadBalance\": true,\n \"SupportAccessMode\": true\n }\n}",
|
762
762
|
"title": "查询实例支持代理版本和参数"
|
763
763
|
}
|
764
764
|
],
|
@@ -4893,6 +4893,24 @@
|
|
4893
4893
|
"name": "TemplateId",
|
4894
4894
|
"required": true,
|
4895
4895
|
"type": "string"
|
4896
|
+
},
|
4897
|
+
{
|
4898
|
+
"disabled": false,
|
4899
|
+
"document": "结束后是否自动支付尾款,默认开启 传入1关闭",
|
4900
|
+
"example": "0",
|
4901
|
+
"member": "int64",
|
4902
|
+
"name": "IsAutoPay",
|
4903
|
+
"required": false,
|
4904
|
+
"type": "int"
|
4905
|
+
},
|
4906
|
+
{
|
4907
|
+
"disabled": false,
|
4908
|
+
"document": "结束后是否自动进行梯度保证金扣除,默认开启 传入1关闭",
|
4909
|
+
"example": "0",
|
4910
|
+
"member": "int64",
|
4911
|
+
"name": "IsBidAutoPay",
|
4912
|
+
"required": false,
|
4913
|
+
"type": "int"
|
4896
4914
|
}
|
4897
4915
|
],
|
4898
4916
|
"type": "object"
|
tccli/services/ess/ess_client.py
CHANGED
@@ -277,6 +277,58 @@ def doStartFlow(args, parsed_globals):
|
|
277
277
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
278
278
|
|
279
279
|
|
280
|
+
def doCreateUserMobileChangeUrl(args, parsed_globals):
|
281
|
+
g_param = parse_global_arg(parsed_globals)
|
282
|
+
|
283
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
284
|
+
cred = credential.CVMRoleCredential()
|
285
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
286
|
+
cred = credential.STSAssumeRoleCredential(
|
287
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
288
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
289
|
+
)
|
290
|
+
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):
|
291
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
292
|
+
else:
|
293
|
+
cred = credential.Credential(
|
294
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
295
|
+
)
|
296
|
+
http_profile = HttpProfile(
|
297
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
298
|
+
reqMethod="POST",
|
299
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
300
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
301
|
+
)
|
302
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
303
|
+
if g_param[OptionsDefine.Language]:
|
304
|
+
profile.language = g_param[OptionsDefine.Language]
|
305
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
306
|
+
client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile)
|
307
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
308
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
309
|
+
model = models.CreateUserMobileChangeUrlRequest()
|
310
|
+
model.from_json_string(json.dumps(args))
|
311
|
+
start_time = time.time()
|
312
|
+
while True:
|
313
|
+
rsp = client.CreateUserMobileChangeUrl(model)
|
314
|
+
result = rsp.to_json_string()
|
315
|
+
try:
|
316
|
+
json_obj = json.loads(result)
|
317
|
+
except TypeError as e:
|
318
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
319
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
320
|
+
break
|
321
|
+
cur_time = time.time()
|
322
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
323
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
324
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
325
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
326
|
+
else:
|
327
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
328
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
329
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
330
|
+
|
331
|
+
|
280
332
|
def doCancelFlow(args, parsed_globals):
|
281
333
|
g_param = parse_global_arg(parsed_globals)
|
282
334
|
|
@@ -4349,6 +4401,7 @@ ACTION_MAP = {
|
|
4349
4401
|
"DescribeOrganizationGroupOrganizations": doDescribeOrganizationGroupOrganizations,
|
4350
4402
|
"ModifyApplicationCallbackInfo": doModifyApplicationCallbackInfo,
|
4351
4403
|
"StartFlow": doStartFlow,
|
4404
|
+
"CreateUserMobileChangeUrl": doCreateUserMobileChangeUrl,
|
4352
4405
|
"CancelFlow": doCancelFlow,
|
4353
4406
|
"DescribeFlowTemplates": doDescribeFlowTemplates,
|
4354
4407
|
"DeleteSealPolicies": doDeleteSealPolicies,
|