tencentcloud-sdk-python-billing 3.1.38__tar.gz → 3.1.41__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_billing-3.1.38 → tencentcloud_sdk_python_billing-3.1.41}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_billing-3.1.38 → tencentcloud_sdk_python_billing-3.1.41}/setup.py +1 -1
- {tencentcloud_sdk_python_billing-3.1.38 → tencentcloud_sdk_python_billing-3.1.41}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_billing-3.1.38 → tencentcloud_sdk_python_billing-3.1.41}/tencentcloud/billing/v20180709/billing_client.py +26 -0
- {tencentcloud_sdk_python_billing-3.1.38 → tencentcloud_sdk_python_billing-3.1.41}/tencentcloud/billing/v20180709/billing_client_async.py +21 -0
- {tencentcloud_sdk_python_billing-3.1.38 → tencentcloud_sdk_python_billing-3.1.41}/tencentcloud/billing/v20180709/models.py +247 -0
- {tencentcloud_sdk_python_billing-3.1.38 → tencentcloud_sdk_python_billing-3.1.41}/tencentcloud_sdk_python_billing.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_billing-3.1.41/tencentcloud_sdk_python_billing.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_billing-3.1.38/tencentcloud_sdk_python_billing.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_billing-3.1.38 → tencentcloud_sdk_python_billing-3.1.41}/README.rst +0 -0
- {tencentcloud_sdk_python_billing-3.1.38 → tencentcloud_sdk_python_billing-3.1.41}/setup.cfg +0 -0
- {tencentcloud_sdk_python_billing-3.1.38 → tencentcloud_sdk_python_billing-3.1.41}/tencentcloud/billing/__init__.py +0 -0
- {tencentcloud_sdk_python_billing-3.1.38 → tencentcloud_sdk_python_billing-3.1.41}/tencentcloud/billing/v20180709/__init__.py +0 -0
- {tencentcloud_sdk_python_billing-3.1.38 → tencentcloud_sdk_python_billing-3.1.41}/tencentcloud/billing/v20180709/errorcodes.py +0 -0
- {tencentcloud_sdk_python_billing-3.1.38 → tencentcloud_sdk_python_billing-3.1.41}/tencentcloud_sdk_python_billing.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_billing-3.1.38 → tencentcloud_sdk_python_billing-3.1.41}/tencentcloud_sdk_python_billing.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_billing-3.1.38 → tencentcloud_sdk_python_billing-3.1.41}/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.
|
|
3
|
+
Version: 3.1.41
|
|
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
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.41
|
|
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.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.41,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Billing SDK for Python',
|
|
@@ -1569,6 +1569,32 @@ class BillingClient(AbstractClient):
|
|
|
1569
1569
|
model = models.RenewInstanceResponse()
|
|
1570
1570
|
model._deserialize(response["Response"])
|
|
1571
1571
|
return model
|
|
1572
|
+
except Exception as e:
|
|
1573
|
+
if isinstance(e, TencentCloudSDKException):
|
|
1574
|
+
raise
|
|
1575
|
+
else:
|
|
1576
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1577
|
+
|
|
1578
|
+
|
|
1579
|
+
def SetRenewal(self, request):
|
|
1580
|
+
r"""注意事项:
|
|
1581
|
+
1、本接口支持对包年包月实例设置自动续费模式及周期
|
|
1582
|
+
2、可通过实例查询接口获取到产品编码、地域编码
|
|
1583
|
+
3、子用户使用该接口时,应具备QcloudFinanceRenewManageFullAccess权限策略。
|
|
1584
|
+
|
|
1585
|
+
:param request: Request instance for SetRenewal.
|
|
1586
|
+
:type request: :class:`tencentcloud.billing.v20180709.models.SetRenewalRequest`
|
|
1587
|
+
:rtype: :class:`tencentcloud.billing.v20180709.models.SetRenewalResponse`
|
|
1588
|
+
|
|
1589
|
+
"""
|
|
1590
|
+
try:
|
|
1591
|
+
params = request._serialize()
|
|
1592
|
+
headers = request.headers
|
|
1593
|
+
body = self.call("SetRenewal", params, headers=headers)
|
|
1594
|
+
response = json.loads(body)
|
|
1595
|
+
model = models.SetRenewalResponse()
|
|
1596
|
+
model._deserialize(response["Response"])
|
|
1597
|
+
return model
|
|
1572
1598
|
except Exception as e:
|
|
1573
1599
|
if isinstance(e, TencentCloudSDKException):
|
|
1574
1600
|
raise
|
|
@@ -1238,4 +1238,25 @@ class BillingClient(AbstractClient):
|
|
|
1238
1238
|
kwargs["headers"] = request.headers
|
|
1239
1239
|
kwargs["opts"] = opts or {}
|
|
1240
1240
|
|
|
1241
|
+
return await self.call_and_deserialize(**kwargs)
|
|
1242
|
+
|
|
1243
|
+
async def SetRenewal(
|
|
1244
|
+
self,
|
|
1245
|
+
request: models.SetRenewalRequest,
|
|
1246
|
+
opts: Dict = None,
|
|
1247
|
+
) -> models.SetRenewalResponse:
|
|
1248
|
+
"""
|
|
1249
|
+
注意事项:
|
|
1250
|
+
1、本接口支持对包年包月实例设置自动续费模式及周期
|
|
1251
|
+
2、可通过实例查询接口获取到产品编码、地域编码
|
|
1252
|
+
3、子用户使用该接口时,应具备QcloudFinanceRenewManageFullAccess权限策略。
|
|
1253
|
+
"""
|
|
1254
|
+
|
|
1255
|
+
kwargs = {}
|
|
1256
|
+
kwargs["action"] = "SetRenewal"
|
|
1257
|
+
kwargs["params"] = request._serialize()
|
|
1258
|
+
kwargs["resp_cls"] = models.SetRenewalResponse
|
|
1259
|
+
kwargs["headers"] = request.headers
|
|
1260
|
+
kwargs["opts"] = opts or {}
|
|
1261
|
+
|
|
1241
1262
|
return await self.call_and_deserialize(**kwargs)
|
|
@@ -30606,6 +30606,78 @@ class ModifyGatherRuleResponse(AbstractModel):
|
|
|
30606
30606
|
self._RequestId = params.get("RequestId")
|
|
30607
30607
|
|
|
30608
30608
|
|
|
30609
|
+
class OperateRsp(AbstractModel):
|
|
30610
|
+
r"""资源操作返回详情
|
|
30611
|
+
|
|
30612
|
+
"""
|
|
30613
|
+
|
|
30614
|
+
def __init__(self):
|
|
30615
|
+
r"""
|
|
30616
|
+
:param _Code: 实例维度操作失败code码
|
|
30617
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30618
|
+
:type Code: int
|
|
30619
|
+
:param _Message: 资源操作失败原因
|
|
30620
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30621
|
+
:type Message: str
|
|
30622
|
+
:param _InstanceId: 实例ID
|
|
30623
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30624
|
+
:type InstanceId: str
|
|
30625
|
+
"""
|
|
30626
|
+
self._Code = None
|
|
30627
|
+
self._Message = None
|
|
30628
|
+
self._InstanceId = None
|
|
30629
|
+
|
|
30630
|
+
@property
|
|
30631
|
+
def Code(self):
|
|
30632
|
+
r"""实例维度操作失败code码
|
|
30633
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30634
|
+
:rtype: int
|
|
30635
|
+
"""
|
|
30636
|
+
return self._Code
|
|
30637
|
+
|
|
30638
|
+
@Code.setter
|
|
30639
|
+
def Code(self, Code):
|
|
30640
|
+
self._Code = Code
|
|
30641
|
+
|
|
30642
|
+
@property
|
|
30643
|
+
def Message(self):
|
|
30644
|
+
r"""资源操作失败原因
|
|
30645
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30646
|
+
:rtype: str
|
|
30647
|
+
"""
|
|
30648
|
+
return self._Message
|
|
30649
|
+
|
|
30650
|
+
@Message.setter
|
|
30651
|
+
def Message(self, Message):
|
|
30652
|
+
self._Message = Message
|
|
30653
|
+
|
|
30654
|
+
@property
|
|
30655
|
+
def InstanceId(self):
|
|
30656
|
+
r"""实例ID
|
|
30657
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30658
|
+
:rtype: str
|
|
30659
|
+
"""
|
|
30660
|
+
return self._InstanceId
|
|
30661
|
+
|
|
30662
|
+
@InstanceId.setter
|
|
30663
|
+
def InstanceId(self, InstanceId):
|
|
30664
|
+
self._InstanceId = InstanceId
|
|
30665
|
+
|
|
30666
|
+
|
|
30667
|
+
def _deserialize(self, params):
|
|
30668
|
+
self._Code = params.get("Code")
|
|
30669
|
+
self._Message = params.get("Message")
|
|
30670
|
+
self._InstanceId = params.get("InstanceId")
|
|
30671
|
+
memeber_set = set(params.keys())
|
|
30672
|
+
for name, value in vars(self).items():
|
|
30673
|
+
property_name = name[1:]
|
|
30674
|
+
if property_name in memeber_set:
|
|
30675
|
+
memeber_set.remove(property_name)
|
|
30676
|
+
if len(memeber_set) > 0:
|
|
30677
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
30678
|
+
|
|
30679
|
+
|
|
30680
|
+
|
|
30609
30681
|
class OrderDto(AbstractModel):
|
|
30610
30682
|
r"""字段排序
|
|
30611
30683
|
|
|
@@ -31951,6 +32023,181 @@ class RenewInstanceResponse(AbstractModel):
|
|
|
31951
32023
|
self._RequestId = params.get("RequestId")
|
|
31952
32024
|
|
|
31953
32025
|
|
|
32026
|
+
class SetRenewalRequest(AbstractModel):
|
|
32027
|
+
r"""SetRenewal请求参数结构体
|
|
32028
|
+
|
|
32029
|
+
"""
|
|
32030
|
+
|
|
32031
|
+
def __init__(self):
|
|
32032
|
+
r"""
|
|
32033
|
+
:param _ProductCode: 产品编码。
|
|
32034
|
+
:type ProductCode: str
|
|
32035
|
+
:param _RegionCode: 地域编码。
|
|
32036
|
+
:type RegionCode: str
|
|
32037
|
+
:param _InstanceId: 实例ID,仅支持指定一个。
|
|
32038
|
+
:type InstanceId: str
|
|
32039
|
+
:param _RenewFlag: 续费标识。枚举值如下:
|
|
32040
|
+
NOTIFY_AND_MANUAL_RENEW:手动续费
|
|
32041
|
+
NOTIFY_AND_AUTO_RENEW:自动续费
|
|
32042
|
+
DISABLE_NOTIFY_AND_MANUAL_RENEW:到期不续
|
|
32043
|
+
:type RenewFlag: str
|
|
32044
|
+
:param _RenewPeriod: 自动续费周期长度,不填写时默认按产品侧设置的默认值
|
|
32045
|
+
如果是月,支持:1-11
|
|
32046
|
+
如果是年,支持:1-5
|
|
32047
|
+
实际按产品侧支持的范围为主
|
|
32048
|
+
:type RenewPeriod: str
|
|
32049
|
+
:param _RenewPeriodUnit: 自动续费周期单位,不填写时默认按产品侧设置的默认值
|
|
32050
|
+
y 年,m 月
|
|
32051
|
+
实际按产品侧支持的范围为主
|
|
32052
|
+
:type RenewPeriodUnit: str
|
|
32053
|
+
"""
|
|
32054
|
+
self._ProductCode = None
|
|
32055
|
+
self._RegionCode = None
|
|
32056
|
+
self._InstanceId = None
|
|
32057
|
+
self._RenewFlag = None
|
|
32058
|
+
self._RenewPeriod = None
|
|
32059
|
+
self._RenewPeriodUnit = None
|
|
32060
|
+
|
|
32061
|
+
@property
|
|
32062
|
+
def ProductCode(self):
|
|
32063
|
+
r"""产品编码。
|
|
32064
|
+
:rtype: str
|
|
32065
|
+
"""
|
|
32066
|
+
return self._ProductCode
|
|
32067
|
+
|
|
32068
|
+
@ProductCode.setter
|
|
32069
|
+
def ProductCode(self, ProductCode):
|
|
32070
|
+
self._ProductCode = ProductCode
|
|
32071
|
+
|
|
32072
|
+
@property
|
|
32073
|
+
def RegionCode(self):
|
|
32074
|
+
r"""地域编码。
|
|
32075
|
+
:rtype: str
|
|
32076
|
+
"""
|
|
32077
|
+
return self._RegionCode
|
|
32078
|
+
|
|
32079
|
+
@RegionCode.setter
|
|
32080
|
+
def RegionCode(self, RegionCode):
|
|
32081
|
+
self._RegionCode = RegionCode
|
|
32082
|
+
|
|
32083
|
+
@property
|
|
32084
|
+
def InstanceId(self):
|
|
32085
|
+
r"""实例ID,仅支持指定一个。
|
|
32086
|
+
:rtype: str
|
|
32087
|
+
"""
|
|
32088
|
+
return self._InstanceId
|
|
32089
|
+
|
|
32090
|
+
@InstanceId.setter
|
|
32091
|
+
def InstanceId(self, InstanceId):
|
|
32092
|
+
self._InstanceId = InstanceId
|
|
32093
|
+
|
|
32094
|
+
@property
|
|
32095
|
+
def RenewFlag(self):
|
|
32096
|
+
r"""续费标识。枚举值如下:
|
|
32097
|
+
NOTIFY_AND_MANUAL_RENEW:手动续费
|
|
32098
|
+
NOTIFY_AND_AUTO_RENEW:自动续费
|
|
32099
|
+
DISABLE_NOTIFY_AND_MANUAL_RENEW:到期不续
|
|
32100
|
+
:rtype: str
|
|
32101
|
+
"""
|
|
32102
|
+
return self._RenewFlag
|
|
32103
|
+
|
|
32104
|
+
@RenewFlag.setter
|
|
32105
|
+
def RenewFlag(self, RenewFlag):
|
|
32106
|
+
self._RenewFlag = RenewFlag
|
|
32107
|
+
|
|
32108
|
+
@property
|
|
32109
|
+
def RenewPeriod(self):
|
|
32110
|
+
r"""自动续费周期长度,不填写时默认按产品侧设置的默认值
|
|
32111
|
+
如果是月,支持:1-11
|
|
32112
|
+
如果是年,支持:1-5
|
|
32113
|
+
实际按产品侧支持的范围为主
|
|
32114
|
+
:rtype: str
|
|
32115
|
+
"""
|
|
32116
|
+
return self._RenewPeriod
|
|
32117
|
+
|
|
32118
|
+
@RenewPeriod.setter
|
|
32119
|
+
def RenewPeriod(self, RenewPeriod):
|
|
32120
|
+
self._RenewPeriod = RenewPeriod
|
|
32121
|
+
|
|
32122
|
+
@property
|
|
32123
|
+
def RenewPeriodUnit(self):
|
|
32124
|
+
r"""自动续费周期单位,不填写时默认按产品侧设置的默认值
|
|
32125
|
+
y 年,m 月
|
|
32126
|
+
实际按产品侧支持的范围为主
|
|
32127
|
+
:rtype: str
|
|
32128
|
+
"""
|
|
32129
|
+
return self._RenewPeriodUnit
|
|
32130
|
+
|
|
32131
|
+
@RenewPeriodUnit.setter
|
|
32132
|
+
def RenewPeriodUnit(self, RenewPeriodUnit):
|
|
32133
|
+
self._RenewPeriodUnit = RenewPeriodUnit
|
|
32134
|
+
|
|
32135
|
+
|
|
32136
|
+
def _deserialize(self, params):
|
|
32137
|
+
self._ProductCode = params.get("ProductCode")
|
|
32138
|
+
self._RegionCode = params.get("RegionCode")
|
|
32139
|
+
self._InstanceId = params.get("InstanceId")
|
|
32140
|
+
self._RenewFlag = params.get("RenewFlag")
|
|
32141
|
+
self._RenewPeriod = params.get("RenewPeriod")
|
|
32142
|
+
self._RenewPeriodUnit = params.get("RenewPeriodUnit")
|
|
32143
|
+
memeber_set = set(params.keys())
|
|
32144
|
+
for name, value in vars(self).items():
|
|
32145
|
+
property_name = name[1:]
|
|
32146
|
+
if property_name in memeber_set:
|
|
32147
|
+
memeber_set.remove(property_name)
|
|
32148
|
+
if len(memeber_set) > 0:
|
|
32149
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
32150
|
+
|
|
32151
|
+
|
|
32152
|
+
|
|
32153
|
+
class SetRenewalResponse(AbstractModel):
|
|
32154
|
+
r"""SetRenewal返回参数结构体
|
|
32155
|
+
|
|
32156
|
+
"""
|
|
32157
|
+
|
|
32158
|
+
def __init__(self):
|
|
32159
|
+
r"""
|
|
32160
|
+
:param _InstanceList: 操作失败时的实例列表。
|
|
32161
|
+
:type InstanceList: list of OperateRsp
|
|
32162
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
32163
|
+
:type RequestId: str
|
|
32164
|
+
"""
|
|
32165
|
+
self._InstanceList = None
|
|
32166
|
+
self._RequestId = None
|
|
32167
|
+
|
|
32168
|
+
@property
|
|
32169
|
+
def InstanceList(self):
|
|
32170
|
+
r"""操作失败时的实例列表。
|
|
32171
|
+
:rtype: list of OperateRsp
|
|
32172
|
+
"""
|
|
32173
|
+
return self._InstanceList
|
|
32174
|
+
|
|
32175
|
+
@InstanceList.setter
|
|
32176
|
+
def InstanceList(self, InstanceList):
|
|
32177
|
+
self._InstanceList = InstanceList
|
|
32178
|
+
|
|
32179
|
+
@property
|
|
32180
|
+
def RequestId(self):
|
|
32181
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
32182
|
+
:rtype: str
|
|
32183
|
+
"""
|
|
32184
|
+
return self._RequestId
|
|
32185
|
+
|
|
32186
|
+
@RequestId.setter
|
|
32187
|
+
def RequestId(self, RequestId):
|
|
32188
|
+
self._RequestId = RequestId
|
|
32189
|
+
|
|
32190
|
+
|
|
32191
|
+
def _deserialize(self, params):
|
|
32192
|
+
if params.get("InstanceList") is not None:
|
|
32193
|
+
self._InstanceList = []
|
|
32194
|
+
for item in params.get("InstanceList"):
|
|
32195
|
+
obj = OperateRsp()
|
|
32196
|
+
obj._deserialize(item)
|
|
32197
|
+
self._InstanceList.append(obj)
|
|
32198
|
+
self._RequestId = params.get("RequestId")
|
|
32199
|
+
|
|
32200
|
+
|
|
31954
32201
|
class SummaryDetail(AbstractModel):
|
|
31955
32202
|
r"""账单多维度汇总消费详情
|
|
31956
32203
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-billing
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.41
|
|
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
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.41
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.41
|
tencentcloud_sdk_python_billing-3.1.38/tencentcloud_sdk_python_billing.egg-info/requires.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.38
|
{tencentcloud_sdk_python_billing-3.1.38 → tencentcloud_sdk_python_billing-3.1.41}/README.rst
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|