Browse Source

POLARDB SDK Auto Released By zhigang.xzg,Version:1.47.3

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
haowei.yao 7 years ago
parent
commit
56ab3d10ba
50 changed files with 1540 additions and 1043 deletions
  1. 4 0
      ChangeLog.txt
  2. 110 0
      services/polardb/create_db_cluster_endpoint.go
  3. 110 0
      services/polardb/create_db_endpoint_address.go
  4. 0 1
      services/polardb/delete_db_cluster.go
  5. 108 0
      services/polardb/delete_db_cluster_endpoint.go
  6. 109 0
      services/polardb/delete_db_endpoint_address.go
  7. 2 2
      services/polardb/describe_accounts.go
  8. 108 0
      services/polardb/describe_db_cluster_access_whitelist.go
  9. 20 2
      services/polardb/describe_db_cluster_attribute.go
  10. 109 0
      services/polardb/describe_db_cluster_endpoints.go
  11. 111 0
      services/polardb/describe_db_cluster_parameters.go
  12. 0 117
      services/polardb/describe_db_node_performance.go
  13. 0 116
      services/polardb/describe_error_logs.go
  14. 0 117
      services/polardb/describe_slow_log_records.go
  15. 0 119
      services/polardb/describe_slow_logs.go
  16. 0 109
      services/polardb/describe_sql_explorer_policy.go
  17. 26 26
      services/polardb/modify_account_password.go
  18. 110 0
      services/polardb/modify_db_cluster_access_whitelist.go
  19. 110 0
      services/polardb/modify_db_cluster_endpoint.go
  20. 109 0
      services/polardb/modify_db_cluster_parameters.go
  21. 109 0
      services/polardb/modify_db_description.go
  22. 110 0
      services/polardb/modify_db_endpoint_address.go
  23. 0 109
      services/polardb/modify_sql_explorer_policy.go
  24. 0 1
      services/polardb/restart_db_node.go
  25. 1 1
      services/polardb/struct_accounts_in_describe_accounts.go
  26. 26 0
      services/polardb/struct_address.go
  27. 3 3
      services/polardb/struct_address_items.go
  28. 0 1
      services/polardb/struct_database.go
  29. 2 3
      services/polardb/struct_database_privilege.go
  30. 26 0
      services/polardb/struct_db_account.go
  31. 18 18
      services/polardb/struct_db_cluster.go
  32. 0 41
      services/polardb/struct_db_cluster_attribute.go
  33. 23 0
      services/polardb/struct_db_cluster_ip_array.go
  34. 25 0
      services/polardb/struct_db_endpoint.go
  35. 0 37
      services/polardb/struct_db_instance.go
  36. 0 27
      services/polardb/struct_db_instance_account.go
  37. 8 2
      services/polardb/struct_db_node.go
  38. 3 3
      services/polardb/struct_db_nodes_in_describe_db_cluster_attribute.go
  39. 2 2
      services/polardb/struct_db_nodes_in_describe_db_clusters.go
  40. 3 3
      services/polardb/struct_items_in_describe_db_cluster_access_whitelist.go
  41. 3 4
      services/polardb/struct_items_in_describe_db_cluster_endpoints.go
  42. 0 21
      services/polardb/struct_items_in_describe_slow_log_records.go
  43. 29 0
      services/polardb/struct_parameter.go
  44. 0 23
      services/polardb/struct_performance_item.go
  45. 0 22
      services/polardb/struct_performance_item_value.go
  46. 0 21
      services/polardb/struct_performance_keys.go
  47. 0 21
      services/polardb/struct_points.go
  48. 3 3
      services/polardb/struct_running_parameters.go
  49. 0 40
      services/polardb/struct_sql_slow_log.go
  50. 0 28
      services/polardb/struct_sql_slow_record.go

+ 4 - 0
ChangeLog.txt

@@ -1,3 +1,7 @@
+2018-12-25 Version: 1.47.3
+1, Add interface of endpoint.
+2, Add interface of cluster parameter.
+
 2018-12-21 Version: 1.47.2
 1, ARMS SDK 2018-12-19 go sdk upload
 

+ 110 - 0
services/polardb/create_db_cluster_endpoint.go

