Support TableStructSync Order API.

This commit is contained in:
sdk-team
2021-03-03 07:57:50 +00:00
parent aa07136890
commit 7360f5cf79
146 changed files with 5361 additions and 66 deletions

View File

@@ -27,28 +27,6 @@ ApproveOrderRequest::ApproveOrderRequest() :
ApproveOrderRequest::~ApproveOrderRequest()
{}
std::string ApproveOrderRequest::getApprovalType()const
{
return approvalType_;
}
void ApproveOrderRequest::setApprovalType(const std::string& approvalType)
{
approvalType_ = approvalType;
setParameter("ApprovalType", approvalType);
}
std::string ApproveOrderRequest::getComment()const
{
return comment_;
}
void ApproveOrderRequest::setComment(const std::string& comment)
{
comment_ = comment;
setParameter("Comment", comment);
}
long ApproveOrderRequest::getTid()const
{
return tid_;
@@ -71,3 +49,25 @@ void ApproveOrderRequest::setWorkflowInstanceId(long workflowInstanceId)
setParameter("WorkflowInstanceId", std::to_string(workflowInstanceId));
}
std::string ApproveOrderRequest::getApprovalType()const
{
return approvalType_;
}
void ApproveOrderRequest::setApprovalType(const std::string& approvalType)
{
approvalType_ = approvalType;
setParameter("ApprovalType", approvalType);
}
std::string ApproveOrderRequest::getComment()const
{
return comment_;
}
void ApproveOrderRequest::setComment(const std::string& comment)
{
comment_ = comment;
setParameter("Comment", comment);
}

View File

@@ -39,12 +39,12 @@ void ApproveOrderResult::parse(const std::string &payload)
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].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["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}

View File

@@ -0,0 +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/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_;
}
void CreateStructSyncOrderRequest::setTid(long tid)
{
tid_ = tid;
setParameter("Tid", std::to_string(tid));
}
std::string CreateStructSyncOrderRequest::getAttachmentKey()const
{
return attachmentKey_;
}
void CreateStructSyncOrderRequest::setAttachmentKey(const std::string& attachmentKey)
{
attachmentKey_ = attachmentKey;
setParameter("AttachmentKey", attachmentKey);
}
Struct CreateStructSyncOrderRequest::getParam()const
{
return param_;
}
void CreateStructSyncOrderRequest::setParam(const Struct& param)
{
param_ = param;
setParameter("Param", std::to_string(param));
}
std::string CreateStructSyncOrderRequest::getComment()const
{
return comment_;
}
void CreateStructSyncOrderRequest::setComment(const std::string& comment)
{
comment_ = comment;
setParameter("Comment", comment);
}
Array CreateStructSyncOrderRequest::getRelatedUserList()const
{
return relatedUserList_;
}
void CreateStructSyncOrderRequest::setRelatedUserList(const Array& relatedUserList)
{
relatedUserList_ = relatedUserList;
setParameter("RelatedUserList", std::to_string(relatedUserList));
}

View 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/CreateStructSyncOrderResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
CreateStructSyncOrderResult::CreateStructSyncOrderResult() :
ServiceResult()
{}
CreateStructSyncOrderResult::CreateStructSyncOrderResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateStructSyncOrderResult::~CreateStructSyncOrderResult()
{}
void CreateStructSyncOrderResult::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["ErrorCode"].isNull())
errorCode_ = value["ErrorCode"].asString();
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::vector<std::string> CreateStructSyncOrderResult::getCreateOrderResult()const
{
return createOrderResult_;
}
std::string CreateStructSyncOrderResult::getErrorCode()const
{
return errorCode_;
}
std::string CreateStructSyncOrderResult::getErrorMessage()const
{
return errorMessage_;
}
bool CreateStructSyncOrderResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +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/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_;
}
void CreateUploadFileJobRequest::setUploadType(const std::string& uploadType)
{
uploadType_ = uploadType;
setParameter("UploadType", uploadType);
}
std::string CreateUploadFileJobRequest::getFileSource()const
{
return fileSource_;
}
void CreateUploadFileJobRequest::setFileSource(const std::string& fileSource)
{
fileSource_ = fileSource;
setParameter("FileSource", fileSource);
}
long CreateUploadFileJobRequest::getTid()const
{
return tid_;
}
void CreateUploadFileJobRequest::setTid(long tid)
{
tid_ = tid;
setParameter("Tid", std::to_string(tid));
}
std::string CreateUploadFileJobRequest::getFileName()const
{
return fileName_;
}
void CreateUploadFileJobRequest::setFileName(const std::string& fileName)
{
fileName_ = fileName;
setParameter("FileName", fileName);
}
std::string CreateUploadFileJobRequest::getUploadURL()const
{
return uploadURL_;
}
void CreateUploadFileJobRequest::setUploadURL(const std::string& uploadURL)
{
uploadURL_ = uploadURL;
setParameter("UploadURL", uploadURL);
}

