From 067c5c7f6d1fb3f545e5b88f56053650afab6d30 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Tue, 26 Nov 2024 12:15:38 +0000 Subject: [PATCH] Generated 2022-01-01 for quickbi-public. --- ChangeLog.txt | 4 + .../quickbi-public/smartq_query_ability.go | 105 ++++++++++++++++++ services/quickbi-public/struct_meta_type.go | 21 ++++ .../quickbi-public/struct_meta_type_item.go | 22 ++++ .../struct_result_in_smartq_query_ability.go | 23 ++++ services/quickbi-public/struct_row.go | 21 ++++ .../struct_values_in_smartq_query_ability.go | 21 ++++ services/quickbi-public/struct_values_item.go | 21 ++++ 8 files changed, 238 insertions(+) create mode 100644 services/quickbi-public/smartq_query_ability.go create mode 100644 services/quickbi-public/struct_meta_type.go create mode 100644 services/quickbi-public/struct_meta_type_item.go create mode 100644 services/quickbi-public/struct_result_in_smartq_query_ability.go create mode 100644 services/quickbi-public/struct_row.go create mode 100644 services/quickbi-public/struct_values_in_smartq_query_ability.go create mode 100644 services/quickbi-public/struct_values_item.go diff --git a/ChangeLog.txt b/ChangeLog.txt index b225520934..686a9eb08c 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,7 @@ +2024-11-26 Version: v1.63.56 +- Generated 2022-01-01 for `quickbi-public`. +- Add SmartqQueryAbility api. + 2024-11-26 Version: v1.63.55 - Generated 2015-11-01 for `Market`. - Update DescribeApiMetering API. diff --git a/services/quickbi-public/smartq_query_ability.go b/services/quickbi-public/smartq_query_ability.go new file mode 100644 index 0000000000..9db0c586a3 --- /dev/null +++ b/services/quickbi-public/smartq_query_ability.go @@ -0,0 +1,105 @@ +package quickbi_public + +//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" +) + +// SmartqQueryAbility invokes the quickbi_public.SmartqQueryAbility API synchronously +func (client *Client) SmartqQueryAbility(request *SmartqQueryAbilityRequest) (response *SmartqQueryAbilityResponse, err error) { + response = CreateSmartqQueryAbilityResponse() + err = client.DoAction(request, response) + return +} + +// SmartqQueryAbilityWithChan invokes the quickbi_public.SmartqQueryAbility API asynchronously +func (client *Client) SmartqQueryAbilityWithChan(request *SmartqQueryAbilityRequest) (<-chan *SmartqQueryAbilityResponse, <-chan error) { + responseChan := make(chan *SmartqQueryAbilityResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.SmartqQueryAbility(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// SmartqQueryAbilityWithCallback invokes the quickbi_public.SmartqQueryAbility API asynchronously +func (client *Client) SmartqQueryAbilityWithCallback(request *SmartqQueryAbilityRequest, callback func(response *SmartqQueryAbilityResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *SmartqQueryAbilityResponse + var err error + defer close(result) + response, err = client.SmartqQueryAbility(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// SmartqQueryAbilityRequest is the request struct for api SmartqQueryAbility +type SmartqQueryAbilityRequest struct { + *requests.RpcRequest + AccessPoint string `position:"Query" name:"AccessPoint"` + SignType string `position:"Query" name:"SignType"` + UserId string `position:"Query" name:"UserId"` + UserQuestion string `position:"Query" name:"UserQuestion"` + CubeId string `position:"Query" name:"CubeId"` +} + +// SmartqQueryAbilityResponse is the response struct for api SmartqQueryAbility +type SmartqQueryAbilityResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Result ResultInSmartqQueryAbility `json:"Result" xml:"Result"` +} + +// CreateSmartqQueryAbilityRequest creates a request to invoke SmartqQueryAbility API +func CreateSmartqQueryAbilityRequest() (request *SmartqQueryAbilityRequest) { + request = &SmartqQueryAbilityRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("quickbi-public", "2022-01-01", "SmartqQueryAbility", "2.2.0", "openAPI") + request.Method = requests.POST + return +} + +// CreateSmartqQueryAbilityResponse creates a response to parse from SmartqQueryAbility response +func CreateSmartqQueryAbilityResponse() (response *SmartqQueryAbilityResponse) { + response = &SmartqQueryAbilityResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/quickbi-public/struct_meta_type.go b/services/quickbi-public/struct_meta_type.go new file mode 100644 index 0000000000..0ee794057d --- /dev/null +++ b/services/quickbi-public/struct_meta_type.go @@ -0,0 +1,21 @@ +package quickbi_public + +//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. + +// MetaType is a nested struct in quickbi_public response +type MetaType struct { + MetaTypeItem []MetaTypeItem `json:"MetaType" xml:"MetaType"` +} diff --git a/services/quickbi-public/struct_meta_type_item.go b/services/quickbi-public/struct_meta_type_item.go new file mode 100644 index 0000000000..72eb8c9007 --- /dev/null +++ b/services/quickbi-public/struct_meta_type_item.go @@ -0,0 +1,22 @@ +package quickbi_public + +//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. + +// MetaTypeItem is a nested struct in quickbi_public response +type MetaTypeItem struct { + Key string `json:"Key" xml:"Key"` + Value string `json:"Value" xml:"Value"` +} diff --git a/services/quickbi-public/struct_result_in_smartq_query_ability.go b/services/quickbi-public/struct_result_in_smartq_query_ability.go new file mode 100644 index 0000000000..790d291830 --- /dev/null +++ b/services/quickbi-public/struct_result_in_smartq_query_ability.go @@ -0,0 +1,23 @@ +package quickbi_public + +//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. + +// ResultInSmartqQueryAbility is a nested struct in quickbi_public response +type ResultInSmartqQueryAbility struct { + ChartType string `json:"ChartType" xml:"ChartType"` + MetaType []MetaTypeItem `json:"MetaType" xml:"MetaType"` + Values []ValuesItem `json:"Values" xml:"Values"` +} diff --git a/services/quickbi-public/struct_row.go b/services/quickbi-public/struct_row.go new file mode 100644 index 0000000000..5c01000aea --- /dev/null +++ b/services/quickbi-public/struct_row.go @@ -0,0 +1,21 @@ +package quickbi_public + +//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. + +// Row is a nested struct in quickbi_public response +type Row struct { + Row []string `json:"Row" xml:"Row"` +} diff --git a/services/quickbi-public/struct_values_in_smartq_query_ability.go b/services/quickbi-public/struct_values_in_smartq_query_ability.go new file mode 100644 index 0000000000..a75d3bfc7a --- /dev/null +++ b/services/quickbi-public/struct_values_in_smartq_query_ability.go @@ -0,0 +1,21 @@ +package quickbi_public + +//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. + +// ValuesInSmartqQueryAbility is a nested struct in quickbi_public response +type ValuesInSmartqQueryAbility struct { + ValuesItem []ValuesItem `json:"Values" xml:"Values"` +} diff --git a/services/quickbi-public/struct_values_item.go b/services/quickbi-public/struct_values_item.go new file mode 100644 index 0000000000..768fb10053 --- /dev/null +++ b/services/quickbi-public/struct_values_item.go @@ -0,0 +1,21 @@ +package quickbi_public + +//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. + +// ValuesItem is a nested struct in quickbi_public response +type ValuesItem struct { + Row []string `json:"Row" xml:"Row"` +}