diff --git a/ci/assets/terraform/terraform.tf b/ci/assets/terraform/terraform.tf index 283a748a..5356a4dd 100644 --- a/ci/assets/terraform/terraform.tf +++ b/ci/assets/terraform/terraform.tf @@ -18,7 +18,7 @@ terraform { } required_providers { alicloud = { - source = "aliyun/alicloud" + source = "aliyun/alicloud" version = "1.193.0" } } diff --git a/ci/tasks/build-candidate.sh b/ci/tasks/build-candidate.sh index 913c750e..5d6dccc9 100755 --- a/ci/tasks/build-candidate.sh +++ b/ci/tasks/build-candidate.sh @@ -19,7 +19,7 @@ pushd bosh-cpi-src do if [[ ${LINE//:/} =~ ^go[0-9.]+linux-[a-z0-9]+.tar.gz$ ]]; then gorelease=${LINE//:/} - echo "Downloading ${gorelease}..." + echo "Downloading ${gorelease} with url:https://dl.google.com/go/${gorelease}..." wget -q https://dl.google.com/go/${gorelease} echo "Adding ${gorelease} to blob..." bosh add-blob ./${gorelease} ${gorelease} diff --git a/config/blobs.yml b/config/blobs.yml index f629d7cb..bc2ddd5f 100644 --- a/config/blobs.yml +++ b/config/blobs.yml @@ -1,6 +1,3 @@ -go1.20.10.linux-amd64.tar.gz: - size: 100663296 - sha: sha256:80d34f1fd74e382d86c2d6102e0e60d4318461a7c2f457ec1efc4042752d4248 go1.21.4.linux-amd64.tar.gz: size: 66615271 sha: sha256:73cac0215254d0c7d1241fa40837851f3b9a8a742d0b54714cbdfb3feaf8f0af diff --git a/src/bosh-alicloud-cpi/action/create_vm.go b/src/bosh-alicloud-cpi/action/create_vm.go index 29e92c7e..869e1fd0 100755 --- a/src/bosh-alicloud-cpi/action/create_vm.go +++ b/src/bosh-alicloud-cpi/action/create_vm.go @@ -50,6 +50,7 @@ type InstanceProps struct { NlbServerGroupWeight json.Number `json:"nlb_server_group_weight"` NlbServerGroupPort json.Number `json:"nlb_server_group_port"` NlbServerGroupIds []string `json:"nlb_server_group_ids"` + NlbServerGroups []NlbServerGroupProps `json:"nlb_server_groups"` Password string `json:"password"` KeyPairName string `json:"key_pair_name"` SecurityGroupIds []string `json:"security_group_ids"` diff --git a/src/bosh-alicloud-cpi/action/networks.go b/src/bosh-alicloud-cpi/action/networks.go index ca2f690b..905705e9 100644 --- a/src/bosh-alicloud-cpi/action/networks.go +++ b/src/bosh-alicloud-cpi/action/networks.go @@ -30,6 +30,11 @@ type NetworkProps struct { VSwitchId string `json:"vswitch_id"` InternetChargeType string `json:"internet_charge_type,omitempty"` } +type NlbServerGroupProps struct { + ServerGroupId string `json:"server_group_id"` + Port []string `json:"port"` + Weight string `json:"weight"` +} func NewNetworks(args apiv1.Networks) (Networks, error) { r := Networks{networks: args} diff --git a/src/bosh-alicloud-cpi/alicloud/common.go b/src/bosh-alicloud-cpi/alicloud/common.go index 034431c7..5a86bd0b 100644 --- a/src/bosh-alicloud-cpi/alicloud/common.go +++ b/src/bosh-alicloud-cpi/alicloud/common.go @@ -11,10 +11,7 @@ import ( "strings" "time" - rpc "github.com/alibabacloud-go/tea-rpc/client" "github.com/aliyun/alibaba-cloud-sdk-go/sdk" - credential "github.com/aliyun/credentials-go/credentials" - "github.com/google/uuid" ) @@ -99,20 +96,6 @@ func getSdkConfig() *sdk.Config { WithScheme("HTTPS") } -func (c *Config) getTeaDslSdkConfig(stsSupported bool) (config rpc.Config, err error) { - config.SetRegionId(c.OpenApi.Region) - config.SetUserAgent(fmt.Sprintf("%s/%s", BoshCPI, BoshCPIVersion)) - credential, err := credential.NewCredential(c.getCredentialConfig(stsSupported)) - config.SetCredential(credential). - SetRegionId(c.OpenApi.Region). - SetProtocol("HTTPS"). - SetReadTimeout(60000). - SetConnectTimeout(60000). - SetMaxIdleConns(500) - - return -} - func getTransport() *http.Transport { handshakeTimeout, err := strconv.Atoi(os.Getenv("TLSHandshakeTimeout")) if err != nil { diff --git a/src/bosh-alicloud-cpi/alicloud/config.go b/src/bosh-alicloud-cpi/alicloud/config.go index f3c94e46..5c95adfd 100644 --- a/src/bosh-alicloud-cpi/alicloud/config.go +++ b/src/bosh-alicloud-cpi/alicloud/config.go @@ -7,14 +7,14 @@ import ( "bosh-alicloud-cpi/registry" "encoding/json" "fmt" + openapi "github.com/alibabacloud-go/darabonba-openapi/v2/client" + "github.com/alibabacloud-go/tea/tea" + credential "github.com/aliyun/credentials-go/credentials" "os" "strings" "sync" "time" - rpc "github.com/alibabacloud-go/tea-rpc/client" - credential "github.com/aliyun/credentials-go/credentials" - bosherr "github.com/cloudfoundry/bosh-utils/errors" boshlog "github.com/cloudfoundry/bosh-utils/logger" boshsys "github.com/cloudfoundry/bosh-utils/system" @@ -200,7 +200,7 @@ func (c Config) NewEcsClient(region string) (*ecs.Client, error) { return client, nil } -func (c Config) EcsTeaClient(region string) (*rpc.Client, error) { +func (c Config) EcsTeaClient(region string) (*openapi.Client, error) { var mutex = sync.RWMutex{} mutex.Lock() defer mutex.Unlock() @@ -220,18 +220,9 @@ func (c Config) EcsTeaClient(region string) (*rpc.Client, error) { } } - sdkConfig, err := c.getTeaDslSdkConfig(true) - if err != nil { - return nil, bosherr.WrapErrorf(err, "Initiating ECS Client in '%s' got an error.", c.OpenApi.GetRegion(region)) - } - sdkConfig.SetEndpoint(endpoint).SetReadTimeout(60000) - - conn, err := rpc.NewClient(&sdkConfig) - if err != nil { - return nil, bosherr.WrapErrorf(err, "Initiating ECS Client in '%s' got an error.", c.OpenApi.GetRegion(region)) - } - - return conn, nil + config := c.getTeaSdkConfig() + config.SetEndpoint(endpoint) + return openapi.NewClient(config) } func (c Config) NewSlbClient(region string) (*slb.Client, error) { @@ -254,7 +245,7 @@ func (c Config) NewSlbClient(region string) (*slb.Client, error) { return client, nil } -func (c Config) NlbTeaClient(region string) (*rpc.Client, error) { +func (c Config) NlbTeaClient(region string) (*openapi.Client, error) { var mutex = sync.RWMutex{} mutex.Lock() defer mutex.Unlock() @@ -271,20 +262,29 @@ func (c Config) NlbTeaClient(region string) (*rpc.Client, error) { endpoint = fmt.Sprintf("nlb.%s.aliyuncs.com", region) } - sdkConfig, err := c.getTeaDslSdkConfig(true) - if err != nil { - return nil, bosherr.WrapErrorf(err, "Initiating NLB Client in '%s' got an error.", c.OpenApi.GetRegion(region)) - } - sdkConfig.SetEndpoint(endpoint).SetReadTimeout(60000) - - conn, err := rpc.NewClient(&sdkConfig) - if err != nil { - return nil, bosherr.WrapErrorf(err, "Initiating NLB Client in '%s' got an error.", c.OpenApi.GetRegion(region)) - } - - return conn, nil + config := c.getTeaSdkConfig() + config.SetEndpoint(endpoint) + return openapi.NewClient(config) } +func (c Config) getTeaSdkConfig() *openapi.Config { + config := &openapi.Config{ + RegionId: tea.String(c.OpenApi.Region), + AccessKeyId: tea.String(c.OpenApi.AccessKeyId), + AccessKeySecret: tea.String(c.OpenApi.AccessKeySecret), + ReadTimeout: tea.Int(60000), + UserAgent: tea.String(fmt.Sprintf("%s/%s", BoshCPI, BoshCPIVersion)), + MaxIdleConns: tea.Int(500), + Protocol: tea.String("HTTPS"), + HttpProxy: tea.String(os.Getenv("HTTP_PROXY")), + HttpsProxy: tea.String(os.Getenv("HTTPS_PROXY")), + NoProxy: tea.String(os.Getenv("NO_PROXY")), + } + if c.OpenApi.SecurityToken != "" { + config.SecurityToken = tea.String(c.OpenApi.SecurityToken) + } + return config +} func (c Config) GetRegistryClient(logger boshlog.Logger) RegistryManager { //if !c.Registry.IsEmpty() { // return c.GetHttpRegistryClient(logger) diff --git a/src/bosh-alicloud-cpi/alicloud/disk_manager.go b/src/bosh-alicloud-cpi/alicloud/disk_manager.go index 8b652671..3b8f00f2 100644 --- a/src/bosh-alicloud-cpi/alicloud/disk_manager.go +++ b/src/bosh-alicloud-cpi/alicloud/disk_manager.go @@ -4,9 +4,12 @@ package alicloud import ( + openapi "github.com/alibabacloud-go/darabonba-openapi/v2/client" + openapiutil "github.com/alibabacloud-go/openapi-util/service" + "github.com/alibabacloud-go/tea/tea" "strings" - util "github.com/alibabacloud-go/tea-utils/service" + util "github.com/alibabacloud-go/tea-utils/v2/service" "github.com/aliyun/alibaba-cloud-sdk-go/services/ecs" "encoding/json" @@ -387,20 +390,37 @@ func (a DiskManagerImpl) GetDiskPath(path, diskId, instanceType string, category invoker.AddCatcher(CreateInstanceCatcher_IpUsed2) action := "DescribeInstanceTypes" - request := map[string]interface{}{ + queries := map[string]interface{}{ "InstanceTypes.1": instanceType, "NvmeSupport": "required", } - runtime := util.RuntimeOptions{} + params := &openapi.Params{ + Action: tea.String(action), + Version: tea.String("2014-05-26"), + Protocol: tea.String("HTTPS"), + Method: tea.String("POST"), + AuthType: tea.String("AK"), + Style: tea.String("RPC"), + Pathname: tea.String("/"), + ReqBodyType: tea.String("json"), + BodyType: tea.String("json"), + } + runtime := &util.RuntimeOptions{} runtime.SetAutoretry(true) + request := &openapi.OpenApiRequest{ + Query: openapiutil.Query(queries), + } err = invoker.Run(func() error { - resp, e := conn.DoRequest(StringPointer(action), nil, StringPointer("POST"), StringPointer("2014-05-26"), StringPointer("AK"), nil, request, &runtime) + resp, e := conn.CallApi(params, request, runtime) if e != nil { return e } - if resp["InstanceTypes"] != nil && - resp["InstanceTypes"].(map[string]interface{})["InstanceType"] != nil && - len(resp["InstanceTypes"].(map[string]interface{})["InstanceType"].([]interface{})) > 0 { + if resp["body"] == nil { + return fmt.Errorf("invoking DescribeInstanceTypes got an empty response: %v", resp) + } + instanceTypes := resp["body"].(map[string]interface{})["InstanceTypes"] + if instanceTypes != nil && instanceTypes.(map[string]interface{})["InstanceType"] != nil && + len(instanceTypes.(map[string]interface{})["InstanceType"].([]interface{})) > 0 { amendPath = "/dev/disk/by-id/nvme-Alibaba_Cloud_Elastic_Block_Storage_" + strings.Split(diskId, "-")[1] } else { amendPath = "/dev/disk/by-id/virtio-" + strings.Split(diskId, "-")[1] @@ -408,7 +428,7 @@ func (a DiskManagerImpl) GetDiskPath(path, diskId, instanceType string, category return e }) if err != nil { - a.log(action, err, request, "") + a.log(action, err, queries, "") } return amendPath diff --git a/src/bosh-alicloud-cpi/alicloud/instance_manager.go b/src/bosh-alicloud-cpi/alicloud/instance_manager.go index cb85506a..6a3bb619 100644 --- a/src/bosh-alicloud-cpi/alicloud/instance_manager.go +++ b/src/bosh-alicloud-cpi/alicloud/instance_manager.go @@ -6,12 +6,15 @@ package alicloud import ( "encoding/json" "fmt" + openapi "github.com/alibabacloud-go/darabonba-openapi/v2/client" + openapiutil "github.com/alibabacloud-go/openapi-util/service" + "github.com/alibabacloud-go/tea/tea" "strings" "time" "github.com/aliyun/alibaba-cloud-sdk-go/services/ecs" - util "github.com/alibabacloud-go/tea-utils/service" + util "github.com/alibabacloud-go/tea-utils/v2/service" "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" boshlog "github.com/cloudfoundry/bosh-utils/logger" @@ -103,7 +106,7 @@ func (a InstanceManagerImpl) GetInstance(cid string) (inst *ecs.Instance, err er return } -func (a InstanceManagerImpl) CreateInstance(region string, request map[string]interface{}) (string, error) { +func (a InstanceManagerImpl) CreateInstance(region string, queries map[string]interface{}) (string, error) { conn, err := a.config.EcsTeaClient(region) if err != nil { return "", err @@ -116,20 +119,34 @@ func (a InstanceManagerImpl) CreateInstance(region string, request map[string]in invoker.AddCatcher(CreateInstanceCatcher_IpUsed2) action := "CreateInstance" - request["ClientToken"] = buildClientToken(action) - runtime := util.RuntimeOptions{} + params := &openapi.Params{ + Action: tea.String(action), + Version: tea.String("2014-05-26"), + Protocol: tea.String("HTTPS"), + Method: tea.String("POST"), + AuthType: tea.String("AK"), + Style: tea.String("RPC"), + Pathname: tea.String("/"), + ReqBodyType: tea.String("json"), + BodyType: tea.String("json"), + } + queries["ClientToken"] = buildClientToken(action) + runtime := &util.RuntimeOptions{} runtime.SetAutoretry(true) + request := &openapi.OpenApiRequest{ + Query: openapiutil.Query(queries), + } var cid string err = invoker.Run(func() error { - resp, e := conn.DoRequest(StringPointer(action), nil, StringPointer("POST"), StringPointer("2014-05-26"), StringPointer("AK"), nil, request, &runtime) + resp, e := conn.CallApi(params, request, runtime) if e != nil { if IsExceptedErrors(e, []string{"IdempotentFailed"}) { // If the error is not 5xx, the client token should be updated - request["ClientToken"] = buildClientToken(action) + queries["ClientToken"] = buildClientToken(action) } return e } - cid = fmt.Sprint(resp["InstanceId"]) + cid = fmt.Sprint(resp["body"].(map[string]interface{})["InstanceId"]) return e }) return cid, err diff --git a/src/bosh-alicloud-cpi/alicloud/network_manager.go b/src/bosh-alicloud-cpi/alicloud/network_manager.go index 2f9c0626..563ec2a0 100644 --- a/src/bosh-alicloud-cpi/alicloud/network_manager.go +++ b/src/bosh-alicloud-cpi/alicloud/network_manager.go @@ -6,10 +6,12 @@ package alicloud import ( "encoding/json" "fmt" + openapi "github.com/alibabacloud-go/darabonba-openapi/v2/client" + openapiutil "github.com/alibabacloud-go/openapi-util/service" + util "github.com/alibabacloud-go/tea-utils/v2/service" + "github.com/alibabacloud-go/tea/tea" "strings" - util "github.com/alibabacloud-go/tea-utils/service" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors" "github.com/aliyun/alibaba-cloud-sdk-go/services/ecs" "github.com/aliyun/alibaba-cloud-sdk-go/services/slb" @@ -18,7 +20,7 @@ import ( ) type NetworkManager interface { - DescribeEip(region, eip string) (ecs.EipAddressInDescribeEipAddresses, error) + DescribeEip(region, eip string) (ecs.EipAddress, error) BindEip(region, instanceId, eip string) error WaitForEipStatus(region, eip string, toStatus EipStatus) error @@ -60,7 +62,7 @@ func (a NetworkManagerImpl) log(action string, err error, args interface{}, resu } } -func (a NetworkManagerImpl) DescribeEip(region, eip string) (eipAddress ecs.EipAddressInDescribeEipAddresses, err error) { +func (a NetworkManagerImpl) DescribeEip(region, eip string) (eipAddress ecs.EipAddress, err error) { client, err := a.config.NewEcsClient(region) if err != nil { return @@ -177,24 +179,43 @@ func (a NetworkManagerImpl) BindNlbServerGroup(region, instanceId string, nlbSer if err != nil { return err } - request := map[string]interface{}{ + action := "AddServersToServerGroup" + params := &openapi.Params{ + Action: tea.String(action), + Version: tea.String("2022-04-30"), + Protocol: tea.String("HTTPS"), + Method: tea.String("POST"), + AuthType: tea.String("AK"), + Style: tea.String("RPC"), + Pathname: tea.String("/"), + ReqBodyType: tea.String("formData"), + BodyType: tea.String("json"), + } + queries := map[string]interface{}{ "Servers.1.Port": port, "ServerGroupId": nlbServerGroupId, "Servers.1.ServerId": instanceId, "Servers.1.ServerType": "Ecs", "ClientToken": buildClientToken("AddServersToServerGroup"), + "RegionId": tea.String(a.config.OpenApi.Region), } if weight != 0 { - request["Servers.1.Weight"] = weight + queries["Servers.1.Weight"] = weight } - action := "AddServersToServerGroup" + queries["ClientToken"] = buildClientToken(action) + request := &openapi.OpenApiRequest{ + Query: openapiutil.Query(queries), + } + runtime := &util.RuntimeOptions{} + runtime.SetAutoretry(true) invoker := NewInvoker() invoker.AddCatcher(NlbBindServerCatcher_Conflict_Lock) - runtime := util.RuntimeOptions{} - runtime.SetAutoretry(true) + err = invoker.Run(func() error { - _, e := conn.DoRequest(StringPointer(action), nil, StringPointer("POST"), StringPointer("2022-04-30"), StringPointer("AK"), nil, request, &runtime) - a.logger.Error("NetworkManager", "BindNlbServerGroup %s to %s failed %v. Retry...", instanceId, nlbServerGroupId, err) + _, e := conn.CallApi(params, request, runtime) + if e != nil { + a.logger.Error("NetworkManager", "BindNlbServerGroup %s to %s failed %v. Retry...", instanceId, nlbServerGroupId, err) + } return e }) return err diff --git a/src/bosh-alicloud-cpi/go.mod b/src/bosh-alicloud-cpi/go.mod index 21209e32..2bc25650 100644 --- a/src/bosh-alicloud-cpi/go.mod +++ b/src/bosh-alicloud-cpi/go.mod @@ -1,14 +1,15 @@ module bosh-alicloud-cpi -go 1.20 +go 1.21 require ( - github.com/alibabacloud-go/tea v1.2.1 - github.com/alibabacloud-go/tea-rpc v1.3.3 - github.com/alibabacloud-go/tea-utils v1.4.5 - github.com/aliyun/alibaba-cloud-sdk-go v0.0.0-20190830085952-7a8078751366 + github.com/alibabacloud-go/darabonba-openapi/v2 v2.0.8 + github.com/alibabacloud-go/openapi-util v0.1.1 + github.com/alibabacloud-go/tea v1.2.2 + github.com/alibabacloud-go/tea-utils/v2 v2.0.6 + github.com/aliyun/alibaba-cloud-sdk-go v1.62.676 github.com/aliyun/aliyun-oss-go-sdk v3.0.1+incompatible - github.com/aliyun/credentials-go v1.2.7 + github.com/aliyun/credentials-go v1.3.2 github.com/cloudfoundry/bosh-utils v0.0.407 github.com/cppforlife/bosh-cpi-go v0.0.0-20180718174221-526823bbeafd github.com/google/uuid v1.4.0 @@ -17,26 +18,22 @@ require ( ) require ( - github.com/alibabacloud-go/debug v0.0.0-20190504072949-9472017b5c68 // indirect - github.com/alibabacloud-go/tea-rpc-utils v1.1.2 // indirect + github.com/alibabacloud-go/alibabacloud-gateway-spi v0.0.4 // indirect + github.com/alibabacloud-go/debug v1.0.0 // indirect + github.com/alibabacloud-go/tea-xml v1.1.3 // indirect github.com/bmatcuk/doublestar v1.3.4 // indirect github.com/charlievieth/fs v0.0.3 // indirect + github.com/clbanning/mxj/v2 v2.5.5 // indirect github.com/google/go-cmp v0.5.9 // indirect github.com/jmespath/go-jmespath v0.0.0-20180206201540-c2b33e8439af // indirect github.com/json-iterator/go v1.1.12 // indirect github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.2 // indirect - golang.org/x/net v0.17.0 // indirect - golang.org/x/text v0.13.0 // indirect + github.com/opentracing/opentracing-go v1.2.1-0.20220228012449-10b1cf09e00b // indirect + github.com/tjfoc/gmsm v1.4.1 // indirect + golang.org/x/net v0.20.0 // indirect + golang.org/x/text v0.14.0 // indirect golang.org/x/time v0.0.0-20190308202827-9d24e82272b4 // indirect gopkg.in/ini.v1 v1.66.2 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect ) - -replace github.com/alibabacloud-go/tea-rpc v1.3.3 => github.com/alibabacloud-go/tea-rpc v1.3.3 - -replace github.com/alibabacloud-go/tea-utils v1.4.5 => github.com/alibabacloud-go/tea-utils v1.4.5 - -replace github.com/aliyun/alibaba-cloud-sdk-go v0.0.0-20190830085952-7a8078751366 => github.com/aliyun/alibaba-cloud-sdk-go v0.0.0-20190830085952-7a8078751366 - -replace github.com/aliyun/credentials-go v1.2.7 => github.com/aliyun/credentials-go v1.2.7 diff --git a/src/bosh-alicloud-cpi/go.sum b/src/bosh-alicloud-cpi/go.sum index 1c86e42d..308e41b4 100644 --- a/src/bosh-alicloud-cpi/go.sum +++ b/src/bosh-alicloud-cpi/go.sum @@ -1,50 +1,91 @@ -github.com/alibabacloud-go/debug v0.0.0-20190504072949-9472017b5c68 h1:NqugFkGxx1TXSh/pBcU00Y6bljgDPaFdh5MUSeJ7e50= +cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= +github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= +github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo= +github.com/HdrHistogram/hdrhistogram-go v1.1.2/go.mod h1:yDgFjdqOqDEKOvasDdhWNXYg9BVp4O+o5f6V/ehm6Oo= +github.com/ajstarks/svgo v0.0.0-20180226025133-644b8db467af/go.mod h1:K08gAheRH3/J6wwsYMMT4xOr94bZjxIelGM0+d/wbFw= +github.com/alibabacloud-go/alibabacloud-gateway-spi v0.0.4 h1:iC9YFYKDGEy3n/FtqJnOkZsene9olVspKmkX5A2YBEo= +github.com/alibabacloud-go/alibabacloud-gateway-spi v0.0.4/go.mod h1:sCavSAvdzOjul4cEqeVtvlSaSScfNsTQ+46HwlTL1hc= +github.com/alibabacloud-go/darabonba-openapi/v2 v2.0.8 h1:benoD0QHDrylMzEQVpX/6uKtrN8LohT66ZlKXVJh7pM= +github.com/alibabacloud-go/darabonba-openapi/v2 v2.0.8/go.mod h1:CzQnh+94WDnJOnKZH5YRyouL+OOcdBnXY5VWAf0McgI= github.com/alibabacloud-go/debug v0.0.0-20190504072949-9472017b5c68/go.mod h1:6pb/Qy8c+lqua8cFpEy7g39NRRqOWc3rOwAy8m5Y2BY= +github.com/alibabacloud-go/debug v1.0.0 h1:3eIEQWfay1fB24PQIEzXAswlVJtdQok8f3EVN5VrBnA= +github.com/alibabacloud-go/debug v1.0.0/go.mod h1:8gfgZCCAC3+SCzjWtY053FrOcd4/qlH6IHTI4QyICOc= +github.com/alibabacloud-go/openapi-util v0.1.0/go.mod h1:sQuElr4ywwFRlCCberQwKRFhRzIyG4QTP/P4y1CJ6Ws= +github.com/alibabacloud-go/openapi-util v0.1.1 h1:ujGErJjG8ncRW6XtBBMphzHTvCxn4DjrVw4m04HsS28= +github.com/alibabacloud-go/openapi-util v0.1.1/go.mod h1:/UehBSE2cf1gYT43GV4E+RxTdLRzURImCYY0aRmlXpw= github.com/alibabacloud-go/tea v1.1.0/go.mod h1:IkGyUSX4Ba1V+k4pCtJUc6jDpZLFph9QMy2VUPTwukg= github.com/alibabacloud-go/tea v1.1.7/go.mod h1:/tmnEaQMyb4Ky1/5D+SE1BAsa5zj/KeGOFfwYm3N/p4= github.com/alibabacloud-go/tea v1.1.8/go.mod h1:/tmnEaQMyb4Ky1/5D+SE1BAsa5zj/KeGOFfwYm3N/p4= github.com/alibabacloud-go/tea v1.1.17/go.mod h1:nXxjm6CIFkBhwW4FQkNrolwbfon8Svy6cujmKFUq98A= -github.com/alibabacloud-go/tea v1.2.1 h1:rFF1LnrAdhaiPmKwH5xwYOKlMh66CqRwPUTzIK74ask= github.com/alibabacloud-go/tea v1.2.1/go.mod h1:qbzof29bM/IFhLMtJPrgTGK3eauV5J2wSyEUo4OEmnA= -github.com/alibabacloud-go/tea-rpc v1.3.3 h1:NZJtukZouR0jpN0dWeBB5bMZdVvTyRPyISxc/hfOALo= -github.com/alibabacloud-go/tea-rpc v1.3.3/go.mod h1:zwKwxuf92liNsPcLOxPdrkvR5Dq6jtX2du6qx8FT094= -github.com/alibabacloud-go/tea-rpc-utils v1.1.2 h1:ZTfFREnP2q9D49T2J/1jYYOndepGdrUOgm/JR8/bIQ0= -github.com/alibabacloud-go/tea-rpc-utils v1.1.2/go.mod h1:V5HdNi6Xdn0JMpgVhQ19vsFAS51tydr7BqcJtuXH1Yw= -github.com/alibabacloud-go/tea-utils v1.3.5/go.mod h1:EI/o33aBfj3hETm4RLiAxF/ThQdSngxrpF8rKUDJjPE= -github.com/alibabacloud-go/tea-utils v1.4.5 h1:h0/6Xd2f3bPE4XHTvkpjwxowIwRCJAJOqY6Eq8f3zfA= -github.com/alibabacloud-go/tea-utils v1.4.5/go.mod h1:KNcT0oXlZZxOXINnZBs6YvgOd5aYp9U67G+E3R8fcQw= -github.com/aliyun/alibaba-cloud-sdk-go v0.0.0-20190830085952-7a8078751366 h1:/5EJG2/jjtZzJFmfcJjgXLEZ0VRkTBhwe9FyBloegL4= -github.com/aliyun/alibaba-cloud-sdk-go v0.0.0-20190830085952-7a8078751366/go.mod h1:myCDvQSzCW+wB1WAlocEru4wMGJxy+vlxHdhegi1CDQ= -github.com/aliyun/alibaba-cloud-sdk-go v1.61.1 h1:AQLG+LufYiDwCoS1sYvBKIhLr12R1fhUmMY5gWB7o+I= -github.com/aliyun/alibaba-cloud-sdk-go v1.61.1/go.mod h1:v8ESoHo4SyHmuB4b1tJqDHxfTGEciD+yhvOU/5s1Rfk= -github.com/aliyun/alibaba-cloud-sdk-go v1.61.119 h1:leglv6sWCOEPmUjvm+pt4XIxtqSz60HtycZoEp12K5Y= -github.com/aliyun/alibaba-cloud-sdk-go v1.61.119/go.mod h1:pUKYbK5JQ+1Dfxk80P0qxGqe5dkxDoabbZS7zOcouyA= -github.com/aliyun/aliyun-oss-go-sdk v0.0.0-20190307165228-86c17b95fcd5/go.mod h1:T/Aws4fEfogEE9v+HPhhw+CntffsBHJ8nXQCwKr0/g8= +github.com/alibabacloud-go/tea v1.2.2 h1:aTsR6Rl3ANWPfqeQugPglfurloyBJY85eFy7Gc1+8oU= +github.com/alibabacloud-go/tea v1.2.2/go.mod h1:CF3vOzEMAG+bR4WOql8gc2G9H3EkH3ZLAQdpmpXMgwk= +github.com/alibabacloud-go/tea-utils v1.3.1/go.mod h1:EI/o33aBfj3hETm4RLiAxF/ThQdSngxrpF8rKUDJjPE= +github.com/alibabacloud-go/tea-utils/v2 v2.0.5/go.mod h1:dL6vbUT35E4F4bFTHL845eUloqaerYBYPsdWR2/jhe4= +github.com/alibabacloud-go/tea-utils/v2 v2.0.6 h1:ZkmUlhlQbaDC+Eba/GARMPy6hKdCLiSke5RsN5LcyQ0= +github.com/alibabacloud-go/tea-utils/v2 v2.0.6/go.mod h1:qxn986l+q33J5VkialKMqT/TTs3E+U9MJpd001iWQ9I= +github.com/alibabacloud-go/tea-xml v1.1.3 h1:7LYnm+JbOq2B+T/B0fHC4Ies4/FofC4zHzYtqw7dgt0= +github.com/alibabacloud-go/tea-xml v1.1.3/go.mod h1:Rq08vgCcCAjHyRi/M7xlHKUykZCEtyBy9+DPF6GgEu8= +github.com/aliyun/alibaba-cloud-sdk-go v1.62.676 h1:ChWMMr76tXrRh3ximWQyg83EROEfkkXQGkrhnzDCpr8= +github.com/aliyun/alibaba-cloud-sdk-go v1.62.676/go.mod h1:CJJYa1ZMxjlN/NbXEwmejEnBkhi0DV+Yb3B2lxf+74o= github.com/aliyun/aliyun-oss-go-sdk v3.0.1+incompatible h1:so4m5rRA32Tc5GgKg/5gKUu0CRsYmVO3ThMP6T3CwLc= github.com/aliyun/aliyun-oss-go-sdk v3.0.1+incompatible/go.mod h1:T/Aws4fEfogEE9v+HPhhw+CntffsBHJ8nXQCwKr0/g8= github.com/aliyun/credentials-go v1.1.2/go.mod h1:ozcZaMR5kLM7pwtCMEpVmQ242suV6qTJya2bDq4X1Tw= -github.com/aliyun/credentials-go v1.2.7 h1:gLtFylxLZ1TWi1pStIt1O6a53GFU1zkNwjtJir2B4ow= -github.com/aliyun/credentials-go v1.2.7/go.mod h1:/KowD1cfGSLrLsH28Jr8W+xwoId0ywIy5lNzDz6O1vw= -github.com/baiyubin/aliyun-sts-go-sdk v0.0.0-20180326062324-cfa1a18b161f/go.mod h1:AuiFmCCPBSrqvVMvuqFuk0qogytodnVFVSN5CeJB8Gc= +github.com/aliyun/credentials-go v1.3.1/go.mod h1:8jKYhQuDawt8x2+fusqa1Y6mPxemTsBEN04dgcAcYz0= +github.com/aliyun/credentials-go v1.3.2 h1:L4WppI9rctC8PdlMgyTkF8bBsy9pyKQEzBD1bHMRl+g= +github.com/aliyun/credentials-go v1.3.2/go.mod h1:tlpz4uys4Rn7Ik4/piGRrTbXy2uLKvePgQJJduE+Y5c= github.com/bmatcuk/doublestar v1.3.4 h1:gPypJ5xD31uhX6Tf54sDPUOBXTqKH4c9aPY66CyQrS0= github.com/bmatcuk/doublestar v1.3.4/go.mod h1:wiQtGV+rzVYxB7WIlirSN++5HPtPlXEo9MEoZQC/PmE= +github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU= github.com/charlievieth/fs v0.0.3 h1:3lZQXTj4PbE81CVPwALSn+JoyCNXkZgORHN6h2XHGlg= github.com/charlievieth/fs v0.0.3/go.mod h1:hD4sRzto1Hw8zCua76tNVKZxaeZZr1RiKftjAJQRLLo= +github.com/clbanning/mxj/v2 v2.5.5 h1:oT81vUeEiQQ/DcHbzSytRngP6Ky9O+L+0Bw0zSJag9E= +github.com/clbanning/mxj/v2 v2.5.5/go.mod h1:hNiWqW14h+kc+MdF9C6/YoRfjEJoR3ou6tn/Qo+ve2s= +github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw= github.com/cloudfoundry/bosh-utils v0.0.407 h1:GsKZjxCq4vzjPQBx4haO/8JV+O8KmX6thDRQ39TAbK8= github.com/cloudfoundry/bosh-utils v0.0.407/go.mod h1:U5ZsmNWz328FggoJgU0qfK0SUk6XhIpzkdhwe6OMVYE= +github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc= github.com/cppforlife/bosh-cpi-go v0.0.0-20180718174221-526823bbeafd h1:ln2sMwDnV0S8UT4F7fLC4ySd1XaiUMHjZe8fiCd0Xv4= github.com/cppforlife/bosh-cpi-go v0.0.0-20180718174221-526823bbeafd/go.mod h1:WkeM0jfnGyGPPqo7JoBL8pwutlzeKgGElbkIV9ieSlU= +github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= +github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98= +github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= +github.com/fogleman/gg v1.2.1-0.20190220221249-0403632d5b90/go.mod h1:R/bRT+9gY/C5z7JzPU0zXsXHKM4/ayA+zqcVNZzPa1k= +github.com/go-gl/glfw v0.0.0-20190409004039-e6da0acd62b1/go.mod h1:vR7hzQXu2zJy9AVAgeJqvqgH9Q5CA+iKCZ2gyEVpxRU= github.com/go-logr/logr v1.2.4 h1:g01GSCwiDw2xSZfjJ2/T9M+S6pFdcNtFYsp+Y43HYDQ= +github.com/go-logr/logr v1.2.4/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 h1:tfuBGBXKqDEevZMzYi5KSi8KkcZtzBcTgAUUtapy0OI= +github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572/go.mod h1:9Pwr4B2jHnOSGXyyzV8ROjYa2ojvAY6HCGYYfMoC3Ls= github.com/goji/httpauth v0.0.0-20160601135302-2da839ab0f4d/go.mod h1:nnjvkQ9ptGaCkuDUx6wNykzzlUixGxvkme+H/lnzb+A= +github.com/golang/freetype v0.0.0-20170609003504-e2365dfdc4a0/go.mod h1:E/TSTwGwJL78qG/PmXZO1EjYhfJinVAhrmmHX6Z8B9k= +github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= +github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw= +github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= +github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= +github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= +github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= +github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= +github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= +github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= +github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M= +github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= +github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg= github.com/google/pprof v0.0.0-20230926050212-f7f687d19a98 h1:pUa4ghanp6q4IJHwE9RwLgmVFfReJN+KbQ8ExNEUUoQ= +github.com/google/pprof v0.0.0-20230926050212-f7f687d19a98/go.mod h1:czg5+yv1E0ZGTi6S6vVK1mke0fV+FaUhNGcd6VRS9Ik= github.com/google/uuid v1.4.0 h1:MtMxsa51/r9yyhkyLsVeVt0B+BGQZzpQiTQ4eHZ8bc4= github.com/google/uuid v1.4.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY= @@ -56,10 +97,11 @@ github.com/json-iterator/go v1.1.10/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/ github.com/json-iterator/go v1.1.12 h1:PV8peI4a0ysnczrg+LtxykD8LfKY9ML6u2jnxaEnrnM= github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHmT4TnhNGBo= github.com/jtolds/gls v4.20.0+incompatible/go.mod h1:QJZ7F/aHp+rZTRtaJ1ow/lLfFfVYBRgL+9YlvaHOwJU= -github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= +github.com/jung-kurt/gofpdf v1.0.3-0.20190309125859-24315acbbda5/go.mod h1:7Id9E/uU8ce6rXgefFLlgrJj/GYY22cpxn+r32jIOes= github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg= github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q= @@ -70,55 +112,103 @@ github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjY github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/nu7hatch/gouuid v0.0.0-20131221200532-179d4d0c4d8d h1:VhgPp6v9qf9Agr/56bj7Y/xa04UccTW04VP0Qed4vnQ= +github.com/nu7hatch/gouuid v0.0.0-20131221200532-179d4d0c4d8d/go.mod h1:YUTz3bUH2ZwIWBy3CJBeOBEugqcmXREj14T+iG/4k4U= github.com/onsi/ginkgo v1.2.0 h1:PpLjPPi/pzx5+cUQ5bMEOa+Dd10mtqsg67lj9lQlqMA= github.com/onsi/ginkgo v1.2.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo/v2 v2.13.0 h1:0jY9lJquiL8fcf3M4LAXN5aMlS/b2BV86HFFPCPMgE4= +github.com/onsi/ginkgo/v2 v2.13.0/go.mod h1:TE309ZR8s5FsKKpuB1YAQYBzCaAfUgatB/xlT/ETL/o= github.com/onsi/gomega v1.27.10 h1:naR28SdDFlqrG6kScpT8VWpu1xWY5nJRCF3XaYyBjhI= github.com/onsi/gomega v1.27.10/go.mod h1:RsS8tutOdbdgzbPtzzATp12yT7kM5I5aElG3evPbQ0M= +github.com/opentracing/opentracing-go v1.2.1-0.20220228012449-10b1cf09e00b h1:FfH+VrHHk6Lxt9HdVS0PXzSXFyS2NbZKXv33FYPol0A= +github.com/opentracing/opentracing-go v1.2.1-0.20220228012449-10b1cf09e00b/go.mod h1:AC62GU6hc0BrNm+9RK9VSiwa/EUe1bkIeFORAMcHvJU= +github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= +github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0= +github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA= github.com/smartystreets/assertions v0.0.0-20180927180507-b2de0cb4f26d/go.mod h1:OnSkiWE9lh6wB0YB77sQom3nweQdgAjqCqsofrRNTgc= github.com/smartystreets/assertions v1.1.0/go.mod h1:tcbTF8ujkAEcZ8TElKY+i30BzYlVhC/LOxJk7iOWnoo= -github.com/smartystreets/goconvey v0.0.0-20190330032615-68dc04aab96a/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= github.com/smartystreets/goconvey v1.6.4/go.mod h1:syvi0/a8iFYH4r/RixwvyeAJjdLS9QV7WQ/tjFTllLA= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= +github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= +github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/tjfoc/gmsm v1.3.2/go.mod h1:HaUcFuY0auTiaHB9MHFGCPx5IaLhTUd2atbCFBQXn9w= +github.com/tjfoc/gmsm v1.4.1 h1:aMe1GlZb+0bLjn+cKTPEvvn9oUEBlJitaZiiBwsbgho= +github.com/tjfoc/gmsm v1.4.1/go.mod h1:j4INPkHWMrhJb38G+J6W4Tw0AbuN8Thu3PbdVYhVcTE= +github.com/uber/jaeger-client-go v2.30.0+incompatible h1:D6wyKGCecFaSRUpo8lCVbaOOb6ThwMmTEbhRwtKR97o= +github.com/uber/jaeger-client-go v2.30.0+incompatible/go.mod h1:WVhlPFC8FDjOFMMWRy2pZqQJSXxYSwNYOkTr/Z6d3Kk= +github.com/uber/jaeger-lib v2.4.1+incompatible h1:td4jdvLcExb4cBISKIpHuGoVXh+dVKhn2Um6rjCsSsg= +github.com/uber/jaeger-lib v2.4.1+incompatible/go.mod h1:ComeNDZlWwrWnDv8aPp0Ba6+uUTzImX/AauajbLI56U= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.30/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= +go.uber.org/atomic v1.9.0 h1:ECmE8Bn/WFTYwEW/bpKD3M8VtR/zQVbavAoalC1PYyE= +go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20190510104115-cbcb75029529/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20191219195013-becbf705a915/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20200510223506-06a226fb4e37/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/crypto v0.0.0-20201012173705-84dcc777aaee/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.10.0/go.mod h1:o4eNf7Ede1fv+hwOwZsTHl9EsPFO6q6ZvYR8vYfY45I= +golang.org/x/crypto v0.14.0/go.mod h1:MVFd36DqK4CsrnJYDkBA3VC4m2GkXAM0PvzMCn4JQf4= +golang.org/x/crypto v0.18.0/go.mod h1:R0j02AL6hcrfOiy9T4ZYp/rcWeMxM3L6QYxlOuEG1mg= +golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190125153040-c74c464bbbf2/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= +golang.org/x/exp v0.0.0-20191030013958-a1ab85dbe136/go.mod h1:JXzH8nQsPlswgeRAPE3MuO9GYsAcnJvJ4vnMwN/5qkY= +golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs= +golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js= +golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0= +golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE= +golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU= +golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc= +golang.org/x/mobile v0.0.0-20190719004257-d2bd2a29d028/go.mod h1:E/iHnbuqvinMTCcRqshq8CkpyQDoeVncDDYHnLhea+o= +golang.org/x/mod v0.1.0/go.mod h1:0QHyrYULN0/3qlju5TqG8bIK38QM8yzMo5ekMj3DlcY= golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200506145744-7e3656a0809f/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20201010224723-4f7140c49acb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= +golang.org/x/net v0.7.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg= golang.org/x/net v0.11.0/go.mod h1:2L/ixqYpgIVXmeoSA/4Lu7BzTG4KIyPIryS4IsOd1oQ= -golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= +golang.org/x/net v0.20.0 h1:aCL9BSgETF1k+blQaYUBx9hJ9LOGP3gAVemcZlf1Kpo= +golang.org/x/net v0.20.0/go.mod h1:z8BVo6PvndSri0LbOE3hAn0apkU+1YvI6E70E9jsnvY= +golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= +golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190312061237-fead79001313/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200509044756-6aff5f38e54f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= @@ -126,12 +216,16 @@ golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.9.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE= +golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.16.0 h1:xWw16ngr6ZMtmxDyKyIgsE93KNKz5HKmMa3b8ALHidU= +golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo= golang.org/x/term v0.9.0/go.mod h1:M6DEAAIenWoTxdKrOltXcmDY3rSplQUkrvaDU5FcQyo= +golang.org/x/term v0.13.0/go.mod h1:LTmsnFJwVN6bCy1rVCoS+qHT1HhALEFxKncY3WNNh4U= +golang.org/x/term v0.16.0/go.mod h1:yn7UURbUtPyrVJPGPq404EukNFxcm/foM+bV/bfcDsY= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= @@ -139,30 +233,62 @@ golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= golang.org/x/text v0.10.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= -golang.org/x/text v0.13.0 h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k= golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= +golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= +golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4 h1:SvFZT6jyqRaOeXpc5h/JSfZenJ2O330aBsf7JfSUXmQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= +golang.org/x/tools v0.0.0-20180525024113-a5b4c53f6e8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190206041539-40960b6deb8e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY= +golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= golang.org/x/tools v0.0.0-20190328211700-ab21143f2384/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs= +golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q= +golang.org/x/tools v0.0.0-20191012152004-8de300cfc20a/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= golang.org/x/tools v0.0.0-20200509030707-2212a7e161a5/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE= golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= golang.org/x/tools v0.14.0 h1:jvNa2pY0M4r62jkRQ6RwEZZyPcymeL9XZMLBbV7U2nc= +golang.org/x/tools v0.14.0/go.mod h1:uYBEerGOWcJyEORxN+Ek8+TT266gXkNlHdJBwexUsBg= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gonum.org/v1/gonum v0.0.0-20180816165407-929014505bf4/go.mod h1:Y+Yx5eoAFn32cQvJDxZx5Dpnq+c3wtXuadVZAcxbbBo= +gonum.org/v1/gonum v0.8.2/go.mod h1:oe/vMfY3deqTw+1EZJhuvEW2iwGF1bW9wwu7XCu0+v0= +gonum.org/v1/netlib v0.0.0-20190313105609-8cb42192e0e0/go.mod h1:wa6Ws7BG/ESfp6dHfk7C6KdzKA7wR7u/rKwOGE66zvw= +gonum.org/v1/plot v0.0.0-20190515093506-e2840ee46a6b/go.mod h1:Wt8AAjI+ypCyYX3nZBvf6cAIx93T+c/OS2HFAYskSZc= +google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= +google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc= +google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc= +google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c= +google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg= +google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY= +google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak= +google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= +google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= +google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= +google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= +google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= +google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= google.golang.org/protobuf v1.28.0 h1:w43yiav+6bVFTBQFZX0r7ipe9JQ1QsbMgHwbBziscLw= +google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f h1:BLraFXnmrev5lT+xlilqcH8XK9/i0At2xKjWk4p6zsU= gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/ini.v1 v1.42.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/ini.v1 v1.56.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/ini.v1 v1.66.2 h1:XfR1dOYubytKy4Shzc2LHrrGhU0lDCfDGG1yLPmpgsI= gopkg.in/ini.v1 v1.66.2/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k= gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.0/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4= +rsc.io/pdf v0.1.1/go.mod h1:n8OzWcQ6Sp37PL01nO98y4iUCRdTGarVfzxY20ICaU4= diff --git a/src/bosh-alicloud-cpi/vendor/github.com/alibabacloud-go/tea-utils/LICENSE b/src/bosh-alicloud-cpi/vendor/github.com/alibabacloud-go/alibabacloud-gateway-spi/LICENSE similarity index 100% rename from src/bosh-alicloud-cpi/vendor/github.com/alibabacloud-go/tea-utils/LICENSE rename to src/bosh-alicloud-cpi/vendor/github.com/alibabacloud-go/alibabacloud-gateway-spi/LICENSE diff --git a/src/bosh-alicloud-cpi/vendor/github.com/alibabacloud-go/alibabacloud-gateway-spi/client/client.go b/src/bosh-alicloud-cpi/vendor/github.com/alibabacloud-go/alibabacloud-gateway-spi/client/client.go new file mode 100644 index 00000000..1d47c93a --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/alibabacloud-go/alibabacloud-gateway-spi/client/client.go @@ -0,0 +1,305 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "io" + + "github.com/alibabacloud-go/tea/tea" + credential "github.com/aliyun/credentials-go/credentials" +) + +type InterceptorContext struct { + Request *InterceptorContextRequest `json:"request,omitempty" xml:"request,omitempty" require:"true" type:"Struct"` + Configuration *InterceptorContextConfiguration `json:"configuration,omitempty" xml:"configuration,omitempty" require:"true" type:"Struct"` + Response *InterceptorContextResponse `json:"response,omitempty" xml:"response,omitempty" require:"true" type:"Struct"` +} + +func (s InterceptorContext) String() string { + return tea.Prettify(s) +} + +func (s InterceptorContext) GoString() string { + return s.String() +} + +func (s *InterceptorContext) SetRequest(v *InterceptorContextRequest) *InterceptorContext { + s.Request = v + return s +} + +func (s *InterceptorContext) SetConfiguration(v *InterceptorContextConfiguration) *InterceptorContext { + s.Configuration = v + return s +} + +func (s *InterceptorContext) SetResponse(v *InterceptorContextResponse) *InterceptorContext { + s.Response = v + return s +} + +type InterceptorContextRequest struct { + Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` + Query map[string]*string `json:"query,omitempty" xml:"query,omitempty"` + Body interface{} `json:"body,omitempty" xml:"body,omitempty"` + Stream io.Reader `json:"stream,omitempty" xml:"stream,omitempty"` + HostMap map[string]*string `json:"hostMap,omitempty" xml:"hostMap,omitempty"` + Pathname *string `json:"pathname,omitempty" xml:"pathname,omitempty" require:"true"` + ProductId *string `json:"productId,omitempty" xml:"productId,omitempty" require:"true"` + Action *string `json:"action,omitempty" xml:"action,omitempty" require:"true"` + Version *string `json:"version,omitempty" xml:"version,omitempty" require:"true"` + Protocol *string `json:"protocol,omitempty" xml:"protocol,omitempty" require:"true"` + Method *string `json:"method,omitempty" xml:"method,omitempty" require:"true"` + AuthType *string `json:"authType,omitempty" xml:"authType,omitempty" require:"true"` + BodyType *string `json:"bodyType,omitempty" xml:"bodyType,omitempty" require:"true"` + ReqBodyType *string `json:"reqBodyType,omitempty" xml:"reqBodyType,omitempty" require:"true"` + Style *string `json:"style,omitempty" xml:"style,omitempty"` + Credential credential.Credential `json:"credential,omitempty" xml:"credential,omitempty" require:"true"` + SignatureVersion *string `json:"signatureVersion,omitempty" xml:"signatureVersion,omitempty"` + SignatureAlgorithm *string `json:"signatureAlgorithm,omitempty" xml:"signatureAlgorithm,omitempty"` + UserAgent *string `json:"userAgent,omitempty" xml:"userAgent,omitempty" require:"true"` +} + +func (s InterceptorContextRequest) String() string { + return tea.Prettify(s) +} + +func (s InterceptorContextRequest) GoString() string { + return s.String() +} + +func (s *InterceptorContextRequest) SetHeaders(v map[string]*string) *InterceptorContextRequest { + s.Headers = v + return s +} + +func (s *InterceptorContextRequest) SetQuery(v map[string]*string) *InterceptorContextRequest { + s.Query = v + return s +} + +func (s *InterceptorContextRequest) SetBody(v interface{}) *InterceptorContextRequest { + s.Body = v + return s +} + +func (s *InterceptorContextRequest) SetStream(v io.Reader) *InterceptorContextRequest { + s.Stream = v + return s +} + +func (s *InterceptorContextRequest) SetHostMap(v map[string]*string) *InterceptorContextRequest { + s.HostMap = v + return s +} + +func (s *InterceptorContextRequest) SetPathname(v string) *InterceptorContextRequest { + s.Pathname = &v + return s +} + +func (s *InterceptorContextRequest) SetProductId(v string) *InterceptorContextRequest { + s.ProductId = &v + return s +} + +func (s *InterceptorContextRequest) SetAction(v string) *InterceptorContextRequest { + s.Action = &v + return s +} + +func (s *InterceptorContextRequest) SetVersion(v string) *InterceptorContextRequest { + s.Version = &v + return s +} + +func (s *InterceptorContextRequest) SetProtocol(v string) *InterceptorContextRequest { + s.Protocol = &v + return s +} + +func (s *InterceptorContextRequest) SetMethod(v string) *InterceptorContextRequest { + s.Method = &v + return s +} + +func (s *InterceptorContextRequest) SetAuthType(v string) *InterceptorContextRequest { + s.AuthType = &v + return s +} + +func (s *InterceptorContextRequest) SetBodyType(v string) *InterceptorContextRequest { + s.BodyType = &v + return s +} + +func (s *InterceptorContextRequest) SetReqBodyType(v string) *InterceptorContextRequest { + s.ReqBodyType = &v + return s +} + +func (s *InterceptorContextRequest) SetStyle(v string) *InterceptorContextRequest { + s.Style = &v + return s +} + +func (s *InterceptorContextRequest) SetCredential(v credential.Credential) *InterceptorContextRequest { + s.Credential = v + return s +} + +func (s *InterceptorContextRequest) SetSignatureVersion(v string) *InterceptorContextRequest { + s.SignatureVersion = &v + return s +} + +func (s *InterceptorContextRequest) SetSignatureAlgorithm(v string) *InterceptorContextRequest { + s.SignatureAlgorithm = &v + return s +} + +func (s *InterceptorContextRequest) SetUserAgent(v string) *InterceptorContextRequest { + s.UserAgent = &v + return s +} + +type InterceptorContextConfiguration struct { + RegionId *string `json:"regionId,omitempty" xml:"regionId,omitempty" require:"true"` + Endpoint *string `json:"endpoint,omitempty" xml:"endpoint,omitempty"` + EndpointRule *string `json:"endpointRule,omitempty" xml:"endpointRule,omitempty"` + EndpointMap map[string]*string `json:"endpointMap,omitempty" xml:"endpointMap,omitempty"` + EndpointType *string `json:"endpointType,omitempty" xml:"endpointType,omitempty"` + Network *string `json:"network,omitempty" xml:"network,omitempty"` + Suffix *string `json:"suffix,omitempty" xml:"suffix,omitempty"` +} + +func (s InterceptorContextConfiguration) String() string { + return tea.Prettify(s) +} + +func (s InterceptorContextConfiguration) GoString() string { + return s.String() +} + +func (s *InterceptorContextConfiguration) SetRegionId(v string) *InterceptorContextConfiguration { + s.RegionId = &v + return s +} + +func (s *InterceptorContextConfiguration) SetEndpoint(v string) *InterceptorContextConfiguration { + s.Endpoint = &v + return s +} + +func (s *InterceptorContextConfiguration) SetEndpointRule(v string) *InterceptorContextConfiguration { + s.EndpointRule = &v + return s +} + +func (s *InterceptorContextConfiguration) SetEndpointMap(v map[string]*string) *InterceptorContextConfiguration { + s.EndpointMap = v + return s +} + +func (s *InterceptorContextConfiguration) SetEndpointType(v string) *InterceptorContextConfiguration { + s.EndpointType = &v + return s +} + +func (s *InterceptorContextConfiguration) SetNetwork(v string) *InterceptorContextConfiguration { + s.Network = &v + return s +} + +func (s *InterceptorContextConfiguration) SetSuffix(v string) *InterceptorContextConfiguration { + s.Suffix = &v + return s +} + +type InterceptorContextResponse struct { + StatusCode *int `json:"statusCode,omitempty" xml:"statusCode,omitempty"` + Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` + Body io.Reader `json:"body,omitempty" xml:"body,omitempty"` + DeserializedBody interface{} `json:"deserializedBody,omitempty" xml:"deserializedBody,omitempty"` +} + +func (s InterceptorContextResponse) String() string { + return tea.Prettify(s) +} + +func (s InterceptorContextResponse) GoString() string { + return s.String() +} + +func (s *InterceptorContextResponse) SetStatusCode(v int) *InterceptorContextResponse { + s.StatusCode = &v + return s +} + +func (s *InterceptorContextResponse) SetHeaders(v map[string]*string) *InterceptorContextResponse { + s.Headers = v + return s +} + +func (s *InterceptorContextResponse) SetBody(v io.Reader) *InterceptorContextResponse { + s.Body = v + return s +} + +func (s *InterceptorContextResponse) SetDeserializedBody(v interface{}) *InterceptorContextResponse { + s.DeserializedBody = v + return s +} + +type AttributeMap struct { + Attributes map[string]interface{} `json:"attributes,omitempty" xml:"attributes,omitempty" require:"true"` + Key map[string]*string `json:"key,omitempty" xml:"key,omitempty" require:"true"` +} + +func (s AttributeMap) String() string { + return tea.Prettify(s) +} + +func (s AttributeMap) GoString() string { + return s.String() +} + +func (s *AttributeMap) SetAttributes(v map[string]interface{}) *AttributeMap { + s.Attributes = v + return s +} + +func (s *AttributeMap) SetKey(v map[string]*string) *AttributeMap { + s.Key = v + return s +} + +type ClientInterface interface { + ModifyConfiguration(context *InterceptorContext, attributeMap *AttributeMap) error + ModifyRequest(context *InterceptorContext, attributeMap *AttributeMap) error + ModifyResponse(context *InterceptorContext, attributeMap *AttributeMap) error +} + +type Client struct { +} + +func NewClient() (*Client, error) { + client := new(Client) + err := client.Init() + return client, err +} + +func (client *Client) Init() (_err error) { + return nil +} + +func (client *Client) ModifyConfiguration(context *InterceptorContext, attributeMap *AttributeMap) (_err error) { + panic("No Support!") +} + +func (client *Client) ModifyRequest(context *InterceptorContext, attributeMap *AttributeMap) (_err error) { + panic("No Support!") +} + +func (client *Client) ModifyResponse(context *InterceptorContext, attributeMap *AttributeMap) (_err error) { + panic("No Support!") +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/alibabacloud-go/darabonba-openapi/v2/LICENSE b/src/bosh-alicloud-cpi/vendor/github.com/alibabacloud-go/darabonba-openapi/v2/LICENSE new file mode 100644 index 00000000..0c44dcef --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/alibabacloud-go/darabonba-openapi/v2/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright (c) 2009-present, Alibaba Cloud All rights reserved. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/src/bosh-alicloud-cpi/vendor/github.com/alibabacloud-go/darabonba-openapi/v2/client/client.go b/src/bosh-alicloud-cpi/vendor/github.com/alibabacloud-go/darabonba-openapi/v2/client/client.go new file mode 100644 index 00000000..43bcb50d --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/alibabacloud-go/darabonba-openapi/v2/client/client.go @@ -0,0 +1,2172 @@ +// This file is auto-generated, don't edit it. Thanks. +// Description: +// +// This is for OpenApi SDK +package client + +import ( + "io" + + spi "github.com/alibabacloud-go/alibabacloud-gateway-spi/client" + openapiutil "github.com/alibabacloud-go/openapi-util/service" + util "github.com/alibabacloud-go/tea-utils/v2/service" + xml "github.com/alibabacloud-go/tea-xml/service" + "github.com/alibabacloud-go/tea/tea" + credential "github.com/aliyun/credentials-go/credentials" +) + +type GlobalParameters struct { + Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` + Queries map[string]*string `json:"queries,omitempty" xml:"queries,omitempty"` +} + +func (s GlobalParameters) String() string { + return tea.Prettify(s) +} + +func (s GlobalParameters) GoString() string { + return s.String() +} + +func (s *GlobalParameters) SetHeaders(v map[string]*string) *GlobalParameters { + s.Headers = v + return s +} + +func (s *GlobalParameters) SetQueries(v map[string]*string) *GlobalParameters { + s.Queries = v + return s +} + +// Description: +// +// Model for initing client +type Config struct { + // accesskey id + AccessKeyId *string `json:"accessKeyId,omitempty" xml:"accessKeyId,omitempty"` + // accesskey secret + AccessKeySecret *string `json:"accessKeySecret,omitempty" xml:"accessKeySecret,omitempty"` + // security token + // + // example: + // + // a.txt + SecurityToken *string `json:"securityToken,omitempty" xml:"securityToken,omitempty"` + // bearer token + // + // example: + // + // the-bearer-token + BearerToken *string `json:"bearerToken,omitempty" xml:"bearerToken,omitempty"` + // http protocol + // + // example: + // + // http + Protocol *string `json:"protocol,omitempty" xml:"protocol,omitempty"` + // http method + // + // example: + // + // GET + Method *string `json:"method,omitempty" xml:"method,omitempty"` + // region id + // + // example: + // + // cn-hangzhou + RegionId *string `json:"regionId,omitempty" xml:"regionId,omitempty"` + // read timeout + // + // example: + // + // 10 + ReadTimeout *int `json:"readTimeout,omitempty" xml:"readTimeout,omitempty"` + // connect timeout + // + // example: + // + // 10 + ConnectTimeout *int `json:"connectTimeout,omitempty" xml:"connectTimeout,omitempty"` + // http proxy + // + // example: + // + // http://localhost + HttpProxy *string `json:"httpProxy,omitempty" xml:"httpProxy,omitempty"` + // https proxy + // + // example: + // + // https://localhost + HttpsProxy *string `json:"httpsProxy,omitempty" xml:"httpsProxy,omitempty"` + // credential + Credential credential.Credential `json:"credential,omitempty" xml:"credential,omitempty"` + // endpoint + // + // example: + // + // cs.aliyuncs.com + Endpoint *string `json:"endpoint,omitempty" xml:"endpoint,omitempty"` + // proxy white list + // + // example: + // + // http://localhost + NoProxy *string `json:"noProxy,omitempty" xml:"noProxy,omitempty"` + // max idle conns + // + // example: + // + // 3 + MaxIdleConns *int `json:"maxIdleConns,omitempty" xml:"maxIdleConns,omitempty"` + // network for endpoint + // + // example: + // + // public + Network *string `json:"network,omitempty" xml:"network,omitempty"` + // user agent + // + // example: + // + // Alibabacloud/1 + UserAgent *string `json:"userAgent,omitempty" xml:"userAgent,omitempty"` + // suffix for endpoint + // + // example: + // + // aliyun + Suffix *string `json:"suffix,omitempty" xml:"suffix,omitempty"` + // socks5 proxy + Socks5Proxy *string `json:"socks5Proxy,omitempty" xml:"socks5Proxy,omitempty"` + // socks5 network + // + // example: + // + // TCP + Socks5NetWork *string `json:"socks5NetWork,omitempty" xml:"socks5NetWork,omitempty"` + // endpoint type + // + // example: + // + // internal + EndpointType *string `json:"endpointType,omitempty" xml:"endpointType,omitempty"` + // OpenPlatform endpoint + // + // example: + // + // openplatform.aliyuncs.com + OpenPlatformEndpoint *string `json:"openPlatformEndpoint,omitempty" xml:"openPlatformEndpoint,omitempty"` + // Deprecated + // + // credential type + // + // example: + // + // access_key + Type *string `json:"type,omitempty" xml:"type,omitempty"` + // Signature Version + // + // example: + // + // v1 + SignatureVersion *string `json:"signatureVersion,omitempty" xml:"signatureVersion,omitempty"` + // Signature Algorithm + // + // example: + // + // ACS3-HMAC-SHA256 + SignatureAlgorithm *string `json:"signatureAlgorithm,omitempty" xml:"signatureAlgorithm,omitempty"` + // Global Parameters + GlobalParameters *GlobalParameters `json:"globalParameters,omitempty" xml:"globalParameters,omitempty"` + // privite key for client certificate + // + // example: + // + // MIIEvQ + Key *string `json:"key,omitempty" xml:"key,omitempty"` + // client certificate + // + // example: + // + // -----BEGIN CERTIFICATE----- + // + // xxx-----END CERTIFICATE----- + Cert *string `json:"cert,omitempty" xml:"cert,omitempty"` + // server certificate + // + // example: + // + // -----BEGIN CERTIFICATE----- + // + // xxx-----END CERTIFICATE----- + Ca *string `json:"ca,omitempty" xml:"ca,omitempty"` + // disable HTTP/2 + // + // example: + // + // false + DisableHttp2 *bool `json:"disableHttp2,omitempty" xml:"disableHttp2,omitempty"` +} + +func (s Config) String() string { + return tea.Prettify(s) +} + +func (s Config) GoString() string { + return s.String() +} + +func (s *Config) SetAccessKeyId(v string) *Config { + s.AccessKeyId = &v + return s +} + +func (s *Config) SetAccessKeySecret(v string) *Config { + s.AccessKeySecret = &v + return s +} + +func (s *Config) SetSecurityToken(v string) *Config { + s.SecurityToken = &v + return s +} + +func (s *Config) SetBearerToken(v string) *Config { + s.BearerToken = &v + return s +} + +func (s *Config) SetProtocol(v string) *Config { + s.Protocol = &v + return s +} + +func (s *Config) SetMethod(v string) *Config { + s.Method = &v + return s +} + +func (s *Config) SetRegionId(v string) *Config { + s.RegionId = &v + return s +} + +func (s *Config) SetReadTimeout(v int) *Config { + s.ReadTimeout = &v + return s +} + +func (s *Config) SetConnectTimeout(v int) *Config { + s.ConnectTimeout = &v + return s +} + +func (s *Config) SetHttpProxy(v string) *Config { + s.HttpProxy = &v + return s +} + +func (s *Config) SetHttpsProxy(v string) *Config { + s.HttpsProxy = &v + return s +} + +func (s *Config) SetCredential(v credential.Credential) *Config { + s.Credential = v + return s +} + +func (s *Config) SetEndpoint(v string) *Config { + s.Endpoint = &v + return s +} + +func (s *Config) SetNoProxy(v string) *Config { + s.NoProxy = &v + return s +} + +func (s *Config) SetMaxIdleConns(v int) *Config { + s.MaxIdleConns = &v + return s +} + +func (s *Config) SetNetwork(v string) *Config { + s.Network = &v + return s +} + +func (s *Config) SetUserAgent(v string) *Config { + s.UserAgent = &v + return s +} + +func (s *Config) SetSuffix(v string) *Config { + s.Suffix = &v + return s +} + +func (s *Config) SetSocks5Proxy(v string) *Config { + s.Socks5Proxy = &v + return s +} + +func (s *Config) SetSocks5NetWork(v string) *Config { + s.Socks5NetWork = &v + return s +} + +func (s *Config) SetEndpointType(v string) *Config { + s.EndpointType = &v + return s +} + +func (s *Config) SetOpenPlatformEndpoint(v string) *Config { + s.OpenPlatformEndpoint = &v + return s +} + +func (s *Config) SetType(v string) *Config { + s.Type = &v + return s +} + +func (s *Config) SetSignatureVersion(v string) *Config { + s.SignatureVersion = &v + return s +} + +func (s *Config) SetSignatureAlgorithm(v string) *Config { + s.SignatureAlgorithm = &v + return s +} + +func (s *Config) SetGlobalParameters(v *GlobalParameters) *Config { + s.GlobalParameters = v + return s +} + +func (s *Config) SetKey(v string) *Config { + s.Key = &v + return s +} + +func (s *Config) SetCert(v string) *Config { + s.Cert = &v + return s +} + +func (s *Config) SetCa(v string) *Config { + s.Ca = &v + return s +} + +func (s *Config) SetDisableHttp2(v bool) *Config { + s.DisableHttp2 = &v + return s +} + +type OpenApiRequest struct { + Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` + Query map[string]*string `json:"query,omitempty" xml:"query,omitempty"` + Body interface{} `json:"body,omitempty" xml:"body,omitempty"` + Stream io.Reader `json:"stream,omitempty" xml:"stream,omitempty"` + HostMap map[string]*string `json:"hostMap,omitempty" xml:"hostMap,omitempty"` + EndpointOverride *string `json:"endpointOverride,omitempty" xml:"endpointOverride,omitempty"` +} + +func (s OpenApiRequest) String() string { + return tea.Prettify(s) +} + +func (s OpenApiRequest) GoString() string { + return s.String() +} + +func (s *OpenApiRequest) SetHeaders(v map[string]*string) *OpenApiRequest { + s.Headers = v + return s +} + +func (s *OpenApiRequest) SetQuery(v map[string]*string) *OpenApiRequest { + s.Query = v + return s +} + +func (s *OpenApiRequest) SetBody(v interface{}) *OpenApiRequest { + s.Body = v + return s +} + +func (s *OpenApiRequest) SetStream(v io.Reader) *OpenApiRequest { + s.Stream = v + return s +} + +func (s *OpenApiRequest) SetHostMap(v map[string]*string) *OpenApiRequest { + s.HostMap = v + return s +} + +func (s *OpenApiRequest) SetEndpointOverride(v string) *OpenApiRequest { + s.EndpointOverride = &v + return s +} + +type Params struct { + Action *string `json:"action,omitempty" xml:"action,omitempty" require:"true"` + Version *string `json:"version,omitempty" xml:"version,omitempty" require:"true"` + Protocol *string `json:"protocol,omitempty" xml:"protocol,omitempty" require:"true"` + Pathname *string `json:"pathname,omitempty" xml:"pathname,omitempty" require:"true"` + Method *string `json:"method,omitempty" xml:"method,omitempty" require:"true"` + AuthType *string `json:"authType,omitempty" xml:"authType,omitempty" require:"true"` + BodyType *string `json:"bodyType,omitempty" xml:"bodyType,omitempty" require:"true"` + ReqBodyType *string `json:"reqBodyType,omitempty" xml:"reqBodyType,omitempty" require:"true"` + Style *string `json:"style,omitempty" xml:"style,omitempty"` +} + +func (s Params) String() string { + return tea.Prettify(s) +} + +func (s Params) GoString() string { + return s.String() +} + +func (s *Params) SetAction(v string) *Params { + s.Action = &v + return s +} + +func (s *Params) SetVersion(v string) *Params { + s.Version = &v + return s +} + +func (s *Params) SetProtocol(v string) *Params { + s.Protocol = &v + return s +} + +func (s *Params) SetPathname(v string) *Params { + s.Pathname = &v + return s +} + +func (s *Params) SetMethod(v string) *Params { + s.Method = &v + return s +} + +func (s *Params) SetAuthType(v string) *Params { + s.AuthType = &v + return s +} + +func (s *Params) SetBodyType(v string) *Params { + s.BodyType = &v + return s +} + +func (s *Params) SetReqBodyType(v string) *Params { + s.ReqBodyType = &v + return s +} + +func (s *Params) SetStyle(v string) *Params { + s.Style = &v + return s +} + +type Client struct { + Endpoint *string + RegionId *string + Protocol *string + Method *string + UserAgent *string + EndpointRule *string + EndpointMap map[string]*string + Suffix *string + ReadTimeout *int + ConnectTimeout *int + HttpProxy *string + HttpsProxy *string + Socks5Proxy *string + Socks5NetWork *string + NoProxy *string + Network *string + ProductId *string + MaxIdleConns *int + EndpointType *string + OpenPlatformEndpoint *string + Credential credential.Credential + SignatureVersion *string + SignatureAlgorithm *string + Headers map[string]*string + Spi spi.ClientInterface + GlobalParameters *GlobalParameters + Key *string + Cert *string + Ca *string + DisableHttp2 *bool +} + +// Description: +// +// # Init client with Config +// +// @param config - config contains the necessary information to create a client +func NewClient(config *Config) (*Client, error) { + client := new(Client) + err := client.Init(config) + return client, err +} + +func (client *Client) Init(config *Config) (_err error) { + if tea.BoolValue(util.IsUnset(config)) { + _err = tea.NewSDKError(map[string]interface{}{ + "code": "ParameterMissing", + "message": "'config' can not be unset", + }) + return _err + } + + if !tea.BoolValue(util.Empty(config.AccessKeyId)) && !tea.BoolValue(util.Empty(config.AccessKeySecret)) { + if !tea.BoolValue(util.Empty(config.SecurityToken)) { + config.Type = tea.String("sts") + } else { + config.Type = tea.String("access_key") + } + + credentialConfig := &credential.Config{ + AccessKeyId: config.AccessKeyId, + Type: config.Type, + AccessKeySecret: config.AccessKeySecret, + } + credentialConfig.SecurityToken = config.SecurityToken + client.Credential, _err = credential.NewCredential(credentialConfig) + if _err != nil { + return _err + } + + } else if !tea.BoolValue(util.Empty(config.BearerToken)) { + cc := &credential.Config{ + Type: tea.String("bearer"), + BearerToken: config.BearerToken, + } + client.Credential, _err = credential.NewCredential(cc) + if _err != nil { + return _err + } + + } else if !tea.BoolValue(util.IsUnset(config.Credential)) { + client.Credential = config.Credential + } + + client.Endpoint = config.Endpoint + client.EndpointType = config.EndpointType + client.Network = config.Network + client.Suffix = config.Suffix + client.Protocol = config.Protocol + client.Method = config.Method + client.RegionId = config.RegionId + client.UserAgent = config.UserAgent + client.ReadTimeout = config.ReadTimeout + client.ConnectTimeout = config.ConnectTimeout + client.HttpProxy = config.HttpProxy + client.HttpsProxy = config.HttpsProxy + client.NoProxy = config.NoProxy + client.Socks5Proxy = config.Socks5Proxy + client.Socks5NetWork = config.Socks5NetWork + client.MaxIdleConns = config.MaxIdleConns + client.SignatureVersion = config.SignatureVersion + client.SignatureAlgorithm = config.SignatureAlgorithm + client.GlobalParameters = config.GlobalParameters + client.Key = config.Key + client.Cert = config.Cert + client.Ca = config.Ca + client.DisableHttp2 = config.DisableHttp2 + return nil +} + +// Description: +// +// # Encapsulate the request and invoke the network +// +// @param action - api name +// +// @param version - product version +// +// @param protocol - http or https +// +// @param method - e.g. GET +// +// @param authType - authorization type e.g. AK +// +// @param bodyType - response body type e.g. String +// +// @param request - object of OpenApiRequest +// +// @param runtime - which controls some details of call api, such as retry times +// +// @return the response +func (client *Client) DoRPCRequest(action *string, version *string, protocol *string, method *string, authType *string, bodyType *string, request *OpenApiRequest, runtime *util.RuntimeOptions) (_result map[string]interface{}, _err error) { + _err = tea.Validate(request) + if _err != nil { + return _result, _err + } + _err = tea.Validate(runtime) + if _err != nil { + return _result, _err + } + _runtime := map[string]interface{}{ + "timeouted": "retry", + "key": tea.StringValue(util.DefaultString(runtime.Key, client.Key)), + "cert": tea.StringValue(util.DefaultString(runtime.Cert, client.Cert)), + "ca": tea.StringValue(util.DefaultString(runtime.Ca, client.Ca)), + "readTimeout": tea.IntValue(util.DefaultNumber(runtime.ReadTimeout, client.ReadTimeout)), + "connectTimeout": tea.IntValue(util.DefaultNumber(runtime.ConnectTimeout, client.ConnectTimeout)), + "httpProxy": tea.StringValue(util.DefaultString(runtime.HttpProxy, client.HttpProxy)), + "httpsProxy": tea.StringValue(util.DefaultString(runtime.HttpsProxy, client.HttpsProxy)), + "noProxy": tea.StringValue(util.DefaultString(runtime.NoProxy, client.NoProxy)), + "socks5Proxy": tea.StringValue(util.DefaultString(runtime.Socks5Proxy, client.Socks5Proxy)), + "socks5NetWork": tea.StringValue(util.DefaultString(runtime.Socks5NetWork, client.Socks5NetWork)), + "maxIdleConns": tea.IntValue(util.DefaultNumber(runtime.MaxIdleConns, client.MaxIdleConns)), + "retry": map[string]interface{}{ + "retryable": tea.BoolValue(runtime.Autoretry), + "maxAttempts": tea.IntValue(util.DefaultNumber(runtime.MaxAttempts, tea.Int(3))), + }, + "backoff": map[string]interface{}{ + "policy": tea.StringValue(util.DefaultString(runtime.BackoffPolicy, tea.String("no"))), + "period": tea.IntValue(util.DefaultNumber(runtime.BackoffPeriod, tea.Int(1))), + }, + "ignoreSSL": tea.BoolValue(runtime.IgnoreSSL), + } + + _resp := make(map[string]interface{}) + for _retryTimes := 0; tea.BoolValue(tea.AllowRetry(_runtime["retry"], tea.Int(_retryTimes))); _retryTimes++ { + if _retryTimes > 0 { + _backoffTime := tea.GetBackoffTime(_runtime["backoff"], tea.Int(_retryTimes)) + if tea.IntValue(_backoffTime) > 0 { + tea.Sleep(_backoffTime) + } + } + + _resp, _err = func() (map[string]interface{}, error) { + request_ := tea.NewRequest() + request_.Protocol = util.DefaultString(client.Protocol, protocol) + request_.Method = method + request_.Pathname = tea.String("/") + globalQueries := make(map[string]*string) + globalHeaders := make(map[string]*string) + if !tea.BoolValue(util.IsUnset(client.GlobalParameters)) { + globalParams := client.GlobalParameters + if !tea.BoolValue(util.IsUnset(globalParams.Queries)) { + globalQueries = globalParams.Queries + } + + if !tea.BoolValue(util.IsUnset(globalParams.Headers)) { + globalHeaders = globalParams.Headers + } + + } + + extendsHeaders := make(map[string]*string) + if !tea.BoolValue(util.IsUnset(runtime.ExtendsParameters)) { + extendsParameters := runtime.ExtendsParameters + if !tea.BoolValue(util.IsUnset(extendsParameters.Headers)) { + extendsHeaders = extendsParameters.Headers + } + + } + + request_.Query = tea.Merge(map[string]*string{ + "Action": action, + "Format": tea.String("json"), + "Version": version, + "Timestamp": openapiutil.GetTimestamp(), + "SignatureNonce": util.GetNonce(), + }, globalQueries, + request.Query) + headers, _err := client.GetRpcHeaders() + if _err != nil { + return _result, _err + } + + if tea.BoolValue(util.IsUnset(headers)) { + // endpoint is setted in product client + request_.Headers = tea.Merge(map[string]*string{ + "host": client.Endpoint, + "x-acs-version": version, + "x-acs-action": action, + "user-agent": client.GetUserAgent(), + }, globalHeaders, + extendsHeaders) + } else { + request_.Headers = tea.Merge(map[string]*string{ + "host": client.Endpoint, + "x-acs-version": version, + "x-acs-action": action, + "user-agent": client.GetUserAgent(), + }, globalHeaders, + extendsHeaders, + headers) + } + + if !tea.BoolValue(util.IsUnset(request.Body)) { + m, _err := util.AssertAsMap(request.Body) + if _err != nil { + return _result, _err + } + + tmp := util.AnyifyMapValue(openapiutil.Query(m)) + request_.Body = tea.ToReader(util.ToFormString(tmp)) + request_.Headers["content-type"] = tea.String("application/x-www-form-urlencoded") + } + + if !tea.BoolValue(util.EqualString(authType, tea.String("Anonymous"))) { + credentialType, _err := client.GetType() + if _err != nil { + return _result, _err + } + + if tea.BoolValue(util.EqualString(credentialType, tea.String("bearer"))) { + bearerToken, _err := client.GetBearerToken() + if _err != nil { + return _result, _err + } + + request_.Query["BearerToken"] = bearerToken + request_.Query["SignatureType"] = tea.String("BEARERTOKEN") + } else { + accessKeyId, _err := client.GetAccessKeyId() + if _err != nil { + return _result, _err + } + + accessKeySecret, _err := client.GetAccessKeySecret() + if _err != nil { + return _result, _err + } + + securityToken, _err := client.GetSecurityToken() + if _err != nil { + return _result, _err + } + + if !tea.BoolValue(util.Empty(securityToken)) { + request_.Query["SecurityToken"] = securityToken + } + + request_.Query["SignatureMethod"] = tea.String("HMAC-SHA1") + request_.Query["SignatureVersion"] = tea.String("1.0") + request_.Query["AccessKeyId"] = accessKeyId + var t map[string]interface{} + if !tea.BoolValue(util.IsUnset(request.Body)) { + t, _err = util.AssertAsMap(request.Body) + if _err != nil { + return _result, _err + } + + } + + signedParam := tea.Merge(request_.Query, + openapiutil.Query(t)) + request_.Query["Signature"] = openapiutil.GetRPCSignature(signedParam, request_.Method, accessKeySecret) + } + + } + + response_, _err := tea.DoRequest(request_, _runtime) + if _err != nil { + return _result, _err + } + if tea.BoolValue(util.Is4xx(response_.StatusCode)) || tea.BoolValue(util.Is5xx(response_.StatusCode)) { + _res, _err := util.ReadAsJSON(response_.Body) + if _err != nil { + return _result, _err + } + + err, _err := util.AssertAsMap(_res) + if _err != nil { + return _result, _err + } + + requestId := DefaultAny(err["RequestId"], err["requestId"]) + err["statusCode"] = response_.StatusCode + _err = tea.NewSDKError(map[string]interface{}{ + "code": tea.ToString(DefaultAny(err["Code"], err["code"])), + "message": "code: " + tea.ToString(tea.IntValue(response_.StatusCode)) + ", " + tea.ToString(DefaultAny(err["Message"], err["message"])) + " request id: " + tea.ToString(requestId), + "data": err, + "description": tea.ToString(DefaultAny(err["Description"], err["description"])), + "accessDeniedDetail": DefaultAny(err["AccessDeniedDetail"], err["accessDeniedDetail"]), + }) + return _result, _err + } + + if tea.BoolValue(util.EqualString(bodyType, tea.String("binary"))) { + resp := map[string]interface{}{ + "body": response_.Body, + "headers": response_.Headers, + "statusCode": tea.IntValue(response_.StatusCode), + } + _result = resp + return _result, _err + } else if tea.BoolValue(util.EqualString(bodyType, tea.String("byte"))) { + byt, _err := util.ReadAsBytes(response_.Body) + if _err != nil { + return _result, _err + } + + _result = make(map[string]interface{}) + _err = tea.Convert(map[string]interface{}{ + "body": byt, + "headers": response_.Headers, + "statusCode": tea.IntValue(response_.StatusCode), + }, &_result) + return _result, _err + } else if tea.BoolValue(util.EqualString(bodyType, tea.String("string"))) { + str, _err := util.ReadAsString(response_.Body) + if _err != nil { + return _result, _err + } + + _result = make(map[string]interface{}) + _err = tea.Convert(map[string]interface{}{ + "body": tea.StringValue(str), + "headers": response_.Headers, + "statusCode": tea.IntValue(response_.StatusCode), + }, &_result) + return _result, _err + } else if tea.BoolValue(util.EqualString(bodyType, tea.String("json"))) { + obj, _err := util.ReadAsJSON(response_.Body) + if _err != nil { + return _result, _err + } + + res, _err := util.AssertAsMap(obj) + if _err != nil { + return _result, _err + } + + _result = make(map[string]interface{}) + _err = tea.Convert(map[string]interface{}{ + "body": res, + "headers": response_.Headers, + "statusCode": tea.IntValue(response_.StatusCode), + }, &_result) + return _result, _err + } else if tea.BoolValue(util.EqualString(bodyType, tea.String("array"))) { + arr, _err := util.ReadAsJSON(response_.Body) + if _err != nil { + return _result, _err + } + + _result = make(map[string]interface{}) + _err = tea.Convert(map[string]interface{}{ + "body": arr, + "headers": response_.Headers, + "statusCode": tea.IntValue(response_.StatusCode), + }, &_result) + return _result, _err + } else { + _result = make(map[string]interface{}) + _err = tea.Convert(map[string]interface{}{ + "headers": response_.Headers, + "statusCode": tea.IntValue(response_.StatusCode), + }, &_result) + return _result, _err + } + + }() + if !tea.BoolValue(tea.Retryable(_err)) { + break + } + } + + return _resp, _err +} + +// Description: +// +// # Encapsulate the request and invoke the network +// +// @param action - api name +// +// @param version - product version +// +// @param protocol - http or https +// +// @param method - e.g. GET +// +// @param authType - authorization type e.g. AK +// +// @param pathname - pathname of every api +// +// @param bodyType - response body type e.g. String +// +// @param request - object of OpenApiRequest +// +// @param runtime - which controls some details of call api, such as retry times +// +// @return the response +func (client *Client) DoROARequest(action *string, version *string, protocol *string, method *string, authType *string, pathname *string, bodyType *string, request *OpenApiRequest, runtime *util.RuntimeOptions) (_result map[string]interface{}, _err error) { + _err = tea.Validate(request) + if _err != nil { + return _result, _err + } + _err = tea.Validate(runtime) + if _err != nil { + return _result, _err + } + _runtime := map[string]interface{}{ + "timeouted": "retry", + "key": tea.StringValue(util.DefaultString(runtime.Key, client.Key)), + "cert": tea.StringValue(util.DefaultString(runtime.Cert, client.Cert)), + "ca": tea.StringValue(util.DefaultString(runtime.Ca, client.Ca)), + "readTimeout": tea.IntValue(util.DefaultNumber(runtime.ReadTimeout, client.ReadTimeout)), + "connectTimeout": tea.IntValue(util.DefaultNumber(runtime.ConnectTimeout, client.ConnectTimeout)), + "httpProxy": tea.StringValue(util.DefaultString(runtime.HttpProxy, client.HttpProxy)), + "httpsProxy": tea.StringValue(util.DefaultString(runtime.HttpsProxy, client.HttpsProxy)), + "noProxy": tea.StringValue(util.DefaultString(runtime.NoProxy, client.NoProxy)), + "socks5Proxy": tea.StringValue(util.DefaultString(runtime.Socks5Proxy, client.Socks5Proxy)), + "socks5NetWork": tea.StringValue(util.DefaultString(runtime.Socks5NetWork, client.Socks5NetWork)), + "maxIdleConns": tea.IntValue(util.DefaultNumber(runtime.MaxIdleConns, client.MaxIdleConns)), + "retry": map[string]interface{}{ + "retryable": tea.BoolValue(runtime.Autoretry), + "maxAttempts": tea.IntValue(util.DefaultNumber(runtime.MaxAttempts, tea.Int(3))), + }, + "backoff": map[string]interface{}{ + "policy": tea.StringValue(util.DefaultString(runtime.BackoffPolicy, tea.String("no"))), + "period": tea.IntValue(util.DefaultNumber(runtime.BackoffPeriod, tea.Int(1))), + }, + "ignoreSSL": tea.BoolValue(runtime.IgnoreSSL), + } + + _resp := make(map[string]interface{}) + for _retryTimes := 0; tea.BoolValue(tea.AllowRetry(_runtime["retry"], tea.Int(_retryTimes))); _retryTimes++ { + if _retryTimes > 0 { + _backoffTime := tea.GetBackoffTime(_runtime["backoff"], tea.Int(_retryTimes)) + if tea.IntValue(_backoffTime) > 0 { + tea.Sleep(_backoffTime) + } + } + + _resp, _err = func() (map[string]interface{}, error) { + request_ := tea.NewRequest() + request_.Protocol = util.DefaultString(client.Protocol, protocol) + request_.Method = method + request_.Pathname = pathname + globalQueries := make(map[string]*string) + globalHeaders := make(map[string]*string) + if !tea.BoolValue(util.IsUnset(client.GlobalParameters)) { + globalParams := client.GlobalParameters + if !tea.BoolValue(util.IsUnset(globalParams.Queries)) { + globalQueries = globalParams.Queries + } + + if !tea.BoolValue(util.IsUnset(globalParams.Headers)) { + globalHeaders = globalParams.Headers + } + + } + + extendsHeaders := make(map[string]*string) + if !tea.BoolValue(util.IsUnset(runtime.ExtendsParameters)) { + extendsParameters := runtime.ExtendsParameters + if !tea.BoolValue(util.IsUnset(extendsParameters.Headers)) { + extendsHeaders = extendsParameters.Headers + } + + } + + request_.Headers = tea.Merge(map[string]*string{ + "date": util.GetDateUTCString(), + "host": client.Endpoint, + "accept": tea.String("application/json"), + "x-acs-signature-nonce": util.GetNonce(), + "x-acs-signature-method": tea.String("HMAC-SHA1"), + "x-acs-signature-version": tea.String("1.0"), + "x-acs-version": version, + "x-acs-action": action, + "user-agent": util.GetUserAgent(client.UserAgent), + }, globalHeaders, + extendsHeaders, + request.Headers) + if !tea.BoolValue(util.IsUnset(request.Body)) { + request_.Body = tea.ToReader(util.ToJSONString(request.Body)) + request_.Headers["content-type"] = tea.String("application/json; charset=utf-8") + } + + request_.Query = globalQueries + if !tea.BoolValue(util.IsUnset(request.Query)) { + request_.Query = tea.Merge(request_.Query, + request.Query) + } + + if !tea.BoolValue(util.EqualString(authType, tea.String("Anonymous"))) { + credentialType, _err := client.GetType() + if _err != nil { + return _result, _err + } + + if tea.BoolValue(util.EqualString(credentialType, tea.String("bearer"))) { + bearerToken, _err := client.GetBearerToken() + if _err != nil { + return _result, _err + } + + request_.Headers["x-acs-bearer-token"] = bearerToken + request_.Headers["x-acs-signature-type"] = tea.String("BEARERTOKEN") + } else { + accessKeyId, _err := client.GetAccessKeyId() + if _err != nil { + return _result, _err + } + + accessKeySecret, _err := client.GetAccessKeySecret() + if _err != nil { + return _result, _err + } + + securityToken, _err := client.GetSecurityToken() + if _err != nil { + return _result, _err + } + + if !tea.BoolValue(util.Empty(securityToken)) { + request_.Headers["x-acs-accesskey-id"] = accessKeyId + request_.Headers["x-acs-security-token"] = securityToken + } + + stringToSign := openapiutil.GetStringToSign(request_) + request_.Headers["authorization"] = tea.String("acs " + tea.StringValue(accessKeyId) + ":" + tea.StringValue(openapiutil.GetROASignature(stringToSign, accessKeySecret))) + } + + } + + response_, _err := tea.DoRequest(request_, _runtime) + if _err != nil { + return _result, _err + } + if tea.BoolValue(util.EqualNumber(response_.StatusCode, tea.Int(204))) { + _result = make(map[string]interface{}) + _err = tea.Convert(map[string]map[string]*string{ + "headers": response_.Headers, + }, &_result) + return _result, _err + } + + if tea.BoolValue(util.Is4xx(response_.StatusCode)) || tea.BoolValue(util.Is5xx(response_.StatusCode)) { + _res, _err := util.ReadAsJSON(response_.Body) + if _err != nil { + return _result, _err + } + + err, _err := util.AssertAsMap(_res) + if _err != nil { + return _result, _err + } + + requestId := DefaultAny(err["RequestId"], err["requestId"]) + requestId = DefaultAny(requestId, err["requestid"]) + err["statusCode"] = response_.StatusCode + _err = tea.NewSDKError(map[string]interface{}{ + "code": tea.ToString(DefaultAny(err["Code"], err["code"])), + "message": "code: " + tea.ToString(tea.IntValue(response_.StatusCode)) + ", " + tea.ToString(DefaultAny(err["Message"], err["message"])) + " request id: " + tea.ToString(requestId), + "data": err, + "description": tea.ToString(DefaultAny(err["Description"], err["description"])), + "accessDeniedDetail": DefaultAny(err["AccessDeniedDetail"], err["accessDeniedDetail"]), + }) + return _result, _err + } + + if tea.BoolValue(util.EqualString(bodyType, tea.String("binary"))) { + resp := map[string]interface{}{ + "body": response_.Body, + "headers": response_.Headers, + "statusCode": tea.IntValue(response_.StatusCode), + } + _result = resp + return _result, _err + } else if tea.BoolValue(util.EqualString(bodyType, tea.String("byte"))) { + byt, _err := util.ReadAsBytes(response_.Body) + if _err != nil { + return _result, _err + } + + _result = make(map[string]interface{}) + _err = tea.Convert(map[string]interface{}{ + "body": byt, + "headers": response_.Headers, + "statusCode": tea.IntValue(response_.StatusCode), + }, &_result) + return _result, _err + } else if tea.BoolValue(util.EqualString(bodyType, tea.String("string"))) { + str, _err := util.ReadAsString(response_.Body) + if _err != nil { + return _result, _err + } + + _result = make(map[string]interface{}) + _err = tea.Convert(map[string]interface{}{ + "body": tea.StringValue(str), + "headers": response_.Headers, + "statusCode": tea.IntValue(response_.StatusCode), + }, &_result) + return _result, _err + } else if tea.BoolValue(util.EqualString(bodyType, tea.String("json"))) { + obj, _err := util.ReadAsJSON(response_.Body) + if _err != nil { + return _result, _err + } + + res, _err := util.AssertAsMap(obj) + if _err != nil { + return _result, _err + } + + _result = make(map[string]interface{}) + _err = tea.Convert(map[string]interface{}{ + "body": res, + "headers": response_.Headers, + "statusCode": tea.IntValue(response_.StatusCode), + }, &_result) + return _result, _err + } else if tea.BoolValue(util.EqualString(bodyType, tea.String("array"))) { + arr, _err := util.ReadAsJSON(response_.Body) + if _err != nil { + return _result, _err + } + + _result = make(map[string]interface{}) + _err = tea.Convert(map[string]interface{}{ + "body": arr, + "headers": response_.Headers, + "statusCode": tea.IntValue(response_.StatusCode), + }, &_result) + return _result, _err + } else { + _result = make(map[string]interface{}) + _err = tea.Convert(map[string]interface{}{ + "headers": response_.Headers, + "statusCode": tea.IntValue(response_.StatusCode), + }, &_result) + return _result, _err + } + + }() + if !tea.BoolValue(tea.Retryable(_err)) { + break + } + } + + return _resp, _err +} + +// Description: +// +// # Encapsulate the request and invoke the network with form body +// +// @param action - api name +// +// @param version - product version +// +// @param protocol - http or https +// +// @param method - e.g. GET +// +// @param authType - authorization type e.g. AK +// +// @param pathname - pathname of every api +// +// @param bodyType - response body type e.g. String +// +// @param request - object of OpenApiRequest +// +// @param runtime - which controls some details of call api, such as retry times +// +// @return the response +func (client *Client) DoROARequestWithForm(action *string, version *string, protocol *string, method *string, authType *string, pathname *string, bodyType *string, request *OpenApiRequest, runtime *util.RuntimeOptions) (_result map[string]interface{}, _err error) { + _err = tea.Validate(request) + if _err != nil { + return _result, _err + } + _err = tea.Validate(runtime) + if _err != nil { + return _result, _err + } + _runtime := map[string]interface{}{ + "timeouted": "retry", + "key": tea.StringValue(util.DefaultString(runtime.Key, client.Key)), + "cert": tea.StringValue(util.DefaultString(runtime.Cert, client.Cert)), + "ca": tea.StringValue(util.DefaultString(runtime.Ca, client.Ca)), + "readTimeout": tea.IntValue(util.DefaultNumber(runtime.ReadTimeout, client.ReadTimeout)), + "connectTimeout": tea.IntValue(util.DefaultNumber(runtime.ConnectTimeout, client.ConnectTimeout)), + "httpProxy": tea.StringValue(util.DefaultString(runtime.HttpProxy, client.HttpProxy)), + "httpsProxy": tea.StringValue(util.DefaultString(runtime.HttpsProxy, client.HttpsProxy)), + "noProxy": tea.StringValue(util.DefaultString(runtime.NoProxy, client.NoProxy)), + "socks5Proxy": tea.StringValue(util.DefaultString(runtime.Socks5Proxy, client.Socks5Proxy)), + "socks5NetWork": tea.StringValue(util.DefaultString(runtime.Socks5NetWork, client.Socks5NetWork)), + "maxIdleConns": tea.IntValue(util.DefaultNumber(runtime.MaxIdleConns, client.MaxIdleConns)), + "retry": map[string]interface{}{ + "retryable": tea.BoolValue(runtime.Autoretry), + "maxAttempts": tea.IntValue(util.DefaultNumber(runtime.MaxAttempts, tea.Int(3))), + }, + "backoff": map[string]interface{}{ + "policy": tea.StringValue(util.DefaultString(runtime.BackoffPolicy, tea.String("no"))), + "period": tea.IntValue(util.DefaultNumber(runtime.BackoffPeriod, tea.Int(1))), + }, + "ignoreSSL": tea.BoolValue(runtime.IgnoreSSL), + } + + _resp := make(map[string]interface{}) + for _retryTimes := 0; tea.BoolValue(tea.AllowRetry(_runtime["retry"], tea.Int(_retryTimes))); _retryTimes++ { + if _retryTimes > 0 { + _backoffTime := tea.GetBackoffTime(_runtime["backoff"], tea.Int(_retryTimes)) + if tea.IntValue(_backoffTime) > 0 { + tea.Sleep(_backoffTime) + } + } + + _resp, _err = func() (map[string]interface{}, error) { + request_ := tea.NewRequest() + request_.Protocol = util.DefaultString(client.Protocol, protocol) + request_.Method = method + request_.Pathname = pathname + globalQueries := make(map[string]*string) + globalHeaders := make(map[string]*string) + if !tea.BoolValue(util.IsUnset(client.GlobalParameters)) { + globalParams := client.GlobalParameters + if !tea.BoolValue(util.IsUnset(globalParams.Queries)) { + globalQueries = globalParams.Queries + } + + if !tea.BoolValue(util.IsUnset(globalParams.Headers)) { + globalHeaders = globalParams.Headers + } + + } + + extendsHeaders := make(map[string]*string) + if !tea.BoolValue(util.IsUnset(runtime.ExtendsParameters)) { + extendsParameters := runtime.ExtendsParameters + if !tea.BoolValue(util.IsUnset(extendsParameters.Headers)) { + extendsHeaders = extendsParameters.Headers + } + + } + + request_.Headers = tea.Merge(map[string]*string{ + "date": util.GetDateUTCString(), + "host": client.Endpoint, + "accept": tea.String("application/json"), + "x-acs-signature-nonce": util.GetNonce(), + "x-acs-signature-method": tea.String("HMAC-SHA1"), + "x-acs-signature-version": tea.String("1.0"), + "x-acs-version": version, + "x-acs-action": action, + "user-agent": util.GetUserAgent(client.UserAgent), + }, globalHeaders, + extendsHeaders, + request.Headers) + if !tea.BoolValue(util.IsUnset(request.Body)) { + m, _err := util.AssertAsMap(request.Body) + if _err != nil { + return _result, _err + } + + request_.Body = tea.ToReader(openapiutil.ToForm(m)) + request_.Headers["content-type"] = tea.String("application/x-www-form-urlencoded") + } + + request_.Query = globalQueries + if !tea.BoolValue(util.IsUnset(request.Query)) { + request_.Query = tea.Merge(request_.Query, + request.Query) + } + + if !tea.BoolValue(util.EqualString(authType, tea.String("Anonymous"))) { + credentialType, _err := client.GetType() + if _err != nil { + return _result, _err + } + + if tea.BoolValue(util.EqualString(credentialType, tea.String("bearer"))) { + bearerToken, _err := client.GetBearerToken() + if _err != nil { + return _result, _err + } + + request_.Headers["x-acs-bearer-token"] = bearerToken + request_.Headers["x-acs-signature-type"] = tea.String("BEARERTOKEN") + } else { + accessKeyId, _err := client.GetAccessKeyId() + if _err != nil { + return _result, _err + } + + accessKeySecret, _err := client.GetAccessKeySecret() + if _err != nil { + return _result, _err + } + + securityToken, _err := client.GetSecurityToken() + if _err != nil { + return _result, _err + } + + if !tea.BoolValue(util.Empty(securityToken)) { + request_.Headers["x-acs-accesskey-id"] = accessKeyId + request_.Headers["x-acs-security-token"] = securityToken + } + + stringToSign := openapiutil.GetStringToSign(request_) + request_.Headers["authorization"] = tea.String("acs " + tea.StringValue(accessKeyId) + ":" + tea.StringValue(openapiutil.GetROASignature(stringToSign, accessKeySecret))) + } + + } + + response_, _err := tea.DoRequest(request_, _runtime) + if _err != nil { + return _result, _err + } + if tea.BoolValue(util.EqualNumber(response_.StatusCode, tea.Int(204))) { + _result = make(map[string]interface{}) + _err = tea.Convert(map[string]map[string]*string{ + "headers": response_.Headers, + }, &_result) + return _result, _err + } + + if tea.BoolValue(util.Is4xx(response_.StatusCode)) || tea.BoolValue(util.Is5xx(response_.StatusCode)) { + _res, _err := util.ReadAsJSON(response_.Body) + if _err != nil { + return _result, _err + } + + err, _err := util.AssertAsMap(_res) + if _err != nil { + return _result, _err + } + + err["statusCode"] = response_.StatusCode + _err = tea.NewSDKError(map[string]interface{}{ + "code": tea.ToString(DefaultAny(err["Code"], err["code"])), + "message": "code: " + tea.ToString(tea.IntValue(response_.StatusCode)) + ", " + tea.ToString(DefaultAny(err["Message"], err["message"])) + " request id: " + tea.ToString(DefaultAny(err["RequestId"], err["requestId"])), + "data": err, + "description": tea.ToString(DefaultAny(err["Description"], err["description"])), + "accessDeniedDetail": DefaultAny(err["AccessDeniedDetail"], err["accessDeniedDetail"]), + }) + return _result, _err + } + + if tea.BoolValue(util.EqualString(bodyType, tea.String("binary"))) { + resp := map[string]interface{}{ + "body": response_.Body, + "headers": response_.Headers, + "statusCode": tea.IntValue(response_.StatusCode), + } + _result = resp + return _result, _err + } else if tea.BoolValue(util.EqualString(bodyType, tea.String("byte"))) { + byt, _err := util.ReadAsBytes(response_.Body) + if _err != nil { + return _result, _err + } + + _result = make(map[string]interface{}) + _err = tea.Convert(map[string]interface{}{ + "body": byt, + "headers": response_.Headers, + "statusCode": tea.IntValue(response_.StatusCode), + }, &_result) + return _result, _err + } else if tea.BoolValue(util.EqualString(bodyType, tea.String("string"))) { + str, _err := util.ReadAsString(response_.Body) + if _err != nil { + return _result, _err + } + + _result = make(map[string]interface{}) + _err = tea.Convert(map[string]interface{}{ + "body": tea.StringValue(str), + "headers": response_.Headers, + "statusCode": tea.IntValue(response_.StatusCode), + }, &_result) + return _result, _err + } else if tea.BoolValue(util.EqualString(bodyType, tea.String("json"))) { + obj, _err := util.ReadAsJSON(response_.Body) + if _err != nil { + return _result, _err + } + + res, _err := util.AssertAsMap(obj) + if _err != nil { + return _result, _err + } + + _result = make(map[string]interface{}) + _err = tea.Convert(map[string]interface{}{ + "body": res, + "headers": response_.Headers, + "statusCode": tea.IntValue(response_.StatusCode), + }, &_result) + return _result, _err + } else if tea.BoolValue(util.EqualString(bodyType, tea.String("array"))) { + arr, _err := util.ReadAsJSON(response_.Body) + if _err != nil { + return _result, _err + } + + _result = make(map[string]interface{}) + _err = tea.Convert(map[string]interface{}{ + "body": arr, + "headers": response_.Headers, + "statusCode": tea.IntValue(response_.StatusCode), + }, &_result) + return _result, _err + } else { + _result = make(map[string]interface{}) + _err = tea.Convert(map[string]interface{}{ + "headers": response_.Headers, + "statusCode": tea.IntValue(response_.StatusCode), + }, &_result) + return _result, _err + } + + }() + if !tea.BoolValue(tea.Retryable(_err)) { + break + } + } + + return _resp, _err +} + +// Description: +// +// # Encapsulate the request and invoke the network +// +// @param action - api name +// +// @param version - product version +// +// @param protocol - http or https +// +// @param method - e.g. GET +// +// @param authType - authorization type e.g. AK +// +// @param bodyType - response body type e.g. String +// +// @param request - object of OpenApiRequest +// +// @param runtime - which controls some details of call api, such as retry times +// +// @return the response +func (client *Client) DoRequest(params *Params, request *OpenApiRequest, runtime *util.RuntimeOptions) (_result map[string]interface{}, _err error) { + _err = tea.Validate(params) + if _err != nil { + return _result, _err + } + _err = tea.Validate(request) + if _err != nil { + return _result, _err + } + _err = tea.Validate(runtime) + if _err != nil { + return _result, _err + } + _runtime := map[string]interface{}{ + "timeouted": "retry", + "key": tea.StringValue(util.DefaultString(runtime.Key, client.Key)), + "cert": tea.StringValue(util.DefaultString(runtime.Cert, client.Cert)), + "ca": tea.StringValue(util.DefaultString(runtime.Ca, client.Ca)), + "readTimeout": tea.IntValue(util.DefaultNumber(runtime.ReadTimeout, client.ReadTimeout)), + "connectTimeout": tea.IntValue(util.DefaultNumber(runtime.ConnectTimeout, client.ConnectTimeout)), + "httpProxy": tea.StringValue(util.DefaultString(runtime.HttpProxy, client.HttpProxy)), + "httpsProxy": tea.StringValue(util.DefaultString(runtime.HttpsProxy, client.HttpsProxy)), + "noProxy": tea.StringValue(util.DefaultString(runtime.NoProxy, client.NoProxy)), + "socks5Proxy": tea.StringValue(util.DefaultString(runtime.Socks5Proxy, client.Socks5Proxy)), + "socks5NetWork": tea.StringValue(util.DefaultString(runtime.Socks5NetWork, client.Socks5NetWork)), + "maxIdleConns": tea.IntValue(util.DefaultNumber(runtime.MaxIdleConns, client.MaxIdleConns)), + "retry": map[string]interface{}{ + "retryable": tea.BoolValue(runtime.Autoretry), + "maxAttempts": tea.IntValue(util.DefaultNumber(runtime.MaxAttempts, tea.Int(3))), + }, + "backoff": map[string]interface{}{ + "policy": tea.StringValue(util.DefaultString(runtime.BackoffPolicy, tea.String("no"))), + "period": tea.IntValue(util.DefaultNumber(runtime.BackoffPeriod, tea.Int(1))), + }, + "ignoreSSL": tea.BoolValue(runtime.IgnoreSSL), + } + + _resp := make(map[string]interface{}) + for _retryTimes := 0; tea.BoolValue(tea.AllowRetry(_runtime["retry"], tea.Int(_retryTimes))); _retryTimes++ { + if _retryTimes > 0 { + _backoffTime := tea.GetBackoffTime(_runtime["backoff"], tea.Int(_retryTimes)) + if tea.IntValue(_backoffTime) > 0 { + tea.Sleep(_backoffTime) + } + } + + _resp, _err = func() (map[string]interface{}, error) { + request_ := tea.NewRequest() + request_.Protocol = util.DefaultString(client.Protocol, params.Protocol) + request_.Method = params.Method + request_.Pathname = params.Pathname + globalQueries := make(map[string]*string) + globalHeaders := make(map[string]*string) + if !tea.BoolValue(util.IsUnset(client.GlobalParameters)) { + globalParams := client.GlobalParameters + if !tea.BoolValue(util.IsUnset(globalParams.Queries)) { + globalQueries = globalParams.Queries + } + + if !tea.BoolValue(util.IsUnset(globalParams.Headers)) { + globalHeaders = globalParams.Headers + } + + } + + extendsHeaders := make(map[string]*string) + if !tea.BoolValue(util.IsUnset(runtime.ExtendsParameters)) { + extendsParameters := runtime.ExtendsParameters + if !tea.BoolValue(util.IsUnset(extendsParameters.Headers)) { + extendsHeaders = extendsParameters.Headers + } + + } + + request_.Query = tea.Merge(globalQueries, + request.Query) + // endpoint is setted in product client + request_.Headers = tea.Merge(map[string]*string{ + "host": client.Endpoint, + "x-acs-version": params.Version, + "x-acs-action": params.Action, + "user-agent": client.GetUserAgent(), + "x-acs-date": openapiutil.GetTimestamp(), + "x-acs-signature-nonce": util.GetNonce(), + "accept": tea.String("application/json"), + }, globalHeaders, + extendsHeaders, + request.Headers) + if tea.BoolValue(util.EqualString(params.Style, tea.String("RPC"))) { + headers, _err := client.GetRpcHeaders() + if _err != nil { + return _result, _err + } + + if !tea.BoolValue(util.IsUnset(headers)) { + request_.Headers = tea.Merge(request_.Headers, + headers) + } + + } + + signatureAlgorithm := util.DefaultString(client.SignatureAlgorithm, tea.String("ACS3-HMAC-SHA256")) + hashedRequestPayload := openapiutil.HexEncode(openapiutil.Hash(util.ToBytes(tea.String("")), signatureAlgorithm)) + if !tea.BoolValue(util.IsUnset(request.Stream)) { + tmp, _err := util.ReadAsBytes(request.Stream) + if _err != nil { + return _result, _err + } + + hashedRequestPayload = openapiutil.HexEncode(openapiutil.Hash(tmp, signatureAlgorithm)) + request_.Body = tea.ToReader(tmp) + request_.Headers["content-type"] = tea.String("application/octet-stream") + } else { + if !tea.BoolValue(util.IsUnset(request.Body)) { + if tea.BoolValue(util.EqualString(params.ReqBodyType, tea.String("byte"))) { + byteObj, _err := util.AssertAsBytes(request.Body) + if _err != nil { + return _result, _err + } + + hashedRequestPayload = openapiutil.HexEncode(openapiutil.Hash(byteObj, signatureAlgorithm)) + request_.Body = tea.ToReader(byteObj) + } else if tea.BoolValue(util.EqualString(params.ReqBodyType, tea.String("json"))) { + jsonObj := util.ToJSONString(request.Body) + hashedRequestPayload = openapiutil.HexEncode(openapiutil.Hash(util.ToBytes(jsonObj), signatureAlgorithm)) + request_.Body = tea.ToReader(jsonObj) + request_.Headers["content-type"] = tea.String("application/json; charset=utf-8") + } else { + m, _err := util.AssertAsMap(request.Body) + if _err != nil { + return _result, _err + } + + formObj := openapiutil.ToForm(m) + hashedRequestPayload = openapiutil.HexEncode(openapiutil.Hash(util.ToBytes(formObj), signatureAlgorithm)) + request_.Body = tea.ToReader(formObj) + request_.Headers["content-type"] = tea.String("application/x-www-form-urlencoded") + } + + } + + } + + request_.Headers["x-acs-content-sha256"] = hashedRequestPayload + if !tea.BoolValue(util.EqualString(params.AuthType, tea.String("Anonymous"))) { + credentialModel, _err := client.Credential.GetCredential() + if _err != nil { + return _result, _err + } + + authType := credentialModel.Type + if tea.BoolValue(util.EqualString(authType, tea.String("bearer"))) { + bearerToken := credentialModel.BearerToken + request_.Headers["x-acs-bearer-token"] = bearerToken + if tea.BoolValue(util.EqualString(params.Style, tea.String("RPC"))) { + request_.Query["SignatureType"] = tea.String("BEARERTOKEN") + } else { + request_.Headers["x-acs-signature-type"] = tea.String("BEARERTOKEN") + } + + } else { + accessKeyId := credentialModel.AccessKeyId + accessKeySecret := credentialModel.AccessKeySecret + securityToken := credentialModel.SecurityToken + if !tea.BoolValue(util.Empty(securityToken)) { + request_.Headers["x-acs-accesskey-id"] = accessKeyId + request_.Headers["x-acs-security-token"] = securityToken + } + + request_.Headers["Authorization"] = openapiutil.GetAuthorization(request_, signatureAlgorithm, hashedRequestPayload, accessKeyId, accessKeySecret) + } + + } + + response_, _err := tea.DoRequest(request_, _runtime) + if _err != nil { + return _result, _err + } + if tea.BoolValue(util.Is4xx(response_.StatusCode)) || tea.BoolValue(util.Is5xx(response_.StatusCode)) { + err := map[string]interface{}{} + if !tea.BoolValue(util.IsUnset(response_.Headers["content-type"])) && tea.BoolValue(util.EqualString(response_.Headers["content-type"], tea.String("text/xml;charset=utf-8"))) { + _str, _err := util.ReadAsString(response_.Body) + if _err != nil { + return _result, _err + } + + respMap := xml.ParseXml(_str, nil) + err, _err = util.AssertAsMap(respMap["Error"]) + if _err != nil { + return _result, _err + } + + } else { + _res, _err := util.ReadAsJSON(response_.Body) + if _err != nil { + return _result, _err + } + + err, _err = util.AssertAsMap(_res) + if _err != nil { + return _result, _err + } + + } + + err["statusCode"] = response_.StatusCode + _err = tea.NewSDKError(map[string]interface{}{ + "code": tea.ToString(DefaultAny(err["Code"], err["code"])), + "message": "code: " + tea.ToString(tea.IntValue(response_.StatusCode)) + ", " + tea.ToString(DefaultAny(err["Message"], err["message"])) + " request id: " + tea.ToString(DefaultAny(err["RequestId"], err["requestId"])), + "data": err, + "description": tea.ToString(DefaultAny(err["Description"], err["description"])), + "accessDeniedDetail": DefaultAny(err["AccessDeniedDetail"], err["accessDeniedDetail"]), + }) + return _result, _err + } + + if tea.BoolValue(util.EqualString(params.BodyType, tea.String("binary"))) { + resp := map[string]interface{}{ + "body": response_.Body, + "headers": response_.Headers, + "statusCode": tea.IntValue(response_.StatusCode), + } + _result = resp + return _result, _err + } else if tea.BoolValue(util.EqualString(params.BodyType, tea.String("byte"))) { + byt, _err := util.ReadAsBytes(response_.Body) + if _err != nil { + return _result, _err + } + + _result = make(map[string]interface{}) + _err = tea.Convert(map[string]interface{}{ + "body": byt, + "headers": response_.Headers, + "statusCode": tea.IntValue(response_.StatusCode), + }, &_result) + return _result, _err + } else if tea.BoolValue(util.EqualString(params.BodyType, tea.String("string"))) { + str, _err := util.ReadAsString(response_.Body) + if _err != nil { + return _result, _err + } + + _result = make(map[string]interface{}) + _err = tea.Convert(map[string]interface{}{ + "body": tea.StringValue(str), + "headers": response_.Headers, + "statusCode": tea.IntValue(response_.StatusCode), + }, &_result) + return _result, _err + } else if tea.BoolValue(util.EqualString(params.BodyType, tea.String("json"))) { + obj, _err := util.ReadAsJSON(response_.Body) + if _err != nil { + return _result, _err + } + + res, _err := util.AssertAsMap(obj) + if _err != nil { + return _result, _err + } + + _result = make(map[string]interface{}) + _err = tea.Convert(map[string]interface{}{ + "body": res, + "headers": response_.Headers, + "statusCode": tea.IntValue(response_.StatusCode), + }, &_result) + return _result, _err + } else if tea.BoolValue(util.EqualString(params.BodyType, tea.String("array"))) { + arr, _err := util.ReadAsJSON(response_.Body) + if _err != nil { + return _result, _err + } + + _result = make(map[string]interface{}) + _err = tea.Convert(map[string]interface{}{ + "body": arr, + "headers": response_.Headers, + "statusCode": tea.IntValue(response_.StatusCode), + }, &_result) + return _result, _err + } else { + anything, _err := util.ReadAsString(response_.Body) + if _err != nil { + return _result, _err + } + + _result = make(map[string]interface{}) + _err = tea.Convert(map[string]interface{}{ + "body": tea.StringValue(anything), + "headers": response_.Headers, + "statusCode": tea.IntValue(response_.StatusCode), + }, &_result) + return _result, _err + } + + }() + if !tea.BoolValue(tea.Retryable(_err)) { + break + } + } + + return _resp, _err +} + +// Description: +// +// # Encapsulate the request and invoke the network +// +// @param action - api name +// +// @param version - product version +// +// @param protocol - http or https +// +// @param method - e.g. GET +// +// @param authType - authorization type e.g. AK +// +// @param bodyType - response body type e.g. String +// +// @param request - object of OpenApiRequest +// +// @param runtime - which controls some details of call api, such as retry times +// +// @return the response +func (client *Client) Execute(params *Params, request *OpenApiRequest, runtime *util.RuntimeOptions) (_result map[string]interface{}, _err error) { + _err = tea.Validate(params) + if _err != nil { + return _result, _err + } + _err = tea.Validate(request) + if _err != nil { + return _result, _err + } + _err = tea.Validate(runtime) + if _err != nil { + return _result, _err + } + _runtime := map[string]interface{}{ + "timeouted": "retry", + "key": tea.StringValue(util.DefaultString(runtime.Key, client.Key)), + "cert": tea.StringValue(util.DefaultString(runtime.Cert, client.Cert)), + "ca": tea.StringValue(util.DefaultString(runtime.Ca, client.Ca)), + "readTimeout": tea.IntValue(util.DefaultNumber(runtime.ReadTimeout, client.ReadTimeout)), + "connectTimeout": tea.IntValue(util.DefaultNumber(runtime.ConnectTimeout, client.ConnectTimeout)), + "httpProxy": tea.StringValue(util.DefaultString(runtime.HttpProxy, client.HttpProxy)), + "httpsProxy": tea.StringValue(util.DefaultString(runtime.HttpsProxy, client.HttpsProxy)), + "noProxy": tea.StringValue(util.DefaultString(runtime.NoProxy, client.NoProxy)), + "socks5Proxy": tea.StringValue(util.DefaultString(runtime.Socks5Proxy, client.Socks5Proxy)), + "socks5NetWork": tea.StringValue(util.DefaultString(runtime.Socks5NetWork, client.Socks5NetWork)), + "maxIdleConns": tea.IntValue(util.DefaultNumber(runtime.MaxIdleConns, client.MaxIdleConns)), + "retry": map[string]interface{}{ + "retryable": tea.BoolValue(runtime.Autoretry), + "maxAttempts": tea.IntValue(util.DefaultNumber(runtime.MaxAttempts, tea.Int(3))), + }, + "backoff": map[string]interface{}{ + "policy": tea.StringValue(util.DefaultString(runtime.BackoffPolicy, tea.String("no"))), + "period": tea.IntValue(util.DefaultNumber(runtime.BackoffPeriod, tea.Int(1))), + }, + "ignoreSSL": tea.BoolValue(runtime.IgnoreSSL), + "disableHttp2": DefaultAny(client.DisableHttp2, tea.Bool(false)), + } + + _resp := make(map[string]interface{}) + for _retryTimes := 0; tea.BoolValue(tea.AllowRetry(_runtime["retry"], tea.Int(_retryTimes))); _retryTimes++ { + if _retryTimes > 0 { + _backoffTime := tea.GetBackoffTime(_runtime["backoff"], tea.Int(_retryTimes)) + if tea.IntValue(_backoffTime) > 0 { + tea.Sleep(_backoffTime) + } + } + + _resp, _err = func() (map[string]interface{}, error) { + request_ := tea.NewRequest() + // spi = new Gateway();//Gateway implements SPI,这一步在产品 SDK 中实例化 + headers, _err := client.GetRpcHeaders() + if _err != nil { + return _result, _err + } + + globalQueries := make(map[string]*string) + globalHeaders := make(map[string]*string) + if !tea.BoolValue(util.IsUnset(client.GlobalParameters)) { + globalParams := client.GlobalParameters + if !tea.BoolValue(util.IsUnset(globalParams.Queries)) { + globalQueries = globalParams.Queries + } + + if !tea.BoolValue(util.IsUnset(globalParams.Headers)) { + globalHeaders = globalParams.Headers + } + + } + + extendsHeaders := make(map[string]*string) + if !tea.BoolValue(util.IsUnset(runtime.ExtendsParameters)) { + extendsParameters := runtime.ExtendsParameters + if !tea.BoolValue(util.IsUnset(extendsParameters.Headers)) { + extendsHeaders = extendsParameters.Headers + } + + } + + requestContext := &spi.InterceptorContextRequest{ + Headers: tea.Merge(globalHeaders, + extendsHeaders, + request.Headers, + headers), + Query: tea.Merge(globalQueries, + request.Query), + Body: request.Body, + Stream: request.Stream, + HostMap: request.HostMap, + Pathname: params.Pathname, + ProductId: client.ProductId, + Action: params.Action, + Version: params.Version, + Protocol: util.DefaultString(client.Protocol, params.Protocol), + Method: util.DefaultString(client.Method, params.Method), + AuthType: params.AuthType, + BodyType: params.BodyType, + ReqBodyType: params.ReqBodyType, + Style: params.Style, + Credential: client.Credential, + SignatureVersion: client.SignatureVersion, + SignatureAlgorithm: client.SignatureAlgorithm, + UserAgent: client.GetUserAgent(), + } + configurationContext := &spi.InterceptorContextConfiguration{ + RegionId: client.RegionId, + Endpoint: util.DefaultString(request.EndpointOverride, client.Endpoint), + EndpointRule: client.EndpointRule, + EndpointMap: client.EndpointMap, + EndpointType: client.EndpointType, + Network: client.Network, + Suffix: client.Suffix, + } + interceptorContext := &spi.InterceptorContext{ + Request: requestContext, + Configuration: configurationContext, + } + attributeMap := &spi.AttributeMap{} + // 1. spi.modifyConfiguration(context: SPI.InterceptorContext, attributeMap: SPI.AttributeMap); + _err = client.Spi.ModifyConfiguration(interceptorContext, attributeMap) + if _err != nil { + return _result, _err + } + // 2. spi.modifyRequest(context: SPI.InterceptorContext, attributeMap: SPI.AttributeMap); + _err = client.Spi.ModifyRequest(interceptorContext, attributeMap) + if _err != nil { + return _result, _err + } + request_.Protocol = interceptorContext.Request.Protocol + request_.Method = interceptorContext.Request.Method + request_.Pathname = interceptorContext.Request.Pathname + request_.Query = interceptorContext.Request.Query + request_.Body = interceptorContext.Request.Stream + request_.Headers = interceptorContext.Request.Headers + response_, _err := tea.DoRequest(request_, _runtime) + if _err != nil { + return _result, _err + } + responseContext := &spi.InterceptorContextResponse{ + StatusCode: response_.StatusCode, + Headers: response_.Headers, + Body: response_.Body, + } + interceptorContext.Response = responseContext + // 3. spi.modifyResponse(context: SPI.InterceptorContext, attributeMap: SPI.AttributeMap); + _err = client.Spi.ModifyResponse(interceptorContext, attributeMap) + if _err != nil { + return _result, _err + } + _result = make(map[string]interface{}) + _err = tea.Convert(map[string]interface{}{ + "headers": interceptorContext.Response.Headers, + "statusCode": tea.IntValue(interceptorContext.Response.StatusCode), + "body": interceptorContext.Response.DeserializedBody, + }, &_result) + return _result, _err + }() + if !tea.BoolValue(tea.Retryable(_err)) { + break + } + } + + return _resp, _err +} + +func (client *Client) CallApi(params *Params, request *OpenApiRequest, runtime *util.RuntimeOptions) (_result map[string]interface{}, _err error) { + if tea.BoolValue(util.IsUnset(params)) { + _err = tea.NewSDKError(map[string]interface{}{ + "code": "ParameterMissing", + "message": "'params' can not be unset", + }) + return _result, _err + } + + if tea.BoolValue(util.IsUnset(client.SignatureAlgorithm)) || !tea.BoolValue(util.EqualString(client.SignatureAlgorithm, tea.String("v2"))) { + _result = make(map[string]interface{}) + _body, _err := client.DoRequest(params, request, runtime) + if _err != nil { + return _result, _err + } + _result = _body + return _result, _err + } else if tea.BoolValue(util.EqualString(params.Style, tea.String("ROA"))) && tea.BoolValue(util.EqualString(params.ReqBodyType, tea.String("json"))) { + _result = make(map[string]interface{}) + _body, _err := client.DoROARequest(params.Action, params.Version, params.Protocol, params.Method, params.AuthType, params.Pathname, params.BodyType, request, runtime) + if _err != nil { + return _result, _err + } + _result = _body + return _result, _err + } else if tea.BoolValue(util.EqualString(params.Style, tea.String("ROA"))) { + _result = make(map[string]interface{}) + _body, _err := client.DoROARequestWithForm(params.Action, params.Version, params.Protocol, params.Method, params.AuthType, params.Pathname, params.BodyType, request, runtime) + if _err != nil { + return _result, _err + } + _result = _body + return _result, _err + } else { + _result = make(map[string]interface{}) + _body, _err := client.DoRPCRequest(params.Action, params.Version, params.Protocol, params.Method, params.AuthType, params.BodyType, request, runtime) + if _err != nil { + return _result, _err + } + _result = _body + return _result, _err + } + +} + +// Description: +// +// # Get user agent +// +// @return user agent +func (client *Client) GetUserAgent() (_result *string) { + userAgent := util.GetUserAgent(client.UserAgent) + _result = userAgent + return _result +} + +// Description: +// +// # Get accesskey id by using credential +// +// @return accesskey id +func (client *Client) GetAccessKeyId() (_result *string, _err error) { + if tea.BoolValue(util.IsUnset(client.Credential)) { + _result = tea.String("") + return _result, _err + } + + accessKeyId, _err := client.Credential.GetAccessKeyId() + if _err != nil { + return _result, _err + } + + _result = accessKeyId + return _result, _err +} + +// Description: +// +// # Get accesskey secret by using credential +// +// @return accesskey secret +func (client *Client) GetAccessKeySecret() (_result *string, _err error) { + if tea.BoolValue(util.IsUnset(client.Credential)) { + _result = tea.String("") + return _result, _err + } + + secret, _err := client.Credential.GetAccessKeySecret() + if _err != nil { + return _result, _err + } + + _result = secret + return _result, _err +} + +// Description: +// +// # Get security token by using credential +// +// @return security token +func (client *Client) GetSecurityToken() (_result *string, _err error) { + if tea.BoolValue(util.IsUnset(client.Credential)) { + _result = tea.String("") + return _result, _err + } + + token, _err := client.Credential.GetSecurityToken() + if _err != nil { + return _result, _err + } + + _result = token + return _result, _err +} + +// Description: +// +// # Get bearer token by credential +// +// @return bearer token +func (client *Client) GetBearerToken() (_result *string, _err error) { + if tea.BoolValue(util.IsUnset(client.Credential)) { + _result = tea.String("") + return _result, _err + } + + token := client.Credential.GetBearerToken() + _result = token + return _result, _err +} + +// Description: +// +// # Get credential type by credential +// +// @return credential type e.g. access_key +func (client *Client) GetType() (_result *string, _err error) { + if tea.BoolValue(util.IsUnset(client.Credential)) { + _result = tea.String("") + return _result, _err + } + + authType := client.Credential.GetType() + _result = authType + return _result, _err +} + +// Description: +// +// # If inputValue is not null, return it or return defaultValue +// +// @param inputValue - users input value +// +// @param defaultValue - default value +// +// @return the final result +func DefaultAny(inputValue interface{}, defaultValue interface{}) (_result interface{}) { + if tea.BoolValue(util.IsUnset(inputValue)) { + _result = defaultValue + return _result + } + + _result = inputValue + return _result +} + +// Description: +// +// # If the endpointRule and config.endpoint are empty, throw error +// +// @param config - config contains the necessary information to create a client +func (client *Client) CheckConfig(config *Config) (_err error) { + if tea.BoolValue(util.Empty(client.EndpointRule)) && tea.BoolValue(util.Empty(config.Endpoint)) { + _err = tea.NewSDKError(map[string]interface{}{ + "code": "ParameterMissing", + "message": "'config.endpoint' can not be empty", + }) + return _err + } + + return _err +} + +// Description: +// +// set gateway client +// +// @param spi - . +func (client *Client) SetGatewayClient(spi spi.ClientInterface) (_err error) { + client.Spi = spi + return _err +} + +// Description: +// +// set RPC header for debug +// +// @param headers - headers for debug, this header can be used only once. +func (client *Client) SetRpcHeaders(headers map[string]*string) (_err error) { + client.Headers = headers + return _err +} + +// Description: +// +// get RPC header for debug +func (client *Client) GetRpcHeaders() (_result map[string]*string, _err error) { + headers := client.Headers + client.Headers = nil + _result = headers + return _result, _err +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/alibabacloud-go/openapi-util/LICENSE b/src/bosh-alicloud-cpi/vendor/github.com/alibabacloud-go/openapi-util/LICENSE new file mode 100644 index 00000000..0c44dcef --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/alibabacloud-go/openapi-util/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright (c) 2009-present, Alibaba Cloud All rights reserved. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/src/bosh-alicloud-cpi/vendor/github.com/alibabacloud-go/openapi-util/service/service.go b/src/bosh-alicloud-cpi/vendor/github.com/alibabacloud-go/openapi-util/service/service.go new file mode 100644 index 00000000..dc67df35 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/alibabacloud-go/openapi-util/service/service.go @@ -0,0 +1,672 @@ +// This file is auto-generated, don't edit it. Thanks. +/** + * This is for OpenApi Util + */ +package service + +import ( + "bytes" + "crypto" + "crypto/hmac" + "crypto/rand" + "crypto/rsa" + "crypto/sha1" + "crypto/sha256" + "crypto/x509" + "encoding/base64" + "encoding/hex" + "encoding/json" + "encoding/pem" + "errors" + "fmt" + "hash" + "io" + "net/http" + "net/textproto" + "net/url" + "reflect" + "sort" + "strconv" + "strings" + "time" + + util "github.com/alibabacloud-go/tea-utils/v2/service" + "github.com/alibabacloud-go/tea/tea" + "github.com/tjfoc/gmsm/sm3" +) + +const ( + PEM_BEGIN = "-----BEGIN RSA PRIVATE KEY-----\n" + PEM_END = "\n-----END RSA PRIVATE KEY-----" +) + +type Sorter struct { + Keys []string + Vals []string +} + +func newSorter(m map[string]string) *Sorter { + hs := &Sorter{ + Keys: make([]string, 0, len(m)), + Vals: make([]string, 0, len(m)), + } + + for k, v := range m { + hs.Keys = append(hs.Keys, k) + hs.Vals = append(hs.Vals, v) + } + return hs +} + +// Sort is an additional function for function SignHeader. +func (hs *Sorter) Sort() { + sort.Sort(hs) +} + +// Len is an additional function for function SignHeader. +func (hs *Sorter) Len() int { + return len(hs.Vals) +} + +// Less is an additional function for function SignHeader. +func (hs *Sorter) Less(i, j int) bool { + return bytes.Compare([]byte(hs.Keys[i]), []byte(hs.Keys[j])) < 0 +} + +// Swap is an additional function for function SignHeader. +func (hs *Sorter) Swap(i, j int) { + hs.Vals[i], hs.Vals[j] = hs.Vals[j], hs.Vals[i] + hs.Keys[i], hs.Keys[j] = hs.Keys[j], hs.Keys[i] +} + +/** + * Convert all params of body other than type of readable into content + * @param body source Model + * @param content target Model + * @return void + */ +func Convert(body interface{}, content interface{}) { + res := make(map[string]interface{}) + val := reflect.ValueOf(body).Elem() + dataType := val.Type() + for i := 0; i < dataType.NumField(); i++ { + field := dataType.Field(i) + name, _ := field.Tag.Lookup("json") + name = strings.Split(name, ",omitempty")[0] + _, ok := val.Field(i).Interface().(io.Reader) + if !ok { + res[name] = val.Field(i).Interface() + } + } + byt, _ := json.Marshal(res) + json.Unmarshal(byt, content) +} + +/** + * Get the string to be signed according to request + * @param request which contains signed messages + * @return the signed string + */ +func GetStringToSign(request *tea.Request) (_result *string) { + return tea.String(getStringToSign(request)) +} + +func getStringToSign(request *tea.Request) string { + resource := tea.StringValue(request.Pathname) + queryParams := request.Query + // sort QueryParams by key + var queryKeys []string + for key := range queryParams { + queryKeys = append(queryKeys, key) + } + sort.Strings(queryKeys) + tmp := "" + for i := 0; i < len(queryKeys); i++ { + queryKey := queryKeys[i] + v := tea.StringValue(queryParams[queryKey]) + if v != "" { + tmp = tmp + "&" + queryKey + "=" + v + } else { + tmp = tmp + "&" + queryKey + } + } + if tmp != "" { + tmp = strings.TrimLeft(tmp, "&") + resource = resource + "?" + tmp + } + return getSignedStr(request, resource) +} + +func getSignedStr(req *tea.Request, canonicalizedResource string) string { + temp := make(map[string]string) + + for k, v := range req.Headers { + if strings.HasPrefix(strings.ToLower(k), "x-acs-") { + temp[strings.ToLower(k)] = tea.StringValue(v) + } + } + hs := newSorter(temp) + + // Sort the temp by the ascending order + hs.Sort() + + // Get the canonicalizedOSSHeaders + canonicalizedOSSHeaders := "" + for i := range hs.Keys { + canonicalizedOSSHeaders += hs.Keys[i] + ":" + hs.Vals[i] + "\n" + } + + // Give other parameters values + // when sign URL, date is expires + date := tea.StringValue(req.Headers["date"]) + accept := tea.StringValue(req.Headers["accept"]) + contentType := tea.StringValue(req.Headers["content-type"]) + contentMd5 := tea.StringValue(req.Headers["content-md5"]) + + signStr := tea.StringValue(req.Method) + "\n" + accept + "\n" + contentMd5 + "\n" + contentType + "\n" + date + "\n" + canonicalizedOSSHeaders + canonicalizedResource + return signStr +} + +/** + * Get signature according to stringToSign, secret + * @param stringToSign the signed string + * @param secret accesskey secret + * @return the signature + */ +func GetROASignature(stringToSign *string, secret *string) (_result *string) { + h := hmac.New(func() hash.Hash { return sha1.New() }, []byte(tea.StringValue(secret))) + io.WriteString(h, tea.StringValue(stringToSign)) + signedStr := base64.StdEncoding.EncodeToString(h.Sum(nil)) + return tea.String(signedStr) +} + +func GetEndpoint(endpoint *string, server *bool, endpointType *string) *string { + if tea.StringValue(endpointType) == "internal" { + strs := strings.Split(tea.StringValue(endpoint), ".") + strs[0] += "-internal" + endpoint = tea.String(strings.Join(strs, ".")) + } + if tea.BoolValue(server) && tea.StringValue(endpointType) == "accelerate" { + return tea.String("oss-accelerate.aliyuncs.com") + } + + return endpoint +} + +func HexEncode(raw []byte) *string { + return tea.String(hex.EncodeToString(raw)) +} + +func Hash(raw []byte, signatureAlgorithm *string) []byte { + signType := tea.StringValue(signatureAlgorithm) + if signType == "ACS3-HMAC-SHA256" || signType == "ACS3-RSA-SHA256" { + h := sha256.New() + h.Write(raw) + return h.Sum(nil) + } else if signType == "ACS3-HMAC-SM3" { + h := sm3.New() + h.Write(raw) + return h.Sum(nil) + } + return nil +} + +func GetEncodePath(path *string) *string { + uri := tea.StringValue(path) + strs := strings.Split(uri, "/") + for i, v := range strs { + strs[i] = url.QueryEscape(v) + } + uri = strings.Join(strs, "/") + uri = strings.Replace(uri, "+", "%20", -1) + uri = strings.Replace(uri, "*", "%2A", -1) + uri = strings.Replace(uri, "%7E", "~", -1) + return tea.String(uri) +} + +func GetEncodeParam(param *string) *string { + uri := tea.StringValue(param) + uri = url.QueryEscape(uri) + uri = strings.Replace(uri, "+", "%20", -1) + uri = strings.Replace(uri, "*", "%2A", -1) + uri = strings.Replace(uri, "%7E", "~", -1) + return tea.String(uri) +} + +func GetAuthorization(request *tea.Request, signatureAlgorithm, payload, acesskey, secret *string) *string { + canonicalURI := tea.StringValue(request.Pathname) + if canonicalURI == "" { + canonicalURI = "/" + } + + canonicalURI = strings.Replace(canonicalURI, "+", "%20", -1) + canonicalURI = strings.Replace(canonicalURI, "*", "%2A", -1) + canonicalURI = strings.Replace(canonicalURI, "%7E", "~", -1) + + method := tea.StringValue(request.Method) + canonicalQueryString := getCanonicalQueryString(request.Query) + canonicalheaders, signedHeaders := getCanonicalHeaders(request.Headers) + + canonicalRequest := method + "\n" + canonicalURI + "\n" + canonicalQueryString + "\n" + canonicalheaders + "\n" + + strings.Join(signedHeaders, ";") + "\n" + tea.StringValue(payload) + signType := tea.StringValue(signatureAlgorithm) + StringToSign := signType + "\n" + tea.StringValue(HexEncode(Hash([]byte(canonicalRequest), signatureAlgorithm))) + signature := tea.StringValue(HexEncode(SignatureMethod(tea.StringValue(secret), StringToSign, signType))) + auth := signType + " Credential=" + tea.StringValue(acesskey) + ",SignedHeaders=" + + strings.Join(signedHeaders, ";") + ",Signature=" + signature + return tea.String(auth) +} + +func SignatureMethod(secret, source, signatureAlgorithm string) []byte { + if signatureAlgorithm == "ACS3-HMAC-SHA256" { + h := hmac.New(sha256.New, []byte(secret)) + h.Write([]byte(source)) + return h.Sum(nil) + } else if signatureAlgorithm == "ACS3-HMAC-SM3" { + h := hmac.New(sm3.New, []byte(secret)) + h.Write([]byte(source)) + return h.Sum(nil) + } else if signatureAlgorithm == "ACS3-RSA-SHA256" { + return rsaSign(source, secret) + } + return nil +} + +func rsaSign(content, secret string) []byte { + h := crypto.SHA256.New() + h.Write([]byte(content)) + hashed := h.Sum(nil) + priv, err := parsePrivateKey(secret) + if err != nil { + return nil + } + sign, err := rsa.SignPKCS1v15(rand.Reader, priv, crypto.SHA256, hashed) + if err != nil { + return nil + } + return sign +} + +func parsePrivateKey(privateKey string) (*rsa.PrivateKey, error) { + privateKey = formatPrivateKey(privateKey) + block, _ := pem.Decode([]byte(privateKey)) + if block == nil { + return nil, errors.New("PrivateKey is invalid") + } + priKey, err := x509.ParsePKCS8PrivateKey(block.Bytes) + if err != nil { + return nil, err + } + switch priKey.(type) { + case *rsa.PrivateKey: + return priKey.(*rsa.PrivateKey), nil + default: + return nil, nil + } +} + +func formatPrivateKey(privateKey string) string { + if !strings.HasPrefix(privateKey, PEM_BEGIN) { + privateKey = PEM_BEGIN + privateKey + } + + if !strings.HasSuffix(privateKey, PEM_END) { + privateKey += PEM_END + } + return privateKey +} + +func getCanonicalHeaders(headers map[string]*string) (string, []string) { + tmp := make(map[string]string) + tmpHeader := http.Header{} + for k, v := range headers { + if strings.HasPrefix(strings.ToLower(k), "x-acs-") || strings.ToLower(k) == "host" || + strings.ToLower(k) == "content-type" { + tmp[strings.ToLower(k)] = strings.TrimSpace(tea.StringValue(v)) + tmpHeader.Add(strings.ToLower(k), strings.TrimSpace(tea.StringValue(v))) + } + } + hs := newSorter(tmp) + + // Sort the temp by the ascending order + hs.Sort() + canonicalheaders := "" + for _, key := range hs.Keys { + vals := tmpHeader[textproto.CanonicalMIMEHeaderKey(key)] + sort.Strings(vals) + canonicalheaders += key + ":" + strings.Join(vals, ",") + "\n" + } + + return canonicalheaders, hs.Keys +} + +func getCanonicalQueryString(query map[string]*string) string { + canonicalQueryString := "" + if tea.BoolValue(util.IsUnset(query)) { + return canonicalQueryString + } + tmp := make(map[string]string) + for k, v := range query { + tmp[k] = tea.StringValue(v) + } + + hs := newSorter(tmp) + + // Sort the temp by the ascending order + hs.Sort() + for i := range hs.Keys { + if hs.Vals[i] != "" { + canonicalQueryString += "&" + hs.Keys[i] + "=" + url.QueryEscape(hs.Vals[i]) + } else { + canonicalQueryString += "&" + hs.Keys[i] + "=" + } + } + canonicalQueryString = strings.Replace(canonicalQueryString, "+", "%20", -1) + canonicalQueryString = strings.Replace(canonicalQueryString, "*", "%2A", -1) + canonicalQueryString = strings.Replace(canonicalQueryString, "%7E", "~", -1) + + if canonicalQueryString != "" { + canonicalQueryString = strings.TrimLeft(canonicalQueryString, "&") + } + return canonicalQueryString +} + +/** + * Parse filter into a form string + * @param filter object + * @return the string + */ +func ToForm(filter map[string]interface{}) (_result *string) { + tmp := make(map[string]interface{}) + byt, _ := json.Marshal(filter) + d := json.NewDecoder(bytes.NewReader(byt)) + d.UseNumber() + _ = d.Decode(&tmp) + + result := make(map[string]*string) + for key, value := range tmp { + filterValue := reflect.ValueOf(value) + flatRepeatedList(filterValue, result, key) + } + + m := util.AnyifyMapValue(result) + return util.ToFormString(m) +} + +func flatRepeatedList(dataValue reflect.Value, result map[string]*string, prefix string) { + if !dataValue.IsValid() { + return + } + + dataType := dataValue.Type() + if dataType.Kind().String() == "slice" { + handleRepeatedParams(dataValue, result, prefix) + } else if dataType.Kind().String() == "map" { + handleMap(dataValue, result, prefix) + } else { + result[prefix] = tea.String(fmt.Sprintf("%v", dataValue.Interface())) + } +} + +func handleRepeatedParams(repeatedFieldValue reflect.Value, result map[string]*string, prefix string) { + if repeatedFieldValue.IsValid() && !repeatedFieldValue.IsNil() { + for m := 0; m < repeatedFieldValue.Len(); m++ { + elementValue := repeatedFieldValue.Index(m) + key := prefix + "." + strconv.Itoa(m+1) + fieldValue := reflect.ValueOf(elementValue.Interface()) + if fieldValue.Kind().String() == "map" { + handleMap(fieldValue, result, key) + } else { + result[key] = tea.String(fmt.Sprintf("%v", fieldValue.Interface())) + } + } + } +} + +func handleMap(valueField reflect.Value, result map[string]*string, prefix string) { + if valueField.IsValid() && valueField.String() != "" { + valueFieldType := valueField.Type() + if valueFieldType.Kind().String() == "map" { + var byt []byte + byt, _ = json.Marshal(valueField.Interface()) + cache := make(map[string]interface{}) + d := json.NewDecoder(bytes.NewReader(byt)) + d.UseNumber() + _ = d.Decode(&cache) + for key, value := range cache { + pre := "" + if prefix != "" { + pre = prefix + "." + key + } else { + pre = key + } + fieldValue := reflect.ValueOf(value) + flatRepeatedList(fieldValue, result, pre) + } + } + } +} + +/** + * Get timestamp + * @return the timestamp string + */ +func GetTimestamp() (_result *string) { + gmt := time.FixedZone("GMT", 0) + return tea.String(time.Now().In(gmt).Format("2006-01-02T15:04:05Z")) +} + +/** + * Parse filter into a object which's type is map[string]string + * @param filter query param + * @return the object + */ +func Query(filter interface{}) (_result map[string]*string) { + tmp := make(map[string]interface{}) + byt, _ := json.Marshal(filter) + d := json.NewDecoder(bytes.NewReader(byt)) + d.UseNumber() + _ = d.Decode(&tmp) + + result := make(map[string]*string) + for key, value := range tmp { + filterValue := reflect.ValueOf(value) + flatRepeatedList(filterValue, result, key) + } + + return result +} + +/** + * Get signature according to signedParams, method and secret + * @param signedParams params which need to be signed + * @param method http method e.g. GET + * @param secret AccessKeySecret + * @return the signature + */ +func GetRPCSignature(signedParams map[string]*string, method *string, secret *string) (_result *string) { + stringToSign := buildRpcStringToSign(signedParams, tea.StringValue(method)) + signature := sign(stringToSign, tea.StringValue(secret), "&") + return tea.String(signature) +} + +/** + * Parse array into a string with specified style + * @param array the array + * @param prefix the prefix string + * @style specified style e.g. repeatList + * @return the string + */ +func ArrayToStringWithSpecifiedStyle(array interface{}, prefix *string, style *string) (_result *string) { + if tea.BoolValue(util.IsUnset(array)) { + return tea.String("") + } + + sty := tea.StringValue(style) + if sty == "repeatList" { + tmp := map[string]interface{}{ + tea.StringValue(prefix): array, + } + return flatRepeatList(tmp) + } else if sty == "simple" || sty == "spaceDelimited" || sty == "pipeDelimited" { + return flatArray(array, sty) + } else if sty == "json" { + return util.ToJSONString(array) + } + return tea.String("") +} + +func ParseToMap(in interface{}) map[string]interface{} { + if tea.BoolValue(util.IsUnset(in)) { + return nil + } + + tmp := make(map[string]interface{}) + byt, _ := json.Marshal(in) + d := json.NewDecoder(bytes.NewReader(byt)) + d.UseNumber() + err := d.Decode(&tmp) + if err != nil { + return nil + } + return tmp +} + +func flatRepeatList(filter map[string]interface{}) (_result *string) { + tmp := make(map[string]interface{}) + byt, _ := json.Marshal(filter) + d := json.NewDecoder(bytes.NewReader(byt)) + d.UseNumber() + _ = d.Decode(&tmp) + + result := make(map[string]*string) + for key, value := range tmp { + filterValue := reflect.ValueOf(value) + flatRepeatedList(filterValue, result, key) + } + + res := make(map[string]string) + for k, v := range result { + res[k] = tea.StringValue(v) + } + hs := newSorter(res) + + hs.Sort() + + // Get the canonicalizedOSSHeaders + t := "" + for i := range hs.Keys { + if i == len(hs.Keys)-1 { + t += hs.Keys[i] + "=" + hs.Vals[i] + } else { + t += hs.Keys[i] + "=" + hs.Vals[i] + "&&" + } + } + return tea.String(t) +} + +func flatArray(array interface{}, sty string) *string { + t := reflect.ValueOf(array) + strs := make([]string, 0) + for i := 0; i < t.Len(); i++ { + tmp := t.Index(i) + if tmp.Kind() == reflect.Ptr || tmp.Kind() == reflect.Interface { + tmp = tmp.Elem() + } + + if tmp.Kind() == reflect.Ptr { + tmp = tmp.Elem() + } + if tmp.Kind() == reflect.String { + strs = append(strs, tmp.String()) + } else { + inter := tmp.Interface() + byt, _ := json.Marshal(inter) + strs = append(strs, string(byt)) + } + } + str := "" + if sty == "simple" { + str = strings.Join(strs, ",") + } else if sty == "spaceDelimited" { + str = strings.Join(strs, " ") + } else if sty == "pipeDelimited" { + str = strings.Join(strs, "|") + } + return tea.String(str) +} + +func buildRpcStringToSign(signedParam map[string]*string, method string) (stringToSign string) { + signParams := make(map[string]string) + for key, value := range signedParam { + signParams[key] = tea.StringValue(value) + } + + stringToSign = getUrlFormedMap(signParams) + stringToSign = strings.Replace(stringToSign, "+", "%20", -1) + stringToSign = strings.Replace(stringToSign, "*", "%2A", -1) + stringToSign = strings.Replace(stringToSign, "%7E", "~", -1) + stringToSign = url.QueryEscape(stringToSign) + stringToSign = method + "&%2F&" + stringToSign + return +} + +func getUrlFormedMap(source map[string]string) (urlEncoded string) { + urlEncoder := url.Values{} + for key, value := range source { + urlEncoder.Add(key, value) + } + urlEncoded = urlEncoder.Encode() + return +} + +func sign(stringToSign, accessKeySecret, secretSuffix string) string { + secret := accessKeySecret + secretSuffix + signedBytes := shaHmac1(stringToSign, secret) + signedString := base64.StdEncoding.EncodeToString(signedBytes) + return signedString +} + +func shaHmac1(source, secret string) []byte { + key := []byte(secret) + hmac := hmac.New(sha1.New, key) + hmac.Write([]byte(source)) + return hmac.Sum(nil) +} + +func getTimeLeft(rateLimit *string) (_result *int64) { + if rateLimit != nil { + pairs := strings.Split(tea.StringValue(rateLimit), ",") + for _, pair := range pairs { + kv := strings.Split(pair, ":") + if len(kv) == 2 { + key, value := kv[0], kv[1] + if key == "TimeLeft" { + timeLeftValue, err := strconv.ParseInt(value, 10, 64) + if err != nil { + return nil + } + return tea.Int64(timeLeftValue) + } + } + } + } + return nil +} + +/** + * Get throttling param + * @param the response headers + * @return time left + */ +func GetThrottlingTimeLeft(headers map[string]*string) (_result *int64) { + rateLimitForUserApi := headers["x-ratelimit-user-api"] + rateLimitForUser := headers["x-ratelimit-user"] + timeLeftForUserApi := getTimeLeft(rateLimitForUserApi) + timeLeftForUser := getTimeLeft(rateLimitForUser) + if tea.Int64Value(timeLeftForUserApi) > tea.Int64Value(timeLeftForUser) { + return timeLeftForUserApi + } else { + return timeLeftForUser + } +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/alibabacloud-go/tea-rpc-utils/service/service.go b/src/bosh-alicloud-cpi/vendor/github.com/alibabacloud-go/tea-rpc-utils/service/service.go deleted file mode 100644 index 0b618d49..00000000 --- a/src/bosh-alicloud-cpi/vendor/github.com/alibabacloud-go/tea-rpc-utils/service/service.go +++ /dev/null @@ -1,246 +0,0 @@ -package service - -import ( - "bytes" - "crypto/hmac" - "crypto/sha1" - "encoding/base64" - "encoding/json" - "fmt" - "io" - "net/url" - "reflect" - "strconv" - "strings" - "time" - - "github.com/alibabacloud-go/tea/tea" -) - -type RuntimeObject struct { - Autoretry *bool `json:"autoretry" xml:"autoretry"` - IgnoreSSL *bool `json:"ignoreSSL" xml:"ignoreSSL"` - MaxAttempts *int `json:"maxAttempts" xml:"maxAttempts"` - BackoffPolicy *string `json:"backoffPolicy" xml:"backoffPolicy"` - BackoffPeriod *int `json:"backoffPeriod" xml:"backoffPeriod"` - ReadTimeout *int `json:"readTimeout" xml:"readTimeout"` - ConnectTimeout *int `json:"connectTimeout" xml:"connectTimeout"` - LocalAddr *string `json:"localAddr" xml:"localAddr"` - HttpProxy *string `json:"httpProxy" xml:"httpProxy"` - HttpsProxy *string `json:"httpsProxy" xml:"httpsProxy"` - NoProxy *string `json:"noProxy" xml:"noProxy"` - MaxIdleConns *int `json:"maxIdleConns" xml:"maxIdleConns"` - Socks5Proxy *string `json:"socks5Proxy" xml:"socks5Proxy"` - Socks5NetWork *string `json:"socks5NetWork" xml:"socks5NetWork"` -} - -type ServiceError struct { - Code string `json:"Code" xml:"Code"` - Message string `json:"Message" xml:"Message"` - RequestId string `json:"RequestId" xml:"RequestId"` - HostId string `json:"HostId" xml:"HostId"` -} - -func GetEndpoint(endpoint *string, server *bool, endpointType *string) *string { - if tea.StringValue(endpointType) == "internal" { - strs := strings.Split(tea.StringValue(endpoint), ".") - strs[0] += "-internal" - endpoint = tea.String(strings.Join(strs, ".")) - } - if tea.BoolValue(server) && tea.StringValue(endpointType) == "accelerate" { - return tea.String("oss-accelerate.aliyuncs.com") - } - - return endpoint -} - -func Convert(input, output interface{}) { - res := make(map[string]interface{}) - val := reflect.ValueOf(input).Elem() - dataType := val.Type() - for i := 0; i < dataType.NumField(); i++ { - field := dataType.Field(i) - name, _ := field.Tag.Lookup("json") - name = strings.Split(name, ",omitempty")[0] - _, ok := val.Field(i).Interface().(io.Reader) - if !ok { - res[name] = val.Field(i).Interface() - } - } - byt, _ := json.Marshal(res) - json.Unmarshal(byt, output) -} - -func GetTimestamp() *string { - gmt := time.FixedZone("GMT", 0) - return tea.String(time.Now().In(gmt).Format("2006-01-02T15:04:05Z")) -} - -func GetSignatureV1(signedParam map[string]*string, method *string, secret *string) *string { - stringToSign := buildRpcStringToSignV1(signedParam, tea.StringValue(method)) - signature := sign(stringToSign, tea.StringValue(secret), "&") - return tea.String(signature) -} - -func GetSignature(request *tea.Request, secret *string) *string { - stringToSign := buildRpcStringToSign(request) - signature := sign(stringToSign, tea.StringValue(secret), "&") - return tea.String(signature) -} - -func HasError(body map[string]interface{}) *bool { - if body == nil { - return tea.Bool(true) - } - if obj := body["Code"]; obj != nil { - code := fmt.Sprintf("%v", body["Code"]) - if code != "" && code != "0" { - return tea.Bool(true) - } - } - return tea.Bool(false) -} - -func Query(filter map[string]interface{}) map[string]*string { - tmp := make(map[string]interface{}) - byt, _ := json.Marshal(filter) - d := json.NewDecoder(bytes.NewReader(byt)) - d.UseNumber() - _ = d.Decode(&tmp) - - result := make(map[string]*string) - for key, value := range tmp { - filterValue := reflect.ValueOf(value) - flatRepeatedList(filterValue, result, key) - } - - return result -} - -func GetHost(product *string, regionid *string, endpoint *string) *string { - return endpoint -} - -func flatRepeatedList(dataValue reflect.Value, result map[string]*string, prefix string) { - if !dataValue.IsValid() { - return - } - - dataType := dataValue.Type() - if dataType.Kind().String() == "slice" { - handleRepeatedParams(dataValue, result, prefix) - } else if dataType.Kind().String() == "map" { - handleMap(dataValue, result, prefix) - } else { - result[prefix] = tea.String(fmt.Sprintf("%v", dataValue.Interface())) - } -} - -func handleRepeatedParams(repeatedFieldValue reflect.Value, result map[string]*string, prefix string) { - if repeatedFieldValue.IsValid() && !repeatedFieldValue.IsNil() { - for m := 0; m < repeatedFieldValue.Len(); m++ { - elementValue := repeatedFieldValue.Index(m) - key := prefix + "." + strconv.Itoa(m+1) - fieldValue := reflect.ValueOf(elementValue.Interface()) - if fieldValue.Kind().String() == "map" { - handleMap(fieldValue, result, key) - } else { - result[key] = tea.String(fmt.Sprintf("%v", fieldValue.Interface())) - } - } - } -} - -func handleMap(valueField reflect.Value, result map[string]*string, prefix string) { - if valueField.IsValid() && valueField.String() != "" { - valueFieldType := valueField.Type() - if valueFieldType.Kind().String() == "map" { - var byt []byte - byt, _ = json.Marshal(valueField.Interface()) - cache := make(map[string]interface{}) - d := json.NewDecoder(bytes.NewReader(byt)) - d.UseNumber() - _ = d.Decode(&cache) - for key, value := range cache { - pre := "" - if prefix != "" { - pre = prefix + "." + key - } else { - pre = key - } - fieldValue := reflect.ValueOf(value) - flatRepeatedList(fieldValue, result, pre) - } - } - } -} - -func sign(stringToSign, accessKeySecret, secretSuffix string) string { - secret := accessKeySecret + secretSuffix - signedBytes := shaHmac1(stringToSign, secret) - signedString := base64.StdEncoding.EncodeToString(signedBytes) - return signedString -} - -func shaHmac1(source, secret string) []byte { - key := []byte(secret) - hmac := hmac.New(sha1.New, key) - hmac.Write([]byte(source)) - return hmac.Sum(nil) -} - -func buildRpcStringToSignV1(signedParam map[string]*string, method string) (stringToSign string) { - signParams := make(map[string]string) - for key, value := range signedParam { - signParams[key] = tea.StringValue(value) - } - - stringToSign = getUrlFormedMap(signParams) - stringToSign = strings.Replace(stringToSign, "+", "%20", -1) - stringToSign = strings.Replace(stringToSign, "*", "%2A", -1) - stringToSign = strings.Replace(stringToSign, "%7E", "~", -1) - stringToSign = url.QueryEscape(stringToSign) - stringToSign = method + "&%2F&" + stringToSign - return -} - -func buildRpcStringToSign(request *tea.Request) (stringToSign string) { - signParams := make(map[string]string) - for key, value := range request.Query { - signParams[key] = tea.StringValue(value) - } - - stringToSign = getUrlFormedMap(signParams) - stringToSign = strings.Replace(stringToSign, "+", "%20", -1) - stringToSign = strings.Replace(stringToSign, "*", "%2A", -1) - stringToSign = strings.Replace(stringToSign, "%7E", "~", -1) - stringToSign = url.QueryEscape(stringToSign) - stringToSign = tea.StringValue(request.Method) + "&%2F&" + stringToSign - return -} - -func getUrlFormedMap(source map[string]string) (urlEncoded string) { - urlEncoder := url.Values{} - for key, value := range source { - urlEncoder.Add(key, value) - } - urlEncoded = urlEncoder.Encode() - return -} - -func GetOpenPlatFormEndpoint(endpoint, regionId *string) *string { - supportRegionId := []string{"ap-southeast-1", "ap-northeast-1", "eu-central-1", "cn-hongkong", "ap-south-1"} - ifExist := false - for _, value := range supportRegionId { - if value == strings.ToLower(tea.StringValue(regionId)) { - ifExist = true - } - } - if tea.StringValue(regionId) != "" && ifExist { - strs := strings.Split(tea.StringValue(endpoint), ".") - strs[0] = strs[0] + "." + tea.StringValue(regionId) - return tea.String(strings.Join(strs, ".")) - } else { - return endpoint - } -} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/alibabacloud-go/tea-rpc/client/client.go b/src/bosh-alicloud-cpi/vendor/github.com/alibabacloud-go/tea-rpc/client/client.go deleted file mode 100644 index 6b09136e..00000000 --- a/src/bosh-alicloud-cpi/vendor/github.com/alibabacloud-go/tea-rpc/client/client.go +++ /dev/null @@ -1,550 +0,0 @@ -// This file is auto-generated, don't edit it. Thanks. -/** - * This is for RPC SDK - */ -package client - -import ( - rpcutil "github.com/alibabacloud-go/tea-rpc-utils/service" - util "github.com/alibabacloud-go/tea-utils/service" - "github.com/alibabacloud-go/tea/tea" - credential "github.com/aliyun/credentials-go/credentials" -) - -/** - * Model for initing client - */ -type Config struct { - // accesskey id - AccessKeyId *string `json:"accessKeyId,omitempty" xml:"accessKeyId,omitempty"` - // accesskey secret - AccessKeySecret *string `json:"accessKeySecret,omitempty" xml:"accessKeySecret,omitempty"` - // security token - SecurityToken *string `json:"securityToken,omitempty" xml:"securityToken,omitempty"` - // http protocol - Protocol *string `json:"protocol,omitempty" xml:"protocol,omitempty"` - // region id - RegionId *string `json:"regionId,omitempty" xml:"regionId,omitempty" pattern:"^[a-zA-Z0-9_-]+$"` - // read timeout - ReadTimeout *int `json:"readTimeout,omitempty" xml:"readTimeout,omitempty"` - // connect timeout - ConnectTimeout *int `json:"connectTimeout,omitempty" xml:"connectTimeout,omitempty"` - // http proxy - HttpProxy *string `json:"httpProxy,omitempty" xml:"httpProxy,omitempty"` - // https proxy - HttpsProxy *string `json:"httpsProxy,omitempty" xml:"httpsProxy,omitempty"` - // credential - Credential credential.Credential `json:"credential,omitempty" xml:"credential,omitempty"` - // endpoint - Endpoint *string `json:"endpoint,omitempty" xml:"endpoint,omitempty"` - // proxy white list - NoProxy *string `json:"noProxy,omitempty" xml:"noProxy,omitempty"` - // max idle conns - MaxIdleConns *int `json:"maxIdleConns,omitempty" xml:"maxIdleConns,omitempty"` - // network for endpoint - Network *string `json:"network,omitempty" xml:"network,omitempty" pattern:"^[a-zA-Z0-9_-]+$"` - // user agent - UserAgent *string `json:"userAgent,omitempty" xml:"userAgent,omitempty"` - // suffix for endpoint - Suffix *string `json:"suffix,omitempty" xml:"suffix,omitempty" pattern:"^[a-zA-Z0-9_-]+$"` - // socks5 proxy - Socks5Proxy *string `json:"socks5Proxy,omitempty" xml:"socks5Proxy,omitempty"` - // socks5 network - Socks5NetWork *string `json:"socks5NetWork,omitempty" xml:"socks5NetWork,omitempty"` - // endpoint type - EndpointType *string `json:"endpointType,omitempty" xml:"endpointType,omitempty"` - // OpenPlatform endpoint - OpenPlatformEndpoint *string `json:"openPlatformEndpoint,omitempty" xml:"openPlatformEndpoint,omitempty"` - // Deprecated - // credential type - Type *string `json:"type,omitempty" xml:"type,omitempty"` - // source ip - SourceIp *string `json:"sourceIp,omitempty" xml:"sourceIp,omitempty"` - // secure transport - SecureTransport *string `json:"secureTransport,omitempty" xml:"secureTransport,omitempty"` -} - -func (s Config) String() string { - return tea.Prettify(s) -} - -func (s Config) GoString() string { - return s.String() -} - -func (s *Config) SetAccessKeyId(v string) *Config { - s.AccessKeyId = &v - return s -} - -func (s *Config) SetAccessKeySecret(v string) *Config { - s.AccessKeySecret = &v - return s -} - -func (s *Config) SetSecurityToken(v string) *Config { - s.SecurityToken = &v - return s -} - -func (s *Config) SetProtocol(v string) *Config { - s.Protocol = &v - return s -} - -func (s *Config) SetRegionId(v string) *Config { - s.RegionId = &v - return s -} - -func (s *Config) SetReadTimeout(v int) *Config { - s.ReadTimeout = &v - return s -} - -func (s *Config) SetConnectTimeout(v int) *Config { - s.ConnectTimeout = &v - return s -} - -func (s *Config) SetHttpProxy(v string) *Config { - s.HttpProxy = &v - return s -} - -func (s *Config) SetHttpsProxy(v string) *Config { - s.HttpsProxy = &v - return s -} - -func (s *Config) SetCredential(v credential.Credential) *Config { - s.Credential = v - return s -} - -func (s *Config) SetEndpoint(v string) *Config { - s.Endpoint = &v - return s -} - -func (s *Config) SetNoProxy(v string) *Config { - s.NoProxy = &v - return s -} - -func (s *Config) SetMaxIdleConns(v int) *Config { - s.MaxIdleConns = &v - return s -} - -func (s *Config) SetNetwork(v string) *Config { - s.Network = &v - return s -} - -func (s *Config) SetUserAgent(v string) *Config { - s.UserAgent = &v - return s -} - -func (s *Config) SetSuffix(v string) *Config { - s.Suffix = &v - return s -} - -func (s *Config) SetSocks5Proxy(v string) *Config { - s.Socks5Proxy = &v - return s -} - -func (s *Config) SetSocks5NetWork(v string) *Config { - s.Socks5NetWork = &v - return s -} - -func (s *Config) SetEndpointType(v string) *Config { - s.EndpointType = &v - return s -} - -func (s *Config) SetOpenPlatformEndpoint(v string) *Config { - s.OpenPlatformEndpoint = &v - return s -} - -func (s *Config) SetType(v string) *Config { - s.Type = &v - return s -} - -func (s *Config) SetSourceIp(v string) *Config { - s.SourceIp = &v - return s -} - -func (s *Config) SetSecureTransport(v string) *Config { - s.SecureTransport = &v - return s -} - -type Client struct { - Endpoint *string - RegionId *string - Protocol *string - UserAgent *string - EndpointRule *string - EndpointMap map[string]*string - Suffix *string - ReadTimeout *int - ConnectTimeout *int - HttpProxy *string - HttpsProxy *string - Socks5Proxy *string - Socks5NetWork *string - NoProxy *string - Network *string - ProductId *string - MaxIdleConns *int - EndpointType *string - OpenPlatformEndpoint *string - SourceIp *string - SecureTransport *string - Credential credential.Credential - Headers map[string]*string -} - -/** - * Init client with Config - * @param config config contains the necessary information to create a client - */ -func NewClient(config *Config) (*Client, error) { - client := new(Client) - err := client.Init(config) - return client, err -} - -func (client *Client) Init(config *Config) (_err error) { - if tea.BoolValue(util.IsUnset(tea.ToMap(config))) { - _err = tea.NewSDKError(map[string]interface{}{ - "code": "ParameterMissing", - "message": "'config' can not be unset", - }) - return _err - } - - _err = util.ValidateModel(config) - if _err != nil { - return _err - } - if !tea.BoolValue(util.Empty(config.AccessKeyId)) && !tea.BoolValue(util.Empty(config.AccessKeySecret)) { - if !tea.BoolValue(util.Empty(config.SecurityToken)) { - config.Type = tea.String("sts") - } else { - config.Type = tea.String("access_key") - } - - credentialConfig := &credential.Config{ - AccessKeyId: config.AccessKeyId, - Type: config.Type, - AccessKeySecret: config.AccessKeySecret, - SecurityToken: config.SecurityToken, - } - client.Credential, _err = credential.NewCredential(credentialConfig) - if _err != nil { - return _err - } - - } else if !tea.BoolValue(util.IsUnset(config.Credential)) { - client.Credential = config.Credential - } else { - _err = tea.NewSDKError(map[string]interface{}{ - "code": "ParameterMissing", - "message": "'accessKeyId' and 'accessKeySecret' or 'credential' can not be unset", - }) - return _err - } - - client.SourceIp = config.SourceIp - client.SecureTransport = config.SecureTransport - client.Network = config.Network - client.Suffix = config.Suffix - client.Endpoint = config.Endpoint - client.Protocol = config.Protocol - client.RegionId = config.RegionId - client.UserAgent = config.UserAgent - client.ReadTimeout = config.ReadTimeout - client.ConnectTimeout = config.ConnectTimeout - client.HttpProxy = config.HttpProxy - client.HttpsProxy = config.HttpsProxy - client.NoProxy = config.NoProxy - client.Socks5Proxy = config.Socks5Proxy - client.Socks5NetWork = config.Socks5NetWork - client.MaxIdleConns = config.MaxIdleConns - client.EndpointType = config.EndpointType - client.OpenPlatformEndpoint = config.OpenPlatformEndpoint - return nil -} - -/** - * Encapsulate the request and invoke the network - * @param action api name - * @param protocol http or https - * @param method e.g. GET - * @param version product version - * @param authType when authType is Anonymous, the signature will not be calculate - * @param pathname pathname of every api - * @param query which contains request params - * @param body content of request - * @param runtime which controls some details of call api, such as retry times - * @return the response - */ -func (client *Client) DoRequest(action *string, protocol *string, method *string, version *string, authType *string, query map[string]interface{}, body map[string]interface{}, runtime *util.RuntimeOptions) (_result map[string]interface{}, _err error) { - _err = tea.Validate(runtime) - if _err != nil { - return _result, _err - } - _runtime := map[string]interface{}{ - "timeouted": "retry", - "readTimeout": tea.IntValue(util.DefaultNumber(runtime.ReadTimeout, client.ReadTimeout)), - "connectTimeout": tea.IntValue(util.DefaultNumber(runtime.ConnectTimeout, client.ConnectTimeout)), - "httpProxy": tea.StringValue(util.DefaultString(runtime.HttpProxy, client.HttpProxy)), - "httpsProxy": tea.StringValue(util.DefaultString(runtime.HttpsProxy, client.HttpsProxy)), - "noProxy": tea.StringValue(util.DefaultString(runtime.NoProxy, client.NoProxy)), - "maxIdleConns": tea.IntValue(util.DefaultNumber(runtime.MaxIdleConns, client.MaxIdleConns)), - "retry": map[string]interface{}{ - "retryable": tea.BoolValue(runtime.Autoretry), - "maxAttempts": tea.IntValue(util.DefaultNumber(runtime.MaxAttempts, tea.Int(3))), - }, - "backoff": map[string]interface{}{ - "policy": tea.StringValue(util.DefaultString(runtime.BackoffPolicy, tea.String("no"))), - "period": tea.IntValue(util.DefaultNumber(runtime.BackoffPeriod, tea.Int(1))), - }, - "ignoreSSL": tea.BoolValue(runtime.IgnoreSSL), - } - - _resp := make(map[string]interface{}) - for _retryTimes := 0; tea.BoolValue(tea.AllowRetry(_runtime["retry"], tea.Int(_retryTimes))); _retryTimes++ { - if _retryTimes > 0 { - _backoffTime := tea.GetBackoffTime(_runtime["backoff"], tea.Int(_retryTimes)) - if tea.IntValue(_backoffTime) > 0 { - tea.Sleep(_backoffTime) - } - } - - _resp, _err = func() (map[string]interface{}, error) { - request_ := tea.NewRequest() - request_.Protocol = util.DefaultString(client.Protocol, protocol) - request_.Method = method - request_.Pathname = tea.String("/") - request_.Query = rpcutil.Query(tea.ToMap(map[string]interface{}{ - "Action": tea.StringValue(action), - "Format": "json", - "Timestamp": tea.StringValue(rpcutil.GetTimestamp()), - "Version": tea.StringValue(version), - "SignatureNonce": tea.StringValue(util.GetNonce()), - }, query)) - if !tea.BoolValue(util.IsUnset(client.SourceIp)) { - request_.Query["SourceIp"] = client.SourceIp - } - - if !tea.BoolValue(util.IsUnset(client.SecureTransport)) { - request_.Query["SecureTransport"] = client.SecureTransport - } - headers, _err := client.GetHeaders() - if tea.BoolValue(util.IsUnset(headers)) { - // endpoint is setted in product client - request_.Headers = map[string]*string{ - "host": client.Endpoint, - "x-acs-version": version, - "x-acs-action": action, - "user-agent": client.GetUserAgent(), - } - } else { - request_.Headers = tea.Merge(map[string]*string{ - "host": client.Endpoint, - "x-acs-version": version, - "x-acs-action": action, - "user-agent": client.GetUserAgent(), - }, headers) - } - if !tea.BoolValue(util.IsUnset(body)) { - tmp := util.AnyifyMapValue(rpcutil.Query(body)) - request_.Body = tea.ToReader(util.ToFormString(tmp)) - request_.Headers["content-type"] = tea.String("application/x-www-form-urlencoded") - } - - if !tea.BoolValue(util.EqualString(authType, tea.String("Anonymous"))) { - accessKeyId, _err := client.GetAccessKeyId() - if _err != nil { - return _result, _err - } - - accessKeySecret, _err := client.GetAccessKeySecret() - if _err != nil { - return _result, _err - } - - securityToken, _err := client.GetSecurityToken() - if _err != nil { - return _result, _err - } - - if !tea.BoolValue(util.Empty(securityToken)) { - request_.Query["SecurityToken"] = securityToken - } - - request_.Query["SignatureMethod"] = tea.String("HMAC-SHA1") - request_.Query["SignatureVersion"] = tea.String("1.0") - request_.Query["AccessKeyId"] = accessKeyId - signedParam := tea.Merge(request_.Query, - rpcutil.Query(body)) - request_.Query["Signature"] = rpcutil.GetSignatureV1(signedParam, request_.Method, accessKeySecret) - } - - response_, _err := tea.DoRequest(request_, _runtime) - if _err != nil { - return _result, _err - } - obj, _err := util.ReadAsJSON(response_.Body) - if _err != nil { - return _result, _err - } - res := util.AssertAsMap(obj) - res["_headers"] = response_.Headers - if tea.BoolValue(util.Is4xx(response_.StatusCode)) || tea.BoolValue(util.Is5xx(response_.StatusCode)) { - _err = tea.NewSDKError(map[string]interface{}{ - "code": tea.ToString(DefaultAny(res["Code"], res["code"])), - "statusCode": tea.IntValue(response_.StatusCode), - "message": "code: " + tea.ToString(tea.IntValue(response_.StatusCode)) + ", " + tea.ToString(DefaultAny(res["Message"], res["message"])) + " request id: " + tea.ToString(DefaultAny(res["RequestId"], res["requestId"])), - "data": res, - "_headers": response_.Headers, - }) - return _result, _err - } - - _result = res - _result["_headers"] = response_.Headers - return _result, _err - }() - if !tea.BoolValue(tea.Retryable(_err)) { - break - } - } - - return _resp, _err -} - -/** - * Get user agent - * @return user agent - */ -func (client *Client) GetUserAgent() (_result *string) { - userAgent := util.GetUserAgent(client.UserAgent) - _result = userAgent - return _result -} - -/** - * Get accesskey id by using credential - * @return accesskey id - */ -func (client *Client) GetAccessKeyId() (_result *string, _err error) { - if tea.BoolValue(util.IsUnset(client.Credential)) { - return _result, _err - } - - accessKeyId, _err := client.Credential.GetAccessKeyId() - if _err != nil { - return _result, _err - } - - _result = accessKeyId - return _result, _err -} - -/** - * Get accesskey secret by using credential - * @return accesskey secret - */ -func (client *Client) GetAccessKeySecret() (_result *string, _err error) { - if tea.BoolValue(util.IsUnset(client.Credential)) { - return _result, _err - } - - secret, _err := client.Credential.GetAccessKeySecret() - if _err != nil { - return _result, _err - } - - _result = secret - return _result, _err -} - -/** - * Get security token by using credential - * @return security token - */ -func (client *Client) GetSecurityToken() (_result *string, _err error) { - if tea.BoolValue(util.IsUnset(client.Credential)) { - return _result, _err - } - - token, _err := client.Credential.GetSecurityToken() - if _err != nil { - return _result, _err - } - - _result = token - return _result, _err -} - -/** - * If the endpointRule and config.endpoint are empty, throw error - * @param config config contains the necessary information to create a client - */ -func (client *Client) CheckConfig(config *Config) (_err error) { - if tea.BoolValue(util.Empty(client.EndpointRule)) && tea.BoolValue(util.Empty(config.Endpoint)) { - _err = tea.NewSDKError(map[string]interface{}{ - "code": "ParameterMissing", - "message": "'config.endpoint' can not be empty", - }) - return _err - } - - return _err -} - -/** - * set RPC header for debug - * @param headers headers for debug, this header can be used only once. - */ -func (client *Client) SetHeaders(headers map[string]*string) (_err error) { - client.Headers = headers - return _err -} - -/** - * get RPC header for debug - */ -func (client *Client) GetHeaders() (_result map[string]*string, _err error) { - headers := client.Headers - client.Headers = nil - _result = headers - return _result, _err -} - -/** - * If inputValue is not null, return it or return defaultValue - * @param inputValue users input value - * @param defaultValue default value - * @return the final result - */ -func DefaultAny(inputValue interface{}, defaultValue interface{}) (_result interface{}) { - if tea.BoolValue(util.IsUnset(inputValue)) { - _result = defaultValue - return _result - } - - _result = inputValue - return _result -} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/alibabacloud-go/tea-utils/service/util.go b/src/bosh-alicloud-cpi/vendor/github.com/alibabacloud-go/tea-utils/service/util.go deleted file mode 100644 index a73cb560..00000000 --- a/src/bosh-alicloud-cpi/vendor/github.com/alibabacloud-go/tea-utils/service/util.go +++ /dev/null @@ -1,52 +0,0 @@ -package service - -import ( - "crypto/md5" - "crypto/rand" - "encoding/hex" - "hash" - rand2 "math/rand" -) - -type UUID [16]byte - -const numBytes = "1234567890" - -func getUUID() (uuidHex string) { - uuid := newUUID() - uuidHex = hex.EncodeToString(uuid[:]) - return -} - -func randStringBytes(n int) string { - b := make([]byte, n) - for i := range b { - b[i] = numBytes[rand2.Intn(len(numBytes))] - } - return string(b) -} - -func newUUID() UUID { - ns := UUID{} - safeRandom(ns[:]) - u := newFromHash(md5.New(), ns, randStringBytes(16)) - u[6] = (u[6] & 0x0f) | (byte(2) << 4) - u[8] = (u[8]&(0xff>>2) | (0x02 << 6)) - - return u -} - -func newFromHash(h hash.Hash, ns UUID, name string) UUID { - u := UUID{} - h.Write(ns[:]) - h.Write([]byte(name)) - copy(u[:], h.Sum(nil)) - - return u -} - -func safeRandom(dest []byte) { - if _, err := rand.Read(dest); err != nil { - panic(err) - } -} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/alibabacloud-go/tea-utils/v2/LICENSE b/src/bosh-alicloud-cpi/vendor/github.com/alibabacloud-go/tea-utils/v2/LICENSE new file mode 100644 index 00000000..0c44dcef --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/alibabacloud-go/tea-utils/v2/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright (c) 2009-present, Alibaba Cloud All rights reserved. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/src/bosh-alicloud-cpi/vendor/github.com/alibabacloud-go/tea-utils/service/service.go b/src/bosh-alicloud-cpi/vendor/github.com/alibabacloud-go/tea-utils/v2/service/service.go similarity index 61% rename from src/bosh-alicloud-cpi/vendor/github.com/alibabacloud-go/tea-utils/service/service.go rename to src/bosh-alicloud-cpi/vendor/github.com/alibabacloud-go/tea-utils/v2/service/service.go index 51ce5acc..3a323f10 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/alibabacloud-go/tea-utils/service/service.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/alibabacloud-go/tea-utils/v2/service/service.go @@ -2,16 +2,21 @@ package service import ( "bytes" + "crypto/md5" + "encoding/hex" "encoding/json" + "errors" "fmt" "io" "io/ioutil" + "math/rand" "net/http" "net/url" "reflect" "runtime" "strconv" "strings" + "sync/atomic" "time" "github.com/alibabacloud-go/tea/tea" @@ -19,22 +24,62 @@ import ( var defaultUserAgent = fmt.Sprintf("AlibabaCloud (%s; %s) Golang/%s Core/%s TeaDSL/1", runtime.GOOS, runtime.GOARCH, strings.Trim(runtime.Version(), "go"), "0.01") +type ExtendsParameters struct { + Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"` + Queries map[string]*string `json:"queries,omitempty" xml:"queries,omitempty"` +} + +func (s ExtendsParameters) String() string { + return tea.Prettify(s) +} + +func (s ExtendsParameters) GoString() string { + return s.String() +} + +func (s *ExtendsParameters) SetHeaders(v map[string]*string) *ExtendsParameters { + s.Headers = v + return s +} + +func (s *ExtendsParameters) SetQueries(v map[string]*string) *ExtendsParameters { + s.Queries = v + return s +} + type RuntimeOptions struct { - Autoretry *bool `json:"autoretry" xml:"autoretry"` - IgnoreSSL *bool `json:"ignoreSSL" xml:"ignoreSSL"` - MaxAttempts *int `json:"maxAttempts" xml:"maxAttempts"` - BackoffPolicy *string `json:"backoffPolicy" xml:"backoffPolicy"` - BackoffPeriod *int `json:"backoffPeriod" xml:"backoffPeriod"` - ReadTimeout *int `json:"readTimeout" xml:"readTimeout"` - ConnectTimeout *int `json:"connectTimeout" xml:"connectTimeout"` - LocalAddr *string `json:"localAddr" xml:"localAddr"` - HttpProxy *string `json:"httpProxy" xml:"httpProxy"` - HttpsProxy *string `json:"httpsProxy" xml:"httpsProxy"` - NoProxy *string `json:"noProxy" xml:"noProxy"` - MaxIdleConns *int `json:"maxIdleConns" xml:"maxIdleConns"` - Socks5Proxy *string `json:"socks5Proxy" xml:"socks5Proxy"` - Socks5NetWork *string `json:"socks5NetWork" xml:"socks5NetWork"` - KeepAlive *bool `json:"keepAlive" xml:"keepAlive"` + Autoretry *bool `json:"autoretry" xml:"autoretry"` + IgnoreSSL *bool `json:"ignoreSSL" xml:"ignoreSSL"` + Key *string `json:"key,omitempty" xml:"key,omitempty"` + Cert *string `json:"cert,omitempty" xml:"cert,omitempty"` + Ca *string `json:"ca,omitempty" xml:"ca,omitempty"` + MaxAttempts *int `json:"maxAttempts" xml:"maxAttempts"` + BackoffPolicy *string `json:"backoffPolicy" xml:"backoffPolicy"` + BackoffPeriod *int `json:"backoffPeriod" xml:"backoffPeriod"` + ReadTimeout *int `json:"readTimeout" xml:"readTimeout"` + ConnectTimeout *int `json:"connectTimeout" xml:"connectTimeout"` + LocalAddr *string `json:"localAddr" xml:"localAddr"` + HttpProxy *string `json:"httpProxy" xml:"httpProxy"` + HttpsProxy *string `json:"httpsProxy" xml:"httpsProxy"` + NoProxy *string `json:"noProxy" xml:"noProxy"` + MaxIdleConns *int `json:"maxIdleConns" xml:"maxIdleConns"` + Socks5Proxy *string `json:"socks5Proxy" xml:"socks5Proxy"` + Socks5NetWork *string `json:"socks5NetWork" xml:"socks5NetWork"` + KeepAlive *bool `json:"keepAlive" xml:"keepAlive"` + ExtendsParameters *ExtendsParameters `json:"extendsParameters,omitempty" xml:"extendsParameters,omitempty"` +} + +var processStartTime int64 = time.Now().UnixNano() / 1e6 +var seqId int64 = 0 + +func getGID() uint64 { + // https://blog.sgmansfield.com/2015/12/goroutine-ids/ + b := make([]byte, 64) + b = b[:runtime.Stack(b, false)] + b = bytes.TrimPrefix(b, []byte("goroutine ")) + b = b[:bytes.IndexByte(b, ' ')] + n, _ := strconv.ParseUint(string(b), 10, 64) + return n } func (s RuntimeOptions) String() string { @@ -55,6 +100,21 @@ func (s *RuntimeOptions) SetIgnoreSSL(v bool) *RuntimeOptions { return s } +func (s *RuntimeOptions) SetKey(v string) *RuntimeOptions { + s.Key = &v + return s +} + +func (s *RuntimeOptions) SetCert(v string) *RuntimeOptions { + s.Cert = &v + return s +} + +func (s *RuntimeOptions) SetCa(v string) *RuntimeOptions { + s.Ca = &v + return s +} + func (s *RuntimeOptions) SetMaxAttempts(v int) *RuntimeOptions { s.MaxAttempts = &v return s @@ -120,6 +180,11 @@ func (s *RuntimeOptions) SetKeepAlive(v bool) *RuntimeOptions { return s } +func (s *RuntimeOptions) SetExtendsParameters(v *ExtendsParameters) *RuntimeOptions { + s.ExtendsParameters = v + return s +} + func ReadAsString(body io.Reader) (*string, error) { byt, err := ioutil.ReadAll(body) if err != nil { @@ -136,13 +201,7 @@ func StringifyMapValue(a map[string]interface{}) map[string]*string { res := make(map[string]*string) for key, value := range a { if value != nil { - switch value.(type) { - case string: - res[key] = tea.String(value.(string)) - default: - byt, _ := json.Marshal(value) - res[key] = tea.String(string(byt)) - } + res[key] = ToJSONString(value) } } return res @@ -190,11 +249,13 @@ func ToJSONString(a interface{}) *string { } return tea.String(string(byt)) } - byt, err := json.Marshal(a) - if err != nil { + byt := bytes.NewBuffer([]byte{}) + jsonEncoder := json.NewEncoder(byt) + jsonEncoder.SetEscapeHTML(false) + if err := jsonEncoder.Encode(a); err != nil { return nil } - return tea.String(string(byt)) + return tea.String(string(bytes.TrimSpace(byt.Bytes()))) } func DefaultNumber(reaNum, defaultNum *int) *int { @@ -223,7 +284,15 @@ func ReadAsJSON(body io.Reader) (result interface{}, err error) { } func GetNonce() *string { - return tea.String(getUUID()) + routineId := getGID() + currentTime := time.Now().UnixNano() / 1e6 + seq := atomic.AddInt64(&seqId, 1) + randNum := rand.Int63() + msg := fmt.Sprintf("%d-%d-%d-%d-%d", processStartTime, routineId, currentTime, seq, randNum) + h := md5.New() + h.Write([]byte(msg)) + ret := hex.EncodeToString(h.Sum(nil)) + return &ret } func Empty(val *string) *bool { @@ -265,10 +334,10 @@ func ToBytes(a *string) []byte { return []byte(tea.StringValue(a)) } -func AssertAsMap(a interface{}) map[string]interface{} { +func AssertAsMap(a interface{}) (_result map[string]interface{}, _err error) { r := reflect.ValueOf(a) if r.Kind().String() != "map" { - panic(fmt.Sprintf("%v is not a map[string]interface{}", a)) + return nil, errors.New(fmt.Sprintf("%v is not a map[string]interface{}", a)) } res := make(map[string]interface{}) @@ -277,10 +346,10 @@ func AssertAsMap(a interface{}) map[string]interface{} { res[key.String()] = r.MapIndex(key).Interface() } - return res + return res, nil } -func AssertAsNumber(a interface{}) *int { +func AssertAsNumber(a interface{}) (_result *int, _err error) { res := 0 switch a.(type) { case int: @@ -290,13 +359,33 @@ func AssertAsNumber(a interface{}) *int { tmp := a.(*int) res = tea.IntValue(tmp) default: - panic(fmt.Sprintf("%v is not a int", a)) + return nil, errors.New(fmt.Sprintf("%v is not a int", a)) } - return tea.Int(res) + return tea.Int(res), nil } -func AssertAsBoolean(a interface{}) *bool { +/** + * Assert a value, if it is a integer, return it, otherwise throws + * @return the integer value + */ +func AssertAsInteger(value interface{}) (_result *int, _err error) { + res := 0 + switch value.(type) { + case int: + tmp := value.(int) + res = tmp + case *int: + tmp := value.(*int) + res = tea.IntValue(tmp) + default: + return nil, errors.New(fmt.Sprintf("%v is not a int", value)) + } + + return tea.Int(res), nil +} + +func AssertAsBoolean(a interface{}) (_result *bool, _err error) { res := false switch a.(type) { case bool: @@ -306,13 +395,13 @@ func AssertAsBoolean(a interface{}) *bool { tmp := a.(*bool) res = tea.BoolValue(tmp) default: - panic(fmt.Sprintf("%v is not a bool", a)) + return nil, errors.New(fmt.Sprintf("%v is not a bool", a)) } - return tea.Bool(res) + return tea.Bool(res), nil } -func AssertAsString(a interface{}) *string { +func AssertAsString(a interface{}) (_result *string, _err error) { res := "" switch a.(type) { case string: @@ -322,39 +411,39 @@ func AssertAsString(a interface{}) *string { tmp := a.(*string) res = tea.StringValue(tmp) default: - panic(fmt.Sprintf("%v is not a string", a)) + return nil, errors.New(fmt.Sprintf("%v is not a string", a)) } - return tea.String(res) + return tea.String(res), nil } -func AssertAsBytes(a interface{}) []byte { +func AssertAsBytes(a interface{}) (_result []byte, _err error) { res, ok := a.([]byte) if !ok { - panic(fmt.Sprintf("%v is not []byte", a)) + return nil, errors.New(fmt.Sprintf("%v is not a []byte", a)) } - return res + return res, nil } -func AssertAsReadable(a interface{}) io.Reader { +func AssertAsReadable(a interface{}) (_result io.Reader, _err error) { res, ok := a.(io.Reader) if !ok { - panic(fmt.Sprintf("%v is not reader", a)) + return nil, errors.New(fmt.Sprintf("%v is not a reader", a)) } - return res + return res, nil } -func AssertAsArray(a interface{}) []interface{} { +func AssertAsArray(a interface{}) (_result []interface{}, _err error) { r := reflect.ValueOf(a) if r.Kind().String() != "array" && r.Kind().String() != "slice" { - panic(fmt.Sprintf("%v is not a [x]interface{}", a)) + return nil, errors.New(fmt.Sprintf("%v is not a []interface{}", a)) } aLen := r.Len() res := make([]interface{}, 0) for i := 0; i < aLen; i++ { res = append(res, r.Index(i).Interface()) } - return res + return res, nil } func ParseJSON(a *string) interface{} { diff --git a/src/bosh-alicloud-cpi/vendor/github.com/alibabacloud-go/tea-xml/LICENSE b/src/bosh-alicloud-cpi/vendor/github.com/alibabacloud-go/tea-xml/LICENSE new file mode 100644 index 00000000..0c44dcef --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/alibabacloud-go/tea-xml/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright (c) 2009-present, Alibaba Cloud All rights reserved. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/src/bosh-alicloud-cpi/vendor/github.com/alibabacloud-go/tea-xml/service/service.go b/src/bosh-alicloud-cpi/vendor/github.com/alibabacloud-go/tea-xml/service/service.go new file mode 100644 index 00000000..33139c74 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/alibabacloud-go/tea-xml/service/service.go @@ -0,0 +1,105 @@ +package service + +import ( + "bytes" + "encoding/xml" + "fmt" + "reflect" + "strings" + + "github.com/alibabacloud-go/tea/tea" + v2 "github.com/clbanning/mxj/v2" +) + +func ToXML(obj map[string]interface{}) *string { + return tea.String(mapToXML(obj)) +} + +func ParseXml(val *string, result interface{}) map[string]interface{} { + resp := make(map[string]interface{}) + + start := getStartElement([]byte(tea.StringValue(val))) + if result == nil { + vm, err := v2.NewMapXml([]byte(tea.StringValue(val))) + if err != nil { + return nil + } + return vm + } + out, err := xmlUnmarshal([]byte(tea.StringValue(val)), result) + if err != nil { + return resp + } + resp[start] = out + return resp +} + +func mapToXML(val map[string]interface{}) string { + res := "" + for key, value := range val { + switch value.(type) { + case []interface{}: + for _, v := range value.([]interface{}) { + switch v.(type) { + case map[string]interface{}: + res += `<` + key + `>` + res += mapToXML(v.(map[string]interface{})) + res += `` + default: + if fmt.Sprintf("%v", v) != `` { + res += `<` + key + `>` + res += fmt.Sprintf("%v", v) + res += `` + } + } + } + case map[string]interface{}: + res += `<` + key + `>` + res += mapToXML(value.(map[string]interface{})) + res += `` + default: + if fmt.Sprintf("%v", value) != `` { + res += `<` + key + `>` + res += fmt.Sprintf("%v", value) + res += `` + } + } + } + return res +} + +func getStartElement(body []byte) string { + d := xml.NewDecoder(bytes.NewReader(body)) + for { + tok, err := d.Token() + if err != nil { + return "" + } + if t, ok := tok.(xml.StartElement); ok { + return t.Name.Local + } + } +} + +func xmlUnmarshal(body []byte, result interface{}) (interface{}, error) { + start := getStartElement(body) + dataValue := reflect.ValueOf(result).Elem() + dataType := dataValue.Type() + for i := 0; i < dataType.NumField(); i++ { + field := dataType.Field(i) + name, containsNameTag := field.Tag.Lookup("xml") + name = strings.Replace(name, ",omitempty", "", -1) + if containsNameTag { + if name == start { + realType := dataValue.Field(i).Type() + realValue := reflect.New(realType).Interface() + err := xml.Unmarshal(body, realValue) + if err != nil { + return nil, err + } + return realValue, nil + } + } + } + return nil, nil +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/alibabacloud-go/tea/tea/tea.go b/src/bosh-alicloud-cpi/vendor/github.com/alibabacloud-go/tea/tea/tea.go index c984caf8..3fc9b086 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/alibabacloud-go/tea/tea/tea.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/alibabacloud-go/tea/tea/tea.go @@ -218,8 +218,11 @@ func NewSDKError(obj map[string]interface{}) *SDKError { } } } - byt, _ := json.Marshal(data) - err.Data = String(string(byt)) + byt := bytes.NewBuffer([]byte{}) + jsonEncoder := json.NewEncoder(byt) + jsonEncoder.SetEscapeHTML(false) + jsonEncoder.Encode(data) + err.Data = String(string(bytes.TrimSpace(byt.Bytes()))) } if statusCode, ok := obj["statusCode"].(int); ok { diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/LICENSE b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/LICENSE index 261eeb9e..0c44dcef 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/LICENSE +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/LICENSE @@ -186,7 +186,7 @@ same "printed page" as the copyright notice for easier identification within third-party archives. - Copyright [yyyy] [name of copyright owner] + Copyright (c) 2009-present, Alibaba Cloud All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/api_timeout.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/api_timeout.go index d7968dab..bf64c57d 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/api_timeout.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/api_timeout.go @@ -233,10 +233,15 @@ var apiTimeouts = `{ } ` +var timeout map[string]map[string]int + +func init() { + timeout = make(map[string]map[string]int) + json.Unmarshal([]byte(apiTimeouts), &timeout) +} + func getAPIMaxTimeout(product, actionName string) (time.Duration, bool) { - timeout := make(map[string]map[string]int) - err := json.Unmarshal([]byte(apiTimeouts), &timeout) - if err != nil { + if timeout == nil { return 0 * time.Millisecond, false } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/instance_credentials.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/instance_credentials.go index 1906d21f..074f6350 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/instance_credentials.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/instance_credentials.go @@ -69,7 +69,7 @@ func (p *InstanceCredentialsProvider) Resolve() (auth.Credential, error) { func get(url string) (status int, content []byte, err error) { httpClient := http.DefaultClient - httpClient.Timeout = time.Second * 1 + httpClient.Timeout = 1 * time.Second resp, err := httpClient.Get(url) if err != nil { return diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/profile_credentials.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/profile_credentials.go index 8d525c37..146b9794 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/profile_credentials.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider/profile_credentials.go @@ -40,7 +40,8 @@ func NewProfileProvider(name ...string) Provider { func (p *ProfileProvider) Resolve() (auth.Credential, error) { path, ok := os.LookupEnv(ENVCredentialFile) if !ok { - path, err := checkDefaultPath() + var err error + path, err = checkDefaultPath() if err != nil { return nil, err } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/sts_role_arn_credential.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/sts_role_arn_credential.go index 27602fd7..c8e07018 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/sts_role_arn_credential.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/sts_role_arn_credential.go @@ -16,6 +16,8 @@ type RamRoleArnCredential struct { RoleSessionName string RoleSessionExpiration int Policy string + StsRegion string + ExternalId string } // Deprecated: Use RamRoleArnCredential in this package instead. @@ -59,3 +61,15 @@ func NewRamRoleArnWithPolicyCredential(accessKeyId, accessKeySecret, roleArn, ro Policy: policy, } } + +func NewRamRoleArnWithPolicyAndExternalIdCredential(accessKeyId, accessKeySecret, roleArn, roleSessionName, policy, externalId string, roleSessionExpiration int) *RamRoleArnCredential { + return &RamRoleArnCredential{ + AccessKeyId: accessKeyId, + AccessKeySecret: accessKeySecret, + RoleArn: roleArn, + RoleSessionName: roleSessionName, + RoleSessionExpiration: roleSessionExpiration, + Policy: policy, + ExternalId: externalId, + } +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/roa_signature_composer.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/roa_signature_composer.go index 8b4037a0..9c55811d 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/roa_signature_composer.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/roa_signature_composer.go @@ -34,14 +34,16 @@ func init() { } func signRoaRequest(request requests.AcsRequest, signer Signer, regionId string) (err error) { - completeROASignParams(request, signer, regionId) - stringToSign := buildRoaStringToSign(request) - request.SetStringToSign(stringToSign) + // 先获取 accesskey,确保刷新 credential accessKeyId, err := signer.GetAccessKeyId() if err != nil { return err } + completeROASignParams(request, signer, regionId) + stringToSign := buildRoaStringToSign(request) + request.SetStringToSign(stringToSign) + signature := signer.Sign(stringToSign, "") request.GetHeaders()["Authorization"] = "acs " + accessKeyId + ":" + signature @@ -77,7 +79,9 @@ func completeROASignParams(request requests.AcsRequest, signer Signer, regionId if request.GetFormParams() != nil && len(request.GetFormParams()) > 0 { formString := utils.GetUrlFormedMap(request.GetFormParams()) request.SetContent([]byte(formString)) - headerParams["Content-Type"] = requests.Form + if headerParams["Content-Type"] == "" { + headerParams["Content-Type"] = requests.Form + } } contentMD5 := utils.GetMD5Base64(request.GetContent()) headerParams["Content-MD5"] = contentMD5 diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/rpc_signature_composer.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/rpc_signature_composer.go index 33967b9e..2442d2fc 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/rpc_signature_composer.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/rpc_signature_composer.go @@ -52,7 +52,7 @@ func completeRpcSignParams(request requests.AcsRequest, signer Signer, regionId queryParams["SignatureMethod"] = signer.GetName() queryParams["SignatureType"] = signer.GetType() queryParams["SignatureVersion"] = signer.GetVersion() - queryParams["SignatureNonce"] = hookGetNonce(utils.GetUUID) + queryParams["SignatureNonce"] = hookGetNonce(utils.GetNonce) queryParams["AccessKeyId"], err = signer.GetAccessKeyId() if err != nil { diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_ram_role_arn.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_ram_role_arn.go index c945c8ae..abfcfb85 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_ram_role_arn.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/signers/signer_ram_role_arn.go @@ -114,6 +114,11 @@ func (signer *RamRoleArnSigner) Sign(stringToSign, secretSuffix string) string { func (signer *RamRoleArnSigner) buildCommonRequest() (request *requests.CommonRequest, err error) { request = requests.NewCommonRequest() + if signer.credential.StsRegion != "" { + request.Domain = fmt.Sprintf("sts.%s.aliyuncs.com", signer.credential.StsRegion) + } else { + request.Domain = "sts.aliyuncs.com" + } request.Product = "Sts" request.Version = "2015-04-01" request.ApiName = "AssumeRole" @@ -122,6 +127,9 @@ func (signer *RamRoleArnSigner) buildCommonRequest() (request *requests.CommonRe if signer.credential.Policy != "" { request.QueryParams["Policy"] = signer.credential.Policy } + if signer.credential.ExternalId != "" { + request.QueryParams["ExternalId"] = signer.credential.ExternalId + } request.QueryParams["RoleSessionName"] = signer.credential.RoleSessionName request.QueryParams["DurationSeconds"] = strconv.Itoa(signer.credentialExpiration) return diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/client.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/client.go index 4d357fad..0bf996b0 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/client.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/client.go @@ -22,10 +22,11 @@ import ( "net/http" "net/url" "os" + "reflect" + "regexp" "runtime" "strconv" "strings" - "sync" "time" "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" @@ -36,6 +37,8 @@ import ( "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" "github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils" + opentracing "github.com/opentracing/opentracing-go" + "github.com/opentracing/opentracing-go/ext" ) var debug utils.Debug @@ -57,27 +60,28 @@ var hookDo = func(fn func(req *http.Request) (*http.Response, error)) func(req * // Client the type Client type Client struct { - isInsecure bool - regionId string - config *Config - httpProxy string - httpsProxy string - noProxy string - logger *Logger - userAgent map[string]string - signer auth.Signer - httpClient *http.Client - asyncTaskQueue chan func() - readTimeout time.Duration - connectTimeout time.Duration - EndpointMap map[string]string - EndpointType string - Network string - - debug bool - isRunning bool - // void "panic(write to close channel)" cause of addAsync() after Shutdown() - asyncChanLock *sync.RWMutex + SourceIp string + SecureTransport string + isInsecure bool + regionId string + config *Config + httpProxy string + httpsProxy string + noProxy string + logger *Logger + userAgent map[string]string + signer auth.Signer + httpClient *http.Client + asyncTaskQueue chan func() + readTimeout time.Duration + connectTimeout time.Duration + EndpointMap map[string]string + EndpointType string + Network string + Domain string + isOpenAsync bool + isCloseTrace bool + rootSpan opentracing.Span } func (client *Client) Init() (err error) { @@ -122,6 +126,29 @@ func (client *Client) GetNoProxy() string { return client.noProxy } +func (client *Client) SetTransport(transport http.RoundTripper) { + if client.httpClient == nil { + client.httpClient = &http.Client{} + } + client.httpClient.Transport = transport +} + +func (client *Client) SetCloseTrace(isCloseTrace bool) { + client.isCloseTrace = isCloseTrace +} + +func (client *Client) GetCloseTrace() bool { + return client.isCloseTrace +} + +func (client *Client) SetTracerRootSpan(rootSpan opentracing.Span) { + client.rootSpan = rootSpan +} + +func (client *Client) GetTracerRootSpan() opentracing.Span { + return client.rootSpan +} + // InitWithProviderChain will get credential from the providerChain, // the RsaKeyPairCredential Only applicable to regionID `ap-northeast-1`, // if your providerChain may return a credential type with RsaKeyPairCredential, @@ -136,13 +163,21 @@ func (client *Client) InitWithProviderChain(regionId string, provider provider.P } func (client *Client) InitWithOptions(regionId string, config *Config, credential auth.Credential) (err error) { - client.isRunning = true - client.asyncChanLock = new(sync.RWMutex) + if regionId != "" { + match, _ := regexp.MatchString("^[a-zA-Z0-9_-]+$", regionId) + if !match { + return fmt.Errorf("regionId contains invalid characters") + } + } + client.regionId = regionId client.config = config client.httpClient = &http.Client{} + client.isCloseTrace = false - if config.HttpTransport != nil { + if config.Transport != nil { + client.httpClient.Transport = config.Transport + } else if config.HttpTransport != nil { client.httpClient.Transport = config.HttpTransport } @@ -212,15 +247,20 @@ func (client *Client) getNoProxy(scheme string) []string { // EnableAsync enable the async task queue func (client *Client) EnableAsync(routinePoolSize, maxTaskQueueSize int) { + if client.isOpenAsync { + fmt.Println("warning: Please not call EnableAsync repeatedly") + return + } + client.isOpenAsync = true client.asyncTaskQueue = make(chan func(), maxTaskQueueSize) for i := 0; i < routinePoolSize; i++ { go func() { - for client.isRunning { - select { - case task, notClosed := <-client.asyncTaskQueue: - if notClosed { - task() - } + for { + task, notClosed := <-client.asyncTaskQueue + if !notClosed { + return + } else { + task() } } }() @@ -229,7 +269,7 @@ func (client *Client) EnableAsync(routinePoolSize, maxTaskQueueSize int) { func (client *Client) InitWithAccessKey(regionId, accessKeyId, accessKeySecret string) (err error) { config := client.InitClientConfig() - credential := &credentials.BaseCredential{ + credential := &credentials.AccessKeyCredential{ AccessKeyId: accessKeyId, AccessKeySecret: accessKeySecret, } @@ -304,9 +344,28 @@ func (client *Client) InitClientConfig() (config *Config) { } func (client *Client) DoAction(request requests.AcsRequest, response responses.AcsResponse) (err error) { + if (client.SecureTransport == "false" || client.SecureTransport == "true") && client.SourceIp != "" { + t := reflect.TypeOf(request).Elem() + v := reflect.ValueOf(request).Elem() + for i := 0; i < t.NumField(); i++ { + value := v.FieldByName(t.Field(i).Name) + if t.Field(i).Name == "requests.RoaRequest" || t.Field(i).Name == "RoaRequest" { + request.GetHeaders()["x-acs-proxy-source-ip"] = client.SourceIp + request.GetHeaders()["x-acs-proxy-secure-transport"] = client.SecureTransport + return client.DoActionWithSigner(request, response, nil) + } else if t.Field(i).Name == "PathPattern" && !value.IsZero() { + request.GetHeaders()["x-acs-proxy-source-ip"] = client.SourceIp + request.GetHeaders()["x-acs-proxy-secure-transport"] = client.SecureTransport + return client.DoActionWithSigner(request, response, nil) + } else if i == t.NumField()-1 { + request.GetQueryParams()["SourceIp"] = client.SourceIp + request.GetQueryParams()["SecureTransport"] = client.SecureTransport + return client.DoActionWithSigner(request, response, nil) + } + } + } return client.DoActionWithSigner(request, response, nil) } - func (client *Client) GetEndpointRules(regionId string, product string) (endpointRaw string, err error) { if client.EndpointType == "regional" { if regionId == "" { @@ -337,7 +396,17 @@ func (client *Client) buildRequestWithSigner(request requests.AcsRequest, signer // resolve endpoint endpoint := request.GetDomain() - if endpoint == "" && client.EndpointType != "" && request.GetProduct() != "Sts" { + + if endpoint == "" && client.Domain != "" { + endpoint = client.Domain + } + + if endpoint == "" { + endpoint = endpoints.GetEndpointFromMap(regionId, request.GetProduct()) + } + + if endpoint == "" && client.EndpointType != "" && + (request.GetProduct() != "Sts" || len(request.GetQueryParams()) == 0) { if client.EndpointMap != nil && client.Network == "" || client.Network == "public" { endpoint = client.EndpointMap[regionId] } @@ -394,7 +463,7 @@ func (client *Client) buildRequestWithSigner(request requests.AcsRequest, signer func getSendUserAgent(configUserAgent string, clientUserAgent, requestUserAgent map[string]string) string { realUserAgent := "" for key1, value1 := range clientUserAgent { - for key2, _ := range requestUserAgent { + for key2 := range requestUserAgent { if key1 == key2 { key1 = "" } @@ -420,7 +489,7 @@ func (client *Client) AppendUserAgent(key, value string) { client.userAgent = make(map[string]string) } if strings.ToLower(key) != "core" && strings.ToLower(key) != "go" { - for tag, _ := range client.userAgent { + for tag := range client.userAgent { if tag == key { client.userAgent[tag] = value newkey = false @@ -476,7 +545,7 @@ func (client *Client) setTimeout(request requests.AcsRequest) { if trans, ok := client.httpClient.Transport.(*http.Transport); ok && trans != nil { trans.DialContext = Timeout(connectTimeout) client.httpClient.Transport = trans - } else { + } else if client.httpClient.Transport == nil { client.httpClient.Transport = &http.Transport{ DialContext: Timeout(connectTimeout), } @@ -493,7 +562,12 @@ func (client *Client) getHTTPSInsecure(request requests.AcsRequest) (insecure bo } func (client *Client) DoActionWithSigner(request requests.AcsRequest, response responses.AcsResponse, signer auth.Signer) (err error) { - + if client.Network != "" { + match, _ := regexp.MatchString("^[a-zA-Z0-9_-]+$", client.Network) + if !match { + return fmt.Errorf("netWork contains invalid characters") + } + } fieldMap := make(map[string]string) initLogMsg(fieldMap) defer func() { @@ -514,7 +588,14 @@ func (client *Client) DoActionWithSigner(request requests.AcsRequest, response r var flag bool for _, value := range noProxy { - if value == httpRequest.Host { + if strings.HasPrefix(value, "*") { + value = fmt.Sprintf(".%s", value) + } + noProxyReg, err := regexp.Compile(value) + if err != nil { + return err + } + if noProxyReg.MatchString(httpRequest.Host) { flag = true break } @@ -523,8 +604,12 @@ func (client *Client) DoActionWithSigner(request requests.AcsRequest, response r // Set whether to ignore certificate validation. // Default InsecureSkipVerify is false. if trans, ok := client.httpClient.Transport.(*http.Transport); ok && trans != nil { - trans.TLSClientConfig = &tls.Config{ - InsecureSkipVerify: client.getHTTPSInsecure(request), + if trans.TLSClientConfig != nil { + trans.TLSClientConfig.InsecureSkipVerify = client.getHTTPSInsecure(request) + } else { + trans.TLSClientConfig = &tls.Config{ + InsecureSkipVerify: client.getHTTPSInsecure(request), + } } if proxy != nil && !flag { trans.Proxy = http.ProxyURL(proxy) @@ -532,13 +617,34 @@ func (client *Client) DoActionWithSigner(request requests.AcsRequest, response r client.httpClient.Transport = trans } + // Set tracer + var span opentracing.Span + if ok := opentracing.IsGlobalTracerRegistered(); ok && !client.isCloseTrace { + tracer := opentracing.GlobalTracer() + var rootCtx opentracing.SpanContext + var rootSpan opentracing.Span + + if rootSpan = client.rootSpan; rootSpan != nil { + rootCtx = rootSpan.Context() + } else if rootSpan = request.GetTracerSpan(); rootSpan != nil { + rootCtx = rootSpan.Context() + } + + span = tracer.StartSpan( + httpRequest.URL.RequestURI(), + opentracing.ChildOf(rootCtx), + opentracing.Tag{Key: string(ext.Component), Value: "aliyunApi"}, + opentracing.Tag{Key: "actionName", Value: request.GetActionName()}) + + defer span.Finish() + tracer.Inject( + span.Context(), + opentracing.HTTPHeaders, + opentracing.HTTPHeadersCarrier(httpRequest.Header)) + } + var httpResponse *http.Response for retryTimes := 0; retryTimes <= client.config.MaxRetryTime; retryTimes++ { - if proxy != nil && proxy.User != nil { - if password, passwordSet := proxy.User.Password(); passwordSet { - httpRequest.SetBasicAuth(proxy.User.Username(), password) - } - } if retryTimes > 0 { client.printLog(fieldMap, err) initLogMsg(fieldMap) @@ -555,7 +661,7 @@ func (client *Client) DoActionWithSigner(request requests.AcsRequest, response r startTime := time.Now() fieldMap["{start_time}"] = startTime.Format("2006-01-02 15:04:05") httpResponse, err = hookDo(client.httpClient.Do)(httpRequest) - fieldMap["{cost}"] = time.Now().Sub(startTime).String() + fieldMap["{cost}"] = time.Since(startTime).String() if err == nil { fieldMap["{code}"] = strconv.Itoa(httpResponse.StatusCode) fieldMap["{res_headers}"] = TransToString(httpResponse.Header) @@ -568,6 +674,9 @@ func (client *Client) DoActionWithSigner(request requests.AcsRequest, response r // receive error if err != nil { debug(" Error: %s.", err.Error()) + if span != nil { + ext.LogError(span, err) + } if !client.config.AutoRetry { return } else if retryTimes >= client.config.MaxRetryTime { @@ -583,6 +692,10 @@ func (client *Client) DoActionWithSigner(request requests.AcsRequest, response r return } } + if isCertificateError(err) { + return + } + // if status code >= 500 or timeout, will trigger retry if client.config.AutoRetry && (err != nil || isServerError(httpResponse)) { client.setTimeout(request) @@ -596,6 +709,9 @@ func (client *Client) DoActionWithSigner(request requests.AcsRequest, response r } break } + if span != nil { + ext.HTTPStatusCode.Set(span, uint16(httpResponse.StatusCode)) + } err = responses.Unmarshal(response, httpResponse, request.GetAcceptFormat()) fieldMap["{res_body}"] = response.GetHttpContentString() @@ -603,12 +719,20 @@ func (client *Client) DoActionWithSigner(request requests.AcsRequest, response r // wrap server errors if serverErr, ok := err.(*errors.ServerError); ok { var wrapInfo = map[string]string{} + serverErr.RespHeaders = response.GetHttpHeaders() wrapInfo["StringToSign"] = request.GetStringToSign() err = errors.WrapServerError(serverErr, wrapInfo) } return } +func isCertificateError(err error) bool { + if err != nil && strings.Contains(err.Error(), "x509: certificate signed by unknown authority") { + return true + } + return false +} + func putMsgToMap(fieldMap map[string]string, request *http.Request) { fieldMap["{host}"] = request.Host fieldMap["{method}"] = request.Method @@ -647,16 +771,14 @@ func isServerError(httpResponse *http.Response) bool { return httpResponse.StatusCode >= http.StatusInternalServerError } -/** -only block when any one of the following occurs: -1. the asyncTaskQueue is full, increase the queue size to avoid this -2. Shutdown() in progressing, the client is being closed -**/ +/* + * only block when any one of the following occurs: + * 1. the asyncTaskQueue is full, increase the queue size to avoid this + * 2. Shutdown() in progressing, the client is being closed + */ func (client *Client) AddAsyncTask(task func()) (err error) { if client.asyncTaskQueue != nil { - client.asyncChanLock.RLock() - defer client.asyncChanLock.RUnlock() - if client.isRunning { + if client.isOpenAsync { client.asyncTaskQueue <- task } } else { @@ -669,6 +791,14 @@ func (client *Client) GetConfig() *Config { return client.config } +func (client *Client) GetSigner() auth.Signer { + return client.signer +} + +func (client *Client) SetSigner(signer auth.Signer) { + client.signer = signer +} + func NewClient() (client *Client, err error) { client = &Client{} err = client.Init() @@ -753,13 +883,11 @@ func (client *Client) ProcessCommonRequestWithSigner(request *requests.CommonReq } func (client *Client) Shutdown() { - // lock the addAsync() - client.asyncChanLock.Lock() - defer client.asyncChanLock.Unlock() if client.asyncTaskQueue != nil { close(client.asyncTaskQueue) } - client.isRunning = false + + client.isOpenAsync = false } // Deprecated: Use NewClientWithRamRoleArn in this package instead. diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/config.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/config.go index 5e50166f..29b7cc35 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/config.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/config.go @@ -22,15 +22,16 @@ import ( ) type Config struct { - AutoRetry bool `default:"true"` - MaxRetryTime int `default:"3"` - UserAgent string `default:""` - Debug bool `default:"false"` - HttpTransport *http.Transport `default:""` - EnableAsync bool `default:"false"` - MaxTaskQueueSize int `default:"1000"` - GoRoutinePoolSize int `default:"5"` - Scheme string `default:"HTTP"` + AutoRetry bool `default:"false"` + MaxRetryTime int `default:"3"` + UserAgent string `default:""` + Debug bool `default:"false"` + HttpTransport *http.Transport `default:""` + Transport http.RoundTripper `default:""` + EnableAsync bool `default:"false"` + MaxTaskQueueSize int `default:"1000"` + GoRoutinePoolSize int `default:"5"` + Scheme string `default:"HTTP"` Timeout time.Duration } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/endpoints_config.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/endpoints_config.go index a4fc4709..ddda77e8 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/endpoints_config.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/endpoints_config.go @@ -1,4 +1,3 @@ - package endpoints import ( @@ -7,7 +6,7 @@ import ( "sync" ) -const endpointsJson =`{ +const endpointsJson = `{ "products": [ { "code": "emr", @@ -3006,6 +3005,30 @@ const endpointsJson =`{ { "region": "cn-zhangjiakou", "endpoint": "slb.cn-zhangjiakou.aliyuncs.com" + }, + { + "region": "cn-wulanchabu", + "endpoint": "slb.cn-wulanchabu.aliyuncs.com" + }, + { + "region": "cn-heyuan", + "endpoint": "slb.cn-heyuan.aliyuncs.com" + }, + { + "region": "cn-guangzhou", + "endpoint": "slb.cn-guangzhou.aliyuncs.com" + }, + { + "region": "cn-chengdu", + "endpoint": "slb.cn-chengdu.aliyuncs.com" + }, + { + "region": "ap-southeast-6", + "endpoint": "slb.ap-southeast-6.aliyuncs.com" + }, + { + "region": "eu-west-1", + "endpoint": "slb.eu-west-1.aliyuncs.com" } ], "global_endpoint": "slb.aliyuncs.com", @@ -3617,10 +3640,6 @@ const endpointsJson =`{ "region": "ap-southeast-3", "endpoint": "metrics.ap-southeast-3.aliyuncs.com" }, - { - "region": "cn-hongkong", - "endpoint": "metrics.cn-hangzhou.aliyuncs.com" - }, { "region": "ap-southeast-5", "endpoint": "metrics.ap-southeast-5.aliyuncs.com" @@ -3641,56 +3660,12 @@ const endpointsJson =`{ "region": "cn-huhehaote", "endpoint": "metrics.cn-huhehaote.aliyuncs.com" }, - { - "region": "cn-shanghai", - "endpoint": "metrics.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-shenzhen", - "endpoint": "metrics.cn-hangzhou.aliyuncs.com" - }, - { - "region": "ap-southeast-1", - "endpoint": "metrics.cn-hangzhou.aliyuncs.com" - }, - { - "region": "us-west-1", - "endpoint": "metrics.cn-hangzhou.aliyuncs.com" - }, - { - "region": "us-east-1", - "endpoint": "metrics.cn-hangzhou.aliyuncs.com" - }, { "region": "ap-northeast-1", "endpoint": "metrics.ap-northeast-1.aliyuncs.com" - }, - { - "region": "cn-qingdao", - "endpoint": "metrics.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-beijing", - "endpoint": "metrics.cn-hangzhou.aliyuncs.com" - }, - { - "region": "cn-zhangjiakou", - "endpoint": "metrics.cn-hangzhou.aliyuncs.com" - }, - { - "region": "ap-southeast-2", - "endpoint": "metrics.cn-hangzhou.aliyuncs.com" - }, - { - "region": "eu-central-1", - "endpoint": "metrics.cn-hangzhou.aliyuncs.com" - }, - { - "region": "me-east-1", - "endpoint": "metrics.cn-hangzhou.aliyuncs.com" } ], - "global_endpoint": "metrics.cn-hangzhou.aliyuncs.com", + "global_endpoint": "", "regional_endpoint_pattern": "" }, { @@ -3825,6 +3800,10 @@ const endpointsJson =`{ "region": "ap-southeast-3", "endpoint": "mongodb.ap-southeast-3.aliyuncs.com" }, + { + "region": "ap-southeast-7", + "endpoint": "mongodb.ap-southeast-7.aliyuncs.com" + }, { "region": "ap-southeast-5", "endpoint": "mongodb.ap-southeast-5.aliyuncs.com" @@ -4112,6 +4091,7 @@ const endpointsJson =`{ } ] }` + var initOnce sync.Once var data interface{} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/mapping_resolver.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/mapping_resolver.go index e39f5336..a415a169 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/mapping_resolver.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/mapping_resolver.go @@ -17,32 +17,33 @@ package endpoints import ( "fmt" "strings" + "sync" ) const keyFormatter = "%s::%s" -var endpointMapping = make(map[string]string) +type EndpointMapping struct { + sync.RWMutex + endpoint map[string]string +} + +var endpointMapping = EndpointMapping{endpoint: make(map[string]string)} -// AddEndpointMapping Use product id and region id as key to store the endpoint into inner map +// AddEndpointMapping use productId and regionId as key to store the endpoint into inner map +// when using the same productId and regionId as key, the endpoint will be covered. func AddEndpointMapping(regionId, productId, endpoint string) (err error) { key := fmt.Sprintf(keyFormatter, strings.ToLower(regionId), strings.ToLower(productId)) - endpointMapping[key] = endpoint + endpointMapping.Lock() + endpointMapping.endpoint[key] = endpoint + endpointMapping.Unlock() return nil } -// MappingResolver the mapping resolver type -type MappingResolver struct { -} - -// GetName get the resolver name: "mapping resolver" -func (resolver *MappingResolver) GetName() (name string) { - name = "mapping resolver" - return -} - -// TryResolve use Product and RegionId as key to find endpoint from inner map -func (resolver *MappingResolver) TryResolve(param *ResolveParam) (endpoint string, support bool, err error) { - key := fmt.Sprintf(keyFormatter, strings.ToLower(param.RegionId), strings.ToLower(param.Product)) - endpoint, contains := endpointMapping[key] - return endpoint, contains, nil +// GetEndpointFromMap use Product and RegionId as key to find endpoint from inner map +func GetEndpointFromMap(regionId, productId string) string { + key := fmt.Sprintf(keyFormatter, strings.ToLower(regionId), strings.ToLower(productId)) + endpointMapping.RLock() + endpoint := endpointMapping.endpoint[key] + endpointMapping.RUnlock() + return endpoint } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/resolver.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/resolver.go index 5e1e3053..a73b8b13 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/resolver.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/resolver.go @@ -70,8 +70,6 @@ func Resolve(param *ResolveParam) (endpoint string, err error) { func getAllResolvers() []Resolver { once.Do(func() { resolvers = []Resolver{ - &SimpleHostResolver{}, - &MappingResolver{}, &LocationResolver{}, &LocalRegionalResolver{}, &LocalGlobalResolver{}, diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/simple_host_resolver.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/simple_host_resolver.go deleted file mode 100644 index 9ba2346c..00000000 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/endpoints/simple_host_resolver.go +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package endpoints - -// SimpleHostResolver the simple host resolver type -type SimpleHostResolver struct { -} - -// GetName get the resolver name: "simple host resolver" -func (resolver *SimpleHostResolver) GetName() (name string) { - name = "simple host resolver" - return -} - -// TryResolve if the Domain exist in param, use it as endpoint -func (resolver *SimpleHostResolver) TryResolve(param *ResolveParam) (endpoint string, support bool, err error) { - if support = len(param.Domain) > 0; support { - endpoint = param.Domain - } - return -} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors/server_error.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors/server_error.go index 1b781041..8746a6b5 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors/server_error.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors/server_error.go @@ -26,13 +26,15 @@ var wrapperList = []ServerErrorWrapper{ } type ServerError struct { - httpStatus int - requestId string - hostId string - errorCode string - recommend string - message string - comment string + RespHeaders map[string][]string + httpStatus int + requestId string + hostId string + errorCode string + recommend string + message string + comment string + accessDeniedDetail map[string]interface{} } type ServerErrorWrapper interface { @@ -40,8 +42,12 @@ type ServerErrorWrapper interface { } func (err *ServerError) Error() string { - return fmt.Sprintf("SDK.ServerError\nErrorCode: %s\nRecommend: %s\nRequestId: %s\nMessage: %s", - err.errorCode, err.comment+err.recommend, err.requestId, err.message) + if err.accessDeniedDetail != nil { + return fmt.Sprintf("SDK.ServerError\nErrorCode: %s\nRecommend: %s\nRequestId: %s\nMessage: %s\nRespHeaders: %s\nAccessDeniedDetail: %s", + err.errorCode, err.comment+err.recommend, err.requestId, err.message, err.RespHeaders, err.accessDeniedDetail) + } + return fmt.Sprintf("SDK.ServerError\nErrorCode: %s\nRecommend: %s\nRequestId: %s\nMessage: %s\nRespHeaders: %s", + err.errorCode, err.comment+err.recommend, err.requestId, err.message, err.RespHeaders) } func NewServerError(httpStatus int, responseContent, comment string) Error { @@ -59,6 +65,7 @@ func NewServerError(httpStatus int, responseContent, comment string) Error { errorCode, _ := jmespath.Search("Code", data) recommend, _ := jmespath.Search("Recommend", data) message, _ := jmespath.Search("Message", data) + accessDeniedDetail, _ := jmespath.Search("AccessDeniedDetail", data) if requestId != nil { result.requestId = requestId.(string) @@ -75,6 +82,9 @@ func NewServerError(httpStatus int, responseContent, comment string) Error { if message != nil { result.message = message.(string) } + if accessDeniedDetail != nil { + result.accessDeniedDetail = accessDeniedDetail.(map[string]interface{}) + } } return result @@ -121,3 +131,7 @@ func (err *ServerError) Recommend() string { func (err *ServerError) Comment() string { return err.comment } + +func (err *ServerError) AccessDeniedDetail() map[string]interface{} { + return err.accessDeniedDetail +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/logger.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/logger.go index a01a7bbc..49e49833 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/logger.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/logger.go @@ -2,12 +2,13 @@ package sdk import ( "encoding/json" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils" "io" "log" "os" "strings" "time" + + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils" ) var logChannel string diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/acs_request.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/acs_request.go index 66cff911..3d591565 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/acs_request.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/acs_request.go @@ -24,6 +24,7 @@ import ( "time" "github.com/aliyun/alibaba-cloud-sdk-go/sdk/errors" + opentracing "github.com/opentracing/opentracing-go" ) const ( @@ -39,6 +40,7 @@ const ( PUT = "PUT" POST = "POST" DELETE = "DELETE" + PATCH = "PATCH" HEAD = "HEAD" OPTIONS = "OPTIONS" @@ -97,6 +99,9 @@ type AcsRequest interface { addQueryParam(key, value string) addFormParam(key, value string) addPathParam(key, value string) + + SetTracerSpan(span opentracing.Span) + GetTracerSpan() opentracing.Span } // base class @@ -129,6 +134,8 @@ type baseRequest struct { queries string stringToSign string + + span opentracing.Span } func (request *baseRequest) GetQueryParams() map[string]string { @@ -282,6 +289,13 @@ func (request *baseRequest) GetStringToSign() string { return request.stringToSign } +func (request *baseRequest) SetTracerSpan(span opentracing.Span) { + request.span = span +} +func (request *baseRequest) GetTracerSpan() opentracing.Span { + return request.span +} + func defaultBaseRequest() (request *baseRequest) { request = &baseRequest{ Scheme: "", @@ -332,57 +346,168 @@ func flatRepeatedList(dataValue reflect.Value, request AcsRequest, position, pre } } else if typeTag == "Repeated" { // repeated param - repeatedFieldValue := dataValue.Field(i) - if repeatedFieldValue.Kind() != reflect.Slice { - // possible value: {"[]string", "*[]struct"}, we must call Elem() in the last condition - repeatedFieldValue = repeatedFieldValue.Elem() + err = handleRepeatedParams(request, dataValue, prefix, name, fieldPosition, i) + if err != nil { + return } - if repeatedFieldValue.IsValid() && !repeatedFieldValue.IsNil() { - for m := 0; m < repeatedFieldValue.Len(); m++ { - elementValue := repeatedFieldValue.Index(m) - key := prefix + name + "." + strconv.Itoa(m+1) - if elementValue.Type().Kind().String() == "string" { - value := elementValue.String() - err = addParam(request, fieldPosition, key, value) - if err != nil { - return - } - } else { - err = flatRepeatedList(elementValue, request, fieldPosition, key+".") - if err != nil { - return - } - } + } else if typeTag == "Struct" { + err = handleStruct(request, dataValue, prefix, name, fieldPosition, i) + if err != nil { + return + } + } else if typeTag == "Map" { + err = handleMap(request, dataValue, prefix, name, fieldPosition, i) + if err != nil { + return err + } + } else if typeTag == "Json" { + byt, err := json.Marshal(dataValue.Field(i).Interface()) + if err != nil { + return err + } + key := prefix + name + err = addParam(request, fieldPosition, key, string(byt)) + if err != nil { + return err + } + } + } + } + return +} + +func handleRepeatedParams(request AcsRequest, dataValue reflect.Value, prefix, name, fieldPosition string, index int) (err error) { + repeatedFieldValue := dataValue.Field(index) + if repeatedFieldValue.Kind() != reflect.Slice { + // possible value: {"[]string", "*[]struct"}, we must call Elem() in the last condition + repeatedFieldValue = repeatedFieldValue.Elem() + } + if repeatedFieldValue.IsValid() && !repeatedFieldValue.IsNil() { + for m := 0; m < repeatedFieldValue.Len(); m++ { + elementValue := repeatedFieldValue.Index(m) + key := prefix + name + "." + strconv.Itoa(m+1) + if elementValue.Type().Kind().String() == "string" { + value := elementValue.String() + err = addParam(request, fieldPosition, key, value) + if err != nil { + return + } + } else { + err = flatRepeatedList(elementValue, request, fieldPosition, key+".") + if err != nil { + return + } + } + } + } + return nil +} + +func handleParam(request AcsRequest, dataValue reflect.Value, prefix, key, fieldPosition string) (err error) { + if dataValue.Type().String() == "[]string" { + if dataValue.IsNil() { + return + } + for j := 0; j < dataValue.Len(); j++ { + err = addParam(request, fieldPosition, key+"."+strconv.Itoa(j+1), dataValue.Index(j).String()) + if err != nil { + return + } + } + } else { + if dataValue.Type().Kind().String() == "string" { + value := dataValue.String() + err = addParam(request, fieldPosition, key, value) + if err != nil { + return + } + } else if dataValue.Type().Kind().String() == "struct" { + err = flatRepeatedList(dataValue, request, fieldPosition, key+".") + if err != nil { + return + } + } else if dataValue.Type().Kind().String() == "int" { + value := dataValue.Int() + err = addParam(request, fieldPosition, key, strconv.Itoa(int(value))) + if err != nil { + return err + } + } + } + return nil +} + +func handleMap(request AcsRequest, dataValue reflect.Value, prefix, name, fieldPosition string, index int) (err error) { + valueField := dataValue.Field(index) + if valueField.IsValid() && !valueField.IsNil() { + iter := valueField.MapRange() + for iter.Next() { + k := iter.Key() + v := iter.Value() + key := prefix + name + ".#" + strconv.Itoa(k.Len()) + "#" + k.String() + if v.Kind() == reflect.Ptr || v.Kind() == reflect.Interface { + elementValue := v.Elem() + err = handleParam(request, elementValue, prefix, key, fieldPosition) + if err != nil { + return err + } + } else if v.IsValid() && v.IsNil() { + err = handleParam(request, v, prefix, key, fieldPosition) + if err != nil { + return err + } + } + } + } + return nil +} + +func handleStruct(request AcsRequest, dataValue reflect.Value, prefix, name, fieldPosition string, index int) (err error) { + valueField := dataValue.Field(index) + if valueField.IsValid() && valueField.String() != "" { + valueFieldType := valueField.Type() + for m := 0; m < valueFieldType.NumField(); m++ { + fieldName := valueFieldType.Field(m).Name + elementValue := valueField.FieldByName(fieldName) + key := prefix + name + "." + fieldName + if elementValue.Type().String() == "[]string" { + if elementValue.IsNil() { + continue + } + for j := 0; j < elementValue.Len(); j++ { + err = addParam(request, fieldPosition, key+"."+strconv.Itoa(j+1), elementValue.Index(j).String()) + if err != nil { + return } } - } else if typeTag == "Struct" { - valueField := dataValue.Field(i) - if valueField.Kind() == reflect.Struct { - if valueField.IsValid() && valueField.String() != "" { - valueFieldType := valueField.Type() - for m := 0; m < valueFieldType.NumField(); m++ { - fieldName := valueFieldType.Field(m).Name - elementValue := valueField.FieldByName(fieldName) - key := prefix + name + "." + fieldName - if elementValue.Type().String() == "[]string" { - for j := 0; j < elementValue.Len(); j++ { - err = addParam(request, fieldPosition, key+"."+strconv.Itoa(j+1), elementValue.Index(j).String()) - if err != nil { - return - } + } else { + if elementValue.Type().Kind().String() == "string" { + value := elementValue.String() + err = addParam(request, fieldPosition, key, value) + if err != nil { + return + } + } else if elementValue.Type().Kind().String() == "struct" { + err = flatRepeatedList(elementValue, request, fieldPosition, key+".") + if err != nil { + return + } + } else if !elementValue.IsNil() { + repeatedFieldValue := elementValue.Elem() + if repeatedFieldValue.IsValid() && !repeatedFieldValue.IsNil() { + for m := 0; m < repeatedFieldValue.Len(); m++ { + elementValue := repeatedFieldValue.Index(m) + if elementValue.Type().Kind().String() == "string" { + value := elementValue.String() + err := addParam(request, fieldPosition, key+"."+strconv.Itoa(m+1), value) + if err != nil { + return err } } else { - // value := elementValue.String() - // err = addParam(request, fieldPosition, key, value) - // if err != nil { - // return - // } - // } else { - // err = flatRepeatedList(elementValue, request, fieldPosition, key+".") - // if err != nil { - // return - // } - // } + err = flatRepeatedList(elementValue, request, fieldPosition, key+"."+strconv.Itoa(m+1)+".") + if err != nil { + return + } } } } @@ -390,7 +515,7 @@ func flatRepeatedList(dataValue reflect.Value, request AcsRequest, position, pre } } } - return + return nil } func addParam(request AcsRequest, position, name, value string) (err error) { diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/common_request.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/common_request.go index 80c17009..2ecc5ef9 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/common_request.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/common_request.go @@ -11,10 +11,11 @@ import ( type CommonRequest struct { *baseRequest - Version string - ApiName string - Product string - ServiceCode string + Version string + ApiName string + Product string + ServiceCode string + EndpointType string // roa params PathPattern string @@ -82,7 +83,11 @@ func (request *CommonRequest) TransToAcsRequest() { rpcRequest.product = request.Product rpcRequest.version = request.Version rpcRequest.locationServiceCode = request.ServiceCode + rpcRequest.locationEndpointType = request.EndpointType rpcRequest.actionName = request.ApiName + rpcRequest.Headers["x-acs-version"] = request.Version + rpcRequest.Headers["x-acs-action"] = request.ApiName + rpcRequest.span = request.span request.Ontology = rpcRequest } } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/roa_request.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/roa_request.go index 70b856e3..62b108d4 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/roa_request.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/roa_request.go @@ -88,7 +88,6 @@ func (request *RoaRequest) buildQueries() string { } } result := urlBuilder.String() - result = popStandardUrlencode(result) return result } @@ -102,13 +101,6 @@ func (request *RoaRequest) buildQueryString() string { return q.Encode() } -func popStandardUrlencode(stringToSign string) (result string) { - result = strings.Replace(stringToSign, "+", "%20", -1) - result = strings.Replace(result, "*", "%2A", -1) - result = strings.Replace(result, "%7E", "~", -1) - return -} - func (request *RoaRequest) BuildUrl() string { // for network trans, need url encoded scheme := strings.ToLower(request.Scheme) @@ -131,6 +123,7 @@ func (request *RoaRequest) InitWithApiInfo(product, version, action, uriPattern, request.baseRequest = defaultBaseRequest() request.PathParams = make(map[string]string) request.Headers["x-acs-version"] = version + request.Headers["x-acs-action"] = action request.pathPattern = uriPattern request.locationServiceCode = serviceCode request.locationEndpointType = endpointType @@ -145,8 +138,12 @@ func (request *RoaRequest) initWithCommonRequest(commonRequest *CommonRequest) { request.product = commonRequest.Product //request.version = commonRequest.Version request.Headers["x-acs-version"] = commonRequest.Version + if commonRequest.ApiName != "" { + request.Headers["x-acs-action"] = commonRequest.ApiName + } request.actionName = commonRequest.ApiName request.pathPattern = commonRequest.PathPattern request.locationServiceCode = commonRequest.ServiceCode request.locationEndpointType = "" + request.span = commonRequest.span } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/rpc_request.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/rpc_request.go index 01be6fd0..a04765e9 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/rpc_request.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests/rpc_request.go @@ -76,4 +76,6 @@ func (request *RpcRequest) InitWithApiInfo(product, version, action, serviceCode request.actionName = action request.locationServiceCode = serviceCode request.locationEndpointType = endpointType + request.Headers["x-acs-version"] = version + request.Headers["x-acs-action"] = action } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses/json_parser.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses/json_parser.go index 36604fe8..cd66316d 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses/json_parser.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses/json_parser.go @@ -4,11 +4,13 @@ import ( "encoding/json" "io" "math" + "reflect" "strconv" "strings" "unsafe" jsoniter "github.com/json-iterator/go" + "github.com/modern-go/reflect2" ) const maxUint = ^uint(0) @@ -18,140 +20,143 @@ const minInt = -maxInt - 1 var jsonParser jsoniter.API func init() { - registerBetterFuzzyDecoder() jsonParser = jsoniter.Config{ EscapeHTML: true, SortMapKeys: true, ValidateJsonRawMessage: true, CaseSensitive: true, }.Froze() + + jsonParser.RegisterExtension(newBetterFuzzyExtension()) } -func registerBetterFuzzyDecoder() { - jsoniter.RegisterTypeDecoder("string", &nullableFuzzyStringDecoder{}) - jsoniter.RegisterTypeDecoder("bool", &fuzzyBoolDecoder{}) - jsoniter.RegisterTypeDecoder("float32", &nullableFuzzyFloat32Decoder{}) - jsoniter.RegisterTypeDecoder("float64", &nullableFuzzyFloat64Decoder{}) - jsoniter.RegisterTypeDecoder("int", &nullableFuzzyIntegerDecoder{func(isFloat bool, ptr unsafe.Pointer, iter *jsoniter.Iterator) { - if isFloat { - val := iter.ReadFloat64() - if val > float64(maxInt) || val < float64(minInt) { - iter.ReportError("fuzzy decode int", "exceed range") - return +func newBetterFuzzyExtension() jsoniter.DecoderExtension { + return jsoniter.DecoderExtension{ + reflect2.DefaultTypeOfKind(reflect.String): &nullableFuzzyStringDecoder{}, + reflect2.DefaultTypeOfKind(reflect.Bool): &fuzzyBoolDecoder{}, + reflect2.DefaultTypeOfKind(reflect.Float32): &nullableFuzzyFloat32Decoder{}, + reflect2.DefaultTypeOfKind(reflect.Float64): &nullableFuzzyFloat64Decoder{}, + reflect2.DefaultTypeOfKind(reflect.Int): &nullableFuzzyIntegerDecoder{func(isFloat bool, ptr unsafe.Pointer, iter *jsoniter.Iterator) { + if isFloat { + val := iter.ReadFloat64() + if val > float64(maxInt) || val < float64(minInt) { + iter.ReportError("fuzzy decode int", "exceed range") + return + } + *((*int)(ptr)) = int(val) + } else { + *((*int)(ptr)) = iter.ReadInt() } - *((*int)(ptr)) = int(val) - } else { - *((*int)(ptr)) = iter.ReadInt() - } - }}) - jsoniter.RegisterTypeDecoder("uint", &nullableFuzzyIntegerDecoder{func(isFloat bool, ptr unsafe.Pointer, iter *jsoniter.Iterator) { - if isFloat { - val := iter.ReadFloat64() - if val > float64(maxUint) || val < 0 { - iter.ReportError("fuzzy decode uint", "exceed range") - return + }}, + reflect2.DefaultTypeOfKind(reflect.Uint): &nullableFuzzyIntegerDecoder{func(isFloat bool, ptr unsafe.Pointer, iter *jsoniter.Iterator) { + if isFloat { + val := iter.ReadFloat64() + if val > float64(maxUint) || val < 0 { + iter.ReportError("fuzzy decode uint", "exceed range") + return + } + *((*uint)(ptr)) = uint(val) + } else { + *((*uint)(ptr)) = iter.ReadUint() } - *((*uint)(ptr)) = uint(val) - } else { - *((*uint)(ptr)) = iter.ReadUint() - } - }}) - jsoniter.RegisterTypeDecoder("int8", &nullableFuzzyIntegerDecoder{func(isFloat bool, ptr unsafe.Pointer, iter *jsoniter.Iterator) { - if isFloat { - val := iter.ReadFloat64() - if val > float64(math.MaxInt8) || val < float64(math.MinInt8) { - iter.ReportError("fuzzy decode int8", "exceed range") - return + }}, + reflect2.DefaultTypeOfKind(reflect.Int8): &nullableFuzzyIntegerDecoder{func(isFloat bool, ptr unsafe.Pointer, iter *jsoniter.Iterator) { + if isFloat { + val := iter.ReadFloat64() + if val > float64(math.MaxInt8) || val < float64(math.MinInt8) { + iter.ReportError("fuzzy decode int8", "exceed range") + return + } + *((*int8)(ptr)) = int8(val) + } else { + *((*int8)(ptr)) = iter.ReadInt8() } - *((*int8)(ptr)) = int8(val) - } else { - *((*int8)(ptr)) = iter.ReadInt8() - } - }}) - jsoniter.RegisterTypeDecoder("uint8", &nullableFuzzyIntegerDecoder{func(isFloat bool, ptr unsafe.Pointer, iter *jsoniter.Iterator) { - if isFloat { - val := iter.ReadFloat64() - if val > float64(math.MaxUint8) || val < 0 { - iter.ReportError("fuzzy decode uint8", "exceed range") - return + }}, + reflect2.DefaultTypeOfKind(reflect.Uint8): &nullableFuzzyIntegerDecoder{func(isFloat bool, ptr unsafe.Pointer, iter *jsoniter.Iterator) { + if isFloat { + val := iter.ReadFloat64() + if val > float64(math.MaxUint8) || val < 0 { + iter.ReportError("fuzzy decode uint8", "exceed range") + return + } + *((*uint8)(ptr)) = uint8(val) + } else { + *((*uint8)(ptr)) = iter.ReadUint8() } - *((*uint8)(ptr)) = uint8(val) - } else { - *((*uint8)(ptr)) = iter.ReadUint8() - } - }}) - jsoniter.RegisterTypeDecoder("int16", &nullableFuzzyIntegerDecoder{func(isFloat bool, ptr unsafe.Pointer, iter *jsoniter.Iterator) { - if isFloat { - val := iter.ReadFloat64() - if val > float64(math.MaxInt16) || val < float64(math.MinInt16) { - iter.ReportError("fuzzy decode int16", "exceed range") - return + }}, + reflect2.DefaultTypeOfKind(reflect.Int16): &nullableFuzzyIntegerDecoder{func(isFloat bool, ptr unsafe.Pointer, iter *jsoniter.Iterator) { + if isFloat { + val := iter.ReadFloat64() + if val > float64(math.MaxInt16) || val < float64(math.MinInt16) { + iter.ReportError("fuzzy decode int16", "exceed range") + return + } + *((*int16)(ptr)) = int16(val) + } else { + *((*int16)(ptr)) = iter.ReadInt16() } - *((*int16)(ptr)) = int16(val) - } else { - *((*int16)(ptr)) = iter.ReadInt16() - } - }}) - jsoniter.RegisterTypeDecoder("uint16", &nullableFuzzyIntegerDecoder{func(isFloat bool, ptr unsafe.Pointer, iter *jsoniter.Iterator) { - if isFloat { - val := iter.ReadFloat64() - if val > float64(math.MaxUint16) || val < 0 { - iter.ReportError("fuzzy decode uint16", "exceed range") - return + }}, + reflect2.DefaultTypeOfKind(reflect.Uint16): &nullableFuzzyIntegerDecoder{func(isFloat bool, ptr unsafe.Pointer, iter *jsoniter.Iterator) { + if isFloat { + val := iter.ReadFloat64() + if val > float64(math.MaxUint16) || val < 0 { + iter.ReportError("fuzzy decode uint16", "exceed range") + return + } + *((*uint16)(ptr)) = uint16(val) + } else { + *((*uint16)(ptr)) = iter.ReadUint16() } - *((*uint16)(ptr)) = uint16(val) - } else { - *((*uint16)(ptr)) = iter.ReadUint16() - } - }}) - jsoniter.RegisterTypeDecoder("int32", &nullableFuzzyIntegerDecoder{func(isFloat bool, ptr unsafe.Pointer, iter *jsoniter.Iterator) { - if isFloat { - val := iter.ReadFloat64() - if val > float64(math.MaxInt32) || val < float64(math.MinInt32) { - iter.ReportError("fuzzy decode int32", "exceed range") - return + }}, + reflect2.DefaultTypeOfKind(reflect.Int32): &nullableFuzzyIntegerDecoder{func(isFloat bool, ptr unsafe.Pointer, iter *jsoniter.Iterator) { + if isFloat { + val := iter.ReadFloat64() + if val > float64(math.MaxInt32) || val < float64(math.MinInt32) { + iter.ReportError("fuzzy decode int32", "exceed range") + return + } + *((*int32)(ptr)) = int32(val) + } else { + *((*int32)(ptr)) = iter.ReadInt32() } - *((*int32)(ptr)) = int32(val) - } else { - *((*int32)(ptr)) = iter.ReadInt32() - } - }}) - jsoniter.RegisterTypeDecoder("uint32", &nullableFuzzyIntegerDecoder{func(isFloat bool, ptr unsafe.Pointer, iter *jsoniter.Iterator) { - if isFloat { - val := iter.ReadFloat64() - if val > float64(math.MaxUint32) || val < 0 { - iter.ReportError("fuzzy decode uint32", "exceed range") - return + }}, + reflect2.DefaultTypeOfKind(reflect.Uint32): &nullableFuzzyIntegerDecoder{func(isFloat bool, ptr unsafe.Pointer, iter *jsoniter.Iterator) { + if isFloat { + val := iter.ReadFloat64() + if val > float64(math.MaxUint32) || val < 0 { + iter.ReportError("fuzzy decode uint32", "exceed range") + return + } + *((*uint32)(ptr)) = uint32(val) + } else { + *((*uint32)(ptr)) = iter.ReadUint32() } - *((*uint32)(ptr)) = uint32(val) - } else { - *((*uint32)(ptr)) = iter.ReadUint32() - } - }}) - jsoniter.RegisterTypeDecoder("int64", &nullableFuzzyIntegerDecoder{func(isFloat bool, ptr unsafe.Pointer, iter *jsoniter.Iterator) { - if isFloat { - val := iter.ReadFloat64() - if val > float64(math.MaxInt64) || val < float64(math.MinInt64) { - iter.ReportError("fuzzy decode int64", "exceed range") - return + }}, + reflect2.DefaultTypeOfKind(reflect.Int64): &nullableFuzzyIntegerDecoder{func(isFloat bool, ptr unsafe.Pointer, iter *jsoniter.Iterator) { + if isFloat { + val := iter.ReadFloat64() + if val > float64(math.MaxInt64) || val < float64(math.MinInt64) { + iter.ReportError("fuzzy decode int64", "exceed range") + return + } + *((*int64)(ptr)) = int64(val) + } else { + *((*int64)(ptr)) = iter.ReadInt64() } - *((*int64)(ptr)) = int64(val) - } else { - *((*int64)(ptr)) = iter.ReadInt64() - } - }}) - jsoniter.RegisterTypeDecoder("uint64", &nullableFuzzyIntegerDecoder{func(isFloat bool, ptr unsafe.Pointer, iter *jsoniter.Iterator) { - if isFloat { - val := iter.ReadFloat64() - if val > float64(math.MaxUint64) || val < 0 { - iter.ReportError("fuzzy decode uint64", "exceed range") - return + }}, + reflect2.DefaultTypeOfKind(reflect.Uint64): &nullableFuzzyIntegerDecoder{func(isFloat bool, ptr unsafe.Pointer, iter *jsoniter.Iterator) { + if isFloat { + val := iter.ReadFloat64() + if val > float64(math.MaxUint64) || val < 0 { + iter.ReportError("fuzzy decode uint64", "exceed range") + return + } + *((*uint64)(ptr)) = uint64(val) + } else { + *((*uint64)(ptr)) = iter.ReadUint64() } - *((*uint64)(ptr)) = uint64(val) - } else { - *((*uint64)(ptr)) = iter.ReadUint64() - } - }}) + }}, + } } type nullableFuzzyStringDecoder struct { diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses/response.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses/response.go index 53a156b7..332756c2 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses/response.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses/response.go @@ -120,16 +120,22 @@ func (baseResponse *BaseResponse) String() string { resultBuilder := bytes.Buffer{} // statusCode // resultBuilder.WriteString("\n") - resultBuilder.WriteString(fmt.Sprintf("%s %s\n", baseResponse.originHttpResponse.Proto, baseResponse.originHttpResponse.Status)) + if baseResponse.originHttpResponse != nil { + resultBuilder.WriteString(fmt.Sprintf("%s %s\n", baseResponse.originHttpResponse.Proto, baseResponse.originHttpResponse.Status)) + } // httpHeaders //resultBuilder.WriteString("Headers:\n") - for key, value := range baseResponse.httpHeaders { - resultBuilder.WriteString(key + ": " + strings.Join(value, ";") + "\n") + if baseResponse.httpHeaders != nil { + for key, value := range baseResponse.httpHeaders { + resultBuilder.WriteString(key + ": " + strings.Join(value, ";") + "\n") + } + resultBuilder.WriteString("\n") } - resultBuilder.WriteString("\n") + // content //resultBuilder.WriteString("Content:\n") resultBuilder.WriteString(baseResponse.httpContentString + "\n") + return resultBuilder.String() } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils/utils.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils/utils.go index f8a3ad38..79727d87 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils/utils.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/sdk/utils/utils.go @@ -15,34 +15,42 @@ package utils import ( + "bytes" "crypto/md5" - "crypto/rand" "encoding/base64" "encoding/hex" - "hash" - rand2 "math/rand" + "fmt" + "math/rand" "net/url" "reflect" + "runtime" "strconv" + "sync/atomic" "time" ) -type UUID [16]byte - -const letterBytes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" - -func GetUUID() (uuidHex string) { - uuid := NewUUID() - uuidHex = hex.EncodeToString(uuid[:]) - return +var processStartTime int64 = time.Now().UnixNano() / 1e6 +var seqId int64 = 0 + +func getGID() uint64 { + // https://blog.sgmansfield.com/2015/12/goroutine-ids/ + b := make([]byte, 64) + b = b[:runtime.Stack(b, false)] + b = bytes.TrimPrefix(b, []byte("goroutine ")) + b = b[:bytes.IndexByte(b, ' ')] + n, _ := strconv.ParseUint(string(b), 10, 64) + return n } -func RandStringBytes(n int) string { - b := make([]byte, n) - for i := range b { - b[i] = letterBytes[rand2.Intn(len(letterBytes))] - } - return string(b) +func GetNonce() (uuidHex string) { + routineId := getGID() + currentTime := time.Now().UnixNano() / 1e6 + seq := atomic.AddInt64(&seqId, 1) + randNum := rand.Int63() + msg := fmt.Sprintf("%d-%d-%d-%d-%d", processStartTime, routineId, currentTime, seq, randNum) + h := md5.New() + h.Write([]byte(msg)) + return hex.EncodeToString(h.Sum(nil)) } func GetMD5Base64(bytes []byte) (base64Value string) { @@ -98,44 +106,3 @@ func InitStructWithDefaultTag(bean interface{}) { } } } - -func NewUUID() UUID { - ns := UUID{} - safeRandom(ns[:]) - u := newFromHash(md5.New(), ns, RandStringBytes(16)) - u[6] = (u[6] & 0x0f) | (byte(2) << 4) - u[8] = (u[8]&(0xff>>2) | (0x02 << 6)) - - return u -} - -func newFromHash(h hash.Hash, ns UUID, name string) UUID { - u := UUID{} - h.Write(ns[:]) - h.Write([]byte(name)) - copy(u[:], h.Sum(nil)) - - return u -} - -func safeRandom(dest []byte) { - if _, err := rand.Read(dest); err != nil { - panic(err) - } -} - -func (u UUID) String() string { - buf := make([]byte, 36) - - hex.Encode(buf[0:8], u[0:4]) - buf[8] = '-' - hex.Encode(buf[9:13], u[4:6]) - buf[13] = '-' - hex.Encode(buf[14:18], u[6:8]) - buf[18] = '-' - hex.Encode(buf[19:23], u[8:10]) - buf[23] = '-' - hex.Encode(buf[24:], u[10:]) - - return string(buf) -} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/accept_inquired_system_event.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/accept_inquired_system_event.go index 5bcd8d0e..64ed658c 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/accept_inquired_system_event.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/accept_inquired_system_event.go @@ -21,7 +21,6 @@ import ( ) // AcceptInquiredSystemEvent invokes the ecs.AcceptInquiredSystemEvent API synchronously -// api document: https://help.aliyun.com/api/ecs/acceptinquiredsystemevent.html func (client *Client) AcceptInquiredSystemEvent(request *AcceptInquiredSystemEventRequest) (response *AcceptInquiredSystemEventResponse, err error) { response = CreateAcceptInquiredSystemEventResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) AcceptInquiredSystemEvent(request *AcceptInquiredSystemEve } // AcceptInquiredSystemEventWithChan invokes the ecs.AcceptInquiredSystemEvent API asynchronously -// api document: https://help.aliyun.com/api/ecs/acceptinquiredsystemevent.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) AcceptInquiredSystemEventWithChan(request *AcceptInquiredSystemEventRequest) (<-chan *AcceptInquiredSystemEventResponse, <-chan error) { responseChan := make(chan *AcceptInquiredSystemEventResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) AcceptInquiredSystemEventWithChan(request *AcceptInquiredS } // AcceptInquiredSystemEventWithCallback invokes the ecs.AcceptInquiredSystemEvent API asynchronously -// api document: https://help.aliyun.com/api/ecs/acceptinquiredsystemevent.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) AcceptInquiredSystemEventWithCallback(request *AcceptInquiredSystemEventRequest, callback func(response *AcceptInquiredSystemEventResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -81,6 +76,7 @@ type AcceptInquiredSystemEventRequest struct { ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Choice string `position:"Query" name:"Choice"` } // AcceptInquiredSystemEventResponse is the response struct for api AcceptInquiredSystemEvent @@ -95,6 +91,7 @@ func CreateAcceptInquiredSystemEventRequest() (request *AcceptInquiredSystemEven RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "AcceptInquiredSystemEvent", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/activate_router_interface.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/activate_router_interface.go index 31e54c50..f0e19e62 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/activate_router_interface.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/activate_router_interface.go @@ -21,7 +21,6 @@ import ( ) // ActivateRouterInterface invokes the ecs.ActivateRouterInterface API synchronously -// api document: https://help.aliyun.com/api/ecs/activaterouterinterface.html func (client *Client) ActivateRouterInterface(request *ActivateRouterInterfaceRequest) (response *ActivateRouterInterfaceResponse, err error) { response = CreateActivateRouterInterfaceResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ActivateRouterInterface(request *ActivateRouterInterfaceRe } // ActivateRouterInterfaceWithChan invokes the ecs.ActivateRouterInterface API asynchronously -// api document: https://help.aliyun.com/api/ecs/activaterouterinterface.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ActivateRouterInterfaceWithChan(request *ActivateRouterInterfaceRequest) (<-chan *ActivateRouterInterfaceResponse, <-chan error) { responseChan := make(chan *ActivateRouterInterfaceResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ActivateRouterInterfaceWithChan(request *ActivateRouterInt } // ActivateRouterInterfaceWithCallback invokes the ecs.ActivateRouterInterface API asynchronously -// api document: https://help.aliyun.com/api/ecs/activaterouterinterface.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ActivateRouterInterfaceWithCallback(request *ActivateRouterInterfaceRequest, callback func(response *ActivateRouterInterfaceResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -94,6 +89,7 @@ func CreateActivateRouterInterfaceRequest() (request *ActivateRouterInterfaceReq RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ActivateRouterInterface", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/add_bandwidth_package_ips.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/add_bandwidth_package_ips.go index f8ed2b00..640e8163 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/add_bandwidth_package_ips.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/add_bandwidth_package_ips.go @@ -21,7 +21,6 @@ import ( ) // AddBandwidthPackageIps invokes the ecs.AddBandwidthPackageIps API synchronously -// api document: https://help.aliyun.com/api/ecs/addbandwidthpackageips.html func (client *Client) AddBandwidthPackageIps(request *AddBandwidthPackageIpsRequest) (response *AddBandwidthPackageIpsResponse, err error) { response = CreateAddBandwidthPackageIpsResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) AddBandwidthPackageIps(request *AddBandwidthPackageIpsRequ } // AddBandwidthPackageIpsWithChan invokes the ecs.AddBandwidthPackageIps API asynchronously -// api document: https://help.aliyun.com/api/ecs/addbandwidthpackageips.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) AddBandwidthPackageIpsWithChan(request *AddBandwidthPackageIpsRequest) (<-chan *AddBandwidthPackageIpsResponse, <-chan error) { responseChan := make(chan *AddBandwidthPackageIpsResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) AddBandwidthPackageIpsWithChan(request *AddBandwidthPackag } // AddBandwidthPackageIpsWithCallback invokes the ecs.AddBandwidthPackageIps API asynchronously -// api document: https://help.aliyun.com/api/ecs/addbandwidthpackageips.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) AddBandwidthPackageIpsWithCallback(request *AddBandwidthPackageIpsRequest, callback func(response *AddBandwidthPackageIpsResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,9 +72,9 @@ func (client *Client) AddBandwidthPackageIpsWithCallback(request *AddBandwidthPa type AddBandwidthPackageIpsRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` BandwidthPackageId string `position:"Query" name:"BandwidthPackageId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - ClientToken string `position:"Query" name:"ClientToken"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` IpCount string `position:"Query" name:"IpCount"` @@ -97,6 +92,7 @@ func CreateAddBandwidthPackageIpsRequest() (request *AddBandwidthPackageIpsReque RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "AddBandwidthPackageIps", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/add_tags.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/add_tags.go index 4a3ea024..3400d23e 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/add_tags.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/add_tags.go @@ -21,7 +21,6 @@ import ( ) // AddTags invokes the ecs.AddTags API synchronously -// api document: https://help.aliyun.com/api/ecs/addtags.html func (client *Client) AddTags(request *AddTagsRequest) (response *AddTagsResponse, err error) { response = CreateAddTagsResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) AddTags(request *AddTagsRequest) (response *AddTagsRespons } // AddTagsWithChan invokes the ecs.AddTags API asynchronously -// api document: https://help.aliyun.com/api/ecs/addtags.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) AddTagsWithChan(request *AddTagsRequest) (<-chan *AddTagsResponse, <-chan error) { responseChan := make(chan *AddTagsResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) AddTagsWithChan(request *AddTagsRequest) (<-chan *AddTagsR } // AddTagsWithCallback invokes the ecs.AddTags API asynchronously -// api document: https://help.aliyun.com/api/ecs/addtags.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) AddTagsWithCallback(request *AddTagsRequest, callback func(response *AddTagsResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,9 +72,9 @@ func (client *Client) AddTagsWithCallback(request *AddTagsRequest, callback func type AddTagsRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Tag *[]AddTagsTag `position:"Query" name:"Tag" type:"Repeated"` ResourceId string `position:"Query" name:"ResourceId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - Tag *[]AddTagsTag `position:"Query" name:"Tag" type:"Repeated"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` ResourceType string `position:"Query" name:"ResourceType"` } @@ -102,6 +97,7 @@ func CreateAddTagsRequest() (request *AddTagsRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "AddTags", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/allocate_dedicated_hosts.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/allocate_dedicated_hosts.go index d075eadf..e903b16e 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/allocate_dedicated_hosts.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/allocate_dedicated_hosts.go @@ -21,7 +21,6 @@ import ( ) // AllocateDedicatedHosts invokes the ecs.AllocateDedicatedHosts API synchronously -// api document: https://help.aliyun.com/api/ecs/allocatededicatedhosts.html func (client *Client) AllocateDedicatedHosts(request *AllocateDedicatedHostsRequest) (response *AllocateDedicatedHostsResponse, err error) { response = CreateAllocateDedicatedHostsResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) AllocateDedicatedHosts(request *AllocateDedicatedHostsRequ } // AllocateDedicatedHostsWithChan invokes the ecs.AllocateDedicatedHosts API asynchronously -// api document: https://help.aliyun.com/api/ecs/allocatededicatedhosts.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) AllocateDedicatedHostsWithChan(request *AllocateDedicatedHostsRequest) (<-chan *AllocateDedicatedHostsResponse, <-chan error) { responseChan := make(chan *AllocateDedicatedHostsResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) AllocateDedicatedHostsWithChan(request *AllocateDedicatedH } // AllocateDedicatedHostsWithCallback invokes the ecs.AllocateDedicatedHosts API asynchronously -// api document: https://help.aliyun.com/api/ecs/allocatededicatedhosts.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) AllocateDedicatedHostsWithCallback(request *AllocateDedicatedHostsRequest, callback func(response *AllocateDedicatedHostsResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -79,8 +74,11 @@ type AllocateDedicatedHostsRequest struct { ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` ClientToken string `position:"Query" name:"ClientToken"` Description string `position:"Query" name:"Description"` + CpuOverCommitRatio requests.Float `position:"Query" name:"CpuOverCommitRatio"` ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + MinQuantity requests.Integer `position:"Query" name:"MinQuantity"` ActionOnMaintenance string `position:"Query" name:"ActionOnMaintenance"` + DedicatedHostClusterId string `position:"Query" name:"DedicatedHostClusterId"` Tag *[]AllocateDedicatedHostsTag `position:"Query" name:"Tag" type:"Repeated"` DedicatedHostType string `position:"Query" name:"DedicatedHostType"` AutoRenewPeriod requests.Integer `position:"Query" name:"AutoRenewPeriod"` @@ -91,6 +89,7 @@ type AllocateDedicatedHostsRequest struct { OwnerAccount string `position:"Query" name:"OwnerAccount"` AutoReleaseTime string `position:"Query" name:"AutoReleaseTime"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + SchedulerOptionsFenceId string `position:"Query" name:"SchedulerOptions.FenceId"` PeriodUnit string `position:"Query" name:"PeriodUnit"` AutoRenew requests.Boolean `position:"Query" name:"AutoRenew"` NetworkAttributesSlbUdpTimeout requests.Integer `position:"Query" name:"NetworkAttributes.SlbUdpTimeout"` @@ -119,6 +118,7 @@ func CreateAllocateDedicatedHostsRequest() (request *AllocateDedicatedHostsReque RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "AllocateDedicatedHosts", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/allocate_eip_address.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/allocate_eip_address.go index 586a9a40..f314c1e9 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/allocate_eip_address.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/allocate_eip_address.go @@ -21,7 +21,6 @@ import ( ) // AllocateEipAddress invokes the ecs.AllocateEipAddress API synchronously -// api document: https://help.aliyun.com/api/ecs/allocateeipaddress.html func (client *Client) AllocateEipAddress(request *AllocateEipAddressRequest) (response *AllocateEipAddressResponse, err error) { response = CreateAllocateEipAddressResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) AllocateEipAddress(request *AllocateEipAddressRequest) (re } // AllocateEipAddressWithChan invokes the ecs.AllocateEipAddress API asynchronously -// api document: https://help.aliyun.com/api/ecs/allocateeipaddress.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) AllocateEipAddressWithChan(request *AllocateEipAddressRequest) (<-chan *AllocateEipAddressResponse, <-chan error) { responseChan := make(chan *AllocateEipAddressResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) AllocateEipAddressWithChan(request *AllocateEipAddressRequ } // AllocateEipAddressWithCallback invokes the ecs.AllocateEipAddress API asynchronously -// api document: https://help.aliyun.com/api/ecs/allocateeipaddress.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) AllocateEipAddressWithCallback(request *AllocateEipAddressRequest, callback func(response *AllocateEipAddressResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,15 +71,15 @@ func (client *Client) AllocateEipAddressWithCallback(request *AllocateEipAddress // AllocateEipAddressRequest is the request struct for api AllocateEipAddress type AllocateEipAddressRequest struct { *requests.RpcRequest - ActivityId requests.Integer `position:"Query" name:"ActivityId"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - Bandwidth string `position:"Query" name:"Bandwidth"` ClientToken string `position:"Query" name:"ClientToken"` - InternetChargeType string `position:"Query" name:"InternetChargeType"` ISP string `position:"Query" name:"ISP"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + Bandwidth string `position:"Query" name:"Bandwidth"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ActivityId requests.Integer `position:"Query" name:"ActivityId"` + InternetChargeType string `position:"Query" name:"InternetChargeType"` } // AllocateEipAddressResponse is the response struct for api AllocateEipAddress @@ -101,6 +96,7 @@ func CreateAllocateEipAddressRequest() (request *AllocateEipAddressRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "AllocateEipAddress", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/allocate_public_ip_address.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/allocate_public_ip_address.go index 0e6f34e2..a92f37ea 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/allocate_public_ip_address.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/allocate_public_ip_address.go @@ -21,7 +21,6 @@ import ( ) // AllocatePublicIpAddress invokes the ecs.AllocatePublicIpAddress API synchronously -// api document: https://help.aliyun.com/api/ecs/allocatepublicipaddress.html func (client *Client) AllocatePublicIpAddress(request *AllocatePublicIpAddressRequest) (response *AllocatePublicIpAddressResponse, err error) { response = CreateAllocatePublicIpAddressResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) AllocatePublicIpAddress(request *AllocatePublicIpAddressRe } // AllocatePublicIpAddressWithChan invokes the ecs.AllocatePublicIpAddress API asynchronously -// api document: https://help.aliyun.com/api/ecs/allocatepublicipaddress.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) AllocatePublicIpAddressWithChan(request *AllocatePublicIpAddressRequest) (<-chan *AllocatePublicIpAddressResponse, <-chan error) { responseChan := make(chan *AllocatePublicIpAddressResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) AllocatePublicIpAddressWithChan(request *AllocatePublicIpA } // AllocatePublicIpAddressWithCallback invokes the ecs.AllocatePublicIpAddress API asynchronously -// api document: https://help.aliyun.com/api/ecs/allocatepublicipaddress.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) AllocatePublicIpAddressWithCallback(request *AllocatePublicIpAddressRequest, callback func(response *AllocatePublicIpAddressResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -78,18 +73,18 @@ type AllocatePublicIpAddressRequest struct { *requests.RpcRequest IpAddress string `position:"Query" name:"IpAddress"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` VlanId string `position:"Query" name:"VlanId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` } // AllocatePublicIpAddressResponse is the response struct for api AllocatePublicIpAddress type AllocatePublicIpAddressResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` IpAddress string `json:"IpAddress" xml:"IpAddress"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateAllocatePublicIpAddressRequest creates a request to invoke AllocatePublicIpAddress API @@ -98,6 +93,7 @@ func CreateAllocatePublicIpAddressRequest() (request *AllocatePublicIpAddressReq RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "AllocatePublicIpAddress", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/apply_auto_snapshot_policy.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/apply_auto_snapshot_policy.go index ab2af4b9..60c8d816 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/apply_auto_snapshot_policy.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/apply_auto_snapshot_policy.go @@ -21,7 +21,6 @@ import ( ) // ApplyAutoSnapshotPolicy invokes the ecs.ApplyAutoSnapshotPolicy API synchronously -// api document: https://help.aliyun.com/api/ecs/applyautosnapshotpolicy.html func (client *Client) ApplyAutoSnapshotPolicy(request *ApplyAutoSnapshotPolicyRequest) (response *ApplyAutoSnapshotPolicyResponse, err error) { response = CreateApplyAutoSnapshotPolicyResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ApplyAutoSnapshotPolicy(request *ApplyAutoSnapshotPolicyRe } // ApplyAutoSnapshotPolicyWithChan invokes the ecs.ApplyAutoSnapshotPolicy API asynchronously -// api document: https://help.aliyun.com/api/ecs/applyautosnapshotpolicy.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ApplyAutoSnapshotPolicyWithChan(request *ApplyAutoSnapshotPolicyRequest) (<-chan *ApplyAutoSnapshotPolicyResponse, <-chan error) { responseChan := make(chan *ApplyAutoSnapshotPolicyResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ApplyAutoSnapshotPolicyWithChan(request *ApplyAutoSnapshot } // ApplyAutoSnapshotPolicyWithCallback invokes the ecs.ApplyAutoSnapshotPolicy API asynchronously -// api document: https://help.aliyun.com/api/ecs/applyautosnapshotpolicy.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ApplyAutoSnapshotPolicyWithCallback(request *ApplyAutoSnapshotPolicyRequest, callback func(response *ApplyAutoSnapshotPolicyResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,9 +72,9 @@ func (client *Client) ApplyAutoSnapshotPolicyWithCallback(request *ApplyAutoSnap type ApplyAutoSnapshotPolicyRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` AutoSnapshotPolicyId string `position:"Query" name:"autoSnapshotPolicyId"` DiskIds string `position:"Query" name:"diskIds"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` } @@ -95,6 +90,7 @@ func CreateApplyAutoSnapshotPolicyRequest() (request *ApplyAutoSnapshotPolicyReq RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ApplyAutoSnapshotPolicy", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/assign_ipv6_addresses.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/assign_ipv6_addresses.go index 927cad5f..211df10a 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/assign_ipv6_addresses.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/assign_ipv6_addresses.go @@ -21,7 +21,6 @@ import ( ) // AssignIpv6Addresses invokes the ecs.AssignIpv6Addresses API synchronously -// api document: https://help.aliyun.com/api/ecs/assignipv6addresses.html func (client *Client) AssignIpv6Addresses(request *AssignIpv6AddressesRequest) (response *AssignIpv6AddressesResponse, err error) { response = CreateAssignIpv6AddressesResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) AssignIpv6Addresses(request *AssignIpv6AddressesRequest) ( } // AssignIpv6AddressesWithChan invokes the ecs.AssignIpv6Addresses API asynchronously -// api document: https://help.aliyun.com/api/ecs/assignipv6addresses.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) AssignIpv6AddressesWithChan(request *AssignIpv6AddressesRequest) (<-chan *AssignIpv6AddressesResponse, <-chan error) { responseChan := make(chan *AssignIpv6AddressesResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) AssignIpv6AddressesWithChan(request *AssignIpv6AddressesRe } // AssignIpv6AddressesWithCallback invokes the ecs.AssignIpv6Addresses API asynchronously -// api document: https://help.aliyun.com/api/ecs/assignipv6addresses.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) AssignIpv6AddressesWithCallback(request *AssignIpv6AddressesRequest, callback func(response *AssignIpv6AddressesResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,6 +72,9 @@ func (client *Client) AssignIpv6AddressesWithCallback(request *AssignIpv6Address type AssignIpv6AddressesRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + Ipv6Prefix *[]string `position:"Query" name:"Ipv6Prefix" type:"Repeated"` + Ipv6PrefixCount requests.Integer `position:"Query" name:"Ipv6PrefixCount"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` Ipv6AddressCount requests.Integer `position:"Query" name:"Ipv6AddressCount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` @@ -88,7 +86,10 @@ type AssignIpv6AddressesRequest struct { // AssignIpv6AddressesResponse is the response struct for api AssignIpv6Addresses type AssignIpv6AddressesResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` + RequestId string `json:"RequestId" xml:"RequestId"` + NetworkInterfaceId string `json:"NetworkInterfaceId" xml:"NetworkInterfaceId"` + Ipv6Sets Ipv6SetsInAssignIpv6Addresses `json:"Ipv6Sets" xml:"Ipv6Sets"` + Ipv6PrefixSets Ipv6PrefixSetsInAssignIpv6Addresses `json:"Ipv6PrefixSets" xml:"Ipv6PrefixSets"` } // CreateAssignIpv6AddressesRequest creates a request to invoke AssignIpv6Addresses API @@ -97,6 +98,7 @@ func CreateAssignIpv6AddressesRequest() (request *AssignIpv6AddressesRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "AssignIpv6Addresses", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/assign_private_ip_addresses.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/assign_private_ip_addresses.go index b26f7eec..30ccfb67 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/assign_private_ip_addresses.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/assign_private_ip_addresses.go @@ -21,7 +21,6 @@ import ( ) // AssignPrivateIpAddresses invokes the ecs.AssignPrivateIpAddresses API synchronously -// api document: https://help.aliyun.com/api/ecs/assignprivateipaddresses.html func (client *Client) AssignPrivateIpAddresses(request *AssignPrivateIpAddressesRequest) (response *AssignPrivateIpAddressesResponse, err error) { response = CreateAssignPrivateIpAddressesResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) AssignPrivateIpAddresses(request *AssignPrivateIpAddresses } // AssignPrivateIpAddressesWithChan invokes the ecs.AssignPrivateIpAddresses API asynchronously -// api document: https://help.aliyun.com/api/ecs/assignprivateipaddresses.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) AssignPrivateIpAddressesWithChan(request *AssignPrivateIpAddressesRequest) (<-chan *AssignPrivateIpAddressesResponse, <-chan error) { responseChan := make(chan *AssignPrivateIpAddressesResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) AssignPrivateIpAddressesWithChan(request *AssignPrivateIpA } // AssignPrivateIpAddressesWithCallback invokes the ecs.AssignPrivateIpAddresses API asynchronously -// api document: https://help.aliyun.com/api/ecs/assignprivateipaddresses.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) AssignPrivateIpAddressesWithCallback(request *AssignPrivateIpAddressesRequest, callback func(response *AssignPrivateIpAddressesResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,10 +72,13 @@ func (client *Client) AssignPrivateIpAddressesWithCallback(request *AssignPrivat type AssignPrivateIpAddressesRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Ipv4Prefix *[]string `position:"Query" name:"Ipv4Prefix" type:"Repeated"` + ClientToken string `position:"Query" name:"ClientToken"` SecondaryPrivateIpAddressCount requests.Integer `position:"Query" name:"SecondaryPrivateIpAddressCount"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Ipv4PrefixCount requests.Integer `position:"Query" name:"Ipv4PrefixCount"` PrivateIpAddress *[]string `position:"Query" name:"PrivateIpAddress" type:"Repeated"` NetworkInterfaceId string `position:"Query" name:"NetworkInterfaceId"` } @@ -88,7 +86,8 @@ type AssignPrivateIpAddressesRequest struct { // AssignPrivateIpAddressesResponse is the response struct for api AssignPrivateIpAddresses type AssignPrivateIpAddressesResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` + RequestId string `json:"RequestId" xml:"RequestId"` + AssignedPrivateIpAddressesSet AssignedPrivateIpAddressesSet `json:"AssignedPrivateIpAddressesSet" xml:"AssignedPrivateIpAddressesSet"` } // CreateAssignPrivateIpAddressesRequest creates a request to invoke AssignPrivateIpAddresses API @@ -97,6 +96,7 @@ func CreateAssignPrivateIpAddressesRequest() (request *AssignPrivateIpAddressesR RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "AssignPrivateIpAddresses", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/associate_eip_address.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/associate_eip_address.go index cf7e9978..f30fd2e7 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/associate_eip_address.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/associate_eip_address.go @@ -21,7 +21,6 @@ import ( ) // AssociateEipAddress invokes the ecs.AssociateEipAddress API synchronously -// api document: https://help.aliyun.com/api/ecs/associateeipaddress.html func (client *Client) AssociateEipAddress(request *AssociateEipAddressRequest) (response *AssociateEipAddressResponse, err error) { response = CreateAssociateEipAddressResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) AssociateEipAddress(request *AssociateEipAddressRequest) ( } // AssociateEipAddressWithChan invokes the ecs.AssociateEipAddress API asynchronously -// api document: https://help.aliyun.com/api/ecs/associateeipaddress.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) AssociateEipAddressWithChan(request *AssociateEipAddressRequest) (<-chan *AssociateEipAddressResponse, <-chan error) { responseChan := make(chan *AssociateEipAddressResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) AssociateEipAddressWithChan(request *AssociateEipAddressRe } // AssociateEipAddressWithCallback invokes the ecs.AssociateEipAddress API asynchronously -// api document: https://help.aliyun.com/api/ecs/associateeipaddress.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) AssociateEipAddressWithCallback(request *AssociateEipAddressRequest, callback func(response *AssociateEipAddressResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,12 +72,12 @@ func (client *Client) AssociateEipAddressWithCallback(request *AssociateEipAddre type AssociateEipAddressRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` + AllocationId string `position:"Query" name:"AllocationId"` + InstanceType string `position:"Query" name:"InstanceType"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - InstanceType string `position:"Query" name:"InstanceType"` - AllocationId string `position:"Query" name:"AllocationId"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` } // AssociateEipAddressResponse is the response struct for api AssociateEipAddress @@ -97,6 +92,7 @@ func CreateAssociateEipAddressRequest() (request *AssociateEipAddressRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "AssociateEipAddress", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/associate_ha_vip.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/associate_ha_vip.go index b153aa8c..71abdbd5 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/associate_ha_vip.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/associate_ha_vip.go @@ -21,7 +21,6 @@ import ( ) // AssociateHaVip invokes the ecs.AssociateHaVip API synchronously -// api document: https://help.aliyun.com/api/ecs/associatehavip.html func (client *Client) AssociateHaVip(request *AssociateHaVipRequest) (response *AssociateHaVipResponse, err error) { response = CreateAssociateHaVipResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) AssociateHaVip(request *AssociateHaVipRequest) (response * } // AssociateHaVipWithChan invokes the ecs.AssociateHaVip API asynchronously -// api document: https://help.aliyun.com/api/ecs/associatehavip.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) AssociateHaVipWithChan(request *AssociateHaVipRequest) (<-chan *AssociateHaVipResponse, <-chan error) { responseChan := make(chan *AssociateHaVipResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) AssociateHaVipWithChan(request *AssociateHaVipRequest) (<- } // AssociateHaVipWithCallback invokes the ecs.AssociateHaVip API asynchronously -// api document: https://help.aliyun.com/api/ecs/associatehavip.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) AssociateHaVipWithCallback(request *AssociateHaVipRequest, callback func(response *AssociateHaVipResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,13 +71,13 @@ func (client *Client) AssociateHaVipWithCallback(request *AssociateHaVipRequest, // AssociateHaVipRequest is the request struct for api AssociateHaVip type AssociateHaVipRequest struct { *requests.RpcRequest - HaVipId string `position:"Query" name:"HaVipId"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` ClientToken string `position:"Query" name:"ClientToken"` + HaVipId string `position:"Query" name:"HaVipId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` } // AssociateHaVipResponse is the response struct for api AssociateHaVip @@ -97,6 +92,7 @@ func CreateAssociateHaVipRequest() (request *AssociateHaVipRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "AssociateHaVip", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_classic_link_vpc.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_classic_link_vpc.go index d07a4157..6797d497 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_classic_link_vpc.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_classic_link_vpc.go @@ -21,7 +21,6 @@ import ( ) // AttachClassicLinkVpc invokes the ecs.AttachClassicLinkVpc API synchronously -// api document: https://help.aliyun.com/api/ecs/attachclassiclinkvpc.html func (client *Client) AttachClassicLinkVpc(request *AttachClassicLinkVpcRequest) (response *AttachClassicLinkVpcResponse, err error) { response = CreateAttachClassicLinkVpcResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) AttachClassicLinkVpc(request *AttachClassicLinkVpcRequest) } // AttachClassicLinkVpcWithChan invokes the ecs.AttachClassicLinkVpc API asynchronously -// api document: https://help.aliyun.com/api/ecs/attachclassiclinkvpc.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) AttachClassicLinkVpcWithChan(request *AttachClassicLinkVpcRequest) (<-chan *AttachClassicLinkVpcResponse, <-chan error) { responseChan := make(chan *AttachClassicLinkVpcResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) AttachClassicLinkVpcWithChan(request *AttachClassicLinkVpc } // AttachClassicLinkVpcWithCallback invokes the ecs.AttachClassicLinkVpc API asynchronously -// api document: https://help.aliyun.com/api/ecs/attachclassiclinkvpc.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) AttachClassicLinkVpcWithCallback(request *AttachClassicLinkVpcRequest, callback func(response *AttachClassicLinkVpcResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,10 +72,10 @@ func (client *Client) AttachClassicLinkVpcWithCallback(request *AttachClassicLin type AttachClassicLinkVpcRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - VpcId string `position:"Query" name:"VpcId"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + VpcId string `position:"Query" name:"VpcId"` } // AttachClassicLinkVpcResponse is the response struct for api AttachClassicLinkVpc @@ -95,6 +90,7 @@ func CreateAttachClassicLinkVpcRequest() (request *AttachClassicLinkVpcRequest) RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "AttachClassicLinkVpc", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_disk.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_disk.go index 452f73f2..7a37bc2e 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_disk.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_disk.go @@ -21,7 +21,6 @@ import ( ) // AttachDisk invokes the ecs.AttachDisk API synchronously -// api document: https://help.aliyun.com/api/ecs/attachdisk.html func (client *Client) AttachDisk(request *AttachDiskRequest) (response *AttachDiskResponse, err error) { response = CreateAttachDiskResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) AttachDisk(request *AttachDiskRequest) (response *AttachDi } // AttachDiskWithChan invokes the ecs.AttachDisk API asynchronously -// api document: https://help.aliyun.com/api/ecs/attachdisk.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) AttachDiskWithChan(request *AttachDiskRequest) (<-chan *AttachDiskResponse, <-chan error) { responseChan := make(chan *AttachDiskResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) AttachDiskWithChan(request *AttachDiskRequest) (<-chan *At } // AttachDiskWithCallback invokes the ecs.AttachDisk API asynchronously -// api document: https://help.aliyun.com/api/ecs/attachdisk.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) AttachDiskWithCallback(request *AttachDiskRequest, callback func(response *AttachDiskResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,13 +72,16 @@ func (client *Client) AttachDiskWithCallback(request *AttachDiskRequest, callbac type AttachDiskRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` + KeyPairName string `position:"Query" name:"KeyPairName"` + Bootable requests.Boolean `position:"Query" name:"Bootable"` + Password string `position:"Query" name:"Password"` + DiskId string `position:"Query" name:"DiskId"` + DeleteWithInstance requests.Boolean `position:"Query" name:"DeleteWithInstance"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - DiskId string `position:"Query" name:"DiskId"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` Device string `position:"Query" name:"Device"` - DeleteWithInstance requests.Boolean `position:"Query" name:"DeleteWithInstance"` } // AttachDiskResponse is the response struct for api AttachDisk @@ -98,6 +96,7 @@ func CreateAttachDiskRequest() (request *AttachDiskRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "AttachDisk", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_instance_ram_role.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_instance_ram_role.go index 7a697f52..8d49dc08 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_instance_ram_role.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_instance_ram_role.go @@ -21,7 +21,6 @@ import ( ) // AttachInstanceRamRole invokes the ecs.AttachInstanceRamRole API synchronously -// api document: https://help.aliyun.com/api/ecs/attachinstanceramrole.html func (client *Client) AttachInstanceRamRole(request *AttachInstanceRamRoleRequest) (response *AttachInstanceRamRoleResponse, err error) { response = CreateAttachInstanceRamRoleResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) AttachInstanceRamRole(request *AttachInstanceRamRoleReques } // AttachInstanceRamRoleWithChan invokes the ecs.AttachInstanceRamRole API asynchronously -// api document: https://help.aliyun.com/api/ecs/attachinstanceramrole.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) AttachInstanceRamRoleWithChan(request *AttachInstanceRamRoleRequest) (<-chan *AttachInstanceRamRoleResponse, <-chan error) { responseChan := make(chan *AttachInstanceRamRoleResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) AttachInstanceRamRoleWithChan(request *AttachInstanceRamRo } // AttachInstanceRamRoleWithCallback invokes the ecs.AttachInstanceRamRole API asynchronously -// api document: https://help.aliyun.com/api/ecs/attachinstanceramrole.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) AttachInstanceRamRoleWithCallback(request *AttachInstanceRamRoleRequest, callback func(response *AttachInstanceRamRoleResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,19 +72,20 @@ func (client *Client) AttachInstanceRamRoleWithCallback(request *AttachInstanceR type AttachInstanceRamRoleRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Policy string `position:"Query" name:"Policy"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - InstanceIds string `position:"Query" name:"InstanceIds"` RamRoleName string `position:"Query" name:"RamRoleName"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceIds string `position:"Query" name:"InstanceIds"` } // AttachInstanceRamRoleResponse is the response struct for api AttachInstanceRamRole type AttachInstanceRamRoleResponse struct { *responses.BaseResponse + RamRoleName string `json:"RamRoleName" xml:"RamRoleName"` RequestId string `json:"RequestId" xml:"RequestId"` TotalCount int `json:"TotalCount" xml:"TotalCount"` FailCount int `json:"FailCount" xml:"FailCount"` - RamRoleName string `json:"RamRoleName" xml:"RamRoleName"` AttachInstanceRamRoleResults AttachInstanceRamRoleResults `json:"AttachInstanceRamRoleResults" xml:"AttachInstanceRamRoleResults"` } @@ -99,6 +95,7 @@ func CreateAttachInstanceRamRoleRequest() (request *AttachInstanceRamRoleRequest RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "AttachInstanceRamRole", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_key_pair.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_key_pair.go index 275410fb..492e97e4 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_key_pair.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_key_pair.go @@ -21,7 +21,6 @@ import ( ) // AttachKeyPair invokes the ecs.AttachKeyPair API synchronously -// api document: https://help.aliyun.com/api/ecs/attachkeypair.html func (client *Client) AttachKeyPair(request *AttachKeyPairRequest) (response *AttachKeyPairResponse, err error) { response = CreateAttachKeyPairResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) AttachKeyPair(request *AttachKeyPairRequest) (response *At } // AttachKeyPairWithChan invokes the ecs.AttachKeyPair API asynchronously -// api document: https://help.aliyun.com/api/ecs/attachkeypair.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) AttachKeyPairWithChan(request *AttachKeyPairRequest) (<-chan *AttachKeyPairResponse, <-chan error) { responseChan := make(chan *AttachKeyPairResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) AttachKeyPairWithChan(request *AttachKeyPairRequest) (<-ch } // AttachKeyPairWithCallback invokes the ecs.AttachKeyPair API asynchronously -// api document: https://help.aliyun.com/api/ecs/attachkeypair.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) AttachKeyPairWithCallback(request *AttachKeyPairRequest, callback func(response *AttachKeyPairResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,19 +72,19 @@ func (client *Client) AttachKeyPairWithCallback(request *AttachKeyPairRequest, c type AttachKeyPairRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - InstanceIds string `position:"Query" name:"InstanceIds"` KeyPairName string `position:"Query" name:"KeyPairName"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceIds string `position:"Query" name:"InstanceIds"` } // AttachKeyPairResponse is the response struct for api AttachKeyPair type AttachKeyPairResponse struct { *responses.BaseResponse + KeyPairName string `json:"KeyPairName" xml:"KeyPairName"` RequestId string `json:"RequestId" xml:"RequestId"` TotalCount string `json:"TotalCount" xml:"TotalCount"` FailCount string `json:"FailCount" xml:"FailCount"` - KeyPairName string `json:"KeyPairName" xml:"KeyPairName"` Results ResultsInAttachKeyPair `json:"Results" xml:"Results"` } @@ -99,6 +94,7 @@ func CreateAttachKeyPairRequest() (request *AttachKeyPairRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "AttachKeyPair", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_network_interface.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_network_interface.go index a65ec4e7..71982f65 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_network_interface.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/attach_network_interface.go @@ -21,7 +21,6 @@ import ( ) // AttachNetworkInterface invokes the ecs.AttachNetworkInterface API synchronously -// api document: https://help.aliyun.com/api/ecs/attachnetworkinterface.html func (client *Client) AttachNetworkInterface(request *AttachNetworkInterfaceRequest) (response *AttachNetworkInterfaceResponse, err error) { response = CreateAttachNetworkInterfaceResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) AttachNetworkInterface(request *AttachNetworkInterfaceRequ } // AttachNetworkInterfaceWithChan invokes the ecs.AttachNetworkInterface API asynchronously -// api document: https://help.aliyun.com/api/ecs/attachnetworkinterface.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) AttachNetworkInterfaceWithChan(request *AttachNetworkInterfaceRequest) (<-chan *AttachNetworkInterfaceResponse, <-chan error) { responseChan := make(chan *AttachNetworkInterfaceResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) AttachNetworkInterfaceWithChan(request *AttachNetworkInter } // AttachNetworkInterfaceWithCallback invokes the ecs.AttachNetworkInterface API asynchronously -// api document: https://help.aliyun.com/api/ecs/attachnetworkinterface.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) AttachNetworkInterfaceWithCallback(request *AttachNetworkInterfaceRequest, callback func(response *AttachNetworkInterfaceResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,12 +71,15 @@ func (client *Client) AttachNetworkInterfaceWithCallback(request *AttachNetworkI // AttachNetworkInterfaceRequest is the request struct for api AttachNetworkInterface type AttachNetworkInterfaceRequest struct { *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` - NetworkInterfaceId string `position:"Query" name:"NetworkInterfaceId"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + TrunkNetworkInstanceId string `position:"Query" name:"TrunkNetworkInstanceId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + WaitForNetworkConfigurationReady requests.Boolean `position:"Query" name:"WaitForNetworkConfigurationReady"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + NetworkCardIndex requests.Integer `position:"Query" name:"NetworkCardIndex"` + InstanceId string `position:"Query" name:"InstanceId"` + NetworkInterfaceId string `position:"Query" name:"NetworkInterfaceId"` } // AttachNetworkInterfaceResponse is the response struct for api AttachNetworkInterface @@ -96,6 +94,7 @@ func CreateAttachNetworkInterfaceRequest() (request *AttachNetworkInterfaceReque RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "AttachNetworkInterface", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/authorize_security_group.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/authorize_security_group.go index b1d7269b..fe9a0fac 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/authorize_security_group.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/authorize_security_group.go @@ -21,7 +21,6 @@ import ( ) // AuthorizeSecurityGroup invokes the ecs.AuthorizeSecurityGroup API synchronously -// api document: https://help.aliyun.com/api/ecs/authorizesecuritygroup.html func (client *Client) AuthorizeSecurityGroup(request *AuthorizeSecurityGroupRequest) (response *AuthorizeSecurityGroupResponse, err error) { response = CreateAuthorizeSecurityGroupResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) AuthorizeSecurityGroup(request *AuthorizeSecurityGroupRequ } // AuthorizeSecurityGroupWithChan invokes the ecs.AuthorizeSecurityGroup API asynchronously -// api document: https://help.aliyun.com/api/ecs/authorizesecuritygroup.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) AuthorizeSecurityGroupWithChan(request *AuthorizeSecurityGroupRequest) (<-chan *AuthorizeSecurityGroupResponse, <-chan error) { responseChan := make(chan *AuthorizeSecurityGroupResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) AuthorizeSecurityGroupWithChan(request *AuthorizeSecurityG } // AuthorizeSecurityGroupWithCallback invokes the ecs.AuthorizeSecurityGroup API asynchronously -// api document: https://help.aliyun.com/api/ecs/authorizesecuritygroup.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) AuthorizeSecurityGroupWithCallback(request *AuthorizeSecurityGroupRequest, callback func(response *AuthorizeSecurityGroupResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,26 +71,47 @@ func (client *Client) AuthorizeSecurityGroupWithCallback(request *AuthorizeSecur // AuthorizeSecurityGroupRequest is the request struct for api AuthorizeSecurityGroup type AuthorizeSecurityGroupRequest struct { *requests.RpcRequest - NicType string `position:"Query" name:"NicType"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - SourcePortRange string `position:"Query" name:"SourcePortRange"` - ClientToken string `position:"Query" name:"ClientToken"` - SecurityGroupId string `position:"Query" name:"SecurityGroupId"` - Description string `position:"Query" name:"Description"` - SourceGroupOwnerId requests.Integer `position:"Query" name:"SourceGroupOwnerId"` - SourceGroupOwnerAccount string `position:"Query" name:"SourceGroupOwnerAccount"` - Ipv6SourceCidrIp string `position:"Query" name:"Ipv6SourceCidrIp"` - Ipv6DestCidrIp string `position:"Query" name:"Ipv6DestCidrIp"` - Policy string `position:"Query" name:"Policy"` - PortRange string `position:"Query" name:"PortRange"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - IpProtocol string `position:"Query" name:"IpProtocol"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - SourceCidrIp string `position:"Query" name:"SourceCidrIp"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Priority string `position:"Query" name:"Priority"` - DestCidrIp string `position:"Query" name:"DestCidrIp"` - SourceGroupId string `position:"Query" name:"SourceGroupId"` + NicType string `position:"Query" name:"NicType"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SourcePrefixListId string `position:"Query" name:"SourcePrefixListId"` + SourcePortRange string `position:"Query" name:"SourcePortRange"` + ClientToken string `position:"Query" name:"ClientToken"` + SecurityGroupId string `position:"Query" name:"SecurityGroupId"` + Description string `position:"Query" name:"Description"` + SourceGroupOwnerId requests.Integer `position:"Query" name:"SourceGroupOwnerId"` + SourceGroupOwnerAccount string `position:"Query" name:"SourceGroupOwnerAccount"` + Permissions *[]AuthorizeSecurityGroupPermissions `position:"Query" name:"Permissions" type:"Repeated"` + Policy string `position:"Query" name:"Policy"` + Ipv6SourceCidrIp string `position:"Query" name:"Ipv6SourceCidrIp"` + Ipv6DestCidrIp string `position:"Query" name:"Ipv6DestCidrIp"` + PortRange string `position:"Query" name:"PortRange"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + IpProtocol string `position:"Query" name:"IpProtocol"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + SourceCidrIp string `position:"Query" name:"SourceCidrIp"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Priority string `position:"Query" name:"Priority"` + DestCidrIp string `position:"Query" name:"DestCidrIp"` + SourceGroupId string `position:"Query" name:"SourceGroupId"` +} + +// AuthorizeSecurityGroupPermissions is a repeated param struct in AuthorizeSecurityGroupRequest +type AuthorizeSecurityGroupPermissions struct { + Policy string `name:"Policy"` + Priority string `name:"Priority"` + IpProtocol string `name:"IpProtocol"` + SourceCidrIp string `name:"SourceCidrIp"` + Ipv6SourceCidrIp string `name:"Ipv6SourceCidrIp"` + SourceGroupId string `name:"SourceGroupId"` + SourcePrefixListId string `name:"SourcePrefixListId"` + PortRange string `name:"PortRange"` + DestCidrIp string `name:"DestCidrIp"` + Ipv6DestCidrIp string `name:"Ipv6DestCidrIp"` + SourcePortRange string `name:"SourcePortRange"` + SourceGroupOwnerAccount string `name:"SourceGroupOwnerAccount"` + SourceGroupOwnerId string `name:"SourceGroupOwnerId"` + NicType string `name:"NicType"` + Description string `name:"Description"` } // AuthorizeSecurityGroupResponse is the response struct for api AuthorizeSecurityGroup @@ -110,6 +126,7 @@ func CreateAuthorizeSecurityGroupRequest() (request *AuthorizeSecurityGroupReque RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "AuthorizeSecurityGroup", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/authorize_security_group_egress.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/authorize_security_group_egress.go index 379e0c35..f109cd6b 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/authorize_security_group_egress.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/authorize_security_group_egress.go @@ -21,7 +21,6 @@ import ( ) // AuthorizeSecurityGroupEgress invokes the ecs.AuthorizeSecurityGroupEgress API synchronously -// api document: https://help.aliyun.com/api/ecs/authorizesecuritygroupegress.html func (client *Client) AuthorizeSecurityGroupEgress(request *AuthorizeSecurityGroupEgressRequest) (response *AuthorizeSecurityGroupEgressResponse, err error) { response = CreateAuthorizeSecurityGroupEgressResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) AuthorizeSecurityGroupEgress(request *AuthorizeSecurityGro } // AuthorizeSecurityGroupEgressWithChan invokes the ecs.AuthorizeSecurityGroupEgress API asynchronously -// api document: https://help.aliyun.com/api/ecs/authorizesecuritygroupegress.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) AuthorizeSecurityGroupEgressWithChan(request *AuthorizeSecurityGroupEgressRequest) (<-chan *AuthorizeSecurityGroupEgressResponse, <-chan error) { responseChan := make(chan *AuthorizeSecurityGroupEgressResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) AuthorizeSecurityGroupEgressWithChan(request *AuthorizeSec } // AuthorizeSecurityGroupEgressWithCallback invokes the ecs.AuthorizeSecurityGroupEgress API asynchronously -// api document: https://help.aliyun.com/api/ecs/authorizesecuritygroupegress.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) AuthorizeSecurityGroupEgressWithCallback(request *AuthorizeSecurityGroupEgressRequest, callback func(response *AuthorizeSecurityGroupEgressResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,26 +71,47 @@ func (client *Client) AuthorizeSecurityGroupEgressWithCallback(request *Authoriz // AuthorizeSecurityGroupEgressRequest is the request struct for api AuthorizeSecurityGroupEgress type AuthorizeSecurityGroupEgressRequest struct { *requests.RpcRequest - NicType string `position:"Query" name:"NicType"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - SourcePortRange string `position:"Query" name:"SourcePortRange"` - ClientToken string `position:"Query" name:"ClientToken"` - SecurityGroupId string `position:"Query" name:"SecurityGroupId"` - Description string `position:"Query" name:"Description"` - Ipv6DestCidrIp string `position:"Query" name:"Ipv6DestCidrIp"` - Ipv6SourceCidrIp string `position:"Query" name:"Ipv6SourceCidrIp"` - Policy string `position:"Query" name:"Policy"` - PortRange string `position:"Query" name:"PortRange"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - IpProtocol string `position:"Query" name:"IpProtocol"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - SourceCidrIp string `position:"Query" name:"SourceCidrIp"` - DestGroupId string `position:"Query" name:"DestGroupId"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - DestGroupOwnerAccount string `position:"Query" name:"DestGroupOwnerAccount"` - Priority string `position:"Query" name:"Priority"` - DestCidrIp string `position:"Query" name:"DestCidrIp"` - DestGroupOwnerId requests.Integer `position:"Query" name:"DestGroupOwnerId"` + NicType string `position:"Query" name:"NicType"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SourcePortRange string `position:"Query" name:"SourcePortRange"` + ClientToken string `position:"Query" name:"ClientToken"` + DestPrefixListId string `position:"Query" name:"DestPrefixListId"` + SecurityGroupId string `position:"Query" name:"SecurityGroupId"` + Description string `position:"Query" name:"Description"` + Permissions *[]AuthorizeSecurityGroupEgressPermissions `position:"Query" name:"Permissions" type:"Repeated"` + Policy string `position:"Query" name:"Policy"` + Ipv6DestCidrIp string `position:"Query" name:"Ipv6DestCidrIp"` + Ipv6SourceCidrIp string `position:"Query" name:"Ipv6SourceCidrIp"` + PortRange string `position:"Query" name:"PortRange"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + IpProtocol string `position:"Query" name:"IpProtocol"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + SourceCidrIp string `position:"Query" name:"SourceCidrIp"` + DestGroupId string `position:"Query" name:"DestGroupId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Priority string `position:"Query" name:"Priority"` + DestGroupOwnerAccount string `position:"Query" name:"DestGroupOwnerAccount"` + DestCidrIp string `position:"Query" name:"DestCidrIp"` + DestGroupOwnerId requests.Integer `position:"Query" name:"DestGroupOwnerId"` +} + +// AuthorizeSecurityGroupEgressPermissions is a repeated param struct in AuthorizeSecurityGroupEgressRequest +type AuthorizeSecurityGroupEgressPermissions struct { + Policy string `name:"Policy"` + Priority string `name:"Priority"` + IpProtocol string `name:"IpProtocol"` + DestCidrIp string `name:"DestCidrIp"` + Ipv6DestCidrIp string `name:"Ipv6DestCidrIp"` + DestGroupId string `name:"DestGroupId"` + DestPrefixListId string `name:"DestPrefixListId"` + PortRange string `name:"PortRange"` + SourceCidrIp string `name:"SourceCidrIp"` + Ipv6SourceCidrIp string `name:"Ipv6SourceCidrIp"` + SourcePortRange string `name:"SourcePortRange"` + DestGroupOwnerAccount string `name:"DestGroupOwnerAccount"` + DestGroupOwnerId string `name:"DestGroupOwnerId"` + NicType string `name:"NicType"` + Description string `name:"Description"` } // AuthorizeSecurityGroupEgressResponse is the response struct for api AuthorizeSecurityGroupEgress @@ -110,6 +126,7 @@ func CreateAuthorizeSecurityGroupEgressRequest() (request *AuthorizeSecurityGrou RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "AuthorizeSecurityGroupEgress", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_auto_snapshot_policy.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_auto_snapshot_policy.go index 46fa7718..0aa7ce37 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_auto_snapshot_policy.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_auto_snapshot_policy.go @@ -21,7 +21,6 @@ import ( ) // CancelAutoSnapshotPolicy invokes the ecs.CancelAutoSnapshotPolicy API synchronously -// api document: https://help.aliyun.com/api/ecs/cancelautosnapshotpolicy.html func (client *Client) CancelAutoSnapshotPolicy(request *CancelAutoSnapshotPolicyRequest) (response *CancelAutoSnapshotPolicyResponse, err error) { response = CreateCancelAutoSnapshotPolicyResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) CancelAutoSnapshotPolicy(request *CancelAutoSnapshotPolicy } // CancelAutoSnapshotPolicyWithChan invokes the ecs.CancelAutoSnapshotPolicy API asynchronously -// api document: https://help.aliyun.com/api/ecs/cancelautosnapshotpolicy.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CancelAutoSnapshotPolicyWithChan(request *CancelAutoSnapshotPolicyRequest) (<-chan *CancelAutoSnapshotPolicyResponse, <-chan error) { responseChan := make(chan *CancelAutoSnapshotPolicyResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) CancelAutoSnapshotPolicyWithChan(request *CancelAutoSnapsh } // CancelAutoSnapshotPolicyWithCallback invokes the ecs.CancelAutoSnapshotPolicy API asynchronously -// api document: https://help.aliyun.com/api/ecs/cancelautosnapshotpolicy.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CancelAutoSnapshotPolicyWithCallback(request *CancelAutoSnapshotPolicyRequest, callback func(response *CancelAutoSnapshotPolicyResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,8 +72,8 @@ func (client *Client) CancelAutoSnapshotPolicyWithCallback(request *CancelAutoSn type CancelAutoSnapshotPolicyRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` DiskIds string `position:"Query" name:"diskIds"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` } @@ -94,6 +89,7 @@ func CreateCancelAutoSnapshotPolicyRequest() (request *CancelAutoSnapshotPolicyR RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "CancelAutoSnapshotPolicy", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_copy_image.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_copy_image.go index c0042146..2f3ccd82 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_copy_image.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_copy_image.go @@ -21,7 +21,6 @@ import ( ) // CancelCopyImage invokes the ecs.CancelCopyImage API synchronously -// api document: https://help.aliyun.com/api/ecs/cancelcopyimage.html func (client *Client) CancelCopyImage(request *CancelCopyImageRequest) (response *CancelCopyImageResponse, err error) { response = CreateCancelCopyImageResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) CancelCopyImage(request *CancelCopyImageRequest) (response } // CancelCopyImageWithChan invokes the ecs.CancelCopyImage API asynchronously -// api document: https://help.aliyun.com/api/ecs/cancelcopyimage.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CancelCopyImageWithChan(request *CancelCopyImageRequest) (<-chan *CancelCopyImageResponse, <-chan error) { responseChan := make(chan *CancelCopyImageResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) CancelCopyImageWithChan(request *CancelCopyImageRequest) ( } // CancelCopyImageWithCallback invokes the ecs.CancelCopyImage API asynchronously -// api document: https://help.aliyun.com/api/ecs/cancelcopyimage.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CancelCopyImageWithCallback(request *CancelCopyImageRequest, callback func(response *CancelCopyImageResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -95,6 +90,7 @@ func CreateCancelCopyImageRequest() (request *CancelCopyImageRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "CancelCopyImage", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_image_pipeline_execution.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_image_pipeline_execution.go new file mode 100644 index 00000000..eca4700c --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_image_pipeline_execution.go @@ -0,0 +1,110 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CancelImagePipelineExecution invokes the ecs.CancelImagePipelineExecution API synchronously +func (client *Client) CancelImagePipelineExecution(request *CancelImagePipelineExecutionRequest) (response *CancelImagePipelineExecutionResponse, err error) { + response = CreateCancelImagePipelineExecutionResponse() + err = client.DoAction(request, response) + return +} + +// CancelImagePipelineExecutionWithChan invokes the ecs.CancelImagePipelineExecution API asynchronously +func (client *Client) CancelImagePipelineExecutionWithChan(request *CancelImagePipelineExecutionRequest) (<-chan *CancelImagePipelineExecutionResponse, <-chan error) { + responseChan := make(chan *CancelImagePipelineExecutionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CancelImagePipelineExecution(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CancelImagePipelineExecutionWithCallback invokes the ecs.CancelImagePipelineExecution API asynchronously +func (client *Client) CancelImagePipelineExecutionWithCallback(request *CancelImagePipelineExecutionRequest, callback func(response *CancelImagePipelineExecutionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CancelImagePipelineExecutionResponse + var err error + defer close(result) + response, err = client.CancelImagePipelineExecution(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CancelImagePipelineExecutionRequest is the request struct for api CancelImagePipelineExecution +type CancelImagePipelineExecutionRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ExecutionId string `position:"Query" name:"ExecutionId"` + TemplateTag *[]CancelImagePipelineExecutionTemplateTag `position:"Query" name:"TemplateTag" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// CancelImagePipelineExecutionTemplateTag is a repeated param struct in CancelImagePipelineExecutionRequest +type CancelImagePipelineExecutionTemplateTag struct { + Key string `name:"Key"` + Value string `name:"Value"` +} + +// CancelImagePipelineExecutionResponse is the response struct for api CancelImagePipelineExecution +type CancelImagePipelineExecutionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCancelImagePipelineExecutionRequest creates a request to invoke CancelImagePipelineExecution API +func CreateCancelImagePipelineExecutionRequest() (request *CancelImagePipelineExecutionRequest) { + request = &CancelImagePipelineExecutionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "CancelImagePipelineExecution", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateCancelImagePipelineExecutionResponse creates a response to parse from CancelImagePipelineExecution response +func CreateCancelImagePipelineExecutionResponse() (response *CancelImagePipelineExecutionResponse) { + response = &CancelImagePipelineExecutionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_physical_connection.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_physical_connection.go index df2beb5a..afd7090a 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_physical_connection.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_physical_connection.go @@ -21,7 +21,6 @@ import ( ) // CancelPhysicalConnection invokes the ecs.CancelPhysicalConnection API synchronously -// api document: https://help.aliyun.com/api/ecs/cancelphysicalconnection.html func (client *Client) CancelPhysicalConnection(request *CancelPhysicalConnectionRequest) (response *CancelPhysicalConnectionResponse, err error) { response = CreateCancelPhysicalConnectionResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) CancelPhysicalConnection(request *CancelPhysicalConnection } // CancelPhysicalConnectionWithChan invokes the ecs.CancelPhysicalConnection API asynchronously -// api document: https://help.aliyun.com/api/ecs/cancelphysicalconnection.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CancelPhysicalConnectionWithChan(request *CancelPhysicalConnectionRequest) (<-chan *CancelPhysicalConnectionResponse, <-chan error) { responseChan := make(chan *CancelPhysicalConnectionResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) CancelPhysicalConnectionWithChan(request *CancelPhysicalCo } // CancelPhysicalConnectionWithCallback invokes the ecs.CancelPhysicalConnection API asynchronously -// api document: https://help.aliyun.com/api/ecs/cancelphysicalconnection.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CancelPhysicalConnectionWithCallback(request *CancelPhysicalConnectionRequest, callback func(response *CancelPhysicalConnectionResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,12 +72,12 @@ func (client *Client) CancelPhysicalConnectionWithCallback(request *CancelPhysic type CancelPhysicalConnectionRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` ClientToken string `position:"Query" name:"ClientToken"` - PhysicalConnectionId string `position:"Query" name:"PhysicalConnectionId"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` UserCidr string `position:"Query" name:"UserCidr"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PhysicalConnectionId string `position:"Query" name:"PhysicalConnectionId"` } // CancelPhysicalConnectionResponse is the response struct for api CancelPhysicalConnection @@ -97,6 +92,7 @@ func CreateCancelPhysicalConnectionRequest() (request *CancelPhysicalConnectionR RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "CancelPhysicalConnection", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_simulated_system_events.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_simulated_system_events.go index b77f86d5..8613b1ea 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_simulated_system_events.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_simulated_system_events.go @@ -21,7 +21,6 @@ import ( ) // CancelSimulatedSystemEvents invokes the ecs.CancelSimulatedSystemEvents API synchronously -// api document: https://help.aliyun.com/api/ecs/cancelsimulatedsystemevents.html func (client *Client) CancelSimulatedSystemEvents(request *CancelSimulatedSystemEventsRequest) (response *CancelSimulatedSystemEventsResponse, err error) { response = CreateCancelSimulatedSystemEventsResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) CancelSimulatedSystemEvents(request *CancelSimulatedSystem } // CancelSimulatedSystemEventsWithChan invokes the ecs.CancelSimulatedSystemEvents API asynchronously -// api document: https://help.aliyun.com/api/ecs/cancelsimulatedsystemevents.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CancelSimulatedSystemEventsWithChan(request *CancelSimulatedSystemEventsRequest) (<-chan *CancelSimulatedSystemEventsResponse, <-chan error) { responseChan := make(chan *CancelSimulatedSystemEventsResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) CancelSimulatedSystemEventsWithChan(request *CancelSimulat } // CancelSimulatedSystemEventsWithCallback invokes the ecs.CancelSimulatedSystemEvents API asynchronously -// api document: https://help.aliyun.com/api/ecs/cancelsimulatedsystemevents.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CancelSimulatedSystemEventsWithCallback(request *CancelSimulatedSystemEventsRequest, callback func(response *CancelSimulatedSystemEventsResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -95,6 +90,7 @@ func CreateCancelSimulatedSystemEventsRequest() (request *CancelSimulatedSystemE RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "CancelSimulatedSystemEvents", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_task.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_task.go index 1f83b02b..70d6b4af 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_task.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/cancel_task.go @@ -21,7 +21,6 @@ import ( ) // CancelTask invokes the ecs.CancelTask API synchronously -// api document: https://help.aliyun.com/api/ecs/canceltask.html func (client *Client) CancelTask(request *CancelTaskRequest) (response *CancelTaskResponse, err error) { response = CreateCancelTaskResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) CancelTask(request *CancelTaskRequest) (response *CancelTa } // CancelTaskWithChan invokes the ecs.CancelTask API asynchronously -// api document: https://help.aliyun.com/api/ecs/canceltask.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CancelTaskWithChan(request *CancelTaskRequest) (<-chan *CancelTaskResponse, <-chan error) { responseChan := make(chan *CancelTaskResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) CancelTaskWithChan(request *CancelTaskRequest) (<-chan *Ca } // CancelTaskWithCallback invokes the ecs.CancelTask API asynchronously -// api document: https://help.aliyun.com/api/ecs/canceltask.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CancelTaskWithCallback(request *CancelTaskRequest, callback func(response *CancelTaskResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,9 +72,9 @@ func (client *Client) CancelTaskWithCallback(request *CancelTaskRequest, callbac type CancelTaskRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + TaskId string `position:"Query" name:"TaskId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - TaskId string `position:"Query" name:"TaskId"` } // CancelTaskResponse is the response struct for api CancelTask @@ -94,6 +89,7 @@ func CreateCancelTaskRequest() (request *CancelTaskRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "CancelTask", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/connect_router_interface.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/connect_router_interface.go index 46adafce..301a93cf 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/connect_router_interface.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/connect_router_interface.go @@ -21,7 +21,6 @@ import ( ) // ConnectRouterInterface invokes the ecs.ConnectRouterInterface API synchronously -// api document: https://help.aliyun.com/api/ecs/connectrouterinterface.html func (client *Client) ConnectRouterInterface(request *ConnectRouterInterfaceRequest) (response *ConnectRouterInterfaceResponse, err error) { response = CreateConnectRouterInterfaceResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ConnectRouterInterface(request *ConnectRouterInterfaceRequ } // ConnectRouterInterfaceWithChan invokes the ecs.ConnectRouterInterface API asynchronously -// api document: https://help.aliyun.com/api/ecs/connectrouterinterface.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ConnectRouterInterfaceWithChan(request *ConnectRouterInterfaceRequest) (<-chan *ConnectRouterInterfaceResponse, <-chan error) { responseChan := make(chan *ConnectRouterInterfaceResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ConnectRouterInterfaceWithChan(request *ConnectRouterInter } // ConnectRouterInterfaceWithCallback invokes the ecs.ConnectRouterInterface API asynchronously -// api document: https://help.aliyun.com/api/ecs/connectrouterinterface.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ConnectRouterInterfaceWithCallback(request *ConnectRouterInterfaceRequest, callback func(response *ConnectRouterInterfaceResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -94,6 +89,7 @@ func CreateConnectRouterInterfaceRequest() (request *ConnectRouterInterfaceReque RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ConnectRouterInterface", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/convert_nat_public_ip_to_eip.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/convert_nat_public_ip_to_eip.go index 1934e167..9be9c7a8 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/convert_nat_public_ip_to_eip.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/convert_nat_public_ip_to_eip.go @@ -21,7 +21,6 @@ import ( ) // ConvertNatPublicIpToEip invokes the ecs.ConvertNatPublicIpToEip API synchronously -// api document: https://help.aliyun.com/api/ecs/convertnatpubliciptoeip.html func (client *Client) ConvertNatPublicIpToEip(request *ConvertNatPublicIpToEipRequest) (response *ConvertNatPublicIpToEipResponse, err error) { response = CreateConvertNatPublicIpToEipResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ConvertNatPublicIpToEip(request *ConvertNatPublicIpToEipRe } // ConvertNatPublicIpToEipWithChan invokes the ecs.ConvertNatPublicIpToEip API asynchronously -// api document: https://help.aliyun.com/api/ecs/convertnatpubliciptoeip.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ConvertNatPublicIpToEipWithChan(request *ConvertNatPublicIpToEipRequest) (<-chan *ConvertNatPublicIpToEipResponse, <-chan error) { responseChan := make(chan *ConvertNatPublicIpToEipResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ConvertNatPublicIpToEipWithChan(request *ConvertNatPublicI } // ConvertNatPublicIpToEipWithCallback invokes the ecs.ConvertNatPublicIpToEip API asynchronously -// api document: https://help.aliyun.com/api/ecs/convertnatpubliciptoeip.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ConvertNatPublicIpToEipWithCallback(request *ConvertNatPublicIpToEipRequest, callback func(response *ConvertNatPublicIpToEipResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -94,6 +89,7 @@ func CreateConvertNatPublicIpToEipRequest() (request *ConvertNatPublicIpToEipReq RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ConvertNatPublicIpToEip", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/copy_image.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/copy_image.go index 57ff2d68..c170843c 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/copy_image.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/copy_image.go @@ -21,7 +21,6 @@ import ( ) // CopyImage invokes the ecs.CopyImage API synchronously -// api document: https://help.aliyun.com/api/ecs/copyimage.html func (client *Client) CopyImage(request *CopyImageRequest) (response *CopyImageResponse, err error) { response = CreateCopyImageResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) CopyImage(request *CopyImageRequest) (response *CopyImageR } // CopyImageWithChan invokes the ecs.CopyImage API asynchronously -// api document: https://help.aliyun.com/api/ecs/copyimage.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CopyImageWithChan(request *CopyImageRequest) (<-chan *CopyImageResponse, <-chan error) { responseChan := make(chan *CopyImageResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) CopyImageWithChan(request *CopyImageRequest) (<-chan *Copy } // CopyImageWithCallback invokes the ecs.CopyImage API asynchronously -// api document: https://help.aliyun.com/api/ecs/copyimage.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CopyImageWithCallback(request *CopyImageRequest, callback func(response *CopyImageResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -78,13 +73,15 @@ type CopyImageRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` ImageId string `position:"Query" name:"ImageId"` + EncryptAlgorithm string `position:"Query" name:"EncryptAlgorithm"` + DestinationRegionId string `position:"Query" name:"DestinationRegionId"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + Tag *[]CopyImageTag `position:"Query" name:"Tag" type:"Repeated"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` DestinationImageName string `position:"Query" name:"DestinationImageName"` - DestinationRegionId string `position:"Query" name:"DestinationRegionId"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` Encrypted requests.Boolean `position:"Query" name:"Encrypted"` - Tag *[]CopyImageTag `position:"Query" name:"Tag" type:"Repeated"` KMSKeyId string `position:"Query" name:"KMSKeyId"` DestinationDescription string `position:"Query" name:"DestinationDescription"` } @@ -98,8 +95,8 @@ type CopyImageTag struct { // CopyImageResponse is the response struct for api CopyImage type CopyImageResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` ImageId string `json:"ImageId" xml:"ImageId"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateCopyImageRequest creates a request to invoke CopyImage API @@ -108,6 +105,7 @@ func CreateCopyImageRequest() (request *CopyImageRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "CopyImage", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/copy_snapshot.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/copy_snapshot.go new file mode 100644 index 00000000..3abd0984 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/copy_snapshot.go @@ -0,0 +1,126 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CopySnapshot invokes the ecs.CopySnapshot API synchronously +func (client *Client) CopySnapshot(request *CopySnapshotRequest) (response *CopySnapshotResponse, err error) { + response = CreateCopySnapshotResponse() + err = client.DoAction(request, response) + return +} + +// CopySnapshotWithChan invokes the ecs.CopySnapshot API asynchronously +func (client *Client) CopySnapshotWithChan(request *CopySnapshotRequest) (<-chan *CopySnapshotResponse, <-chan error) { + responseChan := make(chan *CopySnapshotResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CopySnapshot(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CopySnapshotWithCallback invokes the ecs.CopySnapshot API asynchronously +func (client *Client) CopySnapshotWithCallback(request *CopySnapshotRequest, callback func(response *CopySnapshotResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CopySnapshotResponse + var err error + defer close(result) + response, err = client.CopySnapshot(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CopySnapshotRequest is the request struct for api CopySnapshot +type CopySnapshotRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SnapshotId string `position:"Query" name:"SnapshotId"` + DestinationRegionId string `position:"Query" name:"DestinationRegionId"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + Tag *[]CopySnapshotTag `position:"Query" name:"Tag" type:"Repeated"` + Arn *[]CopySnapshotArn `position:"Query" name:"Arn" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + DestinationSnapshotName string `position:"Query" name:"DestinationSnapshotName"` + DestinationSnapshotDescription string `position:"Query" name:"DestinationSnapshotDescription"` + Encrypted requests.Boolean `position:"Query" name:"Encrypted"` + RetentionDays requests.Integer `position:"Query" name:"RetentionDays"` + KMSKeyId string `position:"Query" name:"KMSKeyId"` + DestinationStorageLocationArn string `position:"Query" name:"DestinationStorageLocationArn"` +} + +// CopySnapshotTag is a repeated param struct in CopySnapshotRequest +type CopySnapshotTag struct { + Key string `name:"Key"` + Value string `name:"Value"` +} + +// CopySnapshotArn is a repeated param struct in CopySnapshotRequest +type CopySnapshotArn struct { + RoleType string `name:"RoleType"` + Rolearn string `name:"Rolearn"` + AssumeRoleFor string `name:"AssumeRoleFor"` +} + +// CopySnapshotResponse is the response struct for api CopySnapshot +type CopySnapshotResponse struct { + *responses.BaseResponse + SnapshotId string `json:"SnapshotId" xml:"SnapshotId"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCopySnapshotRequest creates a request to invoke CopySnapshot API +func CreateCopySnapshotRequest() (request *CopySnapshotRequest) { + request = &CopySnapshotRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "CopySnapshot", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateCopySnapshotResponse creates a response to parse from CopySnapshot response +func CreateCopySnapshotResponse() (response *CopySnapshotResponse) { + response = &CopySnapshotResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_activation.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_activation.go new file mode 100644 index 00000000..52874777 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_activation.go @@ -0,0 +1,117 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateActivation invokes the ecs.CreateActivation API synchronously +func (client *Client) CreateActivation(request *CreateActivationRequest) (response *CreateActivationResponse, err error) { + response = CreateCreateActivationResponse() + err = client.DoAction(request, response) + return +} + +// CreateActivationWithChan invokes the ecs.CreateActivation API asynchronously +func (client *Client) CreateActivationWithChan(request *CreateActivationRequest) (<-chan *CreateActivationResponse, <-chan error) { + responseChan := make(chan *CreateActivationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateActivation(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateActivationWithCallback invokes the ecs.CreateActivation API asynchronously +func (client *Client) CreateActivationWithCallback(request *CreateActivationRequest, callback func(response *CreateActivationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateActivationResponse + var err error + defer close(result) + response, err = client.CreateActivation(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateActivationRequest is the request struct for api CreateActivation +type CreateActivationRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Description string `position:"Query" name:"Description"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + InstanceCount requests.Integer `position:"Query" name:"InstanceCount"` + Tag *[]CreateActivationTag `position:"Query" name:"Tag" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceName string `position:"Query" name:"InstanceName"` + TimeToLiveInHours requests.Integer `position:"Query" name:"TimeToLiveInHours"` + IpAddressRange string `position:"Query" name:"IpAddressRange"` +} + +// CreateActivationTag is a repeated param struct in CreateActivationRequest +type CreateActivationTag struct { + Key string `name:"Key"` + Value string `name:"Value"` +} + +// CreateActivationResponse is the response struct for api CreateActivation +type CreateActivationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ActivationCode string `json:"ActivationCode" xml:"ActivationCode"` + ActivationId string `json:"ActivationId" xml:"ActivationId"` +} + +// CreateCreateActivationRequest creates a request to invoke CreateActivation API +func CreateCreateActivationRequest() (request *CreateActivationRequest) { + request = &CreateActivationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "CreateActivation", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateCreateActivationResponse creates a response to parse from CreateActivation response +func CreateCreateActivationResponse() (response *CreateActivationResponse) { + response = &CreateActivationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_auto_provisioning_group.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_auto_provisioning_group.go index c127765c..5157b3ae 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_auto_provisioning_group.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_auto_provisioning_group.go @@ -21,7 +21,6 @@ import ( ) // CreateAutoProvisioningGroup invokes the ecs.CreateAutoProvisioningGroup API synchronously -// api document: https://help.aliyun.com/api/ecs/createautoprovisioninggroup.html func (client *Client) CreateAutoProvisioningGroup(request *CreateAutoProvisioningGroupRequest) (response *CreateAutoProvisioningGroupResponse, err error) { response = CreateCreateAutoProvisioningGroupResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) CreateAutoProvisioningGroup(request *CreateAutoProvisionin } // CreateAutoProvisioningGroupWithChan invokes the ecs.CreateAutoProvisioningGroup API asynchronously -// api document: https://help.aliyun.com/api/ecs/createautoprovisioninggroup.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateAutoProvisioningGroupWithChan(request *CreateAutoProvisioningGroupRequest) (<-chan *CreateAutoProvisioningGroupResponse, <-chan error) { responseChan := make(chan *CreateAutoProvisioningGroupResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) CreateAutoProvisioningGroupWithChan(request *CreateAutoPro } // CreateAutoProvisioningGroupWithCallback invokes the ecs.CreateAutoProvisioningGroup API asynchronously -// api document: https://help.aliyun.com/api/ecs/createautoprovisioninggroup.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateAutoProvisioningGroupWithCallback(request *CreateAutoProvisioningGroupRequest, callback func(response *CreateAutoProvisioningGroupResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,47 +71,150 @@ func (client *Client) CreateAutoProvisioningGroupWithCallback(request *CreateAut // CreateAutoProvisioningGroupRequest is the request struct for api CreateAutoProvisioningGroup type CreateAutoProvisioningGroupRequest struct { *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - AutoProvisioningGroupType string `position:"Query" name:"AutoProvisioningGroupType"` - Description string `position:"Query" name:"Description"` - TerminateInstancesWithExpiration requests.Boolean `position:"Query" name:"TerminateInstancesWithExpiration"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - SpotAllocationStrategy string `position:"Query" name:"SpotAllocationStrategy"` - TerminateInstances requests.Boolean `position:"Query" name:"TerminateInstances"` - PayAsYouGoAllocationStrategy string `position:"Query" name:"PayAsYouGoAllocationStrategy"` - DefaultTargetCapacityType string `position:"Query" name:"DefaultTargetCapacityType"` - ExcessCapacityTerminationPolicy string `position:"Query" name:"ExcessCapacityTerminationPolicy"` - LaunchTemplateConfig *[]CreateAutoProvisioningGroupLaunchTemplateConfig `position:"Query" name:"LaunchTemplateConfig" type:"Repeated"` - ValidUntil string `position:"Query" name:"ValidUntil"` - SpotInstanceInterruptionBehavior string `position:"Query" name:"SpotInstanceInterruptionBehavior"` - LaunchTemplateId string `position:"Query" name:"LaunchTemplateId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - SpotInstancePoolsToUseCount requests.Integer `position:"Query" name:"SpotInstancePoolsToUseCount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - LaunchTemplateVersion string `position:"Query" name:"LaunchTemplateVersion"` - PayAsYouGoTargetCapacity string `position:"Query" name:"PayAsYouGoTargetCapacity"` - TotalTargetCapacity string `position:"Query" name:"TotalTargetCapacity"` - SpotTargetCapacity string `position:"Query" name:"SpotTargetCapacity"` - ValidFrom string `position:"Query" name:"ValidFrom"` - AutoProvisioningGroupName string `position:"Query" name:"AutoProvisioningGroupName"` - MaxSpotPrice requests.Float `position:"Query" name:"MaxSpotPrice"` + LaunchConfigurationDataDisk *[]CreateAutoProvisioningGroupLaunchConfigurationDataDisk `position:"Query" name:"LaunchConfiguration.DataDisk" type:"Repeated"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + LaunchConfigurationSystemDiskCategory string `position:"Query" name:"LaunchConfiguration.SystemDiskCategory"` + AutoProvisioningGroupType string `position:"Query" name:"AutoProvisioningGroupType"` + LaunchConfigurationSystemDiskPerformanceLevel string `position:"Query" name:"LaunchConfiguration.SystemDiskPerformanceLevel"` + LaunchConfigurationHostNames *[]string `position:"Query" name:"LaunchConfiguration.HostNames" type:"Repeated"` + LaunchConfigurationSecurityGroupIds *[]string `position:"Query" name:"LaunchConfiguration.SecurityGroupIds" type:"Repeated"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + LaunchConfigurationImageId string `position:"Query" name:"LaunchConfiguration.ImageId"` + LaunchConfigurationResourceGroupId string `position:"Query" name:"LaunchConfiguration.ResourceGroupId"` + ResourcePlanningOnly requests.Boolean `position:"Query" name:"ResourcePlanningOnly"` + LaunchConfigurationPassword string `position:"Query" name:"LaunchConfiguration.Password"` + LaunchConfigurationAutoReleaseTime string `position:"Query" name:"LaunchConfiguration.AutoReleaseTime"` + PayAsYouGoAllocationStrategy string `position:"Query" name:"PayAsYouGoAllocationStrategy"` + DefaultTargetCapacityType string `position:"Query" name:"DefaultTargetCapacityType"` + LaunchConfigurationKeyPairName string `position:"Query" name:"LaunchConfiguration.KeyPairName"` + SystemDiskConfig *[]CreateAutoProvisioningGroupSystemDiskConfig `position:"Query" name:"SystemDiskConfig" type:"Repeated"` + DataDiskConfig *[]CreateAutoProvisioningGroupDataDiskConfig `position:"Query" name:"DataDiskConfig" type:"Repeated"` + ValidUntil string `position:"Query" name:"ValidUntil"` + LaunchTemplateId string `position:"Query" name:"LaunchTemplateId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + LaunchConfigurationImageFamily string `position:"Query" name:"LaunchConfiguration.ImageFamily"` + LaunchConfigurationSystemDiskSize requests.Integer `position:"Query" name:"LaunchConfiguration.SystemDiskSize"` + LaunchConfigurationInternetMaxBandwidthOut requests.Integer `position:"Query" name:"LaunchConfiguration.InternetMaxBandwidthOut"` + LaunchConfigurationHostName string `position:"Query" name:"LaunchConfiguration.HostName"` + MinTargetCapacity string `position:"Query" name:"MinTargetCapacity"` + MaxSpotPrice requests.Float `position:"Query" name:"MaxSpotPrice"` + LaunchConfigurationArn *[]CreateAutoProvisioningGroupLaunchConfigurationArn `position:"Query" name:"LaunchConfiguration.Arn" type:"Repeated"` + LaunchConfigurationPasswordInherit requests.Boolean `position:"Query" name:"LaunchConfiguration.PasswordInherit"` + ClientToken string `position:"Query" name:"ClientToken"` + LaunchConfigurationSecurityGroupId string `position:"Query" name:"LaunchConfiguration.SecurityGroupId"` + Description string `position:"Query" name:"Description"` + TerminateInstancesWithExpiration requests.Boolean `position:"Query" name:"TerminateInstancesWithExpiration"` + LaunchConfigurationUserData string `position:"Query" name:"LaunchConfiguration.UserData"` + LaunchConfigurationCreditSpecification string `position:"Query" name:"LaunchConfiguration.CreditSpecification"` + LaunchConfigurationSystemDisk CreateAutoProvisioningGroupLaunchConfigurationSystemDisk `position:"Query" name:"LaunchConfiguration.SystemDisk" type:"Struct"` + LaunchConfigurationInstanceName string `position:"Query" name:"LaunchConfiguration.InstanceName"` + LaunchConfigurationInstanceDescription string `position:"Query" name:"LaunchConfiguration.InstanceDescription"` + SpotAllocationStrategy string `position:"Query" name:"SpotAllocationStrategy"` + TerminateInstances requests.Boolean `position:"Query" name:"TerminateInstances"` + LaunchConfigurationSystemDiskName string `position:"Query" name:"LaunchConfiguration.SystemDiskName"` + LaunchConfigurationSystemDiskDescription string `position:"Query" name:"LaunchConfiguration.SystemDiskDescription"` + ExcessCapacityTerminationPolicy string `position:"Query" name:"ExcessCapacityTerminationPolicy"` + LaunchTemplateConfig *[]CreateAutoProvisioningGroupLaunchTemplateConfig `position:"Query" name:"LaunchTemplateConfig" type:"Repeated"` + LaunchConfigurationRamRoleName string `position:"Query" name:"LaunchConfiguration.RamRoleName"` + LaunchConfigurationInternetMaxBandwidthIn requests.Integer `position:"Query" name:"LaunchConfiguration.InternetMaxBandwidthIn"` + SpotInstanceInterruptionBehavior string `position:"Query" name:"SpotInstanceInterruptionBehavior"` + LaunchConfigurationSecurityEnhancementStrategy string `position:"Query" name:"LaunchConfiguration.SecurityEnhancementStrategy"` + LaunchConfigurationTag *[]CreateAutoProvisioningGroupLaunchConfigurationTag `position:"Query" name:"LaunchConfiguration.Tag" type:"Repeated"` + LaunchConfigurationDeploymentSetId string `position:"Query" name:"LaunchConfiguration.DeploymentSetId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + SpotInstancePoolsToUseCount requests.Integer `position:"Query" name:"SpotInstancePoolsToUseCount"` + LaunchConfigurationInternetChargeType string `position:"Query" name:"LaunchConfiguration.InternetChargeType"` + LaunchTemplateVersion string `position:"Query" name:"LaunchTemplateVersion"` + LaunchConfigurationIoOptimized string `position:"Query" name:"LaunchConfiguration.IoOptimized"` + PayAsYouGoTargetCapacity string `position:"Query" name:"PayAsYouGoTargetCapacity"` + HibernationOptionsConfigured requests.Boolean `position:"Query" name:"HibernationOptionsConfigured"` + TotalTargetCapacity string `position:"Query" name:"TotalTargetCapacity"` + SpotTargetCapacity string `position:"Query" name:"SpotTargetCapacity"` + LaunchConfigurationNetworkInterface *[]CreateAutoProvisioningGroupLaunchConfigurationNetworkInterface `position:"Query" name:"LaunchConfiguration.NetworkInterface" type:"Repeated"` + ValidFrom string `position:"Query" name:"ValidFrom"` + AutoProvisioningGroupName string `position:"Query" name:"AutoProvisioningGroupName"` +} + +// CreateAutoProvisioningGroupLaunchConfigurationDataDisk is a repeated param struct in CreateAutoProvisioningGroupRequest +type CreateAutoProvisioningGroupLaunchConfigurationDataDisk struct { + PerformanceLevel string `name:"PerformanceLevel"` + KmsKeyId string `name:"KmsKeyId"` + Description string `name:"Description"` + SnapshotId string `name:"SnapshotId"` + Size string `name:"Size"` + Device string `name:"Device"` + DiskName string `name:"DiskName"` + Category string `name:"Category"` + DeleteWithInstance string `name:"DeleteWithInstance"` + Encrypted string `name:"Encrypted"` +} + +// CreateAutoProvisioningGroupSystemDiskConfig is a repeated param struct in CreateAutoProvisioningGroupRequest +type CreateAutoProvisioningGroupSystemDiskConfig struct { + DiskCategory string `name:"DiskCategory"` +} + +// CreateAutoProvisioningGroupDataDiskConfig is a repeated param struct in CreateAutoProvisioningGroupRequest +type CreateAutoProvisioningGroupDataDiskConfig struct { + DiskCategory string `name:"DiskCategory"` +} + +// CreateAutoProvisioningGroupLaunchConfigurationArn is a repeated param struct in CreateAutoProvisioningGroupRequest +type CreateAutoProvisioningGroupLaunchConfigurationArn struct { + Rolearn string `name:"Rolearn"` + RoleType string `name:"RoleType"` + AssumeRoleFor string `name:"AssumeRoleFor"` +} + +// CreateAutoProvisioningGroupLaunchConfigurationSystemDisk is a repeated param struct in CreateAutoProvisioningGroupRequest +type CreateAutoProvisioningGroupLaunchConfigurationSystemDisk struct { + Encrypted string `name:"Encrypted"` + KMSKeyId string `name:"KMSKeyId"` + EncryptAlgorithm string `name:"EncryptAlgorithm"` } // CreateAutoProvisioningGroupLaunchTemplateConfig is a repeated param struct in CreateAutoProvisioningGroupRequest type CreateAutoProvisioningGroupLaunchTemplateConfig struct { - InstanceType string `name:"InstanceType"` - MaxPrice string `name:"MaxPrice"` - VSwitchId string `name:"VSwitchId"` - WeightedCapacity string `name:"WeightedCapacity"` - Priority string `name:"Priority"` + VSwitchId string `name:"VSwitchId"` + MaxPrice string `name:"MaxPrice"` + Priority string `name:"Priority"` + InstanceType string `name:"InstanceType"` + WeightedCapacity string `name:"WeightedCapacity"` + MaxQuantity string `name:"MaxQuantity"` + Cores *[]string `name:"Cores" type:"Repeated"` + Memories *[]string `name:"Memories" type:"Repeated"` + InstanceFamilyLevel string `name:"InstanceFamilyLevel"` + ExcludedInstanceTypes *[]string `name:"ExcludedInstanceTypes" type:"Repeated"` + Architectures *[]string `name:"Architectures" type:"Repeated"` + BurstablePerformance string `name:"BurstablePerformance"` + SecondaryNetworkInterface *[]CreateAutoProvisioningGroupLaunchTemplateConfigSecondaryNetworkInterface `name:"SecondaryNetworkInterface" type:"Repeated"` +} + +// CreateAutoProvisioningGroupLaunchConfigurationTag is a repeated param struct in CreateAutoProvisioningGroupRequest +type CreateAutoProvisioningGroupLaunchConfigurationTag struct { + Key string `name:"Key"` + Value string `name:"Value"` +} + +// CreateAutoProvisioningGroupLaunchConfigurationNetworkInterface is a repeated param struct in CreateAutoProvisioningGroupRequest +type CreateAutoProvisioningGroupLaunchConfigurationNetworkInterface struct { + SecurityGroupId string `name:"SecurityGroupId"` + SecurityGroupIds *[]string `name:"SecurityGroupIds" type:"Repeated"` + InstanceType string `name:"InstanceType"` +} + +// CreateAutoProvisioningGroupLaunchTemplateConfigSecondaryNetworkInterface is a repeated param struct in CreateAutoProvisioningGroupRequest +type CreateAutoProvisioningGroupLaunchTemplateConfigSecondaryNetworkInterface struct { + VSwitchId string `name:"VSwitchId"` } // CreateAutoProvisioningGroupResponse is the response struct for api CreateAutoProvisioningGroup type CreateAutoProvisioningGroupResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - AutoProvisioningGroupId string `json:"AutoProvisioningGroupId" xml:"AutoProvisioningGroupId"` + AutoProvisioningGroupId string `json:"AutoProvisioningGroupId" xml:"AutoProvisioningGroupId"` + RequestId string `json:"RequestId" xml:"RequestId"` + LaunchResults LaunchResults `json:"LaunchResults" xml:"LaunchResults"` } // CreateCreateAutoProvisioningGroupRequest creates a request to invoke CreateAutoProvisioningGroup API @@ -125,6 +223,7 @@ func CreateCreateAutoProvisioningGroupRequest() (request *CreateAutoProvisioning RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "CreateAutoProvisioningGroup", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_auto_snapshot_policy.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_auto_snapshot_policy.go index 01102709..e2a5d764 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_auto_snapshot_policy.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_auto_snapshot_policy.go @@ -21,7 +21,6 @@ import ( ) // CreateAutoSnapshotPolicy invokes the ecs.CreateAutoSnapshotPolicy API synchronously -// api document: https://help.aliyun.com/api/ecs/createautosnapshotpolicy.html func (client *Client) CreateAutoSnapshotPolicy(request *CreateAutoSnapshotPolicyRequest) (response *CreateAutoSnapshotPolicyResponse, err error) { response = CreateCreateAutoSnapshotPolicyResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) CreateAutoSnapshotPolicy(request *CreateAutoSnapshotPolicy } // CreateAutoSnapshotPolicyWithChan invokes the ecs.CreateAutoSnapshotPolicy API asynchronously -// api document: https://help.aliyun.com/api/ecs/createautosnapshotpolicy.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateAutoSnapshotPolicyWithChan(request *CreateAutoSnapshotPolicyRequest) (<-chan *CreateAutoSnapshotPolicyResponse, <-chan error) { responseChan := make(chan *CreateAutoSnapshotPolicyResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) CreateAutoSnapshotPolicyWithChan(request *CreateAutoSnapsh } // CreateAutoSnapshotPolicyWithCallback invokes the ecs.CreateAutoSnapshotPolicy API asynchronously -// api document: https://help.aliyun.com/api/ecs/createautosnapshotpolicy.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateAutoSnapshotPolicyWithCallback(request *CreateAutoSnapshotPolicyRequest, callback func(response *CreateAutoSnapshotPolicyResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,20 +71,32 @@ func (client *Client) CreateAutoSnapshotPolicyWithCallback(request *CreateAutoSn // CreateAutoSnapshotPolicyRequest is the request struct for api CreateAutoSnapshotPolicy type CreateAutoSnapshotPolicyRequest struct { *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - TimePoints string `position:"Query" name:"timePoints"` - RetentionDays requests.Integer `position:"Query" name:"retentionDays"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - RepeatWeekdays string `position:"Query" name:"repeatWeekdays"` - AutoSnapshotPolicyName string `position:"Query" name:"autoSnapshotPolicyName"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + CopiedSnapshotsRetentionDays requests.Integer `position:"Query" name:"CopiedSnapshotsRetentionDays"` + TimePoints string `position:"Query" name:"timePoints"` + RepeatWeekdays string `position:"Query" name:"repeatWeekdays"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + StorageLocationArn string `position:"Query" name:"StorageLocationArn"` + Tag *[]CreateAutoSnapshotPolicyTag `position:"Query" name:"Tag" type:"Repeated"` + EnableCrossRegionCopy requests.Boolean `position:"Query" name:"EnableCrossRegionCopy"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + AutoSnapshotPolicyName string `position:"Query" name:"autoSnapshotPolicyName"` + RetentionDays requests.Integer `position:"Query" name:"retentionDays"` + TargetCopyRegions string `position:"Query" name:"TargetCopyRegions"` +} + +// CreateAutoSnapshotPolicyTag is a repeated param struct in CreateAutoSnapshotPolicyRequest +type CreateAutoSnapshotPolicyTag struct { + Value string `name:"Value"` + Key string `name:"Key"` } // CreateAutoSnapshotPolicyResponse is the response struct for api CreateAutoSnapshotPolicy type CreateAutoSnapshotPolicyResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` AutoSnapshotPolicyId string `json:"AutoSnapshotPolicyId" xml:"AutoSnapshotPolicyId"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateCreateAutoSnapshotPolicyRequest creates a request to invoke CreateAutoSnapshotPolicy API @@ -98,6 +105,7 @@ func CreateCreateAutoSnapshotPolicyRequest() (request *CreateAutoSnapshotPolicyR RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "CreateAutoSnapshotPolicy", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_capacity_reservation.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_capacity_reservation.go new file mode 100644 index 00000000..1c328672 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_capacity_reservation.go @@ -0,0 +1,130 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateCapacityReservation invokes the ecs.CreateCapacityReservation API synchronously +func (client *Client) CreateCapacityReservation(request *CreateCapacityReservationRequest) (response *CreateCapacityReservationResponse, err error) { + response = CreateCreateCapacityReservationResponse() + err = client.DoAction(request, response) + return +} + +// CreateCapacityReservationWithChan invokes the ecs.CreateCapacityReservation API asynchronously +func (client *Client) CreateCapacityReservationWithChan(request *CreateCapacityReservationRequest) (<-chan *CreateCapacityReservationResponse, <-chan error) { + responseChan := make(chan *CreateCapacityReservationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateCapacityReservation(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateCapacityReservationWithCallback invokes the ecs.CreateCapacityReservation API asynchronously +func (client *Client) CreateCapacityReservationWithCallback(request *CreateCapacityReservationRequest, callback func(response *CreateCapacityReservationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateCapacityReservationResponse + var err error + defer close(result) + response, err = client.CreateCapacityReservation(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateCapacityReservationRequest is the request struct for api CreateCapacityReservation +type CreateCapacityReservationRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + Description string `position:"Query" name:"Description"` + StartTime string `position:"Query" name:"StartTime"` + Platform string `position:"Query" name:"Platform"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + PrivatePoolOptionsMatchCriteria string `position:"Query" name:"PrivatePoolOptions.MatchCriteria"` + InstanceType string `position:"Query" name:"InstanceType"` + Tag *[]CreateCapacityReservationTag `position:"Query" name:"Tag" type:"Repeated"` + InstanceChargeType string `position:"Query" name:"InstanceChargeType"` + EfficientStatus requests.Integer `position:"Query" name:"EfficientStatus"` + Period requests.Integer `position:"Query" name:"Period"` + EndTimeType string `position:"Query" name:"EndTimeType"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + PrivatePoolOptionsName string `position:"Query" name:"PrivatePoolOptions.Name"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + EndTime string `position:"Query" name:"EndTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceType string `position:"Query" name:"ResourceType"` + PeriodUnit string `position:"Query" name:"PeriodUnit"` + TimeSlot string `position:"Query" name:"TimeSlot"` + ZoneId *[]string `position:"Query" name:"ZoneId" type:"Repeated"` + ChargeType string `position:"Query" name:"ChargeType"` + PackageType string `position:"Query" name:"PackageType"` + InstanceAmount requests.Integer `position:"Query" name:"InstanceAmount"` +} + +// CreateCapacityReservationTag is a repeated param struct in CreateCapacityReservationRequest +type CreateCapacityReservationTag struct { + Key string `name:"Key"` + Value string `name:"Value"` +} + +// CreateCapacityReservationResponse is the response struct for api CreateCapacityReservation +type CreateCapacityReservationResponse struct { + *responses.BaseResponse + PrivatePoolOptionsId string `json:"PrivatePoolOptionsId" xml:"PrivatePoolOptionsId"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateCapacityReservationRequest creates a request to invoke CreateCapacityReservation API +func CreateCreateCapacityReservationRequest() (request *CreateCapacityReservationRequest) { + request = &CreateCapacityReservationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "CreateCapacityReservation", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateCreateCapacityReservationResponse creates a response to parse from CreateCapacityReservation response +func CreateCreateCapacityReservationResponse() (response *CreateCapacityReservationResponse) { + response = &CreateCapacityReservationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_command.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_command.go index 6249e0bb..f20bb6e9 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_command.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_command.go @@ -21,7 +21,6 @@ import ( ) // CreateCommand invokes the ecs.CreateCommand API synchronously -// api document: https://help.aliyun.com/api/ecs/createcommand.html func (client *Client) CreateCommand(request *CreateCommandRequest) (response *CreateCommandResponse, err error) { response = CreateCreateCommandResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) CreateCommand(request *CreateCommandRequest) (response *Cr } // CreateCommandWithChan invokes the ecs.CreateCommand API asynchronously -// api document: https://help.aliyun.com/api/ecs/createcommand.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateCommandWithChan(request *CreateCommandRequest) (<-chan *CreateCommandResponse, <-chan error) { responseChan := make(chan *CreateCommandResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) CreateCommandWithChan(request *CreateCommandRequest) (<-ch } // CreateCommandWithCallback invokes the ecs.CreateCommand API asynchronously -// api document: https://help.aliyun.com/api/ecs/createcommand.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateCommandWithCallback(request *CreateCommandRequest, callback func(response *CreateCommandResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,24 +71,41 @@ func (client *Client) CreateCommandWithCallback(request *CreateCommandRequest, c // CreateCommandRequest is the request struct for api CreateCommand type CreateCommandRequest struct { *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - WorkingDir string `position:"Query" name:"WorkingDir"` - Description string `position:"Query" name:"Description"` - Type string `position:"Query" name:"Type"` - CommandContent string `position:"Query" name:"CommandContent"` - Timeout requests.Integer `position:"Query" name:"Timeout"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Name string `position:"Query" name:"Name"` - EnableParameter requests.Boolean `position:"Query" name:"EnableParameter"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SystemTag *[]CreateCommandSystemTag `position:"Query" name:"SystemTag" type:"Repeated"` + WorkingDir string `position:"Query" name:"WorkingDir"` + Description string `position:"Query" name:"Description"` + Type string `position:"Query" name:"Type"` + CommandContent string `position:"Query" name:"CommandContent"` + Timeout requests.Integer `position:"Query" name:"Timeout"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + ContentEncoding string `position:"Query" name:"ContentEncoding"` + Tag *[]CreateCommandTag `position:"Query" name:"Tag" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Name string `position:"Query" name:"Name"` + EnableParameter requests.Boolean `position:"Query" name:"EnableParameter"` +} + +// CreateCommandSystemTag is a repeated param struct in CreateCommandRequest +type CreateCommandSystemTag struct { + Key string `name:"Key"` + Value string `name:"Value"` + Scope string `name:"Scope"` +} + +// CreateCommandTag is a repeated param struct in CreateCommandRequest +type CreateCommandTag struct { + Key string `name:"Key"` + Value string `name:"Value"` } // CreateCommandResponse is the response struct for api CreateCommand type CreateCommandResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` CommandId string `json:"CommandId" xml:"CommandId"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateCreateCommandRequest creates a request to invoke CreateCommand API @@ -102,6 +114,7 @@ func CreateCreateCommandRequest() (request *CreateCommandRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "CreateCommand", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_dedicated_host_cluster.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_dedicated_host_cluster.go new file mode 100644 index 00000000..9595f947 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_dedicated_host_cluster.go @@ -0,0 +1,115 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateDedicatedHostCluster invokes the ecs.CreateDedicatedHostCluster API synchronously +func (client *Client) CreateDedicatedHostCluster(request *CreateDedicatedHostClusterRequest) (response *CreateDedicatedHostClusterResponse, err error) { + response = CreateCreateDedicatedHostClusterResponse() + err = client.DoAction(request, response) + return +} + +// CreateDedicatedHostClusterWithChan invokes the ecs.CreateDedicatedHostCluster API asynchronously +func (client *Client) CreateDedicatedHostClusterWithChan(request *CreateDedicatedHostClusterRequest) (<-chan *CreateDedicatedHostClusterResponse, <-chan error) { + responseChan := make(chan *CreateDedicatedHostClusterResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateDedicatedHostCluster(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateDedicatedHostClusterWithCallback invokes the ecs.CreateDedicatedHostCluster API asynchronously +func (client *Client) CreateDedicatedHostClusterWithCallback(request *CreateDedicatedHostClusterRequest, callback func(response *CreateDedicatedHostClusterResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateDedicatedHostClusterResponse + var err error + defer close(result) + response, err = client.CreateDedicatedHostCluster(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateDedicatedHostClusterRequest is the request struct for api CreateDedicatedHostCluster +type CreateDedicatedHostClusterRequest struct { + *requests.RpcRequest + DedicatedHostClusterName string `position:"Query" name:"DedicatedHostClusterName"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Description string `position:"Query" name:"Description"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + Tag *[]CreateDedicatedHostClusterTag `position:"Query" name:"Tag" type:"Repeated"` + DryRun requests.Boolean `position:"Query" name:"DryRun"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ZoneId string `position:"Query" name:"ZoneId"` +} + +// CreateDedicatedHostClusterTag is a repeated param struct in CreateDedicatedHostClusterRequest +type CreateDedicatedHostClusterTag struct { + Key string `name:"Key"` + Value string `name:"Value"` +} + +// CreateDedicatedHostClusterResponse is the response struct for api CreateDedicatedHostCluster +type CreateDedicatedHostClusterResponse struct { + *responses.BaseResponse + DedicatedHostClusterId string `json:"DedicatedHostClusterId" xml:"DedicatedHostClusterId"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateDedicatedHostClusterRequest creates a request to invoke CreateDedicatedHostCluster API +func CreateCreateDedicatedHostClusterRequest() (request *CreateDedicatedHostClusterRequest) { + request = &CreateDedicatedHostClusterRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "CreateDedicatedHostCluster", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateCreateDedicatedHostClusterResponse creates a response to parse from CreateDedicatedHostCluster response +func CreateCreateDedicatedHostClusterResponse() (response *CreateDedicatedHostClusterResponse) { + response = &CreateDedicatedHostClusterResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_demand.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_demand.go new file mode 100644 index 00000000..34233326 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_demand.go @@ -0,0 +1,114 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateDemand invokes the ecs.CreateDemand API synchronously +func (client *Client) CreateDemand(request *CreateDemandRequest) (response *CreateDemandResponse, err error) { + response = CreateCreateDemandResponse() + err = client.DoAction(request, response) + return +} + +// CreateDemandWithChan invokes the ecs.CreateDemand API asynchronously +func (client *Client) CreateDemandWithChan(request *CreateDemandRequest) (<-chan *CreateDemandResponse, <-chan error) { + responseChan := make(chan *CreateDemandResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateDemand(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateDemandWithCallback invokes the ecs.CreateDemand API asynchronously +func (client *Client) CreateDemandWithCallback(request *CreateDemandRequest, callback func(response *CreateDemandResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateDemandResponse + var err error + defer close(result) + response, err = client.CreateDemand(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateDemandRequest is the request struct for api CreateDemand +type CreateDemandRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + StartTime string `position:"Query" name:"StartTime"` + DemandDescription string `position:"Query" name:"DemandDescription"` + InstanceType string `position:"Query" name:"InstanceType"` + InstanceChargeType string `position:"Query" name:"InstanceChargeType"` + DemandName string `position:"Query" name:"DemandName"` + Amount requests.Integer `position:"Query" name:"Amount"` + Period requests.Integer `position:"Query" name:"Period"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + EndTime string `position:"Query" name:"EndTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PeriodUnit string `position:"Query" name:"PeriodUnit"` + ZoneId string `position:"Query" name:"ZoneId"` +} + +// CreateDemandResponse is the response struct for api CreateDemand +type CreateDemandResponse struct { + *responses.BaseResponse + DemandId string `json:"DemandId" xml:"DemandId"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateDemandRequest creates a request to invoke CreateDemand API +func CreateCreateDemandRequest() (request *CreateDemandRequest) { + request = &CreateDemandRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "CreateDemand", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateCreateDemandResponse creates a response to parse from CreateDemand response +func CreateCreateDemandResponse() (response *CreateDemandResponse) { + response = &CreateDemandResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_deployment_set.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_deployment_set.go index 4c66fdfb..10efe5e6 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_deployment_set.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_deployment_set.go @@ -21,7 +21,6 @@ import ( ) // CreateDeploymentSet invokes the ecs.CreateDeploymentSet API synchronously -// api document: https://help.aliyun.com/api/ecs/createdeploymentset.html func (client *Client) CreateDeploymentSet(request *CreateDeploymentSetRequest) (response *CreateDeploymentSetResponse, err error) { response = CreateCreateDeploymentSetResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) CreateDeploymentSet(request *CreateDeploymentSetRequest) ( } // CreateDeploymentSetWithChan invokes the ecs.CreateDeploymentSet API asynchronously -// api document: https://help.aliyun.com/api/ecs/createdeploymentset.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateDeploymentSetWithChan(request *CreateDeploymentSetRequest) (<-chan *CreateDeploymentSetResponse, <-chan error) { responseChan := make(chan *CreateDeploymentSetResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) CreateDeploymentSetWithChan(request *CreateDeploymentSetRe } // CreateDeploymentSetWithCallback invokes the ecs.CreateDeploymentSet API asynchronously -// api document: https://help.aliyun.com/api/ecs/createdeploymentset.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateDeploymentSetWithCallback(request *CreateDeploymentSetRequest, callback func(response *CreateDeploymentSetResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,10 +72,11 @@ func (client *Client) CreateDeploymentSetWithCallback(request *CreateDeploymentS type CreateDeploymentSetRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` ClientToken string `position:"Query" name:"ClientToken"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` Description string `position:"Query" name:"Description"` + GroupCount requests.Integer `position:"Query" name:"GroupCount"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` DeploymentSetName string `position:"Query" name:"DeploymentSetName"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` OnUnableToRedeployFailedInstance string `position:"Query" name:"OnUnableToRedeployFailedInstance"` @@ -92,8 +88,8 @@ type CreateDeploymentSetRequest struct { // CreateDeploymentSetResponse is the response struct for api CreateDeploymentSet type CreateDeploymentSetResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` DeploymentSetId string `json:"DeploymentSetId" xml:"DeploymentSetId"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateCreateDeploymentSetRequest creates a request to invoke CreateDeploymentSet API @@ -102,6 +98,7 @@ func CreateCreateDeploymentSetRequest() (request *CreateDeploymentSetRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "CreateDeploymentSet", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_diagnostic_metric_set.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_diagnostic_metric_set.go new file mode 100644 index 00000000..7968c40c --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_diagnostic_metric_set.go @@ -0,0 +1,103 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateDiagnosticMetricSet invokes the ecs.CreateDiagnosticMetricSet API synchronously +func (client *Client) CreateDiagnosticMetricSet(request *CreateDiagnosticMetricSetRequest) (response *CreateDiagnosticMetricSetResponse, err error) { + response = CreateCreateDiagnosticMetricSetResponse() + err = client.DoAction(request, response) + return +} + +// CreateDiagnosticMetricSetWithChan invokes the ecs.CreateDiagnosticMetricSet API asynchronously +func (client *Client) CreateDiagnosticMetricSetWithChan(request *CreateDiagnosticMetricSetRequest) (<-chan *CreateDiagnosticMetricSetResponse, <-chan error) { + responseChan := make(chan *CreateDiagnosticMetricSetResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateDiagnosticMetricSet(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateDiagnosticMetricSetWithCallback invokes the ecs.CreateDiagnosticMetricSet API asynchronously +func (client *Client) CreateDiagnosticMetricSetWithCallback(request *CreateDiagnosticMetricSetRequest, callback func(response *CreateDiagnosticMetricSetResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateDiagnosticMetricSetResponse + var err error + defer close(result) + response, err = client.CreateDiagnosticMetricSet(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateDiagnosticMetricSetRequest is the request struct for api CreateDiagnosticMetricSet +type CreateDiagnosticMetricSetRequest struct { + *requests.RpcRequest + MetricIds *[]string `position:"Query" name:"MetricIds" type:"Repeated"` + Description string `position:"Query" name:"Description"` + MetricSetName string `position:"Query" name:"MetricSetName"` + ResourceType string `position:"Query" name:"ResourceType"` +} + +// CreateDiagnosticMetricSetResponse is the response struct for api CreateDiagnosticMetricSet +type CreateDiagnosticMetricSetResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + MetricSetId string `json:"MetricSetId" xml:"MetricSetId"` +} + +// CreateCreateDiagnosticMetricSetRequest creates a request to invoke CreateDiagnosticMetricSet API +func CreateCreateDiagnosticMetricSetRequest() (request *CreateDiagnosticMetricSetRequest) { + request = &CreateDiagnosticMetricSetRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "CreateDiagnosticMetricSet", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateCreateDiagnosticMetricSetResponse creates a response to parse from CreateDiagnosticMetricSet response +func CreateCreateDiagnosticMetricSetResponse() (response *CreateDiagnosticMetricSetResponse) { + response = &CreateDiagnosticMetricSetResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_diagnostic_report.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_diagnostic_report.go new file mode 100644 index 00000000..c7821f4b --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_diagnostic_report.go @@ -0,0 +1,104 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateDiagnosticReport invokes the ecs.CreateDiagnosticReport API synchronously +func (client *Client) CreateDiagnosticReport(request *CreateDiagnosticReportRequest) (response *CreateDiagnosticReportResponse, err error) { + response = CreateCreateDiagnosticReportResponse() + err = client.DoAction(request, response) + return +} + +// CreateDiagnosticReportWithChan invokes the ecs.CreateDiagnosticReport API asynchronously +func (client *Client) CreateDiagnosticReportWithChan(request *CreateDiagnosticReportRequest) (<-chan *CreateDiagnosticReportResponse, <-chan error) { + responseChan := make(chan *CreateDiagnosticReportResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateDiagnosticReport(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateDiagnosticReportWithCallback invokes the ecs.CreateDiagnosticReport API asynchronously +func (client *Client) CreateDiagnosticReportWithCallback(request *CreateDiagnosticReportRequest, callback func(response *CreateDiagnosticReportResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateDiagnosticReportResponse + var err error + defer close(result) + response, err = client.CreateDiagnosticReport(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateDiagnosticReportRequest is the request struct for api CreateDiagnosticReport +type CreateDiagnosticReportRequest struct { + *requests.RpcRequest + MetricSetId string `position:"Query" name:"MetricSetId"` + StartTime string `position:"Query" name:"StartTime"` + ResourceId string `position:"Query" name:"ResourceId"` + EndTime string `position:"Query" name:"EndTime"` + AdditionalOptions map[string]string `position:"Query" name:"AdditionalOptions" type:"Map"` +} + +// CreateDiagnosticReportResponse is the response struct for api CreateDiagnosticReport +type CreateDiagnosticReportResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ReportId string `json:"ReportId" xml:"ReportId"` +} + +// CreateCreateDiagnosticReportRequest creates a request to invoke CreateDiagnosticReport API +func CreateCreateDiagnosticReportRequest() (request *CreateDiagnosticReportRequest) { + request = &CreateDiagnosticReportRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "CreateDiagnosticReport", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateCreateDiagnosticReportResponse creates a response to parse from CreateDiagnosticReport response +func CreateCreateDiagnosticReportResponse() (response *CreateDiagnosticReportResponse) { + response = &CreateDiagnosticReportResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_disk.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_disk.go index 185c0ac7..5a040f67 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_disk.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_disk.go @@ -21,7 +21,6 @@ import ( ) // CreateDisk invokes the ecs.CreateDisk API synchronously -// api document: https://help.aliyun.com/api/ecs/createdisk.html func (client *Client) CreateDisk(request *CreateDiskRequest) (response *CreateDiskResponse, err error) { response = CreateCreateDiskResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) CreateDisk(request *CreateDiskRequest) (response *CreateDi } // CreateDiskWithChan invokes the ecs.CreateDisk API asynchronously -// api document: https://help.aliyun.com/api/ecs/createdisk.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateDiskWithChan(request *CreateDiskRequest) (<-chan *CreateDiskResponse, <-chan error) { responseChan := make(chan *CreateDiskResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) CreateDiskWithChan(request *CreateDiskRequest) (<-chan *Cr } // CreateDiskWithCallback invokes the ecs.CreateDisk API asynchronously -// api document: https://help.aliyun.com/api/ecs/createdisk.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateDiskWithCallback(request *CreateDiskRequest, callback func(response *CreateDiskResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,27 +71,33 @@ func (client *Client) CreateDiskWithCallback(request *CreateDiskRequest, callbac // CreateDiskRequest is the request struct for api CreateDisk type CreateDiskRequest struct { *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - SnapshotId string `position:"Query" name:"SnapshotId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - ClientToken string `position:"Query" name:"ClientToken"` - PerformanceLevel string `position:"Query" name:"PerformanceLevel"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - Description string `position:"Query" name:"Description"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - DiskName string `position:"Query" name:"DiskName"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - InstanceId string `position:"Query" name:"InstanceId"` - StorageSetId string `position:"Query" name:"StorageSetId"` - Size requests.Integer `position:"Query" name:"Size"` - Encrypted requests.Boolean `position:"Query" name:"Encrypted"` - DiskCategory string `position:"Query" name:"DiskCategory"` - ZoneId string `position:"Query" name:"ZoneId"` - StorageSetPartitionNumber requests.Integer `position:"Query" name:"StorageSetPartitionNumber"` - Tag *[]CreateDiskTag `position:"Query" name:"Tag" type:"Repeated"` - Arn *[]CreateDiskArn `position:"Query" name:"Arn" type:"Repeated"` - KMSKeyId string `position:"Query" name:"KMSKeyId"` - AdvancedFeatures string `position:"Query" name:"AdvancedFeatures"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + EncryptAlgorithm string `position:"Query" name:"EncryptAlgorithm"` + DiskName string `position:"Query" name:"DiskName"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + StorageSetPartitionNumber requests.Integer `position:"Query" name:"StorageSetPartitionNumber"` + Tag *[]CreateDiskTag `position:"Query" name:"Tag" type:"Repeated"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ProvisionedIops requests.Integer `position:"Query" name:"ProvisionedIops"` + InstanceId string `position:"Query" name:"InstanceId"` + Size requests.Integer `position:"Query" name:"Size"` + ZoneId string `position:"Query" name:"ZoneId"` + StorageClusterId string `position:"Query" name:"StorageClusterId"` + SnapshotId string `position:"Query" name:"SnapshotId"` + ClientToken string `position:"Query" name:"ClientToken"` + SystemTag *[]CreateDiskSystemTag `position:"Query" name:"SystemTag" type:"Repeated"` + Description string `position:"Query" name:"Description"` + DiskCategory string `position:"Query" name:"DiskCategory"` + MultiAttach string `position:"Query" name:"MultiAttach"` + AdvancedFeatures string `position:"Query" name:"AdvancedFeatures"` + Arn *[]CreateDiskArn `position:"Query" name:"Arn" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + PerformanceLevel string `position:"Query" name:"PerformanceLevel"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + BurstingEnabled requests.Boolean `position:"Query" name:"BurstingEnabled"` + StorageSetId string `position:"Query" name:"StorageSetId"` + Encrypted requests.Boolean `position:"Query" name:"Encrypted"` + KMSKeyId string `position:"Query" name:"KMSKeyId"` } // CreateDiskTag is a repeated param struct in CreateDiskRequest @@ -105,6 +106,13 @@ type CreateDiskTag struct { Key string `name:"Key"` } +// CreateDiskSystemTag is a repeated param struct in CreateDiskRequest +type CreateDiskSystemTag struct { + Scope string `name:"Scope"` + Value string `name:"Value"` + Key string `name:"Key"` +} + // CreateDiskArn is a repeated param struct in CreateDiskRequest type CreateDiskArn struct { Rolearn string `name:"Rolearn"` @@ -115,8 +123,9 @@ type CreateDiskArn struct { // CreateDiskResponse is the response struct for api CreateDisk type CreateDiskResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` DiskId string `json:"DiskId" xml:"DiskId"` + RequestId string `json:"RequestId" xml:"RequestId"` + OrderId string `json:"OrderId" xml:"OrderId"` } // CreateCreateDiskRequest creates a request to invoke CreateDisk API @@ -125,6 +134,7 @@ func CreateCreateDiskRequest() (request *CreateDiskRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "CreateDisk", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_elasticity_assurance.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_elasticity_assurance.go new file mode 100644 index 00000000..32abb5b6 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_elasticity_assurance.go @@ -0,0 +1,129 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateElasticityAssurance invokes the ecs.CreateElasticityAssurance API synchronously +func (client *Client) CreateElasticityAssurance(request *CreateElasticityAssuranceRequest) (response *CreateElasticityAssuranceResponse, err error) { + response = CreateCreateElasticityAssuranceResponse() + err = client.DoAction(request, response) + return +} + +// CreateElasticityAssuranceWithChan invokes the ecs.CreateElasticityAssurance API asynchronously +func (client *Client) CreateElasticityAssuranceWithChan(request *CreateElasticityAssuranceRequest) (<-chan *CreateElasticityAssuranceResponse, <-chan error) { + responseChan := make(chan *CreateElasticityAssuranceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateElasticityAssurance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateElasticityAssuranceWithCallback invokes the ecs.CreateElasticityAssurance API asynchronously +func (client *Client) CreateElasticityAssuranceWithCallback(request *CreateElasticityAssuranceRequest, callback func(response *CreateElasticityAssuranceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateElasticityAssuranceResponse + var err error + defer close(result) + response, err = client.CreateElasticityAssurance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateElasticityAssuranceRequest is the request struct for api CreateElasticityAssurance +type CreateElasticityAssuranceRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + Description string `position:"Query" name:"Description"` + StartTime string `position:"Query" name:"StartTime"` + Platform string `position:"Query" name:"Platform"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + PrivatePoolOptionsMatchCriteria string `position:"Query" name:"PrivatePoolOptions.MatchCriteria"` + InstanceType *[]string `position:"Query" name:"InstanceType" type:"Repeated"` + Tag *[]CreateElasticityAssuranceTag `position:"Query" name:"Tag" type:"Repeated"` + InstanceChargeType string `position:"Query" name:"InstanceChargeType"` + Period requests.Integer `position:"Query" name:"Period"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + PrivatePoolOptionsName string `position:"Query" name:"PrivatePoolOptions.Name"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + AssuranceTimes string `position:"Query" name:"AssuranceTimes"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceType string `position:"Query" name:"ResourceType"` + InstanceCpuCoreCount requests.Integer `position:"Query" name:"InstanceCpuCoreCount"` + PeriodUnit string `position:"Query" name:"PeriodUnit"` + ZoneId *[]string `position:"Query" name:"ZoneId" type:"Repeated"` + ChargeType string `position:"Query" name:"ChargeType"` + PackageType string `position:"Query" name:"PackageType"` + InstanceAmount requests.Integer `position:"Query" name:"InstanceAmount"` +} + +// CreateElasticityAssuranceTag is a repeated param struct in CreateElasticityAssuranceRequest +type CreateElasticityAssuranceTag struct { + Key string `name:"Key"` + Value string `name:"Value"` +} + +// CreateElasticityAssuranceResponse is the response struct for api CreateElasticityAssurance +type CreateElasticityAssuranceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PrivatePoolOptionsId string `json:"PrivatePoolOptionsId" xml:"PrivatePoolOptionsId"` + OrderId string `json:"OrderId" xml:"OrderId"` +} + +// CreateCreateElasticityAssuranceRequest creates a request to invoke CreateElasticityAssurance API +func CreateCreateElasticityAssuranceRequest() (request *CreateElasticityAssuranceRequest) { + request = &CreateElasticityAssuranceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "CreateElasticityAssurance", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateCreateElasticityAssuranceResponse creates a response to parse from CreateElasticityAssurance response +func CreateCreateElasticityAssuranceResponse() (response *CreateElasticityAssuranceResponse) { + response = &CreateElasticityAssuranceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_fleet.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_fleet.go deleted file mode 100644 index 7194af13..00000000 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_fleet.go +++ /dev/null @@ -1,137 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CreateFleet invokes the ecs.CreateFleet API synchronously -// api document: https://help.aliyun.com/api/ecs/createfleet.html -func (client *Client) CreateFleet(request *CreateFleetRequest) (response *CreateFleetResponse, err error) { - response = CreateCreateFleetResponse() - err = client.DoAction(request, response) - return -} - -// CreateFleetWithChan invokes the ecs.CreateFleet API asynchronously -// api document: https://help.aliyun.com/api/ecs/createfleet.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html -func (client *Client) CreateFleetWithChan(request *CreateFleetRequest) (<-chan *CreateFleetResponse, <-chan error) { - responseChan := make(chan *CreateFleetResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreateFleet(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreateFleetWithCallback invokes the ecs.CreateFleet API asynchronously -// api document: https://help.aliyun.com/api/ecs/createfleet.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html -func (client *Client) CreateFleetWithCallback(request *CreateFleetRequest, callback func(response *CreateFleetResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreateFleetResponse - var err error - defer close(result) - response, err = client.CreateFleet(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreateFleetRequest is the request struct for api CreateFleet -type CreateFleetRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - FleetType string `position:"Query" name:"FleetType"` - Description string `position:"Query" name:"Description"` - TerminateInstancesWithExpiration requests.Boolean `position:"Query" name:"TerminateInstancesWithExpiration"` - OnDemandTargetCapacity string `position:"Query" name:"OnDemandTargetCapacity"` - FleetName string `position:"Query" name:"FleetName"` - SpotAllocationStrategy string `position:"Query" name:"SpotAllocationStrategy"` - TerminateInstances requests.Boolean `position:"Query" name:"TerminateInstances"` - DefaultTargetCapacityType string `position:"Query" name:"DefaultTargetCapacityType"` - ExcessCapacityTerminationPolicy string `position:"Query" name:"ExcessCapacityTerminationPolicy"` - LaunchTemplateConfig *[]CreateFleetLaunchTemplateConfig `position:"Query" name:"LaunchTemplateConfig" type:"Repeated"` - ValidUntil string `position:"Query" name:"ValidUntil"` - FillGapWithOnDemand string `position:"Query" name:"FillGapWithOnDemand"` - SpotInstanceInterruptionBehavior string `position:"Query" name:"SpotInstanceInterruptionBehavior"` - LaunchTemplateId string `position:"Query" name:"LaunchTemplateId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - SpotInstancePoolsToUseCount requests.Integer `position:"Query" name:"SpotInstancePoolsToUseCount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - LaunchTemplateVersion string `position:"Query" name:"LaunchTemplateVersion"` - TotalTargetCapacity string `position:"Query" name:"TotalTargetCapacity"` - OnDemandAllocationStrategy string `position:"Query" name:"OnDemandAllocationStrategy"` - SpotTargetCapacity string `position:"Query" name:"SpotTargetCapacity"` - ValidFrom string `position:"Query" name:"ValidFrom"` - MaxSpotPrice requests.Float `position:"Query" name:"MaxSpotPrice"` -} - -// CreateFleetLaunchTemplateConfig is a repeated param struct in CreateFleetRequest -type CreateFleetLaunchTemplateConfig struct { - InstanceType string `name:"InstanceType"` - MaxPrice string `name:"MaxPrice"` - VSwitchId string `name:"VSwitchId"` - WeightedCapacity string `name:"WeightedCapacity"` - Priority string `name:"Priority"` -} - -// CreateFleetResponse is the response struct for api CreateFleet -type CreateFleetResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - FleetId string `json:"FleetId" xml:"FleetId"` -} - -// CreateCreateFleetRequest creates a request to invoke CreateFleet API -func CreateCreateFleetRequest() (request *CreateFleetRequest) { - request = &CreateFleetRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "CreateFleet", "ecs", "openAPI") - return -} - -// CreateCreateFleetResponse creates a response to parse from CreateFleet response -func CreateCreateFleetResponse() (response *CreateFleetResponse) { - response = &CreateFleetResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_forward_entry.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_forward_entry.go index e74f67bc..8ef63b45 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_forward_entry.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_forward_entry.go @@ -21,7 +21,6 @@ import ( ) // CreateForwardEntry invokes the ecs.CreateForwardEntry API synchronously -// api document: https://help.aliyun.com/api/ecs/createforwardentry.html func (client *Client) CreateForwardEntry(request *CreateForwardEntryRequest) (response *CreateForwardEntryResponse, err error) { response = CreateCreateForwardEntryResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) CreateForwardEntry(request *CreateForwardEntryRequest) (re } // CreateForwardEntryWithChan invokes the ecs.CreateForwardEntry API asynchronously -// api document: https://help.aliyun.com/api/ecs/createforwardentry.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateForwardEntryWithChan(request *CreateForwardEntryRequest) (<-chan *CreateForwardEntryResponse, <-chan error) { responseChan := make(chan *CreateForwardEntryResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) CreateForwardEntryWithChan(request *CreateForwardEntryRequ } // CreateForwardEntryWithCallback invokes the ecs.CreateForwardEntry API asynchronously -// api document: https://help.aliyun.com/api/ecs/createforwardentry.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateForwardEntryWithCallback(request *CreateForwardEntryRequest, callback func(response *CreateForwardEntryResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,22 +72,22 @@ func (client *Client) CreateForwardEntryWithCallback(request *CreateForwardEntry type CreateForwardEntryRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ForwardTableId string `position:"Query" name:"ForwardTableId"` + InternalIp string `position:"Query" name:"InternalIp"` + ExternalIp string `position:"Query" name:"ExternalIp"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` IpProtocol string `position:"Query" name:"IpProtocol"` - InternalPort string `position:"Query" name:"InternalPort"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - ForwardTableId string `position:"Query" name:"ForwardTableId"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ExternalIp string `position:"Query" name:"ExternalIp"` + InternalPort string `position:"Query" name:"InternalPort"` ExternalPort string `position:"Query" name:"ExternalPort"` - InternalIp string `position:"Query" name:"InternalIp"` } // CreateForwardEntryResponse is the response struct for api CreateForwardEntry type CreateForwardEntryResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` ForwardEntryId string `json:"ForwardEntryId" xml:"ForwardEntryId"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateCreateForwardEntryRequest creates a request to invoke CreateForwardEntry API @@ -101,6 +96,7 @@ func CreateCreateForwardEntryRequest() (request *CreateForwardEntryRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "CreateForwardEntry", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_ha_vip.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_ha_vip.go index 2ff08c36..fd743616 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_ha_vip.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_ha_vip.go @@ -21,7 +21,6 @@ import ( ) // CreateHaVip invokes the ecs.CreateHaVip API synchronously -// api document: https://help.aliyun.com/api/ecs/createhavip.html func (client *Client) CreateHaVip(request *CreateHaVipRequest) (response *CreateHaVipResponse, err error) { response = CreateCreateHaVipResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) CreateHaVip(request *CreateHaVipRequest) (response *Create } // CreateHaVipWithChan invokes the ecs.CreateHaVip API asynchronously -// api document: https://help.aliyun.com/api/ecs/createhavip.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateHaVipWithChan(request *CreateHaVipRequest) (<-chan *CreateHaVipResponse, <-chan error) { responseChan := make(chan *CreateHaVipResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) CreateHaVipWithChan(request *CreateHaVipRequest) (<-chan * } // CreateHaVipWithCallback invokes the ecs.CreateHaVip API asynchronously -// api document: https://help.aliyun.com/api/ecs/createhavip.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateHaVipWithCallback(request *CreateHaVipRequest, callback func(response *CreateHaVipResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,21 +71,21 @@ func (client *Client) CreateHaVipWithCallback(request *CreateHaVipRequest, callb // CreateHaVipRequest is the request struct for api CreateHaVip type CreateHaVipRequest struct { *requests.RpcRequest - VSwitchId string `position:"Query" name:"VSwitchId"` IpAddress string `position:"Query" name:"IpAddress"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` ClientToken string `position:"Query" name:"ClientToken"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` Description string `position:"Query" name:"Description"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + VSwitchId string `position:"Query" name:"VSwitchId"` } // CreateHaVipResponse is the response struct for api CreateHaVip type CreateHaVipResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` HaVipId string `json:"HaVipId" xml:"HaVipId"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateCreateHaVipRequest creates a request to invoke CreateHaVip API @@ -99,6 +94,7 @@ func CreateCreateHaVipRequest() (request *CreateHaVipRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "CreateHaVip", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_hpc_cluster.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_hpc_cluster.go index a1f479d6..e16e294b 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_hpc_cluster.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_hpc_cluster.go @@ -21,7 +21,6 @@ import ( ) // CreateHpcCluster invokes the ecs.CreateHpcCluster API synchronously -// api document: https://help.aliyun.com/api/ecs/createhpccluster.html func (client *Client) CreateHpcCluster(request *CreateHpcClusterRequest) (response *CreateHpcClusterResponse, err error) { response = CreateCreateHpcClusterResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) CreateHpcCluster(request *CreateHpcClusterRequest) (respon } // CreateHpcClusterWithChan invokes the ecs.CreateHpcCluster API asynchronously -// api document: https://help.aliyun.com/api/ecs/createhpccluster.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateHpcClusterWithChan(request *CreateHpcClusterRequest) (<-chan *CreateHpcClusterResponse, <-chan error) { responseChan := make(chan *CreateHpcClusterResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) CreateHpcClusterWithChan(request *CreateHpcClusterRequest) } // CreateHpcClusterWithCallback invokes the ecs.CreateHpcCluster API asynchronously -// api document: https://help.aliyun.com/api/ecs/createhpccluster.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateHpcClusterWithCallback(request *CreateHpcClusterRequest, callback func(response *CreateHpcClusterResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -88,8 +83,8 @@ type CreateHpcClusterRequest struct { // CreateHpcClusterResponse is the response struct for api CreateHpcCluster type CreateHpcClusterResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` HpcClusterId string `json:"HpcClusterId" xml:"HpcClusterId"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateCreateHpcClusterRequest creates a request to invoke CreateHpcCluster API @@ -98,6 +93,7 @@ func CreateCreateHpcClusterRequest() (request *CreateHpcClusterRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "CreateHpcCluster", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_image.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_image.go index d4712af8..a690cefc 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_image.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_image.go @@ -21,7 +21,6 @@ import ( ) // CreateImage invokes the ecs.CreateImage API synchronously -// api document: https://help.aliyun.com/api/ecs/createimage.html func (client *Client) CreateImage(request *CreateImageRequest) (response *CreateImageResponse, err error) { response = CreateCreateImageResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) CreateImage(request *CreateImageRequest) (response *Create } // CreateImageWithChan invokes the ecs.CreateImage API asynchronously -// api document: https://help.aliyun.com/api/ecs/createimage.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateImageWithChan(request *CreateImageRequest) (<-chan *CreateImageResponse, <-chan error) { responseChan := make(chan *CreateImageResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) CreateImageWithChan(request *CreateImageRequest) (<-chan * } // CreateImageWithCallback invokes the ecs.CreateImage API asynchronously -// api document: https://help.aliyun.com/api/ecs/createimage.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateImageWithCallback(request *CreateImageRequest, callback func(response *CreateImageResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -79,18 +74,23 @@ type CreateImageRequest struct { DiskDeviceMapping *[]CreateImageDiskDeviceMapping `position:"Query" name:"DiskDeviceMapping" type:"Repeated"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` SnapshotId string `position:"Query" name:"SnapshotId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` ClientToken string `position:"Query" name:"ClientToken"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` + SystemTag *[]CreateImageSystemTag `position:"Query" name:"SystemTag" type:"Repeated"` Description string `position:"Query" name:"Description"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` Platform string `position:"Query" name:"Platform"` ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - InstanceId string `position:"Query" name:"InstanceId"` + BootMode string `position:"Query" name:"BootMode"` ImageName string `position:"Query" name:"ImageName"` - ImageVersion string `position:"Query" name:"ImageVersion"` + StorageLocationArn string `position:"Query" name:"StorageLocationArn"` Tag *[]CreateImageTag `position:"Query" name:"Tag" type:"Repeated"` Architecture string `position:"Query" name:"Architecture"` + DetectionStrategy string `position:"Query" name:"DetectionStrategy"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + ImageFamily string `position:"Query" name:"ImageFamily"` + ImageVersion string `position:"Query" name:"ImageVersion"` } // CreateImageDiskDeviceMapping is a repeated param struct in CreateImageRequest @@ -101,6 +101,13 @@ type CreateImageDiskDeviceMapping struct { Device string `name:"Device"` } +// CreateImageSystemTag is a repeated param struct in CreateImageRequest +type CreateImageSystemTag struct { + Scope string `name:"Scope"` + Value string `name:"Value"` + Key string `name:"Key"` +} + // CreateImageTag is a repeated param struct in CreateImageRequest type CreateImageTag struct { Value string `name:"Value"` @@ -110,8 +117,8 @@ type CreateImageTag struct { // CreateImageResponse is the response struct for api CreateImage type CreateImageResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` ImageId string `json:"ImageId" xml:"ImageId"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateCreateImageRequest creates a request to invoke CreateImage API @@ -120,6 +127,7 @@ func CreateCreateImageRequest() (request *CreateImageRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "CreateImage", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_image_component.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_image_component.go new file mode 100644 index 00000000..9ed58462 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_image_component.go @@ -0,0 +1,117 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateImageComponent invokes the ecs.CreateImageComponent API synchronously +func (client *Client) CreateImageComponent(request *CreateImageComponentRequest) (response *CreateImageComponentResponse, err error) { + response = CreateCreateImageComponentResponse() + err = client.DoAction(request, response) + return +} + +// CreateImageComponentWithChan invokes the ecs.CreateImageComponent API asynchronously +func (client *Client) CreateImageComponentWithChan(request *CreateImageComponentRequest) (<-chan *CreateImageComponentResponse, <-chan error) { + responseChan := make(chan *CreateImageComponentResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateImageComponent(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateImageComponentWithCallback invokes the ecs.CreateImageComponent API asynchronously +func (client *Client) CreateImageComponentWithCallback(request *CreateImageComponentRequest, callback func(response *CreateImageComponentResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateImageComponentResponse + var err error + defer close(result) + response, err = client.CreateImageComponent(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateImageComponentRequest is the request struct for api CreateImageComponent +type CreateImageComponentRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + Description string `position:"Query" name:"Description"` + SystemType string `position:"Query" name:"SystemType"` + Content string `position:"Query" name:"Content"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + Tag *[]CreateImageComponentTag `position:"Query" name:"Tag" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ComponentType string `position:"Query" name:"ComponentType"` + Name string `position:"Query" name:"Name"` +} + +// CreateImageComponentTag is a repeated param struct in CreateImageComponentRequest +type CreateImageComponentTag struct { + Key string `name:"Key"` + Value string `name:"Value"` +} + +// CreateImageComponentResponse is the response struct for api CreateImageComponent +type CreateImageComponentResponse struct { + *responses.BaseResponse + ImageComponentId string `json:"ImageComponentId" xml:"ImageComponentId"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateImageComponentRequest creates a request to invoke CreateImageComponent API +func CreateCreateImageComponentRequest() (request *CreateImageComponentRequest) { + request = &CreateImageComponentRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "CreateImageComponent", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateCreateImageComponentResponse creates a response to parse from CreateImageComponent response +func CreateCreateImageComponentResponse() (response *CreateImageComponentResponse) { + response = &CreateImageComponentResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_image_pipeline.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_image_pipeline.go new file mode 100644 index 00000000..46e0037a --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_image_pipeline.go @@ -0,0 +1,125 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateImagePipeline invokes the ecs.CreateImagePipeline API synchronously +func (client *Client) CreateImagePipeline(request *CreateImagePipelineRequest) (response *CreateImagePipelineResponse, err error) { + response = CreateCreateImagePipelineResponse() + err = client.DoAction(request, response) + return +} + +// CreateImagePipelineWithChan invokes the ecs.CreateImagePipeline API asynchronously +func (client *Client) CreateImagePipelineWithChan(request *CreateImagePipelineRequest) (<-chan *CreateImagePipelineResponse, <-chan error) { + responseChan := make(chan *CreateImagePipelineResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateImagePipeline(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateImagePipelineWithCallback invokes the ecs.CreateImagePipeline API asynchronously +func (client *Client) CreateImagePipelineWithCallback(request *CreateImagePipelineRequest, callback func(response *CreateImagePipelineResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateImagePipelineResponse + var err error + defer close(result) + response, err = client.CreateImagePipeline(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateImagePipelineRequest is the request struct for api CreateImagePipeline +type CreateImagePipelineRequest struct { + *requests.RpcRequest + BaseImageType string `position:"Query" name:"BaseImageType"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + ToRegionId *[]string `position:"Query" name:"ToRegionId" type:"Repeated"` + InternetMaxBandwidthOut requests.Integer `position:"Query" name:"InternetMaxBandwidthOut"` + Description string `position:"Query" name:"Description"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + ImageName string `position:"Query" name:"ImageName"` + SystemDiskSize requests.Integer `position:"Query" name:"SystemDiskSize"` + InstanceType string `position:"Query" name:"InstanceType"` + Tag *[]CreateImagePipelineTag `position:"Query" name:"Tag" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + BaseImage string `position:"Query" name:"BaseImage"` + VSwitchId string `position:"Query" name:"VSwitchId"` + AddAccount *[]string `position:"Query" name:"AddAccount" type:"Repeated"` + DeleteInstanceOnFailure requests.Boolean `position:"Query" name:"DeleteInstanceOnFailure"` + Name string `position:"Query" name:"Name"` + BuildContent string `position:"Query" name:"BuildContent"` +} + +// CreateImagePipelineTag is a repeated param struct in CreateImagePipelineRequest +type CreateImagePipelineTag struct { + Key string `name:"Key"` + Value string `name:"Value"` +} + +// CreateImagePipelineResponse is the response struct for api CreateImagePipeline +type CreateImagePipelineResponse struct { + *responses.BaseResponse + ImagePipelineId string `json:"ImagePipelineId" xml:"ImagePipelineId"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateImagePipelineRequest creates a request to invoke CreateImagePipeline API +func CreateCreateImagePipelineRequest() (request *CreateImagePipelineRequest) { + request = &CreateImagePipelineRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "CreateImagePipeline", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateCreateImagePipelineResponse creates a response to parse from CreateImagePipeline response +func CreateCreateImagePipelineResponse() (response *CreateImagePipelineResponse) { + response = &CreateImagePipelineResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_instance.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_instance.go index 9b2a7fde..a6ea452c 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_instance.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_instance.go @@ -21,7 +21,6 @@ import ( ) // CreateInstance invokes the ecs.CreateInstance API synchronously -// api document: https://help.aliyun.com/api/ecs/createinstance.html func (client *Client) CreateInstance(request *CreateInstanceRequest) (response *CreateInstanceResponse, err error) { response = CreateCreateInstanceResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) CreateInstance(request *CreateInstanceRequest) (response * } // CreateInstanceWithChan invokes the ecs.CreateInstance API asynchronously -// api document: https://help.aliyun.com/api/ecs/createinstance.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateInstanceWithChan(request *CreateInstanceRequest) (<-chan *CreateInstanceResponse, <-chan error) { responseChan := make(chan *CreateInstanceResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) CreateInstanceWithChan(request *CreateInstanceRequest) (<- } // CreateInstanceWithCallback invokes the ecs.CreateInstance API asynchronously -// api document: https://help.aliyun.com/api/ecs/createinstance.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateInstanceWithCallback(request *CreateInstanceRequest, callback func(response *CreateInstanceResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,64 +71,79 @@ func (client *Client) CreateInstanceWithCallback(request *CreateInstanceRequest, // CreateInstanceRequest is the request struct for api CreateInstance type CreateInstanceRequest struct { *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - HpcClusterId string `position:"Query" name:"HpcClusterId"` - SecurityEnhancementStrategy string `position:"Query" name:"SecurityEnhancementStrategy"` - KeyPairName string `position:"Query" name:"KeyPairName"` - SpotPriceLimit requests.Float `position:"Query" name:"SpotPriceLimit"` - DeletionProtection requests.Boolean `position:"Query" name:"DeletionProtection"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - HostName string `position:"Query" name:"HostName"` - Password string `position:"Query" name:"Password"` - StorageSetPartitionNumber requests.Integer `position:"Query" name:"StorageSetPartitionNumber"` - Tag *[]CreateInstanceTag `position:"Query" name:"Tag" type:"Repeated"` - AutoRenewPeriod requests.Integer `position:"Query" name:"AutoRenewPeriod"` - NodeControllerId string `position:"Query" name:"NodeControllerId"` - Period requests.Integer `position:"Query" name:"Period"` - DryRun requests.Boolean `position:"Query" name:"DryRun"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - CapacityReservationPreference string `position:"Query" name:"CapacityReservationPreference"` - VSwitchId string `position:"Query" name:"VSwitchId"` - PrivateIpAddress string `position:"Query" name:"PrivateIpAddress"` - SpotStrategy string `position:"Query" name:"SpotStrategy"` - PeriodUnit string `position:"Query" name:"PeriodUnit"` - InstanceName string `position:"Query" name:"InstanceName"` - AutoRenew requests.Boolean `position:"Query" name:"AutoRenew"` - InternetChargeType string `position:"Query" name:"InternetChargeType"` - ZoneId string `position:"Query" name:"ZoneId"` - InternetMaxBandwidthIn requests.Integer `position:"Query" name:"InternetMaxBandwidthIn"` - UseAdditionalService requests.Boolean `position:"Query" name:"UseAdditionalService"` - Affinity string `position:"Query" name:"Affinity"` - ImageId string `position:"Query" name:"ImageId"` - ClientToken string `position:"Query" name:"ClientToken"` - VlanId string `position:"Query" name:"VlanId"` - SpotInterruptionBehavior string `position:"Query" name:"SpotInterruptionBehavior"` - IoOptimized string `position:"Query" name:"IoOptimized"` - SecurityGroupId string `position:"Query" name:"SecurityGroupId"` - InternetMaxBandwidthOut requests.Integer `position:"Query" name:"InternetMaxBandwidthOut"` - Description string `position:"Query" name:"Description"` - SystemDiskCategory string `position:"Query" name:"SystemDisk.Category"` - CapacityReservationId string `position:"Query" name:"CapacityReservationId"` - SystemDiskPerformanceLevel string `position:"Query" name:"SystemDisk.PerformanceLevel"` - UserData string `position:"Query" name:"UserData"` - PasswordInherit requests.Boolean `position:"Query" name:"PasswordInherit"` - InstanceType string `position:"Query" name:"InstanceType"` - Arn *[]CreateInstanceArn `position:"Query" name:"Arn" type:"Repeated"` - InstanceChargeType string `position:"Query" name:"InstanceChargeType"` - DeploymentSetId string `position:"Query" name:"DeploymentSetId"` - InnerIpAddress string `position:"Query" name:"InnerIpAddress"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - Tenancy string `position:"Query" name:"Tenancy"` - SystemDiskDiskName string `position:"Query" name:"SystemDisk.DiskName"` - RamRoleName string `position:"Query" name:"RamRoleName"` - DedicatedHostId string `position:"Query" name:"DedicatedHostId"` - ClusterId string `position:"Query" name:"ClusterId"` - CreditSpecification string `position:"Query" name:"CreditSpecification"` - DataDisk *[]CreateInstanceDataDisk `position:"Query" name:"DataDisk" type:"Repeated"` - StorageSetId string `position:"Query" name:"StorageSetId"` - SystemDiskSize requests.Integer `position:"Query" name:"SystemDisk.Size"` - SystemDiskDescription string `position:"Query" name:"SystemDisk.Description"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + HpcClusterId string `position:"Query" name:"HpcClusterId"` + HttpPutResponseHopLimit requests.Integer `position:"Query" name:"HttpPutResponseHopLimit"` + SecurityEnhancementStrategy string `position:"Query" name:"SecurityEnhancementStrategy"` + KeyPairName string `position:"Query" name:"KeyPairName"` + SpotPriceLimit requests.Float `position:"Query" name:"SpotPriceLimit"` + DeletionProtection requests.Boolean `position:"Query" name:"DeletionProtection"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + PrivatePoolOptionsMatchCriteria string `position:"Query" name:"PrivatePoolOptions.MatchCriteria"` + HostName string `position:"Query" name:"HostName"` + Password string `position:"Query" name:"Password"` + SystemDisk CreateInstanceSystemDisk `position:"Query" name:"SystemDisk" type:"Struct"` + DeploymentSetGroupNo requests.Integer `position:"Query" name:"DeploymentSetGroupNo"` + StorageSetPartitionNumber requests.Integer `position:"Query" name:"StorageSetPartitionNumber"` + Tag *[]CreateInstanceTag `position:"Query" name:"Tag" type:"Repeated"` + PrivatePoolOptionsId string `position:"Query" name:"PrivatePoolOptions.Id"` + AutoRenewPeriod requests.Integer `position:"Query" name:"AutoRenewPeriod"` + NodeControllerId string `position:"Query" name:"NodeControllerId"` + Period requests.Integer `position:"Query" name:"Period"` + DryRun requests.Boolean `position:"Query" name:"DryRun"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + CapacityReservationPreference string `position:"Query" name:"CapacityReservationPreference"` + VSwitchId string `position:"Query" name:"VSwitchId"` + PrivateIpAddress string `position:"Query" name:"PrivateIpAddress"` + SpotStrategy string `position:"Query" name:"SpotStrategy"` + PeriodUnit string `position:"Query" name:"PeriodUnit"` + InstanceName string `position:"Query" name:"InstanceName"` + AutoRenew requests.Boolean `position:"Query" name:"AutoRenew"` + InternetChargeType string `position:"Query" name:"InternetChargeType"` + ZoneId string `position:"Query" name:"ZoneId"` + InternetMaxBandwidthIn requests.Integer `position:"Query" name:"InternetMaxBandwidthIn"` + UseAdditionalService requests.Boolean `position:"Query" name:"UseAdditionalService"` + Affinity string `position:"Query" name:"Affinity"` + ImageId string `position:"Query" name:"ImageId"` + ClientToken string `position:"Query" name:"ClientToken"` + VlanId string `position:"Query" name:"VlanId"` + SpotInterruptionBehavior string `position:"Query" name:"SpotInterruptionBehavior"` + IoOptimized string `position:"Query" name:"IoOptimized"` + SecurityGroupId string `position:"Query" name:"SecurityGroupId"` + InternetMaxBandwidthOut requests.Integer `position:"Query" name:"InternetMaxBandwidthOut"` + HibernationOptionsConfigured requests.Boolean `position:"Query" name:"HibernationOptions.Configured"` + Description string `position:"Query" name:"Description"` + SystemDiskCategory string `position:"Query" name:"SystemDisk.Category"` + CapacityReservationId string `position:"Query" name:"CapacityReservationId"` + SystemDiskPerformanceLevel string `position:"Query" name:"SystemDisk.PerformanceLevel"` + UserData string `position:"Query" name:"UserData"` + PasswordInherit requests.Boolean `position:"Query" name:"PasswordInherit"` + HttpEndpoint string `position:"Query" name:"HttpEndpoint"` + InstanceType string `position:"Query" name:"InstanceType"` + Arn *[]CreateInstanceArn `position:"Query" name:"Arn" type:"Repeated"` + InstanceChargeType string `position:"Query" name:"InstanceChargeType"` + DeploymentSetId string `position:"Query" name:"DeploymentSetId"` + InnerIpAddress string `position:"Query" name:"InnerIpAddress"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Tenancy string `position:"Query" name:"Tenancy"` + SystemDiskDiskName string `position:"Query" name:"SystemDisk.DiskName"` + RamRoleName string `position:"Query" name:"RamRoleName"` + DedicatedHostId string `position:"Query" name:"DedicatedHostId"` + ClusterId string `position:"Query" name:"ClusterId"` + CreditSpecification string `position:"Query" name:"CreditSpecification"` + SpotDuration requests.Integer `position:"Query" name:"SpotDuration"` + DataDisk *[]CreateInstanceDataDisk `position:"Query" name:"DataDisk" type:"Repeated"` + StorageSetId string `position:"Query" name:"StorageSetId"` + SystemDiskSize requests.Integer `position:"Query" name:"SystemDisk.Size"` + ImageFamily string `position:"Query" name:"ImageFamily"` + HttpTokens string `position:"Query" name:"HttpTokens"` + SystemDiskDescription string `position:"Query" name:"SystemDisk.Description"` +} + +// CreateInstanceSystemDisk is a repeated param struct in CreateInstanceRequest +type CreateInstanceSystemDisk struct { + StorageClusterId string `name:"StorageClusterId"` } // CreateInstanceTag is a repeated param struct in CreateInstanceRequest @@ -156,7 +166,9 @@ type CreateInstanceDataDisk struct { Size string `name:"Size"` Encrypted string `name:"Encrypted"` PerformanceLevel string `name:"PerformanceLevel"` + EncryptAlgorithm string `name:"EncryptAlgorithm"` Description string `name:"Description"` + StorageClusterId string `name:"StorageClusterId"` Category string `name:"Category"` KMSKeyId string `name:"KMSKeyId"` Device string `name:"Device"` @@ -168,6 +180,7 @@ type CreateInstanceResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` InstanceId string `json:"InstanceId" xml:"InstanceId"` + OrderId string `json:"OrderId" xml:"OrderId"` TradePrice float64 `json:"TradePrice" xml:"TradePrice"` } @@ -177,6 +190,7 @@ func CreateCreateInstanceRequest() (request *CreateInstanceRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "CreateInstance", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_key_pair.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_key_pair.go index 8625aa50..f20c376c 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_key_pair.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_key_pair.go @@ -21,7 +21,6 @@ import ( ) // CreateKeyPair invokes the ecs.CreateKeyPair API synchronously -// api document: https://help.aliyun.com/api/ecs/createkeypair.html func (client *Client) CreateKeyPair(request *CreateKeyPairRequest) (response *CreateKeyPairResponse, err error) { response = CreateCreateKeyPairResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) CreateKeyPair(request *CreateKeyPairRequest) (response *Cr } // CreateKeyPairWithChan invokes the ecs.CreateKeyPair API asynchronously -// api document: https://help.aliyun.com/api/ecs/createkeypair.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateKeyPairWithChan(request *CreateKeyPairRequest) (<-chan *CreateKeyPairResponse, <-chan error) { responseChan := make(chan *CreateKeyPairResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) CreateKeyPairWithChan(request *CreateKeyPairRequest) (<-ch } // CreateKeyPairWithCallback invokes the ecs.CreateKeyPair API asynchronously -// api document: https://help.aliyun.com/api/ecs/createkeypair.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateKeyPairWithCallback(request *CreateKeyPairRequest, callback func(response *CreateKeyPairResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,11 +71,11 @@ func (client *Client) CreateKeyPairWithCallback(request *CreateKeyPairRequest, c // CreateKeyPairRequest is the request struct for api CreateKeyPair type CreateKeyPairRequest struct { *requests.RpcRequest - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` KeyPairName string `position:"Query" name:"KeyPairName"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` Tag *[]CreateKeyPairTag `position:"Query" name:"Tag" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` } @@ -93,11 +88,11 @@ type CreateKeyPairTag struct { // CreateKeyPairResponse is the response struct for api CreateKeyPair type CreateKeyPairResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - KeyPairId string `json:"KeyPairId" xml:"KeyPairId"` + PrivateKeyBody string `json:"PrivateKeyBody" xml:"PrivateKeyBody"` KeyPairName string `json:"KeyPairName" xml:"KeyPairName"` + KeyPairId string `json:"KeyPairId" xml:"KeyPairId"` + RequestId string `json:"RequestId" xml:"RequestId"` KeyPairFingerPrint string `json:"KeyPairFingerPrint" xml:"KeyPairFingerPrint"` - PrivateKeyBody string `json:"PrivateKeyBody" xml:"PrivateKeyBody"` } // CreateCreateKeyPairRequest creates a request to invoke CreateKeyPair API @@ -106,6 +101,7 @@ func CreateCreateKeyPairRequest() (request *CreateKeyPairRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "CreateKeyPair", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_launch_template.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_launch_template.go index bcc3fdcb..6b346a9b 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_launch_template.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_launch_template.go @@ -21,7 +21,6 @@ import ( ) // CreateLaunchTemplate invokes the ecs.CreateLaunchTemplate API synchronously -// api document: https://help.aliyun.com/api/ecs/createlaunchtemplate.html func (client *Client) CreateLaunchTemplate(request *CreateLaunchTemplateRequest) (response *CreateLaunchTemplateResponse, err error) { response = CreateCreateLaunchTemplateResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) CreateLaunchTemplate(request *CreateLaunchTemplateRequest) } // CreateLaunchTemplateWithChan invokes the ecs.CreateLaunchTemplate API asynchronously -// api document: https://help.aliyun.com/api/ecs/createlaunchtemplate.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateLaunchTemplateWithChan(request *CreateLaunchTemplateRequest) (<-chan *CreateLaunchTemplateResponse, <-chan error) { responseChan := make(chan *CreateLaunchTemplateResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) CreateLaunchTemplateWithChan(request *CreateLaunchTemplate } // CreateLaunchTemplateWithCallback invokes the ecs.CreateLaunchTemplate API asynchronously -// api document: https://help.aliyun.com/api/ecs/createlaunchtemplate.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateLaunchTemplateWithCallback(request *CreateLaunchTemplateRequest, callback func(response *CreateLaunchTemplateResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,50 +71,62 @@ func (client *Client) CreateLaunchTemplateWithCallback(request *CreateLaunchTemp // CreateLaunchTemplateRequest is the request struct for api CreateLaunchTemplate type CreateLaunchTemplateRequest struct { *requests.RpcRequest - LaunchTemplateName string `position:"Query" name:"LaunchTemplateName"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - SecurityEnhancementStrategy string `position:"Query" name:"SecurityEnhancementStrategy"` - NetworkType string `position:"Query" name:"NetworkType"` - KeyPairName string `position:"Query" name:"KeyPairName"` - SpotPriceLimit requests.Float `position:"Query" name:"SpotPriceLimit"` - ImageOwnerAlias string `position:"Query" name:"ImageOwnerAlias"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - HostName string `position:"Query" name:"HostName"` - SystemDiskIops requests.Integer `position:"Query" name:"SystemDisk.Iops"` - TemplateTag *[]CreateLaunchTemplateTemplateTag `position:"Query" name:"TemplateTag" type:"Repeated"` - Tag *[]CreateLaunchTemplateTag `position:"Query" name:"Tag" type:"Repeated"` - Period requests.Integer `position:"Query" name:"Period"` - TemplateResourceGroupId string `position:"Query" name:"TemplateResourceGroupId"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - VSwitchId string `position:"Query" name:"VSwitchId"` - SpotStrategy string `position:"Query" name:"SpotStrategy"` - InstanceName string `position:"Query" name:"InstanceName"` - InternetChargeType string `position:"Query" name:"InternetChargeType"` - ZoneId string `position:"Query" name:"ZoneId"` - InternetMaxBandwidthIn requests.Integer `position:"Query" name:"InternetMaxBandwidthIn"` - VersionDescription string `position:"Query" name:"VersionDescription"` - ImageId string `position:"Query" name:"ImageId"` - IoOptimized string `position:"Query" name:"IoOptimized"` - SecurityGroupId string `position:"Query" name:"SecurityGroupId"` - InternetMaxBandwidthOut requests.Integer `position:"Query" name:"InternetMaxBandwidthOut"` - Description string `position:"Query" name:"Description"` - SystemDiskCategory string `position:"Query" name:"SystemDisk.Category"` - UserData string `position:"Query" name:"UserData"` - PasswordInherit requests.Boolean `position:"Query" name:"PasswordInherit"` - InstanceType string `position:"Query" name:"InstanceType"` - InstanceChargeType string `position:"Query" name:"InstanceChargeType"` - EnableVmOsConfig requests.Boolean `position:"Query" name:"EnableVmOsConfig"` - NetworkInterface *[]CreateLaunchTemplateNetworkInterface `position:"Query" name:"NetworkInterface" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - SystemDiskDiskName string `position:"Query" name:"SystemDisk.DiskName"` - RamRoleName string `position:"Query" name:"RamRoleName"` - AutoReleaseTime string `position:"Query" name:"AutoReleaseTime"` - SpotDuration requests.Integer `position:"Query" name:"SpotDuration"` - DataDisk *[]CreateLaunchTemplateDataDisk `position:"Query" name:"DataDisk" type:"Repeated"` - SystemDiskSize requests.Integer `position:"Query" name:"SystemDisk.Size"` - VpcId string `position:"Query" name:"VpcId"` - SystemDiskDescription string `position:"Query" name:"SystemDisk.Description"` + LaunchTemplateName string `position:"Query" name:"LaunchTemplateName"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SecurityEnhancementStrategy string `position:"Query" name:"SecurityEnhancementStrategy"` + NetworkType string `position:"Query" name:"NetworkType"` + KeyPairName string `position:"Query" name:"KeyPairName"` + SpotPriceLimit requests.Float `position:"Query" name:"SpotPriceLimit"` + ImageOwnerAlias string `position:"Query" name:"ImageOwnerAlias"` + DeletionProtection requests.Boolean `position:"Query" name:"DeletionProtection"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + HostName string `position:"Query" name:"HostName"` + SystemDiskIops requests.Integer `position:"Query" name:"SystemDisk.Iops"` + TemplateTag *[]CreateLaunchTemplateTemplateTag `position:"Query" name:"TemplateTag" type:"Repeated"` + Tag *[]CreateLaunchTemplateTag `position:"Query" name:"Tag" type:"Repeated"` + SystemDiskAutoSnapshotPolicyId string `position:"Query" name:"SystemDisk.AutoSnapshotPolicyId"` + Period requests.Integer `position:"Query" name:"Period"` + Ipv6AddressCount requests.Integer `position:"Query" name:"Ipv6AddressCount"` + TemplateResourceGroupId string `position:"Query" name:"TemplateResourceGroupId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + VSwitchId string `position:"Query" name:"VSwitchId"` + SpotStrategy string `position:"Query" name:"SpotStrategy"` + PrivateIpAddress string `position:"Query" name:"PrivateIpAddress"` + SystemDiskBurstingEnabled requests.Boolean `position:"Query" name:"SystemDisk.BurstingEnabled"` + InstanceName string `position:"Query" name:"InstanceName"` + InternetChargeType string `position:"Query" name:"InternetChargeType"` + ZoneId string `position:"Query" name:"ZoneId"` + InternetMaxBandwidthIn requests.Integer `position:"Query" name:"InternetMaxBandwidthIn"` + VersionDescription string `position:"Query" name:"VersionDescription"` + SystemDiskDeleteWithInstance requests.Boolean `position:"Query" name:"SystemDisk.DeleteWithInstance"` + ImageId string `position:"Query" name:"ImageId"` + IoOptimized string `position:"Query" name:"IoOptimized"` + SecurityGroupId string `position:"Query" name:"SecurityGroupId"` + InternetMaxBandwidthOut requests.Integer `position:"Query" name:"InternetMaxBandwidthOut"` + Description string `position:"Query" name:"Description"` + SystemDiskCategory string `position:"Query" name:"SystemDisk.Category"` + SystemDiskPerformanceLevel string `position:"Query" name:"SystemDisk.PerformanceLevel"` + UserData string `position:"Query" name:"UserData"` + PasswordInherit requests.Boolean `position:"Query" name:"PasswordInherit"` + InstanceType string `position:"Query" name:"InstanceType"` + InstanceChargeType string `position:"Query" name:"InstanceChargeType"` + EnableVmOsConfig requests.Boolean `position:"Query" name:"EnableVmOsConfig"` + DeploymentSetId string `position:"Query" name:"DeploymentSetId"` + NetworkInterface *[]CreateLaunchTemplateNetworkInterface `position:"Query" name:"NetworkInterface" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + SystemDiskDiskName string `position:"Query" name:"SystemDisk.DiskName"` + RamRoleName string `position:"Query" name:"RamRoleName"` + AutoReleaseTime string `position:"Query" name:"AutoReleaseTime"` + CreditSpecification string `position:"Query" name:"CreditSpecification"` + SpotDuration requests.Integer `position:"Query" name:"SpotDuration"` + SecurityGroupIds *[]string `position:"Query" name:"SecurityGroupIds" type:"Repeated"` + DataDisk *[]CreateLaunchTemplateDataDisk `position:"Query" name:"DataDisk" type:"Repeated"` + SystemDiskProvisionedIops requests.Integer `position:"Query" name:"SystemDisk.ProvisionedIops"` + SystemDiskSize requests.Integer `position:"Query" name:"SystemDisk.Size"` + VpcId string `position:"Query" name:"VpcId"` + SystemDiskDescription string `position:"Query" name:"SystemDisk.Description"` + SystemDiskEncrypted string `position:"Query" name:"SystemDisk.Encrypted"` } // CreateLaunchTemplateTemplateTag is a repeated param struct in CreateLaunchTemplateRequest @@ -136,30 +143,38 @@ type CreateLaunchTemplateTag struct { // CreateLaunchTemplateNetworkInterface is a repeated param struct in CreateLaunchTemplateRequest type CreateLaunchTemplateNetworkInterface struct { - PrimaryIpAddress string `name:"PrimaryIpAddress"` - VSwitchId string `name:"VSwitchId"` - SecurityGroupId string `name:"SecurityGroupId"` - NetworkInterfaceName string `name:"NetworkInterfaceName"` - Description string `name:"Description"` + VSwitchId string `name:"VSwitchId"` + NetworkInterfaceName string `name:"NetworkInterfaceName"` + Description string `name:"Description"` + SecurityGroupId string `name:"SecurityGroupId"` + PrimaryIpAddress string `name:"PrimaryIpAddress"` + SecurityGroupIds *[]string `name:"SecurityGroupIds" type:"Repeated"` + InstanceType string `name:"InstanceType"` + NetworkInterfaceTrafficMode string `name:"NetworkInterfaceTrafficMode"` } // CreateLaunchTemplateDataDisk is a repeated param struct in CreateLaunchTemplateRequest type CreateLaunchTemplateDataDisk struct { - Size string `name:"Size"` - SnapshotId string `name:"SnapshotId"` - Category string `name:"Category"` - Encrypted string `name:"Encrypted"` - DiskName string `name:"DiskName"` - Description string `name:"Description"` - DeleteWithInstance string `name:"DeleteWithInstance"` - Device string `name:"Device"` + PerformanceLevel string `name:"PerformanceLevel"` + Description string `name:"Description"` + SnapshotId string `name:"SnapshotId"` + Size string `name:"Size"` + Device string `name:"Device"` + DiskName string `name:"DiskName"` + Category string `name:"Category"` + DeleteWithInstance string `name:"DeleteWithInstance"` + Encrypted string `name:"Encrypted"` + AutoSnapshotPolicyId string `name:"AutoSnapshotPolicyId"` + ProvisionedIops string `name:"ProvisionedIops"` + BurstingEnabled string `name:"BurstingEnabled"` } // CreateLaunchTemplateResponse is the response struct for api CreateLaunchTemplate type CreateLaunchTemplateResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - LaunchTemplateId string `json:"LaunchTemplateId" xml:"LaunchTemplateId"` + LaunchTemplateId string `json:"LaunchTemplateId" xml:"LaunchTemplateId"` + RequestId string `json:"RequestId" xml:"RequestId"` + LaunchTemplateVersionNumber int64 `json:"LaunchTemplateVersionNumber" xml:"LaunchTemplateVersionNumber"` } // CreateCreateLaunchTemplateRequest creates a request to invoke CreateLaunchTemplate API @@ -168,6 +183,7 @@ func CreateCreateLaunchTemplateRequest() (request *CreateLaunchTemplateRequest) RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "CreateLaunchTemplate", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_launch_template_version.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_launch_template_version.go index b8400820..e45b10f9 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_launch_template_version.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_launch_template_version.go @@ -21,7 +21,6 @@ import ( ) // CreateLaunchTemplateVersion invokes the ecs.CreateLaunchTemplateVersion API synchronously -// api document: https://help.aliyun.com/api/ecs/createlaunchtemplateversion.html func (client *Client) CreateLaunchTemplateVersion(request *CreateLaunchTemplateVersionRequest) (response *CreateLaunchTemplateVersionResponse, err error) { response = CreateCreateLaunchTemplateVersionResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) CreateLaunchTemplateVersion(request *CreateLaunchTemplateV } // CreateLaunchTemplateVersionWithChan invokes the ecs.CreateLaunchTemplateVersion API asynchronously -// api document: https://help.aliyun.com/api/ecs/createlaunchtemplateversion.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateLaunchTemplateVersionWithChan(request *CreateLaunchTemplateVersionRequest) (<-chan *CreateLaunchTemplateVersionResponse, <-chan error) { responseChan := make(chan *CreateLaunchTemplateVersionResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) CreateLaunchTemplateVersionWithChan(request *CreateLaunchT } // CreateLaunchTemplateVersionWithCallback invokes the ecs.CreateLaunchTemplateVersion API asynchronously -// api document: https://help.aliyun.com/api/ecs/createlaunchtemplateversion.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateLaunchTemplateVersionWithCallback(request *CreateLaunchTemplateVersionRequest, callback func(response *CreateLaunchTemplateVersionResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,49 +71,61 @@ func (client *Client) CreateLaunchTemplateVersionWithCallback(request *CreateLau // CreateLaunchTemplateVersionRequest is the request struct for api CreateLaunchTemplateVersion type CreateLaunchTemplateVersionRequest struct { *requests.RpcRequest - LaunchTemplateName string `position:"Query" name:"LaunchTemplateName"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - SecurityEnhancementStrategy string `position:"Query" name:"SecurityEnhancementStrategy"` - NetworkType string `position:"Query" name:"NetworkType"` - KeyPairName string `position:"Query" name:"KeyPairName"` - SpotPriceLimit requests.Float `position:"Query" name:"SpotPriceLimit"` - ImageOwnerAlias string `position:"Query" name:"ImageOwnerAlias"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - HostName string `position:"Query" name:"HostName"` - SystemDiskIops requests.Integer `position:"Query" name:"SystemDisk.Iops"` - Tag *[]CreateLaunchTemplateVersionTag `position:"Query" name:"Tag" type:"Repeated"` - Period requests.Integer `position:"Query" name:"Period"` - LaunchTemplateId string `position:"Query" name:"LaunchTemplateId"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - VSwitchId string `position:"Query" name:"VSwitchId"` - SpotStrategy string `position:"Query" name:"SpotStrategy"` - InstanceName string `position:"Query" name:"InstanceName"` - InternetChargeType string `position:"Query" name:"InternetChargeType"` - ZoneId string `position:"Query" name:"ZoneId"` - InternetMaxBandwidthIn requests.Integer `position:"Query" name:"InternetMaxBandwidthIn"` - VersionDescription string `position:"Query" name:"VersionDescription"` - ImageId string `position:"Query" name:"ImageId"` - IoOptimized string `position:"Query" name:"IoOptimized"` - SecurityGroupId string `position:"Query" name:"SecurityGroupId"` - InternetMaxBandwidthOut requests.Integer `position:"Query" name:"InternetMaxBandwidthOut"` - Description string `position:"Query" name:"Description"` - SystemDiskCategory string `position:"Query" name:"SystemDisk.Category"` - UserData string `position:"Query" name:"UserData"` - PasswordInherit requests.Boolean `position:"Query" name:"PasswordInherit"` - InstanceType string `position:"Query" name:"InstanceType"` - InstanceChargeType string `position:"Query" name:"InstanceChargeType"` - EnableVmOsConfig requests.Boolean `position:"Query" name:"EnableVmOsConfig"` - NetworkInterface *[]CreateLaunchTemplateVersionNetworkInterface `position:"Query" name:"NetworkInterface" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - SystemDiskDiskName string `position:"Query" name:"SystemDisk.DiskName"` - RamRoleName string `position:"Query" name:"RamRoleName"` - AutoReleaseTime string `position:"Query" name:"AutoReleaseTime"` - SpotDuration requests.Integer `position:"Query" name:"SpotDuration"` - DataDisk *[]CreateLaunchTemplateVersionDataDisk `position:"Query" name:"DataDisk" type:"Repeated"` - SystemDiskSize requests.Integer `position:"Query" name:"SystemDisk.Size"` - VpcId string `position:"Query" name:"VpcId"` - SystemDiskDescription string `position:"Query" name:"SystemDisk.Description"` + LaunchTemplateName string `position:"Query" name:"LaunchTemplateName"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SecurityEnhancementStrategy string `position:"Query" name:"SecurityEnhancementStrategy"` + NetworkType string `position:"Query" name:"NetworkType"` + KeyPairName string `position:"Query" name:"KeyPairName"` + SpotPriceLimit requests.Float `position:"Query" name:"SpotPriceLimit"` + ImageOwnerAlias string `position:"Query" name:"ImageOwnerAlias"` + DeletionProtection requests.Boolean `position:"Query" name:"DeletionProtection"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + HostName string `position:"Query" name:"HostName"` + SystemDiskIops requests.Integer `position:"Query" name:"SystemDisk.Iops"` + Tag *[]CreateLaunchTemplateVersionTag `position:"Query" name:"Tag" type:"Repeated"` + SystemDiskAutoSnapshotPolicyId string `position:"Query" name:"SystemDisk.AutoSnapshotPolicyId"` + Period requests.Integer `position:"Query" name:"Period"` + LaunchTemplateId string `position:"Query" name:"LaunchTemplateId"` + Ipv6AddressCount requests.Integer `position:"Query" name:"Ipv6AddressCount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + VSwitchId string `position:"Query" name:"VSwitchId"` + SpotStrategy string `position:"Query" name:"SpotStrategy"` + PrivateIpAddress string `position:"Query" name:"PrivateIpAddress"` + SystemDiskBurstingEnabled requests.Boolean `position:"Query" name:"SystemDisk.BurstingEnabled"` + InstanceName string `position:"Query" name:"InstanceName"` + InternetChargeType string `position:"Query" name:"InternetChargeType"` + ZoneId string `position:"Query" name:"ZoneId"` + InternetMaxBandwidthIn requests.Integer `position:"Query" name:"InternetMaxBandwidthIn"` + VersionDescription string `position:"Query" name:"VersionDescription"` + SystemDiskDeleteWithInstance requests.Boolean `position:"Query" name:"SystemDisk.DeleteWithInstance"` + ImageId string `position:"Query" name:"ImageId"` + IoOptimized string `position:"Query" name:"IoOptimized"` + SecurityGroupId string `position:"Query" name:"SecurityGroupId"` + InternetMaxBandwidthOut requests.Integer `position:"Query" name:"InternetMaxBandwidthOut"` + Description string `position:"Query" name:"Description"` + SystemDiskCategory string `position:"Query" name:"SystemDisk.Category"` + SystemDiskPerformanceLevel string `position:"Query" name:"SystemDisk.PerformanceLevel"` + UserData string `position:"Query" name:"UserData"` + PasswordInherit requests.Boolean `position:"Query" name:"PasswordInherit"` + InstanceType string `position:"Query" name:"InstanceType"` + InstanceChargeType string `position:"Query" name:"InstanceChargeType"` + EnableVmOsConfig requests.Boolean `position:"Query" name:"EnableVmOsConfig"` + DeploymentSetId string `position:"Query" name:"DeploymentSetId"` + NetworkInterface *[]CreateLaunchTemplateVersionNetworkInterface `position:"Query" name:"NetworkInterface" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + SystemDiskDiskName string `position:"Query" name:"SystemDisk.DiskName"` + RamRoleName string `position:"Query" name:"RamRoleName"` + AutoReleaseTime string `position:"Query" name:"AutoReleaseTime"` + CreditSpecification string `position:"Query" name:"CreditSpecification"` + SpotDuration requests.Integer `position:"Query" name:"SpotDuration"` + SecurityGroupIds *[]string `position:"Query" name:"SecurityGroupIds" type:"Repeated"` + DataDisk *[]CreateLaunchTemplateVersionDataDisk `position:"Query" name:"DataDisk" type:"Repeated"` + SystemDiskProvisionedIops requests.Integer `position:"Query" name:"SystemDisk.ProvisionedIops"` + SystemDiskSize requests.Integer `position:"Query" name:"SystemDisk.Size"` + VpcId string `position:"Query" name:"VpcId"` + SystemDiskDescription string `position:"Query" name:"SystemDisk.Description"` + SystemDiskEncrypted string `position:"Query" name:"SystemDisk.Encrypted"` } // CreateLaunchTemplateVersionTag is a repeated param struct in CreateLaunchTemplateVersionRequest @@ -129,30 +136,38 @@ type CreateLaunchTemplateVersionTag struct { // CreateLaunchTemplateVersionNetworkInterface is a repeated param struct in CreateLaunchTemplateVersionRequest type CreateLaunchTemplateVersionNetworkInterface struct { - PrimaryIpAddress string `name:"PrimaryIpAddress"` - VSwitchId string `name:"VSwitchId"` - SecurityGroupId string `name:"SecurityGroupId"` - NetworkInterfaceName string `name:"NetworkInterfaceName"` - Description string `name:"Description"` + VSwitchId string `name:"VSwitchId"` + NetworkInterfaceName string `name:"NetworkInterfaceName"` + Description string `name:"Description"` + SecurityGroupId string `name:"SecurityGroupId"` + PrimaryIpAddress string `name:"PrimaryIpAddress"` + SecurityGroupIds *[]string `name:"SecurityGroupIds" type:"Repeated"` + InstanceType string `name:"InstanceType"` + NetworkInterfaceTrafficMode string `name:"NetworkInterfaceTrafficMode"` } // CreateLaunchTemplateVersionDataDisk is a repeated param struct in CreateLaunchTemplateVersionRequest type CreateLaunchTemplateVersionDataDisk struct { - Size string `name:"Size"` - SnapshotId string `name:"SnapshotId"` - Category string `name:"Category"` - Encrypted string `name:"Encrypted"` - DiskName string `name:"DiskName"` - Description string `name:"Description"` - DeleteWithInstance string `name:"DeleteWithInstance"` - Device string `name:"Device"` + PerformanceLevel string `name:"PerformanceLevel"` + Description string `name:"Description"` + SnapshotId string `name:"SnapshotId"` + Size string `name:"Size"` + Device string `name:"Device"` + DiskName string `name:"DiskName"` + Category string `name:"Category"` + DeleteWithInstance string `name:"DeleteWithInstance"` + Encrypted string `name:"Encrypted"` + ProvisionedIops string `name:"ProvisionedIops"` + BurstingEnabled string `name:"BurstingEnabled"` + AutoSnapshotPolicyId string `name:"AutoSnapshotPolicyId"` } // CreateLaunchTemplateVersionResponse is the response struct for api CreateLaunchTemplateVersion type CreateLaunchTemplateVersionResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` LaunchTemplateVersionNumber int64 `json:"LaunchTemplateVersionNumber" xml:"LaunchTemplateVersionNumber"` + RequestId string `json:"RequestId" xml:"RequestId"` + LaunchTemplateId string `json:"LaunchTemplateId" xml:"LaunchTemplateId"` } // CreateCreateLaunchTemplateVersionRequest creates a request to invoke CreateLaunchTemplateVersion API @@ -161,6 +176,7 @@ func CreateCreateLaunchTemplateVersionRequest() (request *CreateLaunchTemplateVe RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "CreateLaunchTemplateVersion", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_nat_gateway.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_nat_gateway.go index 764af7bd..4d11565a 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_nat_gateway.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_nat_gateway.go @@ -21,7 +21,6 @@ import ( ) // CreateNatGateway invokes the ecs.CreateNatGateway API synchronously -// api document: https://help.aliyun.com/api/ecs/createnatgateway.html func (client *Client) CreateNatGateway(request *CreateNatGatewayRequest) (response *CreateNatGatewayResponse, err error) { response = CreateCreateNatGatewayResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) CreateNatGateway(request *CreateNatGatewayRequest) (respon } // CreateNatGatewayWithChan invokes the ecs.CreateNatGateway API asynchronously -// api document: https://help.aliyun.com/api/ecs/createnatgateway.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateNatGatewayWithChan(request *CreateNatGatewayRequest) (<-chan *CreateNatGatewayResponse, <-chan error) { responseChan := make(chan *CreateNatGatewayResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) CreateNatGatewayWithChan(request *CreateNatGatewayRequest) } // CreateNatGatewayWithCallback invokes the ecs.CreateNatGateway API asynchronously -// api document: https://help.aliyun.com/api/ecs/createnatgateway.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateNatGatewayWithCallback(request *CreateNatGatewayRequest, callback func(response *CreateNatGatewayResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,14 +72,14 @@ func (client *Client) CreateNatGatewayWithCallback(request *CreateNatGatewayRequ type CreateNatGatewayRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` ClientToken string `position:"Query" name:"ClientToken"` + Description string `position:"Query" name:"Description"` + BandwidthPackage *[]CreateNatGatewayBandwidthPackage `position:"Query" name:"BandwidthPackage" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` VpcId string `position:"Query" name:"VpcId"` Name string `position:"Query" name:"Name"` - Description string `position:"Query" name:"Description"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - BandwidthPackage *[]CreateNatGatewayBandwidthPackage `position:"Query" name:"BandwidthPackage" type:"Repeated"` } // CreateNatGatewayBandwidthPackage is a repeated param struct in CreateNatGatewayRequest @@ -97,8 +92,8 @@ type CreateNatGatewayBandwidthPackage struct { // CreateNatGatewayResponse is the response struct for api CreateNatGateway type CreateNatGatewayResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` NatGatewayId string `json:"NatGatewayId" xml:"NatGatewayId"` + RequestId string `json:"RequestId" xml:"RequestId"` ForwardTableIds ForwardTableIdsInCreateNatGateway `json:"ForwardTableIds" xml:"ForwardTableIds"` BandwidthPackageIds BandwidthPackageIdsInCreateNatGateway `json:"BandwidthPackageIds" xml:"BandwidthPackageIds"` } @@ -109,6 +104,7 @@ func CreateCreateNatGatewayRequest() (request *CreateNatGatewayRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "CreateNatGateway", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_network_interface.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_network_interface.go index 45784bd7..d97288ff 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_network_interface.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_network_interface.go @@ -21,7 +21,6 @@ import ( ) // CreateNetworkInterface invokes the ecs.CreateNetworkInterface API synchronously -// api document: https://help.aliyun.com/api/ecs/createnetworkinterface.html func (client *Client) CreateNetworkInterface(request *CreateNetworkInterfaceRequest) (response *CreateNetworkInterfaceResponse, err error) { response = CreateCreateNetworkInterfaceResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) CreateNetworkInterface(request *CreateNetworkInterfaceRequ } // CreateNetworkInterfaceWithChan invokes the ecs.CreateNetworkInterface API asynchronously -// api document: https://help.aliyun.com/api/ecs/createnetworkinterface.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateNetworkInterfaceWithChan(request *CreateNetworkInterfaceRequest) (<-chan *CreateNetworkInterfaceResponse, <-chan error) { responseChan := make(chan *CreateNetworkInterfaceResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) CreateNetworkInterfaceWithChan(request *CreateNetworkInter } // CreateNetworkInterfaceWithCallback invokes the ecs.CreateNetworkInterface API asynchronously -// api document: https://help.aliyun.com/api/ecs/createnetworkinterface.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateNetworkInterfaceWithCallback(request *CreateNetworkInterfaceRequest, callback func(response *CreateNetworkInterfaceResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,20 +71,36 @@ func (client *Client) CreateNetworkInterfaceWithCallback(request *CreateNetworkI // CreateNetworkInterfaceRequest is the request struct for api CreateNetworkInterface type CreateNetworkInterfaceRequest struct { *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - SecurityGroupId string `position:"Query" name:"SecurityGroupId"` - Description string `position:"Query" name:"Description"` - BusinessType string `position:"Query" name:"BusinessType"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - Tag *[]CreateNetworkInterfaceTag `position:"Query" name:"Tag" type:"Repeated"` - NetworkInterfaceName string `position:"Query" name:"NetworkInterfaceName"` - Visible requests.Boolean `position:"Query" name:"Visible"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - VSwitchId string `position:"Query" name:"VSwitchId"` - PrimaryIpAddress string `position:"Query" name:"PrimaryIpAddress"` + QueueNumber requests.Integer `position:"Query" name:"QueueNumber"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Ipv4Prefix *[]string `position:"Query" name:"Ipv4Prefix" type:"Repeated"` + SecondaryPrivateIpAddressCount requests.Integer `position:"Query" name:"SecondaryPrivateIpAddressCount"` + BusinessType string `position:"Query" name:"BusinessType"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + Tag *[]CreateNetworkInterfaceTag `position:"Query" name:"Tag" type:"Repeated"` + NetworkInterfaceName string `position:"Query" name:"NetworkInterfaceName"` + Visible requests.Boolean `position:"Query" name:"Visible"` + Ipv6AddressCount requests.Integer `position:"Query" name:"Ipv6AddressCount"` + RxQueueSize requests.Integer `position:"Query" name:"RxQueueSize"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + VSwitchId string `position:"Query" name:"VSwitchId"` + PrivateIpAddress *[]string `position:"Query" name:"PrivateIpAddress" type:"Repeated"` + Ipv6Address *[]string `position:"Query" name:"Ipv6Address" type:"Repeated"` + ClientToken string `position:"Query" name:"ClientToken"` + Ipv6Prefix *[]string `position:"Query" name:"Ipv6Prefix" type:"Repeated"` + SecurityGroupId string `position:"Query" name:"SecurityGroupId"` + Description string `position:"Query" name:"Description"` + Ipv6PrefixCount requests.Integer `position:"Query" name:"Ipv6PrefixCount"` + InstanceType string `position:"Query" name:"InstanceType"` + TxQueueSize requests.Integer `position:"Query" name:"TxQueueSize"` + DeleteOnRelease requests.Boolean `position:"Query" name:"DeleteOnRelease"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + QueuePairNumber requests.Integer `position:"Query" name:"QueuePairNumber"` + SecurityGroupIds *[]string `position:"Query" name:"SecurityGroupIds" type:"Repeated"` + NetworkInterfaceTrafficMode string `position:"Query" name:"NetworkInterfaceTrafficMode"` + Ipv4PrefixCount requests.Integer `position:"Query" name:"Ipv4PrefixCount"` + PrimaryIpAddress string `position:"Query" name:"PrimaryIpAddress"` } // CreateNetworkInterfaceTag is a repeated param struct in CreateNetworkInterfaceRequest @@ -101,8 +112,27 @@ type CreateNetworkInterfaceTag struct { // CreateNetworkInterfaceResponse is the response struct for api CreateNetworkInterface type CreateNetworkInterfaceResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - NetworkInterfaceId string `json:"NetworkInterfaceId" xml:"NetworkInterfaceId"` + Status string `json:"Status" xml:"Status"` + Type string `json:"Type" xml:"Type"` + VpcId string `json:"VpcId" xml:"VpcId"` + NetworkInterfaceName string `json:"NetworkInterfaceName" xml:"NetworkInterfaceName"` + MacAddress string `json:"MacAddress" xml:"MacAddress"` + NetworkInterfaceId string `json:"NetworkInterfaceId" xml:"NetworkInterfaceId"` + ServiceID int64 `json:"ServiceID" xml:"ServiceID"` + OwnerId string `json:"OwnerId" xml:"OwnerId"` + ServiceManaged bool `json:"ServiceManaged" xml:"ServiceManaged"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + RequestId string `json:"RequestId" xml:"RequestId"` + Description string `json:"Description" xml:"Description"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + PrivateIpAddress string `json:"PrivateIpAddress" xml:"PrivateIpAddress"` + SecurityGroupIds SecurityGroupIdsInCreateNetworkInterface `json:"SecurityGroupIds" xml:"SecurityGroupIds"` + PrivateIpSets PrivateIpSetsInCreateNetworkInterface `json:"PrivateIpSets" xml:"PrivateIpSets"` + Tags TagsInCreateNetworkInterface `json:"Tags" xml:"Tags"` + Ipv6Sets Ipv6SetsInCreateNetworkInterface `json:"Ipv6Sets" xml:"Ipv6Sets"` + Ipv4PrefixSets Ipv4PrefixSetsInCreateNetworkInterface `json:"Ipv4PrefixSets" xml:"Ipv4PrefixSets"` + Ipv6PrefixSets Ipv6PrefixSetsInCreateNetworkInterface `json:"Ipv6PrefixSets" xml:"Ipv6PrefixSets"` } // CreateCreateNetworkInterfaceRequest creates a request to invoke CreateNetworkInterface API @@ -111,6 +141,7 @@ func CreateCreateNetworkInterfaceRequest() (request *CreateNetworkInterfaceReque RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "CreateNetworkInterface", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_network_interface_permission.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_network_interface_permission.go index 27e1e84a..7f875a09 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_network_interface_permission.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_network_interface_permission.go @@ -21,7 +21,6 @@ import ( ) // CreateNetworkInterfacePermission invokes the ecs.CreateNetworkInterfacePermission API synchronously -// api document: https://help.aliyun.com/api/ecs/createnetworkinterfacepermission.html func (client *Client) CreateNetworkInterfacePermission(request *CreateNetworkInterfacePermissionRequest) (response *CreateNetworkInterfacePermissionResponse, err error) { response = CreateCreateNetworkInterfacePermissionResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) CreateNetworkInterfacePermission(request *CreateNetworkInt } // CreateNetworkInterfacePermissionWithChan invokes the ecs.CreateNetworkInterfacePermission API asynchronously -// api document: https://help.aliyun.com/api/ecs/createnetworkinterfacepermission.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateNetworkInterfacePermissionWithChan(request *CreateNetworkInterfacePermissionRequest) (<-chan *CreateNetworkInterfacePermissionResponse, <-chan error) { responseChan := make(chan *CreateNetworkInterfacePermissionResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) CreateNetworkInterfacePermissionWithChan(request *CreateNe } // CreateNetworkInterfacePermissionWithCallback invokes the ecs.CreateNetworkInterfacePermission API asynchronously -// api document: https://help.aliyun.com/api/ecs/createnetworkinterfacepermission.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateNetworkInterfacePermissionWithCallback(request *CreateNetworkInterfacePermissionRequest, callback func(response *CreateNetworkInterfacePermissionResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -98,6 +93,7 @@ func CreateCreateNetworkInterfacePermissionRequest() (request *CreateNetworkInte RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "CreateNetworkInterfacePermission", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_physical_connection.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_physical_connection.go index e160ca2d..c3894d56 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_physical_connection.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_physical_connection.go @@ -21,7 +21,6 @@ import ( ) // CreatePhysicalConnection invokes the ecs.CreatePhysicalConnection API synchronously -// api document: https://help.aliyun.com/api/ecs/createphysicalconnection.html func (client *Client) CreatePhysicalConnection(request *CreatePhysicalConnectionRequest) (response *CreatePhysicalConnectionResponse, err error) { response = CreateCreatePhysicalConnectionResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) CreatePhysicalConnection(request *CreatePhysicalConnection } // CreatePhysicalConnectionWithChan invokes the ecs.CreatePhysicalConnection API asynchronously -// api document: https://help.aliyun.com/api/ecs/createphysicalconnection.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreatePhysicalConnectionWithChan(request *CreatePhysicalConnectionRequest) (<-chan *CreatePhysicalConnectionResponse, <-chan error) { responseChan := make(chan *CreatePhysicalConnectionResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) CreatePhysicalConnectionWithChan(request *CreatePhysicalCo } // CreatePhysicalConnectionWithCallback invokes the ecs.CreatePhysicalConnection API asynchronously -// api document: https://help.aliyun.com/api/ecs/createphysicalconnection.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreatePhysicalConnectionWithCallback(request *CreatePhysicalConnectionRequest, callback func(response *CreatePhysicalConnectionResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,28 +72,28 @@ func (client *Client) CreatePhysicalConnectionWithCallback(request *CreatePhysic type CreatePhysicalConnectionRequest struct { *requests.RpcRequest AccessPointId string `position:"Query" name:"AccessPointId"` - RedundantPhysicalConnectionId string `position:"Query" name:"RedundantPhysicalConnectionId"` - PeerLocation string `position:"Query" name:"PeerLocation"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` PortType string `position:"Query" name:"PortType"` CircuitCode string `position:"Query" name:"CircuitCode"` - Bandwidth requests.Integer `position:"Query" name:"bandwidth"` ClientToken string `position:"Query" name:"ClientToken"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` Description string `position:"Query" name:"Description"` Type string `position:"Query" name:"Type"` + UserCidr string `position:"Query" name:"UserCidr"` + RedundantPhysicalConnectionId string `position:"Query" name:"RedundantPhysicalConnectionId"` + PeerLocation string `position:"Query" name:"PeerLocation"` + Bandwidth requests.Integer `position:"Query" name:"bandwidth"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` LineOperator string `position:"Query" name:"LineOperator"` Name string `position:"Query" name:"Name"` - UserCidr string `position:"Query" name:"UserCidr"` } // CreatePhysicalConnectionResponse is the response struct for api CreatePhysicalConnection type CreatePhysicalConnectionResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` PhysicalConnectionId string `json:"PhysicalConnectionId" xml:"PhysicalConnectionId"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateCreatePhysicalConnectionRequest creates a request to invoke CreatePhysicalConnection API @@ -107,6 +102,7 @@ func CreateCreatePhysicalConnectionRequest() (request *CreatePhysicalConnectionR RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "CreatePhysicalConnection", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_prefix_list.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_prefix_list.go new file mode 100644 index 00000000..562a2b68 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_prefix_list.go @@ -0,0 +1,115 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreatePrefixList invokes the ecs.CreatePrefixList API synchronously +func (client *Client) CreatePrefixList(request *CreatePrefixListRequest) (response *CreatePrefixListResponse, err error) { + response = CreateCreatePrefixListResponse() + err = client.DoAction(request, response) + return +} + +// CreatePrefixListWithChan invokes the ecs.CreatePrefixList API asynchronously +func (client *Client) CreatePrefixListWithChan(request *CreatePrefixListRequest) (<-chan *CreatePrefixListResponse, <-chan error) { + responseChan := make(chan *CreatePrefixListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreatePrefixList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreatePrefixListWithCallback invokes the ecs.CreatePrefixList API asynchronously +func (client *Client) CreatePrefixListWithCallback(request *CreatePrefixListRequest, callback func(response *CreatePrefixListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreatePrefixListResponse + var err error + defer close(result) + response, err = client.CreatePrefixList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreatePrefixListRequest is the request struct for api CreatePrefixList +type CreatePrefixListRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + Description string `position:"Query" name:"Description"` + MaxEntries requests.Integer `position:"Query" name:"MaxEntries"` + AddressFamily string `position:"Query" name:"AddressFamily"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PrefixListName string `position:"Query" name:"PrefixListName"` + Entry *[]CreatePrefixListEntry `position:"Query" name:"Entry" type:"Repeated"` +} + +// CreatePrefixListEntry is a repeated param struct in CreatePrefixListRequest +type CreatePrefixListEntry struct { + Description string `name:"Description"` + Cidr string `name:"Cidr"` +} + +// CreatePrefixListResponse is the response struct for api CreatePrefixList +type CreatePrefixListResponse struct { + *responses.BaseResponse + PrefixListId string `json:"PrefixListId" xml:"PrefixListId"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreatePrefixListRequest creates a request to invoke CreatePrefixList API +func CreateCreatePrefixListRequest() (request *CreatePrefixListRequest) { + request = &CreatePrefixListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "CreatePrefixList", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateCreatePrefixListResponse creates a response to parse from CreatePrefixList response +func CreateCreatePrefixListResponse() (response *CreatePrefixListResponse) { + response = &CreatePrefixListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_route_entry.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_route_entry.go index c9dc38f1..13855a76 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_route_entry.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_route_entry.go @@ -21,7 +21,6 @@ import ( ) // CreateRouteEntry invokes the ecs.CreateRouteEntry API synchronously -// api document: https://help.aliyun.com/api/ecs/createrouteentry.html func (client *Client) CreateRouteEntry(request *CreateRouteEntryRequest) (response *CreateRouteEntryResponse, err error) { response = CreateCreateRouteEntryResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) CreateRouteEntry(request *CreateRouteEntryRequest) (respon } // CreateRouteEntryWithChan invokes the ecs.CreateRouteEntry API asynchronously -// api document: https://help.aliyun.com/api/ecs/createrouteentry.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateRouteEntryWithChan(request *CreateRouteEntryRequest) (<-chan *CreateRouteEntryResponse, <-chan error) { responseChan := make(chan *CreateRouteEntryResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) CreateRouteEntryWithChan(request *CreateRouteEntryRequest) } // CreateRouteEntryWithCallback invokes the ecs.CreateRouteEntry API asynchronously -// api document: https://help.aliyun.com/api/ecs/createrouteentry.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateRouteEntryWithCallback(request *CreateRouteEntryRequest, callback func(response *CreateRouteEntryResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,15 +72,15 @@ func (client *Client) CreateRouteEntryWithCallback(request *CreateRouteEntryRequ type CreateRouteEntryRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` ClientToken string `position:"Query" name:"ClientToken"` + NextHopId string `position:"Query" name:"NextHopId"` + NextHopType string `position:"Query" name:"NextHopType"` + RouteTableId string `position:"Query" name:"RouteTableId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` DestinationCidrBlock string `position:"Query" name:"DestinationCidrBlock"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - NextHopId string `position:"Query" name:"NextHopId"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - NextHopType string `position:"Query" name:"NextHopType"` NextHopList *[]CreateRouteEntryNextHopList `position:"Query" name:"NextHopList" type:"Repeated"` - RouteTableId string `position:"Query" name:"RouteTableId"` } // CreateRouteEntryNextHopList is a repeated param struct in CreateRouteEntryRequest @@ -106,6 +101,7 @@ func CreateCreateRouteEntryRequest() (request *CreateRouteEntryRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "CreateRouteEntry", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_router_interface.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_router_interface.go index 9ff0c3e1..41cf12d1 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_router_interface.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_router_interface.go @@ -21,7 +21,6 @@ import ( ) // CreateRouterInterface invokes the ecs.CreateRouterInterface API synchronously -// api document: https://help.aliyun.com/api/ecs/createrouterinterface.html func (client *Client) CreateRouterInterface(request *CreateRouterInterfaceRequest) (response *CreateRouterInterfaceResponse, err error) { response = CreateCreateRouterInterfaceResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) CreateRouterInterface(request *CreateRouterInterfaceReques } // CreateRouterInterfaceWithChan invokes the ecs.CreateRouterInterface API asynchronously -// api document: https://help.aliyun.com/api/ecs/createrouterinterface.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateRouterInterfaceWithChan(request *CreateRouterInterfaceRequest) (<-chan *CreateRouterInterfaceResponse, <-chan error) { responseChan := make(chan *CreateRouterInterfaceResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) CreateRouterInterfaceWithChan(request *CreateRouterInterfa } // CreateRouterInterfaceWithCallback invokes the ecs.CreateRouterInterface API asynchronously -// api document: https://help.aliyun.com/api/ecs/createrouterinterface.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateRouterInterfaceWithCallback(request *CreateRouterInterfaceRequest, callback func(response *CreateRouterInterfaceResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -107,8 +102,8 @@ type CreateRouterInterfaceRequest struct { type CreateRouterInterfaceResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` - RouterInterfaceId string `json:"RouterInterfaceId" xml:"RouterInterfaceId"` OrderId int64 `json:"OrderId" xml:"OrderId"` + RouterInterfaceId string `json:"RouterInterfaceId" xml:"RouterInterfaceId"` } // CreateCreateRouterInterfaceRequest creates a request to invoke CreateRouterInterface API @@ -117,6 +112,7 @@ func CreateCreateRouterInterfaceRequest() (request *CreateRouterInterfaceRequest RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "CreateRouterInterface", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_savings_plan.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_savings_plan.go new file mode 100644 index 00000000..7bf202a1 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_savings_plan.go @@ -0,0 +1,108 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateSavingsPlan invokes the ecs.CreateSavingsPlan API synchronously +func (client *Client) CreateSavingsPlan(request *CreateSavingsPlanRequest) (response *CreateSavingsPlanResponse, err error) { + response = CreateCreateSavingsPlanResponse() + err = client.DoAction(request, response) + return +} + +// CreateSavingsPlanWithChan invokes the ecs.CreateSavingsPlan API asynchronously +func (client *Client) CreateSavingsPlanWithChan(request *CreateSavingsPlanRequest) (<-chan *CreateSavingsPlanResponse, <-chan error) { + responseChan := make(chan *CreateSavingsPlanResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateSavingsPlan(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateSavingsPlanWithCallback invokes the ecs.CreateSavingsPlan API asynchronously +func (client *Client) CreateSavingsPlanWithCallback(request *CreateSavingsPlanRequest, callback func(response *CreateSavingsPlanResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateSavingsPlanResponse + var err error + defer close(result) + response, err = client.CreateSavingsPlan(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateSavingsPlanRequest is the request struct for api CreateSavingsPlan +type CreateSavingsPlanRequest struct { + *requests.RpcRequest + Period string `position:"Query" name:"Period"` + ResourceId *[]string `position:"Query" name:"ResourceId" type:"Repeated"` + InstanceTypeFamily string `position:"Query" name:"InstanceTypeFamily"` + PlanType string `position:"Query" name:"PlanType"` + PeriodUnit string `position:"Query" name:"PeriodUnit"` + OfferingType string `position:"Query" name:"OfferingType"` + ChargeType string `position:"Query" name:"ChargeType"` + CommittedAmount string `position:"Query" name:"CommittedAmount"` +} + +// CreateSavingsPlanResponse is the response struct for api CreateSavingsPlan +type CreateSavingsPlanResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SavingsPlanId string `json:"SavingsPlanId" xml:"SavingsPlanId"` + OrderId string `json:"OrderId" xml:"OrderId"` +} + +// CreateCreateSavingsPlanRequest creates a request to invoke CreateSavingsPlan API +func CreateCreateSavingsPlanRequest() (request *CreateSavingsPlanRequest) { + request = &CreateSavingsPlanRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "CreateSavingsPlan", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateCreateSavingsPlanResponse creates a response to parse from CreateSavingsPlan response +func CreateCreateSavingsPlanResponse() (response *CreateSavingsPlanResponse) { + response = &CreateSavingsPlanResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_security_group.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_security_group.go index f4118e2d..96ef0a52 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_security_group.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_security_group.go @@ -21,7 +21,6 @@ import ( ) // CreateSecurityGroup invokes the ecs.CreateSecurityGroup API synchronously -// api document: https://help.aliyun.com/api/ecs/createsecuritygroup.html func (client *Client) CreateSecurityGroup(request *CreateSecurityGroupRequest) (response *CreateSecurityGroupResponse, err error) { response = CreateCreateSecurityGroupResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) CreateSecurityGroup(request *CreateSecurityGroupRequest) ( } // CreateSecurityGroupWithChan invokes the ecs.CreateSecurityGroup API asynchronously -// api document: https://help.aliyun.com/api/ecs/createsecuritygroup.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateSecurityGroupWithChan(request *CreateSecurityGroupRequest) (<-chan *CreateSecurityGroupResponse, <-chan error) { responseChan := make(chan *CreateSecurityGroupResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) CreateSecurityGroupWithChan(request *CreateSecurityGroupRe } // CreateSecurityGroupWithCallback invokes the ecs.CreateSecurityGroup API asynchronously -// api document: https://help.aliyun.com/api/ecs/createsecuritygroup.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateSecurityGroupWithCallback(request *CreateSecurityGroupRequest, callback func(response *CreateSecurityGroupResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,16 +72,17 @@ func (client *Client) CreateSecurityGroupWithCallback(request *CreateSecurityGro type CreateSecurityGroupRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` ClientToken string `position:"Query" name:"ClientToken"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` + ServiceManaged requests.Boolean `position:"Query" name:"ServiceManaged"` Description string `position:"Query" name:"Description"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` SecurityGroupName string `position:"Query" name:"SecurityGroupName"` - SecurityGroupType string `position:"Query" name:"SecurityGroupType"` ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - VpcId string `position:"Query" name:"VpcId"` Tag *[]CreateSecurityGroupTag `position:"Query" name:"Tag" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + SecurityGroupType string `position:"Query" name:"SecurityGroupType"` + VpcId string `position:"Query" name:"VpcId"` } // CreateSecurityGroupTag is a repeated param struct in CreateSecurityGroupRequest @@ -98,8 +94,8 @@ type CreateSecurityGroupTag struct { // CreateSecurityGroupResponse is the response struct for api CreateSecurityGroup type CreateSecurityGroupResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` SecurityGroupId string `json:"SecurityGroupId" xml:"SecurityGroupId"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateCreateSecurityGroupRequest creates a request to invoke CreateSecurityGroup API @@ -108,6 +104,7 @@ func CreateCreateSecurityGroupRequest() (request *CreateSecurityGroupRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "CreateSecurityGroup", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_simulated_system_events.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_simulated_system_events.go index 3ce185f9..723fd694 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_simulated_system_events.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_simulated_system_events.go @@ -21,7 +21,6 @@ import ( ) // CreateSimulatedSystemEvents invokes the ecs.CreateSimulatedSystemEvents API synchronously -// api document: https://help.aliyun.com/api/ecs/createsimulatedsystemevents.html func (client *Client) CreateSimulatedSystemEvents(request *CreateSimulatedSystemEventsRequest) (response *CreateSimulatedSystemEventsResponse, err error) { response = CreateCreateSimulatedSystemEventsResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) CreateSimulatedSystemEvents(request *CreateSimulatedSystem } // CreateSimulatedSystemEventsWithChan invokes the ecs.CreateSimulatedSystemEvents API asynchronously -// api document: https://help.aliyun.com/api/ecs/createsimulatedsystemevents.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateSimulatedSystemEventsWithChan(request *CreateSimulatedSystemEventsRequest) (<-chan *CreateSimulatedSystemEventsResponse, <-chan error) { responseChan := make(chan *CreateSimulatedSystemEventsResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) CreateSimulatedSystemEventsWithChan(request *CreateSimulat } // CreateSimulatedSystemEventsWithCallback invokes the ecs.CreateSimulatedSystemEvents API asynchronously -// api document: https://help.aliyun.com/api/ecs/createsimulatedsystemevents.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateSimulatedSystemEventsWithCallback(request *CreateSimulatedSystemEventsRequest, callback func(response *CreateSimulatedSystemEventsResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -98,6 +93,7 @@ func CreateCreateSimulatedSystemEventsRequest() (request *CreateSimulatedSystemE RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "CreateSimulatedSystemEvents", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_snapshot.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_snapshot.go index 123e27b4..fa192a62 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_snapshot.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_snapshot.go @@ -21,7 +21,6 @@ import ( ) // CreateSnapshot invokes the ecs.CreateSnapshot API synchronously -// api document: https://help.aliyun.com/api/ecs/createsnapshot.html func (client *Client) CreateSnapshot(request *CreateSnapshotRequest) (response *CreateSnapshotResponse, err error) { response = CreateCreateSnapshotResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) CreateSnapshot(request *CreateSnapshotRequest) (response * } // CreateSnapshotWithChan invokes the ecs.CreateSnapshot API asynchronously -// api document: https://help.aliyun.com/api/ecs/createsnapshot.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateSnapshotWithChan(request *CreateSnapshotRequest) (<-chan *CreateSnapshotResponse, <-chan error) { responseChan := make(chan *CreateSnapshotResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) CreateSnapshotWithChan(request *CreateSnapshotRequest) (<- } // CreateSnapshotWithCallback invokes the ecs.CreateSnapshot API asynchronously -// api document: https://help.aliyun.com/api/ecs/createsnapshot.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateSnapshotWithCallback(request *CreateSnapshotRequest, callback func(response *CreateSnapshotResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,19 +71,29 @@ func (client *Client) CreateSnapshotWithCallback(request *CreateSnapshotRequest, // CreateSnapshotRequest is the request struct for api CreateSnapshot type CreateSnapshotRequest struct { *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - ClientToken string `position:"Query" name:"ClientToken"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - Description string `position:"Query" name:"Description"` - SnapshotName string `position:"Query" name:"SnapshotName"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - SourceSnapshotId string `position:"Query" name:"SourceSnapshotId"` - RemoveSourceSnapshot requests.Boolean `position:"Query" name:"RemoveSourceSnapshot"` - DiskId string `position:"Query" name:"DiskId"` - RetentionDays requests.Integer `position:"Query" name:"RetentionDays"` - Tag *[]CreateSnapshotTag `position:"Query" name:"Tag" type:"Repeated"` - Category string `position:"Query" name:"Category"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + InstantAccess requests.Boolean `position:"Query" name:"InstantAccess"` + SystemTag *[]CreateSnapshotSystemTag `position:"Query" name:"SystemTag" type:"Repeated"` + Description string `position:"Query" name:"Description"` + SnapshotName string `position:"Query" name:"SnapshotName"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + InstantAccessRetentionDays requests.Integer `position:"Query" name:"InstantAccessRetentionDays"` + StorageLocationArn string `position:"Query" name:"StorageLocationArn"` + DiskId string `position:"Query" name:"DiskId"` + Tag *[]CreateSnapshotTag `position:"Query" name:"Tag" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + RetentionDays requests.Integer `position:"Query" name:"RetentionDays"` + Category string `position:"Query" name:"Category"` +} + +// CreateSnapshotSystemTag is a repeated param struct in CreateSnapshotRequest +type CreateSnapshotSystemTag struct { + Scope string `name:"Scope"` + Value string `name:"Value"` + Key string `name:"Key"` } // CreateSnapshotTag is a repeated param struct in CreateSnapshotRequest @@ -100,8 +105,8 @@ type CreateSnapshotTag struct { // CreateSnapshotResponse is the response struct for api CreateSnapshot type CreateSnapshotResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` SnapshotId string `json:"SnapshotId" xml:"SnapshotId"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateCreateSnapshotRequest creates a request to invoke CreateSnapshot API @@ -110,6 +115,7 @@ func CreateCreateSnapshotRequest() (request *CreateSnapshotRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "CreateSnapshot", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_snapshot_group.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_snapshot_group.go new file mode 100644 index 00000000..e8ce90ba --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_snapshot_group.go @@ -0,0 +1,119 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateSnapshotGroup invokes the ecs.CreateSnapshotGroup API synchronously +func (client *Client) CreateSnapshotGroup(request *CreateSnapshotGroupRequest) (response *CreateSnapshotGroupResponse, err error) { + response = CreateCreateSnapshotGroupResponse() + err = client.DoAction(request, response) + return +} + +// CreateSnapshotGroupWithChan invokes the ecs.CreateSnapshotGroup API asynchronously +func (client *Client) CreateSnapshotGroupWithChan(request *CreateSnapshotGroupRequest) (<-chan *CreateSnapshotGroupResponse, <-chan error) { + responseChan := make(chan *CreateSnapshotGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateSnapshotGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateSnapshotGroupWithCallback invokes the ecs.CreateSnapshotGroup API asynchronously +func (client *Client) CreateSnapshotGroupWithCallback(request *CreateSnapshotGroupRequest, callback func(response *CreateSnapshotGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateSnapshotGroupResponse + var err error + defer close(result) + response, err = client.CreateSnapshotGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateSnapshotGroupRequest is the request struct for api CreateSnapshotGroup +type CreateSnapshotGroupRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstantAccess requests.Boolean `position:"Query" name:"InstantAccess"` + ExcludeDiskId *[]string `position:"Query" name:"ExcludeDiskId" type:"Repeated"` + Description string `position:"Query" name:"Description"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + InstantAccessRetentionDays requests.Integer `position:"Query" name:"InstantAccessRetentionDays"` + StorageLocationArn string `position:"Query" name:"StorageLocationArn"` + DiskId *[]string `position:"Query" name:"DiskId" type:"Repeated"` + Tag *[]CreateSnapshotGroupTag `position:"Query" name:"Tag" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + Name string `position:"Query" name:"Name"` +} + +// CreateSnapshotGroupTag is a repeated param struct in CreateSnapshotGroupRequest +type CreateSnapshotGroupTag struct { + Key string `name:"Key"` + Value string `name:"Value"` +} + +// CreateSnapshotGroupResponse is the response struct for api CreateSnapshotGroup +type CreateSnapshotGroupResponse struct { + *responses.BaseResponse + SnapshotGroupId string `json:"SnapshotGroupId" xml:"SnapshotGroupId"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateSnapshotGroupRequest creates a request to invoke CreateSnapshotGroup API +func CreateCreateSnapshotGroupRequest() (request *CreateSnapshotGroupRequest) { + request = &CreateSnapshotGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "CreateSnapshotGroup", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateCreateSnapshotGroupResponse creates a response to parse from CreateSnapshotGroup response +func CreateCreateSnapshotGroupResponse() (response *CreateSnapshotGroupResponse) { + response = &CreateSnapshotGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_storage_set.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_storage_set.go index 5308c8bf..7a3960eb 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_storage_set.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_storage_set.go @@ -21,7 +21,6 @@ import ( ) // CreateStorageSet invokes the ecs.CreateStorageSet API synchronously -// api document: https://help.aliyun.com/api/ecs/createstorageset.html func (client *Client) CreateStorageSet(request *CreateStorageSetRequest) (response *CreateStorageSetResponse, err error) { response = CreateCreateStorageSetResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) CreateStorageSet(request *CreateStorageSetRequest) (respon } // CreateStorageSetWithChan invokes the ecs.CreateStorageSet API asynchronously -// api document: https://help.aliyun.com/api/ecs/createstorageset.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateStorageSetWithChan(request *CreateStorageSetRequest) (<-chan *CreateStorageSetResponse, <-chan error) { responseChan := make(chan *CreateStorageSetResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) CreateStorageSetWithChan(request *CreateStorageSetRequest) } // CreateStorageSetWithCallback invokes the ecs.CreateStorageSet API asynchronously -// api document: https://help.aliyun.com/api/ecs/createstorageset.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateStorageSetWithCallback(request *CreateStorageSetRequest, callback func(response *CreateStorageSetResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -90,8 +85,8 @@ type CreateStorageSetRequest struct { // CreateStorageSetResponse is the response struct for api CreateStorageSet type CreateStorageSetResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` StorageSetId string `json:"StorageSetId" xml:"StorageSetId"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateCreateStorageSetRequest creates a request to invoke CreateStorageSet API @@ -100,6 +95,7 @@ func CreateCreateStorageSetRequest() (request *CreateStorageSetRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "CreateStorageSet", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_v_switch.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_v_switch.go index 718c1a54..283f2af9 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_v_switch.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_v_switch.go @@ -21,7 +21,6 @@ import ( ) // CreateVSwitch invokes the ecs.CreateVSwitch API synchronously -// api document: https://help.aliyun.com/api/ecs/createvswitch.html func (client *Client) CreateVSwitch(request *CreateVSwitchRequest) (response *CreateVSwitchResponse, err error) { response = CreateCreateVSwitchResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) CreateVSwitch(request *CreateVSwitchRequest) (response *Cr } // CreateVSwitchWithChan invokes the ecs.CreateVSwitch API asynchronously -// api document: https://help.aliyun.com/api/ecs/createvswitch.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateVSwitchWithChan(request *CreateVSwitchRequest) (<-chan *CreateVSwitchResponse, <-chan error) { responseChan := make(chan *CreateVSwitchResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) CreateVSwitchWithChan(request *CreateVSwitchRequest) (<-ch } // CreateVSwitchWithCallback invokes the ecs.CreateVSwitch API asynchronously -// api document: https://help.aliyun.com/api/ecs/createvswitch.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateVSwitchWithCallback(request *CreateVSwitchRequest, callback func(response *CreateVSwitchResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,22 +72,22 @@ func (client *Client) CreateVSwitchWithCallback(request *CreateVSwitchRequest, c type CreateVSwitchRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` ClientToken string `position:"Query" name:"ClientToken"` + Description string `position:"Query" name:"Description"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` VpcId string `position:"Query" name:"VpcId"` VSwitchName string `position:"Query" name:"VSwitchName"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` CidrBlock string `position:"Query" name:"CidrBlock"` ZoneId string `position:"Query" name:"ZoneId"` - Description string `position:"Query" name:"Description"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` } // CreateVSwitchResponse is the response struct for api CreateVSwitch type CreateVSwitchResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateCreateVSwitchRequest creates a request to invoke CreateVSwitch API @@ -101,6 +96,7 @@ func CreateCreateVSwitchRequest() (request *CreateVSwitchRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "CreateVSwitch", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_virtual_border_router.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_virtual_border_router.go index 887da2b7..90b82fda 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_virtual_border_router.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_virtual_border_router.go @@ -21,7 +21,6 @@ import ( ) // CreateVirtualBorderRouter invokes the ecs.CreateVirtualBorderRouter API synchronously -// api document: https://help.aliyun.com/api/ecs/createvirtualborderrouter.html func (client *Client) CreateVirtualBorderRouter(request *CreateVirtualBorderRouterRequest) (response *CreateVirtualBorderRouterResponse, err error) { response = CreateCreateVirtualBorderRouterResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) CreateVirtualBorderRouter(request *CreateVirtualBorderRout } // CreateVirtualBorderRouterWithChan invokes the ecs.CreateVirtualBorderRouter API asynchronously -// api document: https://help.aliyun.com/api/ecs/createvirtualborderrouter.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateVirtualBorderRouterWithChan(request *CreateVirtualBorderRouterRequest) (<-chan *CreateVirtualBorderRouterResponse, <-chan error) { responseChan := make(chan *CreateVirtualBorderRouterResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) CreateVirtualBorderRouterWithChan(request *CreateVirtualBo } // CreateVirtualBorderRouterWithCallback invokes the ecs.CreateVirtualBorderRouter API asynchronously -// api document: https://help.aliyun.com/api/ecs/createvirtualborderrouter.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateVirtualBorderRouterWithCallback(request *CreateVirtualBorderRouterRequest, callback func(response *CreateVirtualBorderRouterResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -80,24 +75,24 @@ type CreateVirtualBorderRouterRequest struct { CircuitCode string `position:"Query" name:"CircuitCode"` VlanId requests.Integer `position:"Query" name:"VlanId"` ClientToken string `position:"Query" name:"ClientToken"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` Description string `position:"Query" name:"Description"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` PeerGatewayIp string `position:"Query" name:"PeerGatewayIp"` PeeringSubnetMask string `position:"Query" name:"PeeringSubnetMask"` - PhysicalConnectionId string `position:"Query" name:"PhysicalConnectionId"` - Name string `position:"Query" name:"Name"` LocalGatewayIp string `position:"Query" name:"LocalGatewayIp"` UserCidr string `position:"Query" name:"UserCidr"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PhysicalConnectionId string `position:"Query" name:"PhysicalConnectionId"` + Name string `position:"Query" name:"Name"` VbrOwnerId requests.Integer `position:"Query" name:"VbrOwnerId"` } // CreateVirtualBorderRouterResponse is the response struct for api CreateVirtualBorderRouter type CreateVirtualBorderRouterResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` VbrId string `json:"VbrId" xml:"VbrId"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateCreateVirtualBorderRouterRequest creates a request to invoke CreateVirtualBorderRouter API @@ -106,6 +101,7 @@ func CreateCreateVirtualBorderRouterRequest() (request *CreateVirtualBorderRoute RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "CreateVirtualBorderRouter", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_vpc.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_vpc.go index 25eefd74..8a0be80a 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_vpc.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/create_vpc.go @@ -21,7 +21,6 @@ import ( ) // CreateVpc invokes the ecs.CreateVpc API synchronously -// api document: https://help.aliyun.com/api/ecs/createvpc.html func (client *Client) CreateVpc(request *CreateVpcRequest) (response *CreateVpcResponse, err error) { response = CreateCreateVpcResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) CreateVpc(request *CreateVpcRequest) (response *CreateVpcR } // CreateVpcWithChan invokes the ecs.CreateVpc API asynchronously -// api document: https://help.aliyun.com/api/ecs/createvpc.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateVpcWithChan(request *CreateVpcRequest) (<-chan *CreateVpcResponse, <-chan error) { responseChan := make(chan *CreateVpcResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) CreateVpcWithChan(request *CreateVpcRequest) (<-chan *Crea } // CreateVpcWithCallback invokes the ecs.CreateVpc API asynchronously -// api document: https://help.aliyun.com/api/ecs/createvpc.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateVpcWithCallback(request *CreateVpcRequest, callback func(response *CreateVpcResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,23 +71,23 @@ func (client *Client) CreateVpcWithCallback(request *CreateVpcRequest, callback // CreateVpcRequest is the request struct for api CreateVpc type CreateVpcRequest struct { *requests.RpcRequest - VpcName string `position:"Query" name:"VpcName"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` ClientToken string `position:"Query" name:"ClientToken"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - CidrBlock string `position:"Query" name:"CidrBlock"` Description string `position:"Query" name:"Description"` + VpcName string `position:"Query" name:"VpcName"` UserCidr string `position:"Query" name:"UserCidr"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + CidrBlock string `position:"Query" name:"CidrBlock"` } // CreateVpcResponse is the response struct for api CreateVpc type CreateVpcResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` VpcId string `json:"VpcId" xml:"VpcId"` VRouterId string `json:"VRouterId" xml:"VRouterId"` + RequestId string `json:"RequestId" xml:"RequestId"` RouteTableId string `json:"RouteTableId" xml:"RouteTableId"` } @@ -102,6 +97,7 @@ func CreateCreateVpcRequest() (request *CreateVpcRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "CreateVpc", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/deactivate_router_interface.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/deactivate_router_interface.go index 4652f3ad..67a7b704 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/deactivate_router_interface.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/deactivate_router_interface.go @@ -21,7 +21,6 @@ import ( ) // DeactivateRouterInterface invokes the ecs.DeactivateRouterInterface API synchronously -// api document: https://help.aliyun.com/api/ecs/deactivaterouterinterface.html func (client *Client) DeactivateRouterInterface(request *DeactivateRouterInterfaceRequest) (response *DeactivateRouterInterfaceResponse, err error) { response = CreateDeactivateRouterInterfaceResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DeactivateRouterInterface(request *DeactivateRouterInterfa } // DeactivateRouterInterfaceWithChan invokes the ecs.DeactivateRouterInterface API asynchronously -// api document: https://help.aliyun.com/api/ecs/deactivaterouterinterface.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeactivateRouterInterfaceWithChan(request *DeactivateRouterInterfaceRequest) (<-chan *DeactivateRouterInterfaceResponse, <-chan error) { responseChan := make(chan *DeactivateRouterInterfaceResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DeactivateRouterInterfaceWithChan(request *DeactivateRoute } // DeactivateRouterInterfaceWithCallback invokes the ecs.DeactivateRouterInterface API asynchronously -// api document: https://help.aliyun.com/api/ecs/deactivaterouterinterface.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeactivateRouterInterfaceWithCallback(request *DeactivateRouterInterfaceRequest, callback func(response *DeactivateRouterInterfaceResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -94,6 +89,7 @@ func CreateDeactivateRouterInterfaceRequest() (request *DeactivateRouterInterfac RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DeactivateRouterInterface", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_activation.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_activation.go new file mode 100644 index 00000000..95013796 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_activation.go @@ -0,0 +1,104 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteActivation invokes the ecs.DeleteActivation API synchronously +func (client *Client) DeleteActivation(request *DeleteActivationRequest) (response *DeleteActivationResponse, err error) { + response = CreateDeleteActivationResponse() + err = client.DoAction(request, response) + return +} + +// DeleteActivationWithChan invokes the ecs.DeleteActivation API asynchronously +func (client *Client) DeleteActivationWithChan(request *DeleteActivationRequest) (<-chan *DeleteActivationResponse, <-chan error) { + responseChan := make(chan *DeleteActivationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteActivation(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteActivationWithCallback invokes the ecs.DeleteActivation API asynchronously +func (client *Client) DeleteActivationWithCallback(request *DeleteActivationRequest, callback func(response *DeleteActivationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteActivationResponse + var err error + defer close(result) + response, err = client.DeleteActivation(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteActivationRequest is the request struct for api DeleteActivation +type DeleteActivationRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ActivationId string `position:"Query" name:"ActivationId"` +} + +// DeleteActivationResponse is the response struct for api DeleteActivation +type DeleteActivationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Activation Activation `json:"Activation" xml:"Activation"` +} + +// CreateDeleteActivationRequest creates a request to invoke DeleteActivation API +func CreateDeleteActivationRequest() (request *DeleteActivationRequest) { + request = &DeleteActivationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteActivation", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateDeleteActivationResponse creates a response to parse from DeleteActivation response +func CreateDeleteActivationResponse() (response *DeleteActivationResponse) { + response = &DeleteActivationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_auto_provisioning_group.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_auto_provisioning_group.go index bdbb9b01..802a39fc 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_auto_provisioning_group.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_auto_provisioning_group.go @@ -21,7 +21,6 @@ import ( ) // DeleteAutoProvisioningGroup invokes the ecs.DeleteAutoProvisioningGroup API synchronously -// api document: https://help.aliyun.com/api/ecs/deleteautoprovisioninggroup.html func (client *Client) DeleteAutoProvisioningGroup(request *DeleteAutoProvisioningGroupRequest) (response *DeleteAutoProvisioningGroupResponse, err error) { response = CreateDeleteAutoProvisioningGroupResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DeleteAutoProvisioningGroup(request *DeleteAutoProvisionin } // DeleteAutoProvisioningGroupWithChan invokes the ecs.DeleteAutoProvisioningGroup API asynchronously -// api document: https://help.aliyun.com/api/ecs/deleteautoprovisioninggroup.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteAutoProvisioningGroupWithChan(request *DeleteAutoProvisioningGroupRequest) (<-chan *DeleteAutoProvisioningGroupResponse, <-chan error) { responseChan := make(chan *DeleteAutoProvisioningGroupResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DeleteAutoProvisioningGroupWithChan(request *DeleteAutoPro } // DeleteAutoProvisioningGroupWithCallback invokes the ecs.DeleteAutoProvisioningGroup API asynchronously -// api document: https://help.aliyun.com/api/ecs/deleteautoprovisioninggroup.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteAutoProvisioningGroupWithCallback(request *DeleteAutoProvisioningGroupRequest, callback func(response *DeleteAutoProvisioningGroupResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -96,6 +91,7 @@ func CreateDeleteAutoProvisioningGroupRequest() (request *DeleteAutoProvisioning RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteAutoProvisioningGroup", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_auto_snapshot_policy.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_auto_snapshot_policy.go index 17ced5d6..ae0ce916 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_auto_snapshot_policy.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_auto_snapshot_policy.go @@ -21,7 +21,6 @@ import ( ) // DeleteAutoSnapshotPolicy invokes the ecs.DeleteAutoSnapshotPolicy API synchronously -// api document: https://help.aliyun.com/api/ecs/deleteautosnapshotpolicy.html func (client *Client) DeleteAutoSnapshotPolicy(request *DeleteAutoSnapshotPolicyRequest) (response *DeleteAutoSnapshotPolicyResponse, err error) { response = CreateDeleteAutoSnapshotPolicyResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DeleteAutoSnapshotPolicy(request *DeleteAutoSnapshotPolicy } // DeleteAutoSnapshotPolicyWithChan invokes the ecs.DeleteAutoSnapshotPolicy API asynchronously -// api document: https://help.aliyun.com/api/ecs/deleteautosnapshotpolicy.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteAutoSnapshotPolicyWithChan(request *DeleteAutoSnapshotPolicyRequest) (<-chan *DeleteAutoSnapshotPolicyResponse, <-chan error) { responseChan := make(chan *DeleteAutoSnapshotPolicyResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DeleteAutoSnapshotPolicyWithChan(request *DeleteAutoSnapsh } // DeleteAutoSnapshotPolicyWithCallback invokes the ecs.DeleteAutoSnapshotPolicy API asynchronously -// api document: https://help.aliyun.com/api/ecs/deleteautosnapshotpolicy.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteAutoSnapshotPolicyWithCallback(request *DeleteAutoSnapshotPolicyRequest, callback func(response *DeleteAutoSnapshotPolicyResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,8 +72,8 @@ func (client *Client) DeleteAutoSnapshotPolicyWithCallback(request *DeleteAutoSn type DeleteAutoSnapshotPolicyRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` AutoSnapshotPolicyId string `position:"Query" name:"autoSnapshotPolicyId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` } @@ -94,6 +89,7 @@ func CreateDeleteAutoSnapshotPolicyRequest() (request *DeleteAutoSnapshotPolicyR RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteAutoSnapshotPolicy", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_bandwidth_package.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_bandwidth_package.go index 1e91f61d..e8fe71e7 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_bandwidth_package.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_bandwidth_package.go @@ -21,7 +21,6 @@ import ( ) // DeleteBandwidthPackage invokes the ecs.DeleteBandwidthPackage API synchronously -// api document: https://help.aliyun.com/api/ecs/deletebandwidthpackage.html func (client *Client) DeleteBandwidthPackage(request *DeleteBandwidthPackageRequest) (response *DeleteBandwidthPackageResponse, err error) { response = CreateDeleteBandwidthPackageResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DeleteBandwidthPackage(request *DeleteBandwidthPackageRequ } // DeleteBandwidthPackageWithChan invokes the ecs.DeleteBandwidthPackage API asynchronously -// api document: https://help.aliyun.com/api/ecs/deletebandwidthpackage.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteBandwidthPackageWithChan(request *DeleteBandwidthPackageRequest) (<-chan *DeleteBandwidthPackageResponse, <-chan error) { responseChan := make(chan *DeleteBandwidthPackageResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DeleteBandwidthPackageWithChan(request *DeleteBandwidthPac } // DeleteBandwidthPackageWithCallback invokes the ecs.DeleteBandwidthPackage API asynchronously -// api document: https://help.aliyun.com/api/ecs/deletebandwidthpackage.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteBandwidthPackageWithCallback(request *DeleteBandwidthPackageRequest, callback func(response *DeleteBandwidthPackageResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -95,6 +90,7 @@ func CreateDeleteBandwidthPackageRequest() (request *DeleteBandwidthPackageReque RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteBandwidthPackage", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_command.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_command.go index 4bdf6e66..5c21c67d 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_command.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_command.go @@ -21,7 +21,6 @@ import ( ) // DeleteCommand invokes the ecs.DeleteCommand API synchronously -// api document: https://help.aliyun.com/api/ecs/deletecommand.html func (client *Client) DeleteCommand(request *DeleteCommandRequest) (response *DeleteCommandResponse, err error) { response = CreateDeleteCommandResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DeleteCommand(request *DeleteCommandRequest) (response *De } // DeleteCommandWithChan invokes the ecs.DeleteCommand API asynchronously -// api document: https://help.aliyun.com/api/ecs/deletecommand.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteCommandWithChan(request *DeleteCommandRequest) (<-chan *DeleteCommandResponse, <-chan error) { responseChan := make(chan *DeleteCommandResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DeleteCommandWithChan(request *DeleteCommandRequest) (<-ch } // DeleteCommandWithCallback invokes the ecs.DeleteCommand API asynchronously -// api document: https://help.aliyun.com/api/ecs/deletecommand.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteCommandWithCallback(request *DeleteCommandRequest, callback func(response *DeleteCommandResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -95,6 +90,7 @@ func CreateDeleteCommandRequest() (request *DeleteCommandRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteCommand", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_dedicated_host_cluster.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_dedicated_host_cluster.go new file mode 100644 index 00000000..bbe22e02 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_dedicated_host_cluster.go @@ -0,0 +1,103 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteDedicatedHostCluster invokes the ecs.DeleteDedicatedHostCluster API synchronously +func (client *Client) DeleteDedicatedHostCluster(request *DeleteDedicatedHostClusterRequest) (response *DeleteDedicatedHostClusterResponse, err error) { + response = CreateDeleteDedicatedHostClusterResponse() + err = client.DoAction(request, response) + return +} + +// DeleteDedicatedHostClusterWithChan invokes the ecs.DeleteDedicatedHostCluster API asynchronously +func (client *Client) DeleteDedicatedHostClusterWithChan(request *DeleteDedicatedHostClusterRequest) (<-chan *DeleteDedicatedHostClusterResponse, <-chan error) { + responseChan := make(chan *DeleteDedicatedHostClusterResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteDedicatedHostCluster(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteDedicatedHostClusterWithCallback invokes the ecs.DeleteDedicatedHostCluster API asynchronously +func (client *Client) DeleteDedicatedHostClusterWithCallback(request *DeleteDedicatedHostClusterRequest, callback func(response *DeleteDedicatedHostClusterResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteDedicatedHostClusterResponse + var err error + defer close(result) + response, err = client.DeleteDedicatedHostCluster(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteDedicatedHostClusterRequest is the request struct for api DeleteDedicatedHostCluster +type DeleteDedicatedHostClusterRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DedicatedHostClusterId string `position:"Query" name:"DedicatedHostClusterId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteDedicatedHostClusterResponse is the response struct for api DeleteDedicatedHostCluster +type DeleteDedicatedHostClusterResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteDedicatedHostClusterRequest creates a request to invoke DeleteDedicatedHostCluster API +func CreateDeleteDedicatedHostClusterRequest() (request *DeleteDedicatedHostClusterRequest) { + request = &DeleteDedicatedHostClusterRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteDedicatedHostCluster", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateDeleteDedicatedHostClusterResponse creates a response to parse from DeleteDedicatedHostCluster response +func CreateDeleteDedicatedHostClusterResponse() (response *DeleteDedicatedHostClusterResponse) { + response = &DeleteDedicatedHostClusterResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_fleet.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_demand.go similarity index 50% rename from src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_fleet.go rename to src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_demand.go index 27c14d6c..83f21b08 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_fleet.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_demand.go @@ -20,24 +20,21 @@ import ( "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" ) -// DeleteFleet invokes the ecs.DeleteFleet API synchronously -// api document: https://help.aliyun.com/api/ecs/deletefleet.html -func (client *Client) DeleteFleet(request *DeleteFleetRequest) (response *DeleteFleetResponse, err error) { - response = CreateDeleteFleetResponse() +// DeleteDemand invokes the ecs.DeleteDemand API synchronously +func (client *Client) DeleteDemand(request *DeleteDemandRequest) (response *DeleteDemandResponse, err error) { + response = CreateDeleteDemandResponse() err = client.DoAction(request, response) return } -// DeleteFleetWithChan invokes the ecs.DeleteFleet API asynchronously -// api document: https://help.aliyun.com/api/ecs/deletefleet.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html -func (client *Client) DeleteFleetWithChan(request *DeleteFleetRequest) (<-chan *DeleteFleetResponse, <-chan error) { - responseChan := make(chan *DeleteFleetResponse, 1) +// DeleteDemandWithChan invokes the ecs.DeleteDemand API asynchronously +func (client *Client) DeleteDemandWithChan(request *DeleteDemandRequest) (<-chan *DeleteDemandResponse, <-chan error) { + responseChan := make(chan *DeleteDemandResponse, 1) errChan := make(chan error, 1) err := client.AddAsyncTask(func() { defer close(responseChan) defer close(errChan) - response, err := client.DeleteFleet(request) + response, err := client.DeleteDemand(request) if err != nil { errChan <- err } else { @@ -52,16 +49,14 @@ func (client *Client) DeleteFleetWithChan(request *DeleteFleetRequest) (<-chan * return responseChan, errChan } -// DeleteFleetWithCallback invokes the ecs.DeleteFleet API asynchronously -// api document: https://help.aliyun.com/api/ecs/deletefleet.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html -func (client *Client) DeleteFleetWithCallback(request *DeleteFleetRequest, callback func(response *DeleteFleetResponse, err error)) <-chan int { +// DeleteDemandWithCallback invokes the ecs.DeleteDemand API asynchronously +func (client *Client) DeleteDemandWithCallback(request *DeleteDemandRequest, callback func(response *DeleteDemandResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { - var response *DeleteFleetResponse + var response *DeleteDemandResponse var err error defer close(result) - response, err = client.DeleteFleet(request) + response, err = client.DeleteDemand(request) callback(response, err) result <- 1 }) @@ -73,35 +68,37 @@ func (client *Client) DeleteFleetWithCallback(request *DeleteFleetRequest, callb return result } -// DeleteFleetRequest is the request struct for api DeleteFleet -type DeleteFleetRequest struct { +// DeleteDemandRequest is the request struct for api DeleteDemand +type DeleteDemandRequest struct { *requests.RpcRequest + Reason string `position:"Query" name:"Reason"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - TerminateInstances requests.Boolean `position:"Query" name:"TerminateInstances"` + ClientToken string `position:"Query" name:"ClientToken"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - FleetId string `position:"Query" name:"FleetId"` + DemandId string `position:"Query" name:"DemandId"` } -// DeleteFleetResponse is the response struct for api DeleteFleet -type DeleteFleetResponse struct { +// DeleteDemandResponse is the response struct for api DeleteDemand +type DeleteDemandResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` } -// CreateDeleteFleetRequest creates a request to invoke DeleteFleet API -func CreateDeleteFleetRequest() (request *DeleteFleetRequest) { - request = &DeleteFleetRequest{ +// CreateDeleteDemandRequest creates a request to invoke DeleteDemand API +func CreateDeleteDemandRequest() (request *DeleteDemandRequest) { + request = &DeleteDemandRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteFleet", "ecs", "openAPI") + request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteDemand", "ecs", "openAPI") + request.Method = requests.POST return } -// CreateDeleteFleetResponse creates a response to parse from DeleteFleet response -func CreateDeleteFleetResponse() (response *DeleteFleetResponse) { - response = &DeleteFleetResponse{ +// CreateDeleteDemandResponse creates a response to parse from DeleteDemand response +func CreateDeleteDemandResponse() (response *DeleteDemandResponse) { + response = &DeleteDemandResponse{ BaseResponse: &responses.BaseResponse{}, } return diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_deployment_set.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_deployment_set.go index 7cdfab37..97ab915f 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_deployment_set.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_deployment_set.go @@ -21,7 +21,6 @@ import ( ) // DeleteDeploymentSet invokes the ecs.DeleteDeploymentSet API synchronously -// api document: https://help.aliyun.com/api/ecs/deletedeploymentset.html func (client *Client) DeleteDeploymentSet(request *DeleteDeploymentSetRequest) (response *DeleteDeploymentSetResponse, err error) { response = CreateDeleteDeploymentSetResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DeleteDeploymentSet(request *DeleteDeploymentSetRequest) ( } // DeleteDeploymentSetWithChan invokes the ecs.DeleteDeploymentSet API asynchronously -// api document: https://help.aliyun.com/api/ecs/deletedeploymentset.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteDeploymentSetWithChan(request *DeleteDeploymentSetRequest) (<-chan *DeleteDeploymentSetResponse, <-chan error) { responseChan := make(chan *DeleteDeploymentSetResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DeleteDeploymentSetWithChan(request *DeleteDeploymentSetRe } // DeleteDeploymentSetWithCallback invokes the ecs.DeleteDeploymentSet API asynchronously -// api document: https://help.aliyun.com/api/ecs/deletedeploymentset.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteDeploymentSetWithCallback(request *DeleteDeploymentSetRequest, callback func(response *DeleteDeploymentSetResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,8 +71,8 @@ func (client *Client) DeleteDeploymentSetWithCallback(request *DeleteDeploymentS // DeleteDeploymentSetRequest is the request struct for api DeleteDeploymentSet type DeleteDeploymentSetRequest struct { *requests.RpcRequest - DeploymentSetId string `position:"Query" name:"DeploymentSetId"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DeploymentSetId string `position:"Query" name:"DeploymentSetId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` @@ -95,6 +90,7 @@ func CreateDeleteDeploymentSetRequest() (request *DeleteDeploymentSetRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteDeploymentSet", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_diagnostic_metric_sets.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_diagnostic_metric_sets.go new file mode 100644 index 00000000..933e4344 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_diagnostic_metric_sets.go @@ -0,0 +1,99 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteDiagnosticMetricSets invokes the ecs.DeleteDiagnosticMetricSets API synchronously +func (client *Client) DeleteDiagnosticMetricSets(request *DeleteDiagnosticMetricSetsRequest) (response *DeleteDiagnosticMetricSetsResponse, err error) { + response = CreateDeleteDiagnosticMetricSetsResponse() + err = client.DoAction(request, response) + return +} + +// DeleteDiagnosticMetricSetsWithChan invokes the ecs.DeleteDiagnosticMetricSets API asynchronously +func (client *Client) DeleteDiagnosticMetricSetsWithChan(request *DeleteDiagnosticMetricSetsRequest) (<-chan *DeleteDiagnosticMetricSetsResponse, <-chan error) { + responseChan := make(chan *DeleteDiagnosticMetricSetsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteDiagnosticMetricSets(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteDiagnosticMetricSetsWithCallback invokes the ecs.DeleteDiagnosticMetricSets API asynchronously +func (client *Client) DeleteDiagnosticMetricSetsWithCallback(request *DeleteDiagnosticMetricSetsRequest, callback func(response *DeleteDiagnosticMetricSetsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteDiagnosticMetricSetsResponse + var err error + defer close(result) + response, err = client.DeleteDiagnosticMetricSets(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteDiagnosticMetricSetsRequest is the request struct for api DeleteDiagnosticMetricSets +type DeleteDiagnosticMetricSetsRequest struct { + *requests.RpcRequest + MetricSetIds *[]string `position:"Query" name:"MetricSetIds" type:"Repeated"` +} + +// DeleteDiagnosticMetricSetsResponse is the response struct for api DeleteDiagnosticMetricSets +type DeleteDiagnosticMetricSetsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteDiagnosticMetricSetsRequest creates a request to invoke DeleteDiagnosticMetricSets API +func CreateDeleteDiagnosticMetricSetsRequest() (request *DeleteDiagnosticMetricSetsRequest) { + request = &DeleteDiagnosticMetricSetsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteDiagnosticMetricSets", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateDeleteDiagnosticMetricSetsResponse creates a response to parse from DeleteDiagnosticMetricSets response +func CreateDeleteDiagnosticMetricSetsResponse() (response *DeleteDiagnosticMetricSetsResponse) { + response = &DeleteDiagnosticMetricSetsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_diagnostic_reports.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_diagnostic_reports.go new file mode 100644 index 00000000..a82dede5 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_diagnostic_reports.go @@ -0,0 +1,99 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteDiagnosticReports invokes the ecs.DeleteDiagnosticReports API synchronously +func (client *Client) DeleteDiagnosticReports(request *DeleteDiagnosticReportsRequest) (response *DeleteDiagnosticReportsResponse, err error) { + response = CreateDeleteDiagnosticReportsResponse() + err = client.DoAction(request, response) + return +} + +// DeleteDiagnosticReportsWithChan invokes the ecs.DeleteDiagnosticReports API asynchronously +func (client *Client) DeleteDiagnosticReportsWithChan(request *DeleteDiagnosticReportsRequest) (<-chan *DeleteDiagnosticReportsResponse, <-chan error) { + responseChan := make(chan *DeleteDiagnosticReportsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteDiagnosticReports(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteDiagnosticReportsWithCallback invokes the ecs.DeleteDiagnosticReports API asynchronously +func (client *Client) DeleteDiagnosticReportsWithCallback(request *DeleteDiagnosticReportsRequest, callback func(response *DeleteDiagnosticReportsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteDiagnosticReportsResponse + var err error + defer close(result) + response, err = client.DeleteDiagnosticReports(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteDiagnosticReportsRequest is the request struct for api DeleteDiagnosticReports +type DeleteDiagnosticReportsRequest struct { + *requests.RpcRequest + ReportIds *[]string `position:"Query" name:"ReportIds" type:"Repeated"` +} + +// DeleteDiagnosticReportsResponse is the response struct for api DeleteDiagnosticReports +type DeleteDiagnosticReportsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteDiagnosticReportsRequest creates a request to invoke DeleteDiagnosticReports API +func CreateDeleteDiagnosticReportsRequest() (request *DeleteDiagnosticReportsRequest) { + request = &DeleteDiagnosticReportsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteDiagnosticReports", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateDeleteDiagnosticReportsResponse creates a response to parse from DeleteDiagnosticReports response +func CreateDeleteDiagnosticReportsResponse() (response *DeleteDiagnosticReportsResponse) { + response = &DeleteDiagnosticReportsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_disk.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_disk.go index 06e62e8f..c82b5945 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_disk.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_disk.go @@ -21,7 +21,6 @@ import ( ) // DeleteDisk invokes the ecs.DeleteDisk API synchronously -// api document: https://help.aliyun.com/api/ecs/deletedisk.html func (client *Client) DeleteDisk(request *DeleteDiskRequest) (response *DeleteDiskResponse, err error) { response = CreateDeleteDiskResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DeleteDisk(request *DeleteDiskRequest) (response *DeleteDi } // DeleteDiskWithChan invokes the ecs.DeleteDisk API asynchronously -// api document: https://help.aliyun.com/api/ecs/deletedisk.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteDiskWithChan(request *DeleteDiskRequest) (<-chan *DeleteDiskResponse, <-chan error) { responseChan := make(chan *DeleteDiskResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DeleteDiskWithChan(request *DeleteDiskRequest) (<-chan *De } // DeleteDiskWithCallback invokes the ecs.DeleteDisk API asynchronously -// api document: https://help.aliyun.com/api/ecs/deletedisk.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteDiskWithCallback(request *DeleteDiskRequest, callback func(response *DeleteDiskResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,9 +72,9 @@ func (client *Client) DeleteDiskWithCallback(request *DeleteDiskRequest, callbac type DeleteDiskRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DiskId string `position:"Query" name:"DiskId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - DiskId string `position:"Query" name:"DiskId"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` } @@ -95,6 +90,7 @@ func CreateDeleteDiskRequest() (request *DeleteDiskRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteDisk", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_forward_entry.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_forward_entry.go index 6d6a2705..9c884c83 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_forward_entry.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_forward_entry.go @@ -21,7 +21,6 @@ import ( ) // DeleteForwardEntry invokes the ecs.DeleteForwardEntry API synchronously -// api document: https://help.aliyun.com/api/ecs/deleteforwardentry.html func (client *Client) DeleteForwardEntry(request *DeleteForwardEntryRequest) (response *DeleteForwardEntryResponse, err error) { response = CreateDeleteForwardEntryResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DeleteForwardEntry(request *DeleteForwardEntryRequest) (re } // DeleteForwardEntryWithChan invokes the ecs.DeleteForwardEntry API asynchronously -// api document: https://help.aliyun.com/api/ecs/deleteforwardentry.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteForwardEntryWithChan(request *DeleteForwardEntryRequest) (<-chan *DeleteForwardEntryResponse, <-chan error) { responseChan := make(chan *DeleteForwardEntryResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DeleteForwardEntryWithChan(request *DeleteForwardEntryRequ } // DeleteForwardEntryWithCallback invokes the ecs.DeleteForwardEntry API asynchronously -// api document: https://help.aliyun.com/api/ecs/deleteforwardentry.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteForwardEntryWithCallback(request *DeleteForwardEntryRequest, callback func(response *DeleteForwardEntryResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,10 +72,10 @@ func (client *Client) DeleteForwardEntryWithCallback(request *DeleteForwardEntry type DeleteForwardEntryRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ForwardTableId string `position:"Query" name:"ForwardTableId"` ForwardEntryId string `position:"Query" name:"ForwardEntryId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - ForwardTableId string `position:"Query" name:"ForwardTableId"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` } @@ -96,6 +91,7 @@ func CreateDeleteForwardEntryRequest() (request *DeleteForwardEntryRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteForwardEntry", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_ha_vip.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_ha_vip.go index e09fcb86..1c3c77b8 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_ha_vip.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_ha_vip.go @@ -21,7 +21,6 @@ import ( ) // DeleteHaVip invokes the ecs.DeleteHaVip API synchronously -// api document: https://help.aliyun.com/api/ecs/deletehavip.html func (client *Client) DeleteHaVip(request *DeleteHaVipRequest) (response *DeleteHaVipResponse, err error) { response = CreateDeleteHaVipResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DeleteHaVip(request *DeleteHaVipRequest) (response *Delete } // DeleteHaVipWithChan invokes the ecs.DeleteHaVip API asynchronously -// api document: https://help.aliyun.com/api/ecs/deletehavip.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteHaVipWithChan(request *DeleteHaVipRequest) (<-chan *DeleteHaVipResponse, <-chan error) { responseChan := make(chan *DeleteHaVipResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DeleteHaVipWithChan(request *DeleteHaVipRequest) (<-chan * } // DeleteHaVipWithCallback invokes the ecs.DeleteHaVip API asynchronously -// api document: https://help.aliyun.com/api/ecs/deletehavip.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteHaVipWithCallback(request *DeleteHaVipRequest, callback func(response *DeleteHaVipResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,10 +71,10 @@ func (client *Client) DeleteHaVipWithCallback(request *DeleteHaVipRequest, callb // DeleteHaVipRequest is the request struct for api DeleteHaVip type DeleteHaVipRequest struct { *requests.RpcRequest - HaVipId string `position:"Query" name:"HaVipId"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` ClientToken string `position:"Query" name:"ClientToken"` + HaVipId string `position:"Query" name:"HaVipId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` } @@ -96,6 +91,7 @@ func CreateDeleteHaVipRequest() (request *DeleteHaVipRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteHaVip", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_hpc_cluster.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_hpc_cluster.go index 50394a5d..1557121e 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_hpc_cluster.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_hpc_cluster.go @@ -21,7 +21,6 @@ import ( ) // DeleteHpcCluster invokes the ecs.DeleteHpcCluster API synchronously -// api document: https://help.aliyun.com/api/ecs/deletehpccluster.html func (client *Client) DeleteHpcCluster(request *DeleteHpcClusterRequest) (response *DeleteHpcClusterResponse, err error) { response = CreateDeleteHpcClusterResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DeleteHpcCluster(request *DeleteHpcClusterRequest) (respon } // DeleteHpcClusterWithChan invokes the ecs.DeleteHpcCluster API asynchronously -// api document: https://help.aliyun.com/api/ecs/deletehpccluster.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteHpcClusterWithChan(request *DeleteHpcClusterRequest) (<-chan *DeleteHpcClusterResponse, <-chan error) { responseChan := make(chan *DeleteHpcClusterResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DeleteHpcClusterWithChan(request *DeleteHpcClusterRequest) } // DeleteHpcClusterWithCallback invokes the ecs.DeleteHpcCluster API asynchronously -// api document: https://help.aliyun.com/api/ecs/deletehpccluster.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteHpcClusterWithCallback(request *DeleteHpcClusterRequest, callback func(response *DeleteHpcClusterResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -96,6 +91,7 @@ func CreateDeleteHpcClusterRequest() (request *DeleteHpcClusterRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteHpcCluster", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_image.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_image.go index 37196a59..31bfebd1 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_image.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_image.go @@ -21,7 +21,6 @@ import ( ) // DeleteImage invokes the ecs.DeleteImage API synchronously -// api document: https://help.aliyun.com/api/ecs/deleteimage.html func (client *Client) DeleteImage(request *DeleteImageRequest) (response *DeleteImageResponse, err error) { response = CreateDeleteImageResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DeleteImage(request *DeleteImageRequest) (response *Delete } // DeleteImageWithChan invokes the ecs.DeleteImage API asynchronously -// api document: https://help.aliyun.com/api/ecs/deleteimage.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteImageWithChan(request *DeleteImageRequest) (<-chan *DeleteImageResponse, <-chan error) { responseChan := make(chan *DeleteImageResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DeleteImageWithChan(request *DeleteImageRequest) (<-chan * } // DeleteImageWithCallback invokes the ecs.DeleteImage API asynchronously -// api document: https://help.aliyun.com/api/ecs/deleteimage.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteImageWithCallback(request *DeleteImageRequest, callback func(response *DeleteImageResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -80,8 +75,8 @@ type DeleteImageRequest struct { ImageId string `position:"Query" name:"ImageId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - Force requests.Boolean `position:"Query" name:"Force"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Force requests.Boolean `position:"Query" name:"Force"` } // DeleteImageResponse is the response struct for api DeleteImage @@ -96,6 +91,7 @@ func CreateDeleteImageRequest() (request *DeleteImageRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteImage", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_image_component.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_image_component.go new file mode 100644 index 00000000..a8bceafd --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_image_component.go @@ -0,0 +1,103 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteImageComponent invokes the ecs.DeleteImageComponent API synchronously +func (client *Client) DeleteImageComponent(request *DeleteImageComponentRequest) (response *DeleteImageComponentResponse, err error) { + response = CreateDeleteImageComponentResponse() + err = client.DoAction(request, response) + return +} + +// DeleteImageComponentWithChan invokes the ecs.DeleteImageComponent API asynchronously +func (client *Client) DeleteImageComponentWithChan(request *DeleteImageComponentRequest) (<-chan *DeleteImageComponentResponse, <-chan error) { + responseChan := make(chan *DeleteImageComponentResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteImageComponent(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteImageComponentWithCallback invokes the ecs.DeleteImageComponent API asynchronously +func (client *Client) DeleteImageComponentWithCallback(request *DeleteImageComponentRequest, callback func(response *DeleteImageComponentResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteImageComponentResponse + var err error + defer close(result) + response, err = client.DeleteImageComponent(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteImageComponentRequest is the request struct for api DeleteImageComponent +type DeleteImageComponentRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ImageComponentId string `position:"Query" name:"ImageComponentId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteImageComponentResponse is the response struct for api DeleteImageComponent +type DeleteImageComponentResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteImageComponentRequest creates a request to invoke DeleteImageComponent API +func CreateDeleteImageComponentRequest() (request *DeleteImageComponentRequest) { + request = &DeleteImageComponentRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteImageComponent", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateDeleteImageComponentResponse creates a response to parse from DeleteImageComponent response +func CreateDeleteImageComponentResponse() (response *DeleteImageComponentResponse) { + response = &DeleteImageComponentResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_image_pipeline.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_image_pipeline.go new file mode 100644 index 00000000..f41f02f9 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_image_pipeline.go @@ -0,0 +1,103 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteImagePipeline invokes the ecs.DeleteImagePipeline API synchronously +func (client *Client) DeleteImagePipeline(request *DeleteImagePipelineRequest) (response *DeleteImagePipelineResponse, err error) { + response = CreateDeleteImagePipelineResponse() + err = client.DoAction(request, response) + return +} + +// DeleteImagePipelineWithChan invokes the ecs.DeleteImagePipeline API asynchronously +func (client *Client) DeleteImagePipelineWithChan(request *DeleteImagePipelineRequest) (<-chan *DeleteImagePipelineResponse, <-chan error) { + responseChan := make(chan *DeleteImagePipelineResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteImagePipeline(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteImagePipelineWithCallback invokes the ecs.DeleteImagePipeline API asynchronously +func (client *Client) DeleteImagePipelineWithCallback(request *DeleteImagePipelineRequest, callback func(response *DeleteImagePipelineResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteImagePipelineResponse + var err error + defer close(result) + response, err = client.DeleteImagePipeline(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteImagePipelineRequest is the request struct for api DeleteImagePipeline +type DeleteImagePipelineRequest struct { + *requests.RpcRequest + ImagePipelineId string `position:"Query" name:"ImagePipelineId"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteImagePipelineResponse is the response struct for api DeleteImagePipeline +type DeleteImagePipelineResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteImagePipelineRequest creates a request to invoke DeleteImagePipeline API +func CreateDeleteImagePipelineRequest() (request *DeleteImagePipelineRequest) { + request = &DeleteImagePipelineRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteImagePipeline", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateDeleteImagePipelineResponse creates a response to parse from DeleteImagePipeline response +func CreateDeleteImagePipelineResponse() (response *DeleteImagePipelineResponse) { + response = &DeleteImagePipelineResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_instance.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_instance.go index c761400c..fa277ecd 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_instance.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_instance.go @@ -21,7 +21,6 @@ import ( ) // DeleteInstance invokes the ecs.DeleteInstance API synchronously -// api document: https://help.aliyun.com/api/ecs/deleteinstance.html func (client *Client) DeleteInstance(request *DeleteInstanceRequest) (response *DeleteInstanceResponse, err error) { response = CreateDeleteInstanceResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DeleteInstance(request *DeleteInstanceRequest) (response * } // DeleteInstanceWithChan invokes the ecs.DeleteInstance API asynchronously -// api document: https://help.aliyun.com/api/ecs/deleteinstance.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteInstanceWithChan(request *DeleteInstanceRequest) (<-chan *DeleteInstanceResponse, <-chan error) { responseChan := make(chan *DeleteInstanceResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DeleteInstanceWithChan(request *DeleteInstanceRequest) (<- } // DeleteInstanceWithCallback invokes the ecs.DeleteInstance API asynchronously -// api document: https://help.aliyun.com/api/ecs/deleteinstance.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteInstanceWithCallback(request *DeleteInstanceRequest, callback func(response *DeleteInstanceResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,12 +72,13 @@ func (client *Client) DeleteInstanceWithCallback(request *DeleteInstanceRequest, type DeleteInstanceRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` + TerminateSubscription requests.Boolean `position:"Query" name:"TerminateSubscription"` + DryRun requests.Boolean `position:"Query" name:"DryRun"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - TerminateSubscription requests.Boolean `position:"Query" name:"TerminateSubscription"` - Force requests.Boolean `position:"Query" name:"Force"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + Force requests.Boolean `position:"Query" name:"Force"` } // DeleteInstanceResponse is the response struct for api DeleteInstance @@ -97,6 +93,7 @@ func CreateDeleteInstanceRequest() (request *DeleteInstanceRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteInstance", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_instances.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_instances.go index da542065..2cab3253 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_instances.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_instances.go @@ -21,7 +21,6 @@ import ( ) // DeleteInstances invokes the ecs.DeleteInstances API synchronously -// api document: https://help.aliyun.com/api/ecs/deleteinstances.html func (client *Client) DeleteInstances(request *DeleteInstancesRequest) (response *DeleteInstancesResponse, err error) { response = CreateDeleteInstancesResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DeleteInstances(request *DeleteInstancesRequest) (response } // DeleteInstancesWithChan invokes the ecs.DeleteInstances API asynchronously -// api document: https://help.aliyun.com/api/ecs/deleteinstances.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteInstancesWithChan(request *DeleteInstancesRequest) (<-chan *DeleteInstancesResponse, <-chan error) { responseChan := make(chan *DeleteInstancesResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DeleteInstancesWithChan(request *DeleteInstancesRequest) ( } // DeleteInstancesWithCallback invokes the ecs.DeleteInstances API asynchronously -// api document: https://help.aliyun.com/api/ecs/deleteinstances.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteInstancesWithCallback(request *DeleteInstancesRequest, callback func(response *DeleteInstancesResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,14 +72,14 @@ func (client *Client) DeleteInstancesWithCallback(request *DeleteInstancesReques type DeleteInstancesRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - InstanceId *[]string `position:"Query" name:"InstanceId" type:"Repeated"` + ClientToken string `position:"Query" name:"ClientToken"` + TerminateSubscription requests.Boolean `position:"Query" name:"TerminateSubscription"` DryRun requests.Boolean `position:"Query" name:"DryRun"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - ClientToken string `position:"Query" name:"ClientToken"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - TerminateSubscription requests.Boolean `position:"Query" name:"TerminateSubscription"` - Force requests.Boolean `position:"Query" name:"Force"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId *[]string `position:"Query" name:"InstanceId" type:"Repeated"` + Force requests.Boolean `position:"Query" name:"Force"` } // DeleteInstancesResponse is the response struct for api DeleteInstances @@ -99,6 +94,7 @@ func CreateDeleteInstancesRequest() (request *DeleteInstancesRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteInstances", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_key_pairs.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_key_pairs.go index 114de0d6..4a947127 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_key_pairs.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_key_pairs.go @@ -21,7 +21,6 @@ import ( ) // DeleteKeyPairs invokes the ecs.DeleteKeyPairs API synchronously -// api document: https://help.aliyun.com/api/ecs/deletekeypairs.html func (client *Client) DeleteKeyPairs(request *DeleteKeyPairsRequest) (response *DeleteKeyPairsResponse, err error) { response = CreateDeleteKeyPairsResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DeleteKeyPairs(request *DeleteKeyPairsRequest) (response * } // DeleteKeyPairsWithChan invokes the ecs.DeleteKeyPairs API asynchronously -// api document: https://help.aliyun.com/api/ecs/deletekeypairs.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteKeyPairsWithChan(request *DeleteKeyPairsRequest) (<-chan *DeleteKeyPairsResponse, <-chan error) { responseChan := make(chan *DeleteKeyPairsResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DeleteKeyPairsWithChan(request *DeleteKeyPairsRequest) (<- } // DeleteKeyPairsWithCallback invokes the ecs.DeleteKeyPairs API asynchronously -// api document: https://help.aliyun.com/api/ecs/deletekeypairs.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteKeyPairsWithCallback(request *DeleteKeyPairsRequest, callback func(response *DeleteKeyPairsResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,8 +72,8 @@ func (client *Client) DeleteKeyPairsWithCallback(request *DeleteKeyPairsRequest, type DeleteKeyPairsRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` KeyPairNames string `position:"Query" name:"KeyPairNames"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` } @@ -94,6 +89,7 @@ func CreateDeleteKeyPairsRequest() (request *DeleteKeyPairsRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteKeyPairs", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_launch_template.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_launch_template.go index 8e18188b..069fd5fd 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_launch_template.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_launch_template.go @@ -21,7 +21,6 @@ import ( ) // DeleteLaunchTemplate invokes the ecs.DeleteLaunchTemplate API synchronously -// api document: https://help.aliyun.com/api/ecs/deletelaunchtemplate.html func (client *Client) DeleteLaunchTemplate(request *DeleteLaunchTemplateRequest) (response *DeleteLaunchTemplateResponse, err error) { response = CreateDeleteLaunchTemplateResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DeleteLaunchTemplate(request *DeleteLaunchTemplateRequest) } // DeleteLaunchTemplateWithChan invokes the ecs.DeleteLaunchTemplate API asynchronously -// api document: https://help.aliyun.com/api/ecs/deletelaunchtemplate.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteLaunchTemplateWithChan(request *DeleteLaunchTemplateRequest) (<-chan *DeleteLaunchTemplateResponse, <-chan error) { responseChan := make(chan *DeleteLaunchTemplateResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DeleteLaunchTemplateWithChan(request *DeleteLaunchTemplate } // DeleteLaunchTemplateWithCallback invokes the ecs.DeleteLaunchTemplate API asynchronously -// api document: https://help.aliyun.com/api/ecs/deletelaunchtemplate.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteLaunchTemplateWithCallback(request *DeleteLaunchTemplateRequest, callback func(response *DeleteLaunchTemplateResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -87,7 +82,9 @@ type DeleteLaunchTemplateRequest struct { // DeleteLaunchTemplateResponse is the response struct for api DeleteLaunchTemplate type DeleteLaunchTemplateResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` + RequestId string `json:"RequestId" xml:"RequestId"` + LaunchTemplateId string `json:"LaunchTemplateId" xml:"LaunchTemplateId"` + LaunchTemplateVersionNumbers LaunchTemplateVersionNumbers `json:"LaunchTemplateVersionNumbers" xml:"LaunchTemplateVersionNumbers"` } // CreateDeleteLaunchTemplateRequest creates a request to invoke DeleteLaunchTemplate API @@ -96,6 +93,7 @@ func CreateDeleteLaunchTemplateRequest() (request *DeleteLaunchTemplateRequest) RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteLaunchTemplate", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_launch_template_version.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_launch_template_version.go index 546f6c15..9f34b52e 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_launch_template_version.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_launch_template_version.go @@ -21,7 +21,6 @@ import ( ) // DeleteLaunchTemplateVersion invokes the ecs.DeleteLaunchTemplateVersion API synchronously -// api document: https://help.aliyun.com/api/ecs/deletelaunchtemplateversion.html func (client *Client) DeleteLaunchTemplateVersion(request *DeleteLaunchTemplateVersionRequest) (response *DeleteLaunchTemplateVersionResponse, err error) { response = CreateDeleteLaunchTemplateVersionResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DeleteLaunchTemplateVersion(request *DeleteLaunchTemplateV } // DeleteLaunchTemplateVersionWithChan invokes the ecs.DeleteLaunchTemplateVersion API asynchronously -// api document: https://help.aliyun.com/api/ecs/deletelaunchtemplateversion.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteLaunchTemplateVersionWithChan(request *DeleteLaunchTemplateVersionRequest) (<-chan *DeleteLaunchTemplateVersionResponse, <-chan error) { responseChan := make(chan *DeleteLaunchTemplateVersionResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DeleteLaunchTemplateVersionWithChan(request *DeleteLaunchT } // DeleteLaunchTemplateVersionWithCallback invokes the ecs.DeleteLaunchTemplateVersion API asynchronously -// api document: https://help.aliyun.com/api/ecs/deletelaunchtemplateversion.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteLaunchTemplateVersionWithCallback(request *DeleteLaunchTemplateVersionRequest, callback func(response *DeleteLaunchTemplateVersionResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -88,7 +83,8 @@ type DeleteLaunchTemplateVersionRequest struct { // DeleteLaunchTemplateVersionResponse is the response struct for api DeleteLaunchTemplateVersion type DeleteLaunchTemplateVersionResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` + RequestId string `json:"RequestId" xml:"RequestId"` + LaunchTemplateVersions LaunchTemplateVersions `json:"LaunchTemplateVersions" xml:"LaunchTemplateVersions"` } // CreateDeleteLaunchTemplateVersionRequest creates a request to invoke DeleteLaunchTemplateVersion API @@ -97,6 +93,7 @@ func CreateDeleteLaunchTemplateVersionRequest() (request *DeleteLaunchTemplateVe RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteLaunchTemplateVersion", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_nat_gateway.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_nat_gateway.go index c468c85c..ece106ff 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_nat_gateway.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_nat_gateway.go @@ -21,7 +21,6 @@ import ( ) // DeleteNatGateway invokes the ecs.DeleteNatGateway API synchronously -// api document: https://help.aliyun.com/api/ecs/deletenatgateway.html func (client *Client) DeleteNatGateway(request *DeleteNatGatewayRequest) (response *DeleteNatGatewayResponse, err error) { response = CreateDeleteNatGatewayResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DeleteNatGateway(request *DeleteNatGatewayRequest) (respon } // DeleteNatGatewayWithChan invokes the ecs.DeleteNatGateway API asynchronously -// api document: https://help.aliyun.com/api/ecs/deletenatgateway.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteNatGatewayWithChan(request *DeleteNatGatewayRequest) (<-chan *DeleteNatGatewayResponse, <-chan error) { responseChan := make(chan *DeleteNatGatewayResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DeleteNatGatewayWithChan(request *DeleteNatGatewayRequest) } // DeleteNatGatewayWithCallback invokes the ecs.DeleteNatGateway API asynchronously -// api document: https://help.aliyun.com/api/ecs/deletenatgateway.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteNatGatewayWithCallback(request *DeleteNatGatewayRequest, callback func(response *DeleteNatGatewayResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,9 +72,9 @@ func (client *Client) DeleteNatGatewayWithCallback(request *DeleteNatGatewayRequ type DeleteNatGatewayRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + NatGatewayId string `position:"Query" name:"NatGatewayId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - NatGatewayId string `position:"Query" name:"NatGatewayId"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` } @@ -95,6 +90,7 @@ func CreateDeleteNatGatewayRequest() (request *DeleteNatGatewayRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteNatGateway", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_network_interface.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_network_interface.go index 2649458e..c8e0c778 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_network_interface.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_network_interface.go @@ -21,7 +21,6 @@ import ( ) // DeleteNetworkInterface invokes the ecs.DeleteNetworkInterface API synchronously -// api document: https://help.aliyun.com/api/ecs/deletenetworkinterface.html func (client *Client) DeleteNetworkInterface(request *DeleteNetworkInterfaceRequest) (response *DeleteNetworkInterfaceResponse, err error) { response = CreateDeleteNetworkInterfaceResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DeleteNetworkInterface(request *DeleteNetworkInterfaceRequ } // DeleteNetworkInterfaceWithChan invokes the ecs.DeleteNetworkInterface API asynchronously -// api document: https://help.aliyun.com/api/ecs/deletenetworkinterface.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteNetworkInterfaceWithChan(request *DeleteNetworkInterfaceRequest) (<-chan *DeleteNetworkInterfaceResponse, <-chan error) { responseChan := make(chan *DeleteNetworkInterfaceResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DeleteNetworkInterfaceWithChan(request *DeleteNetworkInter } // DeleteNetworkInterfaceWithCallback invokes the ecs.DeleteNetworkInterface API asynchronously -// api document: https://help.aliyun.com/api/ecs/deletenetworkinterface.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteNetworkInterfaceWithCallback(request *DeleteNetworkInterfaceRequest, callback func(response *DeleteNetworkInterfaceResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -95,6 +90,7 @@ func CreateDeleteNetworkInterfaceRequest() (request *DeleteNetworkInterfaceReque RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteNetworkInterface", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_network_interface_permission.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_network_interface_permission.go index eaf566d6..1871ba64 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_network_interface_permission.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_network_interface_permission.go @@ -21,7 +21,6 @@ import ( ) // DeleteNetworkInterfacePermission invokes the ecs.DeleteNetworkInterfacePermission API synchronously -// api document: https://help.aliyun.com/api/ecs/deletenetworkinterfacepermission.html func (client *Client) DeleteNetworkInterfacePermission(request *DeleteNetworkInterfacePermissionRequest) (response *DeleteNetworkInterfacePermissionResponse, err error) { response = CreateDeleteNetworkInterfacePermissionResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DeleteNetworkInterfacePermission(request *DeleteNetworkInt } // DeleteNetworkInterfacePermissionWithChan invokes the ecs.DeleteNetworkInterfacePermission API asynchronously -// api document: https://help.aliyun.com/api/ecs/deletenetworkinterfacepermission.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteNetworkInterfacePermissionWithChan(request *DeleteNetworkInterfacePermissionRequest) (<-chan *DeleteNetworkInterfacePermissionResponse, <-chan error) { responseChan := make(chan *DeleteNetworkInterfacePermissionResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DeleteNetworkInterfacePermissionWithChan(request *DeleteNe } // DeleteNetworkInterfacePermissionWithCallback invokes the ecs.DeleteNetworkInterfacePermission API asynchronously -// api document: https://help.aliyun.com/api/ecs/deletenetworkinterfacepermission.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteNetworkInterfacePermissionWithCallback(request *DeleteNetworkInterfacePermissionRequest, callback func(response *DeleteNetworkInterfacePermissionResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -96,6 +91,7 @@ func CreateDeleteNetworkInterfacePermissionRequest() (request *DeleteNetworkInte RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteNetworkInterfacePermission", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_physical_connection.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_physical_connection.go index 82de412a..08fa285b 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_physical_connection.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_physical_connection.go @@ -21,7 +21,6 @@ import ( ) // DeletePhysicalConnection invokes the ecs.DeletePhysicalConnection API synchronously -// api document: https://help.aliyun.com/api/ecs/deletephysicalconnection.html func (client *Client) DeletePhysicalConnection(request *DeletePhysicalConnectionRequest) (response *DeletePhysicalConnectionResponse, err error) { response = CreateDeletePhysicalConnectionResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DeletePhysicalConnection(request *DeletePhysicalConnection } // DeletePhysicalConnectionWithChan invokes the ecs.DeletePhysicalConnection API asynchronously -// api document: https://help.aliyun.com/api/ecs/deletephysicalconnection.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeletePhysicalConnectionWithChan(request *DeletePhysicalConnectionRequest) (<-chan *DeletePhysicalConnectionResponse, <-chan error) { responseChan := make(chan *DeletePhysicalConnectionResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DeletePhysicalConnectionWithChan(request *DeletePhysicalCo } // DeletePhysicalConnectionWithCallback invokes the ecs.DeletePhysicalConnection API asynchronously -// api document: https://help.aliyun.com/api/ecs/deletephysicalconnection.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeletePhysicalConnectionWithCallback(request *DeletePhysicalConnectionRequest, callback func(response *DeletePhysicalConnectionResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,11 +72,11 @@ func (client *Client) DeletePhysicalConnectionWithCallback(request *DeletePhysic type DeletePhysicalConnectionRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` ClientToken string `position:"Query" name:"ClientToken"` - PhysicalConnectionId string `position:"Query" name:"PhysicalConnectionId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PhysicalConnectionId string `position:"Query" name:"PhysicalConnectionId"` } // DeletePhysicalConnectionResponse is the response struct for api DeletePhysicalConnection @@ -96,6 +91,7 @@ func CreateDeletePhysicalConnectionRequest() (request *DeletePhysicalConnectionR RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DeletePhysicalConnection", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_prefix_list.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_prefix_list.go new file mode 100644 index 00000000..58183e00 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_prefix_list.go @@ -0,0 +1,103 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeletePrefixList invokes the ecs.DeletePrefixList API synchronously +func (client *Client) DeletePrefixList(request *DeletePrefixListRequest) (response *DeletePrefixListResponse, err error) { + response = CreateDeletePrefixListResponse() + err = client.DoAction(request, response) + return +} + +// DeletePrefixListWithChan invokes the ecs.DeletePrefixList API asynchronously +func (client *Client) DeletePrefixListWithChan(request *DeletePrefixListRequest) (<-chan *DeletePrefixListResponse, <-chan error) { + responseChan := make(chan *DeletePrefixListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeletePrefixList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeletePrefixListWithCallback invokes the ecs.DeletePrefixList API asynchronously +func (client *Client) DeletePrefixListWithCallback(request *DeletePrefixListRequest, callback func(response *DeletePrefixListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeletePrefixListResponse + var err error + defer close(result) + response, err = client.DeletePrefixList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeletePrefixListRequest is the request struct for api DeletePrefixList +type DeletePrefixListRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PrefixListId string `position:"Query" name:"PrefixListId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeletePrefixListResponse is the response struct for api DeletePrefixList +type DeletePrefixListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeletePrefixListRequest creates a request to invoke DeletePrefixList API +func CreateDeletePrefixListRequest() (request *DeletePrefixListRequest) { + request = &DeletePrefixListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DeletePrefixList", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateDeletePrefixListResponse creates a response to parse from DeletePrefixList response +func CreateDeletePrefixListResponse() (response *DeletePrefixListResponse) { + response = &DeletePrefixListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_route_entry.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_route_entry.go index a12f258a..22da43f0 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_route_entry.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_route_entry.go @@ -21,7 +21,6 @@ import ( ) // DeleteRouteEntry invokes the ecs.DeleteRouteEntry API synchronously -// api document: https://help.aliyun.com/api/ecs/deleterouteentry.html func (client *Client) DeleteRouteEntry(request *DeleteRouteEntryRequest) (response *DeleteRouteEntryResponse, err error) { response = CreateDeleteRouteEntryResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DeleteRouteEntry(request *DeleteRouteEntryRequest) (respon } // DeleteRouteEntryWithChan invokes the ecs.DeleteRouteEntry API asynchronously -// api document: https://help.aliyun.com/api/ecs/deleterouteentry.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteRouteEntryWithChan(request *DeleteRouteEntryRequest) (<-chan *DeleteRouteEntryResponse, <-chan error) { responseChan := make(chan *DeleteRouteEntryResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DeleteRouteEntryWithChan(request *DeleteRouteEntryRequest) } // DeleteRouteEntryWithCallback invokes the ecs.DeleteRouteEntry API asynchronously -// api document: https://help.aliyun.com/api/ecs/deleterouteentry.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteRouteEntryWithCallback(request *DeleteRouteEntryRequest, callback func(response *DeleteRouteEntryResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,13 +72,13 @@ func (client *Client) DeleteRouteEntryWithCallback(request *DeleteRouteEntryRequ type DeleteRouteEntryRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + NextHopId string `position:"Query" name:"NextHopId"` + RouteTableId string `position:"Query" name:"RouteTableId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` DestinationCidrBlock string `position:"Query" name:"DestinationCidrBlock"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - NextHopId string `position:"Query" name:"NextHopId"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` NextHopList *[]DeleteRouteEntryNextHopList `position:"Query" name:"NextHopList" type:"Repeated"` - RouteTableId string `position:"Query" name:"RouteTableId"` } // DeleteRouteEntryNextHopList is a repeated param struct in DeleteRouteEntryRequest @@ -104,6 +99,7 @@ func CreateDeleteRouteEntryRequest() (request *DeleteRouteEntryRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteRouteEntry", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_router_interface.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_router_interface.go index d889de59..c4c2e37d 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_router_interface.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_router_interface.go @@ -21,7 +21,6 @@ import ( ) // DeleteRouterInterface invokes the ecs.DeleteRouterInterface API synchronously -// api document: https://help.aliyun.com/api/ecs/deleterouterinterface.html func (client *Client) DeleteRouterInterface(request *DeleteRouterInterfaceRequest) (response *DeleteRouterInterfaceResponse, err error) { response = CreateDeleteRouterInterfaceResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DeleteRouterInterface(request *DeleteRouterInterfaceReques } // DeleteRouterInterfaceWithChan invokes the ecs.DeleteRouterInterface API asynchronously -// api document: https://help.aliyun.com/api/ecs/deleterouterinterface.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteRouterInterfaceWithChan(request *DeleteRouterInterfaceRequest) (<-chan *DeleteRouterInterfaceResponse, <-chan error) { responseChan := make(chan *DeleteRouterInterfaceResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DeleteRouterInterfaceWithChan(request *DeleteRouterInterfa } // DeleteRouterInterfaceWithCallback invokes the ecs.DeleteRouterInterface API asynchronously -// api document: https://help.aliyun.com/api/ecs/deleterouterinterface.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteRouterInterfaceWithCallback(request *DeleteRouterInterfaceRequest, callback func(response *DeleteRouterInterfaceResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,10 +72,10 @@ func (client *Client) DeleteRouterInterfaceWithCallback(request *DeleteRouterInt type DeleteRouterInterfaceRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` ClientToken string `position:"Query" name:"ClientToken"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` UserCidr string `position:"Query" name:"UserCidr"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` RouterInterfaceId string `position:"Query" name:"RouterInterfaceId"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` } @@ -97,6 +92,7 @@ func CreateDeleteRouterInterfaceRequest() (request *DeleteRouterInterfaceRequest RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteRouterInterface", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_security_group.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_security_group.go index cea9e973..d221188b 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_security_group.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_security_group.go @@ -21,7 +21,6 @@ import ( ) // DeleteSecurityGroup invokes the ecs.DeleteSecurityGroup API synchronously -// api document: https://help.aliyun.com/api/ecs/deletesecuritygroup.html func (client *Client) DeleteSecurityGroup(request *DeleteSecurityGroupRequest) (response *DeleteSecurityGroupResponse, err error) { response = CreateDeleteSecurityGroupResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DeleteSecurityGroup(request *DeleteSecurityGroupRequest) ( } // DeleteSecurityGroupWithChan invokes the ecs.DeleteSecurityGroup API asynchronously -// api document: https://help.aliyun.com/api/ecs/deletesecuritygroup.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteSecurityGroupWithChan(request *DeleteSecurityGroupRequest) (<-chan *DeleteSecurityGroupResponse, <-chan error) { responseChan := make(chan *DeleteSecurityGroupResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DeleteSecurityGroupWithChan(request *DeleteSecurityGroupRe } // DeleteSecurityGroupWithCallback invokes the ecs.DeleteSecurityGroup API asynchronously -// api document: https://help.aliyun.com/api/ecs/deletesecuritygroup.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteSecurityGroupWithCallback(request *DeleteSecurityGroupRequest, callback func(response *DeleteSecurityGroupResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,9 +72,9 @@ func (client *Client) DeleteSecurityGroupWithCallback(request *DeleteSecurityGro type DeleteSecurityGroupRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SecurityGroupId string `position:"Query" name:"SecurityGroupId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - SecurityGroupId string `position:"Query" name:"SecurityGroupId"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` } @@ -95,6 +90,7 @@ func CreateDeleteSecurityGroupRequest() (request *DeleteSecurityGroupRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteSecurityGroup", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_snapshot.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_snapshot.go index 54dd0c26..22e73b2d 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_snapshot.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_snapshot.go @@ -21,7 +21,6 @@ import ( ) // DeleteSnapshot invokes the ecs.DeleteSnapshot API synchronously -// api document: https://help.aliyun.com/api/ecs/deletesnapshot.html func (client *Client) DeleteSnapshot(request *DeleteSnapshotRequest) (response *DeleteSnapshotResponse, err error) { response = CreateDeleteSnapshotResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DeleteSnapshot(request *DeleteSnapshotRequest) (response * } // DeleteSnapshotWithChan invokes the ecs.DeleteSnapshot API asynchronously -// api document: https://help.aliyun.com/api/ecs/deletesnapshot.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteSnapshotWithChan(request *DeleteSnapshotRequest) (<-chan *DeleteSnapshotResponse, <-chan error) { responseChan := make(chan *DeleteSnapshotResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DeleteSnapshotWithChan(request *DeleteSnapshotRequest) (<- } // DeleteSnapshotWithCallback invokes the ecs.DeleteSnapshot API asynchronously -// api document: https://help.aliyun.com/api/ecs/deletesnapshot.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteSnapshotWithCallback(request *DeleteSnapshotRequest, callback func(response *DeleteSnapshotResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -80,8 +75,8 @@ type DeleteSnapshotRequest struct { SnapshotId string `position:"Query" name:"SnapshotId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - Force requests.Boolean `position:"Query" name:"Force"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Force requests.Boolean `position:"Query" name:"Force"` } // DeleteSnapshotResponse is the response struct for api DeleteSnapshot @@ -96,6 +91,7 @@ func CreateDeleteSnapshotRequest() (request *DeleteSnapshotRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteSnapshot", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_snapshot_group.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_snapshot_group.go new file mode 100644 index 00000000..6edbec5f --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_snapshot_group.go @@ -0,0 +1,104 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteSnapshotGroup invokes the ecs.DeleteSnapshotGroup API synchronously +func (client *Client) DeleteSnapshotGroup(request *DeleteSnapshotGroupRequest) (response *DeleteSnapshotGroupResponse, err error) { + response = CreateDeleteSnapshotGroupResponse() + err = client.DoAction(request, response) + return +} + +// DeleteSnapshotGroupWithChan invokes the ecs.DeleteSnapshotGroup API asynchronously +func (client *Client) DeleteSnapshotGroupWithChan(request *DeleteSnapshotGroupRequest) (<-chan *DeleteSnapshotGroupResponse, <-chan error) { + responseChan := make(chan *DeleteSnapshotGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteSnapshotGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteSnapshotGroupWithCallback invokes the ecs.DeleteSnapshotGroup API asynchronously +func (client *Client) DeleteSnapshotGroupWithCallback(request *DeleteSnapshotGroupRequest, callback func(response *DeleteSnapshotGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteSnapshotGroupResponse + var err error + defer close(result) + response, err = client.DeleteSnapshotGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteSnapshotGroupRequest is the request struct for api DeleteSnapshotGroup +type DeleteSnapshotGroupRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + SnapshotGroupId string `position:"Query" name:"SnapshotGroupId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteSnapshotGroupResponse is the response struct for api DeleteSnapshotGroup +type DeleteSnapshotGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + OperationProgressSet OperationProgressSetInDeleteSnapshotGroup `json:"OperationProgressSet" xml:"OperationProgressSet"` +} + +// CreateDeleteSnapshotGroupRequest creates a request to invoke DeleteSnapshotGroup API +func CreateDeleteSnapshotGroupRequest() (request *DeleteSnapshotGroupRequest) { + request = &DeleteSnapshotGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteSnapshotGroup", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateDeleteSnapshotGroupResponse creates a response to parse from DeleteSnapshotGroup response +func CreateDeleteSnapshotGroupResponse() (response *DeleteSnapshotGroupResponse) { + response = &DeleteSnapshotGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_storage_set.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_storage_set.go index da4c6627..6aade58e 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_storage_set.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_storage_set.go @@ -21,7 +21,6 @@ import ( ) // DeleteStorageSet invokes the ecs.DeleteStorageSet API synchronously -// api document: https://help.aliyun.com/api/ecs/deletestorageset.html func (client *Client) DeleteStorageSet(request *DeleteStorageSetRequest) (response *DeleteStorageSetResponse, err error) { response = CreateDeleteStorageSetResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DeleteStorageSet(request *DeleteStorageSetRequest) (respon } // DeleteStorageSetWithChan invokes the ecs.DeleteStorageSet API asynchronously -// api document: https://help.aliyun.com/api/ecs/deletestorageset.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteStorageSetWithChan(request *DeleteStorageSetRequest) (<-chan *DeleteStorageSetResponse, <-chan error) { responseChan := make(chan *DeleteStorageSetResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DeleteStorageSetWithChan(request *DeleteStorageSetRequest) } // DeleteStorageSetWithCallback invokes the ecs.DeleteStorageSet API asynchronously -// api document: https://help.aliyun.com/api/ecs/deletestorageset.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteStorageSetWithCallback(request *DeleteStorageSetRequest, callback func(response *DeleteStorageSetResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -96,6 +91,7 @@ func CreateDeleteStorageSetRequest() (request *DeleteStorageSetRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteStorageSet", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_v_switch.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_v_switch.go index e59305e3..b42449f4 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_v_switch.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_v_switch.go @@ -21,7 +21,6 @@ import ( ) // DeleteVSwitch invokes the ecs.DeleteVSwitch API synchronously -// api document: https://help.aliyun.com/api/ecs/deletevswitch.html func (client *Client) DeleteVSwitch(request *DeleteVSwitchRequest) (response *DeleteVSwitchResponse, err error) { response = CreateDeleteVSwitchResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DeleteVSwitch(request *DeleteVSwitchRequest) (response *De } // DeleteVSwitchWithChan invokes the ecs.DeleteVSwitch API asynchronously -// api document: https://help.aliyun.com/api/ecs/deletevswitch.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteVSwitchWithChan(request *DeleteVSwitchRequest) (<-chan *DeleteVSwitchResponse, <-chan error) { responseChan := make(chan *DeleteVSwitchResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DeleteVSwitchWithChan(request *DeleteVSwitchRequest) (<-ch } // DeleteVSwitchWithCallback invokes the ecs.DeleteVSwitch API asynchronously -// api document: https://help.aliyun.com/api/ecs/deletevswitch.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteVSwitchWithCallback(request *DeleteVSwitchRequest, callback func(response *DeleteVSwitchResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,11 +71,11 @@ func (client *Client) DeleteVSwitchWithCallback(request *DeleteVSwitchRequest, c // DeleteVSwitchRequest is the request struct for api DeleteVSwitch type DeleteVSwitchRequest struct { *requests.RpcRequest - VSwitchId string `position:"Query" name:"VSwitchId"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + VSwitchId string `position:"Query" name:"VSwitchId"` } // DeleteVSwitchResponse is the response struct for api DeleteVSwitch @@ -95,6 +90,7 @@ func CreateDeleteVSwitchRequest() (request *DeleteVSwitchRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteVSwitch", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_virtual_border_router.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_virtual_border_router.go index eba1b78c..1aad8600 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_virtual_border_router.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_virtual_border_router.go @@ -21,7 +21,6 @@ import ( ) // DeleteVirtualBorderRouter invokes the ecs.DeleteVirtualBorderRouter API synchronously -// api document: https://help.aliyun.com/api/ecs/deletevirtualborderrouter.html func (client *Client) DeleteVirtualBorderRouter(request *DeleteVirtualBorderRouterRequest) (response *DeleteVirtualBorderRouterResponse, err error) { response = CreateDeleteVirtualBorderRouterResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DeleteVirtualBorderRouter(request *DeleteVirtualBorderRout } // DeleteVirtualBorderRouterWithChan invokes the ecs.DeleteVirtualBorderRouter API asynchronously -// api document: https://help.aliyun.com/api/ecs/deletevirtualborderrouter.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteVirtualBorderRouterWithChan(request *DeleteVirtualBorderRouterRequest) (<-chan *DeleteVirtualBorderRouterResponse, <-chan error) { responseChan := make(chan *DeleteVirtualBorderRouterResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DeleteVirtualBorderRouterWithChan(request *DeleteVirtualBo } // DeleteVirtualBorderRouterWithCallback invokes the ecs.DeleteVirtualBorderRouter API asynchronously -// api document: https://help.aliyun.com/api/ecs/deletevirtualborderrouter.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteVirtualBorderRouterWithCallback(request *DeleteVirtualBorderRouterRequest, callback func(response *DeleteVirtualBorderRouterResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,11 +72,11 @@ func (client *Client) DeleteVirtualBorderRouterWithCallback(request *DeleteVirtu type DeleteVirtualBorderRouterRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` ClientToken string `position:"Query" name:"ClientToken"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - UserCidr string `position:"Query" name:"UserCidr"` VbrId string `position:"Query" name:"VbrId"` + UserCidr string `position:"Query" name:"UserCidr"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` } @@ -97,6 +92,7 @@ func CreateDeleteVirtualBorderRouterRequest() (request *DeleteVirtualBorderRoute RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteVirtualBorderRouter", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_vpc.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_vpc.go index 15378684..78b39ec7 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_vpc.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/delete_vpc.go @@ -21,7 +21,6 @@ import ( ) // DeleteVpc invokes the ecs.DeleteVpc API synchronously -// api document: https://help.aliyun.com/api/ecs/deletevpc.html func (client *Client) DeleteVpc(request *DeleteVpcRequest) (response *DeleteVpcResponse, err error) { response = CreateDeleteVpcResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DeleteVpc(request *DeleteVpcRequest) (response *DeleteVpcR } // DeleteVpcWithChan invokes the ecs.DeleteVpc API asynchronously -// api document: https://help.aliyun.com/api/ecs/deletevpc.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteVpcWithChan(request *DeleteVpcRequest) (<-chan *DeleteVpcResponse, <-chan error) { responseChan := make(chan *DeleteVpcResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DeleteVpcWithChan(request *DeleteVpcRequest) (<-chan *Dele } // DeleteVpcWithCallback invokes the ecs.DeleteVpc API asynchronously -// api document: https://help.aliyun.com/api/ecs/deletevpc.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteVpcWithCallback(request *DeleteVpcRequest, callback func(response *DeleteVpcResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -78,9 +73,9 @@ type DeleteVpcRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - VpcId string `position:"Query" name:"VpcId"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + VpcId string `position:"Query" name:"VpcId"` } // DeleteVpcResponse is the response struct for api DeleteVpc @@ -95,6 +90,7 @@ func CreateDeleteVpcRequest() (request *DeleteVpcRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteVpc", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/deregister_managed_instance.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/deregister_managed_instance.go new file mode 100644 index 00000000..6f384e1d --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/deregister_managed_instance.go @@ -0,0 +1,104 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeregisterManagedInstance invokes the ecs.DeregisterManagedInstance API synchronously +func (client *Client) DeregisterManagedInstance(request *DeregisterManagedInstanceRequest) (response *DeregisterManagedInstanceResponse, err error) { + response = CreateDeregisterManagedInstanceResponse() + err = client.DoAction(request, response) + return +} + +// DeregisterManagedInstanceWithChan invokes the ecs.DeregisterManagedInstance API asynchronously +func (client *Client) DeregisterManagedInstanceWithChan(request *DeregisterManagedInstanceRequest) (<-chan *DeregisterManagedInstanceResponse, <-chan error) { + responseChan := make(chan *DeregisterManagedInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeregisterManagedInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeregisterManagedInstanceWithCallback invokes the ecs.DeregisterManagedInstance API asynchronously +func (client *Client) DeregisterManagedInstanceWithCallback(request *DeregisterManagedInstanceRequest, callback func(response *DeregisterManagedInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeregisterManagedInstanceResponse + var err error + defer close(result) + response, err = client.DeregisterManagedInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeregisterManagedInstanceRequest is the request struct for api DeregisterManagedInstance +type DeregisterManagedInstanceRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` +} + +// DeregisterManagedInstanceResponse is the response struct for api DeregisterManagedInstance +type DeregisterManagedInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Instance Instance `json:"Instance" xml:"Instance"` +} + +// CreateDeregisterManagedInstanceRequest creates a request to invoke DeregisterManagedInstance API +func CreateDeregisterManagedInstanceRequest() (request *DeregisterManagedInstanceRequest) { + request = &DeregisterManagedInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DeregisterManagedInstance", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateDeregisterManagedInstanceResponse creates a response to parse from DeregisterManagedInstance response +func CreateDeregisterManagedInstanceResponse() (response *DeregisterManagedInstanceResponse) { + response = &DeregisterManagedInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_access_points.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_access_points.go index 35480d3c..fe8105d9 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_access_points.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_access_points.go @@ -21,7 +21,6 @@ import ( ) // DescribeAccessPoints invokes the ecs.DescribeAccessPoints API synchronously -// api document: https://help.aliyun.com/api/ecs/describeaccesspoints.html func (client *Client) DescribeAccessPoints(request *DescribeAccessPointsRequest) (response *DescribeAccessPointsResponse, err error) { response = CreateDescribeAccessPointsResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeAccessPoints(request *DescribeAccessPointsRequest) } // DescribeAccessPointsWithChan invokes the ecs.DescribeAccessPoints API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeaccesspoints.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeAccessPointsWithChan(request *DescribeAccessPointsRequest) (<-chan *DescribeAccessPointsResponse, <-chan error) { responseChan := make(chan *DescribeAccessPointsResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeAccessPointsWithChan(request *DescribeAccessPoints } // DescribeAccessPointsWithCallback invokes the ecs.DescribeAccessPoints API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeaccesspoints.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeAccessPointsWithCallback(request *DescribeAccessPointsRequest, callback func(response *DescribeAccessPointsResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,13 +71,13 @@ func (client *Client) DescribeAccessPointsWithCallback(request *DescribeAccessPo // DescribeAccessPointsRequest is the request struct for api DescribeAccessPoints type DescribeAccessPointsRequest struct { *requests.RpcRequest - Filter *[]DescribeAccessPointsFilter `position:"Query" name:"Filter" type:"Repeated"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` Type string `position:"Query" name:"Type"` PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Filter *[]DescribeAccessPointsFilter `position:"Query" name:"Filter" type:"Repeated"` } // DescribeAccessPointsFilter is a repeated param struct in DescribeAccessPointsRequest @@ -107,6 +102,7 @@ func CreateDescribeAccessPointsRequest() (request *DescribeAccessPointsRequest) RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeAccessPoints", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_account_attributes.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_account_attributes.go index 0a7fa8c7..82df2ea5 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_account_attributes.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_account_attributes.go @@ -21,7 +21,6 @@ import ( ) // DescribeAccountAttributes invokes the ecs.DescribeAccountAttributes API synchronously -// api document: https://help.aliyun.com/api/ecs/describeaccountattributes.html func (client *Client) DescribeAccountAttributes(request *DescribeAccountAttributesRequest) (response *DescribeAccountAttributesResponse, err error) { response = CreateDescribeAccountAttributesResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeAccountAttributes(request *DescribeAccountAttribut } // DescribeAccountAttributesWithChan invokes the ecs.DescribeAccountAttributes API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeaccountattributes.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeAccountAttributesWithChan(request *DescribeAccountAttributesRequest) (<-chan *DescribeAccountAttributesResponse, <-chan error) { responseChan := make(chan *DescribeAccountAttributesResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeAccountAttributesWithChan(request *DescribeAccount } // DescribeAccountAttributesWithCallback invokes the ecs.DescribeAccountAttributes API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeaccountattributes.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeAccountAttributesWithCallback(request *DescribeAccountAttributesRequest, callback func(response *DescribeAccountAttributesResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -96,6 +91,7 @@ func CreateDescribeAccountAttributesRequest() (request *DescribeAccountAttribute RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeAccountAttributes", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_activations.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_activations.go new file mode 100644 index 00000000..b9ce694a --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_activations.go @@ -0,0 +1,121 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeActivations invokes the ecs.DescribeActivations API synchronously +func (client *Client) DescribeActivations(request *DescribeActivationsRequest) (response *DescribeActivationsResponse, err error) { + response = CreateDescribeActivationsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeActivationsWithChan invokes the ecs.DescribeActivations API asynchronously +func (client *Client) DescribeActivationsWithChan(request *DescribeActivationsRequest) (<-chan *DescribeActivationsResponse, <-chan error) { + responseChan := make(chan *DescribeActivationsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeActivations(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeActivationsWithCallback invokes the ecs.DescribeActivations API asynchronously +func (client *Client) DescribeActivationsWithCallback(request *DescribeActivationsRequest, callback func(response *DescribeActivationsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeActivationsResponse + var err error + defer close(result) + response, err = client.DescribeActivations(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeActivationsRequest is the request struct for api DescribeActivations +type DescribeActivationsRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + NextToken string `position:"Query" name:"NextToken"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Tag *[]DescribeActivationsTag `position:"Query" name:"Tag" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceName string `position:"Query" name:"InstanceName"` + MaxResults requests.Integer `position:"Query" name:"MaxResults"` + ActivationId string `position:"Query" name:"ActivationId"` +} + +// DescribeActivationsTag is a repeated param struct in DescribeActivationsRequest +type DescribeActivationsTag struct { + Key string `name:"Key"` + Value string `name:"Value"` +} + +// DescribeActivationsResponse is the response struct for api DescribeActivations +type DescribeActivationsResponse struct { + *responses.BaseResponse + PageSize int64 `json:"PageSize" xml:"PageSize"` + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int64 `json:"PageNumber" xml:"PageNumber"` + TotalCount int64 `json:"TotalCount" xml:"TotalCount"` + NextToken string `json:"NextToken" xml:"NextToken"` + ActivationList []Activation `json:"ActivationList" xml:"ActivationList"` +} + +// CreateDescribeActivationsRequest creates a request to invoke DescribeActivations API +func CreateDescribeActivationsRequest() (request *DescribeActivationsRequest) { + request = &DescribeActivationsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeActivations", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeActivationsResponse creates a response to parse from DescribeActivations response +func CreateDescribeActivationsResponse() (response *DescribeActivationsResponse) { + response = &DescribeActivationsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_auto_provisioning_group_history.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_auto_provisioning_group_history.go index 5ff60297..1105ee54 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_auto_provisioning_group_history.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_auto_provisioning_group_history.go @@ -21,7 +21,6 @@ import ( ) // DescribeAutoProvisioningGroupHistory invokes the ecs.DescribeAutoProvisioningGroupHistory API synchronously -// api document: https://help.aliyun.com/api/ecs/describeautoprovisioninggrouphistory.html func (client *Client) DescribeAutoProvisioningGroupHistory(request *DescribeAutoProvisioningGroupHistoryRequest) (response *DescribeAutoProvisioningGroupHistoryResponse, err error) { response = CreateDescribeAutoProvisioningGroupHistoryResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeAutoProvisioningGroupHistory(request *DescribeAuto } // DescribeAutoProvisioningGroupHistoryWithChan invokes the ecs.DescribeAutoProvisioningGroupHistory API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeautoprovisioninggrouphistory.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeAutoProvisioningGroupHistoryWithChan(request *DescribeAutoProvisioningGroupHistoryRequest) (<-chan *DescribeAutoProvisioningGroupHistoryResponse, <-chan error) { responseChan := make(chan *DescribeAutoProvisioningGroupHistoryResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeAutoProvisioningGroupHistoryWithChan(request *Desc } // DescribeAutoProvisioningGroupHistoryWithCallback invokes the ecs.DescribeAutoProvisioningGroupHistory API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeautoprovisioninggrouphistory.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeAutoProvisioningGroupHistoryWithCallback(request *DescribeAutoProvisioningGroupHistoryRequest, callback func(response *DescribeAutoProvisioningGroupHistoryResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -90,10 +85,10 @@ type DescribeAutoProvisioningGroupHistoryRequest struct { // DescribeAutoProvisioningGroupHistoryResponse is the response struct for api DescribeAutoProvisioningGroupHistory type DescribeAutoProvisioningGroupHistoryResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` AutoProvisioningGroupHistories AutoProvisioningGroupHistories `json:"AutoProvisioningGroupHistories" xml:"AutoProvisioningGroupHistories"` } @@ -103,6 +98,7 @@ func CreateDescribeAutoProvisioningGroupHistoryRequest() (request *DescribeAutoP RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeAutoProvisioningGroupHistory", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_auto_provisioning_group_instances.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_auto_provisioning_group_instances.go index a869942d..c18076a6 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_auto_provisioning_group_instances.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_auto_provisioning_group_instances.go @@ -21,7 +21,6 @@ import ( ) // DescribeAutoProvisioningGroupInstances invokes the ecs.DescribeAutoProvisioningGroupInstances API synchronously -// api document: https://help.aliyun.com/api/ecs/describeautoprovisioninggroupinstances.html func (client *Client) DescribeAutoProvisioningGroupInstances(request *DescribeAutoProvisioningGroupInstancesRequest) (response *DescribeAutoProvisioningGroupInstancesResponse, err error) { response = CreateDescribeAutoProvisioningGroupInstancesResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeAutoProvisioningGroupInstances(request *DescribeAu } // DescribeAutoProvisioningGroupInstancesWithChan invokes the ecs.DescribeAutoProvisioningGroupInstances API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeautoprovisioninggroupinstances.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeAutoProvisioningGroupInstancesWithChan(request *DescribeAutoProvisioningGroupInstancesRequest) (<-chan *DescribeAutoProvisioningGroupInstancesResponse, <-chan error) { responseChan := make(chan *DescribeAutoProvisioningGroupInstancesResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeAutoProvisioningGroupInstancesWithChan(request *De } // DescribeAutoProvisioningGroupInstancesWithCallback invokes the ecs.DescribeAutoProvisioningGroupInstances API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeautoprovisioninggroupinstances.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeAutoProvisioningGroupInstancesWithCallback(request *DescribeAutoProvisioningGroupInstancesRequest, callback func(response *DescribeAutoProvisioningGroupInstancesResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -88,10 +83,10 @@ type DescribeAutoProvisioningGroupInstancesRequest struct { // DescribeAutoProvisioningGroupInstancesResponse is the response struct for api DescribeAutoProvisioningGroupInstances type DescribeAutoProvisioningGroupInstancesResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` Instances InstancesInDescribeAutoProvisioningGroupInstances `json:"Instances" xml:"Instances"` } @@ -101,6 +96,7 @@ func CreateDescribeAutoProvisioningGroupInstancesRequest() (request *DescribeAut RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeAutoProvisioningGroupInstances", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_auto_provisioning_groups.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_auto_provisioning_groups.go index 33f52c69..57a98840 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_auto_provisioning_groups.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_auto_provisioning_groups.go @@ -21,7 +21,6 @@ import ( ) // DescribeAutoProvisioningGroups invokes the ecs.DescribeAutoProvisioningGroups API synchronously -// api document: https://help.aliyun.com/api/ecs/describeautoprovisioninggroups.html func (client *Client) DescribeAutoProvisioningGroups(request *DescribeAutoProvisioningGroupsRequest) (response *DescribeAutoProvisioningGroupsResponse, err error) { response = CreateDescribeAutoProvisioningGroupsResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeAutoProvisioningGroups(request *DescribeAutoProvis } // DescribeAutoProvisioningGroupsWithChan invokes the ecs.DescribeAutoProvisioningGroups API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeautoprovisioninggroups.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeAutoProvisioningGroupsWithChan(request *DescribeAutoProvisioningGroupsRequest) (<-chan *DescribeAutoProvisioningGroupsResponse, <-chan error) { responseChan := make(chan *DescribeAutoProvisioningGroupsResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeAutoProvisioningGroupsWithChan(request *DescribeAu } // DescribeAutoProvisioningGroupsWithCallback invokes the ecs.DescribeAutoProvisioningGroups API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeautoprovisioninggroups.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeAutoProvisioningGroupsWithCallback(request *DescribeAutoProvisioningGroupsRequest, callback func(response *DescribeAutoProvisioningGroupsResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -78,6 +73,7 @@ type DescribeAutoProvisioningGroupsRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` PageNumber requests.Integer `position:"Query" name:"PageNumber"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` PageSize requests.Integer `position:"Query" name:"PageSize"` AutoProvisioningGroupStatus *[]string `position:"Query" name:"AutoProvisioningGroupStatus" type:"Repeated"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` @@ -90,10 +86,10 @@ type DescribeAutoProvisioningGroupsRequest struct { // DescribeAutoProvisioningGroupsResponse is the response struct for api DescribeAutoProvisioningGroups type DescribeAutoProvisioningGroupsResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` AutoProvisioningGroups AutoProvisioningGroups `json:"AutoProvisioningGroups" xml:"AutoProvisioningGroups"` } @@ -103,6 +99,7 @@ func CreateDescribeAutoProvisioningGroupsRequest() (request *DescribeAutoProvisi RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeAutoProvisioningGroups", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_auto_snapshot_policy_ex.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_auto_snapshot_policy_ex.go index fd1d652a..993561ec 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_auto_snapshot_policy_ex.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_auto_snapshot_policy_ex.go @@ -21,7 +21,6 @@ import ( ) // DescribeAutoSnapshotPolicyEx invokes the ecs.DescribeAutoSnapshotPolicyEx API synchronously -// api document: https://help.aliyun.com/api/ecs/describeautosnapshotpolicyex.html func (client *Client) DescribeAutoSnapshotPolicyEx(request *DescribeAutoSnapshotPolicyExRequest) (response *DescribeAutoSnapshotPolicyExResponse, err error) { response = CreateDescribeAutoSnapshotPolicyExResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeAutoSnapshotPolicyEx(request *DescribeAutoSnapshot } // DescribeAutoSnapshotPolicyExWithChan invokes the ecs.DescribeAutoSnapshotPolicyEx API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeautosnapshotpolicyex.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeAutoSnapshotPolicyExWithChan(request *DescribeAutoSnapshotPolicyExRequest) (<-chan *DescribeAutoSnapshotPolicyExResponse, <-chan error) { responseChan := make(chan *DescribeAutoSnapshotPolicyExResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeAutoSnapshotPolicyExWithChan(request *DescribeAuto } // DescribeAutoSnapshotPolicyExWithCallback invokes the ecs.DescribeAutoSnapshotPolicyEx API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeautosnapshotpolicyex.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeAutoSnapshotPolicyExWithCallback(request *DescribeAutoSnapshotPolicyExRequest, callback func(response *DescribeAutoSnapshotPolicyExResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,22 +71,31 @@ func (client *Client) DescribeAutoSnapshotPolicyExWithCallback(request *Describe // DescribeAutoSnapshotPolicyExRequest is the request struct for api DescribeAutoSnapshotPolicyEx type DescribeAutoSnapshotPolicyExRequest struct { *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - AutoSnapshotPolicyId string `position:"Query" name:"AutoSnapshotPolicyId"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + AutoSnapshotPolicyId string `position:"Query" name:"AutoSnapshotPolicyId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Tag *[]DescribeAutoSnapshotPolicyExTag `position:"Query" name:"Tag" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + AutoSnapshotPolicyName string `position:"Query" name:"AutoSnapshotPolicyName"` +} + +// DescribeAutoSnapshotPolicyExTag is a repeated param struct in DescribeAutoSnapshotPolicyExRequest +type DescribeAutoSnapshotPolicyExTag struct { + Value string `name:"Value"` + Key string `name:"Key"` } // DescribeAutoSnapshotPolicyExResponse is the response struct for api DescribeAutoSnapshotPolicyEx type DescribeAutoSnapshotPolicyExResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` AutoSnapshotPolicies AutoSnapshotPolicies `json:"AutoSnapshotPolicies" xml:"AutoSnapshotPolicies"` } @@ -101,6 +105,7 @@ func CreateDescribeAutoSnapshotPolicyExRequest() (request *DescribeAutoSnapshotP RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeAutoSnapshotPolicyEx", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_available_resource.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_available_resource.go index 8a99f38d..93129c37 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_available_resource.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_available_resource.go @@ -21,7 +21,6 @@ import ( ) // DescribeAvailableResource invokes the ecs.DescribeAvailableResource API synchronously -// api document: https://help.aliyun.com/api/ecs/describeavailableresource.html func (client *Client) DescribeAvailableResource(request *DescribeAvailableResourceRequest) (response *DescribeAvailableResourceResponse, err error) { response = CreateDescribeAvailableResourceResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeAvailableResource(request *DescribeAvailableResour } // DescribeAvailableResourceWithChan invokes the ecs.DescribeAvailableResource API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeavailableresource.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeAvailableResourceWithChan(request *DescribeAvailableResourceRequest) (<-chan *DescribeAvailableResourceResponse, <-chan error) { responseChan := make(chan *DescribeAvailableResourceResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeAvailableResourceWithChan(request *DescribeAvailab } // DescribeAvailableResourceWithCallback invokes the ecs.DescribeAvailableResource API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeavailableresource.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeAvailableResourceWithCallback(request *DescribeAvailableResourceRequest, callback func(response *DescribeAvailableResourceResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -90,6 +85,7 @@ type DescribeAvailableResourceRequest struct { OwnerAccount string `position:"Query" name:"OwnerAccount"` DedicatedHostId string `position:"Query" name:"DedicatedHostId"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + SpotDuration requests.Integer `position:"Query" name:"SpotDuration"` ResourceType string `position:"Query" name:"ResourceType"` SpotStrategy string `position:"Query" name:"SpotStrategy"` DestinationResource string `position:"Query" name:"DestinationResource"` @@ -109,6 +105,7 @@ func CreateDescribeAvailableResourceRequest() (request *DescribeAvailableResourc RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeAvailableResource", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_bandwidth_limitation.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_bandwidth_limitation.go index 4fc98a4f..db1b0314 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_bandwidth_limitation.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_bandwidth_limitation.go @@ -21,7 +21,6 @@ import ( ) // DescribeBandwidthLimitation invokes the ecs.DescribeBandwidthLimitation API synchronously -// api document: https://help.aliyun.com/api/ecs/describebandwidthlimitation.html func (client *Client) DescribeBandwidthLimitation(request *DescribeBandwidthLimitationRequest) (response *DescribeBandwidthLimitationResponse, err error) { response = CreateDescribeBandwidthLimitationResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeBandwidthLimitation(request *DescribeBandwidthLimi } // DescribeBandwidthLimitationWithChan invokes the ecs.DescribeBandwidthLimitation API asynchronously -// api document: https://help.aliyun.com/api/ecs/describebandwidthlimitation.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeBandwidthLimitationWithChan(request *DescribeBandwidthLimitationRequest) (<-chan *DescribeBandwidthLimitationResponse, <-chan error) { responseChan := make(chan *DescribeBandwidthLimitationResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeBandwidthLimitationWithChan(request *DescribeBandw } // DescribeBandwidthLimitationWithCallback invokes the ecs.DescribeBandwidthLimitation API asynchronously -// api document: https://help.aliyun.com/api/ecs/describebandwidthlimitation.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeBandwidthLimitationWithCallback(request *DescribeBandwidthLimitationRequest, callback func(response *DescribeBandwidthLimitationResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -100,6 +95,7 @@ func CreateDescribeBandwidthLimitationRequest() (request *DescribeBandwidthLimit RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeBandwidthLimitation", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_bandwidth_packages.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_bandwidth_packages.go index b42218d5..eed9328f 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_bandwidth_packages.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_bandwidth_packages.go @@ -21,7 +21,6 @@ import ( ) // DescribeBandwidthPackages invokes the ecs.DescribeBandwidthPackages API synchronously -// api document: https://help.aliyun.com/api/ecs/describebandwidthpackages.html func (client *Client) DescribeBandwidthPackages(request *DescribeBandwidthPackagesRequest) (response *DescribeBandwidthPackagesResponse, err error) { response = CreateDescribeBandwidthPackagesResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeBandwidthPackages(request *DescribeBandwidthPackag } // DescribeBandwidthPackagesWithChan invokes the ecs.DescribeBandwidthPackages API asynchronously -// api document: https://help.aliyun.com/api/ecs/describebandwidthpackages.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeBandwidthPackagesWithChan(request *DescribeBandwidthPackagesRequest) (<-chan *DescribeBandwidthPackagesResponse, <-chan error) { responseChan := make(chan *DescribeBandwidthPackagesResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeBandwidthPackagesWithChan(request *DescribeBandwid } // DescribeBandwidthPackagesWithCallback invokes the ecs.DescribeBandwidthPackages API asynchronously -// api document: https://help.aliyun.com/api/ecs/describebandwidthpackages.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeBandwidthPackagesWithCallback(request *DescribeBandwidthPackagesRequest, callback func(response *DescribeBandwidthPackagesResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,22 +72,22 @@ func (client *Client) DescribeBandwidthPackagesWithCallback(request *DescribeBan type DescribeBandwidthPackagesRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + NatGatewayId string `position:"Query" name:"NatGatewayId"` BandwidthPackageId string `position:"Query" name:"BandwidthPackageId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - NatGatewayId string `position:"Query" name:"NatGatewayId"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` } // DescribeBandwidthPackagesResponse is the response struct for api DescribeBandwidthPackages type DescribeBandwidthPackagesResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` BandwidthPackages BandwidthPackages `json:"BandwidthPackages" xml:"BandwidthPackages"` } @@ -102,6 +97,7 @@ func CreateDescribeBandwidthPackagesRequest() (request *DescribeBandwidthPackage RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeBandwidthPackages", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_capacity_reservation_instances.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_capacity_reservation_instances.go new file mode 100644 index 00000000..bd9f814b --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_capacity_reservation_instances.go @@ -0,0 +1,110 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeCapacityReservationInstances invokes the ecs.DescribeCapacityReservationInstances API synchronously +func (client *Client) DescribeCapacityReservationInstances(request *DescribeCapacityReservationInstancesRequest) (response *DescribeCapacityReservationInstancesResponse, err error) { + response = CreateDescribeCapacityReservationInstancesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeCapacityReservationInstancesWithChan invokes the ecs.DescribeCapacityReservationInstances API asynchronously +func (client *Client) DescribeCapacityReservationInstancesWithChan(request *DescribeCapacityReservationInstancesRequest) (<-chan *DescribeCapacityReservationInstancesResponse, <-chan error) { + responseChan := make(chan *DescribeCapacityReservationInstancesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeCapacityReservationInstances(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeCapacityReservationInstancesWithCallback invokes the ecs.DescribeCapacityReservationInstances API asynchronously +func (client *Client) DescribeCapacityReservationInstancesWithCallback(request *DescribeCapacityReservationInstancesRequest, callback func(response *DescribeCapacityReservationInstancesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeCapacityReservationInstancesResponse + var err error + defer close(result) + response, err = client.DescribeCapacityReservationInstances(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeCapacityReservationInstancesRequest is the request struct for api DescribeCapacityReservationInstances +type DescribeCapacityReservationInstancesRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + NextToken string `position:"Query" name:"NextToken"` + PrivatePoolOptionsId string `position:"Query" name:"PrivatePoolOptions.Id"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + MaxResults requests.Integer `position:"Query" name:"MaxResults"` + PackageType string `position:"Query" name:"PackageType"` +} + +// DescribeCapacityReservationInstancesResponse is the response struct for api DescribeCapacityReservationInstances +type DescribeCapacityReservationInstancesResponse struct { + *responses.BaseResponse + NextToken string `json:"NextToken" xml:"NextToken"` + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + MaxResults int `json:"MaxResults" xml:"MaxResults"` + CapacityReservationItem CapacityReservationItemInDescribeCapacityReservationInstances `json:"CapacityReservationItem" xml:"CapacityReservationItem"` +} + +// CreateDescribeCapacityReservationInstancesRequest creates a request to invoke DescribeCapacityReservationInstances API +func CreateDescribeCapacityReservationInstancesRequest() (request *DescribeCapacityReservationInstancesRequest) { + request = &DescribeCapacityReservationInstancesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeCapacityReservationInstances", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeCapacityReservationInstancesResponse creates a response to parse from DescribeCapacityReservationInstances response +func CreateDescribeCapacityReservationInstancesResponse() (response *DescribeCapacityReservationInstancesResponse) { + response = &DescribeCapacityReservationInstancesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_capacity_reservations.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_capacity_reservations.go new file mode 100644 index 00000000..28085812 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_capacity_reservations.go @@ -0,0 +1,123 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeCapacityReservations invokes the ecs.DescribeCapacityReservations API synchronously +func (client *Client) DescribeCapacityReservations(request *DescribeCapacityReservationsRequest) (response *DescribeCapacityReservationsResponse, err error) { + response = CreateDescribeCapacityReservationsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeCapacityReservationsWithChan invokes the ecs.DescribeCapacityReservations API asynchronously +func (client *Client) DescribeCapacityReservationsWithChan(request *DescribeCapacityReservationsRequest) (<-chan *DescribeCapacityReservationsResponse, <-chan error) { + responseChan := make(chan *DescribeCapacityReservationsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeCapacityReservations(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeCapacityReservationsWithCallback invokes the ecs.DescribeCapacityReservations API asynchronously +func (client *Client) DescribeCapacityReservationsWithCallback(request *DescribeCapacityReservationsRequest, callback func(response *DescribeCapacityReservationsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeCapacityReservationsResponse + var err error + defer close(result) + response, err = client.DescribeCapacityReservations(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeCapacityReservationsRequest is the request struct for api DescribeCapacityReservations +type DescribeCapacityReservationsRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Platform string `position:"Query" name:"Platform"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + NextToken string `position:"Query" name:"NextToken"` + InstanceType string `position:"Query" name:"InstanceType"` + Tag *[]DescribeCapacityReservationsTag `position:"Query" name:"Tag" type:"Repeated"` + InstanceChargeType string `position:"Query" name:"InstanceChargeType"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PrivatePoolOptionsIds string `position:"Query" name:"PrivatePoolOptions.Ids"` + MaxResults requests.Integer `position:"Query" name:"MaxResults"` + ZoneId string `position:"Query" name:"ZoneId"` + PackageType string `position:"Query" name:"PackageType"` + Status string `position:"Query" name:"Status"` +} + +// DescribeCapacityReservationsTag is a repeated param struct in DescribeCapacityReservationsRequest +type DescribeCapacityReservationsTag struct { + Key string `name:"Key"` + Value string `name:"Value"` +} + +// DescribeCapacityReservationsResponse is the response struct for api DescribeCapacityReservations +type DescribeCapacityReservationsResponse struct { + *responses.BaseResponse + NextToken string `json:"NextToken" xml:"NextToken"` + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + MaxResults int `json:"MaxResults" xml:"MaxResults"` + CapacityReservationSet CapacityReservationSet `json:"CapacityReservationSet" xml:"CapacityReservationSet"` +} + +// CreateDescribeCapacityReservationsRequest creates a request to invoke DescribeCapacityReservations API +func CreateDescribeCapacityReservationsRequest() (request *DescribeCapacityReservationsRequest) { + request = &DescribeCapacityReservationsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeCapacityReservations", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeCapacityReservationsResponse creates a response to parse from DescribeCapacityReservations response +func CreateDescribeCapacityReservationsResponse() (response *DescribeCapacityReservationsResponse) { + response = &DescribeCapacityReservationsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_classic_link_instances.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_classic_link_instances.go index ac277cda..cfb45721 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_classic_link_instances.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_classic_link_instances.go @@ -21,7 +21,6 @@ import ( ) // DescribeClassicLinkInstances invokes the ecs.DescribeClassicLinkInstances API synchronously -// api document: https://help.aliyun.com/api/ecs/describeclassiclinkinstances.html func (client *Client) DescribeClassicLinkInstances(request *DescribeClassicLinkInstancesRequest) (response *DescribeClassicLinkInstancesResponse, err error) { response = CreateDescribeClassicLinkInstancesResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeClassicLinkInstances(request *DescribeClassicLinkI } // DescribeClassicLinkInstancesWithChan invokes the ecs.DescribeClassicLinkInstances API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeclassiclinkinstances.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeClassicLinkInstancesWithChan(request *DescribeClassicLinkInstancesRequest) (<-chan *DescribeClassicLinkInstancesResponse, <-chan error) { responseChan := make(chan *DescribeClassicLinkInstancesResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeClassicLinkInstancesWithChan(request *DescribeClas } // DescribeClassicLinkInstancesWithCallback invokes the ecs.DescribeClassicLinkInstances API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeclassiclinkinstances.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeClassicLinkInstancesWithCallback(request *DescribeClassicLinkInstancesRequest, callback func(response *DescribeClassicLinkInstancesResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,21 +72,21 @@ func (client *Client) DescribeClassicLinkInstancesWithCallback(request *Describe type DescribeClassicLinkInstancesRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - VpcId string `position:"Query" name:"VpcId"` + PageNumber string `position:"Query" name:"PageNumber"` PageSize string `position:"Query" name:"PageSize"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PageNumber string `position:"Query" name:"PageNumber"` + InstanceId string `position:"Query" name:"InstanceId"` + VpcId string `position:"Query" name:"VpcId"` } // DescribeClassicLinkInstancesResponse is the response struct for api DescribeClassicLinkInstances type DescribeClassicLinkInstancesResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` Links Links `json:"Links" xml:"Links"` } @@ -101,6 +96,7 @@ func CreateDescribeClassicLinkInstancesRequest() (request *DescribeClassicLinkIn RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeClassicLinkInstances", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_cloud_assistant_status.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_cloud_assistant_status.go index 94f60a95..3445731f 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_cloud_assistant_status.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_cloud_assistant_status.go @@ -21,7 +21,6 @@ import ( ) // DescribeCloudAssistantStatus invokes the ecs.DescribeCloudAssistantStatus API synchronously -// api document: https://help.aliyun.com/api/ecs/describecloudassistantstatus.html func (client *Client) DescribeCloudAssistantStatus(request *DescribeCloudAssistantStatusRequest) (response *DescribeCloudAssistantStatusResponse, err error) { response = CreateDescribeCloudAssistantStatusResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeCloudAssistantStatus(request *DescribeCloudAssista } // DescribeCloudAssistantStatusWithChan invokes the ecs.DescribeCloudAssistantStatus API asynchronously -// api document: https://help.aliyun.com/api/ecs/describecloudassistantstatus.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeCloudAssistantStatusWithChan(request *DescribeCloudAssistantStatusRequest) (<-chan *DescribeCloudAssistantStatusResponse, <-chan error) { responseChan := make(chan *DescribeCloudAssistantStatusResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeCloudAssistantStatusWithChan(request *DescribeClou } // DescribeCloudAssistantStatusWithCallback invokes the ecs.DescribeCloudAssistantStatus API asynchronously -// api document: https://help.aliyun.com/api/ecs/describecloudassistantstatus.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeCloudAssistantStatusWithCallback(request *DescribeCloudAssistantStatusRequest, callback func(response *DescribeCloudAssistantStatusResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,16 +72,25 @@ func (client *Client) DescribeCloudAssistantStatusWithCallback(request *Describe type DescribeCloudAssistantStatusRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + NextToken string `position:"Query" name:"NextToken"` + PageSize requests.Integer `position:"Query" name:"PageSize"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` + OSType string `position:"Query" name:"OSType"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` InstanceId *[]string `position:"Query" name:"InstanceId" type:"Repeated"` + MaxResults requests.Integer `position:"Query" name:"MaxResults"` } // DescribeCloudAssistantStatusResponse is the response struct for api DescribeCloudAssistantStatus type DescribeCloudAssistantStatusResponse struct { *responses.BaseResponse + PageSize int64 `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int64 `json:"PageNumber" xml:"PageNumber"` + TotalCount int64 `json:"TotalCount" xml:"TotalCount"` + NextToken string `json:"NextToken" xml:"NextToken"` InstanceCloudAssistantStatusSet InstanceCloudAssistantStatusSet `json:"InstanceCloudAssistantStatusSet" xml:"InstanceCloudAssistantStatusSet"` } @@ -96,6 +100,7 @@ func CreateDescribeCloudAssistantStatusRequest() (request *DescribeCloudAssistan RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeCloudAssistantStatus", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_clusters.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_clusters.go index e6307d9e..2caac9d6 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_clusters.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_clusters.go @@ -21,7 +21,6 @@ import ( ) // DescribeClusters invokes the ecs.DescribeClusters API synchronously -// api document: https://help.aliyun.com/api/ecs/describeclusters.html func (client *Client) DescribeClusters(request *DescribeClustersRequest) (response *DescribeClustersResponse, err error) { response = CreateDescribeClustersResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeClusters(request *DescribeClustersRequest) (respon } // DescribeClustersWithChan invokes the ecs.DescribeClusters API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeclusters.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeClustersWithChan(request *DescribeClustersRequest) (<-chan *DescribeClustersResponse, <-chan error) { responseChan := make(chan *DescribeClustersResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeClustersWithChan(request *DescribeClustersRequest) } // DescribeClustersWithCallback invokes the ecs.DescribeClusters API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeclusters.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeClustersWithCallback(request *DescribeClustersRequest, callback func(response *DescribeClustersResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -95,6 +90,7 @@ func CreateDescribeClustersRequest() (request *DescribeClustersRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeClusters", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_commands.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_commands.go index 9fa51924..58244598 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_commands.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_commands.go @@ -21,7 +21,6 @@ import ( ) // DescribeCommands invokes the ecs.DescribeCommands API synchronously -// api document: https://help.aliyun.com/api/ecs/describecommands.html func (client *Client) DescribeCommands(request *DescribeCommandsRequest) (response *DescribeCommandsResponse, err error) { response = CreateDescribeCommandsResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeCommands(request *DescribeCommandsRequest) (respon } // DescribeCommandsWithChan invokes the ecs.DescribeCommands API asynchronously -// api document: https://help.aliyun.com/api/ecs/describecommands.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeCommandsWithChan(request *DescribeCommandsRequest) (<-chan *DescribeCommandsResponse, <-chan error) { responseChan := make(chan *DescribeCommandsResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeCommandsWithChan(request *DescribeCommandsRequest) } // DescribeCommandsWithCallback invokes the ecs.DescribeCommands API asynchronously -// api document: https://help.aliyun.com/api/ecs/describecommands.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeCommandsWithCallback(request *DescribeCommandsRequest, callback func(response *DescribeCommandsResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,25 +71,39 @@ func (client *Client) DescribeCommandsWithCallback(request *DescribeCommandsRequ // DescribeCommandsRequest is the request struct for api DescribeCommands type DescribeCommandsRequest struct { *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Description string `position:"Query" name:"Description"` - Type string `position:"Query" name:"Type"` - CommandId string `position:"Query" name:"CommandId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Name string `position:"Query" name:"Name"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Description string `position:"Query" name:"Description"` + Type string `position:"Query" name:"Type"` + CommandId string `position:"Query" name:"CommandId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + Provider string `position:"Query" name:"Provider"` + NextToken string `position:"Query" name:"NextToken"` + ContentEncoding string `position:"Query" name:"ContentEncoding"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Tag *[]DescribeCommandsTag `position:"Query" name:"Tag" type:"Repeated"` + Latest requests.Boolean `position:"Query" name:"Latest"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Name string `position:"Query" name:"Name"` + MaxResults requests.Integer `position:"Query" name:"MaxResults"` +} + +// DescribeCommandsTag is a repeated param struct in DescribeCommandsRequest +type DescribeCommandsTag struct { + Key string `name:"Key"` + Value string `name:"Value"` } // DescribeCommandsResponse is the response struct for api DescribeCommands type DescribeCommandsResponse struct { *responses.BaseResponse + PageSize int64 `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int64 `json:"TotalCount" xml:"TotalCount"` PageNumber int64 `json:"PageNumber" xml:"PageNumber"` - PageSize int64 `json:"PageSize" xml:"PageSize"` + TotalCount int64 `json:"TotalCount" xml:"TotalCount"` + NextToken string `json:"NextToken" xml:"NextToken"` Commands Commands `json:"Commands" xml:"Commands"` } @@ -104,6 +113,7 @@ func CreateDescribeCommandsRequest() (request *DescribeCommandsRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeCommands", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_dedicated_host_auto_renew.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_dedicated_host_auto_renew.go index 5ce5dfca..5bcbad12 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_dedicated_host_auto_renew.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_dedicated_host_auto_renew.go @@ -21,7 +21,6 @@ import ( ) // DescribeDedicatedHostAutoRenew invokes the ecs.DescribeDedicatedHostAutoRenew API synchronously -// api document: https://help.aliyun.com/api/ecs/describededicatedhostautorenew.html func (client *Client) DescribeDedicatedHostAutoRenew(request *DescribeDedicatedHostAutoRenewRequest) (response *DescribeDedicatedHostAutoRenewResponse, err error) { response = CreateDescribeDedicatedHostAutoRenewResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeDedicatedHostAutoRenew(request *DescribeDedicatedH } // DescribeDedicatedHostAutoRenewWithChan invokes the ecs.DescribeDedicatedHostAutoRenew API asynchronously -// api document: https://help.aliyun.com/api/ecs/describededicatedhostautorenew.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeDedicatedHostAutoRenewWithChan(request *DescribeDedicatedHostAutoRenewRequest) (<-chan *DescribeDedicatedHostAutoRenewResponse, <-chan error) { responseChan := make(chan *DescribeDedicatedHostAutoRenewResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeDedicatedHostAutoRenewWithChan(request *DescribeDe } // DescribeDedicatedHostAutoRenewWithCallback invokes the ecs.DescribeDedicatedHostAutoRenew API asynchronously -// api document: https://help.aliyun.com/api/ecs/describededicatedhostautorenew.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeDedicatedHostAutoRenewWithCallback(request *DescribeDedicatedHostAutoRenewRequest, callback func(response *DescribeDedicatedHostAutoRenewResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -96,6 +91,7 @@ func CreateDescribeDedicatedHostAutoRenewRequest() (request *DescribeDedicatedHo RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeDedicatedHostAutoRenew", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_dedicated_host_clusters.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_dedicated_host_clusters.go new file mode 100644 index 00000000..04c8a15e --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_dedicated_host_clusters.go @@ -0,0 +1,121 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDedicatedHostClusters invokes the ecs.DescribeDedicatedHostClusters API synchronously +func (client *Client) DescribeDedicatedHostClusters(request *DescribeDedicatedHostClustersRequest) (response *DescribeDedicatedHostClustersResponse, err error) { + response = CreateDescribeDedicatedHostClustersResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDedicatedHostClustersWithChan invokes the ecs.DescribeDedicatedHostClusters API asynchronously +func (client *Client) DescribeDedicatedHostClustersWithChan(request *DescribeDedicatedHostClustersRequest) (<-chan *DescribeDedicatedHostClustersResponse, <-chan error) { + responseChan := make(chan *DescribeDedicatedHostClustersResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDedicatedHostClusters(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDedicatedHostClustersWithCallback invokes the ecs.DescribeDedicatedHostClusters API asynchronously +func (client *Client) DescribeDedicatedHostClustersWithCallback(request *DescribeDedicatedHostClustersRequest, callback func(response *DescribeDedicatedHostClustersResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDedicatedHostClustersResponse + var err error + defer close(result) + response, err = client.DescribeDedicatedHostClusters(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDedicatedHostClustersRequest is the request struct for api DescribeDedicatedHostClusters +type DescribeDedicatedHostClustersRequest struct { + *requests.RpcRequest + DedicatedHostClusterName string `position:"Query" name:"DedicatedHostClusterName"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DedicatedHostClusterIds string `position:"Query" name:"DedicatedHostClusterIds"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + LockReason string `position:"Query" name:"LockReason"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Tag *[]DescribeDedicatedHostClustersTag `position:"Query" name:"Tag" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ZoneId string `position:"Query" name:"ZoneId"` + Status string `position:"Query" name:"Status"` +} + +// DescribeDedicatedHostClustersTag is a repeated param struct in DescribeDedicatedHostClustersRequest +type DescribeDedicatedHostClustersTag struct { + Key string `name:"Key"` + Value string `name:"Value"` +} + +// DescribeDedicatedHostClustersResponse is the response struct for api DescribeDedicatedHostClusters +type DescribeDedicatedHostClustersResponse struct { + *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + DedicatedHostClusters DedicatedHostClusters `json:"DedicatedHostClusters" xml:"DedicatedHostClusters"` +} + +// CreateDescribeDedicatedHostClustersRequest creates a request to invoke DescribeDedicatedHostClusters API +func CreateDescribeDedicatedHostClustersRequest() (request *DescribeDedicatedHostClustersRequest) { + request = &DescribeDedicatedHostClustersRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeDedicatedHostClusters", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeDedicatedHostClustersResponse creates a response to parse from DescribeDedicatedHostClusters response +func CreateDescribeDedicatedHostClustersResponse() (response *DescribeDedicatedHostClustersResponse) { + response = &DescribeDedicatedHostClustersResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_dedicated_host_types.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_dedicated_host_types.go index d708f87d..af8f9acc 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_dedicated_host_types.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_dedicated_host_types.go @@ -21,7 +21,6 @@ import ( ) // DescribeDedicatedHostTypes invokes the ecs.DescribeDedicatedHostTypes API synchronously -// api document: https://help.aliyun.com/api/ecs/describededicatedhosttypes.html func (client *Client) DescribeDedicatedHostTypes(request *DescribeDedicatedHostTypesRequest) (response *DescribeDedicatedHostTypesResponse, err error) { response = CreateDescribeDedicatedHostTypesResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeDedicatedHostTypes(request *DescribeDedicatedHostT } // DescribeDedicatedHostTypesWithChan invokes the ecs.DescribeDedicatedHostTypes API asynchronously -// api document: https://help.aliyun.com/api/ecs/describededicatedhosttypes.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeDedicatedHostTypesWithChan(request *DescribeDedicatedHostTypesRequest) (<-chan *DescribeDedicatedHostTypesResponse, <-chan error) { responseChan := make(chan *DescribeDedicatedHostTypesResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeDedicatedHostTypesWithChan(request *DescribeDedica } // DescribeDedicatedHostTypesWithCallback invokes the ecs.DescribeDedicatedHostTypes API asynchronously -// api document: https://help.aliyun.com/api/ecs/describededicatedhosttypes.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeDedicatedHostTypesWithCallback(request *DescribeDedicatedHostTypesRequest, callback func(response *DescribeDedicatedHostTypesResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -97,6 +92,7 @@ func CreateDescribeDedicatedHostTypesRequest() (request *DescribeDedicatedHostTy RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeDedicatedHostTypes", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_dedicated_hosts.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_dedicated_hosts.go index ae0363c3..21375c32 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_dedicated_hosts.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_dedicated_hosts.go @@ -21,7 +21,6 @@ import ( ) // DescribeDedicatedHosts invokes the ecs.DescribeDedicatedHosts API synchronously -// api document: https://help.aliyun.com/api/ecs/describededicatedhosts.html func (client *Client) DescribeDedicatedHosts(request *DescribeDedicatedHostsRequest) (response *DescribeDedicatedHostsResponse, err error) { response = CreateDescribeDedicatedHostsResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeDedicatedHosts(request *DescribeDedicatedHostsRequ } // DescribeDedicatedHostsWithChan invokes the ecs.DescribeDedicatedHosts API asynchronously -// api document: https://help.aliyun.com/api/ecs/describededicatedhosts.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeDedicatedHostsWithChan(request *DescribeDedicatedHostsRequest) (<-chan *DescribeDedicatedHostsResponse, <-chan error) { responseChan := make(chan *DescribeDedicatedHostsResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeDedicatedHostsWithChan(request *DescribeDedicatedH } // DescribeDedicatedHostsWithCallback invokes the ecs.DescribeDedicatedHosts API asynchronously -// api document: https://help.aliyun.com/api/ecs/describededicatedhosts.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeDedicatedHostsWithCallback(request *DescribeDedicatedHostsRequest, callback func(response *DescribeDedicatedHostsResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,20 +71,23 @@ func (client *Client) DescribeDedicatedHostsWithCallback(request *DescribeDedica // DescribeDedicatedHostsRequest is the request struct for api DescribeDedicatedHosts type DescribeDedicatedHostsRequest struct { *requests.RpcRequest - DedicatedHostIds string `position:"Query" name:"DedicatedHostIds"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - DedicatedHostName string `position:"Query" name:"DedicatedHostName"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - LockReason string `position:"Query" name:"LockReason"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - ZoneId string `position:"Query" name:"ZoneId"` - DedicatedHostType string `position:"Query" name:"DedicatedHostType"` - Tag *[]DescribeDedicatedHostsTag `position:"Query" name:"Tag" type:"Repeated"` - Status string `position:"Query" name:"Status"` + DedicatedHostIds string `position:"Query" name:"DedicatedHostIds"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SocketDetails string `position:"Query" name:"SocketDetails"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + LockReason string `position:"Query" name:"LockReason"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + DedicatedHostClusterId string `position:"Query" name:"DedicatedHostClusterId"` + DedicatedHostType string `position:"Query" name:"DedicatedHostType"` + Tag *[]DescribeDedicatedHostsTag `position:"Query" name:"Tag" type:"Repeated"` + NeedHostDetail string `position:"Query" name:"NeedHostDetail"` + DedicatedHostName string `position:"Query" name:"DedicatedHostName"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ZoneId string `position:"Query" name:"ZoneId"` + Status string `position:"Query" name:"Status"` } // DescribeDedicatedHostsTag is a repeated param struct in DescribeDedicatedHostsRequest @@ -101,10 +99,10 @@ type DescribeDedicatedHostsTag struct { // DescribeDedicatedHostsResponse is the response struct for api DescribeDedicatedHosts type DescribeDedicatedHostsResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` DedicatedHosts DedicatedHosts `json:"DedicatedHosts" xml:"DedicatedHosts"` } @@ -114,6 +112,7 @@ func CreateDescribeDedicatedHostsRequest() (request *DescribeDedicatedHostsReque RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeDedicatedHosts", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_demands.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_demands.go index f7f07e2a..66f0eaa8 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_demands.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_demands.go @@ -21,7 +21,6 @@ import ( ) // DescribeDemands invokes the ecs.DescribeDemands API synchronously -// api document: https://help.aliyun.com/api/ecs/describedemands.html func (client *Client) DescribeDemands(request *DescribeDemandsRequest) (response *DescribeDemandsResponse, err error) { response = CreateDescribeDemandsResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeDemands(request *DescribeDemandsRequest) (response } // DescribeDemandsWithChan invokes the ecs.DescribeDemands API asynchronously -// api document: https://help.aliyun.com/api/ecs/describedemands.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeDemandsWithChan(request *DescribeDemandsRequest) (<-chan *DescribeDemandsResponse, <-chan error) { responseChan := make(chan *DescribeDemandsResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeDemandsWithChan(request *DescribeDemandsRequest) ( } // DescribeDemandsWithCallback invokes the ecs.DescribeDemands API asynchronously -// api document: https://help.aliyun.com/api/ecs/describedemands.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeDemandsWithCallback(request *DescribeDemandsRequest, callback func(response *DescribeDemandsResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -88,7 +83,9 @@ type DescribeDemandsRequest struct { InstanceTypeFamily string `position:"Query" name:"InstanceTypeFamily"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` DemandStatus *[]string `position:"Query" name:"DemandStatus" type:"Repeated"` + DemandId string `position:"Query" name:"DemandId"` ZoneId string `position:"Query" name:"ZoneId"` + DemandType string `position:"Query" name:"DemandType"` } // DescribeDemandsTag is a repeated param struct in DescribeDemandsRequest @@ -100,10 +97,10 @@ type DescribeDemandsTag struct { // DescribeDemandsResponse is the response struct for api DescribeDemands type DescribeDemandsResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` RequestId string `json:"RequestId" xml:"RequestId"` TotalCount int `json:"TotalCount" xml:"TotalCount"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` RegionId string `json:"RegionId" xml:"RegionId"` Demands Demands `json:"Demands" xml:"Demands"` } @@ -114,6 +111,7 @@ func CreateDescribeDemandsRequest() (request *DescribeDemandsRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeDemands", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_deployment_set_supported_instance_type_family.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_deployment_set_supported_instance_type_family.go new file mode 100644 index 00000000..f6b239c5 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_deployment_set_supported_instance_type_family.go @@ -0,0 +1,104 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDeploymentSetSupportedInstanceTypeFamily invokes the ecs.DescribeDeploymentSetSupportedInstanceTypeFamily API synchronously +func (client *Client) DescribeDeploymentSetSupportedInstanceTypeFamily(request *DescribeDeploymentSetSupportedInstanceTypeFamilyRequest) (response *DescribeDeploymentSetSupportedInstanceTypeFamilyResponse, err error) { + response = CreateDescribeDeploymentSetSupportedInstanceTypeFamilyResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDeploymentSetSupportedInstanceTypeFamilyWithChan invokes the ecs.DescribeDeploymentSetSupportedInstanceTypeFamily API asynchronously +func (client *Client) DescribeDeploymentSetSupportedInstanceTypeFamilyWithChan(request *DescribeDeploymentSetSupportedInstanceTypeFamilyRequest) (<-chan *DescribeDeploymentSetSupportedInstanceTypeFamilyResponse, <-chan error) { + responseChan := make(chan *DescribeDeploymentSetSupportedInstanceTypeFamilyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDeploymentSetSupportedInstanceTypeFamily(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDeploymentSetSupportedInstanceTypeFamilyWithCallback invokes the ecs.DescribeDeploymentSetSupportedInstanceTypeFamily API asynchronously +func (client *Client) DescribeDeploymentSetSupportedInstanceTypeFamilyWithCallback(request *DescribeDeploymentSetSupportedInstanceTypeFamilyRequest, callback func(response *DescribeDeploymentSetSupportedInstanceTypeFamilyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDeploymentSetSupportedInstanceTypeFamilyResponse + var err error + defer close(result) + response, err = client.DescribeDeploymentSetSupportedInstanceTypeFamily(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDeploymentSetSupportedInstanceTypeFamilyRequest is the request struct for api DescribeDeploymentSetSupportedInstanceTypeFamily +type DescribeDeploymentSetSupportedInstanceTypeFamilyRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Strategy string `position:"Query" name:"Strategy"` +} + +// DescribeDeploymentSetSupportedInstanceTypeFamilyResponse is the response struct for api DescribeDeploymentSetSupportedInstanceTypeFamily +type DescribeDeploymentSetSupportedInstanceTypeFamilyResponse struct { + *responses.BaseResponse + InstanceTypeFamilies string `json:"InstanceTypeFamilies" xml:"InstanceTypeFamilies"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDescribeDeploymentSetSupportedInstanceTypeFamilyRequest creates a request to invoke DescribeDeploymentSetSupportedInstanceTypeFamily API +func CreateDescribeDeploymentSetSupportedInstanceTypeFamilyRequest() (request *DescribeDeploymentSetSupportedInstanceTypeFamilyRequest) { + request = &DescribeDeploymentSetSupportedInstanceTypeFamilyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeDeploymentSetSupportedInstanceTypeFamily", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeDeploymentSetSupportedInstanceTypeFamilyResponse creates a response to parse from DescribeDeploymentSetSupportedInstanceTypeFamily response +func CreateDescribeDeploymentSetSupportedInstanceTypeFamilyResponse() (response *DescribeDeploymentSetSupportedInstanceTypeFamilyResponse) { + response = &DescribeDeploymentSetSupportedInstanceTypeFamilyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_deployment_sets.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_deployment_sets.go index 05ed0b56..93aa3259 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_deployment_sets.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_deployment_sets.go @@ -21,7 +21,6 @@ import ( ) // DescribeDeploymentSets invokes the ecs.DescribeDeploymentSets API synchronously -// api document: https://help.aliyun.com/api/ecs/describedeploymentsets.html func (client *Client) DescribeDeploymentSets(request *DescribeDeploymentSetsRequest) (response *DescribeDeploymentSetsResponse, err error) { response = CreateDescribeDeploymentSetsResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeDeploymentSets(request *DescribeDeploymentSetsRequ } // DescribeDeploymentSetsWithChan invokes the ecs.DescribeDeploymentSets API asynchronously -// api document: https://help.aliyun.com/api/ecs/describedeploymentsets.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeDeploymentSetsWithChan(request *DescribeDeploymentSetsRequest) (<-chan *DescribeDeploymentSetsResponse, <-chan error) { responseChan := make(chan *DescribeDeploymentSetsResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeDeploymentSetsWithChan(request *DescribeDeployment } // DescribeDeploymentSetsWithCallback invokes the ecs.DescribeDeploymentSets API asynchronously -// api document: https://help.aliyun.com/api/ecs/describedeploymentsets.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeDeploymentSetsWithCallback(request *DescribeDeploymentSetsRequest, callback func(response *DescribeDeploymentSetsResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,27 +72,27 @@ func (client *Client) DescribeDeploymentSetsWithCallback(request *DescribeDeploy type DescribeDeploymentSetsRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + NetworkType string `position:"Query" name:"NetworkType"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + DeploymentSetIds string `position:"Query" name:"DeploymentSetIds"` + PageSize requests.Integer `position:"Query" name:"PageSize"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - NetworkType string `position:"Query" name:"NetworkType"` DeploymentSetName string `position:"Query" name:"DeploymentSetName"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - DeploymentSetIds string `position:"Query" name:"DeploymentSetIds"` Granularity string `position:"Query" name:"Granularity"` Domain string `position:"Query" name:"Domain"` - PageSize requests.Integer `position:"Query" name:"PageSize"` Strategy string `position:"Query" name:"Strategy"` } // DescribeDeploymentSetsResponse is the response struct for api DescribeDeploymentSets type DescribeDeploymentSetsResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` RequestId string `json:"RequestId" xml:"RequestId"` - RegionId string `json:"RegionId" xml:"RegionId"` TotalCount int `json:"TotalCount" xml:"TotalCount"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + RegionId string `json:"RegionId" xml:"RegionId"` DeploymentSets DeploymentSets `json:"DeploymentSets" xml:"DeploymentSets"` } @@ -107,6 +102,7 @@ func CreateDescribeDeploymentSetsRequest() (request *DescribeDeploymentSetsReque RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeDeploymentSets", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_diagnostic_metric_sets.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_diagnostic_metric_sets.go new file mode 100644 index 00000000..a3287ea1 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_diagnostic_metric_sets.go @@ -0,0 +1,105 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDiagnosticMetricSets invokes the ecs.DescribeDiagnosticMetricSets API synchronously +func (client *Client) DescribeDiagnosticMetricSets(request *DescribeDiagnosticMetricSetsRequest) (response *DescribeDiagnosticMetricSetsResponse, err error) { + response = CreateDescribeDiagnosticMetricSetsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDiagnosticMetricSetsWithChan invokes the ecs.DescribeDiagnosticMetricSets API asynchronously +func (client *Client) DescribeDiagnosticMetricSetsWithChan(request *DescribeDiagnosticMetricSetsRequest) (<-chan *DescribeDiagnosticMetricSetsResponse, <-chan error) { + responseChan := make(chan *DescribeDiagnosticMetricSetsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDiagnosticMetricSets(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDiagnosticMetricSetsWithCallback invokes the ecs.DescribeDiagnosticMetricSets API asynchronously +func (client *Client) DescribeDiagnosticMetricSetsWithCallback(request *DescribeDiagnosticMetricSetsRequest, callback func(response *DescribeDiagnosticMetricSetsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDiagnosticMetricSetsResponse + var err error + defer close(result) + response, err = client.DescribeDiagnosticMetricSets(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDiagnosticMetricSetsRequest is the request struct for api DescribeDiagnosticMetricSets +type DescribeDiagnosticMetricSetsRequest struct { + *requests.RpcRequest + MetricSetIds *[]string `position:"Query" name:"MetricSetIds" type:"Repeated"` + Type string `position:"Query" name:"Type"` + NextToken string `position:"Query" name:"NextToken"` + ResourceType string `position:"Query" name:"ResourceType"` + MaxResults requests.Integer `position:"Query" name:"MaxResults"` +} + +// DescribeDiagnosticMetricSetsResponse is the response struct for api DescribeDiagnosticMetricSets +type DescribeDiagnosticMetricSetsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NextToken string `json:"NextToken" xml:"NextToken"` + MetricSets []MetricSet `json:"MetricSets" xml:"MetricSets"` +} + +// CreateDescribeDiagnosticMetricSetsRequest creates a request to invoke DescribeDiagnosticMetricSets API +func CreateDescribeDiagnosticMetricSetsRequest() (request *DescribeDiagnosticMetricSetsRequest) { + request = &DescribeDiagnosticMetricSetsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeDiagnosticMetricSets", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeDiagnosticMetricSetsResponse creates a response to parse from DescribeDiagnosticMetricSets response +func CreateDescribeDiagnosticMetricSetsResponse() (response *DescribeDiagnosticMetricSetsResponse) { + response = &DescribeDiagnosticMetricSetsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_diagnostic_metrics.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_diagnostic_metrics.go new file mode 100644 index 00000000..2824ad81 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_diagnostic_metrics.go @@ -0,0 +1,104 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDiagnosticMetrics invokes the ecs.DescribeDiagnosticMetrics API synchronously +func (client *Client) DescribeDiagnosticMetrics(request *DescribeDiagnosticMetricsRequest) (response *DescribeDiagnosticMetricsResponse, err error) { + response = CreateDescribeDiagnosticMetricsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDiagnosticMetricsWithChan invokes the ecs.DescribeDiagnosticMetrics API asynchronously +func (client *Client) DescribeDiagnosticMetricsWithChan(request *DescribeDiagnosticMetricsRequest) (<-chan *DescribeDiagnosticMetricsResponse, <-chan error) { + responseChan := make(chan *DescribeDiagnosticMetricsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDiagnosticMetrics(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDiagnosticMetricsWithCallback invokes the ecs.DescribeDiagnosticMetrics API asynchronously +func (client *Client) DescribeDiagnosticMetricsWithCallback(request *DescribeDiagnosticMetricsRequest, callback func(response *DescribeDiagnosticMetricsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDiagnosticMetricsResponse + var err error + defer close(result) + response, err = client.DescribeDiagnosticMetrics(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDiagnosticMetricsRequest is the request struct for api DescribeDiagnosticMetrics +type DescribeDiagnosticMetricsRequest struct { + *requests.RpcRequest + MetricIds *[]string `position:"Query" name:"MetricIds" type:"Repeated"` + ResourceType string `position:"Query" name:"ResourceType"` + NextToken string `position:"Query" name:"NextToken"` + MaxResults requests.Integer `position:"Query" name:"MaxResults"` +} + +// DescribeDiagnosticMetricsResponse is the response struct for api DescribeDiagnosticMetrics +type DescribeDiagnosticMetricsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NextToken string `json:"NextToken" xml:"NextToken"` + Metrics []Metric `json:"Metrics" xml:"Metrics"` +} + +// CreateDescribeDiagnosticMetricsRequest creates a request to invoke DescribeDiagnosticMetrics API +func CreateDescribeDiagnosticMetricsRequest() (request *DescribeDiagnosticMetricsRequest) { + request = &DescribeDiagnosticMetricsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeDiagnosticMetrics", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeDiagnosticMetricsResponse creates a response to parse from DescribeDiagnosticMetrics response +func CreateDescribeDiagnosticMetricsResponse() (response *DescribeDiagnosticMetricsResponse) { + response = &DescribeDiagnosticMetricsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_diagnostic_report_attributes.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_diagnostic_report_attributes.go new file mode 100644 index 00000000..2cb0c30a --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_diagnostic_report_attributes.go @@ -0,0 +1,111 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDiagnosticReportAttributes invokes the ecs.DescribeDiagnosticReportAttributes API synchronously +func (client *Client) DescribeDiagnosticReportAttributes(request *DescribeDiagnosticReportAttributesRequest) (response *DescribeDiagnosticReportAttributesResponse, err error) { + response = CreateDescribeDiagnosticReportAttributesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDiagnosticReportAttributesWithChan invokes the ecs.DescribeDiagnosticReportAttributes API asynchronously +func (client *Client) DescribeDiagnosticReportAttributesWithChan(request *DescribeDiagnosticReportAttributesRequest) (<-chan *DescribeDiagnosticReportAttributesResponse, <-chan error) { + responseChan := make(chan *DescribeDiagnosticReportAttributesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDiagnosticReportAttributes(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDiagnosticReportAttributesWithCallback invokes the ecs.DescribeDiagnosticReportAttributes API asynchronously +func (client *Client) DescribeDiagnosticReportAttributesWithCallback(request *DescribeDiagnosticReportAttributesRequest, callback func(response *DescribeDiagnosticReportAttributesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDiagnosticReportAttributesResponse + var err error + defer close(result) + response, err = client.DescribeDiagnosticReportAttributes(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDiagnosticReportAttributesRequest is the request struct for api DescribeDiagnosticReportAttributes +type DescribeDiagnosticReportAttributesRequest struct { + *requests.RpcRequest + ReportId string `position:"Query" name:"ReportId"` +} + +// DescribeDiagnosticReportAttributesResponse is the response struct for api DescribeDiagnosticReportAttributes +type DescribeDiagnosticReportAttributesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ResourceId string `json:"ResourceId" xml:"ResourceId"` + ResourceType string `json:"ResourceType" xml:"ResourceType"` + ReportId string `json:"ReportId" xml:"ReportId"` + Status string `json:"Status" xml:"Status"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + FinishedTime string `json:"FinishedTime" xml:"FinishedTime"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + Severity string `json:"Severity" xml:"Severity"` + MetricSetId string `json:"MetricSetId" xml:"MetricSetId"` + Attributes string `json:"Attributes" xml:"Attributes"` + MetricResults MetricResults `json:"MetricResults" xml:"MetricResults"` +} + +// CreateDescribeDiagnosticReportAttributesRequest creates a request to invoke DescribeDiagnosticReportAttributes API +func CreateDescribeDiagnosticReportAttributesRequest() (request *DescribeDiagnosticReportAttributesRequest) { + request = &DescribeDiagnosticReportAttributesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeDiagnosticReportAttributes", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeDiagnosticReportAttributesResponse creates a response to parse from DescribeDiagnosticReportAttributes response +func CreateDescribeDiagnosticReportAttributesResponse() (response *DescribeDiagnosticReportAttributesResponse) { + response = &DescribeDiagnosticReportAttributesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_diagnostic_reports.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_diagnostic_reports.go new file mode 100644 index 00000000..1cb7ac4c --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_diagnostic_reports.go @@ -0,0 +1,106 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDiagnosticReports invokes the ecs.DescribeDiagnosticReports API synchronously +func (client *Client) DescribeDiagnosticReports(request *DescribeDiagnosticReportsRequest) (response *DescribeDiagnosticReportsResponse, err error) { + response = CreateDescribeDiagnosticReportsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDiagnosticReportsWithChan invokes the ecs.DescribeDiagnosticReports API asynchronously +func (client *Client) DescribeDiagnosticReportsWithChan(request *DescribeDiagnosticReportsRequest) (<-chan *DescribeDiagnosticReportsResponse, <-chan error) { + responseChan := make(chan *DescribeDiagnosticReportsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDiagnosticReports(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDiagnosticReportsWithCallback invokes the ecs.DescribeDiagnosticReports API asynchronously +func (client *Client) DescribeDiagnosticReportsWithCallback(request *DescribeDiagnosticReportsRequest, callback func(response *DescribeDiagnosticReportsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDiagnosticReportsResponse + var err error + defer close(result) + response, err = client.DescribeDiagnosticReports(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDiagnosticReportsRequest is the request struct for api DescribeDiagnosticReports +type DescribeDiagnosticReportsRequest struct { + *requests.RpcRequest + NextToken string `position:"Query" name:"NextToken"` + Severity string `position:"Query" name:"Severity"` + ReportIds *[]string `position:"Query" name:"ReportIds" type:"Repeated"` + MaxResults requests.Integer `position:"Query" name:"MaxResults"` + Status string `position:"Query" name:"Status"` + ResourceIds *[]string `position:"Query" name:"ResourceIds" type:"Repeated"` +} + +// DescribeDiagnosticReportsResponse is the response struct for api DescribeDiagnosticReports +type DescribeDiagnosticReportsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NextToken string `json:"NextToken" xml:"NextToken"` + Reports Reports `json:"Reports" xml:"Reports"` +} + +// CreateDescribeDiagnosticReportsRequest creates a request to invoke DescribeDiagnosticReports API +func CreateDescribeDiagnosticReportsRequest() (request *DescribeDiagnosticReportsRequest) { + request = &DescribeDiagnosticReportsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeDiagnosticReports", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeDiagnosticReportsResponse creates a response to parse from DescribeDiagnosticReports response +func CreateDescribeDiagnosticReportsResponse() (response *DescribeDiagnosticReportsResponse) { + response = &DescribeDiagnosticReportsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_disk_monitor_data.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_disk_monitor_data.go index ee9ed6ea..c71ff900 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_disk_monitor_data.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_disk_monitor_data.go @@ -21,7 +21,6 @@ import ( ) // DescribeDiskMonitorData invokes the ecs.DescribeDiskMonitorData API synchronously -// api document: https://help.aliyun.com/api/ecs/describediskmonitordata.html func (client *Client) DescribeDiskMonitorData(request *DescribeDiskMonitorDataRequest) (response *DescribeDiskMonitorDataResponse, err error) { response = CreateDescribeDiskMonitorDataResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeDiskMonitorData(request *DescribeDiskMonitorDataRe } // DescribeDiskMonitorDataWithChan invokes the ecs.DescribeDiskMonitorData API asynchronously -// api document: https://help.aliyun.com/api/ecs/describediskmonitordata.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeDiskMonitorDataWithChan(request *DescribeDiskMonitorDataRequest) (<-chan *DescribeDiskMonitorDataResponse, <-chan error) { responseChan := make(chan *DescribeDiskMonitorDataResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeDiskMonitorDataWithChan(request *DescribeDiskMonit } // DescribeDiskMonitorDataWithCallback invokes the ecs.DescribeDiskMonitorData API asynchronously -// api document: https://help.aliyun.com/api/ecs/describediskmonitordata.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeDiskMonitorDataWithCallback(request *DescribeDiskMonitorDataRequest, callback func(response *DescribeDiskMonitorDataResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -89,8 +84,8 @@ type DescribeDiskMonitorDataRequest struct { // DescribeDiskMonitorDataResponse is the response struct for api DescribeDiskMonitorData type DescribeDiskMonitorDataResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` TotalCount int `json:"TotalCount" xml:"TotalCount"` + RequestId string `json:"RequestId" xml:"RequestId"` MonitorData MonitorDataInDescribeDiskMonitorData `json:"MonitorData" xml:"MonitorData"` } @@ -100,6 +95,7 @@ func CreateDescribeDiskMonitorDataRequest() (request *DescribeDiskMonitorDataReq RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeDiskMonitorData", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_disks.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_disks.go index c4ef011e..589cf02a 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_disks.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_disks.go @@ -21,7 +21,6 @@ import ( ) // DescribeDisks invokes the ecs.DescribeDisks API synchronously -// api document: https://help.aliyun.com/api/ecs/describedisks.html func (client *Client) DescribeDisks(request *DescribeDisksRequest) (response *DescribeDisksResponse, err error) { response = CreateDescribeDisksResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeDisks(request *DescribeDisksRequest) (response *De } // DescribeDisksWithChan invokes the ecs.DescribeDisks API asynchronously -// api document: https://help.aliyun.com/api/ecs/describedisks.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeDisksWithChan(request *DescribeDisksRequest) (<-chan *DescribeDisksResponse, <-chan error) { responseChan := make(chan *DescribeDisksResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeDisksWithChan(request *DescribeDisksRequest) (<-ch } // DescribeDisksWithCallback invokes the ecs.DescribeDisks API asynchronously -// api document: https://help.aliyun.com/api/ecs/describedisks.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeDisksWithCallback(request *DescribeDisksRequest, callback func(response *DescribeDisksResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,38 +72,41 @@ func (client *Client) DescribeDisksWithCallback(request *DescribeDisksRequest, c type DescribeDisksRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - SnapshotId string `position:"Query" name:"SnapshotId"` Filter2Value string `position:"Query" name:"Filter.2.Value"` AutoSnapshotPolicyId string `position:"Query" name:"AutoSnapshotPolicyId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` DiskName string `position:"Query" name:"DiskName"` DeleteAutoSnapshot requests.Boolean `position:"Query" name:"DeleteAutoSnapshot"` ResourceGroupId string `position:"Query" name:"ResourceGroupId"` DiskChargeType string `position:"Query" name:"DiskChargeType"` LockReason string `position:"Query" name:"LockReason"` Filter1Key string `position:"Query" name:"Filter.1.Key"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - DiskIds string `position:"Query" name:"DiskIds"` Tag *[]DescribeDisksTag `position:"Query" name:"Tag" type:"Repeated"` - DeleteWithInstance requests.Boolean `position:"Query" name:"DeleteWithInstance"` EnableAutoSnapshot requests.Boolean `position:"Query" name:"EnableAutoSnapshot"` DryRun requests.Boolean `position:"Query" name:"DryRun"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` Filter1Value string `position:"Query" name:"Filter.1.Value"` Portable requests.Boolean `position:"Query" name:"Portable"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + AdditionalAttributes *[]string `position:"Query" name:"AdditionalAttributes" type:"Repeated"` + InstanceId string `position:"Query" name:"InstanceId"` + ZoneId string `position:"Query" name:"ZoneId"` + MaxResults requests.Integer `position:"Query" name:"MaxResults"` + Status string `position:"Query" name:"Status"` + SnapshotId string `position:"Query" name:"SnapshotId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + NextToken string `position:"Query" name:"NextToken"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + DiskIds string `position:"Query" name:"DiskIds"` + MultiAttach string `position:"Query" name:"MultiAttach"` + DeleteWithInstance requests.Boolean `position:"Query" name:"DeleteWithInstance"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` EnableAutomatedSnapshotPolicy requests.Boolean `position:"Query" name:"EnableAutomatedSnapshotPolicy"` Filter2Key string `position:"Query" name:"Filter.2.Key"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` DiskType string `position:"Query" name:"DiskType"` - AdditionalAttributes *[]string `position:"Query" name:"AdditionalAttributes" type:"Repeated"` EnableShared requests.Boolean `position:"Query" name:"EnableShared"` - InstanceId string `position:"Query" name:"InstanceId"` Encrypted requests.Boolean `position:"Query" name:"Encrypted"` - ZoneId string `position:"Query" name:"ZoneId"` Category string `position:"Query" name:"Category"` KMSKeyId string `position:"Query" name:"KMSKeyId"` - Status string `position:"Query" name:"Status"` } // DescribeDisksTag is a repeated param struct in DescribeDisksRequest @@ -120,10 +118,11 @@ type DescribeDisksTag struct { // DescribeDisksResponse is the response struct for api DescribeDisks type DescribeDisksResponse struct { *responses.BaseResponse + NextToken string `json:"NextToken" xml:"NextToken"` + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` RequestId string `json:"RequestId" xml:"RequestId"` TotalCount int `json:"TotalCount" xml:"TotalCount"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` Disks DisksInDescribeDisks `json:"Disks" xml:"Disks"` } @@ -133,6 +132,7 @@ func CreateDescribeDisksRequest() (request *DescribeDisksRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeDisks", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_disks_full_status.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_disks_full_status.go index d9ec70e3..c339e2a9 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_disks_full_status.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_disks_full_status.go @@ -21,7 +21,6 @@ import ( ) // DescribeDisksFullStatus invokes the ecs.DescribeDisksFullStatus API synchronously -// api document: https://help.aliyun.com/api/ecs/describedisksfullstatus.html func (client *Client) DescribeDisksFullStatus(request *DescribeDisksFullStatusRequest) (response *DescribeDisksFullStatusResponse, err error) { response = CreateDescribeDisksFullStatusResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeDisksFullStatus(request *DescribeDisksFullStatusRe } // DescribeDisksFullStatusWithChan invokes the ecs.DescribeDisksFullStatus API asynchronously -// api document: https://help.aliyun.com/api/ecs/describedisksfullstatus.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeDisksFullStatusWithChan(request *DescribeDisksFullStatusRequest) (<-chan *DescribeDisksFullStatusResponse, <-chan error) { responseChan := make(chan *DescribeDisksFullStatusResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeDisksFullStatusWithChan(request *DescribeDisksFull } // DescribeDisksFullStatusWithCallback invokes the ecs.DescribeDisksFullStatus API asynchronously -// api document: https://help.aliyun.com/api/ecs/describedisksfullstatus.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeDisksFullStatusWithCallback(request *DescribeDisksFullStatusRequest, callback func(response *DescribeDisksFullStatusResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,28 +71,36 @@ func (client *Client) DescribeDisksFullStatusWithCallback(request *DescribeDisks // DescribeDisksFullStatusRequest is the request struct for api DescribeDisksFullStatus type DescribeDisksFullStatusRequest struct { *requests.RpcRequest - EventId *[]string `position:"Query" name:"EventId" type:"Repeated"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - EventTimeStart string `position:"Query" name:"EventTime.Start"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - DiskId *[]string `position:"Query" name:"DiskId" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - EventTimeEnd string `position:"Query" name:"EventTime.End"` - HealthStatus string `position:"Query" name:"HealthStatus"` - EventType string `position:"Query" name:"EventType"` - Status string `position:"Query" name:"Status"` + EventId *[]string `position:"Query" name:"EventId" type:"Repeated"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + EventTimeStart string `position:"Query" name:"EventTime.Start"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + DiskId *[]string `position:"Query" name:"DiskId" type:"Repeated"` + Tag *[]DescribeDisksFullStatusTag `position:"Query" name:"Tag" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + EventTimeEnd string `position:"Query" name:"EventTime.End"` + HealthStatus string `position:"Query" name:"HealthStatus"` + EventType string `position:"Query" name:"EventType"` + Status string `position:"Query" name:"Status"` +} + +// DescribeDisksFullStatusTag is a repeated param struct in DescribeDisksFullStatusRequest +type DescribeDisksFullStatusTag struct { + Key string `name:"Key"` + Value string `name:"Value"` } // DescribeDisksFullStatusResponse is the response struct for api DescribeDisksFullStatus type DescribeDisksFullStatusResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` DiskFullStatusSet DiskFullStatusSet `json:"DiskFullStatusSet" xml:"DiskFullStatusSet"` } @@ -107,6 +110,7 @@ func CreateDescribeDisksFullStatusRequest() (request *DescribeDisksFullStatusReq RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeDisksFullStatus", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_eip_addresses.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_eip_addresses.go index 6f72aff3..cdfcb870 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_eip_addresses.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_eip_addresses.go @@ -21,7 +21,6 @@ import ( ) // DescribeEipAddresses invokes the ecs.DescribeEipAddresses API synchronously -// api document: https://help.aliyun.com/api/ecs/describeeipaddresses.html func (client *Client) DescribeEipAddresses(request *DescribeEipAddressesRequest) (response *DescribeEipAddressesResponse, err error) { response = CreateDescribeEipAddressesResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeEipAddresses(request *DescribeEipAddressesRequest) } // DescribeEipAddressesWithChan invokes the ecs.DescribeEipAddresses API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeeipaddresses.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeEipAddressesWithChan(request *DescribeEipAddressesRequest) (<-chan *DescribeEipAddressesResponse, <-chan error) { responseChan := make(chan *DescribeEipAddressesResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeEipAddressesWithChan(request *DescribeEipAddresses } // DescribeEipAddressesWithCallback invokes the ecs.DescribeEipAddresses API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeeipaddresses.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeEipAddressesWithCallback(request *DescribeEipAddressesRequest, callback func(response *DescribeEipAddressesResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,20 +72,20 @@ func (client *Client) DescribeEipAddressesWithCallback(request *DescribeEipAddre type DescribeEipAddressesRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` Filter2Value string `position:"Query" name:"Filter.2.Value"` ISP string `position:"Query" name:"ISP"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` AllocationId string `position:"Query" name:"AllocationId"` - Filter1Value string `position:"Query" name:"Filter.1.Value"` - Filter2Key string `position:"Query" name:"Filter.2.Key"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` EipAddress string `position:"Query" name:"EipAddress"` PageNumber requests.Integer `position:"Query" name:"PageNumber"` LockReason string `position:"Query" name:"LockReason"` Filter1Key string `position:"Query" name:"Filter.1.Key"` AssociatedInstanceType string `position:"Query" name:"AssociatedInstanceType"` PageSize requests.Integer `position:"Query" name:"PageSize"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Filter1Value string `position:"Query" name:"Filter.1.Value"` + Filter2Key string `position:"Query" name:"Filter.2.Key"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` ChargeType string `position:"Query" name:"ChargeType"` AssociatedInstanceId string `position:"Query" name:"AssociatedInstanceId"` Status string `position:"Query" name:"Status"` @@ -99,10 +94,10 @@ type DescribeEipAddressesRequest struct { // DescribeEipAddressesResponse is the response struct for api DescribeEipAddresses type DescribeEipAddressesResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` EipAddresses EipAddresses `json:"EipAddresses" xml:"EipAddresses"` } @@ -112,6 +107,7 @@ func CreateDescribeEipAddressesRequest() (request *DescribeEipAddressesRequest) RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeEipAddresses", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_eip_monitor_data.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_eip_monitor_data.go index 4efa1d89..cb37c4e5 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_eip_monitor_data.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_eip_monitor_data.go @@ -21,7 +21,6 @@ import ( ) // DescribeEipMonitorData invokes the ecs.DescribeEipMonitorData API synchronously -// api document: https://help.aliyun.com/api/ecs/describeeipmonitordata.html func (client *Client) DescribeEipMonitorData(request *DescribeEipMonitorDataRequest) (response *DescribeEipMonitorDataResponse, err error) { response = CreateDescribeEipMonitorDataResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeEipMonitorData(request *DescribeEipMonitorDataRequ } // DescribeEipMonitorDataWithChan invokes the ecs.DescribeEipMonitorData API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeeipmonitordata.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeEipMonitorDataWithChan(request *DescribeEipMonitorDataRequest) (<-chan *DescribeEipMonitorDataResponse, <-chan error) { responseChan := make(chan *DescribeEipMonitorDataResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeEipMonitorDataWithChan(request *DescribeEipMonitor } // DescribeEipMonitorDataWithCallback invokes the ecs.DescribeEipMonitorData API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeeipmonitordata.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeEipMonitorDataWithCallback(request *DescribeEipMonitorDataRequest, callback func(response *DescribeEipMonitorDataResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,12 +72,12 @@ func (client *Client) DescribeEipMonitorDataWithCallback(request *DescribeEipMon type DescribeEipMonitorDataRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + AllocationId string `position:"Query" name:"AllocationId"` + StartTime string `position:"Query" name:"StartTime"` Period requests.Integer `position:"Query" name:"Period"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` EndTime string `position:"Query" name:"EndTime"` - AllocationId string `position:"Query" name:"AllocationId"` - StartTime string `position:"Query" name:"StartTime"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` } @@ -99,6 +94,7 @@ func CreateDescribeEipMonitorDataRequest() (request *DescribeEipMonitorDataReque RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeEipMonitorData", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_elasticity_assurance_instances.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_elasticity_assurance_instances.go new file mode 100644 index 00000000..0c3ef64f --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_elasticity_assurance_instances.go @@ -0,0 +1,110 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeElasticityAssuranceInstances invokes the ecs.DescribeElasticityAssuranceInstances API synchronously +func (client *Client) DescribeElasticityAssuranceInstances(request *DescribeElasticityAssuranceInstancesRequest) (response *DescribeElasticityAssuranceInstancesResponse, err error) { + response = CreateDescribeElasticityAssuranceInstancesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeElasticityAssuranceInstancesWithChan invokes the ecs.DescribeElasticityAssuranceInstances API asynchronously +func (client *Client) DescribeElasticityAssuranceInstancesWithChan(request *DescribeElasticityAssuranceInstancesRequest) (<-chan *DescribeElasticityAssuranceInstancesResponse, <-chan error) { + responseChan := make(chan *DescribeElasticityAssuranceInstancesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeElasticityAssuranceInstances(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeElasticityAssuranceInstancesWithCallback invokes the ecs.DescribeElasticityAssuranceInstances API asynchronously +func (client *Client) DescribeElasticityAssuranceInstancesWithCallback(request *DescribeElasticityAssuranceInstancesRequest, callback func(response *DescribeElasticityAssuranceInstancesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeElasticityAssuranceInstancesResponse + var err error + defer close(result) + response, err = client.DescribeElasticityAssuranceInstances(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeElasticityAssuranceInstancesRequest is the request struct for api DescribeElasticityAssuranceInstances +type DescribeElasticityAssuranceInstancesRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + NextToken string `position:"Query" name:"NextToken"` + PrivatePoolOptionsId string `position:"Query" name:"PrivatePoolOptions.Id"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + MaxResults requests.Integer `position:"Query" name:"MaxResults"` + PackageType string `position:"Query" name:"PackageType"` +} + +// DescribeElasticityAssuranceInstancesResponse is the response struct for api DescribeElasticityAssuranceInstances +type DescribeElasticityAssuranceInstancesResponse struct { + *responses.BaseResponse + NextToken string `json:"NextToken" xml:"NextToken"` + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + MaxResults int `json:"MaxResults" xml:"MaxResults"` + ElasticityAssuranceItem ElasticityAssuranceItemInDescribeElasticityAssuranceInstances `json:"ElasticityAssuranceItem" xml:"ElasticityAssuranceItem"` +} + +// CreateDescribeElasticityAssuranceInstancesRequest creates a request to invoke DescribeElasticityAssuranceInstances API +func CreateDescribeElasticityAssuranceInstancesRequest() (request *DescribeElasticityAssuranceInstancesRequest) { + request = &DescribeElasticityAssuranceInstancesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeElasticityAssuranceInstances", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeElasticityAssuranceInstancesResponse creates a response to parse from DescribeElasticityAssuranceInstances response +func CreateDescribeElasticityAssuranceInstancesResponse() (response *DescribeElasticityAssuranceInstancesResponse) { + response = &DescribeElasticityAssuranceInstancesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_elasticity_assurances.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_elasticity_assurances.go new file mode 100644 index 00000000..3674fed8 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_elasticity_assurances.go @@ -0,0 +1,123 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeElasticityAssurances invokes the ecs.DescribeElasticityAssurances API synchronously +func (client *Client) DescribeElasticityAssurances(request *DescribeElasticityAssurancesRequest) (response *DescribeElasticityAssurancesResponse, err error) { + response = CreateDescribeElasticityAssurancesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeElasticityAssurancesWithChan invokes the ecs.DescribeElasticityAssurances API asynchronously +func (client *Client) DescribeElasticityAssurancesWithChan(request *DescribeElasticityAssurancesRequest) (<-chan *DescribeElasticityAssurancesResponse, <-chan error) { + responseChan := make(chan *DescribeElasticityAssurancesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeElasticityAssurances(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeElasticityAssurancesWithCallback invokes the ecs.DescribeElasticityAssurances API asynchronously +func (client *Client) DescribeElasticityAssurancesWithCallback(request *DescribeElasticityAssurancesRequest, callback func(response *DescribeElasticityAssurancesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeElasticityAssurancesResponse + var err error + defer close(result) + response, err = client.DescribeElasticityAssurances(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeElasticityAssurancesRequest is the request struct for api DescribeElasticityAssurances +type DescribeElasticityAssurancesRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Platform string `position:"Query" name:"Platform"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + NextToken string `position:"Query" name:"NextToken"` + InstanceType string `position:"Query" name:"InstanceType"` + Tag *[]DescribeElasticityAssurancesTag `position:"Query" name:"Tag" type:"Repeated"` + InstanceChargeType string `position:"Query" name:"InstanceChargeType"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PrivatePoolOptionsIds string `position:"Query" name:"PrivatePoolOptions.Ids"` + MaxResults requests.Integer `position:"Query" name:"MaxResults"` + ZoneId string `position:"Query" name:"ZoneId"` + PackageType string `position:"Query" name:"PackageType"` + Status string `position:"Query" name:"Status"` +} + +// DescribeElasticityAssurancesTag is a repeated param struct in DescribeElasticityAssurancesRequest +type DescribeElasticityAssurancesTag struct { + Key string `name:"Key"` + Value string `name:"Value"` +} + +// DescribeElasticityAssurancesResponse is the response struct for api DescribeElasticityAssurances +type DescribeElasticityAssurancesResponse struct { + *responses.BaseResponse + NextToken string `json:"NextToken" xml:"NextToken"` + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + MaxResults int `json:"MaxResults" xml:"MaxResults"` + ElasticityAssuranceSet ElasticityAssuranceSet `json:"ElasticityAssuranceSet" xml:"ElasticityAssuranceSet"` +} + +// CreateDescribeElasticityAssurancesRequest creates a request to invoke DescribeElasticityAssurances API +func CreateDescribeElasticityAssurancesRequest() (request *DescribeElasticityAssurancesRequest) { + request = &DescribeElasticityAssurancesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeElasticityAssurances", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeElasticityAssurancesResponse creates a response to parse from DescribeElasticityAssurances response +func CreateDescribeElasticityAssurancesResponse() (response *DescribeElasticityAssurancesResponse) { + response = &DescribeElasticityAssurancesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_eni_monitor_data.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_eni_monitor_data.go index 75c143c8..d909b803 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_eni_monitor_data.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_eni_monitor_data.go @@ -21,7 +21,6 @@ import ( ) // DescribeEniMonitorData invokes the ecs.DescribeEniMonitorData API synchronously -// api document: https://help.aliyun.com/api/ecs/describeenimonitordata.html func (client *Client) DescribeEniMonitorData(request *DescribeEniMonitorDataRequest) (response *DescribeEniMonitorDataResponse, err error) { response = CreateDescribeEniMonitorDataResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeEniMonitorData(request *DescribeEniMonitorDataRequ } // DescribeEniMonitorDataWithChan invokes the ecs.DescribeEniMonitorData API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeenimonitordata.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeEniMonitorDataWithChan(request *DescribeEniMonitorDataRequest) (<-chan *DescribeEniMonitorDataResponse, <-chan error) { responseChan := make(chan *DescribeEniMonitorDataResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeEniMonitorDataWithChan(request *DescribeEniMonitor } // DescribeEniMonitorDataWithCallback invokes the ecs.DescribeEniMonitorData API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeenimonitordata.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeEniMonitorDataWithCallback(request *DescribeEniMonitorDataRequest, callback func(response *DescribeEniMonitorDataResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -90,8 +85,8 @@ type DescribeEniMonitorDataRequest struct { // DescribeEniMonitorDataResponse is the response struct for api DescribeEniMonitorData type DescribeEniMonitorDataResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` TotalCount int `json:"TotalCount" xml:"TotalCount"` + RequestId string `json:"RequestId" xml:"RequestId"` MonitorData MonitorDataInDescribeEniMonitorData `json:"MonitorData" xml:"MonitorData"` } @@ -101,6 +96,7 @@ func CreateDescribeEniMonitorDataRequest() (request *DescribeEniMonitorDataReque RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeEniMonitorData", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_fleet_history.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_fleet_history.go deleted file mode 100644 index 97c75483..00000000 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_fleet_history.go +++ /dev/null @@ -1,111 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeFleetHistory invokes the ecs.DescribeFleetHistory API synchronously -// api document: https://help.aliyun.com/api/ecs/describefleethistory.html -func (client *Client) DescribeFleetHistory(request *DescribeFleetHistoryRequest) (response *DescribeFleetHistoryResponse, err error) { - response = CreateDescribeFleetHistoryResponse() - err = client.DoAction(request, response) - return -} - -// DescribeFleetHistoryWithChan invokes the ecs.DescribeFleetHistory API asynchronously -// api document: https://help.aliyun.com/api/ecs/describefleethistory.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html -func (client *Client) DescribeFleetHistoryWithChan(request *DescribeFleetHistoryRequest) (<-chan *DescribeFleetHistoryResponse, <-chan error) { - responseChan := make(chan *DescribeFleetHistoryResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeFleetHistory(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeFleetHistoryWithCallback invokes the ecs.DescribeFleetHistory API asynchronously -// api document: https://help.aliyun.com/api/ecs/describefleethistory.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html -func (client *Client) DescribeFleetHistoryWithCallback(request *DescribeFleetHistoryRequest, callback func(response *DescribeFleetHistoryResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeFleetHistoryResponse - var err error - defer close(result) - response, err = client.DescribeFleetHistory(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeFleetHistoryRequest is the request struct for api DescribeFleetHistory -type DescribeFleetHistoryRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - FleetId string `position:"Query" name:"FleetId"` -} - -// DescribeFleetHistoryResponse is the response struct for api DescribeFleetHistory -type DescribeFleetHistoryResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` - FleetHistorys FleetHistorys `json:"FleetHistorys" xml:"FleetHistorys"` -} - -// CreateDescribeFleetHistoryRequest creates a request to invoke DescribeFleetHistory API -func CreateDescribeFleetHistoryRequest() (request *DescribeFleetHistoryRequest) { - request = &DescribeFleetHistoryRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeFleetHistory", "ecs", "openAPI") - return -} - -// CreateDescribeFleetHistoryResponse creates a response to parse from DescribeFleetHistory response -func CreateDescribeFleetHistoryResponse() (response *DescribeFleetHistoryResponse) { - response = &DescribeFleetHistoryResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_fleet_instances.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_fleet_instances.go deleted file mode 100644 index 0215624e..00000000 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_fleet_instances.go +++ /dev/null @@ -1,113 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeFleetInstances invokes the ecs.DescribeFleetInstances API synchronously -// api document: https://help.aliyun.com/api/ecs/describefleetinstances.html -func (client *Client) DescribeFleetInstances(request *DescribeFleetInstancesRequest) (response *DescribeFleetInstancesResponse, err error) { - response = CreateDescribeFleetInstancesResponse() - err = client.DoAction(request, response) - return -} - -// DescribeFleetInstancesWithChan invokes the ecs.DescribeFleetInstances API asynchronously -// api document: https://help.aliyun.com/api/ecs/describefleetinstances.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html -func (client *Client) DescribeFleetInstancesWithChan(request *DescribeFleetInstancesRequest) (<-chan *DescribeFleetInstancesResponse, <-chan error) { - responseChan := make(chan *DescribeFleetInstancesResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeFleetInstances(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeFleetInstancesWithCallback invokes the ecs.DescribeFleetInstances API asynchronously -// api document: https://help.aliyun.com/api/ecs/describefleetinstances.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html -func (client *Client) DescribeFleetInstancesWithCallback(request *DescribeFleetInstancesRequest, callback func(response *DescribeFleetInstancesResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeFleetInstancesResponse - var err error - defer close(result) - response, err = client.DescribeFleetInstances(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeFleetInstancesRequest is the request struct for api DescribeFleetInstances -type DescribeFleetInstancesRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - FleetId string `position:"Query" name:"FleetId"` -} - -// DescribeFleetInstancesResponse is the response struct for api DescribeFleetInstances -type DescribeFleetInstancesResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` - Instances InstancesInDescribeFleetInstances `json:"Instances" xml:"Instances"` -} - -// CreateDescribeFleetInstancesRequest creates a request to invoke DescribeFleetInstances API -func CreateDescribeFleetInstancesRequest() (request *DescribeFleetInstancesRequest) { - request = &DescribeFleetInstancesRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeFleetInstances", "ecs", "openAPI") - return -} - -// CreateDescribeFleetInstancesResponse creates a response to parse from DescribeFleetInstances response -func CreateDescribeFleetInstancesResponse() (response *DescribeFleetInstancesResponse) { - response = &DescribeFleetInstancesResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_fleets.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_fleets.go deleted file mode 100644 index 04fd9e85..00000000 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_fleets.go +++ /dev/null @@ -1,115 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeFleets invokes the ecs.DescribeFleets API synchronously -// api document: https://help.aliyun.com/api/ecs/describefleets.html -func (client *Client) DescribeFleets(request *DescribeFleetsRequest) (response *DescribeFleetsResponse, err error) { - response = CreateDescribeFleetsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeFleetsWithChan invokes the ecs.DescribeFleets API asynchronously -// api document: https://help.aliyun.com/api/ecs/describefleets.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html -func (client *Client) DescribeFleetsWithChan(request *DescribeFleetsRequest) (<-chan *DescribeFleetsResponse, <-chan error) { - responseChan := make(chan *DescribeFleetsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeFleets(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeFleetsWithCallback invokes the ecs.DescribeFleets API asynchronously -// api document: https://help.aliyun.com/api/ecs/describefleets.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html -func (client *Client) DescribeFleetsWithCallback(request *DescribeFleetsRequest, callback func(response *DescribeFleetsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeFleetsResponse - var err error - defer close(result) - response, err = client.DescribeFleets(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeFleetsRequest is the request struct for api DescribeFleets -type DescribeFleetsRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - FleetName string `position:"Query" name:"FleetName"` - FleetStatus *[]string `position:"Query" name:"FleetStatus" type:"Repeated"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - FleetId *[]string `position:"Query" name:"FleetId" type:"Repeated"` -} - -// DescribeFleetsResponse is the response struct for api DescribeFleets -type DescribeFleetsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` - Fleets Fleets `json:"Fleets" xml:"Fleets"` -} - -// CreateDescribeFleetsRequest creates a request to invoke DescribeFleets API -func CreateDescribeFleetsRequest() (request *DescribeFleetsRequest) { - request = &DescribeFleetsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeFleets", "ecs", "openAPI") - return -} - -// CreateDescribeFleetsResponse creates a response to parse from DescribeFleets response -func CreateDescribeFleetsResponse() (response *DescribeFleetsResponse) { - response = &DescribeFleetsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_forward_table_entries.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_forward_table_entries.go index 674c9296..a1f41e4b 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_forward_table_entries.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_forward_table_entries.go @@ -21,7 +21,6 @@ import ( ) // DescribeForwardTableEntries invokes the ecs.DescribeForwardTableEntries API synchronously -// api document: https://help.aliyun.com/api/ecs/describeforwardtableentries.html func (client *Client) DescribeForwardTableEntries(request *DescribeForwardTableEntriesRequest) (response *DescribeForwardTableEntriesResponse, err error) { response = CreateDescribeForwardTableEntriesResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeForwardTableEntries(request *DescribeForwardTableE } // DescribeForwardTableEntriesWithChan invokes the ecs.DescribeForwardTableEntries API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeforwardtableentries.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeForwardTableEntriesWithChan(request *DescribeForwardTableEntriesRequest) (<-chan *DescribeForwardTableEntriesResponse, <-chan error) { responseChan := make(chan *DescribeForwardTableEntriesResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeForwardTableEntriesWithChan(request *DescribeForwa } // DescribeForwardTableEntriesWithCallback invokes the ecs.DescribeForwardTableEntries API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeforwardtableentries.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeForwardTableEntriesWithCallback(request *DescribeForwardTableEntriesRequest, callback func(response *DescribeForwardTableEntriesResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,22 +72,22 @@ func (client *Client) DescribeForwardTableEntriesWithCallback(request *DescribeF type DescribeForwardTableEntriesRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - ForwardEntryId string `position:"Query" name:"ForwardEntryId"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` ForwardTableId string `position:"Query" name:"ForwardTableId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + ForwardEntryId string `position:"Query" name:"ForwardEntryId"` PageSize requests.Integer `position:"Query" name:"PageSize"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` } // DescribeForwardTableEntriesResponse is the response struct for api DescribeForwardTableEntries type DescribeForwardTableEntriesResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` ForwardTableEntries ForwardTableEntries `json:"ForwardTableEntries" xml:"ForwardTableEntries"` } @@ -102,6 +97,7 @@ func CreateDescribeForwardTableEntriesRequest() (request *DescribeForwardTableEn RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeForwardTableEntries", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_ha_vips.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_ha_vips.go index 9dbe5b13..960e0a02 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_ha_vips.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_ha_vips.go @@ -21,7 +21,6 @@ import ( ) // DescribeHaVips invokes the ecs.DescribeHaVips API synchronously -// api document: https://help.aliyun.com/api/ecs/describehavips.html func (client *Client) DescribeHaVips(request *DescribeHaVipsRequest) (response *DescribeHaVipsResponse, err error) { response = CreateDescribeHaVipsResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeHaVips(request *DescribeHaVipsRequest) (response * } // DescribeHaVipsWithChan invokes the ecs.DescribeHaVips API asynchronously -// api document: https://help.aliyun.com/api/ecs/describehavips.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeHaVipsWithChan(request *DescribeHaVipsRequest) (<-chan *DescribeHaVipsResponse, <-chan error) { responseChan := make(chan *DescribeHaVipsResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeHaVipsWithChan(request *DescribeHaVipsRequest) (<- } // DescribeHaVipsWithCallback invokes the ecs.DescribeHaVips API asynchronously -// api document: https://help.aliyun.com/api/ecs/describehavips.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeHaVipsWithCallback(request *DescribeHaVipsRequest, callback func(response *DescribeHaVipsResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,13 +71,13 @@ func (client *Client) DescribeHaVipsWithCallback(request *DescribeHaVipsRequest, // DescribeHaVipsRequest is the request struct for api DescribeHaVips type DescribeHaVipsRequest struct { *requests.RpcRequest - Filter *[]DescribeHaVipsFilter `position:"Query" name:"Filter" type:"Repeated"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - PageSize requests.Integer `position:"Query" name:"PageSize"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` + Filter *[]DescribeHaVipsFilter `position:"Query" name:"Filter" type:"Repeated"` } // DescribeHaVipsFilter is a repeated param struct in DescribeHaVipsRequest @@ -94,10 +89,10 @@ type DescribeHaVipsFilter struct { // DescribeHaVipsResponse is the response struct for api DescribeHaVips type DescribeHaVipsResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` HaVips HaVips `json:"HaVips" xml:"HaVips"` } @@ -107,6 +102,7 @@ func CreateDescribeHaVipsRequest() (request *DescribeHaVipsRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeHaVips", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_hpc_clusters.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_hpc_clusters.go index 637ddc07..7f4de191 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_hpc_clusters.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_hpc_clusters.go @@ -21,7 +21,6 @@ import ( ) // DescribeHpcClusters invokes the ecs.DescribeHpcClusters API synchronously -// api document: https://help.aliyun.com/api/ecs/describehpcclusters.html func (client *Client) DescribeHpcClusters(request *DescribeHpcClustersRequest) (response *DescribeHpcClustersResponse, err error) { response = CreateDescribeHpcClustersResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeHpcClusters(request *DescribeHpcClustersRequest) ( } // DescribeHpcClustersWithChan invokes the ecs.DescribeHpcClusters API asynchronously -// api document: https://help.aliyun.com/api/ecs/describehpcclusters.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeHpcClustersWithChan(request *DescribeHpcClustersRequest) (<-chan *DescribeHpcClustersResponse, <-chan error) { responseChan := make(chan *DescribeHpcClustersResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeHpcClustersWithChan(request *DescribeHpcClustersRe } // DescribeHpcClustersWithCallback invokes the ecs.DescribeHpcClusters API asynchronously -// api document: https://help.aliyun.com/api/ecs/describehpcclusters.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeHpcClustersWithCallback(request *DescribeHpcClustersRequest, callback func(response *DescribeHpcClustersResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -89,10 +84,10 @@ type DescribeHpcClustersRequest struct { // DescribeHpcClustersResponse is the response struct for api DescribeHpcClusters type DescribeHpcClustersResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` HpcClusters HpcClusters `json:"HpcClusters" xml:"HpcClusters"` } @@ -102,6 +97,7 @@ func CreateDescribeHpcClustersRequest() (request *DescribeHpcClustersRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeHpcClusters", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_components.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_components.go new file mode 100644 index 00000000..0350c30d --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_components.go @@ -0,0 +1,119 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeImageComponents invokes the ecs.DescribeImageComponents API synchronously +func (client *Client) DescribeImageComponents(request *DescribeImageComponentsRequest) (response *DescribeImageComponentsResponse, err error) { + response = CreateDescribeImageComponentsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeImageComponentsWithChan invokes the ecs.DescribeImageComponents API asynchronously +func (client *Client) DescribeImageComponentsWithChan(request *DescribeImageComponentsRequest) (<-chan *DescribeImageComponentsResponse, <-chan error) { + responseChan := make(chan *DescribeImageComponentsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeImageComponents(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeImageComponentsWithCallback invokes the ecs.DescribeImageComponents API asynchronously +func (client *Client) DescribeImageComponentsWithCallback(request *DescribeImageComponentsRequest, callback func(response *DescribeImageComponentsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeImageComponentsResponse + var err error + defer close(result) + response, err = client.DescribeImageComponents(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeImageComponentsRequest is the request struct for api DescribeImageComponents +type DescribeImageComponentsRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ImageComponentId *[]string `position:"Query" name:"ImageComponentId" type:"Repeated"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + NextToken string `position:"Query" name:"NextToken"` + Tag *[]DescribeImageComponentsTag `position:"Query" name:"Tag" type:"Repeated"` + Owner string `position:"Query" name:"Owner"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Name string `position:"Query" name:"Name"` + MaxResults requests.Integer `position:"Query" name:"MaxResults"` +} + +// DescribeImageComponentsTag is a repeated param struct in DescribeImageComponentsRequest +type DescribeImageComponentsTag struct { + Key string `name:"Key"` + Value string `name:"Value"` +} + +// DescribeImageComponentsResponse is the response struct for api DescribeImageComponents +type DescribeImageComponentsResponse struct { + *responses.BaseResponse + NextToken string `json:"NextToken" xml:"NextToken"` + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + MaxResults int `json:"MaxResults" xml:"MaxResults"` + ImageComponent ImageComponent `json:"ImageComponent" xml:"ImageComponent"` +} + +// CreateDescribeImageComponentsRequest creates a request to invoke DescribeImageComponents API +func CreateDescribeImageComponentsRequest() (request *DescribeImageComponentsRequest) { + request = &DescribeImageComponentsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeImageComponents", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeImageComponentsResponse creates a response to parse from DescribeImageComponents response +func CreateDescribeImageComponentsResponse() (response *DescribeImageComponentsResponse) { + response = &DescribeImageComponentsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_from_family.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_from_family.go new file mode 100644 index 00000000..85cfe891 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_from_family.go @@ -0,0 +1,104 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeImageFromFamily invokes the ecs.DescribeImageFromFamily API synchronously +func (client *Client) DescribeImageFromFamily(request *DescribeImageFromFamilyRequest) (response *DescribeImageFromFamilyResponse, err error) { + response = CreateDescribeImageFromFamilyResponse() + err = client.DoAction(request, response) + return +} + +// DescribeImageFromFamilyWithChan invokes the ecs.DescribeImageFromFamily API asynchronously +func (client *Client) DescribeImageFromFamilyWithChan(request *DescribeImageFromFamilyRequest) (<-chan *DescribeImageFromFamilyResponse, <-chan error) { + responseChan := make(chan *DescribeImageFromFamilyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeImageFromFamily(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeImageFromFamilyWithCallback invokes the ecs.DescribeImageFromFamily API asynchronously +func (client *Client) DescribeImageFromFamilyWithCallback(request *DescribeImageFromFamilyRequest, callback func(response *DescribeImageFromFamilyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeImageFromFamilyResponse + var err error + defer close(result) + response, err = client.DescribeImageFromFamily(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeImageFromFamilyRequest is the request struct for api DescribeImageFromFamily +type DescribeImageFromFamilyRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ImageFamily string `position:"Query" name:"ImageFamily"` +} + +// DescribeImageFromFamilyResponse is the response struct for api DescribeImageFromFamily +type DescribeImageFromFamilyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Image Image `json:"Image" xml:"Image"` +} + +// CreateDescribeImageFromFamilyRequest creates a request to invoke DescribeImageFromFamily API +func CreateDescribeImageFromFamilyRequest() (request *DescribeImageFromFamilyRequest) { + request = &DescribeImageFromFamilyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeImageFromFamily", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeImageFromFamilyResponse creates a response to parse from DescribeImageFromFamily response +func CreateDescribeImageFromFamilyResponse() (response *DescribeImageFromFamilyResponse) { + response = &DescribeImageFromFamilyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_pipeline_executions.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_pipeline_executions.go new file mode 100644 index 00000000..f29b7ba6 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_pipeline_executions.go @@ -0,0 +1,118 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeImagePipelineExecutions invokes the ecs.DescribeImagePipelineExecutions API synchronously +func (client *Client) DescribeImagePipelineExecutions(request *DescribeImagePipelineExecutionsRequest) (response *DescribeImagePipelineExecutionsResponse, err error) { + response = CreateDescribeImagePipelineExecutionsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeImagePipelineExecutionsWithChan invokes the ecs.DescribeImagePipelineExecutions API asynchronously +func (client *Client) DescribeImagePipelineExecutionsWithChan(request *DescribeImagePipelineExecutionsRequest) (<-chan *DescribeImagePipelineExecutionsResponse, <-chan error) { + responseChan := make(chan *DescribeImagePipelineExecutionsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeImagePipelineExecutions(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeImagePipelineExecutionsWithCallback invokes the ecs.DescribeImagePipelineExecutions API asynchronously +func (client *Client) DescribeImagePipelineExecutionsWithCallback(request *DescribeImagePipelineExecutionsRequest, callback func(response *DescribeImagePipelineExecutionsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeImagePipelineExecutionsResponse + var err error + defer close(result) + response, err = client.DescribeImagePipelineExecutions(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeImagePipelineExecutionsRequest is the request struct for api DescribeImagePipelineExecutions +type DescribeImagePipelineExecutionsRequest struct { + *requests.RpcRequest + ImagePipelineId string `position:"Query" name:"ImagePipelineId"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ExecutionId string `position:"Query" name:"ExecutionId"` + NextToken string `position:"Query" name:"NextToken"` + Tag *[]DescribeImagePipelineExecutionsTag `position:"Query" name:"Tag" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + MaxResults requests.Integer `position:"Query" name:"MaxResults"` + Status string `position:"Query" name:"Status"` +} + +// DescribeImagePipelineExecutionsTag is a repeated param struct in DescribeImagePipelineExecutionsRequest +type DescribeImagePipelineExecutionsTag struct { + Key string `name:"Key"` + Value string `name:"Value"` +} + +// DescribeImagePipelineExecutionsResponse is the response struct for api DescribeImagePipelineExecutions +type DescribeImagePipelineExecutionsResponse struct { + *responses.BaseResponse + NextToken string `json:"NextToken" xml:"NextToken"` + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + MaxResults int `json:"MaxResults" xml:"MaxResults"` + ImagePipelineExecution ImagePipelineExecution `json:"ImagePipelineExecution" xml:"ImagePipelineExecution"` +} + +// CreateDescribeImagePipelineExecutionsRequest creates a request to invoke DescribeImagePipelineExecutions API +func CreateDescribeImagePipelineExecutionsRequest() (request *DescribeImagePipelineExecutionsRequest) { + request = &DescribeImagePipelineExecutionsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeImagePipelineExecutions", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeImagePipelineExecutionsResponse creates a response to parse from DescribeImagePipelineExecutions response +func CreateDescribeImagePipelineExecutionsResponse() (response *DescribeImagePipelineExecutionsResponse) { + response = &DescribeImagePipelineExecutionsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_pipelines.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_pipelines.go new file mode 100644 index 00000000..a3f63718 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_pipelines.go @@ -0,0 +1,118 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeImagePipelines invokes the ecs.DescribeImagePipelines API synchronously +func (client *Client) DescribeImagePipelines(request *DescribeImagePipelinesRequest) (response *DescribeImagePipelinesResponse, err error) { + response = CreateDescribeImagePipelinesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeImagePipelinesWithChan invokes the ecs.DescribeImagePipelines API asynchronously +func (client *Client) DescribeImagePipelinesWithChan(request *DescribeImagePipelinesRequest) (<-chan *DescribeImagePipelinesResponse, <-chan error) { + responseChan := make(chan *DescribeImagePipelinesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeImagePipelines(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeImagePipelinesWithCallback invokes the ecs.DescribeImagePipelines API asynchronously +func (client *Client) DescribeImagePipelinesWithCallback(request *DescribeImagePipelinesRequest, callback func(response *DescribeImagePipelinesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeImagePipelinesResponse + var err error + defer close(result) + response, err = client.DescribeImagePipelines(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeImagePipelinesRequest is the request struct for api DescribeImagePipelines +type DescribeImagePipelinesRequest struct { + *requests.RpcRequest + ImagePipelineId *[]string `position:"Query" name:"ImagePipelineId" type:"Repeated"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + NextToken string `position:"Query" name:"NextToken"` + Tag *[]DescribeImagePipelinesTag `position:"Query" name:"Tag" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Name string `position:"Query" name:"Name"` + MaxResults requests.Integer `position:"Query" name:"MaxResults"` +} + +// DescribeImagePipelinesTag is a repeated param struct in DescribeImagePipelinesRequest +type DescribeImagePipelinesTag struct { + Key string `name:"Key"` + Value string `name:"Value"` +} + +// DescribeImagePipelinesResponse is the response struct for api DescribeImagePipelines +type DescribeImagePipelinesResponse struct { + *responses.BaseResponse + NextToken string `json:"NextToken" xml:"NextToken"` + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + MaxResults int `json:"MaxResults" xml:"MaxResults"` + ImagePipeline ImagePipeline `json:"ImagePipeline" xml:"ImagePipeline"` +} + +// CreateDescribeImagePipelinesRequest creates a request to invoke DescribeImagePipelines API +func CreateDescribeImagePipelinesRequest() (request *DescribeImagePipelinesRequest) { + request = &DescribeImagePipelinesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeImagePipelines", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeImagePipelinesResponse creates a response to parse from DescribeImagePipelines response +func CreateDescribeImagePipelinesResponse() (response *DescribeImagePipelinesResponse) { + response = &DescribeImagePipelinesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_share_permission.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_share_permission.go index ff10b8d4..fd26de11 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_share_permission.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_share_permission.go @@ -21,7 +21,6 @@ import ( ) // DescribeImageSharePermission invokes the ecs.DescribeImageSharePermission API synchronously -// api document: https://help.aliyun.com/api/ecs/describeimagesharepermission.html func (client *Client) DescribeImageSharePermission(request *DescribeImageSharePermissionRequest) (response *DescribeImageSharePermissionResponse, err error) { response = CreateDescribeImageSharePermissionResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeImageSharePermission(request *DescribeImageSharePe } // DescribeImageSharePermissionWithChan invokes the ecs.DescribeImageSharePermission API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeimagesharepermission.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeImageSharePermissionWithChan(request *DescribeImageSharePermissionRequest) (<-chan *DescribeImageSharePermissionResponse, <-chan error) { responseChan := make(chan *DescribeImageSharePermissionResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeImageSharePermissionWithChan(request *DescribeImag } // DescribeImageSharePermissionWithCallback invokes the ecs.DescribeImageSharePermission API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeimagesharepermission.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeImageSharePermissionWithCallback(request *DescribeImageSharePermissionRequest, callback func(response *DescribeImageSharePermissionResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -78,22 +73,22 @@ type DescribeImageSharePermissionRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` ImageId string `position:"Query" name:"ImageId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - PageSize requests.Integer `position:"Query" name:"PageSize"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` } // DescribeImageSharePermissionResponse is the response struct for api DescribeImageSharePermission type DescribeImageSharePermissionResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` - RegionId string `json:"RegionId" xml:"RegionId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` ImageId string `json:"ImageId" xml:"ImageId"` + RegionId string `json:"RegionId" xml:"RegionId"` ShareGroups ShareGroups `json:"ShareGroups" xml:"ShareGroups"` Accounts Accounts `json:"Accounts" xml:"Accounts"` } @@ -104,6 +99,7 @@ func CreateDescribeImageSharePermissionRequest() (request *DescribeImageSharePer RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeImageSharePermission", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_support_instance_types.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_support_instance_types.go index bb11efd6..1bb4cf1b 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_support_instance_types.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_image_support_instance_types.go @@ -21,7 +21,6 @@ import ( ) // DescribeImageSupportInstanceTypes invokes the ecs.DescribeImageSupportInstanceTypes API synchronously -// api document: https://help.aliyun.com/api/ecs/describeimagesupportinstancetypes.html func (client *Client) DescribeImageSupportInstanceTypes(request *DescribeImageSupportInstanceTypesRequest) (response *DescribeImageSupportInstanceTypesResponse, err error) { response = CreateDescribeImageSupportInstanceTypesResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeImageSupportInstanceTypes(request *DescribeImageSu } // DescribeImageSupportInstanceTypesWithChan invokes the ecs.DescribeImageSupportInstanceTypes API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeimagesupportinstancetypes.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeImageSupportInstanceTypesWithChan(request *DescribeImageSupportInstanceTypesRequest) (<-chan *DescribeImageSupportInstanceTypesResponse, <-chan error) { responseChan := make(chan *DescribeImageSupportInstanceTypesResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeImageSupportInstanceTypesWithChan(request *Describ } // DescribeImageSupportInstanceTypesWithCallback invokes the ecs.DescribeImageSupportInstanceTypes API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeimagesupportinstancetypes.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeImageSupportInstanceTypesWithCallback(request *DescribeImageSupportInstanceTypesRequest, callback func(response *DescribeImageSupportInstanceTypesResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,11 +72,11 @@ func (client *Client) DescribeImageSupportInstanceTypesWithCallback(request *Des type DescribeImageSupportInstanceTypesRequest struct { *requests.RpcRequest ActionType string `position:"Query" name:"ActionType"` - Filter *[]DescribeImageSupportInstanceTypesFilter `position:"Query" name:"Filter" type:"Repeated"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` ImageId string `position:"Query" name:"ImageId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Filter *[]DescribeImageSupportInstanceTypesFilter `position:"Query" name:"Filter" type:"Repeated"` } // DescribeImageSupportInstanceTypesFilter is a repeated param struct in DescribeImageSupportInstanceTypesRequest @@ -94,8 +89,8 @@ type DescribeImageSupportInstanceTypesFilter struct { type DescribeImageSupportInstanceTypesResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` - RegionId string `json:"RegionId" xml:"RegionId"` ImageId string `json:"ImageId" xml:"ImageId"` + RegionId string `json:"RegionId" xml:"RegionId"` InstanceTypes InstanceTypesInDescribeImageSupportInstanceTypes `json:"InstanceTypes" xml:"InstanceTypes"` } @@ -105,6 +100,7 @@ func CreateDescribeImageSupportInstanceTypesRequest() (request *DescribeImageSup RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeImageSupportInstanceTypes", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_images.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_images.go index d0b64ab6..51c966d4 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_images.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_images.go @@ -21,7 +21,6 @@ import ( ) // DescribeImages invokes the ecs.DescribeImages API synchronously -// api document: https://help.aliyun.com/api/ecs/describeimages.html func (client *Client) DescribeImages(request *DescribeImagesRequest) (response *DescribeImagesResponse, err error) { response = CreateDescribeImagesResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeImages(request *DescribeImagesRequest) (response * } // DescribeImagesWithChan invokes the ecs.DescribeImages API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeimages.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeImagesWithChan(request *DescribeImagesRequest) (<-chan *DescribeImagesResponse, <-chan error) { responseChan := make(chan *DescribeImagesResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeImagesWithChan(request *DescribeImagesRequest) (<- } // DescribeImagesWithCallback invokes the ecs.DescribeImages API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeimages.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeImagesWithCallback(request *DescribeImagesRequest, callback func(response *DescribeImagesResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,6 +72,7 @@ func (client *Client) DescribeImagesWithCallback(request *DescribeImagesRequest, type DescribeImagesRequest struct { *requests.RpcRequest ActionType string `position:"Query" name:"ActionType"` + ImageOwnerId requests.Integer `position:"Query" name:"ImageOwnerId"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` ImageId string `position:"Query" name:"ImageId"` SnapshotId string `position:"Query" name:"SnapshotId"` @@ -87,6 +83,7 @@ type DescribeImagesRequest struct { IsSupportIoOptimized requests.Boolean `position:"Query" name:"IsSupportIoOptimized"` ImageName string `position:"Query" name:"ImageName"` IsSupportCloudinit requests.Boolean `position:"Query" name:"IsSupportCloudinit"` + IsPublic requests.Boolean `position:"Query" name:"IsPublic"` PageSize requests.Integer `position:"Query" name:"PageSize"` InstanceType string `position:"Query" name:"InstanceType"` Tag *[]DescribeImagesTag `position:"Query" name:"Tag" type:"Repeated"` @@ -98,6 +95,7 @@ type DescribeImagesRequest struct { OSType string `position:"Query" name:"OSType"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` Filter *[]DescribeImagesFilter `position:"Query" name:"Filter" type:"Repeated"` + ImageFamily string `position:"Query" name:"ImageFamily"` Status string `position:"Query" name:"Status"` } @@ -116,11 +114,11 @@ type DescribeImagesFilter struct { // DescribeImagesResponse is the response struct for api DescribeImages type DescribeImagesResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` RequestId string `json:"RequestId" xml:"RequestId"` - RegionId string `json:"RegionId" xml:"RegionId"` TotalCount int `json:"TotalCount" xml:"TotalCount"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + RegionId string `json:"RegionId" xml:"RegionId"` Images Images `json:"Images" xml:"Images"` } @@ -130,6 +128,7 @@ func CreateDescribeImagesRequest() (request *DescribeImagesRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeImages", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_attachment_attributes.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_attachment_attributes.go new file mode 100644 index 00000000..c85df9bb --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_attachment_attributes.go @@ -0,0 +1,109 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeInstanceAttachmentAttributes invokes the ecs.DescribeInstanceAttachmentAttributes API synchronously +func (client *Client) DescribeInstanceAttachmentAttributes(request *DescribeInstanceAttachmentAttributesRequest) (response *DescribeInstanceAttachmentAttributesResponse, err error) { + response = CreateDescribeInstanceAttachmentAttributesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeInstanceAttachmentAttributesWithChan invokes the ecs.DescribeInstanceAttachmentAttributes API asynchronously +func (client *Client) DescribeInstanceAttachmentAttributesWithChan(request *DescribeInstanceAttachmentAttributesRequest) (<-chan *DescribeInstanceAttachmentAttributesResponse, <-chan error) { + responseChan := make(chan *DescribeInstanceAttachmentAttributesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeInstanceAttachmentAttributes(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeInstanceAttachmentAttributesWithCallback invokes the ecs.DescribeInstanceAttachmentAttributes API asynchronously +func (client *Client) DescribeInstanceAttachmentAttributesWithCallback(request *DescribeInstanceAttachmentAttributesRequest, callback func(response *DescribeInstanceAttachmentAttributesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeInstanceAttachmentAttributesResponse + var err error + defer close(result) + response, err = client.DescribeInstanceAttachmentAttributes(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeInstanceAttachmentAttributesRequest is the request struct for api DescribeInstanceAttachmentAttributes +type DescribeInstanceAttachmentAttributesRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceIds string `position:"Query" name:"InstanceIds"` +} + +// DescribeInstanceAttachmentAttributesResponse is the response struct for api DescribeInstanceAttachmentAttributes +type DescribeInstanceAttachmentAttributesResponse struct { + *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + Instances InstancesInDescribeInstanceAttachmentAttributes `json:"Instances" xml:"Instances"` +} + +// CreateDescribeInstanceAttachmentAttributesRequest creates a request to invoke DescribeInstanceAttachmentAttributes API +func CreateDescribeInstanceAttachmentAttributesRequest() (request *DescribeInstanceAttachmentAttributesRequest) { + request = &DescribeInstanceAttachmentAttributesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInstanceAttachmentAttributes", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeInstanceAttachmentAttributesResponse creates a response to parse from DescribeInstanceAttachmentAttributes response +func CreateDescribeInstanceAttachmentAttributesResponse() (response *DescribeInstanceAttachmentAttributesResponse) { + response = &DescribeInstanceAttachmentAttributesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_attribute.go index 66d39908..578d94f3 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_attribute.go @@ -21,7 +21,6 @@ import ( ) // DescribeInstanceAttribute invokes the ecs.DescribeInstanceAttribute API synchronously -// api document: https://help.aliyun.com/api/ecs/describeinstanceattribute.html func (client *Client) DescribeInstanceAttribute(request *DescribeInstanceAttributeRequest) (response *DescribeInstanceAttributeResponse, err error) { response = CreateDescribeInstanceAttributeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeInstanceAttribute(request *DescribeInstanceAttribu } // DescribeInstanceAttributeWithChan invokes the ecs.DescribeInstanceAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeinstanceattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeInstanceAttributeWithChan(request *DescribeInstanceAttributeRequest) (<-chan *DescribeInstanceAttributeResponse, <-chan error) { responseChan := make(chan *DescribeInstanceAttributeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeInstanceAttributeWithChan(request *DescribeInstanc } // DescribeInstanceAttributeWithCallback invokes the ecs.DescribeInstanceAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeinstanceattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeInstanceAttributeWithCallback(request *DescribeInstanceAttributeRequest, callback func(response *DescribeInstanceAttributeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,45 +72,46 @@ func (client *Client) DescribeInstanceAttributeWithCallback(request *DescribeIns type DescribeInstanceAttributeRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` } // DescribeInstanceAttributeResponse is the response struct for api DescribeInstanceAttribute type DescribeInstanceAttributeResponse struct { *responses.BaseResponse + Status string `json:"Status" xml:"Status"` + SerialNumber string `json:"SerialNumber" xml:"SerialNumber"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` RequestId string `json:"RequestId" xml:"RequestId"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` + Description string `json:"Description" xml:"Description"` InstanceName string `json:"InstanceName" xml:"InstanceName"` + InstanceNetworkType string `json:"InstanceNetworkType" xml:"InstanceNetworkType"` + Memory int `json:"Memory" xml:"Memory"` ImageId string `json:"ImageId" xml:"ImageId"` - RegionId string `json:"RegionId" xml:"RegionId"` - ZoneId string `json:"ZoneId" xml:"ZoneId"` ClusterId string `json:"ClusterId" xml:"ClusterId"` - InstanceType string `json:"InstanceType" xml:"InstanceType"` - Cpu int `json:"Cpu" xml:"Cpu"` - Memory int `json:"Memory" xml:"Memory"` + VlanId string `json:"VlanId" xml:"VlanId"` + StoppedMode string `json:"StoppedMode" xml:"StoppedMode"` HostName string `json:"HostName" xml:"HostName"` - Status string `json:"Status" xml:"Status"` - InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + InstanceType string `json:"InstanceType" xml:"InstanceType"` InternetMaxBandwidthIn int `json:"InternetMaxBandwidthIn" xml:"InternetMaxBandwidthIn"` InternetMaxBandwidthOut int `json:"InternetMaxBandwidthOut" xml:"InternetMaxBandwidthOut"` - VlanId string `json:"VlanId" xml:"VlanId"` - SerialNumber string `json:"SerialNumber" xml:"SerialNumber"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - Description string `json:"Description" xml:"Description"` - InstanceNetworkType string `json:"InstanceNetworkType" xml:"InstanceNetworkType"` - IoOptimized string `json:"IoOptimized" xml:"IoOptimized"` + RegionId string `json:"RegionId" xml:"RegionId"` InstanceChargeType string `json:"InstanceChargeType" xml:"InstanceChargeType"` + IoOptimized string `json:"IoOptimized" xml:"IoOptimized"` + Cpu int `json:"Cpu" xml:"Cpu"` ExpiredTime string `json:"ExpiredTime" xml:"ExpiredTime"` - StoppedMode string `json:"StoppedMode" xml:"StoppedMode"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` CreditSpecification string `json:"CreditSpecification" xml:"CreditSpecification"` + EnableJumboFrame bool `json:"EnableJumboFrame" xml:"EnableJumboFrame"` SecurityGroupIds SecurityGroupIdsInDescribeInstanceAttribute `json:"SecurityGroupIds" xml:"SecurityGroupIds"` PublicIpAddress PublicIpAddressInDescribeInstanceAttribute `json:"PublicIpAddress" xml:"PublicIpAddress"` InnerIpAddress InnerIpAddressInDescribeInstanceAttribute `json:"InnerIpAddress" xml:"InnerIpAddress"` VpcAttributes VpcAttributes `json:"VpcAttributes" xml:"VpcAttributes"` - EipAddress EipAddress `json:"EipAddress" xml:"EipAddress"` + EipAddress EipAddressInDescribeInstanceAttribute `json:"EipAddress" xml:"EipAddress"` DedicatedHostAttribute DedicatedHostAttribute `json:"DedicatedHostAttribute" xml:"DedicatedHostAttribute"` OperationLocks OperationLocksInDescribeInstanceAttribute `json:"OperationLocks" xml:"OperationLocks"` } @@ -126,6 +122,7 @@ func CreateDescribeInstanceAttributeRequest() (request *DescribeInstanceAttribut RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInstanceAttribute", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_auto_renew_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_auto_renew_attribute.go index 7f04ff3d..33c639c7 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_auto_renew_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_auto_renew_attribute.go @@ -21,7 +21,6 @@ import ( ) // DescribeInstanceAutoRenewAttribute invokes the ecs.DescribeInstanceAutoRenewAttribute API synchronously -// api document: https://help.aliyun.com/api/ecs/describeinstanceautorenewattribute.html func (client *Client) DescribeInstanceAutoRenewAttribute(request *DescribeInstanceAutoRenewAttributeRequest) (response *DescribeInstanceAutoRenewAttributeResponse, err error) { response = CreateDescribeInstanceAutoRenewAttributeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeInstanceAutoRenewAttribute(request *DescribeInstan } // DescribeInstanceAutoRenewAttributeWithChan invokes the ecs.DescribeInstanceAutoRenewAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeinstanceautorenewattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeInstanceAutoRenewAttributeWithChan(request *DescribeInstanceAutoRenewAttributeRequest) (<-chan *DescribeInstanceAutoRenewAttributeResponse, <-chan error) { responseChan := make(chan *DescribeInstanceAutoRenewAttributeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeInstanceAutoRenewAttributeWithChan(request *Descri } // DescribeInstanceAutoRenewAttributeWithCallback invokes the ecs.DescribeInstanceAutoRenewAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeinstanceautorenewattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeInstanceAutoRenewAttributeWithCallback(request *DescribeInstanceAutoRenewAttributeRequest, callback func(response *DescribeInstanceAutoRenewAttributeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,13 +72,13 @@ func (client *Client) DescribeInstanceAutoRenewAttributeWithCallback(request *De type DescribeInstanceAutoRenewAttributeRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` + PageNumber string `position:"Query" name:"PageNumber"` RenewalStatus string `position:"Query" name:"RenewalStatus"` PageSize string `position:"Query" name:"PageSize"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PageNumber string `position:"Query" name:"PageNumber"` + InstanceId string `position:"Query" name:"InstanceId"` } // DescribeInstanceAutoRenewAttributeResponse is the response struct for api DescribeInstanceAutoRenewAttribute @@ -102,6 +97,7 @@ func CreateDescribeInstanceAutoRenewAttributeRequest() (request *DescribeInstanc RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInstanceAutoRenewAttribute", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_history_events.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_history_events.go index b4ab9f06..68731689 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_history_events.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_history_events.go @@ -21,7 +21,6 @@ import ( ) // DescribeInstanceHistoryEvents invokes the ecs.DescribeInstanceHistoryEvents API synchronously -// api document: https://help.aliyun.com/api/ecs/describeinstancehistoryevents.html func (client *Client) DescribeInstanceHistoryEvents(request *DescribeInstanceHistoryEventsRequest) (response *DescribeInstanceHistoryEventsResponse, err error) { response = CreateDescribeInstanceHistoryEventsResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeInstanceHistoryEvents(request *DescribeInstanceHis } // DescribeInstanceHistoryEventsWithChan invokes the ecs.DescribeInstanceHistoryEvents API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeinstancehistoryevents.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeInstanceHistoryEventsWithChan(request *DescribeInstanceHistoryEventsRequest) (<-chan *DescribeInstanceHistoryEventsResponse, <-chan error) { responseChan := make(chan *DescribeInstanceHistoryEventsResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeInstanceHistoryEventsWithChan(request *DescribeIns } // DescribeInstanceHistoryEventsWithCallback invokes the ecs.DescribeInstanceHistoryEvents API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeinstancehistoryevents.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeInstanceHistoryEventsWithCallback(request *DescribeInstanceHistoryEventsRequest, callback func(response *DescribeInstanceHistoryEventsResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,31 +71,42 @@ func (client *Client) DescribeInstanceHistoryEventsWithCallback(request *Describ // DescribeInstanceHistoryEventsRequest is the request struct for api DescribeInstanceHistoryEvents type DescribeInstanceHistoryEventsRequest struct { *requests.RpcRequest - EventId *[]string `position:"Query" name:"EventId" type:"Repeated"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - EventCycleStatus string `position:"Query" name:"EventCycleStatus"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - InstanceEventCycleStatus *[]string `position:"Query" name:"InstanceEventCycleStatus" type:"Repeated"` - EventPublishTimeEnd string `position:"Query" name:"EventPublishTime.End"` - InstanceEventType *[]string `position:"Query" name:"InstanceEventType" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - NotBeforeStart string `position:"Query" name:"NotBefore.Start"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - EventPublishTimeStart string `position:"Query" name:"EventPublishTime.Start"` - InstanceId string `position:"Query" name:"InstanceId"` - NotBeforeEnd string `position:"Query" name:"NotBefore.End"` - EventType string `position:"Query" name:"EventType"` + EventId *[]string `position:"Query" name:"EventId" type:"Repeated"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + EventCycleStatus string `position:"Query" name:"EventCycleStatus"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + ImpactLevel string `position:"Query" name:"ImpactLevel"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + InstanceEventCycleStatus *[]string `position:"Query" name:"InstanceEventCycleStatus" type:"Repeated"` + Tag *[]DescribeInstanceHistoryEventsTag `position:"Query" name:"Tag" type:"Repeated"` + EventPublishTimeEnd string `position:"Query" name:"EventPublishTime.End"` + ResourceId *[]string `position:"Query" name:"ResourceId" type:"Repeated"` + InstanceEventType *[]string `position:"Query" name:"InstanceEventType" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + NotBeforeStart string `position:"Query" name:"NotBefore.Start"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceType string `position:"Query" name:"ResourceType"` + EventPublishTimeStart string `position:"Query" name:"EventPublishTime.Start"` + InstanceId string `position:"Query" name:"InstanceId"` + NotBeforeEnd string `position:"Query" name:"NotBefore.End"` + EventType string `position:"Query" name:"EventType"` +} + +// DescribeInstanceHistoryEventsTag is a repeated param struct in DescribeInstanceHistoryEventsRequest +type DescribeInstanceHistoryEventsTag struct { + Key string `name:"Key"` + Value string `name:"Value"` } // DescribeInstanceHistoryEventsResponse is the response struct for api DescribeInstanceHistoryEvents type DescribeInstanceHistoryEventsResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` InstanceSystemEventSet InstanceSystemEventSet `json:"InstanceSystemEventSet" xml:"InstanceSystemEventSet"` } @@ -110,6 +116,7 @@ func CreateDescribeInstanceHistoryEventsRequest() (request *DescribeInstanceHist RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInstanceHistoryEvents", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_maintenance_attributes.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_maintenance_attributes.go new file mode 100644 index 00000000..956f7e65 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_maintenance_attributes.go @@ -0,0 +1,109 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeInstanceMaintenanceAttributes invokes the ecs.DescribeInstanceMaintenanceAttributes API synchronously +func (client *Client) DescribeInstanceMaintenanceAttributes(request *DescribeInstanceMaintenanceAttributesRequest) (response *DescribeInstanceMaintenanceAttributesResponse, err error) { + response = CreateDescribeInstanceMaintenanceAttributesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeInstanceMaintenanceAttributesWithChan invokes the ecs.DescribeInstanceMaintenanceAttributes API asynchronously +func (client *Client) DescribeInstanceMaintenanceAttributesWithChan(request *DescribeInstanceMaintenanceAttributesRequest) (<-chan *DescribeInstanceMaintenanceAttributesResponse, <-chan error) { + responseChan := make(chan *DescribeInstanceMaintenanceAttributesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeInstanceMaintenanceAttributes(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeInstanceMaintenanceAttributesWithCallback invokes the ecs.DescribeInstanceMaintenanceAttributes API asynchronously +func (client *Client) DescribeInstanceMaintenanceAttributesWithCallback(request *DescribeInstanceMaintenanceAttributesRequest, callback func(response *DescribeInstanceMaintenanceAttributesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeInstanceMaintenanceAttributesResponse + var err error + defer close(result) + response, err = client.DescribeInstanceMaintenanceAttributes(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeInstanceMaintenanceAttributesRequest is the request struct for api DescribeInstanceMaintenanceAttributes +type DescribeInstanceMaintenanceAttributesRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId *[]string `position:"Query" name:"InstanceId" type:"Repeated"` +} + +// DescribeInstanceMaintenanceAttributesResponse is the response struct for api DescribeInstanceMaintenanceAttributes +type DescribeInstanceMaintenanceAttributesResponse struct { + *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + MaintenanceAttributes MaintenanceAttributes `json:"MaintenanceAttributes" xml:"MaintenanceAttributes"` +} + +// CreateDescribeInstanceMaintenanceAttributesRequest creates a request to invoke DescribeInstanceMaintenanceAttributes API +func CreateDescribeInstanceMaintenanceAttributesRequest() (request *DescribeInstanceMaintenanceAttributesRequest) { + request = &DescribeInstanceMaintenanceAttributesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInstanceMaintenanceAttributes", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeInstanceMaintenanceAttributesResponse creates a response to parse from DescribeInstanceMaintenanceAttributes response +func CreateDescribeInstanceMaintenanceAttributesResponse() (response *DescribeInstanceMaintenanceAttributesResponse) { + response = &DescribeInstanceMaintenanceAttributesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_modification_price.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_modification_price.go new file mode 100644 index 00000000..60dd8b78 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_modification_price.go @@ -0,0 +1,114 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeInstanceModificationPrice invokes the ecs.DescribeInstanceModificationPrice API synchronously +func (client *Client) DescribeInstanceModificationPrice(request *DescribeInstanceModificationPriceRequest) (response *DescribeInstanceModificationPriceResponse, err error) { + response = CreateDescribeInstanceModificationPriceResponse() + err = client.DoAction(request, response) + return +} + +// DescribeInstanceModificationPriceWithChan invokes the ecs.DescribeInstanceModificationPrice API asynchronously +func (client *Client) DescribeInstanceModificationPriceWithChan(request *DescribeInstanceModificationPriceRequest) (<-chan *DescribeInstanceModificationPriceResponse, <-chan error) { + responseChan := make(chan *DescribeInstanceModificationPriceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeInstanceModificationPrice(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeInstanceModificationPriceWithCallback invokes the ecs.DescribeInstanceModificationPrice API asynchronously +func (client *Client) DescribeInstanceModificationPriceWithCallback(request *DescribeInstanceModificationPriceRequest, callback func(response *DescribeInstanceModificationPriceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeInstanceModificationPriceResponse + var err error + defer close(result) + response, err = client.DescribeInstanceModificationPrice(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeInstanceModificationPriceRequest is the request struct for api DescribeInstanceModificationPrice +type DescribeInstanceModificationPriceRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SystemDiskCategory string `position:"Query" name:"SystemDisk.Category"` + InstanceType string `position:"Query" name:"InstanceType"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + DataDisk *[]DescribeInstanceModificationPriceDataDisk `position:"Query" name:"DataDisk" type:"Repeated"` + InstanceId string `position:"Query" name:"InstanceId"` +} + +// DescribeInstanceModificationPriceDataDisk is a repeated param struct in DescribeInstanceModificationPriceRequest +type DescribeInstanceModificationPriceDataDisk struct { + PerformanceLevel string `name:"PerformanceLevel"` + Size string `name:"Size"` + Category string `name:"Category"` +} + +// DescribeInstanceModificationPriceResponse is the response struct for api DescribeInstanceModificationPrice +type DescribeInstanceModificationPriceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PriceInfo PriceInfo `json:"PriceInfo" xml:"PriceInfo"` +} + +// CreateDescribeInstanceModificationPriceRequest creates a request to invoke DescribeInstanceModificationPrice API +func CreateDescribeInstanceModificationPriceRequest() (request *DescribeInstanceModificationPriceRequest) { + request = &DescribeInstanceModificationPriceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInstanceModificationPrice", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeInstanceModificationPriceResponse creates a response to parse from DescribeInstanceModificationPrice response +func CreateDescribeInstanceModificationPriceResponse() (response *DescribeInstanceModificationPriceResponse) { + response = &DescribeInstanceModificationPriceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_monitor_data.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_monitor_data.go index e9636eef..cc6c0194 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_monitor_data.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_monitor_data.go @@ -21,7 +21,6 @@ import ( ) // DescribeInstanceMonitorData invokes the ecs.DescribeInstanceMonitorData API synchronously -// api document: https://help.aliyun.com/api/ecs/describeinstancemonitordata.html func (client *Client) DescribeInstanceMonitorData(request *DescribeInstanceMonitorDataRequest) (response *DescribeInstanceMonitorDataResponse, err error) { response = CreateDescribeInstanceMonitorDataResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeInstanceMonitorData(request *DescribeInstanceMonit } // DescribeInstanceMonitorDataWithChan invokes the ecs.DescribeInstanceMonitorData API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeinstancemonitordata.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeInstanceMonitorDataWithChan(request *DescribeInstanceMonitorDataRequest) (<-chan *DescribeInstanceMonitorDataResponse, <-chan error) { responseChan := make(chan *DescribeInstanceMonitorDataResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeInstanceMonitorDataWithChan(request *DescribeInsta } // DescribeInstanceMonitorDataWithCallback invokes the ecs.DescribeInstanceMonitorData API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeinstancemonitordata.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeInstanceMonitorDataWithCallback(request *DescribeInstanceMonitorDataRequest, callback func(response *DescribeInstanceMonitorDataResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -99,6 +94,7 @@ func CreateDescribeInstanceMonitorDataRequest() (request *DescribeInstanceMonito RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInstanceMonitorData", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_physical_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_physical_attribute.go deleted file mode 100644 index b5299bb4..00000000 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_physical_attribute.go +++ /dev/null @@ -1,111 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeInstancePhysicalAttribute invokes the ecs.DescribeInstancePhysicalAttribute API synchronously -// api document: https://help.aliyun.com/api/ecs/describeinstancephysicalattribute.html -func (client *Client) DescribeInstancePhysicalAttribute(request *DescribeInstancePhysicalAttributeRequest) (response *DescribeInstancePhysicalAttributeResponse, err error) { - response = CreateDescribeInstancePhysicalAttributeResponse() - err = client.DoAction(request, response) - return -} - -// DescribeInstancePhysicalAttributeWithChan invokes the ecs.DescribeInstancePhysicalAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeinstancephysicalattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html -func (client *Client) DescribeInstancePhysicalAttributeWithChan(request *DescribeInstancePhysicalAttributeRequest) (<-chan *DescribeInstancePhysicalAttributeResponse, <-chan error) { - responseChan := make(chan *DescribeInstancePhysicalAttributeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeInstancePhysicalAttribute(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeInstancePhysicalAttributeWithCallback invokes the ecs.DescribeInstancePhysicalAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeinstancephysicalattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html -func (client *Client) DescribeInstancePhysicalAttributeWithCallback(request *DescribeInstancePhysicalAttributeRequest, callback func(response *DescribeInstancePhysicalAttributeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeInstancePhysicalAttributeResponse - var err error - defer close(result) - response, err = client.DescribeInstancePhysicalAttribute(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeInstancePhysicalAttributeRequest is the request struct for api DescribeInstancePhysicalAttribute -type DescribeInstancePhysicalAttributeRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DescribeInstancePhysicalAttributeResponse is the response struct for api DescribeInstancePhysicalAttribute -type DescribeInstancePhysicalAttributeResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - VlanId string `json:"VlanId" xml:"VlanId"` - NodeControllerId string `json:"NodeControllerId" xml:"NodeControllerId"` - RackId string `json:"RackId" xml:"RackId"` -} - -// CreateDescribeInstancePhysicalAttributeRequest creates a request to invoke DescribeInstancePhysicalAttribute API -func CreateDescribeInstancePhysicalAttributeRequest() (request *DescribeInstancePhysicalAttributeRequest) { - request = &DescribeInstancePhysicalAttributeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInstancePhysicalAttribute", "ecs", "openAPI") - return -} - -// CreateDescribeInstancePhysicalAttributeResponse creates a response to parse from DescribeInstancePhysicalAttribute response -func CreateDescribeInstancePhysicalAttributeResponse() (response *DescribeInstancePhysicalAttributeResponse) { - response = &DescribeInstancePhysicalAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_ram_role.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_ram_role.go index 19257b82..218b0e9f 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_ram_role.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_ram_role.go @@ -21,7 +21,6 @@ import ( ) // DescribeInstanceRamRole invokes the ecs.DescribeInstanceRamRole API synchronously -// api document: https://help.aliyun.com/api/ecs/describeinstanceramrole.html func (client *Client) DescribeInstanceRamRole(request *DescribeInstanceRamRoleRequest) (response *DescribeInstanceRamRoleResponse, err error) { response = CreateDescribeInstanceRamRoleResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeInstanceRamRole(request *DescribeInstanceRamRoleRe } // DescribeInstanceRamRoleWithChan invokes the ecs.DescribeInstanceRamRole API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeinstanceramrole.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeInstanceRamRoleWithChan(request *DescribeInstanceRamRoleRequest) (<-chan *DescribeInstanceRamRoleResponse, <-chan error) { responseChan := make(chan *DescribeInstanceRamRoleResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeInstanceRamRoleWithChan(request *DescribeInstanceR } // DescribeInstanceRamRoleWithCallback invokes the ecs.DescribeInstanceRamRole API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeinstanceramrole.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeInstanceRamRoleWithCallback(request *DescribeInstanceRamRoleRequest, callback func(response *DescribeInstanceRamRoleResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,20 +72,20 @@ func (client *Client) DescribeInstanceRamRoleWithCallback(request *DescribeInsta type DescribeInstanceRamRoleRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - InstanceIds string `position:"Query" name:"InstanceIds"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` PageSize requests.Integer `position:"Query" name:"PageSize"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` RamRoleName string `position:"Query" name:"RamRoleName"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` + InstanceIds string `position:"Query" name:"InstanceIds"` } // DescribeInstanceRamRoleResponse is the response struct for api DescribeInstanceRamRole type DescribeInstanceRamRoleResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` - RegionId string `json:"RegionId" xml:"RegionId"` TotalCount int `json:"TotalCount" xml:"TotalCount"` + RegionId string `json:"RegionId" xml:"RegionId"` InstanceRamRoleSets InstanceRamRoleSetsInDescribeInstanceRamRole `json:"InstanceRamRoleSets" xml:"InstanceRamRoleSets"` } @@ -100,6 +95,7 @@ func CreateDescribeInstanceRamRoleRequest() (request *DescribeInstanceRamRoleReq RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInstanceRamRole", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_status.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_status.go index 6e759dcd..51a5cda3 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_status.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_status.go @@ -21,7 +21,6 @@ import ( ) // DescribeInstanceStatus invokes the ecs.DescribeInstanceStatus API synchronously -// api document: https://help.aliyun.com/api/ecs/describeinstancestatus.html func (client *Client) DescribeInstanceStatus(request *DescribeInstanceStatusRequest) (response *DescribeInstanceStatusResponse, err error) { response = CreateDescribeInstanceStatusResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeInstanceStatus(request *DescribeInstanceStatusRequ } // DescribeInstanceStatusWithChan invokes the ecs.DescribeInstanceStatus API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeinstancestatus.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeInstanceStatusWithChan(request *DescribeInstanceStatusRequest) (<-chan *DescribeInstanceStatusResponse, <-chan error) { responseChan := make(chan *DescribeInstanceStatusResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeInstanceStatusWithChan(request *DescribeInstanceSt } // DescribeInstanceStatusWithCallback invokes the ecs.DescribeInstanceStatus API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeinstancestatus.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeInstanceStatusWithCallback(request *DescribeInstanceStatusRequest, callback func(response *DescribeInstanceStatusResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,22 +72,23 @@ func (client *Client) DescribeInstanceStatusWithCallback(request *DescribeInstan type DescribeInstanceStatusRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - ZoneId string `position:"Query" name:"ZoneId"` ClusterId string `position:"Query" name:"ClusterId"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` + InstanceId *[]string `position:"Query" name:"InstanceId" type:"Repeated"` + ZoneId string `position:"Query" name:"ZoneId"` } // DescribeInstanceStatusResponse is the response struct for api DescribeInstanceStatus type DescribeInstanceStatusResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` InstanceStatuses InstanceStatuses `json:"InstanceStatuses" xml:"InstanceStatuses"` } @@ -102,6 +98,7 @@ func CreateDescribeInstanceStatusRequest() (request *DescribeInstanceStatusReque RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInstanceStatus", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_topology.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_topology.go index e0ba69e9..aa71760c 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_topology.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_topology.go @@ -21,7 +21,6 @@ import ( ) // DescribeInstanceTopology invokes the ecs.DescribeInstanceTopology API synchronously -// api document: https://help.aliyun.com/api/ecs/describeinstancetopology.html func (client *Client) DescribeInstanceTopology(request *DescribeInstanceTopologyRequest) (response *DescribeInstanceTopologyResponse, err error) { response = CreateDescribeInstanceTopologyResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeInstanceTopology(request *DescribeInstanceTopology } // DescribeInstanceTopologyWithChan invokes the ecs.DescribeInstanceTopology API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeinstancetopology.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeInstanceTopologyWithChan(request *DescribeInstanceTopologyRequest) (<-chan *DescribeInstanceTopologyResponse, <-chan error) { responseChan := make(chan *DescribeInstanceTopologyResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeInstanceTopologyWithChan(request *DescribeInstance } // DescribeInstanceTopologyWithCallback invokes the ecs.DescribeInstanceTopology API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeinstancetopology.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeInstanceTopologyWithCallback(request *DescribeInstanceTopologyRequest, callback func(response *DescribeInstanceTopologyResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -78,8 +73,8 @@ type DescribeInstanceTopologyRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - InstanceIds string `position:"Query" name:"InstanceIds"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceIds string `position:"Query" name:"InstanceIds"` } // DescribeInstanceTopologyResponse is the response struct for api DescribeInstanceTopology @@ -95,6 +90,7 @@ func CreateDescribeInstanceTopologyRequest() (request *DescribeInstanceTopologyR RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInstanceTopology", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_type_families.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_type_families.go index 672eb232..65df4975 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_type_families.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_type_families.go @@ -21,7 +21,6 @@ import ( ) // DescribeInstanceTypeFamilies invokes the ecs.DescribeInstanceTypeFamilies API synchronously -// api document: https://help.aliyun.com/api/ecs/describeinstancetypefamilies.html func (client *Client) DescribeInstanceTypeFamilies(request *DescribeInstanceTypeFamiliesRequest) (response *DescribeInstanceTypeFamiliesResponse, err error) { response = CreateDescribeInstanceTypeFamiliesResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeInstanceTypeFamilies(request *DescribeInstanceType } // DescribeInstanceTypeFamiliesWithChan invokes the ecs.DescribeInstanceTypeFamilies API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeinstancetypefamilies.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeInstanceTypeFamiliesWithChan(request *DescribeInstanceTypeFamiliesRequest) (<-chan *DescribeInstanceTypeFamiliesResponse, <-chan error) { responseChan := make(chan *DescribeInstanceTypeFamiliesResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeInstanceTypeFamiliesWithChan(request *DescribeInst } // DescribeInstanceTypeFamiliesWithCallback invokes the ecs.DescribeInstanceTypeFamilies API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeinstancetypefamilies.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeInstanceTypeFamiliesWithCallback(request *DescribeInstanceTypeFamiliesRequest, callback func(response *DescribeInstanceTypeFamiliesResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,8 +71,8 @@ func (client *Client) DescribeInstanceTypeFamiliesWithCallback(request *Describe // DescribeInstanceTypeFamiliesRequest is the request struct for api DescribeInstanceTypeFamilies type DescribeInstanceTypeFamiliesRequest struct { *requests.RpcRequest - Generation string `position:"Query" name:"Generation"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Generation string `position:"Query" name:"Generation"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` @@ -96,6 +91,7 @@ func CreateDescribeInstanceTypeFamiliesRequest() (request *DescribeInstanceTypeF RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInstanceTypeFamilies", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_types.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_types.go index fbfdc8f3..4f1e5d00 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_types.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_types.go @@ -21,7 +21,6 @@ import ( ) // DescribeInstanceTypes invokes the ecs.DescribeInstanceTypes API synchronously -// api document: https://help.aliyun.com/api/ecs/describeinstancetypes.html func (client *Client) DescribeInstanceTypes(request *DescribeInstanceTypesRequest) (response *DescribeInstanceTypesResponse, err error) { response = CreateDescribeInstanceTypesResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeInstanceTypes(request *DescribeInstanceTypesReques } // DescribeInstanceTypesWithChan invokes the ecs.DescribeInstanceTypes API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeinstancetypes.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeInstanceTypesWithChan(request *DescribeInstanceTypesRequest) (<-chan *DescribeInstanceTypesResponse, <-chan error) { responseChan := make(chan *DescribeInstanceTypesResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeInstanceTypesWithChan(request *DescribeInstanceTyp } // DescribeInstanceTypesWithCallback invokes the ecs.DescribeInstanceTypes API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeinstancetypes.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeInstanceTypesWithCallback(request *DescribeInstanceTypesRequest, callback func(response *DescribeInstanceTypesResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,17 +71,54 @@ func (client *Client) DescribeInstanceTypesWithCallback(request *DescribeInstanc // DescribeInstanceTypesRequest is the request struct for api DescribeInstanceTypes type DescribeInstanceTypesRequest struct { *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - InstanceTypeFamily string `position:"Query" name:"InstanceTypeFamily"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` + GPUSpec string `position:"Query" name:"GPUSpec"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + MaximumCpuCoreCount requests.Integer `position:"Query" name:"MaximumCpuCoreCount"` + MaximumGPUAmount requests.Integer `position:"Query" name:"MaximumGPUAmount"` + LocalStorageCategory string `position:"Query" name:"LocalStorageCategory"` + MaximumMemorySize requests.Float `position:"Query" name:"MaximumMemorySize"` + InstanceCategory string `position:"Query" name:"InstanceCategory"` + MinimumInstancePpsTx requests.Integer `position:"Query" name:"MinimumInstancePpsTx"` + MinimumCpuCoreCount requests.Integer `position:"Query" name:"MinimumCpuCoreCount"` + MinimumPrimaryEniQueueNumber requests.Integer `position:"Query" name:"MinimumPrimaryEniQueueNumber"` + MinimumBaselineCredit requests.Integer `position:"Query" name:"MinimumBaselineCredit"` + MinimumSecondaryEniQueueNumber requests.Integer `position:"Query" name:"MinimumSecondaryEniQueueNumber"` + MinimumInstanceBandwidthTx requests.Integer `position:"Query" name:"MinimumInstanceBandwidthTx"` + MinimumGPUAmount requests.Integer `position:"Query" name:"MinimumGPUAmount"` + MaximumCpuSpeedFrequency requests.Float `position:"Query" name:"MaximumCpuSpeedFrequency"` + CpuArchitecture string `position:"Query" name:"CpuArchitecture"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + MinimumMemorySize requests.Float `position:"Query" name:"MinimumMemorySize"` + MinimumEniQuantity requests.Integer `position:"Query" name:"MinimumEniQuantity"` + InstanceFamilyLevel string `position:"Query" name:"InstanceFamilyLevel"` + MinimumQueuePairNumber requests.Integer `position:"Query" name:"MinimumQueuePairNumber"` + MinimumLocalStorageAmount requests.Integer `position:"Query" name:"MinimumLocalStorageAmount"` + MaxResults requests.Integer `position:"Query" name:"MaxResults"` + PhysicalProcessorModel string `position:"Query" name:"PhysicalProcessorModel"` + MaximumCpuTurboFrequency requests.Float `position:"Query" name:"MaximumCpuTurboFrequency"` + InstanceTypes *[]string `position:"Query" name:"InstanceTypes" type:"Repeated"` + MinimumInstancePpsRx requests.Integer `position:"Query" name:"MinimumInstancePpsRx"` + MinimumEniIpv6AddressQuantity requests.Integer `position:"Query" name:"MinimumEniIpv6AddressQuantity"` + MinimumEriQuantity requests.Integer `position:"Query" name:"MinimumEriQuantity"` + MinimumDiskQuantity requests.Integer `position:"Query" name:"MinimumDiskQuantity"` + MinimumCpuTurboFrequency requests.Float `position:"Query" name:"MinimumCpuTurboFrequency"` + NextToken string `position:"Query" name:"NextToken"` + MinimumInstanceBandwidthRx requests.Integer `position:"Query" name:"MinimumInstanceBandwidthRx"` + MinimumCpuSpeedFrequency requests.Float `position:"Query" name:"MinimumCpuSpeedFrequency"` + NvmeSupport string `position:"Query" name:"NvmeSupport"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + MinimumInitialCredit requests.Integer `position:"Query" name:"MinimumInitialCredit"` + InstanceTypeFamily string `position:"Query" name:"InstanceTypeFamily"` + MinimumEniPrivateIpAddressQuantity requests.Integer `position:"Query" name:"MinimumEniPrivateIpAddressQuantity"` + MinimumLocalStorageCapacity requests.Integer `position:"Query" name:"MinimumLocalStorageCapacity"` } // DescribeInstanceTypesResponse is the response struct for api DescribeInstanceTypes type DescribeInstanceTypesResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` + NextToken string `json:"NextToken" xml:"NextToken"` InstanceTypes InstanceTypesInDescribeInstanceTypes `json:"InstanceTypes" xml:"InstanceTypes"` } @@ -96,6 +128,7 @@ func CreateDescribeInstanceTypesRequest() (request *DescribeInstanceTypesRequest RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInstanceTypes", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_vnc_passwd.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_vnc_passwd.go deleted file mode 100644 index cfc19b2f..00000000 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_vnc_passwd.go +++ /dev/null @@ -1,108 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeInstanceVncPasswd invokes the ecs.DescribeInstanceVncPasswd API synchronously -// api document: https://help.aliyun.com/api/ecs/describeinstancevncpasswd.html -func (client *Client) DescribeInstanceVncPasswd(request *DescribeInstanceVncPasswdRequest) (response *DescribeInstanceVncPasswdResponse, err error) { - response = CreateDescribeInstanceVncPasswdResponse() - err = client.DoAction(request, response) - return -} - -// DescribeInstanceVncPasswdWithChan invokes the ecs.DescribeInstanceVncPasswd API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeinstancevncpasswd.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html -func (client *Client) DescribeInstanceVncPasswdWithChan(request *DescribeInstanceVncPasswdRequest) (<-chan *DescribeInstanceVncPasswdResponse, <-chan error) { - responseChan := make(chan *DescribeInstanceVncPasswdResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeInstanceVncPasswd(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeInstanceVncPasswdWithCallback invokes the ecs.DescribeInstanceVncPasswd API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeinstancevncpasswd.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html -func (client *Client) DescribeInstanceVncPasswdWithCallback(request *DescribeInstanceVncPasswdRequest, callback func(response *DescribeInstanceVncPasswdResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeInstanceVncPasswdResponse - var err error - defer close(result) - response, err = client.DescribeInstanceVncPasswd(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeInstanceVncPasswdRequest is the request struct for api DescribeInstanceVncPasswd -type DescribeInstanceVncPasswdRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DescribeInstanceVncPasswdResponse is the response struct for api DescribeInstanceVncPasswd -type DescribeInstanceVncPasswdResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - VncPasswd string `json:"VncPasswd" xml:"VncPasswd"` -} - -// CreateDescribeInstanceVncPasswdRequest creates a request to invoke DescribeInstanceVncPasswd API -func CreateDescribeInstanceVncPasswdRequest() (request *DescribeInstanceVncPasswdRequest) { - request = &DescribeInstanceVncPasswdRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInstanceVncPasswd", "ecs", "openAPI") - return -} - -// CreateDescribeInstanceVncPasswdResponse creates a response to parse from DescribeInstanceVncPasswd response -func CreateDescribeInstanceVncPasswdResponse() (response *DescribeInstanceVncPasswdResponse) { - response = &DescribeInstanceVncPasswdResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_vnc_url.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_vnc_url.go index d1b483d3..d495c3f1 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_vnc_url.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instance_vnc_url.go @@ -21,7 +21,6 @@ import ( ) // DescribeInstanceVncUrl invokes the ecs.DescribeInstanceVncUrl API synchronously -// api document: https://help.aliyun.com/api/ecs/describeinstancevncurl.html func (client *Client) DescribeInstanceVncUrl(request *DescribeInstanceVncUrlRequest) (response *DescribeInstanceVncUrlResponse, err error) { response = CreateDescribeInstanceVncUrlResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeInstanceVncUrl(request *DescribeInstanceVncUrlRequ } // DescribeInstanceVncUrlWithChan invokes the ecs.DescribeInstanceVncUrl API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeinstancevncurl.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeInstanceVncUrlWithChan(request *DescribeInstanceVncUrlRequest) (<-chan *DescribeInstanceVncUrlResponse, <-chan error) { responseChan := make(chan *DescribeInstanceVncUrlResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeInstanceVncUrlWithChan(request *DescribeInstanceVn } // DescribeInstanceVncUrlWithCallback invokes the ecs.DescribeInstanceVncUrl API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeinstancevncurl.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeInstanceVncUrlWithCallback(request *DescribeInstanceVncUrlRequest, callback func(response *DescribeInstanceVncUrlResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,17 +72,17 @@ func (client *Client) DescribeInstanceVncUrlWithCallback(request *DescribeInstan type DescribeInstanceVncUrlRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` } // DescribeInstanceVncUrlResponse is the response struct for api DescribeInstanceVncUrl type DescribeInstanceVncUrlResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` VncUrl string `json:"VncUrl" xml:"VncUrl"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateDescribeInstanceVncUrlRequest creates a request to invoke DescribeInstanceVncUrl API @@ -96,6 +91,7 @@ func CreateDescribeInstanceVncUrlRequest() (request *DescribeInstanceVncUrlReque RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInstanceVncUrl", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instances.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instances.go index 5bfbf414..f30faf93 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instances.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instances.go @@ -21,7 +21,6 @@ import ( ) // DescribeInstances invokes the ecs.DescribeInstances API synchronously -// api document: https://help.aliyun.com/api/ecs/describeinstances.html func (client *Client) DescribeInstances(request *DescribeInstancesRequest) (response *DescribeInstancesResponse, err error) { response = CreateDescribeInstancesResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeInstances(request *DescribeInstancesRequest) (resp } // DescribeInstancesWithChan invokes the ecs.DescribeInstances API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeinstances.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeInstancesWithChan(request *DescribeInstancesRequest) (<-chan *DescribeInstancesResponse, <-chan error) { responseChan := make(chan *DescribeInstancesResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeInstancesWithChan(request *DescribeInstancesReques } // DescribeInstancesWithCallback invokes the ecs.DescribeInstances API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeinstances.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeInstancesWithCallback(request *DescribeInstancesRequest, callback func(response *DescribeInstancesResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,47 +71,54 @@ func (client *Client) DescribeInstancesWithCallback(request *DescribeInstancesRe // DescribeInstancesRequest is the request struct for api DescribeInstances type DescribeInstancesRequest struct { *requests.RpcRequest - InnerIpAddresses string `position:"Query" name:"InnerIpAddresses"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ImageId string `position:"Query" name:"ImageId"` - PrivateIpAddresses string `position:"Query" name:"PrivateIpAddresses"` - HpcClusterId string `position:"Query" name:"HpcClusterId"` - Filter2Value string `position:"Query" name:"Filter.2.Value"` - Filter4Value string `position:"Query" name:"Filter.4.Value"` - IoOptimized requests.Boolean `position:"Query" name:"IoOptimized"` - SecurityGroupId string `position:"Query" name:"SecurityGroupId"` - KeyPairName string `position:"Query" name:"KeyPairName"` - Filter4Key string `position:"Query" name:"Filter.4.Key"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - LockReason string `position:"Query" name:"LockReason"` - Filter1Key string `position:"Query" name:"Filter.1.Key"` - RdmaIpAddresses string `position:"Query" name:"RdmaIpAddresses"` - DeviceAvailable requests.Boolean `position:"Query" name:"DeviceAvailable"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - PublicIpAddresses string `position:"Query" name:"PublicIpAddresses"` - InstanceType string `position:"Query" name:"InstanceType"` - Tag *[]DescribeInstancesTag `position:"Query" name:"Tag" type:"Repeated"` - InstanceChargeType string `position:"Query" name:"InstanceChargeType"` - Filter3Value string `position:"Query" name:"Filter.3.Value"` - DryRun requests.Boolean `position:"Query" name:"DryRun"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - InstanceTypeFamily string `position:"Query" name:"InstanceTypeFamily"` - Filter1Value string `position:"Query" name:"Filter.1.Value"` - NeedSaleCycle requests.Boolean `position:"Query" name:"NeedSaleCycle"` - Filter2Key string `position:"Query" name:"Filter.2.Key"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - VSwitchId string `position:"Query" name:"VSwitchId"` - EipAddresses string `position:"Query" name:"EipAddresses"` - InstanceName string `position:"Query" name:"InstanceName"` - InstanceIds string `position:"Query" name:"InstanceIds"` - InternetChargeType string `position:"Query" name:"InternetChargeType"` - VpcId string `position:"Query" name:"VpcId"` - ZoneId string `position:"Query" name:"ZoneId"` - Filter3Key string `position:"Query" name:"Filter.3.Key"` - InstanceNetworkType string `position:"Query" name:"InstanceNetworkType"` - Status string `position:"Query" name:"Status"` + InnerIpAddresses string `position:"Query" name:"InnerIpAddresses"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PrivateIpAddresses string `position:"Query" name:"PrivateIpAddresses"` + HpcClusterId string `position:"Query" name:"HpcClusterId"` + HttpPutResponseHopLimit requests.Integer `position:"Query" name:"HttpPutResponseHopLimit"` + Filter2Value string `position:"Query" name:"Filter.2.Value"` + KeyPairName string `position:"Query" name:"KeyPairName"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + LockReason string `position:"Query" name:"LockReason"` + Filter1Key string `position:"Query" name:"Filter.1.Key"` + DeviceAvailable requests.Boolean `position:"Query" name:"DeviceAvailable"` + Tag *[]DescribeInstancesTag `position:"Query" name:"Tag" type:"Repeated"` + Filter3Value string `position:"Query" name:"Filter.3.Value"` + DryRun requests.Boolean `position:"Query" name:"DryRun"` + Filter1Value string `position:"Query" name:"Filter.1.Value"` + NeedSaleCycle requests.Boolean `position:"Query" name:"NeedSaleCycle"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + VSwitchId string `position:"Query" name:"VSwitchId"` + AdditionalAttributes *[]string `position:"Query" name:"AdditionalAttributes" type:"Repeated"` + InstanceName string `position:"Query" name:"InstanceName"` + InstanceIds string `position:"Query" name:"InstanceIds"` + InternetChargeType string `position:"Query" name:"InternetChargeType"` + ZoneId string `position:"Query" name:"ZoneId"` + MaxResults requests.Integer `position:"Query" name:"MaxResults"` + Ipv6Address *[]string `position:"Query" name:"Ipv6Address" type:"Repeated"` + InstanceNetworkType string `position:"Query" name:"InstanceNetworkType"` + Status string `position:"Query" name:"Status"` + ImageId string `position:"Query" name:"ImageId"` + Filter4Value string `position:"Query" name:"Filter.4.Value"` + IoOptimized requests.Boolean `position:"Query" name:"IoOptimized"` + SecurityGroupId string `position:"Query" name:"SecurityGroupId"` + Filter4Key string `position:"Query" name:"Filter.4.Key"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + NextToken string `position:"Query" name:"NextToken"` + RdmaIpAddresses string `position:"Query" name:"RdmaIpAddresses"` + HttpEndpoint string `position:"Query" name:"HttpEndpoint"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PublicIpAddresses string `position:"Query" name:"PublicIpAddresses"` + InstanceType string `position:"Query" name:"InstanceType"` + InstanceChargeType string `position:"Query" name:"InstanceChargeType"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + InstanceTypeFamily string `position:"Query" name:"InstanceTypeFamily"` + Filter2Key string `position:"Query" name:"Filter.2.Key"` + EipAddresses string `position:"Query" name:"EipAddresses"` + VpcId string `position:"Query" name:"VpcId"` + HttpTokens string `position:"Query" name:"HttpTokens"` + Filter3Key string `position:"Query" name:"Filter.3.Key"` } // DescribeInstancesTag is a repeated param struct in DescribeInstancesRequest @@ -128,10 +130,11 @@ type DescribeInstancesTag struct { // DescribeInstancesResponse is the response struct for api DescribeInstances type DescribeInstancesResponse struct { *responses.BaseResponse + NextToken string `json:"NextToken" xml:"NextToken"` + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` RequestId string `json:"RequestId" xml:"RequestId"` TotalCount int `json:"TotalCount" xml:"TotalCount"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` Instances InstancesInDescribeInstances `json:"Instances" xml:"Instances"` } @@ -141,6 +144,7 @@ func CreateDescribeInstancesRequest() (request *DescribeInstancesRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInstances", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instances_full_status.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instances_full_status.go index 136907a8..7416048d 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instances_full_status.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_instances_full_status.go @@ -21,7 +21,6 @@ import ( ) // DescribeInstancesFullStatus invokes the ecs.DescribeInstancesFullStatus API synchronously -// api document: https://help.aliyun.com/api/ecs/describeinstancesfullstatus.html func (client *Client) DescribeInstancesFullStatus(request *DescribeInstancesFullStatusRequest) (response *DescribeInstancesFullStatusResponse, err error) { response = CreateDescribeInstancesFullStatusResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeInstancesFullStatus(request *DescribeInstancesFull } // DescribeInstancesFullStatusWithChan invokes the ecs.DescribeInstancesFullStatus API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeinstancesfullstatus.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeInstancesFullStatusWithChan(request *DescribeInstancesFullStatusRequest) (<-chan *DescribeInstancesFullStatusResponse, <-chan error) { responseChan := make(chan *DescribeInstancesFullStatusResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeInstancesFullStatusWithChan(request *DescribeInsta } // DescribeInstancesFullStatusWithCallback invokes the ecs.DescribeInstancesFullStatus API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeinstancesfullstatus.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeInstancesFullStatusWithCallback(request *DescribeInstancesFullStatusRequest, callback func(response *DescribeInstancesFullStatusResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -97,10 +92,10 @@ type DescribeInstancesFullStatusRequest struct { // DescribeInstancesFullStatusResponse is the response struct for api DescribeInstancesFullStatus type DescribeInstancesFullStatusResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` InstanceFullStatusSet InstanceFullStatusSet `json:"InstanceFullStatusSet" xml:"InstanceFullStatusSet"` } @@ -110,6 +105,7 @@ func CreateDescribeInstancesFullStatusRequest() (request *DescribeInstancesFullS RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInstancesFullStatus", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_invocation_results.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_invocation_results.go index bb5b4a5c..ad0f5cc7 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_invocation_results.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_invocation_results.go @@ -21,7 +21,6 @@ import ( ) // DescribeInvocationResults invokes the ecs.DescribeInvocationResults API synchronously -// api document: https://help.aliyun.com/api/ecs/describeinvocationresults.html func (client *Client) DescribeInvocationResults(request *DescribeInvocationResultsRequest) (response *DescribeInvocationResultsResponse, err error) { response = CreateDescribeInvocationResultsResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeInvocationResults(request *DescribeInvocationResul } // DescribeInvocationResultsWithChan invokes the ecs.DescribeInvocationResults API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeinvocationresults.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeInvocationResultsWithChan(request *DescribeInvocationResultsRequest) (<-chan *DescribeInvocationResultsResponse, <-chan error) { responseChan := make(chan *DescribeInvocationResultsResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeInvocationResultsWithChan(request *DescribeInvocat } // DescribeInvocationResultsWithCallback invokes the ecs.DescribeInvocationResults API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeinvocationresults.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeInvocationResultsWithCallback(request *DescribeInvocationResultsRequest, callback func(response *DescribeInvocationResultsResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,17 +71,28 @@ func (client *Client) DescribeInvocationResultsWithCallback(request *DescribeInv // DescribeInvocationResultsRequest is the request struct for api DescribeInvocationResults type DescribeInvocationResultsRequest struct { *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - CommandId string `position:"Query" name:"CommandId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - InvokeId string `position:"Query" name:"InvokeId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` - InvokeRecordStatus string `position:"Query" name:"InvokeRecordStatus"` - IncludeHistory requests.Boolean `position:"Query" name:"IncludeHistory"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + CommandId string `position:"Query" name:"CommandId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + NextToken string `position:"Query" name:"NextToken"` + ContentEncoding string `position:"Query" name:"ContentEncoding"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Tag *[]DescribeInvocationResultsTag `position:"Query" name:"Tag" type:"Repeated"` + InvokeId string `position:"Query" name:"InvokeId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + InvokeRecordStatus string `position:"Query" name:"InvokeRecordStatus"` + IncludeHistory requests.Boolean `position:"Query" name:"IncludeHistory"` + MaxResults requests.Integer `position:"Query" name:"MaxResults"` +} + +// DescribeInvocationResultsTag is a repeated param struct in DescribeInvocationResultsRequest +type DescribeInvocationResultsTag struct { + Key string `name:"Key"` + Value string `name:"Value"` } // DescribeInvocationResultsResponse is the response struct for api DescribeInvocationResults @@ -102,6 +108,7 @@ func CreateDescribeInvocationResultsRequest() (request *DescribeInvocationResult RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInvocationResults", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_invocations.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_invocations.go index d52c46b6..61d1ac29 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_invocations.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_invocations.go @@ -21,7 +21,6 @@ import ( ) // DescribeInvocations invokes the ecs.DescribeInvocations API synchronously -// api document: https://help.aliyun.com/api/ecs/describeinvocations.html func (client *Client) DescribeInvocations(request *DescribeInvocationsRequest) (response *DescribeInvocationsResponse, err error) { response = CreateDescribeInvocationsResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeInvocations(request *DescribeInvocationsRequest) ( } // DescribeInvocationsWithChan invokes the ecs.DescribeInvocations API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeinvocations.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeInvocationsWithChan(request *DescribeInvocationsRequest) (<-chan *DescribeInvocationsResponse, <-chan error) { responseChan := make(chan *DescribeInvocationsResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeInvocationsWithChan(request *DescribeInvocationsRe } // DescribeInvocationsWithCallback invokes the ecs.DescribeInvocations API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeinvocations.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeInvocationsWithCallback(request *DescribeInvocationsRequest, callback func(response *DescribeInvocationsResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,29 +71,43 @@ func (client *Client) DescribeInvocationsWithCallback(request *DescribeInvocatio // DescribeInvocationsRequest is the request struct for api DescribeInvocations type DescribeInvocationsRequest struct { *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - InvokeStatus string `position:"Query" name:"InvokeStatus"` - CommandId string `position:"Query" name:"CommandId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - InvokeId string `position:"Query" name:"InvokeId"` - Timed requests.Boolean `position:"Query" name:"Timed"` - CommandName string `position:"Query" name:"CommandName"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - CommandType string `position:"Query" name:"CommandType"` - InstanceId string `position:"Query" name:"InstanceId"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InvokeStatus string `position:"Query" name:"InvokeStatus"` + IncludeOutput requests.Boolean `position:"Query" name:"IncludeOutput"` + CommandId string `position:"Query" name:"CommandId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + NextToken string `position:"Query" name:"NextToken"` + ContentEncoding string `position:"Query" name:"ContentEncoding"` + RepeatMode string `position:"Query" name:"RepeatMode"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Tag *[]DescribeInvocationsTag `position:"Query" name:"Tag" type:"Repeated"` + InvokeId string `position:"Query" name:"InvokeId"` + Timed requests.Boolean `position:"Query" name:"Timed"` + CommandName string `position:"Query" name:"CommandName"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + CommandType string `position:"Query" name:"CommandType"` + InstanceId string `position:"Query" name:"InstanceId"` + MaxResults requests.Integer `position:"Query" name:"MaxResults"` +} + +// DescribeInvocationsTag is a repeated param struct in DescribeInvocationsRequest +type DescribeInvocationsTag struct { + Key string `name:"Key"` + Value string `name:"Value"` } // DescribeInvocationsResponse is the response struct for api DescribeInvocations type DescribeInvocationsResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int64 `json:"TotalCount" xml:"TotalCount"` - PageNumber int64 `json:"PageNumber" xml:"PageNumber"` - PageSize int64 `json:"PageSize" xml:"PageSize"` - Invocations Invocations `json:"Invocations" xml:"Invocations"` + PageSize int64 `json:"PageSize" xml:"PageSize"` + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int64 `json:"PageNumber" xml:"PageNumber"` + TotalCount int64 `json:"TotalCount" xml:"TotalCount"` + NextToken string `json:"NextToken" xml:"NextToken"` + Invocations InvocationsInDescribeInvocations `json:"Invocations" xml:"Invocations"` } // CreateDescribeInvocationsRequest creates a request to invoke DescribeInvocations API @@ -107,6 +116,7 @@ func CreateDescribeInvocationsRequest() (request *DescribeInvocationsRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInvocations", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_key_pairs.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_key_pairs.go index 0a687d00..ba92a162 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_key_pairs.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_key_pairs.go @@ -21,7 +21,6 @@ import ( ) // DescribeKeyPairs invokes the ecs.DescribeKeyPairs API synchronously -// api document: https://help.aliyun.com/api/ecs/describekeypairs.html func (client *Client) DescribeKeyPairs(request *DescribeKeyPairsRequest) (response *DescribeKeyPairsResponse, err error) { response = CreateDescribeKeyPairsResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeKeyPairs(request *DescribeKeyPairsRequest) (respon } // DescribeKeyPairsWithChan invokes the ecs.DescribeKeyPairs API asynchronously -// api document: https://help.aliyun.com/api/ecs/describekeypairs.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeKeyPairsWithChan(request *DescribeKeyPairsRequest) (<-chan *DescribeKeyPairsResponse, <-chan error) { responseChan := make(chan *DescribeKeyPairsResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeKeyPairsWithChan(request *DescribeKeyPairsRequest) } // DescribeKeyPairsWithCallback invokes the ecs.DescribeKeyPairs API asynchronously -// api document: https://help.aliyun.com/api/ecs/describekeypairs.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeKeyPairsWithCallback(request *DescribeKeyPairsRequest, callback func(response *DescribeKeyPairsResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,15 +71,16 @@ func (client *Client) DescribeKeyPairsWithCallback(request *DescribeKeyPairsRequ // DescribeKeyPairsRequest is the request struct for api DescribeKeyPairs type DescribeKeyPairsRequest struct { *requests.RpcRequest - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` KeyPairFingerPrint string `position:"Query" name:"KeyPairFingerPrint"` - PageSize requests.Integer `position:"Query" name:"PageSize"` KeyPairName string `position:"Query" name:"KeyPairName"` + IncludePublicKey requests.Boolean `position:"Query" name:"IncludePublicKey"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` Tag *[]DescribeKeyPairsTag `position:"Query" name:"Tag" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` } // DescribeKeyPairsTag is a repeated param struct in DescribeKeyPairsRequest @@ -96,10 +92,10 @@ type DescribeKeyPairsTag struct { // DescribeKeyPairsResponse is the response struct for api DescribeKeyPairs type DescribeKeyPairsResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` KeyPairs KeyPairs `json:"KeyPairs" xml:"KeyPairs"` } @@ -109,6 +105,7 @@ func CreateDescribeKeyPairsRequest() (request *DescribeKeyPairsRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeKeyPairs", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_launch_template_versions.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_launch_template_versions.go index 4082a2b5..7d7906c0 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_launch_template_versions.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_launch_template_versions.go @@ -21,7 +21,6 @@ import ( ) // DescribeLaunchTemplateVersions invokes the ecs.DescribeLaunchTemplateVersions API synchronously -// api document: https://help.aliyun.com/api/ecs/describelaunchtemplateversions.html func (client *Client) DescribeLaunchTemplateVersions(request *DescribeLaunchTemplateVersionsRequest) (response *DescribeLaunchTemplateVersionsResponse, err error) { response = CreateDescribeLaunchTemplateVersionsResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeLaunchTemplateVersions(request *DescribeLaunchTemp } // DescribeLaunchTemplateVersionsWithChan invokes the ecs.DescribeLaunchTemplateVersions API asynchronously -// api document: https://help.aliyun.com/api/ecs/describelaunchtemplateversions.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeLaunchTemplateVersionsWithChan(request *DescribeLaunchTemplateVersionsRequest) (<-chan *DescribeLaunchTemplateVersionsResponse, <-chan error) { responseChan := make(chan *DescribeLaunchTemplateVersionsResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeLaunchTemplateVersionsWithChan(request *DescribeLa } // DescribeLaunchTemplateVersionsWithCallback invokes the ecs.DescribeLaunchTemplateVersions API asynchronously -// api document: https://help.aliyun.com/api/ecs/describelaunchtemplateversions.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeLaunchTemplateVersionsWithCallback(request *DescribeLaunchTemplateVersionsRequest, callback func(response *DescribeLaunchTemplateVersionsResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -94,10 +89,10 @@ type DescribeLaunchTemplateVersionsRequest struct { // DescribeLaunchTemplateVersionsResponse is the response struct for api DescribeLaunchTemplateVersions type DescribeLaunchTemplateVersionsResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` LaunchTemplateVersionSets LaunchTemplateVersionSets `json:"LaunchTemplateVersionSets" xml:"LaunchTemplateVersionSets"` } @@ -107,6 +102,7 @@ func CreateDescribeLaunchTemplateVersionsRequest() (request *DescribeLaunchTempl RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeLaunchTemplateVersions", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_launch_templates.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_launch_templates.go index fa45eabc..067bdeda 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_launch_templates.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_launch_templates.go @@ -21,7 +21,6 @@ import ( ) // DescribeLaunchTemplates invokes the ecs.DescribeLaunchTemplates API synchronously -// api document: https://help.aliyun.com/api/ecs/describelaunchtemplates.html func (client *Client) DescribeLaunchTemplates(request *DescribeLaunchTemplatesRequest) (response *DescribeLaunchTemplatesResponse, err error) { response = CreateDescribeLaunchTemplatesResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeLaunchTemplates(request *DescribeLaunchTemplatesRe } // DescribeLaunchTemplatesWithChan invokes the ecs.DescribeLaunchTemplates API asynchronously -// api document: https://help.aliyun.com/api/ecs/describelaunchtemplates.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeLaunchTemplatesWithChan(request *DescribeLaunchTemplatesRequest) (<-chan *DescribeLaunchTemplatesResponse, <-chan error) { responseChan := make(chan *DescribeLaunchTemplatesResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeLaunchTemplatesWithChan(request *DescribeLaunchTem } // DescribeLaunchTemplatesWithCallback invokes the ecs.DescribeLaunchTemplates API asynchronously -// api document: https://help.aliyun.com/api/ecs/describelaunchtemplates.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeLaunchTemplatesWithCallback(request *DescribeLaunchTemplatesRequest, callback func(response *DescribeLaunchTemplatesResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -97,10 +92,10 @@ type DescribeLaunchTemplatesTemplateTag struct { // DescribeLaunchTemplatesResponse is the response struct for api DescribeLaunchTemplates type DescribeLaunchTemplatesResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` LaunchTemplateSets LaunchTemplateSets `json:"LaunchTemplateSets" xml:"LaunchTemplateSets"` } @@ -110,6 +105,7 @@ func CreateDescribeLaunchTemplatesRequest() (request *DescribeLaunchTemplatesReq RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeLaunchTemplates", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_limitation.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_limitation.go index 592776be..9180e2b0 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_limitation.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_limitation.go @@ -21,7 +21,6 @@ import ( ) // DescribeLimitation invokes the ecs.DescribeLimitation API synchronously -// api document: https://help.aliyun.com/api/ecs/describelimitation.html func (client *Client) DescribeLimitation(request *DescribeLimitationRequest) (response *DescribeLimitationResponse, err error) { response = CreateDescribeLimitationResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeLimitation(request *DescribeLimitationRequest) (re } // DescribeLimitationWithChan invokes the ecs.DescribeLimitation API asynchronously -// api document: https://help.aliyun.com/api/ecs/describelimitation.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeLimitationWithChan(request *DescribeLimitationRequest) (<-chan *DescribeLimitationResponse, <-chan error) { responseChan := make(chan *DescribeLimitationResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeLimitationWithChan(request *DescribeLimitationRequ } // DescribeLimitationWithCallback invokes the ecs.DescribeLimitation API asynchronously -// api document: https://help.aliyun.com/api/ecs/describelimitation.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeLimitationWithCallback(request *DescribeLimitationRequest, callback func(response *DescribeLimitationResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -86,9 +81,9 @@ type DescribeLimitationRequest struct { // DescribeLimitationResponse is the response struct for api DescribeLimitation type DescribeLimitationResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` Limitation string `json:"Limitation" xml:"Limitation"` Value string `json:"Value" xml:"Value"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateDescribeLimitationRequest creates a request to invoke DescribeLimitation API @@ -97,6 +92,7 @@ func CreateDescribeLimitationRequest() (request *DescribeLimitationRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeLimitation", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_managed_instances.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_managed_instances.go new file mode 100644 index 00000000..948bb78e --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_managed_instances.go @@ -0,0 +1,124 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeManagedInstances invokes the ecs.DescribeManagedInstances API synchronously +func (client *Client) DescribeManagedInstances(request *DescribeManagedInstancesRequest) (response *DescribeManagedInstancesResponse, err error) { + response = CreateDescribeManagedInstancesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeManagedInstancesWithChan invokes the ecs.DescribeManagedInstances API asynchronously +func (client *Client) DescribeManagedInstancesWithChan(request *DescribeManagedInstancesRequest) (<-chan *DescribeManagedInstancesResponse, <-chan error) { + responseChan := make(chan *DescribeManagedInstancesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeManagedInstances(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeManagedInstancesWithCallback invokes the ecs.DescribeManagedInstances API asynchronously +func (client *Client) DescribeManagedInstancesWithCallback(request *DescribeManagedInstancesRequest, callback func(response *DescribeManagedInstancesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeManagedInstancesResponse + var err error + defer close(result) + response, err = client.DescribeManagedInstances(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeManagedInstancesRequest is the request struct for api DescribeManagedInstances +type DescribeManagedInstancesRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + NextToken string `position:"Query" name:"NextToken"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Tag *[]DescribeManagedInstancesTag `position:"Query" name:"Tag" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OsType string `position:"Query" name:"OsType"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceName string `position:"Query" name:"InstanceName"` + InstanceId *[]string `position:"Query" name:"InstanceId" type:"Repeated"` + MaxResults requests.Integer `position:"Query" name:"MaxResults"` + InstanceIp string `position:"Query" name:"InstanceIp"` + ActivationId string `position:"Query" name:"ActivationId"` +} + +// DescribeManagedInstancesTag is a repeated param struct in DescribeManagedInstancesRequest +type DescribeManagedInstancesTag struct { + Key string `name:"Key"` + Value string `name:"Value"` +} + +// DescribeManagedInstancesResponse is the response struct for api DescribeManagedInstances +type DescribeManagedInstancesResponse struct { + *responses.BaseResponse + PageSize int64 `json:"PageSize" xml:"PageSize"` + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int64 `json:"PageNumber" xml:"PageNumber"` + TotalCount int64 `json:"TotalCount" xml:"TotalCount"` + NextToken string `json:"NextToken" xml:"NextToken"` + Instances []InstanceInDescribeManagedInstances `json:"Instances" xml:"Instances"` +} + +// CreateDescribeManagedInstancesRequest creates a request to invoke DescribeManagedInstances API +func CreateDescribeManagedInstancesRequest() (request *DescribeManagedInstancesRequest) { + request = &DescribeManagedInstancesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeManagedInstances", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeManagedInstancesResponse creates a response to parse from DescribeManagedInstances response +func CreateDescribeManagedInstancesResponse() (response *DescribeManagedInstancesResponse) { + response = &DescribeManagedInstancesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_nat_gateways.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_nat_gateways.go index 306108a3..0d7f567f 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_nat_gateways.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_nat_gateways.go @@ -21,7 +21,6 @@ import ( ) // DescribeNatGateways invokes the ecs.DescribeNatGateways API synchronously -// api document: https://help.aliyun.com/api/ecs/describenatgateways.html func (client *Client) DescribeNatGateways(request *DescribeNatGatewaysRequest) (response *DescribeNatGatewaysResponse, err error) { response = CreateDescribeNatGatewaysResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeNatGateways(request *DescribeNatGatewaysRequest) ( } // DescribeNatGatewaysWithChan invokes the ecs.DescribeNatGateways API asynchronously -// api document: https://help.aliyun.com/api/ecs/describenatgateways.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeNatGatewaysWithChan(request *DescribeNatGatewaysRequest) (<-chan *DescribeNatGatewaysResponse, <-chan error) { responseChan := make(chan *DescribeNatGatewaysResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeNatGatewaysWithChan(request *DescribeNatGatewaysRe } // DescribeNatGatewaysWithCallback invokes the ecs.DescribeNatGateways API asynchronously -// api document: https://help.aliyun.com/api/ecs/describenatgateways.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeNatGatewaysWithCallback(request *DescribeNatGatewaysRequest, callback func(response *DescribeNatGatewaysResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,22 +72,22 @@ func (client *Client) DescribeNatGatewaysWithCallback(request *DescribeNatGatewa type DescribeNatGatewaysRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - VpcId string `position:"Query" name:"VpcId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` PageSize requests.Integer `position:"Query" name:"PageSize"` NatGatewayId string `position:"Query" name:"NatGatewayId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` + VpcId string `position:"Query" name:"VpcId"` } // DescribeNatGatewaysResponse is the response struct for api DescribeNatGateways type DescribeNatGatewaysResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` NatGateways NatGateways `json:"NatGateways" xml:"NatGateways"` } @@ -102,6 +97,7 @@ func CreateDescribeNatGatewaysRequest() (request *DescribeNatGatewaysRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeNatGateways", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_network_interface_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_network_interface_attribute.go new file mode 100644 index 00000000..f31068b1 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_network_interface_attribute.go @@ -0,0 +1,142 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeNetworkInterfaceAttribute invokes the ecs.DescribeNetworkInterfaceAttribute API synchronously +func (client *Client) DescribeNetworkInterfaceAttribute(request *DescribeNetworkInterfaceAttributeRequest) (response *DescribeNetworkInterfaceAttributeResponse, err error) { + response = CreateDescribeNetworkInterfaceAttributeResponse() + err = client.DoAction(request, response) + return +} + +// DescribeNetworkInterfaceAttributeWithChan invokes the ecs.DescribeNetworkInterfaceAttribute API asynchronously +func (client *Client) DescribeNetworkInterfaceAttributeWithChan(request *DescribeNetworkInterfaceAttributeRequest) (<-chan *DescribeNetworkInterfaceAttributeResponse, <-chan error) { + responseChan := make(chan *DescribeNetworkInterfaceAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeNetworkInterfaceAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeNetworkInterfaceAttributeWithCallback invokes the ecs.DescribeNetworkInterfaceAttribute API asynchronously +func (client *Client) DescribeNetworkInterfaceAttributeWithCallback(request *DescribeNetworkInterfaceAttributeRequest, callback func(response *DescribeNetworkInterfaceAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeNetworkInterfaceAttributeResponse + var err error + defer close(result) + response, err = client.DescribeNetworkInterfaceAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeNetworkInterfaceAttributeRequest is the request struct for api DescribeNetworkInterfaceAttribute +type DescribeNetworkInterfaceAttributeRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Tag *[]DescribeNetworkInterfaceAttributeTag `position:"Query" name:"Tag" type:"Repeated"` + Attribute string `position:"Query" name:"Attribute"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + NetworkInterfaceId string `position:"Query" name:"NetworkInterfaceId"` +} + +// DescribeNetworkInterfaceAttributeTag is a repeated param struct in DescribeNetworkInterfaceAttributeRequest +type DescribeNetworkInterfaceAttributeTag struct { + Key string `name:"Key"` + Value string `name:"Value"` +} + +// DescribeNetworkInterfaceAttributeResponse is the response struct for api DescribeNetworkInterfaceAttribute +type DescribeNetworkInterfaceAttributeResponse struct { + *responses.BaseResponse + CreationTime string `json:"CreationTime" xml:"CreationTime"` + VpcId string `json:"VpcId" xml:"VpcId"` + Type string `json:"Type" xml:"Type"` + Status string `json:"Status" xml:"Status"` + NetworkInterfaceTrafficMode string `json:"NetworkInterfaceTrafficMode" xml:"NetworkInterfaceTrafficMode"` + NetworkInterfaceName string `json:"NetworkInterfaceName" xml:"NetworkInterfaceName"` + MacAddress string `json:"MacAddress" xml:"MacAddress"` + QueuePairNumber int `json:"QueuePairNumber" xml:"QueuePairNumber"` + NetworkInterfaceId string `json:"NetworkInterfaceId" xml:"NetworkInterfaceId"` + ServiceID int64 `json:"ServiceID" xml:"ServiceID"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + OwnerId string `json:"OwnerId" xml:"OwnerId"` + ServiceManaged bool `json:"ServiceManaged" xml:"ServiceManaged"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + RequestId string `json:"RequestId" xml:"RequestId"` + Description string `json:"Description" xml:"Description"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + PrivateIpAddress string `json:"PrivateIpAddress" xml:"PrivateIpAddress"` + QueueNumber int `json:"QueueNumber" xml:"QueueNumber"` + DeleteOnRelease bool `json:"DeleteOnRelease" xml:"DeleteOnRelease"` + TcpOptionAddressEnabled string `json:"TcpOptionAddressEnabled" xml:"TcpOptionAddressEnabled"` + SecurityGroupIds SecurityGroupIdsInDescribeNetworkInterfaceAttribute `json:"SecurityGroupIds" xml:"SecurityGroupIds"` + AssociatedPublicIp AssociatedPublicIp `json:"AssociatedPublicIp" xml:"AssociatedPublicIp"` + Attachment Attachment `json:"Attachment" xml:"Attachment"` + BondInterfaceSpecification BondInterfaceSpecification `json:"BondInterfaceSpecification" xml:"BondInterfaceSpecification"` + SlaveInterfaceSpecification SlaveInterfaceSpecification `json:"SlaveInterfaceSpecification" xml:"SlaveInterfaceSpecification"` + PrivateIpSets PrivateIpSetsInDescribeNetworkInterfaceAttribute `json:"PrivateIpSets" xml:"PrivateIpSets"` + Ipv6Sets Ipv6SetsInDescribeNetworkInterfaceAttribute `json:"Ipv6Sets" xml:"Ipv6Sets"` + Ipv4PrefixSets Ipv4PrefixSetsInDescribeNetworkInterfaceAttribute `json:"Ipv4PrefixSets" xml:"Ipv4PrefixSets"` + Ipv6PrefixSets Ipv6PrefixSetsInDescribeNetworkInterfaceAttribute `json:"Ipv6PrefixSets" xml:"Ipv6PrefixSets"` + Tags TagsInDescribeNetworkInterfaceAttribute `json:"Tags" xml:"Tags"` +} + +// CreateDescribeNetworkInterfaceAttributeRequest creates a request to invoke DescribeNetworkInterfaceAttribute API +func CreateDescribeNetworkInterfaceAttributeRequest() (request *DescribeNetworkInterfaceAttributeRequest) { + request = &DescribeNetworkInterfaceAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeNetworkInterfaceAttribute", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeNetworkInterfaceAttributeResponse creates a response to parse from DescribeNetworkInterfaceAttribute response +func CreateDescribeNetworkInterfaceAttributeResponse() (response *DescribeNetworkInterfaceAttributeResponse) { + response = &DescribeNetworkInterfaceAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_network_interface_permissions.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_network_interface_permissions.go index 15ad33d7..13efefef 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_network_interface_permissions.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_network_interface_permissions.go @@ -21,7 +21,6 @@ import ( ) // DescribeNetworkInterfacePermissions invokes the ecs.DescribeNetworkInterfacePermissions API synchronously -// api document: https://help.aliyun.com/api/ecs/describenetworkinterfacepermissions.html func (client *Client) DescribeNetworkInterfacePermissions(request *DescribeNetworkInterfacePermissionsRequest) (response *DescribeNetworkInterfacePermissionsResponse, err error) { response = CreateDescribeNetworkInterfacePermissionsResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeNetworkInterfacePermissions(request *DescribeNetwo } // DescribeNetworkInterfacePermissionsWithChan invokes the ecs.DescribeNetworkInterfacePermissions API asynchronously -// api document: https://help.aliyun.com/api/ecs/describenetworkinterfacepermissions.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeNetworkInterfacePermissionsWithChan(request *DescribeNetworkInterfacePermissionsRequest) (<-chan *DescribeNetworkInterfacePermissionsResponse, <-chan error) { responseChan := make(chan *DescribeNetworkInterfacePermissionsResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeNetworkInterfacePermissionsWithChan(request *Descr } // DescribeNetworkInterfacePermissionsWithCallback invokes the ecs.DescribeNetworkInterfacePermissions API asynchronously -// api document: https://help.aliyun.com/api/ecs/describenetworkinterfacepermissions.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeNetworkInterfacePermissionsWithCallback(request *DescribeNetworkInterfacePermissionsRequest, callback func(response *DescribeNetworkInterfacePermissionsResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -89,10 +84,10 @@ type DescribeNetworkInterfacePermissionsRequest struct { // DescribeNetworkInterfacePermissionsResponse is the response struct for api DescribeNetworkInterfacePermissions type DescribeNetworkInterfacePermissionsResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` NetworkInterfacePermissions NetworkInterfacePermissions `json:"NetworkInterfacePermissions" xml:"NetworkInterfacePermissions"` } @@ -102,6 +97,7 @@ func CreateDescribeNetworkInterfacePermissionsRequest() (request *DescribeNetwor RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeNetworkInterfacePermissions", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_network_interfaces.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_network_interfaces.go index f1fa15fb..a41266d2 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_network_interfaces.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_network_interfaces.go @@ -21,7 +21,6 @@ import ( ) // DescribeNetworkInterfaces invokes the ecs.DescribeNetworkInterfaces API synchronously -// api document: https://help.aliyun.com/api/ecs/describenetworkinterfaces.html func (client *Client) DescribeNetworkInterfaces(request *DescribeNetworkInterfacesRequest) (response *DescribeNetworkInterfacesResponse, err error) { response = CreateDescribeNetworkInterfacesResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeNetworkInterfaces(request *DescribeNetworkInterfac } // DescribeNetworkInterfacesWithChan invokes the ecs.DescribeNetworkInterfaces API asynchronously -// api document: https://help.aliyun.com/api/ecs/describenetworkinterfaces.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeNetworkInterfacesWithChan(request *DescribeNetworkInterfacesRequest) (<-chan *DescribeNetworkInterfacesResponse, <-chan error) { responseChan := make(chan *DescribeNetworkInterfacesResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeNetworkInterfacesWithChan(request *DescribeNetwork } // DescribeNetworkInterfacesWithCallback invokes the ecs.DescribeNetworkInterfaces API asynchronously -// api document: https://help.aliyun.com/api/ecs/describenetworkinterfaces.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeNetworkInterfacesWithCallback(request *DescribeNetworkInterfacesRequest, callback func(response *DescribeNetworkInterfacesResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -82,6 +77,7 @@ type DescribeNetworkInterfacesRequest struct { Type string `position:"Query" name:"Type"` PageNumber requests.Integer `position:"Query" name:"PageNumber"` ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + NextToken string `position:"Query" name:"NextToken"` PageSize requests.Integer `position:"Query" name:"PageSize"` Tag *[]DescribeNetworkInterfacesTag `position:"Query" name:"Tag" type:"Repeated"` NetworkInterfaceName string `position:"Query" name:"NetworkInterfaceName"` @@ -93,7 +89,10 @@ type DescribeNetworkInterfacesRequest struct { InstanceId string `position:"Query" name:"InstanceId"` VpcId string `position:"Query" name:"VpcId"` PrimaryIpAddress string `position:"Query" name:"PrimaryIpAddress"` + MaxResults requests.Integer `position:"Query" name:"MaxResults"` NetworkInterfaceId *[]string `position:"Query" name:"NetworkInterfaceId" type:"Repeated"` + Ipv6Address *[]string `position:"Query" name:"Ipv6Address" type:"Repeated"` + Status string `position:"Query" name:"Status"` } // DescribeNetworkInterfacesTag is a repeated param struct in DescribeNetworkInterfacesRequest @@ -105,10 +104,11 @@ type DescribeNetworkInterfacesTag struct { // DescribeNetworkInterfacesResponse is the response struct for api DescribeNetworkInterfaces type DescribeNetworkInterfacesResponse struct { *responses.BaseResponse + NextToken string `json:"NextToken" xml:"NextToken"` + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` RequestId string `json:"RequestId" xml:"RequestId"` TotalCount int `json:"TotalCount" xml:"TotalCount"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` NetworkInterfaceSets NetworkInterfaceSets `json:"NetworkInterfaceSets" xml:"NetworkInterfaceSets"` } @@ -118,6 +118,7 @@ func CreateDescribeNetworkInterfacesRequest() (request *DescribeNetworkInterface RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeNetworkInterfaces", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_new_project_eip_monitor_data.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_new_project_eip_monitor_data.go index 71377c08..d56dc449 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_new_project_eip_monitor_data.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_new_project_eip_monitor_data.go @@ -21,7 +21,6 @@ import ( ) // DescribeNewProjectEipMonitorData invokes the ecs.DescribeNewProjectEipMonitorData API synchronously -// api document: https://help.aliyun.com/api/ecs/describenewprojecteipmonitordata.html func (client *Client) DescribeNewProjectEipMonitorData(request *DescribeNewProjectEipMonitorDataRequest) (response *DescribeNewProjectEipMonitorDataResponse, err error) { response = CreateDescribeNewProjectEipMonitorDataResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeNewProjectEipMonitorData(request *DescribeNewProje } // DescribeNewProjectEipMonitorDataWithChan invokes the ecs.DescribeNewProjectEipMonitorData API asynchronously -// api document: https://help.aliyun.com/api/ecs/describenewprojecteipmonitordata.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeNewProjectEipMonitorDataWithChan(request *DescribeNewProjectEipMonitorDataRequest) (<-chan *DescribeNewProjectEipMonitorDataResponse, <-chan error) { responseChan := make(chan *DescribeNewProjectEipMonitorDataResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeNewProjectEipMonitorDataWithChan(request *Describe } // DescribeNewProjectEipMonitorDataWithCallback invokes the ecs.DescribeNewProjectEipMonitorData API asynchronously -// api document: https://help.aliyun.com/api/ecs/describenewprojecteipmonitordata.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeNewProjectEipMonitorDataWithCallback(request *DescribeNewProjectEipMonitorDataRequest, callback func(response *DescribeNewProjectEipMonitorDataResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,12 +72,12 @@ func (client *Client) DescribeNewProjectEipMonitorDataWithCallback(request *Desc type DescribeNewProjectEipMonitorDataRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + AllocationId string `position:"Query" name:"AllocationId"` + StartTime string `position:"Query" name:"StartTime"` Period requests.Integer `position:"Query" name:"Period"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` EndTime string `position:"Query" name:"EndTime"` - AllocationId string `position:"Query" name:"AllocationId"` - StartTime string `position:"Query" name:"StartTime"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` } @@ -99,6 +94,7 @@ func CreateDescribeNewProjectEipMonitorDataRequest() (request *DescribeNewProjec RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeNewProjectEipMonitorData", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_physical_connections.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_physical_connections.go index f65a6841..9811eca3 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_physical_connections.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_physical_connections.go @@ -21,7 +21,6 @@ import ( ) // DescribePhysicalConnections invokes the ecs.DescribePhysicalConnections API synchronously -// api document: https://help.aliyun.com/api/ecs/describephysicalconnections.html func (client *Client) DescribePhysicalConnections(request *DescribePhysicalConnectionsRequest) (response *DescribePhysicalConnectionsResponse, err error) { response = CreateDescribePhysicalConnectionsResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribePhysicalConnections(request *DescribePhysicalConne } // DescribePhysicalConnectionsWithChan invokes the ecs.DescribePhysicalConnections API asynchronously -// api document: https://help.aliyun.com/api/ecs/describephysicalconnections.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribePhysicalConnectionsWithChan(request *DescribePhysicalConnectionsRequest) (<-chan *DescribePhysicalConnectionsResponse, <-chan error) { responseChan := make(chan *DescribePhysicalConnectionsResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribePhysicalConnectionsWithChan(request *DescribePhysi } // DescribePhysicalConnectionsWithCallback invokes the ecs.DescribePhysicalConnections API asynchronously -// api document: https://help.aliyun.com/api/ecs/describephysicalconnections.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribePhysicalConnectionsWithCallback(request *DescribePhysicalConnectionsRequest, callback func(response *DescribePhysicalConnectionsResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,15 +71,15 @@ func (client *Client) DescribePhysicalConnectionsWithCallback(request *DescribeP // DescribePhysicalConnectionsRequest is the request struct for api DescribePhysicalConnections type DescribePhysicalConnectionsRequest struct { *requests.RpcRequest - Filter *[]DescribePhysicalConnectionsFilter `position:"Query" name:"Filter" type:"Repeated"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` ClientToken string `position:"Query" name:"ClientToken"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` PageSize requests.Integer `position:"Query" name:"PageSize"` UserCidr string `position:"Query" name:"UserCidr"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` + Filter *[]DescribePhysicalConnectionsFilter `position:"Query" name:"Filter" type:"Repeated"` } // DescribePhysicalConnectionsFilter is a repeated param struct in DescribePhysicalConnectionsRequest @@ -109,6 +104,7 @@ func CreateDescribePhysicalConnectionsRequest() (request *DescribePhysicalConnec RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribePhysicalConnections", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_prefix_list_associations.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_prefix_list_associations.go new file mode 100644 index 00000000..7a92554f --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_prefix_list_associations.go @@ -0,0 +1,107 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribePrefixListAssociations invokes the ecs.DescribePrefixListAssociations API synchronously +func (client *Client) DescribePrefixListAssociations(request *DescribePrefixListAssociationsRequest) (response *DescribePrefixListAssociationsResponse, err error) { + response = CreateDescribePrefixListAssociationsResponse() + err = client.DoAction(request, response) + return +} + +// DescribePrefixListAssociationsWithChan invokes the ecs.DescribePrefixListAssociations API asynchronously +func (client *Client) DescribePrefixListAssociationsWithChan(request *DescribePrefixListAssociationsRequest) (<-chan *DescribePrefixListAssociationsResponse, <-chan error) { + responseChan := make(chan *DescribePrefixListAssociationsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribePrefixListAssociations(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribePrefixListAssociationsWithCallback invokes the ecs.DescribePrefixListAssociations API asynchronously +func (client *Client) DescribePrefixListAssociationsWithCallback(request *DescribePrefixListAssociationsRequest, callback func(response *DescribePrefixListAssociationsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribePrefixListAssociationsResponse + var err error + defer close(result) + response, err = client.DescribePrefixListAssociations(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribePrefixListAssociationsRequest is the request struct for api DescribePrefixListAssociations +type DescribePrefixListAssociationsRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PrefixListId string `position:"Query" name:"PrefixListId"` + NextToken string `position:"Query" name:"NextToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + MaxResults requests.Integer `position:"Query" name:"MaxResults"` +} + +// DescribePrefixListAssociationsResponse is the response struct for api DescribePrefixListAssociations +type DescribePrefixListAssociationsResponse struct { + *responses.BaseResponse + NextToken string `json:"NextToken" xml:"NextToken"` + RequestId string `json:"RequestId" xml:"RequestId"` + PrefixListAssociations PrefixListAssociations `json:"PrefixListAssociations" xml:"PrefixListAssociations"` +} + +// CreateDescribePrefixListAssociationsRequest creates a request to invoke DescribePrefixListAssociations API +func CreateDescribePrefixListAssociationsRequest() (request *DescribePrefixListAssociationsRequest) { + request = &DescribePrefixListAssociationsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribePrefixListAssociations", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribePrefixListAssociationsResponse creates a response to parse from DescribePrefixListAssociations response +func CreateDescribePrefixListAssociationsResponse() (response *DescribePrefixListAssociationsResponse) { + response = &DescribePrefixListAssociationsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_prefix_list_attributes.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_prefix_list_attributes.go new file mode 100644 index 00000000..7819f2d7 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_prefix_list_attributes.go @@ -0,0 +1,110 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribePrefixListAttributes invokes the ecs.DescribePrefixListAttributes API synchronously +func (client *Client) DescribePrefixListAttributes(request *DescribePrefixListAttributesRequest) (response *DescribePrefixListAttributesResponse, err error) { + response = CreateDescribePrefixListAttributesResponse() + err = client.DoAction(request, response) + return +} + +// DescribePrefixListAttributesWithChan invokes the ecs.DescribePrefixListAttributes API asynchronously +func (client *Client) DescribePrefixListAttributesWithChan(request *DescribePrefixListAttributesRequest) (<-chan *DescribePrefixListAttributesResponse, <-chan error) { + responseChan := make(chan *DescribePrefixListAttributesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribePrefixListAttributes(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribePrefixListAttributesWithCallback invokes the ecs.DescribePrefixListAttributes API asynchronously +func (client *Client) DescribePrefixListAttributesWithCallback(request *DescribePrefixListAttributesRequest, callback func(response *DescribePrefixListAttributesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribePrefixListAttributesResponse + var err error + defer close(result) + response, err = client.DescribePrefixListAttributes(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribePrefixListAttributesRequest is the request struct for api DescribePrefixListAttributes +type DescribePrefixListAttributesRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PrefixListId string `position:"Query" name:"PrefixListId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribePrefixListAttributesResponse is the response struct for api DescribePrefixListAttributes +type DescribePrefixListAttributesResponse struct { + *responses.BaseResponse + CreationTime string `json:"CreationTime" xml:"CreationTime"` + MaxEntries int `json:"MaxEntries" xml:"MaxEntries"` + RequestId string `json:"RequestId" xml:"RequestId"` + Description string `json:"Description" xml:"Description"` + AddressFamily string `json:"AddressFamily" xml:"AddressFamily"` + PrefixListName string `json:"PrefixListName" xml:"PrefixListName"` + PrefixListId string `json:"PrefixListId" xml:"PrefixListId"` + Entries Entries `json:"Entries" xml:"Entries"` +} + +// CreateDescribePrefixListAttributesRequest creates a request to invoke DescribePrefixListAttributes API +func CreateDescribePrefixListAttributesRequest() (request *DescribePrefixListAttributesRequest) { + request = &DescribePrefixListAttributesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribePrefixListAttributes", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribePrefixListAttributesResponse creates a response to parse from DescribePrefixListAttributes response +func CreateDescribePrefixListAttributesResponse() (response *DescribePrefixListAttributesResponse) { + response = &DescribePrefixListAttributesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_prefix_lists.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_prefix_lists.go new file mode 100644 index 00000000..694ef69a --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_prefix_lists.go @@ -0,0 +1,109 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribePrefixLists invokes the ecs.DescribePrefixLists API synchronously +func (client *Client) DescribePrefixLists(request *DescribePrefixListsRequest) (response *DescribePrefixListsResponse, err error) { + response = CreateDescribePrefixListsResponse() + err = client.DoAction(request, response) + return +} + +// DescribePrefixListsWithChan invokes the ecs.DescribePrefixLists API asynchronously +func (client *Client) DescribePrefixListsWithChan(request *DescribePrefixListsRequest) (<-chan *DescribePrefixListsResponse, <-chan error) { + responseChan := make(chan *DescribePrefixListsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribePrefixLists(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribePrefixListsWithCallback invokes the ecs.DescribePrefixLists API asynchronously +func (client *Client) DescribePrefixListsWithCallback(request *DescribePrefixListsRequest, callback func(response *DescribePrefixListsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribePrefixListsResponse + var err error + defer close(result) + response, err = client.DescribePrefixLists(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribePrefixListsRequest is the request struct for api DescribePrefixLists +type DescribePrefixListsRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + NextToken string `position:"Query" name:"NextToken"` + PrefixListId *[]string `position:"Query" name:"PrefixListId" type:"Repeated"` + AddressFamily string `position:"Query" name:"AddressFamily"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PrefixListName string `position:"Query" name:"PrefixListName"` + MaxResults requests.Integer `position:"Query" name:"MaxResults"` +} + +// DescribePrefixListsResponse is the response struct for api DescribePrefixLists +type DescribePrefixListsResponse struct { + *responses.BaseResponse + NextToken string `json:"NextToken" xml:"NextToken"` + RequestId string `json:"RequestId" xml:"RequestId"` + PrefixLists PrefixLists `json:"PrefixLists" xml:"PrefixLists"` +} + +// CreateDescribePrefixListsRequest creates a request to invoke DescribePrefixLists API +func CreateDescribePrefixListsRequest() (request *DescribePrefixListsRequest) { + request = &DescribePrefixListsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribePrefixLists", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribePrefixListsResponse creates a response to parse from DescribePrefixLists response +func CreateDescribePrefixListsResponse() (response *DescribePrefixListsResponse) { + response = &DescribePrefixListsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_price.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_price.go index c3d518b7..8c2d85ab 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_price.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_price.go @@ -21,7 +21,6 @@ import ( ) // DescribePrice invokes the ecs.DescribePrice API synchronously -// api document: https://help.aliyun.com/api/ecs/describeprice.html func (client *Client) DescribePrice(request *DescribePriceRequest) (response *DescribePriceResponse, err error) { response = CreateDescribePriceResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribePrice(request *DescribePriceRequest) (response *De } // DescribePriceWithChan invokes the ecs.DescribePrice API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeprice.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribePriceWithChan(request *DescribePriceRequest) (<-chan *DescribePriceResponse, <-chan error) { responseChan := make(chan *DescribePriceResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribePriceWithChan(request *DescribePriceRequest) (<-ch } // DescribePriceWithCallback invokes the ecs.DescribePrice API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeprice.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribePriceWithCallback(request *DescribePriceRequest, callback func(response *DescribePriceResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,35 +71,57 @@ func (client *Client) DescribePriceWithCallback(request *DescribePriceRequest, c // DescribePriceRequest is the request struct for api DescribePrice type DescribePriceRequest struct { *requests.RpcRequest - DataDisk3PerformanceLevel string `position:"Query" name:"DataDisk.3.PerformanceLevel"` - DataDisk3Size requests.Integer `position:"Query" name:"DataDisk.3.Size"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ImageId string `position:"Query" name:"ImageId"` - DataDisk3Category string `position:"Query" name:"DataDisk.3.Category"` - IoOptimized string `position:"Query" name:"IoOptimized"` - InternetMaxBandwidthOut requests.Integer `position:"Query" name:"InternetMaxBandwidthOut"` - SystemDiskCategory string `position:"Query" name:"SystemDisk.Category"` - SystemDiskPerformanceLevel string `position:"Query" name:"SystemDisk.PerformanceLevel"` - DataDisk4Category string `position:"Query" name:"DataDisk.4.Category"` - DataDisk4PerformanceLevel string `position:"Query" name:"DataDisk.4.PerformanceLevel"` - DataDisk4Size requests.Integer `position:"Query" name:"DataDisk.4.Size"` - PriceUnit string `position:"Query" name:"PriceUnit"` - InstanceType string `position:"Query" name:"InstanceType"` - DataDisk2Category string `position:"Query" name:"DataDisk.2.Category"` - DataDisk1Size requests.Integer `position:"Query" name:"DataDisk.1.Size"` - Period requests.Integer `position:"Query" name:"Period"` - Amount requests.Integer `position:"Query" name:"Amount"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - DataDisk2Size requests.Integer `position:"Query" name:"DataDisk.2.Size"` - DataDisk1PerformanceLevel string `position:"Query" name:"DataDisk.1.PerformanceLevel"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ResourceType string `position:"Query" name:"ResourceType"` - DataDisk1Category string `position:"Query" name:"DataDisk.1.Category"` - DataDisk2PerformanceLevel string `position:"Query" name:"DataDisk.2.PerformanceLevel"` - SystemDiskSize requests.Integer `position:"Query" name:"SystemDisk.Size"` - InternetChargeType string `position:"Query" name:"InternetChargeType"` - InstanceNetworkType string `position:"Query" name:"InstanceNetworkType"` + DataDisk3Size requests.Integer `position:"Query" name:"DataDisk.3.Size"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DataDisk3Category string `position:"Query" name:"DataDisk.3.Category"` + Isp string `position:"Query" name:"Isp"` + DataDisk4Size requests.Integer `position:"Query" name:"DataDisk.4.Size"` + PriceUnit string `position:"Query" name:"PriceUnit"` + Period requests.Integer `position:"Query" name:"Period"` + DataDisk1PerformanceLevel string `position:"Query" name:"DataDisk.1.PerformanceLevel"` + AssuranceTimes string `position:"Query" name:"AssuranceTimes"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceCpuCoreCount requests.Integer `position:"Query" name:"InstanceCpuCoreCount"` + SpotStrategy string `position:"Query" name:"SpotStrategy"` + InternetChargeType string `position:"Query" name:"InternetChargeType"` + ZoneId string `position:"Query" name:"ZoneId"` + InstanceNetworkType string `position:"Query" name:"InstanceNetworkType"` + InstanceAmount requests.Integer `position:"Query" name:"InstanceAmount"` + InstanceTypeList *[]string `position:"Query" name:"InstanceTypeList" type:"Repeated"` + DataDisk3PerformanceLevel string `position:"Query" name:"DataDisk.3.PerformanceLevel"` + ImageId string `position:"Query" name:"ImageId"` + IoOptimized string `position:"Query" name:"IoOptimized"` + InternetMaxBandwidthOut requests.Integer `position:"Query" name:"InternetMaxBandwidthOut"` + SystemDiskCategory string `position:"Query" name:"SystemDisk.Category"` + Platform string `position:"Query" name:"Platform"` + Capacity requests.Integer `position:"Query" name:"Capacity"` + SystemDiskPerformanceLevel string `position:"Query" name:"SystemDisk.PerformanceLevel"` + DataDisk4Category string `position:"Query" name:"DataDisk.4.Category"` + DataDisk4PerformanceLevel string `position:"Query" name:"DataDisk.4.PerformanceLevel"` + Scope string `position:"Query" name:"Scope"` + SchedulerOptionsDedicatedHostId string `position:"Query" name:"SchedulerOptions.DedicatedHostId"` + InstanceType string `position:"Query" name:"InstanceType"` + DedicatedHostType string `position:"Query" name:"DedicatedHostType"` + DataDisk2Category string `position:"Query" name:"DataDisk.2.Category"` + DataDisk1Size requests.Integer `position:"Query" name:"DataDisk.1.Size"` + Amount requests.Integer `position:"Query" name:"Amount"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + DataDisk2Size requests.Integer `position:"Query" name:"DataDisk.2.Size"` + SpotDuration requests.Integer `position:"Query" name:"SpotDuration"` + ResourceType string `position:"Query" name:"ResourceType"` + DataDisk *[]DescribePriceDataDisk `position:"Query" name:"DataDisk" type:"Repeated"` + DataDisk1Category string `position:"Query" name:"DataDisk.1.Category"` + DataDisk2PerformanceLevel string `position:"Query" name:"DataDisk.2.PerformanceLevel"` + SystemDiskSize requests.Integer `position:"Query" name:"SystemDisk.Size"` + OfferingType string `position:"Query" name:"OfferingType"` +} + +// DescribePriceDataDisk is a repeated param struct in DescribePriceRequest +type DescribePriceDataDisk struct { + Size string `name:"Size"` + PerformanceLevel string `name:"PerformanceLevel"` + Category string `name:"Category"` } // DescribePriceResponse is the response struct for api DescribePrice @@ -120,6 +137,7 @@ func CreateDescribePriceRequest() (request *DescribePriceRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribePrice", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_recommend_instance_type.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_recommend_instance_type.go index 3e09ef4e..65482807 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_recommend_instance_type.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_recommend_instance_type.go @@ -21,7 +21,6 @@ import ( ) // DescribeRecommendInstanceType invokes the ecs.DescribeRecommendInstanceType API synchronously -// api document: https://help.aliyun.com/api/ecs/describerecommendinstancetype.html func (client *Client) DescribeRecommendInstanceType(request *DescribeRecommendInstanceTypeRequest) (response *DescribeRecommendInstanceTypeResponse, err error) { response = CreateDescribeRecommendInstanceTypeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeRecommendInstanceType(request *DescribeRecommendIn } // DescribeRecommendInstanceTypeWithChan invokes the ecs.DescribeRecommendInstanceType API asynchronously -// api document: https://help.aliyun.com/api/ecs/describerecommendinstancetype.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeRecommendInstanceTypeWithChan(request *DescribeRecommendInstanceTypeRequest) (<-chan *DescribeRecommendInstanceTypeResponse, <-chan error) { responseChan := make(chan *DescribeRecommendInstanceTypeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeRecommendInstanceTypeWithChan(request *DescribeRec } // DescribeRecommendInstanceTypeWithCallback invokes the ecs.DescribeRecommendInstanceType API asynchronously -// api document: https://help.aliyun.com/api/ecs/describerecommendinstancetype.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeRecommendInstanceTypeWithCallback(request *DescribeRecommendInstanceTypeRequest, callback func(response *DescribeRecommendInstanceTypeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,16 +72,24 @@ func (client *Client) DescribeRecommendInstanceTypeWithCallback(request *Describ type DescribeRecommendInstanceTypeRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - Channel string `position:"Query" name:"channel"` + Memory requests.Float `position:"Query" name:"Memory"` + IoOptimized string `position:"Query" name:"IoOptimized"` NetworkType string `position:"Query" name:"NetworkType"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Operator string `position:"Query" name:"operator"` - Token string `position:"Query" name:"token"` Scene string `position:"Query" name:"Scene"` + Cores requests.Integer `position:"Query" name:"Cores"` + SystemDiskCategory string `position:"Query" name:"SystemDiskCategory"` InstanceType string `position:"Query" name:"InstanceType"` - ProxyId string `position:"Query" name:"proxyId"` + InstanceChargeType string `position:"Query" name:"InstanceChargeType"` + MaxPrice requests.Float `position:"Query" name:"MaxPrice"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ZoneMatchMode string `position:"Query" name:"ZoneMatchMode"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + InstanceTypeFamily *[]string `position:"Query" name:"InstanceTypeFamily" type:"Repeated"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + SpotStrategy string `position:"Query" name:"SpotStrategy"` + PriorityStrategy string `position:"Query" name:"PriorityStrategy"` + InstanceFamilyLevel string `position:"Query" name:"InstanceFamilyLevel"` + ZoneId string `position:"Query" name:"ZoneId"` } // DescribeRecommendInstanceTypeResponse is the response struct for api DescribeRecommendInstanceType @@ -102,6 +105,7 @@ func CreateDescribeRecommendInstanceTypeRequest() (request *DescribeRecommendIns RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeRecommendInstanceType", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_regions.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_regions.go index 89637c7e..8036b97c 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_regions.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_regions.go @@ -21,7 +21,6 @@ import ( ) // DescribeRegions invokes the ecs.DescribeRegions API synchronously -// api document: https://help.aliyun.com/api/ecs/describeregions.html func (client *Client) DescribeRegions(request *DescribeRegionsRequest) (response *DescribeRegionsResponse, err error) { response = CreateDescribeRegionsResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeRegions(request *DescribeRegionsRequest) (response } // DescribeRegionsWithChan invokes the ecs.DescribeRegions API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeregions.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeRegionsWithChan(request *DescribeRegionsRequest) (<-chan *DescribeRegionsResponse, <-chan error) { responseChan := make(chan *DescribeRegionsResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeRegionsWithChan(request *DescribeRegionsRequest) ( } // DescribeRegionsWithCallback invokes the ecs.DescribeRegions API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeregions.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeRegionsWithCallback(request *DescribeRegionsRequest, callback func(response *DescribeRegionsResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,12 +72,12 @@ func (client *Client) DescribeRegionsWithCallback(request *DescribeRegionsReques type DescribeRegionsRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceChargeType string `position:"Query" name:"InstanceChargeType"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - AcceptLanguage string `position:"Query" name:"AcceptLanguage"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceChargeType string `position:"Query" name:"InstanceChargeType"` ResourceType string `position:"Query" name:"ResourceType"` + AcceptLanguage string `position:"Query" name:"AcceptLanguage"` } // DescribeRegionsResponse is the response struct for api DescribeRegions @@ -98,6 +93,7 @@ func CreateDescribeRegionsRequest() (request *DescribeRegionsRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeRegions", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_renewal_price.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_renewal_price.go index 5fc0767c..a10a1f62 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_renewal_price.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_renewal_price.go @@ -21,7 +21,6 @@ import ( ) // DescribeRenewalPrice invokes the ecs.DescribeRenewalPrice API synchronously -// api document: https://help.aliyun.com/api/ecs/describerenewalprice.html func (client *Client) DescribeRenewalPrice(request *DescribeRenewalPriceRequest) (response *DescribeRenewalPriceResponse, err error) { response = CreateDescribeRenewalPriceResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeRenewalPrice(request *DescribeRenewalPriceRequest) } // DescribeRenewalPriceWithChan invokes the ecs.DescribeRenewalPrice API asynchronously -// api document: https://help.aliyun.com/api/ecs/describerenewalprice.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeRenewalPriceWithChan(request *DescribeRenewalPriceRequest) (<-chan *DescribeRenewalPriceResponse, <-chan error) { responseChan := make(chan *DescribeRenewalPriceResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeRenewalPriceWithChan(request *DescribeRenewalPrice } // DescribeRenewalPriceWithCallback invokes the ecs.DescribeRenewalPrice API asynchronously -// api document: https://help.aliyun.com/api/ecs/describerenewalprice.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeRenewalPriceWithCallback(request *DescribeRenewalPriceRequest, callback func(response *DescribeRenewalPriceResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,11 +72,12 @@ func (client *Client) DescribeRenewalPriceWithCallback(request *DescribeRenewalP type DescribeRenewalPriceRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PriceUnit string `position:"Query" name:"PriceUnit"` ResourceId string `position:"Query" name:"ResourceId"` Period requests.Integer `position:"Query" name:"Period"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - PriceUnit string `position:"Query" name:"PriceUnit"` + ExpectedRenewDay requests.Integer `position:"Query" name:"ExpectedRenewDay"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` ResourceType string `position:"Query" name:"ResourceType"` } @@ -99,6 +95,7 @@ func CreateDescribeRenewalPriceRequest() (request *DescribeRenewalPriceRequest) RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeRenewalPrice", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_reserved_instance_auto_renew_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_reserved_instance_auto_renew_attribute.go new file mode 100644 index 00000000..c7ba8405 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_reserved_instance_auto_renew_attribute.go @@ -0,0 +1,104 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeReservedInstanceAutoRenewAttribute invokes the ecs.DescribeReservedInstanceAutoRenewAttribute API synchronously +func (client *Client) DescribeReservedInstanceAutoRenewAttribute(request *DescribeReservedInstanceAutoRenewAttributeRequest) (response *DescribeReservedInstanceAutoRenewAttributeResponse, err error) { + response = CreateDescribeReservedInstanceAutoRenewAttributeResponse() + err = client.DoAction(request, response) + return +} + +// DescribeReservedInstanceAutoRenewAttributeWithChan invokes the ecs.DescribeReservedInstanceAutoRenewAttribute API asynchronously +func (client *Client) DescribeReservedInstanceAutoRenewAttributeWithChan(request *DescribeReservedInstanceAutoRenewAttributeRequest) (<-chan *DescribeReservedInstanceAutoRenewAttributeResponse, <-chan error) { + responseChan := make(chan *DescribeReservedInstanceAutoRenewAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeReservedInstanceAutoRenewAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeReservedInstanceAutoRenewAttributeWithCallback invokes the ecs.DescribeReservedInstanceAutoRenewAttribute API asynchronously +func (client *Client) DescribeReservedInstanceAutoRenewAttributeWithCallback(request *DescribeReservedInstanceAutoRenewAttributeRequest, callback func(response *DescribeReservedInstanceAutoRenewAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeReservedInstanceAutoRenewAttributeResponse + var err error + defer close(result) + response, err = client.DescribeReservedInstanceAutoRenewAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeReservedInstanceAutoRenewAttributeRequest is the request struct for api DescribeReservedInstanceAutoRenewAttribute +type DescribeReservedInstanceAutoRenewAttributeRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ReservedInstanceId *[]string `position:"Query" name:"ReservedInstanceId" type:"Repeated"` +} + +// DescribeReservedInstanceAutoRenewAttributeResponse is the response struct for api DescribeReservedInstanceAutoRenewAttribute +type DescribeReservedInstanceAutoRenewAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ReservedInstanceRenewAttributes ReservedInstanceRenewAttributes `json:"ReservedInstanceRenewAttributes" xml:"ReservedInstanceRenewAttributes"` +} + +// CreateDescribeReservedInstanceAutoRenewAttributeRequest creates a request to invoke DescribeReservedInstanceAutoRenewAttribute API +func CreateDescribeReservedInstanceAutoRenewAttributeRequest() (request *DescribeReservedInstanceAutoRenewAttributeRequest) { + request = &DescribeReservedInstanceAutoRenewAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeReservedInstanceAutoRenewAttribute", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeReservedInstanceAutoRenewAttributeResponse creates a response to parse from DescribeReservedInstanceAutoRenewAttribute response +func CreateDescribeReservedInstanceAutoRenewAttributeResponse() (response *DescribeReservedInstanceAutoRenewAttributeResponse) { + response = &DescribeReservedInstanceAutoRenewAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_reserved_instances.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_reserved_instances.go index 5ef48623..d76a7777 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_reserved_instances.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_reserved_instances.go @@ -21,7 +21,6 @@ import ( ) // DescribeReservedInstances invokes the ecs.DescribeReservedInstances API synchronously -// api document: https://help.aliyun.com/api/ecs/describereservedinstances.html func (client *Client) DescribeReservedInstances(request *DescribeReservedInstancesRequest) (response *DescribeReservedInstancesResponse, err error) { response = CreateDescribeReservedInstancesResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeReservedInstances(request *DescribeReservedInstanc } // DescribeReservedInstancesWithChan invokes the ecs.DescribeReservedInstances API asynchronously -// api document: https://help.aliyun.com/api/ecs/describereservedinstances.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeReservedInstancesWithChan(request *DescribeReservedInstancesRequest) (<-chan *DescribeReservedInstancesResponse, <-chan error) { responseChan := make(chan *DescribeReservedInstancesResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeReservedInstancesWithChan(request *DescribeReserve } // DescribeReservedInstancesWithCallback invokes the ecs.DescribeReservedInstances API asynchronously -// api document: https://help.aliyun.com/api/ecs/describereservedinstances.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeReservedInstancesWithCallback(request *DescribeReservedInstancesRequest, callback func(response *DescribeReservedInstancesResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,30 +71,38 @@ func (client *Client) DescribeReservedInstancesWithCallback(request *DescribeRes // DescribeReservedInstancesRequest is the request struct for api DescribeReservedInstances type DescribeReservedInstancesRequest struct { *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - LockReason string `position:"Query" name:"LockReason"` - Scope string `position:"Query" name:"Scope"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - InstanceType string `position:"Query" name:"InstanceType"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - InstanceTypeFamily string `position:"Query" name:"InstanceTypeFamily"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ReservedInstanceId *[]string `position:"Query" name:"ReservedInstanceId" type:"Repeated"` - OfferingType string `position:"Query" name:"OfferingType"` - ZoneId string `position:"Query" name:"ZoneId"` - ReservedInstanceName string `position:"Query" name:"ReservedInstanceName"` - Status *[]string `position:"Query" name:"Status" type:"Repeated"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + LockReason string `position:"Query" name:"LockReason"` + Scope string `position:"Query" name:"Scope"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + InstanceType string `position:"Query" name:"InstanceType"` + Tag *[]DescribeReservedInstancesTag `position:"Query" name:"Tag" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + InstanceTypeFamily string `position:"Query" name:"InstanceTypeFamily"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ReservedInstanceId *[]string `position:"Query" name:"ReservedInstanceId" type:"Repeated"` + OfferingType string `position:"Query" name:"OfferingType"` + ZoneId string `position:"Query" name:"ZoneId"` + ReservedInstanceName string `position:"Query" name:"ReservedInstanceName"` + AllocationType string `position:"Query" name:"AllocationType"` + Status *[]string `position:"Query" name:"Status" type:"Repeated"` +} + +// DescribeReservedInstancesTag is a repeated param struct in DescribeReservedInstancesRequest +type DescribeReservedInstancesTag struct { + Key string `name:"Key"` + Value string `name:"Value"` } // DescribeReservedInstancesResponse is the response struct for api DescribeReservedInstances type DescribeReservedInstancesResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` ReservedInstances ReservedInstances `json:"ReservedInstances" xml:"ReservedInstances"` } @@ -109,6 +112,7 @@ func CreateDescribeReservedInstancesRequest() (request *DescribeReservedInstance RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeReservedInstances", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_resource_by_tags.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_resource_by_tags.go index c962092a..3dccad16 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_resource_by_tags.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_resource_by_tags.go @@ -21,7 +21,6 @@ import ( ) // DescribeResourceByTags invokes the ecs.DescribeResourceByTags API synchronously -// api document: https://help.aliyun.com/api/ecs/describeresourcebytags.html func (client *Client) DescribeResourceByTags(request *DescribeResourceByTagsRequest) (response *DescribeResourceByTagsResponse, err error) { response = CreateDescribeResourceByTagsResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeResourceByTags(request *DescribeResourceByTagsRequ } // DescribeResourceByTagsWithChan invokes the ecs.DescribeResourceByTags API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeresourcebytags.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeResourceByTagsWithChan(request *DescribeResourceByTagsRequest) (<-chan *DescribeResourceByTagsResponse, <-chan error) { responseChan := make(chan *DescribeResourceByTagsResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeResourceByTagsWithChan(request *DescribeResourceBy } // DescribeResourceByTagsWithCallback invokes the ecs.DescribeResourceByTags API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeresourcebytags.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeResourceByTagsWithCallback(request *DescribeResourceByTagsRequest, callback func(response *DescribeResourceByTagsResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,12 +72,12 @@ func (client *Client) DescribeResourceByTagsWithCallback(request *DescribeResour type DescribeResourceByTagsRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` PageSize requests.Integer `position:"Query" name:"PageSize"` Tag *[]DescribeResourceByTagsTag `position:"Query" name:"Tag" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` ResourceType string `position:"Query" name:"ResourceType"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` } // DescribeResourceByTagsTag is a repeated param struct in DescribeResourceByTagsRequest @@ -107,6 +102,7 @@ func CreateDescribeResourceByTagsRequest() (request *DescribeResourceByTagsReque RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeResourceByTags", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_resources_modification.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_resources_modification.go index 5b258235..d6922788 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_resources_modification.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_resources_modification.go @@ -21,7 +21,6 @@ import ( ) // DescribeResourcesModification invokes the ecs.DescribeResourcesModification API synchronously -// api document: https://help.aliyun.com/api/ecs/describeresourcesmodification.html func (client *Client) DescribeResourcesModification(request *DescribeResourcesModificationRequest) (response *DescribeResourcesModificationResponse, err error) { response = CreateDescribeResourcesModificationResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeResourcesModification(request *DescribeResourcesMo } // DescribeResourcesModificationWithChan invokes the ecs.DescribeResourcesModification API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeresourcesmodification.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeResourcesModificationWithChan(request *DescribeResourcesModificationRequest) (<-chan *DescribeResourcesModificationResponse, <-chan error) { responseChan := make(chan *DescribeResourcesModificationResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeResourcesModificationWithChan(request *DescribeRes } // DescribeResourcesModificationWithCallback invokes the ecs.DescribeResourcesModification API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeresourcesmodification.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeResourcesModificationWithCallback(request *DescribeResourcesModificationRequest, callback func(response *DescribeResourcesModificationResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -87,6 +82,8 @@ type DescribeResourcesModificationRequest struct { OperationType string `position:"Query" name:"OperationType"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` DestinationResource string `position:"Query" name:"DestinationResource"` + ZoneId string `position:"Query" name:"ZoneId"` + Conditions *[]string `position:"Query" name:"Conditions" type:"Repeated"` } // DescribeResourcesModificationResponse is the response struct for api DescribeResourcesModification @@ -102,6 +99,7 @@ func CreateDescribeResourcesModificationRequest() (request *DescribeResourcesMod RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeResourcesModification", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_route_tables.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_route_tables.go index 97757099..9753f3c3 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_route_tables.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_route_tables.go @@ -21,7 +21,6 @@ import ( ) // DescribeRouteTables invokes the ecs.DescribeRouteTables API synchronously -// api document: https://help.aliyun.com/api/ecs/describeroutetables.html func (client *Client) DescribeRouteTables(request *DescribeRouteTablesRequest) (response *DescribeRouteTablesResponse, err error) { response = CreateDescribeRouteTablesResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeRouteTables(request *DescribeRouteTablesRequest) ( } // DescribeRouteTablesWithChan invokes the ecs.DescribeRouteTables API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeroutetables.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeRouteTablesWithChan(request *DescribeRouteTablesRequest) (<-chan *DescribeRouteTablesResponse, <-chan error) { responseChan := make(chan *DescribeRouteTablesResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeRouteTablesWithChan(request *DescribeRouteTablesRe } // DescribeRouteTablesWithCallback invokes the ecs.DescribeRouteTables API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeroutetables.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeRouteTablesWithCallback(request *DescribeRouteTablesRequest, callback func(response *DescribeRouteTablesResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -78,24 +73,24 @@ type DescribeRouteTablesRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` VRouterId string `position:"Query" name:"VRouterId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + RouteTableName string `position:"Query" name:"RouteTableName"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + RouteTableId string `position:"Query" name:"RouteTableId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` RouterType string `position:"Query" name:"RouterType"` - RouteTableName string `position:"Query" name:"RouteTableName"` RouterId string `position:"Query" name:"RouterId"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - RouteTableId string `position:"Query" name:"RouteTableId"` } // DescribeRouteTablesResponse is the response struct for api DescribeRouteTables type DescribeRouteTablesResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` RouteTables RouteTables `json:"RouteTables" xml:"RouteTables"` } @@ -105,6 +100,7 @@ func CreateDescribeRouteTablesRequest() (request *DescribeRouteTablesRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeRouteTables", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_router_interfaces.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_router_interfaces.go index 7cbc2622..15080e3b 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_router_interfaces.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_router_interfaces.go @@ -21,7 +21,6 @@ import ( ) // DescribeRouterInterfaces invokes the ecs.DescribeRouterInterfaces API synchronously -// api document: https://help.aliyun.com/api/ecs/describerouterinterfaces.html func (client *Client) DescribeRouterInterfaces(request *DescribeRouterInterfacesRequest) (response *DescribeRouterInterfacesResponse, err error) { response = CreateDescribeRouterInterfacesResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeRouterInterfaces(request *DescribeRouterInterfaces } // DescribeRouterInterfacesWithChan invokes the ecs.DescribeRouterInterfaces API asynchronously -// api document: https://help.aliyun.com/api/ecs/describerouterinterfaces.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeRouterInterfacesWithChan(request *DescribeRouterInterfacesRequest) (<-chan *DescribeRouterInterfacesResponse, <-chan error) { responseChan := make(chan *DescribeRouterInterfacesResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeRouterInterfacesWithChan(request *DescribeRouterIn } // DescribeRouterInterfacesWithCallback invokes the ecs.DescribeRouterInterfaces API asynchronously -// api document: https://help.aliyun.com/api/ecs/describerouterinterfaces.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeRouterInterfacesWithCallback(request *DescribeRouterInterfacesRequest, callback func(response *DescribeRouterInterfacesResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,12 +71,12 @@ func (client *Client) DescribeRouterInterfacesWithCallback(request *DescribeRout // DescribeRouterInterfacesRequest is the request struct for api DescribeRouterInterfaces type DescribeRouterInterfacesRequest struct { *requests.RpcRequest - Filter *[]DescribeRouterInterfacesFilter `position:"Query" name:"Filter" type:"Repeated"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` PageSize requests.Integer `position:"Query" name:"PageSize"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` + Filter *[]DescribeRouterInterfacesFilter `position:"Query" name:"Filter" type:"Repeated"` } // DescribeRouterInterfacesFilter is a repeated param struct in DescribeRouterInterfacesRequest @@ -106,6 +101,7 @@ func CreateDescribeRouterInterfacesRequest() (request *DescribeRouterInterfacesR RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeRouterInterfaces", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_savings_plan_estimation.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_savings_plan_estimation.go new file mode 100644 index 00000000..7c096ecd --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_savings_plan_estimation.go @@ -0,0 +1,111 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeSavingsPlanEstimation invokes the ecs.DescribeSavingsPlanEstimation API synchronously +func (client *Client) DescribeSavingsPlanEstimation(request *DescribeSavingsPlanEstimationRequest) (response *DescribeSavingsPlanEstimationResponse, err error) { + response = CreateDescribeSavingsPlanEstimationResponse() + err = client.DoAction(request, response) + return +} + +// DescribeSavingsPlanEstimationWithChan invokes the ecs.DescribeSavingsPlanEstimation API asynchronously +func (client *Client) DescribeSavingsPlanEstimationWithChan(request *DescribeSavingsPlanEstimationRequest) (<-chan *DescribeSavingsPlanEstimationResponse, <-chan error) { + responseChan := make(chan *DescribeSavingsPlanEstimationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeSavingsPlanEstimation(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeSavingsPlanEstimationWithCallback invokes the ecs.DescribeSavingsPlanEstimation API asynchronously +func (client *Client) DescribeSavingsPlanEstimationWithCallback(request *DescribeSavingsPlanEstimationRequest, callback func(response *DescribeSavingsPlanEstimationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeSavingsPlanEstimationResponse + var err error + defer close(result) + response, err = client.DescribeSavingsPlanEstimation(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeSavingsPlanEstimationRequest is the request struct for api DescribeSavingsPlanEstimation +type DescribeSavingsPlanEstimationRequest struct { + *requests.RpcRequest + ResourceId string `position:"Query" name:"ResourceId"` + Period string `position:"Query" name:"Period"` + PlanType string `position:"Query" name:"PlanType"` + PeriodUnit string `position:"Query" name:"PeriodUnit"` + OfferingType string `position:"Query" name:"OfferingType"` +} + +// DescribeSavingsPlanEstimationResponse is the response struct for api DescribeSavingsPlanEstimation +type DescribeSavingsPlanEstimationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + ResourceId string `json:"ResourceId" xml:"ResourceId"` + InstanceTypeFamily string `json:"InstanceTypeFamily" xml:"InstanceTypeFamily"` + CommittedAmount string `json:"CommittedAmount" xml:"CommittedAmount"` + Currency string `json:"Currency" xml:"Currency"` + OfferingType string `json:"OfferingType" xml:"OfferingType"` + PeriodUnit string `json:"PeriodUnit" xml:"PeriodUnit"` + Period int `json:"Period" xml:"Period"` + PlanType string `json:"PlanType" xml:"PlanType"` +} + +// CreateDescribeSavingsPlanEstimationRequest creates a request to invoke DescribeSavingsPlanEstimation API +func CreateDescribeSavingsPlanEstimationRequest() (request *DescribeSavingsPlanEstimationRequest) { + request = &DescribeSavingsPlanEstimationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeSavingsPlanEstimation", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeSavingsPlanEstimationResponse creates a response to parse from DescribeSavingsPlanEstimation response +func CreateDescribeSavingsPlanEstimationResponse() (response *DescribeSavingsPlanEstimationResponse) { + response = &DescribeSavingsPlanEstimationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_savings_plan_price.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_savings_plan_price.go new file mode 100644 index 00000000..5730e547 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_savings_plan_price.go @@ -0,0 +1,106 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeSavingsPlanPrice invokes the ecs.DescribeSavingsPlanPrice API synchronously +func (client *Client) DescribeSavingsPlanPrice(request *DescribeSavingsPlanPriceRequest) (response *DescribeSavingsPlanPriceResponse, err error) { + response = CreateDescribeSavingsPlanPriceResponse() + err = client.DoAction(request, response) + return +} + +// DescribeSavingsPlanPriceWithChan invokes the ecs.DescribeSavingsPlanPrice API asynchronously +func (client *Client) DescribeSavingsPlanPriceWithChan(request *DescribeSavingsPlanPriceRequest) (<-chan *DescribeSavingsPlanPriceResponse, <-chan error) { + responseChan := make(chan *DescribeSavingsPlanPriceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeSavingsPlanPrice(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeSavingsPlanPriceWithCallback invokes the ecs.DescribeSavingsPlanPrice API asynchronously +func (client *Client) DescribeSavingsPlanPriceWithCallback(request *DescribeSavingsPlanPriceRequest, callback func(response *DescribeSavingsPlanPriceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeSavingsPlanPriceResponse + var err error + defer close(result) + response, err = client.DescribeSavingsPlanPrice(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeSavingsPlanPriceRequest is the request struct for api DescribeSavingsPlanPrice +type DescribeSavingsPlanPriceRequest struct { + *requests.RpcRequest + Period requests.Integer `position:"Query" name:"Period"` + ResourceId *[]string `position:"Query" name:"ResourceId" type:"Repeated"` + InstanceTypeFamily string `position:"Query" name:"InstanceTypeFamily"` + PlanType string `position:"Query" name:"PlanType"` + PeriodUnit string `position:"Query" name:"PeriodUnit"` + OfferingType string `position:"Query" name:"OfferingType"` + CommittedAmount string `position:"Query" name:"CommittedAmount"` +} + +// DescribeSavingsPlanPriceResponse is the response struct for api DescribeSavingsPlanPrice +type DescribeSavingsPlanPriceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PriceInfo PriceInfoInDescribeSavingsPlanPrice `json:"PriceInfo" xml:"PriceInfo"` +} + +// CreateDescribeSavingsPlanPriceRequest creates a request to invoke DescribeSavingsPlanPrice API +func CreateDescribeSavingsPlanPriceRequest() (request *DescribeSavingsPlanPriceRequest) { + request = &DescribeSavingsPlanPriceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeSavingsPlanPrice", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeSavingsPlanPriceResponse creates a response to parse from DescribeSavingsPlanPrice response +func CreateDescribeSavingsPlanPriceResponse() (response *DescribeSavingsPlanPriceResponse) { + response = &DescribeSavingsPlanPriceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_security_group_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_security_group_attribute.go index 74006029..63a845fd 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_security_group_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_security_group_attribute.go @@ -21,7 +21,6 @@ import ( ) // DescribeSecurityGroupAttribute invokes the ecs.DescribeSecurityGroupAttribute API synchronously -// api document: https://help.aliyun.com/api/ecs/describesecuritygroupattribute.html func (client *Client) DescribeSecurityGroupAttribute(request *DescribeSecurityGroupAttributeRequest) (response *DescribeSecurityGroupAttributeResponse, err error) { response = CreateDescribeSecurityGroupAttributeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeSecurityGroupAttribute(request *DescribeSecurityGr } // DescribeSecurityGroupAttributeWithChan invokes the ecs.DescribeSecurityGroupAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/describesecuritygroupattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeSecurityGroupAttributeWithChan(request *DescribeSecurityGroupAttributeRequest) (<-chan *DescribeSecurityGroupAttributeResponse, <-chan error) { responseChan := make(chan *DescribeSecurityGroupAttributeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeSecurityGroupAttributeWithChan(request *DescribeSe } // DescribeSecurityGroupAttributeWithCallback invokes the ecs.DescribeSecurityGroupAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/describesecuritygroupattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeSecurityGroupAttributeWithCallback(request *DescribeSecurityGroupAttributeRequest, callback func(response *DescribeSecurityGroupAttributeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -78,23 +73,23 @@ type DescribeSecurityGroupAttributeRequest struct { *requests.RpcRequest NicType string `position:"Query" name:"NicType"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SecurityGroupId string `position:"Query" name:"SecurityGroupId"` + Direction string `position:"Query" name:"Direction"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - SecurityGroupId string `position:"Query" name:"SecurityGroupId"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Direction string `position:"Query" name:"Direction"` } // DescribeSecurityGroupAttributeResponse is the response struct for api DescribeSecurityGroupAttribute type DescribeSecurityGroupAttributeResponse struct { *responses.BaseResponse + VpcId string `json:"VpcId" xml:"VpcId"` RequestId string `json:"RequestId" xml:"RequestId"` - RegionId string `json:"RegionId" xml:"RegionId"` - SecurityGroupId string `json:"SecurityGroupId" xml:"SecurityGroupId"` + InnerAccessPolicy string `json:"InnerAccessPolicy" xml:"InnerAccessPolicy"` Description string `json:"Description" xml:"Description"` + SecurityGroupId string `json:"SecurityGroupId" xml:"SecurityGroupId"` SecurityGroupName string `json:"SecurityGroupName" xml:"SecurityGroupName"` - VpcId string `json:"VpcId" xml:"VpcId"` - InnerAccessPolicy string `json:"InnerAccessPolicy" xml:"InnerAccessPolicy"` + RegionId string `json:"RegionId" xml:"RegionId"` Permissions Permissions `json:"Permissions" xml:"Permissions"` } @@ -104,6 +99,7 @@ func CreateDescribeSecurityGroupAttributeRequest() (request *DescribeSecurityGro RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeSecurityGroupAttribute", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_security_group_references.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_security_group_references.go index 74a0c86a..1db290c8 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_security_group_references.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_security_group_references.go @@ -21,7 +21,6 @@ import ( ) // DescribeSecurityGroupReferences invokes the ecs.DescribeSecurityGroupReferences API synchronously -// api document: https://help.aliyun.com/api/ecs/describesecuritygroupreferences.html func (client *Client) DescribeSecurityGroupReferences(request *DescribeSecurityGroupReferencesRequest) (response *DescribeSecurityGroupReferencesResponse, err error) { response = CreateDescribeSecurityGroupReferencesResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeSecurityGroupReferences(request *DescribeSecurityG } // DescribeSecurityGroupReferencesWithChan invokes the ecs.DescribeSecurityGroupReferences API asynchronously -// api document: https://help.aliyun.com/api/ecs/describesecuritygroupreferences.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeSecurityGroupReferencesWithChan(request *DescribeSecurityGroupReferencesRequest) (<-chan *DescribeSecurityGroupReferencesResponse, <-chan error) { responseChan := make(chan *DescribeSecurityGroupReferencesResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeSecurityGroupReferencesWithChan(request *DescribeS } // DescribeSecurityGroupReferencesWithCallback invokes the ecs.DescribeSecurityGroupReferences API asynchronously -// api document: https://help.aliyun.com/api/ecs/describesecuritygroupreferences.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeSecurityGroupReferencesWithCallback(request *DescribeSecurityGroupReferencesRequest, callback func(response *DescribeSecurityGroupReferencesResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,9 +72,9 @@ func (client *Client) DescribeSecurityGroupReferencesWithCallback(request *Descr type DescribeSecurityGroupReferencesRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SecurityGroupId *[]string `position:"Query" name:"SecurityGroupId" type:"Repeated"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - SecurityGroupId *[]string `position:"Query" name:"SecurityGroupId" type:"Repeated"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` } @@ -96,6 +91,7 @@ func CreateDescribeSecurityGroupReferencesRequest() (request *DescribeSecurityGr RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeSecurityGroupReferences", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_security_groups.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_security_groups.go index 15eecaf8..15919171 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_security_groups.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_security_groups.go @@ -21,7 +21,6 @@ import ( ) // DescribeSecurityGroups invokes the ecs.DescribeSecurityGroups API synchronously -// api document: https://help.aliyun.com/api/ecs/describesecuritygroups.html func (client *Client) DescribeSecurityGroups(request *DescribeSecurityGroupsRequest) (response *DescribeSecurityGroupsResponse, err error) { response = CreateDescribeSecurityGroupsResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeSecurityGroups(request *DescribeSecurityGroupsRequ } // DescribeSecurityGroupsWithChan invokes the ecs.DescribeSecurityGroups API asynchronously -// api document: https://help.aliyun.com/api/ecs/describesecuritygroups.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeSecurityGroupsWithChan(request *DescribeSecurityGroupsRequest) (<-chan *DescribeSecurityGroupsResponse, <-chan error) { responseChan := make(chan *DescribeSecurityGroupsResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeSecurityGroupsWithChan(request *DescribeSecurityGr } // DescribeSecurityGroupsWithCallback invokes the ecs.DescribeSecurityGroups API asynchronously -// api document: https://help.aliyun.com/api/ecs/describesecuritygroups.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeSecurityGroupsWithCallback(request *DescribeSecurityGroupsRequest, callback func(response *DescribeSecurityGroupsResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,21 +72,25 @@ func (client *Client) DescribeSecurityGroupsWithCallback(request *DescribeSecuri type DescribeSecurityGroupsRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - DryRun requests.Boolean `position:"Query" name:"DryRun"` FuzzyQuery requests.Boolean `position:"Query" name:"FuzzyQuery"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` + ServiceManaged requests.Boolean `position:"Query" name:"ServiceManaged"` SecurityGroupId string `position:"Query" name:"SecurityGroupId"` IsQueryEcsCount requests.Boolean `position:"Query" name:"IsQueryEcsCount"` NetworkType string `position:"Query" name:"NetworkType"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - SecurityGroupIds string `position:"Query" name:"SecurityGroupIds"` SecurityGroupName string `position:"Query" name:"SecurityGroupName"` PageNumber requests.Integer `position:"Query" name:"PageNumber"` ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - VpcId string `position:"Query" name:"VpcId"` + NextToken string `position:"Query" name:"NextToken"` PageSize requests.Integer `position:"Query" name:"PageSize"` Tag *[]DescribeSecurityGroupsTag `position:"Query" name:"Tag" type:"Repeated"` + DryRun requests.Boolean `position:"Query" name:"DryRun"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + SecurityGroupIds string `position:"Query" name:"SecurityGroupIds"` + SecurityGroupType string `position:"Query" name:"SecurityGroupType"` + VpcId string `position:"Query" name:"VpcId"` + MaxResults requests.Integer `position:"Query" name:"MaxResults"` } // DescribeSecurityGroupsTag is a repeated param struct in DescribeSecurityGroupsRequest @@ -105,6 +104,7 @@ type DescribeSecurityGroupsResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` RegionId string `json:"RegionId" xml:"RegionId"` + NextToken string `json:"NextToken" xml:"NextToken"` TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` PageSize int `json:"PageSize" xml:"PageSize"` @@ -117,6 +117,7 @@ func CreateDescribeSecurityGroupsRequest() (request *DescribeSecurityGroupsReque RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeSecurityGroups", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_send_file_results.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_send_file_results.go new file mode 100644 index 00000000..99519d55 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_send_file_results.go @@ -0,0 +1,123 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeSendFileResults invokes the ecs.DescribeSendFileResults API synchronously +func (client *Client) DescribeSendFileResults(request *DescribeSendFileResultsRequest) (response *DescribeSendFileResultsResponse, err error) { + response = CreateDescribeSendFileResultsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeSendFileResultsWithChan invokes the ecs.DescribeSendFileResults API asynchronously +func (client *Client) DescribeSendFileResultsWithChan(request *DescribeSendFileResultsRequest) (<-chan *DescribeSendFileResultsResponse, <-chan error) { + responseChan := make(chan *DescribeSendFileResultsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeSendFileResults(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeSendFileResultsWithCallback invokes the ecs.DescribeSendFileResults API asynchronously +func (client *Client) DescribeSendFileResultsWithCallback(request *DescribeSendFileResultsRequest, callback func(response *DescribeSendFileResultsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeSendFileResultsResponse + var err error + defer close(result) + response, err = client.DescribeSendFileResults(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeSendFileResultsRequest is the request struct for api DescribeSendFileResults +type DescribeSendFileResultsRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + NextToken string `position:"Query" name:"NextToken"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Tag *[]DescribeSendFileResultsTag `position:"Query" name:"Tag" type:"Repeated"` + InvokeId string `position:"Query" name:"InvokeId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + InvocationStatus string `position:"Query" name:"InvocationStatus"` + Name string `position:"Query" name:"Name"` + MaxResults requests.Integer `position:"Query" name:"MaxResults"` +} + +// DescribeSendFileResultsTag is a repeated param struct in DescribeSendFileResultsRequest +type DescribeSendFileResultsTag struct { + Key string `name:"Key"` + Value string `name:"Value"` +} + +// DescribeSendFileResultsResponse is the response struct for api DescribeSendFileResults +type DescribeSendFileResultsResponse struct { + *responses.BaseResponse + PageSize int64 `json:"PageSize" xml:"PageSize"` + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int64 `json:"PageNumber" xml:"PageNumber"` + TotalCount int64 `json:"TotalCount" xml:"TotalCount"` + NextToken string `json:"NextToken" xml:"NextToken"` + Invocations InvocationsInDescribeSendFileResults `json:"Invocations" xml:"Invocations"` +} + +// CreateDescribeSendFileResultsRequest creates a request to invoke DescribeSendFileResults API +func CreateDescribeSendFileResultsRequest() (request *DescribeSendFileResultsRequest) { + request = &DescribeSendFileResultsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeSendFileResults", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeSendFileResultsResponse creates a response to parse from DescribeSendFileResults response +func CreateDescribeSendFileResultsResponse() (response *DescribeSendFileResultsResponse) { + response = &DescribeSendFileResultsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshot_groups.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshot_groups.go new file mode 100644 index 00000000..0117b489 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshot_groups.go @@ -0,0 +1,119 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeSnapshotGroups invokes the ecs.DescribeSnapshotGroups API synchronously +func (client *Client) DescribeSnapshotGroups(request *DescribeSnapshotGroupsRequest) (response *DescribeSnapshotGroupsResponse, err error) { + response = CreateDescribeSnapshotGroupsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeSnapshotGroupsWithChan invokes the ecs.DescribeSnapshotGroups API asynchronously +func (client *Client) DescribeSnapshotGroupsWithChan(request *DescribeSnapshotGroupsRequest) (<-chan *DescribeSnapshotGroupsResponse, <-chan error) { + responseChan := make(chan *DescribeSnapshotGroupsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeSnapshotGroups(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeSnapshotGroupsWithCallback invokes the ecs.DescribeSnapshotGroups API asynchronously +func (client *Client) DescribeSnapshotGroupsWithCallback(request *DescribeSnapshotGroupsRequest, callback func(response *DescribeSnapshotGroupsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeSnapshotGroupsResponse + var err error + defer close(result) + response, err = client.DescribeSnapshotGroups(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeSnapshotGroupsRequest is the request struct for api DescribeSnapshotGroups +type DescribeSnapshotGroupsRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + NextToken string `position:"Query" name:"NextToken"` + Tag *[]DescribeSnapshotGroupsTag `position:"Query" name:"Tag" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + SnapshotGroupId *[]string `position:"Query" name:"SnapshotGroupId" type:"Repeated"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + AdditionalAttributes *[]string `position:"Query" name:"AdditionalAttributes" type:"Repeated"` + InstanceId string `position:"Query" name:"InstanceId"` + Name string `position:"Query" name:"Name"` + MaxResults requests.Integer `position:"Query" name:"MaxResults"` + Status *[]string `position:"Query" name:"Status" type:"Repeated"` +} + +// DescribeSnapshotGroupsTag is a repeated param struct in DescribeSnapshotGroupsRequest +type DescribeSnapshotGroupsTag struct { + Key string `name:"Key"` + Value string `name:"Value"` +} + +// DescribeSnapshotGroupsResponse is the response struct for api DescribeSnapshotGroups +type DescribeSnapshotGroupsResponse struct { + *responses.BaseResponse + NextToken string `json:"NextToken" xml:"NextToken"` + RequestId string `json:"RequestId" xml:"RequestId"` + SnapshotGroups SnapshotGroups `json:"SnapshotGroups" xml:"SnapshotGroups"` +} + +// CreateDescribeSnapshotGroupsRequest creates a request to invoke DescribeSnapshotGroups API +func CreateDescribeSnapshotGroupsRequest() (request *DescribeSnapshotGroupsRequest) { + request = &DescribeSnapshotGroupsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeSnapshotGroups", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeSnapshotGroupsResponse creates a response to parse from DescribeSnapshotGroups response +func CreateDescribeSnapshotGroupsResponse() (response *DescribeSnapshotGroupsResponse) { + response = &DescribeSnapshotGroupsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshot_links.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshot_links.go index 322f4efe..9bdb4d5e 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshot_links.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshot_links.go @@ -21,7 +21,6 @@ import ( ) // DescribeSnapshotLinks invokes the ecs.DescribeSnapshotLinks API synchronously -// api document: https://help.aliyun.com/api/ecs/describesnapshotlinks.html func (client *Client) DescribeSnapshotLinks(request *DescribeSnapshotLinksRequest) (response *DescribeSnapshotLinksResponse, err error) { response = CreateDescribeSnapshotLinksResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeSnapshotLinks(request *DescribeSnapshotLinksReques } // DescribeSnapshotLinksWithChan invokes the ecs.DescribeSnapshotLinks API asynchronously -// api document: https://help.aliyun.com/api/ecs/describesnapshotlinks.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeSnapshotLinksWithChan(request *DescribeSnapshotLinksRequest) (<-chan *DescribeSnapshotLinksResponse, <-chan error) { responseChan := make(chan *DescribeSnapshotLinksResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeSnapshotLinksWithChan(request *DescribeSnapshotLin } // DescribeSnapshotLinksWithCallback invokes the ecs.DescribeSnapshotLinks API asynchronously -// api document: https://help.aliyun.com/api/ecs/describesnapshotlinks.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeSnapshotLinksWithCallback(request *DescribeSnapshotLinksRequest, callback func(response *DescribeSnapshotLinksResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,23 +72,23 @@ func (client *Client) DescribeSnapshotLinksWithCallback(request *DescribeSnapsho type DescribeSnapshotLinksRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` PageSize requests.Integer `position:"Query" name:"PageSize"` DiskIds string `position:"Query" name:"DiskIds"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` SnapshotLinkIds string `position:"Query" name:"SnapshotLinkIds"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` + InstanceId string `position:"Query" name:"InstanceId"` } // DescribeSnapshotLinksResponse is the response struct for api DescribeSnapshotLinks type DescribeSnapshotLinksResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` SnapshotLinks SnapshotLinks `json:"SnapshotLinks" xml:"SnapshotLinks"` } @@ -103,6 +98,7 @@ func CreateDescribeSnapshotLinksRequest() (request *DescribeSnapshotLinksRequest RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeSnapshotLinks", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshot_monitor_data.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshot_monitor_data.go index cd42e3a3..76f9c2e8 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshot_monitor_data.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshot_monitor_data.go @@ -21,7 +21,6 @@ import ( ) // DescribeSnapshotMonitorData invokes the ecs.DescribeSnapshotMonitorData API synchronously -// api document: https://help.aliyun.com/api/ecs/describesnapshotmonitordata.html func (client *Client) DescribeSnapshotMonitorData(request *DescribeSnapshotMonitorDataRequest) (response *DescribeSnapshotMonitorDataResponse, err error) { response = CreateDescribeSnapshotMonitorDataResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeSnapshotMonitorData(request *DescribeSnapshotMonit } // DescribeSnapshotMonitorDataWithChan invokes the ecs.DescribeSnapshotMonitorData API asynchronously -// api document: https://help.aliyun.com/api/ecs/describesnapshotmonitordata.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeSnapshotMonitorDataWithChan(request *DescribeSnapshotMonitorDataRequest) (<-chan *DescribeSnapshotMonitorDataResponse, <-chan error) { responseChan := make(chan *DescribeSnapshotMonitorDataResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeSnapshotMonitorDataWithChan(request *DescribeSnaps } // DescribeSnapshotMonitorDataWithCallback invokes the ecs.DescribeSnapshotMonitorData API asynchronously -// api document: https://help.aliyun.com/api/ecs/describesnapshotmonitordata.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeSnapshotMonitorDataWithCallback(request *DescribeSnapshotMonitorDataRequest, callback func(response *DescribeSnapshotMonitorDataResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,12 +72,13 @@ func (client *Client) DescribeSnapshotMonitorDataWithCallback(request *DescribeS type DescribeSnapshotMonitorDataRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + StartTime string `position:"Query" name:"StartTime"` Period requests.Integer `position:"Query" name:"Period"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` EndTime string `position:"Query" name:"EndTime"` - StartTime string `position:"Query" name:"StartTime"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Category string `position:"Query" name:"Category"` } // DescribeSnapshotMonitorDataResponse is the response struct for api DescribeSnapshotMonitorData @@ -98,6 +94,7 @@ func CreateDescribeSnapshotMonitorDataRequest() (request *DescribeSnapshotMonito RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeSnapshotMonitorData", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshot_package.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshot_package.go index b4fefc34..297e73b5 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshot_package.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshot_package.go @@ -21,7 +21,6 @@ import ( ) // DescribeSnapshotPackage invokes the ecs.DescribeSnapshotPackage API synchronously -// api document: https://help.aliyun.com/api/ecs/describesnapshotpackage.html func (client *Client) DescribeSnapshotPackage(request *DescribeSnapshotPackageRequest) (response *DescribeSnapshotPackageResponse, err error) { response = CreateDescribeSnapshotPackageResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeSnapshotPackage(request *DescribeSnapshotPackageRe } // DescribeSnapshotPackageWithChan invokes the ecs.DescribeSnapshotPackage API asynchronously -// api document: https://help.aliyun.com/api/ecs/describesnapshotpackage.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeSnapshotPackageWithChan(request *DescribeSnapshotPackageRequest) (<-chan *DescribeSnapshotPackageResponse, <-chan error) { responseChan := make(chan *DescribeSnapshotPackageResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeSnapshotPackageWithChan(request *DescribeSnapshotP } // DescribeSnapshotPackageWithCallback invokes the ecs.DescribeSnapshotPackage API asynchronously -// api document: https://help.aliyun.com/api/ecs/describesnapshotpackage.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeSnapshotPackageWithCallback(request *DescribeSnapshotPackageRequest, callback func(response *DescribeSnapshotPackageResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,20 +72,20 @@ func (client *Client) DescribeSnapshotPackageWithCallback(request *DescribeSnaps type DescribeSnapshotPackageRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - PageSize requests.Integer `position:"Query" name:"PageSize"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` } // DescribeSnapshotPackageResponse is the response struct for api DescribeSnapshotPackage type DescribeSnapshotPackageResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` SnapshotPackages SnapshotPackages `json:"SnapshotPackages" xml:"SnapshotPackages"` } @@ -100,6 +95,7 @@ func CreateDescribeSnapshotPackageRequest() (request *DescribeSnapshotPackageReq RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeSnapshotPackage", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshots.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshots.go index cad590c2..fbf5aecf 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshots.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshots.go @@ -21,7 +21,6 @@ import ( ) // DescribeSnapshots invokes the ecs.DescribeSnapshots API synchronously -// api document: https://help.aliyun.com/api/ecs/describesnapshots.html func (client *Client) DescribeSnapshots(request *DescribeSnapshotsRequest) (response *DescribeSnapshotsResponse, err error) { response = CreateDescribeSnapshotsResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeSnapshots(request *DescribeSnapshotsRequest) (resp } // DescribeSnapshotsWithChan invokes the ecs.DescribeSnapshots API asynchronously -// api document: https://help.aliyun.com/api/ecs/describesnapshots.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeSnapshotsWithChan(request *DescribeSnapshotsRequest) (<-chan *DescribeSnapshotsResponse, <-chan error) { responseChan := make(chan *DescribeSnapshotsResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeSnapshotsWithChan(request *DescribeSnapshotsReques } // DescribeSnapshotsWithCallback invokes the ecs.DescribeSnapshots API asynchronously -// api document: https://help.aliyun.com/api/ecs/describesnapshots.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeSnapshotsWithCallback(request *DescribeSnapshotsRequest, callback func(response *DescribeSnapshotsResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -81,25 +76,28 @@ type DescribeSnapshotsRequest struct { SnapshotIds string `position:"Query" name:"SnapshotIds"` Usage string `position:"Query" name:"Usage"` SnapshotLinkId string `position:"Query" name:"SnapshotLinkId"` - SnapshotName string `position:"Query" name:"SnapshotName"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` ResourceGroupId string `position:"Query" name:"ResourceGroupId"` Filter1Key string `position:"Query" name:"Filter.1.Key"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - DiskId string `position:"Query" name:"DiskId"` Tag *[]DescribeSnapshotsTag `position:"Query" name:"Tag" type:"Repeated"` DryRun requests.Boolean `position:"Query" name:"DryRun"` + Filter1Value string `position:"Query" name:"Filter.1.Value"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + MaxResults requests.Integer `position:"Query" name:"MaxResults"` + Status string `position:"Query" name:"Status"` + SnapshotName string `position:"Query" name:"SnapshotName"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + NextToken string `position:"Query" name:"NextToken"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + DiskId string `position:"Query" name:"DiskId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` SourceDiskType string `position:"Query" name:"SourceDiskType"` - Filter1Value string `position:"Query" name:"Filter.1.Value"` Filter2Key string `position:"Query" name:"Filter.2.Key"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` Encrypted requests.Boolean `position:"Query" name:"Encrypted"` SnapshotType string `position:"Query" name:"SnapshotType"` KMSKeyId string `position:"Query" name:"KMSKeyId"` - Status string `position:"Query" name:"Status"` + Category string `position:"Query" name:"Category"` } // DescribeSnapshotsTag is a repeated param struct in DescribeSnapshotsRequest @@ -111,11 +109,12 @@ type DescribeSnapshotsTag struct { // DescribeSnapshotsResponse is the response struct for api DescribeSnapshots type DescribeSnapshotsResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` - Snapshots Snapshots `json:"Snapshots" xml:"Snapshots"` + NextToken string `json:"NextToken" xml:"NextToken"` + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + Snapshots SnapshotsInDescribeSnapshots `json:"Snapshots" xml:"Snapshots"` } // CreateDescribeSnapshotsRequest creates a request to invoke DescribeSnapshots API @@ -124,6 +123,7 @@ func CreateDescribeSnapshotsRequest() (request *DescribeSnapshotsRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeSnapshots", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshots_usage.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshots_usage.go index 7a615b7e..b4fdd34e 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshots_usage.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_snapshots_usage.go @@ -21,7 +21,6 @@ import ( ) // DescribeSnapshotsUsage invokes the ecs.DescribeSnapshotsUsage API synchronously -// api document: https://help.aliyun.com/api/ecs/describesnapshotsusage.html func (client *Client) DescribeSnapshotsUsage(request *DescribeSnapshotsUsageRequest) (response *DescribeSnapshotsUsageResponse, err error) { response = CreateDescribeSnapshotsUsageResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeSnapshotsUsage(request *DescribeSnapshotsUsageRequ } // DescribeSnapshotsUsageWithChan invokes the ecs.DescribeSnapshotsUsage API asynchronously -// api document: https://help.aliyun.com/api/ecs/describesnapshotsusage.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeSnapshotsUsageWithChan(request *DescribeSnapshotsUsageRequest) (<-chan *DescribeSnapshotsUsageResponse, <-chan error) { responseChan := make(chan *DescribeSnapshotsUsageResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeSnapshotsUsageWithChan(request *DescribeSnapshotsU } // DescribeSnapshotsUsageWithCallback invokes the ecs.DescribeSnapshotsUsage API asynchronously -// api document: https://help.aliyun.com/api/ecs/describesnapshotsusage.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeSnapshotsUsageWithCallback(request *DescribeSnapshotsUsageRequest, callback func(response *DescribeSnapshotsUsageResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -85,9 +80,9 @@ type DescribeSnapshotsUsageRequest struct { // DescribeSnapshotsUsageResponse is the response struct for api DescribeSnapshotsUsage type DescribeSnapshotsUsageResponse struct { *responses.BaseResponse + SnapshotSize int64 `json:"SnapshotSize" xml:"SnapshotSize"` RequestId string `json:"RequestId" xml:"RequestId"` SnapshotCount int `json:"SnapshotCount" xml:"SnapshotCount"` - SnapshotSize int64 `json:"SnapshotSize" xml:"SnapshotSize"` } // CreateDescribeSnapshotsUsageRequest creates a request to invoke DescribeSnapshotsUsage API @@ -96,6 +91,7 @@ func CreateDescribeSnapshotsUsageRequest() (request *DescribeSnapshotsUsageReque RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeSnapshotsUsage", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_spot_advice.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_spot_advice.go new file mode 100644 index 00000000..c444f7f3 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_spot_advice.go @@ -0,0 +1,116 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeSpotAdvice invokes the ecs.DescribeSpotAdvice API synchronously +func (client *Client) DescribeSpotAdvice(request *DescribeSpotAdviceRequest) (response *DescribeSpotAdviceResponse, err error) { + response = CreateDescribeSpotAdviceResponse() + err = client.DoAction(request, response) + return +} + +// DescribeSpotAdviceWithChan invokes the ecs.DescribeSpotAdvice API asynchronously +func (client *Client) DescribeSpotAdviceWithChan(request *DescribeSpotAdviceRequest) (<-chan *DescribeSpotAdviceResponse, <-chan error) { + responseChan := make(chan *DescribeSpotAdviceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeSpotAdvice(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeSpotAdviceWithCallback invokes the ecs.DescribeSpotAdvice API asynchronously +func (client *Client) DescribeSpotAdviceWithCallback(request *DescribeSpotAdviceRequest, callback func(response *DescribeSpotAdviceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeSpotAdviceResponse + var err error + defer close(result) + response, err = client.DescribeSpotAdvice(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeSpotAdviceRequest is the request struct for api DescribeSpotAdvice +type DescribeSpotAdviceRequest struct { + *requests.RpcRequest + GpuSpec string `position:"Query" name:"GpuSpec"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Memory requests.Float `position:"Query" name:"Memory"` + IoOptimized string `position:"Query" name:"IoOptimized"` + InstanceTypes *[]string `position:"Query" name:"InstanceTypes" type:"Repeated"` + MinCores requests.Integer `position:"Query" name:"MinCores"` + NetworkType string `position:"Query" name:"NetworkType"` + Cores requests.Integer `position:"Query" name:"Cores"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + InstanceTypeFamily string `position:"Query" name:"InstanceTypeFamily"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceFamilyLevel string `position:"Query" name:"InstanceFamilyLevel"` + ZoneId string `position:"Query" name:"ZoneId"` + GpuAmount requests.Integer `position:"Query" name:"GpuAmount"` + MinMemory requests.Float `position:"Query" name:"MinMemory"` +} + +// DescribeSpotAdviceResponse is the response struct for api DescribeSpotAdvice +type DescribeSpotAdviceResponse struct { + *responses.BaseResponse + RegionId string `json:"RegionId" xml:"RegionId"` + RequestId string `json:"RequestId" xml:"RequestId"` + AvailableSpotZones AvailableSpotZones `json:"AvailableSpotZones" xml:"AvailableSpotZones"` +} + +// CreateDescribeSpotAdviceRequest creates a request to invoke DescribeSpotAdvice API +func CreateDescribeSpotAdviceRequest() (request *DescribeSpotAdviceRequest) { + request = &DescribeSpotAdviceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeSpotAdvice", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeSpotAdviceResponse creates a response to parse from DescribeSpotAdvice response +func CreateDescribeSpotAdviceResponse() (response *DescribeSpotAdviceResponse) { + response = &DescribeSpotAdviceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_spot_price_history.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_spot_price_history.go index b8cdc63a..d4ca82a2 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_spot_price_history.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_spot_price_history.go @@ -21,7 +21,6 @@ import ( ) // DescribeSpotPriceHistory invokes the ecs.DescribeSpotPriceHistory API synchronously -// api document: https://help.aliyun.com/api/ecs/describespotpricehistory.html func (client *Client) DescribeSpotPriceHistory(request *DescribeSpotPriceHistoryRequest) (response *DescribeSpotPriceHistoryResponse, err error) { response = CreateDescribeSpotPriceHistoryResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeSpotPriceHistory(request *DescribeSpotPriceHistory } // DescribeSpotPriceHistoryWithChan invokes the ecs.DescribeSpotPriceHistory API asynchronously -// api document: https://help.aliyun.com/api/ecs/describespotpricehistory.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeSpotPriceHistoryWithChan(request *DescribeSpotPriceHistoryRequest) (<-chan *DescribeSpotPriceHistoryResponse, <-chan error) { responseChan := make(chan *DescribeSpotPriceHistoryResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeSpotPriceHistoryWithChan(request *DescribeSpotPric } // DescribeSpotPriceHistoryWithCallback invokes the ecs.DescribeSpotPriceHistory API asynchronously -// api document: https://help.aliyun.com/api/ecs/describespotpricehistory.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeSpotPriceHistoryWithCallback(request *DescribeSpotPriceHistoryRequest, callback func(response *DescribeSpotPriceHistoryResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -87,6 +82,7 @@ type DescribeSpotPriceHistoryRequest struct { EndTime string `position:"Query" name:"EndTime"` OSType string `position:"Query" name:"OSType"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + SpotDuration requests.Integer `position:"Query" name:"SpotDuration"` ZoneId string `position:"Query" name:"ZoneId"` } @@ -94,8 +90,8 @@ type DescribeSpotPriceHistoryRequest struct { type DescribeSpotPriceHistoryResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` - NextOffset int `json:"NextOffset" xml:"NextOffset"` Currency string `json:"Currency" xml:"Currency"` + NextOffset int `json:"NextOffset" xml:"NextOffset"` SpotPrices SpotPrices `json:"SpotPrices" xml:"SpotPrices"` } @@ -105,6 +101,7 @@ func CreateDescribeSpotPriceHistoryRequest() (request *DescribeSpotPriceHistoryR RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeSpotPriceHistory", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_storage_capacity_units.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_storage_capacity_units.go new file mode 100644 index 00000000..5adc5328 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_storage_capacity_units.go @@ -0,0 +1,120 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeStorageCapacityUnits invokes the ecs.DescribeStorageCapacityUnits API synchronously +func (client *Client) DescribeStorageCapacityUnits(request *DescribeStorageCapacityUnitsRequest) (response *DescribeStorageCapacityUnitsResponse, err error) { + response = CreateDescribeStorageCapacityUnitsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeStorageCapacityUnitsWithChan invokes the ecs.DescribeStorageCapacityUnits API asynchronously +func (client *Client) DescribeStorageCapacityUnitsWithChan(request *DescribeStorageCapacityUnitsRequest) (<-chan *DescribeStorageCapacityUnitsResponse, <-chan error) { + responseChan := make(chan *DescribeStorageCapacityUnitsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeStorageCapacityUnits(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeStorageCapacityUnitsWithCallback invokes the ecs.DescribeStorageCapacityUnits API asynchronously +func (client *Client) DescribeStorageCapacityUnitsWithCallback(request *DescribeStorageCapacityUnitsRequest, callback func(response *DescribeStorageCapacityUnitsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeStorageCapacityUnitsResponse + var err error + defer close(result) + response, err = client.DescribeStorageCapacityUnits(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeStorageCapacityUnitsRequest is the request struct for api DescribeStorageCapacityUnits +type DescribeStorageCapacityUnitsRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + Capacity requests.Integer `position:"Query" name:"Capacity"` + StorageCapacityUnitId *[]string `position:"Query" name:"StorageCapacityUnitId" type:"Repeated"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Tag *[]DescribeStorageCapacityUnitsTag `position:"Query" name:"Tag" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Name string `position:"Query" name:"Name"` + AllocationType string `position:"Query" name:"AllocationType"` + Status *[]string `position:"Query" name:"Status" type:"Repeated"` +} + +// DescribeStorageCapacityUnitsTag is a repeated param struct in DescribeStorageCapacityUnitsRequest +type DescribeStorageCapacityUnitsTag struct { + Key string `name:"Key"` + Value string `name:"Value"` +} + +// DescribeStorageCapacityUnitsResponse is the response struct for api DescribeStorageCapacityUnits +type DescribeStorageCapacityUnitsResponse struct { + *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + StorageCapacityUnits StorageCapacityUnits `json:"StorageCapacityUnits" xml:"StorageCapacityUnits"` +} + +// CreateDescribeStorageCapacityUnitsRequest creates a request to invoke DescribeStorageCapacityUnits API +func CreateDescribeStorageCapacityUnitsRequest() (request *DescribeStorageCapacityUnitsRequest) { + request = &DescribeStorageCapacityUnitsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeStorageCapacityUnits", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeStorageCapacityUnitsResponse creates a response to parse from DescribeStorageCapacityUnits response +func CreateDescribeStorageCapacityUnitsResponse() (response *DescribeStorageCapacityUnitsResponse) { + response = &DescribeStorageCapacityUnitsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_storage_set_details.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_storage_set_details.go index 858240b6..b3496047 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_storage_set_details.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_storage_set_details.go @@ -21,7 +21,6 @@ import ( ) // DescribeStorageSetDetails invokes the ecs.DescribeStorageSetDetails API synchronously -// api document: https://help.aliyun.com/api/ecs/describestoragesetdetails.html func (client *Client) DescribeStorageSetDetails(request *DescribeStorageSetDetailsRequest) (response *DescribeStorageSetDetailsResponse, err error) { response = CreateDescribeStorageSetDetailsResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeStorageSetDetails(request *DescribeStorageSetDetai } // DescribeStorageSetDetailsWithChan invokes the ecs.DescribeStorageSetDetails API asynchronously -// api document: https://help.aliyun.com/api/ecs/describestoragesetdetails.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeStorageSetDetailsWithChan(request *DescribeStorageSetDetailsRequest) (<-chan *DescribeStorageSetDetailsResponse, <-chan error) { responseChan := make(chan *DescribeStorageSetDetailsResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeStorageSetDetailsWithChan(request *DescribeStorage } // DescribeStorageSetDetailsWithCallback invokes the ecs.DescribeStorageSetDetails API asynchronously -// api document: https://help.aliyun.com/api/ecs/describestoragesetdetails.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeStorageSetDetailsWithCallback(request *DescribeStorageSetDetailsRequest, callback func(response *DescribeStorageSetDetailsResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -91,10 +86,10 @@ type DescribeStorageSetDetailsRequest struct { // DescribeStorageSetDetailsResponse is the response struct for api DescribeStorageSetDetails type DescribeStorageSetDetailsResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` Disks DisksInDescribeStorageSetDetails `json:"Disks" xml:"Disks"` } @@ -104,6 +99,7 @@ func CreateDescribeStorageSetDetailsRequest() (request *DescribeStorageSetDetail RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeStorageSetDetails", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_storage_sets.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_storage_sets.go index ab56c5ca..782f0ada 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_storage_sets.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_storage_sets.go @@ -21,7 +21,6 @@ import ( ) // DescribeStorageSets invokes the ecs.DescribeStorageSets API synchronously -// api document: https://help.aliyun.com/api/ecs/describestoragesets.html func (client *Client) DescribeStorageSets(request *DescribeStorageSetsRequest) (response *DescribeStorageSetsResponse, err error) { response = CreateDescribeStorageSetsResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeStorageSets(request *DescribeStorageSetsRequest) ( } // DescribeStorageSetsWithChan invokes the ecs.DescribeStorageSets API asynchronously -// api document: https://help.aliyun.com/api/ecs/describestoragesets.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeStorageSetsWithChan(request *DescribeStorageSetsRequest) (<-chan *DescribeStorageSetsResponse, <-chan error) { responseChan := make(chan *DescribeStorageSetsResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeStorageSetsWithChan(request *DescribeStorageSetsRe } // DescribeStorageSetsWithCallback invokes the ecs.DescribeStorageSets API asynchronously -// api document: https://help.aliyun.com/api/ecs/describestoragesets.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeStorageSetsWithCallback(request *DescribeStorageSetsRequest, callback func(response *DescribeStorageSetsResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -91,10 +86,10 @@ type DescribeStorageSetsRequest struct { // DescribeStorageSetsResponse is the response struct for api DescribeStorageSets type DescribeStorageSetsResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` StorageSets StorageSets `json:"StorageSets" xml:"StorageSets"` } @@ -104,6 +99,7 @@ func CreateDescribeStorageSetsRequest() (request *DescribeStorageSetsRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeStorageSets", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_tags.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_tags.go index 12c7d44c..5dbbd5f3 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_tags.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_tags.go @@ -21,7 +21,6 @@ import ( ) // DescribeTags invokes the ecs.DescribeTags API synchronously -// api document: https://help.aliyun.com/api/ecs/describetags.html func (client *Client) DescribeTags(request *DescribeTagsRequest) (response *DescribeTagsResponse, err error) { response = CreateDescribeTagsResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeTags(request *DescribeTagsRequest) (response *Desc } // DescribeTagsWithChan invokes the ecs.DescribeTags API asynchronously -// api document: https://help.aliyun.com/api/ecs/describetags.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeTagsWithChan(request *DescribeTagsRequest) (<-chan *DescribeTagsResponse, <-chan error) { responseChan := make(chan *DescribeTagsResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeTagsWithChan(request *DescribeTagsRequest) (<-chan } // DescribeTagsWithCallback invokes the ecs.DescribeTags API asynchronously -// api document: https://help.aliyun.com/api/ecs/describetags.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeTagsWithCallback(request *DescribeTagsRequest, callback func(response *DescribeTagsResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,14 +72,14 @@ func (client *Client) DescribeTagsWithCallback(request *DescribeTagsRequest, cal type DescribeTagsRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceId string `position:"Query" name:"ResourceId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` PageSize requests.Integer `position:"Query" name:"PageSize"` Tag *[]DescribeTagsTag `position:"Query" name:"Tag" type:"Repeated"` + ResourceId string `position:"Query" name:"ResourceId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Category string `position:"Query" name:"Category"` ResourceType string `position:"Query" name:"ResourceType"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` + Category string `position:"Query" name:"Category"` } // DescribeTagsTag is a repeated param struct in DescribeTagsRequest @@ -109,6 +104,7 @@ func CreateDescribeTagsRequest() (request *DescribeTagsRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeTags", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_task_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_task_attribute.go index ccfbf54a..dfd8557e 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_task_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_task_attribute.go @@ -21,7 +21,6 @@ import ( ) // DescribeTaskAttribute invokes the ecs.DescribeTaskAttribute API synchronously -// api document: https://help.aliyun.com/api/ecs/describetaskattribute.html func (client *Client) DescribeTaskAttribute(request *DescribeTaskAttributeRequest) (response *DescribeTaskAttributeResponse, err error) { response = CreateDescribeTaskAttributeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeTaskAttribute(request *DescribeTaskAttributeReques } // DescribeTaskAttributeWithChan invokes the ecs.DescribeTaskAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/describetaskattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeTaskAttributeWithChan(request *DescribeTaskAttributeRequest) (<-chan *DescribeTaskAttributeResponse, <-chan error) { responseChan := make(chan *DescribeTaskAttributeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeTaskAttributeWithChan(request *DescribeTaskAttribu } // DescribeTaskAttributeWithCallback invokes the ecs.DescribeTaskAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/describetaskattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeTaskAttributeWithCallback(request *DescribeTaskAttributeRequest, callback func(response *DescribeTaskAttributeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,27 +72,27 @@ func (client *Client) DescribeTaskAttributeWithCallback(request *DescribeTaskAtt type DescribeTaskAttributeRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + TaskId string `position:"Query" name:"TaskId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - TaskId string `position:"Query" name:"TaskId"` } // DescribeTaskAttributeResponse is the response struct for api DescribeTaskAttribute type DescribeTaskAttributeResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TaskId string `json:"TaskId" xml:"TaskId"` - RegionId string `json:"RegionId" xml:"RegionId"` - TaskAction string `json:"TaskAction" xml:"TaskAction"` - TaskStatus string `json:"TaskStatus" xml:"TaskStatus"` - TaskProcess string `json:"TaskProcess" xml:"TaskProcess"` - SupportCancel string `json:"SupportCancel" xml:"SupportCancel"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` - SuccessCount int `json:"SuccessCount" xml:"SuccessCount"` - FailedCount int `json:"FailedCount" xml:"FailedCount"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - FinishedTime string `json:"FinishedTime" xml:"FinishedTime"` - OperationProgressSet OperationProgressSet `json:"OperationProgressSet" xml:"OperationProgressSet"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + SupportCancel string `json:"SupportCancel" xml:"SupportCancel"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + SuccessCount int `json:"SuccessCount" xml:"SuccessCount"` + RegionId string `json:"RegionId" xml:"RegionId"` + TaskAction string `json:"TaskAction" xml:"TaskAction"` + FailedCount int `json:"FailedCount" xml:"FailedCount"` + RequestId string `json:"RequestId" xml:"RequestId"` + TaskStatus string `json:"TaskStatus" xml:"TaskStatus"` + TaskProcess string `json:"TaskProcess" xml:"TaskProcess"` + FinishedTime string `json:"FinishedTime" xml:"FinishedTime"` + TaskId string `json:"TaskId" xml:"TaskId"` + OperationProgressSet OperationProgressSetInDescribeTaskAttribute `json:"OperationProgressSet" xml:"OperationProgressSet"` } // CreateDescribeTaskAttributeRequest creates a request to invoke DescribeTaskAttribute API @@ -106,6 +101,7 @@ func CreateDescribeTaskAttributeRequest() (request *DescribeTaskAttributeRequest RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeTaskAttribute", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_tasks.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_tasks.go index b59c3c51..df7dfc2f 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_tasks.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_tasks.go @@ -21,7 +21,6 @@ import ( ) // DescribeTasks invokes the ecs.DescribeTasks API synchronously -// api document: https://help.aliyun.com/api/ecs/describetasks.html func (client *Client) DescribeTasks(request *DescribeTasksRequest) (response *DescribeTasksResponse, err error) { response = CreateDescribeTasksResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeTasks(request *DescribeTasksRequest) (response *De } // DescribeTasksWithChan invokes the ecs.DescribeTasks API asynchronously -// api document: https://help.aliyun.com/api/ecs/describetasks.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeTasksWithChan(request *DescribeTasksRequest) (<-chan *DescribeTasksResponse, <-chan error) { responseChan := make(chan *DescribeTasksResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeTasksWithChan(request *DescribeTasksRequest) (<-ch } // DescribeTasksWithCallback invokes the ecs.DescribeTasks API asynchronously -// api document: https://help.aliyun.com/api/ecs/describetasks.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeTasksWithCallback(request *DescribeTasksRequest, callback func(response *DescribeTasksResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,26 +72,27 @@ func (client *Client) DescribeTasksWithCallback(request *DescribeTasksRequest, c type DescribeTasksRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - EndTime string `position:"Query" name:"EndTime"` StartTime string `position:"Query" name:"StartTime"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` TaskIds string `position:"Query" name:"TaskIds"` PageNumber requests.Integer `position:"Query" name:"PageNumber"` TaskStatus string `position:"Query" name:"TaskStatus"` PageSize requests.Integer `position:"Query" name:"PageSize"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + EndTime string `position:"Query" name:"EndTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` TaskAction string `position:"Query" name:"TaskAction"` + ResourceIds *[]string `position:"Query" name:"ResourceIds" type:"Repeated"` } // DescribeTasksResponse is the response struct for api DescribeTasks type DescribeTasksResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` RequestId string `json:"RequestId" xml:"RequestId"` - RegionId string `json:"RegionId" xml:"RegionId"` TotalCount int `json:"TotalCount" xml:"TotalCount"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + RegionId string `json:"RegionId" xml:"RegionId"` TaskSet TaskSet `json:"TaskSet" xml:"TaskSet"` } @@ -106,6 +102,7 @@ func CreateDescribeTasksRequest() (request *DescribeTasksRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeTasks", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_user_business_behavior.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_user_business_behavior.go index 0070a582..07f94504 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_user_business_behavior.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_user_business_behavior.go @@ -21,7 +21,6 @@ import ( ) // DescribeUserBusinessBehavior invokes the ecs.DescribeUserBusinessBehavior API synchronously -// api document: https://help.aliyun.com/api/ecs/describeuserbusinessbehavior.html func (client *Client) DescribeUserBusinessBehavior(request *DescribeUserBusinessBehaviorRequest) (response *DescribeUserBusinessBehaviorResponse, err error) { response = CreateDescribeUserBusinessBehaviorResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeUserBusinessBehavior(request *DescribeUserBusiness } // DescribeUserBusinessBehaviorWithChan invokes the ecs.DescribeUserBusinessBehavior API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeuserbusinessbehavior.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeUserBusinessBehaviorWithChan(request *DescribeUserBusinessBehaviorRequest) (<-chan *DescribeUserBusinessBehaviorResponse, <-chan error) { responseChan := make(chan *DescribeUserBusinessBehaviorResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeUserBusinessBehaviorWithChan(request *DescribeUser } // DescribeUserBusinessBehaviorWithCallback invokes the ecs.DescribeUserBusinessBehavior API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeuserbusinessbehavior.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeUserBusinessBehaviorWithCallback(request *DescribeUserBusinessBehaviorRequest, callback func(response *DescribeUserBusinessBehaviorResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -86,8 +81,8 @@ type DescribeUserBusinessBehaviorRequest struct { // DescribeUserBusinessBehaviorResponse is the response struct for api DescribeUserBusinessBehavior type DescribeUserBusinessBehaviorResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` StatusValue string `json:"StatusValue" xml:"StatusValue"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateDescribeUserBusinessBehaviorRequest creates a request to invoke DescribeUserBusinessBehavior API @@ -96,6 +91,7 @@ func CreateDescribeUserBusinessBehaviorRequest() (request *DescribeUserBusinessB RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeUserBusinessBehavior", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_user_data.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_user_data.go index 63e80e14..ba642b55 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_user_data.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_user_data.go @@ -21,7 +21,6 @@ import ( ) // DescribeUserData invokes the ecs.DescribeUserData API synchronously -// api document: https://help.aliyun.com/api/ecs/describeuserdata.html func (client *Client) DescribeUserData(request *DescribeUserDataRequest) (response *DescribeUserDataResponse, err error) { response = CreateDescribeUserDataResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeUserData(request *DescribeUserDataRequest) (respon } // DescribeUserDataWithChan invokes the ecs.DescribeUserData API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeuserdata.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeUserDataWithChan(request *DescribeUserDataRequest) (<-chan *DescribeUserDataResponse, <-chan error) { responseChan := make(chan *DescribeUserDataResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeUserDataWithChan(request *DescribeUserDataRequest) } // DescribeUserDataWithCallback invokes the ecs.DescribeUserData API asynchronously -// api document: https://help.aliyun.com/api/ecs/describeuserdata.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeUserDataWithCallback(request *DescribeUserDataRequest, callback func(response *DescribeUserDataResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,18 +72,18 @@ func (client *Client) DescribeUserDataWithCallback(request *DescribeUserDataRequ type DescribeUserDataRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` } // DescribeUserDataResponse is the response struct for api DescribeUserData type DescribeUserDataResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` - RegionId string `json:"RegionId" xml:"RegionId"` InstanceId string `json:"InstanceId" xml:"InstanceId"` UserData string `json:"UserData" xml:"UserData"` + RegionId string `json:"RegionId" xml:"RegionId"` } // CreateDescribeUserDataRequest creates a request to invoke DescribeUserData API @@ -97,6 +92,7 @@ func CreateDescribeUserDataRequest() (request *DescribeUserDataRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeUserData", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_v_routers.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_v_routers.go index 110d0f79..18c5aa36 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_v_routers.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_v_routers.go @@ -21,7 +21,6 @@ import ( ) // DescribeVRouters invokes the ecs.DescribeVRouters API synchronously -// api document: https://help.aliyun.com/api/ecs/describevrouters.html func (client *Client) DescribeVRouters(request *DescribeVRoutersRequest) (response *DescribeVRoutersResponse, err error) { response = CreateDescribeVRoutersResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeVRouters(request *DescribeVRoutersRequest) (respon } // DescribeVRoutersWithChan invokes the ecs.DescribeVRouters API asynchronously -// api document: https://help.aliyun.com/api/ecs/describevrouters.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeVRoutersWithChan(request *DescribeVRoutersRequest) (<-chan *DescribeVRoutersResponse, <-chan error) { responseChan := make(chan *DescribeVRoutersResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeVRoutersWithChan(request *DescribeVRoutersRequest) } // DescribeVRoutersWithCallback invokes the ecs.DescribeVRouters API asynchronously -// api document: https://help.aliyun.com/api/ecs/describevrouters.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeVRoutersWithCallback(request *DescribeVRoutersRequest, callback func(response *DescribeVRoutersResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -78,20 +73,20 @@ type DescribeVRoutersRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` VRouterId string `position:"Query" name:"VRouterId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - PageSize requests.Integer `position:"Query" name:"PageSize"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` } // DescribeVRoutersResponse is the response struct for api DescribeVRouters type DescribeVRoutersResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` VRouters VRouters `json:"VRouters" xml:"VRouters"` } @@ -101,6 +96,7 @@ func CreateDescribeVRoutersRequest() (request *DescribeVRoutersRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeVRouters", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_v_switches.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_v_switches.go index 26c77f2f..f6f2ee99 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_v_switches.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_v_switches.go @@ -21,7 +21,6 @@ import ( ) // DescribeVSwitches invokes the ecs.DescribeVSwitches API synchronously -// api document: https://help.aliyun.com/api/ecs/describevswitches.html func (client *Client) DescribeVSwitches(request *DescribeVSwitchesRequest) (response *DescribeVSwitchesResponse, err error) { response = CreateDescribeVSwitchesResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeVSwitches(request *DescribeVSwitchesRequest) (resp } // DescribeVSwitchesWithChan invokes the ecs.DescribeVSwitches API asynchronously -// api document: https://help.aliyun.com/api/ecs/describevswitches.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeVSwitchesWithChan(request *DescribeVSwitchesRequest) (<-chan *DescribeVSwitchesResponse, <-chan error) { responseChan := make(chan *DescribeVSwitchesResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeVSwitchesWithChan(request *DescribeVSwitchesReques } // DescribeVSwitchesWithCallback invokes the ecs.DescribeVSwitches API asynchronously -// api document: https://help.aliyun.com/api/ecs/describevswitches.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeVSwitchesWithCallback(request *DescribeVSwitchesRequest, callback func(response *DescribeVSwitchesResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,25 +71,25 @@ func (client *Client) DescribeVSwitchesWithCallback(request *DescribeVSwitchesRe // DescribeVSwitchesRequest is the request struct for api DescribeVSwitches type DescribeVSwitchesRequest struct { *requests.RpcRequest - VSwitchId string `position:"Query" name:"VSwitchId"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - VpcId string `position:"Query" name:"VpcId"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` PageSize requests.Integer `position:"Query" name:"PageSize"` - ZoneId string `position:"Query" name:"ZoneId"` IsDefault requests.Boolean `position:"Query" name:"IsDefault"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` + VSwitchId string `position:"Query" name:"VSwitchId"` + VpcId string `position:"Query" name:"VpcId"` + ZoneId string `position:"Query" name:"ZoneId"` } // DescribeVSwitchesResponse is the response struct for api DescribeVSwitches type DescribeVSwitchesResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` VSwitches VSwitches `json:"VSwitches" xml:"VSwitches"` } @@ -104,6 +99,7 @@ func CreateDescribeVSwitchesRequest() (request *DescribeVSwitchesRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeVSwitches", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_virtual_border_routers.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_virtual_border_routers.go index 0b03b033..52945d70 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_virtual_border_routers.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_virtual_border_routers.go @@ -21,7 +21,6 @@ import ( ) // DescribeVirtualBorderRouters invokes the ecs.DescribeVirtualBorderRouters API synchronously -// api document: https://help.aliyun.com/api/ecs/describevirtualborderrouters.html func (client *Client) DescribeVirtualBorderRouters(request *DescribeVirtualBorderRoutersRequest) (response *DescribeVirtualBorderRoutersResponse, err error) { response = CreateDescribeVirtualBorderRoutersResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeVirtualBorderRouters(request *DescribeVirtualBorde } // DescribeVirtualBorderRoutersWithChan invokes the ecs.DescribeVirtualBorderRouters API asynchronously -// api document: https://help.aliyun.com/api/ecs/describevirtualborderrouters.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeVirtualBorderRoutersWithChan(request *DescribeVirtualBorderRoutersRequest) (<-chan *DescribeVirtualBorderRoutersResponse, <-chan error) { responseChan := make(chan *DescribeVirtualBorderRoutersResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeVirtualBorderRoutersWithChan(request *DescribeVirt } // DescribeVirtualBorderRoutersWithCallback invokes the ecs.DescribeVirtualBorderRouters API asynchronously -// api document: https://help.aliyun.com/api/ecs/describevirtualborderrouters.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeVirtualBorderRoutersWithCallback(request *DescribeVirtualBorderRoutersRequest, callback func(response *DescribeVirtualBorderRoutersResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,12 +71,12 @@ func (client *Client) DescribeVirtualBorderRoutersWithCallback(request *Describe // DescribeVirtualBorderRoutersRequest is the request struct for api DescribeVirtualBorderRouters type DescribeVirtualBorderRoutersRequest struct { *requests.RpcRequest - Filter *[]DescribeVirtualBorderRoutersFilter `position:"Query" name:"Filter" type:"Repeated"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` PageSize requests.Integer `position:"Query" name:"PageSize"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` + Filter *[]DescribeVirtualBorderRoutersFilter `position:"Query" name:"Filter" type:"Repeated"` } // DescribeVirtualBorderRoutersFilter is a repeated param struct in DescribeVirtualBorderRoutersRequest @@ -106,6 +101,7 @@ func CreateDescribeVirtualBorderRoutersRequest() (request *DescribeVirtualBorder RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeVirtualBorderRouters", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_virtual_border_routers_for_physical_connection.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_virtual_border_routers_for_physical_connection.go index 2596e9f4..55ca849e 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_virtual_border_routers_for_physical_connection.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_virtual_border_routers_for_physical_connection.go @@ -21,7 +21,6 @@ import ( ) // DescribeVirtualBorderRoutersForPhysicalConnection invokes the ecs.DescribeVirtualBorderRoutersForPhysicalConnection API synchronously -// api document: https://help.aliyun.com/api/ecs/describevirtualborderroutersforphysicalconnection.html func (client *Client) DescribeVirtualBorderRoutersForPhysicalConnection(request *DescribeVirtualBorderRoutersForPhysicalConnectionRequest) (response *DescribeVirtualBorderRoutersForPhysicalConnectionResponse, err error) { response = CreateDescribeVirtualBorderRoutersForPhysicalConnectionResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeVirtualBorderRoutersForPhysicalConnection(request } // DescribeVirtualBorderRoutersForPhysicalConnectionWithChan invokes the ecs.DescribeVirtualBorderRoutersForPhysicalConnection API asynchronously -// api document: https://help.aliyun.com/api/ecs/describevirtualborderroutersforphysicalconnection.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeVirtualBorderRoutersForPhysicalConnectionWithChan(request *DescribeVirtualBorderRoutersForPhysicalConnectionRequest) (<-chan *DescribeVirtualBorderRoutersForPhysicalConnectionResponse, <-chan error) { responseChan := make(chan *DescribeVirtualBorderRoutersForPhysicalConnectionResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeVirtualBorderRoutersForPhysicalConnectionWithChan( } // DescribeVirtualBorderRoutersForPhysicalConnectionWithCallback invokes the ecs.DescribeVirtualBorderRoutersForPhysicalConnection API asynchronously -// api document: https://help.aliyun.com/api/ecs/describevirtualborderroutersforphysicalconnection.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeVirtualBorderRoutersForPhysicalConnectionWithCallback(request *DescribeVirtualBorderRoutersForPhysicalConnectionRequest, callback func(response *DescribeVirtualBorderRoutersForPhysicalConnectionResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,13 +71,13 @@ func (client *Client) DescribeVirtualBorderRoutersForPhysicalConnectionWithCallb // DescribeVirtualBorderRoutersForPhysicalConnectionRequest is the request struct for api DescribeVirtualBorderRoutersForPhysicalConnection type DescribeVirtualBorderRoutersForPhysicalConnectionRequest struct { *requests.RpcRequest - Filter *[]DescribeVirtualBorderRoutersForPhysicalConnectionFilter `position:"Query" name:"Filter" type:"Repeated"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - PhysicalConnectionId string `position:"Query" name:"PhysicalConnectionId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` PageSize requests.Integer `position:"Query" name:"PageSize"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` + Filter *[]DescribeVirtualBorderRoutersForPhysicalConnectionFilter `position:"Query" name:"Filter" type:"Repeated"` + PhysicalConnectionId string `position:"Query" name:"PhysicalConnectionId"` } // DescribeVirtualBorderRoutersForPhysicalConnectionFilter is a repeated param struct in DescribeVirtualBorderRoutersForPhysicalConnectionRequest @@ -107,6 +102,7 @@ func CreateDescribeVirtualBorderRoutersForPhysicalConnectionRequest() (request * RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeVirtualBorderRoutersForPhysicalConnection", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_vpcs.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_vpcs.go index 097da600..53b33518 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_vpcs.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_vpcs.go @@ -21,7 +21,6 @@ import ( ) // DescribeVpcs invokes the ecs.DescribeVpcs API synchronously -// api document: https://help.aliyun.com/api/ecs/describevpcs.html func (client *Client) DescribeVpcs(request *DescribeVpcsRequest) (response *DescribeVpcsResponse, err error) { response = CreateDescribeVpcsResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeVpcs(request *DescribeVpcsRequest) (response *Desc } // DescribeVpcsWithChan invokes the ecs.DescribeVpcs API asynchronously -// api document: https://help.aliyun.com/api/ecs/describevpcs.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeVpcsWithChan(request *DescribeVpcsRequest) (<-chan *DescribeVpcsResponse, <-chan error) { responseChan := make(chan *DescribeVpcsResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeVpcsWithChan(request *DescribeVpcsRequest) (<-chan } // DescribeVpcsWithCallback invokes the ecs.DescribeVpcs API asynchronously -// api document: https://help.aliyun.com/api/ecs/describevpcs.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeVpcsWithCallback(request *DescribeVpcsRequest, callback func(response *DescribeVpcsResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,22 +72,22 @@ func (client *Client) DescribeVpcsWithCallback(request *DescribeVpcsRequest, cal type DescribeVpcsRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - VpcId string `position:"Query" name:"VpcId"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` PageSize requests.Integer `position:"Query" name:"PageSize"` IsDefault requests.Boolean `position:"Query" name:"IsDefault"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` + VpcId string `position:"Query" name:"VpcId"` } // DescribeVpcsResponse is the response struct for api DescribeVpcs type DescribeVpcsResponse struct { *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` RequestId string `json:"RequestId" xml:"RequestId"` - TotalCount int `json:"TotalCount" xml:"TotalCount"` PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` Vpcs Vpcs `json:"Vpcs" xml:"Vpcs"` } @@ -102,6 +97,7 @@ func CreateDescribeVpcsRequest() (request *DescribeVpcsRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeVpcs", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_zones.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_zones.go index 007fe4cc..f073bc8f 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_zones.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/describe_zones.go @@ -21,7 +21,6 @@ import ( ) // DescribeZones invokes the ecs.DescribeZones API synchronously -// api document: https://help.aliyun.com/api/ecs/describezones.html func (client *Client) DescribeZones(request *DescribeZonesRequest) (response *DescribeZonesResponse, err error) { response = CreateDescribeZonesResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeZones(request *DescribeZonesRequest) (response *De } // DescribeZonesWithChan invokes the ecs.DescribeZones API asynchronously -// api document: https://help.aliyun.com/api/ecs/describezones.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeZonesWithChan(request *DescribeZonesRequest) (<-chan *DescribeZonesResponse, <-chan error) { responseChan := make(chan *DescribeZonesResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeZonesWithChan(request *DescribeZonesRequest) (<-ch } // DescribeZonesWithCallback invokes the ecs.DescribeZones API asynchronously -// api document: https://help.aliyun.com/api/ecs/describezones.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeZonesWithCallback(request *DescribeZonesRequest, callback func(response *DescribeZonesResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,14 +71,14 @@ func (client *Client) DescribeZonesWithCallback(request *DescribeZonesRequest, c // DescribeZonesRequest is the request struct for api DescribeZones type DescribeZonesRequest struct { *requests.RpcRequest - SpotStrategy string `position:"Query" name:"SpotStrategy"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceChargeType string `position:"Query" name:"InstanceChargeType"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - AcceptLanguage string `position:"Query" name:"AcceptLanguage"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceChargeType string `position:"Query" name:"InstanceChargeType"` Verbose requests.Boolean `position:"Query" name:"Verbose"` + SpotStrategy string `position:"Query" name:"SpotStrategy"` + AcceptLanguage string `position:"Query" name:"AcceptLanguage"` } // DescribeZonesResponse is the response struct for api DescribeZones @@ -99,6 +94,7 @@ func CreateDescribeZonesRequest() (request *DescribeZonesRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeZones", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_classic_link_vpc.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_classic_link_vpc.go index 7b061371..2136571f 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_classic_link_vpc.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_classic_link_vpc.go @@ -21,7 +21,6 @@ import ( ) // DetachClassicLinkVpc invokes the ecs.DetachClassicLinkVpc API synchronously -// api document: https://help.aliyun.com/api/ecs/detachclassiclinkvpc.html func (client *Client) DetachClassicLinkVpc(request *DetachClassicLinkVpcRequest) (response *DetachClassicLinkVpcResponse, err error) { response = CreateDetachClassicLinkVpcResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DetachClassicLinkVpc(request *DetachClassicLinkVpcRequest) } // DetachClassicLinkVpcWithChan invokes the ecs.DetachClassicLinkVpc API asynchronously -// api document: https://help.aliyun.com/api/ecs/detachclassiclinkvpc.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DetachClassicLinkVpcWithChan(request *DetachClassicLinkVpcRequest) (<-chan *DetachClassicLinkVpcResponse, <-chan error) { responseChan := make(chan *DetachClassicLinkVpcResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DetachClassicLinkVpcWithChan(request *DetachClassicLinkVpc } // DetachClassicLinkVpcWithCallback invokes the ecs.DetachClassicLinkVpc API asynchronously -// api document: https://help.aliyun.com/api/ecs/detachclassiclinkvpc.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DetachClassicLinkVpcWithCallback(request *DetachClassicLinkVpcRequest, callback func(response *DetachClassicLinkVpcResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,10 +72,10 @@ func (client *Client) DetachClassicLinkVpcWithCallback(request *DetachClassicLin type DetachClassicLinkVpcRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - VpcId string `position:"Query" name:"VpcId"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + VpcId string `position:"Query" name:"VpcId"` } // DetachClassicLinkVpcResponse is the response struct for api DetachClassicLinkVpc @@ -95,6 +90,7 @@ func CreateDetachClassicLinkVpcRequest() (request *DetachClassicLinkVpcRequest) RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DetachClassicLinkVpc", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_disk.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_disk.go index ae3f8a76..641b92c2 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_disk.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_disk.go @@ -21,7 +21,6 @@ import ( ) // DetachDisk invokes the ecs.DetachDisk API synchronously -// api document: https://help.aliyun.com/api/ecs/detachdisk.html func (client *Client) DetachDisk(request *DetachDiskRequest) (response *DetachDiskResponse, err error) { response = CreateDetachDiskResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DetachDisk(request *DetachDiskRequest) (response *DetachDi } // DetachDiskWithChan invokes the ecs.DetachDisk API asynchronously -// api document: https://help.aliyun.com/api/ecs/detachdisk.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DetachDiskWithChan(request *DetachDiskRequest) (<-chan *DetachDiskResponse, <-chan error) { responseChan := make(chan *DetachDiskResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DetachDiskWithChan(request *DetachDiskRequest) (<-chan *De } // DetachDiskWithCallback invokes the ecs.DetachDisk API asynchronously -// api document: https://help.aliyun.com/api/ecs/detachdisk.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DetachDiskWithCallback(request *DetachDiskRequest, callback func(response *DetachDiskResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,11 +72,12 @@ func (client *Client) DetachDiskWithCallback(request *DetachDiskRequest, callbac type DetachDiskRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` + DiskId string `position:"Query" name:"DiskId"` + DeleteWithInstance requests.Boolean `position:"Query" name:"DeleteWithInstance"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - DiskId string `position:"Query" name:"DiskId"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` } // DetachDiskResponse is the response struct for api DetachDisk @@ -96,6 +92,7 @@ func CreateDetachDiskRequest() (request *DetachDiskRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DetachDisk", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_instance_ram_role.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_instance_ram_role.go index db5da109..fae72ea9 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_instance_ram_role.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_instance_ram_role.go @@ -21,7 +21,6 @@ import ( ) // DetachInstanceRamRole invokes the ecs.DetachInstanceRamRole API synchronously -// api document: https://help.aliyun.com/api/ecs/detachinstanceramrole.html func (client *Client) DetachInstanceRamRole(request *DetachInstanceRamRoleRequest) (response *DetachInstanceRamRoleResponse, err error) { response = CreateDetachInstanceRamRoleResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DetachInstanceRamRole(request *DetachInstanceRamRoleReques } // DetachInstanceRamRoleWithChan invokes the ecs.DetachInstanceRamRole API asynchronously -// api document: https://help.aliyun.com/api/ecs/detachinstanceramrole.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DetachInstanceRamRoleWithChan(request *DetachInstanceRamRoleRequest) (<-chan *DetachInstanceRamRoleResponse, <-chan error) { responseChan := make(chan *DetachInstanceRamRoleResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DetachInstanceRamRoleWithChan(request *DetachInstanceRamRo } // DetachInstanceRamRoleWithCallback invokes the ecs.DetachInstanceRamRole API asynchronously -// api document: https://help.aliyun.com/api/ecs/detachinstanceramrole.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DetachInstanceRamRoleWithCallback(request *DetachInstanceRamRoleRequest, callback func(response *DetachInstanceRamRoleResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -78,18 +73,18 @@ type DetachInstanceRamRoleRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - InstanceIds string `position:"Query" name:"InstanceIds"` RamRoleName string `position:"Query" name:"RamRoleName"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceIds string `position:"Query" name:"InstanceIds"` } // DetachInstanceRamRoleResponse is the response struct for api DetachInstanceRamRole type DetachInstanceRamRoleResponse struct { *responses.BaseResponse + RamRoleName string `json:"RamRoleName" xml:"RamRoleName"` RequestId string `json:"RequestId" xml:"RequestId"` TotalCount int `json:"TotalCount" xml:"TotalCount"` FailCount int `json:"FailCount" xml:"FailCount"` - RamRoleName string `json:"RamRoleName" xml:"RamRoleName"` DetachInstanceRamRoleResults DetachInstanceRamRoleResults `json:"DetachInstanceRamRoleResults" xml:"DetachInstanceRamRoleResults"` } @@ -99,6 +94,7 @@ func CreateDetachInstanceRamRoleRequest() (request *DetachInstanceRamRoleRequest RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DetachInstanceRamRole", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_key_pair.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_key_pair.go index 295a30b7..1db15292 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_key_pair.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_key_pair.go @@ -21,7 +21,6 @@ import ( ) // DetachKeyPair invokes the ecs.DetachKeyPair API synchronously -// api document: https://help.aliyun.com/api/ecs/detachkeypair.html func (client *Client) DetachKeyPair(request *DetachKeyPairRequest) (response *DetachKeyPairResponse, err error) { response = CreateDetachKeyPairResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DetachKeyPair(request *DetachKeyPairRequest) (response *De } // DetachKeyPairWithChan invokes the ecs.DetachKeyPair API asynchronously -// api document: https://help.aliyun.com/api/ecs/detachkeypair.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DetachKeyPairWithChan(request *DetachKeyPairRequest) (<-chan *DetachKeyPairResponse, <-chan error) { responseChan := make(chan *DetachKeyPairResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DetachKeyPairWithChan(request *DetachKeyPairRequest) (<-ch } // DetachKeyPairWithCallback invokes the ecs.DetachKeyPair API asynchronously -// api document: https://help.aliyun.com/api/ecs/detachkeypair.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DetachKeyPairWithCallback(request *DetachKeyPairRequest, callback func(response *DetachKeyPairResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,19 +72,19 @@ func (client *Client) DetachKeyPairWithCallback(request *DetachKeyPairRequest, c type DetachKeyPairRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - InstanceIds string `position:"Query" name:"InstanceIds"` KeyPairName string `position:"Query" name:"KeyPairName"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceIds string `position:"Query" name:"InstanceIds"` } // DetachKeyPairResponse is the response struct for api DetachKeyPair type DetachKeyPairResponse struct { *responses.BaseResponse + KeyPairName string `json:"KeyPairName" xml:"KeyPairName"` RequestId string `json:"RequestId" xml:"RequestId"` TotalCount string `json:"TotalCount" xml:"TotalCount"` FailCount string `json:"FailCount" xml:"FailCount"` - KeyPairName string `json:"KeyPairName" xml:"KeyPairName"` Results ResultsInDetachKeyPair `json:"Results" xml:"Results"` } @@ -99,6 +94,7 @@ func CreateDetachKeyPairRequest() (request *DetachKeyPairRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DetachKeyPair", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_network_interface.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_network_interface.go index 2da30db8..7033f5f2 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_network_interface.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/detach_network_interface.go @@ -21,7 +21,6 @@ import ( ) // DetachNetworkInterface invokes the ecs.DetachNetworkInterface API synchronously -// api document: https://help.aliyun.com/api/ecs/detachnetworkinterface.html func (client *Client) DetachNetworkInterface(request *DetachNetworkInterfaceRequest) (response *DetachNetworkInterfaceResponse, err error) { response = CreateDetachNetworkInterfaceResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DetachNetworkInterface(request *DetachNetworkInterfaceRequ } // DetachNetworkInterfaceWithChan invokes the ecs.DetachNetworkInterface API asynchronously -// api document: https://help.aliyun.com/api/ecs/detachnetworkinterface.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DetachNetworkInterfaceWithChan(request *DetachNetworkInterfaceRequest) (<-chan *DetachNetworkInterfaceResponse, <-chan error) { responseChan := make(chan *DetachNetworkInterfaceResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DetachNetworkInterfaceWithChan(request *DetachNetworkInter } // DetachNetworkInterfaceWithCallback invokes the ecs.DetachNetworkInterface API asynchronously -// api document: https://help.aliyun.com/api/ecs/detachnetworkinterface.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DetachNetworkInterfaceWithCallback(request *DetachNetworkInterfaceRequest, callback func(response *DetachNetworkInterfaceResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,12 +71,13 @@ func (client *Client) DetachNetworkInterfaceWithCallback(request *DetachNetworkI // DetachNetworkInterfaceRequest is the request struct for api DetachNetworkInterface type DetachNetworkInterfaceRequest struct { *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` - NetworkInterfaceId string `position:"Query" name:"NetworkInterfaceId"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + TrunkNetworkInstanceId string `position:"Query" name:"TrunkNetworkInstanceId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + NetworkInterfaceId string `position:"Query" name:"NetworkInterfaceId"` } // DetachNetworkInterfaceResponse is the response struct for api DetachNetworkInterface @@ -96,6 +92,7 @@ func CreateDetachNetworkInterfaceRequest() (request *DetachNetworkInterfaceReque RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "DetachNetworkInterface", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/disable_activation.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/disable_activation.go new file mode 100644 index 00000000..79148208 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/disable_activation.go @@ -0,0 +1,104 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DisableActivation invokes the ecs.DisableActivation API synchronously +func (client *Client) DisableActivation(request *DisableActivationRequest) (response *DisableActivationResponse, err error) { + response = CreateDisableActivationResponse() + err = client.DoAction(request, response) + return +} + +// DisableActivationWithChan invokes the ecs.DisableActivation API asynchronously +func (client *Client) DisableActivationWithChan(request *DisableActivationRequest) (<-chan *DisableActivationResponse, <-chan error) { + responseChan := make(chan *DisableActivationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DisableActivation(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DisableActivationWithCallback invokes the ecs.DisableActivation API asynchronously +func (client *Client) DisableActivationWithCallback(request *DisableActivationRequest, callback func(response *DisableActivationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DisableActivationResponse + var err error + defer close(result) + response, err = client.DisableActivation(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DisableActivationRequest is the request struct for api DisableActivation +type DisableActivationRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ActivationId string `position:"Query" name:"ActivationId"` +} + +// DisableActivationResponse is the response struct for api DisableActivation +type DisableActivationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Activation Activation `json:"Activation" xml:"Activation"` +} + +// CreateDisableActivationRequest creates a request to invoke DisableActivation API +func CreateDisableActivationRequest() (request *DisableActivationRequest) { + request = &DisableActivationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "DisableActivation", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateDisableActivationResponse creates a response to parse from DisableActivation response +func CreateDisableActivationResponse() (response *DisableActivationResponse) { + response = &DisableActivationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/eip_fill_params.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/eip_fill_params.go index fe512cbe..a3d48aed 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/eip_fill_params.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/eip_fill_params.go @@ -21,7 +21,6 @@ import ( ) // EipFillParams invokes the ecs.EipFillParams API synchronously -// api document: https://help.aliyun.com/api/ecs/eipfillparams.html func (client *Client) EipFillParams(request *EipFillParamsRequest) (response *EipFillParamsResponse, err error) { response = CreateEipFillParamsResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) EipFillParams(request *EipFillParamsRequest) (response *Ei } // EipFillParamsWithChan invokes the ecs.EipFillParams API asynchronously -// api document: https://help.aliyun.com/api/ecs/eipfillparams.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) EipFillParamsWithChan(request *EipFillParamsRequest) (<-chan *EipFillParamsResponse, <-chan error) { responseChan := make(chan *EipFillParamsResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) EipFillParamsWithChan(request *EipFillParamsRequest) (<-ch } // EipFillParamsWithCallback invokes the ecs.EipFillParams API asynchronously -// api document: https://help.aliyun.com/api/ecs/eipfillparams.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) EipFillParamsWithCallback(request *EipFillParamsRequest, callback func(response *EipFillParamsResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -78,21 +73,21 @@ type EipFillParamsRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` Data string `position:"Query" name:"data"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` ClientToken string `position:"Query" name:"ClientToken"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` UserCidr string `position:"Query" name:"UserCidr"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` } // EipFillParamsResponse is the response struct for api EipFillParams type EipFillParamsResponse struct { *responses.BaseResponse - RequestId string `json:"requestId" xml:"requestId"` - Data string `json:"data" xml:"data"` Code string `json:"code" xml:"code"` Success bool `json:"success" xml:"success"` Message string `json:"message" xml:"message"` + Data string `json:"data" xml:"data"` + RequestId string `json:"requestId" xml:"requestId"` } // CreateEipFillParamsRequest creates a request to invoke EipFillParams API @@ -101,6 +96,7 @@ func CreateEipFillParamsRequest() (request *EipFillParamsRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "EipFillParams", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/eip_fill_product.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/eip_fill_product.go index 7a7fc41c..0e55e910 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/eip_fill_product.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/eip_fill_product.go @@ -21,7 +21,6 @@ import ( ) // EipFillProduct invokes the ecs.EipFillProduct API synchronously -// api document: https://help.aliyun.com/api/ecs/eipfillproduct.html func (client *Client) EipFillProduct(request *EipFillProductRequest) (response *EipFillProductResponse, err error) { response = CreateEipFillProductResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) EipFillProduct(request *EipFillProductRequest) (response * } // EipFillProductWithChan invokes the ecs.EipFillProduct API asynchronously -// api document: https://help.aliyun.com/api/ecs/eipfillproduct.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) EipFillProductWithChan(request *EipFillProductRequest) (<-chan *EipFillProductResponse, <-chan error) { responseChan := make(chan *EipFillProductResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) EipFillProductWithChan(request *EipFillProductRequest) (<- } // EipFillProductWithCallback invokes the ecs.EipFillProduct API asynchronously -// api document: https://help.aliyun.com/api/ecs/eipfillproduct.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) EipFillProductWithCallback(request *EipFillProductRequest, callback func(response *EipFillProductResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -78,21 +73,21 @@ type EipFillProductRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` Data string `position:"Query" name:"data"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` ClientToken string `position:"Query" name:"ClientToken"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` UserCidr string `position:"Query" name:"UserCidr"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` } // EipFillProductResponse is the response struct for api EipFillProduct type EipFillProductResponse struct { *responses.BaseResponse - RequestId string `json:"requestId" xml:"requestId"` - Data string `json:"data" xml:"data"` Code string `json:"code" xml:"code"` Success bool `json:"success" xml:"success"` Message string `json:"message" xml:"message"` + Data string `json:"data" xml:"data"` + RequestId string `json:"requestId" xml:"requestId"` } // CreateEipFillProductRequest creates a request to invoke EipFillProduct API @@ -101,6 +96,7 @@ func CreateEipFillProductRequest() (request *EipFillProductRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "EipFillProduct", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/eip_notify_paid.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/eip_notify_paid.go index 5b75dc88..3d1dc3a8 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/eip_notify_paid.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/eip_notify_paid.go @@ -21,7 +21,6 @@ import ( ) // EipNotifyPaid invokes the ecs.EipNotifyPaid API synchronously -// api document: https://help.aliyun.com/api/ecs/eipnotifypaid.html func (client *Client) EipNotifyPaid(request *EipNotifyPaidRequest) (response *EipNotifyPaidResponse, err error) { response = CreateEipNotifyPaidResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) EipNotifyPaid(request *EipNotifyPaidRequest) (response *Ei } // EipNotifyPaidWithChan invokes the ecs.EipNotifyPaid API asynchronously -// api document: https://help.aliyun.com/api/ecs/eipnotifypaid.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) EipNotifyPaidWithChan(request *EipNotifyPaidRequest) (<-chan *EipNotifyPaidResponse, <-chan error) { responseChan := make(chan *EipNotifyPaidResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) EipNotifyPaidWithChan(request *EipNotifyPaidRequest) (<-ch } // EipNotifyPaidWithCallback invokes the ecs.EipNotifyPaid API asynchronously -// api document: https://help.aliyun.com/api/ecs/eipnotifypaid.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) EipNotifyPaidWithCallback(request *EipNotifyPaidRequest, callback func(response *EipNotifyPaidResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -78,21 +73,21 @@ type EipNotifyPaidRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` Data string `position:"Query" name:"data"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` ClientToken string `position:"Query" name:"ClientToken"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` UserCidr string `position:"Query" name:"UserCidr"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` } // EipNotifyPaidResponse is the response struct for api EipNotifyPaid type EipNotifyPaidResponse struct { *responses.BaseResponse - RequestId string `json:"requestId" xml:"requestId"` - Data string `json:"data" xml:"data"` Code string `json:"code" xml:"code"` - Message string `json:"message" xml:"message"` Success bool `json:"success" xml:"success"` + Message string `json:"message" xml:"message"` + Data string `json:"data" xml:"data"` + RequestId string `json:"requestId" xml:"requestId"` } // CreateEipNotifyPaidRequest creates a request to invoke EipNotifyPaid API @@ -101,6 +96,7 @@ func CreateEipNotifyPaidRequest() (request *EipNotifyPaidRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "EipNotifyPaid", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/enable_physical_connection.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/enable_physical_connection.go index 0862f1cf..3ae7ee5c 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/enable_physical_connection.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/enable_physical_connection.go @@ -21,7 +21,6 @@ import ( ) // EnablePhysicalConnection invokes the ecs.EnablePhysicalConnection API synchronously -// api document: https://help.aliyun.com/api/ecs/enablephysicalconnection.html func (client *Client) EnablePhysicalConnection(request *EnablePhysicalConnectionRequest) (response *EnablePhysicalConnectionResponse, err error) { response = CreateEnablePhysicalConnectionResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) EnablePhysicalConnection(request *EnablePhysicalConnection } // EnablePhysicalConnectionWithChan invokes the ecs.EnablePhysicalConnection API asynchronously -// api document: https://help.aliyun.com/api/ecs/enablephysicalconnection.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) EnablePhysicalConnectionWithChan(request *EnablePhysicalConnectionRequest) (<-chan *EnablePhysicalConnectionResponse, <-chan error) { responseChan := make(chan *EnablePhysicalConnectionResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) EnablePhysicalConnectionWithChan(request *EnablePhysicalCo } // EnablePhysicalConnectionWithCallback invokes the ecs.EnablePhysicalConnection API asynchronously -// api document: https://help.aliyun.com/api/ecs/enablephysicalconnection.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) EnablePhysicalConnectionWithCallback(request *EnablePhysicalConnectionRequest, callback func(response *EnablePhysicalConnectionResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,12 +72,12 @@ func (client *Client) EnablePhysicalConnectionWithCallback(request *EnablePhysic type EnablePhysicalConnectionRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` ClientToken string `position:"Query" name:"ClientToken"` - PhysicalConnectionId string `position:"Query" name:"PhysicalConnectionId"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` UserCidr string `position:"Query" name:"UserCidr"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PhysicalConnectionId string `position:"Query" name:"PhysicalConnectionId"` } // EnablePhysicalConnectionResponse is the response struct for api EnablePhysicalConnection @@ -97,6 +92,7 @@ func CreateEnablePhysicalConnectionRequest() (request *EnablePhysicalConnectionR RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "EnablePhysicalConnection", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/endpoint.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/endpoint.go index cdb4b7b3..7499a253 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/endpoint.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/endpoint.go @@ -10,15 +10,41 @@ var EndpointType = "regional" func GetEndpointMap() map[string]string { if EndpointMap == nil { EndpointMap = map[string]string{ - "cn-shenzhen": "ecs-cn-hangzhou.aliyuncs.com", - "cn-qingdao": "ecs-cn-hangzhou.aliyuncs.com", - "cn-beijing": "ecs-cn-hangzhou.aliyuncs.com", - "cn-shanghai": "ecs-cn-hangzhou.aliyuncs.com", - "cn-hongkong": "ecs-cn-hangzhou.aliyuncs.com", - "ap-southeast-1": "ecs-cn-hangzhou.aliyuncs.com", - "us-east-1": "ecs-cn-hangzhou.aliyuncs.com", - "us-west-1": "ecs-cn-hangzhou.aliyuncs.com", - "cn-hangzhou": "ecs-cn-hangzhou.aliyuncs.com", + "cn-shanghai-internal-test-1": "ecs-cn-hangzhou.aliyuncs.com", + "cn-beijing-gov-1": "ecs.aliyuncs.com", + "cn-shenzhen-su18-b01": "ecs-cn-hangzhou.aliyuncs.com", + "cn-shanghai-inner": "ecs.aliyuncs.com", + "cn-shenzhen-st4-d01": "ecs-cn-hangzhou.aliyuncs.com", + "cn-haidian-cm12-c01": "ecs-cn-hangzhou.aliyuncs.com", + "cn-hangzhou-internal-prod-1": "ecs-cn-hangzhou.aliyuncs.com", + "cn-north-2-gov-1": "ecs.aliyuncs.com", + "cn-yushanfang": "ecs.aliyuncs.com", + "cn-hongkong-finance-pop": "ecs.aliyuncs.com", + "cn-shanghai-finance-1": "ecs-cn-hangzhou.aliyuncs.com", + "cn-beijing-finance-pop": "ecs.aliyuncs.com", + "cn-wuhan": "ecs.aliyuncs.com", + "cn-zhangbei": "ecs.aliyuncs.com", + "cn-zhengzhou-nebula-1": "ecs.cn-qingdao-nebula.aliyuncs.com", + "rus-west-1-pop": "ecs.aliyuncs.com", + "cn-shanghai-et15-b01": "ecs-cn-hangzhou.aliyuncs.com", + "cn-hangzhou-bj-b01": "ecs-cn-hangzhou.aliyuncs.com", + "cn-hangzhou-internal-test-1": "ecs-cn-hangzhou.aliyuncs.com", + "eu-west-1-oxs": "ecs.cn-shenzhen-cloudstone.aliyuncs.com", + "cn-zhangbei-na61-b01": "ecs-cn-hangzhou.aliyuncs.com", + "cn-hangzhou-internal-test-3": "ecs-cn-hangzhou.aliyuncs.com", + "cn-shenzhen-finance-1": "ecs-cn-hangzhou.aliyuncs.com", + "cn-hangzhou-internal-test-2": "ecs-cn-hangzhou.aliyuncs.com", + "cn-hangzhou-test-306": "ecs-cn-hangzhou.aliyuncs.com", + "cn-huhehaote-nebula-1": "ecs.cn-qingdao-nebula.aliyuncs.com", + "cn-shanghai-et2-b01": "ecs-cn-hangzhou.aliyuncs.com", + "cn-hangzhou-finance": "ecs.aliyuncs.com", + "cn-beijing-nu16-b01": "ecs-cn-hangzhou.aliyuncs.com", + "cn-edge-1": "ecs.cn-qingdao-nebula.aliyuncs.com", + "cn-fujian": "ecs-cn-hangzhou.aliyuncs.com", + "ap-northeast-2-pop": "ecs.aliyuncs.com", + "cn-shenzhen-inner": "ecs.aliyuncs.com", + "cn-zhangjiakou-na62-a01": "ecs.cn-zhangjiakou.aliyuncs.com", + "cn-hangzhou": "ecs-cn-hangzhou.aliyuncs.com", } } return EndpointMap diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/export_image.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/export_image.go index eaf54319..6ccc6f87 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/export_image.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/export_image.go @@ -21,7 +21,6 @@ import ( ) // ExportImage invokes the ecs.ExportImage API synchronously -// api document: https://help.aliyun.com/api/ecs/exportimage.html func (client *Client) ExportImage(request *ExportImageRequest) (response *ExportImageResponse, err error) { response = CreateExportImageResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ExportImage(request *ExportImageRequest) (response *Export } // ExportImageWithChan invokes the ecs.ExportImage API asynchronously -// api document: https://help.aliyun.com/api/ecs/exportimage.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ExportImageWithChan(request *ExportImageRequest) (<-chan *ExportImageResponse, <-chan error) { responseChan := make(chan *ExportImageResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ExportImageWithChan(request *ExportImageRequest) (<-chan * } // ExportImageWithCallback invokes the ecs.ExportImage API asynchronously -// api document: https://help.aliyun.com/api/ecs/exportimage.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ExportImageWithCallback(request *ExportImageRequest, callback func(response *ExportImageResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -78,12 +73,12 @@ type ExportImageRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` ImageId string `position:"Query" name:"ImageId"` + ImageFormat string `position:"Query" name:"ImageFormat"` OSSBucket string `position:"Query" name:"OSSBucket"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OSSPrefix string `position:"Query" name:"OSSPrefix"` RoleName string `position:"Query" name:"RoleName"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ImageFormat string `position:"Query" name:"ImageFormat"` + OSSPrefix string `position:"Query" name:"OSSPrefix"` } // ExportImageResponse is the response struct for api ExportImage @@ -100,6 +95,7 @@ func CreateExportImageRequest() (request *ExportImageRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ExportImage", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/export_snapshot.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/export_snapshot.go index 75097479..d3a3a5d9 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/export_snapshot.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/export_snapshot.go @@ -21,7 +21,6 @@ import ( ) // ExportSnapshot invokes the ecs.ExportSnapshot API synchronously -// api document: https://help.aliyun.com/api/ecs/exportsnapshot.html func (client *Client) ExportSnapshot(request *ExportSnapshotRequest) (response *ExportSnapshotResponse, err error) { response = CreateExportSnapshotResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ExportSnapshot(request *ExportSnapshotRequest) (response * } // ExportSnapshotWithChan invokes the ecs.ExportSnapshot API asynchronously -// api document: https://help.aliyun.com/api/ecs/exportsnapshot.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ExportSnapshotWithChan(request *ExportSnapshotRequest) (<-chan *ExportSnapshotResponse, <-chan error) { responseChan := make(chan *ExportSnapshotResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ExportSnapshotWithChan(request *ExportSnapshotRequest) (<- } // ExportSnapshotWithCallback invokes the ecs.ExportSnapshot API asynchronously -// api document: https://help.aliyun.com/api/ecs/exportsnapshot.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ExportSnapshotWithCallback(request *ExportSnapshotRequest, callback func(response *ExportSnapshotResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -87,8 +82,8 @@ type ExportSnapshotRequest struct { // ExportSnapshotResponse is the response struct for api ExportSnapshot type ExportSnapshotResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` TaskId string `json:"TaskId" xml:"TaskId"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateExportSnapshotRequest creates a request to invoke ExportSnapshot API @@ -97,6 +92,7 @@ func CreateExportSnapshotRequest() (request *ExportSnapshotRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ExportSnapshot", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/get_instance_console_output.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/get_instance_console_output.go index 2e2891f0..353cdc7b 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/get_instance_console_output.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/get_instance_console_output.go @@ -21,7 +21,6 @@ import ( ) // GetInstanceConsoleOutput invokes the ecs.GetInstanceConsoleOutput API synchronously -// api document: https://help.aliyun.com/api/ecs/getinstanceconsoleoutput.html func (client *Client) GetInstanceConsoleOutput(request *GetInstanceConsoleOutputRequest) (response *GetInstanceConsoleOutputResponse, err error) { response = CreateGetInstanceConsoleOutputResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) GetInstanceConsoleOutput(request *GetInstanceConsoleOutput } // GetInstanceConsoleOutputWithChan invokes the ecs.GetInstanceConsoleOutput API asynchronously -// api document: https://help.aliyun.com/api/ecs/getinstanceconsoleoutput.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) GetInstanceConsoleOutputWithChan(request *GetInstanceConsoleOutputRequest) (<-chan *GetInstanceConsoleOutputResponse, <-chan error) { responseChan := make(chan *GetInstanceConsoleOutputResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) GetInstanceConsoleOutputWithChan(request *GetInstanceConso } // GetInstanceConsoleOutputWithCallback invokes the ecs.GetInstanceConsoleOutput API asynchronously -// api document: https://help.aliyun.com/api/ecs/getinstanceconsoleoutput.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) GetInstanceConsoleOutputWithCallback(request *GetInstanceConsoleOutputRequest, callback func(response *GetInstanceConsoleOutputResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,6 +72,7 @@ func (client *Client) GetInstanceConsoleOutputWithCallback(request *GetInstanceC type GetInstanceConsoleOutputRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + RemoveSymbols requests.Boolean `position:"Query" name:"RemoveSymbols"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` @@ -86,10 +82,10 @@ type GetInstanceConsoleOutputRequest struct { // GetInstanceConsoleOutputResponse is the response struct for api GetInstanceConsoleOutput type GetInstanceConsoleOutputResponse struct { *responses.BaseResponse + LastUpdateTime string `json:"LastUpdateTime" xml:"LastUpdateTime"` RequestId string `json:"RequestId" xml:"RequestId"` InstanceId string `json:"InstanceId" xml:"InstanceId"` ConsoleOutput string `json:"ConsoleOutput" xml:"ConsoleOutput"` - LastUpdateTime string `json:"LastUpdateTime" xml:"LastUpdateTime"` } // CreateGetInstanceConsoleOutputRequest creates a request to invoke GetInstanceConsoleOutput API @@ -98,6 +94,7 @@ func CreateGetInstanceConsoleOutputRequest() (request *GetInstanceConsoleOutputR RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "GetInstanceConsoleOutput", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/get_instance_screenshot.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/get_instance_screenshot.go index 13d86459..57a01e5c 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/get_instance_screenshot.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/get_instance_screenshot.go @@ -21,7 +21,6 @@ import ( ) // GetInstanceScreenshot invokes the ecs.GetInstanceScreenshot API synchronously -// api document: https://help.aliyun.com/api/ecs/getinstancescreenshot.html func (client *Client) GetInstanceScreenshot(request *GetInstanceScreenshotRequest) (response *GetInstanceScreenshotResponse, err error) { response = CreateGetInstanceScreenshotResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) GetInstanceScreenshot(request *GetInstanceScreenshotReques } // GetInstanceScreenshotWithChan invokes the ecs.GetInstanceScreenshot API asynchronously -// api document: https://help.aliyun.com/api/ecs/getinstancescreenshot.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) GetInstanceScreenshotWithChan(request *GetInstanceScreenshotRequest) (<-chan *GetInstanceScreenshotResponse, <-chan error) { responseChan := make(chan *GetInstanceScreenshotResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) GetInstanceScreenshotWithChan(request *GetInstanceScreensh } // GetInstanceScreenshotWithCallback invokes the ecs.GetInstanceScreenshot API asynchronously -// api document: https://help.aliyun.com/api/ecs/getinstancescreenshot.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) GetInstanceScreenshotWithCallback(request *GetInstanceScreenshotRequest, callback func(response *GetInstanceScreenshotResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -98,6 +93,7 @@ func CreateGetInstanceScreenshotRequest() (request *GetInstanceScreenshotRequest RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "GetInstanceScreenshot", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/import_image.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/import_image.go index d0c5b0be..bc0cc561 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/import_image.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/import_image.go @@ -21,7 +21,6 @@ import ( ) // ImportImage invokes the ecs.ImportImage API synchronously -// api document: https://help.aliyun.com/api/ecs/importimage.html func (client *Client) ImportImage(request *ImportImageRequest) (response *ImportImageResponse, err error) { response = CreateImportImageResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ImportImage(request *ImportImageRequest) (response *Import } // ImportImageWithChan invokes the ecs.ImportImage API asynchronously -// api document: https://help.aliyun.com/api/ecs/importimage.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ImportImageWithChan(request *ImportImageRequest) (<-chan *ImportImageResponse, <-chan error) { responseChan := make(chan *ImportImageResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ImportImageWithChan(request *ImportImageRequest) (<-chan * } // ImportImageWithCallback invokes the ecs.ImportImage API asynchronously -// api document: https://help.aliyun.com/api/ecs/importimage.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ImportImageWithCallback(request *ImportImageRequest, callback func(response *ImportImageResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -78,14 +73,19 @@ type ImportImageRequest struct { *requests.RpcRequest DiskDeviceMapping *[]ImportImageDiskDeviceMapping `position:"Query" name:"DiskDeviceMapping" type:"Repeated"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - RoleName string `position:"Query" name:"RoleName"` Description string `position:"Query" name:"Description"` - OSType string `position:"Query" name:"OSType"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` Platform string `position:"Query" name:"Platform"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + BootMode string `position:"Query" name:"BootMode"` ImageName string `position:"Query" name:"ImageName"` + Tag *[]ImportImageTag `position:"Query" name:"Tag" type:"Repeated"` Architecture string `position:"Query" name:"Architecture"` + LicenseType string `position:"Query" name:"LicenseType"` + DetectionStrategy string `position:"Query" name:"DetectionStrategy"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + RoleName string `position:"Query" name:"RoleName"` + OSType string `position:"Query" name:"OSType"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` } // ImportImageDiskDeviceMapping is a repeated param struct in ImportImageRequest @@ -98,13 +98,19 @@ type ImportImageDiskDeviceMapping struct { DiskImageSize string `name:"DiskImageSize"` } +// ImportImageTag is a repeated param struct in ImportImageRequest +type ImportImageTag struct { + Value string `name:"Value"` + Key string `name:"Key"` +} + // ImportImageResponse is the response struct for api ImportImage type ImportImageResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` + ImageId string `json:"ImageId" xml:"ImageId"` TaskId string `json:"TaskId" xml:"TaskId"` RegionId string `json:"RegionId" xml:"RegionId"` - ImageId string `json:"ImageId" xml:"ImageId"` } // CreateImportImageRequest creates a request to invoke ImportImage API @@ -113,6 +119,7 @@ func CreateImportImageRequest() (request *ImportImageRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ImportImage", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/import_key_pair.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/import_key_pair.go index 30ba16ec..a3d33ba1 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/import_key_pair.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/import_key_pair.go @@ -21,7 +21,6 @@ import ( ) // ImportKeyPair invokes the ecs.ImportKeyPair API synchronously -// api document: https://help.aliyun.com/api/ecs/importkeypair.html func (client *Client) ImportKeyPair(request *ImportKeyPairRequest) (response *ImportKeyPairResponse, err error) { response = CreateImportKeyPairResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ImportKeyPair(request *ImportKeyPairRequest) (response *Im } // ImportKeyPairWithChan invokes the ecs.ImportKeyPair API asynchronously -// api document: https://help.aliyun.com/api/ecs/importkeypair.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ImportKeyPairWithChan(request *ImportKeyPairRequest) (<-chan *ImportKeyPairResponse, <-chan error) { responseChan := make(chan *ImportKeyPairResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ImportKeyPairWithChan(request *ImportKeyPairRequest) (<-ch } // ImportKeyPairWithCallback invokes the ecs.ImportKeyPair API asynchronously -// api document: https://help.aliyun.com/api/ecs/importkeypair.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ImportKeyPairWithCallback(request *ImportKeyPairRequest, callback func(response *ImportKeyPairResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,11 +71,19 @@ func (client *Client) ImportKeyPairWithCallback(request *ImportKeyPairRequest, c // ImportKeyPairRequest is the request struct for api ImportKeyPair type ImportKeyPairRequest struct { *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - PublicKeyBody string `position:"Query" name:"PublicKeyBody"` - KeyPairName string `position:"Query" name:"KeyPairName"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + KeyPairName string `position:"Query" name:"KeyPairName"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + Tag *[]ImportKeyPairTag `position:"Query" name:"Tag" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + PublicKeyBody string `position:"Query" name:"PublicKeyBody"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ImportKeyPairTag is a repeated param struct in ImportKeyPairRequest +type ImportKeyPairTag struct { + Value string `name:"Value"` + Key string `name:"Key"` } // ImportKeyPairResponse is the response struct for api ImportKeyPair @@ -97,6 +100,7 @@ func CreateImportKeyPairRequest() (request *ImportKeyPairRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ImportKeyPair", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/import_snapshot.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/import_snapshot.go deleted file mode 100644 index d61a119a..00000000 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/import_snapshot.go +++ /dev/null @@ -1,111 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ImportSnapshot invokes the ecs.ImportSnapshot API synchronously -// api document: https://help.aliyun.com/api/ecs/importsnapshot.html -func (client *Client) ImportSnapshot(request *ImportSnapshotRequest) (response *ImportSnapshotResponse, err error) { - response = CreateImportSnapshotResponse() - err = client.DoAction(request, response) - return -} - -// ImportSnapshotWithChan invokes the ecs.ImportSnapshot API asynchronously -// api document: https://help.aliyun.com/api/ecs/importsnapshot.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html -func (client *Client) ImportSnapshotWithChan(request *ImportSnapshotRequest) (<-chan *ImportSnapshotResponse, <-chan error) { - responseChan := make(chan *ImportSnapshotResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ImportSnapshot(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ImportSnapshotWithCallback invokes the ecs.ImportSnapshot API asynchronously -// api document: https://help.aliyun.com/api/ecs/importsnapshot.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html -func (client *Client) ImportSnapshotWithCallback(request *ImportSnapshotRequest, callback func(response *ImportSnapshotResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ImportSnapshotResponse - var err error - defer close(result) - response, err = client.ImportSnapshot(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ImportSnapshotRequest is the request struct for api ImportSnapshot -type ImportSnapshotRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - SnapshotName string `position:"Query" name:"SnapshotName"` - OssObject string `position:"Query" name:"OssObject"` - OssBucket string `position:"Query" name:"OssBucket"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - RoleName string `position:"Query" name:"RoleName"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// ImportSnapshotResponse is the response struct for api ImportSnapshot -type ImportSnapshotResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TaskId string `json:"TaskId" xml:"TaskId"` - SnapshotId string `json:"SnapshotId" xml:"SnapshotId"` -} - -// CreateImportSnapshotRequest creates a request to invoke ImportSnapshot API -func CreateImportSnapshotRequest() (request *ImportSnapshotRequest) { - request = &ImportSnapshotRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ImportSnapshot", "ecs", "openAPI") - return -} - -// CreateImportSnapshotResponse creates a response to parse from ImportSnapshot response -func CreateImportSnapshotResponse() (response *ImportSnapshotResponse) { - response = &ImportSnapshotResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/install_cloud_assistant.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/install_cloud_assistant.go index 89c4b9b9..a76301d8 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/install_cloud_assistant.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/install_cloud_assistant.go @@ -21,7 +21,6 @@ import ( ) // InstallCloudAssistant invokes the ecs.InstallCloudAssistant API synchronously -// api document: https://help.aliyun.com/api/ecs/installcloudassistant.html func (client *Client) InstallCloudAssistant(request *InstallCloudAssistantRequest) (response *InstallCloudAssistantResponse, err error) { response = CreateInstallCloudAssistantResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) InstallCloudAssistant(request *InstallCloudAssistantReques } // InstallCloudAssistantWithChan invokes the ecs.InstallCloudAssistant API asynchronously -// api document: https://help.aliyun.com/api/ecs/installcloudassistant.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) InstallCloudAssistantWithChan(request *InstallCloudAssistantRequest) (<-chan *InstallCloudAssistantResponse, <-chan error) { responseChan := make(chan *InstallCloudAssistantResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) InstallCloudAssistantWithChan(request *InstallCloudAssista } // InstallCloudAssistantWithCallback invokes the ecs.InstallCloudAssistant API asynchronously -// api document: https://help.aliyun.com/api/ecs/installcloudassistant.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) InstallCloudAssistantWithCallback(request *InstallCloudAssistantRequest, callback func(response *InstallCloudAssistantResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -95,6 +90,7 @@ func CreateInstallCloudAssistantRequest() (request *InstallCloudAssistantRequest RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "InstallCloudAssistant", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/invoke_command.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/invoke_command.go index 6786b8f8..af7a3d04 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/invoke_command.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/invoke_command.go @@ -21,7 +21,6 @@ import ( ) // InvokeCommand invokes the ecs.InvokeCommand API synchronously -// api document: https://help.aliyun.com/api/ecs/invokecommand.html func (client *Client) InvokeCommand(request *InvokeCommandRequest) (response *InvokeCommandResponse, err error) { response = CreateInvokeCommandResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) InvokeCommand(request *InvokeCommandRequest) (response *In } // InvokeCommandWithChan invokes the ecs.InvokeCommand API asynchronously -// api document: https://help.aliyun.com/api/ecs/invokecommand.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) InvokeCommandWithChan(request *InvokeCommandRequest) (<-chan *InvokeCommandResponse, <-chan error) { responseChan := make(chan *InvokeCommandResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) InvokeCommandWithChan(request *InvokeCommandRequest) (<-ch } // InvokeCommandWithCallback invokes the ecs.InvokeCommand API asynchronously -// api document: https://help.aliyun.com/api/ecs/invokecommand.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) InvokeCommandWithCallback(request *InvokeCommandRequest, callback func(response *InvokeCommandResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,22 +71,52 @@ func (client *Client) InvokeCommandWithCallback(request *InvokeCommandRequest, c // InvokeCommandRequest is the request struct for api InvokeCommand type InvokeCommandRequest struct { *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - CommandId string `position:"Query" name:"CommandId"` - Frequency string `position:"Query" name:"Frequency"` - Timed requests.Boolean `position:"Query" name:"Timed"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId *[]string `position:"Query" name:"InstanceId" type:"Repeated"` - Parameters map[string]interface{} `position:"Query" name:"Parameters"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ContainerName string `position:"Query" name:"ContainerName"` + ClientToken string `position:"Query" name:"ClientToken"` + SystemTag *[]InvokeCommandSystemTag `position:"Query" name:"SystemTag" type:"Repeated"` + CommandId string `position:"Query" name:"CommandId"` + Timeout requests.Integer `position:"Query" name:"Timeout"` + Frequency string `position:"Query" name:"Frequency"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + RepeatMode string `position:"Query" name:"RepeatMode"` + WindowsPasswordName string `position:"Query" name:"WindowsPasswordName"` + ResourceTag *[]InvokeCommandResourceTag `position:"Query" name:"ResourceTag" type:"Repeated"` + Tag *[]InvokeCommandTag `position:"Query" name:"Tag" type:"Repeated"` + Timed requests.Boolean `position:"Query" name:"Timed"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId *[]string `position:"Query" name:"InstanceId" type:"Repeated"` + ContainerId string `position:"Query" name:"ContainerId"` + Parameters map[string]interface{} `position:"Query" name:"Parameters"` + Username string `position:"Query" name:"Username"` +} + +// InvokeCommandSystemTag is a repeated param struct in InvokeCommandRequest +type InvokeCommandSystemTag struct { + Key string `name:"Key"` + Value string `name:"Value"` + Scope string `name:"Scope"` +} + +// InvokeCommandResourceTag is a repeated param struct in InvokeCommandRequest +type InvokeCommandResourceTag struct { + Key string `name:"Key"` + Value string `name:"Value"` +} + +// InvokeCommandTag is a repeated param struct in InvokeCommandRequest +type InvokeCommandTag struct { + Key string `name:"Key"` + Value string `name:"Value"` } // InvokeCommandResponse is the response struct for api InvokeCommand type InvokeCommandResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` InvokeId string `json:"InvokeId" xml:"InvokeId"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateInvokeCommandRequest creates a request to invoke InvokeCommand API @@ -100,6 +125,7 @@ func CreateInvokeCommandRequest() (request *InvokeCommandRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "InvokeCommand", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/join_resource_group.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/join_resource_group.go index 9f3f7d25..3bbefc65 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/join_resource_group.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/join_resource_group.go @@ -21,7 +21,6 @@ import ( ) // JoinResourceGroup invokes the ecs.JoinResourceGroup API synchronously -// api document: https://help.aliyun.com/api/ecs/joinresourcegroup.html func (client *Client) JoinResourceGroup(request *JoinResourceGroupRequest) (response *JoinResourceGroupResponse, err error) { response = CreateJoinResourceGroupResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) JoinResourceGroup(request *JoinResourceGroupRequest) (resp } // JoinResourceGroupWithChan invokes the ecs.JoinResourceGroup API asynchronously -// api document: https://help.aliyun.com/api/ecs/joinresourcegroup.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) JoinResourceGroupWithChan(request *JoinResourceGroupRequest) (<-chan *JoinResourceGroupResponse, <-chan error) { responseChan := make(chan *JoinResourceGroupResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) JoinResourceGroupWithChan(request *JoinResourceGroupReques } // JoinResourceGroupWithCallback invokes the ecs.JoinResourceGroup API asynchronously -// api document: https://help.aliyun.com/api/ecs/joinresourcegroup.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) JoinResourceGroupWithCallback(request *JoinResourceGroupRequest, callback func(response *JoinResourceGroupResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,8 +71,8 @@ func (client *Client) JoinResourceGroupWithCallback(request *JoinResourceGroupRe // JoinResourceGroupRequest is the request struct for api JoinResourceGroup type JoinResourceGroupRequest struct { *requests.RpcRequest - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` ResourceId string `position:"Query" name:"ResourceId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` @@ -97,6 +92,7 @@ func CreateJoinResourceGroupRequest() (request *JoinResourceGroupRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "JoinResourceGroup", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/join_security_group.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/join_security_group.go index fa6a2f8d..a2e9ba42 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/join_security_group.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/join_security_group.go @@ -21,7 +21,6 @@ import ( ) // JoinSecurityGroup invokes the ecs.JoinSecurityGroup API synchronously -// api document: https://help.aliyun.com/api/ecs/joinsecuritygroup.html func (client *Client) JoinSecurityGroup(request *JoinSecurityGroupRequest) (response *JoinSecurityGroupResponse, err error) { response = CreateJoinSecurityGroupResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) JoinSecurityGroup(request *JoinSecurityGroupRequest) (resp } // JoinSecurityGroupWithChan invokes the ecs.JoinSecurityGroup API asynchronously -// api document: https://help.aliyun.com/api/ecs/joinsecuritygroup.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) JoinSecurityGroupWithChan(request *JoinSecurityGroupRequest) (<-chan *JoinSecurityGroupResponse, <-chan error) { responseChan := make(chan *JoinSecurityGroupResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) JoinSecurityGroupWithChan(request *JoinSecurityGroupReques } // JoinSecurityGroupWithCallback invokes the ecs.JoinSecurityGroup API asynchronously -// api document: https://help.aliyun.com/api/ecs/joinsecuritygroup.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) JoinSecurityGroupWithCallback(request *JoinSecurityGroupRequest, callback func(response *JoinSecurityGroupResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,11 +72,12 @@ func (client *Client) JoinSecurityGroupWithCallback(request *JoinSecurityGroupRe type JoinSecurityGroupRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` + SecurityGroupId string `position:"Query" name:"SecurityGroupId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - SecurityGroupId string `position:"Query" name:"SecurityGroupId"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + NetworkInterfaceId string `position:"Query" name:"NetworkInterfaceId"` } // JoinSecurityGroupResponse is the response struct for api JoinSecurityGroup @@ -96,6 +92,7 @@ func CreateJoinSecurityGroupRequest() (request *JoinSecurityGroupRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "JoinSecurityGroup", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/leave_security_group.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/leave_security_group.go index 279d0fdd..9b6b448a 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/leave_security_group.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/leave_security_group.go @@ -21,7 +21,6 @@ import ( ) // LeaveSecurityGroup invokes the ecs.LeaveSecurityGroup API synchronously -// api document: https://help.aliyun.com/api/ecs/leavesecuritygroup.html func (client *Client) LeaveSecurityGroup(request *LeaveSecurityGroupRequest) (response *LeaveSecurityGroupResponse, err error) { response = CreateLeaveSecurityGroupResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) LeaveSecurityGroup(request *LeaveSecurityGroupRequest) (re } // LeaveSecurityGroupWithChan invokes the ecs.LeaveSecurityGroup API asynchronously -// api document: https://help.aliyun.com/api/ecs/leavesecuritygroup.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) LeaveSecurityGroupWithChan(request *LeaveSecurityGroupRequest) (<-chan *LeaveSecurityGroupResponse, <-chan error) { responseChan := make(chan *LeaveSecurityGroupResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) LeaveSecurityGroupWithChan(request *LeaveSecurityGroupRequ } // LeaveSecurityGroupWithCallback invokes the ecs.LeaveSecurityGroup API asynchronously -// api document: https://help.aliyun.com/api/ecs/leavesecuritygroup.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) LeaveSecurityGroupWithCallback(request *LeaveSecurityGroupRequest, callback func(response *LeaveSecurityGroupResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,11 +72,12 @@ func (client *Client) LeaveSecurityGroupWithCallback(request *LeaveSecurityGroup type LeaveSecurityGroupRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` + SecurityGroupId string `position:"Query" name:"SecurityGroupId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - SecurityGroupId string `position:"Query" name:"SecurityGroupId"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + NetworkInterfaceId string `position:"Query" name:"NetworkInterfaceId"` } // LeaveSecurityGroupResponse is the response struct for api LeaveSecurityGroup @@ -96,6 +92,7 @@ func CreateLeaveSecurityGroupRequest() (request *LeaveSecurityGroupRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "LeaveSecurityGroup", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/list_plugin_status.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/list_plugin_status.go new file mode 100644 index 00000000..a71e097a --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/list_plugin_status.go @@ -0,0 +1,113 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListPluginStatus invokes the ecs.ListPluginStatus API synchronously +func (client *Client) ListPluginStatus(request *ListPluginStatusRequest) (response *ListPluginStatusResponse, err error) { + response = CreateListPluginStatusResponse() + err = client.DoAction(request, response) + return +} + +// ListPluginStatusWithChan invokes the ecs.ListPluginStatus API asynchronously +func (client *Client) ListPluginStatusWithChan(request *ListPluginStatusRequest) (<-chan *ListPluginStatusResponse, <-chan error) { + responseChan := make(chan *ListPluginStatusResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListPluginStatus(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListPluginStatusWithCallback invokes the ecs.ListPluginStatus API asynchronously +func (client *Client) ListPluginStatusWithCallback(request *ListPluginStatusRequest, callback func(response *ListPluginStatusResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListPluginStatusResponse + var err error + defer close(result) + response, err = client.ListPluginStatus(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListPluginStatusRequest is the request struct for api ListPluginStatus +type ListPluginStatusRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + NextToken string `position:"Query" name:"NextToken"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId *[]string `position:"Query" name:"InstanceId" type:"Repeated"` + Name string `position:"Query" name:"Name"` + MaxResults requests.Integer `position:"Query" name:"MaxResults"` +} + +// ListPluginStatusResponse is the response struct for api ListPluginStatus +type ListPluginStatusResponse struct { + *responses.BaseResponse + PageSize int64 `json:"PageSize" xml:"PageSize"` + RequestId string `json:"RequestId" xml:"RequestId"` + PageNumber int64 `json:"PageNumber" xml:"PageNumber"` + TotalCount int64 `json:"TotalCount" xml:"TotalCount"` + NextToken string `json:"NextToken" xml:"NextToken"` + InstancePluginStatusSet InstancePluginStatusSet `json:"InstancePluginStatusSet" xml:"InstancePluginStatusSet"` +} + +// CreateListPluginStatusRequest creates a request to invoke ListPluginStatus API +func CreateListPluginStatusRequest() (request *ListPluginStatusRequest) { + request = &ListPluginStatusRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ListPluginStatus", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateListPluginStatusResponse creates a response to parse from ListPluginStatus response +func CreateListPluginStatusResponse() (response *ListPluginStatusResponse) { + response = &ListPluginStatusResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/list_tag_resources.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/list_tag_resources.go index 8b0dd342..11e7a93e 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/list_tag_resources.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/list_tag_resources.go @@ -21,7 +21,6 @@ import ( ) // ListTagResources invokes the ecs.ListTagResources API synchronously -// api document: https://help.aliyun.com/api/ecs/listtagresources.html func (client *Client) ListTagResources(request *ListTagResourcesRequest) (response *ListTagResourcesResponse, err error) { response = CreateListTagResourcesResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ListTagResources(request *ListTagResourcesRequest) (respon } // ListTagResourcesWithChan invokes the ecs.ListTagResources API asynchronously -// api document: https://help.aliyun.com/api/ecs/listtagresources.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ListTagResourcesWithChan(request *ListTagResourcesRequest) (<-chan *ListTagResourcesResponse, <-chan error) { responseChan := make(chan *ListTagResourcesResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ListTagResourcesWithChan(request *ListTagResourcesRequest) } // ListTagResourcesWithCallback invokes the ecs.ListTagResources API asynchronously -// api document: https://help.aliyun.com/api/ecs/listtagresources.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ListTagResourcesWithCallback(request *ListTagResourcesRequest, callback func(response *ListTagResourcesResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,14 +71,15 @@ func (client *Client) ListTagResourcesWithCallback(request *ListTagResourcesRequ // ListTagResourcesRequest is the request struct for api ListTagResources type ListTagResourcesRequest struct { *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - NextToken string `position:"Query" name:"NextToken"` - Tag *[]ListTagResourcesTag `position:"Query" name:"Tag" type:"Repeated"` - ResourceId *[]string `position:"Query" name:"ResourceId" type:"Repeated"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ResourceType string `position:"Query" name:"ResourceType"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + NextToken string `position:"Query" name:"NextToken"` + Tag *[]ListTagResourcesTag `position:"Query" name:"Tag" type:"Repeated"` + ResourceId *[]string `position:"Query" name:"ResourceId" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + TagFilter *[]ListTagResourcesTagFilter `position:"Query" name:"TagFilter" type:"Repeated"` + ResourceType string `position:"Query" name:"ResourceType"` } // ListTagResourcesTag is a repeated param struct in ListTagResourcesRequest @@ -92,11 +88,17 @@ type ListTagResourcesTag struct { Value string `name:"Value"` } +// ListTagResourcesTagFilter is a repeated param struct in ListTagResourcesRequest +type ListTagResourcesTagFilter struct { + TagValues *[]string `name:"TagValues" type:"Repeated"` + TagKey string `name:"TagKey"` +} + // ListTagResourcesResponse is the response struct for api ListTagResources type ListTagResourcesResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` NextToken string `json:"NextToken" xml:"NextToken"` + RequestId string `json:"RequestId" xml:"RequestId"` TagResources TagResources `json:"TagResources" xml:"TagResources"` } @@ -106,6 +108,7 @@ func CreateListTagResourcesRequest() (request *ListTagResourcesRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ListTagResources", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_auto_provisioning_group.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_auto_provisioning_group.go index ee4a0dd7..a480feb3 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_auto_provisioning_group.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_auto_provisioning_group.go @@ -21,7 +21,6 @@ import ( ) // ModifyAutoProvisioningGroup invokes the ecs.ModifyAutoProvisioningGroup API synchronously -// api document: https://help.aliyun.com/api/ecs/modifyautoprovisioninggroup.html func (client *Client) ModifyAutoProvisioningGroup(request *ModifyAutoProvisioningGroupRequest) (response *ModifyAutoProvisioningGroupResponse, err error) { response = CreateModifyAutoProvisioningGroupResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifyAutoProvisioningGroup(request *ModifyAutoProvisionin } // ModifyAutoProvisioningGroupWithChan invokes the ecs.ModifyAutoProvisioningGroup API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyautoprovisioninggroup.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyAutoProvisioningGroupWithChan(request *ModifyAutoProvisioningGroupRequest) (<-chan *ModifyAutoProvisioningGroupResponse, <-chan error) { responseChan := make(chan *ModifyAutoProvisioningGroupResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifyAutoProvisioningGroupWithChan(request *ModifyAutoPro } // ModifyAutoProvisioningGroupWithCallback invokes the ecs.ModifyAutoProvisioningGroup API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyautoprovisioninggroup.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyAutoProvisioningGroupWithCallback(request *ModifyAutoProvisioningGroupRequest, callback func(response *ModifyAutoProvisioningGroupResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,19 +71,29 @@ func (client *Client) ModifyAutoProvisioningGroupWithCallback(request *ModifyAut // ModifyAutoProvisioningGroupRequest is the request struct for api ModifyAutoProvisioningGroup type ModifyAutoProvisioningGroupRequest struct { *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - TerminateInstancesWithExpiration requests.Boolean `position:"Query" name:"TerminateInstancesWithExpiration"` - DefaultTargetCapacityType string `position:"Query" name:"DefaultTargetCapacityType"` - ExcessCapacityTerminationPolicy string `position:"Query" name:"ExcessCapacityTerminationPolicy"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - AutoProvisioningGroupId string `position:"Query" name:"AutoProvisioningGroupId"` - PayAsYouGoTargetCapacity string `position:"Query" name:"PayAsYouGoTargetCapacity"` - TotalTargetCapacity string `position:"Query" name:"TotalTargetCapacity"` - SpotTargetCapacity string `position:"Query" name:"SpotTargetCapacity"` - MaxSpotPrice requests.Float `position:"Query" name:"MaxSpotPrice"` - AutoProvisioningGroupName string `position:"Query" name:"AutoProvisioningGroupName"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + TerminateInstancesWithExpiration requests.Boolean `position:"Query" name:"TerminateInstancesWithExpiration"` + DefaultTargetCapacityType string `position:"Query" name:"DefaultTargetCapacityType"` + ExcessCapacityTerminationPolicy string `position:"Query" name:"ExcessCapacityTerminationPolicy"` + LaunchTemplateConfig *[]ModifyAutoProvisioningGroupLaunchTemplateConfig `position:"Query" name:"LaunchTemplateConfig" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + AutoProvisioningGroupId string `position:"Query" name:"AutoProvisioningGroupId"` + PayAsYouGoTargetCapacity string `position:"Query" name:"PayAsYouGoTargetCapacity"` + TotalTargetCapacity string `position:"Query" name:"TotalTargetCapacity"` + SpotTargetCapacity string `position:"Query" name:"SpotTargetCapacity"` + MaxSpotPrice requests.Float `position:"Query" name:"MaxSpotPrice"` + AutoProvisioningGroupName string `position:"Query" name:"AutoProvisioningGroupName"` +} + +// ModifyAutoProvisioningGroupLaunchTemplateConfig is a repeated param struct in ModifyAutoProvisioningGroupRequest +type ModifyAutoProvisioningGroupLaunchTemplateConfig struct { + VSwitchId string `name:"VSwitchId"` + MaxPrice string `name:"MaxPrice"` + Priority string `name:"Priority"` + InstanceType string `name:"InstanceType"` + WeightedCapacity string `name:"WeightedCapacity"` } // ModifyAutoProvisioningGroupResponse is the response struct for api ModifyAutoProvisioningGroup @@ -103,6 +108,7 @@ func CreateModifyAutoProvisioningGroupRequest() (request *ModifyAutoProvisioning RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyAutoProvisioningGroup", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_auto_snapshot_policy.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_auto_snapshot_policy.go index 91eeb1bd..0c3426d0 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_auto_snapshot_policy.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_auto_snapshot_policy.go @@ -21,7 +21,6 @@ import ( ) // ModifyAutoSnapshotPolicy invokes the ecs.ModifyAutoSnapshotPolicy API synchronously -// api document: https://help.aliyun.com/api/ecs/modifyautosnapshotpolicy.html func (client *Client) ModifyAutoSnapshotPolicy(request *ModifyAutoSnapshotPolicyRequest) (response *ModifyAutoSnapshotPolicyResponse, err error) { response = CreateModifyAutoSnapshotPolicyResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifyAutoSnapshotPolicy(request *ModifyAutoSnapshotPolicy } // ModifyAutoSnapshotPolicyWithChan invokes the ecs.ModifyAutoSnapshotPolicy API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyautosnapshotpolicy.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyAutoSnapshotPolicyWithChan(request *ModifyAutoSnapshotPolicyRequest) (<-chan *ModifyAutoSnapshotPolicyResponse, <-chan error) { responseChan := make(chan *ModifyAutoSnapshotPolicyResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifyAutoSnapshotPolicyWithChan(request *ModifyAutoSnapsh } // ModifyAutoSnapshotPolicyWithCallback invokes the ecs.ModifyAutoSnapshotPolicy API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyautosnapshotpolicy.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyAutoSnapshotPolicyWithCallback(request *ModifyAutoSnapshotPolicyRequest, callback func(response *ModifyAutoSnapshotPolicyResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -79,14 +74,14 @@ type ModifyAutoSnapshotPolicyRequest struct { DataDiskPolicyEnabled requests.Boolean `position:"Query" name:"DataDiskPolicyEnabled"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` DataDiskPolicyRetentionDays requests.Integer `position:"Query" name:"DataDiskPolicyRetentionDays"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` SystemDiskPolicyRetentionLastWeek requests.Boolean `position:"Query" name:"SystemDiskPolicyRetentionLastWeek"` + SystemDiskPolicyRetentionDays requests.Integer `position:"Query" name:"SystemDiskPolicyRetentionDays"` + DataDiskPolicyTimePeriod requests.Integer `position:"Query" name:"DataDiskPolicyTimePeriod"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` SystemDiskPolicyTimePeriod requests.Integer `position:"Query" name:"SystemDiskPolicyTimePeriod"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` DataDiskPolicyRetentionLastWeek requests.Boolean `position:"Query" name:"DataDiskPolicyRetentionLastWeek"` - SystemDiskPolicyRetentionDays requests.Integer `position:"Query" name:"SystemDiskPolicyRetentionDays"` - DataDiskPolicyTimePeriod requests.Integer `position:"Query" name:"DataDiskPolicyTimePeriod"` SystemDiskPolicyEnabled requests.Boolean `position:"Query" name:"SystemDiskPolicyEnabled"` } @@ -102,6 +97,7 @@ func CreateModifyAutoSnapshotPolicyRequest() (request *ModifyAutoSnapshotPolicyR RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyAutoSnapshotPolicy", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_auto_snapshot_policy_ex.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_auto_snapshot_policy_ex.go index 13bbfb66..fdd80bbe 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_auto_snapshot_policy_ex.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_auto_snapshot_policy_ex.go @@ -21,7 +21,6 @@ import ( ) // ModifyAutoSnapshotPolicyEx invokes the ecs.ModifyAutoSnapshotPolicyEx API synchronously -// api document: https://help.aliyun.com/api/ecs/modifyautosnapshotpolicyex.html func (client *Client) ModifyAutoSnapshotPolicyEx(request *ModifyAutoSnapshotPolicyExRequest) (response *ModifyAutoSnapshotPolicyExResponse, err error) { response = CreateModifyAutoSnapshotPolicyExResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifyAutoSnapshotPolicyEx(request *ModifyAutoSnapshotPoli } // ModifyAutoSnapshotPolicyExWithChan invokes the ecs.ModifyAutoSnapshotPolicyEx API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyautosnapshotpolicyex.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyAutoSnapshotPolicyExWithChan(request *ModifyAutoSnapshotPolicyExRequest) (<-chan *ModifyAutoSnapshotPolicyExResponse, <-chan error) { responseChan := make(chan *ModifyAutoSnapshotPolicyExResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifyAutoSnapshotPolicyExWithChan(request *ModifyAutoSnap } // ModifyAutoSnapshotPolicyExWithCallback invokes the ecs.ModifyAutoSnapshotPolicyEx API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyautosnapshotpolicyex.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyAutoSnapshotPolicyExWithCallback(request *ModifyAutoSnapshotPolicyExRequest, callback func(response *ModifyAutoSnapshotPolicyExResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,14 +71,17 @@ func (client *Client) ModifyAutoSnapshotPolicyExWithCallback(request *ModifyAuto // ModifyAutoSnapshotPolicyExRequest is the request struct for api ModifyAutoSnapshotPolicyEx type ModifyAutoSnapshotPolicyExRequest struct { *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - AutoSnapshotPolicyId string `position:"Query" name:"autoSnapshotPolicyId"` - TimePoints string `position:"Query" name:"timePoints"` - RetentionDays requests.Integer `position:"Query" name:"retentionDays"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - RepeatWeekdays string `position:"Query" name:"repeatWeekdays"` - AutoSnapshotPolicyName string `position:"Query" name:"autoSnapshotPolicyName"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + AutoSnapshotPolicyId string `position:"Query" name:"autoSnapshotPolicyId"` + CopiedSnapshotsRetentionDays requests.Integer `position:"Query" name:"CopiedSnapshotsRetentionDays"` + TimePoints string `position:"Query" name:"timePoints"` + RepeatWeekdays string `position:"Query" name:"repeatWeekdays"` + EnableCrossRegionCopy requests.Boolean `position:"Query" name:"EnableCrossRegionCopy"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + AutoSnapshotPolicyName string `position:"Query" name:"autoSnapshotPolicyName"` + RetentionDays requests.Integer `position:"Query" name:"retentionDays"` + TargetCopyRegions string `position:"Query" name:"TargetCopyRegions"` } // ModifyAutoSnapshotPolicyExResponse is the response struct for api ModifyAutoSnapshotPolicyEx @@ -98,6 +96,7 @@ func CreateModifyAutoSnapshotPolicyExRequest() (request *ModifyAutoSnapshotPolic RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyAutoSnapshotPolicyEx", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_bandwidth_package_spec.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_bandwidth_package_spec.go index c9426163..e4ed44fc 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_bandwidth_package_spec.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_bandwidth_package_spec.go @@ -21,7 +21,6 @@ import ( ) // ModifyBandwidthPackageSpec invokes the ecs.ModifyBandwidthPackageSpec API synchronously -// api document: https://help.aliyun.com/api/ecs/modifybandwidthpackagespec.html func (client *Client) ModifyBandwidthPackageSpec(request *ModifyBandwidthPackageSpecRequest) (response *ModifyBandwidthPackageSpecResponse, err error) { response = CreateModifyBandwidthPackageSpecResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifyBandwidthPackageSpec(request *ModifyBandwidthPackage } // ModifyBandwidthPackageSpecWithChan invokes the ecs.ModifyBandwidthPackageSpec API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifybandwidthpackagespec.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyBandwidthPackageSpecWithChan(request *ModifyBandwidthPackageSpecRequest) (<-chan *ModifyBandwidthPackageSpecResponse, <-chan error) { responseChan := make(chan *ModifyBandwidthPackageSpecResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifyBandwidthPackageSpecWithChan(request *ModifyBandwidt } // ModifyBandwidthPackageSpecWithCallback invokes the ecs.ModifyBandwidthPackageSpec API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifybandwidthpackagespec.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyBandwidthPackageSpecWithCallback(request *ModifyBandwidthPackageSpecRequest, callback func(response *ModifyBandwidthPackageSpecResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -96,6 +91,7 @@ func CreateModifyBandwidthPackageSpecRequest() (request *ModifyBandwidthPackageS RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyBandwidthPackageSpec", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_capacity_reservation.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_capacity_reservation.go new file mode 100644 index 00000000..3901be74 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_capacity_reservation.go @@ -0,0 +1,111 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyCapacityReservation invokes the ecs.ModifyCapacityReservation API synchronously +func (client *Client) ModifyCapacityReservation(request *ModifyCapacityReservationRequest) (response *ModifyCapacityReservationResponse, err error) { + response = CreateModifyCapacityReservationResponse() + err = client.DoAction(request, response) + return +} + +// ModifyCapacityReservationWithChan invokes the ecs.ModifyCapacityReservation API asynchronously +func (client *Client) ModifyCapacityReservationWithChan(request *ModifyCapacityReservationRequest) (<-chan *ModifyCapacityReservationResponse, <-chan error) { + responseChan := make(chan *ModifyCapacityReservationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyCapacityReservation(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyCapacityReservationWithCallback invokes the ecs.ModifyCapacityReservation API asynchronously +func (client *Client) ModifyCapacityReservationWithCallback(request *ModifyCapacityReservationRequest, callback func(response *ModifyCapacityReservationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyCapacityReservationResponse + var err error + defer close(result) + response, err = client.ModifyCapacityReservation(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyCapacityReservationRequest is the request struct for api ModifyCapacityReservation +type ModifyCapacityReservationRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Description string `position:"Query" name:"Description"` + StartTime string `position:"Query" name:"StartTime"` + Platform string `position:"Query" name:"Platform"` + PrivatePoolOptionsId string `position:"Query" name:"PrivatePoolOptions.Id"` + EndTimeType string `position:"Query" name:"EndTimeType"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + PrivatePoolOptionsName string `position:"Query" name:"PrivatePoolOptions.Name"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + EndTime string `position:"Query" name:"EndTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PackageType string `position:"Query" name:"PackageType"` + InstanceAmount requests.Integer `position:"Query" name:"InstanceAmount"` +} + +// ModifyCapacityReservationResponse is the response struct for api ModifyCapacityReservation +type ModifyCapacityReservationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyCapacityReservationRequest creates a request to invoke ModifyCapacityReservation API +func CreateModifyCapacityReservationRequest() (request *ModifyCapacityReservationRequest) { + request = &ModifyCapacityReservationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyCapacityReservation", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateModifyCapacityReservationResponse creates a response to parse from ModifyCapacityReservation response +func CreateModifyCapacityReservationResponse() (response *ModifyCapacityReservationResponse) { + response = &ModifyCapacityReservationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_command.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_command.go index 13347f50..ab8b536f 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_command.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_command.go @@ -21,7 +21,6 @@ import ( ) // ModifyCommand invokes the ecs.ModifyCommand API synchronously -// api document: https://help.aliyun.com/api/ecs/modifycommand.html func (client *Client) ModifyCommand(request *ModifyCommandRequest) (response *ModifyCommandResponse, err error) { response = CreateModifyCommandResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifyCommand(request *ModifyCommandRequest) (response *Mo } // ModifyCommandWithChan invokes the ecs.ModifyCommand API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifycommand.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyCommandWithChan(request *ModifyCommandRequest) (<-chan *ModifyCommandResponse, <-chan error) { responseChan := make(chan *ModifyCommandResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifyCommandWithChan(request *ModifyCommandRequest) (<-ch } // ModifyCommandWithCallback invokes the ecs.ModifyCommand API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifycommand.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyCommandWithCallback(request *ModifyCommandRequest, callback func(response *ModifyCommandResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -100,6 +95,7 @@ func CreateModifyCommandRequest() (request *ModifyCommandRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyCommand", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_dedicated_host_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_dedicated_host_attribute.go index 5052476a..d48c5c65 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_dedicated_host_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_dedicated_host_attribute.go @@ -21,7 +21,6 @@ import ( ) // ModifyDedicatedHostAttribute invokes the ecs.ModifyDedicatedHostAttribute API synchronously -// api document: https://help.aliyun.com/api/ecs/modifydedicatedhostattribute.html func (client *Client) ModifyDedicatedHostAttribute(request *ModifyDedicatedHostAttributeRequest) (response *ModifyDedicatedHostAttributeResponse, err error) { response = CreateModifyDedicatedHostAttributeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifyDedicatedHostAttribute(request *ModifyDedicatedHostA } // ModifyDedicatedHostAttributeWithChan invokes the ecs.ModifyDedicatedHostAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifydedicatedhostattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyDedicatedHostAttributeWithChan(request *ModifyDedicatedHostAttributeRequest) (<-chan *ModifyDedicatedHostAttributeResponse, <-chan error) { responseChan := make(chan *ModifyDedicatedHostAttributeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifyDedicatedHostAttributeWithChan(request *ModifyDedica } // ModifyDedicatedHostAttributeWithCallback invokes the ecs.ModifyDedicatedHostAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifydedicatedhostattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyDedicatedHostAttributeWithCallback(request *ModifyDedicatedHostAttributeRequest, callback func(response *ModifyDedicatedHostAttributeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -78,7 +73,9 @@ type ModifyDedicatedHostAttributeRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` Description string `position:"Query" name:"Description"` + CpuOverCommitRatio requests.Float `position:"Query" name:"CpuOverCommitRatio"` ActionOnMaintenance string `position:"Query" name:"ActionOnMaintenance"` + DedicatedHostClusterId string `position:"Query" name:"DedicatedHostClusterId"` DedicatedHostName string `position:"Query" name:"DedicatedHostName"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` @@ -101,6 +98,7 @@ func CreateModifyDedicatedHostAttributeRequest() (request *ModifyDedicatedHostAt RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyDedicatedHostAttribute", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_dedicated_host_auto_release_time.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_dedicated_host_auto_release_time.go index 0f8b495b..9ed0fee5 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_dedicated_host_auto_release_time.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_dedicated_host_auto_release_time.go @@ -21,7 +21,6 @@ import ( ) // ModifyDedicatedHostAutoReleaseTime invokes the ecs.ModifyDedicatedHostAutoReleaseTime API synchronously -// api document: https://help.aliyun.com/api/ecs/modifydedicatedhostautoreleasetime.html func (client *Client) ModifyDedicatedHostAutoReleaseTime(request *ModifyDedicatedHostAutoReleaseTimeRequest) (response *ModifyDedicatedHostAutoReleaseTimeResponse, err error) { response = CreateModifyDedicatedHostAutoReleaseTimeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifyDedicatedHostAutoReleaseTime(request *ModifyDedicate } // ModifyDedicatedHostAutoReleaseTimeWithChan invokes the ecs.ModifyDedicatedHostAutoReleaseTime API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifydedicatedhostautoreleasetime.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyDedicatedHostAutoReleaseTimeWithChan(request *ModifyDedicatedHostAutoReleaseTimeRequest) (<-chan *ModifyDedicatedHostAutoReleaseTimeResponse, <-chan error) { responseChan := make(chan *ModifyDedicatedHostAutoReleaseTimeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifyDedicatedHostAutoReleaseTimeWithChan(request *Modify } // ModifyDedicatedHostAutoReleaseTimeWithCallback invokes the ecs.ModifyDedicatedHostAutoReleaseTime API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifydedicatedhostautoreleasetime.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyDedicatedHostAutoReleaseTimeWithCallback(request *ModifyDedicatedHostAutoReleaseTimeRequest, callback func(response *ModifyDedicatedHostAutoReleaseTimeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -96,6 +91,7 @@ func CreateModifyDedicatedHostAutoReleaseTimeRequest() (request *ModifyDedicated RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyDedicatedHostAutoReleaseTime", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_dedicated_host_auto_renew_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_dedicated_host_auto_renew_attribute.go index 5f270a4f..3ba9bcbb 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_dedicated_host_auto_renew_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_dedicated_host_auto_renew_attribute.go @@ -21,7 +21,6 @@ import ( ) // ModifyDedicatedHostAutoRenewAttribute invokes the ecs.ModifyDedicatedHostAutoRenewAttribute API synchronously -// api document: https://help.aliyun.com/api/ecs/modifydedicatedhostautorenewattribute.html func (client *Client) ModifyDedicatedHostAutoRenewAttribute(request *ModifyDedicatedHostAutoRenewAttributeRequest) (response *ModifyDedicatedHostAutoRenewAttributeResponse, err error) { response = CreateModifyDedicatedHostAutoRenewAttributeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifyDedicatedHostAutoRenewAttribute(request *ModifyDedic } // ModifyDedicatedHostAutoRenewAttributeWithChan invokes the ecs.ModifyDedicatedHostAutoRenewAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifydedicatedhostautorenewattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyDedicatedHostAutoRenewAttributeWithChan(request *ModifyDedicatedHostAutoRenewAttributeRequest) (<-chan *ModifyDedicatedHostAutoRenewAttributeResponse, <-chan error) { responseChan := make(chan *ModifyDedicatedHostAutoRenewAttributeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifyDedicatedHostAutoRenewAttributeWithChan(request *Mod } // ModifyDedicatedHostAutoRenewAttributeWithCallback invokes the ecs.ModifyDedicatedHostAutoRenewAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifydedicatedhostautorenewattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyDedicatedHostAutoRenewAttributeWithCallback(request *ModifyDedicatedHostAutoRenewAttributeRequest, callback func(response *ModifyDedicatedHostAutoRenewAttributeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,15 +71,16 @@ func (client *Client) ModifyDedicatedHostAutoRenewAttributeWithCallback(request // ModifyDedicatedHostAutoRenewAttributeRequest is the request struct for api ModifyDedicatedHostAutoRenewAttribute type ModifyDedicatedHostAutoRenewAttributeRequest struct { *requests.RpcRequest - Duration requests.Integer `position:"Query" name:"Duration"` DedicatedHostIds string `position:"Query" name:"DedicatedHostIds"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PeriodUnit string `position:"Query" name:"PeriodUnit"` - AutoRenew requests.Boolean `position:"Query" name:"AutoRenew"` + Duration requests.Integer `position:"Query" name:"Duration"` + RenewalStatus string `position:"Query" name:"RenewalStatus"` + AutoRenewWithEcs string `position:"Query" name:"AutoRenewWithEcs"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - RenewalStatus string `position:"Query" name:"RenewalStatus"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PeriodUnit string `position:"Query" name:"PeriodUnit"` + AutoRenew requests.Boolean `position:"Query" name:"AutoRenew"` } // ModifyDedicatedHostAutoRenewAttributeResponse is the response struct for api ModifyDedicatedHostAutoRenewAttribute @@ -99,6 +95,7 @@ func CreateModifyDedicatedHostAutoRenewAttributeRequest() (request *ModifyDedica RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyDedicatedHostAutoRenewAttribute", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_dedicated_host_cluster_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_dedicated_host_cluster_attribute.go new file mode 100644 index 00000000..075370c2 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_dedicated_host_cluster_attribute.go @@ -0,0 +1,105 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyDedicatedHostClusterAttribute invokes the ecs.ModifyDedicatedHostClusterAttribute API synchronously +func (client *Client) ModifyDedicatedHostClusterAttribute(request *ModifyDedicatedHostClusterAttributeRequest) (response *ModifyDedicatedHostClusterAttributeResponse, err error) { + response = CreateModifyDedicatedHostClusterAttributeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyDedicatedHostClusterAttributeWithChan invokes the ecs.ModifyDedicatedHostClusterAttribute API asynchronously +func (client *Client) ModifyDedicatedHostClusterAttributeWithChan(request *ModifyDedicatedHostClusterAttributeRequest) (<-chan *ModifyDedicatedHostClusterAttributeResponse, <-chan error) { + responseChan := make(chan *ModifyDedicatedHostClusterAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyDedicatedHostClusterAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyDedicatedHostClusterAttributeWithCallback invokes the ecs.ModifyDedicatedHostClusterAttribute API asynchronously +func (client *Client) ModifyDedicatedHostClusterAttributeWithCallback(request *ModifyDedicatedHostClusterAttributeRequest, callback func(response *ModifyDedicatedHostClusterAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyDedicatedHostClusterAttributeResponse + var err error + defer close(result) + response, err = client.ModifyDedicatedHostClusterAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyDedicatedHostClusterAttributeRequest is the request struct for api ModifyDedicatedHostClusterAttribute +type ModifyDedicatedHostClusterAttributeRequest struct { + *requests.RpcRequest + DedicatedHostClusterName string `position:"Query" name:"DedicatedHostClusterName"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Description string `position:"Query" name:"Description"` + DedicatedHostClusterId string `position:"Query" name:"DedicatedHostClusterId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ModifyDedicatedHostClusterAttributeResponse is the response struct for api ModifyDedicatedHostClusterAttribute +type ModifyDedicatedHostClusterAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyDedicatedHostClusterAttributeRequest creates a request to invoke ModifyDedicatedHostClusterAttribute API +func CreateModifyDedicatedHostClusterAttributeRequest() (request *ModifyDedicatedHostClusterAttributeRequest) { + request = &ModifyDedicatedHostClusterAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyDedicatedHostClusterAttribute", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateModifyDedicatedHostClusterAttributeResponse creates a response to parse from ModifyDedicatedHostClusterAttribute response +func CreateModifyDedicatedHostClusterAttributeResponse() (response *ModifyDedicatedHostClusterAttributeResponse) { + response = &ModifyDedicatedHostClusterAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_dedicated_hosts_charge_type.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_dedicated_hosts_charge_type.go new file mode 100644 index 00000000..b17c12e7 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_dedicated_hosts_charge_type.go @@ -0,0 +1,112 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyDedicatedHostsChargeType invokes the ecs.ModifyDedicatedHostsChargeType API synchronously +func (client *Client) ModifyDedicatedHostsChargeType(request *ModifyDedicatedHostsChargeTypeRequest) (response *ModifyDedicatedHostsChargeTypeResponse, err error) { + response = CreateModifyDedicatedHostsChargeTypeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyDedicatedHostsChargeTypeWithChan invokes the ecs.ModifyDedicatedHostsChargeType API asynchronously +func (client *Client) ModifyDedicatedHostsChargeTypeWithChan(request *ModifyDedicatedHostsChargeTypeRequest) (<-chan *ModifyDedicatedHostsChargeTypeResponse, <-chan error) { + responseChan := make(chan *ModifyDedicatedHostsChargeTypeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyDedicatedHostsChargeType(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyDedicatedHostsChargeTypeWithCallback invokes the ecs.ModifyDedicatedHostsChargeType API asynchronously +func (client *Client) ModifyDedicatedHostsChargeTypeWithCallback(request *ModifyDedicatedHostsChargeTypeRequest, callback func(response *ModifyDedicatedHostsChargeTypeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyDedicatedHostsChargeTypeResponse + var err error + defer close(result) + response, err = client.ModifyDedicatedHostsChargeType(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyDedicatedHostsChargeTypeRequest is the request struct for api ModifyDedicatedHostsChargeType +type ModifyDedicatedHostsChargeTypeRequest struct { + *requests.RpcRequest + DedicatedHostIds string `position:"Query" name:"DedicatedHostIds"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + DedicatedHostChargeType string `position:"Query" name:"DedicatedHostChargeType"` + Period requests.Integer `position:"Query" name:"Period"` + DryRun requests.Boolean `position:"Query" name:"DryRun"` + AutoPay requests.Boolean `position:"Query" name:"AutoPay"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + DetailFee requests.Boolean `position:"Query" name:"DetailFee"` + PeriodUnit string `position:"Query" name:"PeriodUnit"` +} + +// ModifyDedicatedHostsChargeTypeResponse is the response struct for api ModifyDedicatedHostsChargeType +type ModifyDedicatedHostsChargeTypeResponse struct { + *responses.BaseResponse + OrderId string `json:"OrderId" xml:"OrderId"` + RequestId string `json:"RequestId" xml:"RequestId"` + FeeOfInstances FeeOfInstancesInModifyDedicatedHostsChargeType `json:"FeeOfInstances" xml:"FeeOfInstances"` +} + +// CreateModifyDedicatedHostsChargeTypeRequest creates a request to invoke ModifyDedicatedHostsChargeType API +func CreateModifyDedicatedHostsChargeTypeRequest() (request *ModifyDedicatedHostsChargeTypeRequest) { + request = &ModifyDedicatedHostsChargeTypeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyDedicatedHostsChargeType", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateModifyDedicatedHostsChargeTypeResponse creates a response to parse from ModifyDedicatedHostsChargeType response +func CreateModifyDedicatedHostsChargeTypeResponse() (response *ModifyDedicatedHostsChargeTypeResponse) { + response = &ModifyDedicatedHostsChargeTypeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_demand.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_demand.go new file mode 100644 index 00000000..60a2dfe0 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_demand.go @@ -0,0 +1,114 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyDemand invokes the ecs.ModifyDemand API synchronously +func (client *Client) ModifyDemand(request *ModifyDemandRequest) (response *ModifyDemandResponse, err error) { + response = CreateModifyDemandResponse() + err = client.DoAction(request, response) + return +} + +// ModifyDemandWithChan invokes the ecs.ModifyDemand API asynchronously +func (client *Client) ModifyDemandWithChan(request *ModifyDemandRequest) (<-chan *ModifyDemandResponse, <-chan error) { + responseChan := make(chan *ModifyDemandResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyDemand(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyDemandWithCallback invokes the ecs.ModifyDemand API asynchronously +func (client *Client) ModifyDemandWithCallback(request *ModifyDemandRequest, callback func(response *ModifyDemandResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyDemandResponse + var err error + defer close(result) + response, err = client.ModifyDemand(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyDemandRequest is the request struct for api ModifyDemand +type ModifyDemandRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + StartTime string `position:"Query" name:"StartTime"` + DemandDescription string `position:"Query" name:"DemandDescription"` + InstanceType string `position:"Query" name:"InstanceType"` + InstanceChargeType string `position:"Query" name:"InstanceChargeType"` + DemandName string `position:"Query" name:"DemandName"` + Amount requests.Integer `position:"Query" name:"Amount"` + Period requests.Integer `position:"Query" name:"Period"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + EndTime string `position:"Query" name:"EndTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PeriodUnit string `position:"Query" name:"PeriodUnit"` + DemandId string `position:"Query" name:"DemandId"` + ZoneId string `position:"Query" name:"ZoneId"` +} + +// ModifyDemandResponse is the response struct for api ModifyDemand +type ModifyDemandResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyDemandRequest creates a request to invoke ModifyDemand API +func CreateModifyDemandRequest() (request *ModifyDemandRequest) { + request = &ModifyDemandRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyDemand", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateModifyDemandResponse creates a response to parse from ModifyDemand response +func CreateModifyDemandResponse() (response *ModifyDemandResponse) { + response = &ModifyDemandResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_deployment_set_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_deployment_set_attribute.go index 66b322b2..9aea00a1 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_deployment_set_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_deployment_set_attribute.go @@ -21,7 +21,6 @@ import ( ) // ModifyDeploymentSetAttribute invokes the ecs.ModifyDeploymentSetAttribute API synchronously -// api document: https://help.aliyun.com/api/ecs/modifydeploymentsetattribute.html func (client *Client) ModifyDeploymentSetAttribute(request *ModifyDeploymentSetAttributeRequest) (response *ModifyDeploymentSetAttributeResponse, err error) { response = CreateModifyDeploymentSetAttributeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifyDeploymentSetAttribute(request *ModifyDeploymentSetA } // ModifyDeploymentSetAttributeWithChan invokes the ecs.ModifyDeploymentSetAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifydeploymentsetattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyDeploymentSetAttributeWithChan(request *ModifyDeploymentSetAttributeRequest) (<-chan *ModifyDeploymentSetAttributeResponse, <-chan error) { responseChan := make(chan *ModifyDeploymentSetAttributeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifyDeploymentSetAttributeWithChan(request *ModifyDeploy } // ModifyDeploymentSetAttributeWithCallback invokes the ecs.ModifyDeploymentSetAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifydeploymentsetattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyDeploymentSetAttributeWithCallback(request *ModifyDeploymentSetAttributeRequest, callback func(response *ModifyDeploymentSetAttributeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,11 +71,11 @@ func (client *Client) ModifyDeploymentSetAttributeWithCallback(request *ModifyDe // ModifyDeploymentSetAttributeRequest is the request struct for api ModifyDeploymentSetAttribute type ModifyDeploymentSetAttributeRequest struct { *requests.RpcRequest - DeploymentSetId string `position:"Query" name:"DeploymentSetId"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Description string `position:"Query" name:"Description"` + DeploymentSetId string `position:"Query" name:"DeploymentSetId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - Description string `position:"Query" name:"Description"` DeploymentSetName string `position:"Query" name:"DeploymentSetName"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` } @@ -97,6 +92,7 @@ func CreateModifyDeploymentSetAttributeRequest() (request *ModifyDeploymentSetAt RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyDeploymentSetAttribute", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_diagnostic_metric_set.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_diagnostic_metric_set.go new file mode 100644 index 00000000..b347d560 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_diagnostic_metric_set.go @@ -0,0 +1,103 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyDiagnosticMetricSet invokes the ecs.ModifyDiagnosticMetricSet API synchronously +func (client *Client) ModifyDiagnosticMetricSet(request *ModifyDiagnosticMetricSetRequest) (response *ModifyDiagnosticMetricSetResponse, err error) { + response = CreateModifyDiagnosticMetricSetResponse() + err = client.DoAction(request, response) + return +} + +// ModifyDiagnosticMetricSetWithChan invokes the ecs.ModifyDiagnosticMetricSet API asynchronously +func (client *Client) ModifyDiagnosticMetricSetWithChan(request *ModifyDiagnosticMetricSetRequest) (<-chan *ModifyDiagnosticMetricSetResponse, <-chan error) { + responseChan := make(chan *ModifyDiagnosticMetricSetResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyDiagnosticMetricSet(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyDiagnosticMetricSetWithCallback invokes the ecs.ModifyDiagnosticMetricSet API asynchronously +func (client *Client) ModifyDiagnosticMetricSetWithCallback(request *ModifyDiagnosticMetricSetRequest, callback func(response *ModifyDiagnosticMetricSetResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyDiagnosticMetricSetResponse + var err error + defer close(result) + response, err = client.ModifyDiagnosticMetricSet(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyDiagnosticMetricSetRequest is the request struct for api ModifyDiagnosticMetricSet +type ModifyDiagnosticMetricSetRequest struct { + *requests.RpcRequest + MetricIds *[]string `position:"Query" name:"MetricIds" type:"Repeated"` + MetricSetId string `position:"Query" name:"MetricSetId"` + Description string `position:"Query" name:"Description"` + MetricSetName string `position:"Query" name:"MetricSetName"` + ResourceType string `position:"Query" name:"ResourceType"` +} + +// ModifyDiagnosticMetricSetResponse is the response struct for api ModifyDiagnosticMetricSet +type ModifyDiagnosticMetricSetResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyDiagnosticMetricSetRequest creates a request to invoke ModifyDiagnosticMetricSet API +func CreateModifyDiagnosticMetricSetRequest() (request *ModifyDiagnosticMetricSetRequest) { + request = &ModifyDiagnosticMetricSetRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyDiagnosticMetricSet", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateModifyDiagnosticMetricSetResponse creates a response to parse from ModifyDiagnosticMetricSet response +func CreateModifyDiagnosticMetricSetResponse() (response *ModifyDiagnosticMetricSetResponse) { + response = &ModifyDiagnosticMetricSetResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_disk_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_disk_attribute.go index a01013d9..6e316ff2 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_disk_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_disk_attribute.go @@ -21,7 +21,6 @@ import ( ) // ModifyDiskAttribute invokes the ecs.ModifyDiskAttribute API synchronously -// api document: https://help.aliyun.com/api/ecs/modifydiskattribute.html func (client *Client) ModifyDiskAttribute(request *ModifyDiskAttributeRequest) (response *ModifyDiskAttributeResponse, err error) { response = CreateModifyDiskAttributeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifyDiskAttribute(request *ModifyDiskAttributeRequest) ( } // ModifyDiskAttributeWithChan invokes the ecs.ModifyDiskAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifydiskattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyDiskAttributeWithChan(request *ModifyDiskAttributeRequest) (<-chan *ModifyDiskAttributeResponse, <-chan error) { responseChan := make(chan *ModifyDiskAttributeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifyDiskAttributeWithChan(request *ModifyDiskAttributeRe } // ModifyDiskAttributeWithCallback invokes the ecs.ModifyDiskAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifydiskattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyDiskAttributeWithCallback(request *ModifyDiskAttributeRequest, callback func(response *ModifyDiskAttributeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,16 +71,18 @@ func (client *Client) ModifyDiskAttributeWithCallback(request *ModifyDiskAttribu // ModifyDiskAttributeRequest is the request struct for api ModifyDiskAttribute type ModifyDiskAttributeRequest struct { *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Description string `position:"Query" name:"Description"` DiskName string `position:"Query" name:"DiskName"` DeleteAutoSnapshot requests.Boolean `position:"Query" name:"DeleteAutoSnapshot"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DiskIds *[]string `position:"Query" name:"DiskIds" type:"Repeated"` + DiskId string `position:"Query" name:"DiskId"` + DeleteWithInstance requests.Boolean `position:"Query" name:"DeleteWithInstance"` EnableAutoSnapshot requests.Boolean `position:"Query" name:"EnableAutoSnapshot"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - Description string `position:"Query" name:"Description"` - DiskId string `position:"Query" name:"DiskId"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - DeleteWithInstance requests.Boolean `position:"Query" name:"DeleteWithInstance"` + BurstingEnabled requests.Boolean `position:"Query" name:"BurstingEnabled"` } // ModifyDiskAttributeResponse is the response struct for api ModifyDiskAttribute @@ -100,6 +97,7 @@ func CreateModifyDiskAttributeRequest() (request *ModifyDiskAttributeRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyDiskAttribute", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_disk_charge_type.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_disk_charge_type.go index 5b9bba89..b7c8a70f 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_disk_charge_type.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_disk_charge_type.go @@ -21,7 +21,6 @@ import ( ) // ModifyDiskChargeType invokes the ecs.ModifyDiskChargeType API synchronously -// api document: https://help.aliyun.com/api/ecs/modifydiskchargetype.html func (client *Client) ModifyDiskChargeType(request *ModifyDiskChargeTypeRequest) (response *ModifyDiskChargeTypeResponse, err error) { response = CreateModifyDiskChargeTypeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifyDiskChargeType(request *ModifyDiskChargeTypeRequest) } // ModifyDiskChargeTypeWithChan invokes the ecs.ModifyDiskChargeType API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifydiskchargetype.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyDiskChargeTypeWithChan(request *ModifyDiskChargeTypeRequest) (<-chan *ModifyDiskChargeTypeResponse, <-chan error) { responseChan := make(chan *ModifyDiskChargeTypeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifyDiskChargeTypeWithChan(request *ModifyDiskChargeType } // ModifyDiskChargeTypeWithCallback invokes the ecs.ModifyDiskChargeType API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifydiskchargetype.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyDiskChargeTypeWithCallback(request *ModifyDiskChargeTypeRequest, callback func(response *ModifyDiskChargeTypeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,21 +72,21 @@ func (client *Client) ModifyDiskChargeTypeWithCallback(request *ModifyDiskCharge type ModifyDiskChargeTypeRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` DiskChargeType string `position:"Query" name:"DiskChargeType"` - InstanceId string `position:"Query" name:"InstanceId"` + DiskIds string `position:"Query" name:"DiskIds"` AutoPay requests.Boolean `position:"Query" name:"AutoPay"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - ClientToken string `position:"Query" name:"ClientToken"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - DiskIds string `position:"Query" name:"DiskIds"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` } // ModifyDiskChargeTypeResponse is the response struct for api ModifyDiskChargeType type ModifyDiskChargeTypeResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` OrderId string `json:"OrderId" xml:"OrderId"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateModifyDiskChargeTypeRequest creates a request to invoke ModifyDiskChargeType API @@ -100,6 +95,7 @@ func CreateModifyDiskChargeTypeRequest() (request *ModifyDiskChargeTypeRequest) RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyDiskChargeType", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_disk_deployment.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_disk_deployment.go new file mode 100644 index 00000000..9d81c363 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_disk_deployment.go @@ -0,0 +1,108 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyDiskDeployment invokes the ecs.ModifyDiskDeployment API synchronously +func (client *Client) ModifyDiskDeployment(request *ModifyDiskDeploymentRequest) (response *ModifyDiskDeploymentResponse, err error) { + response = CreateModifyDiskDeploymentResponse() + err = client.DoAction(request, response) + return +} + +// ModifyDiskDeploymentWithChan invokes the ecs.ModifyDiskDeployment API asynchronously +func (client *Client) ModifyDiskDeploymentWithChan(request *ModifyDiskDeploymentRequest) (<-chan *ModifyDiskDeploymentResponse, <-chan error) { + responseChan := make(chan *ModifyDiskDeploymentResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyDiskDeployment(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyDiskDeploymentWithCallback invokes the ecs.ModifyDiskDeployment API asynchronously +func (client *Client) ModifyDiskDeploymentWithCallback(request *ModifyDiskDeploymentRequest, callback func(response *ModifyDiskDeploymentResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyDiskDeploymentResponse + var err error + defer close(result) + response, err = client.ModifyDiskDeployment(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyDiskDeploymentRequest is the request struct for api ModifyDiskDeployment +type ModifyDiskDeploymentRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DiskCategory string `position:"Query" name:"DiskCategory"` + DiskId string `position:"Query" name:"DiskId"` + DryRun requests.Boolean `position:"Query" name:"DryRun"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + PerformanceLevel string `position:"Query" name:"PerformanceLevel"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + StorageClusterId string `position:"Query" name:"StorageClusterId"` +} + +// ModifyDiskDeploymentResponse is the response struct for api ModifyDiskDeployment +type ModifyDiskDeploymentResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TaskId string `json:"TaskId" xml:"TaskId"` +} + +// CreateModifyDiskDeploymentRequest creates a request to invoke ModifyDiskDeployment API +func CreateModifyDiskDeploymentRequest() (request *ModifyDiskDeploymentRequest) { + request = &ModifyDiskDeploymentRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyDiskDeployment", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateModifyDiskDeploymentResponse creates a response to parse from ModifyDiskDeployment response +func CreateModifyDiskDeploymentResponse() (response *ModifyDiskDeploymentResponse) { + response = &ModifyDiskDeploymentResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_disk_spec.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_disk_spec.go index fb46091f..07a9bb99 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_disk_spec.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_disk_spec.go @@ -21,7 +21,6 @@ import ( ) // ModifyDiskSpec invokes the ecs.ModifyDiskSpec API synchronously -// api document: https://help.aliyun.com/api/ecs/modifydiskspec.html func (client *Client) ModifyDiskSpec(request *ModifyDiskSpecRequest) (response *ModifyDiskSpecResponse, err error) { response = CreateModifyDiskSpecResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifyDiskSpec(request *ModifyDiskSpecRequest) (response * } // ModifyDiskSpecWithChan invokes the ecs.ModifyDiskSpec API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifydiskspec.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyDiskSpecWithChan(request *ModifyDiskSpecRequest) (<-chan *ModifyDiskSpecResponse, <-chan error) { responseChan := make(chan *ModifyDiskSpecResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifyDiskSpecWithChan(request *ModifyDiskSpecRequest) (<- } // ModifyDiskSpecWithCallback invokes the ecs.ModifyDiskSpec API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifydiskspec.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyDiskSpecWithCallback(request *ModifyDiskSpecRequest, callback func(response *ModifyDiskSpecResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,18 +71,31 @@ func (client *Client) ModifyDiskSpecWithCallback(request *ModifyDiskSpecRequest, // ModifyDiskSpecRequest is the request struct for api ModifyDiskSpec type ModifyDiskSpecRequest struct { *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - DiskId string `position:"Query" name:"DiskId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - PerformanceLevel string `position:"Query" name:"PerformanceLevel"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DiskCategory string `position:"Query" name:"DiskCategory"` + DiskId string `position:"Query" name:"DiskId"` + DryRun requests.Boolean `position:"Query" name:"DryRun"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + PerformanceLevel string `position:"Query" name:"PerformanceLevel"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + PerformanceControlOptions ModifyDiskSpecPerformanceControlOptions `position:"Query" name:"PerformanceControlOptions" type:"Struct"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ProvisionedIops requests.Integer `position:"Query" name:"ProvisionedIops"` +} + +// ModifyDiskSpecPerformanceControlOptions is a repeated param struct in ModifyDiskSpecRequest +type ModifyDiskSpecPerformanceControlOptions struct { + IOPS string `name:"IOPS"` + Throughput string `name:"Throughput"` + Recover string `name:"Recover"` } // ModifyDiskSpecResponse is the response struct for api ModifyDiskSpec type ModifyDiskSpecResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` + TaskId string `json:"TaskId" xml:"TaskId"` + OrderId string `json:"OrderId" xml:"OrderId"` } // CreateModifyDiskSpecRequest creates a request to invoke ModifyDiskSpec API @@ -96,6 +104,7 @@ func CreateModifyDiskSpecRequest() (request *ModifyDiskSpecRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyDiskSpec", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_eip_address_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_eip_address_attribute.go index cf46a852..bff518d3 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_eip_address_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_eip_address_attribute.go @@ -21,7 +21,6 @@ import ( ) // ModifyEipAddressAttribute invokes the ecs.ModifyEipAddressAttribute API synchronously -// api document: https://help.aliyun.com/api/ecs/modifyeipaddressattribute.html func (client *Client) ModifyEipAddressAttribute(request *ModifyEipAddressAttributeRequest) (response *ModifyEipAddressAttributeResponse, err error) { response = CreateModifyEipAddressAttributeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifyEipAddressAttribute(request *ModifyEipAddressAttribu } // ModifyEipAddressAttributeWithChan invokes the ecs.ModifyEipAddressAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyeipaddressattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyEipAddressAttributeWithChan(request *ModifyEipAddressAttributeRequest) (<-chan *ModifyEipAddressAttributeResponse, <-chan error) { responseChan := make(chan *ModifyEipAddressAttributeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifyEipAddressAttributeWithChan(request *ModifyEipAddres } // ModifyEipAddressAttributeWithCallback invokes the ecs.ModifyEipAddressAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyeipaddressattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyEipAddressAttributeWithCallback(request *ModifyEipAddressAttributeRequest, callback func(response *ModifyEipAddressAttributeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,10 +72,10 @@ func (client *Client) ModifyEipAddressAttributeWithCallback(request *ModifyEipAd type ModifyEipAddressAttributeRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + AllocationId string `position:"Query" name:"AllocationId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` Bandwidth string `position:"Query" name:"Bandwidth"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - AllocationId string `position:"Query" name:"AllocationId"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` } @@ -96,6 +91,7 @@ func CreateModifyEipAddressAttributeRequest() (request *ModifyEipAddressAttribut RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyEipAddressAttribute", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_elasticity_assurance.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_elasticity_assurance.go new file mode 100644 index 00000000..e351c403 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_elasticity_assurance.go @@ -0,0 +1,106 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyElasticityAssurance invokes the ecs.ModifyElasticityAssurance API synchronously +func (client *Client) ModifyElasticityAssurance(request *ModifyElasticityAssuranceRequest) (response *ModifyElasticityAssuranceResponse, err error) { + response = CreateModifyElasticityAssuranceResponse() + err = client.DoAction(request, response) + return +} + +// ModifyElasticityAssuranceWithChan invokes the ecs.ModifyElasticityAssurance API asynchronously +func (client *Client) ModifyElasticityAssuranceWithChan(request *ModifyElasticityAssuranceRequest) (<-chan *ModifyElasticityAssuranceResponse, <-chan error) { + responseChan := make(chan *ModifyElasticityAssuranceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyElasticityAssurance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyElasticityAssuranceWithCallback invokes the ecs.ModifyElasticityAssurance API asynchronously +func (client *Client) ModifyElasticityAssuranceWithCallback(request *ModifyElasticityAssuranceRequest, callback func(response *ModifyElasticityAssuranceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyElasticityAssuranceResponse + var err error + defer close(result) + response, err = client.ModifyElasticityAssurance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyElasticityAssuranceRequest is the request struct for api ModifyElasticityAssurance +type ModifyElasticityAssuranceRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Description string `position:"Query" name:"Description"` + PrivatePoolOptionsId string `position:"Query" name:"PrivatePoolOptions.Id"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + PrivatePoolOptionsName string `position:"Query" name:"PrivatePoolOptions.Name"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PackageType string `position:"Query" name:"PackageType"` +} + +// ModifyElasticityAssuranceResponse is the response struct for api ModifyElasticityAssurance +type ModifyElasticityAssuranceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyElasticityAssuranceRequest creates a request to invoke ModifyElasticityAssurance API +func CreateModifyElasticityAssuranceRequest() (request *ModifyElasticityAssuranceRequest) { + request = &ModifyElasticityAssuranceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyElasticityAssurance", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateModifyElasticityAssuranceResponse creates a response to parse from ModifyElasticityAssurance response +func CreateModifyElasticityAssuranceResponse() (response *ModifyElasticityAssuranceResponse) { + response = &ModifyElasticityAssuranceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_fleet.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_fleet.go deleted file mode 100644 index e57b79ea..00000000 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_fleet.go +++ /dev/null @@ -1,114 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// ModifyFleet invokes the ecs.ModifyFleet API synchronously -// api document: https://help.aliyun.com/api/ecs/modifyfleet.html -func (client *Client) ModifyFleet(request *ModifyFleetRequest) (response *ModifyFleetResponse, err error) { - response = CreateModifyFleetResponse() - err = client.DoAction(request, response) - return -} - -// ModifyFleetWithChan invokes the ecs.ModifyFleet API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyfleet.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html -func (client *Client) ModifyFleetWithChan(request *ModifyFleetRequest) (<-chan *ModifyFleetResponse, <-chan error) { - responseChan := make(chan *ModifyFleetResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.ModifyFleet(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// ModifyFleetWithCallback invokes the ecs.ModifyFleet API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyfleet.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html -func (client *Client) ModifyFleetWithCallback(request *ModifyFleetRequest, callback func(response *ModifyFleetResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *ModifyFleetResponse - var err error - defer close(result) - response, err = client.ModifyFleet(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// ModifyFleetRequest is the request struct for api ModifyFleet -type ModifyFleetRequest struct { - *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - TerminateInstancesWithExpiration requests.Boolean `position:"Query" name:"TerminateInstancesWithExpiration"` - OnDemandTargetCapacity string `position:"Query" name:"OnDemandTargetCapacity"` - DefaultTargetCapacityType string `position:"Query" name:"DefaultTargetCapacityType"` - ExcessCapacityTerminationPolicy string `position:"Query" name:"ExcessCapacityTerminationPolicy"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - FleetId string `position:"Query" name:"FleetId"` - TotalTargetCapacity string `position:"Query" name:"TotalTargetCapacity"` - SpotTargetCapacity string `position:"Query" name:"SpotTargetCapacity"` - MaxSpotPrice requests.Float `position:"Query" name:"MaxSpotPrice"` -} - -// ModifyFleetResponse is the response struct for api ModifyFleet -type ModifyFleetResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateModifyFleetRequest creates a request to invoke ModifyFleet API -func CreateModifyFleetRequest() (request *ModifyFleetRequest) { - request = &ModifyFleetRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyFleet", "ecs", "openAPI") - return -} - -// CreateModifyFleetResponse creates a response to parse from ModifyFleet response -func CreateModifyFleetResponse() (response *ModifyFleetResponse) { - response = &ModifyFleetResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_forward_entry.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_forward_entry.go index d831c393..0d87eed6 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_forward_entry.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_forward_entry.go @@ -21,7 +21,6 @@ import ( ) // ModifyForwardEntry invokes the ecs.ModifyForwardEntry API synchronously -// api document: https://help.aliyun.com/api/ecs/modifyforwardentry.html func (client *Client) ModifyForwardEntry(request *ModifyForwardEntryRequest) (response *ModifyForwardEntryResponse, err error) { response = CreateModifyForwardEntryResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifyForwardEntry(request *ModifyForwardEntryRequest) (re } // ModifyForwardEntryWithChan invokes the ecs.ModifyForwardEntry API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyforwardentry.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyForwardEntryWithChan(request *ModifyForwardEntryRequest) (<-chan *ModifyForwardEntryResponse, <-chan error) { responseChan := make(chan *ModifyForwardEntryResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifyForwardEntryWithChan(request *ModifyForwardEntryRequ } // ModifyForwardEntryWithCallback invokes the ecs.ModifyForwardEntry API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyforwardentry.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyForwardEntryWithCallback(request *ModifyForwardEntryRequest, callback func(response *ModifyForwardEntryResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,15 +72,15 @@ func (client *Client) ModifyForwardEntryWithCallback(request *ModifyForwardEntry type ModifyForwardEntryRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ForwardTableId string `position:"Query" name:"ForwardTableId"` + InternalIp string `position:"Query" name:"InternalIp"` + ForwardEntryId string `position:"Query" name:"ForwardEntryId"` + ExternalIp string `position:"Query" name:"ExternalIp"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` IpProtocol string `position:"Query" name:"IpProtocol"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - ForwardTableId string `position:"Query" name:"ForwardTableId"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InternalIp string `position:"Query" name:"InternalIp"` - ForwardEntryId string `position:"Query" name:"ForwardEntryId"` InternalPort string `position:"Query" name:"InternalPort"` - ExternalIp string `position:"Query" name:"ExternalIp"` ExternalPort string `position:"Query" name:"ExternalPort"` } @@ -101,6 +96,7 @@ func CreateModifyForwardEntryRequest() (request *ModifyForwardEntryRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyForwardEntry", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_ha_vip_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_ha_vip_attribute.go index 034501af..e99dd871 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_ha_vip_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_ha_vip_attribute.go @@ -21,7 +21,6 @@ import ( ) // ModifyHaVipAttribute invokes the ecs.ModifyHaVipAttribute API synchronously -// api document: https://help.aliyun.com/api/ecs/modifyhavipattribute.html func (client *Client) ModifyHaVipAttribute(request *ModifyHaVipAttributeRequest) (response *ModifyHaVipAttributeResponse, err error) { response = CreateModifyHaVipAttributeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifyHaVipAttribute(request *ModifyHaVipAttributeRequest) } // ModifyHaVipAttributeWithChan invokes the ecs.ModifyHaVipAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyhavipattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyHaVipAttributeWithChan(request *ModifyHaVipAttributeRequest) (<-chan *ModifyHaVipAttributeResponse, <-chan error) { responseChan := make(chan *ModifyHaVipAttributeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifyHaVipAttributeWithChan(request *ModifyHaVipAttribute } // ModifyHaVipAttributeWithCallback invokes the ecs.ModifyHaVipAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyhavipattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyHaVipAttributeWithCallback(request *ModifyHaVipAttributeRequest, callback func(response *ModifyHaVipAttributeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,12 +71,12 @@ func (client *Client) ModifyHaVipAttributeWithCallback(request *ModifyHaVipAttri // ModifyHaVipAttributeRequest is the request struct for api ModifyHaVipAttribute type ModifyHaVipAttributeRequest struct { *requests.RpcRequest - HaVipId string `position:"Query" name:"HaVipId"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` ClientToken string `position:"Query" name:"ClientToken"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` Description string `position:"Query" name:"Description"` + HaVipId string `position:"Query" name:"HaVipId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` } @@ -97,6 +92,7 @@ func CreateModifyHaVipAttributeRequest() (request *ModifyHaVipAttributeRequest) RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyHaVipAttribute", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_hpc_cluster_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_hpc_cluster_attribute.go index 9df6f605..aaab44b2 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_hpc_cluster_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_hpc_cluster_attribute.go @@ -21,7 +21,6 @@ import ( ) // ModifyHpcClusterAttribute invokes the ecs.ModifyHpcClusterAttribute API synchronously -// api document: https://help.aliyun.com/api/ecs/modifyhpcclusterattribute.html func (client *Client) ModifyHpcClusterAttribute(request *ModifyHpcClusterAttributeRequest) (response *ModifyHpcClusterAttributeResponse, err error) { response = CreateModifyHpcClusterAttributeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifyHpcClusterAttribute(request *ModifyHpcClusterAttribu } // ModifyHpcClusterAttributeWithChan invokes the ecs.ModifyHpcClusterAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyhpcclusterattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyHpcClusterAttributeWithChan(request *ModifyHpcClusterAttributeRequest) (<-chan *ModifyHpcClusterAttributeResponse, <-chan error) { responseChan := make(chan *ModifyHpcClusterAttributeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifyHpcClusterAttributeWithChan(request *ModifyHpcCluste } // ModifyHpcClusterAttributeWithCallback invokes the ecs.ModifyHpcClusterAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyhpcclusterattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyHpcClusterAttributeWithCallback(request *ModifyHpcClusterAttributeRequest, callback func(response *ModifyHpcClusterAttributeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -98,6 +93,7 @@ func CreateModifyHpcClusterAttributeRequest() (request *ModifyHpcClusterAttribut RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyHpcClusterAttribute", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_image_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_image_attribute.go index bed589ab..d386b917 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_image_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_image_attribute.go @@ -21,7 +21,6 @@ import ( ) // ModifyImageAttribute invokes the ecs.ModifyImageAttribute API synchronously -// api document: https://help.aliyun.com/api/ecs/modifyimageattribute.html func (client *Client) ModifyImageAttribute(request *ModifyImageAttributeRequest) (response *ModifyImageAttributeResponse, err error) { response = CreateModifyImageAttributeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifyImageAttribute(request *ModifyImageAttributeRequest) } // ModifyImageAttributeWithChan invokes the ecs.ModifyImageAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyimageattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyImageAttributeWithChan(request *ModifyImageAttributeRequest) (<-chan *ModifyImageAttributeResponse, <-chan error) { responseChan := make(chan *ModifyImageAttributeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifyImageAttributeWithChan(request *ModifyImageAttribute } // ModifyImageAttributeWithCallback invokes the ecs.ModifyImageAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyimageattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyImageAttributeWithCallback(request *ModifyImageAttributeRequest, callback func(response *ModifyImageAttributeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,13 +71,23 @@ func (client *Client) ModifyImageAttributeWithCallback(request *ModifyImageAttri // ModifyImageAttributeRequest is the request struct for api ModifyImageAttribute type ModifyImageAttributeRequest struct { *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ImageId string `position:"Query" name:"ImageId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - ImageName string `position:"Query" name:"ImageName"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - Description string `position:"Query" name:"Description"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ImageId string `position:"Query" name:"ImageId"` + Description string `position:"Query" name:"Description"` + Features ModifyImageAttributeFeatures `position:"Query" name:"Features" type:"Struct"` + BootMode string `position:"Query" name:"BootMode"` + ImageName string `position:"Query" name:"ImageName"` + LicenseType string `position:"Query" name:"LicenseType"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ImageFamily string `position:"Query" name:"ImageFamily"` + Status string `position:"Query" name:"Status"` +} + +// ModifyImageAttributeFeatures is a repeated param struct in ModifyImageAttributeRequest +type ModifyImageAttributeFeatures struct { + NvmeSupport string `name:"NvmeSupport"` } // ModifyImageAttributeResponse is the response struct for api ModifyImageAttribute @@ -97,6 +102,7 @@ func CreateModifyImageAttributeRequest() (request *ModifyImageAttributeRequest) RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyImageAttribute", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_image_share_group_permission.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_image_share_group_permission.go index fb3142aa..6750ffb4 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_image_share_group_permission.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_image_share_group_permission.go @@ -21,7 +21,6 @@ import ( ) // ModifyImageShareGroupPermission invokes the ecs.ModifyImageShareGroupPermission API synchronously -// api document: https://help.aliyun.com/api/ecs/modifyimagesharegrouppermission.html func (client *Client) ModifyImageShareGroupPermission(request *ModifyImageShareGroupPermissionRequest) (response *ModifyImageShareGroupPermissionResponse, err error) { response = CreateModifyImageShareGroupPermissionResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifyImageShareGroupPermission(request *ModifyImageShareG } // ModifyImageShareGroupPermissionWithChan invokes the ecs.ModifyImageShareGroupPermission API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyimagesharegrouppermission.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyImageShareGroupPermissionWithChan(request *ModifyImageShareGroupPermissionRequest) (<-chan *ModifyImageShareGroupPermissionResponse, <-chan error) { responseChan := make(chan *ModifyImageShareGroupPermissionResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifyImageShareGroupPermissionWithChan(request *ModifyIma } // ModifyImageShareGroupPermissionWithCallback invokes the ecs.ModifyImageShareGroupPermission API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyimagesharegrouppermission.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyImageShareGroupPermissionWithCallback(request *ModifyImageShareGroupPermissionRequest, callback func(response *ModifyImageShareGroupPermissionResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -81,8 +76,8 @@ type ModifyImageShareGroupPermissionRequest struct { AddGroup1 string `position:"Query" name:"AddGroup.1"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - RemoveGroup1 string `position:"Query" name:"RemoveGroup.1"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + RemoveGroup1 string `position:"Query" name:"RemoveGroup.1"` } // ModifyImageShareGroupPermissionResponse is the response struct for api ModifyImageShareGroupPermission @@ -97,6 +92,7 @@ func CreateModifyImageShareGroupPermissionRequest() (request *ModifyImageShareGr RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyImageShareGroupPermission", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_image_share_permission.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_image_share_permission.go index d73f19f7..99656f9a 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_image_share_permission.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_image_share_permission.go @@ -21,7 +21,6 @@ import ( ) // ModifyImageSharePermission invokes the ecs.ModifyImageSharePermission API synchronously -// api document: https://help.aliyun.com/api/ecs/modifyimagesharepermission.html func (client *Client) ModifyImageSharePermission(request *ModifyImageSharePermissionRequest) (response *ModifyImageSharePermissionResponse, err error) { response = CreateModifyImageSharePermissionResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifyImageSharePermission(request *ModifyImageSharePermis } // ModifyImageSharePermissionWithChan invokes the ecs.ModifyImageSharePermission API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyimagesharepermission.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyImageSharePermissionWithChan(request *ModifyImageSharePermissionRequest) (<-chan *ModifyImageSharePermissionResponse, <-chan error) { responseChan := make(chan *ModifyImageSharePermissionResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifyImageSharePermissionWithChan(request *ModifyImageSha } // ModifyImageSharePermissionWithCallback invokes the ecs.ModifyImageSharePermission API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyimagesharepermission.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyImageSharePermissionWithCallback(request *ModifyImageSharePermissionRequest, callback func(response *ModifyImageSharePermissionResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -78,11 +73,13 @@ type ModifyImageSharePermissionRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` ImageId string `position:"Query" name:"ImageId"` - AddAccount *[]string `position:"Query" name:"AddAccount" type:"Repeated"` + IsPublic requests.Boolean `position:"Query" name:"IsPublic"` + LaunchPermission string `position:"Query" name:"LaunchPermission"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - RemoveAccount *[]string `position:"Query" name:"RemoveAccount" type:"Repeated"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + AddAccount *[]string `position:"Query" name:"AddAccount" type:"Repeated"` + RemoveAccount *[]string `position:"Query" name:"RemoveAccount" type:"Repeated"` } // ModifyImageSharePermissionResponse is the response struct for api ModifyImageSharePermission @@ -97,6 +94,7 @@ func CreateModifyImageSharePermissionRequest() (request *ModifyImageSharePermiss RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyImageSharePermission", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_attachment_attributes.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_attachment_attributes.go new file mode 100644 index 00000000..aeeb1290 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_attachment_attributes.go @@ -0,0 +1,105 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyInstanceAttachmentAttributes invokes the ecs.ModifyInstanceAttachmentAttributes API synchronously +func (client *Client) ModifyInstanceAttachmentAttributes(request *ModifyInstanceAttachmentAttributesRequest) (response *ModifyInstanceAttachmentAttributesResponse, err error) { + response = CreateModifyInstanceAttachmentAttributesResponse() + err = client.DoAction(request, response) + return +} + +// ModifyInstanceAttachmentAttributesWithChan invokes the ecs.ModifyInstanceAttachmentAttributes API asynchronously +func (client *Client) ModifyInstanceAttachmentAttributesWithChan(request *ModifyInstanceAttachmentAttributesRequest) (<-chan *ModifyInstanceAttachmentAttributesResponse, <-chan error) { + responseChan := make(chan *ModifyInstanceAttachmentAttributesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyInstanceAttachmentAttributes(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyInstanceAttachmentAttributesWithCallback invokes the ecs.ModifyInstanceAttachmentAttributes API asynchronously +func (client *Client) ModifyInstanceAttachmentAttributesWithCallback(request *ModifyInstanceAttachmentAttributesRequest, callback func(response *ModifyInstanceAttachmentAttributesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyInstanceAttachmentAttributesResponse + var err error + defer close(result) + response, err = client.ModifyInstanceAttachmentAttributes(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyInstanceAttachmentAttributesRequest is the request struct for api ModifyInstanceAttachmentAttributes +type ModifyInstanceAttachmentAttributesRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PrivatePoolOptionsMatchCriteria string `position:"Query" name:"PrivatePoolOptions.MatchCriteria"` + PrivatePoolOptionsId string `position:"Query" name:"PrivatePoolOptions.Id"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` +} + +// ModifyInstanceAttachmentAttributesResponse is the response struct for api ModifyInstanceAttachmentAttributes +type ModifyInstanceAttachmentAttributesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyInstanceAttachmentAttributesRequest creates a request to invoke ModifyInstanceAttachmentAttributes API +func CreateModifyInstanceAttachmentAttributesRequest() (request *ModifyInstanceAttachmentAttributesRequest) { + request = &ModifyInstanceAttachmentAttributesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyInstanceAttachmentAttributes", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateModifyInstanceAttachmentAttributesResponse creates a response to parse from ModifyInstanceAttachmentAttributes response +func CreateModifyInstanceAttachmentAttributesResponse() (response *ModifyInstanceAttachmentAttributesResponse) { + response = &ModifyInstanceAttachmentAttributesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_attribute.go index 57bfed40..a709ee9c 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_attribute.go @@ -21,7 +21,6 @@ import ( ) // ModifyInstanceAttribute invokes the ecs.ModifyInstanceAttribute API synchronously -// api document: https://help.aliyun.com/api/ecs/modifyinstanceattribute.html func (client *Client) ModifyInstanceAttribute(request *ModifyInstanceAttributeRequest) (response *ModifyInstanceAttributeResponse, err error) { response = CreateModifyInstanceAttributeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifyInstanceAttribute(request *ModifyInstanceAttributeRe } // ModifyInstanceAttributeWithChan invokes the ecs.ModifyInstanceAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyinstanceattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyInstanceAttributeWithChan(request *ModifyInstanceAttributeRequest) (<-chan *ModifyInstanceAttributeResponse, <-chan error) { responseChan := make(chan *ModifyInstanceAttributeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifyInstanceAttributeWithChan(request *ModifyInstanceAtt } // ModifyInstanceAttributeWithCallback invokes the ecs.ModifyInstanceAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyinstanceattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyInstanceAttributeWithCallback(request *ModifyInstanceAttributeRequest, callback func(response *ModifyInstanceAttributeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,19 +71,30 @@ func (client *Client) ModifyInstanceAttributeWithCallback(request *ModifyInstanc // ModifyInstanceAttributeRequest is the request struct for api ModifyInstanceAttribute type ModifyInstanceAttributeRequest struct { *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - Recyclable requests.Boolean `position:"Query" name:"Recyclable"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - Description string `position:"Query" name:"Description"` - CreditSpecification string `position:"Query" name:"CreditSpecification"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - DeletionProtection requests.Boolean `position:"Query" name:"DeletionProtection"` - UserData string `position:"Query" name:"UserData"` - Password string `position:"Query" name:"Password"` - HostName string `position:"Query" name:"HostName"` - InstanceId string `position:"Query" name:"InstanceId"` - InstanceName string `position:"Query" name:"InstanceName"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Recyclable requests.Boolean `position:"Query" name:"Recyclable"` + NetworkInterfaceQueueNumber requests.Integer `position:"Query" name:"NetworkInterfaceQueueNumber"` + Description string `position:"Query" name:"Description"` + DeletionProtection requests.Boolean `position:"Query" name:"DeletionProtection"` + UserData string `position:"Query" name:"UserData"` + Password string `position:"Query" name:"Password"` + HostName string `position:"Query" name:"HostName"` + CpuOptionsTopologyType string `position:"Query" name:"CpuOptions.TopologyType"` + EnableJumboFrame requests.Boolean `position:"Query" name:"EnableJumboFrame"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + CreditSpecification string `position:"Query" name:"CreditSpecification"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + SecurityGroupIds *[]string `position:"Query" name:"SecurityGroupIds" type:"Repeated"` + InstanceId string `position:"Query" name:"InstanceId"` + InstanceName string `position:"Query" name:"InstanceName"` + RemoteConnectionOptions ModifyInstanceAttributeRemoteConnectionOptions `position:"Query" name:"RemoteConnectionOptions" type:"Struct"` +} + +// ModifyInstanceAttributeRemoteConnectionOptions is a repeated param struct in ModifyInstanceAttributeRequest +type ModifyInstanceAttributeRemoteConnectionOptions struct { + Password string `name:"Password"` + Type string `name:"Type"` } // ModifyInstanceAttributeResponse is the response struct for api ModifyInstanceAttribute @@ -103,6 +109,7 @@ func CreateModifyInstanceAttributeRequest() (request *ModifyInstanceAttributeReq RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyInstanceAttribute", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_auto_release_time.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_auto_release_time.go index 6e596d3d..47e55bb7 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_auto_release_time.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_auto_release_time.go @@ -21,7 +21,6 @@ import ( ) // ModifyInstanceAutoReleaseTime invokes the ecs.ModifyInstanceAutoReleaseTime API synchronously -// api document: https://help.aliyun.com/api/ecs/modifyinstanceautoreleasetime.html func (client *Client) ModifyInstanceAutoReleaseTime(request *ModifyInstanceAutoReleaseTimeRequest) (response *ModifyInstanceAutoReleaseTimeResponse, err error) { response = CreateModifyInstanceAutoReleaseTimeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifyInstanceAutoReleaseTime(request *ModifyInstanceAutoR } // ModifyInstanceAutoReleaseTimeWithChan invokes the ecs.ModifyInstanceAutoReleaseTime API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyinstanceautoreleasetime.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyInstanceAutoReleaseTimeWithChan(request *ModifyInstanceAutoReleaseTimeRequest) (<-chan *ModifyInstanceAutoReleaseTimeResponse, <-chan error) { responseChan := make(chan *ModifyInstanceAutoReleaseTimeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifyInstanceAutoReleaseTimeWithChan(request *ModifyInsta } // ModifyInstanceAutoReleaseTimeWithCallback invokes the ecs.ModifyInstanceAutoReleaseTime API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyinstanceautoreleasetime.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyInstanceAutoReleaseTimeWithCallback(request *ModifyInstanceAutoReleaseTimeRequest, callback func(response *ModifyInstanceAutoReleaseTimeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,11 +72,11 @@ func (client *Client) ModifyInstanceAutoReleaseTimeWithCallback(request *ModifyI type ModifyInstanceAutoReleaseTimeRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` AutoReleaseTime string `position:"Query" name:"AutoReleaseTime"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` } // ModifyInstanceAutoReleaseTimeResponse is the response struct for api ModifyInstanceAutoReleaseTime @@ -96,6 +91,7 @@ func CreateModifyInstanceAutoReleaseTimeRequest() (request *ModifyInstanceAutoRe RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyInstanceAutoReleaseTime", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_auto_renew_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_auto_renew_attribute.go index 3df2c793..dfadf33b 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_auto_renew_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_auto_renew_attribute.go @@ -21,7 +21,6 @@ import ( ) // ModifyInstanceAutoRenewAttribute invokes the ecs.ModifyInstanceAutoRenewAttribute API synchronously -// api document: https://help.aliyun.com/api/ecs/modifyinstanceautorenewattribute.html func (client *Client) ModifyInstanceAutoRenewAttribute(request *ModifyInstanceAutoRenewAttributeRequest) (response *ModifyInstanceAutoRenewAttributeResponse, err error) { response = CreateModifyInstanceAutoRenewAttributeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifyInstanceAutoRenewAttribute(request *ModifyInstanceAu } // ModifyInstanceAutoRenewAttributeWithChan invokes the ecs.ModifyInstanceAutoRenewAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyinstanceautorenewattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyInstanceAutoRenewAttributeWithChan(request *ModifyInstanceAutoRenewAttributeRequest) (<-chan *ModifyInstanceAutoRenewAttributeResponse, <-chan error) { responseChan := make(chan *ModifyInstanceAutoRenewAttributeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifyInstanceAutoRenewAttributeWithChan(request *ModifyIn } // ModifyInstanceAutoRenewAttributeWithCallback invokes the ecs.ModifyInstanceAutoRenewAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyinstanceautorenewattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyInstanceAutoRenewAttributeWithCallback(request *ModifyInstanceAutoRenewAttributeRequest, callback func(response *ModifyInstanceAutoRenewAttributeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,15 +71,15 @@ func (client *Client) ModifyInstanceAutoRenewAttributeWithCallback(request *Modi // ModifyInstanceAutoRenewAttributeRequest is the request struct for api ModifyInstanceAutoRenewAttribute type ModifyInstanceAutoRenewAttributeRequest struct { *requests.RpcRequest - Duration requests.Integer `position:"Query" name:"Duration"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PeriodUnit string `position:"Query" name:"PeriodUnit"` - InstanceId string `position:"Query" name:"InstanceId"` - AutoRenew requests.Boolean `position:"Query" name:"AutoRenew"` + Duration requests.Integer `position:"Query" name:"Duration"` + RenewalStatus string `position:"Query" name:"RenewalStatus"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - RenewalStatus string `position:"Query" name:"RenewalStatus"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PeriodUnit string `position:"Query" name:"PeriodUnit"` + InstanceId string `position:"Query" name:"InstanceId"` + AutoRenew requests.Boolean `position:"Query" name:"AutoRenew"` } // ModifyInstanceAutoRenewAttributeResponse is the response struct for api ModifyInstanceAutoRenewAttribute @@ -99,6 +94,7 @@ func CreateModifyInstanceAutoRenewAttributeRequest() (request *ModifyInstanceAut RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyInstanceAutoRenewAttribute", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_charge_type.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_charge_type.go index 6cebd6ae..d7474bfe 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_charge_type.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_charge_type.go @@ -21,7 +21,6 @@ import ( ) // ModifyInstanceChargeType invokes the ecs.ModifyInstanceChargeType API synchronously -// api document: https://help.aliyun.com/api/ecs/modifyinstancechargetype.html func (client *Client) ModifyInstanceChargeType(request *ModifyInstanceChargeTypeRequest) (response *ModifyInstanceChargeTypeResponse, err error) { response = CreateModifyInstanceChargeTypeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifyInstanceChargeType(request *ModifyInstanceChargeType } // ModifyInstanceChargeTypeWithChan invokes the ecs.ModifyInstanceChargeType API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyinstancechargetype.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyInstanceChargeTypeWithChan(request *ModifyInstanceChargeTypeRequest) (<-chan *ModifyInstanceChargeTypeResponse, <-chan error) { responseChan := make(chan *ModifyInstanceChargeTypeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifyInstanceChargeTypeWithChan(request *ModifyInstanceCh } // ModifyInstanceChargeTypeWithCallback invokes the ecs.ModifyInstanceChargeType API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyinstancechargetype.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyInstanceChargeTypeWithCallback(request *ModifyInstanceChargeTypeRequest, callback func(response *ModifyInstanceChargeTypeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,26 +72,26 @@ func (client *Client) ModifyInstanceChargeTypeWithCallback(request *ModifyInstan type ModifyInstanceChargeTypeRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + IsDetailFee requests.Boolean `position:"Query" name:"IsDetailFee"` + InstanceChargeType string `position:"Query" name:"InstanceChargeType"` Period requests.Integer `position:"Query" name:"Period"` DryRun requests.Boolean `position:"Query" name:"DryRun"` AutoPay requests.Boolean `position:"Query" name:"AutoPay"` IncludeDataDisks requests.Boolean `position:"Query" name:"IncludeDataDisks"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - ClientToken string `position:"Query" name:"ClientToken"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` PeriodUnit string `position:"Query" name:"PeriodUnit"` InstanceIds string `position:"Query" name:"InstanceIds"` - IsDetailFee requests.Boolean `position:"Query" name:"IsDetailFee"` - InstanceChargeType string `position:"Query" name:"InstanceChargeType"` } // ModifyInstanceChargeTypeResponse is the response struct for api ModifyInstanceChargeType type ModifyInstanceChargeTypeResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - OrderId string `json:"OrderId" xml:"OrderId"` - FeeOfInstances FeeOfInstances `json:"FeeOfInstances" xml:"FeeOfInstances"` + OrderId string `json:"OrderId" xml:"OrderId"` + RequestId string `json:"RequestId" xml:"RequestId"` + FeeOfInstances FeeOfInstancesInModifyInstanceChargeType `json:"FeeOfInstances" xml:"FeeOfInstances"` } // CreateModifyInstanceChargeTypeRequest creates a request to invoke ModifyInstanceChargeType API @@ -105,6 +100,7 @@ func CreateModifyInstanceChargeTypeRequest() (request *ModifyInstanceChargeTypeR RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyInstanceChargeType", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_deployment.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_deployment.go index 64300c9a..92bf3bf4 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_deployment.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_deployment.go @@ -21,7 +21,6 @@ import ( ) // ModifyInstanceDeployment invokes the ecs.ModifyInstanceDeployment API synchronously -// api document: https://help.aliyun.com/api/ecs/modifyinstancedeployment.html func (client *Client) ModifyInstanceDeployment(request *ModifyInstanceDeploymentRequest) (response *ModifyInstanceDeploymentResponse, err error) { response = CreateModifyInstanceDeploymentResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifyInstanceDeployment(request *ModifyInstanceDeployment } // ModifyInstanceDeploymentWithChan invokes the ecs.ModifyInstanceDeployment API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyinstancedeployment.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyInstanceDeploymentWithChan(request *ModifyInstanceDeploymentRequest) (<-chan *ModifyInstanceDeploymentResponse, <-chan error) { responseChan := make(chan *ModifyInstanceDeploymentResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifyInstanceDeploymentWithChan(request *ModifyInstanceDe } // ModifyInstanceDeploymentWithCallback invokes the ecs.ModifyInstanceDeployment API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyinstancedeployment.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyInstanceDeploymentWithCallback(request *ModifyInstanceDeploymentRequest, callback func(response *ModifyInstanceDeploymentResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,16 +71,21 @@ func (client *Client) ModifyInstanceDeploymentWithCallback(request *ModifyInstan // ModifyInstanceDeploymentRequest is the request struct for api ModifyInstanceDeployment type ModifyInstanceDeploymentRequest struct { *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - DeploymentSetId string `position:"Query" name:"DeploymentSetId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - Tenancy string `position:"Query" name:"Tenancy"` - DedicatedHostId string `position:"Query" name:"DedicatedHostId"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` - Force requests.Boolean `position:"Query" name:"Force"` - Affinity string `position:"Query" name:"Affinity"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + RemoveFromDeploymentSet requests.Boolean `position:"Query" name:"RemoveFromDeploymentSet"` + DeploymentSetGroupNo requests.Integer `position:"Query" name:"DeploymentSetGroupNo"` + DedicatedHostClusterId string `position:"Query" name:"DedicatedHostClusterId"` + InstanceType string `position:"Query" name:"InstanceType"` + DeploymentSetId string `position:"Query" name:"DeploymentSetId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Tenancy string `position:"Query" name:"Tenancy"` + DedicatedHostId string `position:"Query" name:"DedicatedHostId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + Force requests.Boolean `position:"Query" name:"Force"` + MigrationType string `position:"Query" name:"MigrationType"` + Affinity string `position:"Query" name:"Affinity"` } // ModifyInstanceDeploymentResponse is the response struct for api ModifyInstanceDeployment @@ -100,6 +100,7 @@ func CreateModifyInstanceDeploymentRequest() (request *ModifyInstanceDeploymentR RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyInstanceDeployment", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_maintenance_attributes.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_maintenance_attributes.go new file mode 100644 index 00000000..93d6a580 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_maintenance_attributes.go @@ -0,0 +1,112 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyInstanceMaintenanceAttributes invokes the ecs.ModifyInstanceMaintenanceAttributes API synchronously +func (client *Client) ModifyInstanceMaintenanceAttributes(request *ModifyInstanceMaintenanceAttributesRequest) (response *ModifyInstanceMaintenanceAttributesResponse, err error) { + response = CreateModifyInstanceMaintenanceAttributesResponse() + err = client.DoAction(request, response) + return +} + +// ModifyInstanceMaintenanceAttributesWithChan invokes the ecs.ModifyInstanceMaintenanceAttributes API asynchronously +func (client *Client) ModifyInstanceMaintenanceAttributesWithChan(request *ModifyInstanceMaintenanceAttributesRequest) (<-chan *ModifyInstanceMaintenanceAttributesResponse, <-chan error) { + responseChan := make(chan *ModifyInstanceMaintenanceAttributesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyInstanceMaintenanceAttributes(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyInstanceMaintenanceAttributesWithCallback invokes the ecs.ModifyInstanceMaintenanceAttributes API asynchronously +func (client *Client) ModifyInstanceMaintenanceAttributesWithCallback(request *ModifyInstanceMaintenanceAttributesRequest, callback func(response *ModifyInstanceMaintenanceAttributesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyInstanceMaintenanceAttributesResponse + var err error + defer close(result) + response, err = client.ModifyInstanceMaintenanceAttributes(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyInstanceMaintenanceAttributesRequest is the request struct for api ModifyInstanceMaintenanceAttributes +type ModifyInstanceMaintenanceAttributesRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + MaintenanceWindow *[]ModifyInstanceMaintenanceAttributesMaintenanceWindow `position:"Query" name:"MaintenanceWindow" type:"Repeated"` + ActionOnMaintenance string `position:"Query" name:"ActionOnMaintenance"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + NotifyOnMaintenance requests.Boolean `position:"Query" name:"NotifyOnMaintenance"` + InstanceId *[]string `position:"Query" name:"InstanceId" type:"Repeated"` +} + +// ModifyInstanceMaintenanceAttributesMaintenanceWindow is a repeated param struct in ModifyInstanceMaintenanceAttributesRequest +type ModifyInstanceMaintenanceAttributesMaintenanceWindow struct { + EndTime string `name:"EndTime"` + StartTime string `name:"StartTime"` +} + +// ModifyInstanceMaintenanceAttributesResponse is the response struct for api ModifyInstanceMaintenanceAttributes +type ModifyInstanceMaintenanceAttributesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyInstanceMaintenanceAttributesRequest creates a request to invoke ModifyInstanceMaintenanceAttributes API +func CreateModifyInstanceMaintenanceAttributesRequest() (request *ModifyInstanceMaintenanceAttributesRequest) { + request = &ModifyInstanceMaintenanceAttributesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyInstanceMaintenanceAttributes", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateModifyInstanceMaintenanceAttributesResponse creates a response to parse from ModifyInstanceMaintenanceAttributes response +func CreateModifyInstanceMaintenanceAttributesResponse() (response *ModifyInstanceMaintenanceAttributesResponse) { + response = &ModifyInstanceMaintenanceAttributesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_metadata_options.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_metadata_options.go new file mode 100644 index 00000000..bff632ef --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_metadata_options.go @@ -0,0 +1,106 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyInstanceMetadataOptions invokes the ecs.ModifyInstanceMetadataOptions API synchronously +func (client *Client) ModifyInstanceMetadataOptions(request *ModifyInstanceMetadataOptionsRequest) (response *ModifyInstanceMetadataOptionsResponse, err error) { + response = CreateModifyInstanceMetadataOptionsResponse() + err = client.DoAction(request, response) + return +} + +// ModifyInstanceMetadataOptionsWithChan invokes the ecs.ModifyInstanceMetadataOptions API asynchronously +func (client *Client) ModifyInstanceMetadataOptionsWithChan(request *ModifyInstanceMetadataOptionsRequest) (<-chan *ModifyInstanceMetadataOptionsResponse, <-chan error) { + responseChan := make(chan *ModifyInstanceMetadataOptionsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyInstanceMetadataOptions(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyInstanceMetadataOptionsWithCallback invokes the ecs.ModifyInstanceMetadataOptions API asynchronously +func (client *Client) ModifyInstanceMetadataOptionsWithCallback(request *ModifyInstanceMetadataOptionsRequest, callback func(response *ModifyInstanceMetadataOptionsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyInstanceMetadataOptionsResponse + var err error + defer close(result) + response, err = client.ModifyInstanceMetadataOptions(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyInstanceMetadataOptionsRequest is the request struct for api ModifyInstanceMetadataOptions +type ModifyInstanceMetadataOptionsRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceMetadataTags string `position:"Query" name:"InstanceMetadataTags"` + HttpPutResponseHopLimit requests.Integer `position:"Query" name:"HttpPutResponseHopLimit"` + HttpEndpoint string `position:"Query" name:"HttpEndpoint"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + HttpTokens string `position:"Query" name:"HttpTokens"` +} + +// ModifyInstanceMetadataOptionsResponse is the response struct for api ModifyInstanceMetadataOptions +type ModifyInstanceMetadataOptionsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyInstanceMetadataOptionsRequest creates a request to invoke ModifyInstanceMetadataOptions API +func CreateModifyInstanceMetadataOptionsRequest() (request *ModifyInstanceMetadataOptionsRequest) { + request = &ModifyInstanceMetadataOptionsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyInstanceMetadataOptions", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateModifyInstanceMetadataOptionsResponse creates a response to parse from ModifyInstanceMetadataOptions response +func CreateModifyInstanceMetadataOptionsResponse() (response *ModifyInstanceMetadataOptionsResponse) { + response = &ModifyInstanceMetadataOptionsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_network_spec.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_network_spec.go index cf4c6831..314e4a9b 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_network_spec.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_network_spec.go @@ -21,7 +21,6 @@ import ( ) // ModifyInstanceNetworkSpec invokes the ecs.ModifyInstanceNetworkSpec API synchronously -// api document: https://help.aliyun.com/api/ecs/modifyinstancenetworkspec.html func (client *Client) ModifyInstanceNetworkSpec(request *ModifyInstanceNetworkSpecRequest) (response *ModifyInstanceNetworkSpecResponse, err error) { response = CreateModifyInstanceNetworkSpecResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifyInstanceNetworkSpec(request *ModifyInstanceNetworkSp } // ModifyInstanceNetworkSpecWithChan invokes the ecs.ModifyInstanceNetworkSpec API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyinstancenetworkspec.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyInstanceNetworkSpecWithChan(request *ModifyInstanceNetworkSpecRequest) (<-chan *ModifyInstanceNetworkSpecResponse, <-chan error) { responseChan := make(chan *ModifyInstanceNetworkSpecResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifyInstanceNetworkSpecWithChan(request *ModifyInstanceN } // ModifyInstanceNetworkSpecWithCallback invokes the ecs.ModifyInstanceNetworkSpec API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyinstancenetworkspec.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyInstanceNetworkSpecWithCallback(request *ModifyInstanceNetworkSpecRequest, callback func(response *ModifyInstanceNetworkSpecResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,26 +71,33 @@ func (client *Client) ModifyInstanceNetworkSpecWithCallback(request *ModifyInsta // ModifyInstanceNetworkSpecRequest is the request struct for api ModifyInstanceNetworkSpec type ModifyInstanceNetworkSpecRequest struct { *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - AutoPay requests.Boolean `position:"Query" name:"AutoPay"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - ClientToken string `position:"Query" name:"ClientToken"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - InternetMaxBandwidthOut requests.Integer `position:"Query" name:"InternetMaxBandwidthOut"` - EndTime string `position:"Query" name:"EndTime"` - StartTime string `position:"Query" name:"StartTime"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` - NetworkChargeType string `position:"Query" name:"NetworkChargeType"` - InternetMaxBandwidthIn requests.Integer `position:"Query" name:"InternetMaxBandwidthIn"` - AllocatePublicIp requests.Boolean `position:"Query" name:"AllocatePublicIp"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + ISP string `position:"Query" name:"ISP"` + InternetMaxBandwidthOut requests.Integer `position:"Query" name:"InternetMaxBandwidthOut"` + StartTime string `position:"Query" name:"StartTime"` + AutoPay requests.Boolean `position:"Query" name:"AutoPay"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + EndTime string `position:"Query" name:"EndTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PromotionOptions ModifyInstanceNetworkSpecPromotionOptions `position:"Query" name:"PromotionOptions" type:"Struct"` + InstanceId string `position:"Query" name:"InstanceId"` + NetworkChargeType string `position:"Query" name:"NetworkChargeType"` + InternetMaxBandwidthIn requests.Integer `position:"Query" name:"InternetMaxBandwidthIn"` + AllocatePublicIp requests.Boolean `position:"Query" name:"AllocatePublicIp"` +} + +// ModifyInstanceNetworkSpecPromotionOptions is a repeated param struct in ModifyInstanceNetworkSpecRequest +type ModifyInstanceNetworkSpecPromotionOptions struct { + CouponNo string `name:"CouponNo"` } // ModifyInstanceNetworkSpecResponse is the response struct for api ModifyInstanceNetworkSpec type ModifyInstanceNetworkSpecResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` OrderId string `json:"OrderId" xml:"OrderId"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateModifyInstanceNetworkSpecRequest creates a request to invoke ModifyInstanceNetworkSpec API @@ -104,6 +106,7 @@ func CreateModifyInstanceNetworkSpecRequest() (request *ModifyInstanceNetworkSpe RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyInstanceNetworkSpec", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_spec.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_spec.go index b6d1e7b3..98e9f970 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_spec.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_spec.go @@ -21,7 +21,6 @@ import ( ) // ModifyInstanceSpec invokes the ecs.ModifyInstanceSpec API synchronously -// api document: https://help.aliyun.com/api/ecs/modifyinstancespec.html func (client *Client) ModifyInstanceSpec(request *ModifyInstanceSpecRequest) (response *ModifyInstanceSpecResponse, err error) { response = CreateModifyInstanceSpecResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifyInstanceSpec(request *ModifyInstanceSpecRequest) (re } // ModifyInstanceSpecWithChan invokes the ecs.ModifyInstanceSpec API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyinstancespec.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyInstanceSpecWithChan(request *ModifyInstanceSpecRequest) (<-chan *ModifyInstanceSpecResponse, <-chan error) { responseChan := make(chan *ModifyInstanceSpecResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifyInstanceSpecWithChan(request *ModifyInstanceSpecRequ } // ModifyInstanceSpecWithCallback invokes the ecs.ModifyInstanceSpec API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyinstancespec.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyInstanceSpecWithCallback(request *ModifyInstanceSpecRequest, callback func(response *ModifyInstanceSpecResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,21 +71,31 @@ func (client *Client) ModifyInstanceSpecWithCallback(request *ModifyInstanceSpec // ModifyInstanceSpecRequest is the request struct for api ModifyInstanceSpec type ModifyInstanceSpecRequest struct { *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - ClientToken string `position:"Query" name:"ClientToken"` - AllowMigrateAcrossZone requests.Boolean `position:"Query" name:"AllowMigrateAcrossZone"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - InternetMaxBandwidthOut requests.Integer `position:"Query" name:"InternetMaxBandwidthOut"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - TemporaryInternetMaxBandwidthOut requests.Integer `position:"Query" name:"Temporary.InternetMaxBandwidthOut"` - SystemDiskCategory string `position:"Query" name:"SystemDisk.Category"` - TemporaryStartTime string `position:"Query" name:"Temporary.StartTime"` - Async requests.Boolean `position:"Query" name:"Async"` - InstanceId string `position:"Query" name:"InstanceId"` - InstanceType string `position:"Query" name:"InstanceType"` - TemporaryEndTime string `position:"Query" name:"Temporary.EndTime"` - InternetMaxBandwidthIn requests.Integer `position:"Query" name:"InternetMaxBandwidthIn"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + AllowMigrateAcrossZone requests.Boolean `position:"Query" name:"AllowMigrateAcrossZone"` + InternetMaxBandwidthOut requests.Integer `position:"Query" name:"InternetMaxBandwidthOut"` + SystemDiskCategory string `position:"Query" name:"SystemDisk.Category"` + InstanceType string `position:"Query" name:"InstanceType"` + TemporaryEndTime string `position:"Query" name:"Temporary.EndTime"` + ModifyMode string `position:"Query" name:"ModifyMode"` + DryRun requests.Boolean `position:"Query" name:"DryRun"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + TemporaryInternetMaxBandwidthOut requests.Integer `position:"Query" name:"Temporary.InternetMaxBandwidthOut"` + TemporaryStartTime string `position:"Query" name:"Temporary.StartTime"` + Async requests.Boolean `position:"Query" name:"Async"` + Disk *[]ModifyInstanceSpecDisk `position:"Query" name:"Disk" type:"Repeated"` + InstanceId string `position:"Query" name:"InstanceId"` + InternetMaxBandwidthIn requests.Integer `position:"Query" name:"InternetMaxBandwidthIn"` +} + +// ModifyInstanceSpecDisk is a repeated param struct in ModifyInstanceSpecRequest +type ModifyInstanceSpecDisk struct { + PerformanceLevel string `name:"PerformanceLevel"` + DiskId string `name:"DiskId"` + Category string `name:"Category"` } // ModifyInstanceSpecResponse is the response struct for api ModifyInstanceSpec @@ -105,6 +110,7 @@ func CreateModifyInstanceSpecRequest() (request *ModifyInstanceSpecRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyInstanceSpec", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_vnc_passwd.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_vnc_passwd.go index dcc971aa..0a77cc7b 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_vnc_passwd.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_vnc_passwd.go @@ -21,7 +21,6 @@ import ( ) // ModifyInstanceVncPasswd invokes the ecs.ModifyInstanceVncPasswd API synchronously -// api document: https://help.aliyun.com/api/ecs/modifyinstancevncpasswd.html func (client *Client) ModifyInstanceVncPasswd(request *ModifyInstanceVncPasswdRequest) (response *ModifyInstanceVncPasswdResponse, err error) { response = CreateModifyInstanceVncPasswdResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifyInstanceVncPasswd(request *ModifyInstanceVncPasswdRe } // ModifyInstanceVncPasswdWithChan invokes the ecs.ModifyInstanceVncPasswd API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyinstancevncpasswd.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyInstanceVncPasswdWithChan(request *ModifyInstanceVncPasswdRequest) (<-chan *ModifyInstanceVncPasswdResponse, <-chan error) { responseChan := make(chan *ModifyInstanceVncPasswdResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifyInstanceVncPasswdWithChan(request *ModifyInstanceVnc } // ModifyInstanceVncPasswdWithCallback invokes the ecs.ModifyInstanceVncPasswd API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyinstancevncpasswd.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyInstanceVncPasswdWithCallback(request *ModifyInstanceVncPasswdRequest, callback func(response *ModifyInstanceVncPasswdResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,10 +72,10 @@ func (client *Client) ModifyInstanceVncPasswdWithCallback(request *ModifyInstanc type ModifyInstanceVncPasswdRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` VncPassword string `position:"Query" name:"VncPassword"` } @@ -96,6 +91,7 @@ func CreateModifyInstanceVncPasswdRequest() (request *ModifyInstanceVncPasswdReq RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyInstanceVncPasswd", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_vpc_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_vpc_attribute.go index 6c4e510f..55c4d6a1 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_vpc_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_instance_vpc_attribute.go @@ -21,7 +21,6 @@ import ( ) // ModifyInstanceVpcAttribute invokes the ecs.ModifyInstanceVpcAttribute API synchronously -// api document: https://help.aliyun.com/api/ecs/modifyinstancevpcattribute.html func (client *Client) ModifyInstanceVpcAttribute(request *ModifyInstanceVpcAttributeRequest) (response *ModifyInstanceVpcAttributeResponse, err error) { response = CreateModifyInstanceVpcAttributeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifyInstanceVpcAttribute(request *ModifyInstanceVpcAttri } // ModifyInstanceVpcAttributeWithChan invokes the ecs.ModifyInstanceVpcAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyinstancevpcattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyInstanceVpcAttributeWithChan(request *ModifyInstanceVpcAttributeRequest) (<-chan *ModifyInstanceVpcAttributeResponse, <-chan error) { responseChan := make(chan *ModifyInstanceVpcAttributeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifyInstanceVpcAttributeWithChan(request *ModifyInstance } // ModifyInstanceVpcAttributeWithCallback invokes the ecs.ModifyInstanceVpcAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyinstancevpcattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyInstanceVpcAttributeWithCallback(request *ModifyInstanceVpcAttributeRequest, callback func(response *ModifyInstanceVpcAttributeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,13 +71,15 @@ func (client *Client) ModifyInstanceVpcAttributeWithCallback(request *ModifyInst // ModifyInstanceVpcAttributeRequest is the request struct for api ModifyInstanceVpcAttribute type ModifyInstanceVpcAttributeRequest struct { *requests.RpcRequest - VSwitchId string `position:"Query" name:"VSwitchId"` - PrivateIpAddress string `position:"Query" name:"PrivateIpAddress"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` + SecurityGroupId *[]string `position:"Query" name:"SecurityGroupId" type:"Repeated"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + VSwitchId string `position:"Query" name:"VSwitchId"` + PrivateIpAddress string `position:"Query" name:"PrivateIpAddress"` + InstanceId string `position:"Query" name:"InstanceId"` + VpcId string `position:"Query" name:"VpcId"` } // ModifyInstanceVpcAttributeResponse is the response struct for api ModifyInstanceVpcAttribute @@ -97,6 +94,7 @@ func CreateModifyInstanceVpcAttributeRequest() (request *ModifyInstanceVpcAttrib RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyInstanceVpcAttribute", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_launch_template_default_version.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_launch_template_default_version.go index ddb4db40..f961f313 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_launch_template_default_version.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_launch_template_default_version.go @@ -21,7 +21,6 @@ import ( ) // ModifyLaunchTemplateDefaultVersion invokes the ecs.ModifyLaunchTemplateDefaultVersion API synchronously -// api document: https://help.aliyun.com/api/ecs/modifylaunchtemplatedefaultversion.html func (client *Client) ModifyLaunchTemplateDefaultVersion(request *ModifyLaunchTemplateDefaultVersionRequest) (response *ModifyLaunchTemplateDefaultVersionResponse, err error) { response = CreateModifyLaunchTemplateDefaultVersionResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifyLaunchTemplateDefaultVersion(request *ModifyLaunchTe } // ModifyLaunchTemplateDefaultVersionWithChan invokes the ecs.ModifyLaunchTemplateDefaultVersion API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifylaunchtemplatedefaultversion.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyLaunchTemplateDefaultVersionWithChan(request *ModifyLaunchTemplateDefaultVersionRequest) (<-chan *ModifyLaunchTemplateDefaultVersionResponse, <-chan error) { responseChan := make(chan *ModifyLaunchTemplateDefaultVersionResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifyLaunchTemplateDefaultVersionWithChan(request *Modify } // ModifyLaunchTemplateDefaultVersionWithCallback invokes the ecs.ModifyLaunchTemplateDefaultVersion API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifylaunchtemplatedefaultversion.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyLaunchTemplateDefaultVersionWithCallback(request *ModifyLaunchTemplateDefaultVersionRequest, callback func(response *ModifyLaunchTemplateDefaultVersionResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -88,7 +83,8 @@ type ModifyLaunchTemplateDefaultVersionRequest struct { // ModifyLaunchTemplateDefaultVersionResponse is the response struct for api ModifyLaunchTemplateDefaultVersion type ModifyLaunchTemplateDefaultVersionResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` + RequestId string `json:"RequestId" xml:"RequestId"` + LaunchTemplateId string `json:"LaunchTemplateId" xml:"LaunchTemplateId"` } // CreateModifyLaunchTemplateDefaultVersionRequest creates a request to invoke ModifyLaunchTemplateDefaultVersion API @@ -97,6 +93,7 @@ func CreateModifyLaunchTemplateDefaultVersionRequest() (request *ModifyLaunchTem RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyLaunchTemplateDefaultVersion", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_managed_instance.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_managed_instance.go new file mode 100644 index 00000000..da4cd7cf --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_managed_instance.go @@ -0,0 +1,105 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyManagedInstance invokes the ecs.ModifyManagedInstance API synchronously +func (client *Client) ModifyManagedInstance(request *ModifyManagedInstanceRequest) (response *ModifyManagedInstanceResponse, err error) { + response = CreateModifyManagedInstanceResponse() + err = client.DoAction(request, response) + return +} + +// ModifyManagedInstanceWithChan invokes the ecs.ModifyManagedInstance API asynchronously +func (client *Client) ModifyManagedInstanceWithChan(request *ModifyManagedInstanceRequest) (<-chan *ModifyManagedInstanceResponse, <-chan error) { + responseChan := make(chan *ModifyManagedInstanceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyManagedInstance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyManagedInstanceWithCallback invokes the ecs.ModifyManagedInstance API asynchronously +func (client *Client) ModifyManagedInstanceWithCallback(request *ModifyManagedInstanceRequest, callback func(response *ModifyManagedInstanceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyManagedInstanceResponse + var err error + defer close(result) + response, err = client.ModifyManagedInstance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyManagedInstanceRequest is the request struct for api ModifyManagedInstance +type ModifyManagedInstanceRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + InstanceName string `position:"Query" name:"InstanceName"` +} + +// ModifyManagedInstanceResponse is the response struct for api ModifyManagedInstance +type ModifyManagedInstanceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Instance Instance `json:"Instance" xml:"Instance"` +} + +// CreateModifyManagedInstanceRequest creates a request to invoke ModifyManagedInstance API +func CreateModifyManagedInstanceRequest() (request *ModifyManagedInstanceRequest) { + request = &ModifyManagedInstanceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyManagedInstance", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateModifyManagedInstanceResponse creates a response to parse from ModifyManagedInstance response +func CreateModifyManagedInstanceResponse() (response *ModifyManagedInstanceResponse) { + response = &ModifyManagedInstanceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_network_interface_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_network_interface_attribute.go index 81620cc0..c291526d 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_network_interface_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_network_interface_attribute.go @@ -21,7 +21,6 @@ import ( ) // ModifyNetworkInterfaceAttribute invokes the ecs.ModifyNetworkInterfaceAttribute API synchronously -// api document: https://help.aliyun.com/api/ecs/modifynetworkinterfaceattribute.html func (client *Client) ModifyNetworkInterfaceAttribute(request *ModifyNetworkInterfaceAttributeRequest) (response *ModifyNetworkInterfaceAttributeResponse, err error) { response = CreateModifyNetworkInterfaceAttributeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifyNetworkInterfaceAttribute(request *ModifyNetworkInte } // ModifyNetworkInterfaceAttributeWithChan invokes the ecs.ModifyNetworkInterfaceAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifynetworkinterfaceattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyNetworkInterfaceAttributeWithChan(request *ModifyNetworkInterfaceAttributeRequest) (<-chan *ModifyNetworkInterfaceAttributeResponse, <-chan error) { responseChan := make(chan *ModifyNetworkInterfaceAttributeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifyNetworkInterfaceAttributeWithChan(request *ModifyNet } // ModifyNetworkInterfaceAttributeWithCallback invokes the ecs.ModifyNetworkInterfaceAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifynetworkinterfaceattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyNetworkInterfaceAttributeWithCallback(request *ModifyNetworkInterfaceAttributeRequest, callback func(response *ModifyNetworkInterfaceAttributeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,12 +71,16 @@ func (client *Client) ModifyNetworkInterfaceAttributeWithCallback(request *Modif // ModifyNetworkInterfaceAttributeRequest is the request struct for api ModifyNetworkInterfaceAttribute type ModifyNetworkInterfaceAttributeRequest struct { *requests.RpcRequest + QueueNumber requests.Integer `position:"Query" name:"QueueNumber"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` SecurityGroupId *[]string `position:"Query" name:"SecurityGroupId" type:"Repeated"` Description string `position:"Query" name:"Description"` NetworkInterfaceName string `position:"Query" name:"NetworkInterfaceName"` + TxQueueSize requests.Integer `position:"Query" name:"TxQueueSize"` + DeleteOnRelease requests.Boolean `position:"Query" name:"DeleteOnRelease"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` + RxQueueSize requests.Integer `position:"Query" name:"RxQueueSize"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` NetworkInterfaceId string `position:"Query" name:"NetworkInterfaceId"` } @@ -98,6 +97,7 @@ func CreateModifyNetworkInterfaceAttributeRequest() (request *ModifyNetworkInter RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyNetworkInterfaceAttribute", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_physical_connection_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_physical_connection_attribute.go index 728bde2c..667ba56a 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_physical_connection_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_physical_connection_attribute.go @@ -21,7 +21,6 @@ import ( ) // ModifyPhysicalConnectionAttribute invokes the ecs.ModifyPhysicalConnectionAttribute API synchronously -// api document: https://help.aliyun.com/api/ecs/modifyphysicalconnectionattribute.html func (client *Client) ModifyPhysicalConnectionAttribute(request *ModifyPhysicalConnectionAttributeRequest) (response *ModifyPhysicalConnectionAttributeResponse, err error) { response = CreateModifyPhysicalConnectionAttributeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifyPhysicalConnectionAttribute(request *ModifyPhysicalC } // ModifyPhysicalConnectionAttributeWithChan invokes the ecs.ModifyPhysicalConnectionAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyphysicalconnectionattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyPhysicalConnectionAttributeWithChan(request *ModifyPhysicalConnectionAttributeRequest) (<-chan *ModifyPhysicalConnectionAttributeResponse, <-chan error) { responseChan := make(chan *ModifyPhysicalConnectionAttributeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifyPhysicalConnectionAttributeWithChan(request *ModifyP } // ModifyPhysicalConnectionAttributeWithCallback invokes the ecs.ModifyPhysicalConnectionAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyphysicalconnectionattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyPhysicalConnectionAttributeWithCallback(request *ModifyPhysicalConnectionAttributeRequest, callback func(response *ModifyPhysicalConnectionAttributeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,21 +71,21 @@ func (client *Client) ModifyPhysicalConnectionAttributeWithCallback(request *Mod // ModifyPhysicalConnectionAttributeRequest is the request struct for api ModifyPhysicalConnectionAttribute type ModifyPhysicalConnectionAttributeRequest struct { *requests.RpcRequest - RedundantPhysicalConnectionId string `position:"Query" name:"RedundantPhysicalConnectionId"` - PeerLocation string `position:"Query" name:"PeerLocation"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` PortType string `position:"Query" name:"PortType"` CircuitCode string `position:"Query" name:"CircuitCode"` - Bandwidth requests.Integer `position:"Query" name:"bandwidth"` ClientToken string `position:"Query" name:"ClientToken"` + Description string `position:"Query" name:"Description"` + UserCidr string `position:"Query" name:"UserCidr"` + RedundantPhysicalConnectionId string `position:"Query" name:"RedundantPhysicalConnectionId"` + PeerLocation string `position:"Query" name:"PeerLocation"` + Bandwidth requests.Integer `position:"Query" name:"bandwidth"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - Description string `position:"Query" name:"Description"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` LineOperator string `position:"Query" name:"LineOperator"` PhysicalConnectionId string `position:"Query" name:"PhysicalConnectionId"` Name string `position:"Query" name:"Name"` - UserCidr string `position:"Query" name:"UserCidr"` } // ModifyPhysicalConnectionAttributeResponse is the response struct for api ModifyPhysicalConnectionAttribute @@ -105,6 +100,7 @@ func CreateModifyPhysicalConnectionAttributeRequest() (request *ModifyPhysicalCo RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyPhysicalConnectionAttribute", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_prefix_list.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_prefix_list.go new file mode 100644 index 00000000..9fa6315c --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_prefix_list.go @@ -0,0 +1,118 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyPrefixList invokes the ecs.ModifyPrefixList API synchronously +func (client *Client) ModifyPrefixList(request *ModifyPrefixListRequest) (response *ModifyPrefixListResponse, err error) { + response = CreateModifyPrefixListResponse() + err = client.DoAction(request, response) + return +} + +// ModifyPrefixListWithChan invokes the ecs.ModifyPrefixList API asynchronously +func (client *Client) ModifyPrefixListWithChan(request *ModifyPrefixListRequest) (<-chan *ModifyPrefixListResponse, <-chan error) { + responseChan := make(chan *ModifyPrefixListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyPrefixList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyPrefixListWithCallback invokes the ecs.ModifyPrefixList API asynchronously +func (client *Client) ModifyPrefixListWithCallback(request *ModifyPrefixListRequest, callback func(response *ModifyPrefixListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyPrefixListResponse + var err error + defer close(result) + response, err = client.ModifyPrefixList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyPrefixListRequest is the request struct for api ModifyPrefixList +type ModifyPrefixListRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Description string `position:"Query" name:"Description"` + PrefixListId string `position:"Query" name:"PrefixListId"` + AddEntry *[]ModifyPrefixListAddEntry `position:"Query" name:"AddEntry" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PrefixListName string `position:"Query" name:"PrefixListName"` + RemoveEntry *[]ModifyPrefixListRemoveEntry `position:"Query" name:"RemoveEntry" type:"Repeated"` +} + +// ModifyPrefixListAddEntry is a repeated param struct in ModifyPrefixListRequest +type ModifyPrefixListAddEntry struct { + Description string `name:"Description"` + Cidr string `name:"Cidr"` +} + +// ModifyPrefixListRemoveEntry is a repeated param struct in ModifyPrefixListRequest +type ModifyPrefixListRemoveEntry struct { + Cidr string `name:"Cidr"` +} + +// ModifyPrefixListResponse is the response struct for api ModifyPrefixList +type ModifyPrefixListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyPrefixListRequest creates a request to invoke ModifyPrefixList API +func CreateModifyPrefixListRequest() (request *ModifyPrefixListRequest) { + request = &ModifyPrefixListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyPrefixList", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateModifyPrefixListResponse creates a response to parse from ModifyPrefixList response +func CreateModifyPrefixListResponse() (response *ModifyPrefixListResponse) { + response = &ModifyPrefixListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_prepay_instance_spec.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_prepay_instance_spec.go index 3e10cebb..8be39295 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_prepay_instance_spec.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_prepay_instance_spec.go @@ -21,7 +21,6 @@ import ( ) // ModifyPrepayInstanceSpec invokes the ecs.ModifyPrepayInstanceSpec API synchronously -// api document: https://help.aliyun.com/api/ecs/modifyprepayinstancespec.html func (client *Client) ModifyPrepayInstanceSpec(request *ModifyPrepayInstanceSpecRequest) (response *ModifyPrepayInstanceSpecResponse, err error) { response = CreateModifyPrepayInstanceSpecResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifyPrepayInstanceSpec(request *ModifyPrepayInstanceSpec } // ModifyPrepayInstanceSpecWithChan invokes the ecs.ModifyPrepayInstanceSpec API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyprepayinstancespec.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyPrepayInstanceSpecWithChan(request *ModifyPrepayInstanceSpecRequest) (<-chan *ModifyPrepayInstanceSpecResponse, <-chan error) { responseChan := make(chan *ModifyPrepayInstanceSpecResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifyPrepayInstanceSpecWithChan(request *ModifyPrepayInst } // ModifyPrepayInstanceSpecWithCallback invokes the ecs.ModifyPrepayInstanceSpec API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyprepayinstancespec.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyPrepayInstanceSpecWithCallback(request *ModifyPrepayInstanceSpecRequest, callback func(response *ModifyPrepayInstanceSpecResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,26 +71,43 @@ func (client *Client) ModifyPrepayInstanceSpecWithCallback(request *ModifyPrepay // ModifyPrepayInstanceSpecRequest is the request struct for api ModifyPrepayInstanceSpec type ModifyPrepayInstanceSpecRequest struct { *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - AutoPay requests.Boolean `position:"Query" name:"AutoPay"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - ClientToken string `position:"Query" name:"ClientToken"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - EndTime string `position:"Query" name:"EndTime"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - OperatorType string `position:"Query" name:"OperatorType"` - SystemDiskCategory string `position:"Query" name:"SystemDisk.Category"` - RebootTime string `position:"Query" name:"RebootTime"` - InstanceId string `position:"Query" name:"InstanceId"` - MigrateAcrossZone requests.Boolean `position:"Query" name:"MigrateAcrossZone"` - InstanceType string `position:"Query" name:"InstanceType"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + CouponNo string `position:"Query" name:"CouponNo"` + OperatorType string `position:"Query" name:"OperatorType"` + SystemDiskCategory string `position:"Query" name:"SystemDisk.Category"` + RebootTime string `position:"Query" name:"RebootTime"` + MigrateAcrossZone requests.Boolean `position:"Query" name:"MigrateAcrossZone"` + InstanceType string `position:"Query" name:"InstanceType"` + ModifyMode string `position:"Query" name:"ModifyMode"` + AutoPay requests.Boolean `position:"Query" name:"AutoPay"` + RebootWhenFinished requests.Boolean `position:"Query" name:"RebootWhenFinished"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + EndTime string `position:"Query" name:"EndTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PromotionOptions ModifyPrepayInstanceSpecPromotionOptions `position:"Query" name:"PromotionOptions" type:"Struct"` + Disk *[]ModifyPrepayInstanceSpecDisk `position:"Query" name:"Disk" type:"Repeated"` + InstanceId string `position:"Query" name:"InstanceId"` +} + +// ModifyPrepayInstanceSpecPromotionOptions is a repeated param struct in ModifyPrepayInstanceSpecRequest +type ModifyPrepayInstanceSpecPromotionOptions struct { + CouponNo string `name:"CouponNo"` +} + +// ModifyPrepayInstanceSpecDisk is a repeated param struct in ModifyPrepayInstanceSpecRequest +type ModifyPrepayInstanceSpecDisk struct { + PerformanceLevel string `name:"PerformanceLevel"` + DiskId string `name:"DiskId"` + Category string `name:"Category"` } // ModifyPrepayInstanceSpecResponse is the response struct for api ModifyPrepayInstanceSpec type ModifyPrepayInstanceSpecResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` OrderId string `json:"OrderId" xml:"OrderId"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateModifyPrepayInstanceSpecRequest creates a request to invoke ModifyPrepayInstanceSpec API @@ -104,6 +116,7 @@ func CreateModifyPrepayInstanceSpecRequest() (request *ModifyPrepayInstanceSpecR RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyPrepayInstanceSpec", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_reserved_instance_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_reserved_instance_attribute.go index 57f12d2d..cd1b1c75 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_reserved_instance_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_reserved_instance_attribute.go @@ -21,7 +21,6 @@ import ( ) // ModifyReservedInstanceAttribute invokes the ecs.ModifyReservedInstanceAttribute API synchronously -// api document: https://help.aliyun.com/api/ecs/modifyreservedinstanceattribute.html func (client *Client) ModifyReservedInstanceAttribute(request *ModifyReservedInstanceAttributeRequest) (response *ModifyReservedInstanceAttributeResponse, err error) { response = CreateModifyReservedInstanceAttributeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifyReservedInstanceAttribute(request *ModifyReservedIns } // ModifyReservedInstanceAttributeWithChan invokes the ecs.ModifyReservedInstanceAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyreservedinstanceattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyReservedInstanceAttributeWithChan(request *ModifyReservedInstanceAttributeRequest) (<-chan *ModifyReservedInstanceAttributeResponse, <-chan error) { responseChan := make(chan *ModifyReservedInstanceAttributeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifyReservedInstanceAttributeWithChan(request *ModifyRes } // ModifyReservedInstanceAttributeWithCallback invokes the ecs.ModifyReservedInstanceAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyreservedinstanceattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyReservedInstanceAttributeWithCallback(request *ModifyReservedInstanceAttributeRequest, callback func(response *ModifyReservedInstanceAttributeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -88,10 +83,10 @@ type ModifyReservedInstanceAttributeRequest struct { // ModifyReservedInstanceAttributeResponse is the response struct for api ModifyReservedInstanceAttribute type ModifyReservedInstanceAttributeResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` Code string `json:"Code" xml:"Code"` Message string `json:"Message" xml:"Message"` - HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateModifyReservedInstanceAttributeRequest creates a request to invoke ModifyReservedInstanceAttribute API @@ -100,6 +95,7 @@ func CreateModifyReservedInstanceAttributeRequest() (request *ModifyReservedInst RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyReservedInstanceAttribute", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_reserved_instance_auto_renew_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_reserved_instance_auto_renew_attribute.go new file mode 100644 index 00000000..b03d7c27 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_reserved_instance_auto_renew_attribute.go @@ -0,0 +1,106 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyReservedInstanceAutoRenewAttribute invokes the ecs.ModifyReservedInstanceAutoRenewAttribute API synchronously +func (client *Client) ModifyReservedInstanceAutoRenewAttribute(request *ModifyReservedInstanceAutoRenewAttributeRequest) (response *ModifyReservedInstanceAutoRenewAttributeResponse, err error) { + response = CreateModifyReservedInstanceAutoRenewAttributeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyReservedInstanceAutoRenewAttributeWithChan invokes the ecs.ModifyReservedInstanceAutoRenewAttribute API asynchronously +func (client *Client) ModifyReservedInstanceAutoRenewAttributeWithChan(request *ModifyReservedInstanceAutoRenewAttributeRequest) (<-chan *ModifyReservedInstanceAutoRenewAttributeResponse, <-chan error) { + responseChan := make(chan *ModifyReservedInstanceAutoRenewAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyReservedInstanceAutoRenewAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyReservedInstanceAutoRenewAttributeWithCallback invokes the ecs.ModifyReservedInstanceAutoRenewAttribute API asynchronously +func (client *Client) ModifyReservedInstanceAutoRenewAttributeWithCallback(request *ModifyReservedInstanceAutoRenewAttributeRequest, callback func(response *ModifyReservedInstanceAutoRenewAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyReservedInstanceAutoRenewAttributeResponse + var err error + defer close(result) + response, err = client.ModifyReservedInstanceAutoRenewAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyReservedInstanceAutoRenewAttributeRequest is the request struct for api ModifyReservedInstanceAutoRenewAttribute +type ModifyReservedInstanceAutoRenewAttributeRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + RenewalStatus string `position:"Query" name:"RenewalStatus"` + Period requests.Integer `position:"Query" name:"Period"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PeriodUnit string `position:"Query" name:"PeriodUnit"` + ReservedInstanceId *[]string `position:"Query" name:"ReservedInstanceId" type:"Repeated"` +} + +// ModifyReservedInstanceAutoRenewAttributeResponse is the response struct for api ModifyReservedInstanceAutoRenewAttribute +type ModifyReservedInstanceAutoRenewAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyReservedInstanceAutoRenewAttributeRequest creates a request to invoke ModifyReservedInstanceAutoRenewAttribute API +func CreateModifyReservedInstanceAutoRenewAttributeRequest() (request *ModifyReservedInstanceAutoRenewAttributeRequest) { + request = &ModifyReservedInstanceAutoRenewAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyReservedInstanceAutoRenewAttribute", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateModifyReservedInstanceAutoRenewAttributeResponse creates a response to parse from ModifyReservedInstanceAutoRenewAttribute response +func CreateModifyReservedInstanceAutoRenewAttributeResponse() (response *ModifyReservedInstanceAutoRenewAttributeResponse) { + response = &ModifyReservedInstanceAutoRenewAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_reserved_instances.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_reserved_instances.go index 29c4ca39..513fecce 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_reserved_instances.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_reserved_instances.go @@ -21,7 +21,6 @@ import ( ) // ModifyReservedInstances invokes the ecs.ModifyReservedInstances API synchronously -// api document: https://help.aliyun.com/api/ecs/modifyreservedinstances.html func (client *Client) ModifyReservedInstances(request *ModifyReservedInstancesRequest) (response *ModifyReservedInstancesResponse, err error) { response = CreateModifyReservedInstancesResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifyReservedInstances(request *ModifyReservedInstancesRe } // ModifyReservedInstancesWithChan invokes the ecs.ModifyReservedInstances API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyreservedinstances.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyReservedInstancesWithChan(request *ModifyReservedInstancesRequest) (<-chan *ModifyReservedInstancesResponse, <-chan error) { responseChan := make(chan *ModifyReservedInstancesResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifyReservedInstancesWithChan(request *ModifyReservedIns } // ModifyReservedInstancesWithCallback invokes the ecs.ModifyReservedInstances API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyreservedinstances.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyReservedInstancesWithCallback(request *ModifyReservedInstancesRequest, callback func(response *ModifyReservedInstancesResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -86,10 +81,10 @@ type ModifyReservedInstancesRequest struct { // ModifyReservedInstancesConfiguration is a repeated param struct in ModifyReservedInstancesRequest type ModifyReservedInstancesConfiguration struct { - ZoneId string `name:"ZoneId"` ReservedInstanceName string `name:"ReservedInstanceName"` - InstanceType string `name:"InstanceType"` + ZoneId string `name:"ZoneId"` Scope string `name:"Scope"` + InstanceType string `name:"InstanceType"` InstanceAmount string `name:"InstanceAmount"` } @@ -106,6 +101,7 @@ func CreateModifyReservedInstancesRequest() (request *ModifyReservedInstancesReq RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyReservedInstances", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_router_interface_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_router_interface_attribute.go index db09fb58..5ae2eaf2 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_router_interface_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_router_interface_attribute.go @@ -21,7 +21,6 @@ import ( ) // ModifyRouterInterfaceAttribute invokes the ecs.ModifyRouterInterfaceAttribute API synchronously -// api document: https://help.aliyun.com/api/ecs/modifyrouterinterfaceattribute.html func (client *Client) ModifyRouterInterfaceAttribute(request *ModifyRouterInterfaceAttributeRequest) (response *ModifyRouterInterfaceAttributeResponse, err error) { response = CreateModifyRouterInterfaceAttributeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifyRouterInterfaceAttribute(request *ModifyRouterInterf } // ModifyRouterInterfaceAttributeWithChan invokes the ecs.ModifyRouterInterfaceAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyrouterinterfaceattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyRouterInterfaceAttributeWithChan(request *ModifyRouterInterfaceAttributeRequest) (<-chan *ModifyRouterInterfaceAttributeResponse, <-chan error) { responseChan := make(chan *ModifyRouterInterfaceAttributeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifyRouterInterfaceAttributeWithChan(request *ModifyRout } // ModifyRouterInterfaceAttributeWithCallback invokes the ecs.ModifyRouterInterfaceAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyrouterinterfaceattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyRouterInterfaceAttributeWithCallback(request *ModifyRouterInterfaceAttributeRequest, callback func(response *ModifyRouterInterfaceAttributeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -78,16 +73,16 @@ type ModifyRouterInterfaceAttributeRequest struct { *requests.RpcRequest OppositeRouterId string `position:"Query" name:"OppositeRouterId"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` Description string `position:"Query" name:"Description"` HealthCheckTargetIp string `position:"Query" name:"HealthCheckTargetIp"` + OppositeInterfaceId string `position:"Query" name:"OppositeInterfaceId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` RouterInterfaceId string `position:"Query" name:"RouterInterfaceId"` OppositeInterfaceOwnerId requests.Integer `position:"Query" name:"OppositeInterfaceOwnerId"` HealthCheckSourceIp string `position:"Query" name:"HealthCheckSourceIp"` Name string `position:"Query" name:"Name"` OppositeRouterType string `position:"Query" name:"OppositeRouterType"` - OppositeInterfaceId string `position:"Query" name:"OppositeInterfaceId"` } // ModifyRouterInterfaceAttributeResponse is the response struct for api ModifyRouterInterfaceAttribute @@ -102,6 +97,7 @@ func CreateModifyRouterInterfaceAttributeRequest() (request *ModifyRouterInterfa RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyRouterInterfaceAttribute", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_router_interface_spec.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_router_interface_spec.go index 044e5e91..8b363de2 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_router_interface_spec.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_router_interface_spec.go @@ -21,7 +21,6 @@ import ( ) // ModifyRouterInterfaceSpec invokes the ecs.ModifyRouterInterfaceSpec API synchronously -// api document: https://help.aliyun.com/api/ecs/modifyrouterinterfacespec.html func (client *Client) ModifyRouterInterfaceSpec(request *ModifyRouterInterfaceSpecRequest) (response *ModifyRouterInterfaceSpecResponse, err error) { response = CreateModifyRouterInterfaceSpecResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifyRouterInterfaceSpec(request *ModifyRouterInterfaceSp } // ModifyRouterInterfaceSpecWithChan invokes the ecs.ModifyRouterInterfaceSpec API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyrouterinterfacespec.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyRouterInterfaceSpecWithChan(request *ModifyRouterInterfaceSpecRequest) (<-chan *ModifyRouterInterfaceSpecResponse, <-chan error) { responseChan := make(chan *ModifyRouterInterfaceSpecResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifyRouterInterfaceSpecWithChan(request *ModifyRouterInt } // ModifyRouterInterfaceSpecWithCallback invokes the ecs.ModifyRouterInterfaceSpec API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyrouterinterfacespec.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyRouterInterfaceSpecWithCallback(request *ModifyRouterInterfaceSpecRequest, callback func(response *ModifyRouterInterfaceSpecResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,20 +72,20 @@ func (client *Client) ModifyRouterInterfaceSpecWithCallback(request *ModifyRoute type ModifyRouterInterfaceSpecRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` ClientToken string `position:"Query" name:"ClientToken"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` + Spec string `position:"Query" name:"Spec"` UserCidr string `position:"Query" name:"UserCidr"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` RouterInterfaceId string `position:"Query" name:"RouterInterfaceId"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Spec string `position:"Query" name:"Spec"` } // ModifyRouterInterfaceSpecResponse is the response struct for api ModifyRouterInterfaceSpec type ModifyRouterInterfaceSpecResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` Spec string `json:"Spec" xml:"Spec"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateModifyRouterInterfaceSpecRequest creates a request to invoke ModifyRouterInterfaceSpec API @@ -99,6 +94,7 @@ func CreateModifyRouterInterfaceSpecRequest() (request *ModifyRouterInterfaceSpe RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyRouterInterfaceSpec", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_attribute.go index 4f01612d..17958651 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_attribute.go @@ -21,7 +21,6 @@ import ( ) // ModifySecurityGroupAttribute invokes the ecs.ModifySecurityGroupAttribute API synchronously -// api document: https://help.aliyun.com/api/ecs/modifysecuritygroupattribute.html func (client *Client) ModifySecurityGroupAttribute(request *ModifySecurityGroupAttributeRequest) (response *ModifySecurityGroupAttributeResponse, err error) { response = CreateModifySecurityGroupAttributeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifySecurityGroupAttribute(request *ModifySecurityGroupA } // ModifySecurityGroupAttributeWithChan invokes the ecs.ModifySecurityGroupAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifysecuritygroupattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifySecurityGroupAttributeWithChan(request *ModifySecurityGroupAttributeRequest) (<-chan *ModifySecurityGroupAttributeResponse, <-chan error) { responseChan := make(chan *ModifySecurityGroupAttributeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifySecurityGroupAttributeWithChan(request *ModifySecuri } // ModifySecurityGroupAttributeWithCallback invokes the ecs.ModifySecurityGroupAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifysecuritygroupattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifySecurityGroupAttributeWithCallback(request *ModifySecurityGroupAttributeRequest, callback func(response *ModifySecurityGroupAttributeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,12 +72,12 @@ func (client *Client) ModifySecurityGroupAttributeWithCallback(request *ModifySe type ModifySecurityGroupAttributeRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` SecurityGroupId string `position:"Query" name:"SecurityGroupId"` Description string `position:"Query" name:"Description"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` SecurityGroupName string `position:"Query" name:"SecurityGroupName"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` } // ModifySecurityGroupAttributeResponse is the response struct for api ModifySecurityGroupAttribute @@ -97,6 +92,7 @@ func CreateModifySecurityGroupAttributeRequest() (request *ModifySecurityGroupAt RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ModifySecurityGroupAttribute", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_egress_rule.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_egress_rule.go index 5b1bb177..46ed0539 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_egress_rule.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_egress_rule.go @@ -21,7 +21,6 @@ import ( ) // ModifySecurityGroupEgressRule invokes the ecs.ModifySecurityGroupEgressRule API synchronously -// api document: https://help.aliyun.com/api/ecs/modifysecuritygroupegressrule.html func (client *Client) ModifySecurityGroupEgressRule(request *ModifySecurityGroupEgressRuleRequest) (response *ModifySecurityGroupEgressRuleResponse, err error) { response = CreateModifySecurityGroupEgressRuleResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifySecurityGroupEgressRule(request *ModifySecurityGroup } // ModifySecurityGroupEgressRuleWithChan invokes the ecs.ModifySecurityGroupEgressRule API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifysecuritygroupegressrule.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifySecurityGroupEgressRuleWithChan(request *ModifySecurityGroupEgressRuleRequest) (<-chan *ModifySecurityGroupEgressRuleResponse, <-chan error) { responseChan := make(chan *ModifySecurityGroupEgressRuleResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifySecurityGroupEgressRuleWithChan(request *ModifySecur } // ModifySecurityGroupEgressRuleWithCallback invokes the ecs.ModifySecurityGroupEgressRule API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifysecuritygroupegressrule.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifySecurityGroupEgressRuleWithCallback(request *ModifySecurityGroupEgressRuleRequest, callback func(response *ModifySecurityGroupEgressRuleResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -80,11 +75,12 @@ type ModifySecurityGroupEgressRuleRequest struct { ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` SourcePortRange string `position:"Query" name:"SourcePortRange"` ClientToken string `position:"Query" name:"ClientToken"` + DestPrefixListId string `position:"Query" name:"DestPrefixListId"` SecurityGroupId string `position:"Query" name:"SecurityGroupId"` Description string `position:"Query" name:"Description"` + Policy string `position:"Query" name:"Policy"` Ipv6DestCidrIp string `position:"Query" name:"Ipv6DestCidrIp"` Ipv6SourceCidrIp string `position:"Query" name:"Ipv6SourceCidrIp"` - Policy string `position:"Query" name:"Policy"` PortRange string `position:"Query" name:"PortRange"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` IpProtocol string `position:"Query" name:"IpProtocol"` @@ -92,10 +88,11 @@ type ModifySecurityGroupEgressRuleRequest struct { SourceCidrIp string `position:"Query" name:"SourceCidrIp"` DestGroupId string `position:"Query" name:"DestGroupId"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - DestGroupOwnerAccount string `position:"Query" name:"DestGroupOwnerAccount"` Priority string `position:"Query" name:"Priority"` + DestGroupOwnerAccount string `position:"Query" name:"DestGroupOwnerAccount"` DestCidrIp string `position:"Query" name:"DestCidrIp"` DestGroupOwnerId requests.Integer `position:"Query" name:"DestGroupOwnerId"` + SecurityGroupRuleId string `position:"Query" name:"SecurityGroupRuleId"` } // ModifySecurityGroupEgressRuleResponse is the response struct for api ModifySecurityGroupEgressRule @@ -110,6 +107,7 @@ func CreateModifySecurityGroupEgressRuleRequest() (request *ModifySecurityGroupE RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ModifySecurityGroupEgressRule", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_policy.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_policy.go index e9eeaed8..9f045fe6 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_policy.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_policy.go @@ -21,7 +21,6 @@ import ( ) // ModifySecurityGroupPolicy invokes the ecs.ModifySecurityGroupPolicy API synchronously -// api document: https://help.aliyun.com/api/ecs/modifysecuritygrouppolicy.html func (client *Client) ModifySecurityGroupPolicy(request *ModifySecurityGroupPolicyRequest) (response *ModifySecurityGroupPolicyResponse, err error) { response = CreateModifySecurityGroupPolicyResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifySecurityGroupPolicy(request *ModifySecurityGroupPoli } // ModifySecurityGroupPolicyWithChan invokes the ecs.ModifySecurityGroupPolicy API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifysecuritygrouppolicy.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifySecurityGroupPolicyWithChan(request *ModifySecurityGroupPolicyRequest) (<-chan *ModifySecurityGroupPolicyResponse, <-chan error) { responseChan := make(chan *ModifySecurityGroupPolicyResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifySecurityGroupPolicyWithChan(request *ModifySecurityG } // ModifySecurityGroupPolicyWithCallback invokes the ecs.ModifySecurityGroupPolicy API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifysecuritygrouppolicy.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifySecurityGroupPolicyWithCallback(request *ModifySecurityGroupPolicyRequest, callback func(response *ModifySecurityGroupPolicyResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -78,11 +73,11 @@ type ModifySecurityGroupPolicyRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` ClientToken string `position:"Query" name:"ClientToken"` + SecurityGroupId string `position:"Query" name:"SecurityGroupId"` + InnerAccessPolicy string `position:"Query" name:"InnerAccessPolicy"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - SecurityGroupId string `position:"Query" name:"SecurityGroupId"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - InnerAccessPolicy string `position:"Query" name:"InnerAccessPolicy"` } // ModifySecurityGroupPolicyResponse is the response struct for api ModifySecurityGroupPolicy @@ -97,6 +92,7 @@ func CreateModifySecurityGroupPolicyRequest() (request *ModifySecurityGroupPolic RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ModifySecurityGroupPolicy", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_rule.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_rule.go index d298fb81..b1b2ede6 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_rule.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_security_group_rule.go @@ -21,7 +21,6 @@ import ( ) // ModifySecurityGroupRule invokes the ecs.ModifySecurityGroupRule API synchronously -// api document: https://help.aliyun.com/api/ecs/modifysecuritygrouprule.html func (client *Client) ModifySecurityGroupRule(request *ModifySecurityGroupRuleRequest) (response *ModifySecurityGroupRuleResponse, err error) { response = CreateModifySecurityGroupRuleResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifySecurityGroupRule(request *ModifySecurityGroupRuleRe } // ModifySecurityGroupRuleWithChan invokes the ecs.ModifySecurityGroupRule API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifysecuritygrouprule.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifySecurityGroupRuleWithChan(request *ModifySecurityGroupRuleRequest) (<-chan *ModifySecurityGroupRuleResponse, <-chan error) { responseChan := make(chan *ModifySecurityGroupRuleResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifySecurityGroupRuleWithChan(request *ModifySecurityGro } // ModifySecurityGroupRuleWithCallback invokes the ecs.ModifySecurityGroupRule API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifysecuritygrouprule.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifySecurityGroupRuleWithCallback(request *ModifySecurityGroupRuleRequest, callback func(response *ModifySecurityGroupRuleResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -78,15 +73,16 @@ type ModifySecurityGroupRuleRequest struct { *requests.RpcRequest NicType string `position:"Query" name:"NicType"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SourcePrefixListId string `position:"Query" name:"SourcePrefixListId"` SourcePortRange string `position:"Query" name:"SourcePortRange"` ClientToken string `position:"Query" name:"ClientToken"` SecurityGroupId string `position:"Query" name:"SecurityGroupId"` Description string `position:"Query" name:"Description"` SourceGroupOwnerId requests.Integer `position:"Query" name:"SourceGroupOwnerId"` SourceGroupOwnerAccount string `position:"Query" name:"SourceGroupOwnerAccount"` + Policy string `position:"Query" name:"Policy"` Ipv6SourceCidrIp string `position:"Query" name:"Ipv6SourceCidrIp"` Ipv6DestCidrIp string `position:"Query" name:"Ipv6DestCidrIp"` - Policy string `position:"Query" name:"Policy"` PortRange string `position:"Query" name:"PortRange"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` IpProtocol string `position:"Query" name:"IpProtocol"` @@ -96,6 +92,7 @@ type ModifySecurityGroupRuleRequest struct { Priority string `position:"Query" name:"Priority"` DestCidrIp string `position:"Query" name:"DestCidrIp"` SourceGroupId string `position:"Query" name:"SourceGroupId"` + SecurityGroupRuleId string `position:"Query" name:"SecurityGroupRuleId"` } // ModifySecurityGroupRuleResponse is the response struct for api ModifySecurityGroupRule @@ -110,6 +107,7 @@ func CreateModifySecurityGroupRuleRequest() (request *ModifySecurityGroupRuleReq RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ModifySecurityGroupRule", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_snapshot_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_snapshot_attribute.go index 3b179638..6b2af4ca 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_snapshot_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_snapshot_attribute.go @@ -21,7 +21,6 @@ import ( ) // ModifySnapshotAttribute invokes the ecs.ModifySnapshotAttribute API synchronously -// api document: https://help.aliyun.com/api/ecs/modifysnapshotattribute.html func (client *Client) ModifySnapshotAttribute(request *ModifySnapshotAttributeRequest) (response *ModifySnapshotAttributeResponse, err error) { response = CreateModifySnapshotAttributeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifySnapshotAttribute(request *ModifySnapshotAttributeRe } // ModifySnapshotAttributeWithChan invokes the ecs.ModifySnapshotAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifysnapshotattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifySnapshotAttributeWithChan(request *ModifySnapshotAttributeRequest) (<-chan *ModifySnapshotAttributeResponse, <-chan error) { responseChan := make(chan *ModifySnapshotAttributeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifySnapshotAttributeWithChan(request *ModifySnapshotAtt } // ModifySnapshotAttributeWithCallback invokes the ecs.ModifySnapshotAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifysnapshotattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifySnapshotAttributeWithCallback(request *ModifySnapshotAttributeRequest, callback func(response *ModifySnapshotAttributeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -78,11 +73,13 @@ type ModifySnapshotAttributeRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` SnapshotId string `position:"Query" name:"SnapshotId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` Description string `position:"Query" name:"Description"` SnapshotName string `position:"Query" name:"SnapshotName"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + DisableInstantAccess requests.Boolean `position:"Query" name:"DisableInstantAccess"` + RetentionDays requests.Integer `position:"Query" name:"RetentionDays"` } // ModifySnapshotAttributeResponse is the response struct for api ModifySnapshotAttribute @@ -97,6 +94,7 @@ func CreateModifySnapshotAttributeRequest() (request *ModifySnapshotAttributeReq RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ModifySnapshotAttribute", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_snapshot_group.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_snapshot_group.go new file mode 100644 index 00000000..50398fdb --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_snapshot_group.go @@ -0,0 +1,105 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifySnapshotGroup invokes the ecs.ModifySnapshotGroup API synchronously +func (client *Client) ModifySnapshotGroup(request *ModifySnapshotGroupRequest) (response *ModifySnapshotGroupResponse, err error) { + response = CreateModifySnapshotGroupResponse() + err = client.DoAction(request, response) + return +} + +// ModifySnapshotGroupWithChan invokes the ecs.ModifySnapshotGroup API asynchronously +func (client *Client) ModifySnapshotGroupWithChan(request *ModifySnapshotGroupRequest) (<-chan *ModifySnapshotGroupResponse, <-chan error) { + responseChan := make(chan *ModifySnapshotGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifySnapshotGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifySnapshotGroupWithCallback invokes the ecs.ModifySnapshotGroup API asynchronously +func (client *Client) ModifySnapshotGroupWithCallback(request *ModifySnapshotGroupRequest, callback func(response *ModifySnapshotGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifySnapshotGroupResponse + var err error + defer close(result) + response, err = client.ModifySnapshotGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifySnapshotGroupRequest is the request struct for api ModifySnapshotGroup +type ModifySnapshotGroupRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Description string `position:"Query" name:"Description"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + SnapshotGroupId string `position:"Query" name:"SnapshotGroupId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Name string `position:"Query" name:"Name"` +} + +// ModifySnapshotGroupResponse is the response struct for api ModifySnapshotGroup +type ModifySnapshotGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifySnapshotGroupRequest creates a request to invoke ModifySnapshotGroup API +func CreateModifySnapshotGroupRequest() (request *ModifySnapshotGroupRequest) { + request = &ModifySnapshotGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifySnapshotGroup", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateModifySnapshotGroupResponse creates a response to parse from ModifySnapshotGroup response +func CreateModifySnapshotGroupResponse() (response *ModifySnapshotGroupResponse) { + response = &ModifySnapshotGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_storage_capacity_unit_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_storage_capacity_unit_attribute.go new file mode 100644 index 00000000..594ef9b6 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_storage_capacity_unit_attribute.go @@ -0,0 +1,105 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyStorageCapacityUnitAttribute invokes the ecs.ModifyStorageCapacityUnitAttribute API synchronously +func (client *Client) ModifyStorageCapacityUnitAttribute(request *ModifyStorageCapacityUnitAttributeRequest) (response *ModifyStorageCapacityUnitAttributeResponse, err error) { + response = CreateModifyStorageCapacityUnitAttributeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyStorageCapacityUnitAttributeWithChan invokes the ecs.ModifyStorageCapacityUnitAttribute API asynchronously +func (client *Client) ModifyStorageCapacityUnitAttributeWithChan(request *ModifyStorageCapacityUnitAttributeRequest) (<-chan *ModifyStorageCapacityUnitAttributeResponse, <-chan error) { + responseChan := make(chan *ModifyStorageCapacityUnitAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyStorageCapacityUnitAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyStorageCapacityUnitAttributeWithCallback invokes the ecs.ModifyStorageCapacityUnitAttribute API asynchronously +func (client *Client) ModifyStorageCapacityUnitAttributeWithCallback(request *ModifyStorageCapacityUnitAttributeRequest, callback func(response *ModifyStorageCapacityUnitAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyStorageCapacityUnitAttributeResponse + var err error + defer close(result) + response, err = client.ModifyStorageCapacityUnitAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyStorageCapacityUnitAttributeRequest is the request struct for api ModifyStorageCapacityUnitAttribute +type ModifyStorageCapacityUnitAttributeRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Description string `position:"Query" name:"Description"` + StorageCapacityUnitId string `position:"Query" name:"StorageCapacityUnitId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Name string `position:"Query" name:"Name"` +} + +// ModifyStorageCapacityUnitAttributeResponse is the response struct for api ModifyStorageCapacityUnitAttribute +type ModifyStorageCapacityUnitAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyStorageCapacityUnitAttributeRequest creates a request to invoke ModifyStorageCapacityUnitAttribute API +func CreateModifyStorageCapacityUnitAttributeRequest() (request *ModifyStorageCapacityUnitAttributeRequest) { + request = &ModifyStorageCapacityUnitAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyStorageCapacityUnitAttribute", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateModifyStorageCapacityUnitAttributeResponse creates a response to parse from ModifyStorageCapacityUnitAttribute response +func CreateModifyStorageCapacityUnitAttributeResponse() (response *ModifyStorageCapacityUnitAttributeResponse) { + response = &ModifyStorageCapacityUnitAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_storage_set_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_storage_set_attribute.go index b98b13f5..4c57b60e 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_storage_set_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_storage_set_attribute.go @@ -21,7 +21,6 @@ import ( ) // ModifyStorageSetAttribute invokes the ecs.ModifyStorageSetAttribute API synchronously -// api document: https://help.aliyun.com/api/ecs/modifystoragesetattribute.html func (client *Client) ModifyStorageSetAttribute(request *ModifyStorageSetAttributeRequest) (response *ModifyStorageSetAttributeResponse, err error) { response = CreateModifyStorageSetAttributeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifyStorageSetAttribute(request *ModifyStorageSetAttribu } // ModifyStorageSetAttributeWithChan invokes the ecs.ModifyStorageSetAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifystoragesetattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyStorageSetAttributeWithChan(request *ModifyStorageSetAttributeRequest) (<-chan *ModifyStorageSetAttributeResponse, <-chan error) { responseChan := make(chan *ModifyStorageSetAttributeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifyStorageSetAttributeWithChan(request *ModifyStorageSe } // ModifyStorageSetAttributeWithCallback invokes the ecs.ModifyStorageSetAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifystoragesetattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyStorageSetAttributeWithCallback(request *ModifyStorageSetAttributeRequest, callback func(response *ModifyStorageSetAttributeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -98,6 +93,7 @@ func CreateModifyStorageSetAttributeRequest() (request *ModifyStorageSetAttribut RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyStorageSetAttribute", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_user_business_behavior.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_user_business_behavior.go index c30d0ac7..72c26e36 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_user_business_behavior.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_user_business_behavior.go @@ -21,7 +21,6 @@ import ( ) // ModifyUserBusinessBehavior invokes the ecs.ModifyUserBusinessBehavior API synchronously -// api document: https://help.aliyun.com/api/ecs/modifyuserbusinessbehavior.html func (client *Client) ModifyUserBusinessBehavior(request *ModifyUserBusinessBehaviorRequest) (response *ModifyUserBusinessBehaviorResponse, err error) { response = CreateModifyUserBusinessBehaviorResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifyUserBusinessBehavior(request *ModifyUserBusinessBeha } // ModifyUserBusinessBehaviorWithChan invokes the ecs.ModifyUserBusinessBehavior API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyuserbusinessbehavior.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyUserBusinessBehaviorWithChan(request *ModifyUserBusinessBehaviorRequest) (<-chan *ModifyUserBusinessBehaviorResponse, <-chan error) { responseChan := make(chan *ModifyUserBusinessBehaviorResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifyUserBusinessBehaviorWithChan(request *ModifyUserBusi } // ModifyUserBusinessBehaviorWithCallback invokes the ecs.ModifyUserBusinessBehavior API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyuserbusinessbehavior.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyUserBusinessBehaviorWithCallback(request *ModifyUserBusinessBehaviorRequest, callback func(response *ModifyUserBusinessBehaviorResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -96,6 +91,7 @@ func CreateModifyUserBusinessBehaviorRequest() (request *ModifyUserBusinessBehav RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyUserBusinessBehavior", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_v_router_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_v_router_attribute.go index 5bcd9a87..9794ea1e 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_v_router_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_v_router_attribute.go @@ -21,7 +21,6 @@ import ( ) // ModifyVRouterAttribute invokes the ecs.ModifyVRouterAttribute API synchronously -// api document: https://help.aliyun.com/api/ecs/modifyvrouterattribute.html func (client *Client) ModifyVRouterAttribute(request *ModifyVRouterAttributeRequest) (response *ModifyVRouterAttributeResponse, err error) { response = CreateModifyVRouterAttributeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifyVRouterAttribute(request *ModifyVRouterAttributeRequ } // ModifyVRouterAttributeWithChan invokes the ecs.ModifyVRouterAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyvrouterattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyVRouterAttributeWithChan(request *ModifyVRouterAttributeRequest) (<-chan *ModifyVRouterAttributeResponse, <-chan error) { responseChan := make(chan *ModifyVRouterAttributeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifyVRouterAttributeWithChan(request *ModifyVRouterAttri } // ModifyVRouterAttributeWithCallback invokes the ecs.ModifyVRouterAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyvrouterattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyVRouterAttributeWithCallback(request *ModifyVRouterAttributeRequest, callback func(response *ModifyVRouterAttributeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,12 +71,12 @@ func (client *Client) ModifyVRouterAttributeWithCallback(request *ModifyVRouterA // ModifyVRouterAttributeRequest is the request struct for api ModifyVRouterAttribute type ModifyVRouterAttributeRequest struct { *requests.RpcRequest - VRouterName string `position:"Query" name:"VRouterName"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` VRouterId string `position:"Query" name:"VRouterId"` + Description string `position:"Query" name:"Description"` + VRouterName string `position:"Query" name:"VRouterName"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - Description string `position:"Query" name:"Description"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` } @@ -97,6 +92,7 @@ func CreateModifyVRouterAttributeRequest() (request *ModifyVRouterAttributeReque RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyVRouterAttribute", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_v_switch_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_v_switch_attribute.go index c7cd18a0..c26ae8a3 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_v_switch_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_v_switch_attribute.go @@ -21,7 +21,6 @@ import ( ) // ModifyVSwitchAttribute invokes the ecs.ModifyVSwitchAttribute API synchronously -// api document: https://help.aliyun.com/api/ecs/modifyvswitchattribute.html func (client *Client) ModifyVSwitchAttribute(request *ModifyVSwitchAttributeRequest) (response *ModifyVSwitchAttributeResponse, err error) { response = CreateModifyVSwitchAttributeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifyVSwitchAttribute(request *ModifyVSwitchAttributeRequ } // ModifyVSwitchAttributeWithChan invokes the ecs.ModifyVSwitchAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyvswitchattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyVSwitchAttributeWithChan(request *ModifyVSwitchAttributeRequest) (<-chan *ModifyVSwitchAttributeResponse, <-chan error) { responseChan := make(chan *ModifyVSwitchAttributeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifyVSwitchAttributeWithChan(request *ModifyVSwitchAttri } // ModifyVSwitchAttributeWithCallback invokes the ecs.ModifyVSwitchAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyvswitchattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyVSwitchAttributeWithCallback(request *ModifyVSwitchAttributeRequest, callback func(response *ModifyVSwitchAttributeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,13 +71,13 @@ func (client *Client) ModifyVSwitchAttributeWithCallback(request *ModifyVSwitchA // ModifyVSwitchAttributeRequest is the request struct for api ModifyVSwitchAttribute type ModifyVSwitchAttributeRequest struct { *requests.RpcRequest - VSwitchId string `position:"Query" name:"VSwitchId"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Description string `position:"Query" name:"Description"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - VSwitchName string `position:"Query" name:"VSwitchName"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - Description string `position:"Query" name:"Description"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + VSwitchId string `position:"Query" name:"VSwitchId"` + VSwitchName string `position:"Query" name:"VSwitchName"` } // ModifyVSwitchAttributeResponse is the response struct for api ModifyVSwitchAttribute @@ -97,6 +92,7 @@ func CreateModifyVSwitchAttributeRequest() (request *ModifyVSwitchAttributeReque RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyVSwitchAttribute", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_virtual_border_router_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_virtual_border_router_attribute.go index 96fb0499..9353b62b 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_virtual_border_router_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_virtual_border_router_attribute.go @@ -21,7 +21,6 @@ import ( ) // ModifyVirtualBorderRouterAttribute invokes the ecs.ModifyVirtualBorderRouterAttribute API synchronously -// api document: https://help.aliyun.com/api/ecs/modifyvirtualborderrouterattribute.html func (client *Client) ModifyVirtualBorderRouterAttribute(request *ModifyVirtualBorderRouterAttributeRequest) (response *ModifyVirtualBorderRouterAttributeResponse, err error) { response = CreateModifyVirtualBorderRouterAttributeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifyVirtualBorderRouterAttribute(request *ModifyVirtualB } // ModifyVirtualBorderRouterAttributeWithChan invokes the ecs.ModifyVirtualBorderRouterAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyvirtualborderrouterattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyVirtualBorderRouterAttributeWithChan(request *ModifyVirtualBorderRouterAttributeRequest) (<-chan *ModifyVirtualBorderRouterAttributeResponse, <-chan error) { responseChan := make(chan *ModifyVirtualBorderRouterAttributeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifyVirtualBorderRouterAttributeWithChan(request *Modify } // ModifyVirtualBorderRouterAttributeWithCallback invokes the ecs.ModifyVirtualBorderRouterAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyvirtualborderrouterattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyVirtualBorderRouterAttributeWithCallback(request *ModifyVirtualBorderRouterAttributeRequest, callback func(response *ModifyVirtualBorderRouterAttributeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -79,17 +74,17 @@ type ModifyVirtualBorderRouterAttributeRequest struct { ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` CircuitCode string `position:"Query" name:"CircuitCode"` VlanId requests.Integer `position:"Query" name:"VlanId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` ClientToken string `position:"Query" name:"ClientToken"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` Description string `position:"Query" name:"Description"` VbrId string `position:"Query" name:"VbrId"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` PeerGatewayIp string `position:"Query" name:"PeerGatewayIp"` PeeringSubnetMask string `position:"Query" name:"PeeringSubnetMask"` - Name string `position:"Query" name:"Name"` LocalGatewayIp string `position:"Query" name:"LocalGatewayIp"` UserCidr string `position:"Query" name:"UserCidr"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Name string `position:"Query" name:"Name"` } // ModifyVirtualBorderRouterAttributeResponse is the response struct for api ModifyVirtualBorderRouterAttribute @@ -104,6 +99,7 @@ func CreateModifyVirtualBorderRouterAttributeRequest() (request *ModifyVirtualBo RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyVirtualBorderRouterAttribute", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_vpc_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_vpc_attribute.go index 79525aaf..728250cb 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_vpc_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/modify_vpc_attribute.go @@ -21,7 +21,6 @@ import ( ) // ModifyVpcAttribute invokes the ecs.ModifyVpcAttribute API synchronously -// api document: https://help.aliyun.com/api/ecs/modifyvpcattribute.html func (client *Client) ModifyVpcAttribute(request *ModifyVpcAttributeRequest) (response *ModifyVpcAttributeResponse, err error) { response = CreateModifyVpcAttributeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifyVpcAttribute(request *ModifyVpcAttributeRequest) (re } // ModifyVpcAttributeWithChan invokes the ecs.ModifyVpcAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyvpcattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyVpcAttributeWithChan(request *ModifyVpcAttributeRequest) (<-chan *ModifyVpcAttributeResponse, <-chan error) { responseChan := make(chan *ModifyVpcAttributeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifyVpcAttributeWithChan(request *ModifyVpcAttributeRequ } // ModifyVpcAttributeWithCallback invokes the ecs.ModifyVpcAttribute API asynchronously -// api document: https://help.aliyun.com/api/ecs/modifyvpcattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyVpcAttributeWithCallback(request *ModifyVpcAttributeRequest, callback func(response *ModifyVpcAttributeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,15 +71,15 @@ func (client *Client) ModifyVpcAttributeWithCallback(request *ModifyVpcAttribute // ModifyVpcAttributeRequest is the request struct for api ModifyVpcAttribute type ModifyVpcAttributeRequest struct { *requests.RpcRequest - VpcName string `position:"Query" name:"VpcName"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - VpcId string `position:"Query" name:"VpcId"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - CidrBlock string `position:"Query" name:"CidrBlock"` Description string `position:"Query" name:"Description"` + VpcName string `position:"Query" name:"VpcName"` UserCidr string `position:"Query" name:"UserCidr"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + VpcId string `position:"Query" name:"VpcId"` + CidrBlock string `position:"Query" name:"CidrBlock"` } // ModifyVpcAttributeResponse is the response struct for api ModifyVpcAttribute @@ -99,6 +94,7 @@ func CreateModifyVpcAttributeRequest() (request *ModifyVpcAttributeRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyVpcAttribute", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/purchase_reserved_instances_offering.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/purchase_reserved_instances_offering.go index a4e6c694..d2f42658 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/purchase_reserved_instances_offering.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/purchase_reserved_instances_offering.go @@ -21,7 +21,6 @@ import ( ) // PurchaseReservedInstancesOffering invokes the ecs.PurchaseReservedInstancesOffering API synchronously -// api document: https://help.aliyun.com/api/ecs/purchasereservedinstancesoffering.html func (client *Client) PurchaseReservedInstancesOffering(request *PurchaseReservedInstancesOfferingRequest) (response *PurchaseReservedInstancesOfferingResponse, err error) { response = CreatePurchaseReservedInstancesOfferingResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) PurchaseReservedInstancesOffering(request *PurchaseReserve } // PurchaseReservedInstancesOfferingWithChan invokes the ecs.PurchaseReservedInstancesOffering API asynchronously -// api document: https://help.aliyun.com/api/ecs/purchasereservedinstancesoffering.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) PurchaseReservedInstancesOfferingWithChan(request *PurchaseReservedInstancesOfferingRequest) (<-chan *PurchaseReservedInstancesOfferingResponse, <-chan error) { responseChan := make(chan *PurchaseReservedInstancesOfferingResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) PurchaseReservedInstancesOfferingWithChan(request *Purchas } // PurchaseReservedInstancesOfferingWithCallback invokes the ecs.PurchaseReservedInstancesOffering API asynchronously -// api document: https://help.aliyun.com/api/ecs/purchasereservedinstancesoffering.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) PurchaseReservedInstancesOfferingWithCallback(request *PurchaseReservedInstancesOfferingRequest, callback func(response *PurchaseReservedInstancesOfferingResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,21 +71,31 @@ func (client *Client) PurchaseReservedInstancesOfferingWithCallback(request *Pur // PurchaseReservedInstancesOfferingRequest is the request struct for api PurchaseReservedInstancesOffering type PurchaseReservedInstancesOfferingRequest struct { *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - Description string `position:"Query" name:"Description"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - Scope string `position:"Query" name:"Scope"` - InstanceType string `position:"Query" name:"InstanceType"` - Period requests.Integer `position:"Query" name:"Period"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PeriodUnit string `position:"Query" name:"PeriodUnit"` - OfferingType string `position:"Query" name:"OfferingType"` - ZoneId string `position:"Query" name:"ZoneId"` - ReservedInstanceName string `position:"Query" name:"ReservedInstanceName"` - InstanceAmount requests.Integer `position:"Query" name:"InstanceAmount"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + Description string `position:"Query" name:"Description"` + Platform string `position:"Query" name:"Platform"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + Scope string `position:"Query" name:"Scope"` + InstanceType string `position:"Query" name:"InstanceType"` + Tag *[]PurchaseReservedInstancesOfferingTag `position:"Query" name:"Tag" type:"Repeated"` + AutoRenewPeriod requests.Integer `position:"Query" name:"AutoRenewPeriod"` + Period requests.Integer `position:"Query" name:"Period"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PeriodUnit string `position:"Query" name:"PeriodUnit"` + OfferingType string `position:"Query" name:"OfferingType"` + AutoRenew requests.Boolean `position:"Query" name:"AutoRenew"` + ZoneId string `position:"Query" name:"ZoneId"` + ReservedInstanceName string `position:"Query" name:"ReservedInstanceName"` + InstanceAmount requests.Integer `position:"Query" name:"InstanceAmount"` +} + +// PurchaseReservedInstancesOfferingTag is a repeated param struct in PurchaseReservedInstancesOfferingRequest +type PurchaseReservedInstancesOfferingTag struct { + Key string `name:"Key"` + Value string `name:"Value"` } // PurchaseReservedInstancesOfferingResponse is the response struct for api PurchaseReservedInstancesOffering @@ -106,6 +111,7 @@ func CreatePurchaseReservedInstancesOfferingRequest() (request *PurchaseReserved RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "PurchaseReservedInstancesOffering", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/purchase_storage_capacity_unit.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/purchase_storage_capacity_unit.go new file mode 100644 index 00000000..ba0f01d4 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/purchase_storage_capacity_unit.go @@ -0,0 +1,120 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// PurchaseStorageCapacityUnit invokes the ecs.PurchaseStorageCapacityUnit API synchronously +func (client *Client) PurchaseStorageCapacityUnit(request *PurchaseStorageCapacityUnitRequest) (response *PurchaseStorageCapacityUnitResponse, err error) { + response = CreatePurchaseStorageCapacityUnitResponse() + err = client.DoAction(request, response) + return +} + +// PurchaseStorageCapacityUnitWithChan invokes the ecs.PurchaseStorageCapacityUnit API asynchronously +func (client *Client) PurchaseStorageCapacityUnitWithChan(request *PurchaseStorageCapacityUnitRequest) (<-chan *PurchaseStorageCapacityUnitResponse, <-chan error) { + responseChan := make(chan *PurchaseStorageCapacityUnitResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.PurchaseStorageCapacityUnit(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// PurchaseStorageCapacityUnitWithCallback invokes the ecs.PurchaseStorageCapacityUnit API asynchronously +func (client *Client) PurchaseStorageCapacityUnitWithCallback(request *PurchaseStorageCapacityUnitRequest, callback func(response *PurchaseStorageCapacityUnitResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *PurchaseStorageCapacityUnitResponse + var err error + defer close(result) + response, err = client.PurchaseStorageCapacityUnit(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// PurchaseStorageCapacityUnitRequest is the request struct for api PurchaseStorageCapacityUnit +type PurchaseStorageCapacityUnitRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + Description string `position:"Query" name:"Description"` + StartTime string `position:"Query" name:"StartTime"` + Capacity requests.Integer `position:"Query" name:"Capacity"` + Tag *[]PurchaseStorageCapacityUnitTag `position:"Query" name:"Tag" type:"Repeated"` + Period requests.Integer `position:"Query" name:"Period"` + Amount requests.Integer `position:"Query" name:"Amount"` + FromApp string `position:"Query" name:"FromApp"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PeriodUnit string `position:"Query" name:"PeriodUnit"` + Name string `position:"Query" name:"Name"` +} + +// PurchaseStorageCapacityUnitTag is a repeated param struct in PurchaseStorageCapacityUnitRequest +type PurchaseStorageCapacityUnitTag struct { + Key string `name:"Key"` + Value string `name:"Value"` +} + +// PurchaseStorageCapacityUnitResponse is the response struct for api PurchaseStorageCapacityUnit +type PurchaseStorageCapacityUnitResponse struct { + *responses.BaseResponse + OrderId string `json:"OrderId" xml:"OrderId"` + RequestId string `json:"RequestId" xml:"RequestId"` + StorageCapacityUnitIds StorageCapacityUnitIds `json:"StorageCapacityUnitIds" xml:"StorageCapacityUnitIds"` +} + +// CreatePurchaseStorageCapacityUnitRequest creates a request to invoke PurchaseStorageCapacityUnit API +func CreatePurchaseStorageCapacityUnitRequest() (request *PurchaseStorageCapacityUnitRequest) { + request = &PurchaseStorageCapacityUnitRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "PurchaseStorageCapacityUnit", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreatePurchaseStorageCapacityUnitResponse creates a response to parse from PurchaseStorageCapacityUnit response +func CreatePurchaseStorageCapacityUnitResponse() (response *PurchaseStorageCapacityUnitResponse) { + response = &PurchaseStorageCapacityUnitResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/re_activate_instances.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/re_activate_instances.go index 155dcde2..dc8290ed 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/re_activate_instances.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/re_activate_instances.go @@ -21,7 +21,6 @@ import ( ) // ReActivateInstances invokes the ecs.ReActivateInstances API synchronously -// api document: https://help.aliyun.com/api/ecs/reactivateinstances.html func (client *Client) ReActivateInstances(request *ReActivateInstancesRequest) (response *ReActivateInstancesResponse, err error) { response = CreateReActivateInstancesResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ReActivateInstances(request *ReActivateInstancesRequest) ( } // ReActivateInstancesWithChan invokes the ecs.ReActivateInstances API asynchronously -// api document: https://help.aliyun.com/api/ecs/reactivateinstances.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ReActivateInstancesWithChan(request *ReActivateInstancesRequest) (<-chan *ReActivateInstancesResponse, <-chan error) { responseChan := make(chan *ReActivateInstancesResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ReActivateInstancesWithChan(request *ReActivateInstancesRe } // ReActivateInstancesWithCallback invokes the ecs.ReActivateInstances API asynchronously -// api document: https://help.aliyun.com/api/ecs/reactivateinstances.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ReActivateInstancesWithCallback(request *ReActivateInstancesRequest, callback func(response *ReActivateInstancesResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,10 +72,10 @@ func (client *Client) ReActivateInstancesWithCallback(request *ReActivateInstanc type ReActivateInstancesRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` } // ReActivateInstancesResponse is the response struct for api ReActivateInstances @@ -95,6 +90,7 @@ func CreateReActivateInstancesRequest() (request *ReActivateInstancesRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ReActivateInstances", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/re_init_disk.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/re_init_disk.go index 69f32563..9dfe5d26 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/re_init_disk.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/re_init_disk.go @@ -21,7 +21,6 @@ import ( ) // ReInitDisk invokes the ecs.ReInitDisk API synchronously -// api document: https://help.aliyun.com/api/ecs/reinitdisk.html func (client *Client) ReInitDisk(request *ReInitDiskRequest) (response *ReInitDiskResponse, err error) { response = CreateReInitDiskResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ReInitDisk(request *ReInitDiskRequest) (response *ReInitDi } // ReInitDiskWithChan invokes the ecs.ReInitDisk API asynchronously -// api document: https://help.aliyun.com/api/ecs/reinitdisk.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ReInitDiskWithChan(request *ReInitDiskRequest) (<-chan *ReInitDiskResponse, <-chan error) { responseChan := make(chan *ReInitDiskResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ReInitDiskWithChan(request *ReInitDiskRequest) (<-chan *Re } // ReInitDiskWithCallback invokes the ecs.ReInitDisk API asynchronously -// api document: https://help.aliyun.com/api/ecs/reinitdisk.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ReInitDiskWithCallback(request *ReInitDiskRequest, callback func(response *ReInitDiskResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,13 +72,14 @@ func (client *Client) ReInitDiskWithCallback(request *ReInitDiskRequest, callbac type ReInitDiskRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Password string `position:"Query" name:"Password"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` AutoStartInstance requests.Boolean `position:"Query" name:"AutoStartInstance"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - DiskId string `position:"Query" name:"DiskId"` SecurityEnhancementStrategy string `position:"Query" name:"SecurityEnhancementStrategy"` KeyPairName string `position:"Query" name:"KeyPairName"` + Password string `position:"Query" name:"Password"` + LoginAsNonRoot requests.Boolean `position:"Query" name:"LoginAsNonRoot"` + DiskId string `position:"Query" name:"DiskId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` } @@ -99,6 +95,7 @@ func CreateReInitDiskRequest() (request *ReInitDiskRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ReInitDisk", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/reboot_instance.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/reboot_instance.go index 60a99b14..ea6c5e12 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/reboot_instance.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/reboot_instance.go @@ -21,7 +21,6 @@ import ( ) // RebootInstance invokes the ecs.RebootInstance API synchronously -// api document: https://help.aliyun.com/api/ecs/rebootinstance.html func (client *Client) RebootInstance(request *RebootInstanceRequest) (response *RebootInstanceResponse, err error) { response = CreateRebootInstanceResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) RebootInstance(request *RebootInstanceRequest) (response * } // RebootInstanceWithChan invokes the ecs.RebootInstance API asynchronously -// api document: https://help.aliyun.com/api/ecs/rebootinstance.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) RebootInstanceWithChan(request *RebootInstanceRequest) (<-chan *RebootInstanceResponse, <-chan error) { responseChan := make(chan *RebootInstanceResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) RebootInstanceWithChan(request *RebootInstanceRequest) (<- } // RebootInstanceWithCallback invokes the ecs.RebootInstance API asynchronously -// api document: https://help.aliyun.com/api/ecs/rebootinstance.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) RebootInstanceWithCallback(request *RebootInstanceRequest, callback func(response *RebootInstanceResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,12 +72,12 @@ func (client *Client) RebootInstanceWithCallback(request *RebootInstanceRequest, type RebootInstanceRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` + ForceStop requests.Boolean `position:"Query" name:"ForceStop"` DryRun requests.Boolean `position:"Query" name:"DryRun"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ForceStop requests.Boolean `position:"Query" name:"ForceStop"` + InstanceId string `position:"Query" name:"InstanceId"` } // RebootInstanceResponse is the response struct for api RebootInstance @@ -97,6 +92,7 @@ func CreateRebootInstanceRequest() (request *RebootInstanceRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "RebootInstance", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/reboot_instances.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/reboot_instances.go new file mode 100644 index 00000000..4981d55f --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/reboot_instances.go @@ -0,0 +1,107 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RebootInstances invokes the ecs.RebootInstances API synchronously +func (client *Client) RebootInstances(request *RebootInstancesRequest) (response *RebootInstancesResponse, err error) { + response = CreateRebootInstancesResponse() + err = client.DoAction(request, response) + return +} + +// RebootInstancesWithChan invokes the ecs.RebootInstances API asynchronously +func (client *Client) RebootInstancesWithChan(request *RebootInstancesRequest) (<-chan *RebootInstancesResponse, <-chan error) { + responseChan := make(chan *RebootInstancesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RebootInstances(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RebootInstancesWithCallback invokes the ecs.RebootInstances API asynchronously +func (client *Client) RebootInstancesWithCallback(request *RebootInstancesRequest, callback func(response *RebootInstancesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RebootInstancesResponse + var err error + defer close(result) + response, err = client.RebootInstances(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RebootInstancesRequest is the request struct for api RebootInstances +type RebootInstancesRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + BatchOptimization string `position:"Query" name:"BatchOptimization"` + DryRun requests.Boolean `position:"Query" name:"DryRun"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ForceReboot requests.Boolean `position:"Query" name:"ForceReboot"` + InstanceId *[]string `position:"Query" name:"InstanceId" type:"Repeated"` +} + +// RebootInstancesResponse is the response struct for api RebootInstances +type RebootInstancesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + InstanceResponses InstanceResponsesInRebootInstances `json:"InstanceResponses" xml:"InstanceResponses"` +} + +// CreateRebootInstancesRequest creates a request to invoke RebootInstances API +func CreateRebootInstancesRequest() (request *RebootInstancesRequest) { + request = &RebootInstancesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "RebootInstances", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateRebootInstancesResponse creates a response to parse from RebootInstances response +func CreateRebootInstancesResponse() (response *RebootInstancesResponse) { + response = &RebootInstancesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/recover_virtual_border_router.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/recover_virtual_border_router.go index dae7e69e..117ae77b 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/recover_virtual_border_router.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/recover_virtual_border_router.go @@ -21,7 +21,6 @@ import ( ) // RecoverVirtualBorderRouter invokes the ecs.RecoverVirtualBorderRouter API synchronously -// api document: https://help.aliyun.com/api/ecs/recovervirtualborderrouter.html func (client *Client) RecoverVirtualBorderRouter(request *RecoverVirtualBorderRouterRequest) (response *RecoverVirtualBorderRouterResponse, err error) { response = CreateRecoverVirtualBorderRouterResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) RecoverVirtualBorderRouter(request *RecoverVirtualBorderRo } // RecoverVirtualBorderRouterWithChan invokes the ecs.RecoverVirtualBorderRouter API asynchronously -// api document: https://help.aliyun.com/api/ecs/recovervirtualborderrouter.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) RecoverVirtualBorderRouterWithChan(request *RecoverVirtualBorderRouterRequest) (<-chan *RecoverVirtualBorderRouterResponse, <-chan error) { responseChan := make(chan *RecoverVirtualBorderRouterResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) RecoverVirtualBorderRouterWithChan(request *RecoverVirtual } // RecoverVirtualBorderRouterWithCallback invokes the ecs.RecoverVirtualBorderRouter API asynchronously -// api document: https://help.aliyun.com/api/ecs/recovervirtualborderrouter.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) RecoverVirtualBorderRouterWithCallback(request *RecoverVirtualBorderRouterRequest, callback func(response *RecoverVirtualBorderRouterResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,11 +72,11 @@ func (client *Client) RecoverVirtualBorderRouterWithCallback(request *RecoverVir type RecoverVirtualBorderRouterRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` ClientToken string `position:"Query" name:"ClientToken"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - UserCidr string `position:"Query" name:"UserCidr"` VbrId string `position:"Query" name:"VbrId"` + UserCidr string `position:"Query" name:"UserCidr"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` } @@ -97,6 +92,7 @@ func CreateRecoverVirtualBorderRouterRequest() (request *RecoverVirtualBorderRou RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "RecoverVirtualBorderRouter", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/redeploy_dedicated_host.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/redeploy_dedicated_host.go new file mode 100644 index 00000000..dfe152db --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/redeploy_dedicated_host.go @@ -0,0 +1,103 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RedeployDedicatedHost invokes the ecs.RedeployDedicatedHost API synchronously +func (client *Client) RedeployDedicatedHost(request *RedeployDedicatedHostRequest) (response *RedeployDedicatedHostResponse, err error) { + response = CreateRedeployDedicatedHostResponse() + err = client.DoAction(request, response) + return +} + +// RedeployDedicatedHostWithChan invokes the ecs.RedeployDedicatedHost API asynchronously +func (client *Client) RedeployDedicatedHostWithChan(request *RedeployDedicatedHostRequest) (<-chan *RedeployDedicatedHostResponse, <-chan error) { + responseChan := make(chan *RedeployDedicatedHostResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RedeployDedicatedHost(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RedeployDedicatedHostWithCallback invokes the ecs.RedeployDedicatedHost API asynchronously +func (client *Client) RedeployDedicatedHostWithCallback(request *RedeployDedicatedHostRequest, callback func(response *RedeployDedicatedHostResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RedeployDedicatedHostResponse + var err error + defer close(result) + response, err = client.RedeployDedicatedHost(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RedeployDedicatedHostRequest is the request struct for api RedeployDedicatedHost +type RedeployDedicatedHostRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + DedicatedHostId string `position:"Query" name:"DedicatedHostId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// RedeployDedicatedHostResponse is the response struct for api RedeployDedicatedHost +type RedeployDedicatedHostResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRedeployDedicatedHostRequest creates a request to invoke RedeployDedicatedHost API +func CreateRedeployDedicatedHostRequest() (request *RedeployDedicatedHostRequest) { + request = &RedeployDedicatedHostRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "RedeployDedicatedHost", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateRedeployDedicatedHostResponse creates a response to parse from RedeployDedicatedHost response +func CreateRedeployDedicatedHostResponse() (response *RedeployDedicatedHostResponse) { + response = &RedeployDedicatedHostResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/redeploy_instance.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/redeploy_instance.go index 35d55df9..f3715792 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/redeploy_instance.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/redeploy_instance.go @@ -21,7 +21,6 @@ import ( ) // RedeployInstance invokes the ecs.RedeployInstance API synchronously -// api document: https://help.aliyun.com/api/ecs/redeployinstance.html func (client *Client) RedeployInstance(request *RedeployInstanceRequest) (response *RedeployInstanceResponse, err error) { response = CreateRedeployInstanceResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) RedeployInstance(request *RedeployInstanceRequest) (respon } // RedeployInstanceWithChan invokes the ecs.RedeployInstance API asynchronously -// api document: https://help.aliyun.com/api/ecs/redeployinstance.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) RedeployInstanceWithChan(request *RedeployInstanceRequest) (<-chan *RedeployInstanceResponse, <-chan error) { responseChan := make(chan *RedeployInstanceResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) RedeployInstanceWithChan(request *RedeployInstanceRequest) } // RedeployInstanceWithCallback invokes the ecs.RedeployInstance API asynchronously -// api document: https://help.aliyun.com/api/ecs/redeployinstance.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) RedeployInstanceWithCallback(request *RedeployInstanceRequest, callback func(response *RedeployInstanceResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -87,8 +82,8 @@ type RedeployInstanceRequest struct { // RedeployInstanceResponse is the response struct for api RedeployInstance type RedeployInstanceResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` TaskId string `json:"TaskId" xml:"TaskId"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateRedeployInstanceRequest creates a request to invoke RedeployInstance API @@ -97,6 +92,7 @@ func CreateRedeployInstanceRequest() (request *RedeployInstanceRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "RedeployInstance", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/release_capacity_reservation.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/release_capacity_reservation.go new file mode 100644 index 00000000..ad0a4486 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/release_capacity_reservation.go @@ -0,0 +1,104 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ReleaseCapacityReservation invokes the ecs.ReleaseCapacityReservation API synchronously +func (client *Client) ReleaseCapacityReservation(request *ReleaseCapacityReservationRequest) (response *ReleaseCapacityReservationResponse, err error) { + response = CreateReleaseCapacityReservationResponse() + err = client.DoAction(request, response) + return +} + +// ReleaseCapacityReservationWithChan invokes the ecs.ReleaseCapacityReservation API asynchronously +func (client *Client) ReleaseCapacityReservationWithChan(request *ReleaseCapacityReservationRequest) (<-chan *ReleaseCapacityReservationResponse, <-chan error) { + responseChan := make(chan *ReleaseCapacityReservationResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ReleaseCapacityReservation(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ReleaseCapacityReservationWithCallback invokes the ecs.ReleaseCapacityReservation API asynchronously +func (client *Client) ReleaseCapacityReservationWithCallback(request *ReleaseCapacityReservationRequest, callback func(response *ReleaseCapacityReservationResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ReleaseCapacityReservationResponse + var err error + defer close(result) + response, err = client.ReleaseCapacityReservation(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ReleaseCapacityReservationRequest is the request struct for api ReleaseCapacityReservation +type ReleaseCapacityReservationRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PrivatePoolOptionsId string `position:"Query" name:"PrivatePoolOptions.Id"` + DryRun requests.Boolean `position:"Query" name:"DryRun"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// ReleaseCapacityReservationResponse is the response struct for api ReleaseCapacityReservation +type ReleaseCapacityReservationResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateReleaseCapacityReservationRequest creates a request to invoke ReleaseCapacityReservation API +func CreateReleaseCapacityReservationRequest() (request *ReleaseCapacityReservationRequest) { + request = &ReleaseCapacityReservationRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ReleaseCapacityReservation", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateReleaseCapacityReservationResponse creates a response to parse from ReleaseCapacityReservation response +func CreateReleaseCapacityReservationResponse() (response *ReleaseCapacityReservationResponse) { + response = &ReleaseCapacityReservationResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/release_dedicated_host.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/release_dedicated_host.go index a8269b6e..a6d44a3d 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/release_dedicated_host.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/release_dedicated_host.go @@ -21,7 +21,6 @@ import ( ) // ReleaseDedicatedHost invokes the ecs.ReleaseDedicatedHost API synchronously -// api document: https://help.aliyun.com/api/ecs/releasededicatedhost.html func (client *Client) ReleaseDedicatedHost(request *ReleaseDedicatedHostRequest) (response *ReleaseDedicatedHostResponse, err error) { response = CreateReleaseDedicatedHostResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ReleaseDedicatedHost(request *ReleaseDedicatedHostRequest) } // ReleaseDedicatedHostWithChan invokes the ecs.ReleaseDedicatedHost API asynchronously -// api document: https://help.aliyun.com/api/ecs/releasededicatedhost.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ReleaseDedicatedHostWithChan(request *ReleaseDedicatedHostRequest) (<-chan *ReleaseDedicatedHostResponse, <-chan error) { responseChan := make(chan *ReleaseDedicatedHostResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ReleaseDedicatedHostWithChan(request *ReleaseDedicatedHost } // ReleaseDedicatedHostWithCallback invokes the ecs.ReleaseDedicatedHost API asynchronously -// api document: https://help.aliyun.com/api/ecs/releasededicatedhost.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ReleaseDedicatedHostWithCallback(request *ReleaseDedicatedHostRequest, callback func(response *ReleaseDedicatedHostResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -95,6 +90,7 @@ func CreateReleaseDedicatedHostRequest() (request *ReleaseDedicatedHostRequest) RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ReleaseDedicatedHost", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/release_eip_address.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/release_eip_address.go index 8d1217f2..e1d2357c 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/release_eip_address.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/release_eip_address.go @@ -21,7 +21,6 @@ import ( ) // ReleaseEipAddress invokes the ecs.ReleaseEipAddress API synchronously -// api document: https://help.aliyun.com/api/ecs/releaseeipaddress.html func (client *Client) ReleaseEipAddress(request *ReleaseEipAddressRequest) (response *ReleaseEipAddressResponse, err error) { response = CreateReleaseEipAddressResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ReleaseEipAddress(request *ReleaseEipAddressRequest) (resp } // ReleaseEipAddressWithChan invokes the ecs.ReleaseEipAddress API asynchronously -// api document: https://help.aliyun.com/api/ecs/releaseeipaddress.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ReleaseEipAddressWithChan(request *ReleaseEipAddressRequest) (<-chan *ReleaseEipAddressResponse, <-chan error) { responseChan := make(chan *ReleaseEipAddressResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ReleaseEipAddressWithChan(request *ReleaseEipAddressReques } // ReleaseEipAddressWithCallback invokes the ecs.ReleaseEipAddress API asynchronously -// api document: https://help.aliyun.com/api/ecs/releaseeipaddress.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ReleaseEipAddressWithCallback(request *ReleaseEipAddressRequest, callback func(response *ReleaseEipAddressResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,9 +72,9 @@ func (client *Client) ReleaseEipAddressWithCallback(request *ReleaseEipAddressRe type ReleaseEipAddressRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + AllocationId string `position:"Query" name:"AllocationId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - AllocationId string `position:"Query" name:"AllocationId"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` } @@ -95,6 +90,7 @@ func CreateReleaseEipAddressRequest() (request *ReleaseEipAddressRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ReleaseEipAddress", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/release_public_ip_address.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/release_public_ip_address.go index 819340ef..590c471a 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/release_public_ip_address.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/release_public_ip_address.go @@ -21,7 +21,6 @@ import ( ) // ReleasePublicIpAddress invokes the ecs.ReleasePublicIpAddress API synchronously -// api document: https://help.aliyun.com/api/ecs/releasepublicipaddress.html func (client *Client) ReleasePublicIpAddress(request *ReleasePublicIpAddressRequest) (response *ReleasePublicIpAddressResponse, err error) { response = CreateReleasePublicIpAddressResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ReleasePublicIpAddress(request *ReleasePublicIpAddressRequ } // ReleasePublicIpAddressWithChan invokes the ecs.ReleasePublicIpAddress API asynchronously -// api document: https://help.aliyun.com/api/ecs/releasepublicipaddress.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ReleasePublicIpAddressWithChan(request *ReleasePublicIpAddressRequest) (<-chan *ReleasePublicIpAddressResponse, <-chan error) { responseChan := make(chan *ReleasePublicIpAddressResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ReleasePublicIpAddressWithChan(request *ReleasePublicIpAdd } // ReleasePublicIpAddressWithCallback invokes the ecs.ReleasePublicIpAddress API asynchronously -// api document: https://help.aliyun.com/api/ecs/releasepublicipaddress.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ReleasePublicIpAddressWithCallback(request *ReleasePublicIpAddressRequest, callback func(response *ReleasePublicIpAddressResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,18 +71,16 @@ func (client *Client) ReleasePublicIpAddressWithCallback(request *ReleasePublicI // ReleasePublicIpAddressRequest is the request struct for api ReleasePublicIpAddress type ReleasePublicIpAddressRequest struct { *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - PublicIpAddress string `position:"Query" name:"PublicIpAddress"` - InstanceId string `position:"Query" name:"InstanceId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` + DryRun requests.Boolean `position:"Query" name:"DryRun"` + PublicIpAddress string `position:"Query" name:"PublicIpAddress"` + InstanceId string `position:"Query" name:"InstanceId"` } // ReleasePublicIpAddressResponse is the response struct for api ReleasePublicIpAddress type ReleasePublicIpAddressResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` + RequestId string `json:"RequestId" xml:"RequestId"` + RemainTimes string `json:"RemainTimes" xml:"RemainTimes"` } // CreateReleasePublicIpAddressRequest creates a request to invoke ReleasePublicIpAddress API @@ -96,6 +89,7 @@ func CreateReleasePublicIpAddressRequest() (request *ReleasePublicIpAddressReque RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ReleasePublicIpAddress", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/remove_bandwidth_package_ips.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/remove_bandwidth_package_ips.go index 4abb537f..c2ceefd3 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/remove_bandwidth_package_ips.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/remove_bandwidth_package_ips.go @@ -21,7 +21,6 @@ import ( ) // RemoveBandwidthPackageIps invokes the ecs.RemoveBandwidthPackageIps API synchronously -// api document: https://help.aliyun.com/api/ecs/removebandwidthpackageips.html func (client *Client) RemoveBandwidthPackageIps(request *RemoveBandwidthPackageIpsRequest) (response *RemoveBandwidthPackageIpsResponse, err error) { response = CreateRemoveBandwidthPackageIpsResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) RemoveBandwidthPackageIps(request *RemoveBandwidthPackageI } // RemoveBandwidthPackageIpsWithChan invokes the ecs.RemoveBandwidthPackageIps API asynchronously -// api document: https://help.aliyun.com/api/ecs/removebandwidthpackageips.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) RemoveBandwidthPackageIpsWithChan(request *RemoveBandwidthPackageIpsRequest) (<-chan *RemoveBandwidthPackageIpsResponse, <-chan error) { responseChan := make(chan *RemoveBandwidthPackageIpsResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) RemoveBandwidthPackageIpsWithChan(request *RemoveBandwidth } // RemoveBandwidthPackageIpsWithCallback invokes the ecs.RemoveBandwidthPackageIps API asynchronously -// api document: https://help.aliyun.com/api/ecs/removebandwidthpackageips.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) RemoveBandwidthPackageIpsWithCallback(request *RemoveBandwidthPackageIpsRequest, callback func(response *RemoveBandwidthPackageIpsResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,11 +71,11 @@ func (client *Client) RemoveBandwidthPackageIpsWithCallback(request *RemoveBandw // RemoveBandwidthPackageIpsRequest is the request struct for api RemoveBandwidthPackageIps type RemoveBandwidthPackageIpsRequest struct { *requests.RpcRequest - RemovedIpAddresses *[]string `position:"Query" name:"RemovedIpAddresses" type:"Repeated"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + RemovedIpAddresses *[]string `position:"Query" name:"RemovedIpAddresses" type:"Repeated"` BandwidthPackageId string `position:"Query" name:"BandwidthPackageId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - ClientToken string `position:"Query" name:"ClientToken"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` } @@ -97,6 +92,7 @@ func CreateRemoveBandwidthPackageIpsRequest() (request *RemoveBandwidthPackageIp RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "RemoveBandwidthPackageIps", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/remove_tags.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/remove_tags.go index f5bcdd1f..d36f3a70 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/remove_tags.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/remove_tags.go @@ -21,7 +21,6 @@ import ( ) // RemoveTags invokes the ecs.RemoveTags API synchronously -// api document: https://help.aliyun.com/api/ecs/removetags.html func (client *Client) RemoveTags(request *RemoveTagsRequest) (response *RemoveTagsResponse, err error) { response = CreateRemoveTagsResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) RemoveTags(request *RemoveTagsRequest) (response *RemoveTa } // RemoveTagsWithChan invokes the ecs.RemoveTags API asynchronously -// api document: https://help.aliyun.com/api/ecs/removetags.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) RemoveTagsWithChan(request *RemoveTagsRequest) (<-chan *RemoveTagsResponse, <-chan error) { responseChan := make(chan *RemoveTagsResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) RemoveTagsWithChan(request *RemoveTagsRequest) (<-chan *Re } // RemoveTagsWithCallback invokes the ecs.RemoveTags API asynchronously -// api document: https://help.aliyun.com/api/ecs/removetags.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) RemoveTagsWithCallback(request *RemoveTagsRequest, callback func(response *RemoveTagsResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,9 +72,9 @@ func (client *Client) RemoveTagsWithCallback(request *RemoveTagsRequest, callbac type RemoveTagsRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Tag *[]RemoveTagsTag `position:"Query" name:"Tag" type:"Repeated"` ResourceId string `position:"Query" name:"ResourceId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - Tag *[]RemoveTagsTag `position:"Query" name:"Tag" type:"Repeated"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` ResourceType string `position:"Query" name:"ResourceType"` } @@ -102,6 +97,7 @@ func CreateRemoveTagsRequest() (request *RemoveTagsRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "RemoveTags", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/renew_dedicated_hosts.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/renew_dedicated_hosts.go index c5032957..a5343efd 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/renew_dedicated_hosts.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/renew_dedicated_hosts.go @@ -21,7 +21,6 @@ import ( ) // RenewDedicatedHosts invokes the ecs.RenewDedicatedHosts API synchronously -// api document: https://help.aliyun.com/api/ecs/renewdedicatedhosts.html func (client *Client) RenewDedicatedHosts(request *RenewDedicatedHostsRequest) (response *RenewDedicatedHostsResponse, err error) { response = CreateRenewDedicatedHostsResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) RenewDedicatedHosts(request *RenewDedicatedHostsRequest) ( } // RenewDedicatedHostsWithChan invokes the ecs.RenewDedicatedHosts API asynchronously -// api document: https://help.aliyun.com/api/ecs/renewdedicatedhosts.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) RenewDedicatedHostsWithChan(request *RenewDedicatedHostsRequest) (<-chan *RenewDedicatedHostsResponse, <-chan error) { responseChan := make(chan *RenewDedicatedHostsResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) RenewDedicatedHostsWithChan(request *RenewDedicatedHostsRe } // RenewDedicatedHostsWithCallback invokes the ecs.RenewDedicatedHosts API asynchronously -// api document: https://help.aliyun.com/api/ecs/renewdedicatedhosts.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) RenewDedicatedHostsWithCallback(request *RenewDedicatedHostsRequest, callback func(response *RenewDedicatedHostsResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -98,6 +93,7 @@ func CreateRenewDedicatedHostsRequest() (request *RenewDedicatedHostsRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "RenewDedicatedHosts", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/renew_instance.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/renew_instance.go index 928fc229..095715c2 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/renew_instance.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/renew_instance.go @@ -21,7 +21,6 @@ import ( ) // RenewInstance invokes the ecs.RenewInstance API synchronously -// api document: https://help.aliyun.com/api/ecs/renewinstance.html func (client *Client) RenewInstance(request *RenewInstanceRequest) (response *RenewInstanceResponse, err error) { response = CreateRenewInstanceResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) RenewInstance(request *RenewInstanceRequest) (response *Re } // RenewInstanceWithChan invokes the ecs.RenewInstance API asynchronously -// api document: https://help.aliyun.com/api/ecs/renewinstance.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) RenewInstanceWithChan(request *RenewInstanceRequest) (<-chan *RenewInstanceResponse, <-chan error) { responseChan := make(chan *RenewInstanceResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) RenewInstanceWithChan(request *RenewInstanceRequest) (<-ch } // RenewInstanceWithCallback invokes the ecs.RenewInstance API asynchronously -// api document: https://help.aliyun.com/api/ecs/renewinstance.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) RenewInstanceWithCallback(request *RenewInstanceRequest, callback func(response *RenewInstanceResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,18 +72,20 @@ func (client *Client) RenewInstanceWithCallback(request *RenewInstanceRequest, c type RenewInstanceRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Period requests.Integer `position:"Query" name:"Period"` - PeriodUnit string `position:"Query" name:"PeriodUnit"` - InstanceId string `position:"Query" name:"InstanceId"` ClientToken string `position:"Query" name:"ClientToken"` + Period requests.Integer `position:"Query" name:"Period"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` + ExpectedRenewDay requests.Integer `position:"Query" name:"ExpectedRenewDay"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PeriodUnit string `position:"Query" name:"PeriodUnit"` + InstanceId string `position:"Query" name:"InstanceId"` } // RenewInstanceResponse is the response struct for api RenewInstance type RenewInstanceResponse struct { *responses.BaseResponse + OrderId string `json:"OrderId" xml:"OrderId"` RequestId string `json:"RequestId" xml:"RequestId"` } @@ -98,6 +95,7 @@ func CreateRenewInstanceRequest() (request *RenewInstanceRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "RenewInstance", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/renew_reserved_instances.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/renew_reserved_instances.go new file mode 100644 index 00000000..92207246 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/renew_reserved_instances.go @@ -0,0 +1,110 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RenewReservedInstances invokes the ecs.RenewReservedInstances API synchronously +func (client *Client) RenewReservedInstances(request *RenewReservedInstancesRequest) (response *RenewReservedInstancesResponse, err error) { + response = CreateRenewReservedInstancesResponse() + err = client.DoAction(request, response) + return +} + +// RenewReservedInstancesWithChan invokes the ecs.RenewReservedInstances API asynchronously +func (client *Client) RenewReservedInstancesWithChan(request *RenewReservedInstancesRequest) (<-chan *RenewReservedInstancesResponse, <-chan error) { + responseChan := make(chan *RenewReservedInstancesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RenewReservedInstances(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RenewReservedInstancesWithCallback invokes the ecs.RenewReservedInstances API asynchronously +func (client *Client) RenewReservedInstancesWithCallback(request *RenewReservedInstancesRequest, callback func(response *RenewReservedInstancesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RenewReservedInstancesResponse + var err error + defer close(result) + response, err = client.RenewReservedInstances(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RenewReservedInstancesRequest is the request struct for api RenewReservedInstances +type RenewReservedInstancesRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + AutoRenewPeriod requests.Integer `position:"Query" name:"AutoRenewPeriod"` + Period requests.Integer `position:"Query" name:"Period"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PeriodUnit string `position:"Query" name:"PeriodUnit"` + ReservedInstanceId *[]string `position:"Query" name:"ReservedInstanceId" type:"Repeated"` + AutoRenew requests.Boolean `position:"Query" name:"AutoRenew"` +} + +// RenewReservedInstancesResponse is the response struct for api RenewReservedInstances +type RenewReservedInstancesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + OrderId string `json:"OrderId" xml:"OrderId"` + ReservedInstanceIdSets ReservedInstanceIdSetsInRenewReservedInstances `json:"ReservedInstanceIdSets" xml:"ReservedInstanceIdSets"` +} + +// CreateRenewReservedInstancesRequest creates a request to invoke RenewReservedInstances API +func CreateRenewReservedInstancesRequest() (request *RenewReservedInstancesRequest) { + request = &RenewReservedInstancesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "RenewReservedInstances", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateRenewReservedInstancesResponse creates a response to parse from RenewReservedInstances response +func CreateRenewReservedInstancesResponse() (response *RenewReservedInstancesResponse) { + response = &RenewReservedInstancesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/replace_system_disk.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/replace_system_disk.go index cfcb5135..b154ba26 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/replace_system_disk.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/replace_system_disk.go @@ -21,7 +21,6 @@ import ( ) // ReplaceSystemDisk invokes the ecs.ReplaceSystemDisk API synchronously -// api document: https://help.aliyun.com/api/ecs/replacesystemdisk.html func (client *Client) ReplaceSystemDisk(request *ReplaceSystemDiskRequest) (response *ReplaceSystemDiskResponse, err error) { response = CreateReplaceSystemDiskResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ReplaceSystemDisk(request *ReplaceSystemDiskRequest) (resp } // ReplaceSystemDiskWithChan invokes the ecs.ReplaceSystemDisk API asynchronously -// api document: https://help.aliyun.com/api/ecs/replacesystemdisk.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ReplaceSystemDiskWithChan(request *ReplaceSystemDiskRequest) (<-chan *ReplaceSystemDiskResponse, <-chan error) { responseChan := make(chan *ReplaceSystemDiskResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ReplaceSystemDiskWithChan(request *ReplaceSystemDiskReques } // ReplaceSystemDiskWithCallback invokes the ecs.ReplaceSystemDisk API asynchronously -// api document: https://help.aliyun.com/api/ecs/replacesystemdisk.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ReplaceSystemDiskWithCallback(request *ReplaceSystemDiskRequest, callback func(response *ReplaceSystemDiskResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,29 +71,41 @@ func (client *Client) ReplaceSystemDiskWithCallback(request *ReplaceSystemDiskRe // ReplaceSystemDiskRequest is the request struct for api ReplaceSystemDisk type ReplaceSystemDiskRequest struct { *requests.RpcRequest - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ImageId string `position:"Query" name:"ImageId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - ClientToken string `position:"Query" name:"ClientToken"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - SecurityEnhancementStrategy string `position:"Query" name:"SecurityEnhancementStrategy"` - KeyPairName string `position:"Query" name:"KeyPairName"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Platform string `position:"Query" name:"Platform"` - Password string `position:"Query" name:"Password"` - InstanceId string `position:"Query" name:"InstanceId"` - PasswordInherit requests.Boolean `position:"Query" name:"PasswordInherit"` - SystemDiskSize requests.Integer `position:"Query" name:"SystemDisk.Size"` - DiskId string `position:"Query" name:"DiskId"` - UseAdditionalService requests.Boolean `position:"Query" name:"UseAdditionalService"` - Architecture string `position:"Query" name:"Architecture"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ImageId string `position:"Query" name:"ImageId"` + ClientToken string `position:"Query" name:"ClientToken"` + EncryptAlgorithm string `position:"Query" name:"EncryptAlgorithm"` + SecurityEnhancementStrategy string `position:"Query" name:"SecurityEnhancementStrategy"` + KeyPairName string `position:"Query" name:"KeyPairName"` + Platform string `position:"Query" name:"Platform"` + Password string `position:"Query" name:"Password"` + LoginAsNonRoot requests.Boolean `position:"Query" name:"LoginAsNonRoot"` + PasswordInherit requests.Boolean `position:"Query" name:"PasswordInherit"` + DiskId string `position:"Query" name:"DiskId"` + Arn *[]ReplaceSystemDiskArn `position:"Query" name:"Arn" type:"Repeated"` + Architecture string `position:"Query" name:"Architecture"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + SystemDiskSize requests.Integer `position:"Query" name:"SystemDisk.Size"` + Encrypted requests.Boolean `position:"Query" name:"Encrypted"` + KMSKeyId string `position:"Query" name:"KMSKeyId"` + UseAdditionalService requests.Boolean `position:"Query" name:"UseAdditionalService"` +} + +// ReplaceSystemDiskArn is a repeated param struct in ReplaceSystemDiskRequest +type ReplaceSystemDiskArn struct { + Rolearn string `name:"Rolearn"` + RoleType string `name:"RoleType"` + AssumeRoleFor string `name:"AssumeRoleFor"` } // ReplaceSystemDiskResponse is the response struct for api ReplaceSystemDisk type ReplaceSystemDiskResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` DiskId string `json:"DiskId" xml:"DiskId"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateReplaceSystemDiskRequest creates a request to invoke ReplaceSystemDisk API @@ -107,6 +114,7 @@ func CreateReplaceSystemDiskRequest() (request *ReplaceSystemDiskRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ReplaceSystemDisk", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/report_instances_status.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/report_instances_status.go index 49135a2d..e336b55a 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/report_instances_status.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/report_instances_status.go @@ -21,7 +21,6 @@ import ( ) // ReportInstancesStatus invokes the ecs.ReportInstancesStatus API synchronously -// api document: https://help.aliyun.com/api/ecs/reportinstancesstatus.html func (client *Client) ReportInstancesStatus(request *ReportInstancesStatusRequest) (response *ReportInstancesStatusResponse, err error) { response = CreateReportInstancesStatusResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ReportInstancesStatus(request *ReportInstancesStatusReques } // ReportInstancesStatusWithChan invokes the ecs.ReportInstancesStatus API asynchronously -// api document: https://help.aliyun.com/api/ecs/reportinstancesstatus.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ReportInstancesStatusWithChan(request *ReportInstancesStatusRequest) (<-chan *ReportInstancesStatusResponse, <-chan error) { responseChan := make(chan *ReportInstancesStatusResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ReportInstancesStatusWithChan(request *ReportInstancesStat } // ReportInstancesStatusWithCallback invokes the ecs.ReportInstancesStatus API asynchronously -// api document: https://help.aliyun.com/api/ecs/reportinstancesstatus.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ReportInstancesStatusWithCallback(request *ReportInstancesStatusRequest, callback func(response *ReportInstancesStatusResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -80,6 +75,7 @@ type ReportInstancesStatusRequest struct { ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` Description string `position:"Query" name:"Description"` StartTime string `position:"Query" name:"StartTime"` + IssueCategory string `position:"Query" name:"IssueCategory"` DiskId *[]string `position:"Query" name:"DiskId" type:"Repeated"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` @@ -101,6 +97,7 @@ func CreateReportInstancesStatusRequest() (request *ReportInstancesStatusRequest RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ReportInstancesStatus", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/reset_disk.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/reset_disk.go index 6a062f7e..0d3ba4f2 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/reset_disk.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/reset_disk.go @@ -21,7 +21,6 @@ import ( ) // ResetDisk invokes the ecs.ResetDisk API synchronously -// api document: https://help.aliyun.com/api/ecs/resetdisk.html func (client *Client) ResetDisk(request *ResetDiskRequest) (response *ResetDiskResponse, err error) { response = CreateResetDiskResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ResetDisk(request *ResetDiskRequest) (response *ResetDiskR } // ResetDiskWithChan invokes the ecs.ResetDisk API asynchronously -// api document: https://help.aliyun.com/api/ecs/resetdisk.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ResetDiskWithChan(request *ResetDiskRequest) (<-chan *ResetDiskResponse, <-chan error) { responseChan := make(chan *ResetDiskResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ResetDiskWithChan(request *ResetDiskRequest) (<-chan *Rese } // ResetDiskWithCallback invokes the ecs.ResetDisk API asynchronously -// api document: https://help.aliyun.com/api/ecs/resetdisk.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ResetDiskWithCallback(request *ResetDiskRequest, callback func(response *ResetDiskResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -78,9 +73,10 @@ type ResetDiskRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` SnapshotId string `position:"Query" name:"SnapshotId"` + DiskId string `position:"Query" name:"DiskId"` + DryRun requests.Boolean `position:"Query" name:"DryRun"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - DiskId string `position:"Query" name:"DiskId"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` } @@ -96,6 +92,7 @@ func CreateResetDiskRequest() (request *ResetDiskRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ResetDisk", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/reset_disks.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/reset_disks.go new file mode 100644 index 00000000..1fdac042 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/reset_disks.go @@ -0,0 +1,111 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ResetDisks invokes the ecs.ResetDisks API synchronously +func (client *Client) ResetDisks(request *ResetDisksRequest) (response *ResetDisksResponse, err error) { + response = CreateResetDisksResponse() + err = client.DoAction(request, response) + return +} + +// ResetDisksWithChan invokes the ecs.ResetDisks API asynchronously +func (client *Client) ResetDisksWithChan(request *ResetDisksRequest) (<-chan *ResetDisksResponse, <-chan error) { + responseChan := make(chan *ResetDisksResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ResetDisks(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ResetDisksWithCallback invokes the ecs.ResetDisks API asynchronously +func (client *Client) ResetDisksWithCallback(request *ResetDisksRequest, callback func(response *ResetDisksResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ResetDisksResponse + var err error + defer close(result) + response, err = client.ResetDisks(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ResetDisksRequest is the request struct for api ResetDisks +type ResetDisksRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DryRun requests.Boolean `position:"Query" name:"DryRun"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Disk *[]ResetDisksDisk `position:"Query" name:"Disk" type:"Repeated"` +} + +// ResetDisksDisk is a repeated param struct in ResetDisksRequest +type ResetDisksDisk struct { + SnapshotId string `name:"SnapshotId"` + DiskId string `name:"DiskId"` +} + +// ResetDisksResponse is the response struct for api ResetDisks +type ResetDisksResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + OperationProgressSet OperationProgressSetInResetDisks `json:"OperationProgressSet" xml:"OperationProgressSet"` +} + +// CreateResetDisksRequest creates a request to invoke ResetDisks API +func CreateResetDisksRequest() (request *ResetDisksRequest) { + request = &ResetDisksRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "ResetDisks", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateResetDisksResponse creates a response to parse from ResetDisks response +func CreateResetDisksResponse() (response *ResetDisksResponse) { + response = &ResetDisksResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/resize_disk.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/resize_disk.go index a8a44c94..bfe89955 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/resize_disk.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/resize_disk.go @@ -21,7 +21,6 @@ import ( ) // ResizeDisk invokes the ecs.ResizeDisk API synchronously -// api document: https://help.aliyun.com/api/ecs/resizedisk.html func (client *Client) ResizeDisk(request *ResizeDiskRequest) (response *ResizeDiskResponse, err error) { response = CreateResizeDiskResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ResizeDisk(request *ResizeDiskRequest) (response *ResizeDi } // ResizeDiskWithChan invokes the ecs.ResizeDisk API asynchronously -// api document: https://help.aliyun.com/api/ecs/resizedisk.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ResizeDiskWithChan(request *ResizeDiskRequest) (<-chan *ResizeDiskResponse, <-chan error) { responseChan := make(chan *ResizeDiskResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ResizeDiskWithChan(request *ResizeDiskRequest) (<-chan *Re } // ResizeDiskWithCallback invokes the ecs.ResizeDisk API asynchronously -// api document: https://help.aliyun.com/api/ecs/resizedisk.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ResizeDiskWithCallback(request *ResizeDiskRequest, callback func(response *ResizeDiskResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,18 +72,19 @@ func (client *Client) ResizeDiskWithCallback(request *ResizeDiskRequest, callbac type ResizeDiskRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` ClientToken string `position:"Query" name:"ClientToken"` + Type string `position:"Query" name:"Type"` + DiskId string `position:"Query" name:"DiskId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` NewSize requests.Integer `position:"Query" name:"NewSize"` - DiskId string `position:"Query" name:"DiskId"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Type string `position:"Query" name:"Type"` } // ResizeDiskResponse is the response struct for api ResizeDisk type ResizeDiskResponse struct { *responses.BaseResponse + OrderId string `json:"OrderId" xml:"OrderId"` RequestId string `json:"RequestId" xml:"RequestId"` } @@ -98,6 +94,7 @@ func CreateResizeDiskRequest() (request *ResizeDiskRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "ResizeDisk", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/revoke_security_group.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/revoke_security_group.go index c3bc4bfe..e30d05db 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/revoke_security_group.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/revoke_security_group.go @@ -21,7 +21,6 @@ import ( ) // RevokeSecurityGroup invokes the ecs.RevokeSecurityGroup API synchronously -// api document: https://help.aliyun.com/api/ecs/revokesecuritygroup.html func (client *Client) RevokeSecurityGroup(request *RevokeSecurityGroupRequest) (response *RevokeSecurityGroupResponse, err error) { response = CreateRevokeSecurityGroupResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) RevokeSecurityGroup(request *RevokeSecurityGroupRequest) ( } // RevokeSecurityGroupWithChan invokes the ecs.RevokeSecurityGroup API asynchronously -// api document: https://help.aliyun.com/api/ecs/revokesecuritygroup.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) RevokeSecurityGroupWithChan(request *RevokeSecurityGroupRequest) (<-chan *RevokeSecurityGroupResponse, <-chan error) { responseChan := make(chan *RevokeSecurityGroupResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) RevokeSecurityGroupWithChan(request *RevokeSecurityGroupRe } // RevokeSecurityGroupWithCallback invokes the ecs.RevokeSecurityGroup API asynchronously -// api document: https://help.aliyun.com/api/ecs/revokesecuritygroup.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) RevokeSecurityGroupWithCallback(request *RevokeSecurityGroupRequest, callback func(response *RevokeSecurityGroupResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,26 +71,48 @@ func (client *Client) RevokeSecurityGroupWithCallback(request *RevokeSecurityGro // RevokeSecurityGroupRequest is the request struct for api RevokeSecurityGroup type RevokeSecurityGroupRequest struct { *requests.RpcRequest - NicType string `position:"Query" name:"NicType"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - SourcePortRange string `position:"Query" name:"SourcePortRange"` - ClientToken string `position:"Query" name:"ClientToken"` - SecurityGroupId string `position:"Query" name:"SecurityGroupId"` - Description string `position:"Query" name:"Description"` - SourceGroupOwnerId requests.Integer `position:"Query" name:"SourceGroupOwnerId"` - SourceGroupOwnerAccount string `position:"Query" name:"SourceGroupOwnerAccount"` - Ipv6DestCidrIp string `position:"Query" name:"Ipv6DestCidrIp"` - Ipv6SourceCidrIp string `position:"Query" name:"Ipv6SourceCidrIp"` - Policy string `position:"Query" name:"Policy"` - PortRange string `position:"Query" name:"PortRange"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - IpProtocol string `position:"Query" name:"IpProtocol"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - SourceCidrIp string `position:"Query" name:"SourceCidrIp"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Priority string `position:"Query" name:"Priority"` - DestCidrIp string `position:"Query" name:"DestCidrIp"` - SourceGroupId string `position:"Query" name:"SourceGroupId"` + NicType string `position:"Query" name:"NicType"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SourcePrefixListId string `position:"Query" name:"SourcePrefixListId"` + SourcePortRange string `position:"Query" name:"SourcePortRange"` + ClientToken string `position:"Query" name:"ClientToken"` + SecurityGroupId string `position:"Query" name:"SecurityGroupId"` + Description string `position:"Query" name:"Description"` + SourceGroupOwnerId requests.Integer `position:"Query" name:"SourceGroupOwnerId"` + SourceGroupOwnerAccount string `position:"Query" name:"SourceGroupOwnerAccount"` + Permissions *[]RevokeSecurityGroupPermissions `position:"Query" name:"Permissions" type:"Repeated"` + Policy string `position:"Query" name:"Policy"` + Ipv6SourceCidrIp string `position:"Query" name:"Ipv6SourceCidrIp"` + Ipv6DestCidrIp string `position:"Query" name:"Ipv6DestCidrIp"` + PortRange string `position:"Query" name:"PortRange"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + IpProtocol string `position:"Query" name:"IpProtocol"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + SourceCidrIp string `position:"Query" name:"SourceCidrIp"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Priority string `position:"Query" name:"Priority"` + DestCidrIp string `position:"Query" name:"DestCidrIp"` + SourceGroupId string `position:"Query" name:"SourceGroupId"` + SecurityGroupRuleId *[]string `position:"Query" name:"SecurityGroupRuleId" type:"Repeated"` +} + +// RevokeSecurityGroupPermissions is a repeated param struct in RevokeSecurityGroupRequest +type RevokeSecurityGroupPermissions struct { + Policy string `name:"Policy"` + Priority string `name:"Priority"` + IpProtocol string `name:"IpProtocol"` + SourceCidrIp string `name:"SourceCidrIp"` + Ipv6SourceCidrIp string `name:"Ipv6SourceCidrIp"` + SourceGroupId string `name:"SourceGroupId"` + SourcePrefixListId string `name:"SourcePrefixListId"` + PortRange string `name:"PortRange"` + DestCidrIp string `name:"DestCidrIp"` + Ipv6DestCidrIp string `name:"Ipv6DestCidrIp"` + SourcePortRange string `name:"SourcePortRange"` + SourceGroupOwnerAccount string `name:"SourceGroupOwnerAccount"` + SourceGroupOwnerId string `name:"SourceGroupOwnerId"` + NicType string `name:"NicType"` + Description string `name:"Description"` } // RevokeSecurityGroupResponse is the response struct for api RevokeSecurityGroup @@ -110,6 +127,7 @@ func CreateRevokeSecurityGroupRequest() (request *RevokeSecurityGroupRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "RevokeSecurityGroup", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/revoke_security_group_egress.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/revoke_security_group_egress.go index be143335..9ce00507 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/revoke_security_group_egress.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/revoke_security_group_egress.go @@ -21,7 +21,6 @@ import ( ) // RevokeSecurityGroupEgress invokes the ecs.RevokeSecurityGroupEgress API synchronously -// api document: https://help.aliyun.com/api/ecs/revokesecuritygroupegress.html func (client *Client) RevokeSecurityGroupEgress(request *RevokeSecurityGroupEgressRequest) (response *RevokeSecurityGroupEgressResponse, err error) { response = CreateRevokeSecurityGroupEgressResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) RevokeSecurityGroupEgress(request *RevokeSecurityGroupEgre } // RevokeSecurityGroupEgressWithChan invokes the ecs.RevokeSecurityGroupEgress API asynchronously -// api document: https://help.aliyun.com/api/ecs/revokesecuritygroupegress.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) RevokeSecurityGroupEgressWithChan(request *RevokeSecurityGroupEgressRequest) (<-chan *RevokeSecurityGroupEgressResponse, <-chan error) { responseChan := make(chan *RevokeSecurityGroupEgressResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) RevokeSecurityGroupEgressWithChan(request *RevokeSecurityG } // RevokeSecurityGroupEgressWithCallback invokes the ecs.RevokeSecurityGroupEgress API asynchronously -// api document: https://help.aliyun.com/api/ecs/revokesecuritygroupegress.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) RevokeSecurityGroupEgressWithCallback(request *RevokeSecurityGroupEgressRequest, callback func(response *RevokeSecurityGroupEgressResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,26 +71,48 @@ func (client *Client) RevokeSecurityGroupEgressWithCallback(request *RevokeSecur // RevokeSecurityGroupEgressRequest is the request struct for api RevokeSecurityGroupEgress type RevokeSecurityGroupEgressRequest struct { *requests.RpcRequest - NicType string `position:"Query" name:"NicType"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - SourcePortRange string `position:"Query" name:"SourcePortRange"` - ClientToken string `position:"Query" name:"ClientToken"` - SecurityGroupId string `position:"Query" name:"SecurityGroupId"` - Description string `position:"Query" name:"Description"` - Ipv6DestCidrIp string `position:"Query" name:"Ipv6DestCidrIp"` - Ipv6SourceCidrIp string `position:"Query" name:"Ipv6SourceCidrIp"` - Policy string `position:"Query" name:"Policy"` - PortRange string `position:"Query" name:"PortRange"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - IpProtocol string `position:"Query" name:"IpProtocol"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - SourceCidrIp string `position:"Query" name:"SourceCidrIp"` - DestGroupId string `position:"Query" name:"DestGroupId"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - DestGroupOwnerAccount string `position:"Query" name:"DestGroupOwnerAccount"` - Priority string `position:"Query" name:"Priority"` - DestCidrIp string `position:"Query" name:"DestCidrIp"` - DestGroupOwnerId requests.Integer `position:"Query" name:"DestGroupOwnerId"` + NicType string `position:"Query" name:"NicType"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + SourcePortRange string `position:"Query" name:"SourcePortRange"` + ClientToken string `position:"Query" name:"ClientToken"` + DestPrefixListId string `position:"Query" name:"DestPrefixListId"` + SecurityGroupId string `position:"Query" name:"SecurityGroupId"` + Description string `position:"Query" name:"Description"` + Permissions *[]RevokeSecurityGroupEgressPermissions `position:"Query" name:"Permissions" type:"Repeated"` + Policy string `position:"Query" name:"Policy"` + Ipv6DestCidrIp string `position:"Query" name:"Ipv6DestCidrIp"` + Ipv6SourceCidrIp string `position:"Query" name:"Ipv6SourceCidrIp"` + PortRange string `position:"Query" name:"PortRange"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + IpProtocol string `position:"Query" name:"IpProtocol"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + SourceCidrIp string `position:"Query" name:"SourceCidrIp"` + DestGroupId string `position:"Query" name:"DestGroupId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Priority string `position:"Query" name:"Priority"` + DestGroupOwnerAccount string `position:"Query" name:"DestGroupOwnerAccount"` + DestCidrIp string `position:"Query" name:"DestCidrIp"` + DestGroupOwnerId requests.Integer `position:"Query" name:"DestGroupOwnerId"` + SecurityGroupRuleId *[]string `position:"Query" name:"SecurityGroupRuleId" type:"Repeated"` +} + +// RevokeSecurityGroupEgressPermissions is a repeated param struct in RevokeSecurityGroupEgressRequest +type RevokeSecurityGroupEgressPermissions struct { + Policy string `name:"Policy"` + Priority string `name:"Priority"` + IpProtocol string `name:"IpProtocol"` + DestCidrIp string `name:"DestCidrIp"` + Ipv6DestCidrIp string `name:"Ipv6DestCidrIp"` + DestGroupId string `name:"DestGroupId"` + DestPrefixListId string `name:"DestPrefixListId"` + PortRange string `name:"PortRange"` + SourceCidrIp string `name:"SourceCidrIp"` + Ipv6SourceCidrIp string `name:"Ipv6SourceCidrIp"` + SourcePortRange string `name:"SourcePortRange"` + DestGroupOwnerAccount string `name:"DestGroupOwnerAccount"` + DestGroupOwnerId string `name:"DestGroupOwnerId"` + NicType string `name:"NicType"` + Description string `name:"Description"` } // RevokeSecurityGroupEgressResponse is the response struct for api RevokeSecurityGroupEgress @@ -110,6 +127,7 @@ func CreateRevokeSecurityGroupEgressRequest() (request *RevokeSecurityGroupEgres RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "RevokeSecurityGroupEgress", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/run_command.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/run_command.go new file mode 100644 index 00000000..fd08c906 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/run_command.go @@ -0,0 +1,138 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// RunCommand invokes the ecs.RunCommand API synchronously +func (client *Client) RunCommand(request *RunCommandRequest) (response *RunCommandResponse, err error) { + response = CreateRunCommandResponse() + err = client.DoAction(request, response) + return +} + +// RunCommandWithChan invokes the ecs.RunCommand API asynchronously +func (client *Client) RunCommandWithChan(request *RunCommandRequest) (<-chan *RunCommandResponse, <-chan error) { + responseChan := make(chan *RunCommandResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RunCommand(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RunCommandWithCallback invokes the ecs.RunCommand API asynchronously +func (client *Client) RunCommandWithCallback(request *RunCommandRequest, callback func(response *RunCommandResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RunCommandResponse + var err error + defer close(result) + response, err = client.RunCommand(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RunCommandRequest is the request struct for api RunCommand +type RunCommandRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + WorkingDir string `position:"Query" name:"WorkingDir"` + Type string `position:"Query" name:"Type"` + Frequency string `position:"Query" name:"Frequency"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + RepeatMode string `position:"Query" name:"RepeatMode"` + Tag *[]RunCommandTag `position:"Query" name:"Tag" type:"Repeated"` + KeepCommand requests.Boolean `position:"Query" name:"KeepCommand"` + Timed requests.Boolean `position:"Query" name:"Timed"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId *[]string `position:"Query" name:"InstanceId" type:"Repeated"` + Name string `position:"Query" name:"Name"` + ContainerId string `position:"Query" name:"ContainerId"` + Parameters map[string]interface{} `position:"Query" name:"Parameters"` + ContainerName string `position:"Query" name:"ContainerName"` + ClientToken string `position:"Query" name:"ClientToken"` + Description string `position:"Query" name:"Description"` + CommandContent string `position:"Query" name:"CommandContent"` + Timeout requests.Integer `position:"Query" name:"Timeout"` + ContentEncoding string `position:"Query" name:"ContentEncoding"` + WindowsPasswordName string `position:"Query" name:"WindowsPasswordName"` + ResourceTag *[]RunCommandResourceTag `position:"Query" name:"ResourceTag" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + EnableParameter requests.Boolean `position:"Query" name:"EnableParameter"` + Username string `position:"Query" name:"Username"` +} + +// RunCommandTag is a repeated param struct in RunCommandRequest +type RunCommandTag struct { + Key string `name:"Key"` + Value string `name:"Value"` +} + +// RunCommandResourceTag is a repeated param struct in RunCommandRequest +type RunCommandResourceTag struct { + Key string `name:"Key"` + Value string `name:"Value"` +} + +// RunCommandResponse is the response struct for api RunCommand +type RunCommandResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + CommandId string `json:"CommandId" xml:"CommandId"` + InvokeId string `json:"InvokeId" xml:"InvokeId"` +} + +// CreateRunCommandRequest creates a request to invoke RunCommand API +func CreateRunCommandRequest() (request *RunCommandRequest) { + request = &RunCommandRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "RunCommand", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateRunCommandResponse creates a response to parse from RunCommand response +func CreateRunCommandResponse() (response *RunCommandResponse) { + response = &RunCommandResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/run_instances.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/run_instances.go index 8215d838..6f3b2fb1 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/run_instances.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/run_instances.go @@ -21,7 +21,6 @@ import ( ) // RunInstances invokes the ecs.RunInstances API synchronously -// api document: https://help.aliyun.com/api/ecs/runinstances.html func (client *Client) RunInstances(request *RunInstancesRequest) (response *RunInstancesResponse, err error) { response = CreateRunInstancesResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) RunInstances(request *RunInstancesRequest) (response *RunI } // RunInstancesWithChan invokes the ecs.RunInstances API asynchronously -// api document: https://help.aliyun.com/api/ecs/runinstances.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) RunInstancesWithChan(request *RunInstancesRequest) (<-chan *RunInstancesResponse, <-chan error) { responseChan := make(chan *RunInstancesResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) RunInstancesWithChan(request *RunInstancesRequest) (<-chan } // RunInstancesWithCallback invokes the ecs.RunInstances API asynchronously -// api document: https://help.aliyun.com/api/ecs/runinstances.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) RunInstancesWithCallback(request *RunInstancesRequest, callback func(response *RunInstancesResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,73 +71,130 @@ func (client *Client) RunInstancesWithCallback(request *RunInstancesRequest, cal // RunInstancesRequest is the request struct for api RunInstances type RunInstancesRequest struct { *requests.RpcRequest - LaunchTemplateName string `position:"Query" name:"LaunchTemplateName"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - UniqueSuffix requests.Boolean `position:"Query" name:"UniqueSuffix"` - HpcClusterId string `position:"Query" name:"HpcClusterId"` - SecurityEnhancementStrategy string `position:"Query" name:"SecurityEnhancementStrategy"` - KeyPairName string `position:"Query" name:"KeyPairName"` - SpotPriceLimit requests.Float `position:"Query" name:"SpotPriceLimit"` - DeletionProtection requests.Boolean `position:"Query" name:"DeletionProtection"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - HostName string `position:"Query" name:"HostName"` - Password string `position:"Query" name:"Password"` - StorageSetPartitionNumber requests.Integer `position:"Query" name:"StorageSetPartitionNumber"` - Tag *[]RunInstancesTag `position:"Query" name:"Tag" type:"Repeated"` - AutoRenewPeriod requests.Integer `position:"Query" name:"AutoRenewPeriod"` - CpuOptionsCore requests.Integer `position:"Query" name:"CpuOptions.Core"` - Period requests.Integer `position:"Query" name:"Period"` - DryRun requests.Boolean `position:"Query" name:"DryRun"` - LaunchTemplateId string `position:"Query" name:"LaunchTemplateId"` - Ipv6AddressCount requests.Integer `position:"Query" name:"Ipv6AddressCount"` - CpuOptionsNuma string `position:"Query" name:"CpuOptions.Numa"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - CapacityReservationPreference string `position:"Query" name:"CapacityReservationPreference"` - VSwitchId string `position:"Query" name:"VSwitchId"` - SpotStrategy string `position:"Query" name:"SpotStrategy"` - PrivateIpAddress string `position:"Query" name:"PrivateIpAddress"` - PeriodUnit string `position:"Query" name:"PeriodUnit"` - InstanceName string `position:"Query" name:"InstanceName"` - AutoRenew requests.Boolean `position:"Query" name:"AutoRenew"` - InternetChargeType string `position:"Query" name:"InternetChargeType"` - ZoneId string `position:"Query" name:"ZoneId"` - Ipv6Address *[]string `position:"Query" name:"Ipv6Address" type:"Repeated"` - InternetMaxBandwidthIn requests.Integer `position:"Query" name:"InternetMaxBandwidthIn"` - Affinity string `position:"Query" name:"Affinity"` - ImageId string `position:"Query" name:"ImageId"` - SpotInterruptionBehavior string `position:"Query" name:"SpotInterruptionBehavior"` - ClientToken string `position:"Query" name:"ClientToken"` - IoOptimized string `position:"Query" name:"IoOptimized"` - SecurityGroupId string `position:"Query" name:"SecurityGroupId"` - InternetMaxBandwidthOut requests.Integer `position:"Query" name:"InternetMaxBandwidthOut"` - Description string `position:"Query" name:"Description"` - CpuOptionsThreadsPerCore requests.Integer `position:"Query" name:"CpuOptions.ThreadsPerCore"` - SystemDiskCategory string `position:"Query" name:"SystemDisk.Category"` - CapacityReservationId string `position:"Query" name:"CapacityReservationId"` - SystemDiskPerformanceLevel string `position:"Query" name:"SystemDisk.PerformanceLevel"` - UserData string `position:"Query" name:"UserData"` - PasswordInherit requests.Boolean `position:"Query" name:"PasswordInherit"` - InstanceType string `position:"Query" name:"InstanceType"` - HibernationConfigured requests.Boolean `position:"Query" name:"HibernationConfigured"` - InstanceChargeType string `position:"Query" name:"InstanceChargeType"` - NetworkInterface *[]RunInstancesNetworkInterface `position:"Query" name:"NetworkInterface" type:"Repeated"` - DeploymentSetId string `position:"Query" name:"DeploymentSetId"` - Amount requests.Integer `position:"Query" name:"Amount"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - Tenancy string `position:"Query" name:"Tenancy"` - SystemDiskDiskName string `position:"Query" name:"SystemDisk.DiskName"` - RamRoleName string `position:"Query" name:"RamRoleName"` - AutoReleaseTime string `position:"Query" name:"AutoReleaseTime"` - DedicatedHostId string `position:"Query" name:"DedicatedHostId"` - CreditSpecification string `position:"Query" name:"CreditSpecification"` - SecurityGroupIds *[]string `position:"Query" name:"SecurityGroupIds" type:"Repeated"` - SpotDuration requests.Integer `position:"Query" name:"SpotDuration"` - DataDisk *[]RunInstancesDataDisk `position:"Query" name:"DataDisk" type:"Repeated"` - LaunchTemplateVersion requests.Integer `position:"Query" name:"LaunchTemplateVersion"` - StorageSetId string `position:"Query" name:"StorageSetId"` - SystemDiskSize string `position:"Query" name:"SystemDisk.Size"` - SystemDiskDescription string `position:"Query" name:"SystemDisk.Description"` + UniqueSuffix requests.Boolean `position:"Query" name:"UniqueSuffix"` + SecurityEnhancementStrategy string `position:"Query" name:"SecurityEnhancementStrategy"` + MinAmount requests.Integer `position:"Query" name:"MinAmount"` + DeletionProtection requests.Boolean `position:"Query" name:"DeletionProtection"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + PrivatePoolOptionsMatchCriteria string `position:"Query" name:"PrivatePoolOptions.MatchCriteria"` + HostName string `position:"Query" name:"HostName"` + Password string `position:"Query" name:"Password"` + SystemDisk RunInstancesSystemDisk `position:"Query" name:"SystemDisk" type:"Struct"` + ImageOptions RunInstancesImageOptions `position:"Query" name:"ImageOptions" type:"Struct"` + DeploymentSetGroupNo requests.Integer `position:"Query" name:"DeploymentSetGroupNo"` + SystemDiskAutoSnapshotPolicyId string `position:"Query" name:"SystemDisk.AutoSnapshotPolicyId"` + CpuOptionsCore requests.Integer `position:"Query" name:"CpuOptions.Core"` + Period requests.Integer `position:"Query" name:"Period"` + DryRun requests.Boolean `position:"Query" name:"DryRun"` + CpuOptionsNuma string `position:"Query" name:"CpuOptions.Numa"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + SpotStrategy string `position:"Query" name:"SpotStrategy"` + PrivateIpAddress string `position:"Query" name:"PrivateIpAddress"` + PeriodUnit string `position:"Query" name:"PeriodUnit"` + AutoRenew requests.Boolean `position:"Query" name:"AutoRenew"` + InternetChargeType string `position:"Query" name:"InternetChargeType"` + InternetMaxBandwidthIn requests.Integer `position:"Query" name:"InternetMaxBandwidthIn"` + Affinity string `position:"Query" name:"Affinity"` + ImageId string `position:"Query" name:"ImageId"` + SpotInterruptionBehavior string `position:"Query" name:"SpotInterruptionBehavior"` + NetworkInterfaceQueueNumber requests.Integer `position:"Query" name:"NetworkInterfaceQueueNumber"` + SystemTag *[]RunInstancesSystemTag `position:"Query" name:"SystemTag" type:"Repeated"` + IoOptimized string `position:"Query" name:"IoOptimized"` + SecurityGroupId string `position:"Query" name:"SecurityGroupId"` + HibernationOptionsConfigured requests.Boolean `position:"Query" name:"HibernationOptions.Configured"` + SystemDiskPerformanceLevel string `position:"Query" name:"SystemDisk.PerformanceLevel"` + PasswordInherit requests.Boolean `position:"Query" name:"PasswordInherit"` + InstanceType string `position:"Query" name:"InstanceType"` + Arn *[]RunInstancesArn `position:"Query" name:"Arn" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + SchedulerOptionsDedicatedHostClusterId string `position:"Query" name:"SchedulerOptions.DedicatedHostClusterId"` + SystemDiskDiskName string `position:"Query" name:"SystemDisk.DiskName"` + DedicatedHostId string `position:"Query" name:"DedicatedHostId"` + SpotDuration requests.Integer `position:"Query" name:"SpotDuration"` + SecurityGroupIds *[]string `position:"Query" name:"SecurityGroupIds" type:"Repeated"` + NetworkOptions RunInstancesNetworkOptions `position:"Query" name:"NetworkOptions" type:"Struct"` + SystemDiskSize string `position:"Query" name:"SystemDisk.Size"` + ImageFamily string `position:"Query" name:"ImageFamily"` + LaunchTemplateName string `position:"Query" name:"LaunchTemplateName"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + HpcClusterId string `position:"Query" name:"HpcClusterId"` + HttpPutResponseHopLimit requests.Integer `position:"Query" name:"HttpPutResponseHopLimit"` + Isp string `position:"Query" name:"Isp"` + KeyPairName string `position:"Query" name:"KeyPairName"` + SpotPriceLimit requests.Float `position:"Query" name:"SpotPriceLimit"` + CpuOptionsTopologyType string `position:"Query" name:"CpuOptions.TopologyType"` + StorageSetPartitionNumber requests.Integer `position:"Query" name:"StorageSetPartitionNumber"` + Tag *[]RunInstancesTag `position:"Query" name:"Tag" type:"Repeated"` + PrivatePoolOptionsId string `position:"Query" name:"PrivatePoolOptions.Id"` + AutoRenewPeriod requests.Integer `position:"Query" name:"AutoRenewPeriod"` + LaunchTemplateId string `position:"Query" name:"LaunchTemplateId"` + Ipv6AddressCount requests.Integer `position:"Query" name:"Ipv6AddressCount"` + HostNames *[]string `position:"Query" name:"HostNames" type:"Repeated"` + CapacityReservationPreference string `position:"Query" name:"CapacityReservationPreference"` + VSwitchId string `position:"Query" name:"VSwitchId"` + InstanceName string `position:"Query" name:"InstanceName"` + ZoneId string `position:"Query" name:"ZoneId"` + Ipv6Address *[]string `position:"Query" name:"Ipv6Address" type:"Repeated"` + SecurityOptionsConfidentialComputingMode string `position:"Query" name:"SecurityOptions.ConfidentialComputingMode"` + ClientToken string `position:"Query" name:"ClientToken"` + InternetMaxBandwidthOut requests.Integer `position:"Query" name:"InternetMaxBandwidthOut"` + Description string `position:"Query" name:"Description"` + CpuOptionsThreadsPerCore requests.Integer `position:"Query" name:"CpuOptions.ThreadsPerCore"` + SystemDiskCategory string `position:"Query" name:"SystemDisk.Category"` + SecurityOptionsTrustedSystemMode string `position:"Query" name:"SecurityOptions.TrustedSystemMode"` + CapacityReservationId string `position:"Query" name:"CapacityReservationId"` + UserData string `position:"Query" name:"UserData"` + HttpEndpoint string `position:"Query" name:"HttpEndpoint"` + InstanceChargeType string `position:"Query" name:"InstanceChargeType"` + DeploymentSetId string `position:"Query" name:"DeploymentSetId"` + NetworkInterface *[]RunInstancesNetworkInterface `position:"Query" name:"NetworkInterface" type:"Repeated"` + Amount requests.Integer `position:"Query" name:"Amount"` + AutoPay requests.Boolean `position:"Query" name:"AutoPay"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Tenancy string `position:"Query" name:"Tenancy"` + RamRoleName string `position:"Query" name:"RamRoleName"` + AutoReleaseTime string `position:"Query" name:"AutoReleaseTime"` + CreditSpecification string `position:"Query" name:"CreditSpecification"` + LaunchTemplateVersion requests.Integer `position:"Query" name:"LaunchTemplateVersion"` + SchedulerOptionsManagedPrivateSpaceId string `position:"Query" name:"SchedulerOptions.ManagedPrivateSpaceId"` + DataDisk *[]RunInstancesDataDisk `position:"Query" name:"DataDisk" type:"Repeated"` + StorageSetId string `position:"Query" name:"StorageSetId"` + HttpTokens string `position:"Query" name:"HttpTokens"` + SystemDiskDescription string `position:"Query" name:"SystemDisk.Description"` +} + +// RunInstancesSystemDisk is a repeated param struct in RunInstancesRequest +type RunInstancesSystemDisk struct { + StorageClusterId string `name:"StorageClusterId"` + ProvisionedIops string `name:"ProvisionedIops"` + BurstingEnabled string `name:"BurstingEnabled"` + Encrypted string `name:"Encrypted"` + KMSKeyId string `name:"KMSKeyId"` + EncryptAlgorithm string `name:"EncryptAlgorithm"` +} + +// RunInstancesImageOptions is a repeated param struct in RunInstancesRequest +type RunInstancesImageOptions struct { + LoginAsNonRoot string `name:"LoginAsNonRoot"` +} + +// RunInstancesSystemTag is a repeated param struct in RunInstancesRequest +type RunInstancesSystemTag struct { + Key string `name:"Key"` + Value string `name:"Value"` + Scope string `name:"Scope"` +} + +// RunInstancesArn is a repeated param struct in RunInstancesRequest +type RunInstancesArn struct { + RoleType string `name:"RoleType"` + Rolearn string `name:"Rolearn"` + AssumeRoleFor string `name:"AssumeRoleFor"` +} + +// RunInstancesNetworkOptions is a repeated param struct in RunInstancesRequest +type RunInstancesNetworkOptions struct { + EnableJumboFrame string `name:"EnableJumboFrame"` } // RunInstancesTag is a repeated param struct in RunInstancesRequest @@ -153,31 +205,49 @@ type RunInstancesTag struct { // RunInstancesNetworkInterface is a repeated param struct in RunInstancesRequest type RunInstancesNetworkInterface struct { - PrimaryIpAddress string `name:"PrimaryIpAddress"` - VSwitchId string `name:"VSwitchId"` - SecurityGroupId string `name:"SecurityGroupId"` - NetworkInterfaceName string `name:"NetworkInterfaceName"` - Description string `name:"Description"` + VSwitchId string `name:"VSwitchId"` + NetworkInterfaceName string `name:"NetworkInterfaceName"` + Description string `name:"Description"` + SecurityGroupId string `name:"SecurityGroupId"` + PrimaryIpAddress string `name:"PrimaryIpAddress"` + QueueNumber string `name:"QueueNumber"` + SecurityGroupIds *[]string `name:"SecurityGroupIds" type:"Repeated"` + NetworkInterfaceTrafficMode string `name:"NetworkInterfaceTrafficMode"` + QueuePairNumber string `name:"QueuePairNumber"` + InstanceType string `name:"InstanceType"` + Ipv6AddressCount string `name:"Ipv6AddressCount"` + Ipv6Address *[]string `name:"Ipv6Address" type:"Repeated"` + NetworkCardIndex string `name:"NetworkCardIndex"` + DeleteOnRelease string `name:"DeleteOnRelease"` + NetworkInterfaceId string `name:"NetworkInterfaceId"` + RxQueueSize string `name:"RxQueueSize"` + TxQueueSize string `name:"TxQueueSize"` } // RunInstancesDataDisk is a repeated param struct in RunInstancesRequest type RunInstancesDataDisk struct { - Size string `name:"Size"` - SnapshotId string `name:"SnapshotId"` - Category string `name:"Category"` - Encrypted string `name:"Encrypted"` - KMSKeyId string `name:"KMSKeyId"` - DiskName string `name:"DiskName"` - Description string `name:"Description"` - Device string `name:"Device"` - DeleteWithInstance string `name:"DeleteWithInstance"` - PerformanceLevel string `name:"PerformanceLevel"` + PerformanceLevel string `name:"PerformanceLevel"` + AutoSnapshotPolicyId string `name:"AutoSnapshotPolicyId"` + Encrypted string `name:"Encrypted"` + Description string `name:"Description"` + SnapshotId string `name:"SnapshotId"` + Device string `name:"Device"` + Size string `name:"Size"` + DiskName string `name:"DiskName"` + Category string `name:"Category"` + EncryptAlgorithm string `name:"EncryptAlgorithm"` + DeleteWithInstance string `name:"DeleteWithInstance"` + KMSKeyId string `name:"KMSKeyId"` + StorageClusterId string `name:"StorageClusterId"` + ProvisionedIops string `name:"ProvisionedIops"` + BurstingEnabled string `name:"BurstingEnabled"` } // RunInstancesResponse is the response struct for api RunInstances type RunInstancesResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` + OrderId string `json:"OrderId" xml:"OrderId"` TradePrice float64 `json:"TradePrice" xml:"TradePrice"` InstanceIdSets InstanceIdSets `json:"InstanceIdSets" xml:"InstanceIdSets"` } @@ -188,6 +258,7 @@ func CreateRunInstancesRequest() (request *RunInstancesRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "RunInstances", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/send_file.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/send_file.go new file mode 100644 index 00000000..b92ac974 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/send_file.go @@ -0,0 +1,122 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SendFile invokes the ecs.SendFile API synchronously +func (client *Client) SendFile(request *SendFileRequest) (response *SendFileResponse, err error) { + response = CreateSendFileResponse() + err = client.DoAction(request, response) + return +} + +// SendFileWithChan invokes the ecs.SendFile API asynchronously +func (client *Client) SendFileWithChan(request *SendFileRequest) (<-chan *SendFileResponse, <-chan error) { + responseChan := make(chan *SendFileResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SendFile(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SendFileWithCallback invokes the ecs.SendFile API asynchronously +func (client *Client) SendFileWithCallback(request *SendFileRequest, callback func(response *SendFileResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SendFileResponse + var err error + defer close(result) + response, err = client.SendFile(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SendFileRequest is the request struct for api SendFile +type SendFileRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Description string `position:"Query" name:"Description"` + Timeout requests.Integer `position:"Query" name:"Timeout"` + Content string `position:"Query" name:"Content"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + FileOwner string `position:"Query" name:"FileOwner"` + Tag *[]SendFileTag `position:"Query" name:"Tag" type:"Repeated"` + Overwrite requests.Boolean `position:"Query" name:"Overwrite"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + FileMode string `position:"Query" name:"FileMode"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ContentType string `position:"Query" name:"ContentType"` + InstanceId *[]string `position:"Query" name:"InstanceId" type:"Repeated"` + Name string `position:"Query" name:"Name"` + FileGroup string `position:"Query" name:"FileGroup"` + TargetDir string `position:"Query" name:"TargetDir"` +} + +// SendFileTag is a repeated param struct in SendFileRequest +type SendFileTag struct { + Key string `name:"Key"` + Value string `name:"Value"` +} + +// SendFileResponse is the response struct for api SendFile +type SendFileResponse struct { + *responses.BaseResponse + InvokeId string `json:"InvokeId" xml:"InvokeId"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSendFileRequest creates a request to invoke SendFile API +func CreateSendFileRequest() (request *SendFileRequest) { + request = &SendFileRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "SendFile", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateSendFileResponse creates a response to parse from SendFile response +func CreateSendFileResponse() (response *SendFileResponse) { + response = &SendFileResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/start_elasticity_assurance.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/start_elasticity_assurance.go new file mode 100644 index 00000000..b92721e3 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/start_elasticity_assurance.go @@ -0,0 +1,103 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// StartElasticityAssurance invokes the ecs.StartElasticityAssurance API synchronously +func (client *Client) StartElasticityAssurance(request *StartElasticityAssuranceRequest) (response *StartElasticityAssuranceResponse, err error) { + response = CreateStartElasticityAssuranceResponse() + err = client.DoAction(request, response) + return +} + +// StartElasticityAssuranceWithChan invokes the ecs.StartElasticityAssurance API asynchronously +func (client *Client) StartElasticityAssuranceWithChan(request *StartElasticityAssuranceRequest) (<-chan *StartElasticityAssuranceResponse, <-chan error) { + responseChan := make(chan *StartElasticityAssuranceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StartElasticityAssurance(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StartElasticityAssuranceWithCallback invokes the ecs.StartElasticityAssurance API asynchronously +func (client *Client) StartElasticityAssuranceWithCallback(request *StartElasticityAssuranceRequest, callback func(response *StartElasticityAssuranceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StartElasticityAssuranceResponse + var err error + defer close(result) + response, err = client.StartElasticityAssurance(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StartElasticityAssuranceRequest is the request struct for api StartElasticityAssurance +type StartElasticityAssuranceRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PrivatePoolOptionsId string `position:"Query" name:"PrivatePoolOptions.Id"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// StartElasticityAssuranceResponse is the response struct for api StartElasticityAssurance +type StartElasticityAssuranceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateStartElasticityAssuranceRequest creates a request to invoke StartElasticityAssurance API +func CreateStartElasticityAssuranceRequest() (request *StartElasticityAssuranceRequest) { + request = &StartElasticityAssuranceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "StartElasticityAssurance", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateStartElasticityAssuranceResponse creates a response to parse from StartElasticityAssurance response +func CreateStartElasticityAssuranceResponse() (response *StartElasticityAssuranceResponse) { + response = &StartElasticityAssuranceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/start_image_pipeline_execution.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/start_image_pipeline_execution.go new file mode 100644 index 00000000..04afe3b8 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/start_image_pipeline_execution.go @@ -0,0 +1,112 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// StartImagePipelineExecution invokes the ecs.StartImagePipelineExecution API synchronously +func (client *Client) StartImagePipelineExecution(request *StartImagePipelineExecutionRequest) (response *StartImagePipelineExecutionResponse, err error) { + response = CreateStartImagePipelineExecutionResponse() + err = client.DoAction(request, response) + return +} + +// StartImagePipelineExecutionWithChan invokes the ecs.StartImagePipelineExecution API asynchronously +func (client *Client) StartImagePipelineExecutionWithChan(request *StartImagePipelineExecutionRequest) (<-chan *StartImagePipelineExecutionResponse, <-chan error) { + responseChan := make(chan *StartImagePipelineExecutionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StartImagePipelineExecution(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StartImagePipelineExecutionWithCallback invokes the ecs.StartImagePipelineExecution API asynchronously +func (client *Client) StartImagePipelineExecutionWithCallback(request *StartImagePipelineExecutionRequest, callback func(response *StartImagePipelineExecutionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StartImagePipelineExecutionResponse + var err error + defer close(result) + response, err = client.StartImagePipelineExecution(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StartImagePipelineExecutionRequest is the request struct for api StartImagePipelineExecution +type StartImagePipelineExecutionRequest struct { + *requests.RpcRequest + ImagePipelineId string `position:"Query" name:"ImagePipelineId"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ClientToken string `position:"Query" name:"ClientToken"` + TemplateTag *[]StartImagePipelineExecutionTemplateTag `position:"Query" name:"TemplateTag" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// StartImagePipelineExecutionTemplateTag is a repeated param struct in StartImagePipelineExecutionRequest +type StartImagePipelineExecutionTemplateTag struct { + Key string `name:"Key"` + Value string `name:"Value"` +} + +// StartImagePipelineExecutionResponse is the response struct for api StartImagePipelineExecution +type StartImagePipelineExecutionResponse struct { + *responses.BaseResponse + ExecutionId string `json:"ExecutionId" xml:"ExecutionId"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateStartImagePipelineExecutionRequest creates a request to invoke StartImagePipelineExecution API +func CreateStartImagePipelineExecutionRequest() (request *StartImagePipelineExecutionRequest) { + request = &StartImagePipelineExecutionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "StartImagePipelineExecution", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateStartImagePipelineExecutionResponse creates a response to parse from StartImagePipelineExecution response +func CreateStartImagePipelineExecutionResponse() (response *StartImagePipelineExecutionResponse) { + response = &StartImagePipelineExecutionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/start_instance.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/start_instance.go index 1fece7fa..eb39f0b9 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/start_instance.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/start_instance.go @@ -21,7 +21,6 @@ import ( ) // StartInstance invokes the ecs.StartInstance API synchronously -// api document: https://help.aliyun.com/api/ecs/startinstance.html func (client *Client) StartInstance(request *StartInstanceRequest) (response *StartInstanceResponse, err error) { response = CreateStartInstanceResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) StartInstance(request *StartInstanceRequest) (response *St } // StartInstanceWithChan invokes the ecs.StartInstance API asynchronously -// api document: https://help.aliyun.com/api/ecs/startinstance.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) StartInstanceWithChan(request *StartInstanceRequest) (<-chan *StartInstanceResponse, <-chan error) { responseChan := make(chan *StartInstanceResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) StartInstanceWithChan(request *StartInstanceRequest) (<-ch } // StartInstanceWithCallback invokes the ecs.StartInstance API asynchronously -// api document: https://help.aliyun.com/api/ecs/startinstance.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) StartInstanceWithCallback(request *StartInstanceRequest, callback func(response *StartInstanceResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,14 +71,13 @@ func (client *Client) StartInstanceWithCallback(request *StartInstanceRequest, c // StartInstanceRequest is the request struct for api StartInstance type StartInstanceRequest struct { *requests.RpcRequest - SourceRegionId string `position:"Query" name:"SourceRegionId"` - InitLocalDisk requests.Boolean `position:"Query" name:"InitLocalDisk"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` + InitLocalDisk requests.Boolean `position:"Query" name:"InitLocalDisk"` DryRun requests.Boolean `position:"Query" name:"DryRun"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` } // StartInstanceResponse is the response struct for api StartInstance @@ -98,6 +92,7 @@ func CreateStartInstanceRequest() (request *StartInstanceRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "StartInstance", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/start_instances.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/start_instances.go new file mode 100644 index 00000000..68d8f8d8 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/start_instances.go @@ -0,0 +1,106 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// StartInstances invokes the ecs.StartInstances API synchronously +func (client *Client) StartInstances(request *StartInstancesRequest) (response *StartInstancesResponse, err error) { + response = CreateStartInstancesResponse() + err = client.DoAction(request, response) + return +} + +// StartInstancesWithChan invokes the ecs.StartInstances API asynchronously +func (client *Client) StartInstancesWithChan(request *StartInstancesRequest) (<-chan *StartInstancesResponse, <-chan error) { + responseChan := make(chan *StartInstancesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StartInstances(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StartInstancesWithCallback invokes the ecs.StartInstances API asynchronously +func (client *Client) StartInstancesWithCallback(request *StartInstancesRequest, callback func(response *StartInstancesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StartInstancesResponse + var err error + defer close(result) + response, err = client.StartInstances(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StartInstancesRequest is the request struct for api StartInstances +type StartInstancesRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + BatchOptimization string `position:"Query" name:"BatchOptimization"` + DryRun requests.Boolean `position:"Query" name:"DryRun"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId *[]string `position:"Query" name:"InstanceId" type:"Repeated"` +} + +// StartInstancesResponse is the response struct for api StartInstances +type StartInstancesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + InstanceResponses InstanceResponsesInStartInstances `json:"InstanceResponses" xml:"InstanceResponses"` +} + +// CreateStartInstancesRequest creates a request to invoke StartInstances API +func CreateStartInstancesRequest() (request *StartInstancesRequest) { + request = &StartInstancesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "StartInstances", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateStartInstancesResponse creates a response to parse from StartInstances response +func CreateStartInstancesResponse() (response *StartInstancesResponse) { + response = &StartInstancesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/start_terminal_session.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/start_terminal_session.go new file mode 100644 index 00000000..dc69b2c5 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/start_terminal_session.go @@ -0,0 +1,109 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// StartTerminalSession invokes the ecs.StartTerminalSession API synchronously +func (client *Client) StartTerminalSession(request *StartTerminalSessionRequest) (response *StartTerminalSessionResponse, err error) { + response = CreateStartTerminalSessionResponse() + err = client.DoAction(request, response) + return +} + +// StartTerminalSessionWithChan invokes the ecs.StartTerminalSession API asynchronously +func (client *Client) StartTerminalSessionWithChan(request *StartTerminalSessionRequest) (<-chan *StartTerminalSessionResponse, <-chan error) { + responseChan := make(chan *StartTerminalSessionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StartTerminalSession(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StartTerminalSessionWithCallback invokes the ecs.StartTerminalSession API asynchronously +func (client *Client) StartTerminalSessionWithCallback(request *StartTerminalSessionRequest, callback func(response *StartTerminalSessionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StartTerminalSessionResponse + var err error + defer close(result) + response, err = client.StartTerminalSession(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StartTerminalSessionRequest is the request struct for api StartTerminalSession +type StartTerminalSessionRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + CommandLine string `position:"Query" name:"CommandLine"` + TargetServer string `position:"Query" name:"TargetServer"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId *[]string `position:"Query" name:"InstanceId" type:"Repeated"` + PortNumber requests.Integer `position:"Query" name:"PortNumber"` +} + +// StartTerminalSessionResponse is the response struct for api StartTerminalSession +type StartTerminalSessionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + SessionId string `json:"SessionId" xml:"SessionId"` + SecurityToken string `json:"SecurityToken" xml:"SecurityToken"` + WebSocketUrl string `json:"WebSocketUrl" xml:"WebSocketUrl"` +} + +// CreateStartTerminalSessionRequest creates a request to invoke StartTerminalSession API +func CreateStartTerminalSessionRequest() (request *StartTerminalSessionRequest) { + request = &StartTerminalSessionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "StartTerminalSession", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateStartTerminalSessionResponse creates a response to parse from StartTerminalSession response +func CreateStartTerminalSessionResponse() (response *StartTerminalSessionResponse) { + response = &StartTerminalSessionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/stop_instance.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/stop_instance.go index c9d5417d..6f22dec4 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/stop_instance.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/stop_instance.go @@ -21,7 +21,6 @@ import ( ) // StopInstance invokes the ecs.StopInstance API synchronously -// api document: https://help.aliyun.com/api/ecs/stopinstance.html func (client *Client) StopInstance(request *StopInstanceRequest) (response *StopInstanceResponse, err error) { response = CreateStopInstanceResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) StopInstance(request *StopInstanceRequest) (response *Stop } // StopInstanceWithChan invokes the ecs.StopInstance API asynchronously -// api document: https://help.aliyun.com/api/ecs/stopinstance.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) StopInstanceWithChan(request *StopInstanceRequest) (<-chan *StopInstanceResponse, <-chan error) { responseChan := make(chan *StopInstanceResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) StopInstanceWithChan(request *StopInstanceRequest) (<-chan } // StopInstanceWithCallback invokes the ecs.StopInstance API asynchronously -// api document: https://help.aliyun.com/api/ecs/stopinstance.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) StopInstanceWithCallback(request *StopInstanceRequest, callback func(response *StopInstanceResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,15 +72,15 @@ func (client *Client) StopInstanceWithCallback(request *StopInstanceRequest, cal type StopInstanceRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` + StoppedMode string `position:"Query" name:"StoppedMode"` + Hibernate requests.Boolean `position:"Query" name:"Hibernate"` + ForceStop requests.Boolean `position:"Query" name:"ForceStop"` + ConfirmStop requests.Boolean `position:"Query" name:"ConfirmStop"` DryRun requests.Boolean `position:"Query" name:"DryRun"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - ConfirmStop requests.Boolean `position:"Query" name:"ConfirmStop"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - StoppedMode string `position:"Query" name:"StoppedMode"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Hibernate requests.Boolean `position:"Query" name:"Hibernate"` - ForceStop requests.Boolean `position:"Query" name:"ForceStop"` + InstanceId string `position:"Query" name:"InstanceId"` } // StopInstanceResponse is the response struct for api StopInstance @@ -100,6 +95,7 @@ func CreateStopInstanceRequest() (request *StopInstanceRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "StopInstance", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/stop_instances.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/stop_instances.go new file mode 100644 index 00000000..7195eaf1 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/stop_instances.go @@ -0,0 +1,108 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// StopInstances invokes the ecs.StopInstances API synchronously +func (client *Client) StopInstances(request *StopInstancesRequest) (response *StopInstancesResponse, err error) { + response = CreateStopInstancesResponse() + err = client.DoAction(request, response) + return +} + +// StopInstancesWithChan invokes the ecs.StopInstances API asynchronously +func (client *Client) StopInstancesWithChan(request *StopInstancesRequest) (<-chan *StopInstancesResponse, <-chan error) { + responseChan := make(chan *StopInstancesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.StopInstances(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// StopInstancesWithCallback invokes the ecs.StopInstances API asynchronously +func (client *Client) StopInstancesWithCallback(request *StopInstancesRequest, callback func(response *StopInstancesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *StopInstancesResponse + var err error + defer close(result) + response, err = client.StopInstances(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// StopInstancesRequest is the request struct for api StopInstances +type StopInstancesRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + StoppedMode string `position:"Query" name:"StoppedMode"` + ForceStop requests.Boolean `position:"Query" name:"ForceStop"` + BatchOptimization string `position:"Query" name:"BatchOptimization"` + DryRun requests.Boolean `position:"Query" name:"DryRun"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId *[]string `position:"Query" name:"InstanceId" type:"Repeated"` +} + +// StopInstancesResponse is the response struct for api StopInstances +type StopInstancesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + InstanceResponses InstanceResponsesInStopInstances `json:"InstanceResponses" xml:"InstanceResponses"` +} + +// CreateStopInstancesRequest creates a request to invoke StopInstances API +func CreateStopInstancesRequest() (request *StopInstancesRequest) { + request = &StopInstancesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Ecs", "2014-05-26", "StopInstances", "ecs", "openAPI") + request.Method = requests.POST + return +} + +// CreateStopInstancesResponse creates a response to parse from StopInstances response +func CreateStopInstancesResponse() (response *StopInstancesResponse) { + response = &StopInstancesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/stop_invocation.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/stop_invocation.go index c49dca58..87c98fcf 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/stop_invocation.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/stop_invocation.go @@ -21,7 +21,6 @@ import ( ) // StopInvocation invokes the ecs.StopInvocation API synchronously -// api document: https://help.aliyun.com/api/ecs/stopinvocation.html func (client *Client) StopInvocation(request *StopInvocationRequest) (response *StopInvocationResponse, err error) { response = CreateStopInvocationResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) StopInvocation(request *StopInvocationRequest) (response * } // StopInvocationWithChan invokes the ecs.StopInvocation API asynchronously -// api document: https://help.aliyun.com/api/ecs/stopinvocation.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) StopInvocationWithChan(request *StopInvocationRequest) (<-chan *StopInvocationResponse, <-chan error) { responseChan := make(chan *StopInvocationResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) StopInvocationWithChan(request *StopInvocationRequest) (<- } // StopInvocationWithCallback invokes the ecs.StopInvocation API asynchronously -// api document: https://help.aliyun.com/api/ecs/stopinvocation.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) StopInvocationWithCallback(request *StopInvocationRequest, callback func(response *StopInvocationResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -96,6 +91,7 @@ func CreateStopInvocationRequest() (request *StopInvocationRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "StopInvocation", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_access_point_type.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_access_point_type.go index 4fb9e989..f055e0de 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_access_point_type.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_access_point_type.go @@ -17,12 +17,12 @@ package ecs // AccessPointType is a nested struct in ecs response type AccessPointType struct { - AccessPointId string `json:"AccessPointId" xml:"AccessPointId"` Status string `json:"Status" xml:"Status"` Type string `json:"Type" xml:"Type"` - AttachedRegionNo string `json:"AttachedRegionNo" xml:"AttachedRegionNo"` - Location string `json:"Location" xml:"Location"` HostOperator string `json:"HostOperator" xml:"HostOperator"` - Name string `json:"Name" xml:"Name"` Description string `json:"Description" xml:"Description"` + AttachedRegionNo string `json:"AttachedRegionNo" xml:"AttachedRegionNo"` + Name string `json:"Name" xml:"Name"` + AccessPointId string `json:"AccessPointId" xml:"AccessPointId"` + Location string `json:"Location" xml:"Location"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_account.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_account.go index f5423905..a107429a 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_account.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_account.go @@ -17,5 +17,6 @@ package ecs // Account is a nested struct in ecs response type Account struct { - AliyunId string `json:"AliyunId" xml:"AliyunId"` + AliyunId string `json:"AliyunId" xml:"AliyunId"` + SharedTime string `json:"SharedTime" xml:"SharedTime"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_action_on_maintenance.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_action_on_maintenance.go new file mode 100644 index 00000000..75d826a9 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_action_on_maintenance.go @@ -0,0 +1,23 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ActionOnMaintenance is a nested struct in ecs response +type ActionOnMaintenance struct { + DefaultValue string `json:"DefaultValue" xml:"DefaultValue"` + Value string `json:"Value" xml:"Value"` + SupportedValues SupportedValues `json:"SupportedValues" xml:"SupportedValues"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_activation.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_activation.go new file mode 100644 index 00000000..ac5b6c1d --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_activation.go @@ -0,0 +1,32 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Activation is a nested struct in ecs response +type Activation struct { + DeregisteredCount int `json:"DeregisteredCount" xml:"DeregisteredCount"` + InstanceCount int `json:"InstanceCount" xml:"InstanceCount"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + RegisteredCount int `json:"RegisteredCount" xml:"RegisteredCount"` + TimeToLiveInHours int64 `json:"TimeToLiveInHours" xml:"TimeToLiveInHours"` + ActivationId string `json:"ActivationId" xml:"ActivationId"` + Disabled bool `json:"Disabled" xml:"Disabled"` + InstanceName string `json:"InstanceName" xml:"InstanceName"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + Description string `json:"Description" xml:"Description"` + IpAddressRange string `json:"IpAddressRange" xml:"IpAddressRange"` + Tags []Tag `json:"Tags" xml:"Tags"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_activation_list.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_activation_list.go new file mode 100644 index 00000000..393278eb --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_activation_list.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ActivationList is a nested struct in ecs response +type ActivationList struct { + Activation []Activation `json:"Activation" xml:"Activation"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_activity_detail.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_activity_detail.go index e7357ee9..de7f3416 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_activity_detail.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_activity_detail.go @@ -17,6 +17,6 @@ package ecs // ActivityDetail is a nested struct in ecs response type ActivityDetail struct { - Detail string `json:"Detail" xml:"Detail"` Status string `json:"Status" xml:"Status"` + Detail string `json:"Detail" xml:"Detail"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_add_accounts.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_add_accounts.go new file mode 100644 index 00000000..95e5bb64 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_add_accounts.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AddAccounts is a nested struct in ecs response +type AddAccounts struct { + AddAccount []string `json:"AddAccount" xml:"AddAccount"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_allocated_resource.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_allocated_resource.go new file mode 100644 index 00000000..915d22bc --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_allocated_resource.go @@ -0,0 +1,26 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AllocatedResource is a nested struct in ecs response +type AllocatedResource struct { + AvailableAmount int `json:"AvailableAmount" xml:"AvailableAmount"` + TotalAmount int `json:"TotalAmount" xml:"TotalAmount"` + UsedAmount int `json:"UsedAmount" xml:"UsedAmount"` + InstanceType string `json:"InstanceType" xml:"InstanceType"` + ZoneId string `json:"zoneId" xml:"zoneId"` + CapacityReservationUsages CapacityReservationUsages `json:"CapacityReservationUsages" xml:"CapacityReservationUsages"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_activity_details_in_describe_auto_provisioning_group_history.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_allocated_resources_in_describe_capacity_reservations.go similarity index 74% rename from src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_activity_details_in_describe_auto_provisioning_group_history.go rename to src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_allocated_resources_in_describe_capacity_reservations.go index e324c2ca..98dd768a 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_activity_details_in_describe_auto_provisioning_group_history.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_allocated_resources_in_describe_capacity_reservations.go @@ -15,7 +15,7 @@ package ecs // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// ActivityDetailsInDescribeAutoProvisioningGroupHistory is a nested struct in ecs response -type ActivityDetailsInDescribeAutoProvisioningGroupHistory struct { - ActivityDetail []ActivityDetail `json:"ActivityDetail" xml:"ActivityDetail"` +// AllocatedResourcesInDescribeCapacityReservations is a nested struct in ecs response +type AllocatedResourcesInDescribeCapacityReservations struct { + AllocatedResource []AllocatedResource `json:"AllocatedResource" xml:"AllocatedResource"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_allocated_resources_in_describe_elasticity_assurances.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_allocated_resources_in_describe_elasticity_assurances.go new file mode 100644 index 00000000..f6198ae4 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_allocated_resources_in_describe_elasticity_assurances.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AllocatedResourcesInDescribeElasticityAssurances is a nested struct in ecs response +type AllocatedResourcesInDescribeElasticityAssurances struct { + AllocatedResource []AllocatedResource `json:"AllocatedResource" xml:"AllocatedResource"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_assigned_private_ip_addresses_set.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_assigned_private_ip_addresses_set.go new file mode 100644 index 00000000..9ae1e26c --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_assigned_private_ip_addresses_set.go @@ -0,0 +1,23 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AssignedPrivateIpAddressesSet is a nested struct in ecs response +type AssignedPrivateIpAddressesSet struct { + NetworkInterfaceId string `json:"NetworkInterfaceId" xml:"NetworkInterfaceId"` + PrivateIpSet PrivateIpSetInAssignPrivateIpAddresses `json:"PrivateIpSet" xml:"PrivateIpSet"` + Ipv4PrefixSet Ipv4PrefixSetInAssignPrivateIpAddresses `json:"Ipv4PrefixSet" xml:"Ipv4PrefixSet"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attach_instance_ram_role_result.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attach_instance_ram_role_result.go index c2a206cf..14c5ed6a 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attach_instance_ram_role_result.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attach_instance_ram_role_result.go @@ -17,8 +17,8 @@ package ecs // AttachInstanceRamRoleResult is a nested struct in ecs response type AttachInstanceRamRoleResult struct { - InstanceId string `json:"InstanceId" xml:"InstanceId"` - Success bool `json:"Success" xml:"Success"` Code string `json:"Code" xml:"Code"` Message string `json:"Message" xml:"Message"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + Success bool `json:"Success" xml:"Success"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attachment.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attachment.go new file mode 100644 index 00000000..bcf0a29f --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attachment.go @@ -0,0 +1,27 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Attachment is a nested struct in ecs response +type Attachment struct { + Device string `json:"Device" xml:"Device"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + DeviceIndex int `json:"DeviceIndex" xml:"DeviceIndex"` + NetworkCardIndex int `json:"NetworkCardIndex" xml:"NetworkCardIndex"` + TrunkNetworkInterfaceId string `json:"TrunkNetworkInterfaceId" xml:"TrunkNetworkInterfaceId"` + AttachedTime string `json:"AttachedTime" xml:"AttachedTime"` + MemberNetworkInterfaceIds MemberNetworkInterfaceIds `json:"MemberNetworkInterfaceIds" xml:"MemberNetworkInterfaceIds"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attachments.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attachments.go new file mode 100644 index 00000000..78df5e09 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_attachments.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Attachments is a nested struct in ecs response +type Attachments struct { + Attachment []Attachment `json:"Attachment" xml:"Attachment"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_provisioning_group.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_provisioning_group.go index cfcf7780..5efe8d86 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_provisioning_group.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_provisioning_group.go @@ -17,23 +17,24 @@ package ecs // AutoProvisioningGroup is a nested struct in ecs response type AutoProvisioningGroup struct { - AutoProvisioningGroupId string `json:"AutoProvisioningGroupId" xml:"AutoProvisioningGroupId"` - AutoProvisioningGroupName string `json:"AutoProvisioningGroupName" xml:"AutoProvisioningGroupName"` - AutoProvisioningGroupType string `json:"AutoProvisioningGroupType" xml:"AutoProvisioningGroupType"` - Status string `json:"Status" xml:"Status"` - State string `json:"State" xml:"State"` - RegionId string `json:"RegionId" xml:"RegionId"` - ValidFrom string `json:"ValidFrom" xml:"ValidFrom"` - ValidUntil string `json:"ValidUntil" xml:"ValidUntil"` - ExcessCapacityTerminationPolicy string `json:"ExcessCapacityTerminationPolicy" xml:"ExcessCapacityTerminationPolicy"` - MaxSpotPrice float64 `json:"MaxSpotPrice" xml:"MaxSpotPrice"` - LaunchTemplateId string `json:"LaunchTemplateId" xml:"LaunchTemplateId"` - LaunchTemplateVersion string `json:"LaunchTemplateVersion" xml:"LaunchTemplateVersion"` - TerminateInstances bool `json:"TerminateInstances" xml:"TerminateInstances"` - TerminateInstancesWithExpiration bool `json:"TerminateInstancesWithExpiration" xml:"TerminateInstancesWithExpiration"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - SpotOptions SpotOptions `json:"SpotOptions" xml:"SpotOptions"` - PayAsYouGoOptions PayAsYouGoOptions `json:"PayAsYouGoOptions" xml:"PayAsYouGoOptions"` - TargetCapacitySpecification TargetCapacitySpecification `json:"TargetCapacitySpecification" xml:"TargetCapacitySpecification"` - LaunchTemplateConfigs LaunchTemplateConfigsInDescribeAutoProvisioningGroups `json:"LaunchTemplateConfigs" xml:"LaunchTemplateConfigs"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + AutoProvisioningGroupName string `json:"AutoProvisioningGroupName" xml:"AutoProvisioningGroupName"` + Status string `json:"Status" xml:"Status"` + TerminateInstances bool `json:"TerminateInstances" xml:"TerminateInstances"` + MaxSpotPrice float64 `json:"MaxSpotPrice" xml:"MaxSpotPrice"` + State string `json:"State" xml:"State"` + LaunchTemplateId string `json:"LaunchTemplateId" xml:"LaunchTemplateId"` + ValidFrom string `json:"ValidFrom" xml:"ValidFrom"` + LaunchTemplateVersion string `json:"LaunchTemplateVersion" xml:"LaunchTemplateVersion"` + TerminateInstancesWithExpiration bool `json:"TerminateInstancesWithExpiration" xml:"TerminateInstancesWithExpiration"` + RegionId string `json:"RegionId" xml:"RegionId"` + ValidUntil string `json:"ValidUntil" xml:"ValidUntil"` + AutoProvisioningGroupType string `json:"AutoProvisioningGroupType" xml:"AutoProvisioningGroupType"` + AutoProvisioningGroupId string `json:"AutoProvisioningGroupId" xml:"AutoProvisioningGroupId"` + ExcessCapacityTerminationPolicy string `json:"ExcessCapacityTerminationPolicy" xml:"ExcessCapacityTerminationPolicy"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + SpotOptions SpotOptions `json:"SpotOptions" xml:"SpotOptions"` + PayAsYouGoOptions PayAsYouGoOptions `json:"PayAsYouGoOptions" xml:"PayAsYouGoOptions"` + TargetCapacitySpecification TargetCapacitySpecification `json:"TargetCapacitySpecification" xml:"TargetCapacitySpecification"` + LaunchTemplateConfigs LaunchTemplateConfigs `json:"LaunchTemplateConfigs" xml:"LaunchTemplateConfigs"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_provisioning_group_history.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_provisioning_group_history.go index b47372c4..385f9c63 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_provisioning_group_history.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_provisioning_group_history.go @@ -17,9 +17,9 @@ package ecs // AutoProvisioningGroupHistory is a nested struct in ecs response type AutoProvisioningGroupHistory struct { - TaskId string `json:"TaskId" xml:"TaskId"` - Status string `json:"Status" xml:"Status"` - LastEventTime string `json:"LastEventTime" xml:"LastEventTime"` - StartTime string `json:"StartTime" xml:"StartTime"` - ActivityDetails ActivityDetailsInDescribeAutoProvisioningGroupHistory `json:"ActivityDetails" xml:"ActivityDetails"` + Status string `json:"Status" xml:"Status"` + StartTime string `json:"StartTime" xml:"StartTime"` + TaskId string `json:"TaskId" xml:"TaskId"` + LastEventTime string `json:"LastEventTime" xml:"LastEventTime"` + ActivityDetails ActivityDetails `json:"ActivityDetails" xml:"ActivityDetails"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_snapshot_policy.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_snapshot_policy.go index 1b3e85e6..8c7d3324 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_snapshot_policy.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_auto_snapshot_policy.go @@ -17,14 +17,19 @@ package ecs // AutoSnapshotPolicy is a nested struct in ecs response type AutoSnapshotPolicy struct { - AutoSnapshotPolicyId string `json:"AutoSnapshotPolicyId" xml:"AutoSnapshotPolicyId"` - RegionId string `json:"RegionId" xml:"RegionId"` - AutoSnapshotPolicyName string `json:"AutoSnapshotPolicyName" xml:"AutoSnapshotPolicyName"` - TimePoints string `json:"TimePoints" xml:"TimePoints"` - RepeatWeekdays string `json:"RepeatWeekdays" xml:"RepeatWeekdays"` - RetentionDays int `json:"RetentionDays" xml:"RetentionDays"` - DiskNums int `json:"DiskNums" xml:"DiskNums"` - VolumeNums int `json:"VolumeNums" xml:"VolumeNums"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - Status string `json:"Status" xml:"Status"` + TimePoints string `json:"TimePoints" xml:"TimePoints"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + Status string `json:"Status" xml:"Status"` + AutoSnapshotPolicyName string `json:"AutoSnapshotPolicyName" xml:"AutoSnapshotPolicyName"` + TargetCopyRegions string `json:"TargetCopyRegions" xml:"TargetCopyRegions"` + CopiedSnapshotsRetentionDays int `json:"CopiedSnapshotsRetentionDays" xml:"CopiedSnapshotsRetentionDays"` + AutoSnapshotPolicyId string `json:"AutoSnapshotPolicyId" xml:"AutoSnapshotPolicyId"` + RetentionDays int `json:"RetentionDays" xml:"RetentionDays"` + RegionId string `json:"RegionId" xml:"RegionId"` + DiskNums int `json:"DiskNums" xml:"DiskNums"` + EnableCrossRegionCopy bool `json:"EnableCrossRegionCopy" xml:"EnableCrossRegionCopy"` + RepeatWeekdays string `json:"RepeatWeekdays" xml:"RepeatWeekdays"` + VolumeNums int `json:"VolumeNums" xml:"VolumeNums"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + Tags TagsInDescribeAutoSnapshotPolicyEx `json:"Tags" xml:"Tags"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_instance_type.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_instance_type.go new file mode 100644 index 00000000..2e0a995f --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_instance_type.go @@ -0,0 +1,22 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AvailableInstanceType is a nested struct in ecs response +type AvailableInstanceType struct { + InstanceType string `json:"InstanceType" xml:"InstanceType"` + AvailableInstanceCapacity int `json:"AvailableInstanceCapacity" xml:"AvailableInstanceCapacity"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_configs_in_describe_auto_provisioning_groups.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_instance_types_in_describe_dedicated_host_clusters.go similarity index 75% rename from src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_configs_in_describe_auto_provisioning_groups.go rename to src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_instance_types_in_describe_dedicated_host_clusters.go index 513ff0f0..c1cff92a 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_configs_in_describe_auto_provisioning_groups.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_instance_types_in_describe_dedicated_host_clusters.go @@ -15,7 +15,7 @@ package ecs // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// LaunchTemplateConfigsInDescribeAutoProvisioningGroups is a nested struct in ecs response -type LaunchTemplateConfigsInDescribeAutoProvisioningGroups struct { - LaunchTemplateConfig []LaunchTemplateConfig `json:"LaunchTemplateConfig" xml:"LaunchTemplateConfig"` +// AvailableInstanceTypesInDescribeDedicatedHostClusters is a nested struct in ecs response +type AvailableInstanceTypesInDescribeDedicatedHostClusters struct { + AvailableInstanceType []AvailableInstanceType `json:"AvailableInstanceType" xml:"AvailableInstanceType"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_instance_types.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_instance_types_in_describe_zones.go similarity index 85% rename from src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_instance_types.go rename to src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_instance_types_in_describe_zones.go index 29533716..0dd5075d 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_instance_types.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_instance_types_in_describe_zones.go @@ -15,7 +15,7 @@ package ecs // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// AvailableInstanceTypes is a nested struct in ecs response -type AvailableInstanceTypes struct { +// AvailableInstanceTypesInDescribeZones is a nested struct in ecs response +type AvailableInstanceTypesInDescribeZones struct { InstanceTypes []string `json:"InstanceTypes" xml:"InstanceTypes"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_resource.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_resource.go index 04d8e63a..df4ad6ed 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_resource.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_resource.go @@ -17,6 +17,7 @@ package ecs // AvailableResource is a nested struct in ecs response type AvailableResource struct { - Type string `json:"Type" xml:"Type"` - SupportedResources SupportedResourcesInDescribeResourcesModification `json:"SupportedResources" xml:"SupportedResources"` + Type string `json:"Type" xml:"Type"` + ConditionSupportedResources ConditionSupportedResources `json:"ConditionSupportedResources" xml:"ConditionSupportedResources"` + SupportedResources SupportedResourcesInDescribeAvailableResource `json:"SupportedResources" xml:"SupportedResources"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_spot_resource.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_spot_resource.go new file mode 100644 index 00000000..4deb791c --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_spot_resource.go @@ -0,0 +1,24 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AvailableSpotResource is a nested struct in ecs response +type AvailableSpotResource struct { + InterruptRateDesc string `json:"InterruptRateDesc" xml:"InterruptRateDesc"` + AverageSpotDiscount int `json:"AverageSpotDiscount" xml:"AverageSpotDiscount"` + InstanceType string `json:"InstanceType" xml:"InstanceType"` + InterruptionRate float64 `json:"InterruptionRate" xml:"InterruptionRate"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_spot_resources.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_spot_resources.go new file mode 100644 index 00000000..7ac39a36 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_spot_resources.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AvailableSpotResources is a nested struct in ecs response +type AvailableSpotResources struct { + AvailableSpotResource []AvailableSpotResource `json:"AvailableSpotResource" xml:"AvailableSpotResource"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_spot_zone.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_spot_zone.go new file mode 100644 index 00000000..35eaab04 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_spot_zone.go @@ -0,0 +1,22 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AvailableSpotZone is a nested struct in ecs response +type AvailableSpotZone struct { + ZoneId string `json:"ZoneId" xml:"ZoneId"` + AvailableSpotResources AvailableSpotResources `json:"AvailableSpotResources" xml:"AvailableSpotResources"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_spot_zones.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_spot_zones.go new file mode 100644 index 00000000..aff52de4 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_available_spot_zones.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AvailableSpotZones is a nested struct in ecs response +type AvailableSpotZones struct { + AvailableSpotZone []AvailableSpotZone `json:"AvailableSpotZone" xml:"AvailableSpotZone"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth.go index 2cabba16..2d704940 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth.go @@ -18,7 +18,7 @@ package ecs // Bandwidth is a nested struct in ecs response type Bandwidth struct { InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` - Min int `json:"Min" xml:"Min"` Max int `json:"Max" xml:"Max"` + Min int `json:"Min" xml:"Min"` Unit string `json:"Unit" xml:"Unit"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth_package.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth_package.go index acfdace7..6180a10b 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth_package.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bandwidth_package.go @@ -17,19 +17,19 @@ package ecs // BandwidthPackage is a nested struct in ecs response type BandwidthPackage struct { - BandwidthPackageId string `json:"BandwidthPackageId" xml:"BandwidthPackageId"` + Status string `json:"Status" xml:"Status"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + IpCount string `json:"IpCount" xml:"IpCount"` RegionId string `json:"RegionId" xml:"RegionId"` - Name string `json:"Name" xml:"Name"` + InstanceChargeType string `json:"InstanceChargeType" xml:"InstanceChargeType"` + BandwidthPackageId string `json:"BandwidthPackageId" xml:"BandwidthPackageId"` Description string `json:"Description" xml:"Description"` - ZoneId string `json:"ZoneId" xml:"ZoneId"` - NatGatewayId string `json:"NatGatewayId" xml:"NatGatewayId"` Bandwidth string `json:"Bandwidth" xml:"Bandwidth"` - InstanceChargeType string `json:"InstanceChargeType" xml:"InstanceChargeType"` + NatGatewayId string `json:"NatGatewayId" xml:"NatGatewayId"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` - IpCount string `json:"IpCount" xml:"IpCount"` + Name string `json:"Name" xml:"Name"` ISP string `json:"ISP" xml:"ISP"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - Status string `json:"Status" xml:"Status"` PublicIpAddresses PublicIpAddresses `json:"PublicIpAddresses" xml:"PublicIpAddresses"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bond_interface_specification.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bond_interface_specification.go new file mode 100644 index 00000000..bd996820 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_bond_interface_specification.go @@ -0,0 +1,22 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BondInterfaceSpecification is a nested struct in ecs response +type BondInterfaceSpecification struct { + BondMode string `json:"BondMode" xml:"BondMode"` + SlaveInterfaceSpecification SlaveInterfaceSpecificationInDescribeNetworkInterfaceAttribute `json:"SlaveInterfaceSpecification" xml:"SlaveInterfaceSpecification"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacities.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacities.go new file mode 100644 index 00000000..760c83b6 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacities.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Capacities is a nested struct in ecs response +type Capacities struct { + Capacity []Capacity `json:"Capacity" xml:"Capacity"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacity.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacity.go index 00da0ec2..5d8e5694 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacity.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacity.go @@ -17,13 +17,17 @@ package ecs // Capacity is a nested struct in ecs response type Capacity struct { - TotalVcpus int `json:"TotalVcpus" xml:"TotalVcpus"` - AvailableVcpus int `json:"AvailableVcpus" xml:"AvailableVcpus"` - TotalVgpus int `json:"TotalVgpus" xml:"TotalVgpus"` - AvailableVgpus int `json:"AvailableVgpus" xml:"AvailableVgpus"` - TotalMemory float64 `json:"TotalMemory" xml:"TotalMemory"` - AvailableMemory float64 `json:"AvailableMemory" xml:"AvailableMemory"` - TotalLocalStorage int `json:"TotalLocalStorage" xml:"TotalLocalStorage"` - AvailableLocalStorage int `json:"AvailableLocalStorage" xml:"AvailableLocalStorage"` - LocalStorageCategory string `json:"LocalStorageCategory" xml:"LocalStorageCategory"` + TotalLocalStorage int `json:"TotalLocalStorage" xml:"TotalLocalStorage"` + AvailableAmount int `json:"AvailableAmount" xml:"AvailableAmount"` + AvailableVcpus int `json:"AvailableVcpus" xml:"AvailableVcpus"` + UsedAmount int `json:"UsedAmount" xml:"UsedAmount"` + AvailableLocalStorage int `json:"AvailableLocalStorage" xml:"AvailableLocalStorage"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + TotalVgpus int `json:"TotalVgpus" xml:"TotalVgpus"` + AvailableMemory float64 `json:"AvailableMemory" xml:"AvailableMemory"` + TotalVcpus int `json:"TotalVcpus" xml:"TotalVcpus"` + AvailableVgpus int `json:"AvailableVgpus" xml:"AvailableVgpus"` + LocalStorageCategory string `json:"LocalStorageCategory" xml:"LocalStorageCategory"` + TotalMemory float64 `json:"TotalMemory" xml:"TotalMemory"` + SocketCapacities SocketCapacities `json:"SocketCapacities" xml:"SocketCapacities"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacity_reservation_item.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacity_reservation_item.go new file mode 100644 index 00000000..8d619afc --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacity_reservation_item.go @@ -0,0 +1,39 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CapacityReservationItem is a nested struct in ecs response +type CapacityReservationItem struct { + PrivatePoolOptionsName string `json:"PrivatePoolOptionsName" xml:"PrivatePoolOptionsName"` + EndTimeType string `json:"EndTimeType" xml:"EndTimeType"` + PrivatePoolOptionsMatchCriteria string `json:"PrivatePoolOptionsMatchCriteria" xml:"PrivatePoolOptionsMatchCriteria"` + TimeSlot string `json:"TimeSlot" xml:"TimeSlot"` + ReservedInstanceId string `json:"ReservedInstanceId" xml:"ReservedInstanceId"` + Platform string `json:"Platform" xml:"Platform"` + CapacityReservationOwnerId string `json:"CapacityReservationOwnerId" xml:"CapacityReservationOwnerId"` + RegionId string `json:"RegionId" xml:"RegionId"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + SavingPlanId string `json:"SavingPlanId" xml:"SavingPlanId"` + StartTimeType string `json:"StartTimeType" xml:"StartTimeType"` + Status string `json:"Status" xml:"Status"` + InstanceChargeType string `json:"InstanceChargeType" xml:"InstanceChargeType"` + Description string `json:"Description" xml:"Description"` + PrivatePoolOptionsId string `json:"PrivatePoolOptionsId" xml:"PrivatePoolOptionsId"` + Tags TagsInDescribeCapacityReservations `json:"Tags" xml:"Tags"` + AllocatedResources AllocatedResourcesInDescribeCapacityReservations `json:"AllocatedResources" xml:"AllocatedResources"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacity_reservation_item_in_describe_capacity_reservation_instances.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacity_reservation_item_in_describe_capacity_reservation_instances.go new file mode 100644 index 00000000..2d0cafa6 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacity_reservation_item_in_describe_capacity_reservation_instances.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CapacityReservationItemInDescribeCapacityReservationInstances is a nested struct in ecs response +type CapacityReservationItemInDescribeCapacityReservationInstances struct { + InstanceIdSet []InstanceIdSet `json:"InstanceIdSet" xml:"InstanceIdSet"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacity_reservation_set.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacity_reservation_set.go new file mode 100644 index 00000000..ce79326b --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacity_reservation_set.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CapacityReservationSet is a nested struct in ecs response +type CapacityReservationSet struct { + CapacityReservationItem []CapacityReservationItem `json:"CapacityReservationItem" xml:"CapacityReservationItem"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacity_reservation_usage.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacity_reservation_usage.go new file mode 100644 index 00000000..72feaafc --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacity_reservation_usage.go @@ -0,0 +1,23 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CapacityReservationUsage is a nested struct in ecs response +type CapacityReservationUsage struct { + AccountId string `json:"AccountId" xml:"AccountId"` + ServiceName string `json:"ServiceName" xml:"ServiceName"` + UsedAmount int `json:"UsedAmount" xml:"UsedAmount"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacity_reservation_usages.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacity_reservation_usages.go new file mode 100644 index 00000000..7cd34849 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_capacity_reservation_usages.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CapacityReservationUsages is a nested struct in ecs response +type CapacityReservationUsages struct { + CapacityReservationUsage []CapacityReservationUsage `json:"CapacityReservationUsage" xml:"CapacityReservationUsage"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_command.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_command.go index 29ba4724..0bef56df 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_command.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_command.go @@ -17,14 +17,22 @@ package ecs // Command is a nested struct in ecs response type Command struct { - CommandId string `json:"CommandId" xml:"CommandId"` - Name string `json:"Name" xml:"Name"` - Type string `json:"Type" xml:"Type"` - Description string `json:"Description" xml:"Description"` - CommandContent string `json:"CommandContent" xml:"CommandContent"` - WorkingDir string `json:"WorkingDir" xml:"WorkingDir"` - Timeout int64 `json:"Timeout" xml:"Timeout"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - EnableParameter bool `json:"EnableParameter" xml:"EnableParameter"` - ParameterNames ParameterNames `json:"ParameterNames" xml:"ParameterNames"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + Type string `json:"Type" xml:"Type"` + Timeout int64 `json:"Timeout" xml:"Timeout"` + InvokeTimes int `json:"InvokeTimes" xml:"InvokeTimes"` + CommandId string `json:"CommandId" xml:"CommandId"` + WorkingDir string `json:"WorkingDir" xml:"WorkingDir"` + Description string `json:"Description" xml:"Description"` + Version int `json:"Version" xml:"Version"` + Provider string `json:"Provider" xml:"Provider"` + CommandContent string `json:"CommandContent" xml:"CommandContent"` + Category string `json:"Category" xml:"Category"` + Latest bool `json:"Latest" xml:"Latest"` + Name string `json:"Name" xml:"Name"` + EnableParameter bool `json:"EnableParameter" xml:"EnableParameter"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + ParameterNames ParameterNames `json:"ParameterNames" xml:"ParameterNames"` + ParameterDefinitions ParameterDefinitions `json:"ParameterDefinitions" xml:"ParameterDefinitions"` + Tags TagsInDescribeCommands `json:"Tags" xml:"Tags"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_fleets.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_condition.go similarity index 86% rename from src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_fleets.go rename to src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_condition.go index ad124155..901d2189 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_fleets.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_condition.go @@ -15,7 +15,7 @@ package ecs // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// Fleets is a nested struct in ecs response -type Fleets struct { - Fleet []Fleet `json:"Fleet" xml:"Fleet"` +// Condition is a nested struct in ecs response +type Condition struct { + Key string `json:"Key" xml:"Key"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_condition_supported_resource.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_condition_supported_resource.go new file mode 100644 index 00000000..29cfe940 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_condition_supported_resource.go @@ -0,0 +1,27 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ConditionSupportedResource is a nested struct in ecs response +type ConditionSupportedResource struct { + Status string `json:"Status" xml:"Status"` + Value string `json:"Value" xml:"Value"` + Max int `json:"Max" xml:"Max"` + Unit string `json:"Unit" xml:"Unit"` + StatusCategory string `json:"StatusCategory" xml:"StatusCategory"` + Min int `json:"Min" xml:"Min"` + Conditions Conditions `json:"Conditions" xml:"Conditions"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_condition_supported_resources.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_condition_supported_resources.go new file mode 100644 index 00000000..1374a5a1 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_condition_supported_resources.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ConditionSupportedResources is a nested struct in ecs response +type ConditionSupportedResources struct { + ConditionSupportedResource []ConditionSupportedResource `json:"ConditionSupportedResource" xml:"ConditionSupportedResource"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_conditions.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_conditions.go new file mode 100644 index 00000000..af413d9b --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_conditions.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Conditions is a nested struct in ecs response +type Conditions struct { + Condition []Condition `json:"Condition" xml:"Condition"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_cpu_options.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_cpu_options.go new file mode 100644 index 00000000..afce7920 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_cpu_options.go @@ -0,0 +1,24 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CpuOptions is a nested struct in ecs response +type CpuOptions struct { + Numa string `json:"Numa" xml:"Numa"` + CoreCount int `json:"CoreCount" xml:"CoreCount"` + ThreadsPerCore int `json:"ThreadsPerCore" xml:"ThreadsPerCore"` + TopologyType string `json:"TopologyType" xml:"TopologyType"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data_disk.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data_disk.go index 515b0f46..42df0196 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data_disk.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data_disk.go @@ -17,12 +17,16 @@ package ecs // DataDisk is a nested struct in ecs response type DataDisk struct { - Size int `json:"Size" xml:"Size"` - SnapshotId string `json:"SnapshotId" xml:"SnapshotId"` - Category string `json:"Category" xml:"Category"` - Encrypted string `json:"Encrypted" xml:"Encrypted"` - DiskName string `json:"DiskName" xml:"DiskName"` - Description string `json:"Description" xml:"Description"` - DeleteWithInstance bool `json:"DeleteWithInstance" xml:"DeleteWithInstance"` - Device string `json:"Device" xml:"Device"` + PerformanceLevel string `json:"PerformanceLevel" xml:"PerformanceLevel"` + Description string `json:"Description" xml:"Description"` + SnapshotId string `json:"SnapshotId" xml:"SnapshotId"` + Device string `json:"Device" xml:"Device"` + Size int `json:"Size" xml:"Size"` + DiskName string `json:"DiskName" xml:"DiskName"` + Category string `json:"Category" xml:"Category"` + DeleteWithInstance bool `json:"DeleteWithInstance" xml:"DeleteWithInstance"` + Encrypted string `json:"Encrypted" xml:"Encrypted"` + ProvisionedIops int64 `json:"ProvisionedIops" xml:"ProvisionedIops"` + BurstingEnabled bool `json:"BurstingEnabled" xml:"BurstingEnabled"` + AutoSnapshotPolicyId string `json:"AutoSnapshotPolicyId" xml:"AutoSnapshotPolicyId"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data_point.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data_point.go index f7509b9b..cbde9065 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data_point.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_data_point.go @@ -17,6 +17,6 @@ package ecs // DataPoint is a nested struct in ecs response type DataPoint struct { - TimeStamp string `json:"TimeStamp" xml:"TimeStamp"` Size int64 `json:"Size" xml:"Size"` + TimeStamp string `json:"TimeStamp" xml:"TimeStamp"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host.go index f0d8b52c..6ce64899 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host.go @@ -17,31 +17,37 @@ package ecs // DedicatedHost is a nested struct in ecs response type DedicatedHost struct { - DedicatedHostId string `json:"DedicatedHostId" xml:"DedicatedHostId"` - AutoPlacement string `json:"AutoPlacement" xml:"AutoPlacement"` - RegionId string `json:"RegionId" xml:"RegionId"` - ZoneId string `json:"ZoneId" xml:"ZoneId"` - DedicatedHostName string `json:"DedicatedHostName" xml:"DedicatedHostName"` - MachineId string `json:"MachineId" xml:"MachineId"` - Description string `json:"Description" xml:"Description"` - DedicatedHostType string `json:"DedicatedHostType" xml:"DedicatedHostType"` - Sockets int `json:"Sockets" xml:"Sockets"` - Cores int `json:"Cores" xml:"Cores"` - PhysicalGpus int `json:"PhysicalGpus" xml:"PhysicalGpus"` - GPUSpec string `json:"GPUSpec" xml:"GPUSpec"` - ActionOnMaintenance string `json:"ActionOnMaintenance" xml:"ActionOnMaintenance"` - Status string `json:"Status" xml:"Status"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - ChargeType string `json:"ChargeType" xml:"ChargeType"` - SaleCycle string `json:"SaleCycle" xml:"SaleCycle"` - ExpiredTime string `json:"ExpiredTime" xml:"ExpiredTime"` - AutoReleaseTime string `json:"AutoReleaseTime" xml:"AutoReleaseTime"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - SupportedInstanceTypeFamilies SupportedInstanceTypeFamiliesInDescribeDedicatedHosts `json:"SupportedInstanceTypeFamilies" xml:"SupportedInstanceTypeFamilies"` - SupportedInstanceTypesList SupportedInstanceTypesListInDescribeDedicatedHosts `json:"SupportedInstanceTypesList" xml:"SupportedInstanceTypesList"` - Capacity Capacity `json:"Capacity" xml:"Capacity"` - NetworkAttributes NetworkAttributes `json:"NetworkAttributes" xml:"NetworkAttributes"` - Instances InstancesInDescribeDedicatedHosts `json:"Instances" xml:"Instances"` - OperationLocks OperationLocksInDescribeDedicatedHosts `json:"OperationLocks" xml:"OperationLocks"` - Tags TagsInDescribeDedicatedHosts `json:"Tags" xml:"Tags"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + SchedulerOptionsManagedPrivateSpaceId string `json:"SchedulerOptions.ManagedPrivateSpaceId" xml:"SchedulerOptions.ManagedPrivateSpaceId"` + Status string `json:"Status" xml:"Status"` + Cores int `json:"Cores" xml:"Cores"` + AutoPlacement string `json:"AutoPlacement" xml:"AutoPlacement"` + GPUSpec string `json:"GPUSpec" xml:"GPUSpec"` + AutoReleaseTime string `json:"AutoReleaseTime" xml:"AutoReleaseTime"` + ChargeType string `json:"ChargeType" xml:"ChargeType"` + CpuOverCommitRatio float64 `json:"CpuOverCommitRatio" xml:"CpuOverCommitRatio"` + ActionOnMaintenance string `json:"ActionOnMaintenance" xml:"ActionOnMaintenance"` + SaleCycle string `json:"SaleCycle" xml:"SaleCycle"` + PhysicalGpus int `json:"PhysicalGpus" xml:"PhysicalGpus"` + RegionId string `json:"RegionId" xml:"RegionId"` + DedicatedHostName string `json:"DedicatedHostName" xml:"DedicatedHostName"` + Description string `json:"Description" xml:"Description"` + DedicatedHostClusterId string `json:"DedicatedHostClusterId" xml:"DedicatedHostClusterId"` + ExpiredTime string `json:"ExpiredTime" xml:"ExpiredTime"` + DedicatedHostType string `json:"DedicatedHostType" xml:"DedicatedHostType"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + DedicatedHostId string `json:"DedicatedHostId" xml:"DedicatedHostId"` + Sockets int `json:"Sockets" xml:"Sockets"` + MachineId string `json:"MachineId" xml:"MachineId"` + DedicatedHostOwnerId int64 `json:"DedicatedHostOwnerId" xml:"DedicatedHostOwnerId"` + SupportedInstanceTypeFamilies SupportedInstanceTypeFamiliesInDescribeDedicatedHosts `json:"SupportedInstanceTypeFamilies" xml:"SupportedInstanceTypeFamilies"` + SupportedCustomInstanceTypeFamilies SupportedCustomInstanceTypeFamilies `json:"SupportedCustomInstanceTypeFamilies" xml:"SupportedCustomInstanceTypeFamilies"` + SupportedInstanceTypesList SupportedInstanceTypesListInDescribeDedicatedHosts `json:"SupportedInstanceTypesList" xml:"SupportedInstanceTypesList"` + Capacity Capacity `json:"Capacity" xml:"Capacity"` + NetworkAttributes NetworkAttributes `json:"NetworkAttributes" xml:"NetworkAttributes"` + HostDetailInfo HostDetailInfo `json:"HostDetailInfo" xml:"HostDetailInfo"` + Instances InstancesInDescribeDedicatedHosts `json:"Instances" xml:"Instances"` + OperationLocks OperationLocksInDescribeDedicatedHosts `json:"OperationLocks" xml:"OperationLocks"` + Tags TagsInDescribeDedicatedHosts `json:"Tags" xml:"Tags"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_attribute.go index 98153a1b..dfeca406 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_attribute.go @@ -17,6 +17,7 @@ package ecs // DedicatedHostAttribute is a nested struct in ecs response type DedicatedHostAttribute struct { - DedicatedHostName string `json:"DedicatedHostName" xml:"DedicatedHostName"` - DedicatedHostId string `json:"DedicatedHostId" xml:"DedicatedHostId"` + DedicatedHostName string `json:"DedicatedHostName" xml:"DedicatedHostName"` + DedicatedHostClusterId string `json:"DedicatedHostClusterId" xml:"DedicatedHostClusterId"` + DedicatedHostId string `json:"DedicatedHostId" xml:"DedicatedHostId"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_cluster.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_cluster.go new file mode 100644 index 00000000..a3356972 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_cluster.go @@ -0,0 +1,29 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DedicatedHostCluster is a nested struct in ecs response +type DedicatedHostCluster struct { + Description string `json:"Description" xml:"Description"` + DedicatedHostClusterId string `json:"DedicatedHostClusterId" xml:"DedicatedHostClusterId"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + RegionId string `json:"RegionId" xml:"RegionId"` + DedicatedHostClusterName string `json:"DedicatedHostClusterName" xml:"DedicatedHostClusterName"` + DedicatedHostIds DedicatedHostIds `json:"DedicatedHostIds" xml:"DedicatedHostIds"` + DedicatedHostClusterCapacity DedicatedHostClusterCapacity `json:"DedicatedHostClusterCapacity" xml:"DedicatedHostClusterCapacity"` + Tags TagsInDescribeDedicatedHostClusters `json:"Tags" xml:"Tags"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_cluster_capacity.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_cluster_capacity.go new file mode 100644 index 00000000..0e8a3af5 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_cluster_capacity.go @@ -0,0 +1,26 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DedicatedHostClusterCapacity is a nested struct in ecs response +type DedicatedHostClusterCapacity struct { + AvailableVcpus int `json:"AvailableVcpus" xml:"AvailableVcpus"` + AvailableMemory int `json:"AvailableMemory" xml:"AvailableMemory"` + TotalMemory int `json:"TotalMemory" xml:"TotalMemory"` + TotalVcpus int `json:"TotalVcpus" xml:"TotalVcpus"` + LocalStorageCapacities LocalStorageCapacities `json:"LocalStorageCapacities" xml:"LocalStorageCapacities"` + AvailableInstanceTypes AvailableInstanceTypesInDescribeDedicatedHostClusters `json:"AvailableInstanceTypes" xml:"AvailableInstanceTypes"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_clusters.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_clusters.go new file mode 100644 index 00000000..f2076d9b --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_clusters.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DedicatedHostClusters is a nested struct in ecs response +type DedicatedHostClusters struct { + DedicatedHostCluster []DedicatedHostCluster `json:"DedicatedHostCluster" xml:"DedicatedHostCluster"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_ids.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_ids.go new file mode 100644 index 00000000..d14abb2f --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_ids.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DedicatedHostIds is a nested struct in ecs response +type DedicatedHostIds struct { + DedicatedHostId []string `json:"DedicatedHostId" xml:"DedicatedHostId"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_renew_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_renew_attribute.go index 4c390a28..7c1ce28b 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_renew_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_renew_attribute.go @@ -17,9 +17,10 @@ package ecs // DedicatedHostRenewAttribute is a nested struct in ecs response type DedicatedHostRenewAttribute struct { - DedicatedHostId string `json:"DedicatedHostId" xml:"DedicatedHostId"` - AutoRenewEnabled bool `json:"AutoRenewEnabled" xml:"AutoRenewEnabled"` - Duration int `json:"Duration" xml:"Duration"` PeriodUnit string `json:"PeriodUnit" xml:"PeriodUnit"` + Duration int `json:"Duration" xml:"Duration"` + DedicatedHostId string `json:"DedicatedHostId" xml:"DedicatedHostId"` RenewalStatus string `json:"RenewalStatus" xml:"RenewalStatus"` + AutoRenewEnabled bool `json:"AutoRenewEnabled" xml:"AutoRenewEnabled"` + AutoRenewWithEcs string `json:"AutoRenewWithEcs" xml:"AutoRenewWithEcs"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_type.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_type.go index fae244bd..3198db14 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_type.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_host_type.go @@ -17,17 +17,19 @@ package ecs // DedicatedHostType is a nested struct in ecs response type DedicatedHostType struct { - DedicatedHostType string `json:"DedicatedHostType" xml:"DedicatedHostType"` - Sockets int `json:"Sockets" xml:"Sockets"` - TotalVcpus int `json:"TotalVcpus" xml:"TotalVcpus"` - TotalVgpus int `json:"TotalVgpus" xml:"TotalVgpus"` Cores int `json:"Cores" xml:"Cores"` + LocalStorageCategory string `json:"LocalStorageCategory" xml:"LocalStorageCategory"` + GPUSpec string `json:"GPUSpec" xml:"GPUSpec"` + TotalVcpus int `json:"TotalVcpus" xml:"TotalVcpus"` + CpuOverCommitRatioRange string `json:"CpuOverCommitRatioRange" xml:"CpuOverCommitRatioRange"` PhysicalGpus int `json:"PhysicalGpus" xml:"PhysicalGpus"` MemorySize float64 `json:"MemorySize" xml:"MemorySize"` + SupportCpuOverCommitRatio bool `json:"SupportCpuOverCommitRatio" xml:"SupportCpuOverCommitRatio"` LocalStorageCapacity int64 `json:"LocalStorageCapacity" xml:"LocalStorageCapacity"` + DedicatedHostType string `json:"DedicatedHostType" xml:"DedicatedHostType"` LocalStorageAmount int `json:"LocalStorageAmount" xml:"LocalStorageAmount"` - LocalStorageCategory string `json:"LocalStorageCategory" xml:"LocalStorageCategory"` - GPUSpec string `json:"GPUSpec" xml:"GPUSpec"` + TotalVgpus int `json:"TotalVgpus" xml:"TotalVgpus"` + Sockets int `json:"Sockets" xml:"Sockets"` SupportedInstanceTypeFamilies SupportedInstanceTypeFamiliesInDescribeDedicatedHostTypes `json:"SupportedInstanceTypeFamilies" xml:"SupportedInstanceTypeFamilies"` SupportedInstanceTypesList SupportedInstanceTypesListInDescribeDedicatedHostTypes `json:"SupportedInstanceTypesList" xml:"SupportedInstanceTypesList"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_instance_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_instance_attribute.go index 89392665..7a25ac55 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_instance_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_dedicated_instance_attribute.go @@ -17,6 +17,6 @@ package ecs // DedicatedInstanceAttribute is a nested struct in ecs response type DedicatedInstanceAttribute struct { - Tenancy string `json:"Tenancy" xml:"Tenancy"` Affinity string `json:"Affinity" xml:"Affinity"` + Tenancy string `json:"Tenancy" xml:"Tenancy"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_demand.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_demand.go index a64888f4..0b7a7ae9 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_demand.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_demand.go @@ -17,19 +17,23 @@ package ecs // Demand is a nested struct in ecs response type Demand struct { - ZoneId string `json:"ZoneId" xml:"ZoneId"` + Comment string `json:"Comment" xml:"Comment"` + DemandDescription string `json:"DemandDescription" xml:"DemandDescription"` + DemandId string `json:"DemandId" xml:"DemandId"` DemandTime string `json:"DemandTime" xml:"DemandTime"` - InstanceTypeFamily string `json:"InstanceTypeFamily" xml:"InstanceTypeFamily"` InstanceType string `json:"InstanceType" xml:"InstanceType"` - InstanceChargeType string `json:"InstanceChargeType" xml:"InstanceChargeType"` + DemandName string `json:"DemandName" xml:"DemandName"` Period int `json:"Period" xml:"Period"` - PeriodUnit string `json:"PeriodUnit" xml:"PeriodUnit"` - StartTime string `json:"StartTime" xml:"StartTime"` - EndTime string `json:"EndTime" xml:"EndTime"` - DemandStatus string `json:"DemandStatus" xml:"DemandStatus"` - TotalAmount int `json:"TotalAmount" xml:"TotalAmount"` + InstanceChargeType string `json:"InstanceChargeType" xml:"InstanceChargeType"` AvailableAmount int `json:"AvailableAmount" xml:"AvailableAmount"` + EndTime string `json:"EndTime" xml:"EndTime"` + StartTime string `json:"StartTime" xml:"StartTime"` + PeriodUnit string `json:"PeriodUnit" xml:"PeriodUnit"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` UsedAmount int `json:"UsedAmount" xml:"UsedAmount"` + TotalAmount int `json:"TotalAmount" xml:"TotalAmount"` DeliveringAmount int `json:"DeliveringAmount" xml:"DeliveringAmount"` + InstanceTypeFamily string `json:"InstanceTypeFamily" xml:"InstanceTypeFamily"` + DemandStatus string `json:"DemandStatus" xml:"DemandStatus"` SupplyInfos SupplyInfos `json:"SupplyInfos" xml:"SupplyInfos"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_deployment_set.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_deployment_set.go index c1f0b463..2d728922 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_deployment_set.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_deployment_set.go @@ -17,14 +17,16 @@ package ecs // DeploymentSet is a nested struct in ecs response type DeploymentSet struct { - DeploymentSetId string `json:"DeploymentSetId" xml:"DeploymentSetId"` - DeploymentSetDescription string `json:"DeploymentSetDescription" xml:"DeploymentSetDescription"` - DeploymentSetName string `json:"DeploymentSetName" xml:"DeploymentSetName"` - Strategy string `json:"Strategy" xml:"Strategy"` - DeploymentStrategy string `json:"DeploymentStrategy" xml:"DeploymentStrategy"` - Domain string `json:"Domain" xml:"Domain"` - Granularity string `json:"Granularity" xml:"Granularity"` - InstanceAmount int `json:"InstanceAmount" xml:"InstanceAmount"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - InstanceIds InstanceIds `json:"InstanceIds" xml:"InstanceIds"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + Strategy string `json:"Strategy" xml:"Strategy"` + DeploymentSetId string `json:"DeploymentSetId" xml:"DeploymentSetId"` + DeploymentStrategy string `json:"DeploymentStrategy" xml:"DeploymentStrategy"` + DeploymentSetDescription string `json:"DeploymentSetDescription" xml:"DeploymentSetDescription"` + Domain string `json:"Domain" xml:"Domain"` + GroupCount int `json:"GroupCount" xml:"GroupCount"` + Granularity string `json:"Granularity" xml:"Granularity"` + DeploymentSetName string `json:"DeploymentSetName" xml:"DeploymentSetName"` + InstanceAmount int `json:"InstanceAmount" xml:"InstanceAmount"` + InstanceIds InstanceIdsInDescribeDeploymentSets `json:"InstanceIds" xml:"InstanceIds"` + Capacities Capacities `json:"Capacities" xml:"Capacities"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_detach_instance_ram_role_result.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_detach_instance_ram_role_result.go index 00c13a21..d2f635c1 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_detach_instance_ram_role_result.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_detach_instance_ram_role_result.go @@ -17,9 +17,9 @@ package ecs // DetachInstanceRamRoleResult is a nested struct in ecs response type DetachInstanceRamRoleResult struct { - InstanceId string `json:"InstanceId" xml:"InstanceId"` - Success bool `json:"Success" xml:"Success"` Code string `json:"Code" xml:"Code"` Message string `json:"Message" xml:"Message"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + Success bool `json:"Success" xml:"Success"` InstanceRamRoleSets InstanceRamRoleSetsInDetachInstanceRamRole `json:"InstanceRamRoleSets" xml:"InstanceRamRoleSets"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_detection_options.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_detection_options.go new file mode 100644 index 00000000..a81a6fde --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_detection_options.go @@ -0,0 +1,22 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DetectionOptions is a nested struct in ecs response +type DetectionOptions struct { + Status string `json:"Status" xml:"Status"` + Items Items `json:"Items" xml:"Items"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk.go index 362250c7..59c22b42 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk.go @@ -20,14 +20,18 @@ type Disk struct { Category string `json:"Category" xml:"Category"` BdfId string `json:"BdfId" xml:"BdfId"` ImageId string `json:"ImageId" xml:"ImageId"` - AutoSnapshotPolicyId string `json:"AutoSnapshotPolicyId" xml:"AutoSnapshotPolicyId"` DeleteAutoSnapshot bool `json:"DeleteAutoSnapshot" xml:"DeleteAutoSnapshot"` + StorageClusterId string `json:"StorageClusterId" xml:"StorageClusterId"` + AutoSnapshotPolicyId string `json:"AutoSnapshotPolicyId" xml:"AutoSnapshotPolicyId"` + ProvisionedIops int64 `json:"ProvisionedIops" xml:"ProvisionedIops"` EnableAutomatedSnapshotPolicy bool `json:"EnableAutomatedSnapshotPolicy" xml:"EnableAutomatedSnapshotPolicy"` + SerialNumber string `json:"SerialNumber" xml:"SerialNumber"` DiskId string `json:"DiskId" xml:"DiskId"` + Throughput int `json:"Throughput" xml:"Throughput"` Size int `json:"Size" xml:"Size"` IOPS int `json:"IOPS" xml:"IOPS"` - RegionId string `json:"RegionId" xml:"RegionId"` MountInstanceNum int `json:"MountInstanceNum" xml:"MountInstanceNum"` + RegionId string `json:"RegionId" xml:"RegionId"` StorageSetId string `json:"StorageSetId" xml:"StorageSetId"` ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` InstanceId string `json:"InstanceId" xml:"InstanceId"` @@ -35,24 +39,29 @@ type Disk struct { Type string `json:"Type" xml:"Type"` ExpiredTime string `json:"ExpiredTime" xml:"ExpiredTime"` Device string `json:"Device" xml:"Device"` + MultiAttach string `json:"MultiAttach" xml:"MultiAttach"` + BurstingEnabled bool `json:"BurstingEnabled" xml:"BurstingEnabled"` CreationTime string `json:"CreationTime" xml:"CreationTime"` IOPSRead int `json:"IOPSRead" xml:"IOPSRead"` SourceSnapshotId string `json:"SourceSnapshotId" xml:"SourceSnapshotId"` StorageSetPartitionNumber int `json:"StorageSetPartitionNumber" xml:"StorageSetPartitionNumber"` - ProductCode string `json:"ProductCode" xml:"ProductCode"` Portable bool `json:"Portable" xml:"Portable"` KMSKeyId string `json:"KMSKeyId" xml:"KMSKeyId"` + ProductCode string `json:"ProductCode" xml:"ProductCode"` Encrypted bool `json:"Encrypted" xml:"Encrypted"` EnableAutoSnapshot bool `json:"EnableAutoSnapshot" xml:"EnableAutoSnapshot"` DetachedTime string `json:"DetachedTime" xml:"DetachedTime"` DeleteWithInstance bool `json:"DeleteWithInstance" xml:"DeleteWithInstance"` - ZoneId string `json:"ZoneId" xml:"ZoneId"` DiskChargeType string `json:"DiskChargeType" xml:"DiskChargeType"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` PerformanceLevel string `json:"PerformanceLevel" xml:"PerformanceLevel"` - DiskName string `json:"DiskName" xml:"DiskName"` + ThroughputRead int `json:"ThroughputRead" xml:"ThroughputRead"` + ThroughputWrite int `json:"ThroughputWrite" xml:"ThroughputWrite"` Status string `json:"Status" xml:"Status"` - AttachedTime string `json:"AttachedTime" xml:"AttachedTime"` + DiskName string `json:"DiskName" xml:"DiskName"` IOPSWrite int `json:"IOPSWrite" xml:"IOPSWrite"` + AttachedTime string `json:"AttachedTime" xml:"AttachedTime"` + Attachments Attachments `json:"Attachments" xml:"Attachments"` Tags TagsInDescribeDisks `json:"Tags" xml:"Tags"` MountInstances MountInstances `json:"MountInstances" xml:"MountInstances"` OperationLocks OperationLocksInDescribeDisks `json:"OperationLocks" xml:"OperationLocks"` diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_device_mapping.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_device_mapping.go index 68a97fd5..7fbb641a 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_device_mapping.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_device_mapping.go @@ -17,13 +17,13 @@ package ecs // DiskDeviceMapping is a nested struct in ecs response type DiskDeviceMapping struct { - SnapshotId string `json:"SnapshotId" xml:"SnapshotId"` - Size string `json:"Size" xml:"Size"` - Device string `json:"Device" xml:"Device"` - Type string `json:"Type" xml:"Type"` - Format string `json:"Format" xml:"Format"` - ImportOSSBucket string `json:"ImportOSSBucket" xml:"ImportOSSBucket"` - ImportOSSObject string `json:"ImportOSSObject" xml:"ImportOSSObject"` Progress string `json:"Progress" xml:"Progress"` + Format string `json:"Format" xml:"Format"` + Device string `json:"Device" xml:"Device"` + Size string `json:"Size" xml:"Size"` RemainTime int `json:"RemainTime" xml:"RemainTime"` + SnapshotId string `json:"SnapshotId" xml:"SnapshotId"` + ImportOSSObject string `json:"ImportOSSObject" xml:"ImportOSSObject"` + ImportOSSBucket string `json:"ImportOSSBucket" xml:"ImportOSSBucket"` + Type string `json:"Type" xml:"Type"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_device_mappings_in_describe_image_from_family.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_device_mappings_in_describe_image_from_family.go new file mode 100644 index 00000000..2f30fbf5 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_device_mappings_in_describe_image_from_family.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DiskDeviceMappingsInDescribeImageFromFamily is a nested struct in ecs response +type DiskDeviceMappingsInDescribeImageFromFamily struct { + DiskDeviceMapping []DiskDeviceMapping `json:"DiskDeviceMapping" xml:"DiskDeviceMapping"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_device_mappings.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_device_mappings_in_describe_images.go similarity index 86% rename from src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_device_mappings.go rename to src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_device_mappings_in_describe_images.go index 9585dcfb..39d99d15 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_device_mappings.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_device_mappings_in_describe_images.go @@ -15,7 +15,7 @@ package ecs // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DiskDeviceMappings is a nested struct in ecs response -type DiskDeviceMappings struct { +// DiskDeviceMappingsInDescribeImages is a nested struct in ecs response +type DiskDeviceMappingsInDescribeImages struct { DiskDeviceMapping []DiskDeviceMapping `json:"DiskDeviceMapping" xml:"DiskDeviceMapping"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_event_type.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_event_type.go index 56f1324d..a6b50639 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_event_type.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_event_type.go @@ -18,7 +18,8 @@ package ecs // DiskEventType is a nested struct in ecs response type DiskEventType struct { EventId string `json:"EventId" xml:"EventId"` - EventTime string `json:"EventTime" xml:"EventTime"` EventEndTime string `json:"EventEndTime" xml:"EventEndTime"` + EventTime string `json:"EventTime" xml:"EventTime"` + ImpactLevel string `json:"ImpactLevel" xml:"ImpactLevel"` EventType EventType `json:"EventType" xml:"EventType"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_monitor_data.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_monitor_data.go index 3fb25e23..219fab03 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_monitor_data.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disk_monitor_data.go @@ -17,14 +17,14 @@ package ecs // DiskMonitorData is a nested struct in ecs response type DiskMonitorData struct { - DiskId string `json:"DiskId" xml:"DiskId"` - IOPSRead int `json:"IOPSRead" xml:"IOPSRead"` - IOPSWrite int `json:"IOPSWrite" xml:"IOPSWrite"` - IOPSTotal int `json:"IOPSTotal" xml:"IOPSTotal"` BPSRead int `json:"BPSRead" xml:"BPSRead"` - BPSWrite int `json:"BPSWrite" xml:"BPSWrite"` - BPSTotal int `json:"BPSTotal" xml:"BPSTotal"` + IOPSRead int `json:"IOPSRead" xml:"IOPSRead"` LatencyRead int `json:"LatencyRead" xml:"LatencyRead"` - LatencyWrite int `json:"LatencyWrite" xml:"LatencyWrite"` + BPSTotal int `json:"BPSTotal" xml:"BPSTotal"` + IOPSTotal int `json:"IOPSTotal" xml:"IOPSTotal"` TimeStamp string `json:"TimeStamp" xml:"TimeStamp"` + LatencyWrite int `json:"LatencyWrite" xml:"LatencyWrite"` + IOPSWrite int `json:"IOPSWrite" xml:"IOPSWrite"` + DiskId string `json:"DiskId" xml:"DiskId"` + BPSWrite int `json:"BPSWrite" xml:"BPSWrite"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ecs_capacity_reservation_attr.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ecs_capacity_reservation_attr.go index d3800268..4d6d53e1 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ecs_capacity_reservation_attr.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ecs_capacity_reservation_attr.go @@ -17,6 +17,6 @@ package ecs // EcsCapacityReservationAttr is a nested struct in ecs response type EcsCapacityReservationAttr struct { - CapacityReservationId string `json:"CapacityReservationId" xml:"CapacityReservationId"` CapacityReservationPreference string `json:"CapacityReservationPreference" xml:"CapacityReservationPreference"` + CapacityReservationId string `json:"CapacityReservationId" xml:"CapacityReservationId"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_address.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_address.go index 52906ff0..c9b68d52 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_address.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_address.go @@ -17,9 +17,17 @@ package ecs // EipAddress is a nested struct in ecs response type EipAddress struct { - Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` - IsSupportUnassociate bool `json:"IsSupportUnassociate" xml:"IsSupportUnassociate"` - IpAddress string `json:"IpAddress" xml:"IpAddress"` - InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` - AllocationId string `json:"AllocationId" xml:"AllocationId"` + ExpiredTime string `json:"ExpiredTime" xml:"ExpiredTime"` + IpAddress string `json:"IpAddress" xml:"IpAddress"` + EipBandwidth string `json:"EipBandwidth" xml:"EipBandwidth"` + ChargeType string `json:"ChargeType" xml:"ChargeType"` + AllocationTime string `json:"AllocationTime" xml:"AllocationTime"` + InstanceType string `json:"InstanceType" xml:"InstanceType"` + AllocationId string `json:"AllocationId" xml:"AllocationId"` + RegionId string `json:"RegionId" xml:"RegionId"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + Bandwidth string `json:"Bandwidth" xml:"Bandwidth"` + InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` + Status string `json:"Status" xml:"Status"` + OperationLocks OperationLocksInDescribeEipAddresses `json:"OperationLocks" xml:"OperationLocks"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_address_in_describe_eip_addresses.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_address_in_describe_eip_addresses.go deleted file mode 100644 index 6315d2b1..00000000 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_address_in_describe_eip_addresses.go +++ /dev/null @@ -1,33 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// EipAddressInDescribeEipAddresses is a nested struct in ecs response -type EipAddressInDescribeEipAddresses struct { - RegionId string `json:"RegionId" xml:"RegionId"` - IpAddress string `json:"IpAddress" xml:"IpAddress"` - AllocationId string `json:"AllocationId" xml:"AllocationId"` - Status string `json:"Status" xml:"Status"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - Bandwidth string `json:"Bandwidth" xml:"Bandwidth"` - EipBandwidth string `json:"EipBandwidth" xml:"EipBandwidth"` - InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` - AllocationTime string `json:"AllocationTime" xml:"AllocationTime"` - InstanceType string `json:"InstanceType" xml:"InstanceType"` - ChargeType string `json:"ChargeType" xml:"ChargeType"` - ExpiredTime string `json:"ExpiredTime" xml:"ExpiredTime"` - OperationLocks OperationLocksInDescribeEipAddresses `json:"OperationLocks" xml:"OperationLocks"` -} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_configs_in_describe_fleets.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_address_in_describe_instance_attribute.go similarity index 64% rename from src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_configs_in_describe_fleets.go rename to src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_address_in_describe_instance_attribute.go index 77084d43..9b69e7af 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_configs_in_describe_fleets.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_address_in_describe_instance_attribute.go @@ -15,7 +15,10 @@ package ecs // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// LaunchTemplateConfigsInDescribeFleets is a nested struct in ecs response -type LaunchTemplateConfigsInDescribeFleets struct { - LaunchTemplateConfig []LaunchTemplateConfig `json:"LaunchTemplateConfig" xml:"LaunchTemplateConfig"` +// EipAddressInDescribeInstanceAttribute is a nested struct in ecs response +type EipAddressInDescribeInstanceAttribute struct { + InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` + IpAddress string `json:"IpAddress" xml:"IpAddress"` + Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` + AllocationId string `json:"AllocationId" xml:"AllocationId"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_address_in_describe_instances.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_address_in_describe_instances.go new file mode 100644 index 00000000..6bba4288 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_address_in_describe_instances.go @@ -0,0 +1,25 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// EipAddressInDescribeInstances is a nested struct in ecs response +type EipAddressInDescribeInstances struct { + IsSupportUnassociate bool `json:"IsSupportUnassociate" xml:"IsSupportUnassociate"` + InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` + IpAddress string `json:"IpAddress" xml:"IpAddress"` + Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` + AllocationId string `json:"AllocationId" xml:"AllocationId"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_addresses.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_addresses.go index bef9830e..55b351bf 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_addresses.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_addresses.go @@ -17,5 +17,5 @@ package ecs // EipAddresses is a nested struct in ecs response type EipAddresses struct { - EipAddress []EipAddressInDescribeEipAddresses `json:"EipAddress" xml:"EipAddress"` + EipAddress []EipAddress `json:"EipAddress" xml:"EipAddress"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_monitor_data.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_monitor_data.go index 4d559e6c..6e820f5b 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_monitor_data.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eip_monitor_data.go @@ -20,7 +20,7 @@ type EipMonitorData struct { EipPackets int `json:"EipPackets" xml:"EipPackets"` TimeStamp string `json:"TimeStamp" xml:"TimeStamp"` EipFlow int `json:"EipFlow" xml:"EipFlow"` - EipRX int `json:"EipRX" xml:"EipRX"` EipBandwidth int `json:"EipBandwidth" xml:"EipBandwidth"` + EipRX int `json:"EipRX" xml:"EipRX"` EipTX int `json:"EipTX" xml:"EipTX"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_elasticity_assurance_item.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_elasticity_assurance_item.go new file mode 100644 index 00000000..42f5903e --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_elasticity_assurance_item.go @@ -0,0 +1,36 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ElasticityAssuranceItem is a nested struct in ecs response +type ElasticityAssuranceItem struct { + PrivatePoolOptionsName string `json:"PrivatePoolOptionsName" xml:"PrivatePoolOptionsName"` + PrivatePoolOptionsMatchCriteria string `json:"PrivatePoolOptionsMatchCriteria" xml:"PrivatePoolOptionsMatchCriteria"` + LatestStartTime string `json:"LatestStartTime" xml:"LatestStartTime"` + UsedAssuranceTimes int `json:"UsedAssuranceTimes" xml:"UsedAssuranceTimes"` + RegionId string `json:"RegionId" xml:"RegionId"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + TotalAssuranceTimes string `json:"TotalAssuranceTimes" xml:"TotalAssuranceTimes"` + StartTimeType string `json:"StartTimeType" xml:"StartTimeType"` + Status string `json:"Status" xml:"Status"` + Description string `json:"Description" xml:"Description"` + InstanceChargeType string `json:"InstanceChargeType" xml:"InstanceChargeType"` + PrivatePoolOptionsId string `json:"PrivatePoolOptionsId" xml:"PrivatePoolOptionsId"` + AllocatedResources AllocatedResourcesInDescribeElasticityAssurances `json:"AllocatedResources" xml:"AllocatedResources"` + Tags TagsInDescribeElasticityAssurances `json:"Tags" xml:"Tags"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_elasticity_assurance_item_in_describe_elasticity_assurance_instances.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_elasticity_assurance_item_in_describe_elasticity_assurance_instances.go new file mode 100644 index 00000000..c8ab8c03 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_elasticity_assurance_item_in_describe_elasticity_assurance_instances.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ElasticityAssuranceItemInDescribeElasticityAssuranceInstances is a nested struct in ecs response +type ElasticityAssuranceItemInDescribeElasticityAssuranceInstances struct { + InstanceIdSet []InstanceIdSet `json:"InstanceIdSet" xml:"InstanceIdSet"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_elasticity_assurance_set.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_elasticity_assurance_set.go new file mode 100644 index 00000000..489e0ca6 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_elasticity_assurance_set.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ElasticityAssuranceSet is a nested struct in ecs response +type ElasticityAssuranceSet struct { + ElasticityAssuranceItem []ElasticityAssuranceItem `json:"ElasticityAssuranceItem" xml:"ElasticityAssuranceItem"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eni_monitor_data.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eni_monitor_data.go index 52af66f4..9b889fc7 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eni_monitor_data.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_eni_monitor_data.go @@ -17,12 +17,12 @@ package ecs // EniMonitorData is a nested struct in ecs response type EniMonitorData struct { - EniId string `json:"EniId" xml:"EniId"` + PacketRx string `json:"PacketRx" xml:"PacketRx"` TimeStamp string `json:"TimeStamp" xml:"TimeStamp"` + DropPacketRx string `json:"DropPacketRx" xml:"DropPacketRx"` + EniId string `json:"EniId" xml:"EniId"` + DropPacketTx string `json:"DropPacketTx" xml:"DropPacketTx"` PacketTx string `json:"PacketTx" xml:"PacketTx"` - PacketRx string `json:"PacketRx" xml:"PacketRx"` IntranetTx string `json:"IntranetTx" xml:"IntranetTx"` IntranetRx string `json:"IntranetRx" xml:"IntranetRx"` - DropPacketTx string `json:"DropPacketTx" xml:"DropPacketTx"` - DropPacketRx string `json:"DropPacketRx" xml:"DropPacketRx"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_entries.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_entries.go new file mode 100644 index 00000000..8b02118e --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_entries.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Entries is a nested struct in ecs response +type Entries struct { + Entry []Entry `json:"Entry" xml:"Entry"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_entry.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_entry.go new file mode 100644 index 00000000..3a423454 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_entry.go @@ -0,0 +1,22 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Entry is a nested struct in ecs response +type Entry struct { + Description string `json:"Description" xml:"Description"` + Cidr string `json:"Cidr" xml:"Cidr"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_extended_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_extended_attribute.go index cfa146cd..0a460cb8 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_extended_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_extended_attribute.go @@ -17,6 +17,18 @@ package ecs // ExtendedAttribute is a nested struct in ecs response type ExtendedAttribute struct { - Device string `json:"Device" xml:"Device"` - DiskId string `json:"DiskId" xml:"DiskId"` + HostId string `json:"HostId" xml:"HostId"` + Device string `json:"Device" xml:"Device"` + Code string `json:"Code" xml:"Code"` + OnlineRepairPolicy string `json:"OnlineRepairPolicy" xml:"OnlineRepairPolicy"` + DiskId string `json:"DiskId" xml:"DiskId"` + HostType string `json:"HostType" xml:"HostType"` + PunishType string `json:"PunishType" xml:"PunishType"` + PunishUrl string `json:"PunishUrl" xml:"PunishUrl"` + PunishDomain string `json:"PunishDomain" xml:"PunishDomain"` + Rack string `json:"Rack" xml:"Rack"` + CanAccept string `json:"CanAccept" xml:"CanAccept"` + ResponseResult string `json:"ResponseResult" xml:"ResponseResult"` + MigrationOptions MigrationOptions `json:"MigrationOptions" xml:"MigrationOptions"` + InactiveDisks InactiveDisksInDescribeInstanceHistoryEvents `json:"InactiveDisks" xml:"InactiveDisks"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_features.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_features.go new file mode 100644 index 00000000..8751dfb1 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_features.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Features is a nested struct in ecs response +type Features struct { + NvmeSupport string `json:"NvmeSupport" xml:"NvmeSupport"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_fee_of_instances_in_modify_dedicated_hosts_charge_type.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_fee_of_instances_in_modify_dedicated_hosts_charge_type.go new file mode 100644 index 00000000..5efa26f6 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_fee_of_instances_in_modify_dedicated_hosts_charge_type.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// FeeOfInstancesInModifyDedicatedHostsChargeType is a nested struct in ecs response +type FeeOfInstancesInModifyDedicatedHostsChargeType struct { + FeeOfInstance []FeeOfInstance `json:"FeeOfInstance" xml:"FeeOfInstance"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_fee_of_instances.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_fee_of_instances_in_modify_instance_charge_type.go similarity index 85% rename from src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_fee_of_instances.go rename to src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_fee_of_instances_in_modify_instance_charge_type.go index 74b22899..fa641f4e 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_fee_of_instances.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_fee_of_instances_in_modify_instance_charge_type.go @@ -15,7 +15,7 @@ package ecs // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// FeeOfInstances is a nested struct in ecs response -type FeeOfInstances struct { +// FeeOfInstancesInModifyInstanceChargeType is a nested struct in ecs response +type FeeOfInstancesInModifyInstanceChargeType struct { FeeOfInstance []FeeOfInstance `json:"FeeOfInstance" xml:"FeeOfInstance"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_fleet.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_fleet.go deleted file mode 100644 index dc32965b..00000000 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_fleet.go +++ /dev/null @@ -1,39 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// Fleet is a nested struct in ecs response -type Fleet struct { - FleetId string `json:"FleetId" xml:"FleetId"` - FleetName string `json:"FleetName" xml:"FleetName"` - FleetType string `json:"FleetType" xml:"FleetType"` - Status string `json:"Status" xml:"Status"` - State string `json:"State" xml:"State"` - RegionId string `json:"RegionId" xml:"RegionId"` - ValidFrom string `json:"ValidFrom" xml:"ValidFrom"` - ValidUntil string `json:"ValidUntil" xml:"ValidUntil"` - ExcessCapacityTerminationPolicy string `json:"ExcessCapacityTerminationPolicy" xml:"ExcessCapacityTerminationPolicy"` - MaxSpotPrice float64 `json:"MaxSpotPrice" xml:"MaxSpotPrice"` - LaunchTemplateId string `json:"LaunchTemplateId" xml:"LaunchTemplateId"` - LaunchTemplateVersion string `json:"LaunchTemplateVersion" xml:"LaunchTemplateVersion"` - TerminateInstances bool `json:"TerminateInstances" xml:"TerminateInstances"` - TerminateInstancesWithExpiration bool `json:"TerminateInstancesWithExpiration" xml:"TerminateInstancesWithExpiration"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - SpotOptions SpotOptions `json:"SpotOptions" xml:"SpotOptions"` - OnDemandOptions OnDemandOptions `json:"OnDemandOptions" xml:"OnDemandOptions"` - TargetCapacitySpecification TargetCapacitySpecification `json:"TargetCapacitySpecification" xml:"TargetCapacitySpecification"` - LaunchTemplateConfigs LaunchTemplateConfigsInDescribeFleets `json:"launchTemplateConfigs" xml:"launchTemplateConfigs"` -} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_fleet_history.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_fleet_history.go deleted file mode 100644 index 3acfe376..00000000 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_fleet_history.go +++ /dev/null @@ -1,25 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// FleetHistory is a nested struct in ecs response -type FleetHistory struct { - TaskId string `json:"TaskId" xml:"TaskId"` - Status string `json:"Status" xml:"Status"` - LastEventTime string `json:"LastEventTime" xml:"LastEventTime"` - StartTime string `json:"StartTime" xml:"StartTime"` - ActivityDetails ActivityDetailsInDescribeFleetHistory `json:"ActivityDetails" xml:"ActivityDetails"` -} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_forward_table_entry.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_forward_table_entry.go index e7a1ed6b..d8b64e65 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_forward_table_entry.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_forward_table_entry.go @@ -17,12 +17,12 @@ package ecs // ForwardTableEntry is a nested struct in ecs response type ForwardTableEntry struct { - ForwardTableId string `json:"ForwardTableId" xml:"ForwardTableId"` + Status string `json:"Status" xml:"Status"` ForwardEntryId string `json:"ForwardEntryId" xml:"ForwardEntryId"` - ExternalIp string `json:"ExternalIp" xml:"ExternalIp"` - ExternalPort string `json:"ExternalPort" xml:"ExternalPort"` - IpProtocol string `json:"IpProtocol" xml:"IpProtocol"` InternalIp string `json:"InternalIp" xml:"InternalIp"` InternalPort string `json:"InternalPort" xml:"InternalPort"` - Status string `json:"Status" xml:"Status"` + ForwardTableId string `json:"ForwardTableId" xml:"ForwardTableId"` + ExternalPort string `json:"ExternalPort" xml:"ExternalPort"` + IpProtocol string `json:"IpProtocol" xml:"IpProtocol"` + ExternalIp string `json:"ExternalIp" xml:"ExternalIp"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ha_vip.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ha_vip.go index 6c754001..05f17b74 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ha_vip.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ha_vip.go @@ -17,15 +17,15 @@ package ecs // HaVip is a nested struct in ecs response type HaVip struct { - HaVipId string `json:"HaVipId" xml:"HaVipId"` - RegionId string `json:"RegionId" xml:"RegionId"` + Status string `json:"Status" xml:"Status"` VpcId string `json:"VpcId" xml:"VpcId"` VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` IpAddress string `json:"IpAddress" xml:"IpAddress"` - Status string `json:"Status" xml:"Status"` - MasterInstanceId string `json:"MasterInstanceId" xml:"MasterInstanceId"` Description string `json:"Description" xml:"Description"` + HaVipId string `json:"HaVipId" xml:"HaVipId"` CreateTime string `json:"CreateTime" xml:"CreateTime"` - AssociatedInstances AssociatedInstances `json:"AssociatedInstances" xml:"AssociatedInstances"` + MasterInstanceId string `json:"MasterInstanceId" xml:"MasterInstanceId"` + RegionId string `json:"RegionId" xml:"RegionId"` AssociatedEipAddresses AssociatedEipAddresses `json:"AssociatedEipAddresses" xml:"AssociatedEipAddresses"` + AssociatedInstances AssociatedInstances `json:"AssociatedInstances" xml:"AssociatedInstances"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_hibernation_options.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_hibernation_options.go new file mode 100644 index 00000000..52dde74b --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_hibernation_options.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// HibernationOptions is a nested struct in ecs response +type HibernationOptions struct { + Configured bool `json:"Configured" xml:"Configured"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_host_detail_info.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_host_detail_info.go new file mode 100644 index 00000000..f83bb518 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_host_detail_info.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// HostDetailInfo is a nested struct in ecs response +type HostDetailInfo struct { + SerialNumber string `json:"SerialNumber" xml:"SerialNumber"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image.go index 17aab85d..a6ebb358 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image.go @@ -17,28 +17,36 @@ package ecs // Image is a nested struct in ecs response type Image struct { - Progress string `json:"Progress" xml:"Progress"` - ImageId string `json:"ImageId" xml:"ImageId"` - ImageName string `json:"ImageName" xml:"ImageName"` - ImageVersion string `json:"ImageVersion" xml:"ImageVersion"` - Description string `json:"Description" xml:"Description"` - Size int `json:"Size" xml:"Size"` - ImageOwnerAlias string `json:"ImageOwnerAlias" xml:"ImageOwnerAlias"` - IsSupportIoOptimized bool `json:"IsSupportIoOptimized" xml:"IsSupportIoOptimized"` - IsSupportCloudinit bool `json:"IsSupportCloudinit" xml:"IsSupportCloudinit"` - OSName string `json:"OSName" xml:"OSName"` - OSNameEn string `json:"OSNameEn" xml:"OSNameEn"` - Architecture string `json:"Architecture" xml:"Architecture"` - Status string `json:"Status" xml:"Status"` - ProductCode string `json:"ProductCode" xml:"ProductCode"` - IsSubscribed bool `json:"IsSubscribed" xml:"IsSubscribed"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - IsSelfShared string `json:"IsSelfShared" xml:"IsSelfShared"` - OSType string `json:"OSType" xml:"OSType"` - Platform string `json:"Platform" xml:"Platform"` - Usage string `json:"Usage" xml:"Usage"` - IsCopied bool `json:"IsCopied" xml:"IsCopied"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - DiskDeviceMappings DiskDeviceMappings `json:"DiskDeviceMappings" xml:"DiskDeviceMappings"` - Tags TagsInDescribeImages `json:"Tags" xml:"Tags"` + BootMode string `json:"BootMode" xml:"BootMode"` + ImageId string `json:"ImageId" xml:"ImageId"` + ImageOwnerAlias string `json:"ImageOwnerAlias" xml:"ImageOwnerAlias"` + OSName string `json:"OSName" xml:"OSName"` + OSNameEn string `json:"OSNameEn" xml:"OSNameEn"` + ImageFamily string `json:"ImageFamily" xml:"ImageFamily"` + Architecture string `json:"Architecture" xml:"Architecture"` + IsSupportIoOptimized bool `json:"IsSupportIoOptimized" xml:"IsSupportIoOptimized"` + Size int `json:"Size" xml:"Size"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + SupplierName string `json:"SupplierName" xml:"SupplierName"` + Description string `json:"Description" xml:"Description"` + Usage string `json:"Usage" xml:"Usage"` + IsCopied bool `json:"IsCopied" xml:"IsCopied"` + LoginAsNonRootSupported bool `json:"LoginAsNonRootSupported" xml:"LoginAsNonRootSupported"` + ImageVersion string `json:"ImageVersion" xml:"ImageVersion"` + OSType string `json:"OSType" xml:"OSType"` + IsSubscribed bool `json:"IsSubscribed" xml:"IsSubscribed"` + IsSupportCloudinit bool `json:"IsSupportCloudinit" xml:"IsSupportCloudinit"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + ProductCode string `json:"ProductCode" xml:"ProductCode"` + Progress string `json:"Progress" xml:"Progress"` + Platform string `json:"Platform" xml:"Platform"` + IsSelfShared string `json:"IsSelfShared" xml:"IsSelfShared"` + ImageName string `json:"ImageName" xml:"ImageName"` + Status string `json:"Status" xml:"Status"` + ImageOwnerId int64 `json:"ImageOwnerId" xml:"ImageOwnerId"` + IsPublic bool `json:"IsPublic" xml:"IsPublic"` + DetectionOptions DetectionOptions `json:"DetectionOptions" xml:"DetectionOptions"` + Features Features `json:"Features" xml:"Features"` + Tags TagsInDescribeImageFromFamily `json:"Tags" xml:"Tags"` + DiskDeviceMappings DiskDeviceMappingsInDescribeImageFromFamily `json:"DiskDeviceMappings" xml:"DiskDeviceMappings"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_component.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_component.go new file mode 100644 index 00000000..4f17be75 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_component.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ImageComponent is a nested struct in ecs response +type ImageComponent struct { + ImageComponentSet []ImageComponentSet `json:"ImageComponentSet" xml:"ImageComponentSet"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_component_set.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_component_set.go new file mode 100644 index 00000000..fdf4e177 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_component_set.go @@ -0,0 +1,30 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ImageComponentSet is a nested struct in ecs response +type ImageComponentSet struct { + CreationTime string `json:"CreationTime" xml:"CreationTime"` + Description string `json:"Description" xml:"Description"` + SystemType string `json:"SystemType" xml:"SystemType"` + ImageComponentId string `json:"ImageComponentId" xml:"ImageComponentId"` + ComponentType string `json:"ComponentType" xml:"ComponentType"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + Name string `json:"Name" xml:"Name"` + Content string `json:"Content" xml:"Content"` + Owner string `json:"Owner" xml:"Owner"` + Tags TagsInDescribeImageComponents `json:"Tags" xml:"Tags"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_options.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_options.go new file mode 100644 index 00000000..d346336e --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_options.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ImageOptions is a nested struct in ecs response +type ImageOptions struct { + LoginAsNonRoot bool `json:"LoginAsNonRoot" xml:"LoginAsNonRoot"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_pipeline.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_pipeline.go new file mode 100644 index 00000000..6b460b7c --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_pipeline.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ImagePipeline is a nested struct in ecs response +type ImagePipeline struct { + ImagePipelineSet []ImagePipelineSet `json:"ImagePipelineSet" xml:"ImagePipelineSet"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_pipeline_execution.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_pipeline_execution.go new file mode 100644 index 00000000..51c8bb07 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_pipeline_execution.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ImagePipelineExecution is a nested struct in ecs response +type ImagePipelineExecution struct { + ImagePipelineExecutionSet []ImagePipelineExecutionSet `json:"ImagePipelineExecutionSet" xml:"ImagePipelineExecutionSet"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_pipeline_execution_set.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_pipeline_execution_set.go new file mode 100644 index 00000000..09d39218 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_pipeline_execution_set.go @@ -0,0 +1,29 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ImagePipelineExecutionSet is a nested struct in ecs response +type ImagePipelineExecutionSet struct { + CreationTime string `json:"CreationTime" xml:"CreationTime"` + ImagePipelineId string `json:"ImagePipelineId" xml:"ImagePipelineId"` + Status string `json:"Status" xml:"Status"` + ModifiedTime string `json:"ModifiedTime" xml:"ModifiedTime"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + Message string `json:"Message" xml:"Message"` + ImageId string `json:"ImageId" xml:"ImageId"` + ExecutionId string `json:"ExecutionId" xml:"ExecutionId"` + Tags TagsInDescribeImagePipelineExecutions `json:"Tags" xml:"Tags"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_pipeline_set.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_pipeline_set.go new file mode 100644 index 00000000..324dd701 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_image_pipeline_set.go @@ -0,0 +1,37 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ImagePipelineSet is a nested struct in ecs response +type ImagePipelineSet struct { + CreationTime string `json:"CreationTime" xml:"CreationTime"` + DeleteInstanceOnFailure bool `json:"DeleteInstanceOnFailure" xml:"DeleteInstanceOnFailure"` + InstanceType string `json:"InstanceType" xml:"InstanceType"` + InternetMaxBandwidthOut int `json:"InternetMaxBandwidthOut" xml:"InternetMaxBandwidthOut"` + ImagePipelineId string `json:"ImagePipelineId" xml:"ImagePipelineId"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + SystemDiskSize int `json:"SystemDiskSize" xml:"SystemDiskSize"` + Description string `json:"Description" xml:"Description"` + BaseImage string `json:"BaseImage" xml:"BaseImage"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + ImageName string `json:"ImageName" xml:"ImageName"` + BaseImageType string `json:"BaseImageType" xml:"BaseImageType"` + Name string `json:"Name" xml:"Name"` + BuildContent string `json:"BuildContent" xml:"BuildContent"` + ToRegionIds ToRegionIds `json:"ToRegionIds" xml:"ToRegionIds"` + AddAccounts AddAccounts `json:"AddAccounts" xml:"AddAccounts"` + Tags TagsInDescribeImagePipelines `json:"Tags" xml:"Tags"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_inactive_disk.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_inactive_disk.go new file mode 100644 index 00000000..727f5edc --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_inactive_disk.go @@ -0,0 +1,25 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InactiveDisk is a nested struct in ecs response +type InactiveDisk struct { + DeviceCategory string `json:"DeviceCategory" xml:"DeviceCategory"` + ReleaseTime string `json:"ReleaseTime" xml:"ReleaseTime"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + DeviceSize string `json:"DeviceSize" xml:"DeviceSize"` + DeviceType string `json:"DeviceType" xml:"DeviceType"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_inactive_disks_in_describe_instance_history_events.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_inactive_disks_in_describe_instance_history_events.go new file mode 100644 index 00000000..4d343ff4 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_inactive_disks_in_describe_instance_history_events.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InactiveDisksInDescribeInstanceHistoryEvents is a nested struct in ecs response +type InactiveDisksInDescribeInstanceHistoryEvents struct { + InactiveDisk []InactiveDisk `json:"InactiveDisk" xml:"InactiveDisk"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_inactive_disks_in_describe_instances_full_status.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_inactive_disks_in_describe_instances_full_status.go new file mode 100644 index 00000000..a65e4e15 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_inactive_disks_in_describe_instances_full_status.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InactiveDisksInDescribeInstancesFullStatus is a nested struct in ecs response +type InactiveDisksInDescribeInstancesFullStatus struct { + InactiveDisk []InactiveDisk `json:"InactiveDisk" xml:"InactiveDisk"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance.go index 134791bd..9f54eb07 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance.go @@ -17,64 +17,87 @@ package ecs // Instance is a nested struct in ecs response type Instance struct { - ImageId string `json:"ImageId" xml:"ImageId"` - InstanceType string `json:"InstanceType" xml:"InstanceType"` - AutoReleaseTime string `json:"AutoReleaseTime" xml:"AutoReleaseTime"` - OsType string `json:"OsType" xml:"OsType"` - DeviceAvailable bool `json:"DeviceAvailable" xml:"DeviceAvailable"` - InstanceNetworkType string `json:"InstanceNetworkType" xml:"InstanceNetworkType"` - LocalStorageAmount int `json:"LocalStorageAmount" xml:"LocalStorageAmount"` - NetworkType string `json:"NetworkType" xml:"NetworkType"` - IsSpot bool `json:"IsSpot" xml:"IsSpot"` - InstanceChargeType string `json:"InstanceChargeType" xml:"InstanceChargeType"` - ClusterId string `json:"ClusterId" xml:"ClusterId"` - InstanceName string `json:"InstanceName" xml:"InstanceName"` - CreditSpecification string `json:"CreditSpecification" xml:"CreditSpecification"` - GPUAmount int `json:"GPUAmount" xml:"GPUAmount"` - StartTime string `json:"StartTime" xml:"StartTime"` - ZoneId string `json:"ZoneId" xml:"ZoneId"` - InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` - InternetMaxBandwidthIn int `json:"InternetMaxBandwidthIn" xml:"InternetMaxBandwidthIn"` - HostName string `json:"HostName" xml:"HostName"` - Status string `json:"Status" xml:"Status"` - CPU int `json:"CPU" xml:"CPU"` - Cpu int `json:"Cpu" xml:"Cpu"` - SpotPriceLimit float64 `json:"SpotPriceLimit" xml:"SpotPriceLimit"` - OSName string `json:"OSName" xml:"OSName"` - OSNameEn string `json:"OSNameEn" xml:"OSNameEn"` - SerialNumber string `json:"SerialNumber" xml:"SerialNumber"` - RegionId string `json:"RegionId" xml:"RegionId"` - IoOptimized bool `json:"IoOptimized" xml:"IoOptimized"` - InternetMaxBandwidthOut int `json:"InternetMaxBandwidthOut" xml:"InternetMaxBandwidthOut"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - InstanceTypeFamily string `json:"InstanceTypeFamily" xml:"InstanceTypeFamily"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - DeploymentSetId string `json:"DeploymentSetId" xml:"DeploymentSetId"` - GPUSpec string `json:"GPUSpec" xml:"GPUSpec"` - Description string `json:"Description" xml:"Description"` - Recyclable bool `json:"Recyclable" xml:"Recyclable"` - SaleCycle string `json:"SaleCycle" xml:"SaleCycle"` - ExpiredTime string `json:"ExpiredTime" xml:"ExpiredTime"` - OSType string `json:"OSType" xml:"OSType"` - Memory int `json:"Memory" xml:"Memory"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - KeyPairName string `json:"KeyPairName" xml:"KeyPairName"` - HpcClusterId string `json:"HpcClusterId" xml:"HpcClusterId"` - LocalStorageCapacity int64 `json:"LocalStorageCapacity" xml:"LocalStorageCapacity"` - VlanId string `json:"VlanId" xml:"VlanId"` - StoppedMode string `json:"StoppedMode" xml:"StoppedMode"` - SpotStrategy string `json:"SpotStrategy" xml:"SpotStrategy"` - DeletionProtection bool `json:"DeletionProtection" xml:"DeletionProtection"` - SecurityGroupIds SecurityGroupIdsInDescribeInstances `json:"SecurityGroupIds" xml:"SecurityGroupIds"` - InnerIpAddress InnerIpAddressInDescribeInstances `json:"InnerIpAddress" xml:"InnerIpAddress"` - PublicIpAddress PublicIpAddressInDescribeInstances `json:"PublicIpAddress" xml:"PublicIpAddress"` - RdmaIpAddress RdmaIpAddress `json:"RdmaIpAddress" xml:"RdmaIpAddress"` - EipAddress EipAddress `json:"EipAddress" xml:"EipAddress"` - EcsCapacityReservationAttr EcsCapacityReservationAttr `json:"EcsCapacityReservationAttr" xml:"EcsCapacityReservationAttr"` - DedicatedHostAttribute DedicatedHostAttribute `json:"DedicatedHostAttribute" xml:"DedicatedHostAttribute"` - DedicatedInstanceAttribute DedicatedInstanceAttribute `json:"DedicatedInstanceAttribute" xml:"DedicatedInstanceAttribute"` - VpcAttributes VpcAttributes `json:"VpcAttributes" xml:"VpcAttributes"` - NetworkInterfaces NetworkInterfacesInDescribeInstances `json:"NetworkInterfaces" xml:"NetworkInterfaces"` - OperationLocks OperationLocksInDescribeInstances `json:"OperationLocks" xml:"OperationLocks"` - Tags TagsInDescribeInstances `json:"Tags" xml:"Tags"` + Hostname string `json:"Hostname" xml:"Hostname"` + ImageId string `json:"ImageId" xml:"ImageId"` + InstanceType string `json:"InstanceType" xml:"InstanceType"` + AutoReleaseTime string `json:"AutoReleaseTime" xml:"AutoReleaseTime"` + LastInvokedTime string `json:"LastInvokedTime" xml:"LastInvokedTime"` + OsType string `json:"OsType" xml:"OsType"` + DeviceAvailable bool `json:"DeviceAvailable" xml:"DeviceAvailable"` + InstanceNetworkType string `json:"InstanceNetworkType" xml:"InstanceNetworkType"` + RegistrationTime string `json:"RegistrationTime" xml:"RegistrationTime"` + LocalStorageAmount int `json:"LocalStorageAmount" xml:"LocalStorageAmount"` + NetworkType string `json:"NetworkType" xml:"NetworkType"` + IntranetIp string `json:"IntranetIp" xml:"IntranetIp"` + IsSpot bool `json:"IsSpot" xml:"IsSpot"` + InstanceChargeType string `json:"InstanceChargeType" xml:"InstanceChargeType"` + MachineId string `json:"MachineId" xml:"MachineId"` + PrivatePoolOptionsId string `json:"PrivatePoolOptionsId" xml:"PrivatePoolOptionsId"` + ClusterId string `json:"ClusterId" xml:"ClusterId"` + SocketId string `json:"SocketId" xml:"SocketId"` + InstanceName string `json:"InstanceName" xml:"InstanceName"` + PrivatePoolOptionsMatchCriteria string `json:"PrivatePoolOptionsMatchCriteria" xml:"PrivatePoolOptionsMatchCriteria"` + DeploymentSetGroupNo int `json:"DeploymentSetGroupNo" xml:"DeploymentSetGroupNo"` + CreditSpecification string `json:"CreditSpecification" xml:"CreditSpecification"` + GPUAmount int `json:"GPUAmount" xml:"GPUAmount"` + Connected bool `json:"Connected" xml:"Connected"` + InvocationCount int64 `json:"InvocationCount" xml:"InvocationCount"` + StartTime string `json:"StartTime" xml:"StartTime"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + InternetMaxBandwidthIn int `json:"InternetMaxBandwidthIn" xml:"InternetMaxBandwidthIn"` + InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` + HostName string `json:"HostName" xml:"HostName"` + Status string `json:"Status" xml:"Status"` + CPU int `json:"CPU" xml:"CPU"` + Cpu int `json:"Cpu" xml:"Cpu"` + ISP string `json:"ISP" xml:"ISP"` + OsVersion string `json:"OsVersion" xml:"OsVersion"` + SpotPriceLimit float64 `json:"SpotPriceLimit" xml:"SpotPriceLimit"` + OSName string `json:"OSName" xml:"OSName"` + InstanceOwnerId int64 `json:"InstanceOwnerId" xml:"InstanceOwnerId"` + OSNameEn string `json:"OSNameEn" xml:"OSNameEn"` + SerialNumber string `json:"SerialNumber" xml:"SerialNumber"` + RegionId string `json:"RegionId" xml:"RegionId"` + IoOptimized bool `json:"IoOptimized" xml:"IoOptimized"` + InternetMaxBandwidthOut int `json:"InternetMaxBandwidthOut" xml:"InternetMaxBandwidthOut"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + ActivationId string `json:"ActivationId" xml:"ActivationId"` + InstanceTypeFamily string `json:"InstanceTypeFamily" xml:"InstanceTypeFamily"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + DeploymentSetId string `json:"DeploymentSetId" xml:"DeploymentSetId"` + GPUSpec string `json:"GPUSpec" xml:"GPUSpec"` + Description string `json:"Description" xml:"Description"` + Recyclable bool `json:"Recyclable" xml:"Recyclable"` + SaleCycle string `json:"SaleCycle" xml:"SaleCycle"` + ExpiredTime string `json:"ExpiredTime" xml:"ExpiredTime"` + OSType string `json:"OSType" xml:"OSType"` + InternetIp string `json:"InternetIp" xml:"InternetIp"` + Memory int `json:"Memory" xml:"Memory"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + AgentVersion string `json:"AgentVersion" xml:"AgentVersion"` + KeyPairName string `json:"KeyPairName" xml:"KeyPairName"` + HpcClusterId string `json:"HpcClusterId" xml:"HpcClusterId"` + LocalStorageCapacity int64 `json:"LocalStorageCapacity" xml:"LocalStorageCapacity"` + VlanId string `json:"VlanId" xml:"VlanId"` + StoppedMode string `json:"StoppedMode" xml:"StoppedMode"` + SpotStrategy string `json:"SpotStrategy" xml:"SpotStrategy"` + SpotDuration int `json:"SpotDuration" xml:"SpotDuration"` + DeletionProtection bool `json:"DeletionProtection" xml:"DeletionProtection"` + SpotInterruptionBehavior string `json:"SpotInterruptionBehavior" xml:"SpotInterruptionBehavior"` + SecurityGroupIds SecurityGroupIdsInDescribeInstances `json:"SecurityGroupIds" xml:"SecurityGroupIds"` + InnerIpAddress InnerIpAddressInDescribeInstances `json:"InnerIpAddress" xml:"InnerIpAddress"` + PublicIpAddress PublicIpAddressInDescribeInstances `json:"PublicIpAddress" xml:"PublicIpAddress"` + RdmaIpAddress RdmaIpAddress `json:"RdmaIpAddress" xml:"RdmaIpAddress"` + ImageOptions ImageOptions `json:"ImageOptions" xml:"ImageOptions"` + DedicatedHostAttribute DedicatedHostAttribute `json:"DedicatedHostAttribute" xml:"DedicatedHostAttribute"` + EcsCapacityReservationAttr EcsCapacityReservationAttr `json:"EcsCapacityReservationAttr" xml:"EcsCapacityReservationAttr"` + CpuOptions CpuOptions `json:"CpuOptions" xml:"CpuOptions"` + HibernationOptions HibernationOptions `json:"HibernationOptions" xml:"HibernationOptions"` + DedicatedInstanceAttribute DedicatedInstanceAttribute `json:"DedicatedInstanceAttribute" xml:"DedicatedInstanceAttribute"` + EipAddress EipAddressInDescribeInstances `json:"EipAddress" xml:"EipAddress"` + MetadataOptions MetadataOptions `json:"MetadataOptions" xml:"MetadataOptions"` + VpcAttributes VpcAttributes `json:"VpcAttributes" xml:"VpcAttributes"` + NetworkInterfaces NetworkInterfacesInDescribeInstances `json:"NetworkInterfaces" xml:"NetworkInterfaces"` + Tags TagsInDescribeInstances `json:"Tags" xml:"Tags"` + OperationLocks OperationLocksInDescribeInstances `json:"OperationLocks" xml:"OperationLocks"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_cloud_assistant_status.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_cloud_assistant_status.go index 50d1aed2..10f232f9 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_cloud_assistant_status.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_cloud_assistant_status.go @@ -17,6 +17,13 @@ package ecs // InstanceCloudAssistantStatus is a nested struct in ecs response type InstanceCloudAssistantStatus struct { - InstanceId string `json:"InstanceId" xml:"InstanceId"` - CloudAssistantStatus string `json:"CloudAssistantStatus" xml:"CloudAssistantStatus"` + CloudAssistantStatus string `json:"CloudAssistantStatus" xml:"CloudAssistantStatus"` + LastInvokedTime string `json:"LastInvokedTime" xml:"LastInvokedTime"` + CloudAssistantVersion string `json:"CloudAssistantVersion" xml:"CloudAssistantVersion"` + ActiveTaskCount int64 `json:"ActiveTaskCount" xml:"ActiveTaskCount"` + InvocationCount int64 `json:"InvocationCount" xml:"InvocationCount"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + LastHeartbeatTime string `json:"LastHeartbeatTime" xml:"LastHeartbeatTime"` + OSType string `json:"OSType" xml:"OSType"` + SupportSessionManager bool `json:"SupportSessionManager" xml:"SupportSessionManager"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_id_set.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_id_set.go new file mode 100644 index 00000000..c34e6524 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_id_set.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceIdSet is a nested struct in ecs response +type InstanceIdSet struct { + InstanceId string `json:"InstanceId" xml:"InstanceId"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_ids_in_create_auto_provisioning_group.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_ids_in_create_auto_provisioning_group.go new file mode 100644 index 00000000..d6f05b54 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_ids_in_create_auto_provisioning_group.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceIdsInCreateAutoProvisioningGroup is a nested struct in ecs response +type InstanceIdsInCreateAutoProvisioningGroup struct { + InstanceId []string `json:"InstanceId" xml:"InstanceId"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_ids.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_ids_in_describe_deployment_sets.go similarity index 85% rename from src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_ids.go rename to src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_ids_in_describe_deployment_sets.go index c5ec56c0..e7896c18 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_ids.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_ids_in_describe_deployment_sets.go @@ -15,7 +15,7 @@ package ecs // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// InstanceIds is a nested struct in ecs response -type InstanceIds struct { +// InstanceIdsInDescribeDeploymentSets is a nested struct in ecs response +type InstanceIdsInDescribeDeploymentSets struct { InstanceId []string `json:"InstanceId" xml:"InstanceId"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_in_describe_fleet_instances.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_in_describe_fleet_instances.go deleted file mode 100644 index 68f39484..00000000 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_in_describe_fleet_instances.go +++ /dev/null @@ -1,33 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// InstanceInDescribeFleetInstances is a nested struct in ecs response -type InstanceInDescribeFleetInstances struct { - InstanceId string `json:"InstanceId" xml:"InstanceId"` - Status string `json:"Status" xml:"Status"` - RegionId string `json:"RegionId" xml:"RegionId"` - IzNo string `json:"IzNo" xml:"IzNo"` - ZoneNo string `json:"ZoneNo" xml:"ZoneNo"` - Cores int `json:"Cores" xml:"Cores"` - Memory int `json:"Memory" xml:"Memory"` - InstanceType string `json:"InstanceType" xml:"InstanceType"` - IsSpot bool `json:"IsSpot" xml:"IsSpot"` - IoOptimized bool `json:"IoOptimized" xml:"IoOptimized"` - NetworkType bool `json:"NetworkType" xml:"NetworkType"` - OsType bool `json:"OsType" xml:"OsType"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` -} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_in_describe_managed_instances.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_in_describe_managed_instances.go new file mode 100644 index 00000000..a91c2d75 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_in_describe_managed_instances.go @@ -0,0 +1,36 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceInDescribeManagedInstances is a nested struct in ecs response +type InstanceInDescribeManagedInstances struct { + LastInvokedTime string `json:"LastInvokedTime" xml:"LastInvokedTime"` + Connected bool `json:"Connected" xml:"Connected"` + InternetIp string `json:"InternetIp" xml:"InternetIp"` + Hostname string `json:"Hostname" xml:"Hostname"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + ActivationId string `json:"ActivationId" xml:"ActivationId"` + IntranetIp string `json:"IntranetIp" xml:"IntranetIp"` + AgentVersion string `json:"AgentVersion" xml:"AgentVersion"` + RegistrationTime string `json:"RegistrationTime" xml:"RegistrationTime"` + InstanceName string `json:"InstanceName" xml:"InstanceName"` + OsType string `json:"OsType" xml:"OsType"` + OsVersion string `json:"OsVersion" xml:"OsVersion"` + InvocationCount int64 `json:"InvocationCount" xml:"InvocationCount"` + MachineId string `json:"MachineId" xml:"MachineId"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + Tags []Tag `json:"Tags" xml:"Tags"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_monitor_data.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_monitor_data.go index 899132da..07328e7f 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_monitor_data.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_monitor_data.go @@ -17,21 +17,21 @@ package ecs // InstanceMonitorData is a nested struct in ecs response type InstanceMonitorData struct { - InstanceId string `json:"InstanceId" xml:"InstanceId"` - CPU int `json:"CPU" xml:"CPU"` - IntranetRX int `json:"IntranetRX" xml:"IntranetRX"` - IntranetTX int `json:"IntranetTX" xml:"IntranetTX"` - IntranetBandwidth int `json:"IntranetBandwidth" xml:"IntranetBandwidth"` - InternetRX int `json:"InternetRX" xml:"InternetRX"` + CPUCreditBalance float64 `json:"CPUCreditBalance" xml:"CPUCreditBalance"` + BPSRead int `json:"BPSRead" xml:"BPSRead"` InternetTX int `json:"InternetTX" xml:"InternetTX"` - InternetBandwidth int `json:"InternetBandwidth" xml:"InternetBandwidth"` - IOPSRead int `json:"IOPSRead" xml:"IOPSRead"` + CPU int `json:"CPU" xml:"CPU"` + CPUCreditUsage float64 `json:"CPUCreditUsage" xml:"CPUCreditUsage"` IOPSWrite int `json:"IOPSWrite" xml:"IOPSWrite"` - BPSRead int `json:"BPSRead" xml:"BPSRead"` + IntranetTX int `json:"IntranetTX" xml:"IntranetTX"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` BPSWrite int `json:"BPSWrite" xml:"BPSWrite"` - CPUCreditUsage float64 `json:"CPUCreditUsage" xml:"CPUCreditUsage"` - CPUCreditBalance float64 `json:"CPUCreditBalance" xml:"CPUCreditBalance"` - CPUAdvanceCreditBalance float64 `json:"CPUAdvanceCreditBalance" xml:"CPUAdvanceCreditBalance"` CPUNotpaidSurplusCreditUsage float64 `json:"CPUNotpaidSurplusCreditUsage" xml:"CPUNotpaidSurplusCreditUsage"` + CPUAdvanceCreditBalance float64 `json:"CPUAdvanceCreditBalance" xml:"CPUAdvanceCreditBalance"` + IOPSRead int `json:"IOPSRead" xml:"IOPSRead"` + InternetBandwidth int `json:"InternetBandwidth" xml:"InternetBandwidth"` + InternetRX int `json:"InternetRX" xml:"InternetRX"` TimeStamp string `json:"TimeStamp" xml:"TimeStamp"` + IntranetRX int `json:"IntranetRX" xml:"IntranetRX"` + IntranetBandwidth int `json:"IntranetBandwidth" xml:"IntranetBandwidth"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_plugin_status.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_plugin_status.go new file mode 100644 index 00000000..91e6f5f9 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_plugin_status.go @@ -0,0 +1,22 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstancePluginStatus is a nested struct in ecs response +type InstancePluginStatus struct { + InstanceId string `json:"InstanceId" xml:"InstanceId"` + PluginStatusSet PluginStatusSet `json:"PluginStatusSet" xml:"PluginStatusSet"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_plugin_status_set.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_plugin_status_set.go new file mode 100644 index 00000000..e66d717b --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_plugin_status_set.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstancePluginStatusSet is a nested struct in ecs response +type InstancePluginStatusSet struct { + InstancePluginStatus []InstancePluginStatus `json:"InstancePluginStatus" xml:"InstancePluginStatus"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_renew_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_renew_attribute.go index d275cb75..b0a0c8e3 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_renew_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_renew_attribute.go @@ -17,9 +17,9 @@ package ecs // InstanceRenewAttribute is a nested struct in ecs response type InstanceRenewAttribute struct { - InstanceId string `json:"InstanceId" xml:"InstanceId"` - AutoRenewEnabled bool `json:"AutoRenewEnabled" xml:"AutoRenewEnabled"` - Duration int `json:"Duration" xml:"Duration"` PeriodUnit string `json:"PeriodUnit" xml:"PeriodUnit"` + Duration int `json:"Duration" xml:"Duration"` RenewalStatus string `json:"RenewalStatus" xml:"RenewalStatus"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + AutoRenewEnabled bool `json:"AutoRenewEnabled" xml:"AutoRenewEnabled"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_response.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_response.go new file mode 100644 index 00000000..d2953a69 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_response.go @@ -0,0 +1,25 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceResponse is a nested struct in ecs response +type InstanceResponse struct { + Message string `json:"Message" xml:"Message"` + Code string `json:"Code" xml:"Code"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + CurrentStatus string `json:"CurrentStatus" xml:"CurrentStatus"` + PreviousStatus string `json:"PreviousStatus" xml:"PreviousStatus"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_responses_in_reboot_instances.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_responses_in_reboot_instances.go new file mode 100644 index 00000000..1d76e0aa --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_responses_in_reboot_instances.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceResponsesInRebootInstances is a nested struct in ecs response +type InstanceResponsesInRebootInstances struct { + InstanceResponse []InstanceResponse `json:"InstanceResponse" xml:"InstanceResponse"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_responses_in_start_instances.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_responses_in_start_instances.go new file mode 100644 index 00000000..91e11da0 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_responses_in_start_instances.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceResponsesInStartInstances is a nested struct in ecs response +type InstanceResponsesInStartInstances struct { + InstanceResponse []InstanceResponse `json:"InstanceResponse" xml:"InstanceResponse"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_responses_in_stop_instances.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_responses_in_stop_instances.go new file mode 100644 index 00000000..06aca717 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_responses_in_stop_instances.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstanceResponsesInStopInstances is a nested struct in ecs response +type InstanceResponsesInStopInstances struct { + InstanceResponse []InstanceResponse `json:"InstanceResponse" xml:"InstanceResponse"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_status.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_status.go index 8f591c4e..900b56f3 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_status.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_status.go @@ -17,6 +17,6 @@ package ecs // InstanceStatus is a nested struct in ecs response type InstanceStatus struct { - InstanceId string `json:"InstanceId" xml:"InstanceId"` Status string `json:"Status" xml:"Status"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_system_event_type.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_system_event_type.go index 8ee7015c..d2d38868 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_system_event_type.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_system_event_type.go @@ -17,11 +17,14 @@ package ecs // InstanceSystemEventType is a nested struct in ecs response type InstanceSystemEventType struct { - InstanceId string `json:"InstanceId" xml:"InstanceId"` EventId string `json:"EventId" xml:"EventId"` EventPublishTime string `json:"EventPublishTime" xml:"EventPublishTime"` - NotBefore string `json:"NotBefore" xml:"NotBefore"` EventFinishTime string `json:"EventFinishTime" xml:"EventFinishTime"` + ResourceType string `json:"ResourceType" xml:"ResourceType"` + ImpactLevel string `json:"ImpactLevel" xml:"ImpactLevel"` + NotBefore string `json:"NotBefore" xml:"NotBefore"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + Reason string `json:"Reason" xml:"Reason"` EventType EventType `json:"EventType" xml:"EventType"` EventCycleStatus EventCycleStatus `json:"EventCycleStatus" xml:"EventCycleStatus"` ExtendedAttribute ExtendedAttribute `json:"ExtendedAttribute" xml:"ExtendedAttribute"` diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_type.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_type.go index 9d2d0736..a49f1d6c 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_type.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_type.go @@ -17,27 +17,47 @@ package ecs // InstanceType is a nested struct in ecs response type InstanceType struct { - MemorySize float64 `json:"MemorySize" xml:"MemorySize"` - EniPrivateIpAddressQuantity int `json:"EniPrivateIpAddressQuantity" xml:"EniPrivateIpAddressQuantity"` - InstancePpsRx int64 `json:"InstancePpsRx" xml:"InstancePpsRx"` - CpuCoreCount int `json:"CpuCoreCount" xml:"CpuCoreCount"` - Cores int `json:"Cores" xml:"Cores"` - Memory int `json:"Memory" xml:"Memory"` - InstanceTypeId string `json:"InstanceTypeId" xml:"InstanceTypeId"` - InstanceBandwidthRx int `json:"InstanceBandwidthRx" xml:"InstanceBandwidthRx"` - InstanceType string `json:"InstanceType" xml:"InstanceType"` - BaselineCredit int `json:"BaselineCredit" xml:"BaselineCredit"` - EniQuantity int `json:"EniQuantity" xml:"EniQuantity"` - Generation string `json:"Generation" xml:"Generation"` - GPUAmount int `json:"GPUAmount" xml:"GPUAmount"` - SupportIoOptimized string `json:"SupportIoOptimized" xml:"SupportIoOptimized"` - InstanceTypeFamily string `json:"InstanceTypeFamily" xml:"InstanceTypeFamily"` - InitialCredit int `json:"InitialCredit" xml:"InitialCredit"` - InstancePpsTx int64 `json:"InstancePpsTx" xml:"InstancePpsTx"` - LocalStorageAmount int `json:"LocalStorageAmount" xml:"LocalStorageAmount"` - InstanceFamilyLevel string `json:"InstanceFamilyLevel" xml:"InstanceFamilyLevel"` - LocalStorageCapacity int64 `json:"LocalStorageCapacity" xml:"LocalStorageCapacity"` - GPUSpec string `json:"GPUSpec" xml:"GPUSpec"` - LocalStorageCategory string `json:"LocalStorageCategory" xml:"LocalStorageCategory"` - InstanceBandwidthTx int `json:"InstanceBandwidthTx" xml:"InstanceBandwidthTx"` + MemorySize float64 `json:"MemorySize" xml:"MemorySize"` + InstancePpsRx int64 `json:"InstancePpsRx" xml:"InstancePpsRx"` + EriQuantity int `json:"EriQuantity" xml:"EriQuantity"` + EniPrivateIpAddressQuantity int `json:"EniPrivateIpAddressQuantity" xml:"EniPrivateIpAddressQuantity"` + CpuCoreCount int `json:"CpuCoreCount" xml:"CpuCoreCount"` + EniTotalQuantity int `json:"EniTotalQuantity" xml:"EniTotalQuantity"` + NetworkEncryptionSupport bool `json:"NetworkEncryptionSupport" xml:"NetworkEncryptionSupport"` + Cores int `json:"Cores" xml:"Cores"` + NetworkCardQuantity int `json:"NetworkCardQuantity" xml:"NetworkCardQuantity"` + InstanceTypeId string `json:"InstanceTypeId" xml:"InstanceTypeId"` + InstanceBandwidthRx int `json:"InstanceBandwidthRx" xml:"InstanceBandwidthRx"` + InstanceType string `json:"InstanceType" xml:"InstanceType"` + QueuePairNumber int `json:"QueuePairNumber" xml:"QueuePairNumber"` + EniQuantity int `json:"EniQuantity" xml:"EniQuantity"` + Generation string `json:"Generation" xml:"Generation"` + SupportIoOptimized string `json:"SupportIoOptimized" xml:"SupportIoOptimized"` + InstanceTypeFamily string `json:"InstanceTypeFamily" xml:"InstanceTypeFamily"` + InitialCredit int `json:"InitialCredit" xml:"InitialCredit"` + InstancePpsTx int64 `json:"InstancePpsTx" xml:"InstancePpsTx"` + InstanceFamilyLevel string `json:"InstanceFamilyLevel" xml:"InstanceFamilyLevel"` + LocalStorageAmount int `json:"LocalStorageAmount" xml:"LocalStorageAmount"` + TotalEniQueueQuantity int `json:"TotalEniQueueQuantity" xml:"TotalEniQueueQuantity"` + CpuArchitecture string `json:"CpuArchitecture" xml:"CpuArchitecture"` + GPUSpec string `json:"GPUSpec" xml:"GPUSpec"` + SecondaryEniQueueNumber int `json:"SecondaryEniQueueNumber" xml:"SecondaryEniQueueNumber"` + InstanceBandwidthTx int `json:"InstanceBandwidthTx" xml:"InstanceBandwidthTx"` + MaximumQueueNumberPerEni int `json:"MaximumQueueNumberPerEni" xml:"MaximumQueueNumberPerEni"` + DiskQuantity int `json:"DiskQuantity" xml:"DiskQuantity"` + PrimaryEniQueueNumber int `json:"PrimaryEniQueueNumber" xml:"PrimaryEniQueueNumber"` + Memory int `json:"Memory" xml:"Memory"` + CpuTurboFrequency float64 `json:"CpuTurboFrequency" xml:"CpuTurboFrequency"` + BaselineCredit int `json:"BaselineCredit" xml:"BaselineCredit"` + EniTrunkSupported bool `json:"EniTrunkSupported" xml:"EniTrunkSupported"` + GPUAmount int `json:"GPUAmount" xml:"GPUAmount"` + GPUMemorySize float64 `json:"GPUMemorySize" xml:"GPUMemorySize"` + NvmeSupport string `json:"NvmeSupport" xml:"NvmeSupport"` + InstanceCategory string `json:"InstanceCategory" xml:"InstanceCategory"` + EniIpv6AddressQuantity int `json:"EniIpv6AddressQuantity" xml:"EniIpv6AddressQuantity"` + LocalStorageCapacity int64 `json:"LocalStorageCapacity" xml:"LocalStorageCapacity"` + CpuSpeedFrequency float64 `json:"CpuSpeedFrequency" xml:"CpuSpeedFrequency"` + LocalStorageCategory string `json:"LocalStorageCategory" xml:"LocalStorageCategory"` + PhysicalProcessorModel string `json:"PhysicalProcessorModel" xml:"PhysicalProcessorModel"` + NetworkCards NetworkCards `json:"NetworkCards" xml:"NetworkCards"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_type_family.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_type_family.go index 06c2797d..cb659556 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_type_family.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instance_type_family.go @@ -17,6 +17,6 @@ package ecs // InstanceTypeFamily is a nested struct in ecs response type InstanceTypeFamily struct { - InstanceTypeFamilyId string `json:"InstanceTypeFamilyId" xml:"InstanceTypeFamilyId"` Generation string `json:"Generation" xml:"Generation"` + InstanceTypeFamilyId string `json:"InstanceTypeFamilyId" xml:"InstanceTypeFamilyId"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instances_in_describe_instance_attachment_attributes.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instances_in_describe_instance_attachment_attributes.go new file mode 100644 index 00000000..1ac4f270 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instances_in_describe_instance_attachment_attributes.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstancesInDescribeInstanceAttachmentAttributes is a nested struct in ecs response +type InstancesInDescribeInstanceAttachmentAttributes struct { + Instance []Instance `json:"Instance" xml:"Instance"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instances_in_describe_managed_instances.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instances_in_describe_managed_instances.go new file mode 100644 index 00000000..9d1c76f0 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instances_in_describe_managed_instances.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InstancesInDescribeManagedInstances is a nested struct in ecs response +type InstancesInDescribeManagedInstances struct { + Instance []InstanceInDescribeManagedInstances `json:"Instance" xml:"Instance"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocation.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocation.go index 41e219fd..5d69cbf0 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocation.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocation.go @@ -17,18 +17,39 @@ package ecs // Invocation is a nested struct in ecs response type Invocation struct { - CommandId string `json:"CommandId" xml:"CommandId"` - PageNumber int64 `json:"PageNumber" xml:"PageNumber"` - TotalCount int64 `json:"TotalCount" xml:"TotalCount"` - PageSize int64 `json:"PageSize" xml:"PageSize"` - Timed bool `json:"Timed" xml:"Timed"` - Frequency string `json:"Frequency" xml:"Frequency"` - CommandName string `json:"CommandName" xml:"CommandName"` - Parameters string `json:"Parameters" xml:"Parameters"` - InvokeId string `json:"InvokeId" xml:"InvokeId"` - InvokeStatus string `json:"InvokeStatus" xml:"InvokeStatus"` - CommandContent string `json:"CommandContent" xml:"CommandContent"` - CommandType string `json:"CommandType" xml:"CommandType"` - InvokeInstances InvokeInstances `json:"InvokeInstances" xml:"InvokeInstances"` - InvocationResults InvocationResults `json:"InvocationResults" xml:"InvocationResults"` + Name string `json:"Name" xml:"Name"` + Timeout int64 `json:"Timeout" xml:"Timeout"` + PageSize int64 `json:"PageSize" xml:"PageSize"` + Timed bool `json:"Timed" xml:"Timed"` + Frequency string `json:"Frequency" xml:"Frequency"` + ContainerId string `json:"ContainerId" xml:"ContainerId"` + Content string `json:"Content" xml:"Content"` + CommandContent string `json:"CommandContent" xml:"CommandContent"` + InvocationStatus string `json:"InvocationStatus" xml:"InvocationStatus"` + FileGroup string `json:"FileGroup" xml:"FileGroup"` + Description string `json:"Description" xml:"Description"` + Overwrite string `json:"Overwrite" xml:"Overwrite"` + PageNumber int64 `json:"PageNumber" xml:"PageNumber"` + CommandId string `json:"CommandId" xml:"CommandId"` + TargetDir string `json:"TargetDir" xml:"TargetDir"` + FileMode string `json:"FileMode" xml:"FileMode"` + TotalCount int64 `json:"TotalCount" xml:"TotalCount"` + Username string `json:"Username" xml:"Username"` + WorkingDir string `json:"WorkingDir" xml:"WorkingDir"` + ContentType string `json:"ContentType" xml:"ContentType"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + Parameters string `json:"Parameters" xml:"Parameters"` + CommandName string `json:"CommandName" xml:"CommandName"` + VmCount int `json:"VmCount" xml:"VmCount"` + NextToken string `json:"NextToken" xml:"NextToken"` + InvokeId string `json:"InvokeId" xml:"InvokeId"` + RepeatMode string `json:"RepeatMode" xml:"RepeatMode"` + InvokeStatus string `json:"InvokeStatus" xml:"InvokeStatus"` + ContainerName string `json:"ContainerName" xml:"ContainerName"` + FileOwner string `json:"FileOwner" xml:"FileOwner"` + CommandDescription string `json:"CommandDescription" xml:"CommandDescription"` + CommandType string `json:"CommandType" xml:"CommandType"` + Tags TagsInDescribeInvocations `json:"Tags" xml:"Tags"` + InvocationResults InvocationResults `json:"InvocationResults" xml:"InvocationResults"` + InvokeInstances InvokeInstancesInDescribeSendFileResults `json:"InvokeInstances" xml:"InvokeInstances"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocation_result.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocation_result.go index eee38be3..1af4bfe1 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocation_result.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocation_result.go @@ -17,12 +17,22 @@ package ecs // InvocationResult is a nested struct in ecs response type InvocationResult struct { - CommandId string `json:"CommandId" xml:"CommandId"` - InvokeId string `json:"InvokeId" xml:"InvokeId"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - StartTime string `json:"StartTime" xml:"StartTime"` - FinishedTime string `json:"FinishedTime" xml:"FinishedTime"` - Output string `json:"Output" xml:"Output"` - InvokeRecordStatus string `json:"InvokeRecordStatus" xml:"InvokeRecordStatus"` - ExitCode int64 `json:"ExitCode" xml:"ExitCode"` + InvocationStatus string `json:"InvocationStatus" xml:"InvocationStatus"` + Repeats int `json:"Repeats" xml:"Repeats"` + CommandId string `json:"CommandId" xml:"CommandId"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + Output string `json:"Output" xml:"Output"` + Dropped int `json:"Dropped" xml:"Dropped"` + StopTime string `json:"StopTime" xml:"StopTime"` + ExitCode int64 `json:"ExitCode" xml:"ExitCode"` + StartTime string `json:"StartTime" xml:"StartTime"` + ErrorInfo string `json:"ErrorInfo" xml:"ErrorInfo"` + ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` + FinishedTime string `json:"FinishedTime" xml:"FinishedTime"` + InvokeId string `json:"InvokeId" xml:"InvokeId"` + InvokeRecordStatus string `json:"InvokeRecordStatus" xml:"InvokeRecordStatus"` + Username string `json:"Username" xml:"Username"` + ContainerId string `json:"ContainerId" xml:"ContainerId"` + ContainerName string `json:"ContainerName" xml:"ContainerName"` + Tags TagsInDescribeInvocationResults `json:"Tags" xml:"Tags"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocations.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocations_in_describe_invocations.go similarity index 86% rename from src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocations.go rename to src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocations_in_describe_invocations.go index f7e10006..51ec5e06 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocations.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocations_in_describe_invocations.go @@ -15,7 +15,7 @@ package ecs // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// Invocations is a nested struct in ecs response -type Invocations struct { +// InvocationsInDescribeInvocations is a nested struct in ecs response +type InvocationsInDescribeInvocations struct { Invocation []Invocation `json:"Invocation" xml:"Invocation"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocations_in_describe_send_file_results.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocations_in_describe_send_file_results.go new file mode 100644 index 00000000..edaabcbe --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invocations_in_describe_send_file_results.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InvocationsInDescribeSendFileResults is a nested struct in ecs response +type InvocationsInDescribeSendFileResults struct { + Invocation []Invocation `json:"Invocation" xml:"Invocation"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invoke_instance.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invoke_instance.go index 3ed6d281..b9a23ccd 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invoke_instance.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invoke_instance.go @@ -17,9 +17,19 @@ package ecs // InvokeInstance is a nested struct in ecs response type InvokeInstance struct { - InstanceId string `json:"InstanceId" xml:"InstanceId"` + UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` InstanceInvokeStatus string `json:"InstanceInvokeStatus" xml:"InstanceInvokeStatus"` + Timed bool `json:"Timed" xml:"Timed"` CreationTime string `json:"CreationTime" xml:"CreationTime"` - StartTime string `json:"StartTime" xml:"StartTime"` + ErrorInfo string `json:"ErrorInfo" xml:"ErrorInfo"` FinishTime string `json:"FinishTime" xml:"FinishTime"` + ExitCode int64 `json:"ExitCode" xml:"ExitCode"` + Repeats int `json:"Repeats" xml:"Repeats"` + StartTime string `json:"StartTime" xml:"StartTime"` + Dropped int `json:"Dropped" xml:"Dropped"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + Output string `json:"Output" xml:"Output"` + InvocationStatus string `json:"InvocationStatus" xml:"InvocationStatus"` + StopTime string `json:"StopTime" xml:"StopTime"` + ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invoke_instances.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invoke_instances_in_describe_invocations.go similarity index 86% rename from src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invoke_instances.go rename to src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invoke_instances_in_describe_invocations.go index 2eb17907..a6dfd1b7 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invoke_instances.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invoke_instances_in_describe_invocations.go @@ -15,7 +15,7 @@ package ecs // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// InvokeInstances is a nested struct in ecs response -type InvokeInstances struct { +// InvokeInstancesInDescribeInvocations is a nested struct in ecs response +type InvokeInstancesInDescribeInvocations struct { InvokeInstance []InvokeInstance `json:"InvokeInstance" xml:"InvokeInstance"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invoke_instances_in_describe_send_file_results.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invoke_instances_in_describe_send_file_results.go new file mode 100644 index 00000000..2e13a176 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_invoke_instances_in_describe_send_file_results.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// InvokeInstancesInDescribeSendFileResults is a nested struct in ecs response +type InvokeInstancesInDescribeSendFileResults struct { + InvokeInstance []InvokeInstance `json:"InvokeInstance" xml:"InvokeInstance"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv4_prefix_set.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv4_prefix_set.go new file mode 100644 index 00000000..2fd7ba40 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv4_prefix_set.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Ipv4PrefixSet is a nested struct in ecs response +type Ipv4PrefixSet struct { + Ipv4Prefix string `json:"Ipv4Prefix" xml:"Ipv4Prefix"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv4_prefix_set_in_assign_private_ip_addresses.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv4_prefix_set_in_assign_private_ip_addresses.go new file mode 100644 index 00000000..1b3ef198 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv4_prefix_set_in_assign_private_ip_addresses.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Ipv4PrefixSetInAssignPrivateIpAddresses is a nested struct in ecs response +type Ipv4PrefixSetInAssignPrivateIpAddresses struct { + Ipv4Prefixes []string `json:"Ipv4Prefixes" xml:"Ipv4Prefixes"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv4_prefix_sets_in_create_network_interface.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv4_prefix_sets_in_create_network_interface.go new file mode 100644 index 00000000..49104175 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv4_prefix_sets_in_create_network_interface.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Ipv4PrefixSetsInCreateNetworkInterface is a nested struct in ecs response +type Ipv4PrefixSetsInCreateNetworkInterface struct { + Ipv4PrefixSet []Ipv4PrefixSet `json:"Ipv4PrefixSet" xml:"Ipv4PrefixSet"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instances_in_describe_fleet_instances.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv4_prefix_sets_in_describe_instances.go similarity index 78% rename from src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instances_in_describe_fleet_instances.go rename to src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv4_prefix_sets_in_describe_instances.go index 2e5e27df..8c441021 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_instances_in_describe_fleet_instances.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv4_prefix_sets_in_describe_instances.go @@ -15,7 +15,7 @@ package ecs // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// InstancesInDescribeFleetInstances is a nested struct in ecs response -type InstancesInDescribeFleetInstances struct { - Instance []InstanceInDescribeFleetInstances `json:"Instance" xml:"Instance"` +// Ipv4PrefixSetsInDescribeInstances is a nested struct in ecs response +type Ipv4PrefixSetsInDescribeInstances struct { + Ipv4PrefixSet []Ipv4PrefixSet `json:"Ipv4PrefixSet" xml:"Ipv4PrefixSet"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv4_prefix_sets_in_describe_network_interface_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv4_prefix_sets_in_describe_network_interface_attribute.go new file mode 100644 index 00000000..04c6a673 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv4_prefix_sets_in_describe_network_interface_attribute.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Ipv4PrefixSetsInDescribeNetworkInterfaceAttribute is a nested struct in ecs response +type Ipv4PrefixSetsInDescribeNetworkInterfaceAttribute struct { + Ipv4PrefixSet []Ipv4PrefixSet `json:"Ipv4PrefixSet" xml:"Ipv4PrefixSet"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv4_prefix_sets_in_describe_network_interfaces.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv4_prefix_sets_in_describe_network_interfaces.go new file mode 100644 index 00000000..c7ba9eb9 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv4_prefix_sets_in_describe_network_interfaces.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Ipv4PrefixSetsInDescribeNetworkInterfaces is a nested struct in ecs response +type Ipv4PrefixSetsInDescribeNetworkInterfaces struct { + Ipv4PrefixSet []Ipv4PrefixSet `json:"Ipv4PrefixSet" xml:"Ipv4PrefixSet"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_prefix_set.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_prefix_set.go new file mode 100644 index 00000000..7b838cea --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_prefix_set.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Ipv6PrefixSet is a nested struct in ecs response +type Ipv6PrefixSet struct { + Ipv6Prefix string `json:"Ipv6Prefix" xml:"Ipv6Prefix"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_prefix_sets_in_assign_ipv6_addresses.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_prefix_sets_in_assign_ipv6_addresses.go new file mode 100644 index 00000000..c7478e5b --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_prefix_sets_in_assign_ipv6_addresses.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Ipv6PrefixSetsInAssignIpv6Addresses is a nested struct in ecs response +type Ipv6PrefixSetsInAssignIpv6Addresses struct { + Ipv6Prefix []string `json:"Ipv6Prefix" xml:"Ipv6Prefix"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_prefix_sets_in_create_network_interface.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_prefix_sets_in_create_network_interface.go new file mode 100644 index 00000000..23fd6ea3 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_prefix_sets_in_create_network_interface.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Ipv6PrefixSetsInCreateNetworkInterface is a nested struct in ecs response +type Ipv6PrefixSetsInCreateNetworkInterface struct { + Ipv6PrefixSet []Ipv6PrefixSet `json:"Ipv6PrefixSet" xml:"Ipv6PrefixSet"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_prefix_sets_in_describe_instances.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_prefix_sets_in_describe_instances.go new file mode 100644 index 00000000..74edf846 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_prefix_sets_in_describe_instances.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Ipv6PrefixSetsInDescribeInstances is a nested struct in ecs response +type Ipv6PrefixSetsInDescribeInstances struct { + Ipv6PrefixSet []Ipv6PrefixSet `json:"Ipv6PrefixSet" xml:"Ipv6PrefixSet"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_prefix_sets_in_describe_network_interface_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_prefix_sets_in_describe_network_interface_attribute.go new file mode 100644 index 00000000..3d0b5963 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_prefix_sets_in_describe_network_interface_attribute.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Ipv6PrefixSetsInDescribeNetworkInterfaceAttribute is a nested struct in ecs response +type Ipv6PrefixSetsInDescribeNetworkInterfaceAttribute struct { + Ipv6PrefixSet []Ipv6PrefixSet `json:"Ipv6PrefixSet" xml:"Ipv6PrefixSet"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_prefix_sets_in_describe_network_interfaces.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_prefix_sets_in_describe_network_interfaces.go new file mode 100644 index 00000000..1434874f --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_prefix_sets_in_describe_network_interfaces.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Ipv6PrefixSetsInDescribeNetworkInterfaces is a nested struct in ecs response +type Ipv6PrefixSetsInDescribeNetworkInterfaces struct { + Ipv6PrefixSet []Ipv6PrefixSet `json:"Ipv6PrefixSet" xml:"Ipv6PrefixSet"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_sets_in_assign_ipv6_addresses.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_sets_in_assign_ipv6_addresses.go new file mode 100644 index 00000000..53c0ca21 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_sets_in_assign_ipv6_addresses.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Ipv6SetsInAssignIpv6Addresses is a nested struct in ecs response +type Ipv6SetsInAssignIpv6Addresses struct { + Ipv6Address []string `json:"Ipv6Address" xml:"Ipv6Address"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_sets_in_create_network_interface.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_sets_in_create_network_interface.go new file mode 100644 index 00000000..f3c5362f --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_sets_in_create_network_interface.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Ipv6SetsInCreateNetworkInterface is a nested struct in ecs response +type Ipv6SetsInCreateNetworkInterface struct { + Ipv6Set []Ipv6Set `json:"Ipv6Set" xml:"Ipv6Set"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_sets.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_sets_in_describe_instances.go similarity index 87% rename from src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_sets.go rename to src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_sets_in_describe_instances.go index 53df57e7..9d6085d5 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_sets.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_sets_in_describe_instances.go @@ -15,7 +15,7 @@ package ecs // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// Ipv6Sets is a nested struct in ecs response -type Ipv6Sets struct { +// Ipv6SetsInDescribeInstances is a nested struct in ecs response +type Ipv6SetsInDescribeInstances struct { Ipv6Set []Ipv6Set `json:"Ipv6Set" xml:"Ipv6Set"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_sets_in_describe_network_interface_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_sets_in_describe_network_interface_attribute.go new file mode 100644 index 00000000..93c13555 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_sets_in_describe_network_interface_attribute.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Ipv6SetsInDescribeNetworkInterfaceAttribute is a nested struct in ecs response +type Ipv6SetsInDescribeNetworkInterfaceAttribute struct { + Ipv6Set []Ipv6Set `json:"Ipv6Set" xml:"Ipv6Set"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_sets_in_describe_network_interfaces.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_sets_in_describe_network_interfaces.go new file mode 100644 index 00000000..dc1c585f --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_ipv6_sets_in_describe_network_interfaces.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Ipv6SetsInDescribeNetworkInterfaces is a nested struct in ecs response +type Ipv6SetsInDescribeNetworkInterfaces struct { + Ipv6Set []Ipv6Set `json:"Ipv6Set" xml:"Ipv6Set"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_issue.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_issue.go new file mode 100644 index 00000000..e255e947 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_issue.go @@ -0,0 +1,26 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Issue is a nested struct in ecs response +type Issue struct { + MetricId string `json:"MetricId" xml:"MetricId"` + Severity string `json:"Severity" xml:"Severity"` + OccurrenceTime string `json:"OccurrenceTime" xml:"OccurrenceTime"` + MetricCategory string `json:"MetricCategory" xml:"MetricCategory"` + IssueId string `json:"IssueId" xml:"IssueId"` + Additional string `json:"Additional" xml:"Additional"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_issues_in_describe_diagnostic_report_attributes.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_issues_in_describe_diagnostic_report_attributes.go new file mode 100644 index 00000000..1b9ab44d --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_issues_in_describe_diagnostic_report_attributes.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// IssuesInDescribeDiagnosticReportAttributes is a nested struct in ecs response +type IssuesInDescribeDiagnosticReportAttributes struct { + Issue []Issue `json:"Issue" xml:"Issue"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_issues_in_describe_diagnostic_reports.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_issues_in_describe_diagnostic_reports.go new file mode 100644 index 00000000..5ddfc6a1 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_issues_in_describe_diagnostic_reports.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// IssuesInDescribeDiagnosticReports is a nested struct in ecs response +type IssuesInDescribeDiagnosticReports struct { + Issue []Issue `json:"Issue" xml:"Issue"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_item.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_item.go new file mode 100644 index 00000000..66755cd8 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_item.go @@ -0,0 +1,24 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Item is a nested struct in ecs response +type Item struct { + Name string `json:"Name" xml:"Name"` + Value string `json:"Value" xml:"Value"` + RiskLevel string `json:"RiskLevel" xml:"RiskLevel"` + RiskCode string `json:"RiskCode" xml:"RiskCode"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disks.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_items.go similarity index 87% rename from src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disks.go rename to src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_items.go index 789dd577..bb24eaca 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_disks.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_items.go @@ -15,7 +15,7 @@ package ecs // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// Disks is a nested struct in ecs response -type Disks struct { - Disk []Disk `json:"Disk" xml:"Disk"` +// Items is a nested struct in ecs response +type Items struct { + Item []Item `json:"Item" xml:"Item"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_key_pair.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_key_pair.go index cacee8fe..f3ffaeab 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_key_pair.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_key_pair.go @@ -17,8 +17,10 @@ package ecs // KeyPair is a nested struct in ecs response type KeyPair struct { + CreationTime string `json:"CreationTime" xml:"CreationTime"` KeyPairName string `json:"KeyPairName" xml:"KeyPairName"` KeyPairFingerPrint string `json:"KeyPairFingerPrint" xml:"KeyPairFingerPrint"` ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + PublicKey string `json:"PublicKey" xml:"PublicKey"` Tags TagsInDescribeKeyPairs `json:"Tags" xml:"Tags"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_result.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_result.go new file mode 100644 index 00000000..2208d856 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_result.go @@ -0,0 +1,27 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LaunchResult is a nested struct in ecs response +type LaunchResult struct { + ZoneId string `json:"ZoneId" xml:"ZoneId"` + ErrorMsg string `json:"ErrorMsg" xml:"ErrorMsg"` + InstanceType string `json:"InstanceType" xml:"InstanceType"` + ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` + SpotStrategy string `json:"SpotStrategy" xml:"SpotStrategy"` + Amount int `json:"Amount" xml:"Amount"` + InstanceIds InstanceIdsInCreateAutoProvisioningGroup `json:"InstanceIds" xml:"InstanceIds"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_fleet_historys.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_results.go similarity index 82% rename from src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_fleet_historys.go rename to src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_results.go index 135ebdfe..f4caf72e 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_fleet_historys.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_results.go @@ -15,7 +15,7 @@ package ecs // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// FleetHistorys is a nested struct in ecs response -type FleetHistorys struct { - FleetHistory []FleetHistory `json:"FleetHistory" xml:"FleetHistory"` +// LaunchResults is a nested struct in ecs response +type LaunchResults struct { + LaunchResult []LaunchResult `json:"LaunchResult" xml:"LaunchResult"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_config.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_config.go index 6e78176f..9bd117e6 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_config.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_config.go @@ -17,10 +17,9 @@ package ecs // LaunchTemplateConfig is a nested struct in ecs response type LaunchTemplateConfig struct { - VSWitchId string `json:"VSWitchId" xml:"VSWitchId"` - VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` - InstanceType string `json:"InstanceType" xml:"InstanceType"` - WeightedCapacity float64 `json:"WeightedCapacity" xml:"WeightedCapacity"` MaxPrice float64 `json:"MaxPrice" xml:"MaxPrice"` Priority float64 `json:"Priority" xml:"Priority"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + WeightedCapacity float64 `json:"WeightedCapacity" xml:"WeightedCapacity"` + InstanceType string `json:"InstanceType" xml:"InstanceType"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_data.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_data.go index df5099ab..04450ee0 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_data.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_data.go @@ -17,40 +17,52 @@ package ecs // LaunchTemplateData is a nested struct in ecs response type LaunchTemplateData struct { - ImageId string `json:"ImageId" xml:"ImageId"` - ImageOwnerAlias string `json:"ImageOwnerAlias" xml:"ImageOwnerAlias"` - PasswordInherit bool `json:"PasswordInherit" xml:"PasswordInherit"` - InstanceType string `json:"InstanceType" xml:"InstanceType"` - SecurityGroupId string `json:"SecurityGroupId" xml:"SecurityGroupId"` - VpcId string `json:"VpcId" xml:"VpcId"` - VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` - InstanceName string `json:"InstanceName" xml:"InstanceName"` - Description string `json:"Description" xml:"Description"` - InternetMaxBandwidthIn int `json:"InternetMaxBandwidthIn" xml:"InternetMaxBandwidthIn"` - InternetMaxBandwidthOut int `json:"InternetMaxBandwidthOut" xml:"InternetMaxBandwidthOut"` - HostName string `json:"HostName" xml:"HostName"` - ZoneId string `json:"ZoneId" xml:"ZoneId"` - SystemDiskSize int `json:"SystemDisk.Size" xml:"SystemDisk.Size"` - SystemDiskCategory string `json:"SystemDisk.Category" xml:"SystemDisk.Category"` - SystemDiskDiskName string `json:"SystemDisk.DiskName" xml:"SystemDisk.DiskName"` - SystemDiskDescription string `json:"SystemDisk.Description" xml:"SystemDisk.Description"` - SystemDiskIops int `json:"SystemDisk.Iops" xml:"SystemDisk.Iops"` - IoOptimized string `json:"IoOptimized" xml:"IoOptimized"` - InstanceChargeType string `json:"InstanceChargeType" xml:"InstanceChargeType"` - Period int `json:"Period" xml:"Period"` - InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` - EnableVmOsConfig bool `json:"EnableVmOsConfig" xml:"EnableVmOsConfig"` - NetworkType string `json:"NetworkType" xml:"NetworkType"` - UserData string `json:"UserData" xml:"UserData"` - KeyPairName string `json:"KeyPairName" xml:"KeyPairName"` - RamRoleName string `json:"RamRoleName" xml:"RamRoleName"` - AutoReleaseTime string `json:"AutoReleaseTime" xml:"AutoReleaseTime"` - SpotStrategy string `json:"SpotStrategy" xml:"SpotStrategy"` - SpotPriceLimit float64 `json:"SpotPriceLimit" xml:"SpotPriceLimit"` - SpotDuration int `json:"SpotDuration" xml:"SpotDuration"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - SecurityEnhancementStrategy string `json:"SecurityEnhancementStrategy" xml:"SecurityEnhancementStrategy"` - DataDisks DataDisks `json:"DataDisks" xml:"DataDisks"` - NetworkInterfaces NetworkInterfacesInDescribeLaunchTemplateVersions `json:"NetworkInterfaces" xml:"NetworkInterfaces"` - Tags TagsInDescribeLaunchTemplateVersions `json:"Tags" xml:"Tags"` + DeploymentSetId string `json:"DeploymentSetId" xml:"DeploymentSetId"` + VpcId string `json:"VpcId" xml:"VpcId"` + SystemDiskPerformanceLevel string `json:"SystemDisk.PerformanceLevel" xml:"SystemDisk.PerformanceLevel"` + KeyPairName string `json:"KeyPairName" xml:"KeyPairName"` + SecurityGroupId string `json:"SecurityGroupId" xml:"SecurityGroupId"` + NetworkType string `json:"NetworkType" xml:"NetworkType"` + SpotStrategy string `json:"SpotStrategy" xml:"SpotStrategy"` + EnableVmOsConfig bool `json:"EnableVmOsConfig" xml:"EnableVmOsConfig"` + Description string `json:"Description" xml:"Description"` + SpotDuration int `json:"SpotDuration" xml:"SpotDuration"` + InstanceName string `json:"InstanceName" xml:"InstanceName"` + SecurityEnhancementStrategy string `json:"SecurityEnhancementStrategy" xml:"SecurityEnhancementStrategy"` + UserData string `json:"UserData" xml:"UserData"` + SystemDiskDiskName string `json:"SystemDisk.DiskName" xml:"SystemDisk.DiskName"` + SystemDiskSize int `json:"SystemDisk.Size" xml:"SystemDisk.Size"` + SpotPriceLimit float64 `json:"SpotPriceLimit" xml:"SpotPriceLimit"` + PasswordInherit bool `json:"PasswordInherit" xml:"PasswordInherit"` + PrivateIpAddress string `json:"PrivateIpAddress" xml:"PrivateIpAddress"` + ImageId string `json:"ImageId" xml:"ImageId"` + SystemDiskDeleteWithInstance bool `json:"SystemDisk.DeleteWithInstance" xml:"SystemDisk.DeleteWithInstance"` + SystemDiskCategory string `json:"SystemDisk.Category" xml:"SystemDisk.Category"` + AutoReleaseTime string `json:"AutoReleaseTime" xml:"AutoReleaseTime"` + SystemDiskDescription string `json:"SystemDisk.Description" xml:"SystemDisk.Description"` + ImageOwnerAlias string `json:"ImageOwnerAlias" xml:"ImageOwnerAlias"` + HostName string `json:"HostName" xml:"HostName"` + SystemDiskIops int `json:"SystemDisk.Iops" xml:"SystemDisk.Iops"` + SystemDiskAutoSnapshotPolicyId string `json:"SystemDisk.AutoSnapshotPolicyId" xml:"SystemDisk.AutoSnapshotPolicyId"` + InternetMaxBandwidthOut int `json:"InternetMaxBandwidthOut" xml:"InternetMaxBandwidthOut"` + InternetMaxBandwidthIn int `json:"InternetMaxBandwidthIn" xml:"InternetMaxBandwidthIn"` + InstanceType string `json:"InstanceType" xml:"InstanceType"` + Period int `json:"Period" xml:"Period"` + InstanceChargeType string `json:"InstanceChargeType" xml:"InstanceChargeType"` + IoOptimized string `json:"IoOptimized" xml:"IoOptimized"` + RamRoleName string `json:"RamRoleName" xml:"RamRoleName"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + Ipv6AddressCount int `json:"Ipv6AddressCount" xml:"Ipv6AddressCount"` + SystemDiskProvisionedIops int64 `json:"SystemDisk.ProvisionedIops" xml:"SystemDisk.ProvisionedIops"` + SystemDiskBurstingEnabled bool `json:"SystemDisk.BurstingEnabled" xml:"SystemDisk.BurstingEnabled"` + SystemDiskEncrypted string `json:"SystemDisk.Encrypted" xml:"SystemDisk.Encrypted"` + DeletionProtection bool `json:"DeletionProtection" xml:"DeletionProtection"` + CreditSpecification string `json:"CreditSpecification" xml:"CreditSpecification"` + SecurityGroupIds SecurityGroupIdsInDescribeLaunchTemplateVersions `json:"SecurityGroupIds" xml:"SecurityGroupIds"` + DataDisks DataDisks `json:"DataDisks" xml:"DataDisks"` + NetworkInterfaces NetworkInterfacesInDescribeLaunchTemplateVersions `json:"NetworkInterfaces" xml:"NetworkInterfaces"` + Tags TagsInDescribeLaunchTemplateVersions `json:"Tags" xml:"Tags"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_set.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_set.go index 6c05c754..8a48e5d2 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_set.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_set.go @@ -17,13 +17,13 @@ package ecs // LaunchTemplateSet is a nested struct in ecs response type LaunchTemplateSet struct { - CreateTime string `json:"CreateTime" xml:"CreateTime"` - ModifiedTime string `json:"ModifiedTime" xml:"ModifiedTime"` - LaunchTemplateId string `json:"LaunchTemplateId" xml:"LaunchTemplateId"` LaunchTemplateName string `json:"LaunchTemplateName" xml:"LaunchTemplateName"` DefaultVersionNumber int64 `json:"DefaultVersionNumber" xml:"DefaultVersionNumber"` - LatestVersionNumber int64 `json:"LatestVersionNumber" xml:"LatestVersionNumber"` - CreatedBy string `json:"CreatedBy" xml:"CreatedBy"` + ModifiedTime string `json:"ModifiedTime" xml:"ModifiedTime"` + LaunchTemplateId string `json:"LaunchTemplateId" xml:"LaunchTemplateId"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + CreatedBy string `json:"CreatedBy" xml:"CreatedBy"` + LatestVersionNumber int64 `json:"LatestVersionNumber" xml:"LatestVersionNumber"` Tags TagsInDescribeLaunchTemplates `json:"Tags" xml:"Tags"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_version.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_version.go new file mode 100644 index 00000000..1add5b37 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_version.go @@ -0,0 +1,22 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LaunchTemplateVersion is a nested struct in ecs response +type LaunchTemplateVersion struct { + LaunchTemplateId string `json:"LaunchTemplateId" xml:"LaunchTemplateId"` + LaunchTemplateVersionNumber int64 `json:"LaunchTemplateVersionNumber" xml:"LaunchTemplateVersionNumber"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_version_numbers.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_version_numbers.go new file mode 100644 index 00000000..daa45312 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_version_numbers.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LaunchTemplateVersionNumbers is a nested struct in ecs response +type LaunchTemplateVersionNumbers struct { + VersionNumbers []int64 `json:"versionNumbers" xml:"versionNumbers"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_version_set.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_version_set.go index 053900af..639e8aaf 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_version_set.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_version_set.go @@ -17,13 +17,13 @@ package ecs // LaunchTemplateVersionSet is a nested struct in ecs response type LaunchTemplateVersionSet struct { - CreateTime string `json:"CreateTime" xml:"CreateTime"` - ModifiedTime string `json:"ModifiedTime" xml:"ModifiedTime"` - LaunchTemplateId string `json:"LaunchTemplateId" xml:"LaunchTemplateId"` LaunchTemplateName string `json:"LaunchTemplateName" xml:"LaunchTemplateName"` DefaultVersion bool `json:"DefaultVersion" xml:"DefaultVersion"` VersionNumber int64 `json:"VersionNumber" xml:"VersionNumber"` - VersionDescription string `json:"VersionDescription" xml:"VersionDescription"` + ModifiedTime string `json:"ModifiedTime" xml:"ModifiedTime"` + LaunchTemplateId string `json:"LaunchTemplateId" xml:"LaunchTemplateId"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` CreatedBy string `json:"CreatedBy" xml:"CreatedBy"` + VersionDescription string `json:"VersionDescription" xml:"VersionDescription"` LaunchTemplateData LaunchTemplateData `json:"LaunchTemplateData" xml:"LaunchTemplateData"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_versions.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_versions.go new file mode 100644 index 00000000..99d877c6 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_launch_template_versions.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LaunchTemplateVersions is a nested struct in ecs response +type LaunchTemplateVersions struct { + LaunchTemplateVersion []LaunchTemplateVersion `json:"LaunchTemplateVersion" xml:"LaunchTemplateVersion"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_link.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_link.go index f0afa507..8442c4d4 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_link.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_link.go @@ -17,6 +17,6 @@ package ecs // Link is a nested struct in ecs response type Link struct { - InstanceId string `json:"InstanceId" xml:"InstanceId"` VpcId string `json:"VpcId" xml:"VpcId"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_local_storage_capacities.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_local_storage_capacities.go new file mode 100644 index 00000000..d38350ab --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_local_storage_capacities.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LocalStorageCapacities is a nested struct in ecs response +type LocalStorageCapacities struct { + LocalStorageCapacity []LocalStorageCapacity `json:"LocalStorageCapacity" xml:"LocalStorageCapacity"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_local_storage_capacity.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_local_storage_capacity.go new file mode 100644 index 00000000..5f1b6f58 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_local_storage_capacity.go @@ -0,0 +1,23 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LocalStorageCapacity is a nested struct in ecs response +type LocalStorageCapacity struct { + DataDiskCategory string `json:"DataDiskCategory" xml:"DataDiskCategory"` + AvailableDisk int `json:"AvailableDisk" xml:"AvailableDisk"` + TotalDisk int `json:"TotalDisk" xml:"TotalDisk"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_maintenance_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_maintenance_attribute.go new file mode 100644 index 00000000..0cfa7f50 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_maintenance_attribute.go @@ -0,0 +1,24 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MaintenanceAttribute is a nested struct in ecs response +type MaintenanceAttribute struct { + NotifyOnMaintenance bool `json:"NotifyOnMaintenance" xml:"NotifyOnMaintenance"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + ActionOnMaintenance ActionOnMaintenance `json:"ActionOnMaintenance" xml:"ActionOnMaintenance"` + MaintenanceWindows MaintenanceWindows `json:"MaintenanceWindows" xml:"MaintenanceWindows"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_maintenance_attributes.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_maintenance_attributes.go new file mode 100644 index 00000000..d50c2b85 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_maintenance_attributes.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MaintenanceAttributes is a nested struct in ecs response +type MaintenanceAttributes struct { + MaintenanceAttribute []MaintenanceAttribute `json:"MaintenanceAttribute" xml:"MaintenanceAttribute"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_maintenance_window.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_maintenance_window.go new file mode 100644 index 00000000..99363432 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_maintenance_window.go @@ -0,0 +1,22 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MaintenanceWindow is a nested struct in ecs response +type MaintenanceWindow struct { + EndTime string `json:"EndTime" xml:"EndTime"` + StartTime string `json:"StartTime" xml:"StartTime"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_maintenance_windows_.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_maintenance_windows_.go new file mode 100644 index 00000000..c19cd9e5 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_maintenance_windows_.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MaintenanceWindows is a nested struct in ecs response +type MaintenanceWindows struct { + MaintenanceWindow []MaintenanceWindow `json:"MaintenanceWindow" xml:"MaintenanceWindow"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_member_network_interface_ids.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_member_network_interface_ids.go new file mode 100644 index 00000000..7ab200a2 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_member_network_interface_ids.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MemberNetworkInterfaceIds is a nested struct in ecs response +type MemberNetworkInterfaceIds struct { + MemberNetworkInterfaceId []string `json:"MemberNetworkInterfaceId" xml:"MemberNetworkInterfaceId"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metadata_options.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metadata_options.go new file mode 100644 index 00000000..c54c6b71 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metadata_options.go @@ -0,0 +1,23 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MetadataOptions is a nested struct in ecs response +type MetadataOptions struct { + HttpEndpoint string `json:"HttpEndpoint" xml:"HttpEndpoint"` + HttpPutResponseHopLimit int `json:"HttpPutResponseHopLimit" xml:"HttpPutResponseHopLimit"` + HttpTokens string `json:"HttpTokens" xml:"HttpTokens"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metric.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metric.go new file mode 100644 index 00000000..af8aa464 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metric.go @@ -0,0 +1,27 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Metric is a nested struct in ecs response +type Metric struct { + MetricId string `json:"MetricId" xml:"MetricId"` + MetricName string `json:"MetricName" xml:"MetricName"` + MetricCategory string `json:"MetricCategory" xml:"MetricCategory"` + Description string `json:"Description" xml:"Description"` + ResourceType string `json:"ResourceType" xml:"ResourceType"` + GuestMetric bool `json:"GuestMetric" xml:"GuestMetric"` + SupportedOperatingSystem string `json:"SupportedOperatingSystem" xml:"SupportedOperatingSystem"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metric_ids.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metric_ids.go new file mode 100644 index 00000000..0fd94466 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metric_ids.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MetricIds is a nested struct in ecs response +type MetricIds struct { + MetricId []string `json:"MetricId" xml:"MetricId"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metric_result.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metric_result.go new file mode 100644 index 00000000..b1f57d54 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metric_result.go @@ -0,0 +1,25 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MetricResult is a nested struct in ecs response +type MetricResult struct { + MetricId string `json:"MetricId" xml:"MetricId"` + MetricCategory string `json:"MetricCategory" xml:"MetricCategory"` + Severity string `json:"Severity" xml:"Severity"` + Status string `json:"Status" xml:"Status"` + Issues IssuesInDescribeDiagnosticReportAttributes `json:"Issues" xml:"Issues"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metric_results.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metric_results.go new file mode 100644 index 00000000..d253ede1 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metric_results.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MetricResults is a nested struct in ecs response +type MetricResults struct { + MetricResult []MetricResult `json:"MetricResult" xml:"MetricResult"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metric_set.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metric_set.go new file mode 100644 index 00000000..e0d7e559 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metric_set.go @@ -0,0 +1,26 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MetricSet is a nested struct in ecs response +type MetricSet struct { + MetricSetId string `json:"MetricSetId" xml:"MetricSetId"` + MetricSetName string `json:"MetricSetName" xml:"MetricSetName"` + Description string `json:"Description" xml:"Description"` + Type string `json:"Type" xml:"Type"` + ResourceType string `json:"ResourceType" xml:"ResourceType"` + MetricIds []string `json:"MetricIds" xml:"MetricIds"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metric_sets.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metric_sets.go new file mode 100644 index 00000000..6a0bec5e --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metric_sets.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MetricSets is a nested struct in ecs response +type MetricSets struct { + MetricSet []MetricSet `json:"MetricSet" xml:"MetricSet"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metrics.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metrics.go new file mode 100644 index 00000000..099820fb --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_metrics.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Metrics is a nested struct in ecs response +type Metrics struct { + Metric []Metric `json:"Metric" xml:"Metric"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_migration_options.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_migration_options.go new file mode 100644 index 00000000..e01311d3 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_migration_options.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// MigrationOptions is a nested struct in ecs response +type MigrationOptions struct { + MigrationOption []string `json:"MigrationOption" xml:"MigrationOption"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_mount_instance.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_mount_instance.go index c3db9805..22d73e62 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_mount_instance.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_mount_instance.go @@ -17,7 +17,7 @@ package ecs // MountInstance is a nested struct in ecs response type MountInstance struct { + AttachedTime string `json:"AttachedTime" xml:"AttachedTime"` InstanceId string `json:"InstanceId" xml:"InstanceId"` Device string `json:"Device" xml:"Device"` - AttachedTime string `json:"AttachedTime" xml:"AttachedTime"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_nat_gateway.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_nat_gateway.go index ac87f245..c6775257 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_nat_gateway.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_nat_gateway.go @@ -17,16 +17,16 @@ package ecs // NatGateway is a nested struct in ecs response type NatGateway struct { - NatGatewayId string `json:"NatGatewayId" xml:"NatGatewayId"` - RegionId string `json:"RegionId" xml:"RegionId"` - Name string `json:"Name" xml:"Name"` - Description string `json:"Description" xml:"Description"` + Status string `json:"Status" xml:"Status"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` VpcId string `json:"VpcId" xml:"VpcId"` Spec string `json:"Spec" xml:"Spec"` - InstanceChargeType string `json:"InstanceChargeType" xml:"InstanceChargeType"` + Description string `json:"Description" xml:"Description"` + NatGatewayId string `json:"NatGatewayId" xml:"NatGatewayId"` BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - Status string `json:"Status" xml:"Status"` + Name string `json:"Name" xml:"Name"` + InstanceChargeType string `json:"InstanceChargeType" xml:"InstanceChargeType"` + RegionId string `json:"RegionId" xml:"RegionId"` ForwardTableIds ForwardTableIdsInDescribeNatGateways `json:"ForwardTableIds" xml:"ForwardTableIds"` BandwidthPackageIds BandwidthPackageIdsInDescribeNatGateways `json:"BandwidthPackageIds" xml:"BandwidthPackageIds"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_attributes.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_attributes.go index 98389dac..1643d8a1 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_attributes.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_attributes.go @@ -17,6 +17,6 @@ package ecs // NetworkAttributes is a nested struct in ecs response type NetworkAttributes struct { - SlbUdpTimeout int `json:"SlbUdpTimeout" xml:"SlbUdpTimeout"` UdpTimeout int `json:"UdpTimeout" xml:"UdpTimeout"` + SlbUdpTimeout int `json:"SlbUdpTimeout" xml:"SlbUdpTimeout"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_card_info.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_card_info.go new file mode 100644 index 00000000..f7f1512e --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_card_info.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NetworkCardInfo is a nested struct in ecs response +type NetworkCardInfo struct { + NetworkCardIndex int `json:"NetworkCardIndex" xml:"NetworkCardIndex"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_cards.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_cards.go new file mode 100644 index 00000000..8081e39d --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_cards.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// NetworkCards is a nested struct in ecs response +type NetworkCards struct { + NetworkCardInfo []NetworkCardInfo `json:"NetworkCardInfo" xml:"NetworkCardInfo"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface.go index 908e7231..3404568a 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface.go @@ -17,11 +17,19 @@ package ecs // NetworkInterface is a nested struct in ecs response type NetworkInterface struct { - SecurityGroupId string `json:"SecurityGroupId" xml:"SecurityGroupId"` - VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` - NetworkInterfaceId string `json:"NetworkInterfaceId" xml:"NetworkInterfaceId"` - PrimaryIpAddress string `json:"PrimaryIpAddress" xml:"PrimaryIpAddress"` - MacAddress string `json:"MacAddress" xml:"MacAddress"` - Description string `json:"Description" xml:"Description"` - NetworkInterfaceName string `json:"NetworkInterfaceName" xml:"NetworkInterfaceName"` + SecurityGroupId string `json:"SecurityGroupId" xml:"SecurityGroupId"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + InstanceType string `json:"InstanceType" xml:"InstanceType"` + MacAddress string `json:"MacAddress" xml:"MacAddress"` + NetworkInterfaceTrafficMode string `json:"NetworkInterfaceTrafficMode" xml:"NetworkInterfaceTrafficMode"` + NetworkInterfaceName string `json:"NetworkInterfaceName" xml:"NetworkInterfaceName"` + NetworkInterfaceId string `json:"NetworkInterfaceId" xml:"NetworkInterfaceId"` + PrimaryIpAddress string `json:"PrimaryIpAddress" xml:"PrimaryIpAddress"` + Description string `json:"Description" xml:"Description"` + Type string `json:"Type" xml:"Type"` + SecurityGroupIds SecurityGroupIdsInDescribeLaunchTemplateVersions `json:"SecurityGroupIds" xml:"SecurityGroupIds"` + Ipv6PrefixSets Ipv6PrefixSetsInDescribeInstances `json:"Ipv6PrefixSets" xml:"Ipv6PrefixSets"` + Ipv4PrefixSets Ipv4PrefixSetsInDescribeInstances `json:"Ipv4PrefixSets" xml:"Ipv4PrefixSets"` + Ipv6Sets Ipv6SetsInDescribeInstances `json:"Ipv6Sets" xml:"Ipv6Sets"` + PrivateIpSets PrivateIpSetsInDescribeInstances `json:"PrivateIpSets" xml:"PrivateIpSets"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface_permission.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface_permission.go index d72780d3..5045e81e 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface_permission.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface_permission.go @@ -20,7 +20,7 @@ type NetworkInterfacePermission struct { Permission string `json:"Permission" xml:"Permission"` AccountId int64 `json:"AccountId" xml:"AccountId"` NetworkInterfaceId string `json:"NetworkInterfaceId" xml:"NetworkInterfaceId"` - ServiceName string `json:"ServiceName" xml:"ServiceName"` NetworkInterfacePermissionId string `json:"NetworkInterfacePermissionId" xml:"NetworkInterfacePermissionId"` + ServiceName string `json:"ServiceName" xml:"ServiceName"` PermissionState string `json:"PermissionState" xml:"PermissionState"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface_set.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface_set.go index ea95eb54..1c6c6c8d 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface_set.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_network_interface_set.go @@ -17,24 +17,32 @@ package ecs // NetworkInterfaceSet is a nested struct in ecs response type NetworkInterfaceSet struct { - NetworkInterfaceId string `json:"NetworkInterfaceId" xml:"NetworkInterfaceId"` - Status string `json:"Status" xml:"Status"` - Type string `json:"Type" xml:"Type"` - VpcId string `json:"VpcId" xml:"VpcId"` - VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` - ZoneId string `json:"ZoneId" xml:"ZoneId"` - PrivateIpAddress string `json:"PrivateIpAddress" xml:"PrivateIpAddress"` - MacAddress string `json:"MacAddress" xml:"MacAddress"` - NetworkInterfaceName string `json:"NetworkInterfaceName" xml:"NetworkInterfaceName"` - Description string `json:"Description" xml:"Description"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - ServiceID int64 `json:"ServiceID" xml:"ServiceID"` - ServiceManaged bool `json:"ServiceManaged" xml:"ServiceManaged"` - SecurityGroupIds SecurityGroupIdsInDescribeNetworkInterfaces `json:"SecurityGroupIds" xml:"SecurityGroupIds"` - AssociatedPublicIp AssociatedPublicIp `json:"AssociatedPublicIp" xml:"AssociatedPublicIp"` - PrivateIpSets PrivateIpSets `json:"PrivateIpSets" xml:"PrivateIpSets"` - Ipv6Sets Ipv6Sets `json:"Ipv6Sets" xml:"Ipv6Sets"` - Tags TagsInDescribeNetworkInterfaces `json:"Tags" xml:"Tags"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + VpcId string `json:"VpcId" xml:"VpcId"` + Type string `json:"Type" xml:"Type"` + Status string `json:"Status" xml:"Status"` + NetworkInterfaceTrafficMode string `json:"NetworkInterfaceTrafficMode" xml:"NetworkInterfaceTrafficMode"` + NetworkInterfaceName string `json:"NetworkInterfaceName" xml:"NetworkInterfaceName"` + MacAddress string `json:"MacAddress" xml:"MacAddress"` + QueuePairNumber int `json:"QueuePairNumber" xml:"QueuePairNumber"` + NetworkInterfaceId string `json:"NetworkInterfaceId" xml:"NetworkInterfaceId"` + ServiceID int64 `json:"ServiceID" xml:"ServiceID"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + OwnerId string `json:"OwnerId" xml:"OwnerId"` + ServiceManaged bool `json:"ServiceManaged" xml:"ServiceManaged"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + Description string `json:"Description" xml:"Description"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + PrivateIpAddress string `json:"PrivateIpAddress" xml:"PrivateIpAddress"` + QueueNumber int `json:"QueueNumber" xml:"QueueNumber"` + DeleteOnRelease bool `json:"DeleteOnRelease" xml:"DeleteOnRelease"` + SecurityGroupIds SecurityGroupIdsInDescribeNetworkInterfaces `json:"SecurityGroupIds" xml:"SecurityGroupIds"` + AssociatedPublicIp AssociatedPublicIp `json:"AssociatedPublicIp" xml:"AssociatedPublicIp"` + Attachment Attachment `json:"Attachment" xml:"Attachment"` + PrivateIpSets PrivateIpSetsInDescribeNetworkInterfaces `json:"PrivateIpSets" xml:"PrivateIpSets"` + Ipv6Sets Ipv6SetsInDescribeNetworkInterfaces `json:"Ipv6Sets" xml:"Ipv6Sets"` + Ipv4PrefixSets Ipv4PrefixSetsInDescribeNetworkInterfaces `json:"Ipv4PrefixSets" xml:"Ipv4PrefixSets"` + Ipv6PrefixSets Ipv6PrefixSetsInDescribeNetworkInterfaces `json:"Ipv6PrefixSets" xml:"Ipv6PrefixSets"` + Tags TagsInDescribeNetworkInterfaces `json:"Tags" xml:"Tags"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_next_hop.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_next_hop.go index 3c20dc24..c42202f2 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_next_hop.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_next_hop.go @@ -17,8 +17,8 @@ package ecs // NextHop is a nested struct in ecs response type NextHop struct { - NextHopType string `json:"NextHopType" xml:"NextHopType"` + Weight int `json:"Weight" xml:"Weight"` NextHopId string `json:"NextHopId" xml:"NextHopId"` + NextHopType string `json:"NextHopType" xml:"NextHopType"` Enabled int `json:"Enabled" xml:"Enabled"` - Weight int `json:"Weight" xml:"Weight"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_on_demand_options.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_on_demand_options.go deleted file mode 100644 index 138b39cd..00000000 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_on_demand_options.go +++ /dev/null @@ -1,21 +0,0 @@ -package ecs - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// OnDemandOptions is a nested struct in ecs response -type OnDemandOptions struct { - AllocationStrategy string `json:"AllocationStrategy" xml:"AllocationStrategy"` -} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_progress.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_progress.go index 61bb990e..cdcacf49 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_progress.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_progress.go @@ -17,8 +17,8 @@ package ecs // OperationProgress is a nested struct in ecs response type OperationProgress struct { - OperationStatus string `json:"OperationStatus" xml:"OperationStatus"` - ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` - ErrorMsg string `json:"ErrorMsg" xml:"ErrorMsg"` - RelatedItemSet RelatedItemSet `json:"RelatedItemSet" xml:"RelatedItemSet"` + ErrorMsg string `json:"ErrorMsg" xml:"ErrorMsg"` + OperationStatus string `json:"OperationStatus" xml:"OperationStatus"` + ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` + RelatedItemSet RelatedItemSetInDeleteSnapshotGroup `json:"RelatedItemSet" xml:"RelatedItemSet"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_progress_set_in_delete_snapshot_group.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_progress_set_in_delete_snapshot_group.go new file mode 100644 index 00000000..2e932f94 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_progress_set_in_delete_snapshot_group.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OperationProgressSetInDeleteSnapshotGroup is a nested struct in ecs response +type OperationProgressSetInDeleteSnapshotGroup struct { + OperationProgress []OperationProgress `json:"OperationProgress" xml:"OperationProgress"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_progress_set_in_describe_task_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_progress_set_in_describe_task_attribute.go new file mode 100644 index 00000000..9edcc6c3 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_progress_set_in_describe_task_attribute.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// OperationProgressSetInDescribeTaskAttribute is a nested struct in ecs response +type OperationProgressSetInDescribeTaskAttribute struct { + OperationProgress []OperationProgress `json:"OperationProgress" xml:"OperationProgress"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_progress_set.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_progress_set_in_reset_disks.go similarity index 87% rename from src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_progress_set.go rename to src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_progress_set_in_reset_disks.go index 142ea4ff..e2e34523 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_progress_set.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_operation_progress_set_in_reset_disks.go @@ -15,7 +15,7 @@ package ecs // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// OperationProgressSet is a nested struct in ecs response -type OperationProgressSet struct { +// OperationProgressSetInResetDisks is a nested struct in ecs response +type OperationProgressSetInResetDisks struct { OperationProgress []OperationProgress `json:"OperationProgress" xml:"OperationProgress"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_parameter_definition.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_parameter_definition.go new file mode 100644 index 00000000..f3d82a80 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_parameter_definition.go @@ -0,0 +1,25 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ParameterDefinition is a nested struct in ecs response +type ParameterDefinition struct { + Required bool `json:"Required" xml:"Required"` + Description string `json:"Description" xml:"Description"` + DefaultValue string `json:"DefaultValue" xml:"DefaultValue"` + ParameterName string `json:"ParameterName" xml:"ParameterName"` + PossibleValues PossibleValues `json:"PossibleValues" xml:"PossibleValues"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_parameter_definitions.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_parameter_definitions.go new file mode 100644 index 00000000..47398ecd --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_parameter_definitions.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ParameterDefinitions is a nested struct in ecs response +type ParameterDefinitions struct { + ParameterDefinition []ParameterDefinition `json:"ParameterDefinition" xml:"ParameterDefinition"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_permission.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_permission.go index 4d69c780..f4bcb301 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_permission.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_permission.go @@ -17,23 +17,28 @@ package ecs // Permission is a nested struct in ecs response type Permission struct { - IpProtocol string `json:"IpProtocol" xml:"IpProtocol"` - PortRange string `json:"PortRange" xml:"PortRange"` - SourcePortRange string `json:"SourcePortRange" xml:"SourcePortRange"` + SecurityGroupRuleId string `json:"SecurityGroupRuleId" xml:"SecurityGroupRuleId"` + Direction string `json:"Direction" xml:"Direction"` SourceGroupId string `json:"SourceGroupId" xml:"SourceGroupId"` - SourceGroupName string `json:"SourceGroupName" xml:"SourceGroupName"` + DestGroupOwnerAccount string `json:"DestGroupOwnerAccount" xml:"DestGroupOwnerAccount"` + DestPrefixListId string `json:"DestPrefixListId" xml:"DestPrefixListId"` + DestPrefixListName string `json:"DestPrefixListName" xml:"DestPrefixListName"` SourceCidrIp string `json:"SourceCidrIp" xml:"SourceCidrIp"` + Ipv6DestCidrIp string `json:"Ipv6DestCidrIp" xml:"Ipv6DestCidrIp"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` Ipv6SourceCidrIp string `json:"Ipv6SourceCidrIp" xml:"Ipv6SourceCidrIp"` - Policy string `json:"Policy" xml:"Policy"` - NicType string `json:"NicType" xml:"NicType"` - SourceGroupOwnerAccount string `json:"SourceGroupOwnerAccount" xml:"SourceGroupOwnerAccount"` DestGroupId string `json:"DestGroupId" xml:"DestGroupId"` - DestGroupName string `json:"DestGroupName" xml:"DestGroupName"` DestCidrIp string `json:"DestCidrIp" xml:"DestCidrIp"` - Ipv6DestCidrIp string `json:"Ipv6DestCidrIp" xml:"Ipv6DestCidrIp"` - DestGroupOwnerAccount string `json:"DestGroupOwnerAccount" xml:"DestGroupOwnerAccount"` + IpProtocol string `json:"IpProtocol" xml:"IpProtocol"` Priority string `json:"Priority" xml:"Priority"` - Direction string `json:"Direction" xml:"Direction"` + DestGroupName string `json:"DestGroupName" xml:"DestGroupName"` + NicType string `json:"NicType" xml:"NicType"` + Policy string `json:"Policy" xml:"Policy"` Description string `json:"Description" xml:"Description"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` + PortRange string `json:"PortRange" xml:"PortRange"` + SourcePrefixListName string `json:"SourcePrefixListName" xml:"SourcePrefixListName"` + SourcePrefixListId string `json:"SourcePrefixListId" xml:"SourcePrefixListId"` + SourceGroupOwnerAccount string `json:"SourceGroupOwnerAccount" xml:"SourceGroupOwnerAccount"` + SourceGroupName string `json:"SourceGroupName" xml:"SourceGroupName"` + SourcePortRange string `json:"SourcePortRange" xml:"SourcePortRange"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_physical_connection_type.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_physical_connection_type.go index 39ce1118..ae8ea83c 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_physical_connection_type.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_physical_connection_type.go @@ -17,22 +17,22 @@ package ecs // PhysicalConnectionType is a nested struct in ecs response type PhysicalConnectionType struct { - PhysicalConnectionId string `json:"PhysicalConnectionId" xml:"PhysicalConnectionId"` - AccessPointId string `json:"AccessPointId" xml:"AccessPointId"` - Type string `json:"Type" xml:"Type"` - Status string `json:"Status" xml:"Status"` - BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - EnabledTime string `json:"EnabledTime" xml:"EnabledTime"` - LineOperator string `json:"LineOperator" xml:"LineOperator"` - Spec string `json:"Spec" xml:"Spec"` - PeerLocation string `json:"PeerLocation" xml:"PeerLocation"` - PortType string `json:"PortType" xml:"PortType"` - RedundantPhysicalConnectionId string `json:"RedundantPhysicalConnectionId" xml:"RedundantPhysicalConnectionId"` - Name string `json:"Name" xml:"Name"` - Description string `json:"Description" xml:"Description"` AdLocation string `json:"AdLocation" xml:"AdLocation"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + Status string `json:"Status" xml:"Status"` + Type string `json:"Type" xml:"Type"` PortNumber string `json:"PortNumber" xml:"PortNumber"` CircuitCode string `json:"CircuitCode" xml:"CircuitCode"` + Spec string `json:"Spec" xml:"Spec"` Bandwidth int64 `json:"Bandwidth" xml:"Bandwidth"` + Description string `json:"Description" xml:"Description"` + PortType string `json:"PortType" xml:"PortType"` + EnabledTime string `json:"EnabledTime" xml:"EnabledTime"` + BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` + LineOperator string `json:"LineOperator" xml:"LineOperator"` + Name string `json:"Name" xml:"Name"` + RedundantPhysicalConnectionId string `json:"RedundantPhysicalConnectionId" xml:"RedundantPhysicalConnectionId"` + PeerLocation string `json:"PeerLocation" xml:"PeerLocation"` + AccessPointId string `json:"AccessPointId" xml:"AccessPointId"` + PhysicalConnectionId string `json:"PhysicalConnectionId" xml:"PhysicalConnectionId"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_plugin_status.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_plugin_status.go new file mode 100644 index 00000000..f00a4a7b --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_plugin_status.go @@ -0,0 +1,25 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PluginStatus is a nested struct in ecs response +type PluginStatus struct { + PluginVersion string `json:"PluginVersion" xml:"PluginVersion"` + PluginName string `json:"PluginName" xml:"PluginName"` + FirstHeartbeatTime string `json:"FirstHeartbeatTime" xml:"FirstHeartbeatTime"` + LastHeartbeatTime string `json:"LastHeartbeatTime" xml:"LastHeartbeatTime"` + PluginStatus string `json:"PluginStatus" xml:"PluginStatus"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_plugin_status_set.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_plugin_status_set.go new file mode 100644 index 00000000..3c578fb8 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_plugin_status_set.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PluginStatusSet is a nested struct in ecs response +type PluginStatusSet struct { + PluginStatus []PluginStatus `json:"PluginStatus" xml:"PluginStatus"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_possible_values.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_possible_values.go new file mode 100644 index 00000000..867a834d --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_possible_values.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PossibleValues is a nested struct in ecs response +type PossibleValues struct { + PossibleValue []string `json:"PossibleValue" xml:"PossibleValue"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_prefix_list.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_prefix_list.go new file mode 100644 index 00000000..ab499174 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_prefix_list.go @@ -0,0 +1,27 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PrefixList is a nested struct in ecs response +type PrefixList struct { + CreationTime string `json:"CreationTime" xml:"CreationTime"` + AssociationCount int `json:"AssociationCount" xml:"AssociationCount"` + MaxEntries int `json:"MaxEntries" xml:"MaxEntries"` + Description string `json:"Description" xml:"Description"` + AddressFamily string `json:"AddressFamily" xml:"AddressFamily"` + PrefixListName string `json:"PrefixListName" xml:"PrefixListName"` + PrefixListId string `json:"PrefixListId" xml:"PrefixListId"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_activity_detail_in_describe_fleet_history.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_prefix_list_association.go similarity index 76% rename from src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_activity_detail_in_describe_fleet_history.go rename to src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_prefix_list_association.go index a19269dc..3376f1ce 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_activity_detail_in_describe_fleet_history.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_prefix_list_association.go @@ -15,8 +15,8 @@ package ecs // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// ActivityDetailInDescribeFleetHistory is a nested struct in ecs response -type ActivityDetailInDescribeFleetHistory struct { - Detail string `json:"Detail" xml:"Detail"` - Status float64 `json:"Status" xml:"Status"` +// PrefixListAssociation is a nested struct in ecs response +type PrefixListAssociation struct { + ResourceId string `json:"ResourceId" xml:"ResourceId"` + ResourceType string `json:"ResourceType" xml:"ResourceType"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_prefix_list_associations.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_prefix_list_associations.go new file mode 100644 index 00000000..d586993b --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_prefix_list_associations.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PrefixListAssociations is a nested struct in ecs response +type PrefixListAssociations struct { + PrefixListAssociation []PrefixListAssociation `json:"PrefixListAssociation" xml:"PrefixListAssociation"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_prefix_lists.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_prefix_lists.go new file mode 100644 index 00000000..4c8977c1 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_prefix_lists.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PrefixLists is a nested struct in ecs response +type PrefixLists struct { + PrefixList []PrefixList `json:"PrefixList" xml:"PrefixList"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_price.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_price.go index bd142488..b63bb657 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_price.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_price.go @@ -17,9 +17,10 @@ package ecs // Price is a nested struct in ecs response type Price struct { - DiscountPrice float64 `json:"DiscountPrice" xml:"DiscountPrice"` - TradePrice float64 `json:"TradePrice" xml:"TradePrice"` - OriginalPrice float64 `json:"OriginalPrice" xml:"OriginalPrice"` - Currency string `json:"Currency" xml:"Currency"` - DetailInfos DetailInfosInDescribeRenewalPrice `json:"DetailInfos" xml:"DetailInfos"` + DiscountPrice float64 `json:"DiscountPrice" xml:"DiscountPrice"` + TradePrice float64 `json:"TradePrice" xml:"TradePrice"` + OriginalPrice float64 `json:"OriginalPrice" xml:"OriginalPrice"` + Currency string `json:"Currency" xml:"Currency"` + ReservedInstanceHourPrice float64 `json:"ReservedInstanceHourPrice" xml:"ReservedInstanceHourPrice"` + DetailInfos DetailInfosInDescribePrice `json:"DetailInfos" xml:"DetailInfos"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_price_info.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_price_info.go index 3e02bfcb..fb7ae9ed 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_price_info.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_price_info.go @@ -17,6 +17,6 @@ package ecs // PriceInfo is a nested struct in ecs response type PriceInfo struct { - Price Price `json:"Price" xml:"Price"` - Rules RulesInDescribeRenewalPrice `json:"Rules" xml:"Rules"` + Price Price `json:"Price" xml:"Price"` + Rules RulesInDescribeInstanceModificationPrice `json:"Rules" xml:"Rules"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_price_info_in_describe_savings_plan_price.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_price_info_in_describe_savings_plan_price.go new file mode 100644 index 00000000..65fa9736 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_price_info_in_describe_savings_plan_price.go @@ -0,0 +1,22 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PriceInfoInDescribeSavingsPlanPrice is a nested struct in ecs response +type PriceInfoInDescribeSavingsPlanPrice struct { + Price Price `json:"Price" xml:"Price"` + Rules []RulesItem `json:"Rules" xml:"Rules"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_set_in_assign_private_ip_addresses.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_set_in_assign_private_ip_addresses.go new file mode 100644 index 00000000..f012cd3f --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_set_in_assign_private_ip_addresses.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PrivateIpSetInAssignPrivateIpAddresses is a nested struct in ecs response +type PrivateIpSetInAssignPrivateIpAddresses struct { + PrivateIpAddress []string `json:"PrivateIpAddress" xml:"PrivateIpAddress"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_sets_in_create_network_interface.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_sets_in_create_network_interface.go new file mode 100644 index 00000000..65ae60d1 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_sets_in_create_network_interface.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PrivateIpSetsInCreateNetworkInterface is a nested struct in ecs response +type PrivateIpSetsInCreateNetworkInterface struct { + PrivateIpSet []PrivateIpSet `json:"PrivateIpSet" xml:"PrivateIpSet"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_sets.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_sets_in_describe_instances.go similarity index 86% rename from src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_sets.go rename to src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_sets_in_describe_instances.go index 412ab967..59403d02 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_sets.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_sets_in_describe_instances.go @@ -15,7 +15,7 @@ package ecs // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// PrivateIpSets is a nested struct in ecs response -type PrivateIpSets struct { +// PrivateIpSetsInDescribeInstances is a nested struct in ecs response +type PrivateIpSetsInDescribeInstances struct { PrivateIpSet []PrivateIpSet `json:"PrivateIpSet" xml:"PrivateIpSet"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_sets_in_describe_network_interface_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_sets_in_describe_network_interface_attribute.go new file mode 100644 index 00000000..a557a756 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_sets_in_describe_network_interface_attribute.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PrivateIpSetsInDescribeNetworkInterfaceAttribute is a nested struct in ecs response +type PrivateIpSetsInDescribeNetworkInterfaceAttribute struct { + PrivateIpSet []PrivateIpSet `json:"PrivateIpSet" xml:"PrivateIpSet"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_sets_in_describe_network_interfaces.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_sets_in_describe_network_interfaces.go new file mode 100644 index 00000000..82c5572c --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_private_ip_sets_in_describe_network_interfaces.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PrivateIpSetsInDescribeNetworkInterfaces is a nested struct in ecs response +type PrivateIpSetsInDescribeNetworkInterfaces struct { + PrivateIpSet []PrivateIpSet `json:"PrivateIpSet" xml:"PrivateIpSet"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_public_ip_addresse.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_public_ip_addresse.go index ea2cd850..07259cb7 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_public_ip_addresse.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_public_ip_addresse.go @@ -17,6 +17,6 @@ package ecs // PublicIpAddresse is a nested struct in ecs response type PublicIpAddresse struct { - AllocationId string `json:"AllocationId" xml:"AllocationId"` IpAddress string `json:"IpAddress" xml:"IpAddress"` + AllocationId string `json:"AllocationId" xml:"AllocationId"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_recommend_instance_type.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_recommend_instance_type.go index d7f7c318..8395ad05 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_recommend_instance_type.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_recommend_instance_type.go @@ -17,9 +17,14 @@ package ecs // RecommendInstanceType is a nested struct in ecs response type RecommendInstanceType struct { - RegionNo string `json:"RegionNo" xml:"RegionNo"` - CommodityCode string `json:"CommodityCode" xml:"CommodityCode"` - Scene string `json:"Scene" xml:"Scene"` - InstanceType InstanceType `json:"InstanceType" xml:"InstanceType"` - Zones ZonesInDescribeRecommendInstanceType `json:"Zones" xml:"Zones"` + CommodityCode string `json:"CommodityCode" xml:"CommodityCode"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + Priority int `json:"Priority" xml:"Priority"` + NetworkType string `json:"NetworkType" xml:"NetworkType"` + Scene string `json:"Scene" xml:"Scene"` + SpotStrategy string `json:"SpotStrategy" xml:"SpotStrategy"` + RegionId string `json:"RegionId" xml:"RegionId"` + InstanceChargeType string `json:"InstanceChargeType" xml:"InstanceChargeType"` + InstanceType InstanceType `json:"InstanceType" xml:"InstanceType"` + Zones ZonesInDescribeRecommendInstanceType `json:"Zones" xml:"Zones"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_referencing_security_group.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_referencing_security_group.go index e57f98b0..9014802c 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_referencing_security_group.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_referencing_security_group.go @@ -17,6 +17,6 @@ package ecs // ReferencingSecurityGroup is a nested struct in ecs response type ReferencingSecurityGroup struct { - AliUid string `json:"AliUid" xml:"AliUid"` SecurityGroupId string `json:"SecurityGroupId" xml:"SecurityGroupId"` + AliUid string `json:"AliUid" xml:"AliUid"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_region.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_region.go index bc8163b6..35167e7c 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_region.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_region.go @@ -17,8 +17,8 @@ package ecs // Region is a nested struct in ecs response type Region struct { - RegionId string `json:"RegionId" xml:"RegionId"` - LocalName string `json:"LocalName" xml:"LocalName"` - RegionEndpoint string `json:"RegionEndpoint" xml:"RegionEndpoint"` Status string `json:"Status" xml:"Status"` + RegionEndpoint string `json:"RegionEndpoint" xml:"RegionEndpoint"` + LocalName string `json:"LocalName" xml:"LocalName"` + RegionId string `json:"RegionId" xml:"RegionId"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_related_item_set_in_delete_snapshot_group.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_related_item_set_in_delete_snapshot_group.go new file mode 100644 index 00000000..f7a2d3d9 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_related_item_set_in_delete_snapshot_group.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RelatedItemSetInDeleteSnapshotGroup is a nested struct in ecs response +type RelatedItemSetInDeleteSnapshotGroup struct { + RelatedItem []RelatedItem `json:"RelatedItem" xml:"RelatedItem"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_related_item_set_in_describe_task_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_related_item_set_in_describe_task_attribute.go new file mode 100644 index 00000000..106276bb --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_related_item_set_in_describe_task_attribute.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RelatedItemSetInDescribeTaskAttribute is a nested struct in ecs response +type RelatedItemSetInDescribeTaskAttribute struct { + RelatedItem []RelatedItem `json:"RelatedItem" xml:"RelatedItem"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_related_item_set.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_related_item_set_in_reset_disks.go similarity index 87% rename from src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_related_item_set.go rename to src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_related_item_set_in_reset_disks.go index 10018fd9..40abb866 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_related_item_set.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_related_item_set_in_reset_disks.go @@ -15,7 +15,7 @@ package ecs // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// RelatedItemSet is a nested struct in ecs response -type RelatedItemSet struct { +// RelatedItemSetInResetDisks is a nested struct in ecs response +type RelatedItemSetInResetDisks struct { RelatedItem []RelatedItem `json:"RelatedItem" xml:"RelatedItem"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_report.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_report.go new file mode 100644 index 00000000..e56fcb88 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_report.go @@ -0,0 +1,31 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Report is a nested struct in ecs response +type Report struct { + ResourceId string `json:"ResourceId" xml:"ResourceId"` + ResourceType string `json:"ResourceType" xml:"ResourceType"` + MetricSetId string `json:"MetricSetId" xml:"MetricSetId"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + ReportId string `json:"ReportId" xml:"ReportId"` + Status string `json:"Status" xml:"Status"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + FinishedTime string `json:"FinishedTime" xml:"FinishedTime"` + Severity string `json:"Severity" xml:"Severity"` + Issues IssuesInDescribeDiagnosticReports `json:"Issues" xml:"Issues"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reports.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reports.go new file mode 100644 index 00000000..7345e289 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reports.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Reports is a nested struct in ecs response +type Reports struct { + Report []Report `json:"Report" xml:"Report"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reserved_instance.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reserved_instance.go index 3c02d0d5..3a2c4dfd 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reserved_instance.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reserved_instance.go @@ -17,20 +17,22 @@ package ecs // ReservedInstance is a nested struct in ecs response type ReservedInstance struct { - ReservedInstanceId string `json:"ReservedInstanceId" xml:"ReservedInstanceId"` - RegionId string `json:"RegionId" xml:"RegionId"` - ZoneId string `json:"ZoneId" xml:"ZoneId"` + Status string `json:"Status" xml:"Status"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` ReservedInstanceName string `json:"ReservedInstanceName" xml:"ReservedInstanceName"` - Description string `json:"Description" xml:"Description"` + ReservedInstanceId string `json:"ReservedInstanceId" xml:"ReservedInstanceId"` InstanceType string `json:"InstanceType" xml:"InstanceType"` - Scope string `json:"Scope" xml:"Scope"` - OfferingType string `json:"OfferingType" xml:"OfferingType"` - Platform string `json:"Platform" xml:"Platform"` InstanceAmount int `json:"InstanceAmount" xml:"InstanceAmount"` - Status string `json:"Status" xml:"Status"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - ExpiredTime string `json:"ExpiredTime" xml:"ExpiredTime"` + RegionId string `json:"RegionId" xml:"RegionId"` + OfferingType string `json:"OfferingType" xml:"OfferingType"` StartTime string `json:"StartTime" xml:"StartTime"` + Description string `json:"Description" xml:"Description"` + AllocationStatus string `json:"AllocationStatus" xml:"AllocationStatus"` + ExpiredTime string `json:"ExpiredTime" xml:"ExpiredTime"` ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + Platform string `json:"Platform" xml:"Platform"` + Scope string `json:"Scope" xml:"Scope"` OperationLocks OperationLocksInDescribeReservedInstances `json:"OperationLocks" xml:"OperationLocks"` + Tags TagsInDescribeReservedInstances `json:"Tags" xml:"Tags"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_activity_details_in_describe_fleet_history.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reserved_instance_id_sets_in_renew_reserved_instances.go similarity index 75% rename from src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_activity_details_in_describe_fleet_history.go rename to src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reserved_instance_id_sets_in_renew_reserved_instances.go index 4fa935d2..2747a3ef 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_activity_details_in_describe_fleet_history.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reserved_instance_id_sets_in_renew_reserved_instances.go @@ -15,7 +15,7 @@ package ecs // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// ActivityDetailsInDescribeFleetHistory is a nested struct in ecs response -type ActivityDetailsInDescribeFleetHistory struct { - ActivityDetail []ActivityDetailInDescribeFleetHistory `json:"ActivityDetail" xml:"ActivityDetail"` +// ReservedInstanceIdSetsInRenewReservedInstances is a nested struct in ecs response +type ReservedInstanceIdSetsInRenewReservedInstances struct { + ReservedInstanceId []string `json:"ReservedInstanceId" xml:"ReservedInstanceId"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reserved_instance_renew_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reserved_instance_renew_attribute.go new file mode 100644 index 00000000..05267728 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reserved_instance_renew_attribute.go @@ -0,0 +1,24 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ReservedInstanceRenewAttribute is a nested struct in ecs response +type ReservedInstanceRenewAttribute struct { + PeriodUnit string `json:"PeriodUnit" xml:"PeriodUnit"` + Duration int `json:"Duration" xml:"Duration"` + ReservedInstanceId string `json:"ReservedInstanceId" xml:"ReservedInstanceId"` + RenewalStatus string `json:"RenewalStatus" xml:"RenewalStatus"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reserved_instance_renew_attributes.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reserved_instance_renew_attributes.go new file mode 100644 index 00000000..eff46a49 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_reserved_instance_renew_attributes.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ReservedInstanceRenewAttributes is a nested struct in ecs response +type ReservedInstanceRenewAttributes struct { + ReservedInstanceRenewAttribute []ReservedInstanceRenewAttribute `json:"ReservedInstanceRenewAttribute" xml:"ReservedInstanceRenewAttribute"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resource.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resource.go index dc698a2c..9ea08458 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resource.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resource.go @@ -17,7 +17,7 @@ package ecs // Resource is a nested struct in ecs response type Resource struct { - ResourceId string `json:"ResourceId" xml:"ResourceId"` ResourceType string `json:"ResourceType" xml:"ResourceType"` + ResourceId string `json:"ResourceId" xml:"ResourceId"` RegionId string `json:"RegionId" xml:"RegionId"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resource_price_model.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resource_price_model.go index 4a86dcb3..7b612d0b 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resource_price_model.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resource_price_model.go @@ -17,9 +17,9 @@ package ecs // ResourcePriceModel is a nested struct in ecs response type ResourcePriceModel struct { - DiscountPrice float64 `json:"DiscountPrice" xml:"DiscountPrice"` - TradePrice float64 `json:"TradePrice" xml:"TradePrice"` - OriginalPrice float64 `json:"OriginalPrice" xml:"OriginalPrice"` - Resource string `json:"Resource" xml:"Resource"` - SubRules SubRulesInDescribeRenewalPrice `json:"SubRules" xml:"SubRules"` + DiscountPrice float64 `json:"DiscountPrice" xml:"DiscountPrice"` + TradePrice float64 `json:"TradePrice" xml:"TradePrice"` + OriginalPrice float64 `json:"OriginalPrice" xml:"OriginalPrice"` + Resource string `json:"Resource" xml:"Resource"` + SubRules SubRulesInDescribePrice `json:"SubRules" xml:"SubRules"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resource_type_count.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resource_type_count.go index 46b4032a..52c18fd9 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resource_type_count.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resource_type_count.go @@ -17,14 +17,16 @@ package ecs // ResourceTypeCount is a nested struct in ecs response type ResourceTypeCount struct { - Instance int `json:"Instance" xml:"Instance"` - Disk int `json:"Disk" xml:"Disk"` - Volume int `json:"Volume" xml:"Volume"` - Image int `json:"Image" xml:"Image"` - Snapshot int `json:"Snapshot" xml:"Snapshot"` - Securitygroup int `json:"Securitygroup" xml:"Securitygroup"` - LaunchTemplate int `json:"LaunchTemplate" xml:"LaunchTemplate"` - Eni int `json:"Eni" xml:"Eni"` - Ddh int `json:"Ddh" xml:"Ddh"` - KeyPair int `json:"KeyPair" xml:"KeyPair"` + Instance int `json:"Instance" xml:"Instance"` + Image int `json:"Image" xml:"Image"` + Ddh int `json:"Ddh" xml:"Ddh"` + SnapshotPolicy int `json:"SnapshotPolicy" xml:"SnapshotPolicy"` + Securitygroup int `json:"Securitygroup" xml:"Securitygroup"` + Snapshot int `json:"Snapshot" xml:"Snapshot"` + ReservedInstance int `json:"ReservedInstance" xml:"ReservedInstance"` + LaunchTemplate int `json:"LaunchTemplate" xml:"LaunchTemplate"` + Eni int `json:"Eni" xml:"Eni"` + Disk int `json:"Disk" xml:"Disk"` + KeyPair int `json:"KeyPair" xml:"KeyPair"` + Volume int `json:"Volume" xml:"Volume"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resources_info.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resources_info.go index e2b75116..7f17df6d 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resources_info.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_resources_info.go @@ -19,9 +19,9 @@ package ecs type ResourcesInfo struct { IoOptimized bool `json:"IoOptimized" xml:"IoOptimized"` SystemDiskCategories SystemDiskCategories `json:"SystemDiskCategories" xml:"SystemDiskCategories"` + InstanceGenerations InstanceGenerations `json:"InstanceGenerations" xml:"InstanceGenerations"` DataDiskCategories DataDiskCategories `json:"DataDiskCategories" xml:"DataDiskCategories"` - NetworkTypes NetworkTypesInDescribeZones `json:"NetworkTypes" xml:"NetworkTypes"` InstanceTypes InstanceTypesInDescribeZones `json:"InstanceTypes" xml:"InstanceTypes"` InstanceTypeFamilies InstanceTypeFamiliesInDescribeZones `json:"InstanceTypeFamilies" xml:"InstanceTypeFamilies"` - InstanceGenerations InstanceGenerations `json:"InstanceGenerations" xml:"InstanceGenerations"` + NetworkTypes NetworkTypesInDescribeZones `json:"NetworkTypes" xml:"NetworkTypes"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_entry.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_entry.go index 762a150e..0d8e9c31 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_entry.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_entry.go @@ -17,11 +17,11 @@ package ecs // RouteEntry is a nested struct in ecs response type RouteEntry struct { - RouteTableId string `json:"RouteTableId" xml:"RouteTableId"` - DestinationCidrBlock string `json:"DestinationCidrBlock" xml:"DestinationCidrBlock"` Type string `json:"Type" xml:"Type"` Status string `json:"Status" xml:"Status"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` NextHopType string `json:"NextHopType" xml:"NextHopType"` + DestinationCidrBlock string `json:"DestinationCidrBlock" xml:"DestinationCidrBlock"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + RouteTableId string `json:"RouteTableId" xml:"RouteTableId"` NextHops NextHops `json:"NextHops" xml:"NextHops"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_table.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_table.go index 27e0571a..02829d98 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_table.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_route_table.go @@ -17,10 +17,10 @@ package ecs // RouteTable is a nested struct in ecs response type RouteTable struct { + CreationTime string `json:"CreationTime" xml:"CreationTime"` VRouterId string `json:"VRouterId" xml:"VRouterId"` RouteTableId string `json:"RouteTableId" xml:"RouteTableId"` - RouteTableType string `json:"RouteTableType" xml:"RouteTableType"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + RouteTableType string `json:"RouteTableType" xml:"RouteTableType"` RouteEntrys RouteEntrys `json:"RouteEntrys" xml:"RouteEntrys"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_router_interface_type.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_router_interface_type.go index 7527601e..717905a6 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_router_interface_type.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_router_interface_type.go @@ -17,29 +17,29 @@ package ecs // RouterInterfaceType is a nested struct in ecs response type RouterInterfaceType struct { - RouterInterfaceId string `json:"RouterInterfaceId" xml:"RouterInterfaceId"` - OppositeRegionId string `json:"OppositeRegionId" xml:"OppositeRegionId"` - Role string `json:"Role" xml:"Role"` - Spec string `json:"Spec" xml:"Spec"` - Name string `json:"Name" xml:"Name"` - Description string `json:"Description" xml:"Description"` - RouterId string `json:"RouterId" xml:"RouterId"` - RouterType string `json:"RouterType" xml:"RouterType"` + HealthCheckTargetIp string `json:"HealthCheckTargetIp" xml:"HealthCheckTargetIp"` CreationTime string `json:"CreationTime" xml:"CreationTime"` - EndTime string `json:"EndTime" xml:"EndTime"` - ChargeType string `json:"ChargeType" xml:"ChargeType"` Status string `json:"Status" xml:"Status"` - BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` - ConnectedTime string `json:"ConnectedTime" xml:"ConnectedTime"` + Spec string `json:"Spec" xml:"Spec"` OppositeInterfaceId string `json:"OppositeInterfaceId" xml:"OppositeInterfaceId"` - OppositeInterfaceSpec string `json:"OppositeInterfaceSpec" xml:"OppositeInterfaceSpec"` - OppositeInterfaceStatus string `json:"OppositeInterfaceStatus" xml:"OppositeInterfaceStatus"` - OppositeInterfaceBusinessStatus string `json:"OppositeInterfaceBusinessStatus" xml:"OppositeInterfaceBusinessStatus"` - OppositeRouterId string `json:"OppositeRouterId" xml:"OppositeRouterId"` + RouterInterfaceId string `json:"RouterInterfaceId" xml:"RouterInterfaceId"` + ChargeType string `json:"ChargeType" xml:"ChargeType"` OppositeRouterType string `json:"OppositeRouterType" xml:"OppositeRouterType"` OppositeInterfaceOwnerId string `json:"OppositeInterfaceOwnerId" xml:"OppositeInterfaceOwnerId"` - AccessPointId string `json:"AccessPointId" xml:"AccessPointId"` - OppositeAccessPointId string `json:"OppositeAccessPointId" xml:"OppositeAccessPointId"` + Description string `json:"Description" xml:"Description"` + Name string `json:"Name" xml:"Name"` + OppositeRouterId string `json:"OppositeRouterId" xml:"OppositeRouterId"` + OppositeInterfaceSpec string `json:"OppositeInterfaceSpec" xml:"OppositeInterfaceSpec"` + RouterId string `json:"RouterId" xml:"RouterId"` + OppositeInterfaceBusinessStatus string `json:"OppositeInterfaceBusinessStatus" xml:"OppositeInterfaceBusinessStatus"` + ConnectedTime string `json:"ConnectedTime" xml:"ConnectedTime"` + OppositeInterfaceStatus string `json:"OppositeInterfaceStatus" xml:"OppositeInterfaceStatus"` HealthCheckSourceIp string `json:"HealthCheckSourceIp" xml:"HealthCheckSourceIp"` - HealthCheckTargetIp string `json:"HealthCheckTargetIp" xml:"HealthCheckTargetIp"` + EndTime string `json:"EndTime" xml:"EndTime"` + OppositeRegionId string `json:"OppositeRegionId" xml:"OppositeRegionId"` + OppositeAccessPointId string `json:"OppositeAccessPointId" xml:"OppositeAccessPointId"` + BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` + Role string `json:"Role" xml:"Role"` + RouterType string `json:"RouterType" xml:"RouterType"` + AccessPointId string `json:"AccessPointId" xml:"AccessPointId"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rules_in_describe_instance_modification_price.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rules_in_describe_instance_modification_price.go new file mode 100644 index 00000000..da716617 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rules_in_describe_instance_modification_price.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RulesInDescribeInstanceModificationPrice is a nested struct in ecs response +type RulesInDescribeInstanceModificationPrice struct { + Rule []Rule `json:"Rule" xml:"Rule"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rules_in_describe_savings_plan_price.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rules_in_describe_savings_plan_price.go new file mode 100644 index 00000000..02efeb3c --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rules_in_describe_savings_plan_price.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RulesInDescribeSavingsPlanPrice is a nested struct in ecs response +type RulesInDescribeSavingsPlanPrice struct { + RulesItem []RulesItem `json:"rules" xml:"rules"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rules_item.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rules_item.go new file mode 100644 index 00000000..1997a4dc --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_rules_item.go @@ -0,0 +1,22 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RulesItem is a nested struct in ecs response +type RulesItem struct { + RuleId string `json:"RuleId" xml:"RuleId"` + Description string `json:"Description" xml:"Description"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_scheduled_system_event_type.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_scheduled_system_event_type.go index da79d82e..b5d84864 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_scheduled_system_event_type.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_scheduled_system_event_type.go @@ -17,9 +17,11 @@ package ecs // ScheduledSystemEventType is a nested struct in ecs response type ScheduledSystemEventType struct { - EventId string `json:"EventId" xml:"EventId"` EventPublishTime string `json:"EventPublishTime" xml:"EventPublishTime"` + EventId string `json:"EventId" xml:"EventId"` NotBefore string `json:"NotBefore" xml:"NotBefore"` + ImpactLevel string `json:"ImpactLevel" xml:"ImpactLevel"` + Reason string `json:"Reason" xml:"Reason"` EventCycleStatus EventCycleStatus `json:"EventCycleStatus" xml:"EventCycleStatus"` EventType EventType `json:"EventType" xml:"EventType"` ExtendedAttribute ExtendedAttribute `json:"ExtendedAttribute" xml:"ExtendedAttribute"` diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group.go index f030c627..ae22c50e 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group.go @@ -18,13 +18,15 @@ package ecs // SecurityGroup is a nested struct in ecs response type SecurityGroup struct { SecurityGroupId string `json:"SecurityGroupId" xml:"SecurityGroupId"` - Description string `json:"Description" xml:"Description"` SecurityGroupName string `json:"SecurityGroupName" xml:"SecurityGroupName"` + Description string `json:"Description" xml:"Description"` + SecurityGroupType string `json:"SecurityGroupType" xml:"SecurityGroupType"` VpcId string `json:"VpcId" xml:"VpcId"` CreationTime string `json:"CreationTime" xml:"CreationTime"` - SecurityGroupType string `json:"SecurityGroupType" xml:"SecurityGroupType"` - AvailableInstanceAmount int `json:"AvailableInstanceAmount" xml:"AvailableInstanceAmount"` EcsCount int `json:"EcsCount" xml:"EcsCount"` + AvailableInstanceAmount int `json:"AvailableInstanceAmount" xml:"AvailableInstanceAmount"` ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + ServiceManaged bool `json:"ServiceManaged" xml:"ServiceManaged"` + ServiceID int64 `json:"ServiceID" xml:"ServiceID"` Tags TagsInDescribeSecurityGroups `json:"Tags" xml:"Tags"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_ids_in_create_network_interface.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_ids_in_create_network_interface.go new file mode 100644 index 00000000..1fe4f4e0 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_ids_in_create_network_interface.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SecurityGroupIdsInCreateNetworkInterface is a nested struct in ecs response +type SecurityGroupIdsInCreateNetworkInterface struct { + SecurityGroupId []string `json:"SecurityGroupId" xml:"SecurityGroupId"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_ids_in_describe_launch_template_versions.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_ids_in_describe_launch_template_versions.go new file mode 100644 index 00000000..faa7dce5 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_ids_in_describe_launch_template_versions.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SecurityGroupIdsInDescribeLaunchTemplateVersions is a nested struct in ecs response +type SecurityGroupIdsInDescribeLaunchTemplateVersions struct { + SecurityGroupId []string `json:"SecurityGroupId" xml:"SecurityGroupId"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_ids_in_describe_network_interface_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_ids_in_describe_network_interface_attribute.go new file mode 100644 index 00000000..caacd927 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_security_group_ids_in_describe_network_interface_attribute.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SecurityGroupIdsInDescribeNetworkInterfaceAttribute is a nested struct in ecs response +type SecurityGroupIdsInDescribeNetworkInterfaceAttribute struct { + SecurityGroupId []string `json:"SecurityGroupId" xml:"SecurityGroupId"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_slave_interface_specification.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_slave_interface_specification.go new file mode 100644 index 00000000..329d4c1b --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_slave_interface_specification.go @@ -0,0 +1,23 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SlaveInterfaceSpecification is a nested struct in ecs response +type SlaveInterfaceSpecification struct { + SlaveNetworkInterfaceId string `json:"SlaveNetworkInterfaceId" xml:"SlaveNetworkInterfaceId"` + BondNetworkInterfaceId string `json:"BondNetworkInterfaceId" xml:"BondNetworkInterfaceId"` + WorkState string `json:"WorkState" xml:"WorkState"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_slave_interface_specification_in_describe_network_interface_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_slave_interface_specification_in_describe_network_interface_attribute.go new file mode 100644 index 00000000..e5e2794d --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_slave_interface_specification_in_describe_network_interface_attribute.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SlaveInterfaceSpecificationInDescribeNetworkInterfaceAttribute is a nested struct in ecs response +type SlaveInterfaceSpecificationInDescribeNetworkInterfaceAttribute struct { + SlaveInterfaceSpecificationSet []SlaveInterfaceSpecificationSet `json:"SlaveInterfaceSpecificationSet" xml:"SlaveInterfaceSpecificationSet"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_slave_interface_specification_set.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_slave_interface_specification_set.go new file mode 100644 index 00000000..fe9ae2c3 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_slave_interface_specification_set.go @@ -0,0 +1,23 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SlaveInterfaceSpecificationSet is a nested struct in ecs response +type SlaveInterfaceSpecificationSet struct { + SlaveNetworkInterfaceId string `json:"SlaveNetworkInterfaceId" xml:"SlaveNetworkInterfaceId"` + WorkState string `json:"WorkState" xml:"WorkState"` + BondNetworkInterfaceId string `json:"BondNetworkInterfaceId" xml:"BondNetworkInterfaceId"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot.go index 68cd62b7..b2eccfa7 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot.go @@ -17,23 +17,31 @@ package ecs // Snapshot is a nested struct in ecs response type Snapshot struct { - SnapshotId string `json:"SnapshotId" xml:"SnapshotId"` - SnapshotName string `json:"SnapshotName" xml:"SnapshotName"` - Progress string `json:"Progress" xml:"Progress"` - ProductCode string `json:"ProductCode" xml:"ProductCode"` - SourceDiskId string `json:"SourceDiskId" xml:"SourceDiskId"` - SourceDiskType string `json:"SourceDiskType" xml:"SourceDiskType"` - RetentionDays int `json:"RetentionDays" xml:"RetentionDays"` - Encrypted bool `json:"Encrypted" xml:"Encrypted"` - SourceDiskSize string `json:"SourceDiskSize" xml:"SourceDiskSize"` - Description string `json:"Description" xml:"Description"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - LastModifiedTime string `json:"LastModifiedTime" xml:"LastModifiedTime"` - Status string `json:"Status" xml:"Status"` - Usage string `json:"Usage" xml:"Usage"` - SourceStorageType string `json:"SourceStorageType" xml:"SourceStorageType"` - RemainTime int `json:"RemainTime" xml:"RemainTime"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - KMSKeyId string `json:"KMSKeyId" xml:"KMSKeyId"` - Tags TagsInDescribeSnapshots `json:"Tags" xml:"Tags"` + Category string `json:"Category" xml:"Category"` + LastModifiedTime string `json:"LastModifiedTime" xml:"LastModifiedTime"` + Available bool `json:"Available" xml:"Available"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + SnapshotSN string `json:"SnapshotSN" xml:"SnapshotSN"` + InstantAccess bool `json:"InstantAccess" xml:"InstantAccess"` + SnapshotType string `json:"SnapshotType" xml:"SnapshotType"` + Description string `json:"Description" xml:"Description"` + SourceDiskType string `json:"SourceDiskType" xml:"SourceDiskType"` + SnapshotName string `json:"SnapshotName" xml:"SnapshotName"` + Usage string `json:"Usage" xml:"Usage"` + SourceDiskSize string `json:"SourceDiskSize" xml:"SourceDiskSize"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + SourceStorageType string `json:"SourceStorageType" xml:"SourceStorageType"` + SourceSnapshotId string `json:"SourceSnapshotId" xml:"SourceSnapshotId"` + KMSKeyId string `json:"KMSKeyId" xml:"KMSKeyId"` + ProductCode string `json:"ProductCode" xml:"ProductCode"` + Encrypted bool `json:"Encrypted" xml:"Encrypted"` + Progress string `json:"Progress" xml:"Progress"` + RetentionDays int `json:"RetentionDays" xml:"RetentionDays"` + SourceDiskId string `json:"SourceDiskId" xml:"SourceDiskId"` + RemainTime int `json:"RemainTime" xml:"RemainTime"` + SnapshotId string `json:"SnapshotId" xml:"SnapshotId"` + InstantAccessRetentionDays int `json:"InstantAccessRetentionDays" xml:"InstantAccessRetentionDays"` + SourceRegionId string `json:"SourceRegionId" xml:"SourceRegionId"` + Status string `json:"Status" xml:"Status"` + Tags TagsInDescribeSnapshots `json:"Tags" xml:"Tags"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_group.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_group.go new file mode 100644 index 00000000..3e723391 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_group.go @@ -0,0 +1,30 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SnapshotGroup is a nested struct in ecs response +type SnapshotGroup struct { + Status string `json:"Status" xml:"Status"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + Description string `json:"Description" xml:"Description"` + ProgressStatus string `json:"ProgressStatus" xml:"ProgressStatus"` + SnapshotGroupId string `json:"SnapshotGroupId" xml:"SnapshotGroupId"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + Name string `json:"Name" xml:"Name"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + Tags TagsInDescribeSnapshotGroups `json:"Tags" xml:"Tags"` + Snapshots SnapshotsInDescribeSnapshotGroups `json:"Snapshots" xml:"Snapshots"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_groups.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_groups.go new file mode 100644 index 00000000..9969be33 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_groups.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SnapshotGroups is a nested struct in ecs response +type SnapshotGroups struct { + SnapshotGroup []SnapshotGroup `json:"SnapshotGroup" xml:"SnapshotGroup"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_link.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_link.go index 5ab4ea0a..1f52f7d5 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_link.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_link.go @@ -17,14 +17,16 @@ package ecs // SnapshotLink is a nested struct in ecs response type SnapshotLink struct { - SnapshotLinkId string `json:"SnapshotLinkId" xml:"SnapshotLinkId"` - RegionId string `json:"RegionId" xml:"RegionId"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - InstanceName string `json:"InstanceName" xml:"InstanceName"` - SourceDiskId string `json:"SourceDiskId" xml:"SourceDiskId"` + InstantAccess bool `json:"InstantAccess" xml:"InstantAccess"` + TotalSize int64 `json:"TotalSize" xml:"TotalSize"` SourceDiskName string `json:"SourceDiskName" xml:"SourceDiskName"` SourceDiskSize int `json:"SourceDiskSize" xml:"SourceDiskSize"` SourceDiskType string `json:"SourceDiskType" xml:"SourceDiskType"` - TotalSize int `json:"TotalSize" xml:"TotalSize"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + SnapshotLinkId string `json:"SnapshotLinkId" xml:"SnapshotLinkId"` TotalCount int `json:"TotalCount" xml:"TotalCount"` + RegionId string `json:"RegionId" xml:"RegionId"` + SourceDiskId string `json:"SourceDiskId" xml:"SourceDiskId"` + InstanceName string `json:"InstanceName" xml:"InstanceName"` + Category string `json:"Category" xml:"Category"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_package.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_package.go index e8eddca0..956a9fdd 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_package.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshot_package.go @@ -17,8 +17,8 @@ package ecs // SnapshotPackage is a nested struct in ecs response type SnapshotPackage struct { - StartTime string `json:"StartTime" xml:"StartTime"` + DisplayName string `json:"DisplayName" xml:"DisplayName"` EndTime string `json:"EndTime" xml:"EndTime"` + StartTime string `json:"StartTime" xml:"StartTime"` InitCapacity int64 `json:"InitCapacity" xml:"InitCapacity"` - DisplayName string `json:"DisplayName" xml:"DisplayName"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshots_in_describe_snapshot_groups.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshots_in_describe_snapshot_groups.go new file mode 100644 index 00000000..eecdb682 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshots_in_describe_snapshot_groups.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SnapshotsInDescribeSnapshotGroups is a nested struct in ecs response +type SnapshotsInDescribeSnapshotGroups struct { + Snapshot []Snapshot `json:"Snapshot" xml:"Snapshot"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshots.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshots_in_describe_snapshots.go similarity index 87% rename from src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshots.go rename to src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshots_in_describe_snapshots.go index 9f6f40b3..d0c9580f 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshots.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_snapshots_in_describe_snapshots.go @@ -15,7 +15,7 @@ package ecs // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// Snapshots is a nested struct in ecs response -type Snapshots struct { +// SnapshotsInDescribeSnapshots is a nested struct in ecs response +type SnapshotsInDescribeSnapshots struct { Snapshot []Snapshot `json:"Snapshot" xml:"Snapshot"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_socket_capacities.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_socket_capacities.go new file mode 100644 index 00000000..7b667e3d --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_socket_capacities.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SocketCapacities is a nested struct in ecs response +type SocketCapacities struct { + SocketCapacity []SocketCapacity `json:"SocketCapacity" xml:"SocketCapacity"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_socket_capacity.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_socket_capacity.go new file mode 100644 index 00000000..bdd2f4a5 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_socket_capacity.go @@ -0,0 +1,25 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SocketCapacity is a nested struct in ecs response +type SocketCapacity struct { + SocketId int `json:"SocketId" xml:"SocketId"` + AvailableMemory float64 `json:"AvailableMemory" xml:"AvailableMemory"` + TotalMemory float64 `json:"TotalMemory" xml:"TotalMemory"` + AvailableVcpu int `json:"AvailableVcpu" xml:"AvailableVcpu"` + TotalVcpu int `json:"TotalVcpu" xml:"TotalVcpu"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_spot_options.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_spot_options.go index 2c88adc0..0eeb0529 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_spot_options.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_spot_options.go @@ -17,7 +17,7 @@ package ecs // SpotOptions is a nested struct in ecs response type SpotOptions struct { - InstanceInterruptionBehavior string `json:"InstanceInterruptionBehavior" xml:"InstanceInterruptionBehavior"` InstancePoolsToUseCount int `json:"InstancePoolsToUseCount" xml:"InstancePoolsToUseCount"` AllocationStrategy string `json:"AllocationStrategy" xml:"AllocationStrategy"` + InstanceInterruptionBehavior string `json:"InstanceInterruptionBehavior" xml:"InstanceInterruptionBehavior"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_spot_price_type.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_spot_price_type.go index 093c72a3..1c247bc5 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_spot_price_type.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_spot_price_type.go @@ -17,11 +17,11 @@ package ecs // SpotPriceType is a nested struct in ecs response type SpotPriceType struct { - ZoneId string `json:"ZoneId" xml:"ZoneId"` - InstanceType string `json:"InstanceType" xml:"InstanceType"` IoOptimized string `json:"IoOptimized" xml:"IoOptimized"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + SpotPrice float64 `json:"SpotPrice" xml:"SpotPrice"` Timestamp string `json:"Timestamp" xml:"Timestamp"` NetworkType string `json:"NetworkType" xml:"NetworkType"` - SpotPrice float64 `json:"SpotPrice" xml:"SpotPrice"` + InstanceType string `json:"InstanceType" xml:"InstanceType"` OriginPrice float64 `json:"OriginPrice" xml:"OriginPrice"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_storage_capacity_unit.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_storage_capacity_unit.go new file mode 100644 index 00000000..f80654ea --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_storage_capacity_unit.go @@ -0,0 +1,31 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// StorageCapacityUnit is a nested struct in ecs response +type StorageCapacityUnit struct { + CreationTime string `json:"CreationTime" xml:"CreationTime"` + Status string `json:"Status" xml:"Status"` + StartTime string `json:"StartTime" xml:"StartTime"` + Capacity int `json:"Capacity" xml:"Capacity"` + Description string `json:"Description" xml:"Description"` + AllocationStatus string `json:"AllocationStatus" xml:"AllocationStatus"` + ExpiredTime string `json:"ExpiredTime" xml:"ExpiredTime"` + StorageCapacityUnitId string `json:"StorageCapacityUnitId" xml:"StorageCapacityUnitId"` + Name string `json:"Name" xml:"Name"` + RegionId string `json:"RegionId" xml:"RegionId"` + Tags TagsInDescribeStorageCapacityUnits `json:"Tags" xml:"Tags"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_storage_capacity_unit_ids.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_storage_capacity_unit_ids.go new file mode 100644 index 00000000..c66bf236 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_storage_capacity_unit_ids.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// StorageCapacityUnitIds is a nested struct in ecs response +type StorageCapacityUnitIds struct { + StorageCapacityUnitId []string `json:"StorageCapacityUnitId" xml:"StorageCapacityUnitId"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_storage_capacity_units.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_storage_capacity_units.go new file mode 100644 index 00000000..3edb9ad1 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_storage_capacity_units.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// StorageCapacityUnits is a nested struct in ecs response +type StorageCapacityUnits struct { + StorageCapacityUnit []StorageCapacityUnit `json:"StorageCapacityUnit" xml:"StorageCapacityUnit"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_storage_set.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_storage_set.go index 812b0a59..967c0a15 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_storage_set.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_storage_set.go @@ -17,11 +17,11 @@ package ecs // StorageSet is a nested struct in ecs response type StorageSet struct { - StorageSetId string `json:"StorageSetId" xml:"StorageSetId"` CreationTime string `json:"CreationTime" xml:"CreationTime"` - StorageSetName string `json:"StorageSetName" xml:"StorageSetName"` Description string `json:"Description" xml:"Description"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + StorageSetId string `json:"StorageSetId" xml:"StorageSetId"` StorageSetPartitionNumber int `json:"StorageSetPartitionNumber" xml:"StorageSetPartitionNumber"` + StorageSetName string `json:"StorageSetName" xml:"StorageSetName"` RegionId string `json:"RegionId" xml:"RegionId"` - ZoneId string `json:"ZoneId" xml:"ZoneId"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supply_info.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supply_info.go index b8003c5e..77268296 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supply_info.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supply_info.go @@ -21,4 +21,5 @@ type SupplyInfo struct { SupplyStatus string `json:"SupplyStatus" xml:"SupplyStatus"` SupplyStartTime string `json:"SupplyStartTime" xml:"SupplyStartTime"` SupplyEndTime string `json:"SupplyEndTime" xml:"SupplyEndTime"` + PrivatePoolId string `json:"PrivatePoolId" xml:"PrivatePoolId"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_custom_instance_type_families.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_custom_instance_type_families.go new file mode 100644 index 00000000..b38d81e1 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_custom_instance_type_families.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SupportedCustomInstanceTypeFamilies is a nested struct in ecs response +type SupportedCustomInstanceTypeFamilies struct { + SupportedCustomInstanceTypeFamily []string `json:"SupportedCustomInstanceTypeFamily" xml:"SupportedCustomInstanceTypeFamily"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_values.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_values.go new file mode 100644 index 00000000..2ccebf1a --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_supported_values.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// SupportedValues is a nested struct in ecs response +type SupportedValues struct { + SupportedValue []string `json:"SupportedValue" xml:"SupportedValue"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tag.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tag.go index 00d617b3..5f118266 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tag.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tag.go @@ -17,6 +17,8 @@ package ecs // Tag is a nested struct in ecs response type Tag struct { + Key string `json:"Key" xml:"Key"` + Value string `json:"Value" xml:"Value"` TagValue string `json:"TagValue" xml:"TagValue"` TagKey string `json:"TagKey" xml:"TagKey"` ResourceTypeCount ResourceTypeCount `json:"ResourceTypeCount" xml:"ResourceTypeCount"` diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tag_resource.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tag_resource.go index c2a94e91..7a1d3dbe 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tag_resource.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tag_resource.go @@ -17,8 +17,8 @@ package ecs // TagResource is a nested struct in ecs response type TagResource struct { + TagValue string `json:"TagValue" xml:"TagValue"` ResourceType string `json:"ResourceType" xml:"ResourceType"` ResourceId string `json:"ResourceId" xml:"ResourceId"` TagKey string `json:"TagKey" xml:"TagKey"` - TagValue string `json:"TagValue" xml:"TagValue"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_create_network_interface.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_create_network_interface.go new file mode 100644 index 00000000..8b71a6c0 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_create_network_interface.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagsInCreateNetworkInterface is a nested struct in ecs response +type TagsInCreateNetworkInterface struct { + Tag []Tag `json:"Tag" xml:"Tag"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_activations.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_activations.go new file mode 100644 index 00000000..109442fd --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_activations.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagsInDescribeActivations is a nested struct in ecs response +type TagsInDescribeActivations struct { + Tag []Tag `json:"Tag" xml:"Tag"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_auto_snapshot_policy_ex.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_auto_snapshot_policy_ex.go new file mode 100644 index 00000000..d60da968 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_auto_snapshot_policy_ex.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagsInDescribeAutoSnapshotPolicyEx is a nested struct in ecs response +type TagsInDescribeAutoSnapshotPolicyEx struct { + Tag []Tag `json:"Tag" xml:"Tag"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_capacity_reservations.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_capacity_reservations.go new file mode 100644 index 00000000..88f3499b --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_capacity_reservations.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagsInDescribeCapacityReservations is a nested struct in ecs response +type TagsInDescribeCapacityReservations struct { + Tag []Tag `json:"Tag" xml:"Tag"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_commands.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_commands.go new file mode 100644 index 00000000..5071d1d5 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_commands.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagsInDescribeCommands is a nested struct in ecs response +type TagsInDescribeCommands struct { + Tag []Tag `json:"Tag" xml:"Tag"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_dedicated_host_clusters.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_dedicated_host_clusters.go new file mode 100644 index 00000000..0f330464 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_dedicated_host_clusters.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagsInDescribeDedicatedHostClusters is a nested struct in ecs response +type TagsInDescribeDedicatedHostClusters struct { + Tag []Tag `json:"Tag" xml:"Tag"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_elasticity_assurances.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_elasticity_assurances.go new file mode 100644 index 00000000..2694130a --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_elasticity_assurances.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagsInDescribeElasticityAssurances is a nested struct in ecs response +type TagsInDescribeElasticityAssurances struct { + Tag []Tag `json:"Tag" xml:"Tag"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_image_components.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_image_components.go new file mode 100644 index 00000000..bb902680 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_image_components.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagsInDescribeImageComponents is a nested struct in ecs response +type TagsInDescribeImageComponents struct { + Tag []Tag `json:"Tag" xml:"Tag"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_image_from_family.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_image_from_family.go new file mode 100644 index 00000000..72a270ed --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_image_from_family.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagsInDescribeImageFromFamily is a nested struct in ecs response +type TagsInDescribeImageFromFamily struct { + Tag []Tag `json:"Tag" xml:"Tag"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_image_pipeline_executions.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_image_pipeline_executions.go new file mode 100644 index 00000000..b47d72b1 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_image_pipeline_executions.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagsInDescribeImagePipelineExecutions is a nested struct in ecs response +type TagsInDescribeImagePipelineExecutions struct { + Tag []Tag `json:"Tag" xml:"Tag"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_image_pipelines.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_image_pipelines.go new file mode 100644 index 00000000..57a94dae --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_image_pipelines.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagsInDescribeImagePipelines is a nested struct in ecs response +type TagsInDescribeImagePipelines struct { + Tag []Tag `json:"Tag" xml:"Tag"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_invocation_results.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_invocation_results.go new file mode 100644 index 00000000..9bddc909 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_invocation_results.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagsInDescribeInvocationResults is a nested struct in ecs response +type TagsInDescribeInvocationResults struct { + Tag []Tag `json:"Tag" xml:"Tag"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_invocations.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_invocations.go new file mode 100644 index 00000000..82d6d073 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_invocations.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagsInDescribeInvocations is a nested struct in ecs response +type TagsInDescribeInvocations struct { + Tag []Tag `json:"Tag" xml:"Tag"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_managed_instances.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_managed_instances.go new file mode 100644 index 00000000..7ff22f32 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_managed_instances.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagsInDescribeManagedInstances is a nested struct in ecs response +type TagsInDescribeManagedInstances struct { + Tag []Tag `json:"Tag" xml:"Tag"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_network_interface_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_network_interface_attribute.go new file mode 100644 index 00000000..694710d0 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_network_interface_attribute.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagsInDescribeNetworkInterfaceAttribute is a nested struct in ecs response +type TagsInDescribeNetworkInterfaceAttribute struct { + Tag []Tag `json:"Tag" xml:"Tag"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_reserved_instances.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_reserved_instances.go new file mode 100644 index 00000000..4cff1974 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_reserved_instances.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagsInDescribeReservedInstances is a nested struct in ecs response +type TagsInDescribeReservedInstances struct { + Tag []Tag `json:"Tag" xml:"Tag"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_send_file_results.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_send_file_results.go new file mode 100644 index 00000000..8110b5fe --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_send_file_results.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagsInDescribeSendFileResults is a nested struct in ecs response +type TagsInDescribeSendFileResults struct { + Tag []Tag `json:"Tag" xml:"Tag"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_snapshot_groups.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_snapshot_groups.go new file mode 100644 index 00000000..2aa4ed09 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_snapshot_groups.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagsInDescribeSnapshotGroups is a nested struct in ecs response +type TagsInDescribeSnapshotGroups struct { + Tag []Tag `json:"Tag" xml:"Tag"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_storage_capacity_units.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_storage_capacity_units.go new file mode 100644 index 00000000..0b646fc2 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_tags_in_describe_storage_capacity_units.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagsInDescribeStorageCapacityUnits is a nested struct in ecs response +type TagsInDescribeStorageCapacityUnits struct { + Tag []Tag `json:"Tag" xml:"Tag"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_target_capacity_specification.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_target_capacity_specification.go index 5681afb0..da3b3a04 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_target_capacity_specification.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_target_capacity_specification.go @@ -18,9 +18,7 @@ package ecs // TargetCapacitySpecification is a nested struct in ecs response type TargetCapacitySpecification struct { SpotTargetCapacity float64 `json:"SpotTargetCapacity" xml:"SpotTargetCapacity"` - OnDemandTargetCapacity float64 `json:"OnDemandTargetCapacity" xml:"OnDemandTargetCapacity"` - FillGapWithOnDemand bool `json:"FillGapWithOnDemand" xml:"FillGapWithOnDemand"` PayAsYouGoTargetCapacity float64 `json:"PayAsYouGoTargetCapacity" xml:"PayAsYouGoTargetCapacity"` - TotalTargetCapacity float64 `json:"TotalTargetCapacity" xml:"TotalTargetCapacity"` DefaultTargetCapacityType string `json:"DefaultTargetCapacityType" xml:"DefaultTargetCapacityType"` + TotalTargetCapacity float64 `json:"TotalTargetCapacity" xml:"TotalTargetCapacity"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_task.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_task.go index ff4fdb63..429d54d2 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_task.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_task.go @@ -17,10 +17,11 @@ package ecs // Task is a nested struct in ecs response type Task struct { - TaskId string `json:"TaskId" xml:"TaskId"` - TaskAction string `json:"TaskAction" xml:"TaskAction"` - TaskStatus string `json:"TaskStatus" xml:"TaskStatus"` - SupportCancel string `json:"SupportCancel" xml:"SupportCancel"` CreationTime string `json:"CreationTime" xml:"CreationTime"` + TaskStatus string `json:"TaskStatus" xml:"TaskStatus"` FinishedTime string `json:"FinishedTime" xml:"FinishedTime"` + SupportCancel string `json:"SupportCancel" xml:"SupportCancel"` + TaskId string `json:"TaskId" xml:"TaskId"` + TaskAction string `json:"TaskAction" xml:"TaskAction"` + ResourceId string `json:"ResourceId" xml:"ResourceId"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_to_region_ids.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_to_region_ids.go new file mode 100644 index 00000000..77816ed9 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_to_region_ids.go @@ -0,0 +1,21 @@ +package ecs + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ToRegionIds is a nested struct in ecs response +type ToRegionIds struct { + ToRegionId []string `json:"ToRegionId" xml:"ToRegionId"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_topology.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_topology.go index dd5d2697..22f4802e 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_topology.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_topology.go @@ -17,6 +17,6 @@ package ecs // Topology is a nested struct in ecs response type Topology struct { - InstanceId string `json:"InstanceId" xml:"InstanceId"` HostId string `json:"HostId" xml:"HostId"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_router.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_router.go index 383343e8..e7e342af 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_router.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_router.go @@ -17,11 +17,11 @@ package ecs // VRouter is a nested struct in ecs response type VRouter struct { - RegionId string `json:"RegionId" xml:"RegionId"` VpcId string `json:"VpcId" xml:"VpcId"` - VRouterName string `json:"VRouterName" xml:"VRouterName"` - Description string `json:"Description" xml:"Description"` - VRouterId string `json:"VRouterId" xml:"VRouterId"` CreationTime string `json:"CreationTime" xml:"CreationTime"` + VRouterId string `json:"VRouterId" xml:"VRouterId"` + Description string `json:"Description" xml:"Description"` + VRouterName string `json:"VRouterName" xml:"VRouterName"` + RegionId string `json:"RegionId" xml:"RegionId"` RouteTableIds RouteTableIds `json:"RouteTableIds" xml:"RouteTableIds"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_switch.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_switch.go index e5375d3a..9276bab1 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_switch.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_v_switch.go @@ -17,15 +17,15 @@ package ecs // VSwitch is a nested struct in ecs response type VSwitch struct { - VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` - VpcId string `json:"VpcId" xml:"VpcId"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` Status string `json:"Status" xml:"Status"` + VpcId string `json:"VpcId" xml:"VpcId"` + IsDefault bool `json:"IsDefault" xml:"IsDefault"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` CidrBlock string `json:"CidrBlock" xml:"CidrBlock"` - ZoneId string `json:"ZoneId" xml:"ZoneId"` - AvailableIpAddressCount int64 `json:"AvailableIpAddressCount" xml:"AvailableIpAddressCount"` Description string `json:"Description" xml:"Description"` - VSwitchName string `json:"VSwitchName" xml:"VSwitchName"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - IsDefault bool `json:"IsDefault" xml:"IsDefault"` + AvailableIpAddressCount int64 `json:"AvailableIpAddressCount" xml:"AvailableIpAddressCount"` ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` + VSwitchName string `json:"VSwitchName" xml:"VSwitchName"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_value_item.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_value_item.go index 4653ef03..03d14bcb 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_value_item.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_value_item.go @@ -17,10 +17,11 @@ package ecs // ValueItem is a nested struct in ecs response type ValueItem struct { + DiskCategory string `json:"DiskCategory" xml:"DiskCategory"` Value string `json:"Value" xml:"Value"` ExpiredTime string `json:"ExpiredTime" xml:"ExpiredTime"` ZoneId string `json:"ZoneId" xml:"ZoneId"` - InstanceChargeType string `json:"InstanceChargeType" xml:"InstanceChargeType"` InstanceType string `json:"InstanceType" xml:"InstanceType"` Count int `json:"Count" xml:"Count"` + InstanceChargeType string `json:"InstanceChargeType" xml:"InstanceChargeType"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_virtual_border_router_for_physical_connection_type.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_virtual_border_router_for_physical_connection_type.go index 054d2b06..fc32b54d 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_virtual_border_router_for_physical_connection_type.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_virtual_border_router_for_physical_connection_type.go @@ -17,12 +17,12 @@ package ecs // VirtualBorderRouterForPhysicalConnectionType is a nested struct in ecs response type VirtualBorderRouterForPhysicalConnectionType struct { - VbrId string `json:"VbrId" xml:"VbrId"` - VbrOwnerUid int64 `json:"VbrOwnerUid" xml:"VbrOwnerUid"` CreationTime string `json:"CreationTime" xml:"CreationTime"` - ActivationTime string `json:"ActivationTime" xml:"ActivationTime"` - TerminationTime string `json:"TerminationTime" xml:"TerminationTime"` + CircuitCode string `json:"CircuitCode" xml:"CircuitCode"` RecoveryTime string `json:"RecoveryTime" xml:"RecoveryTime"` + TerminationTime string `json:"TerminationTime" xml:"TerminationTime"` + ActivationTime string `json:"ActivationTime" xml:"ActivationTime"` + VbrOwnerUid int64 `json:"VbrOwnerUid" xml:"VbrOwnerUid"` + VbrId string `json:"VbrId" xml:"VbrId"` VlanId int `json:"VlanId" xml:"VlanId"` - CircuitCode string `json:"CircuitCode" xml:"CircuitCode"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_virtual_border_router_type.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_virtual_border_router_type.go index 6ae23090..b03c6e4d 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_virtual_border_router_type.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_virtual_border_router_type.go @@ -17,24 +17,24 @@ package ecs // VirtualBorderRouterType is a nested struct in ecs response type VirtualBorderRouterType struct { - VbrId string `json:"VbrId" xml:"VbrId"` - CreationTime string `json:"CreationTime" xml:"CreationTime"` - ActivationTime string `json:"ActivationTime" xml:"ActivationTime"` - TerminationTime string `json:"TerminationTime" xml:"TerminationTime"` - RecoveryTime string `json:"RecoveryTime" xml:"RecoveryTime"` + VlanInterfaceId string `json:"VlanInterfaceId" xml:"VlanInterfaceId"` Status string `json:"Status" xml:"Status"` - VlanId int `json:"VlanId" xml:"VlanId"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` CircuitCode string `json:"CircuitCode" xml:"CircuitCode"` - RouteTableId string `json:"RouteTableId" xml:"RouteTableId"` - VlanInterfaceId string `json:"VlanInterfaceId" xml:"VlanInterfaceId"` + PhysicalConnectionOwnerUid string `json:"PhysicalConnectionOwnerUid" xml:"PhysicalConnectionOwnerUid"` LocalGatewayIp string `json:"LocalGatewayIp" xml:"LocalGatewayIp"` - PeerGatewayIp string `json:"PeerGatewayIp" xml:"PeerGatewayIp"` + ActivationTime string `json:"ActivationTime" xml:"ActivationTime"` + PhysicalConnectionBusinessStatus string `json:"PhysicalConnectionBusinessStatus" xml:"PhysicalConnectionBusinessStatus"` PeeringSubnetMask string `json:"PeeringSubnetMask" xml:"PeeringSubnetMask"` - PhysicalConnectionId string `json:"PhysicalConnectionId" xml:"PhysicalConnectionId"` + RouteTableId string `json:"RouteTableId" xml:"RouteTableId"` + Description string `json:"Description" xml:"Description"` PhysicalConnectionStatus string `json:"PhysicalConnectionStatus" xml:"PhysicalConnectionStatus"` - PhysicalConnectionBusinessStatus string `json:"PhysicalConnectionBusinessStatus" xml:"PhysicalConnectionBusinessStatus"` - PhysicalConnectionOwnerUid string `json:"PhysicalConnectionOwnerUid" xml:"PhysicalConnectionOwnerUid"` - AccessPointId string `json:"AccessPointId" xml:"AccessPointId"` + RecoveryTime string `json:"RecoveryTime" xml:"RecoveryTime"` + TerminationTime string `json:"TerminationTime" xml:"TerminationTime"` + PeerGatewayIp string `json:"PeerGatewayIp" xml:"PeerGatewayIp"` Name string `json:"Name" xml:"Name"` - Description string `json:"Description" xml:"Description"` + AccessPointId string `json:"AccessPointId" xml:"AccessPointId"` + VbrId string `json:"VbrId" xml:"VbrId"` + PhysicalConnectionId string `json:"PhysicalConnectionId" xml:"PhysicalConnectionId"` + VlanId int `json:"VlanId" xml:"VlanId"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_vpc.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_vpc.go index d9cd890d..b827b6ed 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_vpc.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_vpc.go @@ -17,15 +17,15 @@ package ecs // Vpc is a nested struct in ecs response type Vpc struct { - VpcId string `json:"VpcId" xml:"VpcId"` - RegionId string `json:"RegionId" xml:"RegionId"` - Status string `json:"Status" xml:"Status"` - VpcName string `json:"VpcName" xml:"VpcName"` CreationTime string `json:"CreationTime" xml:"CreationTime"` - CidrBlock string `json:"CidrBlock" xml:"CidrBlock"` + VpcName string `json:"VpcName" xml:"VpcName"` + Status string `json:"Status" xml:"Status"` + VpcId string `json:"VpcId" xml:"VpcId"` VRouterId string `json:"VRouterId" xml:"VRouterId"` - Description string `json:"Description" xml:"Description"` IsDefault bool `json:"IsDefault" xml:"IsDefault"` + CidrBlock string `json:"CidrBlock" xml:"CidrBlock"` + Description string `json:"Description" xml:"Description"` + RegionId string `json:"RegionId" xml:"RegionId"` VSwitchIds VSwitchIds `json:"VSwitchIds" xml:"VSwitchIds"` UserCidrs UserCidrs `json:"UserCidrs" xml:"UserCidrs"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_vpc_attributes.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_vpc_attributes.go index 73f611c9..84cb8756 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_vpc_attributes.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_vpc_attributes.go @@ -17,8 +17,8 @@ package ecs // VpcAttributes is a nested struct in ecs response type VpcAttributes struct { - VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` - VpcId string `json:"VpcId" xml:"VpcId"` - NatIpAddress string `json:"NatIpAddress" xml:"NatIpAddress"` - PrivateIpAddress PrivateIpAddressInDescribeInstances `json:"PrivateIpAddress" xml:"PrivateIpAddress"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + VpcId string `json:"VpcId" xml:"VpcId"` + NatIpAddress string `json:"NatIpAddress" xml:"NatIpAddress"` + PrivateIpAddress PrivateIpAddressInDescribeInstanceAttribute `json:"PrivateIpAddress" xml:"PrivateIpAddress"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_zone.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_zone.go index 932afe4d..fd37d103 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_zone.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/struct_zone.go @@ -20,12 +20,13 @@ type Zone struct { ZoneNo string `json:"ZoneNo" xml:"ZoneNo"` ZoneId string `json:"ZoneId" xml:"ZoneId"` LocalName string `json:"LocalName" xml:"LocalName"` + ZoneType string `json:"ZoneType" xml:"ZoneType"` AvailableResourceCreation AvailableResourceCreation `json:"AvailableResourceCreation" xml:"AvailableResourceCreation"` AvailableVolumeCategories AvailableVolumeCategories `json:"AvailableVolumeCategories" xml:"AvailableVolumeCategories"` - AvailableInstanceTypes AvailableInstanceTypes `json:"AvailableInstanceTypes" xml:"AvailableInstanceTypes"` + AvailableInstanceTypes AvailableInstanceTypesInDescribeZones `json:"AvailableInstanceTypes" xml:"AvailableInstanceTypes"` AvailableDedicatedHostTypes AvailableDedicatedHostTypes `json:"AvailableDedicatedHostTypes" xml:"AvailableDedicatedHostTypes"` NetworkTypes NetworkTypesInDescribeRecommendInstanceType `json:"NetworkTypes" xml:"NetworkTypes"` - AvailableDiskCategories AvailableDiskCategories `json:"AvailableDiskCategories" xml:"AvailableDiskCategories"` DedicatedHostGenerations DedicatedHostGenerations `json:"DedicatedHostGenerations" xml:"DedicatedHostGenerations"` + AvailableDiskCategories AvailableDiskCategories `json:"AvailableDiskCategories" xml:"AvailableDiskCategories"` AvailableResources AvailableResourcesInDescribeZones `json:"AvailableResources" xml:"AvailableResources"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/tag_resources.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/tag_resources.go index a14087cb..49fb8851 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/tag_resources.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/tag_resources.go @@ -21,7 +21,6 @@ import ( ) // TagResources invokes the ecs.TagResources API synchronously -// api document: https://help.aliyun.com/api/ecs/tagresources.html func (client *Client) TagResources(request *TagResourcesRequest) (response *TagResourcesResponse, err error) { response = CreateTagResourcesResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) TagResources(request *TagResourcesRequest) (response *TagR } // TagResourcesWithChan invokes the ecs.TagResources API asynchronously -// api document: https://help.aliyun.com/api/ecs/tagresources.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) TagResourcesWithChan(request *TagResourcesRequest) (<-chan *TagResourcesResponse, <-chan error) { responseChan := make(chan *TagResourcesResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) TagResourcesWithChan(request *TagResourcesRequest) (<-chan } // TagResourcesWithCallback invokes the ecs.TagResources API asynchronously -// api document: https://help.aliyun.com/api/ecs/tagresources.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) TagResourcesWithCallback(request *TagResourcesRequest, callback func(response *TagResourcesResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -102,6 +97,7 @@ func CreateTagResourcesRequest() (request *TagResourcesRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "TagResources", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/terminate_physical_connection.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/terminate_physical_connection.go index f9ea06fc..31cdc918 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/terminate_physical_connection.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/terminate_physical_connection.go @@ -21,7 +21,6 @@ import ( ) // TerminatePhysicalConnection invokes the ecs.TerminatePhysicalConnection API synchronously -// api document: https://help.aliyun.com/api/ecs/terminatephysicalconnection.html func (client *Client) TerminatePhysicalConnection(request *TerminatePhysicalConnectionRequest) (response *TerminatePhysicalConnectionResponse, err error) { response = CreateTerminatePhysicalConnectionResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) TerminatePhysicalConnection(request *TerminatePhysicalConn } // TerminatePhysicalConnectionWithChan invokes the ecs.TerminatePhysicalConnection API asynchronously -// api document: https://help.aliyun.com/api/ecs/terminatephysicalconnection.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) TerminatePhysicalConnectionWithChan(request *TerminatePhysicalConnectionRequest) (<-chan *TerminatePhysicalConnectionResponse, <-chan error) { responseChan := make(chan *TerminatePhysicalConnectionResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) TerminatePhysicalConnectionWithChan(request *TerminatePhys } // TerminatePhysicalConnectionWithCallback invokes the ecs.TerminatePhysicalConnection API asynchronously -// api document: https://help.aliyun.com/api/ecs/terminatephysicalconnection.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) TerminatePhysicalConnectionWithCallback(request *TerminatePhysicalConnectionRequest, callback func(response *TerminatePhysicalConnectionResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,12 +72,12 @@ func (client *Client) TerminatePhysicalConnectionWithCallback(request *Terminate type TerminatePhysicalConnectionRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` ClientToken string `position:"Query" name:"ClientToken"` - PhysicalConnectionId string `position:"Query" name:"PhysicalConnectionId"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` UserCidr string `position:"Query" name:"UserCidr"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PhysicalConnectionId string `position:"Query" name:"PhysicalConnectionId"` } // TerminatePhysicalConnectionResponse is the response struct for api TerminatePhysicalConnection @@ -97,6 +92,7 @@ func CreateTerminatePhysicalConnectionRequest() (request *TerminatePhysicalConne RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "TerminatePhysicalConnection", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/terminate_virtual_border_router.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/terminate_virtual_border_router.go index 51dd360b..c3dcbea2 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/terminate_virtual_border_router.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/terminate_virtual_border_router.go @@ -21,7 +21,6 @@ import ( ) // TerminateVirtualBorderRouter invokes the ecs.TerminateVirtualBorderRouter API synchronously -// api document: https://help.aliyun.com/api/ecs/terminatevirtualborderrouter.html func (client *Client) TerminateVirtualBorderRouter(request *TerminateVirtualBorderRouterRequest) (response *TerminateVirtualBorderRouterResponse, err error) { response = CreateTerminateVirtualBorderRouterResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) TerminateVirtualBorderRouter(request *TerminateVirtualBord } // TerminateVirtualBorderRouterWithChan invokes the ecs.TerminateVirtualBorderRouter API asynchronously -// api document: https://help.aliyun.com/api/ecs/terminatevirtualborderrouter.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) TerminateVirtualBorderRouterWithChan(request *TerminateVirtualBorderRouterRequest) (<-chan *TerminateVirtualBorderRouterResponse, <-chan error) { responseChan := make(chan *TerminateVirtualBorderRouterResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) TerminateVirtualBorderRouterWithChan(request *TerminateVir } // TerminateVirtualBorderRouterWithCallback invokes the ecs.TerminateVirtualBorderRouter API asynchronously -// api document: https://help.aliyun.com/api/ecs/terminatevirtualborderrouter.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) TerminateVirtualBorderRouterWithCallback(request *TerminateVirtualBorderRouterRequest, callback func(response *TerminateVirtualBorderRouterResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,11 +72,11 @@ func (client *Client) TerminateVirtualBorderRouterWithCallback(request *Terminat type TerminateVirtualBorderRouterRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` ClientToken string `position:"Query" name:"ClientToken"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - UserCidr string `position:"Query" name:"UserCidr"` VbrId string `position:"Query" name:"VbrId"` + UserCidr string `position:"Query" name:"UserCidr"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` } @@ -97,6 +92,7 @@ func CreateTerminateVirtualBorderRouterRequest() (request *TerminateVirtualBorde RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "TerminateVirtualBorderRouter", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unassign_ipv6_addresses.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unassign_ipv6_addresses.go index 7f3cdcc3..6539be0e 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unassign_ipv6_addresses.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unassign_ipv6_addresses.go @@ -21,7 +21,6 @@ import ( ) // UnassignIpv6Addresses invokes the ecs.UnassignIpv6Addresses API synchronously -// api document: https://help.aliyun.com/api/ecs/unassignipv6addresses.html func (client *Client) UnassignIpv6Addresses(request *UnassignIpv6AddressesRequest) (response *UnassignIpv6AddressesResponse, err error) { response = CreateUnassignIpv6AddressesResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) UnassignIpv6Addresses(request *UnassignIpv6AddressesReques } // UnassignIpv6AddressesWithChan invokes the ecs.UnassignIpv6Addresses API asynchronously -// api document: https://help.aliyun.com/api/ecs/unassignipv6addresses.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) UnassignIpv6AddressesWithChan(request *UnassignIpv6AddressesRequest) (<-chan *UnassignIpv6AddressesResponse, <-chan error) { responseChan := make(chan *UnassignIpv6AddressesResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) UnassignIpv6AddressesWithChan(request *UnassignIpv6Address } // UnassignIpv6AddressesWithCallback invokes the ecs.UnassignIpv6Addresses API asynchronously -// api document: https://help.aliyun.com/api/ecs/unassignipv6addresses.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) UnassignIpv6AddressesWithCallback(request *UnassignIpv6AddressesRequest, callback func(response *UnassignIpv6AddressesResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,6 +72,7 @@ func (client *Client) UnassignIpv6AddressesWithCallback(request *UnassignIpv6Add type UnassignIpv6AddressesRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Ipv6Prefix *[]string `position:"Query" name:"Ipv6Prefix" type:"Repeated"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` @@ -96,6 +92,7 @@ func CreateUnassignIpv6AddressesRequest() (request *UnassignIpv6AddressesRequest RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "UnassignIpv6Addresses", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unassign_private_ip_addresses.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unassign_private_ip_addresses.go index 91f8a10d..03971940 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unassign_private_ip_addresses.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unassign_private_ip_addresses.go @@ -21,7 +21,6 @@ import ( ) // UnassignPrivateIpAddresses invokes the ecs.UnassignPrivateIpAddresses API synchronously -// api document: https://help.aliyun.com/api/ecs/unassignprivateipaddresses.html func (client *Client) UnassignPrivateIpAddresses(request *UnassignPrivateIpAddressesRequest) (response *UnassignPrivateIpAddressesResponse, err error) { response = CreateUnassignPrivateIpAddressesResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) UnassignPrivateIpAddresses(request *UnassignPrivateIpAddre } // UnassignPrivateIpAddressesWithChan invokes the ecs.UnassignPrivateIpAddresses API asynchronously -// api document: https://help.aliyun.com/api/ecs/unassignprivateipaddresses.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) UnassignPrivateIpAddressesWithChan(request *UnassignPrivateIpAddressesRequest) (<-chan *UnassignPrivateIpAddressesResponse, <-chan error) { responseChan := make(chan *UnassignPrivateIpAddressesResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) UnassignPrivateIpAddressesWithChan(request *UnassignPrivat } // UnassignPrivateIpAddressesWithCallback invokes the ecs.UnassignPrivateIpAddresses API asynchronously -// api document: https://help.aliyun.com/api/ecs/unassignprivateipaddresses.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) UnassignPrivateIpAddressesWithCallback(request *UnassignPrivateIpAddressesRequest, callback func(response *UnassignPrivateIpAddressesResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,6 +72,7 @@ func (client *Client) UnassignPrivateIpAddressesWithCallback(request *UnassignPr type UnassignPrivateIpAddressesRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Ipv4Prefix *[]string `position:"Query" name:"Ipv4Prefix" type:"Repeated"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` @@ -96,6 +92,7 @@ func CreateUnassignPrivateIpAddressesRequest() (request *UnassignPrivateIpAddres RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "UnassignPrivateIpAddresses", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unassociate_eip_address.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unassociate_eip_address.go index f44a4967..87392c99 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unassociate_eip_address.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unassociate_eip_address.go @@ -21,7 +21,6 @@ import ( ) // UnassociateEipAddress invokes the ecs.UnassociateEipAddress API synchronously -// api document: https://help.aliyun.com/api/ecs/unassociateeipaddress.html func (client *Client) UnassociateEipAddress(request *UnassociateEipAddressRequest) (response *UnassociateEipAddressResponse, err error) { response = CreateUnassociateEipAddressResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) UnassociateEipAddress(request *UnassociateEipAddressReques } // UnassociateEipAddressWithChan invokes the ecs.UnassociateEipAddress API asynchronously -// api document: https://help.aliyun.com/api/ecs/unassociateeipaddress.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) UnassociateEipAddressWithChan(request *UnassociateEipAddressRequest) (<-chan *UnassociateEipAddressResponse, <-chan error) { responseChan := make(chan *UnassociateEipAddressResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) UnassociateEipAddressWithChan(request *UnassociateEipAddre } // UnassociateEipAddressWithCallback invokes the ecs.UnassociateEipAddress API asynchronously -// api document: https://help.aliyun.com/api/ecs/unassociateeipaddress.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) UnassociateEipAddressWithCallback(request *UnassociateEipAddressRequest, callback func(response *UnassociateEipAddressResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,12 +72,12 @@ func (client *Client) UnassociateEipAddressWithCallback(request *UnassociateEipA type UnassociateEipAddressRequest struct { *requests.RpcRequest ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` + AllocationId string `position:"Query" name:"AllocationId"` + InstanceType string `position:"Query" name:"InstanceType"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - InstanceType string `position:"Query" name:"InstanceType"` - AllocationId string `position:"Query" name:"AllocationId"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` } // UnassociateEipAddressResponse is the response struct for api UnassociateEipAddress @@ -97,6 +92,7 @@ func CreateUnassociateEipAddressRequest() (request *UnassociateEipAddressRequest RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "UnassociateEipAddress", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unassociate_ha_vip.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unassociate_ha_vip.go index cffa25ab..7f821648 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unassociate_ha_vip.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/unassociate_ha_vip.go @@ -21,7 +21,6 @@ import ( ) // UnassociateHaVip invokes the ecs.UnassociateHaVip API synchronously -// api document: https://help.aliyun.com/api/ecs/unassociatehavip.html func (client *Client) UnassociateHaVip(request *UnassociateHaVipRequest) (response *UnassociateHaVipResponse, err error) { response = CreateUnassociateHaVipResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) UnassociateHaVip(request *UnassociateHaVipRequest) (respon } // UnassociateHaVipWithChan invokes the ecs.UnassociateHaVip API asynchronously -// api document: https://help.aliyun.com/api/ecs/unassociatehavip.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) UnassociateHaVipWithChan(request *UnassociateHaVipRequest) (<-chan *UnassociateHaVipResponse, <-chan error) { responseChan := make(chan *UnassociateHaVipResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) UnassociateHaVipWithChan(request *UnassociateHaVipRequest) } // UnassociateHaVipWithCallback invokes the ecs.UnassociateHaVip API asynchronously -// api document: https://help.aliyun.com/api/ecs/unassociatehavip.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) UnassociateHaVipWithCallback(request *UnassociateHaVipRequest, callback func(response *UnassociateHaVipResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,14 +71,14 @@ func (client *Client) UnassociateHaVipWithCallback(request *UnassociateHaVipRequ // UnassociateHaVipRequest is the request struct for api UnassociateHaVip type UnassociateHaVipRequest struct { *requests.RpcRequest - HaVipId string `position:"Query" name:"HaVipId"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - InstanceId string `position:"Query" name:"InstanceId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` ClientToken string `position:"Query" name:"ClientToken"` + HaVipId string `position:"Query" name:"HaVipId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - Force string `position:"Query" name:"Force"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` + InstanceId string `position:"Query" name:"InstanceId"` + Force string `position:"Query" name:"Force"` } // UnassociateHaVipResponse is the response struct for api UnassociateHaVip @@ -98,6 +93,7 @@ func CreateUnassociateHaVipRequest() (request *UnassociateHaVipRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "UnassociateHaVip", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/untag_resources.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/untag_resources.go index 3c83f26b..7daf4c3b 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/untag_resources.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/ecs/untag_resources.go @@ -21,7 +21,6 @@ import ( ) // UntagResources invokes the ecs.UntagResources API synchronously -// api document: https://help.aliyun.com/api/ecs/untagresources.html func (client *Client) UntagResources(request *UntagResourcesRequest) (response *UntagResourcesResponse, err error) { response = CreateUntagResourcesResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) UntagResources(request *UntagResourcesRequest) (response * } // UntagResourcesWithChan invokes the ecs.UntagResources API asynchronously -// api document: https://help.aliyun.com/api/ecs/untagresources.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) UntagResourcesWithChan(request *UntagResourcesRequest) (<-chan *UntagResourcesResponse, <-chan error) { responseChan := make(chan *UntagResourcesResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) UntagResourcesWithChan(request *UntagResourcesRequest) (<- } // UntagResourcesWithCallback invokes the ecs.UntagResources API asynchronously -// api document: https://help.aliyun.com/api/ecs/untagresources.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) UntagResourcesWithCallback(request *UntagResourcesRequest, callback func(response *UntagResourcesResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -98,6 +93,7 @@ func CreateUntagResourcesRequest() (request *UntagResourcesRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Ecs", "2014-05-26", "UntagResources", "ecs", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/add_access_control_list_entry.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/add_access_control_list_entry.go index 95c10a20..067d4777 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/add_access_control_list_entry.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/add_access_control_list_entry.go @@ -21,7 +21,6 @@ import ( ) // AddAccessControlListEntry invokes the slb.AddAccessControlListEntry API synchronously -// api document: https://help.aliyun.com/api/slb/addaccesscontrollistentry.html func (client *Client) AddAccessControlListEntry(request *AddAccessControlListEntryRequest) (response *AddAccessControlListEntryResponse, err error) { response = CreateAddAccessControlListEntryResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) AddAccessControlListEntry(request *AddAccessControlListEnt } // AddAccessControlListEntryWithChan invokes the slb.AddAccessControlListEntry API asynchronously -// api document: https://help.aliyun.com/api/slb/addaccesscontrollistentry.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) AddAccessControlListEntryWithChan(request *AddAccessControlListEntryRequest) (<-chan *AddAccessControlListEntryResponse, <-chan error) { responseChan := make(chan *AddAccessControlListEntryResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) AddAccessControlListEntryWithChan(request *AddAccessContro } // AddAccessControlListEntryWithCallback invokes the slb.AddAccessControlListEntry API asynchronously -// api document: https://help.aliyun.com/api/slb/addaccesscontrollistentry.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) AddAccessControlListEntryWithCallback(request *AddAccessControlListEntryRequest, callback func(response *AddAccessControlListEntryResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,11 +72,11 @@ func (client *Client) AddAccessControlListEntryWithCallback(request *AddAccessCo type AddAccessControlListEntryRequest struct { *requests.RpcRequest AccessKeyId string `position:"Query" name:"access_key_id"` - AclId string `position:"Query" name:"AclId"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + AclEntrys string `position:"Query" name:"AclEntrys"` + AclId string `position:"Query" name:"AclId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - AclEntrys string `position:"Query" name:"AclEntrys"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` Tags string `position:"Query" name:"Tags"` } @@ -98,6 +93,7 @@ func CreateAddAccessControlListEntryRequest() (request *AddAccessControlListEntr RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "AddAccessControlListEntry", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/add_backend_servers.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/add_backend_servers.go index 98784e07..11546c2d 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/add_backend_servers.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/add_backend_servers.go @@ -21,7 +21,6 @@ import ( ) // AddBackendServers invokes the slb.AddBackendServers API synchronously -// api document: https://help.aliyun.com/api/slb/addbackendservers.html func (client *Client) AddBackendServers(request *AddBackendServersRequest) (response *AddBackendServersResponse, err error) { response = CreateAddBackendServersResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) AddBackendServers(request *AddBackendServersRequest) (resp } // AddBackendServersWithChan invokes the slb.AddBackendServers API asynchronously -// api document: https://help.aliyun.com/api/slb/addbackendservers.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) AddBackendServersWithChan(request *AddBackendServersRequest) (<-chan *AddBackendServersResponse, <-chan error) { responseChan := make(chan *AddBackendServersResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) AddBackendServersWithChan(request *AddBackendServersReques } // AddBackendServersWithCallback invokes the slb.AddBackendServers API asynchronously -// api document: https://help.aliyun.com/api/slb/addbackendservers.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) AddBackendServersWithCallback(request *AddBackendServersRequest, callback func(response *AddBackendServersResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -78,19 +73,19 @@ type AddBackendServersRequest struct { *requests.RpcRequest AccessKeyId string `position:"Query" name:"access_key_id"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + BackendServers string `position:"Query" name:"BackendServers"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - BackendServers string `position:"Query" name:"BackendServers"` Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` } // AddBackendServersResponse is the response struct for api AddBackendServers type AddBackendServersResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` + RequestId string `json:"RequestId" xml:"RequestId"` BackendServers BackendServersInAddBackendServers `json:"BackendServers" xml:"BackendServers"` } @@ -100,6 +95,7 @@ func CreateAddBackendServersRequest() (request *AddBackendServersRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "AddBackendServers", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/add_listener_white_list_item.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/add_listener_white_list_item.go index 703e8881..e1517218 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/add_listener_white_list_item.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/add_listener_white_list_item.go @@ -21,7 +21,6 @@ import ( ) // AddListenerWhiteListItem invokes the slb.AddListenerWhiteListItem API synchronously -// api document: https://help.aliyun.com/api/slb/addlistenerwhitelistitem.html func (client *Client) AddListenerWhiteListItem(request *AddListenerWhiteListItemRequest) (response *AddListenerWhiteListItemResponse, err error) { response = CreateAddListenerWhiteListItemResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) AddListenerWhiteListItem(request *AddListenerWhiteListItem } // AddListenerWhiteListItemWithChan invokes the slb.AddListenerWhiteListItem API asynchronously -// api document: https://help.aliyun.com/api/slb/addlistenerwhitelistitem.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) AddListenerWhiteListItemWithChan(request *AddListenerWhiteListItemRequest) (<-chan *AddListenerWhiteListItemResponse, <-chan error) { responseChan := make(chan *AddListenerWhiteListItemResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) AddListenerWhiteListItemWithChan(request *AddListenerWhite } // AddListenerWhiteListItemWithCallback invokes the slb.AddListenerWhiteListItem API asynchronously -// api document: https://help.aliyun.com/api/slb/addlistenerwhitelistitem.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) AddListenerWhiteListItemWithCallback(request *AddListenerWhiteListItemRequest, callback func(response *AddListenerWhiteListItemResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -78,14 +73,14 @@ type AddListenerWhiteListItemRequest struct { *requests.RpcRequest AccessKeyId string `position:"Query" name:"access_key_id"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` SourceItems string `position:"Query" name:"SourceItems"` + ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` ListenerProtocol string `position:"Query" name:"ListenerProtocol"` Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` } // AddListenerWhiteListItemResponse is the response struct for api AddListenerWhiteListItem @@ -100,6 +95,7 @@ func CreateAddListenerWhiteListItemRequest() (request *AddListenerWhiteListItemR RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "AddListenerWhiteListItem", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/add_tags.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/add_tags.go index c495708b..54ca44bc 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/add_tags.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/add_tags.go @@ -21,7 +21,6 @@ import ( ) // AddTags invokes the slb.AddTags API synchronously -// api document: https://help.aliyun.com/api/slb/addtags.html func (client *Client) AddTags(request *AddTagsRequest) (response *AddTagsResponse, err error) { response = CreateAddTagsResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) AddTags(request *AddTagsRequest) (response *AddTagsRespons } // AddTagsWithChan invokes the slb.AddTags API asynchronously -// api document: https://help.aliyun.com/api/slb/addtags.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) AddTagsWithChan(request *AddTagsRequest) (<-chan *AddTagsResponse, <-chan error) { responseChan := make(chan *AddTagsResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) AddTagsWithChan(request *AddTagsRequest) (<-chan *AddTagsR } // AddTagsWithCallback invokes the slb.AddTags API asynchronously -// api document: https://help.aliyun.com/api/slb/addtags.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) AddTagsWithCallback(request *AddTagsRequest, callback func(response *AddTagsResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -78,11 +73,11 @@ type AddTagsRequest struct { *requests.RpcRequest AccessKeyId string `position:"Query" name:"access_key_id"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` } // AddTagsResponse is the response struct for api AddTags @@ -97,6 +92,7 @@ func CreateAddTagsRequest() (request *AddTagsRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "AddTags", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/add_v_server_group_backend_servers.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/add_v_server_group_backend_servers.go index d56a3380..a5ab4a67 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/add_v_server_group_backend_servers.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/add_v_server_group_backend_servers.go @@ -21,7 +21,6 @@ import ( ) // AddVServerGroupBackendServers invokes the slb.AddVServerGroupBackendServers API synchronously -// api document: https://help.aliyun.com/api/slb/addvservergroupbackendservers.html func (client *Client) AddVServerGroupBackendServers(request *AddVServerGroupBackendServersRequest) (response *AddVServerGroupBackendServersResponse, err error) { response = CreateAddVServerGroupBackendServersResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) AddVServerGroupBackendServers(request *AddVServerGroupBack } // AddVServerGroupBackendServersWithChan invokes the slb.AddVServerGroupBackendServers API asynchronously -// api document: https://help.aliyun.com/api/slb/addvservergroupbackendservers.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) AddVServerGroupBackendServersWithChan(request *AddVServerGroupBackendServersRequest) (<-chan *AddVServerGroupBackendServersResponse, <-chan error) { responseChan := make(chan *AddVServerGroupBackendServersResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) AddVServerGroupBackendServersWithChan(request *AddVServerG } // AddVServerGroupBackendServersWithCallback invokes the slb.AddVServerGroupBackendServers API asynchronously -// api document: https://help.aliyun.com/api/slb/addvservergroupbackendservers.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) AddVServerGroupBackendServersWithCallback(request *AddVServerGroupBackendServersRequest, callback func(response *AddVServerGroupBackendServersResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,20 +72,20 @@ func (client *Client) AddVServerGroupBackendServersWithCallback(request *AddVSer type AddVServerGroupBackendServersRequest struct { *requests.RpcRequest AccessKeyId string `position:"Query" name:"access_key_id"` - VServerGroupId string `position:"Query" name:"VServerGroupId"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + BackendServers string `position:"Query" name:"BackendServers"` + VServerGroupId string `position:"Query" name:"VServerGroupId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - BackendServers string `position:"Query" name:"BackendServers"` Tags string `position:"Query" name:"Tags"` } // AddVServerGroupBackendServersResponse is the response struct for api AddVServerGroupBackendServers type AddVServerGroupBackendServersResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` + RequestId string `json:"RequestId" xml:"RequestId"` BackendServers BackendServersInAddVServerGroupBackendServers `json:"BackendServers" xml:"BackendServers"` } @@ -100,6 +95,7 @@ func CreateAddVServerGroupBackendServersRequest() (request *AddVServerGroupBacke RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "AddVServerGroupBackendServers", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_access_control_list.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_access_control_list.go index f5e69800..c30b4ee5 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_access_control_list.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_access_control_list.go @@ -21,7 +21,6 @@ import ( ) // CreateAccessControlList invokes the slb.CreateAccessControlList API synchronously -// api document: https://help.aliyun.com/api/slb/createaccesscontrollist.html func (client *Client) CreateAccessControlList(request *CreateAccessControlListRequest) (response *CreateAccessControlListResponse, err error) { response = CreateCreateAccessControlListResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) CreateAccessControlList(request *CreateAccessControlListRe } // CreateAccessControlListWithChan invokes the slb.CreateAccessControlList API asynchronously -// api document: https://help.aliyun.com/api/slb/createaccesscontrollist.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateAccessControlListWithChan(request *CreateAccessControlListRequest) (<-chan *CreateAccessControlListResponse, <-chan error) { responseChan := make(chan *CreateAccessControlListResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) CreateAccessControlListWithChan(request *CreateAccessContr } // CreateAccessControlListWithCallback invokes the slb.CreateAccessControlList API asynchronously -// api document: https://help.aliyun.com/api/slb/createaccesscontrollist.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateAccessControlListWithCallback(request *CreateAccessControlListRequest, callback func(response *CreateAccessControlListResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,22 +71,29 @@ func (client *Client) CreateAccessControlListWithCallback(request *CreateAccessC // CreateAccessControlListRequest is the request struct for api CreateAccessControlList type CreateAccessControlListRequest struct { *requests.RpcRequest - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - AclName string `position:"Query" name:"AclName"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - AddressIPVersion string `position:"Query" name:"AddressIPVersion"` - Tags string `position:"Query" name:"Tags"` + AccessKeyId string `position:"Query" name:"access_key_id"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + AclName string `position:"Query" name:"AclName"` + AddressIPVersion string `position:"Query" name:"AddressIPVersion"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + Tag *[]CreateAccessControlListTag `position:"Query" name:"Tag" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Tags string `position:"Query" name:"Tags"` +} + +// CreateAccessControlListTag is a repeated param struct in CreateAccessControlListRequest +type CreateAccessControlListTag struct { + Value string `name:"Value"` + Key string `name:"Key"` } // CreateAccessControlListResponse is the response struct for api CreateAccessControlList type CreateAccessControlListResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` AclId string `json:"AclId" xml:"AclId"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateCreateAccessControlListRequest creates a request to invoke CreateAccessControlList API @@ -100,6 +102,7 @@ func CreateCreateAccessControlListRequest() (request *CreateAccessControlListReq RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "CreateAccessControlList", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_domain_extension.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_domain_extension.go index 2fd19710..33fd781d 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_domain_extension.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_domain_extension.go @@ -21,7 +21,6 @@ import ( ) // CreateDomainExtension invokes the slb.CreateDomainExtension API synchronously -// api document: https://help.aliyun.com/api/slb/createdomainextension.html func (client *Client) CreateDomainExtension(request *CreateDomainExtensionRequest) (response *CreateDomainExtensionResponse, err error) { response = CreateCreateDomainExtensionResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) CreateDomainExtension(request *CreateDomainExtensionReques } // CreateDomainExtensionWithChan invokes the slb.CreateDomainExtension API asynchronously -// api document: https://help.aliyun.com/api/slb/createdomainextension.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateDomainExtensionWithChan(request *CreateDomainExtensionRequest) (<-chan *CreateDomainExtensionResponse, <-chan error) { responseChan := make(chan *CreateDomainExtensionResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) CreateDomainExtensionWithChan(request *CreateDomainExtensi } // CreateDomainExtensionWithCallback invokes the slb.CreateDomainExtension API asynchronously -// api document: https://help.aliyun.com/api/slb/createdomainextension.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateDomainExtensionWithCallback(request *CreateDomainExtensionRequest, callback func(response *CreateDomainExtensionResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,23 +71,32 @@ func (client *Client) CreateDomainExtensionWithCallback(request *CreateDomainExt // CreateDomainExtensionRequest is the request struct for api CreateDomainExtension type CreateDomainExtensionRequest struct { *requests.RpcRequest - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - Domain string `position:"Query" name:"Domain"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ServerCertificateId string `position:"Query" name:"ServerCertificateId"` - Tags string `position:"Query" name:"Tags"` + AccessKeyId string `position:"Query" name:"access_key_id"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ServerCertificate *[]CreateDomainExtensionServerCertificate `position:"Query" name:"ServerCertificate" type:"Repeated"` + ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + CertificateId *[]string `position:"Query" name:"CertificateId" type:"Repeated"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ServerCertificateId string `position:"Query" name:"ServerCertificateId"` + Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + Domain string `position:"Query" name:"Domain"` +} + +// CreateDomainExtensionServerCertificate is a repeated param struct in CreateDomainExtensionRequest +type CreateDomainExtensionServerCertificate struct { + BindingType string `name:"BindingType"` + CertificateId string `name:"CertificateId"` + StandardType string `name:"StandardType"` } // CreateDomainExtensionResponse is the response struct for api CreateDomainExtension type CreateDomainExtensionResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` ListenerPort int `json:"ListenerPort" xml:"ListenerPort"` + RequestId string `json:"RequestId" xml:"RequestId"` DomainExtensionId string `json:"DomainExtensionId" xml:"DomainExtensionId"` } @@ -102,6 +106,7 @@ func CreateCreateDomainExtensionRequest() (request *CreateDomainExtensionRequest RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "CreateDomainExtension", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_load_balancer.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_load_balancer.go index 71afec86..dfbde34c 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_load_balancer.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_load_balancer.go @@ -21,7 +21,6 @@ import ( ) // CreateLoadBalancer invokes the slb.CreateLoadBalancer API synchronously -// api document: https://help.aliyun.com/api/slb/createloadbalancer.html func (client *Client) CreateLoadBalancer(request *CreateLoadBalancerRequest) (response *CreateLoadBalancerResponse, err error) { response = CreateCreateLoadBalancerResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) CreateLoadBalancer(request *CreateLoadBalancerRequest) (re } // CreateLoadBalancerWithChan invokes the slb.CreateLoadBalancer API asynchronously -// api document: https://help.aliyun.com/api/slb/createloadbalancer.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateLoadBalancerWithChan(request *CreateLoadBalancerRequest) (<-chan *CreateLoadBalancerResponse, <-chan error) { responseChan := make(chan *CreateLoadBalancerResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) CreateLoadBalancerWithChan(request *CreateLoadBalancerRequ } // CreateLoadBalancerWithCallback invokes the slb.CreateLoadBalancer API asynchronously -// api document: https://help.aliyun.com/api/slb/createloadbalancer.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateLoadBalancerWithCallback(request *CreateLoadBalancerRequest, callback func(response *CreateLoadBalancerResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,47 +71,62 @@ func (client *Client) CreateLoadBalancerWithCallback(request *CreateLoadBalancer // CreateLoadBalancerRequest is the request struct for api CreateLoadBalancer type CreateLoadBalancerRequest struct { *requests.RpcRequest - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ClientToken string `position:"Query" name:"ClientToken"` - AddressIPVersion string `position:"Query" name:"AddressIPVersion"` - MasterZoneId string `position:"Query" name:"MasterZoneId"` - Duration requests.Integer `position:"Query" name:"Duration"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - LoadBalancerName string `position:"Query" name:"LoadBalancerName"` - AddressType string `position:"Query" name:"AddressType"` - SlaveZoneId string `position:"Query" name:"SlaveZoneId"` - DeleteProtection string `position:"Query" name:"DeleteProtection"` - LoadBalancerSpec string `position:"Query" name:"LoadBalancerSpec"` - AutoPay requests.Boolean `position:"Query" name:"AutoPay"` - Address string `position:"Query" name:"Address"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` - VSwitchId string `position:"Query" name:"VSwitchId"` - EnableVpcVipFlow string `position:"Query" name:"EnableVpcVipFlow"` - InternetChargeType string `position:"Query" name:"InternetChargeType"` - VpcId string `position:"Query" name:"VpcId"` - PayType string `position:"Query" name:"PayType"` - PricingCycle string `position:"Query" name:"PricingCycle"` - Ratio requests.Integer `position:"Query" name:"Ratio"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + AddressIPVersion string `position:"Query" name:"AddressIPVersion"` + MasterZoneId string `position:"Query" name:"MasterZoneId"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + LoadBalancerName string `position:"Query" name:"LoadBalancerName"` + SlaveZoneId string `position:"Query" name:"SlaveZoneId"` + Tag *[]CreateLoadBalancerTag `position:"Query" name:"Tag" type:"Repeated"` + LoadBalancerSpec string `position:"Query" name:"LoadBalancerSpec"` + AutoRenewPeriod requests.Integer `position:"Query" name:"AutoRenewPeriod"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Tags string `position:"Query" name:"Tags"` + VSwitchId string `position:"Query" name:"VSwitchId"` + EnableVpcVipFlow string `position:"Query" name:"EnableVpcVipFlow"` + AutoRenew requests.Boolean `position:"Query" name:"AutoRenew"` + InternetChargeType string `position:"Query" name:"InternetChargeType"` + PricingCycle string `position:"Query" name:"PricingCycle"` + AccessKeyId string `position:"Query" name:"access_key_id"` + ModificationProtectionReason string `position:"Query" name:"ModificationProtectionReason"` + SupportPrivateLink requests.Boolean `position:"Query" name:"SupportPrivateLink"` + ClientToken string `position:"Query" name:"ClientToken"` + CloudType string `position:"Query" name:"CloudType"` + Duration requests.Integer `position:"Query" name:"Duration"` + AddressType string `position:"Query" name:"AddressType"` + InstanceChargeType string `position:"Query" name:"InstanceChargeType"` + DeleteProtection string `position:"Query" name:"DeleteProtection"` + AutoPay requests.Boolean `position:"Query" name:"AutoPay"` + Address string `position:"Query" name:"Address"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ModificationProtectionStatus string `position:"Query" name:"ModificationProtectionStatus"` + InstanceListenerType string `position:"Query" name:"InstanceListenerType"` + VpcId string `position:"Query" name:"VpcId"` + PayType string `position:"Query" name:"PayType"` + Ratio requests.Integer `position:"Query" name:"Ratio"` +} + +// CreateLoadBalancerTag is a repeated param struct in CreateLoadBalancerRequest +type CreateLoadBalancerTag struct { + Value string `name:"Value"` + Key string `name:"Key"` } // CreateLoadBalancerResponse is the response struct for api CreateLoadBalancer type CreateLoadBalancerResponse struct { *responses.BaseResponse + VpcId string `json:"VpcId" xml:"VpcId"` + AddressIPVersion string `json:"AddressIPVersion" xml:"AddressIPVersion"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` RequestId string `json:"RequestId" xml:"RequestId"` + LoadBalancerName string `json:"LoadBalancerName" xml:"LoadBalancerName"` LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` Address string `json:"Address" xml:"Address"` - LoadBalancerName string `json:"LoadBalancerName" xml:"LoadBalancerName"` - VpcId string `json:"VpcId" xml:"VpcId"` - VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` NetworkType string `json:"NetworkType" xml:"NetworkType"` OrderId int64 `json:"OrderId" xml:"OrderId"` - AddressIPVersion string `json:"AddressIPVersion" xml:"AddressIPVersion"` } // CreateCreateLoadBalancerRequest creates a request to invoke CreateLoadBalancer API @@ -125,6 +135,7 @@ func CreateCreateLoadBalancerRequest() (request *CreateLoadBalancerRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "CreateLoadBalancer", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_load_balancer_http_listener.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_load_balancer_http_listener.go index ba4c296c..bc2f333c 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_load_balancer_http_listener.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_load_balancer_http_listener.go @@ -21,7 +21,6 @@ import ( ) // CreateLoadBalancerHTTPListener invokes the slb.CreateLoadBalancerHTTPListener API synchronously -// api document: https://help.aliyun.com/api/slb/createloadbalancerhttplistener.html func (client *Client) CreateLoadBalancerHTTPListener(request *CreateLoadBalancerHTTPListenerRequest) (response *CreateLoadBalancerHTTPListenerResponse, err error) { response = CreateCreateLoadBalancerHTTPListenerResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) CreateLoadBalancerHTTPListener(request *CreateLoadBalancer } // CreateLoadBalancerHTTPListenerWithChan invokes the slb.CreateLoadBalancerHTTPListener API asynchronously -// api document: https://help.aliyun.com/api/slb/createloadbalancerhttplistener.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateLoadBalancerHTTPListenerWithChan(request *CreateLoadBalancerHTTPListenerRequest) (<-chan *CreateLoadBalancerHTTPListenerResponse, <-chan error) { responseChan := make(chan *CreateLoadBalancerHTTPListenerResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) CreateLoadBalancerHTTPListenerWithChan(request *CreateLoad } // CreateLoadBalancerHTTPListenerWithCallback invokes the slb.CreateLoadBalancerHTTPListener API asynchronously -// api document: https://help.aliyun.com/api/slb/createloadbalancerhttplistener.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateLoadBalancerHTTPListenerWithCallback(request *CreateLoadBalancerHTTPListenerRequest, callback func(response *CreateLoadBalancerHTTPListenerResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,48 +71,59 @@ func (client *Client) CreateLoadBalancerHTTPListenerWithCallback(request *Create // CreateLoadBalancerHTTPListenerRequest is the request struct for api CreateLoadBalancerHTTPListener type CreateLoadBalancerHTTPListenerRequest struct { *requests.RpcRequest - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - HealthCheckTimeout requests.Integer `position:"Query" name:"HealthCheckTimeout"` - ListenerForward string `position:"Query" name:"ListenerForward"` - XForwardedFor string `position:"Query" name:"XForwardedFor"` - HealthCheckURI string `position:"Query" name:"HealthCheckURI"` - Description string `position:"Query" name:"Description"` - UnhealthyThreshold requests.Integer `position:"Query" name:"UnhealthyThreshold"` - HealthyThreshold requests.Integer `position:"Query" name:"HealthyThreshold"` - AclStatus string `position:"Query" name:"AclStatus"` - Scheduler string `position:"Query" name:"Scheduler"` - AclType string `position:"Query" name:"AclType"` - HealthCheck string `position:"Query" name:"HealthCheck"` - ForwardPort requests.Integer `position:"Query" name:"ForwardPort"` - MaxConnection requests.Integer `position:"Query" name:"MaxConnection"` - CookieTimeout requests.Integer `position:"Query" name:"CookieTimeout"` - StickySessionType string `position:"Query" name:"StickySessionType"` - VpcIds string `position:"Query" name:"VpcIds"` - VServerGroupId string `position:"Query" name:"VServerGroupId"` - AclId string `position:"Query" name:"AclId"` - ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` - Cookie string `position:"Query" name:"Cookie"` - HealthCheckType string `position:"Query" name:"HealthCheckType"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` - StickySession string `position:"Query" name:"StickySession"` - HealthCheckMethod string `position:"Query" name:"HealthCheckMethod"` - HealthCheckDomain string `position:"Query" name:"HealthCheckDomain"` - RequestTimeout requests.Integer `position:"Query" name:"RequestTimeout"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - Gzip string `position:"Query" name:"Gzip"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` - IdleTimeout requests.Integer `position:"Query" name:"IdleTimeout"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` - XForwardedForSLBIP string `position:"Query" name:"XForwardedFor_SLBIP"` - BackendServerPort requests.Integer `position:"Query" name:"BackendServerPort"` - HealthCheckInterval requests.Integer `position:"Query" name:"HealthCheckInterval"` - XForwardedForProto string `position:"Query" name:"XForwardedFor_proto"` - XForwardedForSLBID string `position:"Query" name:"XForwardedFor_SLBID"` - HealthCheckConnectPort requests.Integer `position:"Query" name:"HealthCheckConnectPort"` - HealthCheckHttpCode string `position:"Query" name:"HealthCheckHttpCode"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + HealthCheckTimeout requests.Integer `position:"Query" name:"HealthCheckTimeout"` + ListenerForward string `position:"Query" name:"ListenerForward"` + XForwardedFor string `position:"Query" name:"XForwardedFor"` + HealthCheckURI string `position:"Query" name:"HealthCheckURI"` + XForwardedForSLBPORT string `position:"Query" name:"XForwardedFor_SLBPORT"` + AclStatus string `position:"Query" name:"AclStatus"` + AclType string `position:"Query" name:"AclType"` + HealthCheck string `position:"Query" name:"HealthCheck"` + VpcIds string `position:"Query" name:"VpcIds"` + Tag *[]CreateLoadBalancerHTTPListenerTag `position:"Query" name:"Tag" type:"Repeated"` + VServerGroupId string `position:"Query" name:"VServerGroupId"` + AclId string `position:"Query" name:"AclId"` + ForwardCode requests.Integer `position:"Query" name:"ForwardCode"` + Cookie string `position:"Query" name:"Cookie"` + HealthCheckMethod string `position:"Query" name:"HealthCheckMethod"` + HealthCheckDomain string `position:"Query" name:"HealthCheckDomain"` + RequestTimeout requests.Integer `position:"Query" name:"RequestTimeout"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + XForwardedForSLBIP string `position:"Query" name:"XForwardedFor_SLBIP"` + BackendServerPort requests.Integer `position:"Query" name:"BackendServerPort"` + HealthCheckInterval requests.Integer `position:"Query" name:"HealthCheckInterval"` + XForwardedForSLBID string `position:"Query" name:"XForwardedFor_SLBID"` + HealthCheckHttpVersion string `position:"Query" name:"HealthCheckHttpVersion"` + AccessKeyId string `position:"Query" name:"access_key_id"` + XForwardedForClientSrcPort string `position:"Query" name:"XForwardedFor_ClientSrcPort"` + Description string `position:"Query" name:"Description"` + UnhealthyThreshold requests.Integer `position:"Query" name:"UnhealthyThreshold"` + HealthyThreshold requests.Integer `position:"Query" name:"HealthyThreshold"` + Scheduler string `position:"Query" name:"Scheduler"` + ForwardPort requests.Integer `position:"Query" name:"ForwardPort"` + MaxConnection requests.Integer `position:"Query" name:"MaxConnection"` + CookieTimeout requests.Integer `position:"Query" name:"CookieTimeout"` + StickySessionType string `position:"Query" name:"StickySessionType"` + ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` + HealthCheckType string `position:"Query" name:"HealthCheckType"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` + StickySession string `position:"Query" name:"StickySession"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Gzip string `position:"Query" name:"Gzip"` + IdleTimeout requests.Integer `position:"Query" name:"IdleTimeout"` + XForwardedForProto string `position:"Query" name:"XForwardedFor_proto"` + HealthCheckConnectPort requests.Integer `position:"Query" name:"HealthCheckConnectPort"` + HealthCheckHttpCode string `position:"Query" name:"HealthCheckHttpCode"` +} + +// CreateLoadBalancerHTTPListenerTag is a repeated param struct in CreateLoadBalancerHTTPListenerRequest +type CreateLoadBalancerHTTPListenerTag struct { + Value string `name:"Value"` + Key string `name:"Key"` } // CreateLoadBalancerHTTPListenerResponse is the response struct for api CreateLoadBalancerHTTPListener @@ -132,6 +138,7 @@ func CreateCreateLoadBalancerHTTPListenerRequest() (request *CreateLoadBalancerH RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "CreateLoadBalancerHTTPListener", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_load_balancer_https_listener.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_load_balancer_https_listener.go index 8d3842ab..24e88008 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_load_balancer_https_listener.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_load_balancer_https_listener.go @@ -21,7 +21,6 @@ import ( ) // CreateLoadBalancerHTTPSListener invokes the slb.CreateLoadBalancerHTTPSListener API synchronously -// api document: https://help.aliyun.com/api/slb/createloadbalancerhttpslistener.html func (client *Client) CreateLoadBalancerHTTPSListener(request *CreateLoadBalancerHTTPSListenerRequest) (response *CreateLoadBalancerHTTPSListenerResponse, err error) { response = CreateCreateLoadBalancerHTTPSListenerResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) CreateLoadBalancerHTTPSListener(request *CreateLoadBalance } // CreateLoadBalancerHTTPSListenerWithChan invokes the slb.CreateLoadBalancerHTTPSListener API asynchronously -// api document: https://help.aliyun.com/api/slb/createloadbalancerhttpslistener.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateLoadBalancerHTTPSListenerWithChan(request *CreateLoadBalancerHTTPSListenerRequest) (<-chan *CreateLoadBalancerHTTPSListenerResponse, <-chan error) { responseChan := make(chan *CreateLoadBalancerHTTPSListenerResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) CreateLoadBalancerHTTPSListenerWithChan(request *CreateLoa } // CreateLoadBalancerHTTPSListenerWithCallback invokes the slb.CreateLoadBalancerHTTPSListener API asynchronously -// api document: https://help.aliyun.com/api/slb/createloadbalancerhttpslistener.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateLoadBalancerHTTPSListenerWithCallback(request *CreateLoadBalancerHTTPSListenerRequest, callback func(response *CreateLoadBalancerHTTPSListenerResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,51 +71,77 @@ func (client *Client) CreateLoadBalancerHTTPSListenerWithCallback(request *Creat // CreateLoadBalancerHTTPSListenerRequest is the request struct for api CreateLoadBalancerHTTPSListener type CreateLoadBalancerHTTPSListenerRequest struct { *requests.RpcRequest - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - HealthCheckTimeout requests.Integer `position:"Query" name:"HealthCheckTimeout"` - XForwardedFor string `position:"Query" name:"XForwardedFor"` - HealthCheckURI string `position:"Query" name:"HealthCheckURI"` - Description string `position:"Query" name:"Description"` - UnhealthyThreshold requests.Integer `position:"Query" name:"UnhealthyThreshold"` - HealthyThreshold requests.Integer `position:"Query" name:"HealthyThreshold"` - AclStatus string `position:"Query" name:"AclStatus"` - Scheduler string `position:"Query" name:"Scheduler"` - AclType string `position:"Query" name:"AclType"` - HealthCheck string `position:"Query" name:"HealthCheck"` - MaxConnection requests.Integer `position:"Query" name:"MaxConnection"` - EnableHttp2 string `position:"Query" name:"EnableHttp2"` - CookieTimeout requests.Integer `position:"Query" name:"CookieTimeout"` - StickySessionType string `position:"Query" name:"StickySessionType"` - VpcIds string `position:"Query" name:"VpcIds"` - VServerGroupId string `position:"Query" name:"VServerGroupId"` - AclId string `position:"Query" name:"AclId"` - ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` - Cookie string `position:"Query" name:"Cookie"` - HealthCheckType string `position:"Query" name:"HealthCheckType"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` - StickySession string `position:"Query" name:"StickySession"` - HealthCheckMethod string `position:"Query" name:"HealthCheckMethod"` - HealthCheckDomain string `position:"Query" name:"HealthCheckDomain"` - RequestTimeout requests.Integer `position:"Query" name:"RequestTimeout"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - Gzip string `position:"Query" name:"Gzip"` - TLSCipherPolicy string `position:"Query" name:"TLSCipherPolicy"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ServerCertificateId string `position:"Query" name:"ServerCertificateId"` - CACertificateId string `position:"Query" name:"CACertificateId"` - BackendProtocol string `position:"Query" name:"BackendProtocol"` - Tags string `position:"Query" name:"Tags"` - IdleTimeout requests.Integer `position:"Query" name:"IdleTimeout"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` - XForwardedForSLBIP string `position:"Query" name:"XForwardedFor_SLBIP"` - BackendServerPort requests.Integer `position:"Query" name:"BackendServerPort"` - HealthCheckInterval requests.Integer `position:"Query" name:"HealthCheckInterval"` - XForwardedForProto string `position:"Query" name:"XForwardedFor_proto"` - XForwardedForSLBID string `position:"Query" name:"XForwardedFor_SLBID"` - HealthCheckConnectPort requests.Integer `position:"Query" name:"HealthCheckConnectPort"` - HealthCheckHttpCode string `position:"Query" name:"HealthCheckHttpCode"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ServerCertificate *[]CreateLoadBalancerHTTPSListenerServerCertificate `position:"Query" name:"ServerCertificate" type:"Repeated"` + HealthCheckTimeout requests.Integer `position:"Query" name:"HealthCheckTimeout"` + XForwardedFor string `position:"Query" name:"XForwardedFor"` + HealthCheckURI string `position:"Query" name:"HealthCheckURI"` + XForwardedForSLBPORT string `position:"Query" name:"XForwardedFor_SLBPORT"` + AclStatus string `position:"Query" name:"AclStatus"` + AclType string `position:"Query" name:"AclType"` + HealthCheck string `position:"Query" name:"HealthCheck"` + VpcIds string `position:"Query" name:"VpcIds"` + Tag *[]CreateLoadBalancerHTTPSListenerTag `position:"Query" name:"Tag" type:"Repeated"` + VServerGroupId string `position:"Query" name:"VServerGroupId"` + AclId string `position:"Query" name:"AclId"` + XForwardedForClientCertClientVerify string `position:"Query" name:"XForwardedFor_ClientCertClientVerify"` + Cookie string `position:"Query" name:"Cookie"` + HealthCheckMethod string `position:"Query" name:"HealthCheckMethod"` + HealthCheckDomain string `position:"Query" name:"HealthCheckDomain"` + RequestTimeout requests.Integer `position:"Query" name:"RequestTimeout"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + CACertificateId string `position:"Query" name:"CACertificateId"` + BackendProtocol string `position:"Query" name:"BackendProtocol"` + Tags string `position:"Query" name:"Tags"` + XForwardedForClientCertFingerprintAlias string `position:"Query" name:"XForwardedFor_ClientCertFingerprintAlias"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + XForwardedForSLBIP string `position:"Query" name:"XForwardedFor_SLBIP"` + BackendServerPort requests.Integer `position:"Query" name:"BackendServerPort"` + HealthCheckInterval requests.Integer `position:"Query" name:"HealthCheckInterval"` + XForwardedForClientCertClientVerifyAlias string `position:"Query" name:"XForwardedFor_ClientCertClientVerifyAlias"` + XForwardedForSLBID string `position:"Query" name:"XForwardedFor_SLBID"` + XForwardedForClientCertFingerprint string `position:"Query" name:"XForwardedFor_ClientCertFingerprint"` + HealthCheckHttpVersion string `position:"Query" name:"HealthCheckHttpVersion"` + AccessKeyId string `position:"Query" name:"access_key_id"` + XForwardedForClientSrcPort string `position:"Query" name:"XForwardedFor_ClientSrcPort"` + Description string `position:"Query" name:"Description"` + UnhealthyThreshold requests.Integer `position:"Query" name:"UnhealthyThreshold"` + XForwardedForClientCertIssuerDNAlias string `position:"Query" name:"XForwardedFor_ClientCertIssuerDNAlias"` + HealthyThreshold requests.Integer `position:"Query" name:"HealthyThreshold"` + Scheduler string `position:"Query" name:"Scheduler"` + MaxConnection requests.Integer `position:"Query" name:"MaxConnection"` + EnableHttp2 string `position:"Query" name:"EnableHttp2"` + XForwardedForClientCertSubjectDN string `position:"Query" name:"XForwardedFor_ClientCertSubjectDN"` + CookieTimeout requests.Integer `position:"Query" name:"CookieTimeout"` + StickySessionType string `position:"Query" name:"StickySessionType"` + ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` + HealthCheckType string `position:"Query" name:"HealthCheckType"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` + StickySession string `position:"Query" name:"StickySession"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Gzip string `position:"Query" name:"Gzip"` + TLSCipherPolicy string `position:"Query" name:"TLSCipherPolicy"` + ServerCertificateId string `position:"Query" name:"ServerCertificateId"` + IdleTimeout requests.Integer `position:"Query" name:"IdleTimeout"` + XForwardedForProto string `position:"Query" name:"XForwardedFor_proto"` + XForwardedForClientCertSubjectDNAlias string `position:"Query" name:"XForwardedFor_ClientCertSubjectDNAlias"` + HealthCheckConnectPort requests.Integer `position:"Query" name:"HealthCheckConnectPort"` + HealthCheckHttpCode string `position:"Query" name:"HealthCheckHttpCode"` + XForwardedForClientCertIssuerDN string `position:"Query" name:"XForwardedFor_ClientCertIssuerDN"` +} + +// CreateLoadBalancerHTTPSListenerServerCertificate is a repeated param struct in CreateLoadBalancerHTTPSListenerRequest +type CreateLoadBalancerHTTPSListenerServerCertificate struct { + BindingType string `name:"BindingType"` + CertificateId string `name:"CertificateId"` + StandardType string `name:"StandardType"` +} + +// CreateLoadBalancerHTTPSListenerTag is a repeated param struct in CreateLoadBalancerHTTPSListenerRequest +type CreateLoadBalancerHTTPSListenerTag struct { + Value string `name:"Value"` + Key string `name:"Key"` } // CreateLoadBalancerHTTPSListenerResponse is the response struct for api CreateLoadBalancerHTTPSListener @@ -135,6 +156,7 @@ func CreateCreateLoadBalancerHTTPSListenerRequest() (request *CreateLoadBalancer RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "CreateLoadBalancerHTTPSListener", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_load_balancer_tcp_listener.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_load_balancer_tcp_listener.go index bb4f2a4e..ad763364 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_load_balancer_tcp_listener.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_load_balancer_tcp_listener.go @@ -21,7 +21,6 @@ import ( ) // CreateLoadBalancerTCPListener invokes the slb.CreateLoadBalancerTCPListener API synchronously -// api document: https://help.aliyun.com/api/slb/createloadbalancertcplistener.html func (client *Client) CreateLoadBalancerTCPListener(request *CreateLoadBalancerTCPListenerRequest) (response *CreateLoadBalancerTCPListenerResponse, err error) { response = CreateCreateLoadBalancerTCPListenerResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) CreateLoadBalancerTCPListener(request *CreateLoadBalancerT } // CreateLoadBalancerTCPListenerWithChan invokes the slb.CreateLoadBalancerTCPListener API asynchronously -// api document: https://help.aliyun.com/api/slb/createloadbalancertcplistener.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateLoadBalancerTCPListenerWithChan(request *CreateLoadBalancerTCPListenerRequest) (<-chan *CreateLoadBalancerTCPListenerResponse, <-chan error) { responseChan := make(chan *CreateLoadBalancerTCPListenerResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) CreateLoadBalancerTCPListenerWithChan(request *CreateLoadB } // CreateLoadBalancerTCPListenerWithCallback invokes the slb.CreateLoadBalancerTCPListener API asynchronously -// api document: https://help.aliyun.com/api/slb/createloadbalancertcplistener.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateLoadBalancerTCPListenerWithCallback(request *CreateLoadBalancerTCPListenerRequest, callback func(response *CreateLoadBalancerTCPListenerResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,37 +71,62 @@ func (client *Client) CreateLoadBalancerTCPListenerWithCallback(request *CreateL // CreateLoadBalancerTCPListenerRequest is the request struct for api CreateLoadBalancerTCPListener type CreateLoadBalancerTCPListenerRequest struct { *requests.RpcRequest - AccessKeyId string `position:"Query" name:"access_key_id"` - HealthCheckConnectTimeout requests.Integer `position:"Query" name:"HealthCheckConnectTimeout"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - HealthCheckURI string `position:"Query" name:"HealthCheckURI"` - Description string `position:"Query" name:"Description"` - UnhealthyThreshold requests.Integer `position:"Query" name:"UnhealthyThreshold"` - HealthyThreshold requests.Integer `position:"Query" name:"HealthyThreshold"` - AclStatus string `position:"Query" name:"AclStatus"` - Scheduler string `position:"Query" name:"Scheduler"` - AclType string `position:"Query" name:"AclType"` - EstablishedTimeout requests.Integer `position:"Query" name:"EstablishedTimeout"` - MaxConnection requests.Integer `position:"Query" name:"MaxConnection"` - PersistenceTimeout requests.Integer `position:"Query" name:"PersistenceTimeout"` - VpcIds string `position:"Query" name:"VpcIds"` - VServerGroupId string `position:"Query" name:"VServerGroupId"` - AclId string `position:"Query" name:"AclId"` - ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` - HealthCheckType string `position:"Query" name:"HealthCheckType"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` - HealthCheckMethod string `position:"Query" name:"HealthCheckMethod"` - HealthCheckDomain string `position:"Query" name:"HealthCheckDomain"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` - MasterSlaveServerGroupId string `position:"Query" name:"MasterSlaveServerGroupId"` - BackendServerPort requests.Integer `position:"Query" name:"BackendServerPort"` - HealthCheckInterval requests.Integer `position:"Query" name:"healthCheckInterval"` - HealthCheckConnectPort requests.Integer `position:"Query" name:"HealthCheckConnectPort"` - HealthCheckHttpCode string `position:"Query" name:"HealthCheckHttpCode"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + HealthCheckURI string `position:"Query" name:"HealthCheckURI"` + AclStatus string `position:"Query" name:"AclStatus"` + FullNatEnabled requests.Boolean `position:"Query" name:"FullNatEnabled"` + HealthCheckTcpFastCloseEnabled requests.Boolean `position:"Query" name:"HealthCheckTcpFastCloseEnabled"` + AclType string `position:"Query" name:"AclType"` + EstablishedTimeout requests.Integer `position:"Query" name:"EstablishedTimeout"` + FailoverStrategy string `position:"Query" name:"FailoverStrategy"` + PersistenceTimeout requests.Integer `position:"Query" name:"PersistenceTimeout"` + VpcIds string `position:"Query" name:"VpcIds"` + Tag *[]CreateLoadBalancerTCPListenerTag `position:"Query" name:"Tag" type:"Repeated"` + MasterSlaveModeEnabled requests.Boolean `position:"Query" name:"MasterSlaveModeEnabled"` + VServerGroupId string `position:"Query" name:"VServerGroupId"` + AclId string `position:"Query" name:"AclId"` + PortRange *[]CreateLoadBalancerTCPListenerPortRange `position:"Query" name:"PortRange" type:"Repeated"` + HealthCheckMethod string `position:"Query" name:"HealthCheckMethod"` + HealthCheckDomain string `position:"Query" name:"HealthCheckDomain"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + MasterSlaveServerGroupId string `position:"Query" name:"MasterSlaveServerGroupId"` + BackendServerPort requests.Integer `position:"Query" name:"BackendServerPort"` + HealthCheckInterval requests.Integer `position:"Query" name:"healthCheckInterval"` + FailoverThreshold requests.Integer `position:"Query" name:"FailoverThreshold"` + ProxyProtocolV2Enabled requests.Boolean `position:"Query" name:"ProxyProtocolV2Enabled"` + ConnectionDrain string `position:"Query" name:"ConnectionDrain"` + HealthCheckSwitch string `position:"Query" name:"HealthCheckSwitch"` + AccessKeyId string `position:"Query" name:"access_key_id"` + HealthCheckConnectTimeout requests.Integer `position:"Query" name:"HealthCheckConnectTimeout"` + SlaveServerGroupId string `position:"Query" name:"SlaveServerGroupId"` + Description string `position:"Query" name:"Description"` + UnhealthyThreshold requests.Integer `position:"Query" name:"UnhealthyThreshold"` + HealthyThreshold requests.Integer `position:"Query" name:"HealthyThreshold"` + Scheduler string `position:"Query" name:"Scheduler"` + MaxConnection requests.Integer `position:"Query" name:"MaxConnection"` + MasterServerGroupId string `position:"Query" name:"MasterServerGroupId"` + ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` + HealthCheckType string `position:"Query" name:"HealthCheckType"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ConnectionDrainTimeout requests.Integer `position:"Query" name:"ConnectionDrainTimeout"` + HealthCheckConnectPort requests.Integer `position:"Query" name:"HealthCheckConnectPort"` + HealthCheckHttpCode string `position:"Query" name:"HealthCheckHttpCode"` +} + +// CreateLoadBalancerTCPListenerTag is a repeated param struct in CreateLoadBalancerTCPListenerRequest +type CreateLoadBalancerTCPListenerTag struct { + Value string `name:"Value"` + Key string `name:"Key"` +} + +// CreateLoadBalancerTCPListenerPortRange is a repeated param struct in CreateLoadBalancerTCPListenerRequest +type CreateLoadBalancerTCPListenerPortRange struct { + StartPort string `name:"StartPort"` + EndPort string `name:"EndPort"` } // CreateLoadBalancerTCPListenerResponse is the response struct for api CreateLoadBalancerTCPListener @@ -121,6 +141,7 @@ func CreateCreateLoadBalancerTCPListenerRequest() (request *CreateLoadBalancerTC RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "CreateLoadBalancerTCPListener", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_load_balancer_udp_listener.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_load_balancer_udp_listener.go index 1fb9cc53..cd63f963 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_load_balancer_udp_listener.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_load_balancer_udp_listener.go @@ -21,7 +21,6 @@ import ( ) // CreateLoadBalancerUDPListener invokes the slb.CreateLoadBalancerUDPListener API synchronously -// api document: https://help.aliyun.com/api/slb/createloadbalancerudplistener.html func (client *Client) CreateLoadBalancerUDPListener(request *CreateLoadBalancerUDPListenerRequest) (response *CreateLoadBalancerUDPListenerResponse, err error) { response = CreateCreateLoadBalancerUDPListenerResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) CreateLoadBalancerUDPListener(request *CreateLoadBalancerU } // CreateLoadBalancerUDPListenerWithChan invokes the slb.CreateLoadBalancerUDPListener API asynchronously -// api document: https://help.aliyun.com/api/slb/createloadbalancerudplistener.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateLoadBalancerUDPListenerWithChan(request *CreateLoadBalancerUDPListenerRequest) (<-chan *CreateLoadBalancerUDPListenerResponse, <-chan error) { responseChan := make(chan *CreateLoadBalancerUDPListenerResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) CreateLoadBalancerUDPListenerWithChan(request *CreateLoadB } // CreateLoadBalancerUDPListenerWithCallback invokes the slb.CreateLoadBalancerUDPListener API asynchronously -// api document: https://help.aliyun.com/api/slb/createloadbalancerudplistener.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateLoadBalancerUDPListenerWithCallback(request *CreateLoadBalancerUDPListenerRequest, callback func(response *CreateLoadBalancerUDPListenerResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,33 +71,63 @@ func (client *Client) CreateLoadBalancerUDPListenerWithCallback(request *CreateL // CreateLoadBalancerUDPListenerRequest is the request struct for api CreateLoadBalancerUDPListener type CreateLoadBalancerUDPListenerRequest struct { *requests.RpcRequest - AccessKeyId string `position:"Query" name:"access_key_id"` - HealthCheckConnectTimeout requests.Integer `position:"Query" name:"HealthCheckConnectTimeout"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Description string `position:"Query" name:"Description"` - UnhealthyThreshold requests.Integer `position:"Query" name:"UnhealthyThreshold"` - HealthyThreshold requests.Integer `position:"Query" name:"HealthyThreshold"` - AclStatus string `position:"Query" name:"AclStatus"` - Scheduler string `position:"Query" name:"Scheduler"` - AclType string `position:"Query" name:"AclType"` - MaxConnection requests.Integer `position:"Query" name:"MaxConnection"` - PersistenceTimeout requests.Integer `position:"Query" name:"PersistenceTimeout"` - VpcIds string `position:"Query" name:"VpcIds"` - VServerGroupId string `position:"Query" name:"VServerGroupId"` - AclId string `position:"Query" name:"AclId"` - ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` - MasterSlaveServerGroupId string `position:"Query" name:"MasterSlaveServerGroupId"` - HealthCheckReq string `position:"Query" name:"healthCheckReq"` - BackendServerPort requests.Integer `position:"Query" name:"BackendServerPort"` - HealthCheckInterval requests.Integer `position:"Query" name:"healthCheckInterval"` - HealthCheckExp string `position:"Query" name:"healthCheckExp"` - HealthCheckConnectPort requests.Integer `position:"Query" name:"HealthCheckConnectPort"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + HealthCheckURI string `position:"Query" name:"HealthCheckURI"` + AclStatus string `position:"Query" name:"AclStatus"` + FullNatEnabled requests.Boolean `position:"Query" name:"FullNatEnabled"` + AclType string `position:"Query" name:"AclType"` + FailoverStrategy string `position:"Query" name:"FailoverStrategy"` + PersistenceTimeout requests.Integer `position:"Query" name:"PersistenceTimeout"` + VpcIds string `position:"Query" name:"VpcIds"` + Tag *[]CreateLoadBalancerUDPListenerTag `position:"Query" name:"Tag" type:"Repeated"` + MasterSlaveModeEnabled requests.Boolean `position:"Query" name:"MasterSlaveModeEnabled"` + VServerGroupId string `position:"Query" name:"VServerGroupId"` + AclId string `position:"Query" name:"AclId"` + PortRange *[]CreateLoadBalancerUDPListenerPortRange `position:"Query" name:"PortRange" type:"Repeated"` + HealthCheckMethod string `position:"Query" name:"HealthCheckMethod"` + HealthCheckDomain string `position:"Query" name:"HealthCheckDomain"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + MasterSlaveServerGroupId string `position:"Query" name:"MasterSlaveServerGroupId"` + HealthCheckReq string `position:"Query" name:"healthCheckReq"` + BackendServerPort requests.Integer `position:"Query" name:"BackendServerPort"` + HealthCheckInterval requests.Integer `position:"Query" name:"healthCheckInterval"` + HealthCheckExp string `position:"Query" name:"healthCheckExp"` + FailoverThreshold requests.Integer `position:"Query" name:"FailoverThreshold"` + ProxyProtocolV2Enabled requests.Boolean `position:"Query" name:"ProxyProtocolV2Enabled"` + ConnectionDrain string `position:"Query" name:"ConnectionDrain"` + HealthCheckSwitch string `position:"Query" name:"HealthCheckSwitch"` + AccessKeyId string `position:"Query" name:"access_key_id"` + HealthCheckConnectTimeout requests.Integer `position:"Query" name:"HealthCheckConnectTimeout"` + SlaveServerGroupId string `position:"Query" name:"SlaveServerGroupId"` + QuicVersion string `position:"Query" name:"QuicVersion"` + Description string `position:"Query" name:"Description"` + UnhealthyThreshold requests.Integer `position:"Query" name:"UnhealthyThreshold"` + HealthyThreshold requests.Integer `position:"Query" name:"HealthyThreshold"` + Scheduler string `position:"Query" name:"Scheduler"` + MaxConnection requests.Integer `position:"Query" name:"MaxConnection"` + MasterServerGroupId string `position:"Query" name:"MasterServerGroupId"` + ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` + HealthCheckType string `position:"Query" name:"HealthCheckType"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ConnectionDrainTimeout requests.Integer `position:"Query" name:"ConnectionDrainTimeout"` + HealthCheckConnectPort requests.Integer `position:"Query" name:"HealthCheckConnectPort"` + HealthCheckHttpCode string `position:"Query" name:"HealthCheckHttpCode"` +} + +// CreateLoadBalancerUDPListenerTag is a repeated param struct in CreateLoadBalancerUDPListenerRequest +type CreateLoadBalancerUDPListenerTag struct { + Value string `name:"Value"` + Key string `name:"Key"` +} + +// CreateLoadBalancerUDPListenerPortRange is a repeated param struct in CreateLoadBalancerUDPListenerRequest +type CreateLoadBalancerUDPListenerPortRange struct { + StartPort string `name:"StartPort"` + EndPort string `name:"EndPort"` } // CreateLoadBalancerUDPListenerResponse is the response struct for api CreateLoadBalancerUDPListener @@ -117,6 +142,7 @@ func CreateCreateLoadBalancerUDPListenerRequest() (request *CreateLoadBalancerUD RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "CreateLoadBalancerUDPListener", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_master_slave_server_group.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_master_slave_server_group.go index c4d06ead..473bfa24 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_master_slave_server_group.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_master_slave_server_group.go @@ -21,7 +21,6 @@ import ( ) // CreateMasterSlaveServerGroup invokes the slb.CreateMasterSlaveServerGroup API synchronously -// api document: https://help.aliyun.com/api/slb/createmasterslaveservergroup.html func (client *Client) CreateMasterSlaveServerGroup(request *CreateMasterSlaveServerGroupRequest) (response *CreateMasterSlaveServerGroupResponse, err error) { response = CreateCreateMasterSlaveServerGroupResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) CreateMasterSlaveServerGroup(request *CreateMasterSlaveSer } // CreateMasterSlaveServerGroupWithChan invokes the slb.CreateMasterSlaveServerGroup API asynchronously -// api document: https://help.aliyun.com/api/slb/createmasterslaveservergroup.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateMasterSlaveServerGroupWithChan(request *CreateMasterSlaveServerGroupRequest) (<-chan *CreateMasterSlaveServerGroupResponse, <-chan error) { responseChan := make(chan *CreateMasterSlaveServerGroupResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) CreateMasterSlaveServerGroupWithChan(request *CreateMaster } // CreateMasterSlaveServerGroupWithCallback invokes the slb.CreateMasterSlaveServerGroup API asynchronously -// api document: https://help.aliyun.com/api/slb/createmasterslaveservergroup.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateMasterSlaveServerGroupWithCallback(request *CreateMasterSlaveServerGroupRequest, callback func(response *CreateMasterSlaveServerGroupResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,22 +71,29 @@ func (client *Client) CreateMasterSlaveServerGroupWithCallback(request *CreateMa // CreateMasterSlaveServerGroupRequest is the request struct for api CreateMasterSlaveServerGroup type CreateMasterSlaveServerGroupRequest struct { *requests.RpcRequest - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - MasterSlaveBackendServers string `position:"Query" name:"MasterSlaveBackendServers"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - MasterSlaveServerGroupName string `position:"Query" name:"MasterSlaveServerGroupName"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` + AccessKeyId string `position:"Query" name:"access_key_id"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + MasterSlaveBackendServers string `position:"Query" name:"MasterSlaveBackendServers"` + Tag *[]CreateMasterSlaveServerGroupTag `position:"Query" name:"Tag" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + MasterSlaveServerGroupName string `position:"Query" name:"MasterSlaveServerGroupName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` +} + +// CreateMasterSlaveServerGroupTag is a repeated param struct in CreateMasterSlaveServerGroupRequest +type CreateMasterSlaveServerGroupTag struct { + Value string `name:"Value"` + Key string `name:"Key"` } // CreateMasterSlaveServerGroupResponse is the response struct for api CreateMasterSlaveServerGroup type CreateMasterSlaveServerGroupResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` MasterSlaveServerGroupId string `json:"MasterSlaveServerGroupId" xml:"MasterSlaveServerGroupId"` + RequestId string `json:"RequestId" xml:"RequestId"` MasterSlaveBackendServers MasterSlaveBackendServersInCreateMasterSlaveServerGroup `json:"MasterSlaveBackendServers" xml:"MasterSlaveBackendServers"` } @@ -101,6 +103,7 @@ func CreateCreateMasterSlaveServerGroupRequest() (request *CreateMasterSlaveServ RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "CreateMasterSlaveServerGroup", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_master_slave_v_server_group.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_master_slave_v_server_group.go deleted file mode 100644 index e80fb9c0..00000000 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_master_slave_v_server_group.go +++ /dev/null @@ -1,113 +0,0 @@ -package slb - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// CreateMasterSlaveVServerGroup invokes the slb.CreateMasterSlaveVServerGroup API synchronously -// api document: https://help.aliyun.com/api/slb/createmasterslavevservergroup.html -func (client *Client) CreateMasterSlaveVServerGroup(request *CreateMasterSlaveVServerGroupRequest) (response *CreateMasterSlaveVServerGroupResponse, err error) { - response = CreateCreateMasterSlaveVServerGroupResponse() - err = client.DoAction(request, response) - return -} - -// CreateMasterSlaveVServerGroupWithChan invokes the slb.CreateMasterSlaveVServerGroup API asynchronously -// api document: https://help.aliyun.com/api/slb/createmasterslavevservergroup.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html -func (client *Client) CreateMasterSlaveVServerGroupWithChan(request *CreateMasterSlaveVServerGroupRequest) (<-chan *CreateMasterSlaveVServerGroupResponse, <-chan error) { - responseChan := make(chan *CreateMasterSlaveVServerGroupResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.CreateMasterSlaveVServerGroup(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// CreateMasterSlaveVServerGroupWithCallback invokes the slb.CreateMasterSlaveVServerGroup API asynchronously -// api document: https://help.aliyun.com/api/slb/createmasterslavevservergroup.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html -func (client *Client) CreateMasterSlaveVServerGroupWithCallback(request *CreateMasterSlaveVServerGroupRequest, callback func(response *CreateMasterSlaveVServerGroupResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *CreateMasterSlaveVServerGroupResponse - var err error - defer close(result) - response, err = client.CreateMasterSlaveVServerGroup(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// CreateMasterSlaveVServerGroupRequest is the request struct for api CreateMasterSlaveVServerGroup -type CreateMasterSlaveVServerGroupRequest struct { - *requests.RpcRequest - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - MasterSlaveBackendServers string `position:"Query" name:"MasterSlaveBackendServers"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - MasterSlaveVServerGroupName string `position:"Query" name:"MasterSlaveVServerGroupName"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` -} - -// CreateMasterSlaveVServerGroupResponse is the response struct for api CreateMasterSlaveVServerGroup -type CreateMasterSlaveVServerGroupResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - MasterSlaveVServerGroupId string `json:"MasterSlaveVServerGroupId" xml:"MasterSlaveVServerGroupId"` - MasterSlaveBackendServers MasterSlaveBackendServersInCreateMasterSlaveVServerGroup `json:"MasterSlaveBackendServers" xml:"MasterSlaveBackendServers"` -} - -// CreateCreateMasterSlaveVServerGroupRequest creates a request to invoke CreateMasterSlaveVServerGroup API -func CreateCreateMasterSlaveVServerGroupRequest() (request *CreateMasterSlaveVServerGroupRequest) { - request = &CreateMasterSlaveVServerGroupRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Slb", "2014-05-15", "CreateMasterSlaveVServerGroup", "slb", "openAPI") - return -} - -// CreateCreateMasterSlaveVServerGroupResponse creates a response to parse from CreateMasterSlaveVServerGroup response -func CreateCreateMasterSlaveVServerGroupResponse() (response *CreateMasterSlaveVServerGroupResponse) { - response = &CreateMasterSlaveVServerGroupResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_rules.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_rules.go index 46cbc00a..c29795af 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_rules.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_rules.go @@ -21,7 +21,6 @@ import ( ) // CreateRules invokes the slb.CreateRules API synchronously -// api document: https://help.aliyun.com/api/slb/createrules.html func (client *Client) CreateRules(request *CreateRulesRequest) (response *CreateRulesResponse, err error) { response = CreateCreateRulesResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) CreateRules(request *CreateRulesRequest) (response *Create } // CreateRulesWithChan invokes the slb.CreateRules API asynchronously -// api document: https://help.aliyun.com/api/slb/createrules.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateRulesWithChan(request *CreateRulesRequest) (<-chan *CreateRulesResponse, <-chan error) { responseChan := make(chan *CreateRulesResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) CreateRulesWithChan(request *CreateRulesRequest) (<-chan * } // CreateRulesWithCallback invokes the slb.CreateRules API asynchronously -// api document: https://help.aliyun.com/api/slb/createrules.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateRulesWithCallback(request *CreateRulesRequest, callback func(response *CreateRulesResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -78,14 +73,14 @@ type CreateRulesRequest struct { *requests.RpcRequest AccessKeyId string `position:"Query" name:"access_key_id"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + RuleList string `position:"Query" name:"RuleList"` ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - RuleList string `position:"Query" name:"RuleList"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` ListenerProtocol string `position:"Query" name:"ListenerProtocol"` Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` } // CreateRulesResponse is the response struct for api CreateRules @@ -101,6 +96,7 @@ func CreateCreateRulesRequest() (request *CreateRulesRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "CreateRules", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_tls_cipher_policy.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_tls_cipher_policy.go new file mode 100644 index 00000000..a8f4d446 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_tls_cipher_policy.go @@ -0,0 +1,107 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// CreateTLSCipherPolicy invokes the slb.CreateTLSCipherPolicy API synchronously +func (client *Client) CreateTLSCipherPolicy(request *CreateTLSCipherPolicyRequest) (response *CreateTLSCipherPolicyResponse, err error) { + response = CreateCreateTLSCipherPolicyResponse() + err = client.DoAction(request, response) + return +} + +// CreateTLSCipherPolicyWithChan invokes the slb.CreateTLSCipherPolicy API asynchronously +func (client *Client) CreateTLSCipherPolicyWithChan(request *CreateTLSCipherPolicyRequest) (<-chan *CreateTLSCipherPolicyResponse, <-chan error) { + responseChan := make(chan *CreateTLSCipherPolicyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateTLSCipherPolicy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateTLSCipherPolicyWithCallback invokes the slb.CreateTLSCipherPolicy API asynchronously +func (client *Client) CreateTLSCipherPolicyWithCallback(request *CreateTLSCipherPolicyRequest, callback func(response *CreateTLSCipherPolicyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateTLSCipherPolicyResponse + var err error + defer close(result) + response, err = client.CreateTLSCipherPolicy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateTLSCipherPolicyRequest is the request struct for api CreateTLSCipherPolicy +type CreateTLSCipherPolicyRequest struct { + *requests.RpcRequest + AccessKeyId string `position:"Query" name:"access_key_id"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Ciphers *[]string `position:"Query" name:"Ciphers" type:"Repeated"` + TLSVersions *[]string `position:"Query" name:"TLSVersions" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Name string `position:"Query" name:"Name"` +} + +// CreateTLSCipherPolicyResponse is the response struct for api CreateTLSCipherPolicy +type CreateTLSCipherPolicyResponse struct { + *responses.BaseResponse + TLSCipherPolicyId string `json:"TLSCipherPolicyId" xml:"TLSCipherPolicyId"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateCreateTLSCipherPolicyRequest creates a request to invoke CreateTLSCipherPolicy API +func CreateCreateTLSCipherPolicyRequest() (request *CreateTLSCipherPolicyRequest) { + request = &CreateTLSCipherPolicyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "CreateTLSCipherPolicy", "slb", "openAPI") + request.Method = requests.POST + return +} + +// CreateCreateTLSCipherPolicyResponse creates a response to parse from CreateTLSCipherPolicy response +func CreateCreateTLSCipherPolicyResponse() (response *CreateTLSCipherPolicyResponse) { + response = &CreateTLSCipherPolicyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_v_server_group.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_v_server_group.go index d0592b9b..2ece310b 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_v_server_group.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/create_v_server_group.go @@ -21,7 +21,6 @@ import ( ) // CreateVServerGroup invokes the slb.CreateVServerGroup API synchronously -// api document: https://help.aliyun.com/api/slb/createvservergroup.html func (client *Client) CreateVServerGroup(request *CreateVServerGroupRequest) (response *CreateVServerGroupResponse, err error) { response = CreateCreateVServerGroupResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) CreateVServerGroup(request *CreateVServerGroupRequest) (re } // CreateVServerGroupWithChan invokes the slb.CreateVServerGroup API asynchronously -// api document: https://help.aliyun.com/api/slb/createvservergroup.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateVServerGroupWithChan(request *CreateVServerGroupRequest) (<-chan *CreateVServerGroupResponse, <-chan error) { responseChan := make(chan *CreateVServerGroupResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) CreateVServerGroupWithChan(request *CreateVServerGroupRequ } // CreateVServerGroupWithCallback invokes the slb.CreateVServerGroup API asynchronously -// api document: https://help.aliyun.com/api/slb/createvservergroup.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) CreateVServerGroupWithCallback(request *CreateVServerGroupRequest, callback func(response *CreateVServerGroupResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,22 +71,29 @@ func (client *Client) CreateVServerGroupWithCallback(request *CreateVServerGroup // CreateVServerGroupRequest is the request struct for api CreateVServerGroup type CreateVServerGroupRequest struct { *requests.RpcRequest - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - BackendServers string `position:"Query" name:"BackendServers"` - Tags string `position:"Query" name:"Tags"` - VServerGroupName string `position:"Query" name:"VServerGroupName"` + AccessKeyId string `position:"Query" name:"access_key_id"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + BackendServers string `position:"Query" name:"BackendServers"` + Tag *[]CreateVServerGroupTag `position:"Query" name:"Tag" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Tags string `position:"Query" name:"Tags"` + VServerGroupName string `position:"Query" name:"VServerGroupName"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` +} + +// CreateVServerGroupTag is a repeated param struct in CreateVServerGroupRequest +type CreateVServerGroupTag struct { + Value string `name:"Value"` + Key string `name:"Key"` } // CreateVServerGroupResponse is the response struct for api CreateVServerGroup type CreateVServerGroupResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` + RequestId string `json:"RequestId" xml:"RequestId"` BackendServers BackendServersInCreateVServerGroup `json:"BackendServers" xml:"BackendServers"` } @@ -101,6 +103,7 @@ func CreateCreateVServerGroupRequest() (request *CreateVServerGroupRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "CreateVServerGroup", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_access_control_list.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_access_control_list.go index 9dc0ba44..ac24309f 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_access_control_list.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_access_control_list.go @@ -21,7 +21,6 @@ import ( ) // DeleteAccessControlList invokes the slb.DeleteAccessControlList API synchronously -// api document: https://help.aliyun.com/api/slb/deleteaccesscontrollist.html func (client *Client) DeleteAccessControlList(request *DeleteAccessControlListRequest) (response *DeleteAccessControlListResponse, err error) { response = CreateDeleteAccessControlListResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DeleteAccessControlList(request *DeleteAccessControlListRe } // DeleteAccessControlListWithChan invokes the slb.DeleteAccessControlList API asynchronously -// api document: https://help.aliyun.com/api/slb/deleteaccesscontrollist.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteAccessControlListWithChan(request *DeleteAccessControlListRequest) (<-chan *DeleteAccessControlListResponse, <-chan error) { responseChan := make(chan *DeleteAccessControlListResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DeleteAccessControlListWithChan(request *DeleteAccessContr } // DeleteAccessControlListWithCallback invokes the slb.DeleteAccessControlList API asynchronously -// api document: https://help.aliyun.com/api/slb/deleteaccesscontrollist.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteAccessControlListWithCallback(request *DeleteAccessControlListRequest, callback func(response *DeleteAccessControlListResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,8 +72,8 @@ func (client *Client) DeleteAccessControlListWithCallback(request *DeleteAccessC type DeleteAccessControlListRequest struct { *requests.RpcRequest AccessKeyId string `position:"Query" name:"access_key_id"` - AclId string `position:"Query" name:"AclId"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + AclId string `position:"Query" name:"AclId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` @@ -97,6 +92,7 @@ func CreateDeleteAccessControlListRequest() (request *DeleteAccessControlListReq RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "DeleteAccessControlList", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_access_logs_download_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_access_logs_download_attribute.go new file mode 100644 index 00000000..fdf5924c --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_access_logs_download_attribute.go @@ -0,0 +1,106 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteAccessLogsDownloadAttribute invokes the slb.DeleteAccessLogsDownloadAttribute API synchronously +func (client *Client) DeleteAccessLogsDownloadAttribute(request *DeleteAccessLogsDownloadAttributeRequest) (response *DeleteAccessLogsDownloadAttributeResponse, err error) { + response = CreateDeleteAccessLogsDownloadAttributeResponse() + err = client.DoAction(request, response) + return +} + +// DeleteAccessLogsDownloadAttributeWithChan invokes the slb.DeleteAccessLogsDownloadAttribute API asynchronously +func (client *Client) DeleteAccessLogsDownloadAttributeWithChan(request *DeleteAccessLogsDownloadAttributeRequest) (<-chan *DeleteAccessLogsDownloadAttributeResponse, <-chan error) { + responseChan := make(chan *DeleteAccessLogsDownloadAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteAccessLogsDownloadAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteAccessLogsDownloadAttributeWithCallback invokes the slb.DeleteAccessLogsDownloadAttribute API asynchronously +func (client *Client) DeleteAccessLogsDownloadAttributeWithCallback(request *DeleteAccessLogsDownloadAttributeRequest, callback func(response *DeleteAccessLogsDownloadAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteAccessLogsDownloadAttributeResponse + var err error + defer close(result) + response, err = client.DeleteAccessLogsDownloadAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteAccessLogsDownloadAttributeRequest is the request struct for api DeleteAccessLogsDownloadAttribute +type DeleteAccessLogsDownloadAttributeRequest struct { + *requests.RpcRequest + AccessKeyId string `position:"Query" name:"access_key_id"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + LogsDownloadAttributes string `position:"Query" name:"LogsDownloadAttributes"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` +} + +// DeleteAccessLogsDownloadAttributeResponse is the response struct for api DeleteAccessLogsDownloadAttribute +type DeleteAccessLogsDownloadAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteAccessLogsDownloadAttributeRequest creates a request to invoke DeleteAccessLogsDownloadAttribute API +func CreateDeleteAccessLogsDownloadAttributeRequest() (request *DeleteAccessLogsDownloadAttributeRequest) { + request = &DeleteAccessLogsDownloadAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "DeleteAccessLogsDownloadAttribute", "slb", "openAPI") + request.Method = requests.POST + return +} + +// CreateDeleteAccessLogsDownloadAttributeResponse creates a response to parse from DeleteAccessLogsDownloadAttribute response +func CreateDeleteAccessLogsDownloadAttributeResponse() (response *DeleteAccessLogsDownloadAttributeResponse) { + response = &DeleteAccessLogsDownloadAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_ca_certificate.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_ca_certificate.go index 796b06c8..06268864 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_ca_certificate.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_ca_certificate.go @@ -21,7 +21,6 @@ import ( ) // DeleteCACertificate invokes the slb.DeleteCACertificate API synchronously -// api document: https://help.aliyun.com/api/slb/deletecacertificate.html func (client *Client) DeleteCACertificate(request *DeleteCACertificateRequest) (response *DeleteCACertificateResponse, err error) { response = CreateDeleteCACertificateResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DeleteCACertificate(request *DeleteCACertificateRequest) ( } // DeleteCACertificateWithChan invokes the slb.DeleteCACertificate API asynchronously -// api document: https://help.aliyun.com/api/slb/deletecacertificate.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteCACertificateWithChan(request *DeleteCACertificateRequest) (<-chan *DeleteCACertificateResponse, <-chan error) { responseChan := make(chan *DeleteCACertificateResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DeleteCACertificateWithChan(request *DeleteCACertificateRe } // DeleteCACertificateWithCallback invokes the slb.DeleteCACertificate API asynchronously -// api document: https://help.aliyun.com/api/slb/deletecacertificate.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteCACertificateWithCallback(request *DeleteCACertificateRequest, callback func(response *DeleteCACertificateResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -96,6 +91,7 @@ func CreateDeleteCACertificateRequest() (request *DeleteCACertificateRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "DeleteCACertificate", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_domain_extension.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_domain_extension.go index b91288a3..2b3e459c 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_domain_extension.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_domain_extension.go @@ -21,7 +21,6 @@ import ( ) // DeleteDomainExtension invokes the slb.DeleteDomainExtension API synchronously -// api document: https://help.aliyun.com/api/slb/deletedomainextension.html func (client *Client) DeleteDomainExtension(request *DeleteDomainExtensionRequest) (response *DeleteDomainExtensionResponse, err error) { response = CreateDeleteDomainExtensionResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DeleteDomainExtension(request *DeleteDomainExtensionReques } // DeleteDomainExtensionWithChan invokes the slb.DeleteDomainExtension API asynchronously -// api document: https://help.aliyun.com/api/slb/deletedomainextension.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteDomainExtensionWithChan(request *DeleteDomainExtensionRequest) (<-chan *DeleteDomainExtensionResponse, <-chan error) { responseChan := make(chan *DeleteDomainExtensionResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DeleteDomainExtensionWithChan(request *DeleteDomainExtensi } // DeleteDomainExtensionWithCallback invokes the slb.DeleteDomainExtension API asynchronously -// api document: https://help.aliyun.com/api/slb/deletedomainextension.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteDomainExtensionWithCallback(request *DeleteDomainExtensionRequest, callback func(response *DeleteDomainExtensionResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -78,11 +73,11 @@ type DeleteDomainExtensionRequest struct { *requests.RpcRequest AccessKeyId string `position:"Query" name:"access_key_id"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DomainExtensionId string `position:"Query" name:"DomainExtensionId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` Tags string `position:"Query" name:"Tags"` - DomainExtensionId string `position:"Query" name:"DomainExtensionId"` } // DeleteDomainExtensionResponse is the response struct for api DeleteDomainExtension @@ -97,6 +92,7 @@ func CreateDeleteDomainExtensionRequest() (request *DeleteDomainExtensionRequest RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "DeleteDomainExtension", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_load_balancer.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_load_balancer.go index 4f3bc151..045a01b8 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_load_balancer.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_load_balancer.go @@ -21,7 +21,6 @@ import ( ) // DeleteLoadBalancer invokes the slb.DeleteLoadBalancer API synchronously -// api document: https://help.aliyun.com/api/slb/deleteloadbalancer.html func (client *Client) DeleteLoadBalancer(request *DeleteLoadBalancerRequest) (response *DeleteLoadBalancerResponse, err error) { response = CreateDeleteLoadBalancerResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DeleteLoadBalancer(request *DeleteLoadBalancerRequest) (re } // DeleteLoadBalancerWithChan invokes the slb.DeleteLoadBalancer API asynchronously -// api document: https://help.aliyun.com/api/slb/deleteloadbalancer.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteLoadBalancerWithChan(request *DeleteLoadBalancerRequest) (<-chan *DeleteLoadBalancerResponse, <-chan error) { responseChan := make(chan *DeleteLoadBalancerResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DeleteLoadBalancerWithChan(request *DeleteLoadBalancerRequ } // DeleteLoadBalancerWithCallback invokes the slb.DeleteLoadBalancer API asynchronously -// api document: https://help.aliyun.com/api/slb/deleteloadbalancer.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteLoadBalancerWithCallback(request *DeleteLoadBalancerRequest, callback func(response *DeleteLoadBalancerResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -78,11 +73,12 @@ type DeleteLoadBalancerRequest struct { *requests.RpcRequest AccessKeyId string `position:"Query" name:"access_key_id"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + EnableEipReserve string `position:"Query" name:"EnableEipReserve"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` } // DeleteLoadBalancerResponse is the response struct for api DeleteLoadBalancer @@ -97,6 +93,7 @@ func CreateDeleteLoadBalancerRequest() (request *DeleteLoadBalancerRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "DeleteLoadBalancer", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_load_balancer_listener.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_load_balancer_listener.go index 339d7398..13e30bf1 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_load_balancer_listener.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_load_balancer_listener.go @@ -21,7 +21,6 @@ import ( ) // DeleteLoadBalancerListener invokes the slb.DeleteLoadBalancerListener API synchronously -// api document: https://help.aliyun.com/api/slb/deleteloadbalancerlistener.html func (client *Client) DeleteLoadBalancerListener(request *DeleteLoadBalancerListenerRequest) (response *DeleteLoadBalancerListenerResponse, err error) { response = CreateDeleteLoadBalancerListenerResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DeleteLoadBalancerListener(request *DeleteLoadBalancerList } // DeleteLoadBalancerListenerWithChan invokes the slb.DeleteLoadBalancerListener API asynchronously -// api document: https://help.aliyun.com/api/slb/deleteloadbalancerlistener.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteLoadBalancerListenerWithChan(request *DeleteLoadBalancerListenerRequest) (<-chan *DeleteLoadBalancerListenerResponse, <-chan error) { responseChan := make(chan *DeleteLoadBalancerListenerResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DeleteLoadBalancerListenerWithChan(request *DeleteLoadBala } // DeleteLoadBalancerListenerWithCallback invokes the slb.DeleteLoadBalancerListener API asynchronously -// api document: https://help.aliyun.com/api/slb/deleteloadbalancerlistener.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteLoadBalancerListenerWithCallback(request *DeleteLoadBalancerListenerRequest, callback func(response *DeleteLoadBalancerListenerResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -79,12 +74,12 @@ type DeleteLoadBalancerListenerRequest struct { AccessKeyId string `position:"Query" name:"access_key_id"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` ListenerProtocol string `position:"Query" name:"ListenerProtocol"` Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` } // DeleteLoadBalancerListenerResponse is the response struct for api DeleteLoadBalancerListener @@ -99,6 +94,7 @@ func CreateDeleteLoadBalancerListenerRequest() (request *DeleteLoadBalancerListe RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "DeleteLoadBalancerListener", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_master_slave_server_group.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_master_slave_server_group.go index 77946ad2..bd27ff1b 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_master_slave_server_group.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_master_slave_server_group.go @@ -21,7 +21,6 @@ import ( ) // DeleteMasterSlaveServerGroup invokes the slb.DeleteMasterSlaveServerGroup API synchronously -// api document: https://help.aliyun.com/api/slb/deletemasterslaveservergroup.html func (client *Client) DeleteMasterSlaveServerGroup(request *DeleteMasterSlaveServerGroupRequest) (response *DeleteMasterSlaveServerGroupResponse, err error) { response = CreateDeleteMasterSlaveServerGroupResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DeleteMasterSlaveServerGroup(request *DeleteMasterSlaveSer } // DeleteMasterSlaveServerGroupWithChan invokes the slb.DeleteMasterSlaveServerGroup API asynchronously -// api document: https://help.aliyun.com/api/slb/deletemasterslaveservergroup.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteMasterSlaveServerGroupWithChan(request *DeleteMasterSlaveServerGroupRequest) (<-chan *DeleteMasterSlaveServerGroupResponse, <-chan error) { responseChan := make(chan *DeleteMasterSlaveServerGroupResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DeleteMasterSlaveServerGroupWithChan(request *DeleteMaster } // DeleteMasterSlaveServerGroupWithCallback invokes the slb.DeleteMasterSlaveServerGroup API asynchronously -// api document: https://help.aliyun.com/api/slb/deletemasterslaveservergroup.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteMasterSlaveServerGroupWithCallback(request *DeleteMasterSlaveServerGroupRequest, callback func(response *DeleteMasterSlaveServerGroupResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -78,11 +73,11 @@ type DeleteMasterSlaveServerGroupRequest struct { *requests.RpcRequest AccessKeyId string `position:"Query" name:"access_key_id"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - MasterSlaveServerGroupId string `position:"Query" name:"MasterSlaveServerGroupId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` Tags string `position:"Query" name:"Tags"` + MasterSlaveServerGroupId string `position:"Query" name:"MasterSlaveServerGroupId"` } // DeleteMasterSlaveServerGroupResponse is the response struct for api DeleteMasterSlaveServerGroup @@ -97,6 +92,7 @@ func CreateDeleteMasterSlaveServerGroupRequest() (request *DeleteMasterSlaveServ RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "DeleteMasterSlaveServerGroup", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_master_slave_v_server_group.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_master_slave_v_server_group.go deleted file mode 100644 index 61f6e01c..00000000 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_master_slave_v_server_group.go +++ /dev/null @@ -1,109 +0,0 @@ -package slb - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DeleteMasterSlaveVServerGroup invokes the slb.DeleteMasterSlaveVServerGroup API synchronously -// api document: https://help.aliyun.com/api/slb/deletemasterslavevservergroup.html -func (client *Client) DeleteMasterSlaveVServerGroup(request *DeleteMasterSlaveVServerGroupRequest) (response *DeleteMasterSlaveVServerGroupResponse, err error) { - response = CreateDeleteMasterSlaveVServerGroupResponse() - err = client.DoAction(request, response) - return -} - -// DeleteMasterSlaveVServerGroupWithChan invokes the slb.DeleteMasterSlaveVServerGroup API asynchronously -// api document: https://help.aliyun.com/api/slb/deletemasterslavevservergroup.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html -func (client *Client) DeleteMasterSlaveVServerGroupWithChan(request *DeleteMasterSlaveVServerGroupRequest) (<-chan *DeleteMasterSlaveVServerGroupResponse, <-chan error) { - responseChan := make(chan *DeleteMasterSlaveVServerGroupResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DeleteMasterSlaveVServerGroup(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DeleteMasterSlaveVServerGroupWithCallback invokes the slb.DeleteMasterSlaveVServerGroup API asynchronously -// api document: https://help.aliyun.com/api/slb/deletemasterslavevservergroup.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html -func (client *Client) DeleteMasterSlaveVServerGroupWithCallback(request *DeleteMasterSlaveVServerGroupRequest, callback func(response *DeleteMasterSlaveVServerGroupResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DeleteMasterSlaveVServerGroupResponse - var err error - defer close(result) - response, err = client.DeleteMasterSlaveVServerGroup(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DeleteMasterSlaveVServerGroupRequest is the request struct for api DeleteMasterSlaveVServerGroup -type DeleteMasterSlaveVServerGroupRequest struct { - *requests.RpcRequest - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - MasterSlaveVServerGroupId string `position:"Query" name:"MasterSlaveVServerGroupId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` -} - -// DeleteMasterSlaveVServerGroupResponse is the response struct for api DeleteMasterSlaveVServerGroup -type DeleteMasterSlaveVServerGroupResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateDeleteMasterSlaveVServerGroupRequest creates a request to invoke DeleteMasterSlaveVServerGroup API -func CreateDeleteMasterSlaveVServerGroupRequest() (request *DeleteMasterSlaveVServerGroupRequest) { - request = &DeleteMasterSlaveVServerGroupRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Slb", "2014-05-15", "DeleteMasterSlaveVServerGroup", "slb", "openAPI") - return -} - -// CreateDeleteMasterSlaveVServerGroupResponse creates a response to parse from DeleteMasterSlaveVServerGroup response -func CreateDeleteMasterSlaveVServerGroupResponse() (response *DeleteMasterSlaveVServerGroupResponse) { - response = &DeleteMasterSlaveVServerGroupResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_rules.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_rules.go index ab97bf87..b086912c 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_rules.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_rules.go @@ -21,7 +21,6 @@ import ( ) // DeleteRules invokes the slb.DeleteRules API synchronously -// api document: https://help.aliyun.com/api/slb/deleterules.html func (client *Client) DeleteRules(request *DeleteRulesRequest) (response *DeleteRulesResponse, err error) { response = CreateDeleteRulesResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DeleteRules(request *DeleteRulesRequest) (response *Delete } // DeleteRulesWithChan invokes the slb.DeleteRules API asynchronously -// api document: https://help.aliyun.com/api/slb/deleterules.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteRulesWithChan(request *DeleteRulesRequest) (<-chan *DeleteRulesResponse, <-chan error) { responseChan := make(chan *DeleteRulesResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DeleteRulesWithChan(request *DeleteRulesRequest) (<-chan * } // DeleteRulesWithCallback invokes the slb.DeleteRules API asynchronously -// api document: https://help.aliyun.com/api/slb/deleterules.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteRulesWithCallback(request *DeleteRulesRequest, callback func(response *DeleteRulesResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -78,11 +73,11 @@ type DeleteRulesRequest struct { *requests.RpcRequest AccessKeyId string `position:"Query" name:"access_key_id"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - RuleIds string `position:"Query" name:"RuleIds"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` Tags string `position:"Query" name:"Tags"` + RuleIds string `position:"Query" name:"RuleIds"` } // DeleteRulesResponse is the response struct for api DeleteRules @@ -97,6 +92,7 @@ func CreateDeleteRulesRequest() (request *DeleteRulesRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "DeleteRules", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_server_certificate.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_server_certificate.go index 23d5893c..51b78aca 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_server_certificate.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_server_certificate.go @@ -21,7 +21,6 @@ import ( ) // DeleteServerCertificate invokes the slb.DeleteServerCertificate API synchronously -// api document: https://help.aliyun.com/api/slb/deleteservercertificate.html func (client *Client) DeleteServerCertificate(request *DeleteServerCertificateRequest) (response *DeleteServerCertificateResponse, err error) { response = CreateDeleteServerCertificateResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DeleteServerCertificate(request *DeleteServerCertificateRe } // DeleteServerCertificateWithChan invokes the slb.DeleteServerCertificate API asynchronously -// api document: https://help.aliyun.com/api/slb/deleteservercertificate.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteServerCertificateWithChan(request *DeleteServerCertificateRequest) (<-chan *DeleteServerCertificateResponse, <-chan error) { responseChan := make(chan *DeleteServerCertificateResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DeleteServerCertificateWithChan(request *DeleteServerCerti } // DeleteServerCertificateWithCallback invokes the slb.DeleteServerCertificate API asynchronously -// api document: https://help.aliyun.com/api/slb/deleteservercertificate.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteServerCertificateWithCallback(request *DeleteServerCertificateRequest, callback func(response *DeleteServerCertificateResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -97,6 +92,7 @@ func CreateDeleteServerCertificateRequest() (request *DeleteServerCertificateReq RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "DeleteServerCertificate", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_tls_cipher_policy.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_tls_cipher_policy.go new file mode 100644 index 00000000..3fe3fa99 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_tls_cipher_policy.go @@ -0,0 +1,104 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DeleteTLSCipherPolicy invokes the slb.DeleteTLSCipherPolicy API synchronously +func (client *Client) DeleteTLSCipherPolicy(request *DeleteTLSCipherPolicyRequest) (response *DeleteTLSCipherPolicyResponse, err error) { + response = CreateDeleteTLSCipherPolicyResponse() + err = client.DoAction(request, response) + return +} + +// DeleteTLSCipherPolicyWithChan invokes the slb.DeleteTLSCipherPolicy API asynchronously +func (client *Client) DeleteTLSCipherPolicyWithChan(request *DeleteTLSCipherPolicyRequest) (<-chan *DeleteTLSCipherPolicyResponse, <-chan error) { + responseChan := make(chan *DeleteTLSCipherPolicyResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteTLSCipherPolicy(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteTLSCipherPolicyWithCallback invokes the slb.DeleteTLSCipherPolicy API asynchronously +func (client *Client) DeleteTLSCipherPolicyWithCallback(request *DeleteTLSCipherPolicyRequest, callback func(response *DeleteTLSCipherPolicyResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteTLSCipherPolicyResponse + var err error + defer close(result) + response, err = client.DeleteTLSCipherPolicy(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteTLSCipherPolicyRequest is the request struct for api DeleteTLSCipherPolicy +type DeleteTLSCipherPolicyRequest struct { + *requests.RpcRequest + AccessKeyId string `position:"Query" name:"access_key_id"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + TLSCipherPolicyId string `position:"Query" name:"TLSCipherPolicyId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteTLSCipherPolicyResponse is the response struct for api DeleteTLSCipherPolicy +type DeleteTLSCipherPolicyResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteTLSCipherPolicyRequest creates a request to invoke DeleteTLSCipherPolicy API +func CreateDeleteTLSCipherPolicyRequest() (request *DeleteTLSCipherPolicyRequest) { + request = &DeleteTLSCipherPolicyRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "DeleteTLSCipherPolicy", "slb", "openAPI") + request.Method = requests.POST + return +} + +// CreateDeleteTLSCipherPolicyResponse creates a response to parse from DeleteTLSCipherPolicy response +func CreateDeleteTLSCipherPolicyResponse() (response *DeleteTLSCipherPolicyResponse) { + response = &DeleteTLSCipherPolicyResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_v_server_group.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_v_server_group.go index fd049987..dd350a4a 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_v_server_group.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/delete_v_server_group.go @@ -21,7 +21,6 @@ import ( ) // DeleteVServerGroup invokes the slb.DeleteVServerGroup API synchronously -// api document: https://help.aliyun.com/api/slb/deletevservergroup.html func (client *Client) DeleteVServerGroup(request *DeleteVServerGroupRequest) (response *DeleteVServerGroupResponse, err error) { response = CreateDeleteVServerGroupResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DeleteVServerGroup(request *DeleteVServerGroupRequest) (re } // DeleteVServerGroupWithChan invokes the slb.DeleteVServerGroup API asynchronously -// api document: https://help.aliyun.com/api/slb/deletevservergroup.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteVServerGroupWithChan(request *DeleteVServerGroupRequest) (<-chan *DeleteVServerGroupResponse, <-chan error) { responseChan := make(chan *DeleteVServerGroupResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DeleteVServerGroupWithChan(request *DeleteVServerGroupRequ } // DeleteVServerGroupWithCallback invokes the slb.DeleteVServerGroup API asynchronously -// api document: https://help.aliyun.com/api/slb/deletevservergroup.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DeleteVServerGroupWithCallback(request *DeleteVServerGroupRequest, callback func(response *DeleteVServerGroupResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,8 +72,8 @@ func (client *Client) DeleteVServerGroupWithCallback(request *DeleteVServerGroup type DeleteVServerGroupRequest struct { *requests.RpcRequest AccessKeyId string `position:"Query" name:"access_key_id"` - VServerGroupId string `position:"Query" name:"VServerGroupId"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + VServerGroupId string `position:"Query" name:"VServerGroupId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` @@ -97,6 +92,7 @@ func CreateDeleteVServerGroupRequest() (request *DeleteVServerGroupRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "DeleteVServerGroup", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_access_control_list_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_access_control_list_attribute.go index 6b432f31..7052b7a7 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_access_control_list_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_access_control_list_attribute.go @@ -21,7 +21,6 @@ import ( ) // DescribeAccessControlListAttribute invokes the slb.DescribeAccessControlListAttribute API synchronously -// api document: https://help.aliyun.com/api/slb/describeaccesscontrollistattribute.html func (client *Client) DescribeAccessControlListAttribute(request *DescribeAccessControlListAttributeRequest) (response *DescribeAccessControlListAttributeResponse, err error) { response = CreateDescribeAccessControlListAttributeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeAccessControlListAttribute(request *DescribeAccess } // DescribeAccessControlListAttributeWithChan invokes the slb.DescribeAccessControlListAttribute API asynchronously -// api document: https://help.aliyun.com/api/slb/describeaccesscontrollistattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeAccessControlListAttributeWithChan(request *DescribeAccessControlListAttributeRequest) (<-chan *DescribeAccessControlListAttributeResponse, <-chan error) { responseChan := make(chan *DescribeAccessControlListAttributeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeAccessControlListAttributeWithChan(request *Descri } // DescribeAccessControlListAttributeWithCallback invokes the slb.DescribeAccessControlListAttribute API asynchronously -// api document: https://help.aliyun.com/api/slb/describeaccesscontrollistattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeAccessControlListAttributeWithCallback(request *DescribeAccessControlListAttributeRequest, callback func(response *DescribeAccessControlListAttributeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,25 +72,31 @@ func (client *Client) DescribeAccessControlListAttributeWithCallback(request *De type DescribeAccessControlListAttributeRequest struct { *requests.RpcRequest AccessKeyId string `position:"Query" name:"access_key_id"` - AclId string `position:"Query" name:"AclId"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + AclId string `position:"Query" name:"AclId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` AclEntryComment string `position:"Query" name:"AclEntryComment"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` Tags string `position:"Query" name:"Tags"` + Page requests.Integer `position:"Query" name:"Page"` } // DescribeAccessControlListAttributeResponse is the response struct for api DescribeAccessControlListAttribute type DescribeAccessControlListAttributeResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - AclId string `json:"AclId" xml:"AclId"` - AclName string `json:"AclName" xml:"AclName"` - AddressIPVersion string `json:"AddressIPVersion" xml:"AddressIPVersion"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - AclEntrys AclEntrys `json:"AclEntrys" xml:"AclEntrys"` - RelatedListeners RelatedListeners `json:"RelatedListeners" xml:"RelatedListeners"` + ServiceManagedMode string `json:"ServiceManagedMode" xml:"ServiceManagedMode"` + AclId string `json:"AclId" xml:"AclId"` + AddressIPVersion string `json:"AddressIPVersion" xml:"AddressIPVersion"` + RequestId string `json:"RequestId" xml:"RequestId"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + AclName string `json:"AclName" xml:"AclName"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + TotalAclEntry int `json:"TotalAclEntry" xml:"TotalAclEntry"` + Tags TagsInDescribeAccessControlListAttribute `json:"Tags" xml:"Tags"` + AclEntrys AclEntrys `json:"AclEntrys" xml:"AclEntrys"` + RelatedListeners RelatedListeners `json:"RelatedListeners" xml:"RelatedListeners"` } // CreateDescribeAccessControlListAttributeRequest creates a request to invoke DescribeAccessControlListAttribute API @@ -104,6 +105,7 @@ func CreateDescribeAccessControlListAttributeRequest() (request *DescribeAccessC RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "DescribeAccessControlListAttribute", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_access_control_lists.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_access_control_lists.go index 513e9e51..1a289137 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_access_control_lists.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_access_control_lists.go @@ -21,7 +21,6 @@ import ( ) // DescribeAccessControlLists invokes the slb.DescribeAccessControlLists API synchronously -// api document: https://help.aliyun.com/api/slb/describeaccesscontrollists.html func (client *Client) DescribeAccessControlLists(request *DescribeAccessControlListsRequest) (response *DescribeAccessControlListsResponse, err error) { response = CreateDescribeAccessControlListsResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeAccessControlLists(request *DescribeAccessControlL } // DescribeAccessControlListsWithChan invokes the slb.DescribeAccessControlLists API asynchronously -// api document: https://help.aliyun.com/api/slb/describeaccesscontrollists.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeAccessControlListsWithChan(request *DescribeAccessControlListsRequest) (<-chan *DescribeAccessControlListsResponse, <-chan error) { responseChan := make(chan *DescribeAccessControlListsResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeAccessControlListsWithChan(request *DescribeAccess } // DescribeAccessControlListsWithCallback invokes the slb.DescribeAccessControlLists API asynchronously -// api document: https://help.aliyun.com/api/slb/describeaccesscontrollists.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeAccessControlListsWithCallback(request *DescribeAccessControlListsRequest, callback func(response *DescribeAccessControlListsResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -79,15 +74,15 @@ type DescribeAccessControlListsRequest struct { AccessKeyId string `position:"Query" name:"access_key_id"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` AclName string `position:"Query" name:"AclName"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` AddressIPVersion string `position:"Query" name:"AddressIPVersion"` PageNumber requests.Integer `position:"Query" name:"PageNumber"` - Tags string `position:"Query" name:"Tags"` ResourceGroupId string `position:"Query" name:"ResourceGroupId"` PageSize requests.Integer `position:"Query" name:"PageSize"` Tag *[]DescribeAccessControlListsTag `position:"Query" name:"Tag" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Tags string `position:"Query" name:"Tags"` } // DescribeAccessControlListsTag is a repeated param struct in DescribeAccessControlListsRequest @@ -99,8 +94,12 @@ type DescribeAccessControlListsTag struct { // DescribeAccessControlListsResponse is the response struct for api DescribeAccessControlLists type DescribeAccessControlListsResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - Acls Acls `json:"Acls" xml:"Acls"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + Count int `json:"Count" xml:"Count"` + Acls Acls `json:"Acls" xml:"Acls"` } // CreateDescribeAccessControlListsRequest creates a request to invoke DescribeAccessControlLists API @@ -109,6 +108,7 @@ func CreateDescribeAccessControlListsRequest() (request *DescribeAccessControlLi RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "DescribeAccessControlLists", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_access_logs_download_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_access_logs_download_attribute.go new file mode 100644 index 00000000..b0f8ab7a --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_access_logs_download_attribute.go @@ -0,0 +1,113 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeAccessLogsDownloadAttribute invokes the slb.DescribeAccessLogsDownloadAttribute API synchronously +func (client *Client) DescribeAccessLogsDownloadAttribute(request *DescribeAccessLogsDownloadAttributeRequest) (response *DescribeAccessLogsDownloadAttributeResponse, err error) { + response = CreateDescribeAccessLogsDownloadAttributeResponse() + err = client.DoAction(request, response) + return +} + +// DescribeAccessLogsDownloadAttributeWithChan invokes the slb.DescribeAccessLogsDownloadAttribute API asynchronously +func (client *Client) DescribeAccessLogsDownloadAttributeWithChan(request *DescribeAccessLogsDownloadAttributeRequest) (<-chan *DescribeAccessLogsDownloadAttributeResponse, <-chan error) { + responseChan := make(chan *DescribeAccessLogsDownloadAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeAccessLogsDownloadAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeAccessLogsDownloadAttributeWithCallback invokes the slb.DescribeAccessLogsDownloadAttribute API asynchronously +func (client *Client) DescribeAccessLogsDownloadAttributeWithCallback(request *DescribeAccessLogsDownloadAttributeRequest, callback func(response *DescribeAccessLogsDownloadAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeAccessLogsDownloadAttributeResponse + var err error + defer close(result) + response, err = client.DescribeAccessLogsDownloadAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeAccessLogsDownloadAttributeRequest is the request struct for api DescribeAccessLogsDownloadAttribute +type DescribeAccessLogsDownloadAttributeRequest struct { + *requests.RpcRequest + AccessKeyId string `position:"Query" name:"access_key_id"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + LogType string `position:"Query" name:"LogType"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` +} + +// DescribeAccessLogsDownloadAttributeResponse is the response struct for api DescribeAccessLogsDownloadAttribute +type DescribeAccessLogsDownloadAttributeResponse struct { + *responses.BaseResponse + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + Count int `json:"Count" xml:"Count"` + LogsDownloadAttributes LogsDownloadAttributes `json:"LogsDownloadAttributes" xml:"LogsDownloadAttributes"` +} + +// CreateDescribeAccessLogsDownloadAttributeRequest creates a request to invoke DescribeAccessLogsDownloadAttribute API +func CreateDescribeAccessLogsDownloadAttributeRequest() (request *DescribeAccessLogsDownloadAttributeRequest) { + request = &DescribeAccessLogsDownloadAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "DescribeAccessLogsDownloadAttribute", "slb", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeAccessLogsDownloadAttributeResponse creates a response to parse from DescribeAccessLogsDownloadAttribute response +func CreateDescribeAccessLogsDownloadAttributeResponse() (response *DescribeAccessLogsDownloadAttributeResponse) { + response = &DescribeAccessLogsDownloadAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_available_resource.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_available_resource.go index 5deb301d..52e20abc 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_available_resource.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_available_resource.go @@ -21,7 +21,6 @@ import ( ) // DescribeAvailableResource invokes the slb.DescribeAvailableResource API synchronously -// api document: https://help.aliyun.com/api/slb/describeavailableresource.html func (client *Client) DescribeAvailableResource(request *DescribeAvailableResourceRequest) (response *DescribeAvailableResourceResponse, err error) { response = CreateDescribeAvailableResourceResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeAvailableResource(request *DescribeAvailableResour } // DescribeAvailableResourceWithChan invokes the slb.DescribeAvailableResource API asynchronously -// api document: https://help.aliyun.com/api/slb/describeavailableresource.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeAvailableResourceWithChan(request *DescribeAvailableResourceRequest) (<-chan *DescribeAvailableResourceResponse, <-chan error) { responseChan := make(chan *DescribeAvailableResourceResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeAvailableResourceWithChan(request *DescribeAvailab } // DescribeAvailableResourceWithCallback invokes the slb.DescribeAvailableResource API asynchronously -// api document: https://help.aliyun.com/api/slb/describeavailableresource.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeAvailableResourceWithCallback(request *DescribeAvailableResourceRequest, callback func(response *DescribeAvailableResourceResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -78,11 +73,11 @@ type DescribeAvailableResourceRequest struct { *requests.RpcRequest AccessKeyId string `position:"Query" name:"access_key_id"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + AddressIPVersion string `position:"Query" name:"AddressIPVersion"` + AddressType string `position:"Query" name:"AddressType"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - AddressType string `position:"Query" name:"AddressType"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - AddressIPVersion string `position:"Query" name:"AddressIPVersion"` } // DescribeAvailableResourceResponse is the response struct for api DescribeAvailableResource @@ -98,6 +93,7 @@ func CreateDescribeAvailableResourceRequest() (request *DescribeAvailableResourc RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "DescribeAvailableResource", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_ca_certificates.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_ca_certificates.go index cb970da6..61bcd554 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_ca_certificates.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_ca_certificates.go @@ -21,7 +21,6 @@ import ( ) // DescribeCACertificates invokes the slb.DescribeCACertificates API synchronously -// api document: https://help.aliyun.com/api/slb/describecacertificates.html func (client *Client) DescribeCACertificates(request *DescribeCACertificatesRequest) (response *DescribeCACertificatesResponse, err error) { response = CreateDescribeCACertificatesResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeCACertificates(request *DescribeCACertificatesRequ } // DescribeCACertificatesWithChan invokes the slb.DescribeCACertificates API asynchronously -// api document: https://help.aliyun.com/api/slb/describecacertificates.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeCACertificatesWithChan(request *DescribeCACertificatesRequest) (<-chan *DescribeCACertificatesResponse, <-chan error) { responseChan := make(chan *DescribeCACertificatesResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeCACertificatesWithChan(request *DescribeCACertific } // DescribeCACertificatesWithCallback invokes the slb.DescribeCACertificates API asynchronously -// api document: https://help.aliyun.com/api/slb/describecacertificates.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeCACertificatesWithCallback(request *DescribeCACertificatesRequest, callback func(response *DescribeCACertificatesResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,11 +72,11 @@ func (client *Client) DescribeCACertificatesWithCallback(request *DescribeCACert type DescribeCACertificatesRequest struct { *requests.RpcRequest AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + Tag *[]DescribeCACertificatesTag `position:"Query" name:"Tag" type:"Repeated"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - Tag *[]DescribeCACertificatesTag `position:"Query" name:"Tag" type:"Repeated"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` CACertificateId string `position:"Query" name:"CACertificateId"` } @@ -105,6 +100,7 @@ func CreateDescribeCACertificatesRequest() (request *DescribeCACertificatesReque RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "DescribeCACertificates", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_domain_extension_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_domain_extension_attribute.go new file mode 100644 index 00000000..9439e6f8 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_domain_extension_attribute.go @@ -0,0 +1,112 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeDomainExtensionAttribute invokes the slb.DescribeDomainExtensionAttribute API synchronously +func (client *Client) DescribeDomainExtensionAttribute(request *DescribeDomainExtensionAttributeRequest) (response *DescribeDomainExtensionAttributeResponse, err error) { + response = CreateDescribeDomainExtensionAttributeResponse() + err = client.DoAction(request, response) + return +} + +// DescribeDomainExtensionAttributeWithChan invokes the slb.DescribeDomainExtensionAttribute API asynchronously +func (client *Client) DescribeDomainExtensionAttributeWithChan(request *DescribeDomainExtensionAttributeRequest) (<-chan *DescribeDomainExtensionAttributeResponse, <-chan error) { + responseChan := make(chan *DescribeDomainExtensionAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeDomainExtensionAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeDomainExtensionAttributeWithCallback invokes the slb.DescribeDomainExtensionAttribute API asynchronously +func (client *Client) DescribeDomainExtensionAttributeWithCallback(request *DescribeDomainExtensionAttributeRequest, callback func(response *DescribeDomainExtensionAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeDomainExtensionAttributeResponse + var err error + defer close(result) + response, err = client.DescribeDomainExtensionAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeDomainExtensionAttributeRequest is the request struct for api DescribeDomainExtensionAttribute +type DescribeDomainExtensionAttributeRequest struct { + *requests.RpcRequest + AccessKeyId string `position:"Query" name:"access_key_id"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DomainExtensionId string `position:"Query" name:"DomainExtensionId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Tags string `position:"Query" name:"Tags"` +} + +// DescribeDomainExtensionAttributeResponse is the response struct for api DescribeDomainExtensionAttribute +type DescribeDomainExtensionAttributeResponse struct { + *responses.BaseResponse + Domain string `json:"Domain" xml:"Domain"` + RequestId string `json:"RequestId" xml:"RequestId"` + LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` + ListenerPort int `json:"ListenerPort" xml:"ListenerPort"` + ServerCertificateId string `json:"ServerCertificateId" xml:"ServerCertificateId"` + DomainExtensionId string `json:"DomainExtensionId" xml:"DomainExtensionId"` + Certificates CertificatesInDescribeDomainExtensionAttribute `json:"Certificates" xml:"Certificates"` + ServerCertificates ServerCertificatesInDescribeDomainExtensionAttribute `json:"ServerCertificates" xml:"ServerCertificates"` +} + +// CreateDescribeDomainExtensionAttributeRequest creates a request to invoke DescribeDomainExtensionAttribute API +func CreateDescribeDomainExtensionAttributeRequest() (request *DescribeDomainExtensionAttributeRequest) { + request = &DescribeDomainExtensionAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "DescribeDomainExtensionAttribute", "slb", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeDomainExtensionAttributeResponse creates a response to parse from DescribeDomainExtensionAttribute response +func CreateDescribeDomainExtensionAttributeResponse() (response *DescribeDomainExtensionAttributeResponse) { + response = &DescribeDomainExtensionAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_domain_extensions.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_domain_extensions.go index 7d122fd8..27eaeacc 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_domain_extensions.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_domain_extensions.go @@ -21,7 +21,6 @@ import ( ) // DescribeDomainExtensions invokes the slb.DescribeDomainExtensions API synchronously -// api document: https://help.aliyun.com/api/slb/describedomainextensions.html func (client *Client) DescribeDomainExtensions(request *DescribeDomainExtensionsRequest) (response *DescribeDomainExtensionsResponse, err error) { response = CreateDescribeDomainExtensionsResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeDomainExtensions(request *DescribeDomainExtensions } // DescribeDomainExtensionsWithChan invokes the slb.DescribeDomainExtensions API asynchronously -// api document: https://help.aliyun.com/api/slb/describedomainextensions.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeDomainExtensionsWithChan(request *DescribeDomainExtensionsRequest) (<-chan *DescribeDomainExtensionsResponse, <-chan error) { responseChan := make(chan *DescribeDomainExtensionsResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeDomainExtensionsWithChan(request *DescribeDomainEx } // DescribeDomainExtensionsWithCallback invokes the slb.DescribeDomainExtensions API asynchronously -// api document: https://help.aliyun.com/api/slb/describedomainextensions.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeDomainExtensionsWithCallback(request *DescribeDomainExtensionsRequest, callback func(response *DescribeDomainExtensionsResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -78,13 +73,13 @@ type DescribeDomainExtensionsRequest struct { *requests.RpcRequest AccessKeyId string `position:"Query" name:"access_key_id"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + DomainExtensionId string `position:"Query" name:"DomainExtensionId"` ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` Tags string `position:"Query" name:"Tags"` - DomainExtensionId string `position:"Query" name:"DomainExtensionId"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` } // DescribeDomainExtensionsResponse is the response struct for api DescribeDomainExtensions @@ -100,6 +95,7 @@ func CreateDescribeDomainExtensionsRequest() (request *DescribeDomainExtensionsR RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "DescribeDomainExtensions", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_health_status.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_health_status.go index 24ec2c47..6b87e688 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_health_status.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_health_status.go @@ -21,7 +21,6 @@ import ( ) // DescribeHealthStatus invokes the slb.DescribeHealthStatus API synchronously -// api document: https://help.aliyun.com/api/slb/describehealthstatus.html func (client *Client) DescribeHealthStatus(request *DescribeHealthStatusRequest) (response *DescribeHealthStatusResponse, err error) { response = CreateDescribeHealthStatusResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeHealthStatus(request *DescribeHealthStatusRequest) } // DescribeHealthStatusWithChan invokes the slb.DescribeHealthStatus API asynchronously -// api document: https://help.aliyun.com/api/slb/describehealthstatus.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeHealthStatusWithChan(request *DescribeHealthStatusRequest) (<-chan *DescribeHealthStatusResponse, <-chan error) { responseChan := make(chan *DescribeHealthStatusResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeHealthStatusWithChan(request *DescribeHealthStatus } // DescribeHealthStatusWithCallback invokes the slb.DescribeHealthStatus API asynchronously -// api document: https://help.aliyun.com/api/slb/describehealthstatus.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeHealthStatusWithCallback(request *DescribeHealthStatusRequest, callback func(response *DescribeHealthStatusResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -79,12 +74,12 @@ type DescribeHealthStatusRequest struct { AccessKeyId string `position:"Query" name:"access_key_id"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` ListenerProtocol string `position:"Query" name:"ListenerProtocol"` Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` } // DescribeHealthStatusResponse is the response struct for api DescribeHealthStatus @@ -100,6 +95,7 @@ func CreateDescribeHealthStatusRequest() (request *DescribeHealthStatusRequest) RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "DescribeHealthStatus", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_high_defination_monitor.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_high_defination_monitor.go new file mode 100644 index 00000000..f79e9f39 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_high_defination_monitor.go @@ -0,0 +1,107 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeHighDefinationMonitor invokes the slb.DescribeHighDefinationMonitor API synchronously +func (client *Client) DescribeHighDefinationMonitor(request *DescribeHighDefinationMonitorRequest) (response *DescribeHighDefinationMonitorResponse, err error) { + response = CreateDescribeHighDefinationMonitorResponse() + err = client.DoAction(request, response) + return +} + +// DescribeHighDefinationMonitorWithChan invokes the slb.DescribeHighDefinationMonitor API asynchronously +func (client *Client) DescribeHighDefinationMonitorWithChan(request *DescribeHighDefinationMonitorRequest) (<-chan *DescribeHighDefinationMonitorResponse, <-chan error) { + responseChan := make(chan *DescribeHighDefinationMonitorResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeHighDefinationMonitor(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeHighDefinationMonitorWithCallback invokes the slb.DescribeHighDefinationMonitor API asynchronously +func (client *Client) DescribeHighDefinationMonitorWithCallback(request *DescribeHighDefinationMonitorRequest, callback func(response *DescribeHighDefinationMonitorResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeHighDefinationMonitorResponse + var err error + defer close(result) + response, err = client.DescribeHighDefinationMonitor(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeHighDefinationMonitorRequest is the request struct for api DescribeHighDefinationMonitor +type DescribeHighDefinationMonitorRequest struct { + *requests.RpcRequest + AccessKeyId string `position:"Query" name:"access_key_id"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Tags string `position:"Query" name:"Tags"` +} + +// DescribeHighDefinationMonitorResponse is the response struct for api DescribeHighDefinationMonitor +type DescribeHighDefinationMonitorResponse struct { + *responses.BaseResponse + LogProject string `json:"LogProject" xml:"LogProject"` + RequestId string `json:"RequestId" xml:"RequestId"` + LogStore string `json:"LogStore" xml:"LogStore"` + Success string `json:"Success" xml:"Success"` +} + +// CreateDescribeHighDefinationMonitorRequest creates a request to invoke DescribeHighDefinationMonitor API +func CreateDescribeHighDefinationMonitorRequest() (request *DescribeHighDefinationMonitorRequest) { + request = &DescribeHighDefinationMonitorRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "DescribeHighDefinationMonitor", "slb", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeHighDefinationMonitorResponse creates a response to parse from DescribeHighDefinationMonitor response +func CreateDescribeHighDefinationMonitorResponse() (response *DescribeHighDefinationMonitorResponse) { + response = &DescribeHighDefinationMonitorResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_listener_access_control_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_listener_access_control_attribute.go index 5bf715a0..91a2cd7e 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_listener_access_control_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_listener_access_control_attribute.go @@ -21,7 +21,6 @@ import ( ) // DescribeListenerAccessControlAttribute invokes the slb.DescribeListenerAccessControlAttribute API synchronously -// api document: https://help.aliyun.com/api/slb/describelisteneraccesscontrolattribute.html func (client *Client) DescribeListenerAccessControlAttribute(request *DescribeListenerAccessControlAttributeRequest) (response *DescribeListenerAccessControlAttributeResponse, err error) { response = CreateDescribeListenerAccessControlAttributeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeListenerAccessControlAttribute(request *DescribeLi } // DescribeListenerAccessControlAttributeWithChan invokes the slb.DescribeListenerAccessControlAttribute API asynchronously -// api document: https://help.aliyun.com/api/slb/describelisteneraccesscontrolattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeListenerAccessControlAttributeWithChan(request *DescribeListenerAccessControlAttributeRequest) (<-chan *DescribeListenerAccessControlAttributeResponse, <-chan error) { responseChan := make(chan *DescribeListenerAccessControlAttributeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeListenerAccessControlAttributeWithChan(request *De } // DescribeListenerAccessControlAttributeWithCallback invokes the slb.DescribeListenerAccessControlAttribute API asynchronously -// api document: https://help.aliyun.com/api/slb/describelisteneraccesscontrolattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeListenerAccessControlAttributeWithCallback(request *DescribeListenerAccessControlAttributeRequest, callback func(response *DescribeListenerAccessControlAttributeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -79,20 +74,20 @@ type DescribeListenerAccessControlAttributeRequest struct { AccessKeyId string `position:"Query" name:"access_key_id"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` ListenerProtocol string `position:"Query" name:"ListenerProtocol"` Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` } // DescribeListenerAccessControlAttributeResponse is the response struct for api DescribeListenerAccessControlAttribute type DescribeListenerAccessControlAttributeResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - AccessControlStatus string `json:"AccessControlStatus" xml:"AccessControlStatus"` SourceItems string `json:"SourceItems" xml:"SourceItems"` + AccessControlStatus string `json:"AccessControlStatus" xml:"AccessControlStatus"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateDescribeListenerAccessControlAttributeRequest creates a request to invoke DescribeListenerAccessControlAttribute API @@ -101,6 +96,7 @@ func CreateDescribeListenerAccessControlAttributeRequest() (request *DescribeLis RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "DescribeListenerAccessControlAttribute", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancer_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancer_attribute.go index 88de6fbd..696f5bc2 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancer_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancer_attribute.go @@ -21,7 +21,6 @@ import ( ) // DescribeLoadBalancerAttribute invokes the slb.DescribeLoadBalancerAttribute API synchronously -// api document: https://help.aliyun.com/api/slb/describeloadbalancerattribute.html func (client *Client) DescribeLoadBalancerAttribute(request *DescribeLoadBalancerAttributeRequest) (response *DescribeLoadBalancerAttributeResponse, err error) { response = CreateDescribeLoadBalancerAttributeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeLoadBalancerAttribute(request *DescribeLoadBalance } // DescribeLoadBalancerAttributeWithChan invokes the slb.DescribeLoadBalancerAttribute API asynchronously -// api document: https://help.aliyun.com/api/slb/describeloadbalancerattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeLoadBalancerAttributeWithChan(request *DescribeLoadBalancerAttributeRequest) (<-chan *DescribeLoadBalancerAttributeResponse, <-chan error) { responseChan := make(chan *DescribeLoadBalancerAttributeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeLoadBalancerAttributeWithChan(request *DescribeLoa } // DescribeLoadBalancerAttributeWithCallback invokes the slb.DescribeLoadBalancerAttribute API asynchronously -// api document: https://help.aliyun.com/api/slb/describeloadbalancerattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeLoadBalancerAttributeWithCallback(request *DescribeLoadBalancerAttributeRequest, callback func(response *DescribeLoadBalancerAttributeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,53 +72,69 @@ func (client *Client) DescribeLoadBalancerAttributeWithCallback(request *Describ type DescribeLoadBalancerAttributeRequest struct { *requests.RpcRequest AccessKeyId string `position:"Query" name:"access_key_id"` - IncludeReservedData requests.Boolean `position:"Query" name:"IncludeReservedData"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + IncludeReservedData requests.Boolean `position:"Query" name:"IncludeReservedData"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` } // DescribeLoadBalancerAttributeResponse is the response struct for api DescribeLoadBalancerAttribute type DescribeLoadBalancerAttributeResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` + VpcId string `json:"VpcId" xml:"VpcId"` + CreateTimeStamp int64 `json:"CreateTimeStamp" xml:"CreateTimeStamp"` + ReservedInfoBandwidth string `json:"ReservedInfoBandwidth" xml:"ReservedInfoBandwidth"` + CloudInstanceId string `json:"CloudInstanceId" xml:"CloudInstanceId"` + HasReservedInfo string `json:"HasReservedInfo" xml:"HasReservedInfo"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - LoadBalancerName string `json:"LoadBalancerName" xml:"LoadBalancerName"` - LoadBalancerStatus string `json:"LoadBalancerStatus" xml:"LoadBalancerStatus"` - RegionId string `json:"RegionId" xml:"RegionId"` - RegionIdAlias string `json:"RegionIdAlias" xml:"RegionIdAlias"` - Address string `json:"Address" xml:"Address"` + TunnelType string `json:"TunnelType" xml:"TunnelType"` + PayType string `json:"PayType" xml:"PayType"` + ReservedInfoOrderType string `json:"ReservedInfoOrderType" xml:"ReservedInfoOrderType"` AddressType string `json:"AddressType" xml:"AddressType"` - VpcId string `json:"VpcId" xml:"VpcId"` - VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + SupportPrivateLink bool `json:"SupportPrivateLink" xml:"SupportPrivateLink"` NetworkType string `json:"NetworkType" xml:"NetworkType"` - InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` - AutoReleaseTime int64 `json:"AutoReleaseTime" xml:"AutoReleaseTime"` + ServiceManagedMode string `json:"ServiceManagedMode" xml:"ServiceManagedMode"` + SpecBpsFlag bool `json:"SpecBpsFlag" xml:"SpecBpsFlag"` + AddressIPVersion string `json:"AddressIPVersion" xml:"AddressIPVersion"` + RenewalCycUnit string `json:"RenewalCycUnit" xml:"RenewalCycUnit"` + RequestId string `json:"RequestId" xml:"RequestId"` Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` - LoadBalancerSpec string `json:"LoadBalancerSpec" xml:"LoadBalancerSpec"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - CreateTimeStamp int64 `json:"CreateTimeStamp" xml:"CreateTimeStamp"` - EndTime string `json:"EndTime" xml:"EndTime"` + LoadBalancerName string `json:"LoadBalancerName" xml:"LoadBalancerName"` + Address string `json:"Address" xml:"Address"` + AssociatedCenStatus string `json:"AssociatedCenStatus" xml:"AssociatedCenStatus"` + SlaveZoneId string `json:"SlaveZoneId" xml:"SlaveZoneId"` + CloudInstanceType string `json:"CloudInstanceType" xml:"CloudInstanceType"` EndTimeStamp int64 `json:"EndTimeStamp" xml:"EndTimeStamp"` - PayType string `json:"PayType" xml:"PayType"` + ReservedInfoActiveTime string `json:"ReservedInfoActiveTime" xml:"ReservedInfoActiveTime"` MasterZoneId string `json:"MasterZoneId" xml:"MasterZoneId"` - SlaveZoneId string `json:"SlaveZoneId" xml:"SlaveZoneId"` - AddressIPVersion string `json:"AddressIPVersion" xml:"AddressIPVersion"` - CloudType string `json:"CloudType" xml:"CloudType"` - RenewalDuration int `json:"RenewalDuration" xml:"RenewalDuration"` - RenewalStatus string `json:"RenewalStatus" xml:"RenewalStatus"` - RenewalCycUnit string `json:"RenewalCycUnit" xml:"RenewalCycUnit"` - HasReservedInfo string `json:"HasReservedInfo" xml:"HasReservedInfo"` - ReservedInfoOrderType string `json:"ReservedInfoOrderType" xml:"ReservedInfoOrderType"` ReservedInfoInternetChargeType string `json:"ReservedInfoInternetChargeType" xml:"ReservedInfoInternetChargeType"` - ReservedInfoBandwidth string `json:"ReservedInfoBandwidth" xml:"ReservedInfoBandwidth"` - ReservedInfoActiveTime string `json:"ReservedInfoActiveTime" xml:"ReservedInfoActiveTime"` + LoadBalancerSpec string `json:"LoadBalancerSpec" xml:"LoadBalancerSpec"` + SpecType string `json:"SpecType" xml:"SpecType"` + CloudType string `json:"CloudType" xml:"CloudType"` + AutoReleaseTime int64 `json:"AutoReleaseTime" xml:"AutoReleaseTime"` + ModificationProtectionReason string `json:"ModificationProtectionReason" xml:"ModificationProtectionReason"` + RegionId string `json:"RegionId" xml:"RegionId"` + ModificationProtectionStatus string `json:"ModificationProtectionStatus" xml:"ModificationProtectionStatus"` + EndTime string `json:"EndTime" xml:"EndTime"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + LoadBalancerStatus string `json:"LoadBalancerStatus" xml:"LoadBalancerStatus"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` + BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` + AssociatedCenId string `json:"AssociatedCenId" xml:"AssociatedCenId"` DeleteProtection string `json:"DeleteProtection" xml:"DeleteProtection"` + RegionIdAlias string `json:"RegionIdAlias" xml:"RegionIdAlias"` + RenewalStatus string `json:"RenewalStatus" xml:"RenewalStatus"` + RenewalDuration int `json:"RenewalDuration" xml:"RenewalDuration"` + CloudInstanceUid int64 `json:"CloudInstanceUid" xml:"CloudInstanceUid"` + InstanceChargeType string `json:"InstanceChargeType" xml:"InstanceChargeType"` + Labels Labels `json:"Labels" xml:"Labels"` ListenerPorts ListenerPorts `json:"ListenerPorts" xml:"ListenerPorts"` + Tags TagsInDescribeLoadBalancerAttribute `json:"Tags" xml:"Tags"` ListenerPortsAndProtocal ListenerPortsAndProtocal `json:"ListenerPortsAndProtocal" xml:"ListenerPortsAndProtocal"` ListenerPortsAndProtocol ListenerPortsAndProtocol `json:"ListenerPortsAndProtocol" xml:"ListenerPortsAndProtocol"` BackendServers BackendServersInDescribeLoadBalancerAttribute `json:"BackendServers" xml:"BackendServers"` @@ -135,6 +146,7 @@ func CreateDescribeLoadBalancerAttributeRequest() (request *DescribeLoadBalancer RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "DescribeLoadBalancerAttribute", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancer_http_listener_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancer_http_listener_attribute.go index 6c19932c..36f8d578 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancer_http_listener_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancer_http_listener_attribute.go @@ -21,7 +21,6 @@ import ( ) // DescribeLoadBalancerHTTPListenerAttribute invokes the slb.DescribeLoadBalancerHTTPListenerAttribute API synchronously -// api document: https://help.aliyun.com/api/slb/describeloadbalancerhttplistenerattribute.html func (client *Client) DescribeLoadBalancerHTTPListenerAttribute(request *DescribeLoadBalancerHTTPListenerAttributeRequest) (response *DescribeLoadBalancerHTTPListenerAttributeResponse, err error) { response = CreateDescribeLoadBalancerHTTPListenerAttributeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeLoadBalancerHTTPListenerAttribute(request *Describ } // DescribeLoadBalancerHTTPListenerAttributeWithChan invokes the slb.DescribeLoadBalancerHTTPListenerAttribute API asynchronously -// api document: https://help.aliyun.com/api/slb/describeloadbalancerhttplistenerattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeLoadBalancerHTTPListenerAttributeWithChan(request *DescribeLoadBalancerHTTPListenerAttributeRequest) (<-chan *DescribeLoadBalancerHTTPListenerAttributeResponse, <-chan error) { responseChan := make(chan *DescribeLoadBalancerHTTPListenerAttributeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeLoadBalancerHTTPListenerAttributeWithChan(request } // DescribeLoadBalancerHTTPListenerAttributeWithCallback invokes the slb.DescribeLoadBalancerHTTPListenerAttribute API asynchronously -// api document: https://help.aliyun.com/api/slb/describeloadbalancerhttplistenerattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeLoadBalancerHTTPListenerAttributeWithCallback(request *DescribeLoadBalancerHTTPListenerAttributeRequest, callback func(response *DescribeLoadBalancerHTTPListenerAttributeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -79,55 +74,63 @@ type DescribeLoadBalancerHTTPListenerAttributeRequest struct { AccessKeyId string `position:"Query" name:"access_key_id"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` } // DescribeLoadBalancerHTTPListenerAttributeResponse is the response struct for api DescribeLoadBalancerHTTPListenerAttribute type DescribeLoadBalancerHTTPListenerAttributeResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - ListenerPort int `json:"ListenerPort" xml:"ListenerPort"` - BackendServerPort int `json:"BackendServerPort" xml:"BackendServerPort"` - Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` - Status string `json:"Status" xml:"Status"` - SecurityStatus string `json:"SecurityStatus" xml:"SecurityStatus"` - XForwardedFor string `json:"XForwardedFor" xml:"XForwardedFor"` - Scheduler string `json:"Scheduler" xml:"Scheduler"` - StickySession string `json:"StickySession" xml:"StickySession"` - StickySessionType string `json:"StickySessionType" xml:"StickySessionType"` - CookieTimeout int `json:"CookieTimeout" xml:"CookieTimeout"` - Cookie string `json:"Cookie" xml:"Cookie"` - HealthCheck string `json:"HealthCheck" xml:"HealthCheck"` - HealthCheckType string `json:"HealthCheckType" xml:"HealthCheckType"` - HealthCheckDomain string `json:"HealthCheckDomain" xml:"HealthCheckDomain"` - HealthCheckURI string `json:"HealthCheckURI" xml:"HealthCheckURI"` - HealthyThreshold int `json:"HealthyThreshold" xml:"HealthyThreshold"` - UnhealthyThreshold int `json:"UnhealthyThreshold" xml:"UnhealthyThreshold"` - HealthCheckTimeout int `json:"HealthCheckTimeout" xml:"HealthCheckTimeout"` - HealthCheckInterval int `json:"HealthCheckInterval" xml:"HealthCheckInterval"` - HealthCheckConnectPort int `json:"HealthCheckConnectPort" xml:"HealthCheckConnectPort"` - HealthCheckHttpCode string `json:"HealthCheckHttpCode" xml:"HealthCheckHttpCode"` - HealthCheckMethod string `json:"HealthCheckMethod" xml:"HealthCheckMethod"` - MaxConnection int `json:"MaxConnection" xml:"MaxConnection"` - VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` - Gzip string `json:"Gzip" xml:"Gzip"` - XForwardedForSLBIP string `json:"XForwardedFor_SLBIP" xml:"XForwardedFor_SLBIP"` - XForwardedForSLBID string `json:"XForwardedFor_SLBID" xml:"XForwardedFor_SLBID"` - XForwardedForProto string `json:"XForwardedFor_proto" xml:"XForwardedFor_proto"` - AclId string `json:"AclId" xml:"AclId"` - AclType string `json:"AclType" xml:"AclType"` - AclStatus string `json:"AclStatus" xml:"AclStatus"` - VpcIds string `json:"VpcIds" xml:"VpcIds"` - ListenerForward string `json:"ListenerForward" xml:"ListenerForward"` - ForwardPort int `json:"ForwardPort" xml:"ForwardPort"` - RequestTimeout int `json:"RequestTimeout" xml:"RequestTimeout"` - IdleTimeout int `json:"IdleTimeout" xml:"IdleTimeout"` - Description string `json:"Description" xml:"Description"` - Rules RulesInDescribeLoadBalancerHTTPListenerAttribute `json:"Rules" xml:"Rules"` + AclType string `json:"AclType" xml:"AclType"` + VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` + HealthCheckHttpVersion string `json:"HealthCheckHttpVersion" xml:"HealthCheckHttpVersion"` + Status string `json:"Status" xml:"Status"` + XForwardedForClientSrcPort string `json:"XForwardedFor_ClientSrcPort" xml:"XForwardedFor_ClientSrcPort"` + Cookie string `json:"Cookie" xml:"Cookie"` + Gzip string `json:"Gzip" xml:"Gzip"` + ForwardCode int `json:"ForwardCode" xml:"ForwardCode"` + ServiceManagedMode string `json:"ServiceManagedMode" xml:"ServiceManagedMode"` + HealthCheckConnectPort int `json:"HealthCheckConnectPort" xml:"HealthCheckConnectPort"` + RequestId string `json:"RequestId" xml:"RequestId"` + Description string `json:"Description" xml:"Description"` + Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` + HealthCheckTimeout int `json:"HealthCheckTimeout" xml:"HealthCheckTimeout"` + HealthCheckType string `json:"HealthCheckType" xml:"HealthCheckType"` + AclStatus string `json:"AclStatus" xml:"AclStatus"` + BackendServerPort int `json:"BackendServerPort" xml:"BackendServerPort"` + CookieTimeout int `json:"CookieTimeout" xml:"CookieTimeout"` + HealthCheckDomain string `json:"HealthCheckDomain" xml:"HealthCheckDomain"` + UnhealthyThreshold int `json:"UnhealthyThreshold" xml:"UnhealthyThreshold"` + ForwardPort int `json:"ForwardPort" xml:"ForwardPort"` + XForwardedForSLBID string `json:"XForwardedFor_SLBID" xml:"XForwardedFor_SLBID"` + SecurityStatus string `json:"SecurityStatus" xml:"SecurityStatus"` + HealthCheckHttpCode string `json:"HealthCheckHttpCode" xml:"HealthCheckHttpCode"` + MaxConnection int `json:"MaxConnection" xml:"MaxConnection"` + ListenerForward string `json:"ListenerForward" xml:"ListenerForward"` + XForwardedFor string `json:"XForwardedFor" xml:"XForwardedFor"` + IdleTimeout int `json:"IdleTimeout" xml:"IdleTimeout"` + RequestTimeout int `json:"RequestTimeout" xml:"RequestTimeout"` + ListenerPort int `json:"ListenerPort" xml:"ListenerPort"` + HealthCheckInterval int `json:"HealthCheckInterval" xml:"HealthCheckInterval"` + XForwardedForSLBPORT string `json:"XForwardedFor_SLBPORT" xml:"XForwardedFor_SLBPORT"` + HealthCheckURI string `json:"HealthCheckURI" xml:"HealthCheckURI"` + StickySessionType string `json:"StickySessionType" xml:"StickySessionType"` + AclId string `json:"AclId" xml:"AclId"` + Scheduler string `json:"Scheduler" xml:"Scheduler"` + VpcIds string `json:"VpcIds" xml:"VpcIds"` + HealthyThreshold int `json:"HealthyThreshold" xml:"HealthyThreshold"` + XForwardedForProto string `json:"XForwardedFor_proto" xml:"XForwardedFor_proto"` + XForwardedForSLBIP string `json:"XForwardedFor_SLBIP" xml:"XForwardedFor_SLBIP"` + StickySession string `json:"StickySession" xml:"StickySession"` + HealthCheckMethod string `json:"HealthCheckMethod" xml:"HealthCheckMethod"` + HealthCheck string `json:"HealthCheck" xml:"HealthCheck"` + LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` + AclIds AclIdsInDescribeLoadBalancerHTTPListenerAttribute `json:"AclIds" xml:"AclIds"` + Rules RulesInDescribeLoadBalancerHTTPListenerAttribute `json:"Rules" xml:"Rules"` + Tags TagsInDescribeLoadBalancerHTTPListenerAttribute `json:"Tags" xml:"Tags"` } // CreateDescribeLoadBalancerHTTPListenerAttributeRequest creates a request to invoke DescribeLoadBalancerHTTPListenerAttribute API @@ -136,6 +139,7 @@ func CreateDescribeLoadBalancerHTTPListenerAttributeRequest() (request *Describe RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "DescribeLoadBalancerHTTPListenerAttribute", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancer_https_listener_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancer_https_listener_attribute.go index 11eccb91..3cb219bf 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancer_https_listener_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancer_https_listener_attribute.go @@ -21,7 +21,6 @@ import ( ) // DescribeLoadBalancerHTTPSListenerAttribute invokes the slb.DescribeLoadBalancerHTTPSListenerAttribute API synchronously -// api document: https://help.aliyun.com/api/slb/describeloadbalancerhttpslistenerattribute.html func (client *Client) DescribeLoadBalancerHTTPSListenerAttribute(request *DescribeLoadBalancerHTTPSListenerAttributeRequest) (response *DescribeLoadBalancerHTTPSListenerAttributeResponse, err error) { response = CreateDescribeLoadBalancerHTTPSListenerAttributeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeLoadBalancerHTTPSListenerAttribute(request *Descri } // DescribeLoadBalancerHTTPSListenerAttributeWithChan invokes the slb.DescribeLoadBalancerHTTPSListenerAttribute API asynchronously -// api document: https://help.aliyun.com/api/slb/describeloadbalancerhttpslistenerattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeLoadBalancerHTTPSListenerAttributeWithChan(request *DescribeLoadBalancerHTTPSListenerAttributeRequest) (<-chan *DescribeLoadBalancerHTTPSListenerAttributeResponse, <-chan error) { responseChan := make(chan *DescribeLoadBalancerHTTPSListenerAttributeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeLoadBalancerHTTPSListenerAttributeWithChan(request } // DescribeLoadBalancerHTTPSListenerAttributeWithCallback invokes the slb.DescribeLoadBalancerHTTPSListenerAttribute API asynchronously -// api document: https://help.aliyun.com/api/slb/describeloadbalancerhttpslistenerattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeLoadBalancerHTTPSListenerAttributeWithCallback(request *DescribeLoadBalancerHTTPSListenerAttributeRequest, callback func(response *DescribeLoadBalancerHTTPSListenerAttributeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -79,59 +74,75 @@ type DescribeLoadBalancerHTTPSListenerAttributeRequest struct { AccessKeyId string `position:"Query" name:"access_key_id"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` } // DescribeLoadBalancerHTTPSListenerAttributeResponse is the response struct for api DescribeLoadBalancerHTTPSListenerAttribute type DescribeLoadBalancerHTTPSListenerAttributeResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - ListenerPort int `json:"ListenerPort" xml:"ListenerPort"` - BackendServerPort int `json:"BackendServerPort" xml:"BackendServerPort"` - BackendProtocol int `json:"BackendProtocol" xml:"BackendProtocol"` - Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` - Status string `json:"Status" xml:"Status"` - SecurityStatus string `json:"SecurityStatus" xml:"SecurityStatus"` - XForwardedFor string `json:"XForwardedFor" xml:"XForwardedFor"` - Scheduler string `json:"Scheduler" xml:"Scheduler"` - StickySession string `json:"StickySession" xml:"StickySession"` - StickySessionType string `json:"StickySessionType" xml:"StickySessionType"` - CookieTimeout int `json:"CookieTimeout" xml:"CookieTimeout"` - Cookie string `json:"Cookie" xml:"Cookie"` - HealthCheck string `json:"HealthCheck" xml:"HealthCheck"` - HealthCheckType string `json:"HealthCheckType" xml:"HealthCheckType"` - HealthCheckDomain string `json:"HealthCheckDomain" xml:"HealthCheckDomain"` - HealthCheckURI string `json:"HealthCheckURI" xml:"HealthCheckURI"` - HealthyThreshold int `json:"HealthyThreshold" xml:"HealthyThreshold"` - UnhealthyThreshold int `json:"UnhealthyThreshold" xml:"UnhealthyThreshold"` - HealthCheckTimeout int `json:"HealthCheckTimeout" xml:"HealthCheckTimeout"` - HealthCheckInterval int `json:"HealthCheckInterval" xml:"HealthCheckInterval"` - HealthCheckConnectPort int `json:"HealthCheckConnectPort" xml:"HealthCheckConnectPort"` - HealthCheckHttpCode string `json:"HealthCheckHttpCode" xml:"HealthCheckHttpCode"` - ServerCertificateId string `json:"ServerCertificateId" xml:"ServerCertificateId"` - CACertificateId string `json:"CACertificateId" xml:"CACertificateId"` - HealthCheckMethod string `json:"HealthCheckMethod" xml:"HealthCheckMethod"` - MaxConnection int `json:"MaxConnection" xml:"MaxConnection"` - VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` - Gzip string `json:"Gzip" xml:"Gzip"` - XForwardedForSLBIP string `json:"XForwardedFor_SLBIP" xml:"XForwardedFor_SLBIP"` - XForwardedForSLBID string `json:"XForwardedFor_SLBID" xml:"XForwardedFor_SLBID"` - XForwardedForProto string `json:"XForwardedFor_proto" xml:"XForwardedFor_proto"` - AclId string `json:"AclId" xml:"AclId"` - AclType string `json:"AclType" xml:"AclType"` - AclStatus string `json:"AclStatus" xml:"AclStatus"` - VpcIds string `json:"VpcIds" xml:"VpcIds"` - RequestTimeout int `json:"RequestTimeout" xml:"RequestTimeout"` - IdleTimeout int `json:"IdleTimeout" xml:"IdleTimeout"` - EnableHttp2 string `json:"EnableHttp2" xml:"EnableHttp2"` - TLSCipherPolicy string `json:"TLSCipherPolicy" xml:"TLSCipherPolicy"` - Description string `json:"Description" xml:"Description"` - Rules RulesInDescribeLoadBalancerHTTPSListenerAttribute `json:"Rules" xml:"Rules"` - DomainExtensions DomainExtensionsInDescribeLoadBalancerHTTPSListenerAttribute `json:"DomainExtensions" xml:"DomainExtensions"` + AclType string `json:"AclType" xml:"AclType"` + XForwardedForClientCertClientVerify string `json:"XForwardedFor_ClientCertClientVerify" xml:"XForwardedFor_ClientCertClientVerify"` + CACertificateId string `json:"CACertificateId" xml:"CACertificateId"` + XForwardedForClientCertClientVerifyAlias string `json:"XForwardedFor_ClientCertClientVerifyAlias" xml:"XForwardedFor_ClientCertClientVerifyAlias"` + RequestId string `json:"RequestId" xml:"RequestId"` + HealthCheckConnectPort int `json:"HealthCheckConnectPort" xml:"HealthCheckConnectPort"` + BackendProtocol string `json:"BackendProtocol" xml:"BackendProtocol"` + HealthCheckType string `json:"HealthCheckType" xml:"HealthCheckType"` + BackendServerPort int `json:"BackendServerPort" xml:"BackendServerPort"` + CookieTimeout int `json:"CookieTimeout" xml:"CookieTimeout"` + HealthCheckDomain string `json:"HealthCheckDomain" xml:"HealthCheckDomain"` + XForwardedForClientCertFingerprintAlias string `json:"XForwardedFor_ClientCertFingerprintAlias" xml:"XForwardedFor_ClientCertFingerprintAlias"` + XForwardedForClientCertIssuerDNAlias string `json:"XForwardedFor_ClientCertIssuerDNAlias" xml:"XForwardedFor_ClientCertIssuerDNAlias"` + XForwardedFor string `json:"XForwardedFor" xml:"XForwardedFor"` + XForwardedForClientCertFingerprint string `json:"XForwardedFor_ClientCertFingerprint" xml:"XForwardedFor_ClientCertFingerprint"` + IdleTimeout int `json:"IdleTimeout" xml:"IdleTimeout"` + ListenerPort int `json:"ListenerPort" xml:"ListenerPort"` + HealthCheckURI string `json:"HealthCheckURI" xml:"HealthCheckURI"` + XForwardedForSLBPORT string `json:"XForwardedFor_SLBPORT" xml:"XForwardedFor_SLBPORT"` + StickySessionType string `json:"StickySessionType" xml:"StickySessionType"` + Scheduler string `json:"Scheduler" xml:"Scheduler"` + XForwardedForProto string `json:"XForwardedFor_proto" xml:"XForwardedFor_proto"` + HealthCheckMethod string `json:"HealthCheckMethod" xml:"HealthCheckMethod"` + TLSCipherPolicy string `json:"TLSCipherPolicy" xml:"TLSCipherPolicy"` + Status string `json:"Status" xml:"Status"` + HealthCheckHttpVersion string `json:"HealthCheckHttpVersion" xml:"HealthCheckHttpVersion"` + VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` + XForwardedForClientSrcPort string `json:"XForwardedFor_ClientSrcPort" xml:"XForwardedFor_ClientSrcPort"` + Cookie string `json:"Cookie" xml:"Cookie"` + Gzip string `json:"Gzip" xml:"Gzip"` + EnableHttp2 string `json:"EnableHttp2" xml:"EnableHttp2"` + ServiceManagedMode string `json:"ServiceManagedMode" xml:"ServiceManagedMode"` + Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` + Description string `json:"Description" xml:"Description"` + HealthCheckTimeout int `json:"HealthCheckTimeout" xml:"HealthCheckTimeout"` + AclStatus string `json:"AclStatus" xml:"AclStatus"` + UnhealthyThreshold int `json:"UnhealthyThreshold" xml:"UnhealthyThreshold"` + XForwardedForSLBID string `json:"XForwardedFor_SLBID" xml:"XForwardedFor_SLBID"` + XForwardedForClientCertSubjectDN string `json:"XForwardedFor_ClientCertSubjectDN" xml:"XForwardedFor_ClientCertSubjectDN"` + SecurityStatus string `json:"SecurityStatus" xml:"SecurityStatus"` + HealthCheckHttpCode string `json:"HealthCheckHttpCode" xml:"HealthCheckHttpCode"` + XForwardedForClientCertSubjectDNAlias string `json:"XForwardedFor_ClientCertSubjectDNAlias" xml:"XForwardedFor_ClientCertSubjectDNAlias"` + MaxConnection int `json:"MaxConnection" xml:"MaxConnection"` + RequestTimeout int `json:"RequestTimeout" xml:"RequestTimeout"` + HealthCheckInterval int `json:"HealthCheckInterval" xml:"HealthCheckInterval"` + ServerCertificateId string `json:"ServerCertificateId" xml:"ServerCertificateId"` + AclId string `json:"AclId" xml:"AclId"` + XForwardedForClientCertIssuerDN string `json:"XForwardedFor_ClientCertIssuerDN" xml:"XForwardedFor_ClientCertIssuerDN"` + VpcIds string `json:"VpcIds" xml:"VpcIds"` + HealthyThreshold int `json:"HealthyThreshold" xml:"HealthyThreshold"` + XForwardedForSLBIP string `json:"XForwardedFor_SLBIP" xml:"XForwardedFor_SLBIP"` + StickySession string `json:"StickySession" xml:"StickySession"` + HealthCheck string `json:"HealthCheck" xml:"HealthCheck"` + LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` + AclIds AclIdsInDescribeLoadBalancerHTTPSListenerAttribute `json:"AclIds" xml:"AclIds"` + Rules RulesInDescribeLoadBalancerHTTPSListenerAttribute `json:"Rules" xml:"Rules"` + DomainExtensions DomainExtensionsInDescribeLoadBalancerHTTPSListenerAttribute `json:"DomainExtensions" xml:"DomainExtensions"` + ServerCertificates ServerCertificatesInDescribeLoadBalancerHTTPSListenerAttribute `json:"ServerCertificates" xml:"ServerCertificates"` + Tags TagsInDescribeLoadBalancerHTTPSListenerAttribute `json:"Tags" xml:"Tags"` } // CreateDescribeLoadBalancerHTTPSListenerAttributeRequest creates a request to invoke DescribeLoadBalancerHTTPSListenerAttribute API @@ -140,6 +151,7 @@ func CreateDescribeLoadBalancerHTTPSListenerAttributeRequest() (request *Describ RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "DescribeLoadBalancerHTTPSListenerAttribute", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancer_listeners.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancer_listeners.go new file mode 100644 index 00000000..2166d2ad --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancer_listeners.go @@ -0,0 +1,117 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// DescribeLoadBalancerListeners invokes the slb.DescribeLoadBalancerListeners API synchronously +func (client *Client) DescribeLoadBalancerListeners(request *DescribeLoadBalancerListenersRequest) (response *DescribeLoadBalancerListenersResponse, err error) { + response = CreateDescribeLoadBalancerListenersResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLoadBalancerListenersWithChan invokes the slb.DescribeLoadBalancerListeners API asynchronously +func (client *Client) DescribeLoadBalancerListenersWithChan(request *DescribeLoadBalancerListenersRequest) (<-chan *DescribeLoadBalancerListenersResponse, <-chan error) { + responseChan := make(chan *DescribeLoadBalancerListenersResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLoadBalancerListeners(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLoadBalancerListenersWithCallback invokes the slb.DescribeLoadBalancerListeners API asynchronously +func (client *Client) DescribeLoadBalancerListenersWithCallback(request *DescribeLoadBalancerListenersRequest, callback func(response *DescribeLoadBalancerListenersResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLoadBalancerListenersResponse + var err error + defer close(result) + response, err = client.DescribeLoadBalancerListeners(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLoadBalancerListenersRequest is the request struct for api DescribeLoadBalancerListeners +type DescribeLoadBalancerListenersRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + NextToken string `position:"Query" name:"NextToken"` + Tag *[]DescribeLoadBalancerListenersTag `position:"Query" name:"Tag" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ListenerProtocol string `position:"Query" name:"ListenerProtocol"` + LoadBalancerId *[]string `position:"Query" name:"LoadBalancerId" type:"Repeated"` + MaxResults requests.Integer `position:"Query" name:"MaxResults"` +} + +// DescribeLoadBalancerListenersTag is a repeated param struct in DescribeLoadBalancerListenersRequest +type DescribeLoadBalancerListenersTag struct { + Value string `name:"Value"` + Key string `name:"Key"` +} + +// DescribeLoadBalancerListenersResponse is the response struct for api DescribeLoadBalancerListeners +type DescribeLoadBalancerListenersResponse struct { + *responses.BaseResponse + NextToken string `json:"NextToken" xml:"NextToken"` + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + MaxResults int `json:"MaxResults" xml:"MaxResults"` + Listeners []ListenerInDescribeLoadBalancerListeners `json:"Listeners" xml:"Listeners"` +} + +// CreateDescribeLoadBalancerListenersRequest creates a request to invoke DescribeLoadBalancerListeners API +func CreateDescribeLoadBalancerListenersRequest() (request *DescribeLoadBalancerListenersRequest) { + request = &DescribeLoadBalancerListenersRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "DescribeLoadBalancerListeners", "slb", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeLoadBalancerListenersResponse creates a response to parse from DescribeLoadBalancerListeners response +func CreateDescribeLoadBalancerListenersResponse() (response *DescribeLoadBalancerListenersResponse) { + response = &DescribeLoadBalancerListenersResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancer_tcp_listener_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancer_tcp_listener_attribute.go index 302a7fc0..cf1932e5 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancer_tcp_listener_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancer_tcp_listener_attribute.go @@ -21,7 +21,6 @@ import ( ) // DescribeLoadBalancerTCPListenerAttribute invokes the slb.DescribeLoadBalancerTCPListenerAttribute API synchronously -// api document: https://help.aliyun.com/api/slb/describeloadbalancertcplistenerattribute.html func (client *Client) DescribeLoadBalancerTCPListenerAttribute(request *DescribeLoadBalancerTCPListenerAttributeRequest) (response *DescribeLoadBalancerTCPListenerAttributeResponse, err error) { response = CreateDescribeLoadBalancerTCPListenerAttributeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeLoadBalancerTCPListenerAttribute(request *Describe } // DescribeLoadBalancerTCPListenerAttributeWithChan invokes the slb.DescribeLoadBalancerTCPListenerAttribute API asynchronously -// api document: https://help.aliyun.com/api/slb/describeloadbalancertcplistenerattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeLoadBalancerTCPListenerAttributeWithChan(request *DescribeLoadBalancerTCPListenerAttributeRequest) (<-chan *DescribeLoadBalancerTCPListenerAttributeResponse, <-chan error) { responseChan := make(chan *DescribeLoadBalancerTCPListenerAttributeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeLoadBalancerTCPListenerAttributeWithChan(request * } // DescribeLoadBalancerTCPListenerAttributeWithCallback invokes the slb.DescribeLoadBalancerTCPListenerAttribute API asynchronously -// api document: https://help.aliyun.com/api/slb/describeloadbalancertcplistenerattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeLoadBalancerTCPListenerAttributeWithCallback(request *DescribeLoadBalancerTCPListenerAttributeRequest, callback func(response *DescribeLoadBalancerTCPListenerAttributeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -79,44 +74,60 @@ type DescribeLoadBalancerTCPListenerAttributeRequest struct { AccessKeyId string `position:"Query" name:"access_key_id"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` } // DescribeLoadBalancerTCPListenerAttributeResponse is the response struct for api DescribeLoadBalancerTCPListenerAttribute type DescribeLoadBalancerTCPListenerAttributeResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - ListenerPort int `json:"ListenerPort" xml:"ListenerPort"` - BackendServerPort int `json:"BackendServerPort" xml:"BackendServerPort"` - Status string `json:"Status" xml:"Status"` - Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` - Scheduler string `json:"Scheduler" xml:"Scheduler"` - SynProxy string `json:"SynProxy" xml:"SynProxy"` - PersistenceTimeout int `json:"PersistenceTimeout" xml:"PersistenceTimeout"` - EstablishedTimeout int `json:"EstablishedTimeout" xml:"EstablishedTimeout"` - HealthCheck string `json:"HealthCheck" xml:"HealthCheck"` - HealthyThreshold int `json:"HealthyThreshold" xml:"HealthyThreshold"` - UnhealthyThreshold int `json:"UnhealthyThreshold" xml:"UnhealthyThreshold"` - HealthCheckConnectTimeout int `json:"HealthCheckConnectTimeout" xml:"HealthCheckConnectTimeout"` - HealthCheckConnectPort int `json:"HealthCheckConnectPort" xml:"HealthCheckConnectPort"` - HealthCheckInterval int `json:"HealthCheckInterval" xml:"HealthCheckInterval"` - HealthCheckHttpCode string `json:"HealthCheckHttpCode" xml:"HealthCheckHttpCode"` - HealthCheckDomain string `json:"HealthCheckDomain" xml:"HealthCheckDomain"` - HealthCheckURI string `json:"HealthCheckURI" xml:"HealthCheckURI"` - HealthCheckType string `json:"HealthCheckType" xml:"HealthCheckType"` - HealthCheckMethod string `json:"HealthCheckMethod" xml:"HealthCheckMethod"` - MaxConnection int `json:"MaxConnection" xml:"MaxConnection"` - VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` - MasterSlaveServerGroupId string `json:"MasterSlaveServerGroupId" xml:"MasterSlaveServerGroupId"` - AclId string `json:"AclId" xml:"AclId"` - AclType string `json:"AclType" xml:"AclType"` - AclStatus string `json:"AclStatus" xml:"AclStatus"` - VpcIds string `json:"VpcIds" xml:"VpcIds"` - Description string `json:"Description" xml:"Description"` + VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` + Status string `json:"Status" xml:"Status"` + AclType string `json:"AclType" xml:"AclType"` + ConnectionDrainTimeout int `json:"ConnectionDrainTimeout" xml:"ConnectionDrainTimeout"` + FailoverStrategy string `json:"FailoverStrategy" xml:"FailoverStrategy"` + WorkingServerGroupId string `json:"WorkingServerGroupId" xml:"WorkingServerGroupId"` + HealthCheckTcpFastCloseEnabled bool `json:"HealthCheckTcpFastCloseEnabled" xml:"HealthCheckTcpFastCloseEnabled"` + FullNatEnabled bool `json:"FullNatEnabled" xml:"FullNatEnabled"` + ServiceManagedMode string `json:"ServiceManagedMode" xml:"ServiceManagedMode"` + RequestId string `json:"RequestId" xml:"RequestId"` + HealthCheckConnectPort int `json:"HealthCheckConnectPort" xml:"HealthCheckConnectPort"` + Description string `json:"Description" xml:"Description"` + Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` + HealthCheckType string `json:"HealthCheckType" xml:"HealthCheckType"` + MasterSlaveServerGroupId string `json:"MasterSlaveServerGroupId" xml:"MasterSlaveServerGroupId"` + BackendServerPort int `json:"BackendServerPort" xml:"BackendServerPort"` + AclStatus string `json:"AclStatus" xml:"AclStatus"` + HealthCheckDomain string `json:"HealthCheckDomain" xml:"HealthCheckDomain"` + UnhealthyThreshold int `json:"UnhealthyThreshold" xml:"UnhealthyThreshold"` + MasterServerGroupId string `json:"MasterServerGroupId" xml:"MasterServerGroupId"` + HealthCheckHttpCode string `json:"HealthCheckHttpCode" xml:"HealthCheckHttpCode"` + MaxConnection int `json:"MaxConnection" xml:"MaxConnection"` + ProxyProtocolV2Enabled bool `json:"ProxyProtocolV2Enabled" xml:"ProxyProtocolV2Enabled"` + SlaveServerGroupId string `json:"SlaveServerGroupId" xml:"SlaveServerGroupId"` + PersistenceTimeout int `json:"PersistenceTimeout" xml:"PersistenceTimeout"` + ListenerPort int `json:"ListenerPort" xml:"ListenerPort"` + HealthCheckInterval int `json:"HealthCheckInterval" xml:"HealthCheckInterval"` + HealthCheckURI string `json:"HealthCheckURI" xml:"HealthCheckURI"` + FailoverThreshold int `json:"FailoverThreshold" xml:"FailoverThreshold"` + AclId string `json:"AclId" xml:"AclId"` + SynProxy string `json:"SynProxy" xml:"SynProxy"` + Scheduler string `json:"Scheduler" xml:"Scheduler"` + EstablishedTimeout int `json:"EstablishedTimeout" xml:"EstablishedTimeout"` + VpcIds string `json:"VpcIds" xml:"VpcIds"` + HealthCheckConnectTimeout int `json:"HealthCheckConnectTimeout" xml:"HealthCheckConnectTimeout"` + MasterSlaveModeEnabled bool `json:"MasterSlaveModeEnabled" xml:"MasterSlaveModeEnabled"` + HealthyThreshold int `json:"HealthyThreshold" xml:"HealthyThreshold"` + ConnectionDrain string `json:"ConnectionDrain" xml:"ConnectionDrain"` + HealthCheckMethod string `json:"HealthCheckMethod" xml:"HealthCheckMethod"` + HealthCheck string `json:"HealthCheck" xml:"HealthCheck"` + LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` + AclIds AclIdsInDescribeLoadBalancerTCPListenerAttribute `json:"AclIds" xml:"AclIds"` + PortRanges PortRangesInDescribeLoadBalancerTCPListenerAttribute `json:"PortRanges" xml:"PortRanges"` + Tags TagsInDescribeLoadBalancerTCPListenerAttribute `json:"Tags" xml:"Tags"` } // CreateDescribeLoadBalancerTCPListenerAttributeRequest creates a request to invoke DescribeLoadBalancerTCPListenerAttribute API @@ -125,6 +136,7 @@ func CreateDescribeLoadBalancerTCPListenerAttributeRequest() (request *DescribeL RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "DescribeLoadBalancerTCPListenerAttribute", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancer_udp_listener_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancer_udp_listener_attribute.go index 1fbc6073..e5f5c087 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancer_udp_listener_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancer_udp_listener_attribute.go @@ -21,7 +21,6 @@ import ( ) // DescribeLoadBalancerUDPListenerAttribute invokes the slb.DescribeLoadBalancerUDPListenerAttribute API synchronously -// api document: https://help.aliyun.com/api/slb/describeloadbalancerudplistenerattribute.html func (client *Client) DescribeLoadBalancerUDPListenerAttribute(request *DescribeLoadBalancerUDPListenerAttributeRequest) (response *DescribeLoadBalancerUDPListenerAttributeResponse, err error) { response = CreateDescribeLoadBalancerUDPListenerAttributeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeLoadBalancerUDPListenerAttribute(request *Describe } // DescribeLoadBalancerUDPListenerAttributeWithChan invokes the slb.DescribeLoadBalancerUDPListenerAttribute API asynchronously -// api document: https://help.aliyun.com/api/slb/describeloadbalancerudplistenerattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeLoadBalancerUDPListenerAttributeWithChan(request *DescribeLoadBalancerUDPListenerAttributeRequest) (<-chan *DescribeLoadBalancerUDPListenerAttributeResponse, <-chan error) { responseChan := make(chan *DescribeLoadBalancerUDPListenerAttributeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeLoadBalancerUDPListenerAttributeWithChan(request * } // DescribeLoadBalancerUDPListenerAttributeWithCallback invokes the slb.DescribeLoadBalancerUDPListenerAttribute API asynchronously -// api document: https://help.aliyun.com/api/slb/describeloadbalancerudplistenerattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeLoadBalancerUDPListenerAttributeWithCallback(request *DescribeLoadBalancerUDPListenerAttributeRequest, callback func(response *DescribeLoadBalancerUDPListenerAttributeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -79,39 +74,61 @@ type DescribeLoadBalancerUDPListenerAttributeRequest struct { AccessKeyId string `position:"Query" name:"access_key_id"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` } // DescribeLoadBalancerUDPListenerAttributeResponse is the response struct for api DescribeLoadBalancerUDPListenerAttribute type DescribeLoadBalancerUDPListenerAttributeResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - ListenerPort int `json:"ListenerPort" xml:"ListenerPort"` - BackendServerPort int `json:"BackendServerPort" xml:"BackendServerPort"` - Status string `json:"Status" xml:"Status"` - Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` - Scheduler string `json:"Scheduler" xml:"Scheduler"` - PersistenceTimeout int `json:"PersistenceTimeout" xml:"PersistenceTimeout"` - HealthCheck string `json:"HealthCheck" xml:"HealthCheck"` - HealthyThreshold int `json:"HealthyThreshold" xml:"HealthyThreshold"` - UnhealthyThreshold int `json:"UnhealthyThreshold" xml:"UnhealthyThreshold"` - HealthCheckConnectTimeout int `json:"HealthCheckConnectTimeout" xml:"HealthCheckConnectTimeout"` - HealthCheckConnectPort int `json:"HealthCheckConnectPort" xml:"HealthCheckConnectPort"` - HealthCheckInterval int `json:"HealthCheckInterval" xml:"HealthCheckInterval"` - HealthCheckReq string `json:"HealthCheckReq" xml:"HealthCheckReq"` - HealthCheckExp string `json:"HealthCheckExp" xml:"HealthCheckExp"` - MaxConnection int `json:"MaxConnection" xml:"MaxConnection"` - VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` - MasterSlaveServerGroupId string `json:"MasterSlaveServerGroupId" xml:"MasterSlaveServerGroupId"` - AclId string `json:"AclId" xml:"AclId"` - AclType string `json:"AclType" xml:"AclType"` - AclStatus string `json:"AclStatus" xml:"AclStatus"` - VpcIds string `json:"VpcIds" xml:"VpcIds"` - Description string `json:"Description" xml:"Description"` + VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` + Status string `json:"Status" xml:"Status"` + AclType string `json:"AclType" xml:"AclType"` + ConnectionDrainTimeout int `json:"ConnectionDrainTimeout" xml:"ConnectionDrainTimeout"` + FailoverStrategy string `json:"FailoverStrategy" xml:"FailoverStrategy"` + WorkingServerGroupId string `json:"WorkingServerGroupId" xml:"WorkingServerGroupId"` + HealthCheckSwitch string `json:"HealthCheckSwitch" xml:"HealthCheckSwitch"` + FullNatEnabled bool `json:"FullNatEnabled" xml:"FullNatEnabled"` + ServiceManagedMode string `json:"ServiceManagedMode" xml:"ServiceManagedMode"` + QuicVersion string `json:"QuicVersion" xml:"QuicVersion"` + RequestId string `json:"RequestId" xml:"RequestId"` + HealthCheckConnectPort int `json:"HealthCheckConnectPort" xml:"HealthCheckConnectPort"` + Description string `json:"Description" xml:"Description"` + Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` + HealthCheckType string `json:"HealthCheckType" xml:"HealthCheckType"` + MasterSlaveServerGroupId string `json:"MasterSlaveServerGroupId" xml:"MasterSlaveServerGroupId"` + BackendServerPort int `json:"BackendServerPort" xml:"BackendServerPort"` + AclStatus string `json:"AclStatus" xml:"AclStatus"` + HealthCheckDomain string `json:"HealthCheckDomain" xml:"HealthCheckDomain"` + UnhealthyThreshold int `json:"UnhealthyThreshold" xml:"UnhealthyThreshold"` + MasterServerGroupId string `json:"MasterServerGroupId" xml:"MasterServerGroupId"` + HealthCheckHttpCode string `json:"HealthCheckHttpCode" xml:"HealthCheckHttpCode"` + MaxConnection int `json:"MaxConnection" xml:"MaxConnection"` + ProxyProtocolV2Enabled bool `json:"ProxyProtocolV2Enabled" xml:"ProxyProtocolV2Enabled"` + SlaveServerGroupId string `json:"SlaveServerGroupId" xml:"SlaveServerGroupId"` + PersistenceTimeout int `json:"PersistenceTimeout" xml:"PersistenceTimeout"` + ListenerPort int `json:"ListenerPort" xml:"ListenerPort"` + HealthCheckInterval int `json:"HealthCheckInterval" xml:"HealthCheckInterval"` + HealthCheckExp string `json:"HealthCheckExp" xml:"HealthCheckExp"` + HealthCheckURI string `json:"HealthCheckURI" xml:"HealthCheckURI"` + FailoverThreshold int `json:"FailoverThreshold" xml:"FailoverThreshold"` + AclId string `json:"AclId" xml:"AclId"` + Scheduler string `json:"Scheduler" xml:"Scheduler"` + VpcIds string `json:"VpcIds" xml:"VpcIds"` + HealthCheckConnectTimeout int `json:"HealthCheckConnectTimeout" xml:"HealthCheckConnectTimeout"` + MasterSlaveModeEnabled bool `json:"MasterSlaveModeEnabled" xml:"MasterSlaveModeEnabled"` + HealthyThreshold int `json:"HealthyThreshold" xml:"HealthyThreshold"` + ConnectionDrain string `json:"ConnectionDrain" xml:"ConnectionDrain"` + HealthCheckReq string `json:"HealthCheckReq" xml:"HealthCheckReq"` + HealthCheckMethod string `json:"HealthCheckMethod" xml:"HealthCheckMethod"` + HealthCheck string `json:"HealthCheck" xml:"HealthCheck"` + LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` + AclIds AclIdsInDescribeLoadBalancerUDPListenerAttribute `json:"AclIds" xml:"AclIds"` + PortRanges PortRangesInDescribeLoadBalancerUDPListenerAttribute `json:"PortRanges" xml:"PortRanges"` + Tags TagsInDescribeLoadBalancerUDPListenerAttribute `json:"Tags" xml:"Tags"` } // CreateDescribeLoadBalancerUDPListenerAttributeRequest creates a request to invoke DescribeLoadBalancerUDPListenerAttribute API @@ -120,6 +137,7 @@ func CreateDescribeLoadBalancerUDPListenerAttributeRequest() (request *DescribeL RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "DescribeLoadBalancerUDPListenerAttribute", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancers.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancers.go index 65829e96..55ea10c3 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancers.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_load_balancers.go @@ -21,7 +21,6 @@ import ( ) // DescribeLoadBalancers invokes the slb.DescribeLoadBalancers API synchronously -// api document: https://help.aliyun.com/api/slb/describeloadbalancers.html func (client *Client) DescribeLoadBalancers(request *DescribeLoadBalancersRequest) (response *DescribeLoadBalancersResponse, err error) { response = CreateDescribeLoadBalancersResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeLoadBalancers(request *DescribeLoadBalancersReques } // DescribeLoadBalancersWithChan invokes the slb.DescribeLoadBalancers API asynchronously -// api document: https://help.aliyun.com/api/slb/describeloadbalancers.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeLoadBalancersWithChan(request *DescribeLoadBalancersRequest) (<-chan *DescribeLoadBalancersResponse, <-chan error) { responseChan := make(chan *DescribeLoadBalancersResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeLoadBalancersWithChan(request *DescribeLoadBalance } // DescribeLoadBalancersWithCallback invokes the slb.DescribeLoadBalancers API asynchronously -// api document: https://help.aliyun.com/api/slb/describeloadbalancers.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeLoadBalancersWithCallback(request *DescribeLoadBalancersRequest, callback func(response *DescribeLoadBalancersResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,30 +71,34 @@ func (client *Client) DescribeLoadBalancersWithCallback(request *DescribeLoadBal // DescribeLoadBalancersRequest is the request struct for api DescribeLoadBalancers type DescribeLoadBalancersRequest struct { *requests.RpcRequest - AccessKeyId string `position:"Query" name:"access_key_id"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` NetworkType string `position:"Query" name:"NetworkType"` AddressIPVersion string `position:"Query" name:"AddressIPVersion"` MasterZoneId string `position:"Query" name:"MasterZoneId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` ResourceGroupId string `position:"Query" name:"ResourceGroupId"` LoadBalancerName string `position:"Query" name:"LoadBalancerName"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - AddressType string `position:"Query" name:"AddressType"` SlaveZoneId string `position:"Query" name:"SlaveZoneId"` Tag *[]DescribeLoadBalancersTag `position:"Query" name:"Tag" type:"Repeated"` - Fuzzy string `position:"Query" name:"Fuzzy"` - Address string `position:"Query" name:"Address"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` ServerId string `position:"Query" name:"ServerId"` - LoadBalancerStatus string `position:"Query" name:"LoadBalancerStatus"` Tags string `position:"Query" name:"Tags"` ServerIntranetAddress string `position:"Query" name:"ServerIntranetAddress"` VSwitchId string `position:"Query" name:"VSwitchId"` LoadBalancerId string `position:"Query" name:"LoadBalancerId"` InternetChargeType string `position:"Query" name:"InternetChargeType"` + AccessKeyId string `position:"Query" name:"access_key_id"` + SupportPrivateLink requests.Boolean `position:"Query" name:"SupportPrivateLink"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + AddressType string `position:"Query" name:"AddressType"` + InstanceChargeType string `position:"Query" name:"InstanceChargeType"` + Fuzzy string `position:"Query" name:"Fuzzy"` + BusinessStatus string `position:"Query" name:"BusinessStatus"` + Address string `position:"Query" name:"Address"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + FilterByTagOrName requests.Boolean `position:"Query" name:"FilterByTagOrName"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + LoadBalancerStatus string `position:"Query" name:"LoadBalancerStatus"` VpcId string `position:"Query" name:"VpcId"` PayType string `position:"Query" name:"PayType"` } @@ -126,6 +125,7 @@ func CreateDescribeLoadBalancersRequest() (request *DescribeLoadBalancersRequest RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "DescribeLoadBalancers", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_master_slave_server_group_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_master_slave_server_group_attribute.go index 39cf67cd..854c07c6 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_master_slave_server_group_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_master_slave_server_group_attribute.go @@ -21,7 +21,6 @@ import ( ) // DescribeMasterSlaveServerGroupAttribute invokes the slb.DescribeMasterSlaveServerGroupAttribute API synchronously -// api document: https://help.aliyun.com/api/slb/describemasterslaveservergroupattribute.html func (client *Client) DescribeMasterSlaveServerGroupAttribute(request *DescribeMasterSlaveServerGroupAttributeRequest) (response *DescribeMasterSlaveServerGroupAttributeResponse, err error) { response = CreateDescribeMasterSlaveServerGroupAttributeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeMasterSlaveServerGroupAttribute(request *DescribeM } // DescribeMasterSlaveServerGroupAttributeWithChan invokes the slb.DescribeMasterSlaveServerGroupAttribute API asynchronously -// api document: https://help.aliyun.com/api/slb/describemasterslaveservergroupattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeMasterSlaveServerGroupAttributeWithChan(request *DescribeMasterSlaveServerGroupAttributeRequest) (<-chan *DescribeMasterSlaveServerGroupAttributeResponse, <-chan error) { responseChan := make(chan *DescribeMasterSlaveServerGroupAttributeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeMasterSlaveServerGroupAttributeWithChan(request *D } // DescribeMasterSlaveServerGroupAttributeWithCallback invokes the slb.DescribeMasterSlaveServerGroupAttribute API asynchronously -// api document: https://help.aliyun.com/api/slb/describemasterslaveservergroupattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeMasterSlaveServerGroupAttributeWithCallback(request *DescribeMasterSlaveServerGroupAttributeRequest, callback func(response *DescribeMasterSlaveServerGroupAttributeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -78,20 +73,23 @@ type DescribeMasterSlaveServerGroupAttributeRequest struct { *requests.RpcRequest AccessKeyId string `position:"Query" name:"access_key_id"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - MasterSlaveServerGroupId string `position:"Query" name:"MasterSlaveServerGroupId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` Tags string `position:"Query" name:"Tags"` + MasterSlaveServerGroupId string `position:"Query" name:"MasterSlaveServerGroupId"` } // DescribeMasterSlaveServerGroupAttributeResponse is the response struct for api DescribeMasterSlaveServerGroupAttribute type DescribeMasterSlaveServerGroupAttributeResponse struct { *responses.BaseResponse + ServiceManagedMode string `json:"ServiceManagedMode" xml:"ServiceManagedMode"` RequestId string `json:"RequestId" xml:"RequestId"` LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` - MasterSlaveServerGroupId string `json:"MasterSlaveServerGroupId" xml:"MasterSlaveServerGroupId"` MasterSlaveServerGroupName string `json:"MasterSlaveServerGroupName" xml:"MasterSlaveServerGroupName"` + MasterSlaveServerGroupId string `json:"MasterSlaveServerGroupId" xml:"MasterSlaveServerGroupId"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + Tags TagsInDescribeMasterSlaveServerGroupAttribute `json:"Tags" xml:"Tags"` MasterSlaveBackendServers MasterSlaveBackendServersInDescribeMasterSlaveServerGroupAttribute `json:"MasterSlaveBackendServers" xml:"MasterSlaveBackendServers"` } @@ -101,6 +99,7 @@ func CreateDescribeMasterSlaveServerGroupAttributeRequest() (request *DescribeMa RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "DescribeMasterSlaveServerGroupAttribute", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_master_slave_server_groups.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_master_slave_server_groups.go index eb1ce255..ce262cd2 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_master_slave_server_groups.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_master_slave_server_groups.go @@ -21,7 +21,6 @@ import ( ) // DescribeMasterSlaveServerGroups invokes the slb.DescribeMasterSlaveServerGroups API synchronously -// api document: https://help.aliyun.com/api/slb/describemasterslaveservergroups.html func (client *Client) DescribeMasterSlaveServerGroups(request *DescribeMasterSlaveServerGroupsRequest) (response *DescribeMasterSlaveServerGroupsResponse, err error) { response = CreateDescribeMasterSlaveServerGroupsResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeMasterSlaveServerGroups(request *DescribeMasterSla } // DescribeMasterSlaveServerGroupsWithChan invokes the slb.DescribeMasterSlaveServerGroups API asynchronously -// api document: https://help.aliyun.com/api/slb/describemasterslaveservergroups.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeMasterSlaveServerGroupsWithChan(request *DescribeMasterSlaveServerGroupsRequest) (<-chan *DescribeMasterSlaveServerGroupsResponse, <-chan error) { responseChan := make(chan *DescribeMasterSlaveServerGroupsResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeMasterSlaveServerGroupsWithChan(request *DescribeM } // DescribeMasterSlaveServerGroupsWithCallback invokes the slb.DescribeMasterSlaveServerGroups API asynchronously -// api document: https://help.aliyun.com/api/slb/describemasterslaveservergroups.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeMasterSlaveServerGroupsWithCallback(request *DescribeMasterSlaveServerGroupsRequest, callback func(response *DescribeMasterSlaveServerGroupsResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,14 +71,21 @@ func (client *Client) DescribeMasterSlaveServerGroupsWithCallback(request *Descr // DescribeMasterSlaveServerGroupsRequest is the request struct for api DescribeMasterSlaveServerGroups type DescribeMasterSlaveServerGroupsRequest struct { *requests.RpcRequest - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - IncludeListener requests.Boolean `position:"Query" name:"IncludeListener"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` + AccessKeyId string `position:"Query" name:"access_key_id"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + IncludeListener requests.Boolean `position:"Query" name:"IncludeListener"` + Tag *[]DescribeMasterSlaveServerGroupsTag `position:"Query" name:"Tag" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` +} + +// DescribeMasterSlaveServerGroupsTag is a repeated param struct in DescribeMasterSlaveServerGroupsRequest +type DescribeMasterSlaveServerGroupsTag struct { + Value string `name:"Value"` + Key string `name:"Key"` } // DescribeMasterSlaveServerGroupsResponse is the response struct for api DescribeMasterSlaveServerGroups @@ -99,6 +101,7 @@ func CreateDescribeMasterSlaveServerGroupsRequest() (request *DescribeMasterSlav RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "DescribeMasterSlaveServerGroups", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_master_slave_v_server_group_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_master_slave_v_server_group_attribute.go deleted file mode 100644 index 1536fc90..00000000 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_master_slave_v_server_group_attribute.go +++ /dev/null @@ -1,112 +0,0 @@ -package slb - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeMasterSlaveVServerGroupAttribute invokes the slb.DescribeMasterSlaveVServerGroupAttribute API synchronously -// api document: https://help.aliyun.com/api/slb/describemasterslavevservergroupattribute.html -func (client *Client) DescribeMasterSlaveVServerGroupAttribute(request *DescribeMasterSlaveVServerGroupAttributeRequest) (response *DescribeMasterSlaveVServerGroupAttributeResponse, err error) { - response = CreateDescribeMasterSlaveVServerGroupAttributeResponse() - err = client.DoAction(request, response) - return -} - -// DescribeMasterSlaveVServerGroupAttributeWithChan invokes the slb.DescribeMasterSlaveVServerGroupAttribute API asynchronously -// api document: https://help.aliyun.com/api/slb/describemasterslavevservergroupattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html -func (client *Client) DescribeMasterSlaveVServerGroupAttributeWithChan(request *DescribeMasterSlaveVServerGroupAttributeRequest) (<-chan *DescribeMasterSlaveVServerGroupAttributeResponse, <-chan error) { - responseChan := make(chan *DescribeMasterSlaveVServerGroupAttributeResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeMasterSlaveVServerGroupAttribute(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeMasterSlaveVServerGroupAttributeWithCallback invokes the slb.DescribeMasterSlaveVServerGroupAttribute API asynchronously -// api document: https://help.aliyun.com/api/slb/describemasterslavevservergroupattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html -func (client *Client) DescribeMasterSlaveVServerGroupAttributeWithCallback(request *DescribeMasterSlaveVServerGroupAttributeRequest, callback func(response *DescribeMasterSlaveVServerGroupAttributeResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeMasterSlaveVServerGroupAttributeResponse - var err error - defer close(result) - response, err = client.DescribeMasterSlaveVServerGroupAttribute(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeMasterSlaveVServerGroupAttributeRequest is the request struct for api DescribeMasterSlaveVServerGroupAttribute -type DescribeMasterSlaveVServerGroupAttributeRequest struct { - *requests.RpcRequest - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - MasterSlaveVServerGroupId string `position:"Query" name:"MasterSlaveVServerGroupId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` -} - -// DescribeMasterSlaveVServerGroupAttributeResponse is the response struct for api DescribeMasterSlaveVServerGroupAttribute -type DescribeMasterSlaveVServerGroupAttributeResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - MasterSlaveVServerGroupId string `json:"MasterSlaveVServerGroupId" xml:"MasterSlaveVServerGroupId"` - MasterSlaveVServerGroupName string `json:"MasterSlaveVServerGroupName" xml:"MasterSlaveVServerGroupName"` - MasterSlaveBackendServers MasterSlaveBackendServersInDescribeMasterSlaveVServerGroupAttribute `json:"MasterSlaveBackendServers" xml:"MasterSlaveBackendServers"` -} - -// CreateDescribeMasterSlaveVServerGroupAttributeRequest creates a request to invoke DescribeMasterSlaveVServerGroupAttribute API -func CreateDescribeMasterSlaveVServerGroupAttributeRequest() (request *DescribeMasterSlaveVServerGroupAttributeRequest) { - request = &DescribeMasterSlaveVServerGroupAttributeRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Slb", "2014-05-15", "DescribeMasterSlaveVServerGroupAttribute", "slb", "openAPI") - return -} - -// CreateDescribeMasterSlaveVServerGroupAttributeResponse creates a response to parse from DescribeMasterSlaveVServerGroupAttribute response -func CreateDescribeMasterSlaveVServerGroupAttributeResponse() (response *DescribeMasterSlaveVServerGroupAttributeResponse) { - response = &DescribeMasterSlaveVServerGroupAttributeResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_master_slave_v_server_groups.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_master_slave_v_server_groups.go deleted file mode 100644 index 3aef2e42..00000000 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_master_slave_v_server_groups.go +++ /dev/null @@ -1,110 +0,0 @@ -package slb - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -import ( - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" - "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" -) - -// DescribeMasterSlaveVServerGroups invokes the slb.DescribeMasterSlaveVServerGroups API synchronously -// api document: https://help.aliyun.com/api/slb/describemasterslavevservergroups.html -func (client *Client) DescribeMasterSlaveVServerGroups(request *DescribeMasterSlaveVServerGroupsRequest) (response *DescribeMasterSlaveVServerGroupsResponse, err error) { - response = CreateDescribeMasterSlaveVServerGroupsResponse() - err = client.DoAction(request, response) - return -} - -// DescribeMasterSlaveVServerGroupsWithChan invokes the slb.DescribeMasterSlaveVServerGroups API asynchronously -// api document: https://help.aliyun.com/api/slb/describemasterslavevservergroups.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html -func (client *Client) DescribeMasterSlaveVServerGroupsWithChan(request *DescribeMasterSlaveVServerGroupsRequest) (<-chan *DescribeMasterSlaveVServerGroupsResponse, <-chan error) { - responseChan := make(chan *DescribeMasterSlaveVServerGroupsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeMasterSlaveVServerGroups(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeMasterSlaveVServerGroupsWithCallback invokes the slb.DescribeMasterSlaveVServerGroups API asynchronously -// api document: https://help.aliyun.com/api/slb/describemasterslavevservergroups.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html -func (client *Client) DescribeMasterSlaveVServerGroupsWithCallback(request *DescribeMasterSlaveVServerGroupsRequest, callback func(response *DescribeMasterSlaveVServerGroupsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeMasterSlaveVServerGroupsResponse - var err error - defer close(result) - response, err = client.DescribeMasterSlaveVServerGroups(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeMasterSlaveVServerGroupsRequest is the request struct for api DescribeMasterSlaveVServerGroups -type DescribeMasterSlaveVServerGroupsRequest struct { - *requests.RpcRequest - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` -} - -// DescribeMasterSlaveVServerGroupsResponse is the response struct for api DescribeMasterSlaveVServerGroups -type DescribeMasterSlaveVServerGroupsResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - MasterSlaveVServerGroups MasterSlaveVServerGroups `json:"MasterSlaveVServerGroups" xml:"MasterSlaveVServerGroups"` -} - -// CreateDescribeMasterSlaveVServerGroupsRequest creates a request to invoke DescribeMasterSlaveVServerGroups API -func CreateDescribeMasterSlaveVServerGroupsRequest() (request *DescribeMasterSlaveVServerGroupsRequest) { - request = &DescribeMasterSlaveVServerGroupsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("Slb", "2014-05-15", "DescribeMasterSlaveVServerGroups", "slb", "openAPI") - return -} - -// CreateDescribeMasterSlaveVServerGroupsResponse creates a response to parse from DescribeMasterSlaveVServerGroups response -func CreateDescribeMasterSlaveVServerGroupsResponse() (response *DescribeMasterSlaveVServerGroupsResponse) { - response = &DescribeMasterSlaveVServerGroupsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_regions.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_regions.go index 6db5d1c2..85891dd2 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_regions.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_regions.go @@ -21,7 +21,6 @@ import ( ) // DescribeRegions invokes the slb.DescribeRegions API synchronously -// api document: https://help.aliyun.com/api/slb/describeregions.html func (client *Client) DescribeRegions(request *DescribeRegionsRequest) (response *DescribeRegionsResponse, err error) { response = CreateDescribeRegionsResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeRegions(request *DescribeRegionsRequest) (response } // DescribeRegionsWithChan invokes the slb.DescribeRegions API asynchronously -// api document: https://help.aliyun.com/api/slb/describeregions.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeRegionsWithChan(request *DescribeRegionsRequest) (<-chan *DescribeRegionsResponse, <-chan error) { responseChan := make(chan *DescribeRegionsResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeRegionsWithChan(request *DescribeRegionsRequest) ( } // DescribeRegionsWithCallback invokes the slb.DescribeRegions API asynchronously -// api document: https://help.aliyun.com/api/slb/describeregions.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeRegionsWithCallback(request *DescribeRegionsRequest, callback func(response *DescribeRegionsResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -80,9 +75,9 @@ type DescribeRegionsRequest struct { ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - AcceptLanguage string `position:"Query" name:"AcceptLanguage"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` Tags string `position:"Query" name:"Tags"` + AcceptLanguage string `position:"Query" name:"AcceptLanguage"` } // DescribeRegionsResponse is the response struct for api DescribeRegions @@ -98,6 +93,7 @@ func CreateDescribeRegionsRequest() (request *DescribeRegionsRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "DescribeRegions", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_rule_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_rule_attribute.go index 7db8d286..06c1ca1a 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_rule_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_rule_attribute.go @@ -21,7 +21,6 @@ import ( ) // DescribeRuleAttribute invokes the slb.DescribeRuleAttribute API synchronously -// api document: https://help.aliyun.com/api/slb/describeruleattribute.html func (client *Client) DescribeRuleAttribute(request *DescribeRuleAttributeRequest) (response *DescribeRuleAttributeResponse, err error) { response = CreateDescribeRuleAttributeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeRuleAttribute(request *DescribeRuleAttributeReques } // DescribeRuleAttributeWithChan invokes the slb.DescribeRuleAttribute API asynchronously -// api document: https://help.aliyun.com/api/slb/describeruleattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeRuleAttributeWithChan(request *DescribeRuleAttributeRequest) (<-chan *DescribeRuleAttributeResponse, <-chan error) { responseChan := make(chan *DescribeRuleAttributeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeRuleAttributeWithChan(request *DescribeRuleAttribu } // DescribeRuleAttributeWithCallback invokes the slb.DescribeRuleAttribute API asynchronously -// api document: https://help.aliyun.com/api/slb/describeruleattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeRuleAttributeWithCallback(request *DescribeRuleAttributeRequest, callback func(response *DescribeRuleAttributeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -81,36 +76,37 @@ type DescribeRuleAttributeRequest struct { ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - RuleId string `position:"Query" name:"RuleId"` Tags string `position:"Query" name:"Tags"` + RuleId string `position:"Query" name:"RuleId"` } // DescribeRuleAttributeResponse is the response struct for api DescribeRuleAttribute type DescribeRuleAttributeResponse struct { *responses.BaseResponse + VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` + Cookie string `json:"Cookie" xml:"Cookie"` + LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` RuleId string `json:"RuleId" xml:"RuleId"` + ServiceManagedMode string `json:"ServiceManagedMode" xml:"ServiceManagedMode"` RequestId string `json:"RequestId" xml:"RequestId"` - RuleName string `json:"RuleName" xml:"RuleName"` - LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` - ListenerPort string `json:"ListenerPort" xml:"ListenerPort"` + HealthCheckConnectPort int `json:"HealthCheckConnectPort" xml:"HealthCheckConnectPort"` + HealthCheckTimeout int `json:"HealthCheckTimeout" xml:"HealthCheckTimeout"` + CookieTimeout int `json:"CookieTimeout" xml:"CookieTimeout"` + HealthCheckDomain string `json:"HealthCheckDomain" xml:"HealthCheckDomain"` + UnhealthyThreshold int `json:"UnhealthyThreshold" xml:"UnhealthyThreshold"` + HealthCheckHttpCode string `json:"HealthCheckHttpCode" xml:"HealthCheckHttpCode"` Domain string `json:"Domain" xml:"Domain"` + ListenerPort string `json:"ListenerPort" xml:"ListenerPort"` Url string `json:"Url" xml:"Url"` - VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` - ListenerSync string `json:"ListenerSync" xml:"ListenerSync"` + HealthCheckInterval int `json:"HealthCheckInterval" xml:"HealthCheckInterval"` + HealthCheckURI string `json:"HealthCheckURI" xml:"HealthCheckURI"` + RuleName string `json:"RuleName" xml:"RuleName"` + StickySessionType string `json:"StickySessionType" xml:"StickySessionType"` Scheduler string `json:"Scheduler" xml:"Scheduler"` + ListenerSync string `json:"ListenerSync" xml:"ListenerSync"` + HealthyThreshold int `json:"HealthyThreshold" xml:"HealthyThreshold"` StickySession string `json:"StickySession" xml:"StickySession"` - StickySessionType string `json:"StickySessionType" xml:"StickySessionType"` - CookieTimeout int `json:"CookieTimeout" xml:"CookieTimeout"` - Cookie string `json:"Cookie" xml:"Cookie"` HealthCheck string `json:"HealthCheck" xml:"HealthCheck"` - HealthCheckDomain string `json:"HealthCheckDomain" xml:"HealthCheckDomain"` - HealthCheckURI string `json:"HealthCheckURI" xml:"HealthCheckURI"` - HealthyThreshold int `json:"HealthyThreshold" xml:"HealthyThreshold"` - UnhealthyThreshold int `json:"UnhealthyThreshold" xml:"UnhealthyThreshold"` - HealthCheckTimeout int `json:"HealthCheckTimeout" xml:"HealthCheckTimeout"` - HealthCheckInterval int `json:"HealthCheckInterval" xml:"HealthCheckInterval"` - HealthCheckConnectPort int `json:"HealthCheckConnectPort" xml:"HealthCheckConnectPort"` - HealthCheckHttpCode string `json:"HealthCheckHttpCode" xml:"HealthCheckHttpCode"` } // CreateDescribeRuleAttributeRequest creates a request to invoke DescribeRuleAttribute API @@ -119,6 +115,7 @@ func CreateDescribeRuleAttributeRequest() (request *DescribeRuleAttributeRequest RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "DescribeRuleAttribute", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_rules.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_rules.go index 23d14e8f..4e6cc0a8 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_rules.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_rules.go @@ -21,7 +21,6 @@ import ( ) // DescribeRules invokes the slb.DescribeRules API synchronously -// api document: https://help.aliyun.com/api/slb/describerules.html func (client *Client) DescribeRules(request *DescribeRulesRequest) (response *DescribeRulesResponse, err error) { response = CreateDescribeRulesResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeRules(request *DescribeRulesRequest) (response *De } // DescribeRulesWithChan invokes the slb.DescribeRules API asynchronously -// api document: https://help.aliyun.com/api/slb/describerules.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeRulesWithChan(request *DescribeRulesRequest) (<-chan *DescribeRulesResponse, <-chan error) { responseChan := make(chan *DescribeRulesResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeRulesWithChan(request *DescribeRulesRequest) (<-ch } // DescribeRulesWithCallback invokes the slb.DescribeRules API asynchronously -// api document: https://help.aliyun.com/api/slb/describerules.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeRulesWithCallback(request *DescribeRulesRequest, callback func(response *DescribeRulesResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -79,12 +74,12 @@ type DescribeRulesRequest struct { AccessKeyId string `position:"Query" name:"access_key_id"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` ListenerProtocol string `position:"Query" name:"ListenerProtocol"` Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` } // DescribeRulesResponse is the response struct for api DescribeRules @@ -100,6 +95,7 @@ func CreateDescribeRulesRequest() (request *DescribeRulesRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "DescribeRules", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_server_certificates.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_server_certificates.go index 44ab2962..ac24abb4 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_server_certificates.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_server_certificates.go @@ -21,7 +21,6 @@ import ( ) // DescribeServerCertificates invokes the slb.DescribeServerCertificates API synchronously -// api document: https://help.aliyun.com/api/slb/describeservercertificates.html func (client *Client) DescribeServerCertificates(request *DescribeServerCertificatesRequest) (response *DescribeServerCertificatesResponse, err error) { response = CreateDescribeServerCertificatesResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeServerCertificates(request *DescribeServerCertific } // DescribeServerCertificatesWithChan invokes the slb.DescribeServerCertificates API asynchronously -// api document: https://help.aliyun.com/api/slb/describeservercertificates.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeServerCertificatesWithChan(request *DescribeServerCertificatesRequest) (<-chan *DescribeServerCertificatesResponse, <-chan error) { responseChan := make(chan *DescribeServerCertificatesResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeServerCertificatesWithChan(request *DescribeServer } // DescribeServerCertificatesWithCallback invokes the slb.DescribeServerCertificates API asynchronously -// api document: https://help.aliyun.com/api/slb/describeservercertificates.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeServerCertificatesWithCallback(request *DescribeServerCertificatesRequest, callback func(response *DescribeServerCertificatesResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,11 +72,11 @@ func (client *Client) DescribeServerCertificatesWithCallback(request *DescribeSe type DescribeServerCertificatesRequest struct { *requests.RpcRequest AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + Tag *[]DescribeServerCertificatesTag `position:"Query" name:"Tag" type:"Repeated"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - Tag *[]DescribeServerCertificatesTag `position:"Query" name:"Tag" type:"Repeated"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` ServerCertificateId string `position:"Query" name:"ServerCertificateId"` Tags string `position:"Query" name:"Tags"` @@ -96,8 +91,8 @@ type DescribeServerCertificatesTag struct { // DescribeServerCertificatesResponse is the response struct for api DescribeServerCertificates type DescribeServerCertificatesResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - ServerCertificates ServerCertificates `json:"ServerCertificates" xml:"ServerCertificates"` + RequestId string `json:"RequestId" xml:"RequestId"` + ServerCertificates ServerCertificatesInDescribeServerCertificates `json:"ServerCertificates" xml:"ServerCertificates"` } // CreateDescribeServerCertificatesRequest creates a request to invoke DescribeServerCertificates API @@ -106,6 +101,7 @@ func CreateDescribeServerCertificatesRequest() (request *DescribeServerCertifica RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "DescribeServerCertificates", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_tags.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_tags.go index 76214d1c..5578bb21 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_tags.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_tags.go @@ -21,7 +21,6 @@ import ( ) // DescribeTags invokes the slb.DescribeTags API synchronously -// api document: https://help.aliyun.com/api/slb/describetags.html func (client *Client) DescribeTags(request *DescribeTagsRequest) (response *DescribeTagsResponse, err error) { response = CreateDescribeTagsResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeTags(request *DescribeTagsRequest) (response *Desc } // DescribeTagsWithChan invokes the slb.DescribeTags API asynchronously -// api document: https://help.aliyun.com/api/slb/describetags.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeTagsWithChan(request *DescribeTagsRequest) (<-chan *DescribeTagsResponse, <-chan error) { responseChan := make(chan *DescribeTagsResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeTagsWithChan(request *DescribeTagsRequest) (<-chan } // DescribeTagsWithCallback invokes the slb.DescribeTags API asynchronously -// api document: https://help.aliyun.com/api/slb/describetags.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeTagsWithCallback(request *DescribeTagsRequest, callback func(response *DescribeTagsResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -78,14 +73,14 @@ type DescribeTagsRequest struct { *requests.RpcRequest AccessKeyId string `position:"Query" name:"access_key_id"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - PageSize requests.Integer `position:"Query" name:"PageSize"` DistinctKey requests.Boolean `position:"Query" name:"DistinctKey"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` } // DescribeTagsResponse is the response struct for api DescribeTags @@ -104,6 +99,7 @@ func CreateDescribeTagsRequest() (request *DescribeTagsRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "DescribeTags", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_v_server_group_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_v_server_group_attribute.go index a9563560..5f5fbf6c 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_v_server_group_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_v_server_group_attribute.go @@ -21,7 +21,6 @@ import ( ) // DescribeVServerGroupAttribute invokes the slb.DescribeVServerGroupAttribute API synchronously -// api document: https://help.aliyun.com/api/slb/describevservergroupattribute.html func (client *Client) DescribeVServerGroupAttribute(request *DescribeVServerGroupAttributeRequest) (response *DescribeVServerGroupAttributeResponse, err error) { response = CreateDescribeVServerGroupAttributeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeVServerGroupAttribute(request *DescribeVServerGrou } // DescribeVServerGroupAttributeWithChan invokes the slb.DescribeVServerGroupAttribute API asynchronously -// api document: https://help.aliyun.com/api/slb/describevservergroupattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeVServerGroupAttributeWithChan(request *DescribeVServerGroupAttributeRequest) (<-chan *DescribeVServerGroupAttributeResponse, <-chan error) { responseChan := make(chan *DescribeVServerGroupAttributeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeVServerGroupAttributeWithChan(request *DescribeVSe } // DescribeVServerGroupAttributeWithCallback invokes the slb.DescribeVServerGroupAttribute API asynchronously -// api document: https://help.aliyun.com/api/slb/describevservergroupattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeVServerGroupAttributeWithCallback(request *DescribeVServerGroupAttributeRequest, callback func(response *DescribeVServerGroupAttributeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,8 +72,8 @@ func (client *Client) DescribeVServerGroupAttributeWithCallback(request *Describ type DescribeVServerGroupAttributeRequest struct { *requests.RpcRequest AccessKeyId string `position:"Query" name:"access_key_id"` - VServerGroupId string `position:"Query" name:"VServerGroupId"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + VServerGroupId string `position:"Query" name:"VServerGroupId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` @@ -88,11 +83,14 @@ type DescribeVServerGroupAttributeRequest struct { // DescribeVServerGroupAttributeResponse is the response struct for api DescribeVServerGroupAttribute type DescribeVServerGroupAttributeResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` - VServerGroupName string `json:"VServerGroupName" xml:"VServerGroupName"` - LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` - BackendServers BackendServersInDescribeVServerGroupAttribute `json:"BackendServers" xml:"BackendServers"` + ServiceManagedMode string `json:"ServiceManagedMode" xml:"ServiceManagedMode"` + VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` + VServerGroupName string `json:"VServerGroupName" xml:"VServerGroupName"` + RequestId string `json:"RequestId" xml:"RequestId"` + LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + BackendServers BackendServersInDescribeVServerGroupAttribute `json:"BackendServers" xml:"BackendServers"` + Tags TagsInDescribeVServerGroupAttribute `json:"Tags" xml:"Tags"` } // CreateDescribeVServerGroupAttributeRequest creates a request to invoke DescribeVServerGroupAttribute API @@ -101,6 +99,7 @@ func CreateDescribeVServerGroupAttributeRequest() (request *DescribeVServerGroup RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "DescribeVServerGroupAttribute", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_v_server_groups.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_v_server_groups.go index e1bad9ee..9fbaf3ab 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_v_server_groups.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_v_server_groups.go @@ -21,7 +21,6 @@ import ( ) // DescribeVServerGroups invokes the slb.DescribeVServerGroups API synchronously -// api document: https://help.aliyun.com/api/slb/describevservergroups.html func (client *Client) DescribeVServerGroups(request *DescribeVServerGroupsRequest) (response *DescribeVServerGroupsResponse, err error) { response = CreateDescribeVServerGroupsResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeVServerGroups(request *DescribeVServerGroupsReques } // DescribeVServerGroupsWithChan invokes the slb.DescribeVServerGroups API asynchronously -// api document: https://help.aliyun.com/api/slb/describevservergroups.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeVServerGroupsWithChan(request *DescribeVServerGroupsRequest) (<-chan *DescribeVServerGroupsResponse, <-chan error) { responseChan := make(chan *DescribeVServerGroupsResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeVServerGroupsWithChan(request *DescribeVServerGrou } // DescribeVServerGroupsWithCallback invokes the slb.DescribeVServerGroups API asynchronously -// api document: https://help.aliyun.com/api/slb/describevservergroups.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeVServerGroupsWithCallback(request *DescribeVServerGroupsRequest, callback func(response *DescribeVServerGroupsResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,15 +71,22 @@ func (client *Client) DescribeVServerGroupsWithCallback(request *DescribeVServer // DescribeVServerGroupsRequest is the request struct for api DescribeVServerGroups type DescribeVServerGroupsRequest struct { *requests.RpcRequest - AccessKeyId string `position:"Query" name:"access_key_id"` - IncludeRule requests.Boolean `position:"Query" name:"IncludeRule"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - IncludeListener requests.Boolean `position:"Query" name:"IncludeListener"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` + AccessKeyId string `position:"Query" name:"access_key_id"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + IncludeListener requests.Boolean `position:"Query" name:"IncludeListener"` + IncludeRule requests.Boolean `position:"Query" name:"IncludeRule"` + Tag *[]DescribeVServerGroupsTag `position:"Query" name:"Tag" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` +} + +// DescribeVServerGroupsTag is a repeated param struct in DescribeVServerGroupsRequest +type DescribeVServerGroupsTag struct { + Value string `name:"Value"` + Key string `name:"Key"` } // DescribeVServerGroupsResponse is the response struct for api DescribeVServerGroups @@ -100,6 +102,7 @@ func CreateDescribeVServerGroupsRequest() (request *DescribeVServerGroupsRequest RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "DescribeVServerGroups", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_zones.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_zones.go index 1efb9010..76065f82 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_zones.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/describe_zones.go @@ -21,7 +21,6 @@ import ( ) // DescribeZones invokes the slb.DescribeZones API synchronously -// api document: https://help.aliyun.com/api/slb/describezones.html func (client *Client) DescribeZones(request *DescribeZonesRequest) (response *DescribeZonesResponse, err error) { response = CreateDescribeZonesResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) DescribeZones(request *DescribeZonesRequest) (response *De } // DescribeZonesWithChan invokes the slb.DescribeZones API asynchronously -// api document: https://help.aliyun.com/api/slb/describezones.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeZonesWithChan(request *DescribeZonesRequest) (<-chan *DescribeZonesResponse, <-chan error) { responseChan := make(chan *DescribeZonesResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) DescribeZonesWithChan(request *DescribeZonesRequest) (<-ch } // DescribeZonesWithCallback invokes the slb.DescribeZones API asynchronously -// api document: https://help.aliyun.com/api/slb/describezones.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) DescribeZonesWithCallback(request *DescribeZonesRequest, callback func(response *DescribeZonesResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -97,6 +92,7 @@ func CreateDescribeZonesRequest() (request *DescribeZonesRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "DescribeZones", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/enable_high_defination_monitor.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/enable_high_defination_monitor.go new file mode 100644 index 00000000..e272f1f8 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/enable_high_defination_monitor.go @@ -0,0 +1,107 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// EnableHighDefinationMonitor invokes the slb.EnableHighDefinationMonitor API synchronously +func (client *Client) EnableHighDefinationMonitor(request *EnableHighDefinationMonitorRequest) (response *EnableHighDefinationMonitorResponse, err error) { + response = CreateEnableHighDefinationMonitorResponse() + err = client.DoAction(request, response) + return +} + +// EnableHighDefinationMonitorWithChan invokes the slb.EnableHighDefinationMonitor API asynchronously +func (client *Client) EnableHighDefinationMonitorWithChan(request *EnableHighDefinationMonitorRequest) (<-chan *EnableHighDefinationMonitorResponse, <-chan error) { + responseChan := make(chan *EnableHighDefinationMonitorResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.EnableHighDefinationMonitor(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// EnableHighDefinationMonitorWithCallback invokes the slb.EnableHighDefinationMonitor API asynchronously +func (client *Client) EnableHighDefinationMonitorWithCallback(request *EnableHighDefinationMonitorRequest, callback func(response *EnableHighDefinationMonitorResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *EnableHighDefinationMonitorResponse + var err error + defer close(result) + response, err = client.EnableHighDefinationMonitor(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// EnableHighDefinationMonitorRequest is the request struct for api EnableHighDefinationMonitor +type EnableHighDefinationMonitorRequest struct { + *requests.RpcRequest + AccessKeyId string `position:"Query" name:"access_key_id"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + LogProject string `position:"Query" name:"LogProject"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Tags string `position:"Query" name:"Tags"` + LogStore string `position:"Query" name:"LogStore"` +} + +// EnableHighDefinationMonitorResponse is the response struct for api EnableHighDefinationMonitor +type EnableHighDefinationMonitorResponse struct { + *responses.BaseResponse + Success string `json:"Success" xml:"Success"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateEnableHighDefinationMonitorRequest creates a request to invoke EnableHighDefinationMonitor API +func CreateEnableHighDefinationMonitorRequest() (request *EnableHighDefinationMonitorRequest) { + request = &EnableHighDefinationMonitorRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "EnableHighDefinationMonitor", "slb", "openAPI") + request.Method = requests.POST + return +} + +// CreateEnableHighDefinationMonitorResponse creates a response to parse from EnableHighDefinationMonitor response +func CreateEnableHighDefinationMonitorResponse() (response *EnableHighDefinationMonitorResponse) { + response = &EnableHighDefinationMonitorResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/endpoint.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/endpoint.go index 742ae3fa..7412d725 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/endpoint.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/endpoint.go @@ -10,15 +10,49 @@ var EndpointType = "regional" func GetEndpointMap() map[string]string { if EndpointMap == nil { EndpointMap = map[string]string{ - "cn-shenzhen": "slb.aliyuncs.com", - "cn-qingdao": "slb.aliyuncs.com", - "cn-beijing": "slb.aliyuncs.com", - "cn-shanghai": "slb.aliyuncs.com", - "cn-hongkong": "slb.aliyuncs.com", - "ap-southeast-1": "slb.aliyuncs.com", - "us-east-1": "slb.aliyuncs.com", - "us-west-1": "slb.aliyuncs.com", - "cn-hangzhou": "slb.aliyuncs.com", + "cn-shanghai-internal-test-1": "slb.aliyuncs.com", + "cn-beijing-gov-1": "slb.aliyuncs.com", + "cn-shenzhen-su18-b01": "slb.aliyuncs.com", + "cn-beijing": "slb.aliyuncs.com", + "cn-shanghai-inner": "slb.aliyuncs.com", + "cn-shenzhen-st4-d01": "slb.aliyuncs.com", + "cn-haidian-cm12-c01": "slb.aliyuncs.com", + "cn-hangzhou-internal-prod-1": "slb.aliyuncs.com", + "cn-north-2-gov-1": "slb.aliyuncs.com", + "cn-yushanfang": "slb.aliyuncs.com", + "cn-qingdao": "slb.aliyuncs.com", + "cn-hongkong-finance-pop": "slb.aliyuncs.com", + "cn-shanghai": "slb.aliyuncs.com", + "cn-shanghai-finance-1": "slb.aliyuncs.com", + "cn-hongkong": "slb.aliyuncs.com", + "cn-beijing-finance-pop": "slb.aliyuncs.com", + "cn-wuhan": "slb.aliyuncs.com", + "us-west-1": "slb.aliyuncs.com", + "cn-zhangbei": "slb.aliyuncs.com", + "cn-shenzhen": "slb.aliyuncs.com", + "cn-zhengzhou-nebula-1": "slb.aliyuncs.com", + "rus-west-1-pop": "slb.aliyuncs.com", + "cn-shanghai-et15-b01": "slb.aliyuncs.com", + "cn-hangzhou-bj-b01": "slb.aliyuncs.com", + "cn-hangzhou-internal-test-1": "slb.aliyuncs.com", + "eu-west-1-oxs": "slb.aliyuncs.com", + "cn-zhangbei-na61-b01": "slb.aliyuncs.com", + "cn-hangzhou-internal-test-3": "slb.aliyuncs.com", + "cn-shenzhen-finance-1": "slb.aliyuncs.com", + "cn-hangzhou-internal-test-2": "slb.aliyuncs.com", + "cn-hangzhou-test-306": "slb.aliyuncs.com", + "cn-huhehaote-nebula-1": "slb-api.cn-qingdao-nebula.aliyuncs.com", + "cn-shanghai-et2-b01": "slb.aliyuncs.com", + "cn-hangzhou-finance": "slb.aliyuncs.com", + "ap-southeast-1": "slb.aliyuncs.com", + "cn-beijing-nu16-b01": "slb.aliyuncs.com", + "cn-edge-1": "slb.aliyuncs.com", + "us-east-1": "slb.aliyuncs.com", + "cn-fujian": "slb.aliyuncs.com", + "ap-northeast-2-pop": "slb.aliyuncs.com", + "cn-shenzhen-inner": "slb.aliyuncs.com", + "cn-zhangjiakou-na62-a01": "slb.aliyuncs.com", + "cn-hangzhou": "slb.aliyuncs.com", } } return EndpointMap diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/list_tag_resources.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/list_tag_resources.go new file mode 100644 index 00000000..57a3db3b --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/list_tag_resources.go @@ -0,0 +1,115 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListTagResources invokes the slb.ListTagResources API synchronously +func (client *Client) ListTagResources(request *ListTagResourcesRequest) (response *ListTagResourcesResponse, err error) { + response = CreateListTagResourcesResponse() + err = client.DoAction(request, response) + return +} + +// ListTagResourcesWithChan invokes the slb.ListTagResources API asynchronously +func (client *Client) ListTagResourcesWithChan(request *ListTagResourcesRequest) (<-chan *ListTagResourcesResponse, <-chan error) { + responseChan := make(chan *ListTagResourcesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListTagResources(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListTagResourcesWithCallback invokes the slb.ListTagResources API asynchronously +func (client *Client) ListTagResourcesWithCallback(request *ListTagResourcesRequest, callback func(response *ListTagResourcesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListTagResourcesResponse + var err error + defer close(result) + response, err = client.ListTagResources(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListTagResourcesRequest is the request struct for api ListTagResources +type ListTagResourcesRequest struct { + *requests.RpcRequest + AccessKeyId string `position:"Query" name:"access_key_id"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + NextToken string `position:"Query" name:"NextToken"` + Tag *[]ListTagResourcesTag `position:"Query" name:"Tag" type:"Repeated"` + ResourceId *[]string `position:"Query" name:"ResourceId" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceType string `position:"Query" name:"ResourceType"` +} + +// ListTagResourcesTag is a repeated param struct in ListTagResourcesRequest +type ListTagResourcesTag struct { + Value string `name:"Value"` + Key string `name:"Key"` +} + +// ListTagResourcesResponse is the response struct for api ListTagResources +type ListTagResourcesResponse struct { + *responses.BaseResponse + NextToken string `json:"NextToken" xml:"NextToken"` + RequestId string `json:"RequestId" xml:"RequestId"` + TagResources TagResources `json:"TagResources" xml:"TagResources"` +} + +// CreateListTagResourcesRequest creates a request to invoke ListTagResources API +func CreateListTagResourcesRequest() (request *ListTagResourcesRequest) { + request = &ListTagResourcesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "ListTagResources", "slb", "openAPI") + request.Method = requests.POST + return +} + +// CreateListTagResourcesResponse creates a response to parse from ListTagResources response +func CreateListTagResourcesResponse() (response *ListTagResourcesResponse) { + response = &ListTagResourcesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/list_tls_cipher_policies.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/list_tls_cipher_policies.go new file mode 100644 index 00000000..e1686b8c --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/list_tls_cipher_policies.go @@ -0,0 +1,112 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ListTLSCipherPolicies invokes the slb.ListTLSCipherPolicies API synchronously +func (client *Client) ListTLSCipherPolicies(request *ListTLSCipherPoliciesRequest) (response *ListTLSCipherPoliciesResponse, err error) { + response = CreateListTLSCipherPoliciesResponse() + err = client.DoAction(request, response) + return +} + +// ListTLSCipherPoliciesWithChan invokes the slb.ListTLSCipherPolicies API asynchronously +func (client *Client) ListTLSCipherPoliciesWithChan(request *ListTLSCipherPoliciesRequest) (<-chan *ListTLSCipherPoliciesResponse, <-chan error) { + responseChan := make(chan *ListTLSCipherPoliciesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListTLSCipherPolicies(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListTLSCipherPoliciesWithCallback invokes the slb.ListTLSCipherPolicies API asynchronously +func (client *Client) ListTLSCipherPoliciesWithCallback(request *ListTLSCipherPoliciesRequest, callback func(response *ListTLSCipherPoliciesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListTLSCipherPoliciesResponse + var err error + defer close(result) + response, err = client.ListTLSCipherPolicies(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListTLSCipherPoliciesRequest is the request struct for api ListTLSCipherPolicies +type ListTLSCipherPoliciesRequest struct { + *requests.RpcRequest + AccessKeyId string `position:"Query" name:"access_key_id"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + IncludeListener requests.Boolean `position:"Query" name:"IncludeListener"` + TLSCipherPolicyId string `position:"Query" name:"TLSCipherPolicyId"` + NextToken string `position:"Query" name:"NextToken"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Name string `position:"Query" name:"Name"` + MaxItems requests.Integer `position:"Query" name:"MaxItems"` +} + +// ListTLSCipherPoliciesResponse is the response struct for api ListTLSCipherPolicies +type ListTLSCipherPoliciesResponse struct { + *responses.BaseResponse + NextToken string `json:"NextToken" xml:"NextToken"` + RequestId string `json:"RequestId" xml:"RequestId"` + TotalCount int `json:"TotalCount" xml:"TotalCount"` + IsTruncated bool `json:"IsTruncated" xml:"IsTruncated"` + TLSCipherPolicies []TLSCipherPolicy `json:"TLSCipherPolicies" xml:"TLSCipherPolicies"` +} + +// CreateListTLSCipherPoliciesRequest creates a request to invoke ListTLSCipherPolicies API +func CreateListTLSCipherPoliciesRequest() (request *ListTLSCipherPoliciesRequest) { + request = &ListTLSCipherPoliciesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "ListTLSCipherPolicies", "slb", "openAPI") + request.Method = requests.POST + return +} + +// CreateListTLSCipherPoliciesResponse creates a response to parse from ListTLSCipherPolicies response +func CreateListTLSCipherPoliciesResponse() (response *ListTLSCipherPoliciesResponse) { + response = &ListTLSCipherPoliciesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/modify_high_defination_monitor.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/modify_high_defination_monitor.go new file mode 100644 index 00000000..7841d756 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/modify_high_defination_monitor.go @@ -0,0 +1,105 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyHighDefinationMonitor invokes the slb.ModifyHighDefinationMonitor API synchronously +func (client *Client) ModifyHighDefinationMonitor(request *ModifyHighDefinationMonitorRequest) (response *ModifyHighDefinationMonitorResponse, err error) { + response = CreateModifyHighDefinationMonitorResponse() + err = client.DoAction(request, response) + return +} + +// ModifyHighDefinationMonitorWithChan invokes the slb.ModifyHighDefinationMonitor API asynchronously +func (client *Client) ModifyHighDefinationMonitorWithChan(request *ModifyHighDefinationMonitorRequest) (<-chan *ModifyHighDefinationMonitorResponse, <-chan error) { + responseChan := make(chan *ModifyHighDefinationMonitorResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyHighDefinationMonitor(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyHighDefinationMonitorWithCallback invokes the slb.ModifyHighDefinationMonitor API asynchronously +func (client *Client) ModifyHighDefinationMonitorWithCallback(request *ModifyHighDefinationMonitorRequest, callback func(response *ModifyHighDefinationMonitorResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyHighDefinationMonitorResponse + var err error + defer close(result) + response, err = client.ModifyHighDefinationMonitor(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyHighDefinationMonitorRequest is the request struct for api ModifyHighDefinationMonitor +type ModifyHighDefinationMonitorRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + LogProject string `position:"Query" name:"LogProject"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + LogStore string `position:"Query" name:"LogStore"` +} + +// ModifyHighDefinationMonitorResponse is the response struct for api ModifyHighDefinationMonitor +type ModifyHighDefinationMonitorResponse struct { + *responses.BaseResponse + Success string `json:"Success" xml:"Success"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyHighDefinationMonitorRequest creates a request to invoke ModifyHighDefinationMonitor API +func CreateModifyHighDefinationMonitorRequest() (request *ModifyHighDefinationMonitorRequest) { + request = &ModifyHighDefinationMonitorRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "ModifyHighDefinationMonitor", "slb", "openAPI") + request.Method = requests.POST + return +} + +// CreateModifyHighDefinationMonitorResponse creates a response to parse from ModifyHighDefinationMonitor response +func CreateModifyHighDefinationMonitorResponse() (response *ModifyHighDefinationMonitorResponse) { + response = &ModifyHighDefinationMonitorResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/modify_load_balancer_instance_charge_type.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/modify_load_balancer_instance_charge_type.go new file mode 100644 index 00000000..ece4311a --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/modify_load_balancer_instance_charge_type.go @@ -0,0 +1,107 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// ModifyLoadBalancerInstanceChargeType invokes the slb.ModifyLoadBalancerInstanceChargeType API synchronously +func (client *Client) ModifyLoadBalancerInstanceChargeType(request *ModifyLoadBalancerInstanceChargeTypeRequest) (response *ModifyLoadBalancerInstanceChargeTypeResponse, err error) { + response = CreateModifyLoadBalancerInstanceChargeTypeResponse() + err = client.DoAction(request, response) + return +} + +// ModifyLoadBalancerInstanceChargeTypeWithChan invokes the slb.ModifyLoadBalancerInstanceChargeType API asynchronously +func (client *Client) ModifyLoadBalancerInstanceChargeTypeWithChan(request *ModifyLoadBalancerInstanceChargeTypeRequest) (<-chan *ModifyLoadBalancerInstanceChargeTypeResponse, <-chan error) { + responseChan := make(chan *ModifyLoadBalancerInstanceChargeTypeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ModifyLoadBalancerInstanceChargeType(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ModifyLoadBalancerInstanceChargeTypeWithCallback invokes the slb.ModifyLoadBalancerInstanceChargeType API asynchronously +func (client *Client) ModifyLoadBalancerInstanceChargeTypeWithCallback(request *ModifyLoadBalancerInstanceChargeTypeRequest, callback func(response *ModifyLoadBalancerInstanceChargeTypeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ModifyLoadBalancerInstanceChargeTypeResponse + var err error + defer close(result) + response, err = client.ModifyLoadBalancerInstanceChargeType(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ModifyLoadBalancerInstanceChargeTypeRequest is the request struct for api ModifyLoadBalancerInstanceChargeType +type ModifyLoadBalancerInstanceChargeTypeRequest struct { + *requests.RpcRequest + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + InstanceChargeType string `position:"Query" name:"InstanceChargeType"` + LoadBalancerSpec string `position:"Query" name:"LoadBalancerSpec"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + InternetChargeType string `position:"Query" name:"InternetChargeType"` +} + +// ModifyLoadBalancerInstanceChargeTypeResponse is the response struct for api ModifyLoadBalancerInstanceChargeType +type ModifyLoadBalancerInstanceChargeTypeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateModifyLoadBalancerInstanceChargeTypeRequest creates a request to invoke ModifyLoadBalancerInstanceChargeType API +func CreateModifyLoadBalancerInstanceChargeTypeRequest() (request *ModifyLoadBalancerInstanceChargeTypeRequest) { + request = &ModifyLoadBalancerInstanceChargeTypeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "ModifyLoadBalancerInstanceChargeType", "slb", "openAPI") + request.Method = requests.POST + return +} + +// CreateModifyLoadBalancerInstanceChargeTypeResponse creates a response to parse from ModifyLoadBalancerInstanceChargeType response +func CreateModifyLoadBalancerInstanceChargeTypeResponse() (response *ModifyLoadBalancerInstanceChargeTypeResponse) { + response = &ModifyLoadBalancerInstanceChargeTypeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/modify_load_balancer_instance_spec.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/modify_load_balancer_instance_spec.go index eab92011..8b19a7db 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/modify_load_balancer_instance_spec.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/modify_load_balancer_instance_spec.go @@ -21,7 +21,6 @@ import ( ) // ModifyLoadBalancerInstanceSpec invokes the slb.ModifyLoadBalancerInstanceSpec API synchronously -// api document: https://help.aliyun.com/api/slb/modifyloadbalancerinstancespec.html func (client *Client) ModifyLoadBalancerInstanceSpec(request *ModifyLoadBalancerInstanceSpecRequest) (response *ModifyLoadBalancerInstanceSpecResponse, err error) { response = CreateModifyLoadBalancerInstanceSpecResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifyLoadBalancerInstanceSpec(request *ModifyLoadBalancer } // ModifyLoadBalancerInstanceSpecWithChan invokes the slb.ModifyLoadBalancerInstanceSpec API asynchronously -// api document: https://help.aliyun.com/api/slb/modifyloadbalancerinstancespec.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyLoadBalancerInstanceSpecWithChan(request *ModifyLoadBalancerInstanceSpecRequest) (<-chan *ModifyLoadBalancerInstanceSpecResponse, <-chan error) { responseChan := make(chan *ModifyLoadBalancerInstanceSpecResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifyLoadBalancerInstanceSpecWithChan(request *ModifyLoad } // ModifyLoadBalancerInstanceSpecWithCallback invokes the slb.ModifyLoadBalancerInstanceSpec API asynchronously -// api document: https://help.aliyun.com/api/slb/modifyloadbalancerinstancespec.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyLoadBalancerInstanceSpecWithCallback(request *ModifyLoadBalancerInstanceSpecRequest, callback func(response *ModifyLoadBalancerInstanceSpecResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,21 +72,21 @@ func (client *Client) ModifyLoadBalancerInstanceSpecWithCallback(request *Modify type ModifyLoadBalancerInstanceSpecRequest struct { *requests.RpcRequest AccessKeyId string `position:"Query" name:"access_key_id"` - LoadBalancerSpec string `position:"Query" name:"LoadBalancerSpec"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + LoadBalancerSpec string `position:"Query" name:"LoadBalancerSpec"` AutoPay requests.Boolean `position:"Query" name:"AutoPay"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` } // ModifyLoadBalancerInstanceSpecResponse is the response struct for api ModifyLoadBalancerInstanceSpec type ModifyLoadBalancerInstanceSpecResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` OrderId int64 `json:"OrderId" xml:"OrderId"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateModifyLoadBalancerInstanceSpecRequest creates a request to invoke ModifyLoadBalancerInstanceSpec API @@ -100,6 +95,7 @@ func CreateModifyLoadBalancerInstanceSpecRequest() (request *ModifyLoadBalancerI RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "ModifyLoadBalancerInstanceSpec", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/modify_load_balancer_internet_spec.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/modify_load_balancer_internet_spec.go index f246ad74..f5caa6ef 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/modify_load_balancer_internet_spec.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/modify_load_balancer_internet_spec.go @@ -21,7 +21,6 @@ import ( ) // ModifyLoadBalancerInternetSpec invokes the slb.ModifyLoadBalancerInternetSpec API synchronously -// api document: https://help.aliyun.com/api/slb/modifyloadbalancerinternetspec.html func (client *Client) ModifyLoadBalancerInternetSpec(request *ModifyLoadBalancerInternetSpecRequest) (response *ModifyLoadBalancerInternetSpecResponse, err error) { response = CreateModifyLoadBalancerInternetSpecResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifyLoadBalancerInternetSpec(request *ModifyLoadBalancer } // ModifyLoadBalancerInternetSpecWithChan invokes the slb.ModifyLoadBalancerInternetSpec API asynchronously -// api document: https://help.aliyun.com/api/slb/modifyloadbalancerinternetspec.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyLoadBalancerInternetSpecWithChan(request *ModifyLoadBalancerInternetSpecRequest) (<-chan *ModifyLoadBalancerInternetSpecResponse, <-chan error) { responseChan := make(chan *ModifyLoadBalancerInternetSpecResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifyLoadBalancerInternetSpecWithChan(request *ModifyLoad } // ModifyLoadBalancerInternetSpecWithCallback invokes the slb.ModifyLoadBalancerInternetSpec API asynchronously -// api document: https://help.aliyun.com/api/slb/modifyloadbalancerinternetspec.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyLoadBalancerInternetSpecWithCallback(request *ModifyLoadBalancerInternetSpecRequest, callback func(response *ModifyLoadBalancerInternetSpecResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -92,8 +87,8 @@ type ModifyLoadBalancerInternetSpecRequest struct { // ModifyLoadBalancerInternetSpecResponse is the response struct for api ModifyLoadBalancerInternetSpec type ModifyLoadBalancerInternetSpecResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` OrderId int64 `json:"OrderId" xml:"OrderId"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateModifyLoadBalancerInternetSpecRequest creates a request to invoke ModifyLoadBalancerInternetSpec API @@ -102,6 +97,7 @@ func CreateModifyLoadBalancerInternetSpecRequest() (request *ModifyLoadBalancerI RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "ModifyLoadBalancerInternetSpec", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/modify_load_balancer_pay_type.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/modify_load_balancer_pay_type.go index a9295c32..81740a5f 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/modify_load_balancer_pay_type.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/modify_load_balancer_pay_type.go @@ -21,7 +21,6 @@ import ( ) // ModifyLoadBalancerPayType invokes the slb.ModifyLoadBalancerPayType API synchronously -// api document: https://help.aliyun.com/api/slb/modifyloadbalancerpaytype.html func (client *Client) ModifyLoadBalancerPayType(request *ModifyLoadBalancerPayTypeRequest) (response *ModifyLoadBalancerPayTypeResponse, err error) { response = CreateModifyLoadBalancerPayTypeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifyLoadBalancerPayType(request *ModifyLoadBalancerPayTy } // ModifyLoadBalancerPayTypeWithChan invokes the slb.ModifyLoadBalancerPayType API asynchronously -// api document: https://help.aliyun.com/api/slb/modifyloadbalancerpaytype.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyLoadBalancerPayTypeWithChan(request *ModifyLoadBalancerPayTypeRequest) (<-chan *ModifyLoadBalancerPayTypeResponse, <-chan error) { responseChan := make(chan *ModifyLoadBalancerPayTypeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifyLoadBalancerPayTypeWithChan(request *ModifyLoadBalan } // ModifyLoadBalancerPayTypeWithCallback invokes the slb.ModifyLoadBalancerPayType API asynchronously -// api document: https://help.aliyun.com/api/slb/modifyloadbalancerpaytype.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyLoadBalancerPayTypeWithCallback(request *ModifyLoadBalancerPayTypeRequest, callback func(response *ModifyLoadBalancerPayTypeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -78,12 +73,12 @@ type ModifyLoadBalancerPayTypeRequest struct { *requests.RpcRequest AccessKeyId string `position:"Query" name:"access_key_id"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Duration requests.Integer `position:"Query" name:"Duration"` AutoPay requests.Boolean `position:"Query" name:"AutoPay"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` Tags string `position:"Query" name:"Tags"` - Duration requests.Integer `position:"Query" name:"Duration"` LoadBalancerId string `position:"Query" name:"LoadBalancerId"` PayType string `position:"Query" name:"PayType"` PricingCycle string `position:"Query" name:"PricingCycle"` @@ -92,8 +87,8 @@ type ModifyLoadBalancerPayTypeRequest struct { // ModifyLoadBalancerPayTypeResponse is the response struct for api ModifyLoadBalancerPayType type ModifyLoadBalancerPayTypeResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` OrderId int64 `json:"OrderId" xml:"OrderId"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateModifyLoadBalancerPayTypeRequest creates a request to invoke ModifyLoadBalancerPayType API @@ -102,6 +97,7 @@ func CreateModifyLoadBalancerPayTypeRequest() (request *ModifyLoadBalancerPayTyp RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "ModifyLoadBalancerPayType", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/modify_v_server_group_backend_servers.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/modify_v_server_group_backend_servers.go index 6c998abc..e93e52c1 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/modify_v_server_group_backend_servers.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/modify_v_server_group_backend_servers.go @@ -21,7 +21,6 @@ import ( ) // ModifyVServerGroupBackendServers invokes the slb.ModifyVServerGroupBackendServers API synchronously -// api document: https://help.aliyun.com/api/slb/modifyvservergroupbackendservers.html func (client *Client) ModifyVServerGroupBackendServers(request *ModifyVServerGroupBackendServersRequest) (response *ModifyVServerGroupBackendServersResponse, err error) { response = CreateModifyVServerGroupBackendServersResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) ModifyVServerGroupBackendServers(request *ModifyVServerGro } // ModifyVServerGroupBackendServersWithChan invokes the slb.ModifyVServerGroupBackendServers API asynchronously -// api document: https://help.aliyun.com/api/slb/modifyvservergroupbackendservers.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyVServerGroupBackendServersWithChan(request *ModifyVServerGroupBackendServersRequest) (<-chan *ModifyVServerGroupBackendServersResponse, <-chan error) { responseChan := make(chan *ModifyVServerGroupBackendServersResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) ModifyVServerGroupBackendServersWithChan(request *ModifyVS } // ModifyVServerGroupBackendServersWithCallback invokes the slb.ModifyVServerGroupBackendServers API asynchronously -// api document: https://help.aliyun.com/api/slb/modifyvservergroupbackendservers.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) ModifyVServerGroupBackendServersWithCallback(request *ModifyVServerGroupBackendServersRequest, callback func(response *ModifyVServerGroupBackendServersResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,21 +72,21 @@ func (client *Client) ModifyVServerGroupBackendServersWithCallback(request *Modi type ModifyVServerGroupBackendServersRequest struct { *requests.RpcRequest AccessKeyId string `position:"Query" name:"access_key_id"` - VServerGroupId string `position:"Query" name:"VServerGroupId"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - OldBackendServers string `position:"Query" name:"OldBackendServers"` + VServerGroupId string `position:"Query" name:"VServerGroupId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` NewBackendServers string `position:"Query" name:"NewBackendServers"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` Tags string `position:"Query" name:"Tags"` + OldBackendServers string `position:"Query" name:"OldBackendServers"` } // ModifyVServerGroupBackendServersResponse is the response struct for api ModifyVServerGroupBackendServers type ModifyVServerGroupBackendServersResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` + RequestId string `json:"RequestId" xml:"RequestId"` BackendServers BackendServersInModifyVServerGroupBackendServers `json:"BackendServers" xml:"BackendServers"` } @@ -101,6 +96,7 @@ func CreateModifyVServerGroupBackendServersRequest() (request *ModifyVServerGrou RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "ModifyVServerGroupBackendServers", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/move_resource_group.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/move_resource_group.go new file mode 100644 index 00000000..cf9bdf1a --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/move_resource_group.go @@ -0,0 +1,108 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// MoveResourceGroup invokes the slb.MoveResourceGroup API synchronously +func (client *Client) MoveResourceGroup(request *MoveResourceGroupRequest) (response *MoveResourceGroupResponse, err error) { + response = CreateMoveResourceGroupResponse() + err = client.DoAction(request, response) + return +} + +// MoveResourceGroupWithChan invokes the slb.MoveResourceGroup API asynchronously +func (client *Client) MoveResourceGroupWithChan(request *MoveResourceGroupRequest) (<-chan *MoveResourceGroupResponse, <-chan error) { + responseChan := make(chan *MoveResourceGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.MoveResourceGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// MoveResourceGroupWithCallback invokes the slb.MoveResourceGroup API asynchronously +func (client *Client) MoveResourceGroupWithCallback(request *MoveResourceGroupRequest, callback func(response *MoveResourceGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *MoveResourceGroupResponse + var err error + defer close(result) + response, err = client.MoveResourceGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// MoveResourceGroupRequest is the request struct for api MoveResourceGroup +type MoveResourceGroupRequest struct { + *requests.RpcRequest + AccessKeyId string `position:"Query" name:"access_key_id"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + ResourceId string `position:"Query" name:"ResourceId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceType string `position:"Query" name:"ResourceType"` + Tags string `position:"Query" name:"Tags"` + NewResourceGroupId string `position:"Query" name:"NewResourceGroupId"` +} + +// MoveResourceGroupResponse is the response struct for api MoveResourceGroup +type MoveResourceGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateMoveResourceGroupRequest creates a request to invoke MoveResourceGroup API +func CreateMoveResourceGroupRequest() (request *MoveResourceGroupRequest) { + request = &MoveResourceGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "MoveResourceGroup", "slb", "openAPI") + request.Method = requests.POST + return +} + +// CreateMoveResourceGroupResponse creates a response to parse from MoveResourceGroup response +func CreateMoveResourceGroupResponse() (response *MoveResourceGroupResponse) { + response = &MoveResourceGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/remove_access_control_list_entry.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/remove_access_control_list_entry.go index 1dc6c2cb..05f2cb8e 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/remove_access_control_list_entry.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/remove_access_control_list_entry.go @@ -21,7 +21,6 @@ import ( ) // RemoveAccessControlListEntry invokes the slb.RemoveAccessControlListEntry API synchronously -// api document: https://help.aliyun.com/api/slb/removeaccesscontrollistentry.html func (client *Client) RemoveAccessControlListEntry(request *RemoveAccessControlListEntryRequest) (response *RemoveAccessControlListEntryResponse, err error) { response = CreateRemoveAccessControlListEntryResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) RemoveAccessControlListEntry(request *RemoveAccessControlL } // RemoveAccessControlListEntryWithChan invokes the slb.RemoveAccessControlListEntry API asynchronously -// api document: https://help.aliyun.com/api/slb/removeaccesscontrollistentry.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) RemoveAccessControlListEntryWithChan(request *RemoveAccessControlListEntryRequest) (<-chan *RemoveAccessControlListEntryResponse, <-chan error) { responseChan := make(chan *RemoveAccessControlListEntryResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) RemoveAccessControlListEntryWithChan(request *RemoveAccess } // RemoveAccessControlListEntryWithCallback invokes the slb.RemoveAccessControlListEntry API asynchronously -// api document: https://help.aliyun.com/api/slb/removeaccesscontrollistentry.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) RemoveAccessControlListEntryWithCallback(request *RemoveAccessControlListEntryRequest, callback func(response *RemoveAccessControlListEntryResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,11 +72,11 @@ func (client *Client) RemoveAccessControlListEntryWithCallback(request *RemoveAc type RemoveAccessControlListEntryRequest struct { *requests.RpcRequest AccessKeyId string `position:"Query" name:"access_key_id"` - AclId string `position:"Query" name:"AclId"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + AclEntrys string `position:"Query" name:"AclEntrys"` + AclId string `position:"Query" name:"AclId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - AclEntrys string `position:"Query" name:"AclEntrys"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` Tags string `position:"Query" name:"Tags"` } @@ -98,6 +93,7 @@ func CreateRemoveAccessControlListEntryRequest() (request *RemoveAccessControlLi RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "RemoveAccessControlListEntry", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/remove_backend_servers.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/remove_backend_servers.go index 8b798cf8..51c0fb46 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/remove_backend_servers.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/remove_backend_servers.go @@ -21,7 +21,6 @@ import ( ) // RemoveBackendServers invokes the slb.RemoveBackendServers API synchronously -// api document: https://help.aliyun.com/api/slb/removebackendservers.html func (client *Client) RemoveBackendServers(request *RemoveBackendServersRequest) (response *RemoveBackendServersResponse, err error) { response = CreateRemoveBackendServersResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) RemoveBackendServers(request *RemoveBackendServersRequest) } // RemoveBackendServersWithChan invokes the slb.RemoveBackendServers API asynchronously -// api document: https://help.aliyun.com/api/slb/removebackendservers.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) RemoveBackendServersWithChan(request *RemoveBackendServersRequest) (<-chan *RemoveBackendServersResponse, <-chan error) { responseChan := make(chan *RemoveBackendServersResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) RemoveBackendServersWithChan(request *RemoveBackendServers } // RemoveBackendServersWithCallback invokes the slb.RemoveBackendServers API asynchronously -// api document: https://help.aliyun.com/api/slb/removebackendservers.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) RemoveBackendServersWithCallback(request *RemoveBackendServersRequest, callback func(response *RemoveBackendServersResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -78,19 +73,19 @@ type RemoveBackendServersRequest struct { *requests.RpcRequest AccessKeyId string `position:"Query" name:"access_key_id"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + BackendServers string `position:"Query" name:"BackendServers"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - BackendServers string `position:"Query" name:"BackendServers"` Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` } // RemoveBackendServersResponse is the response struct for api RemoveBackendServers type RemoveBackendServersResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` + RequestId string `json:"RequestId" xml:"RequestId"` BackendServers BackendServersInRemoveBackendServers `json:"BackendServers" xml:"BackendServers"` } @@ -100,6 +95,7 @@ func CreateRemoveBackendServersRequest() (request *RemoveBackendServersRequest) RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "RemoveBackendServers", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/remove_listener_white_list_item.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/remove_listener_white_list_item.go index 66460e90..2d39ab10 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/remove_listener_white_list_item.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/remove_listener_white_list_item.go @@ -21,7 +21,6 @@ import ( ) // RemoveListenerWhiteListItem invokes the slb.RemoveListenerWhiteListItem API synchronously -// api document: https://help.aliyun.com/api/slb/removelistenerwhitelistitem.html func (client *Client) RemoveListenerWhiteListItem(request *RemoveListenerWhiteListItemRequest) (response *RemoveListenerWhiteListItemResponse, err error) { response = CreateRemoveListenerWhiteListItemResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) RemoveListenerWhiteListItem(request *RemoveListenerWhiteLi } // RemoveListenerWhiteListItemWithChan invokes the slb.RemoveListenerWhiteListItem API asynchronously -// api document: https://help.aliyun.com/api/slb/removelistenerwhitelistitem.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) RemoveListenerWhiteListItemWithChan(request *RemoveListenerWhiteListItemRequest) (<-chan *RemoveListenerWhiteListItemResponse, <-chan error) { responseChan := make(chan *RemoveListenerWhiteListItemResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) RemoveListenerWhiteListItemWithChan(request *RemoveListene } // RemoveListenerWhiteListItemWithCallback invokes the slb.RemoveListenerWhiteListItem API asynchronously -// api document: https://help.aliyun.com/api/slb/removelistenerwhitelistitem.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) RemoveListenerWhiteListItemWithCallback(request *RemoveListenerWhiteListItemRequest, callback func(response *RemoveListenerWhiteListItemResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -78,14 +73,14 @@ type RemoveListenerWhiteListItemRequest struct { *requests.RpcRequest AccessKeyId string `position:"Query" name:"access_key_id"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` SourceItems string `position:"Query" name:"SourceItems"` + ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` ListenerProtocol string `position:"Query" name:"ListenerProtocol"` Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` } // RemoveListenerWhiteListItemResponse is the response struct for api RemoveListenerWhiteListItem @@ -100,6 +95,7 @@ func CreateRemoveListenerWhiteListItemRequest() (request *RemoveListenerWhiteLis RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "RemoveListenerWhiteListItem", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/remove_tags.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/remove_tags.go index a6225906..007ab9e6 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/remove_tags.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/remove_tags.go @@ -21,7 +21,6 @@ import ( ) // RemoveTags invokes the slb.RemoveTags API synchronously -// api document: https://help.aliyun.com/api/slb/removetags.html func (client *Client) RemoveTags(request *RemoveTagsRequest) (response *RemoveTagsResponse, err error) { response = CreateRemoveTagsResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) RemoveTags(request *RemoveTagsRequest) (response *RemoveTa } // RemoveTagsWithChan invokes the slb.RemoveTags API asynchronously -// api document: https://help.aliyun.com/api/slb/removetags.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) RemoveTagsWithChan(request *RemoveTagsRequest) (<-chan *RemoveTagsResponse, <-chan error) { responseChan := make(chan *RemoveTagsResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) RemoveTagsWithChan(request *RemoveTagsRequest) (<-chan *Re } // RemoveTagsWithCallback invokes the slb.RemoveTags API asynchronously -// api document: https://help.aliyun.com/api/slb/removetags.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) RemoveTagsWithCallback(request *RemoveTagsRequest, callback func(response *RemoveTagsResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -78,11 +73,11 @@ type RemoveTagsRequest struct { *requests.RpcRequest AccessKeyId string `position:"Query" name:"access_key_id"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` } // RemoveTagsResponse is the response struct for api RemoveTags @@ -97,6 +92,7 @@ func CreateRemoveTagsRequest() (request *RemoveTagsRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "RemoveTags", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/remove_v_server_group_backend_servers.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/remove_v_server_group_backend_servers.go index 10d5b4ba..9fc5becf 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/remove_v_server_group_backend_servers.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/remove_v_server_group_backend_servers.go @@ -21,7 +21,6 @@ import ( ) // RemoveVServerGroupBackendServers invokes the slb.RemoveVServerGroupBackendServers API synchronously -// api document: https://help.aliyun.com/api/slb/removevservergroupbackendservers.html func (client *Client) RemoveVServerGroupBackendServers(request *RemoveVServerGroupBackendServersRequest) (response *RemoveVServerGroupBackendServersResponse, err error) { response = CreateRemoveVServerGroupBackendServersResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) RemoveVServerGroupBackendServers(request *RemoveVServerGro } // RemoveVServerGroupBackendServersWithChan invokes the slb.RemoveVServerGroupBackendServers API asynchronously -// api document: https://help.aliyun.com/api/slb/removevservergroupbackendservers.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) RemoveVServerGroupBackendServersWithChan(request *RemoveVServerGroupBackendServersRequest) (<-chan *RemoveVServerGroupBackendServersResponse, <-chan error) { responseChan := make(chan *RemoveVServerGroupBackendServersResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) RemoveVServerGroupBackendServersWithChan(request *RemoveVS } // RemoveVServerGroupBackendServersWithCallback invokes the slb.RemoveVServerGroupBackendServers API asynchronously -// api document: https://help.aliyun.com/api/slb/removevservergroupbackendservers.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) RemoveVServerGroupBackendServersWithCallback(request *RemoveVServerGroupBackendServersRequest, callback func(response *RemoveVServerGroupBackendServersResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,20 +72,20 @@ func (client *Client) RemoveVServerGroupBackendServersWithCallback(request *Remo type RemoveVServerGroupBackendServersRequest struct { *requests.RpcRequest AccessKeyId string `position:"Query" name:"access_key_id"` - VServerGroupId string `position:"Query" name:"VServerGroupId"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + BackendServers string `position:"Query" name:"BackendServers"` + VServerGroupId string `position:"Query" name:"VServerGroupId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - BackendServers string `position:"Query" name:"BackendServers"` Tags string `position:"Query" name:"Tags"` } // RemoveVServerGroupBackendServersResponse is the response struct for api RemoveVServerGroupBackendServers type RemoveVServerGroupBackendServersResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` + RequestId string `json:"RequestId" xml:"RequestId"` BackendServers BackendServersInRemoveVServerGroupBackendServers `json:"BackendServers" xml:"BackendServers"` } @@ -100,6 +95,7 @@ func CreateRemoveVServerGroupBackendServersRequest() (request *RemoveVServerGrou RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "RemoveVServerGroupBackendServers", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_access_control_list_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_access_control_list_attribute.go index 6603e13a..64f9c92f 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_access_control_list_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_access_control_list_attribute.go @@ -21,7 +21,6 @@ import ( ) // SetAccessControlListAttribute invokes the slb.SetAccessControlListAttribute API synchronously -// api document: https://help.aliyun.com/api/slb/setaccesscontrollistattribute.html func (client *Client) SetAccessControlListAttribute(request *SetAccessControlListAttributeRequest) (response *SetAccessControlListAttributeResponse, err error) { response = CreateSetAccessControlListAttributeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) SetAccessControlListAttribute(request *SetAccessControlLis } // SetAccessControlListAttributeWithChan invokes the slb.SetAccessControlListAttribute API asynchronously -// api document: https://help.aliyun.com/api/slb/setaccesscontrollistattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) SetAccessControlListAttributeWithChan(request *SetAccessControlListAttributeRequest) (<-chan *SetAccessControlListAttributeResponse, <-chan error) { responseChan := make(chan *SetAccessControlListAttributeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) SetAccessControlListAttributeWithChan(request *SetAccessCo } // SetAccessControlListAttributeWithCallback invokes the slb.SetAccessControlListAttribute API asynchronously -// api document: https://help.aliyun.com/api/slb/setaccesscontrollistattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) SetAccessControlListAttributeWithCallback(request *SetAccessControlListAttributeRequest, callback func(response *SetAccessControlListAttributeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,9 +72,9 @@ func (client *Client) SetAccessControlListAttributeWithCallback(request *SetAcce type SetAccessControlListAttributeRequest struct { *requests.RpcRequest AccessKeyId string `position:"Query" name:"access_key_id"` - AclId string `position:"Query" name:"AclId"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` AclName string `position:"Query" name:"AclName"` + AclId string `position:"Query" name:"AclId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` @@ -89,8 +84,8 @@ type SetAccessControlListAttributeRequest struct { // SetAccessControlListAttributeResponse is the response struct for api SetAccessControlListAttribute type SetAccessControlListAttributeResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` AclId string `json:"AclId" xml:"AclId"` + RequestId string `json:"RequestId" xml:"RequestId"` } // CreateSetAccessControlListAttributeRequest creates a request to invoke SetAccessControlListAttribute API @@ -99,6 +94,7 @@ func CreateSetAccessControlListAttributeRequest() (request *SetAccessControlList RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "SetAccessControlListAttribute", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_access_logs_download_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_access_logs_download_attribute.go new file mode 100644 index 00000000..56f87a58 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_access_logs_download_attribute.go @@ -0,0 +1,106 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetAccessLogsDownloadAttribute invokes the slb.SetAccessLogsDownloadAttribute API synchronously +func (client *Client) SetAccessLogsDownloadAttribute(request *SetAccessLogsDownloadAttributeRequest) (response *SetAccessLogsDownloadAttributeResponse, err error) { + response = CreateSetAccessLogsDownloadAttributeResponse() + err = client.DoAction(request, response) + return +} + +// SetAccessLogsDownloadAttributeWithChan invokes the slb.SetAccessLogsDownloadAttribute API asynchronously +func (client *Client) SetAccessLogsDownloadAttributeWithChan(request *SetAccessLogsDownloadAttributeRequest) (<-chan *SetAccessLogsDownloadAttributeResponse, <-chan error) { + responseChan := make(chan *SetAccessLogsDownloadAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetAccessLogsDownloadAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetAccessLogsDownloadAttributeWithCallback invokes the slb.SetAccessLogsDownloadAttribute API asynchronously +func (client *Client) SetAccessLogsDownloadAttributeWithCallback(request *SetAccessLogsDownloadAttributeRequest, callback func(response *SetAccessLogsDownloadAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetAccessLogsDownloadAttributeResponse + var err error + defer close(result) + response, err = client.SetAccessLogsDownloadAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetAccessLogsDownloadAttributeRequest is the request struct for api SetAccessLogsDownloadAttribute +type SetAccessLogsDownloadAttributeRequest struct { + *requests.RpcRequest + AccessKeyId string `position:"Query" name:"access_key_id"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + LogsDownloadAttributes string `position:"Query" name:"LogsDownloadAttributes"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` +} + +// SetAccessLogsDownloadAttributeResponse is the response struct for api SetAccessLogsDownloadAttribute +type SetAccessLogsDownloadAttributeResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetAccessLogsDownloadAttributeRequest creates a request to invoke SetAccessLogsDownloadAttribute API +func CreateSetAccessLogsDownloadAttributeRequest() (request *SetAccessLogsDownloadAttributeRequest) { + request = &SetAccessLogsDownloadAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "SetAccessLogsDownloadAttribute", "slb", "openAPI") + request.Method = requests.POST + return +} + +// CreateSetAccessLogsDownloadAttributeResponse creates a response to parse from SetAccessLogsDownloadAttribute response +func CreateSetAccessLogsDownloadAttributeResponse() (response *SetAccessLogsDownloadAttributeResponse) { + response = &SetAccessLogsDownloadAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_backend_servers.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_backend_servers.go index f8160006..4ab2432a 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_backend_servers.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_backend_servers.go @@ -21,7 +21,6 @@ import ( ) // SetBackendServers invokes the slb.SetBackendServers API synchronously -// api document: https://help.aliyun.com/api/slb/setbackendservers.html func (client *Client) SetBackendServers(request *SetBackendServersRequest) (response *SetBackendServersResponse, err error) { response = CreateSetBackendServersResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) SetBackendServers(request *SetBackendServersRequest) (resp } // SetBackendServersWithChan invokes the slb.SetBackendServers API asynchronously -// api document: https://help.aliyun.com/api/slb/setbackendservers.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) SetBackendServersWithChan(request *SetBackendServersRequest) (<-chan *SetBackendServersResponse, <-chan error) { responseChan := make(chan *SetBackendServersResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) SetBackendServersWithChan(request *SetBackendServersReques } // SetBackendServersWithCallback invokes the slb.SetBackendServers API asynchronously -// api document: https://help.aliyun.com/api/slb/setbackendservers.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) SetBackendServersWithCallback(request *SetBackendServersRequest, callback func(response *SetBackendServersResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -78,19 +73,19 @@ type SetBackendServersRequest struct { *requests.RpcRequest AccessKeyId string `position:"Query" name:"access_key_id"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + BackendServers string `position:"Query" name:"BackendServers"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - BackendServers string `position:"Query" name:"BackendServers"` Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` } // SetBackendServersResponse is the response struct for api SetBackendServers type SetBackendServersResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` + RequestId string `json:"RequestId" xml:"RequestId"` BackendServers BackendServersInSetBackendServers `json:"BackendServers" xml:"BackendServers"` } @@ -100,6 +95,7 @@ func CreateSetBackendServersRequest() (request *SetBackendServersRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "SetBackendServers", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_ca_certificate_name.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_ca_certificate_name.go index 68bae4bc..f3bf4750 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_ca_certificate_name.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_ca_certificate_name.go @@ -21,7 +21,6 @@ import ( ) // SetCACertificateName invokes the slb.SetCACertificateName API synchronously -// api document: https://help.aliyun.com/api/slb/setcacertificatename.html func (client *Client) SetCACertificateName(request *SetCACertificateNameRequest) (response *SetCACertificateNameResponse, err error) { response = CreateSetCACertificateNameResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) SetCACertificateName(request *SetCACertificateNameRequest) } // SetCACertificateNameWithChan invokes the slb.SetCACertificateName API asynchronously -// api document: https://help.aliyun.com/api/slb/setcacertificatename.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) SetCACertificateNameWithChan(request *SetCACertificateNameRequest) (<-chan *SetCACertificateNameResponse, <-chan error) { responseChan := make(chan *SetCACertificateNameResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) SetCACertificateNameWithChan(request *SetCACertificateName } // SetCACertificateNameWithCallback invokes the slb.SetCACertificateName API asynchronously -// api document: https://help.aliyun.com/api/slb/setcacertificatename.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) SetCACertificateNameWithCallback(request *SetCACertificateNameRequest, callback func(response *SetCACertificateNameResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -97,6 +92,7 @@ func CreateSetCACertificateNameRequest() (request *SetCACertificateNameRequest) RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "SetCACertificateName", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_domain_extension_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_domain_extension_attribute.go index b57d10ab..cd20806c 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_domain_extension_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_domain_extension_attribute.go @@ -21,7 +21,6 @@ import ( ) // SetDomainExtensionAttribute invokes the slb.SetDomainExtensionAttribute API synchronously -// api document: https://help.aliyun.com/api/slb/setdomainextensionattribute.html func (client *Client) SetDomainExtensionAttribute(request *SetDomainExtensionAttributeRequest) (response *SetDomainExtensionAttributeResponse, err error) { response = CreateSetDomainExtensionAttributeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) SetDomainExtensionAttribute(request *SetDomainExtensionAtt } // SetDomainExtensionAttributeWithChan invokes the slb.SetDomainExtensionAttribute API asynchronously -// api document: https://help.aliyun.com/api/slb/setdomainextensionattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) SetDomainExtensionAttributeWithChan(request *SetDomainExtensionAttributeRequest) (<-chan *SetDomainExtensionAttributeResponse, <-chan error) { responseChan := make(chan *SetDomainExtensionAttributeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) SetDomainExtensionAttributeWithChan(request *SetDomainExte } // SetDomainExtensionAttributeWithCallback invokes the slb.SetDomainExtensionAttribute API asynchronously -// api document: https://help.aliyun.com/api/slb/setdomainextensionattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) SetDomainExtensionAttributeWithCallback(request *SetDomainExtensionAttributeRequest, callback func(response *SetDomainExtensionAttributeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,14 +71,23 @@ func (client *Client) SetDomainExtensionAttributeWithCallback(request *SetDomain // SetDomainExtensionAttributeRequest is the request struct for api SetDomainExtensionAttribute type SetDomainExtensionAttributeRequest struct { *requests.RpcRequest - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ServerCertificateId string `position:"Query" name:"ServerCertificateId"` - Tags string `position:"Query" name:"Tags"` - DomainExtensionId string `position:"Query" name:"DomainExtensionId"` + AccessKeyId string `position:"Query" name:"access_key_id"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ServerCertificate *[]SetDomainExtensionAttributeServerCertificate `position:"Query" name:"ServerCertificate" type:"Repeated"` + DomainExtensionId string `position:"Query" name:"DomainExtensionId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + CertificateId *[]string `position:"Query" name:"CertificateId" type:"Repeated"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ServerCertificateId string `position:"Query" name:"ServerCertificateId"` + Tags string `position:"Query" name:"Tags"` +} + +// SetDomainExtensionAttributeServerCertificate is a repeated param struct in SetDomainExtensionAttributeRequest +type SetDomainExtensionAttributeServerCertificate struct { + BindingType string `name:"BindingType"` + CertificateId string `name:"CertificateId"` + StandardType string `name:"StandardType"` } // SetDomainExtensionAttributeResponse is the response struct for api SetDomainExtensionAttribute @@ -98,6 +102,7 @@ func CreateSetDomainExtensionAttributeRequest() (request *SetDomainExtensionAttr RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "SetDomainExtensionAttribute", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_listener_access_control_status.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_listener_access_control_status.go index 15498eeb..ef13f8e8 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_listener_access_control_status.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_listener_access_control_status.go @@ -21,7 +21,6 @@ import ( ) // SetListenerAccessControlStatus invokes the slb.SetListenerAccessControlStatus API synchronously -// api document: https://help.aliyun.com/api/slb/setlisteneraccesscontrolstatus.html func (client *Client) SetListenerAccessControlStatus(request *SetListenerAccessControlStatusRequest) (response *SetListenerAccessControlStatusResponse, err error) { response = CreateSetListenerAccessControlStatusResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) SetListenerAccessControlStatus(request *SetListenerAccessC } // SetListenerAccessControlStatusWithChan invokes the slb.SetListenerAccessControlStatus API asynchronously -// api document: https://help.aliyun.com/api/slb/setlisteneraccesscontrolstatus.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) SetListenerAccessControlStatusWithChan(request *SetListenerAccessControlStatusRequest) (<-chan *SetListenerAccessControlStatusResponse, <-chan error) { responseChan := make(chan *SetListenerAccessControlStatusResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) SetListenerAccessControlStatusWithChan(request *SetListene } // SetListenerAccessControlStatusWithCallback invokes the slb.SetListenerAccessControlStatus API asynchronously -// api document: https://help.aliyun.com/api/slb/setlisteneraccesscontrolstatus.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) SetListenerAccessControlStatusWithCallback(request *SetListenerAccessControlStatusRequest, callback func(response *SetListenerAccessControlStatusResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -78,14 +73,14 @@ type SetListenerAccessControlStatusRequest struct { *requests.RpcRequest AccessKeyId string `position:"Query" name:"access_key_id"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + AccessControlStatus string `position:"Query" name:"AccessControlStatus"` ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` - AccessControlStatus string `position:"Query" name:"AccessControlStatus"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` ListenerProtocol string `position:"Query" name:"ListenerProtocol"` Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` } // SetListenerAccessControlStatusResponse is the response struct for api SetListenerAccessControlStatus @@ -100,6 +95,7 @@ func CreateSetListenerAccessControlStatusRequest() (request *SetListenerAccessCo RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "SetListenerAccessControlStatus", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_delete_protection.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_delete_protection.go index 443d49ed..c4679657 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_delete_protection.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_delete_protection.go @@ -21,7 +21,6 @@ import ( ) // SetLoadBalancerDeleteProtection invokes the slb.SetLoadBalancerDeleteProtection API synchronously -// api document: https://help.aliyun.com/api/slb/setloadbalancerdeleteprotection.html func (client *Client) SetLoadBalancerDeleteProtection(request *SetLoadBalancerDeleteProtectionRequest) (response *SetLoadBalancerDeleteProtectionResponse, err error) { response = CreateSetLoadBalancerDeleteProtectionResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) SetLoadBalancerDeleteProtection(request *SetLoadBalancerDe } // SetLoadBalancerDeleteProtectionWithChan invokes the slb.SetLoadBalancerDeleteProtection API asynchronously -// api document: https://help.aliyun.com/api/slb/setloadbalancerdeleteprotection.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) SetLoadBalancerDeleteProtectionWithChan(request *SetLoadBalancerDeleteProtectionRequest) (<-chan *SetLoadBalancerDeleteProtectionResponse, <-chan error) { responseChan := make(chan *SetLoadBalancerDeleteProtectionResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) SetLoadBalancerDeleteProtectionWithChan(request *SetLoadBa } // SetLoadBalancerDeleteProtectionWithCallback invokes the slb.SetLoadBalancerDeleteProtection API asynchronously -// api document: https://help.aliyun.com/api/slb/setloadbalancerdeleteprotection.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) SetLoadBalancerDeleteProtectionWithCallback(request *SetLoadBalancerDeleteProtectionRequest, callback func(response *SetLoadBalancerDeleteProtectionResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -78,12 +73,12 @@ type SetLoadBalancerDeleteProtectionRequest struct { *requests.RpcRequest AccessKeyId string `position:"Query" name:"access_key_id"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + DeleteProtection string `position:"Query" name:"DeleteProtection"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - DeleteProtection string `position:"Query" name:"DeleteProtection"` Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` } // SetLoadBalancerDeleteProtectionResponse is the response struct for api SetLoadBalancerDeleteProtection @@ -98,6 +93,7 @@ func CreateSetLoadBalancerDeleteProtectionRequest() (request *SetLoadBalancerDel RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "SetLoadBalancerDeleteProtection", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_http_listener_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_http_listener_attribute.go index f791607c..50b26079 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_http_listener_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_http_listener_attribute.go @@ -21,7 +21,6 @@ import ( ) // SetLoadBalancerHTTPListenerAttribute invokes the slb.SetLoadBalancerHTTPListenerAttribute API synchronously -// api document: https://help.aliyun.com/api/slb/setloadbalancerhttplistenerattribute.html func (client *Client) SetLoadBalancerHTTPListenerAttribute(request *SetLoadBalancerHTTPListenerAttributeRequest) (response *SetLoadBalancerHTTPListenerAttributeResponse, err error) { response = CreateSetLoadBalancerHTTPListenerAttributeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) SetLoadBalancerHTTPListenerAttribute(request *SetLoadBalan } // SetLoadBalancerHTTPListenerAttributeWithChan invokes the slb.SetLoadBalancerHTTPListenerAttribute API asynchronously -// api document: https://help.aliyun.com/api/slb/setloadbalancerhttplistenerattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) SetLoadBalancerHTTPListenerAttributeWithChan(request *SetLoadBalancerHTTPListenerAttributeRequest) (<-chan *SetLoadBalancerHTTPListenerAttributeResponse, <-chan error) { responseChan := make(chan *SetLoadBalancerHTTPListenerAttributeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) SetLoadBalancerHTTPListenerAttributeWithChan(request *SetL } // SetLoadBalancerHTTPListenerAttributeWithCallback invokes the slb.SetLoadBalancerHTTPListenerAttribute API asynchronously -// api document: https://help.aliyun.com/api/slb/setloadbalancerhttplistenerattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) SetLoadBalancerHTTPListenerAttributeWithCallback(request *SetLoadBalancerHTTPListenerAttributeRequest, callback func(response *SetLoadBalancerHTTPListenerAttributeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,46 +71,49 @@ func (client *Client) SetLoadBalancerHTTPListenerAttributeWithCallback(request * // SetLoadBalancerHTTPListenerAttributeRequest is the request struct for api SetLoadBalancerHTTPListenerAttribute type SetLoadBalancerHTTPListenerAttributeRequest struct { *requests.RpcRequest - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - HealthCheckTimeout requests.Integer `position:"Query" name:"HealthCheckTimeout"` - XForwardedFor string `position:"Query" name:"XForwardedFor"` - HealthCheckURI string `position:"Query" name:"HealthCheckURI"` - Description string `position:"Query" name:"Description"` - UnhealthyThreshold requests.Integer `position:"Query" name:"UnhealthyThreshold"` - HealthyThreshold requests.Integer `position:"Query" name:"HealthyThreshold"` - AclStatus string `position:"Query" name:"AclStatus"` - Scheduler string `position:"Query" name:"Scheduler"` - AclType string `position:"Query" name:"AclType"` - HealthCheck string `position:"Query" name:"HealthCheck"` - MaxConnection requests.Integer `position:"Query" name:"MaxConnection"` - CookieTimeout requests.Integer `position:"Query" name:"CookieTimeout"` - StickySessionType string `position:"Query" name:"StickySessionType"` - VpcIds string `position:"Query" name:"VpcIds"` - VServerGroupId string `position:"Query" name:"VServerGroupId"` - AclId string `position:"Query" name:"AclId"` - ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` - Cookie string `position:"Query" name:"Cookie"` - HealthCheckType string `position:"Query" name:"HealthCheckType"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` - StickySession string `position:"Query" name:"StickySession"` - HealthCheckMethod string `position:"Query" name:"HealthCheckMethod"` - HealthCheckDomain string `position:"Query" name:"HealthCheckDomain"` - RequestTimeout requests.Integer `position:"Query" name:"RequestTimeout"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - Gzip string `position:"Query" name:"Gzip"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` - IdleTimeout requests.Integer `position:"Query" name:"IdleTimeout"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` - XForwardedForSLBIP string `position:"Query" name:"XForwardedFor_SLBIP"` - HealthCheckInterval requests.Integer `position:"Query" name:"HealthCheckInterval"` - XForwardedForProto string `position:"Query" name:"XForwardedFor_proto"` - XForwardedForSLBID string `position:"Query" name:"XForwardedFor_SLBID"` - HealthCheckConnectPort requests.Integer `position:"Query" name:"HealthCheckConnectPort"` - HealthCheckHttpCode string `position:"Query" name:"HealthCheckHttpCode"` - VServerGroup string `position:"Query" name:"VServerGroup"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + HealthCheckTimeout requests.Integer `position:"Query" name:"HealthCheckTimeout"` + XForwardedFor string `position:"Query" name:"XForwardedFor"` + HealthCheckURI string `position:"Query" name:"HealthCheckURI"` + XForwardedForSLBPORT string `position:"Query" name:"XForwardedFor_SLBPORT"` + AclStatus string `position:"Query" name:"AclStatus"` + AclType string `position:"Query" name:"AclType"` + HealthCheck string `position:"Query" name:"HealthCheck"` + VpcIds string `position:"Query" name:"VpcIds"` + VServerGroupId string `position:"Query" name:"VServerGroupId"` + AclId string `position:"Query" name:"AclId"` + ForwardCode requests.Integer `position:"Query" name:"ForwardCode"` + Cookie string `position:"Query" name:"Cookie"` + HealthCheckMethod string `position:"Query" name:"HealthCheckMethod"` + HealthCheckDomain string `position:"Query" name:"HealthCheckDomain"` + RequestTimeout requests.Integer `position:"Query" name:"RequestTimeout"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + XForwardedForSLBIP string `position:"Query" name:"XForwardedFor_SLBIP"` + HealthCheckInterval requests.Integer `position:"Query" name:"HealthCheckInterval"` + XForwardedForSLBID string `position:"Query" name:"XForwardedFor_SLBID"` + AccessKeyId string `position:"Query" name:"access_key_id"` + XForwardedForClientSrcPort string `position:"Query" name:"XForwardedFor_ClientSrcPort"` + Description string `position:"Query" name:"Description"` + UnhealthyThreshold requests.Integer `position:"Query" name:"UnhealthyThreshold"` + HealthyThreshold requests.Integer `position:"Query" name:"HealthyThreshold"` + Scheduler string `position:"Query" name:"Scheduler"` + MaxConnection requests.Integer `position:"Query" name:"MaxConnection"` + CookieTimeout requests.Integer `position:"Query" name:"CookieTimeout"` + StickySessionType string `position:"Query" name:"StickySessionType"` + ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` + HealthCheckType string `position:"Query" name:"HealthCheckType"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` + StickySession string `position:"Query" name:"StickySession"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Gzip string `position:"Query" name:"Gzip"` + IdleTimeout requests.Integer `position:"Query" name:"IdleTimeout"` + XForwardedForProto string `position:"Query" name:"XForwardedFor_proto"` + HealthCheckConnectPort requests.Integer `position:"Query" name:"HealthCheckConnectPort"` + HealthCheckHttpCode string `position:"Query" name:"HealthCheckHttpCode"` + VServerGroup string `position:"Query" name:"VServerGroup"` } // SetLoadBalancerHTTPListenerAttributeResponse is the response struct for api SetLoadBalancerHTTPListenerAttribute @@ -130,6 +128,7 @@ func CreateSetLoadBalancerHTTPListenerAttributeRequest() (request *SetLoadBalanc RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "SetLoadBalancerHTTPListenerAttribute", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_https_listener_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_https_listener_attribute.go index 7ec5683a..956f595c 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_https_listener_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_https_listener_attribute.go @@ -21,7 +21,6 @@ import ( ) // SetLoadBalancerHTTPSListenerAttribute invokes the slb.SetLoadBalancerHTTPSListenerAttribute API synchronously -// api document: https://help.aliyun.com/api/slb/setloadbalancerhttpslistenerattribute.html func (client *Client) SetLoadBalancerHTTPSListenerAttribute(request *SetLoadBalancerHTTPSListenerAttributeRequest) (response *SetLoadBalancerHTTPSListenerAttributeResponse, err error) { response = CreateSetLoadBalancerHTTPSListenerAttributeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) SetLoadBalancerHTTPSListenerAttribute(request *SetLoadBala } // SetLoadBalancerHTTPSListenerAttributeWithChan invokes the slb.SetLoadBalancerHTTPSListenerAttribute API asynchronously -// api document: https://help.aliyun.com/api/slb/setloadbalancerhttpslistenerattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) SetLoadBalancerHTTPSListenerAttributeWithChan(request *SetLoadBalancerHTTPSListenerAttributeRequest) (<-chan *SetLoadBalancerHTTPSListenerAttributeResponse, <-chan error) { responseChan := make(chan *SetLoadBalancerHTTPSListenerAttributeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) SetLoadBalancerHTTPSListenerAttributeWithChan(request *Set } // SetLoadBalancerHTTPSListenerAttributeWithCallback invokes the slb.SetLoadBalancerHTTPSListenerAttribute API asynchronously -// api document: https://help.aliyun.com/api/slb/setloadbalancerhttpslistenerattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) SetLoadBalancerHTTPSListenerAttributeWithCallback(request *SetLoadBalancerHTTPSListenerAttributeRequest, callback func(response *SetLoadBalancerHTTPSListenerAttributeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,51 +71,69 @@ func (client *Client) SetLoadBalancerHTTPSListenerAttributeWithCallback(request // SetLoadBalancerHTTPSListenerAttributeRequest is the request struct for api SetLoadBalancerHTTPSListenerAttribute type SetLoadBalancerHTTPSListenerAttributeRequest struct { *requests.RpcRequest - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - HealthCheckTimeout requests.Integer `position:"Query" name:"HealthCheckTimeout"` - XForwardedFor string `position:"Query" name:"XForwardedFor"` - HealthCheckURI string `position:"Query" name:"HealthCheckURI"` - Description string `position:"Query" name:"Description"` - UnhealthyThreshold requests.Integer `position:"Query" name:"UnhealthyThreshold"` - HealthyThreshold requests.Integer `position:"Query" name:"HealthyThreshold"` - AclStatus string `position:"Query" name:"AclStatus"` - Scheduler string `position:"Query" name:"Scheduler"` - AclType string `position:"Query" name:"AclType"` - HealthCheck string `position:"Query" name:"HealthCheck"` - MaxConnection requests.Integer `position:"Query" name:"MaxConnection"` - EnableHttp2 string `position:"Query" name:"EnableHttp2"` - CookieTimeout requests.Integer `position:"Query" name:"CookieTimeout"` - StickySessionType string `position:"Query" name:"StickySessionType"` - VpcIds string `position:"Query" name:"VpcIds"` - VServerGroupId string `position:"Query" name:"VServerGroupId"` - AclId string `position:"Query" name:"AclId"` - ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` - Cookie string `position:"Query" name:"Cookie"` - HealthCheckType string `position:"Query" name:"HealthCheckType"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` - StickySession string `position:"Query" name:"StickySession"` - HealthCheckMethod string `position:"Query" name:"HealthCheckMethod"` - HealthCheckDomain string `position:"Query" name:"HealthCheckDomain"` - RequestTimeout requests.Integer `position:"Query" name:"RequestTimeout"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - Gzip string `position:"Query" name:"Gzip"` - TLSCipherPolicy string `position:"Query" name:"TLSCipherPolicy"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - ServerCertificateId string `position:"Query" name:"ServerCertificateId"` - CACertificateId string `position:"Query" name:"CACertificateId"` - BackendProtocol string `position:"Query" name:"BackendProtocol"` - Tags string `position:"Query" name:"Tags"` - IdleTimeout requests.Integer `position:"Query" name:"IdleTimeout"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` - XForwardedForSLBIP string `position:"Query" name:"XForwardedFor_SLBIP"` - HealthCheckInterval requests.Integer `position:"Query" name:"HealthCheckInterval"` - XForwardedForProto string `position:"Query" name:"XForwardedFor_proto"` - XForwardedForSLBID string `position:"Query" name:"XForwardedFor_SLBID"` - HealthCheckConnectPort requests.Integer `position:"Query" name:"HealthCheckConnectPort"` - HealthCheckHttpCode string `position:"Query" name:"HealthCheckHttpCode"` - VServerGroup string `position:"Query" name:"VServerGroup"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ServerCertificate *[]SetLoadBalancerHTTPSListenerAttributeServerCertificate `position:"Query" name:"ServerCertificate" type:"Repeated"` + HealthCheckTimeout requests.Integer `position:"Query" name:"HealthCheckTimeout"` + XForwardedFor string `position:"Query" name:"XForwardedFor"` + HealthCheckURI string `position:"Query" name:"HealthCheckURI"` + XForwardedForSLBPORT string `position:"Query" name:"XForwardedFor_SLBPORT"` + AclStatus string `position:"Query" name:"AclStatus"` + AclType string `position:"Query" name:"AclType"` + HealthCheck string `position:"Query" name:"HealthCheck"` + VpcIds string `position:"Query" name:"VpcIds"` + VServerGroupId string `position:"Query" name:"VServerGroupId"` + AclId string `position:"Query" name:"AclId"` + XForwardedForClientCertClientVerify string `position:"Query" name:"XForwardedFor_ClientCertClientVerify"` + Cookie string `position:"Query" name:"Cookie"` + HealthCheckMethod string `position:"Query" name:"HealthCheckMethod"` + HealthCheckDomain string `position:"Query" name:"HealthCheckDomain"` + RequestTimeout requests.Integer `position:"Query" name:"RequestTimeout"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + CACertificateId string `position:"Query" name:"CACertificateId"` + BackendProtocol string `position:"Query" name:"BackendProtocol"` + Tags string `position:"Query" name:"Tags"` + XForwardedForClientCertFingerprintAlias string `position:"Query" name:"XForwardedFor_ClientCertFingerprintAlias"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + XForwardedForSLBIP string `position:"Query" name:"XForwardedFor_SLBIP"` + HealthCheckInterval requests.Integer `position:"Query" name:"HealthCheckInterval"` + XForwardedForClientCertClientVerifyAlias string `position:"Query" name:"XForwardedFor_ClientCertClientVerifyAlias"` + XForwardedForSLBID string `position:"Query" name:"XForwardedFor_SLBID"` + XForwardedForClientCertFingerprint string `position:"Query" name:"XForwardedFor_ClientCertFingerprint"` + AccessKeyId string `position:"Query" name:"access_key_id"` + XForwardedForClientSrcPort string `position:"Query" name:"XForwardedFor_ClientSrcPort"` + Description string `position:"Query" name:"Description"` + UnhealthyThreshold requests.Integer `position:"Query" name:"UnhealthyThreshold"` + XForwardedForClientCertIssuerDNAlias string `position:"Query" name:"XForwardedFor_ClientCertIssuerDNAlias"` + HealthyThreshold requests.Integer `position:"Query" name:"HealthyThreshold"` + Scheduler string `position:"Query" name:"Scheduler"` + MaxConnection requests.Integer `position:"Query" name:"MaxConnection"` + EnableHttp2 string `position:"Query" name:"EnableHttp2"` + XForwardedForClientCertSubjectDN string `position:"Query" name:"XForwardedFor_ClientCertSubjectDN"` + CookieTimeout requests.Integer `position:"Query" name:"CookieTimeout"` + StickySessionType string `position:"Query" name:"StickySessionType"` + ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` + HealthCheckType string `position:"Query" name:"HealthCheckType"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` + StickySession string `position:"Query" name:"StickySession"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + Gzip string `position:"Query" name:"Gzip"` + TLSCipherPolicy string `position:"Query" name:"TLSCipherPolicy"` + ServerCertificateId string `position:"Query" name:"ServerCertificateId"` + IdleTimeout requests.Integer `position:"Query" name:"IdleTimeout"` + XForwardedForProto string `position:"Query" name:"XForwardedFor_proto"` + XForwardedForClientCertSubjectDNAlias string `position:"Query" name:"XForwardedFor_ClientCertSubjectDNAlias"` + HealthCheckConnectPort requests.Integer `position:"Query" name:"HealthCheckConnectPort"` + HealthCheckHttpCode string `position:"Query" name:"HealthCheckHttpCode"` + VServerGroup string `position:"Query" name:"VServerGroup"` + XForwardedForClientCertIssuerDN string `position:"Query" name:"XForwardedFor_ClientCertIssuerDN"` +} + +// SetLoadBalancerHTTPSListenerAttributeServerCertificate is a repeated param struct in SetLoadBalancerHTTPSListenerAttributeRequest +type SetLoadBalancerHTTPSListenerAttributeServerCertificate struct { + BindingType string `name:"BindingType"` + CertificateId string `name:"CertificateId"` + StandardType string `name:"StandardType"` } // SetLoadBalancerHTTPSListenerAttributeResponse is the response struct for api SetLoadBalancerHTTPSListenerAttribute @@ -135,6 +148,7 @@ func CreateSetLoadBalancerHTTPSListenerAttributeRequest() (request *SetLoadBalan RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "SetLoadBalancerHTTPSListenerAttribute", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_modification_protection.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_modification_protection.go new file mode 100644 index 00000000..98d23306 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_modification_protection.go @@ -0,0 +1,105 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetLoadBalancerModificationProtection invokes the slb.SetLoadBalancerModificationProtection API synchronously +func (client *Client) SetLoadBalancerModificationProtection(request *SetLoadBalancerModificationProtectionRequest) (response *SetLoadBalancerModificationProtectionResponse, err error) { + response = CreateSetLoadBalancerModificationProtectionResponse() + err = client.DoAction(request, response) + return +} + +// SetLoadBalancerModificationProtectionWithChan invokes the slb.SetLoadBalancerModificationProtection API asynchronously +func (client *Client) SetLoadBalancerModificationProtectionWithChan(request *SetLoadBalancerModificationProtectionRequest) (<-chan *SetLoadBalancerModificationProtectionResponse, <-chan error) { + responseChan := make(chan *SetLoadBalancerModificationProtectionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetLoadBalancerModificationProtection(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetLoadBalancerModificationProtectionWithCallback invokes the slb.SetLoadBalancerModificationProtection API asynchronously +func (client *Client) SetLoadBalancerModificationProtectionWithCallback(request *SetLoadBalancerModificationProtectionRequest, callback func(response *SetLoadBalancerModificationProtectionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetLoadBalancerModificationProtectionResponse + var err error + defer close(result) + response, err = client.SetLoadBalancerModificationProtection(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetLoadBalancerModificationProtectionRequest is the request struct for api SetLoadBalancerModificationProtection +type SetLoadBalancerModificationProtectionRequest struct { + *requests.RpcRequest + ModificationProtectionReason string `position:"Query" name:"ModificationProtectionReason"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + ModificationProtectionStatus string `position:"Query" name:"ModificationProtectionStatus"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` +} + +// SetLoadBalancerModificationProtectionResponse is the response struct for api SetLoadBalancerModificationProtection +type SetLoadBalancerModificationProtectionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetLoadBalancerModificationProtectionRequest creates a request to invoke SetLoadBalancerModificationProtection API +func CreateSetLoadBalancerModificationProtectionRequest() (request *SetLoadBalancerModificationProtectionRequest) { + request = &SetLoadBalancerModificationProtectionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "SetLoadBalancerModificationProtection", "slb", "openAPI") + request.Method = requests.POST + return +} + +// CreateSetLoadBalancerModificationProtectionResponse creates a response to parse from SetLoadBalancerModificationProtection response +func CreateSetLoadBalancerModificationProtectionResponse() (response *SetLoadBalancerModificationProtectionResponse) { + response = &SetLoadBalancerModificationProtectionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_name.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_name.go index 6f18cd93..efdaa9ec 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_name.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_name.go @@ -21,7 +21,6 @@ import ( ) // SetLoadBalancerName invokes the slb.SetLoadBalancerName API synchronously -// api document: https://help.aliyun.com/api/slb/setloadbalancername.html func (client *Client) SetLoadBalancerName(request *SetLoadBalancerNameRequest) (response *SetLoadBalancerNameResponse, err error) { response = CreateSetLoadBalancerNameResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) SetLoadBalancerName(request *SetLoadBalancerNameRequest) ( } // SetLoadBalancerNameWithChan invokes the slb.SetLoadBalancerName API asynchronously -// api document: https://help.aliyun.com/api/slb/setloadbalancername.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) SetLoadBalancerNameWithChan(request *SetLoadBalancerNameRequest) (<-chan *SetLoadBalancerNameResponse, <-chan error) { responseChan := make(chan *SetLoadBalancerNameResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) SetLoadBalancerNameWithChan(request *SetLoadBalancerNameRe } // SetLoadBalancerNameWithCallback invokes the slb.SetLoadBalancerName API asynchronously -// api document: https://help.aliyun.com/api/slb/setloadbalancername.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) SetLoadBalancerNameWithCallback(request *SetLoadBalancerNameRequest, callback func(response *SetLoadBalancerNameResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -79,11 +74,11 @@ type SetLoadBalancerNameRequest struct { AccessKeyId string `position:"Query" name:"access_key_id"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` LoadBalancerName string `position:"Query" name:"LoadBalancerName"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` } // SetLoadBalancerNameResponse is the response struct for api SetLoadBalancerName @@ -98,6 +93,7 @@ func CreateSetLoadBalancerNameRequest() (request *SetLoadBalancerNameRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "SetLoadBalancerName", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_status.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_status.go index e8e33d44..b62971d1 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_status.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_status.go @@ -21,7 +21,6 @@ import ( ) // SetLoadBalancerStatus invokes the slb.SetLoadBalancerStatus API synchronously -// api document: https://help.aliyun.com/api/slb/setloadbalancerstatus.html func (client *Client) SetLoadBalancerStatus(request *SetLoadBalancerStatusRequest) (response *SetLoadBalancerStatusResponse, err error) { response = CreateSetLoadBalancerStatusResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) SetLoadBalancerStatus(request *SetLoadBalancerStatusReques } // SetLoadBalancerStatusWithChan invokes the slb.SetLoadBalancerStatus API asynchronously -// api document: https://help.aliyun.com/api/slb/setloadbalancerstatus.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) SetLoadBalancerStatusWithChan(request *SetLoadBalancerStatusRequest) (<-chan *SetLoadBalancerStatusResponse, <-chan error) { responseChan := make(chan *SetLoadBalancerStatusResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) SetLoadBalancerStatusWithChan(request *SetLoadBalancerStat } // SetLoadBalancerStatusWithCallback invokes the slb.SetLoadBalancerStatus API asynchronously -// api document: https://help.aliyun.com/api/slb/setloadbalancerstatus.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) SetLoadBalancerStatusWithCallback(request *SetLoadBalancerStatusRequest, callback func(response *SetLoadBalancerStatusResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -78,12 +73,12 @@ type SetLoadBalancerStatusRequest struct { *requests.RpcRequest AccessKeyId string `position:"Query" name:"access_key_id"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` LoadBalancerStatus string `position:"Query" name:"LoadBalancerStatus"` Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` } // SetLoadBalancerStatusResponse is the response struct for api SetLoadBalancerStatus @@ -98,6 +93,7 @@ func CreateSetLoadBalancerStatusRequest() (request *SetLoadBalancerStatusRequest RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "SetLoadBalancerStatus", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_tcp_listener_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_tcp_listener_attribute.go index ecd4721e..557411ec 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_tcp_listener_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_tcp_listener_attribute.go @@ -21,7 +21,6 @@ import ( ) // SetLoadBalancerTCPListenerAttribute invokes the slb.SetLoadBalancerTCPListenerAttribute API synchronously -// api document: https://help.aliyun.com/api/slb/setloadbalancertcplistenerattribute.html func (client *Client) SetLoadBalancerTCPListenerAttribute(request *SetLoadBalancerTCPListenerAttributeRequest) (response *SetLoadBalancerTCPListenerAttributeResponse, err error) { response = CreateSetLoadBalancerTCPListenerAttributeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) SetLoadBalancerTCPListenerAttribute(request *SetLoadBalanc } // SetLoadBalancerTCPListenerAttributeWithChan invokes the slb.SetLoadBalancerTCPListenerAttribute API asynchronously -// api document: https://help.aliyun.com/api/slb/setloadbalancertcplistenerattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) SetLoadBalancerTCPListenerAttributeWithChan(request *SetLoadBalancerTCPListenerAttributeRequest) (<-chan *SetLoadBalancerTCPListenerAttributeResponse, <-chan error) { responseChan := make(chan *SetLoadBalancerTCPListenerAttributeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) SetLoadBalancerTCPListenerAttributeWithChan(request *SetLo } // SetLoadBalancerTCPListenerAttributeWithCallback invokes the slb.SetLoadBalancerTCPListenerAttribute API asynchronously -// api document: https://help.aliyun.com/api/slb/setloadbalancertcplistenerattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) SetLoadBalancerTCPListenerAttributeWithCallback(request *SetLoadBalancerTCPListenerAttributeRequest, callback func(response *SetLoadBalancerTCPListenerAttributeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,39 +71,57 @@ func (client *Client) SetLoadBalancerTCPListenerAttributeWithCallback(request *S // SetLoadBalancerTCPListenerAttributeRequest is the request struct for api SetLoadBalancerTCPListenerAttribute type SetLoadBalancerTCPListenerAttributeRequest struct { *requests.RpcRequest - AccessKeyId string `position:"Query" name:"access_key_id"` - HealthCheckConnectTimeout requests.Integer `position:"Query" name:"HealthCheckConnectTimeout"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - HealthCheckURI string `position:"Query" name:"HealthCheckURI"` - Description string `position:"Query" name:"Description"` - UnhealthyThreshold requests.Integer `position:"Query" name:"UnhealthyThreshold"` - HealthyThreshold requests.Integer `position:"Query" name:"HealthyThreshold"` - AclStatus string `position:"Query" name:"AclStatus"` - Scheduler string `position:"Query" name:"Scheduler"` - AclType string `position:"Query" name:"AclType"` - MasterSlaveServerGroup string `position:"Query" name:"MasterSlaveServerGroup"` - EstablishedTimeout requests.Integer `position:"Query" name:"EstablishedTimeout"` - MaxConnection requests.Integer `position:"Query" name:"MaxConnection"` - PersistenceTimeout requests.Integer `position:"Query" name:"PersistenceTimeout"` - VpcIds string `position:"Query" name:"VpcIds"` - VServerGroupId string `position:"Query" name:"VServerGroupId"` - AclId string `position:"Query" name:"AclId"` - ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` - HealthCheckType string `position:"Query" name:"HealthCheckType"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` - HealthCheckMethod string `position:"Query" name:"HealthCheckMethod"` - HealthCheckDomain string `position:"Query" name:"HealthCheckDomain"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - SynProxy string `position:"Query" name:"SynProxy"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` - MasterSlaveServerGroupId string `position:"Query" name:"MasterSlaveServerGroupId"` - HealthCheckInterval requests.Integer `position:"Query" name:"HealthCheckInterval"` - HealthCheckConnectPort requests.Integer `position:"Query" name:"HealthCheckConnectPort"` - HealthCheckHttpCode string `position:"Query" name:"HealthCheckHttpCode"` - VServerGroup string `position:"Query" name:"VServerGroup"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + HealthCheckURI string `position:"Query" name:"HealthCheckURI"` + AclStatus string `position:"Query" name:"AclStatus"` + FullNatEnabled requests.Boolean `position:"Query" name:"FullNatEnabled"` + HealthCheckTcpFastCloseEnabled requests.Boolean `position:"Query" name:"HealthCheckTcpFastCloseEnabled"` + AclType string `position:"Query" name:"AclType"` + MasterSlaveServerGroup string `position:"Query" name:"MasterSlaveServerGroup"` + EstablishedTimeout requests.Integer `position:"Query" name:"EstablishedTimeout"` + FailoverStrategy string `position:"Query" name:"FailoverStrategy"` + PersistenceTimeout requests.Integer `position:"Query" name:"PersistenceTimeout"` + VpcIds string `position:"Query" name:"VpcIds"` + MasterSlaveModeEnabled requests.Boolean `position:"Query" name:"MasterSlaveModeEnabled"` + VServerGroupId string `position:"Query" name:"VServerGroupId"` + AclId string `position:"Query" name:"AclId"` + PortRange *[]SetLoadBalancerTCPListenerAttributePortRange `position:"Query" name:"PortRange" type:"Repeated"` + HealthCheckMethod string `position:"Query" name:"HealthCheckMethod"` + HealthCheckDomain string `position:"Query" name:"HealthCheckDomain"` + SynProxy string `position:"Query" name:"SynProxy"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + MasterSlaveServerGroupId string `position:"Query" name:"MasterSlaveServerGroupId"` + HealthCheckInterval requests.Integer `position:"Query" name:"HealthCheckInterval"` + FailoverThreshold requests.Integer `position:"Query" name:"FailoverThreshold"` + ProxyProtocolV2Enabled requests.Boolean `position:"Query" name:"ProxyProtocolV2Enabled"` + ConnectionDrain string `position:"Query" name:"ConnectionDrain"` + HealthCheckSwitch string `position:"Query" name:"HealthCheckSwitch"` + AccessKeyId string `position:"Query" name:"access_key_id"` + HealthCheckConnectTimeout requests.Integer `position:"Query" name:"HealthCheckConnectTimeout"` + SlaveServerGroupId string `position:"Query" name:"SlaveServerGroupId"` + Description string `position:"Query" name:"Description"` + UnhealthyThreshold requests.Integer `position:"Query" name:"UnhealthyThreshold"` + HealthyThreshold requests.Integer `position:"Query" name:"HealthyThreshold"` + Scheduler string `position:"Query" name:"Scheduler"` + MaxConnection requests.Integer `position:"Query" name:"MaxConnection"` + MasterServerGroupId string `position:"Query" name:"MasterServerGroupId"` + ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` + HealthCheckType string `position:"Query" name:"HealthCheckType"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ConnectionDrainTimeout requests.Integer `position:"Query" name:"ConnectionDrainTimeout"` + HealthCheckConnectPort requests.Integer `position:"Query" name:"HealthCheckConnectPort"` + HealthCheckHttpCode string `position:"Query" name:"HealthCheckHttpCode"` + VServerGroup string `position:"Query" name:"VServerGroup"` +} + +// SetLoadBalancerTCPListenerAttributePortRange is a repeated param struct in SetLoadBalancerTCPListenerAttributeRequest +type SetLoadBalancerTCPListenerAttributePortRange struct { + StartPort string `name:"StartPort"` + EndPort string `name:"EndPort"` } // SetLoadBalancerTCPListenerAttributeResponse is the response struct for api SetLoadBalancerTCPListenerAttribute @@ -123,6 +136,7 @@ func CreateSetLoadBalancerTCPListenerAttributeRequest() (request *SetLoadBalance RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "SetLoadBalancerTCPListenerAttribute", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_udp_listener_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_udp_listener_attribute.go index cc878222..6b8abf5f 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_udp_listener_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_load_balancer_udp_listener_attribute.go @@ -21,7 +21,6 @@ import ( ) // SetLoadBalancerUDPListenerAttribute invokes the slb.SetLoadBalancerUDPListenerAttribute API synchronously -// api document: https://help.aliyun.com/api/slb/setloadbalancerudplistenerattribute.html func (client *Client) SetLoadBalancerUDPListenerAttribute(request *SetLoadBalancerUDPListenerAttributeRequest) (response *SetLoadBalancerUDPListenerAttributeResponse, err error) { response = CreateSetLoadBalancerUDPListenerAttributeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) SetLoadBalancerUDPListenerAttribute(request *SetLoadBalanc } // SetLoadBalancerUDPListenerAttributeWithChan invokes the slb.SetLoadBalancerUDPListenerAttribute API asynchronously -// api document: https://help.aliyun.com/api/slb/setloadbalancerudplistenerattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) SetLoadBalancerUDPListenerAttributeWithChan(request *SetLoadBalancerUDPListenerAttributeRequest) (<-chan *SetLoadBalancerUDPListenerAttributeResponse, <-chan error) { responseChan := make(chan *SetLoadBalancerUDPListenerAttributeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) SetLoadBalancerUDPListenerAttributeWithChan(request *SetLo } // SetLoadBalancerUDPListenerAttributeWithCallback invokes the slb.SetLoadBalancerUDPListenerAttribute API asynchronously -// api document: https://help.aliyun.com/api/slb/setloadbalancerudplistenerattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) SetLoadBalancerUDPListenerAttributeWithCallback(request *SetLoadBalancerUDPListenerAttributeRequest, callback func(response *SetLoadBalancerUDPListenerAttributeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,34 +71,57 @@ func (client *Client) SetLoadBalancerUDPListenerAttributeWithCallback(request *S // SetLoadBalancerUDPListenerAttributeRequest is the request struct for api SetLoadBalancerUDPListenerAttribute type SetLoadBalancerUDPListenerAttributeRequest struct { *requests.RpcRequest - AccessKeyId string `position:"Query" name:"access_key_id"` - HealthCheckConnectTimeout requests.Integer `position:"Query" name:"HealthCheckConnectTimeout"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - Description string `position:"Query" name:"Description"` - UnhealthyThreshold requests.Integer `position:"Query" name:"UnhealthyThreshold"` - HealthyThreshold requests.Integer `position:"Query" name:"HealthyThreshold"` - AclStatus string `position:"Query" name:"AclStatus"` - Scheduler string `position:"Query" name:"Scheduler"` - AclType string `position:"Query" name:"AclType"` - MasterSlaveServerGroup string `position:"Query" name:"MasterSlaveServerGroup"` - MaxConnection requests.Integer `position:"Query" name:"MaxConnection"` - PersistenceTimeout requests.Integer `position:"Query" name:"PersistenceTimeout"` - VpcIds string `position:"Query" name:"VpcIds"` - VServerGroupId string `position:"Query" name:"VServerGroupId"` - AclId string `position:"Query" name:"AclId"` - ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` - MasterSlaveServerGroupId string `position:"Query" name:"MasterSlaveServerGroupId"` - HealthCheckReq string `position:"Query" name:"healthCheckReq"` - HealthCheckInterval requests.Integer `position:"Query" name:"HealthCheckInterval"` - HealthCheckExp string `position:"Query" name:"healthCheckExp"` - HealthCheckConnectPort requests.Integer `position:"Query" name:"HealthCheckConnectPort"` - VServerGroup string `position:"Query" name:"VServerGroup"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + HealthCheckURI string `position:"Query" name:"HealthCheckURI"` + AclStatus string `position:"Query" name:"AclStatus"` + FullNatEnabled requests.Boolean `position:"Query" name:"FullNatEnabled"` + AclType string `position:"Query" name:"AclType"` + MasterSlaveServerGroup string `position:"Query" name:"MasterSlaveServerGroup"` + FailoverStrategy string `position:"Query" name:"FailoverStrategy"` + PersistenceTimeout requests.Integer `position:"Query" name:"PersistenceTimeout"` + VpcIds string `position:"Query" name:"VpcIds"` + MasterSlaveModeEnabled requests.Boolean `position:"Query" name:"MasterSlaveModeEnabled"` + VServerGroupId string `position:"Query" name:"VServerGroupId"` + AclId string `position:"Query" name:"AclId"` + PortRange *[]SetLoadBalancerUDPListenerAttributePortRange `position:"Query" name:"PortRange" type:"Repeated"` + HealthCheckMethod string `position:"Query" name:"HealthCheckMethod"` + HealthCheckDomain string `position:"Query" name:"HealthCheckDomain"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` + MasterSlaveServerGroupId string `position:"Query" name:"MasterSlaveServerGroupId"` + HealthCheckReq string `position:"Query" name:"healthCheckReq"` + HealthCheckInterval requests.Integer `position:"Query" name:"HealthCheckInterval"` + HealthCheckExp string `position:"Query" name:"healthCheckExp"` + FailoverThreshold requests.Integer `position:"Query" name:"FailoverThreshold"` + ProxyProtocolV2Enabled requests.Boolean `position:"Query" name:"ProxyProtocolV2Enabled"` + ConnectionDrain string `position:"Query" name:"ConnectionDrain"` + HealthCheckSwitch string `position:"Query" name:"HealthCheckSwitch"` + AccessKeyId string `position:"Query" name:"access_key_id"` + HealthCheckConnectTimeout requests.Integer `position:"Query" name:"HealthCheckConnectTimeout"` + SlaveServerGroupId string `position:"Query" name:"SlaveServerGroupId"` + QuicVersion string `position:"Query" name:"QuicVersion"` + Description string `position:"Query" name:"Description"` + UnhealthyThreshold requests.Integer `position:"Query" name:"UnhealthyThreshold"` + HealthyThreshold requests.Integer `position:"Query" name:"HealthyThreshold"` + Scheduler string `position:"Query" name:"Scheduler"` + MaxConnection requests.Integer `position:"Query" name:"MaxConnection"` + MasterServerGroupId string `position:"Query" name:"MasterServerGroupId"` + ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` + HealthCheckType string `position:"Query" name:"HealthCheckType"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + Bandwidth requests.Integer `position:"Query" name:"Bandwidth"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + ConnectionDrainTimeout requests.Integer `position:"Query" name:"ConnectionDrainTimeout"` + HealthCheckConnectPort requests.Integer `position:"Query" name:"HealthCheckConnectPort"` + HealthCheckHttpCode string `position:"Query" name:"HealthCheckHttpCode"` + VServerGroup string `position:"Query" name:"VServerGroup"` +} + +// SetLoadBalancerUDPListenerAttributePortRange is a repeated param struct in SetLoadBalancerUDPListenerAttributeRequest +type SetLoadBalancerUDPListenerAttributePortRange struct { + StartPort string `name:"StartPort"` + EndPort string `name:"EndPort"` } // SetLoadBalancerUDPListenerAttributeResponse is the response struct for api SetLoadBalancerUDPListenerAttribute @@ -118,6 +136,7 @@ func CreateSetLoadBalancerUDPListenerAttributeRequest() (request *SetLoadBalance RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "SetLoadBalancerUDPListenerAttribute", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_rule.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_rule.go index a9330580..7d40427a 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_rule.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_rule.go @@ -21,7 +21,6 @@ import ( ) // SetRule invokes the slb.SetRule API synchronously -// api document: https://help.aliyun.com/api/slb/setrule.html func (client *Client) SetRule(request *SetRuleRequest) (response *SetRuleResponse, err error) { response = CreateSetRuleResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) SetRule(request *SetRuleRequest) (response *SetRuleRespons } // SetRuleWithChan invokes the slb.SetRule API asynchronously -// api document: https://help.aliyun.com/api/slb/setrule.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) SetRuleWithChan(request *SetRuleRequest) (<-chan *SetRuleResponse, <-chan error) { responseChan := make(chan *SetRuleResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) SetRuleWithChan(request *SetRuleRequest) (<-chan *SetRuleR } // SetRuleWithCallback invokes the slb.SetRule API asynchronously -// api document: https://help.aliyun.com/api/slb/setrule.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) SetRuleWithCallback(request *SetRuleRequest, callback func(response *SetRuleResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -114,6 +109,7 @@ func CreateSetRuleRequest() (request *SetRuleRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "SetRule", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_server_certificate_name.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_server_certificate_name.go index f66ceac4..bba88476 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_server_certificate_name.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_server_certificate_name.go @@ -21,7 +21,6 @@ import ( ) // SetServerCertificateName invokes the slb.SetServerCertificateName API synchronously -// api document: https://help.aliyun.com/api/slb/setservercertificatename.html func (client *Client) SetServerCertificateName(request *SetServerCertificateNameRequest) (response *SetServerCertificateNameResponse, err error) { response = CreateSetServerCertificateNameResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) SetServerCertificateName(request *SetServerCertificateName } // SetServerCertificateNameWithChan invokes the slb.SetServerCertificateName API asynchronously -// api document: https://help.aliyun.com/api/slb/setservercertificatename.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) SetServerCertificateNameWithChan(request *SetServerCertificateNameRequest) (<-chan *SetServerCertificateNameResponse, <-chan error) { responseChan := make(chan *SetServerCertificateNameResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) SetServerCertificateNameWithChan(request *SetServerCertifi } // SetServerCertificateNameWithCallback invokes the slb.SetServerCertificateName API asynchronously -// api document: https://help.aliyun.com/api/slb/setservercertificatename.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) SetServerCertificateNameWithCallback(request *SetServerCertificateNameRequest, callback func(response *SetServerCertificateNameResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -82,8 +77,8 @@ type SetServerCertificateNameRequest struct { OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` ServerCertificateId string `position:"Query" name:"ServerCertificateId"` - ServerCertificateName string `position:"Query" name:"ServerCertificateName"` Tags string `position:"Query" name:"Tags"` + ServerCertificateName string `position:"Query" name:"ServerCertificateName"` } // SetServerCertificateNameResponse is the response struct for api SetServerCertificateName @@ -98,6 +93,7 @@ func CreateSetServerCertificateNameRequest() (request *SetServerCertificateNameR RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "SetServerCertificateName", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_tls_cipher_policy_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_tls_cipher_policy_attribute.go new file mode 100644 index 00000000..2bfb95f7 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_tls_cipher_policy_attribute.go @@ -0,0 +1,108 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// SetTLSCipherPolicyAttribute invokes the slb.SetTLSCipherPolicyAttribute API synchronously +func (client *Client) SetTLSCipherPolicyAttribute(request *SetTLSCipherPolicyAttributeRequest) (response *SetTLSCipherPolicyAttributeResponse, err error) { + response = CreateSetTLSCipherPolicyAttributeResponse() + err = client.DoAction(request, response) + return +} + +// SetTLSCipherPolicyAttributeWithChan invokes the slb.SetTLSCipherPolicyAttribute API asynchronously +func (client *Client) SetTLSCipherPolicyAttributeWithChan(request *SetTLSCipherPolicyAttributeRequest) (<-chan *SetTLSCipherPolicyAttributeResponse, <-chan error) { + responseChan := make(chan *SetTLSCipherPolicyAttributeResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SetTLSCipherPolicyAttribute(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SetTLSCipherPolicyAttributeWithCallback invokes the slb.SetTLSCipherPolicyAttribute API asynchronously +func (client *Client) SetTLSCipherPolicyAttributeWithCallback(request *SetTLSCipherPolicyAttributeRequest, callback func(response *SetTLSCipherPolicyAttributeResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SetTLSCipherPolicyAttributeResponse + var err error + defer close(result) + response, err = client.SetTLSCipherPolicyAttribute(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SetTLSCipherPolicyAttributeRequest is the request struct for api SetTLSCipherPolicyAttribute +type SetTLSCipherPolicyAttributeRequest struct { + *requests.RpcRequest + AccessKeyId string `position:"Query" name:"access_key_id"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + TLSCipherPolicyId string `position:"Query" name:"TLSCipherPolicyId"` + Ciphers *[]string `position:"Query" name:"Ciphers" type:"Repeated"` + TLSVersions *[]string `position:"Query" name:"TLSVersions" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Name string `position:"Query" name:"Name"` +} + +// SetTLSCipherPolicyAttributeResponse is the response struct for api SetTLSCipherPolicyAttribute +type SetTLSCipherPolicyAttributeResponse struct { + *responses.BaseResponse + TaskId string `json:"TaskId" xml:"TaskId"` + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateSetTLSCipherPolicyAttributeRequest creates a request to invoke SetTLSCipherPolicyAttribute API +func CreateSetTLSCipherPolicyAttributeRequest() (request *SetTLSCipherPolicyAttributeRequest) { + request = &SetTLSCipherPolicyAttributeRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "SetTLSCipherPolicyAttribute", "slb", "openAPI") + request.Method = requests.POST + return +} + +// CreateSetTLSCipherPolicyAttributeResponse creates a response to parse from SetTLSCipherPolicyAttribute response +func CreateSetTLSCipherPolicyAttributeResponse() (response *SetTLSCipherPolicyAttributeResponse) { + response = &SetTLSCipherPolicyAttributeResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_v_server_group_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_v_server_group_attribute.go index 5908fec7..315fbad9 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_v_server_group_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/set_v_server_group_attribute.go @@ -21,7 +21,6 @@ import ( ) // SetVServerGroupAttribute invokes the slb.SetVServerGroupAttribute API synchronously -// api document: https://help.aliyun.com/api/slb/setvservergroupattribute.html func (client *Client) SetVServerGroupAttribute(request *SetVServerGroupAttributeRequest) (response *SetVServerGroupAttributeResponse, err error) { response = CreateSetVServerGroupAttributeResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) SetVServerGroupAttribute(request *SetVServerGroupAttribute } // SetVServerGroupAttributeWithChan invokes the slb.SetVServerGroupAttribute API asynchronously -// api document: https://help.aliyun.com/api/slb/setvservergroupattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) SetVServerGroupAttributeWithChan(request *SetVServerGroupAttributeRequest) (<-chan *SetVServerGroupAttributeResponse, <-chan error) { responseChan := make(chan *SetVServerGroupAttributeResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) SetVServerGroupAttributeWithChan(request *SetVServerGroupA } // SetVServerGroupAttributeWithCallback invokes the slb.SetVServerGroupAttribute API asynchronously -// api document: https://help.aliyun.com/api/slb/setvservergroupattribute.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) SetVServerGroupAttributeWithCallback(request *SetVServerGroupAttributeRequest, callback func(response *SetVServerGroupAttributeResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -77,12 +72,12 @@ func (client *Client) SetVServerGroupAttributeWithCallback(request *SetVServerGr type SetVServerGroupAttributeRequest struct { *requests.RpcRequest AccessKeyId string `position:"Query" name:"access_key_id"` - VServerGroupId string `position:"Query" name:"VServerGroupId"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + BackendServers string `position:"Query" name:"BackendServers"` + VServerGroupId string `position:"Query" name:"VServerGroupId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` - BackendServers string `position:"Query" name:"BackendServers"` Tags string `position:"Query" name:"Tags"` VServerGroupName string `position:"Query" name:"VServerGroupName"` } @@ -90,9 +85,9 @@ type SetVServerGroupAttributeRequest struct { // SetVServerGroupAttributeResponse is the response struct for api SetVServerGroupAttribute type SetVServerGroupAttributeResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` VServerGroupName string `json:"VServerGroupName" xml:"VServerGroupName"` + RequestId string `json:"RequestId" xml:"RequestId"` BackendServers BackendServersInSetVServerGroupAttribute `json:"BackendServers" xml:"BackendServers"` } @@ -102,6 +97,7 @@ func CreateSetVServerGroupAttributeRequest() (request *SetVServerGroupAttributeR RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "SetVServerGroupAttribute", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/start_load_balancer_listener.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/start_load_balancer_listener.go index 39a784f0..a7e9ea8c 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/start_load_balancer_listener.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/start_load_balancer_listener.go @@ -21,7 +21,6 @@ import ( ) // StartLoadBalancerListener invokes the slb.StartLoadBalancerListener API synchronously -// api document: https://help.aliyun.com/api/slb/startloadbalancerlistener.html func (client *Client) StartLoadBalancerListener(request *StartLoadBalancerListenerRequest) (response *StartLoadBalancerListenerResponse, err error) { response = CreateStartLoadBalancerListenerResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) StartLoadBalancerListener(request *StartLoadBalancerListen } // StartLoadBalancerListenerWithChan invokes the slb.StartLoadBalancerListener API asynchronously -// api document: https://help.aliyun.com/api/slb/startloadbalancerlistener.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) StartLoadBalancerListenerWithChan(request *StartLoadBalancerListenerRequest) (<-chan *StartLoadBalancerListenerResponse, <-chan error) { responseChan := make(chan *StartLoadBalancerListenerResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) StartLoadBalancerListenerWithChan(request *StartLoadBalanc } // StartLoadBalancerListenerWithCallback invokes the slb.StartLoadBalancerListener API asynchronously -// api document: https://help.aliyun.com/api/slb/startloadbalancerlistener.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) StartLoadBalancerListenerWithCallback(request *StartLoadBalancerListenerRequest, callback func(response *StartLoadBalancerListenerResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -79,12 +74,12 @@ type StartLoadBalancerListenerRequest struct { AccessKeyId string `position:"Query" name:"access_key_id"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` ListenerProtocol string `position:"Query" name:"ListenerProtocol"` Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` } // StartLoadBalancerListenerResponse is the response struct for api StartLoadBalancerListener @@ -99,6 +94,7 @@ func CreateStartLoadBalancerListenerRequest() (request *StartLoadBalancerListene RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "StartLoadBalancerListener", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/stop_load_balancer_listener.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/stop_load_balancer_listener.go index c2d56278..ad148f2b 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/stop_load_balancer_listener.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/stop_load_balancer_listener.go @@ -21,7 +21,6 @@ import ( ) // StopLoadBalancerListener invokes the slb.StopLoadBalancerListener API synchronously -// api document: https://help.aliyun.com/api/slb/stoploadbalancerlistener.html func (client *Client) StopLoadBalancerListener(request *StopLoadBalancerListenerRequest) (response *StopLoadBalancerListenerResponse, err error) { response = CreateStopLoadBalancerListenerResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) StopLoadBalancerListener(request *StopLoadBalancerListener } // StopLoadBalancerListenerWithChan invokes the slb.StopLoadBalancerListener API asynchronously -// api document: https://help.aliyun.com/api/slb/stoploadbalancerlistener.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) StopLoadBalancerListenerWithChan(request *StopLoadBalancerListenerRequest) (<-chan *StopLoadBalancerListenerResponse, <-chan error) { responseChan := make(chan *StopLoadBalancerListenerResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) StopLoadBalancerListenerWithChan(request *StopLoadBalancer } // StopLoadBalancerListenerWithCallback invokes the slb.StopLoadBalancerListener API asynchronously -// api document: https://help.aliyun.com/api/slb/stoploadbalancerlistener.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) StopLoadBalancerListenerWithCallback(request *StopLoadBalancerListenerRequest, callback func(response *StopLoadBalancerListenerResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -79,12 +74,12 @@ type StopLoadBalancerListenerRequest struct { AccessKeyId string `position:"Query" name:"access_key_id"` ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` ListenerPort requests.Integer `position:"Query" name:"ListenerPort"` - LoadBalancerId string `position:"Query" name:"LoadBalancerId"` ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` OwnerAccount string `position:"Query" name:"OwnerAccount"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` ListenerProtocol string `position:"Query" name:"ListenerProtocol"` Tags string `position:"Query" name:"Tags"` + LoadBalancerId string `position:"Query" name:"LoadBalancerId"` } // StopLoadBalancerListenerResponse is the response struct for api StopLoadBalancerListener @@ -99,6 +94,7 @@ func CreateStopLoadBalancerListenerRequest() (request *StopLoadBalancerListenerR RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "StopLoadBalancerListener", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_acl.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_acl.go index f8a6451e..9cf6d759 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_acl.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_acl.go @@ -17,9 +17,11 @@ package slb // Acl is a nested struct in slb response type Acl struct { - AclId string `json:"AclId" xml:"AclId"` - AclName string `json:"AclName" xml:"AclName"` - AddressIPVersion string `json:"AddressIPVersion" xml:"AddressIPVersion"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - Tags TagsInDescribeAccessControlLists `json:"Tags" xml:"Tags"` + ServiceManagedMode string `json:"ServiceManagedMode" xml:"ServiceManagedMode"` + AclId string `json:"AclId" xml:"AclId"` + AddressIPVersion string `json:"AddressIPVersion" xml:"AddressIPVersion"` + AclName string `json:"AclName" xml:"AclName"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + Tags TagsInDescribeAccessControlLists `json:"Tags" xml:"Tags"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_acl_entry.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_acl_entry.go index a197c964..ad813746 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_acl_entry.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_acl_entry.go @@ -17,6 +17,6 @@ package slb // AclEntry is a nested struct in slb response type AclEntry struct { - AclEntryIP string `json:"AclEntryIP" xml:"AclEntryIP"` AclEntryComment string `json:"AclEntryComment" xml:"AclEntryComment"` + AclEntryIP string `json:"AclEntryIP" xml:"AclEntryIP"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_acl_ids_in_describe_load_balancer_http_listener_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_acl_ids_in_describe_load_balancer_http_listener_attribute.go new file mode 100644 index 00000000..68c8dde8 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_acl_ids_in_describe_load_balancer_http_listener_attribute.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AclIdsInDescribeLoadBalancerHTTPListenerAttribute is a nested struct in slb response +type AclIdsInDescribeLoadBalancerHTTPListenerAttribute struct { + AclId []string `json:"AclId" xml:"AclId"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_acl_ids_in_describe_load_balancer_https_listener_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_acl_ids_in_describe_load_balancer_https_listener_attribute.go new file mode 100644 index 00000000..d7ead0df --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_acl_ids_in_describe_load_balancer_https_listener_attribute.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AclIdsInDescribeLoadBalancerHTTPSListenerAttribute is a nested struct in slb response +type AclIdsInDescribeLoadBalancerHTTPSListenerAttribute struct { + AclId []string `json:"AclId" xml:"AclId"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_acl_ids_in_describe_load_balancer_listeners.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_acl_ids_in_describe_load_balancer_listeners.go new file mode 100644 index 00000000..a3bfa3e7 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_acl_ids_in_describe_load_balancer_listeners.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AclIdsInDescribeLoadBalancerListeners is a nested struct in slb response +type AclIdsInDescribeLoadBalancerListeners struct { + AclId []string `json:"AclId" xml:"AclId"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_acl_ids_in_describe_load_balancer_tcp_listener_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_acl_ids_in_describe_load_balancer_tcp_listener_attribute.go new file mode 100644 index 00000000..d669abdd --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_acl_ids_in_describe_load_balancer_tcp_listener_attribute.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AclIdsInDescribeLoadBalancerTCPListenerAttribute is a nested struct in slb response +type AclIdsInDescribeLoadBalancerTCPListenerAttribute struct { + AclId []string `json:"AclId" xml:"AclId"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_acl_ids_in_describe_load_balancer_udp_listener_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_acl_ids_in_describe_load_balancer_udp_listener_attribute.go new file mode 100644 index 00000000..aa077f93 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_acl_ids_in_describe_load_balancer_udp_listener_attribute.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AclIdsInDescribeLoadBalancerUDPListenerAttribute is a nested struct in slb response +type AclIdsInDescribeLoadBalancerUDPListenerAttribute struct { + AclId []string `json:"AclId" xml:"AclId"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_associated_objects.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_associated_objects.go index ab97dd6e..5ce53b17 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_associated_objects.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_associated_objects.go @@ -17,6 +17,6 @@ package slb // AssociatedObjects is a nested struct in slb response type AssociatedObjects struct { - Rules RulesInDescribeVServerGroups `json:"Rules" xml:"Rules"` Listeners ListenersInDescribeMasterSlaveServerGroups `json:"Listeners" xml:"Listeners"` + Rules RulesInDescribeVServerGroups `json:"Rules" xml:"Rules"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_available_resource.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_available_resource.go index 976adad0..cb022af8 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_available_resource.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_available_resource.go @@ -17,7 +17,7 @@ package slb // AvailableResource is a nested struct in slb response type AvailableResource struct { - MasterZoneId string `json:"MasterZoneId" xml:"MasterZoneId"` SlaveZoneId string `json:"SlaveZoneId" xml:"SlaveZoneId"` + MasterZoneId string `json:"MasterZoneId" xml:"MasterZoneId"` SupportResources SupportResources `json:"SupportResources" xml:"SupportResources"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_server.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_server.go index e91ddce2..7997caf8 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_server.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_server.go @@ -24,7 +24,7 @@ type BackendServer struct { ServerId string `json:"ServerId" xml:"ServerId"` VpcId string `json:"VpcId" xml:"VpcId"` ListenerPort int `json:"ListenerPort" xml:"ListenerPort"` - Weight int `json:"Weight" xml:"Weight"` + Weight string `json:"Weight" xml:"Weight"` Description string `json:"Description" xml:"Description"` EniHost string `json:"EniHost" xml:"EniHost"` Type string `json:"Type" xml:"Type"` diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_server_in_add_v_server_group_backend_servers.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_server_in_add_v_server_group_backend_servers.go new file mode 100644 index 00000000..10375fdb --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_server_in_add_v_server_group_backend_servers.go @@ -0,0 +1,29 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BackendServerInAddVServerGroupBackendServers is a nested struct in slb response +type BackendServerInAddVServerGroupBackendServers struct { + VpcId string `json:"VpcId" xml:"VpcId"` + Type string `json:"Type" xml:"Type"` + Weight int `json:"Weight" xml:"Weight"` + Description string `json:"Description" xml:"Description"` + ServerRegionId string `json:"ServerRegionId" xml:"ServerRegionId"` + ServerIp string `json:"ServerIp" xml:"ServerIp"` + Port int `json:"Port" xml:"Port"` + VbrId string `json:"VbrId" xml:"VbrId"` + ServerId string `json:"ServerId" xml:"ServerId"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_server_in_create_v_server_group.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_server_in_create_v_server_group.go new file mode 100644 index 00000000..55a95c63 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_server_in_create_v_server_group.go @@ -0,0 +1,29 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BackendServerInCreateVServerGroup is a nested struct in slb response +type BackendServerInCreateVServerGroup struct { + VpcId string `json:"VpcId" xml:"VpcId"` + Type string `json:"Type" xml:"Type"` + Weight int `json:"Weight" xml:"Weight"` + Description string `json:"Description" xml:"Description"` + ServerRegionId string `json:"ServerRegionId" xml:"ServerRegionId"` + ServerIp string `json:"ServerIp" xml:"ServerIp"` + Port int `json:"Port" xml:"Port"` + VbrId string `json:"VbrId" xml:"VbrId"` + ServerId string `json:"ServerId" xml:"ServerId"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_server_in_set_backend_servers.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_server_in_describe_load_balancer_attribute.go similarity index 83% rename from src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_server_in_set_backend_servers.go rename to src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_server_in_describe_load_balancer_attribute.go index da44b918..a0deba74 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_server_in_set_backend_servers.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_server_in_describe_load_balancer_attribute.go @@ -15,12 +15,12 @@ package slb // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// BackendServerInSetBackendServers is a nested struct in slb response -type BackendServerInSetBackendServers struct { - ServerId string `json:"ServerId" xml:"ServerId"` - Weight string `json:"Weight" xml:"Weight"` - ServerIp string `json:"ServerIp" xml:"ServerIp"` - VpcId string `json:"VpcId" xml:"VpcId"` +// BackendServerInDescribeLoadBalancerAttribute is a nested struct in slb response +type BackendServerInDescribeLoadBalancerAttribute struct { Type string `json:"Type" xml:"Type"` + VpcId string `json:"VpcId" xml:"VpcId"` + Weight int `json:"Weight" xml:"Weight"` Description string `json:"Description" xml:"Description"` + ServerIp string `json:"ServerIp" xml:"ServerIp"` + ServerId string `json:"ServerId" xml:"ServerId"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_server_in_describe_v_server_group_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_server_in_describe_v_server_group_attribute.go new file mode 100644 index 00000000..ffa69e5a --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_server_in_describe_v_server_group_attribute.go @@ -0,0 +1,30 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BackendServerInDescribeVServerGroupAttribute is a nested struct in slb response +type BackendServerInDescribeVServerGroupAttribute struct { + VpcId string `json:"VpcId" xml:"VpcId"` + Type string `json:"Type" xml:"Type"` + Weight int `json:"Weight" xml:"Weight"` + ProxyProtocolV2Enabled bool `json:"ProxyProtocolV2Enabled" xml:"ProxyProtocolV2Enabled"` + Description string `json:"Description" xml:"Description"` + ServerRegionId string `json:"ServerRegionId" xml:"ServerRegionId"` + ServerIp string `json:"ServerIp" xml:"ServerIp"` + Port int `json:"Port" xml:"Port"` + VbrId string `json:"VbrId" xml:"VbrId"` + ServerId string `json:"ServerId" xml:"ServerId"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_server_in_modify_v_server_group_backend_servers.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_server_in_modify_v_server_group_backend_servers.go new file mode 100644 index 00000000..355b851f --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_server_in_modify_v_server_group_backend_servers.go @@ -0,0 +1,29 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BackendServerInModifyVServerGroupBackendServers is a nested struct in slb response +type BackendServerInModifyVServerGroupBackendServers struct { + VpcId string `json:"VpcId" xml:"VpcId"` + Type string `json:"Type" xml:"Type"` + Weight int `json:"Weight" xml:"Weight"` + Description string `json:"Description" xml:"Description"` + ServerRegionId string `json:"ServerRegionId" xml:"ServerRegionId"` + ServerIp string `json:"ServerIp" xml:"ServerIp"` + Port int `json:"Port" xml:"Port"` + VbrId string `json:"VbrId" xml:"VbrId"` + ServerId string `json:"ServerId" xml:"ServerId"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_server_in_add_backend_servers.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_server_in_remove_backend_servers.go similarity index 84% rename from src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_server_in_add_backend_servers.go rename to src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_server_in_remove_backend_servers.go index 1dbb8f7d..44006a2f 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_server_in_add_backend_servers.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_server_in_remove_backend_servers.go @@ -15,12 +15,12 @@ package slb // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// BackendServerInAddBackendServers is a nested struct in slb response -type BackendServerInAddBackendServers struct { - ServerId string `json:"ServerId" xml:"ServerId"` - Weight string `json:"Weight" xml:"Weight"` - ServerIp string `json:"ServerIp" xml:"ServerIp"` +// BackendServerInRemoveBackendServers is a nested struct in slb response +type BackendServerInRemoveBackendServers struct { VpcId string `json:"VpcId" xml:"VpcId"` Type string `json:"Type" xml:"Type"` + Weight int `json:"Weight" xml:"Weight"` Description string `json:"Description" xml:"Description"` + ServerIp string `json:"ServerIp" xml:"ServerIp"` + ServerId string `json:"ServerId" xml:"ServerId"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_server_in_remove_v_server_group_backend_servers.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_server_in_remove_v_server_group_backend_servers.go new file mode 100644 index 00000000..a0fac44e --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_server_in_remove_v_server_group_backend_servers.go @@ -0,0 +1,29 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BackendServerInRemoveVServerGroupBackendServers is a nested struct in slb response +type BackendServerInRemoveVServerGroupBackendServers struct { + VpcId string `json:"VpcId" xml:"VpcId"` + Type string `json:"Type" xml:"Type"` + Weight int `json:"Weight" xml:"Weight"` + Description string `json:"Description" xml:"Description"` + ServerRegionId string `json:"ServerRegionId" xml:"ServerRegionId"` + ServerIp string `json:"ServerIp" xml:"ServerIp"` + Port int `json:"Port" xml:"Port"` + VbrId string `json:"VbrId" xml:"VbrId"` + ServerId string `json:"ServerId" xml:"ServerId"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_server_in_set_v_server_group_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_server_in_set_v_server_group_attribute.go new file mode 100644 index 00000000..df259c50 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_server_in_set_v_server_group_attribute.go @@ -0,0 +1,29 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// BackendServerInSetVServerGroupAttribute is a nested struct in slb response +type BackendServerInSetVServerGroupAttribute struct { + VpcId string `json:"VpcId" xml:"VpcId"` + Type string `json:"Type" xml:"Type"` + Weight int `json:"Weight" xml:"Weight"` + Description string `json:"Description" xml:"Description"` + ServerRegionId string `json:"ServerRegionId" xml:"ServerRegionId"` + ServerIp string `json:"ServerIp" xml:"ServerIp"` + Port int `json:"Port" xml:"Port"` + VbrId string `json:"VbrId" xml:"VbrId"` + ServerId string `json:"ServerId" xml:"ServerId"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_add_backend_servers.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_add_backend_servers.go index 99066452..7ef9b377 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_add_backend_servers.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_add_backend_servers.go @@ -17,5 +17,5 @@ package slb // BackendServersInAddBackendServers is a nested struct in slb response type BackendServersInAddBackendServers struct { - BackendServer []BackendServerInAddBackendServers `json:"BackendServer" xml:"BackendServer"` + BackendServer []BackendServer `json:"BackendServer" xml:"BackendServer"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_add_v_server_group_backend_servers.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_add_v_server_group_backend_servers.go index ae44450e..3ab076bb 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_add_v_server_group_backend_servers.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_add_v_server_group_backend_servers.go @@ -17,5 +17,5 @@ package slb // BackendServersInAddVServerGroupBackendServers is a nested struct in slb response type BackendServersInAddVServerGroupBackendServers struct { - BackendServer []BackendServer `json:"BackendServer" xml:"BackendServer"` + BackendServer []BackendServerInAddVServerGroupBackendServers `json:"BackendServer" xml:"BackendServer"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_create_v_server_group.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_create_v_server_group.go index 27a4e094..7886fd66 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_create_v_server_group.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_create_v_server_group.go @@ -17,5 +17,5 @@ package slb // BackendServersInCreateVServerGroup is a nested struct in slb response type BackendServersInCreateVServerGroup struct { - BackendServer []BackendServer `json:"BackendServer" xml:"BackendServer"` + BackendServer []BackendServerInCreateVServerGroup `json:"BackendServer" xml:"BackendServer"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_describe_load_balancer_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_describe_load_balancer_attribute.go index 5f803bb3..8df08c75 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_describe_load_balancer_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_describe_load_balancer_attribute.go @@ -17,5 +17,5 @@ package slb // BackendServersInDescribeLoadBalancerAttribute is a nested struct in slb response type BackendServersInDescribeLoadBalancerAttribute struct { - BackendServer []BackendServer `json:"BackendServer" xml:"BackendServer"` + BackendServer []BackendServerInDescribeLoadBalancerAttribute `json:"BackendServer" xml:"BackendServer"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_describe_v_server_group_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_describe_v_server_group_attribute.go index a9b2ba59..4f7b5874 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_describe_v_server_group_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_describe_v_server_group_attribute.go @@ -17,5 +17,5 @@ package slb // BackendServersInDescribeVServerGroupAttribute is a nested struct in slb response type BackendServersInDescribeVServerGroupAttribute struct { - BackendServer []BackendServer `json:"BackendServer" xml:"BackendServer"` + BackendServer []BackendServerInDescribeVServerGroupAttribute `json:"BackendServer" xml:"BackendServer"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_modify_v_server_group_backend_servers.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_modify_v_server_group_backend_servers.go index bca4d47f..223e96fd 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_modify_v_server_group_backend_servers.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_modify_v_server_group_backend_servers.go @@ -17,5 +17,5 @@ package slb // BackendServersInModifyVServerGroupBackendServers is a nested struct in slb response type BackendServersInModifyVServerGroupBackendServers struct { - BackendServer []BackendServer `json:"BackendServer" xml:"BackendServer"` + BackendServer []BackendServerInModifyVServerGroupBackendServers `json:"BackendServer" xml:"BackendServer"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_remove_backend_servers.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_remove_backend_servers.go index 07a18987..6eb93fac 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_remove_backend_servers.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_remove_backend_servers.go @@ -17,5 +17,5 @@ package slb // BackendServersInRemoveBackendServers is a nested struct in slb response type BackendServersInRemoveBackendServers struct { - BackendServer []BackendServer `json:"BackendServer" xml:"BackendServer"` + BackendServer []BackendServerInRemoveBackendServers `json:"BackendServer" xml:"BackendServer"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_remove_v_server_group_backend_servers.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_remove_v_server_group_backend_servers.go index 88a6baa7..0797e4c1 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_remove_v_server_group_backend_servers.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_remove_v_server_group_backend_servers.go @@ -17,5 +17,5 @@ package slb // BackendServersInRemoveVServerGroupBackendServers is a nested struct in slb response type BackendServersInRemoveVServerGroupBackendServers struct { - BackendServer []BackendServer `json:"BackendServer" xml:"BackendServer"` + BackendServer []BackendServerInRemoveVServerGroupBackendServers `json:"BackendServer" xml:"BackendServer"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_set_backend_servers.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_set_backend_servers.go index 18dd872c..07055554 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_set_backend_servers.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_set_backend_servers.go @@ -17,5 +17,5 @@ package slb // BackendServersInSetBackendServers is a nested struct in slb response type BackendServersInSetBackendServers struct { - BackendServer []BackendServerInSetBackendServers `json:"BackendServer" xml:"BackendServer"` + BackendServer []BackendServer `json:"BackendServer" xml:"BackendServer"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_set_v_server_group_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_set_v_server_group_attribute.go index 175d7cf5..c78bb271 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_set_v_server_group_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_backend_servers_in_set_v_server_group_attribute.go @@ -17,5 +17,5 @@ package slb // BackendServersInSetVServerGroupAttribute is a nested struct in slb response type BackendServersInSetVServerGroupAttribute struct { - BackendServer []BackendServer `json:"BackendServer" xml:"BackendServer"` + BackendServer []BackendServerInSetVServerGroupAttribute `json:"BackendServer" xml:"BackendServer"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_ca_certificate.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_ca_certificate.go index 3e5d25af..a58ae454 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_ca_certificate.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_ca_certificate.go @@ -17,15 +17,18 @@ package slb // CACertificate is a nested struct in slb response type CACertificate struct { - RegionId string `json:"RegionId" xml:"RegionId"` - CACertificateId string `json:"CACertificateId" xml:"CACertificateId"` - CACertificateName string `json:"CACertificateName" xml:"CACertificateName"` - Fingerprint string `json:"Fingerprint" xml:"Fingerprint"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - CreateTimeStamp int64 `json:"CreateTimeStamp" xml:"CreateTimeStamp"` - ExpireTime string `json:"ExpireTime" xml:"ExpireTime"` - ExpireTimeStamp int64 `json:"ExpireTimeStamp" xml:"ExpireTimeStamp"` - CommonName string `json:"CommonName" xml:"CommonName"` - Tags TagsInDescribeCACertificates `json:"Tags" xml:"Tags"` + CreateTimeStamp int64 `json:"CreateTimeStamp" xml:"CreateTimeStamp"` + StandardType string `json:"StandardType" xml:"StandardType"` + ExpireTime string `json:"ExpireTime" xml:"ExpireTime"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + EncryptionKeyLength int `json:"EncryptionKeyLength" xml:"EncryptionKeyLength"` + ExpireTimeStamp int64 `json:"ExpireTimeStamp" xml:"ExpireTimeStamp"` + CACertificateId string `json:"CACertificateId" xml:"CACertificateId"` + RegionId string `json:"RegionId" xml:"RegionId"` + EncryptionAlgorithm string `json:"EncryptionAlgorithm" xml:"EncryptionAlgorithm"` + Fingerprint string `json:"Fingerprint" xml:"Fingerprint"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + CommonName string `json:"CommonName" xml:"CommonName"` + CACertificateName string `json:"CACertificateName" xml:"CACertificateName"` + Tags TagsInDescribeCACertificates `json:"Tags" xml:"Tags"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_certificate.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_certificate.go new file mode 100644 index 00000000..0e62cb04 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_certificate.go @@ -0,0 +1,22 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Certificate is a nested struct in slb response +type Certificate struct { + EncryptionAlgorithm string `json:"EncryptionAlgorithm" xml:"EncryptionAlgorithm"` + CertificateId string `json:"CertificateId" xml:"CertificateId"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_v_server_groups.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_certificates_in_describe_domain_extension_attribute.go similarity index 76% rename from src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_v_server_groups.go rename to src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_certificates_in_describe_domain_extension_attribute.go index 14197fdd..9fbefde5 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_v_server_groups.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_certificates_in_describe_domain_extension_attribute.go @@ -15,7 +15,7 @@ package slb // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// MasterSlaveVServerGroups is a nested struct in slb response -type MasterSlaveVServerGroups struct { - MasterSlaveVServerGroup []MasterSlaveVServerGroup `json:"MasterSlaveVServerGroup" xml:"MasterSlaveVServerGroup"` +// CertificatesInDescribeDomainExtensionAttribute is a nested struct in slb response +type CertificatesInDescribeDomainExtensionAttribute struct { + Certificate []Certificate `json:"Certificate" xml:"Certificate"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_certificates_in_describe_domain_extensions.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_certificates_in_describe_domain_extensions.go new file mode 100644 index 00000000..71ab0168 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_certificates_in_describe_domain_extensions.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// CertificatesInDescribeDomainExtensions is a nested struct in slb response +type CertificatesInDescribeDomainExtensions struct { + Certificate []Certificate `json:"Certificate" xml:"Certificate"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_backend_servers_in_create_master_slave_v_server_group.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_certificates_in_describe_load_balancer_https_listener_attribute.go similarity index 75% rename from src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_backend_servers_in_create_master_slave_v_server_group.go rename to src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_certificates_in_describe_load_balancer_https_listener_attribute.go index 95e232a9..3348deda 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_backend_servers_in_create_master_slave_v_server_group.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_certificates_in_describe_load_balancer_https_listener_attribute.go @@ -15,7 +15,7 @@ package slb // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// MasterSlaveBackendServersInCreateMasterSlaveVServerGroup is a nested struct in slb response -type MasterSlaveBackendServersInCreateMasterSlaveVServerGroup struct { - MasterSlaveBackendServer []MasterSlaveBackendServer `json:"MasterSlaveBackendServer" xml:"MasterSlaveBackendServer"` +// CertificatesInDescribeLoadBalancerHTTPSListenerAttribute is a nested struct in slb response +type CertificatesInDescribeLoadBalancerHTTPSListenerAttribute struct { + Certificate []Certificate `json:"Certificate" xml:"Certificate"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_ciphers.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_ciphers.go new file mode 100644 index 00000000..5b961cc2 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_ciphers.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Ciphers is a nested struct in slb response +type Ciphers struct { + Cipher []string `json:"Cipher" xml:"Cipher"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_domain_extension.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_domain_extension.go index f8a3fe17..a30ecd60 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_domain_extension.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_domain_extension.go @@ -17,7 +17,9 @@ package slb // DomainExtension is a nested struct in slb response type DomainExtension struct { - Domain string `json:"Domain" xml:"Domain"` - ServerCertificateId string `json:"ServerCertificateId" xml:"ServerCertificateId"` - DomainExtensionId string `json:"DomainExtensionId" xml:"DomainExtensionId"` + Domain string `json:"Domain" xml:"Domain"` + ServerCertificateId string `json:"ServerCertificateId" xml:"ServerCertificateId"` + DomainExtensionId string `json:"DomainExtensionId" xml:"DomainExtensionId"` + Certificates CertificatesInDescribeDomainExtensions `json:"Certificates" xml:"Certificates"` + ServerCertificates ServerCertificatesInDescribeDomainExtensions `json:"ServerCertificates" xml:"ServerCertificates"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_http_listener_config.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_http_listener_config.go new file mode 100644 index 00000000..021d2c1e --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_http_listener_config.go @@ -0,0 +1,48 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// HTTPListenerConfig is a nested struct in slb response +type HTTPListenerConfig struct { + HealthCheckHttpVersion string `json:"HealthCheckHttpVersion" xml:"HealthCheckHttpVersion"` + XForwardedForClientSrcPort string `json:"XForwardedFor_ClientSrcPort" xml:"XForwardedFor_ClientSrcPort"` + Cookie string `json:"Cookie" xml:"Cookie"` + Gzip string `json:"Gzip" xml:"Gzip"` + ForwardCode int `json:"ForwardCode" xml:"ForwardCode"` + HealthCheckConnectPort int `json:"HealthCheckConnectPort" xml:"HealthCheckConnectPort"` + HealthCheckTimeout int `json:"HealthCheckTimeout" xml:"HealthCheckTimeout"` + HealthCheckType string `json:"HealthCheckType" xml:"HealthCheckType"` + CookieTimeout int `json:"CookieTimeout" xml:"CookieTimeout"` + HealthCheckDomain string `json:"HealthCheckDomain" xml:"HealthCheckDomain"` + UnhealthyThreshold int `json:"UnhealthyThreshold" xml:"UnhealthyThreshold"` + XForwardedForSLBID string `json:"XForwardedFor_SLBID" xml:"XForwardedFor_SLBID"` + ForwardPort int `json:"ForwardPort" xml:"ForwardPort"` + HealthCheckHttpCode string `json:"HealthCheckHttpCode" xml:"HealthCheckHttpCode"` + ListenerForward string `json:"ListenerForward" xml:"ListenerForward"` + XForwardedFor string `json:"XForwardedFor" xml:"XForwardedFor"` + IdleTimeout int `json:"IdleTimeout" xml:"IdleTimeout"` + RequestTimeout int `json:"RequestTimeout" xml:"RequestTimeout"` + HealthCheckInterval int `json:"HealthCheckInterval" xml:"HealthCheckInterval"` + XForwardedForSLBPORT string `json:"XForwardedFor_SLBPORT" xml:"XForwardedFor_SLBPORT"` + HealthCheckURI string `json:"HealthCheckURI" xml:"HealthCheckURI"` + StickySessionType string `json:"StickySessionType" xml:"StickySessionType"` + HealthyThreshold int `json:"HealthyThreshold" xml:"HealthyThreshold"` + XForwardedForProto string `json:"XForwardedFor_proto" xml:"XForwardedFor_proto"` + XForwardedForSLBIP string `json:"XForwardedFor_SLBIP" xml:"XForwardedFor_SLBIP"` + StickySession string `json:"StickySession" xml:"StickySession"` + HealthCheckMethod string `json:"HealthCheckMethod" xml:"HealthCheckMethod"` + HealthCheck string `json:"HealthCheck" xml:"HealthCheck"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_https_listener_config.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_https_listener_config.go new file mode 100644 index 00000000..55ca6b58 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_https_listener_config.go @@ -0,0 +1,57 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// HTTPSListenerConfig is a nested struct in slb response +type HTTPSListenerConfig struct { + XForwardedForClientCertClientVerify string `json:"XForwardedFor_ClientCertClientVerify" xml:"XForwardedFor_ClientCertClientVerify"` + HealthCheckHttpVersion string `json:"HealthCheckHttpVersion" xml:"HealthCheckHttpVersion"` + XForwardedForClientSrcPort string `json:"XForwardedFor_ClientSrcPort" xml:"XForwardedFor_ClientSrcPort"` + Cookie string `json:"Cookie" xml:"Cookie"` + Gzip string `json:"Gzip" xml:"Gzip"` + EnableHttp2 string `json:"EnableHttp2" xml:"EnableHttp2"` + CACertificateId string `json:"CACertificateId" xml:"CACertificateId"` + XForwardedForClientCertClientVerifyAlias string `json:"XForwardedFor_ClientCertClientVerifyAlias" xml:"XForwardedFor_ClientCertClientVerifyAlias"` + HealthCheckConnectPort int `json:"HealthCheckConnectPort" xml:"HealthCheckConnectPort"` + HealthCheckTimeout int `json:"HealthCheckTimeout" xml:"HealthCheckTimeout"` + HealthCheckType string `json:"HealthCheckType" xml:"HealthCheckType"` + CookieTimeout int `json:"CookieTimeout" xml:"CookieTimeout"` + HealthCheckDomain string `json:"HealthCheckDomain" xml:"HealthCheckDomain"` + UnhealthyThreshold int `json:"UnhealthyThreshold" xml:"UnhealthyThreshold"` + XForwardedForSLBID string `json:"XForwardedFor_SLBID" xml:"XForwardedFor_SLBID"` + XForwardedForClientCertSubjectDN string `json:"XForwardedFor_ClientCertSubjectDN" xml:"XForwardedFor_ClientCertSubjectDN"` + HealthCheckHttpCode string `json:"HealthCheckHttpCode" xml:"HealthCheckHttpCode"` + XForwardedForClientCertFingerprintAlias string `json:"XForwardedFor_ClientCertFingerprintAlias" xml:"XForwardedFor_ClientCertFingerprintAlias"` + XForwardedForClientCertSubjectDNAlias string `json:"XForwardedFor_ClientCertSubjectDNAlias" xml:"XForwardedFor_ClientCertSubjectDNAlias"` + XForwardedForClientCertIssuerDNAlias string `json:"XForwardedFor_ClientCertIssuerDNAlias" xml:"XForwardedFor_ClientCertIssuerDNAlias"` + XForwardedForClientCertFingerprint string `json:"XForwardedFor_ClientCertFingerprint" xml:"XForwardedFor_ClientCertFingerprint"` + XForwardedFor string `json:"XForwardedFor" xml:"XForwardedFor"` + RequestTimeout int `json:"RequestTimeout" xml:"RequestTimeout"` + IdleTimeout int `json:"IdleTimeout" xml:"IdleTimeout"` + ServerCertificateId string `json:"ServerCertificateId" xml:"ServerCertificateId"` + HealthCheckInterval int `json:"HealthCheckInterval" xml:"HealthCheckInterval"` + XForwardedForSLBPORT string `json:"XForwardedFor_SLBPORT" xml:"XForwardedFor_SLBPORT"` + HealthCheckURI string `json:"HealthCheckURI" xml:"HealthCheckURI"` + StickySessionType string `json:"StickySessionType" xml:"StickySessionType"` + XForwardedForClientCertIssuerDN string `json:"XForwardedFor_ClientCertIssuerDN" xml:"XForwardedFor_ClientCertIssuerDN"` + HealthyThreshold int `json:"HealthyThreshold" xml:"HealthyThreshold"` + XForwardedForProto string `json:"XForwardedFor_proto" xml:"XForwardedFor_proto"` + XForwardedForSLBIP string `json:"XForwardedFor_SLBIP" xml:"XForwardedFor_SLBIP"` + StickySession string `json:"StickySession" xml:"StickySession"` + HealthCheckMethod string `json:"HealthCheckMethod" xml:"HealthCheckMethod"` + TLSCipherPolicy string `json:"TLSCipherPolicy" xml:"TLSCipherPolicy"` + HealthCheck string `json:"HealthCheck" xml:"HealthCheck"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_ineffective_order_list.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_ineffective_order_list.go new file mode 100644 index 00000000..13dcd7c5 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_ineffective_order_list.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// IneffectiveOrderList is a nested struct in slb response +type IneffectiveOrderList struct { + IneffectiveOrder []string `json:"IneffectiveOrder" xml:"IneffectiveOrder"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_labels.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_labels.go new file mode 100644 index 00000000..91ea271d --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_labels.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Labels is a nested struct in slb response +type Labels struct { + Label []string `json:"Label" xml:"Label"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_listener.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_listener.go index de3123b4..c87969e8 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_listener.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_listener.go @@ -17,6 +17,26 @@ package slb // Listener is a nested struct in slb response type Listener struct { - Port int `json:"Port" xml:"Port"` - Protocol string `json:"Protocol" xml:"Protocol"` + AclType string `json:"AclType" xml:"AclType"` + Port int `json:"Port" xml:"Port"` + Protocol string `json:"Protocol" xml:"Protocol"` + ServiceManagedMode string `json:"ServiceManagedMode" xml:"ServiceManagedMode"` + AclId string `json:"AclId" xml:"AclId"` + AclStatus string `json:"AclStatus" xml:"AclStatus"` + ListenerProtocol string `json:"ListenerProtocol" xml:"ListenerProtocol"` + LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` + Scheduler string `json:"Scheduler" xml:"Scheduler"` + BackendServerPort int `json:"BackendServerPort" xml:"BackendServerPort"` + VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` + Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` + Status string `json:"Status" xml:"Status"` + ListenerPort int `json:"ListenerPort" xml:"ListenerPort"` + Description string `json:"Description" xml:"Description"` + AclIds AclIdsInDescribeLoadBalancerListeners `json:"AclIds" xml:"AclIds"` + HTTPListenerConfig HTTPListenerConfig `json:"HTTPListenerConfig" xml:"HTTPListenerConfig"` + TCPListenerConfig TCPListenerConfig `json:"TCPListenerConfig" xml:"TCPListenerConfig"` + HTTPSListenerConfig HTTPSListenerConfig `json:"HTTPSListenerConfig" xml:"HTTPSListenerConfig"` + TCPSListenerConfig TCPSListenerConfig `json:"TCPSListenerConfig" xml:"TCPSListenerConfig"` + UDPListenerConfig UDPListenerConfig `json:"UDPListenerConfig" xml:"UDPListenerConfig"` + Tags []Tag `json:"Tags" xml:"Tags"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_listener_in_describe_load_balancer_listeners.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_listener_in_describe_load_balancer_listeners.go new file mode 100644 index 00000000..2d536681 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_listener_in_describe_load_balancer_listeners.go @@ -0,0 +1,40 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ListenerInDescribeLoadBalancerListeners is a nested struct in slb response +type ListenerInDescribeLoadBalancerListeners struct { + AclType string `json:"AclType" xml:"AclType"` + Status string `json:"Status" xml:"Status"` + VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` + ListenerProtocol string `json:"ListenerProtocol" xml:"ListenerProtocol"` + LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` + ListenerPort int `json:"ListenerPort" xml:"ListenerPort"` + ServiceManagedMode string `json:"ServiceManagedMode" xml:"ServiceManagedMode"` + AclId string `json:"AclId" xml:"AclId"` + Scheduler string `json:"Scheduler" xml:"Scheduler"` + Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` + Description string `json:"Description" xml:"Description"` + AclStatus string `json:"AclStatus" xml:"AclStatus"` + BackendServerPort int `json:"BackendServerPort" xml:"BackendServerPort"` + AclIds []string `json:"AclIds" xml:"AclIds"` + HTTPListenerConfig HTTPListenerConfig `json:"HTTPListenerConfig" xml:"HTTPListenerConfig"` + HTTPSListenerConfig HTTPSListenerConfig `json:"HTTPSListenerConfig" xml:"HTTPSListenerConfig"` + TCPListenerConfig TCPListenerConfig `json:"TCPListenerConfig" xml:"TCPListenerConfig"` + TCPSListenerConfig TCPSListenerConfig `json:"TCPSListenerConfig" xml:"TCPSListenerConfig"` + UDPListenerConfig UDPListenerConfig `json:"UDPListenerConfig" xml:"UDPListenerConfig"` + Tags []Tag `json:"Tags" xml:"Tags"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_listener_port_and_protocal.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_listener_port_and_protocal.go index 4e240eba..f094a64f 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_listener_port_and_protocal.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_listener_port_and_protocal.go @@ -17,6 +17,6 @@ package slb // ListenerPortAndProtocal is a nested struct in slb response type ListenerPortAndProtocal struct { - ListenerPort int `json:"ListenerPort" xml:"ListenerPort"` ListenerProtocal string `json:"ListenerProtocal" xml:"ListenerProtocal"` + ListenerPort int `json:"ListenerPort" xml:"ListenerPort"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_listener_port_and_protocol.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_listener_port_and_protocol.go index 501ffeb3..e6ffa17c 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_listener_port_and_protocol.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_listener_port_and_protocol.go @@ -20,6 +20,6 @@ type ListenerPortAndProtocol struct { ListenerPort int `json:"ListenerPort" xml:"ListenerPort"` ListenerProtocol string `json:"ListenerProtocol" xml:"ListenerProtocol"` ListenerForward string `json:"ListenerForward" xml:"ListenerForward"` - ForwardPort int `json:"ForwardPort" xml:"ForwardPort"` Description string `json:"Description" xml:"Description"` + ForwardPort int `json:"ForwardPort" xml:"ForwardPort"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_listener_ports.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_listener_ports.go index 17bbb927..f70c4900 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_listener_ports.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_listener_ports.go @@ -17,5 +17,5 @@ package slb // ListenerPorts is a nested struct in slb response type ListenerPorts struct { - ListenerPort []string `json:"ListenerPort" xml:"ListenerPort"` + ListenerPort []int `json:"ListenerPort" xml:"ListenerPort"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_listeners_in_describe_load_balancer_listeners.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_listeners_in_describe_load_balancer_listeners.go new file mode 100644 index 00000000..b76ed926 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_listeners_in_describe_load_balancer_listeners.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ListenersInDescribeLoadBalancerListeners is a nested struct in slb response +type ListenersInDescribeLoadBalancerListeners struct { + Listener []ListenerInDescribeLoadBalancerListeners `json:"Listener" xml:"Listener"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_load_balancer.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_load_balancer.go index 025acd1f..457cf77f 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_load_balancer.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_load_balancer.go @@ -17,23 +17,36 @@ package slb // LoadBalancer is a nested struct in slb response type LoadBalancer struct { - LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` - LoadBalancerName string `json:"LoadBalancerName" xml:"LoadBalancerName"` - LoadBalancerStatus string `json:"LoadBalancerStatus" xml:"LoadBalancerStatus"` - Address string `json:"Address" xml:"Address"` - AddressType string `json:"AddressType" xml:"AddressType"` - RegionId string `json:"RegionId" xml:"RegionId"` - RegionIdAlias string `json:"RegionIdAlias" xml:"RegionIdAlias"` - VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` - VpcId string `json:"VpcId" xml:"VpcId"` - NetworkType string `json:"NetworkType" xml:"NetworkType"` - MasterZoneId string `json:"MasterZoneId" xml:"MasterZoneId"` - SlaveZoneId string `json:"SlaveZoneId" xml:"SlaveZoneId"` - InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - CreateTimeStamp int64 `json:"CreateTimeStamp" xml:"CreateTimeStamp"` - PayType string `json:"PayType" xml:"PayType"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - AddressIPVersion string `json:"AddressIPVersion" xml:"AddressIPVersion"` - Tags TagsInDescribeLoadBalancers `json:"Tags" xml:"Tags"` + VpcId string `json:"VpcId" xml:"VpcId"` + CreateTimeStamp int64 `json:"CreateTimeStamp" xml:"CreateTimeStamp"` + LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + PayType string `json:"PayType" xml:"PayType"` + AddressType string `json:"AddressType" xml:"AddressType"` + NetworkType string `json:"NetworkType" xml:"NetworkType"` + ServiceManagedMode string `json:"ServiceManagedMode" xml:"ServiceManagedMode"` + SpecBpsFlag bool `json:"SpecBpsFlag" xml:"SpecBpsFlag"` + AddressIPVersion string `json:"AddressIPVersion" xml:"AddressIPVersion"` + LoadBalancerName string `json:"LoadBalancerName" xml:"LoadBalancerName"` + Bandwidth int `json:"Bandwidth" xml:"Bandwidth"` + Address string `json:"Address" xml:"Address"` + SlaveZoneId string `json:"SlaveZoneId" xml:"SlaveZoneId"` + MasterZoneId string `json:"MasterZoneId" xml:"MasterZoneId"` + InternetChargeTypeAlias string `json:"InternetChargeTypeAlias" xml:"InternetChargeTypeAlias"` + LoadBalancerSpec string `json:"LoadBalancerSpec" xml:"LoadBalancerSpec"` + SpecType string `json:"SpecType" xml:"SpecType"` + RegionId string `json:"RegionId" xml:"RegionId"` + ModificationProtectionReason string `json:"ModificationProtectionReason" xml:"ModificationProtectionReason"` + ModificationProtectionStatus string `json:"ModificationProtectionStatus" xml:"ModificationProtectionStatus"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + LoadBalancerStatus string `json:"LoadBalancerStatus" xml:"LoadBalancerStatus"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + InternetChargeType string `json:"InternetChargeType" xml:"InternetChargeType"` + BusinessStatus string `json:"BusinessStatus" xml:"BusinessStatus"` + DeleteProtection string `json:"DeleteProtection" xml:"DeleteProtection"` + RegionIdAlias string `json:"RegionIdAlias" xml:"RegionIdAlias"` + InstanceChargeType string `json:"InstanceChargeType" xml:"InstanceChargeType"` + ServiceManagedReason string `json:"ServiceManagedReason" xml:"ServiceManagedReason"` + IneffectiveOrderList IneffectiveOrderList `json:"IneffectiveOrderList" xml:"IneffectiveOrderList"` + Tags TagsInDescribeLoadBalancers `json:"Tags" xml:"Tags"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_logs_download_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_logs_download_attribute.go new file mode 100644 index 00000000..9f282913 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_logs_download_attribute.go @@ -0,0 +1,26 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LogsDownloadAttribute is a nested struct in slb response +type LogsDownloadAttribute struct { + LogProject string `json:"LogProject" xml:"LogProject"` + RoleArn string `json:"RoleArn" xml:"RoleArn"` + LogStore string `json:"LogStore" xml:"LogStore"` + LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` + Region string `json:"Region" xml:"Region"` + LogType string `json:"LogType" xml:"LogType"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_logs_download_attributes.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_logs_download_attributes.go new file mode 100644 index 00000000..7aec6210 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_logs_download_attributes.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// LogsDownloadAttributes is a nested struct in slb response +type LogsDownloadAttributes struct { + LogsDownloadAttribute []LogsDownloadAttribute `json:"LogsDownloadAttribute" xml:"LogsDownloadAttribute"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_backend_server.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_backend_server.go index ba53cc10..00ab780e 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_backend_server.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_backend_server.go @@ -20,11 +20,9 @@ type MasterSlaveBackendServer struct { Port int `json:"Port" xml:"Port"` ServerIp string `json:"ServerIp" xml:"ServerIp"` ServerId string `json:"ServerId" xml:"ServerId"` - ServerType string `json:"ServerType" xml:"ServerType"` VpcId string `json:"VpcId" xml:"VpcId"` + ServerType string `json:"ServerType" xml:"ServerType"` Weight int `json:"Weight" xml:"Weight"` Description string `json:"Description" xml:"Description"` - IsBackup int `json:"IsBackup" xml:"IsBackup"` - EniHost string `json:"EniHost" xml:"EniHost"` Type string `json:"Type" xml:"Type"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_server_group.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_server_group.go index 19a09175..b12bad00 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_server_group.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_server_group.go @@ -17,7 +17,10 @@ package slb // MasterSlaveServerGroup is a nested struct in slb response type MasterSlaveServerGroup struct { - MasterSlaveServerGroupId string `json:"MasterSlaveServerGroupId" xml:"MasterSlaveServerGroupId"` - MasterSlaveServerGroupName string `json:"MasterSlaveServerGroupName" xml:"MasterSlaveServerGroupName"` - AssociatedObjects AssociatedObjects `json:"AssociatedObjects" xml:"AssociatedObjects"` + ServiceManagedMode string `json:"ServiceManagedMode" xml:"ServiceManagedMode"` + MasterSlaveServerGroupId string `json:"MasterSlaveServerGroupId" xml:"MasterSlaveServerGroupId"` + MasterSlaveServerGroupName string `json:"MasterSlaveServerGroupName" xml:"MasterSlaveServerGroupName"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + AssociatedObjects AssociatedObjects `json:"AssociatedObjects" xml:"AssociatedObjects"` + Tags TagsInDescribeMasterSlaveServerGroups `json:"Tags" xml:"Tags"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_v_server_group.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_v_server_group.go deleted file mode 100644 index 86ac8b69..00000000 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_v_server_group.go +++ /dev/null @@ -1,22 +0,0 @@ -package slb - -//Licensed under the Apache License, Version 2.0 (the "License"); -//you may not use this file except in compliance with the License. -//You may obtain a copy of the License at -// -//http://www.apache.org/licenses/LICENSE-2.0 -// -//Unless required by applicable law or agreed to in writing, software -//distributed under the License is distributed on an "AS IS" BASIS, -//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -//See the License for the specific language governing permissions and -//limitations under the License. -// -// Code generated by Alibaba Cloud SDK Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -// MasterSlaveVServerGroup is a nested struct in slb response -type MasterSlaveVServerGroup struct { - MasterSlaveVServerGroupId string `json:"MasterSlaveVServerGroupId" xml:"MasterSlaveVServerGroupId"` - MasterSlaveVServerGroupName string `json:"MasterSlaveVServerGroupName" xml:"MasterSlaveVServerGroupName"` -} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_port_range.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_port_range.go new file mode 100644 index 00000000..7d1380b0 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_port_range.go @@ -0,0 +1,22 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PortRange is a nested struct in slb response +type PortRange struct { + EndPort int `json:"EndPort" xml:"EndPort"` + StartPort int `json:"StartPort" xml:"StartPort"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_port_ranges_in_describe_load_balancer_listeners.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_port_ranges_in_describe_load_balancer_listeners.go new file mode 100644 index 00000000..48501b52 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_port_ranges_in_describe_load_balancer_listeners.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PortRangesInDescribeLoadBalancerListeners is a nested struct in slb response +type PortRangesInDescribeLoadBalancerListeners struct { + PortRange []PortRange `json:"PortRange" xml:"PortRange"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_port_ranges_in_describe_load_balancer_tcp_listener_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_port_ranges_in_describe_load_balancer_tcp_listener_attribute.go new file mode 100644 index 00000000..cc5dd990 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_port_ranges_in_describe_load_balancer_tcp_listener_attribute.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PortRangesInDescribeLoadBalancerTCPListenerAttribute is a nested struct in slb response +type PortRangesInDescribeLoadBalancerTCPListenerAttribute struct { + PortRange []PortRange `json:"PortRange" xml:"PortRange"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_port_ranges_in_describe_load_balancer_udp_listener_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_port_ranges_in_describe_load_balancer_udp_listener_attribute.go new file mode 100644 index 00000000..e08daf2a --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_port_ranges_in_describe_load_balancer_udp_listener_attribute.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// PortRangesInDescribeLoadBalancerUDPListenerAttribute is a nested struct in slb response +type PortRangesInDescribeLoadBalancerUDPListenerAttribute struct { + PortRange []PortRange `json:"PortRange" xml:"PortRange"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_region.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_region.go index 3e93370a..2b210363 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_region.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_region.go @@ -17,7 +17,7 @@ package slb // Region is a nested struct in slb response type Region struct { - RegionId string `json:"RegionId" xml:"RegionId"` - LocalName string `json:"LocalName" xml:"LocalName"` RegionEndpoint string `json:"RegionEndpoint" xml:"RegionEndpoint"` + LocalName string `json:"LocalName" xml:"LocalName"` + RegionId string `json:"RegionId" xml:"RegionId"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_relate_listener.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_relate_listener.go new file mode 100644 index 00000000..84233f1f --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_relate_listener.go @@ -0,0 +1,23 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RelateListener is a nested struct in slb response +type RelateListener struct { + Port int `json:"Port" xml:"Port"` + Protocol string `json:"Protocol" xml:"Protocol"` + LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_relate_listeners.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_relate_listeners.go new file mode 100644 index 00000000..3de00f58 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_relate_listeners.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// RelateListeners is a nested struct in slb response +type RelateListeners struct { + RelateListener []RelateListener `json:"RelateListener" xml:"RelateListener"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_related_listener.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_related_listener.go index 65c5de1a..bc8d709d 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_related_listener.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_related_listener.go @@ -17,8 +17,8 @@ package slb // RelatedListener is a nested struct in slb response type RelatedListener struct { - LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` ListenerPort int `json:"ListenerPort" xml:"ListenerPort"` AclType string `json:"AclType" xml:"AclType"` Protocol string `json:"Protocol" xml:"Protocol"` + LoadBalancerId string `json:"LoadBalancerId" xml:"LoadBalancerId"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_rule.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_rule.go index a8ce7421..49b69f2b 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_rule.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_rule.go @@ -21,8 +21,9 @@ type Rule struct { HealthCheckTimeout int `json:"HealthCheckTimeout" xml:"HealthCheckTimeout"` RuleName string `json:"RuleName" xml:"RuleName"` HealthCheckURI string `json:"HealthCheckURI" xml:"HealthCheckURI"` - StickySession string `json:"StickySession" xml:"StickySession"` HealthCheckInterval int `json:"HealthCheckInterval" xml:"HealthCheckInterval"` + ServiceManagedMode string `json:"ServiceManagedMode" xml:"ServiceManagedMode"` + StickySession string `json:"StickySession" xml:"StickySession"` ListenerSync string `json:"ListenerSync" xml:"ListenerSync"` RuleId string `json:"RuleId" xml:"RuleId"` HealthCheckDomain string `json:"HealthCheckDomain" xml:"HealthCheckDomain"` diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_server_certificate.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_server_certificate.go index eb87f816..df15d18c 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_server_certificate.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_server_certificate.go @@ -17,20 +17,25 @@ package slb // ServerCertificate is a nested struct in slb response type ServerCertificate struct { - ServerCertificateId string `json:"ServerCertificateId" xml:"ServerCertificateId"` + CommonName string `json:"CommonName" xml:"CommonName"` + EncryptionKeyLength int `json:"EncryptionKeyLength" xml:"EncryptionKeyLength"` Fingerprint string `json:"Fingerprint" xml:"Fingerprint"` - ServerCertificateName string `json:"ServerCertificateName" xml:"ServerCertificateName"` - RegionId string `json:"RegionId" xml:"RegionId"` - RegionIdAlias string `json:"RegionIdAlias" xml:"RegionIdAlias"` - AliCloudCertificateId string `json:"AliCloudCertificateId" xml:"AliCloudCertificateId"` AliCloudCertificateName string `json:"AliCloudCertificateName" xml:"AliCloudCertificateName"` - IsAliCloudCertificate int `json:"IsAliCloudCertificate" xml:"IsAliCloudCertificate"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` CreateTime string `json:"CreateTime" xml:"CreateTime"` + RegionIdAlias string `json:"RegionIdAlias" xml:"RegionIdAlias"` + BindingType string `json:"BindingType" xml:"BindingType"` + ServerCertificateId string `json:"ServerCertificateId" xml:"ServerCertificateId"` + ExpireTimeStamp int64 `json:"ExpireTimeStamp" xml:"ExpireTimeStamp"` CreateTimeStamp int64 `json:"CreateTimeStamp" xml:"CreateTimeStamp"` + RegionId string `json:"RegionId" xml:"RegionId"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + AliCloudCertificateId string `json:"AliCloudCertificateId" xml:"AliCloudCertificateId"` ExpireTime string `json:"ExpireTime" xml:"ExpireTime"` - ExpireTimeStamp int64 `json:"ExpireTimeStamp" xml:"ExpireTimeStamp"` - CommonName string `json:"CommonName" xml:"CommonName"` + EncryptionAlgorithm string `json:"EncryptionAlgorithm" xml:"EncryptionAlgorithm"` + CertificateId string `json:"CertificateId" xml:"CertificateId"` + ServerCertificateName string `json:"ServerCertificateName" xml:"ServerCertificateName"` + StandardType string `json:"StandardType" xml:"StandardType"` + IsAliCloudCertificate int `json:"IsAliCloudCertificate" xml:"IsAliCloudCertificate"` SubjectAlternativeNames SubjectAlternativeNamesInDescribeServerCertificates `json:"SubjectAlternativeNames" xml:"SubjectAlternativeNames"` Tags TagsInDescribeServerCertificates `json:"Tags" xml:"Tags"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_server_certificates_in_describe_domain_extension_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_server_certificates_in_describe_domain_extension_attribute.go new file mode 100644 index 00000000..1e234ca3 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_server_certificates_in_describe_domain_extension_attribute.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ServerCertificatesInDescribeDomainExtensionAttribute is a nested struct in slb response +type ServerCertificatesInDescribeDomainExtensionAttribute struct { + ServerCertificate []ServerCertificate `json:"ServerCertificate" xml:"ServerCertificate"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_server_certificates.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_server_certificates_in_describe_domain_extensions.go similarity index 84% rename from src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_server_certificates.go rename to src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_server_certificates_in_describe_domain_extensions.go index 56f19dbc..45cf75c6 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_server_certificates.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_server_certificates_in_describe_domain_extensions.go @@ -15,7 +15,7 @@ package slb // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// ServerCertificates is a nested struct in slb response -type ServerCertificates struct { +// ServerCertificatesInDescribeDomainExtensions is a nested struct in slb response +type ServerCertificatesInDescribeDomainExtensions struct { ServerCertificate []ServerCertificate `json:"ServerCertificate" xml:"ServerCertificate"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_server_certificates_in_describe_load_balancer_https_listener_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_server_certificates_in_describe_load_balancer_https_listener_attribute.go new file mode 100644 index 00000000..fe5350b5 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_server_certificates_in_describe_load_balancer_https_listener_attribute.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ServerCertificatesInDescribeLoadBalancerHTTPSListenerAttribute is a nested struct in slb response +type ServerCertificatesInDescribeLoadBalancerHTTPSListenerAttribute struct { + ServerCertificate []ServerCertificate `json:"ServerCertificate" xml:"ServerCertificate"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_server_certificates_in_describe_server_certificates.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_server_certificates_in_describe_server_certificates.go new file mode 100644 index 00000000..f40b6b09 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_server_certificates_in_describe_server_certificates.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ServerCertificatesInDescribeServerCertificates is a nested struct in slb response +type ServerCertificatesInDescribeServerCertificates struct { + ServerCertificate []ServerCertificate `json:"ServerCertificate" xml:"ServerCertificate"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_backend_servers_in_describe_master_slave_v_server_group_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tag_resource.go similarity index 69% rename from src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_backend_servers_in_describe_master_slave_v_server_group_attribute.go rename to src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tag_resource.go index 2a5574db..de4f234f 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_master_slave_backend_servers_in_describe_master_slave_v_server_group_attribute.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tag_resource.go @@ -15,7 +15,10 @@ package slb // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// MasterSlaveBackendServersInDescribeMasterSlaveVServerGroupAttribute is a nested struct in slb response -type MasterSlaveBackendServersInDescribeMasterSlaveVServerGroupAttribute struct { - MasterSlaveBackendServer []MasterSlaveBackendServer `json:"MasterSlaveBackendServer" xml:"MasterSlaveBackendServer"` +// TagResource is a nested struct in slb response +type TagResource struct { + TagValue string `json:"TagValue" xml:"TagValue"` + ResourceType string `json:"ResourceType" xml:"ResourceType"` + ResourceId string `json:"ResourceId" xml:"ResourceId"` + TagKey string `json:"TagKey" xml:"TagKey"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tag_resources.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tag_resources.go new file mode 100644 index 00000000..2817c726 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tag_resources.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagResources is a nested struct in slb response +type TagResources struct { + TagResource []TagResource `json:"TagResource" xml:"TagResource"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tag_set.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tag_set.go index aef08ef8..43e1c7b6 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tag_set.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tag_set.go @@ -17,7 +17,7 @@ package slb // TagSet is a nested struct in slb response type TagSet struct { - TagKey string `json:"TagKey" xml:"TagKey"` TagValue string `json:"TagValue" xml:"TagValue"` InstanceCount int `json:"InstanceCount" xml:"InstanceCount"` + TagKey string `json:"TagKey" xml:"TagKey"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tags_in_describe_access_control_list_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tags_in_describe_access_control_list_attribute.go new file mode 100644 index 00000000..1d04d240 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tags_in_describe_access_control_list_attribute.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagsInDescribeAccessControlListAttribute is a nested struct in slb response +type TagsInDescribeAccessControlListAttribute struct { + Tag []Tag `json:"Tag" xml:"Tag"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tags_in_describe_load_balancer_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tags_in_describe_load_balancer_attribute.go new file mode 100644 index 00000000..1e6c71df --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tags_in_describe_load_balancer_attribute.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagsInDescribeLoadBalancerAttribute is a nested struct in slb response +type TagsInDescribeLoadBalancerAttribute struct { + Tag []Tag `json:"Tag" xml:"Tag"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tags_in_describe_load_balancer_http_listener_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tags_in_describe_load_balancer_http_listener_attribute.go new file mode 100644 index 00000000..98c299ce --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tags_in_describe_load_balancer_http_listener_attribute.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagsInDescribeLoadBalancerHTTPListenerAttribute is a nested struct in slb response +type TagsInDescribeLoadBalancerHTTPListenerAttribute struct { + Tag []Tag `json:"Tag" xml:"Tag"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tags_in_describe_load_balancer_https_listener_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tags_in_describe_load_balancer_https_listener_attribute.go new file mode 100644 index 00000000..a56dd534 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tags_in_describe_load_balancer_https_listener_attribute.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagsInDescribeLoadBalancerHTTPSListenerAttribute is a nested struct in slb response +type TagsInDescribeLoadBalancerHTTPSListenerAttribute struct { + Tag []Tag `json:"Tag" xml:"Tag"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tags_in_describe_load_balancer_listeners.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tags_in_describe_load_balancer_listeners.go new file mode 100644 index 00000000..d99bcb2f --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tags_in_describe_load_balancer_listeners.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagsInDescribeLoadBalancerListeners is a nested struct in slb response +type TagsInDescribeLoadBalancerListeners struct { + Tag []Tag `json:"Tag" xml:"Tag"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tags_in_describe_load_balancer_tcp_listener_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tags_in_describe_load_balancer_tcp_listener_attribute.go new file mode 100644 index 00000000..25460910 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tags_in_describe_load_balancer_tcp_listener_attribute.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagsInDescribeLoadBalancerTCPListenerAttribute is a nested struct in slb response +type TagsInDescribeLoadBalancerTCPListenerAttribute struct { + Tag []Tag `json:"Tag" xml:"Tag"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tags_in_describe_load_balancer_udp_listener_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tags_in_describe_load_balancer_udp_listener_attribute.go new file mode 100644 index 00000000..03e9215a --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tags_in_describe_load_balancer_udp_listener_attribute.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagsInDescribeLoadBalancerUDPListenerAttribute is a nested struct in slb response +type TagsInDescribeLoadBalancerUDPListenerAttribute struct { + Tag []Tag `json:"Tag" xml:"Tag"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tags_in_describe_master_slave_server_group_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tags_in_describe_master_slave_server_group_attribute.go new file mode 100644 index 00000000..d649b543 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tags_in_describe_master_slave_server_group_attribute.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagsInDescribeMasterSlaveServerGroupAttribute is a nested struct in slb response +type TagsInDescribeMasterSlaveServerGroupAttribute struct { + Tag []Tag `json:"Tag" xml:"Tag"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tags_in_describe_master_slave_server_groups.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tags_in_describe_master_slave_server_groups.go new file mode 100644 index 00000000..2c47cc34 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tags_in_describe_master_slave_server_groups.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagsInDescribeMasterSlaveServerGroups is a nested struct in slb response +type TagsInDescribeMasterSlaveServerGroups struct { + Tag []Tag `json:"Tag" xml:"Tag"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tags_in_describe_v_server_group_attribute.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tags_in_describe_v_server_group_attribute.go new file mode 100644 index 00000000..3835ae8a --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tags_in_describe_v_server_group_attribute.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagsInDescribeVServerGroupAttribute is a nested struct in slb response +type TagsInDescribeVServerGroupAttribute struct { + Tag []Tag `json:"Tag" xml:"Tag"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tags_in_describe_v_server_groups.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tags_in_describe_v_server_groups.go new file mode 100644 index 00000000..f1663b29 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tags_in_describe_v_server_groups.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TagsInDescribeVServerGroups is a nested struct in slb response +type TagsInDescribeVServerGroups struct { + Tag []Tag `json:"Tag" xml:"Tag"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tcp_listener_config.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tcp_listener_config.go new file mode 100644 index 00000000..9d9cb321 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tcp_listener_config.go @@ -0,0 +1,40 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TCPListenerConfig is a nested struct in slb response +type TCPListenerConfig struct { + HealthCheckHttpCode string `json:"HealthCheckHttpCode" xml:"HealthCheckHttpCode"` + ConnectionDrainTimeout int `json:"ConnectionDrainTimeout" xml:"ConnectionDrainTimeout"` + PersistenceTimeout int `json:"PersistenceTimeout" xml:"PersistenceTimeout"` + HealthCheckInterval int `json:"HealthCheckInterval" xml:"HealthCheckInterval"` + HealthCheckURI string `json:"HealthCheckURI" xml:"HealthCheckURI"` + HealthCheckSwitch string `json:"HealthCheckSwitch" xml:"HealthCheckSwitch"` + FullNatEnabled string `json:"FullNatEnabled" xml:"FullNatEnabled"` + HealthCheckConnectPort int `json:"HealthCheckConnectPort" xml:"HealthCheckConnectPort"` + EstablishedTimeout int `json:"EstablishedTimeout" xml:"EstablishedTimeout"` + HealthCheckType string `json:"HealthCheckType" xml:"HealthCheckType"` + HealthCheckConnectTimeout int `json:"HealthCheckConnectTimeout" xml:"HealthCheckConnectTimeout"` + MasterSlaveServerGroupId string `json:"MasterSlaveServerGroupId" xml:"MasterSlaveServerGroupId"` + HealthyThreshold int `json:"HealthyThreshold" xml:"HealthyThreshold"` + HealthCheckDomain string `json:"HealthCheckDomain" xml:"HealthCheckDomain"` + UnhealthyThreshold int `json:"UnhealthyThreshold" xml:"UnhealthyThreshold"` + ConnectionDrain string `json:"ConnectionDrain" xml:"ConnectionDrain"` + HealthCheckMethod string `json:"HealthCheckMethod" xml:"HealthCheckMethod"` + HealthCheck string `json:"HealthCheck" xml:"HealthCheck"` + ProxyProtocolV2Enabled string `json:"ProxyProtocolV2Enabled" xml:"ProxyProtocolV2Enabled"` + PortRanges []PortRange `json:"PortRanges" xml:"PortRanges"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tcps_listener_config.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tcps_listener_config.go new file mode 100644 index 00000000..d9534aa4 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tcps_listener_config.go @@ -0,0 +1,39 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TCPSListenerConfig is a nested struct in slb response +type TCPSListenerConfig struct { + HealthCheckHttpCode string `json:"HealthCheckHttpCode" xml:"HealthCheckHttpCode"` + Cookie string `json:"Cookie" xml:"Cookie"` + IdleTimeout int `json:"IdleTimeout" xml:"IdleTimeout"` + ServerCertificateId string `json:"ServerCertificateId" xml:"ServerCertificateId"` + HealthCheckInterval int `json:"HealthCheckInterval" xml:"HealthCheckInterval"` + HealthCheckURI string `json:"HealthCheckURI" xml:"HealthCheckURI"` + CACertificateId string `json:"CACertificateId" xml:"CACertificateId"` + StickySessionType string `json:"StickySessionType" xml:"StickySessionType"` + HealthCheckConnectPort int `json:"HealthCheckConnectPort" xml:"HealthCheckConnectPort"` + HealthCheckTimeout int `json:"HealthCheckTimeout" xml:"HealthCheckTimeout"` + HealthCheckType string `json:"HealthCheckType" xml:"HealthCheckType"` + HealthyThreshold int `json:"HealthyThreshold" xml:"HealthyThreshold"` + CookieTimeout int `json:"CookieTimeout" xml:"CookieTimeout"` + HealthCheckDomain string `json:"HealthCheckDomain" xml:"HealthCheckDomain"` + UnhealthyThreshold int `json:"UnhealthyThreshold" xml:"UnhealthyThreshold"` + StickySession string `json:"StickySession" xml:"StickySession"` + HealthCheckMethod string `json:"HealthCheckMethod" xml:"HealthCheckMethod"` + TLSCipherPolicy string `json:"TLSCipherPolicy" xml:"TLSCipherPolicy"` + HealthCheck string `json:"HealthCheck" xml:"HealthCheck"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tls_cipher_policies.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tls_cipher_policies.go new file mode 100644 index 00000000..77e7ec9d --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tls_cipher_policies.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TLSCipherPolicies is a nested struct in slb response +type TLSCipherPolicies struct { + TLSCipherPolicy []TLSCipherPolicy `json:"TLSCipherPolicy" xml:"TLSCipherPolicy"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tls_cipher_policy.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tls_cipher_policy.go new file mode 100644 index 00000000..826bfe9a --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tls_cipher_policy.go @@ -0,0 +1,28 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TLSCipherPolicy is a nested struct in slb response +type TLSCipherPolicy struct { + ServiceManagedMode string `json:"ServiceManagedMode" xml:"ServiceManagedMode"` + Status string `json:"Status" xml:"Status"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + Name string `json:"Name" xml:"Name"` + CreateTime int64 `json:"CreateTime" xml:"CreateTime"` + TLSVersions []string `json:"TLSVersions" xml:"TLSVersions"` + Ciphers []string `json:"Ciphers" xml:"Ciphers"` + RelateListeners []RelateListener `json:"RelateListeners" xml:"RelateListeners"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tls_versions.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tls_versions.go new file mode 100644 index 00000000..117ce758 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_tls_versions.go @@ -0,0 +1,21 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// TLSVersions is a nested struct in slb response +type TLSVersions struct { + TLSVersion []string `json:"TLSVersion" xml:"TLSVersion"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_udp_listener_config.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_udp_listener_config.go new file mode 100644 index 00000000..b7f8ffe3 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_udp_listener_config.go @@ -0,0 +1,40 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// UDPListenerConfig is a nested struct in slb response +type UDPListenerConfig struct { + HealthCheckHttpCode string `json:"HealthCheckHttpCode" xml:"HealthCheckHttpCode"` + ConnectionDrainTimeout int `json:"ConnectionDrainTimeout" xml:"ConnectionDrainTimeout"` + HealthCheckInterval int `json:"HealthCheckInterval" xml:"HealthCheckInterval"` + HealthCheckExp string `json:"HealthCheckExp" xml:"HealthCheckExp"` + HealthCheckURI string `json:"HealthCheckURI" xml:"HealthCheckURI"` + HealthCheckSwitch string `json:"HealthCheckSwitch" xml:"HealthCheckSwitch"` + FullNatEnabled string `json:"FullNatEnabled" xml:"FullNatEnabled"` + HealthCheckConnectPort int `json:"HealthCheckConnectPort" xml:"HealthCheckConnectPort"` + HealthCheckType string `json:"HealthCheckType" xml:"HealthCheckType"` + HealthCheckConnectTimeout int `json:"HealthCheckConnectTimeout" xml:"HealthCheckConnectTimeout"` + MasterSlaveServerGroupId string `json:"MasterSlaveServerGroupId" xml:"MasterSlaveServerGroupId"` + HealthyThreshold int `json:"HealthyThreshold" xml:"HealthyThreshold"` + HealthCheckDomain string `json:"HealthCheckDomain" xml:"HealthCheckDomain"` + UnhealthyThreshold int `json:"UnhealthyThreshold" xml:"UnhealthyThreshold"` + ConnectionDrain string `json:"ConnectionDrain" xml:"ConnectionDrain"` + HealthCheckReq string `json:"HealthCheckReq" xml:"HealthCheckReq"` + HealthCheckMethod string `json:"HealthCheckMethod" xml:"HealthCheckMethod"` + HealthCheck string `json:"HealthCheck" xml:"HealthCheck"` + ProxyProtocolV2Enabled string `json:"ProxyProtocolV2Enabled" xml:"ProxyProtocolV2Enabled"` + PortRanges []PortRange `json:"PortRanges" xml:"PortRanges"` +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_v_server_group.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_v_server_group.go index 191a622c..105713a1 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_v_server_group.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/struct_v_server_group.go @@ -17,7 +17,11 @@ package slb // VServerGroup is a nested struct in slb response type VServerGroup struct { - VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` - VServerGroupName string `json:"VServerGroupName" xml:"VServerGroupName"` - AssociatedObjects AssociatedObjects `json:"AssociatedObjects" xml:"AssociatedObjects"` + VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` + ServiceManagedMode string `json:"ServiceManagedMode" xml:"ServiceManagedMode"` + VServerGroupName string `json:"VServerGroupName" xml:"VServerGroupName"` + ServerCount int64 `json:"ServerCount" xml:"ServerCount"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + AssociatedObjects AssociatedObjects `json:"AssociatedObjects" xml:"AssociatedObjects"` + Tags TagsInDescribeVServerGroups `json:"Tags" xml:"Tags"` } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/tag_resources.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/tag_resources.go new file mode 100644 index 00000000..a45a479a --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/tag_resources.go @@ -0,0 +1,112 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// TagResources invokes the slb.TagResources API synchronously +func (client *Client) TagResources(request *TagResourcesRequest) (response *TagResourcesResponse, err error) { + response = CreateTagResourcesResponse() + err = client.DoAction(request, response) + return +} + +// TagResourcesWithChan invokes the slb.TagResources API asynchronously +func (client *Client) TagResourcesWithChan(request *TagResourcesRequest) (<-chan *TagResourcesResponse, <-chan error) { + responseChan := make(chan *TagResourcesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.TagResources(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// TagResourcesWithCallback invokes the slb.TagResources API asynchronously +func (client *Client) TagResourcesWithCallback(request *TagResourcesRequest, callback func(response *TagResourcesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *TagResourcesResponse + var err error + defer close(result) + response, err = client.TagResources(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// TagResourcesRequest is the request struct for api TagResources +type TagResourcesRequest struct { + *requests.RpcRequest + AccessKeyId string `position:"Query" name:"access_key_id"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + Tag *[]TagResourcesTag `position:"Query" name:"Tag" type:"Repeated"` + ResourceId *[]string `position:"Query" name:"ResourceId" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceType string `position:"Query" name:"ResourceType"` +} + +// TagResourcesTag is a repeated param struct in TagResourcesRequest +type TagResourcesTag struct { + Value string `name:"Value"` + Key string `name:"Key"` +} + +// TagResourcesResponse is the response struct for api TagResources +type TagResourcesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateTagResourcesRequest creates a request to invoke TagResources API +func CreateTagResourcesRequest() (request *TagResourcesRequest) { + request = &TagResourcesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "TagResources", "slb", "openAPI") + request.Method = requests.POST + return +} + +// CreateTagResourcesResponse creates a response to parse from TagResources response +func CreateTagResourcesResponse() (response *TagResourcesResponse) { + response = &TagResourcesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/untag_resources.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/untag_resources.go new file mode 100644 index 00000000..6f113ba7 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/untag_resources.go @@ -0,0 +1,107 @@ +package slb + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// UntagResources invokes the slb.UntagResources API synchronously +func (client *Client) UntagResources(request *UntagResourcesRequest) (response *UntagResourcesResponse, err error) { + response = CreateUntagResourcesResponse() + err = client.DoAction(request, response) + return +} + +// UntagResourcesWithChan invokes the slb.UntagResources API asynchronously +func (client *Client) UntagResourcesWithChan(request *UntagResourcesRequest) (<-chan *UntagResourcesResponse, <-chan error) { + responseChan := make(chan *UntagResourcesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UntagResources(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UntagResourcesWithCallback invokes the slb.UntagResources API asynchronously +func (client *Client) UntagResourcesWithCallback(request *UntagResourcesRequest, callback func(response *UntagResourcesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UntagResourcesResponse + var err error + defer close(result) + response, err = client.UntagResources(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UntagResourcesRequest is the request struct for api UntagResources +type UntagResourcesRequest struct { + *requests.RpcRequest + AccessKeyId string `position:"Query" name:"access_key_id"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + All requests.Boolean `position:"Query" name:"All"` + ResourceId *[]string `position:"Query" name:"ResourceId" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceType string `position:"Query" name:"ResourceType"` + TagKey *[]string `position:"Query" name:"TagKey" type:"Repeated"` +} + +// UntagResourcesResponse is the response struct for api UntagResources +type UntagResourcesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUntagResourcesRequest creates a request to invoke UntagResources API +func CreateUntagResourcesRequest() (request *UntagResourcesRequest) { + request = &UntagResourcesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("Slb", "2014-05-15", "UntagResources", "slb", "openAPI") + request.Method = requests.POST + return +} + +// CreateUntagResourcesResponse creates a response to parse from UntagResources response +func CreateUntagResourcesResponse() (response *UntagResourcesResponse) { + response = &UntagResourcesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/upload_ca_certificate.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/upload_ca_certificate.go index 850c3a16..e60e359a 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/upload_ca_certificate.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/upload_ca_certificate.go @@ -21,7 +21,6 @@ import ( ) // UploadCACertificate invokes the slb.UploadCACertificate API synchronously -// api document: https://help.aliyun.com/api/slb/uploadcacertificate.html func (client *Client) UploadCACertificate(request *UploadCACertificateRequest) (response *UploadCACertificateResponse, err error) { response = CreateUploadCACertificateResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) UploadCACertificate(request *UploadCACertificateRequest) ( } // UploadCACertificateWithChan invokes the slb.UploadCACertificate API asynchronously -// api document: https://help.aliyun.com/api/slb/uploadcacertificate.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) UploadCACertificateWithChan(request *UploadCACertificateRequest) (<-chan *UploadCACertificateResponse, <-chan error) { responseChan := make(chan *UploadCACertificateResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) UploadCACertificateWithChan(request *UploadCACertificateRe } // UploadCACertificateWithCallback invokes the slb.UploadCACertificate API asynchronously -// api document: https://help.aliyun.com/api/slb/uploadcacertificate.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) UploadCACertificateWithCallback(request *UploadCACertificateRequest, callback func(response *UploadCACertificateResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,29 +71,37 @@ func (client *Client) UploadCACertificateWithCallback(request *UploadCACertifica // UploadCACertificateRequest is the request struct for api UploadCACertificate type UploadCACertificateRequest struct { *requests.RpcRequest - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - CACertificate string `position:"Query" name:"CACertificate"` - CACertificateName string `position:"Query" name:"CACertificateName"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` + AccessKeyId string `position:"Query" name:"access_key_id"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + CACertificateName string `position:"Query" name:"CACertificateName"` + Tag *[]UploadCACertificateTag `position:"Query" name:"Tag" type:"Repeated"` + CACertificate string `position:"Query" name:"CACertificate"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + StandardType string `position:"Query" name:"StandardType"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// UploadCACertificateTag is a repeated param struct in UploadCACertificateRequest +type UploadCACertificateTag struct { + Value string `name:"Value"` + Key string `name:"Key"` } // UploadCACertificateResponse is the response struct for api UploadCACertificate type UploadCACertificateResponse struct { *responses.BaseResponse + CreateTimeStamp int64 `json:"CreateTimeStamp" xml:"CreateTimeStamp"` RequestId string `json:"RequestId" xml:"RequestId"` - CACertificateId string `json:"CACertificateId" xml:"CACertificateId"` - CACertificateName string `json:"CACertificateName" xml:"CACertificateName"` + ExpireTime string `json:"ExpireTime" xml:"ExpireTime"` Fingerprint string `json:"Fingerprint" xml:"Fingerprint"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` CreateTime string `json:"CreateTime" xml:"CreateTime"` - CreateTimeStamp int64 `json:"CreateTimeStamp" xml:"CreateTimeStamp"` - ExpireTime string `json:"ExpireTime" xml:"ExpireTime"` - ExpireTimeStamp int64 `json:"ExpireTimeStamp" xml:"ExpireTimeStamp"` CommonName string `json:"CommonName" xml:"CommonName"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + CACertificateName string `json:"CACertificateName" xml:"CACertificateName"` + ExpireTimeStamp int64 `json:"ExpireTimeStamp" xml:"ExpireTimeStamp"` + CACertificateId string `json:"CACertificateId" xml:"CACertificateId"` } // CreateUploadCACertificateRequest creates a request to invoke UploadCACertificate API @@ -107,6 +110,7 @@ func CreateUploadCACertificateRequest() (request *UploadCACertificateRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "UploadCACertificate", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/upload_server_certificate.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/upload_server_certificate.go index 93682d6d..d0c282c4 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/upload_server_certificate.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/alibaba-cloud-sdk-go/services/slb/upload_server_certificate.go @@ -21,7 +21,6 @@ import ( ) // UploadServerCertificate invokes the slb.UploadServerCertificate API synchronously -// api document: https://help.aliyun.com/api/slb/uploadservercertificate.html func (client *Client) UploadServerCertificate(request *UploadServerCertificateRequest) (response *UploadServerCertificateResponse, err error) { response = CreateUploadServerCertificateResponse() err = client.DoAction(request, response) @@ -29,8 +28,6 @@ func (client *Client) UploadServerCertificate(request *UploadServerCertificateRe } // UploadServerCertificateWithChan invokes the slb.UploadServerCertificate API asynchronously -// api document: https://help.aliyun.com/api/slb/uploadservercertificate.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) UploadServerCertificateWithChan(request *UploadServerCertificateRequest) (<-chan *UploadServerCertificateResponse, <-chan error) { responseChan := make(chan *UploadServerCertificateResponse, 1) errChan := make(chan error, 1) @@ -53,8 +50,6 @@ func (client *Client) UploadServerCertificateWithChan(request *UploadServerCerti } // UploadServerCertificateWithCallback invokes the slb.UploadServerCertificate API asynchronously -// api document: https://help.aliyun.com/api/slb/uploadservercertificate.html -// asynchronous document: https://help.aliyun.com/document_detail/66220.html func (client *Client) UploadServerCertificateWithCallback(request *UploadServerCertificateRequest, callback func(response *UploadServerCertificateResponse, err error)) <-chan int { result := make(chan int, 1) err := client.AddAsyncTask(func() { @@ -76,38 +71,47 @@ func (client *Client) UploadServerCertificateWithCallback(request *UploadServerC // UploadServerCertificateRequest is the request struct for api UploadServerCertificate type UploadServerCertificateRequest struct { *requests.RpcRequest - AccessKeyId string `position:"Query" name:"access_key_id"` - ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` - ServerCertificate string `position:"Query" name:"ServerCertificate"` - ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - AliCloudCertificateName string `position:"Query" name:"AliCloudCertificateName"` - AliCloudCertificateId string `position:"Query" name:"AliCloudCertificateId"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Tags string `position:"Query" name:"Tags"` - PrivateKey string `position:"Query" name:"PrivateKey"` - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - ServerCertificateName string `position:"Query" name:"ServerCertificateName"` + AccessKeyId string `position:"Query" name:"access_key_id"` + ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"` + ServerCertificate string `position:"Query" name:"ServerCertificate"` + AliCloudCertificateName string `position:"Query" name:"AliCloudCertificateName"` + AliCloudCertificateId string `position:"Query" name:"AliCloudCertificateId"` + PrivateKey string `position:"Query" name:"PrivateKey"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + Tag *[]UploadServerCertificateTag `position:"Query" name:"Tag" type:"Repeated"` + ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + StandardType string `position:"Query" name:"StandardType"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Tags string `position:"Query" name:"Tags"` + AliCloudCertificateRegionId string `position:"Query" name:"AliCloudCertificateRegionId"` + ServerCertificateName string `position:"Query" name:"ServerCertificateName"` +} + +// UploadServerCertificateTag is a repeated param struct in UploadServerCertificateRequest +type UploadServerCertificateTag struct { + Value string `name:"Value"` + Key string `name:"Key"` } // UploadServerCertificateResponse is the response struct for api UploadServerCertificate type UploadServerCertificateResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` + AliCloudCertificateName string `json:"AliCloudCertificateName" xml:"AliCloudCertificateName"` + CreateTimeStamp int64 `json:"CreateTimeStamp" xml:"CreateTimeStamp"` + ExpireTime string `json:"ExpireTime" xml:"ExpireTime"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` ServerCertificateId string `json:"ServerCertificateId" xml:"ServerCertificateId"` + ExpireTimeStamp int64 `json:"ExpireTimeStamp" xml:"ExpireTimeStamp"` + RegionId string `json:"RegionId" xml:"RegionId"` + RequestId string `json:"RequestId" xml:"RequestId"` Fingerprint string `json:"Fingerprint" xml:"Fingerprint"` ServerCertificateName string `json:"ServerCertificateName" xml:"ServerCertificateName"` - RegionId string `json:"RegionId" xml:"RegionId"` + CommonName string `json:"CommonName" xml:"CommonName"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` RegionIdAlias string `json:"RegionIdAlias" xml:"RegionIdAlias"` AliCloudCertificateId string `json:"AliCloudCertificateId" xml:"AliCloudCertificateId"` - AliCloudCertificateName string `json:"AliCloudCertificateName" xml:"AliCloudCertificateName"` IsAliCloudCertificate int `json:"IsAliCloudCertificate" xml:"IsAliCloudCertificate"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - CreateTimeStamp int64 `json:"CreateTimeStamp" xml:"CreateTimeStamp"` - ExpireTime string `json:"ExpireTime" xml:"ExpireTime"` - ExpireTimeStamp int64 `json:"ExpireTimeStamp" xml:"ExpireTimeStamp"` - CommonName string `json:"CommonName" xml:"CommonName"` SubjectAlternativeNames SubjectAlternativeNamesInUploadServerCertificate `json:"SubjectAlternativeNames" xml:"SubjectAlternativeNames"` } @@ -117,6 +121,7 @@ func CreateUploadServerCertificateRequest() (request *UploadServerCertificateReq RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("Slb", "2014-05-15", "UploadServerCertificate", "slb", "openAPI") + request.Method = requests.POST return } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/credentials-go/credentials/access_key_credential.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/credentials-go/credentials/access_key_credential.go index 7bcaa974..78530e68 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/credentials-go/credentials/access_key_credential.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/credentials-go/credentials/access_key_credential.go @@ -15,6 +15,15 @@ func newAccessKeyCredential(accessKeyId, accessKeySecret string) *AccessKeyCrede } } +func (s *AccessKeyCredential) GetCredential() (*CredentialModel, error) { + credential := &CredentialModel{ + AccessKeyId: tea.String(s.AccessKeyId), + AccessKeySecret: tea.String(s.AccessKeySecret), + Type: tea.String("access_key"), + } + return credential, nil +} + // GetAccessKeyId reutrns AccessKeyCreential's AccessKeyId func (a *AccessKeyCredential) GetAccessKeyId() (*string, error) { return tea.String(a.AccessKeyId), nil diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/credentials-go/credentials/bearer_token_credential.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/credentials-go/credentials/bearer_token_credential.go index cca29162..9df4d320 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/credentials-go/credentials/bearer_token_credential.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/credentials-go/credentials/bearer_token_credential.go @@ -14,6 +14,14 @@ func newBearerTokenCredential(token string) *BearerTokenCredential { } } +func (s *BearerTokenCredential) GetCredential() (*CredentialModel, error) { + credential := &CredentialModel{ + BearerToken: tea.String(s.BearerToken), + Type: tea.String("bearer"), + } + return credential, nil +} + // GetAccessKeyId is useless for BearerTokenCredential func (b *BearerTokenCredential) GetAccessKeyId() (*string, error) { return tea.String(""), nil diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/credentials-go/credentials/credential.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/credentials-go/credentials/credential.go index 693f3fa4..2603dc0c 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/credentials-go/credentials/credential.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/credentials-go/credentials/credential.go @@ -30,6 +30,7 @@ type Credential interface { GetSecurityToken() (*string, error) GetBearerToken() *string GetType() *string + GetCredential() (*CredentialModel, error) } // Config is important when call NewCredential @@ -56,6 +57,7 @@ type Config struct { InAdvanceScale *float64 `json:"inAdvanceScale"` Url *string `json:"url"` STSEndpoint *string `json:"sts_endpoint"` + ExternalId *string `json:"external_id"` } func (s Config) String() string { @@ -234,7 +236,15 @@ func NewCredential(config *Config) (credential Credential, err error) { ConnectTimeout: tea.IntValue(config.ConnectTimeout), STSEndpoint: tea.StringValue(config.STSEndpoint), } - credential = newRAMRoleArnCredential(tea.StringValue(config.AccessKeyId), tea.StringValue(config.AccessKeySecret), tea.StringValue(config.RoleArn), tea.StringValue(config.RoleSessionName), tea.StringValue(config.Policy), tea.IntValue(config.RoleSessionExpiration), runtime) + credential = newRAMRoleArnWithExternalIdCredential( + tea.StringValue(config.AccessKeyId), + tea.StringValue(config.AccessKeySecret), + tea.StringValue(config.RoleArn), + tea.StringValue(config.RoleSessionName), + tea.StringValue(config.Policy), + tea.IntValue(config.RoleSessionExpiration), + tea.StringValue(config.ExternalId), + runtime) case "rsa_key_pair": err = checkRSAKeyPair(config) if err != nil { diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/credentials-go/credentials/credential_model.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/credentials-go/credentials/credential_model.go new file mode 100644 index 00000000..7b46c308 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/credentials-go/credentials/credential_model.go @@ -0,0 +1,50 @@ +package credentials + +import "github.com/alibabacloud-go/tea/tea" + +// CredentialModel is a model +type CredentialModel struct { + // accesskey id + AccessKeyId *string `json:"accessKeyId,omitempty" xml:"accessKeyId,omitempty"` + // accesskey secret + AccessKeySecret *string `json:"accessKeySecret,omitempty" xml:"accessKeySecret,omitempty"` + // security token + SecurityToken *string `json:"securityToken,omitempty" xml:"securityToken,omitempty"` + // bearer token + BearerToken *string `json:"bearerToken,omitempty" xml:"bearerToken,omitempty"` + // type + Type *string `json:"type,omitempty" xml:"type,omitempty"` +} + +func (s CredentialModel) String() string { + return tea.Prettify(s) +} + +func (s CredentialModel) GoString() string { + return s.String() +} + +func (s *CredentialModel) SetAccessKeyId(v string) *CredentialModel { + s.AccessKeyId = &v + return s +} + +func (s *CredentialModel) SetAccessKeySecret(v string) *CredentialModel { + s.AccessKeySecret = &v + return s +} + +func (s *CredentialModel) SetSecurityToken(v string) *CredentialModel { + s.SecurityToken = &v + return s +} + +func (s *CredentialModel) SetBearerToken(v string) *CredentialModel { + s.BearerToken = &v + return s +} + +func (s *CredentialModel) SetType(v string) *CredentialModel { + s.Type = &v + return s +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/credentials-go/credentials/ecs_ram_role.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/credentials-go/credentials/ecs_ram_role.go index 5e7ddf4d..d86360fc 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/credentials-go/credentials/ecs_ram_role.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/credentials-go/credentials/ecs_ram_role.go @@ -40,6 +40,22 @@ func newEcsRAMRoleCredential(roleName string, inAdvanceScale float64, runtime *u } } +func (e *EcsRAMRoleCredential) GetCredential() (*CredentialModel, error) { + if e.sessionCredential == nil || e.needUpdateCredential() { + err := e.updateCredential() + if err != nil { + return nil, err + } + } + credential := &CredentialModel{ + AccessKeyId: tea.String(e.sessionCredential.AccessKeyId), + AccessKeySecret: tea.String(e.sessionCredential.AccessKeySecret), + SecurityToken: tea.String(e.sessionCredential.SecurityToken), + Type: tea.String("ecs_ram_role"), + } + return credential, nil +} + // GetAccessKeyId reutrns EcsRAMRoleCredential's AccessKeyId // if AccessKeyId is not exist or out of date, the function will update it. func (e *EcsRAMRoleCredential) GetAccessKeyId() (*string, error) { diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/credentials-go/credentials/oidc_credential.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/credentials-go/credentials/oidc_credential.go index 7267383c..de0acc7f 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/credentials-go/credentials/oidc_credential.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/credentials-go/credentials/oidc_credential.go @@ -5,6 +5,7 @@ import ( "fmt" "io/ioutil" "os" + "strconv" "time" "github.com/alibabacloud-go/tea/tea" @@ -55,6 +56,22 @@ func newOIDCRoleArnCredential(accessKeyId, accessKeySecret, roleArn, OIDCProvide } } +func (e *OIDCCredential) GetCredential() (*CredentialModel, error) { + if e.sessionCredential == nil || e.needUpdateCredential() { + err := e.updateCredential() + if err != nil { + return nil, err + } + } + credential := &CredentialModel{ + AccessKeyId: tea.String(e.sessionCredential.AccessKeyId), + AccessKeySecret: tea.String(e.sessionCredential.AccessKeySecret), + SecurityToken: tea.String(e.sessionCredential.SecurityToken), + Type: tea.String("oidc_role_arn"), + } + return credential, nil +} + // GetAccessKeyId reutrns OIDCCredential's AccessKeyId // if AccessKeyId is not exist or out of date, the function will update it. func (r *OIDCCredential) GetAccessKeyId() (*string, error) { @@ -138,6 +155,9 @@ func (r *OIDCCredential) updateCredential() (err error) { if r.Policy != "" { request.QueryParams["Policy"] = r.Policy } + if r.RoleSessionExpiration > 0 { + request.QueryParams["DurationSeconds"] = strconv.Itoa(r.RoleSessionExpiration) + } request.QueryParams["RoleSessionName"] = r.RoleSessionName request.QueryParams["Version"] = "2015-04-01" request.QueryParams["SignatureNonce"] = utils.GetUUID() diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/credentials-go/credentials/rsa_key_pair_credential.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/credentials-go/credentials/rsa_key_pair_credential.go index de251568..82988eca 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/credentials-go/credentials/rsa_key_pair_credential.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/credentials-go/credentials/rsa_key_pair_credential.go @@ -42,6 +42,22 @@ func newRsaKeyPairCredential(privateKey, publicKeyId string, sessionExpiration i } } +func (e *RsaKeyPairCredential) GetCredential() (*CredentialModel, error) { + if e.sessionCredential == nil || e.needUpdateCredential() { + err := e.updateCredential() + if err != nil { + return nil, err + } + } + credential := &CredentialModel{ + AccessKeyId: tea.String(e.sessionCredential.AccessKeyId), + AccessKeySecret: tea.String(e.sessionCredential.AccessKeySecret), + SecurityToken: tea.String(e.sessionCredential.SecurityToken), + Type: tea.String("rsa_key_pair"), + } + return credential, nil +} + // GetAccessKeyId reutrns RsaKeyPairCredential's AccessKeyId // if AccessKeyId is not exist or out of date, the function will update it. func (r *RsaKeyPairCredential) GetAccessKeyId() (*string, error) { diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/credentials-go/credentials/sts_credential.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/credentials-go/credentials/sts_credential.go index ba07dab4..5a9973f2 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/credentials-go/credentials/sts_credential.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/credentials-go/credentials/sts_credential.go @@ -17,6 +17,16 @@ func newStsTokenCredential(accessKeyId, accessKeySecret, securityToken string) * } } +func (s *StsTokenCredential) GetCredential() (*CredentialModel, error) { + credential := &CredentialModel{ + AccessKeyId: tea.String(s.AccessKeyId), + AccessKeySecret: tea.String(s.AccessKeySecret), + SecurityToken: tea.String(s.SecurityToken), + Type: tea.String("sts"), + } + return credential, nil +} + // GetAccessKeyId reutrns StsTokenCredential's AccessKeyId func (s *StsTokenCredential) GetAccessKeyId() (*string, error) { return tea.String(s.AccessKeyId), nil diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/credentials-go/credentials/sts_role_arn_credential.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/credentials-go/credentials/sts_role_arn_credential.go index f6933bf5..3ddf32fa 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/credentials-go/credentials/sts_role_arn_credential.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/credentials-go/credentials/sts_role_arn_credential.go @@ -23,6 +23,7 @@ type RAMRoleArnCredential struct { RoleSessionName string RoleSessionExpiration int Policy string + ExternalId string sessionCredential *sessionCredential runtime *utils.Runtime } @@ -51,6 +52,36 @@ func newRAMRoleArnCredential(accessKeyId, accessKeySecret, roleArn, roleSessionN } } +func newRAMRoleArnWithExternalIdCredential(accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string, roleSessionExpiration int, externalId string, runtime *utils.Runtime) *RAMRoleArnCredential { + return &RAMRoleArnCredential{ + AccessKeyId: accessKeyId, + AccessKeySecret: accessKeySecret, + RoleArn: roleArn, + RoleSessionName: roleSessionName, + RoleSessionExpiration: roleSessionExpiration, + Policy: policy, + ExternalId: externalId, + credentialUpdater: new(credentialUpdater), + runtime: runtime, + } +} + +func (e *RAMRoleArnCredential) GetCredential() (*CredentialModel, error) { + if e.sessionCredential == nil || e.needUpdateCredential() { + err := e.updateCredential() + if err != nil { + return nil, err + } + } + credential := &CredentialModel{ + AccessKeyId: tea.String(e.sessionCredential.AccessKeyId), + AccessKeySecret: tea.String(e.sessionCredential.AccessKeySecret), + SecurityToken: tea.String(e.sessionCredential.SecurityToken), + Type: tea.String("ram_role_arn"), + } + return credential, nil +} + // GetAccessKeyId reutrns RamRoleArnCredential's AccessKeyId // if AccessKeyId is not exist or out of date, the function will update it. func (r *RAMRoleArnCredential) GetAccessKeyId() (*string, error) { @@ -125,6 +156,9 @@ func (r *RAMRoleArnCredential) updateCredential() (err error) { if r.Policy != "" { request.QueryParams["Policy"] = r.Policy } + if r.ExternalId != "" { + request.QueryParams["ExternalId"] = r.ExternalId + } request.QueryParams["RoleSessionName"] = r.RoleSessionName request.QueryParams["SignatureMethod"] = "HMAC-SHA1" request.QueryParams["SignatureVersion"] = "1.0" diff --git a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/credentials-go/credentials/uri_credential.go b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/credentials-go/credentials/uri_credential.go index e8f303fc..d03006c9 100644 --- a/src/bosh-alicloud-cpi/vendor/github.com/aliyun/credentials-go/credentials/uri_credential.go +++ b/src/bosh-alicloud-cpi/vendor/github.com/aliyun/credentials-go/credentials/uri_credential.go @@ -37,6 +37,22 @@ func newURLCredential(URL string) *URLCredential { } } +func (e *URLCredential) GetCredential() (*CredentialModel, error) { + if e.sessionCredential == nil || e.needUpdateCredential() { + err := e.updateCredential() + if err != nil { + return nil, err + } + } + credential := &CredentialModel{ + AccessKeyId: tea.String(e.sessionCredential.AccessKeyId), + AccessKeySecret: tea.String(e.sessionCredential.AccessKeySecret), + SecurityToken: tea.String(e.sessionCredential.SecurityToken), + Type: tea.String("credential_uri"), + } + return credential, nil +} + // GetAccessKeyId reutrns URLCredential's AccessKeyId // if AccessKeyId is not exist or out of date, the function will update it. func (e *URLCredential) GetAccessKeyId() (*string, error) { diff --git a/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/.travis.yml b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/.travis.yml new file mode 100644 index 00000000..9c861155 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/.travis.yml @@ -0,0 +1,4 @@ +language: go + +go: +- 1.x \ No newline at end of file diff --git a/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/LICENSE b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/LICENSE new file mode 100644 index 00000000..1ada8807 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/LICENSE @@ -0,0 +1,22 @@ +Copyright (c) 2012-2021 Charles Banning . All rights reserved. + +The MIT License (MIT) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + diff --git a/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/anyxml.go b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/anyxml.go new file mode 100644 index 00000000..63970ee2 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/anyxml.go @@ -0,0 +1,201 @@ +package mxj + +import ( + "bytes" + "encoding/xml" + "reflect" +) + +const ( + DefaultElementTag = "element" +) + +// Encode arbitrary value as XML. +// +// Note: unmarshaling the resultant +// XML may not return the original value, since tag labels may have been injected +// to create the XML representation of the value. +/* + Encode an arbitrary JSON object. + package main + + import ( + "encoding/json" + "fmt" + "github.com/clbanning/mxj" + ) + + func main() { + jsondata := []byte(`[ + { "somekey":"somevalue" }, + "string", + 3.14159265, + true + ]`) + var i interface{} + err := json.Unmarshal(jsondata, &i) + if err != nil { + // do something + } + x, err := mxj.AnyXmlIndent(i, "", " ", "mydoc") + if err != nil { + // do something else + } + fmt.Println(string(x)) + } + + output: + + somevalue + string + 3.14159265 + true + + +An extreme example is available in examples/goofy_map.go. +*/ +// Alternative values for DefaultRootTag and DefaultElementTag can be set as: +// AnyXml( v, myRootTag, myElementTag). +func AnyXml(v interface{}, tags ...string) ([]byte, error) { + var rt, et string + if len(tags) == 1 || len(tags) == 2 { + rt = tags[0] + } else { + rt = DefaultRootTag + } + if len(tags) == 2 { + et = tags[1] + } else { + et = DefaultElementTag + } + + if v == nil { + if useGoXmlEmptyElemSyntax { + return []byte("<" + rt + ">"), nil + } + return []byte("<" + rt + "/>"), nil + } + if reflect.TypeOf(v).Kind() == reflect.Struct { + return xml.Marshal(v) + } + + var err error + s := new(bytes.Buffer) + p := new(pretty) + + var b []byte + switch v.(type) { + case []interface{}: + if _, err = s.WriteString("<" + rt + ">"); err != nil { + return nil, err + } + for _, vv := range v.([]interface{}) { + switch vv.(type) { + case map[string]interface{}: + m := vv.(map[string]interface{}) + if len(m) == 1 { + for tag, val := range m { + err = marshalMapToXmlIndent(false, s, tag, val, p) + } + } else { + err = marshalMapToXmlIndent(false, s, et, vv, p) + } + default: + err = marshalMapToXmlIndent(false, s, et, vv, p) + } + if err != nil { + break + } + } + if _, err = s.WriteString(""); err != nil { + return nil, err + } + b = s.Bytes() + case map[string]interface{}: + m := Map(v.(map[string]interface{})) + b, err = m.Xml(rt) + default: + err = marshalMapToXmlIndent(false, s, rt, v, p) + b = s.Bytes() + } + + return b, err +} + +// Encode an arbitrary value as a pretty XML string. +// Alternative values for DefaultRootTag and DefaultElementTag can be set as: +// AnyXmlIndent( v, "", " ", myRootTag, myElementTag). +func AnyXmlIndent(v interface{}, prefix, indent string, tags ...string) ([]byte, error) { + var rt, et string + if len(tags) == 1 || len(tags) == 2 { + rt = tags[0] + } else { + rt = DefaultRootTag + } + if len(tags) == 2 { + et = tags[1] + } else { + et = DefaultElementTag + } + + if v == nil { + if useGoXmlEmptyElemSyntax { + return []byte(prefix + "<" + rt + ">"), nil + } + return []byte(prefix + "<" + rt + "/>"), nil + } + if reflect.TypeOf(v).Kind() == reflect.Struct { + return xml.MarshalIndent(v, prefix, indent) + } + + var err error + s := new(bytes.Buffer) + p := new(pretty) + p.indent = indent + p.padding = prefix + + var b []byte + switch v.(type) { + case []interface{}: + if _, err = s.WriteString("<" + rt + ">\n"); err != nil { + return nil, err + } + p.Indent() + for _, vv := range v.([]interface{}) { + switch vv.(type) { + case map[string]interface{}: + m := vv.(map[string]interface{}) + if len(m) == 1 { + for tag, val := range m { + err = marshalMapToXmlIndent(true, s, tag, val, p) + } + } else { + p.start = 1 // we 1 tag in + err = marshalMapToXmlIndent(true, s, et, vv, p) + // *s += "\n" + if _, err = s.WriteString("\n"); err != nil { + return nil, err + } + } + default: + p.start = 0 // in case trailing p.start = 1 + err = marshalMapToXmlIndent(true, s, et, vv, p) + } + if err != nil { + break + } + } + if _, err = s.WriteString(``); err != nil { + return nil, err + } + b = s.Bytes() + case map[string]interface{}: + m := Map(v.(map[string]interface{})) + b, err = m.XmlIndent(prefix, indent, rt) + default: + err = marshalMapToXmlIndent(true, s, rt, v, p) + b = s.Bytes() + } + + return b, err +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/atomFeedString.xml b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/atomFeedString.xml new file mode 100644 index 00000000..474575a4 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/atomFeedString.xml @@ -0,0 +1,54 @@ + +Code Review - My issueshttp://codereview.appspot.com/rietveld<>rietveld: an attempt at pubsubhubbub +2009-10-04T01:35:58+00:00email-address-removedurn:md5:134d9179c41f806be79b3a5f7877d19a + An attempt at adding pubsubhubbub support to Rietveld. +http://code.google.com/p/pubsubhubbub +http://code.google.com/p/rietveld/issues/detail?id=155 + +The server side of the protocol is trivial: + 1. add a &lt;link rel=&quot;hub&quot; href=&quot;hub-server&quot;&gt; tag to all + feeds that will be pubsubhubbubbed. + 2. every time one of those feeds changes, tell the hub + with a simple POST request. + +I have tested this by adding debug prints to a local hub +server and checking that the server got the right publish +requests. + +I can&#39;t quite get the server to work, but I think the bug +is not in my code. I think that the server expects to be +able to grab the feed and see the feed&#39;s actual URL in +the link rel=&quot;self&quot;, but the default value for that drops +the :port from the URL, and I cannot for the life of me +figure out how to get the Atom generator deep inside +django not to do that, or even where it is doing that, +or even what code is running to generate the Atom feed. +(I thought I knew but I added some assert False statements +and it kept running!) + +Ignoring that particular problem, I would appreciate +feedback on the right way to get the two values at +the top of feeds.py marked NOTE(rsc). + + +rietveld: correct tab handling +2009-10-03T23:02:17+00:00email-address-removedurn:md5:0a2a4f19bb815101f0ba2904aed7c35a + This fixes the buggy tab rendering that can be seen at +http://codereview.appspot.com/116075/diff/1/2 + +The fundamental problem was that the tab code was +not being told what column the text began in, so it +didn&#39;t know where to put the tab stops. Another problem +was that some of the code assumed that string byte +offsets were the same as column offsets, which is only +true if there are no tabs. + +In the process of fixing this, I cleaned up the arguments +to Fold and ExpandTabs and renamed them Break and +_ExpandTabs so that I could be sure that I found all the +call sites. I also wanted to verify that ExpandTabs was +not being used from outside intra_region_diff.py. + + + ` + diff --git a/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/doc.go b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/doc.go new file mode 100644 index 00000000..bede3126 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/doc.go @@ -0,0 +1,138 @@ +// mxj - A collection of map[string]interface{} and associated XML and JSON utilities. +// Copyright 2012-2019, Charles Banning. All rights reserved. +// Use of this source code is governed by a MIT-style +// license that can be found in the LICENSE file + +/* +Marshal/Unmarshal XML to/from map[string]interface{} values (and JSON); extract/modify values from maps by key or key-path, including wildcards. + +mxj supplants the legacy x2j and j2x packages. The subpackage x2j-wrapper is provided to facilitate migrating from the x2j package. The x2j and j2x subpackages provide similar functionality of the old packages but are not function-name compatible with them. + +Note: this library was designed for processing ad hoc anonymous messages. Bulk processing large data sets may be much more efficiently performed using the encoding/xml or encoding/json packages from Go's standard library directly. + +Related Packages: + checkxml: github.com/clbanning/checkxml provides functions for validating XML data. + +Notes: + 2020.05.01: v2.2 - optimize map to XML encoding for large XML docs. + 2019.07.04: v2.0 - remove unnecessary methods - mv.XmlWriterRaw, mv.XmlIndentWriterRaw - for Map and MapSeq. + 2019.07.04: Add MapSeq type and move associated functions and methods from Map to MapSeq. + 2019.01.21: DecodeSimpleValuesAsMap - decode to map[:map["#text":]] rather than map[:]. + 2018.04.18: mv.Xml/mv.XmlIndent encodes non-map[string]interface{} map values - map[string]string, map[int]uint, etc. + 2018.03.29: mv.Gob/NewMapGob support gob encoding/decoding of Maps. + 2018.03.26: Added mxj/x2j-wrapper sub-package for migrating from legacy x2j package. + 2017.02.22: LeafNode paths can use ".N" syntax rather than "[N]" for list member indexing. + 2017.02.21: github.com/clbanning/checkxml provides functions for validating XML data. + 2017.02.10: SetFieldSeparator changes field separator for args in UpdateValuesForPath, ValuesFor... methods. + 2017.02.06: Support XMPP stream processing - HandleXMPPStreamTag(). + 2016.11.07: Preserve name space prefix syntax in XmlSeq parser - NewMapXmlSeq(), etc. + 2016.06.25: Support overriding default XML attribute prefix, "-", in Map keys - SetAttrPrefix(). + 2016.05.26: Support customization of xml.Decoder by exposing CustomDecoder variable. + 2016.03.19: Escape invalid chars when encoding XML attribute and element values - XMLEscapeChars(). + 2016.03.02: By default decoding XML with float64 and bool value casting will not cast "NaN", "Inf", and "-Inf". + To cast them to float64, first set flag with CastNanInf(true). + 2016.02.22: New mv.Root(), mv.Elements(), mv.Attributes methods let you examine XML document structure. + 2016.02.16: Add CoerceKeysToLower() option to handle tags with mixed capitalization. + 2016.02.12: Seek for first xml.StartElement token; only return error if io.EOF is reached first (handles BOM). + 2015-12-02: NewMapXmlSeq() with mv.XmlSeq() & co. will try to preserve structure of XML doc when re-encoding. + 2014-08-02: AnyXml() and AnyXmlIndent() will try to marshal arbitrary values to XML. + +SUMMARY + + type Map map[string]interface{} + + Create a Map value, 'mv', from any map[string]interface{} value, 'v': + mv := Map(v) + + Unmarshal / marshal XML as a Map value, 'mv': + mv, err := NewMapXml(xmlValue) // unmarshal + xmlValue, err := mv.Xml() // marshal + + Unmarshal XML from an io.Reader as a Map value, 'mv': + mv, err := NewMapXmlReader(xmlReader) // repeated calls, as with an os.File Reader, will process stream + mv, raw, err := NewMapXmlReaderRaw(xmlReader) // 'raw' is the raw XML that was decoded + + Marshal Map value, 'mv', to an XML Writer (io.Writer): + err := mv.XmlWriter(xmlWriter) + raw, err := mv.XmlWriterRaw(xmlWriter) // 'raw' is the raw XML that was written on xmlWriter + + Also, for prettified output: + xmlValue, err := mv.XmlIndent(prefix, indent, ...) + err := mv.XmlIndentWriter(xmlWriter, prefix, indent, ...) + raw, err := mv.XmlIndentWriterRaw(xmlWriter, prefix, indent, ...) + + Bulk process XML with error handling (note: handlers must return a boolean value): + err := HandleXmlReader(xmlReader, mapHandler(Map), errHandler(error)) + err := HandleXmlReaderRaw(xmlReader, mapHandler(Map, []byte), errHandler(error, []byte)) + + Converting XML to JSON: see Examples for NewMapXml and HandleXmlReader. + + There are comparable functions and methods for JSON processing. + + Arbitrary structure values can be decoded to / encoded from Map values: + mv, err := NewMapStruct(structVal) + err := mv.Struct(structPointer) + + To work with XML tag values, JSON or Map key values or structure field values, decode the XML, JSON + or structure to a Map value, 'mv', or cast a map[string]interface{} value to a Map value, 'mv', then: + paths := mv.PathsForKey(key) + path := mv.PathForKeyShortest(key) + values, err := mv.ValuesForKey(key, subkeys) + values, err := mv.ValuesForPath(path, subkeys) // 'path' can be dot-notation with wildcards and indexed arrays. + count, err := mv.UpdateValuesForPath(newVal, path, subkeys) + + Get everything at once, irrespective of path depth: + leafnodes := mv.LeafNodes() + leafvalues := mv.LeafValues() + + A new Map with whatever keys are desired can be created from the current Map and then encoded in XML + or JSON. (Note: keys can use dot-notation. 'oldKey' can also use wildcards and indexed arrays.) + newMap, err := mv.NewMap("oldKey_1:newKey_1", "oldKey_2:newKey_2", ..., "oldKey_N:newKey_N") + newMap, err := mv.NewMap("oldKey1", "oldKey3", "oldKey5") // a subset of 'mv'; see "examples/partial.go" + newXml, err := newMap.Xml() // for example + newJson, err := newMap.Json() // ditto + +XML PARSING CONVENTIONS + + Using NewMapXml() + + - Attributes are parsed to `map[string]interface{}` values by prefixing a hyphen, `-`, + to the attribute label. (Unless overridden by `PrependAttrWithHyphen(false)` or + `SetAttrPrefix()`.) + - If the element is a simple element and has attributes, the element value + is given the key `#text` for its `map[string]interface{}` representation. (See + the 'atomFeedString.xml' test data, below.) + - XML comments, directives, and process instructions are ignored. + - If CoerceKeysToLower() has been called, then the resultant keys will be lower case. + + Using NewMapXmlSeq() + + - Attributes are parsed to `map["#attr"]map[]map[string]interface{}`values + where the `` value has "#text" and "#seq" keys - the "#text" key holds the + value for ``. + - All elements, except for the root, have a "#seq" key. + - Comments, directives, and process instructions are unmarshalled into the Map using the + keys "#comment", "#directive", and "#procinst", respectively. (See documentation for more + specifics.) + - Name space syntax is preserved: + - something parses to map["ns:key"]interface{}{"something"} + - xmlns:ns="http://myns.com/ns" parses to map["xmlns:ns"]interface{}{"http://myns.com/ns"} + + Both + + - By default, "Nan", "Inf", and "-Inf" values are not cast to float64. If you want them + to be cast, set a flag to cast them using CastNanInf(true). + +XML ENCODING CONVENTIONS + + - 'nil' Map values, which may represent 'null' JSON values, are encoded as "". + NOTE: the operation is not symmetric as "" elements are decoded as 'tag:""' Map values, + which, then, encode in JSON as '"tag":""' values.. + - ALSO: there is no guarantee that the encoded XML doc will be the same as the decoded one. (Go + randomizes the walk through map[string]interface{} values.) If you plan to re-encode the + Map value to XML and want the same sequencing of elements look at NewMapXmlSeq() and + mv.XmlSeq() - these try to preserve the element sequencing but with added complexity when + working with the Map representation. + +*/ +package mxj diff --git a/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/escapechars.go b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/escapechars.go new file mode 100644 index 00000000..eeb3d250 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/escapechars.go @@ -0,0 +1,93 @@ +// Copyright 2016 Charles Banning. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file + +package mxj + +import ( + "bytes" +) + +var xmlEscapeChars bool + +// XMLEscapeChars(true) forces escaping invalid characters in attribute and element values. +// NOTE: this is brute force with NO interrogation of '&' being escaped already; if it is +// then '&' will be re-escaped as '&amp;'. +// +/* + The values are: + " " + ' ' + < < + > > + & & +*/ +// +// Note: if XMLEscapeCharsDecoder(true) has been called - or the default, 'false,' value +// has been toggled to 'true' - then XMLEscapeChars(true) is ignored. If XMLEscapeChars(true) +// has already been called before XMLEscapeCharsDecoder(true), XMLEscapeChars(false) is called +// to turn escape encoding on mv.Xml, etc., to prevent double escaping ampersands, '&'. +func XMLEscapeChars(b ...bool) { + var bb bool + if len(b) == 0 { + bb = !xmlEscapeChars + } else { + bb = b[0] + } + if bb == true && xmlEscapeCharsDecoder == false { + xmlEscapeChars = true + } else { + xmlEscapeChars = false + } +} + +// Scan for '&' first, since 's' may contain "&" that is parsed to "&amp;" +// - or "<" that is parsed to "&lt;". +var escapechars = [][2][]byte{ + {[]byte(`&`), []byte(`&`)}, + {[]byte(`<`), []byte(`<`)}, + {[]byte(`>`), []byte(`>`)}, + {[]byte(`"`), []byte(`"`)}, + {[]byte(`'`), []byte(`'`)}, +} + +func escapeChars(s string) string { + if len(s) == 0 { + return s + } + + b := []byte(s) + for _, v := range escapechars { + n := bytes.Count(b, v[0]) + if n == 0 { + continue + } + b = bytes.Replace(b, v[0], v[1], n) + } + return string(b) +} + +// per issue #84, escape CharData values from xml.Decoder + +var xmlEscapeCharsDecoder bool + +// XMLEscapeCharsDecoder(b ...bool) escapes XML characters in xml.CharData values +// returned by Decoder.Token. Thus, the internal Map values will contain escaped +// values, and you do not need to set XMLEscapeChars for proper encoding. +// +// By default, the Map values have the non-escaped values returned by Decoder.Token. +// XMLEscapeCharsDecoder(true) - or, XMLEscapeCharsDecoder() - will toggle escape +// encoding 'on.' +// +// Note: if XMLEscapeCharDecoder(true) is call then XMLEscapeChars(false) is +// called to prevent re-escaping the values on encoding using mv.Xml, etc. +func XMLEscapeCharsDecoder(b ...bool) { + if len(b) == 0 { + xmlEscapeCharsDecoder = !xmlEscapeCharsDecoder + } else { + xmlEscapeCharsDecoder = b[0] + } + if xmlEscapeCharsDecoder == true && xmlEscapeChars == true { + xmlEscapeChars = false + } +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/exists.go b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/exists.go new file mode 100644 index 00000000..07aeda43 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/exists.go @@ -0,0 +1,9 @@ +package mxj + +// Checks whether the path exists. If err != nil then 'false' is returned +// along with the error encountered parsing either the "path" or "subkeys" +// argument. +func (mv Map) Exists(path string, subkeys ...string) (bool, error) { + v, err := mv.ValuesForPath(path, subkeys...) + return (err == nil && len(v) > 0), err +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/files.go b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/files.go new file mode 100644 index 00000000..27e06e1e --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/files.go @@ -0,0 +1,287 @@ +package mxj + +import ( + "fmt" + "io" + "os" +) + +type Maps []Map + +func NewMaps() Maps { + return make(Maps, 0) +} + +type MapRaw struct { + M Map + R []byte +} + +// NewMapsFromXmlFile - creates an array from a file of JSON values. +func NewMapsFromJsonFile(name string) (Maps, error) { + fi, err := os.Stat(name) + if err != nil { + return nil, err + } + if !fi.Mode().IsRegular() { + return nil, fmt.Errorf("file %s is not a regular file", name) + } + + fh, err := os.Open(name) + if err != nil { + return nil, err + } + defer fh.Close() + + am := make([]Map, 0) + for { + m, raw, err := NewMapJsonReaderRaw(fh) + if err != nil && err != io.EOF { + return am, fmt.Errorf("error: %s - reading: %s", err.Error(), string(raw)) + } + if len(m) > 0 { + am = append(am, m) + } + if err == io.EOF { + break + } + } + return am, nil +} + +// ReadMapsFromJsonFileRaw - creates an array of MapRaw from a file of JSON values. +func NewMapsFromJsonFileRaw(name string) ([]MapRaw, error) { + fi, err := os.Stat(name) + if err != nil { + return nil, err + } + if !fi.Mode().IsRegular() { + return nil, fmt.Errorf("file %s is not a regular file", name) + } + + fh, err := os.Open(name) + if err != nil { + return nil, err + } + defer fh.Close() + + am := make([]MapRaw, 0) + for { + mr := new(MapRaw) + mr.M, mr.R, err = NewMapJsonReaderRaw(fh) + if err != nil && err != io.EOF { + return am, fmt.Errorf("error: %s - reading: %s", err.Error(), string(mr.R)) + } + if len(mr.M) > 0 { + am = append(am, *mr) + } + if err == io.EOF { + break + } + } + return am, nil +} + +// NewMapsFromXmlFile - creates an array from a file of XML values. +func NewMapsFromXmlFile(name string) (Maps, error) { + fi, err := os.Stat(name) + if err != nil { + return nil, err + } + if !fi.Mode().IsRegular() { + return nil, fmt.Errorf("file %s is not a regular file", name) + } + + fh, err := os.Open(name) + if err != nil { + return nil, err + } + defer fh.Close() + + am := make([]Map, 0) + for { + m, raw, err := NewMapXmlReaderRaw(fh) + if err != nil && err != io.EOF { + return am, fmt.Errorf("error: %s - reading: %s", err.Error(), string(raw)) + } + if len(m) > 0 { + am = append(am, m) + } + if err == io.EOF { + break + } + } + return am, nil +} + +// NewMapsFromXmlFileRaw - creates an array of MapRaw from a file of XML values. +// NOTE: the slice with the raw XML is clean with no extra capacity - unlike NewMapXmlReaderRaw(). +// It is slow at parsing a file from disk and is intended for relatively small utility files. +func NewMapsFromXmlFileRaw(name string) ([]MapRaw, error) { + fi, err := os.Stat(name) + if err != nil { + return nil, err + } + if !fi.Mode().IsRegular() { + return nil, fmt.Errorf("file %s is not a regular file", name) + } + + fh, err := os.Open(name) + if err != nil { + return nil, err + } + defer fh.Close() + + am := make([]MapRaw, 0) + for { + mr := new(MapRaw) + mr.M, mr.R, err = NewMapXmlReaderRaw(fh) + if err != nil && err != io.EOF { + return am, fmt.Errorf("error: %s - reading: %s", err.Error(), string(mr.R)) + } + if len(mr.M) > 0 { + am = append(am, *mr) + } + if err == io.EOF { + break + } + } + return am, nil +} + +// ------------------------ Maps writing ------------------------- +// These are handy-dandy methods for dumping configuration data, etc. + +// JsonString - analogous to mv.Json() +func (mvs Maps) JsonString(safeEncoding ...bool) (string, error) { + var s string + for _, v := range mvs { + j, err := v.Json() + if err != nil { + return s, err + } + s += string(j) + } + return s, nil +} + +// JsonStringIndent - analogous to mv.JsonIndent() +func (mvs Maps) JsonStringIndent(prefix, indent string, safeEncoding ...bool) (string, error) { + var s string + var haveFirst bool + for _, v := range mvs { + j, err := v.JsonIndent(prefix, indent) + if err != nil { + return s, err + } + if haveFirst { + s += "\n" + } else { + haveFirst = true + } + s += string(j) + } + return s, nil +} + +// XmlString - analogous to mv.Xml() +func (mvs Maps) XmlString() (string, error) { + var s string + for _, v := range mvs { + x, err := v.Xml() + if err != nil { + return s, err + } + s += string(x) + } + return s, nil +} + +// XmlStringIndent - analogous to mv.XmlIndent() +func (mvs Maps) XmlStringIndent(prefix, indent string) (string, error) { + var s string + for _, v := range mvs { + x, err := v.XmlIndent(prefix, indent) + if err != nil { + return s, err + } + s += string(x) + } + return s, nil +} + +// JsonFile - write Maps to named file as JSON +// Note: the file will be created, if necessary; if it exists it will be truncated. +// If you need to append to a file, open it and use JsonWriter method. +func (mvs Maps) JsonFile(file string, safeEncoding ...bool) error { + var encoding bool + if len(safeEncoding) == 1 { + encoding = safeEncoding[0] + } + s, err := mvs.JsonString(encoding) + if err != nil { + return err + } + fh, err := os.Create(file) + if err != nil { + return err + } + defer fh.Close() + fh.WriteString(s) + return nil +} + +// JsonFileIndent - write Maps to named file as pretty JSON +// Note: the file will be created, if necessary; if it exists it will be truncated. +// If you need to append to a file, open it and use JsonIndentWriter method. +func (mvs Maps) JsonFileIndent(file, prefix, indent string, safeEncoding ...bool) error { + var encoding bool + if len(safeEncoding) == 1 { + encoding = safeEncoding[0] + } + s, err := mvs.JsonStringIndent(prefix, indent, encoding) + if err != nil { + return err + } + fh, err := os.Create(file) + if err != nil { + return err + } + defer fh.Close() + fh.WriteString(s) + return nil +} + +// XmlFile - write Maps to named file as XML +// Note: the file will be created, if necessary; if it exists it will be truncated. +// If you need to append to a file, open it and use XmlWriter method. +func (mvs Maps) XmlFile(file string) error { + s, err := mvs.XmlString() + if err != nil { + return err + } + fh, err := os.Create(file) + if err != nil { + return err + } + defer fh.Close() + fh.WriteString(s) + return nil +} + +// XmlFileIndent - write Maps to named file as pretty XML +// Note: the file will be created,if necessary; if it exists it will be truncated. +// If you need to append to a file, open it and use XmlIndentWriter method. +func (mvs Maps) XmlFileIndent(file, prefix, indent string) error { + s, err := mvs.XmlStringIndent(prefix, indent) + if err != nil { + return err + } + fh, err := os.Create(file) + if err != nil { + return err + } + defer fh.Close() + fh.WriteString(s) + return nil +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/files_test.badjson b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/files_test.badjson new file mode 100644 index 00000000..d1872004 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/files_test.badjson @@ -0,0 +1,2 @@ +{ "this":"is", "a":"test", "file":"for", "files_test.go":"case" } +{ "with":"some", "bad":JSON, "in":"it" } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/files_test.badxml b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/files_test.badxml new file mode 100644 index 00000000..4736ef97 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/files_test.badxml @@ -0,0 +1,9 @@ + + test + for files.go + + + some + doc + test case + diff --git a/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/files_test.json b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/files_test.json new file mode 100644 index 00000000..e9a3ddf4 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/files_test.json @@ -0,0 +1,2 @@ +{ "this":"is", "a":"test", "file":"for", "files_test.go":"case" } +{ "with":"just", "two":2, "JSON":"values", "true":true } diff --git a/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/files_test.xml b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/files_test.xml new file mode 100644 index 00000000..65cf021f --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/files_test.xml @@ -0,0 +1,9 @@ + + test + for files.go + + + some + doc + test case + diff --git a/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/files_test_dup.json b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/files_test_dup.json new file mode 100644 index 00000000..2becb6a4 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/files_test_dup.json @@ -0,0 +1 @@ +{"a":"test","file":"for","files_test.go":"case","this":"is"}{"JSON":"values","true":true,"two":2,"with":"just"} \ No newline at end of file diff --git a/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/files_test_dup.xml b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/files_test_dup.xml new file mode 100644 index 00000000..f68d22e2 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/files_test_dup.xml @@ -0,0 +1 @@ +for files.gotestdoctest casesome \ No newline at end of file diff --git a/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/files_test_indent.json b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/files_test_indent.json new file mode 100644 index 00000000..6fde1563 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/files_test_indent.json @@ -0,0 +1,12 @@ +{ + "a": "test", + "file": "for", + "files_test.go": "case", + "this": "is" +} +{ + "JSON": "values", + "true": true, + "two": 2, + "with": "just" +} \ No newline at end of file diff --git a/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/files_test_indent.xml b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/files_test_indent.xml new file mode 100644 index 00000000..8c91a1dc --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/files_test_indent.xml @@ -0,0 +1,8 @@ + + for files.go + test + + doc + test case + some + \ No newline at end of file diff --git a/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/gob.go b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/gob.go new file mode 100644 index 00000000..d56c2fd6 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/gob.go @@ -0,0 +1,35 @@ +// gob.go - Encode/Decode a Map into a gob object. + +package mxj + +import ( + "bytes" + "encoding/gob" +) + +// NewMapGob returns a Map value for a gob object that has been +// encoded from a map[string]interface{} (or compatible type) value. +// It is intended to provide symmetric handling of Maps that have +// been encoded using mv.Gob. +func NewMapGob(gobj []byte) (Map, error) { + m := make(map[string]interface{}, 0) + if len(gobj) == 0 { + return m, nil + } + r := bytes.NewReader(gobj) + dec := gob.NewDecoder(r) + if err := dec.Decode(&m); err != nil { + return m, err + } + return m, nil +} + +// Gob returns a gob-encoded value for the Map 'mv'. +func (mv Map) Gob() ([]byte, error) { + var buf bytes.Buffer + enc := gob.NewEncoder(&buf) + if err := enc.Encode(map[string]interface{}(mv)); err != nil { + return nil, err + } + return buf.Bytes(), nil +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/json.go b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/json.go new file mode 100644 index 00000000..eb2c05a1 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/json.go @@ -0,0 +1,323 @@ +// Copyright 2012-2014 Charles Banning. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file + +package mxj + +import ( + "bytes" + "encoding/json" + "fmt" + "io" + "time" +) + +// ------------------------------ write JSON ----------------------- + +// Just a wrapper on json.Marshal. +// If option safeEncoding is'true' then safe encoding of '<', '>' and '&' +// is preserved. (see encoding/json#Marshal, encoding/json#Encode) +func (mv Map) Json(safeEncoding ...bool) ([]byte, error) { + var s bool + if len(safeEncoding) == 1 { + s = safeEncoding[0] + } + + b, err := json.Marshal(mv) + + if !s { + b = bytes.Replace(b, []byte("\\u003c"), []byte("<"), -1) + b = bytes.Replace(b, []byte("\\u003e"), []byte(">"), -1) + b = bytes.Replace(b, []byte("\\u0026"), []byte("&"), -1) + } + return b, err +} + +// Just a wrapper on json.MarshalIndent. +// If option safeEncoding is'true' then safe encoding of '<' , '>' and '&' +// is preserved. (see encoding/json#Marshal, encoding/json#Encode) +func (mv Map) JsonIndent(prefix, indent string, safeEncoding ...bool) ([]byte, error) { + var s bool + if len(safeEncoding) == 1 { + s = safeEncoding[0] + } + + b, err := json.MarshalIndent(mv, prefix, indent) + if !s { + b = bytes.Replace(b, []byte("\\u003c"), []byte("<"), -1) + b = bytes.Replace(b, []byte("\\u003e"), []byte(">"), -1) + b = bytes.Replace(b, []byte("\\u0026"), []byte("&"), -1) + } + return b, err +} + +// The following implementation is provided for symmetry with NewMapJsonReader[Raw] +// The names will also provide a key for the number of return arguments. + +// Writes the Map as JSON on the Writer. +// If 'safeEncoding' is 'true', then "safe" encoding of '<', '>' and '&' is preserved. +func (mv Map) JsonWriter(jsonWriter io.Writer, safeEncoding ...bool) error { + b, err := mv.Json(safeEncoding...) + if err != nil { + return err + } + + _, err = jsonWriter.Write(b) + return err +} + +// Writes the Map as JSON on the Writer. []byte is the raw JSON that was written. +// If 'safeEncoding' is 'true', then "safe" encoding of '<', '>' and '&' is preserved. +func (mv Map) JsonWriterRaw(jsonWriter io.Writer, safeEncoding ...bool) ([]byte, error) { + b, err := mv.Json(safeEncoding...) + if err != nil { + return b, err + } + + _, err = jsonWriter.Write(b) + return b, err +} + +// Writes the Map as pretty JSON on the Writer. +// If 'safeEncoding' is 'true', then "safe" encoding of '<', '>' and '&' is preserved. +func (mv Map) JsonIndentWriter(jsonWriter io.Writer, prefix, indent string, safeEncoding ...bool) error { + b, err := mv.JsonIndent(prefix, indent, safeEncoding...) + if err != nil { + return err + } + + _, err = jsonWriter.Write(b) + return err +} + +// Writes the Map as pretty JSON on the Writer. []byte is the raw JSON that was written. +// If 'safeEncoding' is 'true', then "safe" encoding of '<', '>' and '&' is preserved. +func (mv Map) JsonIndentWriterRaw(jsonWriter io.Writer, prefix, indent string, safeEncoding ...bool) ([]byte, error) { + b, err := mv.JsonIndent(prefix, indent, safeEncoding...) + if err != nil { + return b, err + } + + _, err = jsonWriter.Write(b) + return b, err +} + +// --------------------------- read JSON ----------------------------- + +// Decode numericvalues as json.Number type Map values - see encoding/json#Number. +// NOTE: this is for decoding JSON into a Map with NewMapJson(), NewMapJsonReader(), +// etc.; it does not affect NewMapXml(), etc. The XML encoders mv.Xml() and mv.XmlIndent() +// do recognize json.Number types; a JSON object can be decoded to a Map with json.Number +// value types and the resulting Map can be correctly encoded into a XML object. +var JsonUseNumber bool + +// Just a wrapper on json.Unmarshal +// Converting JSON to XML is a simple as: +// ... +// mapVal, merr := mxj.NewMapJson(jsonVal) +// if merr != nil { +// // handle error +// } +// xmlVal, xerr := mapVal.Xml() +// if xerr != nil { +// // handle error +// } +// NOTE: as a special case, passing a list, e.g., [{"some-null-value":"", "a-non-null-value":"bar"}], +// will be interpreted as having the root key 'object' prepended - {"object":[ ... ]} - to unmarshal to a Map. +// See mxj/j2x/j2x_test.go. +func NewMapJson(jsonVal []byte) (Map, error) { + // empty or nil begets empty + if len(jsonVal) == 0 { + m := make(map[string]interface{}, 0) + return m, nil + } + // handle a goofy case ... + if jsonVal[0] == '[' { + jsonVal = []byte(`{"object":` + string(jsonVal) + `}`) + } + m := make(map[string]interface{}) + // err := json.Unmarshal(jsonVal, &m) + buf := bytes.NewReader(jsonVal) + dec := json.NewDecoder(buf) + if JsonUseNumber { + dec.UseNumber() + } + err := dec.Decode(&m) + return m, err +} + +// Retrieve a Map value from an io.Reader. +// NOTE: The raw JSON off the reader is buffered to []byte using a ByteReader. If the io.Reader is an +// os.File, there may be significant performance impact. If the io.Reader is wrapping a []byte +// value in-memory, however, such as http.Request.Body you CAN use it to efficiently unmarshal +// a JSON object. +func NewMapJsonReader(jsonReader io.Reader) (Map, error) { + jb, err := getJson(jsonReader) + if err != nil || len(*jb) == 0 { + return nil, err + } + + // Unmarshal the 'presumed' JSON string + return NewMapJson(*jb) +} + +// Retrieve a Map value and raw JSON - []byte - from an io.Reader. +// NOTE: The raw JSON off the reader is buffered to []byte using a ByteReader. If the io.Reader is an +// os.File, there may be significant performance impact. If the io.Reader is wrapping a []byte +// value in-memory, however, such as http.Request.Body you CAN use it to efficiently unmarshal +// a JSON object and retrieve the raw JSON in a single call. +func NewMapJsonReaderRaw(jsonReader io.Reader) (Map, []byte, error) { + jb, err := getJson(jsonReader) + if err != nil || len(*jb) == 0 { + return nil, *jb, err + } + + // Unmarshal the 'presumed' JSON string + m, merr := NewMapJson(*jb) + return m, *jb, merr +} + +// Pull the next JSON string off the stream: just read from first '{' to its closing '}'. +// Returning a pointer to the slice saves 16 bytes - maybe unnecessary, but internal to package. +func getJson(rdr io.Reader) (*[]byte, error) { + bval := make([]byte, 1) + jb := make([]byte, 0) + var inQuote, inJson bool + var parenCnt int + var previous byte + + // scan the input for a matched set of {...} + // json.Unmarshal will handle syntax checking. + for { + _, err := rdr.Read(bval) + if err != nil { + if err == io.EOF && inJson && parenCnt > 0 { + return &jb, fmt.Errorf("no closing } for JSON string: %s", string(jb)) + } + return &jb, err + } + switch bval[0] { + case '{': + if !inQuote { + parenCnt++ + inJson = true + } + case '}': + if !inQuote { + parenCnt-- + } + if parenCnt < 0 { + return nil, fmt.Errorf("closing } without opening {: %s", string(jb)) + } + case '"': + if inQuote { + if previous == '\\' { + break + } + inQuote = false + } else { + inQuote = true + } + case '\n', '\r', '\t', ' ': + if !inQuote { + continue + } + } + if inJson { + jb = append(jb, bval[0]) + if parenCnt == 0 { + break + } + } + previous = bval[0] + } + + return &jb, nil +} + +// ------------------------------- JSON Reader handler via Map values ----------------------- + +// Default poll delay to keep Handler from spinning on an open stream +// like sitting on os.Stdin waiting for imput. +var jhandlerPollInterval = time.Duration(1e6) + +// While unnecessary, we make HandleJsonReader() have the same signature as HandleXmlReader(). +// This avoids treating one or other as a special case and discussing the underlying stdlib logic. + +// Bulk process JSON using handlers that process a Map value. +// 'rdr' is an io.Reader for the JSON (stream). +// 'mapHandler' is the Map processing handler. Return of 'false' stops io.Reader processing. +// 'errHandler' is the error processor. Return of 'false' stops io.Reader processing and returns the error. +// Note: mapHandler() and errHandler() calls are blocking, so reading and processing of messages is serialized. +// This means that you can stop reading the file on error or after processing a particular message. +// To have reading and handling run concurrently, pass argument to a go routine in handler and return 'true'. +func HandleJsonReader(jsonReader io.Reader, mapHandler func(Map) bool, errHandler func(error) bool) error { + var n int + for { + m, merr := NewMapJsonReader(jsonReader) + n++ + + // handle error condition with errhandler + if merr != nil && merr != io.EOF { + merr = fmt.Errorf("[jsonReader: %d] %s", n, merr.Error()) + if ok := errHandler(merr); !ok { + // caused reader termination + return merr + } + continue + } + + // pass to maphandler + if len(m) != 0 { + if ok := mapHandler(m); !ok { + break + } + } else if merr != io.EOF { + <-time.After(jhandlerPollInterval) + } + + if merr == io.EOF { + break + } + } + return nil +} + +// Bulk process JSON using handlers that process a Map value and the raw JSON. +// 'rdr' is an io.Reader for the JSON (stream). +// 'mapHandler' is the Map and raw JSON - []byte - processor. Return of 'false' stops io.Reader processing. +// 'errHandler' is the error and raw JSON processor. Return of 'false' stops io.Reader processing and returns the error. +// Note: mapHandler() and errHandler() calls are blocking, so reading and processing of messages is serialized. +// This means that you can stop reading the file on error or after processing a particular message. +// To have reading and handling run concurrently, pass argument(s) to a go routine in handler and return 'true'. +func HandleJsonReaderRaw(jsonReader io.Reader, mapHandler func(Map, []byte) bool, errHandler func(error, []byte) bool) error { + var n int + for { + m, raw, merr := NewMapJsonReaderRaw(jsonReader) + n++ + + // handle error condition with errhandler + if merr != nil && merr != io.EOF { + merr = fmt.Errorf("[jsonReader: %d] %s", n, merr.Error()) + if ok := errHandler(merr, raw); !ok { + // caused reader termination + return merr + } + continue + } + + // pass to maphandler + if len(m) != 0 { + if ok := mapHandler(m, raw); !ok { + break + } + } else if merr != io.EOF { + <-time.After(jhandlerPollInterval) + } + + if merr == io.EOF { + break + } + } + return nil +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/keyvalues.go b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/keyvalues.go new file mode 100644 index 00000000..55620ca2 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/keyvalues.go @@ -0,0 +1,668 @@ +// Copyright 2012-2014 Charles Banning. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file + +// keyvalues.go: Extract values from an arbitrary XML doc. Tag path can include wildcard characters. + +package mxj + +import ( + "errors" + "fmt" + "strconv" + "strings" +) + +// ----------------------------- get everything FOR a single key ------------------------- + +const ( + minArraySize = 32 +) + +var defaultArraySize int = minArraySize + +// SetArraySize adjust the buffers for expected number of values to return from ValuesForKey() and ValuesForPath(). +// This can have the effect of significantly reducing memory allocation-copy functions for large data sets. +// Returns the initial buffer size. +func SetArraySize(size int) int { + if size > minArraySize { + defaultArraySize = size + } else { + defaultArraySize = minArraySize + } + return defaultArraySize +} + +// ValuesForKey return all values in Map, 'mv', associated with a 'key'. If len(returned_values) == 0, then no match. +// On error, the returned slice is 'nil'. NOTE: 'key' can be wildcard, "*". +// 'subkeys' (optional) are "key:val[:type]" strings representing attributes or elements in a list. +// - By default 'val' is of type string. "key:val:bool" and "key:val:float" to coerce them. +// - For attributes prefix the label with the attribute prefix character, by default a +// hyphen, '-', e.g., "-seq:3". (See SetAttrPrefix function.) +// - If the 'key' refers to a list, then "key:value" could select a list member of the list. +// - The subkey can be wildcarded - "key:*" - to require that it's there with some value. +// - If a subkey is preceeded with the '!' character, the key:value[:type] entry is treated as an +// exclusion critera - e.g., "!author:William T. Gaddis". +// - If val contains ":" symbol, use SetFieldSeparator to a unused symbol, perhaps "|". +func (mv Map) ValuesForKey(key string, subkeys ...string) ([]interface{}, error) { + m := map[string]interface{}(mv) + var subKeyMap map[string]interface{} + if len(subkeys) > 0 { + var err error + subKeyMap, err = getSubKeyMap(subkeys...) + if err != nil { + return nil, err + } + } + + ret := make([]interface{}, 0, defaultArraySize) + var cnt int + hasKey(m, key, &ret, &cnt, subKeyMap) + return ret[:cnt], nil +} + +var KeyNotExistError = errors.New("Key does not exist") + +// ValueForKey is a wrapper on ValuesForKey. It returns the first member of []interface{}, if any. +// If there is no value, "nil, nil" is returned. +func (mv Map) ValueForKey(key string, subkeys ...string) (interface{}, error) { + vals, err := mv.ValuesForKey(key, subkeys...) + if err != nil { + return nil, err + } + if len(vals) == 0 { + return nil, KeyNotExistError + } + return vals[0], nil +} + +// hasKey - if the map 'key' exists append it to array +// if it doesn't do nothing except scan array and map values +func hasKey(iv interface{}, key string, ret *[]interface{}, cnt *int, subkeys map[string]interface{}) { + // func hasKey(iv interface{}, key string, ret *[]interface{}, subkeys map[string]interface{}) { + switch iv.(type) { + case map[string]interface{}: + vv := iv.(map[string]interface{}) + // see if the current value is of interest + if v, ok := vv[key]; ok { + switch v.(type) { + case map[string]interface{}: + if hasSubKeys(v, subkeys) { + *ret = append(*ret, v) + *cnt++ + } + case []interface{}: + for _, av := range v.([]interface{}) { + if hasSubKeys(av, subkeys) { + *ret = append(*ret, av) + *cnt++ + } + } + default: + if len(subkeys) == 0 { + *ret = append(*ret, v) + *cnt++ + } + } + } + + // wildcard case + if key == "*" { + for _, v := range vv { + switch v.(type) { + case map[string]interface{}: + if hasSubKeys(v, subkeys) { + *ret = append(*ret, v) + *cnt++ + } + case []interface{}: + for _, av := range v.([]interface{}) { + if hasSubKeys(av, subkeys) { + *ret = append(*ret, av) + *cnt++ + } + } + default: + if len(subkeys) == 0 { + *ret = append(*ret, v) + *cnt++ + } + } + } + } + + // scan the rest + for _, v := range vv { + hasKey(v, key, ret, cnt, subkeys) + } + case []interface{}: + for _, v := range iv.([]interface{}) { + hasKey(v, key, ret, cnt, subkeys) + } + } +} + +// ----------------------- get everything for a node in the Map --------------------------- + +// Allow indexed arrays in "path" specification. (Request from Abhijit Kadam - abhijitk100@gmail.com.) +// 2014.04.28 - implementation note. +// Implemented as a wrapper of (old)ValuesForPath() because we need look-ahead logic to handle expansion +// of wildcards and unindexed arrays. Embedding such logic into valuesForKeyPath() would have made the +// code much more complicated; this wrapper is straightforward, easy to debug, and doesn't add significant overhead. + +// ValuesForPatb retrieves all values for a path from the Map. If len(returned_values) == 0, then no match. +// On error, the returned array is 'nil'. +// 'path' is a dot-separated path of key values. +// - If a node in the path is '*', then everything beyond is walked. +// - 'path' can contain indexed array references, such as, "*.data[1]" and "msgs[2].data[0].field" - +// even "*[2].*[0].field". +// 'subkeys' (optional) are "key:val[:type]" strings representing attributes or elements in a list. +// - By default 'val' is of type string. "key:val:bool" and "key:val:float" to coerce them. +// - For attributes prefix the label with the attribute prefix character, by default a +// hyphen, '-', e.g., "-seq:3". (See SetAttrPrefix function.) +// - If the 'path' refers to a list, then "tag:value" would return member of the list. +// - The subkey can be wildcarded - "key:*" - to require that it's there with some value. +// - If a subkey is preceeded with the '!' character, the key:value[:type] entry is treated as an +// exclusion critera - e.g., "!author:William T. Gaddis". +// - If val contains ":" symbol, use SetFieldSeparator to a unused symbol, perhaps "|". +func (mv Map) ValuesForPath(path string, subkeys ...string) ([]interface{}, error) { + // If there are no array indexes in path, use legacy ValuesForPath() logic. + if strings.Index(path, "[") < 0 { + return mv.oldValuesForPath(path, subkeys...) + } + + var subKeyMap map[string]interface{} + if len(subkeys) > 0 { + var err error + subKeyMap, err = getSubKeyMap(subkeys...) + if err != nil { + return nil, err + } + } + + keys, kerr := parsePath(path) + if kerr != nil { + return nil, kerr + } + + vals, verr := valuesForArray(keys, mv) + if verr != nil { + return nil, verr // Vals may be nil, but return empty array. + } + + // Need to handle subkeys ... only return members of vals that satisfy conditions. + retvals := make([]interface{}, 0) + for _, v := range vals { + if hasSubKeys(v, subKeyMap) { + retvals = append(retvals, v) + } + } + return retvals, nil +} + +func valuesForArray(keys []*key, m Map) ([]interface{}, error) { + var tmppath string + var haveFirst bool + var vals []interface{} + var verr error + + lastkey := len(keys) - 1 + for i := 0; i <= lastkey; i++ { + if !haveFirst { + tmppath = keys[i].name + haveFirst = true + } else { + tmppath += "." + keys[i].name + } + + // Look-ahead: explode wildcards and unindexed arrays. + // Need to handle un-indexed list recursively: + // e.g., path is "stuff.data[0]" rather than "stuff[0].data[0]". + // Need to treat it as "stuff[0].data[0]", "stuff[1].data[0]", ... + if !keys[i].isArray && i < lastkey && keys[i+1].isArray { + // Can't pass subkeys because we may not be at literal end of path. + vv, vverr := m.oldValuesForPath(tmppath) + if vverr != nil { + return nil, vverr + } + for _, v := range vv { + // See if we can walk the value. + am, ok := v.(map[string]interface{}) + if !ok { + continue + } + // Work the backend. + nvals, nvalserr := valuesForArray(keys[i+1:], Map(am)) + if nvalserr != nil { + return nil, nvalserr + } + vals = append(vals, nvals...) + } + break // have recursed the whole path - return + } + + if keys[i].isArray || i == lastkey { + // Don't pass subkeys because may not be at literal end of path. + vals, verr = m.oldValuesForPath(tmppath) + } else { + continue + } + if verr != nil { + return nil, verr + } + + if i == lastkey && !keys[i].isArray { + break + } + + // Now we're looking at an array - supposedly. + // Is index in range of vals? + if len(vals) <= keys[i].position { + vals = nil + break + } + + // Return the array member of interest, if at end of path. + if i == lastkey { + vals = vals[keys[i].position:(keys[i].position + 1)] + break + } + + // Extract the array member of interest. + am := vals[keys[i].position:(keys[i].position + 1)] + + // must be a map[string]interface{} value so we can keep walking the path + amm, ok := am[0].(map[string]interface{}) + if !ok { + vals = nil + break + } + + m = Map(amm) + haveFirst = false + } + + return vals, nil +} + +type key struct { + name string + isArray bool + position int +} + +func parsePath(s string) ([]*key, error) { + keys := strings.Split(s, ".") + + ret := make([]*key, 0) + + for i := 0; i < len(keys); i++ { + if keys[i] == "" { + continue + } + + newkey := new(key) + if strings.Index(keys[i], "[") < 0 { + newkey.name = keys[i] + ret = append(ret, newkey) + continue + } + + p := strings.Split(keys[i], "[") + newkey.name = p[0] + p = strings.Split(p[1], "]") + if p[0] == "" { // no right bracket + return nil, fmt.Errorf("no right bracket on key index: %s", keys[i]) + } + // convert p[0] to a int value + pos, nerr := strconv.ParseInt(p[0], 10, 32) + if nerr != nil { + return nil, fmt.Errorf("cannot convert index to int value: %s", p[0]) + } + newkey.position = int(pos) + newkey.isArray = true + ret = append(ret, newkey) + } + + return ret, nil +} + +// legacy ValuesForPath() - now wrapped to handle special case of indexed arrays in 'path'. +func (mv Map) oldValuesForPath(path string, subkeys ...string) ([]interface{}, error) { + m := map[string]interface{}(mv) + var subKeyMap map[string]interface{} + if len(subkeys) > 0 { + var err error + subKeyMap, err = getSubKeyMap(subkeys...) + if err != nil { + return nil, err + } + } + + keys := strings.Split(path, ".") + if keys[len(keys)-1] == "" { + keys = keys[:len(keys)-1] + } + ivals := make([]interface{}, 0, defaultArraySize) + var cnt int + valuesForKeyPath(&ivals, &cnt, m, keys, subKeyMap) + return ivals[:cnt], nil +} + +func valuesForKeyPath(ret *[]interface{}, cnt *int, m interface{}, keys []string, subkeys map[string]interface{}) { + lenKeys := len(keys) + + // load 'm' values into 'ret' + // expand any lists + if lenKeys == 0 { + switch m.(type) { + case map[string]interface{}: + if subkeys != nil { + if ok := hasSubKeys(m, subkeys); !ok { + return + } + } + *ret = append(*ret, m) + *cnt++ + case []interface{}: + for i, v := range m.([]interface{}) { + if subkeys != nil { + if ok := hasSubKeys(v, subkeys); !ok { + continue // only load list members with subkeys + } + } + *ret = append(*ret, (m.([]interface{}))[i]) + *cnt++ + } + default: + if subkeys != nil { + return // must be map[string]interface{} if there are subkeys + } + *ret = append(*ret, m) + *cnt++ + } + return + } + + // key of interest + key := keys[0] + switch key { + case "*": // wildcard - scan all values + switch m.(type) { + case map[string]interface{}: + for _, v := range m.(map[string]interface{}) { + // valuesForKeyPath(ret, v, keys[1:], subkeys) + valuesForKeyPath(ret, cnt, v, keys[1:], subkeys) + } + case []interface{}: + for _, v := range m.([]interface{}) { + switch v.(type) { + // flatten out a list of maps - keys are processed + case map[string]interface{}: + for _, vv := range v.(map[string]interface{}) { + // valuesForKeyPath(ret, vv, keys[1:], subkeys) + valuesForKeyPath(ret, cnt, vv, keys[1:], subkeys) + } + default: + // valuesForKeyPath(ret, v, keys[1:], subkeys) + valuesForKeyPath(ret, cnt, v, keys[1:], subkeys) + } + } + } + default: // key - must be map[string]interface{} + switch m.(type) { + case map[string]interface{}: + if v, ok := m.(map[string]interface{})[key]; ok { + // valuesForKeyPath(ret, v, keys[1:], subkeys) + valuesForKeyPath(ret, cnt, v, keys[1:], subkeys) + } + case []interface{}: // may be buried in list + for _, v := range m.([]interface{}) { + switch v.(type) { + case map[string]interface{}: + if vv, ok := v.(map[string]interface{})[key]; ok { + // valuesForKeyPath(ret, vv, keys[1:], subkeys) + valuesForKeyPath(ret, cnt, vv, keys[1:], subkeys) + } + } + } + } + } +} + +// hasSubKeys() - interface{} equality works for string, float64, bool +// 'v' must be a map[string]interface{} value to have subkeys +// 'a' can have k:v pairs with v.(string) == "*", which is treated like a wildcard. +func hasSubKeys(v interface{}, subkeys map[string]interface{}) bool { + if len(subkeys) == 0 { + return true + } + + switch v.(type) { + case map[string]interface{}: + // do all subKey name:value pairs match? + mv := v.(map[string]interface{}) + for skey, sval := range subkeys { + isNotKey := false + if skey[:1] == "!" { // a NOT-key + skey = skey[1:] + isNotKey = true + } + vv, ok := mv[skey] + if !ok { // key doesn't exist + if isNotKey { // key not there, but that's what we want + if kv, ok := sval.(string); ok && kv == "*" { + continue + } + } + return false + } + // wildcard check + if kv, ok := sval.(string); ok && kv == "*" { + if isNotKey { // key is there, and we don't want it + return false + } + continue + } + switch sval.(type) { + case string: + if s, ok := vv.(string); ok && s == sval.(string) { + if isNotKey { + return false + } + continue + } + case bool: + if b, ok := vv.(bool); ok && b == sval.(bool) { + if isNotKey { + return false + } + continue + } + case float64: + if f, ok := vv.(float64); ok && f == sval.(float64) { + if isNotKey { + return false + } + continue + } + } + // key there but didn't match subkey value + if isNotKey { // that's what we want + continue + } + return false + } + // all subkeys matched + return true + } + + // not a map[string]interface{} value, can't have subkeys + return false +} + +// Generate map of key:value entries as map[string]string. +// 'kv' arguments are "name:value" pairs: attribute keys are designated with prepended hyphen, '-'. +// If len(kv) == 0, the return is (nil, nil). +func getSubKeyMap(kv ...string) (map[string]interface{}, error) { + if len(kv) == 0 { + return nil, nil + } + m := make(map[string]interface{}, 0) + for _, v := range kv { + vv := strings.Split(v, fieldSep) + switch len(vv) { + case 2: + m[vv[0]] = interface{}(vv[1]) + case 3: + switch vv[2] { + case "string", "char", "text": + m[vv[0]] = interface{}(vv[1]) + case "bool", "boolean": + // ParseBool treats "1"==true & "0"==false + b, err := strconv.ParseBool(vv[1]) + if err != nil { + return nil, fmt.Errorf("can't convert subkey value to bool: %s", vv[1]) + } + m[vv[0]] = interface{}(b) + case "float", "float64", "num", "number", "numeric": + f, err := strconv.ParseFloat(vv[1], 64) + if err != nil { + return nil, fmt.Errorf("can't convert subkey value to float: %s", vv[1]) + } + m[vv[0]] = interface{}(f) + default: + return nil, fmt.Errorf("unknown subkey conversion spec: %s", v) + } + default: + return nil, fmt.Errorf("unknown subkey spec: %s", v) + } + } + return m, nil +} + +// ------------------------------- END of valuesFor ... ---------------------------- + +// ----------------------- locate where a key value is in the tree ------------------- + +//----------------------------- find all paths to a key -------------------------------- + +// PathsForKey returns all paths through Map, 'mv', (in dot-notation) that terminate with the specified key. +// Results can be used with ValuesForPath. +func (mv Map) PathsForKey(key string) []string { + m := map[string]interface{}(mv) + breadbasket := make(map[string]bool, 0) + breadcrumbs := "" + + hasKeyPath(breadcrumbs, m, key, breadbasket) + if len(breadbasket) == 0 { + return nil + } + + // unpack map keys to return + res := make([]string, len(breadbasket)) + var i int + for k := range breadbasket { + res[i] = k + i++ + } + + return res +} + +// PathForKeyShortest extracts the shortest path from all possible paths - from PathsForKey() - in Map, 'mv'.. +// Paths are strings using dot-notation. +func (mv Map) PathForKeyShortest(key string) string { + paths := mv.PathsForKey(key) + + lp := len(paths) + if lp == 0 { + return "" + } + if lp == 1 { + return paths[0] + } + + shortest := paths[0] + shortestLen := len(strings.Split(shortest, ".")) + + for i := 1; i < len(paths); i++ { + vlen := len(strings.Split(paths[i], ".")) + if vlen < shortestLen { + shortest = paths[i] + shortestLen = vlen + } + } + + return shortest +} + +// hasKeyPath - if the map 'key' exists append it to KeyPath.path and increment KeyPath.depth +// This is really just a breadcrumber that saves all trails that hit the prescribed 'key'. +func hasKeyPath(crumbs string, iv interface{}, key string, basket map[string]bool) { + switch iv.(type) { + case map[string]interface{}: + vv := iv.(map[string]interface{}) + if _, ok := vv[key]; ok { + // create a new breadcrumb, intialized with the one we have + var nbc string + if crumbs == "" { + nbc = key + } else { + nbc = crumbs + "." + key + } + basket[nbc] = true + } + // walk on down the path, key could occur again at deeper node + for k, v := range vv { + // create a new breadcrumb, intialized with the one we have + var nbc string + if crumbs == "" { + nbc = k + } else { + nbc = crumbs + "." + k + } + hasKeyPath(nbc, v, key, basket) + } + case []interface{}: + // crumb-trail doesn't change, pass it on + for _, v := range iv.([]interface{}) { + hasKeyPath(crumbs, v, key, basket) + } + } +} + +var PathNotExistError = errors.New("Path does not exist") + +// ValueForPath wraps ValuesFor Path and returns the first value returned. +// If no value is found it returns 'nil' and PathNotExistError. +func (mv Map) ValueForPath(path string) (interface{}, error) { + vals, err := mv.ValuesForPath(path) + if err != nil { + return nil, err + } + if len(vals) == 0 { + return nil, PathNotExistError + } + return vals[0], nil +} + +// ValuesForPathString returns the first found value for the path as a string. +func (mv Map) ValueForPathString(path string) (string, error) { + vals, err := mv.ValuesForPath(path) + if err != nil { + return "", err + } + if len(vals) == 0 { + return "", errors.New("ValueForPath: path not found") + } + val := vals[0] + return fmt.Sprintf("%v", val), nil +} + +// ValueOrEmptyForPathString returns the first found value for the path as a string. +// If the path is not found then it returns an empty string. +func (mv Map) ValueOrEmptyForPathString(path string) string { + str, _ := mv.ValueForPathString(path) + return str +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/leafnode.go b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/leafnode.go new file mode 100644 index 00000000..cf413ebd --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/leafnode.go @@ -0,0 +1,112 @@ +package mxj + +// leafnode.go - return leaf nodes with paths and values for the Map +// inspired by: https://groups.google.com/forum/#!topic/golang-nuts/3JhuVKRuBbw + +import ( + "strconv" + "strings" +) + +const ( + NoAttributes = true // suppress LeafNode values that are attributes +) + +// LeafNode - a terminal path value in a Map. +// For XML Map values it represents an attribute or simple element value - of type +// string unless Map was created using Cast flag. For JSON Map values it represents +// a string, numeric, boolean, or null value. +type LeafNode struct { + Path string // a dot-notation representation of the path with array subscripting + Value interface{} // the value at the path termination +} + +// LeafNodes - returns an array of all LeafNode values for the Map. +// The option no_attr argument suppresses attribute values (keys with prepended hyphen, '-') +// as well as the "#text" key for the associated simple element value. +// +// PrependAttrWithHypen(false) will result in attributes having .attr-name as +// terminal node in 'path' while the path for the element value, itself, will be +// the base path w/o "#text". +// +// LeafUseDotNotation(true) causes list members to be identified using ".N" syntax +// rather than "[N]" syntax. +func (mv Map) LeafNodes(no_attr ...bool) []LeafNode { + var a bool + if len(no_attr) == 1 { + a = no_attr[0] + } + + l := make([]LeafNode, 0) + getLeafNodes("", "", map[string]interface{}(mv), &l, a) + return l +} + +func getLeafNodes(path, node string, mv interface{}, l *[]LeafNode, noattr bool) { + // if stripping attributes, then also strip "#text" key + if !noattr || node != "#text" { + if path != "" && node[:1] != "[" { + path += "." + } + path += node + } + switch mv.(type) { + case map[string]interface{}: + for k, v := range mv.(map[string]interface{}) { + // if noattr && k[:1] == "-" { + if noattr && len(attrPrefix) > 0 && strings.Index(k, attrPrefix) == 0 { + continue + } + getLeafNodes(path, k, v, l, noattr) + } + case []interface{}: + for i, v := range mv.([]interface{}) { + if useDotNotation { + getLeafNodes(path, strconv.Itoa(i), v, l, noattr) + } else { + getLeafNodes(path, "["+strconv.Itoa(i)+"]", v, l, noattr) + } + } + default: + // can't walk any further, so create leaf + n := LeafNode{path, mv} + *l = append(*l, n) + } +} + +// LeafPaths - all paths that terminate in LeafNode values. +func (mv Map) LeafPaths(no_attr ...bool) []string { + ln := mv.LeafNodes() + ss := make([]string, len(ln)) + for i := 0; i < len(ln); i++ { + ss[i] = ln[i].Path + } + return ss +} + +// LeafValues - all terminal values in the Map. +func (mv Map) LeafValues(no_attr ...bool) []interface{} { + ln := mv.LeafNodes() + vv := make([]interface{}, len(ln)) + for i := 0; i < len(ln); i++ { + vv[i] = ln[i].Value + } + return vv +} + +// ====================== utilities ====================== + +// https://groups.google.com/forum/#!topic/golang-nuts/pj0C5IrZk4I +var useDotNotation bool + +// LeafUseDotNotation sets a flag that list members in LeafNode paths +// should be identified using ".N" syntax rather than the default "[N]" +// syntax. Calling LeafUseDotNotation with no arguments toggles the +// flag on/off; otherwise, the argument sets the flag value 'true'/'false'. +func LeafUseDotNotation(b ...bool) { + if len(b) == 0 { + useDotNotation = !useDotNotation + return + } + useDotNotation = b[0] +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/misc.go b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/misc.go new file mode 100644 index 00000000..5b4fab21 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/misc.go @@ -0,0 +1,86 @@ +// Copyright 2016 Charles Banning. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file + +// misc.go - mimic functions (+others) called out in: +// https://groups.google.com/forum/#!topic/golang-nuts/jm_aGsJNbdQ +// Primarily these methods let you retrive XML structure information. + +package mxj + +import ( + "fmt" + "sort" + "strings" +) + +// Return the root element of the Map. If there is not a single key in Map, +// then an error is returned. +func (mv Map) Root() (string, error) { + mm := map[string]interface{}(mv) + if len(mm) != 1 { + return "", fmt.Errorf("Map does not have singleton root. Len: %d.", len(mm)) + } + for k, _ := range mm { + return k, nil + } + return "", nil +} + +// If the path is an element with sub-elements, return a list of the sub-element +// keys. (The list is alphabeticly sorted.) NOTE: Map keys that are prefixed with +// '-', a hyphen, are considered attributes; see m.Attributes(path). +func (mv Map) Elements(path string) ([]string, error) { + e, err := mv.ValueForPath(path) + if err != nil { + return nil, err + } + switch e.(type) { + case map[string]interface{}: + ee := e.(map[string]interface{}) + elems := make([]string, len(ee)) + var i int + for k, _ := range ee { + if len(attrPrefix) > 0 && strings.Index(k, attrPrefix) == 0 { + continue // skip attributes + } + elems[i] = k + i++ + } + elems = elems[:i] + // alphabetic sort keeps things tidy + sort.Strings(elems) + return elems, nil + } + return nil, fmt.Errorf("no elements for path: %s", path) +} + +// If the path is an element with attributes, return a list of the attribute +// keys. (The list is alphabeticly sorted.) NOTE: Map keys that are not prefixed with +// '-', a hyphen, are not treated as attributes; see m.Elements(path). Also, if the +// attribute prefix is "" - SetAttrPrefix("") or PrependAttrWithHyphen(false) - then +// there are no identifiable attributes. +func (mv Map) Attributes(path string) ([]string, error) { + a, err := mv.ValueForPath(path) + if err != nil { + return nil, err + } + switch a.(type) { + case map[string]interface{}: + aa := a.(map[string]interface{}) + attrs := make([]string, len(aa)) + var i int + for k, _ := range aa { + if len(attrPrefix) == 0 || strings.Index(k, attrPrefix) != 0 { + continue // skip non-attributes + } + attrs[i] = k[len(attrPrefix):] + i++ + } + attrs = attrs[:i] + // alphabetic sort keeps things tidy + sort.Strings(attrs) + return attrs, nil + } + return nil, fmt.Errorf("no attributes for path: %s", path) +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/mxj.go b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/mxj.go new file mode 100644 index 00000000..f0592f06 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/mxj.go @@ -0,0 +1,128 @@ +// mxj - A collection of map[string]interface{} and associated XML and JSON utilities. +// Copyright 2012-2014 Charles Banning. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file + +package mxj + +import ( + "fmt" + "sort" +) + +const ( + Cast = true // for clarity - e.g., mxj.NewMapXml(doc, mxj.Cast) + SafeEncoding = true // ditto - e.g., mv.Json(mxj.SafeEncoding) +) + +type Map map[string]interface{} + +// Allocate a Map. +func New() Map { + m := make(map[string]interface{}, 0) + return m +} + +// Cast a Map to map[string]interface{} +func (mv Map) Old() map[string]interface{} { + return mv +} + +// Return a copy of mv as a newly allocated Map. If the Map only contains string, +// numeric, map[string]interface{}, and []interface{} values, then it can be thought +// of as a "deep copy." Copying a structure (or structure reference) value is subject +// to the noted restrictions. +// NOTE: If 'mv' includes structure values with, possibly, JSON encoding tags +// then only public fields of the structure are in the new Map - and with +// keys that conform to any encoding tag instructions. The structure itself will +// be represented as a map[string]interface{} value. +func (mv Map) Copy() (Map, error) { + // this is the poor-man's deep copy + // not efficient, but it works + j, jerr := mv.Json() + // must handle, we don't know how mv got built + if jerr != nil { + return nil, jerr + } + return NewMapJson(j) +} + +// --------------- StringIndent ... from x2j.WriteMap ------------- + +// Pretty print a Map. +func (mv Map) StringIndent(offset ...int) string { + return writeMap(map[string]interface{}(mv), true, true, offset...) +} + +// Pretty print a Map without the value type information - just key:value entries. +func (mv Map) StringIndentNoTypeInfo(offset ...int) string { + return writeMap(map[string]interface{}(mv), false, true, offset...) +} + +// writeMap - dumps the map[string]interface{} for examination. +// 'typeInfo' causes value type to be printed. +// 'offset' is initial indentation count; typically: Write(m). +func writeMap(m interface{}, typeInfo, root bool, offset ...int) string { + var indent int + if len(offset) == 1 { + indent = offset[0] + } + + var s string + switch m.(type) { + case []interface{}: + if typeInfo { + s += "[[]interface{}]" + } + for _, v := range m.([]interface{}) { + s += "\n" + for i := 0; i < indent; i++ { + s += " " + } + s += writeMap(v, typeInfo, false, indent+1) + } + case map[string]interface{}: + list := make([][2]string, len(m.(map[string]interface{}))) + var n int + for k, v := range m.(map[string]interface{}) { + list[n][0] = k + list[n][1] = writeMap(v, typeInfo, false, indent+1) + n++ + } + sort.Sort(mapList(list)) + for _, v := range list { + if root { + root = false + } else { + s += "\n" + } + for i := 0; i < indent; i++ { + s += " " + } + s += v[0] + " : " + v[1] + } + default: + if typeInfo { + s += fmt.Sprintf("[%T] %+v", m, m) + } else { + s += fmt.Sprintf("%+v", m) + } + } + return s +} + +// ======================== utility =============== + +type mapList [][2]string + +func (ml mapList) Len() int { + return len(ml) +} + +func (ml mapList) Swap(i, j int) { + ml[i], ml[j] = ml[j], ml[i] +} + +func (ml mapList) Less(i, j int) bool { + return ml[i][0] <= ml[j][0] +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/newmap.go b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/newmap.go new file mode 100644 index 00000000..b2939490 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/newmap.go @@ -0,0 +1,184 @@ +// mxj - A collection of map[string]interface{} and associated XML and JSON utilities. +// Copyright 2012-2014, 2018 Charles Banning. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file + +// remap.go - build a new Map from the current Map based on keyOld:keyNew mapppings +// keys can use dot-notation, keyOld can use wildcard, '*' +// +// Computational strategy - +// Using the key path - []string - traverse a new map[string]interface{} and +// insert the oldVal as the newVal when we arrive at the end of the path. +// If the type at the end is nil, then that is newVal +// If the type at the end is a singleton (string, float64, bool) an array is created. +// If the type at the end is an array, newVal is just appended. +// If the type at the end is a map, it is inserted if possible or the map value +// is converted into an array if necessary. + +package mxj + +import ( + "errors" + "strings" +) + +// (Map)NewMap - create a new Map from data in the current Map. +// 'keypairs' are key mappings "oldKey:newKey" and specify that the current value of 'oldKey' +// should be the value for 'newKey' in the returned Map. +// - 'oldKey' supports dot-notation as described for (Map)ValuesForPath() +// - 'newKey' supports dot-notation but with no wildcards, '*', or indexed arrays +// - "oldKey" is shorthand for the keypair value "oldKey:oldKey" +// - "oldKey:" and ":newKey" are invalid keypair values +// - if 'oldKey' does not exist in the current Map, it is not written to the new Map. +// "null" is not supported unless it is the current Map. +// - see newmap_test.go for several syntax examples +// - mv.NewMap() == mxj.New() +// +// NOTE: "examples/partial.go" shows how to create arbitrary sub-docs of an XML doc. +func (mv Map) NewMap(keypairs ...string) (Map, error) { + n := make(map[string]interface{}, 0) + if len(keypairs) == 0 { + return n, nil + } + + // loop through the pairs + var oldKey, newKey string + var path []string + for _, v := range keypairs { + if len(v) == 0 { + continue // just skip over empty keypair arguments + } + + // initialize oldKey, newKey and check + vv := strings.Split(v, ":") + if len(vv) > 2 { + return n, errors.New("oldKey:newKey keypair value not valid - " + v) + } + if len(vv) == 1 { + oldKey, newKey = vv[0], vv[0] + } else { + oldKey, newKey = vv[0], vv[1] + } + strings.TrimSpace(oldKey) + strings.TrimSpace(newKey) + if i := strings.Index(newKey, "*"); i > -1 { + return n, errors.New("newKey value cannot contain wildcard character - " + v) + } + if i := strings.Index(newKey, "["); i > -1 { + return n, errors.New("newKey value cannot contain indexed arrays - " + v) + } + if oldKey == "" || newKey == "" { + return n, errors.New("oldKey or newKey is not specified - " + v) + } + + // get oldKey value + oldVal, err := mv.ValuesForPath(oldKey) + if err != nil { + return n, err + } + if len(oldVal) == 0 { + continue // oldKey has no value, may not exist in mv + } + + // break down path + path = strings.Split(newKey, ".") + if path[len(path)-1] == "" { // ignore a trailing dot in newKey spec + path = path[:len(path)-1] + } + + addNewVal(&n, path, oldVal) + } + + return n, nil +} + +// navigate 'n' to end of path and add val +func addNewVal(n *map[string]interface{}, path []string, val []interface{}) { + // newVal - either singleton or array + var newVal interface{} + if len(val) == 1 { + newVal = val[0] // is type interface{} + } else { + newVal = interface{}(val) + } + + // walk to the position of interest, create it if necessary + m := (*n) // initialize map walker + var k string // key for m + lp := len(path) - 1 // when to stop looking + for i := 0; i < len(path); i++ { + k = path[i] + if i == lp { + break + } + var nm map[string]interface{} // holds position of next-map + switch m[k].(type) { + case nil: // need a map for next node in path, so go there + nm = make(map[string]interface{}, 0) + m[k] = interface{}(nm) + m = m[k].(map[string]interface{}) + case map[string]interface{}: + // OK - got somewhere to walk to, go there + m = m[k].(map[string]interface{}) + case []interface{}: + // add a map and nm points to new map unless there's already + // a map in the array, then nm points there + // The placement of the next value in the array is dependent + // on the sequence of members - could land on a map or a nil + // value first. TODO: how to test this. + a := make([]interface{}, 0) + var foundmap bool + for _, vv := range m[k].([]interface{}) { + switch vv.(type) { + case nil: // doesn't appear that this occurs, need a test case + if foundmap { // use the first one in array + a = append(a, vv) + continue + } + nm = make(map[string]interface{}, 0) + a = append(a, interface{}(nm)) + foundmap = true + case map[string]interface{}: + if foundmap { // use the first one in array + a = append(a, vv) + continue + } + nm = vv.(map[string]interface{}) + a = append(a, vv) + foundmap = true + default: + a = append(a, vv) + } + } + // no map found in array + if !foundmap { + nm = make(map[string]interface{}, 0) + a = append(a, interface{}(nm)) + } + m[k] = interface{}(a) // must insert in map + m = nm + default: // it's a string, float, bool, etc. + aa := make([]interface{}, 0) + nm = make(map[string]interface{}, 0) + aa = append(aa, m[k], nm) + m[k] = interface{}(aa) + m = nm + } + } + + // value is nil, array or a singleton of some kind + // initially m.(type) == map[string]interface{} + v := m[k] + switch v.(type) { + case nil: // initialized + m[k] = newVal + case []interface{}: + a := m[k].([]interface{}) + a = append(a, newVal) + m[k] = interface{}(a) + default: // v exists:string, float64, bool, map[string]interface, etc. + a := make([]interface{}, 0) + a = append(a, v, newVal) + m[k] = interface{}(a) + } +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/readme.md b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/readme.md new file mode 100644 index 00000000..323a747d --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/readme.md @@ -0,0 +1,207 @@ +

mxj - to/from maps, XML and JSON

+Decode/encode XML to/from map[string]interface{} (or JSON) values, and extract/modify values from maps by key or key-path, including wildcards. + +mxj supplants the legacy x2j and j2x packages. If you want the old syntax, use mxj/x2j and mxj/j2x packages. + +

Installation

+Using go.mod: +
+go get github.com/clbanning/mxj/v2@v2.3.2
+
+ +
+import "github.com/clbanning/mxj/v2"
+
+ +... or just vendor the package. + +

Related Packages

+ +https://github.com/clbanning/checkxml provides functions for validating XML data. + +

Refactor Encoder - 2020.05.01

+Issue #70 highlighted that encoding large maps does not scale well, since the original logic used string appends operations. Using bytes.Buffer results in linear scaling for very large XML docs. (Metrics based on MacBook Pro i7 w/ 16 GB.) + + Nodes m.XML() time + 54809 12.53708ms + 109780 32.403183ms + 164678 59.826412ms + 482598 109.358007ms + +

Refactor Decoder - 2015.11.15

+For over a year I've wanted to refactor the XML-to-map[string]interface{} decoder to make it more performant. I recently took the time to do that, since we were using github.com/clbanning/mxj in a production system that could be deployed on a Raspberry Pi. Now the decoder is comparable to the stdlib JSON-to-map[string]interface{} decoder in terms of its additional processing overhead relative to decoding to a structure value. As shown by: + + BenchmarkNewMapXml-4 100000 18043 ns/op + BenchmarkNewStructXml-4 100000 14892 ns/op + BenchmarkNewMapJson-4 300000 4633 ns/op + BenchmarkNewStructJson-4 300000 3427 ns/op + BenchmarkNewMapXmlBooks-4 20000 82850 ns/op + BenchmarkNewStructXmlBooks-4 20000 67822 ns/op + BenchmarkNewMapJsonBooks-4 100000 17222 ns/op + BenchmarkNewStructJsonBooks-4 100000 15309 ns/op + +

Notices

+ + 2021.02.02: v2.5 - add XmlCheckIsValid toggle to force checking that the encoded XML is valid + 2020.12.14: v2.4 - add XMLEscapeCharsDecoder to preserve XML escaped characters in Map values + 2020.10.28: v2.3 - add TrimWhiteSpace option + 2020.05.01: v2.2 - optimize map to XML encoding for large XML docs. + 2019.07.04: v2.0 - remove unnecessary methods - mv.XmlWriterRaw, mv.XmlIndentWriterRaw - for Map and MapSeq. + 2019.07.04: Add MapSeq type and move associated functions and methods from Map to MapSeq. + 2019.01.21: DecodeSimpleValuesAsMap - decode to map[:map["#text":]] rather than map[:] + 2018.04.18: mv.Xml/mv.XmlIndent encodes non-map[string]interface{} map values - map[string]string, map[int]uint, etc. + 2018.03.29: mv.Gob/NewMapGob support gob encoding/decoding of Maps. + 2018.03.26: Added mxj/x2j-wrapper sub-package for migrating from legacy x2j package. + 2017.02.22: LeafNode paths can use ".N" syntax rather than "[N]" for list member indexing. + 2017.02.10: SetFieldSeparator changes field separator for args in UpdateValuesForPath, ValuesFor... methods. + 2017.02.06: Support XMPP stream processing - HandleXMPPStreamTag(). + 2016.11.07: Preserve name space prefix syntax in XmlSeq parser - NewMapXmlSeq(), etc. + 2016.06.25: Support overriding default XML attribute prefix, "-", in Map keys - SetAttrPrefix(). + 2016.05.26: Support customization of xml.Decoder by exposing CustomDecoder variable. + 2016.03.19: Escape invalid chars when encoding XML attribute and element values - XMLEscapeChars(). + 2016.03.02: By default decoding XML with float64 and bool value casting will not cast "NaN", "Inf", and "-Inf". + To cast them to float64, first set flag with CastNanInf(true). + 2016.02.22: New mv.Root(), mv.Elements(), mv.Attributes methods let you examine XML document structure. + 2016.02.16: Add CoerceKeysToLower() option to handle tags with mixed capitalization. + 2016.02.12: Seek for first xml.StartElement token; only return error if io.EOF is reached first (handles BOM). + 2015.12.02: XML decoding/encoding that preserves original structure of document. See NewMapXmlSeq() + and mv.XmlSeq() / mv.XmlSeqIndent(). + 2015-05-20: New: mv.StringIndentNoTypeInfo(). + Also, alphabetically sort map[string]interface{} values by key to prettify output for mv.Xml(), + mv.XmlIndent(), mv.StringIndent(), mv.StringIndentNoTypeInfo(). + 2014-11-09: IncludeTagSeqNum() adds "_seq" key with XML doc positional information. + (NOTE: PreserveXmlList() is similar and will be here soon.) + 2014-09-18: inspired by NYTimes fork, added PrependAttrWithHyphen() to allow stripping hyphen from attribute tag. + 2014-08-02: AnyXml() and AnyXmlIndent() will try to marshal arbitrary values to XML. + 2014-04-28: ValuesForPath() and NewMap() now accept path with indexed array references. + +

Basic Unmarshal XML to map[string]interface{}

+
type Map map[string]interface{}
+ +Create a `Map` value, 'mv', from any `map[string]interface{}` value, 'v': +
mv := Map(v)
+ +Unmarshal / marshal XML as a `Map` value, 'mv': +
mv, err := NewMapXml(xmlValue) // unmarshal
+xmlValue, err := mv.Xml()      // marshal
+ +Unmarshal XML from an `io.Reader` as a `Map` value, 'mv': +
mv, err := NewMapXmlReader(xmlReader)         // repeated calls, as with an os.File Reader, will process stream
+mv, raw, err := NewMapXmlReaderRaw(xmlReader) // 'raw' is the raw XML that was decoded
+ +Marshal `Map` value, 'mv', to an XML Writer (`io.Writer`): +
err := mv.XmlWriter(xmlWriter)
+raw, err := mv.XmlWriterRaw(xmlWriter) // 'raw' is the raw XML that was written on xmlWriter
+ +Also, for prettified output: +
xmlValue, err := mv.XmlIndent(prefix, indent, ...)
+err := mv.XmlIndentWriter(xmlWriter, prefix, indent, ...)
+raw, err := mv.XmlIndentWriterRaw(xmlWriter, prefix, indent, ...)
+ +Bulk process XML with error handling (note: handlers must return a boolean value): +
err := HandleXmlReader(xmlReader, mapHandler(Map), errHandler(error))
+err := HandleXmlReaderRaw(xmlReader, mapHandler(Map, []byte), errHandler(error, []byte))
+ +Converting XML to JSON: see Examples for `NewMapXml` and `HandleXmlReader`. + +There are comparable functions and methods for JSON processing. + +Arbitrary structure values can be decoded to / encoded from `Map` values: +
mv, err := NewMapStruct(structVal)
+err := mv.Struct(structPointer)
+ +

Extract / modify Map values

+To work with XML tag values, JSON or Map key values or structure field values, decode the XML, JSON +or structure to a `Map` value, 'mv', or cast a `map[string]interface{}` value to a `Map` value, 'mv', then: +
paths := mv.PathsForKey(key)
+path := mv.PathForKeyShortest(key)
+values, err := mv.ValuesForKey(key, subkeys)
+values, err := mv.ValuesForPath(path, subkeys)
+count, err := mv.UpdateValuesForPath(newVal, path, subkeys)
+ +Get everything at once, irrespective of path depth: +
leafnodes := mv.LeafNodes()
+leafvalues := mv.LeafValues()
+ +A new `Map` with whatever keys are desired can be created from the current `Map` and then encoded in XML +or JSON. (Note: keys can use dot-notation.) +
newMap, err := mv.NewMap("oldKey_1:newKey_1", "oldKey_2:newKey_2", ..., "oldKey_N:newKey_N")
+newMap, err := mv.NewMap("oldKey1", "oldKey3", "oldKey5") // a subset of 'mv'; see "examples/partial.go"
+newXml, err := newMap.Xml()   // for example
+newJson, err := newMap.Json() // ditto
+ +

Usage

+ +The package is fairly well [self-documented with examples](http://godoc.org/github.com/clbanning/mxj). + +Also, the subdirectory "examples" contains a wide range of examples, several taken from golang-nuts discussions. + +

XML parsing conventions

+ +Using NewMapXml() + + - Attributes are parsed to `map[string]interface{}` values by prefixing a hyphen, `-`, + to the attribute label. (Unless overridden by `PrependAttrWithHyphen(false)` or + `SetAttrPrefix()`.) + - If the element is a simple element and has attributes, the element value + is given the key `#text` for its `map[string]interface{}` representation. (See + the 'atomFeedString.xml' test data, below.) + - XML comments, directives, and process instructions are ignored. + - If CoerceKeysToLower() has been called, then the resultant keys will be lower case. + +Using NewMapXmlSeq() + + - Attributes are parsed to `map["#attr"]map[]map[string]interface{}`values + where the `` value has "#text" and "#seq" keys - the "#text" key holds the + value for ``. + - All elements, except for the root, have a "#seq" key. + - Comments, directives, and process instructions are unmarshalled into the Map using the + keys "#comment", "#directive", and "#procinst", respectively. (See documentation for more + specifics.) + - Name space syntax is preserved: + - `something` parses to `map["ns:key"]interface{}{"something"}` + - `xmlns:ns="http://myns.com/ns"` parses to `map["xmlns:ns"]interface{}{"http://myns.com/ns"}` + +Both + + - By default, "Nan", "Inf", and "-Inf" values are not cast to float64. If you want them + to be cast, set a flag to cast them using CastNanInf(true). + +

XML encoding conventions

+ + - 'nil' `Map` values, which may represent 'null' JSON values, are encoded as ``. + NOTE: the operation is not symmetric as `` elements are decoded as `tag:""` `Map` values, + which, then, encode in JSON as `"tag":""` values. + - ALSO: there is no guarantee that the encoded XML doc will be the same as the decoded one. (Go + randomizes the walk through map[string]interface{} values.) If you plan to re-encode the + Map value to XML and want the same sequencing of elements look at NewMapXmlSeq() and + mv.XmlSeq() - these try to preserve the element sequencing but with added complexity when + working with the Map representation. + +

Running "go test"

+ +Because there are no guarantees on the sequence map elements are retrieved, the tests have been +written for visual verification in most cases. One advantage is that you can easily use the +output from running "go test" as examples of calling the various functions and methods. + +

Motivation

+ +I make extensive use of JSON for messaging and typically unmarshal the messages into +`map[string]interface{}` values. This is easily done using `json.Unmarshal` from the +standard Go libraries. Unfortunately, many legacy solutions use structured +XML messages; in those environments the applications would have to be refactored to +interoperate with my components. + +The better solution is to just provide an alternative HTTP handler that receives +XML messages and parses it into a `map[string]interface{}` value and then reuse +all the JSON-based code. The Go `xml.Unmarshal()` function does not provide the same +option of unmarshaling XML messages into `map[string]interface{}` values. So I wrote +a couple of small functions to fill this gap and released them as the x2j package. + +Over the next year and a half additional features were added, and the companion j2x +package was released to address XML encoding of arbitrary JSON and `map[string]interface{}` +values. As part of a refactoring of our production system and looking at how we had been +using the x2j and j2x packages we found that we rarely performed direct XML-to-JSON or +JSON-to_XML conversion and that working with the XML or JSON as `map[string]interface{}` +values was the primary value. Thus, everything was refactored into the mxj package. + diff --git a/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/remove.go b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/remove.go new file mode 100644 index 00000000..8362ab17 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/remove.go @@ -0,0 +1,37 @@ +package mxj + +import "strings" + +// Removes the path. +func (mv Map) Remove(path string) error { + m := map[string]interface{}(mv) + return remove(m, path) +} + +func remove(m interface{}, path string) error { + val, err := prevValueByPath(m, path) + if err != nil { + return err + } + + lastKey := lastKey(path) + delete(val, lastKey) + + return nil +} + +// returns the last key of the path. +// lastKey("a.b.c") would had returned "c" +func lastKey(path string) string { + keys := strings.Split(path, ".") + key := keys[len(keys)-1] + return key +} + +// returns the path without the last key +// parentPath("a.b.c") whould had returned "a.b" +func parentPath(path string) string { + keys := strings.Split(path, ".") + parentPath := strings.Join(keys[0:len(keys)-1], ".") + return parentPath +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/rename.go b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/rename.go new file mode 100644 index 00000000..4c655ed5 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/rename.go @@ -0,0 +1,61 @@ +package mxj + +import ( + "errors" + "strings" +) + +// RenameKey renames a key in a Map. +// It works only for nested maps. +// It doesn't work for cases when the key is in a list. +func (mv Map) RenameKey(path string, newName string) error { + var v bool + var err error + if v, err = mv.Exists(path); err == nil && !v { + return errors.New("RenameKey: path not found: " + path) + } else if err != nil { + return err + } + if v, err = mv.Exists(parentPath(path) + "." + newName); err == nil && v { + return errors.New("RenameKey: key already exists: " + newName) + } else if err != nil { + return err + } + + m := map[string]interface{}(mv) + return renameKey(m, path, newName) +} + +func renameKey(m interface{}, path string, newName string) error { + val, err := prevValueByPath(m, path) + if err != nil { + return err + } + + oldName := lastKey(path) + val[newName] = val[oldName] + delete(val, oldName) + + return nil +} + +// returns a value which contains a last key in the path +// For example: prevValueByPath("a.b.c", {a{b{c: 3}}}) returns {c: 3} +func prevValueByPath(m interface{}, path string) (map[string]interface{}, error) { + keys := strings.Split(path, ".") + + switch mValue := m.(type) { + case map[string]interface{}: + for key, value := range mValue { + if key == keys[0] { + if len(keys) == 1 { + return mValue, nil + } else { + // keep looking for the full path to the key + return prevValueByPath(value, strings.Join(keys[1:], ".")) + } + } + } + } + return nil, errors.New("prevValueByPath: didn't find path – " + path) +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/set.go b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/set.go new file mode 100644 index 00000000..a297fc38 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/set.go @@ -0,0 +1,26 @@ +package mxj + +import ( + "strings" +) + +// Sets the value for the path +func (mv Map) SetValueForPath(value interface{}, path string) error { + pathAry := strings.Split(path, ".") + parentPathAry := pathAry[0 : len(pathAry)-1] + parentPath := strings.Join(parentPathAry, ".") + + val, err := mv.ValueForPath(parentPath) + if err != nil { + return err + } + if val == nil { + return nil // we just ignore the request if there's no val + } + + key := pathAry[len(pathAry)-1] + cVal := val.(map[string]interface{}) + cVal[key] = value + + return nil +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/setfieldsep.go b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/setfieldsep.go new file mode 100644 index 00000000..b70715eb --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/setfieldsep.go @@ -0,0 +1,20 @@ +package mxj + +// Per: https://github.com/clbanning/mxj/issues/37#issuecomment-278651862 +var fieldSep string = ":" + +// SetFieldSeparator changes the default field separator, ":", for the +// newVal argument in mv.UpdateValuesForPath and the optional 'subkey' arguments +// in mv.ValuesForKey and mv.ValuesForPath. +// +// E.g., if the newVal value is "http://blah/blah", setting the field separator +// to "|" will allow the newVal specification, "|http://blah/blah" to parse +// properly. If called with no argument or an empty string value, the field +// separator is set to the default, ":". +func SetFieldSeparator(s ...string) { + if len(s) == 0 || s[0] == "" { + fieldSep = ":" // the default + return + } + fieldSep = s[0] +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/songtext.xml b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/songtext.xml new file mode 100644 index 00000000..8c0f2bec --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/songtext.xml @@ -0,0 +1,29 @@ + + help me! + + + + Henry was a renegade + Didn't like to play it safe + One component at a time + There's got to be a better way + Oh, people came from miles around + Searching for a steady job + Welcome to the Motor Town + Booming like an atom bomb + + + Oh, Henry was the end of the story + Then everything went wrong + And we'll return it to its former glory + But it just takes so long + + + + It's going to take a long time + It's going to take it, but we'll make it one day + It's going to take a long time + It's going to take it, but we'll make it one day + + + diff --git a/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/strict.go b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/strict.go new file mode 100644 index 00000000..1e769560 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/strict.go @@ -0,0 +1,30 @@ +// Copyright 2016 Charles Banning. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file + +// strict.go actually addresses setting xml.Decoder attribute +// values. This'll let you parse non-standard XML. + +package mxj + +import ( + "encoding/xml" +) + +// CustomDecoder can be used to specify xml.Decoder attribute +// values, e.g., Strict:false, to be used. By default CustomDecoder +// is nil. If CustomeDecoder != nil, then mxj.XmlCharsetReader variable is +// ignored and must be set as part of the CustomDecoder value, if needed. +// Usage: +// mxj.CustomDecoder = &xml.Decoder{Strict:false} +var CustomDecoder *xml.Decoder + +// useCustomDecoder copy over public attributes from customDecoder +func useCustomDecoder(d *xml.Decoder) { + d.Strict = CustomDecoder.Strict + d.AutoClose = CustomDecoder.AutoClose + d.Entity = CustomDecoder.Entity + d.CharsetReader = CustomDecoder.CharsetReader + d.DefaultSpace = CustomDecoder.DefaultSpace +} + diff --git a/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/struct.go b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/struct.go new file mode 100644 index 00000000..9be636cd --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/struct.go @@ -0,0 +1,54 @@ +// Copyright 2012-2017 Charles Banning. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file + +package mxj + +import ( + "encoding/json" + "errors" + "reflect" + + // "github.com/fatih/structs" +) + +// Create a new Map value from a structure. Error returned if argument is not a structure. +// Only public structure fields are decoded in the Map value. See github.com/fatih/structs#Map +// for handling of "structs" tags. + +// DEPRECATED - import github.com/fatih/structs and cast result of structs.Map to mxj.Map. +// import "github.com/fatih/structs" +// ... +// sm, err := structs.Map() +// if err != nil { +// // handle error +// } +// m := mxj.Map(sm) +// Alernatively uncomment the old source and import in struct.go. +func NewMapStruct(structVal interface{}) (Map, error) { + return nil, errors.New("deprecated - see package documentation") + /* + if !structs.IsStruct(structVal) { + return nil, errors.New("NewMapStruct() error: argument is not type Struct") + } + return structs.Map(structVal), nil + */ +} + +// Marshal a map[string]interface{} into a structure referenced by 'structPtr'. Error returned +// if argument is not a pointer or if json.Unmarshal returns an error. +// json.Unmarshal structure encoding rules are followed to encode public structure fields. +func (mv Map) Struct(structPtr interface{}) error { + // should check that we're getting a pointer. + if reflect.ValueOf(structPtr).Kind() != reflect.Ptr { + return errors.New("mv.Struct() error: argument is not type Ptr") + } + + m := map[string]interface{}(mv) + j, err := json.Marshal(m) + if err != nil { + return err + } + + return json.Unmarshal(j, structPtr) +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/updatevalues.go b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/updatevalues.go new file mode 100644 index 00000000..9e10d84e --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/updatevalues.go @@ -0,0 +1,258 @@ +// Copyright 2012-2014, 2017 Charles Banning. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file + +// updatevalues.go - modify a value based on path and possibly sub-keys +// TODO(clb): handle simple elements with attributes and NewMapXmlSeq Map values. + +package mxj + +import ( + "fmt" + "strconv" + "strings" +) + +// Update value based on path and possible sub-key values. +// A count of the number of values changed and any error are returned. +// If the count == 0, then no path (and subkeys) matched. +// 'newVal' can be a Map or map[string]interface{} value with a single 'key' that is the key to be modified +// or a string value "key:value[:type]" where type is "bool" or "num" to cast the value. +// 'path' is dot-notation list of keys to traverse; last key in path can be newVal key +// NOTE: 'path' spec does not currently support indexed array references. +// 'subkeys' are "key:value[:type]" entries that must match for path node +// - For attributes prefix the label with the attribute prefix character, by default a +// hyphen, '-', e.g., "-seq:3". (See SetAttrPrefix function.) +// - The subkey can be wildcarded - "key:*" - to require that it's there with some value. +// - If a subkey is preceeded with the '!' character, the key:value[:type] entry is treated as an +// exclusion critera - e.g., "!author:William T. Gaddis". +// +// NOTES: +// 1. Simple elements with attributes need a path terminated as ".#text" to modify the actual value. +// 2. Values in Maps created using NewMapXmlSeq are map[string]interface{} values with a "#text" key. +// 3. If values in 'newVal' or 'subkeys' args contain ":", use SetFieldSeparator to an unused symbol, +// perhaps "|". +func (mv Map) UpdateValuesForPath(newVal interface{}, path string, subkeys ...string) (int, error) { + m := map[string]interface{}(mv) + + // extract the subkeys + var subKeyMap map[string]interface{} + if len(subkeys) > 0 { + var err error + subKeyMap, err = getSubKeyMap(subkeys...) + if err != nil { + return 0, err + } + } + + // extract key and value from newVal + var key string + var val interface{} + switch newVal.(type) { + case map[string]interface{}, Map: + switch newVal.(type) { // "fallthrough is not permitted in type switch" (Spec) + case Map: + newVal = newVal.(Map).Old() + } + if len(newVal.(map[string]interface{})) != 1 { + return 0, fmt.Errorf("newVal map can only have len == 1 - %+v", newVal) + } + for key, val = range newVal.(map[string]interface{}) { + } + case string: // split it as a key:value pair + ss := strings.Split(newVal.(string), fieldSep) + n := len(ss) + if n < 2 || n > 3 { + return 0, fmt.Errorf("unknown newVal spec - %+v", newVal) + } + key = ss[0] + if n == 2 { + val = interface{}(ss[1]) + } else if n == 3 { + switch ss[2] { + case "bool", "boolean": + nv, err := strconv.ParseBool(ss[1]) + if err != nil { + return 0, fmt.Errorf("can't convert newVal to bool - %+v", newVal) + } + val = interface{}(nv) + case "num", "numeric", "float", "int": + nv, err := strconv.ParseFloat(ss[1], 64) + if err != nil { + return 0, fmt.Errorf("can't convert newVal to float64 - %+v", newVal) + } + val = interface{}(nv) + default: + return 0, fmt.Errorf("unknown type for newVal value - %+v", newVal) + } + } + default: + return 0, fmt.Errorf("invalid newVal type - %+v", newVal) + } + + // parse path + keys := strings.Split(path, ".") + + var count int + updateValuesForKeyPath(key, val, m, keys, subKeyMap, &count) + + return count, nil +} + +// navigate the path +func updateValuesForKeyPath(key string, value interface{}, m interface{}, keys []string, subkeys map[string]interface{}, cnt *int) { + // ----- at end node: looking at possible node to get 'key' ---- + if len(keys) == 1 { + updateValue(key, value, m, keys[0], subkeys, cnt) + return + } + + // ----- here we are navigating the path thru the penultimate node -------- + // key of interest is keys[0] - the next in the path + switch keys[0] { + case "*": // wildcard - scan all values + switch m.(type) { + case map[string]interface{}: + for _, v := range m.(map[string]interface{}) { + updateValuesForKeyPath(key, value, v, keys[1:], subkeys, cnt) + } + case []interface{}: + for _, v := range m.([]interface{}) { + switch v.(type) { + // flatten out a list of maps - keys are processed + case map[string]interface{}: + for _, vv := range v.(map[string]interface{}) { + updateValuesForKeyPath(key, value, vv, keys[1:], subkeys, cnt) + } + default: + updateValuesForKeyPath(key, value, v, keys[1:], subkeys, cnt) + } + } + } + default: // key - must be map[string]interface{} + switch m.(type) { + case map[string]interface{}: + if v, ok := m.(map[string]interface{})[keys[0]]; ok { + updateValuesForKeyPath(key, value, v, keys[1:], subkeys, cnt) + } + case []interface{}: // may be buried in list + for _, v := range m.([]interface{}) { + switch v.(type) { + case map[string]interface{}: + if vv, ok := v.(map[string]interface{})[keys[0]]; ok { + updateValuesForKeyPath(key, value, vv, keys[1:], subkeys, cnt) + } + } + } + } + } +} + +// change value if key and subkeys are present +func updateValue(key string, value interface{}, m interface{}, keys0 string, subkeys map[string]interface{}, cnt *int) { + // there are two possible options for the value of 'keys0': map[string]interface, []interface{} + // and 'key' is a key in the map or is a key in a map in a list. + switch m.(type) { + case map[string]interface{}: // gotta have the last key + if keys0 == "*" { + for k := range m.(map[string]interface{}) { + updateValue(key, value, m, k, subkeys, cnt) + } + return + } + endVal, _ := m.(map[string]interface{})[keys0] + + // if newV key is the end of path, replace the value for path-end + // may be []interface{} - means replace just an entry w/ subkeys + // otherwise replace the keys0 value if subkeys are there + // NOTE: this will replace the subkeys, also + if key == keys0 { + switch endVal.(type) { + case map[string]interface{}: + if hasSubKeys(m, subkeys) { + (m.(map[string]interface{}))[keys0] = value + (*cnt)++ + } + case []interface{}: + // without subkeys can't select list member to modify + // so key:value spec is it ... + if hasSubKeys(m, subkeys) { + (m.(map[string]interface{}))[keys0] = value + (*cnt)++ + break + } + nv := make([]interface{}, 0) + var valmodified bool + for _, v := range endVal.([]interface{}) { + // check entry subkeys + if hasSubKeys(v, subkeys) { + // replace v with value + nv = append(nv, value) + valmodified = true + (*cnt)++ + continue + } + nv = append(nv, v) + } + if valmodified { + (m.(map[string]interface{}))[keys0] = interface{}(nv) + } + default: // anything else is a strict replacement + if hasSubKeys(m, subkeys) { + (m.(map[string]interface{}))[keys0] = value + (*cnt)++ + } + } + return + } + + // so value is for an element of endVal + // if endVal is a map then 'key' must be there w/ subkeys + // if endVal is a list then 'key' must be in a list member w/ subkeys + switch endVal.(type) { + case map[string]interface{}: + if !hasSubKeys(endVal, subkeys) { + return + } + if _, ok := (endVal.(map[string]interface{}))[key]; ok { + (endVal.(map[string]interface{}))[key] = value + (*cnt)++ + } + case []interface{}: // keys0 points to a list, check subkeys + for _, v := range endVal.([]interface{}) { + // got to be a map so we can replace value for 'key' + vv, vok := v.(map[string]interface{}) + if !vok { + continue + } + if _, ok := vv[key]; !ok { + continue + } + if !hasSubKeys(vv, subkeys) { + continue + } + vv[key] = value + (*cnt)++ + } + } + case []interface{}: // key may be in a list member + // don't need to handle keys0 == "*"; we're looking at everything, anyway. + for _, v := range m.([]interface{}) { + // only map values - we're looking for 'key' + mm, ok := v.(map[string]interface{}) + if !ok { + continue + } + if _, ok := mm[key]; !ok { + continue + } + if !hasSubKeys(mm, subkeys) { + continue + } + mm[key] = value + (*cnt)++ + } + } + + // return +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/xml.go b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/xml.go new file mode 100644 index 00000000..9aa04233 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/xml.go @@ -0,0 +1,1410 @@ +// Copyright 2012-2016, 2018-2019 Charles Banning. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file + +// xml.go - basically the core of X2j for map[string]interface{} values. +// NewMapXml, NewMapXmlReader, mv.Xml, mv.XmlWriter +// see x2j and j2x for wrappers to provide end-to-end transformation of XML and JSON messages. + +package mxj + +import ( + "bytes" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "reflect" + "sort" + "strconv" + "strings" + "time" +) + +// ------------------- NewMapXml & NewMapXmlReader ... ------------------------- + +// If XmlCharsetReader != nil, it will be used to decode the XML, if required. +// Note: if CustomDecoder != nil, then XmlCharsetReader is ignored; +// set the CustomDecoder attribute instead. +// import ( +// charset "code.google.com/p/go-charset/charset" +// github.com/clbanning/mxj +// ) +// ... +// mxj.XmlCharsetReader = charset.NewReader +// m, merr := mxj.NewMapXml(xmlValue) +var XmlCharsetReader func(charset string, input io.Reader) (io.Reader, error) + +// NewMapXml - convert a XML doc into a Map +// (This is analogous to unmarshalling a JSON string to map[string]interface{} using json.Unmarshal().) +// If the optional argument 'cast' is 'true', then values will be converted to boolean or float64 if possible. +// +// Converting XML to JSON is a simple as: +// ... +// mapVal, merr := mxj.NewMapXml(xmlVal) +// if merr != nil { +// // handle error +// } +// jsonVal, jerr := mapVal.Json() +// if jerr != nil { +// // handle error +// } +// +// NOTES: +// 1. Declarations, directives, process instructions and comments are NOT parsed. +// 2. The 'xmlVal' will be parsed looking for an xml.StartElement, so BOM and other +// extraneous xml.CharData will be ignored unless io.EOF is reached first. +// 3. If CoerceKeysToLower() has been called, then all key values will be lower case. +// 4. If CoerceKeysToSnakeCase() has been called, then all key values will be converted to snake case. +// 5. If DisableTrimWhiteSpace(b bool) has been called, then all values will be trimmed or not. 'true' by default. +func NewMapXml(xmlVal []byte, cast ...bool) (Map, error) { + var r bool + if len(cast) == 1 { + r = cast[0] + } + return xmlToMap(xmlVal, r) +} + +// Get next XML doc from an io.Reader as a Map value. Returns Map value. +// NOTES: +// 1. Declarations, directives, process instructions and comments are NOT parsed. +// 2. The 'xmlReader' will be parsed looking for an xml.StartElement, so BOM and other +// extraneous xml.CharData will be ignored unless io.EOF is reached first. +// 3. If CoerceKeysToLower() has been called, then all key values will be lower case. +// 4. If CoerceKeysToSnakeCase() has been called, then all key values will be converted to snake case. +func NewMapXmlReader(xmlReader io.Reader, cast ...bool) (Map, error) { + var r bool + if len(cast) == 1 { + r = cast[0] + } + + // We need to put an *os.File reader in a ByteReader or the xml.NewDecoder + // will wrap it in a bufio.Reader and seek on the file beyond where the + // xml.Decoder parses! + if _, ok := xmlReader.(io.ByteReader); !ok { + xmlReader = myByteReader(xmlReader) // see code at EOF + } + + // build the map + return xmlReaderToMap(xmlReader, r) +} + +// Get next XML doc from an io.Reader as a Map value. Returns Map value and slice with the raw XML. +// NOTES: +// 1. Declarations, directives, process instructions and comments are NOT parsed. +// 2. Due to the implementation of xml.Decoder, the raw XML off the reader is buffered to []byte +// using a ByteReader. If the io.Reader is an os.File, there may be significant performance impact. +// See the examples - getmetrics1.go through getmetrics4.go - for comparative use cases on a large +// data set. If the io.Reader is wrapping a []byte value in-memory, however, such as http.Request.Body +// you CAN use it to efficiently unmarshal a XML doc and retrieve the raw XML in a single call. +// 3. The 'raw' return value may be larger than the XML text value. +// 4. The 'xmlReader' will be parsed looking for an xml.StartElement, so BOM and other +// extraneous xml.CharData will be ignored unless io.EOF is reached first. +// 5. If CoerceKeysToLower() has been called, then all key values will be lower case. +// 6. If CoerceKeysToSnakeCase() has been called, then all key values will be converted to snake case. +func NewMapXmlReaderRaw(xmlReader io.Reader, cast ...bool) (Map, []byte, error) { + var r bool + if len(cast) == 1 { + r = cast[0] + } + // create TeeReader so we can retrieve raw XML + buf := make([]byte, 0) + wb := bytes.NewBuffer(buf) + trdr := myTeeReader(xmlReader, wb) // see code at EOF + + m, err := xmlReaderToMap(trdr, r) + + // retrieve the raw XML that was decoded + b := wb.Bytes() + + if err != nil { + return nil, b, err + } + + return m, b, nil +} + +// xmlReaderToMap() - parse a XML io.Reader to a map[string]interface{} value +func xmlReaderToMap(rdr io.Reader, r bool) (map[string]interface{}, error) { + // parse the Reader + p := xml.NewDecoder(rdr) + if CustomDecoder != nil { + useCustomDecoder(p) + } else { + p.CharsetReader = XmlCharsetReader + } + return xmlToMapParser("", nil, p, r) +} + +// xmlToMap - convert a XML doc into map[string]interface{} value +func xmlToMap(doc []byte, r bool) (map[string]interface{}, error) { + b := bytes.NewReader(doc) + p := xml.NewDecoder(b) + if CustomDecoder != nil { + useCustomDecoder(p) + } else { + p.CharsetReader = XmlCharsetReader + } + return xmlToMapParser("", nil, p, r) +} + +// ===================================== where the work happens ============================= + +// PrependAttrWithHyphen. Prepend attribute tags with a hyphen. +// Default is 'true'. (Not applicable to NewMapXmlSeq(), mv.XmlSeq(), etc.) +// Note: +// If 'false', unmarshaling and marshaling is not symmetric. Attributes will be +// marshal'd as attr and may be part of a list. +func PrependAttrWithHyphen(v bool) { + if v { + attrPrefix = "-" + lenAttrPrefix = len(attrPrefix) + return + } + attrPrefix = "" + lenAttrPrefix = len(attrPrefix) +} + +// Include sequence id with inner tags. - per Sean Murphy, murphysean84@gmail.com. +var includeTagSeqNum bool + +// IncludeTagSeqNum - include a "_seq":N key:value pair with each inner tag, denoting +// its position when parsed. This is of limited usefulness, since list values cannot +// be tagged with "_seq" without changing their depth in the Map. +// So THIS SHOULD BE USED WITH CAUTION - see the test cases. Here's a sample of what +// you get. +/* + + + + + hello + + + parses as: + + { + Obj:{ + "-c":"la", + "-h":"da", + "-x":"dee", + "intObj":[ + { + "-id"="3", + "_seq":"0" // if mxj.Cast is passed, then: "_seq":0 + }, + { + "-id"="2", + "_seq":"2" + }], + "intObj1":{ + "-id":"1", + "_seq":"1" + }, + "StrObj":{ + "#text":"hello", // simple element value gets "#text" tag + "_seq":"3" + } + } + } +*/ +func IncludeTagSeqNum(b ...bool) { + if len(b) == 0 { + includeTagSeqNum = !includeTagSeqNum + } else if len(b) == 1 { + includeTagSeqNum = b[0] + } +} + +// all keys will be "lower case" +var lowerCase bool + +// Coerce all tag values to keys in lower case. This is useful if you've got sources with variable +// tag capitalization, and you want to use m.ValuesForKeys(), etc., with the key or path spec +// in lower case. +// CoerceKeysToLower() will toggle the coercion flag true|false - on|off +// CoerceKeysToLower(true|false) will set the coercion flag on|off +// +// NOTE: only recognized by NewMapXml, NewMapXmlReader, and NewMapXmlReaderRaw functions as well as +// the associated HandleXmlReader and HandleXmlReaderRaw. +func CoerceKeysToLower(b ...bool) { + if len(b) == 0 { + lowerCase = !lowerCase + } else if len(b) == 1 { + lowerCase = b[0] + } +} + +// disableTrimWhiteSpace sets if the white space should be removed or not +var disableTrimWhiteSpace bool +var trimRunes = "\t\r\b\n " + +// DisableTrimWhiteSpace set if the white space should be trimmed or not. By default white space is always trimmed. If +// no argument is provided, trim white space will be disabled. +func DisableTrimWhiteSpace(b ...bool) { + if len(b) == 0 { + disableTrimWhiteSpace = true + } else { + disableTrimWhiteSpace = b[0] + } + + if disableTrimWhiteSpace { + trimRunes = "\t\r\b\n" + } else { + trimRunes = "\t\r\b\n " + } +} + +// 25jun16: Allow user to specify the "prefix" character for XML attribute key labels. +// We do this by replacing '`' constant with attrPrefix var, replacing useHyphen with attrPrefix = "", +// and adding a SetAttrPrefix(s string) function. + +var attrPrefix string = `-` // the default +var lenAttrPrefix int = 1 // the default + +// SetAttrPrefix changes the default, "-", to the specified value, s. +// SetAttrPrefix("") is the same as PrependAttrWithHyphen(false). +// (Not applicable for NewMapXmlSeq(), mv.XmlSeq(), etc.) +func SetAttrPrefix(s string) { + attrPrefix = s + lenAttrPrefix = len(attrPrefix) +} + +// 18jan17: Allows user to specify if the map keys should be in snake case instead +// of the default hyphenated notation. +var snakeCaseKeys bool + +// CoerceKeysToSnakeCase changes the default, false, to the specified value, b. +// Note: the attribute prefix will be a hyphen, '-', or what ever string value has +// been specified using SetAttrPrefix. +func CoerceKeysToSnakeCase(b ...bool) { + if len(b) == 0 { + snakeCaseKeys = !snakeCaseKeys + } else if len(b) == 1 { + snakeCaseKeys = b[0] + } +} + +// 10jan19: use of pull request #57 should be conditional - legacy code assumes +// numeric values are float64. +var castToInt bool + +// CastValuesToInt tries to coerce numeric valus to int64 or uint64 instead of the +// default float64. Repeated calls with no argument will toggle this on/off, or this +// handling will be set with the value of 'b'. +func CastValuesToInt(b ...bool) { + if len(b) == 0 { + castToInt = !castToInt + } else if len(b) == 1 { + castToInt = b[0] + } +} + +// 05feb17: support processing XMPP streams (issue #36) +var handleXMPPStreamTag bool + +// HandleXMPPStreamTag causes decoder to parse XMPP elements. +// If called with no argument, XMPP stream element handling is toggled on/off. +// (See xmppStream_test.go for example.) +// If called with NewMapXml, NewMapXmlReader, New MapXmlReaderRaw the "stream" +// element will be returned as: +// map["stream"]interface{}{map[-]interface{}}. +// If called with NewMapSeq, NewMapSeqReader, NewMapSeqReaderRaw the "stream" +// element will be returned as: +// map["stream:stream"]interface{}{map["#attr"]interface{}{map[string]interface{}}} +// where the "#attr" values have "#text" and "#seq" keys. (See NewMapXmlSeq.) +func HandleXMPPStreamTag(b ...bool) { + if len(b) == 0 { + handleXMPPStreamTag = !handleXMPPStreamTag + } else if len(b) == 1 { + handleXMPPStreamTag = b[0] + } +} + +// 21jan18 - decode all values as map["#text":value] (issue #56) +var decodeSimpleValuesAsMap bool + +// DecodeSimpleValuesAsMap forces all values to be decoded as map["#text":]. +// If called with no argument, the decoding is toggled on/off. +// +// By default the NewMapXml functions decode simple values without attributes as +// map[:]. This function causes simple values without attributes to be +// decoded the same as simple values with attributes - map[:map["#text":]]. +func DecodeSimpleValuesAsMap(b ...bool) { + if len(b) == 0 { + decodeSimpleValuesAsMap = !decodeSimpleValuesAsMap + } else if len(b) == 1 { + decodeSimpleValuesAsMap = b[0] + } +} + +// xmlToMapParser (2015.11.12) - load a 'clean' XML doc into a map[string]interface{} directly. +// A refactoring of xmlToTreeParser(), markDuplicate() and treeToMap() - here, all-in-one. +// We've removed the intermediate *node tree with the allocation and subsequent rescanning. +func xmlToMapParser(skey string, a []xml.Attr, p *xml.Decoder, r bool) (map[string]interface{}, error) { + if lowerCase { + skey = strings.ToLower(skey) + } + if snakeCaseKeys { + skey = strings.Replace(skey, "-", "_", -1) + } + + // NOTE: all attributes and sub-elements parsed into 'na', 'na' is returned as value for 'skey' in 'n'. + // Unless 'skey' is a simple element w/o attributes, in which case the xml.CharData value is the value. + var n, na map[string]interface{} + var seq int // for includeTagSeqNum + + // Allocate maps and load attributes, if any. + // NOTE: on entry from NewMapXml(), etc., skey=="", and we fall through + // to get StartElement then recurse with skey==xml.StartElement.Name.Local + // where we begin allocating map[string]interface{} values 'n' and 'na'. + if skey != "" { + n = make(map[string]interface{}) // old n + na = make(map[string]interface{}) // old n.nodes + if len(a) > 0 { + for _, v := range a { + if snakeCaseKeys { + v.Name.Local = strings.Replace(v.Name.Local, "-", "_", -1) + } + var key string + key = attrPrefix + v.Name.Local + if lowerCase { + key = strings.ToLower(key) + } + if xmlEscapeCharsDecoder { // per issue#84 + v.Value = escapeChars(v.Value) + } + na[key] = cast(v.Value, r, key) + } + } + } + // Return XMPP message. + if handleXMPPStreamTag && skey == "stream" { + n[skey] = na + return n, nil + } + + for { + t, err := p.Token() + if err != nil { + if err != io.EOF { + return nil, errors.New("xml.Decoder.Token() - " + err.Error()) + } + return nil, err + } + switch t.(type) { + case xml.StartElement: + tt := t.(xml.StartElement) + + // First call to xmlToMapParser() doesn't pass xml.StartElement - the map key. + // So when the loop is first entered, the first token is the root tag along + // with any attributes, which we process here. + // + // Subsequent calls to xmlToMapParser() will pass in tag+attributes for + // processing before getting the next token which is the element value, + // which is done above. + if skey == "" { + return xmlToMapParser(tt.Name.Local, tt.Attr, p, r) + } + + // If not initializing the map, parse the element. + // len(nn) == 1, necessarily - it is just an 'n'. + nn, err := xmlToMapParser(tt.Name.Local, tt.Attr, p, r) + if err != nil { + return nil, err + } + + // The nn map[string]interface{} value is a na[nn_key] value. + // We need to see if nn_key already exists - means we're parsing a list. + // This may require converting na[nn_key] value into []interface{} type. + // First, extract the key:val for the map - it's a singleton. + // Note: + // * if CoerceKeysToLower() called, then key will be lower case. + // * if CoerceKeysToSnakeCase() called, then key will be converted to snake case. + var key string + var val interface{} + for key, val = range nn { + break + } + + // IncludeTagSeqNum requests that the element be augmented with a "_seq" sub-element. + // In theory, we don't need this if len(na) == 1. But, we don't know what might + // come next - we're only parsing forward. So if you ask for 'includeTagSeqNum' you + // get it on every element. (Personally, I never liked this, but I added it on request + // and did get a $50 Amazon gift card in return - now we support it for backwards compatibility!) + if includeTagSeqNum { + switch val.(type) { + case []interface{}: + // noop - There's no clean way to handle this w/o changing message structure. + case map[string]interface{}: + val.(map[string]interface{})["_seq"] = seq // will overwrite an "_seq" XML tag + seq++ + case interface{}: // a non-nil simple element: string, float64, bool + v := map[string]interface{}{"#text": val} + v["_seq"] = seq + seq++ + val = v + } + } + + // 'na' holding sub-elements of n. + // See if 'key' already exists. + // If 'key' exists, then this is a list, if not just add key:val to na. + if v, ok := na[key]; ok { + var a []interface{} + switch v.(type) { + case []interface{}: + a = v.([]interface{}) + default: // anything else - note: v.(type) != nil + a = []interface{}{v} + } + a = append(a, val) + na[key] = a + } else { + na[key] = val // save it as a singleton + } + case xml.EndElement: + // len(n) > 0 if this is a simple element w/o xml.Attrs - see xml.CharData case. + if len(n) == 0 { + // If len(na)==0 we have an empty element == ""; + // it has no xml.Attr nor xml.CharData. + // Note: in original node-tree parser, val defaulted to ""; + // so we always had the default if len(node.nodes) == 0. + if len(na) > 0 { + n[skey] = na + } else { + n[skey] = "" // empty element + } + } else if len(n) == 1 && len(na) > 0 { + // it's a simple element w/ no attributes w/ subelements + for _, v := range n { + na["#text"] = v + } + n[skey] = na + } + return n, nil + case xml.CharData: + // clean up possible noise + tt := strings.Trim(string(t.(xml.CharData)), trimRunes) + if xmlEscapeCharsDecoder { // issue#84 + tt = escapeChars(tt) + } + if len(tt) > 0 { + if len(na) > 0 || decodeSimpleValuesAsMap { + na["#text"] = cast(tt, r, "#text") + } else if skey != "" { + n[skey] = cast(tt, r, skey) + } else { + // per Adrian (http://www.adrianlungu.com/) catch stray text + // in decoder stream - + // https://github.com/clbanning/mxj/pull/14#issuecomment-182816374 + // NOTE: CharSetReader must be set to non-UTF-8 CharSet or you'll get + // a p.Token() decoding error when the BOM is UTF-16 or UTF-32. + continue + } + } + default: + // noop + } + } +} + +var castNanInf bool + +// Cast "Nan", "Inf", "-Inf" XML values to 'float64'. +// By default, these values will be decoded as 'string'. +func CastNanInf(b ...bool) { + if len(b) == 0 { + castNanInf = !castNanInf + } else if len(b) == 1 { + castNanInf = b[0] + } +} + +// cast - try to cast string values to bool or float64 +// 't' is the tag key that can be checked for 'not-casting' +func cast(s string, r bool, t string) interface{} { + if checkTagToSkip != nil && t != "" && checkTagToSkip(t) { + // call the check-function here with 't[0]' + // if 'true' return s + return s + } + + if r { + // handle nan and inf + if !castNanInf { + switch strings.ToLower(s) { + case "nan", "inf", "-inf": + return s + } + } + + // handle numeric strings ahead of boolean + if castToInt { + if f, err := strconv.ParseInt(s, 10, 64); err == nil { + return f + } + if f, err := strconv.ParseUint(s, 10, 64); err == nil { + return f + } + } + + if castToFloat { + if f, err := strconv.ParseFloat(s, 64); err == nil { + return f + } + } + + // ParseBool treats "1"==true & "0"==false, we've already scanned those + // values as float64. See if value has 't' or 'f' as initial screen to + // minimize calls to ParseBool; also, see if len(s) < 6. + if castToBool { + if len(s) > 0 && len(s) < 6 { + switch s[:1] { + case "t", "T", "f", "F": + if b, err := strconv.ParseBool(s); err == nil { + return b + } + } + } + } + } + return s +} + +// pull request, #59 +var castToFloat = true + +// CastValuesToFloat can be used to skip casting to float64 when +// "cast" argument is 'true' in NewMapXml, etc. +// Default is true. +func CastValuesToFloat(b ...bool) { + if len(b) == 0 { + castToFloat = !castToFloat + } else if len(b) == 1 { + castToFloat = b[0] + } +} + +var castToBool = true + +// CastValuesToBool can be used to skip casting to bool when +// "cast" argument is 'true' in NewMapXml, etc. +// Default is true. +func CastValuesToBool(b ...bool) { + if len(b) == 0 { + castToBool = !castToBool + } else if len(b) == 1 { + castToBool = b[0] + } +} + +// checkTagToSkip - switch to address Issue #58 + +var checkTagToSkip func(string) bool + +// SetCheckTagToSkipFunc registers function to test whether the value +// for a tag should be cast to bool or float64 when "cast" argument is 'true'. +// (Dot tag path notation is not supported.) +// NOTE: key may be "#text" if it's a simple element with attributes +// or "decodeSimpleValuesAsMap == true". +// NOTE: does not apply to NewMapXmlSeq... functions. +func SetCheckTagToSkipFunc(fn func(string) bool) { + checkTagToSkip = fn +} + +// ------------------ END: NewMapXml & NewMapXmlReader ------------------------- + +// ------------------ mv.Xml & mv.XmlWriter - from j2x ------------------------ + +const ( + DefaultRootTag = "doc" +) + +var useGoXmlEmptyElemSyntax bool + +// XmlGoEmptyElemSyntax() - rather than . +// Go's encoding/xml package marshals empty XML elements as . By default this package +// encodes empty elements as . If you're marshaling Map values that include structures +// (which are passed to xml.Marshal for encoding), this will let you conform to the standard package. +func XmlGoEmptyElemSyntax() { + useGoXmlEmptyElemSyntax = true +} + +// XmlDefaultEmptyElemSyntax() - rather than . +// Return XML encoding for empty elements to the default package setting. +// Reverses effect of XmlGoEmptyElemSyntax(). +func XmlDefaultEmptyElemSyntax() { + useGoXmlEmptyElemSyntax = false +} + +// ------- issue #88 ---------- +// xmlCheckIsValid set switch to force decoding the encoded XML to +// see if it is valid XML. +var xmlCheckIsValid bool + +// XmlCheckIsValid forces the encoded XML to be checked for validity. +func XmlCheckIsValid(b ...bool) { + if len(b) == 1 { + xmlCheckIsValid = b[0] + return + } + xmlCheckIsValid = !xmlCheckIsValid +} + +// Encode a Map as XML. The companion of NewMapXml(). +// The following rules apply. +// - The key label "#text" is treated as the value for a simple element with attributes. +// - Map keys that begin with a hyphen, '-', are interpreted as attributes. +// It is an error if the attribute doesn't have a []byte, string, number, or boolean value. +// - Map value type encoding: +// > string, bool, float64, int, int32, int64, float32: per "%v" formating +// > []bool, []uint8: by casting to string +// > structures, etc.: handed to xml.Marshal() - if there is an error, the element +// value is "UNKNOWN" +// - Elements with only attribute values or are null are terminated using "/>". +// - If len(mv) == 1 and no rootTag is provided, then the map key is used as the root tag, possible. +// Thus, `{ "key":"value" }` encodes as "value". +// - To encode empty elements in a syntax consistent with encoding/xml call UseGoXmlEmptyElementSyntax(). +// The attributes tag=value pairs are alphabetized by "tag". Also, when encoding map[string]interface{} values - +// complex elements, etc. - the key:value pairs are alphabetized by key so the resulting tags will appear sorted. +func (mv Map) Xml(rootTag ...string) ([]byte, error) { + m := map[string]interface{}(mv) + var err error + b := new(bytes.Buffer) + p := new(pretty) // just a stub + + if len(m) == 1 && len(rootTag) == 0 { + for key, value := range m { + // if it an array, see if all values are map[string]interface{} + // we force a new root tag if we'll end up with no key:value in the list + // so: key:[string_val, bool:true] --> string_valtrue + switch value.(type) { + case []interface{}: + for _, v := range value.([]interface{}) { + switch v.(type) { + case map[string]interface{}: // noop + default: // anything else + err = marshalMapToXmlIndent(false, b, DefaultRootTag, m, p) + goto done + } + } + } + err = marshalMapToXmlIndent(false, b, key, value, p) + } + } else if len(rootTag) == 1 { + err = marshalMapToXmlIndent(false, b, rootTag[0], m, p) + } else { + err = marshalMapToXmlIndent(false, b, DefaultRootTag, m, p) + } +done: + if xmlCheckIsValid { + d := xml.NewDecoder(bytes.NewReader(b.Bytes())) + for { + _, err = d.Token() + if err == io.EOF { + err = nil + break + } else if err != nil { + return nil, err + } + } + } + return b.Bytes(), err +} + +// The following implementation is provided only for symmetry with NewMapXmlReader[Raw] +// The names will also provide a key for the number of return arguments. + +// Writes the Map as XML on the Writer. +// See Xml() for encoding rules. +func (mv Map) XmlWriter(xmlWriter io.Writer, rootTag ...string) error { + x, err := mv.Xml(rootTag...) + if err != nil { + return err + } + + _, err = xmlWriter.Write(x) + return err +} + +// Writes the Map as XML on the Writer. []byte is the raw XML that was written. +// See Xml() for encoding rules. +/* +func (mv Map) XmlWriterRaw(xmlWriter io.Writer, rootTag ...string) ([]byte, error) { + x, err := mv.Xml(rootTag...) + if err != nil { + return x, err + } + + _, err = xmlWriter.Write(x) + return x, err +} +*/ + +// Writes the Map as pretty XML on the Writer. +// See Xml() for encoding rules. +func (mv Map) XmlIndentWriter(xmlWriter io.Writer, prefix, indent string, rootTag ...string) error { + x, err := mv.XmlIndent(prefix, indent, rootTag...) + if err != nil { + return err + } + + _, err = xmlWriter.Write(x) + return err +} + +// Writes the Map as pretty XML on the Writer. []byte is the raw XML that was written. +// See Xml() for encoding rules. +/* +func (mv Map) XmlIndentWriterRaw(xmlWriter io.Writer, prefix, indent string, rootTag ...string) ([]byte, error) { + x, err := mv.XmlIndent(prefix, indent, rootTag...) + if err != nil { + return x, err + } + + _, err = xmlWriter.Write(x) + return x, err +} +*/ + +// -------------------- END: mv.Xml & mv.XmlWriter ------------------------------- + +// -------------- Handle XML stream by processing Map value -------------------- + +// Default poll delay to keep Handler from spinning on an open stream +// like sitting on os.Stdin waiting for imput. +var xhandlerPollInterval = time.Millisecond + +// Bulk process XML using handlers that process a Map value. +// 'rdr' is an io.Reader for XML (stream) +// 'mapHandler' is the Map processor. Return of 'false' stops io.Reader processing. +// 'errHandler' is the error processor. Return of 'false' stops io.Reader processing and returns the error. +// Note: mapHandler() and errHandler() calls are blocking, so reading and processing of messages is serialized. +// This means that you can stop reading the file on error or after processing a particular message. +// To have reading and handling run concurrently, pass argument to a go routine in handler and return 'true'. +func HandleXmlReader(xmlReader io.Reader, mapHandler func(Map) bool, errHandler func(error) bool) error { + var n int + for { + m, merr := NewMapXmlReader(xmlReader) + n++ + + // handle error condition with errhandler + if merr != nil && merr != io.EOF { + merr = fmt.Errorf("[xmlReader: %d] %s", n, merr.Error()) + if ok := errHandler(merr); !ok { + // caused reader termination + return merr + } + continue + } + + // pass to maphandler + if len(m) != 0 { + if ok := mapHandler(m); !ok { + break + } + } else if merr != io.EOF { + time.Sleep(xhandlerPollInterval) + } + + if merr == io.EOF { + break + } + } + return nil +} + +// Bulk process XML using handlers that process a Map value and the raw XML. +// 'rdr' is an io.Reader for XML (stream) +// 'mapHandler' is the Map and raw XML - []byte - processor. Return of 'false' stops io.Reader processing. +// 'errHandler' is the error and raw XML processor. Return of 'false' stops io.Reader processing and returns the error. +// Note: mapHandler() and errHandler() calls are blocking, so reading and processing of messages is serialized. +// This means that you can stop reading the file on error or after processing a particular message. +// To have reading and handling run concurrently, pass argument(s) to a go routine in handler and return 'true'. +// See NewMapXmlReaderRaw for comment on performance associated with retrieving raw XML from a Reader. +func HandleXmlReaderRaw(xmlReader io.Reader, mapHandler func(Map, []byte) bool, errHandler func(error, []byte) bool) error { + var n int + for { + m, raw, merr := NewMapXmlReaderRaw(xmlReader) + n++ + + // handle error condition with errhandler + if merr != nil && merr != io.EOF { + merr = fmt.Errorf("[xmlReader: %d] %s", n, merr.Error()) + if ok := errHandler(merr, raw); !ok { + // caused reader termination + return merr + } + continue + } + + // pass to maphandler + if len(m) != 0 { + if ok := mapHandler(m, raw); !ok { + break + } + } else if merr != io.EOF { + time.Sleep(xhandlerPollInterval) + } + + if merr == io.EOF { + break + } + } + return nil +} + +// ----------------- END: Handle XML stream by processing Map value -------------- + +// -------- a hack of io.TeeReader ... need one that's an io.ByteReader for xml.NewDecoder() ---------- + +// This is a clone of io.TeeReader with the additional method t.ReadByte(). +// Thus, this TeeReader is also an io.ByteReader. +// This is necessary because xml.NewDecoder uses a ByteReader not a Reader. It appears to have been written +// with bufio.Reader or bytes.Reader in mind ... not a generic io.Reader, which doesn't have to have ReadByte().. +// If NewDecoder is passed a Reader that does not satisfy ByteReader() it wraps the Reader with +// bufio.NewReader and uses ReadByte rather than Read that runs the TeeReader pipe logic. + +type teeReader struct { + r io.Reader + w io.Writer + b []byte +} + +func myTeeReader(r io.Reader, w io.Writer) io.Reader { + b := make([]byte, 1) + return &teeReader{r, w, b} +} + +// need for io.Reader - but we don't use it ... +func (t *teeReader) Read(p []byte) (int, error) { + return 0, nil +} + +func (t *teeReader) ReadByte() (byte, error) { + n, err := t.r.Read(t.b) + if n > 0 { + if _, err := t.w.Write(t.b[:1]); err != nil { + return t.b[0], err + } + } + return t.b[0], err +} + +// For use with NewMapXmlReader & NewMapXmlSeqReader. +type byteReader struct { + r io.Reader + b []byte +} + +func myByteReader(r io.Reader) io.Reader { + b := make([]byte, 1) + return &byteReader{r, b} +} + +// Need for io.Reader interface ... +// Needed if reading a malformed http.Request.Body - issue #38. +func (b *byteReader) Read(p []byte) (int, error) { + return b.r.Read(p) +} + +func (b *byteReader) ReadByte() (byte, error) { + _, err := b.r.Read(b.b) + if len(b.b) > 0 { + return b.b[0], nil + } + var c byte + return c, err +} + +// ----------------------- END: io.TeeReader hack ----------------------------------- + +// ---------------------- XmlIndent - from j2x package ---------------------------- + +// Encode a map[string]interface{} as a pretty XML string. +// See Xml for encoding rules. +func (mv Map) XmlIndent(prefix, indent string, rootTag ...string) ([]byte, error) { + m := map[string]interface{}(mv) + + var err error + b := new(bytes.Buffer) + p := new(pretty) + p.indent = indent + p.padding = prefix + + if len(m) == 1 && len(rootTag) == 0 { + // this can extract the key for the single map element + // use it if it isn't a key for a list + for key, value := range m { + if _, ok := value.([]interface{}); ok { + err = marshalMapToXmlIndent(true, b, DefaultRootTag, m, p) + } else { + err = marshalMapToXmlIndent(true, b, key, value, p) + } + } + } else if len(rootTag) == 1 { + err = marshalMapToXmlIndent(true, b, rootTag[0], m, p) + } else { + err = marshalMapToXmlIndent(true, b, DefaultRootTag, m, p) + } + if xmlCheckIsValid { + d := xml.NewDecoder(bytes.NewReader(b.Bytes())) + for { + _, err = d.Token() + if err == io.EOF { + err = nil + break + } else if err != nil { + return nil, err + } + } + } + return b.Bytes(), err +} + +type pretty struct { + indent string + cnt int + padding string + mapDepth int + start int +} + +func (p *pretty) Indent() { + p.padding += p.indent + p.cnt++ +} + +func (p *pretty) Outdent() { + if p.cnt > 0 { + p.padding = p.padding[:len(p.padding)-len(p.indent)] + p.cnt-- + } +} + +// where the work actually happens +// returns an error if an attribute is not atomic +// NOTE: 01may20 - replaces mapToXmlIndent(); uses bytes.Buffer instead for string appends. +func marshalMapToXmlIndent(doIndent bool, b *bytes.Buffer, key string, value interface{}, pp *pretty) error { + var err error + var endTag bool + var isSimple bool + var elen int + p := &pretty{pp.indent, pp.cnt, pp.padding, pp.mapDepth, pp.start} + + // per issue #48, 18apr18 - try and coerce maps to map[string]interface{} + // Don't need for mapToXmlSeqIndent, since maps there are decoded by NewMapXmlSeq(). + if reflect.ValueOf(value).Kind() == reflect.Map { + switch value.(type) { + case map[string]interface{}: + default: + val := make(map[string]interface{}) + vv := reflect.ValueOf(value) + keys := vv.MapKeys() + for _, k := range keys { + val[fmt.Sprint(k)] = vv.MapIndex(k).Interface() + } + value = val + } + } + + // 14jul20. The following block of code has become something of a catch all for odd stuff + // that might be passed in as a result of casting an arbitrary map[] to an mxj.Map + // value and then call m.Xml or m.XmlIndent. See issue #71 (and #73) for such edge cases. + switch value.(type) { + // these types are handled during encoding + case map[string]interface{}, []byte, string, float64, bool, int, int32, int64, float32, json.Number: + case []map[string]interface{}, []string, []float64, []bool, []int, []int32, []int64, []float32, []json.Number: + case []interface{}: + case nil: + value = "" + default: + // see if value is a struct, if so marshal using encoding/xml package + if reflect.ValueOf(value).Kind() == reflect.Struct { + if v, err := xml.Marshal(value); err != nil { + return err + } else { + value = string(v) + } + } else { + // coerce eveything else into a string value + value = fmt.Sprint(value) + } + } + + // start the XML tag with required indentaton and padding + if doIndent { + if _, err = b.WriteString(p.padding); err != nil { + return err + } + } + switch value.(type) { + case []interface{}: + default: + if _, err = b.WriteString(`<` + key); err != nil { + return err + } + } + + switch value.(type) { + case map[string]interface{}: + vv := value.(map[string]interface{}) + lenvv := len(vv) + // scan out attributes - attribute keys have prepended attrPrefix + attrlist := make([][2]string, len(vv)) + var n int + var ss string + for k, v := range vv { + if lenAttrPrefix > 0 && lenAttrPrefix < len(k) && k[:lenAttrPrefix] == attrPrefix { + switch v.(type) { + case string: + if xmlEscapeChars { + ss = escapeChars(v.(string)) + } else { + ss = v.(string) + } + attrlist[n][0] = k[lenAttrPrefix:] + attrlist[n][1] = ss + case float64, bool, int, int32, int64, float32, json.Number: + attrlist[n][0] = k[lenAttrPrefix:] + attrlist[n][1] = fmt.Sprintf("%v", v) + case []byte: + if xmlEscapeChars { + ss = escapeChars(string(v.([]byte))) + } else { + ss = string(v.([]byte)) + } + attrlist[n][0] = k[lenAttrPrefix:] + attrlist[n][1] = ss + default: + return fmt.Errorf("invalid attribute value for: %s:<%T>", k, v) + } + n++ + } + } + if n > 0 { + attrlist = attrlist[:n] + sort.Sort(attrList(attrlist)) + for _, v := range attrlist { + if _, err = b.WriteString(` ` + v[0] + `="` + v[1] + `"`); err != nil { + return err + } + } + } + // only attributes? + if n == lenvv { + if useGoXmlEmptyElemSyntax { + if _, err = b.WriteString(`"); err != nil { + return err + } + } else { + if _, err = b.WriteString(`/>`); err != nil { + return err + } + } + break + } + + // simple element? Note: '#text" is an invalid XML tag. + isComplex := false + if v, ok := vv["#text"]; ok && n+1 == lenvv { + // just the value and attributes + switch v.(type) { + case string: + if xmlEscapeChars { + v = escapeChars(v.(string)) + } else { + v = v.(string) + } + case []byte: + if xmlEscapeChars { + v = escapeChars(string(v.([]byte))) + } else { + v = string(v.([]byte)) + } + } + if _, err = b.WriteString(">" + fmt.Sprintf("%v", v)); err != nil { + return err + } + endTag = true + elen = 1 + isSimple = true + break + } else if ok { + // need to handle when there are subelements in addition to the simple element value + // issue #90 + switch v.(type) { + case string: + if xmlEscapeChars { + v = escapeChars(v.(string)) + } else { + v = v.(string) + } + case []byte: + if xmlEscapeChars { + v = escapeChars(string(v.([]byte))) + } else { + v = string(v.([]byte)) + } + } + if _, err = b.WriteString(">" + fmt.Sprintf("%v", v)); err != nil { + return err + } + isComplex = true + } + + // close tag with possible attributes + if !isComplex { + if _, err = b.WriteString(">"); err != nil { + return err + } + } + if doIndent { + // *s += "\n" + if _, err = b.WriteString("\n"); err != nil { + return err + } + } + // something more complex + p.mapDepth++ + // extract the map k:v pairs and sort on key + elemlist := make([][2]interface{}, len(vv)) + n = 0 + for k, v := range vv { + if k == "#text" { + // simple element handled above + continue + } + if lenAttrPrefix > 0 && lenAttrPrefix < len(k) && k[:lenAttrPrefix] == attrPrefix { + continue + } + elemlist[n][0] = k + elemlist[n][1] = v + n++ + } + elemlist = elemlist[:n] + sort.Sort(elemList(elemlist)) + var i int + for _, v := range elemlist { + switch v[1].(type) { + case []interface{}: + default: + if i == 0 && doIndent { + p.Indent() + } + } + i++ + if err := marshalMapToXmlIndent(doIndent, b, v[0].(string), v[1], p); err != nil { + return err + } + switch v[1].(type) { + case []interface{}: // handled in []interface{} case + default: + if doIndent { + p.Outdent() + } + } + i-- + } + p.mapDepth-- + endTag = true + elen = 1 // we do have some content ... + case []interface{}: + // special case - found during implementing Issue #23 + if len(value.([]interface{})) == 0 { + if doIndent { + if _, err = b.WriteString(p.padding + p.indent); err != nil { + return err + } + } + if _, err = b.WriteString("<" + key); err != nil { + return err + } + elen = 0 + endTag = true + break + } + for _, v := range value.([]interface{}) { + if doIndent { + p.Indent() + } + if err := marshalMapToXmlIndent(doIndent, b, key, v, p); err != nil { + return err + } + if doIndent { + p.Outdent() + } + } + return nil + case []string: + // This was added by https://github.com/slotix ... not a type that + // would be encountered if mv generated from NewMapXml, NewMapJson. + // Could be encountered in AnyXml(), so we'll let it stay, though + // it should be merged with case []interface{}, above. + //quick fix for []string type + //[]string should be treated exaclty as []interface{} + if len(value.([]string)) == 0 { + if doIndent { + if _, err = b.WriteString(p.padding + p.indent); err != nil { + return err + } + } + if _, err = b.WriteString("<" + key); err != nil { + return err + } + elen = 0 + endTag = true + break + } + for _, v := range value.([]string) { + if doIndent { + p.Indent() + } + if err := marshalMapToXmlIndent(doIndent, b, key, v, p); err != nil { + return err + } + if doIndent { + p.Outdent() + } + } + return nil + case nil: + // terminate the tag + if doIndent { + // *s += p.padding + if _, err = b.WriteString(p.padding); err != nil { + return err + } + } + if _, err = b.WriteString("<" + key); err != nil { + return err + } + endTag, isSimple = true, true + break + default: // handle anything - even goofy stuff + elen = 0 + switch value.(type) { + case string: + v := value.(string) + if xmlEscapeChars { + v = escapeChars(v) + } + elen = len(v) + if elen > 0 { + // *s += ">" + v + if _, err = b.WriteString(">" + v); err != nil { + return err + } + } + case float64, bool, int, int32, int64, float32, json.Number: + v := fmt.Sprintf("%v", value) + elen = len(v) // always > 0 + if _, err = b.WriteString(">" + v); err != nil { + return err + } + case []byte: // NOTE: byte is just an alias for uint8 + // similar to how xml.Marshal handles []byte structure members + v := string(value.([]byte)) + if xmlEscapeChars { + v = escapeChars(v) + } + elen = len(v) + if elen > 0 { + // *s += ">" + v + if _, err = b.WriteString(">" + v); err != nil { + return err + } + } + default: + if _, err = b.WriteString(">"); err != nil { + return err + } + var v []byte + var err error + if doIndent { + v, err = xml.MarshalIndent(value, p.padding, p.indent) + } else { + v, err = xml.Marshal(value) + } + if err != nil { + if _, err = b.WriteString(">UNKNOWN"); err != nil { + return err + } + } else { + elen = len(v) + if elen > 0 { + if _, err = b.Write(v); err != nil { + return err + } + } + } + } + isSimple = true + endTag = true + } + if endTag { + if doIndent { + if !isSimple { + if _, err = b.WriteString(p.padding); err != nil { + return err + } + } + } + if elen > 0 || useGoXmlEmptyElemSyntax { + if elen == 0 { + if _, err = b.WriteString(">"); err != nil { + return err + } + } + if _, err = b.WriteString(`"); err != nil { + return err + } + } else { + if _, err = b.WriteString(`/>`); err != nil { + return err + } + } + } + if doIndent { + if p.cnt > p.start { + if _, err = b.WriteString("\n"); err != nil { + return err + } + } + p.Outdent() + } + + return nil +} + +// ============================ sort interface implementation ================= + +type attrList [][2]string + +func (a attrList) Len() int { + return len(a) +} + +func (a attrList) Swap(i, j int) { + a[i], a[j] = a[j], a[i] +} + +func (a attrList) Less(i, j int) bool { + return a[i][0] <= a[j][0] +} + +type elemList [][2]interface{} + +func (e elemList) Len() int { + return len(e) +} + +func (e elemList) Swap(i, j int) { + e[i], e[j] = e[j], e[i] +} + +func (e elemList) Less(i, j int) bool { + return e[i][0].(string) <= e[j][0].(string) +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/xmlseq.go b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/xmlseq.go new file mode 100644 index 00000000..80632bd3 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/xmlseq.go @@ -0,0 +1,877 @@ +// Copyright 2012-2016, 2019 Charles Banning. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file + +// xmlseq.go - version of xml.go with sequence # injection on Decoding and sorting on Encoding. +// Also, handles comments, directives and process instructions. + +package mxj + +import ( + "bytes" + "encoding/xml" + "errors" + "fmt" + "io" + "sort" + "strings" +) + +// MapSeq is like Map but contains seqencing indices to allow recovering the original order of +// the XML elements when the map[string]interface{} is marshaled. Element attributes are +// stored as a map["#attr"]map[]map[string]interface{}{"#text":"", "#seq":} +// value instead of denoting the keys with a prefix character. Also, comments, directives and +// process instructions are preserved. +type MapSeq map[string]interface{} + +// NoRoot is returned by NewXmlSeq, etc., when a comment, directive or procinstr element is parsed +// in the XML data stream and the element is not contained in an XML object with a root element. +var NoRoot = errors.New("no root key") +var NO_ROOT = NoRoot // maintain backwards compatibility + +// ------------------- NewMapXmlSeq & NewMapXmlSeqReader ... ------------------------- + +// NewMapXmlSeq converts a XML doc into a MapSeq value with elements id'd with decoding sequence key represented +// as map["#seq"]. +// If the optional argument 'cast' is 'true', then values will be converted to boolean or float64 if possible. +// NOTE: "#seq" key/value pairs are removed on encoding with msv.Xml() / msv.XmlIndent(). +// • attributes are a map - map["#attr"]map["attr_key"]map[string]interface{}{"#text":, "#seq":} +// • all simple elements are decoded as map["#text"]interface{} with a "#seq" k:v pair, as well. +// • lists always decode as map["list_tag"][]map[string]interface{} where the array elements are maps that +// include a "#seq" k:v pair based on sequence they are decoded. Thus, XML like: +// +// value 1 +// value 2 +// value 3 +// +// is decoded as: +// doc : +// ltag :[[]interface{}] +// [item: 0] +// #seq :[int] 0 +// #text :[string] value 1 +// [item: 1] +// #seq :[int] 2 +// #text :[string] value 3 +// newtag : +// #seq :[int] 1 +// #text :[string] value 2 +// It will encode in proper sequence even though the MapSeq representation merges all "ltag" elements in an array. +// • comments - "" - are decoded as map["#comment"]map["#text"]"cmnt_text" with a "#seq" k:v pair. +// • directives - "" - are decoded as map["#directive"]map[#text"]"directive_text" with a "#seq" k:v pair. +// • process instructions - "" - are decoded as map["#procinst"]interface{} where the #procinst value +// is of map[string]interface{} type with the following keys: #target, #inst, and #seq. +// • comments, directives, and procinsts that are NOT part of a document with a root key will be returned as +// map[string]interface{} and the error value 'NoRoot'. +// • note: ": tag preserve the +// ":" notation rather than stripping it as with NewMapXml(). +// 2. Attribute keys for name space prefix declarations preserve "xmlns:" notation. +// +// ERRORS: +// 1. If a NoRoot error, "no root key," is returned, check the initial map key for a "#comment", +// "#directive" or #procinst" key. +func NewMapXmlSeq(xmlVal []byte, cast ...bool) (MapSeq, error) { + var r bool + if len(cast) == 1 { + r = cast[0] + } + return xmlSeqToMap(xmlVal, r) +} + +// NewMpaXmlSeqReader returns next XML doc from an io.Reader as a MapSeq value. +// NOTES: +// 1. The 'xmlReader' will be parsed looking for an xml.StartElement, xml.Comment, etc., so BOM and other +// extraneous xml.CharData will be ignored unless io.EOF is reached first. +// 2. CoerceKeysToLower() is NOT recognized, since the intent here is to eventually call m.XmlSeq() to +// re-encode the message in its original structure. +// 3. If CoerceKeysToSnakeCase() has been called, then all key values will be converted to snake case. +// +// ERRORS: +// 1. If a NoRoot error, "no root key," is returned, check the initial map key for a "#comment", +// "#directive" or #procinst" key. +func NewMapXmlSeqReader(xmlReader io.Reader, cast ...bool) (MapSeq, error) { + var r bool + if len(cast) == 1 { + r = cast[0] + } + + // We need to put an *os.File reader in a ByteReader or the xml.NewDecoder + // will wrap it in a bufio.Reader and seek on the file beyond where the + // xml.Decoder parses! + if _, ok := xmlReader.(io.ByteReader); !ok { + xmlReader = myByteReader(xmlReader) // see code at EOF + } + + // build the map + return xmlSeqReaderToMap(xmlReader, r) +} + +// NewMapXmlSeqReaderRaw returns the next XML doc from an io.Reader as a MapSeq value. +// Returns MapSeq value, slice with the raw XML, and any error. +// NOTES: +// 1. Due to the implementation of xml.Decoder, the raw XML off the reader is buffered to []byte +// using a ByteReader. If the io.Reader is an os.File, there may be significant performance impact. +// See the examples - getmetrics1.go through getmetrics4.go - for comparative use cases on a large +// data set. If the io.Reader is wrapping a []byte value in-memory, however, such as http.Request.Body +// you CAN use it to efficiently unmarshal a XML doc and retrieve the raw XML in a single call. +// 2. The 'raw' return value may be larger than the XML text value. +// 3. The 'xmlReader' will be parsed looking for an xml.StartElement, xml.Comment, etc., so BOM and other +// extraneous xml.CharData will be ignored unless io.EOF is reached first. +// 4. CoerceKeysToLower() is NOT recognized, since the intent here is to eventually call m.XmlSeq() to +// re-encode the message in its original structure. +// 5. If CoerceKeysToSnakeCase() has been called, then all key values will be converted to snake case. +// +// ERRORS: +// 1. If a NoRoot error, "no root key," is returned, check if the initial map key is "#comment", +// "#directive" or #procinst" key. +func NewMapXmlSeqReaderRaw(xmlReader io.Reader, cast ...bool) (MapSeq, []byte, error) { + var r bool + if len(cast) == 1 { + r = cast[0] + } + // create TeeReader so we can retrieve raw XML + buf := make([]byte, 0) + wb := bytes.NewBuffer(buf) + trdr := myTeeReader(xmlReader, wb) + + m, err := xmlSeqReaderToMap(trdr, r) + + // retrieve the raw XML that was decoded + b := wb.Bytes() + + // err may be NoRoot + return m, b, err +} + +// xmlSeqReaderToMap() - parse a XML io.Reader to a map[string]interface{} value +func xmlSeqReaderToMap(rdr io.Reader, r bool) (map[string]interface{}, error) { + // parse the Reader + p := xml.NewDecoder(rdr) + if CustomDecoder != nil { + useCustomDecoder(p) + } else { + p.CharsetReader = XmlCharsetReader + } + return xmlSeqToMapParser("", nil, p, r) +} + +// xmlSeqToMap - convert a XML doc into map[string]interface{} value +func xmlSeqToMap(doc []byte, r bool) (map[string]interface{}, error) { + b := bytes.NewReader(doc) + p := xml.NewDecoder(b) + if CustomDecoder != nil { + useCustomDecoder(p) + } else { + p.CharsetReader = XmlCharsetReader + } + return xmlSeqToMapParser("", nil, p, r) +} + +// ===================================== where the work happens ============================= + +// xmlSeqToMapParser - load a 'clean' XML doc into a map[string]interface{} directly. +// Add #seq tag value for each element decoded - to be used for Encoding later. +func xmlSeqToMapParser(skey string, a []xml.Attr, p *xml.Decoder, r bool) (map[string]interface{}, error) { + if snakeCaseKeys { + skey = strings.Replace(skey, "-", "_", -1) + } + + // NOTE: all attributes and sub-elements parsed into 'na', 'na' is returned as value for 'skey' in 'n'. + var n, na map[string]interface{} + var seq int // for including seq num when decoding + + // Allocate maps and load attributes, if any. + // NOTE: on entry from NewMapXml(), etc., skey=="", and we fall through + // to get StartElement then recurse with skey==xml.StartElement.Name.Local + // where we begin allocating map[string]interface{} values 'n' and 'na'. + if skey != "" { + // 'n' only needs one slot - save call to runtime•hashGrow() + // 'na' we don't know + n = make(map[string]interface{}, 1) + na = make(map[string]interface{}) + if len(a) > 0 { + // xml.Attr is decoded into: map["#attr"]map[]interface{} + // where interface{} is map[string]interface{}{"#text":, "#seq":} + aa := make(map[string]interface{}, len(a)) + for i, v := range a { + if snakeCaseKeys { + v.Name.Local = strings.Replace(v.Name.Local, "-", "_", -1) + } + if xmlEscapeCharsDecoder { // per issue#84 + v.Value = escapeChars(v.Value) + } + if len(v.Name.Space) > 0 { + aa[v.Name.Space+`:`+v.Name.Local] = map[string]interface{}{"#text": cast(v.Value, r, ""), "#seq": i} + } else { + aa[v.Name.Local] = map[string]interface{}{"#text": cast(v.Value, r, ""), "#seq": i} + } + } + na["#attr"] = aa + } + } + + // Return XMPP message. + if handleXMPPStreamTag && skey == "stream:stream" { + n[skey] = na + return n, nil + } + + for { + t, err := p.RawToken() + if err != nil { + if err != io.EOF { + return nil, errors.New("xml.Decoder.Token() - " + err.Error()) + } + return nil, err + } + switch t.(type) { + case xml.StartElement: + tt := t.(xml.StartElement) + + // First call to xmlSeqToMapParser() doesn't pass xml.StartElement - the map key. + // So when the loop is first entered, the first token is the root tag along + // with any attributes, which we process here. + // + // Subsequent calls to xmlSeqToMapParser() will pass in tag+attributes for + // processing before getting the next token which is the element value, + // which is done above. + if skey == "" { + if len(tt.Name.Space) > 0 { + return xmlSeqToMapParser(tt.Name.Space+`:`+tt.Name.Local, tt.Attr, p, r) + } else { + return xmlSeqToMapParser(tt.Name.Local, tt.Attr, p, r) + } + } + + // If not initializing the map, parse the element. + // len(nn) == 1, necessarily - it is just an 'n'. + var nn map[string]interface{} + if len(tt.Name.Space) > 0 { + nn, err = xmlSeqToMapParser(tt.Name.Space+`:`+tt.Name.Local, tt.Attr, p, r) + } else { + nn, err = xmlSeqToMapParser(tt.Name.Local, tt.Attr, p, r) + } + if err != nil { + return nil, err + } + + // The nn map[string]interface{} value is a na[nn_key] value. + // We need to see if nn_key already exists - means we're parsing a list. + // This may require converting na[nn_key] value into []interface{} type. + // First, extract the key:val for the map - it's a singleton. + var key string + var val interface{} + for key, val = range nn { + break + } + + // add "#seq" k:v pair - + // Sequence number included even in list elements - this should allow us + // to properly resequence even something goofy like: + // item 1 + // item 2 + // item 3 + // where all the "list" subelements are decoded into an array. + switch val.(type) { + case map[string]interface{}: + val.(map[string]interface{})["#seq"] = seq + seq++ + case interface{}: // a non-nil simple element: string, float64, bool + v := map[string]interface{}{"#text": val, "#seq": seq} + seq++ + val = v + } + + // 'na' holding sub-elements of n. + // See if 'key' already exists. + // If 'key' exists, then this is a list, if not just add key:val to na. + if v, ok := na[key]; ok { + var a []interface{} + switch v.(type) { + case []interface{}: + a = v.([]interface{}) + default: // anything else - note: v.(type) != nil + a = []interface{}{v} + } + a = append(a, val) + na[key] = a + } else { + na[key] = val // save it as a singleton + } + case xml.EndElement: + if skey != "" { + tt := t.(xml.EndElement) + if snakeCaseKeys { + tt.Name.Local = strings.Replace(tt.Name.Local, "-", "_", -1) + } + var name string + if len(tt.Name.Space) > 0 { + name = tt.Name.Space + `:` + tt.Name.Local + } else { + name = tt.Name.Local + } + if skey != name { + return nil, fmt.Errorf("element %s not properly terminated, got %s at #%d", + skey, name, p.InputOffset()) + } + } + // len(n) > 0 if this is a simple element w/o xml.Attrs - see xml.CharData case. + if len(n) == 0 { + // If len(na)==0 we have an empty element == ""; + // it has no xml.Attr nor xml.CharData. + // Empty element content will be map["etag"]map["#text"]"" + // after #seq injection - map["etag"]map["#seq"]seq - after return. + if len(na) > 0 { + n[skey] = na + } else { + n[skey] = "" // empty element + } + } + return n, nil + case xml.CharData: + // clean up possible noise + tt := strings.Trim(string(t.(xml.CharData)), trimRunes) + if xmlEscapeCharsDecoder { // issue#84 + tt = escapeChars(tt) + } + if skey == "" { + // per Adrian (http://www.adrianlungu.com/) catch stray text + // in decoder stream - + // https://github.com/clbanning/mxj/pull/14#issuecomment-182816374 + // NOTE: CharSetReader must be set to non-UTF-8 CharSet or you'll get + // a p.Token() decoding error when the BOM is UTF-16 or UTF-32. + continue + } + if len(tt) > 0 { + // every simple element is a #text and has #seq associated with it + na["#text"] = cast(tt, r, "") + na["#seq"] = seq + seq++ + } + case xml.Comment: + if n == nil { // no root 'key' + n = map[string]interface{}{"#comment": string(t.(xml.Comment))} + return n, NoRoot + } + cm := make(map[string]interface{}, 2) + cm["#text"] = string(t.(xml.Comment)) + cm["#seq"] = seq + seq++ + na["#comment"] = cm + case xml.Directive: + if n == nil { // no root 'key' + n = map[string]interface{}{"#directive": string(t.(xml.Directive))} + return n, NoRoot + } + dm := make(map[string]interface{}, 2) + dm["#text"] = string(t.(xml.Directive)) + dm["#seq"] = seq + seq++ + na["#directive"] = dm + case xml.ProcInst: + if n == nil { + na = map[string]interface{}{"#target": t.(xml.ProcInst).Target, "#inst": string(t.(xml.ProcInst).Inst)} + n = map[string]interface{}{"#procinst": na} + return n, NoRoot + } + pm := make(map[string]interface{}, 3) + pm["#target"] = t.(xml.ProcInst).Target + pm["#inst"] = string(t.(xml.ProcInst).Inst) + pm["#seq"] = seq + seq++ + na["#procinst"] = pm + default: + // noop - shouldn't ever get here, now, since we handle all token types + } + } +} + +// ------------------ END: NewMapXml & NewMapXmlReader ------------------------- + +// --------------------- mv.XmlSeq & mv.XmlSeqWriter ------------------------- + +// Xml encodes a MapSeq as XML with elements sorted on #seq. The companion of NewMapXmlSeq(). +// The following rules apply. +// - The "#seq" key value is used to seqence the subelements or attributes only. +// - The "#attr" map key identifies the map of attribute map[string]interface{} values with "#text" key. +// - The "#comment" map key identifies a comment in the value "#text" map entry - . +// - The "#directive" map key identifies a directive in the value "#text" map entry - . +// - The "#procinst" map key identifies a process instruction in the value "#target" and "#inst" +// map entries - . +// - Value type encoding: +// > string, bool, float64, int, int32, int64, float32: per "%v" formating +// > []bool, []uint8: by casting to string +// > structures, etc.: handed to xml.Marshal() - if there is an error, the element +// value is "UNKNOWN" +// - Elements with only attribute values or are null are terminated using "/>" unless XmlGoEmptyElemSystax() called. +// - If len(mv) == 1 and no rootTag is provided, then the map key is used as the root tag, possible. +// Thus, `{ "key":"value" }` encodes as "value". +func (mv MapSeq) Xml(rootTag ...string) ([]byte, error) { + m := map[string]interface{}(mv) + var err error + s := new(string) + p := new(pretty) // just a stub + + if len(m) == 1 && len(rootTag) == 0 { + for key, value := range m { + // if it's an array, see if all values are map[string]interface{} + // we force a new root tag if we'll end up with no key:value in the list + // so: key:[string_val, bool:true] --> string_valtrue + switch value.(type) { + case []interface{}: + for _, v := range value.([]interface{}) { + switch v.(type) { + case map[string]interface{}: // noop + default: // anything else + err = mapToXmlSeqIndent(false, s, DefaultRootTag, m, p) + goto done + } + } + } + err = mapToXmlSeqIndent(false, s, key, value, p) + } + } else if len(rootTag) == 1 { + err = mapToXmlSeqIndent(false, s, rootTag[0], m, p) + } else { + err = mapToXmlSeqIndent(false, s, DefaultRootTag, m, p) + } +done: + if xmlCheckIsValid { + d := xml.NewDecoder(bytes.NewReader([]byte(*s))) + for { + _, err = d.Token() + if err == io.EOF { + err = nil + break + } else if err != nil { + return nil, err + } + } + } + return []byte(*s), err +} + +// The following implementation is provided only for symmetry with NewMapXmlReader[Raw] +// The names will also provide a key for the number of return arguments. + +// XmlWriter Writes the MapSeq value as XML on the Writer. +// See MapSeq.Xml() for encoding rules. +func (mv MapSeq) XmlWriter(xmlWriter io.Writer, rootTag ...string) error { + x, err := mv.Xml(rootTag...) + if err != nil { + return err + } + + _, err = xmlWriter.Write(x) + return err +} + +// XmlWriteRaw writes the MapSeq value as XML on the Writer. []byte is the raw XML that was written. +// See Map.XmlSeq() for encoding rules. +/* +func (mv MapSeq) XmlWriterRaw(xmlWriter io.Writer, rootTag ...string) ([]byte, error) { + x, err := mv.Xml(rootTag...) + if err != nil { + return x, err + } + + _, err = xmlWriter.Write(x) + return x, err +} +*/ + +// XmlIndentWriter writes the MapSeq value as pretty XML on the Writer. +// See MapSeq.Xml() for encoding rules. +func (mv MapSeq) XmlIndentWriter(xmlWriter io.Writer, prefix, indent string, rootTag ...string) error { + x, err := mv.XmlIndent(prefix, indent, rootTag...) + if err != nil { + return err + } + + _, err = xmlWriter.Write(x) + return err +} + +// XmlIndentWriterRaw writes the Map as pretty XML on the Writer. []byte is the raw XML that was written. +// See Map.XmlSeq() for encoding rules. +/* +func (mv MapSeq) XmlIndentWriterRaw(xmlWriter io.Writer, prefix, indent string, rootTag ...string) ([]byte, error) { + x, err := mv.XmlSeqIndent(prefix, indent, rootTag...) + if err != nil { + return x, err + } + + _, err = xmlWriter.Write(x) + return x, err +} +*/ + +// -------------------- END: mv.Xml & mv.XmlWriter ------------------------------- + +// ---------------------- XmlSeqIndent ---------------------------- + +// XmlIndent encodes a map[string]interface{} as a pretty XML string. +// See MapSeq.XmlSeq() for encoding rules. +func (mv MapSeq) XmlIndent(prefix, indent string, rootTag ...string) ([]byte, error) { + m := map[string]interface{}(mv) + + var err error + s := new(string) + p := new(pretty) + p.indent = indent + p.padding = prefix + + if len(m) == 1 && len(rootTag) == 0 { + // this can extract the key for the single map element + // use it if it isn't a key for a list + for key, value := range m { + if _, ok := value.([]interface{}); ok { + err = mapToXmlSeqIndent(true, s, DefaultRootTag, m, p) + } else { + err = mapToXmlSeqIndent(true, s, key, value, p) + } + } + } else if len(rootTag) == 1 { + err = mapToXmlSeqIndent(true, s, rootTag[0], m, p) + } else { + err = mapToXmlSeqIndent(true, s, DefaultRootTag, m, p) + } + if xmlCheckIsValid { + if _, err = NewMapXml([]byte(*s)); err != nil { + return nil, err + } + d := xml.NewDecoder(bytes.NewReader([]byte(*s))) + for { + _, err = d.Token() + if err == io.EOF { + err = nil + break + } else if err != nil { + return nil, err + } + } + } + return []byte(*s), err +} + +// where the work actually happens +// returns an error if an attribute is not atomic +func mapToXmlSeqIndent(doIndent bool, s *string, key string, value interface{}, pp *pretty) error { + var endTag bool + var isSimple bool + var noEndTag bool + var elen int + var ss string + p := &pretty{pp.indent, pp.cnt, pp.padding, pp.mapDepth, pp.start} + + switch value.(type) { + case map[string]interface{}, []byte, string, float64, bool, int, int32, int64, float32: + if doIndent { + *s += p.padding + } + if key != "#comment" && key != "#directive" && key != "#procinst" { + *s += `<` + key + } + } + switch value.(type) { + case map[string]interface{}: + val := value.(map[string]interface{}) + + if key == "#comment" { + *s += `` + noEndTag = true + break + } + + if key == "#directive" { + *s += `` + noEndTag = true + break + } + + if key == "#procinst" { + *s += `` + noEndTag = true + break + } + + haveAttrs := false + // process attributes first + if v, ok := val["#attr"].(map[string]interface{}); ok { + // First, unroll the map[string]interface{} into a []keyval array. + // Then sequence it. + kv := make([]keyval, len(v)) + n := 0 + for ak, av := range v { + kv[n] = keyval{ak, av} + n++ + } + sort.Sort(elemListSeq(kv)) + // Now encode the attributes in original decoding sequence, using keyval array. + for _, a := range kv { + vv := a.v.(map[string]interface{}) + switch vv["#text"].(type) { + case string: + if xmlEscapeChars { + ss = escapeChars(vv["#text"].(string)) + } else { + ss = vv["#text"].(string) + } + *s += ` ` + a.k + `="` + ss + `"` + case float64, bool, int, int32, int64, float32: + *s += ` ` + a.k + `="` + fmt.Sprintf("%v", vv["#text"]) + `"` + case []byte: + if xmlEscapeChars { + ss = escapeChars(string(vv["#text"].([]byte))) + } else { + ss = string(vv["#text"].([]byte)) + } + *s += ` ` + a.k + `="` + ss + `"` + default: + return fmt.Errorf("invalid attribute value for: %s", a.k) + } + } + haveAttrs = true + } + + // simple element? + // every map value has, at least, "#seq" and, perhaps, "#text" and/or "#attr" + _, seqOK := val["#seq"] // have key + if v, ok := val["#text"]; ok && ((len(val) == 3 && haveAttrs) || (len(val) == 2 && !haveAttrs)) && seqOK { + if stmp, ok := v.(string); ok && stmp != "" { + if xmlEscapeChars { + stmp = escapeChars(stmp) + } + *s += ">" + stmp + endTag = true + elen = 1 + } + isSimple = true + break + } else if !ok && ((len(val) == 2 && haveAttrs) || (len(val) == 1 && !haveAttrs)) && seqOK { + // here no #text but have #seq or #seq+#attr + endTag = false + break + } + + // we now need to sequence everything except attributes + // 'kv' will hold everything that needs to be written + kv := make([]keyval, 0) + for k, v := range val { + if k == "#attr" { // already processed + continue + } + if k == "#seq" { // ignore - just for sorting + continue + } + switch v.(type) { + case []interface{}: + // unwind the array as separate entries + for _, vv := range v.([]interface{}) { + kv = append(kv, keyval{k, vv}) + } + default: + kv = append(kv, keyval{k, v}) + } + } + + // close tag with possible attributes + *s += ">" + if doIndent { + *s += "\n" + } + // something more complex + p.mapDepth++ + sort.Sort(elemListSeq(kv)) + i := 0 + for _, v := range kv { + switch v.v.(type) { + case []interface{}: + default: + if i == 0 && doIndent { + p.Indent() + } + } + i++ + if err := mapToXmlSeqIndent(doIndent, s, v.k, v.v, p); err != nil { + return err + } + switch v.v.(type) { + case []interface{}: // handled in []interface{} case + default: + if doIndent { + p.Outdent() + } + } + i-- + } + p.mapDepth-- + endTag = true + elen = 1 // we do have some content other than attrs + case []interface{}: + for _, v := range value.([]interface{}) { + if doIndent { + p.Indent() + } + if err := mapToXmlSeqIndent(doIndent, s, key, v, p); err != nil { + return err + } + if doIndent { + p.Outdent() + } + } + return nil + case nil: + // terminate the tag + if doIndent { + *s += p.padding + } + *s += "<" + key + endTag, isSimple = true, true + break + default: // handle anything - even goofy stuff + elen = 0 + switch value.(type) { + case string: + if xmlEscapeChars { + ss = escapeChars(value.(string)) + } else { + ss = value.(string) + } + elen = len(ss) + if elen > 0 { + *s += ">" + ss + } + case float64, bool, int, int32, int64, float32: + v := fmt.Sprintf("%v", value) + elen = len(v) + if elen > 0 { + *s += ">" + v + } + case []byte: // NOTE: byte is just an alias for uint8 + // similar to how xml.Marshal handles []byte structure members + if xmlEscapeChars { + ss = escapeChars(string(value.([]byte))) + } else { + ss = string(value.([]byte)) + } + elen = len(ss) + if elen > 0 { + *s += ">" + ss + } + default: + var v []byte + var err error + if doIndent { + v, err = xml.MarshalIndent(value, p.padding, p.indent) + } else { + v, err = xml.Marshal(value) + } + if err != nil { + *s += ">UNKNOWN" + } else { + elen = len(v) + if elen > 0 { + *s += string(v) + } + } + } + isSimple = true + endTag = true + } + if endTag && !noEndTag { + if doIndent { + if !isSimple { + *s += p.padding + } + } + switch value.(type) { + case map[string]interface{}, []byte, string, float64, bool, int, int32, int64, float32: + if elen > 0 || useGoXmlEmptyElemSyntax { + if elen == 0 { + *s += ">" + } + *s += `" + } else { + *s += `/>` + } + } + } else if !noEndTag { + if useGoXmlEmptyElemSyntax { + *s += `" + // *s += ">" + } else { + *s += "/>" + } + } + if doIndent { + if p.cnt > p.start { + *s += "\n" + } + p.Outdent() + } + + return nil +} + +// the element sort implementation + +type keyval struct { + k string + v interface{} +} +type elemListSeq []keyval + +func (e elemListSeq) Len() int { + return len(e) +} + +func (e elemListSeq) Swap(i, j int) { + e[i], e[j] = e[j], e[i] +} + +func (e elemListSeq) Less(i, j int) bool { + var iseq, jseq int + var fiseq, fjseq float64 + var ok bool + if iseq, ok = e[i].v.(map[string]interface{})["#seq"].(int); !ok { + if fiseq, ok = e[i].v.(map[string]interface{})["#seq"].(float64); ok { + iseq = int(fiseq) + } else { + iseq = 9999999 + } + } + + if jseq, ok = e[j].v.(map[string]interface{})["#seq"].(int); !ok { + if fjseq, ok = e[j].v.(map[string]interface{})["#seq"].(float64); ok { + jseq = int(fjseq) + } else { + jseq = 9999999 + } + } + + return iseq <= jseq +} + +// =============== https://groups.google.com/forum/#!topic/golang-nuts/lHPOHD-8qio + +// BeautifyXml (re)formats an XML doc similar to Map.XmlIndent(). +// It preserves comments, directives and process instructions, +func BeautifyXml(b []byte, prefix, indent string) ([]byte, error) { + x, err := NewMapXmlSeq(b) + if err != nil { + return nil, err + } + return x.XmlIndent(prefix, indent) +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/xmlseq2.go b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/xmlseq2.go new file mode 100644 index 00000000..467fd076 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/clbanning/mxj/v2/xmlseq2.go @@ -0,0 +1,18 @@ +// Copyright 2012-2016, 2019 Charles Banning. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file + +package mxj + +// ---------------- expose Map methods to MapSeq type --------------------------- + +// Pretty print a Map. +func (msv MapSeq) StringIndent(offset ...int) string { + return writeMap(map[string]interface{}(msv), true, true, offset...) +} + +// Pretty print a Map without the value type information - just key:value entries. +func (msv MapSeq) StringIndentNoTypeInfo(offset ...int) string { + return writeMap(map[string]interface{}(msv), false, true, offset...) +} + diff --git a/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/.gitignore b/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/.gitignore new file mode 100644 index 00000000..c57100a5 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/.gitignore @@ -0,0 +1 @@ +coverage.txt diff --git a/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/.golangci.yml b/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/.golangci.yml new file mode 100644 index 00000000..011a7940 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/.golangci.yml @@ -0,0 +1,3 @@ +linters-settings: + staticcheck: + checks: [ "all", "-SA1019" ] diff --git a/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/CHANGELOG.md b/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/CHANGELOG.md new file mode 100644 index 00000000..d3bfcf62 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/CHANGELOG.md @@ -0,0 +1,63 @@ +Changes by Version +================== + + +1.2.0 (2020-07-01) +------------------- + +* Restore the ability to reset the current span in context to nil (#231) -- Yuri Shkuro +* Use error.object per OpenTracing Semantic Conventions (#179) -- Rahman Syed +* Convert nil pointer log field value to string "nil" (#230) -- Cyril Tovena +* Add Go module support (#215) -- Zaba505 +* Make SetTag helper types in ext public (#229) -- Blake Edwards +* Add log/fields helpers for keys from specification (#226) -- Dmitry Monakhov +* Improve noop impementation (#223) -- chanxuehong +* Add an extension to Tracer interface for custom go context creation (#220) -- Krzesimir Nowak +* Fix typo in comments (#222) -- meteorlxy +* Improve documentation for log.Object() to emphasize the requirement to pass immutable arguments (#219) -- 疯狂的小企鹅 +* [mock] Return ErrInvalidSpanContext if span context is not MockSpanContext (#216) -- Milad Irannejad + + +1.1.0 (2019-03-23) +------------------- + +Notable changes: +- The library is now released under Apache 2.0 license +- Use Set() instead of Add() in HTTPHeadersCarrier is functionally a breaking change (fixes issue [#159](https://github.com/opentracing/opentracing-go/issues/159)) +- 'golang.org/x/net/context' is replaced with 'context' from the standard library + +List of all changes: + +- Export StartSpanFromContextWithTracer (#214) +- Add IsGlobalTracerRegistered() to indicate if a tracer has been registered (#201) +- Use Set() instead of Add() in HTTPHeadersCarrier (#191) +- Update license to Apache 2.0 (#181) +- Replace 'golang.org/x/net/context' with 'context' (#176) +- Port of Python opentracing/harness/api_check.py to Go (#146) +- Fix race condition in MockSpan.Context() (#170) +- Add PeerHostIPv4.SetString() (#155) +- Add a Noop log field type to log to allow for optional fields (#150) + + +1.0.2 (2017-04-26) +------------------- + +- Add more semantic tags (#139) + + +1.0.1 (2017-02-06) +------------------- + +- Correct spelling in comments +- Address race in nextMockID() (#123) +- log: avoid panic marshaling nil error (#131) +- Deprecate InitGlobalTracer in favor of SetGlobalTracer (#128) +- Drop Go 1.5 that fails in Travis (#129) +- Add convenience methods Key() and Value() to log.Field +- Add convenience methods to log.Field (2 years, 6 months ago) + +1.0.0 (2016-09-26) +------------------- + +- This release implements OpenTracing Specification 1.0 (https://opentracing.io/spec) + diff --git a/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/LICENSE b/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/LICENSE new file mode 100644 index 00000000..f0027349 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2016 The OpenTracing Authors + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/Makefile b/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/Makefile new file mode 100644 index 00000000..62abb63f --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/Makefile @@ -0,0 +1,20 @@ +.DEFAULT_GOAL := test-and-lint + +.PHONY: test-and-lint +test-and-lint: test lint + +.PHONY: test +test: + go test -v -cover -race ./... + +.PHONY: cover +cover: + go test -v -coverprofile=coverage.txt -covermode=atomic -race ./... + +.PHONY: lint +lint: + go fmt ./... + golint ./... + @# Run again with magic to exit non-zero if golint outputs anything. + @! (golint ./... | read dummy) + go vet ./... diff --git a/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/README.md b/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/README.md new file mode 100644 index 00000000..6ef1d7c9 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/README.md @@ -0,0 +1,171 @@ +[![Gitter chat](http://img.shields.io/badge/gitter-join%20chat%20%E2%86%92-brightgreen.svg)](https://gitter.im/opentracing/public) [![Build Status](https://travis-ci.org/opentracing/opentracing-go.svg?branch=master)](https://travis-ci.org/opentracing/opentracing-go) [![GoDoc](https://godoc.org/github.com/opentracing/opentracing-go?status.svg)](http://godoc.org/github.com/opentracing/opentracing-go) +[![Sourcegraph Badge](https://sourcegraph.com/github.com/opentracing/opentracing-go/-/badge.svg)](https://sourcegraph.com/github.com/opentracing/opentracing-go?badge) + +# OpenTracing API for Go + +This package is a Go platform API for OpenTracing. + +## Required Reading + +In order to understand the Go platform API, one must first be familiar with the +[OpenTracing project](https://opentracing.io) and +[terminology](https://opentracing.io/specification/) more specifically. + +## API overview for those adding instrumentation + +Everyday consumers of this `opentracing` package really only need to worry +about a couple of key abstractions: the `StartSpan` function, the `Span` +interface, and binding a `Tracer` at `main()`-time. Here are code snippets +demonstrating some important use cases. + +#### Singleton initialization + +The simplest starting point is `./default_tracer.go`. As early as possible, call + +```go + import "github.com/opentracing/opentracing-go" + import ".../some_tracing_impl" + + func main() { + opentracing.SetGlobalTracer( + // tracing impl specific: + some_tracing_impl.New(...), + ) + ... + } +``` + +#### Non-Singleton initialization + +If you prefer direct control to singletons, manage ownership of the +`opentracing.Tracer` implementation explicitly. + +#### Creating a Span given an existing Go `context.Context` + +If you use `context.Context` in your application, OpenTracing's Go library will +happily rely on it for `Span` propagation. To start a new (blocking child) +`Span`, you can use `StartSpanFromContext`. + +```go + func xyz(ctx context.Context, ...) { + ... + span, ctx := opentracing.StartSpanFromContext(ctx, "operation_name") + defer span.Finish() + span.LogFields( + log.String("event", "soft error"), + log.String("type", "cache timeout"), + log.Int("waited.millis", 1500)) + ... + } +``` + +#### Starting an empty trace by creating a "root span" + +It's always possible to create a "root" `Span` with no parent or other causal +reference. + +```go + func xyz() { + ... + sp := opentracing.StartSpan("operation_name") + defer sp.Finish() + ... + } +``` + +#### Creating a (child) Span given an existing (parent) Span + +```go + func xyz(parentSpan opentracing.Span, ...) { + ... + sp := opentracing.StartSpan( + "operation_name", + opentracing.ChildOf(parentSpan.Context())) + defer sp.Finish() + ... + } +``` + +#### Serializing to the wire + +```go + func makeSomeRequest(ctx context.Context) ... { + if span := opentracing.SpanFromContext(ctx); span != nil { + httpClient := &http.Client{} + httpReq, _ := http.NewRequest("GET", "http://myservice/", nil) + + // Transmit the span's TraceContext as HTTP headers on our + // outbound request. + opentracing.GlobalTracer().Inject( + span.Context(), + opentracing.HTTPHeaders, + opentracing.HTTPHeadersCarrier(httpReq.Header)) + + resp, err := httpClient.Do(httpReq) + ... + } + ... + } +``` + +#### Deserializing from the wire + +```go + http.HandleFunc("/", func(w http.ResponseWriter, req *http.Request) { + var serverSpan opentracing.Span + appSpecificOperationName := ... + wireContext, err := opentracing.GlobalTracer().Extract( + opentracing.HTTPHeaders, + opentracing.HTTPHeadersCarrier(req.Header)) + if err != nil { + // Optionally record something about err here + } + + // Create the span referring to the RPC client if available. + // If wireContext == nil, a root span will be created. + serverSpan = opentracing.StartSpan( + appSpecificOperationName, + ext.RPCServerOption(wireContext)) + + defer serverSpan.Finish() + + ctx := opentracing.ContextWithSpan(context.Background(), serverSpan) + ... + } +``` + +#### Conditionally capture a field using `log.Noop` + +In some situations, you may want to dynamically decide whether or not +to log a field. For example, you may want to capture additional data, +such as a customer ID, in non-production environments: + +```go + func Customer(order *Order) log.Field { + if os.Getenv("ENVIRONMENT") == "dev" { + return log.String("customer", order.Customer.ID) + } + return log.Noop() + } +``` + +#### Goroutine-safety + +The entire public API is goroutine-safe and does not require external +synchronization. + +## API pointers for those implementing a tracing system + +Tracing system implementors may be able to reuse or copy-paste-modify the `basictracer` package, found [here](https://github.com/opentracing/basictracer-go). In particular, see `basictracer.New(...)`. + +## API compatibility + +For the time being, "mild" backwards-incompatible changes may be made without changing the major version number. As OpenTracing and `opentracing-go` mature, backwards compatibility will become more of a priority. + +## Tracer test suite + +A test suite is available in the [harness](https://godoc.org/github.com/opentracing/opentracing-go/harness) package that can assist Tracer implementors to assert that their Tracer is working correctly. + +## Licensing + +[Apache 2.0 License](./LICENSE). diff --git a/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/ext.go b/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/ext.go new file mode 100644 index 00000000..e11977eb --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/ext.go @@ -0,0 +1,24 @@ +package opentracing + +import ( + "context" +) + +// TracerContextWithSpanExtension is an extension interface that the +// implementation of the Tracer interface may want to implement. It +// allows to have some control over the go context when the +// ContextWithSpan is invoked. +// +// The primary purpose of this extension are adapters from opentracing +// API to some other tracing API. +type TracerContextWithSpanExtension interface { + // ContextWithSpanHook gets called by the ContextWithSpan + // function, when the Tracer implementation also implements + // this interface. It allows to put extra information into the + // context and make it available to the callers of the + // ContextWithSpan. + // + // This hook is invoked before the ContextWithSpan function + // actually puts the span into the context. + ContextWithSpanHook(ctx context.Context, span Span) context.Context +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/ext/field.go b/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/ext/field.go new file mode 100644 index 00000000..8282bd75 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/ext/field.go @@ -0,0 +1,17 @@ +package ext + +import ( + "github.com/opentracing/opentracing-go" + "github.com/opentracing/opentracing-go/log" +) + +// LogError sets the error=true tag on the Span and logs err as an "error" event. +func LogError(span opentracing.Span, err error, fields ...log.Field) { + Error.Set(span, true) + ef := []log.Field{ + log.Event("error"), + log.Error(err), + } + ef = append(ef, fields...) + span.LogFields(ef...) +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/ext/tags.go b/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/ext/tags.go new file mode 100644 index 00000000..a414b595 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/ext/tags.go @@ -0,0 +1,215 @@ +package ext + +import "github.com/opentracing/opentracing-go" + +// These constants define common tag names recommended for better portability across +// tracing systems and languages/platforms. +// +// The tag names are defined as typed strings, so that in addition to the usual use +// +// span.setTag(TagName, value) +// +// they also support value type validation via this additional syntax: +// +// TagName.Set(span, value) +// +var ( + ////////////////////////////////////////////////////////////////////// + // SpanKind (client/server or producer/consumer) + ////////////////////////////////////////////////////////////////////// + + // SpanKind hints at relationship between spans, e.g. client/server + SpanKind = spanKindTagName("span.kind") + + // SpanKindRPCClient marks a span representing the client-side of an RPC + // or other remote call + SpanKindRPCClientEnum = SpanKindEnum("client") + SpanKindRPCClient = opentracing.Tag{Key: string(SpanKind), Value: SpanKindRPCClientEnum} + + // SpanKindRPCServer marks a span representing the server-side of an RPC + // or other remote call + SpanKindRPCServerEnum = SpanKindEnum("server") + SpanKindRPCServer = opentracing.Tag{Key: string(SpanKind), Value: SpanKindRPCServerEnum} + + // SpanKindProducer marks a span representing the producer-side of a + // message bus + SpanKindProducerEnum = SpanKindEnum("producer") + SpanKindProducer = opentracing.Tag{Key: string(SpanKind), Value: SpanKindProducerEnum} + + // SpanKindConsumer marks a span representing the consumer-side of a + // message bus + SpanKindConsumerEnum = SpanKindEnum("consumer") + SpanKindConsumer = opentracing.Tag{Key: string(SpanKind), Value: SpanKindConsumerEnum} + + ////////////////////////////////////////////////////////////////////// + // Component name + ////////////////////////////////////////////////////////////////////// + + // Component is a low-cardinality identifier of the module, library, + // or package that is generating a span. + Component = StringTagName("component") + + ////////////////////////////////////////////////////////////////////// + // Sampling hint + ////////////////////////////////////////////////////////////////////// + + // SamplingPriority determines the priority of sampling this Span. + SamplingPriority = Uint16TagName("sampling.priority") + + ////////////////////////////////////////////////////////////////////// + // Peer tags. These tags can be emitted by either client-side or + // server-side to describe the other side/service in a peer-to-peer + // communications, like an RPC call. + ////////////////////////////////////////////////////////////////////// + + // PeerService records the service name of the peer. + PeerService = StringTagName("peer.service") + + // PeerAddress records the address name of the peer. This may be a "ip:port", + // a bare "hostname", a FQDN or even a database DSN substring + // like "mysql://username@127.0.0.1:3306/dbname" + PeerAddress = StringTagName("peer.address") + + // PeerHostname records the host name of the peer + PeerHostname = StringTagName("peer.hostname") + + // PeerHostIPv4 records IP v4 host address of the peer + PeerHostIPv4 = IPv4TagName("peer.ipv4") + + // PeerHostIPv6 records IP v6 host address of the peer + PeerHostIPv6 = StringTagName("peer.ipv6") + + // PeerPort records port number of the peer + PeerPort = Uint16TagName("peer.port") + + ////////////////////////////////////////////////////////////////////// + // HTTP Tags + ////////////////////////////////////////////////////////////////////// + + // HTTPUrl should be the URL of the request being handled in this segment + // of the trace, in standard URI format. The protocol is optional. + HTTPUrl = StringTagName("http.url") + + // HTTPMethod is the HTTP method of the request, and is case-insensitive. + HTTPMethod = StringTagName("http.method") + + // HTTPStatusCode is the numeric HTTP status code (200, 404, etc) of the + // HTTP response. + HTTPStatusCode = Uint16TagName("http.status_code") + + ////////////////////////////////////////////////////////////////////// + // DB Tags + ////////////////////////////////////////////////////////////////////// + + // DBInstance is database instance name. + DBInstance = StringTagName("db.instance") + + // DBStatement is a database statement for the given database type. + // It can be a query or a prepared statement (i.e., before substitution). + DBStatement = StringTagName("db.statement") + + // DBType is a database type. For any SQL database, "sql". + // For others, the lower-case database category, e.g. "redis" + DBType = StringTagName("db.type") + + // DBUser is a username for accessing database. + DBUser = StringTagName("db.user") + + ////////////////////////////////////////////////////////////////////// + // Message Bus Tag + ////////////////////////////////////////////////////////////////////// + + // MessageBusDestination is an address at which messages can be exchanged + MessageBusDestination = StringTagName("message_bus.destination") + + ////////////////////////////////////////////////////////////////////// + // Error Tag + ////////////////////////////////////////////////////////////////////// + + // Error indicates that operation represented by the span resulted in an error. + Error = BoolTagName("error") +) + +// --- + +// SpanKindEnum represents common span types +type SpanKindEnum string + +type spanKindTagName string + +// Set adds a string tag to the `span` +func (tag spanKindTagName) Set(span opentracing.Span, value SpanKindEnum) { + span.SetTag(string(tag), value) +} + +type rpcServerOption struct { + clientContext opentracing.SpanContext +} + +func (r rpcServerOption) Apply(o *opentracing.StartSpanOptions) { + if r.clientContext != nil { + opentracing.ChildOf(r.clientContext).Apply(o) + } + SpanKindRPCServer.Apply(o) +} + +// RPCServerOption returns a StartSpanOption appropriate for an RPC server span +// with `client` representing the metadata for the remote peer Span if available. +// In case client == nil, due to the client not being instrumented, this RPC +// server span will be a root span. +func RPCServerOption(client opentracing.SpanContext) opentracing.StartSpanOption { + return rpcServerOption{client} +} + +// --- + +// StringTagName is a common tag name to be set to a string value +type StringTagName string + +// Set adds a string tag to the `span` +func (tag StringTagName) Set(span opentracing.Span, value string) { + span.SetTag(string(tag), value) +} + +// --- + +// Uint32TagName is a common tag name to be set to a uint32 value +type Uint32TagName string + +// Set adds a uint32 tag to the `span` +func (tag Uint32TagName) Set(span opentracing.Span, value uint32) { + span.SetTag(string(tag), value) +} + +// --- + +// Uint16TagName is a common tag name to be set to a uint16 value +type Uint16TagName string + +// Set adds a uint16 tag to the `span` +func (tag Uint16TagName) Set(span opentracing.Span, value uint16) { + span.SetTag(string(tag), value) +} + +// --- + +// BoolTagName is a common tag name to be set to a bool value +type BoolTagName string + +// Set adds a bool tag to the `span` +func (tag BoolTagName) Set(span opentracing.Span, value bool) { + span.SetTag(string(tag), value) +} + +// IPv4TagName is a common tag name to be set to an ipv4 value +type IPv4TagName string + +// Set adds IP v4 host address of the peer as an uint32 value to the `span`, keep this for backward and zipkin compatibility +func (tag IPv4TagName) Set(span opentracing.Span, value uint32) { + span.SetTag(string(tag), value) +} + +// SetString records IP v4 host address of the peer as a .-separated tuple to the `span`. E.g., "127.0.0.1" +func (tag IPv4TagName) SetString(span opentracing.Span, value string) { + span.SetTag(string(tag), value) +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/globaltracer.go b/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/globaltracer.go new file mode 100644 index 00000000..4f7066a9 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/globaltracer.go @@ -0,0 +1,42 @@ +package opentracing + +type registeredTracer struct { + tracer Tracer + isRegistered bool +} + +var ( + globalTracer = registeredTracer{NoopTracer{}, false} +) + +// SetGlobalTracer sets the [singleton] opentracing.Tracer returned by +// GlobalTracer(). Those who use GlobalTracer (rather than directly manage an +// opentracing.Tracer instance) should call SetGlobalTracer as early as +// possible in main(), prior to calling the `StartSpan` global func below. +// Prior to calling `SetGlobalTracer`, any Spans started via the `StartSpan` +// (etc) globals are noops. +func SetGlobalTracer(tracer Tracer) { + globalTracer = registeredTracer{tracer, true} +} + +// GlobalTracer returns the global singleton `Tracer` implementation. +// Before `SetGlobalTracer()` is called, the `GlobalTracer()` is a noop +// implementation that drops all data handed to it. +func GlobalTracer() Tracer { + return globalTracer.tracer +} + +// StartSpan defers to `Tracer.StartSpan`. See `GlobalTracer()`. +func StartSpan(operationName string, opts ...StartSpanOption) Span { + return globalTracer.tracer.StartSpan(operationName, opts...) +} + +// InitGlobalTracer is deprecated. Please use SetGlobalTracer. +func InitGlobalTracer(tracer Tracer) { + SetGlobalTracer(tracer) +} + +// IsGlobalTracerRegistered returns a `bool` to indicate if a tracer has been globally registered +func IsGlobalTracerRegistered() bool { + return globalTracer.isRegistered +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/gocontext.go b/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/gocontext.go new file mode 100644 index 00000000..1831bc9b --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/gocontext.go @@ -0,0 +1,65 @@ +package opentracing + +import "context" + +type contextKey struct{} + +var activeSpanKey = contextKey{} + +// ContextWithSpan returns a new `context.Context` that holds a reference to +// the span. If span is nil, a new context without an active span is returned. +func ContextWithSpan(ctx context.Context, span Span) context.Context { + if span != nil { + if tracerWithHook, ok := span.Tracer().(TracerContextWithSpanExtension); ok { + ctx = tracerWithHook.ContextWithSpanHook(ctx, span) + } + } + return context.WithValue(ctx, activeSpanKey, span) +} + +// SpanFromContext returns the `Span` previously associated with `ctx`, or +// `nil` if no such `Span` could be found. +// +// NOTE: context.Context != SpanContext: the former is Go's intra-process +// context propagation mechanism, and the latter houses OpenTracing's per-Span +// identity and baggage information. +func SpanFromContext(ctx context.Context) Span { + val := ctx.Value(activeSpanKey) + if sp, ok := val.(Span); ok { + return sp + } + return nil +} + +// StartSpanFromContext starts and returns a Span with `operationName`, using +// any Span found within `ctx` as a ChildOfRef. If no such parent could be +// found, StartSpanFromContext creates a root (parentless) Span. +// +// The second return value is a context.Context object built around the +// returned Span. +// +// Example usage: +// +// SomeFunction(ctx context.Context, ...) { +// sp, ctx := opentracing.StartSpanFromContext(ctx, "SomeFunction") +// defer sp.Finish() +// ... +// } +func StartSpanFromContext(ctx context.Context, operationName string, opts ...StartSpanOption) (Span, context.Context) { + return StartSpanFromContextWithTracer(ctx, GlobalTracer(), operationName, opts...) +} + +// StartSpanFromContextWithTracer starts and returns a span with `operationName` +// using a span found within the context as a ChildOfRef. If that doesn't exist +// it creates a root span. It also returns a context.Context object built +// around the returned span. +// +// It's behavior is identical to StartSpanFromContext except that it takes an explicit +// tracer as opposed to using the global tracer. +func StartSpanFromContextWithTracer(ctx context.Context, tracer Tracer, operationName string, opts ...StartSpanOption) (Span, context.Context) { + if parentSpan := SpanFromContext(ctx); parentSpan != nil { + opts = append(opts, ChildOf(parentSpan.Context())) + } + span := tracer.StartSpan(operationName, opts...) + return span, ContextWithSpan(ctx, span) +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/log/field.go b/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/log/field.go new file mode 100644 index 00000000..f222ded7 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/log/field.go @@ -0,0 +1,282 @@ +package log + +import ( + "fmt" + "math" +) + +type fieldType int + +const ( + stringType fieldType = iota + boolType + intType + int32Type + uint32Type + int64Type + uint64Type + float32Type + float64Type + errorType + objectType + lazyLoggerType + noopType +) + +// Field instances are constructed via LogBool, LogString, and so on. +// Tracing implementations may then handle them via the Field.Marshal +// method. +// +// "heavily influenced by" (i.e., partially stolen from) +// https://github.com/uber-go/zap +type Field struct { + key string + fieldType fieldType + numericVal int64 + stringVal string + interfaceVal interface{} +} + +// String adds a string-valued key:value pair to a Span.LogFields() record +func String(key, val string) Field { + return Field{ + key: key, + fieldType: stringType, + stringVal: val, + } +} + +// Bool adds a bool-valued key:value pair to a Span.LogFields() record +func Bool(key string, val bool) Field { + var numericVal int64 + if val { + numericVal = 1 + } + return Field{ + key: key, + fieldType: boolType, + numericVal: numericVal, + } +} + +// Int adds an int-valued key:value pair to a Span.LogFields() record +func Int(key string, val int) Field { + return Field{ + key: key, + fieldType: intType, + numericVal: int64(val), + } +} + +// Int32 adds an int32-valued key:value pair to a Span.LogFields() record +func Int32(key string, val int32) Field { + return Field{ + key: key, + fieldType: int32Type, + numericVal: int64(val), + } +} + +// Int64 adds an int64-valued key:value pair to a Span.LogFields() record +func Int64(key string, val int64) Field { + return Field{ + key: key, + fieldType: int64Type, + numericVal: val, + } +} + +// Uint32 adds a uint32-valued key:value pair to a Span.LogFields() record +func Uint32(key string, val uint32) Field { + return Field{ + key: key, + fieldType: uint32Type, + numericVal: int64(val), + } +} + +// Uint64 adds a uint64-valued key:value pair to a Span.LogFields() record +func Uint64(key string, val uint64) Field { + return Field{ + key: key, + fieldType: uint64Type, + numericVal: int64(val), + } +} + +// Float32 adds a float32-valued key:value pair to a Span.LogFields() record +func Float32(key string, val float32) Field { + return Field{ + key: key, + fieldType: float32Type, + numericVal: int64(math.Float32bits(val)), + } +} + +// Float64 adds a float64-valued key:value pair to a Span.LogFields() record +func Float64(key string, val float64) Field { + return Field{ + key: key, + fieldType: float64Type, + numericVal: int64(math.Float64bits(val)), + } +} + +// Error adds an error with the key "error.object" to a Span.LogFields() record +func Error(err error) Field { + return Field{ + key: "error.object", + fieldType: errorType, + interfaceVal: err, + } +} + +// Object adds an object-valued key:value pair to a Span.LogFields() record +// Please pass in an immutable object, otherwise there may be concurrency issues. +// Such as passing in the map, log.Object may result in "fatal error: concurrent map iteration and map write". +// Because span is sent asynchronously, it is possible that this map will also be modified. +func Object(key string, obj interface{}) Field { + return Field{ + key: key, + fieldType: objectType, + interfaceVal: obj, + } +} + +// Event creates a string-valued Field for span logs with key="event" and value=val. +func Event(val string) Field { + return String("event", val) +} + +// Message creates a string-valued Field for span logs with key="message" and value=val. +func Message(val string) Field { + return String("message", val) +} + +// LazyLogger allows for user-defined, late-bound logging of arbitrary data +type LazyLogger func(fv Encoder) + +// Lazy adds a LazyLogger to a Span.LogFields() record; the tracing +// implementation will call the LazyLogger function at an indefinite time in +// the future (after Lazy() returns). +func Lazy(ll LazyLogger) Field { + return Field{ + fieldType: lazyLoggerType, + interfaceVal: ll, + } +} + +// Noop creates a no-op log field that should be ignored by the tracer. +// It can be used to capture optional fields, for example those that should +// only be logged in non-production environment: +// +// func customerField(order *Order) log.Field { +// if os.Getenv("ENVIRONMENT") == "dev" { +// return log.String("customer", order.Customer.ID) +// } +// return log.Noop() +// } +// +// span.LogFields(log.String("event", "purchase"), customerField(order)) +// +func Noop() Field { + return Field{ + fieldType: noopType, + } +} + +// Encoder allows access to the contents of a Field (via a call to +// Field.Marshal). +// +// Tracer implementations typically provide an implementation of Encoder; +// OpenTracing callers typically do not need to concern themselves with it. +type Encoder interface { + EmitString(key, value string) + EmitBool(key string, value bool) + EmitInt(key string, value int) + EmitInt32(key string, value int32) + EmitInt64(key string, value int64) + EmitUint32(key string, value uint32) + EmitUint64(key string, value uint64) + EmitFloat32(key string, value float32) + EmitFloat64(key string, value float64) + EmitObject(key string, value interface{}) + EmitLazyLogger(value LazyLogger) +} + +// Marshal passes a Field instance through to the appropriate +// field-type-specific method of an Encoder. +func (lf Field) Marshal(visitor Encoder) { + switch lf.fieldType { + case stringType: + visitor.EmitString(lf.key, lf.stringVal) + case boolType: + visitor.EmitBool(lf.key, lf.numericVal != 0) + case intType: + visitor.EmitInt(lf.key, int(lf.numericVal)) + case int32Type: + visitor.EmitInt32(lf.key, int32(lf.numericVal)) + case int64Type: + visitor.EmitInt64(lf.key, int64(lf.numericVal)) + case uint32Type: + visitor.EmitUint32(lf.key, uint32(lf.numericVal)) + case uint64Type: + visitor.EmitUint64(lf.key, uint64(lf.numericVal)) + case float32Type: + visitor.EmitFloat32(lf.key, math.Float32frombits(uint32(lf.numericVal))) + case float64Type: + visitor.EmitFloat64(lf.key, math.Float64frombits(uint64(lf.numericVal))) + case errorType: + if err, ok := lf.interfaceVal.(error); ok { + visitor.EmitString(lf.key, err.Error()) + } else { + visitor.EmitString(lf.key, "") + } + case objectType: + visitor.EmitObject(lf.key, lf.interfaceVal) + case lazyLoggerType: + visitor.EmitLazyLogger(lf.interfaceVal.(LazyLogger)) + case noopType: + // intentionally left blank + } +} + +// Key returns the field's key. +func (lf Field) Key() string { + return lf.key +} + +// Value returns the field's value as interface{}. +func (lf Field) Value() interface{} { + switch lf.fieldType { + case stringType: + return lf.stringVal + case boolType: + return lf.numericVal != 0 + case intType: + return int(lf.numericVal) + case int32Type: + return int32(lf.numericVal) + case int64Type: + return int64(lf.numericVal) + case uint32Type: + return uint32(lf.numericVal) + case uint64Type: + return uint64(lf.numericVal) + case float32Type: + return math.Float32frombits(uint32(lf.numericVal)) + case float64Type: + return math.Float64frombits(uint64(lf.numericVal)) + case errorType, objectType, lazyLoggerType: + return lf.interfaceVal + case noopType: + return nil + default: + return nil + } +} + +// String returns a string representation of the key and value. +func (lf Field) String() string { + return fmt.Sprint(lf.key, ":", lf.Value()) +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/log/util.go b/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/log/util.go new file mode 100644 index 00000000..d57e28aa --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/log/util.go @@ -0,0 +1,61 @@ +package log + +import ( + "fmt" + "reflect" +) + +// InterleavedKVToFields converts keyValues a la Span.LogKV() to a Field slice +// a la Span.LogFields(). +func InterleavedKVToFields(keyValues ...interface{}) ([]Field, error) { + if len(keyValues)%2 != 0 { + return nil, fmt.Errorf("non-even keyValues len: %d", len(keyValues)) + } + fields := make([]Field, len(keyValues)/2) + for i := 0; i*2 < len(keyValues); i++ { + key, ok := keyValues[i*2].(string) + if !ok { + return nil, fmt.Errorf( + "non-string key (pair #%d): %T", + i, keyValues[i*2]) + } + switch typedVal := keyValues[i*2+1].(type) { + case bool: + fields[i] = Bool(key, typedVal) + case string: + fields[i] = String(key, typedVal) + case int: + fields[i] = Int(key, typedVal) + case int8: + fields[i] = Int32(key, int32(typedVal)) + case int16: + fields[i] = Int32(key, int32(typedVal)) + case int32: + fields[i] = Int32(key, typedVal) + case int64: + fields[i] = Int64(key, typedVal) + case uint: + fields[i] = Uint64(key, uint64(typedVal)) + case uint64: + fields[i] = Uint64(key, typedVal) + case uint8: + fields[i] = Uint32(key, uint32(typedVal)) + case uint16: + fields[i] = Uint32(key, uint32(typedVal)) + case uint32: + fields[i] = Uint32(key, typedVal) + case float32: + fields[i] = Float32(key, typedVal) + case float64: + fields[i] = Float64(key, typedVal) + default: + if typedVal == nil || (reflect.ValueOf(typedVal).Kind() == reflect.Ptr && reflect.ValueOf(typedVal).IsNil()) { + fields[i] = String(key, "nil") + continue + } + // When in doubt, coerce to a string + fields[i] = String(key, fmt.Sprint(typedVal)) + } + } + return fields, nil +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/noop.go b/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/noop.go new file mode 100644 index 00000000..f9b680a2 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/noop.go @@ -0,0 +1,64 @@ +package opentracing + +import "github.com/opentracing/opentracing-go/log" + +// A NoopTracer is a trivial, minimum overhead implementation of Tracer +// for which all operations are no-ops. +// +// The primary use of this implementation is in libraries, such as RPC +// frameworks, that make tracing an optional feature controlled by the +// end user. A no-op implementation allows said libraries to use it +// as the default Tracer and to write instrumentation that does +// not need to keep checking if the tracer instance is nil. +// +// For the same reason, the NoopTracer is the default "global" tracer +// (see GlobalTracer and SetGlobalTracer functions). +// +// WARNING: NoopTracer does not support baggage propagation. +type NoopTracer struct{} + +type noopSpan struct{} +type noopSpanContext struct{} + +var ( + defaultNoopSpanContext SpanContext = noopSpanContext{} + defaultNoopSpan Span = noopSpan{} + defaultNoopTracer Tracer = NoopTracer{} +) + +const ( + emptyString = "" +) + +// noopSpanContext: +func (n noopSpanContext) ForeachBaggageItem(handler func(k, v string) bool) {} + +// noopSpan: +func (n noopSpan) Context() SpanContext { return defaultNoopSpanContext } +func (n noopSpan) SetBaggageItem(key, val string) Span { return n } +func (n noopSpan) BaggageItem(key string) string { return emptyString } +func (n noopSpan) SetTag(key string, value interface{}) Span { return n } +func (n noopSpan) LogFields(fields ...log.Field) {} +func (n noopSpan) LogKV(keyVals ...interface{}) {} +func (n noopSpan) Finish() {} +func (n noopSpan) FinishWithOptions(opts FinishOptions) {} +func (n noopSpan) SetOperationName(operationName string) Span { return n } +func (n noopSpan) Tracer() Tracer { return defaultNoopTracer } +func (n noopSpan) LogEvent(event string) {} +func (n noopSpan) LogEventWithPayload(event string, payload interface{}) {} +func (n noopSpan) Log(data LogData) {} + +// StartSpan belongs to the Tracer interface. +func (n NoopTracer) StartSpan(operationName string, opts ...StartSpanOption) Span { + return defaultNoopSpan +} + +// Inject belongs to the Tracer interface. +func (n NoopTracer) Inject(sp SpanContext, format interface{}, carrier interface{}) error { + return nil +} + +// Extract belongs to the Tracer interface. +func (n NoopTracer) Extract(format interface{}, carrier interface{}) (SpanContext, error) { + return nil, ErrSpanContextNotFound +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/propagation.go b/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/propagation.go new file mode 100644 index 00000000..b0c275eb --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/propagation.go @@ -0,0 +1,176 @@ +package opentracing + +import ( + "errors" + "net/http" +) + +/////////////////////////////////////////////////////////////////////////////// +// CORE PROPAGATION INTERFACES: +/////////////////////////////////////////////////////////////////////////////// + +var ( + // ErrUnsupportedFormat occurs when the `format` passed to Tracer.Inject() or + // Tracer.Extract() is not recognized by the Tracer implementation. + ErrUnsupportedFormat = errors.New("opentracing: Unknown or unsupported Inject/Extract format") + + // ErrSpanContextNotFound occurs when the `carrier` passed to + // Tracer.Extract() is valid and uncorrupted but has insufficient + // information to extract a SpanContext. + ErrSpanContextNotFound = errors.New("opentracing: SpanContext not found in Extract carrier") + + // ErrInvalidSpanContext errors occur when Tracer.Inject() is asked to + // operate on a SpanContext which it is not prepared to handle (for + // example, since it was created by a different tracer implementation). + ErrInvalidSpanContext = errors.New("opentracing: SpanContext type incompatible with tracer") + + // ErrInvalidCarrier errors occur when Tracer.Inject() or Tracer.Extract() + // implementations expect a different type of `carrier` than they are + // given. + ErrInvalidCarrier = errors.New("opentracing: Invalid Inject/Extract carrier") + + // ErrSpanContextCorrupted occurs when the `carrier` passed to + // Tracer.Extract() is of the expected type but is corrupted. + ErrSpanContextCorrupted = errors.New("opentracing: SpanContext data corrupted in Extract carrier") +) + +/////////////////////////////////////////////////////////////////////////////// +// BUILTIN PROPAGATION FORMATS: +/////////////////////////////////////////////////////////////////////////////// + +// BuiltinFormat is used to demarcate the values within package `opentracing` +// that are intended for use with the Tracer.Inject() and Tracer.Extract() +// methods. +type BuiltinFormat byte + +const ( + // Binary represents SpanContexts as opaque binary data. + // + // For Tracer.Inject(): the carrier must be an `io.Writer`. + // + // For Tracer.Extract(): the carrier must be an `io.Reader`. + Binary BuiltinFormat = iota + + // TextMap represents SpanContexts as key:value string pairs. + // + // Unlike HTTPHeaders, the TextMap format does not restrict the key or + // value character sets in any way. + // + // For Tracer.Inject(): the carrier must be a `TextMapWriter`. + // + // For Tracer.Extract(): the carrier must be a `TextMapReader`. + TextMap + + // HTTPHeaders represents SpanContexts as HTTP header string pairs. + // + // Unlike TextMap, the HTTPHeaders format requires that the keys and values + // be valid as HTTP headers as-is (i.e., character casing may be unstable + // and special characters are disallowed in keys, values should be + // URL-escaped, etc). + // + // For Tracer.Inject(): the carrier must be a `TextMapWriter`. + // + // For Tracer.Extract(): the carrier must be a `TextMapReader`. + // + // See HTTPHeadersCarrier for an implementation of both TextMapWriter + // and TextMapReader that defers to an http.Header instance for storage. + // For example, Inject(): + // + // carrier := opentracing.HTTPHeadersCarrier(httpReq.Header) + // err := span.Tracer().Inject( + // span.Context(), opentracing.HTTPHeaders, carrier) + // + // Or Extract(): + // + // carrier := opentracing.HTTPHeadersCarrier(httpReq.Header) + // clientContext, err := tracer.Extract( + // opentracing.HTTPHeaders, carrier) + // + HTTPHeaders +) + +// TextMapWriter is the Inject() carrier for the TextMap builtin format. With +// it, the caller can encode a SpanContext for propagation as entries in a map +// of unicode strings. +type TextMapWriter interface { + // Set a key:value pair to the carrier. Multiple calls to Set() for the + // same key leads to undefined behavior. + // + // NOTE: The backing store for the TextMapWriter may contain data unrelated + // to SpanContext. As such, Inject() and Extract() implementations that + // call the TextMapWriter and TextMapReader interfaces must agree on a + // prefix or other convention to distinguish their own key:value pairs. + Set(key, val string) +} + +// TextMapReader is the Extract() carrier for the TextMap builtin format. With it, +// the caller can decode a propagated SpanContext as entries in a map of +// unicode strings. +type TextMapReader interface { + // ForeachKey returns TextMap contents via repeated calls to the `handler` + // function. If any call to `handler` returns a non-nil error, ForeachKey + // terminates and returns that error. + // + // NOTE: The backing store for the TextMapReader may contain data unrelated + // to SpanContext. As such, Inject() and Extract() implementations that + // call the TextMapWriter and TextMapReader interfaces must agree on a + // prefix or other convention to distinguish their own key:value pairs. + // + // The "foreach" callback pattern reduces unnecessary copying in some cases + // and also allows implementations to hold locks while the map is read. + ForeachKey(handler func(key, val string) error) error +} + +// TextMapCarrier allows the use of regular map[string]string +// as both TextMapWriter and TextMapReader. +type TextMapCarrier map[string]string + +// ForeachKey conforms to the TextMapReader interface. +func (c TextMapCarrier) ForeachKey(handler func(key, val string) error) error { + for k, v := range c { + if err := handler(k, v); err != nil { + return err + } + } + return nil +} + +// Set implements Set() of opentracing.TextMapWriter +func (c TextMapCarrier) Set(key, val string) { + c[key] = val +} + +// HTTPHeadersCarrier satisfies both TextMapWriter and TextMapReader. +// +// Example usage for server side: +// +// carrier := opentracing.HTTPHeadersCarrier(httpReq.Header) +// clientContext, err := tracer.Extract(opentracing.HTTPHeaders, carrier) +// +// Example usage for client side: +// +// carrier := opentracing.HTTPHeadersCarrier(httpReq.Header) +// err := tracer.Inject( +// span.Context(), +// opentracing.HTTPHeaders, +// carrier) +// +type HTTPHeadersCarrier http.Header + +// Set conforms to the TextMapWriter interface. +func (c HTTPHeadersCarrier) Set(key, val string) { + h := http.Header(c) + h.Set(key, val) +} + +// ForeachKey conforms to the TextMapReader interface. +func (c HTTPHeadersCarrier) ForeachKey(handler func(key, val string) error) error { + for k, vals := range c { + for _, v := range vals { + if err := handler(k, v); err != nil { + return err + } + } + } + return nil +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/span.go b/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/span.go new file mode 100644 index 00000000..0d3fb534 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/span.go @@ -0,0 +1,189 @@ +package opentracing + +import ( + "time" + + "github.com/opentracing/opentracing-go/log" +) + +// SpanContext represents Span state that must propagate to descendant Spans and across process +// boundaries (e.g., a tuple). +type SpanContext interface { + // ForeachBaggageItem grants access to all baggage items stored in the + // SpanContext. + // The handler function will be called for each baggage key/value pair. + // The ordering of items is not guaranteed. + // + // The bool return value indicates if the handler wants to continue iterating + // through the rest of the baggage items; for example if the handler is trying to + // find some baggage item by pattern matching the name, it can return false + // as soon as the item is found to stop further iterations. + ForeachBaggageItem(handler func(k, v string) bool) +} + +// Span represents an active, un-finished span in the OpenTracing system. +// +// Spans are created by the Tracer interface. +type Span interface { + // Sets the end timestamp and finalizes Span state. + // + // With the exception of calls to Context() (which are always allowed), + // Finish() must be the last call made to any span instance, and to do + // otherwise leads to undefined behavior. + Finish() + // FinishWithOptions is like Finish() but with explicit control over + // timestamps and log data. + FinishWithOptions(opts FinishOptions) + + // Context() yields the SpanContext for this Span. Note that the return + // value of Context() is still valid after a call to Span.Finish(), as is + // a call to Span.Context() after a call to Span.Finish(). + Context() SpanContext + + // Sets or changes the operation name. + // + // Returns a reference to this Span for chaining. + SetOperationName(operationName string) Span + + // Adds a tag to the span. + // + // If there is a pre-existing tag set for `key`, it is overwritten. + // + // Tag values can be numeric types, strings, or bools. The behavior of + // other tag value types is undefined at the OpenTracing level. If a + // tracing system does not know how to handle a particular value type, it + // may ignore the tag, but shall not panic. + // + // Returns a reference to this Span for chaining. + SetTag(key string, value interface{}) Span + + // LogFields is an efficient and type-checked way to record key:value + // logging data about a Span, though the programming interface is a little + // more verbose than LogKV(). Here's an example: + // + // span.LogFields( + // log.String("event", "soft error"), + // log.String("type", "cache timeout"), + // log.Int("waited.millis", 1500)) + // + // Also see Span.FinishWithOptions() and FinishOptions.BulkLogData. + LogFields(fields ...log.Field) + + // LogKV is a concise, readable way to record key:value logging data about + // a Span, though unfortunately this also makes it less efficient and less + // type-safe than LogFields(). Here's an example: + // + // span.LogKV( + // "event", "soft error", + // "type", "cache timeout", + // "waited.millis", 1500) + // + // For LogKV (as opposed to LogFields()), the parameters must appear as + // key-value pairs, like + // + // span.LogKV(key1, val1, key2, val2, key3, val3, ...) + // + // The keys must all be strings. The values may be strings, numeric types, + // bools, Go error instances, or arbitrary structs. + // + // (Note to implementors: consider the log.InterleavedKVToFields() helper) + LogKV(alternatingKeyValues ...interface{}) + + // SetBaggageItem sets a key:value pair on this Span and its SpanContext + // that also propagates to descendants of this Span. + // + // SetBaggageItem() enables powerful functionality given a full-stack + // opentracing integration (e.g., arbitrary application data from a mobile + // app can make it, transparently, all the way into the depths of a storage + // system), and with it some powerful costs: use this feature with care. + // + // IMPORTANT NOTE #1: SetBaggageItem() will only propagate baggage items to + // *future* causal descendants of the associated Span. + // + // IMPORTANT NOTE #2: Use this thoughtfully and with care. Every key and + // value is copied into every local *and remote* child of the associated + // Span, and that can add up to a lot of network and cpu overhead. + // + // Returns a reference to this Span for chaining. + SetBaggageItem(restrictedKey, value string) Span + + // Gets the value for a baggage item given its key. Returns the empty string + // if the value isn't found in this Span. + BaggageItem(restrictedKey string) string + + // Provides access to the Tracer that created this Span. + Tracer() Tracer + + // Deprecated: use LogFields or LogKV + LogEvent(event string) + // Deprecated: use LogFields or LogKV + LogEventWithPayload(event string, payload interface{}) + // Deprecated: use LogFields or LogKV + Log(data LogData) +} + +// LogRecord is data associated with a single Span log. Every LogRecord +// instance must specify at least one Field. +type LogRecord struct { + Timestamp time.Time + Fields []log.Field +} + +// FinishOptions allows Span.FinishWithOptions callers to override the finish +// timestamp and provide log data via a bulk interface. +type FinishOptions struct { + // FinishTime overrides the Span's finish time, or implicitly becomes + // time.Now() if FinishTime.IsZero(). + // + // FinishTime must resolve to a timestamp that's >= the Span's StartTime + // (per StartSpanOptions). + FinishTime time.Time + + // LogRecords allows the caller to specify the contents of many LogFields() + // calls with a single slice. May be nil. + // + // None of the LogRecord.Timestamp values may be .IsZero() (i.e., they must + // be set explicitly). Also, they must be >= the Span's start timestamp and + // <= the FinishTime (or time.Now() if FinishTime.IsZero()). Otherwise the + // behavior of FinishWithOptions() is undefined. + // + // If specified, the caller hands off ownership of LogRecords at + // FinishWithOptions() invocation time. + // + // If specified, the (deprecated) BulkLogData must be nil or empty. + LogRecords []LogRecord + + // BulkLogData is DEPRECATED. + BulkLogData []LogData +} + +// LogData is DEPRECATED +type LogData struct { + Timestamp time.Time + Event string + Payload interface{} +} + +// ToLogRecord converts a deprecated LogData to a non-deprecated LogRecord +func (ld *LogData) ToLogRecord() LogRecord { + var literalTimestamp time.Time + if ld.Timestamp.IsZero() { + literalTimestamp = time.Now() + } else { + literalTimestamp = ld.Timestamp + } + rval := LogRecord{ + Timestamp: literalTimestamp, + } + if ld.Payload == nil { + rval.Fields = []log.Field{ + log.String("event", ld.Event), + } + } else { + rval.Fields = []log.Field{ + log.String("event", ld.Event), + log.Object("payload", ld.Payload), + } + } + return rval +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/tracer.go b/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/tracer.go new file mode 100644 index 00000000..715f0ced --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/opentracing/opentracing-go/tracer.go @@ -0,0 +1,304 @@ +package opentracing + +import "time" + +// Tracer is a simple, thin interface for Span creation and SpanContext +// propagation. +type Tracer interface { + + // Create, start, and return a new Span with the given `operationName` and + // incorporate the given StartSpanOption `opts`. (Note that `opts` borrows + // from the "functional options" pattern, per + // http://dave.cheney.net/2014/10/17/functional-options-for-friendly-apis) + // + // A Span with no SpanReference options (e.g., opentracing.ChildOf() or + // opentracing.FollowsFrom()) becomes the root of its own trace. + // + // Examples: + // + // var tracer opentracing.Tracer = ... + // + // // The root-span case: + // sp := tracer.StartSpan("GetFeed") + // + // // The vanilla child span case: + // sp := tracer.StartSpan( + // "GetFeed", + // opentracing.ChildOf(parentSpan.Context())) + // + // // All the bells and whistles: + // sp := tracer.StartSpan( + // "GetFeed", + // opentracing.ChildOf(parentSpan.Context()), + // opentracing.Tag{"user_agent", loggedReq.UserAgent}, + // opentracing.StartTime(loggedReq.Timestamp), + // ) + // + StartSpan(operationName string, opts ...StartSpanOption) Span + + // Inject() takes the `sm` SpanContext instance and injects it for + // propagation within `carrier`. The actual type of `carrier` depends on + // the value of `format`. + // + // OpenTracing defines a common set of `format` values (see BuiltinFormat), + // and each has an expected carrier type. + // + // Other packages may declare their own `format` values, much like the keys + // used by `context.Context` (see https://godoc.org/context#WithValue). + // + // Example usage (sans error handling): + // + // carrier := opentracing.HTTPHeadersCarrier(httpReq.Header) + // err := tracer.Inject( + // span.Context(), + // opentracing.HTTPHeaders, + // carrier) + // + // NOTE: All opentracing.Tracer implementations MUST support all + // BuiltinFormats. + // + // Implementations may return opentracing.ErrUnsupportedFormat if `format` + // is not supported by (or not known by) the implementation. + // + // Implementations may return opentracing.ErrInvalidCarrier or any other + // implementation-specific error if the format is supported but injection + // fails anyway. + // + // See Tracer.Extract(). + Inject(sm SpanContext, format interface{}, carrier interface{}) error + + // Extract() returns a SpanContext instance given `format` and `carrier`. + // + // OpenTracing defines a common set of `format` values (see BuiltinFormat), + // and each has an expected carrier type. + // + // Other packages may declare their own `format` values, much like the keys + // used by `context.Context` (see + // https://godoc.org/golang.org/x/net/context#WithValue). + // + // Example usage (with StartSpan): + // + // + // carrier := opentracing.HTTPHeadersCarrier(httpReq.Header) + // clientContext, err := tracer.Extract(opentracing.HTTPHeaders, carrier) + // + // // ... assuming the ultimate goal here is to resume the trace with a + // // server-side Span: + // var serverSpan opentracing.Span + // if err == nil { + // span = tracer.StartSpan( + // rpcMethodName, ext.RPCServerOption(clientContext)) + // } else { + // span = tracer.StartSpan(rpcMethodName) + // } + // + // + // NOTE: All opentracing.Tracer implementations MUST support all + // BuiltinFormats. + // + // Return values: + // - A successful Extract returns a SpanContext instance and a nil error + // - If there was simply no SpanContext to extract in `carrier`, Extract() + // returns (nil, opentracing.ErrSpanContextNotFound) + // - If `format` is unsupported or unrecognized, Extract() returns (nil, + // opentracing.ErrUnsupportedFormat) + // - If there are more fundamental problems with the `carrier` object, + // Extract() may return opentracing.ErrInvalidCarrier, + // opentracing.ErrSpanContextCorrupted, or implementation-specific + // errors. + // + // See Tracer.Inject(). + Extract(format interface{}, carrier interface{}) (SpanContext, error) +} + +// StartSpanOptions allows Tracer.StartSpan() callers and implementors a +// mechanism to override the start timestamp, specify Span References, and make +// a single Tag or multiple Tags available at Span start time. +// +// StartSpan() callers should look at the StartSpanOption interface and +// implementations available in this package. +// +// Tracer implementations can convert a slice of `StartSpanOption` instances +// into a `StartSpanOptions` struct like so: +// +// func StartSpan(opName string, opts ...opentracing.StartSpanOption) { +// sso := opentracing.StartSpanOptions{} +// for _, o := range opts { +// o.Apply(&sso) +// } +// ... +// } +// +type StartSpanOptions struct { + // Zero or more causal references to other Spans (via their SpanContext). + // If empty, start a "root" Span (i.e., start a new trace). + References []SpanReference + + // StartTime overrides the Span's start time, or implicitly becomes + // time.Now() if StartTime.IsZero(). + StartTime time.Time + + // Tags may have zero or more entries; the restrictions on map values are + // identical to those for Span.SetTag(). May be nil. + // + // If specified, the caller hands off ownership of Tags at + // StartSpan() invocation time. + Tags map[string]interface{} +} + +// StartSpanOption instances (zero or more) may be passed to Tracer.StartSpan. +// +// StartSpanOption borrows from the "functional options" pattern, per +// http://dave.cheney.net/2014/10/17/functional-options-for-friendly-apis +type StartSpanOption interface { + Apply(*StartSpanOptions) +} + +// SpanReferenceType is an enum type describing different categories of +// relationships between two Spans. If Span-2 refers to Span-1, the +// SpanReferenceType describes Span-1 from Span-2's perspective. For example, +// ChildOfRef means that Span-1 created Span-2. +// +// NOTE: Span-1 and Span-2 do *not* necessarily depend on each other for +// completion; e.g., Span-2 may be part of a background job enqueued by Span-1, +// or Span-2 may be sitting in a distributed queue behind Span-1. +type SpanReferenceType int + +const ( + // ChildOfRef refers to a parent Span that caused *and* somehow depends + // upon the new child Span. Often (but not always), the parent Span cannot + // finish until the child Span does. + // + // An timing diagram for a ChildOfRef that's blocked on the new Span: + // + // [-Parent Span---------] + // [-Child Span----] + // + // See http://opentracing.io/spec/ + // + // See opentracing.ChildOf() + ChildOfRef SpanReferenceType = iota + + // FollowsFromRef refers to a parent Span that does not depend in any way + // on the result of the new child Span. For instance, one might use + // FollowsFromRefs to describe pipeline stages separated by queues, + // or a fire-and-forget cache insert at the tail end of a web request. + // + // A FollowsFromRef Span is part of the same logical trace as the new Span: + // i.e., the new Span is somehow caused by the work of its FollowsFromRef. + // + // All of the following could be valid timing diagrams for children that + // "FollowFrom" a parent. + // + // [-Parent Span-] [-Child Span-] + // + // + // [-Parent Span--] + // [-Child Span-] + // + // + // [-Parent Span-] + // [-Child Span-] + // + // See http://opentracing.io/spec/ + // + // See opentracing.FollowsFrom() + FollowsFromRef +) + +// SpanReference is a StartSpanOption that pairs a SpanReferenceType and a +// referenced SpanContext. See the SpanReferenceType documentation for +// supported relationships. If SpanReference is created with +// ReferencedContext==nil, it has no effect. Thus it allows for a more concise +// syntax for starting spans: +// +// sc, _ := tracer.Extract(someFormat, someCarrier) +// span := tracer.StartSpan("operation", opentracing.ChildOf(sc)) +// +// The `ChildOf(sc)` option above will not panic if sc == nil, it will just +// not add the parent span reference to the options. +type SpanReference struct { + Type SpanReferenceType + ReferencedContext SpanContext +} + +// Apply satisfies the StartSpanOption interface. +func (r SpanReference) Apply(o *StartSpanOptions) { + if r.ReferencedContext != nil { + o.References = append(o.References, r) + } +} + +// ChildOf returns a StartSpanOption pointing to a dependent parent span. +// If sc == nil, the option has no effect. +// +// See ChildOfRef, SpanReference +func ChildOf(sc SpanContext) SpanReference { + return SpanReference{ + Type: ChildOfRef, + ReferencedContext: sc, + } +} + +// FollowsFrom returns a StartSpanOption pointing to a parent Span that caused +// the child Span but does not directly depend on its result in any way. +// If sc == nil, the option has no effect. +// +// See FollowsFromRef, SpanReference +func FollowsFrom(sc SpanContext) SpanReference { + return SpanReference{ + Type: FollowsFromRef, + ReferencedContext: sc, + } +} + +// StartTime is a StartSpanOption that sets an explicit start timestamp for the +// new Span. +type StartTime time.Time + +// Apply satisfies the StartSpanOption interface. +func (t StartTime) Apply(o *StartSpanOptions) { + o.StartTime = time.Time(t) +} + +// Tags are a generic map from an arbitrary string key to an opaque value type. +// The underlying tracing system is responsible for interpreting and +// serializing the values. +type Tags map[string]interface{} + +// Apply satisfies the StartSpanOption interface. +func (t Tags) Apply(o *StartSpanOptions) { + if o.Tags == nil { + o.Tags = make(map[string]interface{}) + } + for k, v := range t { + o.Tags[k] = v + } +} + +// Tag may be passed as a StartSpanOption to add a tag to new spans, +// or its Set method may be used to apply the tag to an existing Span, +// for example: +// +// tracer.StartSpan("opName", Tag{"Key", value}) +// +// or +// +// Tag{"key", value}.Set(span) +type Tag struct { + Key string + Value interface{} +} + +// Apply satisfies the StartSpanOption interface. +func (t Tag) Apply(o *StartSpanOptions) { + if o.Tags == nil { + o.Tags = make(map[string]interface{}) + } + o.Tags[t.Key] = t.Value +} + +// Set applies the tag to an existing Span. +func (t Tag) Set(s Span) { + s.SetTag(t.Key, t.Value) +} diff --git a/src/bosh-alicloud-cpi/vendor/github.com/tjfoc/gmsm/LICENSE b/src/bosh-alicloud-cpi/vendor/github.com/tjfoc/gmsm/LICENSE new file mode 100644 index 00000000..8dada3ed --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/tjfoc/gmsm/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "{}" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright {yyyy} {name of copyright owner} + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/src/bosh-alicloud-cpi/vendor/github.com/tjfoc/gmsm/sm3/ifile b/src/bosh-alicloud-cpi/vendor/github.com/tjfoc/gmsm/sm3/ifile new file mode 100644 index 00000000..30d74d25 --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/tjfoc/gmsm/sm3/ifile @@ -0,0 +1 @@ +test \ No newline at end of file diff --git a/src/bosh-alicloud-cpi/vendor/github.com/tjfoc/gmsm/sm3/sm3.go b/src/bosh-alicloud-cpi/vendor/github.com/tjfoc/gmsm/sm3/sm3.go new file mode 100644 index 00000000..7c6094cd --- /dev/null +++ b/src/bosh-alicloud-cpi/vendor/github.com/tjfoc/gmsm/sm3/sm3.go @@ -0,0 +1,259 @@ +/* +Copyright Suzhou Tongji Fintech Research Institute 2017 All Rights Reserved. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package sm3 + +import ( + "encoding/binary" + "hash" +) + +type SM3 struct { + digest [8]uint32 // digest represents the partial evaluation of V + length uint64 // length of the message + unhandleMsg []byte // uint8 // +} + +func (sm3 *SM3) ff0(x, y, z uint32) uint32 { return x ^ y ^ z } + +func (sm3 *SM3) ff1(x, y, z uint32) uint32 { return (x & y) | (x & z) | (y & z) } + +func (sm3 *SM3) gg0(x, y, z uint32) uint32 { return x ^ y ^ z } + +func (sm3 *SM3) gg1(x, y, z uint32) uint32 { return (x & y) | (^x & z) } + +func (sm3 *SM3) p0(x uint32) uint32 { return x ^ sm3.leftRotate(x, 9) ^ sm3.leftRotate(x, 17) } + +func (sm3 *SM3) p1(x uint32) uint32 { return x ^ sm3.leftRotate(x, 15) ^ sm3.leftRotate(x, 23) } + +func (sm3 *SM3) leftRotate(x uint32, i uint32) uint32 { return x<<(i%32) | x>>(32-i%32) } + +func (sm3 *SM3) pad() []byte { + msg := sm3.unhandleMsg + msg = append(msg, 0x80) // Append '1' + blockSize := 64 // Append until the resulting message length (in bits) is congruent to 448 (mod 512) + for len(msg)%blockSize != 56 { + msg = append(msg, 0x00) + } + // append message length + msg = append(msg, uint8(sm3.length>>56&0xff)) + msg = append(msg, uint8(sm3.length>>48&0xff)) + msg = append(msg, uint8(sm3.length>>40&0xff)) + msg = append(msg, uint8(sm3.length>>32&0xff)) + msg = append(msg, uint8(sm3.length>>24&0xff)) + msg = append(msg, uint8(sm3.length>>16&0xff)) + msg = append(msg, uint8(sm3.length>>8&0xff)) + msg = append(msg, uint8(sm3.length>>0&0xff)) + + if len(msg)%64 != 0 { + panic("------SM3 Pad: error msgLen =") + } + return msg +} + +func (sm3 *SM3) update(msg []byte) { + var w [68]uint32 + var w1 [64]uint32 + + a, b, c, d, e, f, g, h := sm3.digest[0], sm3.digest[1], sm3.digest[2], sm3.digest[3], sm3.digest[4], sm3.digest[5], sm3.digest[6], sm3.digest[7] + for len(msg) >= 64 { + for i := 0; i < 16; i++ { + w[i] = binary.BigEndian.Uint32(msg[4*i : 4*(i+1)]) + } + for i := 16; i < 68; i++ { + w[i] = sm3.p1(w[i-16]^w[i-9]^sm3.leftRotate(w[i-3], 15)) ^ sm3.leftRotate(w[i-13], 7) ^ w[i-6] + } + for i := 0; i < 64; i++ { + w1[i] = w[i] ^ w[i+4] + } + A, B, C, D, E, F, G, H := a, b, c, d, e, f, g, h + for i := 0; i < 16; i++ { + SS1 := sm3.leftRotate(sm3.leftRotate(A, 12)+E+sm3.leftRotate(0x79cc4519, uint32(i)), 7) + SS2 := SS1 ^ sm3.leftRotate(A, 12) + TT1 := sm3.ff0(A, B, C) + D + SS2 + w1[i] + TT2 := sm3.gg0(E, F, G) + H + SS1 + w[i] + D = C + C = sm3.leftRotate(B, 9) + B = A + A = TT1 + H = G + G = sm3.leftRotate(F, 19) + F = E + E = sm3.p0(TT2) + } + for i := 16; i < 64; i++ { + SS1 := sm3.leftRotate(sm3.leftRotate(A, 12)+E+sm3.leftRotate(0x7a879d8a, uint32(i)), 7) + SS2 := SS1 ^ sm3.leftRotate(A, 12) + TT1 := sm3.ff1(A, B, C) + D + SS2 + w1[i] + TT2 := sm3.gg1(E, F, G) + H + SS1 + w[i] + D = C + C = sm3.leftRotate(B, 9) + B = A + A = TT1 + H = G + G = sm3.leftRotate(F, 19) + F = E + E = sm3.p0(TT2) + } + a ^= A + b ^= B + c ^= C + d ^= D + e ^= E + f ^= F + g ^= G + h ^= H + msg = msg[64:] + } + sm3.digest[0], sm3.digest[1], sm3.digest[2], sm3.digest[3], sm3.digest[4], sm3.digest[5], sm3.digest[6], sm3.digest[7] = a, b, c, d, e, f, g, h +} +func (sm3 *SM3) update2(msg []byte,) [8]uint32 { + var w [68]uint32 + var w1 [64]uint32 + + a, b, c, d, e, f, g, h := sm3.digest[0], sm3.digest[1], sm3.digest[2], sm3.digest[3], sm3.digest[4], sm3.digest[5], sm3.digest[6], sm3.digest[7] + for len(msg) >= 64 { + for i := 0; i < 16; i++ { + w[i] = binary.BigEndian.Uint32(msg[4*i : 4*(i+1)]) + } + for i := 16; i < 68; i++ { + w[i] = sm3.p1(w[i-16]^w[i-9]^sm3.leftRotate(w[i-3], 15)) ^ sm3.leftRotate(w[i-13], 7) ^ w[i-6] + } + for i := 0; i < 64; i++ { + w1[i] = w[i] ^ w[i+4] + } + A, B, C, D, E, F, G, H := a, b, c, d, e, f, g, h + for i := 0; i < 16; i++ { + SS1 := sm3.leftRotate(sm3.leftRotate(A, 12)+E+sm3.leftRotate(0x79cc4519, uint32(i)), 7) + SS2 := SS1 ^ sm3.leftRotate(A, 12) + TT1 := sm3.ff0(A, B, C) + D + SS2 + w1[i] + TT2 := sm3.gg0(E, F, G) + H + SS1 + w[i] + D = C + C = sm3.leftRotate(B, 9) + B = A + A = TT1 + H = G + G = sm3.leftRotate(F, 19) + F = E + E = sm3.p0(TT2) + } + for i := 16; i < 64; i++ { + SS1 := sm3.leftRotate(sm3.leftRotate(A, 12)+E+sm3.leftRotate(0x7a879d8a, uint32(i)), 7) + SS2 := SS1 ^ sm3.leftRotate(A, 12) + TT1 := sm3.ff1(A, B, C) + D + SS2 + w1[i] + TT2 := sm3.gg1(E, F, G) + H + SS1 + w[i] + D = C + C = sm3.leftRotate(B, 9) + B = A + A = TT1 + H = G + G = sm3.leftRotate(F, 19) + F = E + E = sm3.p0(TT2) + } + a ^= A + b ^= B + c ^= C + d ^= D + e ^= E + f ^= F + g ^= G + h ^= H + msg = msg[64:] + } + var digest [8]uint32 + digest[0], digest[1], digest[2], digest[3], digest[4], digest[5], digest[6], digest[7] = a, b, c, d, e, f, g, h + return digest +} + +// 创建哈希计算实例 +func New() hash.Hash { + var sm3 SM3 + + sm3.Reset() + return &sm3 +} + +// BlockSize returns the hash's underlying block size. +// The Write method must be able to accept any amount +// of data, but it may operate more efficiently if all writes +// are a multiple of the block size. +func (sm3 *SM3) BlockSize() int { return 64 } + +// Size returns the number of bytes Sum will return. +func (sm3 *SM3) Size() int { return 32 } + +// Reset clears the internal state by zeroing bytes in the state buffer. +// This can be skipped for a newly-created hash state; the default zero-allocated state is correct. +func (sm3 *SM3) Reset() { + // Reset digest + sm3.digest[0] = 0x7380166f + sm3.digest[1] = 0x4914b2b9 + sm3.digest[2] = 0x172442d7 + sm3.digest[3] = 0xda8a0600 + sm3.digest[4] = 0xa96f30bc + sm3.digest[5] = 0x163138aa + sm3.digest[6] = 0xe38dee4d + sm3.digest[7] = 0xb0fb0e4e + + sm3.length = 0 // Reset numberic states + sm3.unhandleMsg = []byte{} +} + +// Write (via the embedded io.Writer interface) adds more data to the running hash. +// It never returns an error. +func (sm3 *SM3) Write(p []byte) (int, error) { + toWrite := len(p) + sm3.length += uint64(len(p) * 8) + msg := append(sm3.unhandleMsg, p...) + nblocks := len(msg) / sm3.BlockSize() + sm3.update(msg) + // Update unhandleMsg + sm3.unhandleMsg = msg[nblocks*sm3.BlockSize():] + + return toWrite, nil +} + +// 返回SM3哈希算法摘要值 +// Sum appends the current hash to b and returns the resulting slice. +// It does not change the underlying hash state. +func (sm3 *SM3) Sum(in []byte) []byte { + _, _ = sm3.Write(in) + msg := sm3.pad() + //Finalize + digest := sm3.update2(msg) + + // save hash to in + needed := sm3.Size() + if cap(in)-len(in) < needed { + newIn := make([]byte, len(in), len(in)+needed) + copy(newIn, in) + in = newIn + } + out := in[len(in) : len(in)+needed] + for i := 0; i < 8; i++ { + binary.BigEndian.PutUint32(out[i*4:], digest[i]) + } + return out + +} + +func Sm3Sum(data []byte) []byte { + var sm3 SM3 + + sm3.Reset() + _, _ = sm3.Write(data) + return sm3.Sum(nil) +} diff --git a/src/bosh-alicloud-cpi/vendor/modules.txt b/src/bosh-alicloud-cpi/vendor/modules.txt index 19205a73..86a8bf53 100644 --- a/src/bosh-alicloud-cpi/vendor/modules.txt +++ b/src/bosh-alicloud-cpi/vendor/modules.txt @@ -1,21 +1,27 @@ -# github.com/alibabacloud-go/debug v0.0.0-20190504072949-9472017b5c68 -## explicit +# github.com/alibabacloud-go/alibabacloud-gateway-spi v0.0.4 +## explicit; go 1.14 +github.com/alibabacloud-go/alibabacloud-gateway-spi/client +# github.com/alibabacloud-go/darabonba-openapi/v2 v2.0.8 +## explicit; go 1.14 +github.com/alibabacloud-go/darabonba-openapi/v2/client +# github.com/alibabacloud-go/debug v1.0.0 +## explicit; go 1.18 github.com/alibabacloud-go/debug/debug -# github.com/alibabacloud-go/tea v1.2.1 +# github.com/alibabacloud-go/openapi-util v0.1.1 +## explicit; go 1.14 +github.com/alibabacloud-go/openapi-util/service +# github.com/alibabacloud-go/tea v1.2.2 ## explicit; go 1.14 github.com/alibabacloud-go/tea/tea github.com/alibabacloud-go/tea/utils -# github.com/alibabacloud-go/tea-rpc v1.3.3 => github.com/alibabacloud-go/tea-rpc v1.3.3 -## explicit; go 1.14 -github.com/alibabacloud-go/tea-rpc/client -# github.com/alibabacloud-go/tea-rpc-utils v1.1.2 +# github.com/alibabacloud-go/tea-utils/v2 v2.0.6 ## explicit; go 1.14 -github.com/alibabacloud-go/tea-rpc-utils/service -# github.com/alibabacloud-go/tea-utils v1.4.5 => github.com/alibabacloud-go/tea-utils v1.4.5 +github.com/alibabacloud-go/tea-utils/v2/service +# github.com/alibabacloud-go/tea-xml v1.1.3 ## explicit; go 1.14 -github.com/alibabacloud-go/tea-utils/service -# github.com/aliyun/alibaba-cloud-sdk-go v0.0.0-20190830085952-7a8078751366 => github.com/aliyun/alibaba-cloud-sdk-go v0.0.0-20190830085952-7a8078751366 -## explicit +github.com/alibabacloud-go/tea-xml/service +# github.com/aliyun/alibaba-cloud-sdk-go v1.62.676 +## explicit; go 1.13 github.com/aliyun/alibaba-cloud-sdk-go/sdk github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials @@ -32,7 +38,7 @@ github.com/aliyun/alibaba-cloud-sdk-go/services/slb # github.com/aliyun/aliyun-oss-go-sdk v3.0.1+incompatible ## explicit github.com/aliyun/aliyun-oss-go-sdk/oss -# github.com/aliyun/credentials-go v1.2.7 => github.com/aliyun/credentials-go v1.2.7 +# github.com/aliyun/credentials-go v1.3.2 ## explicit; go 1.14 github.com/aliyun/credentials-go/credentials github.com/aliyun/credentials-go/credentials/request @@ -44,6 +50,9 @@ github.com/bmatcuk/doublestar # github.com/charlievieth/fs v0.0.3 ## explicit; go 1.18 github.com/charlievieth/fs +# github.com/clbanning/mxj/v2 v2.5.5 +## explicit; go 1.15 +github.com/clbanning/mxj/v2 # github.com/cloudfoundry/bosh-utils v0.0.407 ## explicit; go 1.21 github.com/cloudfoundry/bosh-utils/errors @@ -104,15 +113,23 @@ github.com/onsi/gomega/matchers/support/goraph/edge github.com/onsi/gomega/matchers/support/goraph/node github.com/onsi/gomega/matchers/support/goraph/util github.com/onsi/gomega/types -# golang.org/x/net v0.17.0 -## explicit; go 1.17 +# github.com/opentracing/opentracing-go v1.2.1-0.20220228012449-10b1cf09e00b +## explicit; go 1.14 +github.com/opentracing/opentracing-go +github.com/opentracing/opentracing-go/ext +github.com/opentracing/opentracing-go/log +# github.com/tjfoc/gmsm v1.4.1 +## explicit; go 1.14 +github.com/tjfoc/gmsm/sm3 +# golang.org/x/net v0.20.0 +## explicit; go 1.18 golang.org/x/net/html golang.org/x/net/html/atom golang.org/x/net/html/charset golang.org/x/net/internal/socks golang.org/x/net/proxy -# golang.org/x/text v0.13.0 -## explicit; go 1.17 +# golang.org/x/text v0.14.0 +## explicit; go 1.18 golang.org/x/text/encoding golang.org/x/text/encoding/charmap golang.org/x/text/encoding/htmlindex