@@ -0,0 +1,110 @@
+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"
+)
+
+// CreateDBClusterEndpoint invokes the polardb.CreateDBClusterEndpoint API synchronously
+// api document: https://help.aliyun.com/api/polardb/createdbclusterendpoint.html
+func (client *Client) CreateDBClusterEndpoint(request *CreateDBClusterEndpointRequest) (response *CreateDBClusterEndpointResponse, err error) {
+	response = CreateCreateDBClusterEndpointResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// CreateDBClusterEndpointWithChan invokes the polardb.CreateDBClusterEndpoint API asynchronously
+// api document: https://help.aliyun.com/api/polardb/createdbclusterendpoint.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateDBClusterEndpointWithChan(request *CreateDBClusterEndpointRequest) (<-chan *CreateDBClusterEndpointResponse, <-chan error) {
+	responseChan := make(chan *CreateDBClusterEndpointResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.CreateDBClusterEndpoint(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// CreateDBClusterEndpointWithCallback invokes the polardb.CreateDBClusterEndpoint API asynchronously
+// api document: https://help.aliyun.com/api/polardb/createdbclusterendpoint.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateDBClusterEndpointWithCallback(request *CreateDBClusterEndpointRequest, callback func(response *CreateDBClusterEndpointResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *CreateDBClusterEndpointResponse
+		var err error
+		defer close(result)
+		response, err = client.CreateDBClusterEndpoint(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// CreateDBClusterEndpointRequest is the request struct for api CreateDBClusterEndpoint
+type CreateDBClusterEndpointRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	Nodes                string           `position:"Query" name:"Nodes"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	EndpointType         string           `position:"Query" name:"EndpointType"`
+	ClientToken          string           `position:"Query" name:"ClientToken"`
+	DBClusterId          string           `position:"Query" name:"DBClusterId"`
+	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+}
+
+// CreateDBClusterEndpointResponse is the response struct for api CreateDBClusterEndpoint
+type CreateDBClusterEndpointResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateCreateDBClusterEndpointRequest creates a request to invoke CreateDBClusterEndpoint API
+func CreateCreateDBClusterEndpointRequest() (request *CreateDBClusterEndpointRequest) {
+	request = &CreateDBClusterEndpointRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("polardb", "2017-08-01", "CreateDBClusterEndpoint", "polardb", "openAPI")
+	return
+}
+
+// CreateCreateDBClusterEndpointResponse creates a response to parse from CreateDBClusterEndpoint response
+func CreateCreateDBClusterEndpointResponse() (response *CreateDBClusterEndpointResponse) {
+	response = &CreateDBClusterEndpointResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 110 - 0
services/polardb/create_db_endpoint_address.go

@@ -0,0 +1,110 @@
+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"
+)
+
+// CreateDBEndpointAddress invokes the polardb.CreateDBEndpointAddress API synchronously
+// api document: https://help.aliyun.com/api/polardb/createdbendpointaddress.html
+func (client *Client) CreateDBEndpointAddress(request *CreateDBEndpointAddressRequest) (response *CreateDBEndpointAddressResponse, err error) {
+	response = CreateCreateDBEndpointAddressResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// CreateDBEndpointAddressWithChan invokes the polardb.CreateDBEndpointAddress API asynchronously
+// api document: https://help.aliyun.com/api/polardb/createdbendpointaddress.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateDBEndpointAddressWithChan(request *CreateDBEndpointAddressRequest) (<-chan *CreateDBEndpointAddressResponse, <-chan error) {
+	responseChan := make(chan *CreateDBEndpointAddressResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.CreateDBEndpointAddress(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// CreateDBEndpointAddressWithCallback invokes the polardb.CreateDBEndpointAddress API asynchronously
+// api document: https://help.aliyun.com/api/polardb/createdbendpointaddress.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateDBEndpointAddressWithCallback(request *CreateDBEndpointAddressRequest, callback func(response *CreateDBEndpointAddressResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *CreateDBEndpointAddressResponse
+		var err error
+		defer close(result)
+		response, err = client.CreateDBEndpointAddress(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// CreateDBEndpointAddressRequest is the request struct for api CreateDBEndpointAddress
+type CreateDBEndpointAddressRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId        requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	ConnectionStringPrefix string           `position:"Query" name:"ConnectionStringPrefix"`
+	ResourceOwnerAccount   string           `position:"Query" name:"ResourceOwnerAccount"`
+	DBClusterId            string           `position:"Query" name:"DBClusterId"`
+	OwnerAccount           string           `position:"Query" name:"OwnerAccount"`
+	NetType                string           `position:"Query" name:"NetType"`
+	DBEndpointId           string           `position:"Query" name:"DBEndpointId"`
+	OwnerId                requests.Integer `position:"Query" name:"OwnerId"`
+}
+
+// CreateDBEndpointAddressResponse is the response struct for api CreateDBEndpointAddress
+type CreateDBEndpointAddressResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateCreateDBEndpointAddressRequest creates a request to invoke CreateDBEndpointAddress API
+func CreateCreateDBEndpointAddressRequest() (request *CreateDBEndpointAddressRequest) {
+	request = &CreateDBEndpointAddressRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("polardb", "2017-08-01", "CreateDBEndpointAddress", "polardb", "openAPI")
+	return
+}
+
+// CreateCreateDBEndpointAddressResponse creates a response to parse from CreateDBEndpointAddress response
+func CreateCreateDBEndpointAddressResponse() (response *CreateDBEndpointAddressResponse) {
+	response = &CreateDBEndpointAddressResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 0 - 1
services/polardb/delete_db_cluster.go

@@ -78,7 +78,6 @@ type DeleteDBClusterRequest struct {
 	*requests.RpcRequest
 	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
 	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
-	ClientToken          string           `position:"Query" name:"ClientToken"`
 	DBClusterId          string           `position:"Query" name:"DBClusterId"`
 	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
 	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`

+ 108 - 0
services/polardb/delete_db_cluster_endpoint.go

@@ -0,0 +1,108 @@
+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"
+)
+
+// DeleteDBClusterEndpoint invokes the polardb.DeleteDBClusterEndpoint API synchronously
+// api document: https://help.aliyun.com/api/polardb/deletedbclusterendpoint.html
+func (client *Client) DeleteDBClusterEndpoint(request *DeleteDBClusterEndpointRequest) (response *DeleteDBClusterEndpointResponse, err error) {
+	response = CreateDeleteDBClusterEndpointResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DeleteDBClusterEndpointWithChan invokes the polardb.DeleteDBClusterEndpoint API asynchronously
+// api document: https://help.aliyun.com/api/polardb/deletedbclusterendpoint.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteDBClusterEndpointWithChan(request *DeleteDBClusterEndpointRequest) (<-chan *DeleteDBClusterEndpointResponse, <-chan error) {
+	responseChan := make(chan *DeleteDBClusterEndpointResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DeleteDBClusterEndpoint(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DeleteDBClusterEndpointWithCallback invokes the polardb.DeleteDBClusterEndpoint API asynchronously
+// api document: https://help.aliyun.com/api/polardb/deletedbclusterendpoint.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteDBClusterEndpointWithCallback(request *DeleteDBClusterEndpointRequest, callback func(response *DeleteDBClusterEndpointResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DeleteDBClusterEndpointResponse
+		var err error
+		defer close(result)
+		response, err = client.DeleteDBClusterEndpoint(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DeleteDBClusterEndpointRequest is the request struct for api DeleteDBClusterEndpoint
+type DeleteDBClusterEndpointRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	DBClusterId          string           `position:"Query" name:"DBClusterId"`
+	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
+	DBEndpointId         string           `position:"Query" name:"DBEndpointId"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+}
+
+// DeleteDBClusterEndpointResponse is the response struct for api DeleteDBClusterEndpoint
+type DeleteDBClusterEndpointResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateDeleteDBClusterEndpointRequest creates a request to invoke DeleteDBClusterEndpoint API
+func CreateDeleteDBClusterEndpointRequest() (request *DeleteDBClusterEndpointRequest) {
+	request = &DeleteDBClusterEndpointRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("polardb", "2017-08-01", "DeleteDBClusterEndpoint", "polardb", "openAPI")
+	return
+}
+
+// CreateDeleteDBClusterEndpointResponse creates a response to parse from DeleteDBClusterEndpoint response
+func CreateDeleteDBClusterEndpointResponse() (response *DeleteDBClusterEndpointResponse) {
+	response = &DeleteDBClusterEndpointResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 109 - 0
services/polardb/delete_db_endpoint_address.go

@@ -0,0 +1,109 @@
+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"
+)
+
+// DeleteDBEndpointAddress invokes the polardb.DeleteDBEndpointAddress API synchronously
+// api document: https://help.aliyun.com/api/polardb/deletedbendpointaddress.html
+func (client *Client) DeleteDBEndpointAddress(request *DeleteDBEndpointAddressRequest) (response *DeleteDBEndpointAddressResponse, err error) {
+	response = CreateDeleteDBEndpointAddressResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DeleteDBEndpointAddressWithChan invokes the polardb.DeleteDBEndpointAddress API asynchronously
+// api document: https://help.aliyun.com/api/polardb/deletedbendpointaddress.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteDBEndpointAddressWithChan(request *DeleteDBEndpointAddressRequest) (<-chan *DeleteDBEndpointAddressResponse, <-chan error) {
+	responseChan := make(chan *DeleteDBEndpointAddressResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DeleteDBEndpointAddress(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DeleteDBEndpointAddressWithCallback invokes the polardb.DeleteDBEndpointAddress API asynchronously
+// api document: https://help.aliyun.com/api/polardb/deletedbendpointaddress.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteDBEndpointAddressWithCallback(request *DeleteDBEndpointAddressRequest, callback func(response *DeleteDBEndpointAddressResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DeleteDBEndpointAddressResponse
+		var err error
+		defer close(result)
+		response, err = client.DeleteDBEndpointAddress(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DeleteDBEndpointAddressRequest is the request struct for api DeleteDBEndpointAddress
+type DeleteDBEndpointAddressRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	DBClusterId          string           `position:"Query" name:"DBClusterId"`
+	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
+	NetType              string           `position:"Query" name:"NetType"`
+	DBEndpointId         string           `position:"Query" name:"DBEndpointId"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+}
+
+// DeleteDBEndpointAddressResponse is the response struct for api DeleteDBEndpointAddress
+type DeleteDBEndpointAddressResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateDeleteDBEndpointAddressRequest creates a request to invoke DeleteDBEndpointAddress API
+func CreateDeleteDBEndpointAddressRequest() (request *DeleteDBEndpointAddressRequest) {
+	request = &DeleteDBEndpointAddressRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("polardb", "2017-08-01", "DeleteDBEndpointAddress", "polardb", "openAPI")
+	return
+}
+
+// CreateDeleteDBEndpointAddressResponse creates a response to parse from DeleteDBEndpointAddress response
+func CreateDeleteDBEndpointAddressResponse() (response *DeleteDBEndpointAddressResponse) {
+	response = &DeleteDBEndpointAddressResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 2 - 2
services/polardb/describe_accounts.go

@@ -87,8 +87,8 @@ type DescribeAccountsRequest struct {
 // DescribeAccountsResponse is the response struct for api DescribeAccounts
 type DescribeAccountsResponse struct {
 	*responses.BaseResponse
-	RequestId string                     `json:"RequestId" xml:"RequestId"`
-	Accounts  AccountsInDescribeAccounts `json:"Accounts" xml:"Accounts"`
+	RequestId string      `json:"RequestId" xml:"RequestId"`
+	Accounts  []DBAccount `json:"Accounts" xml:"Accounts"`
 }
 
 // CreateDescribeAccountsRequest creates a request to invoke DescribeAccounts API

+ 108 - 0
services/polardb/describe_db_cluster_access_whitelist.go

@@ -0,0 +1,108 @@
+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"
+)
+
+// DescribeDBClusterAccessWhitelist invokes the polardb.DescribeDBClusterAccessWhitelist API synchronously
+// api document: https://help.aliyun.com/api/polardb/describedbclusteraccesswhitelist.html
+func (client *Client) DescribeDBClusterAccessWhitelist(request *DescribeDBClusterAccessWhitelistRequest) (response *DescribeDBClusterAccessWhitelistResponse, err error) {
+	response = CreateDescribeDBClusterAccessWhitelistResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeDBClusterAccessWhitelistWithChan invokes the polardb.DescribeDBClusterAccessWhitelist API asynchronously
+// api document: https://help.aliyun.com/api/polardb/describedbclusteraccesswhitelist.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeDBClusterAccessWhitelistWithChan(request *DescribeDBClusterAccessWhitelistRequest) (<-chan *DescribeDBClusterAccessWhitelistResponse, <-chan error) {
+	responseChan := make(chan *DescribeDBClusterAccessWhitelistResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeDBClusterAccessWhitelist(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeDBClusterAccessWhitelistWithCallback invokes the polardb.DescribeDBClusterAccessWhitelist API asynchronously
+// api document: https://help.aliyun.com/api/polardb/describedbclusteraccesswhitelist.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeDBClusterAccessWhitelistWithCallback(request *DescribeDBClusterAccessWhitelistRequest, callback func(response *DescribeDBClusterAccessWhitelistResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeDBClusterAccessWhitelistResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeDBClusterAccessWhitelist(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeDBClusterAccessWhitelistRequest is the request struct for api DescribeDBClusterAccessWhitelist
+type DescribeDBClusterAccessWhitelistRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	DBClusterId          string           `position:"Query" name:"DBClusterId"`
+	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+}
+
+// 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"`
+}
+
+// CreateDescribeDBClusterAccessWhitelistRequest creates a request to invoke DescribeDBClusterAccessWhitelist API
+func CreateDescribeDBClusterAccessWhitelistRequest() (request *DescribeDBClusterAccessWhitelistRequest) {
+	request = &DescribeDBClusterAccessWhitelistRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("polardb", "2017-08-01", "DescribeDBClusterAccessWhitelist", "polardb", "openAPI")
+	return
+}
+
+// CreateDescribeDBClusterAccessWhitelistResponse creates a response to parse from DescribeDBClusterAccessWhitelist response
+func CreateDescribeDBClusterAccessWhitelistResponse() (response *DescribeDBClusterAccessWhitelistResponse) {
+	response = &DescribeDBClusterAccessWhitelistResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 20 - 2
services/polardb/describe_db_cluster_attribute.go

@@ -86,8 +86,26 @@ type DescribeDBClusterAttributeRequest struct {
 // DescribeDBClusterAttributeResponse is the response struct for api DescribeDBClusterAttribute
 type DescribeDBClusterAttributeResponse struct {
 	*responses.BaseResponse
-	RequestId string                            `json:"RequestId" xml:"RequestId"`
-	Items     ItemsInDescribeDBClusterAttribute `json:"Items" xml:"Items"`
+	RequestId            string   `json:"RequestId" xml:"RequestId"`
+	RegionId             string   `json:"RegionId" xml:"RegionId"`
+	DBClusterNetworkType string   `json:"DBClusterNetworkType" xml:"DBClusterNetworkType"`
+	VPCId                string   `json:"VPCId" xml:"VPCId"`
+	VSwitchId            string   `json:"VSwitchId" xml:"VSwitchId"`
+	PayType              string   `json:"PayType" xml:"PayType"`
+	DBClusterId          string   `json:"DBClusterId" xml:"DBClusterId"`
+	DBClusterStatus      string   `json:"DBClusterStatus" xml:"DBClusterStatus"`
+	DBClusterDescription string   `json:"DBClusterDescription" xml:"DBClusterDescription"`
+	Engine               string   `json:"Engine" xml:"Engine"`
+	DBType               string   `json:"DBType" xml:"DBType"`
+	DBVersion            string   `json:"DBVersion" xml:"DBVersion"`
+	LockMode             string   `json:"LockMode" xml:"LockMode"`
+	CreationTime         string   `json:"CreationTime" xml:"CreationTime"`
+	ExpireTime           string   `json:"ExpireTime" xml:"ExpireTime"`
+	Expired              string   `json:"Expired" xml:"Expired"`
+	MaintainTime         string   `json:"MaintainTime" xml:"MaintainTime"`
+	StorageUsed          int      `json:"StorageUsed" xml:"StorageUsed"`
+	SQLSize              int      `json:"SQLSize" xml:"SQLSize"`
+	DBNodes              []DBNode `json:"DBNodes" xml:"DBNodes"`
 }
 
 // CreateDescribeDBClusterAttributeRequest creates a request to invoke DescribeDBClusterAttribute API

+ 109 - 0
services/polardb/describe_db_cluster_endpoints.go

@@ -0,0 +1,109 @@
+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"
+)
+
+// DescribeDBClusterEndpoints invokes the polardb.DescribeDBClusterEndpoints API synchronously
+// api document: https://help.aliyun.com/api/polardb/describedbclusterendpoints.html
+func (client *Client) DescribeDBClusterEndpoints(request *DescribeDBClusterEndpointsRequest) (response *DescribeDBClusterEndpointsResponse, err error) {
+	response = CreateDescribeDBClusterEndpointsResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeDBClusterEndpointsWithChan invokes the polardb.DescribeDBClusterEndpoints API asynchronously
+// api document: https://help.aliyun.com/api/polardb/describedbclusterendpoints.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeDBClusterEndpointsWithChan(request *DescribeDBClusterEndpointsRequest) (<-chan *DescribeDBClusterEndpointsResponse, <-chan error) {
+	responseChan := make(chan *DescribeDBClusterEndpointsResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeDBClusterEndpoints(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeDBClusterEndpointsWithCallback invokes the polardb.DescribeDBClusterEndpoints API asynchronously
+// api document: https://help.aliyun.com/api/polardb/describedbclusterendpoints.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeDBClusterEndpointsWithCallback(request *DescribeDBClusterEndpointsRequest, callback func(response *DescribeDBClusterEndpointsResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeDBClusterEndpointsResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeDBClusterEndpoints(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeDBClusterEndpointsRequest is the request struct for api DescribeDBClusterEndpoints
+type DescribeDBClusterEndpointsRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	DBClusterId          string           `position:"Query" name:"DBClusterId"`
+	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
+	DBEndpointId         string           `position:"Query" name:"DBEndpointId"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+}
+
+// DescribeDBClusterEndpointsResponse is the response struct for api DescribeDBClusterEndpoints
+type DescribeDBClusterEndpointsResponse struct {
+	*responses.BaseResponse
+	RequestId string       `json:"RequestId" xml:"RequestId"`
+	Items     []DBEndpoint `json:"Items" xml:"Items"`
+}
+
+// CreateDescribeDBClusterEndpointsRequest creates a request to invoke DescribeDBClusterEndpoints API
+func CreateDescribeDBClusterEndpointsRequest() (request *DescribeDBClusterEndpointsRequest) {
+	request = &DescribeDBClusterEndpointsRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("polardb", "2017-08-01", "DescribeDBClusterEndpoints", "polardb", "openAPI")
+	return
+}
+
+// CreateDescribeDBClusterEndpointsResponse creates a response to parse from DescribeDBClusterEndpoints response
+func CreateDescribeDBClusterEndpointsResponse() (response *DescribeDBClusterEndpointsResponse) {
+	response = &DescribeDBClusterEndpointsResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 111 - 0
services/polardb/describe_db_cluster_parameters.go

@@ -0,0 +1,111 @@
+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"
+)
+
+// DescribeDBClusterParameters invokes the polardb.DescribeDBClusterParameters API synchronously
+// api document: https://help.aliyun.com/api/polardb/describedbclusterparameters.html
+func (client *Client) DescribeDBClusterParameters(request *DescribeDBClusterParametersRequest) (response *DescribeDBClusterParametersResponse, err error) {
+	response = CreateDescribeDBClusterParametersResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeDBClusterParametersWithChan invokes the polardb.DescribeDBClusterParameters API asynchronously
+// api document: https://help.aliyun.com/api/polardb/describedbclusterparameters.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeDBClusterParametersWithChan(request *DescribeDBClusterParametersRequest) (<-chan *DescribeDBClusterParametersResponse, <-chan error) {
+	responseChan := make(chan *DescribeDBClusterParametersResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeDBClusterParameters(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeDBClusterParametersWithCallback invokes the polardb.DescribeDBClusterParameters API asynchronously
+// api document: https://help.aliyun.com/api/polardb/describedbclusterparameters.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeDBClusterParametersWithCallback(request *DescribeDBClusterParametersRequest, callback func(response *DescribeDBClusterParametersResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeDBClusterParametersResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeDBClusterParameters(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeDBClusterParametersRequest is the request struct for api DescribeDBClusterParameters
+type DescribeDBClusterParametersRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	DBClusterId          string           `position:"Query" name:"DBClusterId"`
+	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+}
+
+// DescribeDBClusterParametersResponse is the response struct for api DescribeDBClusterParameters
+type DescribeDBClusterParametersResponse struct {
+	*responses.BaseResponse
+	RequestId         string            `json:"RequestId" xml:"RequestId"`
+	Engine            string            `json:"Engine" xml:"Engine"`
+	DBType            string            `json:"DBType" xml:"DBType"`
+	DBVersion         string            `json:"DBVersion" xml:"DBVersion"`
+	RunningParameters RunningParameters `json:"RunningParameters" xml:"RunningParameters"`
+}
+
+// CreateDescribeDBClusterParametersRequest creates a request to invoke DescribeDBClusterParameters API
+func CreateDescribeDBClusterParametersRequest() (request *DescribeDBClusterParametersRequest) {
+	request = &DescribeDBClusterParametersRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("polardb", "2017-08-01", "DescribeDBClusterParameters", "polardb", "openAPI")
+	return
+}
+
+// CreateDescribeDBClusterParametersResponse creates a response to parse from DescribeDBClusterParameters response
+func CreateDescribeDBClusterParametersResponse() (response *DescribeDBClusterParametersResponse) {
+	response = &DescribeDBClusterParametersResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 0 - 117
services/polardb/describe_db_node_performance.go

@@ -1,117 +0,0 @@
-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"
-)
-
-// DescribeDBNodePerformance invokes the polardb.DescribeDBNodePerformance API synchronously
-// api document: https://help.aliyun.com/api/polardb/describedbnodeperformance.html
-func (client *Client) DescribeDBNodePerformance(request *DescribeDBNodePerformanceRequest) (response *DescribeDBNodePerformanceResponse, err error) {
-	response = CreateDescribeDBNodePerformanceResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// DescribeDBNodePerformanceWithChan invokes the polardb.DescribeDBNodePerformance API asynchronously
-// api document: https://help.aliyun.com/api/polardb/describedbnodeperformance.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeDBNodePerformanceWithChan(request *DescribeDBNodePerformanceRequest) (<-chan *DescribeDBNodePerformanceResponse, <-chan error) {
-	responseChan := make(chan *DescribeDBNodePerformanceResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.DescribeDBNodePerformance(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// DescribeDBNodePerformanceWithCallback invokes the polardb.DescribeDBNodePerformance API asynchronously
-// api document: https://help.aliyun.com/api/polardb/describedbnodeperformance.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeDBNodePerformanceWithCallback(request *DescribeDBNodePerformanceRequest, callback func(response *DescribeDBNodePerformanceResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *DescribeDBNodePerformanceResponse
-		var err error
-		defer close(result)
-		response, err = client.DescribeDBNodePerformance(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// DescribeDBNodePerformanceRequest is the request struct for api DescribeDBNodePerformance
-type DescribeDBNodePerformanceRequest struct {
-	*requests.RpcRequest
-	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
-	DBNodeId             string           `position:"Query" name:"DBNodeId"`
-	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
-	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
-	EndTime              string           `position:"Query" name:"EndTime"`
-	StartTime            string           `position:"Query" name:"StartTime"`
-	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
-	Key                  string           `position:"Query" name:"Key"`
-}
-
-// DescribeDBNodePerformanceResponse is the response struct for api DescribeDBNodePerformance
-type DescribeDBNodePerformanceResponse struct {
-	*responses.BaseResponse
-	RequestId       string          `json:"RequestId" xml:"RequestId"`
-	DBNodeId        string          `json:"DBNodeId" xml:"DBNodeId"`
-	Engine          string          `json:"Engine" xml:"Engine"`
-	DBType          string          `json:"DBType" xml:"DBType"`
-	DBVersion       string          `json:"DBVersion" xml:"DBVersion"`
-	StartTime       string          `json:"StartTime" xml:"StartTime"`
-	EndTime         string          `json:"EndTime" xml:"EndTime"`
-	PerformanceKeys PerformanceKeys `json:"PerformanceKeys" xml:"PerformanceKeys"`
-}
-
-// CreateDescribeDBNodePerformanceRequest creates a request to invoke DescribeDBNodePerformance API
-func CreateDescribeDBNodePerformanceRequest() (request *DescribeDBNodePerformanceRequest) {
-	request = &DescribeDBNodePerformanceRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("polardb", "2017-08-01", "DescribeDBNodePerformance", "polardb", "openAPI")
-	return
-}
-
-// CreateDescribeDBNodePerformanceResponse creates a response to parse from DescribeDBNodePerformance response
-func CreateDescribeDBNodePerformanceResponse() (response *DescribeDBNodePerformanceResponse) {
-	response = &DescribeDBNodePerformanceResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 116
services/polardb/describe_error_logs.go

@@ -1,116 +0,0 @@
-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"
-)
-
-// DescribeErrorLogs invokes the polardb.DescribeErrorLogs API synchronously
-// api document: https://help.aliyun.com/api/polardb/describeerrorlogs.html
-func (client *Client) DescribeErrorLogs(request *DescribeErrorLogsRequest) (response *DescribeErrorLogsResponse, err error) {
-	response = CreateDescribeErrorLogsResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// DescribeErrorLogsWithChan invokes the polardb.DescribeErrorLogs API asynchronously
-// api document: https://help.aliyun.com/api/polardb/describeerrorlogs.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeErrorLogsWithChan(request *DescribeErrorLogsRequest) (<-chan *DescribeErrorLogsResponse, <-chan error) {
-	responseChan := make(chan *DescribeErrorLogsResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.DescribeErrorLogs(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// DescribeErrorLogsWithCallback invokes the polardb.DescribeErrorLogs API asynchronously
-// api document: https://help.aliyun.com/api/polardb/describeerrorlogs.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeErrorLogsWithCallback(request *DescribeErrorLogsRequest, callback func(response *DescribeErrorLogsResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *DescribeErrorLogsResponse
-		var err error
-		defer close(result)
-		response, err = client.DescribeErrorLogs(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// DescribeErrorLogsRequest is the request struct for api DescribeErrorLogs
-type DescribeErrorLogsRequest struct {
-	*requests.RpcRequest
-	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
-	DBNodeId             string           `position:"Query" name:"DBNodeId"`
-	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
-	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
-	PageSize             requests.Integer `position:"Query" name:"PageSize"`
-	EndTime              string           `position:"Query" name:"EndTime"`
-	DBInstanceId         string           `position:"Query" name:"DBInstanceId"`
-	StartTime            string           `position:"Query" name:"StartTime"`
-	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
-	PageNumber           requests.Integer `position:"Query" name:"PageNumber"`
-}
-
-// DescribeErrorLogsResponse is the response struct for api DescribeErrorLogs
-type DescribeErrorLogsResponse struct {
-	*responses.BaseResponse
-	RequestId        string                   `json:"RequestId" xml:"RequestId"`
-	TotalRecordCount int                      `json:"TotalRecordCount" xml:"TotalRecordCount"`
-	PageNumber       int                      `json:"PageNumber" xml:"PageNumber"`
-	PageRecordCount  int                      `json:"PageRecordCount" xml:"PageRecordCount"`
-	Items            ItemsInDescribeErrorLogs `json:"Items" xml:"Items"`
-}
-
-// CreateDescribeErrorLogsRequest creates a request to invoke DescribeErrorLogs API
-func CreateDescribeErrorLogsRequest() (request *DescribeErrorLogsRequest) {
-	request = &DescribeErrorLogsRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("polardb", "2017-08-01", "DescribeErrorLogs", "polardb", "openAPI")
-	return
-}
-
-// CreateDescribeErrorLogsResponse creates a response to parse from DescribeErrorLogs response
-func CreateDescribeErrorLogsResponse() (response *DescribeErrorLogsResponse) {
-	response = &DescribeErrorLogsResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 117
services/polardb/describe_slow_log_records.go

@@ -1,117 +0,0 @@
-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"`
-	DBNodeId             string           `position:"Query" name:"DBNodeId"`
-	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
-	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
-	PageSize             requests.Integer `position:"Query" name:"PageSize"`
-	EndTime              string           `position:"Query" name:"EndTime"`
-	DBInstanceId         string           `position:"Query" name:"DBInstanceId"`
-	StartTime            string           `position:"Query" name:"StartTime"`
-	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
-	PageNumber           requests.Integer `position:"Query" name:"PageNumber"`
-}
-
-// DescribeSlowLogRecordsResponse is the response struct for api DescribeSlowLogRecords
-type DescribeSlowLogRecordsResponse struct {
-	*responses.BaseResponse
-	RequestId        string                        `json:"RequestId" xml:"RequestId"`
-	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
-}

+ 0 - 119
services/polardb/describe_slow_logs.go

@@ -1,119 +0,0 @@
-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"`
-	DBNodeId             string           `position:"Query" name:"DBNodeId"`
-	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
-	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
-	PageSize             requests.Integer `position:"Query" name:"PageSize"`
-	EndTime              string           `position:"Query" name:"EndTime"`
-	DBInstanceId         string           `position:"Query" name:"DBInstanceId"`
-	StartTime            string           `position:"Query" name:"StartTime"`
-	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
-	PageNumber           requests.Integer `position:"Query" name:"PageNumber"`
-}
-
-// DescribeSlowLogsResponse is the response struct for api DescribeSlowLogs
-type DescribeSlowLogsResponse struct {
-	*responses.BaseResponse
-	RequestId        string                  `json:"RequestId" xml:"RequestId"`
-	Engine           string                  `json:"Engine" xml:"Engine"`
-	StartTime        string                  `json:"StartTime" xml:"StartTime"`
-	EndTime          string                  `json:"EndTime" xml:"EndTime"`
-	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
-}

+ 0 - 109
services/polardb/describe_sql_explorer_policy.go

@@ -1,109 +0,0 @@
-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"
-)
-
-// DescribeSQLExplorerPolicy invokes the polardb.DescribeSQLExplorerPolicy API synchronously
-// api document: https://help.aliyun.com/api/polardb/describesqlexplorerpolicy.html
-func (client *Client) DescribeSQLExplorerPolicy(request *DescribeSQLExplorerPolicyRequest) (response *DescribeSQLExplorerPolicyResponse, err error) {
-	response = CreateDescribeSQLExplorerPolicyResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// DescribeSQLExplorerPolicyWithChan invokes the polardb.DescribeSQLExplorerPolicy API asynchronously
-// api document: https://help.aliyun.com/api/polardb/describesqlexplorerpolicy.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeSQLExplorerPolicyWithChan(request *DescribeSQLExplorerPolicyRequest) (<-chan *DescribeSQLExplorerPolicyResponse, <-chan error) {
-	responseChan := make(chan *DescribeSQLExplorerPolicyResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.DescribeSQLExplorerPolicy(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// DescribeSQLExplorerPolicyWithCallback invokes the polardb.DescribeSQLExplorerPolicy API asynchronously
-// api document: https://help.aliyun.com/api/polardb/describesqlexplorerpolicy.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DescribeSQLExplorerPolicyWithCallback(request *DescribeSQLExplorerPolicyRequest, callback func(response *DescribeSQLExplorerPolicyResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *DescribeSQLExplorerPolicyResponse
-		var err error
-		defer close(result)
-		response, err = client.DescribeSQLExplorerPolicy(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// DescribeSQLExplorerPolicyRequest is the request struct for api DescribeSQLExplorerPolicy
-type DescribeSQLExplorerPolicyRequest struct {
-	*requests.RpcRequest
-	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
-	DBNodeId             string           `position:"Query" name:"DBNodeId"`
-	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
-	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
-	DBInstanceId         string           `position:"Query" name:"DBInstanceId"`
-	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
-}
-
-// DescribeSQLExplorerPolicyResponse is the response struct for api DescribeSQLExplorerPolicy
-type DescribeSQLExplorerPolicyResponse struct {
-	*responses.BaseResponse
-	RequestId          string `json:"RequestId" xml:"RequestId"`
-	SQLCollectorStatus string `json:"SQLCollectorStatus" xml:"SQLCollectorStatus"`
-}
-
-// CreateDescribeSQLExplorerPolicyRequest creates a request to invoke DescribeSQLExplorerPolicy API
-func CreateDescribeSQLExplorerPolicyRequest() (request *DescribeSQLExplorerPolicyRequest) {
-	request = &DescribeSQLExplorerPolicyRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("polardb", "2017-08-01", "DescribeSQLExplorerPolicy", "polardb", "openAPI")
-	return
-}
-
-// CreateDescribeSQLExplorerPolicyResponse creates a response to parse from DescribeSQLExplorerPolicy response
-func CreateDescribeSQLExplorerPolicyResponse() (response *DescribeSQLExplorerPolicyResponse) {
-	response = &DescribeSQLExplorerPolicyResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 26 - 26
services/polardb/reset_account_password.go → services/polardb/modify_account_password.go

@@ -20,24 +20,24 @@ import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
 )
 
-// ResetAccountPassword invokes the polardb.ResetAccountPassword API synchronously
-// api document: https://help.aliyun.com/api/polardb/resetaccountpassword.html
-func (client *Client) ResetAccountPassword(request *ResetAccountPasswordRequest) (response *ResetAccountPasswordResponse, err error) {
-	response = CreateResetAccountPasswordResponse()
+// ModifyAccountPassword invokes the polardb.ModifyAccountPassword API synchronously
+// api document: https://help.aliyun.com/api/polardb/modifyaccountpassword.html
+func (client *Client) ModifyAccountPassword(request *ModifyAccountPasswordRequest) (response *ModifyAccountPasswordResponse, err error) {
+	response = CreateModifyAccountPasswordResponse()
 	err = client.DoAction(request, response)
 	return
 }
 
-// ResetAccountPasswordWithChan invokes the polardb.ResetAccountPassword API asynchronously
-// api document: https://help.aliyun.com/api/polardb/resetaccountpassword.html
+// ModifyAccountPasswordWithChan invokes the polardb.ModifyAccountPassword API asynchronously
+// api document: https://help.aliyun.com/api/polardb/modifyaccountpassword.html
 // asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) ResetAccountPasswordWithChan(request *ResetAccountPasswordRequest) (<-chan *ResetAccountPasswordResponse, <-chan error) {
-	responseChan := make(chan *ResetAccountPasswordResponse, 1)
+func (client *Client) ModifyAccountPasswordWithChan(request *ModifyAccountPasswordRequest) (<-chan *ModifyAccountPasswordResponse, <-chan error) {
+	responseChan := make(chan *ModifyAccountPasswordResponse, 1)
 	errChan := make(chan error, 1)
 	err := client.AddAsyncTask(func() {
 		defer close(responseChan)
 		defer close(errChan)
-		response, err := client.ResetAccountPassword(request)
+		response, err := client.ModifyAccountPassword(request)
 		if err != nil {
 			errChan <- err
 		} else {
@@ -52,16 +52,16 @@ func (client *Client) ResetAccountPasswordWithChan(request *ResetAccountPassword
 	return responseChan, errChan
 }
 
-// ResetAccountPasswordWithCallback invokes the polardb.ResetAccountPassword API asynchronously
-// api document: https://help.aliyun.com/api/polardb/resetaccountpassword.html
+// ModifyAccountPasswordWithCallback invokes the polardb.ModifyAccountPassword API asynchronously
+// api document: https://help.aliyun.com/api/polardb/modifyaccountpassword.html
 // asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) ResetAccountPasswordWithCallback(request *ResetAccountPasswordRequest, callback func(response *ResetAccountPasswordResponse, err error)) <-chan int {
+func (client *Client) ModifyAccountPasswordWithCallback(request *ModifyAccountPasswordRequest, callback func(response *ModifyAccountPasswordResponse, err error)) <-chan int {
 	result := make(chan int, 1)
 	err := client.AddAsyncTask(func() {
-		var response *ResetAccountPasswordResponse
+		var response *ModifyAccountPasswordResponse
 		var err error
 		defer close(result)
-		response, err = client.ResetAccountPassword(request)
+		response, err = client.ModifyAccountPassword(request)
 		callback(response, err)
 		result <- 1
 	})
@@ -73,36 +73,36 @@ func (client *Client) ResetAccountPasswordWithCallback(request *ResetAccountPass
 	return result
 }
 
-// ResetAccountPasswordRequest is the request struct for api ResetAccountPassword
-type ResetAccountPasswordRequest struct {
+// ModifyAccountPasswordRequest is the request struct for api ModifyAccountPassword
+type ModifyAccountPasswordRequest struct {
 	*requests.RpcRequest
 	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
-	AccountPassword      string           `position:"Query" name:"AccountPassword"`
 	AccountName          string           `position:"Query" name:"AccountName"`
+	NewAccountPassword   string           `position:"Query" name:"NewAccountPassword"`
 	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
 	DBClusterId          string           `position:"Query" name:"DBClusterId"`
 	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
 	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
 }
 
-// ResetAccountPasswordResponse is the response struct for api ResetAccountPassword
-type ResetAccountPasswordResponse struct {
+// ModifyAccountPasswordResponse is the response struct for api ModifyAccountPassword
+type ModifyAccountPasswordResponse struct {
 	*responses.BaseResponse
 	RequestId string `json:"RequestId" xml:"RequestId"`
 }
 
-// CreateResetAccountPasswordRequest creates a request to invoke ResetAccountPassword API
-func CreateResetAccountPasswordRequest() (request *ResetAccountPasswordRequest) {
-	request = &ResetAccountPasswordRequest{
+// CreateModifyAccountPasswordRequest creates a request to invoke ModifyAccountPassword API
+func CreateModifyAccountPasswordRequest() (request *ModifyAccountPasswordRequest) {
+	request = &ModifyAccountPasswordRequest{
 		RpcRequest: &requests.RpcRequest{},
 	}
-	request.InitWithApiInfo("polardb", "2017-08-01", "ResetAccountPassword", "polardb", "openAPI")
+	request.InitWithApiInfo("polardb", "2017-08-01", "ModifyAccountPassword", "polardb", "openAPI")
 	return
 }
 
-// CreateResetAccountPasswordResponse creates a response to parse from ResetAccountPassword response
-func CreateResetAccountPasswordResponse() (response *ResetAccountPasswordResponse) {
-	response = &ResetAccountPasswordResponse{
+// CreateModifyAccountPasswordResponse creates a response to parse from ModifyAccountPassword response
+func CreateModifyAccountPasswordResponse() (response *ModifyAccountPasswordResponse) {
+	response = &ModifyAccountPasswordResponse{
 		BaseResponse: &responses.BaseResponse{},
 	}
 	return

+ 110 - 0
services/polardb/modify_db_cluster_access_whitelist.go

@@ -0,0 +1,110 @@
+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"
+)
+
+// ModifyDBClusterAccessWhitelist invokes the polardb.ModifyDBClusterAccessWhitelist API synchronously
+// api document: https://help.aliyun.com/api/polardb/modifydbclusteraccesswhitelist.html
+func (client *Client) ModifyDBClusterAccessWhitelist(request *ModifyDBClusterAccessWhitelistRequest) (response *ModifyDBClusterAccessWhitelistResponse, err error) {
+	response = CreateModifyDBClusterAccessWhitelistResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ModifyDBClusterAccessWhitelistWithChan invokes the polardb.ModifyDBClusterAccessWhitelist API asynchronously
+// api document: https://help.aliyun.com/api/polardb/modifydbclusteraccesswhitelist.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ModifyDBClusterAccessWhitelistWithChan(request *ModifyDBClusterAccessWhitelistRequest) (<-chan *ModifyDBClusterAccessWhitelistResponse, <-chan error) {
+	responseChan := make(chan *ModifyDBClusterAccessWhitelistResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ModifyDBClusterAccessWhitelist(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ModifyDBClusterAccessWhitelistWithCallback invokes the polardb.ModifyDBClusterAccessWhitelist API asynchronously
+// api document: https://help.aliyun.com/api/polardb/modifydbclusteraccesswhitelist.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ModifyDBClusterAccessWhitelistWithCallback(request *ModifyDBClusterAccessWhitelistRequest, callback func(response *ModifyDBClusterAccessWhitelistResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ModifyDBClusterAccessWhitelistResponse
+		var err error
+		defer close(result)
+		response, err = client.ModifyDBClusterAccessWhitelist(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ModifyDBClusterAccessWhitelistRequest is the request struct for api ModifyDBClusterAccessWhitelist
+type ModifyDBClusterAccessWhitelistRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId           requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	ResourceOwnerAccount      string           `position:"Query" name:"ResourceOwnerAccount"`
+	DBClusterId               string           `position:"Query" name:"DBClusterId"`
+	OwnerAccount              string           `position:"Query" name:"OwnerAccount"`
+	SecurityIps               string           `position:"Query" name:"SecurityIps"`
+	DBClusterIPArrayName      string           `position:"Query" name:"DBClusterIPArrayName"`
+	OwnerId                   requests.Integer `position:"Query" name:"OwnerId"`
+	DBClusterIPArrayAttribute string           `position:"Query" name:"DBClusterIPArrayAttribute"`
+}
+
+// ModifyDBClusterAccessWhitelistResponse is the response struct for api ModifyDBClusterAccessWhitelist
+type ModifyDBClusterAccessWhitelistResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateModifyDBClusterAccessWhitelistRequest creates a request to invoke ModifyDBClusterAccessWhitelist API
+func CreateModifyDBClusterAccessWhitelistRequest() (request *ModifyDBClusterAccessWhitelistRequest) {
+	request = &ModifyDBClusterAccessWhitelistRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("polardb", "2017-08-01", "ModifyDBClusterAccessWhitelist", "polardb", "openAPI")
+	return
+}
+
+// CreateModifyDBClusterAccessWhitelistResponse creates a response to parse from ModifyDBClusterAccessWhitelist response
+func CreateModifyDBClusterAccessWhitelistResponse() (response *ModifyDBClusterAccessWhitelistResponse) {
+	response = &ModifyDBClusterAccessWhitelistResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 110 - 0
services/polardb/modify_db_cluster_endpoint.go

@@ -0,0 +1,110 @@
+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"
+)
+
+// ModifyDBClusterEndpoint invokes the polardb.ModifyDBClusterEndpoint API synchronously
+// api document: https://help.aliyun.com/api/polardb/modifydbclusterendpoint.html
+func (client *Client) ModifyDBClusterEndpoint(request *ModifyDBClusterEndpointRequest) (response *ModifyDBClusterEndpointResponse, err error) {
+	response = CreateModifyDBClusterEndpointResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ModifyDBClusterEndpointWithChan invokes the polardb.ModifyDBClusterEndpoint API asynchronously
+// api document: https://help.aliyun.com/api/polardb/modifydbclusterendpoint.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ModifyDBClusterEndpointWithChan(request *ModifyDBClusterEndpointRequest) (<-chan *ModifyDBClusterEndpointResponse, <-chan error) {
+	responseChan := make(chan *ModifyDBClusterEndpointResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ModifyDBClusterEndpoint(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ModifyDBClusterEndpointWithCallback invokes the polardb.ModifyDBClusterEndpoint API asynchronously
+// api document: https://help.aliyun.com/api/polardb/modifydbclusterendpoint.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ModifyDBClusterEndpointWithCallback(request *ModifyDBClusterEndpointRequest, callback func(response *ModifyDBClusterEndpointResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ModifyDBClusterEndpointResponse
+		var err error
+		defer close(result)
+		response, err = client.ModifyDBClusterEndpoint(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ModifyDBClusterEndpointRequest is the request struct for api ModifyDBClusterEndpoint
+type ModifyDBClusterEndpointRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	Nodes                string           `position:"Query" name:"Nodes"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	DBClusterId          string           `position:"Query" name:"DBClusterId"`
+	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
+	DBEndpointId         string           `position:"Query" name:"DBEndpointId"`
+	EndpointConfig       string           `position:"Query" name:"EndpointConfig"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+}
+
+// ModifyDBClusterEndpointResponse is the response struct for api ModifyDBClusterEndpoint
+type ModifyDBClusterEndpointResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateModifyDBClusterEndpointRequest creates a request to invoke ModifyDBClusterEndpoint API
+func CreateModifyDBClusterEndpointRequest() (request *ModifyDBClusterEndpointRequest) {
+	request = &ModifyDBClusterEndpointRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("polardb", "2017-08-01", "ModifyDBClusterEndpoint", "polardb", "openAPI")
+	return
+}
+
+// CreateModifyDBClusterEndpointResponse creates a response to parse from ModifyDBClusterEndpoint response
+func CreateModifyDBClusterEndpointResponse() (response *ModifyDBClusterEndpointResponse) {
+	response = &ModifyDBClusterEndpointResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 109 - 0
services/polardb/modify_db_cluster_parameters.go

@@ -0,0 +1,109 @@
+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"
+)
+
+// ModifyDBClusterParameters invokes the polardb.ModifyDBClusterParameters API synchronously
+// api document: https://help.aliyun.com/api/polardb/modifydbclusterparameters.html
+func (client *Client) ModifyDBClusterParameters(request *ModifyDBClusterParametersRequest) (response *ModifyDBClusterParametersResponse, err error) {
+	response = CreateModifyDBClusterParametersResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ModifyDBClusterParametersWithChan invokes the polardb.ModifyDBClusterParameters API asynchronously
+// api document: https://help.aliyun.com/api/polardb/modifydbclusterparameters.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ModifyDBClusterParametersWithChan(request *ModifyDBClusterParametersRequest) (<-chan *ModifyDBClusterParametersResponse, <-chan error) {
+	responseChan := make(chan *ModifyDBClusterParametersResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ModifyDBClusterParameters(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ModifyDBClusterParametersWithCallback invokes the polardb.ModifyDBClusterParameters API asynchronously
+// api document: https://help.aliyun.com/api/polardb/modifydbclusterparameters.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ModifyDBClusterParametersWithCallback(request *ModifyDBClusterParametersRequest, callback func(response *ModifyDBClusterParametersResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ModifyDBClusterParametersResponse
+		var err error
+		defer close(result)
+		response, err = client.ModifyDBClusterParameters(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ModifyDBClusterParametersRequest is the request struct for api ModifyDBClusterParameters
+type ModifyDBClusterParametersRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	EffectiveTime        string           `position:"Query" name:"EffectiveTime"`
+	DBClusterId          string           `position:"Query" name:"DBClusterId"`
+	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+	Parameters           string           `position:"Query" name:"Parameters"`
+}
+
+// ModifyDBClusterParametersResponse is the response struct for api ModifyDBClusterParameters
+type ModifyDBClusterParametersResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateModifyDBClusterParametersRequest creates a request to invoke ModifyDBClusterParameters API
+func CreateModifyDBClusterParametersRequest() (request *ModifyDBClusterParametersRequest) {
+	request = &ModifyDBClusterParametersRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("polardb", "2017-08-01", "ModifyDBClusterParameters", "polardb", "openAPI")
+	return
+}
+
+// CreateModifyDBClusterParametersResponse creates a response to parse from ModifyDBClusterParameters response
+func CreateModifyDBClusterParametersResponse() (response *ModifyDBClusterParametersResponse) {
+	response = &ModifyDBClusterParametersResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 109 - 0
services/polardb/modify_db_description.go

@@ -0,0 +1,109 @@
+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"
+)
+
+// ModifyDBDescription invokes the polardb.ModifyDBDescription API synchronously
+// api document: https://help.aliyun.com/api/polardb/modifydbdescription.html
+func (client *Client) ModifyDBDescription(request *ModifyDBDescriptionRequest) (response *ModifyDBDescriptionResponse, err error) {
+	response = CreateModifyDBDescriptionResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ModifyDBDescriptionWithChan invokes the polardb.ModifyDBDescription API asynchronously
+// api document: https://help.aliyun.com/api/polardb/modifydbdescription.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ModifyDBDescriptionWithChan(request *ModifyDBDescriptionRequest) (<-chan *ModifyDBDescriptionResponse, <-chan error) {
+	responseChan := make(chan *ModifyDBDescriptionResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ModifyDBDescription(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ModifyDBDescriptionWithCallback invokes the polardb.ModifyDBDescription API asynchronously
+// api document: https://help.aliyun.com/api/polardb/modifydbdescription.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ModifyDBDescriptionWithCallback(request *ModifyDBDescriptionRequest, callback func(response *ModifyDBDescriptionResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ModifyDBDescriptionResponse
+		var err error
+		defer close(result)
+		response, err = client.ModifyDBDescription(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ModifyDBDescriptionRequest is the request struct for api ModifyDBDescription
+type ModifyDBDescriptionRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	DBName               string           `position:"Query" name:"DBName"`
+	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
+	DBClusterId          string           `position:"Query" name:"DBClusterId"`
+	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
+	DBDescription        string           `position:"Query" name:"DBDescription"`
+	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
+}
+
+// ModifyDBDescriptionResponse is the response struct for api ModifyDBDescription
+type ModifyDBDescriptionResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateModifyDBDescriptionRequest creates a request to invoke ModifyDBDescription API
+func CreateModifyDBDescriptionRequest() (request *ModifyDBDescriptionRequest) {
+	request = &ModifyDBDescriptionRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("polardb", "2017-08-01", "ModifyDBDescription", "polardb", "openAPI")
+	return
+}
+
+// CreateModifyDBDescriptionResponse creates a response to parse from ModifyDBDescription response
+func CreateModifyDBDescriptionResponse() (response *ModifyDBDescriptionResponse) {
+	response = &ModifyDBDescriptionResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 110 - 0
services/polardb/modify_db_endpoint_address.go

@@ -0,0 +1,110 @@
+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"
+)
+
+// ModifyDBEndpointAddress invokes the polardb.ModifyDBEndpointAddress API synchronously
+// api document: https://help.aliyun.com/api/polardb/modifydbendpointaddress.html
+func (client *Client) ModifyDBEndpointAddress(request *ModifyDBEndpointAddressRequest) (response *ModifyDBEndpointAddressResponse, err error) {
+	response = CreateModifyDBEndpointAddressResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ModifyDBEndpointAddressWithChan invokes the polardb.ModifyDBEndpointAddress API asynchronously
+// api document: https://help.aliyun.com/api/polardb/modifydbendpointaddress.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ModifyDBEndpointAddressWithChan(request *ModifyDBEndpointAddressRequest) (<-chan *ModifyDBEndpointAddressResponse, <-chan error) {
+	responseChan := make(chan *ModifyDBEndpointAddressResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ModifyDBEndpointAddress(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ModifyDBEndpointAddressWithCallback invokes the polardb.ModifyDBEndpointAddress API asynchronously
+// api document: https://help.aliyun.com/api/polardb/modifydbendpointaddress.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ModifyDBEndpointAddressWithCallback(request *ModifyDBEndpointAddressRequest, callback func(response *ModifyDBEndpointAddressResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ModifyDBEndpointAddressResponse
+		var err error
+		defer close(result)
+		response, err = client.ModifyDBEndpointAddress(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ModifyDBEndpointAddressRequest is the request struct for api ModifyDBEndpointAddress
+type ModifyDBEndpointAddressRequest struct {
+	*requests.RpcRequest
+	ResourceOwnerId        requests.Integer `position:"Query" name:"ResourceOwnerId"`
+	ConnectionStringPrefix string           `position:"Query" name:"ConnectionStringPrefix"`
+	ResourceOwnerAccount   string           `position:"Query" name:"ResourceOwnerAccount"`
+	DBClusterId            string           `position:"Query" name:"DBClusterId"`
+	OwnerAccount           string           `position:"Query" name:"OwnerAccount"`
+	NetType                string           `position:"Query" name:"NetType"`
+	DBEndpointId           string           `position:"Query" name:"DBEndpointId"`
+	OwnerId                requests.Integer `position:"Query" name:"OwnerId"`
+}
+
+// ModifyDBEndpointAddressResponse is the response struct for api ModifyDBEndpointAddress
+type ModifyDBEndpointAddressResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateModifyDBEndpointAddressRequest creates a request to invoke ModifyDBEndpointAddress API
+func CreateModifyDBEndpointAddressRequest() (request *ModifyDBEndpointAddressRequest) {
+	request = &ModifyDBEndpointAddressRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("polardb", "2017-08-01", "ModifyDBEndpointAddress", "polardb", "openAPI")
+	return
+}
+
+// CreateModifyDBEndpointAddressResponse creates a response to parse from ModifyDBEndpointAddress response
+func CreateModifyDBEndpointAddressResponse() (response *ModifyDBEndpointAddressResponse) {
+	response = &ModifyDBEndpointAddressResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 0 - 109
services/polardb/modify_sql_explorer_policy.go

@@ -1,109 +0,0 @@
-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"
-)
-
-// ModifySQLExplorerPolicy invokes the polardb.ModifySQLExplorerPolicy API synchronously
-// api document: https://help.aliyun.com/api/polardb/modifysqlexplorerpolicy.html
-func (client *Client) ModifySQLExplorerPolicy(request *ModifySQLExplorerPolicyRequest) (response *ModifySQLExplorerPolicyResponse, err error) {
-	response = CreateModifySQLExplorerPolicyResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// ModifySQLExplorerPolicyWithChan invokes the polardb.ModifySQLExplorerPolicy API asynchronously
-// api document: https://help.aliyun.com/api/polardb/modifysqlexplorerpolicy.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) ModifySQLExplorerPolicyWithChan(request *ModifySQLExplorerPolicyRequest) (<-chan *ModifySQLExplorerPolicyResponse, <-chan error) {
-	responseChan := make(chan *ModifySQLExplorerPolicyResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.ModifySQLExplorerPolicy(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// ModifySQLExplorerPolicyWithCallback invokes the polardb.ModifySQLExplorerPolicy API asynchronously
-// api document: https://help.aliyun.com/api/polardb/modifysqlexplorerpolicy.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) ModifySQLExplorerPolicyWithCallback(request *ModifySQLExplorerPolicyRequest, callback func(response *ModifySQLExplorerPolicyResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *ModifySQLExplorerPolicyResponse
-		var err error
-		defer close(result)
-		response, err = client.ModifySQLExplorerPolicy(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// ModifySQLExplorerPolicyRequest is the request struct for api ModifySQLExplorerPolicy
-type ModifySQLExplorerPolicyRequest struct {
-	*requests.RpcRequest
-	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
-	DBNodeId             string           `position:"Query" name:"DBNodeId"`
-	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
-	SQLCollectorStatus   string           `position:"Query" name:"SQLCollectorStatus"`
-	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
-	DBInstanceId         string           `position:"Query" name:"DBInstanceId"`
-	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
-}
-
-// ModifySQLExplorerPolicyResponse is the response struct for api ModifySQLExplorerPolicy
-type ModifySQLExplorerPolicyResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-}
-
-// CreateModifySQLExplorerPolicyRequest creates a request to invoke ModifySQLExplorerPolicy API
-func CreateModifySQLExplorerPolicyRequest() (request *ModifySQLExplorerPolicyRequest) {
-	request = &ModifySQLExplorerPolicyRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("polardb", "2017-08-01", "ModifySQLExplorerPolicy", "polardb", "openAPI")
-	return
-}
-
-// CreateModifySQLExplorerPolicyResponse creates a response to parse from ModifySQLExplorerPolicy response
-func CreateModifySQLExplorerPolicyResponse() (response *ModifySQLExplorerPolicyResponse) {
-	response = &ModifySQLExplorerPolicyResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 1
services/polardb/restart_db_node.go

@@ -79,7 +79,6 @@ type RestartDBNodeRequest struct {
 	ResourceOwnerId      requests.Integer `position:"Query" name:"ResourceOwnerId"`
 	DBNodeId             string           `position:"Query" name:"DBNodeId"`
 	ResourceOwnerAccount string           `position:"Query" name:"ResourceOwnerAccount"`
-	ClientToken          string           `position:"Query" name:"ClientToken"`
 	OwnerAccount         string           `position:"Query" name:"OwnerAccount"`
 	OwnerId              requests.Integer `position:"Query" name:"OwnerId"`
 }

+ 1 - 1
services/polardb/struct_accounts_in_describe_accounts.go

@@ -17,5 +17,5 @@ package polardb
 
 // AccountsInDescribeAccounts is a nested struct in polardb response
 type AccountsInDescribeAccounts struct {
-	DBInstanceAccount []DBInstanceAccount `json:"DBInstanceAccount" xml:"DBInstanceAccount"`
+	DBAccount []DBAccount `json:"DBAccount" xml:"DBAccount"`
 }

+ 26 - 0
services/polardb/struct_address.go

@@ -0,0 +1,26 @@
+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.
+
+// Address is a nested struct in polardb response
+type Address struct {
+	ConnectionString string `json:"ConnectionString" xml:"ConnectionString"`
+	IPAddress        string `json:"IPAddress" xml:"IPAddress"`
+	NetType          string `json:"NetType" xml:"NetType"`
+	Port             string `json:"Port" xml:"Port"`
+	VPCId            string `json:"VPCId" xml:"VPCId"`
+	VSwitchId        string `json:"VSwitchId" xml:"VSwitchId"`
+}

+ 3 - 3
services/polardb/struct_db_instances.go → services/polardb/struct_address_items.go

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

+ 0 - 1
services/polardb/struct_database.go

@@ -17,7 +17,6 @@ package polardb
 
 // Database is a nested struct in polardb response
 type Database struct {
-	DBClusterId      string                      `json:"DBClusterId" xml:"DBClusterId"`
 	DBName           string                      `json:"DBName" xml:"DBName"`
 	DBStatus         string                      `json:"DBStatus" xml:"DBStatus"`
 	DBDescription    string                      `json:"DBDescription" xml:"DBDescription"`

+ 2 - 3
services/polardb/struct_database_privilege.go

@@ -17,7 +17,6 @@ package polardb
 
 // DatabasePrivilege is a nested struct in polardb response
 type DatabasePrivilege struct {
-	DBName                 string `json:"DBName" xml:"DBName"`
-	AccountPrivilege       string `json:"AccountPrivilege" xml:"AccountPrivilege"`
-	AccountPrivilegeDetail string `json:"AccountPrivilegeDetail" xml:"AccountPrivilegeDetail"`
+	DBName           string `json:"DBName" xml:"DBName"`
+	AccountPrivilege string `json:"AccountPrivilege" xml:"AccountPrivilege"`
 }

+ 26 - 0
services/polardb/struct_db_account.go

@@ -0,0 +1,26 @@
+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.
+
+// 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"`
+	PrivilegeExceeded  string              `json:"PrivilegeExceeded" xml:"PrivilegeExceeded"`
+	DatabasePrivileges []DatabasePrivilege `json:"DatabasePrivileges" xml:"DatabasePrivileges"`
+}

+ 18 - 18
services/polardb/struct_db_cluster.go

@@ -17,22 +17,22 @@ package polardb
 
 // DBCluster is a nested struct in polardb response
 type DBCluster struct {
-	DBClusterId          string  `json:"DBClusterId" xml:"DBClusterId"`
-	DBClusterDescription string  `json:"DBClusterDescription" xml:"DBClusterDescription"`
-	PayType              string  `json:"PayType" xml:"PayType"`
-	DBClusterNetworkType string  `json:"DBClusterNetworkType" xml:"DBClusterNetworkType"`
-	RegionId             string  `json:"RegionId" xml:"RegionId"`
-	ExpireTime           string  `json:"ExpireTime" xml:"ExpireTime"`
-	DBClusterStatus      string  `json:"DBClusterStatus" xml:"DBClusterStatus"`
-	Engine               string  `json:"Engine" xml:"Engine"`
-	DBType               string  `json:"DBType" xml:"DBType"`
-	DBVersion            string  `json:"DBVersion" xml:"DBVersion"`
-	LockMode             string  `json:"LockMode" xml:"LockMode"`
-	LockReason           string  `json:"LockReason" xml:"LockReason"`
-	CreateTime           string  `json:"CreateTime" xml:"CreateTime"`
-	VpcId                string  `json:"VpcId" xml:"VpcId"`
-	DBNodeNumber         string  `json:"DBNodeNumber" xml:"DBNodeNumber"`
-	DBNodeClass          string  `json:"DBNodeClass" xml:"DBNodeClass"`
-	StorageUsed          string  `json:"StorageUsed" xml:"StorageUsed"`
-	DBNodes              DBNodes `json:"DBNodes" xml:"DBNodes"`
+	DBClusterId          string                      `json:"DBClusterId" xml:"DBClusterId"`
+	DBClusterDescription string                      `json:"DBClusterDescription" xml:"DBClusterDescription"`
+	PayType              string                      `json:"PayType" xml:"PayType"`
+	DBClusterNetworkType string                      `json:"DBClusterNetworkType" xml:"DBClusterNetworkType"`
+	RegionId             string                      `json:"RegionId" xml:"RegionId"`
+	ExpireTime           string                      `json:"ExpireTime" xml:"ExpireTime"`
+	Expired              string                      `json:"Expired" xml:"Expired"`
+	DBClusterStatus      string                      `json:"DBClusterStatus" xml:"DBClusterStatus"`
+	Engine               string                      `json:"Engine" xml:"Engine"`
+	DBType               string                      `json:"DBType" xml:"DBType"`
+	DBVersion            string                      `json:"DBVersion" xml:"DBVersion"`
+	LockMode             string                      `json:"LockMode" xml:"LockMode"`
+	CreateTime           string                      `json:"CreateTime" xml:"CreateTime"`
+	VpcId                string                      `json:"VpcId" xml:"VpcId"`
+	DBNodeNumber         int                         `json:"DBNodeNumber" xml:"DBNodeNumber"`
+	DBNodeClass          string                      `json:"DBNodeClass" xml:"DBNodeClass"`
+	StorageUsed          int                         `json:"StorageUsed" xml:"StorageUsed"`
+	DBNodes              DBNodesInDescribeDBClusters `json:"DBNodes" xml:"DBNodes"`
 }

+ 0 - 41
services/polardb/struct_db_cluster_attribute.go

@@ -1,41 +0,0 @@
-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.
-
-// DBClusterAttribute is a nested struct in polardb response
-type DBClusterAttribute struct {
-	RegionId             string      `json:"RegionId" xml:"RegionId"`
-	DBClusterNetworkType string      `json:"DBClusterNetworkType" xml:"DBClusterNetworkType"`
-	VPCId                string      `json:"VPCId" xml:"VPCId"`
-	VSwitchId            string      `json:"VSwitchId" xml:"VSwitchId"`
-	PayType              string      `json:"PayType" xml:"PayType"`
-	DBClusterId          string      `json:"DBClusterId" xml:"DBClusterId"`
-	DBClusterStatus      string      `json:"DBClusterStatus" xml:"DBClusterStatus"`
-	DBClusterDescription string      `json:"DBClusterDescription" xml:"DBClusterDescription"`
-	Engine               string      `json:"Engine" xml:"Engine"`
-	DBType               string      `json:"DBType" xml:"DBType"`
-	DBVersion            string      `json:"DBVersion" xml:"DBVersion"`
-	DBClusterStorage     int         `json:"DBClusterStorage" xml:"DBClusterStorage"`
-	ConnectionString     int         `json:"ConnectionString" xml:"ConnectionString"`
-	Port                 int         `json:"Port" xml:"Port"`
-	DBClusterNetType     string      `json:"DBClusterNetType" xml:"DBClusterNetType"`
-	LockMode             string      `json:"LockMode" xml:"LockMode"`
-	LockReason           string      `json:"LockReason" xml:"LockReason"`
-	CreationTime         string      `json:"CreationTime" xml:"CreationTime"`
-	ExpireTime           string      `json:"ExpireTime" xml:"ExpireTime"`
-	IsLatestVersion      bool        `json:"IsLatestVersion" xml:"IsLatestVersion"`
-	DbInstances          DbInstances `json:"DbInstances" xml:"DbInstances"`
-}

+ 23 - 0
services/polardb/struct_db_cluster_ip_array.go

@@ -0,0 +1,23 @@
+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.
+
+// DBClusterIPArray is a nested struct in polardb response
+type DBClusterIPArray struct {
+	DBClusterIPArrayName      string `json:"DBClusterIPArrayName" xml:"DBClusterIPArrayName"`
+	DBClusterIPArrayAttribute string `json:"DBClusterIPArrayAttribute" xml:"DBClusterIPArrayAttribute"`
+	SecurityIps               string `json:"SecurityIps" xml:"SecurityIps"`
+}

+ 25 - 0
services/polardb/struct_db_endpoint.go

@@ -0,0 +1,25 @@
+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.
+
+// DBEndpoint is a nested struct in polardb response
+type DBEndpoint struct {
+	DBEndpointId   string    `json:"DBEndpointId" xml:"DBEndpointId"`
+	EndpointType   string    `json:"EndpointType" xml:"EndpointType"`
+	Nodes          string    `json:"Nodes" xml:"Nodes"`
+	EndpointConfig string    `json:"EndpointConfig" xml:"EndpointConfig"`
+	AddressItems   []Address `json:"AddressItems" xml:"AddressItems"`
+}

+ 0 - 37
services/polardb/struct_db_instance.go

@@ -1,37 +0,0 @@
-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.
-
-// DbInstance is a nested struct in polardb response
-type DbInstance struct {
-	DBInstanceId          string `json:"DBInstanceId" xml:"DBInstanceId"`
-	DBInstanceStatus      string `json:"DBInstanceStatus" xml:"DBInstanceStatus"`
-	DBInstanceDescription string `json:"DBInstanceDescription" xml:"DBInstanceDescription"`
-	Engine                string `json:"Engine" xml:"Engine"`
-	DBType                string `json:"DBType" xml:"DBType"`
-	DBVersion             string `json:"DBVersion" xml:"DBVersion"`
-	DBInstanceStorage     string `json:"DBInstanceStorage" xml:"DBInstanceStorage"`
-	LockMode              string `json:"LockMode" xml:"LockMode"`
-	LockReason            string `json:"LockReason" xml:"LockReason"`
-	MaintainStartTime     string `json:"MaintainStartTime" xml:"MaintainStartTime"`
-	MaintainEndTime       string `json:"MaintainEndTime" xml:"MaintainEndTime"`
-	CreationTime          string `json:"CreationTime" xml:"CreationTime"`
-	DBInstanceClass       string `json:"DBInstanceClass" xml:"DBInstanceClass"`
-	SecurityIPList        string `json:"SecurityIPList" xml:"SecurityIPList"`
-	CurrentMinorVersion   string `json:"CurrentMinorVersion" xml:"CurrentMinorVersion"`
-	LatestMinorVersion    string `json:"LatestMinorVersion" xml:"LatestMinorVersion"`
-	DBInstanceType        string `json:"DBInstanceType" xml:"DBInstanceType"`
-}

+ 0 - 27
services/polardb/struct_db_instance_account.go

@@ -1,27 +0,0 @@
-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.
-
-// DBInstanceAccount is a nested struct in polardb response
-type DBInstanceAccount struct {
-	DBClusterId        string             `json:"DBClusterId" xml:"DBClusterId"`
-	AccountName        string             `json:"AccountName" xml:"AccountName"`
-	AccountStatus      string             `json:"AccountStatus" xml:"AccountStatus"`
-	AccountDescription string             `json:"AccountDescription" xml:"AccountDescription"`
-	AccountType        string             `json:"AccountType" xml:"AccountType"`
-	PrivExceeded       string             `json:"PrivExceeded" xml:"PrivExceeded"`
-	DatabasePrivileges DatabasePrivileges `json:"DatabasePrivileges" xml:"DatabasePrivileges"`
-}

+ 8 - 2
services/polardb/struct_db_node.go

@@ -17,6 +17,12 @@ package polardb
 
 // DBNode is a nested struct in polardb response
 type DBNode struct {
-	DBNodeId    string `json:"DBNodeId" xml:"DBNodeId"`
-	DBNodeClass string `json:"DBNodeClass" xml:"DBNodeClass"`
+	DBNodeClass    string `json:"DBNodeClass" xml:"DBNodeClass"`
+	MaxIOPS        int    `json:"MaxIOPS" xml:"MaxIOPS"`
+	DBNodeRole     string `json:"DBNodeRole" xml:"DBNodeRole"`
+	MaxConnections int    `json:"MaxConnections" xml:"MaxConnections"`
+	ZoneId         string `json:"ZoneId" xml:"ZoneId"`
+	DBNodeStatus   string `json:"DBNodeStatus" xml:"DBNodeStatus"`
+	DBNodeId       string `json:"DBNodeId" xml:"DBNodeId"`
+	CreationTime   string `json:"CreationTime" xml:"CreationTime"`
 }

+ 3 - 3
services/polardb/struct_items_in_describe_slow_logs.go → services/polardb/struct_db_nodes_in_describe_db_cluster_attribute.go

@@ -15,7 +15,7 @@ package polardb
 // 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"`
+// DBNodesInDescribeDBClusterAttribute is a nested struct in polardb response
+type DBNodesInDescribeDBClusterAttribute struct {
+	DBNode []DBNode `json:"DBNode" xml:"DBNode"`
 }

+ 2 - 2
services/polardb/struct_db_nodes.go → services/polardb/struct_db_nodes_in_describe_db_clusters.go

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

+ 3 - 3
services/polardb/struct_items_in_describe_db_cluster_attribute.go → services/polardb/struct_items_in_describe_db_cluster_access_whitelist.go

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

+ 3 - 4
services/polardb/struct_error_log.go → services/polardb/struct_items_in_describe_db_cluster_endpoints.go

@@ -15,8 +15,7 @@ package polardb
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
-// ErrorLog is a nested struct in polardb response
-type ErrorLog struct {
-	ErrorInfo  string `json:"ErrorInfo" xml:"ErrorInfo"`
-	CreateTime string `json:"CreateTime" xml:"CreateTime"`
+// ItemsInDescribeDBClusterEndpoints is a nested struct in polardb response
+type ItemsInDescribeDBClusterEndpoints struct {
+	DBEndpoint []DBEndpoint `json:"DBEndpoint" xml:"DBEndpoint"`
 }

+ 0 - 21
services/polardb/struct_items_in_describe_slow_log_records.go

@@ -1,21 +0,0 @@
-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"`
-}

+ 29 - 0
services/polardb/struct_parameter.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.
+
+// Parameter is a nested struct in polardb response
+type Parameter struct {
+	ParameterName         string `json:"ParameterName" xml:"ParameterName"`
+	DataType              string `json:"DataType" xml:"DataType"`
+	DefaultParameterValue string `json:"DefaultParameterValue" xml:"DefaultParameterValue"`
+	ParameterValue        string `json:"ParameterValue" xml:"ParameterValue"`
+	IsModifiable          bool   `json:"IsModifiable" xml:"IsModifiable"`
+	ForceRestart          bool   `json:"ForceRestart" xml:"ForceRestart"`
+	ParameterStatus       string `json:"ParameterStatus" xml:"ParameterStatus"`
+	CheckingCode          string `json:"CheckingCode" xml:"CheckingCode"`
+	ParameterDescription  string `json:"ParameterDescription" xml:"ParameterDescription"`
+}

+ 0 - 23
services/polardb/struct_performance_item.go

@@ -1,23 +0,0 @@
-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.
-
-// PerformanceItem is a nested struct in polardb response
-type PerformanceItem struct {
-	MetricName  string `json:"MetricName" xml:"MetricName"`
-	Measurement string `json:"Measurement" xml:"Measurement"`
-	Points      Points `json:"Points" xml:"Points"`
-}

+ 0 - 22
services/polardb/struct_performance_item_value.go

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

+ 0 - 21
services/polardb/struct_performance_keys.go

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

+ 0 - 21
services/polardb/struct_points.go

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

+ 3 - 3
services/polardb/struct_items_in_describe_error_logs.go → services/polardb/struct_running_parameters.go

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

+ 0 - 40
services/polardb/struct_sql_slow_log.go

@@ -1,40 +0,0 @@
-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 {
-	SlowLogId                     int    `json:"SlowLogId" xml:"SlowLogId"`
-	SQLId                         int    `json:"SQLId" xml:"SQLId"`
-	DBName                        string `json:"DBName" xml:"DBName"`
-	SQLText                       string `json:"SQLText" xml:"SQLText"`
-	MySQLTotalExecutionCounts     int    `json:"MySQLTotalExecutionCounts" xml:"MySQLTotalExecutionCounts"`
-	MySQLTotalExecutionTimes      int    `json:"MySQLTotalExecutionTimes" xml:"MySQLTotalExecutionTimes"`
-	MaxExecutionTime              int    `json:"MaxExecutionTime" xml:"MaxExecutionTime"`
-	TotalLockTimes                int    `json:"TotalLockTimes" xml:"TotalLockTimes"`
-	MaxLockTime                   int    `json:"MaxLockTime" xml:"MaxLockTime"`
-	ParseTotalRowCounts           int    `json:"ParseTotalRowCounts" xml:"ParseTotalRowCounts"`
-	ParseMaxRowCount              int    `json:"ParseMaxRowCount" xml:"ParseMaxRowCount"`
-	ReturnTotalRowCounts          int    `json:"ReturnTotalRowCounts" xml:"ReturnTotalRowCounts"`
-	ReturnMaxRowCount             int    `json:"ReturnMaxRowCount" xml:"ReturnMaxRowCount"`
-	CreateTime                    string `json:"CreateTime" xml:"CreateTime"`
-	SQLServerTotalExecutionCounts int    `json:"SQLServerTotalExecutionCounts" xml:"SQLServerTotalExecutionCounts"`
-	SQLServerTotalExecutionTimes  int    `json:"SQLServerTotalExecutionTimes" xml:"SQLServerTotalExecutionTimes"`
-	TotalLogicalReadCounts        int    `json:"TotalLogicalReadCounts" xml:"TotalLogicalReadCounts"`
-	TotalPhysicalReadCounts       int    `json:"TotalPhysicalReadCounts" xml:"TotalPhysicalReadCounts"`
-	ReportTime                    string `json:"ReportTime" xml:"ReportTime"`
-	AvgExecutionTime              int    `json:"AvgExecutionTime" xml:"AvgExecutionTime"`
-}

+ 0 - 28
services/polardb/struct_sql_slow_record.go

@@ -1,28 +0,0 @@
-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         int    `json:"QueryTimes" xml:"QueryTimes"`
-	LockTimes          int    `json:"LockTimes" xml:"LockTimes"`
-	ParseRowCounts     int    `json:"ParseRowCounts" xml:"ParseRowCounts"`
-	ReturnRowCounts    int    `json:"ReturnRowCounts" xml:"ReturnRowCounts"`
-	ExecutionStartTime string `json:"ExecutionStartTime" xml:"ExecutionStartTime"`
-}