View File

@@ -0,0 +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/CreateUploadFileJobResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
CreateUploadFileJobResult::CreateUploadFileJobResult() :
ServiceResult()
{}
CreateUploadFileJobResult::CreateUploadFileJobResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateUploadFileJobResult::~CreateUploadFileJobResult()
{}
void CreateUploadFileJobResult::parse(const std::string &payload)
{
Json::Reader reader;
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";
}
std::string CreateUploadFileJobResult::getJobKey()const
{
return jobKey_;
}
std::string CreateUploadFileJobResult::getErrorCode()const
{
return errorCode_;
}
std::string CreateUploadFileJobResult::getErrorMessage()const
{
return errorMessage_;
}
bool CreateUploadFileJobResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +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/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_;
}
void CreateUploadOSSFileJobRequest::setUploadType(const std::string& uploadType)
{
uploadType_ = uploadType;
setParameter("UploadType", uploadType);
}
std::string CreateUploadOSSFileJobRequest::getFileSource()const
{
return fileSource_;
}
void CreateUploadOSSFileJobRequest::setFileSource(const std::string& fileSource)
{
fileSource_ = fileSource;
setParameter("FileSource", fileSource);
}
long CreateUploadOSSFileJobRequest::getTid()const
{
return tid_;
}
void CreateUploadOSSFileJobRequest::setTid(long tid)
{
tid_ = tid;
setParameter("Tid", std::to_string(tid));
}
std::string CreateUploadOSSFileJobRequest::getFileName()const
{
return fileName_;
}
void CreateUploadOSSFileJobRequest::setFileName(const std::string& fileName)
{
fileName_ = fileName;
setParameter("FileName", fileName);
}
Struct CreateUploadOSSFileJobRequest::getUploadTarget()const
{
return uploadTarget_;
}
void CreateUploadOSSFileJobRequest::setUploadTarget(const Struct& uploadTarget)
{
uploadTarget_ = uploadTarget;
setParameter("UploadTarget", std::to_string(uploadTarget));
}

View File

@@ -0,0 +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/CreateUploadOSSFileJobResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
CreateUploadOSSFileJobResult::CreateUploadOSSFileJobResult() :
ServiceResult()
{}
CreateUploadOSSFileJobResult::CreateUploadOSSFileJobResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateUploadOSSFileJobResult::~CreateUploadOSSFileJobResult()
{}
void CreateUploadOSSFileJobResult::parse(const std::string &payload)
{
Json::Reader reader;
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";
}
std::string CreateUploadOSSFileJobResult::getJobKey()const
{
return jobKey_;
}
std::string CreateUploadOSSFileJobResult::getErrorCode()const
{
return errorCode_;
}
std::string CreateUploadOSSFileJobResult::getErrorMessage()const
{
return errorMessage_;
}
bool CreateUploadOSSFileJobResult::getSuccess()const
{
return success_;
}

View File

@@ -27,28 +27,6 @@ ExecuteScriptRequest::ExecuteScriptRequest() :
ExecuteScriptRequest::~ExecuteScriptRequest()
{}
int ExecuteScriptRequest::getDbId()const
{
return dbId_;
}
void ExecuteScriptRequest::setDbId(int dbId)
{
dbId_ = dbId;
setParameter("DbId", std::to_string(dbId));
}
bool ExecuteScriptRequest::getLogic()const
{
return logic_;
}
void ExecuteScriptRequest::setLogic(bool logic)
{
logic_ = logic;
setParameter("Logic", logic ? "true" : "false");
}
std::string ExecuteScriptRequest::getScript()const
{
return script_;
@@ -71,3 +49,25 @@ void ExecuteScriptRequest::setTid(long tid)
setParameter("Tid", std::to_string(tid));
}
int ExecuteScriptRequest::getDbId()const
{
return dbId_;
}
void ExecuteScriptRequest::setDbId(int dbId)
{
dbId_ = dbId;
setParameter("DbId", std::to_string(dbId));
}
bool ExecuteScriptRequest::getLogic()const
{
return logic_;
}
void ExecuteScriptRequest::setLogic(bool logic)
{
logic_ = logic;
setParameter("Logic", logic ? "true" : "false");
}

