Browse Source

Generated 2018-11-01 for dms-enterprise.

sdk-team 6 years ago
parent
commit
f56efaf46c

+ 8 - 0
ChangeLog.txt

@@ -1,3 +1,11 @@
+2019-12-20 Version: v1.60.301
+- Generated 2018-11-01 for `dms-enterprise`.
+- Supported Authorization API, includes GrantUserPermission, RevokeUserPermission, ListDatabaseUserPermssions, ListUserPermissions.
+- Supported Database or Table Metadata synchronization API, includes SyncInstanceMeta, SyncDatabaseMeta.
+- Supported Database or Table Owner set up API.
+- Supported GetUser API to get information of one DMS user.
+- Supported set Dingding mobile number with RegisterUser API.
+
 2019-12-20 Version: v1.60.300
 - Generated 2019-03-08 for `ivision`.
 - Supported Search stream predict task list use modelId for IVISION.

+ 109 - 0
services/dms_enterprise/get_user.go

@@ -0,0 +1,109 @@
+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.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// GetUser invokes the dms_enterprise.GetUser API synchronously
+// api document: https://help.aliyun.com/api/dms-enterprise/getuser.html
+func (client *Client) GetUser(request *GetUserRequest) (response *GetUserResponse, err error) {
+	response = CreateGetUserResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// GetUserWithChan invokes the dms_enterprise.GetUser API asynchronously
+// api document: https://help.aliyun.com/api/dms-enterprise/getuser.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetUserWithChan(request *GetUserRequest) (<-chan *GetUserResponse, <-chan error) {
+	responseChan := make(chan *GetUserResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.GetUser(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// GetUserWithCallback invokes the dms_enterprise.GetUser API asynchronously
+// api document: https://help.aliyun.com/api/dms-enterprise/getuser.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetUserWithCallback(request *GetUserRequest, callback func(response *GetUserResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *GetUserResponse
+		var err error
+		defer close(result)
+		response, err = client.GetUser(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// GetUserRequest is the request struct for api GetUser
+type GetUserRequest struct {
+	*requests.RpcRequest
+	Uid    requests.Integer `position:"Query" name:"Uid"`
+	UserId string           `position:"Query" name:"UserId"`
+	Tid    requests.Integer `position:"Query" name:"Tid"`
+}
+
+// GetUserResponse is the response struct for api GetUser
+type GetUserResponse 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"`
+	User         User   `json:"User" xml:"User"`
+}
+
+// CreateGetUserRequest creates a request to invoke GetUser API
+func CreateGetUserRequest() (request *GetUserRequest) {
+	request = &GetUserRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("dms-enterprise", "2018-11-01", "GetUser", "dmsenterprise", "openAPI")
+	return
+}
+
+// CreateGetUserResponse creates a response to parse from GetUser response
+func CreateGetUserResponse() (response *GetUserResponse) {
+	response = &GetUserResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 114 - 0
services/dms_enterprise/grant_user_permission.go

@@ -0,0 +1,114 @@
+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.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// GrantUserPermission invokes the dms_enterprise.GrantUserPermission API synchronously
+// api document: https://help.aliyun.com/api/dms-enterprise/grantuserpermission.html
+func (client *Client) GrantUserPermission(request *GrantUserPermissionRequest) (response *GrantUserPermissionResponse, err error) {
+	response = CreateGrantUserPermissionResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// GrantUserPermissionWithChan invokes the dms_enterprise.GrantUserPermission API asynchronously
+// api document: https://help.aliyun.com/api/dms-enterprise/grantuserpermission.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GrantUserPermissionWithChan(request *GrantUserPermissionRequest) (<-chan *GrantUserPermissionResponse, <-chan error) {
+	responseChan := make(chan *GrantUserPermissionResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.GrantUserPermission(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// GrantUserPermissionWithCallback invokes the dms_enterprise.GrantUserPermission API asynchronously
+// api document: https://help.aliyun.com/api/dms-enterprise/grantuserpermission.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GrantUserPermissionWithCallback(request *GrantUserPermissionRequest, callback func(response *GrantUserPermissionResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *GrantUserPermissionResponse
+		var err error
+		defer close(result)
+		response, err = client.GrantUserPermission(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// GrantUserPermissionRequest is the request struct for api GrantUserPermission
+type GrantUserPermissionRequest struct {
+	*requests.RpcRequest
+	PermTypes  string           `position:"Query" name:"PermTypes"`
+	DsType     string           `position:"Query" name:"DsType"`
+	ExpireDate string           `position:"Query" name:"ExpireDate"`
+	UserId     string           `position:"Query" name:"UserId"`
+	Tid        requests.Integer `position:"Query" name:"Tid"`
+	DbId       string           `position:"Query" name:"DbId"`
+	TableId    string           `position:"Query" name:"TableId"`
+	Logic      requests.Boolean `position:"Query" name:"Logic"`
+	TableName  string           `position:"Query" name:"TableName"`
+}
+
+// GrantUserPermissionResponse is the response struct for api GrantUserPermission
+type GrantUserPermissionResponse 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"`
+}
+
+// CreateGrantUserPermissionRequest creates a request to invoke GrantUserPermission API
+func CreateGrantUserPermissionRequest() (request *GrantUserPermissionRequest) {
+	request = &GrantUserPermissionRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("dms-enterprise", "2018-11-01", "GrantUserPermission", "dmsenterprise", "openAPI")
+	return
+}
+
+// CreateGrantUserPermissionResponse creates a response to parse from GrantUserPermission response
+func CreateGrantUserPermissionResponse() (response *GrantUserPermissionResponse) {
+	response = &GrantUserPermissionResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 114 - 0
services/dms_enterprise/list_database_user_permssions.go

@@ -0,0 +1,114 @@
+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.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// ListDatabaseUserPermssions invokes the dms_enterprise.ListDatabaseUserPermssions API synchronously
+// api document: https://help.aliyun.com/api/dms-enterprise/listdatabaseuserpermssions.html
+func (client *Client) ListDatabaseUserPermssions(request *ListDatabaseUserPermssionsRequest) (response *ListDatabaseUserPermssionsResponse, err error) {
+	response = CreateListDatabaseUserPermssionsResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ListDatabaseUserPermssionsWithChan invokes the dms_enterprise.ListDatabaseUserPermssions API asynchronously
+// api document: https://help.aliyun.com/api/dms-enterprise/listdatabaseuserpermssions.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListDatabaseUserPermssionsWithChan(request *ListDatabaseUserPermssionsRequest) (<-chan *ListDatabaseUserPermssionsResponse, <-chan error) {
+	responseChan := make(chan *ListDatabaseUserPermssionsResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ListDatabaseUserPermssions(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ListDatabaseUserPermssionsWithCallback invokes the dms_enterprise.ListDatabaseUserPermssions API asynchronously
+// api document: https://help.aliyun.com/api/dms-enterprise/listdatabaseuserpermssions.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListDatabaseUserPermssionsWithCallback(request *ListDatabaseUserPermssionsRequest, callback func(response *ListDatabaseUserPermssionsResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ListDatabaseUserPermssionsResponse
+		var err error
+		defer close(result)
+		response, err = client.ListDatabaseUserPermssions(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ListDatabaseUserPermssionsRequest is the request struct for api ListDatabaseUserPermssions
+type ListDatabaseUserPermssionsRequest struct {
+	*requests.RpcRequest
+	PermType   string           `position:"Query" name:"PermType"`
+	DbId       string           `position:"Query" name:"DbId"`
+	PageSize   requests.Integer `position:"Query" name:"PageSize"`
+	Logic      requests.Boolean `position:"Query" name:"Logic"`
+	Tid        requests.Integer `position:"Query" name:"Tid"`
+	PageNumber requests.Integer `position:"Query" name:"PageNumber"`
+	UserName   string           `position:"Query" name:"UserName"`
+}
+
+// ListDatabaseUserPermssionsResponse is the response struct for api ListDatabaseUserPermssions
+type ListDatabaseUserPermssionsResponse 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"`
+	TotalCount      int64                                       `json:"TotalCount" xml:"TotalCount"`
+	UserPermissions UserPermissionsInListDatabaseUserPermssions `json:"UserPermissions" xml:"UserPermissions"`
+}
+
+// CreateListDatabaseUserPermssionsRequest creates a request to invoke ListDatabaseUserPermssions API
+func CreateListDatabaseUserPermssionsRequest() (request *ListDatabaseUserPermssionsRequest) {
+	request = &ListDatabaseUserPermssionsRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("dms-enterprise", "2018-11-01", "ListDatabaseUserPermssions", "dmsenterprise", "openAPI")
+	return
+}
+
+// CreateListDatabaseUserPermssionsResponse creates a response to parse from ListDatabaseUserPermssions response
+func CreateListDatabaseUserPermssionsResponse() (response *ListDatabaseUserPermssionsResponse) {
+	response = &ListDatabaseUserPermssionsResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 116 - 0
services/dms_enterprise/list_user_permissions.go

@@ -0,0 +1,116 @@
+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.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// ListUserPermissions invokes the dms_enterprise.ListUserPermissions API synchronously
+// api document: https://help.aliyun.com/api/dms-enterprise/listuserpermissions.html
+func (client *Client) ListUserPermissions(request *ListUserPermissionsRequest) (response *ListUserPermissionsResponse, err error) {
+	response = CreateListUserPermissionsResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ListUserPermissionsWithChan invokes the dms_enterprise.ListUserPermissions API asynchronously
+// api document: https://help.aliyun.com/api/dms-enterprise/listuserpermissions.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListUserPermissionsWithChan(request *ListUserPermissionsRequest) (<-chan *ListUserPermissionsResponse, <-chan error) {
+	responseChan := make(chan *ListUserPermissionsResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ListUserPermissions(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ListUserPermissionsWithCallback invokes the dms_enterprise.ListUserPermissions API asynchronously
+// api document: https://help.aliyun.com/api/dms-enterprise/listuserpermissions.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListUserPermissionsWithCallback(request *ListUserPermissionsRequest, callback func(response *ListUserPermissionsResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ListUserPermissionsResponse
+		var err error
+		defer close(result)
+		response, err = client.ListUserPermissions(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ListUserPermissionsRequest is the request struct for api ListUserPermissions
+type ListUserPermissionsRequest struct {
+	*requests.RpcRequest
+	UserId       string           `position:"Query" name:"UserId"`
+	Tid          requests.Integer `position:"Query" name:"Tid"`
+	PageNumber   requests.Integer `position:"Query" name:"PageNumber"`
+	PermType     string           `position:"Query" name:"PermType"`
+	DatabaseName string           `position:"Query" name:"DatabaseName"`
+	EnvType      string           `position:"Query" name:"EnvType"`
+	DbType       string           `position:"Query" name:"DbType"`
+	PageSize     requests.Integer `position:"Query" name:"PageSize"`
+	Logic        requests.Boolean `position:"Query" name:"Logic"`
+}
+
+// ListUserPermissionsResponse is the response struct for api ListUserPermissions
+type ListUserPermissionsResponse 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"`
+	TotalCount      int64                                `json:"TotalCount" xml:"TotalCount"`
+	UserPermissions UserPermissionsInListUserPermissions `json:"UserPermissions" xml:"UserPermissions"`
+}
+
+// CreateListUserPermissionsRequest creates a request to invoke ListUserPermissions API
+func CreateListUserPermissionsRequest() (request *ListUserPermissionsRequest) {
+	request = &ListUserPermissionsRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("dms-enterprise", "2018-11-01", "ListUserPermissions", "dmsenterprise", "openAPI")
+	return
+}
+
+// CreateListUserPermissionsResponse creates a response to parse from ListUserPermissions response
+func CreateListUserPermissionsResponse() (response *ListUserPermissionsResponse) {
+	response = &ListUserPermissionsResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 1 - 0
services/dms_enterprise/register_user.go

@@ -79,6 +79,7 @@ type RegisterUserRequest struct {
 	RoleNames string           `position:"Query" name:"RoleNames"`
 	Uid       requests.Integer `position:"Query" name:"Uid"`
 	UserNick  string           `position:"Query" name:"UserNick"`
+	Mobile    string           `position:"Query" name:"Mobile"`
 	Tid       requests.Integer `position:"Query" name:"Tid"`
 }
 

+ 114 - 0
services/dms_enterprise/revoke_user_permission.go

@@ -0,0 +1,114 @@
+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.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// RevokeUserPermission invokes the dms_enterprise.RevokeUserPermission API synchronously
+// api document: https://help.aliyun.com/api/dms-enterprise/revokeuserpermission.html
+func (client *Client) RevokeUserPermission(request *RevokeUserPermissionRequest) (response *RevokeUserPermissionResponse, err error) {
+	response = CreateRevokeUserPermissionResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// RevokeUserPermissionWithChan invokes the dms_enterprise.RevokeUserPermission API asynchronously
+// api document: https://help.aliyun.com/api/dms-enterprise/revokeuserpermission.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) RevokeUserPermissionWithChan(request *RevokeUserPermissionRequest) (<-chan *RevokeUserPermissionResponse, <-chan error) {
+	responseChan := make(chan *RevokeUserPermissionResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.RevokeUserPermission(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// RevokeUserPermissionWithCallback invokes the dms_enterprise.RevokeUserPermission API asynchronously
+// api document: https://help.aliyun.com/api/dms-enterprise/revokeuserpermission.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) RevokeUserPermissionWithCallback(request *RevokeUserPermissionRequest, callback func(response *RevokeUserPermissionResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *RevokeUserPermissionResponse
+		var err error
+		defer close(result)
+		response, err = client.RevokeUserPermission(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// RevokeUserPermissionRequest is the request struct for api RevokeUserPermission
+type RevokeUserPermissionRequest struct {
+	*requests.RpcRequest
+	PermTypes    string           `position:"Query" name:"PermTypes"`
+	UserAccessId string           `position:"Query" name:"UserAccessId"`
+	DsType       string           `position:"Query" name:"DsType"`
+	UserId       string           `position:"Query" name:"UserId"`
+	Tid          requests.Integer `position:"Query" name:"Tid"`
+	DbId         string           `position:"Query" name:"DbId"`
+	TableId      string           `position:"Query" name:"TableId"`
+	Logic        requests.Boolean `position:"Query" name:"Logic"`
+	TableName    string           `position:"Query" name:"TableName"`
+}
+
+// RevokeUserPermissionResponse is the response struct for api RevokeUserPermission
+type RevokeUserPermissionResponse 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"`
+}
+
+// CreateRevokeUserPermissionRequest creates a request to invoke RevokeUserPermission API
+func CreateRevokeUserPermissionRequest() (request *RevokeUserPermissionRequest) {
+	request = &RevokeUserPermissionRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("dms-enterprise", "2018-11-01", "RevokeUserPermission", "dmsenterprise", "openAPI")
+	return
+}
+
+// CreateRevokeUserPermissionResponse creates a response to parse from RevokeUserPermission response
+func CreateRevokeUserPermissionResponse() (response *RevokeUserPermissionResponse) {
+	response = &RevokeUserPermissionResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 109 - 0
services/dms_enterprise/set_owners.go

@@ -0,0 +1,109 @@
+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.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// SetOwners invokes the dms_enterprise.SetOwners API synchronously
+// api document: https://help.aliyun.com/api/dms-enterprise/setowners.html
+func (client *Client) SetOwners(request *SetOwnersRequest) (response *SetOwnersResponse, err error) {
+	response = CreateSetOwnersResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// SetOwnersWithChan invokes the dms_enterprise.SetOwners API asynchronously
+// api document: https://help.aliyun.com/api/dms-enterprise/setowners.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) SetOwnersWithChan(request *SetOwnersRequest) (<-chan *SetOwnersResponse, <-chan error) {
+	responseChan := make(chan *SetOwnersResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.SetOwners(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// SetOwnersWithCallback invokes the dms_enterprise.SetOwners API asynchronously
+// api document: https://help.aliyun.com/api/dms-enterprise/setowners.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) SetOwnersWithCallback(request *SetOwnersRequest, callback func(response *SetOwnersResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *SetOwnersResponse
+		var err error
+		defer close(result)
+		response, err = client.SetOwners(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// SetOwnersRequest is the request struct for api SetOwners
+type SetOwnersRequest struct {
+	*requests.RpcRequest
+	ResourceId string           `position:"Query" name:"ResourceId"`
+	OwnerIds   string           `position:"Query" name:"OwnerIds"`
+	OwnerType  string           `position:"Query" name:"OwnerType"`
+	Tid        requests.Integer `position:"Query" name:"Tid"`
+}
+
+// SetOwnersResponse is the response struct for api SetOwners
+type SetOwnersResponse 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"`
+}
+
+// CreateSetOwnersRequest creates a request to invoke SetOwners API
+func CreateSetOwnersRequest() (request *SetOwnersRequest) {
+	request = &SetOwnersRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("dms-enterprise", "2018-11-01", "SetOwners", "dmsenterprise", "openAPI")
+	return
+}
+
+// CreateSetOwnersResponse creates a response to parse from SetOwners response
+func CreateSetOwnersResponse() (response *SetOwnersResponse) {
+	response = &SetOwnersResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 26 - 0
services/dms_enterprise/struct_perm_detail.go

@@ -0,0 +1,26 @@
+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.
+
+// PermDetail is a nested struct in dms_enterprise response
+type PermDetail struct {
+	CreateDate   string `json:"CreateDate" xml:"CreateDate"`
+	OriginFrom   string `json:"OriginFrom" xml:"OriginFrom"`
+	PermType     string `json:"PermType" xml:"PermType"`
+	ExpireDate   string `json:"ExpireDate" xml:"ExpireDate"`
+	UserAccessId string `json:"UserAccessId" xml:"UserAccessId"`
+	ExtraData    string `json:"ExtraData" xml:"ExtraData"`
+}

+ 21 - 0
services/dms_enterprise/struct_perm_details_in_list_database_user_permssions.go

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

+ 21 - 0
services/dms_enterprise/struct_perm_details_in_list_user_permissions.go

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

+ 2 - 2
services/dms_enterprise/struct_role_id_list.go → services/dms_enterprise/struct_role_id_list_in_get_user.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.
 
-// RoleIdList is a nested struct in dms_enterprise response
-type RoleIdList struct {
+// RoleIdListInGetUser is a nested struct in dms_enterprise response
+type RoleIdListInGetUser struct {
 	RoleIds []int `json:"RoleIds" xml:"RoleIds"`
 }

+ 21 - 0
services/dms_enterprise/struct_role_id_list_in_list_users.go

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

+ 2 - 2
services/dms_enterprise/struct_role_name_list.go → services/dms_enterprise/struct_role_name_list_in_get_user.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.
 
-// RoleNameList is a nested struct in dms_enterprise response
-type RoleNameList struct {
+// RoleNameListInGetUser is a nested struct in dms_enterprise response
+type RoleNameListInGetUser struct {
 	RoleNames []string `json:"RoleNames" xml:"RoleNames"`
 }

+ 21 - 0
services/dms_enterprise/struct_role_name_list_in_list_users.go

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

+ 8 - 8
services/dms_enterprise/struct_user.go

@@ -17,12 +17,12 @@ package dms_enterprise
 
 // User is a nested struct in dms_enterprise response
 type User struct {
-	UserId       string       `json:"UserId" xml:"UserId"`
-	Uid          int64        `json:"Uid" xml:"Uid"`
-	NickName     string       `json:"NickName" xml:"NickName"`
-	Mobile       string       `json:"Mobile" xml:"Mobile"`
-	ParentUid    int64        `json:"ParentUid" xml:"ParentUid"`
-	State        string       `json:"State" xml:"State"`
-	RoleIdList   RoleIdList   `json:"RoleIdList" xml:"RoleIdList"`
-	RoleNameList RoleNameList `json:"RoleNameList" xml:"RoleNameList"`
+	Uid          int64                 `json:"Uid" xml:"Uid"`
+	Mobile       string                `json:"Mobile" xml:"Mobile"`
+	State        string                `json:"State" xml:"State"`
+	UserId       string                `json:"UserId" xml:"UserId"`
+	ParentUid    int64                 `json:"ParentUid" xml:"ParentUid"`
+	NickName     string                `json:"NickName" xml:"NickName"`
+	RoleIdList   RoleIdListInGetUser   `json:"RoleIdList" xml:"RoleIdList"`
+	RoleNameList RoleNameListInGetUser `json:"RoleNameList" xml:"RoleNameList"`
 }

+ 35 - 0
services/dms_enterprise/struct_user_permission.go

@@ -0,0 +1,35 @@
+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.
+
+// UserPermission is a nested struct in dms_enterprise response
+type UserPermission struct {
+	Logic        bool                                    `json:"Logic" xml:"Logic"`
+	SchemaName   string                                  `json:"SchemaName" xml:"SchemaName"`
+	TableName    string                                  `json:"TableName" xml:"TableName"`
+	TableId      string                                  `json:"TableId" xml:"TableId"`
+	UserNickName string                                  `json:"UserNickName" xml:"UserNickName"`
+	DbType       string                                  `json:"DbType" xml:"DbType"`
+	ColumnName   string                                  `json:"ColumnName" xml:"ColumnName"`
+	SearchName   string                                  `json:"SearchName" xml:"SearchName"`
+	EnvType      string                                  `json:"EnvType" xml:"EnvType"`
+	UserId       string                                  `json:"UserId" xml:"UserId"`
+	InstanceId   string                                  `json:"InstanceId" xml:"InstanceId"`
+	Alias        string                                  `json:"Alias" xml:"Alias"`
+	DsType       string                                  `json:"DsType" xml:"DsType"`
+	DbId         string                                  `json:"DbId" xml:"DbId"`
+	PermDetails  PermDetailsInListDatabaseUserPermssions `json:"PermDetails" xml:"PermDetails"`
+}

+ 21 - 0
services/dms_enterprise/struct_user_permissions_in_list_database_user_permssions.go

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

+ 21 - 0
services/dms_enterprise/struct_user_permissions_in_list_user_permissions.go

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

+ 108 - 0
services/dms_enterprise/sync_database_meta.go

@@ -0,0 +1,108 @@
+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.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// SyncDatabaseMeta invokes the dms_enterprise.SyncDatabaseMeta API synchronously
+// api document: https://help.aliyun.com/api/dms-enterprise/syncdatabasemeta.html
+func (client *Client) SyncDatabaseMeta(request *SyncDatabaseMetaRequest) (response *SyncDatabaseMetaResponse, err error) {
+	response = CreateSyncDatabaseMetaResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// SyncDatabaseMetaWithChan invokes the dms_enterprise.SyncDatabaseMeta API asynchronously
+// api document: https://help.aliyun.com/api/dms-enterprise/syncdatabasemeta.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) SyncDatabaseMetaWithChan(request *SyncDatabaseMetaRequest) (<-chan *SyncDatabaseMetaResponse, <-chan error) {
+	responseChan := make(chan *SyncDatabaseMetaResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.SyncDatabaseMeta(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// SyncDatabaseMetaWithCallback invokes the dms_enterprise.SyncDatabaseMeta API asynchronously
+// api document: https://help.aliyun.com/api/dms-enterprise/syncdatabasemeta.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) SyncDatabaseMetaWithCallback(request *SyncDatabaseMetaRequest, callback func(response *SyncDatabaseMetaResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *SyncDatabaseMetaResponse
+		var err error
+		defer close(result)
+		response, err = client.SyncDatabaseMeta(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// SyncDatabaseMetaRequest is the request struct for api SyncDatabaseMeta
+type SyncDatabaseMetaRequest struct {
+	*requests.RpcRequest
+	DbId  string           `position:"Query" name:"DbId"`
+	Logic requests.Boolean `position:"Query" name:"Logic"`
+	Tid   requests.Integer `position:"Query" name:"Tid"`
+}
+
+// SyncDatabaseMetaResponse is the response struct for api SyncDatabaseMeta
+type SyncDatabaseMetaResponse 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"`
+}
+
+// CreateSyncDatabaseMetaRequest creates a request to invoke SyncDatabaseMeta API
+func CreateSyncDatabaseMetaRequest() (request *SyncDatabaseMetaRequest) {
+	request = &SyncDatabaseMetaRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("dms-enterprise", "2018-11-01", "SyncDatabaseMeta", "dmsenterprise", "openAPI")
+	return
+}
+
+// CreateSyncDatabaseMetaResponse creates a response to parse from SyncDatabaseMeta response
+func CreateSyncDatabaseMetaResponse() (response *SyncDatabaseMetaResponse) {
+	response = &SyncDatabaseMetaResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 108 - 0
services/dms_enterprise/sync_instance_meta.go

@@ -0,0 +1,108 @@
+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.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// SyncInstanceMeta invokes the dms_enterprise.SyncInstanceMeta API synchronously
+// api document: https://help.aliyun.com/api/dms-enterprise/syncinstancemeta.html
+func (client *Client) SyncInstanceMeta(request *SyncInstanceMetaRequest) (response *SyncInstanceMetaResponse, err error) {
+	response = CreateSyncInstanceMetaResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// SyncInstanceMetaWithChan invokes the dms_enterprise.SyncInstanceMeta API asynchronously
+// api document: https://help.aliyun.com/api/dms-enterprise/syncinstancemeta.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) SyncInstanceMetaWithChan(request *SyncInstanceMetaRequest) (<-chan *SyncInstanceMetaResponse, <-chan error) {
+	responseChan := make(chan *SyncInstanceMetaResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.SyncInstanceMeta(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// SyncInstanceMetaWithCallback invokes the dms_enterprise.SyncInstanceMeta API asynchronously
+// api document: https://help.aliyun.com/api/dms-enterprise/syncinstancemeta.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) SyncInstanceMetaWithCallback(request *SyncInstanceMetaRequest, callback func(response *SyncInstanceMetaResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *SyncInstanceMetaResponse
+		var err error
+		defer close(result)
+		response, err = client.SyncInstanceMeta(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// SyncInstanceMetaRequest is the request struct for api SyncInstanceMeta
+type SyncInstanceMetaRequest struct {
+	*requests.RpcRequest
+	InstanceId  string           `position:"Query" name:"InstanceId"`
+	IgnoreTable requests.Boolean `position:"Query" name:"IgnoreTable"`
+	Tid         requests.Integer `position:"Query" name:"Tid"`
+}
+
+// SyncInstanceMetaResponse is the response struct for api SyncInstanceMeta
+type SyncInstanceMetaResponse 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"`
+}
+
+// CreateSyncInstanceMetaRequest creates a request to invoke SyncInstanceMeta API
+func CreateSyncInstanceMetaRequest() (request *SyncInstanceMetaRequest) {
+	request = &SyncInstanceMetaRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("dms-enterprise", "2018-11-01", "SyncInstanceMeta", "dmsenterprise", "openAPI")
+	return
+}
+
+// CreateSyncInstanceMetaResponse creates a response to parse from SyncInstanceMeta response
+func CreateSyncInstanceMetaResponse() (response *SyncInstanceMetaResponse) {
+	response = &SyncInstanceMetaResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}