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
|
@@ -0,0 +1,238 @@
|
|
|
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 KcmClient(AbstractClient):
|
|
8
|
+
_apiVersion = '2016-03-04'
|
|
9
|
+
_endpoint = 'kcm.api.ksyun.com'
|
|
10
|
+
_service = 'kcm'
|
|
11
|
+
def CreateCertificate(self, request):
|
|
12
|
+
"""创建负载均衡证书
|
|
13
|
+
:param request: Request instance for CreateCertificate.
|
|
14
|
+
:type request: :class:`ksyun.client.kcm.v20160304.models.CreateCertificateRequest`
|
|
15
|
+
"""
|
|
16
|
+
try:
|
|
17
|
+
params = request._serialize()
|
|
18
|
+
body = self.call_judge("CreateCertificate", 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(message=str(e))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def DeleteCertificate(self, request):
|
|
35
|
+
"""删除SLB证书
|
|
36
|
+
:param request: Request instance for DeleteCertificate.
|
|
37
|
+
:type request: :class:`ksyun.client.kcm.v20160304.models.DeleteCertificateRequest`
|
|
38
|
+
"""
|
|
39
|
+
try:
|
|
40
|
+
params = request._serialize()
|
|
41
|
+
body = self.call_judge("DeleteCertificate", 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))
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
def ModifyCertificate(self, request):
|
|
58
|
+
"""更新证书信息
|
|
59
|
+
:param request: Request instance for ModifyCertificate.
|
|
60
|
+
:type request: :class:`ksyun.client.kcm.v20160304.models.ModifyCertificateRequest`
|
|
61
|
+
"""
|
|
62
|
+
try:
|
|
63
|
+
params = request._serialize()
|
|
64
|
+
body = self.call_judge("ModifyCertificate", 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(message=str(e))
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
def DescribeCertificates(self, request):
|
|
81
|
+
"""描述SLB证书
|
|
82
|
+
:param request: Request instance for DescribeCertificates.
|
|
83
|
+
:type request: :class:`ksyun.client.kcm.v20160304.models.DescribeCertificatesRequest`
|
|
84
|
+
"""
|
|
85
|
+
try:
|
|
86
|
+
params = request._serialize()
|
|
87
|
+
body = self.call_judge("DescribeCertificates", 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(message=str(e))
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
def ApplyCertificate(self, request):
|
|
104
|
+
"""申请证书
|
|
105
|
+
:param request: Request instance for ApplyCertificate.
|
|
106
|
+
:type request: :class:`ksyun.client.kcm.v20160304.models.ApplyCertificateRequest`
|
|
107
|
+
"""
|
|
108
|
+
try:
|
|
109
|
+
params = request._serialize()
|
|
110
|
+
body = self.call_judge("ApplyCertificate", 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(message=str(e))
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
def UpdateCertificate(self, request):
|
|
127
|
+
"""更新/补全证书信息
|
|
128
|
+
:param request: Request instance for UpdateCertificate.
|
|
129
|
+
:type request: :class:`ksyun.client.kcm.v20160304.models.UpdateCertificateRequest`
|
|
130
|
+
"""
|
|
131
|
+
try:
|
|
132
|
+
params = request._serialize()
|
|
133
|
+
body = self.call_judge("UpdateCertificate", 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(message=str(e))
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
def ReIssueCertificate(self, request):
|
|
150
|
+
"""重新签发签发
|
|
151
|
+
:param request: Request instance for ReIssueCertificate.
|
|
152
|
+
:type request: :class:`ksyun.client.kcm.v20160304.models.ReIssueCertificateRequest`
|
|
153
|
+
"""
|
|
154
|
+
try:
|
|
155
|
+
params = request._serialize()
|
|
156
|
+
body = self.call_judge("ReIssueCertificate", 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(message=str(e))
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
def CancelTransaction(self, request):
|
|
173
|
+
"""取消证书申请
|
|
174
|
+
:param request: Request instance for CancelTransaction.
|
|
175
|
+
:type request: :class:`ksyun.client.kcm.v20160304.models.CancelTransactionRequest`
|
|
176
|
+
"""
|
|
177
|
+
try:
|
|
178
|
+
params = request._serialize()
|
|
179
|
+
body = self.call_judge("CancelTransaction", 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(message=str(e))
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
def ListCertificates(self, request):
|
|
196
|
+
"""描述证书
|
|
197
|
+
:param request: Request instance for ListCertificates.
|
|
198
|
+
:type request: :class:`ksyun.client.kcm.v20160304.models.ListCertificatesRequest`
|
|
199
|
+
"""
|
|
200
|
+
try:
|
|
201
|
+
params = request._serialize()
|
|
202
|
+
body = self.call_judge("ListCertificates", 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(message=str(e))
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
def GetCertificateDetail(self, request):
|
|
219
|
+
"""获取证书详情
|
|
220
|
+
:param request: Request instance for GetCertificateDetail.
|
|
221
|
+
:type request: :class:`ksyun.client.kcm.v20160304.models.GetCertificateDetailRequest`
|
|
222
|
+
"""
|
|
223
|
+
try:
|
|
224
|
+
params = request._serialize()
|
|
225
|
+
body = self.call_judge("GetCertificateDetail", 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(message=str(e))
|
|
@@ -0,0 +1,394 @@
|
|
|
1
|
+
from ksyun.common.abstract_model import AbstractModel
|
|
2
|
+
|
|
3
|
+
class CreateCertificateRequest(AbstractModel):
|
|
4
|
+
"""CreateCertificate请求参数结构体
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
def __init__(self):
|
|
8
|
+
r"""创建负载均衡证书
|
|
9
|
+
:param CertificateName: 证书名称
|
|
10
|
+
:type PathPrefix: String
|
|
11
|
+
:param PrivateKey: 私钥
|
|
12
|
+
:type PathPrefix: String
|
|
13
|
+
:param PublicKey: 公钥
|
|
14
|
+
:type PathPrefix: String
|
|
15
|
+
:param CertificateType: 证书类型,SVR|CA
|
|
16
|
+
:type PathPrefix: String
|
|
17
|
+
:param Source: 证书来源own|kcm,可以不传,kcm来源的证书必传
|
|
18
|
+
:type PathPrefix: String
|
|
19
|
+
:param SslCertificateId: kcm来源的ssl证书id,kcm来源的证书必传
|
|
20
|
+
:type PathPrefix: String
|
|
21
|
+
:param Description: 描述
|
|
22
|
+
:type PathPrefix: String
|
|
23
|
+
"""
|
|
24
|
+
self.CertificateName = None
|
|
25
|
+
self.PrivateKey = None
|
|
26
|
+
self.PublicKey = None
|
|
27
|
+
self.CertificateType = None
|
|
28
|
+
self.Source = None
|
|
29
|
+
self.SslCertificateId = None
|
|
30
|
+
self.Description = None
|
|
31
|
+
|
|
32
|
+
def _deserialize(self, params):
|
|
33
|
+
if params.get("CertificateName"):
|
|
34
|
+
self.CertificateName = params.get("CertificateName")
|
|
35
|
+
if params.get("PrivateKey"):
|
|
36
|
+
self.PrivateKey = params.get("PrivateKey")
|
|
37
|
+
if params.get("PublicKey"):
|
|
38
|
+
self.PublicKey = params.get("PublicKey")
|
|
39
|
+
if params.get("CertificateType"):
|
|
40
|
+
self.CertificateType = params.get("CertificateType")
|
|
41
|
+
if params.get("Source"):
|
|
42
|
+
self.Source = params.get("Source")
|
|
43
|
+
if params.get("SslCertificateId"):
|
|
44
|
+
self.SslCertificateId = params.get("SslCertificateId")
|
|
45
|
+
if params.get("Description"):
|
|
46
|
+
self.Description = params.get("Description")
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
class DeleteCertificateRequest(AbstractModel):
|
|
50
|
+
"""DeleteCertificate请求参数结构体
|
|
51
|
+
"""
|
|
52
|
+
|
|
53
|
+
def __init__(self):
|
|
54
|
+
r"""删除SLB证书
|
|
55
|
+
:param CertificateId:
|
|
56
|
+
:type PathPrefix: String
|
|
57
|
+
"""
|
|
58
|
+
self.CertificateId = None
|
|
59
|
+
|
|
60
|
+
def _deserialize(self, params):
|
|
61
|
+
if params.get("CertificateId"):
|
|
62
|
+
self.CertificateId = params.get("CertificateId")
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
class ModifyCertificateRequest(AbstractModel):
|
|
66
|
+
"""ModifyCertificate请求参数结构体
|
|
67
|
+
"""
|
|
68
|
+
|
|
69
|
+
def __init__(self):
|
|
70
|
+
r"""更新证书信息
|
|
71
|
+
:param CertificateId: 证书ID
|
|
72
|
+
:type PathPrefix: String
|
|
73
|
+
:param CertificateName: 证书名称
|
|
74
|
+
:type PathPrefix: String
|
|
75
|
+
:param PrivateKey: 私钥
|
|
76
|
+
:type PathPrefix: String
|
|
77
|
+
:param PublicKey: 公钥
|
|
78
|
+
:type PathPrefix: String
|
|
79
|
+
"""
|
|
80
|
+
self.CertificateId = None
|
|
81
|
+
self.CertificateName = None
|
|
82
|
+
self.PrivateKey = None
|
|
83
|
+
self.PublicKey = None
|
|
84
|
+
|
|
85
|
+
def _deserialize(self, params):
|
|
86
|
+
if params.get("CertificateId"):
|
|
87
|
+
self.CertificateId = params.get("CertificateId")
|
|
88
|
+
if params.get("CertificateName"):
|
|
89
|
+
self.CertificateName = params.get("CertificateName")
|
|
90
|
+
if params.get("PrivateKey"):
|
|
91
|
+
self.PrivateKey = params.get("PrivateKey")
|
|
92
|
+
if params.get("PublicKey"):
|
|
93
|
+
self.PublicKey = params.get("PublicKey")
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
class DescribeCertificatesRequest(AbstractModel):
|
|
97
|
+
"""DescribeCertificates请求参数结构体
|
|
98
|
+
"""
|
|
99
|
+
|
|
100
|
+
def __init__(self):
|
|
101
|
+
r"""描述SLB证书
|
|
102
|
+
:param CertificateId:
|
|
103
|
+
:type PathPrefix: Filter
|
|
104
|
+
"""
|
|
105
|
+
self.CertificateId = None
|
|
106
|
+
|
|
107
|
+
def _deserialize(self, params):
|
|
108
|
+
if params.get("CertificateId"):
|
|
109
|
+
self.CertificateId = params.get("CertificateId")
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
class ApplyCertificateRequest(AbstractModel):
|
|
113
|
+
"""ApplyCertificate请求参数结构体
|
|
114
|
+
"""
|
|
115
|
+
|
|
116
|
+
def __init__(self):
|
|
117
|
+
r"""申请证书
|
|
118
|
+
:param MainDomain: 证书绑定主域名
|
|
119
|
+
:type PathPrefix: String
|
|
120
|
+
:param CertificateCode: 证书代码,详见[CertificateCode可选值](https://docs.ksyun.com/documents/37638)
|
|
121
|
+
:type PathPrefix: String
|
|
122
|
+
:param YearLength: 证书年限,默认值为1
|
|
123
|
+
:type PathPrefix: Int
|
|
124
|
+
:param DomainCount: 域名数量,最小值为1
|
|
125
|
+
:type PathPrefix: Int
|
|
126
|
+
:param WildcardCount: 通配符域名数量,最小值为0
|
|
127
|
+
:type PathPrefix: Int
|
|
128
|
+
:param ProductId: 生成订单时产生的商品ID
|
|
129
|
+
:type PathPrefix: String
|
|
130
|
+
:param SubOrderId: 产生的子订单ID
|
|
131
|
+
:type PathPrefix: String
|
|
132
|
+
:param ProjectId: 资源所属项目ID
|
|
133
|
+
:type PathPrefix: Int
|
|
134
|
+
:param BillType: 计费方式:801 一次性预付费 805 一次性后付费,不填默认为:805 一次性后付费
|
|
135
|
+
:type PathPrefix: Int
|
|
136
|
+
"""
|
|
137
|
+
self.MainDomain = None
|
|
138
|
+
self.CertificateCode = None
|
|
139
|
+
self.YearLength = None
|
|
140
|
+
self.DomainCount = None
|
|
141
|
+
self.WildcardCount = None
|
|
142
|
+
self.ProductId = None
|
|
143
|
+
self.SubOrderId = None
|
|
144
|
+
self.ProjectId = None
|
|
145
|
+
self.BillType = None
|
|
146
|
+
|
|
147
|
+
def _deserialize(self, params):
|
|
148
|
+
if params.get("MainDomain"):
|
|
149
|
+
self.MainDomain = params.get("MainDomain")
|
|
150
|
+
if params.get("CertificateCode"):
|
|
151
|
+
self.CertificateCode = params.get("CertificateCode")
|
|
152
|
+
if params.get("YearLength"):
|
|
153
|
+
self.YearLength = params.get("YearLength")
|
|
154
|
+
if params.get("DomainCount"):
|
|
155
|
+
self.DomainCount = params.get("DomainCount")
|
|
156
|
+
if params.get("WildcardCount"):
|
|
157
|
+
self.WildcardCount = params.get("WildcardCount")
|
|
158
|
+
if params.get("ProductId"):
|
|
159
|
+
self.ProductId = params.get("ProductId")
|
|
160
|
+
if params.get("SubOrderId"):
|
|
161
|
+
self.SubOrderId = params.get("SubOrderId")
|
|
162
|
+
if params.get("ProjectId"):
|
|
163
|
+
self.ProjectId = params.get("ProjectId")
|
|
164
|
+
if params.get("BillType"):
|
|
165
|
+
self.BillType = params.get("BillType")
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
class UpdateCertificateRequest(AbstractModel):
|
|
169
|
+
"""UpdateCertificate请求参数结构体
|
|
170
|
+
"""
|
|
171
|
+
|
|
172
|
+
def __init__(self):
|
|
173
|
+
r"""更新/补全证书信息
|
|
174
|
+
:param CertificateId: 证书ID
|
|
175
|
+
:type PathPrefix: String
|
|
176
|
+
:param AuthMethod: 验证方式,可选值:DNS 、 FILE, 不填默认值为:DNS
|
|
177
|
+
:type PathPrefix: String
|
|
178
|
+
:param CSR: 证书CSR字符串,当CsrSource为USER或缺省时,此值不可缺省
|
|
179
|
+
:type PathPrefix: String
|
|
180
|
+
:param ContactId: 联系人ID,当ContactId不为空时,Contact参数可缺省,两者并存时以ContactId为准,当ContactId为空时,City、State、Country都不能为空
|
|
181
|
+
:type PathPrefix: Int
|
|
182
|
+
:param CompanyId: 企业信息ID,当CompanyId不为空时,CompanyName、Department、State、City、Address、CompanyPhone、PostalCode可缺省,两者并存时以CompanyId为准
|
|
183
|
+
:type PathPrefix: Int
|
|
184
|
+
:param CompanyName: 企业名称
|
|
185
|
+
:type PathPrefix: String
|
|
186
|
+
:param Department: 部门名称
|
|
187
|
+
:type PathPrefix: String
|
|
188
|
+
:param State: 省份
|
|
189
|
+
:type PathPrefix: String
|
|
190
|
+
:param City: 城市
|
|
191
|
+
:type PathPrefix: String
|
|
192
|
+
:param Address: 地址
|
|
193
|
+
:type PathPrefix: String
|
|
194
|
+
:param CompanyPhone: 公司电话,可为座机或者手机
|
|
195
|
+
:type PathPrefix: String
|
|
196
|
+
:param PostalCode: 邮编
|
|
197
|
+
:type PathPrefix: String
|
|
198
|
+
:param DcvEmail: 可从whois查询到的注册域名时填写的邮箱信息
|
|
199
|
+
:type PathPrefix: String
|
|
200
|
+
:param AdditionalDomains: 附加域名,多个域名以英文,分隔
|
|
201
|
+
:type PathPrefix: String
|
|
202
|
+
:param Wildcards: 通配符域名,多个通配符域名以英文,分隔
|
|
203
|
+
:type PathPrefix: String
|
|
204
|
+
:param Contact: 联系人,DV证书只需要技术联系人,如果Contactid为空, Contact不可缺省
|
|
205
|
+
:type PathPrefix: String
|
|
206
|
+
:param IsSubmit: 是否提交,提交后将把订单数据提交给第三方,可选值0 否|1 是
|
|
207
|
+
|
|
208
|
+
约束:
|
|
209
|
+
- 当值为0时:
|
|
210
|
+
可以用来修改Contact、CompanyName、State、City、Address、CompanyPhone、PostalCode、Department等信息;
|
|
211
|
+
- 当值为1时:
|
|
212
|
+
- 必须保证Contact不为空
|
|
213
|
+
- 且CompanyName、State、City、Address、CompanyPhone、PostalCode、Department不为空,或在IsSubmit为0时已经设置过
|
|
214
|
+
- 对于DV证书,以上规则有两个例外
|
|
215
|
+
- Department可为空
|
|
216
|
+
- CompanyPhone可为空,但contact当中必须设置phone
|
|
217
|
+
:type PathPrefix: String
|
|
218
|
+
:param BusinessLicence: 企业营业执照图片文件,图片的base64值,图片大小不超过600K
|
|
219
|
+
:type PathPrefix: String
|
|
220
|
+
:param CsrSource: CSR字符串来源
|
|
221
|
+
- 约束
|
|
222
|
+
- IsSubmit为0时,此参数可缺省
|
|
223
|
+
- IsSubmit为1时
|
|
224
|
+
- 当值为USER时,参数CSR不可缺省或此前在IsSubmit为0时设置过;
|
|
225
|
+
- 当值为SYSTEM时,CSR参数或此前设置的CSR无效
|
|
226
|
+
:type PathPrefix: String
|
|
227
|
+
:param Algorithm: 编码算法类型,可选值
|
|
228
|
+
|
|
229
|
+
- ECC
|
|
230
|
+
- RSA 默认值
|
|
231
|
+
:type PathPrefix: String
|
|
232
|
+
:param CertSignature: 证书签名算法。可选值
|
|
233
|
+
|
|
234
|
+
SHA256-FULLCHAIN
|
|
235
|
+
SHA2-256 默认值
|
|
236
|
+
:type PathPrefix: String
|
|
237
|
+
"""
|
|
238
|
+
self.CertificateId = None
|
|
239
|
+
self.AuthMethod = None
|
|
240
|
+
self.CSR = None
|
|
241
|
+
self.ContactId = None
|
|
242
|
+
self.CompanyId = None
|
|
243
|
+
self.CompanyName = None
|
|
244
|
+
self.Department = None
|
|
245
|
+
self.State = None
|
|
246
|
+
self.City = None
|
|
247
|
+
self.Address = None
|
|
248
|
+
self.CompanyPhone = None
|
|
249
|
+
self.PostalCode = None
|
|
250
|
+
self.DcvEmail = None
|
|
251
|
+
self.AdditionalDomains = None
|
|
252
|
+
self.Wildcards = None
|
|
253
|
+
self.Contact = None
|
|
254
|
+
self.IsSubmit = None
|
|
255
|
+
self.BusinessLicence = None
|
|
256
|
+
self.CsrSource = None
|
|
257
|
+
self.Algorithm = None
|
|
258
|
+
self.CertSignature = None
|
|
259
|
+
|
|
260
|
+
def _deserialize(self, params):
|
|
261
|
+
if params.get("CertificateId"):
|
|
262
|
+
self.CertificateId = params.get("CertificateId")
|
|
263
|
+
if params.get("AuthMethod"):
|
|
264
|
+
self.AuthMethod = params.get("AuthMethod")
|
|
265
|
+
if params.get("CSR"):
|
|
266
|
+
self.CSR = params.get("CSR")
|
|
267
|
+
if params.get("ContactId"):
|
|
268
|
+
self.ContactId = params.get("ContactId")
|
|
269
|
+
if params.get("CompanyId"):
|
|
270
|
+
self.CompanyId = params.get("CompanyId")
|
|
271
|
+
if params.get("CompanyName"):
|
|
272
|
+
self.CompanyName = params.get("CompanyName")
|
|
273
|
+
if params.get("Department"):
|
|
274
|
+
self.Department = params.get("Department")
|
|
275
|
+
if params.get("State"):
|
|
276
|
+
self.State = params.get("State")
|
|
277
|
+
if params.get("City"):
|
|
278
|
+
self.City = params.get("City")
|
|
279
|
+
if params.get("Address"):
|
|
280
|
+
self.Address = params.get("Address")
|
|
281
|
+
if params.get("CompanyPhone"):
|
|
282
|
+
self.CompanyPhone = params.get("CompanyPhone")
|
|
283
|
+
if params.get("PostalCode"):
|
|
284
|
+
self.PostalCode = params.get("PostalCode")
|
|
285
|
+
if params.get("DcvEmail"):
|
|
286
|
+
self.DcvEmail = params.get("DcvEmail")
|
|
287
|
+
if params.get("AdditionalDomains"):
|
|
288
|
+
self.AdditionalDomains = params.get("AdditionalDomains")
|
|
289
|
+
if params.get("Wildcards"):
|
|
290
|
+
self.Wildcards = params.get("Wildcards")
|
|
291
|
+
if params.get("Contact"):
|
|
292
|
+
self.Contact = params.get("Contact")
|
|
293
|
+
if params.get("IsSubmit"):
|
|
294
|
+
self.IsSubmit = params.get("IsSubmit")
|
|
295
|
+
if params.get("BusinessLicence"):
|
|
296
|
+
self.BusinessLicence = params.get("BusinessLicence")
|
|
297
|
+
if params.get("CsrSource"):
|
|
298
|
+
self.CsrSource = params.get("CsrSource")
|
|
299
|
+
if params.get("Algorithm"):
|
|
300
|
+
self.Algorithm = params.get("Algorithm")
|
|
301
|
+
if params.get("CertSignature"):
|
|
302
|
+
self.CertSignature = params.get("CertSignature")
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
class ReIssueCertificateRequest(AbstractModel):
|
|
306
|
+
"""ReIssueCertificate请求参数结构体
|
|
307
|
+
"""
|
|
308
|
+
|
|
309
|
+
def __init__(self):
|
|
310
|
+
r"""重新签发签发
|
|
311
|
+
:param CertificateId: 证书id
|
|
312
|
+
:type PathPrefix: String
|
|
313
|
+
:param CsrSource: 是否重新生成csr。
|
|
314
|
+
值:new:重新生成csr。不传则用老的csr
|
|
315
|
+
:type PathPrefix: String
|
|
316
|
+
"""
|
|
317
|
+
self.CertificateId = None
|
|
318
|
+
self.CsrSource = None
|
|
319
|
+
|
|
320
|
+
def _deserialize(self, params):
|
|
321
|
+
if params.get("CertificateId"):
|
|
322
|
+
self.CertificateId = params.get("CertificateId")
|
|
323
|
+
if params.get("CsrSource"):
|
|
324
|
+
self.CsrSource = params.get("CsrSource")
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
class CancelTransactionRequest(AbstractModel):
|
|
328
|
+
"""CancelTransaction请求参数结构体
|
|
329
|
+
"""
|
|
330
|
+
|
|
331
|
+
def __init__(self):
|
|
332
|
+
r"""取消证书申请
|
|
333
|
+
:param CertificateId: 证书ID
|
|
334
|
+
:type PathPrefix: String
|
|
335
|
+
"""
|
|
336
|
+
self.CertificateId = None
|
|
337
|
+
|
|
338
|
+
def _deserialize(self, params):
|
|
339
|
+
if params.get("CertificateId"):
|
|
340
|
+
self.CertificateId = params.get("CertificateId")
|
|
341
|
+
|
|
342
|
+
|
|
343
|
+
class ListCertificatesRequest(AbstractModel):
|
|
344
|
+
"""ListCertificates请求参数结构体
|
|
345
|
+
"""
|
|
346
|
+
|
|
347
|
+
def __init__(self):
|
|
348
|
+
r"""描述证书
|
|
349
|
+
:param CertificateId: 一个或多个证书ID
|
|
350
|
+
:type PathPrefix: Filter
|
|
351
|
+
:param ProjectId: 一个或多个项目ID,若缺省则默认值为0
|
|
352
|
+
:type PathPrefix: Filter
|
|
353
|
+
:param Filter: 主域名
|
|
354
|
+
:type PathPrefix: Filter
|
|
355
|
+
:param Page: 页码
|
|
356
|
+
:type PathPrefix: Int
|
|
357
|
+
:param PageSize: 默认20
|
|
358
|
+
:type PathPrefix: Int
|
|
359
|
+
"""
|
|
360
|
+
self.CertificateId = None
|
|
361
|
+
self.ProjectId = None
|
|
362
|
+
self.Filter = None
|
|
363
|
+
self.Page = None
|
|
364
|
+
self.PageSize = None
|
|
365
|
+
|
|
366
|
+
def _deserialize(self, params):
|
|
367
|
+
if params.get("CertificateId"):
|
|
368
|
+
self.CertificateId = params.get("CertificateId")
|
|
369
|
+
if params.get("ProjectId"):
|
|
370
|
+
self.ProjectId = params.get("ProjectId")
|
|
371
|
+
if params.get("Filter"):
|
|
372
|
+
self.Filter = params.get("Filter")
|
|
373
|
+
if params.get("Page"):
|
|
374
|
+
self.Page = params.get("Page")
|
|
375
|
+
if params.get("PageSize"):
|
|
376
|
+
self.PageSize = params.get("PageSize")
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
class GetCertificateDetailRequest(AbstractModel):
|
|
380
|
+
"""GetCertificateDetail请求参数结构体
|
|
381
|
+
"""
|
|
382
|
+
|
|
383
|
+
def __init__(self):
|
|
384
|
+
r"""获取证书详情
|
|
385
|
+
:param CertificateId: 证书ID
|
|
386
|
+
:type PathPrefix: String
|
|
387
|
+
"""
|
|
388
|
+
self.CertificateId = None
|
|
389
|
+
|
|
390
|
+
def _deserialize(self, params):
|
|
391
|
+
if params.get("CertificateId"):
|
|
392
|
+
self.CertificateId = params.get("CertificateId")
|
|
393
|
+
|
|
394
|
+
|
|
File without changes
|
|
File without changes
|