aliyun: add SVpc.apiRequest() method

This commit is contained in:
Yousong Zhou
2018-11-23 03:17:41 +00:00
parent 7e7f124efe
commit cd0a1b87ef
2 changed files with 10 additions and 1 deletions
+2 -1
View File
@@ -16,7 +16,8 @@ const (
ALIYUN_DEFAULT_REGION = "cn-hangzhou"
ALIYUN_API_VERSION = "2014-05-26"
ALIYUN_API_VERSION = "2014-05-26"
ALIYUN_API_VERSION_VPC = "2016-04-28"
ALIYUN_BSS_API_VERSION = "2017-12-14"
+8
View File
@@ -45,6 +45,14 @@ type SVpc struct {
VpcName string
}
func (self *SVpc) apiRequest(action string, params map[string]string) (jsonutils.JSONObject, error) {
client, err := self.region.getSdkClient()
if err != nil {
return nil, err
}
return _jsonRequest(client, "vpc.aliyuncs.com", ALIYUN_API_VERSION_VPC, action, params)
}
func (self *SVpc) GetMetadata() *jsonutils.JSONDict {
return nil
}