Jelajahi Sumber

Generated 2014-05-26 for Ecs.

sdk-team 5 tahun lalu
induk
melakukan
f9bd140961

+ 6 - 0
ChangeLog.txt

@@ -1,3 +1,9 @@
+2020-01-13 Version: v1.60.328
+- Generated 2014-05-26 for `Ecs`.
+- Supported InstanceMaintenanceAtrributes for maintening the attributes of instances.
+- Deleted MaintenanceProperty.
+- Supported RedeployDedicatedHost for redeploying dedicated host in under-assessment status.
+
 2020-01-10 Version: v1.60.327
 - Generated 2017-08-01 for `polardb`.
 - Return `ConsistentTime` for DescribeBackups.

+ 0 - 110
services/ecs/create_maintenance_property.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"
-)
-
-// CreateMaintenanceProperty invokes the ecs.CreateMaintenanceProperty API synchronously
-// api document: https://help.aliyun.com/api/ecs/createmaintenanceproperty.html
-func (client *Client) CreateMaintenanceProperty(request *CreateMaintenancePropertyRequest) (response *CreateMaintenancePropertyResponse, err error) {
-	response = CreateCreateMaintenancePropertyResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// CreateMaintenancePropertyWithChan invokes the ecs.CreateMaintenanceProperty API asynchronously
-// api document: https://help.aliyun.com/api/ecs/createmaintenanceproperty.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) CreateMaintenancePropertyWithChan(request *CreateMaintenancePropertyRequest) (<-chan *CreateMaintenancePropertyResponse, <-chan error) {
-	responseChan := make(chan *CreateMaintenancePropertyResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.CreateMaintenanceProperty(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// CreateMaintenancePropertyWithCallback invokes the ecs.CreateMaintenanceProperty API asynchronously
-// api document: https://help.aliyun.com/api/ecs/createmaintenanceproperty.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) CreateMaintenancePropertyWithCallback(request *CreateMaintenancePropertyRequest, callback func(response *CreateMaintenancePropertyResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *CreateMaintenancePropertyResponse
-		var err error
-		defer close(result)
-		response, err = client.CreateMaintenanceProperty(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// CreateMaintenancePropertyRequest is the request struct for api CreateMaintenanceProperty
-type CreateMaintenancePropertyRequest struct {
-	*requests.RpcRequest
-	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
-	StartTime            string           `position:"Query" name:"StartTime"`
-	ActionOnMaintenance  string           `position:"Query" name:"ActionOnMaintenance"`
-	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
-	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
-	EndTime              string           `position:"Query" name:"EndTime"`
-	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
-	InstanceId           *[]string        `position:"Query" name:"InstanceId"  type:"Repeated"`
-}
-
-// CreateMaintenancePropertyResponse is the response struct for api CreateMaintenanceProperty
-type CreateMaintenancePropertyResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-}
-
-// CreateCreateMaintenancePropertyRequest creates a request to invoke CreateMaintenanceProperty API
-func CreateCreateMaintenancePropertyRequest() (request *CreateMaintenancePropertyRequest) {
-	request = &CreateMaintenancePropertyRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("Ecs", "2014-05-26", "CreateMaintenanceProperty", "ecs", "openAPI")
-	return
-}
-
-// CreateCreateMaintenancePropertyResponse creates a response to parse from CreateMaintenanceProperty response
-func CreateCreateMaintenancePropertyResponse() (response *CreateMaintenancePropertyResponse) {
-	response = &CreateMaintenancePropertyResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 17 - 15
services/ecs/create_network_interface.go

@@ -76,21 +76,23 @@ func (client *Client) CreateNetworkInterfaceWithCallback(request *CreateNetworkI
 // CreateNetworkInterfaceRequest is the request struct for api CreateNetworkInterface
 type CreateNetworkInterfaceRequest struct {
 	*requests.RpcRequest
-	ResourceOwnerId      requests.Integer             `position:"Query" name:"ResourceOwnerId"`
-	ClientToken          string                       `position:"Query" name:"ClientToken"`
-	SecurityGroupId      string                       `position:"Query" name:"SecurityGroupId"`
-	Description          string                       `position:"Query" name:"Description"`
-	BusinessType         string                       `position:"Query" name:"BusinessType"`
-	ResourceGroupId      string                       `position:"Query" name:"ResourceGroupId"`
-	Tag                  *[]CreateNetworkInterfaceTag `position:"Query" name:"Tag"  type:"Repeated"`
-	NetworkInterfaceName string                       `position:"Query" name:"NetworkInterfaceName"`
-	Visible              requests.Boolean             `position:"Query" name:"Visible"`
-	ResourceOwnerAccount string                       `position:"Query" name:"ResourceOwnerAccount"`
-	OwnerAccount         string                       `position:"Query" name:"OwnerAccount"`
-	OwnerId              requests.Integer             `position:"Query" name:"OwnerId"`
-	SecurityGroupIds     *[]string                    `position:"Query" name:"SecurityGroupIds"  type:"Repeated"`
-	VSwitchId            string                       `position:"Query" name:"VSwitchId"`
-	PrimaryIpAddress     string                       `position:"Query" name:"PrimaryIpAddress"`
+	ResourceOwnerId                requests.Integer             `position:"Query" name:"ResourceOwnerId"`
+	ClientToken                    string                       `position:"Query" name:"ClientToken"`
+	SecurityGroupId                string                       `position:"Query" name:"SecurityGroupId"`
+	Description                    string                       `position:"Query" name:"Description"`
+	SecondaryPrivateIpAddressCount requests.Integer             `position:"Query" name:"SecondaryPrivateIpAddressCount"`
+	BusinessType                   string                       `position:"Query" name:"BusinessType"`
+	ResourceGroupId                string                       `position:"Query" name:"ResourceGroupId"`
+	Tag                            *[]CreateNetworkInterfaceTag `position:"Query" name:"Tag"  type:"Repeated"`
+	NetworkInterfaceName           string                       `position:"Query" name:"NetworkInterfaceName"`
+	Visible                        requests.Boolean             `position:"Query" name:"Visible"`
+	ResourceOwnerAccount           string                       `position:"Query" name:"ResourceOwnerAccount"`
+	OwnerAccount                   string                       `position:"Query" name:"OwnerAccount"`
+	OwnerId                        requests.Integer             `position:"Query" name:"OwnerId"`
+	SecurityGroupIds               *[]string                    `position:"Query" name:"SecurityGroupIds"  type:"Repeated"`
+	VSwitchId                      string                       `position:"Query" name:"VSwitchId"`
+	PrivateIpAddress               *[]string                    `position:"Query" name:"PrivateIpAddress"  type:"Repeated"`
+	PrimaryIpAddress               string                       `position:"Query" name:"PrimaryIpAddress"`
 }
 
 // CreateNetworkInterfaceTag is a repeated param struct in CreateNetworkInterfaceRequest

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

+ 113 - 0
services/ecs/describe_instance_maintenance_attributes.go

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

+ 0 - 113
services/ecs/describe_maintenance_property.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"
-)
-
-// DescribeMaintenanceProperty invokes the ecs.DescribeMaintenanceProperty API synchronously
-// api document: https://help.aliyun.com/api/ecs/describemaintenanceproperty.html
-func (client *Client) DescribeMaintenanceProperty(request *DescribeMaintenancePropertyRequest) (response *DescribeMaintenancePropertyResponse, err error) {
-	response = CreateDescribeMaintenancePropertyResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// DescribeMaintenancePropertyWithChan invokes the ecs.DescribeMaintenanceProperty API asynchronously
-// api document: https://help.aliyun.com/api/ecs/describemaintenanceproperty.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeMaintenancePropertyWithChan(request *DescribeMaintenancePropertyRequest) (<-chan *DescribeMaintenancePropertyResponse, <-chan error) {
-	responseChan := make(chan *DescribeMaintenancePropertyResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.DescribeMaintenanceProperty(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// DescribeMaintenancePropertyWithCallback invokes the ecs.DescribeMaintenanceProperty API asynchronously
-// api document: https://help.aliyun.com/api/ecs/describemaintenanceproperty.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeMaintenancePropertyWithCallback(request *DescribeMaintenancePropertyRequest, callback func(response *DescribeMaintenancePropertyResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *DescribeMaintenancePropertyResponse
-		var err error
-		defer close(result)
-		response, err = client.DescribeMaintenanceProperty(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// DescribeMaintenancePropertyRequest is the request struct for api DescribeMaintenanceProperty
-type DescribeMaintenancePropertyRequest struct {
-	*requests.RpcRequest
-	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
-	PageNumber           requests.Integer `position:"Query" name:"PageNumber"`
-	PageSize             requests.Integer `position:"Query" name:"PageSize"`
-	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
-	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
-	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
-	InstanceId           *[]string        `position:"Query" name:"InstanceId"  type:"Repeated"`
-}
-
-// DescribeMaintenancePropertyResponse is the response struct for api DescribeMaintenanceProperty
-type DescribeMaintenancePropertyResponse 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"`
-	MaintenancePropertySet MaintenancePropertySet `json:"MaintenancePropertySet" xml:"MaintenancePropertySet"`
-}
-
-// CreateDescribeMaintenancePropertyRequest creates a request to invoke DescribeMaintenanceProperty API
-func CreateDescribeMaintenancePropertyRequest() (request *DescribeMaintenancePropertyRequest) {
-	request = &DescribeMaintenancePropertyRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("Ecs", "2014-05-26", "DescribeMaintenanceProperty", "ecs", "openAPI")
-	return
-}
-
-// CreateDescribeMaintenancePropertyResponse creates a response to parse from DescribeMaintenanceProperty response
-func CreateDescribeMaintenancePropertyResponse() (response *DescribeMaintenancePropertyResponse) {
-	response = &DescribeMaintenancePropertyResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 115 - 0
services/ecs/modify_instance_maintenance_attributes.go

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

+ 0 - 110
services/ecs/modify_maintenance_property.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"
-)
-
-// ModifyMaintenanceProperty invokes the ecs.ModifyMaintenanceProperty API synchronously
-// api document: https://help.aliyun.com/api/ecs/modifymaintenanceproperty.html
-func (client *Client) ModifyMaintenanceProperty(request *ModifyMaintenancePropertyRequest) (response *ModifyMaintenancePropertyResponse, err error) {
-	response = CreateModifyMaintenancePropertyResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// ModifyMaintenancePropertyWithChan invokes the ecs.ModifyMaintenanceProperty API asynchronously
-// api document: https://help.aliyun.com/api/ecs/modifymaintenanceproperty.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) ModifyMaintenancePropertyWithChan(request *ModifyMaintenancePropertyRequest) (<-chan *ModifyMaintenancePropertyResponse, <-chan error) {
-	responseChan := make(chan *ModifyMaintenancePropertyResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.ModifyMaintenanceProperty(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// ModifyMaintenancePropertyWithCallback invokes the ecs.ModifyMaintenanceProperty API asynchronously
-// api document: https://help.aliyun.com/api/ecs/modifymaintenanceproperty.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) ModifyMaintenancePropertyWithCallback(request *ModifyMaintenancePropertyRequest, callback func(response *ModifyMaintenancePropertyResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *ModifyMaintenancePropertyResponse
-		var err error
-		defer close(result)
-		response, err = client.ModifyMaintenanceProperty(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// ModifyMaintenancePropertyRequest is the request struct for api ModifyMaintenanceProperty
-type ModifyMaintenancePropertyRequest struct {
-	*requests.RpcRequest
-	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
-	StartTime            string           `position:"Query" name:"StartTime"`
-	ActionOnMaintenance  string           `position:"Query" name:"ActionOnMaintenance"`
-	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
-	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
-	EndTime              string           `position:"Query" name:"EndTime"`
-	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
-	InstanceId           *[]string        `position:"Query" name:"InstanceId"  type:"Repeated"`
-}
-
-// ModifyMaintenancePropertyResponse is the response struct for api ModifyMaintenanceProperty
-type ModifyMaintenancePropertyResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-}
-
-// CreateModifyMaintenancePropertyRequest creates a request to invoke ModifyMaintenanceProperty API
-func CreateModifyMaintenancePropertyRequest() (request *ModifyMaintenancePropertyRequest) {
-	request = &ModifyMaintenancePropertyRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("Ecs", "2014-05-26", "ModifyMaintenanceProperty", "ecs", "openAPI")
-	return
-}
-
-// CreateModifyMaintenancePropertyResponse creates a response to parse from ModifyMaintenanceProperty response
-func CreateModifyMaintenancePropertyResponse() (response *ModifyMaintenancePropertyResponse) {
-	response = &ModifyMaintenancePropertyResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 1 - 0
services/ecs/modify_prepay_instance_spec.go

@@ -84,6 +84,7 @@ type ModifyPrepayInstanceSpecRequest struct {
 	MigrateAcrossZone    requests.Boolean `position:"Query" name:"MigrateAcrossZone"`
 	InstanceType         string           `position:"Query" name:"InstanceType"`
 	AutoPay              requests.Boolean `position:"Query" name:"AutoPay"`
+	RebootWhenFinished   requests.Boolean `position:"Query" name:"RebootWhenFinished"`
 	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
 	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
 	EndTime              string           `position:"Query" name:"EndTime"`

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

+ 5 - 6
services/ecs/struct_maintenance_property.go → services/ecs/struct_action_on_maintenance.go

@@ -15,10 +15,9 @@ package ecs
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-// MaintenanceProperty is a nested struct in ecs response
-type MaintenanceProperty struct {
-	InstanceId          string `json:"InstanceId" xml:"InstanceId"`
-	StartTime           string `json:"StartTime" xml:"StartTime"`
-	EndTime             string `json:"EndTime" xml:"EndTime"`
-	ActionOnMaintenance string `json:"ActionOnMaintenance" xml:"ActionOnMaintenance"`
+// ActionOnMaintenance is a nested struct in ecs response
+type ActionOnMaintenance struct {
+	Value           string          `json:"Value" xml:"Value"`
+	DefaultValue    string          `json:"DefaultValue" xml:"DefaultValue"`
+	SupportedValues SupportedValues `json:"SupportedValues" xml:"SupportedValues"`
 }

+ 1 - 0
services/ecs/struct_command.go

@@ -24,6 +24,7 @@ type Command struct {
 	CommandContent  string         `json:"CommandContent" xml:"CommandContent"`
 	WorkingDir      string         `json:"WorkingDir" xml:"WorkingDir"`
 	Timeout         int64          `json:"Timeout" xml:"Timeout"`
+	InvokeTimes     int            `json:"InvokeTimes" xml:"InvokeTimes"`
 	CreationTime    string         `json:"CreationTime" xml:"CreationTime"`
 	EnableParameter bool           `json:"EnableParameter" xml:"EnableParameter"`
 	ParameterNames  ParameterNames `json:"ParameterNames" xml:"ParameterNames"`

+ 3 - 2
services/ecs/struct_extended_attribute.go

@@ -17,6 +17,7 @@ package ecs
 
 // ExtendedAttribute is a nested struct in ecs response
 type ExtendedAttribute struct {
-	Device string `json:"Device" xml:"Device"`
-	DiskId string `json:"DiskId" xml:"DiskId"`
+	Device        string                                       `json:"Device" xml:"Device"`
+	DiskId        string                                       `json:"DiskId" xml:"DiskId"`
+	InactiveDisks InactiveDisksInDescribeInstanceHistoryEvents `json:"InactiveDisks" xml:"InactiveDisks"`
 }

+ 25 - 0
services/ecs/struct_inactive_disk.go

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

+ 21 - 0
services/ecs/struct_inactive_disks_in_describe_instance_history_events.go

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

+ 21 - 0
services/ecs/struct_inactive_disks_in_describe_instances_full_status.go

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

+ 1 - 0
services/ecs/struct_invocation.go

@@ -22,6 +22,7 @@ type Invocation struct {
 	TotalCount        int64             `json:"TotalCount" xml:"TotalCount"`
 	PageSize          int64             `json:"PageSize" xml:"PageSize"`
 	Timed             bool              `json:"Timed" xml:"Timed"`
+	CreationTime      string            `json:"CreationTime" xml:"CreationTime"`
 	Frequency         string            `json:"Frequency" xml:"Frequency"`
 	CommandName       string            `json:"CommandName" xml:"CommandName"`
 	Parameters        string            `json:"Parameters" xml:"Parameters"`

+ 7 - 0
services/ecs/struct_invoke_instance.go

@@ -18,10 +18,17 @@ package ecs
 // InvokeInstance is a nested struct in ecs response
 type InvokeInstance struct {
 	InstanceId           string `json:"InstanceId" xml:"InstanceId"`
+	Repeats              int    `json:"Repeats" xml:"Repeats"`
 	InstanceInvokeStatus string `json:"InstanceInvokeStatus" xml:"InstanceInvokeStatus"`
+	InvocationStatus     string `json:"InvocationStatus" xml:"InvocationStatus"`
 	Output               string `json:"Output" xml:"Output"`
 	ExitCode             int64  `json:"ExitCode" xml:"ExitCode"`
+	Dropped              int    `json:"Dropped" xml:"Dropped"`
+	ErrorCode            string `json:"ErrorCode" xml:"ErrorCode"`
+	ErrorInfo            string `json:"ErrorInfo" xml:"ErrorInfo"`
 	CreationTime         string `json:"CreationTime" xml:"CreationTime"`
 	StartTime            string `json:"StartTime" xml:"StartTime"`
+	StopTime             string `json:"StopTime" xml:"StopTime"`
 	FinishTime           string `json:"FinishTime" xml:"FinishTime"`
+	UpdateTime           string `json:"UpdateTime" xml:"UpdateTime"`
 }

+ 23 - 0
services/ecs/struct_maintenance_attribute.go

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

+ 21 - 0
services/ecs/struct_maintenance_attributes.go

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

+ 4 - 3
services/ecs/struct_maintenance_property_set.go → services/ecs/struct_maintenance_window.go

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

+ 21 - 0
services/ecs/struct_maintenance_windows.go

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

+ 21 - 0
services/ecs/struct_supported_values.go

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