tencentcloud-sdk-python-ga2 3.1.101__tar.gz → 3.1.112__tar.gz
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.
- {tencentcloud_sdk_python_ga2-3.1.101 → tencentcloud_sdk_python_ga2-3.1.112}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_ga2-3.1.101 → tencentcloud_sdk_python_ga2-3.1.112}/setup.py +1 -1
- {tencentcloud_sdk_python_ga2-3.1.101 → tencentcloud_sdk_python_ga2-3.1.112}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_ga2-3.1.101 → tencentcloud_sdk_python_ga2-3.1.112}/tencentcloud/ga2/v20250115/errorcodes.py +3 -0
- {tencentcloud_sdk_python_ga2-3.1.101 → tencentcloud_sdk_python_ga2-3.1.112}/tencentcloud/ga2/v20250115/ga2_client.py +92 -0
- {tencentcloud_sdk_python_ga2-3.1.101 → tencentcloud_sdk_python_ga2-3.1.112}/tencentcloud/ga2/v20250115/ga2_client_async.py +72 -0
- {tencentcloud_sdk_python_ga2-3.1.101 → tencentcloud_sdk_python_ga2-3.1.112}/tencentcloud/ga2/v20250115/models.py +897 -58
- {tencentcloud_sdk_python_ga2-3.1.101 → tencentcloud_sdk_python_ga2-3.1.112}/tencentcloud_sdk_python_ga2.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_ga2-3.1.112/tencentcloud_sdk_python_ga2.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_ga2-3.1.101/tencentcloud_sdk_python_ga2.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_ga2-3.1.101 → tencentcloud_sdk_python_ga2-3.1.112}/README.rst +0 -0
- {tencentcloud_sdk_python_ga2-3.1.101 → tencentcloud_sdk_python_ga2-3.1.112}/setup.cfg +0 -0
- {tencentcloud_sdk_python_ga2-3.1.101 → tencentcloud_sdk_python_ga2-3.1.112}/tencentcloud/ga2/__init__.py +0 -0
- {tencentcloud_sdk_python_ga2-3.1.101 → tencentcloud_sdk_python_ga2-3.1.112}/tencentcloud/ga2/v20250115/__init__.py +0 -0
- {tencentcloud_sdk_python_ga2-3.1.101 → tencentcloud_sdk_python_ga2-3.1.112}/tencentcloud_sdk_python_ga2.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_ga2-3.1.101 → tencentcloud_sdk_python_ga2-3.1.112}/tencentcloud_sdk_python_ga2.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_ga2-3.1.101 → tencentcloud_sdk_python_ga2-3.1.112}/tencentcloud_sdk_python_ga2.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-ga2
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.112
|
|
4
4
|
Summary: Tencent Cloud Ga2 SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.112
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-ga2',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.112,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Ga2 SDK for Python',
|
|
@@ -83,6 +83,9 @@ INVALIDPARAMETERVALUE = 'InvalidParameterValue'
|
|
|
83
83
|
# 只能是可打印ASCII字符。
|
|
84
84
|
INVALIDPARAMETERVALUE_ASCIICHARACTERS = 'InvalidParameterValue.AsciiCharacters'
|
|
85
85
|
|
|
86
|
+
# 七层转发策略域名和存量重复。
|
|
87
|
+
INVALIDPARAMETERVALUE_FORWARDINGPOLICYHOSTCONFLICT = 'InvalidParameterValue.ForwardingPolicyHostConflict'
|
|
88
|
+
|
|
86
89
|
# 七层转发规则Path和存量重复。
|
|
87
90
|
INVALIDPARAMETERVALUE_FORWARDINGRULEPATHCONFLICT = 'InvalidParameterValue.ForwardingRulePathConflict'
|
|
88
91
|
|
|
@@ -72,6 +72,29 @@ class Ga2Client(AbstractClient):
|
|
|
72
72
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
73
73
|
|
|
74
74
|
|
|
75
|
+
def CreateForwardingPolicy(self, request):
|
|
76
|
+
r"""创建七层转发策略
|
|
77
|
+
|
|
78
|
+
:param request: Request instance for CreateForwardingPolicy.
|
|
79
|
+
:type request: :class:`tencentcloud.ga2.v20250115.models.CreateForwardingPolicyRequest`
|
|
80
|
+
:rtype: :class:`tencentcloud.ga2.v20250115.models.CreateForwardingPolicyResponse`
|
|
81
|
+
|
|
82
|
+
"""
|
|
83
|
+
try:
|
|
84
|
+
params = request._serialize()
|
|
85
|
+
headers = request.headers
|
|
86
|
+
body = self.call("CreateForwardingPolicy", params, headers=headers)
|
|
87
|
+
response = json.loads(body)
|
|
88
|
+
model = models.CreateForwardingPolicyResponse()
|
|
89
|
+
model._deserialize(response["Response"])
|
|
90
|
+
return model
|
|
91
|
+
except Exception as e:
|
|
92
|
+
if isinstance(e, TencentCloudSDKException):
|
|
93
|
+
raise
|
|
94
|
+
else:
|
|
95
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
96
|
+
|
|
97
|
+
|
|
75
98
|
def CreateForwardingRule(self, request):
|
|
76
99
|
r"""创建七层转发规则
|
|
77
100
|
|
|
@@ -187,6 +210,29 @@ class Ga2Client(AbstractClient):
|
|
|
187
210
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
188
211
|
|
|
189
212
|
|
|
213
|
+
def DeleteForwardingPolicy(self, request):
|
|
214
|
+
r"""删除七层转发策略
|
|
215
|
+
|
|
216
|
+
:param request: Request instance for DeleteForwardingPolicy.
|
|
217
|
+
:type request: :class:`tencentcloud.ga2.v20250115.models.DeleteForwardingPolicyRequest`
|
|
218
|
+
:rtype: :class:`tencentcloud.ga2.v20250115.models.DeleteForwardingPolicyResponse`
|
|
219
|
+
|
|
220
|
+
"""
|
|
221
|
+
try:
|
|
222
|
+
params = request._serialize()
|
|
223
|
+
headers = request.headers
|
|
224
|
+
body = self.call("DeleteForwardingPolicy", params, headers=headers)
|
|
225
|
+
response = json.loads(body)
|
|
226
|
+
model = models.DeleteForwardingPolicyResponse()
|
|
227
|
+
model._deserialize(response["Response"])
|
|
228
|
+
return model
|
|
229
|
+
except Exception as e:
|
|
230
|
+
if isinstance(e, TencentCloudSDKException):
|
|
231
|
+
raise
|
|
232
|
+
else:
|
|
233
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
234
|
+
|
|
235
|
+
|
|
190
236
|
def DeleteForwardingRule(self, request):
|
|
191
237
|
r"""删除七层转发规则
|
|
192
238
|
|
|
@@ -348,6 +394,29 @@ class Ga2Client(AbstractClient):
|
|
|
348
394
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
349
395
|
|
|
350
396
|
|
|
397
|
+
def DescribeForwardingPolicy(self, request):
|
|
398
|
+
r"""查看七层转发策略
|
|
399
|
+
|
|
400
|
+
:param request: Request instance for DescribeForwardingPolicy.
|
|
401
|
+
:type request: :class:`tencentcloud.ga2.v20250115.models.DescribeForwardingPolicyRequest`
|
|
402
|
+
:rtype: :class:`tencentcloud.ga2.v20250115.models.DescribeForwardingPolicyResponse`
|
|
403
|
+
|
|
404
|
+
"""
|
|
405
|
+
try:
|
|
406
|
+
params = request._serialize()
|
|
407
|
+
headers = request.headers
|
|
408
|
+
body = self.call("DescribeForwardingPolicy", params, headers=headers)
|
|
409
|
+
response = json.loads(body)
|
|
410
|
+
model = models.DescribeForwardingPolicyResponse()
|
|
411
|
+
model._deserialize(response["Response"])
|
|
412
|
+
return model
|
|
413
|
+
except Exception as e:
|
|
414
|
+
if isinstance(e, TencentCloudSDKException):
|
|
415
|
+
raise
|
|
416
|
+
else:
|
|
417
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
418
|
+
|
|
419
|
+
|
|
351
420
|
def DescribeForwardingRule(self, request):
|
|
352
421
|
r"""查看七层转发规则
|
|
353
422
|
|
|
@@ -486,6 +555,29 @@ class Ga2Client(AbstractClient):
|
|
|
486
555
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
487
556
|
|
|
488
557
|
|
|
558
|
+
def ModifyForwardingPolicy(self, request):
|
|
559
|
+
r"""修改七层转发策略
|
|
560
|
+
|
|
561
|
+
:param request: Request instance for ModifyForwardingPolicy.
|
|
562
|
+
:type request: :class:`tencentcloud.ga2.v20250115.models.ModifyForwardingPolicyRequest`
|
|
563
|
+
:rtype: :class:`tencentcloud.ga2.v20250115.models.ModifyForwardingPolicyResponse`
|
|
564
|
+
|
|
565
|
+
"""
|
|
566
|
+
try:
|
|
567
|
+
params = request._serialize()
|
|
568
|
+
headers = request.headers
|
|
569
|
+
body = self.call("ModifyForwardingPolicy", params, headers=headers)
|
|
570
|
+
response = json.loads(body)
|
|
571
|
+
model = models.ModifyForwardingPolicyResponse()
|
|
572
|
+
model._deserialize(response["Response"])
|
|
573
|
+
return model
|
|
574
|
+
except Exception as e:
|
|
575
|
+
if isinstance(e, TencentCloudSDKException):
|
|
576
|
+
raise
|
|
577
|
+
else:
|
|
578
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
579
|
+
|
|
580
|
+
|
|
489
581
|
def ModifyForwardingRule(self, request):
|
|
490
582
|
r"""修改七层转发规则
|
|
491
583
|
|
|
@@ -61,6 +61,24 @@ class Ga2Client(AbstractClient):
|
|
|
61
61
|
|
|
62
62
|
return await self.call_and_deserialize(**kwargs)
|
|
63
63
|
|
|
64
|
+
async def CreateForwardingPolicy(
|
|
65
|
+
self,
|
|
66
|
+
request: models.CreateForwardingPolicyRequest,
|
|
67
|
+
opts: Dict = None,
|
|
68
|
+
) -> models.CreateForwardingPolicyResponse:
|
|
69
|
+
"""
|
|
70
|
+
创建七层转发策略
|
|
71
|
+
"""
|
|
72
|
+
|
|
73
|
+
kwargs = {}
|
|
74
|
+
kwargs["action"] = "CreateForwardingPolicy"
|
|
75
|
+
kwargs["params"] = request._serialize()
|
|
76
|
+
kwargs["resp_cls"] = models.CreateForwardingPolicyResponse
|
|
77
|
+
kwargs["headers"] = request.headers
|
|
78
|
+
kwargs["opts"] = opts or {}
|
|
79
|
+
|
|
80
|
+
return await self.call_and_deserialize(**kwargs)
|
|
81
|
+
|
|
64
82
|
async def CreateForwardingRule(
|
|
65
83
|
self,
|
|
66
84
|
request: models.CreateForwardingRuleRequest,
|
|
@@ -151,6 +169,24 @@ class Ga2Client(AbstractClient):
|
|
|
151
169
|
|
|
152
170
|
return await self.call_and_deserialize(**kwargs)
|
|
153
171
|
|
|
172
|
+
async def DeleteForwardingPolicy(
|
|
173
|
+
self,
|
|
174
|
+
request: models.DeleteForwardingPolicyRequest,
|
|
175
|
+
opts: Dict = None,
|
|
176
|
+
) -> models.DeleteForwardingPolicyResponse:
|
|
177
|
+
"""
|
|
178
|
+
删除七层转发策略
|
|
179
|
+
"""
|
|
180
|
+
|
|
181
|
+
kwargs = {}
|
|
182
|
+
kwargs["action"] = "DeleteForwardingPolicy"
|
|
183
|
+
kwargs["params"] = request._serialize()
|
|
184
|
+
kwargs["resp_cls"] = models.DeleteForwardingPolicyResponse
|
|
185
|
+
kwargs["headers"] = request.headers
|
|
186
|
+
kwargs["opts"] = opts or {}
|
|
187
|
+
|
|
188
|
+
return await self.call_and_deserialize(**kwargs)
|
|
189
|
+
|
|
154
190
|
async def DeleteForwardingRule(
|
|
155
191
|
self,
|
|
156
192
|
request: models.DeleteForwardingRuleRequest,
|
|
@@ -277,6 +313,24 @@ class Ga2Client(AbstractClient):
|
|
|
277
313
|
|
|
278
314
|
return await self.call_and_deserialize(**kwargs)
|
|
279
315
|
|
|
316
|
+
async def DescribeForwardingPolicy(
|
|
317
|
+
self,
|
|
318
|
+
request: models.DescribeForwardingPolicyRequest,
|
|
319
|
+
opts: Dict = None,
|
|
320
|
+
) -> models.DescribeForwardingPolicyResponse:
|
|
321
|
+
"""
|
|
322
|
+
查看七层转发策略
|
|
323
|
+
"""
|
|
324
|
+
|
|
325
|
+
kwargs = {}
|
|
326
|
+
kwargs["action"] = "DescribeForwardingPolicy"
|
|
327
|
+
kwargs["params"] = request._serialize()
|
|
328
|
+
kwargs["resp_cls"] = models.DescribeForwardingPolicyResponse
|
|
329
|
+
kwargs["headers"] = request.headers
|
|
330
|
+
kwargs["opts"] = opts or {}
|
|
331
|
+
|
|
332
|
+
return await self.call_and_deserialize(**kwargs)
|
|
333
|
+
|
|
280
334
|
async def DescribeForwardingRule(
|
|
281
335
|
self,
|
|
282
336
|
request: models.DescribeForwardingRuleRequest,
|
|
@@ -385,6 +439,24 @@ class Ga2Client(AbstractClient):
|
|
|
385
439
|
|
|
386
440
|
return await self.call_and_deserialize(**kwargs)
|
|
387
441
|
|
|
442
|
+
async def ModifyForwardingPolicy(
|
|
443
|
+
self,
|
|
444
|
+
request: models.ModifyForwardingPolicyRequest,
|
|
445
|
+
opts: Dict = None,
|
|
446
|
+
) -> models.ModifyForwardingPolicyResponse:
|
|
447
|
+
"""
|
|
448
|
+
修改七层转发策略
|
|
449
|
+
"""
|
|
450
|
+
|
|
451
|
+
kwargs = {}
|
|
452
|
+
kwargs["action"] = "ModifyForwardingPolicy"
|
|
453
|
+
kwargs["params"] = request._serialize()
|
|
454
|
+
kwargs["resp_cls"] = models.ModifyForwardingPolicyResponse
|
|
455
|
+
kwargs["headers"] = request.headers
|
|
456
|
+
kwargs["opts"] = opts or {}
|
|
457
|
+
|
|
458
|
+
return await self.call_and_deserialize(**kwargs)
|
|
459
|
+
|
|
388
460
|
async def ModifyForwardingRule(
|
|
389
461
|
self,
|
|
390
462
|
request: models.ModifyForwardingRuleRequest,
|