Browse Source

Generated 2017-11-10 for Ens.

sdk-team 6 years ago
parent
commit
5d8cbb0b6b

+ 7 - 0
ChangeLog.txt

@@ -1,3 +1,10 @@
+2020-01-09 Version: v1.60.325
+- Generated 2017-11-10 for `Ens`.
+- Add New Interface DescribeInstanceTypes.
+- Deprecated New Interface DescribeReservedResource.
+- Add New Interface DescribeAvailableResourceInfo.
+- Add New Interface AttachEnsInstances.
+
 2020-01-08 Version: v1.60.324
 - Generated 2017-09-06 for `imm`.
 - Add TagLevel to ListSetTags.

+ 14 - 12
services/ens/create_instance.go

@@ -76,18 +76,20 @@ func (client *Client) CreateInstanceWithCallback(request *CreateInstanceRequest,
 // CreateInstanceRequest is the request struct for api CreateInstance
 type CreateInstanceRequest struct {
 	*requests.RpcRequest
-	ImageId            string `position:"Query" name:"ImageId"`
-	Password           string `position:"Query" name:"Password"`
-	EnsRegionId        string `position:"Query" name:"EnsRegionId"`
-	InstanceType       string `position:"Query" name:"InstanceType"`
-	DataDisk1Size      string `position:"Query" name:"DataDisk.1.Size"`
-	AutoRenewPeriod    string `position:"Query" name:"AutoRenewPeriod"`
-	Period             string `position:"Query" name:"Period"`
-	Quantity           string `position:"Query" name:"Quantity"`
-	Version            string `position:"Query" name:"Version"`
-	SystemDiskSize     string `position:"Query" name:"SystemDisk.Size"`
-	AutoRenew          string `position:"Query" name:"AutoRenew"`
-	InternetChargeType string `position:"Query" name:"InternetChargeType"`
+	ImageId            string           `position:"Query" name:"ImageId"`
+	Password           string           `position:"Query" name:"Password"`
+	EnsRegionId        string           `position:"Query" name:"EnsRegionId"`
+	InstanceType       string           `position:"Query" name:"InstanceType"`
+	DataDisk1Size      string           `position:"Query" name:"DataDisk.1.Size"`
+	AutoRenewPeriod    string           `position:"Query" name:"AutoRenewPeriod"`
+	Period             string           `position:"Query" name:"Period"`
+	Quantity           string           `position:"Query" name:"Quantity"`
+	IpType             string           `position:"Query" name:"IpType"`
+	OwnerId            requests.Integer `position:"Query" name:"OwnerId"`
+	Version            string           `position:"Query" name:"Version"`
+	SystemDiskSize     string           `position:"Query" name:"SystemDisk.Size"`
+	AutoRenew          string           `position:"Query" name:"AutoRenew"`
+	InternetChargeType string           `position:"Query" name:"InternetChargeType"`
 }
 
 // CreateInstanceResponse is the response struct for api CreateInstance

+ 105 - 0
services/ens/describe_create_pre_paid_instance_result.go

@@ -0,0 +1,105 @@
+package ens
+
+//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"
+)
+
+// DescribeCreatePrePaidInstanceResult invokes the ens.DescribeCreatePrePaidInstanceResult API synchronously
+// api document: https://help.aliyun.com/api/ens/describecreateprepaidinstanceresult.html
+func (client *Client) DescribeCreatePrePaidInstanceResult(request *DescribeCreatePrePaidInstanceResultRequest) (response *DescribeCreatePrePaidInstanceResultResponse, err error) {
+	response = CreateDescribeCreatePrePaidInstanceResultResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeCreatePrePaidInstanceResultWithChan invokes the ens.DescribeCreatePrePaidInstanceResult API asynchronously
+// api document: https://help.aliyun.com/api/ens/describecreateprepaidinstanceresult.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeCreatePrePaidInstanceResultWithChan(request *DescribeCreatePrePaidInstanceResultRequest) (<-chan *DescribeCreatePrePaidInstanceResultResponse, <-chan error) {
+	responseChan := make(chan *DescribeCreatePrePaidInstanceResultResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeCreatePrePaidInstanceResult(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeCreatePrePaidInstanceResultWithCallback invokes the ens.DescribeCreatePrePaidInstanceResult API asynchronously
+// api document: https://help.aliyun.com/api/ens/describecreateprepaidinstanceresult.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeCreatePrePaidInstanceResultWithCallback(request *DescribeCreatePrePaidInstanceResultRequest, callback func(response *DescribeCreatePrePaidInstanceResultResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeCreatePrePaidInstanceResultResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeCreatePrePaidInstanceResult(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeCreatePrePaidInstanceResultRequest is the request struct for api DescribeCreatePrePaidInstanceResult
+type DescribeCreatePrePaidInstanceResultRequest struct {
+	*requests.RpcRequest
+	Version    string `position:"Query" name:"Version"`
+	InstanceId string `position:"Query" name:"InstanceId"`
+}
+
+// DescribeCreatePrePaidInstanceResultResponse is the response struct for api DescribeCreatePrePaidInstanceResult
+type DescribeCreatePrePaidInstanceResultResponse struct {
+	*responses.BaseResponse
+	RequestId            string               `json:"RequestId" xml:"RequestId"`
+	InstanceCreateResult InstanceCreateResult `json:"InstanceCreateResult" xml:"InstanceCreateResult"`
+}
+
+// CreateDescribeCreatePrePaidInstanceResultRequest creates a request to invoke DescribeCreatePrePaidInstanceResult API
+func CreateDescribeCreatePrePaidInstanceResultRequest() (request *DescribeCreatePrePaidInstanceResultRequest) {
+	request = &DescribeCreatePrePaidInstanceResultRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ens", "2017-11-10", "DescribeCreatePrePaidInstanceResult", "ens", "openAPI")
+	return
+}
+
+// CreateDescribeCreatePrePaidInstanceResultResponse creates a response to parse from DescribeCreatePrePaidInstanceResult response
+func CreateDescribeCreatePrePaidInstanceResultResponse() (response *DescribeCreatePrePaidInstanceResultResponse) {
+	response = &DescribeCreatePrePaidInstanceResultResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 105 - 0
services/ens/describe_ens_region_id_ipv6_info.go

@@ -0,0 +1,105 @@
+package ens
+
+//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"
+)
+
+// DescribeEnsRegionIdIpv6Info invokes the ens.DescribeEnsRegionIdIpv6Info API synchronously
+// api document: https://help.aliyun.com/api/ens/describeensregionidipv6info.html
+func (client *Client) DescribeEnsRegionIdIpv6Info(request *DescribeEnsRegionIdIpv6InfoRequest) (response *DescribeEnsRegionIdIpv6InfoResponse, err error) {
+	response = CreateDescribeEnsRegionIdIpv6InfoResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeEnsRegionIdIpv6InfoWithChan invokes the ens.DescribeEnsRegionIdIpv6Info API asynchronously
+// api document: https://help.aliyun.com/api/ens/describeensregionidipv6info.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeEnsRegionIdIpv6InfoWithChan(request *DescribeEnsRegionIdIpv6InfoRequest) (<-chan *DescribeEnsRegionIdIpv6InfoResponse, <-chan error) {
+	responseChan := make(chan *DescribeEnsRegionIdIpv6InfoResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeEnsRegionIdIpv6Info(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeEnsRegionIdIpv6InfoWithCallback invokes the ens.DescribeEnsRegionIdIpv6Info API asynchronously
+// api document: https://help.aliyun.com/api/ens/describeensregionidipv6info.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeEnsRegionIdIpv6InfoWithCallback(request *DescribeEnsRegionIdIpv6InfoRequest, callback func(response *DescribeEnsRegionIdIpv6InfoResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeEnsRegionIdIpv6InfoResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeEnsRegionIdIpv6Info(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeEnsRegionIdIpv6InfoRequest is the request struct for api DescribeEnsRegionIdIpv6Info
+type DescribeEnsRegionIdIpv6InfoRequest struct {
+	*requests.RpcRequest
+	EnsRegionId string `position:"Query" name:"EnsRegionId"`
+	Version     string `position:"Query" name:"Version"`
+}
+
+// DescribeEnsRegionIdIpv6InfoResponse is the response struct for api DescribeEnsRegionIdIpv6Info
+type DescribeEnsRegionIdIpv6InfoResponse struct {
+	*responses.BaseResponse
+	RequestId       string          `json:"RequestId" xml:"RequestId"`
+	SupportIpv6Info SupportIpv6Info `json:"SupportIpv6Info" xml:"SupportIpv6Info"`
+}
+
+// CreateDescribeEnsRegionIdIpv6InfoRequest creates a request to invoke DescribeEnsRegionIdIpv6Info API
+func CreateDescribeEnsRegionIdIpv6InfoRequest() (request *DescribeEnsRegionIdIpv6InfoRequest) {
+	request = &DescribeEnsRegionIdIpv6InfoRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ens", "2017-11-10", "DescribeEnsRegionIdIpv6Info", "ens", "openAPI")
+	return
+}
+
+// CreateDescribeEnsRegionIdIpv6InfoResponse creates a response to parse from DescribeEnsRegionIdIpv6Info response
+func CreateDescribeEnsRegionIdIpv6InfoResponse() (response *DescribeEnsRegionIdIpv6InfoResponse) {
+	response = &DescribeEnsRegionIdIpv6InfoResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 3 - 2
services/ens/describe_instance_auto_renew_attribute.go

@@ -76,8 +76,9 @@ func (client *Client) DescribeInstanceAutoRenewAttributeWithCallback(request *De
 // DescribeInstanceAutoRenewAttributeRequest is the request struct for api DescribeInstanceAutoRenewAttribute
 type DescribeInstanceAutoRenewAttributeRequest struct {
 	*requests.RpcRequest
-	Version     string `position:"Query" name:"Version"`
-	InstanceIds string `position:"Query" name:"InstanceIds"`
+	OwnerId     requests.Integer `position:"Query" name:"OwnerId"`
+	Version     string           `position:"Query" name:"Version"`
+	InstanceIds string           `position:"Query" name:"InstanceIds"`
 }
 
 // DescribeInstanceAutoRenewAttributeResponse is the response struct for api DescribeInstanceAutoRenewAttribute

+ 106 - 0
services/ens/describe_measurement_data.go

@@ -0,0 +1,106 @@
+package ens
+
+//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"
+)
+
+// DescribeMeasurementData invokes the ens.DescribeMeasurementData API synchronously
+// api document: https://help.aliyun.com/api/ens/describemeasurementdata.html
+func (client *Client) DescribeMeasurementData(request *DescribeMeasurementDataRequest) (response *DescribeMeasurementDataResponse, err error) {
+	response = CreateDescribeMeasurementDataResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeMeasurementDataWithChan invokes the ens.DescribeMeasurementData API asynchronously
+// api document: https://help.aliyun.com/api/ens/describemeasurementdata.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeMeasurementDataWithChan(request *DescribeMeasurementDataRequest) (<-chan *DescribeMeasurementDataResponse, <-chan error) {
+	responseChan := make(chan *DescribeMeasurementDataResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeMeasurementData(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeMeasurementDataWithCallback invokes the ens.DescribeMeasurementData API asynchronously
+// api document: https://help.aliyun.com/api/ens/describemeasurementdata.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeMeasurementDataWithCallback(request *DescribeMeasurementDataRequest, callback func(response *DescribeMeasurementDataResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeMeasurementDataResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeMeasurementData(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeMeasurementDataRequest is the request struct for api DescribeMeasurementData
+type DescribeMeasurementDataRequest struct {
+	*requests.RpcRequest
+	StartDate string `position:"Query" name:"StartDate"`
+	Version   string `position:"Query" name:"Version"`
+	EndDate   string `position:"Query" name:"EndDate"`
+}
+
+// DescribeMeasurementDataResponse is the response struct for api DescribeMeasurementData
+type DescribeMeasurementDataResponse struct {
+	*responses.BaseResponse
+	RequestId        string           `json:"RequestId" xml:"RequestId"`
+	MeasurementDatas MeasurementDatas `json:"MeasurementDatas" xml:"MeasurementDatas"`
+}
+
+// CreateDescribeMeasurementDataRequest creates a request to invoke DescribeMeasurementData API
+func CreateDescribeMeasurementDataRequest() (request *DescribeMeasurementDataRequest) {
+	request = &DescribeMeasurementDataRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ens", "2017-11-10", "DescribeMeasurementData", "ens", "openAPI")
+	return
+}
+
+// CreateDescribeMeasurementDataResponse creates a response to parse from DescribeMeasurementData response
+func CreateDescribeMeasurementDataResponse() (response *DescribeMeasurementDataResponse) {
+	response = &DescribeMeasurementDataResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 111 - 0
services/ens/describe_price.go

@@ -0,0 +1,111 @@
+package ens
+
+//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"
+)
+
+// DescribePrice invokes the ens.DescribePrice API synchronously
+// api document: https://help.aliyun.com/api/ens/describeprice.html
+func (client *Client) DescribePrice(request *DescribePriceRequest) (response *DescribePriceResponse, err error) {
+	response = CreateDescribePriceResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribePriceWithChan invokes the ens.DescribePrice API asynchronously
+// api document: https://help.aliyun.com/api/ens/describeprice.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribePriceWithChan(request *DescribePriceRequest) (<-chan *DescribePriceResponse, <-chan error) {
+	responseChan := make(chan *DescribePriceResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribePrice(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribePriceWithCallback invokes the ens.DescribePrice API asynchronously
+// api document: https://help.aliyun.com/api/ens/describeprice.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribePriceWithCallback(request *DescribePriceRequest, callback func(response *DescribePriceResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribePriceResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribePrice(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribePriceRequest is the request struct for api DescribePrice
+type DescribePriceRequest struct {
+	*requests.RpcRequest
+	EnsRegionId        string           `position:"Query" name:"EnsRegionId"`
+	InstanceType       string           `position:"Query" name:"InstanceType"`
+	DataDisk1Size      requests.Integer `position:"Query" name:"DataDisk.1.Size"`
+	Period             requests.Integer `position:"Query" name:"Period"`
+	Quantity           requests.Integer `position:"Query" name:"Quantity"`
+	Version            string           `position:"Query" name:"Version"`
+	SystemDiskSize     requests.Integer `position:"Query" name:"SystemDisk.Size"`
+	InternetChargeType string           `position:"Query" name:"InternetChargeType"`
+}
+
+// DescribePriceResponse is the response struct for api DescribePrice
+type DescribePriceResponse struct {
+	*responses.BaseResponse
+	RequestId string    `json:"RequestId" xml:"RequestId"`
+	PriceInfo PriceInfo `json:"PriceInfo" xml:"PriceInfo"`
+}
+
+// CreateDescribePriceRequest creates a request to invoke DescribePrice API
+func CreateDescribePriceRequest() (request *DescribePriceRequest) {
+	request = &DescribePriceRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ens", "2017-11-10", "DescribePrice", "ens", "openAPI")
+	return
+}
+
+// CreateDescribePriceResponse creates a response to parse from DescribePrice response
+func CreateDescribePriceResponse() (response *DescribePriceResponse) {
+	response = &DescribePriceResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 3 - 3
services/ens/describe_user_band_width_data.go

@@ -87,9 +87,9 @@ type DescribeUserBandWidthDataRequest struct {
 // DescribeUserBandWidthDataResponse is the response struct for api DescribeUserBandWidthData
 type DescribeUserBandWidthDataResponse struct {
 	*responses.BaseResponse
-	RequestId   string            `json:"RequestId" xml:"RequestId"`
-	Code        int               `json:"Code" xml:"Code"`
-	MonitorData []MonitorDataItem `json:"MonitorData" xml:"MonitorData"`
+	RequestId   string      `json:"RequestId" xml:"RequestId"`
+	Code        int         `json:"Code" xml:"Code"`
+	MonitorData MonitorData `json:"MonitorData" xml:"MonitorData"`
 }
 
 // CreateDescribeUserBandWidthDataRequest creates a request to invoke DescribeUserBandWidthData API

+ 106 - 0
services/ens/export_measurement_data.go

@@ -0,0 +1,106 @@
+package ens
+
+//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"
+)
+
+// ExportMeasurementData invokes the ens.ExportMeasurementData API synchronously
+// api document: https://help.aliyun.com/api/ens/exportmeasurementdata.html
+func (client *Client) ExportMeasurementData(request *ExportMeasurementDataRequest) (response *ExportMeasurementDataResponse, err error) {
+	response = CreateExportMeasurementDataResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ExportMeasurementDataWithChan invokes the ens.ExportMeasurementData API asynchronously
+// api document: https://help.aliyun.com/api/ens/exportmeasurementdata.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ExportMeasurementDataWithChan(request *ExportMeasurementDataRequest) (<-chan *ExportMeasurementDataResponse, <-chan error) {
+	responseChan := make(chan *ExportMeasurementDataResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ExportMeasurementData(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ExportMeasurementDataWithCallback invokes the ens.ExportMeasurementData API asynchronously
+// api document: https://help.aliyun.com/api/ens/exportmeasurementdata.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ExportMeasurementDataWithCallback(request *ExportMeasurementDataRequest, callback func(response *ExportMeasurementDataResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ExportMeasurementDataResponse
+		var err error
+		defer close(result)
+		response, err = client.ExportMeasurementData(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ExportMeasurementDataRequest is the request struct for api ExportMeasurementData
+type ExportMeasurementDataRequest struct {
+	*requests.RpcRequest
+	StartDate string `position:"Query" name:"StartDate"`
+	Version   string `position:"Query" name:"Version"`
+	EndDate   string `position:"Query" name:"EndDate"`
+}
+
+// ExportMeasurementDataResponse is the response struct for api ExportMeasurementData
+type ExportMeasurementDataResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	FilePath  string `json:"FilePath" xml:"FilePath"`
+}
+
+// CreateExportMeasurementDataRequest creates a request to invoke ExportMeasurementData API
+func CreateExportMeasurementDataRequest() (request *ExportMeasurementDataRequest) {
+	request = &ExportMeasurementDataRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Ens", "2017-11-10", "ExportMeasurementData", "ens", "openAPI")
+	return
+}
+
+// CreateExportMeasurementDataResponse creates a response to parse from ExportMeasurementData response
+func CreateExportMeasurementDataResponse() (response *ExportMeasurementDataResponse) {
+	response = &ExportMeasurementDataResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 23 - 0
services/ens/struct_band_width_fee_data.go

@@ -0,0 +1,23 @@
+package ens
+
+//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.
+
+// BandWidthFeeData is a nested struct in ens response
+type BandWidthFeeData struct {
+	CostVal  int    `json:"CostVal" xml:"CostVal"`
+	CostCode string `json:"CostCode" xml:"CostCode"`
+	CostName string `json:"CostName" xml:"CostName"`
+}

+ 3 - 3
services/ens/struct_monitor_data_in_describe_user_band_width_data.go → services/ens/struct_band_width_fee_datas.go

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

+ 21 - 0
services/ens/struct_bandwidth_types.go

@@ -0,0 +1,21 @@
+package ens
+
+//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.
+
+// BandwidthTypes is a nested struct in ens response
+type BandwidthTypes struct {
+	BandwidthType []string `json:"BandwidthType" xml:"BandwidthType"`
+}

+ 25 - 0
services/ens/struct_ens_region_id.go

@@ -0,0 +1,25 @@
+package ens
+
+//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.
+
+// EnsRegionId is a nested struct in ens response
+type EnsRegionId struct {
+	EnsRegionId string `json:"EnsRegionId" xml:"EnsRegionId"`
+	Name        string `json:"Name" xml:"Name"`
+	EnName      string `json:"EnName" xml:"EnName"`
+	Area        string `json:"Area" xml:"Area"`
+	Province    string `json:"Province" xml:"Province"`
+}

+ 21 - 0
services/ens/struct_ens_region_ids_extends.go

@@ -0,0 +1,21 @@
+package ens
+
+//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.
+
+// EnsRegionIdsExtends is a nested struct in ens response
+type EnsRegionIdsExtends struct {
+	EnsRegionId []EnsRegionId `json:"EnsRegionId" xml:"EnsRegionId"`
+}

+ 22 - 0
services/ens/struct_instance_create_result.go

@@ -0,0 +1,22 @@
+package ens
+
+//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.
+
+// InstanceCreateResult is a nested struct in ens response
+type InstanceCreateResult struct {
+	InstanceCreateStatus string `json:"InstanceCreateStatus" xml:"InstanceCreateStatus"`
+	InstanceId           string `json:"InstanceId" xml:"InstanceId"`
+}

+ 26 - 0
services/ens/struct_measurement_data.go

@@ -0,0 +1,26 @@
+package ens
+
+//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.
+
+// MeasurementData is a nested struct in ens response
+type MeasurementData struct {
+	ChargeModel       string            `json:"ChargeModel" xml:"ChargeModel"`
+	CostCycle         string            `json:"CostCycle" xml:"CostCycle"`
+	CostStartTime     string            `json:"CostStartTime" xml:"CostStartTime"`
+	CostEndTime       string            `json:"CostEndTime" xml:"CostEndTime"`
+	ResourceFeeData   ResourceFeeData   `json:"ResourceFeeData" xml:"ResourceFeeData"`
+	BandWidthFeeDatas BandWidthFeeDatas `json:"BandWidthFeeDatas" xml:"BandWidthFeeDatas"`
+}

+ 21 - 0
services/ens/struct_measurement_datas.go

@@ -0,0 +1,21 @@
+package ens
+
+//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.
+
+// MeasurementDatas is a nested struct in ens response
+type MeasurementDatas struct {
+	MeasurementData []MeasurementData `json:"MeasurementData" xml:"MeasurementData"`
+}

+ 3 - 3
services/ens/struct_monitor_data_item.go → services/ens/struct_monitor_data.go

@@ -15,9 +15,9 @@ package ens
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-// MonitorDataItem is a nested struct in ens response
-type MonitorDataItem struct {
-	MaxDownBandWidth     string                     `json:"MaxDownBandWidth" xml:"MaxDownBandWidth"`
+// MonitorData is a nested struct in ens response
+type MonitorData struct {
 	MaxUpBandWidth       string                     `json:"MaxUpBandWidth" xml:"MaxUpBandWidth"`
+	MaxDownBandWidth     string                     `json:"MaxDownBandWidth" xml:"MaxDownBandWidth"`
 	BandWidthMonitorData []BandWidthMonitorDataItem `json:"BandWidthMonitorData" xml:"BandWidthMonitorData"`
 }

+ 24 - 0
services/ens/struct_price.go

@@ -0,0 +1,24 @@
+package ens
+
+//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.
+
+// Price is a nested struct in ens response
+type Price struct {
+	DiscountPrice float64 `json:"DiscountPrice" xml:"DiscountPrice"`
+	OriginalPrice float64 `json:"OriginalPrice" xml:"OriginalPrice"`
+	TradePrice    float64 `json:"TradePrice" xml:"TradePrice"`
+	Currency      string  `json:"Currency" xml:"Currency"`
+}

+ 21 - 0
services/ens/struct_price_info.go

@@ -0,0 +1,21 @@
+package ens
+
+//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.
+
+// PriceInfo is a nested struct in ens response
+type PriceInfo struct {
+	Price Price `json:"Price" xml:"Price"`
+}

+ 23 - 0
services/ens/struct_resource_fee_data.go

@@ -0,0 +1,23 @@
+package ens
+
+//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.
+
+// ResourceFeeData is a nested struct in ens response
+type ResourceFeeData struct {
+	Storage int `json:"Storage" xml:"Storage"`
+	Memory  int `json:"Memory" xml:"Memory"`
+	Vcpu    int `json:"Vcpu" xml:"Vcpu"`
+}

+ 22 - 0
services/ens/struct_support_ipv6_info.go

@@ -0,0 +1,22 @@
+package ens
+
+//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.
+
+// SupportIpv6Info is a nested struct in ens response
+type SupportIpv6Info struct {
+	SupportIpv6 bool   `json:"SupportIpv6" xml:"SupportIpv6"`
+	EnsRegionId string `json:"EnsRegionId" xml:"EnsRegionId"`
+}

+ 15 - 13
services/ens/struct_support_resource.go

@@ -17,17 +17,19 @@ package ens
 
 // SupportResource is a nested struct in ens response
 type SupportResource struct {
-	DataDiskMaxSize       int             `json:"DataDiskMaxSize" xml:"DataDiskMaxSize"`
-	SystemDiskMaxSize     int             `json:"SystemDiskMaxSize" xml:"SystemDiskMaxSize"`
-	EnsRegionId           string          `json:"EnsRegionId" xml:"EnsRegionId"`
-	DataDiskSize          string          `json:"DataDiskSize" xml:"DataDiskSize"`
-	InstanceSpec          string          `json:"InstanceSpec" xml:"InstanceSpec"`
-	SystemDiskSize        string          `json:"SystemDiskSize" xml:"SystemDiskSize"`
-	SystemDiskMinSize     int             `json:"SystemDiskMinSize" xml:"SystemDiskMinSize"`
-	DataDiskMinSize       int             `json:"DataDiskMinSize" xml:"DataDiskMinSize"`
-	SupportResourcesCount string          `json:"SupportResourcesCount" xml:"SupportResourcesCount"`
-	EnsRegionIds          EnsRegionIds    `json:"EnsRegionIds" xml:"EnsRegionIds"`
-	SystemDiskSizes       SystemDiskSizes `json:"SystemDiskSizes" xml:"SystemDiskSizes"`
-	InstanceSpeces        InstanceSpeces  `json:"InstanceSpeces" xml:"InstanceSpeces"`
-	DataDiskSizes         DataDiskSizes   `json:"DataDiskSizes" xml:"DataDiskSizes"`
+	DataDiskMaxSize       int                 `json:"DataDiskMaxSize" xml:"DataDiskMaxSize"`
+	SystemDiskMaxSize     int                 `json:"SystemDiskMaxSize" xml:"SystemDiskMaxSize"`
+	EnsRegionId           string              `json:"EnsRegionId" xml:"EnsRegionId"`
+	DataDiskSize          string              `json:"DataDiskSize" xml:"DataDiskSize"`
+	InstanceSpec          string              `json:"InstanceSpec" xml:"InstanceSpec"`
+	SystemDiskSize        string              `json:"SystemDiskSize" xml:"SystemDiskSize"`
+	SystemDiskMinSize     int                 `json:"SystemDiskMinSize" xml:"SystemDiskMinSize"`
+	DataDiskMinSize       int                 `json:"DataDiskMinSize" xml:"DataDiskMinSize"`
+	SupportResourcesCount string              `json:"SupportResourcesCount" xml:"SupportResourcesCount"`
+	EnsRegionIds          EnsRegionIds        `json:"EnsRegionIds" xml:"EnsRegionIds"`
+	BandwidthTypes        BandwidthTypes      `json:"BandwidthTypes" xml:"BandwidthTypes"`
+	SystemDiskSizes       SystemDiskSizes     `json:"SystemDiskSizes" xml:"SystemDiskSizes"`
+	InstanceSpeces        InstanceSpeces      `json:"InstanceSpeces" xml:"InstanceSpeces"`
+	DataDiskSizes         DataDiskSizes       `json:"DataDiskSizes" xml:"DataDiskSizes"`
+	EnsRegionIdsExtends   EnsRegionIdsExtends `json:"EnsRegionIdsExtends" xml:"EnsRegionIdsExtends"`
 }