Skip to content

Commit 4141ac6

Browse files
publish jdcloud-sdk-python 1.6.163
1 parent 7e1f40e commit 4141ac6

32 files changed

Lines changed: 1063 additions & 1 deletion
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# 更新历史
2+
3+
API版本:2.5.3
4+
5+
| 发布时间 | 版本号 | 更新 | 说明 |
6+
| ---------- | ------ | -------- | ------------------------- |
7+
| 2022-05-18 | 2.5.3 | 对外发布 | 对外发布部分接口 |
8+
| 2022-05-18 | 2.5.2 | 更新接口说明 | 更新部分接口operationId |
9+
| 2022-05-17 | 2.5.1 | 更新接口说明 | 更新regionId说明 |
10+
| 2022-04-19 | 2.5.0 | 更新接口 | 更新getMigrationProgress接口,增加数据校验状态字段 |
11+
| 2022-03-02 | 2.4.0 | 新增接口 | 新增getProxyClientNumber、killProxyClients接口 |
12+
| 2021-11-08 | 2.3.0 | 更新接口 | 更新createMigration接口,migrateConfig新增字段,支持原生redis迁移 |
13+
| 2021-06-11 | 2.2.1 | 新增接口 | 新增remigrate接口,getTrafficMonitor、describeMigration、describeMigrations新增字段 |
14+
| 2020-12-18 | 2.2.0 | 变更为v2版本 | |
15+
| 2020-11-20 | 2.1.0 | 重构更新 | |
16+
| 2020-10-23 | 2.0.0 | 重构 | |
17+
| 2019-10-23 | 1.1.0 | 增加接口 | 新增describeProxyClients、describeDataCheck、completeMigration接口 |
18+
| 2019-09-24 | 1.0.0 | 增加接口 | 初始版本,首次发布 |

jdcloud_sdk/services/rdts/__init__.py

