tencentcloud-sdk-python-billing 3.1.18__tar.gz → 3.1.19__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_billing-3.1.18 → tencentcloud_sdk_python_billing-3.1.19}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_billing-3.1.18 → tencentcloud_sdk_python_billing-3.1.19}/setup.py +1 -1
  3. {tencentcloud_sdk_python_billing-3.1.18 → tencentcloud_sdk_python_billing-3.1.19}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_billing-3.1.18 → tencentcloud_sdk_python_billing-3.1.19}/tencentcloud/billing/v20180709/billing_client.py +23 -0
  5. {tencentcloud_sdk_python_billing-3.1.18 → tencentcloud_sdk_python_billing-3.1.19}/tencentcloud/billing/v20180709/billing_client_async.py +18 -0
  6. {tencentcloud_sdk_python_billing-3.1.18 → tencentcloud_sdk_python_billing-3.1.19}/tencentcloud/billing/v20180709/models.py +146 -0
  7. {tencentcloud_sdk_python_billing-3.1.18 → tencentcloud_sdk_python_billing-3.1.19}/tencentcloud_sdk_python_billing.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_billing-3.1.19/tencentcloud_sdk_python_billing.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_billing-3.1.18/tencentcloud_sdk_python_billing.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_billing-3.1.18 → tencentcloud_sdk_python_billing-3.1.19}/README.rst +0 -0
  11. {tencentcloud_sdk_python_billing-3.1.18 → tencentcloud_sdk_python_billing-3.1.19}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_billing-3.1.18 → tencentcloud_sdk_python_billing-3.1.19}/tencentcloud/billing/__init__.py +0 -0
  13. {tencentcloud_sdk_python_billing-3.1.18 → tencentcloud_sdk_python_billing-3.1.19}/tencentcloud/billing/v20180709/__init__.py +0 -0
  14. {tencentcloud_sdk_python_billing-3.1.18 → tencentcloud_sdk_python_billing-3.1.19}/tencentcloud/billing/v20180709/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_billing-3.1.18 → tencentcloud_sdk_python_billing-3.1.19}/tencentcloud_sdk_python_billing.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_billing-3.1.18 → tencentcloud_sdk_python_billing-3.1.19}/tencentcloud_sdk_python_billing.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_billing-3.1.18 → tencentcloud_sdk_python_billing-3.1.19}/tencentcloud_sdk_python_billing.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-billing
