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,185 @@
|
|
|
1
|
+
from ksyun.common.abstract_model import AbstractModel
|
|
2
|
+
|
|
3
|
+
class CreateKeyRequest(AbstractModel):
|
|
4
|
+
"""CreateKey请求参数结构体
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
def __init__(self):
|
|
8
|
+
r"""创建用户的主密钥
|
|
9
|
+
:param KeyName: 客户主KEY的名称
|
|
10
|
+
:type PathPrefix: String
|
|
11
|
+
:param Description: 备注
|
|
12
|
+
:type PathPrefix: String
|
|
13
|
+
:param KeyUsage: 客户主KEY的用途,仅可用于对称加密和解密
|
|
14
|
+
:type PathPrefix: String
|
|
15
|
+
:param Origin: 客户的主KEY的来源
|
|
16
|
+
:type PathPrefix: String
|
|
17
|
+
:param ChargeType: KKMS的计费类型
|
|
18
|
+
:type PathPrefix: String
|
|
19
|
+
"""
|
|
20
|
+
self.KeyName = None
|
|
21
|
+
self.Description = None
|
|
22
|
+
self.KeyUsage = None
|
|
23
|
+
self.Origin = None
|
|
24
|
+
self.ChargeType = None
|
|
25
|
+
|
|
26
|
+
def _deserialize(self, params):
|
|
27
|
+
if params.get("KeyName"):
|
|
28
|
+
self.KeyName = params.get("KeyName")
|
|
29
|
+
if params.get("Description"):
|
|
30
|
+
self.Description = params.get("Description")
|
|
31
|
+
if params.get("KeyUsage"):
|
|
32
|
+
self.KeyUsage = params.get("KeyUsage")
|
|
33
|
+
if params.get("Origin"):
|
|
34
|
+
self.Origin = params.get("Origin")
|
|
35
|
+
if params.get("ChargeType"):
|
|
36
|
+
self.ChargeType = params.get("ChargeType")
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class ModifyKeyRequest(AbstractModel):
|
|
40
|
+
"""ModifyKey请求参数结构体
|
|
41
|
+
"""
|
|
42
|
+
|
|
43
|
+
def __init__(self):
|
|
44
|
+
r"""修改用户主密钥
|
|
45
|
+
:param KeyId: 客户主KEY的ID
|
|
46
|
+
:type PathPrefix: String
|
|
47
|
+
:param KeyName: 客户主KEY的名称
|
|
48
|
+
:type PathPrefix: String
|
|
49
|
+
:param Description: 备注
|
|
50
|
+
:type PathPrefix: String
|
|
51
|
+
"""
|
|
52
|
+
self.KeyId = None
|
|
53
|
+
self.KeyName = None
|
|
54
|
+
self.Description = None
|
|
55
|
+
|
|
56
|
+
def _deserialize(self, params):
|
|
57
|
+
if params.get("KeyId"):
|
|
58
|
+
self.KeyId = params.get("KeyId")
|
|
59
|
+
if params.get("KeyName"):
|
|
60
|
+
self.KeyName = params.get("KeyName")
|
|
61
|
+
if params.get("Description"):
|
|
62
|
+
self.Description = params.get("Description")
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
class ModifyKeyStateRequest(AbstractModel):
|
|
66
|
+
"""ModifyKeyState请求参数结构体
|
|
67
|
+
"""
|
|
68
|
+
|
|
69
|
+
def __init__(self):
|
|
70
|
+
r"""修改用户主密钥的状态
|
|
71
|
+
:param KeyId: 客户主KEY的ID
|
|
72
|
+
:type PathPrefix: String
|
|
73
|
+
:param KeyState: KEY的状态
|
|
74
|
+
:type PathPrefix: String
|
|
75
|
+
"""
|
|
76
|
+
self.KeyId = None
|
|
77
|
+
self.KeyState = None
|
|
78
|
+
|
|
79
|
+
def _deserialize(self, params):
|
|
80
|
+
if params.get("KeyId"):
|
|
81
|
+
self.KeyId = params.get("KeyId")
|
|
82
|
+
if params.get("KeyState"):
|
|
83
|
+
self.KeyState = params.get("KeyState")
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
class DeleteKeyRequest(AbstractModel):
|
|
87
|
+
"""DeleteKey请求参数结构体
|
|
88
|
+
"""
|
|
89
|
+
|
|
90
|
+
def __init__(self):
|
|
91
|
+
r"""删除用户主密钥
|
|
92
|
+
:param KeyId: 客户主KEY的ID
|
|
93
|
+
:type PathPrefix: String
|
|
94
|
+
"""
|
|
95
|
+
self.KeyId = None
|
|
96
|
+
|
|
97
|
+
def _deserialize(self, params):
|
|
98
|
+
if params.get("KeyId"):
|
|
99
|
+
self.KeyId = params.get("KeyId")
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
class DescribeKeysRequest(AbstractModel):
|
|
103
|
+
"""DescribeKeys请求参数结构体
|
|
104
|
+
"""
|
|
105
|
+
|
|
106
|
+
def __init__(self):
|
|
107
|
+
r"""查询用户主密钥信息
|
|
108
|
+
:param KeyId: 客户主KEY的ID
|
|
109
|
+
:type PathPrefix: Filter
|
|
110
|
+
"""
|
|
111
|
+
self.KeyId = None
|
|
112
|
+
|
|
113
|
+
def _deserialize(self, params):
|
|
114
|
+
if params.get("KeyId"):
|
|
115
|
+
self.KeyId = params.get("KeyId")
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
class EncryptRequest(AbstractModel):
|
|
119
|
+
"""Encrypt请求参数结构体
|
|
120
|
+
"""
|
|
121
|
+
|
|
122
|
+
def __init__(self):
|
|
123
|
+
r"""加密明文数据
|
|
124
|
+
:param KeyId: 客户主KEY的ID
|
|
125
|
+
:type PathPrefix: String
|
|
126
|
+
:param Plaintext: 明文数据,最多长度不超过4096
|
|
127
|
+
:type PathPrefix: String
|
|
128
|
+
"""
|
|
129
|
+
self.KeyId = None
|
|
130
|
+
self.Plaintext = None
|
|
131
|
+
|
|
132
|
+
def _deserialize(self, params):
|
|
133
|
+
if params.get("KeyId"):
|
|
134
|
+
self.KeyId = params.get("KeyId")
|
|
135
|
+
if params.get("Plaintext"):
|
|
136
|
+
self.Plaintext = params.get("Plaintext")
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
class DecryptRequest(AbstractModel):
|
|
140
|
+
"""Decrypt请求参数结构体
|
|
141
|
+
"""
|
|
142
|
+
|
|
143
|
+
def __init__(self):
|
|
144
|
+
r"""解密密文数据
|
|
145
|
+
:param KeyId: 客户主KEY的ID
|
|
146
|
+
:type PathPrefix: String
|
|
147
|
+
:param CiphertextBlob: 密文数据
|
|
148
|
+
:type PathPrefix: String
|
|
149
|
+
"""
|
|
150
|
+
self.KeyId = None
|
|
151
|
+
self.CiphertextBlob = None
|
|
152
|
+
|
|
153
|
+
def _deserialize(self, params):
|
|
154
|
+
if params.get("KeyId"):
|
|
155
|
+
self.KeyId = params.get("KeyId")
|
|
156
|
+
if params.get("CiphertextBlob"):
|
|
157
|
+
self.CiphertextBlob = params.get("CiphertextBlob")
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
class GenerateDataKeyRequest(AbstractModel):
|
|
161
|
+
"""GenerateDataKey请求参数结构体
|
|
162
|
+
"""
|
|
163
|
+
|
|
164
|
+
def __init__(self):
|
|
165
|
+
r"""创建数据密钥
|
|
166
|
+
:param KeyId: 客户主KEY的ID
|
|
167
|
+
:type PathPrefix: String
|
|
168
|
+
:param KeySpec: 数据加密密钥(DataKey)的长度。使用AES128生成128位对称密钥,或AES256生成256位对称密钥
|
|
169
|
+
:type PathPrefix: String
|
|
170
|
+
:param NumberOfBytes: DataKey的长度为字节。例如,使用值64生成512位。数据键(64字节为512位)。对于公共密钥长度(128位和256位对称密钥),我们建议您使用KEYSPEC字段,而不是使用此键字段。
|
|
171
|
+
:type PathPrefix: Int
|
|
172
|
+
"""
|
|
173
|
+
self.KeyId = None
|
|
174
|
+
self.KeySpec = None
|
|
175
|
+
self.NumberOfBytes = None
|
|
176
|
+
|
|
177
|
+
def _deserialize(self, params):
|
|
178
|
+
if params.get("KeyId"):
|
|
179
|
+
self.KeyId = params.get("KeyId")
|
|
180
|
+
if params.get("KeySpec"):
|
|
181
|
+
self.KeySpec = params.get("KeySpec")
|
|
182
|
+
if params.get("NumberOfBytes"):
|
|
183
|
+
self.NumberOfBytes = params.get("NumberOfBytes")
|
|
184
|
+
|
|
185
|
+
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,378 @@
|
|
|
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 KlogClient(AbstractClient):
|
|
8
|
+
_apiVersion = '2020-07-31'
|
|
9
|
+
_endpoint = 'klog.api.ksyun.com'
|
|
10
|
+
_service = 'klog'
|
|
11
|
+
def CreateProject(self, request):
|
|
12
|
+
"""创建新工程
|
|
13
|
+
:param request: Request instance for CreateProject.
|
|
14
|
+
:type request: :class:`ksyun.client.klog.v20200731.models.CreateProjectRequest`
|
|
15
|
+
"""
|
|
16
|
+
try:
|
|
17
|
+
params = request._serialize()
|
|
18
|
+
body = self.call_judge("CreateProject", 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(e.message, e.message)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def DescribeProject(self, request):
|
|
35
|
+
"""展示工程详情
|
|
36
|
+
:param request: Request instance for DescribeProject.
|
|
37
|
+
:type request: :class:`ksyun.client.klog.v20200731.models.DescribeProjectRequest`
|
|
38
|
+
"""
|
|
39
|
+
try:
|
|
40
|
+
params = request._serialize()
|
|
41
|
+
body = self.call_judge("DescribeProject", 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(e.message, e.message)
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
def UpdateProject(self, request):
|
|
58
|
+
"""更新工程信息
|
|
59
|
+
:param request: Request instance for UpdateProject.
|
|
60
|
+
:type request: :class:`ksyun.client.klog.v20200731.models.UpdateProjectRequest`
|
|
61
|
+
"""
|
|
62
|
+
try:
|
|
63
|
+
params = request._serialize()
|
|
64
|
+
body = self.call_judge("UpdateProject", 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(e.message, e.message)
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
def DeleteProject(self, request):
|
|
81
|
+
"""删除该工程
|
|
82
|
+
:param request: Request instance for DeleteProject.
|
|
83
|
+
:type request: :class:`ksyun.client.klog.v20200731.models.DeleteProjectRequest`
|
|
84
|
+
"""
|
|
85
|
+
try:
|
|
86
|
+
params = request._serialize()
|
|
87
|
+
body = self.call_judge("DeleteProject", 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(e.message, e.message)
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
def ListProjects(self, request):
|
|
104
|
+
"""查看工程列表
|
|
105
|
+
:param request: Request instance for ListProjects.
|
|
106
|
+
:type request: :class:`ksyun.client.klog.v20200731.models.ListProjectsRequest`
|
|
107
|
+
"""
|
|
108
|
+
try:
|
|
109
|
+
params = request._serialize()
|
|
110
|
+
body = self.call_judge("ListProjects", 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(e.message, e.message)
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
def CreateLogPool(self, request):
|
|
127
|
+
"""创建日志池
|
|
128
|
+
:param request: Request instance for CreateLogPool.
|
|
129
|
+
:type request: :class:`ksyun.client.klog.v20200731.models.CreateLogPoolRequest`
|
|
130
|
+
"""
|
|
131
|
+
try:
|
|
132
|
+
params = request._serialize()
|
|
133
|
+
body = self.call_judge("CreateLogPool", 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(e.message, e.message)
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
def DescribeLogPool(self, request):
|
|
150
|
+
"""日志池详情
|
|
151
|
+
:param request: Request instance for DescribeLogPool.
|
|
152
|
+
:type request: :class:`ksyun.client.klog.v20200731.models.DescribeLogPoolRequest`
|
|
153
|
+
"""
|
|
154
|
+
try:
|
|
155
|
+
params = request._serialize()
|
|
156
|
+
body = self.call_judge("DescribeLogPool", params, "application/json")
|
|
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 UpdateLogPool(self, request):
|
|
173
|
+
"""修改日志池
|
|
174
|
+
:param request: Request instance for UpdateLogPool.
|
|
175
|
+
:type request: :class:`ksyun.client.klog.v20200731.models.UpdateLogPoolRequest`
|
|
176
|
+
"""
|
|
177
|
+
try:
|
|
178
|
+
params = request._serialize()
|
|
179
|
+
body = self.call_judge("UpdateLogPool", params, "application/json")
|
|
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
|
+
|
|
195
|
+
def DeleteLogPool(self, request):
|
|
196
|
+
"""删除日志池
|
|
197
|
+
:param request: Request instance for DeleteLogPool.
|
|
198
|
+
:type request: :class:`ksyun.client.klog.v20200731.models.DeleteLogPoolRequest`
|
|
199
|
+
"""
|
|
200
|
+
try:
|
|
201
|
+
params = request._serialize()
|
|
202
|
+
body = self.call_judge("DeleteLogPool", params, "application/json")
|
|
203
|
+
response = json.loads(body)
|
|
204
|
+
if "Error" not in response:
|
|
205
|
+
return body
|
|
206
|
+
else:
|
|
207
|
+
code = response["Error"]["Code"]
|
|
208
|
+
message = response["Error"]["Message"]
|
|
209
|
+
req_id = response["RequestId"]
|
|
210
|
+
raise KsyunSDKException(code, message, req_id)
|
|
211
|
+
except Exception as e:
|
|
212
|
+
if isinstance(e, KsyunSDKException):
|
|
213
|
+
raise
|
|
214
|
+
else:
|
|
215
|
+
raise KsyunSDKException(e.message, e.message)
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
def ListLogPools(self, request):
|
|
219
|
+
"""获取日志池列表
|
|
220
|
+
:param request: Request instance for ListLogPools.
|
|
221
|
+
:type request: :class:`ksyun.client.klog.v20200731.models.ListLogPoolsRequest`
|
|
222
|
+
"""
|
|
223
|
+
try:
|
|
224
|
+
params = request._serialize()
|
|
225
|
+
body = self.call_judge("ListLogPools", params, "application/json")
|
|
226
|
+
response = json.loads(body)
|
|
227
|
+
if "Error" not in response:
|
|
228
|
+
return body
|
|
229
|
+
else:
|
|
230
|
+
code = response["Error"]["Code"]
|
|
231
|
+
message = response["Error"]["Message"]
|
|
232
|
+
req_id = response["RequestId"]
|
|
233
|
+
raise KsyunSDKException(code, message, req_id)
|
|
234
|
+
except Exception as e:
|
|
235
|
+
if isinstance(e, KsyunSDKException):
|
|
236
|
+
raise
|
|
237
|
+
else:
|
|
238
|
+
raise KsyunSDKException(e.message, e.message)
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
def GetLogs(self, request):
|
|
242
|
+
"""查询日志池
|
|
243
|
+
:param request: Request instance for GetLogs.
|
|
244
|
+
:type request: :class:`ksyun.client.klog.v20200731.models.GetLogsRequest`
|
|
245
|
+
"""
|
|
246
|
+
try:
|
|
247
|
+
params = request._serialize()
|
|
248
|
+
body = self.call_judge("GetLogs", params, "application/json")
|
|
249
|
+
response = json.loads(body)
|
|
250
|
+
if "Error" not in response:
|
|
251
|
+
return body
|
|
252
|
+
else:
|
|
253
|
+
code = response["Error"]["Code"]
|
|
254
|
+
message = response["Error"]["Message"]
|
|
255
|
+
req_id = response["RequestId"]
|
|
256
|
+
raise KsyunSDKException(code, message, req_id)
|
|
257
|
+
except Exception as e:
|
|
258
|
+
if isinstance(e, KsyunSDKException):
|
|
259
|
+
raise
|
|
260
|
+
else:
|
|
261
|
+
raise KsyunSDKException(e.message, e.message)
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
def CreateQuickSearch(self, request):
|
|
265
|
+
"""存为快速查询
|
|
266
|
+
:param request: Request instance for CreateQuickSearch.
|
|
267
|
+
:type request: :class:`ksyun.client.klog.v20200731.models.CreateQuickSearchRequest`
|
|
268
|
+
"""
|
|
269
|
+
try:
|
|
270
|
+
params = request._serialize()
|
|
271
|
+
body = self.call_judge("CreateQuickSearch", params, "application/json")
|
|
272
|
+
response = json.loads(body)
|
|
273
|
+
if "Error" not in response:
|
|
274
|
+
return body
|
|
275
|
+
else:
|
|
276
|
+
code = response["Error"]["Code"]
|
|
277
|
+
message = response["Error"]["Message"]
|
|
278
|
+
req_id = response["RequestId"]
|
|
279
|
+
raise KsyunSDKException(code, message, req_id)
|
|
280
|
+
except Exception as e:
|
|
281
|
+
if isinstance(e, KsyunSDKException):
|
|
282
|
+
raise
|
|
283
|
+
else:
|
|
284
|
+
raise KsyunSDKException(e.message, e.message)
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
def ListQuickSearchs(self, request):
|
|
288
|
+
"""获取快速查询列表
|
|
289
|
+
:param request: Request instance for ListQuickSearchs.
|
|
290
|
+
:type request: :class:`ksyun.client.klog.v20200731.models.ListQuickSearchsRequest`
|
|
291
|
+
"""
|
|
292
|
+
try:
|
|
293
|
+
params = request._serialize()
|
|
294
|
+
body = self.call_judge("ListQuickSearchs", params, "application/json")
|
|
295
|
+
response = json.loads(body)
|
|
296
|
+
if "Error" not in response:
|
|
297
|
+
return body
|
|
298
|
+
else:
|
|
299
|
+
code = response["Error"]["Code"]
|
|
300
|
+
message = response["Error"]["Message"]
|
|
301
|
+
req_id = response["RequestId"]
|
|
302
|
+
raise KsyunSDKException(code, message, req_id)
|
|
303
|
+
except Exception as e:
|
|
304
|
+
if isinstance(e, KsyunSDKException):
|
|
305
|
+
raise
|
|
306
|
+
else:
|
|
307
|
+
raise KsyunSDKException(e.message, e.message)
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
def DeleteQuickSearchs(self, request):
|
|
311
|
+
"""删除快速查询
|
|
312
|
+
:param request: Request instance for DeleteQuickSearchs.
|
|
313
|
+
:type request: :class:`ksyun.client.klog.v20200731.models.DeleteQuickSearchsRequest`
|
|
314
|
+
"""
|
|
315
|
+
try:
|
|
316
|
+
params = request._serialize()
|
|
317
|
+
body = self.call_judge("DeleteQuickSearchs", params, "application/json")
|
|
318
|
+
response = json.loads(body)
|
|
319
|
+
if "Error" not in response:
|
|
320
|
+
return body
|
|
321
|
+
else:
|
|
322
|
+
code = response["Error"]["Code"]
|
|
323
|
+
message = response["Error"]["Message"]
|
|
324
|
+
req_id = response["RequestId"]
|
|
325
|
+
raise KsyunSDKException(code, message, req_id)
|
|
326
|
+
except Exception as e:
|
|
327
|
+
if isinstance(e, KsyunSDKException):
|
|
328
|
+
raise
|
|
329
|
+
else:
|
|
330
|
+
raise KsyunSDKException(e.message, e.message)
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
def CreateDownloadTask(self, request):
|
|
334
|
+
"""创建日志下载任务
|
|
335
|
+
:param request: Request instance for CreateDownloadTask.
|
|
336
|
+
:type request: :class:`ksyun.client.klog.v20200731.models.CreateDownloadTaskRequest`
|
|
337
|
+
"""
|
|
338
|
+
try:
|
|
339
|
+
params = request._serialize()
|
|
340
|
+
body = self.call_judge("CreateDownloadTask", params, "application/json")
|
|
341
|
+
response = json.loads(body)
|
|
342
|
+
if "Error" not in response:
|
|
343
|
+
return body
|
|
344
|
+
else:
|
|
345
|
+
code = response["Error"]["Code"]
|
|
346
|
+
message = response["Error"]["Message"]
|
|
347
|
+
req_id = response["RequestId"]
|
|
348
|
+
raise KsyunSDKException(code, message, req_id)
|
|
349
|
+
except Exception as e:
|
|
350
|
+
if isinstance(e, KsyunSDKException):
|
|
351
|
+
raise
|
|
352
|
+
else:
|
|
353
|
+
raise KsyunSDKException(e.message, e.message)
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
def ListDownloadTasks(self, request):
|
|
357
|
+
"""查看日志下载任务
|
|
358
|
+
:param request: Request instance for ListDownloadTasks.
|
|
359
|
+
:type request: :class:`ksyun.client.klog.v20200731.models.ListDownloadTasksRequest`
|
|
360
|
+
"""
|
|
361
|
+
try:
|
|
362
|
+
params = request._serialize()
|
|
363
|
+
body = self.call_judge("ListDownloadTasks", params, "application/json")
|
|
364
|
+
response = json.loads(body)
|
|
365
|
+
if "Error" not in response:
|
|
366
|
+
return body
|
|
367
|
+
else:
|
|
368
|
+
code = response["Error"]["Code"]
|
|
369
|
+
message = response["Error"]["Message"]
|
|
370
|
+
req_id = response["RequestId"]
|
|
371
|
+
raise KsyunSDKException(code, message, req_id)
|
|
372
|
+
except Exception as e:
|
|
373
|
+
if isinstance(e, KsyunSDKException):
|
|
374
|
+
raise
|
|
375
|
+
else:
|
|
376
|
+
raise KsyunSDKException(e.message, e.message)
|
|
377
|
+
|
|
378
|
+
|