From dcc4baaa8a1ded1310ba87dd49bb259f4ab8e57b Mon Sep 17 00:00:00 2001 From: duanliguo Date: Thu, 2 Jan 2025 14:52:25 +0800 Subject: [PATCH] Fix bugs in blb --- bce/config.go | 2 +- services/vpc/ipSet.go | 22 ---------------------- 2 files changed, 1 insertion(+), 23 deletions(-) delete mode 100644 services/vpc/ipSet.go diff --git a/bce/config.go b/bce/config.go index cf05011e..f9c3ec06 100644 --- a/bce/config.go +++ b/bce/config.go @@ -26,7 +26,7 @@ import ( // Constants and default values for the package bce const ( - SDK_VERSION = "0.9.209" + SDK_VERSION = "0.9.210" URI_PREFIX = "/" // now support uri without prefix "v1" so just set root path DEFAULT_DOMAIN = "baidubce.com" DEFAULT_PROTOCOL = "http" diff --git a/services/vpc/ipSet.go b/services/vpc/ipSet.go deleted file mode 100644 index e37d749c..00000000 --- a/services/vpc/ipSet.go +++ /dev/null @@ -1,22 +0,0 @@ -package vpc - -import ( - "fmt" - "github.com/baidubce/bce-sdk-go/bce" - "github.com/baidubce/bce-sdk-go/http" -) - -func (c *Client) CreateIpSet(args *CreateIpSetArgs) (*CreateIpSetResult, error) { - if args == nil { - return nil, fmt.Errorf("The CreateIpSetArgs cannot be nil.") - } - result := &CreateIpSetResult{} - err := bce.NewRequestBuilder(c). - WithURL(getURLForIpSet()). - WithMethod(http.POST). - WithBody(args). - WithQueryParamFilter("clientToken", args.ClientToken). - WithResult(result). - Do() - return result, err -}