tencentcloud-sdk-python-ga2 3.1.60__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.
@@ -0,0 +1,46 @@
1
+ Metadata-Version: 2.1
2
+ Name: tencentcloud-sdk-python-ga2
3
+ Version: 3.1.60
4
+ Summary: Tencent Cloud Ga2 SDK for Python
5
+ Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
+ Author: Tencent Cloud
7
+ Maintainer-email: tencentcloudapi@tencent.com
8
+ License: Apache License 2.0
9
+ Platform: any
10
+ Classifier: Development Status :: 5 - Production/Stable
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: License :: OSI Approved :: Apache Software License
13
+ Classifier: Programming Language :: Python
14
+ Classifier: Programming Language :: Python :: 2.7
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.6
17
+ Classifier: Programming Language :: Python :: 3.7
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.60
19
+
20
+ ============================
21
+ Tencent Cloud SDK for Python
22
+ ============================
23
+
24
+ Tencent Cloud Python Ga2 SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
25
+ The SDK works on Python versions:
26
+
27
+ * 2.7 and greater, including 3.x
28
+
29
+ Quick Start
30
+ -----------
31
+
32
+ First, install the library:
33
+
34
+ .. code-block:: sh
35
+
36
+ $ pip install tencentcloud-sdk-python-common
37
+ $ pip install tencentcloud-sdk-python-ga2
38
+
39
+ or download source code from github and install:
40
+
41
+ .. code-block:: sh
42
+
43
+ $ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
44
+ $ cd tencentcloud-sdk-python
45
+ $ python package.py --components common ga2
46
+
@@ -0,0 +1,27 @@
1
+ ============================
2
+ Tencent Cloud SDK for Python
3
+ ============================
4
+
5
+ Tencent Cloud Python Ga2 SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
6
+ The SDK works on Python versions:
7
+
8
+ * 2.7 and greater, including 3.x
9
+
10
+ Quick Start
11
+ -----------
12
+
13
+ First, install the library:
14
+
15
+ .. code-block:: sh
16
+
17
+ $ pip install tencentcloud-sdk-python-common
18
+ $ pip install tencentcloud-sdk-python-ga2
19
+
20
+ or download source code from github and install:
21
+
22
+ .. code-block:: sh
23
+
24
+ $ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
25
+ $ cd tencentcloud-sdk-python
26
+ $ python package.py --components common ga2
27
+
@@ -0,0 +1,7 @@
1
+ [bdist_wheel]
2
+ universal = 1
3
+
4
+ [egg_info]
5
+ tag_build =
6
+ tag_date = 0
7
+
@@ -0,0 +1,33 @@
1
+ #!/usr/bin/env python
2
+ import os
3
+ from setuptools import setup, find_packages
4
+
5
+ import tencentcloud
6
+
7
+ ROOT = os.path.dirname(__file__)
8
+
9
+ setup(
10
+ name='tencentcloud-sdk-python-ga2',
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.60,<4.0.0"],
12
+
13
+ version=tencentcloud.__version__,
14
+ description='Tencent Cloud Ga2 SDK for Python',
15
+ long_description=open('README.rst').read(),
16
+ author='Tencent Cloud',
17
+ url='https://github.com/TencentCloud/tencentcloud-sdk-python',
18
+ maintainer_email="tencentcloudapi@tencent.com",
19
+ scripts=[],
20
+ packages=find_packages(exclude=["tests*"]),
21
+ license="Apache License 2.0",
22
+ platforms='any',
23
+ classifiers=[
24
+ 'Development Status :: 5 - Production/Stable',
25
+ 'Intended Audience :: Developers',
26
+ 'License :: OSI Approved :: Apache Software License',
27
+ 'Programming Language :: Python',
28
+ 'Programming Language :: Python :: 2.7',
29
+ 'Programming Language :: Python :: 3',
30
+ 'Programming Language :: Python :: 3.6',
31
+ 'Programming Language :: Python :: 3.7',
32
+ ],
33
+ )
@@ -0,0 +1,17 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Copyright 1999-2018 Tencent Ltd.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+
17
+ __version__ = '3.1.60'
@@ -0,0 +1,21 @@
1
+ # -*- coding: utf8 -*-
2
+ # Copyright (c) 2017-2025 Tencent. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+
17
+ # 请求中传入参数 `%(key)s` 必选再 `%(value)s` 范围内。
18
+ INVALIDPARAMETER_INPUTOUTOFRANGE = 'InvalidParameter.InputOutOfRange'
19
+
20
+ # 参数 `%(parameter)s` 值 `%(value)s` 是无效的。正确且完整的值形如 `%(template)s`。
21
+ INVALIDPARAMETERVALUE_MALFORMED = 'InvalidParameterValue.Malformed'
@@ -0,0 +1,49 @@
1
+ # -*- coding: utf8 -*-
2
+ # Copyright (c) 2017-2025 Tencent. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+ import json
17
+
18
+ from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException
19
+ from tencentcloud.common.abstract_client import AbstractClient
20
+ from tencentcloud.ga2.v20250115 import models
21
+
22
+
23
+ class Ga2Client(AbstractClient):
24
+ _apiVersion = '2025-01-15'
25
+ _endpoint = 'ga2.tencentcloudapi.com'
26
+ _service = 'ga2'
27
+
28
+
29
+ def DescribeCrossBorderSettlement(self, request):
30
+ r"""查询跨境账单
31
+
32
+ :param request: Request instance for DescribeCrossBorderSettlement.
33
+ :type request: :class:`tencentcloud.ga2.v20250115.models.DescribeCrossBorderSettlementRequest`
34
+ :rtype: :class:`tencentcloud.ga2.v20250115.models.DescribeCrossBorderSettlementResponse`
35
+
36
+ """
37
+ try:
38
+ params = request._serialize()
39
+ headers = request.headers
40
+ body = self.call("DescribeCrossBorderSettlement", params, headers=headers)
41
+ response = json.loads(body)
42
+ model = models.DescribeCrossBorderSettlementResponse()
43
+ model._deserialize(response["Response"])
44
+ return model
45
+ except Exception as e:
46
+ if isinstance(e, TencentCloudSDKException):
47
+ raise
48
+ else:
49
+ raise TencentCloudSDKException(type(e).__name__, str(e))
@@ -0,0 +1,44 @@
1
+ # -*- coding: utf8 -*-
2
+ # Copyright (c) 2017-2025 Tencent. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+
17
+
18
+ from tencentcloud.common.abstract_client_async import AbstractClient
19
+ from tencentcloud.ga2.v20250115 import models
20
+ from typing import Dict
21
+
22
+
23
+ class Ga2Client(AbstractClient):
24
+ _apiVersion = '2025-01-15'
25
+ _endpoint = 'ga2.tencentcloudapi.com'
26
+ _service = 'ga2'
27
+
28
+ async def DescribeCrossBorderSettlement(
29
+ self,
30
+ request: models.DescribeCrossBorderSettlementRequest,
31
+ opts: Dict = None,
32
+ ) -> models.DescribeCrossBorderSettlementResponse:
33
+ """
34
+ 查询跨境账单
35
+ """
36
+
37
+ kwargs = {}
38
+ kwargs["action"] = "DescribeCrossBorderSettlement"
39
+ kwargs["params"] = request._serialize()
40
+ kwargs["resp_cls"] = models.DescribeCrossBorderSettlementResponse
41
+ kwargs["headers"] = request.headers
42
+ kwargs["opts"] = opts or {}
43
+
44
+ return await self.call_and_deserialize(**kwargs)
@@ -0,0 +1,142 @@
1
+ # -*- coding: utf8 -*-
2
+ # Copyright (c) 2017-2025 Tencent. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+ import warnings
17
+
18
+ from tencentcloud.common.abstract_model import AbstractModel
19
+
20
+
21
+ class DescribeCrossBorderSettlementRequest(AbstractModel):
22
+ r"""DescribeCrossBorderSettlement请求参数结构体
23
+
24
+ """
25
+
26
+ def __init__(self):
27
+ r"""
28
+ :param _GlobalAcceleratorId: 全球加速实例ID。
29
+ :type GlobalAcceleratorId: str
30
+ :param _AccelerateRegion: 加速地域。
31
+ :type AccelerateRegion: str
32
+ :param _EndpointGroupRegion: 终端节点组地域。
33
+ :type EndpointGroupRegion: str
34
+ :param _SettlementMonth: 账单年月时间。
35
+ :type SettlementMonth: int
36
+ """
37
+ self._GlobalAcceleratorId = None
38
+ self._AccelerateRegion = None
39
+ self._EndpointGroupRegion = None
40
+ self._SettlementMonth = None
41
+
42
+ @property
43
+ def GlobalAcceleratorId(self):
44
+ r"""全球加速实例ID。
45
+ :rtype: str
46
+ """
47
+ return self._GlobalAcceleratorId
48
+
49
+ @GlobalAcceleratorId.setter
50
+ def GlobalAcceleratorId(self, GlobalAcceleratorId):
51
+ self._GlobalAcceleratorId = GlobalAcceleratorId
52
+
53
+ @property
54
+ def AccelerateRegion(self):
55
+ r"""加速地域。
56
+ :rtype: str
57
+ """
58
+ return self._AccelerateRegion
59
+
60
+ @AccelerateRegion.setter
61
+ def AccelerateRegion(self, AccelerateRegion):
62
+ self._AccelerateRegion = AccelerateRegion
63
+
64
+ @property
65
+ def EndpointGroupRegion(self):
66
+ r"""终端节点组地域。
67
+ :rtype: str
68
+ """
69
+ return self._EndpointGroupRegion
70
+
71
+ @EndpointGroupRegion.setter
72
+ def EndpointGroupRegion(self, EndpointGroupRegion):
73
+ self._EndpointGroupRegion = EndpointGroupRegion
74
+
75
+ @property
76
+ def SettlementMonth(self):
77
+ r"""账单年月时间。
78
+ :rtype: int
79
+ """
80
+ return self._SettlementMonth
81
+
82
+ @SettlementMonth.setter
83
+ def SettlementMonth(self, SettlementMonth):
84
+ self._SettlementMonth = SettlementMonth
85
+
86
+
87
+ def _deserialize(self, params):
88
+ self._GlobalAcceleratorId = params.get("GlobalAcceleratorId")
89
+ self._AccelerateRegion = params.get("AccelerateRegion")
90
+ self._EndpointGroupRegion = params.get("EndpointGroupRegion")
91
+ self._SettlementMonth = params.get("SettlementMonth")
92
+ memeber_set = set(params.keys())
93
+ for name, value in vars(self).items():
94
+ property_name = name[1:]
95
+ if property_name in memeber_set:
96
+ memeber_set.remove(property_name)
97
+ if len(memeber_set) > 0:
98
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
99
+
100
+
101
+
102
+ class DescribeCrossBorderSettlementResponse(AbstractModel):
103
+ r"""DescribeCrossBorderSettlement返回参数结构体
104
+
105
+ """
106
+
107
+ def __init__(self):
108
+ r"""
109
+ :param _Traffic: 流量用量,单位是GB;精度为保留小数点6位。
110
+ :type Traffic: float
111
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
112
+ :type RequestId: str
113
+ """
114
+ self._Traffic = None
115
+ self._RequestId = None
116
+
117
+ @property
118
+ def Traffic(self):
119
+ r"""流量用量,单位是GB;精度为保留小数点6位。
120
+ :rtype: float
121
+ """
122
+ return self._Traffic
123
+
124
+ @Traffic.setter
125
+ def Traffic(self, Traffic):
126
+ self._Traffic = Traffic
127
+
128
+ @property
129
+ def RequestId(self):
130
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
131
+ :rtype: str
132
+ """
133
+ return self._RequestId
134
+
135
+ @RequestId.setter
136
+ def RequestId(self, RequestId):
137
+ self._RequestId = RequestId
138
+
139
+
140
+ def _deserialize(self, params):
141
+ self._Traffic = params.get("Traffic")
142
+ self._RequestId = params.get("RequestId")
@@ -0,0 +1,46 @@
1
+ Metadata-Version: 2.1
2
+ Name: tencentcloud-sdk-python-ga2
3
+ Version: 3.1.60
4
+ Summary: Tencent Cloud Ga2 SDK for Python
5
+ Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
+ Author: Tencent Cloud
7
+ Maintainer-email: tencentcloudapi@tencent.com
8
+ License: Apache License 2.0
9
+ Platform: any
10
+ Classifier: Development Status :: 5 - Production/Stable
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: License :: OSI Approved :: Apache Software License
13
+ Classifier: Programming Language :: Python
14
+ Classifier: Programming Language :: Python :: 2.7
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.6
17
+ Classifier: Programming Language :: Python :: 3.7
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.60
19
+
20
+ ============================
21
+ Tencent Cloud SDK for Python
22
+ ============================
23
+
24
+ Tencent Cloud Python Ga2 SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
25
+ The SDK works on Python versions:
26
+
27
+ * 2.7 and greater, including 3.x
28
+
29
+ Quick Start
30
+ -----------
31
+
32
+ First, install the library:
33
+
34
+ .. code-block:: sh
35
+
36
+ $ pip install tencentcloud-sdk-python-common
37
+ $ pip install tencentcloud-sdk-python-ga2
38
+
39
+ or download source code from github and install:
40
+
41
+ .. code-block:: sh
42
+
43
+ $ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
44
+ $ cd tencentcloud-sdk-python
45
+ $ python package.py --components common ga2
46
+
@@ -0,0 +1,15 @@
1
+ README.rst
2
+ setup.cfg
3
+ setup.py
4
+ tencentcloud/__init__.py
5
+ tencentcloud/ga2/__init__.py
6
+ tencentcloud/ga2/v20250115/__init__.py
7
+ tencentcloud/ga2/v20250115/errorcodes.py
8
+ tencentcloud/ga2/v20250115/ga2_client.py
9
+ tencentcloud/ga2/v20250115/ga2_client_async.py
10
+ tencentcloud/ga2/v20250115/models.py
11
+ tencentcloud_sdk_python_ga2.egg-info/PKG-INFO
12
+ tencentcloud_sdk_python_ga2.egg-info/SOURCES.txt
13
+ tencentcloud_sdk_python_ga2.egg-info/dependency_links.txt
14
+ tencentcloud_sdk_python_ga2.egg-info/requires.txt
15
+ tencentcloud_sdk_python_ga2.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.60