浏览代码

ECS SDK Auto Released By yuanping.wyp,Version:1.29.6

Signed-off-by: yixiong.jxy <yixiong.jxy@alibaba-inc.com>
yixiong.jxy 7 年之前
父节点
当前提交
53274b2c53
共有 32 个文件被更改,包括 1511 次插入44 次删除
  1. 3 0
      ChangeLog.txt
  2. 130 0
      services/ecs/allocate_dedicated_hosts.go
  3. 1 1
      services/ecs/describe_available_resource.go
  4. 108 0
      services/ecs/describe_dedicated_host_auto_renew.go
  5. 109 0
      services/ecs/describe_dedicated_host_types.go
  6. 126 0
      services/ecs/describe_dedicated_hosts.go
  7. 2 2
      services/ecs/describe_disk_monitor_data.go
  8. 2 2
      services/ecs/describe_instance_monitor_data.go
  9. 5 5
      services/ecs/describe_instances.go
  10. 1 1
      services/ecs/describe_resources_modification.go
  11. 112 0
      services/ecs/modify_dedicated_host_attribute.go
  12. 108 0
      services/ecs/modify_dedicated_host_auto_release_time.go
  13. 111 0
      services/ecs/modify_dedicated_host_auto_renew_attribute.go
  14. 108 0
      services/ecs/modify_instance_deployment.go
  15. 107 0
      services/ecs/release_dedicated_host.go
  16. 110 0
      services/ecs/renew_dedicated_hosts.go
  17. 27 0
      services/ecs/struct_capacity.go
  18. 43 0
      services/ecs/struct_dedicated_host.go
  19. 21 0
      services/ecs/struct_dedicated_host_id_sets.go
  20. 25 0
      services/ecs/struct_dedicated_host_renew_attribute.go
  21. 21 0
      services/ecs/struct_dedicated_host_renew_attributes.go
  22. 29 0
      services/ecs/struct_dedicated_host_type.go
  23. 21 0
      services/ecs/struct_dedicated_host_types.go
  24. 21 0
      services/ecs/struct_dedicated_hosts.go
  25. 31 31
      services/ecs/struct_instance.go
  26. 21 0
      services/ecs/struct_instances_in_describe_dedicated_hosts.go
  27. 2 2
      services/ecs/struct_instances_in_describe_instances.go
  28. 22 0
      services/ecs/struct_network_attributes.go
  29. 21 0
      services/ecs/struct_operation_locks_in_describe_dedicated_hosts.go
  30. 21 0
      services/ecs/struct_supported_instance_type_families_in_describe_dedicated_host_types.go
  31. 21 0
      services/ecs/struct_supported_instance_type_families_in_describe_dedicated_hosts.go
  32. 21 0
      services/ecs/struct_tags_in_describe_dedicated_hosts.go

+ 3 - 0
ChangeLog.txt

@@ -1,3 +1,6 @@
+2018-09-14 Version: 1.29.6
+1, Add DedicatedHost Feature
+
 2018-09-13 Version: 1.29.5
 1, modify CheckDBInstance OpenApi
 

+ 130 - 0
services/ecs/allocate_dedicated_hosts.go

