浏览代码

ECS SDK Auto Released By zhengguang.yzg,Version:1.40.4

Signed-off-by: yixiong.jxy <yixiong.jxy@alibaba-inc.com>
yixiong.jxy 7 年之前
父节点
当前提交
9165f3cf7d
共有 67 个文件被更改,包括 34 次插入4059 次删除
  1. 4 0
      ChangeLog.txt
  2. 0 108
      services/ecs/add_ip_range.go
  3. 0 108
      services/ecs/attach_volume.go
  4. 0 108
      services/ecs/bind_ip_range.go
  5. 0 107
      services/ecs/cancel_agreement.go
  6. 0 108
      services/ecs/cancel_user_event.go
  7. 0 116
      services/ecs/check_auto_snapshot_policy.go
  8. 0 109
      services/ecs/check_disk_enable_auto_snapshot_validation.go
  9. 1 0
      services/ecs/create_instance.go
  10. 0 110
      services/ecs/create_user_event.go
  11. 0 122
      services/ecs/create_volume.go
  12. 0 107
      services/ecs/delete_recycle_bin.go
  13. 0 107
      services/ecs/delete_volume.go
  14. 0 109
      services/ecs/describe_auto_snapshot_policy.go
  15. 0 113
      services/ecs/describe_deployment_set_topology.go
  16. 0 119
      services/ecs/describe_event_detail.go
  17. 0 117
      services/ecs/describe_events.go
  18. 0 107
      services/ecs/describe_instance_topology.go
  19. 0 112
      services/ecs/describe_intranet_attribute_kb.go
  20. 0 116
      services/ecs/describe_ip_ranges.go
  21. 0 112
      services/ecs/describe_recycle_bin.go
  22. 0 113
      services/ecs/describe_tag_keys.go
  23. 0 128
      services/ecs/describe_volumes.go
  24. 0 108
      services/ecs/detach_volume.go
  25. 1 0
      services/ecs/modify_instance_attribute.go
  26. 0 109
      services/ecs/modify_intranet_bandwidth_kb.go
  27. 0 110
      services/ecs/modify_user_event_attribute.go
  28. 0 109
      services/ecs/modify_volume_attribute.go
  29. 0 108
      services/ecs/re_init_volume.go
  30. 0 109
      services/ecs/resize_volume.go
  31. 0 108
      services/ecs/rollback_volume.go
  32. 1 0
      services/ecs/run_instances.go
  33. 0 107
      services/ecs/sign_agreement.go
  34. 0 22
      services/ecs/struct_auto_snapshot_excution_status.go
  35. 10 18
      services/ecs/struct_auto_snapshot_policy.go
  36. 10 10
      services/ecs/struct_deployment_set.go
  37. 1 1
      services/ecs/struct_disk.go
  38. 0 28
      services/ecs/struct_event.go
  39. 0 21
      services/ecs/struct_events.go
  40. 0 22
      services/ecs/struct_host.go
  41. 0 21
      services/ecs/struct_hosts_in_describe_deployment_set_topology.go
  42. 1 0
      services/ecs/struct_instance.go
  43. 2 2
      services/ecs/struct_instance_ids.go
  44. 0 21
      services/ecs/struct_instance_ids_in_describe_deployment_set_topology.go
  45. 0 22
      services/ecs/struct_ip_range.go
  46. 0 21
      services/ecs/struct_ip_ranges.go
  47. 1 1
      services/ecs/struct_mount_instance.go
  48. 2 2
      services/ecs/struct_mount_instances.go
  49. 0 21
      services/ecs/struct_mount_instances_in_describe_volumes.go
  50. 0 21
      services/ecs/struct_operation_locks_in_describe_volumes.go
  51. 0 22
      services/ecs/struct_rack.go
  52. 0 21
      services/ecs/struct_racks.go
  53. 0 26
      services/ecs/struct_recycle_bin_model.go
  54. 0 21
      services/ecs/struct_recycle_bin_models.go
  55. 0 22
      services/ecs/struct_relation_resource.go
  56. 0 21
      services/ecs/struct_relation_resources.go
  57. 0 22
      services/ecs/struct_switch.go
  58. 0 21
      services/ecs/struct_switchs.go
  59. 0 21
      services/ecs/struct_tag_keys.go
  60. 0 21
      services/ecs/struct_tags_in_describe_volumes.go
  61. 0 22
      services/ecs/struct_topology.go
  62. 0 21
      services/ecs/struct_topologys.go
  63. 0 36
      services/ecs/struct_triggered_group_rule.go
  64. 0 39
      services/ecs/struct_volume.go
  65. 0 21
      services/ecs/struct_volumes.go
  66. 0 108
      services/ecs/unbind_ip_range.go
  67. 0 116
      services/ecs/validate_security_group.go

+ 4 - 0
ChangeLog.txt

@@ -1,3 +1,7 @@
+2018-11-22 Version: 1.40.4
+1, Add parameter DeletionProtection when creating instance and modifying instance attribute
+
+
 2018-11-21 Version: 1.40.3
 2018-11-21 Version: 1.40.3
 1, Add new apis called AddWatermark, UpdateWatermark, DeleteWatermark, ListWatermarks, GetWatermark and SetDefaultWatermark which support watermark feature.
 1, Add new apis called AddWatermark, UpdateWatermark, DeleteWatermark, ListWatermarks, GetWatermark and SetDefaultWatermark which support watermark feature.
 2, Add a new api called RegisterMedia which supports registration of audio and video media files that already exist in the OSS bucket.
 2, Add a new api called RegisterMedia which supports registration of audio and video media files that already exist in the OSS bucket.