View File

@@ -43,12 +43,12 @@ void ExecuteScriptResult::parse(const std::string &payload)
for (auto valueResultsResult : allResultsNode)
{
Result resultsObject;
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";
if(!valueResultsResult["Message"].isNull())
resultsObject.message = valueResultsResult["Message"].asString();
auto allColumnNames = value["ColumnNames"]["ColumnNames"];
for (auto value : allColumnNames)
resultsObject.columnNames.push_back(value.asString());
@@ -57,12 +57,12 @@ void ExecuteScriptResult::parse(const std::string &payload)
resultsObject.rows.push_back(value.asString());
results_.push_back(resultsObject);
}
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["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#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_;
}
void ExecuteStructSyncRequest::setOrderId(long orderId)
{
orderId_ = orderId;
setParameter("OrderId", std::to_string(orderId));
}
long ExecuteStructSyncRequest::getTid()const
{
return tid_;
}
void ExecuteStructSyncRequest::setTid(long tid)
{
tid_ = tid;
setParameter("Tid", std::to_string(tid));
}

View File

@@ -0,0 +1,65 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dms-enterprise/model/ExecuteStructSyncResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
ExecuteStructSyncResult::ExecuteStructSyncResult() :
ServiceResult()
{}
ExecuteStructSyncResult::ExecuteStructSyncResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ExecuteStructSyncResult::~ExecuteStructSyncResult()
{}
void ExecuteStructSyncResult::parse(const std::string &payload)
{
Json::Reader reader;
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";
}
std::string ExecuteStructSyncResult::getErrorCode()const
{
return errorCode_;
}
std::string ExecuteStructSyncResult::getErrorMessage()const
{
return errorMessage_;
}
bool ExecuteStructSyncResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,62 @@
/*
* 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_;
}
void GetDataCorrectSQLFileRequest::setOrderId(long orderId)
{
orderId_ = orderId;
setParameter("OrderId", std::to_string(orderId));
}
long GetDataCorrectSQLFileRequest::getTid()const
{
return tid_;
}
void GetDataCorrectSQLFileRequest::setTid(long tid)
{
tid_ = tid;
setParameter("Tid", std::to_string(tid));
}
std::string GetDataCorrectSQLFileRequest::getOrderActionName()const
{
return orderActionName_;
}
void GetDataCorrectSQLFileRequest::setOrderActionName(const std::string& orderActionName)
{
orderActionName_ = orderActionName;
setParameter("OrderActionName", orderActionName);
}

View File

@@ -0,0 +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/GetDataCorrectSQLFileResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
GetDataCorrectSQLFileResult::GetDataCorrectSQLFileResult() :
ServiceResult()
{}
GetDataCorrectSQLFileResult::GetDataCorrectSQLFileResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetDataCorrectSQLFileResult::~GetDataCorrectSQLFileResult()
{}
void GetDataCorrectSQLFileResult::parse(const std::string &payload)
{
Json::Reader reader;
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";
}
std::string GetDataCorrectSQLFileResult::getFileUrl()const
{
return fileUrl_;
}
std::string GetDataCorrectSQLFileResult::getErrorCode()const
{
return errorCode_;
}
std::string GetDataCorrectSQLFileResult::getErrorMessage()const
{
return errorMessage_;
}
bool GetDataCorrectSQLFileResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#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_;
}
void GetOwnerApplyOrderDetailRequest::setOrderId(long orderId)
{
orderId_ = orderId;
setParameter("OrderId", std::to_string(orderId));
}
long GetOwnerApplyOrderDetailRequest::getTid()const
{
return tid_;
}
void GetOwnerApplyOrderDetailRequest::setTid(long tid)
{
tid_ = tid;
setParameter("Tid", std::to_string(tid));
}

View File

@@ -0,0 +1,98 @@
/*
* 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/GetOwnerApplyOrderDetailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
GetOwnerApplyOrderDetailResult::GetOwnerApplyOrderDetailResult() :
ServiceResult()
{}
GetOwnerApplyOrderDetailResult::GetOwnerApplyOrderDetailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetOwnerApplyOrderDetailResult::~GetOwnerApplyOrderDetailResult()
{}
void GetOwnerApplyOrderDetailResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto ownerApplyOrderDetailNode = value["OwnerApplyOrderDetail"];
if(!ownerApplyOrderDetailNode["ApplyType"].isNull())
ownerApplyOrderDetail_.applyType = ownerApplyOrderDetailNode["ApplyType"].asString();
auto allResourcesNode = ownerApplyOrderDetailNode["Resources"]["Resource"];
for (auto ownerApplyOrderDetailNodeResourcesResource : allResourcesNode)
{
OwnerApplyOrderDetail::Resource resourceObject;
if(!ownerApplyOrderDetailNodeResourcesResource["Logic"].isNull())
resourceObject.logic = ownerApplyOrderDetailNodeResourcesResource["Logic"].asString() == "true";
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());
auto allOwnerIds = resourceDetailNode["OwnerIds"]["OwnerId"];
for (auto value : allOwnerIds)
resourceObject.resourceDetail.ownerIds.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";
}
GetOwnerApplyOrderDetailResult::OwnerApplyOrderDetail GetOwnerApplyOrderDetailResult::getOwnerApplyOrderDetail()const
{
return ownerApplyOrderDetail_;
}
std::string GetOwnerApplyOrderDetailResult::getErrorCode()const
{
return errorCode_;
}
std::string GetOwnerApplyOrderDetailResult::getErrorMessage()const
{
return errorMessage_;
}
bool GetOwnerApplyOrderDetailResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#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_;
}
void GetPermApplyOrderDetailRequest::setOrderId(long orderId)
{
orderId_ = orderId;
setParameter("OrderId", std::to_string(orderId));
}
long GetPermApplyOrderDetailRequest::getTid()const
{
return tid_;
}
void GetPermApplyOrderDetailRequest::setTid(long tid)
{
tid_ = tid;
setParameter("Tid", std::to_string(tid));
}

View File

@@ -0,0 +1,131 @@
/*
* 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/GetPermApplyOrderDetailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
GetPermApplyOrderDetailResult::GetPermApplyOrderDetailResult() :
ServiceResult()
{}
GetPermApplyOrderDetailResult::GetPermApplyOrderDetailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetPermApplyOrderDetailResult::~GetPermApplyOrderDetailResult()
{}
void GetPermApplyOrderDetailResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
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());
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());
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 tableInfoNode = value["TableInfo"];
if(!tableInfoNode["TableName"].isNull())
resourceObject.tableInfo.tableName = tableInfoNode["TableName"].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["DbType"].isNull())
resourceObject.instanceInfo.dbType = instanceInfoNode["DbType"].asString();
auto allOwnerNickName = instanceInfoNode["OwnerNickName"]["OwnerNickName"];
for (auto value : allOwnerNickName)
resourceObject.instanceInfo.ownerNickName.push_back(value.asString());
auto allOwnerIds1 = instanceInfoNode["OwnerIds"]["OwnerId"];
for (auto value : allOwnerIds1)
resourceObject.instanceInfo.ownerIds1.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";
}
GetPermApplyOrderDetailResult::PermApplyOrderDetail GetPermApplyOrderDetailResult::getPermApplyOrderDetail()const
{
return permApplyOrderDetail_;
}
std::string GetPermApplyOrderDetailResult::getErrorCode()const
{
return errorCode_;
}
std::string GetPermApplyOrderDetailResult::getErrorMessage()const
{
return errorMessage_;
}
bool GetPermApplyOrderDetailResult::getSuccess()const
{
return success_;
}

View 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/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_;
}
void GetStructSyncExecSqlDetailRequest::setOrderId(long orderId)
{
orderId_ = orderId;
setParameter("OrderId", std::to_string(orderId));
}
long GetStructSyncExecSqlDetailRequest::getPageNumber()const
{
return pageNumber_;
}
void GetStructSyncExecSqlDetailRequest::setPageNumber(long pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
long GetStructSyncExecSqlDetailRequest::getTid()const
{
return tid_;
}
void GetStructSyncExecSqlDetailRequest::setTid(long tid)
{
tid_ = tid;
setParameter("Tid", std::to_string(tid));
}
long GetStructSyncExecSqlDetailRequest::getPageSize()const
{
return pageSize_;
}
void GetStructSyncExecSqlDetailRequest::setPageSize(long pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}

View File

@@ -0,0 +1,75 @@
/*
* 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/GetStructSyncExecSqlDetailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
GetStructSyncExecSqlDetailResult::GetStructSyncExecSqlDetailResult() :
ServiceResult()
{}
GetStructSyncExecSqlDetailResult::GetStructSyncExecSqlDetailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetStructSyncExecSqlDetailResult::~GetStructSyncExecSqlDetailResult()
{}
void GetStructSyncExecSqlDetailResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
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(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
GetStructSyncExecSqlDetailResult::StructSyncExecSqlDetail GetStructSyncExecSqlDetailResult::getStructSyncExecSqlDetail()const
{
return structSyncExecSqlDetail_;
}
std::string GetStructSyncExecSqlDetailResult::getErrorCode()const
{
return errorCode_;
}
std::string GetStructSyncExecSqlDetailResult::getErrorMessage()const
{
return errorMessage_;
}
bool GetStructSyncExecSqlDetailResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +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/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_;
}
void GetStructSyncJobAnalyzeResultRequest::setOrderId(long orderId)
{
orderId_ = orderId;
setParameter("OrderId", std::to_string(orderId));
}
std::string GetStructSyncJobAnalyzeResultRequest::getCompareType()const
{
return compareType_;
}
void GetStructSyncJobAnalyzeResultRequest::setCompareType(const std::string& compareType)
{
compareType_ = compareType;
setParameter("CompareType", compareType);
}
long GetStructSyncJobAnalyzeResultRequest::getPageNumber()const
{
return pageNumber_;
}
void GetStructSyncJobAnalyzeResultRequest::setPageNumber(long pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
long GetStructSyncJobAnalyzeResultRequest::getTid()const
{
return tid_;
}
void GetStructSyncJobAnalyzeResultRequest::setTid(long tid)
{
tid_ = tid;
setParameter("Tid", std::to_string(tid));
}
long GetStructSyncJobAnalyzeResultRequest::getPageSize()const
{
return pageSize_;
}
void GetStructSyncJobAnalyzeResultRequest::setPageSize(long pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}

View File

@@ -0,0 +1,93 @@
/*
* 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/GetStructSyncJobAnalyzeResultResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
GetStructSyncJobAnalyzeResultResult::GetStructSyncJobAnalyzeResultResult() :
ServiceResult()
{}
GetStructSyncJobAnalyzeResultResult::GetStructSyncJobAnalyzeResultResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetStructSyncJobAnalyzeResultResult::~GetStructSyncJobAnalyzeResultResult()
{}
void GetStructSyncJobAnalyzeResultResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
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)
{
StructSyncJobAnalyzeResult::Summary summaryObject;
if(!structSyncJobAnalyzeResultNodeSummaryListSummary["CompareType"].isNull())
summaryObject.compareType = structSyncJobAnalyzeResultNodeSummaryListSummary["CompareType"].asString();
if(!structSyncJobAnalyzeResultNodeSummaryListSummary["Count"].isNull())
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();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
GetStructSyncJobAnalyzeResultResult::StructSyncJobAnalyzeResult GetStructSyncJobAnalyzeResultResult::getStructSyncJobAnalyzeResult()const
{
return structSyncJobAnalyzeResult_;
}
std::string GetStructSyncJobAnalyzeResultResult::getErrorCode()const
{
return errorCode_;
}
std::string GetStructSyncJobAnalyzeResultResult::getErrorMessage()const
{
return errorMessage_;
}
bool GetStructSyncJobAnalyzeResultResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#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_;
}
void GetStructSyncJobDetailRequest::setOrderId(long orderId)
{
orderId_ = orderId;
setParameter("OrderId", std::to_string(orderId));
}
long GetStructSyncJobDetailRequest::getTid()const
{
return tid_;
}
void GetStructSyncJobDetailRequest::setTid(long tid)
{
tid_ = tid;
setParameter("Tid", std::to_string(tid));
}

View File

@@ -0,0 +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/GetStructSyncJobDetailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
GetStructSyncJobDetailResult::GetStructSyncJobDetailResult() :
ServiceResult()
{}
GetStructSyncJobDetailResult::GetStructSyncJobDetailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetStructSyncJobDetailResult::~GetStructSyncJobDetailResult()
{}
void GetStructSyncJobDetailResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
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())
structSyncJobDetail_.message = structSyncJobDetailNode["Message"].asString();
if(!structSyncJobDetailNode["TableAnalyzed"].isNull())
structSyncJobDetail_.tableAnalyzed = std::stol(structSyncJobDetailNode["TableAnalyzed"].asString());
if(!structSyncJobDetailNode["TableCount"].isNull())
structSyncJobDetail_.tableCount = std::stol(structSyncJobDetailNode["TableCount"].asString());
if(!structSyncJobDetailNode["ExecuteCount"].isNull())
structSyncJobDetail_.executeCount = std::stol(structSyncJobDetailNode["ExecuteCount"].asString());
if(!structSyncJobDetailNode["SecurityRule"].isNull())
structSyncJobDetail_.securityRule = structSyncJobDetailNode["SecurityRule"].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";
}
GetStructSyncJobDetailResult::StructSyncJobDetail GetStructSyncJobDetailResult::getStructSyncJobDetail()const
{
return structSyncJobDetail_;
}
std::string GetStructSyncJobDetailResult::getErrorCode()const
{
return errorCode_;
}
std::string GetStructSyncJobDetailResult::getErrorMessage()const
{
return errorMessage_;
}
bool GetStructSyncJobDetailResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#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_;
}
void GetStructSyncOrderDetailRequest::setOrderId(long orderId)
{
orderId_ = orderId;
setParameter("OrderId", std::to_string(orderId));
}
long GetStructSyncOrderDetailRequest::getTid()const
{
return tid_;
}
void GetStructSyncOrderDetailRequest::setTid(long tid)
{
tid_ = tid;
setParameter("Tid", std::to_string(tid));
}

View File

@@ -0,0 +1,115 @@
/*
* 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/GetStructSyncOrderDetailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
GetStructSyncOrderDetailResult::GetStructSyncOrderDetailResult() :
ServiceResult()
{}
GetStructSyncOrderDetailResult::GetStructSyncOrderDetailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetStructSyncOrderDetailResult::~GetStructSyncOrderDetailResult()
{}
void GetStructSyncOrderDetailResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto structSyncOrderDetailNode = value["StructSyncOrderDetail"];
if(!structSyncOrderDetailNode["SourceType"].isNull())
structSyncOrderDetail_.sourceType = structSyncOrderDetailNode["SourceType"].asString();
if(!structSyncOrderDetailNode["TargetType"].isNull())
structSyncOrderDetail_.targetType = structSyncOrderDetailNode["TargetType"].asString();
if(!structSyncOrderDetailNode["IgnoreError"].isNull())
structSyncOrderDetail_.ignoreError = structSyncOrderDetailNode["IgnoreError"].asString() == "true";
auto allTableInfoListNode = structSyncOrderDetailNode["TableInfoList"]["TableInfo"];
for (auto structSyncOrderDetailNodeTableInfoListTableInfo : allTableInfoListNode)
{
StructSyncOrderDetail::TableInfo tableInfoObject;
if(!structSyncOrderDetailNodeTableInfoListTableInfo["SourceTableName"].isNull())
tableInfoObject.sourceTableName = structSyncOrderDetailNodeTableInfoListTableInfo["SourceTableName"].asString();
if(!structSyncOrderDetailNodeTableInfoListTableInfo["TargetTableName"].isNull())
tableInfoObject.targetTableName = structSyncOrderDetailNodeTableInfoListTableInfo["TargetTableName"].asString();
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["DbType"].isNull())
structSyncOrderDetail_.sourceDatabaseInfo.dbType = sourceDatabaseInfoNode["DbType"].asString();
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["DbType"].isNull())
structSyncOrderDetail_.targetDatabaseInfo.dbType = targetDatabaseInfoNode["DbType"].asString();
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";
}
GetStructSyncOrderDetailResult::StructSyncOrderDetail GetStructSyncOrderDetailResult::getStructSyncOrderDetail()const
{
return structSyncOrderDetail_;
}
std::string GetStructSyncOrderDetailResult::getErrorCode()const
{
return errorCode_;
}
std::string GetStructSyncOrderDetailResult::getErrorMessage()const
{
return errorMessage_;
}
bool GetStructSyncOrderDetailResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#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_;
}
void GetTableTopologyRequest::setTableGuid(const std::string& tableGuid)
{
tableGuid_ = tableGuid;
setParameter("TableGuid", tableGuid);
}
long GetTableTopologyRequest::getTid()const
{
return tid_;
}
void GetTableTopologyRequest::setTid(long tid)
{
tid_ = tid;
setParameter("Tid", std::to_string(tid));
}

View File

@@ -0,0 +1,105 @@
/*
* 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/GetTableTopologyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
GetTableTopologyResult::GetTableTopologyResult() :
ServiceResult()
{}
GetTableTopologyResult::GetTableTopologyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetTableTopologyResult::~GetTableTopologyResult()
{}
void GetTableTopologyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
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["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["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["RegionId"].isNull())
tableTopologyInfoObject.regionId = tableTopologyNodeTableTopologyInfoListTableTopologyInfo["RegionId"].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";
}
GetTableTopologyResult::TableTopology GetTableTopologyResult::getTableTopology()const
{
return tableTopology_;
}
std::string GetTableTopologyResult::getErrorCode()const
{
return errorCode_;
}
std::string GetTableTopologyResult::getErrorMessage()const
{
return errorMessage_;
}
bool GetTableTopologyResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#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_;
}
void GetUserUploadFileJobRequest::setJobKey(const std::string& jobKey)
{
jobKey_ = jobKey;
setParameter("JobKey", jobKey);
}
long GetUserUploadFileJobRequest::getTid()const
{
return tid_;
}
void GetUserUploadFileJobRequest::setTid(long tid)
{
tid_ = tid;
setParameter("Tid", std::to_string(tid));
}

View File

@@ -0,0 +1,98 @@
/*
* 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/GetUserUploadFileJobResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
GetUserUploadFileJobResult::GetUserUploadFileJobResult() :
ServiceResult()
{}
GetUserUploadFileJobResult::GetUserUploadFileJobResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetUserUploadFileJobResult::~GetUserUploadFileJobResult()
{}
void GetUserUploadFileJobResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
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["UploadURL"].isNull())
uploadFileJobDetail_.uploadURL = uploadFileJobDetailNode["UploadURL"].asString();
if(!uploadFileJobDetailNode["UploadedSize"].isNull())
uploadFileJobDetail_.uploadedSize = std::stol(uploadFileJobDetailNode["UploadedSize"].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());
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["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";
}
GetUserUploadFileJobResult::UploadFileJobDetail GetUserUploadFileJobResult::getUploadFileJobDetail()const
{
return uploadFileJobDetail_;
}
std::string GetUserUploadFileJobResult::getErrorCode()const
{
return errorCode_;
}
std::string GetUserUploadFileJobResult::getErrorMessage()const
{
return errorMessage_;
}
bool GetUserUploadFileJobResult::getSuccess()const
{
return success_;
}

View 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/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_;
}
void ListDBTaskSQLJobDetailRequest::setPageNumber(long pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
long ListDBTaskSQLJobDetailRequest::getTid()const
{
return tid_;
}
void ListDBTaskSQLJobDetailRequest::setTid(long tid)
{
tid_ = tid;
setParameter("Tid", std::to_string(tid));
}
long ListDBTaskSQLJobDetailRequest::getJobId()const
{
return jobId_;
}
void ListDBTaskSQLJobDetailRequest::setJobId(long jobId)
{
jobId_ = jobId;
setParameter("JobId", std::to_string(jobId));
}
long ListDBTaskSQLJobDetailRequest::getPageSize()const
{
return pageSize_;
}
void ListDBTaskSQLJobDetailRequest::setPageSize(long pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}

View 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/ListDBTaskSQLJobDetailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
ListDBTaskSQLJobDetailResult::ListDBTaskSQLJobDetailResult() :
ServiceResult()
{}
ListDBTaskSQLJobDetailResult::ListDBTaskSQLJobDetailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListDBTaskSQLJobDetailResult::~ListDBTaskSQLJobDetailResult()
{}
void ListDBTaskSQLJobDetailResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDBTaskSQLJobDetailListNode = value["DBTaskSQLJobDetailList"]["DBTaskSQLJobDetail"];
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["JobId"].isNull())
dBTaskSQLJobDetailListObject.jobId = std::stol(valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["JobId"].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";
}
long ListDBTaskSQLJobDetailResult::getTotalCount()const
{
return totalCount_;
}
std::vector<ListDBTaskSQLJobDetailResult::DBTaskSQLJobDetail> ListDBTaskSQLJobDetailResult::getDBTaskSQLJobDetailList()const
{
return dBTaskSQLJobDetailList_;
}
std::string ListDBTaskSQLJobDetailResult::getErrorCode()const
{
return errorCode_;
}
std::string ListDBTaskSQLJobDetailResult::getErrorMessage()const
{
return errorMessage_;
}
bool ListDBTaskSQLJobDetailResult::getSuccess()const
{
return success_;
}

View 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/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_;
}
void ListDBTaskSQLJobRequest::setDBTaskGroupId(long dBTaskGroupId)
{
dBTaskGroupId_ = dBTaskGroupId;
setParameter("DBTaskGroupId", std::to_string(dBTaskGroupId));
}
long ListDBTaskSQLJobRequest::getPageNumber()const
{
return pageNumber_;
}
void ListDBTaskSQLJobRequest::setPageNumber(long pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
long ListDBTaskSQLJobRequest::getTid()const
{
return tid_;
}
void ListDBTaskSQLJobRequest::setTid(long tid)
{
tid_ = tid;
setParameter("Tid", std::to_string(tid));
}
long ListDBTaskSQLJobRequest::getPageSize()const
{
return pageSize_;
}
void ListDBTaskSQLJobRequest::setPageSize(long pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}

View File

@@ -0,0 +1,105 @@
/*
* 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/ListDBTaskSQLJobResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
ListDBTaskSQLJobResult::ListDBTaskSQLJobResult() :
ServiceResult()
{}
ListDBTaskSQLJobResult::ListDBTaskSQLJobResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListDBTaskSQLJobResult::~ListDBTaskSQLJobResult()
{}
void ListDBTaskSQLJobResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDBTaskSQLJobListNode = value["DBTaskSQLJobList"]["DBTaskSQLJob"];
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["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["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["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";
}
std::vector<ListDBTaskSQLJobResult::DBTaskSQLJob> ListDBTaskSQLJobResult::getDBTaskSQLJobList()const
{
return dBTaskSQLJobList_;
}
long ListDBTaskSQLJobResult::getTotalCount()const
{
return totalCount_;
}
std::string ListDBTaskSQLJobResult::getErrorCode()const
{
return errorCode_;
}
std::string ListDBTaskSQLJobResult::getErrorMessage()const
{
return errorMessage_;
}
bool ListDBTaskSQLJobResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,51 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/dms-enterprise/model/SubmitStructSyncOrderApprovalRequest.h>
using AlibabaCloud::Dms_enterprise::Model::SubmitStructSyncOrderApprovalRequest;
SubmitStructSyncOrderApprovalRequest::SubmitStructSyncOrderApprovalRequest() :
RpcServiceRequest("dms-enterprise", "2018-11-01", "SubmitStructSyncOrderApproval")
{
setMethod(HttpRequest::Method::Post);
}
SubmitStructSyncOrderApprovalRequest::~SubmitStructSyncOrderApprovalRequest()
{}
long SubmitStructSyncOrderApprovalRequest::getOrderId()const
{
return orderId_;
}
void SubmitStructSyncOrderApprovalRequest::setOrderId(long orderId)
{
orderId_ = orderId;
setParameter("OrderId", std::to_string(orderId));
}
long SubmitStructSyncOrderApprovalRequest::getTid()const
{
return tid_;
}
void SubmitStructSyncOrderApprovalRequest::setTid(long tid)
{
tid_ = tid;
setParameter("Tid", std::to_string(tid));
}

View File

@@ -0,0 +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/SubmitStructSyncOrderApprovalResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
SubmitStructSyncOrderApprovalResult::SubmitStructSyncOrderApprovalResult() :
ServiceResult()
{}
SubmitStructSyncOrderApprovalResult::SubmitStructSyncOrderApprovalResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SubmitStructSyncOrderApprovalResult::~SubmitStructSyncOrderApprovalResult()
{}
void SubmitStructSyncOrderApprovalResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["WorkflowInstanceId"].isNull())
workflowInstanceId_ = std::stol(value["WorkflowInstanceId"].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";
}
long SubmitStructSyncOrderApprovalResult::getWorkflowInstanceId()const
{
return workflowInstanceId_;
}
std::string SubmitStructSyncOrderApprovalResult::getErrorCode()const
{
return errorCode_;
}
std::string SubmitStructSyncOrderApprovalResult::getErrorMessage()const
{
return errorMessage_;
}
bool SubmitStructSyncOrderApprovalResult::getSuccess()const
{
return success_;
}