From 09d096f8c40fbb165e127266cb6c692967e48ac9 Mon Sep 17 00:00:00 2001 From: Zhengyi Lai Date: Mon, 24 May 2021 20:40:14 +0800 Subject: [PATCH 1/2] Update vxnet spec Signed-off-by: Zhengyi Lai --- service/image.go | 1 + service/types.go | 3 ++- service/vxnet.go | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/service/image.go b/service/image.go index 47ca250..b0229d0 100644 --- a/service/image.go +++ b/service/image.go @@ -238,6 +238,7 @@ type DescribeImagesInput struct { Provider *string `json:"provider" name:"provider" location:"params"` SearchWord *string `json:"search_word" name:"search_word" location:"params"` Status []*string `json:"status" name:"status" location:"params"` + Tags []*string `json:"tags" name:"tags" location:"params"` // Verbose's available values: 0 Verbose *int `json:"verbose" name:"verbose" default:"0" location:"params"` // Visibility's available values: public, private diff --git a/service/types.go b/service/types.go index 0732110..297626d 100644 --- a/service/types.go +++ b/service/types.go @@ -3262,7 +3262,8 @@ type VxNet struct { VxNetID *string `json:"vxnet_id" name:"vxnet_id"` VxNetName *string `json:"vxnet_name" name:"vxnet_name"` // VxNetType's available values: 0, 1, 2 - VxNetType *int `json:"vxnet_type" name:"vxnet_type"` + VxNetType *int `json:"vxnet_type" name:"vxnet_type"` + ZoneID *string `json:"zone_id" name:"zone_id"` } func (v *VxNet) Validate() error { diff --git a/service/vxnet.go b/service/vxnet.go index 0a548e2..fb40386 100644 --- a/service/vxnet.go +++ b/service/vxnet.go @@ -262,6 +262,7 @@ type DescribeVxNetsInput struct { // VxNetType's available values: 0, 1, 2 VxNetType *int `json:"vxnet_type" name:"vxnet_type" location:"params"` VxNets []*string `json:"vxnets" name:"vxnets" location:"params"` + Zone *string `json:"zone" name:"zone" location:"params"` } func (v *DescribeVxNetsInput) Validate() error { From 92d515114ab3f3fbfefdd13377cc9e0c67463c72 Mon Sep 17 00:00:00 2001 From: Zhengyi Lai Date: Mon, 24 May 2021 20:45:06 +0800 Subject: [PATCH 2/2] Update golint Signed-off-by: Zhengyi Lai --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 70f46c1..990a0f8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -27,7 +27,7 @@ before_install: - /usr/local/bin/make --version install: - - go get -u github.com/golang/lint/golint; + - go get -u golang.org/x/lint/golint; script: - /usr/local/bin/make check