Browse Source

DescribeIntance status type modification.

sdk-team 6 years ago
parent
commit
aa78f929a8
31 changed files with 1404 additions and 16 deletions
  1. 3 0
      ChangeLog.txt
  2. 107 0
      services/yundun_dbaudit/clear_instance_storage.go
  3. 25 0
      services/yundun_dbaudit/client.go
  4. 1 1
      services/yundun_dbaudit/config_instance_white_list.go
  5. 105 0
      services/yundun_dbaudit/delete_alarm_receive_config.go
  6. 139 0
      services/yundun_dbaudit/describe_audit_logs.go
  7. 139 0
      services/yundun_dbaudit/describe_event_logs.go
  8. 1 0
      services/yundun_dbaudit/describe_instance_attribue.go
  9. 1 0
      services/yundun_dbaudit/describe_instance_attribute.go
  10. 106 0
      services/yundun_dbaudit/describe_instance_storage.go
  11. 8 7
      services/yundun_dbaudit/describe_instances.go
  12. 106 0
      services/yundun_dbaudit/describe_regions.go
  13. 130 0
      services/yundun_dbaudit/describe_session_logs.go
  14. 20 0
      services/yundun_dbaudit/endpoint.go
  15. 3 2
      services/yundun_dbaudit/list_tag_keys.go
  16. 2 1
      services/yundun_dbaudit/list_tag_resources.go
  17. 1 1
      services/yundun_dbaudit/modify_instance_attribute.go
  18. 108 0
      services/yundun_dbaudit/modify_instance_storage.go
  19. 107 0
      services/yundun_dbaudit/move_resource_group.go
  20. 21 0
      services/yundun_dbaudit/struct_audit_logs.go
  21. 21 0
      services/yundun_dbaudit/struct_event_logs.go
  22. 1 1
      services/yundun_dbaudit/struct_instance.go
  23. 25 0
      services/yundun_dbaudit/struct_instance_storage.go
  24. 21 0
      services/yundun_dbaudit/struct_instance_storages.go
  25. 68 0
      services/yundun_dbaudit/struct_item.go
  26. 65 0
      services/yundun_dbaudit/struct_item_in_describe_event_logs.go
  27. 23 0
      services/yundun_dbaudit/struct_region.go
  28. 21 0
      services/yundun_dbaudit/struct_regions.go
  29. 21 0
      services/yundun_dbaudit/struct_session_logs.go
  30. 2 1
      services/yundun_dbaudit/tag_resources.go
  31. 3 2
      services/yundun_dbaudit/untag_resources.go

+ 3 - 0
ChangeLog.txt

@@ -1,3 +1,6 @@
+2019-10-09 Version: 1.60.186
+- DescribeIntance status type modification.
+
 2019-10-08 Version: 1.60.185
 - Supported Grab Frame IMM.
 

+ 107 - 0
services/yundun_dbaudit/clear_instance_storage.go

@@ -0,0 +1,107 @@
+package yundun_dbaudit
+
+//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"
+)
+
+// ClearInstanceStorage invokes the yundun_dbaudit.ClearInstanceStorage API synchronously
+// api document: https://help.aliyun.com/api/yundun-dbaudit/clearinstancestorage.html
+func (client *Client) ClearInstanceStorage(request *ClearInstanceStorageRequest) (response *ClearInstanceStorageResponse, err error) {
+	response = CreateClearInstanceStorageResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ClearInstanceStorageWithChan invokes the yundun_dbaudit.ClearInstanceStorage API asynchronously
+// api document: https://help.aliyun.com/api/yundun-dbaudit/clearinstancestorage.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ClearInstanceStorageWithChan(request *ClearInstanceStorageRequest) (<-chan *ClearInstanceStorageResponse, <-chan error) {
+	responseChan := make(chan *ClearInstanceStorageResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ClearInstanceStorage(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ClearInstanceStorageWithCallback invokes the yundun_dbaudit.ClearInstanceStorage API asynchronously
+// api document: https://help.aliyun.com/api/yundun-dbaudit/clearinstancestorage.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ClearInstanceStorageWithCallback(request *ClearInstanceStorageRequest, callback func(response *ClearInstanceStorageResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ClearInstanceStorageResponse
+		var err error
+		defer close(result)
+		response, err = client.ClearInstanceStorage(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ClearInstanceStorageRequest is the request struct for api ClearInstanceStorage
+type ClearInstanceStorageRequest struct {
+	*requests.RpcRequest
+	StorageCategory string `position:"Query" name:"StorageCategory"`
+	InstanceId      string `position:"Query" name:"InstanceId"`
+	SourceIp        string `position:"Query" name:"SourceIp"`
+	Lang            string `position:"Query" name:"Lang"`
+	StorageSpace    string `position:"Query" name:"StorageSpace"`
+}
+
+// ClearInstanceStorageResponse is the response struct for api ClearInstanceStorage
+type ClearInstanceStorageResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateClearInstanceStorageRequest creates a request to invoke ClearInstanceStorage API
+func CreateClearInstanceStorageRequest() (request *ClearInstanceStorageRequest) {
+	request = &ClearInstanceStorageRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Yundun-dbaudit", "2018-10-29", "ClearInstanceStorage", "dbaudit", "openAPI")
+	return
+}
+
+// CreateClearInstanceStorageResponse creates a response to parse from ClearInstanceStorage response
+func CreateClearInstanceStorageResponse() (response *ClearInstanceStorageResponse) {
+	response = &ClearInstanceStorageResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 25 - 0
services/yundun_dbaudit/client.go

@@ -16,6 +16,8 @@ package yundun_dbaudit
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
 import (
+	"reflect"
+
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider"
@@ -26,10 +28,25 @@ type Client struct {
 	sdk.Client
 }
 
+// SetClientProperty Set Property by Reflect
+func SetClientProperty(client *Client, propertyName string, propertyValue interface{}) {
+	v := reflect.ValueOf(client).Elem()
+	if v.FieldByName(propertyName).IsValid() && v.FieldByName(propertyName).CanSet() {
+		v.FieldByName(propertyName).Set(reflect.ValueOf(propertyValue))
+	}
+}
+
+// SetEndpointDataToClient Set EndpointMap and ENdpointType
+func SetEndpointDataToClient(client *Client) {
+	SetClientProperty(client, "EndpointMap", GetEndpointMap())
+	SetClientProperty(client, "EndpointType", GetEndpointType())
+}
+
 // NewClient creates a sdk client with environment variables
 func NewClient() (client *Client, err error) {
 	client = &Client{}
 	err = client.Init()
+	SetEndpointDataToClient(client)
 	return
 }
 
@@ -44,6 +61,7 @@ func NewClientWithProvider(regionId string, providers ...provider.Provider) (cli
 		pc = provider.NewProviderChain(providers)
 	}
 	err = client.InitWithProviderChain(regionId, pc)
+	SetEndpointDataToClient(client)
 	return
 }
 
@@ -52,6 +70,7 @@ func NewClientWithProvider(regionId string, providers ...provider.Provider) (cli
 func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error) {
 	client = &Client{}
 	err = client.InitWithOptions(regionId, config, credential)
+	SetEndpointDataToClient(client)
 	return
 }
 
@@ -60,6 +79,7 @@ func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.C
 func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) {
 	client = &Client{}
 	err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret)
+	SetEndpointDataToClient(client)
 	return
 }
 
@@ -68,6 +88,7 @@ func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (clie
 func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) {
 	client = &Client{}
 	err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken)
+	SetEndpointDataToClient(client)
 	return
 }
 
@@ -76,6 +97,7 @@ func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToke
 func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) {
 	client = &Client{}
 	err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName)
+	SetEndpointDataToClient(client)
 	return
 }
 
