Skip to content

Commit

Permalink
Support disk type when rds create instance
Browse files Browse the repository at this point in the history
  • Loading branch information
duanliguo committed Jun 15, 2022
1 parent f9eee1d commit 2a5aa67
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bce/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (

// Constants and default values for the package bce
const (
SDK_VERSION = "0.9.123"
SDK_VERSION = "0.9.124"
URI_PREFIX = "/" // now support uri without prefix "v1" so just set root path
DEFAULT_DOMAIN = "baidubce.com"
DEFAULT_PROTOCOL = "http"
Expand Down
2 changes: 2 additions & 0 deletions doc/RDS.md
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,8 @@ args := &rds.CreateRdsArgs{
MemoryCapacity: 1,
//套餐磁盘大小,单位GB,每5G递增,必选
VolumeCapacity: 5,
//磁盘类型, normal_io:本地盘ssd磁盘, cloud_high:高性能云磁盘, cloud_nor:通用型SSD, cloud_enha:增强型SSD, 必选
DiskIoType: "normal_io",
//批量创建云数据库 RDS 实例个数, 最大不超过10,默认1,可选
PurchaseCount: 1,
//rds实例名称,允许小写字母、数字,长度限制为1~32,默认命名规则:{engine} + {engineVersion},可选
Expand Down
1 change: 1 addition & 0 deletions services/rds/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ type CreateRdsArgs struct {
CpuCount int `json:"cpuCount"`
MemoryCapacity float64 `json:"memoryCapacity"`
VolumeCapacity int `json:"volumeCapacity"`
DiskIoType string `json:"diskIoType"`
ZoneNames []string `json:"zoneNames,omitempty"`
VpcId string `json:"vpcId,omitempty"`
IsDirectPay bool `json:"isDirectPay,omitempty"`
Expand Down

0 comments on commit 2a5aa67

Please sign in to comment.