Skip to content

Commit 7027140

Browse files
committed
pathx uga
1 parent cd68626 commit 7027140

9 files changed

Lines changed: 576 additions & 9 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export VERSION=0.1.19
1+
export VERSION=0.1.20
22

33
.PHONY : build
44
build:

base/client.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package base
22

33
import (
4+
ppathx "github.com/ucloud/ucloud-sdk-go/private/services/pathx"
45
pudb "github.com/ucloud/ucloud-sdk-go/private/services/udb"
56
puhost "github.com/ucloud/ucloud-sdk-go/private/services/uhost"
67
pumem "github.com/ucloud/ucloud-sdk-go/private/services/umem"
@@ -25,9 +26,12 @@ type PrivateUHostClient = puhost.UHostClient
2526
//PrivateUDBClient 私有模块的udb client 即未在官网开放的接口
2627
type PrivateUDBClient = pudb.UDBClient
2728

28-
//PrivateUMemClient 私有模块的udb client 即未在官网开放的接口
29+
//PrivateUMemClient 私有模块的umem client 即未在官网开放的接口
2930
type PrivateUMemClient = pumem.UMemClient
3031

32+
//PrivatePathxClient 私有模块的pathx client 即未在官网开放的接口
33+
type PrivatePathxClient = ppathx.PathXClient
34+
3135
//Client aggregate client for business
3236
type Client struct {
3337
uaccount.UAccountClient
@@ -44,6 +48,7 @@ type Client struct {
4448
PrivateUHostClient
4549
PrivateUDBClient
4650
PrivateUMemClient
51+
PrivatePathxClient
4752
}
4853

4954
// NewClient will return a aggregate client
@@ -63,5 +68,6 @@ func NewClient(config *ucloud.Config, credential *auth.Credential) *Client {
6368
*puhost.NewClient(config, credential),
6469
*pudb.NewClient(config, credential),
6570
*pumem.NewClient(config, credential),
71+
*ppathx.NewClient(config, credential),
6672
}
6773
}

base/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const DefaultBaseURL = "https://api.ucloud.cn/"
3131
const DefaultProfile = "default"
3232

3333
//Version 版本号
34-
const Version = "0.1.19"
34+
const Version = "0.1.20"
3535

3636
//ConfigIns 配置实例, 程序加载时生成
3737
var ConfigIns = &AggConfig{Profile: "default"}

cmd/configure.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,10 @@ func NewCmdConfigUpdate() *cobra.Command {
406406
cacheConfig.Region = region
407407
cacheConfig.Zone = zone
408408

409+
if cfg.ProjectID != "" {
410+
cacheConfig.ProjectID = base.PickResourceID(cfg.ProjectID)
411+
}
412+
409413
project, err := getReasonableProject(cacheConfig)
410414
if err != nil {
411415
base.HandleError(err)

cmd/mysql.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,7 @@ func getUDBList(states []string, dbType, project, region, zone string) ([]udb.UD
872872
}
873873
}
874874
} else {
875-
list = append(list, resp.DataSet...)
875+
list = append(list, ins)
876876
}
877877
}
878878
if offset+limit >= resp.TotalCount {

0 commit comments

Comments
 (0)