@@ -84,6 +106,7 @@ func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, role
 func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string) (client *Client, err error) {
 	client = &Client{}
 	err = client.InitWithRamRoleArnAndPolicy(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy)
+	SetEndpointDataToClient(client)
 	return
 }
 
@@ -92,6 +115,7 @@ func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySec
 func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) {
 	client = &Client{}
 	err = client.InitWithEcsRamRole(regionId, roleName)
+	SetEndpointDataToClient(client)
 	return
 }
 
@@ -100,5 +124,6 @@ func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client,
 func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) {
 	client = &Client{}
 	err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration)
+	SetEndpointDataToClient(client)
 	return
 }

+ 1 - 1
services/yundun_dbaudit/config_instance_white_list.go

@@ -76,9 +76,9 @@ func (client *Client) ConfigInstanceWhiteListWithCallback(request *ConfigInstanc
 // ConfigInstanceWhiteListRequest is the request struct for api ConfigInstanceWhiteList
 type ConfigInstanceWhiteListRequest struct {
 	*requests.RpcRequest
+	WhiteList  *[]string `position:"Query" name:"WhiteList"  type:"Repeated"`
 	InstanceId string    `position:"Query" name:"InstanceId"`
 	SourceIp   string    `position:"Query" name:"SourceIp"`
-	WhiteList  *[]string `position:"Query" name:"WhiteList"  type:"Repeated"`
 	Lang       string    `position:"Query" name:"Lang"`
 }
 

+ 105 - 0
services/yundun_dbaudit/delete_alarm_receive_config.go

@@ -0,0 +1,105 @@
+package yundun_dbaudit
+
+//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"
+)
+
+// DeleteAlarmReceiveConfig invokes the yundun_dbaudit.DeleteAlarmReceiveConfig API synchronously
+// api document: https://help.aliyun.com/api/yundun-dbaudit/deletealarmreceiveconfig.html
+func (client *Client) DeleteAlarmReceiveConfig(request *DeleteAlarmReceiveConfigRequest) (response *DeleteAlarmReceiveConfigResponse, err error) {
+	response = CreateDeleteAlarmReceiveConfigResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DeleteAlarmReceiveConfigWithChan invokes the yundun_dbaudit.DeleteAlarmReceiveConfig API asynchronously
+// api document: https://help.aliyun.com/api/yundun-dbaudit/deletealarmreceiveconfig.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteAlarmReceiveConfigWithChan(request *DeleteAlarmReceiveConfigRequest) (<-chan *DeleteAlarmReceiveConfigResponse, <-chan error) {
+	responseChan := make(chan *DeleteAlarmReceiveConfigResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DeleteAlarmReceiveConfig(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DeleteAlarmReceiveConfigWithCallback invokes the yundun_dbaudit.DeleteAlarmReceiveConfig API asynchronously
+// api document: https://help.aliyun.com/api/yundun-dbaudit/deletealarmreceiveconfig.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteAlarmReceiveConfigWithCallback(request *DeleteAlarmReceiveConfigRequest, callback func(response *DeleteAlarmReceiveConfigResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DeleteAlarmReceiveConfigResponse
+		var err error
+		defer close(result)
+		response, err = client.DeleteAlarmReceiveConfig(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DeleteAlarmReceiveConfigRequest is the request struct for api DeleteAlarmReceiveConfig
+type DeleteAlarmReceiveConfigRequest struct {
+	*requests.RpcRequest
+	InstanceId string `position:"Query" name:"InstanceId"`
+	SourceIp   string `position:"Query" name:"SourceIp"`
+	ConfigId   string `position:"Query" name:"ConfigId"`
+}
+
+// DeleteAlarmReceiveConfigResponse is the response struct for api DeleteAlarmReceiveConfig
+type DeleteAlarmReceiveConfigResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateDeleteAlarmReceiveConfigRequest creates a request to invoke DeleteAlarmReceiveConfig API
+func CreateDeleteAlarmReceiveConfigRequest() (request *DeleteAlarmReceiveConfigRequest) {
+	request = &DeleteAlarmReceiveConfigRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Yundun-dbaudit", "2018-10-29", "DeleteAlarmReceiveConfig", "dbaudit", "openAPI")
+	return
+}
+
+// CreateDeleteAlarmReceiveConfigResponse creates a response to parse from DeleteAlarmReceiveConfig response
+func CreateDeleteAlarmReceiveConfigResponse() (response *DeleteAlarmReceiveConfigResponse) {
+	response = &DeleteAlarmReceiveConfigResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 139 - 0
services/yundun_dbaudit/describe_audit_logs.go

@@ -0,0 +1,139 @@
+package yundun_dbaudit
+
+//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"
+)
+
+// DescribeAuditLogs invokes the yundun_dbaudit.DescribeAuditLogs API synchronously
+// api document: https://help.aliyun.com/api/yundun-dbaudit/describeauditlogs.html
+func (client *Client) DescribeAuditLogs(request *DescribeAuditLogsRequest) (response *DescribeAuditLogsResponse, err error) {
+	response = CreateDescribeAuditLogsResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeAuditLogsWithChan invokes the yundun_dbaudit.DescribeAuditLogs API asynchronously
+// api document: https://help.aliyun.com/api/yundun-dbaudit/describeauditlogs.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeAuditLogsWithChan(request *DescribeAuditLogsRequest) (<-chan *DescribeAuditLogsResponse, <-chan error) {
+	responseChan := make(chan *DescribeAuditLogsResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeAuditLogs(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeAuditLogsWithCallback invokes the yundun_dbaudit.DescribeAuditLogs API asynchronously
+// api document: https://help.aliyun.com/api/yundun-dbaudit/describeauditlogs.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeAuditLogsWithCallback(request *DescribeAuditLogsRequest, callback func(response *DescribeAuditLogsResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeAuditLogsResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeAuditLogs(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeAuditLogsRequest is the request struct for api DescribeAuditLogs
+type DescribeAuditLogsRequest struct {
+	*requests.RpcRequest
+	Dip         string           `position:"Query" name:"Dip"`
+	StartTime   string           `position:"Query" name:"StartTime"`
+	Sessionid   string           `position:"Query" name:"Sessionid"`
+	Dir         string           `position:"Query" name:"Dir"`
+	HostName    string           `position:"Query" name:"HostName"`
+	SourceIp    string           `position:"Query" name:"SourceIp"`
+	Payload     string           `position:"Query" name:"Payload"`
+	LoginUser   string           `position:"Query" name:"LoginUser"`
+	QueryString string           `position:"Query" name:"QueryString"`
+	Sort        string           `position:"Query" name:"Sort"`
+	SqlLen      string           `position:"Query" name:"SqlLen"`
+	InstanceId  string           `position:"Query" name:"InstanceId"`
+	DbName      string           `position:"Query" name:"DbName"`
+	DbId        string           `position:"Query" name:"DbId"`
+	AlarmName   string           `position:"Query" name:"AlarmName"`
+	Dmac        string           `position:"Query" name:"Dmac"`
+	Smac        string           `position:"Query" name:"Smac"`
+	Result      string           `position:"Query" name:"Result"`
+	Dport       string           `position:"Query" name:"Dport"`
+	OpType      string           `position:"Query" name:"OpType"`
+	ClientUser  string           `position:"Query" name:"ClientUser"`
+	PageSize    requests.Integer `position:"Query" name:"PageSize"`
+	Sip         string           `position:"Query" name:"Sip"`
+	EffectRow   string           `position:"Query" name:"EffectRow"`
+	ResultDesc  string           `position:"Query" name:"ResultDesc"`
+	Sqlid       string           `position:"Query" name:"Sqlid"`
+	Cost        string           `position:"Query" name:"Cost"`
+	EndTime     string           `position:"Query" name:"EndTime"`
+	CurrentPage requests.Integer `position:"Query" name:"CurrentPage"`
+	Accessid    string           `position:"Query" name:"Accessid"`
+	DbType      string           `position:"Query" name:"DbType"`
+	ClientPrg   string           `position:"Query" name:"ClientPrg"`
+	Sport       string           `position:"Query" name:"Sport"`
+	DataSet     string           `position:"Query" name:"DataSet"`
+	AlarmLevel  string           `position:"Query" name:"AlarmLevel"`
+}
+
+// DescribeAuditLogsResponse is the response struct for api DescribeAuditLogs
+type DescribeAuditLogsResponse struct {
+	*responses.BaseResponse
+	RequestId  string `json:"RequestId" xml:"RequestId"`
+	TotalCount int    `json:"TotalCount" xml:"TotalCount"`
+	AuditLogs  []Item `json:"AuditLogs" xml:"AuditLogs"`
+}
+
+// CreateDescribeAuditLogsRequest creates a request to invoke DescribeAuditLogs API
+func CreateDescribeAuditLogsRequest() (request *DescribeAuditLogsRequest) {
+	request = &DescribeAuditLogsRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Yundun-dbaudit", "2018-10-29", "DescribeAuditLogs", "dbaudit", "openAPI")
+	return
+}
+
+// CreateDescribeAuditLogsResponse creates a response to parse from DescribeAuditLogs response
+func CreateDescribeAuditLogsResponse() (response *DescribeAuditLogsResponse) {
+	response = &DescribeAuditLogsResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 139 - 0
services/yundun_dbaudit/describe_event_logs.go

@@ -0,0 +1,139 @@
+package yundun_dbaudit
+
+//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"
+)
+
+// DescribeEventLogs invokes the yundun_dbaudit.DescribeEventLogs API synchronously
+// api document: https://help.aliyun.com/api/yundun-dbaudit/describeeventlogs.html
+func (client *Client) DescribeEventLogs(request *DescribeEventLogsRequest) (response *DescribeEventLogsResponse, err error) {
+	response = CreateDescribeEventLogsResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeEventLogsWithChan invokes the yundun_dbaudit.DescribeEventLogs API asynchronously
+// api document: https://help.aliyun.com/api/yundun-dbaudit/describeeventlogs.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeEventLogsWithChan(request *DescribeEventLogsRequest) (<-chan *DescribeEventLogsResponse, <-chan error) {
+	responseChan := make(chan *DescribeEventLogsResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeEventLogs(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeEventLogsWithCallback invokes the yundun_dbaudit.DescribeEventLogs API asynchronously
+// api document: https://help.aliyun.com/api/yundun-dbaudit/describeeventlogs.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeEventLogsWithCallback(request *DescribeEventLogsRequest, callback func(response *DescribeEventLogsResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeEventLogsResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeEventLogs(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeEventLogsRequest is the request struct for api DescribeEventLogs
+type DescribeEventLogsRequest struct {
+	*requests.RpcRequest
+	Dip         string           `position:"Query" name:"Dip"`
+	StartTime   string           `position:"Query" name:"StartTime"`
+	Sessionid   string           `position:"Query" name:"Sessionid"`
+	Dir         string           `position:"Query" name:"Dir"`
+	HostName    string           `position:"Query" name:"HostName"`
+	SourceIp    string           `position:"Query" name:"SourceIp"`
+	Payload     string           `position:"Query" name:"Payload"`
+	LoginUser   string           `position:"Query" name:"LoginUser"`
+	QueryString string           `position:"Query" name:"QueryString"`
+	Sort        string           `position:"Query" name:"Sort"`
+	SqlLen      string           `position:"Query" name:"SqlLen"`
+	InstanceId  string           `position:"Query" name:"InstanceId"`
+	DbName      string           `position:"Query" name:"DbName"`
+	DbId        string           `position:"Query" name:"DbId"`
+	Dmac        string           `position:"Query" name:"Dmac"`
+	Smac        string           `position:"Query" name:"Smac"`
+	EventName   string           `position:"Query" name:"EventName"`
+	Dport       string           `position:"Query" name:"Dport"`
+	Result      string           `position:"Query" name:"Result"`
+	OpType      string           `position:"Query" name:"OpType"`
+	ClientUser  string           `position:"Query" name:"ClientUser"`
+	PageSize    requests.Integer `position:"Query" name:"PageSize"`
+	Sip         string           `position:"Query" name:"Sip"`
+	EffectRow   string           `position:"Query" name:"EffectRow"`
+	ResultDesc  string           `position:"Query" name:"ResultDesc"`
+	Sqlid       string           `position:"Query" name:"Sqlid"`
+	Cost        string           `position:"Query" name:"Cost"`
+	EndTime     string           `position:"Query" name:"EndTime"`
+	CurrentPage requests.Integer `position:"Query" name:"CurrentPage"`
+	Accessid    string           `position:"Query" name:"Accessid"`
+	EventLevel  string           `position:"Query" name:"EventLevel"`
+	DbType      string           `position:"Query" name:"DbType"`
+	ClientPrg   string           `position:"Query" name:"ClientPrg"`
+	Sport       string           `position:"Query" name:"Sport"`
+	DataSet     string           `position:"Query" name:"DataSet"`
+}
+
+// DescribeEventLogsResponse is the response struct for api DescribeEventLogs
+type DescribeEventLogsResponse struct {
+	*responses.BaseResponse
+	RequestId  string                    `json:"RequestId" xml:"RequestId"`
+	TotalCount int                       `json:"TotalCount" xml:"TotalCount"`
+	EventLogs  []ItemInDescribeEventLogs `json:"EventLogs" xml:"EventLogs"`
+}
+
+// CreateDescribeEventLogsRequest creates a request to invoke DescribeEventLogs API
+func CreateDescribeEventLogsRequest() (request *DescribeEventLogsRequest) {
+	request = &DescribeEventLogsRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Yundun-dbaudit", "2018-10-29", "DescribeEventLogs", "dbaudit", "openAPI")
+	return
+}
+
+// CreateDescribeEventLogsResponse creates a response to parse from DescribeEventLogs response
+func CreateDescribeEventLogsResponse() (response *DescribeEventLogsResponse) {
+	response = &DescribeEventLogsResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 1 - 0
services/yundun_dbaudit/describe_instance_attribue.go

@@ -78,6 +78,7 @@ type DescribeInstanceAttribueRequest struct {
 	*requests.RpcRequest
 	InstanceId string `position:"Query" name:"InstanceId"`
 	SourceIp   string `position:"Query" name:"SourceIp"`
+	Lang       string `position:"Query" name:"Lang"`
 }
 
 // DescribeInstanceAttribueResponse is the response struct for api DescribeInstanceAttribue

+ 1 - 0
services/yundun_dbaudit/describe_instance_attribute.go

@@ -78,6 +78,7 @@ type DescribeInstanceAttributeRequest struct {
 	*requests.RpcRequest
 	InstanceId string `position:"Query" name:"InstanceId"`
 	SourceIp   string `position:"Query" name:"SourceIp"`
+	Lang       string `position:"Query" name:"Lang"`
 }
 
 // DescribeInstanceAttributeResponse is the response struct for api DescribeInstanceAttribute

+ 106 - 0
services/yundun_dbaudit/describe_instance_storage.go

@@ -0,0 +1,106 @@
+package yundun_dbaudit
+
+//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"
+)
+
+// DescribeInstanceStorage invokes the yundun_dbaudit.DescribeInstanceStorage API synchronously
+// api document: https://help.aliyun.com/api/yundun-dbaudit/describeinstancestorage.html
+func (client *Client) DescribeInstanceStorage(request *DescribeInstanceStorageRequest) (response *DescribeInstanceStorageResponse, err error) {
+	response = CreateDescribeInstanceStorageResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeInstanceStorageWithChan invokes the yundun_dbaudit.DescribeInstanceStorage API asynchronously
+// api document: https://help.aliyun.com/api/yundun-dbaudit/describeinstancestorage.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeInstanceStorageWithChan(request *DescribeInstanceStorageRequest) (<-chan *DescribeInstanceStorageResponse, <-chan error) {
+	responseChan := make(chan *DescribeInstanceStorageResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeInstanceStorage(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeInstanceStorageWithCallback invokes the yundun_dbaudit.DescribeInstanceStorage API asynchronously
+// api document: https://help.aliyun.com/api/yundun-dbaudit/describeinstancestorage.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeInstanceStorageWithCallback(request *DescribeInstanceStorageRequest, callback func(response *DescribeInstanceStorageResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeInstanceStorageResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeInstanceStorage(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeInstanceStorageRequest is the request struct for api DescribeInstanceStorage
+type DescribeInstanceStorageRequest struct {
+	*requests.RpcRequest
+	InstanceId string `position:"Query" name:"InstanceId"`
+	SourceIp   string `position:"Query" name:"SourceIp"`
+	Lang       string `position:"Query" name:"Lang"`
+}
+
+// DescribeInstanceStorageResponse is the response struct for api DescribeInstanceStorage
+type DescribeInstanceStorageResponse struct {
+	*responses.BaseResponse
+	RequestId        string            `json:"RequestId" xml:"RequestId"`
+	InstanceStorages []InstanceStorage `json:"InstanceStorages" xml:"InstanceStorages"`
+}
+
+// CreateDescribeInstanceStorageRequest creates a request to invoke DescribeInstanceStorage API
+func CreateDescribeInstanceStorageRequest() (request *DescribeInstanceStorageRequest) {
+	request = &DescribeInstanceStorageRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Yundun-dbaudit", "2018-10-29", "DescribeInstanceStorage", "dbaudit", "openAPI")
+	return
+}
+
+// CreateDescribeInstanceStorageResponse creates a response to parse from DescribeInstanceStorage response
+func CreateDescribeInstanceStorageResponse() (response *DescribeInstanceStorageResponse) {
+	response = &DescribeInstanceStorageResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 8 - 7
services/yundun_dbaudit/describe_instances.go

@@ -76,13 +76,14 @@ func (client *Client) DescribeInstancesWithCallback(request *DescribeInstancesRe
 // DescribeInstancesRequest is the request struct for api DescribeInstances
 type DescribeInstancesRequest struct {
 	*requests.RpcRequest
-	InstanceStatus string                  `position:"Query" name:"InstanceStatus"`
-	InstanceId     *[]string               `position:"Query" name:"InstanceId"  type:"Repeated"`
-	SourceIp       string                  `position:"Query" name:"SourceIp"`
-	PageSize       requests.Integer        `position:"Query" name:"PageSize"`
-	CurrentPage    requests.Integer        `position:"Query" name:"CurrentPage"`
-	Tag            *[]DescribeInstancesTag `position:"Query" name:"Tag"  type:"Repeated"`
-	Lang           string                  `position:"Query" name:"Lang"`
+	ResourceGroupId string                  `position:"Query" name:"ResourceGroupId"`
+	SourceIp        string                  `position:"Query" name:"SourceIp"`
+	PageSize        requests.Integer        `position:"Query" name:"PageSize"`
+	Tag             *[]DescribeInstancesTag `position:"Query" name:"Tag"  type:"Repeated"`
+	Lang            string                  `position:"Query" name:"Lang"`
+	InstanceStatus  string                  `position:"Query" name:"InstanceStatus"`
+	CurrentPage     requests.Integer        `position:"Query" name:"CurrentPage"`
+	InstanceId      *[]string               `position:"Query" name:"InstanceId"  type:"Repeated"`
 }
 
 // DescribeInstancesTag is a repeated param struct in DescribeInstancesRequest

+ 106 - 0
services/yundun_dbaudit/describe_regions.go

@@ -0,0 +1,106 @@
+package yundun_dbaudit
+
+//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"
+)
+
+// DescribeRegions invokes the yundun_dbaudit.DescribeRegions API synchronously
+// api document: https://help.aliyun.com/api/yundun-dbaudit/describeregions.html
+func (client *Client) DescribeRegions(request *DescribeRegionsRequest) (response *DescribeRegionsResponse, err error) {
+	response = CreateDescribeRegionsResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeRegionsWithChan invokes the yundun_dbaudit.DescribeRegions API asynchronously
+// api document: https://help.aliyun.com/api/yundun-dbaudit/describeregions.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeRegionsWithChan(request *DescribeRegionsRequest) (<-chan *DescribeRegionsResponse, <-chan error) {
+	responseChan := make(chan *DescribeRegionsResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeRegions(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeRegionsWithCallback invokes the yundun_dbaudit.DescribeRegions API asynchronously
+// api document: https://help.aliyun.com/api/yundun-dbaudit/describeregions.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeRegionsWithCallback(request *DescribeRegionsRequest, callback func(response *DescribeRegionsResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeRegionsResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeRegions(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeRegionsRequest is the request struct for api DescribeRegions
+type DescribeRegionsRequest struct {
+	*requests.RpcRequest
+	SourceIp       string `position:"Query" name:"SourceIp"`
+	AcceptLanguage string `position:"Query" name:"AcceptLanguage"`
+	Lang           string `position:"Query" name:"Lang"`
+}
+
+// DescribeRegionsResponse is the response struct for api DescribeRegions
+type DescribeRegionsResponse struct {
+	*responses.BaseResponse
+	RequestId string   `json:"RequestId" xml:"RequestId"`
+	Regions   []Region `json:"Regions" xml:"Regions"`
+}
+
+// CreateDescribeRegionsRequest creates a request to invoke DescribeRegions API
+func CreateDescribeRegionsRequest() (request *DescribeRegionsRequest) {
+	request = &DescribeRegionsRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Yundun-dbaudit", "2018-10-29", "DescribeRegions", "dbaudit", "openAPI")
+	return
+}
+
+// CreateDescribeRegionsResponse creates a response to parse from DescribeRegions response
+func CreateDescribeRegionsResponse() (response *DescribeRegionsResponse) {
+	response = &DescribeRegionsResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 130 - 0
services/yundun_dbaudit/describe_session_logs.go

@@ -0,0 +1,130 @@
+package yundun_dbaudit
+
+//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"
+)
+
+// DescribeSessionLogs invokes the yundun_dbaudit.DescribeSessionLogs API synchronously
+// api document: https://help.aliyun.com/api/yundun-dbaudit/describesessionlogs.html
+func (client *Client) DescribeSessionLogs(request *DescribeSessionLogsRequest) (response *DescribeSessionLogsResponse, err error) {
+	response = CreateDescribeSessionLogsResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeSessionLogsWithChan invokes the yundun_dbaudit.DescribeSessionLogs API asynchronously
+// api document: https://help.aliyun.com/api/yundun-dbaudit/describesessionlogs.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeSessionLogsWithChan(request *DescribeSessionLogsRequest) (<-chan *DescribeSessionLogsResponse, <-chan error) {
+	responseChan := make(chan *DescribeSessionLogsResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeSessionLogs(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeSessionLogsWithCallback invokes the yundun_dbaudit.DescribeSessionLogs API asynchronously
+// api document: https://help.aliyun.com/api/yundun-dbaudit/describesessionlogs.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeSessionLogsWithCallback(request *DescribeSessionLogsRequest, callback func(response *DescribeSessionLogsResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeSessionLogsResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeSessionLogs(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeSessionLogsRequest is the request struct for api DescribeSessionLogs
+type DescribeSessionLogsRequest struct {
+	*requests.RpcRequest
+	Dmac          string           `position:"Query" name:"Dmac"`
+	ReqFlow       string           `position:"Query" name:"ReqFlow"`
+	Smac          string           `position:"Query" name:"Smac"`
+	Dip           string           `position:"Query" name:"Dip"`
+	StartTime     string           `position:"Query" name:"StartTime"`
+	Sessionid     string           `position:"Query" name:"Sessionid"`
+	Dir           string           `position:"Query" name:"Dir"`
+	Dport         string           `position:"Query" name:"Dport"`
+	HostName      string           `position:"Query" name:"HostName"`
+	ClientUser    string           `position:"Query" name:"ClientUser"`
+	SessionStatus string           `position:"Query" name:"SessionStatus"`
+	SourceIp      string           `position:"Query" name:"SourceIp"`
+	PageSize      requests.Integer `position:"Query" name:"PageSize"`
+	Sip           string           `position:"Query" name:"Sip"`
+	LoginUser     string           `position:"Query" name:"LoginUser"`
+	RspFlow       string           `position:"Query" name:"RspFlow"`
+	EndTime       string           `position:"Query" name:"EndTime"`
+	CurrentPage   requests.Integer `position:"Query" name:"CurrentPage"`
+	Sort          string           `position:"Query" name:"Sort"`
+	InstanceId    string           `position:"Query" name:"InstanceId"`
+	DbName        string           `position:"Query" name:"DbName"`
+	DbId          string           `position:"Query" name:"DbId"`
+	DbType        string           `position:"Query" name:"DbType"`
+	ClientPrg     string           `position:"Query" name:"ClientPrg"`
+	SqlCount      string           `position:"Query" name:"SqlCount"`
+	Sport         string           `position:"Query" name:"Sport"`
+}
+
+// DescribeSessionLogsResponse is the response struct for api DescribeSessionLogs
+type DescribeSessionLogsResponse struct {
+	*responses.BaseResponse
+	RequestId   string `json:"RequestId" xml:"RequestId"`
+	TotalCount  int    `json:"TotalCount" xml:"TotalCount"`
+	SessionLogs []Item `json:"SessionLogs" xml:"SessionLogs"`
+}
+
+// CreateDescribeSessionLogsRequest creates a request to invoke DescribeSessionLogs API
+func CreateDescribeSessionLogsRequest() (request *DescribeSessionLogsRequest) {
+	request = &DescribeSessionLogsRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Yundun-dbaudit", "2018-10-29", "DescribeSessionLogs", "dbaudit", "openAPI")
+	return
+}
+
+// CreateDescribeSessionLogsResponse creates a response to parse from DescribeSessionLogs response
+func CreateDescribeSessionLogsResponse() (response *DescribeSessionLogsResponse) {
+	response = &DescribeSessionLogsResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 20 - 0
services/yundun_dbaudit/endpoint.go

@@ -0,0 +1,20 @@
+package yundun_dbaudit
+
+// EndpointMap Endpoint Data
+var EndpointMap map[string]string
+
+// EndpointType regional or central
+var EndpointType = "central"
+
+// GetEndpointMap Get Endpoint Data Map
+func GetEndpointMap() map[string]string {
+	if EndpointMap == nil {
+		EndpointMap = map[string]string{}
+	}
+	return EndpointMap
+}
+
+// GetEndpointType Get Endpoint Type Value
+func GetEndpointType() string {
+	return EndpointType
+}

+ 3 - 2
services/yundun_dbaudit/list_tag_keys.go

@@ -76,10 +76,11 @@ func (client *Client) ListTagKeysWithCallback(request *ListTagKeysRequest, callb
 // ListTagKeysRequest is the request struct for api ListTagKeys
 type ListTagKeysRequest struct {
 	*requests.RpcRequest
-	SourceIp     string           `position:"Query" name:"SourceIp"`
-	PageSize     requests.Integer `position:"Query" name:"PageSize"`
 	CurrentPage  requests.Integer `position:"Query" name:"CurrentPage"`
 	ResourceType string           `position:"Query" name:"ResourceType"`
+	SourceIp     string           `position:"Query" name:"SourceIp"`
+	PageSize     requests.Integer `position:"Query" name:"PageSize"`
+	Lang         string           `position:"Query" name:"Lang"`
 }
 
 // ListTagKeysResponse is the response struct for api ListTagKeys

+ 2 - 1
services/yundun_dbaudit/list_tag_resources.go

@@ -76,10 +76,11 @@ func (client *Client) ListTagResourcesWithCallback(request *ListTagResourcesRequ
 // ListTagResourcesRequest is the request struct for api ListTagResources
 type ListTagResourcesRequest struct {
 	*requests.RpcRequest
-	ResourceId   *[]string              `position:"Query" name:"ResourceId"  type:"Repeated"`
 	SourceIp     string                 `position:"Query" name:"SourceIp"`
 	NextToken    string                 `position:"Query" name:"NextToken"`
 	Tag          *[]ListTagResourcesTag `position:"Query" name:"Tag"  type:"Repeated"`
+	Lang         string                 `position:"Query" name:"Lang"`
+	ResourceId   *[]string              `position:"Query" name:"ResourceId"  type:"Repeated"`
 	ResourceType string                 `position:"Query" name:"ResourceType"`
 }
 

+ 1 - 1
services/yundun_dbaudit/modify_instance_attribute.go

@@ -76,9 +76,9 @@ func (client *Client) ModifyInstanceAttributeWithCallback(request *ModifyInstanc
 // ModifyInstanceAttributeRequest is the request struct for api ModifyInstanceAttribute
 type ModifyInstanceAttributeRequest struct {
 	*requests.RpcRequest
+	Description string `position:"Query" name:"Description"`
 	InstanceId  string `position:"Query" name:"InstanceId"`
 	SourceIp    string `position:"Query" name:"SourceIp"`
-	Description string `position:"Query" name:"Description"`
 	Lang        string `position:"Query" name:"Lang"`
 }
 

+ 108 - 0
services/yundun_dbaudit/modify_instance_storage.go

@@ -0,0 +1,108 @@
+package yundun_dbaudit
+
+//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"
+)
+
+// ModifyInstanceStorage invokes the yundun_dbaudit.ModifyInstanceStorage API synchronously
+// api document: https://help.aliyun.com/api/yundun-dbaudit/modifyinstancestorage.html
+func (client *Client) ModifyInstanceStorage(request *ModifyInstanceStorageRequest) (response *ModifyInstanceStorageResponse, err error) {
+	response = CreateModifyInstanceStorageResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ModifyInstanceStorageWithChan invokes the yundun_dbaudit.ModifyInstanceStorage API asynchronously
+// api document: https://help.aliyun.com/api/yundun-dbaudit/modifyinstancestorage.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ModifyInstanceStorageWithChan(request *ModifyInstanceStorageRequest) (<-chan *ModifyInstanceStorageResponse, <-chan error) {
+	responseChan := make(chan *ModifyInstanceStorageResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ModifyInstanceStorage(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ModifyInstanceStorageWithCallback invokes the yundun_dbaudit.ModifyInstanceStorage API asynchronously
+// api document: https://help.aliyun.com/api/yundun-dbaudit/modifyinstancestorage.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ModifyInstanceStorageWithCallback(request *ModifyInstanceStorageRequest, callback func(response *ModifyInstanceStorageResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ModifyInstanceStorageResponse
+		var err error
+		defer close(result)
+		response, err = client.ModifyInstanceStorage(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ModifyInstanceStorageRequest is the request struct for api ModifyInstanceStorage
+type ModifyInstanceStorageRequest struct {
+	*requests.RpcRequest
+	StorageCategory string           `position:"Query" name:"StorageCategory"`
+	SourceIp        string           `position:"Query" name:"SourceIp"`
+	Lang            string           `position:"Query" name:"Lang"`
+	StorageTime     requests.Integer `position:"Query" name:"StorageTime"`
+	InstanceId      string           `position:"Query" name:"InstanceId"`
+	StorageSpace    string           `position:"Query" name:"StorageSpace"`
+}
+
+// ModifyInstanceStorageResponse is the response struct for api ModifyInstanceStorage
+type ModifyInstanceStorageResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateModifyInstanceStorageRequest creates a request to invoke ModifyInstanceStorage API
+func CreateModifyInstanceStorageRequest() (request *ModifyInstanceStorageRequest) {
+	request = &ModifyInstanceStorageRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Yundun-dbaudit", "2018-10-29", "ModifyInstanceStorage", "dbaudit", "openAPI")
+	return
+}
+
+// CreateModifyInstanceStorageResponse creates a response to parse from ModifyInstanceStorage response
+func CreateModifyInstanceStorageResponse() (response *ModifyInstanceStorageResponse) {
+	response = &ModifyInstanceStorageResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 107 - 0
services/yundun_dbaudit/move_resource_group.go

@@ -0,0 +1,107 @@
+package yundun_dbaudit
+
+//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"
+)
+
+// MoveResourceGroup invokes the yundun_dbaudit.MoveResourceGroup API synchronously
+// api document: https://help.aliyun.com/api/yundun-dbaudit/moveresourcegroup.html
+func (client *Client) MoveResourceGroup(request *MoveResourceGroupRequest) (response *MoveResourceGroupResponse, err error) {
+	response = CreateMoveResourceGroupResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// MoveResourceGroupWithChan invokes the yundun_dbaudit.MoveResourceGroup API asynchronously
+// api document: https://help.aliyun.com/api/yundun-dbaudit/moveresourcegroup.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) MoveResourceGroupWithChan(request *MoveResourceGroupRequest) (<-chan *MoveResourceGroupResponse, <-chan error) {
+	responseChan := make(chan *MoveResourceGroupResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.MoveResourceGroup(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// MoveResourceGroupWithCallback invokes the yundun_dbaudit.MoveResourceGroup API asynchronously
+// api document: https://help.aliyun.com/api/yundun-dbaudit/moveresourcegroup.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) MoveResourceGroupWithCallback(request *MoveResourceGroupRequest, callback func(response *MoveResourceGroupResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *MoveResourceGroupResponse
+		var err error
+		defer close(result)
+		response, err = client.MoveResourceGroup(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// MoveResourceGroupRequest is the request struct for api MoveResourceGroup
+type MoveResourceGroupRequest struct {
+	*requests.RpcRequest
+	ResourceId      string `position:"Query" name:"ResourceId"`
+	ResourceType    string `position:"Query" name:"ResourceType"`
+	ResourceGroupId string `position:"Query" name:"ResourceGroupId"`
+	SourceIp        string `position:"Query" name:"SourceIp"`
+	Lang            string `position:"Query" name:"Lang"`
+}
+
+// MoveResourceGroupResponse is the response struct for api MoveResourceGroup
+type MoveResourceGroupResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateMoveResourceGroupRequest creates a request to invoke MoveResourceGroup API
+func CreateMoveResourceGroupRequest() (request *MoveResourceGroupRequest) {
+	request = &MoveResourceGroupRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("Yundun-dbaudit", "2018-10-29", "MoveResourceGroup", "dbaudit", "openAPI")
+	return
+}
+
+// CreateMoveResourceGroupResponse creates a response to parse from MoveResourceGroup response
+func CreateMoveResourceGroupResponse() (response *MoveResourceGroupResponse) {
+	response = &MoveResourceGroupResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 21 - 0
services/yundun_dbaudit/struct_audit_logs.go

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

+ 21 - 0
services/yundun_dbaudit/struct_event_logs.go

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

+ 1 - 1
services/yundun_dbaudit/struct_instance.go

@@ -23,7 +23,7 @@ type Instance struct {
 	VswitchId           string `json:"VswitchId" xml:"VswitchId"`
 	IntranetEndpoint    string `json:"IntranetEndpoint" xml:"IntranetEndpoint"`
 	InternetEndpoint    string `json:"InternetEndpoint" xml:"InternetEndpoint"`
-	InstanceStatus      int    `json:"InstanceStatus" xml:"InstanceStatus"`
+	InstanceStatus      string `json:"InstanceStatus" xml:"InstanceStatus"`
 	StartTime           int64  `json:"StartTime" xml:"StartTime"`
 	ExpireTime          int64  `json:"ExpireTime" xml:"ExpireTime"`
 	Description         string `json:"Description" xml:"Description"`

+ 25 - 0
services/yundun_dbaudit/struct_instance_storage.go

@@ -0,0 +1,25 @@
+package yundun_dbaudit
+
+//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.
+
+// InstanceStorage is a nested struct in yundun_dbaudit response
+type InstanceStorage struct {
+	StorageSpace    string `json:"StorageSpace" xml:"StorageSpace"`
+	StorageCategory string `json:"StorageCategory" xml:"StorageCategory"`
+	StorageCapacity int64  `json:"StorageCapacity" xml:"StorageCapacity"`
+	StorageUsed     int64  `json:"StorageUsed" xml:"StorageUsed"`
+	StorageTime     int64  `json:"StorageTime" xml:"StorageTime"`
+}

+ 21 - 0
services/yundun_dbaudit/struct_instance_storages.go

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

+ 68 - 0
services/yundun_dbaudit/struct_item.go

@@ -0,0 +1,68 @@
+package yundun_dbaudit
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+// Item is a nested struct in yundun_dbaudit response
+type Item struct {
+	SqlLen        int    `json:"SqlLen" xml:"SqlLen"`
+	EffectRow     int    `json:"EffectRow" xml:"EffectRow"`
+	NormalEnd     int    `json:"NormalEnd" xml:"NormalEnd"`
+	OpType        string `json:"OpType" xml:"OpType"`
+	EndTime       int    `json:"EndTime" xml:"EndTime"`
+	StrInfo       string `json:"StrInfo" xml:"StrInfo"`
+	Dport         int    `json:"Dport" xml:"Dport"`
+	Sqlid         string `json:"Sqlid" xml:"Sqlid"`
+	ClientPrg     string `json:"ClientPrg" xml:"ClientPrg"`
+	Smac          int    `json:"Smac" xml:"Smac"`
+	DataSetSize   int    `json:"DataSetSize" xml:"DataSetSize"`
+	Accessid      string `json:"Accessid" xml:"Accessid"`
+	DbType        string `json:"DbType" xml:"DbType"`
+	C5            string `json:"C5" xml:"C5"`
+	C3            string `json:"C3" xml:"C3"`
+	RelateIp      string `json:"RelateIp" xml:"RelateIp"`
+	AlarmLevel    int    `json:"AlarmLevel" xml:"AlarmLevel"`
+	Sip           string `json:"Sip" xml:"Sip"`
+	DateTime      string `json:"DateTime" xml:"DateTime"`
+	DataSet       string `json:"DataSet" xml:"DataSet"`
+	PickIp        string `json:"PickIp" xml:"PickIp"`
+	StartTime     int    `json:"StartTime" xml:"StartTime"`
+	SqlCount      int    `json:"SqlCount" xml:"SqlCount"`
+	Result        int    `json:"Result" xml:"Result"`
+	ResultDesc    string `json:"ResultDesc" xml:"ResultDesc"`
+	C1            string `json:"C1" xml:"C1"`
+	Cost          int    `json:"Cost" xml:"Cost"`
+	PickUser      string `json:"PickUser" xml:"PickUser"`
+	AlarmName     string `json:"AlarmName" xml:"AlarmName"`
+	AlarmFlag     int    `json:"AlarmFlag" xml:"AlarmFlag"`
+	ClientUser    string `json:"ClientUser" xml:"ClientUser"`
+	ProCon        int    `json:"ProCon" xml:"ProCon"`
+	Sessionid     string `json:"Sessionid" xml:"Sessionid"`
+	DbName        string `json:"DbName" xml:"DbName"`
+	SessionStatus int    `json:"SessionStatus" xml:"SessionStatus"`
+	Encode        string `json:"Encode" xml:"Encode"`
+	Dip           string `json:"Dip" xml:"Dip"`
+	Payload       string `json:"Payload" xml:"Payload"`
+	RelateInfo    string `json:"RelateInfo" xml:"RelateInfo"`
+	C4            string `json:"C4" xml:"C4"`
+	RelateUser    string `json:"RelateUser" xml:"RelateUser"`
+	LoginUser     string `json:"LoginUser" xml:"LoginUser"`
+	HostName      string `json:"HostName" xml:"HostName"`
+	ResponseFlow  int    `json:"ResponseFlow" xml:"ResponseFlow"`
+	Dmac          int    `json:"Dmac" xml:"Dmac"`
+	RequestFlow   int    `json:"RequestFlow" xml:"RequestFlow"`
+	C2            string `json:"C2" xml:"C2"`
+	Sport         int    `json:"Sport" xml:"Sport"`
+}

+ 65 - 0
services/yundun_dbaudit/struct_item_in_describe_event_logs.go

@@ -0,0 +1,65 @@
+package yundun_dbaudit
+
+//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.
+
+// ItemInDescribeEventLogs is a nested struct in yundun_dbaudit response
+type ItemInDescribeEventLogs struct {
+	Accessid     string `json:"Accessid" xml:"Accessid"`
+	Sessionid    string `json:"Sessionid" xml:"Sessionid"`
+	DbType       string `json:"DbType" xml:"DbType"`
+	Sip          string `json:"Sip" xml:"Sip"`
+	Sport        int    `json:"Sport" xml:"Sport"`
+	Dip          string `json:"Dip" xml:"Dip"`
+	Dport        int    `json:"Dport" xml:"Dport"`
+	Smac         int    `json:"Smac" xml:"Smac"`
+	Dmac         int    `json:"Dmac" xml:"Dmac"`
+	LoginUser    string `json:"LoginUser" xml:"LoginUser"`
+	ClientPrg    string `json:"ClientPrg" xml:"ClientPrg"`
+	HostName     string `json:"HostName" xml:"HostName"`
+	ClientUser   string `json:"ClientUser" xml:"ClientUser"`
+	DbName       string `json:"DbName" xml:"DbName"`
+	C1           string `json:"C1" xml:"C1"`
+	C2           string `json:"C2" xml:"C2"`
+	C3           string `json:"C3" xml:"C3"`
+	C4           string `json:"C4" xml:"C4"`
+	C5           string `json:"C5" xml:"C5"`
+	DateTime     string `json:"DateTime" xml:"DateTime"`
+	Sqlid        string `json:"Sqlid" xml:"Sqlid"`
+	OpType       int    `json:"OpType" xml:"OpType"`
+	Payload      string `json:"Payload" xml:"Payload"`
+	SqlLen       int    `json:"SqlLen" xml:"SqlLen"`
+	EffectRow    int    `json:"EffectRow" xml:"EffectRow"`
+	Cost         int    `json:"Cost" xml:"Cost"`
+	Result       int    `json:"Result" xml:"Result"`
+	DataSet      string `json:"DataSet" xml:"DataSet"`
+	DataSetSize  int    `json:"DataSetSize" xml:"DataSetSize"`
+	ResultDesc   string `json:"ResultDesc" xml:"ResultDesc"`
+	RelateUser   string `json:"RelateUser" xml:"RelateUser"`
+	RelateIp     string `json:"RelateIp" xml:"RelateIp"`
+	PickUser     string `json:"PickUser" xml:"PickUser"`
+	PickIp       string `json:"PickIp" xml:"PickIp"`
+	RelateInfo   string `json:"RelateInfo" xml:"RelateInfo"`
+	RuleId       string `json:"RuleId" xml:"RuleId"`
+	EventName    string `json:"EventName" xml:"EventName"`
+	EventLevel   int    `json:"EventLevel" xml:"EventLevel"`
+	RuleGroupId  string `json:"RuleGroupId" xml:"RuleGroupId"`
+	IsStatistics int    `json:"IsStatistics" xml:"IsStatistics"`
+	A1           string `json:"A1" xml:"A1"`
+	A2           string `json:"A2" xml:"A2"`
+	A3           string `json:"A3" xml:"A3"`
+	A4           string `json:"A4" xml:"A4"`
+	A5           string `json:"A5" xml:"A5"`
+}

+ 23 - 0
services/yundun_dbaudit/struct_region.go

@@ -0,0 +1,23 @@
+package yundun_dbaudit
+
+//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.
+
+// Region is a nested struct in yundun_dbaudit response
+type Region struct {
+	RegionId       string `json:"RegionId" xml:"RegionId"`
+	LocalName      string `json:"LocalName" xml:"LocalName"`
+	RegionEndpoint string `json:"RegionEndpoint" xml:"RegionEndpoint"`
+}

+ 21 - 0
services/yundun_dbaudit/struct_regions.go

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

+ 21 - 0
services/yundun_dbaudit/struct_session_logs.go

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

+ 2 - 1
services/yundun_dbaudit/tag_resources.go

@@ -77,9 +77,10 @@ func (client *Client) TagResourcesWithCallback(request *TagResourcesRequest, cal
 type TagResourcesRequest struct {
 	*requests.RpcRequest
 	ResourceId   *[]string          `position:"Query" name:"ResourceId"  type:"Repeated"`
+	ResourceType string             `position:"Query" name:"ResourceType"`
 	SourceIp     string             `position:"Query" name:"SourceIp"`
 	Tag          *[]TagResourcesTag `position:"Query" name:"Tag"  type:"Repeated"`
-	ResourceType string             `position:"Query" name:"ResourceType"`
+	Lang         string             `position:"Query" name:"Lang"`
 }
 
 // TagResourcesTag is a repeated param struct in TagResourcesRequest

+ 3 - 2
services/yundun_dbaudit/untag_resources.go

@@ -76,11 +76,12 @@ func (client *Client) UntagResourcesWithCallback(request *UntagResourcesRequest,
 // UntagResourcesRequest is the request struct for api UntagResources
 type UntagResourcesRequest struct {
 	*requests.RpcRequest
+	SourceIp     string           `position:"Query" name:"SourceIp"`
+	Lang         string           `position:"Query" name:"Lang"`
 	All          requests.Boolean `position:"Query" name:"All"`
 	ResourceId   *[]string        `position:"Query" name:"ResourceId"  type:"Repeated"`
-	SourceIp     string           `position:"Query" name:"SourceIp"`
-	TagKey       *[]string        `position:"Query" name:"TagKey"  type:"Repeated"`
 	ResourceType string           `position:"Query" name:"ResourceType"`
+	TagKey       *[]string        `position:"Query" name:"TagKey"  type:"Repeated"`
 }
 
 // UntagResourcesResponse is the response struct for api UntagResources