kingsoftcloud-sdk-python 1.1.1__py2.py3-none-any.whl → 1.5.8.49__py2.py3-none-any.whl
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.
- kingsoftcloud_sdk_python-1.5.8.49.dist-info/METADATA +71 -0
- kingsoftcloud_sdk_python-1.5.8.49.dist-info/RECORD +337 -0
- {kingsoftcloud_sdk_python-1.1.1.dist-info → kingsoftcloud_sdk_python-1.5.8.49.dist-info}/WHEEL +1 -1
- ksyun/__init__.py +1 -1
- ksyun/client/actiontrail/v20190401/client.py +2 -4
- ksyun/client/aicp/v20240612/client.py +1344 -0
- ksyun/client/aicp/v20240612/models.py +1963 -0
- ksyun/client/aicp/v20251212/__init__.py +0 -0
- ksyun/client/aicp/v20251212/client.py +56 -0
- ksyun/client/aicp/v20251212/models.py +114 -0
- ksyun/client/bill/v20180601/client.py +6 -77
- ksyun/client/bill/v20180601/models.py +29 -41
- ksyun/client/bill/v20220601/__init__.py +0 -0
- ksyun/client/bill/v20220601/client.py +54 -0
- ksyun/client/bill/v20220601/models.py +54 -0
- ksyun/client/bill_union/v20200101/client.py +81 -14
- ksyun/client/bill_union/v20200101/models.py +119 -3
- ksyun/client/bill_union/v20221222/__init__.py +0 -0
- ksyun/client/bill_union/v20221222/client.py +146 -0
- ksyun/client/bill_union/v20221222/models.py +193 -0
- ksyun/client/bill_union/v20250801/__init__.py +0 -0
- ksyun/client/bill_union/v20250801/client.py +54 -0
- ksyun/client/bill_union/v20250801/models.py +64 -0
- ksyun/client/bws/v20160304/client.py +33 -12
- ksyun/client/bws/v20160304/models.py +51 -0
- ksyun/client/cdn/__init__.py +0 -0
- ksyun/client/cdn/v20160901/__init__.py +0 -0
- ksyun/client/cdn/v20160901/client.py +77 -0
- ksyun/client/cdn/v20160901/models.py +51 -0
- ksyun/client/cdn/v20200630/__init__.py +0 -0
- ksyun/client/cdn/v20200630/client.py +399 -0
- ksyun/client/cdn/v20200630/models.py +826 -0
- ksyun/client/cdn/v20200901/__init__.py +0 -0
- ksyun/client/cdn/v20200901/client.py +169 -0
- ksyun/client/cdn/v20200901/models.py +224 -0
- ksyun/client/cdn/v20211201/__init__.py +0 -0
- ksyun/client/cdn/v20211201/client.py +31 -0
- ksyun/client/cdn/v20211201/models.py +23 -0
- ksyun/client/cdn/v3/__init__.py +0 -0
- ksyun/client/cdn/v3/client.py +997 -0
- ksyun/client/cdn/v3/models.py +1323 -0
- ksyun/client/cen/__init__.py +0 -0
- ksyun/client/cen/v20160304/__init__.py +0 -0
- ksyun/client/cen/v20160304/client.py +606 -0
- ksyun/client/cen/v20160304/models.py +718 -0
- ksyun/client/clickhouse/__init__.py +0 -0
- ksyun/client/clickhouse/v20210101/__init__.py +0 -0
- ksyun/client/clickhouse/v20210101/client.py +905 -0
- ksyun/client/clickhouse/v20210101/models.py +1127 -0
- ksyun/client/cloud_advisor/__init__.py +0 -0
- ksyun/client/cloud_advisor/v20250610/__init__.py +0 -0
- ksyun/client/cloud_advisor/v20250610/client.py +77 -0
- ksyun/client/cloud_advisor/v20250610/models.py +80 -0
- ksyun/client/dmp/__init__.py +0 -0
- ksyun/client/dmp/v20240101/__init__.py +0 -0
- ksyun/client/dmp/v20240101/client.py +468 -0
- ksyun/client/dmp/v20240101/models.py +423 -0
- ksyun/client/dts/__init__.py +0 -0
- ksyun/client/dts/v20180108/__init__.py +0 -0
- ksyun/client/dts/v20180108/client.py +445 -0
- ksyun/client/dts/v20180108/models.py +734 -0
- ksyun/client/ebs/v20160304/client.py +260 -55
- ksyun/client/ebs/v20160304/models.py +320 -66
- ksyun/client/eip/v20160304/client.py +127 -14
- ksyun/client/eip/v20160304/models.py +95 -1
- ksyun/client/epc/v20151101/client.py +1309 -184
- ksyun/client/epc/v20151101/models.py +2623 -137
- ksyun/client/iam/v20151101/client.py +325 -120
- ksyun/client/iam/v20151101/models.py +284 -28
- ksyun/client/iam/v20240513/__init__.py +0 -0
- ksyun/client/iam/v20240513/client.py +31 -0
- ksyun/client/iam/v20240513/models.py +33 -0
- ksyun/client/iam/v20240703/__init__.py +0 -0
- ksyun/client/iam/v20240703/client.py +31 -0
- ksyun/client/iam/v20240703/models.py +18 -0
- ksyun/client/influxdb/__init__.py +0 -0
- ksyun/client/influxdb/v20191010/__init__.py +0 -0
- ksyun/client/influxdb/v20191010/client.py +629 -0
- ksyun/client/influxdb/v20191010/models.py +655 -0
- ksyun/client/kad/v20161122/client.py +56 -12
- ksyun/client/kad/v20161122/models.py +38 -0
- ksyun/client/kce/__init__.py +0 -0
- ksyun/client/kce/v20180314/__init__.py +0 -0
- ksyun/client/kce/v20180314/client.py +399 -0
- ksyun/client/kce/v20180314/models.py +374 -0
- ksyun/client/kce/v20190806/__init__.py +0 -0
- ksyun/client/kce/v20190806/client.py +790 -0
- ksyun/client/kce/v20190806/models.py +1099 -0
- ksyun/client/kce/v20201231/__init__.py +0 -0
- ksyun/client/{slb/v20171210 → kce/v20201231}/client.py +10 -12
- ksyun/client/kce/v20201231/models.py +137 -0
- ksyun/client/kce/v20230101/__init__.py +0 -0
- ksyun/client/kce/v20230101/client.py +215 -0
- ksyun/client/kce/v20230101/models.py +259 -0
- ksyun/client/kce/v20230306/__init__.py +0 -0
- ksyun/client/kce/v20230306/client.py +514 -0
- ksyun/client/kce/v20230306/models.py +655 -0
- ksyun/client/kce/v20231115/__init__.py +0 -0
- ksyun/client/kce/v20231115/client.py +54 -0
- ksyun/client/kce/v20231115/models.py +59 -0
- ksyun/client/kce2/__init__.py +0 -0
- ksyun/client/kce2/v20230101/__init__.py +0 -0
- ksyun/client/kce2/v20230101/client.py +353 -0
- ksyun/client/kce2/v20230101/models.py +483 -0
- ksyun/client/kcf/__init__.py +0 -0
- ksyun/client/kcf/v20211215/__init__.py +0 -0
- ksyun/client/kcf/v20211215/client.py +215 -0
- ksyun/client/kcf/v20211215/models.py +313 -0
- ksyun/client/kci/__init__.py +0 -0
- ksyun/client/kci/v20200702/__init__.py +0 -0
- ksyun/client/kci/v20200702/client.py +353 -0
- ksyun/client/kci/v20200702/models.py +614 -0
- ksyun/client/kcm/__init__.py +0 -0
- ksyun/client/kcm/v20160304/__init__.py +0 -0
- ksyun/client/kcm/v20160304/client.py +238 -0
- ksyun/client/kcm/v20160304/models.py +394 -0
- ksyun/client/kcrs/__init__.py +0 -0
- ksyun/client/kcrs/v20211109/__init__.py +0 -0
- ksyun/client/kcrs/v20211109/client.py +1020 -0
- ksyun/client/kcrs/v20211109/models.py +1282 -0
- ksyun/client/kcs/__init__.py +0 -0
- ksyun/client/kcs/v20160701/__init__.py +0 -0
- ksyun/client/kcs/v20160701/client.py +1526 -0
- ksyun/client/kcs/v20160701/models.py +1917 -0
- ksyun/client/kcs/v20170401/__init__.py +0 -0
- ksyun/client/kcs/v20170401/client.py +31 -0
- ksyun/client/kcs/v20170401/models.py +28 -0
- ksyun/client/kcs/v20240701/__init__.py +0 -0
- ksyun/client/kcs/v20240701/client.py +31 -0
- ksyun/client/kcs/v20240701/models.py +23 -0
- ksyun/client/kead/v20200101/client.py +48 -4
- ksyun/client/kead/v20200101/models.py +52 -42
- ksyun/client/kec/v20160304/client.py +890 -223
- ksyun/client/kec/v20160304/models.py +1377 -140
- ksyun/client/ked/__init__.py +0 -0
- ksyun/client/ked/v1/__init__.py +0 -0
- ksyun/client/ked/v1/client.py +1020 -0
- ksyun/client/ked/v1/models.py +1132 -0
- ksyun/client/kes/__init__.py +0 -0
- ksyun/client/kes/v20201215/__init__.py +0 -0
- ksyun/client/kes/v20201215/client.py +192 -0
- ksyun/client/kes/v20201215/models.py +252 -0
- ksyun/client/ket/__init__.py +0 -0
- ksyun/client/ket/v20170101/__init__.py +0 -0
- ksyun/client/ket/v20170101/client.py +192 -0
- ksyun/client/ket/v20170101/models.py +265 -0
- ksyun/client/kfw/__init__.py +0 -0
- ksyun/client/kfw/v20160304/__init__.py +0 -0
- ksyun/client/kfw/v20160304/client.py +692 -0
- ksyun/client/kfw/v20160304/models.py +1029 -0
- ksyun/client/kingpay/__init__.py +0 -0
- ksyun/client/kingpay/v1/__init__.py +0 -0
- ksyun/client/kingpay/v1/client.py +31 -0
- ksyun/client/kingpay/v1/models.py +18 -0
- ksyun/client/kkms/__init__.py +0 -0
- ksyun/client/kkms/v20160304/__init__.py +0 -0
- ksyun/client/kkms/v20160304/client.py +192 -0
- ksyun/client/kkms/v20160304/models.py +185 -0
- ksyun/client/klog/__init__.py +0 -0
- ksyun/client/klog/v20200731/__init__.py +0 -0
- ksyun/client/klog/v20200731/client.py +376 -0
- ksyun/client/klog/v20200731/models.py +508 -0
- ksyun/client/kls/__init__.py +0 -0
- ksyun/client/kls/v20170101/__init__.py +0 -0
- ksyun/client/kls/v20170101/client.py +192 -0
- ksyun/client/kls/v20170101/models.py +320 -0
- ksyun/client/kmr/__init__.py +0 -0
- ksyun/client/kmr/v20210902/__init__.py +0 -0
- ksyun/client/kmr/v20210902/client.py +537 -0
- ksyun/client/kmr/v20210902/models.py +536 -0
- ksyun/client/kmr/v20231231/__init__.py +0 -0
- ksyun/client/kmr/v20231231/client.py +169 -0
- ksyun/client/kmr/v20231231/models.py +201 -0
- ksyun/client/kmr/v20240814/__init__.py +0 -0
- ksyun/client/kmr/v20240814/client.py +445 -0
- ksyun/client/kmr/v20240814/models.py +523 -0
- ksyun/client/knad/__init__.py +0 -0
- ksyun/client/knad/v20230323/__init__.py +0 -0
- ksyun/client/knad/v20230323/client.py +399 -0
- ksyun/client/knad/v20230323/models.py +470 -0
- ksyun/client/kpfs/__init__.py +0 -0
- ksyun/client/kpfs/v20240930/__init__.py +0 -0
- ksyun/client/kpfs/v20240930/client.py +217 -0
- ksyun/client/kpfs/v20240930/models.py +396 -0
- ksyun/client/krds/__init__.py +0 -0
- ksyun/client/krds/v20160701/__init__.py +0 -0
- ksyun/client/krds/v20160701/client.py +2101 -0
- ksyun/client/krds/v20160701/models.py +2722 -0
- ksyun/client/krds/v20200825/__init__.py +0 -0
- ksyun/client/krds/v20200825/client.py +238 -0
- ksyun/client/krds/v20200825/models.py +336 -0
- ksyun/client/memcached/__init__.py +0 -0
- ksyun/client/memcached/v20180627/__init__.py +0 -0
- ksyun/client/memcached/v20180627/client.py +307 -0
- ksyun/client/memcached/v20180627/models.py +317 -0
- ksyun/client/milvus/__init__.py +0 -0
- ksyun/client/milvus/v20231010/__init__.py +0 -0
- ksyun/client/milvus/v20231010/client.py +445 -0
- ksyun/client/milvus/v20231010/models.py +520 -0
- ksyun/client/mongodb/v20170101/client.py +312 -84
- ksyun/client/mongodb/v20170101/models.py +251 -34
- ksyun/client/mongodb/v20250101/__init__.py +0 -0
- ksyun/client/mongodb/v20250101/client.py +31 -0
- ksyun/client/mongodb/v20250101/models.py +18 -0
- ksyun/client/monitor/__init__.py +0 -0
- ksyun/client/monitor/v20100525/__init__.py +0 -0
- ksyun/client/monitor/v20100525/client.py +54 -0
- ksyun/client/monitor/v20100525/models.py +108 -0
- ksyun/client/monitor/v20181114/__init__.py +0 -0
- ksyun/client/monitor/v20181114/client.py +31 -0
- ksyun/client/monitor/v20181114/models.py +59 -0
- ksyun/client/monitor/v20210101/__init__.py +0 -0
- ksyun/client/monitor/v20210101/client.py +284 -0
- ksyun/client/monitor/v20210101/models.py +330 -0
- ksyun/client/monitor/v20220101/__init__.py +0 -0
- ksyun/client/monitor/v20220101/client.py +54 -0
- ksyun/client/monitor/v20220101/models.py +32 -0
- ksyun/client/monitor/v20250101/__init__.py +0 -0
- ksyun/client/monitor/v20250101/client.py +121 -0
- ksyun/client/monitor/v20250101/models.py +188 -0
- ksyun/client/pdns/__init__.py +0 -0
- ksyun/client/pdns/v20160304/__init__.py +0 -0
- ksyun/client/pdns/v20160304/client.py +813 -0
- ksyun/client/pdns/v20160304/models.py +805 -0
- ksyun/client/postgresql/__init__.py +0 -0
- ksyun/client/postgresql/v20181225/__init__.py +0 -0
- ksyun/client/postgresql/v20181225/client.py +1158 -0
- ksyun/client/postgresql/v20181225/models.py +1629 -0
- ksyun/client/rabbitmq/__init__.py +0 -0
- ksyun/client/rabbitmq/v20191017/__init__.py +0 -0
- ksyun/client/rabbitmq/v20191017/client.py +445 -0
- ksyun/client/rabbitmq/v20191017/models.py +413 -0
- ksyun/client/relyt/__init__.py +0 -0
- ksyun/client/relyt/v20240117/__init__.py +0 -0
- ksyun/client/{bill_union/v20211209 → relyt/v20240117}/client.py +10 -12
- ksyun/client/relyt/v20240117/models.py +23 -0
- ksyun/client/resourcemanager/v20210320/client.py +16 -18
- ksyun/client/sks/v20151101/client.py +11 -13
- ksyun/client/sks/v20151101/models.py +28 -2
- ksyun/client/slb/v20160304/client.py +1099 -112
- ksyun/client/slb/v20160304/models.py +1697 -24
- ksyun/client/slb/v20250430/__init__.py +0 -0
- ksyun/client/slb/v20250430/client.py +813 -0
- ksyun/client/slb/v20250430/models.py +1372 -0
- ksyun/client/sqlserver/__init__.py +0 -0
- ksyun/client/sqlserver/v20190425/__init__.py +0 -0
- ksyun/client/sqlserver/v20190425/client.py +1066 -0
- ksyun/client/sqlserver/v20190425/models.py +1528 -0
- ksyun/client/sts/v20151101/client.py +23 -2
- ksyun/client/sts/v20151101/models.py +54 -1
- ksyun/client/tagv2/v20200901/client.py +60 -16
- ksyun/client/tagv2/v20200901/models.py +56 -4
- ksyun/client/ter/__init__.py +0 -0
- ksyun/client/ter/v20240415/__init__.py +0 -0
- ksyun/client/ter/v20240415/client.py +123 -0
- ksyun/client/ter/v20240415/models.py +115 -0
- ksyun/client/tidb/__init__.py +0 -0
- ksyun/client/tidb/v20210520/__init__.py +0 -0
- ksyun/client/tidb/v20210520/client.py +928 -0
- ksyun/client/tidb/v20210520/models.py +1162 -0
- ksyun/client/trade/v20200114/client.py +2 -4
- ksyun/client/trade/v20200831/client.py +2 -4
- ksyun/client/trade/v20250220/__init__.py +0 -0
- ksyun/client/trade/v20250220/client.py +100 -0
- ksyun/client/trade/v20250220/models.py +91 -0
- ksyun/client/trade/v20250321/__init__.py +0 -0
- ksyun/client/trade/v20250321/client.py +100 -0
- ksyun/client/trade/v20250321/models.py +71 -0
- ksyun/client/trade/v20250828/__init__.py +0 -0
- ksyun/client/trade/v20250828/client.py +31 -0
- ksyun/client/trade/v20250828/models.py +81 -0
- ksyun/client/vpc/v20160304/client.py +1377 -229
- ksyun/client/vpc/v20160304/models.py +1540 -138
- ksyun/client/waf/__init__.py +0 -0
- ksyun/client/waf/v20200707/__init__.py +0 -0
- ksyun/client/waf/v20200707/client.py +468 -0
- ksyun/client/waf/v20200707/models.py +738 -0
- ksyun/common/abstract_client.py +57 -21
- ksyun/common/abstract_model.py +3 -3
- ksyun/common/common_client.py +2 -0
- ksyun/common/credential.py +2 -0
- ksyun/common/exception/ksyun_sdk_exception.py +11 -7
- ksyun/common/http/request.py +45 -6
- ksyun/common/profile/client_profile.py +3 -0
- ksyun/common/profile/http_profile.py +28 -1
- kingsoftcloud_sdk_python-1.1.1.dist-info/METADATA +0 -47
- kingsoftcloud_sdk_python-1.1.1.dist-info/RECORD +0 -105
- ksyun/client/bill_union/v20211209/models.py +0 -38
- ksyun/client/slb/v20171210/models.py +0 -33
- ksyun/common/sign.py +0 -33
- {kingsoftcloud_sdk_python-1.1.1.dist-info → kingsoftcloud_sdk_python-1.5.8.49.dist-info/licenses}/LICENSE +0 -0
- {kingsoftcloud_sdk_python-1.1.1.dist-info → kingsoftcloud_sdk_python-1.5.8.49.dist-info}/top_level.txt +0 -0
- /ksyun/client/{bill_union/v20211209 → aicp}/__init__.py +0 -0
- /ksyun/client/{slb/v20171210 → aicp/v20240612}/__init__.py +0 -0
|
@@ -5,20 +5,33 @@ class DescribeBillSummaryByPayModeRequest(AbstractModel):
|
|
|
5
5
|
"""
|
|
6
6
|
|
|
7
7
|
def __init__(self):
|
|
8
|
-
r"""
|
|
8
|
+
r"""获取计费类别汇总账单(费用账单接口,推荐使用,包含预付费、实时付费、后付费)
|
|
9
9
|
:param BillBeginMonth: 账单开始时间
|
|
10
10
|
:type PathPrefix: String
|
|
11
11
|
:param BillEndMonth: 账单结束时间
|
|
12
12
|
:type PathPrefix: String
|
|
13
|
+
:param SubAccount: 成员账账号Id,非必填
|
|
14
|
+
:type PathPrefix: Long
|
|
15
|
+
:param FetchAllFinanceRelationData: 非必传,默认值为 False。
|
|
16
|
+
是否吐出全部财务关系数据。
|
|
17
|
+
值为true时,同时吐出财务管理和财务托管账号数据。
|
|
18
|
+
值为false时或不传该参数,仅吐出财务托管账号数据。
|
|
19
|
+
:type PathPrefix: Boolean
|
|
13
20
|
"""
|
|
14
21
|
self.BillBeginMonth = None
|
|
15
22
|
self.BillEndMonth = None
|
|
23
|
+
self.SubAccount = None
|
|
24
|
+
self.FetchAllFinanceRelationData = None
|
|
16
25
|
|
|
17
26
|
def _deserialize(self, params):
|
|
18
27
|
if params.get("BillBeginMonth"):
|
|
19
28
|
self.BillBeginMonth = params.get("BillBeginMonth")
|
|
20
29
|
if params.get("BillEndMonth"):
|
|
21
30
|
self.BillEndMonth = params.get("BillEndMonth")
|
|
31
|
+
if params.get("SubAccount"):
|
|
32
|
+
self.SubAccount = params.get("SubAccount")
|
|
33
|
+
if params.get("FetchAllFinanceRelationData"):
|
|
34
|
+
self.FetchAllFinanceRelationData = params.get("FetchAllFinanceRelationData")
|
|
22
35
|
|
|
23
36
|
|
|
24
37
|
class DescribeBillSummaryByProductRequest(AbstractModel):
|
|
@@ -31,15 +44,28 @@ class DescribeBillSummaryByProductRequest(AbstractModel):
|
|
|
31
44
|
:type PathPrefix: String
|
|
32
45
|
:param BillEndMonth: 账单结束时间
|
|
33
46
|
:type PathPrefix: String
|
|
47
|
+
:param SubAccount: 成员账号Id
|
|
48
|
+
:type PathPrefix: Long
|
|
49
|
+
:param FetchAllFinanceRelationData: 非必传,默认值为 False。
|
|
50
|
+
是否吐出全部财务关系数据。
|
|
51
|
+
值为true时,同时吐出财务管理和财务托管账号数据。
|
|
52
|
+
值为false时或不传该参数,仅吐出财务托管账号数据。
|
|
53
|
+
:type PathPrefix: Boolean
|
|
34
54
|
"""
|
|
35
55
|
self.BillBeginMonth = None
|
|
36
56
|
self.BillEndMonth = None
|
|
57
|
+
self.SubAccount = None
|
|
58
|
+
self.FetchAllFinanceRelationData = None
|
|
37
59
|
|
|
38
60
|
def _deserialize(self, params):
|
|
39
61
|
if params.get("BillBeginMonth"):
|
|
40
62
|
self.BillBeginMonth = params.get("BillBeginMonth")
|
|
41
63
|
if params.get("BillEndMonth"):
|
|
42
64
|
self.BillEndMonth = params.get("BillEndMonth")
|
|
65
|
+
if params.get("SubAccount"):
|
|
66
|
+
self.SubAccount = params.get("SubAccount")
|
|
67
|
+
if params.get("FetchAllFinanceRelationData"):
|
|
68
|
+
self.FetchAllFinanceRelationData = params.get("FetchAllFinanceRelationData")
|
|
43
69
|
|
|
44
70
|
|
|
45
71
|
class DescribeBillSummaryByProjectRequest(AbstractModel):
|
|
@@ -47,20 +73,33 @@ class DescribeBillSummaryByProjectRequest(AbstractModel):
|
|
|
47
73
|
"""
|
|
48
74
|
|
|
49
75
|
def __init__(self):
|
|
50
|
-
r"""
|
|
76
|
+
r"""按项目制获取账单汇总金额(费用账单接口,推荐使用,包含预付费、实时付费、后付费)
|
|
51
77
|
:param BillBeginMonth: 账单开始月份
|
|
52
78
|
:type PathPrefix: String
|
|
53
79
|
:param BillEndMonth: 账单结束月份
|
|
54
80
|
:type PathPrefix: String
|
|
81
|
+
:param SubAccount: 成员账号Id
|
|
82
|
+
:type PathPrefix: Long
|
|
83
|
+
:param FetchAllFinanceRelationData: 非必传,默认值为 False。
|
|
84
|
+
是否吐出全部财务关系数据。
|
|
85
|
+
值为true时,同时吐出财务管理和财务托管账号数据。
|
|
86
|
+
值为false时或不传该参数,仅吐出财务托管账号数据。
|
|
87
|
+
:type PathPrefix: Boolean
|
|
55
88
|
"""
|
|
56
89
|
self.BillBeginMonth = None
|
|
57
90
|
self.BillEndMonth = None
|
|
91
|
+
self.SubAccount = None
|
|
92
|
+
self.FetchAllFinanceRelationData = None
|
|
58
93
|
|
|
59
94
|
def _deserialize(self, params):
|
|
60
95
|
if params.get("BillBeginMonth"):
|
|
61
96
|
self.BillBeginMonth = params.get("BillBeginMonth")
|
|
62
97
|
if params.get("BillEndMonth"):
|
|
63
98
|
self.BillEndMonth = params.get("BillEndMonth")
|
|
99
|
+
if params.get("SubAccount"):
|
|
100
|
+
self.SubAccount = params.get("SubAccount")
|
|
101
|
+
if params.get("FetchAllFinanceRelationData"):
|
|
102
|
+
self.FetchAllFinanceRelationData = params.get("FetchAllFinanceRelationData")
|
|
64
103
|
|
|
65
104
|
|
|
66
105
|
class DescribeInstanceSummaryBillsRequest(AbstractModel):
|
|
@@ -121,7 +160,7 @@ class DescribeSplitItemBillDetailsRequest(AbstractModel):
|
|
|
121
160
|
:param PayType: 计费类别
|
|
122
161
|
:type PathPrefix: Int
|
|
123
162
|
:param SubAccountId: 主账号所托管的账号Id
|
|
124
|
-
:type PathPrefix:
|
|
163
|
+
:type PathPrefix: Long
|
|
125
164
|
:param Page: 第几页
|
|
126
165
|
:type PathPrefix: Int
|
|
127
166
|
:param Size: 每页条数
|
|
@@ -152,3 +191,80 @@ class DescribeSplitItemBillDetailsRequest(AbstractModel):
|
|
|
152
191
|
self.Size = params.get("Size")
|
|
153
192
|
|
|
154
193
|
|
|
194
|
+
class DescribeMiItemBillsRequest(AbstractModel):
|
|
195
|
+
"""DescribeMiItemBills请求参数结构体
|
|
196
|
+
"""
|
|
197
|
+
|
|
198
|
+
def __init__(self):
|
|
199
|
+
r"""小米计费项账单
|
|
200
|
+
:param BillMonth:
|
|
201
|
+
:type PathPrefix: String
|
|
202
|
+
"""
|
|
203
|
+
self.BillMonth = None
|
|
204
|
+
|
|
205
|
+
def _deserialize(self, params):
|
|
206
|
+
if params.get("BillMonth"):
|
|
207
|
+
self.BillMonth = params.get("BillMonth")
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
class DescribeSplitItemDayBillDetailsRequest(AbstractModel):
|
|
211
|
+
"""DescribeSplitItemDayBillDetails请求参数结构体
|
|
212
|
+
"""
|
|
213
|
+
|
|
214
|
+
def __init__(self):
|
|
215
|
+
r"""分页查询分拆项账单明细
|
|
216
|
+
:param CustomerBillMonth: 账期,格式:yyyyMM。如:202211
|
|
217
|
+
|
|
218
|
+
:type PathPrefix: Int
|
|
219
|
+
:param ProductGroupCode: 产品线 code,目前仅支持KS3_GROUP
|
|
220
|
+
:type PathPrefix: String
|
|
221
|
+
:param StatisticType: 统计周期,固化传 3(代表明细)
|
|
222
|
+
:type PathPrefix: Int
|
|
223
|
+
:param PayType: 计费类别,0(预付费),1(实时付费),2(后付费);该接口仅支持后付费
|
|
224
|
+
:type PathPrefix: Int
|
|
225
|
+
:param SubAccountId: 主账号所托管的账号Id
|
|
226
|
+
|
|
227
|
+
:type PathPrefix: Long
|
|
228
|
+
:param Page: 第几页
|
|
229
|
+
:type PathPrefix: Int
|
|
230
|
+
:param Size: 每页条数
|
|
231
|
+
|
|
232
|
+
:type PathPrefix: Int
|
|
233
|
+
"""
|
|
234
|
+
self.CustomerBillMonth = None
|
|
235
|
+
self.ProductGroupCode = None
|
|
236
|
+
self.StatisticType = None
|
|
237
|
+
self.PayType = None
|
|
238
|
+
self.SubAccountId = None
|
|
239
|
+
self.Page = None
|
|
240
|
+
self.Size = None
|
|
241
|
+
|
|
242
|
+
def _deserialize(self, params):
|
|
243
|
+
if params.get("CustomerBillMonth"):
|
|
244
|
+
self.CustomerBillMonth = params.get("CustomerBillMonth")
|
|
245
|
+
if params.get("ProductGroupCode"):
|
|
246
|
+
self.ProductGroupCode = params.get("ProductGroupCode")
|
|
247
|
+
if params.get("StatisticType"):
|
|
248
|
+
self.StatisticType = params.get("StatisticType")
|
|
249
|
+
if params.get("PayType"):
|
|
250
|
+
self.PayType = params.get("PayType")
|
|
251
|
+
if params.get("SubAccountId"):
|
|
252
|
+
self.SubAccountId = params.get("SubAccountId")
|
|
253
|
+
if params.get("Page"):
|
|
254
|
+
self.Page = params.get("Page")
|
|
255
|
+
if params.get("Size"):
|
|
256
|
+
self.Size = params.get("Size")
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
class ListProductGroupsRequest(AbstractModel):
|
|
260
|
+
"""ListProductGroups请求参数结构体
|
|
261
|
+
"""
|
|
262
|
+
|
|
263
|
+
def __init__(self):
|
|
264
|
+
r"""获取产品线详情列表
|
|
265
|
+
"""
|
|
266
|
+
|
|
267
|
+
def _deserialize(self, params):
|
|
268
|
+
return
|
|
269
|
+
|
|
270
|
+
|
|
File without changes
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import json
|
|
2
|
+
|
|
3
|
+
from ksyun.common.exception.ksyun_sdk_exception import KsyunSDKException
|
|
4
|
+
from ksyun.common.abstract_client import AbstractClient
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class Bill_unionClient(AbstractClient):
|
|
8
|
+
_apiVersion = '2022-12-22'
|
|
9
|
+
_endpoint = 'bill-union.api.ksyun.com'
|
|
10
|
+
_service = 'bill-union'
|
|
11
|
+
def QueryInstanceConsume(self, request):
|
|
12
|
+
"""查询实例按日汇总账单
|
|
13
|
+
:param request: Request instance for QueryInstanceConsume.
|
|
14
|
+
:type request: :class:`ksyun.client.bill_union.v20221222.models.QueryInstanceConsumeRequest`
|
|
15
|
+
"""
|
|
16
|
+
try:
|
|
17
|
+
params = request._serialize()
|
|
18
|
+
body = self.call_judge("QueryInstanceConsume", params, "application/json")
|
|
19
|
+
response = json.loads(body)
|
|
20
|
+
if "Error" not in response:
|
|
21
|
+
return body
|
|
22
|
+
else:
|
|
23
|
+
code = response["Error"]["Code"]
|
|
24
|
+
message = response["Error"]["Message"]
|
|
25
|
+
req_id = response["RequestId"]
|
|
26
|
+
raise KsyunSDKException(code, message, req_id)
|
|
27
|
+
except Exception as e:
|
|
28
|
+
if isinstance(e, KsyunSDKException):
|
|
29
|
+
raise
|
|
30
|
+
else:
|
|
31
|
+
raise KsyunSDKException(message=str(e))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def QueryProjectConsume(self, request):
|
|
35
|
+
"""项目制按日汇总账单
|
|
36
|
+
:param request: Request instance for QueryProjectConsume.
|
|
37
|
+
:type request: :class:`ksyun.client.bill_union.v20221222.models.QueryProjectConsumeRequest`
|
|
38
|
+
"""
|
|
39
|
+
try:
|
|
40
|
+
params = request._serialize()
|
|
41
|
+
body = self.call_judge("QueryProjectConsume", params, "application/json")
|
|
42
|
+
response = json.loads(body)
|
|
43
|
+
if "Error" not in response:
|
|
44
|
+
return body
|
|
45
|
+
else:
|
|
46
|
+
code = response["Error"]["Code"]
|
|
47
|
+
message = response["Error"]["Message"]
|
|
48
|
+
req_id = response["RequestId"]
|
|
49
|
+
raise KsyunSDKException(code, message, req_id)
|
|
50
|
+
except Exception as e:
|
|
51
|
+
if isinstance(e, KsyunSDKException):
|
|
52
|
+
raise
|
|
53
|
+
else:
|
|
54
|
+
raise KsyunSDKException(message=str(e))
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
def QueryProductConsume(self, request):
|
|
58
|
+
"""产品线按日汇总账单
|
|
59
|
+
:param request: Request instance for QueryProductConsume.
|
|
60
|
+
:type request: :class:`ksyun.client.bill_union.v20221222.models.QueryProductConsumeRequest`
|
|
61
|
+
"""
|
|
62
|
+
try:
|
|
63
|
+
params = request._serialize()
|
|
64
|
+
body = self.call_judge("QueryProductConsume", params, "application/json")
|
|
65
|
+
response = json.loads(body)
|
|
66
|
+
if "Error" not in response:
|
|
67
|
+
return body
|
|
68
|
+
else:
|
|
69
|
+
code = response["Error"]["Code"]
|
|
70
|
+
message = response["Error"]["Message"]
|
|
71
|
+
req_id = response["RequestId"]
|
|
72
|
+
raise KsyunSDKException(code, message, req_id)
|
|
73
|
+
except Exception as e:
|
|
74
|
+
if isinstance(e, KsyunSDKException):
|
|
75
|
+
raise
|
|
76
|
+
else:
|
|
77
|
+
raise KsyunSDKException(message=str(e))
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
def QueryFinanceUnitConsume(self, request):
|
|
81
|
+
"""财务单元按日汇总账单
|
|
82
|
+
:param request: Request instance for QueryFinanceUnitConsume.
|
|
83
|
+
:type request: :class:`ksyun.client.bill_union.v20221222.models.QueryFinanceUnitConsumeRequest`
|
|
84
|
+
"""
|
|
85
|
+
try:
|
|
86
|
+
params = request._serialize()
|
|
87
|
+
body = self.call_judge("QueryFinanceUnitConsume", params, "application/json")
|
|
88
|
+
response = json.loads(body)
|
|
89
|
+
if "Error" not in response:
|
|
90
|
+
return body
|
|
91
|
+
else:
|
|
92
|
+
code = response["Error"]["Code"]
|
|
93
|
+
message = response["Error"]["Message"]
|
|
94
|
+
req_id = response["RequestId"]
|
|
95
|
+
raise KsyunSDKException(code, message, req_id)
|
|
96
|
+
except Exception as e:
|
|
97
|
+
if isinstance(e, KsyunSDKException):
|
|
98
|
+
raise
|
|
99
|
+
else:
|
|
100
|
+
raise KsyunSDKException(message=str(e))
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
def QueryFinanceUnitConsumeOfMonth(self, request):
|
|
104
|
+
"""财务单元按月汇总账单
|
|
105
|
+
:param request: Request instance for QueryFinanceUnitConsumeOfMonth.
|
|
106
|
+
:type request: :class:`ksyun.client.bill_union.v20221222.models.QueryFinanceUnitConsumeOfMonthRequest`
|
|
107
|
+
"""
|
|
108
|
+
try:
|
|
109
|
+
params = request._serialize()
|
|
110
|
+
body = self.call_judge("QueryFinanceUnitConsumeOfMonth", params, "application/json")
|
|
111
|
+
response = json.loads(body)
|
|
112
|
+
if "Error" not in response:
|
|
113
|
+
return body
|
|
114
|
+
else:
|
|
115
|
+
code = response["Error"]["Code"]
|
|
116
|
+
message = response["Error"]["Message"]
|
|
117
|
+
req_id = response["RequestId"]
|
|
118
|
+
raise KsyunSDKException(code, message, req_id)
|
|
119
|
+
except Exception as e:
|
|
120
|
+
if isinstance(e, KsyunSDKException):
|
|
121
|
+
raise
|
|
122
|
+
else:
|
|
123
|
+
raise KsyunSDKException(message=str(e))
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
def QueryUserConsume(self, request):
|
|
127
|
+
"""计费类别按日汇总账单
|
|
128
|
+
:param request: Request instance for QueryUserConsume.
|
|
129
|
+
:type request: :class:`ksyun.client.bill_union.v20221222.models.QueryUserConsumeRequest`
|
|
130
|
+
"""
|
|
131
|
+
try:
|
|
132
|
+
params = request._serialize()
|
|
133
|
+
body = self.call_judge("QueryUserConsume", params, "application/json")
|
|
134
|
+
response = json.loads(body)
|
|
135
|
+
if "Error" not in response:
|
|
136
|
+
return body
|
|
137
|
+
else:
|
|
138
|
+
code = response["Error"]["Code"]
|
|
139
|
+
message = response["Error"]["Message"]
|
|
140
|
+
req_id = response["RequestId"]
|
|
141
|
+
raise KsyunSDKException(code, message, req_id)
|
|
142
|
+
except Exception as e:
|
|
143
|
+
if isinstance(e, KsyunSDKException):
|
|
144
|
+
raise
|
|
145
|
+
else:
|
|
146
|
+
raise KsyunSDKException(message=str(e))
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
from ksyun.common.abstract_model import AbstractModel
|
|
2
|
+
|
|
3
|
+
class QueryInstanceConsumeRequest(AbstractModel):
|
|
4
|
+
"""QueryInstanceConsume请求参数结构体
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
def __init__(self):
|
|
8
|
+
r"""查询实例按日汇总账单
|
|
9
|
+
:param StartDay: 账单开始时间,YYYY-MM-DD,支持当前月,不支持跨月。
|
|
10
|
+
:type PathPrefix: String
|
|
11
|
+
:param EndDay: 账单结束时间,YYYY-MM-DD,支持当前月,不支持跨月。
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
:type PathPrefix: String
|
|
15
|
+
:param ProductCode: 可选参数,产品线对应的Code。eg. KEC,默认获取所有产品线的账单,取值可以参考 获取产品线列表 金山云-文档中心-获取产品线列表 (ksyun.com)
|
|
16
|
+
|
|
17
|
+
:type PathPrefix: String
|
|
18
|
+
:param Page: 第几页,默认值为1
|
|
19
|
+
|
|
20
|
+
:type PathPrefix: Int
|
|
21
|
+
:param Size: 每页条数,默认值20,最大值200
|
|
22
|
+
|
|
23
|
+
:type PathPrefix: Int
|
|
24
|
+
"""
|
|
25
|
+
self.StartDay = None
|
|
26
|
+
self.EndDay = None
|
|
27
|
+
self.ProductCode = None
|
|
28
|
+
self.Page = None
|
|
29
|
+
self.Size = None
|
|
30
|
+
|
|
31
|
+
def _deserialize(self, params):
|
|
32
|
+
if params.get("StartDay"):
|
|
33
|
+
self.StartDay = params.get("StartDay")
|
|
34
|
+
if params.get("EndDay"):
|
|
35
|
+
self.EndDay = params.get("EndDay")
|
|
36
|
+
if params.get("ProductCode"):
|
|
37
|
+
self.ProductCode = params.get("ProductCode")
|
|
38
|
+
if params.get("Page"):
|
|
39
|
+
self.Page = params.get("Page")
|
|
40
|
+
if params.get("Size"):
|
|
41
|
+
self.Size = params.get("Size")
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
class QueryProjectConsumeRequest(AbstractModel):
|
|
45
|
+
"""QueryProjectConsume请求参数结构体
|
|
46
|
+
"""
|
|
47
|
+
|
|
48
|
+
def __init__(self):
|
|
49
|
+
r"""项目制按日汇总账单
|
|
50
|
+
:param StartDay: 账单开始时间,YYYY-MM-DD,支持当前月,不支持跨月。
|
|
51
|
+
:type PathPrefix: String
|
|
52
|
+
:param EndDay: 账单结束时间,YYYY-MM-DD,支持当前月,不支持跨月。
|
|
53
|
+
:type PathPrefix: String
|
|
54
|
+
:param Page: 第几页,默认值为1
|
|
55
|
+
:type PathPrefix: Int
|
|
56
|
+
:param Size: 每页条数,默认值20,最大值200
|
|
57
|
+
:type PathPrefix: Int
|
|
58
|
+
"""
|
|
59
|
+
self.StartDay = None
|
|
60
|
+
self.EndDay = None
|
|
61
|
+
self.Page = None
|
|
62
|
+
self.Size = None
|
|
63
|
+
|
|
64
|
+
def _deserialize(self, params):
|
|
65
|
+
if params.get("StartDay"):
|
|
66
|
+
self.StartDay = params.get("StartDay")
|
|
67
|
+
if params.get("EndDay"):
|
|
68
|
+
self.EndDay = params.get("EndDay")
|
|
69
|
+
if params.get("Page"):
|
|
70
|
+
self.Page = params.get("Page")
|
|
71
|
+
if params.get("Size"):
|
|
72
|
+
self.Size = params.get("Size")
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
class QueryProductConsumeRequest(AbstractModel):
|
|
76
|
+
"""QueryProductConsume请求参数结构体
|
|
77
|
+
"""
|
|
78
|
+
|
|
79
|
+
def __init__(self):
|
|
80
|
+
r"""产品线按日汇总账单
|
|
81
|
+
:param StartDay: 账单开始时间,YYYY-MM-DD,支持当前月,不支持跨月。
|
|
82
|
+
:type PathPrefix: String
|
|
83
|
+
:param EndDay: 账单结束时间,YYYY-MM-DD,支持当前月,不支持跨月。
|
|
84
|
+
:type PathPrefix: String
|
|
85
|
+
:param Page: 第几页,默认值为1
|
|
86
|
+
:type PathPrefix: Int
|
|
87
|
+
:param Size: 每页条数,默认值20,最大值200
|
|
88
|
+
:type PathPrefix: Int
|
|
89
|
+
"""
|
|
90
|
+
self.StartDay = None
|
|
91
|
+
self.EndDay = None
|
|
92
|
+
self.Page = None
|
|
93
|
+
self.Size = None
|
|
94
|
+
|
|
95
|
+
def _deserialize(self, params):
|
|
96
|
+
if params.get("StartDay"):
|
|
97
|
+
self.StartDay = params.get("StartDay")
|
|
98
|
+
if params.get("EndDay"):
|
|
99
|
+
self.EndDay = params.get("EndDay")
|
|
100
|
+
if params.get("Page"):
|
|
101
|
+
self.Page = params.get("Page")
|
|
102
|
+
if params.get("Size"):
|
|
103
|
+
self.Size = params.get("Size")
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
class QueryFinanceUnitConsumeRequest(AbstractModel):
|
|
107
|
+
"""QueryFinanceUnitConsume请求参数结构体
|
|
108
|
+
"""
|
|
109
|
+
|
|
110
|
+
def __init__(self):
|
|
111
|
+
r"""财务单元按日汇总账单
|
|
112
|
+
:param StartDay: 账单开始时间,YYYY-MM-DD,支持当前月,不支持跨月。
|
|
113
|
+
:type PathPrefix: String
|
|
114
|
+
:param EndDay: 账单结束时间,YYYY-MM-DD,支持当前月,不支持跨月。
|
|
115
|
+
:type PathPrefix: String
|
|
116
|
+
:param Page: 第几页,默认值为1
|
|
117
|
+
:type PathPrefix: Int
|
|
118
|
+
:param Size: 每页条数,默认值20,最大值200
|
|
119
|
+
:type PathPrefix: Int
|
|
120
|
+
"""
|
|
121
|
+
self.StartDay = None
|
|
122
|
+
self.EndDay = None
|
|
123
|
+
self.Page = None
|
|
124
|
+
self.Size = None
|
|
125
|
+
|
|
126
|
+
def _deserialize(self, params):
|
|
127
|
+
if params.get("StartDay"):
|
|
128
|
+
self.StartDay = params.get("StartDay")
|
|
129
|
+
if params.get("EndDay"):
|
|
130
|
+
self.EndDay = params.get("EndDay")
|
|
131
|
+
if params.get("Page"):
|
|
132
|
+
self.Page = params.get("Page")
|
|
133
|
+
if params.get("Size"):
|
|
134
|
+
self.Size = params.get("Size")
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
class QueryFinanceUnitConsumeOfMonthRequest(AbstractModel):
|
|
138
|
+
"""QueryFinanceUnitConsumeOfMonth请求参数结构体
|
|
139
|
+
"""
|
|
140
|
+
|
|
141
|
+
def __init__(self):
|
|
142
|
+
r"""财务单元按月汇总账单
|
|
143
|
+
:param CustomerBillMonth: 账期(执行月) yyyyMM
|
|
144
|
+
:type PathPrefix: String
|
|
145
|
+
:param Page: 第几页,默认值为1
|
|
146
|
+
:type PathPrefix: Int
|
|
147
|
+
:param Size: 每页条数,默认值20,最大值200
|
|
148
|
+
:type PathPrefix: Int
|
|
149
|
+
"""
|
|
150
|
+
self.CustomerBillMonth = None
|
|
151
|
+
self.Page = None
|
|
152
|
+
self.Size = None
|
|
153
|
+
|
|
154
|
+
def _deserialize(self, params):
|
|
155
|
+
if params.get("CustomerBillMonth"):
|
|
156
|
+
self.CustomerBillMonth = params.get("CustomerBillMonth")
|
|
157
|
+
if params.get("Page"):
|
|
158
|
+
self.Page = params.get("Page")
|
|
159
|
+
if params.get("Size"):
|
|
160
|
+
self.Size = params.get("Size")
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
class QueryUserConsumeRequest(AbstractModel):
|
|
164
|
+
"""QueryUserConsume请求参数结构体
|
|
165
|
+
"""
|
|
166
|
+
|
|
167
|
+
def __init__(self):
|
|
168
|
+
r"""计费类别按日汇总账单
|
|
169
|
+
:param StartDay: 账单开始时间,YYYY-MM-DD,支持当前月,不支持跨月。
|
|
170
|
+
:type PathPrefix: String
|
|
171
|
+
:param EndDay: 账单结束时间,YYYY-MM-DD,支持当前月,不支持跨月。
|
|
172
|
+
:type PathPrefix: String
|
|
173
|
+
:param Page: 第几页,默认值为1
|
|
174
|
+
:type PathPrefix: Int
|
|
175
|
+
:param Size: 每页条数,默认值20,最大值200
|
|
176
|
+
:type PathPrefix: Int
|
|
177
|
+
"""
|
|
178
|
+
self.StartDay = None
|
|
179
|
+
self.EndDay = None
|
|
180
|
+
self.Page = None
|
|
181
|
+
self.Size = None
|
|
182
|
+
|
|
183
|
+
def _deserialize(self, params):
|
|
184
|
+
if params.get("StartDay"):
|
|
185
|
+
self.StartDay = params.get("StartDay")
|
|
186
|
+
if params.get("EndDay"):
|
|
187
|
+
self.EndDay = params.get("EndDay")
|
|
188
|
+
if params.get("Page"):
|
|
189
|
+
self.Page = params.get("Page")
|
|
190
|
+
if params.get("Size"):
|
|
191
|
+
self.Size = params.get("Size")
|
|
192
|
+
|
|
193
|
+
|
|
File without changes
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import json
|
|
2
|
+
|
|
3
|
+
from ksyun.common.exception.ksyun_sdk_exception import KsyunSDKException
|
|
4
|
+
from ksyun.common.abstract_client import AbstractClient
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class Bill_unionClient(AbstractClient):
|
|
8
|
+
_apiVersion = '2025-08-01'
|
|
9
|
+
_endpoint = 'bill-union.api.ksyun.com'
|
|
10
|
+
_service = 'bill-union'
|
|
11
|
+
def QueryItemBills(self, request):
|
|
12
|
+
"""查询计费项账单
|
|
13
|
+
:param request: Request instance for QueryItemBills.
|
|
14
|
+
:type request: :class:`ksyun.client.bill_union.v20250801.models.QueryItemBillsRequest`
|
|
15
|
+
"""
|
|
16
|
+
try:
|
|
17
|
+
params = request._serialize()
|
|
18
|
+
body = self.call_judge("QueryItemBills", params, "application/json")
|
|
19
|
+
response = json.loads(body)
|
|
20
|
+
if "Error" not in response:
|
|
21
|
+
return body
|
|
22
|
+
else:
|
|
23
|
+
code = response["Error"]["Code"]
|
|
24
|
+
message = response["Error"]["Message"]
|
|
25
|
+
req_id = response["RequestId"]
|
|
26
|
+
raise KsyunSDKException(code, message, req_id)
|
|
27
|
+
except Exception as e:
|
|
28
|
+
if isinstance(e, KsyunSDKException):
|
|
29
|
+
raise
|
|
30
|
+
else:
|
|
31
|
+
raise KsyunSDKException(message=str(e))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def QueryProductTypes(self, request):
|
|
35
|
+
"""产品子类型查询
|
|
36
|
+
:param request: Request instance for QueryProductTypes.
|
|
37
|
+
:type request: :class:`ksyun.client.bill_union.v20250801.models.QueryProductTypesRequest`
|
|
38
|
+
"""
|
|
39
|
+
try:
|
|
40
|
+
params = request._serialize()
|
|
41
|
+
body = self.call_judge("QueryProductTypes", params, "application/x-www-form-urlencoded")
|
|
42
|
+
response = json.loads(body)
|
|
43
|
+
if "Error" not in response:
|
|
44
|
+
return body
|
|
45
|
+
else:
|
|
46
|
+
code = response["Error"]["Code"]
|
|
47
|
+
message = response["Error"]["Message"]
|
|
48
|
+
req_id = response["RequestId"]
|
|
49
|
+
raise KsyunSDKException(code, message, req_id)
|
|
50
|
+
except Exception as e:
|
|
51
|
+
if isinstance(e, KsyunSDKException):
|
|
52
|
+
raise
|
|
53
|
+
else:
|
|
54
|
+
raise KsyunSDKException(message=str(e))
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
from ksyun.common.abstract_model import AbstractModel
|
|
2
|
+
|
|
3
|
+
class QueryItemBillsRequest(AbstractModel):
|
|
4
|
+
"""QueryItemBills请求参数结构体
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
def __init__(self):
|
|
8
|
+
r"""查询计费项账单
|
|
9
|
+
:param CustomerBillMonth: 账期
|
|
10
|
+
:type PathPrefix: Int
|
|
11
|
+
:param ProductGroupCode: 产品线CODE
|
|
12
|
+
:type PathPrefix: String
|
|
13
|
+
:param PayType: 计费方式:0预付费、1实时付费、2后付费
|
|
14
|
+
:type PathPrefix: Int
|
|
15
|
+
:param InstanceId: 实例ID
|
|
16
|
+
:type PathPrefix: String
|
|
17
|
+
:param SubAccountId: 托管子账号ID
|
|
18
|
+
:type PathPrefix: Long
|
|
19
|
+
:param Size: 查询条数,最大值1000
|
|
20
|
+
:type PathPrefix: Int
|
|
21
|
+
:param LastSortValue: 上次查询排序值LastSortValue,基于es search_after;
|
|
22
|
+
:type PathPrefix: String
|
|
23
|
+
"""
|
|
24
|
+
self.CustomerBillMonth = None
|
|
25
|
+
self.ProductGroupCode = None
|
|
26
|
+
self.PayType = None
|
|
27
|
+
self.InstanceId = None
|
|
28
|
+
self.SubAccountId = None
|
|
29
|
+
self.Size = None
|
|
30
|
+
self.LastSortValue = None
|
|
31
|
+
|
|
32
|
+
def _deserialize(self, params):
|
|
33
|
+
if params.get("CustomerBillMonth"):
|
|
34
|
+
self.CustomerBillMonth = params.get("CustomerBillMonth")
|
|
35
|
+
if params.get("ProductGroupCode"):
|
|
36
|
+
self.ProductGroupCode = params.get("ProductGroupCode")
|
|
37
|
+
if params.get("PayType"):
|
|
38
|
+
self.PayType = params.get("PayType")
|
|
39
|
+
if params.get("InstanceId"):
|
|
40
|
+
self.InstanceId = params.get("InstanceId")
|
|
41
|
+
if params.get("SubAccountId"):
|
|
42
|
+
self.SubAccountId = params.get("SubAccountId")
|
|
43
|
+
if params.get("Size"):
|
|
44
|
+
self.Size = params.get("Size")
|
|
45
|
+
if params.get("LastSortValue"):
|
|
46
|
+
self.LastSortValue = params.get("LastSortValue")
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
class QueryProductTypesRequest(AbstractModel):
|
|
50
|
+
"""QueryProductTypes请求参数结构体
|
|
51
|
+
"""
|
|
52
|
+
|
|
53
|
+
def __init__(self):
|
|
54
|
+
r"""产品子类型查询
|
|
55
|
+
:param ProductGroupCode: 产品线code
|
|
56
|
+
:type PathPrefix: String
|
|
57
|
+
"""
|
|
58
|
+
self.ProductGroupCode = None
|
|
59
|
+
|
|
60
|
+
def _deserialize(self, params):
|
|
61
|
+
if params.get("ProductGroupCode"):
|
|
62
|
+
self.ProductGroupCode = params.get("ProductGroupCode")
|
|
63
|
+
|
|
64
|
+
|