Add QueryDashboardNl2sql, QueryLastAccelerationEngineJob APIs.
This commit is contained in:
@@ -145,6 +145,8 @@ set(quickbi-public_public_header_model
|
||||
include/alibabacloud/quickbi-public/model/QueryCubeOptimizationResult.h
|
||||
include/alibabacloud/quickbi-public/model/QueryCubePerformanceRequest.h
|
||||
include/alibabacloud/quickbi-public/model/QueryCubePerformanceResult.h
|
||||
include/alibabacloud/quickbi-public/model/QueryDashboardNl2sqlRequest.h
|
||||
include/alibabacloud/quickbi-public/model/QueryDashboardNl2sqlResult.h
|
||||
include/alibabacloud/quickbi-public/model/QueryDataRequest.h
|
||||
include/alibabacloud/quickbi-public/model/QueryDataResult.h
|
||||
include/alibabacloud/quickbi-public/model/QueryDataRangeRequest.h
|
||||
@@ -167,6 +169,8 @@ set(quickbi-public_public_header_model
|
||||
include/alibabacloud/quickbi-public/model/QueryEmbeddedInfoResult.h
|
||||
include/alibabacloud/quickbi-public/model/QueryEmbeddedStatusRequest.h
|
||||
include/alibabacloud/quickbi-public/model/QueryEmbeddedStatusResult.h
|
||||
include/alibabacloud/quickbi-public/model/QueryLastAccelerationEngineJobRequest.h
|
||||
include/alibabacloud/quickbi-public/model/QueryLastAccelerationEngineJobResult.h
|
||||
include/alibabacloud/quickbi-public/model/QueryLlmCubeWithThemeListByUserIdRequest.h
|
||||
include/alibabacloud/quickbi-public/model/QueryLlmCubeWithThemeListByUserIdResult.h
|
||||
include/alibabacloud/quickbi-public/model/QueryOrganizationRoleConfigRequest.h
|
||||
@@ -378,6 +382,8 @@ set(quickbi-public_src
|
||||
src/model/QueryCubeOptimizationResult.cc
|
||||
src/model/QueryCubePerformanceRequest.cc
|
||||
src/model/QueryCubePerformanceResult.cc
|
||||
src/model/QueryDashboardNl2sqlRequest.cc
|
||||
src/model/QueryDashboardNl2sqlResult.cc
|
||||
src/model/QueryDataRequest.cc
|
||||
src/model/QueryDataResult.cc
|
||||
src/model/QueryDataRangeRequest.cc
|
||||
@@ -400,6 +406,8 @@ set(quickbi-public_src
|
||||
src/model/QueryEmbeddedInfoResult.cc
|
||||
src/model/QueryEmbeddedStatusRequest.cc
|
||||
src/model/QueryEmbeddedStatusResult.cc
|
||||
src/model/QueryLastAccelerationEngineJobRequest.cc
|
||||
src/model/QueryLastAccelerationEngineJobResult.cc
|
||||
src/model/QueryLlmCubeWithThemeListByUserIdRequest.cc
|
||||
src/model/QueryLlmCubeWithThemeListByUserIdResult.cc
|
||||
src/model/QueryOrganizationRoleConfigRequest.cc
|
||||
|
||||
@@ -146,6 +146,8 @@
|
||||
#include "model/QueryCubeOptimizationResult.h"
|
||||
#include "model/QueryCubePerformanceRequest.h"
|
||||
#include "model/QueryCubePerformanceResult.h"
|
||||
#include "model/QueryDashboardNl2sqlRequest.h"
|
||||
#include "model/QueryDashboardNl2sqlResult.h"
|
||||
#include "model/QueryDataRequest.h"
|
||||
#include "model/QueryDataResult.h"
|
||||
#include "model/QueryDataRangeRequest.h"
|
||||
@@ -168,6 +170,8 @@
|
||||
#include "model/QueryEmbeddedInfoResult.h"
|
||||
#include "model/QueryEmbeddedStatusRequest.h"
|
||||
#include "model/QueryEmbeddedStatusResult.h"
|
||||
#include "model/QueryLastAccelerationEngineJobRequest.h"
|
||||
#include "model/QueryLastAccelerationEngineJobResult.h"
|
||||
#include "model/QueryLlmCubeWithThemeListByUserIdRequest.h"
|
||||
#include "model/QueryLlmCubeWithThemeListByUserIdResult.h"
|
||||
#include "model/QueryOrganizationRoleConfigRequest.h"
|
||||
@@ -447,6 +451,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::QueryCubePerformanceResult> QueryCubePerformanceOutcome;
|
||||
typedef std::future<QueryCubePerformanceOutcome> QueryCubePerformanceOutcomeCallable;
|
||||
typedef std::function<void(const Quickbi_publicClient*, const Model::QueryCubePerformanceRequest&, const QueryCubePerformanceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryCubePerformanceAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryDashboardNl2sqlResult> QueryDashboardNl2sqlOutcome;
|
||||
typedef std::future<QueryDashboardNl2sqlOutcome> QueryDashboardNl2sqlOutcomeCallable;
|
||||
typedef std::function<void(const Quickbi_publicClient*, const Model::QueryDashboardNl2sqlRequest&, const QueryDashboardNl2sqlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryDashboardNl2sqlAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryDataResult> QueryDataOutcome;
|
||||
typedef std::future<QueryDataOutcome> QueryDataOutcomeCallable;
|
||||
typedef std::function<void(const Quickbi_publicClient*, const Model::QueryDataRequest&, const QueryDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryDataAsyncHandler;
|
||||
@@ -480,6 +487,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::QueryEmbeddedStatusResult> QueryEmbeddedStatusOutcome;
|
||||
typedef std::future<QueryEmbeddedStatusOutcome> QueryEmbeddedStatusOutcomeCallable;
|
||||
typedef std::function<void(const Quickbi_publicClient*, const Model::QueryEmbeddedStatusRequest&, const QueryEmbeddedStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryEmbeddedStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryLastAccelerationEngineJobResult> QueryLastAccelerationEngineJobOutcome;
|
||||
typedef std::future<QueryLastAccelerationEngineJobOutcome> QueryLastAccelerationEngineJobOutcomeCallable;
|
||||
typedef std::function<void(const Quickbi_publicClient*, const Model::QueryLastAccelerationEngineJobRequest&, const QueryLastAccelerationEngineJobOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryLastAccelerationEngineJobAsyncHandler;
|
||||
typedef Outcome<Error, Model::QueryLlmCubeWithThemeListByUserIdResult> QueryLlmCubeWithThemeListByUserIdOutcome;
|
||||
typedef std::future<QueryLlmCubeWithThemeListByUserIdOutcome> QueryLlmCubeWithThemeListByUserIdOutcomeCallable;
|
||||
typedef std::function<void(const Quickbi_publicClient*, const Model::QueryLlmCubeWithThemeListByUserIdRequest&, const QueryLlmCubeWithThemeListByUserIdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryLlmCubeWithThemeListByUserIdAsyncHandler;
|
||||
@@ -797,6 +807,9 @@ namespace AlibabaCloud
|
||||
QueryCubePerformanceOutcome queryCubePerformance(const Model::QueryCubePerformanceRequest &request)const;
|
||||
void queryCubePerformanceAsync(const Model::QueryCubePerformanceRequest& request, const QueryCubePerformanceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryCubePerformanceOutcomeCallable queryCubePerformanceCallable(const Model::QueryCubePerformanceRequest& request) const;
|
||||
QueryDashboardNl2sqlOutcome queryDashboardNl2sql(const Model::QueryDashboardNl2sqlRequest &request)const;
|
||||
void queryDashboardNl2sqlAsync(const Model::QueryDashboardNl2sqlRequest& request, const QueryDashboardNl2sqlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryDashboardNl2sqlOutcomeCallable queryDashboardNl2sqlCallable(const Model::QueryDashboardNl2sqlRequest& request) const;
|
||||
QueryDataOutcome queryData(const Model::QueryDataRequest &request)const;
|
||||
void queryDataAsync(const Model::QueryDataRequest& request, const QueryDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryDataOutcomeCallable queryDataCallable(const Model::QueryDataRequest& request) const;
|
||||
@@ -830,6 +843,9 @@ namespace AlibabaCloud
|
||||
QueryEmbeddedStatusOutcome queryEmbeddedStatus(const Model::QueryEmbeddedStatusRequest &request)const;
|
||||
void queryEmbeddedStatusAsync(const Model::QueryEmbeddedStatusRequest& request, const QueryEmbeddedStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryEmbeddedStatusOutcomeCallable queryEmbeddedStatusCallable(const Model::QueryEmbeddedStatusRequest& request) const;
|
||||
QueryLastAccelerationEngineJobOutcome queryLastAccelerationEngineJob(const Model::QueryLastAccelerationEngineJobRequest &request)const;
|
||||
void queryLastAccelerationEngineJobAsync(const Model::QueryLastAccelerationEngineJobRequest& request, const QueryLastAccelerationEngineJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryLastAccelerationEngineJobOutcomeCallable queryLastAccelerationEngineJobCallable(const Model::QueryLastAccelerationEngineJobRequest& request) const;
|
||||
QueryLlmCubeWithThemeListByUserIdOutcome queryLlmCubeWithThemeListByUserId(const Model::QueryLlmCubeWithThemeListByUserIdRequest &request)const;
|
||||
void queryLlmCubeWithThemeListByUserIdAsync(const Model::QueryLlmCubeWithThemeListByUserIdRequest& request, const QueryLlmCubeWithThemeListByUserIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryLlmCubeWithThemeListByUserIdOutcomeCallable queryLlmCubeWithThemeListByUserIdCallable(const Model::QueryLlmCubeWithThemeListByUserIdRequest& request) const;
|
||||
|
||||
@@ -38,6 +38,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string receiverId;
|
||||
int receiverType;
|
||||
int authPointsValue;
|
||||
};
|
||||
std::string menuId;
|
||||
std::vector<Data::ReceiversItem> receivers;
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_QUICKBI_PUBLIC_MODEL_QUERYDASHBOARDNL2SQLREQUEST_H_
|
||||
#define ALIBABACLOUD_QUICKBI_PUBLIC_MODEL_QUERYDASHBOARDNL2SQLREQUEST_H_
|
||||
|
||||
#include <alibabacloud/quickbi-public/Quickbi_publicExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Quickbi_public {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_QUICKBI_PUBLIC_EXPORT QueryDashboardNl2sqlRequest : public RpcServiceRequest {
|
||||
public:
|
||||
QueryDashboardNl2sqlRequest();
|
||||
~QueryDashboardNl2sqlRequest();
|
||||
std::string getAccessPoint() const;
|
||||
void setAccessPoint(const std::string &accessPoint);
|
||||
std::string getUserId() const;
|
||||
void setUserId(const std::string &userId);
|
||||
std::string getSignType() const;
|
||||
void setSignType(const std::string &signType);
|
||||
std::string getWorkspaceId() const;
|
||||
void setWorkspaceId(const std::string &workspaceId);
|
||||
|
||||
private:
|
||||
std::string accessPoint_;
|
||||
std::string userId_;
|
||||
std::string signType_;
|
||||
std::string workspaceId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Quickbi_public
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_QUICKBI_PUBLIC_MODEL_QUERYDASHBOARDNL2SQLREQUEST_H_
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_QUICKBI_PUBLIC_MODEL_QUERYDASHBOARDNL2SQLRESULT_H_
|
||||
#define ALIBABACLOUD_QUICKBI_PUBLIC_MODEL_QUERYDASHBOARDNL2SQLRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/quickbi-public/Quickbi_publicExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Quickbi_public
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_QUICKBI_PUBLIC_EXPORT QueryDashboardNl2sqlResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string dashboardName;
|
||||
std::string dashboardNl2sqlId;
|
||||
std::string ownerId;
|
||||
std::vector<std::string> authorities;
|
||||
};
|
||||
|
||||
|
||||
QueryDashboardNl2sqlResult();
|
||||
explicit QueryDashboardNl2sqlResult(const std::string &payload);
|
||||
~QueryDashboardNl2sqlResult();
|
||||
bool getSuccess()const;
|
||||
std::vector<Data> getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool success_;
|
||||
std::vector<Data> result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_QUICKBI_PUBLIC_MODEL_QUERYDASHBOARDNL2SQLRESULT_H_
|
||||
@@ -42,6 +42,7 @@ namespace AlibabaCloud
|
||||
std::string aggregator;
|
||||
std::string dataType;
|
||||
std::string granularity;
|
||||
std::string originalColumn;
|
||||
};
|
||||
std::vector<HeadersItem> headers;
|
||||
std::vector<std::string> values;
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_QUICKBI_PUBLIC_MODEL_QUERYLASTACCELERATIONENGINEJOBREQUEST_H_
|
||||
#define ALIBABACLOUD_QUICKBI_PUBLIC_MODEL_QUERYLASTACCELERATIONENGINEJOBREQUEST_H_
|
||||
|
||||
#include <alibabacloud/quickbi-public/Quickbi_publicExport.h>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
namespace AlibabaCloud {
|
||||
namespace Quickbi_public {
|
||||
namespace Model {
|
||||
class ALIBABACLOUD_QUICKBI_PUBLIC_EXPORT QueryLastAccelerationEngineJobRequest : public RpcServiceRequest {
|
||||
public:
|
||||
QueryLastAccelerationEngineJobRequest();
|
||||
~QueryLastAccelerationEngineJobRequest();
|
||||
std::string getAccessPoint() const;
|
||||
void setAccessPoint(const std::string &accessPoint);
|
||||
std::string getSignType() const;
|
||||
void setSignType(const std::string &signType);
|
||||
std::string getCubeId() const;
|
||||
void setCubeId(const std::string &cubeId);
|
||||
|
||||
private:
|
||||
std::string accessPoint_;
|
||||
std::string signType_;
|
||||
std::string cubeId_;
|
||||
};
|
||||
} // namespace Model
|
||||
} // namespace Quickbi_public
|
||||
} // namespace AlibabaCloud
|
||||
#endif // !ALIBABACLOUD_QUICKBI_PUBLIC_MODEL_QUERYLASTACCELERATIONENGINEJOBREQUEST_H_
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_QUICKBI_PUBLIC_MODEL_QUERYLASTACCELERATIONENGINEJOBRESULT_H_
|
||||
#define ALIBABACLOUD_QUICKBI_PUBLIC_MODEL_QUERYLASTACCELERATIONENGINEJOBRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/quickbi-public/Quickbi_publicExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Quickbi_public
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_QUICKBI_PUBLIC_EXPORT QueryLastAccelerationEngineJobResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
std::string status;
|
||||
std::string gmtCreate;
|
||||
std::string gmtModified;
|
||||
std::string jobHistoryId;
|
||||
};
|
||||
|
||||
|
||||
QueryLastAccelerationEngineJobResult();
|
||||
explicit QueryLastAccelerationEngineJobResult(const std::string &payload);
|
||||
~QueryLastAccelerationEngineJobResult();
|
||||
bool getSuccess()const;
|
||||
Result getResult()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool success_;
|
||||
Result result_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_QUICKBI_PUBLIC_MODEL_QUERYLASTACCELERATIONENGINEJOBRESULT_H_
|
||||
@@ -2283,6 +2283,42 @@ Quickbi_publicClient::QueryCubePerformanceOutcomeCallable Quickbi_publicClient::
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Quickbi_publicClient::QueryDashboardNl2sqlOutcome Quickbi_publicClient::queryDashboardNl2sql(const QueryDashboardNl2sqlRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryDashboardNl2sqlOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryDashboardNl2sqlOutcome(QueryDashboardNl2sqlResult(outcome.result()));
|
||||
else
|
||||
return QueryDashboardNl2sqlOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Quickbi_publicClient::queryDashboardNl2sqlAsync(const QueryDashboardNl2sqlRequest& request, const QueryDashboardNl2sqlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryDashboardNl2sql(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Quickbi_publicClient::QueryDashboardNl2sqlOutcomeCallable Quickbi_publicClient::queryDashboardNl2sqlCallable(const QueryDashboardNl2sqlRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryDashboardNl2sqlOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryDashboardNl2sql(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Quickbi_publicClient::QueryDataOutcome Quickbi_publicClient::queryData(const QueryDataRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2679,6 +2715,42 @@ Quickbi_publicClient::QueryEmbeddedStatusOutcomeCallable Quickbi_publicClient::q
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Quickbi_publicClient::QueryLastAccelerationEngineJobOutcome Quickbi_publicClient::queryLastAccelerationEngineJob(const QueryLastAccelerationEngineJobRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return QueryLastAccelerationEngineJobOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return QueryLastAccelerationEngineJobOutcome(QueryLastAccelerationEngineJobResult(outcome.result()));
|
||||
else
|
||||
return QueryLastAccelerationEngineJobOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Quickbi_publicClient::queryLastAccelerationEngineJobAsync(const QueryLastAccelerationEngineJobRequest& request, const QueryLastAccelerationEngineJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, queryLastAccelerationEngineJob(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Quickbi_publicClient::QueryLastAccelerationEngineJobOutcomeCallable Quickbi_publicClient::queryLastAccelerationEngineJobCallable(const QueryLastAccelerationEngineJobRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<QueryLastAccelerationEngineJobOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->queryLastAccelerationEngineJob(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Quickbi_publicClient::QueryLlmCubeWithThemeListByUserIdOutcome Quickbi_publicClient::queryLlmCubeWithThemeListByUserId(const QueryLlmCubeWithThemeListByUserIdRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -55,6 +55,8 @@ void ListPortalMenuAuthorizationResult::parse(const std::string &payload)
|
||||
receiversObject.receiverId = valueResultDataReceiversReceiversItem["ReceiverId"].asString();
|
||||
if(!valueResultDataReceiversReceiversItem["ReceiverType"].isNull())
|
||||
receiversObject.receiverType = std::stoi(valueResultDataReceiversReceiversItem["ReceiverType"].asString());
|
||||
if(!valueResultDataReceiversReceiversItem["AuthPointsValue"].isNull())
|
||||
receiversObject.authPointsValue = std::stoi(valueResultDataReceiversReceiversItem["AuthPointsValue"].asString());
|
||||
resultObject.receivers.push_back(receiversObject);
|
||||
}
|
||||
result_.push_back(resultObject);
|
||||
|
||||
63
quickbi-public/src/model/QueryDashboardNl2sqlRequest.cc
Normal file
63
quickbi-public/src/model/QueryDashboardNl2sqlRequest.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/quickbi-public/model/QueryDashboardNl2sqlRequest.h>
|
||||
|
||||
using AlibabaCloud::Quickbi_public::Model::QueryDashboardNl2sqlRequest;
|
||||
|
||||
QueryDashboardNl2sqlRequest::QueryDashboardNl2sqlRequest()
|
||||
: RpcServiceRequest("quickbi-public", "2022-01-01", "QueryDashboardNl2sql") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryDashboardNl2sqlRequest::~QueryDashboardNl2sqlRequest() {}
|
||||
|
||||
std::string QueryDashboardNl2sqlRequest::getAccessPoint() const {
|
||||
return accessPoint_;
|
||||
}
|
||||
|
||||
void QueryDashboardNl2sqlRequest::setAccessPoint(const std::string &accessPoint) {
|
||||
accessPoint_ = accessPoint;
|
||||
setParameter(std::string("AccessPoint"), accessPoint);
|
||||
}
|
||||
|
||||
std::string QueryDashboardNl2sqlRequest::getUserId() const {
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void QueryDashboardNl2sqlRequest::setUserId(const std::string &userId) {
|
||||
userId_ = userId;
|
||||
setParameter(std::string("UserId"), userId);
|
||||
}
|
||||
|
||||
std::string QueryDashboardNl2sqlRequest::getSignType() const {
|
||||
return signType_;
|
||||
}
|
||||
|
||||
void QueryDashboardNl2sqlRequest::setSignType(const std::string &signType) {
|
||||
signType_ = signType;
|
||||
setParameter(std::string("SignType"), signType);
|
||||
}
|
||||
|
||||
std::string QueryDashboardNl2sqlRequest::getWorkspaceId() const {
|
||||
return workspaceId_;
|
||||
}
|
||||
|
||||
void QueryDashboardNl2sqlRequest::setWorkspaceId(const std::string &workspaceId) {
|
||||
workspaceId_ = workspaceId;
|
||||
setParameter(std::string("WorkspaceId"), workspaceId);
|
||||
}
|
||||
|
||||
71
quickbi-public/src/model/QueryDashboardNl2sqlResult.cc
Normal file
71
quickbi-public/src/model/QueryDashboardNl2sqlResult.cc
Normal file
@@ -0,0 +1,71 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/quickbi-public/model/QueryDashboardNl2sqlResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Quickbi_public;
|
||||
using namespace AlibabaCloud::Quickbi_public::Model;
|
||||
|
||||
QueryDashboardNl2sqlResult::QueryDashboardNl2sqlResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryDashboardNl2sqlResult::QueryDashboardNl2sqlResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryDashboardNl2sqlResult::~QueryDashboardNl2sqlResult()
|
||||
{}
|
||||
|
||||
void QueryDashboardNl2sqlResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allResultNode = value["Result"]["Data"];
|
||||
for (auto valueResultData : allResultNode)
|
||||
{
|
||||
Data resultObject;
|
||||
if(!valueResultData["DashboardName"].isNull())
|
||||
resultObject.dashboardName = valueResultData["DashboardName"].asString();
|
||||
if(!valueResultData["DashboardNl2sqlId"].isNull())
|
||||
resultObject.dashboardNl2sqlId = valueResultData["DashboardNl2sqlId"].asString();
|
||||
if(!valueResultData["OwnerId"].isNull())
|
||||
resultObject.ownerId = valueResultData["OwnerId"].asString();
|
||||
auto allAuthorities = value["Authorities"]["Authorities"];
|
||||
for (auto value : allAuthorities)
|
||||
resultObject.authorities.push_back(value.asString());
|
||||
result_.push_back(resultObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool QueryDashboardNl2sqlResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::vector<QueryDashboardNl2sqlResult::Data> QueryDashboardNl2sqlResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
@@ -58,6 +58,8 @@ void QueryDataResult::parse(const std::string &payload)
|
||||
headersItemObject.label = resultNodeHeadersHeadersItem["Label"].asString();
|
||||
if(!resultNodeHeadersHeadersItem["Type"].isNull())
|
||||
headersItemObject.type = resultNodeHeadersHeadersItem["Type"].asString();
|
||||
if(!resultNodeHeadersHeadersItem["OriginalColumn"].isNull())
|
||||
headersItemObject.originalColumn = resultNodeHeadersHeadersItem["OriginalColumn"].asString();
|
||||
result_.headers.push_back(headersItemObject);
|
||||
}
|
||||
auto allValues = resultNode["Values"]["Values"];
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/quickbi-public/model/QueryLastAccelerationEngineJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Quickbi_public::Model::QueryLastAccelerationEngineJobRequest;
|
||||
|
||||
QueryLastAccelerationEngineJobRequest::QueryLastAccelerationEngineJobRequest()
|
||||
: RpcServiceRequest("quickbi-public", "2022-01-01", "QueryLastAccelerationEngineJob") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryLastAccelerationEngineJobRequest::~QueryLastAccelerationEngineJobRequest() {}
|
||||
|
||||
std::string QueryLastAccelerationEngineJobRequest::getAccessPoint() const {
|
||||
return accessPoint_;
|
||||
}
|
||||
|
||||
void QueryLastAccelerationEngineJobRequest::setAccessPoint(const std::string &accessPoint) {
|
||||
accessPoint_ = accessPoint;
|
||||
setParameter(std::string("AccessPoint"), accessPoint);
|
||||
}
|
||||
|
||||
std::string QueryLastAccelerationEngineJobRequest::getSignType() const {
|
||||
return signType_;
|
||||
}
|
||||
|
||||
void QueryLastAccelerationEngineJobRequest::setSignType(const std::string &signType) {
|
||||
signType_ = signType;
|
||||
setParameter(std::string("SignType"), signType);
|
||||
}
|
||||
|
||||
std::string QueryLastAccelerationEngineJobRequest::getCubeId() const {
|
||||
return cubeId_;
|
||||
}
|
||||
|
||||
void QueryLastAccelerationEngineJobRequest::setCubeId(const std::string &cubeId) {
|
||||
cubeId_ = cubeId;
|
||||
setParameter(std::string("CubeId"), cubeId);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/quickbi-public/model/QueryLastAccelerationEngineJobResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Quickbi_public;
|
||||
using namespace AlibabaCloud::Quickbi_public::Model;
|
||||
|
||||
QueryLastAccelerationEngineJobResult::QueryLastAccelerationEngineJobResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
QueryLastAccelerationEngineJobResult::QueryLastAccelerationEngineJobResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
QueryLastAccelerationEngineJobResult::~QueryLastAccelerationEngineJobResult()
|
||||
{}
|
||||
|
||||
void QueryLastAccelerationEngineJobResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultNode = value["Result"];
|
||||
if(!resultNode["JobHistoryId"].isNull())
|
||||
result_.jobHistoryId = resultNode["JobHistoryId"].asString();
|
||||
if(!resultNode["Status"].isNull())
|
||||
result_.status = resultNode["Status"].asString();
|
||||
if(!resultNode["GmtCreate"].isNull())
|
||||
result_.gmtCreate = resultNode["GmtCreate"].asString();
|
||||
if(!resultNode["GmtModified"].isNull())
|
||||
result_.gmtModified = resultNode["GmtModified"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool QueryLastAccelerationEngineJobResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
QueryLastAccelerationEngineJobResult::Result QueryLastAccelerationEngineJobResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user