Browse Source

ECS SDK Auto Released By wenle.bwl,Version:1.51.0

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
haowei.yao 6 years ago
parent
commit
5898f5c3e5

+ 5 - 0
ChangeLog.txt

@@ -1,3 +1,8 @@
+2019-01-17 Version: 1.51.0
+1, Add api AcceptInquiredSystemEvent.
+2, Add ExtendedAttribute to response of api DescribeInstanceHistoryEvents.
+3, Add ExtendedAttribute to response of api DescribeInstancesFullStatus.
+
 2019-01-16 Version: 1.50.10
 1, The plugin feature is released and supports a variety of plugins, as follows:trafficControl、backendSignature、ipControl、jwtAuth、cors、caching
 

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

+ 1 - 0
services/ecs/allocate_eip_address.go

@@ -81,6 +81,7 @@ type AllocateEipAddressRequest struct {
 	Bandwidth            string           `position:"Query" name:"Bandwidth"`
 	ClientToken          string           `position:"Query" name:"ClientToken"`
 	InternetChargeType   string           `position:"Query" name:"InternetChargeType"`
+	ISP                  string           `position:"Query" name:"ISP"`
 	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
 	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
 }

+ 2 - 0
services/ecs/create_launch_template.go

@@ -105,6 +105,7 @@ type CreateLaunchTemplateRequest struct {
 	Description                 string                                  `position:"Query" name:"Description"`
 	SystemDiskCategory          string                                  `position:"Query" name:"SystemDisk.Category"`
 	UserData                    string                                  `position:"Query" name:"UserData"`
+	PasswordInherit             requests.Boolean                        `position:"Query" name:"PasswordInherit"`
 	InstanceType                string                                  `position:"Query" name:"InstanceType"`
 	InstanceChargeType          string                                  `position:"Query" name:"InstanceChargeType"`
 	EnableVmOsConfig            requests.Boolean                        `position:"Query" name:"EnableVmOsConfig"`
@@ -151,6 +152,7 @@ type CreateLaunchTemplateDataDisk struct {
 	DiskName           string `name:"DiskName"`
 	Description        string `name:"Description"`
 	DeleteWithInstance string `name:"DeleteWithInstance"`
+	Device             string `name:"Device"`
 }
 
 // CreateLaunchTemplateResponse is the response struct for api CreateLaunchTemplate

+ 2 - 0
services/ecs/create_launch_template_version.go

@@ -104,6 +104,7 @@ type CreateLaunchTemplateVersionRequest struct {
 	Description                 string                                         `position:"Query" name:"Description"`
 	SystemDiskCategory          string                                         `position:"Query" name:"SystemDisk.Category"`
 	UserData                    string                                         `position:"Query" name:"UserData"`
+	PasswordInherit             requests.Boolean                               `position:"Query" name:"PasswordInherit"`
 	InstanceType                string                                         `position:"Query" name:"InstanceType"`
 	InstanceChargeType          string                                         `position:"Query" name:"InstanceChargeType"`
 	EnableVmOsConfig            requests.Boolean                               `position:"Query" name:"EnableVmOsConfig"`
@@ -144,6 +145,7 @@ type CreateLaunchTemplateVersionDataDisk struct {
 	DiskName           string `name:"DiskName"`
 	Description        string `name:"Description"`
 	DeleteWithInstance string `name:"DeleteWithInstance"`
+	Device             string `name:"Device"`
 }
 
 // CreateLaunchTemplateVersionResponse is the response struct for api CreateLaunchTemplateVersion

+ 1 - 0
services/ecs/describe_eip_addresses.go

@@ -79,6 +79,7 @@ type DescribeEipAddressesRequest struct {
 	ResourceOwnerId        requests.Integer `position:"Query" name:"ResourceOwnerId"`
 	ResourceOwnerAccount   string           `position:"Query" name:"ResourceOwnerAccount"`
 	Filter2Value           string           `position:"Query" name:"Filter.2.Value"`
+	ISP                    string           `position:"Query" name:"ISP"`
 	OwnerAccount           string           `position:"Query" name:"OwnerAccount"`
 	AllocationId           string           `position:"Query" name:"AllocationId"`
 	Filter1Value           string           `position:"Query" name:"Filter.1.Value"`

+ 1 - 0
services/ecs/struct_bandwidth_package.go

@@ -28,6 +28,7 @@ type BandwidthPackage struct {
 	InternetChargeType string            `json:"InternetChargeType" xml:"InternetChargeType"`
 	BusinessStatus     string            `json:"BusinessStatus" xml:"BusinessStatus"`
 	IpCount            string            `json:"IpCount" xml:"IpCount"`
+	ISP                string            `json:"ISP" xml:"ISP"`
 	CreationTime       string            `json:"CreationTime" xml:"CreationTime"`
 	Status             string            `json:"Status" xml:"Status"`
 	PublicIpAddresses  PublicIpAddresses `json:"PublicIpAddresses" xml:"PublicIpAddresses"`

+ 1 - 0
services/ecs/struct_data_disk.go

@@ -24,4 +24,5 @@ type DataDisk struct {
 	DiskName           string `json:"DiskName" xml:"DiskName"`
 	Description        string `json:"Description" xml:"Description"`
 	DeleteWithInstance bool   `json:"DeleteWithInstance" xml:"DeleteWithInstance"`
+	Device             string `json:"Device" xml:"Device"`
 }

+ 22 - 0
services/ecs/struct_extended_attribute.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.
+
+// ExtendedAttribute is a nested struct in ecs response
+type ExtendedAttribute struct {
+	Device string `json:"Device" xml:"Device"`
+	DiskId string `json:"DiskId" xml:"DiskId"`
+}

+ 8 - 7
services/ecs/struct_instance_system_event_type.go

@@ -17,11 +17,12 @@ package ecs
 
 // InstanceSystemEventType is a nested struct in ecs response
 type InstanceSystemEventType struct {
-	InstanceId       string           `json:"InstanceId" xml:"InstanceId"`
-	EventId          string           `json:"EventId" xml:"EventId"`
-	EventPublishTime string           `json:"EventPublishTime" xml:"EventPublishTime"`
-	NotBefore        string           `json:"NotBefore" xml:"NotBefore"`
-	EventFinishTime  string           `json:"EventFinishTime" xml:"EventFinishTime"`
-	EventType        EventType        `json:"EventType" xml:"EventType"`
-	EventCycleStatus EventCycleStatus `json:"EventCycleStatus" xml:"EventCycleStatus"`
+	InstanceId        string            `json:"InstanceId" xml:"InstanceId"`
+	EventId           string            `json:"EventId" xml:"EventId"`
+	EventPublishTime  string            `json:"EventPublishTime" xml:"EventPublishTime"`
+	NotBefore         string            `json:"NotBefore" xml:"NotBefore"`
+	EventFinishTime   string            `json:"EventFinishTime" xml:"EventFinishTime"`
+	EventType         EventType         `json:"EventType" xml:"EventType"`
+	EventCycleStatus  EventCycleStatus  `json:"EventCycleStatus" xml:"EventCycleStatus"`
+	ExtendedAttribute ExtendedAttribute `json:"ExtendedAttribute" xml:"ExtendedAttribute"`
 }

+ 1 - 0
services/ecs/struct_launch_template_data.go

@@ -19,6 +19,7 @@ package ecs
 type LaunchTemplateData struct {
 	ImageId                     string                                            `json:"ImageId" xml:"ImageId"`
 	ImageOwnerAlias             string                                            `json:"ImageOwnerAlias" xml:"ImageOwnerAlias"`
+	PasswordInherit             bool                                              `json:"PasswordInherit" xml:"PasswordInherit"`
 	InstanceType                string                                            `json:"InstanceType" xml:"InstanceType"`
 	SecurityGroupId             string                                            `json:"SecurityGroupId" xml:"SecurityGroupId"`
 	VpcId                       string                                            `json:"VpcId" xml:"VpcId"`

+ 6 - 5
services/ecs/struct_scheduled_system_event_type.go

@@ -17,9 +17,10 @@ package ecs
 
 // ScheduledSystemEventType is a nested struct in ecs response
 type ScheduledSystemEventType struct {
-	EventId          string           `json:"EventId" xml:"EventId"`
-	EventPublishTime string           `json:"EventPublishTime" xml:"EventPublishTime"`
-	NotBefore        string           `json:"NotBefore" xml:"NotBefore"`
-	EventCycleStatus EventCycleStatus `json:"EventCycleStatus" xml:"EventCycleStatus"`
-	EventType        EventType        `json:"EventType" xml:"EventType"`
+	EventId           string            `json:"EventId" xml:"EventId"`
+	EventPublishTime  string            `json:"EventPublishTime" xml:"EventPublishTime"`
+	NotBefore         string            `json:"NotBefore" xml:"NotBefore"`
+	EventCycleStatus  EventCycleStatus  `json:"EventCycleStatus" xml:"EventCycleStatus"`
+	EventType         EventType         `json:"EventType" xml:"EventType"`
+	ExtendedAttribute ExtendedAttribute `json:"ExtendedAttribute" xml:"ExtendedAttribute"`
 }