@@ -0,0 +1,130 @@
+package ecs
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// AllocateDedicatedHosts invokes the ecs.AllocateDedicatedHosts API synchronously
+// api document: https://help.aliyun.com/api/ecs/allocatededicatedhosts.html
+func (client *Client) AllocateDedicatedHosts(request *AllocateDedicatedHostsRequest) (response *AllocateDedicatedHostsResponse, err error) {
+	response = CreateAllocateDedicatedHostsResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// AllocateDedicatedHostsWithChan invokes the ecs.AllocateDedicatedHosts API asynchronously
+// api document: https://help.aliyun.com/api/ecs/allocatededicatedhosts.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) AllocateDedicatedHostsWithChan(request *AllocateDedicatedHostsRequest) (<-chan *AllocateDedicatedHostsResponse, <-chan error) {
+	responseChan := make(chan *AllocateDedicatedHostsResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.AllocateDedicatedHosts(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// AllocateDedicatedHostsWithCallback invokes the ecs.AllocateDedicatedHosts API asynchronously
+// api document: https://help.aliyun.com/api/ecs/allocatededicatedhosts.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) AllocateDedicatedHostsWithCallback(request *AllocateDedicatedHostsRequest, callback func(response *AllocateDedicatedHostsResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *AllocateDedicatedHostsResponse
+		var err error
+		defer close(result)
+		response, err = client.AllocateDedicatedHosts(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// AllocateDedicatedHostsRequest is the request struct for api AllocateDedicatedHosts
+type AllocateDedicatedHostsRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId                requests.Integer             `position:"Query" name:"ResourceOwnerId"`
+	ClientToken                    string                       `position:"Query" name:"ClientToken"`
+	Description                    string                       `position:"Query" name:"Description"`
+	ResourceGroupId                string                       `position:"Query" name:"ResourceGroupId"`
+	ActionOnMaintenance            string                       `position:"Query" name:"ActionOnMaintenance"`
+	Tag                            *[]AllocateDedicatedHostsTag `position:"Query" name:"Tag"  type:"Repeated"`
+	DedicatedHostType              string                       `position:"Query" name:"DedicatedHostType"`
+	AutoRenewPeriod                requests.Integer             `position:"Query" name:"AutoRenewPeriod"`
+	Period                         requests.Integer             `position:"Query" name:"Period"`
+	Quantity                       requests.Integer             `position:"Query" name:"Quantity"`
+	DedicatedHostName              string                       `position:"Query" name:"DedicatedHostName"`
+	ResourceOwnerAccount           string                       `position:"Query" name:"ResourceOwnerAccount"`
+	OwnerAccount                   string                       `position:"Query" name:"OwnerAccount"`
+	AutoReleaseTime                string                       `position:"Query" name:"AutoReleaseTime"`
+	OwnerId                        requests.Integer             `position:"Query" name:"OwnerId"`
+	PeriodUnit                     string                       `position:"Query" name:"PeriodUnit"`
+	AutoRenew                      requests.Boolean             `position:"Query" name:"AutoRenew"`
+	NetworkAttributesSlbUdpTimeout requests.Integer             `position:"Query" name:"NetworkAttributes.SlbUdpTimeout"`
+	ZoneId                         string                       `position:"Query" name:"ZoneId"`
+	ChargeType                     string                       `position:"Query" name:"ChargeType"`
+	NetworkAttributesUdpTimeout    requests.Integer             `position:"Query" name:"NetworkAttributes.UdpTimeout"`
+}
+
+// AllocateDedicatedHostsTag is a repeated param struct in AllocateDedicatedHostsRequest
+type AllocateDedicatedHostsTag struct {
+	Key   string `name:"Key"`
+	Value string `name:"Value"`
+}
+
+// AllocateDedicatedHostsResponse is the response struct for api AllocateDedicatedHosts
+type AllocateDedicatedHostsResponse struct {
+	*responses.BaseResponse
+	RequestId           string              `json:"RequestId" xml:"RequestId"`
+	DedicatedHostIdSets DedicatedHostIdSets `json:"DedicatedHostIdSets" xml:"DedicatedHostIdSets"`
+}
+
+// CreateAllocateDedicatedHostsRequest creates a request to invoke AllocateDedicatedHosts API
+func CreateAllocateDedicatedHostsRequest() (request *AllocateDedicatedHostsRequest) {
+	request = &AllocateDedicatedHostsRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ecs", "2014-05-26", "AllocateDedicatedHosts", "ecs", "openAPI")
+	return
+}
+
+// CreateAllocateDedicatedHostsResponse creates a response to parse from AllocateDedicatedHosts response
+func CreateAllocateDedicatedHostsResponse() (response *AllocateDedicatedHostsResponse) {
+	response = &AllocateDedicatedHostsResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 1 - 1
services/ecs/describe_available_resource.go

@@ -77,7 +77,7 @@ func (client *Client) DescribeAvailableResourceWithCallback(request *DescribeAva
 type DescribeAvailableResourceRequest struct {
 	*requests.RpcRequest
 	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
-	Memory               requests.Integer `position:"Query" name:"Memory"`
+	Memory               requests.Float   `position:"Query" name:"Memory"`
 	IoOptimized          string           `position:"Query" name:"IoOptimized"`
 	DataDiskCategory     string           `position:"Query" name:"DataDiskCategory"`
 	Cores                requests.Integer `position:"Query" name:"Cores"`

+ 108 - 0
services/ecs/describe_dedicated_host_auto_renew.go

@@ -0,0 +1,108 @@
+package ecs
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// DescribeDedicatedHostAutoRenew invokes the ecs.DescribeDedicatedHostAutoRenew API synchronously
+// api document: https://help.aliyun.com/api/ecs/describededicatedhostautorenew.html
+func (client *Client) DescribeDedicatedHostAutoRenew(request *DescribeDedicatedHostAutoRenewRequest) (response *DescribeDedicatedHostAutoRenewResponse, err error) {
+	response = CreateDescribeDedicatedHostAutoRenewResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeDedicatedHostAutoRenewWithChan invokes the ecs.DescribeDedicatedHostAutoRenew API asynchronously
+// api document: https://help.aliyun.com/api/ecs/describededicatedhostautorenew.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeDedicatedHostAutoRenewWithChan(request *DescribeDedicatedHostAutoRenewRequest) (<-chan *DescribeDedicatedHostAutoRenewResponse, <-chan error) {
+	responseChan := make(chan *DescribeDedicatedHostAutoRenewResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeDedicatedHostAutoRenew(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeDedicatedHostAutoRenewWithCallback invokes the ecs.DescribeDedicatedHostAutoRenew API asynchronously
+// api document: https://help.aliyun.com/api/ecs/describededicatedhostautorenew.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeDedicatedHostAutoRenewWithCallback(request *DescribeDedicatedHostAutoRenewRequest, callback func(response *DescribeDedicatedHostAutoRenewResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeDedicatedHostAutoRenewResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeDedicatedHostAutoRenew(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeDedicatedHostAutoRenewRequest is the request struct for api DescribeDedicatedHostAutoRenew
+type DescribeDedicatedHostAutoRenewRequest struct {
+	*requests.RpcRequest
+	DedicatedHostIds     string           `position:"Query" name:"DedicatedHostIds"`
+	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"`
+}
+
+// DescribeDedicatedHostAutoRenewResponse is the response struct for api DescribeDedicatedHostAutoRenew
+type DescribeDedicatedHostAutoRenewResponse struct {
+	*responses.BaseResponse
+	RequestId                    string                       `json:"RequestId" xml:"RequestId"`
+	DedicatedHostRenewAttributes DedicatedHostRenewAttributes `json:"DedicatedHostRenewAttributes" xml:"DedicatedHostRenewAttributes"`
+}
+
+// CreateDescribeDedicatedHostAutoRenewRequest creates a request to invoke DescribeDedicatedHostAutoRenew API
+func CreateDescribeDedicatedHostAutoRenewRequest() (request *DescribeDedicatedHostAutoRenewRequest) {
+	request = &DescribeDedicatedHostAutoRenewRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeDedicatedHostAutoRenew", "ecs", "openAPI")
+	return
+}
+
+// CreateDescribeDedicatedHostAutoRenewResponse creates a response to parse from DescribeDedicatedHostAutoRenew response
+func CreateDescribeDedicatedHostAutoRenewResponse() (response *DescribeDedicatedHostAutoRenewResponse) {
+	response = &DescribeDedicatedHostAutoRenewResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 109 - 0
services/ecs/describe_dedicated_host_types.go

@@ -0,0 +1,109 @@
+package ecs
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// DescribeDedicatedHostTypes invokes the ecs.DescribeDedicatedHostTypes API synchronously
+// api document: https://help.aliyun.com/api/ecs/describededicatedhosttypes.html
+func (client *Client) DescribeDedicatedHostTypes(request *DescribeDedicatedHostTypesRequest) (response *DescribeDedicatedHostTypesResponse, err error) {
+	response = CreateDescribeDedicatedHostTypesResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeDedicatedHostTypesWithChan invokes the ecs.DescribeDedicatedHostTypes API asynchronously
+// api document: https://help.aliyun.com/api/ecs/describededicatedhosttypes.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeDedicatedHostTypesWithChan(request *DescribeDedicatedHostTypesRequest) (<-chan *DescribeDedicatedHostTypesResponse, <-chan error) {
+	responseChan := make(chan *DescribeDedicatedHostTypesResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeDedicatedHostTypes(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeDedicatedHostTypesWithCallback invokes the ecs.DescribeDedicatedHostTypes API asynchronously
+// api document: https://help.aliyun.com/api/ecs/describededicatedhosttypes.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeDedicatedHostTypesWithCallback(request *DescribeDedicatedHostTypesRequest, callback func(response *DescribeDedicatedHostTypesResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeDedicatedHostTypesResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeDedicatedHostTypes(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeDedicatedHostTypesRequest is the request struct for api DescribeDedicatedHostTypes
+type DescribeDedicatedHostTypesRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId             requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	SupportedInstanceTypeFamily string           `position:"Query" name:"SupportedInstanceTypeFamily"`
+	DedicatedHostType           string           `position:"Query" name:"DedicatedHostType"`
+	ResourceOwnerAccount        string           `position:"Query" name:"ResourceOwnerAccount"`
+	OwnerAccount                string           `position:"Query" name:"OwnerAccount"`
+	OwnerId                     requests.Integer `position:"Query" name:"OwnerId"`
+}
+
+// DescribeDedicatedHostTypesResponse is the response struct for api DescribeDedicatedHostTypes
+type DescribeDedicatedHostTypesResponse struct {
+	*responses.BaseResponse
+	RequestId          string             `json:"RequestId" xml:"RequestId"`
+	DedicatedHostTypes DedicatedHostTypes `json:"DedicatedHostTypes" xml:"DedicatedHostTypes"`
+}
+
+// CreateDescribeDedicatedHostTypesRequest creates a request to invoke DescribeDedicatedHostTypes API
+func CreateDescribeDedicatedHostTypesRequest() (request *DescribeDedicatedHostTypesRequest) {
+	request = &DescribeDedicatedHostTypesRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeDedicatedHostTypes", "ecs", "openAPI")
+	return
+}
+
+// CreateDescribeDedicatedHostTypesResponse creates a response to parse from DescribeDedicatedHostTypes response
+func CreateDescribeDedicatedHostTypesResponse() (response *DescribeDedicatedHostTypesResponse) {
+	response = &DescribeDedicatedHostTypesResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 126 - 0
services/ecs/describe_dedicated_hosts.go

@@ -0,0 +1,126 @@
+package ecs
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// DescribeDedicatedHosts invokes the ecs.DescribeDedicatedHosts API synchronously
+// api document: https://help.aliyun.com/api/ecs/describededicatedhosts.html
+func (client *Client) DescribeDedicatedHosts(request *DescribeDedicatedHostsRequest) (response *DescribeDedicatedHostsResponse, err error) {
+	response = CreateDescribeDedicatedHostsResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeDedicatedHostsWithChan invokes the ecs.DescribeDedicatedHosts API asynchronously
+// api document: https://help.aliyun.com/api/ecs/describededicatedhosts.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeDedicatedHostsWithChan(request *DescribeDedicatedHostsRequest) (<-chan *DescribeDedicatedHostsResponse, <-chan error) {
+	responseChan := make(chan *DescribeDedicatedHostsResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeDedicatedHosts(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeDedicatedHostsWithCallback invokes the ecs.DescribeDedicatedHosts API asynchronously
+// api document: https://help.aliyun.com/api/ecs/describededicatedhosts.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeDedicatedHostsWithCallback(request *DescribeDedicatedHostsRequest, callback func(response *DescribeDedicatedHostsResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeDedicatedHostsResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeDedicatedHosts(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeDedicatedHostsRequest is the request struct for api DescribeDedicatedHosts
+type DescribeDedicatedHostsRequest struct {
+	*requests.RpcRequest
+	DedicatedHostIds     string                       `position:"Query" name:"DedicatedHostIds"`
+	ResourceOwnerId      requests.Integer             `position:"Query" name:"ResourceOwnerId"`
+	DedicatedHostName    string                       `position:"Query" name:"DedicatedHostName"`
+	ResourceOwnerAccount string                       `position:"Query" name:"ResourceOwnerAccount"`
+	OwnerAccount         string                       `position:"Query" name:"OwnerAccount"`
+	OwnerId              requests.Integer             `position:"Query" name:"OwnerId"`
+	PageNumber           requests.Integer             `position:"Query" name:"PageNumber"`
+	ResourceGroupId      string                       `position:"Query" name:"ResourceGroupId"`
+	LockReason           string                       `position:"Query" name:"LockReason"`
+	PageSize             requests.Integer             `position:"Query" name:"PageSize"`
+	ZoneId               string                       `position:"Query" name:"ZoneId"`
+	DedicatedHostType    string                       `position:"Query" name:"DedicatedHostType"`
+	Tag                  *[]DescribeDedicatedHostsTag `position:"Query" name:"Tag"  type:"Repeated"`
+	Status               string                       `position:"Query" name:"Status"`
+}
+
+// DescribeDedicatedHostsTag is a repeated param struct in DescribeDedicatedHostsRequest
+type DescribeDedicatedHostsTag struct {
+	Value string `name:"Value"`
+	Key   string `name:"Key"`
+}
+
+// DescribeDedicatedHostsResponse is the response struct for api DescribeDedicatedHosts
+type DescribeDedicatedHostsResponse 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"`
+	DedicatedHosts DedicatedHosts `json:"DedicatedHosts" xml:"DedicatedHosts"`
+}
+
+// CreateDescribeDedicatedHostsRequest creates a request to invoke DescribeDedicatedHosts API
+func CreateDescribeDedicatedHostsRequest() (request *DescribeDedicatedHostsRequest) {
+	request = &DescribeDedicatedHostsRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeDedicatedHosts", "ecs", "openAPI")
+	return
+}
+
+// CreateDescribeDedicatedHostsResponse creates a response to parse from DescribeDedicatedHosts response
+func CreateDescribeDedicatedHostsResponse() (response *DescribeDedicatedHostsResponse) {
+	response = &DescribeDedicatedHostsResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 2 - 2
services/ecs/describe_disk_monitor_data.go

@@ -77,12 +77,12 @@ func (client *Client) DescribeDiskMonitorDataWithCallback(request *DescribeDiskM
 type DescribeDiskMonitorDataRequest struct {
 	*requests.RpcRequest
 	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	StartTime            string           `position:"Query" name:"StartTime"`
+	DiskId               string           `position:"Query" name:"DiskId"`
 	Period               requests.Integer `position:"Query" name:"Period"`
 	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
 	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
 	EndTime              string           `position:"Query" name:"EndTime"`
-	DiskId               string           `position:"Query" name:"DiskId"`
-	StartTime            string           `position:"Query" name:"StartTime"`
 	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
 }
 

+ 2 - 2
services/ecs/describe_instance_monitor_data.go

@@ -77,13 +77,13 @@ func (client *Client) DescribeInstanceMonitorDataWithCallback(request *DescribeI
 type DescribeInstanceMonitorDataRequest struct {
 	*requests.RpcRequest
 	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	StartTime            string           `position:"Query" name:"StartTime"`
 	Period               requests.Integer `position:"Query" name:"Period"`
-	InstanceId           string           `position:"Query" name:"InstanceId"`
 	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
 	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
 	EndTime              string           `position:"Query" name:"EndTime"`
-	StartTime            string           `position:"Query" name:"StartTime"`
 	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+	InstanceId           string           `position:"Query" name:"InstanceId"`
 }
 
 // DescribeInstanceMonitorDataResponse is the response struct for api DescribeInstanceMonitorData

+ 5 - 5
services/ecs/describe_instances.go

@@ -127,11 +127,11 @@ type DescribeInstancesTag struct {
 // DescribeInstancesResponse is the response struct for api DescribeInstances
 type DescribeInstancesResponse struct {
 	*responses.BaseResponse
-	RequestId  string    `json:"RequestId" xml:"RequestId"`
-	TotalCount int       `json:"TotalCount" xml:"TotalCount"`
-	PageNumber int       `json:"PageNumber" xml:"PageNumber"`
-	PageSize   int       `json:"PageSize" xml:"PageSize"`
-	Instances  Instances `json:"Instances" xml:"Instances"`
+	RequestId  string                       `json:"RequestId" xml:"RequestId"`
+	TotalCount int                          `json:"TotalCount" xml:"TotalCount"`
+	PageNumber int                          `json:"PageNumber" xml:"PageNumber"`
+	PageSize   int                          `json:"PageSize" xml:"PageSize"`
+	Instances  InstancesInDescribeInstances `json:"Instances" xml:"Instances"`
 }
 
 // CreateDescribeInstancesRequest creates a request to invoke DescribeInstances API

+ 1 - 1
services/ecs/describe_resources_modification.go

@@ -77,7 +77,7 @@ func (client *Client) DescribeResourcesModificationWithCallback(request *Describ
 type DescribeResourcesModificationRequest struct {
 	*requests.RpcRequest
 	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
-	Memory               requests.Integer `position:"Query" name:"Memory"`
+	Memory               requests.Float   `position:"Query" name:"Memory"`
 	Cores                requests.Integer `position:"Query" name:"Cores"`
 	MigrateAcrossZone    requests.Boolean `position:"Query" name:"MigrateAcrossZone"`
 	InstanceType         string           `position:"Query" name:"InstanceType"`

+ 112 - 0
services/ecs/modify_dedicated_host_attribute.go

@@ -0,0 +1,112 @@
+package ecs
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// ModifyDedicatedHostAttribute invokes the ecs.ModifyDedicatedHostAttribute API synchronously
+// api document: https://help.aliyun.com/api/ecs/modifydedicatedhostattribute.html
+func (client *Client) ModifyDedicatedHostAttribute(request *ModifyDedicatedHostAttributeRequest) (response *ModifyDedicatedHostAttributeResponse, err error) {
+	response = CreateModifyDedicatedHostAttributeResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ModifyDedicatedHostAttributeWithChan invokes the ecs.ModifyDedicatedHostAttribute API asynchronously
+// api document: https://help.aliyun.com/api/ecs/modifydedicatedhostattribute.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ModifyDedicatedHostAttributeWithChan(request *ModifyDedicatedHostAttributeRequest) (<-chan *ModifyDedicatedHostAttributeResponse, <-chan error) {
+	responseChan := make(chan *ModifyDedicatedHostAttributeResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ModifyDedicatedHostAttribute(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ModifyDedicatedHostAttributeWithCallback invokes the ecs.ModifyDedicatedHostAttribute API asynchronously
+// api document: https://help.aliyun.com/api/ecs/modifydedicatedhostattribute.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ModifyDedicatedHostAttributeWithCallback(request *ModifyDedicatedHostAttributeRequest, callback func(response *ModifyDedicatedHostAttributeResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ModifyDedicatedHostAttributeResponse
+		var err error
+		defer close(result)
+		response, err = client.ModifyDedicatedHostAttribute(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ModifyDedicatedHostAttributeRequest is the request struct for api ModifyDedicatedHostAttribute
+type ModifyDedicatedHostAttributeRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId                requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	Description                    string           `position:"Query" name:"Description"`
+	ActionOnMaintenance            string           `position:"Query" name:"ActionOnMaintenance"`
+	DedicatedHostName              string           `position:"Query" name:"DedicatedHostName"`
+	ResourceOwnerAccount           string           `position:"Query" name:"ResourceOwnerAccount"`
+	OwnerAccount                   string           `position:"Query" name:"OwnerAccount"`
+	DedicatedHostId                string           `position:"Query" name:"DedicatedHostId"`
+	OwnerId                        requests.Integer `position:"Query" name:"OwnerId"`
+	NetworkAttributesSlbUdpTimeout requests.Integer `position:"Query" name:"NetworkAttributes.SlbUdpTimeout"`
+	NetworkAttributesUdpTimeout    requests.Integer `position:"Query" name:"NetworkAttributes.UdpTimeout"`
+}
+
+// ModifyDedicatedHostAttributeResponse is the response struct for api ModifyDedicatedHostAttribute
+type ModifyDedicatedHostAttributeResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateModifyDedicatedHostAttributeRequest creates a request to invoke ModifyDedicatedHostAttribute API
+func CreateModifyDedicatedHostAttributeRequest() (request *ModifyDedicatedHostAttributeRequest) {
+	request = &ModifyDedicatedHostAttributeRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyDedicatedHostAttribute", "ecs", "openAPI")
+	return
+}
+
+// CreateModifyDedicatedHostAttributeResponse creates a response to parse from ModifyDedicatedHostAttribute response
+func CreateModifyDedicatedHostAttributeResponse() (response *ModifyDedicatedHostAttributeResponse) {
+	response = &ModifyDedicatedHostAttributeResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 108 - 0
services/ecs/modify_dedicated_host_auto_release_time.go

@@ -0,0 +1,108 @@
+package ecs
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// ModifyDedicatedHostAutoReleaseTime invokes the ecs.ModifyDedicatedHostAutoReleaseTime API synchronously
+// api document: https://help.aliyun.com/api/ecs/modifydedicatedhostautoreleasetime.html
+func (client *Client) ModifyDedicatedHostAutoReleaseTime(request *ModifyDedicatedHostAutoReleaseTimeRequest) (response *ModifyDedicatedHostAutoReleaseTimeResponse, err error) {
+	response = CreateModifyDedicatedHostAutoReleaseTimeResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ModifyDedicatedHostAutoReleaseTimeWithChan invokes the ecs.ModifyDedicatedHostAutoReleaseTime API asynchronously
+// api document: https://help.aliyun.com/api/ecs/modifydedicatedhostautoreleasetime.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ModifyDedicatedHostAutoReleaseTimeWithChan(request *ModifyDedicatedHostAutoReleaseTimeRequest) (<-chan *ModifyDedicatedHostAutoReleaseTimeResponse, <-chan error) {
+	responseChan := make(chan *ModifyDedicatedHostAutoReleaseTimeResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ModifyDedicatedHostAutoReleaseTime(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ModifyDedicatedHostAutoReleaseTimeWithCallback invokes the ecs.ModifyDedicatedHostAutoReleaseTime API asynchronously
+// api document: https://help.aliyun.com/api/ecs/modifydedicatedhostautoreleasetime.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ModifyDedicatedHostAutoReleaseTimeWithCallback(request *ModifyDedicatedHostAutoReleaseTimeRequest, callback func(response *ModifyDedicatedHostAutoReleaseTimeResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ModifyDedicatedHostAutoReleaseTimeResponse
+		var err error
+		defer close(result)
+		response, err = client.ModifyDedicatedHostAutoReleaseTime(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ModifyDedicatedHostAutoReleaseTimeRequest is the request struct for api ModifyDedicatedHostAutoReleaseTime
+type ModifyDedicatedHostAutoReleaseTimeRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
+	AutoReleaseTime      string           `position:"Query" name:"AutoReleaseTime"`
+	DedicatedHostId      string           `position:"Query" name:"DedicatedHostId"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+}
+
+// ModifyDedicatedHostAutoReleaseTimeResponse is the response struct for api ModifyDedicatedHostAutoReleaseTime
+type ModifyDedicatedHostAutoReleaseTimeResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateModifyDedicatedHostAutoReleaseTimeRequest creates a request to invoke ModifyDedicatedHostAutoReleaseTime API
+func CreateModifyDedicatedHostAutoReleaseTimeRequest() (request *ModifyDedicatedHostAutoReleaseTimeRequest) {
+	request = &ModifyDedicatedHostAutoReleaseTimeRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyDedicatedHostAutoReleaseTime", "ecs", "openAPI")
+	return
+}
+
+// CreateModifyDedicatedHostAutoReleaseTimeResponse creates a response to parse from ModifyDedicatedHostAutoReleaseTime response
+func CreateModifyDedicatedHostAutoReleaseTimeResponse() (response *ModifyDedicatedHostAutoReleaseTimeResponse) {
+	response = &ModifyDedicatedHostAutoReleaseTimeResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 111 - 0
services/ecs/modify_dedicated_host_auto_renew_attribute.go

@@ -0,0 +1,111 @@
+package ecs
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// ModifyDedicatedHostAutoRenewAttribute invokes the ecs.ModifyDedicatedHostAutoRenewAttribute API synchronously
+// api document: https://help.aliyun.com/api/ecs/modifydedicatedhostautorenewattribute.html
+func (client *Client) ModifyDedicatedHostAutoRenewAttribute(request *ModifyDedicatedHostAutoRenewAttributeRequest) (response *ModifyDedicatedHostAutoRenewAttributeResponse, err error) {
+	response = CreateModifyDedicatedHostAutoRenewAttributeResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ModifyDedicatedHostAutoRenewAttributeWithChan invokes the ecs.ModifyDedicatedHostAutoRenewAttribute API asynchronously
+// api document: https://help.aliyun.com/api/ecs/modifydedicatedhostautorenewattribute.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ModifyDedicatedHostAutoRenewAttributeWithChan(request *ModifyDedicatedHostAutoRenewAttributeRequest) (<-chan *ModifyDedicatedHostAutoRenewAttributeResponse, <-chan error) {
+	responseChan := make(chan *ModifyDedicatedHostAutoRenewAttributeResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ModifyDedicatedHostAutoRenewAttribute(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ModifyDedicatedHostAutoRenewAttributeWithCallback invokes the ecs.ModifyDedicatedHostAutoRenewAttribute API asynchronously
+// api document: https://help.aliyun.com/api/ecs/modifydedicatedhostautorenewattribute.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ModifyDedicatedHostAutoRenewAttributeWithCallback(request *ModifyDedicatedHostAutoRenewAttributeRequest, callback func(response *ModifyDedicatedHostAutoRenewAttributeResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ModifyDedicatedHostAutoRenewAttributeResponse
+		var err error
+		defer close(result)
+		response, err = client.ModifyDedicatedHostAutoRenewAttribute(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ModifyDedicatedHostAutoRenewAttributeRequest is the request struct for api ModifyDedicatedHostAutoRenewAttribute
+type ModifyDedicatedHostAutoRenewAttributeRequest struct {
+	*requests.RpcRequest
+	Duration             requests.Integer `position:"Query" name:"Duration"`
+	DedicatedHostIds     string           `position:"Query" name:"DedicatedHostIds"`
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	PeriodUnit           string           `position:"Query" name:"PeriodUnit"`
+	AutoRenew            requests.Boolean `position:"Query" name:"AutoRenew"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
+	RenewalStatus        string           `position:"Query" name:"RenewalStatus"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+}
+
+// ModifyDedicatedHostAutoRenewAttributeResponse is the response struct for api ModifyDedicatedHostAutoRenewAttribute
+type ModifyDedicatedHostAutoRenewAttributeResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateModifyDedicatedHostAutoRenewAttributeRequest creates a request to invoke ModifyDedicatedHostAutoRenewAttribute API
+func CreateModifyDedicatedHostAutoRenewAttributeRequest() (request *ModifyDedicatedHostAutoRenewAttributeRequest) {
+	request = &ModifyDedicatedHostAutoRenewAttributeRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyDedicatedHostAutoRenewAttribute", "ecs", "openAPI")
+	return
+}
+
+// CreateModifyDedicatedHostAutoRenewAttributeResponse creates a response to parse from ModifyDedicatedHostAutoRenewAttribute response
+func CreateModifyDedicatedHostAutoRenewAttributeResponse() (response *ModifyDedicatedHostAutoRenewAttributeResponse) {
+	response = &ModifyDedicatedHostAutoRenewAttributeResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 108 - 0
services/ecs/modify_instance_deployment.go

@@ -0,0 +1,108 @@
+package ecs
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// ModifyInstanceDeployment invokes the ecs.ModifyInstanceDeployment API synchronously
+// api document: https://help.aliyun.com/api/ecs/modifyinstancedeployment.html
+func (client *Client) ModifyInstanceDeployment(request *ModifyInstanceDeploymentRequest) (response *ModifyInstanceDeploymentResponse, err error) {
+	response = CreateModifyInstanceDeploymentResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ModifyInstanceDeploymentWithChan invokes the ecs.ModifyInstanceDeployment API asynchronously
+// api document: https://help.aliyun.com/api/ecs/modifyinstancedeployment.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ModifyInstanceDeploymentWithChan(request *ModifyInstanceDeploymentRequest) (<-chan *ModifyInstanceDeploymentResponse, <-chan error) {
+	responseChan := make(chan *ModifyInstanceDeploymentResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ModifyInstanceDeployment(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ModifyInstanceDeploymentWithCallback invokes the ecs.ModifyInstanceDeployment API asynchronously
+// api document: https://help.aliyun.com/api/ecs/modifyinstancedeployment.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ModifyInstanceDeploymentWithCallback(request *ModifyInstanceDeploymentRequest, callback func(response *ModifyInstanceDeploymentResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ModifyInstanceDeploymentResponse
+		var err error
+		defer close(result)
+		response, err = client.ModifyInstanceDeployment(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ModifyInstanceDeploymentRequest is the request struct for api ModifyInstanceDeployment
+type ModifyInstanceDeploymentRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
+	DedicatedHostId      string           `position:"Query" name:"DedicatedHostId"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+	InstanceId           string           `position:"Query" name:"InstanceId"`
+}
+
+// ModifyInstanceDeploymentResponse is the response struct for api ModifyInstanceDeployment
+type ModifyInstanceDeploymentResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateModifyInstanceDeploymentRequest creates a request to invoke ModifyInstanceDeployment API
+func CreateModifyInstanceDeploymentRequest() (request *ModifyInstanceDeploymentRequest) {
+	request = &ModifyInstanceDeploymentRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyInstanceDeployment", "ecs", "openAPI")
+	return
+}
+
+// CreateModifyInstanceDeploymentResponse creates a response to parse from ModifyInstanceDeployment response
+func CreateModifyInstanceDeploymentResponse() (response *ModifyInstanceDeploymentResponse) {
+	response = &ModifyInstanceDeploymentResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 107 - 0
services/ecs/release_dedicated_host.go

@@ -0,0 +1,107 @@
+package ecs
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// ReleaseDedicatedHost invokes the ecs.ReleaseDedicatedHost API synchronously
+// api document: https://help.aliyun.com/api/ecs/releasededicatedhost.html
+func (client *Client) ReleaseDedicatedHost(request *ReleaseDedicatedHostRequest) (response *ReleaseDedicatedHostResponse, err error) {
+	response = CreateReleaseDedicatedHostResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ReleaseDedicatedHostWithChan invokes the ecs.ReleaseDedicatedHost API asynchronously
+// api document: https://help.aliyun.com/api/ecs/releasededicatedhost.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ReleaseDedicatedHostWithChan(request *ReleaseDedicatedHostRequest) (<-chan *ReleaseDedicatedHostResponse, <-chan error) {
+	responseChan := make(chan *ReleaseDedicatedHostResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ReleaseDedicatedHost(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ReleaseDedicatedHostWithCallback invokes the ecs.ReleaseDedicatedHost API asynchronously
+// api document: https://help.aliyun.com/api/ecs/releasededicatedhost.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ReleaseDedicatedHostWithCallback(request *ReleaseDedicatedHostRequest, callback func(response *ReleaseDedicatedHostResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ReleaseDedicatedHostResponse
+		var err error
+		defer close(result)
+		response, err = client.ReleaseDedicatedHost(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ReleaseDedicatedHostRequest is the request struct for api ReleaseDedicatedHost
+type ReleaseDedicatedHostRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
+	DedicatedHostId      string           `position:"Query" name:"DedicatedHostId"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+}
+
+// ReleaseDedicatedHostResponse is the response struct for api ReleaseDedicatedHost
+type ReleaseDedicatedHostResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateReleaseDedicatedHostRequest creates a request to invoke ReleaseDedicatedHost API
+func CreateReleaseDedicatedHostRequest() (request *ReleaseDedicatedHostRequest) {
+	request = &ReleaseDedicatedHostRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ecs", "2014-05-26", "ReleaseDedicatedHost", "ecs", "openAPI")
+	return
+}
+
+// CreateReleaseDedicatedHostResponse creates a response to parse from ReleaseDedicatedHost response
+func CreateReleaseDedicatedHostResponse() (response *ReleaseDedicatedHostResponse) {
+	response = &ReleaseDedicatedHostResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 110 - 0
services/ecs/renew_dedicated_hosts.go

@@ -0,0 +1,110 @@
+package ecs
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// RenewDedicatedHosts invokes the ecs.RenewDedicatedHosts API synchronously
+// api document: https://help.aliyun.com/api/ecs/renewdedicatedhosts.html
+func (client *Client) RenewDedicatedHosts(request *RenewDedicatedHostsRequest) (response *RenewDedicatedHostsResponse, err error) {
+	response = CreateRenewDedicatedHostsResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// RenewDedicatedHostsWithChan invokes the ecs.RenewDedicatedHosts API asynchronously
+// api document: https://help.aliyun.com/api/ecs/renewdedicatedhosts.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) RenewDedicatedHostsWithChan(request *RenewDedicatedHostsRequest) (<-chan *RenewDedicatedHostsResponse, <-chan error) {
+	responseChan := make(chan *RenewDedicatedHostsResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.RenewDedicatedHosts(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// RenewDedicatedHostsWithCallback invokes the ecs.RenewDedicatedHosts API asynchronously
+// api document: https://help.aliyun.com/api/ecs/renewdedicatedhosts.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) RenewDedicatedHostsWithCallback(request *RenewDedicatedHostsRequest, callback func(response *RenewDedicatedHostsResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *RenewDedicatedHostsResponse
+		var err error
+		defer close(result)
+		response, err = client.RenewDedicatedHosts(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// RenewDedicatedHostsRequest is the request struct for api RenewDedicatedHosts
+type RenewDedicatedHostsRequest struct {
+	*requests.RpcRequest
+	DedicatedHostIds     string           `position:"Query" name:"DedicatedHostIds"`
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	ClientToken          string           `position:"Query" name:"ClientToken"`
+	Period               requests.Integer `position:"Query" name:"Period"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+	PeriodUnit           string           `position:"Query" name:"PeriodUnit"`
+}
+
+// RenewDedicatedHostsResponse is the response struct for api RenewDedicatedHosts
+type RenewDedicatedHostsResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateRenewDedicatedHostsRequest creates a request to invoke RenewDedicatedHosts API
+func CreateRenewDedicatedHostsRequest() (request *RenewDedicatedHostsRequest) {
+	request = &RenewDedicatedHostsRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ecs", "2014-05-26", "RenewDedicatedHosts", "ecs", "openAPI")
+	return
+}
+
+// CreateRenewDedicatedHostsResponse creates a response to parse from RenewDedicatedHosts response
+func CreateRenewDedicatedHostsResponse() (response *RenewDedicatedHostsResponse) {
+	response = &RenewDedicatedHostsResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 27 - 0
services/ecs/struct_capacity.go

@@ -0,0 +1,27 @@
+package ecs
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// Capacity is a nested struct in ecs response
+type Capacity struct {
+	TotalVcpus            int     `json:"TotalVcpus" xml:"TotalVcpus"`
+	AvailableVcpus        int     `json:"AvailableVcpus" xml:"AvailableVcpus"`
+	TotalMemory           float64 `json:"TotalMemory" xml:"TotalMemory"`
+	AvailableMemory       float64 `json:"AvailableMemory" xml:"AvailableMemory"`
+	TotalLocalStorage     int     `json:"TotalLocalStorage" xml:"TotalLocalStorage"`
+	AvailableLocalStorage int     `json:"AvailableLocalStorage" xml:"AvailableLocalStorage"`
+	LocalStorageCategory  string  `json:"LocalStorageCategory" xml:"LocalStorageCategory"`
+}

+ 43 - 0
services/ecs/struct_dedicated_host.go

@@ -0,0 +1,43 @@
+package ecs
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// DedicatedHost is a nested struct in ecs response
+type DedicatedHost struct {
+	DedicatedHostId               string                                                `json:"DedicatedHostId" xml:"DedicatedHostId"`
+	RegionId                      string                                                `json:"RegionId" xml:"RegionId"`
+	ZoneId                        string                                                `json:"ZoneId" xml:"ZoneId"`
+	DedicatedHostName             string                                                `json:"DedicatedHostName" xml:"DedicatedHostName"`
+	MachineId                     string                                                `json:"MachineId" xml:"MachineId"`
+	Description                   string                                                `json:"Description" xml:"Description"`
+	DedicatedHostType             string                                                `json:"DedicatedHostType" xml:"DedicatedHostType"`
+	Sockets                       int                                                   `json:"Sockets" xml:"Sockets"`
+	Cores                         int                                                   `json:"Cores" xml:"Cores"`
+	ActionOnMaintenance           string                                                `json:"ActionOnMaintenance" xml:"ActionOnMaintenance"`
+	Status                        string                                                `json:"Status" xml:"Status"`
+	CreationTime                  string                                                `json:"CreationTime" xml:"CreationTime"`
+	ChargeType                    string                                                `json:"ChargeType" xml:"ChargeType"`
+	SaleCycle                     string                                                `json:"SaleCycle" xml:"SaleCycle"`
+	ExpiredTime                   string                                                `json:"ExpiredTime" xml:"ExpiredTime"`
+	AutoReleaseTime               string                                                `json:"AutoReleaseTime" xml:"AutoReleaseTime"`
+	ResourceGroupId               string                                                `json:"ResourceGroupId" xml:"ResourceGroupId"`
+	SupportedInstanceTypeFamilies SupportedInstanceTypeFamiliesInDescribeDedicatedHosts `json:"SupportedInstanceTypeFamilies" xml:"SupportedInstanceTypeFamilies"`
+	Capacity                      Capacity                                              `json:"Capacity" xml:"Capacity"`
+	NetworkAttributes             NetworkAttributes                                     `json:"NetworkAttributes" xml:"NetworkAttributes"`
+	Instances                     InstancesInDescribeDedicatedHosts                     `json:"Instances" xml:"Instances"`
+	OperationLocks                OperationLocksInDescribeDedicatedHosts                `json:"OperationLocks" xml:"OperationLocks"`
+	Tags                          TagsInDescribeDedicatedHosts                          `json:"Tags" xml:"Tags"`
+}

+ 21 - 0
services/ecs/struct_dedicated_host_id_sets.go

@@ -0,0 +1,21 @@
+package ecs
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// DedicatedHostIdSets is a nested struct in ecs response
+type DedicatedHostIdSets struct {
+	DedicatedHostId []string `json:"DedicatedHostId" xml:"DedicatedHostId"`
+}

+ 25 - 0
services/ecs/struct_dedicated_host_renew_attribute.go

@@ -0,0 +1,25 @@
+package ecs
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// DedicatedHostRenewAttribute is a nested struct in ecs response
+type DedicatedHostRenewAttribute struct {
+	DedicatedHostId  string `json:"DedicatedHostId" xml:"DedicatedHostId"`
+	AutoRenewEnabled bool   `json:"AutoRenewEnabled" xml:"AutoRenewEnabled"`
+	Duration         int    `json:"Duration" xml:"Duration"`
+	PeriodUnit       string `json:"PeriodUnit" xml:"PeriodUnit"`
+	RenewalStatus    string `json:"RenewalStatus" xml:"RenewalStatus"`
+}

+ 21 - 0
services/ecs/struct_dedicated_host_renew_attributes.go

@@ -0,0 +1,21 @@
+package ecs
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// DedicatedHostRenewAttributes is a nested struct in ecs response
+type DedicatedHostRenewAttributes struct {
+	DedicatedHostRenewAttribute []DedicatedHostRenewAttribute `json:"DedicatedHostRenewAttribute" xml:"DedicatedHostRenewAttribute"`
+}

+ 29 - 0
services/ecs/struct_dedicated_host_type.go

@@ -0,0 +1,29 @@
+package ecs
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// DedicatedHostType is a nested struct in ecs response
+type DedicatedHostType struct {
+	DedicatedHostType             string                                                    `json:"DedicatedHostType" xml:"DedicatedHostType"`
+	Sockets                       int                                                       `json:"Sockets" xml:"Sockets"`
+	TotalVcpus                    int                                                       `json:"TotalVcpus" xml:"TotalVcpus"`
+	Cores                         int                                                       `json:"Cores" xml:"Cores"`
+	MemorySize                    float64                                                   `json:"MemorySize" xml:"MemorySize"`
+	LocalStorageCapacity          int                                                       `json:"LocalStorageCapacity" xml:"LocalStorageCapacity"`
+	LocalStorageAmount            int                                                       `json:"LocalStorageAmount" xml:"LocalStorageAmount"`
+	LocalStorageCategory          string                                                    `json:"LocalStorageCategory" xml:"LocalStorageCategory"`
+	SupportedInstanceTypeFamilies SupportedInstanceTypeFamiliesInDescribeDedicatedHostTypes `json:"SupportedInstanceTypeFamilies" xml:"SupportedInstanceTypeFamilies"`
+}

+ 21 - 0
services/ecs/struct_dedicated_host_types.go

@@ -0,0 +1,21 @@
+package ecs
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// DedicatedHostTypes is a nested struct in ecs response
+type DedicatedHostTypes struct {
+	DedicatedHostType []DedicatedHostType `json:"DedicatedHostType" xml:"DedicatedHostType"`
+}

+ 21 - 0
services/ecs/struct_dedicated_hosts.go

@@ -0,0 +1,21 @@
+package ecs
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// DedicatedHosts is a nested struct in ecs response
+type DedicatedHosts struct {
+	DedicatedHost []DedicatedHost `json:"DedicatedHost" xml:"DedicatedHost"`
+}

+ 31 - 31
services/ecs/struct_instance.go

@@ -17,54 +17,54 @@ package ecs
 
 // Instance is a nested struct in ecs response
 type Instance struct {
-	InstanceId              string                               `json:"InstanceId" xml:"InstanceId"`
-	InstanceName            string                               `json:"InstanceName" xml:"InstanceName"`
-	Description             string                               `json:"Description" xml:"Description"`
 	ImageId                 string                               `json:"ImageId" xml:"ImageId"`
-	OSName                  string                               `json:"OSName" xml:"OSName"`
-	OSType                  string                               `json:"OSType" xml:"OSType"`
-	RegionId                string                               `json:"RegionId" xml:"RegionId"`
-	ZoneId                  string                               `json:"ZoneId" xml:"ZoneId"`
-	ClusterId               string                               `json:"ClusterId" xml:"ClusterId"`
 	InstanceType            string                               `json:"InstanceType" xml:"InstanceType"`
-	Cpu                     int                                  `json:"Cpu" xml:"Cpu"`
-	Memory                  int                                  `json:"Memory" xml:"Memory"`
+	AutoReleaseTime         string                               `json:"AutoReleaseTime" xml:"AutoReleaseTime"`
+	DeviceAvailable         bool                                 `json:"DeviceAvailable" xml:"DeviceAvailable"`
+	InstanceNetworkType     string                               `json:"InstanceNetworkType" xml:"InstanceNetworkType"`
+	LocalStorageAmount      int                                  `json:"LocalStorageAmount" xml:"LocalStorageAmount"`
+	InstanceChargeType      string                               `json:"InstanceChargeType" xml:"InstanceChargeType"`
+	ClusterId               string                               `json:"ClusterId" xml:"ClusterId"`
+	InstanceName            string                               `json:"InstanceName" xml:"InstanceName"`
+	CreditSpecification     string                               `json:"CreditSpecification" xml:"CreditSpecification"`
+	GPUAmount               int                                  `json:"GPUAmount" xml:"GPUAmount"`
+	StartTime               string                               `json:"StartTime" xml:"StartTime"`
+	ZoneId                  string                               `json:"ZoneId" xml:"ZoneId"`
+	InternetChargeType      string                               `json:"InternetChargeType" xml:"InternetChargeType"`
+	InternetMaxBandwidthIn  int                                  `json:"InternetMaxBandwidthIn" xml:"InternetMaxBandwidthIn"`
 	HostName                string                               `json:"HostName" xml:"HostName"`
+	Cpu                     int                                  `json:"Cpu" xml:"Cpu"`
 	Status                  string                               `json:"Status" xml:"Status"`
+	SpotPriceLimit          float64                              `json:"SpotPriceLimit" xml:"SpotPriceLimit"`
+	OSName                  string                               `json:"OSName" xml:"OSName"`
 	SerialNumber            string                               `json:"SerialNumber" xml:"SerialNumber"`
-	InternetChargeType      string                               `json:"InternetChargeType" xml:"InternetChargeType"`
-	InternetMaxBandwidthIn  int                                  `json:"InternetMaxBandwidthIn" xml:"InternetMaxBandwidthIn"`
+	RegionId                string                               `json:"RegionId" xml:"RegionId"`
 	InternetMaxBandwidthOut int                                  `json:"InternetMaxBandwidthOut" xml:"InternetMaxBandwidthOut"`
-	VlanId                  string                               `json:"VlanId" xml:"VlanId"`
-	CreationTime            string                               `json:"CreationTime" xml:"CreationTime"`
-	StartTime               string                               `json:"StartTime" xml:"StartTime"`
-	InstanceNetworkType     string                               `json:"InstanceNetworkType" xml:"InstanceNetworkType"`
-	InstanceChargeType      string                               `json:"InstanceChargeType" xml:"InstanceChargeType"`
-	SaleCycle               string                               `json:"SaleCycle" xml:"SaleCycle"`
-	ExpiredTime             string                               `json:"ExpiredTime" xml:"ExpiredTime"`
-	AutoReleaseTime         string                               `json:"AutoReleaseTime" xml:"AutoReleaseTime"`
 	IoOptimized             bool                                 `json:"IoOptimized" xml:"IoOptimized"`
-	DeviceAvailable         bool                                 `json:"DeviceAvailable" xml:"DeviceAvailable"`
+	ResourceGroupId         string                               `json:"ResourceGroupId" xml:"ResourceGroupId"`
 	InstanceTypeFamily      string                               `json:"InstanceTypeFamily" xml:"InstanceTypeFamily"`
-	LocalStorageCapacity    int                                  `json:"LocalStorageCapacity" xml:"LocalStorageCapacity"`
-	LocalStorageAmount      int                                  `json:"LocalStorageAmount" xml:"LocalStorageAmount"`
-	GPUAmount               int                                  `json:"GPUAmount" xml:"GPUAmount"`
+	InstanceId              string                               `json:"InstanceId" xml:"InstanceId"`
 	GPUSpec                 string                               `json:"GPUSpec" xml:"GPUSpec"`
-	SpotStrategy            string                               `json:"SpotStrategy" xml:"SpotStrategy"`
-	SpotPriceLimit          float64                              `json:"SpotPriceLimit" xml:"SpotPriceLimit"`
-	ResourceGroupId         string                               `json:"ResourceGroupId" xml:"ResourceGroupId"`
-	KeyPairName             string                               `json:"KeyPairName" xml:"KeyPairName"`
+	Description             string                               `json:"Description" xml:"Description"`
 	Recyclable              bool                                 `json:"Recyclable" xml:"Recyclable"`
+	SaleCycle               string                               `json:"SaleCycle" xml:"SaleCycle"`
+	ExpiredTime             string                               `json:"ExpiredTime" xml:"ExpiredTime"`
+	OSType                  string                               `json:"OSType" xml:"OSType"`
+	Memory                  int                                  `json:"Memory" xml:"Memory"`
+	CreationTime            string                               `json:"CreationTime" xml:"CreationTime"`
+	KeyPairName             string                               `json:"KeyPairName" xml:"KeyPairName"`
 	HpcClusterId            string                               `json:"HpcClusterId" xml:"HpcClusterId"`
+	LocalStorageCapacity    int                                  `json:"LocalStorageCapacity" xml:"LocalStorageCapacity"`
+	VlanId                  string                               `json:"VlanId" xml:"VlanId"`
 	StoppedMode             string                               `json:"StoppedMode" xml:"StoppedMode"`
-	CreditSpecification     string                               `json:"CreditSpecification" xml:"CreditSpecification"`
+	SpotStrategy            string                               `json:"SpotStrategy" xml:"SpotStrategy"`
 	SecurityGroupIds        SecurityGroupIdsInDescribeInstances  `json:"SecurityGroupIds" xml:"SecurityGroupIds"`
-	PublicIpAddress         PublicIpAddressInDescribeInstances   `json:"PublicIpAddress" xml:"PublicIpAddress"`
 	InnerIpAddress          InnerIpAddressInDescribeInstances    `json:"InnerIpAddress" xml:"InnerIpAddress"`
+	PublicIpAddress         PublicIpAddressInDescribeInstances   `json:"PublicIpAddress" xml:"PublicIpAddress"`
 	RdmaIpAddress           RdmaIpAddress                        `json:"RdmaIpAddress" xml:"RdmaIpAddress"`
-	VpcAttributes           VpcAttributes                        `json:"VpcAttributes" xml:"VpcAttributes"`
 	EipAddress              EipAddress                           `json:"EipAddress" xml:"EipAddress"`
 	DedicatedHostAttribute  DedicatedHostAttribute               `json:"DedicatedHostAttribute" xml:"DedicatedHostAttribute"`
+	VpcAttributes           VpcAttributes                        `json:"VpcAttributes" xml:"VpcAttributes"`
 	NetworkInterfaces       NetworkInterfacesInDescribeInstances `json:"NetworkInterfaces" xml:"NetworkInterfaces"`
 	OperationLocks          OperationLocksInDescribeInstances    `json:"OperationLocks" xml:"OperationLocks"`
 	Tags                    TagsInDescribeInstances              `json:"Tags" xml:"Tags"`

+ 21 - 0
services/ecs/struct_instances_in_describe_dedicated_hosts.go

@@ -0,0 +1,21 @@
+package ecs
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// InstancesInDescribeDedicatedHosts is a nested struct in ecs response
+type InstancesInDescribeDedicatedHosts struct {
+	Instance []Instance `json:"Instance" xml:"Instance"`
+}

+ 2 - 2
services/ecs/struct_instances.go → services/ecs/struct_instances_in_describe_instances.go

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

+ 22 - 0
services/ecs/struct_network_attributes.go

@@ -0,0 +1,22 @@
+package ecs
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// NetworkAttributes is a nested struct in ecs response
+type NetworkAttributes struct {
+	SlbUdpTimeout int `json:"SlbUdpTimeout" xml:"SlbUdpTimeout"`
+	UdpTimeout    int `json:"UdpTimeout" xml:"UdpTimeout"`
+}

+ 21 - 0
services/ecs/struct_operation_locks_in_describe_dedicated_hosts.go

@@ -0,0 +1,21 @@
+package ecs
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// OperationLocksInDescribeDedicatedHosts is a nested struct in ecs response
+type OperationLocksInDescribeDedicatedHosts struct {
+	OperationLock []OperationLock `json:"OperationLock" xml:"OperationLock"`
+}

+ 21 - 0
services/ecs/struct_supported_instance_type_families_in_describe_dedicated_host_types.go

@@ -0,0 +1,21 @@
+package ecs
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// SupportedInstanceTypeFamiliesInDescribeDedicatedHostTypes is a nested struct in ecs response
+type SupportedInstanceTypeFamiliesInDescribeDedicatedHostTypes struct {
+	SupportedInstanceTypeFamily []string `json:"SupportedInstanceTypeFamily" xml:"SupportedInstanceTypeFamily"`
+}

+ 21 - 0
services/ecs/struct_supported_instance_type_families_in_describe_dedicated_hosts.go

@@ -0,0 +1,21 @@
+package ecs
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// SupportedInstanceTypeFamiliesInDescribeDedicatedHosts is a nested struct in ecs response
+type SupportedInstanceTypeFamiliesInDescribeDedicatedHosts struct {
+	SupportedInstanceTypeFamily []string `json:"SupportedInstanceTypeFamily" xml:"SupportedInstanceTypeFamily"`
+}

+ 21 - 0
services/ecs/struct_tags_in_describe_dedicated_hosts.go

@@ -0,0 +1,21 @@
+package ecs
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// TagsInDescribeDedicatedHosts is a nested struct in ecs response
+type TagsInDescribeDedicatedHosts struct {
+	Tag []Tag `json:"Tag" xml:"Tag"`
+}