Skip to content

Commit 1c1f74b

Browse files
Merge pull request #173 from jdcloud-apigateway/master
update pod and redis
2 parents 9ef2272 + ee5b0d3 commit 1c1f74b

32 files changed

Lines changed: 2324 additions & 158 deletions

services/pod/ChangeLog.md

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 | 初始版本 | * 初始版本 |
Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
// Copyright 2018 JDCLOUD.COM
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
//
15+
// NOTE: This class is auto generated by the jdcloud code generator program.
16+
17+
package apis
18+
19+
import (
20+
"github.com/jdcloud-api/jdcloud-sdk-go/core"
21+
pod "github.com/jdcloud-api/jdcloud-sdk-go/services/pod/models"
22+
)
23+
24+
type CreateConfigFileRequest struct {
25+
26+
core.JDCloudRequest
27+
28+
/* Region ID */
29+
RegionId string `json:"regionId"`
30+
31+
/* configFile名字,不能重复
32+
*/
33+
Name string `json:"name"`
34+
35+
/* key 的有效字符包括字母、数字、-、_和.; <br>
36+
value 每个value长度上限为32KB,整个data的长度不能超过1M; <br>
37+
*/
38+
Data []pod.FileToPath `json:"data"`
39+
}
40+
41+
/*
42+
* param regionId: Region ID (Required)
43+
* param name: configFile名字,不能重复
44+
(Required)
45+
* param data: key 的有效字符包括字母、数字、-、_和.; <br>
46+
value 每个value长度上限为32KB,整个data的长度不能超过1M; <br>
47+
(Required)
48+
*
49+
* @Deprecated, not compatible when mandatory parameters changed
50+
*/
51+
func NewCreateConfigFileRequest(
52+
regionId string,
53+
name string,
54+
data []pod.FileToPath,
55+
) *CreateConfigFileRequest {
56+
57+
return &CreateConfigFileRequest{
58+
JDCloudRequest: core.JDCloudRequest{
59+
URL: "/regions/{regionId}/configFiles",
60+
Method: "POST",
61+
Header: nil,
62+
Version: "v1",
63+
},
64+
RegionId: regionId,
65+
Name: name,
66+
Data: data,
67+
}
68+
}
69+
70+
/*
71+
* param regionId: Region ID (Required)
72+
* param name: configFile名字,不能重复
73+
(Required)
74+
* param data: key 的有效字符包括字母、数字、-、_和.; <br>
75+
value 每个value长度上限为32KB,整个data的长度不能超过1M; <br>
76+
(Required)
77+
*/
78+
func NewCreateConfigFileRequestWithAllParams(
79+
regionId string,
80+
name string,
81+
data []pod.FileToPath,
82+
) *CreateConfigFileRequest {
83+
84+
return &CreateConfigFileRequest{
85+
JDCloudRequest: core.JDCloudRequest{
86+
URL: "/regions/{regionId}/configFiles",
87+
Method: "POST",
88+
Header: nil,
89+
Version: "v1",
90+
},
91+
RegionId: regionId,
92+
Name: name,
93+
Data: data,
94+
}
95+
}
96+
97+
/* This constructor has better compatible ability when API parameters changed */
98+
func NewCreateConfigFileRequestWithoutParam() *CreateConfigFileRequest {
99+
100+
return &CreateConfigFileRequest{
101+
JDCloudRequest: core.JDCloudRequest{
102+
URL: "/regions/{regionId}/configFiles",
103+
Method: "POST",
104+
Header: nil,
105+
Version: "v1",
106+
},
107+
}
108+
}
109+
110+
/* param regionId: Region ID(Required) */
111+
func (r *CreateConfigFileRequest) SetRegionId(regionId string) {
112+
r.RegionId = regionId
113+
}
114+
115+
/* param name: configFile名字,不能重复
116+
(Required) */
117+
func (r *CreateConfigFileRequest) SetName(name string) {
118+
r.Name = name
119+
}
120+
121+
/* param data: key 的有效字符包括字母、数字、-、_和.; <br>
122+
value 每个value长度上限为32KB,整个data的长度不能超过1M; <br>
123+
(Required) */
124+
func (r *CreateConfigFileRequest) SetData(data []pod.FileToPath) {
125+
r.Data = data
126+
}
127+
128+
// GetRegionId returns path parameter 'regionId' if exist,
129+
// otherwise return empty string
130+
func (r CreateConfigFileRequest) GetRegionId() string {
131+
return r.RegionId
132+
}
133+
134+
type CreateConfigFileResponse struct {
135+
RequestID string `json:"requestId"`
136+
Error core.ErrorResponse `json:"error"`
137+
Result CreateConfigFileResult `json:"result"`
138+
}
139+
140+
type CreateConfigFileResult struct {
141+
Name string `json:"name"`
142+
}
Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
// Copyright 2018 JDCLOUD.COM
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
//
15+
// NOTE: This class is auto generated by the jdcloud code generator program.
16+
17+
package apis
18+
19+
import (
20+
"github.com/jdcloud-api/jdcloud-sdk-go/core"
21+
)
22+
23+
type DeleteConfigFileRequest struct {
24+
25+
core.JDCloudRequest
26+
27+
/* Region ID */
28+
RegionId string `json:"regionId"`
29+
30+
/* Name */
31+
Name string `json:"name"`
32+
}
33+
34+
/*
35+
* param regionId: Region ID (Required)
36+
* param name: Name (Required)
37+
*
38+
* @Deprecated, not compatible when mandatory parameters changed
39+
*/
40+
func NewDeleteConfigFileRequest(
41+
regionId string,
42+
name string,
43+
) *DeleteConfigFileRequest {
44+
45+
return &DeleteConfigFileRequest{
46+
JDCloudRequest: core.JDCloudRequest{
47+
URL: "/regions/{regionId}/configFiles/{name}",
48+
Method: "DELETE",
49+
Header: nil,
50+
Version: "v1",
51+
},
52+
RegionId: regionId,
53+
Name: name,
54+
}
55+
}
56+
57+
/*
58+
* param regionId: Region ID (Required)
59+
* param name: Name (Required)
60+
*/
61+
func NewDeleteConfigFileRequestWithAllParams(
62+
regionId string,
63+
name string,
64+
) *DeleteConfigFileRequest {
65+
66+
return &DeleteConfigFileRequest{
67+
JDCloudRequest: core.JDCloudRequest{
68+
URL: "/regions/{regionId}/configFiles/{name}",
69+
Method: "DELETE",
70+
Header: nil,
71+
Version: "v1",
72+
},
73+
RegionId: regionId,
74+
Name: name,
75+
}
76+
}
77+
78+
/* This constructor has better compatible ability when API parameters changed */
79+
func NewDeleteConfigFileRequestWithoutParam() *DeleteConfigFileRequest {
80+
81+
return &DeleteConfigFileRequest{
82+
JDCloudRequest: core.JDCloudRequest{
83+
URL: "/regions/{regionId}/configFiles/{name}",
84+
Method: "DELETE",
85+
Header: nil,
86+
Version: "v1",
87+
},
88+
}
89+
}
90+
91+
/* param regionId: Region ID(Required) */
92+
func (r *DeleteConfigFileRequest) SetRegionId(regionId string) {
93+
r.RegionId = regionId
94+
}
95+
96+
/* param name: Name(Required) */
97+
func (r *DeleteConfigFileRequest) SetName(name string) {
98+
r.Name = name
99+
}
100+
101+
// GetRegionId returns path parameter 'regionId' if exist,
102+
// otherwise return empty string
103+
func (r DeleteConfigFileRequest) GetRegionId() string {
104+
return r.RegionId
105+
}
106+
107+
type DeleteConfigFileResponse struct {
108+
RequestID string `json:"requestId"`
109+
Error core.ErrorResponse `json:"error"`
110+
Result DeleteConfigFileResult `json:"result"`
111+
}
112+
113+
type DeleteConfigFileResult struct {
114+
}

0 commit comments

Comments
 (0)