3
- Version: 3.1.18
3
+ Version: 3.1.19
4
4
  Summary: Tencent Cloud Billing 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.1.18
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.19
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-billing',
11
- install_requires=["tencentcloud-sdk-python-common>=3.1.18,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.19,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Billing SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.18'
17
+ __version__ = '3.1.19'
@@ -1114,6 +1114,29 @@ class BillingClient(AbstractClient):
1114
1114
  raise TencentCloudSDKException(type(e).__name__, str(e))
1115
1115
 
1116
1116
 
1117
+ def DescribeCostSummaryByTag(self, request):
1118
+ r"""获取按标签汇总消耗详情
1119
+
1120
+ :param request: Request instance for DescribeCostSummaryByTag.
1121
+ :type request: :class:`tencentcloud.billing.v20180709.models.DescribeCostSummaryByTagRequest`
1122
+ :rtype: :class:`tencentcloud.billing.v20180709.models.DescribeCostSummaryByTagResponse`
1123
+
1124
+ """
1125
+ try:
1126
+ params = request._serialize()
1127
+ headers = request.headers
1128
+ body = self.call("DescribeCostSummaryByTag", params, headers=headers)
1129
+ response = json.loads(body)
1130
+ model = models.DescribeCostSummaryByTagResponse()
1131
+ model._deserialize(response["Response"])
1132
+ return model
1133
+ except Exception as e:
1134
+ if isinstance(e, TencentCloudSDKException):
1135
+ raise
1136
+ else:
1137
+ raise TencentCloudSDKException(type(e).__name__, str(e))
1138
+
1139
+
1117
1140
  def DescribeDealsByCond(self, request):
1118
1141
  r"""查询订单
1119
1142
 
@@ -878,6 +878,24 @@ class BillingClient(AbstractClient):
878
878
 
879
879
  return await self.call_and_deserialize(**kwargs)
880
880
 
881
+ async def DescribeCostSummaryByTag(
882
+ self,
883
+ request: models.DescribeCostSummaryByTagRequest,
884
+ opts: Dict = None,
885
+ ) -> models.DescribeCostSummaryByTagResponse:
886
+ """
887
+ 获取按标签汇总消耗详情
888
+ """
889
+
890
+ kwargs = {}
891
+ kwargs["action"] = "DescribeCostSummaryByTag"
892
+ kwargs["params"] = request._serialize()
893
+ kwargs["resp_cls"] = models.DescribeCostSummaryByTagResponse
894
+ kwargs["headers"] = request.headers
895
+ kwargs["opts"] = opts or {}
896
+
897
+ return await self.call_and_deserialize(**kwargs)
898
+
881
899
  async def DescribeDealsByCond(
882
900
  self,
883
901
  request: models.DescribeDealsByCondRequest,
@@ -25403,6 +25403,152 @@ class DescribeCostSummaryByResourceResponse(AbstractModel):
25403
25403
  self._RequestId = params.get("RequestId")
25404
25404
 
25405
25405
 
25406
+ class DescribeCostSummaryByTagRequest(AbstractModel):
25407
+ r"""DescribeCostSummaryByTag请求参数结构体
25408
+
25409
+ """
25410
+
25411
+ def __init__(self):
25412
+ r"""
25413
+ :param _BeginTime: 目前必须和EndTime相同月份,不支持跨月查询,且查询结果是整月数据,例如 BeginTime为2025-12,EndTime 为 2025-12,查询结果是 2025 年 12 月数据。
25414
+ :type BeginTime: str
25415
+ :param _EndTime: 目前必须和BeginTime为相同月份,不支持跨月查询,且查询结果是整月数据,例如 BeginTime为2025-12,EndTime 为 2025-12,查询结果是 2025 年 12 月数据。
25416
+ :type EndTime: str
25417
+ :param _TagKey: 分账标签键,用户自定义
25418
+ :type TagKey: str
25419
+ """
25420
+ self._BeginTime = None
25421
+ self._EndTime = None
25422
+ self._TagKey = None
25423
+
25424
+ @property
25425
+ def BeginTime(self):
25426
+ r"""目前必须和EndTime相同月份,不支持跨月查询,且查询结果是整月数据,例如 BeginTime为2025-12,EndTime 为 2025-12,查询结果是 2025 年 12 月数据。
25427
+ :rtype: str
25428
+ """
25429
+ return self._BeginTime
25430
+
25431
+ @BeginTime.setter
25432
+ def BeginTime(self, BeginTime):
25433
+ self._BeginTime = BeginTime
25434
+
25435
+ @property
25436
+ def EndTime(self):
25437
+ r"""目前必须和BeginTime为相同月份,不支持跨月查询,且查询结果是整月数据,例如 BeginTime为2025-12,EndTime 为 2025-12,查询结果是 2025 年 12 月数据。
25438
+ :rtype: str
25439
+ """
25440
+ return self._EndTime
25441
+
25442
+ @EndTime.setter
25443
+ def EndTime(self, EndTime):
25444
+ self._EndTime = EndTime
25445
+
25446
+ @property
25447
+ def TagKey(self):
25448
+ r"""分账标签键,用户自定义
25449
+ :rtype: str
25450
+ """
25451
+ return self._TagKey
25452
+
25453
+ @TagKey.setter
25454
+ def TagKey(self, TagKey):
25455
+ self._TagKey = TagKey
25456
+
25457
+
25458
+ def _deserialize(self, params):
25459
+ self._BeginTime = params.get("BeginTime")
25460
+ self._EndTime = params.get("EndTime")
25461
+ self._TagKey = params.get("TagKey")
25462
+ memeber_set = set(params.keys())
25463
+ for name, value in vars(self).items():
25464
+ property_name = name[1:]
25465
+ if property_name in memeber_set:
25466
+ memeber_set.remove(property_name)
25467
+ if len(memeber_set) > 0:
25468
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
25469
+
25470
+
25471
+
25472
+ class DescribeCostSummaryByTagResponse(AbstractModel):
25473
+ r"""DescribeCostSummaryByTag返回参数结构体
25474
+
25475
+ """
25476
+
25477
+ def __init__(self):
25478
+ r"""
25479
+ :param _Ready: 数据是否准备好,0准备中,1已就绪。
25480
+ :type Ready: int
25481
+ :param _SummaryOverview: 各标签值消耗分布详情
25482
+ :type SummaryOverview: list of TagSummaryOverviewItem
25483
+ :param _SummaryTotal: 总计
25484
+ :type SummaryTotal: :class:`tencentcloud.billing.v20180709.models.SummaryTotal`
25485
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
25486
+ :type RequestId: str
25487
+ """
25488
+ self._Ready = None
25489
+ self._SummaryOverview = None
25490
+ self._SummaryTotal = None
25491
+ self._RequestId = None
25492
+
25493
+ @property
25494
+ def Ready(self):
25495
+ r"""数据是否准备好,0准备中,1已就绪。
25496
+ :rtype: int
25497
+ """
25498
+ return self._Ready
25499
+
25500
+ @Ready.setter
25501
+ def Ready(self, Ready):
25502
+ self._Ready = Ready
25503
+
25504
+ @property
25505
+ def SummaryOverview(self):
25506
+ r"""各标签值消耗分布详情
25507
+ :rtype: list of TagSummaryOverviewItem
25508
+ """
25509
+ return self._SummaryOverview
25510
+
25511
+ @SummaryOverview.setter
25512
+ def SummaryOverview(self, SummaryOverview):
25513
+ self._SummaryOverview = SummaryOverview
25514
+
25515
+ @property
25516
+ def SummaryTotal(self):
25517
+ r"""总计
25518
+ :rtype: :class:`tencentcloud.billing.v20180709.models.SummaryTotal`
25519
+ """
25520
+ return self._SummaryTotal
25521
+
25522
+ @SummaryTotal.setter
25523
+ def SummaryTotal(self, SummaryTotal):
25524
+ self._SummaryTotal = SummaryTotal
25525
+
25526
+ @property
25527
+ def RequestId(self):
25528
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
25529
+ :rtype: str
25530
+ """
25531
+ return self._RequestId
25532
+
25533
+ @RequestId.setter
25534
+ def RequestId(self, RequestId):
25535
+ self._RequestId = RequestId
25536
+
25537
+
25538
+ def _deserialize(self, params):
25539
+ self._Ready = params.get("Ready")
25540
+ if params.get("SummaryOverview") is not None:
25541
+ self._SummaryOverview = []
25542
+ for item in params.get("SummaryOverview"):
25543
+ obj = TagSummaryOverviewItem()
25544
+ obj._deserialize(item)
25545
+ self._SummaryOverview.append(obj)
25546
+ if params.get("SummaryTotal") is not None:
25547
+ self._SummaryTotal = SummaryTotal()
25548
+ self._SummaryTotal._deserialize(params.get("SummaryTotal"))
25549
+ self._RequestId = params.get("RequestId")
25550
+
25551
+
25406
25552
  class DescribeDealsByCondRequest(AbstractModel):
25407
25553
  r"""DescribeDealsByCond请求参数结构体
25408
25554
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-billing
3
- Version: 3.1.18
3
+ Version: 3.1.19
4
4
  Summary: Tencent Cloud Billing 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.1.18
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.19
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.19
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.18