Skip to content

Commit 2a60e5a

Browse files
Merge pull request #174 from jdcloud-apigateway/master
update pod and redis
2 parents 162b281 + aaa67d5 commit 2a60e5a

57 files changed

Lines changed: 995 additions & 57 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
# 更新历史 #
22

3-
API版本:2.2.5
3+
API版本:2.3.0
44

5-
|发布时间|版本号|更新|说明|
6-
|---|---|---|---|
7-
|2020-11-27|2.2.5|功能更新|* 支持创建打标|
8-
|2020-07-24|2.2.4|文档更新|* 文档维护|
9-
|2019-11-27|2.2.0|新增接口|* 新增接口:调整实例类型配置|
10-
|2019-08-06|2.1.0|新增接口|* 新增接口:查询实例类型|
11-
|2019-07-25|2.0.0|版本更新|* 功能完善|
12-
|2019-07-23|1.0.5|文档更新|* 文档维护|
13-
|2019-04-29|1.0.3|功能更新|* 支持续费|
14-
|2019-04-22|1.0.2|功能更新|* 支持云硬盘IOPS|
15-
|2019-03-26|1.0.1|功能更新|* 支持标签|
16-
|2019-07-25|1.0.0|版本更新|* 功能完善|
17-
|2018-08-24|0.0.1|初始版本|* 初始版本|
5+
| 发布时间 | 版本号 | 更新 | 说明 |
6+
| ------------ | -------- | ---------- | ------------------------------ |
7+
| 2022-07-07 | 2.3.0 | 新增接口 | 新增接口:支持cfs和configmap功能 |
8+
| 2020-11-27 | 2.2.5 | 功能更新 | * 支持创建打标 |
9+
| 2020-07-24 | 2.2.4 | 文档更新 | * 文档维护 |
10+
| 2019-11-27 | 2.2.0 | 新增接口 | * 新增接口:调整实例类型配置 |
11+
| 2019-08-06 | 2.1.0 | 新增接口 | * 新增接口:查询实例类型 |
12+
| 2019-07-25 | 2.0.0 | 版本更新 | * 功能完善 |
13+
| 2019-07-23 | 1.0.5 | 文档更新 | * 文档维护 |
14+
| 2019-04-29 | 1.0.3 | 功能更新 | * 支持续费 |
15+
| 2019-04-22 | 1.0.2 | 功能更新 | * 支持云硬盘IOPS |
16+
| 2019-03-26 | 1.0.1 | 功能更新 | * 支持标签 |
17+
| 2019-07-25 | 1.0.0 | 版本更新 | * 功能完善 |
18+
| 2018-08-24 | 0.0.1 | 初始版本 | * 初始版本 |

jdcloud_sdk/services/pod/apis/AssociateElasticIpRequest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def __init__(self, parameters, header=None, version="v1"):
3535

3636
class AssociateElasticIpParameters(object):
3737

38-
def __init__(self, regionId, podId, elasticIpId):
38+
def __init__(self, regionId,podId,elasticIpId):
3939
"""
4040
:param regionId: Region ID
4141
:param podId: Pod ID

jdcloud_sdk/services/pod/apis/AttachRequest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def __init__(self, parameters, header=None, version="v1"):
3333

3434
class AttachParameters(object):
3535

36-
def __init__(self, regionId, podId, containerName, ):
36+
def __init__(self, regionId,podId,containerName,):
3737
"""
3838
:param regionId: Region ID
3939
:param podId: Pod ID

jdcloud_sdk/services/pod/apis/CheckPodNameRequest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def __init__(self, parameters, header=None, version="v1"):
3333

3434
class CheckPodNameParameters(object):
3535

