Skip to content

Commit ae1926c

Browse files
publish jdcloud-sdk-go version 1.0.3
1 parent df71589 commit ae1926c

6 files changed

Lines changed: 38 additions & 10 deletions

File tree

services/pod/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ API版本:2.3.0
44

55
| 发布时间 | 版本号 | 更新 | 说明 |
66
| ------------ | -------- | ---------- | ------------------------------ |
7+
| 2022-08-05 | 2.3.3 | 文档更新 | *文档维护 |
78
| 2022-07-28 | 2.3.2 | 文档更新 | *文档维护及目录更改 |
89
| 2022-07-18 | 2.3.1 | 功能更新 | *修改对外接口属性 |
910
| 2022-07-07 | 2.3.0 | 新增接口 | *新增接口:支持cfs和configmap功能 |

services/pod/apis/CreateConfigFile.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ type CreateConfigFileRequest struct {
3535

3636
/* configFile数据,个数不超过32个
3737
*/
38-
Data []pod.FileToPath `json:"data"`
38+
Data []pod.ConfigFileData `json:"data"`
3939

4040
}
4141

@@ -52,7 +52,7 @@ type CreateConfigFileRequest struct {
5252
func NewCreateConfigFileRequest(
5353
regionId string,
5454
name string,
55-
data []pod.FileToPath,
55+
data []pod.ConfigFileData,
5656
) *CreateConfigFileRequest {
5757

5858
return &CreateConfigFileRequest{
@@ -79,7 +79,7 @@ func NewCreateConfigFileRequest(
7979
func NewCreateConfigFileRequestWithAllParams(
8080
regionId string,
8181
name string,
82-
data []pod.FileToPath,
82+
data []pod.ConfigFileData,
8383
) *CreateConfigFileRequest {
8484

8585
return &CreateConfigFileRequest{
@@ -122,7 +122,7 @@ func (r *CreateConfigFileRequest) SetName(name string) {
122122

123123
/* param data: configFile数据,个数不超过32个
124124
(Required) */
125-
func (r *CreateConfigFileRequest) SetData(data []pod.FileToPath) {
125+
func (r *CreateConfigFileRequest) SetData(data []pod.ConfigFileData) {
126126
r.Data = data
127127
}
128128

services/pod/apis/UpdateConfigFile.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ type UpdateConfigFileRequest struct {
3333

3434
/* configFile数据,个数不超过32个
3535
*/
36-
Data []pod.FileToPath `json:"data"`
36+
Data []pod.ConfigFileData `json:"data"`
3737

3838
}
3939

@@ -48,7 +48,7 @@ type UpdateConfigFileRequest struct {
4848
func NewUpdateConfigFileRequest(
4949
regionId string,
5050
name string,
51-
data []pod.FileToPath,
51+
data []pod.ConfigFileData,
5252
) *UpdateConfigFileRequest {
5353

5454
return &UpdateConfigFileRequest{
@@ -73,7 +73,7 @@ func NewUpdateConfigFileRequest(
7373
func NewUpdateConfigFileRequestWithAllParams(
7474
regionId string,
7575
name string,
76-
data []pod.FileToPath,
76+
data []pod.ConfigFileData,
7777
) *UpdateConfigFileRequest {
7878

7979
return &UpdateConfigFileRequest{
@@ -114,7 +114,7 @@ func (r *UpdateConfigFileRequest) SetName(name string) {
114114

115115
/* param data: configFile数据,个数不超过32个
116116
(Required) */
117-
func (r *UpdateConfigFileRequest) SetData(data []pod.FileToPath) {
117+
func (r *UpdateConfigFileRequest) SetData(data []pod.ConfigFileData) {
118118
r.Data = data
119119
}
120120

services/pod/client/PodClient.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func NewPodClient(credential *core.Credential) *PodClient {
4040
Credential: *credential,
4141
Config: *config,
4242
ServiceName: "pod",
43-
Revision: "2.3.2",
43+
Revision: "2.3.3",
4444
Logger: core.NewDefaultLogger(core.LogInfo),
4545
}}
4646
}

services/pod/models/ConfigFile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ type ConfigFile struct {
2323
Name string `json:"name"`
2424

2525
/* configFile数据 (Optional) */
26-
Data []FileToPath `json:"data"`
26+
Data []ConfigFileData `json:"data"`
2727
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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 models
18+
19+
20+
type ConfigFileData struct {
21+
22+
/* 键名称,不能重复,最大长度不超过128(字母、数字、-、_和.) */
23+
Key string `json:"key"`
24+
25+
/* 内容(base64) 每个value长度上限为32KB,整个data的长度不能超过1M; */
26+
Value string `json:"value"`
27+
}

0 commit comments

Comments
 (0)