Whitespace-only changes.
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class CreateMigrationJobRequest(JDCloudRequest):
23+
"""
24+
创建迁移job,创建job之后无法修改迁移配置
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v2"):
28+
super(CreateMigrationJobRequest, self).__init__(
29+
'/regions/{regionId}/instance/{instanceId}:start', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class CreateMigrationJobParameters(object):
34+
35+
def __init__(self, regionId,instanceId,):
36+
"""
37+
:param regionId: 迁移任务所在区域的Region ID。华北-北京(cn-north-1),华东-上海(cn-east-2),华南-广州(cn-south-1)
38+
:param instanceId: 迁移任务的唯一标识
39+
"""
40+
41+
self.regionId = regionId
42+
self.instanceId = instanceId
43+
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class CreateMigrationRequest(JDCloudRequest):
23+
"""
24+
创建一个迁移任务,指定并校验迁移配置
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v2"):
28+
super(CreateMigrationRequest, self).__init__(
29+
'/regions/{regionId}/instance', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class CreateMigrationParameters(object):
34+
35+
def __init__(self, regionId,migrateConfig, ):
36+
"""
37+
:param regionId: 迁移任务所在区域的Region ID。华北-北京(cn-north-1),华东-上海(cn-east-2),华南-广州(cn-south-1)
38+
:param migrateConfig: 迁移配置,创建成功后可修改
39+
"""
40+
41+
self.regionId = regionId
42+
self.migrateConfig = migrateConfig
43+
self.azAndNetConfig = None
44+
45+
def setAzAndNetConfig(self, azAndNetConfig):
46+
"""
47+
:param azAndNetConfig: (Optional) 可用区与网络配置,创建成功后不能修改
48+
"""
49+
self.azAndNetConfig = azAndNetConfig
50+
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class DeleteMigrationRequest(JDCloudRequest):
23+
"""
24+
删除迁移任务,迁移中的任务不能删除,迁移代理有流量不能删除
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v2"):
28+
super(DeleteMigrationRequest, self).__init__(
29+
'/regions/{regionId}/instance/{instanceId}', 'DELETE', header, version)
30+
self.parameters = parameters
31+
32+
33+
class DeleteMigrationParameters(object):
34+
35+
def __init__(self, regionId,instanceId,):
36+
"""
37+
:param regionId: 迁移任务所在区域的Region ID。华北-北京(cn-north-1),华东-上海(cn-east-2),华南-广州(cn-south-1)
38+
:param instanceId: 迁移任务的唯一标识
39+
"""
40+
41+
self.regionId = regionId
42+
self.instanceId = instanceId
43+
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class DescribeMigrationRequest(JDCloudRequest):
23+
"""
24+
查询迁移任务详情
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v2"):
28+
super(DescribeMigrationRequest, self).__init__(
29+
'/regions/{regionId}/instance/{instanceId}', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class DescribeMigrationParameters(object):
34+
35+
def __init__(self, regionId,instanceId,):
36+
"""
37+
:param regionId: 迁移任务所在区域的Region ID。华北-北京(cn-north-1),华东-上海(cn-east-2),华南-广州(cn-south-1)
38+
:param instanceId: 迁移任务的唯一标识
39+
"""
40+
41+
self.regionId = regionId
42+
self.instanceId = instanceId
43+
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class DescribeMigrationsRequest(JDCloudRequest):
23+
"""
24+
迁移任务列表,可分页、可排序、可搜索、可过滤
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v2"):
28+
super(DescribeMigrationsRequest, self).__init__(
29+
'/regions/{regionId}/instance', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class DescribeMigrationsParameters(object):
34+
35+
def __init__(self, regionId,):
36+
"""
37+
:param regionId: 迁移任务所在区域的Region ID。华北-北京(cn-north-1),华东-上海(cn-east-2),华南-广州(cn-south-1)
38+
"""
39+
40+
self.regionId = regionId
41+
self.pageNumber = None
42+
self.pageSize = None
43+
self.filters = None
44+
self.sorts = None
45+
46+
def setPageNumber(self, pageNumber):
47+
"""
48+
:param pageNumber: (Optional) 页码:取值范围[1,∞),默认为1
49+
"""
50+
self.pageNumber = pageNumber
51+
52+
def setPageSize(self, pageSize):
53+
"""
54+
:param pageSize: (Optional) 分页大小:取值范围[10,100],默认为10
55+
"""
56+
self.pageSize = pageSize
57+
58+
def setFilters(self, filters):
59+
"""
60+
:param filters: (Optional) 过滤条件:
61+
- instanceIds:迁移任务ID,精确匹配,可选择多个
62+
- migrationName:迁移任务名称,模糊匹配
63+
- migrationStatuses:迁移任务状态,精确匹配,可选择多个(具体可参考迁移任务详情中的迁移状态)
64+
65+
"""
66+
self.filters = filters
67+
68+
def setSorts(self, sorts):
69+
"""
70+
:param sorts: (Optional) 排序属性:
71+
- createdTime:按创建时间排序(asc表示按时间正序,desc表示按时间倒序)
72+
73+
"""
74+
self.sorts = sorts
75+
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class GetMigrationProgressRequest(JDCloudRequest):
23+
"""
24+
查询迁移进度及数据校验状态
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v2"):
28+
super(GetMigrationProgressRequest, self).__init__(
29+
'/regions/{regionId}/instance/{instanceId}:getMigrationProgress', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class GetMigrationProgressParameters(object):
34+
35+
def __init__(self, regionId,instanceId,):
36+
"""
37+
:param regionId: 迁移任务所在区域的Region ID。华北-北京(cn-north-1),华东-上海(cn-east-2),华南-广州(cn-south-1)
38+
:param instanceId: 迁移任务的唯一标识
39+
"""
40+
41+
self.regionId = regionId
42+
self.instanceId = instanceId
43+
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# coding=utf8
2+
3+
# Copyright 2018 JDCLOUD.COM
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
# NOTE: This class is auto generated by the jdcloud code generator program.
18+
19+
from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest
20+
21+
22+
class ModifyMigrationNameRequest(JDCloudRequest):
23+
"""
24+
修改迁移任务名
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v2"):
28+
super(ModifyMigrationNameRequest, self).__init__(
29+
'/regions/{regionId}/instance/{instanceId}:modifyMigrateName', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class ModifyMigrationNameParameters(object):
34+
35+
def __init__(self, regionId,instanceId,):
36+
"""
37+
:param regionId: 迁移任务所在区域的Region ID。华北-北京(cn-north-1),华东-上海(cn-east-2),华南-广州(cn-south-1)
38+
:param instanceId: 迁移任务的唯一标识
39+
"""
40+
41+
self.regionId = regionId
42+
self.instanceId = instanceId
43+
self.migrateName = None
44+
45+
def setMigrateName(self, migrateName):
46+
"""
47+
:param migrateName: (Optional) 迁移任务名
48+
"""
49+
self.migrateName = migrateName
50+

0 commit comments

Comments
 (0)