Browse Source

Fix ListDatabases CatalogName dataType integer to string.

sdk-team 6 years ago
parent
commit
3620947e56

+ 6 - 0
ChangeLog.txt

@@ -1,3 +1,9 @@
+2019-10-22 Version: 1.60.206
+- Fix ListDatabases CatalogName dataType integer to string.
+- Remove GetLogicDatabase invalid output param named TotalCount.
+- Remove ListIndexes invalid output param named ColumnList.
+- Support SearchTable API to filter searchTarget.
+
 2019-10-22 Version: 1.60.205
 - Supported ExternalId IMM.
 

+ 0 - 1
services/dms_enterprise/get_logic_database.go

@@ -87,7 +87,6 @@ type GetLogicDatabaseResponse struct {
 	Success       bool          `json:"Success" xml:"Success"`
 	ErrorMessage  string        `json:"ErrorMessage" xml:"ErrorMessage"`
 	ErrorCode     string        `json:"ErrorCode" xml:"ErrorCode"`
-	TotalCount    int64         `json:"TotalCount" xml:"TotalCount"`
 	LogicDatabase LogicDatabase `json:"LogicDatabase" xml:"LogicDatabase"`
 }
 

+ 5 - 5
services/dms_enterprise/list_columns.go

@@ -84,11 +84,11 @@ type ListColumnsRequest struct {
 // ListColumnsResponse is the response struct for api ListColumns
 type ListColumnsResponse struct {
 	*responses.BaseResponse
-	RequestId    string                  `json:"RequestId" xml:"RequestId"`
-	Success      bool                    `json:"Success" xml:"Success"`
-	ErrorMessage string                  `json:"ErrorMessage" xml:"ErrorMessage"`
-	ErrorCode    string                  `json:"ErrorCode" xml:"ErrorCode"`
-	ColumnList   ColumnListInListColumns `json:"ColumnList" xml:"ColumnList"`
+	RequestId    string     `json:"RequestId" xml:"RequestId"`
+	Success      bool       `json:"Success" xml:"Success"`
+	ErrorMessage string     `json:"ErrorMessage" xml:"ErrorMessage"`
+	ErrorCode    string     `json:"ErrorCode" xml:"ErrorCode"`
+	ColumnList   ColumnList `json:"ColumnList" xml:"ColumnList"`
 }
 
 // CreateListColumnsRequest creates a request to invoke ListColumns API

+ 5 - 6
services/dms_enterprise/list_indexes.go

@@ -84,12 +84,11 @@ type ListIndexesRequest struct {
 // ListIndexesResponse is the response struct for api ListIndexes
 type ListIndexesResponse struct {
 	*responses.BaseResponse
-	RequestId    string                  `json:"RequestId" xml:"RequestId"`
-	Success      bool                    `json:"Success" xml:"Success"`
-	ErrorMessage string                  `json:"ErrorMessage" xml:"ErrorMessage"`
-	ErrorCode    string                  `json:"ErrorCode" xml:"ErrorCode"`
-	ColumnList   ColumnListInListIndexes `json:"ColumnList" xml:"ColumnList"`
-	IndexList    IndexList               `json:"IndexList" xml:"IndexList"`
+	RequestId    string    `json:"RequestId" xml:"RequestId"`
+	Success      bool      `json:"Success" xml:"Success"`
+	ErrorMessage string    `json:"ErrorMessage" xml:"ErrorMessage"`
+	ErrorCode    string    `json:"ErrorCode" xml:"ErrorCode"`
+	IndexList    IndexList `json:"IndexList" xml:"IndexList"`
 }
 
 // CreateListIndexesRequest creates a request to invoke ListIndexes API

+ 7 - 6
services/dms_enterprise/search_table.go

@@ -76,12 +76,13 @@ func (client *Client) SearchTableWithCallback(request *SearchTableRequest, callb
 // SearchTableRequest is the request struct for api SearchTable
 type SearchTableRequest struct {
 	*requests.RpcRequest
-	PageSize    requests.Integer `position:"Query" name:"PageSize"`
-	EnvType     string           `position:"Query" name:"EnvType"`
-	SearchKey   string           `position:"Query" name:"SearchKey"`
-	SearchRange string           `position:"Query" name:"SearchRange"`
-	Tid         requests.Integer `position:"Query" name:"Tid"`
-	PageNumber  requests.Integer `position:"Query" name:"PageNumber"`
+	SearchTarget string           `position:"Query" name:"SearchTarget"`
+	PageSize     requests.Integer `position:"Query" name:"PageSize"`
+	EnvType      string           `position:"Query" name:"EnvType"`
+	SearchKey    string           `position:"Query" name:"SearchKey"`
+	SearchRange  string           `position:"Query" name:"SearchRange"`
+	Tid          requests.Integer `position:"Query" name:"Tid"`
+	PageNumber   requests.Integer `position:"Query" name:"PageNumber"`
 }
 
 // SearchTableResponse is the response struct for api SearchTable

+ 2 - 2
services/dms_enterprise/struct_column_list_in_list_columns.go → services/dms_enterprise/struct_column_list.go

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

+ 0 - 21
services/dms_enterprise/struct_column_list_in_list_indexes.go

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

+ 1 - 1
services/dms_enterprise/struct_database_in_list_databases.go

@@ -21,7 +21,7 @@ type DatabaseInListDatabases struct {
 	DatabaseId    string                       `json:"DatabaseId" xml:"DatabaseId"`
 	EnvType       string                       `json:"EnvType" xml:"EnvType"`
 	SchemaName    string                       `json:"SchemaName" xml:"SchemaName"`
-	CatalogName   int                          `json:"CatalogName" xml:"CatalogName"`
+	CatalogName   string                       `json:"CatalogName" xml:"CatalogName"`
 	Encoding      string                       `json:"Encoding" xml:"Encoding"`
 	SearchName    string                       `json:"SearchName" xml:"SearchName"`
 	State         string                       `json:"State" xml:"State"`