Skip to content

Commit 844ac8b

Browse files
publish jdcloud-sdk-python 1.6.165
1 parent 4a343a8 commit 844ac8b

18 files changed

Lines changed: 1066 additions & 3 deletions

jdcloud_sdk/services/dms/ChangeLog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ API版本:1.1.0
44
| 发布时间 | 版本号 | 更新 | 说明 |
55
| ---------- | ----- | ---- | ----------- |
66
| 2021-07-06 | 1.0.0 | 初始版本 | * API定义基础接口 |
7-
| 2022-03-06 | 1.1.0 | 新增接口 | |
7+
| 2022-03-06 | 1.1.0 | 新增接口 | * 对外发布 |
8+
| 2022-05-24 | 1.2.0 | 新增接口 | * 新增视图接口 |
89

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
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 CreateDataFlowRequest(JDCloudRequest):
23+
"""
24+
创建数据变更工单
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(CreateDataFlowRequest, self).__init__(
29+
'/regions/{regionId}/dataFlow:create', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class CreateDataFlowParameters(object):
34+
35+
def __init__(self, regionId,):
36+
"""
37+
:param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)
38+
"""
39+
40+
self.regionId = regionId
41+
self.dataSourceId = None
42+
self.dbName = None
43+
self.taskPlanTypeEnum = None
44+
self.dbaApproveTypeEnum = None
45+
self.memo = None
46+
self.sqlText = None
47+
self.sqlFileTaskId = None
48+
self.rollbackSqlText = None
49+
self.rollbackFileTaskId = None
50+
51+
def setDataSourceId(self, dataSourceId):
52+
"""
53+
:param dataSourceId: (Optional) 数据库id
54+
"""
55+
self.dataSourceId = dataSourceId
56+
57+
def setDbName(self, dbName):
58+
"""
59+
:param dbName: (Optional) 数据库名称
60+
"""
61+
self.dbName = dbName
62+
63+
def setTaskPlanTypeEnum(self, taskPlanTypeEnum):
64+
"""
65+
:param taskPlanTypeEnum: (Optional) 执行方式,AUTO("AUTO", 0), BY_CREATOR("BY_CREATOR", 1)
66+
"""
67+
self.taskPlanTypeEnum = taskPlanTypeEnum
68+
69+
def setDbaApproveTypeEnum(self, dbaApproveTypeEnum):
70+
"""
71+
:param dbaApproveTypeEnum: (Optional) DBA审批方式,AUTO("AUTO", 0), MANUAL("MANUAL", 1)
72+
"""
73+
self.dbaApproveTypeEnum = dbaApproveTypeEnum
74+
75+
def setMemo(self, memo):
76+
"""
77+
:param memo: (Optional) 申请原因
78+
"""
79+
self.memo = memo
80+
81+
def setSqlText(self, sqlText):
82+
"""
83+
:param sqlText: (Optional) SQL文本,变更SQL选择文本时,必填
84+
"""
85+
self.sqlText = sqlText
86+
87+
def setSqlFileTaskId(self, sqlFileTaskId):
88+
"""
89+
:param sqlFileTaskId: (Optional) SQL附件导入任务Id
90+
"""
91+
self.sqlFileTaskId = sqlFileTaskId
92+
93+
def setRollbackSqlText(self, rollbackSqlText):
94+
"""
95+
:param rollbackSqlText: (Optional) 回滚SQL文本,选填
96+
"""
97+
self.rollbackSqlText = rollbackSqlText
98+
99+
def setRollbackFileTaskId(self, rollbackFileTaskId):
100+
"""
101+
:param rollbackFileTaskId: (Optional) 回滚SQL附件导入任务Id
102+
"""
103+
self.rollbackFileTaskId = rollbackFileTaskId
104+
Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
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 CreateExportFlowRequest(JDCloudRequest):
23+
"""
24+
创建数据导出工单
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(CreateExportFlowRequest, self).__init__(
29+
'/regions/{regionId}/exportFlow:create', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class CreateExportFlowParameters(object):
34+
35+
def __init__(self, regionId,):
36+
"""
37+
:param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)
38+
"""
39+
40+
self.regionId = regionId
41+
self.dataSourceId = None
42+
self.dbName = None
43+
self.taskPlanTypeEnum = None
44+
self.dbaApproveTypeEnum = None
45+
self.memo = None
46+
self.exportTypeEnum = None
47+
self.exportFileTypeEnum = None
48+
self.rowsNum = None
49+
self.ignoreError = None
50+
self.ignoreReason = None
51+
self.exportSqlText = None
52+
self.tableFilters = None
53+
self.exportContentTypeEnum = None
54+
55+
def setDataSourceId(self, dataSourceId):
56+
"""
57+
:param dataSourceId: (Optional) 数据库id
58+
"""
59+
self.dataSourceId = dataSourceId
60+
61+
def setDbName(self, dbName):
62+
"""
63+
:param dbName: (Optional) 数据库名称
64+
"""
65+
self.dbName = dbName
66+
67+
def setTaskPlanTypeEnum(self, taskPlanTypeEnum):
68+
"""
69+
:param taskPlanTypeEnum: (Optional) 执行方式,AUTO("AUTO", 0), BY_CREATOR("BY_CREATOR", 1)
70+
"""
71+
self.taskPlanTypeEnum = taskPlanTypeEnum
72+
73+
def setDbaApproveTypeEnum(self, dbaApproveTypeEnum):
74+
"""
75+
:param dbaApproveTypeEnum: (Optional) DBA审批方式,AUTO("AUTO", 0), MANUAL("MANUAL", 1)
76+
"""
77+
self.dbaApproveTypeEnum = dbaApproveTypeEnum
78+
79+
def setMemo(self, memo):
80+
"""
81+
:param memo: (Optional) 申请原因
82+
"""
83+
self.memo = memo
84+
85+
def setExportTypeEnum(self, exportTypeEnum):
86+
"""
87+
:param exportTypeEnum: (Optional) 导出类型, RESULT_SET("RESULT_SET", 0), DB("DB", 1)
88+
"""
89+
self.exportTypeEnum = exportTypeEnum
90+
91+
def setExportFileTypeEnum(self, exportFileTypeEnum):
92+
"""
93+
:param exportFileTypeEnum: (Optional) 导出格式,CSV("CSV", 0), SQL("SQL", 1)
94+
"""
95+
self.exportFileTypeEnum = exportFileTypeEnum
96+
97+
def setRowsNum(self, rowsNum):
98+
"""
99+
:param rowsNum: (Optional) 影响行数,导出类型为结果集导出时,必填
100+
"""
101+
self.rowsNum = rowsNum
102+
103+
def setIgnoreError(self, ignoreError):
104+
"""
105+
:param ignoreError: (Optional) 是否跳过检验,导出类型为结果集导出时,必填
106+
"""
107+
self.ignoreError = ignoreError
108+
109+
def setIgnoreReason(self, ignoreReason):
110+
"""
111+
:param ignoreReason: (Optional) 跳过检验原因,ignoreError为true时,必填
112+
"""
113+
self.ignoreReason = ignoreReason
114+
115+
def setExportSqlText(self, exportSqlText):
116+
"""
117+
:param exportSqlText: (Optional) 导出SQL文本,导出类型为结果集导出时,必填
118+
"""
119+
self.exportSqlText = exportSqlText
120+
121+
def setTableFilters(self, tableFilters):
122+
"""
123+
:param tableFilters: (Optional) 导出表及过滤条件,为空时导出全部表。导出类型为数据库导出时,必填
124+
"""
125+
self.tableFilters = tableFilters
126+
127+
def setExportContentTypeEnum(self, exportContentTypeEnum):
128+
"""
129+
:param exportContentTypeEnum: (Optional) 导出内容,DATA("DATA", 0), STRUCT("STRUCT", 1), STRUCT_DATA("STRUCT_DATA", 2),导出类型为数据库导出时,必填
130+
"""
131+
self.exportContentTypeEnum = exportContentTypeEnum
132+
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
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 CreateImportFileTaskRequest(JDCloudRequest):
23+
"""
24+
创建导入文件任务
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(CreateImportFileTaskRequest, self).__init__(
29+
'/regions/{regionId}/importFileTask:create', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class CreateImportFileTaskParameters(object):
34+
35+
def __init__(self, regionId,):
36+
"""
37+
:param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)
38+
"""
39+
40+
self.regionId = regionId
41+
self.filename = None
42+
self.totalSize = None
43+
self.chunkSize = None
44+
self.totalChunks = None
45+
46+
def setFilename(self, filename):
47+
"""
48+
:param filename: (Optional) 文件名称
49+
"""
50+
self.filename = filename
51+
52+
def setTotalSize(self, totalSize):
53+
"""
54+
:param totalSize: (Optional) 文件总大小
55+
"""
56+
self.totalSize = totalSize
57+
58+
def setChunkSize(self, chunkSize):
59+
"""
60+
:param chunkSize: (Optional) 文件分片大小
61+
"""
62+
self.chunkSize = chunkSize
63+
64+
def setTotalChunks(self, totalChunks):
65+
"""
66+
:param totalChunks: (Optional) 文件分片数
67+
"""
68+
self.totalChunks = totalChunks
69+

0 commit comments

Comments
 (0)