Skip to content

Commit 2b38ef2

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

12 files changed

Lines changed: 76 additions & 9 deletions

services/ag/ChangeLog.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
# 更新历史 #
22
API版本:0.6.0
33

4-
|发布时间|版本号|更新|说明|
5-
|---|---|---|---|
6-
|2022-07-15|0.6.0|功能完善|修复自定义配置类型模版必传的问题|
7-
|2022-07-08|0.5.0|功能完善|新增自定义配置类型|
8-
|2019-05-29|0.4.0|功能完善|修正必传的参数为未设置为必传的问题|
9-
|2019-05-28|0.3.0|功能完善|创建ag的资源类型修改为vm|
10-
|2018-05-10|0.2.0|接口完善|内网提供全部接口的 SDK|
11-
|2018-03-30|0.1.0|初始版本|提供 Quota 相关接口|
4+
| 发布时间 | 版本号 |更新| 说明 |
5+
|------------|-------|---|-------------------|
6+
| 2022-07-21 | 0.7.0 |功能完善| ag增加资源放置策略 |
7+
| 2022-07-15 | 0.6.0 |功能完善| 修复自定义配置类型模版必传的问题 |
8+
| 2022-07-08 | 0.5.0 |功能完善| 新增自定义配置类型 |
9+
| 2019-05-29 | 0.4.0 |功能完善| 修正必传的参数为未设置为必传的问题 |
10+
| 2019-05-28 | 0.3.0 |功能完善| 创建ag的资源类型修改为vm |
11+
| 2018-05-10 | 0.2.0 |接口完善| 内网提供全部接口的 SDK |
12+
| 2018-03-30 | 0.1.0 |初始版本| 提供 Quota 相关接口 |

services/ag/apis/AbandonInstances.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ type AbandonInstancesRequest struct {
3232

3333
/* 准备剔除出高可用组的实例 ID */
3434
InstanceIds []string `json:"instanceIds"`
35+
3536
}
3637

3738
/*
@@ -112,6 +113,7 @@ func (r *AbandonInstancesRequest) SetInstanceIds(instanceIds []string) {
112113
r.InstanceIds = instanceIds
113114
}
114115

116+
115117
// GetRegionId returns path parameter 'regionId' if exist,
116118
// otherwise return empty string
117119
func (r AbandonInstancesRequest) GetRegionId() string {

services/ag/apis/CreateAg.go

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ type CreateAgRequest struct {
4444

4545
/* 高可用组配置类型,支持strict(关联模板型)、loose(自定义配置型) (Optional) */
4646
ConfigurationType *string `json:"configurationType"`
47+
48+
/* 高可用资源放置类型,支持fd、switch、host (Optional) */
49+
PlacementType *string `json:"placementType"`
50+
4751
}
4852

