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,734 @@
|
|
|
1
|
+
from ksyun.common.abstract_model import AbstractModel
|
|
2
|
+
|
|
3
|
+
class SchemaStructRequest(AbstractModel):
|
|
4
|
+
"""SchemaStruct请求参数结构体
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
def __init__(self):
|
|
8
|
+
r"""获取源库库表结构
|
|
9
|
+
:param SourceInstanceId: 源端实例ID。
|
|
10
|
+
:type PathPrefix: String
|
|
11
|
+
:param SourceType: 表库类型。Public|SpecialLine|Krds|SubscriptionKrds(仅支持mysql)。
|
|
12
|
+
:type PathPrefix: String
|
|
13
|
+
:param SourceUsername: 源端数据库账号。
|
|
14
|
+
:type PathPrefix: String
|
|
15
|
+
:param SourcePassword: 源端数据库账号密码。
|
|
16
|
+
:type PathPrefix: String
|
|
17
|
+
:param SourceRegion: 源端地域
|
|
18
|
+
:type PathPrefix: String
|
|
19
|
+
"""
|
|
20
|
+
self.SourceInstanceId = None
|
|
21
|
+
self.SourceType = None
|
|
22
|
+
self.SourceUsername = None
|
|
23
|
+
self.SourcePassword = None
|
|
24
|
+
self.SourceRegion = None
|
|
25
|
+
|
|
26
|
+
def _deserialize(self, params):
|
|
27
|
+
if params.get("SourceInstanceId"):
|
|
28
|
+
self.SourceInstanceId = params.get("SourceInstanceId")
|
|
29
|
+
if params.get("SourceType"):
|
|
30
|
+
self.SourceType = params.get("SourceType")
|
|
31
|
+
if params.get("SourceUsername"):
|
|
32
|
+
self.SourceUsername = params.get("SourceUsername")
|
|
33
|
+
if params.get("SourcePassword"):
|
|
34
|
+
self.SourcePassword = params.get("SourcePassword")
|
|
35
|
+
if params.get("SourceRegion"):
|
|
36
|
+
self.SourceRegion = params.get("SourceRegion")
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
class ConnectivityCheckRequest(AbstractModel):
|
|
40
|
+
"""ConnectivityCheck请求参数结构体
|
|
41
|
+
"""
|
|
42
|
+
|
|
43
|
+
def __init__(self):
|
|
44
|
+
r"""源库/目标库连通性
|
|
45
|
+
"""
|
|
46
|
+
|
|
47
|
+
def _deserialize(self, params):
|
|
48
|
+
return
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
class CreatePrecheckRequest(AbstractModel):
|
|
52
|
+
"""CreatePrecheck请求参数结构体
|
|
53
|
+
"""
|
|
54
|
+
|
|
55
|
+
def __init__(self):
|
|
56
|
+
r"""创建预检查
|
|
57
|
+
:param SourceType: 源端库类型
|
|
58
|
+
|
|
59
|
+
```json
|
|
60
|
+
公有云mysql:Krds
|
|
61
|
+
公有云主从redis:Kcs
|
|
62
|
+
公有云集群redis:ClusterKcs
|
|
63
|
+
公有云mongo:Kmgo
|
|
64
|
+
公有云pg:Kpg
|
|
65
|
+
订阅目标类型:Vpc
|
|
66
|
+
|
|
67
|
+
注:目前不支持创建pg任务,源库与目标库类型须一致
|
|
68
|
+
```
|
|
69
|
+
:type PathPrefix: String
|
|
70
|
+
:param TargetType: 目标端库类型
|
|
71
|
+
|
|
72
|
+
```json
|
|
73
|
+
公有云mysql:Krds
|
|
74
|
+
公有云主从redis:Kcs
|
|
75
|
+
公有云集群redis:ClusterKcs
|
|
76
|
+
公有云mongo:Kmgo
|
|
77
|
+
公有云pg:Kpg
|
|
78
|
+
订阅目标类型:Vpc
|
|
79
|
+
|
|
80
|
+
注:目前不支持创建pg任务,源库与目标库类型须一致
|
|
81
|
+
```
|
|
82
|
+
:type PathPrefix: String
|
|
83
|
+
:param TargetRegion: 目标库地域
|
|
84
|
+
:type PathPrefix: String
|
|
85
|
+
:param SourceRegion: 源端库地域
|
|
86
|
+
:type PathPrefix: String
|
|
87
|
+
:param DbSchema: 需要同步的源数据库结构
|
|
88
|
+
|
|
89
|
+
```json
|
|
90
|
+
注意:此处接受json字符串
|
|
91
|
+
例如:"{\"is_full\":true}"表示为全部同步
|
|
92
|
+
```
|
|
93
|
+
:type PathPrefix: String
|
|
94
|
+
:param SubTasks: dts子任务
|
|
95
|
+
|
|
96
|
+
```json
|
|
97
|
+
1.MYSQL支持:SchemaMigration,BackupRecovery,RunReplication
|
|
98
|
+
2.Redis支持:FullSync
|
|
99
|
+
3.MongoDB支持:MgoBackupRecovery,MgoRunReplication
|
|
100
|
+
4.双向同步支持:BackupRecovery,ForwardRunReplication,ReverseRunReplication
|
|
101
|
+
5.数据订阅:Subscription
|
|
102
|
+
```
|
|
103
|
+
:type PathPrefix: String
|
|
104
|
+
:param SourceInstanceId: 源端库实例ID
|
|
105
|
+
:type PathPrefix: String
|
|
106
|
+
:param TargetInstanceId: 目标库地域
|
|
107
|
+
:type PathPrefix: String
|
|
108
|
+
:param SourceUsername: 源端库账号名称
|
|
109
|
+
:type PathPrefix: String
|
|
110
|
+
:param SourcePassword: 源端库连接账号密码
|
|
111
|
+
:type PathPrefix: String
|
|
112
|
+
:param Type: dts任务类型
|
|
113
|
+
|
|
114
|
+
```json
|
|
115
|
+
范围:
|
|
116
|
+
Synchronous数据同步
|
|
117
|
+
Transmission数据迁移
|
|
118
|
+
Subscription数据订阅
|
|
119
|
+
Bisynchronous双向同步
|
|
120
|
+
```
|
|
121
|
+
:type PathPrefix: String
|
|
122
|
+
:param DTSParameter: 需要同步迁移参数时传递
|
|
123
|
+
|
|
124
|
+
```json
|
|
125
|
+
例如:
|
|
126
|
+
{
|
|
127
|
+
"SourceType": "Krds",
|
|
128
|
+
"TargetType": "Krds",
|
|
129
|
+
"TargetRegion": "cn-beijing-6",
|
|
130
|
+
"region": "cn-beijing-6",
|
|
131
|
+
"DbSchema": "{\"is_full\":true}",
|
|
132
|
+
"SubTasks": "BackupRecovery,RunReplication",
|
|
133
|
+
"SourceRegion": "cn-beijing-6",
|
|
134
|
+
"SourceInstanceId": "******",
|
|
135
|
+
"TargetInstanceId": "******",
|
|
136
|
+
"SourceUsername": "admin",
|
|
137
|
+
"SourceUser": [
|
|
138
|
+
{
|
|
139
|
+
"Username":"testuser",
|
|
140
|
+
"SourceHost":"%"
|
|
141
|
+
}
|
|
142
|
+
],
|
|
143
|
+
"DTSParameter": [
|
|
144
|
+
{
|
|
145
|
+
"DBParameter": "log_bin_trust_function_creators",
|
|
146
|
+
"TargetDBParameterValue": "OFF"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"DBParameter": "binlog_format",
|
|
150
|
+
"TargetDBParameterValue": "ROW"
|
|
151
|
+
}
|
|
152
|
+
],
|
|
153
|
+
"SourcePassword": "******",
|
|
154
|
+
"Type": "Transmission"
|
|
155
|
+
}
|
|
156
|
+
```
|
|
157
|
+
:type PathPrefix: Filter
|
|
158
|
+
:param SourceUser: 需要往目标库迁移'账号'时传递
|
|
159
|
+
|
|
160
|
+
```json
|
|
161
|
+
例如:
|
|
162
|
+
{
|
|
163
|
+
"SourceType": "Krds",
|
|
164
|
+
"TargetType": "Krds",
|
|
165
|
+
"TargetRegion": "cn-beijing-6",
|
|
166
|
+
"region": "cn-beijing-6",
|
|
167
|
+
"DbSchema": "{\"is_full\":true}",
|
|
168
|
+
"SubTasks": "BackupRecovery,RunReplication",
|
|
169
|
+
"SourceRegion": "cn-beijing-6",
|
|
170
|
+
"SourceInstanceId": "******",
|
|
171
|
+
"TargetInstanceId": "******",
|
|
172
|
+
"SourceUsername": "admin",
|
|
173
|
+
"SourceUser": [
|
|
174
|
+
{
|
|
175
|
+
"Username":"testuser",
|
|
176
|
+
"SourceHost":"%"
|
|
177
|
+
}
|
|
178
|
+
],
|
|
179
|
+
"DTSParameter": [
|
|
180
|
+
{
|
|
181
|
+
"DBParameter": "log_bin_trust_function_creators",
|
|
182
|
+
"TargetDBParameterValue": "OFF"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"DBParameter": "binlog_format",
|
|
186
|
+
"TargetDBParameterValue": "ROW"
|
|
187
|
+
}
|
|
188
|
+
],
|
|
189
|
+
"SourcePassword": "******",
|
|
190
|
+
"Type": "Transmission"
|
|
191
|
+
}
|
|
192
|
+
````
|
|
193
|
+
:type PathPrefix: Filter
|
|
194
|
+
"""
|
|
195
|
+
self.SourceType = None
|
|
196
|
+
self.TargetType = None
|
|
197
|
+
self.TargetRegion = None
|
|
198
|
+
self.SourceRegion = None
|
|
199
|
+
self.DbSchema = None
|
|
200
|
+
self.SubTasks = None
|
|
201
|
+
self.SourceInstanceId = None
|
|
202
|
+
self.TargetInstanceId = None
|
|
203
|
+
self.SourceUsername = None
|
|
204
|
+
self.SourcePassword = None
|
|
205
|
+
self.Type = None
|
|
206
|
+
self.DTSParameter = None
|
|
207
|
+
self.SourceUser = None
|
|
208
|
+
|
|
209
|
+
def _deserialize(self, params):
|
|
210
|
+
if params.get("SourceType"):
|
|
211
|
+
self.SourceType = params.get("SourceType")
|
|
212
|
+
if params.get("TargetType"):
|
|
213
|
+
self.TargetType = params.get("TargetType")
|
|
214
|
+
if params.get("TargetRegion"):
|
|
215
|
+
self.TargetRegion = params.get("TargetRegion")
|
|
216
|
+
if params.get("SourceRegion"):
|
|
217
|
+
self.SourceRegion = params.get("SourceRegion")
|
|
218
|
+
if params.get("DbSchema"):
|
|
219
|
+
self.DbSchema = params.get("DbSchema")
|
|
220
|
+
if params.get("SubTasks"):
|
|
221
|
+
self.SubTasks = params.get("SubTasks")
|
|
222
|
+
if params.get("SourceInstanceId"):
|
|
223
|
+
self.SourceInstanceId = params.get("SourceInstanceId")
|
|
224
|
+
if params.get("TargetInstanceId"):
|
|
225
|
+
self.TargetInstanceId = params.get("TargetInstanceId")
|
|
226
|
+
if params.get("SourceUsername"):
|
|
227
|
+
self.SourceUsername = params.get("SourceUsername")
|
|
228
|
+
if params.get("SourcePassword"):
|
|
229
|
+
self.SourcePassword = params.get("SourcePassword")
|
|
230
|
+
if params.get("Type"):
|
|
231
|
+
self.Type = params.get("Type")
|
|
232
|
+
if params.get("DTSParameter"):
|
|
233
|
+
self.DTSParameter = params.get("DTSParameter")
|
|
234
|
+
if params.get("SourceUser"):
|
|
235
|
+
self.SourceUser = params.get("SourceUser")
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
class CreateTaskRequest(AbstractModel):
|
|
239
|
+
"""CreateTask请求参数结构体
|
|
240
|
+
"""
|
|
241
|
+
|
|
242
|
+
def __init__(self):
|
|
243
|
+
r"""创建任务(含迁移/同步/订阅)
|
|
244
|
+
:param TaskName: TaskName
|
|
245
|
+
:type PathPrefix: String
|
|
246
|
+
:param SubTask: 子任务名称。
|
|
247
|
+
Mysql支持:
|
|
248
|
+
SchemaMigration,BackupRecovery,RunReplication
|
|
249
|
+
|
|
250
|
+
双向同步支持:
|
|
251
|
+
BackupRecovery,ForwardRunReplication,ReverseRunReplication
|
|
252
|
+
|
|
253
|
+
Redis支持:
|
|
254
|
+
FullSync
|
|
255
|
+
|
|
256
|
+
mongo支持:
|
|
257
|
+
MgoBackupRecovery,MgoRunReplication
|
|
258
|
+
|
|
259
|
+
数据订阅支持:
|
|
260
|
+
Subscription
|
|
261
|
+
:type PathPrefix: String
|
|
262
|
+
:param TaskType: 默认Transmission
|
|
263
|
+
范围:
|
|
264
|
+
Synchronous数据同步
|
|
265
|
+
Transmission数据迁移
|
|
266
|
+
Subscription数据订阅
|
|
267
|
+
:type PathPrefix: String
|
|
268
|
+
:param PrecheckId: 成功的预检查ID。请注意:创建任务与预检查任务的参数任务类型和子任务需保持一致。
|
|
269
|
+
:type PathPrefix: String
|
|
270
|
+
:param BillType: 默认1。1:包年包月 86:按量付费(流量)
|
|
271
|
+
:type PathPrefix: Int
|
|
272
|
+
:param Duration: 计费时长。单位:月,计费方式为包年包月时必填。
|
|
273
|
+
:type PathPrefix: Int
|
|
274
|
+
"""
|
|
275
|
+
self.TaskName = None
|
|
276
|
+
self.SubTask = None
|
|
277
|
+
self.TaskType = None
|
|
278
|
+
self.PrecheckId = None
|
|
279
|
+
self.BillType = None
|
|
280
|
+
self.Duration = None
|
|
281
|
+
|
|
282
|
+
def _deserialize(self, params):
|
|
283
|
+
if params.get("TaskName"):
|
|
284
|
+
self.TaskName = params.get("TaskName")
|
|
285
|
+
if params.get("SubTask"):
|
|
286
|
+
self.SubTask = params.get("SubTask")
|
|
287
|
+
if params.get("TaskType"):
|
|
288
|
+
self.TaskType = params.get("TaskType")
|
|
289
|
+
if params.get("PrecheckId"):
|
|
290
|
+
self.PrecheckId = params.get("PrecheckId")
|
|
291
|
+
if params.get("BillType"):
|
|
292
|
+
self.BillType = params.get("BillType")
|
|
293
|
+
if params.get("Duration"):
|
|
294
|
+
self.Duration = params.get("Duration")
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
class DescribeTaskRequest(AbstractModel):
|
|
298
|
+
"""DescribeTask请求参数结构体
|
|
299
|
+
"""
|
|
300
|
+
|
|
301
|
+
def __init__(self):
|
|
302
|
+
r"""查询任务(列表/详情)
|
|
303
|
+
:param TaskId: 主任务ID
|
|
304
|
+
:type PathPrefix: String
|
|
305
|
+
:param TargetType: 目标端数据库类型。范围:Krds Kcs ClusterKcs Kmgo Kpg
|
|
306
|
+
:type PathPrefix: String
|
|
307
|
+
:param TaskType: 任务类型。默认Transmission,若为数据迁移任务,可不传此参数,其他类型必传。范围:
|
|
308
|
+
数据迁移Transmission 数据同步Synchronous数据订阅Subscription
|
|
309
|
+
:type PathPrefix: String
|
|
310
|
+
:param TaskStatus: 不传默认查询所有状态,范围:UNSTARTED RUNNING RELOADING PAUSED PAUSING STOPED FINISHED ERROR
|
|
311
|
+
:type PathPrefix: Filter
|
|
312
|
+
:param TaskName: 任务名称
|
|
313
|
+
:type PathPrefix: String
|
|
314
|
+
:param TargetInstanceId: 目标库实例ID。通过目标库实例ID筛选符合条件的任务
|
|
315
|
+
:type PathPrefix: String
|
|
316
|
+
:param SourceInstanceId: 源库实例ID。通过源库实例ID筛选符合条件的任务。
|
|
317
|
+
:type PathPrefix: String
|
|
318
|
+
:param OrderByType: 根据任务创建时间排序。默认DESC
|
|
319
|
+
:type PathPrefix: String
|
|
320
|
+
:param Marker: 当前查询开始行数。默认0。
|
|
321
|
+
:type PathPrefix: Int
|
|
322
|
+
:param MaxRecords: 当前页最大行数。 默认10。
|
|
323
|
+
:type PathPrefix: Int
|
|
324
|
+
"""
|
|
325
|
+
self.TaskId = None
|
|
326
|
+
self.TargetType = None
|
|
327
|
+
self.TaskType = None
|
|
328
|
+
self.TaskStatus = None
|
|
329
|
+
self.TaskName = None
|
|
330
|
+
self.TargetInstanceId = None
|
|
331
|
+
self.SourceInstanceId = None
|
|
332
|
+
self.OrderByType = None
|
|
333
|
+
self.Marker = None
|
|
334
|
+
self.MaxRecords = None
|
|
335
|
+
|
|
336
|
+
def _deserialize(self, params):
|
|
337
|
+
if params.get("TaskId"):
|
|
338
|
+
self.TaskId = params.get("TaskId")
|
|
339
|
+
if params.get("TargetType"):
|
|
340
|
+
self.TargetType = params.get("TargetType")
|
|
341
|
+
if params.get("TaskType"):
|
|
342
|
+
self.TaskType = params.get("TaskType")
|
|
343
|
+
if params.get("TaskStatus"):
|
|
344
|
+
self.TaskStatus = params.get("TaskStatus")
|
|
345
|
+
if params.get("TaskName"):
|
|
346
|
+
self.TaskName = params.get("TaskName")
|
|
347
|
+
if params.get("TargetInstanceId"):
|
|
348
|
+
self.TargetInstanceId = params.get("TargetInstanceId")
|
|
349
|
+
if params.get("SourceInstanceId"):
|
|
350
|
+
self.SourceInstanceId = params.get("SourceInstanceId")
|
|
351
|
+
if params.get("OrderByType"):
|
|
352
|
+
self.OrderByType = params.get("OrderByType")
|
|
353
|
+
if params.get("Marker"):
|
|
354
|
+
self.Marker = params.get("Marker")
|
|
355
|
+
if params.get("MaxRecords"):
|
|
356
|
+
self.MaxRecords = params.get("MaxRecords")
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
class OperateTaskRequest(AbstractModel):
|
|
360
|
+
"""OperateTask请求参数结构体
|
|
361
|
+
"""
|
|
362
|
+
|
|
363
|
+
def __init__(self):
|
|
364
|
+
r"""任务操作(启动/暂停/停止/删除)
|
|
365
|
+
:param TaskId: 主任务ID
|
|
366
|
+
:type PathPrefix: String
|
|
367
|
+
:param ActionName: 操作类型。可选范围:Start|Stop|Delete|Pause
|
|
368
|
+
:type PathPrefix: String
|
|
369
|
+
:param TaskType: 任务类型。默认Transmission,若为数据迁移任务,可不传此参数,其他类型必传。范围:数据迁移Transmission 数据同步Synchron
|
|
370
|
+
:type PathPrefix: String
|
|
371
|
+
:param ErrSkip: 任务出错跳过功能。默认0
|
|
372
|
+
范围:0不跳过 1跳过 ;
|
|
373
|
+
0报错手动修复报错内容,重载任务时选择不跳过错误。
|
|
374
|
+
1重载任务时选择跳过当前错误(请自行评估跳过错误的风险)
|
|
375
|
+
:type PathPrefix: Int
|
|
376
|
+
"""
|
|
377
|
+
self.TaskId = None
|
|
378
|
+
self.ActionName = None
|
|
379
|
+
self.TaskType = None
|
|
380
|
+
self.ErrSkip = None
|
|
381
|
+
|
|
382
|
+
def _deserialize(self, params):
|
|
383
|
+
if params.get("TaskId"):
|
|
384
|
+
self.TaskId = params.get("TaskId")
|
|
385
|
+
if params.get("ActionName"):
|
|
386
|
+
self.ActionName = params.get("ActionName")
|
|
387
|
+
if params.get("TaskType"):
|
|
388
|
+
self.TaskType = params.get("TaskType")
|
|
389
|
+
if params.get("ErrSkip"):
|
|
390
|
+
self.ErrSkip = params.get("ErrSkip")
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
class DescribeConnConfigRequest(AbstractModel):
|
|
394
|
+
"""DescribeConnConfig请求参数结构体
|
|
395
|
+
"""
|
|
396
|
+
|
|
397
|
+
def __init__(self):
|
|
398
|
+
r"""查询任务配置信息(通过配置ID获取)
|
|
399
|
+
:param ConnConfigId: 任务配置ID
|
|
400
|
+
:type PathPrefix: String
|
|
401
|
+
"""
|
|
402
|
+
self.ConnConfigId = None
|
|
403
|
+
|
|
404
|
+
def _deserialize(self, params):
|
|
405
|
+
if params.get("ConnConfigId"):
|
|
406
|
+
self.ConnConfigId = params.get("ConnConfigId")
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
class DescribePrecheckRequest(AbstractModel):
|
|
410
|
+
"""DescribePrecheck请求参数结构体
|
|
411
|
+
"""
|
|
412
|
+
|
|
413
|
+
def __init__(self):
|
|
414
|
+
r"""查询预检查结果(含未通过异常反馈)
|
|
415
|
+
:param PrecheckId: 预检查任务ID
|
|
416
|
+
:type PathPrefix: String
|
|
417
|
+
"""
|
|
418
|
+
self.PrecheckId = None
|
|
419
|
+
|
|
420
|
+
def _deserialize(self, params):
|
|
421
|
+
if params.get("PrecheckId"):
|
|
422
|
+
self.PrecheckId = params.get("PrecheckId")
|
|
423
|
+
|
|
424
|
+
|
|
425
|
+
class DescribeSourceUserConfigRequest(AbstractModel):
|
|
426
|
+
"""DescribeSourceUserConfig请求参数结构体
|
|
427
|
+
"""
|
|
428
|
+
|
|
429
|
+
def __init__(self):
|
|
430
|
+
r"""获取迁移账号配置信息
|
|
431
|
+
:param TaskId: 主任务ID
|
|
432
|
+
:type PathPrefix: String
|
|
433
|
+
"""
|
|
434
|
+
self.TaskId = None
|
|
435
|
+
|
|
436
|
+
def _deserialize(self, params):
|
|
437
|
+
if params.get("TaskId"):
|
|
438
|
+
self.TaskId = params.get("TaskId")
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
class SetConsistencyCheckRequest(AbstractModel):
|
|
442
|
+
"""SetConsistencyCheck请求参数结构体
|
|
443
|
+
"""
|
|
444
|
+
|
|
445
|
+
def __init__(self):
|
|
446
|
+
r"""打开或关闭DTS一致性校验定时任务
|
|
447
|
+
:param TaskId: 主任务ID
|
|
448
|
+
:type PathPrefix: String
|
|
449
|
+
:param ConsistencyCheckAuto: 校验开关。范围:True|False
|
|
450
|
+
:type PathPrefix: Boolean
|
|
451
|
+
:param ConsistencyCheckCycle: 自动校验周期。 开启定时校验任务必传。
|
|
452
|
+
:type PathPrefix: Int
|
|
453
|
+
:param ConsistencyCheckFixedTime: 校验时间。开启定时校验任务必传。
|
|
454
|
+
:type PathPrefix: String
|
|
455
|
+
"""
|
|
456
|
+
self.TaskId = None
|
|
457
|
+
self.ConsistencyCheckAuto = None
|
|
458
|
+
self.ConsistencyCheckCycle = None
|
|
459
|
+
self.ConsistencyCheckFixedTime = None
|
|
460
|
+
|
|
461
|
+
def _deserialize(self, params):
|
|
462
|
+
if params.get("TaskId"):
|
|
463
|
+
self.TaskId = params.get("TaskId")
|
|
464
|
+
if params.get("ConsistencyCheckAuto"):
|
|
465
|
+
self.ConsistencyCheckAuto = params.get("ConsistencyCheckAuto")
|
|
466
|
+
if params.get("ConsistencyCheckCycle"):
|
|
467
|
+
self.ConsistencyCheckCycle = params.get("ConsistencyCheckCycle")
|
|
468
|
+
if params.get("ConsistencyCheckFixedTime"):
|
|
469
|
+
self.ConsistencyCheckFixedTime = params.get("ConsistencyCheckFixedTime")
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
class DescribeConsistencyCheckRequest(AbstractModel):
|
|
473
|
+
"""DescribeConsistencyCheck请求参数结构体
|
|
474
|
+
"""
|
|
475
|
+
|
|
476
|
+
def __init__(self):
|
|
477
|
+
r"""查询定时一致性校验任务状态
|
|
478
|
+
:param TaskId: 主任务ID
|
|
479
|
+
:type PathPrefix: String
|
|
480
|
+
"""
|
|
481
|
+
self.TaskId = None
|
|
482
|
+
|
|
483
|
+
def _deserialize(self, params):
|
|
484
|
+
if params.get("TaskId"):
|
|
485
|
+
self.TaskId = params.get("TaskId")
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
class DescribeDTSParameterRequest(AbstractModel):
|
|
489
|
+
"""DescribeDTSParameter请求参数结构体
|
|
490
|
+
"""
|
|
491
|
+
|
|
492
|
+
def __init__(self):
|
|
493
|
+
r"""获取迁移实例参数信息(参数对齐功能使用)
|
|
494
|
+
:param SourceType: 源端实例类型。如:Public|SpecialLine|Krds|SubscriptionKrds(仅支持mysql)等。
|
|
495
|
+
:type PathPrefix: String
|
|
496
|
+
:param TargetType: 目标端实例类型。
|
|
497
|
+
:type PathPrefix: String
|
|
498
|
+
:param TargetInstanceId: 目标端数据库实例ID。
|
|
499
|
+
:type PathPrefix: String
|
|
500
|
+
:param TargetRegion: 目标端实例机房。
|
|
501
|
+
:type PathPrefix: String
|
|
502
|
+
:param SourceInstanceId: 源端数据库实例ID。
|
|
503
|
+
:type PathPrefix: String
|
|
504
|
+
:param SourceHost: 源端实例IP。
|
|
505
|
+
:type PathPrefix: String
|
|
506
|
+
:param SourcePort: 源端实例端口。
|
|
507
|
+
:type PathPrefix: String
|
|
508
|
+
:param SourceUsername: 源端数据库用户名。
|
|
509
|
+
:type PathPrefix: String
|
|
510
|
+
:param SourcePassword: 源端数据库账号密码。
|
|
511
|
+
:type PathPrefix: String
|
|
512
|
+
:param SourceRegion: 源端实例机房。
|
|
513
|
+
:type PathPrefix: String
|
|
514
|
+
"""
|
|
515
|
+
self.SourceType = None
|
|
516
|
+
self.TargetType = None
|
|
517
|
+
self.TargetInstanceId = None
|
|
518
|
+
self.TargetRegion = None
|
|
519
|
+
self.SourceInstanceId = None
|
|
520
|
+
self.SourceHost = None
|
|
521
|
+
self.SourcePort = None
|
|
522
|
+
self.SourceUsername = None
|
|
523
|
+
self.SourcePassword = None
|
|
524
|
+
self.SourceRegion = None
|
|
525
|
+
|
|
526
|
+
def _deserialize(self, params):
|
|
527
|
+
if params.get("SourceType"):
|
|
528
|
+
self.SourceType = params.get("SourceType")
|
|
529
|
+
if params.get("TargetType"):
|
|
530
|
+
self.TargetType = params.get("TargetType")
|
|
531
|
+
if params.get("TargetInstanceId"):
|
|
532
|
+
self.TargetInstanceId = params.get("TargetInstanceId")
|
|
533
|
+
if params.get("TargetRegion"):
|
|
534
|
+
self.TargetRegion = params.get("TargetRegion")
|
|
535
|
+
if params.get("SourceInstanceId"):
|
|
536
|
+
self.SourceInstanceId = params.get("SourceInstanceId")
|
|
537
|
+
if params.get("SourceHost"):
|
|
538
|
+
self.SourceHost = params.get("SourceHost")
|
|
539
|
+
if params.get("SourcePort"):
|
|
540
|
+
self.SourcePort = params.get("SourcePort")
|
|
541
|
+
if params.get("SourceUsername"):
|
|
542
|
+
self.SourceUsername = params.get("SourceUsername")
|
|
543
|
+
if params.get("SourcePassword"):
|
|
544
|
+
self.SourcePassword = params.get("SourcePassword")
|
|
545
|
+
if params.get("SourceRegion"):
|
|
546
|
+
self.SourceRegion = params.get("SourceRegion")
|
|
547
|
+
|
|
548
|
+
|
|
549
|
+
class DescribeDTSParameterConfigRequest(AbstractModel):
|
|
550
|
+
"""DescribeDTSParameterConfig请求参数结构体
|
|
551
|
+
"""
|
|
552
|
+
|
|
553
|
+
def __init__(self):
|
|
554
|
+
r"""查询DTS任务的实例参数配置
|
|
555
|
+
:param TaskId: 主任务ID。
|
|
556
|
+
:type PathPrefix: String
|
|
557
|
+
"""
|
|
558
|
+
self.TaskId = None
|
|
559
|
+
|
|
560
|
+
def _deserialize(self, params):
|
|
561
|
+
if params.get("TaskId"):
|
|
562
|
+
self.TaskId = params.get("TaskId")
|
|
563
|
+
|
|
564
|
+
|
|
565
|
+
class DescribeSourceUserRequest(AbstractModel):
|
|
566
|
+
"""DescribeSourceUser请求参数结构体
|
|
567
|
+
"""
|
|
568
|
+
|
|
569
|
+
def __init__(self):
|
|
570
|
+
r"""获取源端实例用户账号信息
|
|
571
|
+
:param SourceInstanceId: 源端mysql实例id
|
|
572
|
+
:type PathPrefix: String
|
|
573
|
+
:param SourceType: 源库类型
|
|
574
|
+
:type PathPrefix: String
|
|
575
|
+
:param SourceUsername: 源端mysql连接用户名
|
|
576
|
+
:type PathPrefix: String
|
|
577
|
+
:param SourcePassword: 源端mysql连接密码
|
|
578
|
+
:type PathPrefix: String
|
|
579
|
+
:param SourceRegion: 源端可用区
|
|
580
|
+
:type PathPrefix: String
|
|
581
|
+
:param TargetType: 目标端实例类型
|
|
582
|
+
:type PathPrefix: String
|
|
583
|
+
:param TargetInstanceId: 目标端实例id
|
|
584
|
+
:type PathPrefix: String
|
|
585
|
+
:param TargetRegion: 目标端可用区
|
|
586
|
+
:type PathPrefix: String
|
|
587
|
+
"""
|
|
588
|
+
self.SourceInstanceId = None
|
|
589
|
+
self.SourceType = None
|
|
590
|
+
self.SourceUsername = None
|
|
591
|
+
self.SourcePassword = None
|
|
592
|
+
self.SourceRegion = None
|
|
593
|
+
self.TargetType = None
|
|
594
|
+
self.TargetInstanceId = None
|
|
595
|
+
self.TargetRegion = None
|
|
596
|
+
|
|
597
|
+
def _deserialize(self, params):
|
|
598
|
+
if params.get("SourceInstanceId"):
|
|
599
|
+
self.SourceInstanceId = params.get("SourceInstanceId")
|
|
600
|
+
if params.get("SourceType"):
|
|
601
|
+
self.SourceType = params.get("SourceType")
|
|
602
|
+
if params.get("SourceUsername"):
|
|
603
|
+
self.SourceUsername = params.get("SourceUsername")
|
|
604
|
+
if params.get("SourcePassword"):
|
|
605
|
+
self.SourcePassword = params.get("SourcePassword")
|
|
606
|
+
if params.get("SourceRegion"):
|
|
607
|
+
self.SourceRegion = params.get("SourceRegion")
|
|
608
|
+
if params.get("TargetType"):
|
|
609
|
+
self.TargetType = params.get("TargetType")
|
|
610
|
+
if params.get("TargetInstanceId"):
|
|
611
|
+
self.TargetInstanceId = params.get("TargetInstanceId")
|
|
612
|
+
if params.get("TargetRegion"):
|
|
613
|
+
self.TargetRegion = params.get("TargetRegion")
|
|
614
|
+
|
|
615
|
+
|
|
616
|
+
class DescribeSubTaskRequest(AbstractModel):
|
|
617
|
+
"""DescribeSubTask请求参数结构体
|
|
618
|
+
"""
|
|
619
|
+
|
|
620
|
+
def __init__(self):
|
|
621
|
+
r"""查询一致性校验任务(子任务/一致性校验任务)
|
|
622
|
+
:param TaskId: 主任务ID。须同子任务名称一同填入生效,多用于查询一致性校验子任务列表。
|
|
623
|
+
:type PathPrefix: String
|
|
624
|
+
:param SubTaskId: 子任务ID。选填子任务ID,则查询子任务详情。请务必填写子任务ID与主任务ID其中一个。
|
|
625
|
+
:type PathPrefix: String
|
|
626
|
+
:param SubTaskName: 子任务名称。须同主任务ID一同填入生效,多用于查询一致性校验子任务列表。
|
|
627
|
+
|
|
628
|
+
一致性校验子任务名称:
|
|
629
|
+
|
|
630
|
+
一致性校验:ConsistencyCheck,用户手工触发一致性校验:UserConsistencyCheck,定时触发一致性校验:FixedConsistencyCheck
|
|
631
|
+
:type PathPrefix: String
|
|
632
|
+
:param OrderByType: 排序方式。查询子任务列表时根据子任务创建时间拍排序,默认DESC
|
|
633
|
+
:type PathPrefix: String
|
|
634
|
+
:param ObjectStatus: 子任务table执行状态。查询子任务table迁移详情时可传入。范围:迁移完成:finish 待迁移:unstart 迁移失败:error 迁移中:running 跳过:skip
|
|
635
|
+
:type PathPrefix: String
|
|
636
|
+
:param Marker: 当前查询开始行数。默认0。
|
|
637
|
+
:type PathPrefix: Int
|
|
638
|
+
:param MaxRecords: 当前页最大行数。默认10。
|
|
639
|
+
:type PathPrefix: Int
|
|
640
|
+
"""
|
|
641
|
+
self.TaskId = None
|
|
642
|
+
self.SubTaskId = None
|
|
643
|
+
self.SubTaskName = None
|
|
644
|
+
self.OrderByType = None
|
|
645
|
+
self.ObjectStatus = None
|
|
646
|
+
self.Marker = None
|
|
647
|
+
self.MaxRecords = None
|
|
648
|
+
|
|
649
|
+
def _deserialize(self, params):
|
|
650
|
+
if params.get("TaskId"):
|
|
651
|
+
self.TaskId = params.get("TaskId")
|
|
652
|
+
if params.get("SubTaskId"):
|
|
653
|
+
self.SubTaskId = params.get("SubTaskId")
|
|
654
|
+
if params.get("SubTaskName"):
|
|
655
|
+
self.SubTaskName = params.get("SubTaskName")
|
|
656
|
+
if params.get("OrderByType"):
|
|
657
|
+
self.OrderByType = params.get("OrderByType")
|
|
658
|
+
if params.get("ObjectStatus"):
|
|
659
|
+
self.ObjectStatus = params.get("ObjectStatus")
|
|
660
|
+
if params.get("Marker"):
|
|
661
|
+
self.Marker = params.get("Marker")
|
|
662
|
+
if params.get("MaxRecords"):
|
|
663
|
+
self.MaxRecords = params.get("MaxRecords")
|
|
664
|
+
|
|
665
|
+
|
|
666
|
+
class CreateConsistencyCheckRequest(AbstractModel):
|
|
667
|
+
"""CreateConsistencyCheck请求参数结构体
|
|
668
|
+
"""
|
|
669
|
+
|
|
670
|
+
def __init__(self):
|
|
671
|
+
r"""创建一致性校验任务(子任务)
|
|
672
|
+
:param TaskId: 主任务ID。
|
|
673
|
+
:type PathPrefix: String
|
|
674
|
+
"""
|
|
675
|
+
self.TaskId = None
|
|
676
|
+
|
|
677
|
+
def _deserialize(self, params):
|
|
678
|
+
if params.get("TaskId"):
|
|
679
|
+
self.TaskId = params.get("TaskId")
|
|
680
|
+
|
|
681
|
+
|
|
682
|
+
class StopConsistencyCheckRequest(AbstractModel):
|
|
683
|
+
"""StopConsistencyCheck请求参数结构体
|
|
684
|
+
"""
|
|
685
|
+
|
|
686
|
+
def __init__(self):
|
|
687
|
+
r"""结束一致性校验任务(手动)
|
|
688
|
+
:param TaskId: 主任务ID。
|
|
689
|
+
:type PathPrefix: String
|
|
690
|
+
"""
|
|
691
|
+
self.TaskId = None
|
|
692
|
+
|
|
693
|
+
def _deserialize(self, params):
|
|
694
|
+
if params.get("TaskId"):
|
|
695
|
+
self.TaskId = params.get("TaskId")
|
|
696
|
+
|
|
697
|
+
|
|
698
|
+
class DescribeRegionConfigRequest(AbstractModel):
|
|
699
|
+
"""DescribeRegionConfig请求参数结构体
|
|
700
|
+
"""
|
|
701
|
+
|
|
702
|
+
def __init__(self):
|
|
703
|
+
r"""查询支持的地域信息
|
|
704
|
+
"""
|
|
705
|
+
|
|
706
|
+
def _deserialize(self, params):
|
|
707
|
+
return
|
|
708
|
+
|
|
709
|
+
|
|
710
|
+
class TaskBirdViewRequest(AbstractModel):
|
|
711
|
+
"""TaskBirdView请求参数结构体
|
|
712
|
+
"""
|
|
713
|
+
|
|
714
|
+
def __init__(self):
|
|
715
|
+
r"""分类型概览任务统计数据
|
|
716
|
+
:param taskType: 任务类型
|
|
717
|
+
|
|
718
|
+
```json
|
|
719
|
+
默认:Transmission
|
|
720
|
+
|
|
721
|
+
范围:
|
|
722
|
+
数据迁移 Transmission
|
|
723
|
+
数据同步 Synchronous
|
|
724
|
+
数据订阅 Subscription
|
|
725
|
+
```
|
|
726
|
+
:type PathPrefix: String
|
|
727
|
+
"""
|
|
728
|
+
self.taskType = None
|
|
729
|
+
|
|
730
|
+
def _deserialize(self, params):
|
|
731
|
+
if params.get("taskType"):
|
|
732
|
+
self.taskType = params.get("taskType")
|
|
733
|
+
|
|
734
|
+
|