File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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功能 |
Original file line number Diff line number Diff 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 {
5252func 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(
7979func 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
Original file line number Diff line number Diff 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 {
4848func 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(
7373func 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
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments