Jelajahi Sumber

RDS SDK Auto Released By junjun.zhang,Version:1.49.4

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
haowei.yao 7 tahun lalu
induk
melakukan
ef2ef6084d
33 mengubah file dengan 565 tambahan dan 36 penghapusan
  1. 5 0
      ChangeLog.txt
  2. 1 1
      services/rds/allocate_read_write_splitting_connection.go
  3. 113 0
      services/rds/describe_available_instance_class.go
  4. 2 2
      services/rds/describe_available_resource.go
  5. 4 3
      services/rds/describe_cloud_db_expert_service.go
  6. 120 0
      services/rds/describe_meta_list.go
  7. 115 0
      services/rds/describe_proxy_function_support.go
  8. 1 0
      services/rds/describe_slow_log_records.go
  9. 1 1
      services/rds/describe_slow_logs.go
  10. 4 3
      services/rds/request_service_of_cloud_db_expert.go
  11. 1 0
      services/rds/restore_db_instance.go
  12. 21 0
      services/rds/struct_available_resource_in_describe_available_instance_class.go
  13. 2 2
      services/rds/struct_available_resource_in_describe_available_resource.go
  14. 1 1
      services/rds/struct_available_resources.go
  15. 5 5
      services/rds/struct_available_zone.go
  16. 21 0
      services/rds/struct_available_zones_in_describe_available_instance_class.go
  17. 2 2
      services/rds/struct_available_zones_in_describe_available_resource.go
  18. 1 0
      services/rds/struct_bin_log_file.go
  19. 21 0
      services/rds/struct_items_in_describe_meta_list.go
  20. 23 0
      services/rds/struct_meta.go
  21. 1 0
      services/rds/struct_sql_slow_log.go
  22. 21 0
      services/rds/struct_supported_category_in_describe_available_instance_class.go
  23. 2 2
      services/rds/struct_supported_category_in_describe_available_resource.go
  24. 2 2
      services/rds/struct_supported_categorys.go
  25. 21 0
      services/rds/struct_supported_engine_in_describe_available_instance_class.go
  26. 2 2
      services/rds/struct_supported_engine_in_describe_available_resource.go
  27. 21 0
      services/rds/struct_supported_engine_version_in_describe_available_instance_class.go
  28. 2 2
      services/rds/struct_supported_engine_version_in_describe_available_resource.go
  29. 2 2
      services/rds/struct_supported_engine_versions.go
  30. 2 2
      services/rds/struct_supported_engines.go
  31. 21 0
      services/rds/struct_supported_storage_type_in_describe_available_instance_class.go
  32. 2 2
      services/rds/struct_supported_storage_type_in_describe_available_resource.go
  33. 2 2
      services/rds/struct_supported_storage_types.go

+ 5 - 0
ChangeLog.txt

@@ -1,3 +1,8 @@
+2019-01-04 Version: 1.49.4
+1, modify DescribeSlowLogs, support query param SQLHASH, remove SQLID query param.
+2, modify DescribeSlowLogRecords, response values add SQLHASH, remove SQLID.
+3, upgrade rds sdk version 2.3.1.
+
 2019-01-04 Version: 1.49.3
 1, Change the DescribeInstance response esConfig List => Map
 

+ 1 - 1
services/rds/allocate_read_write_splitting_connection.go

@@ -82,9 +82,9 @@ type AllocateReadWriteSplittingConnectionRequest struct {
 	OwnerAccount           string           `position:"Query" name:"OwnerAccount"`
 	Weight                 string           `position:"Query" name:"Weight"`
 	OwnerId                requests.Integer `position:"Query" name:"OwnerId"`
-	IPType                 string           `position:"Query" name:"IPType"`
 	Port                   string           `position:"Query" name:"Port"`
 	DistributionType       string           `position:"Query" name:"DistributionType"`
+	NetType                string           `position:"Query" name:"NetType"`
 	DBInstanceId           string           `position:"Query" name:"DBInstanceId"`
 	MaxDelayTime           string           `position:"Query" name:"MaxDelayTime"`
 }

+ 113 - 0
services/rds/describe_available_instance_class.go

@@ -0,0 +1,113 @@
+package rds
+
+//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"
+)
+
+// DescribeAvailableInstanceClass invokes the rds.DescribeAvailableInstanceClass API synchronously
+// api document: https://help.aliyun.com/api/rds/describeavailableinstanceclass.html
+func (client *Client) DescribeAvailableInstanceClass(request *DescribeAvailableInstanceClassRequest) (response *DescribeAvailableInstanceClassResponse, err error) {
+	response = CreateDescribeAvailableInstanceClassResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeAvailableInstanceClassWithChan invokes the rds.DescribeAvailableInstanceClass API asynchronously
+// api document: https://help.aliyun.com/api/rds/describeavailableinstanceclass.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeAvailableInstanceClassWithChan(request *DescribeAvailableInstanceClassRequest) (<-chan *DescribeAvailableInstanceClassResponse, <-chan error) {
+	responseChan := make(chan *DescribeAvailableInstanceClassResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeAvailableInstanceClass(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeAvailableInstanceClassWithCallback invokes the rds.DescribeAvailableInstanceClass API asynchronously
+// api document: https://help.aliyun.com/api/rds/describeavailableinstanceclass.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeAvailableInstanceClassWithCallback(request *DescribeAvailableInstanceClassRequest, callback func(response *DescribeAvailableInstanceClassResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeAvailableInstanceClassResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeAvailableInstanceClass(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeAvailableInstanceClassRequest is the request struct for api DescribeAvailableInstanceClass
+type DescribeAvailableInstanceClassRequest struct {
+	*requests.RpcRequest
+	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"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+	Engine               string           `position:"Query" name:"Engine"`
+	ZoneId               string           `position:"Query" name:"ZoneId"`
+	DBInstanceId         string           `position:"Query" name:"DBInstanceId"`
+	InstanceChargeType   string           `position:"Query" name:"InstanceChargeType"`
+	OrderType            string           `position:"Query" name:"OrderType"`
+}
+
+// DescribeAvailableInstanceClassResponse is the response struct for api DescribeAvailableInstanceClass
+type DescribeAvailableInstanceClassResponse struct {
+	*responses.BaseResponse
+	RequestId      string          `json:"RequestId" xml:"RequestId"`
+	AvailableZones []AvailableZone `json:"AvailableZones" xml:"AvailableZones"`
+}
+
+// CreateDescribeAvailableInstanceClassRequest creates a request to invoke DescribeAvailableInstanceClass API
+func CreateDescribeAvailableInstanceClassRequest() (request *DescribeAvailableInstanceClassRequest) {
+	request = &DescribeAvailableInstanceClassRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Rds", "2014-08-15", "DescribeAvailableInstanceClass", "rds", "openAPI")
+	return
+}
+
+// CreateDescribeAvailableInstanceClassResponse creates a response to parse from DescribeAvailableInstanceClass response
+func CreateDescribeAvailableInstanceClassResponse() (response *DescribeAvailableInstanceClassResponse) {
+	response = &DescribeAvailableInstanceClassResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 2 - 2
services/rds/describe_available_resource.go

@@ -91,8 +91,8 @@ type DescribeAvailableResourceRequest struct {
 // DescribeAvailableResourceResponse is the response struct for api DescribeAvailableResource
 type DescribeAvailableResourceResponse struct {
 	*responses.BaseResponse
-	RequestId      string         `json:"RequestId" xml:"RequestId"`
-	AvailableZones AvailableZones `json:"AvailableZones" xml:"AvailableZones"`
+	RequestId      string                                    `json:"RequestId" xml:"RequestId"`
+	AvailableZones AvailableZonesInDescribeAvailableResource `json:"AvailableZones" xml:"AvailableZones"`
 }
 
 // CreateDescribeAvailableResourceRequest creates a request to invoke DescribeAvailableResource API

+ 4 - 3
services/rds/describe_cloud_db_expert_service.go

@@ -89,9 +89,10 @@ type DescribeCloudDbExpertServiceRequest struct {
 // DescribeCloudDbExpertServiceResponse is the response struct for api DescribeCloudDbExpertService
 type DescribeCloudDbExpertServiceResponse struct {
 	*responses.BaseResponse
-	Message string `json:"Message" xml:"Message"`
-	Data    string `json:"Data" xml:"Data"`
-	Code    string `json:"Code" xml:"Code"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Message   string `json:"Message" xml:"Message"`
+	Data      string `json:"Data" xml:"Data"`
+	Code      string `json:"Code" xml:"Code"`
 }
 
 // CreateDescribeCloudDbExpertServiceRequest creates a request to invoke DescribeCloudDbExpertService API

+ 120 - 0
services/rds/describe_meta_list.go

@@ -0,0 +1,120 @@
+package rds
+
+//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"
+)
+
+// DescribeMetaList invokes the rds.DescribeMetaList API synchronously
+// api document: https://help.aliyun.com/api/rds/describemetalist.html
+func (client *Client) DescribeMetaList(request *DescribeMetaListRequest) (response *DescribeMetaListResponse, err error) {
+	response = CreateDescribeMetaListResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeMetaListWithChan invokes the rds.DescribeMetaList API asynchronously
+// api document: https://help.aliyun.com/api/rds/describemetalist.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeMetaListWithChan(request *DescribeMetaListRequest) (<-chan *DescribeMetaListResponse, <-chan error) {
+	responseChan := make(chan *DescribeMetaListResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeMetaList(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeMetaListWithCallback invokes the rds.DescribeMetaList API asynchronously
+// api document: https://help.aliyun.com/api/rds/describemetalist.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeMetaListWithCallback(request *DescribeMetaListRequest, callback func(response *DescribeMetaListResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeMetaListResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeMetaList(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeMetaListRequest is the request struct for api DescribeMetaList
+type DescribeMetaListRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	RestoreTime          string           `position:"Query" name:"RestoreTime"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	ClientToken          string           `position:"Query" name:"ClientToken"`
+	Pattern              string           `position:"Query" name:"Pattern"`
+	BackupSetID          string           `position:"Query" name:"BackupSetID"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+	GetDbName            string           `position:"Query" name:"GetDbName"`
+	RestoreType          string           `position:"Query" name:"RestoreType"`
+	PageSize             string           `position:"Query" name:"PageSize"`
+	DBInstanceId         string           `position:"Query" name:"DBInstanceId"`
+	PageIndex            string           `position:"Query" name:"PageIndex"`
+}
+
+// DescribeMetaListResponse is the response struct for api DescribeMetaList
+type DescribeMetaListResponse struct {
+	*responses.BaseResponse
+	RequestId        string                  `json:"RequestId" xml:"RequestId"`
+	DBInstanceName   string                  `json:"DBInstanceName" xml:"DBInstanceName"`
+	PageNumber       int                     `json:"PageNumber" xml:"PageNumber"`
+	PageRecordCount  int                     `json:"PageRecordCount" xml:"PageRecordCount"`
+	TotalRecordCount int                     `json:"TotalRecordCount" xml:"TotalRecordCount"`
+	TotalPageCount   int                     `json:"TotalPageCount" xml:"TotalPageCount"`
+	Items            ItemsInDescribeMetaList `json:"Items" xml:"Items"`
+}
+
+// CreateDescribeMetaListRequest creates a request to invoke DescribeMetaList API
+func CreateDescribeMetaListRequest() (request *DescribeMetaListRequest) {
+	request = &DescribeMetaListRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Rds", "2014-08-15", "DescribeMetaList", "rds", "openAPI")
+	return
+}
+
+// CreateDescribeMetaListResponse creates a response to parse from DescribeMetaList response
+func CreateDescribeMetaListResponse() (response *DescribeMetaListResponse) {
+	response = &DescribeMetaListResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 115 - 0
services/rds/describe_proxy_function_support.go

@@ -0,0 +1,115 @@
+package rds
+
+//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"
+)
+
+// DescribeProxyFunctionSupport invokes the rds.DescribeProxyFunctionSupport API synchronously
+// api document: https://help.aliyun.com/api/rds/describeproxyfunctionsupport.html
+func (client *Client) DescribeProxyFunctionSupport(request *DescribeProxyFunctionSupportRequest) (response *DescribeProxyFunctionSupportResponse, err error) {
+	response = CreateDescribeProxyFunctionSupportResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeProxyFunctionSupportWithChan invokes the rds.DescribeProxyFunctionSupport API asynchronously
+// api document: https://help.aliyun.com/api/rds/describeproxyfunctionsupport.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeProxyFunctionSupportWithChan(request *DescribeProxyFunctionSupportRequest) (<-chan *DescribeProxyFunctionSupportResponse, <-chan error) {
+	responseChan := make(chan *DescribeProxyFunctionSupportResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeProxyFunctionSupport(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeProxyFunctionSupportWithCallback invokes the rds.DescribeProxyFunctionSupport API asynchronously
+// api document: https://help.aliyun.com/api/rds/describeproxyfunctionsupport.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeProxyFunctionSupportWithCallback(request *DescribeProxyFunctionSupportRequest, callback func(response *DescribeProxyFunctionSupportResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeProxyFunctionSupportResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeProxyFunctionSupport(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeProxyFunctionSupportRequest is the request struct for api DescribeProxyFunctionSupport
+type DescribeProxyFunctionSupportRequest 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"`
+}
+
+// DescribeProxyFunctionSupportResponse is the response struct for api DescribeProxyFunctionSupport
+type DescribeProxyFunctionSupportResponse struct {
+	*responses.BaseResponse
+	RequestId                       string `json:"RequestId" xml:"RequestId"`
+	IsProxyEnable                   int    `json:"IsProxyEnable" xml:"IsProxyEnable"`
+	IsRwsplitEnable                 int    `json:"IsRwsplitEnable" xml:"IsRwsplitEnable"`
+	IsRwsplitSupportReplicationLag  int    `json:"IsRwsplitSupportReplicationLag" xml:"IsRwsplitSupportReplicationLag"`
+	IsRwsplitSupportWeight          int    `json:"IsRwsplitSupportWeight" xml:"IsRwsplitSupportWeight"`
+	IsTransparentSwitchEnable       int    `json:"IsTransparentSwitchEnable" xml:"IsTransparentSwitchEnable"`
+	IsShortConnectionOptimizeEnable int    `json:"IsShortConnectionOptimizeEnable" xml:"IsShortConnectionOptimizeEnable"`
+	IsAntiBruteFroceEnable          int    `json:"IsAntiBruteFroceEnable" xml:"IsAntiBruteFroceEnable"`
+}
+
+// CreateDescribeProxyFunctionSupportRequest creates a request to invoke DescribeProxyFunctionSupport API
+func CreateDescribeProxyFunctionSupportRequest() (request *DescribeProxyFunctionSupportRequest) {
+	request = &DescribeProxyFunctionSupportRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Rds", "2014-08-15", "DescribeProxyFunctionSupport", "rds", "openAPI")
+	return
+}
+
+// CreateDescribeProxyFunctionSupportResponse creates a response to parse from DescribeProxyFunctionSupport response
+func CreateDescribeProxyFunctionSupportResponse() (response *DescribeProxyFunctionSupportResponse) {
+	response = &DescribeProxyFunctionSupportResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 1 - 0
services/rds/describe_slow_log_records.go

@@ -87,6 +87,7 @@ type DescribeSlowLogRecordsRequest struct {
 	DBName               string           `position:"Query" name:"DBName"`
 	PageSize             requests.Integer `position:"Query" name:"PageSize"`
 	DBInstanceId         string           `position:"Query" name:"DBInstanceId"`
+	SQLHASH              string           `position:"Query" name:"SQLHASH"`
 }
 
 // DescribeSlowLogRecordsResponse is the response struct for api DescribeSlowLogRecords

+ 1 - 1
services/rds/describe_slow_logs.go

@@ -93,10 +93,10 @@ type DescribeSlowLogsRequest struct {
 type DescribeSlowLogsResponse struct {
 	*responses.BaseResponse
 	RequestId        string                  `json:"RequestId" xml:"RequestId"`
+	DBInstanceId     string                  `json:"DBInstanceId" xml:"DBInstanceId"`
 	Engine           string                  `json:"Engine" xml:"Engine"`
 	StartTime        string                  `json:"StartTime" xml:"StartTime"`
 	EndTime          string                  `json:"EndTime" xml:"EndTime"`
-	DBInstanceId     string                  `json:"DBInstanceId" xml:"DBInstanceId"`
 	TotalRecordCount int                     `json:"TotalRecordCount" xml:"TotalRecordCount"`
 	PageNumber       int                     `json:"PageNumber" xml:"PageNumber"`
 	PageRecordCount  int                     `json:"PageRecordCount" xml:"PageRecordCount"`

+ 4 - 3
services/rds/request_service_of_cloud_db_expert.go

@@ -84,9 +84,10 @@ type RequestServiceOfCloudDBExpertRequest struct {
 // RequestServiceOfCloudDBExpertResponse is the response struct for api RequestServiceOfCloudDBExpert
 type RequestServiceOfCloudDBExpertResponse struct {
 	*responses.BaseResponse
-	Message string `json:"Message" xml:"Message"`
-	Data    string `json:"Data" xml:"Data"`
-	Code    string `json:"Code" xml:"Code"`
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Message   string `json:"Message" xml:"Message"`
+	Data      string `json:"Data" xml:"Data"`
+	Code      string `json:"Code" xml:"Code"`
 }
 
 // CreateRequestServiceOfCloudDBExpertRequest creates a request to invoke RequestServiceOfCloudDBExpert API

+ 1 - 0
services/rds/restore_db_instance.go

@@ -77,6 +77,7 @@ func (client *Client) RestoreDBInstanceWithCallback(request *RestoreDBInstanceRe
 type RestoreDBInstanceRequest struct {
 	*requests.RpcRequest
 	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	RestoreTime          string           `position:"Query" name:"RestoreTime"`
 	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
 	ClientToken          string           `position:"Query" name:"ClientToken"`
 	BackupId             string           `position:"Query" name:"BackupId"`

+ 21 - 0
services/rds/struct_available_resource_in_describe_available_instance_class.go

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

+ 2 - 2
services/rds/struct_available_resource.go → services/rds/struct_available_resource_in_describe_available_resource.go

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

+ 1 - 1
services/rds/struct_available_resources.go

@@ -17,6 +17,6 @@ package rds
 
 // AvailableResources is a nested struct in rds response
 type AvailableResources struct {
-	DBInstanceClass string `json:"DBInstanceClass" xml:"DBInstanceClass"`
 	StorageRange    string `json:"StorageRange" xml:"StorageRange"`
+	DBInstanceClass string `json:"DBInstanceClass" xml:"DBInstanceClass"`
 }

+ 5 - 5
services/rds/struct_available_zone.go

@@ -17,9 +17,9 @@ package rds
 
 // AvailableZone is a nested struct in rds response
 type AvailableZone struct {
-	RegionId        string          `json:"RegionId" xml:"RegionId"`
-	ZoneId          string          `json:"ZoneId" xml:"ZoneId"`
-	Status          string          `json:"Status" xml:"Status"`
-	NetworkTypes    string          `json:"NetworkTypes" xml:"NetworkTypes"`
-	SupportedEngine SupportedEngine `json:"SupportedEngine" xml:"SupportedEngine"`
+	RegionId        string             `json:"RegionId" xml:"RegionId"`
+	ZoneId          string             `json:"ZoneId" xml:"ZoneId"`
+	Status          string             `json:"Status" xml:"Status"`
+	NetworkTypes    string             `json:"NetworkTypes" xml:"NetworkTypes"`
+	SupportedEngine []SupportedEngines `json:"SupportedEngine" xml:"SupportedEngine"`
 }

+ 21 - 0
services/rds/struct_available_zones_in_describe_available_instance_class.go

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

+ 2 - 2
services/rds/struct_available_zones.go → services/rds/struct_available_zones_in_describe_available_resource.go

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

+ 1 - 0
services/rds/struct_bin_log_file.go

@@ -23,6 +23,7 @@ type BinLogFile struct {
 	FileSize             int    `json:"FileSize" xml:"FileSize"`
 	Checksum             string `json:"Checksum" xml:"Checksum"`
 	LinkExpiredTime      string `json:"LinkExpiredTime" xml:"LinkExpiredTime"`
+	LogFileName          string `json:"LogFileName" xml:"LogFileName"`
 	DownloadLink         string `json:"DownloadLink" xml:"DownloadLink"`
 	LogBeginTime         string `json:"LogBeginTime" xml:"LogBeginTime"`
 }

+ 21 - 0
services/rds/struct_items_in_describe_meta_list.go

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

+ 23 - 0
services/rds/struct_meta.go

@@ -0,0 +1,23 @@
+package rds
+
+//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.
+
+// Meta is a nested struct in rds response
+type Meta struct {
+	Database string `json:"Database" xml:"Database"`
+	Tables   string `json:"Tables" xml:"Tables"`
+	Size     string `json:"Size" xml:"Size"`
+}

+ 1 - 0
services/rds/struct_sql_slow_log.go

@@ -19,6 +19,7 @@ package rds
 type SQLSlowLog struct {
 	SlowLogId                     int    `json:"SlowLogId" xml:"SlowLogId"`
 	SQLId                         int    `json:"SQLId" xml:"SQLId"`
+	SQLHASH                       int    `json:"SQLHASH" xml:"SQLHASH"`
 	SQLIdStr                      string `json:"SQLIdStr" xml:"SQLIdStr"`
 	DBName                        string `json:"DBName" xml:"DBName"`
 	SQLText                       string `json:"SQLText" xml:"SQLText"`

+ 21 - 0
services/rds/struct_supported_category_in_describe_available_instance_class.go

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

+ 2 - 2
services/rds/struct_supported_category.go → services/rds/struct_supported_category_in_describe_available_resource.go

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

+ 2 - 2
services/rds/struct_supported_categorys.go

@@ -17,6 +17,6 @@ package rds
 
 // SupportedCategorys is a nested struct in rds response
 type SupportedCategorys struct {
-	Category             string               `json:"Category" xml:"Category"`
-	SupportedStorageType SupportedStorageType `json:"SupportedStorageType" xml:"SupportedStorageType"`
+	Category             string                  `json:"Category" xml:"Category"`
+	SupportedStorageType []SupportedStorageTypes `json:"SupportedStorageType" xml:"SupportedStorageType"`
 }

+ 21 - 0
services/rds/struct_supported_engine_in_describe_available_instance_class.go

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

+ 2 - 2
services/rds/struct_supported_engine.go → services/rds/struct_supported_engine_in_describe_available_resource.go

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

+ 21 - 0
services/rds/struct_supported_engine_version_in_describe_available_instance_class.go

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

+ 2 - 2
services/rds/struct_supported_engine_version.go → services/rds/struct_supported_engine_version_in_describe_available_resource.go

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

+ 2 - 2
services/rds/struct_supported_engine_versions.go

@@ -17,6 +17,6 @@ package rds
 
 // SupportedEngineVersions is a nested struct in rds response
 type SupportedEngineVersions struct {
-	Version           string            `json:"Version" xml:"Version"`
-	SupportedCategory SupportedCategory `json:"SupportedCategory" xml:"SupportedCategory"`
+	Version           string               `json:"Version" xml:"Version"`
+	SupportedCategory []SupportedCategorys `json:"SupportedCategory" xml:"SupportedCategory"`
 }

+ 2 - 2
services/rds/struct_supported_engines.go

@@ -17,6 +17,6 @@ package rds
 
 // SupportedEngines is a nested struct in rds response
 type SupportedEngines struct {
-	Engine                 string                 `json:"Engine" xml:"Engine"`
-	SupportedEngineVersion SupportedEngineVersion `json:"SupportedEngineVersion" xml:"SupportedEngineVersion"`
+	Engine                 string                    `json:"Engine" xml:"Engine"`
+	SupportedEngineVersion []SupportedEngineVersions `json:"SupportedEngineVersion" xml:"SupportedEngineVersion"`
 }

+ 21 - 0
services/rds/struct_supported_storage_type_in_describe_available_instance_class.go

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

+ 2 - 2
services/rds/struct_supported_storage_type.go → services/rds/struct_supported_storage_type_in_describe_available_resource.go

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

+ 2 - 2
services/rds/struct_supported_storage_types.go

@@ -17,6 +17,6 @@ package rds
 
 // SupportedStorageTypes is a nested struct in rds response
 type SupportedStorageTypes struct {
-	StorageType       string            `json:"StorageType" xml:"StorageType"`
-	AvailableResource AvailableResource `json:"AvailableResource" xml:"AvailableResource"`
+	StorageType       string               `json:"StorageType" xml:"StorageType"`
+	AvailableResource []AvailableResources `json:"AvailableResource" xml:"AvailableResource"`
 }