Skip to content

Commit dec28fb

Browse files
publish jdcloud-sdk-go version 1.5.2
1 parent 1d2d451 commit dec28fb

75 files changed

Lines changed: 424 additions & 16 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

services/vm/ChangeLog.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
# 更新历史 #
2-
API版本:1.4.2
2+
API版本:1.5.2
33

44
|发布时间|版本号|更新|说明|
55
|---|---|---|---|
6+
|2022-08-02 |1.5.2 |更新接口 |* 重置镜像支持新字段 |
7+
|2022-06-28 |1.5.1 |文档完善 |* 实例规格支持 CPU 架构 |
8+
|2022-04-18 |1.5.0 |文档完善 |* 专有宿主机SDK支持 |
69
|2022-02-21 |1.4.2 |文档完善 |* 存量主机加入或调整高可用组接口删除产品操作说明 |
710
|2022-01-18 |1.4.1 |更新接口 |* 创建云主机支持指定资源组 |
811
|2021-12-23 |1.3.9 |新增接口 |* 新增存量主机加入或调整高可用组接口 |

services/vm/apis/AssociateElasticIp.go

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

3333
/* 弹性公网IP的ID。 */
3434
ElasticIpId string `json:"elasticIpId"`
35+
3536
}
3637

3738
/*
@@ -112,6 +113,7 @@ func (r *AssociateElasticIpRequest) SetElasticIpId(elasticIpId string) {
112113
r.ElasticIpId = elasticIpId
113114
}
114115

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

services/vm/apis/AttachDisk.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ type AttachDiskRequest struct {
4545
`false`(默认值):不随实例删除。
4646
(Optional) */
4747
AutoDelete *bool `json:"autoDelete"`
48+
4849
}
4950

5051
/*
@@ -155,6 +156,7 @@ func (r *AttachDiskRequest) SetAutoDelete(autoDelete bool) {
155156
r.AutoDelete = &autoDelete
156157
}
157158

159+
158160
// GetRegionId returns path parameter 'regionId' if exist,
159161
// otherwise return empty string
160162
func (r AttachDiskRequest) GetRegionId() string {

services/vm/apis/AttachKeypair.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ type AttachKeypairRequest struct {
3838
`no`:禁止SSH密码登录。
3939
*/
4040
PassWordAuth string `json:"passWordAuth"`
41+
4142
}
4243

4344
/*
@@ -138,6 +139,7 @@ func (r *AttachKeypairRequest) SetPassWordAuth(passWordAuth string) {
138139
r.PassWordAuth = passWordAuth
139140
}
140141

142+
141143
// GetRegionId returns path parameter 'regionId' if exist,
142144
// otherwise return empty string
143145
func (r AttachKeypairRequest) GetRegionId() string {

services/vm/apis/AttachNetworkInterface.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ type AttachNetworkInterfaceRequest struct {
3737
受管网卡或授信网卡默认为False并且不支持修改。
3838
(Optional) */
3939
AutoDelete *bool `json:"autoDelete"`
40+
4041
}
4142

4243
/*
@@ -129,6 +130,7 @@ func (r *AttachNetworkInterfaceRequest) SetAutoDelete(autoDelete bool) {
129130
r.AutoDelete = &autoDelete
130131
}
131132

133+
132134
// GetRegionId returns path parameter 'regionId' if exist,
133135
// otherwise return empty string
134136
func (r AttachNetworkInterfaceRequest) GetRegionId() string {

services/vm/apis/CopyImages.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ type CopyImagesRequest struct {
3333

3434
/* 目标地域。 */
3535
DestinationRegion string `json:"destinationRegion"`
36+
3637
}
3738

3839
/*
@@ -113,6 +114,7 @@ func (r *CopyImagesRequest) SetDestinationRegion(destinationRegion string) {
113114
r.DestinationRegion = destinationRegion
114115
}
115116

117+
116118
// GetRegionId returns path parameter 'regionId' if exist,
117119
// otherwise return empty string
118120
func (r CopyImagesRequest) GetRegionId() string {

services/vm/apis/CreateImage.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ type CreateImageRequest struct {
4646
如果使用 `deviceName` 指定了与实例中相同的盘符,那么实例中对应的云盘数据盘也不会制作快照,并使用新指定的参数进行替换。
4747
(Optional) */
4848
DataDisks []vm.InstanceDiskAttachmentSpec `json:"dataDisks"`
49+
4950
}
5051

5152
/*
@@ -157,6 +158,7 @@ func (r *CreateImageRequest) SetDataDisks(dataDisks []vm.InstanceDiskAttachmentS
157158
r.DataDisks = dataDisks
158159
}
159160

161+
160162
// GetRegionId returns path parameter 'regionId' if exist,
161163
// otherwise return empty string
162164
func (r CreateImageRequest) GetRegionId() string {

services/vm/apis/CreateInstanceTemplate.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ type CreateInstanceTemplateRequest struct {
3636

3737
/* 实例模板的描述,参考 [公共参数规范](https://docs.jdcloud.com/virtual-machines/api/general_parameters)。 (Optional) */
3838
Description *string `json:"description"`
39+
3940
}
4041

4142
/*
@@ -124,6 +125,7 @@ func (r *CreateInstanceTemplateRequest) SetDescription(description string) {
124125
r.Description = &description
125126
}
126127

128+
127129
// GetRegionId returns path parameter 'regionId' if exist,
128130
// otherwise return empty string
129131
func (r CreateInstanceTemplateRequest) GetRegionId() string {

services/vm/apis/CreateInstances.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ type CreateInstancesRequest struct {
4141
/* 用于保证请求的幂等性。由客户端生成,并确保不同请求中该参数唯一,长度不能超过64个字符。
4242
(Optional) */
4343
ClientToken *string `json:"clientToken"`
44+
4445
}
4546

4647
/*
@@ -137,6 +138,7 @@ func (r *CreateInstancesRequest) SetClientToken(clientToken string) {
137138
r.ClientToken = &clientToken
138139
}
139140

141+
140142
// GetRegionId returns path parameter 'regionId' if exist,
141143
// otherwise return empty string
142144
func (r CreateInstancesRequest) GetRegionId() string {

services/vm/apis/CreateKeypair.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ type CreateKeypairRequest struct {
3131
只允许数字、大小写字母、下划线“_”及中划线“-”,不超过32个字符。
3232
*/
3333
KeyName string `json:"keyName"`
34+
3435
}
3536

3637
/*
@@ -106,6 +107,7 @@ func (r *CreateKeypairRequest) SetKeyName(keyName string) {
106107
r.KeyName = keyName
107108
}
108109

110+
109111
// GetRegionId returns path parameter 'regionId' if exist,
110112
// otherwise return empty string
111113
func (r CreateKeypairRequest) GetRegionId() string {

0 commit comments

Comments
 (0)