Skip to content

Commit 9355a34

Browse files
publish jdcloud-sdk-go version 0.6.6
1 parent 83678ac commit 9355a34

5 files changed

Lines changed: 38 additions & 7 deletions

File tree

services/lb/ChangeLog.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# 更新历史 #
2-
API版本:0.6.5
2+
API版本:0.6.6
33

44
| 发布时间 | 版本号 | 更新 |说明|
55
|------------|-------|--------------------------------------------------------|---|
6-
| 2024-04-24 | 0.6.5 | *[将部分字段改为 internal](https://joyspace.jd.com/pages/MYA2ioGJTorbY01p1Ae0)* ||
6+
| 2024-04-24 | 0.6.5 | *修复部分字段引用错误* ||
7+
| 2024-04-24 | 0.6.5 | *修改部分字段* ||
78
| 2024-01-23 | 0.6.4 | *支持给高可用组设置默认权重* ||
89
| 2023-12-25 | 0.6.3 | *增加安全组查询绑定lb接口* ||
910
| 2022-10-24 | 0.6.0 | *1、支持个性化tls配置* ||

services/lb/apis/UpdateAgTargets.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ type UpdateAgTargetsRequest struct {
3232
BackendId string `json:"backendId"`
3333

3434
/* 修改ag target信息 */
35-
TargetUpdateSpecs []lb.TargetUpdateSpec `json:"targetUpdateSpecs"`
35+
TargetUpdateSpecs []lb.AgTargetUpdateSpec `json:"targetUpdateSpecs"`
3636
}
3737

3838
/*
@@ -45,7 +45,7 @@ type UpdateAgTargetsRequest struct {
4545
func NewUpdateAgTargetsRequest(
4646
regionId string,
4747
backendId string,
48-
targetUpdateSpecs []lb.TargetUpdateSpec,
48+
targetUpdateSpecs []lb.AgTargetUpdateSpec,
4949
) *UpdateAgTargetsRequest {
5050

5151
return &UpdateAgTargetsRequest{
@@ -69,7 +69,7 @@ func NewUpdateAgTargetsRequest(
6969
func NewUpdateAgTargetsRequestWithAllParams(
7070
regionId string,
7171
backendId string,
72-
targetUpdateSpecs []lb.TargetUpdateSpec,
72+
targetUpdateSpecs []lb.AgTargetUpdateSpec,
7373
) *UpdateAgTargetsRequest {
7474

7575
return &UpdateAgTargetsRequest{
@@ -107,7 +107,7 @@ func (r *UpdateAgTargetsRequest) SetBackendId(backendId string) {
107107
r.BackendId = backendId
108108
}
109109
/* param targetUpdateSpecs: 修改ag target信息(Required) */
110-
func (r *UpdateAgTargetsRequest) SetTargetUpdateSpecs(targetUpdateSpecs []lb.TargetUpdateSpec) {
110+
func (r *UpdateAgTargetsRequest) SetTargetUpdateSpecs(targetUpdateSpecs []lb.AgTargetUpdateSpec) {
111111
r.TargetUpdateSpecs = targetUpdateSpecs
112112
}
113113

services/lb/client/LbClient.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func NewLbClient(credential *core.Credential) *LbClient {
4040
Credential: *credential,
4141
Config: *config,
4242
ServiceName: "lb",
43-
Revision: "0.6.5",
43+
Revision: "0.6.6",
4444
Logger: core.NewDefaultLogger(core.LogInfo),
4545
}}
4646
}
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 AgTargetUpdateSpec struct {
21+
22+
/* Target Id */
23+
TargetId string `json:"targetId"`
24+
25+
/* Target的权重,取值范围:0-100。0表示不参与流量转发 (Optional) */
26+
Weight *int `json:"weight"`
27+
}

services/lb/models/TargetUpdateSpec.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ type TargetUpdateSpec struct {
2222
/* Target Id */
2323
TargetId string `json:"targetId"`
2424

25+
/* Target提供服务的端口,取值范围:0-65535,其中0表示与backend的端口相同 <br>【dnlb】使用限制:dnlb同一TargetGroup下,同一实例/ip仅允许一个端口提供服务 (Optional) */
26+
Port *int `json:"port"`
27+
2528
/* Target的权重,取值范围:0-100。0表示不参与流量转发 (Optional) */
2629
Weight *int `json:"weight"`
2730
}

0 commit comments

Comments
 (0)