tencentcloud-sdk-python-svp 3.0.1490__tar.gz → 3.1.26__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_svp-3.0.1490 → tencentcloud_sdk_python_svp-3.1.26}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_svp-3.0.1490 → tencentcloud_sdk_python_svp-3.1.26}/setup.py +2 -1
- {tencentcloud_sdk_python_svp-3.0.1490 → tencentcloud_sdk_python_svp-3.1.26}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_svp-3.0.1490 → tencentcloud_sdk_python_svp-3.1.26}/tencentcloud/svp/v20240125/models.py +35 -20
- tencentcloud_sdk_python_svp-3.1.26/tencentcloud/svp/v20240125/svp_client_async.py +116 -0
- {tencentcloud_sdk_python_svp-3.0.1490 → tencentcloud_sdk_python_svp-3.1.26}/tencentcloud_sdk_python_svp.egg-info/PKG-INFO +2 -2
- {tencentcloud_sdk_python_svp-3.0.1490 → tencentcloud_sdk_python_svp-3.1.26}/tencentcloud_sdk_python_svp.egg-info/SOURCES.txt +1 -0
- tencentcloud_sdk_python_svp-3.1.26/tencentcloud_sdk_python_svp.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_svp-3.0.1490/tencentcloud_sdk_python_svp.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_svp-3.0.1490 → tencentcloud_sdk_python_svp-3.1.26}/README.rst +0 -0
- {tencentcloud_sdk_python_svp-3.0.1490 → tencentcloud_sdk_python_svp-3.1.26}/setup.cfg +0 -0
- {tencentcloud_sdk_python_svp-3.0.1490 → tencentcloud_sdk_python_svp-3.1.26}/tencentcloud/svp/__init__.py +0 -0
- {tencentcloud_sdk_python_svp-3.0.1490 → tencentcloud_sdk_python_svp-3.1.26}/tencentcloud/svp/v20240125/__init__.py +0 -0
- {tencentcloud_sdk_python_svp-3.0.1490 → tencentcloud_sdk_python_svp-3.1.26}/tencentcloud/svp/v20240125/errorcodes.py +0 -0
- {tencentcloud_sdk_python_svp-3.0.1490 → tencentcloud_sdk_python_svp-3.1.26}/tencentcloud/svp/v20240125/svp_client.py +0 -0
- {tencentcloud_sdk_python_svp-3.0.1490 → tencentcloud_sdk_python_svp-3.1.26}/tencentcloud_sdk_python_svp.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_svp-3.0.1490 → tencentcloud_sdk_python_svp-3.1.26}/tencentcloud_sdk_python_svp.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-svp
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.1.26
|
|
4
4
|
Summary: Tencent Cloud Svp 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.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.26
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -8,7 +8,8 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-svp',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.26,<4.0.0"],
|
|
12
|
+
|
|
12
13
|
version=tencentcloud.__version__,
|
|
13
14
|
description='Tencent Cloud Svp SDK for Python',
|
|
14
15
|
long_description=open('README.rst').read(),
|
|
@@ -1791,27 +1791,30 @@ class SavingPlanUsageDetail(AbstractModel):
|
|
|
1791
1791
|
|
|
1792
1792
|
def __init__(self):
|
|
1793
1793
|
r"""
|
|
1794
|
-
:param
|
|
1794
|
+
:param _SpId: <p>节省计划资源id</p>
|
|
1795
|
+
:type SpId: str
|
|
1796
|
+
:param _SpType: <p>节省计划类型</p>
|
|
1795
1797
|
:type SpType: str
|
|
1796
|
-
:param _Status:
|
|
1798
|
+
:param _Status: <p>节省计划状态</p>枚举值:<ul><li> 1: 生效</li><li> 2: 失效 </li><li> 3: 作废</li></ul>
|
|
1797
1799
|
:type Status: int
|
|
1798
|
-
:param _DeductAmount:
|
|
1800
|
+
:param _DeductAmount: <p>累计抵扣的金额(单位:元)</p>
|
|
1799
1801
|
:type DeductAmount: str
|
|
1800
|
-
:param _PromiseAmount:
|
|
1802
|
+
:param _PromiseAmount: <p>累计承诺消费金额(单位:元)</p>
|
|
1801
1803
|
:type PromiseAmount: str
|
|
1802
|
-
:param _NetSavings:
|
|
1804
|
+
:param _NetSavings: <p>累计净节省金额(单位:元)</p>
|
|
1803
1805
|
:type NetSavings: str
|
|
1804
|
-
:param _UtilizationRate:
|
|
1806
|
+
:param _UtilizationRate: <p>使用率</p>
|
|
1805
1807
|
:type UtilizationRate: float
|
|
1806
|
-
:param _LossAmount:
|
|
1808
|
+
:param _LossAmount: <p>累计流失金额(单位:元)</p>
|
|
1807
1809
|
:type LossAmount: str
|
|
1808
|
-
:param _DosageAmount:
|
|
1810
|
+
:param _DosageAmount: <p>累计按量计费预期金额(单位:元)</p>
|
|
1809
1811
|
:type DosageAmount: str
|
|
1810
|
-
:param _CostAmount:
|
|
1812
|
+
:param _CostAmount: <p>累计成本金额(单位:元)</p>
|
|
1811
1813
|
:type CostAmount: str
|
|
1812
|
-
:param _Region:
|
|
1814
|
+
:param _Region: <p>地域</p>
|
|
1813
1815
|
:type Region: list of str
|
|
1814
1816
|
"""
|
|
1817
|
+
self._SpId = None
|
|
1815
1818
|
self._SpType = None
|
|
1816
1819
|
self._Status = None
|
|
1817
1820
|
self._DeductAmount = None
|
|
@@ -1823,9 +1826,20 @@ class SavingPlanUsageDetail(AbstractModel):
|
|
|
1823
1826
|
self._CostAmount = None
|
|
1824
1827
|
self._Region = None
|
|
1825
1828
|
|
|
1829
|
+
@property
|
|
1830
|
+
def SpId(self):
|
|
1831
|
+
r"""<p>节省计划资源id</p>
|
|
1832
|
+
:rtype: str
|
|
1833
|
+
"""
|
|
1834
|
+
return self._SpId
|
|
1835
|
+
|
|
1836
|
+
@SpId.setter
|
|
1837
|
+
def SpId(self, SpId):
|
|
1838
|
+
self._SpId = SpId
|
|
1839
|
+
|
|
1826
1840
|
@property
|
|
1827
1841
|
def SpType(self):
|
|
1828
|
-
r"""
|
|
1842
|
+
r"""<p>节省计划类型</p>
|
|
1829
1843
|
:rtype: str
|
|
1830
1844
|
"""
|
|
1831
1845
|
return self._SpType
|
|
@@ -1836,7 +1850,7 @@ class SavingPlanUsageDetail(AbstractModel):
|
|
|
1836
1850
|
|
|
1837
1851
|
@property
|
|
1838
1852
|
def Status(self):
|
|
1839
|
-
r"""
|
|
1853
|
+
r"""<p>节省计划状态</p>枚举值:<ul><li> 1: 生效</li><li> 2: 失效 </li><li> 3: 作废</li></ul>
|
|
1840
1854
|
:rtype: int
|
|
1841
1855
|
"""
|
|
1842
1856
|
return self._Status
|
|
@@ -1847,7 +1861,7 @@ class SavingPlanUsageDetail(AbstractModel):
|
|
|
1847
1861
|
|
|
1848
1862
|
@property
|
|
1849
1863
|
def DeductAmount(self):
|
|
1850
|
-
r"""
|
|
1864
|
+
r"""<p>累计抵扣的金额(单位:元)</p>
|
|
1851
1865
|
:rtype: str
|
|
1852
1866
|
"""
|
|
1853
1867
|
return self._DeductAmount
|
|
@@ -1858,7 +1872,7 @@ class SavingPlanUsageDetail(AbstractModel):
|
|
|
1858
1872
|
|
|
1859
1873
|
@property
|
|
1860
1874
|
def PromiseAmount(self):
|
|
1861
|
-
r"""
|
|
1875
|
+
r"""<p>累计承诺消费金额(单位:元)</p>
|
|
1862
1876
|
:rtype: str
|
|
1863
1877
|
"""
|
|
1864
1878
|
return self._PromiseAmount
|
|
@@ -1869,7 +1883,7 @@ class SavingPlanUsageDetail(AbstractModel):
|
|
|
1869
1883
|
|
|
1870
1884
|
@property
|
|
1871
1885
|
def NetSavings(self):
|
|
1872
|
-
r"""
|
|
1886
|
+
r"""<p>累计净节省金额(单位:元)</p>
|
|
1873
1887
|
:rtype: str
|
|
1874
1888
|
"""
|
|
1875
1889
|
return self._NetSavings
|
|
@@ -1880,7 +1894,7 @@ class SavingPlanUsageDetail(AbstractModel):
|
|
|
1880
1894
|
|
|
1881
1895
|
@property
|
|
1882
1896
|
def UtilizationRate(self):
|
|
1883
|
-
r"""
|
|
1897
|
+
r"""<p>使用率</p>
|
|
1884
1898
|
:rtype: float
|
|
1885
1899
|
"""
|
|
1886
1900
|
return self._UtilizationRate
|
|
@@ -1891,7 +1905,7 @@ class SavingPlanUsageDetail(AbstractModel):
|
|
|
1891
1905
|
|
|
1892
1906
|
@property
|
|
1893
1907
|
def LossAmount(self):
|
|
1894
|
-
r"""
|
|
1908
|
+
r"""<p>累计流失金额(单位:元)</p>
|
|
1895
1909
|
:rtype: str
|
|
1896
1910
|
"""
|
|
1897
1911
|
return self._LossAmount
|
|
@@ -1902,7 +1916,7 @@ class SavingPlanUsageDetail(AbstractModel):
|
|
|
1902
1916
|
|
|
1903
1917
|
@property
|
|
1904
1918
|
def DosageAmount(self):
|
|
1905
|
-
r"""
|
|
1919
|
+
r"""<p>累计按量计费预期金额(单位:元)</p>
|
|
1906
1920
|
:rtype: str
|
|
1907
1921
|
"""
|
|
1908
1922
|
return self._DosageAmount
|
|
@@ -1913,7 +1927,7 @@ class SavingPlanUsageDetail(AbstractModel):
|
|
|
1913
1927
|
|
|
1914
1928
|
@property
|
|
1915
1929
|
def CostAmount(self):
|
|
1916
|
-
r"""
|
|
1930
|
+
r"""<p>累计成本金额(单位:元)</p>
|
|
1917
1931
|
:rtype: str
|
|
1918
1932
|
"""
|
|
1919
1933
|
return self._CostAmount
|
|
@@ -1924,7 +1938,7 @@ class SavingPlanUsageDetail(AbstractModel):
|
|
|
1924
1938
|
|
|
1925
1939
|
@property
|
|
1926
1940
|
def Region(self):
|
|
1927
|
-
r"""
|
|
1941
|
+
r"""<p>地域</p>
|
|
1928
1942
|
:rtype: list of str
|
|
1929
1943
|
"""
|
|
1930
1944
|
return self._Region
|
|
@@ -1935,6 +1949,7 @@ class SavingPlanUsageDetail(AbstractModel):
|
|
|
1935
1949
|
|
|
1936
1950
|
|
|
1937
1951
|
def _deserialize(self, params):
|
|
1952
|
+
self._SpId = params.get("SpId")
|
|
1938
1953
|
self._SpType = params.get("SpType")
|
|
1939
1954
|
self._Status = params.get("Status")
|
|
1940
1955
|
self._DeductAmount = params.get("DeductAmount")
|
|
@@ -0,0 +1,116 @@
|
|
|
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.svp.v20240125 import models
|
|
20
|
+
from typing import Dict
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class SvpClient(AbstractClient):
|
|
24
|
+
_apiVersion = '2024-01-25'
|
|
25
|
+
_endpoint = 'svp.tencentcloudapi.com'
|
|
26
|
+
_service = 'svp'
|
|
27
|
+
|
|
28
|
+
async def CreateSavingPlanOrder(
|
|
29
|
+
self,
|
|
30
|
+
request: models.CreateSavingPlanOrderRequest,
|
|
31
|
+
opts: Dict = None,
|
|
32
|
+
) -> models.CreateSavingPlanOrderResponse:
|
|
33
|
+
"""
|
|
34
|
+
创建节省计划订单
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
kwargs = {}
|
|
38
|
+
kwargs["action"] = "CreateSavingPlanOrder"
|
|
39
|
+
kwargs["params"] = request._serialize()
|
|
40
|
+
kwargs["resp_cls"] = models.CreateSavingPlanOrderResponse
|
|
41
|
+
kwargs["headers"] = request.headers
|
|
42
|
+
kwargs["opts"] = opts or {}
|
|
43
|
+
|
|
44
|
+
return await self.call_and_deserialize(**kwargs)
|
|
45
|
+
|
|
46
|
+
async def DescribeSavingPlanCoverage(
|
|
47
|
+
self,
|
|
48
|
+
request: models.DescribeSavingPlanCoverageRequest,
|
|
49
|
+
opts: Dict = None,
|
|
50
|
+
) -> models.DescribeSavingPlanCoverageResponse:
|
|
51
|
+
"""
|
|
52
|
+
查询当前用户节省计划覆盖率明细数据,如无特别说明,金额单位均为元(国内站)或者美元(国际站)。
|
|
53
|
+
"""
|
|
54
|
+
|
|
55
|
+
kwargs = {}
|
|
56
|
+
kwargs["action"] = "DescribeSavingPlanCoverage"
|
|
57
|
+
kwargs["params"] = request._serialize()
|
|
58
|
+
kwargs["resp_cls"] = models.DescribeSavingPlanCoverageResponse
|
|
59
|
+
kwargs["headers"] = request.headers
|
|
60
|
+
kwargs["opts"] = opts or {}
|
|
61
|
+
|
|
62
|
+
return await self.call_and_deserialize(**kwargs)
|
|
63
|
+
|
|
64
|
+
async def DescribeSavingPlanDeduct(
|
|
65
|
+
self,
|
|
66
|
+
request: models.DescribeSavingPlanDeductRequest,
|
|
67
|
+
opts: Dict = None,
|
|
68
|
+
) -> models.DescribeSavingPlanDeductResponse:
|
|
69
|
+
"""
|
|
70
|
+
查询节省计划抵扣明细
|
|
71
|
+
"""
|
|
72
|
+
|
|
73
|
+
kwargs = {}
|
|
74
|
+
kwargs["action"] = "DescribeSavingPlanDeduct"
|
|
75
|
+
kwargs["params"] = request._serialize()
|
|
76
|
+
kwargs["resp_cls"] = models.DescribeSavingPlanDeductResponse
|
|
77
|
+
kwargs["headers"] = request.headers
|
|
78
|
+
kwargs["opts"] = opts or {}
|
|
79
|
+
|
|
80
|
+
return await self.call_and_deserialize(**kwargs)
|
|
81
|
+
|
|
82
|
+
async def DescribeSavingPlanOverview(
|
|
83
|
+
self,
|
|
84
|
+
request: models.DescribeSavingPlanOverviewRequest,
|
|
85
|
+
opts: Dict = None,
|
|
86
|
+
) -> models.DescribeSavingPlanOverviewResponse:
|
|
87
|
+
"""
|
|
88
|
+
查用当前用户明细节省计划总览查询时段内的使用情况
|
|
89
|
+
"""
|
|
90
|
+
|
|
91
|
+
kwargs = {}
|
|
92
|
+
kwargs["action"] = "DescribeSavingPlanOverview"
|
|
93
|
+
kwargs["params"] = request._serialize()
|
|
94
|
+
kwargs["resp_cls"] = models.DescribeSavingPlanOverviewResponse
|
|
95
|
+
kwargs["headers"] = request.headers
|
|
96
|
+
kwargs["opts"] = opts or {}
|
|
97
|
+
|
|
98
|
+
return await self.call_and_deserialize(**kwargs)
|
|
99
|
+
|
|
100
|
+
async def DescribeSavingPlanUsage(
|
|
101
|
+
self,
|
|
102
|
+
request: models.DescribeSavingPlanUsageRequest,
|
|
103
|
+
opts: Dict = None,
|
|
104
|
+
) -> models.DescribeSavingPlanUsageResponse:
|
|
105
|
+
"""
|
|
106
|
+
查用当前用户明细节省计划查询时段内的使用情况
|
|
107
|
+
"""
|
|
108
|
+
|
|
109
|
+
kwargs = {}
|
|
110
|
+
kwargs["action"] = "DescribeSavingPlanUsage"
|
|
111
|
+
kwargs["params"] = request._serialize()
|
|
112
|
+
kwargs["resp_cls"] = models.DescribeSavingPlanUsageResponse
|
|
113
|
+
kwargs["headers"] = request.headers
|
|
114
|
+
kwargs["opts"] = opts or {}
|
|
115
|
+
|
|
116
|
+
return await self.call_and_deserialize(**kwargs)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-svp
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.1.26
|
|
4
4
|
Summary: Tencent Cloud Svp 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.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.26
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -7,6 +7,7 @@ tencentcloud/svp/v20240125/__init__.py
|
|
|
7
7
|
tencentcloud/svp/v20240125/errorcodes.py
|
|
8
8
|
tencentcloud/svp/v20240125/models.py
|
|
9
9
|
tencentcloud/svp/v20240125/svp_client.py
|
|
10
|
+
tencentcloud/svp/v20240125/svp_client_async.py
|
|
10
11
|
tencentcloud_sdk_python_svp.egg-info/PKG-INFO
|
|
11
12
|
tencentcloud_sdk_python_svp.egg-info/SOURCES.txt
|
|
12
13
|
tencentcloud_sdk_python_svp.egg-info/dependency_links.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.26
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.0.1490
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|