Support SQLReview Order API.
This commit is contained in:
@@ -339,6 +339,42 @@ Dms_enterpriseClient::CreatePublishGroupTaskOutcomeCallable Dms_enterpriseClient
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::CreateSQLReviewOrderOutcome Dms_enterpriseClient::createSQLReviewOrder(const CreateSQLReviewOrderRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateSQLReviewOrderOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateSQLReviewOrderOutcome(CreateSQLReviewOrderResult(outcome.result()));
|
||||
else
|
||||
return CreateSQLReviewOrderOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dms_enterpriseClient::createSQLReviewOrderAsync(const CreateSQLReviewOrderRequest& request, const CreateSQLReviewOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createSQLReviewOrder(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::CreateSQLReviewOrderOutcomeCallable Dms_enterpriseClient::createSQLReviewOrderCallable(const CreateSQLReviewOrderRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateSQLReviewOrderOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createSQLReviewOrder(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::CreateStructSyncOrderOutcome Dms_enterpriseClient::createStructSyncOrder(const CreateStructSyncOrderRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1419,6 +1455,42 @@ Dms_enterpriseClient::GetPhysicalDatabaseOutcomeCallable Dms_enterpriseClient::g
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::GetSQLReviewCheckResultStatusOutcome Dms_enterpriseClient::getSQLReviewCheckResultStatus(const GetSQLReviewCheckResultStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetSQLReviewCheckResultStatusOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetSQLReviewCheckResultStatusOutcome(GetSQLReviewCheckResultStatusResult(outcome.result()));
|
||||
else
|
||||
return GetSQLReviewCheckResultStatusOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dms_enterpriseClient::getSQLReviewCheckResultStatusAsync(const GetSQLReviewCheckResultStatusRequest& request, const GetSQLReviewCheckResultStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getSQLReviewCheckResultStatus(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::GetSQLReviewCheckResultStatusOutcomeCallable Dms_enterpriseClient::getSQLReviewCheckResultStatusCallable(const GetSQLReviewCheckResultStatusRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetSQLReviewCheckResultStatusOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getSQLReviewCheckResultStatus(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::GetStructSyncExecSqlDetailOutcome Dms_enterpriseClient::getStructSyncExecSqlDetail(const GetStructSyncExecSqlDetailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2175,6 +2247,42 @@ Dms_enterpriseClient::ListOrdersOutcomeCallable Dms_enterpriseClient::listOrders
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::ListSQLReviewOriginSQLOutcome Dms_enterpriseClient::listSQLReviewOriginSQL(const ListSQLReviewOriginSQLRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListSQLReviewOriginSQLOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListSQLReviewOriginSQLOutcome(ListSQLReviewOriginSQLResult(outcome.result()));
|
||||
else
|
||||
return ListSQLReviewOriginSQLOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void Dms_enterpriseClient::listSQLReviewOriginSQLAsync(const ListSQLReviewOriginSQLRequest& request, const ListSQLReviewOriginSQLAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listSQLReviewOriginSQL(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::ListSQLReviewOriginSQLOutcomeCallable Dms_enterpriseClient::listSQLReviewOriginSQLCallable(const ListSQLReviewOriginSQLRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListSQLReviewOriginSQLOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listSQLReviewOriginSQL(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
Dms_enterpriseClient::ListSensitiveColumnsOutcome Dms_enterpriseClient::listSensitiveColumns(const ListSensitiveColumnsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -1,73 +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/dms-enterprise/model/ApproveOrderRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::ApproveOrderRequest;
|
||||
|
||||
ApproveOrderRequest::ApproveOrderRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "ApproveOrder")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ApproveOrderRequest::~ApproveOrderRequest()
|
||||
{}
|
||||
|
||||
long ApproveOrderRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/ApproveOrderRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::ApproveOrderRequest;
|
||||
|
||||
ApproveOrderRequest::ApproveOrderRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "ApproveOrder") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ApproveOrderRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
ApproveOrderRequest::~ApproveOrderRequest() {}
|
||||
|
||||
long ApproveOrderRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
long ApproveOrderRequest::getWorkflowInstanceId()const
|
||||
{
|
||||
return workflowInstanceId_;
|
||||
void ApproveOrderRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
void ApproveOrderRequest::setWorkflowInstanceId(long workflowInstanceId)
|
||||
{
|
||||
workflowInstanceId_ = workflowInstanceId;
|
||||
setParameter("WorkflowInstanceId", std::to_string(workflowInstanceId));
|
||||
long ApproveOrderRequest::getWorkflowInstanceId() const {
|
||||
return workflowInstanceId_;
|
||||
}
|
||||
|
||||
std::string ApproveOrderRequest::getApprovalType()const
|
||||
{
|
||||
return approvalType_;
|
||||
void ApproveOrderRequest::setWorkflowInstanceId(long workflowInstanceId) {
|
||||
workflowInstanceId_ = workflowInstanceId;
|
||||
setParameter(std::string("WorkflowInstanceId"), std::to_string(workflowInstanceId));
|
||||
}
|
||||
|
||||
void ApproveOrderRequest::setApprovalType(const std::string& approvalType)
|
||||
{
|
||||
approvalType_ = approvalType;
|
||||
setParameter("ApprovalType", approvalType);
|
||||
std::string ApproveOrderRequest::getApprovalType() const {
|
||||
return approvalType_;
|
||||
}
|
||||
|
||||
std::string ApproveOrderRequest::getComment()const
|
||||
{
|
||||
return comment_;
|
||||
void ApproveOrderRequest::setApprovalType(const std::string &approvalType) {
|
||||
approvalType_ = approvalType;
|
||||
setParameter(std::string("ApprovalType"), approvalType);
|
||||
}
|
||||
|
||||
void ApproveOrderRequest::setComment(const std::string& comment)
|
||||
{
|
||||
comment_ = comment;
|
||||
setParameter("Comment", comment);
|
||||
std::string ApproveOrderRequest::getComment() const {
|
||||
return comment_;
|
||||
}
|
||||
|
||||
void ApproveOrderRequest::setComment(const std::string &comment) {
|
||||
comment_ = comment;
|
||||
setParameter(std::string("Comment"), comment);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +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/dms-enterprise/model/CloseOrderRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::CloseOrderRequest;
|
||||
|
||||
CloseOrderRequest::CloseOrderRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "CloseOrder")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CloseOrderRequest::~CloseOrderRequest()
|
||||
{}
|
||||
|
||||
long CloseOrderRequest::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/CloseOrderRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::CloseOrderRequest;
|
||||
|
||||
CloseOrderRequest::CloseOrderRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "CloseOrder") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CloseOrderRequest::setOrderId(long orderId)
|
||||
{
|
||||
orderId_ = orderId;
|
||||
setParameter("OrderId", std::to_string(orderId));
|
||||
CloseOrderRequest::~CloseOrderRequest() {}
|
||||
|
||||
long CloseOrderRequest::getOrderId() const {
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
std::string CloseOrderRequest::getCloseReason()const
|
||||
{
|
||||
return closeReason_;
|
||||
void CloseOrderRequest::setOrderId(long orderId) {
|
||||
orderId_ = orderId;
|
||||
setParameter(std::string("OrderId"), std::to_string(orderId));
|
||||
}
|
||||
|
||||
void CloseOrderRequest::setCloseReason(const std::string& closeReason)
|
||||
{
|
||||
closeReason_ = closeReason;
|
||||
setParameter("CloseReason", closeReason);
|
||||
std::string CloseOrderRequest::getCloseReason() const {
|
||||
return closeReason_;
|
||||
}
|
||||
|
||||
long CloseOrderRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
void CloseOrderRequest::setCloseReason(const std::string &closeReason) {
|
||||
closeReason_ = closeReason;
|
||||
setParameter(std::string("CloseReason"), closeReason);
|
||||
}
|
||||
|
||||
void CloseOrderRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
long CloseOrderRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void CloseOrderRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,109 +1,85 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/CreateDataCorrectOrderRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::CreateDataCorrectOrderRequest;
|
||||
|
||||
CreateDataCorrectOrderRequest::CreateDataCorrectOrderRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateDataCorrectOrder")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateDataCorrectOrderRequest::~CreateDataCorrectOrderRequest()
|
||||
{}
|
||||
|
||||
long CreateDataCorrectOrderRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/CreateDataCorrectOrderRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::CreateDataCorrectOrderRequest;
|
||||
|
||||
CreateDataCorrectOrderRequest::CreateDataCorrectOrderRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateDataCorrectOrder") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateDataCorrectOrderRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
CreateDataCorrectOrderRequest::~CreateDataCorrectOrderRequest() {}
|
||||
|
||||
long CreateDataCorrectOrderRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
std::string CreateDataCorrectOrderRequest::getAttachmentKey()const
|
||||
{
|
||||
return attachmentKey_;
|
||||
void CreateDataCorrectOrderRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
void CreateDataCorrectOrderRequest::setAttachmentKey(const std::string& attachmentKey)
|
||||
{
|
||||
attachmentKey_ = attachmentKey;
|
||||
setParameter("AttachmentKey", attachmentKey);
|
||||
std::string CreateDataCorrectOrderRequest::getAttachmentKey() const {
|
||||
return attachmentKey_;
|
||||
}
|
||||
|
||||
Struct CreateDataCorrectOrderRequest::getParam()const
|
||||
{
|
||||
return param_;
|
||||
void CreateDataCorrectOrderRequest::setAttachmentKey(const std::string &attachmentKey) {
|
||||
attachmentKey_ = attachmentKey;
|
||||
setParameter(std::string("AttachmentKey"), attachmentKey);
|
||||
}
|
||||
|
||||
void CreateDataCorrectOrderRequest::setParam(const Struct& param)
|
||||
{
|
||||
param_ = param;
|
||||
for(int dep1 = 0; dep1!= param.size(); dep1++) {
|
||||
auto paramObj = param.at(dep1);
|
||||
std::string paramObjStr = "Param." + std::to_string(dep1 + 1);
|
||||
setParameter(paramObjStr + ".SqlType", paramObj.sqlType);
|
||||
setParameter(paramObjStr + ".Classify", paramObj.classify);
|
||||
setParameter(paramObjStr + ".RollbackSQL", paramObj.rollbackSQL);
|
||||
setParameter(paramObjStr + ".RollbackSqlType", paramObj.rollbackSqlType);
|
||||
for(int dep2 = 0; dep2!= paramObj.dbItemList.size(); dep2++) {
|
||||
auto dbItemListObj = paramObj.dbItemList.at(dep2);
|
||||
std::string dbItemListObjStr = paramObjStr + "DbItemList." + std::to_string(dep2 + 1);
|
||||
for(int dep3 = 0; dep3!= dbItemListObj.dbItemListItem.size(); dep3++) {
|
||||
auto dbItemListItemObj = dbItemListObj.dbItemListItem.at(dep3);
|
||||
std::string dbItemListItemObjStr = dbItemListObjStr + "DbItemListItem." + std::to_string(dep3 + 1);
|
||||
setParameter(dbItemListItemObjStr + ".DbId", std::to_string(dbItemListItemObj.dbId));
|
||||
setParameter(dbItemListItemObjStr + ".Logic", dbItemListItemObj.logic ? "true" : "false");
|
||||
}
|
||||
}
|
||||
setParameter(paramObjStr + ".ExecSQL", paramObj.execSQL);
|
||||
setParameter(paramObjStr + ".EstimateAffectRows", std::to_string(paramObj.estimateAffectRows));
|
||||
setParameter(paramObjStr + ".RollbackAttachmentName", paramObj.rollbackAttachmentName);
|
||||
setParameter(paramObjStr + ".AttachmentName", paramObj.attachmentName);
|
||||
}
|
||||
CreateDataCorrectOrderRequest::Param CreateDataCorrectOrderRequest::getParam() const {
|
||||
return param_;
|
||||
}
|
||||
|
||||
std::string CreateDataCorrectOrderRequest::getComment()const
|
||||
{
|
||||
return comment_;
|
||||
void CreateDataCorrectOrderRequest::setParam(const CreateDataCorrectOrderRequest::Param ¶m) {
|
||||
param_ = param;
|
||||
setParameter(std::string("Param") + ".SqlType", param.sqlType);
|
||||
setParameter(std::string("Param") + ".Classify", param.classify);
|
||||
setParameter(std::string("Param") + ".RollbackSQL", param.rollbackSQL);
|
||||
setParameter(std::string("Param") + ".RollbackSqlType", param.rollbackSqlType);
|
||||
for(int dep1 = 0; dep1 != param.dbItemList.size(); dep1++) {
|
||||
setParameter(std::string("Param") + ".DbItemList." + std::to_string(dep1 + 1) + ".DbId", std::to_string(param.dbItemList[dep1].dbId));
|
||||
setParameter(std::string("Param") + ".DbItemList." + std::to_string(dep1 + 1) + ".Logic", param.dbItemList[dep1].logic ? "true" : "false");
|
||||
}
|
||||
setParameter(std::string("Param") + ".ExecSQL", param.execSQL);
|
||||
setParameter(std::string("Param") + ".EstimateAffectRows", std::to_string(param.estimateAffectRows));
|
||||
setParameter(std::string("Param") + ".RollbackAttachmentName", param.rollbackAttachmentName);
|
||||
setParameter(std::string("Param") + ".AttachmentName", param.attachmentName);
|
||||
}
|
||||
|
||||
void CreateDataCorrectOrderRequest::setComment(const std::string& comment)
|
||||
{
|
||||
comment_ = comment;
|
||||
setParameter("Comment", comment);
|
||||
std::string CreateDataCorrectOrderRequest::getComment() const {
|
||||
return comment_;
|
||||
}
|
||||
|
||||
Array CreateDataCorrectOrderRequest::getRelatedUserList()const
|
||||
{
|
||||
return relatedUserList_;
|
||||
void CreateDataCorrectOrderRequest::setComment(const std::string &comment) {
|
||||
comment_ = comment;
|
||||
setParameter(std::string("Comment"), comment);
|
||||
}
|
||||
|
||||
void CreateDataCorrectOrderRequest::setRelatedUserList(const Array& relatedUserList)
|
||||
{
|
||||
relatedUserList_ = relatedUserList;
|
||||
for(int dep1 = 0; dep1!= relatedUserList.size(); dep1++) {
|
||||
auto relatedUserListObj = relatedUserList.at(dep1);
|
||||
std::string relatedUserListObjStr = "RelatedUserList." + std::to_string(dep1 + 1);
|
||||
setParameter(relatedUserListObjStr + ".RelatedUserList", std::to_string(relatedUserListObj.relatedUserList));
|
||||
}
|
||||
std::vector<CreateDataCorrectOrderRequest::long> CreateDataCorrectOrderRequest::getRelatedUserList() const {
|
||||
return relatedUserList_;
|
||||
}
|
||||
|
||||
void CreateDataCorrectOrderRequest::setRelatedUserList(const std::vector<CreateDataCorrectOrderRequest::long> &relatedUserList) {
|
||||
relatedUserList_ = relatedUserList;
|
||||
for(int dep1 = 0; dep1 != relatedUserList.size(); dep1++) {
|
||||
setParameter(std::string("RelatedUserList") + "." + std::to_string(dep1 + 1), std::to_string(relatedUserList[dep1]));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -42,12 +42,12 @@ void CreateDataCorrectOrderResult::parse(const std::string &payload)
|
||||
auto allCreateOrderResult = value["CreateOrderResult"]["OrderIds"];
|
||||
for (const auto &item : allCreateOrderResult)
|
||||
createOrderResult_.push_back(item.asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,118 +1,88 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/CreateDataCronClearOrderRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::CreateDataCronClearOrderRequest;
|
||||
|
||||
CreateDataCronClearOrderRequest::CreateDataCronClearOrderRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateDataCronClearOrder")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateDataCronClearOrderRequest::~CreateDataCronClearOrderRequest()
|
||||
{}
|
||||
|
||||
long CreateDataCronClearOrderRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/CreateDataCronClearOrderRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::CreateDataCronClearOrderRequest;
|
||||
|
||||
CreateDataCronClearOrderRequest::CreateDataCronClearOrderRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateDataCronClearOrder") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateDataCronClearOrderRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
CreateDataCronClearOrderRequest::~CreateDataCronClearOrderRequest() {}
|
||||
|
||||
long CreateDataCronClearOrderRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
std::string CreateDataCronClearOrderRequest::getAttachmentKey()const
|
||||
{
|
||||
return attachmentKey_;
|
||||
void CreateDataCronClearOrderRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
void CreateDataCronClearOrderRequest::setAttachmentKey(const std::string& attachmentKey)
|
||||
{
|
||||
attachmentKey_ = attachmentKey;
|
||||
setParameter("AttachmentKey", attachmentKey);
|
||||
std::string CreateDataCronClearOrderRequest::getAttachmentKey() const {
|
||||
return attachmentKey_;
|
||||
}
|
||||
|
||||
Struct CreateDataCronClearOrderRequest::getParam()const
|
||||
{
|
||||
return param_;
|
||||
void CreateDataCronClearOrderRequest::setAttachmentKey(const std::string &attachmentKey) {
|
||||
attachmentKey_ = attachmentKey;
|
||||
setParameter(std::string("AttachmentKey"), attachmentKey);
|
||||
}
|
||||
|
||||
void CreateDataCronClearOrderRequest::setParam(const Struct& param)
|
||||
{
|
||||
param_ = param;
|
||||
for(int dep1 = 0; dep1!= param.size(); dep1++) {
|
||||
auto paramObj = param.at(dep1);
|
||||
std::string paramObjStr = "Param." + std::to_string(dep1 + 1);
|
||||
setParameter(paramObjStr + ".Classify", paramObj.classify);
|
||||
for(int dep2 = 0; dep2!= paramObj.dbItemList.size(); dep2++) {
|
||||
auto dbItemListObj = paramObj.dbItemList.at(dep2);
|
||||
std::string dbItemListObjStr = paramObjStr + "DbItemList." + std::to_string(dep2 + 1);
|
||||
for(int dep3 = 0; dep3!= dbItemListObj.dbItemListItem.size(); dep3++) {
|
||||
auto dbItemListItemObj = dbItemListObj.dbItemListItem.at(dep3);
|
||||
std::string dbItemListItemObjStr = dbItemListObjStr + "DbItemListItem." + std::to_string(dep3 + 1);
|
||||
setParameter(dbItemListItemObjStr + ".DbId", std::to_string(dbItemListItemObj.dbId));
|
||||
setParameter(dbItemListItemObjStr + ".Logic", dbItemListItemObj.logic ? "true" : "false");
|
||||
}
|
||||
}
|
||||
for(int dep2 = 0; dep2!= paramObj.cronClearItemList.size(); dep2++) {
|
||||
auto cronClearItemListObj = paramObj.cronClearItemList.at(dep2);
|
||||
std::string cronClearItemListObjStr = paramObjStr + "CronClearItemList." + std::to_string(dep2 + 1);
|
||||
for(int dep3 = 0; dep3!= cronClearItemListObj.cronClearItemListItem.size(); dep3++) {
|
||||
auto cronClearItemListItemObj = cronClearItemListObj.cronClearItemListItem.at(dep3);
|
||||
std::string cronClearItemListItemObjStr = cronClearItemListObjStr + "CronClearItemListItem." + std::to_string(dep3 + 1);
|
||||
setParameter(cronClearItemListItemObjStr + ".FilterSQL", cronClearItemListItemObj.filterSQL);
|
||||
setParameter(cronClearItemListItemObjStr + ".RemainDays", std::to_string(cronClearItemListItemObj.remainDays));
|
||||
setParameter(cronClearItemListItemObjStr + ".TableName", cronClearItemListItemObj.tableName);
|
||||
setParameter(cronClearItemListItemObjStr + ".ColumnName", cronClearItemListItemObj.columnName);
|
||||
setParameter(cronClearItemListItemObjStr + ".TimeUnit", cronClearItemListItemObj.timeUnit);
|
||||
}
|
||||
}
|
||||
setParameter(paramObjStr + ".DurationHour", std::to_string(paramObj.durationHour));
|
||||
setParameter(paramObjStr + ".CronFormat", paramObj.cronFormat);
|
||||
setParameter(paramObjStr + ".SpecifyDuration", paramObj.specifyDuration ? "true" : "false");
|
||||
}
|
||||
CreateDataCronClearOrderRequest::Param CreateDataCronClearOrderRequest::getParam() const {
|
||||
return param_;
|
||||
}
|
||||
|
||||
std::string CreateDataCronClearOrderRequest::getComment()const
|
||||
{
|
||||
return comment_;
|
||||
void CreateDataCronClearOrderRequest::setParam(const CreateDataCronClearOrderRequest::Param ¶m) {
|
||||
param_ = param;
|
||||
setParameter(std::string("Param") + ".Classify", param.classify);
|
||||
for(int dep1 = 0; dep1 != param.dbItemList.size(); dep1++) {
|
||||
setParameter(std::string("Param") + ".DbItemList." + std::to_string(dep1 + 1) + ".DbId", std::to_string(param.dbItemList[dep1].dbId));
|
||||
setParameter(std::string("Param") + ".DbItemList." + std::to_string(dep1 + 1) + ".Logic", param.dbItemList[dep1].logic ? "true" : "false");
|
||||
}
|
||||
for(int dep1 = 0; dep1 != param.cronClearItemList.size(); dep1++) {
|
||||
setParameter(std::string("Param") + ".CronClearItemList." + std::to_string(dep1 + 1) + ".FilterSQL", param.cronClearItemList[dep1].filterSQL);
|
||||
setParameter(std::string("Param") + ".CronClearItemList." + std::to_string(dep1 + 1) + ".RemainDays", std::to_string(param.cronClearItemList[dep1].remainDays));
|
||||
setParameter(std::string("Param") + ".CronClearItemList." + std::to_string(dep1 + 1) + ".TableName", param.cronClearItemList[dep1].tableName);
|
||||
setParameter(std::string("Param") + ".CronClearItemList." + std::to_string(dep1 + 1) + ".ColumnName", param.cronClearItemList[dep1].columnName);
|
||||
setParameter(std::string("Param") + ".CronClearItemList." + std::to_string(dep1 + 1) + ".TimeUnit", param.cronClearItemList[dep1].timeUnit);
|
||||
}
|
||||
setParameter(std::string("Param") + ".DurationHour", std::to_string(param.durationHour));
|
||||
setParameter(std::string("Param") + ".CronFormat", param.cronFormat);
|
||||
setParameter(std::string("Param") + ".specifyDuration", param.specifyDuration ? "true" : "false");
|
||||
}
|
||||
|
||||
void CreateDataCronClearOrderRequest::setComment(const std::string& comment)
|
||||
{
|
||||
comment_ = comment;
|
||||
setParameter("Comment", comment);
|
||||
std::string CreateDataCronClearOrderRequest::getComment() const {
|
||||
return comment_;
|
||||
}
|
||||
|
||||
Array CreateDataCronClearOrderRequest::getRelatedUserList()const
|
||||
{
|
||||
return relatedUserList_;
|
||||
void CreateDataCronClearOrderRequest::setComment(const std::string &comment) {
|
||||
comment_ = comment;
|
||||
setParameter(std::string("Comment"), comment);
|
||||
}
|
||||
|
||||
void CreateDataCronClearOrderRequest::setRelatedUserList(const Array& relatedUserList)
|
||||
{
|
||||
relatedUserList_ = relatedUserList;
|
||||
for(int dep1 = 0; dep1!= relatedUserList.size(); dep1++) {
|
||||
auto relatedUserListObj = relatedUserList.at(dep1);
|
||||
std::string relatedUserListObjStr = "RelatedUserList." + std::to_string(dep1 + 1);
|
||||
setParameter(relatedUserListObjStr + ".RelatedUserList", std::to_string(relatedUserListObj.relatedUserList));
|
||||
}
|
||||
std::vector<CreateDataCronClearOrderRequest::long> CreateDataCronClearOrderRequest::getRelatedUserList() const {
|
||||
return relatedUserList_;
|
||||
}
|
||||
|
||||
void CreateDataCronClearOrderRequest::setRelatedUserList(const std::vector<CreateDataCronClearOrderRequest::long> &relatedUserList) {
|
||||
relatedUserList_ = relatedUserList;
|
||||
for(int dep1 = 0; dep1 != relatedUserList.size(); dep1++) {
|
||||
setParameter(std::string("RelatedUserList") + "." + std::to_string(dep1 + 1), std::to_string(relatedUserList[dep1]));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -42,12 +42,12 @@ void CreateDataCronClearOrderResult::parse(const std::string &payload)
|
||||
auto allCreateOrderResult = value["CreateOrderResult"]["OrderIds"];
|
||||
for (const auto &item : allCreateOrderResult)
|
||||
createOrderResult_.push_back(item.asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,113 +1,89 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/CreateDataImportOrderRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::CreateDataImportOrderRequest;
|
||||
|
||||
CreateDataImportOrderRequest::CreateDataImportOrderRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateDataImportOrder")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateDataImportOrderRequest::~CreateDataImportOrderRequest()
|
||||
{}
|
||||
|
||||
long CreateDataImportOrderRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/CreateDataImportOrderRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::CreateDataImportOrderRequest;
|
||||
|
||||
CreateDataImportOrderRequest::CreateDataImportOrderRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateDataImportOrder") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateDataImportOrderRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
CreateDataImportOrderRequest::~CreateDataImportOrderRequest() {}
|
||||
|
||||
long CreateDataImportOrderRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
std::string CreateDataImportOrderRequest::getAttachmentKey()const
|
||||
{
|
||||
return attachmentKey_;
|
||||
void CreateDataImportOrderRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
void CreateDataImportOrderRequest::setAttachmentKey(const std::string& attachmentKey)
|
||||
{
|
||||
attachmentKey_ = attachmentKey;
|
||||
setParameter("AttachmentKey", attachmentKey);
|
||||
std::string CreateDataImportOrderRequest::getAttachmentKey() const {
|
||||
return attachmentKey_;
|
||||
}
|
||||
|
||||
Struct CreateDataImportOrderRequest::getParam()const
|
||||
{
|
||||
return param_;
|
||||
void CreateDataImportOrderRequest::setAttachmentKey(const std::string &attachmentKey) {
|
||||
attachmentKey_ = attachmentKey;
|
||||
setParameter(std::string("AttachmentKey"), attachmentKey);
|
||||
}
|
||||
|
||||
void CreateDataImportOrderRequest::setParam(const Struct& param)
|
||||
{
|
||||
param_ = param;
|
||||
for(int dep1 = 0; dep1!= param.size(); dep1++) {
|
||||
auto paramObj = param.at(dep1);
|
||||
std::string paramObjStr = "Param." + std::to_string(dep1 + 1);
|
||||
setParameter(paramObjStr + ".FileEncoding", paramObj.fileEncoding);
|
||||
setParameter(paramObjStr + ".Classify", paramObj.classify);
|
||||
setParameter(paramObjStr + ".FileType", paramObj.fileType);
|
||||
setParameter(paramObjStr + ".CsvFirstRowIsColumnDef", paramObj.csvFirstRowIsColumnDef ? "true" : "false");
|
||||
setParameter(paramObjStr + ".RollbackAttachmentName", paramObj.rollbackAttachmentName);
|
||||
setParameter(paramObjStr + ".AttachmentName", paramObj.attachmentName);
|
||||
setParameter(paramObjStr + ".ImportMode", paramObj.importMode);
|
||||
setParameter(paramObjStr + ".RollbackSQL", paramObj.rollbackSQL);
|
||||
setParameter(paramObjStr + ".RollbackSqlType", paramObj.rollbackSqlType);
|
||||
for(int dep2 = 0; dep2!= paramObj.dbItemList.size(); dep2++) {
|
||||
auto dbItemListObj = paramObj.dbItemList.at(dep2);
|
||||
std::string dbItemListObjStr = paramObjStr + "DbItemList." + std::to_string(dep2 + 1);
|
||||
for(int dep3 = 0; dep3!= dbItemListObj.dbItemListItem.size(); dep3++) {
|
||||
auto dbItemListItemObj = dbItemListObj.dbItemListItem.at(dep3);
|
||||
std::string dbItemListItemObjStr = dbItemListObjStr + "DbItemListItem." + std::to_string(dep3 + 1);
|
||||
setParameter(dbItemListItemObjStr + ".DbId", std::to_string(dbItemListItemObj.dbId));
|
||||
setParameter(dbItemListItemObjStr + ".Logic", dbItemListItemObj.logic ? "true" : "false");
|
||||
}
|
||||
}
|
||||
setParameter(paramObjStr + ".InsertType", paramObj.insertType);
|
||||
setParameter(paramObjStr + ".TableName", paramObj.tableName);
|
||||
setParameter(paramObjStr + ".IgnoreError", paramObj.ignoreError ? "true" : "false");
|
||||
}
|
||||
CreateDataImportOrderRequest::Param CreateDataImportOrderRequest::getParam() const {
|
||||
return param_;
|
||||
}
|
||||
|
||||
std::string CreateDataImportOrderRequest::getComment()const
|
||||
{
|
||||
return comment_;
|
||||
void CreateDataImportOrderRequest::setParam(const CreateDataImportOrderRequest::Param ¶m) {
|
||||
param_ = param;
|
||||
setParameter(std::string("Param") + ".FileEncoding", param.fileEncoding);
|
||||
setParameter(std::string("Param") + ".Classify", param.classify);
|
||||
setParameter(std::string("Param") + ".FileType", param.fileType);
|
||||
setParameter(std::string("Param") + ".CsvFirstRowIsColumnDef", param.csvFirstRowIsColumnDef ? "true" : "false");
|
||||
setParameter(std::string("Param") + ".RollbackAttachmentName", param.rollbackAttachmentName);
|
||||
setParameter(std::string("Param") + ".AttachmentName", param.attachmentName);
|
||||
setParameter(std::string("Param") + ".ImportMode", param.importMode);
|
||||
setParameter(std::string("Param") + ".RollbackSQL", param.rollbackSQL);
|
||||
setParameter(std::string("Param") + ".RollbackSqlType", param.rollbackSqlType);
|
||||
for(int dep1 = 0; dep1 != param.dbItemList.size(); dep1++) {
|
||||
setParameter(std::string("Param") + ".DbItemList." + std::to_string(dep1 + 1) + ".DbId", std::to_string(param.dbItemList[dep1].dbId));
|
||||
setParameter(std::string("Param") + ".DbItemList." + std::to_string(dep1 + 1) + ".Logic", param.dbItemList[dep1].logic ? "true" : "false");
|
||||
}
|
||||
setParameter(std::string("Param") + ".InsertType", param.insertType);
|
||||
setParameter(std::string("Param") + ".TableName", param.tableName);
|
||||
setParameter(std::string("Param") + ".IgnoreError", param.ignoreError ? "true" : "false");
|
||||
}
|
||||
|
||||
void CreateDataImportOrderRequest::setComment(const std::string& comment)
|
||||
{
|
||||
comment_ = comment;
|
||||
setParameter("Comment", comment);
|
||||
std::string CreateDataImportOrderRequest::getComment() const {
|
||||
return comment_;
|
||||
}
|
||||
|
||||
Array CreateDataImportOrderRequest::getRelatedUserList()const
|
||||
{
|
||||
return relatedUserList_;
|
||||
void CreateDataImportOrderRequest::setComment(const std::string &comment) {
|
||||
comment_ = comment;
|
||||
setParameter(std::string("Comment"), comment);
|
||||
}
|
||||
|
||||
void CreateDataImportOrderRequest::setRelatedUserList(const Array& relatedUserList)
|
||||
{
|
||||
relatedUserList_ = relatedUserList;
|
||||
for(int dep1 = 0; dep1!= relatedUserList.size(); dep1++) {
|
||||
auto relatedUserListObj = relatedUserList.at(dep1);
|
||||
std::string relatedUserListObjStr = "RelatedUserList." + std::to_string(dep1 + 1);
|
||||
setParameter(relatedUserListObjStr + ".RelatedUserList", std::to_string(relatedUserListObj.relatedUserList));
|
||||
}
|
||||
std::vector<CreateDataImportOrderRequest::long> CreateDataImportOrderRequest::getRelatedUserList() const {
|
||||
return relatedUserList_;
|
||||
}
|
||||
|
||||
void CreateDataImportOrderRequest::setRelatedUserList(const std::vector<CreateDataImportOrderRequest::long> &relatedUserList) {
|
||||
relatedUserList_ = relatedUserList;
|
||||
for(int dep1 = 0; dep1 != relatedUserList.size(); dep1++) {
|
||||
setParameter(std::string("RelatedUserList") + "." + std::to_string(dep1 + 1), std::to_string(relatedUserList[dep1]));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -42,12 +42,12 @@ void CreateDataImportOrderResult::parse(const std::string &payload)
|
||||
auto allCreateOrderResult = value["CreateOrderResult"]["OrderIds"];
|
||||
for (const auto &item : allCreateOrderResult)
|
||||
createOrderResult_.push_back(item.asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,108 +1,84 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/CreateFreeLockCorrectOrderRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::CreateFreeLockCorrectOrderRequest;
|
||||
|
||||
CreateFreeLockCorrectOrderRequest::CreateFreeLockCorrectOrderRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateFreeLockCorrectOrder")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateFreeLockCorrectOrderRequest::~CreateFreeLockCorrectOrderRequest()
|
||||
{}
|
||||
|
||||
long CreateFreeLockCorrectOrderRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/CreateFreeLockCorrectOrderRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::CreateFreeLockCorrectOrderRequest;
|
||||
|
||||
CreateFreeLockCorrectOrderRequest::CreateFreeLockCorrectOrderRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateFreeLockCorrectOrder") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateFreeLockCorrectOrderRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
CreateFreeLockCorrectOrderRequest::~CreateFreeLockCorrectOrderRequest() {}
|
||||
|
||||
long CreateFreeLockCorrectOrderRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
std::string CreateFreeLockCorrectOrderRequest::getAttachmentKey()const
|
||||
{
|
||||
return attachmentKey_;
|
||||
void CreateFreeLockCorrectOrderRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
void CreateFreeLockCorrectOrderRequest::setAttachmentKey(const std::string& attachmentKey)
|
||||
{
|
||||
attachmentKey_ = attachmentKey;
|
||||
setParameter("AttachmentKey", attachmentKey);
|
||||
std::string CreateFreeLockCorrectOrderRequest::getAttachmentKey() const {
|
||||
return attachmentKey_;
|
||||
}
|
||||
|
||||
Struct CreateFreeLockCorrectOrderRequest::getParam()const
|
||||
{
|
||||
return param_;
|
||||
void CreateFreeLockCorrectOrderRequest::setAttachmentKey(const std::string &attachmentKey) {
|
||||
attachmentKey_ = attachmentKey;
|
||||
setParameter(std::string("AttachmentKey"), attachmentKey);
|
||||
}
|
||||
|
||||
void CreateFreeLockCorrectOrderRequest::setParam(const Struct& param)
|
||||
{
|
||||
param_ = param;
|
||||
for(int dep1 = 0; dep1!= param.size(); dep1++) {
|
||||
auto paramObj = param.at(dep1);
|
||||
std::string paramObjStr = "Param." + std::to_string(dep1 + 1);
|
||||
setParameter(paramObjStr + ".SqlType", paramObj.sqlType);
|
||||
setParameter(paramObjStr + ".Classify", paramObj.classify);
|
||||
setParameter(paramObjStr + ".RollbackSQL", paramObj.rollbackSQL);
|
||||
setParameter(paramObjStr + ".RollbackSqlType", paramObj.rollbackSqlType);
|
||||
for(int dep2 = 0; dep2!= paramObj.dbItemList.size(); dep2++) {
|
||||
auto dbItemListObj = paramObj.dbItemList.at(dep2);
|
||||
std::string dbItemListObjStr = paramObjStr + "DbItemList." + std::to_string(dep2 + 1);
|
||||
for(int dep3 = 0; dep3!= dbItemListObj.dbItemListItem.size(); dep3++) {
|
||||
auto dbItemListItemObj = dbItemListObj.dbItemListItem.at(dep3);
|
||||
std::string dbItemListItemObjStr = dbItemListObjStr + "DbItemListItem." + std::to_string(dep3 + 1);
|
||||
setParameter(dbItemListItemObjStr + ".DbId", std::to_string(dbItemListItemObj.dbId));
|
||||
setParameter(dbItemListItemObjStr + ".Logic", dbItemListItemObj.logic ? "true" : "false");
|
||||
}
|
||||
}
|
||||
setParameter(paramObjStr + ".ExecSQL", paramObj.execSQL);
|
||||
setParameter(paramObjStr + ".RollbackAttachmentName", paramObj.rollbackAttachmentName);
|
||||
setParameter(paramObjStr + ".AttachmentName", paramObj.attachmentName);
|
||||
}
|
||||
CreateFreeLockCorrectOrderRequest::Param CreateFreeLockCorrectOrderRequest::getParam() const {
|
||||
return param_;
|
||||
}
|
||||
|
||||
std::string CreateFreeLockCorrectOrderRequest::getComment()const
|
||||
{
|
||||
return comment_;
|
||||
void CreateFreeLockCorrectOrderRequest::setParam(const CreateFreeLockCorrectOrderRequest::Param ¶m) {
|
||||
param_ = param;
|
||||
setParameter(std::string("Param") + ".SqlType", param.sqlType);
|
||||
setParameter(std::string("Param") + ".Classify", param.classify);
|
||||
setParameter(std::string("Param") + ".RollbackSQL", param.rollbackSQL);
|
||||
setParameter(std::string("Param") + ".RollbackSqlType", param.rollbackSqlType);
|
||||
for(int dep1 = 0; dep1 != param.dbItemList.size(); dep1++) {
|
||||
setParameter(std::string("Param") + ".DbItemList." + std::to_string(dep1 + 1) + ".DbId", std::to_string(param.dbItemList[dep1].dbId));
|
||||
setParameter(std::string("Param") + ".DbItemList." + std::to_string(dep1 + 1) + ".Logic", param.dbItemList[dep1].logic ? "true" : "false");
|
||||
}
|
||||
setParameter(std::string("Param") + ".ExecSQL", param.execSQL);
|
||||
setParameter(std::string("Param") + ".RollbackAttachmentName", param.rollbackAttachmentName);
|
||||
setParameter(std::string("Param") + ".AttachmentName", param.attachmentName);
|
||||
}
|
||||
|
||||
void CreateFreeLockCorrectOrderRequest::setComment(const std::string& comment)
|
||||
{
|
||||
comment_ = comment;
|
||||
setParameter("Comment", comment);
|
||||
std::string CreateFreeLockCorrectOrderRequest::getComment() const {
|
||||
return comment_;
|
||||
}
|
||||
|
||||
Array CreateFreeLockCorrectOrderRequest::getRelatedUserList()const
|
||||
{
|
||||
return relatedUserList_;
|
||||
void CreateFreeLockCorrectOrderRequest::setComment(const std::string &comment) {
|
||||
comment_ = comment;
|
||||
setParameter(std::string("Comment"), comment);
|
||||
}
|
||||
|
||||
void CreateFreeLockCorrectOrderRequest::setRelatedUserList(const Array& relatedUserList)
|
||||
{
|
||||
relatedUserList_ = relatedUserList;
|
||||
for(int dep1 = 0; dep1!= relatedUserList.size(); dep1++) {
|
||||
auto relatedUserListObj = relatedUserList.at(dep1);
|
||||
std::string relatedUserListObjStr = "RelatedUserList." + std::to_string(dep1 + 1);
|
||||
setParameter(relatedUserListObjStr + ".RelatedUserList", std::to_string(relatedUserListObj.relatedUserList));
|
||||
}
|
||||
std::vector<CreateFreeLockCorrectOrderRequest::long> CreateFreeLockCorrectOrderRequest::getRelatedUserList() const {
|
||||
return relatedUserList_;
|
||||
}
|
||||
|
||||
void CreateFreeLockCorrectOrderRequest::setRelatedUserList(const std::vector<CreateFreeLockCorrectOrderRequest::long> &relatedUserList) {
|
||||
relatedUserList_ = relatedUserList;
|
||||
for(int dep1 = 0; dep1 != relatedUserList.size(); dep1++) {
|
||||
setParameter(std::string("RelatedUserList") + "." + std::to_string(dep1 + 1), std::to_string(relatedUserList[dep1]));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -42,12 +42,12 @@ void CreateFreeLockCorrectOrderResult::parse(const std::string &payload)
|
||||
auto allCreateOrderResult = value["CreateOrderResult"]["OrderIds"];
|
||||
for (const auto &item : allCreateOrderResult)
|
||||
createOrderResult_.push_back(item.asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,95 +1,81 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/CreateOrderRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::CreateOrderRequest;
|
||||
|
||||
CreateOrderRequest::CreateOrderRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateOrder")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateOrderRequest::~CreateOrderRequest()
|
||||
{}
|
||||
|
||||
long CreateOrderRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/CreateOrderRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::CreateOrderRequest;
|
||||
|
||||
CreateOrderRequest::CreateOrderRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateOrder") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateOrderRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
CreateOrderRequest::~CreateOrderRequest() {}
|
||||
|
||||
long CreateOrderRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
std::string CreateOrderRequest::getPluginType()const
|
||||
{
|
||||
return pluginType_;
|
||||
void CreateOrderRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
void CreateOrderRequest::setPluginType(const std::string& pluginType)
|
||||
{
|
||||
pluginType_ = pluginType;
|
||||
setParameter("PluginType", pluginType);
|
||||
std::string CreateOrderRequest::getPluginType() const {
|
||||
return pluginType_;
|
||||
}
|
||||
|
||||
std::string CreateOrderRequest::getAttachmentKey()const
|
||||
{
|
||||
return attachmentKey_;
|
||||
void CreateOrderRequest::setPluginType(const std::string &pluginType) {
|
||||
pluginType_ = pluginType;
|
||||
setParameter(std::string("PluginType"), pluginType);
|
||||
}
|
||||
|
||||
void CreateOrderRequest::setAttachmentKey(const std::string& attachmentKey)
|
||||
{
|
||||
attachmentKey_ = attachmentKey;
|
||||
setParameter("AttachmentKey", attachmentKey);
|
||||
std::string CreateOrderRequest::getAttachmentKey() const {
|
||||
return attachmentKey_;
|
||||
}
|
||||
|
||||
std::string CreateOrderRequest::getComment()const
|
||||
{
|
||||
return comment_;
|
||||
void CreateOrderRequest::setAttachmentKey(const std::string &attachmentKey) {
|
||||
attachmentKey_ = attachmentKey;
|
||||
setParameter(std::string("AttachmentKey"), attachmentKey);
|
||||
}
|
||||
|
||||
void CreateOrderRequest::setComment(const std::string& comment)
|
||||
{
|
||||
comment_ = comment;
|
||||
setParameter("Comment", comment);
|
||||
std::string CreateOrderRequest::getComment() const {
|
||||
return comment_;
|
||||
}
|
||||
|
||||
std::map<std::string, std::string> CreateOrderRequest::getPluginParam()const
|
||||
{
|
||||
return pluginParam_;
|
||||
void CreateOrderRequest::setComment(const std::string &comment) {
|
||||
comment_ = comment;
|
||||
setParameter(std::string("Comment"), comment);
|
||||
}
|
||||
|
||||
void CreateOrderRequest::setPluginParam(const std::map<std::string, std::string>& pluginParam)
|
||||
{
|
||||
pluginParam_ = pluginParam;
|
||||
setJsonParameters("PluginParam", pluginParam);
|
||||
std::map<std::string, std::string> CreateOrderRequest::getPluginParam() const {
|
||||
return pluginParam_;
|
||||
}
|
||||
|
||||
std::string CreateOrderRequest::getRelatedUserList()const
|
||||
{
|
||||
return relatedUserList_;
|
||||
void CreateOrderRequest::setPluginParam(std::map<std::string, std::string> pluginParam) {
|
||||
pluginParam_ = pluginParam;
|
||||
setBodyParameter(std::string("PluginParam"), pluginParam);
|
||||
}
|
||||
|
||||
void CreateOrderRequest::setRelatedUserList(const std::string& relatedUserList)
|
||||
{
|
||||
relatedUserList_ = relatedUserList;
|
||||
setParameter("RelatedUserList", relatedUserList);
|
||||
std::string CreateOrderRequest::getRelatedUserList() const {
|
||||
return relatedUserList_;
|
||||
}
|
||||
|
||||
void CreateOrderRequest::setRelatedUserList(const std::string &relatedUserList) {
|
||||
relatedUserList_ = relatedUserList;
|
||||
setParameter(std::string("RelatedUserList"), relatedUserList);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,95 +1,81 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/CreatePublishGroupTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::CreatePublishGroupTaskRequest;
|
||||
|
||||
CreatePublishGroupTaskRequest::CreatePublishGroupTaskRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "CreatePublishGroupTask")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreatePublishGroupTaskRequest::~CreatePublishGroupTaskRequest()
|
||||
{}
|
||||
|
||||
long CreatePublishGroupTaskRequest::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/CreatePublishGroupTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::CreatePublishGroupTaskRequest;
|
||||
|
||||
CreatePublishGroupTaskRequest::CreatePublishGroupTaskRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "CreatePublishGroupTask") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreatePublishGroupTaskRequest::setOrderId(long orderId)
|
||||
{
|
||||
orderId_ = orderId;
|
||||
setParameter("OrderId", std::to_string(orderId));
|
||||
CreatePublishGroupTaskRequest::~CreatePublishGroupTaskRequest() {}
|
||||
|
||||
long CreatePublishGroupTaskRequest::getOrderId() const {
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
long CreatePublishGroupTaskRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
void CreatePublishGroupTaskRequest::setOrderId(long orderId) {
|
||||
orderId_ = orderId;
|
||||
setParameter(std::string("OrderId"), std::to_string(orderId));
|
||||
}
|
||||
|
||||
void CreatePublishGroupTaskRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
long CreatePublishGroupTaskRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
int CreatePublishGroupTaskRequest::getDbId()const
|
||||
{
|
||||
return dbId_;
|
||||
void CreatePublishGroupTaskRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
void CreatePublishGroupTaskRequest::setDbId(int dbId)
|
||||
{
|
||||
dbId_ = dbId;
|
||||
setParameter("DbId", std::to_string(dbId));
|
||||
int CreatePublishGroupTaskRequest::getDbId() const {
|
||||
return dbId_;
|
||||
}
|
||||
|
||||
std::string CreatePublishGroupTaskRequest::getPlanTime()const
|
||||
{
|
||||
return planTime_;
|
||||
void CreatePublishGroupTaskRequest::setDbId(int dbId) {
|
||||
dbId_ = dbId;
|
||||
setParameter(std::string("DbId"), std::to_string(dbId));
|
||||
}
|
||||
|
||||
void CreatePublishGroupTaskRequest::setPlanTime(const std::string& planTime)
|
||||
{
|
||||
planTime_ = planTime;
|
||||
setParameter("PlanTime", planTime);
|
||||
std::string CreatePublishGroupTaskRequest::getPlanTime() const {
|
||||
return planTime_;
|
||||
}
|
||||
|
||||
bool CreatePublishGroupTaskRequest::getLogic()const
|
||||
{
|
||||
return logic_;
|
||||
void CreatePublishGroupTaskRequest::setPlanTime(const std::string &planTime) {
|
||||
planTime_ = planTime;
|
||||
setParameter(std::string("PlanTime"), planTime);
|
||||
}
|
||||
|
||||
void CreatePublishGroupTaskRequest::setLogic(bool logic)
|
||||
{
|
||||
logic_ = logic;
|
||||
setParameter("Logic", logic ? "true" : "false");
|
||||
bool CreatePublishGroupTaskRequest::getLogic() const {
|
||||
return logic_;
|
||||
}
|
||||
|
||||
std::string CreatePublishGroupTaskRequest::getPublishStrategy()const
|
||||
{
|
||||
return publishStrategy_;
|
||||
void CreatePublishGroupTaskRequest::setLogic(bool logic) {
|
||||
logic_ = logic;
|
||||
setParameter(std::string("Logic"), logic ? "true" : "false");
|
||||
}
|
||||
|
||||
void CreatePublishGroupTaskRequest::setPublishStrategy(const std::string& publishStrategy)
|
||||
{
|
||||
publishStrategy_ = publishStrategy;
|
||||
setParameter("PublishStrategy", publishStrategy);
|
||||
std::string CreatePublishGroupTaskRequest::getPublishStrategy() const {
|
||||
return publishStrategy_;
|
||||
}
|
||||
|
||||
void CreatePublishGroupTaskRequest::setPublishStrategy(const std::string &publishStrategy) {
|
||||
publishStrategy_ = publishStrategy;
|
||||
setParameter(std::string("PublishStrategy"), publishStrategy);
|
||||
}
|
||||
|
||||
|
||||
69
dms-enterprise/src/model/CreateSQLReviewOrderRequest.cc
Normal file
69
dms-enterprise/src/model/CreateSQLReviewOrderRequest.cc
Normal file
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/CreateSQLReviewOrderRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::CreateSQLReviewOrderRequest;
|
||||
|
||||
CreateSQLReviewOrderRequest::CreateSQLReviewOrderRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateSQLReviewOrder") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateSQLReviewOrderRequest::~CreateSQLReviewOrderRequest() {}
|
||||
|
||||
long CreateSQLReviewOrderRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void CreateSQLReviewOrderRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
CreateSQLReviewOrderRequest::Param CreateSQLReviewOrderRequest::getParam() const {
|
||||
return param_;
|
||||
}
|
||||
|
||||
void CreateSQLReviewOrderRequest::setParam(const CreateSQLReviewOrderRequest::Param ¶m) {
|
||||
param_ = param;
|
||||
for(int dep1 = 0; dep1 != param.attachmentKeyList.size(); dep1++) {
|
||||
setParameter(std::string("Param") + ".AttachmentKeyList." + std::to_string(dep1 + 1), param.attachmentKeyList[dep1]);
|
||||
}
|
||||
setParameter(std::string("Param") + ".ProjectName", param.projectName);
|
||||
setParameter(std::string("Param") + ".DbId", std::to_string(param.dbId));
|
||||
}
|
||||
|
||||
std::string CreateSQLReviewOrderRequest::getComment() const {
|
||||
return comment_;
|
||||
}
|
||||
|
||||
void CreateSQLReviewOrderRequest::setComment(const std::string &comment) {
|
||||
comment_ = comment;
|
||||
setParameter(std::string("Comment"), comment);
|
||||
}
|
||||
|
||||
std::vector<CreateSQLReviewOrderRequest::long> CreateSQLReviewOrderRequest::getRelatedUserList() const {
|
||||
return relatedUserList_;
|
||||
}
|
||||
|
||||
void CreateSQLReviewOrderRequest::setRelatedUserList(const std::vector<CreateSQLReviewOrderRequest::long> &relatedUserList) {
|
||||
relatedUserList_ = relatedUserList;
|
||||
for(int dep1 = 0; dep1 != relatedUserList.size(); dep1++) {
|
||||
setParameter(std::string("RelatedUserList") + "." + std::to_string(dep1 + 1), std::to_string(relatedUserList[dep1]));
|
||||
}
|
||||
}
|
||||
|
||||
73
dms-enterprise/src/model/CreateSQLReviewOrderResult.cc
Normal file
73
dms-enterprise/src/model/CreateSQLReviewOrderResult.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/CreateSQLReviewOrderResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dms_enterprise;
|
||||
using namespace AlibabaCloud::Dms_enterprise::Model;
|
||||
|
||||
CreateSQLReviewOrderResult::CreateSQLReviewOrderResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateSQLReviewOrderResult::CreateSQLReviewOrderResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateSQLReviewOrderResult::~CreateSQLReviewOrderResult()
|
||||
{}
|
||||
|
||||
void CreateSQLReviewOrderResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allCreateOrderResult = value["CreateOrderResult"]["OrderIds"];
|
||||
for (const auto &item : allCreateOrderResult)
|
||||
createOrderResult_.push_back(item.asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateSQLReviewOrderResult::getCreateOrderResult()const
|
||||
{
|
||||
return createOrderResult_;
|
||||
}
|
||||
|
||||
std::string CreateSQLReviewOrderResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
std::string CreateSQLReviewOrderResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool CreateSQLReviewOrderResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,119 +1,87 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/CreateStructSyncOrderRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::CreateStructSyncOrderRequest;
|
||||
|
||||
CreateStructSyncOrderRequest::CreateStructSyncOrderRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateStructSyncOrder")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateStructSyncOrderRequest::~CreateStructSyncOrderRequest()
|
||||
{}
|
||||
|
||||
long CreateStructSyncOrderRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/CreateStructSyncOrderRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::CreateStructSyncOrderRequest;
|
||||
|
||||
CreateStructSyncOrderRequest::CreateStructSyncOrderRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateStructSyncOrder") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateStructSyncOrderRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
CreateStructSyncOrderRequest::~CreateStructSyncOrderRequest() {}
|
||||
|
||||
long CreateStructSyncOrderRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
std::string CreateStructSyncOrderRequest::getAttachmentKey()const
|
||||
{
|
||||
return attachmentKey_;
|
||||
void CreateStructSyncOrderRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
void CreateStructSyncOrderRequest::setAttachmentKey(const std::string& attachmentKey)
|
||||
{
|
||||
attachmentKey_ = attachmentKey;
|
||||
setParameter("AttachmentKey", attachmentKey);
|
||||
std::string CreateStructSyncOrderRequest::getAttachmentKey() const {
|
||||
return attachmentKey_;
|
||||
}
|
||||
|
||||
Struct CreateStructSyncOrderRequest::getParam()const
|
||||
{
|
||||
return param_;
|
||||
void CreateStructSyncOrderRequest::setAttachmentKey(const std::string &attachmentKey) {
|
||||
attachmentKey_ = attachmentKey;
|
||||
setParameter(std::string("AttachmentKey"), attachmentKey);
|
||||
}
|
||||
|
||||
void CreateStructSyncOrderRequest::setParam(const Struct& param)
|
||||
{
|
||||
param_ = param;
|
||||
for(int dep1 = 0; dep1!= param.size(); dep1++) {
|
||||
auto paramObj = param.at(dep1);
|
||||
std::string paramObjStr = "Param." + std::to_string(dep1 + 1);
|
||||
setParameter(paramObjStr + ".SyncType", paramObj.syncType);
|
||||
for(int dep2 = 0; dep2!= paramObj.tableInfoList.size(); dep2++) {
|
||||
auto tableInfoListObj = paramObj.tableInfoList.at(dep2);
|
||||
std::string tableInfoListObjStr = paramObjStr + "TableInfoList." + std::to_string(dep2 + 1);
|
||||
for(int dep3 = 0; dep3!= tableInfoListObj.tableInfoListItem.size(); dep3++) {
|
||||
auto tableInfoListItemObj = tableInfoListObj.tableInfoListItem.at(dep3);
|
||||
std::string tableInfoListItemObjStr = tableInfoListObjStr + "TableInfoListItem." + std::to_string(dep3 + 1);
|
||||
setParameter(tableInfoListItemObjStr + ".SourceTableName", tableInfoListItemObj.sourceTableName);
|
||||
setParameter(tableInfoListItemObjStr + ".TargetTableName", tableInfoListItemObj.targetTableName);
|
||||
}
|
||||
}
|
||||
for(int dep2 = 0; dep2!= paramObj.source.size(); dep2++) {
|
||||
auto sourceObj = paramObj.source.at(dep2);
|
||||
std::string sourceObjStr = paramObjStr + "Source." + std::to_string(dep2 + 1);
|
||||
setParameter(sourceObjStr + ".DbSearchName", sourceObj.dbSearchName);
|
||||
setParameter(sourceObjStr + ".VersionId", sourceObj.versionId);
|
||||
setParameter(sourceObjStr + ".DbId", std::to_string(sourceObj.dbId));
|
||||
setParameter(sourceObjStr + ".Logic", sourceObj.logic ? "true" : "false");
|
||||
}
|
||||
setParameter(paramObjStr + ".IgnoreError", paramObj.ignoreError ? "true" : "false");
|
||||
for(int dep2 = 0; dep2!= paramObj.target.size(); dep2++) {
|
||||
auto targetObj = paramObj.target.at(dep2);
|
||||
std::string targetObjStr = paramObjStr + "Target." + std::to_string(dep2 + 1);
|
||||
setParameter(targetObjStr + ".DbSearchName", targetObj.dbSearchName);
|
||||
setParameter(targetObjStr + ".VersionId", targetObj.versionId);
|
||||
setParameter(targetObjStr + ".DbId", std::to_string(targetObj.dbId));
|
||||
setParameter(targetObjStr + ".Logic", targetObj.logic ? "true" : "false");
|
||||
}
|
||||
}
|
||||
CreateStructSyncOrderRequest::Param CreateStructSyncOrderRequest::getParam() const {
|
||||
return param_;
|
||||
}
|
||||
|
||||
std::string CreateStructSyncOrderRequest::getComment()const
|
||||
{
|
||||
return comment_;
|
||||
void CreateStructSyncOrderRequest::setParam(const CreateStructSyncOrderRequest::Param ¶m) {
|
||||
param_ = param;
|
||||
setParameter(std::string("Param") + ".SyncType", param.syncType);
|
||||
for(int dep1 = 0; dep1 != param.tableInfoList.size(); dep1++) {
|
||||
setParameter(std::string("Param") + ".TableInfoList." + std::to_string(dep1 + 1) + ".SourceTableName", param.tableInfoList[dep1].sourceTableName);
|
||||
setParameter(std::string("Param") + ".TableInfoList." + std::to_string(dep1 + 1) + ".TargetTableName", param.tableInfoList[dep1].targetTableName);
|
||||
}
|
||||
setParameter(std::string("Param") + ".Source.DbSearchName", param.source.dbSearchName);
|
||||
setParameter(std::string("Param") + ".Source.VersionId", param.source.versionId);
|
||||
setParameter(std::string("Param") + ".Source.DbId", std::to_string(param.source.dbId));
|
||||
setParameter(std::string("Param") + ".Source.Logic", param.source.logic ? "true" : "false");
|
||||
setParameter(std::string("Param") + ".IgnoreError", param.ignoreError ? "true" : "false");
|
||||
setParameter(std::string("Param") + ".Target.DbSearchName", param.target.dbSearchName);
|
||||
setParameter(std::string("Param") + ".Target.VersionId", param.target.versionId);
|
||||
setParameter(std::string("Param") + ".Target.DbId", std::to_string(param.target.dbId));
|
||||
setParameter(std::string("Param") + ".Target.Logic", param.target.logic ? "true" : "false");
|
||||
}
|
||||
|
||||
void CreateStructSyncOrderRequest::setComment(const std::string& comment)
|
||||
{
|
||||
comment_ = comment;
|
||||
setParameter("Comment", comment);
|
||||
std::string CreateStructSyncOrderRequest::getComment() const {
|
||||
return comment_;
|
||||
}
|
||||
|
||||
Array CreateStructSyncOrderRequest::getRelatedUserList()const
|
||||
{
|
||||
return relatedUserList_;
|
||||
void CreateStructSyncOrderRequest::setComment(const std::string &comment) {
|
||||
comment_ = comment;
|
||||
setParameter(std::string("Comment"), comment);
|
||||
}
|
||||
|
||||
void CreateStructSyncOrderRequest::setRelatedUserList(const Array& relatedUserList)
|
||||
{
|
||||
relatedUserList_ = relatedUserList;
|
||||
for(int dep1 = 0; dep1!= relatedUserList.size(); dep1++) {
|
||||
auto relatedUserListObj = relatedUserList.at(dep1);
|
||||
std::string relatedUserListObjStr = "RelatedUserList." + std::to_string(dep1 + 1);
|
||||
setParameter(relatedUserListObjStr + ".RelatedUserList", std::to_string(relatedUserListObj.relatedUserList));
|
||||
}
|
||||
std::vector<CreateStructSyncOrderRequest::long> CreateStructSyncOrderRequest::getRelatedUserList() const {
|
||||
return relatedUserList_;
|
||||
}
|
||||
|
||||
void CreateStructSyncOrderRequest::setRelatedUserList(const std::vector<CreateStructSyncOrderRequest::long> &relatedUserList) {
|
||||
relatedUserList_ = relatedUserList;
|
||||
for(int dep1 = 0; dep1 != relatedUserList.size(); dep1++) {
|
||||
setParameter(std::string("RelatedUserList") + "." + std::to_string(dep1 + 1), std::to_string(relatedUserList[dep1]));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -42,12 +42,12 @@ void CreateStructSyncOrderResult::parse(const std::string &payload)
|
||||
auto allCreateOrderResult = value["CreateOrderResult"]["OrderIds"];
|
||||
for (const auto &item : allCreateOrderResult)
|
||||
createOrderResult_.push_back(item.asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,84 +1,72 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/CreateUploadFileJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::CreateUploadFileJobRequest;
|
||||
|
||||
CreateUploadFileJobRequest::CreateUploadFileJobRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateUploadFileJob")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateUploadFileJobRequest::~CreateUploadFileJobRequest()
|
||||
{}
|
||||
|
||||
std::string CreateUploadFileJobRequest::getUploadType()const
|
||||
{
|
||||
return uploadType_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/CreateUploadFileJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::CreateUploadFileJobRequest;
|
||||
|
||||
CreateUploadFileJobRequest::CreateUploadFileJobRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateUploadFileJob") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateUploadFileJobRequest::setUploadType(const std::string& uploadType)
|
||||
{
|
||||
uploadType_ = uploadType;
|
||||
setParameter("UploadType", uploadType);
|
||||
CreateUploadFileJobRequest::~CreateUploadFileJobRequest() {}
|
||||
|
||||
std::string CreateUploadFileJobRequest::getUploadType() const {
|
||||
return uploadType_;
|
||||
}
|
||||
|
||||
std::string CreateUploadFileJobRequest::getFileSource()const
|
||||
{
|
||||
return fileSource_;
|
||||
void CreateUploadFileJobRequest::setUploadType(const std::string &uploadType) {
|
||||
uploadType_ = uploadType;
|
||||
setParameter(std::string("UploadType"), uploadType);
|
||||
}
|
||||
|
||||
void CreateUploadFileJobRequest::setFileSource(const std::string& fileSource)
|
||||
{
|
||||
fileSource_ = fileSource;
|
||||
setParameter("FileSource", fileSource);
|
||||
std::string CreateUploadFileJobRequest::getFileSource() const {
|
||||
return fileSource_;
|
||||
}
|
||||
|
||||
long CreateUploadFileJobRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
void CreateUploadFileJobRequest::setFileSource(const std::string &fileSource) {
|
||||
fileSource_ = fileSource;
|
||||
setParameter(std::string("FileSource"), fileSource);
|
||||
}
|
||||
|
||||
void CreateUploadFileJobRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
long CreateUploadFileJobRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
std::string CreateUploadFileJobRequest::getFileName()const
|
||||
{
|
||||
return fileName_;
|
||||
void CreateUploadFileJobRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
void CreateUploadFileJobRequest::setFileName(const std::string& fileName)
|
||||
{
|
||||
fileName_ = fileName;
|
||||
setParameter("FileName", fileName);
|
||||
std::string CreateUploadFileJobRequest::getFileName() const {
|
||||
return fileName_;
|
||||
}
|
||||
|
||||
std::string CreateUploadFileJobRequest::getUploadURL()const
|
||||
{
|
||||
return uploadURL_;
|
||||
void CreateUploadFileJobRequest::setFileName(const std::string &fileName) {
|
||||
fileName_ = fileName;
|
||||
setParameter(std::string("FileName"), fileName);
|
||||
}
|
||||
|
||||
void CreateUploadFileJobRequest::setUploadURL(const std::string& uploadURL)
|
||||
{
|
||||
uploadURL_ = uploadURL;
|
||||
setParameter("UploadURL", uploadURL);
|
||||
std::string CreateUploadFileJobRequest::getUploadURL() const {
|
||||
return uploadURL_;
|
||||
}
|
||||
|
||||
void CreateUploadFileJobRequest::setUploadURL(const std::string &uploadURL) {
|
||||
uploadURL_ = uploadURL;
|
||||
setParameter(std::string("UploadURL"), uploadURL);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void CreateUploadFileJobResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["JobKey"].isNull())
|
||||
jobKey_ = value["JobKey"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["JobKey"].isNull())
|
||||
jobKey_ = value["JobKey"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,90 +1,74 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/CreateUploadOSSFileJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::CreateUploadOSSFileJobRequest;
|
||||
|
||||
CreateUploadOSSFileJobRequest::CreateUploadOSSFileJobRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateUploadOSSFileJob")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateUploadOSSFileJobRequest::~CreateUploadOSSFileJobRequest()
|
||||
{}
|
||||
|
||||
std::string CreateUploadOSSFileJobRequest::getUploadType()const
|
||||
{
|
||||
return uploadType_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/CreateUploadOSSFileJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::CreateUploadOSSFileJobRequest;
|
||||
|
||||
CreateUploadOSSFileJobRequest::CreateUploadOSSFileJobRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateUploadOSSFileJob") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void CreateUploadOSSFileJobRequest::setUploadType(const std::string& uploadType)
|
||||
{
|
||||
uploadType_ = uploadType;
|
||||
setParameter("UploadType", uploadType);
|
||||
CreateUploadOSSFileJobRequest::~CreateUploadOSSFileJobRequest() {}
|
||||
|
||||
std::string CreateUploadOSSFileJobRequest::getUploadType() const {
|
||||
return uploadType_;
|
||||
}
|
||||
|
||||
std::string CreateUploadOSSFileJobRequest::getFileSource()const
|
||||
{
|
||||
return fileSource_;
|
||||
void CreateUploadOSSFileJobRequest::setUploadType(const std::string &uploadType) {
|
||||
uploadType_ = uploadType;
|
||||
setParameter(std::string("UploadType"), uploadType);
|
||||
}
|
||||
|
||||
void CreateUploadOSSFileJobRequest::setFileSource(const std::string& fileSource)
|
||||
{
|
||||
fileSource_ = fileSource;
|
||||
setParameter("FileSource", fileSource);
|
||||
std::string CreateUploadOSSFileJobRequest::getFileSource() const {
|
||||
return fileSource_;
|
||||
}
|
||||
|
||||
long CreateUploadOSSFileJobRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
void CreateUploadOSSFileJobRequest::setFileSource(const std::string &fileSource) {
|
||||
fileSource_ = fileSource;
|
||||
setParameter(std::string("FileSource"), fileSource);
|
||||
}
|
||||
|
||||
void CreateUploadOSSFileJobRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
long CreateUploadOSSFileJobRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
std::string CreateUploadOSSFileJobRequest::getFileName()const
|
||||
{
|
||||
return fileName_;
|
||||
void CreateUploadOSSFileJobRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
void CreateUploadOSSFileJobRequest::setFileName(const std::string& fileName)
|
||||
{
|
||||
fileName_ = fileName;
|
||||
setParameter("FileName", fileName);
|
||||
std::string CreateUploadOSSFileJobRequest::getFileName() const {
|
||||
return fileName_;
|
||||
}
|
||||
|
||||
Struct CreateUploadOSSFileJobRequest::getUploadTarget()const
|
||||
{
|
||||
return uploadTarget_;
|
||||
void CreateUploadOSSFileJobRequest::setFileName(const std::string &fileName) {
|
||||
fileName_ = fileName;
|
||||
setParameter(std::string("FileName"), fileName);
|
||||
}
|
||||
|
||||
void CreateUploadOSSFileJobRequest::setUploadTarget(const Struct& uploadTarget)
|
||||
{
|
||||
uploadTarget_ = uploadTarget;
|
||||
for(int dep1 = 0; dep1!= uploadTarget.size(); dep1++) {
|
||||
auto uploadTargetObj = uploadTarget.at(dep1);
|
||||
std::string uploadTargetObjStr = "UploadTarget." + std::to_string(dep1 + 1);
|
||||
setParameter(uploadTargetObjStr + ".Endpoint", uploadTargetObj.endpoint);
|
||||
setParameter(uploadTargetObjStr + ".BucketName", uploadTargetObj.bucketName);
|
||||
setParameter(uploadTargetObjStr + ".ObjectName", uploadTargetObj.objectName);
|
||||
}
|
||||
CreateUploadOSSFileJobRequest::UploadTarget CreateUploadOSSFileJobRequest::getUploadTarget() const {
|
||||
return uploadTarget_;
|
||||
}
|
||||
|
||||
void CreateUploadOSSFileJobRequest::setUploadTarget(const CreateUploadOSSFileJobRequest::UploadTarget &uploadTarget) {
|
||||
uploadTarget_ = uploadTarget;
|
||||
setParameter(std::string("UploadTarget") + ".Endpoint", uploadTarget.endpoint);
|
||||
setParameter(std::string("UploadTarget") + ".BucketName", uploadTarget.bucketName);
|
||||
setParameter(std::string("UploadTarget") + ".ObjectName", uploadTarget.objectName);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void CreateUploadOSSFileJobResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["JobKey"].isNull())
|
||||
jobKey_ = value["JobKey"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["JobKey"].isNull())
|
||||
jobKey_ = value["JobKey"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +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/dms-enterprise/model/DeleteInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::DeleteInstanceRequest;
|
||||
|
||||
DeleteInstanceRequest::DeleteInstanceRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "DeleteInstance")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteInstanceRequest::~DeleteInstanceRequest()
|
||||
{}
|
||||
|
||||
long DeleteInstanceRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/DeleteInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::DeleteInstanceRequest;
|
||||
|
||||
DeleteInstanceRequest::DeleteInstanceRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "DeleteInstance") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteInstanceRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
DeleteInstanceRequest::~DeleteInstanceRequest() {}
|
||||
|
||||
long DeleteInstanceRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
std::string DeleteInstanceRequest::getSid()const
|
||||
{
|
||||
return sid_;
|
||||
void DeleteInstanceRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
void DeleteInstanceRequest::setSid(const std::string& sid)
|
||||
{
|
||||
sid_ = sid;
|
||||
setParameter("Sid", sid);
|
||||
std::string DeleteInstanceRequest::getSid() const {
|
||||
return sid_;
|
||||
}
|
||||
|
||||
int DeleteInstanceRequest::getPort()const
|
||||
{
|
||||
return port_;
|
||||
void DeleteInstanceRequest::setSid(const std::string &sid) {
|
||||
sid_ = sid;
|
||||
setParameter(std::string("Sid"), sid);
|
||||
}
|
||||
|
||||
void DeleteInstanceRequest::setPort(int port)
|
||||
{
|
||||
port_ = port;
|
||||
setParameter("Port", std::to_string(port));
|
||||
int DeleteInstanceRequest::getPort() const {
|
||||
return port_;
|
||||
}
|
||||
|
||||
std::string DeleteInstanceRequest::getHost()const
|
||||
{
|
||||
return host_;
|
||||
void DeleteInstanceRequest::setPort(int port) {
|
||||
port_ = port;
|
||||
setParameter(std::string("Port"), std::to_string(port));
|
||||
}
|
||||
|
||||
void DeleteInstanceRequest::setHost(const std::string& host)
|
||||
{
|
||||
host_ = host;
|
||||
setParameter("Host", host);
|
||||
std::string DeleteInstanceRequest::getHost() const {
|
||||
return host_;
|
||||
}
|
||||
|
||||
void DeleteInstanceRequest::setHost(const std::string &host) {
|
||||
host_ = host;
|
||||
setParameter(std::string("Host"), host);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/DeleteUserRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::DeleteUserRequest;
|
||||
|
||||
DeleteUserRequest::DeleteUserRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "DeleteUser")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteUserRequest::~DeleteUserRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteUserRequest::getUid()const
|
||||
{
|
||||
return uid_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/DeleteUserRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::DeleteUserRequest;
|
||||
|
||||
DeleteUserRequest::DeleteUserRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "DeleteUser") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DeleteUserRequest::setUid(const std::string& uid)
|
||||
{
|
||||
uid_ = uid;
|
||||
setParameter("Uid", uid);
|
||||
DeleteUserRequest::~DeleteUserRequest() {}
|
||||
|
||||
std::string DeleteUserRequest::getUid() const {
|
||||
return uid_;
|
||||
}
|
||||
|
||||
long DeleteUserRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
void DeleteUserRequest::setUid(const std::string &uid) {
|
||||
uid_ = uid;
|
||||
setParameter(std::string("Uid"), uid);
|
||||
}
|
||||
|
||||
void DeleteUserRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
long DeleteUserRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void DeleteUserRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/DisableUserRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::DisableUserRequest;
|
||||
|
||||
DisableUserRequest::DisableUserRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "DisableUser")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DisableUserRequest::~DisableUserRequest()
|
||||
{}
|
||||
|
||||
std::string DisableUserRequest::getUid()const
|
||||
{
|
||||
return uid_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/DisableUserRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::DisableUserRequest;
|
||||
|
||||
DisableUserRequest::DisableUserRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "DisableUser") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void DisableUserRequest::setUid(const std::string& uid)
|
||||
{
|
||||
uid_ = uid;
|
||||
setParameter("Uid", uid);
|
||||
DisableUserRequest::~DisableUserRequest() {}
|
||||
|
||||
std::string DisableUserRequest::getUid() const {
|
||||
return uid_;
|
||||
}
|
||||
|
||||
long DisableUserRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
void DisableUserRequest::setUid(const std::string &uid) {
|
||||
uid_ = uid;
|
||||
setParameter(std::string("Uid"), uid);
|
||||
}
|
||||
|
||||
void DisableUserRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
long DisableUserRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void DisableUserRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/EnableUserRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::EnableUserRequest;
|
||||
|
||||
EnableUserRequest::EnableUserRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "EnableUser")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
EnableUserRequest::~EnableUserRequest()
|
||||
{}
|
||||
|
||||
std::string EnableUserRequest::getUid()const
|
||||
{
|
||||
return uid_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/EnableUserRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::EnableUserRequest;
|
||||
|
||||
EnableUserRequest::EnableUserRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "EnableUser") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void EnableUserRequest::setUid(const std::string& uid)
|
||||
{
|
||||
uid_ = uid;
|
||||
setParameter("Uid", uid);
|
||||
EnableUserRequest::~EnableUserRequest() {}
|
||||
|
||||
std::string EnableUserRequest::getUid() const {
|
||||
return uid_;
|
||||
}
|
||||
|
||||
long EnableUserRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
void EnableUserRequest::setUid(const std::string &uid) {
|
||||
uid_ = uid;
|
||||
setParameter(std::string("Uid"), uid);
|
||||
}
|
||||
|
||||
void EnableUserRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
long EnableUserRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void EnableUserRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +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/dms-enterprise/model/ExecuteDataCorrectRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::ExecuteDataCorrectRequest;
|
||||
|
||||
ExecuteDataCorrectRequest::ExecuteDataCorrectRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "ExecuteDataCorrect")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ExecuteDataCorrectRequest::~ExecuteDataCorrectRequest()
|
||||
{}
|
||||
|
||||
long ExecuteDataCorrectRequest::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/ExecuteDataCorrectRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::ExecuteDataCorrectRequest;
|
||||
|
||||
ExecuteDataCorrectRequest::ExecuteDataCorrectRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "ExecuteDataCorrect") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ExecuteDataCorrectRequest::setOrderId(long orderId)
|
||||
{
|
||||
orderId_ = orderId;
|
||||
setParameter("OrderId", std::to_string(orderId));
|
||||
ExecuteDataCorrectRequest::~ExecuteDataCorrectRequest() {}
|
||||
|
||||
long ExecuteDataCorrectRequest::getOrderId() const {
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
std::string ExecuteDataCorrectRequest::getActionName()const
|
||||
{
|
||||
return actionName_;
|
||||
void ExecuteDataCorrectRequest::setOrderId(long orderId) {
|
||||
orderId_ = orderId;
|
||||
setParameter(std::string("OrderId"), std::to_string(orderId));
|
||||
}
|
||||
|
||||
void ExecuteDataCorrectRequest::setActionName(const std::string& actionName)
|
||||
{
|
||||
actionName_ = actionName;
|
||||
setParameter("ActionName", actionName);
|
||||
std::string ExecuteDataCorrectRequest::getActionName() const {
|
||||
return actionName_;
|
||||
}
|
||||
|
||||
std::string ExecuteDataCorrectRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
void ExecuteDataCorrectRequest::setActionName(const std::string &actionName) {
|
||||
actionName_ = actionName;
|
||||
setParameter(std::string("ActionName"), actionName);
|
||||
}
|
||||
|
||||
void ExecuteDataCorrectRequest::setTid(const std::string& tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", tid);
|
||||
std::string ExecuteDataCorrectRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
std::map<std::string, std::string> ExecuteDataCorrectRequest::getActionDetail()const
|
||||
{
|
||||
return actionDetail_;
|
||||
void ExecuteDataCorrectRequest::setTid(const std::string &tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), tid);
|
||||
}
|
||||
|
||||
void ExecuteDataCorrectRequest::setActionDetail(const std::map<std::string, std::string>& actionDetail)
|
||||
{
|
||||
actionDetail_ = actionDetail;
|
||||
setJsonParameters("ActionDetail", actionDetail);
|
||||
std::map<std::string, std::string> ExecuteDataCorrectRequest::getActionDetail() const {
|
||||
return actionDetail_;
|
||||
}
|
||||
|
||||
void ExecuteDataCorrectRequest::setActionDetail(std::map<std::string, std::string> actionDetail) {
|
||||
actionDetail_ = actionDetail;
|
||||
setParameter(std::string("ActionDetail"), actionDetail);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +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/dms-enterprise/model/ExecuteDataExportRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::ExecuteDataExportRequest;
|
||||
|
||||
ExecuteDataExportRequest::ExecuteDataExportRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "ExecuteDataExport")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ExecuteDataExportRequest::~ExecuteDataExportRequest()
|
||||
{}
|
||||
|
||||
long ExecuteDataExportRequest::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/ExecuteDataExportRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::ExecuteDataExportRequest;
|
||||
|
||||
ExecuteDataExportRequest::ExecuteDataExportRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "ExecuteDataExport") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ExecuteDataExportRequest::setOrderId(long orderId)
|
||||
{
|
||||
orderId_ = orderId;
|
||||
setParameter("OrderId", std::to_string(orderId));
|
||||
ExecuteDataExportRequest::~ExecuteDataExportRequest() {}
|
||||
|
||||
long ExecuteDataExportRequest::getOrderId() const {
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
std::string ExecuteDataExportRequest::getActionName()const
|
||||
{
|
||||
return actionName_;
|
||||
void ExecuteDataExportRequest::setOrderId(long orderId) {
|
||||
orderId_ = orderId;
|
||||
setParameter(std::string("OrderId"), std::to_string(orderId));
|
||||
}
|
||||
|
||||
void ExecuteDataExportRequest::setActionName(const std::string& actionName)
|
||||
{
|
||||
actionName_ = actionName;
|
||||
setParameter("ActionName", actionName);
|
||||
std::string ExecuteDataExportRequest::getActionName() const {
|
||||
return actionName_;
|
||||
}
|
||||
|
||||
long ExecuteDataExportRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
void ExecuteDataExportRequest::setActionName(const std::string &actionName) {
|
||||
actionName_ = actionName;
|
||||
setParameter(std::string("ActionName"), actionName);
|
||||
}
|
||||
|
||||
void ExecuteDataExportRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
long ExecuteDataExportRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
std::map<std::string, std::string> ExecuteDataExportRequest::getActionDetail()const
|
||||
{
|
||||
return actionDetail_;
|
||||
void ExecuteDataExportRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
void ExecuteDataExportRequest::setActionDetail(const std::map<std::string, std::string>& actionDetail)
|
||||
{
|
||||
actionDetail_ = actionDetail;
|
||||
setJsonParameters("ActionDetail", actionDetail);
|
||||
std::map<std::string, std::string> ExecuteDataExportRequest::getActionDetail() const {
|
||||
return actionDetail_;
|
||||
}
|
||||
|
||||
void ExecuteDataExportRequest::setActionDetail(std::map<std::string, std::string> actionDetail) {
|
||||
actionDetail_ = actionDetail;
|
||||
setParameter(std::string("ActionDetail"), actionDetail);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +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/dms-enterprise/model/ExecuteScriptRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::ExecuteScriptRequest;
|
||||
|
||||
ExecuteScriptRequest::ExecuteScriptRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "ExecuteScript")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ExecuteScriptRequest::~ExecuteScriptRequest()
|
||||
{}
|
||||
|
||||
std::string ExecuteScriptRequest::getScript()const
|
||||
{
|
||||
return script_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/ExecuteScriptRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::ExecuteScriptRequest;
|
||||
|
||||
ExecuteScriptRequest::ExecuteScriptRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "ExecuteScript") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ExecuteScriptRequest::setScript(const std::string& script)
|
||||
{
|
||||
script_ = script;
|
||||
setParameter("Script", script);
|
||||
ExecuteScriptRequest::~ExecuteScriptRequest() {}
|
||||
|
||||
std::string ExecuteScriptRequest::getScript() const {
|
||||
return script_;
|
||||
}
|
||||
|
||||
long ExecuteScriptRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
void ExecuteScriptRequest::setScript(const std::string &script) {
|
||||
script_ = script;
|
||||
setParameter(std::string("Script"), script);
|
||||
}
|
||||
|
||||
void ExecuteScriptRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
long ExecuteScriptRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
int ExecuteScriptRequest::getDbId()const
|
||||
{
|
||||
return dbId_;
|
||||
void ExecuteScriptRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
void ExecuteScriptRequest::setDbId(int dbId)
|
||||
{
|
||||
dbId_ = dbId;
|
||||
setParameter("DbId", std::to_string(dbId));
|
||||
int ExecuteScriptRequest::getDbId() const {
|
||||
return dbId_;
|
||||
}
|
||||
|
||||
bool ExecuteScriptRequest::getLogic()const
|
||||
{
|
||||
return logic_;
|
||||
void ExecuteScriptRequest::setDbId(int dbId) {
|
||||
dbId_ = dbId;
|
||||
setParameter(std::string("DbId"), std::to_string(dbId));
|
||||
}
|
||||
|
||||
void ExecuteScriptRequest::setLogic(bool logic)
|
||||
{
|
||||
logic_ = logic;
|
||||
setParameter("Logic", logic ? "true" : "false");
|
||||
bool ExecuteScriptRequest::getLogic() const {
|
||||
return logic_;
|
||||
}
|
||||
|
||||
void ExecuteScriptRequest::setLogic(bool logic) {
|
||||
logic_ = logic;
|
||||
setParameter(std::string("Logic"), logic ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -43,12 +43,12 @@ void ExecuteScriptResult::parse(const std::string &payload)
|
||||
for (auto valueResultsResult : allResultsNode)
|
||||
{
|
||||
Result resultsObject;
|
||||
if(!valueResultsResult["Success"].isNull())
|
||||
resultsObject.success = valueResultsResult["Success"].asString() == "true";
|
||||
if(!valueResultsResult["Message"].isNull())
|
||||
resultsObject.message = valueResultsResult["Message"].asString();
|
||||
if(!valueResultsResult["RowCount"].isNull())
|
||||
resultsObject.rowCount = std::stol(valueResultsResult["RowCount"].asString());
|
||||
if(!valueResultsResult["Success"].isNull())
|
||||
resultsObject.success = valueResultsResult["Success"].asString() == "true";
|
||||
auto allColumnNames = value["ColumnNames"]["ColumnNames"];
|
||||
for (auto value : allColumnNames)
|
||||
resultsObject.columnNames.push_back(value.asString());
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/ExecuteStructSyncRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::ExecuteStructSyncRequest;
|
||||
|
||||
ExecuteStructSyncRequest::ExecuteStructSyncRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "ExecuteStructSync")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ExecuteStructSyncRequest::~ExecuteStructSyncRequest()
|
||||
{}
|
||||
|
||||
long ExecuteStructSyncRequest::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/ExecuteStructSyncRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::ExecuteStructSyncRequest;
|
||||
|
||||
ExecuteStructSyncRequest::ExecuteStructSyncRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "ExecuteStructSync") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ExecuteStructSyncRequest::setOrderId(long orderId)
|
||||
{
|
||||
orderId_ = orderId;
|
||||
setParameter("OrderId", std::to_string(orderId));
|
||||
ExecuteStructSyncRequest::~ExecuteStructSyncRequest() {}
|
||||
|
||||
long ExecuteStructSyncRequest::getOrderId() const {
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
long ExecuteStructSyncRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
void ExecuteStructSyncRequest::setOrderId(long orderId) {
|
||||
orderId_ = orderId;
|
||||
setParameter(std::string("OrderId"), std::to_string(orderId));
|
||||
}
|
||||
|
||||
void ExecuteStructSyncRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
long ExecuteStructSyncRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void ExecuteStructSyncRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
|
||||
@@ -39,12 +39,12 @@ void ExecuteStructSyncResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/GetApprovalDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetApprovalDetailRequest;
|
||||
|
||||
GetApprovalDetailRequest::GetApprovalDetailRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "GetApprovalDetail")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetApprovalDetailRequest::~GetApprovalDetailRequest()
|
||||
{}
|
||||
|
||||
long GetApprovalDetailRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/GetApprovalDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetApprovalDetailRequest;
|
||||
|
||||
GetApprovalDetailRequest::GetApprovalDetailRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "GetApprovalDetail") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetApprovalDetailRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
GetApprovalDetailRequest::~GetApprovalDetailRequest() {}
|
||||
|
||||
long GetApprovalDetailRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
long GetApprovalDetailRequest::getWorkflowInstanceId()const
|
||||
{
|
||||
return workflowInstanceId_;
|
||||
void GetApprovalDetailRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
void GetApprovalDetailRequest::setWorkflowInstanceId(long workflowInstanceId)
|
||||
{
|
||||
workflowInstanceId_ = workflowInstanceId;
|
||||
setParameter("WorkflowInstanceId", std::to_string(workflowInstanceId));
|
||||
long GetApprovalDetailRequest::getWorkflowInstanceId() const {
|
||||
return workflowInstanceId_;
|
||||
}
|
||||
|
||||
void GetApprovalDetailRequest::setWorkflowInstanceId(long workflowInstanceId) {
|
||||
workflowInstanceId_ = workflowInstanceId;
|
||||
setParameter(std::string("WorkflowInstanceId"), std::to_string(workflowInstanceId));
|
||||
}
|
||||
|
||||
|
||||
@@ -40,46 +40,46 @@ void GetApprovalDetailResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto approvalDetailNode = value["ApprovalDetail"];
|
||||
if(!approvalDetailNode["OrderType"].isNull())
|
||||
approvalDetail_.orderType = approvalDetailNode["OrderType"].asString();
|
||||
if(!approvalDetailNode["Description"].isNull())
|
||||
approvalDetail_.description = approvalDetailNode["Description"].asString();
|
||||
if(!approvalDetailNode["WorkflowInsCode"].isNull())
|
||||
approvalDetail_.workflowInsCode = approvalDetailNode["WorkflowInsCode"].asString();
|
||||
if(!approvalDetailNode["AuditId"].isNull())
|
||||
approvalDetail_.auditId = std::stol(approvalDetailNode["AuditId"].asString());
|
||||
if(!approvalDetailNode["OrderType"].isNull())
|
||||
approvalDetail_.orderType = approvalDetailNode["OrderType"].asString();
|
||||
if(!approvalDetailNode["Title"].isNull())
|
||||
approvalDetail_.title = approvalDetailNode["Title"].asString();
|
||||
if(!approvalDetailNode["AuditId"].isNull())
|
||||
approvalDetail_.auditId = std::stol(approvalDetailNode["AuditId"].asString());
|
||||
if(!approvalDetailNode["OrderId"].isNull())
|
||||
approvalDetail_.orderId = std::stol(approvalDetailNode["OrderId"].asString());
|
||||
auto allCurrentHandlersNode = approvalDetailNode["CurrentHandlers"]["CurrentHandler"];
|
||||
for (auto approvalDetailNodeCurrentHandlersCurrentHandler : allCurrentHandlersNode)
|
||||
{
|
||||
ApprovalDetail::CurrentHandler currentHandlerObject;
|
||||
if(!approvalDetailNodeCurrentHandlersCurrentHandler["Id"].isNull())
|
||||
currentHandlerObject.id = std::stol(approvalDetailNodeCurrentHandlersCurrentHandler["Id"].asString());
|
||||
if(!approvalDetailNodeCurrentHandlersCurrentHandler["NickName"].isNull())
|
||||
currentHandlerObject.nickName = approvalDetailNodeCurrentHandlersCurrentHandler["NickName"].asString();
|
||||
approvalDetail_.currentHandlers.push_back(currentHandlerObject);
|
||||
}
|
||||
if(!approvalDetailNode["WorkflowInsCode"].isNull())
|
||||
approvalDetail_.workflowInsCode = approvalDetailNode["WorkflowInsCode"].asString();
|
||||
auto allWorkflowNodesNode = approvalDetailNode["WorkflowNodes"]["WorkflowNode"];
|
||||
for (auto approvalDetailNodeWorkflowNodesWorkflowNode : allWorkflowNodesNode)
|
||||
{
|
||||
ApprovalDetail::WorkflowNode workflowNodeObject;
|
||||
if(!approvalDetailNodeWorkflowNodesWorkflowNode["OperateTime"].isNull())
|
||||
workflowNodeObject.operateTime = approvalDetailNodeWorkflowNodesWorkflowNode["OperateTime"].asString();
|
||||
if(!approvalDetailNodeWorkflowNodesWorkflowNode["WorkflowInsCode"].isNull())
|
||||
workflowNodeObject.workflowInsCode = approvalDetailNodeWorkflowNodesWorkflowNode["WorkflowInsCode"].asString();
|
||||
if(!approvalDetailNodeWorkflowNodesWorkflowNode["OperatorId"].isNull())
|
||||
workflowNodeObject.operatorId = std::stol(approvalDetailNodeWorkflowNodesWorkflowNode["OperatorId"].asString());
|
||||
if(!approvalDetailNodeWorkflowNodesWorkflowNode["NodeName"].isNull())
|
||||
workflowNodeObject.nodeName = approvalDetailNodeWorkflowNodesWorkflowNode["NodeName"].asString();
|
||||
if(!approvalDetailNodeWorkflowNodesWorkflowNode["OperateComment"].isNull())
|
||||
workflowNodeObject.operateComment = approvalDetailNodeWorkflowNodesWorkflowNode["OperateComment"].asString();
|
||||
if(!approvalDetailNodeWorkflowNodesWorkflowNode["OperatorId"].isNull())
|
||||
workflowNodeObject.operatorId = std::stol(approvalDetailNodeWorkflowNodesWorkflowNode["OperatorId"].asString());
|
||||
if(!approvalDetailNodeWorkflowNodesWorkflowNode["WorkflowInsCode"].isNull())
|
||||
workflowNodeObject.workflowInsCode = approvalDetailNodeWorkflowNodesWorkflowNode["WorkflowInsCode"].asString();
|
||||
auto allAuditUserIdList = value["AuditUserIdList"]["AuditUserIds"];
|
||||
for (auto value : allAuditUserIdList)
|
||||
workflowNodeObject.auditUserIdList.push_back(value.asString());
|
||||
approvalDetail_.workflowNodes.push_back(workflowNodeObject);
|
||||
}
|
||||
auto allCurrentHandlersNode = approvalDetailNode["CurrentHandlers"]["CurrentHandler"];
|
||||
for (auto approvalDetailNodeCurrentHandlersCurrentHandler : allCurrentHandlersNode)
|
||||
{
|
||||
ApprovalDetail::CurrentHandler currentHandlerObject;
|
||||
if(!approvalDetailNodeCurrentHandlersCurrentHandler["NickName"].isNull())
|
||||
currentHandlerObject.nickName = approvalDetailNodeCurrentHandlersCurrentHandler["NickName"].asString();
|
||||
if(!approvalDetailNodeCurrentHandlersCurrentHandler["Id"].isNull())
|
||||
currentHandlerObject.id = std::stol(approvalDetailNodeCurrentHandlersCurrentHandler["Id"].asString());
|
||||
approvalDetail_.currentHandlers.push_back(currentHandlerObject);
|
||||
}
|
||||
auto allReasonList = approvalDetailNode["ReasonList"]["Reasons"];
|
||||
for (auto value : allReasonList)
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/GetDBTopologyRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetDBTopologyRequest;
|
||||
|
||||
GetDBTopologyRequest::GetDBTopologyRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDBTopology")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetDBTopologyRequest::~GetDBTopologyRequest()
|
||||
{}
|
||||
|
||||
long GetDBTopologyRequest::getLogicDbId()const
|
||||
{
|
||||
return logicDbId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/GetDBTopologyRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetDBTopologyRequest;
|
||||
|
||||
GetDBTopologyRequest::GetDBTopologyRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDBTopology") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetDBTopologyRequest::setLogicDbId(long logicDbId)
|
||||
{
|
||||
logicDbId_ = logicDbId;
|
||||
setParameter("LogicDbId", std::to_string(logicDbId));
|
||||
GetDBTopologyRequest::~GetDBTopologyRequest() {}
|
||||
|
||||
long GetDBTopologyRequest::getLogicDbId() const {
|
||||
return logicDbId_;
|
||||
}
|
||||
|
||||
long GetDBTopologyRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
void GetDBTopologyRequest::setLogicDbId(long logicDbId) {
|
||||
logicDbId_ = logicDbId;
|
||||
setParameter(std::string("LogicDbId"), std::to_string(logicDbId));
|
||||
}
|
||||
|
||||
void GetDBTopologyRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
long GetDBTopologyRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void GetDBTopologyRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
|
||||
@@ -42,48 +42,48 @@ void GetDBTopologyResult::parse(const std::string &payload)
|
||||
auto dBTopologyNode = value["DBTopology"];
|
||||
if(!dBTopologyNode["LogicDbId"].isNull())
|
||||
dBTopology_.logicDbId = std::stol(dBTopologyNode["LogicDbId"].asString());
|
||||
if(!dBTopologyNode["LogicDbName"].isNull())
|
||||
dBTopology_.logicDbName = dBTopologyNode["LogicDbName"].asString();
|
||||
if(!dBTopologyNode["SearchName"].isNull())
|
||||
dBTopology_.searchName = dBTopologyNode["SearchName"].asString();
|
||||
if(!dBTopologyNode["Alias"].isNull())
|
||||
dBTopology_.alias = dBTopologyNode["Alias"].asString();
|
||||
if(!dBTopologyNode["LogicDbName"].isNull())
|
||||
dBTopology_.logicDbName = dBTopologyNode["LogicDbName"].asString();
|
||||
if(!dBTopologyNode["EnvType"].isNull())
|
||||
dBTopology_.envType = dBTopologyNode["EnvType"].asString();
|
||||
if(!dBTopologyNode["DbType"].isNull())
|
||||
dBTopology_.dbType = dBTopologyNode["DbType"].asString();
|
||||
if(!dBTopologyNode["EnvType"].isNull())
|
||||
dBTopology_.envType = dBTopologyNode["EnvType"].asString();
|
||||
auto allDBTopologyInfoListNode = dBTopologyNode["DBTopologyInfoList"]["DBTopologyInfo"];
|
||||
for (auto dBTopologyNodeDBTopologyInfoListDBTopologyInfo : allDBTopologyInfoListNode)
|
||||
{
|
||||
DBTopology::DBTopologyInfo dBTopologyInfoObject;
|
||||
if(!dBTopologyNodeDBTopologyInfoListDBTopologyInfo["InstanceSource"].isNull())
|
||||
dBTopologyInfoObject.instanceSource = dBTopologyNodeDBTopologyInfoListDBTopologyInfo["InstanceSource"].asString();
|
||||
if(!dBTopologyNodeDBTopologyInfoListDBTopologyInfo["InstanceResourceId"].isNull())
|
||||
dBTopologyInfoObject.instanceResourceId = dBTopologyNodeDBTopologyInfoListDBTopologyInfo["InstanceResourceId"].asString();
|
||||
if(!dBTopologyNodeDBTopologyInfoListDBTopologyInfo["InstanceId"].isNull())
|
||||
dBTopologyInfoObject.instanceId = std::stol(dBTopologyNodeDBTopologyInfoListDBTopologyInfo["InstanceId"].asString());
|
||||
if(!dBTopologyNodeDBTopologyInfoListDBTopologyInfo["SearchName"].isNull())
|
||||
dBTopologyInfoObject.searchName = dBTopologyNodeDBTopologyInfoListDBTopologyInfo["SearchName"].asString();
|
||||
if(!dBTopologyNodeDBTopologyInfoListDBTopologyInfo["DbId"].isNull())
|
||||
dBTopologyInfoObject.dbId = std::stol(dBTopologyNodeDBTopologyInfoListDBTopologyInfo["DbId"].asString());
|
||||
if(!dBTopologyNodeDBTopologyInfoListDBTopologyInfo["CatalogName"].isNull())
|
||||
dBTopologyInfoObject.catalogName = dBTopologyNodeDBTopologyInfoListDBTopologyInfo["CatalogName"].asString();
|
||||
if(!dBTopologyNodeDBTopologyInfoListDBTopologyInfo["RegionId"].isNull())
|
||||
dBTopologyInfoObject.regionId = dBTopologyNodeDBTopologyInfoListDBTopologyInfo["RegionId"].asString();
|
||||
if(!dBTopologyNodeDBTopologyInfoListDBTopologyInfo["EnvType"].isNull())
|
||||
dBTopologyInfoObject.envType = dBTopologyNodeDBTopologyInfoListDBTopologyInfo["EnvType"].asString();
|
||||
if(!dBTopologyNodeDBTopologyInfoListDBTopologyInfo["DbType"].isNull())
|
||||
dBTopologyInfoObject.dbType = dBTopologyNodeDBTopologyInfoListDBTopologyInfo["DbType"].asString();
|
||||
if(!dBTopologyNodeDBTopologyInfoListDBTopologyInfo["SchemaName"].isNull())
|
||||
dBTopologyInfoObject.schemaName = dBTopologyNodeDBTopologyInfoListDBTopologyInfo["SchemaName"].asString();
|
||||
if(!dBTopologyNodeDBTopologyInfoListDBTopologyInfo["CatalogName"].isNull())
|
||||
dBTopologyInfoObject.catalogName = dBTopologyNodeDBTopologyInfoListDBTopologyInfo["CatalogName"].asString();
|
||||
if(!dBTopologyNodeDBTopologyInfoListDBTopologyInfo["SearchName"].isNull())
|
||||
dBTopologyInfoObject.searchName = dBTopologyNodeDBTopologyInfoListDBTopologyInfo["SearchName"].asString();
|
||||
if(!dBTopologyNodeDBTopologyInfoListDBTopologyInfo["DbType"].isNull())
|
||||
dBTopologyInfoObject.dbType = dBTopologyNodeDBTopologyInfoListDBTopologyInfo["DbType"].asString();
|
||||
if(!dBTopologyNodeDBTopologyInfoListDBTopologyInfo["EnvType"].isNull())
|
||||
dBTopologyInfoObject.envType = dBTopologyNodeDBTopologyInfoListDBTopologyInfo["EnvType"].asString();
|
||||
if(!dBTopologyNodeDBTopologyInfoListDBTopologyInfo["InstanceId"].isNull())
|
||||
dBTopologyInfoObject.instanceId = std::stol(dBTopologyNodeDBTopologyInfoListDBTopologyInfo["InstanceId"].asString());
|
||||
if(!dBTopologyNodeDBTopologyInfoListDBTopologyInfo["RegionId"].isNull())
|
||||
dBTopologyInfoObject.regionId = dBTopologyNodeDBTopologyInfoListDBTopologyInfo["RegionId"].asString();
|
||||
if(!dBTopologyNodeDBTopologyInfoListDBTopologyInfo["InstanceResourceId"].isNull())
|
||||
dBTopologyInfoObject.instanceResourceId = dBTopologyNodeDBTopologyInfoListDBTopologyInfo["InstanceResourceId"].asString();
|
||||
if(!dBTopologyNodeDBTopologyInfoListDBTopologyInfo["InstanceSource"].isNull())
|
||||
dBTopologyInfoObject.instanceSource = dBTopologyNodeDBTopologyInfoListDBTopologyInfo["InstanceSource"].asString();
|
||||
dBTopology_.dBTopologyInfoList.push_back(dBTopologyInfoObject);
|
||||
}
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +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/dms-enterprise/model/GetDataCorrectBackupFilesRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetDataCorrectBackupFilesRequest;
|
||||
|
||||
GetDataCorrectBackupFilesRequest::GetDataCorrectBackupFilesRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDataCorrectBackupFiles")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetDataCorrectBackupFilesRequest::~GetDataCorrectBackupFilesRequest()
|
||||
{}
|
||||
|
||||
long GetDataCorrectBackupFilesRequest::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/GetDataCorrectBackupFilesRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetDataCorrectBackupFilesRequest;
|
||||
|
||||
GetDataCorrectBackupFilesRequest::GetDataCorrectBackupFilesRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDataCorrectBackupFiles") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetDataCorrectBackupFilesRequest::setOrderId(long orderId)
|
||||
{
|
||||
orderId_ = orderId;
|
||||
setParameter("OrderId", std::to_string(orderId));
|
||||
GetDataCorrectBackupFilesRequest::~GetDataCorrectBackupFilesRequest() {}
|
||||
|
||||
long GetDataCorrectBackupFilesRequest::getOrderId() const {
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
std::string GetDataCorrectBackupFilesRequest::getActionName()const
|
||||
{
|
||||
return actionName_;
|
||||
void GetDataCorrectBackupFilesRequest::setOrderId(long orderId) {
|
||||
orderId_ = orderId;
|
||||
setParameter(std::string("OrderId"), std::to_string(orderId));
|
||||
}
|
||||
|
||||
void GetDataCorrectBackupFilesRequest::setActionName(const std::string& actionName)
|
||||
{
|
||||
actionName_ = actionName;
|
||||
setParameter("ActionName", actionName);
|
||||
std::string GetDataCorrectBackupFilesRequest::getActionName() const {
|
||||
return actionName_;
|
||||
}
|
||||
|
||||
long GetDataCorrectBackupFilesRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
void GetDataCorrectBackupFilesRequest::setActionName(const std::string &actionName) {
|
||||
actionName_ = actionName;
|
||||
setParameter(std::string("ActionName"), actionName);
|
||||
}
|
||||
|
||||
void GetDataCorrectBackupFilesRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
long GetDataCorrectBackupFilesRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
std::map<std::string, std::string> GetDataCorrectBackupFilesRequest::getActionDetail()const
|
||||
{
|
||||
return actionDetail_;
|
||||
void GetDataCorrectBackupFilesRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
void GetDataCorrectBackupFilesRequest::setActionDetail(const std::map<std::string, std::string>& actionDetail)
|
||||
{
|
||||
actionDetail_ = actionDetail;
|
||||
setJsonParameters("ActionDetail", actionDetail);
|
||||
std::map<std::string, std::string> GetDataCorrectBackupFilesRequest::getActionDetail() const {
|
||||
return actionDetail_;
|
||||
}
|
||||
|
||||
void GetDataCorrectBackupFilesRequest::setActionDetail(std::map<std::string, std::string> actionDetail) {
|
||||
actionDetail_ = actionDetail;
|
||||
setParameter(std::string("ActionDetail"), actionDetail);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/GetDataCorrectOrderDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetDataCorrectOrderDetailRequest;
|
||||
|
||||
GetDataCorrectOrderDetailRequest::GetDataCorrectOrderDetailRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDataCorrectOrderDetail")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetDataCorrectOrderDetailRequest::~GetDataCorrectOrderDetailRequest()
|
||||
{}
|
||||
|
||||
long GetDataCorrectOrderDetailRequest::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/GetDataCorrectOrderDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetDataCorrectOrderDetailRequest;
|
||||
|
||||
GetDataCorrectOrderDetailRequest::GetDataCorrectOrderDetailRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDataCorrectOrderDetail") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetDataCorrectOrderDetailRequest::setOrderId(long orderId)
|
||||
{
|
||||
orderId_ = orderId;
|
||||
setParameter("OrderId", std::to_string(orderId));
|
||||
GetDataCorrectOrderDetailRequest::~GetDataCorrectOrderDetailRequest() {}
|
||||
|
||||
long GetDataCorrectOrderDetailRequest::getOrderId() const {
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
long GetDataCorrectOrderDetailRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
void GetDataCorrectOrderDetailRequest::setOrderId(long orderId) {
|
||||
orderId_ = orderId;
|
||||
setParameter(std::string("OrderId"), std::to_string(orderId));
|
||||
}
|
||||
|
||||
void GetDataCorrectOrderDetailRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
long GetDataCorrectOrderDetailRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void GetDataCorrectOrderDetailRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
|
||||
@@ -42,57 +42,57 @@ void GetDataCorrectOrderDetailResult::parse(const std::string &payload)
|
||||
auto dataCorrectOrderDetailNode = value["DataCorrectOrderDetail"];
|
||||
if(!dataCorrectOrderDetailNode["Status"].isNull())
|
||||
dataCorrectOrderDetail_.status = dataCorrectOrderDetailNode["Status"].asString();
|
||||
auto allDatabaseListNode = dataCorrectOrderDetailNode["DatabaseList"]["Database"];
|
||||
for (auto dataCorrectOrderDetailNodeDatabaseListDatabase : allDatabaseListNode)
|
||||
{
|
||||
DataCorrectOrderDetail::Database databaseObject;
|
||||
if(!dataCorrectOrderDetailNodeDatabaseListDatabase["SearchName"].isNull())
|
||||
databaseObject.searchName = dataCorrectOrderDetailNodeDatabaseListDatabase["SearchName"].asString();
|
||||
if(!dataCorrectOrderDetailNodeDatabaseListDatabase["DbId"].isNull())
|
||||
databaseObject.dbId = std::stoi(dataCorrectOrderDetailNodeDatabaseListDatabase["DbId"].asString());
|
||||
if(!dataCorrectOrderDetailNodeDatabaseListDatabase["Logic"].isNull())
|
||||
databaseObject.logic = dataCorrectOrderDetailNodeDatabaseListDatabase["Logic"].asString() == "true";
|
||||
if(!dataCorrectOrderDetailNodeDatabaseListDatabase["EnvType"].isNull())
|
||||
databaseObject.envType = dataCorrectOrderDetailNodeDatabaseListDatabase["EnvType"].asString();
|
||||
if(!dataCorrectOrderDetailNodeDatabaseListDatabase["DbType"].isNull())
|
||||
databaseObject.dbType = dataCorrectOrderDetailNodeDatabaseListDatabase["DbType"].asString();
|
||||
dataCorrectOrderDetail_.databaseList.push_back(databaseObject);
|
||||
}
|
||||
auto allPreCheckDetailNode = dataCorrectOrderDetailNode["PreCheckDetail"]["TaskCheckDO"];
|
||||
for (auto dataCorrectOrderDetailNodePreCheckDetailTaskCheckDO : allPreCheckDetailNode)
|
||||
{
|
||||
DataCorrectOrderDetail::TaskCheckDO taskCheckDOObject;
|
||||
if(!dataCorrectOrderDetailNodePreCheckDetailTaskCheckDO["UserTip"].isNull())
|
||||
taskCheckDOObject.userTip = dataCorrectOrderDetailNodePreCheckDetailTaskCheckDO["UserTip"].asString();
|
||||
if(!dataCorrectOrderDetailNodePreCheckDetailTaskCheckDO["CheckStep"].isNull())
|
||||
taskCheckDOObject.checkStep = dataCorrectOrderDetailNodePreCheckDetailTaskCheckDO["CheckStep"].asString();
|
||||
if(!dataCorrectOrderDetailNodePreCheckDetailTaskCheckDO["CheckStatus"].isNull())
|
||||
taskCheckDOObject.checkStatus = dataCorrectOrderDetailNodePreCheckDetailTaskCheckDO["CheckStatus"].asString();
|
||||
if(!dataCorrectOrderDetailNodePreCheckDetailTaskCheckDO["CheckStep"].isNull())
|
||||
taskCheckDOObject.checkStep = dataCorrectOrderDetailNodePreCheckDetailTaskCheckDO["CheckStep"].asString();
|
||||
dataCorrectOrderDetail_.preCheckDetail.push_back(taskCheckDOObject);
|
||||
}
|
||||
auto allDatabaseListNode = dataCorrectOrderDetailNode["DatabaseList"]["Database"];
|
||||
for (auto dataCorrectOrderDetailNodeDatabaseListDatabase : allDatabaseListNode)
|
||||
{
|
||||
DataCorrectOrderDetail::Database databaseObject;
|
||||
if(!dataCorrectOrderDetailNodeDatabaseListDatabase["DbId"].isNull())
|
||||
databaseObject.dbId = std::stoi(dataCorrectOrderDetailNodeDatabaseListDatabase["DbId"].asString());
|
||||
if(!dataCorrectOrderDetailNodeDatabaseListDatabase["DbType"].isNull())
|
||||
databaseObject.dbType = dataCorrectOrderDetailNodeDatabaseListDatabase["DbType"].asString();
|
||||
if(!dataCorrectOrderDetailNodeDatabaseListDatabase["Logic"].isNull())
|
||||
databaseObject.logic = dataCorrectOrderDetailNodeDatabaseListDatabase["Logic"].asString() == "true";
|
||||
if(!dataCorrectOrderDetailNodeDatabaseListDatabase["SearchName"].isNull())
|
||||
databaseObject.searchName = dataCorrectOrderDetailNodeDatabaseListDatabase["SearchName"].asString();
|
||||
if(!dataCorrectOrderDetailNodeDatabaseListDatabase["EnvType"].isNull())
|
||||
databaseObject.envType = dataCorrectOrderDetailNodeDatabaseListDatabase["EnvType"].asString();
|
||||
dataCorrectOrderDetail_.databaseList.push_back(databaseObject);
|
||||
}
|
||||
auto orderDetailNode = dataCorrectOrderDetailNode["OrderDetail"];
|
||||
if(!orderDetailNode["EstimateAffectRows"].isNull())
|
||||
dataCorrectOrderDetail_.orderDetail.estimateAffectRows = std::stol(orderDetailNode["EstimateAffectRows"].asString());
|
||||
if(!orderDetailNode["IgnoreAffectRows"].isNull())
|
||||
dataCorrectOrderDetail_.orderDetail.ignoreAffectRows = orderDetailNode["IgnoreAffectRows"].asString() == "true";
|
||||
if(!orderDetailNode["ExeSQL"].isNull())
|
||||
dataCorrectOrderDetail_.orderDetail.exeSQL = orderDetailNode["ExeSQL"].asString();
|
||||
if(!orderDetailNode["RbSQL"].isNull())
|
||||
dataCorrectOrderDetail_.orderDetail.rbSQL = orderDetailNode["RbSQL"].asString();
|
||||
if(!orderDetailNode["RbAttachmentName"].isNull())
|
||||
dataCorrectOrderDetail_.orderDetail.rbAttachmentName = orderDetailNode["RbAttachmentName"].asString();
|
||||
if(!orderDetailNode["Classify"].isNull())
|
||||
dataCorrectOrderDetail_.orderDetail.classify = orderDetailNode["Classify"].asString();
|
||||
if(!orderDetailNode["IgnoreAffectRowsReason"].isNull())
|
||||
dataCorrectOrderDetail_.orderDetail.ignoreAffectRowsReason = orderDetailNode["IgnoreAffectRowsReason"].asString();
|
||||
if(!orderDetailNode["AttachmentName"].isNull())
|
||||
dataCorrectOrderDetail_.orderDetail.attachmentName = orderDetailNode["AttachmentName"].asString();
|
||||
if(!orderDetailNode["SqlType"].isNull())
|
||||
dataCorrectOrderDetail_.orderDetail.sqlType = orderDetailNode["SqlType"].asString();
|
||||
if(!orderDetailNode["ExeSQL"].isNull())
|
||||
dataCorrectOrderDetail_.orderDetail.exeSQL = orderDetailNode["ExeSQL"].asString();
|
||||
if(!orderDetailNode["EstimateAffectRows"].isNull())
|
||||
dataCorrectOrderDetail_.orderDetail.estimateAffectRows = std::stol(orderDetailNode["EstimateAffectRows"].asString());
|
||||
if(!orderDetailNode["RbSQLType"].isNull())
|
||||
dataCorrectOrderDetail_.orderDetail.rbSQLType = orderDetailNode["RbSQLType"].asString();
|
||||
if(!orderDetailNode["ActualAffectRows"].isNull())
|
||||
dataCorrectOrderDetail_.orderDetail.actualAffectRows = std::stol(orderDetailNode["ActualAffectRows"].asString());
|
||||
if(!orderDetailNode["RbAttachmentName"].isNull())
|
||||
dataCorrectOrderDetail_.orderDetail.rbAttachmentName = orderDetailNode["RbAttachmentName"].asString();
|
||||
if(!orderDetailNode["RbSQL"].isNull())
|
||||
dataCorrectOrderDetail_.orderDetail.rbSQL = orderDetailNode["RbSQL"].asString();
|
||||
if(!orderDetailNode["IgnoreAffectRows"].isNull())
|
||||
dataCorrectOrderDetail_.orderDetail.ignoreAffectRows = orderDetailNode["IgnoreAffectRows"].asString() == "true";
|
||||
if(!orderDetailNode["AttachmentName"].isNull())
|
||||
dataCorrectOrderDetail_.orderDetail.attachmentName = orderDetailNode["AttachmentName"].asString();
|
||||
if(!orderDetailNode["SqlType"].isNull())
|
||||
dataCorrectOrderDetail_.orderDetail.sqlType = orderDetailNode["SqlType"].asString();
|
||||
if(!orderDetailNode["IgnoreAffectRowsReason"].isNull())
|
||||
dataCorrectOrderDetail_.orderDetail.ignoreAffectRowsReason = orderDetailNode["IgnoreAffectRowsReason"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
|
||||
@@ -1,62 +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/dms-enterprise/model/GetDataCorrectSQLFileRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetDataCorrectSQLFileRequest;
|
||||
|
||||
GetDataCorrectSQLFileRequest::GetDataCorrectSQLFileRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDataCorrectSQLFile")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetDataCorrectSQLFileRequest::~GetDataCorrectSQLFileRequest()
|
||||
{}
|
||||
|
||||
long GetDataCorrectSQLFileRequest::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/GetDataCorrectSQLFileRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetDataCorrectSQLFileRequest;
|
||||
|
||||
GetDataCorrectSQLFileRequest::GetDataCorrectSQLFileRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDataCorrectSQLFile") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetDataCorrectSQLFileRequest::setOrderId(long orderId)
|
||||
{
|
||||
orderId_ = orderId;
|
||||
setParameter("OrderId", std::to_string(orderId));
|
||||
GetDataCorrectSQLFileRequest::~GetDataCorrectSQLFileRequest() {}
|
||||
|
||||
long GetDataCorrectSQLFileRequest::getOrderId() const {
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
long GetDataCorrectSQLFileRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
void GetDataCorrectSQLFileRequest::setOrderId(long orderId) {
|
||||
orderId_ = orderId;
|
||||
setParameter(std::string("OrderId"), std::to_string(orderId));
|
||||
}
|
||||
|
||||
void GetDataCorrectSQLFileRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
long GetDataCorrectSQLFileRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
std::string GetDataCorrectSQLFileRequest::getOrderActionName()const
|
||||
{
|
||||
return orderActionName_;
|
||||
void GetDataCorrectSQLFileRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
void GetDataCorrectSQLFileRequest::setOrderActionName(const std::string& orderActionName)
|
||||
{
|
||||
orderActionName_ = orderActionName;
|
||||
setParameter("OrderActionName", orderActionName);
|
||||
std::string GetDataCorrectSQLFileRequest::getOrderActionName() const {
|
||||
return orderActionName_;
|
||||
}
|
||||
|
||||
void GetDataCorrectSQLFileRequest::setOrderActionName(const std::string &orderActionName) {
|
||||
orderActionName_ = orderActionName;
|
||||
setParameter(std::string("OrderActionName"), orderActionName);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,14 +39,14 @@ void GetDataCorrectSQLFileResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["FileUrl"].isNull())
|
||||
fileUrl_ = value["FileUrl"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["FileUrl"].isNull())
|
||||
fileUrl_ = value["FileUrl"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/GetDataCorrectTaskDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetDataCorrectTaskDetailRequest;
|
||||
|
||||
GetDataCorrectTaskDetailRequest::GetDataCorrectTaskDetailRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDataCorrectTaskDetail")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetDataCorrectTaskDetailRequest::~GetDataCorrectTaskDetailRequest()
|
||||
{}
|
||||
|
||||
long GetDataCorrectTaskDetailRequest::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/GetDataCorrectTaskDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetDataCorrectTaskDetailRequest;
|
||||
|
||||
GetDataCorrectTaskDetailRequest::GetDataCorrectTaskDetailRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDataCorrectTaskDetail") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetDataCorrectTaskDetailRequest::setOrderId(long orderId)
|
||||
{
|
||||
orderId_ = orderId;
|
||||
setParameter("OrderId", std::to_string(orderId));
|
||||
GetDataCorrectTaskDetailRequest::~GetDataCorrectTaskDetailRequest() {}
|
||||
|
||||
long GetDataCorrectTaskDetailRequest::getOrderId() const {
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
long GetDataCorrectTaskDetailRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
void GetDataCorrectTaskDetailRequest::setOrderId(long orderId) {
|
||||
orderId_ = orderId;
|
||||
setParameter(std::string("OrderId"), std::to_string(orderId));
|
||||
}
|
||||
|
||||
void GetDataCorrectTaskDetailRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
long GetDataCorrectTaskDetailRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void GetDataCorrectTaskDetailRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
|
||||
@@ -40,20 +40,20 @@ void GetDataCorrectTaskDetailResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataCorrectTaskDetailNode = value["DataCorrectTaskDetail"];
|
||||
if(!dataCorrectTaskDetailNode["jobStatus"].isNull())
|
||||
dataCorrectTaskDetail_.jobStatus = dataCorrectTaskDetailNode["jobStatus"].asString();
|
||||
if(!dataCorrectTaskDetailNode["CreateTime"].isNull())
|
||||
dataCorrectTaskDetail_.createTime = dataCorrectTaskDetailNode["CreateTime"].asString();
|
||||
if(!dataCorrectTaskDetailNode["ActualAffectRows"].isNull())
|
||||
dataCorrectTaskDetail_.actualAffectRows = std::stol(dataCorrectTaskDetailNode["ActualAffectRows"].asString());
|
||||
if(!dataCorrectTaskDetailNode["DBTaskGroupId"].isNull())
|
||||
dataCorrectTaskDetail_.dBTaskGroupId = std::stol(dataCorrectTaskDetailNode["DBTaskGroupId"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!dataCorrectTaskDetailNode["jobStatus"].isNull())
|
||||
dataCorrectTaskDetail_.jobStatus = dataCorrectTaskDetailNode["jobStatus"].asString();
|
||||
if(!dataCorrectTaskDetailNode["ActualAffectRows"].isNull())
|
||||
dataCorrectTaskDetail_.actualAffectRows = std::stol(dataCorrectTaskDetailNode["ActualAffectRows"].asString());
|
||||
if(!dataCorrectTaskDetailNode["CreateTime"].isNull())
|
||||
dataCorrectTaskDetail_.createTime = dataCorrectTaskDetailNode["CreateTime"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +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/dms-enterprise/model/GetDataCronClearTaskDetailListRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetDataCronClearTaskDetailListRequest;
|
||||
|
||||
GetDataCronClearTaskDetailListRequest::GetDataCronClearTaskDetailListRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDataCronClearTaskDetailList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetDataCronClearTaskDetailListRequest::~GetDataCronClearTaskDetailListRequest()
|
||||
{}
|
||||
|
||||
long GetDataCronClearTaskDetailListRequest::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/GetDataCronClearTaskDetailListRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetDataCronClearTaskDetailListRequest;
|
||||
|
||||
GetDataCronClearTaskDetailListRequest::GetDataCronClearTaskDetailListRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDataCronClearTaskDetailList") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetDataCronClearTaskDetailListRequest::setOrderId(long orderId)
|
||||
{
|
||||
orderId_ = orderId;
|
||||
setParameter("OrderId", std::to_string(orderId));
|
||||
GetDataCronClearTaskDetailListRequest::~GetDataCronClearTaskDetailListRequest() {}
|
||||
|
||||
long GetDataCronClearTaskDetailListRequest::getOrderId() const {
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
long GetDataCronClearTaskDetailListRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
void GetDataCronClearTaskDetailListRequest::setOrderId(long orderId) {
|
||||
orderId_ = orderId;
|
||||
setParameter(std::string("OrderId"), std::to_string(orderId));
|
||||
}
|
||||
|
||||
void GetDataCronClearTaskDetailListRequest::setPageNumber(long pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
long GetDataCronClearTaskDetailListRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
long GetDataCronClearTaskDetailListRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
void GetDataCronClearTaskDetailListRequest::setPageNumber(long pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
void GetDataCronClearTaskDetailListRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
long GetDataCronClearTaskDetailListRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
long GetDataCronClearTaskDetailListRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
void GetDataCronClearTaskDetailListRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
void GetDataCronClearTaskDetailListRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
long GetDataCronClearTaskDetailListRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void GetDataCronClearTaskDetailListRequest::setPageSize(long pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
|
||||
@@ -43,24 +43,24 @@ void GetDataCronClearTaskDetailListResult::parse(const std::string &payload)
|
||||
for (auto valueDataCronClearTaskDetailListDataCronClearTaskDetail : allDataCronClearTaskDetailListNode)
|
||||
{
|
||||
DataCronClearTaskDetail dataCronClearTaskDetailListObject;
|
||||
if(!valueDataCronClearTaskDetailListDataCronClearTaskDetail["jobStatus"].isNull())
|
||||
dataCronClearTaskDetailListObject.jobStatus = valueDataCronClearTaskDetailListDataCronClearTaskDetail["jobStatus"].asString();
|
||||
if(!valueDataCronClearTaskDetailListDataCronClearTaskDetail["CreateTime"].isNull())
|
||||
dataCronClearTaskDetailListObject.createTime = valueDataCronClearTaskDetailListDataCronClearTaskDetail["CreateTime"].asString();
|
||||
if(!valueDataCronClearTaskDetailListDataCronClearTaskDetail["ActualAffectRows"].isNull())
|
||||
dataCronClearTaskDetailListObject.actualAffectRows = std::stol(valueDataCronClearTaskDetailListDataCronClearTaskDetail["ActualAffectRows"].asString());
|
||||
if(!valueDataCronClearTaskDetailListDataCronClearTaskDetail["DBTaskGroupId"].isNull())
|
||||
dataCronClearTaskDetailListObject.dBTaskGroupId = std::stol(valueDataCronClearTaskDetailListDataCronClearTaskDetail["DBTaskGroupId"].asString());
|
||||
if(!valueDataCronClearTaskDetailListDataCronClearTaskDetail["jobStatus"].isNull())
|
||||
dataCronClearTaskDetailListObject.jobStatus = valueDataCronClearTaskDetailListDataCronClearTaskDetail["jobStatus"].asString();
|
||||
if(!valueDataCronClearTaskDetailListDataCronClearTaskDetail["ActualAffectRows"].isNull())
|
||||
dataCronClearTaskDetailListObject.actualAffectRows = std::stol(valueDataCronClearTaskDetailListDataCronClearTaskDetail["ActualAffectRows"].asString());
|
||||
if(!valueDataCronClearTaskDetailListDataCronClearTaskDetail["CreateTime"].isNull())
|
||||
dataCronClearTaskDetailListObject.createTime = valueDataCronClearTaskDetailListDataCronClearTaskDetail["CreateTime"].asString();
|
||||
dataCronClearTaskDetailList_.push_back(dataCronClearTaskDetailListObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +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/dms-enterprise/model/GetDataExportDownloadURLRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetDataExportDownloadURLRequest;
|
||||
|
||||
GetDataExportDownloadURLRequest::GetDataExportDownloadURLRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDataExportDownloadURL")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetDataExportDownloadURLRequest::~GetDataExportDownloadURLRequest()
|
||||
{}
|
||||
|
||||
long GetDataExportDownloadURLRequest::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/GetDataExportDownloadURLRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetDataExportDownloadURLRequest;
|
||||
|
||||
GetDataExportDownloadURLRequest::GetDataExportDownloadURLRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDataExportDownloadURL") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetDataExportDownloadURLRequest::setOrderId(long orderId)
|
||||
{
|
||||
orderId_ = orderId;
|
||||
setParameter("OrderId", std::to_string(orderId));
|
||||
GetDataExportDownloadURLRequest::~GetDataExportDownloadURLRequest() {}
|
||||
|
||||
long GetDataExportDownloadURLRequest::getOrderId() const {
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
std::string GetDataExportDownloadURLRequest::getActionName()const
|
||||
{
|
||||
return actionName_;
|
||||
void GetDataExportDownloadURLRequest::setOrderId(long orderId) {
|
||||
orderId_ = orderId;
|
||||
setParameter(std::string("OrderId"), std::to_string(orderId));
|
||||
}
|
||||
|
||||
void GetDataExportDownloadURLRequest::setActionName(const std::string& actionName)
|
||||
{
|
||||
actionName_ = actionName;
|
||||
setParameter("ActionName", actionName);
|
||||
std::string GetDataExportDownloadURLRequest::getActionName() const {
|
||||
return actionName_;
|
||||
}
|
||||
|
||||
long GetDataExportDownloadURLRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
void GetDataExportDownloadURLRequest::setActionName(const std::string &actionName) {
|
||||
actionName_ = actionName;
|
||||
setParameter(std::string("ActionName"), actionName);
|
||||
}
|
||||
|
||||
void GetDataExportDownloadURLRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
long GetDataExportDownloadURLRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void GetDataExportDownloadURLRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/GetDataExportOrderDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetDataExportOrderDetailRequest;
|
||||
|
||||
GetDataExportOrderDetailRequest::GetDataExportOrderDetailRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDataExportOrderDetail")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetDataExportOrderDetailRequest::~GetDataExportOrderDetailRequest()
|
||||
{}
|
||||
|
||||
long GetDataExportOrderDetailRequest::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/GetDataExportOrderDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetDataExportOrderDetailRequest;
|
||||
|
||||
GetDataExportOrderDetailRequest::GetDataExportOrderDetailRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDataExportOrderDetail") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetDataExportOrderDetailRequest::setOrderId(long orderId)
|
||||
{
|
||||
orderId_ = orderId;
|
||||
setBodyParameter("OrderId", std::to_string(orderId));
|
||||
GetDataExportOrderDetailRequest::~GetDataExportOrderDetailRequest() {}
|
||||
|
||||
long GetDataExportOrderDetailRequest::getOrderId() const {
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
long GetDataExportOrderDetailRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
void GetDataExportOrderDetailRequest::setOrderId(long orderId) {
|
||||
orderId_ = orderId;
|
||||
setBodyParameter(std::string("OrderId"), std::to_string(orderId));
|
||||
}
|
||||
|
||||
void GetDataExportOrderDetailRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
long GetDataExportOrderDetailRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void GetDataExportOrderDetailRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
|
||||
@@ -40,30 +40,30 @@ void GetDataExportOrderDetailResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataExportOrderDetailNode = value["DataExportOrderDetail"];
|
||||
auto orderDetailNode = dataExportOrderDetailNode["OrderDetail"];
|
||||
if(!orderDetailNode["IgnoreAffectRows"].isNull())
|
||||
dataExportOrderDetail_.orderDetail.ignoreAffectRows = orderDetailNode["IgnoreAffectRows"].asString() == "true";
|
||||
if(!orderDetailNode["ExeSQL"].isNull())
|
||||
dataExportOrderDetail_.orderDetail.exeSQL = orderDetailNode["ExeSQL"].asString();
|
||||
if(!orderDetailNode["Classify"].isNull())
|
||||
dataExportOrderDetail_.orderDetail.classify = orderDetailNode["Classify"].asString();
|
||||
if(!orderDetailNode["IgnoreAffectRowsReason"].isNull())
|
||||
dataExportOrderDetail_.orderDetail.ignoreAffectRowsReason = orderDetailNode["IgnoreAffectRowsReason"].asString();
|
||||
if(!orderDetailNode["Database"].isNull())
|
||||
dataExportOrderDetail_.orderDetail.database = orderDetailNode["Database"].asString();
|
||||
if(!orderDetailNode["DbId"].isNull())
|
||||
dataExportOrderDetail_.orderDetail.dbId = std::stoi(orderDetailNode["DbId"].asString());
|
||||
if(!orderDetailNode["ActualAffectRows"].isNull())
|
||||
dataExportOrderDetail_.orderDetail.actualAffectRows = std::stol(orderDetailNode["ActualAffectRows"].asString());
|
||||
if(!orderDetailNode["Logic"].isNull())
|
||||
dataExportOrderDetail_.orderDetail.logic = orderDetailNode["Logic"].asString() == "true";
|
||||
if(!orderDetailNode["EnvType"].isNull())
|
||||
dataExportOrderDetail_.orderDetail.envType = orderDetailNode["EnvType"].asString();
|
||||
auto keyInfoNode = dataExportOrderDetailNode["KeyInfo"];
|
||||
if(!keyInfoNode["JobStatus"].isNull())
|
||||
dataExportOrderDetail_.keyInfo.jobStatus = keyInfoNode["JobStatus"].asString();
|
||||
if(!keyInfoNode["PreCheckId"].isNull())
|
||||
dataExportOrderDetail_.keyInfo.preCheckId = std::stol(keyInfoNode["PreCheckId"].asString());
|
||||
if(!keyInfoNode["JobStatus"].isNull())
|
||||
dataExportOrderDetail_.keyInfo.jobStatus = keyInfoNode["JobStatus"].asString();
|
||||
auto orderDetailNode = dataExportOrderDetailNode["OrderDetail"];
|
||||
if(!orderDetailNode["DbId"].isNull())
|
||||
dataExportOrderDetail_.orderDetail.dbId = std::stoi(orderDetailNode["DbId"].asString());
|
||||
if(!orderDetailNode["Database"].isNull())
|
||||
dataExportOrderDetail_.orderDetail.database = orderDetailNode["Database"].asString();
|
||||
if(!orderDetailNode["Classify"].isNull())
|
||||
dataExportOrderDetail_.orderDetail.classify = orderDetailNode["Classify"].asString();
|
||||
if(!orderDetailNode["ExeSQL"].isNull())
|
||||
dataExportOrderDetail_.orderDetail.exeSQL = orderDetailNode["ExeSQL"].asString();
|
||||
if(!orderDetailNode["Logic"].isNull())
|
||||
dataExportOrderDetail_.orderDetail.logic = orderDetailNode["Logic"].asString() == "true";
|
||||
if(!orderDetailNode["ActualAffectRows"].isNull())
|
||||
dataExportOrderDetail_.orderDetail.actualAffectRows = std::stol(orderDetailNode["ActualAffectRows"].asString());
|
||||
if(!orderDetailNode["IgnoreAffectRows"].isNull())
|
||||
dataExportOrderDetail_.orderDetail.ignoreAffectRows = orderDetailNode["IgnoreAffectRows"].asString() == "true";
|
||||
if(!orderDetailNode["IgnoreAffectRowsReason"].isNull())
|
||||
dataExportOrderDetail_.orderDetail.ignoreAffectRowsReason = orderDetailNode["IgnoreAffectRowsReason"].asString();
|
||||
if(!orderDetailNode["EnvType"].isNull())
|
||||
dataExportOrderDetail_.orderDetail.envType = orderDetailNode["EnvType"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
|
||||
@@ -1,84 +1,72 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/GetDatabaseRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetDatabaseRequest;
|
||||
|
||||
GetDatabaseRequest::GetDatabaseRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDatabase")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetDatabaseRequest::~GetDatabaseRequest()
|
||||
{}
|
||||
|
||||
std::string GetDatabaseRequest::getSchemaName()const
|
||||
{
|
||||
return schemaName_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/GetDatabaseRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetDatabaseRequest;
|
||||
|
||||
GetDatabaseRequest::GetDatabaseRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDatabase") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetDatabaseRequest::setSchemaName(const std::string& schemaName)
|
||||
{
|
||||
schemaName_ = schemaName;
|
||||
setParameter("SchemaName", schemaName);
|
||||
GetDatabaseRequest::~GetDatabaseRequest() {}
|
||||
|
||||
std::string GetDatabaseRequest::getSchemaName() const {
|
||||
return schemaName_;
|
||||
}
|
||||
|
||||
long GetDatabaseRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
void GetDatabaseRequest::setSchemaName(const std::string &schemaName) {
|
||||
schemaName_ = schemaName;
|
||||
setParameter(std::string("SchemaName"), schemaName);
|
||||
}
|
||||
|
||||
void GetDatabaseRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
long GetDatabaseRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
std::string GetDatabaseRequest::getSid()const
|
||||
{
|
||||
return sid_;
|
||||
void GetDatabaseRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
void GetDatabaseRequest::setSid(const std::string& sid)
|
||||
{
|
||||
sid_ = sid;
|
||||
setParameter("Sid", sid);
|
||||
std::string GetDatabaseRequest::getSid() const {
|
||||
return sid_;
|
||||
}
|
||||
|
||||
int GetDatabaseRequest::getPort()const
|
||||
{
|
||||
return port_;
|
||||
void GetDatabaseRequest::setSid(const std::string &sid) {
|
||||
sid_ = sid;
|
||||
setParameter(std::string("Sid"), sid);
|
||||
}
|
||||
|
||||
void GetDatabaseRequest::setPort(int port)
|
||||
{
|
||||
port_ = port;
|
||||
setParameter("Port", std::to_string(port));
|
||||
int GetDatabaseRequest::getPort() const {
|
||||
return port_;
|
||||
}
|
||||
|
||||
std::string GetDatabaseRequest::getHost()const
|
||||
{
|
||||
return host_;
|
||||
void GetDatabaseRequest::setPort(int port) {
|
||||
port_ = port;
|
||||
setParameter(std::string("Port"), std::to_string(port));
|
||||
}
|
||||
|
||||
void GetDatabaseRequest::setHost(const std::string& host)
|
||||
{
|
||||
host_ = host;
|
||||
setParameter("Host", host);
|
||||
std::string GetDatabaseRequest::getHost() const {
|
||||
return host_;
|
||||
}
|
||||
|
||||
void GetDatabaseRequest::setHost(const std::string &host) {
|
||||
host_ = host;
|
||||
setParameter(std::string("Host"), host);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,40 +40,40 @@ void GetDatabaseResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto databaseNode = value["Database"];
|
||||
if(!databaseNode["SearchName"].isNull())
|
||||
database_.searchName = databaseNode["SearchName"].asString();
|
||||
if(!databaseNode["DatabaseId"].isNull())
|
||||
database_.databaseId = databaseNode["DatabaseId"].asString();
|
||||
if(!databaseNode["Host"].isNull())
|
||||
database_.host = databaseNode["Host"].asString();
|
||||
if(!databaseNode["CatalogName"].isNull())
|
||||
database_.catalogName = databaseNode["CatalogName"].asString();
|
||||
if(!databaseNode["DbaName"].isNull())
|
||||
database_.dbaName = databaseNode["DbaName"].asString();
|
||||
if(!databaseNode["State"].isNull())
|
||||
database_.state = databaseNode["State"].asString();
|
||||
if(!databaseNode["DbaId"].isNull())
|
||||
database_.dbaId = databaseNode["DbaId"].asString();
|
||||
if(!databaseNode["SchemaName"].isNull())
|
||||
database_.schemaName = databaseNode["SchemaName"].asString();
|
||||
if(!databaseNode["InstanceId"].isNull())
|
||||
database_.instanceId = databaseNode["InstanceId"].asString();
|
||||
if(!databaseNode["Port"].isNull())
|
||||
database_.port = std::stoi(databaseNode["Port"].asString());
|
||||
if(!databaseNode["Encoding"].isNull())
|
||||
database_.encoding = databaseNode["Encoding"].asString();
|
||||
if(!databaseNode["Host"].isNull())
|
||||
database_.host = databaseNode["Host"].asString();
|
||||
if(!databaseNode["DatabaseId"].isNull())
|
||||
database_.databaseId = databaseNode["DatabaseId"].asString();
|
||||
if(!databaseNode["DbType"].isNull())
|
||||
database_.dbType = databaseNode["DbType"].asString();
|
||||
if(!databaseNode["EnvType"].isNull())
|
||||
database_.envType = databaseNode["EnvType"].asString();
|
||||
if(!databaseNode["Sid"].isNull())
|
||||
database_.sid = databaseNode["Sid"].asString();
|
||||
if(!databaseNode["DbaName"].isNull())
|
||||
database_.dbaName = databaseNode["DbaName"].asString();
|
||||
if(!databaseNode["DbaId"].isNull())
|
||||
database_.dbaId = databaseNode["DbaId"].asString();
|
||||
if(!databaseNode["State"].isNull())
|
||||
database_.state = databaseNode["State"].asString();
|
||||
if(!databaseNode["CatalogName"].isNull())
|
||||
database_.catalogName = databaseNode["CatalogName"].asString();
|
||||
if(!databaseNode["SchemaName"].isNull())
|
||||
database_.schemaName = databaseNode["SchemaName"].asString();
|
||||
auto allOwnerNameList = databaseNode["OwnerNameList"]["OwnerNames"];
|
||||
for (auto value : allOwnerNameList)
|
||||
database_.ownerNameList.push_back(value.asString());
|
||||
if(!databaseNode["Encoding"].isNull())
|
||||
database_.encoding = databaseNode["Encoding"].asString();
|
||||
if(!databaseNode["DbType"].isNull())
|
||||
database_.dbType = databaseNode["DbType"].asString();
|
||||
if(!databaseNode["SearchName"].isNull())
|
||||
database_.searchName = databaseNode["SearchName"].asString();
|
||||
auto allOwnerIdList = databaseNode["OwnerIdList"]["OwnerIds"];
|
||||
for (auto value : allOwnerIdList)
|
||||
database_.ownerIdList.push_back(value.asString());
|
||||
auto allOwnerNameList = databaseNode["OwnerNameList"]["OwnerNames"];
|
||||
for (auto value : allOwnerNameList)
|
||||
database_.ownerNameList.push_back(value.asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
|
||||
@@ -1,73 +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/dms-enterprise/model/GetInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetInstanceRequest;
|
||||
|
||||
GetInstanceRequest::GetInstanceRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "GetInstance")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetInstanceRequest::~GetInstanceRequest()
|
||||
{}
|
||||
|
||||
long GetInstanceRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/GetInstanceRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetInstanceRequest;
|
||||
|
||||
GetInstanceRequest::GetInstanceRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "GetInstance") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetInstanceRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
GetInstanceRequest::~GetInstanceRequest() {}
|
||||
|
||||
long GetInstanceRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
std::string GetInstanceRequest::getSid()const
|
||||
{
|
||||
return sid_;
|
||||
void GetInstanceRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
void GetInstanceRequest::setSid(const std::string& sid)
|
||||
{
|
||||
sid_ = sid;
|
||||
setParameter("Sid", sid);
|
||||
std::string GetInstanceRequest::getSid() const {
|
||||
return sid_;
|
||||
}
|
||||
|
||||
int GetInstanceRequest::getPort()const
|
||||
{
|
||||
return port_;
|
||||
void GetInstanceRequest::setSid(const std::string &sid) {
|
||||
sid_ = sid;
|
||||
setParameter(std::string("Sid"), sid);
|
||||
}
|
||||
|
||||
void GetInstanceRequest::setPort(int port)
|
||||
{
|
||||
port_ = port;
|
||||
setParameter("Port", std::to_string(port));
|
||||
int GetInstanceRequest::getPort() const {
|
||||
return port_;
|
||||
}
|
||||
|
||||
std::string GetInstanceRequest::getHost()const
|
||||
{
|
||||
return host_;
|
||||
void GetInstanceRequest::setPort(int port) {
|
||||
port_ = port;
|
||||
setParameter(std::string("Port"), std::to_string(port));
|
||||
}
|
||||
|
||||
void GetInstanceRequest::setHost(const std::string& host)
|
||||
{
|
||||
host_ = host;
|
||||
setParameter("Host", host);
|
||||
std::string GetInstanceRequest::getHost() const {
|
||||
return host_;
|
||||
}
|
||||
|
||||
void GetInstanceRequest::setHost(const std::string &host) {
|
||||
host_ = host;
|
||||
setParameter(std::string("Host"), host);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,56 +40,56 @@ void GetInstanceResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto instanceNode = value["Instance"];
|
||||
if(!instanceNode["InstanceSource"].isNull())
|
||||
instance_.instanceSource = instanceNode["InstanceSource"].asString();
|
||||
if(!instanceNode["InstanceId"].isNull())
|
||||
instance_.instanceId = instanceNode["InstanceId"].asString();
|
||||
if(!instanceNode["DatabasePassword"].isNull())
|
||||
instance_.databasePassword = instanceNode["DatabasePassword"].asString();
|
||||
if(!instanceNode["VpcId"].isNull())
|
||||
instance_.vpcId = instanceNode["VpcId"].asString();
|
||||
if(!instanceNode["DatabaseUser"].isNull())
|
||||
instance_.databaseUser = instanceNode["DatabaseUser"].asString();
|
||||
if(!instanceNode["DbaId"].isNull())
|
||||
instance_.dbaId = instanceNode["DbaId"].asString();
|
||||
if(!instanceNode["UseDsql"].isNull())
|
||||
instance_.useDsql = std::stoi(instanceNode["UseDsql"].asString());
|
||||
if(!instanceNode["Port"].isNull())
|
||||
instance_.port = std::stoi(instanceNode["Port"].asString());
|
||||
if(!instanceNode["Host"].isNull())
|
||||
instance_.host = instanceNode["Host"].asString();
|
||||
if(!instanceNode["ExportTimeout"].isNull())
|
||||
instance_.exportTimeout = std::stoi(instanceNode["ExportTimeout"].asString());
|
||||
if(!instanceNode["DdlOnline"].isNull())
|
||||
instance_.ddlOnline = std::stoi(instanceNode["DdlOnline"].asString());
|
||||
if(!instanceNode["EcsInstanceId"].isNull())
|
||||
instance_.ecsInstanceId = instanceNode["EcsInstanceId"].asString();
|
||||
if(!instanceNode["EnvType"].isNull())
|
||||
instance_.envType = instanceNode["EnvType"].asString();
|
||||
if(!instanceNode["Sid"].isNull())
|
||||
instance_.sid = instanceNode["Sid"].asString();
|
||||
if(!instanceNode["UseDsql"].isNull())
|
||||
instance_.useDsql = std::stoi(instanceNode["UseDsql"].asString());
|
||||
if(!instanceNode["EcsInstanceId"].isNull())
|
||||
instance_.ecsInstanceId = instanceNode["EcsInstanceId"].asString();
|
||||
if(!instanceNode["DbaId"].isNull())
|
||||
instance_.dbaId = instanceNode["DbaId"].asString();
|
||||
if(!instanceNode["VpcId"].isNull())
|
||||
instance_.vpcId = instanceNode["VpcId"].asString();
|
||||
if(!instanceNode["EcsRegion"].isNull())
|
||||
instance_.ecsRegion = instanceNode["EcsRegion"].asString();
|
||||
if(!instanceNode["InstanceAlias"].isNull())
|
||||
instance_.instanceAlias = instanceNode["InstanceAlias"].asString();
|
||||
if(!instanceNode["State"].isNull())
|
||||
instance_.state = instanceNode["State"].asString();
|
||||
if(!instanceNode["DatabaseUser"].isNull())
|
||||
instance_.databaseUser = instanceNode["DatabaseUser"].asString();
|
||||
if(!instanceNode["InstanceType"].isNull())
|
||||
instance_.instanceType = instanceNode["InstanceType"].asString();
|
||||
if(!instanceNode["DbaNickName"].isNull())
|
||||
instance_.dbaNickName = instanceNode["DbaNickName"].asString();
|
||||
if(!instanceNode["DataLinkName"].isNull())
|
||||
instance_.dataLinkName = instanceNode["DataLinkName"].asString();
|
||||
if(!instanceNode["QueryTimeout"].isNull())
|
||||
instance_.queryTimeout = std::stoi(instanceNode["QueryTimeout"].asString());
|
||||
if(!instanceNode["SafeRuleId"].isNull())
|
||||
instance_.safeRuleId = instanceNode["SafeRuleId"].asString();
|
||||
auto allOwnerNameList = instanceNode["OwnerNameList"]["OwnerNames"];
|
||||
for (auto value : allOwnerNameList)
|
||||
instance_.ownerNameList.push_back(value.asString());
|
||||
if(!instanceNode["DbaNickName"].isNull())
|
||||
instance_.dbaNickName = instanceNode["DbaNickName"].asString();
|
||||
if(!instanceNode["QueryTimeout"].isNull())
|
||||
instance_.queryTimeout = std::stoi(instanceNode["QueryTimeout"].asString());
|
||||
if(!instanceNode["InstanceSource"].isNull())
|
||||
instance_.instanceSource = instanceNode["InstanceSource"].asString();
|
||||
if(!instanceNode["Host"].isNull())
|
||||
instance_.host = instanceNode["Host"].asString();
|
||||
if(!instanceNode["State"].isNull())
|
||||
instance_.state = instanceNode["State"].asString();
|
||||
if(!instanceNode["DataLinkName"].isNull())
|
||||
instance_.dataLinkName = instanceNode["DataLinkName"].asString();
|
||||
if(!instanceNode["ExportTimeout"].isNull())
|
||||
instance_.exportTimeout = std::stoi(instanceNode["ExportTimeout"].asString());
|
||||
if(!instanceNode["InstanceId"].isNull())
|
||||
instance_.instanceId = instanceNode["InstanceId"].asString();
|
||||
if(!instanceNode["InstanceType"].isNull())
|
||||
instance_.instanceType = instanceNode["InstanceType"].asString();
|
||||
if(!instanceNode["DatabasePassword"].isNull())
|
||||
instance_.databasePassword = instanceNode["DatabasePassword"].asString();
|
||||
if(!instanceNode["InstanceAlias"].isNull())
|
||||
instance_.instanceAlias = instanceNode["InstanceAlias"].asString();
|
||||
if(!instanceNode["DdlOnline"].isNull())
|
||||
instance_.ddlOnline = std::stoi(instanceNode["DdlOnline"].asString());
|
||||
if(!instanceNode["EcsRegion"].isNull())
|
||||
instance_.ecsRegion = instanceNode["EcsRegion"].asString();
|
||||
auto allOwnerIdList = instanceNode["OwnerIdList"]["OwnerIds"];
|
||||
for (auto value : allOwnerIdList)
|
||||
instance_.ownerIdList.push_back(value.asString());
|
||||
auto allOwnerNameList = instanceNode["OwnerNameList"]["OwnerNames"];
|
||||
for (auto value : allOwnerNameList)
|
||||
instance_.ownerNameList.push_back(value.asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/GetLogicDatabaseRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetLogicDatabaseRequest;
|
||||
|
||||
GetLogicDatabaseRequest::GetLogicDatabaseRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "GetLogicDatabase")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetLogicDatabaseRequest::~GetLogicDatabaseRequest()
|
||||
{}
|
||||
|
||||
std::string GetLogicDatabaseRequest::getDbId()const
|
||||
{
|
||||
return dbId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/GetLogicDatabaseRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetLogicDatabaseRequest;
|
||||
|
||||
GetLogicDatabaseRequest::GetLogicDatabaseRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "GetLogicDatabase") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetLogicDatabaseRequest::setDbId(const std::string& dbId)
|
||||
{
|
||||
dbId_ = dbId;
|
||||
setParameter("DbId", dbId);
|
||||
GetLogicDatabaseRequest::~GetLogicDatabaseRequest() {}
|
||||
|
||||
std::string GetLogicDatabaseRequest::getDbId() const {
|
||||
return dbId_;
|
||||
}
|
||||
|
||||
long GetLogicDatabaseRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
void GetLogicDatabaseRequest::setDbId(const std::string &dbId) {
|
||||
dbId_ = dbId;
|
||||
setParameter(std::string("DbId"), dbId);
|
||||
}
|
||||
|
||||
void GetLogicDatabaseRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
long GetLogicDatabaseRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void GetLogicDatabaseRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
|
||||
@@ -40,24 +40,24 @@ void GetLogicDatabaseResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto logicDatabaseNode = value["LogicDatabase"];
|
||||
if(!logicDatabaseNode["SearchName"].isNull())
|
||||
logicDatabase_.searchName = logicDatabaseNode["SearchName"].asString();
|
||||
if(!logicDatabaseNode["DatabaseId"].isNull())
|
||||
logicDatabase_.databaseId = logicDatabaseNode["DatabaseId"].asString();
|
||||
if(!logicDatabaseNode["Logic"].isNull())
|
||||
logicDatabase_.logic = logicDatabaseNode["Logic"].asString() == "true";
|
||||
if(!logicDatabaseNode["EnvType"].isNull())
|
||||
logicDatabase_.envType = logicDatabaseNode["EnvType"].asString();
|
||||
if(!logicDatabaseNode["SchemaName"].isNull())
|
||||
logicDatabase_.schemaName = logicDatabaseNode["SchemaName"].asString();
|
||||
if(!logicDatabaseNode["DbType"].isNull())
|
||||
logicDatabase_.dbType = logicDatabaseNode["DbType"].asString();
|
||||
auto allOwnerNameList = logicDatabaseNode["OwnerNameList"]["OwnerNames"];
|
||||
for (auto value : allOwnerNameList)
|
||||
logicDatabase_.ownerNameList.push_back(value.asString());
|
||||
if(!logicDatabaseNode["Logic"].isNull())
|
||||
logicDatabase_.logic = logicDatabaseNode["Logic"].asString() == "true";
|
||||
if(!logicDatabaseNode["SchemaName"].isNull())
|
||||
logicDatabase_.schemaName = logicDatabaseNode["SchemaName"].asString();
|
||||
if(!logicDatabaseNode["SearchName"].isNull())
|
||||
logicDatabase_.searchName = logicDatabaseNode["SearchName"].asString();
|
||||
if(!logicDatabaseNode["EnvType"].isNull())
|
||||
logicDatabase_.envType = logicDatabaseNode["EnvType"].asString();
|
||||
auto allOwnerIdList = logicDatabaseNode["OwnerIdList"]["OwnerIds"];
|
||||
for (auto value : allOwnerIdList)
|
||||
logicDatabase_.ownerIdList.push_back(value.asString());
|
||||
auto allOwnerNameList = logicDatabaseNode["OwnerNameList"]["OwnerNames"];
|
||||
for (auto value : allOwnerNameList)
|
||||
logicDatabase_.ownerNameList.push_back(value.asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/GetMetaTableColumnRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetMetaTableColumnRequest;
|
||||
|
||||
GetMetaTableColumnRequest::GetMetaTableColumnRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "GetMetaTableColumn")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetMetaTableColumnRequest::~GetMetaTableColumnRequest()
|
||||
{}
|
||||
|
||||
std::string GetMetaTableColumnRequest::getTableGuid()const
|
||||
{
|
||||
return tableGuid_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/GetMetaTableColumnRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetMetaTableColumnRequest;
|
||||
|
||||
GetMetaTableColumnRequest::GetMetaTableColumnRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "GetMetaTableColumn") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetMetaTableColumnRequest::setTableGuid(const std::string& tableGuid)
|
||||
{
|
||||
tableGuid_ = tableGuid;
|
||||
setParameter("TableGuid", tableGuid);
|
||||
GetMetaTableColumnRequest::~GetMetaTableColumnRequest() {}
|
||||
|
||||
std::string GetMetaTableColumnRequest::getTableGuid() const {
|
||||
return tableGuid_;
|
||||
}
|
||||
|
||||
long GetMetaTableColumnRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
void GetMetaTableColumnRequest::setTableGuid(const std::string &tableGuid) {
|
||||
tableGuid_ = tableGuid;
|
||||
setParameter(std::string("TableGuid"), tableGuid);
|
||||
}
|
||||
|
||||
void GetMetaTableColumnRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
long GetMetaTableColumnRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void GetMetaTableColumnRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
|
||||
@@ -43,30 +43,30 @@ void GetMetaTableColumnResult::parse(const std::string &payload)
|
||||
for (auto valueColumnListColumn : allColumnListNode)
|
||||
{
|
||||
Column columnListObject;
|
||||
if(!valueColumnListColumn["ColumnType"].isNull())
|
||||
columnListObject.columnType = valueColumnListColumn["ColumnType"].asString();
|
||||
if(!valueColumnListColumn["AutoIncrement"].isNull())
|
||||
columnListObject.autoIncrement = valueColumnListColumn["AutoIncrement"].asString() == "true";
|
||||
if(!valueColumnListColumn["ColumnId"].isNull())
|
||||
columnListObject.columnId = valueColumnListColumn["ColumnId"].asString();
|
||||
if(!valueColumnListColumn["ColumnName"].isNull())
|
||||
columnListObject.columnName = valueColumnListColumn["ColumnName"].asString();
|
||||
if(!valueColumnListColumn["Description"].isNull())
|
||||
columnListObject.description = valueColumnListColumn["Description"].asString();
|
||||
if(!valueColumnListColumn["ColumnType"].isNull())
|
||||
columnListObject.columnType = valueColumnListColumn["ColumnType"].asString();
|
||||
if(!valueColumnListColumn["Position"].isNull())
|
||||
columnListObject.position = std::stoi(valueColumnListColumn["Position"].asString());
|
||||
if(!valueColumnListColumn["AutoIncrement"].isNull())
|
||||
columnListObject.autoIncrement = valueColumnListColumn["AutoIncrement"].asString() == "true";
|
||||
if(!valueColumnListColumn["SecurityLevel"].isNull())
|
||||
columnListObject.securityLevel = valueColumnListColumn["SecurityLevel"].asString();
|
||||
if(!valueColumnListColumn["DataLength"].isNull())
|
||||
columnListObject.dataLength = std::stol(valueColumnListColumn["DataLength"].asString());
|
||||
if(!valueColumnListColumn["DataScale"].isNull())
|
||||
columnListObject.dataScale = std::stoi(valueColumnListColumn["DataScale"].asString());
|
||||
if(!valueColumnListColumn["DataPrecision"].isNull())
|
||||
columnListObject.dataPrecision = std::stoi(valueColumnListColumn["DataPrecision"].asString());
|
||||
if(!valueColumnListColumn["PrimaryKey"].isNull())
|
||||
columnListObject.primaryKey = valueColumnListColumn["PrimaryKey"].asString();
|
||||
if(!valueColumnListColumn["Description"].isNull())
|
||||
columnListObject.description = valueColumnListColumn["Description"].asString();
|
||||
if(!valueColumnListColumn["DataPrecision"].isNull())
|
||||
columnListObject.dataPrecision = std::stoi(valueColumnListColumn["DataPrecision"].asString());
|
||||
if(!valueColumnListColumn["DataScale"].isNull())
|
||||
columnListObject.dataScale = std::stoi(valueColumnListColumn["DataScale"].asString());
|
||||
if(!valueColumnListColumn["Position"].isNull())
|
||||
columnListObject.position = std::stoi(valueColumnListColumn["Position"].asString());
|
||||
if(!valueColumnListColumn["Nullable"].isNull())
|
||||
columnListObject.nullable = valueColumnListColumn["Nullable"].asString() == "true";
|
||||
if(!valueColumnListColumn["DataLength"].isNull())
|
||||
columnListObject.dataLength = std::stol(valueColumnListColumn["DataLength"].asString());
|
||||
columnList_.push_back(columnListObject);
|
||||
}
|
||||
if(!value["ErrorCode"].isNull())
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/GetMetaTableDetailInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetMetaTableDetailInfoRequest;
|
||||
|
||||
GetMetaTableDetailInfoRequest::GetMetaTableDetailInfoRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "GetMetaTableDetailInfo")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetMetaTableDetailInfoRequest::~GetMetaTableDetailInfoRequest()
|
||||
{}
|
||||
|
||||
std::string GetMetaTableDetailInfoRequest::getTableGuid()const
|
||||
{
|
||||
return tableGuid_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/GetMetaTableDetailInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetMetaTableDetailInfoRequest;
|
||||
|
||||
GetMetaTableDetailInfoRequest::GetMetaTableDetailInfoRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "GetMetaTableDetailInfo") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetMetaTableDetailInfoRequest::setTableGuid(const std::string& tableGuid)
|
||||
{
|
||||
tableGuid_ = tableGuid;
|
||||
setParameter("TableGuid", tableGuid);
|
||||
GetMetaTableDetailInfoRequest::~GetMetaTableDetailInfoRequest() {}
|
||||
|
||||
std::string GetMetaTableDetailInfoRequest::getTableGuid() const {
|
||||
return tableGuid_;
|
||||
}
|
||||
|
||||
long GetMetaTableDetailInfoRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
void GetMetaTableDetailInfoRequest::setTableGuid(const std::string &tableGuid) {
|
||||
tableGuid_ = tableGuid;
|
||||
setParameter(std::string("TableGuid"), tableGuid);
|
||||
}
|
||||
|
||||
void GetMetaTableDetailInfoRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
long GetMetaTableDetailInfoRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void GetMetaTableDetailInfoRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
|
||||
@@ -40,49 +40,49 @@ void GetMetaTableDetailInfoResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto detailInfoNode = value["DetailInfo"];
|
||||
auto allColumnListNode = detailInfoNode["ColumnList"]["Column"];
|
||||
for (auto detailInfoNodeColumnListColumn : allColumnListNode)
|
||||
{
|
||||
DetailInfo::Column columnObject;
|
||||
if(!detailInfoNodeColumnListColumn["ColumnId"].isNull())
|
||||
columnObject.columnId = detailInfoNodeColumnListColumn["ColumnId"].asString();
|
||||
if(!detailInfoNodeColumnListColumn["ColumnName"].isNull())
|
||||
columnObject.columnName = detailInfoNodeColumnListColumn["ColumnName"].asString();
|
||||
if(!detailInfoNodeColumnListColumn["ColumnType"].isNull())
|
||||
columnObject.columnType = detailInfoNodeColumnListColumn["ColumnType"].asString();
|
||||
if(!detailInfoNodeColumnListColumn["Description"].isNull())
|
||||
columnObject.description = detailInfoNodeColumnListColumn["Description"].asString();
|
||||
if(!detailInfoNodeColumnListColumn["Position"].isNull())
|
||||
columnObject.position = detailInfoNodeColumnListColumn["Position"].asString();
|
||||
if(!detailInfoNodeColumnListColumn["AutoIncrement"].isNull())
|
||||
columnObject.autoIncrement = detailInfoNodeColumnListColumn["AutoIncrement"].asString() == "true";
|
||||
if(!detailInfoNodeColumnListColumn["DataLength"].isNull())
|
||||
columnObject.dataLength = std::stol(detailInfoNodeColumnListColumn["DataLength"].asString());
|
||||
if(!detailInfoNodeColumnListColumn["DataScale"].isNull())
|
||||
columnObject.dataScale = std::stoi(detailInfoNodeColumnListColumn["DataScale"].asString());
|
||||
if(!detailInfoNodeColumnListColumn["DataPrecision"].isNull())
|
||||
columnObject.dataPrecision = std::stoi(detailInfoNodeColumnListColumn["DataPrecision"].asString());
|
||||
if(!detailInfoNodeColumnListColumn["Nullable"].isNull())
|
||||
columnObject.nullable = detailInfoNodeColumnListColumn["Nullable"].asString() == "true";
|
||||
detailInfo_.columnList.push_back(columnObject);
|
||||
}
|
||||
auto allIndexListNode = detailInfoNode["IndexList"]["Index"];
|
||||
for (auto detailInfoNodeIndexListIndex : allIndexListNode)
|
||||
{
|
||||
DetailInfo::Index indexObject;
|
||||
if(!detailInfoNodeIndexListIndex["IndexName"].isNull())
|
||||
indexObject.indexName = detailInfoNodeIndexListIndex["IndexName"].asString();
|
||||
if(!detailInfoNodeIndexListIndex["IndexId"].isNull())
|
||||
indexObject.indexId = detailInfoNodeIndexListIndex["IndexId"].asString();
|
||||
if(!detailInfoNodeIndexListIndex["Unique"].isNull())
|
||||
indexObject.unique = detailInfoNodeIndexListIndex["Unique"].asString() == "true";
|
||||
if(!detailInfoNodeIndexListIndex["IndexType"].isNull())
|
||||
indexObject.indexType = detailInfoNodeIndexListIndex["IndexType"].asString();
|
||||
if(!detailInfoNodeIndexListIndex["IndexId"].isNull())
|
||||
indexObject.indexId = detailInfoNodeIndexListIndex["IndexId"].asString();
|
||||
auto allIndexColumns = value["IndexColumns"]["ColumnNames"];
|
||||
for (auto value : allIndexColumns)
|
||||
indexObject.indexColumns.push_back(value.asString());
|
||||
detailInfo_.indexList.push_back(indexObject);
|
||||
}
|
||||
auto allColumnListNode = detailInfoNode["ColumnList"]["Column"];
|
||||
for (auto detailInfoNodeColumnListColumn : allColumnListNode)
|
||||
{
|
||||
DetailInfo::Column columnObject;
|
||||
if(!detailInfoNodeColumnListColumn["ColumnName"].isNull())
|
||||
columnObject.columnName = detailInfoNodeColumnListColumn["ColumnName"].asString();
|
||||
if(!detailInfoNodeColumnListColumn["Description"].isNull())
|
||||
columnObject.description = detailInfoNodeColumnListColumn["Description"].asString();
|
||||
if(!detailInfoNodeColumnListColumn["DataScale"].isNull())
|
||||
columnObject.dataScale = std::stoi(detailInfoNodeColumnListColumn["DataScale"].asString());
|
||||
if(!detailInfoNodeColumnListColumn["DataPrecision"].isNull())
|
||||
columnObject.dataPrecision = std::stoi(detailInfoNodeColumnListColumn["DataPrecision"].asString());
|
||||
if(!detailInfoNodeColumnListColumn["ColumnType"].isNull())
|
||||
columnObject.columnType = detailInfoNodeColumnListColumn["ColumnType"].asString();
|
||||
if(!detailInfoNodeColumnListColumn["AutoIncrement"].isNull())
|
||||
columnObject.autoIncrement = detailInfoNodeColumnListColumn["AutoIncrement"].asString() == "true";
|
||||
if(!detailInfoNodeColumnListColumn["Position"].isNull())
|
||||
columnObject.position = detailInfoNodeColumnListColumn["Position"].asString();
|
||||
if(!detailInfoNodeColumnListColumn["Nullable"].isNull())
|
||||
columnObject.nullable = detailInfoNodeColumnListColumn["Nullable"].asString() == "true";
|
||||
if(!detailInfoNodeColumnListColumn["ColumnId"].isNull())
|
||||
columnObject.columnId = detailInfoNodeColumnListColumn["ColumnId"].asString();
|
||||
if(!detailInfoNodeColumnListColumn["DataLength"].isNull())
|
||||
columnObject.dataLength = std::stol(detailInfoNodeColumnListColumn["DataLength"].asString());
|
||||
detailInfo_.columnList.push_back(columnObject);
|
||||
}
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
|
||||
@@ -1,95 +1,81 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/GetOpLogRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetOpLogRequest;
|
||||
|
||||
GetOpLogRequest::GetOpLogRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "GetOpLog")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetOpLogRequest::~GetOpLogRequest()
|
||||
{}
|
||||
|
||||
std::string GetOpLogRequest::getModule()const
|
||||
{
|
||||
return module_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/GetOpLogRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetOpLogRequest;
|
||||
|
||||
GetOpLogRequest::GetOpLogRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "GetOpLog") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetOpLogRequest::setModule(const std::string& module)
|
||||
{
|
||||
module_ = module;
|
||||
setParameter("Module", module);
|
||||
GetOpLogRequest::~GetOpLogRequest() {}
|
||||
|
||||
std::string GetOpLogRequest::getModule() const {
|
||||
return module_;
|
||||
}
|
||||
|
||||
std::string GetOpLogRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
void GetOpLogRequest::setModule(const std::string &module) {
|
||||
module_ = module;
|
||||
setParameter(std::string("Module"), module);
|
||||
}
|
||||
|
||||
void GetOpLogRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
std::string GetOpLogRequest::getEndTime() const {
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string GetOpLogRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
void GetOpLogRequest::setEndTime(const std::string &endTime) {
|
||||
endTime_ = endTime;
|
||||
setParameter(std::string("EndTime"), endTime);
|
||||
}
|
||||
|
||||
void GetOpLogRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
std::string GetOpLogRequest::getStartTime() const {
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
long GetOpLogRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
void GetOpLogRequest::setStartTime(const std::string &startTime) {
|
||||
startTime_ = startTime;
|
||||
setParameter(std::string("StartTime"), startTime);
|
||||
}
|
||||
|
||||
void GetOpLogRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
long GetOpLogRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
int GetOpLogRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
void GetOpLogRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
void GetOpLogRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
int GetOpLogRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
int GetOpLogRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
void GetOpLogRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
void GetOpLogRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
int GetOpLogRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void GetOpLogRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
|
||||
@@ -43,18 +43,18 @@ void GetOpLogResult::parse(const std::string &payload)
|
||||
for (auto valueOpLogDetailsOpLogDetail : allOpLogDetailsNode)
|
||||
{
|
||||
OpLogDetail opLogDetailsObject;
|
||||
if(!valueOpLogDetailsOpLogDetail["UserId"].isNull())
|
||||
opLogDetailsObject.userId = std::stol(valueOpLogDetailsOpLogDetail["UserId"].asString());
|
||||
if(!valueOpLogDetailsOpLogDetail["Module"].isNull())
|
||||
opLogDetailsObject.module = valueOpLogDetailsOpLogDetail["Module"].asString();
|
||||
if(!valueOpLogDetailsOpLogDetail["Database"].isNull())
|
||||
opLogDetailsObject.database = valueOpLogDetailsOpLogDetail["Database"].asString();
|
||||
if(!valueOpLogDetailsOpLogDetail["UserId"].isNull())
|
||||
opLogDetailsObject.userId = std::stol(valueOpLogDetailsOpLogDetail["UserId"].asString());
|
||||
if(!valueOpLogDetailsOpLogDetail["OpContent"].isNull())
|
||||
opLogDetailsObject.opContent = valueOpLogDetailsOpLogDetail["OpContent"].asString();
|
||||
if(!valueOpLogDetailsOpLogDetail["UserNick"].isNull())
|
||||
opLogDetailsObject.userNick = valueOpLogDetailsOpLogDetail["UserNick"].asString();
|
||||
if(!valueOpLogDetailsOpLogDetail["OrderId"].isNull())
|
||||
opLogDetailsObject.orderId = std::stol(valueOpLogDetailsOpLogDetail["OrderId"].asString());
|
||||
if(!valueOpLogDetailsOpLogDetail["Module"].isNull())
|
||||
opLogDetailsObject.module = valueOpLogDetailsOpLogDetail["Module"].asString();
|
||||
if(!valueOpLogDetailsOpLogDetail["OpTime"].isNull())
|
||||
opLogDetailsObject.opTime = valueOpLogDetailsOpLogDetail["OpTime"].asString();
|
||||
opLogDetails_.push_back(opLogDetailsObject);
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/GetOrderBaseInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetOrderBaseInfoRequest;
|
||||
|
||||
GetOrderBaseInfoRequest::GetOrderBaseInfoRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "GetOrderBaseInfo")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetOrderBaseInfoRequest::~GetOrderBaseInfoRequest()
|
||||
{}
|
||||
|
||||
long GetOrderBaseInfoRequest::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/GetOrderBaseInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetOrderBaseInfoRequest;
|
||||
|
||||
GetOrderBaseInfoRequest::GetOrderBaseInfoRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "GetOrderBaseInfo") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetOrderBaseInfoRequest::setOrderId(long orderId)
|
||||
{
|
||||
orderId_ = orderId;
|
||||
setParameter("OrderId", std::to_string(orderId));
|
||||
GetOrderBaseInfoRequest::~GetOrderBaseInfoRequest() {}
|
||||
|
||||
long GetOrderBaseInfoRequest::getOrderId() const {
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
long GetOrderBaseInfoRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
void GetOrderBaseInfoRequest::setOrderId(long orderId) {
|
||||
orderId_ = orderId;
|
||||
setParameter(std::string("OrderId"), std::to_string(orderId));
|
||||
}
|
||||
|
||||
void GetOrderBaseInfoRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
long GetOrderBaseInfoRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void GetOrderBaseInfoRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
|
||||
@@ -40,34 +40,34 @@ void GetOrderBaseInfoResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto orderBaseInfoNode = value["OrderBaseInfo"];
|
||||
if(!orderBaseInfoNode["StatusDesc"].isNull())
|
||||
orderBaseInfo_.statusDesc = orderBaseInfoNode["StatusDesc"].asString();
|
||||
if(!orderBaseInfoNode["WorkflowStatusDesc"].isNull())
|
||||
orderBaseInfo_.workflowStatusDesc = orderBaseInfoNode["WorkflowStatusDesc"].asString();
|
||||
if(!orderBaseInfoNode["Comment"].isNull())
|
||||
orderBaseInfo_.comment = orderBaseInfoNode["Comment"].asString();
|
||||
if(!orderBaseInfoNode["CreateTime"].isNull())
|
||||
orderBaseInfo_.createTime = orderBaseInfoNode["CreateTime"].asString();
|
||||
if(!orderBaseInfoNode["WorkflowInstanceId"].isNull())
|
||||
orderBaseInfo_.workflowInstanceId = std::stol(orderBaseInfoNode["WorkflowInstanceId"].asString());
|
||||
if(!orderBaseInfoNode["Committer"].isNull())
|
||||
orderBaseInfo_.committer = orderBaseInfoNode["Committer"].asString();
|
||||
if(!orderBaseInfoNode["OrderId"].isNull())
|
||||
orderBaseInfo_.orderId = std::stol(orderBaseInfoNode["OrderId"].asString());
|
||||
if(!orderBaseInfoNode["LastModifyTime"].isNull())
|
||||
orderBaseInfo_.lastModifyTime = orderBaseInfoNode["LastModifyTime"].asString();
|
||||
if(!orderBaseInfoNode["PluginType"].isNull())
|
||||
orderBaseInfo_.pluginType = orderBaseInfoNode["PluginType"].asString();
|
||||
if(!orderBaseInfoNode["StatusCode"].isNull())
|
||||
orderBaseInfo_.statusCode = orderBaseInfoNode["StatusCode"].asString();
|
||||
if(!orderBaseInfoNode["WorkflowInstanceId"].isNull())
|
||||
orderBaseInfo_.workflowInstanceId = std::stol(orderBaseInfoNode["WorkflowInstanceId"].asString());
|
||||
if(!orderBaseInfoNode["CommitterId"].isNull())
|
||||
orderBaseInfo_.committerId = std::stol(orderBaseInfoNode["CommitterId"].asString());
|
||||
auto allRelatedUserList = orderBaseInfoNode["RelatedUserList"]["UserIds"];
|
||||
for (auto value : allRelatedUserList)
|
||||
orderBaseInfo_.relatedUserList.push_back(value.asString());
|
||||
if(!orderBaseInfoNode["LastModifyTime"].isNull())
|
||||
orderBaseInfo_.lastModifyTime = orderBaseInfoNode["LastModifyTime"].asString();
|
||||
if(!orderBaseInfoNode["StatusCode"].isNull())
|
||||
orderBaseInfo_.statusCode = orderBaseInfoNode["StatusCode"].asString();
|
||||
if(!orderBaseInfoNode["WorkflowStatusDesc"].isNull())
|
||||
orderBaseInfo_.workflowStatusDesc = orderBaseInfoNode["WorkflowStatusDesc"].asString();
|
||||
if(!orderBaseInfoNode["StatusDesc"].isNull())
|
||||
orderBaseInfo_.statusDesc = orderBaseInfoNode["StatusDesc"].asString();
|
||||
if(!orderBaseInfoNode["PluginType"].isNull())
|
||||
orderBaseInfo_.pluginType = orderBaseInfoNode["PluginType"].asString();
|
||||
if(!orderBaseInfoNode["OrderId"].isNull())
|
||||
orderBaseInfo_.orderId = std::stol(orderBaseInfoNode["OrderId"].asString());
|
||||
auto allRelatedUserNickList = orderBaseInfoNode["RelatedUserNickList"]["UserNicks"];
|
||||
for (auto value : allRelatedUserNickList)
|
||||
orderBaseInfo_.relatedUserNickList.push_back(value.asString());
|
||||
auto allRelatedUserList = orderBaseInfoNode["RelatedUserList"]["UserIds"];
|
||||
for (auto value : allRelatedUserList)
|
||||
orderBaseInfo_.relatedUserList.push_back(value.asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/GetOwnerApplyOrderDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetOwnerApplyOrderDetailRequest;
|
||||
|
||||
GetOwnerApplyOrderDetailRequest::GetOwnerApplyOrderDetailRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "GetOwnerApplyOrderDetail")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetOwnerApplyOrderDetailRequest::~GetOwnerApplyOrderDetailRequest()
|
||||
{}
|
||||
|
||||
long GetOwnerApplyOrderDetailRequest::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/GetOwnerApplyOrderDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetOwnerApplyOrderDetailRequest;
|
||||
|
||||
GetOwnerApplyOrderDetailRequest::GetOwnerApplyOrderDetailRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "GetOwnerApplyOrderDetail") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetOwnerApplyOrderDetailRequest::setOrderId(long orderId)
|
||||
{
|
||||
orderId_ = orderId;
|
||||
setParameter("OrderId", std::to_string(orderId));
|
||||
GetOwnerApplyOrderDetailRequest::~GetOwnerApplyOrderDetailRequest() {}
|
||||
|
||||
long GetOwnerApplyOrderDetailRequest::getOrderId() const {
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
long GetOwnerApplyOrderDetailRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
void GetOwnerApplyOrderDetailRequest::setOrderId(long orderId) {
|
||||
orderId_ = orderId;
|
||||
setParameter(std::string("OrderId"), std::to_string(orderId));
|
||||
}
|
||||
|
||||
void GetOwnerApplyOrderDetailRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
long GetOwnerApplyOrderDetailRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void GetOwnerApplyOrderDetailRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
|
||||
@@ -51,28 +51,28 @@ void GetOwnerApplyOrderDetailResult::parse(const std::string &payload)
|
||||
if(!ownerApplyOrderDetailNodeResourcesResource["TargetId"].isNull())
|
||||
resourceObject.targetId = ownerApplyOrderDetailNodeResourcesResource["TargetId"].asString();
|
||||
auto resourceDetailNode = value["ResourceDetail"];
|
||||
if(!resourceDetailNode["TableName"].isNull())
|
||||
resourceObject.resourceDetail.tableName = resourceDetailNode["TableName"].asString();
|
||||
if(!resourceDetailNode["SearchName"].isNull())
|
||||
resourceObject.resourceDetail.searchName = resourceDetailNode["SearchName"].asString();
|
||||
if(!resourceDetailNode["EnvType"].isNull())
|
||||
resourceObject.resourceDetail.envType = resourceDetailNode["EnvType"].asString();
|
||||
if(!resourceDetailNode["DbType"].isNull())
|
||||
resourceObject.resourceDetail.dbType = resourceDetailNode["DbType"].asString();
|
||||
auto allOwnerNickNames = resourceDetailNode["OwnerNickNames"]["OwnerNickName"];
|
||||
for (auto value : allOwnerNickNames)
|
||||
resourceObject.resourceDetail.ownerNickNames.push_back(value.asString());
|
||||
if(!resourceDetailNode["EnvType"].isNull())
|
||||
resourceObject.resourceDetail.envType = resourceDetailNode["EnvType"].asString();
|
||||
if(!resourceDetailNode["TableName"].isNull())
|
||||
resourceObject.resourceDetail.tableName = resourceDetailNode["TableName"].asString();
|
||||
auto allOwnerIds = resourceDetailNode["OwnerIds"]["OwnerId"];
|
||||
for (auto value : allOwnerIds)
|
||||
resourceObject.resourceDetail.ownerIds.push_back(value.asString());
|
||||
auto allOwnerNickNames = resourceDetailNode["OwnerNickNames"]["OwnerNickName"];
|
||||
for (auto value : allOwnerNickNames)
|
||||
resourceObject.resourceDetail.ownerNickNames.push_back(value.asString());
|
||||
ownerApplyOrderDetail_.resources.push_back(resourceObject);
|
||||
}
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/GetPermApplyOrderDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetPermApplyOrderDetailRequest;
|
||||
|
||||
GetPermApplyOrderDetailRequest::GetPermApplyOrderDetailRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "GetPermApplyOrderDetail")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetPermApplyOrderDetailRequest::~GetPermApplyOrderDetailRequest()
|
||||
{}
|
||||
|
||||
long GetPermApplyOrderDetailRequest::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/GetPermApplyOrderDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetPermApplyOrderDetailRequest;
|
||||
|
||||
GetPermApplyOrderDetailRequest::GetPermApplyOrderDetailRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "GetPermApplyOrderDetail") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetPermApplyOrderDetailRequest::setOrderId(long orderId)
|
||||
{
|
||||
orderId_ = orderId;
|
||||
setParameter("OrderId", std::to_string(orderId));
|
||||
GetPermApplyOrderDetailRequest::~GetPermApplyOrderDetailRequest() {}
|
||||
|
||||
long GetPermApplyOrderDetailRequest::getOrderId() const {
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
long GetPermApplyOrderDetailRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
void GetPermApplyOrderDetailRequest::setOrderId(long orderId) {
|
||||
orderId_ = orderId;
|
||||
setParameter(std::string("OrderId"), std::to_string(orderId));
|
||||
}
|
||||
|
||||
void GetPermApplyOrderDetailRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
long GetPermApplyOrderDetailRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void GetPermApplyOrderDetailRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
|
||||
@@ -40,72 +40,72 @@ void GetPermApplyOrderDetailResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto permApplyOrderDetailNode = value["PermApplyOrderDetail"];
|
||||
if(!permApplyOrderDetailNode["ApplyType"].isNull())
|
||||
permApplyOrderDetail_.applyType = permApplyOrderDetailNode["ApplyType"].asString();
|
||||
if(!permApplyOrderDetailNode["PermType"].isNull())
|
||||
permApplyOrderDetail_.permType = std::stol(permApplyOrderDetailNode["PermType"].asString());
|
||||
if(!permApplyOrderDetailNode["Seconds"].isNull())
|
||||
permApplyOrderDetail_.seconds = std::stol(permApplyOrderDetailNode["Seconds"].asString());
|
||||
if(!permApplyOrderDetailNode["ApplyType"].isNull())
|
||||
permApplyOrderDetail_.applyType = permApplyOrderDetailNode["ApplyType"].asString();
|
||||
auto allResourcesNode = permApplyOrderDetailNode["Resources"]["Resource"];
|
||||
for (auto permApplyOrderDetailNodeResourcesResource : allResourcesNode)
|
||||
{
|
||||
PermApplyOrderDetail::Resource resourceObject;
|
||||
auto databaseInfoNode = value["DatabaseInfo"];
|
||||
if(!databaseInfoNode["SearchName"].isNull())
|
||||
resourceObject.databaseInfo.searchName = databaseInfoNode["SearchName"].asString();
|
||||
if(!databaseInfoNode["DbId"].isNull())
|
||||
resourceObject.databaseInfo.dbId = std::stol(databaseInfoNode["DbId"].asString());
|
||||
if(!databaseInfoNode["Logic"].isNull())
|
||||
resourceObject.databaseInfo.logic = databaseInfoNode["Logic"].asString() == "true";
|
||||
if(!databaseInfoNode["EnvType"].isNull())
|
||||
resourceObject.databaseInfo.envType = databaseInfoNode["EnvType"].asString();
|
||||
if(!databaseInfoNode["DbType"].isNull())
|
||||
resourceObject.databaseInfo.dbType = databaseInfoNode["DbType"].asString();
|
||||
auto allOwnerNickNames = databaseInfoNode["OwnerNickNames"]["OwnerNickName"];
|
||||
for (auto value : allOwnerNickNames)
|
||||
resourceObject.databaseInfo.ownerNickNames.push_back(value.asString());
|
||||
if(!databaseInfoNode["SearchName"].isNull())
|
||||
resourceObject.databaseInfo.searchName = databaseInfoNode["SearchName"].asString();
|
||||
if(!databaseInfoNode["EnvType"].isNull())
|
||||
resourceObject.databaseInfo.envType = databaseInfoNode["EnvType"].asString();
|
||||
auto allOwnerIds = databaseInfoNode["OwnerIds"]["OwnerId"];
|
||||
for (auto value : allOwnerIds)
|
||||
resourceObject.databaseInfo.ownerIds.push_back(value.asString());
|
||||
auto columnInfoNode = value["ColumnInfo"];
|
||||
if(!columnInfoNode["ColumnName"].isNull())
|
||||
resourceObject.columnInfo.columnName = columnInfoNode["ColumnName"].asString();
|
||||
if(!columnInfoNode["TableName"].isNull())
|
||||
resourceObject.columnInfo.tableName = columnInfoNode["TableName"].asString();
|
||||
auto allOwnerNickNames = databaseInfoNode["OwnerNickNames"]["OwnerNickName"];
|
||||
for (auto value : allOwnerNickNames)
|
||||
resourceObject.databaseInfo.ownerNickNames.push_back(value.asString());
|
||||
auto tableInfoNode = value["TableInfo"];
|
||||
if(!tableInfoNode["TableName"].isNull())
|
||||
resourceObject.tableInfo.tableName = tableInfoNode["TableName"].asString();
|
||||
auto columnInfoNode = value["ColumnInfo"];
|
||||
if(!columnInfoNode["TableName"].isNull())
|
||||
resourceObject.columnInfo.tableName = columnInfoNode["TableName"].asString();
|
||||
if(!columnInfoNode["ColumnName"].isNull())
|
||||
resourceObject.columnInfo.columnName = columnInfoNode["ColumnName"].asString();
|
||||
auto instanceInfoNode = value["InstanceInfo"];
|
||||
if(!instanceInfoNode["DbaId"].isNull())
|
||||
resourceObject.instanceInfo.dbaId = std::stol(instanceInfoNode["DbaId"].asString());
|
||||
if(!instanceInfoNode["SearchName"].isNull())
|
||||
resourceObject.instanceInfo.searchName = instanceInfoNode["SearchName"].asString();
|
||||
if(!instanceInfoNode["InstanceId"].isNull())
|
||||
resourceObject.instanceInfo.instanceId = instanceInfoNode["InstanceId"].asString();
|
||||
if(!instanceInfoNode["Port"].isNull())
|
||||
resourceObject.instanceInfo.port = std::stol(instanceInfoNode["Port"].asString());
|
||||
if(!instanceInfoNode["Host"].isNull())
|
||||
resourceObject.instanceInfo.host = instanceInfoNode["Host"].asString();
|
||||
if(!instanceInfoNode["DbaNickName"].isNull())
|
||||
resourceObject.instanceInfo.dbaNickName = instanceInfoNode["DbaNickName"].asString();
|
||||
if(!instanceInfoNode["EnvType"].isNull())
|
||||
resourceObject.instanceInfo.envType = instanceInfoNode["EnvType"].asString();
|
||||
if(!instanceInfoNode["SearchName"].isNull())
|
||||
resourceObject.instanceInfo.searchName = instanceInfoNode["SearchName"].asString();
|
||||
if(!instanceInfoNode["DbType"].isNull())
|
||||
resourceObject.instanceInfo.dbType = instanceInfoNode["DbType"].asString();
|
||||
auto allOwnerNickName = instanceInfoNode["OwnerNickName"]["OwnerNickName"];
|
||||
for (auto value : allOwnerNickName)
|
||||
resourceObject.instanceInfo.ownerNickName.push_back(value.asString());
|
||||
if(!instanceInfoNode["EnvType"].isNull())
|
||||
resourceObject.instanceInfo.envType = instanceInfoNode["EnvType"].asString();
|
||||
if(!instanceInfoNode["Host"].isNull())
|
||||
resourceObject.instanceInfo.host = instanceInfoNode["Host"].asString();
|
||||
if(!instanceInfoNode["Port"].isNull())
|
||||
resourceObject.instanceInfo.port = std::stol(instanceInfoNode["Port"].asString());
|
||||
if(!instanceInfoNode["DbaId"].isNull())
|
||||
resourceObject.instanceInfo.dbaId = std::stol(instanceInfoNode["DbaId"].asString());
|
||||
if(!instanceInfoNode["DbaNickName"].isNull())
|
||||
resourceObject.instanceInfo.dbaNickName = instanceInfoNode["DbaNickName"].asString();
|
||||
auto allOwnerIds1 = instanceInfoNode["OwnerIds"]["OwnerId"];
|
||||
for (auto value : allOwnerIds1)
|
||||
resourceObject.instanceInfo.ownerIds1.push_back(value.asString());
|
||||
auto allOwnerNickName = instanceInfoNode["OwnerNickName"]["OwnerNickName"];
|
||||
for (auto value : allOwnerNickName)
|
||||
resourceObject.instanceInfo.ownerNickName.push_back(value.asString());
|
||||
permApplyOrderDetail_.resources.push_back(resourceObject);
|
||||
}
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/GetPhysicalDatabaseRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetPhysicalDatabaseRequest;
|
||||
|
||||
GetPhysicalDatabaseRequest::GetPhysicalDatabaseRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "GetPhysicalDatabase")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetPhysicalDatabaseRequest::~GetPhysicalDatabaseRequest()
|
||||
{}
|
||||
|
||||
long GetPhysicalDatabaseRequest::getDbId()const
|
||||
{
|
||||
return dbId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/GetPhysicalDatabaseRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetPhysicalDatabaseRequest;
|
||||
|
||||
GetPhysicalDatabaseRequest::GetPhysicalDatabaseRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "GetPhysicalDatabase") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetPhysicalDatabaseRequest::setDbId(long dbId)
|
||||
{
|
||||
dbId_ = dbId;
|
||||
setParameter("DbId", std::to_string(dbId));
|
||||
GetPhysicalDatabaseRequest::~GetPhysicalDatabaseRequest() {}
|
||||
|
||||
long GetPhysicalDatabaseRequest::getDbId() const {
|
||||
return dbId_;
|
||||
}
|
||||
|
||||
long GetPhysicalDatabaseRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
void GetPhysicalDatabaseRequest::setDbId(long dbId) {
|
||||
dbId_ = dbId;
|
||||
setParameter(std::string("DbId"), std::to_string(dbId));
|
||||
}
|
||||
|
||||
void GetPhysicalDatabaseRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
long GetPhysicalDatabaseRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void GetPhysicalDatabaseRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
|
||||
@@ -40,40 +40,40 @@ void GetPhysicalDatabaseResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto databaseNode = value["Database"];
|
||||
if(!databaseNode["SearchName"].isNull())
|
||||
database_.searchName = databaseNode["SearchName"].asString();
|
||||
if(!databaseNode["DatabaseId"].isNull())
|
||||
database_.databaseId = databaseNode["DatabaseId"].asString();
|
||||
if(!databaseNode["Host"].isNull())
|
||||
database_.host = databaseNode["Host"].asString();
|
||||
if(!databaseNode["CatalogName"].isNull())
|
||||
database_.catalogName = databaseNode["CatalogName"].asString();
|
||||
if(!databaseNode["DbaName"].isNull())
|
||||
database_.dbaName = databaseNode["DbaName"].asString();
|
||||
if(!databaseNode["State"].isNull())
|
||||
database_.state = databaseNode["State"].asString();
|
||||
if(!databaseNode["DbaId"].isNull())
|
||||
database_.dbaId = databaseNode["DbaId"].asString();
|
||||
if(!databaseNode["SchemaName"].isNull())
|
||||
database_.schemaName = databaseNode["SchemaName"].asString();
|
||||
if(!databaseNode["InstanceId"].isNull())
|
||||
database_.instanceId = databaseNode["InstanceId"].asString();
|
||||
if(!databaseNode["Port"].isNull())
|
||||
database_.port = std::stoi(databaseNode["Port"].asString());
|
||||
if(!databaseNode["Encoding"].isNull())
|
||||
database_.encoding = databaseNode["Encoding"].asString();
|
||||
if(!databaseNode["Host"].isNull())
|
||||
database_.host = databaseNode["Host"].asString();
|
||||
if(!databaseNode["DatabaseId"].isNull())
|
||||
database_.databaseId = databaseNode["DatabaseId"].asString();
|
||||
if(!databaseNode["DbType"].isNull())
|
||||
database_.dbType = databaseNode["DbType"].asString();
|
||||
if(!databaseNode["EnvType"].isNull())
|
||||
database_.envType = databaseNode["EnvType"].asString();
|
||||
if(!databaseNode["Sid"].isNull())
|
||||
database_.sid = databaseNode["Sid"].asString();
|
||||
if(!databaseNode["DbaName"].isNull())
|
||||
database_.dbaName = databaseNode["DbaName"].asString();
|
||||
if(!databaseNode["DbaId"].isNull())
|
||||
database_.dbaId = databaseNode["DbaId"].asString();
|
||||
if(!databaseNode["State"].isNull())
|
||||
database_.state = databaseNode["State"].asString();
|
||||
if(!databaseNode["CatalogName"].isNull())
|
||||
database_.catalogName = databaseNode["CatalogName"].asString();
|
||||
if(!databaseNode["SchemaName"].isNull())
|
||||
database_.schemaName = databaseNode["SchemaName"].asString();
|
||||
auto allOwnerNameList = databaseNode["OwnerNameList"]["OwnerNames"];
|
||||
for (auto value : allOwnerNameList)
|
||||
database_.ownerNameList.push_back(value.asString());
|
||||
if(!databaseNode["Encoding"].isNull())
|
||||
database_.encoding = databaseNode["Encoding"].asString();
|
||||
if(!databaseNode["DbType"].isNull())
|
||||
database_.dbType = databaseNode["DbType"].asString();
|
||||
if(!databaseNode["SearchName"].isNull())
|
||||
database_.searchName = databaseNode["SearchName"].asString();
|
||||
auto allOwnerIdList = databaseNode["OwnerIdList"]["OwnerIds"];
|
||||
for (auto value : allOwnerIdList)
|
||||
database_.ownerIdList.push_back(value.asString());
|
||||
auto allOwnerNameList = databaseNode["OwnerNameList"]["OwnerNames"];
|
||||
for (auto value : allOwnerNameList)
|
||||
database_.ownerNameList.push_back(value.asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
|
||||
@@ -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/dms-enterprise/model/GetSQLReviewCheckResultStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetSQLReviewCheckResultStatusRequest;
|
||||
|
||||
GetSQLReviewCheckResultStatusRequest::GetSQLReviewCheckResultStatusRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "GetSQLReviewCheckResultStatus") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetSQLReviewCheckResultStatusRequest::~GetSQLReviewCheckResultStatusRequest() {}
|
||||
|
||||
long GetSQLReviewCheckResultStatusRequest::getOrderId() const {
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
void GetSQLReviewCheckResultStatusRequest::setOrderId(long orderId) {
|
||||
orderId_ = orderId;
|
||||
setParameter(std::string("OrderId"), std::to_string(orderId));
|
||||
}
|
||||
|
||||
long GetSQLReviewCheckResultStatusRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void GetSQLReviewCheckResultStatusRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
std::string GetSQLReviewCheckResultStatusRequest::getOrderActionName() const {
|
||||
return orderActionName_;
|
||||
}
|
||||
|
||||
void GetSQLReviewCheckResultStatusRequest::setOrderActionName(const std::string &orderActionName) {
|
||||
orderActionName_ = orderActionName;
|
||||
setParameter(std::string("OrderActionName"), orderActionName);
|
||||
}
|
||||
|
||||
101
dms-enterprise/src/model/GetSQLReviewCheckResultStatusResult.cc
Normal file
101
dms-enterprise/src/model/GetSQLReviewCheckResultStatusResult.cc
Normal file
@@ -0,0 +1,101 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/GetSQLReviewCheckResultStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Dms_enterprise;
|
||||
using namespace AlibabaCloud::Dms_enterprise::Model;
|
||||
|
||||
GetSQLReviewCheckResultStatusResult::GetSQLReviewCheckResultStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetSQLReviewCheckResultStatusResult::GetSQLReviewCheckResultStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetSQLReviewCheckResultStatusResult::~GetSQLReviewCheckResultStatusResult()
|
||||
{}
|
||||
|
||||
void GetSQLReviewCheckResultStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto checkResultStatusNode = value["CheckResultStatus"];
|
||||
if(!checkResultStatusNode["TotalSQLCount"].isNull())
|
||||
checkResultStatus_.totalSQLCount = std::stol(checkResultStatusNode["TotalSQLCount"].asString());
|
||||
if(!checkResultStatusNode["CheckedCount"].isNull())
|
||||
checkResultStatus_.checkedCount = std::stol(checkResultStatusNode["CheckedCount"].asString());
|
||||
auto checkStatusResultNode = checkResultStatusNode["CheckStatusResult"];
|
||||
if(!checkStatusResultNode["New"].isNull())
|
||||
checkResultStatus_.checkStatusResult._new = std::stol(checkStatusResultNode["New"].asString());
|
||||
if(!checkStatusResultNode["Unknown"].isNull())
|
||||
checkResultStatus_.checkStatusResult.unknown = std::stol(checkStatusResultNode["Unknown"].asString());
|
||||
if(!checkStatusResultNode["CheckNotPass"].isNull())
|
||||
checkResultStatus_.checkStatusResult.checkNotPass = std::stol(checkStatusResultNode["CheckNotPass"].asString());
|
||||
if(!checkStatusResultNode["CheckPass"].isNull())
|
||||
checkResultStatus_.checkStatusResult.checkPass = std::stol(checkStatusResultNode["CheckPass"].asString());
|
||||
if(!checkStatusResultNode["ForcePass"].isNull())
|
||||
checkResultStatus_.checkStatusResult.forcePass = std::stol(checkStatusResultNode["ForcePass"].asString());
|
||||
if(!checkStatusResultNode["ForceNotPass"].isNull())
|
||||
checkResultStatus_.checkStatusResult.forceNotPass = std::stol(checkStatusResultNode["ForceNotPass"].asString());
|
||||
auto sQLReviewResultNode = checkResultStatusNode["SQLReviewResult"];
|
||||
if(!sQLReviewResultNode["MustImprove"].isNull())
|
||||
checkResultStatus_.sQLReviewResult.mustImprove = std::stol(sQLReviewResultNode["MustImprove"].asString());
|
||||
if(!sQLReviewResultNode["PotentialIssue"].isNull())
|
||||
checkResultStatus_.sQLReviewResult.potentialIssue = std::stol(sQLReviewResultNode["PotentialIssue"].asString());
|
||||
if(!sQLReviewResultNode["SuggestImprove"].isNull())
|
||||
checkResultStatus_.sQLReviewResult.suggestImprove = std::stol(sQLReviewResultNode["SuggestImprove"].asString());
|
||||
if(!sQLReviewResultNode["UseDmsToolkit"].isNull())
|
||||
checkResultStatus_.sQLReviewResult.useDmsToolkit = std::stol(sQLReviewResultNode["UseDmsToolkit"].asString());
|
||||
if(!sQLReviewResultNode["UseDmsDmlUnlock"].isNull())
|
||||
checkResultStatus_.sQLReviewResult.useDmsDmlUnlock = std::stol(sQLReviewResultNode["UseDmsDmlUnlock"].asString());
|
||||
if(!sQLReviewResultNode["TableIndexSuggest"].isNull())
|
||||
checkResultStatus_.sQLReviewResult.tableIndexSuggest = std::stol(sQLReviewResultNode["TableIndexSuggest"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string GetSQLReviewCheckResultStatusResult::getErrorCode()const
|
||||
{
|
||||
return errorCode_;
|
||||
}
|
||||
|
||||
GetSQLReviewCheckResultStatusResult::CheckResultStatus GetSQLReviewCheckResultStatusResult::getCheckResultStatus()const
|
||||
{
|
||||
return checkResultStatus_;
|
||||
}
|
||||
|
||||
std::string GetSQLReviewCheckResultStatusResult::getErrorMessage()const
|
||||
{
|
||||
return errorMessage_;
|
||||
}
|
||||
|
||||
bool GetSQLReviewCheckResultStatusResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,73 +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/dms-enterprise/model/GetStructSyncExecSqlDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetStructSyncExecSqlDetailRequest;
|
||||
|
||||
GetStructSyncExecSqlDetailRequest::GetStructSyncExecSqlDetailRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "GetStructSyncExecSqlDetail")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetStructSyncExecSqlDetailRequest::~GetStructSyncExecSqlDetailRequest()
|
||||
{}
|
||||
|
||||
long GetStructSyncExecSqlDetailRequest::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/GetStructSyncExecSqlDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetStructSyncExecSqlDetailRequest;
|
||||
|
||||
GetStructSyncExecSqlDetailRequest::GetStructSyncExecSqlDetailRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "GetStructSyncExecSqlDetail") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetStructSyncExecSqlDetailRequest::setOrderId(long orderId)
|
||||
{
|
||||
orderId_ = orderId;
|
||||
setParameter("OrderId", std::to_string(orderId));
|
||||
GetStructSyncExecSqlDetailRequest::~GetStructSyncExecSqlDetailRequest() {}
|
||||
|
||||
long GetStructSyncExecSqlDetailRequest::getOrderId() const {
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
long GetStructSyncExecSqlDetailRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
void GetStructSyncExecSqlDetailRequest::setOrderId(long orderId) {
|
||||
orderId_ = orderId;
|
||||
setParameter(std::string("OrderId"), std::to_string(orderId));
|
||||
}
|
||||
|
||||
void GetStructSyncExecSqlDetailRequest::setPageNumber(long pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
long GetStructSyncExecSqlDetailRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
long GetStructSyncExecSqlDetailRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
void GetStructSyncExecSqlDetailRequest::setPageNumber(long pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
void GetStructSyncExecSqlDetailRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
long GetStructSyncExecSqlDetailRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
long GetStructSyncExecSqlDetailRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
void GetStructSyncExecSqlDetailRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
void GetStructSyncExecSqlDetailRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
long GetStructSyncExecSqlDetailRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void GetStructSyncExecSqlDetailRequest::setPageSize(long pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
|
||||
@@ -40,16 +40,16 @@ void GetStructSyncExecSqlDetailResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto structSyncExecSqlDetailNode = value["StructSyncExecSqlDetail"];
|
||||
if(!structSyncExecSqlDetailNode["ExecSql"].isNull())
|
||||
structSyncExecSqlDetail_.execSql = structSyncExecSqlDetailNode["ExecSql"].asString();
|
||||
if(!structSyncExecSqlDetailNode["TotalSqlCount"].isNull())
|
||||
structSyncExecSqlDetail_.totalSqlCount = std::stol(structSyncExecSqlDetailNode["TotalSqlCount"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!structSyncExecSqlDetailNode["ExecSql"].isNull())
|
||||
structSyncExecSqlDetail_.execSql = structSyncExecSqlDetailNode["ExecSql"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,84 +1,72 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/GetStructSyncJobAnalyzeResultRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetStructSyncJobAnalyzeResultRequest;
|
||||
|
||||
GetStructSyncJobAnalyzeResultRequest::GetStructSyncJobAnalyzeResultRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "GetStructSyncJobAnalyzeResult")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetStructSyncJobAnalyzeResultRequest::~GetStructSyncJobAnalyzeResultRequest()
|
||||
{}
|
||||
|
||||
long GetStructSyncJobAnalyzeResultRequest::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/GetStructSyncJobAnalyzeResultRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetStructSyncJobAnalyzeResultRequest;
|
||||
|
||||
GetStructSyncJobAnalyzeResultRequest::GetStructSyncJobAnalyzeResultRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "GetStructSyncJobAnalyzeResult") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetStructSyncJobAnalyzeResultRequest::setOrderId(long orderId)
|
||||
{
|
||||
orderId_ = orderId;
|
||||
setParameter("OrderId", std::to_string(orderId));
|
||||
GetStructSyncJobAnalyzeResultRequest::~GetStructSyncJobAnalyzeResultRequest() {}
|
||||
|
||||
long GetStructSyncJobAnalyzeResultRequest::getOrderId() const {
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
std::string GetStructSyncJobAnalyzeResultRequest::getCompareType()const
|
||||
{
|
||||
return compareType_;
|
||||
void GetStructSyncJobAnalyzeResultRequest::setOrderId(long orderId) {
|
||||
orderId_ = orderId;
|
||||
setParameter(std::string("OrderId"), std::to_string(orderId));
|
||||
}
|
||||
|
||||
void GetStructSyncJobAnalyzeResultRequest::setCompareType(const std::string& compareType)
|
||||
{
|
||||
compareType_ = compareType;
|
||||
setParameter("CompareType", compareType);
|
||||
std::string GetStructSyncJobAnalyzeResultRequest::getCompareType() const {
|
||||
return compareType_;
|
||||
}
|
||||
|
||||
long GetStructSyncJobAnalyzeResultRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
void GetStructSyncJobAnalyzeResultRequest::setCompareType(const std::string &compareType) {
|
||||
compareType_ = compareType;
|
||||
setParameter(std::string("CompareType"), compareType);
|
||||
}
|
||||
|
||||
void GetStructSyncJobAnalyzeResultRequest::setPageNumber(long pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
long GetStructSyncJobAnalyzeResultRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
long GetStructSyncJobAnalyzeResultRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
void GetStructSyncJobAnalyzeResultRequest::setPageNumber(long pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
void GetStructSyncJobAnalyzeResultRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
long GetStructSyncJobAnalyzeResultRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
long GetStructSyncJobAnalyzeResultRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
void GetStructSyncJobAnalyzeResultRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
void GetStructSyncJobAnalyzeResultRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
long GetStructSyncJobAnalyzeResultRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void GetStructSyncJobAnalyzeResultRequest::setPageSize(long pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
|
||||
@@ -40,18 +40,6 @@ void GetStructSyncJobAnalyzeResultResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto structSyncJobAnalyzeResultNode = value["StructSyncJobAnalyzeResult"];
|
||||
auto allResultListNode = structSyncJobAnalyzeResultNode["ResultList"]["Result"];
|
||||
for (auto structSyncJobAnalyzeResultNodeResultListResult : allResultListNode)
|
||||
{
|
||||
StructSyncJobAnalyzeResult::Result resultObject;
|
||||
if(!structSyncJobAnalyzeResultNodeResultListResult["SourceTableName"].isNull())
|
||||
resultObject.sourceTableName = structSyncJobAnalyzeResultNodeResultListResult["SourceTableName"].asString();
|
||||
if(!structSyncJobAnalyzeResultNodeResultListResult["Script"].isNull())
|
||||
resultObject.script = structSyncJobAnalyzeResultNodeResultListResult["Script"].asString();
|
||||
if(!structSyncJobAnalyzeResultNodeResultListResult["TargetTableName"].isNull())
|
||||
resultObject.targetTableName = structSyncJobAnalyzeResultNodeResultListResult["TargetTableName"].asString();
|
||||
structSyncJobAnalyzeResult_.resultList.push_back(resultObject);
|
||||
}
|
||||
auto allSummaryListNode = structSyncJobAnalyzeResultNode["SummaryList"]["Summary"];
|
||||
for (auto structSyncJobAnalyzeResultNodeSummaryListSummary : allSummaryListNode)
|
||||
{
|
||||
@@ -62,12 +50,24 @@ void GetStructSyncJobAnalyzeResultResult::parse(const std::string &payload)
|
||||
summaryObject.count = std::stol(structSyncJobAnalyzeResultNodeSummaryListSummary["Count"].asString());
|
||||
structSyncJobAnalyzeResult_.summaryList.push_back(summaryObject);
|
||||
}
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
auto allResultListNode = structSyncJobAnalyzeResultNode["ResultList"]["Result"];
|
||||
for (auto structSyncJobAnalyzeResultNodeResultListResult : allResultListNode)
|
||||
{
|
||||
StructSyncJobAnalyzeResult::Result resultObject;
|
||||
if(!structSyncJobAnalyzeResultNodeResultListResult["SourceTableName"].isNull())
|
||||
resultObject.sourceTableName = structSyncJobAnalyzeResultNodeResultListResult["SourceTableName"].asString();
|
||||
if(!structSyncJobAnalyzeResultNodeResultListResult["TargetTableName"].isNull())
|
||||
resultObject.targetTableName = structSyncJobAnalyzeResultNodeResultListResult["TargetTableName"].asString();
|
||||
if(!structSyncJobAnalyzeResultNodeResultListResult["Script"].isNull())
|
||||
resultObject.script = structSyncJobAnalyzeResultNodeResultListResult["Script"].asString();
|
||||
structSyncJobAnalyzeResult_.resultList.push_back(resultObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/GetStructSyncJobDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetStructSyncJobDetailRequest;
|
||||
|
||||
GetStructSyncJobDetailRequest::GetStructSyncJobDetailRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "GetStructSyncJobDetail")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetStructSyncJobDetailRequest::~GetStructSyncJobDetailRequest()
|
||||
{}
|
||||
|
||||
long GetStructSyncJobDetailRequest::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/GetStructSyncJobDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetStructSyncJobDetailRequest;
|
||||
|
||||
GetStructSyncJobDetailRequest::GetStructSyncJobDetailRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "GetStructSyncJobDetail") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetStructSyncJobDetailRequest::setOrderId(long orderId)
|
||||
{
|
||||
orderId_ = orderId;
|
||||
setParameter("OrderId", std::to_string(orderId));
|
||||
GetStructSyncJobDetailRequest::~GetStructSyncJobDetailRequest() {}
|
||||
|
||||
long GetStructSyncJobDetailRequest::getOrderId() const {
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
long GetStructSyncJobDetailRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
void GetStructSyncJobDetailRequest::setOrderId(long orderId) {
|
||||
orderId_ = orderId;
|
||||
setParameter(std::string("OrderId"), std::to_string(orderId));
|
||||
}
|
||||
|
||||
void GetStructSyncJobDetailRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
long GetStructSyncJobDetailRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void GetStructSyncJobDetailRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
|
||||
@@ -40,8 +40,6 @@ void GetStructSyncJobDetailResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto structSyncJobDetailNode = value["StructSyncJobDetail"];
|
||||
if(!structSyncJobDetailNode["SqlCount"].isNull())
|
||||
structSyncJobDetail_.sqlCount = std::stol(structSyncJobDetailNode["SqlCount"].asString());
|
||||
if(!structSyncJobDetailNode["JobStatus"].isNull())
|
||||
structSyncJobDetail_.jobStatus = structSyncJobDetailNode["JobStatus"].asString();
|
||||
if(!structSyncJobDetailNode["Message"].isNull())
|
||||
@@ -50,18 +48,20 @@ void GetStructSyncJobDetailResult::parse(const std::string &payload)
|
||||
structSyncJobDetail_.tableAnalyzed = std::stol(structSyncJobDetailNode["TableAnalyzed"].asString());
|
||||
if(!structSyncJobDetailNode["TableCount"].isNull())
|
||||
structSyncJobDetail_.tableCount = std::stol(structSyncJobDetailNode["TableCount"].asString());
|
||||
if(!structSyncJobDetailNode["SqlCount"].isNull())
|
||||
structSyncJobDetail_.sqlCount = std::stol(structSyncJobDetailNode["SqlCount"].asString());
|
||||
if(!structSyncJobDetailNode["ExecuteCount"].isNull())
|
||||
structSyncJobDetail_.executeCount = std::stol(structSyncJobDetailNode["ExecuteCount"].asString());
|
||||
if(!structSyncJobDetailNode["SecurityRule"].isNull())
|
||||
structSyncJobDetail_.securityRule = structSyncJobDetailNode["SecurityRule"].asString();
|
||||
if(!structSyncJobDetailNode["DBTaskGroupId"].isNull())
|
||||
structSyncJobDetail_.dBTaskGroupId = std::stol(structSyncJobDetailNode["DBTaskGroupId"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/GetStructSyncOrderDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetStructSyncOrderDetailRequest;
|
||||
|
||||
GetStructSyncOrderDetailRequest::GetStructSyncOrderDetailRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "GetStructSyncOrderDetail")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetStructSyncOrderDetailRequest::~GetStructSyncOrderDetailRequest()
|
||||
{}
|
||||
|
||||
long GetStructSyncOrderDetailRequest::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/GetStructSyncOrderDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetStructSyncOrderDetailRequest;
|
||||
|
||||
GetStructSyncOrderDetailRequest::GetStructSyncOrderDetailRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "GetStructSyncOrderDetail") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetStructSyncOrderDetailRequest::setOrderId(long orderId)
|
||||
{
|
||||
orderId_ = orderId;
|
||||
setParameter("OrderId", std::to_string(orderId));
|
||||
GetStructSyncOrderDetailRequest::~GetStructSyncOrderDetailRequest() {}
|
||||
|
||||
long GetStructSyncOrderDetailRequest::getOrderId() const {
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
long GetStructSyncOrderDetailRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
void GetStructSyncOrderDetailRequest::setOrderId(long orderId) {
|
||||
orderId_ = orderId;
|
||||
setParameter(std::string("OrderId"), std::to_string(orderId));
|
||||
}
|
||||
|
||||
void GetStructSyncOrderDetailRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
long GetStructSyncOrderDetailRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void GetStructSyncOrderDetailRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
|
||||
@@ -57,39 +57,39 @@ void GetStructSyncOrderDetailResult::parse(const std::string &payload)
|
||||
structSyncOrderDetail_.tableInfoList.push_back(tableInfoObject);
|
||||
}
|
||||
auto sourceDatabaseInfoNode = structSyncOrderDetailNode["SourceDatabaseInfo"];
|
||||
if(!sourceDatabaseInfoNode["SearchName"].isNull())
|
||||
structSyncOrderDetail_.sourceDatabaseInfo.searchName = sourceDatabaseInfoNode["SearchName"].asString();
|
||||
if(!sourceDatabaseInfoNode["DbId"].isNull())
|
||||
structSyncOrderDetail_.sourceDatabaseInfo.dbId = std::stol(sourceDatabaseInfoNode["DbId"].asString());
|
||||
if(!sourceDatabaseInfoNode["Logic"].isNull())
|
||||
structSyncOrderDetail_.sourceDatabaseInfo.logic = sourceDatabaseInfoNode["Logic"].asString() == "true";
|
||||
if(!sourceDatabaseInfoNode["EnvType"].isNull())
|
||||
structSyncOrderDetail_.sourceDatabaseInfo.envType = sourceDatabaseInfoNode["EnvType"].asString();
|
||||
if(!sourceDatabaseInfoNode["SearchName"].isNull())
|
||||
structSyncOrderDetail_.sourceDatabaseInfo.searchName = sourceDatabaseInfoNode["SearchName"].asString();
|
||||
if(!sourceDatabaseInfoNode["DbType"].isNull())
|
||||
structSyncOrderDetail_.sourceDatabaseInfo.dbType = sourceDatabaseInfoNode["DbType"].asString();
|
||||
if(!sourceDatabaseInfoNode["EnvType"].isNull())
|
||||
structSyncOrderDetail_.sourceDatabaseInfo.envType = sourceDatabaseInfoNode["EnvType"].asString();
|
||||
if(!sourceDatabaseInfoNode["Logic"].isNull())
|
||||
structSyncOrderDetail_.sourceDatabaseInfo.logic = sourceDatabaseInfoNode["Logic"].asString() == "true";
|
||||
auto targetDatabaseInfoNode = structSyncOrderDetailNode["TargetDatabaseInfo"];
|
||||
if(!targetDatabaseInfoNode["SearchName"].isNull())
|
||||
structSyncOrderDetail_.targetDatabaseInfo.searchName = targetDatabaseInfoNode["SearchName"].asString();
|
||||
if(!targetDatabaseInfoNode["DbId"].isNull())
|
||||
structSyncOrderDetail_.targetDatabaseInfo.dbId = std::stol(targetDatabaseInfoNode["DbId"].asString());
|
||||
if(!targetDatabaseInfoNode["Logic"].isNull())
|
||||
structSyncOrderDetail_.targetDatabaseInfo.logic = targetDatabaseInfoNode["Logic"].asString() == "true";
|
||||
if(!targetDatabaseInfoNode["EnvType"].isNull())
|
||||
structSyncOrderDetail_.targetDatabaseInfo.envType = targetDatabaseInfoNode["EnvType"].asString();
|
||||
if(!targetDatabaseInfoNode["SearchName"].isNull())
|
||||
structSyncOrderDetail_.targetDatabaseInfo.searchName = targetDatabaseInfoNode["SearchName"].asString();
|
||||
if(!targetDatabaseInfoNode["DbType"].isNull())
|
||||
structSyncOrderDetail_.targetDatabaseInfo.dbType = targetDatabaseInfoNode["DbType"].asString();
|
||||
if(!targetDatabaseInfoNode["EnvType"].isNull())
|
||||
structSyncOrderDetail_.targetDatabaseInfo.envType = targetDatabaseInfoNode["EnvType"].asString();
|
||||
if(!targetDatabaseInfoNode["Logic"].isNull())
|
||||
structSyncOrderDetail_.targetDatabaseInfo.logic = targetDatabaseInfoNode["Logic"].asString() == "true";
|
||||
auto sourceVersionInfoNode = structSyncOrderDetailNode["SourceVersionInfo"];
|
||||
if(!sourceVersionInfoNode["VersionId"].isNull())
|
||||
structSyncOrderDetail_.sourceVersionInfo.versionId = sourceVersionInfoNode["VersionId"].asString();
|
||||
auto targetVersionInfoNode = structSyncOrderDetailNode["TargetVersionInfo"];
|
||||
if(!targetVersionInfoNode["VersionId"].isNull())
|
||||
structSyncOrderDetail_.targetVersionInfo.versionId = targetVersionInfoNode["VersionId"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/GetTableDBTopologyRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetTableDBTopologyRequest;
|
||||
|
||||
GetTableDBTopologyRequest::GetTableDBTopologyRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "GetTableDBTopology")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetTableDBTopologyRequest::~GetTableDBTopologyRequest()
|
||||
{}
|
||||
|
||||
std::string GetTableDBTopologyRequest::getTableGuid()const
|
||||
{
|
||||
return tableGuid_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/GetTableDBTopologyRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetTableDBTopologyRequest;
|
||||
|
||||
GetTableDBTopologyRequest::GetTableDBTopologyRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "GetTableDBTopology") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetTableDBTopologyRequest::setTableGuid(const std::string& tableGuid)
|
||||
{
|
||||
tableGuid_ = tableGuid;
|
||||
setParameter("TableGuid", tableGuid);
|
||||
GetTableDBTopologyRequest::~GetTableDBTopologyRequest() {}
|
||||
|
||||
std::string GetTableDBTopologyRequest::getTableGuid() const {
|
||||
return tableGuid_;
|
||||
}
|
||||
|
||||
long GetTableDBTopologyRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
void GetTableDBTopologyRequest::setTableGuid(const std::string &tableGuid) {
|
||||
tableGuid_ = tableGuid;
|
||||
setParameter(std::string("TableGuid"), tableGuid);
|
||||
}
|
||||
|
||||
void GetTableDBTopologyRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
long GetTableDBTopologyRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void GetTableDBTopologyRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
|
||||
@@ -48,14 +48,14 @@ void GetTableDBTopologyResult::parse(const std::string &payload)
|
||||
for (auto dBTopologyNodeDataSourceListDataSource : allDataSourceListNode)
|
||||
{
|
||||
DBTopology::DataSource dataSourceObject;
|
||||
if(!dBTopologyNodeDataSourceListDataSource["Port"].isNull())
|
||||
dataSourceObject.port = std::stoi(dBTopologyNodeDataSourceListDataSource["Port"].asString());
|
||||
if(!dBTopologyNodeDataSourceListDataSource["Sid"].isNull())
|
||||
dataSourceObject.sid = dBTopologyNodeDataSourceListDataSource["Sid"].asString();
|
||||
if(!dBTopologyNodeDataSourceListDataSource["Host"].isNull())
|
||||
dataSourceObject.host = dBTopologyNodeDataSourceListDataSource["Host"].asString();
|
||||
if(!dBTopologyNodeDataSourceListDataSource["DbType"].isNull())
|
||||
dataSourceObject.dbType = dBTopologyNodeDataSourceListDataSource["DbType"].asString();
|
||||
if(!dBTopologyNodeDataSourceListDataSource["Sid"].isNull())
|
||||
dataSourceObject.sid = dBTopologyNodeDataSourceListDataSource["Sid"].asString();
|
||||
if(!dBTopologyNodeDataSourceListDataSource["Port"].isNull())
|
||||
dataSourceObject.port = std::stoi(dBTopologyNodeDataSourceListDataSource["Port"].asString());
|
||||
auto allDatabaseListNode = dBTopologyNodeDataSourceListDataSource["DatabaseList"]["Database"];
|
||||
for (auto dBTopologyNodeDataSourceListDataSourceDatabaseListDatabase : allDatabaseListNode)
|
||||
{
|
||||
@@ -64,20 +64,20 @@ void GetTableDBTopologyResult::parse(const std::string &payload)
|
||||
databaseListObject.dbId = dBTopologyNodeDataSourceListDataSourceDatabaseListDatabase["DbId"].asString();
|
||||
if(!dBTopologyNodeDataSourceListDataSourceDatabaseListDatabase["DbName"].isNull())
|
||||
databaseListObject.dbName = dBTopologyNodeDataSourceListDataSourceDatabaseListDatabase["DbName"].asString();
|
||||
if(!dBTopologyNodeDataSourceListDataSourceDatabaseListDatabase["EnvType"].isNull())
|
||||
databaseListObject.envType = dBTopologyNodeDataSourceListDataSourceDatabaseListDatabase["EnvType"].asString();
|
||||
if(!dBTopologyNodeDataSourceListDataSourceDatabaseListDatabase["DbType"].isNull())
|
||||
databaseListObject.dbType = dBTopologyNodeDataSourceListDataSourceDatabaseListDatabase["DbType"].asString();
|
||||
if(!dBTopologyNodeDataSourceListDataSourceDatabaseListDatabase["EnvType"].isNull())
|
||||
databaseListObject.envType = dBTopologyNodeDataSourceListDataSourceDatabaseListDatabase["EnvType"].asString();
|
||||
auto allTableListNode = dBTopologyNodeDataSourceListDataSourceDatabaseListDatabase["TableList"]["Table"];
|
||||
for (auto dBTopologyNodeDataSourceListDataSourceDatabaseListDatabaseTableListTable : allTableListNode)
|
||||
{
|
||||
DBTopology::DataSource::Database::Table tableListObject;
|
||||
if(!dBTopologyNodeDataSourceListDataSourceDatabaseListDatabaseTableListTable["TableId"].isNull())
|
||||
tableListObject.tableId = dBTopologyNodeDataSourceListDataSourceDatabaseListDatabaseTableListTable["TableId"].asString();
|
||||
if(!dBTopologyNodeDataSourceListDataSourceDatabaseListDatabaseTableListTable["TableName"].isNull())
|
||||
tableListObject.tableName = dBTopologyNodeDataSourceListDataSourceDatabaseListDatabaseTableListTable["TableName"].asString();
|
||||
if(!dBTopologyNodeDataSourceListDataSourceDatabaseListDatabaseTableListTable["TableType"].isNull())
|
||||
tableListObject.tableType = dBTopologyNodeDataSourceListDataSourceDatabaseListDatabaseTableListTable["TableType"].asString();
|
||||
if(!dBTopologyNodeDataSourceListDataSourceDatabaseListDatabaseTableListTable["TableId"].isNull())
|
||||
tableListObject.tableId = dBTopologyNodeDataSourceListDataSourceDatabaseListDatabaseTableListTable["TableId"].asString();
|
||||
databaseListObject.tableList.push_back(tableListObject);
|
||||
}
|
||||
dataSourceObject.databaseList.push_back(databaseListObject);
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/GetTableTopologyRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetTableTopologyRequest;
|
||||
|
||||
GetTableTopologyRequest::GetTableTopologyRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "GetTableTopology")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetTableTopologyRequest::~GetTableTopologyRequest()
|
||||
{}
|
||||
|
||||
std::string GetTableTopologyRequest::getTableGuid()const
|
||||
{
|
||||
return tableGuid_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/GetTableTopologyRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetTableTopologyRequest;
|
||||
|
||||
GetTableTopologyRequest::GetTableTopologyRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "GetTableTopology") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetTableTopologyRequest::setTableGuid(const std::string& tableGuid)
|
||||
{
|
||||
tableGuid_ = tableGuid;
|
||||
setParameter("TableGuid", tableGuid);
|
||||
GetTableTopologyRequest::~GetTableTopologyRequest() {}
|
||||
|
||||
std::string GetTableTopologyRequest::getTableGuid() const {
|
||||
return tableGuid_;
|
||||
}
|
||||
|
||||
long GetTableTopologyRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
void GetTableTopologyRequest::setTableGuid(const std::string &tableGuid) {
|
||||
tableGuid_ = tableGuid;
|
||||
setParameter(std::string("TableGuid"), tableGuid);
|
||||
}
|
||||
|
||||
void GetTableTopologyRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
long GetTableTopologyRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void GetTableTopologyRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
|
||||
@@ -40,46 +40,46 @@ void GetTableTopologyResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto tableTopologyNode = value["TableTopology"];
|
||||
if(!tableTopologyNode["TableName"].isNull())
|
||||
tableTopology_.tableName = tableTopologyNode["TableName"].asString();
|
||||
if(!tableTopologyNode["TableGuid"].isNull())
|
||||
tableTopology_.tableGuid = tableTopologyNode["TableGuid"].asString();
|
||||
if(!tableTopologyNode["TableName"].isNull())
|
||||
tableTopology_.tableName = tableTopologyNode["TableName"].asString();
|
||||
if(!tableTopologyNode["Logic"].isNull())
|
||||
tableTopology_.logic = tableTopologyNode["Logic"].asString() == "true";
|
||||
auto allTableTopologyInfoListNode = tableTopologyNode["TableTopologyInfoList"]["TableTopologyInfo"];
|
||||
for (auto tableTopologyNodeTableTopologyInfoListTableTopologyInfo : allTableTopologyInfoListNode)
|
||||
{
|
||||
TableTopology::TableTopologyInfo tableTopologyInfoObject;
|
||||
if(!tableTopologyNodeTableTopologyInfoListTableTopologyInfo["TableNameExpr"].isNull())
|
||||
tableTopologyInfoObject.tableNameExpr = tableTopologyNodeTableTopologyInfoListTableTopologyInfo["TableNameExpr"].asString();
|
||||
if(!tableTopologyNodeTableTopologyInfoListTableTopologyInfo["DbSearchName"].isNull())
|
||||
tableTopologyInfoObject.dbSearchName = tableTopologyNodeTableTopologyInfoListTableTopologyInfo["DbSearchName"].asString();
|
||||
if(!tableTopologyNodeTableTopologyInfoListTableTopologyInfo["InstanceSource"].isNull())
|
||||
tableTopologyInfoObject.instanceSource = tableTopologyNodeTableTopologyInfoListTableTopologyInfo["InstanceSource"].asString();
|
||||
if(!tableTopologyNodeTableTopologyInfoListTableTopologyInfo["InstanceResourceId"].isNull())
|
||||
tableTopologyInfoObject.instanceResourceId = tableTopologyNodeTableTopologyInfoListTableTopologyInfo["InstanceResourceId"].asString();
|
||||
if(!tableTopologyNodeTableTopologyInfoListTableTopologyInfo["InstanceId"].isNull())
|
||||
tableTopologyInfoObject.instanceId = std::stol(tableTopologyNodeTableTopologyInfoListTableTopologyInfo["InstanceId"].asString());
|
||||
if(!tableTopologyNodeTableTopologyInfoListTableTopologyInfo["TableNameList"].isNull())
|
||||
tableTopologyInfoObject.tableNameList = tableTopologyNodeTableTopologyInfoListTableTopologyInfo["TableNameList"].asString();
|
||||
if(!tableTopologyNodeTableTopologyInfoListTableTopologyInfo["TableNameExpr"].isNull())
|
||||
tableTopologyInfoObject.tableNameExpr = tableTopologyNodeTableTopologyInfoListTableTopologyInfo["TableNameExpr"].asString();
|
||||
if(!tableTopologyNodeTableTopologyInfoListTableTopologyInfo["TableCount"].isNull())
|
||||
tableTopologyInfoObject.tableCount = std::stol(tableTopologyNodeTableTopologyInfoListTableTopologyInfo["TableCount"].asString());
|
||||
if(!tableTopologyNodeTableTopologyInfoListTableTopologyInfo["DbId"].isNull())
|
||||
tableTopologyInfoObject.dbId = std::stol(tableTopologyNodeTableTopologyInfoListTableTopologyInfo["DbId"].asString());
|
||||
if(!tableTopologyNodeTableTopologyInfoListTableTopologyInfo["DbName"].isNull())
|
||||
tableTopologyInfoObject.dbName = tableTopologyNodeTableTopologyInfoListTableTopologyInfo["DbName"].asString();
|
||||
if(!tableTopologyNodeTableTopologyInfoListTableTopologyInfo["DbSearchName"].isNull())
|
||||
tableTopologyInfoObject.dbSearchName = tableTopologyNodeTableTopologyInfoListTableTopologyInfo["DbSearchName"].asString();
|
||||
if(!tableTopologyNodeTableTopologyInfoListTableTopologyInfo["InstanceId"].isNull())
|
||||
tableTopologyInfoObject.instanceId = std::stol(tableTopologyNodeTableTopologyInfoListTableTopologyInfo["InstanceId"].asString());
|
||||
if(!tableTopologyNodeTableTopologyInfoListTableTopologyInfo["RegionId"].isNull())
|
||||
tableTopologyInfoObject.regionId = tableTopologyNodeTableTopologyInfoListTableTopologyInfo["RegionId"].asString();
|
||||
if(!tableTopologyNodeTableTopologyInfoListTableTopologyInfo["InstanceResourceId"].isNull())
|
||||
tableTopologyInfoObject.instanceResourceId = tableTopologyNodeTableTopologyInfoListTableTopologyInfo["InstanceResourceId"].asString();
|
||||
if(!tableTopologyNodeTableTopologyInfoListTableTopologyInfo["InstanceSource"].isNull())
|
||||
tableTopologyInfoObject.instanceSource = tableTopologyNodeTableTopologyInfoListTableTopologyInfo["InstanceSource"].asString();
|
||||
if(!tableTopologyNodeTableTopologyInfoListTableTopologyInfo["DbName"].isNull())
|
||||
tableTopologyInfoObject.dbName = tableTopologyNodeTableTopologyInfoListTableTopologyInfo["DbName"].asString();
|
||||
if(!tableTopologyNodeTableTopologyInfoListTableTopologyInfo["DbType"].isNull())
|
||||
tableTopologyInfoObject.dbType = tableTopologyNodeTableTopologyInfoListTableTopologyInfo["DbType"].asString();
|
||||
tableTopology_.tableTopologyInfoList.push_back(tableTopologyInfoObject);
|
||||
}
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,40 +1,36 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/GetUserActiveTenantRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetUserActiveTenantRequest;
|
||||
|
||||
GetUserActiveTenantRequest::GetUserActiveTenantRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "GetUserActiveTenant")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetUserActiveTenantRequest::~GetUserActiveTenantRequest()
|
||||
{}
|
||||
|
||||
long GetUserActiveTenantRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/GetUserActiveTenantRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetUserActiveTenantRequest;
|
||||
|
||||
GetUserActiveTenantRequest::GetUserActiveTenantRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "GetUserActiveTenant") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetUserActiveTenantRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
GetUserActiveTenantRequest::~GetUserActiveTenantRequest() {}
|
||||
|
||||
long GetUserActiveTenantRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void GetUserActiveTenantRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
|
||||
@@ -42,10 +42,10 @@ void GetUserActiveTenantResult::parse(const std::string &payload)
|
||||
auto tenantNode = value["Tenant"];
|
||||
if(!tenantNode["Status"].isNull())
|
||||
tenant_.status = tenantNode["Status"].asString();
|
||||
if(!tenantNode["TenantName"].isNull())
|
||||
tenant_.tenantName = tenantNode["TenantName"].asString();
|
||||
if(!tenantNode["Tid"].isNull())
|
||||
tenant_.tid = std::stol(tenantNode["Tid"].asString());
|
||||
if(!tenantNode["TenantName"].isNull())
|
||||
tenant_.tenantName = tenantNode["TenantName"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
|
||||
@@ -1,62 +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/dms-enterprise/model/GetUserRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetUserRequest;
|
||||
|
||||
GetUserRequest::GetUserRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "GetUser")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetUserRequest::~GetUserRequest()
|
||||
{}
|
||||
|
||||
std::string GetUserRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/GetUserRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetUserRequest;
|
||||
|
||||
GetUserRequest::GetUserRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "GetUser") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetUserRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setParameter("UserId", userId);
|
||||
GetUserRequest::~GetUserRequest() {}
|
||||
|
||||
std::string GetUserRequest::getUserId() const {
|
||||
return userId_;
|
||||
}
|
||||
|
||||
long GetUserRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
void GetUserRequest::setUserId(const std::string &userId) {
|
||||
userId_ = userId;
|
||||
setParameter(std::string("UserId"), userId);
|
||||
}
|
||||
|
||||
void GetUserRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
long GetUserRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
std::string GetUserRequest::getUid()const
|
||||
{
|
||||
return uid_;
|
||||
void GetUserRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
void GetUserRequest::setUid(const std::string& uid)
|
||||
{
|
||||
uid_ = uid;
|
||||
setParameter("Uid", uid);
|
||||
std::string GetUserRequest::getUid() const {
|
||||
return uid_;
|
||||
}
|
||||
|
||||
void GetUserRequest::setUid(const std::string &uid) {
|
||||
uid_ = uid;
|
||||
setParameter(std::string("Uid"), uid);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,28 +40,28 @@ void GetUserResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto userNode = value["User"];
|
||||
if(!userNode["Uid"].isNull())
|
||||
user_.uid = userNode["Uid"].asString();
|
||||
if(!userNode["LastLoginTime"].isNull())
|
||||
user_.lastLoginTime = userNode["LastLoginTime"].asString();
|
||||
if(!userNode["CurResultCount"].isNull())
|
||||
user_.curResultCount = std::stol(userNode["CurResultCount"].asString());
|
||||
if(!userNode["MaxResultCount"].isNull())
|
||||
user_.maxResultCount = std::stol(userNode["MaxResultCount"].asString());
|
||||
if(!userNode["UserId"].isNull())
|
||||
user_.userId = userNode["UserId"].asString();
|
||||
if(!userNode["State"].isNull())
|
||||
user_.state = userNode["State"].asString();
|
||||
if(!userNode["CurExecuteCount"].isNull())
|
||||
user_.curExecuteCount = std::stol(userNode["CurExecuteCount"].asString());
|
||||
if(!userNode["NickName"].isNull())
|
||||
user_.nickName = userNode["NickName"].asString();
|
||||
if(!userNode["Mobile"].isNull())
|
||||
user_.mobile = userNode["Mobile"].asString();
|
||||
if(!userNode["MaxExecuteCount"].isNull())
|
||||
user_.maxExecuteCount = std::stol(userNode["MaxExecuteCount"].asString());
|
||||
if(!userNode["CurResultCount"].isNull())
|
||||
user_.curResultCount = std::stol(userNode["CurResultCount"].asString());
|
||||
if(!userNode["UserId"].isNull())
|
||||
user_.userId = userNode["UserId"].asString();
|
||||
if(!userNode["LastLoginTime"].isNull())
|
||||
user_.lastLoginTime = userNode["LastLoginTime"].asString();
|
||||
if(!userNode["MaxResultCount"].isNull())
|
||||
user_.maxResultCount = std::stol(userNode["MaxResultCount"].asString());
|
||||
if(!userNode["ParentUid"].isNull())
|
||||
user_.parentUid = std::stol(userNode["ParentUid"].asString());
|
||||
if(!userNode["NickName"].isNull())
|
||||
user_.nickName = userNode["NickName"].asString();
|
||||
if(!userNode["MaxExecuteCount"].isNull())
|
||||
user_.maxExecuteCount = std::stol(userNode["MaxExecuteCount"].asString());
|
||||
if(!userNode["CurExecuteCount"].isNull())
|
||||
user_.curExecuteCount = std::stol(userNode["CurExecuteCount"].asString());
|
||||
if(!userNode["Mobile"].isNull())
|
||||
user_.mobile = userNode["Mobile"].asString();
|
||||
if(!userNode["Uid"].isNull())
|
||||
user_.uid = userNode["Uid"].asString();
|
||||
auto allRoleIdList = userNode["RoleIdList"]["RoleIds"];
|
||||
for (auto value : allRoleIdList)
|
||||
user_.roleIdList.push_back(value.asString());
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/GetUserUploadFileJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetUserUploadFileJobRequest;
|
||||
|
||||
GetUserUploadFileJobRequest::GetUserUploadFileJobRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "GetUserUploadFileJob")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetUserUploadFileJobRequest::~GetUserUploadFileJobRequest()
|
||||
{}
|
||||
|
||||
std::string GetUserUploadFileJobRequest::getJobKey()const
|
||||
{
|
||||
return jobKey_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/GetUserUploadFileJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GetUserUploadFileJobRequest;
|
||||
|
||||
GetUserUploadFileJobRequest::GetUserUploadFileJobRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "GetUserUploadFileJob") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GetUserUploadFileJobRequest::setJobKey(const std::string& jobKey)
|
||||
{
|
||||
jobKey_ = jobKey;
|
||||
setParameter("JobKey", jobKey);
|
||||
GetUserUploadFileJobRequest::~GetUserUploadFileJobRequest() {}
|
||||
|
||||
std::string GetUserUploadFileJobRequest::getJobKey() const {
|
||||
return jobKey_;
|
||||
}
|
||||
|
||||
long GetUserUploadFileJobRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
void GetUserUploadFileJobRequest::setJobKey(const std::string &jobKey) {
|
||||
jobKey_ = jobKey;
|
||||
setParameter(std::string("JobKey"), jobKey);
|
||||
}
|
||||
|
||||
void GetUserUploadFileJobRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
long GetUserUploadFileJobRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void GetUserUploadFileJobRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
|
||||
@@ -40,39 +40,39 @@ void GetUserUploadFileJobResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto uploadFileJobDetailNode = value["UploadFileJobDetail"];
|
||||
if(!uploadFileJobDetailNode["JobStatus"].isNull())
|
||||
uploadFileJobDetail_.jobStatus = uploadFileJobDetailNode["JobStatus"].asString();
|
||||
if(!uploadFileJobDetailNode["AttachmentKey"].isNull())
|
||||
uploadFileJobDetail_.attachmentKey = uploadFileJobDetailNode["AttachmentKey"].asString();
|
||||
if(!uploadFileJobDetailNode["JobKey"].isNull())
|
||||
uploadFileJobDetail_.jobKey = uploadFileJobDetailNode["JobKey"].asString();
|
||||
if(!uploadFileJobDetailNode["FileName"].isNull())
|
||||
uploadFileJobDetail_.fileName = uploadFileJobDetailNode["FileName"].asString();
|
||||
if(!uploadFileJobDetailNode["FileSize"].isNull())
|
||||
uploadFileJobDetail_.fileSize = std::stol(uploadFileJobDetailNode["FileSize"].asString());
|
||||
if(!uploadFileJobDetailNode["FileSource"].isNull())
|
||||
uploadFileJobDetail_.fileSource = uploadFileJobDetailNode["FileSource"].asString();
|
||||
if(!uploadFileJobDetailNode["UploadType"].isNull())
|
||||
uploadFileJobDetail_.uploadType = uploadFileJobDetailNode["UploadType"].asString();
|
||||
if(!uploadFileJobDetailNode["UploadURL"].isNull())
|
||||
uploadFileJobDetail_.uploadURL = uploadFileJobDetailNode["UploadURL"].asString();
|
||||
if(!uploadFileJobDetailNode["UploadedSize"].isNull())
|
||||
uploadFileJobDetail_.uploadedSize = std::stol(uploadFileJobDetailNode["UploadedSize"].asString());
|
||||
if(!uploadFileJobDetailNode["JobStatus"].isNull())
|
||||
uploadFileJobDetail_.jobStatus = uploadFileJobDetailNode["JobStatus"].asString();
|
||||
if(!uploadFileJobDetailNode["JobStatusDesc"].isNull())
|
||||
uploadFileJobDetail_.jobStatusDesc = uploadFileJobDetailNode["JobStatusDesc"].asString();
|
||||
if(!uploadFileJobDetailNode["FileSource"].isNull())
|
||||
uploadFileJobDetail_.fileSource = uploadFileJobDetailNode["FileSource"].asString();
|
||||
if(!uploadFileJobDetailNode["FileName"].isNull())
|
||||
uploadFileJobDetail_.fileName = uploadFileJobDetailNode["FileName"].asString();
|
||||
if(!uploadFileJobDetailNode["UploadType"].isNull())
|
||||
uploadFileJobDetail_.uploadType = uploadFileJobDetailNode["UploadType"].asString();
|
||||
if(!uploadFileJobDetailNode["FileSize"].isNull())
|
||||
uploadFileJobDetail_.fileSize = std::stol(uploadFileJobDetailNode["FileSize"].asString());
|
||||
if(!uploadFileJobDetailNode["AttachmentKey"].isNull())
|
||||
uploadFileJobDetail_.attachmentKey = uploadFileJobDetailNode["AttachmentKey"].asString();
|
||||
auto uploadOSSParamNode = uploadFileJobDetailNode["UploadOSSParam"];
|
||||
if(!uploadOSSParamNode["BucketName"].isNull())
|
||||
uploadFileJobDetail_.uploadOSSParam.bucketName = uploadOSSParamNode["BucketName"].asString();
|
||||
if(!uploadOSSParamNode["Endpoint"].isNull())
|
||||
uploadFileJobDetail_.uploadOSSParam.endpoint = uploadOSSParamNode["Endpoint"].asString();
|
||||
if(!uploadOSSParamNode["BucketName"].isNull())
|
||||
uploadFileJobDetail_.uploadOSSParam.bucketName = uploadOSSParamNode["BucketName"].asString();
|
||||
if(!uploadOSSParamNode["ObjectName"].isNull())
|
||||
uploadFileJobDetail_.uploadOSSParam.objectName = uploadOSSParamNode["ObjectName"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,128 +1,108 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/GrantUserPermissionRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GrantUserPermissionRequest;
|
||||
|
||||
GrantUserPermissionRequest::GrantUserPermissionRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "GrantUserPermission")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GrantUserPermissionRequest::~GrantUserPermissionRequest()
|
||||
{}
|
||||
|
||||
std::string GrantUserPermissionRequest::getPermTypes()const
|
||||
{
|
||||
return permTypes_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/GrantUserPermissionRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::GrantUserPermissionRequest;
|
||||
|
||||
GrantUserPermissionRequest::GrantUserPermissionRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "GrantUserPermission") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void GrantUserPermissionRequest::setPermTypes(const std::string& permTypes)
|
||||
{
|
||||
permTypes_ = permTypes;
|
||||
setParameter("PermTypes", permTypes);
|
||||
GrantUserPermissionRequest::~GrantUserPermissionRequest() {}
|
||||
|
||||
std::string GrantUserPermissionRequest::getPermTypes() const {
|
||||
return permTypes_;
|
||||
}
|
||||
|
||||
std::string GrantUserPermissionRequest::getDsType()const
|
||||
{
|
||||
return dsType_;
|
||||
void GrantUserPermissionRequest::setPermTypes(const std::string &permTypes) {
|
||||
permTypes_ = permTypes;
|
||||
setParameter(std::string("PermTypes"), permTypes);
|
||||
}
|
||||
|
||||
void GrantUserPermissionRequest::setDsType(const std::string& dsType)
|
||||
{
|
||||
dsType_ = dsType;
|
||||
setParameter("DsType", dsType);
|
||||
std::string GrantUserPermissionRequest::getDsType() const {
|
||||
return dsType_;
|
||||
}
|
||||
|
||||
std::string GrantUserPermissionRequest::getExpireDate()const
|
||||
{
|
||||
return expireDate_;
|
||||
void GrantUserPermissionRequest::setDsType(const std::string &dsType) {
|
||||
dsType_ = dsType;
|
||||
setParameter(std::string("DsType"), dsType);
|
||||
}
|
||||
|
||||
void GrantUserPermissionRequest::setExpireDate(const std::string& expireDate)
|
||||
{
|
||||
expireDate_ = expireDate;
|
||||
setParameter("ExpireDate", expireDate);
|
||||
std::string GrantUserPermissionRequest::getExpireDate() const {
|
||||
return expireDate_;
|
||||
}
|
||||
|
||||
std::string GrantUserPermissionRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
void GrantUserPermissionRequest::setExpireDate(const std::string &expireDate) {
|
||||
expireDate_ = expireDate;
|
||||
setParameter(std::string("ExpireDate"), expireDate);
|
||||
}
|
||||
|
||||
void GrantUserPermissionRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setParameter("UserId", userId);
|
||||
std::string GrantUserPermissionRequest::getUserId() const {
|
||||
return userId_;
|
||||
}
|
||||
|
||||
long GrantUserPermissionRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
void GrantUserPermissionRequest::setUserId(const std::string &userId) {
|
||||
userId_ = userId;
|
||||
setParameter(std::string("UserId"), userId);
|
||||
}
|
||||
|
||||
void GrantUserPermissionRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
long GrantUserPermissionRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
std::string GrantUserPermissionRequest::getDbId()const
|
||||
{
|
||||
return dbId_;
|
||||
void GrantUserPermissionRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
void GrantUserPermissionRequest::setDbId(const std::string& dbId)
|
||||
{
|
||||
dbId_ = dbId;
|
||||
setParameter("DbId", dbId);
|
||||
std::string GrantUserPermissionRequest::getDbId() const {
|
||||
return dbId_;
|
||||
}
|
||||
|
||||
std::string GrantUserPermissionRequest::getTableId()const
|
||||
{
|
||||
return tableId_;
|
||||
void GrantUserPermissionRequest::setDbId(const std::string &dbId) {
|
||||
dbId_ = dbId;
|
||||
setParameter(std::string("DbId"), dbId);
|
||||
}
|
||||
|
||||
void GrantUserPermissionRequest::setTableId(const std::string& tableId)
|
||||
{
|
||||
tableId_ = tableId;
|
||||
setParameter("TableId", tableId);
|
||||
std::string GrantUserPermissionRequest::getTableId() const {
|
||||
return tableId_;
|
||||
}
|
||||
|
||||
bool GrantUserPermissionRequest::getLogic()const
|
||||
{
|
||||
return logic_;
|
||||
void GrantUserPermissionRequest::setTableId(const std::string &tableId) {
|
||||
tableId_ = tableId;
|
||||
setParameter(std::string("TableId"), tableId);
|
||||
}
|
||||
|
||||
void GrantUserPermissionRequest::setLogic(bool logic)
|
||||
{
|
||||
logic_ = logic;
|
||||
setParameter("Logic", logic ? "true" : "false");
|
||||
bool GrantUserPermissionRequest::getLogic() const {
|
||||
return logic_;
|
||||
}
|
||||
|
||||
std::string GrantUserPermissionRequest::getTableName()const
|
||||
{
|
||||
return tableName_;
|
||||
void GrantUserPermissionRequest::setLogic(bool logic) {
|
||||
logic_ = logic;
|
||||
setParameter(std::string("Logic"), logic ? "true" : "false");
|
||||
}
|
||||
|
||||
void GrantUserPermissionRequest::setTableName(const std::string& tableName)
|
||||
{
|
||||
tableName_ = tableName;
|
||||
setParameter("TableName", tableName);
|
||||
std::string GrantUserPermissionRequest::getTableName() const {
|
||||
return tableName_;
|
||||
}
|
||||
|
||||
void GrantUserPermissionRequest::setTableName(const std::string &tableName) {
|
||||
tableName_ = tableName;
|
||||
setParameter(std::string("TableName"), tableName);
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +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/dms-enterprise/model/ListColumnsRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::ListColumnsRequest;
|
||||
|
||||
ListColumnsRequest::ListColumnsRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "ListColumns")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListColumnsRequest::~ListColumnsRequest()
|
||||
{}
|
||||
|
||||
long ListColumnsRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/ListColumnsRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::ListColumnsRequest;
|
||||
|
||||
ListColumnsRequest::ListColumnsRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "ListColumns") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ListColumnsRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
ListColumnsRequest::~ListColumnsRequest() {}
|
||||
|
||||
long ListColumnsRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
std::string ListColumnsRequest::getTableId()const
|
||||
{
|
||||
return tableId_;
|
||||
void ListColumnsRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
void ListColumnsRequest::setTableId(const std::string& tableId)
|
||||
{
|
||||
tableId_ = tableId;
|
||||
setParameter("TableId", tableId);
|
||||
std::string ListColumnsRequest::getTableId() const {
|
||||
return tableId_;
|
||||
}
|
||||
|
||||
bool ListColumnsRequest::getLogic()const
|
||||
{
|
||||
return logic_;
|
||||
void ListColumnsRequest::setTableId(const std::string &tableId) {
|
||||
tableId_ = tableId;
|
||||
setParameter(std::string("TableId"), tableId);
|
||||
}
|
||||
|
||||
void ListColumnsRequest::setLogic(bool logic)
|
||||
{
|
||||
logic_ = logic;
|
||||
setParameter("Logic", logic ? "true" : "false");
|
||||
bool ListColumnsRequest::getLogic() const {
|
||||
return logic_;
|
||||
}
|
||||
|
||||
void ListColumnsRequest::setLogic(bool logic) {
|
||||
logic_ = logic;
|
||||
setParameter(std::string("Logic"), logic ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -43,32 +43,32 @@ void ListColumnsResult::parse(const std::string &payload)
|
||||
for (auto valueColumnListColumn : allColumnListNode)
|
||||
{
|
||||
Column columnListObject;
|
||||
if(!valueColumnListColumn["ColumnId"].isNull())
|
||||
columnListObject.columnId = valueColumnListColumn["ColumnId"].asString();
|
||||
if(!valueColumnListColumn["ColumnName"].isNull())
|
||||
columnListObject.columnName = valueColumnListColumn["ColumnName"].asString();
|
||||
if(!valueColumnListColumn["DefaultValue"].isNull())
|
||||
columnListObject.defaultValue = valueColumnListColumn["DefaultValue"].asString();
|
||||
if(!valueColumnListColumn["Description"].isNull())
|
||||
columnListObject.description = valueColumnListColumn["Description"].asString();
|
||||
if(!valueColumnListColumn["ColumnType"].isNull())
|
||||
columnListObject.columnType = valueColumnListColumn["ColumnType"].asString();
|
||||
if(!valueColumnListColumn["AutoIncrement"].isNull())
|
||||
columnListObject.autoIncrement = valueColumnListColumn["AutoIncrement"].asString() == "true";
|
||||
if(!valueColumnListColumn["FunctionType"].isNull())
|
||||
columnListObject.functionType = valueColumnListColumn["FunctionType"].asString();
|
||||
if(!valueColumnListColumn["SecurityLevel"].isNull())
|
||||
columnListObject.securityLevel = valueColumnListColumn["SecurityLevel"].asString();
|
||||
if(!valueColumnListColumn["DataLength"].isNull())
|
||||
columnListObject.dataLength = std::stol(valueColumnListColumn["DataLength"].asString());
|
||||
if(!valueColumnListColumn["DataScale"].isNull())
|
||||
columnListObject.dataScale = std::stoi(valueColumnListColumn["DataScale"].asString());
|
||||
if(!valueColumnListColumn["DataPrecision"].isNull())
|
||||
columnListObject.dataPrecision = std::stoi(valueColumnListColumn["DataPrecision"].asString());
|
||||
if(!valueColumnListColumn["ColumnId"].isNull())
|
||||
columnListObject.columnId = valueColumnListColumn["ColumnId"].asString();
|
||||
if(!valueColumnListColumn["DefaultValue"].isNull())
|
||||
columnListObject.defaultValue = valueColumnListColumn["DefaultValue"].asString();
|
||||
if(!valueColumnListColumn["Sensitive"].isNull())
|
||||
columnListObject.sensitive = valueColumnListColumn["Sensitive"].asString() == "true";
|
||||
if(!valueColumnListColumn["ColumnName"].isNull())
|
||||
columnListObject.columnName = valueColumnListColumn["ColumnName"].asString();
|
||||
if(!valueColumnListColumn["SecurityLevel"].isNull())
|
||||
columnListObject.securityLevel = valueColumnListColumn["SecurityLevel"].asString();
|
||||
if(!valueColumnListColumn["Description"].isNull())
|
||||
columnListObject.description = valueColumnListColumn["Description"].asString();
|
||||
if(!valueColumnListColumn["DataPrecision"].isNull())
|
||||
columnListObject.dataPrecision = std::stoi(valueColumnListColumn["DataPrecision"].asString());
|
||||
if(!valueColumnListColumn["DataScale"].isNull())
|
||||
columnListObject.dataScale = std::stoi(valueColumnListColumn["DataScale"].asString());
|
||||
if(!valueColumnListColumn["FunctionType"].isNull())
|
||||
columnListObject.functionType = valueColumnListColumn["FunctionType"].asString();
|
||||
if(!valueColumnListColumn["Nullable"].isNull())
|
||||
columnListObject.nullable = valueColumnListColumn["Nullable"].asString() == "true";
|
||||
if(!valueColumnListColumn["DataLength"].isNull())
|
||||
columnListObject.dataLength = std::stol(valueColumnListColumn["DataLength"].asString());
|
||||
columnList_.push_back(columnListObject);
|
||||
}
|
||||
if(!value["ErrorCode"].isNull())
|
||||
|
||||
@@ -1,73 +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/dms-enterprise/model/ListDBTaskSQLJobDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::ListDBTaskSQLJobDetailRequest;
|
||||
|
||||
ListDBTaskSQLJobDetailRequest::ListDBTaskSQLJobDetailRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "ListDBTaskSQLJobDetail")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListDBTaskSQLJobDetailRequest::~ListDBTaskSQLJobDetailRequest()
|
||||
{}
|
||||
|
||||
long ListDBTaskSQLJobDetailRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/ListDBTaskSQLJobDetailRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::ListDBTaskSQLJobDetailRequest;
|
||||
|
||||
ListDBTaskSQLJobDetailRequest::ListDBTaskSQLJobDetailRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "ListDBTaskSQLJobDetail") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ListDBTaskSQLJobDetailRequest::setPageNumber(long pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
ListDBTaskSQLJobDetailRequest::~ListDBTaskSQLJobDetailRequest() {}
|
||||
|
||||
long ListDBTaskSQLJobDetailRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
long ListDBTaskSQLJobDetailRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
void ListDBTaskSQLJobDetailRequest::setPageNumber(long pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
void ListDBTaskSQLJobDetailRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
long ListDBTaskSQLJobDetailRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
long ListDBTaskSQLJobDetailRequest::getJobId()const
|
||||
{
|
||||
return jobId_;
|
||||
void ListDBTaskSQLJobDetailRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
void ListDBTaskSQLJobDetailRequest::setJobId(long jobId)
|
||||
{
|
||||
jobId_ = jobId;
|
||||
setParameter("JobId", std::to_string(jobId));
|
||||
long ListDBTaskSQLJobDetailRequest::getJobId() const {
|
||||
return jobId_;
|
||||
}
|
||||
|
||||
long ListDBTaskSQLJobDetailRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
void ListDBTaskSQLJobDetailRequest::setJobId(long jobId) {
|
||||
jobId_ = jobId;
|
||||
setParameter(std::string("JobId"), std::to_string(jobId));
|
||||
}
|
||||
|
||||
void ListDBTaskSQLJobDetailRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
long ListDBTaskSQLJobDetailRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListDBTaskSQLJobDetailRequest::setPageSize(long pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
|
||||
@@ -43,34 +43,34 @@ void ListDBTaskSQLJobDetailResult::parse(const std::string &payload)
|
||||
for (auto valueDBTaskSQLJobDetailListDBTaskSQLJobDetail : allDBTaskSQLJobDetailListNode)
|
||||
{
|
||||
DBTaskSQLJobDetail dBTaskSQLJobDetailListObject;
|
||||
if(!valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["Status"].isNull())
|
||||
dBTaskSQLJobDetailListObject.status = valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["Status"].asString();
|
||||
if(!valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["Skip"].isNull())
|
||||
dBTaskSQLJobDetailListObject.skip = valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["Skip"].asString() == "true";
|
||||
if(!valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["DbId"].isNull())
|
||||
dBTaskSQLJobDetailListObject.dbId = std::stol(valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["DbId"].asString());
|
||||
if(!valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["SqlType"].isNull())
|
||||
dBTaskSQLJobDetailListObject.sqlType = valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["SqlType"].asString();
|
||||
if(!valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["ExecuteCount"].isNull())
|
||||
dBTaskSQLJobDetailListObject.executeCount = std::stol(valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["ExecuteCount"].asString());
|
||||
if(!valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["Logic"].isNull())
|
||||
dBTaskSQLJobDetailListObject.logic = valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["Logic"].asString() == "true";
|
||||
if(!valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["CurrentSql"].isNull())
|
||||
dBTaskSQLJobDetailListObject.currentSql = valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["CurrentSql"].asString();
|
||||
if(!valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["JobDetailId"].isNull())
|
||||
dBTaskSQLJobDetailListObject.jobDetailId = std::stol(valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["JobDetailId"].asString());
|
||||
if(!valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["CurrentSql"].isNull())
|
||||
dBTaskSQLJobDetailListObject.currentSql = valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["CurrentSql"].asString();
|
||||
if(!valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["ExecuteCount"].isNull())
|
||||
dBTaskSQLJobDetailListObject.executeCount = std::stol(valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["ExecuteCount"].asString());
|
||||
if(!valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["JobId"].isNull())
|
||||
dBTaskSQLJobDetailListObject.jobId = std::stol(valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["JobId"].asString());
|
||||
if(!valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["DbId"].isNull())
|
||||
dBTaskSQLJobDetailListObject.dbId = std::stol(valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["DbId"].asString());
|
||||
if(!valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["Logic"].isNull())
|
||||
dBTaskSQLJobDetailListObject.logic = valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["Logic"].asString() == "true";
|
||||
if(!valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["Skip"].isNull())
|
||||
dBTaskSQLJobDetailListObject.skip = valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["Skip"].asString() == "true";
|
||||
if(!valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["SqlType"].isNull())
|
||||
dBTaskSQLJobDetailListObject.sqlType = valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["SqlType"].asString();
|
||||
if(!valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["Status"].isNull())
|
||||
dBTaskSQLJobDetailListObject.status = valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["Status"].asString();
|
||||
dBTaskSQLJobDetailList_.push_back(dBTaskSQLJobDetailListObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,73 +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/dms-enterprise/model/ListDBTaskSQLJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::ListDBTaskSQLJobRequest;
|
||||
|
||||
ListDBTaskSQLJobRequest::ListDBTaskSQLJobRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "ListDBTaskSQLJob")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListDBTaskSQLJobRequest::~ListDBTaskSQLJobRequest()
|
||||
{}
|
||||
|
||||
long ListDBTaskSQLJobRequest::getDBTaskGroupId()const
|
||||
{
|
||||
return dBTaskGroupId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/ListDBTaskSQLJobRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::ListDBTaskSQLJobRequest;
|
||||
|
||||
ListDBTaskSQLJobRequest::ListDBTaskSQLJobRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "ListDBTaskSQLJob") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ListDBTaskSQLJobRequest::setDBTaskGroupId(long dBTaskGroupId)
|
||||
{
|
||||
dBTaskGroupId_ = dBTaskGroupId;
|
||||
setParameter("DBTaskGroupId", std::to_string(dBTaskGroupId));
|
||||
ListDBTaskSQLJobRequest::~ListDBTaskSQLJobRequest() {}
|
||||
|
||||
long ListDBTaskSQLJobRequest::getDBTaskGroupId() const {
|
||||
return dBTaskGroupId_;
|
||||
}
|
||||
|
||||
long ListDBTaskSQLJobRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
void ListDBTaskSQLJobRequest::setDBTaskGroupId(long dBTaskGroupId) {
|
||||
dBTaskGroupId_ = dBTaskGroupId;
|
||||
setParameter(std::string("DBTaskGroupId"), std::to_string(dBTaskGroupId));
|
||||
}
|
||||
|
||||
void ListDBTaskSQLJobRequest::setPageNumber(long pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
long ListDBTaskSQLJobRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
long ListDBTaskSQLJobRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
void ListDBTaskSQLJobRequest::setPageNumber(long pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
void ListDBTaskSQLJobRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
long ListDBTaskSQLJobRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
long ListDBTaskSQLJobRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
void ListDBTaskSQLJobRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
void ListDBTaskSQLJobRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
long ListDBTaskSQLJobRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListDBTaskSQLJobRequest::setPageSize(long pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
|
||||
@@ -43,38 +43,38 @@ void ListDBTaskSQLJobResult::parse(const std::string &payload)
|
||||
for (auto valueDBTaskSQLJobListDBTaskSQLJob : allDBTaskSQLJobListNode)
|
||||
{
|
||||
DBTaskSQLJob dBTaskSQLJobListObject;
|
||||
if(!valueDBTaskSQLJobListDBTaskSQLJob["Status"].isNull())
|
||||
dBTaskSQLJobListObject.status = valueDBTaskSQLJobListDBTaskSQLJob["Status"].asString();
|
||||
if(!valueDBTaskSQLJobListDBTaskSQLJob["Comment"].isNull())
|
||||
dBTaskSQLJobListObject.comment = valueDBTaskSQLJobListDBTaskSQLJob["Comment"].asString();
|
||||
if(!valueDBTaskSQLJobListDBTaskSQLJob["LastExecTime"].isNull())
|
||||
dBTaskSQLJobListObject.lastExecTime = valueDBTaskSQLJobListDBTaskSQLJob["LastExecTime"].asString();
|
||||
if(!valueDBTaskSQLJobListDBTaskSQLJob["DbSearchName"].isNull())
|
||||
dBTaskSQLJobListObject.dbSearchName = valueDBTaskSQLJobListDBTaskSQLJob["DbSearchName"].asString();
|
||||
if(!valueDBTaskSQLJobListDBTaskSQLJob["JobId"].isNull())
|
||||
dBTaskSQLJobListObject.jobId = std::stol(valueDBTaskSQLJobListDBTaskSQLJob["JobId"].asString());
|
||||
if(!valueDBTaskSQLJobListDBTaskSQLJob["JobType"].isNull())
|
||||
dBTaskSQLJobListObject.jobType = valueDBTaskSQLJobListDBTaskSQLJob["JobType"].asString();
|
||||
if(!valueDBTaskSQLJobListDBTaskSQLJob["CreateTime"].isNull())
|
||||
dBTaskSQLJobListObject.createTime = valueDBTaskSQLJobListDBTaskSQLJob["CreateTime"].asString();
|
||||
if(!valueDBTaskSQLJobListDBTaskSQLJob["DbTaskGroupId"].isNull())
|
||||
dBTaskSQLJobListObject.dbTaskGroupId = std::stol(valueDBTaskSQLJobListDBTaskSQLJob["DbTaskGroupId"].asString());
|
||||
if(!valueDBTaskSQLJobListDBTaskSQLJob["Comment"].isNull())
|
||||
dBTaskSQLJobListObject.comment = valueDBTaskSQLJobListDBTaskSQLJob["Comment"].asString();
|
||||
if(!valueDBTaskSQLJobListDBTaskSQLJob["DbSearchName"].isNull())
|
||||
dBTaskSQLJobListObject.dbSearchName = valueDBTaskSQLJobListDBTaskSQLJob["DbSearchName"].asString();
|
||||
if(!valueDBTaskSQLJobListDBTaskSQLJob["DbId"].isNull())
|
||||
dBTaskSQLJobListObject.dbId = std::stol(valueDBTaskSQLJobListDBTaskSQLJob["DbId"].asString());
|
||||
if(!valueDBTaskSQLJobListDBTaskSQLJob["Logic"].isNull())
|
||||
dBTaskSQLJobListObject.logic = valueDBTaskSQLJobListDBTaskSQLJob["Logic"].asString() == "true";
|
||||
if(!valueDBTaskSQLJobListDBTaskSQLJob["JobId"].isNull())
|
||||
dBTaskSQLJobListObject.jobId = std::stol(valueDBTaskSQLJobListDBTaskSQLJob["JobId"].asString());
|
||||
if(!valueDBTaskSQLJobListDBTaskSQLJob["CreateTime"].isNull())
|
||||
dBTaskSQLJobListObject.createTime = valueDBTaskSQLJobListDBTaskSQLJob["CreateTime"].asString();
|
||||
if(!valueDBTaskSQLJobListDBTaskSQLJob["LastExecTime"].isNull())
|
||||
dBTaskSQLJobListObject.lastExecTime = valueDBTaskSQLJobListDBTaskSQLJob["LastExecTime"].asString();
|
||||
if(!valueDBTaskSQLJobListDBTaskSQLJob["DbTaskGroupId"].isNull())
|
||||
dBTaskSQLJobListObject.dbTaskGroupId = std::stol(valueDBTaskSQLJobListDBTaskSQLJob["DbTaskGroupId"].asString());
|
||||
if(!valueDBTaskSQLJobListDBTaskSQLJob["Status"].isNull())
|
||||
dBTaskSQLJobListObject.status = valueDBTaskSQLJobListDBTaskSQLJob["Status"].asString();
|
||||
if(!valueDBTaskSQLJobListDBTaskSQLJob["Transactional"].isNull())
|
||||
dBTaskSQLJobListObject.transactional = valueDBTaskSQLJobListDBTaskSQLJob["Transactional"].asString() == "true";
|
||||
dBTaskSQLJobList_.push_back(dBTaskSQLJobListObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,51 +1,45 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/ListDDLPublishRecordsRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::ListDDLPublishRecordsRequest;
|
||||
|
||||
ListDDLPublishRecordsRequest::ListDDLPublishRecordsRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "ListDDLPublishRecords")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListDDLPublishRecordsRequest::~ListDDLPublishRecordsRequest()
|
||||
{}
|
||||
|
||||
long ListDDLPublishRecordsRequest::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/ListDDLPublishRecordsRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::ListDDLPublishRecordsRequest;
|
||||
|
||||
ListDDLPublishRecordsRequest::ListDDLPublishRecordsRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "ListDDLPublishRecords") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ListDDLPublishRecordsRequest::setOrderId(long orderId)
|
||||
{
|
||||
orderId_ = orderId;
|
||||
setParameter("OrderId", std::to_string(orderId));
|
||||
ListDDLPublishRecordsRequest::~ListDDLPublishRecordsRequest() {}
|
||||
|
||||
long ListDDLPublishRecordsRequest::getOrderId() const {
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
long ListDDLPublishRecordsRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
void ListDDLPublishRecordsRequest::setOrderId(long orderId) {
|
||||
orderId_ = orderId;
|
||||
setParameter(std::string("OrderId"), std::to_string(orderId));
|
||||
}
|
||||
|
||||
void ListDDLPublishRecordsRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
long ListDDLPublishRecordsRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
void ListDDLPublishRecordsRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
|
||||
@@ -43,54 +43,54 @@ void ListDDLPublishRecordsResult::parse(const std::string &payload)
|
||||
for (auto valueDDLPublishRecordListDDLPublishRecord : allDDLPublishRecordListNode)
|
||||
{
|
||||
DDLPublishRecord dDLPublishRecordListObject;
|
||||
if(!valueDDLPublishRecordListDDLPublishRecord["StatusDesc"].isNull())
|
||||
dDLPublishRecordListObject.statusDesc = valueDDLPublishRecordListDDLPublishRecord["StatusDesc"].asString();
|
||||
if(!valueDDLPublishRecordListDDLPublishRecord["AuditStatus"].isNull())
|
||||
dDLPublishRecordListObject.auditStatus = valueDDLPublishRecordListDDLPublishRecord["AuditStatus"].asString();
|
||||
if(!valueDDLPublishRecordListDDLPublishRecord["AuditExpireTime"].isNull())
|
||||
dDLPublishRecordListObject.auditExpireTime = valueDDLPublishRecordListDDLPublishRecord["AuditExpireTime"].asString();
|
||||
if(!valueDDLPublishRecordListDDLPublishRecord["CreatorId"].isNull())
|
||||
dDLPublishRecordListObject.creatorId = std::stol(valueDDLPublishRecordListDDLPublishRecord["CreatorId"].asString());
|
||||
if(!valueDDLPublishRecordListDDLPublishRecord["Finality"].isNull())
|
||||
dDLPublishRecordListObject.finality = valueDDLPublishRecordListDDLPublishRecord["Finality"].asString() == "true";
|
||||
if(!valueDDLPublishRecordListDDLPublishRecord["AuditExpireTime"].isNull())
|
||||
dDLPublishRecordListObject.auditExpireTime = valueDDLPublishRecordListDDLPublishRecord["AuditExpireTime"].asString();
|
||||
if(!valueDDLPublishRecordListDDLPublishRecord["WorkflowInstanceId"].isNull())
|
||||
dDLPublishRecordListObject.workflowInstanceId = std::stol(valueDDLPublishRecordListDDLPublishRecord["WorkflowInstanceId"].asString());
|
||||
if(!valueDDLPublishRecordListDDLPublishRecord["RiskLevel"].isNull())
|
||||
dDLPublishRecordListObject.riskLevel = valueDDLPublishRecordListDDLPublishRecord["RiskLevel"].asString();
|
||||
if(!valueDDLPublishRecordListDDLPublishRecord["FinalityReason"].isNull())
|
||||
dDLPublishRecordListObject.finalityReason = valueDDLPublishRecordListDDLPublishRecord["FinalityReason"].asString();
|
||||
if(!valueDDLPublishRecordListDDLPublishRecord["PublishStatus"].isNull())
|
||||
dDLPublishRecordListObject.publishStatus = valueDDLPublishRecordListDDLPublishRecord["PublishStatus"].asString();
|
||||
if(!valueDDLPublishRecordListDDLPublishRecord["RiskLevel"].isNull())
|
||||
dDLPublishRecordListObject.riskLevel = valueDDLPublishRecordListDDLPublishRecord["RiskLevel"].asString();
|
||||
if(!valueDDLPublishRecordListDDLPublishRecord["StatusDesc"].isNull())
|
||||
dDLPublishRecordListObject.statusDesc = valueDDLPublishRecordListDDLPublishRecord["StatusDesc"].asString();
|
||||
if(!valueDDLPublishRecordListDDLPublishRecord["WorkflowInstanceId"].isNull())
|
||||
dDLPublishRecordListObject.workflowInstanceId = std::stol(valueDDLPublishRecordListDDLPublishRecord["WorkflowInstanceId"].asString());
|
||||
auto allPublishTaskInfoListNode = valueDDLPublishRecordListDDLPublishRecord["PublishTaskInfoList"]["PublishTaskInfo"];
|
||||
for (auto valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfo : allPublishTaskInfoListNode)
|
||||
{
|
||||
DDLPublishRecord::PublishTaskInfo publishTaskInfoListObject;
|
||||
if(!valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfo["DbId"].isNull())
|
||||
publishTaskInfoListObject.dbId = std::stol(valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfo["DbId"].asString());
|
||||
if(!valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfo["Logic"].isNull())
|
||||
publishTaskInfoListObject.logic = valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfo["Logic"].asString() == "true";
|
||||
if(!valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfo["PlanTime"].isNull())
|
||||
publishTaskInfoListObject.planTime = valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfo["PlanTime"].asString();
|
||||
if(!valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfo["PublishStrategy"].isNull())
|
||||
publishTaskInfoListObject.publishStrategy = valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfo["PublishStrategy"].asString();
|
||||
if(!valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfo["StatusDesc"].isNull())
|
||||
publishTaskInfoListObject.statusDesc = valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfo["StatusDesc"].asString();
|
||||
if(!valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfo["TaskJobStatus"].isNull())
|
||||
publishTaskInfoListObject.taskJobStatus = valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfo["TaskJobStatus"].asString();
|
||||
if(!valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfo["PublishStrategy"].isNull())
|
||||
publishTaskInfoListObject.publishStrategy = valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfo["PublishStrategy"].asString();
|
||||
if(!valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfo["DbId"].isNull())
|
||||
publishTaskInfoListObject.dbId = std::stol(valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfo["DbId"].asString());
|
||||
if(!valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfo["PlanTime"].isNull())
|
||||
publishTaskInfoListObject.planTime = valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfo["PlanTime"].asString();
|
||||
if(!valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfo["Logic"].isNull())
|
||||
publishTaskInfoListObject.logic = valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfo["Logic"].asString() == "true";
|
||||
auto allPublishJobListNode = valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfo["PublishJobList"]["PublishJob"];
|
||||
for (auto valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfoPublishJobListPublishJob : allPublishJobListNode)
|
||||
{
|
||||
DDLPublishRecord::PublishTaskInfo::PublishJob publishJobListObject;
|
||||
if(!valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfoPublishJobListPublishJob["StatusDesc"].isNull())
|
||||
publishJobListObject.statusDesc = valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfoPublishJobListPublishJob["StatusDesc"].asString();
|
||||
if(!valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfoPublishJobListPublishJob["TableName"].isNull())
|
||||
publishJobListObject.tableName = valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfoPublishJobListPublishJob["TableName"].asString();
|
||||
if(!valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfoPublishJobListPublishJob["Scripts"].isNull())
|
||||
publishJobListObject.scripts = valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfoPublishJobListPublishJob["Scripts"].asString();
|
||||
if(!valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfoPublishJobListPublishJob["TaskJobStatus"].isNull())
|
||||
publishJobListObject.taskJobStatus = valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfoPublishJobListPublishJob["TaskJobStatus"].asString();
|
||||
if(!valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfoPublishJobListPublishJob["ExecuteCount"].isNull())
|
||||
publishJobListObject.executeCount = std::stol(valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfoPublishJobListPublishJob["ExecuteCount"].asString());
|
||||
if(!valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfoPublishJobListPublishJob["Scripts"].isNull())
|
||||
publishJobListObject.scripts = valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfoPublishJobListPublishJob["Scripts"].asString();
|
||||
if(!valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfoPublishJobListPublishJob["TableName"].isNull())
|
||||
publishJobListObject.tableName = valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfoPublishJobListPublishJob["TableName"].asString();
|
||||
if(!valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfoPublishJobListPublishJob["StatusDesc"].isNull())
|
||||
publishJobListObject.statusDesc = valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfoPublishJobListPublishJob["StatusDesc"].asString();
|
||||
if(!valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfoPublishJobListPublishJob["TaskJobStatus"].isNull())
|
||||
publishJobListObject.taskJobStatus = valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfoPublishJobListPublishJob["TaskJobStatus"].asString();
|
||||
if(!valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfoPublishJobListPublishJob["DBTaskGroupId"].isNull())
|
||||
publishJobListObject.dBTaskGroupId = std::stol(valueDDLPublishRecordListDDLPublishRecordPublishTaskInfoListPublishTaskInfoPublishJobListPublishJob["DBTaskGroupId"].asString());
|
||||
publishTaskInfoListObject.publishJobList.push_back(publishJobListObject);
|
||||
@@ -99,12 +99,12 @@ void ListDDLPublishRecordsResult::parse(const std::string &payload)
|
||||
}
|
||||
dDLPublishRecordList_.push_back(dDLPublishRecordListObject);
|
||||
}
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
errorMessage_ = value["ErrorMessage"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorCode_ = value["ErrorCode"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,106 +1,90 @@
|
||||
/*
|
||||
* 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/dms-enterprise/model/ListDatabaseUserPermssionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::ListDatabaseUserPermssionsRequest;
|
||||
|
||||
ListDatabaseUserPermssionsRequest::ListDatabaseUserPermssionsRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "ListDatabaseUserPermssions")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListDatabaseUserPermssionsRequest::~ListDatabaseUserPermssionsRequest()
|
||||
{}
|
||||
|
||||
long ListDatabaseUserPermssionsRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/ListDatabaseUserPermssionsRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::ListDatabaseUserPermssionsRequest;
|
||||
|
||||
ListDatabaseUserPermssionsRequest::ListDatabaseUserPermssionsRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "ListDatabaseUserPermssions") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ListDatabaseUserPermssionsRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
ListDatabaseUserPermssionsRequest::~ListDatabaseUserPermssionsRequest() {}
|
||||
|
||||
long ListDatabaseUserPermssionsRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
int ListDatabaseUserPermssionsRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
void ListDatabaseUserPermssionsRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
void ListDatabaseUserPermssionsRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
int ListDatabaseUserPermssionsRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::string ListDatabaseUserPermssionsRequest::getPermType()const
|
||||
{
|
||||
return permType_;
|
||||
void ListDatabaseUserPermssionsRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
void ListDatabaseUserPermssionsRequest::setPermType(const std::string& permType)
|
||||
{
|
||||
permType_ = permType;
|
||||
setParameter("PermType", permType);
|
||||
std::string ListDatabaseUserPermssionsRequest::getPermType() const {
|
||||
return permType_;
|
||||
}
|
||||
|
||||
std::string ListDatabaseUserPermssionsRequest::getDbId()const
|
||||
{
|
||||
return dbId_;
|
||||
void ListDatabaseUserPermssionsRequest::setPermType(const std::string &permType) {
|
||||
permType_ = permType;
|
||||
setParameter(std::string("PermType"), permType);
|
||||
}
|
||||
|
||||
void ListDatabaseUserPermssionsRequest::setDbId(const std::string& dbId)
|
||||
{
|
||||
dbId_ = dbId;
|
||||
setParameter("DbId", dbId);
|
||||
std::string ListDatabaseUserPermssionsRequest::getDbId() const {
|
||||
return dbId_;
|
||||
}
|
||||
|
||||
int ListDatabaseUserPermssionsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
void ListDatabaseUserPermssionsRequest::setDbId(const std::string &dbId) {
|
||||
dbId_ = dbId;
|
||||
setParameter(std::string("DbId"), dbId);
|
||||
}
|
||||
|
||||
void ListDatabaseUserPermssionsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
int ListDatabaseUserPermssionsRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
bool ListDatabaseUserPermssionsRequest::getLogic()const
|
||||
{
|
||||
return logic_;
|
||||
void ListDatabaseUserPermssionsRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
void ListDatabaseUserPermssionsRequest::setLogic(bool logic)
|
||||
{
|
||||
logic_ = logic;
|
||||
setParameter("Logic", logic ? "true" : "false");
|
||||
bool ListDatabaseUserPermssionsRequest::getLogic() const {
|
||||
return logic_;
|
||||
}
|
||||
|
||||
std::string ListDatabaseUserPermssionsRequest::getUserName()const
|
||||
{
|
||||
return userName_;
|
||||
void ListDatabaseUserPermssionsRequest::setLogic(bool logic) {
|
||||
logic_ = logic;
|
||||
setParameter(std::string("Logic"), logic ? "true" : "false");
|
||||
}
|
||||
|
||||
void ListDatabaseUserPermssionsRequest::setUserName(const std::string& userName)
|
||||
{
|
||||
userName_ = userName;
|
||||
setParameter("UserName", userName);
|
||||
std::string ListDatabaseUserPermssionsRequest::getUserName() const {
|
||||
return userName_;
|
||||
}
|
||||
|
||||
void ListDatabaseUserPermssionsRequest::setUserName(const std::string &userName) {
|
||||
userName_ = userName;
|
||||
setParameter(std::string("UserName"), userName);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,50 +43,50 @@ void ListDatabaseUserPermssionsResult::parse(const std::string &payload)
|
||||
for (auto valueUserPermissionsUserPermission : allUserPermissionsNode)
|
||||
{
|
||||
UserPermission userPermissionsObject;
|
||||
if(!valueUserPermissionsUserPermission["DbId"].isNull())
|
||||
userPermissionsObject.dbId = valueUserPermissionsUserPermission["DbId"].asString();
|
||||
if(!valueUserPermissionsUserPermission["TableName"].isNull())
|
||||
userPermissionsObject.tableName = valueUserPermissionsUserPermission["TableName"].asString();
|
||||
if(!valueUserPermissionsUserPermission["UserId"].isNull())
|
||||
userPermissionsObject.userId = valueUserPermissionsUserPermission["UserId"].asString();
|
||||
if(!valueUserPermissionsUserPermission["SchemaName"].isNull())
|
||||
userPermissionsObject.schemaName = valueUserPermissionsUserPermission["SchemaName"].asString();
|
||||
if(!valueUserPermissionsUserPermission["Logic"].isNull())
|
||||
userPermissionsObject.logic = valueUserPermissionsUserPermission["Logic"].asString() == "true";
|
||||
if(!valueUserPermissionsUserPermission["UserNickName"].isNull())
|
||||
userPermissionsObject.userNickName = valueUserPermissionsUserPermission["UserNickName"].asString();
|
||||
if(!valueUserPermissionsUserPermission["InstanceId"].isNull())
|
||||
userPermissionsObject.instanceId = valueUserPermissionsUserPermission["InstanceId"].asString();
|
||||
if(!valueUserPermissionsUserPermission["EnvType"].isNull())
|
||||
userPermissionsObject.envType = valueUserPermissionsUserPermission["EnvType"].asString();
|
||||
if(!valueUserPermissionsUserPermission["ColumnName"].isNull())
|
||||
userPermissionsObject.columnName = valueUserPermissionsUserPermission["ColumnName"].asString();
|
||||
if(!valueUserPermissionsUserPermission["DbType"].isNull())
|
||||
userPermissionsObject.dbType = valueUserPermissionsUserPermission["DbType"].asString();
|
||||
if(!valueUserPermissionsUserPermission["DsType"].isNull())
|
||||
userPermissionsObject.dsType = valueUserPermissionsUserPermission["DsType"].asString();
|
||||
if(!valueUserPermissionsUserPermission["TableId"].isNull())
|
||||
userPermissionsObject.tableId = valueUserPermissionsUserPermission["TableId"].asString();
|
||||
if(!valueUserPermissionsUserPermission["SearchName"].isNull())
|
||||
userPermissionsObject.searchName = valueUserPermissionsUserPermission["SearchName"].asString();
|
||||
if(!valueUserPermissionsUserPermission["InstanceId"].isNull())
|
||||
userPermissionsObject.instanceId = valueUserPermissionsUserPermission["InstanceId"].asString();
|
||||
if(!valueUserPermissionsUserPermission["DbType"].isNull())
|
||||
userPermissionsObject.dbType = valueUserPermissionsUserPermission["DbType"].asString();
|
||||
if(!valueUserPermissionsUserPermission["EnvType"].isNull())
|
||||
userPermissionsObject.envType = valueUserPermissionsUserPermission["EnvType"].asString();
|
||||
if(!valueUserPermissionsUserPermission["DsType"].isNull())
|
||||
userPermissionsObject.dsType = valueUserPermissionsUserPermission["DsType"].asString();
|
||||
if(!valueUserPermissionsUserPermission["ColumnName"].isNull())
|
||||
userPermissionsObject.columnName = valueUserPermissionsUserPermission["ColumnName"].asString();
|
||||
if(!valueUserPermissionsUserPermission["TableName"].isNull())
|
||||
userPermissionsObject.tableName = valueUserPermissionsUserPermission["TableName"].asString();
|
||||
if(!valueUserPermissionsUserPermission["UserNickName"].isNull())
|
||||
userPermissionsObject.userNickName = valueUserPermissionsUserPermission["UserNickName"].asString();
|
||||
if(!valueUserPermissionsUserPermission["Alias"].isNull())
|
||||
userPermissionsObject.alias = valueUserPermissionsUserPermission["Alias"].asString();
|
||||
if(!valueUserPermissionsUserPermission["UserId"].isNull())
|
||||
userPermissionsObject.userId = valueUserPermissionsUserPermission["UserId"].asString();
|
||||
if(!valueUserPermissionsUserPermission["DbId"].isNull())
|
||||
userPermissionsObject.dbId = valueUserPermissionsUserPermission["DbId"].asString();
|
||||
if(!valueUserPermissionsUserPermission["Logic"].isNull())
|
||||
userPermissionsObject.logic = valueUserPermissionsUserPermission["Logic"].asString() == "true";
|
||||
if(!valueUserPermissionsUserPermission["SchemaName"].isNull())
|
||||
userPermissionsObject.schemaName = valueUserPermissionsUserPermission["SchemaName"].asString();
|
||||
auto allPermDetailsNode = valueUserPermissionsUserPermission["PermDetails"]["PermDetail"];
|
||||
for (auto valueUserPermissionsUserPermissionPermDetailsPermDetail : allPermDetailsNode)
|
||||
{
|
||||
UserPermission::PermDetail permDetailsObject;
|
||||
if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["ExpireDate"].isNull())
|
||||
permDetailsObject.expireDate = valueUserPermissionsUserPermissionPermDetailsPermDetail["ExpireDate"].asString();
|
||||
if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["PermType"].isNull())
|
||||
permDetailsObject.permType = valueUserPermissionsUserPermissionPermDetailsPermDetail["PermType"].asString();
|
||||
if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["ExtraData"].isNull())
|
||||
permDetailsObject.extraData = valueUserPermissionsUserPermissionPermDetailsPermDetail["ExtraData"].asString();
|
||||
if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["CreateDate"].isNull())
|
||||
permDetailsObject.createDate = valueUserPermissionsUserPermissionPermDetailsPermDetail["CreateDate"].asString();
|
||||
if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["OriginFrom"].isNull())
|
||||
permDetailsObject.originFrom = valueUserPermissionsUserPermissionPermDetailsPermDetail["OriginFrom"].asString();
|
||||
if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["PermType"].isNull())
|
||||
permDetailsObject.permType = valueUserPermissionsUserPermissionPermDetailsPermDetail["PermType"].asString();
|
||||
if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["ExpireDate"].isNull())
|
||||
permDetailsObject.expireDate = valueUserPermissionsUserPermissionPermDetailsPermDetail["ExpireDate"].asString();
|
||||
if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["CreateDate"].isNull())
|
||||
permDetailsObject.createDate = valueUserPermissionsUserPermissionPermDetailsPermDetail["CreateDate"].asString();
|
||||
if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["UserAccessId"].isNull())
|
||||
permDetailsObject.userAccessId = valueUserPermissionsUserPermissionPermDetailsPermDetail["UserAccessId"].asString();
|
||||
if(!valueUserPermissionsUserPermissionPermDetailsPermDetail["ExtraData"].isNull())
|
||||
permDetailsObject.extraData = valueUserPermissionsUserPermissionPermDetailsPermDetail["ExtraData"].asString();
|
||||
userPermissionsObject.permDetails.push_back(permDetailsObject);
|
||||
}
|
||||
userPermissions_.push_back(userPermissionsObject);
|
||||
|
||||
@@ -1,73 +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/dms-enterprise/model/ListDatabasesRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::ListDatabasesRequest;
|
||||
|
||||
ListDatabasesRequest::ListDatabasesRequest() :
|
||||
RpcServiceRequest("dms-enterprise", "2018-11-01", "ListDatabases")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListDatabasesRequest::~ListDatabasesRequest()
|
||||
{}
|
||||
|
||||
long ListDatabasesRequest::getTid()const
|
||||
{
|
||||
return tid_;
|
||||
*/
|
||||
|
||||
#include <alibabacloud/dms-enterprise/model/ListDatabasesRequest.h>
|
||||
|
||||
using AlibabaCloud::Dms_enterprise::Model::ListDatabasesRequest;
|
||||
|
||||
ListDatabasesRequest::ListDatabasesRequest()
|
||||
: RpcServiceRequest("dms-enterprise", "2018-11-01", "ListDatabases") {
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
void ListDatabasesRequest::setTid(long tid)
|
||||
{
|
||||
tid_ = tid;
|
||||
setParameter("Tid", std::to_string(tid));
|
||||
ListDatabasesRequest::~ListDatabasesRequest() {}
|
||||
|
||||
long ListDatabasesRequest::getTid() const {
|
||||
return tid_;
|
||||
}
|
||||
|
||||
int ListDatabasesRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
void ListDatabasesRequest::setTid(long tid) {
|
||||
tid_ = tid;
|
||||
setParameter(std::string("Tid"), std::to_string(tid));
|
||||
}
|
||||
|
||||
void ListDatabasesRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
int ListDatabasesRequest::getPageNumber() const {
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::string ListDatabasesRequest::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
void ListDatabasesRequest::setPageNumber(int pageNumber) {
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
void ListDatabasesRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setParameter("InstanceId", instanceId);
|
||||
std::string ListDatabasesRequest::getInstanceId() const {
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
int ListDatabasesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
void ListDatabasesRequest::setInstanceId(const std::string &instanceId) {
|
||||
instanceId_ = instanceId;
|
||||
setParameter(std::string("InstanceId"), instanceId);
|
||||
}
|
||||
|
||||
void ListDatabasesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
int ListDatabasesRequest::getPageSize() const {
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void ListDatabasesRequest::setPageSize(int pageSize) {
|
||||
pageSize_ = pageSize;
|
||||
setParameter(std::string("PageSize"), std::to_string(pageSize));
|
||||
}
|
||||
|
||||
|
||||
@@ -43,40 +43,40 @@ void ListDatabasesResult::parse(const std::string &payload)
|
||||
for (auto valueDatabaseListDatabase : allDatabaseListNode)
|
||||
{
|
||||
Database databaseListObject;
|
||||
if(!valueDatabaseListDatabase["SearchName"].isNull())
|
||||
databaseListObject.searchName = valueDatabaseListDatabase["SearchName"].asString();
|
||||
if(!valueDatabaseListDatabase["DatabaseId"].isNull())
|
||||
databaseListObject.databaseId = valueDatabaseListDatabase["DatabaseId"].asString();
|
||||
if(!valueDatabaseListDatabase["Host"].isNull())
|
||||
databaseListObject.host = valueDatabaseListDatabase["Host"].asString();
|
||||
if(!valueDatabaseListDatabase["CatalogName"].isNull())
|
||||
databaseListObject.catalogName = valueDatabaseListDatabase["CatalogName"].asString();
|
||||
if(!valueDatabaseListDatabase["DbaName"].isNull())
|
||||
databaseListObject.dbaName = valueDatabaseListDatabase["DbaName"].asString();
|
||||
if(!valueDatabaseListDatabase["State"].isNull())
|
||||
databaseListObject.state = valueDatabaseListDatabase["State"].asString();
|
||||
if(!valueDatabaseListDatabase["DbaId"].isNull())
|
||||
databaseListObject.dbaId = valueDatabaseListDatabase["DbaId"].asString();
|
||||
if(!valueDatabaseListDatabase["SchemaName"].isNull())
|
||||
databaseListObject.schemaName = valueDatabaseListDatabase["SchemaName"].asString();
|
||||
if(!valueDatabaseListDatabase["InstanceId"].isNull())
|
||||
databaseListObject.instanceId = valueDatabaseListDatabase["InstanceId"].asString();
|
||||
if(!valueDatabaseListDatabase["Port"].isNull())
|
||||
databaseListObject.port = std::stoi(valueDatabaseListDatabase["Port"].asString());
|
||||
if(!valueDatabaseListDatabase["Encoding"].isNull())
|
||||
databaseListObject.encoding = valueDatabaseListDatabase["Encoding"].asString();
|
||||
if(!valueDatabaseListDatabase["Host"].isNull())
|
||||
databaseListObject.host = valueDatabaseListDatabase["Host"].asString();
|
||||
if(!valueDatabaseListDatabase["DatabaseId"].isNull())
|
||||
databaseListObject.databaseId = valueDatabaseListDatabase["DatabaseId"].asString();
|
||||
if(!valueDatabaseListDatabase["DbType"].isNull())
|
||||
databaseListObject.dbType = valueDatabaseListDatabase["DbType"].asString();
|
||||
if(!valueDatabaseListDatabase["EnvType"].isNull())
|
||||
databaseListObject.envType = valueDatabaseListDatabase["EnvType"].asString();
|
||||
if(!valueDatabaseListDatabase["Sid"].isNull())
|
||||
databaseListObject.sid = valueDatabaseListDatabase["Sid"].asString();
|
||||
if(!valueDatabaseListDatabase["DbaName"].isNull())
|
||||
databaseListObject.dbaName = valueDatabaseListDatabase["DbaName"].asString();
|
||||
if(!valueDatabaseListDatabase["DbaId"].isNull())
|
||||
databaseListObject.dbaId = valueDatabaseListDatabase["DbaId"].asString();
|
||||
if(!valueDatabaseListDatabase["State"].isNull())
|
||||
databaseListObject.state = valueDatabaseListDatabase["State"].asString();
|
||||
if(!valueDatabaseListDatabase["CatalogName"].isNull())
|
||||
databaseListObject.catalogName = valueDatabaseListDatabase["CatalogName"].asString();
|
||||
if(!valueDatabaseListDatabase["SchemaName"].isNull())
|
||||
databaseListObject.schemaName = valueDatabaseListDatabase["SchemaName"].asString();
|
||||
auto allOwnerNameList = value["OwnerNameList"]["OwnerNames"];
|
||||
for (auto value : allOwnerNameList)
|
||||
databaseListObject.ownerNameList.push_back(value.asString());
|
||||
if(!valueDatabaseListDatabase["Encoding"].isNull())
|
||||
databaseListObject.encoding = valueDatabaseListDatabase["Encoding"].asString();
|
||||
if(!valueDatabaseListDatabase["DbType"].isNull())
|
||||
databaseListObject.dbType = valueDatabaseListDatabase["DbType"].asString();
|
||||
if(!valueDatabaseListDatabase["SearchName"].isNull())
|
||||
databaseListObject.searchName = valueDatabaseListDatabase["SearchName"].asString();
|
||||
auto allOwnerIdList = value["OwnerIdList"]["OwnerIds"];
|
||||
for (auto value : allOwnerIdList)
|
||||
databaseListObject.ownerIdList.push_back(value.asString());
|
||||
auto allOwnerNameList = value["OwnerNameList"]["OwnerNames"];
|
||||
for (auto value : allOwnerNameList)
|
||||
databaseListObject.ownerNameList.push_back(value.asString());
|
||||
databaseList_.push_back(databaseListObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user