tencentcloud-sdk-python-ga2 3.1.60__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.
- tencentcloud/__init__.py +17 -0
- tencentcloud/ga2/__init__.py +0 -0
- tencentcloud/ga2/v20250115/__init__.py +0 -0
- tencentcloud/ga2/v20250115/errorcodes.py +21 -0
- tencentcloud/ga2/v20250115/ga2_client.py +49 -0
- tencentcloud/ga2/v20250115/ga2_client_async.py +44 -0
- tencentcloud/ga2/v20250115/models.py +142 -0
- tencentcloud_sdk_python_ga2-3.1.60.dist-info/METADATA +46 -0
- tencentcloud_sdk_python_ga2-3.1.60.dist-info/RECORD +11 -0
- tencentcloud_sdk_python_ga2-3.1.60.dist-info/WHEEL +6 -0
- tencentcloud_sdk_python_ga2-3.1.60.dist-info/top_level.txt +1 -0
tencentcloud/__init__.py
ADDED
|
@@ -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'
|
|
File without changes
|
|
File without changes
|
|
@@ -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,11 @@
|
|
|
1
|
+
tencentcloud/__init__.py,sha256=h8Tll_32rBqRWfDumBS3Fjmg5m5610VP3r_G07lcFns,629
|
|
2
|
+
tencentcloud/ga2/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
+
tencentcloud/ga2/v20250115/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
tencentcloud/ga2/v20250115/errorcodes.py,sha256=kKRtMfIgMYDN9zIYLbCo2tlKb1tVNf9BPmhnLUrGJ9A,936
|
|
5
|
+
tencentcloud/ga2/v20250115/ga2_client.py,sha256=PM-djzR5mo9w9J43lqerMUOJiOWEN26Bpy4_hle5IFc,1912
|
|
6
|
+
tencentcloud/ga2/v20250115/ga2_client_async.py,sha256=M9CcE9ygrMpZOAz7IUjglKQuSs7YC36UHP3aNUsjZ1g,1517
|
|
7
|
+
tencentcloud/ga2/v20250115/models.py,sha256=k7ziMoQ2AXKfulfjcZyBXsPBsw7NcYRKM5IAhYMOfJA,4655
|
|
8
|
+
tencentcloud_sdk_python_ga2-3.1.60.dist-info/METADATA,sha256=DK2qqqZrbE0WNsWNIoORLtkXf2Y4rZwtBzVXx40_5OM,1495
|
|
9
|
+
tencentcloud_sdk_python_ga2-3.1.60.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
|
|
10
|
+
tencentcloud_sdk_python_ga2-3.1.60.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
11
|
+
tencentcloud_sdk_python_ga2-3.1.60.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud
|