Procházet zdrojové kódy

Generated 2017-08-01 for polardb.

sdk-team před 6 roky
rodič
revize
20b43e388c

+ 4 - 0
ChangeLog.txt

@@ -1,3 +1,7 @@
+2019-12-19 Version: v1.60.298
+- Generated 2017-08-01 for `polardb`.
+- Add DescribeSlowLogRecords,DescribeSlowLogs for SlowLog.
+
 2019-12-19 Version: v1.60.297
 - Generated 2019-09-28 for `reid`.
 

+ 5 - 3
services/polardb/create_db_cluster.go

@@ -80,6 +80,7 @@ type CreateDBClusterRequest struct {
 	DBClusterDescription string           `position:"Query" name:"DBClusterDescription"`
 	ClientToken          string           `position:"Query" name:"ClientToken"`
 	ClusterNetworkType   string           `position:"Query" name:"ClusterNetworkType"`
+	ResourceGroupId      string           `position:"Query" name:"ResourceGroupId"`
 	DBNodeClass          string           `position:"Query" name:"DBNodeClass"`
 	Engine               string           `position:"Query" name:"Engine"`
 	CreationOption       string           `position:"Query" name:"CreationOption"`
@@ -102,9 +103,10 @@ type CreateDBClusterRequest struct {
 // CreateDBClusterResponse is the response struct for api CreateDBCluster
 type CreateDBClusterResponse struct {
 	*responses.BaseResponse
-	RequestId   string `json:"RequestId" xml:"RequestId"`
-	DBClusterId string `json:"DBClusterId" xml:"DBClusterId"`
-	OrderId     string `json:"OrderId" xml:"OrderId"`
+	RequestId       string `json:"RequestId" xml:"RequestId"`
+	DBClusterId     string `json:"DBClusterId" xml:"DBClusterId"`
+	OrderId         string `json:"OrderId" xml:"OrderId"`
+	ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"`
 }
 
 // CreateCreateDBClusterRequest creates a request to invoke CreateDBCluster API

+ 3 - 2
services/polardb/describe_db_cluster_access_whitelist.go

@@ -86,8 +86,9 @@ type DescribeDBClusterAccessWhitelistRequest struct {
 // DescribeDBClusterAccessWhitelistResponse is the response struct for api DescribeDBClusterAccessWhitelist
 type DescribeDBClusterAccessWhitelistResponse struct {
 	*responses.BaseResponse
-	RequestId string                                  `json:"RequestId" xml:"RequestId"`
-	Items     ItemsInDescribeDBClusterAccessWhitelist `json:"Items" xml:"Items"`
+	RequestId               string                                  `json:"RequestId" xml:"RequestId"`
+	Items                   ItemsInDescribeDBClusterAccessWhitelist `json:"Items" xml:"Items"`
+	DBClusterSecurityGroups DBClusterSecurityGroups                 `json:"DBClusterSecurityGroups" xml:"DBClusterSecurityGroups"`
 }
 
 // CreateDescribeDBClusterAccessWhitelistRequest creates a request to invoke DescribeDBClusterAccessWhitelist API

+ 1 - 0
services/polardb/describe_db_cluster_attribute.go

@@ -109,6 +109,7 @@ type DescribeDBClusterAttributeResponse struct {
 	ZoneIds              string   `json:"ZoneIds" xml:"ZoneIds"`
 	SQLSize              int64    `json:"SQLSize" xml:"SQLSize"`
 	IsLatestVersion      bool     `json:"IsLatestVersion" xml:"IsLatestVersion"`
+	ResourceGroupId      string   `json:"ResourceGroupId" xml:"ResourceGroupId"`
 	Tags                 []Tag    `json:"Tags" xml:"Tags"`
 	DBNodes              []DBNode `json:"DBNodes" xml:"DBNodes"`
 }

+ 1 - 0
services/polardb/describe_db_clusters.go

@@ -80,6 +80,7 @@ type DescribeDBClustersRequest struct {
 	DBClusterDescription string                   `position:"Query" name:"DBClusterDescription"`
 	DBClusterStatus      string                   `position:"Query" name:"DBClusterStatus"`
 	PageNumber           requests.Integer         `position:"Query" name:"PageNumber"`
+	ResourceGroupId      string                   `position:"Query" name:"ResourceGroupId"`
 	PageSize             requests.Integer         `position:"Query" name:"PageSize"`
 	Tag                  *[]DescribeDBClustersTag `position:"Query" name:"Tag"  type:"Repeated"`
 	ResourceOwnerAccount string                   `position:"Query" name:"ResourceOwnerAccount"`

+ 119 - 0
services/polardb/describe_slow_log_records.go

@@ -0,0 +1,119 @@
+package polardb
+
+//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"
+)
+
+// DescribeSlowLogRecords invokes the polardb.DescribeSlowLogRecords API synchronously
+// api document: https://help.aliyun.com/api/polardb/describeslowlogrecords.html
+func (client *Client) DescribeSlowLogRecords(request *DescribeSlowLogRecordsRequest) (response *DescribeSlowLogRecordsResponse, err error) {
+	response = CreateDescribeSlowLogRecordsResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeSlowLogRecordsWithChan invokes the polardb.DescribeSlowLogRecords API asynchronously
+// api document: https://help.aliyun.com/api/polardb/describeslowlogrecords.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeSlowLogRecordsWithChan(request *DescribeSlowLogRecordsRequest) (<-chan *DescribeSlowLogRecordsResponse, <-chan error) {
+	responseChan := make(chan *DescribeSlowLogRecordsResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeSlowLogRecords(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeSlowLogRecordsWithCallback invokes the polardb.DescribeSlowLogRecords API asynchronously
+// api document: https://help.aliyun.com/api/polardb/describeslowlogrecords.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeSlowLogRecordsWithCallback(request *DescribeSlowLogRecordsRequest, callback func(response *DescribeSlowLogRecordsResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeSlowLogRecordsResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeSlowLogRecords(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeSlowLogRecordsRequest is the request struct for api DescribeSlowLogRecords
+type DescribeSlowLogRecordsRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	StartTime            string           `position:"Query" name:"StartTime"`
+	PageNumber           requests.Integer `position:"Query" name:"PageNumber"`
+	PageSize             requests.Integer `position:"Query" name:"PageSize"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	DBClusterId          string           `position:"Query" name:"DBClusterId"`
+	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
+	EndTime              string           `position:"Query" name:"EndTime"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+	DBName               string           `position:"Query" name:"DBName"`
+	SQLHASH              string           `position:"Query" name:"SQLHASH"`
+}
+
+// DescribeSlowLogRecordsResponse is the response struct for api DescribeSlowLogRecords
+type DescribeSlowLogRecordsResponse struct {
+	*responses.BaseResponse
+	RequestId        string                        `json:"RequestId" xml:"RequestId"`
+	DBClusterId      string                        `json:"DBClusterId" xml:"DBClusterId"`
+	Engine           string                        `json:"Engine" xml:"Engine"`
+	TotalRecordCount int                           `json:"TotalRecordCount" xml:"TotalRecordCount"`
+	PageNumber       int                           `json:"PageNumber" xml:"PageNumber"`
+	PageRecordCount  int                           `json:"PageRecordCount" xml:"PageRecordCount"`
+	Items            ItemsInDescribeSlowLogRecords `json:"Items" xml:"Items"`
+}
+
+// CreateDescribeSlowLogRecordsRequest creates a request to invoke DescribeSlowLogRecords API
+func CreateDescribeSlowLogRecordsRequest() (request *DescribeSlowLogRecordsRequest) {
+	request = &DescribeSlowLogRecordsRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("polardb", "2017-08-01", "DescribeSlowLogRecords", "polardb", "openAPI")
+	return
+}
+
+// CreateDescribeSlowLogRecordsResponse creates a response to parse from DescribeSlowLogRecords response
+func CreateDescribeSlowLogRecordsResponse() (response *DescribeSlowLogRecordsResponse) {
+	response = &DescribeSlowLogRecordsResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 120 - 0
services/polardb/describe_slow_logs.go

@@ -0,0 +1,120 @@
+package polardb
+
+//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"
+)
+
+// DescribeSlowLogs invokes the polardb.DescribeSlowLogs API synchronously
+// api document: https://help.aliyun.com/api/polardb/describeslowlogs.html
+func (client *Client) DescribeSlowLogs(request *DescribeSlowLogsRequest) (response *DescribeSlowLogsResponse, err error) {
+	response = CreateDescribeSlowLogsResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeSlowLogsWithChan invokes the polardb.DescribeSlowLogs API asynchronously
+// api document: https://help.aliyun.com/api/polardb/describeslowlogs.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeSlowLogsWithChan(request *DescribeSlowLogsRequest) (<-chan *DescribeSlowLogsResponse, <-chan error) {
+	responseChan := make(chan *DescribeSlowLogsResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeSlowLogs(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeSlowLogsWithCallback invokes the polardb.DescribeSlowLogs API asynchronously
+// api document: https://help.aliyun.com/api/polardb/describeslowlogs.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeSlowLogsWithCallback(request *DescribeSlowLogsRequest, callback func(response *DescribeSlowLogsResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeSlowLogsResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeSlowLogs(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeSlowLogsRequest is the request struct for api DescribeSlowLogs
+type DescribeSlowLogsRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	StartTime            string           `position:"Query" name:"StartTime"`
+	PageNumber           requests.Integer `position:"Query" name:"PageNumber"`
+	PageSize             requests.Integer `position:"Query" name:"PageSize"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	DBClusterId          string           `position:"Query" name:"DBClusterId"`
+	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
+	EndTime              string           `position:"Query" name:"EndTime"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+	DBName               string           `position:"Query" name:"DBName"`
+}
+
+// DescribeSlowLogsResponse is the response struct for api DescribeSlowLogs
+type DescribeSlowLogsResponse struct {
+	*responses.BaseResponse
+	RequestId        string                  `json:"RequestId" xml:"RequestId"`
+	DBClusterId      string                  `json:"DBClusterId" xml:"DBClusterId"`
+	StartTime        string                  `json:"StartTime" xml:"StartTime"`
+	EndTime          string                  `json:"EndTime" xml:"EndTime"`
+	Engine           string                  `json:"Engine" xml:"Engine"`
+	TotalRecordCount int                     `json:"TotalRecordCount" xml:"TotalRecordCount"`
+	PageNumber       int                     `json:"PageNumber" xml:"PageNumber"`
+	PageRecordCount  int                     `json:"PageRecordCount" xml:"PageRecordCount"`
+	Items            ItemsInDescribeSlowLogs `json:"Items" xml:"Items"`
+}
+
+// CreateDescribeSlowLogsRequest creates a request to invoke DescribeSlowLogs API
+func CreateDescribeSlowLogsRequest() (request *DescribeSlowLogsRequest) {
+	request = &DescribeSlowLogsRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("polardb", "2017-08-01", "DescribeSlowLogs", "polardb", "openAPI")
+	return
+}
+
+// CreateDescribeSlowLogsResponse creates a response to parse from DescribeSlowLogs response
+func CreateDescribeSlowLogsResponse() (response *DescribeSlowLogsResponse) {
+	response = &DescribeSlowLogsResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 118 - 0
services/polardb/list_tag_resources.go

@@ -0,0 +1,118 @@
+package polardb
+
+//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"
+)
+
+// ListTagResources invokes the polardb.ListTagResources API synchronously
+// api document: https://help.aliyun.com/api/polardb/listtagresources.html
+func (client *Client) ListTagResources(request *ListTagResourcesRequest) (response *ListTagResourcesResponse, err error) {
+	response = CreateListTagResourcesResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ListTagResourcesWithChan invokes the polardb.ListTagResources API asynchronously
+// api document: https://help.aliyun.com/api/polardb/listtagresources.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListTagResourcesWithChan(request *ListTagResourcesRequest) (<-chan *ListTagResourcesResponse, <-chan error) {
+	responseChan := make(chan *ListTagResourcesResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ListTagResources(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ListTagResourcesWithCallback invokes the polardb.ListTagResources API asynchronously
+// api document: https://help.aliyun.com/api/polardb/listtagresources.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ListTagResourcesWithCallback(request *ListTagResourcesRequest, callback func(response *ListTagResourcesResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ListTagResourcesResponse
+		var err error
+		defer close(result)
+		response, err = client.ListTagResources(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ListTagResourcesRequest is the request struct for api ListTagResources
+type ListTagResourcesRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer       `position:"Query" name:"ResourceOwnerId"`
+	NextToken            string                 `position:"Query" name:"NextToken"`
+	Tag                  *[]ListTagResourcesTag `position:"Query" name:"Tag"  type:"Repeated"`
+	ResourceId           *[]string              `position:"Query" name:"ResourceId"  type:"Repeated"`
+	ResourceOwnerAccount string                 `position:"Query" name:"ResourceOwnerAccount"`
+	OwnerAccount         string                 `position:"Query" name:"OwnerAccount"`
+	OwnerId              requests.Integer       `position:"Query" name:"OwnerId"`
+	ResourceType         string                 `position:"Query" name:"ResourceType"`
+}
+
+// ListTagResourcesTag is a repeated param struct in ListTagResourcesRequest
+type ListTagResourcesTag struct {
+	Value string `name:"Value"`
+	Key   string `name:"Key"`
+}
+
+// ListTagResourcesResponse is the response struct for api ListTagResources
+type ListTagResourcesResponse struct {
+	*responses.BaseResponse
+	RequestId    string       `json:"RequestId" xml:"RequestId"`
+	NextToken    string       `json:"NextToken" xml:"NextToken"`
+	TagResources TagResources `json:"TagResources" xml:"TagResources"`
+}
+
+// CreateListTagResourcesRequest creates a request to invoke ListTagResources API
+func CreateListTagResourcesRequest() (request *ListTagResourcesRequest) {
+	request = &ListTagResourcesRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("polardb", "2017-08-01", "ListTagResources", "polardb", "openAPI")
+	return
+}
+
+// CreateListTagResourcesResponse creates a response to parse from ListTagResources response
+func CreateListTagResourcesResponse() (response *ListTagResourcesResponse) {
+	response = &ListTagResourcesResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 2 - 0
services/polardb/modify_db_cluster_access_whitelist.go

@@ -82,7 +82,9 @@ type ModifyDBClusterAccessWhitelistRequest struct {
 	ResourceOwnerAccount      string           `position:"Query" name:"ResourceOwnerAccount"`
 	DBClusterId               string           `position:"Query" name:"DBClusterId"`
 	OwnerAccount              string           `position:"Query" name:"OwnerAccount"`
+	WhiteListType             string           `position:"Query" name:"WhiteListType"`
 	OwnerId                   requests.Integer `position:"Query" name:"OwnerId"`
+	SecurityGroupIds          string           `position:"Query" name:"SecurityGroupIds"`
 	DBClusterIPArrayName      string           `position:"Query" name:"DBClusterIPArrayName"`
 }
 

+ 8 - 7
services/polardb/struct_db_account.go

@@ -17,11 +17,12 @@ package polardb
 
 // DBAccount is a nested struct in polardb response
 type DBAccount struct {
-	AccountName        string              `json:"AccountName" xml:"AccountName"`
-	AccountStatus      string              `json:"AccountStatus" xml:"AccountStatus"`
-	AccountDescription string              `json:"AccountDescription" xml:"AccountDescription"`
-	AccountType        string              `json:"AccountType" xml:"AccountType"`
-	AccountLockState   string              `json:"AccountLockState" xml:"AccountLockState"`
-	PrivilegeExceeded  string              `json:"PrivilegeExceeded" xml:"PrivilegeExceeded"`
-	DatabasePrivileges []DatabasePrivilege `json:"DatabasePrivileges" xml:"DatabasePrivileges"`
+	AccountName              string              `json:"AccountName" xml:"AccountName"`
+	AccountStatus            string              `json:"AccountStatus" xml:"AccountStatus"`
+	AccountDescription       string              `json:"AccountDescription" xml:"AccountDescription"`
+	AccountType              string              `json:"AccountType" xml:"AccountType"`
+	AccountLockState         string              `json:"AccountLockState" xml:"AccountLockState"`
+	PrivilegeExceeded        string              `json:"PrivilegeExceeded" xml:"PrivilegeExceeded"`
+	AccountPasswordValidTime string              `json:"AccountPasswordValidTime" xml:"AccountPasswordValidTime"`
+	DatabasePrivileges       []DatabasePrivilege `json:"DatabasePrivileges" xml:"DatabasePrivileges"`
 }

+ 1 - 0
services/polardb/struct_db_cluster.go

@@ -36,6 +36,7 @@ type DBCluster struct {
 	DBNodeNumber         int                         `json:"DBNodeNumber" xml:"DBNodeNumber"`
 	DBNodeClass          string                      `json:"DBNodeClass" xml:"DBNodeClass"`
 	StorageUsed          int64                       `json:"StorageUsed" xml:"StorageUsed"`
+	ResourceGroupId      string                      `json:"ResourceGroupId" xml:"ResourceGroupId"`
 	DBNodes              DBNodesInDescribeDBClusters `json:"DBNodes" xml:"DBNodes"`
 	Tags                 TagsInDescribeDBClusters    `json:"Tags" xml:"Tags"`
 }

+ 22 - 0
services/polardb/struct_db_cluster_security_group.go

@@ -0,0 +1,22 @@
+package polardb
+
+//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.
+
+// DBClusterSecurityGroup is a nested struct in polardb response
+type DBClusterSecurityGroup struct {
+	SecurityGroupId   string `json:"SecurityGroupId" xml:"SecurityGroupId"`
+	SecurityGroupName string `json:"SecurityGroupName" xml:"SecurityGroupName"`
+}

+ 21 - 0
services/polardb/struct_db_cluster_security_groups.go

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

+ 21 - 0
services/polardb/struct_items_in_describe_slow_log_records.go

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

+ 21 - 0
services/polardb/struct_items_in_describe_slow_logs.go

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

+ 34 - 0
services/polardb/struct_sql_slow_log.go

@@ -0,0 +1,34 @@
+package polardb
+
+//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.
+
+// SQLSlowLog is a nested struct in polardb response
+type SQLSlowLog struct {
+	DBNodeId             string `json:"DBNodeId" xml:"DBNodeId"`
+	ParseMaxRowCount     int64  `json:"ParseMaxRowCount" xml:"ParseMaxRowCount"`
+	TotalLockTimes       int64  `json:"TotalLockTimes" xml:"TotalLockTimes"`
+	DBName               string `json:"DBName" xml:"DBName"`
+	MaxExecutionTime     int64  `json:"MaxExecutionTime" xml:"MaxExecutionTime"`
+	SQLHASH              string `json:"SQLHASH" xml:"SQLHASH"`
+	SQLText              string `json:"SQLText" xml:"SQLText"`
+	CreateTime           string `json:"CreateTime" xml:"CreateTime"`
+	TotalExecutionTimes  int64  `json:"TotalExecutionTimes" xml:"TotalExecutionTimes"`
+	ReturnTotalRowCounts int64  `json:"ReturnTotalRowCounts" xml:"ReturnTotalRowCounts"`
+	TotalExecutionCounts int64  `json:"TotalExecutionCounts" xml:"TotalExecutionCounts"`
+	MaxLockTime          int64  `json:"MaxLockTime" xml:"MaxLockTime"`
+	ReturnMaxRowCount    int64  `json:"ReturnMaxRowCount" xml:"ReturnMaxRowCount"`
+	ParseTotalRowCounts  int64  `json:"ParseTotalRowCounts" xml:"ParseTotalRowCounts"`
+}

+ 29 - 0
services/polardb/struct_sql_slow_record.go

@@ -0,0 +1,29 @@
+package polardb
+
+//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.
+
+// SQLSlowRecord is a nested struct in polardb response
+type SQLSlowRecord struct {
+	HostAddress        string `json:"HostAddress" xml:"HostAddress"`
+	DBName             string `json:"DBName" xml:"DBName"`
+	SQLText            string `json:"SQLText" xml:"SQLText"`
+	QueryTimes         int64  `json:"QueryTimes" xml:"QueryTimes"`
+	LockTimes          int64  `json:"LockTimes" xml:"LockTimes"`
+	ParseRowCounts     int64  `json:"ParseRowCounts" xml:"ParseRowCounts"`
+	ReturnRowCounts    int64  `json:"ReturnRowCounts" xml:"ReturnRowCounts"`
+	ExecutionStartTime string `json:"ExecutionStartTime" xml:"ExecutionStartTime"`
+	DBNodeId           string `json:"DBNodeId" xml:"DBNodeId"`
+}

+ 24 - 0
services/polardb/struct_tag_resource.go

@@ -0,0 +1,24 @@
+package polardb
+
+//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.
+
+// TagResource is a nested struct in polardb response
+type TagResource struct {
+	TagKey       string `json:"TagKey" xml:"TagKey"`
+	TagValue     string `json:"TagValue" xml:"TagValue"`
+	ResourceType string `json:"ResourceType" xml:"ResourceType"`
+	ResourceId   string `json:"ResourceId" xml:"ResourceId"`
+}

+ 21 - 0
services/polardb/struct_tag_resources.go

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