tccli 3.0.1146.1__py2.py3-none-any.whl → 3.0.1147.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/aiart/v20221229/api.json +2 -2
- tccli/services/aiart/v20221229/examples.json +4 -4
- tccli/services/cdb/v20170320/api.json +14 -10
- tccli/services/cdn/v20180606/api.json +1 -1
- tccli/services/goosefs/v20220519/api.json +92 -12
- tccli/services/iotexplorer/v20190423/api.json +1 -1
- tccli/services/ivld/ivld_client.py +163 -4
- tccli/services/ivld/v20210903/api.json +443 -0
- tccli/services/ivld/v20210903/examples.json +24 -0
- tccli/services/live/v20180801/api.json +7 -5
- tccli/services/lke/v20231130/examples.json +2 -2
- tccli/services/postgres/v20170312/api.json +7 -7
- tccli/services/rum/v20210622/api.json +9 -0
- tccli/services/tdcpg/v20211118/api.json +4 -4
- tccli/services/tdcpg/v20211118/examples.json +2 -2
- tccli/services/trtc/trtc_client.py +163 -4
- tccli/services/trtc/v20190722/api.json +311 -0
- tccli/services/trtc/v20190722/examples.json +24 -0
- tccli/services/tse/v20201207/api.json +19 -0
- tccli/services/vpc/v20170312/api.json +143 -25
- tccli/services/vpc/v20170312/examples.json +10 -2
- tccli/services/vpc/vpc_client.py +69 -16
- tccli/services/waf/v20180125/api.json +2 -2
- {tccli-3.0.1146.1.dist-info → tccli-3.0.1147.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1146.1.dist-info → tccli-3.0.1147.1.dist-info}/RECORD +29 -29
- {tccli-3.0.1146.1.dist-info → tccli-3.0.1147.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1146.1.dist-info → tccli-3.0.1147.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1146.1.dist-info → tccli-3.0.1147.1.dist-info}/license_files/LICENSE +0 -0
@@ -2107,6 +2107,13 @@
|
|
2107
2107
|
"output": "ModifyVpnGatewayRoutesResponse",
|
2108
2108
|
"status": "online"
|
2109
2109
|
},
|
2110
|
+
"ModifyVpnGatewaySslClientCert": {
|
2111
|
+
"document": "更新SslVpnClient证书",
|
2112
|
+
"input": "ModifyVpnGatewaySslClientCertRequest",
|
2113
|
+
"name": "更新SslVpnClient证书",
|
2114
|
+
"output": "ModifyVpnGatewaySslClientCertResponse",
|
2115
|
+
"status": "online"
|
2116
|
+
},
|
2110
2117
|
"ModifyVpnGatewaySslServer": {
|
2111
2118
|
"document": "本接口用于修改 SSL-VPN 服务端属性",
|
2112
2119
|
"input": "ModifyVpnGatewaySslServerRequest",
|
@@ -15175,7 +15182,7 @@
|
|
15175
15182
|
"members": [
|
15176
15183
|
{
|
15177
15184
|
"disabled": false,
|
15178
|
-
"document": "安全组实例ID,例如:sg-33ocnj9n
|
15185
|
+
"document": "安全组实例ID,例如:sg-33ocnj9n,可通过<a href=\"https://cloud.tencent.com/document/product/215/15808\">DescribeSecurityGroups</a>获取。",
|
15179
15186
|
"example": "sg-ohuuioma",
|
15180
15187
|
"member": "string",
|
15181
15188
|
"name": "SecurityGroupId",
|
@@ -15203,7 +15210,7 @@
|
|
15203
15210
|
"example": "无",
|
15204
15211
|
"member": "SecurityGroupPolicySet",
|
15205
15212
|
"name": "SecurityGroupPolicySet",
|
15206
|
-
"
|
15213
|
+
"output_required": true,
|
15207
15214
|
"type": "object",
|
15208
15215
|
"value_allowed_null": false
|
15209
15216
|
},
|
@@ -24091,6 +24098,42 @@
|
|
24091
24098
|
],
|
24092
24099
|
"type": "object"
|
24093
24100
|
},
|
24101
|
+
"ModifyVpnGatewaySslClientCertRequest": {
|
24102
|
+
"document": "ModifyVpnGatewaySslClientCert请求参数结构体",
|
24103
|
+
"members": [
|
24104
|
+
{
|
24105
|
+
"disabled": false,
|
24106
|
+
"document": "SSL-VPN-CLIENT 实例ID列表。",
|
24107
|
+
"example": "[\"vpnc-2cpuxfh2\"]",
|
24108
|
+
"member": "string",
|
24109
|
+
"name": "SslVpnClientIds",
|
24110
|
+
"required": true,
|
24111
|
+
"type": "list"
|
24112
|
+
}
|
24113
|
+
],
|
24114
|
+
"type": "object"
|
24115
|
+
},
|
24116
|
+
"ModifyVpnGatewaySslClientCertResponse": {
|
24117
|
+
"document": "ModifyVpnGatewaySslClientCert返回参数结构体",
|
24118
|
+
"members": [
|
24119
|
+
{
|
24120
|
+
"disabled": false,
|
24121
|
+
"document": "异步任务ID。",
|
24122
|
+
"example": "12",
|
24123
|
+
"member": "int64",
|
24124
|
+
"name": "TaskId",
|
24125
|
+
"type": "int",
|
24126
|
+
"value_allowed_null": false
|
24127
|
+
},
|
24128
|
+
{
|
24129
|
+
"document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。",
|
24130
|
+
"member": "string",
|
24131
|
+
"name": "RequestId",
|
24132
|
+
"type": "string"
|
24133
|
+
}
|
24134
|
+
],
|
24135
|
+
"type": "object"
|
24136
|
+
},
|
24094
24137
|
"ModifyVpnGatewaySslServerRequest": {
|
24095
24138
|
"document": "ModifyVpnGatewaySslServer请求参数结构体",
|
24096
24139
|
"members": [
|
@@ -25719,6 +25762,56 @@
|
|
25719
25762
|
],
|
25720
25763
|
"usage": "out"
|
25721
25764
|
},
|
25765
|
+
"PolicyStatistics": {
|
25766
|
+
"document": "安全组策略统计",
|
25767
|
+
"members": [
|
25768
|
+
{
|
25769
|
+
"disabled": false,
|
25770
|
+
"document": "入站IPv4总数\n注意:此字段可能返回 null,表示取不到有效值。",
|
25771
|
+
"example": "1",
|
25772
|
+
"member": "uint64",
|
25773
|
+
"name": "IngressIPv4TotalCount",
|
25774
|
+
"output_required": false,
|
25775
|
+
"required": true,
|
25776
|
+
"type": "int",
|
25777
|
+
"value_allowed_null": true
|
25778
|
+
},
|
25779
|
+
{
|
25780
|
+
"disabled": false,
|
25781
|
+
"document": "入站IPv6总数\n注意:此字段可能返回 null,表示取不到有效值。",
|
25782
|
+
"example": "1",
|
25783
|
+
"member": "uint64",
|
25784
|
+
"name": "IngressIPv6TotalCount",
|
25785
|
+
"output_required": false,
|
25786
|
+
"required": true,
|
25787
|
+
"type": "int",
|
25788
|
+
"value_allowed_null": true
|
25789
|
+
},
|
25790
|
+
{
|
25791
|
+
"disabled": false,
|
25792
|
+
"document": "出站IPv4总数\n注意:此字段可能返回 null,表示取不到有效值。",
|
25793
|
+
"example": "1",
|
25794
|
+
"member": "uint64",
|
25795
|
+
"name": "EgressIPv4TotalCount",
|
25796
|
+
"output_required": false,
|
25797
|
+
"required": true,
|
25798
|
+
"type": "int",
|
25799
|
+
"value_allowed_null": true
|
25800
|
+
},
|
25801
|
+
{
|
25802
|
+
"disabled": false,
|
25803
|
+
"document": "出站IPv6总数\n注意:此字段可能返回 null,表示取不到有效值。",
|
25804
|
+
"example": "1",
|
25805
|
+
"member": "uint64",
|
25806
|
+
"name": "EgressIPv6TotalCount",
|
25807
|
+
"output_required": false,
|
25808
|
+
"required": true,
|
25809
|
+
"type": "int",
|
25810
|
+
"value_allowed_null": true
|
25811
|
+
}
|
25812
|
+
],
|
25813
|
+
"usage": "both"
|
25814
|
+
},
|
25722
25815
|
"Price": {
|
25723
25816
|
"document": "价格",
|
25724
25817
|
"members": [
|
@@ -28095,116 +28188,127 @@
|
|
28095
28188
|
"members": [
|
28096
28189
|
{
|
28097
28190
|
"disabled": false,
|
28098
|
-
"document": "安全组规则索引号,值会随着安全组规则的变更动态变化。使用PolicyIndex时,请先调用`DescribeSecurityGroupPolicies`获取到规则的PolicyIndex,并且结合返回值中的Version
|
28191
|
+
"document": "安全组规则索引号,值会随着安全组规则的变更动态变化。使用PolicyIndex时,请先调用`DescribeSecurityGroupPolicies`获取到规则的PolicyIndex,并且结合返回值中的Version一起使用处理规则。\n注意:此字段可能返回 null,表示取不到有效值。",
|
28099
28192
|
"example": "0",
|
28100
28193
|
"member": "int64",
|
28101
28194
|
"name": "PolicyIndex",
|
28195
|
+
"output_required": false,
|
28102
28196
|
"required": false,
|
28103
28197
|
"type": "int",
|
28104
|
-
"value_allowed_null":
|
28198
|
+
"value_allowed_null": true
|
28105
28199
|
},
|
28106
28200
|
{
|
28107
28201
|
"disabled": false,
|
28108
|
-
"document": "协议, 取值: TCP,UDP,ICMP,ICMPv6,ALL
|
28202
|
+
"document": "协议, 取值: TCP,UDP,ICMP,ICMPv6,ALL。\n注意:此字段可能返回 null,表示取不到有效值。",
|
28109
28203
|
"example": "TCP",
|
28110
28204
|
"member": "string",
|
28111
28205
|
"name": "Protocol",
|
28206
|
+
"output_required": false,
|
28112
28207
|
"required": false,
|
28113
28208
|
"type": "string",
|
28114
|
-
"value_allowed_null":
|
28209
|
+
"value_allowed_null": true
|
28115
28210
|
},
|
28116
28211
|
{
|
28117
28212
|
"disabled": false,
|
28118
|
-
"document": "端口(all, 离散port, range)。\n说明:如果Protocol设置为ALL,则Port也需要设置为all
|
28213
|
+
"document": "端口(all, 离散port, range)。\n说明:如果Protocol设置为ALL,则Port也需要设置为all。\n注意:此字段可能返回 null,表示取不到有效值。",
|
28119
28214
|
"example": "22",
|
28120
28215
|
"member": "string",
|
28121
28216
|
"name": "Port",
|
28217
|
+
"output_required": false,
|
28122
28218
|
"required": false,
|
28123
28219
|
"type": "string",
|
28124
|
-
"value_allowed_null":
|
28220
|
+
"value_allowed_null": true
|
28125
28221
|
},
|
28126
28222
|
{
|
28127
28223
|
"disabled": false,
|
28128
|
-
"document": "协议端口ID或者协议端口组ID。ServiceTemplate和Protocol+Port
|
28224
|
+
"document": "协议端口ID或者协议端口组ID。ServiceTemplate和Protocol+Port互斥。\n注意:此字段可能返回 null,表示取不到有效值。",
|
28129
28225
|
"example": "无",
|
28130
28226
|
"member": "ServiceTemplateSpecification",
|
28131
28227
|
"name": "ServiceTemplate",
|
28228
|
+
"output_required": false,
|
28132
28229
|
"required": false,
|
28133
28230
|
"type": "object",
|
28134
|
-
"value_allowed_null":
|
28231
|
+
"value_allowed_null": true
|
28135
28232
|
},
|
28136
28233
|
{
|
28137
28234
|
"disabled": false,
|
28138
|
-
"document": "网段或IP(互斥),特殊说明:0.0.0.0/n 都会映射为0.0.0.0/0
|
28235
|
+
"document": "网段或IP(互斥),特殊说明:0.0.0.0/n 都会映射为0.0.0.0/0。\n注意:此字段可能返回 null,表示取不到有效值。",
|
28139
28236
|
"example": "0.0.0.0/16",
|
28140
28237
|
"member": "string",
|
28141
28238
|
"name": "CidrBlock",
|
28239
|
+
"output_required": false,
|
28142
28240
|
"required": false,
|
28143
28241
|
"type": "string",
|
28144
|
-
"value_allowed_null":
|
28242
|
+
"value_allowed_null": true
|
28145
28243
|
},
|
28146
28244
|
{
|
28147
28245
|
"disabled": false,
|
28148
|
-
"document": "网段或IPv6(互斥)
|
28246
|
+
"document": "网段或IPv6(互斥)。\n注意:此字段可能返回 null,表示取不到有效值。",
|
28149
28247
|
"example": "::/0",
|
28150
28248
|
"member": "string",
|
28151
28249
|
"name": "Ipv6CidrBlock",
|
28250
|
+
"output_required": false,
|
28152
28251
|
"required": false,
|
28153
28252
|
"type": "string",
|
28154
|
-
"value_allowed_null":
|
28253
|
+
"value_allowed_null": true
|
28155
28254
|
},
|
28156
28255
|
{
|
28157
28256
|
"disabled": false,
|
28158
|
-
"document": "安全组实例ID,例如:sg-ohuuioma
|
28257
|
+
"document": "安全组实例ID,例如:sg-ohuuioma。\n注意:此字段可能返回 null,表示取不到有效值。",
|
28159
28258
|
"example": "sg-ohuuioma",
|
28160
28259
|
"member": "string",
|
28161
28260
|
"name": "SecurityGroupId",
|
28261
|
+
"output_required": false,
|
28162
28262
|
"required": false,
|
28163
28263
|
"type": "string",
|
28164
|
-
"value_allowed_null":
|
28264
|
+
"value_allowed_null": true
|
28165
28265
|
},
|
28166
28266
|
{
|
28167
28267
|
"disabled": false,
|
28168
|
-
"document": "IP地址ID或者IP地址组ID
|
28268
|
+
"document": "IP地址ID或者IP地址组ID。\n注意:此字段可能返回 null,表示取不到有效值。",
|
28169
28269
|
"example": "无",
|
28170
28270
|
"member": "AddressTemplateSpecification",
|
28171
28271
|
"name": "AddressTemplate",
|
28272
|
+
"output_required": false,
|
28172
28273
|
"required": false,
|
28173
28274
|
"type": "object",
|
28174
|
-
"value_allowed_null":
|
28275
|
+
"value_allowed_null": true
|
28175
28276
|
},
|
28176
28277
|
{
|
28177
28278
|
"disabled": false,
|
28178
|
-
"document": "ACCEPT 或 DROP
|
28279
|
+
"document": "ACCEPT 或 DROP。\n注意:此字段可能返回 null,表示取不到有效值。",
|
28179
28280
|
"example": "ACCEPT",
|
28180
28281
|
"member": "string",
|
28181
28282
|
"name": "Action",
|
28283
|
+
"output_required": false,
|
28182
28284
|
"required": false,
|
28183
28285
|
"type": "string",
|
28184
|
-
"value_allowed_null":
|
28286
|
+
"value_allowed_null": true
|
28185
28287
|
},
|
28186
28288
|
{
|
28187
28289
|
"disabled": false,
|
28188
|
-
"document": "
|
28290
|
+
"document": "安全组规则描述。\n注意:此字段可能返回 null,表示取不到有效值。",
|
28189
28291
|
"example": "Desc",
|
28190
28292
|
"member": "string",
|
28191
28293
|
"name": "PolicyDescription",
|
28294
|
+
"output_required": false,
|
28192
28295
|
"required": false,
|
28193
28296
|
"type": "string",
|
28194
|
-
"value_allowed_null":
|
28297
|
+
"value_allowed_null": true
|
28195
28298
|
},
|
28196
28299
|
{
|
28197
28300
|
"disabled": false,
|
28198
|
-
"document": "
|
28301
|
+
"document": "安全组最近修改时间。\n注意:此字段可能返回 null,表示取不到有效值。",
|
28199
28302
|
"example": "2021-03-02 14:41:15",
|
28200
28303
|
"member": "string",
|
28201
28304
|
"name": "ModifyTime",
|
28305
|
+
"output_required": false,
|
28202
28306
|
"required": false,
|
28203
28307
|
"type": "string",
|
28204
|
-
"value_allowed_null":
|
28308
|
+
"value_allowed_null": true
|
28205
28309
|
}
|
28206
28310
|
],
|
28207
|
-
"usage": "
|
28311
|
+
"usage": "both"
|
28208
28312
|
},
|
28209
28313
|
"SecurityGroupPolicySet": {
|
28210
28314
|
"document": "安全组规则集合",
|
@@ -28215,6 +28319,7 @@
|
|
28215
28319
|
"example": "无",
|
28216
28320
|
"member": "string",
|
28217
28321
|
"name": "Version",
|
28322
|
+
"output_required": true,
|
28218
28323
|
"required": false,
|
28219
28324
|
"type": "string",
|
28220
28325
|
"value_allowed_null": true
|
@@ -28225,6 +28330,7 @@
|
|
28225
28330
|
"example": "无",
|
28226
28331
|
"member": "SecurityGroupPolicy",
|
28227
28332
|
"name": "Egress",
|
28333
|
+
"output_required": true,
|
28228
28334
|
"required": false,
|
28229
28335
|
"type": "list",
|
28230
28336
|
"value_allowed_null": true
|
@@ -28235,9 +28341,21 @@
|
|
28235
28341
|
"example": "无",
|
28236
28342
|
"member": "SecurityGroupPolicy",
|
28237
28343
|
"name": "Ingress",
|
28344
|
+
"output_required": true,
|
28238
28345
|
"required": false,
|
28239
28346
|
"type": "list",
|
28240
28347
|
"value_allowed_null": true
|
28348
|
+
},
|
28349
|
+
{
|
28350
|
+
"disabled": false,
|
28351
|
+
"document": "安全组策略条目统计。只用于出参。\n注意:此字段可能返回 null,表示取不到有效值。",
|
28352
|
+
"example": "无",
|
28353
|
+
"member": "PolicyStatistics",
|
28354
|
+
"name": "PolicyStatistics",
|
28355
|
+
"output_required": false,
|
28356
|
+
"required": false,
|
28357
|
+
"type": "object",
|
28358
|
+
"value_allowed_null": true
|
28241
28359
|
}
|
28242
28360
|
],
|
28243
28361
|
"usage": "both"
|
@@ -1682,9 +1682,9 @@
|
|
1682
1682
|
],
|
1683
1683
|
"DescribeSecurityGroupPolicies": [
|
1684
1684
|
{
|
1685
|
-
"document": "",
|
1685
|
+
"document": "查询安全组规则",
|
1686
1686
|
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeSecurityGroupPolicies\n<公共请求参数>\n\n{\n \"SecurityGroupId\": \"sg-ohuuioma\"\n}",
|
1687
|
-
"output": "{\n \"Response\": {\n \"SecurityGroupPolicySet\": {\n \"Ingress\": [\n {\n \"PolicyIndex\": 0,\n \"ServiceTemplate\": {\n \"ServiceId\": \"ppm-f5n1f8da\",\n \"ServiceGroupId\": \"\"\n },\n \"AddressTemplate\": {\n \"AddressGroupId\": \"ipmg-2uw6ujo6\",\n \"AddressId\": \"\"\n },\n \"Action\": \"ACCEPT\",\n \"ModifyTime\": \"2017-03-12 10:00:00\",\n \"PolicyDescription\": \"ModifyPolicies\"\n },\n {\n \"PolicyIndex\": 1,\n \"ServiceTemplate\": {\n \"ServiceId\": \"ppm-f5n1f8da\",\n \"ServiceGroupId\": \"\"\n },\n \"AddressTemplate\": {\n \"AddressGroupId\": \"ipmg-2uw6ujo6\",\n \"AddressId\": \"\"\n },\n \"Action\": \"ACCEPT\",\n \"ModifyTime\": \"2017-03-12 10:00:00\",\n \"PolicyDescription\": \"2\"\n }\n ],\n \"Egress\": [\n {\n \"PolicyIndex\": 0,\n \"ServiceTemplate\": {\n \"ServiceId\": \"ppm-f5n1f8da\",\n \"ServiceGroupId\": \"\"\n },\n \"AddressTemplate\": {\n \"AddressGroupId\": \"ipmg-2uw6ujo6\",\n \"AddressId\": \"\"\n },\n \"Action\": \"ACCEPT\",\n \"ModifyTime\": \"2017-03-12 10:00:00\",\n \"PolicyDescription\": \"E1\"\n }\n ],\n \"Version\": 60\n },\n \"RequestId\": \"74883e1b-5901-46de-ae1e-d6e2cf591c5b\"\n }\n}",
|
1687
|
+
"output": "{\n \"Response\": {\n \"SecurityGroupPolicySet\": {\n \"Ingress\": [\n {\n \"PolicyIndex\": 0,\n \"ServiceTemplate\": {\n \"ServiceId\": \"ppm-f5n1f8da\",\n \"ServiceGroupId\": \"\"\n },\n \"AddressTemplate\": {\n \"AddressGroupId\": \"ipmg-2uw6ujo6\",\n \"AddressId\": \"\"\n },\n \"Action\": \"ACCEPT\",\n \"ModifyTime\": \"2017-03-12 10:00:00\",\n \"PolicyDescription\": \"ModifyPolicies\"\n },\n {\n \"PolicyIndex\": 1,\n \"ServiceTemplate\": {\n \"ServiceId\": \"ppm-f5n1f8da\",\n \"ServiceGroupId\": \"\"\n },\n \"AddressTemplate\": {\n \"AddressGroupId\": \"ipmg-2uw6ujo6\",\n \"AddressId\": \"\"\n },\n \"Action\": \"ACCEPT\",\n \"ModifyTime\": \"2017-03-12 10:00:00\",\n \"PolicyDescription\": \"2\"\n }\n ],\n \"Egress\": [\n {\n \"PolicyIndex\": 0,\n \"ServiceTemplate\": {\n \"ServiceId\": \"ppm-f5n1f8da\",\n \"ServiceGroupId\": \"\"\n },\n \"AddressTemplate\": {\n \"AddressGroupId\": \"ipmg-2uw6ujo6\",\n \"AddressId\": \"\"\n },\n \"Action\": \"ACCEPT\",\n \"ModifyTime\": \"2017-03-12 10:00:00\",\n \"PolicyDescription\": \"E1\"\n }\n ],\n \"PolicyStatistics\": {\n \"IngressIPv4TotalCount\": 0,\n \"IngressIPv6TotalCount\": 0,\n \"EgressIPv4TotalCount\": 0,\n \"EgressIPv6TotalCount\": 0\n },\n \"Version\": \"60\"\n },\n \"RequestId\": \"74883e1b-5901-46de-ae1e-d6e2cf591c5b\"\n }\n}",
|
1688
1688
|
"title": "查询安全组规则"
|
1689
1689
|
}
|
1690
1690
|
],
|
@@ -2774,6 +2774,14 @@
|
|
2774
2774
|
"title": "禁用VPN网关路由"
|
2775
2775
|
}
|
2776
2776
|
],
|
2777
|
+
"ModifyVpnGatewaySslClientCert": [
|
2778
|
+
{
|
2779
|
+
"document": "更新sslVpnClient证书",
|
2780
|
+
"input": "POST / HTTP/1.1\nHost: vpc.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyVpnGatewaySslClientCert\n<公共请求参数>\n\n{\n \"SslVpnClientIds\": [\n \"abc\"\n ]\n}",
|
2781
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"e4b16737-b460-429b-b240-d6b621da9eed\",\n \"TaskId\": 10449\n }\n}",
|
2782
|
+
"title": "更新sslVpnClient证书"
|
2783
|
+
}
|
2784
|
+
],
|
2777
2785
|
"ModifyVpnGatewaySslServer": [
|
2778
2786
|
{
|
2779
2787
|
"document": "修改SSL-VPN SERVER 属性",
|
tccli/services/vpc/vpc_client.py
CHANGED
@@ -2097,7 +2097,7 @@ def doDescribeAddresses(args, parsed_globals):
|
|
2097
2097
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2098
2098
|
|
2099
2099
|
|
2100
|
-
def
|
2100
|
+
def doModifyVpnGatewaySslServer(args, parsed_globals):
|
2101
2101
|
g_param = parse_global_arg(parsed_globals)
|
2102
2102
|
|
2103
2103
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -2126,11 +2126,11 @@ def doDescribeVpcEndPointService(args, parsed_globals):
|
|
2126
2126
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
2127
2127
|
client._sdkVersion += ("_CLI_" + __version__)
|
2128
2128
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2129
|
-
model = models.
|
2129
|
+
model = models.ModifyVpnGatewaySslServerRequest()
|
2130
2130
|
model.from_json_string(json.dumps(args))
|
2131
2131
|
start_time = time.time()
|
2132
2132
|
while True:
|
2133
|
-
rsp = client.
|
2133
|
+
rsp = client.ModifyVpnGatewaySslServer(model)
|
2134
2134
|
result = rsp.to_json_string()
|
2135
2135
|
try:
|
2136
2136
|
json_obj = json.loads(result)
|
@@ -2461,6 +2461,58 @@ def doModifyNatGatewaySourceIpTranslationNatRule(args, parsed_globals):
|
|
2461
2461
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2462
2462
|
|
2463
2463
|
|
2464
|
+
def doModifyVpnGatewaySslClientCert(args, parsed_globals):
|
2465
|
+
g_param = parse_global_arg(parsed_globals)
|
2466
|
+
|
2467
|
+
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
2468
|
+
cred = credential.CVMRoleCredential()
|
2469
|
+
elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]:
|
2470
|
+
cred = credential.STSAssumeRoleCredential(
|
2471
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')],
|
2472
|
+
g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"]
|
2473
|
+
)
|
2474
|
+
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):
|
2475
|
+
cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials()
|
2476
|
+
else:
|
2477
|
+
cred = credential.Credential(
|
2478
|
+
g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token]
|
2479
|
+
)
|
2480
|
+
http_profile = HttpProfile(
|
2481
|
+
reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]),
|
2482
|
+
reqMethod="POST",
|
2483
|
+
endpoint=g_param[OptionsDefine.Endpoint],
|
2484
|
+
proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')]
|
2485
|
+
)
|
2486
|
+
profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256")
|
2487
|
+
if g_param[OptionsDefine.Language]:
|
2488
|
+
profile.language = g_param[OptionsDefine.Language]
|
2489
|
+
mod = CLIENT_MAP[g_param[OptionsDefine.Version]]
|
2490
|
+
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
2491
|
+
client._sdkVersion += ("_CLI_" + __version__)
|
2492
|
+
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
2493
|
+
model = models.ModifyVpnGatewaySslClientCertRequest()
|
2494
|
+
model.from_json_string(json.dumps(args))
|
2495
|
+
start_time = time.time()
|
2496
|
+
while True:
|
2497
|
+
rsp = client.ModifyVpnGatewaySslClientCert(model)
|
2498
|
+
result = rsp.to_json_string()
|
2499
|
+
try:
|
2500
|
+
json_obj = json.loads(result)
|
2501
|
+
except TypeError as e:
|
2502
|
+
json_obj = json.loads(result.decode('utf-8')) # python3.3
|
2503
|
+
if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']:
|
2504
|
+
break
|
2505
|
+
cur_time = time.time()
|
2506
|
+
if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']:
|
2507
|
+
raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' %
|
2508
|
+
(g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'],
|
2509
|
+
search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)))
|
2510
|
+
else:
|
2511
|
+
print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))
|
2512
|
+
time.sleep(g_param['OptionsDefine.WaiterInfo']['interval'])
|
2513
|
+
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
2514
|
+
|
2515
|
+
|
2464
2516
|
def doAssociateNatGatewayAddress(args, parsed_globals):
|
2465
2517
|
g_param = parse_global_arg(parsed_globals)
|
2466
2518
|
|
@@ -3137,7 +3189,7 @@ def doAssignPrivateIpAddresses(args, parsed_globals):
|
|
3137
3189
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3138
3190
|
|
3139
3191
|
|
3140
|
-
def
|
3192
|
+
def doDescribeVpcEndPointService(args, parsed_globals):
|
3141
3193
|
g_param = parse_global_arg(parsed_globals)
|
3142
3194
|
|
3143
3195
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3166,11 +3218,11 @@ def doModifyVpnGatewaySslServer(args, parsed_globals):
|
|
3166
3218
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
3167
3219
|
client._sdkVersion += ("_CLI_" + __version__)
|
3168
3220
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3169
|
-
model = models.
|
3221
|
+
model = models.DescribeVpcEndPointServiceRequest()
|
3170
3222
|
model.from_json_string(json.dumps(args))
|
3171
3223
|
start_time = time.time()
|
3172
3224
|
while True:
|
3173
|
-
rsp = client.
|
3225
|
+
rsp = client.DescribeVpcEndPointService(model)
|
3174
3226
|
result = rsp.to_json_string()
|
3175
3227
|
try:
|
3176
3228
|
json_obj = json.loads(result)
|
@@ -3241,7 +3293,7 @@ def doDescribeCrossBorderFlowMonitor(args, parsed_globals):
|
|
3241
3293
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
3242
3294
|
|
3243
3295
|
|
3244
|
-
def
|
3296
|
+
def doRefreshDirectConnectGatewayRouteToNatGateway(args, parsed_globals):
|
3245
3297
|
g_param = parse_global_arg(parsed_globals)
|
3246
3298
|
|
3247
3299
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -3270,11 +3322,11 @@ def doEnableRoutes(args, parsed_globals):
|
|
3270
3322
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
3271
3323
|
client._sdkVersion += ("_CLI_" + __version__)
|
3272
3324
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
3273
|
-
model = models.
|
3325
|
+
model = models.RefreshDirectConnectGatewayRouteToNatGatewayRequest()
|
3274
3326
|
model.from_json_string(json.dumps(args))
|
3275
3327
|
start_time = time.time()
|
3276
3328
|
while True:
|
3277
|
-
rsp = client.
|
3329
|
+
rsp = client.RefreshDirectConnectGatewayRouteToNatGateway(model)
|
3278
3330
|
result = rsp.to_json_string()
|
3279
3331
|
try:
|
3280
3332
|
json_obj = json.loads(result)
|
@@ -14473,7 +14525,7 @@ def doDetachClassicLinkVpc(args, parsed_globals):
|
|
14473
14525
|
FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter])
|
14474
14526
|
|
14475
14527
|
|
14476
|
-
def
|
14528
|
+
def doEnableRoutes(args, parsed_globals):
|
14477
14529
|
g_param = parse_global_arg(parsed_globals)
|
14478
14530
|
|
14479
14531
|
if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]:
|
@@ -14502,11 +14554,11 @@ def doRefreshDirectConnectGatewayRouteToNatGateway(args, parsed_globals):
|
|
14502
14554
|
client = mod.VpcClient(cred, g_param[OptionsDefine.Region], profile)
|
14503
14555
|
client._sdkVersion += ("_CLI_" + __version__)
|
14504
14556
|
models = MODELS_MAP[g_param[OptionsDefine.Version]]
|
14505
|
-
model = models.
|
14557
|
+
model = models.EnableRoutesRequest()
|
14506
14558
|
model.from_json_string(json.dumps(args))
|
14507
14559
|
start_time = time.time()
|
14508
14560
|
while True:
|
14509
|
-
rsp = client.
|
14561
|
+
rsp = client.EnableRoutes(model)
|
14510
14562
|
result = rsp.to_json_string()
|
14511
14563
|
try:
|
14512
14564
|
json_obj = json.loads(result)
|
@@ -17436,13 +17488,14 @@ ACTION_MAP = {
|
|
17436
17488
|
"DeleteAddressTemplateGroup": doDeleteAddressTemplateGroup,
|
17437
17489
|
"DescribeCustomerGatewayVendors": doDescribeCustomerGatewayVendors,
|
17438
17490
|
"DescribeAddresses": doDescribeAddresses,
|
17439
|
-
"
|
17491
|
+
"ModifyVpnGatewaySslServer": doModifyVpnGatewaySslServer,
|
17440
17492
|
"DescribeVpcTaskResult": doDescribeVpcTaskResult,
|
17441
17493
|
"DeleteLocalGateway": doDeleteLocalGateway,
|
17442
17494
|
"CreateDirectConnectGateway": doCreateDirectConnectGateway,
|
17443
17495
|
"DescribeSecurityGroupPolicies": doDescribeSecurityGroupPolicies,
|
17444
17496
|
"UnlockCcns": doUnlockCcns,
|
17445
17497
|
"ModifyNatGatewaySourceIpTranslationNatRule": doModifyNatGatewaySourceIpTranslationNatRule,
|
17498
|
+
"ModifyVpnGatewaySslClientCert": doModifyVpnGatewaySslClientCert,
|
17446
17499
|
"AssociateNatGatewayAddress": doAssociateNatGatewayAddress,
|
17447
17500
|
"CreatePrivateNatGatewayTranslationNatRule": doCreatePrivateNatGatewayTranslationNatRule,
|
17448
17501
|
"ModifyPrivateNatGatewayDestinationIpPortTranslationNatRule": doModifyPrivateNatGatewayDestinationIpPortTranslationNatRule,
|
@@ -17456,9 +17509,9 @@ ACTION_MAP = {
|
|
17456
17509
|
"RemoveBandwidthPackageResources": doRemoveBandwidthPackageResources,
|
17457
17510
|
"CloneSecurityGroup": doCloneSecurityGroup,
|
17458
17511
|
"AssignPrivateIpAddresses": doAssignPrivateIpAddresses,
|
17459
|
-
"
|
17512
|
+
"DescribeVpcEndPointService": doDescribeVpcEndPointService,
|
17460
17513
|
"DescribeCrossBorderFlowMonitor": doDescribeCrossBorderFlowMonitor,
|
17461
|
-
"
|
17514
|
+
"RefreshDirectConnectGatewayRouteToNatGateway": doRefreshDirectConnectGatewayRouteToNatGateway,
|
17462
17515
|
"CreateAndAttachNetworkInterface": doCreateAndAttachNetworkInterface,
|
17463
17516
|
"ModifyVpcEndPointServiceWhiteList": doModifyVpcEndPointServiceWhiteList,
|
17464
17517
|
"ModifySnapshotPolicies": doModifySnapshotPolicies,
|
@@ -17674,7 +17727,7 @@ ACTION_MAP = {
|
|
17674
17727
|
"ModifyNetworkInterfaceQos": doModifyNetworkInterfaceQos,
|
17675
17728
|
"DetachCcnInstances": doDetachCcnInstances,
|
17676
17729
|
"DetachClassicLinkVpc": doDetachClassicLinkVpc,
|
17677
|
-
"
|
17730
|
+
"EnableRoutes": doEnableRoutes,
|
17678
17731
|
"DisassociateDhcpIpWithAddressIp": doDisassociateDhcpIpWithAddressIp,
|
17679
17732
|
"CreateHaVip": doCreateHaVip,
|
17680
17733
|
"ModifyServiceTemplateAttribute": doModifyServiceTemplateAttribute,
|
@@ -8113,7 +8113,7 @@
|
|
8113
8113
|
},
|
8114
8114
|
{
|
8115
8115
|
"disabled": false,
|
8116
|
-
"document": "聚类字段,ip为ip聚合,art为响应耗时聚合,url为url聚合,local为ip
|
8116
|
+
"document": "聚类字段,ip为ip聚合,art为响应耗时聚合,url为url聚合,local为ip转化的城市聚合,qps为每秒请求数峰值的聚合,up为上行带宽峰值聚合,down为下行带峰值聚合",
|
8117
8117
|
"example": "ip",
|
8118
8118
|
"member": "string",
|
8119
8119
|
"name": "QueryField",
|
@@ -8177,7 +8177,7 @@
|
|
8177
8177
|
"example": "[]",
|
8178
8178
|
"member": "string",
|
8179
8179
|
"name": "Histogram",
|
8180
|
-
"
|
8180
|
+
"output_required": true,
|
8181
8181
|
"type": "list",
|
8182
8182
|
"value_allowed_null": false
|
8183
8183
|
},
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: tccli
|
3
|
-
Version: 3.0.
|
3
|
+
Version: 3.0.1147.1
|
4
4
|
Summary: Universal Command Line Environment for Tencent Cloud
|
5
5
|
Project-URL: Bug Tracker, https://github.com/TencentCloud/tencentcloud-cli/issues
|
6
6
|
Project-URL: Homepage, https://github.com/TencentCloud/tencentcloud-cli
|
@@ -13,7 +13,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
13
13
|
Classifier: Programming Language :: Python :: 3
|
14
14
|
Requires-Dist: jmespath==0.10.0
|
15
15
|
Requires-Dist: six==1.16.0
|
16
|
-
Requires-Dist: tencentcloud-sdk-python>=3.0.
|
16
|
+
Requires-Dist: tencentcloud-sdk-python>=3.0.1147
|
17
17
|
Description-Content-Type: text/markdown
|
18
18
|
|
19
19
|
# 命令行工具简介
|