Skip to content

Commit 0361a0e

Browse files
Merge pull request #161 from jdcloud-apigateway/master
publish jdcloud-sdk-python 1.6.151
2 parents 52f9d0d + d9511f5 commit 0361a0e

66 files changed

Lines changed: 2833 additions & 1 deletion

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# 更新历史 #
2+
API版本:0.2.0
3+
4+
| 发布时间 | 版本号 | 更新 | 说明 |
5+
| ---------- | ----- | ---- | ----------- |
6+
| 2020-05-19 | 0.1.3 | 初始版本 | * API定义基础接口 |
7+
| 2020-05-21 | 0.1.4 | 修改创建接口参数 | * API定义基础接口 |
8+
| 2020-05-25 | 0.1.5 | 修改创建接口参数 | * API增加zk规格接口 |
9+
| 2020-05-25 | 0.1.6 | 修改创建接口参数 | * API增加zk推荐规格接口 |
10+
| 2020-05-25 | 0.1.8 | 修改创建接口参数 | * API增加用户az接口 |
11+
| 2020-05-25 | 0.1.8 | 修改创建接口参数 | * API增加用户az接口 |
12+
| 2020-05-25 | 0.1.9 | 修改创建接口参数 | * 创建api增加buyId返回 |
13+
| 2020-06-05 | 0.2.0 | 增加白名单等接口 | * API增加 |
14+
| 2020-06-09 | 0.2.1 | 修改filter | * API修改 |
15+
| 2020-06-23 | 0.2.2 | 增加ClickhouseDB监控服务的内网域名 | * API修改 |
16+
| 2020-06-28 | 0.2.3 | 增加ClickhouseDB监控服务端口 | * API修改 |
17+
| 2020-06-28 | 0.2.4 | 增加ClickhouseDB 列表resourceId参数 | * API修改 |
18+
| 2020-06-28 | 0.2.5 | 增加ClickhouseDB 修改实例名称接口 | * API修改 |
19+
| 2020-07-13 | 0.2.6 | 增加ClickhouseDB selectDetailList接口 | * API修改 |
20+
| 2020-07-15 | 0.2.7 | 增加ClickhouseDB tags过滤支持 | * API修改 |
21+
| 2020-07-16 | 0.2.8 | 增加ClickhouseDB tags bug修复 | * API修改 |
22+
| 2020-07-17 | 0.2.9 | 增加ClickhouseDB tags bug修复 | * API修改 |
23+
| 2020-07-23 | 0.3.0 | 增加ClickhouseDB 包年包月强删除 | * API修改 |
24+
| 2020-07-31 | 0.3.1 | 增加ClickhouseDB 实例变配 | * API增加 |
25+
| 2020-08-04 | 0.3.2 | 修改列表接口增加zk信息 | * API增加 |
26+
| 2020-11-19 | 0.3.3 | 增加规格查询接口 | * API增加 |
27+
| 2021-02-02 | 0.3.4 | 增加云盘控制相关内部接口 | * API增加 |
28+
| 2021-04-14 | 0.3.5 | 修改规格列表接口 | * API修改 |
29+
| 2021-05-12 | 0.3.8 | 修改account查询接口 | * API 修改 |
30+
| 2021-08-24 | 0.3.9 | 开启对外接口支持 | * API 修改 |
31+
| 2022-03-17 | 0.4.0 | 开放对外接口 | * API 修改 |

jdcloud_sdk/services/clickhouse/__init__.py

