瀏覽代碼

ECS SDK Auto Released By corey.ql,Version:1.32.0

Signed-off-by: yixiong.jxy <yixiong.jxy@alibaba-inc.com>
yixiong.jxy 7 年之前
父節點
當前提交
df5f2f190b

+ 6 - 0
ChangeLog.txt

@@ -1,3 +1,9 @@
+2018-10-16 Version: 1.32.0
+1, Delete deprecated and unusable apis : AddIpRange, UnbindIpRange, BindIpRange, DescribeIntranetAttributeKb, DescribeIpRanges, ModifyIntranetBandwidthKb, DescribeEventDetail, CheckAutoSnapshotPolicy, CheckDiskEnableAutoSnapshotValidation, DescribeAutoSnapshotPolicy
+2, Add instance topology api DescribeInstanceTopology
+3, Add mount point in DescribeDisksFullStatus
+
+
 2018-10-12 Version: 1.31.8
 1, ModifyCenAttribute supports ProtectionLevel.
 2, New APIs: PublishRouteEntries/WithdrawPublishedRouteEntries/DescribePublishedRouteEntries

+ 0 - 108
services/ecs/add_ip_range.go

@@ -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"
-)
-
-// AddIpRange invokes the ecs.AddIpRange API synchronously
-// api document: https://help.aliyun.com/api/ecs/addiprange.html
-func (client *Client) AddIpRange(request *AddIpRangeRequest) (response *AddIpRangeResponse, err error) {
-	response = CreateAddIpRangeResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// AddIpRangeWithChan invokes the ecs.AddIpRange API asynchronously
-// api document: https://help.aliyun.com/api/ecs/addiprange.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) AddIpRangeWithChan(request *AddIpRangeRequest) (<-chan *AddIpRangeResponse, <-chan error) {
-	responseChan := make(chan *AddIpRangeResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.AddIpRange(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// AddIpRangeWithCallback invokes the ecs.AddIpRange API asynchronously
-// api document: https://help.aliyun.com/api/ecs/addiprange.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) AddIpRangeWithCallback(request *AddIpRangeRequest, callback func(response *AddIpRangeResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *AddIpRangeResponse
-		var err error
-		defer close(result)
-		response, err = client.AddIpRange(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// AddIpRangeRequest is the request struct for api AddIpRange
-type AddIpRangeRequest struct {
-	*requests.RpcRequest
-	IpAddress            string           `position:"Query" name:"IpAddress"`
-	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
-	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
-	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
-	ZoneId               string           `position:"Query" name:"ZoneId"`
-	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
-}
-
-// AddIpRangeResponse is the response struct for api AddIpRange
-type AddIpRangeResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-}
-
-// CreateAddIpRangeRequest creates a request to invoke AddIpRange API
-func CreateAddIpRangeRequest() (request *AddIpRangeRequest) {
-	request = &AddIpRangeRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("Ecs", "2014-05-26", "AddIpRange", "ecs", "openAPI")
-	return
-}
-
-// CreateAddIpRangeResponse creates a response to parse from AddIpRange response
-func CreateAddIpRangeResponse() (response *AddIpRangeResponse) {
-	response = &AddIpRangeResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 108
services/ecs/bind_ip_range.go

@@ -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"
-)
-
-// BindIpRange invokes the ecs.BindIpRange API synchronously
-// api document: https://help.aliyun.com/api/ecs/bindiprange.html
-func (client *Client) BindIpRange(request *BindIpRangeRequest) (response *BindIpRangeResponse, err error) {
-	response = CreateBindIpRangeResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// BindIpRangeWithChan invokes the ecs.BindIpRange API asynchronously
-// api document: https://help.aliyun.com/api/ecs/bindiprange.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) BindIpRangeWithChan(request *BindIpRangeRequest) (<-chan *BindIpRangeResponse, <-chan error) {
-	responseChan := make(chan *BindIpRangeResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.BindIpRange(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// BindIpRangeWithCallback invokes the ecs.BindIpRange API asynchronously
-// api document: https://help.aliyun.com/api/ecs/bindiprange.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) BindIpRangeWithCallback(request *BindIpRangeRequest, callback func(response *BindIpRangeResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *BindIpRangeResponse
-		var err error
-		defer close(result)
-		response, err = client.BindIpRange(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// BindIpRangeRequest is the request struct for api BindIpRange
-type BindIpRangeRequest 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"`
-	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
-	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
-}
-
-// BindIpRangeResponse is the response struct for api BindIpRange
-type BindIpRangeResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-}
-
-// CreateBindIpRangeRequest creates a request to invoke BindIpRange API
-func CreateBindIpRangeRequest() (request *BindIpRangeRequest) {
-	request = &BindIpRangeRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("Ecs", "2014-05-26", "BindIpRange", "ecs", "openAPI")
-	return
-}
-
-// CreateBindIpRangeResponse creates a response to parse from BindIpRange response
-func CreateBindIpRangeResponse() (response *BindIpRangeResponse) {
-	response = &BindIpRangeResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 116
services/ecs/check_auto_snapshot_policy.go

@@ -1,116 +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"
-)
-
-// CheckAutoSnapshotPolicy invokes the ecs.CheckAutoSnapshotPolicy API synchronously
-// api document: https://help.aliyun.com/api/ecs/checkautosnapshotpolicy.html
-func (client *Client) CheckAutoSnapshotPolicy(request *CheckAutoSnapshotPolicyRequest) (response *CheckAutoSnapshotPolicyResponse, err error) {
-	response = CreateCheckAutoSnapshotPolicyResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// CheckAutoSnapshotPolicyWithChan invokes the ecs.CheckAutoSnapshotPolicy API asynchronously
-// api document: https://help.aliyun.com/api/ecs/checkautosnapshotpolicy.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) CheckAutoSnapshotPolicyWithChan(request *CheckAutoSnapshotPolicyRequest) (<-chan *CheckAutoSnapshotPolicyResponse, <-chan error) {
-	responseChan := make(chan *CheckAutoSnapshotPolicyResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.CheckAutoSnapshotPolicy(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// CheckAutoSnapshotPolicyWithCallback invokes the ecs.CheckAutoSnapshotPolicy API asynchronously
-// api document: https://help.aliyun.com/api/ecs/checkautosnapshotpolicy.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) CheckAutoSnapshotPolicyWithCallback(request *CheckAutoSnapshotPolicyRequest, callback func(response *CheckAutoSnapshotPolicyResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *CheckAutoSnapshotPolicyResponse
-		var err error
-		defer close(result)
-		response, err = client.CheckAutoSnapshotPolicy(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// CheckAutoSnapshotPolicyRequest is the request struct for api CheckAutoSnapshotPolicy
-type CheckAutoSnapshotPolicyRequest struct {
-	*requests.RpcRequest
-	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"`
-	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"`
-}
-
-// CheckAutoSnapshotPolicyResponse is the response struct for api CheckAutoSnapshotPolicy
-type CheckAutoSnapshotPolicyResponse struct {
-	*responses.BaseResponse
-	RequestId              string `json:"RequestId" xml:"RequestId"`
-	AutoSnapshotOccupation int    `json:"AutoSnapshotOccupation" xml:"AutoSnapshotOccupation"`
-	IsPermittedModify      string `json:"IsPermittedModify" xml:"IsPermittedModify"`
-}
-
-// CreateCheckAutoSnapshotPolicyRequest creates a request to invoke CheckAutoSnapshotPolicy API
-func CreateCheckAutoSnapshotPolicyRequest() (request *CheckAutoSnapshotPolicyRequest) {
-	request = &CheckAutoSnapshotPolicyRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("Ecs", "2014-05-26", "CheckAutoSnapshotPolicy", "ecs", "openAPI")
-	return
-}
-
-// CreateCheckAutoSnapshotPolicyResponse creates a response to parse from CheckAutoSnapshotPolicy response
-func CreateCheckAutoSnapshotPolicyResponse() (response *CheckAutoSnapshotPolicyResponse) {
-	response = &CheckAutoSnapshotPolicyResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 109
services/ecs/check_disk_enable_auto_snapshot_validation.go

@@ -1,109 +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"
-)
-
-// CheckDiskEnableAutoSnapshotValidation invokes the ecs.CheckDiskEnableAutoSnapshotValidation API synchronously
-// api document: https://help.aliyun.com/api/ecs/checkdiskenableautosnapshotvalidation.html
-func (client *Client) CheckDiskEnableAutoSnapshotValidation(request *CheckDiskEnableAutoSnapshotValidationRequest) (response *CheckDiskEnableAutoSnapshotValidationResponse, err error) {
-	response = CreateCheckDiskEnableAutoSnapshotValidationResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// CheckDiskEnableAutoSnapshotValidationWithChan invokes the ecs.CheckDiskEnableAutoSnapshotValidation API asynchronously
-// api document: https://help.aliyun.com/api/ecs/checkdiskenableautosnapshotvalidation.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) CheckDiskEnableAutoSnapshotValidationWithChan(request *CheckDiskEnableAutoSnapshotValidationRequest) (<-chan *CheckDiskEnableAutoSnapshotValidationResponse, <-chan error) {
-	responseChan := make(chan *CheckDiskEnableAutoSnapshotValidationResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.CheckDiskEnableAutoSnapshotValidation(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// CheckDiskEnableAutoSnapshotValidationWithCallback invokes the ecs.CheckDiskEnableAutoSnapshotValidation API asynchronously
-// api document: https://help.aliyun.com/api/ecs/checkdiskenableautosnapshotvalidation.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) CheckDiskEnableAutoSnapshotValidationWithCallback(request *CheckDiskEnableAutoSnapshotValidationRequest, callback func(response *CheckDiskEnableAutoSnapshotValidationResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *CheckDiskEnableAutoSnapshotValidationResponse
-		var err error
-		defer close(result)
-		response, err = client.CheckDiskEnableAutoSnapshotValidation(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// CheckDiskEnableAutoSnapshotValidationRequest is the request struct for api CheckDiskEnableAutoSnapshotValidation
-type CheckDiskEnableAutoSnapshotValidationRequest struct {
-	*requests.RpcRequest
-	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
-	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
-	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
-	DiskIds              string           `position:"Query" name:"DiskIds"`
-	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
-}
-
-// CheckDiskEnableAutoSnapshotValidationResponse is the response struct for api CheckDiskEnableAutoSnapshotValidation
-type CheckDiskEnableAutoSnapshotValidationResponse struct {
-	*responses.BaseResponse
-	RequestId              string `json:"RequestId" xml:"RequestId"`
-	IsPermitted            string `json:"IsPermitted" xml:"IsPermitted"`
-	AutoSnapshotOccupation int    `json:"AutoSnapshotOccupation" xml:"AutoSnapshotOccupation"`
-}
-
-// CreateCheckDiskEnableAutoSnapshotValidationRequest creates a request to invoke CheckDiskEnableAutoSnapshotValidation API
-func CreateCheckDiskEnableAutoSnapshotValidationRequest() (request *CheckDiskEnableAutoSnapshotValidationRequest) {
-	request = &CheckDiskEnableAutoSnapshotValidationRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("Ecs", "2014-05-26", "CheckDiskEnableAutoSnapshotValidation", "ecs", "openAPI")
-	return
-}
-
-// CreateCheckDiskEnableAutoSnapshotValidationResponse creates a response to parse from CheckDiskEnableAutoSnapshotValidation response
-func CreateCheckDiskEnableAutoSnapshotValidationResponse() (response *CheckDiskEnableAutoSnapshotValidationResponse) {
-	response = &CheckDiskEnableAutoSnapshotValidationResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 11 - 11
services/ecs/create_deployment_set.go

@@ -76,17 +76,17 @@ func (client *Client) CreateDeploymentSetWithCallback(request *CreateDeploymentS
 // CreateDeploymentSetRequest is the request struct for api CreateDeploymentSet
 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"`
-	DeploymentSetName    string           `position:"Query" name:"DeploymentSetName"`
-	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
-	Granularity          string           `position:"Query" name:"Granularity"`
-	Domain               string           `position:"Query" name:"Domain"`
-	ZoneId               string           `position:"Query" name:"ZoneId"`
-	Strategy             string           `position:"Query" name:"Strategy"`
+	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"`
+	DeploymentSetName                string           `position:"Query" name:"DeploymentSetName"`
+	OwnerId                          requests.Integer `position:"Query" name:"OwnerId"`
+	OnUnableToRedeployFailedInstance string           `position:"Query" name:"OnUnableToRedeployFailedInstance"`
+	Granularity                      string           `position:"Query" name:"Granularity"`
+	Domain                           string           `position:"Query" name:"Domain"`
+	Strategy                         string           `position:"Query" name:"Strategy"`
 }
 
 // CreateDeploymentSetResponse is the response struct for api CreateDeploymentSet

+ 0 - 109
services/ecs/describe_auto_snapshot_policy.go

@@ -1,109 +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"
-)
-
-// DescribeAutoSnapshotPolicy invokes the ecs.DescribeAutoSnapshotPolicy API synchronously
-// api document: https://help.aliyun.com/api/ecs/describeautosnapshotpolicy.html
-func (client *Client) DescribeAutoSnapshotPolicy(request *DescribeAutoSnapshotPolicyRequest) (response *DescribeAutoSnapshotPolicyResponse, err error) {
-	response = CreateDescribeAutoSnapshotPolicyResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// DescribeAutoSnapshotPolicyWithChan invokes the ecs.DescribeAutoSnapshotPolicy API asynchronously
-// api document: https://help.aliyun.com/api/ecs/describeautosnapshotpolicy.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeAutoSnapshotPolicyWithChan(request *DescribeAutoSnapshotPolicyRequest) (<-chan *DescribeAutoSnapshotPolicyResponse, <-chan error) {
-	responseChan := make(chan *DescribeAutoSnapshotPolicyResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.DescribeAutoSnapshotPolicy(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// DescribeAutoSnapshotPolicyWithCallback invokes the ecs.DescribeAutoSnapshotPolicy API asynchronously
-// api document: https://help.aliyun.com/api/ecs/describeautosnapshotpolicy.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeAutoSnapshotPolicyWithCallback(request *DescribeAutoSnapshotPolicyRequest, callback func(response *DescribeAutoSnapshotPolicyResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *DescribeAutoSnapshotPolicyResponse
-		var err error
-		defer close(result)
-		response, err = client.DescribeAutoSnapshotPolicy(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// DescribeAutoSnapshotPolicyRequest is the request struct for api DescribeAutoSnapshotPolicy
-type DescribeAutoSnapshotPolicyRequest 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"`
-}
-
-// DescribeAutoSnapshotPolicyResponse is the response struct for api DescribeAutoSnapshotPolicy
-type DescribeAutoSnapshotPolicyResponse struct {
-	*responses.BaseResponse
-	RequestId                  string                     `json:"RequestId" xml:"RequestId"`
-	AutoSnapshotOccupation     int                        `json:"AutoSnapshotOccupation" xml:"AutoSnapshotOccupation"`
-	AutoSnapshotPolicy         AutoSnapshotPolicy         `json:"AutoSnapshotPolicy" xml:"AutoSnapshotPolicy"`
-	AutoSnapshotExcutionStatus AutoSnapshotExcutionStatus `json:"AutoSnapshotExcutionStatus" xml:"AutoSnapshotExcutionStatus"`
-}
-
-// CreateDescribeAutoSnapshotPolicyRequest creates a request to invoke DescribeAutoSnapshotPolicy API
-func CreateDescribeAutoSnapshotPolicyRequest() (request *DescribeAutoSnapshotPolicyRequest) {
-	request = &DescribeAutoSnapshotPolicyRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeAutoSnapshotPolicy", "ecs", "openAPI")
-	return
-}
-
-// CreateDescribeAutoSnapshotPolicyResponse creates a response to parse from DescribeAutoSnapshotPolicy response
-func CreateDescribeAutoSnapshotPolicyResponse() (response *DescribeAutoSnapshotPolicyResponse) {
-	response = &DescribeAutoSnapshotPolicyResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 119
services/ecs/describe_event_detail.go

@@ -1,119 +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"
-)
-
-// DescribeEventDetail invokes the ecs.DescribeEventDetail API synchronously
-// api document: https://help.aliyun.com/api/ecs/describeeventdetail.html
-func (client *Client) DescribeEventDetail(request *DescribeEventDetailRequest) (response *DescribeEventDetailResponse, err error) {
-	response = CreateDescribeEventDetailResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// DescribeEventDetailWithChan invokes the ecs.DescribeEventDetail API asynchronously
-// api document: https://help.aliyun.com/api/ecs/describeeventdetail.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeEventDetailWithChan(request *DescribeEventDetailRequest) (<-chan *DescribeEventDetailResponse, <-chan error) {
-	responseChan := make(chan *DescribeEventDetailResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.DescribeEventDetail(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// DescribeEventDetailWithCallback invokes the ecs.DescribeEventDetail API asynchronously
-// api document: https://help.aliyun.com/api/ecs/describeeventdetail.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeEventDetailWithCallback(request *DescribeEventDetailRequest, callback func(response *DescribeEventDetailResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *DescribeEventDetailResponse
-		var err error
-		defer close(result)
-		response, err = client.DescribeEventDetail(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// DescribeEventDetailRequest is the request struct for api DescribeEventDetail
-type DescribeEventDetailRequest struct {
-	*requests.RpcRequest
-	EventId              string           `position:"Query" name:"EventId"`
-	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
-	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
-	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
-}
-
-// DescribeEventDetailResponse is the response struct for api DescribeEventDetail
-type DescribeEventDetailResponse struct {
-	*responses.BaseResponse
-	RequestId     string `json:"RequestId" xml:"RequestId"`
-	ResourceId    string `json:"ResourceId" xml:"ResourceId"`
-	EventType     string `json:"EventType" xml:"EventType"`
-	EventCategory string `json:"EventCategory" xml:"EventCategory"`
-	Status        string `json:"Status" xml:"Status"`
-	SupportModify string `json:"SupportModify" xml:"SupportModify"`
-	PlanTime      string `json:"PlanTime" xml:"PlanTime"`
-	ExpireTime    string `json:"ExpireTime" xml:"ExpireTime"`
-	EventId       string `json:"EventId" xml:"EventId"`
-	StartTime     string `json:"StartTime" xml:"StartTime"`
-	EndTime       string `json:"EndTime" xml:"EndTime"`
-	EffectTime    string `json:"EffectTime" xml:"EffectTime"`
-	LimitTime     string `json:"LimitTime" xml:"LimitTime"`
-	Mark          string `json:"Mark" xml:"Mark"`
-}
-
-// CreateDescribeEventDetailRequest creates a request to invoke DescribeEventDetail API
-func CreateDescribeEventDetailRequest() (request *DescribeEventDetailRequest) {
-	request = &DescribeEventDetailRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeEventDetail", "ecs", "openAPI")
-	return
-}
-
-// CreateDescribeEventDetailResponse creates a response to parse from DescribeEventDetail response
-func CreateDescribeEventDetailResponse() (response *DescribeEventDetailResponse) {
-	response = &DescribeEventDetailResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 107 - 0
services/ecs/describe_instance_topology.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"
+)
+
+// 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)
+	return
+}
+
+// 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)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeInstanceTopology(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// 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() {
+		var response *DescribeInstanceTopologyResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeInstanceTopology(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeInstanceTopologyRequest is the request struct for api DescribeInstanceTopology
+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"`
+}
+
+// DescribeInstanceTopologyResponse is the response struct for api DescribeInstanceTopology
+type DescribeInstanceTopologyResponse struct {
+	*responses.BaseResponse
+	RequestId string    `json:"RequestId" xml:"RequestId"`
+	Topologys Topologys `json:"Topologys" xml:"Topologys"`
+}
+
+// CreateDescribeInstanceTopologyRequest creates a request to invoke DescribeInstanceTopology API
+func CreateDescribeInstanceTopologyRequest() (request *DescribeInstanceTopologyRequest) {
+	request = &DescribeInstanceTopologyRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeInstanceTopology", "ecs", "openAPI")
+	return
+}
+
+// CreateDescribeInstanceTopologyResponse creates a response to parse from DescribeInstanceTopology response
+func CreateDescribeInstanceTopologyResponse() (response *DescribeInstanceTopologyResponse) {
+	response = &DescribeInstanceTopologyResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 1 - 0
services/ecs/describe_instances.go

@@ -104,6 +104,7 @@ type DescribeInstancesRequest struct {
 	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"`

+ 0 - 112
services/ecs/describe_intranet_attribute_kb.go

@@ -1,112 +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"
-)
-
-// DescribeIntranetAttributeKb invokes the ecs.DescribeIntranetAttributeKb API synchronously
-// api document: https://help.aliyun.com/api/ecs/describeintranetattributekb.html
-func (client *Client) DescribeIntranetAttributeKb(request *DescribeIntranetAttributeKbRequest) (response *DescribeIntranetAttributeKbResponse, err error) {
-	response = CreateDescribeIntranetAttributeKbResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// DescribeIntranetAttributeKbWithChan invokes the ecs.DescribeIntranetAttributeKb API asynchronously
-// api document: https://help.aliyun.com/api/ecs/describeintranetattributekb.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeIntranetAttributeKbWithChan(request *DescribeIntranetAttributeKbRequest) (<-chan *DescribeIntranetAttributeKbResponse, <-chan error) {
-	responseChan := make(chan *DescribeIntranetAttributeKbResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.DescribeIntranetAttributeKb(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// DescribeIntranetAttributeKbWithCallback invokes the ecs.DescribeIntranetAttributeKb API asynchronously
-// api document: https://help.aliyun.com/api/ecs/describeintranetattributekb.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeIntranetAttributeKbWithCallback(request *DescribeIntranetAttributeKbRequest, callback func(response *DescribeIntranetAttributeKbResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *DescribeIntranetAttributeKbResponse
-		var err error
-		defer close(result)
-		response, err = client.DescribeIntranetAttributeKb(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// DescribeIntranetAttributeKbRequest is the request struct for api DescribeIntranetAttributeKb
-type DescribeIntranetAttributeKbRequest 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"`
-}
-
-// DescribeIntranetAttributeKbResponse is the response struct for api DescribeIntranetAttributeKb
-type DescribeIntranetAttributeKbResponse struct {
-	*responses.BaseResponse
-	RequestId               string `json:"RequestId" xml:"RequestId"`
-	InstanceId              string `json:"InstanceId" xml:"InstanceId"`
-	VlanId                  string `json:"VlanId" xml:"VlanId"`
-	IntranetIpAddress       string `json:"IntranetIpAddress" xml:"IntranetIpAddress"`
-	IntranetMaxBandwidthIn  int    `json:"IntranetMaxBandwidthIn" xml:"IntranetMaxBandwidthIn"`
-	IntranetMaxBandwidthOut int    `json:"IntranetMaxBandwidthOut" xml:"IntranetMaxBandwidthOut"`
-}
-
-// CreateDescribeIntranetAttributeKbRequest creates a request to invoke DescribeIntranetAttributeKb API
-func CreateDescribeIntranetAttributeKbRequest() (request *DescribeIntranetAttributeKbRequest) {
-	request = &DescribeIntranetAttributeKbRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeIntranetAttributeKb", "ecs", "openAPI")
-	return
-}
-
-// CreateDescribeIntranetAttributeKbResponse creates a response to parse from DescribeIntranetAttributeKb response
-func CreateDescribeIntranetAttributeKbResponse() (response *DescribeIntranetAttributeKbResponse) {
-	response = &DescribeIntranetAttributeKbResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 116
services/ecs/describe_ip_ranges.go

@@ -1,116 +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"
-)
-
-// DescribeIpRanges invokes the ecs.DescribeIpRanges API synchronously
-// api document: https://help.aliyun.com/api/ecs/describeipranges.html
-func (client *Client) DescribeIpRanges(request *DescribeIpRangesRequest) (response *DescribeIpRangesResponse, err error) {
-	response = CreateDescribeIpRangesResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// DescribeIpRangesWithChan invokes the ecs.DescribeIpRanges API asynchronously
-// api document: https://help.aliyun.com/api/ecs/describeipranges.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeIpRangesWithChan(request *DescribeIpRangesRequest) (<-chan *DescribeIpRangesResponse, <-chan error) {
-	responseChan := make(chan *DescribeIpRangesResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.DescribeIpRanges(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// DescribeIpRangesWithCallback invokes the ecs.DescribeIpRanges API asynchronously
-// api document: https://help.aliyun.com/api/ecs/describeipranges.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeIpRangesWithCallback(request *DescribeIpRangesRequest, callback func(response *DescribeIpRangesResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *DescribeIpRangesResponse
-		var err error
-		defer close(result)
-		response, err = client.DescribeIpRanges(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// DescribeIpRangesRequest is the request struct for api DescribeIpRanges
-type DescribeIpRangesRequest struct {
-	*requests.RpcRequest
-	NicType              string           `position:"Query" name:"NicType"`
-	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
-	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
-	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
-	PageSize             requests.Integer `position:"Query" name:"PageSize"`
-	ClusterId            string           `position:"Query" name:"ClusterId"`
-	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
-	PageNumber           requests.Integer `position:"Query" name:"PageNumber"`
-}
-
-// DescribeIpRangesResponse is the response struct for api DescribeIpRanges
-type DescribeIpRangesResponse struct {
-	*responses.BaseResponse
-	RequestId  string   `json:"RequestId" xml:"RequestId"`
-	RegionId   string   `json:"RegionId" xml:"RegionId"`
-	ClusterId  string   `json:"ClusterId" xml:"ClusterId"`
-	TotalCount int      `json:"TotalCount" xml:"TotalCount"`
-	PageNumber int      `json:"PageNumber" xml:"PageNumber"`
-	PageSize   int      `json:"PageSize" xml:"PageSize"`
-	IpRanges   IpRanges `json:"IpRanges" xml:"IpRanges"`
-}
-
-// CreateDescribeIpRangesRequest creates a request to invoke DescribeIpRanges API
-func CreateDescribeIpRangesRequest() (request *DescribeIpRangesRequest) {
-	request = &DescribeIpRangesRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeIpRanges", "ecs", "openAPI")
-	return
-}
-
-// CreateDescribeIpRangesResponse creates a response to parse from DescribeIpRanges response
-func CreateDescribeIpRangesResponse() (response *DescribeIpRangesResponse) {
-	response = &DescribeIpRangesResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 2 - 20
services/ecs/modify_image_share_permission.go

@@ -76,31 +76,13 @@ func (client *Client) ModifyImageSharePermissionWithCallback(request *ModifyImag
 // ModifyImageSharePermissionRequest is the request struct for api ModifyImageSharePermission
 type ModifyImageSharePermissionRequest struct {
 	*requests.RpcRequest
-	AddAccount1          string           `position:"Query" name:"AddAccount.1"`
 	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
 	ImageId              string           `position:"Query" name:"ImageId"`
-	AddAccount9          string           `position:"Query" name:"AddAccount.9"`
-	AddAccount8          string           `position:"Query" name:"AddAccount.8"`
-	AddAccount7          string           `position:"Query" name:"AddAccount.7"`
-	AddAccount6          string           `position:"Query" name:"AddAccount.6"`
-	AddAccount5          string           `position:"Query" name:"AddAccount.5"`
-	AddAccount10         string           `position:"Query" name:"AddAccount.10"`
-	AddAccount4          string           `position:"Query" name:"AddAccount.4"`
-	AddAccount3          string           `position:"Query" name:"AddAccount.3"`
-	AddAccount2          string           `position:"Query" name:"AddAccount.2"`
+	AddAccount           *[]string        `position:"Query" name:"AddAccount"  type:"Repeated"`
 	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	RemoveAccount        *[]string        `position:"Query" name:"RemoveAccount"  type:"Repeated"`
 	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
-	RemoveAccount1       string           `position:"Query" name:"RemoveAccount.1"`
-	RemoveAccount2       string           `position:"Query" name:"RemoveAccount.2"`
-	RemoveAccount3       string           `position:"Query" name:"RemoveAccount.3"`
-	RemoveAccount4       string           `position:"Query" name:"RemoveAccount.4"`
 	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
-	RemoveAccount9       string           `position:"Query" name:"RemoveAccount.9"`
-	RemoveAccount5       string           `position:"Query" name:"RemoveAccount.5"`
-	RemoveAccount6       string           `position:"Query" name:"RemoveAccount.6"`
-	RemoveAccount7       string           `position:"Query" name:"RemoveAccount.7"`
-	RemoveAccount8       string           `position:"Query" name:"RemoveAccount.8"`
-	RemoveAccount10      string           `position:"Query" name:"RemoveAccount.10"`
 }
 
 // ModifyImageSharePermissionResponse is the response struct for api ModifyImageSharePermission

+ 2 - 0
services/ecs/modify_instance_deployment.go

@@ -77,11 +77,13 @@ func (client *Client) ModifyInstanceDeploymentWithCallback(request *ModifyInstan
 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"`
 	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"`
 }
 
 // ModifyInstanceDeploymentResponse is the response struct for api ModifyInstanceDeployment

+ 0 - 109
services/ecs/modify_intranet_bandwidth_kb.go

@@ -1,109 +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"
-)
-
-// ModifyIntranetBandwidthKb invokes the ecs.ModifyIntranetBandwidthKb API synchronously
-// api document: https://help.aliyun.com/api/ecs/modifyintranetbandwidthkb.html
-func (client *Client) ModifyIntranetBandwidthKb(request *ModifyIntranetBandwidthKbRequest) (response *ModifyIntranetBandwidthKbResponse, err error) {
-	response = CreateModifyIntranetBandwidthKbResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// ModifyIntranetBandwidthKbWithChan invokes the ecs.ModifyIntranetBandwidthKb API asynchronously
-// api document: https://help.aliyun.com/api/ecs/modifyintranetbandwidthkb.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) ModifyIntranetBandwidthKbWithChan(request *ModifyIntranetBandwidthKbRequest) (<-chan *ModifyIntranetBandwidthKbResponse, <-chan error) {
-	responseChan := make(chan *ModifyIntranetBandwidthKbResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.ModifyIntranetBandwidthKb(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// ModifyIntranetBandwidthKbWithCallback invokes the ecs.ModifyIntranetBandwidthKb API asynchronously
-// api document: https://help.aliyun.com/api/ecs/modifyintranetbandwidthkb.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) ModifyIntranetBandwidthKbWithCallback(request *ModifyIntranetBandwidthKbRequest, callback func(response *ModifyIntranetBandwidthKbResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *ModifyIntranetBandwidthKbResponse
-		var err error
-		defer close(result)
-		response, err = client.ModifyIntranetBandwidthKb(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// ModifyIntranetBandwidthKbRequest is the request struct for api ModifyIntranetBandwidthKb
-type ModifyIntranetBandwidthKbRequest struct {
-	*requests.RpcRequest
-	ResourceOwnerId         requests.Integer `position:"Query" name:"ResourceOwnerId"`
-	IntranetMaxBandwidthOut requests.Integer `position:"Query" name:"IntranetMaxBandwidthOut"`
-	InstanceId              string           `position:"Query" name:"InstanceId"`
-	IntranetMaxBandwidthIn  requests.Integer `position:"Query" name:"IntranetMaxBandwidthIn"`
-	ResourceOwnerAccount    string           `position:"Query" name:"ResourceOwnerAccount"`
-	OwnerAccount            string           `position:"Query" name:"OwnerAccount"`
-	OwnerId                 requests.Integer `position:"Query" name:"OwnerId"`
-}
-
-// ModifyIntranetBandwidthKbResponse is the response struct for api ModifyIntranetBandwidthKb
-type ModifyIntranetBandwidthKbResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-}
-
-// CreateModifyIntranetBandwidthKbRequest creates a request to invoke ModifyIntranetBandwidthKb API
-func CreateModifyIntranetBandwidthKbRequest() (request *ModifyIntranetBandwidthKbRequest) {
-	request = &ModifyIntranetBandwidthKbRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyIntranetBandwidthKb", "ecs", "openAPI")
-	return
-}
-
-// CreateModifyIntranetBandwidthKbResponse creates a response to parse from ModifyIntranetBandwidthKb response
-func CreateModifyIntranetBandwidthKbResponse() (response *ModifyIntranetBandwidthKbResponse) {
-	response = &ModifyIntranetBandwidthKbResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 1 - 0
services/ecs/resize_disk.go

@@ -83,6 +83,7 @@ type ResizeDiskRequest struct {
 	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

+ 1 - 0
services/ecs/run_instances.go

@@ -114,6 +114,7 @@ type RunInstancesRequest struct {
 	InstanceType                string                          `position:"Query" name:"InstanceType"`
 	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"`

+ 10 - 18
services/ecs/struct_auto_snapshot_policy.go

@@ -17,22 +17,14 @@ package ecs
 
 // AutoSnapshotPolicy is a nested struct in ecs response
 type AutoSnapshotPolicy struct {
-	DataDiskPolicyEnabled             string `json:"DataDiskPolicyEnabled" xml:"DataDiskPolicyEnabled"`
-	RepeatWeekdays                    string `json:"RepeatWeekdays" xml:"RepeatWeekdays"`
-	SystemDiskPolicyRetentionLastWeek string `json:"SystemDiskPolicyRetentionLastWeek" xml:"SystemDiskPolicyRetentionLastWeek"`
-	AutoSnapshotPolicyId              string `json:"AutoSnapshotPolicyId" xml:"AutoSnapshotPolicyId"`
-	VolumeNums                        int    `json:"VolumeNums" xml:"VolumeNums"`
-	DataDiskPolicyRetentionDays       string `json:"DataDiskPolicyRetentionDays" xml:"DataDiskPolicyRetentionDays"`
-	CreationTime                      string `json:"CreationTime" xml:"CreationTime"`
-	DataDiskPolicyTimePeriod          string `json:"DataDiskPolicyTimePeriod" xml:"DataDiskPolicyTimePeriod"`
-	SystemDiskPolicyTimePeriod        string `json:"SystemDiskPolicyTimePeriod" xml:"SystemDiskPolicyTimePeriod"`
-	DiskNums                          int    `json:"DiskNums" xml:"DiskNums"`
-	SystemDiskPolicyEnabled           string `json:"SystemDiskPolicyEnabled" xml:"SystemDiskPolicyEnabled"`
-	RegionId                          string `json:"RegionId" xml:"RegionId"`
-	AutoSnapshotPolicyName            string `json:"AutoSnapshotPolicyName" xml:"AutoSnapshotPolicyName"`
-	RetentionDays                     int    `json:"RetentionDays" xml:"RetentionDays"`
-	TimePoints                        string `json:"TimePoints" xml:"TimePoints"`
-	SystemDiskPolicyRetentionDays     string `json:"SystemDiskPolicyRetentionDays" xml:"SystemDiskPolicyRetentionDays"`
-	Status                            string `json:"Status" xml:"Status"`
-	DataDiskPolicyRetentionLastWeek   string `json:"DataDiskPolicyRetentionLastWeek" xml:"DataDiskPolicyRetentionLastWeek"`
+	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"`
 }

+ 10 - 8
services/ecs/struct_deployment_set.go

@@ -17,12 +17,14 @@ 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"`
-	Domain                   string `json:"Domain" xml:"Domain"`
-	Granularity              string `json:"Granularity" xml:"Granularity"`
-	InstanceAmount           int    `json:"InstanceAmount" xml:"InstanceAmount"`
-	CreationTime             string `json:"CreationTime" xml:"CreationTime"`
+	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              InstanceIdsInDescribeDeploymentSets `json:"InstanceIds" xml:"InstanceIds"`
 }

+ 2 - 0
services/ecs/struct_disk_full_status_type.go

@@ -18,6 +18,8 @@ package ecs
 // DiskFullStatusType is a nested struct in ecs response
 type DiskFullStatusType struct {
 	DiskId       string       `json:"DiskId" xml:"DiskId"`
+	InstanceId   string       `json:"InstanceId" xml:"InstanceId"`
+	Device       string       `json:"Device" xml:"Device"`
 	Status       Status       `json:"Status" xml:"Status"`
 	HealthStatus HealthStatus `json:"HealthStatus" xml:"HealthStatus"`
 	DiskEventSet DiskEventSet `json:"DiskEventSet" xml:"DiskEventSet"`

+ 1 - 0
services/ecs/struct_instance.go

@@ -44,6 +44,7 @@ type Instance struct {
 	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"`

+ 3 - 4
services/ecs/struct_auto_snapshot_excution_status.go → services/ecs/struct_instance_ids_in_describe_deployment_sets.go

@@ -15,8 +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.
 
-// AutoSnapshotExcutionStatus is a nested struct in ecs response
-type AutoSnapshotExcutionStatus struct {
-	SystemDiskExcutionStatus string `json:"SystemDiskExcutionStatus" xml:"SystemDiskExcutionStatus"`
-	DataDiskExcutionStatus   string `json:"DataDiskExcutionStatus" xml:"DataDiskExcutionStatus"`
+// InstanceIdsInDescribeDeploymentSets is a nested struct in ecs response
+type InstanceIdsInDescribeDeploymentSets struct {
+	InstanceId []string `json:"InstanceId" xml:"InstanceId"`
 }

+ 4 - 4
services/ecs/struct_ip_range.go → services/ecs/struct_topology.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.
 
-// IpRange is a nested struct in ecs response
-type IpRange struct {
-	IpAddress string `json:"IpAddress" xml:"IpAddress"`
-	NicType   string `json:"NicType" xml:"NicType"`
+// Topology is a nested struct in ecs response
+type Topology struct {
+	InstanceId string `json:"InstanceId" xml:"InstanceId"`
+	HostId     string `json:"HostId" xml:"HostId"`
 }

+ 3 - 3
services/ecs/struct_ip_ranges.go → services/ecs/struct_topologys.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.
 
-// IpRanges is a nested struct in ecs response
-type IpRanges struct {
-	IpRange []IpRange `json:"IpRange" xml:"IpRange"`
+// Topologys is a nested struct in ecs response
+type Topologys struct {
+	Topology []Topology `json:"Topology" xml:"Topology"`
 }

+ 0 - 36
services/ecs/struct_triggered_group_rule.go

@@ -1,36 +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.
-
-// TriggeredGroupRule is a nested struct in ecs response
-type TriggeredGroupRule struct {
-	IpProtocol              string `json:"IpProtocol" xml:"IpProtocol"`
-	PortRange               string `json:"PortRange" xml:"PortRange"`
-	SourceGroupId           string `json:"SourceGroupId" xml:"SourceGroupId"`
-	SourceGroupName         string `json:"SourceGroupName" xml:"SourceGroupName"`
-	SourceCidrIp            string `json:"SourceCidrIp" xml:"SourceCidrIp"`
-	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"`
-	DestGroupOwnerAccount   string `json:"DestGroupOwnerAccount" xml:"DestGroupOwnerAccount"`
-	Priority                string `json:"Priority" xml:"Priority"`
-	Direction               string `json:"Direction" xml:"Direction"`
-	Description             string `json:"Description" xml:"Description"`
-	CreateTime              string `json:"CreateTime" xml:"CreateTime"`
-}

+ 0 - 108
services/ecs/unbind_ip_range.go

@@ -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"
-)
-
-// UnbindIpRange invokes the ecs.UnbindIpRange API synchronously
-// api document: https://help.aliyun.com/api/ecs/unbindiprange.html
-func (client *Client) UnbindIpRange(request *UnbindIpRangeRequest) (response *UnbindIpRangeResponse, err error) {
-	response = CreateUnbindIpRangeResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// UnbindIpRangeWithChan invokes the ecs.UnbindIpRange API asynchronously
-// api document: https://help.aliyun.com/api/ecs/unbindiprange.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) UnbindIpRangeWithChan(request *UnbindIpRangeRequest) (<-chan *UnbindIpRangeResponse, <-chan error) {
-	responseChan := make(chan *UnbindIpRangeResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.UnbindIpRange(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// UnbindIpRangeWithCallback invokes the ecs.UnbindIpRange API asynchronously
-// api document: https://help.aliyun.com/api/ecs/unbindiprange.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) UnbindIpRangeWithCallback(request *UnbindIpRangeRequest, callback func(response *UnbindIpRangeResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *UnbindIpRangeResponse
-		var err error
-		defer close(result)
-		response, err = client.UnbindIpRange(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// UnbindIpRangeRequest is the request struct for api UnbindIpRange
-type UnbindIpRangeRequest 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"`
-	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
-	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
-}
-
-// UnbindIpRangeResponse is the response struct for api UnbindIpRange
-type UnbindIpRangeResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-}
-
-// CreateUnbindIpRangeRequest creates a request to invoke UnbindIpRange API
-func CreateUnbindIpRangeRequest() (request *UnbindIpRangeRequest) {
-	request = &UnbindIpRangeRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("Ecs", "2014-05-26", "UnbindIpRange", "ecs", "openAPI")
-	return
-}
-
-// CreateUnbindIpRangeResponse creates a response to parse from UnbindIpRange response
-func CreateUnbindIpRangeResponse() (response *UnbindIpRangeResponse) {
-	response = &UnbindIpRangeResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 116
services/ecs/validate_security_group.go

@@ -1,116 +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"
-)
-
-// ValidateSecurityGroup invokes the ecs.ValidateSecurityGroup API synchronously
-// api document: https://help.aliyun.com/api/ecs/validatesecuritygroup.html
-func (client *Client) ValidateSecurityGroup(request *ValidateSecurityGroupRequest) (response *ValidateSecurityGroupResponse, err error) {
-	response = CreateValidateSecurityGroupResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// ValidateSecurityGroupWithChan invokes the ecs.ValidateSecurityGroup API asynchronously
-// api document: https://help.aliyun.com/api/ecs/validatesecuritygroup.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) ValidateSecurityGroupWithChan(request *ValidateSecurityGroupRequest) (<-chan *ValidateSecurityGroupResponse, <-chan error) {
-	responseChan := make(chan *ValidateSecurityGroupResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.ValidateSecurityGroup(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// ValidateSecurityGroupWithCallback invokes the ecs.ValidateSecurityGroup API asynchronously
-// api document: https://help.aliyun.com/api/ecs/validatesecuritygroup.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) ValidateSecurityGroupWithCallback(request *ValidateSecurityGroupRequest, callback func(response *ValidateSecurityGroupResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *ValidateSecurityGroupResponse
-		var err error
-		defer close(result)
-		response, err = client.ValidateSecurityGroup(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// ValidateSecurityGroupRequest is the request struct for api ValidateSecurityGroup
-type ValidateSecurityGroupRequest struct {
-	*requests.RpcRequest
-	NicType              string           `position:"Query" name:"NicType"`
-	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
-	SourcePort           requests.Integer `position:"Query" name:"SourcePort"`
-	SourceIp             string           `position:"Query" name:"SourceIp"`
-	Direction            string           `position:"Query" name:"Direction"`
-	DestIp               string           `position:"Query" name:"DestIp"`
-	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
-	IpProtocol           string           `position:"Query" name:"IpProtocol"`
-	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
-	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
-	InstanceId           string           `position:"Query" name:"InstanceId"`
-	DestPort             requests.Integer `position:"Query" name:"DestPort"`
-}
-
-// ValidateSecurityGroupResponse is the response struct for api ValidateSecurityGroup
-type ValidateSecurityGroupResponse struct {
-	*responses.BaseResponse
-	RequestId          string             `json:"RequestId" xml:"RequestId"`
-	Policy             string             `json:"Policy" xml:"Policy"`
-	TriggeredGroupRule TriggeredGroupRule `json:"TriggeredGroupRule" xml:"TriggeredGroupRule"`
-}
-
-// CreateValidateSecurityGroupRequest creates a request to invoke ValidateSecurityGroup API
-func CreateValidateSecurityGroupRequest() (request *ValidateSecurityGroupRequest) {
-	request = &ValidateSecurityGroupRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("Ecs", "2014-05-26", "ValidateSecurityGroup", "ecs", "openAPI")
-	return
-}
-
-// CreateValidateSecurityGroupResponse creates a response to parse from ValidateSecurityGroup response
-func CreateValidateSecurityGroupResponse() (response *ValidateSecurityGroupResponse) {
-	response = &ValidateSecurityGroupResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}