+ 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/attach_volume.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"
-)
-
-// AttachVolume invokes the ecs.AttachVolume API synchronously
-// api document: https://help.aliyun.com/api/ecs/attachvolume.html
-func (client *Client) AttachVolume(request *AttachVolumeRequest) (response *AttachVolumeResponse, err error) {
-	response = CreateAttachVolumeResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// AttachVolumeWithChan invokes the ecs.AttachVolume API asynchronously
-// api document: https://help.aliyun.com/api/ecs/attachvolume.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) AttachVolumeWithChan(request *AttachVolumeRequest) (<-chan *AttachVolumeResponse, <-chan error) {
-	responseChan := make(chan *AttachVolumeResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.AttachVolume(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// AttachVolumeWithCallback invokes the ecs.AttachVolume API asynchronously
-// api document: https://help.aliyun.com/api/ecs/attachvolume.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) AttachVolumeWithCallback(request *AttachVolumeRequest, callback func(response *AttachVolumeResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *AttachVolumeResponse
-		var err error
-		defer close(result)
-		response, err = client.AttachVolume(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// AttachVolumeRequest is the request struct for api AttachVolume
-type AttachVolumeRequest 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"`
-	VolumeId             string           `position:"Query" name:"VolumeId"`
-	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
-}
-
-// AttachVolumeResponse is the response struct for api AttachVolume
-type AttachVolumeResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-}
-
-// CreateAttachVolumeRequest creates a request to invoke AttachVolume API
-func CreateAttachVolumeRequest() (request *AttachVolumeRequest) {
-	request = &AttachVolumeRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("Ecs", "2014-05-26", "AttachVolume", "ecs", "openAPI")
-	return
-}
-
-// CreateAttachVolumeResponse creates a response to parse from AttachVolume response
-func CreateAttachVolumeResponse() (response *AttachVolumeResponse) {
-	response = &AttachVolumeResponse{
-		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 - 107
services/ecs/cancel_agreement.go

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

+ 0 - 108
services/ecs/cancel_user_event.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"
-)
-
-// CancelUserEvent invokes the ecs.CancelUserEvent API synchronously
-// api document: https://help.aliyun.com/api/ecs/canceluserevent.html
-func (client *Client) CancelUserEvent(request *CancelUserEventRequest) (response *CancelUserEventResponse, err error) {
-	response = CreateCancelUserEventResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// CancelUserEventWithChan invokes the ecs.CancelUserEvent API asynchronously
-// api document: https://help.aliyun.com/api/ecs/canceluserevent.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) CancelUserEventWithChan(request *CancelUserEventRequest) (<-chan *CancelUserEventResponse, <-chan error) {
-	responseChan := make(chan *CancelUserEventResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.CancelUserEvent(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// CancelUserEventWithCallback invokes the ecs.CancelUserEvent API asynchronously
-// api document: https://help.aliyun.com/api/ecs/canceluserevent.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) CancelUserEventWithCallback(request *CancelUserEventRequest, callback func(response *CancelUserEventResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *CancelUserEventResponse
-		var err error
-		defer close(result)
-		response, err = client.CancelUserEvent(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// CancelUserEventRequest is the request struct for api CancelUserEvent
-type CancelUserEventRequest struct {
-	*requests.RpcRequest
-	EventId              string           `position:"Query" name:"EventId"`
-	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
-	ResourceId           string           `position:"Query" name:"ResourceId"`
-	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
-	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
-}
-
-// CancelUserEventResponse is the response struct for api CancelUserEvent
-type CancelUserEventResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-	EventId   string `json:"EventId" xml:"EventId"`
-}
-
-// CreateCancelUserEventRequest creates a request to invoke CancelUserEvent API
-func CreateCancelUserEventRequest() (request *CancelUserEventRequest) {
-	request = &CancelUserEventRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("Ecs", "2014-05-26", "CancelUserEvent", "ecs", "openAPI")
-	return
-}
-
-// CreateCancelUserEventResponse creates a response to parse from CancelUserEvent response
-func CreateCancelUserEventResponse() (response *CancelUserEventResponse) {
-	response = &CancelUserEventResponse{
-		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
-}

+ 1 - 0
services/ecs/create_instance.go

@@ -81,6 +81,7 @@ type CreateInstanceRequest struct {
 	SecurityEnhancementStrategy string                    `position:"Query" name:"SecurityEnhancementStrategy"`
 	SecurityEnhancementStrategy string                    `position:"Query" name:"SecurityEnhancementStrategy"`
 	KeyPairName                 string                    `position:"Query" name:"KeyPairName"`
 	KeyPairName                 string                    `position:"Query" name:"KeyPairName"`
 	SpotPriceLimit              requests.Float            `position:"Query" name:"SpotPriceLimit"`
 	SpotPriceLimit              requests.Float            `position:"Query" name:"SpotPriceLimit"`
+	DeletionProtection          requests.Boolean          `position:"Query" name:"DeletionProtection"`
 	ResourceGroupId             string                    `position:"Query" name:"ResourceGroupId"`
 	ResourceGroupId             string                    `position:"Query" name:"ResourceGroupId"`
 	HostName                    string                    `position:"Query" name:"HostName"`
 	HostName                    string                    `position:"Query" name:"HostName"`
 	Password                    string                    `position:"Query" name:"Password"`
 	Password                    string                    `position:"Query" name:"Password"`

+ 0 - 110
services/ecs/create_user_event.go

@@ -1,110 +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"
-)
-
-// CreateUserEvent invokes the ecs.CreateUserEvent API synchronously
-// api document: https://help.aliyun.com/api/ecs/createuserevent.html
-func (client *Client) CreateUserEvent(request *CreateUserEventRequest) (response *CreateUserEventResponse, err error) {
-	response = CreateCreateUserEventResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// CreateUserEventWithChan invokes the ecs.CreateUserEvent API asynchronously
-// api document: https://help.aliyun.com/api/ecs/createuserevent.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) CreateUserEventWithChan(request *CreateUserEventRequest) (<-chan *CreateUserEventResponse, <-chan error) {
-	responseChan := make(chan *CreateUserEventResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.CreateUserEvent(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// CreateUserEventWithCallback invokes the ecs.CreateUserEvent API asynchronously
-// api document: https://help.aliyun.com/api/ecs/createuserevent.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) CreateUserEventWithCallback(request *CreateUserEventRequest, callback func(response *CreateUserEventResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *CreateUserEventResponse
-		var err error
-		defer close(result)
-		response, err = client.CreateUserEvent(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// CreateUserEventRequest is the request struct for api CreateUserEvent
-type CreateUserEventRequest struct {
-	*requests.RpcRequest
-	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
-	PlanTime             string           `position:"Query" name:"PlanTime"`
-	ExpireTime           string           `position:"Query" name:"ExpireTime"`
-	ResourceId           string           `position:"Query" name:"ResourceId"`
-	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
-	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
-	EventType            string           `position:"Query" name:"EventType"`
-}
-
-// CreateUserEventResponse is the response struct for api CreateUserEvent
-type CreateUserEventResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-	EventId   string `json:"EventId" xml:"EventId"`
-}
-
-// CreateCreateUserEventRequest creates a request to invoke CreateUserEvent API
-func CreateCreateUserEventRequest() (request *CreateUserEventRequest) {
-	request = &CreateUserEventRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("Ecs", "2014-05-26", "CreateUserEvent", "ecs", "openAPI")
-	return
-}
-
-// CreateCreateUserEventResponse creates a response to parse from CreateUserEvent response
-func CreateCreateUserEventResponse() (response *CreateUserEventResponse) {
-	response = &CreateUserEventResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 122
services/ecs/create_volume.go

@@ -1,122 +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"
-)
-
-// CreateVolume invokes the ecs.CreateVolume API synchronously
-// api document: https://help.aliyun.com/api/ecs/createvolume.html
-func (client *Client) CreateVolume(request *CreateVolumeRequest) (response *CreateVolumeResponse, err error) {
-	response = CreateCreateVolumeResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// CreateVolumeWithChan invokes the ecs.CreateVolume API asynchronously
-// api document: https://help.aliyun.com/api/ecs/createvolume.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) CreateVolumeWithChan(request *CreateVolumeRequest) (<-chan *CreateVolumeResponse, <-chan error) {
-	responseChan := make(chan *CreateVolumeResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.CreateVolume(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// CreateVolumeWithCallback invokes the ecs.CreateVolume API asynchronously
-// api document: https://help.aliyun.com/api/ecs/createvolume.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) CreateVolumeWithCallback(request *CreateVolumeRequest, callback func(response *CreateVolumeResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *CreateVolumeResponse
-		var err error
-		defer close(result)
-		response, err = client.CreateVolume(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// CreateVolumeRequest is the request struct for api CreateVolume
-type CreateVolumeRequest struct {
-	*requests.RpcRequest
-	ResourceOwnerId      requests.Integer   `position:"Query" name:"ResourceOwnerId"`
-	SnapshotId           string             `position:"Query" name:"SnapshotId"`
-	VolumeName           string             `position:"Query" name:"VolumeName"`
-	VolumeEncrypted      requests.Boolean   `position:"Query" name:"VolumeEncrypted"`
-	ResourceOwnerAccount string             `position:"Query" name:"ResourceOwnerAccount"`
-	ClientToken          string             `position:"Query" name:"ClientToken"`
-	OwnerAccount         string             `position:"Query" name:"OwnerAccount"`
-	Description          string             `position:"Query" name:"Description"`
-	OwnerId              requests.Integer   `position:"Query" name:"OwnerId"`
-	VolumeCategory       string             `position:"Query" name:"VolumeCategory"`
-	Size                 requests.Integer   `position:"Query" name:"Size"`
-	ZoneId               string             `position:"Query" name:"ZoneId"`
-	Tag                  *[]CreateVolumeTag `position:"Query" name:"Tag"  type:"Repeated"`
-}
-
-// CreateVolumeTag is a repeated param struct in CreateVolumeRequest
-type CreateVolumeTag struct {
-	Value string `name:"Value"`
-	Key   string `name:"Key"`
-}
-
-// CreateVolumeResponse is the response struct for api CreateVolume
-type CreateVolumeResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-	VolumeId  string `json:"VolumeId" xml:"VolumeId"`
-}
-
-// CreateCreateVolumeRequest creates a request to invoke CreateVolume API
-func CreateCreateVolumeRequest() (request *CreateVolumeRequest) {
-	request = &CreateVolumeRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("Ecs", "2014-05-26", "CreateVolume", "ecs", "openAPI")
-	return
-}
-
-// CreateCreateVolumeResponse creates a response to parse from CreateVolume response
-func CreateCreateVolumeResponse() (response *CreateVolumeResponse) {
-	response = &CreateVolumeResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 107
services/ecs/delete_recycle_bin.go

@@ -1,107 +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"
-)
-
-// DeleteRecycleBin invokes the ecs.DeleteRecycleBin API synchronously
-// api document: https://help.aliyun.com/api/ecs/deleterecyclebin.html
-func (client *Client) DeleteRecycleBin(request *DeleteRecycleBinRequest) (response *DeleteRecycleBinResponse, err error) {
-	response = CreateDeleteRecycleBinResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// DeleteRecycleBinWithChan invokes the ecs.DeleteRecycleBin API asynchronously
-// api document: https://help.aliyun.com/api/ecs/deleterecyclebin.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DeleteRecycleBinWithChan(request *DeleteRecycleBinRequest) (<-chan *DeleteRecycleBinResponse, <-chan error) {
-	responseChan := make(chan *DeleteRecycleBinResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.DeleteRecycleBin(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// DeleteRecycleBinWithCallback invokes the ecs.DeleteRecycleBin API asynchronously
-// api document: https://help.aliyun.com/api/ecs/deleterecyclebin.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DeleteRecycleBinWithCallback(request *DeleteRecycleBinRequest, callback func(response *DeleteRecycleBinResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *DeleteRecycleBinResponse
-		var err error
-		defer close(result)
-		response, err = client.DeleteRecycleBin(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// DeleteRecycleBinRequest is the request struct for api DeleteRecycleBin
-type DeleteRecycleBinRequest 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"`
-	ResourceIds          string           `position:"Query" name:"resourceIds"`
-}
-
-// DeleteRecycleBinResponse is the response struct for api DeleteRecycleBin
-type DeleteRecycleBinResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-}
-
-// CreateDeleteRecycleBinRequest creates a request to invoke DeleteRecycleBin API
-func CreateDeleteRecycleBinRequest() (request *DeleteRecycleBinRequest) {
-	request = &DeleteRecycleBinRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("Ecs", "2014-05-26", "DeleteRecycleBin", "ecs", "openAPI")
-	return
-}
-
-// CreateDeleteRecycleBinResponse creates a response to parse from DeleteRecycleBin response
-func CreateDeleteRecycleBinResponse() (response *DeleteRecycleBinResponse) {
-	response = &DeleteRecycleBinResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 107
services/ecs/delete_volume.go

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

+ 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 - 113
services/ecs/describe_deployment_set_topology.go

@@ -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"
-)
-
-// DescribeDeploymentSetTopology invokes the ecs.DescribeDeploymentSetTopology API synchronously
-// api document: https://help.aliyun.com/api/ecs/describedeploymentsettopology.html
-func (client *Client) DescribeDeploymentSetTopology(request *DescribeDeploymentSetTopologyRequest) (response *DescribeDeploymentSetTopologyResponse, err error) {
-	response = CreateDescribeDeploymentSetTopologyResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// DescribeDeploymentSetTopologyWithChan invokes the ecs.DescribeDeploymentSetTopology API asynchronously
-// api document: https://help.aliyun.com/api/ecs/describedeploymentsettopology.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeDeploymentSetTopologyWithChan(request *DescribeDeploymentSetTopologyRequest) (<-chan *DescribeDeploymentSetTopologyResponse, <-chan error) {
-	responseChan := make(chan *DescribeDeploymentSetTopologyResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.DescribeDeploymentSetTopology(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// DescribeDeploymentSetTopologyWithCallback invokes the ecs.DescribeDeploymentSetTopology API asynchronously
-// api document: https://help.aliyun.com/api/ecs/describedeploymentsettopology.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeDeploymentSetTopologyWithCallback(request *DescribeDeploymentSetTopologyRequest, callback func(response *DescribeDeploymentSetTopologyResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *DescribeDeploymentSetTopologyResponse
-		var err error
-		defer close(result)
-		response, err = client.DescribeDeploymentSetTopology(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// DescribeDeploymentSetTopologyRequest is the request struct for api DescribeDeploymentSetTopology
-type DescribeDeploymentSetTopologyRequest struct {
-	*requests.RpcRequest
-	DeploymentSetId      string           `position:"Query" name:"DeploymentSetId"`
-	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
-	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
-	Granularity          string           `position:"Query" name:"Granularity"`
-	Domain               string           `position:"Query" name:"Domain"`
-	NetworkType          string           `position:"Query" name:"NetworkType"`
-	DeploymentSetName    string           `position:"Query" name:"DeploymentSetName"`
-	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
-	Strategy             string           `position:"Query" name:"Strategy"`
-}
-
-// DescribeDeploymentSetTopologyResponse is the response struct for api DescribeDeploymentSetTopology
-type DescribeDeploymentSetTopologyResponse struct {
-	*responses.BaseResponse
-	RequestId string  `json:"RequestId" xml:"RequestId"`
-	Switchs   Switchs `json:"Switchs" xml:"Switchs"`
-	Racks     Racks   `json:"Racks" xml:"Racks"`
-}
-
-// CreateDescribeDeploymentSetTopologyRequest creates a request to invoke DescribeDeploymentSetTopology API
-func CreateDescribeDeploymentSetTopologyRequest() (request *DescribeDeploymentSetTopologyRequest) {
-	request = &DescribeDeploymentSetTopologyRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeDeploymentSetTopology", "ecs", "openAPI")
-	return
-}
-
-// CreateDescribeDeploymentSetTopologyResponse creates a response to parse from DescribeDeploymentSetTopology response
-func CreateDescribeDeploymentSetTopologyResponse() (response *DescribeDeploymentSetTopologyResponse) {
-	response = &DescribeDeploymentSetTopologyResponse{
-		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
-}

+ 0 - 117
services/ecs/describe_events.go

@@ -1,117 +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"
-)
-
-// DescribeEvents invokes the ecs.DescribeEvents API synchronously
-// api document: https://help.aliyun.com/api/ecs/describeevents.html
-func (client *Client) DescribeEvents(request *DescribeEventsRequest) (response *DescribeEventsResponse, err error) {
-	response = CreateDescribeEventsResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// DescribeEventsWithChan invokes the ecs.DescribeEvents API asynchronously
-// api document: https://help.aliyun.com/api/ecs/describeevents.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeEventsWithChan(request *DescribeEventsRequest) (<-chan *DescribeEventsResponse, <-chan error) {
-	responseChan := make(chan *DescribeEventsResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.DescribeEvents(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// DescribeEventsWithCallback invokes the ecs.DescribeEvents API asynchronously
-// api document: https://help.aliyun.com/api/ecs/describeevents.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeEventsWithCallback(request *DescribeEventsRequest, callback func(response *DescribeEventsResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *DescribeEventsResponse
-		var err error
-		defer close(result)
-		response, err = client.DescribeEvents(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// DescribeEventsRequest is the request struct for api DescribeEvents
-type DescribeEventsRequest struct {
-	*requests.RpcRequest
-	EventId              string           `position:"Query" name:"EventId"`
-	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
-	PageNumber           requests.Integer `position:"Query" name:"PageNumber"`
-	PageSize             requests.Integer `position:"Query" name:"PageSize"`
-	PlanTime             string           `position:"Query" name:"PlanTime"`
-	ExpireTime           string           `position:"Query" name:"ExpireTime"`
-	ResourceId           string           `position:"Query" name:"ResourceId"`
-	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
-	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
-	EventType            string           `position:"Query" name:"EventType"`
-	Status               string           `position:"Query" name:"Status"`
-}
-
-// DescribeEventsResponse is the response struct for api DescribeEvents
-type DescribeEventsResponse struct {
-	*responses.BaseResponse
-	RequestId  string `json:"RequestId" xml:"RequestId"`
-	PageNumber int    `json:"PageNumber" xml:"PageNumber"`
-	PageSize   int    `json:"PageSize" xml:"PageSize"`
-	TotalCount int    `json:"TotalCount" xml:"TotalCount"`
-	Events     Events `json:"Events" xml:"Events"`
-}
-
-// CreateDescribeEventsRequest creates a request to invoke DescribeEvents API
-func CreateDescribeEventsRequest() (request *DescribeEventsRequest) {
-	request = &DescribeEventsRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeEvents", "ecs", "openAPI")
-	return
-}
-
-// CreateDescribeEventsResponse creates a response to parse from DescribeEvents response
-func CreateDescribeEventsResponse() (response *DescribeEventsResponse) {
-	response = &DescribeEventsResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 107
services/ecs/describe_instance_topology.go

@@ -1,107 +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"
-)
-
-// 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
-}

+ 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
-}

+ 0 - 112
services/ecs/describe_recycle_bin.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"
-)
-
-// DescribeRecycleBin invokes the ecs.DescribeRecycleBin API synchronously
-// api document: https://help.aliyun.com/api/ecs/describerecyclebin.html
-func (client *Client) DescribeRecycleBin(request *DescribeRecycleBinRequest) (response *DescribeRecycleBinResponse, err error) {
-	response = CreateDescribeRecycleBinResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// DescribeRecycleBinWithChan invokes the ecs.DescribeRecycleBin API asynchronously
-// api document: https://help.aliyun.com/api/ecs/describerecyclebin.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeRecycleBinWithChan(request *DescribeRecycleBinRequest) (<-chan *DescribeRecycleBinResponse, <-chan error) {
-	responseChan := make(chan *DescribeRecycleBinResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.DescribeRecycleBin(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// DescribeRecycleBinWithCallback invokes the ecs.DescribeRecycleBin API asynchronously
-// api document: https://help.aliyun.com/api/ecs/describerecyclebin.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeRecycleBinWithCallback(request *DescribeRecycleBinRequest, callback func(response *DescribeRecycleBinResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *DescribeRecycleBinResponse
-		var err error
-		defer close(result)
-		response, err = client.DescribeRecycleBin(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// DescribeRecycleBinRequest is the request struct for api DescribeRecycleBin
-type DescribeRecycleBinRequest struct {
-	*requests.RpcRequest
-	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
-	ResourceId           string           `position:"Query" name:"ResourceId"`
-	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"`
-	Status               string           `position:"Query" name:"Status"`
-}
-
-// DescribeRecycleBinResponse is the response struct for api DescribeRecycleBin
-type DescribeRecycleBinResponse struct {
-	*responses.BaseResponse
-	RequestId        string           `json:"RequestId" xml:"RequestId"`
-	TotalCount       int              `json:"TotalCount" xml:"TotalCount"`
-	RecycleBinModels RecycleBinModels `json:"RecycleBinModels" xml:"RecycleBinModels"`
-}
-
-// CreateDescribeRecycleBinRequest creates a request to invoke DescribeRecycleBin API
-func CreateDescribeRecycleBinRequest() (request *DescribeRecycleBinRequest) {
-	request = &DescribeRecycleBinRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeRecycleBin", "ecs", "openAPI")
-	return
-}
-
-// CreateDescribeRecycleBinResponse creates a response to parse from DescribeRecycleBin response
-func CreateDescribeRecycleBinResponse() (response *DescribeRecycleBinResponse) {
-	response = &DescribeRecycleBinResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 113
services/ecs/describe_tag_keys.go

@@ -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"
-)
-
-// DescribeTagKeys invokes the ecs.DescribeTagKeys API synchronously
-// api document: https://help.aliyun.com/api/ecs/describetagkeys.html
-func (client *Client) DescribeTagKeys(request *DescribeTagKeysRequest) (response *DescribeTagKeysResponse, err error) {
-	response = CreateDescribeTagKeysResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// DescribeTagKeysWithChan invokes the ecs.DescribeTagKeys API asynchronously
-// api document: https://help.aliyun.com/api/ecs/describetagkeys.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeTagKeysWithChan(request *DescribeTagKeysRequest) (<-chan *DescribeTagKeysResponse, <-chan error) {
-	responseChan := make(chan *DescribeTagKeysResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.DescribeTagKeys(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// DescribeTagKeysWithCallback invokes the ecs.DescribeTagKeys API asynchronously
-// api document: https://help.aliyun.com/api/ecs/describetagkeys.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeTagKeysWithCallback(request *DescribeTagKeysRequest, callback func(response *DescribeTagKeysResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *DescribeTagKeysResponse
-		var err error
-		defer close(result)
-		response, err = client.DescribeTagKeys(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// DescribeTagKeysRequest is the request struct for api DescribeTagKeys
-type DescribeTagKeysRequest struct {
-	*requests.RpcRequest
-	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
-	ResourceId           string           `position:"Query" name:"ResourceId"`
-	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
-	PageSize             requests.Integer `position:"Query" name:"PageSize"`
-	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
-	ResourceType         string           `position:"Query" name:"ResourceType"`
-	PageNumber           requests.Integer `position:"Query" name:"PageNumber"`
-}
-
-// DescribeTagKeysResponse is the response struct for api DescribeTagKeys
-type DescribeTagKeysResponse struct {
-	*responses.BaseResponse
-	RequestId  string  `json:"RequestId" xml:"RequestId"`
-	PageSize   int     `json:"PageSize" xml:"PageSize"`
-	PageNumber int     `json:"PageNumber" xml:"PageNumber"`
-	TotalCount int     `json:"TotalCount" xml:"TotalCount"`
-	TagKeys    TagKeys `json:"TagKeys" xml:"TagKeys"`
-}
-
-// CreateDescribeTagKeysRequest creates a request to invoke DescribeTagKeys API
-func CreateDescribeTagKeysRequest() (request *DescribeTagKeysRequest) {
-	request = &DescribeTagKeysRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeTagKeys", "ecs", "openAPI")
-	return
-}
-
-// CreateDescribeTagKeysResponse creates a response to parse from DescribeTagKeys response
-func CreateDescribeTagKeysResponse() (response *DescribeTagKeysResponse) {
-	response = &DescribeTagKeysResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 128
services/ecs/describe_volumes.go

@@ -1,128 +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"
-)
-
-// DescribeVolumes invokes the ecs.DescribeVolumes API synchronously
-// api document: https://help.aliyun.com/api/ecs/describevolumes.html
-func (client *Client) DescribeVolumes(request *DescribeVolumesRequest) (response *DescribeVolumesResponse, err error) {
-	response = CreateDescribeVolumesResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// DescribeVolumesWithChan invokes the ecs.DescribeVolumes API asynchronously
-// api document: https://help.aliyun.com/api/ecs/describevolumes.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeVolumesWithChan(request *DescribeVolumesRequest) (<-chan *DescribeVolumesResponse, <-chan error) {
-	responseChan := make(chan *DescribeVolumesResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.DescribeVolumes(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// DescribeVolumesWithCallback invokes the ecs.DescribeVolumes API asynchronously
-// api document: https://help.aliyun.com/api/ecs/describevolumes.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeVolumesWithCallback(request *DescribeVolumesRequest, callback func(response *DescribeVolumesResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *DescribeVolumesResponse
-		var err error
-		defer close(result)
-		response, err = client.DescribeVolumes(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// DescribeVolumesRequest is the request struct for api DescribeVolumes
-type DescribeVolumesRequest struct {
-	*requests.RpcRequest
-	ResourceOwnerId               requests.Integer      `position:"Query" name:"ResourceOwnerId"`
-	SnapshotId                    string                `position:"Query" name:"SnapshotId"`
-	ResourceOwnerAccount          string                `position:"Query" name:"ResourceOwnerAccount"`
-	AutoSnapshotPolicyId          string                `position:"Query" name:"AutoSnapshotPolicyId"`
-	OwnerAccount                  string                `position:"Query" name:"OwnerAccount"`
-	EnableAutomatedSnapshotPolicy requests.Boolean      `position:"Query" name:"EnableAutomatedSnapshotPolicy"`
-	OwnerId                       requests.Integer      `position:"Query" name:"OwnerId"`
-	PageNumber                    requests.Integer      `position:"Query" name:"PageNumber"`
-	InstanceId                    string                `position:"Query" name:"InstanceId"`
-	LockReason                    string                `position:"Query" name:"LockReason"`
-	PageSize                      requests.Integer      `position:"Query" name:"PageSize"`
-	ZoneId                        string                `position:"Query" name:"ZoneId"`
-	VolumeIds                     string                `position:"Query" name:"VolumeIds"`
-	Tag                           *[]DescribeVolumesTag `position:"Query" name:"Tag"  type:"Repeated"`
-	Category                      string                `position:"Query" name:"Category"`
-	Status                        string                `position:"Query" name:"Status"`
-}
-
-// DescribeVolumesTag is a repeated param struct in DescribeVolumesRequest
-type DescribeVolumesTag struct {
-	Value string `name:"Value"`
-	Key   string `name:"Key"`
-}
-
-// DescribeVolumesResponse is the response struct for api DescribeVolumes
-type DescribeVolumesResponse 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"`
-	Volumes    Volumes `json:"Volumes" xml:"Volumes"`
-}
-
-// CreateDescribeVolumesRequest creates a request to invoke DescribeVolumes API
-func CreateDescribeVolumesRequest() (request *DescribeVolumesRequest) {
-	request = &DescribeVolumesRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeVolumes", "ecs", "openAPI")
-	return
-}
-
-// CreateDescribeVolumesResponse creates a response to parse from DescribeVolumes response
-func CreateDescribeVolumesResponse() (response *DescribeVolumesResponse) {
-	response = &DescribeVolumesResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

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

+ 1 - 0
services/ecs/modify_instance_attribute.go

@@ -83,6 +83,7 @@ type ModifyInstanceAttributeRequest struct {
 	Description          string           `position:"Query" name:"Description"`
 	Description          string           `position:"Query" name:"Description"`
 	CreditSpecification  string           `position:"Query" name:"CreditSpecification"`
 	CreditSpecification  string           `position:"Query" name:"CreditSpecification"`
 	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
 	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+	DeletionProtection   requests.Boolean `position:"Query" name:"DeletionProtection"`
 	UserData             string           `position:"Query" name:"UserData"`
 	UserData             string           `position:"Query" name:"UserData"`
 	Password             string           `position:"Query" name:"Password"`
 	Password             string           `position:"Query" name:"Password"`
 	HostName             string           `position:"Query" name:"HostName"`
 	HostName             string           `position:"Query" name:"HostName"`

+ 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
-}

+ 0 - 110
services/ecs/modify_user_event_attribute.go

@@ -1,110 +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"
-)
-
-// ModifyUserEventAttribute invokes the ecs.ModifyUserEventAttribute API synchronously
-// api document: https://help.aliyun.com/api/ecs/modifyusereventattribute.html
-func (client *Client) ModifyUserEventAttribute(request *ModifyUserEventAttributeRequest) (response *ModifyUserEventAttributeResponse, err error) {
-	response = CreateModifyUserEventAttributeResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// ModifyUserEventAttributeWithChan invokes the ecs.ModifyUserEventAttribute API asynchronously
-// api document: https://help.aliyun.com/api/ecs/modifyusereventattribute.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) ModifyUserEventAttributeWithChan(request *ModifyUserEventAttributeRequest) (<-chan *ModifyUserEventAttributeResponse, <-chan error) {
-	responseChan := make(chan *ModifyUserEventAttributeResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.ModifyUserEventAttribute(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// ModifyUserEventAttributeWithCallback invokes the ecs.ModifyUserEventAttribute API asynchronously
-// api document: https://help.aliyun.com/api/ecs/modifyusereventattribute.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) ModifyUserEventAttributeWithCallback(request *ModifyUserEventAttributeRequest, callback func(response *ModifyUserEventAttributeResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *ModifyUserEventAttributeResponse
-		var err error
-		defer close(result)
-		response, err = client.ModifyUserEventAttribute(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// ModifyUserEventAttributeRequest is the request struct for api ModifyUserEventAttribute
-type ModifyUserEventAttributeRequest struct {
-	*requests.RpcRequest
-	EventId              string           `position:"Query" name:"EventId"`
-	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
-	ResourceId           string           `position:"Query" name:"ResourceId"`
-	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
-	NewPlanTime          string           `position:"Query" name:"NewPlanTime"`
-	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
-	NewExpireTime        string           `position:"Query" name:"NewExpireTime"`
-}
-
-// ModifyUserEventAttributeResponse is the response struct for api ModifyUserEventAttribute
-type ModifyUserEventAttributeResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-	EventId   string `json:"EventId" xml:"EventId"`
-}
-
-// CreateModifyUserEventAttributeRequest creates a request to invoke ModifyUserEventAttribute API
-func CreateModifyUserEventAttributeRequest() (request *ModifyUserEventAttributeRequest) {
-	request = &ModifyUserEventAttributeRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyUserEventAttribute", "ecs", "openAPI")
-	return
-}
-
-// CreateModifyUserEventAttributeResponse creates a response to parse from ModifyUserEventAttribute response
-func CreateModifyUserEventAttributeResponse() (response *ModifyUserEventAttributeResponse) {
-	response = &ModifyUserEventAttributeResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 109
services/ecs/modify_volume_attribute.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"
-)
-
-// ModifyVolumeAttribute invokes the ecs.ModifyVolumeAttribute API synchronously
-// api document: https://help.aliyun.com/api/ecs/modifyvolumeattribute.html
-func (client *Client) ModifyVolumeAttribute(request *ModifyVolumeAttributeRequest) (response *ModifyVolumeAttributeResponse, err error) {
-	response = CreateModifyVolumeAttributeResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// ModifyVolumeAttributeWithChan invokes the ecs.ModifyVolumeAttribute API asynchronously
-// api document: https://help.aliyun.com/api/ecs/modifyvolumeattribute.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) ModifyVolumeAttributeWithChan(request *ModifyVolumeAttributeRequest) (<-chan *ModifyVolumeAttributeResponse, <-chan error) {
-	responseChan := make(chan *ModifyVolumeAttributeResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.ModifyVolumeAttribute(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// ModifyVolumeAttributeWithCallback invokes the ecs.ModifyVolumeAttribute API asynchronously
-// api document: https://help.aliyun.com/api/ecs/modifyvolumeattribute.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) ModifyVolumeAttributeWithCallback(request *ModifyVolumeAttributeRequest, callback func(response *ModifyVolumeAttributeResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *ModifyVolumeAttributeResponse
-		var err error
-		defer close(result)
-		response, err = client.ModifyVolumeAttribute(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// ModifyVolumeAttributeRequest is the request struct for api ModifyVolumeAttribute
-type ModifyVolumeAttributeRequest struct {
-	*requests.RpcRequest
-	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
-	VolumeName           string           `position:"Query" name:"VolumeName"`
-	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
-	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
-	VolumeId             string           `position:"Query" name:"VolumeId"`
-	Description          string           `position:"Query" name:"Description"`
-	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
-}
-
-// ModifyVolumeAttributeResponse is the response struct for api ModifyVolumeAttribute
-type ModifyVolumeAttributeResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-}
-
-// CreateModifyVolumeAttributeRequest creates a request to invoke ModifyVolumeAttribute API
-func CreateModifyVolumeAttributeRequest() (request *ModifyVolumeAttributeRequest) {
-	request = &ModifyVolumeAttributeRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyVolumeAttribute", "ecs", "openAPI")
-	return
-}
-
-// CreateModifyVolumeAttributeResponse creates a response to parse from ModifyVolumeAttribute response
-func CreateModifyVolumeAttributeResponse() (response *ModifyVolumeAttributeResponse) {
-	response = &ModifyVolumeAttributeResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 108
services/ecs/re_init_volume.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"
-)
-
-// ReInitVolume invokes the ecs.ReInitVolume API synchronously
-// api document: https://help.aliyun.com/api/ecs/reinitvolume.html
-func (client *Client) ReInitVolume(request *ReInitVolumeRequest) (response *ReInitVolumeResponse, err error) {
-	response = CreateReInitVolumeResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// ReInitVolumeWithChan invokes the ecs.ReInitVolume API asynchronously
-// api document: https://help.aliyun.com/api/ecs/reinitvolume.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) ReInitVolumeWithChan(request *ReInitVolumeRequest) (<-chan *ReInitVolumeResponse, <-chan error) {
-	responseChan := make(chan *ReInitVolumeResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.ReInitVolume(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// ReInitVolumeWithCallback invokes the ecs.ReInitVolume API asynchronously
-// api document: https://help.aliyun.com/api/ecs/reinitvolume.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) ReInitVolumeWithCallback(request *ReInitVolumeRequest, callback func(response *ReInitVolumeResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *ReInitVolumeResponse
-		var err error
-		defer close(result)
-		response, err = client.ReInitVolume(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// ReInitVolumeRequest is the request struct for api ReInitVolume
-type ReInitVolumeRequest struct {
-	*requests.RpcRequest
-	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
-	Password             string           `position:"Query" name:"Password"`
-	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
-	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
-	VolumeId             string           `position:"Query" name:"VolumeId"`
-	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
-}
-
-// ReInitVolumeResponse is the response struct for api ReInitVolume
-type ReInitVolumeResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-}
-
-// CreateReInitVolumeRequest creates a request to invoke ReInitVolume API
-func CreateReInitVolumeRequest() (request *ReInitVolumeRequest) {
-	request = &ReInitVolumeRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("Ecs", "2014-05-26", "ReInitVolume", "ecs", "openAPI")
-	return
-}
-
-// CreateReInitVolumeResponse creates a response to parse from ReInitVolume response
-func CreateReInitVolumeResponse() (response *ReInitVolumeResponse) {
-	response = &ReInitVolumeResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 109
services/ecs/resize_volume.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"
-)
-
-// ResizeVolume invokes the ecs.ResizeVolume API synchronously
-// api document: https://help.aliyun.com/api/ecs/resizevolume.html
-func (client *Client) ResizeVolume(request *ResizeVolumeRequest) (response *ResizeVolumeResponse, err error) {
-	response = CreateResizeVolumeResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// ResizeVolumeWithChan invokes the ecs.ResizeVolume API asynchronously
-// api document: https://help.aliyun.com/api/ecs/resizevolume.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) ResizeVolumeWithChan(request *ResizeVolumeRequest) (<-chan *ResizeVolumeResponse, <-chan error) {
-	responseChan := make(chan *ResizeVolumeResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.ResizeVolume(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// ResizeVolumeWithCallback invokes the ecs.ResizeVolume API asynchronously
-// api document: https://help.aliyun.com/api/ecs/resizevolume.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) ResizeVolumeWithCallback(request *ResizeVolumeRequest, callback func(response *ResizeVolumeResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *ResizeVolumeResponse
-		var err error
-		defer close(result)
-		response, err = client.ResizeVolume(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// ResizeVolumeRequest is the request struct for api ResizeVolume
-type ResizeVolumeRequest 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"`
-	VolumeId             string           `position:"Query" name:"VolumeId"`
-	NewSize              requests.Integer `position:"Query" name:"NewSize"`
-	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
-}
-
-// ResizeVolumeResponse is the response struct for api ResizeVolume
-type ResizeVolumeResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-}
-
-// CreateResizeVolumeRequest creates a request to invoke ResizeVolume API
-func CreateResizeVolumeRequest() (request *ResizeVolumeRequest) {
-	request = &ResizeVolumeRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("Ecs", "2014-05-26", "ResizeVolume", "ecs", "openAPI")
-	return
-}
-
-// CreateResizeVolumeResponse creates a response to parse from ResizeVolume response
-func CreateResizeVolumeResponse() (response *ResizeVolumeResponse) {
-	response = &ResizeVolumeResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

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

+ 1 - 0
services/ecs/run_instances.go

@@ -83,6 +83,7 @@ type RunInstancesRequest struct {
 	SecurityEnhancementStrategy string                          `position:"Query" name:"SecurityEnhancementStrategy"`
 	SecurityEnhancementStrategy string                          `position:"Query" name:"SecurityEnhancementStrategy"`
 	KeyPairName                 string                          `position:"Query" name:"KeyPairName"`
 	KeyPairName                 string                          `position:"Query" name:"KeyPairName"`
 	SpotPriceLimit              requests.Float                  `position:"Query" name:"SpotPriceLimit"`
 	SpotPriceLimit              requests.Float                  `position:"Query" name:"SpotPriceLimit"`
+	DeletionProtection          requests.Boolean                `position:"Query" name:"DeletionProtection"`
 	ResourceGroupId             string                          `position:"Query" name:"ResourceGroupId"`
 	ResourceGroupId             string                          `position:"Query" name:"ResourceGroupId"`
 	HostName                    string                          `position:"Query" name:"HostName"`
 	HostName                    string                          `position:"Query" name:"HostName"`
 	Password                    string                          `position:"Query" name:"Password"`
 	Password                    string                          `position:"Query" name:"Password"`

+ 0 - 107
services/ecs/sign_agreement.go

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

+ 0 - 22
services/ecs/struct_auto_snapshot_excution_status.go

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

+ 10 - 18
services/ecs/struct_auto_snapshot_policy.go

@@ -17,22 +17,14 @@ package ecs
 
 
 // AutoSnapshotPolicy is a nested struct in ecs response
 // AutoSnapshotPolicy is a nested struct in ecs response
 type AutoSnapshotPolicy struct {
 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 - 10
services/ecs/struct_deployment_set.go

@@ -17,14 +17,14 @@ package ecs
 
 
 // DeploymentSet is a nested struct in ecs response
 // DeploymentSet is a nested struct in ecs response
 type DeploymentSet struct {
 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              InstanceIdsInDescribeDeploymentSets `json:"InstanceIds" xml:"InstanceIds"`
+	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"`
 }
 }

+ 1 - 1
services/ecs/struct_disk.go

@@ -49,6 +49,6 @@ type Disk struct {
 	IOPSRead                      int                           `json:"IOPSRead" xml:"IOPSRead"`
 	IOPSRead                      int                           `json:"IOPSRead" xml:"IOPSRead"`
 	IOPSWrite                     int                           `json:"IOPSWrite" xml:"IOPSWrite"`
 	IOPSWrite                     int                           `json:"IOPSWrite" xml:"IOPSWrite"`
 	OperationLocks                OperationLocksInDescribeDisks `json:"OperationLocks" xml:"OperationLocks"`
 	OperationLocks                OperationLocksInDescribeDisks `json:"OperationLocks" xml:"OperationLocks"`
-	MountInstances                MountInstancesInDescribeDisks `json:"MountInstances" xml:"MountInstances"`
+	MountInstances                MountInstances                `json:"MountInstances" xml:"MountInstances"`
 	Tags                          TagsInDescribeDisks           `json:"Tags" xml:"Tags"`
 	Tags                          TagsInDescribeDisks           `json:"Tags" xml:"Tags"`
 }
 }

+ 0 - 28
services/ecs/struct_event.go

@@ -1,28 +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.
-
-// Event is a nested struct in ecs response
-type Event struct {
-	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"`
-}

+ 0 - 21
services/ecs/struct_events.go

@@ -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.
-
-// Events is a nested struct in ecs response
-type Events struct {
-	Event []Event `json:"Event" xml:"Event"`
-}

+ 0 - 22
services/ecs/struct_host.go

@@ -1,22 +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.
-
-// Host is a nested struct in ecs response
-type Host struct {
-	HostId      string                                     `json:"HostId" xml:"HostId"`
-	InstanceIds InstanceIdsInDescribeDeploymentSetTopology `json:"InstanceIds" xml:"InstanceIds"`
-}

+ 0 - 21
services/ecs/struct_hosts_in_describe_deployment_set_topology.go

@@ -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.
-
-// HostsInDescribeDeploymentSetTopology is a nested struct in ecs response
-type HostsInDescribeDeploymentSetTopology struct {
-	Host []Host `json:"Host" xml:"Host"`
-}

+ 1 - 0
services/ecs/struct_instance.go

@@ -59,6 +59,7 @@ type Instance struct {
 	VlanId                  string                               `json:"VlanId" xml:"VlanId"`
 	VlanId                  string                               `json:"VlanId" xml:"VlanId"`
 	StoppedMode             string                               `json:"StoppedMode" xml:"StoppedMode"`
 	StoppedMode             string                               `json:"StoppedMode" xml:"StoppedMode"`
 	SpotStrategy            string                               `json:"SpotStrategy" xml:"SpotStrategy"`
 	SpotStrategy            string                               `json:"SpotStrategy" xml:"SpotStrategy"`
+	DeletionProtection      bool                                 `json:"DeletionProtection" xml:"DeletionProtection"`
 	SecurityGroupIds        SecurityGroupIdsInDescribeInstances  `json:"SecurityGroupIds" xml:"SecurityGroupIds"`
 	SecurityGroupIds        SecurityGroupIdsInDescribeInstances  `json:"SecurityGroupIds" xml:"SecurityGroupIds"`
 	InnerIpAddress          InnerIpAddressInDescribeInstances    `json:"InnerIpAddress" xml:"InnerIpAddress"`
 	InnerIpAddress          InnerIpAddressInDescribeInstances    `json:"InnerIpAddress" xml:"InnerIpAddress"`
 	PublicIpAddress         PublicIpAddressInDescribeInstances   `json:"PublicIpAddress" xml:"PublicIpAddress"`
 	PublicIpAddress         PublicIpAddressInDescribeInstances   `json:"PublicIpAddress" xml:"PublicIpAddress"`

+ 2 - 2
services/ecs/struct_instance_ids_in_describe_deployment_sets.go → services/ecs/struct_instance_ids.go

@@ -15,7 +15,7 @@ package ecs
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 
-// InstanceIdsInDescribeDeploymentSets is a nested struct in ecs response
-type InstanceIdsInDescribeDeploymentSets struct {
+// InstanceIds is a nested struct in ecs response
+type InstanceIds struct {
 	InstanceId []string `json:"InstanceId" xml:"InstanceId"`
 	InstanceId []string `json:"InstanceId" xml:"InstanceId"`
 }
 }

+ 0 - 21
services/ecs/struct_instance_ids_in_describe_deployment_set_topology.go

@@ -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.
-
-// InstanceIdsInDescribeDeploymentSetTopology is a nested struct in ecs response
-type InstanceIdsInDescribeDeploymentSetTopology struct {
-	InstanceId []string `json:"InstanceId" xml:"InstanceId"`
-}

+ 0 - 22
services/ecs/struct_ip_range.go

@@ -1,22 +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.
-
-// IpRange is a nested struct in ecs response
-type IpRange struct {
-	IpAddress string `json:"IpAddress" xml:"IpAddress"`
-	NicType   string `json:"NicType" xml:"NicType"`
-}

+ 0 - 21
services/ecs/struct_ip_ranges.go

@@ -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.
-
-// IpRanges is a nested struct in ecs response
-type IpRanges struct {
-	IpRange []IpRange `json:"IpRange" xml:"IpRange"`
-}

+ 1 - 1
services/ecs/struct_mount_instance.go

@@ -17,7 +17,7 @@ package ecs
 
 
 // MountInstance is a nested struct in ecs response
 // MountInstance is a nested struct in ecs response
 type MountInstance struct {
 type MountInstance struct {
-	Device       string `json:"Device" xml:"Device"`
 	InstanceId   string `json:"InstanceId" xml:"InstanceId"`
 	InstanceId   string `json:"InstanceId" xml:"InstanceId"`
+	Device       string `json:"Device" xml:"Device"`
 	AttachedTime string `json:"AttachedTime" xml:"AttachedTime"`
 	AttachedTime string `json:"AttachedTime" xml:"AttachedTime"`
 }
 }

+ 2 - 2
services/ecs/struct_mount_instances_in_describe_disks.go → services/ecs/struct_mount_instances.go

@@ -15,7 +15,7 @@ package ecs
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 
-// MountInstancesInDescribeDisks is a nested struct in ecs response
-type MountInstancesInDescribeDisks struct {
+// MountInstances is a nested struct in ecs response
+type MountInstances struct {
 	MountInstance []MountInstance `json:"MountInstance" xml:"MountInstance"`
 	MountInstance []MountInstance `json:"MountInstance" xml:"MountInstance"`
 }
 }

+ 0 - 21
services/ecs/struct_mount_instances_in_describe_volumes.go

@@ -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.
-
-// MountInstancesInDescribeVolumes is a nested struct in ecs response
-type MountInstancesInDescribeVolumes struct {
-	MountInstance []MountInstance `json:"MountInstance" xml:"MountInstance"`
-}

+ 0 - 21
services/ecs/struct_operation_locks_in_describe_volumes.go

@@ -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.
-
-// OperationLocksInDescribeVolumes is a nested struct in ecs response
-type OperationLocksInDescribeVolumes struct {
-	OperationLock []OperationLock `json:"OperationLock" xml:"OperationLock"`
-}

+ 0 - 22
services/ecs/struct_rack.go

@@ -1,22 +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.
-
-// Rack is a nested struct in ecs response
-type Rack struct {
-	RackId string                               `json:"RackId" xml:"RackId"`
-	Hosts  HostsInDescribeDeploymentSetTopology `json:"Hosts" xml:"Hosts"`
-}

+ 0 - 21
services/ecs/struct_racks.go

@@ -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.
-
-// Racks is a nested struct in ecs response
-type Racks struct {
-	Rack []Rack `json:"Rack" xml:"Rack"`
-}

+ 0 - 26
services/ecs/struct_recycle_bin_model.go

@@ -1,26 +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.
-
-// RecycleBinModel is a nested struct in ecs response
-type RecycleBinModel struct {
-	ResourceId        string            `json:"ResourceId" xml:"ResourceId"`
-	RegionId          string            `json:"RegionId" xml:"RegionId"`
-	ResourceType      string            `json:"ResourceType" xml:"ResourceType"`
-	CreationTime      string            `json:"CreationTime" xml:"CreationTime"`
-	Status            string            `json:"Status" xml:"Status"`
-	RelationResources RelationResources `json:"RelationResources" xml:"RelationResources"`
-}

+ 0 - 21
services/ecs/struct_recycle_bin_models.go

@@ -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.
-
-// RecycleBinModels is a nested struct in ecs response
-type RecycleBinModels struct {
-	RecycleBinModel []RecycleBinModel `json:"RecycleBinModel" xml:"RecycleBinModel"`
-}

+ 0 - 22
services/ecs/struct_relation_resource.go

@@ -1,22 +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.
-
-// RelationResource is a nested struct in ecs response
-type RelationResource struct {
-	RelationResourceId   string `json:"RelationResourceId" xml:"RelationResourceId"`
-	RelationResourceType string `json:"RelationResourceType" xml:"RelationResourceType"`
-}

+ 0 - 21
services/ecs/struct_relation_resources.go

@@ -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.
-
-// RelationResources is a nested struct in ecs response
-type RelationResources struct {
-	RelationResource []RelationResource `json:"relationResource" xml:"relationResource"`
-}

+ 0 - 22
services/ecs/struct_switch.go

@@ -1,22 +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.
-
-// Switch is a nested struct in ecs response
-type Switch struct {
-	SwitchId string                               `json:"SwitchId" xml:"SwitchId"`
-	Hosts    HostsInDescribeDeploymentSetTopology `json:"Hosts" xml:"Hosts"`
-}

+ 0 - 21
services/ecs/struct_switchs.go

@@ -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.
-
-// Switchs is a nested struct in ecs response
-type Switchs struct {
-	Switch []Switch `json:"Switch" xml:"Switch"`
-}

+ 0 - 21
services/ecs/struct_tag_keys.go

@@ -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.
-
-// TagKeys is a nested struct in ecs response
-type TagKeys struct {
-	TagKey []string `json:"TagKey" xml:"TagKey"`
-}

+ 0 - 21
services/ecs/struct_tags_in_describe_volumes.go

@@ -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.
-
-// TagsInDescribeVolumes is a nested struct in ecs response
-type TagsInDescribeVolumes struct {
-	Tag []Tag `json:"Tag" xml:"Tag"`
-}

+ 0 - 22
services/ecs/struct_topology.go

@@ -1,22 +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.
-
-// Topology is a nested struct in ecs response
-type Topology struct {
-	InstanceId string `json:"InstanceId" xml:"InstanceId"`
-	HostId     string `json:"HostId" xml:"HostId"`
-}

+ 0 - 21
services/ecs/struct_topologys.go

@@ -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.
-
-// 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 - 39
services/ecs/struct_volume.go

@@ -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.
-
-// Volume is a nested struct in ecs response
-type Volume struct {
-	VolumeId                      string                          `json:"VolumeId" xml:"VolumeId"`
-	RegionId                      string                          `json:"RegionId" xml:"RegionId"`
-	ZoneId                        string                          `json:"ZoneId" xml:"ZoneId"`
-	VolumeName                    string                          `json:"VolumeName" xml:"VolumeName"`
-	Description                   string                          `json:"Description" xml:"Description"`
-	Category                      string                          `json:"Category" xml:"Category"`
-	Size                          int                             `json:"Size" xml:"Size"`
-	SourceSnapshotId              string                          `json:"SourceSnapshotId" xml:"SourceSnapshotId"`
-	AutoSnapshotPolicyId          string                          `json:"AutoSnapshotPolicyId" xml:"AutoSnapshotPolicyId"`
-	SnapshotLinkId                string                          `json:"SnapshotLinkId" xml:"SnapshotLinkId"`
-	Status                        string                          `json:"Status" xml:"Status"`
-	EnableAutomatedSnapshotPolicy bool                            `json:"EnableAutomatedSnapshotPolicy" xml:"EnableAutomatedSnapshotPolicy"`
-	CreationTime                  string                          `json:"CreationTime" xml:"CreationTime"`
-	VolumeChargeType              string                          `json:"VolumeChargeType" xml:"VolumeChargeType"`
-	MountInstanceNum              int                             `json:"MountInstanceNum" xml:"MountInstanceNum"`
-	Encrypted                     bool                            `json:"Encrypted" xml:"Encrypted"`
-	OperationLocks                OperationLocksInDescribeVolumes `json:"OperationLocks" xml:"OperationLocks"`
-	MountInstances                MountInstancesInDescribeVolumes `json:"MountInstances" xml:"MountInstances"`
-	Tags                          TagsInDescribeVolumes           `json:"Tags" xml:"Tags"`
-}

+ 0 - 21
services/ecs/struct_volumes.go

@@ -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.
-
-// Volumes is a nested struct in ecs response
-type Volumes struct {
-	Volume []Volume `json:"Volume" xml:"Volume"`
-}

+ 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
-}