36-
def __init__(self, regionId, podName, ):
36+
def __init__(self, regionId,podName, ):
3737
"""
3838
:param regionId: Region ID
3939
:param podName: 用户定义的 pod 名称,符合 DNS-1123 subdomain 规范。
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 CreateConfigFileRequest(JDCloudRequest):
23+
"""
24+
创建一个 configFile,存放文件内容(键值对)。
25+
26+
"""
27+
28+
def __init__(self, parameters, header=None, version="v1"):
29+
super(CreateConfigFileRequest, self).__init__(
30+
'/regions/{regionId}/configFiles', 'POST', header, version)
31+
self.parameters = parameters
32+
33+
34+
class CreateConfigFileParameters(object):
35+
36+
def __init__(self, regionId,name, data):
37+
"""
38+
:param regionId: Region ID
39+
:param name: configFile名字,不能重复
40+
41+
:param data: key 的有效字符包括字母、数字、-、_和.; <br>
42+
value 每个value长度上限为32KB,整个data的长度不能超过1M; <br>
43+
44+
"""
45+
46+
self.regionId = regionId
47+
self.name = name
48+
self.data = data
49+

jdcloud_sdk/services/pod/apis/CreatePodsRequest.py

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ class CreatePodsRequest(JDCloudRequest):
2323
"""
2424
创建一台或多台 pod
2525
- 创建pod需要通过实名认证
26+
- 可用区
27+
- Pod所属的可用区
28+
- 创建Pod,需要使用中心可用区的相关资源:
29+
- 具有中心可用区属性的子网
30+
- 公网IP服务商
2631
- hostname规范
2732
- 支持两种方式:以标签方式书写或以完整主机名方式书写
2833
- 标签规范
@@ -45,21 +50,28 @@ class CreatePodsRequest(JDCloudRequest):
4550
- 存储
4651
- volume分为container system disk和pod data volume,container system disk的挂载目录是/,data volume的挂载目录可以随意指定
4752
- container system disk
53+
- 支持cloud和local
4854
- 云硬盘类型可以选择hdd.std1、ssd.gp1、ssd.io1
4955
- 磁盘大小
5056
- 所有类型:范围[20,100]GB,步长为10G
5157
- 自动删除
5258
- 默认自动删除
5359
- 可以选择已存在的云硬盘
5460
- data volume
55-
- 当前只能选择cloud类别
56-
- 云硬盘类型可以选择hdd.std1、ssd.gp1、ssd.io1
57-
- 磁盘大小
58-
- 所有类型:范围[20,2000]GB,步长为10G
59-
- 自动删除
60-
- 默认自动删除
61-
- 可以选择已存在的云硬盘
62-
- 可以从快照创建磁盘
61+
-cloudDisk
62+
- 云硬盘类型可以选择hdd.std1、ssd.gp1、ssd.io1
63+
- 磁盘大小
64+
- 所有类型:范围[20,2000]GB,步长为10G
65+
- 自动删除
66+
- 默认自动删除
67+
- 可以选择已存在的云硬盘
68+
- 可以从快照创建磁盘
69+
-CFS
70+
- 从zbs去获取数据,挂载到当前的volume
71+
-configFile
72+
- 提前创建好configFile相关数据,然后挂载到volume
73+
74+
6375
- pod 容器日志
6476
- default:默认在本地分配10MB的存储空间,自动rotate
6577
- DNS-1123 label规范
@@ -82,7 +94,7 @@ def __init__(self, parameters, header=None, version="v1"):
8294

8395
class CreatePodsParameters(object):
8496

85-
def __init__(self, regionId, podSpec, maxCount, ):
97+
def __init__(self, regionId,podSpec, maxCount, ):
8698
"""
8799
:param regionId: Region ID
88100
:param podSpec: pod 创建参数

jdcloud_sdk/services/pod/apis/CreateSecretRequest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def __init__(self, parameters, header=None, version="v1"):
3333

3434
class CreateSecretParameters(object):
3535

36-
def __init__(self, regionId, name, secretType, data):
36+
def __init__(self, regionId,name, secretType, data):
3737
"""
3838
:param regionId: Region ID
3939
:param name: 机密数据名称,不能重复
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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 DeleteConfigFileRequest(JDCloudRequest):
23+
"""
24+
删除单个 configFile
25+
26+
"""
27+
28+
def __init__(self, parameters, header=None, version="v1"):
29+
super(DeleteConfigFileRequest, self).__init__(
30+
'/regions/{regionId}/configFiles/{name}', 'DELETE', header, version)
31+
self.parameters = parameters
32+
33+
34+
class DeleteConfigFileParameters(object):
35+
36+
def __init__(self, regionId,name,):
37+
"""
38+
:param regionId: Region ID
39+
:param name: Name
40+
"""
41+
42+
self.regionId = regionId
43+
self.name = name
44+

jdcloud_sdk/services/pod/apis/DeletePodRequest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def __init__(self, parameters, header=None, version="v1"):
3535

3636
class DeletePodParameters(object):
3737

38-
def __init__(self, regionId, podId, ):
38+
def __init__(self, regionId,podId,):
3939
"""
4040
:param regionId: Region ID
4141
:param podId: Pod ID

jdcloud_sdk/services/pod/apis/DeleteSecretRequest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def __init__(self, parameters, header=None, version="v1"):
3333

3434
class DeleteSecretParameters(object):
3535

36-
def __init__(self, regionId, name, ):
36+
def __init__(self, regionId,name,):
3737
"""
3838
:param regionId: Region ID
3939
:param name: Secret Name

0 commit comments

Comments
 (0)