Skip to content

Commit df78216

Browse files
publish jdcloud-sdk-go version 2.6.1
1 parent da6a64c commit df78216

37 files changed

Lines changed: 1993 additions & 20 deletions

services/pod/ChangeLog.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
# 更新历史 #
22

3-
API版本:2.5.1
3+
API版本:2.6.1
44

55
| 发布时间 | 版本号 | 更新 | 说明 |
66
|------------|-------|------|-------------------------|
7-
| 2023-09-07 | 2.5.1 | 文档更新 | *文档更新 |
8-
| 2023-06-13 | 2.5.0 | 功能更新 | *多网卡创建 |
9-
| 2023-04-06 | 2.4.0 | 新增接口 | *新增接口:镜像缓存 |
7+
| 2024-3-12 | 2.6.1 | 新增接口 | * 新增接口:更新Pod模板 |
8+
| 2023-11-29 | 2.6.0 | 新增接口 | * 新增接口:支持Pod模板 |
9+
| 2023-09-07 | 2.5.1 | 文档更新 | * 文档更新 |
10+
| 2023-06-13 | 2.5.0 | 功能更新 | * 多网卡创建 |
11+
| 2023-04-06 | 2.4.0 | 新增接口 | * 新增接口:镜像缓存 |
1012
| 2023-01-17 | 2.3.4 | 功能更新 | * 接入资源组 |
1113
| 2022-08-05 | 2.3.3 | 文档更新 | *文档维护 |
1214
| 2022-07-28 | 2.3.2 | 文档更新 | *文档维护及目录更改 |
Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
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 CreatePodTemplateRequest struct {
25+
26+
core.JDCloudRequest
27+
28+
/* Region ID */
29+
RegionId string `json:"regionId"`
30+
31+
/* pod模板的名称,参考 [公共参数规范](https://docs.jdcloud.com/virtual-machines/api/general_parameters)。 */
32+
Name string `json:"name"`
33+
34+
/* pod模板描述,参考 [公共参数规范](https://docs.jdcloud.com/virtual-machines/api/general_parameters)。 (Optional) */
35+
Description *string `json:"description"`
36+
37+
/* pod模板创建参数 */
38+
PodTemplateSpec *pod.PodTemplateSpec `json:"podTemplateSpec"`
39+
}
40+
41+
/*
42+
* param regionId: Region ID (Required)
43+
* param name: pod模板的名称,参考 [公共参数规范](https://docs.jdcloud.com/virtual-machines/api/general_parameters)。 (Required)
44+
* param podTemplateSpec: pod模板创建参数 (Required)
45+
*
46+
* @Deprecated, not compatible when mandatory parameters changed
47+
*/
48+
func NewCreatePodTemplateRequest(
49+
regionId string,
50+
name string,
51+
podTemplateSpec *pod.PodTemplateSpec,
52+
) *CreatePodTemplateRequest {
53+
54+
return &CreatePodTemplateRequest{
55+
JDCloudRequest: core.JDCloudRequest{
56+
URL: "/regions/{regionId}/podTemplates",
57+
Method: "POST",
58+
Header: nil,
59+
Version: "v1",
60+
},
61+
RegionId: regionId,
62+
Name: name,
63+
PodTemplateSpec: podTemplateSpec,
64+
}
65+
}
66+
67+
/*
68+
* param regionId: Region ID (Required)
69+
* param name: pod模板的名称,参考 [公共参数规范](https://docs.jdcloud.com/virtual-machines/api/general_parameters)。 (Required)
70+
* param description: pod模板描述,参考 [公共参数规范](https://docs.jdcloud.com/virtual-machines/api/general_parameters)。 (Optional)
71+
* param podTemplateSpec: pod模板创建参数 (Required)
72+
*/
73+
func NewCreatePodTemplateRequestWithAllParams(
74+
regionId string,
75+
name string,
76+
description *string,
77+
podTemplateSpec *pod.PodTemplateSpec,
78+
) *CreatePodTemplateRequest {
79+
80+
return &CreatePodTemplateRequest{
81+
JDCloudRequest: core.JDCloudRequest{
82+
URL: "/regions/{regionId}/podTemplates",
83+
Method: "POST",
84+
Header: nil,
85+
Version: "v1",
86+
},
87+
RegionId: regionId,
88+
Name: name,
89+
Description: description,
90+
PodTemplateSpec: podTemplateSpec,
91+
}
92+
}
93+
94+
/* This constructor has better compatible ability when API parameters changed */
95+
func NewCreatePodTemplateRequestWithoutParam() *CreatePodTemplateRequest {
96+
97+
return &CreatePodTemplateRequest{
98+
JDCloudRequest: core.JDCloudRequest{
99+
URL: "/regions/{regionId}/podTemplates",
100+
Method: "POST",
101+
Header: nil,
102+
Version: "v1",
103+
},
104+
}
105+
}
106+
107+
/* param regionId: Region ID(Required) */
108+
func (r *CreatePodTemplateRequest) SetRegionId(regionId string) {
109+
r.RegionId = regionId
110+
}
111+
/* param name: pod模板的名称,参考 [公共参数规范](https://docs.jdcloud.com/virtual-machines/api/general_parameters)。(Required) */
112+
func (r *CreatePodTemplateRequest) SetName(name string) {
113+
r.Name = name
114+
}
115+
/* param description: pod模板描述,参考 [公共参数规范](https://docs.jdcloud.com/virtual-machines/api/general_parameters)。(Optional) */
116+
func (r *CreatePodTemplateRequest) SetDescription(description string) {
117+
r.Description = &description
118+
}
119+
/* param podTemplateSpec: pod模板创建参数(Required) */
120+
func (r *CreatePodTemplateRequest) SetPodTemplateSpec(podTemplateSpec *pod.PodTemplateSpec) {
121+
r.PodTemplateSpec = podTemplateSpec
122+
}
123+
124+
125+
// GetRegionId returns path parameter 'regionId' if exist,
126+
// otherwise return empty string
127+
func (r CreatePodTemplateRequest) GetRegionId() string {
128+
return r.RegionId
129+
}
130+
131+
type CreatePodTemplateResponse struct {
132+
RequestID string `json:"requestId"`
133+
Error core.ErrorResponse `json:"error"`
134+
Result CreatePodTemplateResult `json:"result"`
135+
}
136+
137+
type CreatePodTemplateResult struct {
138+
PodTemplateId string `json:"podTemplateId"`
139+
}
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 DeletePodTemplateRequest struct {
24+
25+
core.JDCloudRequest
26+
27+
/* Region ID */
28+
RegionId string `json:"regionId"`
29+
30+
/* Pod模板ID */
31+
PodTemplateId string `json:"podTemplateId"`
32+
}
33+
34+
/*
35+
* param regionId: Region ID (Required)
36+
* param podTemplateId: Pod模板ID (Required)
37+
*
38+
* @Deprecated, not compatible when mandatory parameters changed
39+
*/
40+
func NewDeletePodTemplateRequest(
41+
regionId string,
42+
podTemplateId string,
43+
) *DeletePodTemplateRequest {
44+
45+
return &DeletePodTemplateRequest{
46+
JDCloudRequest: core.JDCloudRequest{
47+
URL: "/regions/{regionId}/podTemplates/{podTemplateId}",
48+
Method: "DELETE",
49+
Header: nil,
50+
Version: "v1",
51+
},
52+
RegionId: regionId,
53+
PodTemplateId: podTemplateId,
54+
}
55+
}
56+
57+
/*
58+
* param regionId: Region ID (Required)
59+
* param podTemplateId: Pod模板ID (Required)
60+
*/
61+
func NewDeletePodTemplateRequestWithAllParams(
62+
regionId string,
63+
podTemplateId string,
64+
) *DeletePodTemplateRequest {
65+
66+
return &DeletePodTemplateRequest{
67+
JDCloudRequest: core.JDCloudRequest{
68+
URL: "/regions/{regionId}/podTemplates/{podTemplateId}",
69+
Method: "DELETE",
70+
Header: nil,
71+
Version: "v1",
72+
},
73+
RegionId: regionId,
74+
PodTemplateId: podTemplateId,
75+
}
76+
}
77+
78+
/* This constructor has better compatible ability when API parameters changed */
79+
func NewDeletePodTemplateRequestWithoutParam() *DeletePodTemplateRequest {
80+
81+
return &DeletePodTemplateRequest{
82+
JDCloudRequest: core.JDCloudRequest{
83+
URL: "/regions/{regionId}/podTemplates/{podTemplateId}",
84+
Method: "DELETE",
85+
Header: nil,
86+
Version: "v1",
87+
},
88+
}
89+
}
90+
91+
/* param regionId: Region ID(Required) */
92+
func (r *DeletePodTemplateRequest) SetRegionId(regionId string) {
93+
r.RegionId = regionId
94+
}
95+
/* param podTemplateId: Pod模板ID(Required) */
96+
func (r *DeletePodTemplateRequest) SetPodTemplateId(podTemplateId string) {
97+
r.PodTemplateId = podTemplateId
98+
}
99+
100+
101+
// GetRegionId returns path parameter 'regionId' if exist,
102+
// otherwise return empty string
103+
func (r DeletePodTemplateRequest) GetRegionId() string {
104+
return r.RegionId
105+
}
106+
107+
type DeletePodTemplateResponse struct {
108+
RequestID string `json:"requestId"`
109+
Error core.ErrorResponse `json:"error"`
110+
Result DeletePodTemplateResult `json:"result"`
111+
}
112+
113+
type DeletePodTemplateResult struct {
114+
}
Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
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 DescribePodTemplateRequest struct {
25+
26+
core.JDCloudRequest
27+
28+
/* Region ID */
29+
RegionId string `json:"regionId"`
30+
31+
/* Pod模板ID */
32+
PodTemplateId string `json:"podTemplateId"`
33+
}
34+
35+
/*
36+
* param regionId: Region ID (Required)
37+
* param podTemplateId: Pod模板ID (Required)
38+
*
39+
* @Deprecated, not compatible when mandatory parameters changed
40+
*/
41+
func NewDescribePodTemplateRequest(
42+
regionId string,
43+
podTemplateId string,
44+
) *DescribePodTemplateRequest {
45+
46+
return &DescribePodTemplateRequest{
47+
JDCloudRequest: core.JDCloudRequest{
48+
URL: "/regions/{regionId}/podTemplates/{podTemplateId}",
49+
Method: "GET",
50+
Header: nil,
51+
Version: "v1",
52+
},
53+
RegionId: regionId,
54+
PodTemplateId: podTemplateId,
55+
}
56+
}
57+
58+
/*
59+
* param regionId: Region ID (Required)
60+
* param podTemplateId: Pod模板ID (Required)
61+
*/
62+
func NewDescribePodTemplateRequestWithAllParams(
63+
regionId string,
64+
podTemplateId string,
65+
) *DescribePodTemplateRequest {
66+
67+
return &DescribePodTemplateRequest{
68+
JDCloudRequest: core.JDCloudRequest{
69+
URL: "/regions/{regionId}/podTemplates/{podTemplateId}",
70+
Method: "GET",
71+
Header: nil,
72+
Version: "v1",
73+
},
74+
RegionId: regionId,
75+
PodTemplateId: podTemplateId,
76+
}
77+
}
78+
79+
/* This constructor has better compatible ability when API parameters changed */
80+
func NewDescribePodTemplateRequestWithoutParam() *DescribePodTemplateRequest {
81+
82+
return &DescribePodTemplateRequest{
83+
JDCloudRequest: core.JDCloudRequest{
84+
URL: "/regions/{regionId}/podTemplates/{podTemplateId}",
85+
Method: "GET",
86+
Header: nil,
87+
Version: "v1",
88+
},
89+
}
90+
}
91+
92+
/* param regionId: Region ID(Required) */
93+
func (r *DescribePodTemplateRequest) SetRegionId(regionId string) {
94+
r.RegionId = regionId
95+
}
96+
/* param podTemplateId: Pod模板ID(Required) */
97+
func (r *DescribePodTemplateRequest) SetPodTemplateId(podTemplateId string) {
98+
r.PodTemplateId = podTemplateId
99+
}
100+
101+
102+
// GetRegionId returns path parameter 'regionId' if exist,
103+
// otherwise return empty string
104+
func (r DescribePodTemplateRequest) GetRegionId() string {
105+
return r.RegionId
106+
}
107+
108+
type DescribePodTemplateResponse struct {
109+
RequestID string `json:"requestId"`
110+
Error core.ErrorResponse `json:"error"`
111+
Result DescribePodTemplateResult `json:"result"`
112+
}
113+
114+
type DescribePodTemplateResult struct {
115+
PodTemplate pod.PodTemplate `json:"podTemplate"`
116+
}

0 commit comments

Comments
 (0)