Просмотр исходного кода

由温仰发起的ECS SDK自动发布, BUILD_ID=471, 版本号:1.2.4

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
haowei.yao 7 лет назад
Родитель
Сommit
46af725257

+ 3 - 0
ChangeLog.txt

@@ -1,3 +1,6 @@
+2018-03-16 Version: 1.2.4
+1, Synchronize to the latest api list
+
 2018-03-15 Version: 1.2.4
 1, Synchronize to the latest api list
 

+ 103 - 0
services/ecs/cancel_user_event.go

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

+ 103 - 0
services/ecs/create_user_event.go

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

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

+ 106 - 0
services/ecs/describe_events.go

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

+ 2 - 2
services/ecs/describe_recommend_instance_type.go

@@ -92,8 +92,8 @@ type DescribeRecommendInstanceTypeRequest struct {
 // DescribeRecommendInstanceTypeResponse is the response struct for api DescribeRecommendInstanceType
 type DescribeRecommendInstanceTypeResponse struct {
 	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-	Data      Data   `json:"Data" xml:"Data"`
+	RequestId string                              `json:"RequestId" xml:"RequestId"`
+	Data      DataInDescribeRecommendInstanceType `json:"Data" xml:"Data"`
 }
 
 // CreateDescribeRecommendInstanceTypeRequest creates a request to invoke DescribeRecommendInstanceType API

+ 103 - 0
services/ecs/modify_user_event_attribute.go

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

+ 12 - 12
services/ecs/struct_auto_snapshot_policy.go

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

+ 1 - 1
services/ecs/struct_available_zone.go

@@ -17,8 +17,8 @@ package ecs
 
 // AvailableZone is a nested struct in ecs response
 type AvailableZone struct {
-	ZoneId             string                                            `json:"ZoneId" xml:"ZoneId"`
 	RegionId           string                                            `json:"RegionId" xml:"RegionId"`
+	ZoneId             string                                            `json:"ZoneId" xml:"ZoneId"`
 	Status             string                                            `json:"Status" xml:"Status"`
 	AvailableResources AvailableResourcesInDescribeResourcesModification `json:"AvailableResources" xml:"AvailableResources"`
 }

+ 21 - 0
services/ecs/struct_data_in_describe_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.
+
+// DataInDescribeEvents is a nested struct in ecs response
+type DataInDescribeEvents struct {
+	Events []Events `json:"Events" xml:"Events"`
+}

+ 2 - 2
services/ecs/struct_data.go → services/ecs/struct_data_in_describe_recommend_instance_type.go

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

+ 2 - 2
services/ecs/struct_eip_address.go

@@ -17,9 +17,9 @@ package ecs
 
 // EipAddress is a nested struct in ecs response
 type EipAddress struct {
+	Bandwidth            int    `json:"Bandwidth" xml:"Bandwidth"`
 	IsSupportUnassociate bool   `json:"IsSupportUnassociate" xml:"IsSupportUnassociate"`
+	IpAddress            string `json:"IpAddress" xml:"IpAddress"`
 	InternetChargeType   string `json:"InternetChargeType" xml:"InternetChargeType"`
 	AllocationId         string `json:"AllocationId" xml:"AllocationId"`
-	Bandwidth            int    `json:"Bandwidth" xml:"Bandwidth"`
-	IpAddress            string `json:"IpAddress" xml:"IpAddress"`
 }

+ 3 - 3
services/ecs/struct_eip_monitor_data.go

@@ -17,10 +17,10 @@ package ecs
 
 // EipMonitorData is a nested struct in ecs response
 type EipMonitorData struct {
-	EipRX        int    `json:"EipRX" xml:"EipRX"`
-	EipTX        int    `json:"EipTX" xml:"EipTX"`
 	EipPackets   int    `json:"EipPackets" xml:"EipPackets"`
-	EipBandwidth int    `json:"EipBandwidth" xml:"EipBandwidth"`
 	TimeStamp    string `json:"TimeStamp" xml:"TimeStamp"`
 	EipFlow      int    `json:"EipFlow" xml:"EipFlow"`
+	EipRX        int    `json:"EipRX" xml:"EipRX"`
+	EipBandwidth int    `json:"EipBandwidth" xml:"EipBandwidth"`
+	EipTX        int    `json:"EipTX" xml:"EipTX"`
 }

+ 1 - 1
services/ecs/struct_event_type.go

@@ -17,6 +17,6 @@ package ecs
 
 // EventType is a nested struct in ecs response
 type EventType struct {
-	Code int    `json:"Code" xml:"Code"`
 	Name string `json:"Name" xml:"Name"`
+	Code int    `json:"Code" xml:"Code"`
 }

+ 28 - 0
services/ecs/struct_events.go

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

+ 1 - 1
services/ecs/struct_health_status.go

@@ -17,6 +17,6 @@ package ecs
 
 // HealthStatus is a nested struct in ecs response
 type HealthStatus struct {
-	Code int    `json:"Code" xml:"Code"`
 	Name string `json:"Name" xml:"Name"`
+	Code int    `json:"Code" xml:"Code"`
 }

+ 1 - 1
services/ecs/struct_instance_ram_role_set.go

@@ -17,6 +17,6 @@ package ecs
 
 // InstanceRamRoleSet is a nested struct in ecs response
 type InstanceRamRoleSet struct {
-	RamRoleName string `json:"RamRoleName" xml:"RamRoleName"`
 	InstanceId  string `json:"InstanceId" xml:"InstanceId"`
+	RamRoleName string `json:"RamRoleName" xml:"RamRoleName"`
 }

+ 12 - 12
services/ecs/struct_instance_type.go

@@ -17,23 +17,23 @@ package ecs
 
 // InstanceType is a nested struct in ecs response
 type InstanceType struct {
-	InstanceTypeFamily   string  `json:"InstanceTypeFamily" xml:"InstanceTypeFamily"`
+	MemorySize           float64 `json:"MemorySize" xml:"MemorySize"`
+	CpuCoreCount         int     `json:"CpuCoreCount" xml:"CpuCoreCount"`
+	Cores                int     `json:"Cores" xml:"Cores"`
+	Memory               int     `json:"Memory" xml:"Memory"`
+	InstanceTypeId       string  `json:"InstanceTypeId" xml:"InstanceTypeId"`
 	InstanceBandwidthRx  int     `json:"InstanceBandwidthRx" xml:"InstanceBandwidthRx"`
+	InstanceType         string  `json:"InstanceType" xml:"InstanceType"`
+	BaselineCredit       int     `json:"BaselineCredit" xml:"BaselineCredit"`
+	EniQuantity          int     `json:"EniQuantity" xml:"EniQuantity"`
+	Generation           string  `json:"Generation" xml:"Generation"`
+	GPUAmount            int     `json:"GPUAmount" xml:"GPUAmount"`
 	SupportIoOptimized   string  `json:"SupportIoOptimized" xml:"SupportIoOptimized"`
-	Cores                int     `json:"Cores" xml:"Cores"`
+	InstanceTypeFamily   string  `json:"InstanceTypeFamily" xml:"InstanceTypeFamily"`
 	InitialCredit        int     `json:"InitialCredit" xml:"InitialCredit"`
-	GPUAmount            int     `json:"GPUAmount" xml:"GPUAmount"`
-	Memory               int     `json:"Memory" xml:"Memory"`
 	LocalStorageAmount   int     `json:"LocalStorageAmount" xml:"LocalStorageAmount"`
-	EniQuantity          int     `json:"EniQuantity" xml:"EniQuantity"`
 	LocalStorageCapacity int     `json:"LocalStorageCapacity" xml:"LocalStorageCapacity"`
-	Generation           string  `json:"Generation" xml:"Generation"`
-	CpuCoreCount         int     `json:"CpuCoreCount" xml:"CpuCoreCount"`
-	InstanceBandwidthTx  int     `json:"InstanceBandwidthTx" xml:"InstanceBandwidthTx"`
-	MemorySize           float64 `json:"MemorySize" xml:"MemorySize"`
-	InstanceType         string  `json:"InstanceType" xml:"InstanceType"`
-	InstanceTypeId       string  `json:"InstanceTypeId" xml:"InstanceTypeId"`
-	BaselineCredit       int     `json:"BaselineCredit" xml:"BaselineCredit"`
 	GPUSpec              string  `json:"GPUSpec" xml:"GPUSpec"`
 	LocalStorageCategory string  `json:"LocalStorageCategory" xml:"LocalStorageCategory"`
+	InstanceBandwidthTx  int     `json:"InstanceBandwidthTx" xml:"InstanceBandwidthTx"`
 }

+ 6 - 6
services/ecs/struct_invocation.go

@@ -17,16 +17,16 @@ package ecs
 
 // Invocation is a nested struct in ecs response
 type Invocation struct {
-	TotalCount        int               `json:"TotalCount" xml:"TotalCount"`
-	Timed             bool              `json:"Timed" xml:"Timed"`
+	CommandId         string            `json:"CommandId" xml:"CommandId"`
+	PageNumber        int               `json:"PageNumber" xml:"PageNumber"`
 	CommandName       string            `json:"CommandName" xml:"CommandName"`
+	TotalCount        int               `json:"TotalCount" xml:"TotalCount"`
 	PageSize          int               `json:"PageSize" xml:"PageSize"`
-	PageNumber        int               `json:"PageNumber" xml:"PageNumber"`
 	InvokeId          string            `json:"InvokeId" xml:"InvokeId"`
 	InvokeStatus      string            `json:"InvokeStatus" xml:"InvokeStatus"`
-	CommandType       string            `json:"CommandType" xml:"CommandType"`
+	Timed             bool              `json:"Timed" xml:"Timed"`
 	Frequency         string            `json:"Frequency" xml:"Frequency"`
-	CommandId         string            `json:"CommandId" xml:"CommandId"`
-	InvokeInstances   InvokeInstances   `json:"InvokeInstances" xml:"InvokeInstances"`
+	CommandType       string            `json:"CommandType" xml:"CommandType"`
 	InvocationResults InvocationResults `json:"InvocationResults" xml:"InvocationResults"`
+	InvokeInstances   InvokeInstances   `json:"InvokeInstances" xml:"InvokeInstances"`
 }

+ 2 - 2
services/ecs/struct_price.go

@@ -17,8 +17,8 @@ package ecs
 
 // Price is a nested struct in ecs response
 type Price struct {
-	Currency      string  `json:"Currency" xml:"Currency"`
-	OriginalPrice float64 `json:"OriginalPrice" xml:"OriginalPrice"`
 	DiscountPrice float64 `json:"DiscountPrice" xml:"DiscountPrice"`
 	TradePrice    float64 `json:"TradePrice" xml:"TradePrice"`
+	OriginalPrice float64 `json:"OriginalPrice" xml:"OriginalPrice"`
+	Currency      string  `json:"Currency" xml:"Currency"`
 }

+ 1 - 1
services/ecs/struct_result.go

@@ -17,8 +17,8 @@ package ecs
 
 // Result is a nested struct in ecs response
 type Result struct {
-	Success    string `json:"Success" xml:"Success"`
 	Message    string `json:"Message" xml:"Message"`
+	Success    string `json:"Success" xml:"Success"`
 	Code       string `json:"Code" xml:"Code"`
 	InstanceId string `json:"InstanceId" xml:"InstanceId"`
 }

+ 1 - 1
services/ecs/struct_status.go

@@ -17,6 +17,6 @@ package ecs
 
 // Status is a nested struct in ecs response
 type Status struct {
-	Code int    `json:"Code" xml:"Code"`
 	Name string `json:"Name" xml:"Name"`
+	Code int    `json:"Code" xml:"Code"`
 }

+ 3 - 3
services/ecs/struct_supported_resource.go

@@ -17,9 +17,9 @@ package ecs
 
 // SupportedResource is a nested struct in ecs response
 type SupportedResource struct {
-	Unit   string `json:"Unit" xml:"Unit"`
-	Max    int    `json:"Max" xml:"Max"`
 	Value  string `json:"Value" xml:"Value"`
-	Min    int    `json:"Min" xml:"Min"`
+	Max    int    `json:"Max" xml:"Max"`
+	Unit   string `json:"Unit" xml:"Unit"`
 	Status string `json:"Status" xml:"Status"`
+	Min    int    `json:"Min" xml:"Min"`
 }

+ 2 - 2
services/ecs/struct_vpc_attributes.go

@@ -17,8 +17,8 @@ package ecs
 
 // VpcAttributes is a nested struct in ecs response
 type VpcAttributes struct {
-	NatIpAddress     string                              `json:"NatIpAddress" xml:"NatIpAddress"`
-	VpcId            string                              `json:"VpcId" xml:"VpcId"`
 	VSwitchId        string                              `json:"VSwitchId" xml:"VSwitchId"`
+	VpcId            string                              `json:"VpcId" xml:"VpcId"`
+	NatIpAddress     string                              `json:"NatIpAddress" xml:"NatIpAddress"`
 	PrivateIpAddress PrivateIpAddressInDescribeInstances `json:"PrivateIpAddress" xml:"PrivateIpAddress"`
 }

+ 4 - 4
services/ecs/struct_zone.go

@@ -17,13 +17,13 @@ package ecs
 
 // Zone is a nested struct in ecs response
 type Zone struct {
-	ZoneId                    string                                      `json:"ZoneId" xml:"ZoneId"`
 	ZoneNo                    string                                      `json:"ZoneNo" xml:"ZoneNo"`
+	ZoneId                    string                                      `json:"ZoneId" xml:"ZoneId"`
 	LocalName                 string                                      `json:"LocalName" xml:"LocalName"`
+	AvailableResourceCreation AvailableResourceCreation                   `json:"AvailableResourceCreation" xml:"AvailableResourceCreation"`
+	AvailableVolumeCategories AvailableVolumeCategories                   `json:"AvailableVolumeCategories" xml:"AvailableVolumeCategories"`
+	AvailableInstanceTypes    AvailableInstanceTypes                      `json:"AvailableInstanceTypes" xml:"AvailableInstanceTypes"`
 	NetworkTypes              NetworkTypesInDescribeRecommendInstanceType `json:"NetworkTypes" xml:"NetworkTypes"`
 	AvailableDiskCategories   AvailableDiskCategories                     `json:"AvailableDiskCategories" xml:"AvailableDiskCategories"`
-	AvailableInstanceTypes    AvailableInstanceTypes                      `json:"AvailableInstanceTypes" xml:"AvailableInstanceTypes"`
-	AvailableVolumeCategories AvailableVolumeCategories                   `json:"AvailableVolumeCategories" xml:"AvailableVolumeCategories"`
-	AvailableResourceCreation AvailableResourceCreation                   `json:"AvailableResourceCreation" xml:"AvailableResourceCreation"`
 	AvailableResources        AvailableResourcesInDescribeZones           `json:"AvailableResources" xml:"AvailableResources"`
 }