diff --git a/ChangeLog.txt b/ChangeLog.txt index a8794c7168..9f4aa2cb2a 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,7 @@ +2023-10-12 Version: v1.62.580 +- Generated 2020-01-16 for `DAS`. +- Add GetMongoDBCurrentOp API. + 2023-10-12 Version: v1.62.579 - Generated 2016-08-01 for `Push`. - Supported AndroidTargetUserType. AndroidHonorTargetUserType for Push and MassPush. diff --git a/services/das/create_cache_analysis_job.go b/services/das/create_cache_analysis_job.go index 8923b7978f..a0a7d9cb82 100644 --- a/services/das/create_cache_analysis_job.go +++ b/services/das/create_cache_analysis_job.go @@ -74,6 +74,7 @@ type CreateCacheAnalysisJobRequest struct { BackupSetId string `position:"Query" name:"BackupSetId"` InstanceId string `position:"Query" name:"InstanceId"` NodeId string `position:"Query" name:"NodeId"` + Separators string `position:"Query" name:"Separators"` } // CreateCacheAnalysisJobResponse is the response struct for api CreateCacheAnalysisJob diff --git a/services/das/create_kill_instance_session_task_with_maintain_user.go b/services/das/create_kill_instance_session_task_with_maintain_user.go new file mode 100644 index 0000000000..547ed331b1 --- /dev/null +++ b/services/das/create_kill_instance_session_task_with_maintain_user.go @@ -0,0 +1,107 @@ +package das + +//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" +) + +// CreateKillInstanceSessionTaskWithMaintainUser invokes the das.CreateKillInstanceSessionTaskWithMaintainUser API synchronously +func (client *Client) CreateKillInstanceSessionTaskWithMaintainUser(request *CreateKillInstanceSessionTaskWithMaintainUserRequest) (response *CreateKillInstanceSessionTaskWithMaintainUserResponse, err error) { + response = CreateCreateKillInstanceSessionTaskWithMaintainUserResponse() + err = client.DoAction(request, response) + return +} + +// CreateKillInstanceSessionTaskWithMaintainUserWithChan invokes the das.CreateKillInstanceSessionTaskWithMaintainUser API asynchronously +func (client *Client) CreateKillInstanceSessionTaskWithMaintainUserWithChan(request *CreateKillInstanceSessionTaskWithMaintainUserRequest) (<-chan *CreateKillInstanceSessionTaskWithMaintainUserResponse, <-chan error) { + responseChan := make(chan *CreateKillInstanceSessionTaskWithMaintainUserResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateKillInstanceSessionTaskWithMaintainUser(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateKillInstanceSessionTaskWithMaintainUserWithCallback invokes the das.CreateKillInstanceSessionTaskWithMaintainUser API asynchronously +func (client *Client) CreateKillInstanceSessionTaskWithMaintainUserWithCallback(request *CreateKillInstanceSessionTaskWithMaintainUserRequest, callback func(response *CreateKillInstanceSessionTaskWithMaintainUserResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateKillInstanceSessionTaskWithMaintainUserResponse + var err error + defer close(result) + response, err = client.CreateKillInstanceSessionTaskWithMaintainUser(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateKillInstanceSessionTaskWithMaintainUserRequest is the request struct for api CreateKillInstanceSessionTaskWithMaintainUser +type CreateKillInstanceSessionTaskWithMaintainUserRequest struct { + *requests.RpcRequest + KillAllSessions requests.Boolean `position:"Query" name:"KillAllSessions"` + SessionIds string `position:"Query" name:"SessionIds"` + InstanceId string `position:"Query" name:"InstanceId"` + IgnoredUsers string `position:"Query" name:"IgnoredUsers"` + NodeId string `position:"Query" name:"NodeId"` +} + +// CreateKillInstanceSessionTaskWithMaintainUserResponse is the response struct for api CreateKillInstanceSessionTaskWithMaintainUser +type CreateKillInstanceSessionTaskWithMaintainUserResponse struct { + *responses.BaseResponse + Code int64 `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + Data string `json:"Data" xml:"Data"` + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` +} + +// CreateCreateKillInstanceSessionTaskWithMaintainUserRequest creates a request to invoke CreateKillInstanceSessionTaskWithMaintainUser API +func CreateCreateKillInstanceSessionTaskWithMaintainUserRequest() (request *CreateKillInstanceSessionTaskWithMaintainUserRequest) { + request = &CreateKillInstanceSessionTaskWithMaintainUserRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("DAS", "2020-01-16", "CreateKillInstanceSessionTaskWithMaintainUser", "", "") + request.Method = requests.POST + return +} + +// CreateCreateKillInstanceSessionTaskWithMaintainUserResponse creates a response to parse from CreateKillInstanceSessionTaskWithMaintainUser response +func CreateCreateKillInstanceSessionTaskWithMaintainUserResponse() (response *CreateKillInstanceSessionTaskWithMaintainUserResponse) { + response = &CreateKillInstanceSessionTaskWithMaintainUserResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/das/create_query_optimize_tag.go b/services/das/create_query_optimize_tag.go new file mode 100644 index 0000000000..872c5b10d7 --- /dev/null +++ b/services/das/create_query_optimize_tag.go @@ -0,0 +1,109 @@ +package das + +//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" +) + +// CreateQueryOptimizeTag invokes the das.CreateQueryOptimizeTag API synchronously +func (client *Client) CreateQueryOptimizeTag(request *CreateQueryOptimizeTagRequest) (response *CreateQueryOptimizeTagResponse, err error) { + response = CreateCreateQueryOptimizeTagResponse() + err = client.DoAction(request, response) + return +} + +// CreateQueryOptimizeTagWithChan invokes the das.CreateQueryOptimizeTag API asynchronously +func (client *Client) CreateQueryOptimizeTagWithChan(request *CreateQueryOptimizeTagRequest) (<-chan *CreateQueryOptimizeTagResponse, <-chan error) { + responseChan := make(chan *CreateQueryOptimizeTagResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateQueryOptimizeTag(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateQueryOptimizeTagWithCallback invokes the das.CreateQueryOptimizeTag API asynchronously +func (client *Client) CreateQueryOptimizeTagWithCallback(request *CreateQueryOptimizeTagRequest, callback func(response *CreateQueryOptimizeTagResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateQueryOptimizeTagResponse + var err error + defer close(result) + response, err = client.CreateQueryOptimizeTag(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateQueryOptimizeTagRequest is the request struct for api CreateQueryOptimizeTag +type CreateQueryOptimizeTagRequest struct { + *requests.RpcRequest + ConsoleContext string `position:"Query" name:"ConsoleContext"` + Engine string `position:"Query" name:"Engine"` + SqlIds string `position:"Query" name:"SqlIds"` + Tags string `position:"Query" name:"Tags"` + Status requests.Integer `position:"Query" name:"Status"` + Comments string `position:"Query" name:"Comments"` + InstanceId string `position:"Query" name:"InstanceId"` +} + +// CreateQueryOptimizeTagResponse is the response struct for api CreateQueryOptimizeTag +type CreateQueryOptimizeTagResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Success string `json:"Success" xml:"Success"` + Data bool `json:"Data" xml:"Data"` +} + +// CreateCreateQueryOptimizeTagRequest creates a request to invoke CreateQueryOptimizeTag API +func CreateCreateQueryOptimizeTagRequest() (request *CreateQueryOptimizeTagRequest) { + request = &CreateQueryOptimizeTagRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("DAS", "2020-01-16", "CreateQueryOptimizeTag", "", "") + request.Method = requests.POST + return +} + +// CreateCreateQueryOptimizeTagResponse creates a response to parse from CreateQueryOptimizeTag response +func CreateCreateQueryOptimizeTagResponse() (response *CreateQueryOptimizeTagResponse) { + response = &CreateQueryOptimizeTagResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/das/describe_auto_scaling_history.go b/services/das/describe_auto_scaling_history.go new file mode 100644 index 0000000000..3975f43fed --- /dev/null +++ b/services/das/describe_auto_scaling_history.go @@ -0,0 +1,106 @@ +package das + +//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" +) + +// DescribeAutoScalingHistory invokes the das.DescribeAutoScalingHistory API synchronously +func (client *Client) DescribeAutoScalingHistory(request *DescribeAutoScalingHistoryRequest) (response *DescribeAutoScalingHistoryResponse, err error) { + response = CreateDescribeAutoScalingHistoryResponse() + err = client.DoAction(request, response) + return +} + +// DescribeAutoScalingHistoryWithChan invokes the das.DescribeAutoScalingHistory API asynchronously +func (client *Client) DescribeAutoScalingHistoryWithChan(request *DescribeAutoScalingHistoryRequest) (<-chan *DescribeAutoScalingHistoryResponse, <-chan error) { + responseChan := make(chan *DescribeAutoScalingHistoryResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeAutoScalingHistory(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeAutoScalingHistoryWithCallback invokes the das.DescribeAutoScalingHistory API asynchronously +func (client *Client) DescribeAutoScalingHistoryWithCallback(request *DescribeAutoScalingHistoryRequest, callback func(response *DescribeAutoScalingHistoryResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeAutoScalingHistoryResponse + var err error + defer close(result) + response, err = client.DescribeAutoScalingHistory(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeAutoScalingHistoryRequest is the request struct for api DescribeAutoScalingHistory +type DescribeAutoScalingHistoryRequest struct { + *requests.RpcRequest + InstanceId string `position:"Query" name:"InstanceId"` + AutoScalingTaskType string `position:"Query" name:"AutoScalingTaskType"` + StartTime requests.Integer `position:"Query" name:"StartTime"` + EndTime requests.Integer `position:"Query" name:"EndTime"` +} + +// DescribeAutoScalingHistoryResponse is the response struct for api DescribeAutoScalingHistory +type DescribeAutoScalingHistoryResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Success string `json:"Success" xml:"Success"` + Data DataInDescribeAutoScalingHistory `json:"Data" xml:"Data"` +} + +// CreateDescribeAutoScalingHistoryRequest creates a request to invoke DescribeAutoScalingHistory API +func CreateDescribeAutoScalingHistoryRequest() (request *DescribeAutoScalingHistoryRequest) { + request = &DescribeAutoScalingHistoryRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("DAS", "2020-01-16", "DescribeAutoScalingHistory", "", "") + request.Method = requests.GET + return +} + +// CreateDescribeAutoScalingHistoryResponse creates a response to parse from DescribeAutoScalingHistory response +func CreateDescribeAutoScalingHistoryResponse() (response *DescribeAutoScalingHistoryResponse) { + response = &DescribeAutoScalingHistoryResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/das/get_das_sql_log_hot_data.go b/services/das/get_das_sql_log_hot_data.go new file mode 100644 index 0000000000..445845ca74 --- /dev/null +++ b/services/das/get_das_sql_log_hot_data.go @@ -0,0 +1,126 @@ +package das + +//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" +) + +// GetDasSQLLogHotData invokes the das.GetDasSQLLogHotData API synchronously +func (client *Client) GetDasSQLLogHotData(request *GetDasSQLLogHotDataRequest) (response *GetDasSQLLogHotDataResponse, err error) { + response = CreateGetDasSQLLogHotDataResponse() + err = client.DoAction(request, response) + return +} + +// GetDasSQLLogHotDataWithChan invokes the das.GetDasSQLLogHotData API asynchronously +func (client *Client) GetDasSQLLogHotDataWithChan(request *GetDasSQLLogHotDataRequest) (<-chan *GetDasSQLLogHotDataResponse, <-chan error) { + responseChan := make(chan *GetDasSQLLogHotDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetDasSQLLogHotData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetDasSQLLogHotDataWithCallback invokes the das.GetDasSQLLogHotData API asynchronously +func (client *Client) GetDasSQLLogHotDataWithCallback(request *GetDasSQLLogHotDataRequest, callback func(response *GetDasSQLLogHotDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetDasSQLLogHotDataResponse + var err error + defer close(result) + response, err = client.GetDasSQLLogHotData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetDasSQLLogHotDataRequest is the request struct for api GetDasSQLLogHotData +type GetDasSQLLogHotDataRequest struct { + *requests.RpcRequest + ConsoleContext string `position:"Query" name:"ConsoleContext"` + InstanceId string `position:"Body" name:"InstanceId"` + Start requests.Integer `position:"Body" name:"Start"` + End requests.Integer `position:"Body" name:"End"` + QueryKeyword string `position:"Body" name:"QueryKeyword"` + AccountName string `position:"Body" name:"AccountName"` + DBName string `position:"Body" name:"DBName"` + HostAddress string `position:"Body" name:"HostAddress"` + LogicalOperator string `position:"Body" name:"LogicalOperator"` + MaxLatancy requests.Integer `position:"Body" name:"MaxLatancy"` + MaxScanRows requests.Integer `position:"Body" name:"MaxScanRows"` + MinLatancy requests.Integer `position:"Body" name:"MinLatancy"` + MinScanRows requests.Integer `position:"Body" name:"MinScanRows"` + SqlType string `position:"Body" name:"SqlType"` + State string `position:"Body" name:"State"` + ThreadID string `position:"Body" name:"ThreadID"` + PageNumbers requests.Integer `position:"Body" name:"PageNumbers"` + MaxRecordsPerPage requests.Integer `position:"Body" name:"MaxRecordsPerPage"` + SortKey string `position:"Body" name:"SortKey"` + SortMethod string `position:"Body" name:"SortMethod"` + ChildDBInstanceIDs string `position:"Body" name:"ChildDBInstanceIDs"` + Role string `position:"Body" name:"Role"` + TraceId string `position:"Body" name:"TraceId"` + MinRows requests.Integer `position:"Body" name:"MinRows"` + MaxRows requests.Integer `position:"Body" name:"MaxRows"` + MinSpillCnt requests.Integer `position:"Body" name:"MinSpillCnt"` + MaxSpillCnt requests.Integer `position:"Body" name:"MaxSpillCnt"` + TransactionId string `position:"Body" name:"TransactionId"` + Fail string `position:"Body" name:"Fail"` +} + +// GetDasSQLLogHotDataResponse is the response struct for api GetDasSQLLogHotData +type GetDasSQLLogHotDataResponse struct { + *responses.BaseResponse +} + +// CreateGetDasSQLLogHotDataRequest creates a request to invoke GetDasSQLLogHotData API +func CreateGetDasSQLLogHotDataRequest() (request *GetDasSQLLogHotDataRequest) { + request = &GetDasSQLLogHotDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("DAS", "2020-01-16", "GetDasSQLLogHotData", "", "") + request.Method = requests.POST + return +} + +// CreateGetDasSQLLogHotDataResponse creates a response to parse from GetDasSQLLogHotData response +func CreateGetDasSQLLogHotDataResponse() (response *GetDasSQLLogHotDataResponse) { + response = &GetDasSQLLogHotDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/das/get_db_instance_connectivity_diagnosis.go b/services/das/get_db_instance_connectivity_diagnosis.go new file mode 100644 index 0000000000..d3e42fb244 --- /dev/null +++ b/services/das/get_db_instance_connectivity_diagnosis.go @@ -0,0 +1,104 @@ +package das + +//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" +) + +// GetDBInstanceConnectivityDiagnosis invokes the das.GetDBInstanceConnectivityDiagnosis API synchronously +func (client *Client) GetDBInstanceConnectivityDiagnosis(request *GetDBInstanceConnectivityDiagnosisRequest) (response *GetDBInstanceConnectivityDiagnosisResponse, err error) { + response = CreateGetDBInstanceConnectivityDiagnosisResponse() + err = client.DoAction(request, response) + return +} + +// GetDBInstanceConnectivityDiagnosisWithChan invokes the das.GetDBInstanceConnectivityDiagnosis API asynchronously +func (client *Client) GetDBInstanceConnectivityDiagnosisWithChan(request *GetDBInstanceConnectivityDiagnosisRequest) (<-chan *GetDBInstanceConnectivityDiagnosisResponse, <-chan error) { + responseChan := make(chan *GetDBInstanceConnectivityDiagnosisResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetDBInstanceConnectivityDiagnosis(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetDBInstanceConnectivityDiagnosisWithCallback invokes the das.GetDBInstanceConnectivityDiagnosis API asynchronously +func (client *Client) GetDBInstanceConnectivityDiagnosisWithCallback(request *GetDBInstanceConnectivityDiagnosisRequest, callback func(response *GetDBInstanceConnectivityDiagnosisResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetDBInstanceConnectivityDiagnosisResponse + var err error + defer close(result) + response, err = client.GetDBInstanceConnectivityDiagnosis(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetDBInstanceConnectivityDiagnosisRequest is the request struct for api GetDBInstanceConnectivityDiagnosis +type GetDBInstanceConnectivityDiagnosisRequest struct { + *requests.RpcRequest + SrcIp string `position:"Query" name:"SrcIp"` + InstanceId string `position:"Query" name:"InstanceId"` +} + +// GetDBInstanceConnectivityDiagnosisResponse is the response struct for api GetDBInstanceConnectivityDiagnosis +type GetDBInstanceConnectivityDiagnosisResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Success string `json:"Success" xml:"Success"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateGetDBInstanceConnectivityDiagnosisRequest creates a request to invoke GetDBInstanceConnectivityDiagnosis API +func CreateGetDBInstanceConnectivityDiagnosisRequest() (request *GetDBInstanceConnectivityDiagnosisRequest) { + request = &GetDBInstanceConnectivityDiagnosisRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("DAS", "2020-01-16", "GetDBInstanceConnectivityDiagnosis", "", "") + request.Method = requests.POST + return +} + +// CreateGetDBInstanceConnectivityDiagnosisResponse creates a response to parse from GetDBInstanceConnectivityDiagnosis response +func CreateGetDBInstanceConnectivityDiagnosisResponse() (response *GetDBInstanceConnectivityDiagnosisResponse) { + response = &GetDBInstanceConnectivityDiagnosisResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/das/get_kill_instance_session_task_result.go b/services/das/get_kill_instance_session_task_result.go index 7ef57e3ace..c86bb27909 100644 --- a/services/das/get_kill_instance_session_task_result.go +++ b/services/das/get_kill_instance_session_task_result.go @@ -79,11 +79,11 @@ type GetKillInstanceSessionTaskResultRequest struct { // GetKillInstanceSessionTaskResultResponse is the response struct for api GetKillInstanceSessionTaskResult type GetKillInstanceSessionTaskResultResponse struct { *responses.BaseResponse - Code int64 `json:"Code" xml:"Code"` - Message string `json:"Message" xml:"Message"` - RequestId string `json:"RequestId" xml:"RequestId"` - Success bool `json:"Success" xml:"Success"` - Data Data `json:"Data" xml:"Data"` + Code int64 `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Data DataInGetKillInstanceSessionTaskResult `json:"Data" xml:"Data"` } // CreateGetKillInstanceSessionTaskResultRequest creates a request to invoke GetKillInstanceSessionTaskResult API diff --git a/services/das/get_mongo_db_current_op.go b/services/das/get_mongo_db_current_op.go new file mode 100644 index 0000000000..659168ca8c --- /dev/null +++ b/services/das/get_mongo_db_current_op.go @@ -0,0 +1,101 @@ +package das + +//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" +) + +// GetMongoDBCurrentOp invokes the das.GetMongoDBCurrentOp API synchronously +func (client *Client) GetMongoDBCurrentOp(request *GetMongoDBCurrentOpRequest) (response *GetMongoDBCurrentOpResponse, err error) { + response = CreateGetMongoDBCurrentOpResponse() + err = client.DoAction(request, response) + return +} + +// GetMongoDBCurrentOpWithChan invokes the das.GetMongoDBCurrentOp API asynchronously +func (client *Client) GetMongoDBCurrentOpWithChan(request *GetMongoDBCurrentOpRequest) (<-chan *GetMongoDBCurrentOpResponse, <-chan error) { + responseChan := make(chan *GetMongoDBCurrentOpResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetMongoDBCurrentOp(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetMongoDBCurrentOpWithCallback invokes the das.GetMongoDBCurrentOp API asynchronously +func (client *Client) GetMongoDBCurrentOpWithCallback(request *GetMongoDBCurrentOpRequest, callback func(response *GetMongoDBCurrentOpResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetMongoDBCurrentOpResponse + var err error + defer close(result) + response, err = client.GetMongoDBCurrentOp(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetMongoDBCurrentOpRequest is the request struct for api GetMongoDBCurrentOp +type GetMongoDBCurrentOpRequest struct { + *requests.RpcRequest + Role string `position:"Query" name:"Role"` + InstanceId string `position:"Query" name:"InstanceId"` + FilterDoc string `position:"Query" name:"FilterDoc"` + NodeId string `position:"Query" name:"NodeId"` +} + +// GetMongoDBCurrentOpResponse is the response struct for api GetMongoDBCurrentOp +type GetMongoDBCurrentOpResponse struct { + *responses.BaseResponse +} + +// CreateGetMongoDBCurrentOpRequest creates a request to invoke GetMongoDBCurrentOp API +func CreateGetMongoDBCurrentOpRequest() (request *GetMongoDBCurrentOpRequest) { + request = &GetMongoDBCurrentOpRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("DAS", "2020-01-16", "GetMongoDBCurrentOp", "", "") + request.Method = requests.POST + return +} + +// CreateGetMongoDBCurrentOpResponse creates a response to parse from GetMongoDBCurrentOp response +func CreateGetMongoDBCurrentOpResponse() (response *GetMongoDBCurrentOpResponse) { + response = &GetMongoDBCurrentOpResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/das/get_pfs_metric_trends.go b/services/das/get_pfs_metric_trends.go new file mode 100644 index 0000000000..5658a04401 --- /dev/null +++ b/services/das/get_pfs_metric_trends.go @@ -0,0 +1,103 @@ +package das + +//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" +) + +// GetPfsMetricTrends invokes the das.GetPfsMetricTrends API synchronously +func (client *Client) GetPfsMetricTrends(request *GetPfsMetricTrendsRequest) (response *GetPfsMetricTrendsResponse, err error) { + response = CreateGetPfsMetricTrendsResponse() + err = client.DoAction(request, response) + return +} + +// GetPfsMetricTrendsWithChan invokes the das.GetPfsMetricTrends API asynchronously +func (client *Client) GetPfsMetricTrendsWithChan(request *GetPfsMetricTrendsRequest) (<-chan *GetPfsMetricTrendsResponse, <-chan error) { + responseChan := make(chan *GetPfsMetricTrendsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetPfsMetricTrends(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetPfsMetricTrendsWithCallback invokes the das.GetPfsMetricTrends API asynchronously +func (client *Client) GetPfsMetricTrendsWithCallback(request *GetPfsMetricTrendsRequest, callback func(response *GetPfsMetricTrendsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetPfsMetricTrendsResponse + var err error + defer close(result) + response, err = client.GetPfsMetricTrends(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetPfsMetricTrendsRequest is the request struct for api GetPfsMetricTrends +type GetPfsMetricTrendsRequest struct { + *requests.RpcRequest + ConsoleContext string `position:"Query" name:"ConsoleContext"` + InstanceId string `position:"Body" name:"InstanceId"` + NodeId string `position:"Body" name:"NodeId"` + Metric string `position:"Body" name:"Metric"` + StartTime requests.Integer `position:"Body" name:"StartTime"` + EndTime requests.Integer `position:"Body" name:"EndTime"` +} + +// GetPfsMetricTrendsResponse is the response struct for api GetPfsMetricTrends +type GetPfsMetricTrendsResponse struct { + *responses.BaseResponse +} + +// CreateGetPfsMetricTrendsRequest creates a request to invoke GetPfsMetricTrends API +func CreateGetPfsMetricTrendsRequest() (request *GetPfsMetricTrendsRequest) { + request = &GetPfsMetricTrendsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("DAS", "2020-01-16", "GetPfsMetricTrends", "", "") + request.Method = requests.POST + return +} + +// CreateGetPfsMetricTrendsResponse creates a response to parse from GetPfsMetricTrends response +func CreateGetPfsMetricTrendsResponse() (response *GetPfsMetricTrendsResponse) { + response = &GetPfsMetricTrendsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/das/get_pfs_sql_sample.go b/services/das/get_pfs_sql_sample.go new file mode 100644 index 0000000000..a815d5b34b --- /dev/null +++ b/services/das/get_pfs_sql_sample.go @@ -0,0 +1,108 @@ +package das + +//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" +) + +// GetPfsSqlSample invokes the das.GetPfsSqlSample API synchronously +func (client *Client) GetPfsSqlSample(request *GetPfsSqlSampleRequest) (response *GetPfsSqlSampleResponse, err error) { + response = CreateGetPfsSqlSampleResponse() + err = client.DoAction(request, response) + return +} + +// GetPfsSqlSampleWithChan invokes the das.GetPfsSqlSample API asynchronously +func (client *Client) GetPfsSqlSampleWithChan(request *GetPfsSqlSampleRequest) (<-chan *GetPfsSqlSampleResponse, <-chan error) { + responseChan := make(chan *GetPfsSqlSampleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetPfsSqlSample(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetPfsSqlSampleWithCallback invokes the das.GetPfsSqlSample API asynchronously +func (client *Client) GetPfsSqlSampleWithCallback(request *GetPfsSqlSampleRequest, callback func(response *GetPfsSqlSampleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetPfsSqlSampleResponse + var err error + defer close(result) + response, err = client.GetPfsSqlSample(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetPfsSqlSampleRequest is the request struct for api GetPfsSqlSample +type GetPfsSqlSampleRequest struct { + *requests.RpcRequest + ConsoleContext string `position:"Query" name:"ConsoleContext"` + InstanceId string `position:"Body" name:"InstanceId"` + NodeId string `position:"Body" name:"NodeId"` + SqlId string `position:"Body" name:"SqlId"` + StartTime requests.Integer `position:"Body" name:"StartTime"` + EndTime requests.Integer `position:"Body" name:"EndTime"` +} + +// GetPfsSqlSampleResponse is the response struct for api GetPfsSqlSample +type GetPfsSqlSampleResponse struct { + *responses.BaseResponse + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Code int64 `json:"Code" xml:"Code"` + Success bool `json:"Success" xml:"Success"` + Data []Sample `json:"Data" xml:"Data"` +} + +// CreateGetPfsSqlSampleRequest creates a request to invoke GetPfsSqlSample API +func CreateGetPfsSqlSampleRequest() (request *GetPfsSqlSampleRequest) { + request = &GetPfsSqlSampleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("DAS", "2020-01-16", "GetPfsSqlSample", "", "") + request.Method = requests.POST + return +} + +// CreateGetPfsSqlSampleResponse creates a response to parse from GetPfsSqlSample response +func CreateGetPfsSqlSampleResponse() (response *GetPfsSqlSampleResponse) { + response = &GetPfsSqlSampleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/das/get_pfs_sql_summaries.go b/services/das/get_pfs_sql_summaries.go new file mode 100644 index 0000000000..f7e8705bb7 --- /dev/null +++ b/services/das/get_pfs_sql_summaries.go @@ -0,0 +1,108 @@ +package das + +//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" +) + +// GetPfsSqlSummaries invokes the das.GetPfsSqlSummaries API synchronously +func (client *Client) GetPfsSqlSummaries(request *GetPfsSqlSummariesRequest) (response *GetPfsSqlSummariesResponse, err error) { + response = CreateGetPfsSqlSummariesResponse() + err = client.DoAction(request, response) + return +} + +// GetPfsSqlSummariesWithChan invokes the das.GetPfsSqlSummaries API asynchronously +func (client *Client) GetPfsSqlSummariesWithChan(request *GetPfsSqlSummariesRequest) (<-chan *GetPfsSqlSummariesResponse, <-chan error) { + responseChan := make(chan *GetPfsSqlSummariesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetPfsSqlSummaries(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetPfsSqlSummariesWithCallback invokes the das.GetPfsSqlSummaries API asynchronously +func (client *Client) GetPfsSqlSummariesWithCallback(request *GetPfsSqlSummariesRequest, callback func(response *GetPfsSqlSummariesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetPfsSqlSummariesResponse + var err error + defer close(result) + response, err = client.GetPfsSqlSummaries(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetPfsSqlSummariesRequest is the request struct for api GetPfsSqlSummaries +type GetPfsSqlSummariesRequest struct { + *requests.RpcRequest + ConsoleContext string `position:"Query" name:"ConsoleContext"` + InstanceId string `position:"Body" name:"InstanceId"` + NodeId string `position:"Body" name:"NodeId"` + SqlId string `position:"Body" name:"SqlId"` + Keywords string `position:"Body" name:"Keywords"` + StartTime requests.Integer `position:"Body" name:"StartTime"` + EndTime requests.Integer `position:"Body" name:"EndTime"` + OrderBy string `position:"Body" name:"OrderBy"` + Asc requests.Boolean `position:"Body" name:"Asc"` + PageNo requests.Integer `position:"Body" name:"PageNo"` + PageSize requests.Integer `position:"Body" name:"PageSize"` +} + +// GetPfsSqlSummariesResponse is the response struct for api GetPfsSqlSummaries +type GetPfsSqlSummariesResponse struct { + *responses.BaseResponse +} + +// CreateGetPfsSqlSummariesRequest creates a request to invoke GetPfsSqlSummaries API +func CreateGetPfsSqlSummariesRequest() (request *GetPfsSqlSummariesRequest) { + request = &GetPfsSqlSummariesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("DAS", "2020-01-16", "GetPfsSqlSummaries", "", "") + request.Method = requests.POST + return +} + +// CreateGetPfsSqlSummariesResponse creates a response to parse from GetPfsSqlSummaries response +func CreateGetPfsSqlSummariesResponse() (response *GetPfsSqlSummariesResponse) { + response = &GetPfsSqlSummariesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/das/get_query_optimize_data_stats.go b/services/das/get_query_optimize_data_stats.go index a672799f88..6b13da602c 100644 --- a/services/das/get_query_optimize_data_stats.go +++ b/services/das/get_query_optimize_data_stats.go @@ -86,6 +86,8 @@ type GetQueryOptimizeDataStatsRequest struct { InstanceIds string `position:"Query" name:"InstanceIds"` PageNo string `position:"Query" name:"PageNo"` Time string `position:"Query" name:"Time"` + Region string `position:"Query" name:"Region"` + User string `position:"Query" name:"User"` } // GetQueryOptimizeDataStatsResponse is the response struct for api GetQueryOptimizeDataStats diff --git a/services/das/get_query_optimize_data_top.go b/services/das/get_query_optimize_data_top.go index 2ca4bc930e..3131911f42 100644 --- a/services/das/get_query_optimize_data_top.go +++ b/services/das/get_query_optimize_data_top.go @@ -77,6 +77,7 @@ type GetQueryOptimizeDataTopRequest struct { Engine string `position:"Query" name:"Engine"` InstanceIds string `position:"Query" name:"InstanceIds"` Time string `position:"Query" name:"Time"` + Region string `position:"Query" name:"Region"` } // GetQueryOptimizeDataTopResponse is the response struct for api GetQueryOptimizeDataTop diff --git a/services/das/get_query_optimize_data_trend.go b/services/das/get_query_optimize_data_trend.go index c6125c7ce4..54faf8cd2b 100644 --- a/services/das/get_query_optimize_data_trend.go +++ b/services/das/get_query_optimize_data_trend.go @@ -77,6 +77,7 @@ type GetQueryOptimizeDataTrendRequest struct { Engine string `position:"Query" name:"Engine"` InstanceIds string `position:"Query" name:"InstanceIds"` End string `position:"Query" name:"End"` + Region string `position:"Query" name:"Region"` } // GetQueryOptimizeDataTrendResponse is the response struct for api GetQueryOptimizeDataTrend diff --git a/services/das/get_query_optimize_exec_error_stats.go b/services/das/get_query_optimize_exec_error_stats.go index 6d0ef0cb87..5d11285e3b 100644 --- a/services/das/get_query_optimize_exec_error_stats.go +++ b/services/das/get_query_optimize_exec_error_stats.go @@ -82,6 +82,7 @@ type GetQueryOptimizeExecErrorStatsRequest struct { InstanceIds string `position:"Query" name:"InstanceIds"` PageNo string `position:"Query" name:"PageNo"` Time string `position:"Query" name:"Time"` + Region string `position:"Query" name:"Region"` } // GetQueryOptimizeExecErrorStatsResponse is the response struct for api GetQueryOptimizeExecErrorStats diff --git a/services/das/get_query_optimize_rule_list.go b/services/das/get_query_optimize_rule_list.go index 501e9354f8..a21ac9782e 100644 --- a/services/das/get_query_optimize_rule_list.go +++ b/services/das/get_query_optimize_rule_list.go @@ -75,6 +75,7 @@ type GetQueryOptimizeRuleListRequest struct { ConsoleContext string `position:"Query" name:"ConsoleContext"` Engine string `position:"Query" name:"Engine"` InstanceIds string `position:"Query" name:"InstanceIds"` + Region string `position:"Query" name:"Region"` } // GetQueryOptimizeRuleListResponse is the response struct for api GetQueryOptimizeRuleList diff --git a/services/das/get_query_optimize_share_url.go b/services/das/get_query_optimize_share_url.go new file mode 100644 index 0000000000..6354b41a06 --- /dev/null +++ b/services/das/get_query_optimize_share_url.go @@ -0,0 +1,119 @@ +package das + +//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" +) + +// GetQueryOptimizeShareUrl invokes the das.GetQueryOptimizeShareUrl API synchronously +func (client *Client) GetQueryOptimizeShareUrl(request *GetQueryOptimizeShareUrlRequest) (response *GetQueryOptimizeShareUrlResponse, err error) { + response = CreateGetQueryOptimizeShareUrlResponse() + err = client.DoAction(request, response) + return +} + +// GetQueryOptimizeShareUrlWithChan invokes the das.GetQueryOptimizeShareUrl API asynchronously +func (client *Client) GetQueryOptimizeShareUrlWithChan(request *GetQueryOptimizeShareUrlRequest) (<-chan *GetQueryOptimizeShareUrlResponse, <-chan error) { + responseChan := make(chan *GetQueryOptimizeShareUrlResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetQueryOptimizeShareUrl(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetQueryOptimizeShareUrlWithCallback invokes the das.GetQueryOptimizeShareUrl API asynchronously +func (client *Client) GetQueryOptimizeShareUrlWithCallback(request *GetQueryOptimizeShareUrlRequest, callback func(response *GetQueryOptimizeShareUrlResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetQueryOptimizeShareUrlResponse + var err error + defer close(result) + response, err = client.GetQueryOptimizeShareUrl(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetQueryOptimizeShareUrlRequest is the request struct for api GetQueryOptimizeShareUrl +type GetQueryOptimizeShareUrlRequest struct { + *requests.RpcRequest + ConsoleContext string `position:"Query" name:"ConsoleContext"` + Engine string `position:"Query" name:"Engine"` + InstanceIds string `position:"Query" name:"InstanceIds"` + TagNames string `position:"Query" name:"TagNames"` + Keywords string `position:"Query" name:"Keywords"` + LogicalOperator string `position:"Query" name:"LogicalOperator"` + Rules string `position:"Query" name:"Rules"` + DbNames string `position:"Query" name:"DbNames"` + Time requests.Integer `position:"Query" name:"Time"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageNo requests.Integer `position:"Query" name:"PageNo"` + OrderBy string `position:"Query" name:"OrderBy"` + Asc requests.Boolean `position:"Query" name:"Asc"` + OnlyOptimizedSql requests.Boolean `position:"Query" name:"OnlyOptimizedSql"` + SqlIds string `position:"Query" name:"SqlIds"` + Region string `position:"Query" name:"Region"` + User string `position:"Query" name:"User"` +} + +// GetQueryOptimizeShareUrlResponse is the response struct for api GetQueryOptimizeShareUrl +type GetQueryOptimizeShareUrlResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Success string `json:"Success" xml:"Success"` + Data string `json:"Data" xml:"Data"` +} + +// CreateGetQueryOptimizeShareUrlRequest creates a request to invoke GetQueryOptimizeShareUrl API +func CreateGetQueryOptimizeShareUrlRequest() (request *GetQueryOptimizeShareUrlRequest) { + request = &GetQueryOptimizeShareUrlRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("DAS", "2020-01-16", "GetQueryOptimizeShareUrl", "", "") + request.Method = requests.GET + return +} + +// CreateGetQueryOptimizeShareUrlResponse creates a response to parse from GetQueryOptimizeShareUrl response +func CreateGetQueryOptimizeShareUrlResponse() (response *GetQueryOptimizeShareUrlResponse) { + response = &GetQueryOptimizeShareUrlResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/das/get_query_optimize_solution.go b/services/das/get_query_optimize_solution.go index e1163e2c26..5bff49fa38 100644 --- a/services/das/get_query_optimize_solution.go +++ b/services/das/get_query_optimize_solution.go @@ -74,6 +74,7 @@ type GetQueryOptimizeSolutionRequest struct { SqlId string `position:"Query" name:"SqlId"` ConsoleContext string `position:"Query" name:"ConsoleContext"` RuleIds string `position:"Query" name:"RuleIds"` + InstanceId string `position:"Query" name:"InstanceId"` Engine string `position:"Query" name:"Engine"` } diff --git a/services/das/get_query_optimize_tag.go b/services/das/get_query_optimize_tag.go new file mode 100644 index 0000000000..f4b5334d9a --- /dev/null +++ b/services/das/get_query_optimize_tag.go @@ -0,0 +1,106 @@ +package das + +//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" +) + +// GetQueryOptimizeTag invokes the das.GetQueryOptimizeTag API synchronously +func (client *Client) GetQueryOptimizeTag(request *GetQueryOptimizeTagRequest) (response *GetQueryOptimizeTagResponse, err error) { + response = CreateGetQueryOptimizeTagResponse() + err = client.DoAction(request, response) + return +} + +// GetQueryOptimizeTagWithChan invokes the das.GetQueryOptimizeTag API asynchronously +func (client *Client) GetQueryOptimizeTagWithChan(request *GetQueryOptimizeTagRequest) (<-chan *GetQueryOptimizeTagResponse, <-chan error) { + responseChan := make(chan *GetQueryOptimizeTagResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetQueryOptimizeTag(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetQueryOptimizeTagWithCallback invokes the das.GetQueryOptimizeTag API asynchronously +func (client *Client) GetQueryOptimizeTagWithCallback(request *GetQueryOptimizeTagRequest, callback func(response *GetQueryOptimizeTagResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetQueryOptimizeTagResponse + var err error + defer close(result) + response, err = client.GetQueryOptimizeTag(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetQueryOptimizeTagRequest is the request struct for api GetQueryOptimizeTag +type GetQueryOptimizeTagRequest struct { + *requests.RpcRequest + ConsoleContext string `position:"Query" name:"ConsoleContext"` + Engine string `position:"Query" name:"Engine"` + SqlId string `position:"Query" name:"SqlId"` + InstanceId string `position:"Query" name:"InstanceId"` +} + +// GetQueryOptimizeTagResponse is the response struct for api GetQueryOptimizeTag +type GetQueryOptimizeTagResponse struct { + *responses.BaseResponse + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Success string `json:"Success" xml:"Success"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateGetQueryOptimizeTagRequest creates a request to invoke GetQueryOptimizeTag API +func CreateGetQueryOptimizeTagRequest() (request *GetQueryOptimizeTagRequest) { + request = &GetQueryOptimizeTagRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("DAS", "2020-01-16", "GetQueryOptimizeTag", "", "") + request.Method = requests.GET + return +} + +// CreateGetQueryOptimizeTagResponse creates a response to parse from GetQueryOptimizeTag response +func CreateGetQueryOptimizeTagResponse() (response *GetQueryOptimizeTagResponse) { + response = &GetQueryOptimizeTagResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/das/get_redis_all_session.go b/services/das/get_redis_all_session.go index cff588b888..79fba8473e 100644 --- a/services/das/get_redis_all_session.go +++ b/services/das/get_redis_all_session.go @@ -78,11 +78,11 @@ type GetRedisAllSessionRequest struct { // GetRedisAllSessionResponse is the response struct for api GetRedisAllSession type GetRedisAllSessionResponse struct { *responses.BaseResponse - Code int64 `json:"Code" xml:"Code"` - Message string `json:"Message" xml:"Message"` - RequestId string `json:"RequestId" xml:"RequestId"` - Success bool `json:"Success" xml:"Success"` - Data DataInGetRedisAllSession `json:"Data" xml:"Data"` + Code int64 `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Data Data `json:"Data" xml:"Data"` } // CreateGetRedisAllSessionRequest creates a request to invoke GetRedisAllSession API diff --git a/services/das/get_sql_optimize_advice.go b/services/das/get_sql_optimize_advice.go index 347ca3ea4d..9a46aa332e 100644 --- a/services/das/get_sql_optimize_advice.go +++ b/services/das/get_sql_optimize_advice.go @@ -76,6 +76,7 @@ type GetSqlOptimizeAdviceRequest struct { Engine string `position:"Query" name:"Engine"` InstanceIds string `position:"Query" name:"InstanceIds"` StartDt string `position:"Query" name:"StartDt"` + Region string `position:"Query" name:"Region"` } // GetSqlOptimizeAdviceResponse is the response struct for api GetSqlOptimizeAdvice diff --git a/services/das/struct_bandwidth.go b/services/das/struct_bandwidth.go index b19fbc2843..0948060338 100644 --- a/services/das/struct_bandwidth.go +++ b/services/das/struct_bandwidth.go @@ -17,9 +17,9 @@ package das // Bandwidth is a nested struct in das response type Bandwidth struct { + Downgrade bool `json:"Downgrade" xml:"Downgrade"` Upgrade bool `json:"Upgrade" xml:"Upgrade"` - BandwidthUsageUpperThreshold int `json:"BandwidthUsageUpperThreshold" xml:"BandwidthUsageUpperThreshold"` ObservationWindowSize string `json:"ObservationWindowSize" xml:"ObservationWindowSize"` - Downgrade bool `json:"Downgrade" xml:"Downgrade"` + BandwidthUsageUpperThreshold int `json:"BandwidthUsageUpperThreshold" xml:"BandwidthUsageUpperThreshold"` BandwidthUsageLowerThreshold int `json:"BandwidthUsageLowerThreshold" xml:"BandwidthUsageLowerThreshold"` } diff --git a/services/das/struct_data_in_get_redis_all_session.go b/services/das/struct_bandwidth_in_describe_auto_scaling_history.go similarity index 66% rename from services/das/struct_data_in_get_redis_all_session.go rename to services/das/struct_bandwidth_in_describe_auto_scaling_history.go index 27c5a64f13..612f9512c8 100644 --- a/services/das/struct_data_in_get_redis_all_session.go +++ b/services/das/struct_bandwidth_in_describe_auto_scaling_history.go @@ -15,10 +15,7 @@ package das // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DataInGetRedisAllSession is a nested struct in das response -type DataInGetRedisAllSession struct { - Timestamp int64 `json:"Timestamp" xml:"Timestamp"` - Total int64 `json:"Total" xml:"Total"` - Sessions []SessionsItem `json:"Sessions" xml:"Sessions"` - SourceStats []SourceStatsItem `json:"SourceStats" xml:"SourceStats"` +// BandwidthInDescribeAutoScalingHistory is a nested struct in das response +type BandwidthInDescribeAutoScalingHistory struct { + Bandwidth []map[string]interface{} `json:"Bandwidth" xml:"Bandwidth"` } diff --git a/services/das/struct_big_keys_of_num.go b/services/das/struct_big_keys_of_num.go new file mode 100644 index 0000000000..e1b2a2c81d --- /dev/null +++ b/services/das/struct_big_keys_of_num.go @@ -0,0 +1,21 @@ +package das + +//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. + +// BigKeysOfNum is a nested struct in das response +type BigKeysOfNum struct { + KeyInfo []KeyInfo `json:"KeyInfo" xml:"KeyInfo"` +} diff --git a/services/das/struct_data.go b/services/das/struct_data.go index 076d4f5e15..cfdb65440e 100644 --- a/services/das/struct_data.go +++ b/services/das/struct_data.go @@ -39,6 +39,7 @@ type Data struct { Message string `json:"Message" xml:"Message"` CallerUid string `json:"CallerUid" xml:"CallerUid"` ErrorMsg string `json:"ErrorMsg" xml:"ErrorMsg"` + Success bool `json:"success" xml:"success"` TableSchema string `json:"TableSchema" xml:"TableSchema"` DtsJobClass string `json:"DtsJobClass" xml:"DtsJobClass"` EnableAutoResourceOptimizeCount int64 `json:"EnableAutoResourceOptimizeCount" xml:"EnableAutoResourceOptimizeCount"` @@ -85,7 +86,6 @@ type Data struct { ParseFilePath string `json:"ParseFilePath" xml:"ParseFilePath"` ClientType string `json:"ClientType" xml:"ClientType"` ClientGatewayId string `json:"ClientGatewayId" xml:"ClientGatewayId"` - Success string `json:"Success" xml:"Success"` ParseCmd string `json:"ParseCmd" xml:"ParseCmd"` OwnerId string `json:"OwnerId" xml:"OwnerId"` MetaFilePath string `json:"MetaFilePath" xml:"MetaFilePath"` @@ -95,12 +95,12 @@ type Data struct { ExpireTime int64 `json:"expireTime" xml:"expireTime"` EventContext string `json:"eventContext" xml:"eventContext"` TotalAutoThrottleRulesCount int64 `json:"TotalAutoThrottleRulesCount" xml:"TotalAutoThrottleRulesCount"` - KillSuccessCount int64 `json:"KillSuccessCount" xml:"KillSuccessCount"` IsFinish bool `json:"IsFinish" xml:"IsFinish"` SqlRetention string `json:"sqlRetention" xml:"sqlRetention"` StorageFreeQuotaInMB string `json:"storageFreeQuotaInMB" xml:"storageFreeQuotaInMB"` DtsJobStatus string `json:"DtsJobStatus" xml:"DtsJobStatus"` ContactName string `json:"contactName" xml:"contactName"` + ConnCheckErrorCode string `json:"connCheckErrorCode" xml:"connCheckErrorCode"` EnableAutoThrottleCount int64 `json:"EnableAutoThrottleCount" xml:"EnableAutoThrottleCount"` DstType string `json:"DstType" xml:"DstType"` Engine string `json:"engine" xml:"engine"` @@ -111,9 +111,10 @@ type Data struct { ContactGroupName string `json:"contactGroupName" xml:"contactGroupName"` Token string `json:"Token" xml:"Token"` DstInstanceUuid string `json:"DstInstanceUuid" xml:"DstInstanceUuid"` + Tags string `json:"Tags" xml:"Tags"` DbLinkId int64 `json:"DbLinkId" xml:"DbLinkId"` ConfigSuccessInstanceCount int64 `json:"ConfigSuccessInstanceCount" xml:"ConfigSuccessInstanceCount"` - IgnoredUserSessionCount int64 `json:"IgnoredUserSessionCount" xml:"IgnoredUserSessionCount"` + SqlId string `json:"SqlId" xml:"SqlId"` SrcInstanceUuid string `json:"SrcInstanceUuid" xml:"SrcInstanceUuid"` ArchiveFolder string `json:"ArchiveFolder" xml:"ArchiveFolder"` TurnOffAutoThrottleCount int64 `json:"TurnOffAutoThrottleCount" xml:"TurnOffAutoThrottleCount"` @@ -122,8 +123,9 @@ type Data struct { StartTime int64 `json:"startTime" xml:"startTime"` HasEnableRuleButNotDasProCount int64 `json:"HasEnableRuleButNotDasProCount" xml:"HasEnableRuleButNotDasProCount"` MetaFileOnOss string `json:"MetaFileOnOss" xml:"MetaFileOnOss"` + FailType string `json:"failType" xml:"failType"` BackupId string `json:"BackupId" xml:"BackupId"` - KillFailCount int64 `json:"KillFailCount" xml:"KillFailCount"` + Comments string `json:"Comments" xml:"Comments"` ErrorMessage string `json:"ErrorMessage" xml:"ErrorMessage"` Uuid string `json:"Uuid" xml:"Uuid"` NodeId string `json:"NodeId" xml:"NodeId"` @@ -135,6 +137,7 @@ type Data struct { Description string `json:"Description" xml:"Description"` ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` BenchStepStatus string `json:"BenchStepStatus" xml:"BenchStepStatus"` + ConnCheckErrorMessage string `json:"connCheckErrorMessage" xml:"connCheckErrorMessage"` SmartPressureTime int `json:"SmartPressureTime" xml:"SmartPressureTime"` GmtCreate int64 `json:"gmtCreate" xml:"gmtCreate"` Results string `json:"Results" xml:"Results"` @@ -142,19 +145,20 @@ type Data struct { SyncStatus string `json:"SyncStatus" xml:"SyncStatus"` DstPort int `json:"DstPort" xml:"DstPort"` TotalAutoResourceOptimizeRulesCount int64 `json:"TotalAutoResourceOptimizeRulesCount" xml:"TotalAutoResourceOptimizeRulesCount"` + MigrationPredictRemainingTime int64 `json:"migrationPredictRemainingTime" xml:"migrationPredictRemainingTime"` Region string `json:"region" xml:"region"` LoadCmd string `json:"LoadCmd" xml:"LoadCmd"` EventSendGroup []string `json:"eventSendGroup" xml:"eventSendGroup"` NeverEnableAutoThrottleOrReleasedInstanceIdList []string `json:"NeverEnableAutoThrottleOrReleasedInstanceIdList" xml:"NeverEnableAutoThrottleOrReleasedInstanceIdList"` NeverEnableAutoResourceOptimizeOrReleasedInstanceIdList []string `json:"NeverEnableAutoResourceOptimizeOrReleasedInstanceIdList" xml:"NeverEnableAutoResourceOptimizeOrReleasedInstanceIdList"` - Sessions []int64 `json:"Sessions" xml:"Sessions"` - Storage Storage `json:"Storage" xml:"Storage"` SessionData SessionData `json:"SessionData" xml:"SessionData"` + Storage Storage `json:"Storage" xml:"Storage"` Resource Resource `json:"Resource" xml:"Resource"` Shard Shard `json:"Shard" xml:"Shard"` Spec Spec `json:"Spec" xml:"Spec"` Bandwidth Bandwidth `json:"Bandwidth" xml:"Bandwidth"` ConfigResponse ConfigResponse `json:"ConfigResponse" xml:"ConfigResponse"` + SourceStats []SourceStatsItem `json:"SourceStats" xml:"SourceStats"` SubResults SubResultsInGetHDMAliyunResourceSyncResult `json:"SubResults" xml:"SubResults"` KeyPrefixes KeyPrefixes `json:"KeyPrefixes" xml:"KeyPrefixes"` ConfigFailInstanceList []ConfigFailInstanceListItem `json:"ConfigFailInstanceList" xml:"ConfigFailInstanceList"` @@ -162,11 +166,15 @@ type Data struct { ConfigSuccessInstanceList []ConfigSuccessInstanceListItem `json:"ConfigSuccessInstanceList" xml:"ConfigSuccessInstanceList"` HasEnableRuleButNotDasProList []HasEnableRuleButNotDasProListItem `json:"HasEnableRuleButNotDasProList" xml:"HasEnableRuleButNotDasProList"` List ListInDescribeCacheAnalysisJobs `json:"List" xml:"List"` + BigKeysOfNum BigKeysOfNum `json:"BigKeysOfNum" xml:"BigKeysOfNum"` EnableAutoThrottleList []EnableAutoThrottleListItem `json:"EnableAutoThrottleList" xml:"EnableAutoThrottleList"` TurnOffAutoThrottleList []TurnOffAutoThrottleListItem `json:"TurnOffAutoThrottleList" xml:"TurnOffAutoThrottleList"` BigKeys BigKeysInCreateCacheAnalysisJob `json:"BigKeys" xml:"BigKeys"` ContactGroups []ContactGroupsItem `json:"contactGroups" xml:"contactGroups"` - Result []ResultItem `json:"result" xml:"result"` + UnexBigKeysOfBytes UnexBigKeysOfBytes `json:"UnexBigKeysOfBytes" xml:"UnexBigKeysOfBytes"` + Result []List `json:"result" xml:"result"` + Sessions []SessionsItem `json:"Sessions" xml:"Sessions"` + UnexBigKeysOfNum UnexBigKeysOfNum `json:"UnexBigKeysOfNum" xml:"UnexBigKeysOfNum"` EnableAutoResourceOptimizeList []EnableAutoResourceOptimizeListItem `json:"EnableAutoResourceOptimizeList" xml:"EnableAutoResourceOptimizeList"` Contacts []ContactsItem `json:"contacts" xml:"contacts"` } diff --git a/services/das/struct_data_in_describe_auto_scaling_history.go b/services/das/struct_data_in_describe_auto_scaling_history.go new file mode 100644 index 0000000000..d49ba80f11 --- /dev/null +++ b/services/das/struct_data_in_describe_auto_scaling_history.go @@ -0,0 +1,26 @@ +package das + +//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. + +// DataInDescribeAutoScalingHistory is a nested struct in das response +type DataInDescribeAutoScalingHistory struct { + InstanceId string `json:"InstanceId" xml:"InstanceId"` + Storage []map[string]interface{} `json:"Storage" xml:"Storage"` + Resource []map[string]interface{} `json:"Resource" xml:"Resource"` + Shard []map[string]interface{} `json:"Shard" xml:"Shard"` + Bandwidth []map[string]interface{} `json:"Bandwidth" xml:"Bandwidth"` + SpecHistory []SpecHistoryItem `json:"SpecHistory" xml:"SpecHistory"` +} diff --git a/services/das/struct_data_in_describe_cache_analysis_job.go b/services/das/struct_data_in_describe_cache_analysis_job.go index 9baa0aebf6..cb3f378643 100644 --- a/services/das/struct_data_in_describe_cache_analysis_job.go +++ b/services/das/struct_data_in_describe_cache_analysis_job.go @@ -17,11 +17,14 @@ package das // DataInDescribeCacheAnalysisJob is a nested struct in das response type DataInDescribeCacheAnalysisJob struct { - TaskState string `json:"TaskState" xml:"TaskState"` - JobId string `json:"JobId" xml:"JobId"` - Message string `json:"Message" xml:"Message"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - NodeId string `json:"NodeId" xml:"NodeId"` - KeyPrefixes KeyPrefixes `json:"KeyPrefixes" xml:"KeyPrefixes"` - BigKeys BigKeysInDescribeCacheAnalysisJob `json:"BigKeys" xml:"BigKeys"` + TaskState string `json:"TaskState" xml:"TaskState"` + JobId string `json:"JobId" xml:"JobId"` + Message string `json:"Message" xml:"Message"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + NodeId string `json:"NodeId" xml:"NodeId"` + BigKeys BigKeysInDescribeCacheAnalysisJob `json:"BigKeys" xml:"BigKeys"` + KeyPrefixes KeyPrefixes `json:"KeyPrefixes" xml:"KeyPrefixes"` + BigKeysOfNum BigKeysOfNum `json:"BigKeysOfNum" xml:"BigKeysOfNum"` + UnexBigKeysOfBytes UnexBigKeysOfBytes `json:"UnexBigKeysOfBytes" xml:"UnexBigKeysOfBytes"` + UnexBigKeysOfNum UnexBigKeysOfNum `json:"UnexBigKeysOfNum" xml:"UnexBigKeysOfNum"` } diff --git a/services/das/struct_data_in_get_async_error_request_stat_result.go b/services/das/struct_data_in_get_async_error_request_stat_result.go index e2ae40a95c..cdf8b30bdb 100644 --- a/services/das/struct_data_in_get_async_error_request_stat_result.go +++ b/services/das/struct_data_in_get_async_error_request_stat_result.go @@ -17,11 +17,11 @@ package das // DataInGetAsyncErrorRequestStatResult is a nested struct in das response type DataInGetAsyncErrorRequestStatResult struct { - Fail bool `json:"fail" xml:"fail"` - IsFinish bool `json:"isFinish" xml:"isFinish"` - ResultId string `json:"resultId" xml:"resultId"` - State string `json:"state" xml:"state"` - Timestamp int64 `json:"timestamp" xml:"timestamp"` - Complete bool `json:"complete" xml:"complete"` - Result map[string]interface{} `json:"result" xml:"result"` + Fail bool `json:"fail" xml:"fail"` + IsFinish bool `json:"isFinish" xml:"isFinish"` + ResultId string `json:"resultId" xml:"resultId"` + State string `json:"state" xml:"state"` + Timestamp int64 `json:"timestamp" xml:"timestamp"` + Complete bool `json:"complete" xml:"complete"` + Result []map[string]interface{} `json:"result" xml:"result"` } diff --git a/services/das/struct_data_in_get_kill_instance_session_task_result.go b/services/das/struct_data_in_get_kill_instance_session_task_result.go new file mode 100644 index 0000000000..68384678c4 --- /dev/null +++ b/services/das/struct_data_in_get_kill_instance_session_task_result.go @@ -0,0 +1,30 @@ +package das + +//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. + +// DataInGetKillInstanceSessionTaskResult is a nested struct in das response +type DataInGetKillInstanceSessionTaskResult struct { + TaskId string `json:"TaskId" xml:"TaskId"` + UserId string `json:"UserId" xml:"UserId"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + NodeId string `json:"NodeId" xml:"NodeId"` + TaskState string `json:"TaskState" xml:"TaskState"` + KillSuccessCount int64 `json:"KillSuccessCount" xml:"KillSuccessCount"` + KillFailCount int64 `json:"KillFailCount" xml:"KillFailCount"` + IgnoredUserSessionCount int64 `json:"IgnoredUserSessionCount" xml:"IgnoredUserSessionCount"` + Sessions []int64 `json:"Sessions" xml:"Sessions"` + Result []ResultItem `json:"Result" xml:"Result"` +} diff --git a/services/das/struct_data_in_get_pfs_sql_sample.go b/services/das/struct_data_in_get_pfs_sql_sample.go new file mode 100644 index 0000000000..408e74e712 --- /dev/null +++ b/services/das/struct_data_in_get_pfs_sql_sample.go @@ -0,0 +1,21 @@ +package das + +//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. + +// DataInGetPfsSqlSample is a nested struct in das response +type DataInGetPfsSqlSample struct { + Sample []Sample `json:"sample" xml:"sample"` +} diff --git a/services/das/struct_data_in_update_auto_sql_optimize_status.go b/services/das/struct_data_in_update_auto_sql_optimize_status.go new file mode 100644 index 0000000000..a81865cf98 --- /dev/null +++ b/services/das/struct_data_in_update_auto_sql_optimize_status.go @@ -0,0 +1,23 @@ +package das + +//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. + +// DataInUpdateAutoSqlOptimizeStatus is a nested struct in das response +type DataInUpdateAutoSqlOptimizeStatus struct { + Success string `json:"Success" xml:"Success"` + ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` + ErrorMsg string `json:"ErrorMsg" xml:"ErrorMsg"` +} diff --git a/services/das/struct_list.go b/services/das/struct_list.go new file mode 100644 index 0000000000..75d6848165 --- /dev/null +++ b/services/das/struct_list.go @@ -0,0 +1,22 @@ +package das + +//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. + +// List is a nested struct in das response +type List struct { + SqlId string `json:"sqlId" xml:"sqlId"` + InstanceId string `json:"instanceId" xml:"instanceId"` +} diff --git a/services/das/struct_query_optimize_data_stats.go b/services/das/struct_query_optimize_data_stats.go index dd07e4d528..a41bbe3e0d 100644 --- a/services/das/struct_query_optimize_data_stats.go +++ b/services/das/struct_query_optimize_data_stats.go @@ -34,5 +34,6 @@ type QueryOptimizeDataStats struct { AvgRowsSent string `json:"AvgRowsSent" xml:"AvgRowsSent"` MaxRowsAffected int64 `json:"MaxRowsAffected" xml:"MaxRowsAffected"` AvgRowsAffected string `json:"AvgRowsAffected" xml:"AvgRowsAffected"` + User string `json:"User" xml:"User"` RuleList []Rules `json:"RuleList" xml:"RuleList"` } diff --git a/services/das/struct_resource.go b/services/das/struct_resource.go index 0e7737aa9c..21a604f070 100644 --- a/services/das/struct_resource.go +++ b/services/das/struct_resource.go @@ -17,9 +17,9 @@ package das // Resource is a nested struct in das response type Resource struct { - Enable bool `json:"Enable" xml:"Enable"` - CpuUsageUpperThreshold int `json:"CpuUsageUpperThreshold" xml:"CpuUsageUpperThreshold"` CpuStep int `json:"CpuStep" xml:"CpuStep"` - UpgradeObservationWindowSize string `json:"UpgradeObservationWindowSize" xml:"UpgradeObservationWindowSize"` + CpuUsageUpperThreshold int `json:"CpuUsageUpperThreshold" xml:"CpuUsageUpperThreshold"` + Enable bool `json:"Enable" xml:"Enable"` DowngradeObservationWindowSize string `json:"DowngradeObservationWindowSize" xml:"DowngradeObservationWindowSize"` + UpgradeObservationWindowSize string `json:"UpgradeObservationWindowSize" xml:"UpgradeObservationWindowSize"` } diff --git a/services/das/struct_resource_in_describe_auto_scaling_history.go b/services/das/struct_resource_in_describe_auto_scaling_history.go new file mode 100644 index 0000000000..25e64248b7 --- /dev/null +++ b/services/das/struct_resource_in_describe_auto_scaling_history.go @@ -0,0 +1,21 @@ +package das + +//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. + +// ResourceInDescribeAutoScalingHistory is a nested struct in das response +type ResourceInDescribeAutoScalingHistory struct { + Resource []map[string]interface{} `json:"Resource" xml:"Resource"` +} diff --git a/services/das/struct_result_in_get_async_error_request_list_by_code.go b/services/das/struct_result_in_get_async_error_request_list_by_code.go index 243300d017..2daff9fd8f 100644 --- a/services/das/struct_result_in_get_async_error_request_list_by_code.go +++ b/services/das/struct_result_in_get_async_error_request_list_by_code.go @@ -17,5 +17,5 @@ package das // ResultInGetAsyncErrorRequestListByCode is a nested struct in das response type ResultInGetAsyncErrorRequestListByCode struct { - ResultItem []ResultItem `json:"result" xml:"result"` + List []List `json:"list" xml:"list"` } diff --git a/services/das/struct_result_in_get_async_error_request_stat_result.go b/services/das/struct_result_in_get_async_error_request_stat_result.go new file mode 100644 index 0000000000..e2025fd6d5 --- /dev/null +++ b/services/das/struct_result_in_get_async_error_request_stat_result.go @@ -0,0 +1,21 @@ +package das + +//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. + +// ResultInGetAsyncErrorRequestStatResult is a nested struct in das response +type ResultInGetAsyncErrorRequestStatResult struct { + Stat []map[string]interface{} `json:"stat" xml:"stat"` +} diff --git a/services/das/struct_result_item.go b/services/das/struct_result_item.go index 6c1b4fb431..a26722f773 100644 --- a/services/das/struct_result_item.go +++ b/services/das/struct_result_item.go @@ -17,17 +17,15 @@ package das // ResultItem is a nested struct in das response type ResultItem struct { - User string `json:"User" xml:"User"` - Time int64 `json:"Time" xml:"Time"` - Info string `json:"Info" xml:"Info"` - Active bool `json:"Active" xml:"Active"` - Id int64 `json:"Id" xml:"Id"` - Db string `json:"Db" xml:"Db"` - InstanceId string `json:"instanceId" xml:"instanceId"` - Command string `json:"Command" xml:"Command"` - Reason string `json:"Reason" xml:"Reason"` - Host string `json:"Host" xml:"Host"` - State string `json:"State" xml:"State"` - TaskId string `json:"TaskId" xml:"TaskId"` - SqlId string `json:"sqlId" xml:"sqlId"` + Id int64 `json:"Id" xml:"Id"` + User string `json:"User" xml:"User"` + Host string `json:"Host" xml:"Host"` + Db string `json:"Db" xml:"Db"` + Command string `json:"Command" xml:"Command"` + Time int64 `json:"Time" xml:"Time"` + State string `json:"State" xml:"State"` + Info string `json:"Info" xml:"Info"` + Active bool `json:"Active" xml:"Active"` + TaskId string `json:"TaskId" xml:"TaskId"` + Reason string `json:"Reason" xml:"Reason"` } diff --git a/services/das/struct_sample.go b/services/das/struct_sample.go index e4e1b89dc4..a6bedf8149 100644 --- a/services/das/struct_sample.go +++ b/services/das/struct_sample.go @@ -17,13 +17,41 @@ package das // Sample is a nested struct in das response type Sample struct { - SqlId string `json:"sqlId" xml:"sqlId"` - Database string `json:"database" xml:"database"` - OriginHost string `json:"originHost" xml:"originHost"` - InstanceId string `json:"instanceId" xml:"instanceId"` - ErrorCode string `json:"errorCode" xml:"errorCode"` - User string `json:"user" xml:"user"` - Sql string `json:"sql" xml:"sql"` - Timestamp int64 `json:"timestamp" xml:"timestamp"` - Tables []string `json:"tables" xml:"tables"` + EndEventId int `json:"EndEventId" xml:"EndEventId"` + Warnings int `json:"Warnings" xml:"Warnings"` + ErrorCode string `json:"errorCode" xml:"errorCode"` + ThreadId int `json:"ThreadId" xml:"ThreadId"` + Errors int `json:"Errors" xml:"Errors"` + Timestamp int64 `json:"timestamp" xml:"timestamp"` + CreateTmpTables int `json:"CreateTmpTables" xml:"CreateTmpTables"` + SelectRangeCheck int `json:"SelectRangeCheck" xml:"SelectRangeCheck"` + SelectRange int `json:"SelectRange" xml:"SelectRange"` + SortScan int `json:"SortScan" xml:"SortScan"` + Database string `json:"database" xml:"database"` + Db string `json:"Db" xml:"Db"` + SelectFullRangeJoin int `json:"SelectFullRangeJoin" xml:"SelectFullRangeJoin"` + SortMergePasses int `json:"SortMergePasses" xml:"SortMergePasses"` + SelectFullJoin int `json:"SelectFullJoin" xml:"SelectFullJoin"` + NodeId string `json:"NodeId" xml:"NodeId"` + UserId string `json:"UserId" xml:"UserId"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + RowsSent int `json:"RowsSent" xml:"RowsSent"` + OriginHost string `json:"originHost" xml:"originHost"` + EventId int `json:"EventId" xml:"EventId"` + User string `json:"user" xml:"user"` + Sql string `json:"sql" xml:"sql"` + LockLatency string `json:"LockLatency" xml:"LockLatency"` + RowsAffected int `json:"RowsAffected" xml:"RowsAffected"` + NoIndexUsed int `json:"NoIndexUsed" xml:"NoIndexUsed"` + Latency string `json:"Latency" xml:"Latency"` + RowsExamined int `json:"RowsExamined" xml:"RowsExamined"` + SortRange int `json:"SortRange" xml:"SortRange"` + SortRows int `json:"SortRows" xml:"SortRows"` + SqlId string `json:"SqlId" xml:"SqlId"` + EventName string `json:"EventName" xml:"EventName"` + SelectScan int `json:"SelectScan" xml:"SelectScan"` + NoGoodIndexUsed int `json:"NoGoodIndexUsed" xml:"NoGoodIndexUsed"` + LogicId string `json:"LogicId" xml:"LogicId"` + CreateTmpDiskTables int `json:"CreateTmpDiskTables" xml:"CreateTmpDiskTables"` + Tables []string `json:"tables" xml:"tables"` } diff --git a/services/das/struct_session_list_item.go b/services/das/struct_session_list_item.go index 1cfdd69a67..5565b5f9bf 100644 --- a/services/das/struct_session_list_item.go +++ b/services/das/struct_session_list_item.go @@ -28,4 +28,5 @@ type SessionListItem struct { UserClientAlias string `json:"UserClientAlias" xml:"UserClientAlias"` TrxId string `json:"TrxId" xml:"TrxId"` TrxDuration int64 `json:"TrxDuration" xml:"TrxDuration"` + SqlTemplateId string `json:"SqlTemplateId" xml:"SqlTemplateId"` } diff --git a/services/das/struct_shard.go b/services/das/struct_shard.go index 2c3381d891..1b52978745 100644 --- a/services/das/struct_shard.go +++ b/services/das/struct_shard.go @@ -17,12 +17,12 @@ package das // Shard is a nested struct in das response type Shard struct { - Upgrade bool `json:"Upgrade" xml:"Upgrade"` MemUsageUpperThreshold int `json:"MemUsageUpperThreshold" xml:"MemUsageUpperThreshold"` MaxShards int `json:"MaxShards" xml:"MaxShards"` - UpgradeObservationWindowSize string `json:"UpgradeObservationWindowSize" xml:"UpgradeObservationWindowSize"` - Downgrade bool `json:"Downgrade" xml:"Downgrade"` - MemUsageLowerThreshold int `json:"MemUsageLowerThreshold" xml:"MemUsageLowerThreshold"` MinShards int `json:"MinShards" xml:"MinShards"` + Downgrade bool `json:"Downgrade" xml:"Downgrade"` DowngradeObservationWindowSize string `json:"DowngradeObservationWindowSize" xml:"DowngradeObservationWindowSize"` + Upgrade bool `json:"Upgrade" xml:"Upgrade"` + UpgradeObservationWindowSize string `json:"UpgradeObservationWindowSize" xml:"UpgradeObservationWindowSize"` + MemUsageLowerThreshold int `json:"MemUsageLowerThreshold" xml:"MemUsageLowerThreshold"` } diff --git a/services/das/struct_shard_in_describe_auto_scaling_history.go b/services/das/struct_shard_in_describe_auto_scaling_history.go new file mode 100644 index 0000000000..144701b980 --- /dev/null +++ b/services/das/struct_shard_in_describe_auto_scaling_history.go @@ -0,0 +1,21 @@ +package das + +//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. + +// ShardInDescribeAutoScalingHistory is a nested struct in das response +type ShardInDescribeAutoScalingHistory struct { + Shard []map[string]interface{} `json:"Shard" xml:"Shard"` +} diff --git a/services/das/struct_spec_history.go b/services/das/struct_spec_history.go new file mode 100644 index 0000000000..e1ca9533d2 --- /dev/null +++ b/services/das/struct_spec_history.go @@ -0,0 +1,21 @@ +package das + +//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. + +// SpecHistory is a nested struct in das response +type SpecHistory struct { + SpecHistoryItem []SpecHistoryItem `json:"SpecHistory" xml:"SpecHistory"` +} diff --git a/services/das/struct_spec_history_item.go b/services/das/struct_spec_history_item.go new file mode 100644 index 0000000000..6622411f61 --- /dev/null +++ b/services/das/struct_spec_history_item.go @@ -0,0 +1,30 @@ +package das + +//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. + +// SpecHistoryItem is a nested struct in das response +type SpecHistoryItem struct { + ScaleType string `json:"ScaleType" xml:"ScaleType"` + TaskExcuteStatus bool `json:"TaskExcuteStatus" xml:"TaskExcuteStatus"` + ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` + OriginInstanceClass string `json:"OriginInstanceClass" xml:"OriginInstanceClass"` + TargetInstanceClass string `json:"TargetInstanceClass" xml:"TargetInstanceClass"` + OriginCore int `json:"OriginCore" xml:"OriginCore"` + OriginMemory string `json:"OriginMemory" xml:"OriginMemory"` + TargetCore int `json:"TargetCore" xml:"TargetCore"` + TargetMemory string `json:"TargetMemory" xml:"TargetMemory"` + TaskTime int64 `json:"TaskTime" xml:"TaskTime"` +} diff --git a/services/das/struct_storage.go b/services/das/struct_storage.go index caa52e01a7..cc926d79a0 100644 --- a/services/das/struct_storage.go +++ b/services/das/struct_storage.go @@ -17,7 +17,7 @@ package das // Storage is a nested struct in das response type Storage struct { - Upgrade bool `json:"Upgrade" xml:"Upgrade"` DiskUsageUpperThreshold int `json:"DiskUsageUpperThreshold" xml:"DiskUsageUpperThreshold"` + Upgrade bool `json:"Upgrade" xml:"Upgrade"` MaxStorage int `json:"MaxStorage" xml:"MaxStorage"` } diff --git a/services/das/struct_storage_in_describe_auto_scaling_history.go b/services/das/struct_storage_in_describe_auto_scaling_history.go new file mode 100644 index 0000000000..8d22028958 --- /dev/null +++ b/services/das/struct_storage_in_describe_auto_scaling_history.go @@ -0,0 +1,21 @@ +package das + +//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. + +// StorageInDescribeAutoScalingHistory is a nested struct in das response +type StorageInDescribeAutoScalingHistory struct { + Storage []map[string]interface{} `json:"Storage" xml:"Storage"` +} diff --git a/services/das/struct_unex_big_keys_of_bytes.go b/services/das/struct_unex_big_keys_of_bytes.go new file mode 100644 index 0000000000..b82887f651 --- /dev/null +++ b/services/das/struct_unex_big_keys_of_bytes.go @@ -0,0 +1,21 @@ +package das + +//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. + +// UnexBigKeysOfBytes is a nested struct in das response +type UnexBigKeysOfBytes struct { + KeyInfo []KeyInfo `json:"KeyInfo" xml:"KeyInfo"` +} diff --git a/services/das/struct_unex_big_keys_of_num.go b/services/das/struct_unex_big_keys_of_num.go new file mode 100644 index 0000000000..6cf469b572 --- /dev/null +++ b/services/das/struct_unex_big_keys_of_num.go @@ -0,0 +1,21 @@ +package das + +//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. + +// UnexBigKeysOfNum is a nested struct in das response +type UnexBigKeysOfNum struct { + KeyInfo []KeyInfo `json:"KeyInfo" xml:"KeyInfo"` +} diff --git a/services/das/update_auto_sql_optimize_status.go b/services/das/update_auto_sql_optimize_status.go index 712500dd01..91101fc5fb 100644 --- a/services/das/update_auto_sql_optimize_status.go +++ b/services/das/update_auto_sql_optimize_status.go @@ -78,11 +78,11 @@ type UpdateAutoSqlOptimizeStatusRequest struct { // UpdateAutoSqlOptimizeStatusResponse is the response struct for api UpdateAutoSqlOptimizeStatus type UpdateAutoSqlOptimizeStatusResponse struct { *responses.BaseResponse - Code string `json:"Code" xml:"Code"` - Message string `json:"Message" xml:"Message"` - RequestId string `json:"RequestId" xml:"RequestId"` - Success string `json:"Success" xml:"Success"` - Data Data `json:"Data" xml:"Data"` + Code string `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Success string `json:"Success" xml:"Success"` + Data DataInUpdateAutoSqlOptimizeStatus `json:"Data" xml:"Data"` } // CreateUpdateAutoSqlOptimizeStatusRequest creates a request to invoke UpdateAutoSqlOptimizeStatus API