Whitespace-only changes.
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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 AddWhiteListGroupRequest(JDCloudRequest):
23+
"""
24+
增加白名单分组。
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(AddWhiteListGroupRequest, self).__init__(
29+
'/regions/{regionId}/instances/{instanceId}/whiteList:addWhiteListGroup', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class AddWhiteListGroupParameters(object):
34+
35+
def __init__(self, regionId,instanceId,name):
36+
"""
37+
:param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)
38+
:param instanceId: 实例ID,唯一标识一个实例
39+
:param name: 白名单分组名
40+
"""
41+
42+
self.regionId = regionId
43+
self.instanceId = instanceId
44+
self.name = name
45+
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 AttachNetworkRequest(JDCloudRequest):
23+
"""
24+
当实例不欠费了或者续费了,开启Clickhouse实例的网络访问功能。
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(AttachNetworkRequest, self).__init__(
29+
'/regions/{regionId}/instances/{instanceId}:attachNetwork', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class AttachNetworkParameters(object):
34+
35+
def __init__(self, regionId,instanceId,):
36+
"""
37+
:param regionId: 地域代码
38+
:param instanceId: 实例ID
39+
"""
40+
41+
self.regionId = regionId
42+
self.instanceId = instanceId
43+
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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 AzsRequest(JDCloudRequest):
23+
"""
24+
获取当前用户可用的可用区
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(AzsRequest, self).__init__(
29+
'/regions/{regionId}/azs', 'GET', header, version)
30+
self.parameters = parameters
31+
32+
33+
class AzsParameters(object):
34+
35+
def __init__(self, regionId,):
36+
"""
37+
:param regionId: 地域代码
38+
"""
39+
40+
self.regionId = regionId
41+
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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 CreateAccountRequest(JDCloudRequest):
23+
"""
24+
创建一个Clickhouse账号
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(CreateAccountRequest, self).__init__(
29+
'/regions/{regionId}/instances/{instanceId}/accounts', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class CreateAccountParameters(object):
34+
35+
def __init__(self, regionId,instanceId,accountName, accountPassword, privilege):
36+
"""
37+
:param regionId: 地域代码
38+
:param instanceId: 实例ID
39+
:param accountName: 账号名
40+
:param accountPassword: 密码
41+
:param privilege: 账号权限
42+
"""
43+
44+
self.regionId = regionId
45+
self.instanceId = instanceId
46+
self.accountName = accountName
47+
self.accountPassword = accountPassword
48+
self.privilege = privilege
49+
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 CreateInstanceRequest(JDCloudRequest):
23+
"""
24+
创建一个Clickhouse实例
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(CreateInstanceRequest, self).__init__(
29+
'/regions/{regionId}/instances', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class CreateInstanceParameters(object):
34+
35+
def __init__(self, regionId,instanceSpec):
36+
"""
37+
:param regionId: 地域代码
38+
:param instanceSpec: 新建实例规格
39+
"""
40+
41+
self.regionId = regionId
42+
self.instanceSpec = instanceSpec
43+
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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 DeleteAccountRequest(JDCloudRequest):
23+
"""
24+
删除一个Clickhouse实例
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(DeleteAccountRequest, self).__init__(
29+
'/regions/{regionId}/instances/{instanceId}/accounts/{accountName}', 'DELETE', header, version)
30+
self.parameters = parameters
31+
32+
33+
class DeleteAccountParameters(object):
34+
35+
def __init__(self, regionId,instanceId,accountName,):
36+
"""
37+
:param regionId: 地域代码
38+
:param instanceId: 实例ID
39+
:param accountName: 账号名称
40+
"""
41+
42+
self.regionId = regionId
43+
self.instanceId = instanceId
44+
self.accountName = accountName
45+
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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 DeleteInstanceByForceRequest(JDCloudRequest):
23+
"""
24+
强行删除DRDS实例,包括包年包月未过期实例
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(DeleteInstanceByForceRequest, self).__init__(
29+
'/regions/{regionId}/instances/{instanceId}:deleteInstanceByForce', 'POST', header, version)
30+
self.parameters = parameters
31+
32+
33+
class DeleteInstanceByForceParameters(object):
34+
35+
def __init__(self, regionId,instanceId,requestUser):
36+
"""
37+
:param regionId: 地域代码
38+
:param instanceId: 实例ID
39+
:param requestUser: 发出请求的运营后台的ERP账号
40+
"""
41+
42+
self.regionId = regionId
43+
self.instanceId = instanceId
44+
self.requestUser = requestUser
45+
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 DeleteInstanceRequest(JDCloudRequest):
23+
"""
24+
删除一个Clickhouse实例
25+
"""
26+
27+
def __init__(self, parameters, header=None, version="v1"):
28+
super(DeleteInstanceRequest, self).__init__(
29+
'/regions/{regionId}/instances/{instanceId}', 'DELETE', header, version)
30+
self.parameters = parameters
31+
32+
33+
class DeleteInstanceParameters(object):
34+
35+
def __init__(self, regionId,instanceId,):
36+
"""
37+
:param regionId: 地域代码
38+
:param instanceId: 实例ID
39+
"""
40+
41+
self.regionId = regionId
42+
self.instanceId = instanceId
43+

0 commit comments

Comments
 (0)