4953
/*
@@ -80,6 +84,7 @@ func NewCreateAgRequest(
8084
* param instanceTemplateId: 实例模板的ID (Optional)
8185
* param description: 描述,长度不超过 256 字符 (Optional)
8286
* param configurationType: 高可用组配置类型,支持strict(关联模板型)、loose(自定义配置型) (Optional)
87+
* param placementType: 高可用资源放置类型,支持fd、switch、host (Optional)
8388
*/
8489
func NewCreateAgRequestWithAllParams(
8590
regionId string,
@@ -89,6 +94,7 @@ func NewCreateAgRequestWithAllParams(
8994
instanceTemplateId *string,
9095
description *string,
9196
configurationType *string,
97+
placementType *string,
9298
) *CreateAgRequest {
9399

94100
return &CreateAgRequest{
@@ -105,6 +111,7 @@ func NewCreateAgRequestWithAllParams(
105111
InstanceTemplateId: instanceTemplateId,
106112
Description: description,
107113
ConfigurationType: configurationType,
114+
PlacementType: placementType,
108115
}
109116
}
110117

@@ -156,6 +163,12 @@ func (r *CreateAgRequest) SetConfigurationType(configurationType string) {
156163
r.ConfigurationType = &configurationType
157164
}
158165

166+
/* param placementType: 高可用资源放置类型,支持fd、switch、host(Optional) */
167+
func (r *CreateAgRequest) SetPlacementType(placementType string) {
168+
r.PlacementType = &placementType
169+
}
170+
171+
159172
// GetRegionId returns path parameter 'regionId' if exist,
160173
// otherwise return empty string
161174
func (r CreateAgRequest) GetRegionId() string {

services/ag/apis/DeleteAg.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ type DeleteAgRequest struct {
2929

3030
/* 高可用组 ID */
3131
AgId string `json:"agId"`
32+
3233
}
3334

3435
/*
@@ -98,6 +99,7 @@ func (r *DeleteAgRequest) SetAgId(agId string) {
9899
r.AgId = agId
99100
}
100101

102+
101103
// GetRegionId returns path parameter 'regionId' if exist,
102104
// otherwise return empty string
103105
func (r DeleteAgRequest) GetRegionId() string {

services/ag/apis/DescribeAg.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ type DescribeAgRequest struct {
3030

3131
/* 高可用组 ID */
3232
AgId string `json:"agId"`
33+
3334
}
3435

3536
/*
@@ -99,6 +100,7 @@ func (r *DescribeAgRequest) SetAgId(agId string) {
99100
r.AgId = agId
100101
}
101102

103+
102104
// GetRegionId returns path parameter 'regionId' if exist,
103105
// otherwise return empty string
104106
func (r DescribeAgRequest) GetRegionId() string {

services/ag/apis/DescribeAgs.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@ type DescribeAgsRequest struct {
3939
agId - ag id,精确匹配
4040
instanceTemplateId - 实例模板id,精确匹配
4141
vpcId - vpc id,精确匹配
42+
placementType - placement type,放置策略
4243
(Optional) */
4344
Filters []common.Filter `json:"filters"`
45+
4446
}
4547

4648
/*
@@ -71,6 +73,7 @@ func NewDescribeAgsRequest(
7173
agId - ag id,精确匹配
7274
instanceTemplateId - 实例模板id,精确匹配
7375
vpcId - vpc id,精确匹配
76+
placementType - placement type,放置策略
7477
(Optional)
7578
*/
7679
func NewDescribeAgsRequestWithAllParams(
@@ -126,11 +129,13 @@ func (r *DescribeAgsRequest) SetPageSize(pageSize int) {
126129
agId - ag id,精确匹配
127130
instanceTemplateId - 实例模板id,精确匹配
128131
vpcId - vpc id,精确匹配
132+
placementType - placement type,放置策略
129133
(Optional) */
130134
func (r *DescribeAgsRequest) SetFilters(filters []common.Filter) {
131135
r.Filters = filters
132136
}
133137

138+
134139
// GetRegionId returns path parameter 'regionId' if exist,
135140
// otherwise return empty string
136141
func (r DescribeAgsRequest) GetRegionId() string {

services/ag/apis/DescribeQuotas.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ type DescribeQuotasRequest struct {
3232
/* resourceTypes - 资源类型,暂时只支持[ag]
3333
(Optional) */
3434
Filters []common.Filter `json:"filters"`
35+
3536
}
3637

3738
/*
@@ -100,6 +101,7 @@ func (r *DescribeQuotasRequest) SetFilters(filters []common.Filter) {
100101
r.Filters = filters
101102
}
102103

104+
103105
// GetRegionId returns path parameter 'regionId' if exist,
104106
// otherwise return empty string
105107
func (r DescribeQuotasRequest) GetRegionId() string {

services/ag/apis/SetInstanceTemplate.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ type SetInstanceTemplateRequest struct {
3232

3333
/* 实例模板 ID */
3434
InstanceTemplateId string `json:"instanceTemplateId"`
35+
3536
}
3637

3738
/*
@@ -112,6 +113,7 @@ func (r *SetInstanceTemplateRequest) SetInstanceTemplateId(instanceTemplateId st
112113
r.InstanceTemplateId = instanceTemplateId
113114
}
114115

116+
115117
// GetRegionId returns path parameter 'regionId' if exist,
116118
// otherwise return empty string
117119
func (r SetInstanceTemplateRequest) GetRegionId() string {

services/ag/apis/UpdateAg.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ type UpdateAgRequest struct {
3535

3636
/* 高可用组名称,只支持中文、数字、大小写字母、英文下划线 “_” 及中划线 “-”,且不能超过 32 字符 (Optional) */
3737
Name *string `json:"name"`
38+
3839
}
3940

4041
/*
@@ -120,6 +121,7 @@ func (r *UpdateAgRequest) SetName(name string) {
120121
r.Name = &name
121122
}
122123

124+
123125
// GetRegionId returns path parameter 'regionId' if exist,
124126
// otherwise return empty string
125127
func (r UpdateAgRequest) GetRegionId() string {

services/ag/client/AgClient.go

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

0 commit comments

Comments
 (0)