tencentcloud-sdk-python-svp 3.0.1481__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.
Files changed (17) hide show
  1. {tencentcloud_sdk_python_svp-3.0.1481 → tencentcloud_sdk_python_svp-3.1.26}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_svp-3.0.1481 → tencentcloud_sdk_python_svp-3.1.26}/setup.py +2 -1
  3. {tencentcloud_sdk_python_svp-3.0.1481 → tencentcloud_sdk_python_svp-3.1.26}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_svp-3.0.1481 → tencentcloud_sdk_python_svp-3.1.26}/tencentcloud/svp/v20240125/models.py +50 -20
  5. tencentcloud_sdk_python_svp-3.1.26/tencentcloud/svp/v20240125/svp_client_async.py +116 -0
  6. {tencentcloud_sdk_python_svp-3.0.1481 → tencentcloud_sdk_python_svp-3.1.26}/tencentcloud_sdk_python_svp.egg-info/PKG-INFO +2 -2
  7. {tencentcloud_sdk_python_svp-3.0.1481 → tencentcloud_sdk_python_svp-3.1.26}/tencentcloud_sdk_python_svp.egg-info/SOURCES.txt +1 -0
  8. tencentcloud_sdk_python_svp-3.1.26/tencentcloud_sdk_python_svp.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_svp-3.0.1481/tencentcloud_sdk_python_svp.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_svp-3.0.1481 → tencentcloud_sdk_python_svp-3.1.26}/README.rst +0 -0
  11. {tencentcloud_sdk_python_svp-3.0.1481 → tencentcloud_sdk_python_svp-3.1.26}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_svp-3.0.1481 → tencentcloud_sdk_python_svp-3.1.26}/tencentcloud/svp/__init__.py +0 -0
  13. {tencentcloud_sdk_python_svp-3.0.1481 → tencentcloud_sdk_python_svp-3.1.26}/tencentcloud/svp/v20240125/__init__.py +0 -0
  14. {tencentcloud_sdk_python_svp-3.0.1481 → tencentcloud_sdk_python_svp-3.1.26}/tencentcloud/svp/v20240125/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_svp-3.0.1481 → tencentcloud_sdk_python_svp-3.1.26}/tencentcloud/svp/v20240125/svp_client.py +0 -0
  16. {tencentcloud_sdk_python_svp-3.0.1481 → tencentcloud_sdk_python_svp-3.1.26}/tencentcloud_sdk_python_svp.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_svp-3.0.1481 → 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.0.1481
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.0.1481
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.0.1481,<4.0.0"],
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(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1481'
17
+ __version__ = '3.1.26'
@@ -1603,6 +1603,8 @@ class SavingPlanOverviewDetail(AbstractModel):
1603
1603
 
1604
1604
  def __init__(self):
1605
1605
  r"""
1606
+ :param _SpId: 节省计划资源id
1607
+ :type SpId: str
1606
1608
  :param _SpType: 节省计划类型
1607
1609
  :type SpType: str
1608
1610
  :param _PayAmount: 支付金额(单位:元)
@@ -1625,6 +1627,7 @@ class SavingPlanOverviewDetail(AbstractModel):
1625
1627
  注意:此字段可能返回 null,表示取不到有效值。
1626
1628
  :type PromiseAmount: str
1627
1629
  """
1630
+ self._SpId = None
1628
1631
  self._SpType = None
1629
1632
  self._PayAmount = None
1630
1633
  self._StartTime = None
@@ -1636,6 +1639,17 @@ class SavingPlanOverviewDetail(AbstractModel):
1636
1639
  self._BuyTime = None
1637
1640
  self._PromiseAmount = None
1638
1641
 
1642
+ @property
1643
+ def SpId(self):
1644
+ r"""节省计划资源id
1645
+ :rtype: str
1646
+ """
1647
+ return self._SpId
1648
+
1649
+ @SpId.setter
1650
+ def SpId(self, SpId):
1651
+ self._SpId = SpId
1652
+
1639
1653
  @property
1640
1654
  def SpType(self):
1641
1655
  r"""节省计划类型
@@ -1749,6 +1763,7 @@ class SavingPlanOverviewDetail(AbstractModel):
1749
1763
 
1750
1764
 
1751
1765
  def _deserialize(self, params):
1766
+ self._SpId = params.get("SpId")
1752
1767
  self._SpType = params.get("SpType")
1753
1768
  self._PayAmount = params.get("PayAmount")
1754
1769
  self._StartTime = params.get("StartTime")
@@ -1776,27 +1791,30 @@ class SavingPlanUsageDetail(AbstractModel):
1776
1791
 
1777
1792
  def __init__(self):
1778
1793
  r"""
1779
- :param _SpType: 节省计划类型
1794
+ :param _SpId: <p>节省计划资源id</p>
1795
+ :type SpId: str
1796
+ :param _SpType: <p>节省计划类型</p>
1780
1797
  :type SpType: str
1781
- :param _Status: 节省计划状态
1798
+ :param _Status: <p>节省计划状态</p>枚举值:<ul><li> 1: 生效</li><li> 2: 失效 </li><li> 3: 作废</li></ul>
1782
1799
  :type Status: int
1783
- :param _DeductAmount: 累计抵扣的金额(单位:元)
1800
+ :param _DeductAmount: <p>累计抵扣的金额(单位:元)</p>
1784
1801
  :type DeductAmount: str
1785
- :param _PromiseAmount: 累计承诺消费金额(单位:元)
1802
+ :param _PromiseAmount: <p>累计承诺消费金额(单位:元)</p>
1786
1803
  :type PromiseAmount: str
1787
- :param _NetSavings: 累计净节省金额(单位:元)
1804
+ :param _NetSavings: <p>累计净节省金额(单位:元)</p>
1788
1805
  :type NetSavings: str
1789
- :param _UtilizationRate: 使用率
1806
+ :param _UtilizationRate: <p>使用率</p>
1790
1807
  :type UtilizationRate: float
1791
- :param _LossAmount: 累计流失金额(单位:元)
1808
+ :param _LossAmount: <p>累计流失金额(单位:元)</p>
1792
1809
  :type LossAmount: str
1793
- :param _DosageAmount: 累计按量计费预期金额(单位:元)
1810
+ :param _DosageAmount: <p>累计按量计费预期金额(单位:元)</p>
1794
1811
  :type DosageAmount: str
1795
- :param _CostAmount: 累计成本金额(单位:元)
1812
+ :param _CostAmount: <p>累计成本金额(单位:元)</p>
1796
1813
  :type CostAmount: str
1797
- :param _Region: 地域
1814
+ :param _Region: <p>地域</p>
1798
1815
  :type Region: list of str
1799
1816
  """
1817
+ self._SpId = None
1800
1818
  self._SpType = None
1801
1819
  self._Status = None
1802
1820
  self._DeductAmount = None
@@ -1808,9 +1826,20 @@ class SavingPlanUsageDetail(AbstractModel):
1808
1826
  self._CostAmount = None
1809
1827
  self._Region = None
1810
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
+
1811
1840
  @property
1812
1841
  def SpType(self):
1813
- r"""节省计划类型
1842
+ r"""<p>节省计划类型</p>
1814
1843
  :rtype: str
1815
1844
  """
1816
1845
  return self._SpType
@@ -1821,7 +1850,7 @@ class SavingPlanUsageDetail(AbstractModel):
1821
1850
 
1822
1851
  @property
1823
1852
  def Status(self):
1824
- r"""节省计划状态
1853
+ r"""<p>节省计划状态</p>枚举值:<ul><li> 1: 生效</li><li> 2: 失效 </li><li> 3: 作废</li></ul>
1825
1854
  :rtype: int
1826
1855
  """
1827
1856
  return self._Status
@@ -1832,7 +1861,7 @@ class SavingPlanUsageDetail(AbstractModel):
1832
1861
 
1833
1862
  @property
1834
1863
  def DeductAmount(self):
1835
- r"""累计抵扣的金额(单位:元)
1864
+ r"""<p>累计抵扣的金额(单位:元)</p>
1836
1865
  :rtype: str
1837
1866
  """
1838
1867
  return self._DeductAmount
@@ -1843,7 +1872,7 @@ class SavingPlanUsageDetail(AbstractModel):
1843
1872
 
1844
1873
  @property
1845
1874
  def PromiseAmount(self):
1846
- r"""累计承诺消费金额(单位:元)
1875
+ r"""<p>累计承诺消费金额(单位:元)</p>
1847
1876
  :rtype: str
1848
1877
  """
1849
1878
  return self._PromiseAmount
@@ -1854,7 +1883,7 @@ class SavingPlanUsageDetail(AbstractModel):
1854
1883
 
1855
1884
  @property
1856
1885
  def NetSavings(self):
1857
- r"""累计净节省金额(单位:元)
1886
+ r"""<p>累计净节省金额(单位:元)</p>
1858
1887
  :rtype: str
1859
1888
  """
1860
1889
  return self._NetSavings
@@ -1865,7 +1894,7 @@ class SavingPlanUsageDetail(AbstractModel):
1865
1894
 
1866
1895
  @property
1867
1896
  def UtilizationRate(self):
1868
- r"""使用率
1897
+ r"""<p>使用率</p>
1869
1898
  :rtype: float
1870
1899
  """
1871
1900
  return self._UtilizationRate
@@ -1876,7 +1905,7 @@ class SavingPlanUsageDetail(AbstractModel):
1876
1905
 
1877
1906
  @property
1878
1907
  def LossAmount(self):
1879
- r"""累计流失金额(单位:元)
1908
+ r"""<p>累计流失金额(单位:元)</p>
1880
1909
  :rtype: str
1881
1910
  """
1882
1911
  return self._LossAmount
@@ -1887,7 +1916,7 @@ class SavingPlanUsageDetail(AbstractModel):
1887
1916
 
1888
1917
  @property
1889
1918
  def DosageAmount(self):
1890
- r"""累计按量计费预期金额(单位:元)
1919
+ r"""<p>累计按量计费预期金额(单位:元)</p>
1891
1920
  :rtype: str
1892
1921
  """
1893
1922
  return self._DosageAmount
@@ -1898,7 +1927,7 @@ class SavingPlanUsageDetail(AbstractModel):
1898
1927
 
1899
1928
  @property
1900
1929
  def CostAmount(self):
1901
- r"""累计成本金额(单位:元)
1930
+ r"""<p>累计成本金额(单位:元)</p>
1902
1931
  :rtype: str
1903
1932
  """
1904
1933
  return self._CostAmount
@@ -1909,7 +1938,7 @@ class SavingPlanUsageDetail(AbstractModel):
1909
1938
 
1910
1939
  @property
1911
1940
  def Region(self):
1912
- r"""地域
1941
+ r"""<p>地域</p>
1913
1942
  :rtype: list of str
1914
1943
  """
1915
1944
  return self._Region
@@ -1920,6 +1949,7 @@ class SavingPlanUsageDetail(AbstractModel):
1920
1949
 
1921
1950
 
1922
1951
  def _deserialize(self, params):
1952
+ self._SpId = params.get("SpId")
1923
1953
  self._SpType = params.get("SpType")
1924
1954
  self._Status = params.get("Status")
1925
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.0.1481
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.0.1481
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.1481