kingsoftcloud-sdk-python 1.1.1__py2.py3-none-any.whl → 1.5.8.44__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.1.1.dist-info → kingsoftcloud_sdk_python-1.5.8.44.dist-info}/METADATA +17 -4
- kingsoftcloud_sdk_python-1.5.8.44.dist-info/RECORD +337 -0
- {kingsoftcloud_sdk_python-1.1.1.dist-info → kingsoftcloud_sdk_python-1.5.8.44.dist-info}/WHEEL +1 -1
- ksyun/__init__.py +1 -1
- ksyun/client/actiontrail/v20190401/client.py +1 -1
- ksyun/client/aicp/v20240612/client.py +1229 -0
- ksyun/client/aicp/v20240612/models.py +1778 -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 +3 -72
- ksyun/client/bill/v20180601/models.py +29 -41
- ksyun/client/bill/v20220601/__init__.py +0 -0
- ksyun/client/bill/v20220601/client.py +56 -0
- ksyun/client/bill/v20220601/models.py +54 -0
- ksyun/client/bill_union/v20200101/client.py +77 -8
- ksyun/client/bill_union/v20200101/models.py +118 -2
- ksyun/client/bill_union/v20221222/__init__.py +0 -0
- ksyun/client/bill_union/v20221222/client.py +148 -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 +56 -0
- ksyun/client/bill_union/v20250801/models.py +64 -0
- ksyun/client/bws/v20160304/client.py +29 -6
- 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 +79 -0
- ksyun/client/cdn/v20160901/models.py +51 -0
- ksyun/client/cdn/v20200630/__init__.py +0 -0
- ksyun/client/cdn/v20200630/client.py +401 -0
- ksyun/client/cdn/v20200630/models.py +826 -0
- ksyun/client/cdn/v20200901/__init__.py +0 -0
- ksyun/client/cdn/v20200901/client.py +171 -0
- ksyun/client/cdn/v20200901/models.py +224 -0
- ksyun/client/cdn/v20211201/__init__.py +0 -0
- ksyun/client/cdn/v20211201/client.py +33 -0
- ksyun/client/cdn/v20211201/models.py +23 -0
- ksyun/client/cdn/v3/__init__.py +0 -0
- ksyun/client/cdn/v3/client.py +999 -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 +608 -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 +907 -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 +79 -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 +470 -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 +447 -0
- ksyun/client/dts/v20180108/models.py +734 -0
- ksyun/client/ebs/v20160304/client.py +243 -36
- ksyun/client/ebs/v20160304/models.py +320 -66
- ksyun/client/eip/v20160304/client.py +122 -7
- ksyun/client/eip/v20160304/models.py +95 -1
- ksyun/client/epc/v20151101/client.py +1258 -131
- ksyun/client/epc/v20151101/models.py +2605 -134
- ksyun/client/iam/v20151101/client.py +271 -64
- ksyun/client/iam/v20151101/models.py +284 -28
- ksyun/client/iam/v20240513/__init__.py +0 -0
- ksyun/client/iam/v20240513/client.py +33 -0
- ksyun/client/iam/v20240513/models.py +33 -0
- ksyun/client/iam/v20240703/__init__.py +0 -0
- ksyun/client/iam/v20240703/client.py +33 -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 +631 -0
- ksyun/client/influxdb/v20191010/models.py +655 -0
- ksyun/client/kad/v20161122/client.py +52 -6
- 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 +401 -0
- ksyun/client/kce/v20180314/models.py +374 -0
- ksyun/client/kce/v20190806/__init__.py +0 -0
- ksyun/client/kce/v20190806/client.py +792 -0
- ksyun/client/kce/v20190806/models.py +1099 -0
- ksyun/client/kce/v20201231/__init__.py +0 -0
- ksyun/client/{bill_union/v20211209 → kce/v20201231}/client.py +9 -9
- ksyun/client/kce/v20201231/models.py +137 -0
- ksyun/client/kce/v20230101/__init__.py +0 -0
- ksyun/client/kce/v20230101/client.py +217 -0
- ksyun/client/kce/v20230101/models.py +259 -0
- ksyun/client/kce/v20230306/__init__.py +0 -0
- ksyun/client/kce/v20230306/client.py +516 -0
- ksyun/client/kce/v20230306/models.py +655 -0
- ksyun/client/kce/v20231115/__init__.py +0 -0
- ksyun/client/kce/v20231115/client.py +56 -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 +355 -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 +217 -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 +355 -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 +240 -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 +1022 -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 +1528 -0
- ksyun/client/kcs/v20160701/models.py +1917 -0
- ksyun/client/kcs/v20170401/__init__.py +0 -0
- ksyun/client/kcs/v20170401/client.py +33 -0
- ksyun/client/kcs/v20170401/models.py +28 -0
- ksyun/client/kcs/v20240701/__init__.py +0 -0
- ksyun/client/kcs/v20240701/client.py +33 -0
- ksyun/client/kcs/v20240701/models.py +23 -0
- ksyun/client/kead/v20200101/client.py +47 -1
- ksyun/client/kead/v20200101/models.py +52 -42
- ksyun/client/kec/v20160304/client.py +334 -127
- ksyun/client/kec/v20160304/models.py +701 -131
- ksyun/client/ked/__init__.py +0 -0
- ksyun/client/ked/v1/__init__.py +0 -0
- ksyun/client/ked/v1/client.py +1022 -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 +194 -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 +194 -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 +56 -0
- ksyun/client/kfw/v20160304/models.py +35 -0
- ksyun/client/kingpay/__init__.py +0 -0
- ksyun/client/kingpay/v1/__init__.py +0 -0
- ksyun/client/kingpay/v1/client.py +33 -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 +194 -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 +378 -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 +194 -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 +539 -0
- ksyun/client/kmr/v20210902/models.py +536 -0
- ksyun/client/kmr/v20231231/__init__.py +0 -0
- ksyun/client/kmr/v20231231/client.py +171 -0
- ksyun/client/kmr/v20231231/models.py +201 -0
- ksyun/client/kmr/v20240814/__init__.py +0 -0
- ksyun/client/kmr/v20240814/client.py +447 -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 +401 -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 +191 -0
- ksyun/client/krds/__init__.py +0 -0
- ksyun/client/krds/v20160701/__init__.py +0 -0
- ksyun/client/krds/v20160701/client.py +2103 -0
- ksyun/client/krds/v20160701/models.py +2722 -0
- ksyun/client/krds/v20200825/__init__.py +0 -0
- ksyun/client/krds/v20200825/client.py +240 -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 +309 -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 +447 -0
- ksyun/client/milvus/v20231010/models.py +520 -0
- ksyun/client/mongodb/v20170101/client.py +280 -50
- ksyun/client/mongodb/v20170101/models.py +251 -34
- ksyun/client/mongodb/v20250101/__init__.py +0 -0
- ksyun/client/mongodb/v20250101/client.py +33 -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 +56 -0
- ksyun/client/monitor/v20100525/models.py +108 -0
- ksyun/client/monitor/v20181114/__init__.py +0 -0
- ksyun/client/monitor/v20181114/client.py +33 -0
- ksyun/client/monitor/v20181114/models.py +59 -0
- ksyun/client/monitor/v20210101/__init__.py +0 -0
- ksyun/client/monitor/v20210101/client.py +286 -0
- ksyun/client/monitor/v20210101/models.py +330 -0
- ksyun/client/monitor/v20220101/__init__.py +0 -0
- ksyun/client/monitor/v20220101/client.py +56 -0
- ksyun/client/monitor/v20220101/models.py +32 -0
- ksyun/client/monitor/v20250101/__init__.py +0 -0
- ksyun/client/monitor/v20250101/client.py +79 -0
- ksyun/client/monitor/v20250101/models.py +156 -0
- ksyun/client/pdns/__init__.py +0 -0
- ksyun/client/pdns/v20160304/__init__.py +0 -0
- ksyun/client/pdns/v20160304/client.py +815 -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 +1160 -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 +447 -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/{slb/v20171210 → relyt/v20240117}/client.py +9 -9
- ksyun/client/relyt/v20240117/models.py +23 -0
- ksyun/client/resourcemanager/v20210320/client.py +8 -8
- ksyun/client/sks/v20151101/client.py +5 -5
- ksyun/client/sks/v20151101/models.py +7 -0
- ksyun/client/slb/v20160304/client.py +1051 -62
- ksyun/client/slb/v20160304/models.py +1692 -19
- ksyun/client/slb/v20250430/__init__.py +0 -0
- ksyun/client/slb/v20250430/client.py +815 -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 +1068 -0
- ksyun/client/sqlserver/v20190425/models.py +1528 -0
- ksyun/client/sts/v20151101/client.py +24 -1
- ksyun/client/sts/v20151101/models.py +54 -1
- ksyun/client/tagv2/v20200901/client.py +54 -8
- 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 +125 -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 +930 -0
- ksyun/client/tidb/v20210520/models.py +1162 -0
- ksyun/client/trade/v20200114/client.py +1 -1
- ksyun/client/trade/v20200831/client.py +1 -1
- ksyun/client/trade/v20250220/__init__.py +0 -0
- ksyun/client/trade/v20250220/client.py +102 -0
- ksyun/client/trade/v20250220/models.py +91 -0
- ksyun/client/trade/v20250321/__init__.py +0 -0
- ksyun/client/trade/v20250321/client.py +102 -0
- ksyun/client/trade/v20250321/models.py +71 -0
- ksyun/client/trade/v20250828/__init__.py +0 -0
- ksyun/client/trade/v20250828/client.py +33 -0
- ksyun/client/trade/v20250828/models.py +81 -0
- ksyun/client/vpc/v20160304/client.py +1297 -147
- ksyun/client/vpc/v20160304/models.py +1536 -139
- ksyun/client/waf/__init__.py +0 -0
- ksyun/client/waf/v20200707/__init__.py +0 -0
- ksyun/client/waf/v20200707/client.py +470 -0
- ksyun/client/waf/v20200707/models.py +738 -0
- ksyun/common/abstract_client.py +42 -18
- ksyun/common/http/request.py +43 -6
- ksyun/common/profile/http_profile.py +26 -1
- 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.44.dist-info/licenses}/LICENSE +0 -0
- {kingsoftcloud_sdk_python-1.1.1.dist-info → kingsoftcloud_sdk_python-1.5.8.44.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
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
from ksyun.common.abstract_model import AbstractModel
|
|
2
|
+
|
|
3
|
+
class PresetRequest(AbstractModel):
|
|
4
|
+
"""Preset请求参数结构体
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
def __init__(self):
|
|
8
|
+
r"""add preset
|
|
9
|
+
:param UniqName:
|
|
10
|
+
:type PathPrefix: String
|
|
11
|
+
:param App:
|
|
12
|
+
:type PathPrefix: String
|
|
13
|
+
:param Preset:
|
|
14
|
+
:type PathPrefix: String
|
|
15
|
+
:param Description:
|
|
16
|
+
:type PathPrefix: String
|
|
17
|
+
:param Output:
|
|
18
|
+
:type PathPrefix: String
|
|
19
|
+
:param Video:
|
|
20
|
+
:type PathPrefix: String
|
|
21
|
+
"""
|
|
22
|
+
self.UniqName = None
|
|
23
|
+
self.App = None
|
|
24
|
+
self.Preset = None
|
|
25
|
+
self.Description = None
|
|
26
|
+
self.Output = None
|
|
27
|
+
self.Video = None
|
|
28
|
+
|
|
29
|
+
def _deserialize(self, params):
|
|
30
|
+
if params.get("UniqName"):
|
|
31
|
+
self.UniqName = params.get("UniqName")
|
|
32
|
+
if params.get("App"):
|
|
33
|
+
self.App = params.get("App")
|
|
34
|
+
if params.get("Preset"):
|
|
35
|
+
self.Preset = params.get("Preset")
|
|
36
|
+
if params.get("Description"):
|
|
37
|
+
self.Description = params.get("Description")
|
|
38
|
+
if params.get("Output"):
|
|
39
|
+
self.Output = params.get("Output")
|
|
40
|
+
if params.get("Video"):
|
|
41
|
+
self.Video = params.get("Video")
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
class UpdatePresetRequest(AbstractModel):
|
|
45
|
+
"""UpdatePreset请求参数结构体
|
|
46
|
+
"""
|
|
47
|
+
|
|
48
|
+
def __init__(self):
|
|
49
|
+
r"""update preset
|
|
50
|
+
:param UniqName: 客户的域名标识
|
|
51
|
+
:type PathPrefix: String
|
|
52
|
+
:param App: 客户的频道名
|
|
53
|
+
:type PathPrefix: String
|
|
54
|
+
:param Preset: 模板名
|
|
55
|
+
:type PathPrefix: String
|
|
56
|
+
:param Description: 模板描述
|
|
57
|
+
:type PathPrefix: String
|
|
58
|
+
:param Output: 转码输出参数集
|
|
59
|
+
:type PathPrefix: String
|
|
60
|
+
:param Video: 转码输出视频补充参数集
|
|
61
|
+
:type PathPrefix: String
|
|
62
|
+
"""
|
|
63
|
+
self.UniqName = None
|
|
64
|
+
self.App = None
|
|
65
|
+
self.Preset = None
|
|
66
|
+
self.Description = None
|
|
67
|
+
self.Output = None
|
|
68
|
+
self.Video = None
|
|
69
|
+
|
|
70
|
+
def _deserialize(self, params):
|
|
71
|
+
if params.get("UniqName"):
|
|
72
|
+
self.UniqName = params.get("UniqName")
|
|
73
|
+
if params.get("App"):
|
|
74
|
+
self.App = params.get("App")
|
|
75
|
+
if params.get("Preset"):
|
|
76
|
+
self.Preset = params.get("Preset")
|
|
77
|
+
if params.get("Description"):
|
|
78
|
+
self.Description = params.get("Description")
|
|
79
|
+
if params.get("Output"):
|
|
80
|
+
self.Output = params.get("Output")
|
|
81
|
+
if params.get("Video"):
|
|
82
|
+
self.Video = params.get("Video")
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
class DelPresetRequest(AbstractModel):
|
|
86
|
+
"""DelPreset请求参数结构体
|
|
87
|
+
"""
|
|
88
|
+
|
|
89
|
+
def __init__(self):
|
|
90
|
+
r"""delete preset
|
|
91
|
+
:param UniqName: 客户的域名标识
|
|
92
|
+
:type PathPrefix: String
|
|
93
|
+
:param App: 客户的频道名
|
|
94
|
+
:type PathPrefix: String
|
|
95
|
+
:param Preset: 模板名
|
|
96
|
+
:type PathPrefix: String
|
|
97
|
+
"""
|
|
98
|
+
self.UniqName = None
|
|
99
|
+
self.App = None
|
|
100
|
+
self.Preset = None
|
|
101
|
+
|
|
102
|
+
def _deserialize(self, params):
|
|
103
|
+
if params.get("UniqName"):
|
|
104
|
+
self.UniqName = params.get("UniqName")
|
|
105
|
+
if params.get("App"):
|
|
106
|
+
self.App = params.get("App")
|
|
107
|
+
if params.get("Preset"):
|
|
108
|
+
self.Preset = params.get("Preset")
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
class GetPresetListRequest(AbstractModel):
|
|
112
|
+
"""GetPresetList请求参数结构体
|
|
113
|
+
"""
|
|
114
|
+
|
|
115
|
+
def __init__(self):
|
|
116
|
+
r"""get preset list
|
|
117
|
+
:param UniqName: 客户的域名标识
|
|
118
|
+
:type PathPrefix: String
|
|
119
|
+
:param App: 客户的频道名
|
|
120
|
+
:type PathPrefix: String
|
|
121
|
+
"""
|
|
122
|
+
self.UniqName = None
|
|
123
|
+
self.App = None
|
|
124
|
+
|
|
125
|
+
def _deserialize(self, params):
|
|
126
|
+
if params.get("UniqName"):
|
|
127
|
+
self.UniqName = params.get("UniqName")
|
|
128
|
+
if params.get("App"):
|
|
129
|
+
self.App = params.get("App")
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
class GetPresetDetailRequest(AbstractModel):
|
|
133
|
+
"""GetPresetDetail请求参数结构体
|
|
134
|
+
"""
|
|
135
|
+
|
|
136
|
+
def __init__(self):
|
|
137
|
+
r"""get preset detail
|
|
138
|
+
:param UniqName: 客户的域名标识
|
|
139
|
+
:type PathPrefix: String
|
|
140
|
+
:param App: 客户的频道名
|
|
141
|
+
:type PathPrefix: String
|
|
142
|
+
:param Preset: 模板名称
|
|
143
|
+
:type PathPrefix: String
|
|
144
|
+
"""
|
|
145
|
+
self.UniqName = None
|
|
146
|
+
self.App = None
|
|
147
|
+
self.Preset = None
|
|
148
|
+
|
|
149
|
+
def _deserialize(self, params):
|
|
150
|
+
if params.get("UniqName"):
|
|
151
|
+
self.UniqName = params.get("UniqName")
|
|
152
|
+
if params.get("App"):
|
|
153
|
+
self.App = params.get("App")
|
|
154
|
+
if params.get("Preset"):
|
|
155
|
+
self.Preset = params.get("Preset")
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
class GetStreamTranListRequest(AbstractModel):
|
|
159
|
+
"""GetStreamTranList请求参数结构体
|
|
160
|
+
"""
|
|
161
|
+
|
|
162
|
+
def __init__(self):
|
|
163
|
+
r"""get stream tran list
|
|
164
|
+
:param UniqName: 客户的域名标识
|
|
165
|
+
:type PathPrefix: String
|
|
166
|
+
:param App: 客户的频道名
|
|
167
|
+
:type PathPrefix: String
|
|
168
|
+
:param StreamID: 流名称
|
|
169
|
+
:type PathPrefix: String
|
|
170
|
+
"""
|
|
171
|
+
self.UniqName = None
|
|
172
|
+
self.App = None
|
|
173
|
+
self.StreamID = None
|
|
174
|
+
|
|
175
|
+
def _deserialize(self, params):
|
|
176
|
+
if params.get("UniqName"):
|
|
177
|
+
self.UniqName = params.get("UniqName")
|
|
178
|
+
if params.get("App"):
|
|
179
|
+
self.App = params.get("App")
|
|
180
|
+
if params.get("StreamID"):
|
|
181
|
+
self.StreamID = params.get("StreamID")
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
class StartLoopRequest(AbstractModel):
|
|
185
|
+
"""StartLoop请求参数结构体
|
|
186
|
+
"""
|
|
187
|
+
|
|
188
|
+
def __init__(self):
|
|
189
|
+
r"""start loop tran
|
|
190
|
+
:param UniqName: 域名空间
|
|
191
|
+
:type PathPrefix: String
|
|
192
|
+
:param App: 应用名
|
|
193
|
+
:type PathPrefix: String
|
|
194
|
+
:param Preset: 模板名称,支持配置:视频帧率、视频码率、音频码率、视频分辨率
|
|
195
|
+
:type PathPrefix: String
|
|
196
|
+
:param StreamID: 轮播流名
|
|
197
|
+
:type PathPrefix: String
|
|
198
|
+
:param SrcInfo: 轮播源文件信息,数组,每项包括文件路径(金山云KS3内网URL)和顺序参数。发起轮播前请先确认轮播源文件是否存在。最多可以支持100个轮播任务。
|
|
199
|
+
:type PathPrefix: Array
|
|
200
|
+
:param PubDomain: 用来轮播的推流域名
|
|
201
|
+
:type PathPrefix: String
|
|
202
|
+
:param TaskStartTime: 任务开始时间戳,指定轮播流启动播放时间,精确到秒,不填默认下发后立即开始轮播。只能填当前时间1分钟之后的时间。
|
|
203
|
+
:type PathPrefix: String
|
|
204
|
+
:param TaskStopTime: 任务结束时间戳,指定轮播流结束播放时间,精确到秒,不填默认结束时间为开始时间之后20天。TaskStopTime-TaskStartTime必须>30s。
|
|
205
|
+
:type PathPrefix: String
|
|
206
|
+
:param LoopTimes: 文件轮播次数,与TaskStopTime冲突时,以TaskStopTime为准,如果需要以轮播次数为准,TaskStopTime不填。
|
|
207
|
+
:type PathPrefix: Int
|
|
208
|
+
"""
|
|
209
|
+
self.UniqName = None
|
|
210
|
+
self.App = None
|
|
211
|
+
self.Preset = None
|
|
212
|
+
self.StreamID = None
|
|
213
|
+
self.SrcInfo = None
|
|
214
|
+
self.PubDomain = None
|
|
215
|
+
self.TaskStartTime = None
|
|
216
|
+
self.TaskStopTime = None
|
|
217
|
+
self.LoopTimes = None
|
|
218
|
+
|
|
219
|
+
def _deserialize(self, params):
|
|
220
|
+
if params.get("UniqName"):
|
|
221
|
+
self.UniqName = params.get("UniqName")
|
|
222
|
+
if params.get("App"):
|
|
223
|
+
self.App = params.get("App")
|
|
224
|
+
if params.get("Preset"):
|
|
225
|
+
self.Preset = params.get("Preset")
|
|
226
|
+
if params.get("StreamID"):
|
|
227
|
+
self.StreamID = params.get("StreamID")
|
|
228
|
+
if params.get("SrcInfo"):
|
|
229
|
+
self.SrcInfo = params.get("SrcInfo")
|
|
230
|
+
if params.get("PubDomain"):
|
|
231
|
+
self.PubDomain = params.get("PubDomain")
|
|
232
|
+
if params.get("TaskStartTime"):
|
|
233
|
+
self.TaskStartTime = params.get("TaskStartTime")
|
|
234
|
+
if params.get("TaskStopTime"):
|
|
235
|
+
self.TaskStopTime = params.get("TaskStopTime")
|
|
236
|
+
if params.get("LoopTimes"):
|
|
237
|
+
self.LoopTimes = params.get("LoopTimes")
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
class StopLoopRequest(AbstractModel):
|
|
241
|
+
"""StopLoop请求参数结构体
|
|
242
|
+
"""
|
|
243
|
+
|
|
244
|
+
def __init__(self):
|
|
245
|
+
r"""stop loop tran
|
|
246
|
+
:param UniqName: 域名空间
|
|
247
|
+
:type PathPrefix: String
|
|
248
|
+
:param App: 应用名
|
|
249
|
+
:type PathPrefix: String
|
|
250
|
+
:param StreamID: 轮播流名
|
|
251
|
+
:type PathPrefix: String
|
|
252
|
+
"""
|
|
253
|
+
self.UniqName = None
|
|
254
|
+
self.App = None
|
|
255
|
+
self.StreamID = None
|
|
256
|
+
|
|
257
|
+
def _deserialize(self, params):
|
|
258
|
+
if params.get("UniqName"):
|
|
259
|
+
self.UniqName = params.get("UniqName")
|
|
260
|
+
if params.get("App"):
|
|
261
|
+
self.App = params.get("App")
|
|
262
|
+
if params.get("StreamID"):
|
|
263
|
+
self.StreamID = params.get("StreamID")
|
|
264
|
+
|
|
265
|
+
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,56 @@
|
|
|
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 KfwClient(AbstractClient):
|
|
8
|
+
_apiVersion = '2016-03-04'
|
|
9
|
+
_endpoint = 'kfw.api.ksyun.com'
|
|
10
|
+
_service = 'kfw'
|
|
11
|
+
def DescribeCfwAv(self, request):
|
|
12
|
+
"""查询防病毒
|
|
13
|
+
:param request: Request instance for DescribeCfwAv.
|
|
14
|
+
:type request: :class:`ksyun.client.kfw.v20160304.models.DescribeCfwAvRequest`
|
|
15
|
+
"""
|
|
16
|
+
try:
|
|
17
|
+
params = request._serialize()
|
|
18
|
+
body = self.call_judge("DescribeCfwAv", params, "application/x-www-form-urlencoded")
|
|
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(e.message, e.message)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def DeleteBatchCfwAddrbook(self, request):
|
|
35
|
+
"""批量删除地址簿
|
|
36
|
+
:param request: Request instance for DeleteBatchCfwAddrbook.
|
|
37
|
+
:type request: :class:`ksyun.client.kfw.v20160304.models.DeleteBatchCfwAddrbookRequest`
|
|
38
|
+
"""
|
|
39
|
+
try:
|
|
40
|
+
params = request._serialize()
|
|
41
|
+
body = self.call_judge("DeleteBatchCfwAddrbook", 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(e.message, e.message)
|
|
55
|
+
|
|
56
|
+
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
from ksyun.common.abstract_model import AbstractModel
|
|
2
|
+
|
|
3
|
+
class DescribeCfwAvRequest(AbstractModel):
|
|
4
|
+
"""DescribeCfwAv请求参数结构体
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
def __init__(self):
|
|
8
|
+
r"""查询防病毒
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
def _deserialize(self, params):
|
|
12
|
+
return
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
class DeleteBatchCfwAddrbookRequest(AbstractModel):
|
|
16
|
+
"""DeleteBatchCfwAddrbook请求参数结构体
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
def __init__(self):
|
|
20
|
+
r"""批量删除地址簿
|
|
21
|
+
:param AddrbookIds: 要删除的地址簿ID列表,单次删除数量不能超过1000条
|
|
22
|
+
:type PathPrefix: Array
|
|
23
|
+
:param CfwInstanceId: 防火墙实例ID
|
|
24
|
+
:type PathPrefix: String
|
|
25
|
+
"""
|
|
26
|
+
self.AddrbookIds = None
|
|
27
|
+
self.CfwInstanceId = None
|
|
28
|
+
|
|
29
|
+
def _deserialize(self, params):
|
|
30
|
+
if params.get("AddrbookIds"):
|
|
31
|
+
self.AddrbookIds = params.get("AddrbookIds")
|
|
32
|
+
if params.get("CfwInstanceId"):
|
|
33
|
+
self.CfwInstanceId = params.get("CfwInstanceId")
|
|
34
|
+
|
|
35
|
+
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,33 @@
|
|
|
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 KingpayClient(AbstractClient):
|
|
8
|
+
_apiVersion = 'V1'
|
|
9
|
+
_endpoint = 'kingpay.api.ksyun.com'
|
|
10
|
+
_service = 'kingpay'
|
|
11
|
+
def QueryCashWalletAction(self, request):
|
|
12
|
+
"""获取用户账户余额
|
|
13
|
+
:param request: Request instance for QueryCashWalletAction.
|
|
14
|
+
:type request: :class:`ksyun.client.kingpay.v1.models.QueryCashWalletActionRequest`
|
|
15
|
+
"""
|
|
16
|
+
try:
|
|
17
|
+
params = request._serialize()
|
|
18
|
+
body = self.call_judge("QueryCashWalletAction", params, "application/x-www-form-urlencoded")
|
|
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(e.message, e.message)
|
|
32
|
+
|
|
33
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
from ksyun.common.abstract_model import AbstractModel
|
|
2
|
+
|
|
3
|
+
class QueryCashWalletActionRequest(AbstractModel):
|
|
4
|
+
"""QueryCashWalletAction请求参数结构体
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
def __init__(self):
|
|
8
|
+
r"""获取用户账户余额
|
|
9
|
+
:param subject: 1:金山云,2:边缘云
|
|
10
|
+
:type PathPrefix: Int
|
|
11
|
+
"""
|
|
12
|
+
self.subject = None
|
|
13
|
+
|
|
14
|
+
def _deserialize(self, params):
|
|
15
|
+
if params.get("subject"):
|
|
16
|
+
self.subject = params.get("subject")
|
|
17
|
+
|
|
18
|
+
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,194 @@
|
|
|
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 KkmsClient(AbstractClient):
|
|
8
|
+
_apiVersion = '2016-03-04'
|
|
9
|
+
_endpoint = 'kkms.api.ksyun.com'
|
|
10
|
+
_service = 'kkms'
|
|
11
|
+
def CreateKey(self, request):
|
|
12
|
+
"""创建用户的主密钥
|
|
13
|
+
:param request: Request instance for CreateKey.
|
|
14
|
+
:type request: :class:`ksyun.client.kkms.v20160304.models.CreateKeyRequest`
|
|
15
|
+
"""
|
|
16
|
+
try:
|
|
17
|
+
params = request._serialize()
|
|
18
|
+
body = self.call_judge("CreateKey", params, "application/x-www-form-urlencoded")
|
|
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(e.message, e.message)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def ModifyKey(self, request):
|
|
35
|
+
"""修改用户主密钥
|
|
36
|
+
:param request: Request instance for ModifyKey.
|
|
37
|
+
:type request: :class:`ksyun.client.kkms.v20160304.models.ModifyKeyRequest`
|
|
38
|
+
"""
|
|
39
|
+
try:
|
|
40
|
+
params = request._serialize()
|
|
41
|
+
body = self.call_judge("ModifyKey", 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(e.message, e.message)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
def ModifyKeyState(self, request):
|
|
58
|
+
"""修改用户主密钥的状态
|
|
59
|
+
:param request: Request instance for ModifyKeyState.
|
|
60
|
+
:type request: :class:`ksyun.client.kkms.v20160304.models.ModifyKeyStateRequest`
|
|
61
|
+
"""
|
|
62
|
+
try:
|
|
63
|
+
params = request._serialize()
|
|
64
|
+
body = self.call_judge("ModifyKeyState", params, "application/x-www-form-urlencoded")
|
|
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(e.message, e.message)
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
def DeleteKey(self, request):
|
|
81
|
+
"""删除用户主密钥
|
|
82
|
+
:param request: Request instance for DeleteKey.
|
|
83
|
+
:type request: :class:`ksyun.client.kkms.v20160304.models.DeleteKeyRequest`
|
|
84
|
+
"""
|
|
85
|
+
try:
|
|
86
|
+
params = request._serialize()
|
|
87
|
+
body = self.call_judge("DeleteKey", params, "application/x-www-form-urlencoded")
|
|
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(e.message, e.message)
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
def DescribeKeys(self, request):
|
|
104
|
+
"""查询用户主密钥信息
|
|
105
|
+
:param request: Request instance for DescribeKeys.
|
|
106
|
+
:type request: :class:`ksyun.client.kkms.v20160304.models.DescribeKeysRequest`
|
|
107
|
+
"""
|
|
108
|
+
try:
|
|
109
|
+
params = request._serialize()
|
|
110
|
+
body = self.call_judge("DescribeKeys", params, "application/x-www-form-urlencoded")
|
|
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(e.message, e.message)
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
def Encrypt(self, request):
|
|
127
|
+
"""加密明文数据
|
|
128
|
+
:param request: Request instance for Encrypt.
|
|
129
|
+
:type request: :class:`ksyun.client.kkms.v20160304.models.EncryptRequest`
|
|
130
|
+
"""
|
|
131
|
+
try:
|
|
132
|
+
params = request._serialize()
|
|
133
|
+
body = self.call_judge("Encrypt", params, "application/x-www-form-urlencoded")
|
|
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(e.message, e.message)
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
def Decrypt(self, request):
|
|
150
|
+
"""解密密文数据
|
|
151
|
+
:param request: Request instance for Decrypt.
|
|
152
|
+
:type request: :class:`ksyun.client.kkms.v20160304.models.DecryptRequest`
|
|
153
|
+
"""
|
|
154
|
+
try:
|
|
155
|
+
params = request._serialize()
|
|
156
|
+
body = self.call_judge("Decrypt", params, "application/x-www-form-urlencoded")
|
|
157
|
+
response = json.loads(body)
|
|
158
|
+
if "Error" not in response:
|
|
159
|
+
return body
|
|
160
|
+
else:
|
|
161
|
+
code = response["Error"]["Code"]
|
|
162
|
+
message = response["Error"]["Message"]
|
|
163
|
+
req_id = response["RequestId"]
|
|
164
|
+
raise KsyunSDKException(code, message, req_id)
|
|
165
|
+
except Exception as e:
|
|
166
|
+
if isinstance(e, KsyunSDKException):
|
|
167
|
+
raise
|
|
168
|
+
else:
|
|
169
|
+
raise KsyunSDKException(e.message, e.message)
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
def GenerateDataKey(self, request):
|
|
173
|
+
"""创建数据密钥
|
|
174
|
+
:param request: Request instance for GenerateDataKey.
|
|
175
|
+
:type request: :class:`ksyun.client.kkms.v20160304.models.GenerateDataKeyRequest`
|
|
176
|
+
"""
|
|
177
|
+
try:
|
|
178
|
+
params = request._serialize()
|
|
179
|
+
body = self.call_judge("GenerateDataKey", params, "application/x-www-form-urlencoded")
|
|
180
|
+
response = json.loads(body)
|
|
181
|
+
if "Error" not in response:
|
|
182
|
+
return body
|
|
183
|
+
else:
|
|
184
|
+
code = response["Error"]["Code"]
|
|
185
|
+
message = response["Error"]["Message"]
|
|
186
|
+
req_id = response["RequestId"]
|
|
187
|
+
raise KsyunSDKException(code, message, req_id)
|
|
188
|
+
except Exception as e:
|
|
189
|
+
if isinstance(e, KsyunSDKException):
|
|
190
|
+
raise
|
|
191
|
+
else:
|
|
192
|
+
raise KsyunSDKException(e.message, e.message)
|
|
193
|
+
|
|
194
|
+
|