Browse Source

DDS SDK Auto Released By junjun.zhang,Version:1.43.7

Signed-off-by: yixiong.jxy <yixiong.jxy@alibaba-inc.com>
yixiong.jxy 7 năm trước cách đây
mục cha
commit
1ac1362998

+ 4 - 0
ChangeLog.txt

@@ -1,3 +1,7 @@
+2018-12-11 Version: 1.43.7
+1, Modify DescribeDBInstances OpenApi lastDowngradeTime dataType. 
+2, Upgrade SDK Version to 2.0.3.
+
 2018-12-11 Version: 1.43.6
 1, Sync CDN API.
 

+ 109 - 0
services/dds/describe_available_engine_version.go

@@ -0,0 +1,109 @@
+package dds
+
+//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"
+)
+
+// DescribeAvailableEngineVersion invokes the dds.DescribeAvailableEngineVersion API synchronously
+// api document: https://help.aliyun.com/api/dds/describeavailableengineversion.html
+func (client *Client) DescribeAvailableEngineVersion(request *DescribeAvailableEngineVersionRequest) (response *DescribeAvailableEngineVersionResponse, err error) {
+	response = CreateDescribeAvailableEngineVersionResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeAvailableEngineVersionWithChan invokes the dds.DescribeAvailableEngineVersion API asynchronously
+// api document: https://help.aliyun.com/api/dds/describeavailableengineversion.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeAvailableEngineVersionWithChan(request *DescribeAvailableEngineVersionRequest) (<-chan *DescribeAvailableEngineVersionResponse, <-chan error) {
+	responseChan := make(chan *DescribeAvailableEngineVersionResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeAvailableEngineVersion(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeAvailableEngineVersionWithCallback invokes the dds.DescribeAvailableEngineVersion API asynchronously
+// api document: https://help.aliyun.com/api/dds/describeavailableengineversion.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeAvailableEngineVersionWithCallback(request *DescribeAvailableEngineVersionRequest, callback func(response *DescribeAvailableEngineVersionResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeAvailableEngineVersionResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeAvailableEngineVersion(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeAvailableEngineVersionRequest is the request struct for api DescribeAvailableEngineVersion
+type DescribeAvailableEngineVersionRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	SecurityToken        string           `position:"Query" name:"SecurityToken"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
+	DBInstanceId         string           `position:"Query" name:"DBInstanceId"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+}
+
+// DescribeAvailableEngineVersionResponse is the response struct for api DescribeAvailableEngineVersion
+type DescribeAvailableEngineVersionResponse struct {
+	*responses.BaseResponse
+	RequestId      string         `json:"RequestId" xml:"RequestId"`
+	EngineVersions EngineVersions `json:"EngineVersions" xml:"EngineVersions"`
+}
+
+// CreateDescribeAvailableEngineVersionRequest creates a request to invoke DescribeAvailableEngineVersion API
+func CreateDescribeAvailableEngineVersionRequest() (request *DescribeAvailableEngineVersionRequest) {
+	request = &DescribeAvailableEngineVersionRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Dds", "2015-12-01", "DescribeAvailableEngineVersion", "dds", "openAPI")
+	return
+}
+
+// CreateDescribeAvailableEngineVersionResponse creates a response to parse from DescribeAvailableEngineVersion response
+func CreateDescribeAvailableEngineVersionResponse() (response *DescribeAvailableEngineVersionResponse) {
+	response = &DescribeAvailableEngineVersionResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 6 - 1
services/dds/describe_db_instances.go

@@ -80,18 +80,23 @@ type DescribeDBInstancesRequest struct {
 	ResourceOwnerId       requests.Integer `position:"Query" name:"ResourceOwnerId"`
 	ResourceOwnerAccount  string           `position:"Query" name:"ResourceOwnerAccount"`
 	OwnerAccount          string           `position:"Query" name:"OwnerAccount"`
+	EngineVersion         string           `position:"Query" name:"EngineVersion"`
+	NetworkType           string           `position:"Query" name:"NetworkType"`
 	OwnerId               requests.Integer `position:"Query" name:"OwnerId"`
 	PageNumber            requests.Integer `position:"Query" name:"PageNumber"`
 	ReplicationFactor     string           `position:"Query" name:"ReplicationFactor"`
 	DBInstanceType        string           `position:"Query" name:"DBInstanceType"`
 	DBInstanceClass       string           `position:"Query" name:"DBInstanceClass"`
-	Expired               string           `position:"Query" name:"Expired"`
+	VSwitchId             string           `position:"Query" name:"VSwitchId"`
 	SecurityToken         string           `position:"Query" name:"SecurityToken"`
+	Engine                string           `position:"Query" name:"Engine"`
+	VpcId                 string           `position:"Query" name:"VpcId"`
 	PageSize              requests.Integer `position:"Query" name:"PageSize"`
 	ZoneId                string           `position:"Query" name:"ZoneId"`
 	DBInstanceId          string           `position:"Query" name:"DBInstanceId"`
 	DBInstanceDescription string           `position:"Query" name:"DBInstanceDescription"`
 	DBInstanceStatus      string           `position:"Query" name:"DBInstanceStatus"`
+	ChargeType            string           `position:"Query" name:"ChargeType"`
 }
 
 // DescribeDBInstancesResponse is the response struct for api DescribeDBInstances

+ 115 - 0
services/dds/describe_instance_auto_renewal_attribute.go

@@ -0,0 +1,115 @@
+package dds
+
+//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"
+)
+
+// DescribeInstanceAutoRenewalAttribute invokes the dds.DescribeInstanceAutoRenewalAttribute API synchronously
+// api document: https://help.aliyun.com/api/dds/describeinstanceautorenewalattribute.html
+func (client *Client) DescribeInstanceAutoRenewalAttribute(request *DescribeInstanceAutoRenewalAttributeRequest) (response *DescribeInstanceAutoRenewalAttributeResponse, err error) {
+	response = CreateDescribeInstanceAutoRenewalAttributeResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeInstanceAutoRenewalAttributeWithChan invokes the dds.DescribeInstanceAutoRenewalAttribute API asynchronously
+// api document: https://help.aliyun.com/api/dds/describeinstanceautorenewalattribute.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeInstanceAutoRenewalAttributeWithChan(request *DescribeInstanceAutoRenewalAttributeRequest) (<-chan *DescribeInstanceAutoRenewalAttributeResponse, <-chan error) {
+	responseChan := make(chan *DescribeInstanceAutoRenewalAttributeResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeInstanceAutoRenewalAttribute(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeInstanceAutoRenewalAttributeWithCallback invokes the dds.DescribeInstanceAutoRenewalAttribute API asynchronously
+// api document: https://help.aliyun.com/api/dds/describeinstanceautorenewalattribute.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeInstanceAutoRenewalAttributeWithCallback(request *DescribeInstanceAutoRenewalAttributeRequest, callback func(response *DescribeInstanceAutoRenewalAttributeResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeInstanceAutoRenewalAttributeResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeInstanceAutoRenewalAttribute(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeInstanceAutoRenewalAttributeRequest is the request struct for api DescribeInstanceAutoRenewalAttribute
+type DescribeInstanceAutoRenewalAttributeRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	SecurityToken        string           `position:"Query" name:"SecurityToken"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
+	PageSize             string           `position:"Query" name:"PageSize"`
+	DBInstanceId         string           `position:"Query" name:"DBInstanceId"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+	PageNumber           string           `position:"Query" name:"PageNumber"`
+	DBInstanceType       string           `position:"Query" name:"DBInstanceType"`
+}
+
+// DescribeInstanceAutoRenewalAttributeResponse is the response struct for api DescribeInstanceAutoRenewalAttribute
+type DescribeInstanceAutoRenewalAttributeResponse struct {
+	*responses.BaseResponse
+	RequestId       string                                      `json:"RequestId" xml:"RequestId"`
+	PageNumber      int                                         `json:"PageNumber" xml:"PageNumber"`
+	PageRecordCount int                                         `json:"PageRecordCount" xml:"PageRecordCount"`
+	ItemsNumbers    int                                         `json:"ItemsNumbers" xml:"ItemsNumbers"`
+	Items           ItemsInDescribeInstanceAutoRenewalAttribute `json:"Items" xml:"Items"`
+}
+
+// CreateDescribeInstanceAutoRenewalAttributeRequest creates a request to invoke DescribeInstanceAutoRenewalAttribute API
+func CreateDescribeInstanceAutoRenewalAttributeRequest() (request *DescribeInstanceAutoRenewalAttributeRequest) {
+	request = &DescribeInstanceAutoRenewalAttributeRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Dds", "2015-12-01", "DescribeInstanceAutoRenewalAttribute", "dds", "openAPI")
+	return
+}
+
+// CreateDescribeInstanceAutoRenewalAttributeResponse creates a response to parse from DescribeInstanceAutoRenewalAttribute response
+func CreateDescribeInstanceAutoRenewalAttributeResponse() (response *DescribeInstanceAutoRenewalAttributeResponse) {
+	response = &DescribeInstanceAutoRenewalAttributeResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 113 - 0
services/dds/describe_renewal_price.go

@@ -0,0 +1,113 @@
+package dds
+
+//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"
+)
+
+// DescribeRenewalPrice invokes the dds.DescribeRenewalPrice API synchronously
+// api document: https://help.aliyun.com/api/dds/describerenewalprice.html
+func (client *Client) DescribeRenewalPrice(request *DescribeRenewalPriceRequest) (response *DescribeRenewalPriceResponse, err error) {
+	response = CreateDescribeRenewalPriceResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeRenewalPriceWithChan invokes the dds.DescribeRenewalPrice API asynchronously
+// api document: https://help.aliyun.com/api/dds/describerenewalprice.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeRenewalPriceWithChan(request *DescribeRenewalPriceRequest) (<-chan *DescribeRenewalPriceResponse, <-chan error) {
+	responseChan := make(chan *DescribeRenewalPriceResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeRenewalPrice(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeRenewalPriceWithCallback invokes the dds.DescribeRenewalPrice API asynchronously
+// api document: https://help.aliyun.com/api/dds/describerenewalprice.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeRenewalPriceWithCallback(request *DescribeRenewalPriceRequest, callback func(response *DescribeRenewalPriceResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeRenewalPriceResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeRenewalPrice(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeRenewalPriceRequest is the request struct for api DescribeRenewalPrice
+type DescribeRenewalPriceRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	SecurityToken        string           `position:"Query" name:"SecurityToken"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
+	CouponNo             string           `position:"Query" name:"CouponNo"`
+	DBInstanceId         string           `position:"Query" name:"DBInstanceId"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+	BusinessInfo         string           `position:"Query" name:"BusinessInfo"`
+}
+
+// DescribeRenewalPriceResponse is the response struct for api DescribeRenewalPrice
+type DescribeRenewalPriceResponse struct {
+	*responses.BaseResponse
+	RequestId string    `json:"RequestId" xml:"RequestId"`
+	Order     Order     `json:"Order" xml:"Order"`
+	Rules     Rules     `json:"Rules" xml:"Rules"`
+	SubOrders SubOrders `json:"SubOrders" xml:"SubOrders"`
+}
+
+// CreateDescribeRenewalPriceRequest creates a request to invoke DescribeRenewalPrice API
+func CreateDescribeRenewalPriceRequest() (request *DescribeRenewalPriceRequest) {
+	request = &DescribeRenewalPriceRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Dds", "2015-12-01", "DescribeRenewalPrice", "dds", "openAPI")
+	return
+}
+
+// CreateDescribeRenewalPriceResponse creates a response to parse from DescribeRenewalPrice response
+func CreateDescribeRenewalPriceResponse() (response *DescribeRenewalPriceResponse) {
+	response = &DescribeRenewalPriceResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 110 - 0
services/dds/migrate_to_other_zone.go

@@ -0,0 +1,110 @@
+package dds
+
+//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"
+)
+
+// MigrateToOtherZone invokes the dds.MigrateToOtherZone API synchronously
+// api document: https://help.aliyun.com/api/dds/migratetootherzone.html
+func (client *Client) MigrateToOtherZone(request *MigrateToOtherZoneRequest) (response *MigrateToOtherZoneResponse, err error) {
+	response = CreateMigrateToOtherZoneResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// MigrateToOtherZoneWithChan invokes the dds.MigrateToOtherZone API asynchronously
+// api document: https://help.aliyun.com/api/dds/migratetootherzone.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) MigrateToOtherZoneWithChan(request *MigrateToOtherZoneRequest) (<-chan *MigrateToOtherZoneResponse, <-chan error) {
+	responseChan := make(chan *MigrateToOtherZoneResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.MigrateToOtherZone(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// MigrateToOtherZoneWithCallback invokes the dds.MigrateToOtherZone API asynchronously
+// api document: https://help.aliyun.com/api/dds/migratetootherzone.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) MigrateToOtherZoneWithCallback(request *MigrateToOtherZoneRequest, callback func(response *MigrateToOtherZoneResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *MigrateToOtherZoneResponse
+		var err error
+		defer close(result)
+		response, err = client.MigrateToOtherZone(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// MigrateToOtherZoneRequest is the request struct for api MigrateToOtherZone
+type MigrateToOtherZoneRequest struct {
+	*requests.RpcRequest
+	VSwitchId            string           `position:"Query" name:"VSwitchId"`
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	InstanceId           string           `position:"Query" name:"InstanceId"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	EffectiveTime        string           `position:"Query" name:"EffectiveTime"`
+	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
+	ZoneId               string           `position:"Query" name:"ZoneId"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+}
+
+// MigrateToOtherZoneResponse is the response struct for api MigrateToOtherZone
+type MigrateToOtherZoneResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateMigrateToOtherZoneRequest creates a request to invoke MigrateToOtherZone API
+func CreateMigrateToOtherZoneRequest() (request *MigrateToOtherZoneRequest) {
+	request = &MigrateToOtherZoneRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Dds", "2015-12-01", "MigrateToOtherZone", "dds", "openAPI")
+	return
+}
+
+// CreateMigrateToOtherZoneResponse creates a response to parse from MigrateToOtherZone response
+func CreateMigrateToOtherZoneResponse() (response *MigrateToOtherZoneResponse) {
+	response = &MigrateToOtherZoneResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 110 - 0
services/dds/modify_instance_auto_renewal_attribute.go

@@ -0,0 +1,110 @@
+package dds
+
+//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"
+)
+
+// ModifyInstanceAutoRenewalAttribute invokes the dds.ModifyInstanceAutoRenewalAttribute API synchronously
+// api document: https://help.aliyun.com/api/dds/modifyinstanceautorenewalattribute.html
+func (client *Client) ModifyInstanceAutoRenewalAttribute(request *ModifyInstanceAutoRenewalAttributeRequest) (response *ModifyInstanceAutoRenewalAttributeResponse, err error) {
+	response = CreateModifyInstanceAutoRenewalAttributeResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ModifyInstanceAutoRenewalAttributeWithChan invokes the dds.ModifyInstanceAutoRenewalAttribute API asynchronously
+// api document: https://help.aliyun.com/api/dds/modifyinstanceautorenewalattribute.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ModifyInstanceAutoRenewalAttributeWithChan(request *ModifyInstanceAutoRenewalAttributeRequest) (<-chan *ModifyInstanceAutoRenewalAttributeResponse, <-chan error) {
+	responseChan := make(chan *ModifyInstanceAutoRenewalAttributeResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ModifyInstanceAutoRenewalAttribute(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ModifyInstanceAutoRenewalAttributeWithCallback invokes the dds.ModifyInstanceAutoRenewalAttribute API asynchronously
+// api document: https://help.aliyun.com/api/dds/modifyinstanceautorenewalattribute.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ModifyInstanceAutoRenewalAttributeWithCallback(request *ModifyInstanceAutoRenewalAttributeRequest, callback func(response *ModifyInstanceAutoRenewalAttributeResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ModifyInstanceAutoRenewalAttributeResponse
+		var err error
+		defer close(result)
+		response, err = client.ModifyInstanceAutoRenewalAttribute(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ModifyInstanceAutoRenewalAttributeRequest is the request struct for api ModifyInstanceAutoRenewalAttribute
+type ModifyInstanceAutoRenewalAttributeRequest struct {
+	*requests.RpcRequest
+	Duration             string           `position:"Query" name:"Duration"`
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	AutoRenew            string           `position:"Query" name:"AutoRenew"`
+	SecurityToken        string           `position:"Query" name:"SecurityToken"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
+	DBInstanceId         string           `position:"Query" name:"DBInstanceId"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+}
+
+// ModifyInstanceAutoRenewalAttributeResponse is the response struct for api ModifyInstanceAutoRenewalAttribute
+type ModifyInstanceAutoRenewalAttributeResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateModifyInstanceAutoRenewalAttributeRequest creates a request to invoke ModifyInstanceAutoRenewalAttribute API
+func CreateModifyInstanceAutoRenewalAttributeRequest() (request *ModifyInstanceAutoRenewalAttributeRequest) {
+	request = &ModifyInstanceAutoRenewalAttributeRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Dds", "2015-12-01", "ModifyInstanceAutoRenewalAttribute", "dds", "openAPI")
+	return
+}
+
+// CreateModifyInstanceAutoRenewalAttributeResponse creates a response to parse from ModifyInstanceAutoRenewalAttribute response
+func CreateModifyInstanceAutoRenewalAttributeResponse() (response *ModifyInstanceAutoRenewalAttributeResponse) {
+	response = &ModifyInstanceAutoRenewalAttributeResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 24 - 0
services/dds/struct_coupon.go

@@ -0,0 +1,24 @@
+package dds
+
+//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.
+
+// Coupon is a nested struct in dds response
+type Coupon struct {
+	CouponNo    string `json:"CouponNo" xml:"CouponNo"`
+	Name        string `json:"Name" xml:"Name"`
+	Description string `json:"Description" xml:"Description"`
+	IsSelected  string `json:"IsSelected" xml:"IsSelected"`
+}

+ 21 - 0
services/dds/struct_coupons.go

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

+ 1 - 2
services/dds/struct_db_instance.go

@@ -22,7 +22,6 @@ type DBInstance struct {
 	Engine                string                                   `json:"Engine" xml:"Engine"`
 	ChargeType            string                                   `json:"ChargeType" xml:"ChargeType"`
 	DBInstanceClass       string                                   `json:"DBInstanceClass" xml:"DBInstanceClass"`
-	DestroyTime           string                                   `json:"DestroyTime" xml:"DestroyTime"`
 	RegionId              string                                   `json:"RegionId" xml:"RegionId"`
 	MaxConnections        int                                      `json:"MaxConnections" xml:"MaxConnections"`
 	DBInstanceType        string                                   `json:"DBInstanceType" xml:"DBInstanceType"`
@@ -47,6 +46,6 @@ type DBInstance struct {
 	LastDowngradeTime     int                                      `json:"LastDowngradeTime" xml:"LastDowngradeTime"`
 	LockMode              string                                   `json:"LockMode" xml:"LockMode"`
 	ReplicaSets           ReplicaSetsInDescribeDBInstanceAttribute `json:"ReplicaSets" xml:"ReplicaSets"`
-	ShardList             ShardListInDescribeDBInstances           `json:"ShardList" xml:"ShardList"`
 	MongosList            MongosListInDescribeDBInstanceAttribute  `json:"MongosList" xml:"MongosList"`
+	ShardList             ShardListInDescribeDBInstanceAttribute   `json:"ShardList" xml:"ShardList"`
 }

+ 40 - 0
services/dds/struct_db_instance_in_describe_db_instances.go

@@ -0,0 +1,40 @@
+package dds
+
+//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.
+
+// DBInstanceInDescribeDBInstances is a nested struct in dds response
+type DBInstanceInDescribeDBInstances struct {
+	DBInstanceId          string                          `json:"DBInstanceId" xml:"DBInstanceId"`
+	DBInstanceDescription string                          `json:"DBInstanceDescription" xml:"DBInstanceDescription"`
+	RegionId              string                          `json:"RegionId" xml:"RegionId"`
+	ZoneId                string                          `json:"ZoneId" xml:"ZoneId"`
+	Engine                string                          `json:"Engine" xml:"Engine"`
+	EngineVersion         string                          `json:"EngineVersion" xml:"EngineVersion"`
+	DBInstanceClass       string                          `json:"DBInstanceClass" xml:"DBInstanceClass"`
+	DBInstanceStorage     int                             `json:"DBInstanceStorage" xml:"DBInstanceStorage"`
+	DBInstanceStatus      string                          `json:"DBInstanceStatus" xml:"DBInstanceStatus"`
+	LockMode              string                          `json:"LockMode" xml:"LockMode"`
+	ChargeType            string                          `json:"ChargeType" xml:"ChargeType"`
+	NetworkType           string                          `json:"NetworkType" xml:"NetworkType"`
+	CreationTime          string                          `json:"CreationTime" xml:"CreationTime"`
+	ExpireTime            string                          `json:"ExpireTime" xml:"ExpireTime"`
+	DBInstanceType        string                          `json:"DBInstanceType" xml:"DBInstanceType"`
+	LastDowngradeTime     string                          `json:"LastDowngradeTime" xml:"LastDowngradeTime"`
+	ReplicationFactor     string                          `json:"ReplicationFactor" xml:"ReplicationFactor"`
+	DestroyTime           string                          `json:"DestroyTime" xml:"DestroyTime"`
+	MongosList            MongosListInDescribeDBInstances `json:"MongosList" xml:"MongosList"`
+	ShardList             ShardListInDescribeDBInstances  `json:"ShardList" xml:"ShardList"`
+}

+ 1 - 1
services/dds/struct_db_instances_in_describe_db_instances.go

@@ -17,5 +17,5 @@ package dds
 
 // DBInstancesInDescribeDBInstances is a nested struct in dds response
 type DBInstancesInDescribeDBInstances struct {
-	DBInstance []DBInstance `json:"DBInstance" xml:"DBInstance"`
+	DBInstance []DBInstanceInDescribeDBInstances `json:"DBInstance" xml:"DBInstance"`
 }

+ 21 - 0
services/dds/struct_engine_versions.go

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

+ 25 - 0
services/dds/struct_item.go

@@ -0,0 +1,25 @@
+package dds
+
+//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.
+
+// Item is a nested struct in dds response
+type Item struct {
+	DbInstanceId   string `json:"DbInstanceId" xml:"DbInstanceId"`
+	RegionId       string `json:"RegionId" xml:"RegionId"`
+	Duration       string `json:"Duration" xml:"Duration"`
+	AutoRenew      string `json:"AutoRenew" xml:"AutoRenew"`
+	DBInstanceType string `json:"DBInstanceType" xml:"DBInstanceType"`
+}

+ 21 - 0
services/dds/struct_items_in_describe_instance_auto_renewal_attribute.go

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

+ 26 - 0
services/dds/struct_order.go

@@ -0,0 +1,26 @@
+package dds
+
+//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.
+
+// Order is a nested struct in dds response
+type Order struct {
+	OriginalAmount float64                       `json:"OriginalAmount" xml:"OriginalAmount"`
+	TradeAmount    float64                       `json:"TradeAmount" xml:"TradeAmount"`
+	DiscountAmount float64                       `json:"DiscountAmount" xml:"DiscountAmount"`
+	Currency       string                        `json:"Currency" xml:"Currency"`
+	RuleIds        RuleIdsInDescribeRenewalPrice `json:"RuleIds" xml:"RuleIds"`
+	Coupons        Coupons                       `json:"Coupons" xml:"Coupons"`
+}

+ 23 - 0
services/dds/struct_rule.go

@@ -0,0 +1,23 @@
+package dds
+
+//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.
+
+// Rule is a nested struct in dds response
+type Rule struct {
+	RuleDescId int    `json:"RuleDescId" xml:"RuleDescId"`
+	Name       string `json:"Name" xml:"Name"`
+	Title      string `json:"Title" xml:"Title"`
+}

+ 21 - 0
services/dds/struct_rule_ids_in_describe_renewal_price.go

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

+ 21 - 0
services/dds/struct_rules.go

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

+ 25 - 0
services/dds/struct_sub_order.go

@@ -0,0 +1,25 @@
+package dds
+
+//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.
+
+// SubOrder is a nested struct in dds response
+type SubOrder struct {
+	OriginalAmount float64                       `json:"OriginalAmount" xml:"OriginalAmount"`
+	TradeAmount    float64                       `json:"TradeAmount" xml:"TradeAmount"`
+	DiscountAmount float64                       `json:"DiscountAmount" xml:"DiscountAmount"`
+	InstanceId     string                        `json:"InstanceId" xml:"InstanceId"`
+	RuleIds        RuleIdsInDescribeRenewalPrice `json:"RuleIds" xml:"RuleIds"`
+}

+ 21 - 0
services/dds/struct_sub_orders.go

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