Skip to content

Commit af6b594

Browse files
Merge pull request #302 from jdcloud-apigateway/master
shenhaiplatform v2 1.0.2
2 parents 2c9e322 + 7bfcdd3 commit af6b594

47 files changed

Lines changed: 2006 additions & 9 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎jdcloud_sdk/services/shenhaiplatform/ChangeLog.md‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22

33
API版本:1.0.1
44

5-
| 发布时间 | 版本号 | 更新 | 说明 |
6-
|------------|-------|------------|-------------|
7-
| 2023-04-02 | 1.0.0 | 初始版本 | 1.定义初始版本API |
8-
| 2026-07-30 | 1.0.1 | 更新对外发布接口版本 | 1.增加对外发布接口 |
5+
| 发布时间 | 版本号 | 更新 | 说明 |
6+
|------------|-------|------------|----------------|
7+
| 2023-04-02 | 1.0.0 | 初始版本 | 1.定义初始版本API |
8+
| 2026-07-30 | 1.0.1 | 更新对外发布接口版本 | 1.增加对外发布接口 |
9+
| 2026-08-07 | 1.0.2 | 更新对外发布接口版本 | 1.增加数据开发对外发布接口 |
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
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 BindInstanceRequest(JDCloudRequest):
23+
"""
24+
计算引擎绑定云仓或JMR实例
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v2"):
28+
super(BindInstanceRequest, self).__init__(
29+
'/regions/{regionId}/apps/{appName}/bindInstance', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class BindInstanceParameters(object):
34+
35+
def __init__(self,regionId, appName, ):
36+
"""
37+
:param regionId: 地域ID
38+
:param appName: 应用名称
39+
"""
40+
41+
self.regionId = regionId
42+
self.appName = appName
43+
self.engineCode = None
44+
self.instanceCode = None
45+
self.instanceName = None
46+
self.instanceType = None
47+
self.resourceCode = None
48+
self.env = None
49+
50+
def setEngineCode(self, engineCode):
51+
"""
52+
:param engineCode: (Optional) 计算引擎Code
53+
"""
54+
self.engineCode = engineCode
55+
56+
def setInstanceCode(self, instanceCode):
57+
"""
58+
:param instanceCode: (Optional) 实例Code
59+
"""
60+
self.instanceCode = instanceCode
61+
62+
def setInstanceName(self, instanceName):
63+
"""
64+
:param instanceName: (Optional) 实例名称
65+
"""
66+
self.instanceName = instanceName
67+
68+
def setInstanceType(self, instanceType):
69+
"""
70+
:param instanceType: (Optional) 实例类型(JCW/JMR)
71+
"""
72+
self.instanceType = instanceType
73+
74+
def setResourceCode(self, resourceCode):
75+
"""
76+
:param resourceCode: (Optional) 资源组Code
77+
"""
78+
self.resourceCode = resourceCode
79+
80+
def setEnv(self, env):
81+
"""
82+
:param env: (Optional) 环境类型(dev/prod)
83+
"""
84+
self.env = env
85+
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
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 BindWorkspaceEngineRequest(JDCloudRequest):
23+
"""
24+
前端绑定计算引擎弹窗一键完成绑定
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v2"):
28+
super(BindWorkspaceEngineRequest, self).__init__(
29+
'/regions/{regionId}/apps/{appName}/bindWorkspaceEngine', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class BindWorkspaceEngineParameters(object):
34+
35+
def __init__(self,regionId, appName, ):
36+
"""
37+
:param regionId: 地域ID
38+
:param appName: 应用名称
39+
"""
40+
41+
self.regionId = regionId
42+
self.appName = appName
43+
self.workspaceCode = None
44+
self.engineName = None
45+
self.engineType = None
46+
self.devConfig = None
47+
self.prodConfig = None
48+
49+
def setWorkspaceCode(self, workspaceCode):
50+
"""
51+
:param workspaceCode: (Optional) 工作空间Code
52+
"""
53+
self.workspaceCode = workspaceCode
54+
55+
def setEngineName(self, engineName):
56+
"""
57+
:param engineName: (Optional) 存算引擎实例名
58+
"""
59+
self.engineName = engineName
60+
61+
def setEngineType(self, engineType):
62+
"""
63+
:param engineType: (Optional) 计算引擎类型(JCW/JMR)
64+
"""
65+
self.engineType = engineType
66+
67+
def setDevConfig(self, devConfig):
68+
"""
69+
:param devConfig: (Optional)
70+
"""
71+
self.devConfig = devConfig
72+
73+
def setProdConfig(self, prodConfig):
74+
"""
75+
:param prodConfig: (Optional)
76+
"""
77+
self.prodConfig = prodConfig
78+
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
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 EngineCreateRequest(JDCloudRequest):
23+
"""
24+
创建计算引擎实体
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v2"):
28+
super(EngineCreateRequest, self).__init__(
29+
'/regions/{regionId}/apps/{appName}/engineCreate', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class EngineCreateParameters(object):
34+
35+
def __init__(self,regionId, appName, ):
36+
"""
37+
:param regionId: 地域ID
38+
:param appName: 应用名称
39+
"""
40+
41+
self.regionId = regionId
42+
self.appName = appName
43+
self.workspaceCode = None
44+
self.engineName = None
45+
self.engineType = None
46+
self.description = None
47+
48+
def setWorkspaceCode(self, workspaceCode):
49+
"""
50+
:param workspaceCode: (Optional) 工作空间Code
51+
"""
52+
self.workspaceCode = workspaceCode
53+
54+
def setEngineName(self, engineName):
55+
"""
56+
:param engineName: (Optional) 存算引擎实例名
57+
"""
58+
self.engineName = engineName
59+
60+
def setEngineType(self, engineType):
61+
"""
62+
:param engineType: (Optional) 计算引擎类型(JCW/JMR)
63+
"""
64+
self.engineType = engineType
65+
66+
def setDescription(self, description):
67+
"""
68+
:param description: (Optional) 描述信息
69+
"""
70+
self.description = description
71+
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
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 GetByProjectCodeRequest(JDCloudRequest):
23+
"""
24+
按照projectCode查询绑定的计算引擎信息以及计算引擎绑定的空间信息
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v2"):
28+
super(GetByProjectCodeRequest, self).__init__(
29+
'/regions/{regionId}/apps/{appName}/getByProjectCode', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class GetByProjectCodeParameters(object):
34+
35+
def __init__(self,regionId, appName, ):
36+
"""
37+
:param regionId: 地域ID
38+
:param appName: 应用名称
39+
"""
40+
41+
self.regionId = regionId
42+
self.appName = appName
43+
self.id = None
44+
self.workspaceCode = None
45+
self.projectCode = None
46+
self.resourceCode = None
47+
48+
def setId(self, id):
49+
"""
50+
:param id: (Optional)
51+
"""
52+
self.id = id
53+
54+
def setWorkspaceCode(self, workspaceCode):
55+
"""
56+
:param workspaceCode: (Optional)
57+
"""
58+
self.workspaceCode = workspaceCode
59+
60+
def setProjectCode(self, projectCode):
61+
"""
62+
:param projectCode: (Optional)
63+
"""
64+
self.projectCode = projectCode
65+
66+
def setResourceCode(self, resourceCode):
67+
"""
68+
:param resourceCode: (Optional)
69+
"""
70+
self.resourceCode = resourceCode
71+
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
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 GetEngineByWorkspaceCodeRequest(JDCloudRequest):
23+
"""
24+
通过工作空间Code查询绑定的计算引擎列表
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v2"):
28+
super(GetEngineByWorkspaceCodeRequest, self).__init__(
29+
'/regions/{regionId}/apps/{appName}/getEngineByWorkspaceCode', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class GetEngineByWorkspaceCodeParameters(object):
34+
35+
def __init__(self,regionId, appName, ):
36+
"""
37+
:param regionId: 地域ID
38+
:param appName: 应用名称
39+
"""
40+
41+
self.regionId = regionId
42+
self.appName = appName
43+
self.id = None
44+
self.workspaceCode = None
45+
self.projectCode = None
46+
self.resourceCode = None
47+
48+
def setId(self, id):
49+
"""
50+
:param id: (Optional)
51+
"""
52+
self.id = id
53+
54+
def setWorkspaceCode(self, workspaceCode):
55+
"""
56+
:param workspaceCode: (Optional)
57+
"""
58+
self.workspaceCode = workspaceCode
59+
60+
def setProjectCode(self, projectCode):
61+
"""
62+
:param projectCode: (Optional)
63+
"""
64+
self.projectCode = projectCode
65+
66+
def setResourceCode(self, resourceCode):
67+
"""
68+
:param resourceCode: (Optional)
69+
"""
70+
self.resourceCode = resourceCode
71+

0 commit comments

Comments
 (0)