tencentcloud-sdk-python-svp 3.0.1088__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,45 @@
1
+ Metadata-Version: 1.1
2
+ Name: tencentcloud-sdk-python-svp
3
+ Version: 3.0.1088
4
+ Summary: Tencent Cloud Svp SDK for Python
5
+ Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
+ Author: Tencent Cloud
7
+ Author-email: tencentcloudapi@tencent.com
8
+ License: Apache License 2.0
9
+ Description: ============================
10
+ Tencent Cloud SDK for Python
11
+ ============================
12
+
13
+ Tencent Cloud Python Svp 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.
14
+ The SDK works on Python versions:
15
+
16
+ * 2.7 and greater, including 3.x
17
+
18
+ Quick Start
19
+ -----------
20
+
21
+ First, install the library:
22
+
23
+ .. code-block:: sh
24
+
25
+ $ pip install tencentcloud-sdk-python-common
26
+ $ pip install tencentcloud-sdk-python-svp
27
+
28
+ or download source code from github and install:
29
+
30
+ .. code-block:: sh
31
+
32
+ $ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
33
+ $ cd tencentcloud-sdk-python
34
+ $ python package.py --components common svp
35
+
36
+
37
+ Platform: any
38
+ Classifier: Development Status :: 5 - Production/Stable
39
+ Classifier: Intended Audience :: Developers
40
+ Classifier: License :: OSI Approved :: Apache Software License
41
+ Classifier: Programming Language :: Python
42
+ Classifier: Programming Language :: Python :: 2.7
43
+ Classifier: Programming Language :: Python :: 3
44
+ Classifier: Programming Language :: Python :: 3.6
45
+ Classifier: Programming Language :: Python :: 3.7
@@ -0,0 +1,27 @@
1
+ ============================
2
+ Tencent Cloud SDK for Python
3
+ ============================
4
+
5
+ Tencent Cloud Python Svp 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-svp
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 svp
27
+
@@ -0,0 +1,8 @@
1
+ [bdist_wheel]
2
+ universal = 1
3
+
4
+ [egg_info]
5
+ tag_build =
6
+ tag_date = 0
7
+ tag_svn_revision = 0
8
+
@@ -0,0 +1,32 @@
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-svp',
11
+ install_requires=["tencentcloud-sdk-python-common==3.0.1088"],
12
+ version=tencentcloud.__version__,
13
+ description='Tencent Cloud Svp SDK for Python',
14
+ long_description=open('README.rst').read(),
15
+ author='Tencent Cloud',
16
+ url='https://github.com/TencentCloud/tencentcloud-sdk-python',
17
+ maintainer_email="tencentcloudapi@tencent.com",
18
+ scripts=[],
19
+ packages=find_packages(exclude=["tests*"]),
20
+ license="Apache License 2.0",
21
+ platforms='any',
22
+ classifiers=[
23
+ 'Development Status :: 5 - Production/Stable',
24
+ 'Intended Audience :: Developers',
25
+ 'License :: OSI Approved :: Apache Software License',
26
+ 'Programming Language :: Python',
27
+ 'Programming Language :: Python :: 2.7',
28
+ 'Programming Language :: Python :: 3',
29
+ 'Programming Language :: Python :: 3.6',
30
+ 'Programming Language :: Python :: 3.7',
31
+ ],
32
+ )
@@ -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.0.1088'
@@ -0,0 +1,15 @@
1
+ # -*- coding: utf8 -*-
2
+ # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. 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
+
@@ -0,0 +1,184 @@
1
+ # -*- coding: utf8 -*-
2
+ # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. 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 CreateSavingPlanOrderRequest(AbstractModel):
22
+ """CreateSavingPlanOrder请求参数结构体
23
+
24
+ """
25
+
26
+ def __init__(self):
27
+ r"""
28
+ :param _RegionId: 地域编码
29
+ :type RegionId: int
30
+ :param _ZoneId: 区域编码
31
+ :type ZoneId: int
32
+ :param _PrePayType: 预付费类型
33
+ :type PrePayType: str
34
+ :param _TimeSpan: 时长
35
+ :type TimeSpan: int
36
+ :param _TimeUnit: 时长单位
37
+ :type TimeUnit: str
38
+ :param _CommodityCode: 商品唯一标识
39
+ :type CommodityCode: str
40
+ :param _PromiseUseAmount: 承诺时长内的小额金额(单位:元)
41
+ :type PromiseUseAmount: int
42
+ :param _SpecifyEffectTime: 节省计划的指定生效时间,若不传则为当前下单时间。传参数格式:"2023-10-01 00:00:00",仅支持指定日期的0点时刻
43
+ :type SpecifyEffectTime: str
44
+ :param _ClientToken: 可重入ID
45
+ :type ClientToken: str
46
+ """
47
+ self._RegionId = None
48
+ self._ZoneId = None
49
+ self._PrePayType = None
50
+ self._TimeSpan = None
51
+ self._TimeUnit = None
52
+ self._CommodityCode = None
53
+ self._PromiseUseAmount = None
54
+ self._SpecifyEffectTime = None
55
+ self._ClientToken = None
56
+
57
+ @property
58
+ def RegionId(self):
59
+ return self._RegionId
60
+
61
+ @RegionId.setter
62
+ def RegionId(self, RegionId):
63
+ self._RegionId = RegionId
64
+
65
+ @property
66
+ def ZoneId(self):
67
+ return self._ZoneId
68
+
69
+ @ZoneId.setter
70
+ def ZoneId(self, ZoneId):
71
+ self._ZoneId = ZoneId
72
+
73
+ @property
74
+ def PrePayType(self):
75
+ return self._PrePayType
76
+
77
+ @PrePayType.setter
78
+ def PrePayType(self, PrePayType):
79
+ self._PrePayType = PrePayType
80
+
81
+ @property
82
+ def TimeSpan(self):
83
+ return self._TimeSpan
84
+
85
+ @TimeSpan.setter
86
+ def TimeSpan(self, TimeSpan):
87
+ self._TimeSpan = TimeSpan
88
+
89
+ @property
90
+ def TimeUnit(self):
91
+ return self._TimeUnit
92
+
93
+ @TimeUnit.setter
94
+ def TimeUnit(self, TimeUnit):
95
+ self._TimeUnit = TimeUnit
96
+
97
+ @property
98
+ def CommodityCode(self):
99
+ return self._CommodityCode
100
+
101
+ @CommodityCode.setter
102
+ def CommodityCode(self, CommodityCode):
103
+ self._CommodityCode = CommodityCode
104
+
105
+ @property
106
+ def PromiseUseAmount(self):
107
+ return self._PromiseUseAmount
108
+
109
+ @PromiseUseAmount.setter
110
+ def PromiseUseAmount(self, PromiseUseAmount):
111
+ self._PromiseUseAmount = PromiseUseAmount
112
+
113
+ @property
114
+ def SpecifyEffectTime(self):
115
+ return self._SpecifyEffectTime
116
+
117
+ @SpecifyEffectTime.setter
118
+ def SpecifyEffectTime(self, SpecifyEffectTime):
119
+ self._SpecifyEffectTime = SpecifyEffectTime
120
+
121
+ @property
122
+ def ClientToken(self):
123
+ return self._ClientToken
124
+
125
+ @ClientToken.setter
126
+ def ClientToken(self, ClientToken):
127
+ self._ClientToken = ClientToken
128
+
129
+
130
+ def _deserialize(self, params):
131
+ self._RegionId = params.get("RegionId")
132
+ self._ZoneId = params.get("ZoneId")
133
+ self._PrePayType = params.get("PrePayType")
134
+ self._TimeSpan = params.get("TimeSpan")
135
+ self._TimeUnit = params.get("TimeUnit")
136
+ self._CommodityCode = params.get("CommodityCode")
137
+ self._PromiseUseAmount = params.get("PromiseUseAmount")
138
+ self._SpecifyEffectTime = params.get("SpecifyEffectTime")
139
+ self._ClientToken = params.get("ClientToken")
140
+ memeber_set = set(params.keys())
141
+ for name, value in vars(self).items():
142
+ property_name = name[1:]
143
+ if property_name in memeber_set:
144
+ memeber_set.remove(property_name)
145
+ if len(memeber_set) > 0:
146
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
147
+
148
+
149
+
150
+ class CreateSavingPlanOrderResponse(AbstractModel):
151
+ """CreateSavingPlanOrder返回参数结构体
152
+
153
+ """
154
+
155
+ def __init__(self):
156
+ r"""
157
+ :param _BigDealId: 订单号
158
+ :type BigDealId: str
159
+ :param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
160
+ :type RequestId: str
161
+ """
162
+ self._BigDealId = None
163
+ self._RequestId = None
164
+
165
+ @property
166
+ def BigDealId(self):
167
+ return self._BigDealId
168
+
169
+ @BigDealId.setter
170
+ def BigDealId(self, BigDealId):
171
+ self._BigDealId = BigDealId
172
+
173
+ @property
174
+ def RequestId(self):
175
+ return self._RequestId
176
+
177
+ @RequestId.setter
178
+ def RequestId(self, RequestId):
179
+ self._RequestId = RequestId
180
+
181
+
182
+ def _deserialize(self, params):
183
+ self._BigDealId = params.get("BigDealId")
184
+ self._RequestId = params.get("RequestId")
@@ -0,0 +1,49 @@
1
+ # -*- coding: utf8 -*-
2
+ # Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. 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.svp.v20240125 import models
21
+
22
+
23
+ class SvpClient(AbstractClient):
24
+ _apiVersion = '2024-01-25'
25
+ _endpoint = 'svp.tencentcloudapi.com'
26
+ _service = 'svp'
27
+
28
+
29
+ def CreateSavingPlanOrder(self, request):
30
+ """创建节省计划订单
31
+
32
+ :param request: Request instance for CreateSavingPlanOrder.
33
+ :type request: :class:`tencentcloud.svp.v20240125.models.CreateSavingPlanOrderRequest`
34
+ :rtype: :class:`tencentcloud.svp.v20240125.models.CreateSavingPlanOrderResponse`
35
+
36
+ """
37
+ try:
38
+ params = request._serialize()
39
+ headers = request.headers
40
+ body = self.call("CreateSavingPlanOrder", params, headers=headers)
41
+ response = json.loads(body)
42
+ model = models.CreateSavingPlanOrderResponse()
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,45 @@
1
+ Metadata-Version: 1.1
2
+ Name: tencentcloud-sdk-python-svp
3
+ Version: 3.0.1088
4
+ Summary: Tencent Cloud Svp SDK for Python
5
+ Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
+ Author: Tencent Cloud
7
+ Author-email: tencentcloudapi@tencent.com
8
+ License: Apache License 2.0
9
+ Description: ============================
10
+ Tencent Cloud SDK for Python
11
+ ============================
12
+
13
+ Tencent Cloud Python Svp 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.
14
+ The SDK works on Python versions:
15
+
16
+ * 2.7 and greater, including 3.x
17
+
18
+ Quick Start
19
+ -----------
20
+
21
+ First, install the library:
22
+
23
+ .. code-block:: sh
24
+
25
+ $ pip install tencentcloud-sdk-python-common
26
+ $ pip install tencentcloud-sdk-python-svp
27
+
28
+ or download source code from github and install:
29
+
30
+ .. code-block:: sh
31
+
32
+ $ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
33
+ $ cd tencentcloud-sdk-python
34
+ $ python package.py --components common svp
35
+
36
+
37
+ Platform: any
38
+ Classifier: Development Status :: 5 - Production/Stable
39
+ Classifier: Intended Audience :: Developers
40
+ Classifier: License :: OSI Approved :: Apache Software License
41
+ Classifier: Programming Language :: Python
42
+ Classifier: Programming Language :: Python :: 2.7
43
+ Classifier: Programming Language :: Python :: 3
44
+ Classifier: Programming Language :: Python :: 3.6
45
+ Classifier: Programming Language :: Python :: 3.7
@@ -0,0 +1,14 @@
1
+ README.rst
2
+ setup.cfg
3
+ setup.py
4
+ tencentcloud/__init__.py
5
+ tencentcloud/svp/__init__.py
6
+ tencentcloud/svp/v20240125/__init__.py
7
+ tencentcloud/svp/v20240125/errorcodes.py
8
+ tencentcloud/svp/v20240125/models.py
9
+ tencentcloud/svp/v20240125/svp_client.py
10
+ tencentcloud_sdk_python_svp.egg-info/PKG-INFO
11
+ tencentcloud_sdk_python_svp.egg-info/SOURCES.txt
12
+ tencentcloud_sdk_python_svp.egg-info/dependency_links.txt
13
+ tencentcloud_sdk_python_svp.egg-info/requires.txt
14
+ tencentcloud_sdk_python_svp.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common==3.0.1088