Supported RestartDataCorrectSQLJob,PauseDataCorrectSQLJob API.

This commit is contained in:
sdk-team
2022-01-21 07:36:52 +00:00
parent c2bfeb1216
commit 972958c1e3
163 changed files with 9764 additions and 30 deletions

File diff suppressed because it is too large Load Diff

View File

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

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/AddLogicTableRouteConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
AddLogicTableRouteConfigResult::AddLogicTableRouteConfigResult() :
ServiceResult()
{}
AddLogicTableRouteConfigResult::AddLogicTableRouteConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddLogicTableRouteConfigResult::~AddLogicTableRouteConfigResult()
{}
void AddLogicTableRouteConfigResult::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 AddLogicTableRouteConfigResult::getErrorCode()const
{
return errorCode_;
}
std::string AddLogicTableRouteConfigResult::getErrorMessage()const
{
return errorMessage_;
}
bool AddLogicTableRouteConfigResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +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/ChangeColumnSecLevelRequest.h>
using AlibabaCloud::Dms_enterprise::Model::ChangeColumnSecLevelRequest;
ChangeColumnSecLevelRequest::ChangeColumnSecLevelRequest()
: RpcServiceRequest("dms-enterprise", "2018-11-01", "ChangeColumnSecLevel") {
setMethod(HttpRequest::Method::Post);
}
ChangeColumnSecLevelRequest::~ChangeColumnSecLevelRequest() {}
std::string ChangeColumnSecLevelRequest::getSchemaName() const {
return schemaName_;
}
void ChangeColumnSecLevelRequest::setSchemaName(const std::string &schemaName) {
schemaName_ = schemaName;
setParameter(std::string("SchemaName"), schemaName);
}
bool ChangeColumnSecLevelRequest::getIsLogic() const {
return isLogic_;
}
void ChangeColumnSecLevelRequest::setIsLogic(bool isLogic) {
isLogic_ = isLogic;
setParameter(std::string("IsLogic"), isLogic ? "true" : "false");
}
std::string ChangeColumnSecLevelRequest::getNewLevel() const {
return newLevel_;
}
void ChangeColumnSecLevelRequest::setNewLevel(const std::string &newLevel) {
newLevel_ = newLevel;
setParameter(std::string("NewLevel"), newLevel);
}
std::string ChangeColumnSecLevelRequest::getColumnName() const {
return columnName_;
}
void ChangeColumnSecLevelRequest::setColumnName(const std::string &columnName) {
columnName_ = columnName;
setParameter(std::string("ColumnName"), columnName);
}
long ChangeColumnSecLevelRequest::getTid() const {
return tid_;
}
void ChangeColumnSecLevelRequest::setTid(long tid) {
tid_ = tid;
setParameter(std::string("Tid"), std::to_string(tid));
}
long ChangeColumnSecLevelRequest::getDbId() const {
return dbId_;
}
void ChangeColumnSecLevelRequest::setDbId(long dbId) {
dbId_ = dbId;
setParameter(std::string("DbId"), std::to_string(dbId));
}
std::string ChangeColumnSecLevelRequest::getTableName() const {
return tableName_;
}
void ChangeColumnSecLevelRequest::setTableName(const std::string &tableName) {
tableName_ = tableName;
setParameter(std::string("TableName"), tableName);
}

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/ChangeColumnSecLevelResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
ChangeColumnSecLevelResult::ChangeColumnSecLevelResult() :
ServiceResult()
{}
ChangeColumnSecLevelResult::ChangeColumnSecLevelResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ChangeColumnSecLevelResult::~ChangeColumnSecLevelResult()
{}
void ChangeColumnSecLevelResult::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 ChangeColumnSecLevelResult::getErrorCode()const
{
return errorCode_;
}
std::string ChangeColumnSecLevelResult::getErrorMessage()const
{
return errorMessage_;
}
bool ChangeColumnSecLevelResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,56 @@
/*
* 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/CreateLogicDatabaseRequest.h>
using AlibabaCloud::Dms_enterprise::Model::CreateLogicDatabaseRequest;
CreateLogicDatabaseRequest::CreateLogicDatabaseRequest()
: RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateLogicDatabase") {
setMethod(HttpRequest::Method::Post);
}
CreateLogicDatabaseRequest::~CreateLogicDatabaseRequest() {}
long CreateLogicDatabaseRequest::getTid() const {
return tid_;
}
void CreateLogicDatabaseRequest::setTid(long tid) {
tid_ = tid;
setParameter(std::string("Tid"), std::to_string(tid));
}
std::vector<CreateLogicDatabaseRequest::long> CreateLogicDatabaseRequest::getDatabaseIds() const {
return databaseIds_;
}
void CreateLogicDatabaseRequest::setDatabaseIds(const std::vector<CreateLogicDatabaseRequest::long> &databaseIds) {
databaseIds_ = databaseIds;
for(int dep1 = 0; dep1 != databaseIds.size(); dep1++) {
setParameter(std::string("DatabaseIds") + "." + std::to_string(dep1 + 1), std::to_string(databaseIds[dep1]));
}
}
std::string CreateLogicDatabaseRequest::getAlias() const {
return alias_;
}
void CreateLogicDatabaseRequest::setAlias(const std::string &alias) {
alias_ = alias;
setParameter(std::string("Alias"), alias);
}

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/CreateLogicDatabaseResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
CreateLogicDatabaseResult::CreateLogicDatabaseResult() :
ServiceResult()
{}
CreateLogicDatabaseResult::CreateLogicDatabaseResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateLogicDatabaseResult::~CreateLogicDatabaseResult()
{}
void CreateLogicDatabaseResult::parse(const std::string &payload)
{
Json::Reader reader;
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["LogicDbId"].isNull())
logicDbId_ = std::stol(value["LogicDbId"].asString());
}
long CreateLogicDatabaseResult::getLogicDbId()const
{
return logicDbId_;
}
std::string CreateLogicDatabaseResult::getErrorCode()const
{
return errorCode_;
}
std::string CreateLogicDatabaseResult::getErrorMessage()const
{
return errorMessage_;
}
bool CreateLogicDatabaseResult::getSuccess()const
{
return success_;
}

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/CreateProxyAccessRequest.h>
using AlibabaCloud::Dms_enterprise::Model::CreateProxyAccessRequest;
CreateProxyAccessRequest::CreateProxyAccessRequest()
: RpcServiceRequest("dms-enterprise", "2018-11-01", "CreateProxyAccess") {
setMethod(HttpRequest::Method::Post);
}
CreateProxyAccessRequest::~CreateProxyAccessRequest() {}
std::string CreateProxyAccessRequest::getIndepAccount() const {
return indepAccount_;
}
void CreateProxyAccessRequest::setIndepAccount(const std::string &indepAccount) {
indepAccount_ = indepAccount;
setParameter(std::string("IndepAccount"), indepAccount);
}
long CreateProxyAccessRequest::getUserId() const {
return userId_;
}
void CreateProxyAccessRequest::setUserId(long userId) {
userId_ = userId;
setParameter(std::string("UserId"), std::to_string(userId));
}
long CreateProxyAccessRequest::getTid() const {
return tid_;
}
void CreateProxyAccessRequest::setTid(long tid) {
tid_ = tid;
setParameter(std::string("Tid"), std::to_string(tid));
}
std::string CreateProxyAccessRequest::getIndepPassword() const {
return indepPassword_;
}
void CreateProxyAccessRequest::setIndepPassword(const std::string &indepPassword) {
indepPassword_ = indepPassword;
setParameter(std::string("IndepPassword"), indepPassword);
}
long CreateProxyAccessRequest::getProxyId() const {
return proxyId_;
}
void CreateProxyAccessRequest::setProxyId(long proxyId) {
proxyId_ = proxyId;
setParameter(std::string("ProxyId"), std::to_string(proxyId));
}

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/CreateProxyAccessResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
CreateProxyAccessResult::CreateProxyAccessResult() :
ServiceResult()
{}
CreateProxyAccessResult::CreateProxyAccessResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateProxyAccessResult::~CreateProxyAccessResult()
{}
void CreateProxyAccessResult::parse(const std::string &payload)
{
Json::Reader reader;
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["ProxyAccessId"].isNull())
proxyAccessId_ = std::stol(value["ProxyAccessId"].asString());
}
long CreateProxyAccessResult::getProxyAccessId()const
{
return proxyAccessId_;
}
std::string CreateProxyAccessResult::getErrorCode()const
{
return errorCode_;
}
std::string CreateProxyAccessResult::getErrorMessage()const
{
return errorMessage_;
}
bool CreateProxyAccessResult::getSuccess()const
{
return success_;
}

View File

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

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/CreateProxyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
CreateProxyResult::CreateProxyResult() :
ServiceResult()
{}
CreateProxyResult::CreateProxyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateProxyResult::~CreateProxyResult()
{}
void CreateProxyResult::parse(const std::string &payload)
{
Json::Reader reader;
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["ProxyId"].isNull())
proxyId_ = std::stol(value["ProxyId"].asString());
}
long CreateProxyResult::getProxyId()const
{
return proxyId_;
}
std::string CreateProxyResult::getErrorCode()const
{
return errorCode_;
}
std::string CreateProxyResult::getErrorMessage()const
{
return errorMessage_;
}
bool CreateProxyResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +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/DeleteLogicDatabaseRequest.h>
using AlibabaCloud::Dms_enterprise::Model::DeleteLogicDatabaseRequest;
DeleteLogicDatabaseRequest::DeleteLogicDatabaseRequest()
: RpcServiceRequest("dms-enterprise", "2018-11-01", "DeleteLogicDatabase") {
setMethod(HttpRequest::Method::Post);
}
DeleteLogicDatabaseRequest::~DeleteLogicDatabaseRequest() {}
long DeleteLogicDatabaseRequest::getLogicDbId() const {
return logicDbId_;
}
void DeleteLogicDatabaseRequest::setLogicDbId(long logicDbId) {
logicDbId_ = logicDbId;
setParameter(std::string("LogicDbId"), std::to_string(logicDbId));
}
long DeleteLogicDatabaseRequest::getTid() const {
return tid_;
}
void DeleteLogicDatabaseRequest::setTid(long tid) {
tid_ = tid;
setParameter(std::string("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/DeleteLogicDatabaseResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
DeleteLogicDatabaseResult::DeleteLogicDatabaseResult() :
ServiceResult()
{}
DeleteLogicDatabaseResult::DeleteLogicDatabaseResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteLogicDatabaseResult::~DeleteLogicDatabaseResult()
{}
void DeleteLogicDatabaseResult::parse(const std::string &payload)
{
Json::Reader reader;
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();
}
std::string DeleteLogicDatabaseResult::getErrorCode()const
{
return errorCode_;
}
std::string DeleteLogicDatabaseResult::getErrorMessage()const
{
return errorMessage_;
}
bool DeleteLogicDatabaseResult::getSuccess()const
{
return success_;
}

View File

@@ -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/DeleteLogicTableRouteConfigRequest.h>
using AlibabaCloud::Dms_enterprise::Model::DeleteLogicTableRouteConfigRequest;
DeleteLogicTableRouteConfigRequest::DeleteLogicTableRouteConfigRequest()
: RpcServiceRequest("dms-enterprise", "2018-11-01", "DeleteLogicTableRouteConfig") {
setMethod(HttpRequest::Method::Post);
}
DeleteLogicTableRouteConfigRequest::~DeleteLogicTableRouteConfigRequest() {}
std::string DeleteLogicTableRouteConfigRequest::getRouteKey() const {
return routeKey_;
}
void DeleteLogicTableRouteConfigRequest::setRouteKey(const std::string &routeKey) {
routeKey_ = routeKey;
setParameter(std::string("RouteKey"), routeKey);
}
long DeleteLogicTableRouteConfigRequest::getTid() const {
return tid_;
}
void DeleteLogicTableRouteConfigRequest::setTid(long tid) {
tid_ = tid;
setParameter(std::string("Tid"), std::to_string(tid));
}
long DeleteLogicTableRouteConfigRequest::getTableId() const {
return tableId_;
}
void DeleteLogicTableRouteConfigRequest::setTableId(long tableId) {
tableId_ = tableId;
setParameter(std::string("TableId"), std::to_string(tableId));
}

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/DeleteLogicTableRouteConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
DeleteLogicTableRouteConfigResult::DeleteLogicTableRouteConfigResult() :
ServiceResult()
{}
DeleteLogicTableRouteConfigResult::DeleteLogicTableRouteConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteLogicTableRouteConfigResult::~DeleteLogicTableRouteConfigResult()
{}
void DeleteLogicTableRouteConfigResult::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 DeleteLogicTableRouteConfigResult::getErrorCode()const
{
return errorCode_;
}
std::string DeleteLogicTableRouteConfigResult::getErrorMessage()const
{
return errorMessage_;
}
bool DeleteLogicTableRouteConfigResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +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/DeleteProxyAccessRequest.h>
using AlibabaCloud::Dms_enterprise::Model::DeleteProxyAccessRequest;
DeleteProxyAccessRequest::DeleteProxyAccessRequest()
: RpcServiceRequest("dms-enterprise", "2018-11-01", "DeleteProxyAccess") {
setMethod(HttpRequest::Method::Post);
}
DeleteProxyAccessRequest::~DeleteProxyAccessRequest() {}
long DeleteProxyAccessRequest::getProxyAccessId() const {
return proxyAccessId_;
}
void DeleteProxyAccessRequest::setProxyAccessId(long proxyAccessId) {
proxyAccessId_ = proxyAccessId;
setParameter(std::string("ProxyAccessId"), std::to_string(proxyAccessId));
}
long DeleteProxyAccessRequest::getTid() const {
return tid_;
}
void DeleteProxyAccessRequest::setTid(long tid) {
tid_ = tid;
setParameter(std::string("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/DeleteProxyAccessResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
DeleteProxyAccessResult::DeleteProxyAccessResult() :
ServiceResult()
{}
DeleteProxyAccessResult::DeleteProxyAccessResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteProxyAccessResult::~DeleteProxyAccessResult()
{}
void DeleteProxyAccessResult::parse(const std::string &payload)
{
Json::Reader reader;
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();
}
std::string DeleteProxyAccessResult::getErrorCode()const
{
return errorCode_;
}
std::string DeleteProxyAccessResult::getErrorMessage()const
{
return errorMessage_;
}
bool DeleteProxyAccessResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +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/DeleteProxyRequest.h>
using AlibabaCloud::Dms_enterprise::Model::DeleteProxyRequest;
DeleteProxyRequest::DeleteProxyRequest()
: RpcServiceRequest("dms-enterprise", "2018-11-01", "DeleteProxy") {
setMethod(HttpRequest::Method::Post);
}
DeleteProxyRequest::~DeleteProxyRequest() {}
long DeleteProxyRequest::getTid() const {
return tid_;
}
void DeleteProxyRequest::setTid(long tid) {
tid_ = tid;
setParameter(std::string("Tid"), std::to_string(tid));
}
long DeleteProxyRequest::getProxyId() const {
return proxyId_;
}
void DeleteProxyRequest::setProxyId(long proxyId) {
proxyId_ = proxyId;
setParameter(std::string("ProxyId"), std::to_string(proxyId));
}

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

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/EditLogicDatabaseRequest.h>
using AlibabaCloud::Dms_enterprise::Model::EditLogicDatabaseRequest;
EditLogicDatabaseRequest::EditLogicDatabaseRequest()
: RpcServiceRequest("dms-enterprise", "2018-11-01", "EditLogicDatabase") {
setMethod(HttpRequest::Method::Post);
}
EditLogicDatabaseRequest::~EditLogicDatabaseRequest() {}
long EditLogicDatabaseRequest::getLogicDbId() const {
return logicDbId_;
}
void EditLogicDatabaseRequest::setLogicDbId(long logicDbId) {
logicDbId_ = logicDbId;
setParameter(std::string("LogicDbId"), std::to_string(logicDbId));
}
long EditLogicDatabaseRequest::getTid() const {
return tid_;
}
void EditLogicDatabaseRequest::setTid(long tid) {
tid_ = tid;
setParameter(std::string("Tid"), std::to_string(tid));
}
std::vector<EditLogicDatabaseRequest::long> EditLogicDatabaseRequest::getDatabaseIds() const {
return databaseIds_;
}
void EditLogicDatabaseRequest::setDatabaseIds(const std::vector<EditLogicDatabaseRequest::long> &databaseIds) {
databaseIds_ = databaseIds;
for(int dep1 = 0; dep1 != databaseIds.size(); dep1++) {
setParameter(std::string("DatabaseIds") + "." + std::to_string(dep1 + 1), std::to_string(databaseIds[dep1]));
}
}
std::string EditLogicDatabaseRequest::getAlias() const {
return alias_;
}
void EditLogicDatabaseRequest::setAlias(const std::string &alias) {
alias_ = alias;
setParameter(std::string("Alias"), alias);
}

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

View File

@@ -42,6 +42,8 @@ void GetApprovalDetailResult::parse(const std::string &payload)
auto approvalDetailNode = value["ApprovalDetail"];
if(!approvalDetailNode["Description"].isNull())
approvalDetail_.description = approvalDetailNode["Description"].asString();
if(!approvalDetailNode["CreateTime"].isNull())
approvalDetail_.createTime = approvalDetailNode["CreateTime"].asString();
if(!approvalDetailNode["OrderType"].isNull())
approvalDetail_.orderType = approvalDetailNode["OrderType"].asString();
if(!approvalDetailNode["Title"].isNull())

View File

@@ -0,0 +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/GetDBTaskSQLJobLogRequest.h>
using AlibabaCloud::Dms_enterprise::Model::GetDBTaskSQLJobLogRequest;
GetDBTaskSQLJobLogRequest::GetDBTaskSQLJobLogRequest()
: RpcServiceRequest("dms-enterprise", "2018-11-01", "GetDBTaskSQLJobLog") {
setMethod(HttpRequest::Method::Post);
}
GetDBTaskSQLJobLogRequest::~GetDBTaskSQLJobLogRequest() {}
long GetDBTaskSQLJobLogRequest::getJobId() const {
return jobId_;
}
void GetDBTaskSQLJobLogRequest::setJobId(long jobId) {
jobId_ = jobId;
setParameter(std::string("JobId"), std::to_string(jobId));
}
long GetDBTaskSQLJobLogRequest::getTid() const {
return tid_;
}
void GetDBTaskSQLJobLogRequest::setTid(long tid) {
tid_ = tid;
setParameter(std::string("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/GetDBTaskSQLJobLogResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
GetDBTaskSQLJobLogResult::GetDBTaskSQLJobLogResult() :
ServiceResult()
{}
GetDBTaskSQLJobLogResult::GetDBTaskSQLJobLogResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetDBTaskSQLJobLogResult::~GetDBTaskSQLJobLogResult()
{}
void GetDBTaskSQLJobLogResult::parse(const std::string &payload)
{
Json::Reader reader;
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["Log"].isNull())
log_ = value["Log"].asString();
}
std::string GetDBTaskSQLJobLogResult::getLog()const
{
return log_;
}
std::string GetDBTaskSQLJobLogResult::getErrorCode()const
{
return errorCode_;
}
std::string GetDBTaskSQLJobLogResult::getErrorMessage()const
{
return errorMessage_;
}
bool GetDBTaskSQLJobLogResult::getSuccess()const
{
return success_;
}

View File

@@ -84,6 +84,11 @@ void GetInstanceResult::parse(const std::string &payload)
instance_.ddlOnline = std::stoi(instanceNode["DdlOnline"].asString());
if(!instanceNode["EcsRegion"].isNull())
instance_.ecsRegion = instanceNode["EcsRegion"].asString();
auto standardGroupNode = instanceNode["StandardGroup"];
if(!standardGroupNode["GroupName"].isNull())
instance_.standardGroup.groupName = standardGroupNode["GroupName"].asString();
if(!standardGroupNode["GroupMode"].isNull())
instance_.standardGroup.groupMode = standardGroupNode["GroupMode"].asString();
auto allOwnerIdList = instanceNode["OwnerIdList"]["OwnerIds"];
for (auto value : allOwnerIdList)
instance_.ownerIdList.push_back(value.asString());

View File

@@ -52,6 +52,8 @@ void GetLogicDatabaseResult::parse(const std::string &payload)
logicDatabase_.searchName = logicDatabaseNode["SearchName"].asString();
if(!logicDatabaseNode["EnvType"].isNull())
logicDatabase_.envType = logicDatabaseNode["EnvType"].asString();
if(!logicDatabaseNode["Alias"].isNull())
logicDatabase_.alias = logicDatabaseNode["Alias"].asString();
auto allOwnerIdList = logicDatabaseNode["OwnerIdList"]["OwnerIds"];
for (auto value : allOwnerIdList)
logicDatabase_.ownerIdList.push_back(value.asString());

View File

@@ -48,7 +48,9 @@ void GetOpLogResult::parse(const std::string &payload)
if(!valueOpLogDetailsOpLogDetail["Database"].isNull())
opLogDetailsObject.database = valueOpLogDetailsOpLogDetail["Database"].asString();
if(!valueOpLogDetailsOpLogDetail["UserId"].isNull())
opLogDetailsObject.userId = std::stol(valueOpLogDetailsOpLogDetail["UserId"].asString());
opLogDetailsObject.userId = valueOpLogDetailsOpLogDetail["UserId"].asString();
if(!valueOpLogDetailsOpLogDetail["OpUserId"].isNull())
opLogDetailsObject.opUserId = std::stol(valueOpLogDetailsOpLogDetail["OpUserId"].asString());
if(!valueOpLogDetailsOpLogDetail["OpContent"].isNull())
opLogDetailsObject.opContent = valueOpLogDetailsOpLogDetail["OpContent"].asString();
if(!valueOpLogDetailsOpLogDetail["UserNick"].isNull())

View File

@@ -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/GetProxyRequest.h>
using AlibabaCloud::Dms_enterprise::Model::GetProxyRequest;
GetProxyRequest::GetProxyRequest()
: RpcServiceRequest("dms-enterprise", "2018-11-01", "GetProxy") {
setMethod(HttpRequest::Method::Post);
}
GetProxyRequest::~GetProxyRequest() {}
long GetProxyRequest::getTid() const {
return tid_;
}
void GetProxyRequest::setTid(long tid) {
tid_ = tid;
setParameter(std::string("Tid"), std::to_string(tid));
}
long GetProxyRequest::getInstanceId() const {
return instanceId_;
}
void GetProxyRequest::setInstanceId(long instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), std::to_string(instanceId));
}
long GetProxyRequest::getProxyId() const {
return proxyId_;
}
void GetProxyRequest::setProxyId(long proxyId) {
proxyId_ = proxyId;
setParameter(std::string("ProxyId"), std::to_string(proxyId));
}

View File

@@ -0,0 +1,135 @@
/*
* 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/GetProxyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
GetProxyResult::GetProxyResult() :
ServiceResult()
{}
GetProxyResult::GetProxyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetProxyResult::~GetProxyResult()
{}
void GetProxyResult::parse(const std::string &payload)
{
Json::Reader reader;
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["ProxyId"].isNull())
proxyId_ = std::stol(value["ProxyId"].asString());
if(!value["CreatorId"].isNull())
creatorId_ = std::stol(value["CreatorId"].asString());
if(!value["CreatorName"].isNull())
creatorName_ = value["CreatorName"].asString();
if(!value["InstanceId"].isNull())
instanceId_ = std::stol(value["InstanceId"].asString());
if(!value["PrivateEnable"].isNull())
privateEnable_ = value["PrivateEnable"].asString() == "true";
if(!value["PrivateHost"].isNull())
privateHost_ = value["PrivateHost"].asString();
if(!value["PublicEnable"].isNull())
publicEnable_ = value["PublicEnable"].asString() == "true";
if(!value["PublicHost"].isNull())
publicHost_ = value["PublicHost"].asString();
if(!value["MysqlPort"].isNull())
mysqlPort_ = std::stoi(value["MysqlPort"].asString());
if(!value["HttpsPort"].isNull())
httpsPort_ = std::stoi(value["HttpsPort"].asString());
}
std::string GetProxyResult::getPublicHost()const
{
return publicHost_;
}
std::string GetProxyResult::getPrivateHost()const
{
return privateHost_;
}
long GetProxyResult::getInstanceId()const
{
return instanceId_;
}
long GetProxyResult::getProxyId()const
{
return proxyId_;
}
long GetProxyResult::getCreatorId()const
{
return creatorId_;
}
bool GetProxyResult::getSuccess()const
{
return success_;
}
bool GetProxyResult::getPublicEnable()const
{
return publicEnable_;
}
int GetProxyResult::getMysqlPort()const
{
return mysqlPort_;
}
std::string GetProxyResult::getErrorCode()const
{
return errorCode_;
}
std::string GetProxyResult::getErrorMessage()const
{
return errorMessage_;
}
bool GetProxyResult::getPrivateEnable()const
{
return privateEnable_;
}
std::string GetProxyResult::getCreatorName()const
{
return creatorName_;
}
int GetProxyResult::getHttpsPort()const
{
return httpsPort_;
}

View File

@@ -0,0 +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/GetSparkJobDetailRequest.h>
using AlibabaCloud::Dms_enterprise::Model::GetSparkJobDetailRequest;
GetSparkJobDetailRequest::GetSparkJobDetailRequest()
: RpcServiceRequest("dms-enterprise", "2018-11-01", "GetSparkJobDetail") {
setMethod(HttpRequest::Method::Post);
}
GetSparkJobDetailRequest::~GetSparkJobDetailRequest() {}
long GetSparkJobDetailRequest::getJobId() const {
return jobId_;
}
void GetSparkJobDetailRequest::setJobId(long jobId) {
jobId_ = jobId;
setParameter(std::string("JobId"), std::to_string(jobId));
}
long GetSparkJobDetailRequest::getTid() const {
return tid_;
}
void GetSparkJobDetailRequest::setTid(long tid) {
tid_ = tid;
setParameter(std::string("Tid"), std::to_string(tid));
}

View File

@@ -0,0 +1,91 @@
/*
* 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/GetSparkJobDetailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
GetSparkJobDetailResult::GetSparkJobDetailResult() :
ServiceResult()
{}
GetSparkJobDetailResult::GetSparkJobDetailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetSparkJobDetailResult::~GetSparkJobDetailResult()
{}
void GetSparkJobDetailResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto jobDetailNode = value["JobDetail"];
if(!jobDetailNode["JobId"].isNull())
jobDetail_.jobId = jobDetailNode["JobId"].asString();
if(!jobDetailNode["Name"].isNull())
jobDetail_.name = jobDetailNode["Name"].asString();
if(!jobDetailNode["Status"].isNull())
jobDetail_.status = jobDetailNode["Status"].asString();
if(!jobDetailNode["MainClass"].isNull())
jobDetail_.mainClass = jobDetailNode["MainClass"].asString();
if(!jobDetailNode["MainFile"].isNull())
jobDetail_.mainFile = jobDetailNode["MainFile"].asString();
if(!jobDetailNode["Arguments"].isNull())
jobDetail_.arguments = jobDetailNode["Arguments"].asString();
if(!jobDetailNode["Configuration"].isNull())
jobDetail_.configuration = jobDetailNode["Configuration"].asString();
if(!jobDetailNode["SubmitTime"].isNull())
jobDetail_.submitTime = jobDetailNode["SubmitTime"].asString();
if(!jobDetailNode["BeginTime"].isNull())
jobDetail_.beginTime = jobDetailNode["BeginTime"].asString();
if(!jobDetailNode["EndTime"].isNull())
jobDetail_.endTime = jobDetailNode["EndTime"].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();
}
GetSparkJobDetailResult::JobDetail GetSparkJobDetailResult::getJobDetail()const
{
return jobDetail_;
}
std::string GetSparkJobDetailResult::getErrorCode()const
{
return errorCode_;
}
std::string GetSparkJobDetailResult::getErrorMessage()const
{
return errorMessage_;
}
bool GetSparkJobDetailResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +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/GetSparkJobDriverLogRequest.h>
using AlibabaCloud::Dms_enterprise::Model::GetSparkJobDriverLogRequest;
GetSparkJobDriverLogRequest::GetSparkJobDriverLogRequest()
: RpcServiceRequest("dms-enterprise", "2018-11-01", "GetSparkJobDriverLog") {
setMethod(HttpRequest::Method::Post);
}
GetSparkJobDriverLogRequest::~GetSparkJobDriverLogRequest() {}
long GetSparkJobDriverLogRequest::getJobId() const {
return jobId_;
}
void GetSparkJobDriverLogRequest::setJobId(long jobId) {
jobId_ = jobId;
setParameter(std::string("JobId"), std::to_string(jobId));
}
long GetSparkJobDriverLogRequest::getTid() const {
return tid_;
}
void GetSparkJobDriverLogRequest::setTid(long tid) {
tid_ = tid;
setParameter(std::string("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/GetSparkJobDriverLogResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
GetSparkJobDriverLogResult::GetSparkJobDriverLogResult() :
ServiceResult()
{}
GetSparkJobDriverLogResult::GetSparkJobDriverLogResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetSparkJobDriverLogResult::~GetSparkJobDriverLogResult()
{}
void GetSparkJobDriverLogResult::parse(const std::string &payload)
{
Json::Reader reader;
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["DriverLog"].isNull())
driverLog_ = value["DriverLog"].asString();
}
std::string GetSparkJobDriverLogResult::getErrorCode()const
{
return errorCode_;
}
std::string GetSparkJobDriverLogResult::getErrorMessage()const
{
return errorMessage_;
}
std::string GetSparkJobDriverLogResult::getDriverLog()const
{
return driverLog_;
}
bool GetSparkJobDriverLogResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +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/GetSparkJobExecutorLogsRequest.h>
using AlibabaCloud::Dms_enterprise::Model::GetSparkJobExecutorLogsRequest;
GetSparkJobExecutorLogsRequest::GetSparkJobExecutorLogsRequest()
: RpcServiceRequest("dms-enterprise", "2018-11-01", "GetSparkJobExecutorLogs") {
setMethod(HttpRequest::Method::Post);
}
GetSparkJobExecutorLogsRequest::~GetSparkJobExecutorLogsRequest() {}
long GetSparkJobExecutorLogsRequest::getJobId() const {
return jobId_;
}
void GetSparkJobExecutorLogsRequest::setJobId(long jobId) {
jobId_ = jobId;
setParameter(std::string("JobId"), std::to_string(jobId));
}
long GetSparkJobExecutorLogsRequest::getTid() const {
return tid_;
}
void GetSparkJobExecutorLogsRequest::setTid(long tid) {
tid_ = tid;
setParameter(std::string("Tid"), std::to_string(tid));
}

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/GetSparkJobExecutorLogsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
GetSparkJobExecutorLogsResult::GetSparkJobExecutorLogsResult() :
ServiceResult()
{}
GetSparkJobExecutorLogsResult::GetSparkJobExecutorLogsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetSparkJobExecutorLogsResult::~GetSparkJobExecutorLogsResult()
{}
void GetSparkJobExecutorLogsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allExecutorLogs = value["ExecutorLogs"]["executorLogs"];
for (const auto &item : allExecutorLogs)
executorLogs_.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> GetSparkJobExecutorLogsResult::getExecutorLogs()const
{
return executorLogs_;
}
std::string GetSparkJobExecutorLogsResult::getErrorCode()const
{
return errorCode_;
}
std::string GetSparkJobExecutorLogsResult::getErrorMessage()const
{
return errorMessage_;
}
bool GetSparkJobExecutorLogsResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +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/GetSparkJobLogRequest.h>
using AlibabaCloud::Dms_enterprise::Model::GetSparkJobLogRequest;
GetSparkJobLogRequest::GetSparkJobLogRequest()
: RpcServiceRequest("dms-enterprise", "2018-11-01", "GetSparkJobLog") {
setMethod(HttpRequest::Method::Post);
}
GetSparkJobLogRequest::~GetSparkJobLogRequest() {}
long GetSparkJobLogRequest::getJobId() const {
return jobId_;
}
void GetSparkJobLogRequest::setJobId(long jobId) {
jobId_ = jobId;
setParameter(std::string("JobId"), std::to_string(jobId));
}
long GetSparkJobLogRequest::getTid() const {
return tid_;
}
void GetSparkJobLogRequest::setTid(long tid) {
tid_ = tid;
setParameter(std::string("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/GetSparkJobLogResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
GetSparkJobLogResult::GetSparkJobLogResult() :
ServiceResult()
{}
GetSparkJobLogResult::GetSparkJobLogResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetSparkJobLogResult::~GetSparkJobLogResult()
{}
void GetSparkJobLogResult::parse(const std::string &payload)
{
Json::Reader reader;
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["Log"].isNull())
log_ = value["Log"].asString();
}
std::string GetSparkJobLogResult::getLog()const
{
return log_;
}
std::string GetSparkJobLogResult::getErrorCode()const
{
return errorCode_;
}
std::string GetSparkJobLogResult::getErrorMessage()const
{
return errorMessage_;
}
bool GetSparkJobLogResult::getSuccess()const
{
return success_;
}

View File

@@ -62,6 +62,16 @@ void GetUserResult::parse(const std::string &payload)
user_.mobile = userNode["Mobile"].asString();
if(!userNode["Uid"].isNull())
user_.uid = userNode["Uid"].asString();
if(!userNode["Email"].isNull())
user_.email = userNode["Email"].asString();
if(!userNode["DingRobot"].isNull())
user_.dingRobot = userNode["DingRobot"].asString();
if(!userNode["Webhook"].isNull())
user_.webhook = userNode["Webhook"].asString();
if(!userNode["SignatureMethod"].isNull())
user_.signatureMethod = userNode["SignatureMethod"].asString();
if(!userNode["NotificationMode"].isNull())
user_.notificationMode = userNode["NotificationMode"].asString();
auto allRoleIdList = userNode["RoleIdList"]["RoleIds"];
for (auto value : allRoleIdList)
user_.roleIdList.push_back(value.asString());

View File

@@ -70,6 +70,15 @@ void GrantUserPermissionRequest::setTid(long tid) {
setParameter(std::string("Tid"), std::to_string(tid));
}
long GrantUserPermissionRequest::getInstanceId() const {
return instanceId_;
}
void GrantUserPermissionRequest::setInstanceId(long instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), std::to_string(instanceId));
}
std::string GrantUserPermissionRequest::getDbId() const {
return dbId_;
}

View File

@@ -0,0 +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/InspectProxyAccessSecretRequest.h>
using AlibabaCloud::Dms_enterprise::Model::InspectProxyAccessSecretRequest;
InspectProxyAccessSecretRequest::InspectProxyAccessSecretRequest()
: RpcServiceRequest("dms-enterprise", "2018-11-01", "InspectProxyAccessSecret") {
setMethod(HttpRequest::Method::Post);
}
InspectProxyAccessSecretRequest::~InspectProxyAccessSecretRequest() {}
long InspectProxyAccessSecretRequest::getProxyAccessId() const {
return proxyAccessId_;
}
void InspectProxyAccessSecretRequest::setProxyAccessId(long proxyAccessId) {
proxyAccessId_ = proxyAccessId;
setParameter(std::string("ProxyAccessId"), std::to_string(proxyAccessId));
}
long InspectProxyAccessSecretRequest::getTid() const {
return tid_;
}
void InspectProxyAccessSecretRequest::setTid(long tid) {
tid_ = tid;
setParameter(std::string("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/InspectProxyAccessSecretResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
InspectProxyAccessSecretResult::InspectProxyAccessSecretResult() :
ServiceResult()
{}
InspectProxyAccessSecretResult::InspectProxyAccessSecretResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
InspectProxyAccessSecretResult::~InspectProxyAccessSecretResult()
{}
void InspectProxyAccessSecretResult::parse(const std::string &payload)
{
Json::Reader reader;
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["AccessSecret"].isNull())
accessSecret_ = value["AccessSecret"].asString();
}
std::string InspectProxyAccessSecretResult::getAccessSecret()const
{
return accessSecret_;
}
std::string InspectProxyAccessSecretResult::getErrorCode()const
{
return errorCode_;
}
std::string InspectProxyAccessSecretResult::getErrorMessage()const
{
return errorMessage_;
}
bool InspectProxyAccessSecretResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +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/KillSparkJobRequest.h>
using AlibabaCloud::Dms_enterprise::Model::KillSparkJobRequest;
KillSparkJobRequest::KillSparkJobRequest()
: RpcServiceRequest("dms-enterprise", "2018-11-01", "KillSparkJob") {
setMethod(HttpRequest::Method::Post);
}
KillSparkJobRequest::~KillSparkJobRequest() {}
long KillSparkJobRequest::getJobId() const {
return jobId_;
}
void KillSparkJobRequest::setJobId(long jobId) {
jobId_ = jobId;
setParameter(std::string("JobId"), std::to_string(jobId));
}
long KillSparkJobRequest::getTid() const {
return tid_;
}
void KillSparkJobRequest::setTid(long tid) {
tid_ = tid;
setParameter(std::string("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/KillSparkJobResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
KillSparkJobResult::KillSparkJobResult() :
ServiceResult()
{}
KillSparkJobResult::KillSparkJobResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
KillSparkJobResult::~KillSparkJobResult()
{}
void KillSparkJobResult::parse(const std::string &payload)
{
Json::Reader reader;
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();
}
std::string KillSparkJobResult::getErrorCode()const
{
return errorCode_;
}
std::string KillSparkJobResult::getErrorMessage()const
{
return errorMessage_;
}
bool KillSparkJobResult::getSuccess()const
{
return success_;
}

View File

@@ -61,6 +61,16 @@ void ListDBTaskSQLJobDetailResult::parse(const std::string &payload)
dBTaskSQLJobDetailListObject.sqlType = valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["SqlType"].asString();
if(!valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["Status"].isNull())
dBTaskSQLJobDetailListObject.status = valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["Status"].asString();
if(!valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["Log"].isNull())
dBTaskSQLJobDetailListObject.log = valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["Log"].asString();
if(!valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["StartTime"].isNull())
dBTaskSQLJobDetailListObject.startTime = valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["StartTime"].asString();
if(!valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["EndTime"].isNull())
dBTaskSQLJobDetailListObject.endTime = valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["EndTime"].asString();
if(!valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["TimeDelay"].isNull())
dBTaskSQLJobDetailListObject.timeDelay = std::stol(valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["TimeDelay"].asString());
if(!valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["AffectRows"].isNull())
dBTaskSQLJobDetailListObject.affectRows = std::stol(valueDBTaskSQLJobDetailListDBTaskSQLJobDetail["AffectRows"].asString());
dBTaskSQLJobDetailList_.push_back(dBTaskSQLJobDetailListObject);
}
if(!value["Success"].isNull())

View File

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

View File

@@ -0,0 +1,82 @@
/*
* 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/ListDataCorrectPreCheckDBResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
ListDataCorrectPreCheckDBResult::ListDataCorrectPreCheckDBResult() :
ServiceResult()
{}
ListDataCorrectPreCheckDBResult::ListDataCorrectPreCheckDBResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListDataCorrectPreCheckDBResult::~ListDataCorrectPreCheckDBResult()
{}
void ListDataCorrectPreCheckDBResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allPreCheckDBListNode = value["PreCheckDBList"]["PreCheckDB"];
for (auto valuePreCheckDBListPreCheckDB : allPreCheckDBListNode)
{
PreCheckDB preCheckDBListObject;
if(!valuePreCheckDBListPreCheckDB["DbId"].isNull())
preCheckDBListObject.dbId = std::stol(valuePreCheckDBListPreCheckDB["DbId"].asString());
if(!valuePreCheckDBListPreCheckDB["SearchName"].isNull())
preCheckDBListObject.searchName = valuePreCheckDBListPreCheckDB["SearchName"].asString();
if(!valuePreCheckDBListPreCheckDB["SqlNum"].isNull())
preCheckDBListObject.sqlNum = std::stol(valuePreCheckDBListPreCheckDB["SqlNum"].asString());
preCheckDBList_.push_back(preCheckDBListObject);
}
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::string ListDataCorrectPreCheckDBResult::getErrorCode()const
{
return errorCode_;
}
std::vector<ListDataCorrectPreCheckDBResult::PreCheckDB> ListDataCorrectPreCheckDBResult::getPreCheckDBList()const
{
return preCheckDBList_;
}
std::string ListDataCorrectPreCheckDBResult::getErrorMessage()const
{
return errorMessage_;
}
bool ListDataCorrectPreCheckDBResult::getSuccess()const
{
return success_;
}

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/ListDataCorrectPreCheckSQLRequest.h>
using AlibabaCloud::Dms_enterprise::Model::ListDataCorrectPreCheckSQLRequest;
ListDataCorrectPreCheckSQLRequest::ListDataCorrectPreCheckSQLRequest()
: RpcServiceRequest("dms-enterprise", "2018-11-01", "ListDataCorrectPreCheckSQL") {
setMethod(HttpRequest::Method::Post);
}
ListDataCorrectPreCheckSQLRequest::~ListDataCorrectPreCheckSQLRequest() {}
long ListDataCorrectPreCheckSQLRequest::getOrderId() const {
return orderId_;
}
void ListDataCorrectPreCheckSQLRequest::setOrderId(long orderId) {
orderId_ = orderId;
setParameter(std::string("OrderId"), std::to_string(orderId));
}
long ListDataCorrectPreCheckSQLRequest::getPageNumber() const {
return pageNumber_;
}
void ListDataCorrectPreCheckSQLRequest::setPageNumber(long pageNumber) {
pageNumber_ = pageNumber;
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
long ListDataCorrectPreCheckSQLRequest::getTid() const {
return tid_;
}
void ListDataCorrectPreCheckSQLRequest::setTid(long tid) {
tid_ = tid;
setParameter(std::string("Tid"), std::to_string(tid));
}
long ListDataCorrectPreCheckSQLRequest::getDbId() const {
return dbId_;
}
void ListDataCorrectPreCheckSQLRequest::setDbId(long dbId) {
dbId_ = dbId;
setParameter(std::string("DbId"), std::to_string(dbId));
}
long ListDataCorrectPreCheckSQLRequest::getPageSize() const {
return pageSize_;
}
void ListDataCorrectPreCheckSQLRequest::setPageSize(long pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}

View File

@@ -0,0 +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/ListDataCorrectPreCheckSQLResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
ListDataCorrectPreCheckSQLResult::ListDataCorrectPreCheckSQLResult() :
ServiceResult()
{}
ListDataCorrectPreCheckSQLResult::ListDataCorrectPreCheckSQLResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListDataCorrectPreCheckSQLResult::~ListDataCorrectPreCheckSQLResult()
{}
void ListDataCorrectPreCheckSQLResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allPreCheckSQLListNode = value["PreCheckSQLList"]["PreCheckSQL"];
for (auto valuePreCheckSQLListPreCheckSQL : allPreCheckSQLListNode)
{
PreCheckSQL preCheckSQLListObject;
if(!valuePreCheckSQLListPreCheckSQL["CheckSQL"].isNull())
preCheckSQLListObject.checkSQL = valuePreCheckSQLListPreCheckSQL["CheckSQL"].asString();
if(!valuePreCheckSQLListPreCheckSQL["AffectRows"].isNull())
preCheckSQLListObject.affectRows = std::stol(valuePreCheckSQLListPreCheckSQL["AffectRows"].asString());
if(!valuePreCheckSQLListPreCheckSQL["DbId"].isNull())
preCheckSQLListObject.dbId = std::stol(valuePreCheckSQLListPreCheckSQL["DbId"].asString());
if(!valuePreCheckSQLListPreCheckSQL["SQLReviewQueryKey"].isNull())
preCheckSQLListObject.sQLReviewQueryKey = valuePreCheckSQLListPreCheckSQL["SQLReviewQueryKey"].asString();
if(!valuePreCheckSQLListPreCheckSQL["SqlReviewStatus"].isNull())
preCheckSQLListObject.sqlReviewStatus = valuePreCheckSQLListPreCheckSQL["SqlReviewStatus"].asString();
if(!valuePreCheckSQLListPreCheckSQL["SqlType"].isNull())
preCheckSQLListObject.sqlType = valuePreCheckSQLListPreCheckSQL["SqlType"].asString();
if(!valuePreCheckSQLListPreCheckSQL["TableNames"].isNull())
preCheckSQLListObject.tableNames = valuePreCheckSQLListPreCheckSQL["TableNames"].asString();
preCheckSQLList_.push_back(preCheckSQLListObject);
}
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<ListDataCorrectPreCheckSQLResult::PreCheckSQL> ListDataCorrectPreCheckSQLResult::getPreCheckSQLList()const
{
return preCheckSQLList_;
}
std::string ListDataCorrectPreCheckSQLResult::getErrorCode()const
{
return errorCode_;
}
std::string ListDataCorrectPreCheckSQLResult::getErrorMessage()const
{
return errorMessage_;
}
bool ListDataCorrectPreCheckSQLResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +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/ListInstanceLoginAuditLogRequest.h>
using AlibabaCloud::Dms_enterprise::Model::ListInstanceLoginAuditLogRequest;
ListInstanceLoginAuditLogRequest::ListInstanceLoginAuditLogRequest()
: RpcServiceRequest("dms-enterprise", "2018-11-01", "ListInstanceLoginAuditLog") {
setMethod(HttpRequest::Method::Post);
}
ListInstanceLoginAuditLogRequest::~ListInstanceLoginAuditLogRequest() {}
std::string ListInstanceLoginAuditLogRequest::getSearchName() const {
return searchName_;
}
void ListInstanceLoginAuditLogRequest::setSearchName(const std::string &searchName) {
searchName_ = searchName;
setParameter(std::string("SearchName"), searchName);
}
std::string ListInstanceLoginAuditLogRequest::getOpUserName() const {
return opUserName_;
}
void ListInstanceLoginAuditLogRequest::setOpUserName(const std::string &opUserName) {
opUserName_ = opUserName;
setParameter(std::string("OpUserName"), opUserName);
}
std::string ListInstanceLoginAuditLogRequest::getEndTime() const {
return endTime_;
}
void ListInstanceLoginAuditLogRequest::setEndTime(const std::string &endTime) {
endTime_ = endTime;
setParameter(std::string("EndTime"), endTime);
}
std::string ListInstanceLoginAuditLogRequest::getStartTime() const {
return startTime_;
}
void ListInstanceLoginAuditLogRequest::setStartTime(const std::string &startTime) {
startTime_ = startTime;
setParameter(std::string("StartTime"), startTime);
}
int ListInstanceLoginAuditLogRequest::getPageNumber() const {
return pageNumber_;
}
void ListInstanceLoginAuditLogRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
long ListInstanceLoginAuditLogRequest::getTid() const {
return tid_;
}
void ListInstanceLoginAuditLogRequest::setTid(long tid) {
tid_ = tid;
setParameter(std::string("Tid"), std::to_string(tid));
}
int ListInstanceLoginAuditLogRequest::getPageSize() const {
return pageSize_;
}
void ListInstanceLoginAuditLogRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}

View File

@@ -0,0 +1,97 @@
/*
* 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/ListInstanceLoginAuditLogResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
ListInstanceLoginAuditLogResult::ListInstanceLoginAuditLogResult() :
ServiceResult()
{}
ListInstanceLoginAuditLogResult::ListInstanceLoginAuditLogResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListInstanceLoginAuditLogResult::~ListInstanceLoginAuditLogResult()
{}
void ListInstanceLoginAuditLogResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allInstanceLoginAuditLogListNode = value["InstanceLoginAuditLogList"]["InstanceLoginAuditLog"];
for (auto valueInstanceLoginAuditLogListInstanceLoginAuditLog : allInstanceLoginAuditLogListNode)
{
InstanceLoginAuditLog instanceLoginAuditLogListObject;
if(!valueInstanceLoginAuditLogListInstanceLoginAuditLog["OpTime"].isNull())
instanceLoginAuditLogListObject.opTime = valueInstanceLoginAuditLogListInstanceLoginAuditLog["OpTime"].asString();
if(!valueInstanceLoginAuditLogListInstanceLoginAuditLog["UserName"].isNull())
instanceLoginAuditLogListObject.userName = valueInstanceLoginAuditLogListInstanceLoginAuditLog["UserName"].asString();
if(!valueInstanceLoginAuditLogListInstanceLoginAuditLog["UserId"].isNull())
instanceLoginAuditLogListObject.userId = std::stol(valueInstanceLoginAuditLogListInstanceLoginAuditLog["UserId"].asString());
if(!valueInstanceLoginAuditLogListInstanceLoginAuditLog["InstanceName"].isNull())
instanceLoginAuditLogListObject.instanceName = valueInstanceLoginAuditLogListInstanceLoginAuditLog["InstanceName"].asString();
if(!valueInstanceLoginAuditLogListInstanceLoginAuditLog["InstanceId"].isNull())
instanceLoginAuditLogListObject.instanceId = std::stol(valueInstanceLoginAuditLogListInstanceLoginAuditLog["InstanceId"].asString());
if(!valueInstanceLoginAuditLogListInstanceLoginAuditLog["DbUser"].isNull())
instanceLoginAuditLogListObject.dbUser = valueInstanceLoginAuditLogListInstanceLoginAuditLog["DbUser"].asString();
if(!valueInstanceLoginAuditLogListInstanceLoginAuditLog["RequestIp"].isNull())
instanceLoginAuditLogListObject.requestIp = valueInstanceLoginAuditLogListInstanceLoginAuditLog["RequestIp"].asString();
instanceLoginAuditLogList_.push_back(instanceLoginAuditLogListObject);
}
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<ListInstanceLoginAuditLogResult::InstanceLoginAuditLog> ListInstanceLoginAuditLogResult::getInstanceLoginAuditLogList()const
{
return instanceLoginAuditLogList_;
}
long ListInstanceLoginAuditLogResult::getTotalCount()const
{
return totalCount_;
}
std::string ListInstanceLoginAuditLogResult::getErrorCode()const
{
return errorCode_;
}
std::string ListInstanceLoginAuditLogResult::getErrorMessage()const
{
return errorMessage_;
}
bool ListInstanceLoginAuditLogResult::getSuccess()const
{
return success_;
}

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/ListInstanceUserPermissionsRequest.h>
using AlibabaCloud::Dms_enterprise::Model::ListInstanceUserPermissionsRequest;
ListInstanceUserPermissionsRequest::ListInstanceUserPermissionsRequest()
: RpcServiceRequest("dms-enterprise", "2018-11-01", "ListInstanceUserPermissions") {
setMethod(HttpRequest::Method::Post);
}
ListInstanceUserPermissionsRequest::~ListInstanceUserPermissionsRequest() {}
long ListInstanceUserPermissionsRequest::getTid() const {
return tid_;
}
void ListInstanceUserPermissionsRequest::setTid(long tid) {
tid_ = tid;
setParameter(std::string("Tid"), std::to_string(tid));
}
int ListInstanceUserPermissionsRequest::getPageNumber() const {
return pageNumber_;
}
void ListInstanceUserPermissionsRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
std::string ListInstanceUserPermissionsRequest::getInstanceId() const {
return instanceId_;
}
void ListInstanceUserPermissionsRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
int ListInstanceUserPermissionsRequest::getPageSize() const {
return pageSize_;
}
void ListInstanceUserPermissionsRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string ListInstanceUserPermissionsRequest::getUserName() const {
return userName_;
}
void ListInstanceUserPermissionsRequest::setUserName(const std::string &userName) {
userName_ = userName;
setParameter(std::string("UserName"), userName);
}

View File

@@ -0,0 +1,107 @@
/*
* 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/ListInstanceUserPermissionsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
ListInstanceUserPermissionsResult::ListInstanceUserPermissionsResult() :
ServiceResult()
{}
ListInstanceUserPermissionsResult::ListInstanceUserPermissionsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListInstanceUserPermissionsResult::~ListInstanceUserPermissionsResult()
{}
void ListInstanceUserPermissionsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allUserPermissionsNode = value["UserPermissions"]["UserPermission"];
for (auto valueUserPermissionsUserPermission : allUserPermissionsNode)
{
UserPermission userPermissionsObject;
if(!valueUserPermissionsUserPermission["UserId"].isNull())
userPermissionsObject.userId = valueUserPermissionsUserPermission["UserId"].asString();
if(!valueUserPermissionsUserPermission["UserNickName"].isNull())
userPermissionsObject.userNickName = valueUserPermissionsUserPermission["UserNickName"].asString();
if(!valueUserPermissionsUserPermission["InstanceId"].isNull())
userPermissionsObject.instanceId = valueUserPermissionsUserPermission["InstanceId"].asString();
auto allPermDetailsNode = valueUserPermissionsUserPermission["PermDetails"]["PermDetail"];
for (auto valueUserPermissionsUserPermissionPermDetailsPermDetail : allPermDetailsNode)
{
UserPermission::PermDetail permDetailsObject;
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);
}
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 ListInstanceUserPermissionsResult::getTotalCount()const
{
return totalCount_;
}
std::string ListInstanceUserPermissionsResult::getErrorCode()const
{
return errorCode_;
}
std::vector<ListInstanceUserPermissionsResult::UserPermission> ListInstanceUserPermissionsResult::getUserPermissions()const
{
return userPermissions_;
}
std::string ListInstanceUserPermissionsResult::getErrorMessage()const
{
return errorMessage_;
}
bool ListInstanceUserPermissionsResult::getSuccess()const
{
return success_;
}

View File

@@ -87,6 +87,11 @@ void ListInstancesResult::parse(const std::string &payload)
instanceListObject.ddlOnline = std::stoi(valueInstanceListInstance["DdlOnline"].asString());
if(!valueInstanceListInstance["EcsRegion"].isNull())
instanceListObject.ecsRegion = valueInstanceListInstance["EcsRegion"].asString();
auto standardGroupNode = value["StandardGroup"];
if(!standardGroupNode["GroupName"].isNull())
instanceListObject.standardGroup.groupName = standardGroupNode["GroupName"].asString();
if(!standardGroupNode["GroupMode"].isNull())
instanceListObject.standardGroup.groupMode = standardGroupNode["GroupMode"].asString();
auto allOwnerIdList = value["OwnerIdList"]["OwnerIds"];
for (auto value : allOwnerIdList)
instanceListObject.ownerIdList.push_back(value.asString());

View File

@@ -55,6 +55,8 @@ void ListLogicDatabasesResult::parse(const std::string &payload)
logicDatabaseListObject.searchName = valueLogicDatabaseListLogicDatabase["SearchName"].asString();
if(!valueLogicDatabaseListLogicDatabase["EnvType"].isNull())
logicDatabaseListObject.envType = valueLogicDatabaseListLogicDatabase["EnvType"].asString();
if(!valueLogicDatabaseListLogicDatabase["Alias"].isNull())
logicDatabaseListObject.alias = valueLogicDatabaseListLogicDatabase["Alias"].asString();
auto allOwnerIdList = value["OwnerIdList"]["OwnerIds"];
for (auto value : allOwnerIdList)
logicDatabaseListObject.ownerIdList.push_back(value.asString());

View File

@@ -0,0 +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/ListLogicTableRouteConfigRequest.h>
using AlibabaCloud::Dms_enterprise::Model::ListLogicTableRouteConfigRequest;
ListLogicTableRouteConfigRequest::ListLogicTableRouteConfigRequest()
: RpcServiceRequest("dms-enterprise", "2018-11-01", "ListLogicTableRouteConfig") {
setMethod(HttpRequest::Method::Post);
}
ListLogicTableRouteConfigRequest::~ListLogicTableRouteConfigRequest() {}
long ListLogicTableRouteConfigRequest::getTableId() const {
return tableId_;
}
void ListLogicTableRouteConfigRequest::setTableId(long tableId) {
tableId_ = tableId;
setParameter(std::string("TableId"), std::to_string(tableId));
}
long ListLogicTableRouteConfigRequest::getTid() const {
return tid_;
}
void ListLogicTableRouteConfigRequest::setTid(long tid) {
tid_ = tid;
setParameter(std::string("Tid"), std::to_string(tid));
}

View File

@@ -0,0 +1,82 @@
/*
* 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/ListLogicTableRouteConfigResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
ListLogicTableRouteConfigResult::ListLogicTableRouteConfigResult() :
ServiceResult()
{}
ListLogicTableRouteConfigResult::ListLogicTableRouteConfigResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListLogicTableRouteConfigResult::~ListLogicTableRouteConfigResult()
{}
void ListLogicTableRouteConfigResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allLogicTableRouteConfigListNode = value["LogicTableRouteConfigList"]["LogicTableRouteConfig"];
for (auto valueLogicTableRouteConfigListLogicTableRouteConfig : allLogicTableRouteConfigListNode)
{
LogicTableRouteConfig logicTableRouteConfigListObject;
if(!valueLogicTableRouteConfigListLogicTableRouteConfig["RouteKey"].isNull())
logicTableRouteConfigListObject.routeKey = valueLogicTableRouteConfigListLogicTableRouteConfig["RouteKey"].asString();
if(!valueLogicTableRouteConfigListLogicTableRouteConfig["RouteExpr"].isNull())
logicTableRouteConfigListObject.routeExpr = valueLogicTableRouteConfigListLogicTableRouteConfig["RouteExpr"].asString();
if(!valueLogicTableRouteConfigListLogicTableRouteConfig["TableId"].isNull())
logicTableRouteConfigListObject.tableId = std::stol(valueLogicTableRouteConfigListLogicTableRouteConfig["TableId"].asString());
logicTableRouteConfigList_.push_back(logicTableRouteConfigListObject);
}
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<ListLogicTableRouteConfigResult::LogicTableRouteConfig> ListLogicTableRouteConfigResult::getLogicTableRouteConfigList()const
{
return logicTableRouteConfigList_;
}
std::string ListLogicTableRouteConfigResult::getErrorCode()const
{
return errorCode_;
}
std::string ListLogicTableRouteConfigResult::getErrorMessage()const
{
return errorMessage_;
}
bool ListLogicTableRouteConfigResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +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/ListProxiesRequest.h>
using AlibabaCloud::Dms_enterprise::Model::ListProxiesRequest;
ListProxiesRequest::ListProxiesRequest()
: RpcServiceRequest("dms-enterprise", "2018-11-01", "ListProxies") {
setMethod(HttpRequest::Method::Post);
}
ListProxiesRequest::~ListProxiesRequest() {}
long ListProxiesRequest::getTid() const {
return tid_;
}
void ListProxiesRequest::setTid(long tid) {
tid_ = tid;
setParameter(std::string("Tid"), std::to_string(tid));
}

View File

@@ -0,0 +1,96 @@
/*
* 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/ListProxiesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
ListProxiesResult::ListProxiesResult() :
ServiceResult()
{}
ListProxiesResult::ListProxiesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListProxiesResult::~ListProxiesResult()
{}
void ListProxiesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allProxyListNode = value["ProxyList"]["ProxyListItem"];
for (auto valueProxyListProxyListItem : allProxyListNode)
{
ProxyListItem proxyListObject;
if(!valueProxyListProxyListItem["ProxyId"].isNull())
proxyListObject.proxyId = std::stol(valueProxyListProxyListItem["ProxyId"].asString());
if(!valueProxyListProxyListItem["CreatorId"].isNull())
proxyListObject.creatorId = std::stol(valueProxyListProxyListItem["CreatorId"].asString());
if(!valueProxyListProxyListItem["CreatorName"].isNull())
proxyListObject.creatorName = valueProxyListProxyListItem["CreatorName"].asString();
if(!valueProxyListProxyListItem["InstanceId"].isNull())
proxyListObject.instanceId = std::stol(valueProxyListProxyListItem["InstanceId"].asString());
if(!valueProxyListProxyListItem["PrivateEnable"].isNull())
proxyListObject.privateEnable = valueProxyListProxyListItem["PrivateEnable"].asString() == "true";
if(!valueProxyListProxyListItem["PrivateHost"].isNull())
proxyListObject.privateHost = valueProxyListProxyListItem["PrivateHost"].asString();
if(!valueProxyListProxyListItem["PublicEnable"].isNull())
proxyListObject.publicEnable = valueProxyListProxyListItem["PublicEnable"].asString() == "true";
if(!valueProxyListProxyListItem["PublicHost"].isNull())
proxyListObject.publicHost = valueProxyListProxyListItem["PublicHost"].asString();
if(!valueProxyListProxyListItem["MysqlPort"].isNull())
proxyListObject.mysqlPort = std::stoi(valueProxyListProxyListItem["MysqlPort"].asString());
if(!valueProxyListProxyListItem["HttpsPort"].isNull())
proxyListObject.httpsPort = std::stoi(valueProxyListProxyListItem["HttpsPort"].asString());
proxyList_.push_back(proxyListObject);
}
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<ListProxiesResult::ProxyListItem> ListProxiesResult::getProxyList()const
{
return proxyList_;
}
std::string ListProxiesResult::getErrorCode()const
{
return errorCode_;
}
std::string ListProxiesResult::getErrorMessage()const
{
return errorMessage_;
}
bool ListProxiesResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +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/ListProxyAccessesRequest.h>
using AlibabaCloud::Dms_enterprise::Model::ListProxyAccessesRequest;
ListProxyAccessesRequest::ListProxyAccessesRequest()
: RpcServiceRequest("dms-enterprise", "2018-11-01", "ListProxyAccesses") {
setMethod(HttpRequest::Method::Post);
}
ListProxyAccessesRequest::~ListProxyAccessesRequest() {}
long ListProxyAccessesRequest::getTid() const {
return tid_;
}
void ListProxyAccessesRequest::setTid(long tid) {
tid_ = tid;
setParameter(std::string("Tid"), std::to_string(tid));
}
long ListProxyAccessesRequest::getProxyId() const {
return proxyId_;
}
void ListProxyAccessesRequest::setProxyId(long proxyId) {
proxyId_ = proxyId;
setParameter(std::string("ProxyId"), std::to_string(proxyId));
}

View File

@@ -0,0 +1,96 @@
/*
* 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/ListProxyAccessesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
ListProxyAccessesResult::ListProxyAccessesResult() :
ServiceResult()
{}
ListProxyAccessesResult::ListProxyAccessesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListProxyAccessesResult::~ListProxyAccessesResult()
{}
void ListProxyAccessesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allProxyAccessListNode = value["ProxyAccessList"]["ProxyAccessListItem"];
for (auto valueProxyAccessListProxyAccessListItem : allProxyAccessListNode)
{
ProxyAccessListItem proxyAccessListObject;
if(!valueProxyAccessListProxyAccessListItem["ProxyAccessId"].isNull())
proxyAccessListObject.proxyAccessId = std::stol(valueProxyAccessListProxyAccessListItem["ProxyAccessId"].asString());
if(!valueProxyAccessListProxyAccessListItem["GmtCreate"].isNull())
proxyAccessListObject.gmtCreate = valueProxyAccessListProxyAccessListItem["GmtCreate"].asString();
if(!valueProxyAccessListProxyAccessListItem["AccessId"].isNull())
proxyAccessListObject.accessId = valueProxyAccessListProxyAccessListItem["AccessId"].asString();
if(!valueProxyAccessListProxyAccessListItem["OriginInfo"].isNull())
proxyAccessListObject.originInfo = valueProxyAccessListProxyAccessListItem["OriginInfo"].asString();
if(!valueProxyAccessListProxyAccessListItem["IndepAccount"].isNull())
proxyAccessListObject.indepAccount = valueProxyAccessListProxyAccessListItem["IndepAccount"].asString();
if(!valueProxyAccessListProxyAccessListItem["UserId"].isNull())
proxyAccessListObject.userId = std::stol(valueProxyAccessListProxyAccessListItem["UserId"].asString());
if(!valueProxyAccessListProxyAccessListItem["UserUid"].isNull())
proxyAccessListObject.userUid = valueProxyAccessListProxyAccessListItem["UserUid"].asString();
if(!valueProxyAccessListProxyAccessListItem["UserName"].isNull())
proxyAccessListObject.userName = valueProxyAccessListProxyAccessListItem["UserName"].asString();
if(!valueProxyAccessListProxyAccessListItem["ProxyId"].isNull())
proxyAccessListObject.proxyId = std::stol(valueProxyAccessListProxyAccessListItem["ProxyId"].asString());
if(!valueProxyAccessListProxyAccessListItem["InstanceId"].isNull())
proxyAccessListObject.instanceId = std::stol(valueProxyAccessListProxyAccessListItem["InstanceId"].asString());
proxyAccessList_.push_back(proxyAccessListObject);
}
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::string ListProxyAccessesResult::getErrorCode()const
{
return errorCode_;
}
std::string ListProxyAccessesResult::getErrorMessage()const
{
return errorMessage_;
}
bool ListProxyAccessesResult::getSuccess()const
{
return success_;
}
std::vector<ListProxyAccessesResult::ProxyAccessListItem> ListProxyAccessesResult::getProxyAccessList()const
{
return proxyAccessList_;
}

View File

@@ -0,0 +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/ListProxySQLExecAuditLogRequest.h>
using AlibabaCloud::Dms_enterprise::Model::ListProxySQLExecAuditLogRequest;
ListProxySQLExecAuditLogRequest::ListProxySQLExecAuditLogRequest()
: RpcServiceRequest("dms-enterprise", "2018-11-01", "ListProxySQLExecAuditLog") {
setMethod(HttpRequest::Method::Post);
}
ListProxySQLExecAuditLogRequest::~ListProxySQLExecAuditLogRequest() {}
std::string ListProxySQLExecAuditLogRequest::getSQLType() const {
return sQLType_;
}
void ListProxySQLExecAuditLogRequest::setSQLType(const std::string &sQLType) {
sQLType_ = sQLType;
setParameter(std::string("SQLType"), sQLType);
}
std::string ListProxySQLExecAuditLogRequest::getSearchName() const {
return searchName_;
}
void ListProxySQLExecAuditLogRequest::setSearchName(const std::string &searchName) {
searchName_ = searchName;
setParameter(std::string("SearchName"), searchName);
}
std::string ListProxySQLExecAuditLogRequest::getOpUserName() const {
return opUserName_;
}
void ListProxySQLExecAuditLogRequest::setOpUserName(const std::string &opUserName) {
opUserName_ = opUserName;
setParameter(std::string("OpUserName"), opUserName);
}
long ListProxySQLExecAuditLogRequest::getEndTime() const {
return endTime_;
}
void ListProxySQLExecAuditLogRequest::setEndTime(long endTime) {
endTime_ = endTime;
setParameter(std::string("EndTime"), std::to_string(endTime));
}
long ListProxySQLExecAuditLogRequest::getStartTime() const {
return startTime_;
}
void ListProxySQLExecAuditLogRequest::setStartTime(long startTime) {
startTime_ = startTime;
setParameter(std::string("StartTime"), std::to_string(startTime));
}
int ListProxySQLExecAuditLogRequest::getPageNumber() const {
return pageNumber_;
}
void ListProxySQLExecAuditLogRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
long ListProxySQLExecAuditLogRequest::getTid() const {
return tid_;
}
void ListProxySQLExecAuditLogRequest::setTid(long tid) {
tid_ = tid;
setParameter(std::string("Tid"), std::to_string(tid));
}
int ListProxySQLExecAuditLogRequest::getPageSize() const {
return pageSize_;
}
void ListProxySQLExecAuditLogRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string ListProxySQLExecAuditLogRequest::getExecState() const {
return execState_;
}
void ListProxySQLExecAuditLogRequest::setExecState(const std::string &execState) {
execState_ = execState;
setParameter(std::string("ExecState"), execState);
}

View File

@@ -0,0 +1,107 @@
/*
* 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/ListProxySQLExecAuditLogResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
ListProxySQLExecAuditLogResult::ListProxySQLExecAuditLogResult() :
ServiceResult()
{}
ListProxySQLExecAuditLogResult::ListProxySQLExecAuditLogResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListProxySQLExecAuditLogResult::~ListProxySQLExecAuditLogResult()
{}
void ListProxySQLExecAuditLogResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allProxySQLExecAuditLogListNode = value["ProxySQLExecAuditLogList"]["ProxySQLExecAuditLog"];
for (auto valueProxySQLExecAuditLogListProxySQLExecAuditLog : allProxySQLExecAuditLogListNode)
{
ProxySQLExecAuditLog proxySQLExecAuditLogListObject;
if(!valueProxySQLExecAuditLogListProxySQLExecAuditLog["OpTime"].isNull())
proxySQLExecAuditLogListObject.opTime = valueProxySQLExecAuditLogListProxySQLExecAuditLog["OpTime"].asString();
if(!valueProxySQLExecAuditLogListProxySQLExecAuditLog["UserName"].isNull())
proxySQLExecAuditLogListObject.userName = valueProxySQLExecAuditLogListProxySQLExecAuditLog["UserName"].asString();
if(!valueProxySQLExecAuditLogListProxySQLExecAuditLog["UserId"].isNull())
proxySQLExecAuditLogListObject.userId = std::stol(valueProxySQLExecAuditLogListProxySQLExecAuditLog["UserId"].asString());
if(!valueProxySQLExecAuditLogListProxySQLExecAuditLog["InstanceName"].isNull())
proxySQLExecAuditLogListObject.instanceName = valueProxySQLExecAuditLogListProxySQLExecAuditLog["InstanceName"].asString();
if(!valueProxySQLExecAuditLogListProxySQLExecAuditLog["InstanceId"].isNull())
proxySQLExecAuditLogListObject.instanceId = std::stol(valueProxySQLExecAuditLogListProxySQLExecAuditLog["InstanceId"].asString());
if(!valueProxySQLExecAuditLogListProxySQLExecAuditLog["SchemaName"].isNull())
proxySQLExecAuditLogListObject.schemaName = valueProxySQLExecAuditLogListProxySQLExecAuditLog["SchemaName"].asString();
if(!valueProxySQLExecAuditLogListProxySQLExecAuditLog["SQLType"].isNull())
proxySQLExecAuditLogListObject.sQLType = valueProxySQLExecAuditLogListProxySQLExecAuditLog["SQLType"].asString();
if(!valueProxySQLExecAuditLogListProxySQLExecAuditLog["SQL"].isNull())
proxySQLExecAuditLogListObject.sQL = valueProxySQLExecAuditLogListProxySQLExecAuditLog["SQL"].asString();
if(!valueProxySQLExecAuditLogListProxySQLExecAuditLog["ExecState"].isNull())
proxySQLExecAuditLogListObject.execState = valueProxySQLExecAuditLogListProxySQLExecAuditLog["ExecState"].asString();
if(!valueProxySQLExecAuditLogListProxySQLExecAuditLog["AffectRows"].isNull())
proxySQLExecAuditLogListObject.affectRows = std::stol(valueProxySQLExecAuditLogListProxySQLExecAuditLog["AffectRows"].asString());
if(!valueProxySQLExecAuditLogListProxySQLExecAuditLog["ElapsedTime"].isNull())
proxySQLExecAuditLogListObject.elapsedTime = std::stol(valueProxySQLExecAuditLogListProxySQLExecAuditLog["ElapsedTime"].asString());
if(!valueProxySQLExecAuditLogListProxySQLExecAuditLog["Remark"].isNull())
proxySQLExecAuditLogListObject.remark = valueProxySQLExecAuditLogListProxySQLExecAuditLog["Remark"].asString();
proxySQLExecAuditLogList_.push_back(proxySQLExecAuditLogListObject);
}
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<ListProxySQLExecAuditLogResult::ProxySQLExecAuditLog> ListProxySQLExecAuditLogResult::getProxySQLExecAuditLogList()const
{
return proxySQLExecAuditLogList_;
}
long ListProxySQLExecAuditLogResult::getTotalCount()const
{
return totalCount_;
}
std::string ListProxySQLExecAuditLogResult::getErrorCode()const
{
return errorCode_;
}
std::string ListProxySQLExecAuditLogResult::getErrorMessage()const
{
return errorMessage_;
}
bool ListProxySQLExecAuditLogResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +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/ListSQLExecAuditLogRequest.h>
using AlibabaCloud::Dms_enterprise::Model::ListSQLExecAuditLogRequest;
ListSQLExecAuditLogRequest::ListSQLExecAuditLogRequest()
: RpcServiceRequest("dms-enterprise", "2018-11-01", "ListSQLExecAuditLog") {
setMethod(HttpRequest::Method::Post);
}
ListSQLExecAuditLogRequest::~ListSQLExecAuditLogRequest() {}
std::string ListSQLExecAuditLogRequest::getSqlType() const {
return sqlType_;
}
void ListSQLExecAuditLogRequest::setSqlType(const std::string &sqlType) {
sqlType_ = sqlType;
setParameter(std::string("SqlType"), sqlType);
}
std::string ListSQLExecAuditLogRequest::getSearchName() const {
return searchName_;
}
void ListSQLExecAuditLogRequest::setSearchName(const std::string &searchName) {
searchName_ = searchName;
setParameter(std::string("SearchName"), searchName);
}
std::string ListSQLExecAuditLogRequest::getOpUserName() const {
return opUserName_;
}
void ListSQLExecAuditLogRequest::setOpUserName(const std::string &opUserName) {
opUserName_ = opUserName;
setParameter(std::string("OpUserName"), opUserName);
}
std::string ListSQLExecAuditLogRequest::getEndTime() const {
return endTime_;
}
void ListSQLExecAuditLogRequest::setEndTime(const std::string &endTime) {
endTime_ = endTime;
setParameter(std::string("EndTime"), endTime);
}
std::string ListSQLExecAuditLogRequest::getStartTime() const {
return startTime_;
}
void ListSQLExecAuditLogRequest::setStartTime(const std::string &startTime) {
startTime_ = startTime;
setParameter(std::string("StartTime"), startTime);
}
int ListSQLExecAuditLogRequest::getPageNumber() const {
return pageNumber_;
}
void ListSQLExecAuditLogRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
long ListSQLExecAuditLogRequest::getTid() const {
return tid_;
}
void ListSQLExecAuditLogRequest::setTid(long tid) {
tid_ = tid;
setParameter(std::string("Tid"), std::to_string(tid));
}
int ListSQLExecAuditLogRequest::getPageSize() const {
return pageSize_;
}
void ListSQLExecAuditLogRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string ListSQLExecAuditLogRequest::getExecState() const {
return execState_;
}
void ListSQLExecAuditLogRequest::setExecState(const std::string &execState) {
execState_ = execState;
setParameter(std::string("ExecState"), execState);
}

View File

@@ -0,0 +1,111 @@
/*
* 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/ListSQLExecAuditLogResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
ListSQLExecAuditLogResult::ListSQLExecAuditLogResult() :
ServiceResult()
{}
ListSQLExecAuditLogResult::ListSQLExecAuditLogResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListSQLExecAuditLogResult::~ListSQLExecAuditLogResult()
{}
void ListSQLExecAuditLogResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allSQLExecAuditLogListNode = value["SQLExecAuditLogList"]["SQLExecAuditLog"];
for (auto valueSQLExecAuditLogListSQLExecAuditLog : allSQLExecAuditLogListNode)
{
SQLExecAuditLog sQLExecAuditLogListObject;
if(!valueSQLExecAuditLogListSQLExecAuditLog["OpTime"].isNull())
sQLExecAuditLogListObject.opTime = valueSQLExecAuditLogListSQLExecAuditLog["OpTime"].asString();
if(!valueSQLExecAuditLogListSQLExecAuditLog["UserName"].isNull())
sQLExecAuditLogListObject.userName = valueSQLExecAuditLogListSQLExecAuditLog["UserName"].asString();
if(!valueSQLExecAuditLogListSQLExecAuditLog["UserId"].isNull())
sQLExecAuditLogListObject.userId = std::stol(valueSQLExecAuditLogListSQLExecAuditLog["UserId"].asString());
if(!valueSQLExecAuditLogListSQLExecAuditLog["InstanceName"].isNull())
sQLExecAuditLogListObject.instanceName = valueSQLExecAuditLogListSQLExecAuditLog["InstanceName"].asString();
if(!valueSQLExecAuditLogListSQLExecAuditLog["InstanceId"].isNull())
sQLExecAuditLogListObject.instanceId = std::stol(valueSQLExecAuditLogListSQLExecAuditLog["InstanceId"].asString());
if(!valueSQLExecAuditLogListSQLExecAuditLog["SchemaName"].isNull())
sQLExecAuditLogListObject.schemaName = valueSQLExecAuditLogListSQLExecAuditLog["SchemaName"].asString();
if(!valueSQLExecAuditLogListSQLExecAuditLog["DbId"].isNull())
sQLExecAuditLogListObject.dbId = std::stol(valueSQLExecAuditLogListSQLExecAuditLog["DbId"].asString());
if(!valueSQLExecAuditLogListSQLExecAuditLog["Logic"].isNull())
sQLExecAuditLogListObject.logic = valueSQLExecAuditLogListSQLExecAuditLog["Logic"].asString() == "true";
if(!valueSQLExecAuditLogListSQLExecAuditLog["SQLType"].isNull())
sQLExecAuditLogListObject.sQLType = valueSQLExecAuditLogListSQLExecAuditLog["SQLType"].asString();
if(!valueSQLExecAuditLogListSQLExecAuditLog["SQL"].isNull())
sQLExecAuditLogListObject.sQL = valueSQLExecAuditLogListSQLExecAuditLog["SQL"].asString();
if(!valueSQLExecAuditLogListSQLExecAuditLog["ExecState"].isNull())
sQLExecAuditLogListObject.execState = valueSQLExecAuditLogListSQLExecAuditLog["ExecState"].asString();
if(!valueSQLExecAuditLogListSQLExecAuditLog["AffectRows"].isNull())
sQLExecAuditLogListObject.affectRows = std::stol(valueSQLExecAuditLogListSQLExecAuditLog["AffectRows"].asString());
if(!valueSQLExecAuditLogListSQLExecAuditLog["ElapsedTime"].isNull())
sQLExecAuditLogListObject.elapsedTime = std::stol(valueSQLExecAuditLogListSQLExecAuditLog["ElapsedTime"].asString());
if(!valueSQLExecAuditLogListSQLExecAuditLog["Remark"].isNull())
sQLExecAuditLogListObject.remark = valueSQLExecAuditLogListSQLExecAuditLog["Remark"].asString();
sQLExecAuditLogList_.push_back(sQLExecAuditLogListObject);
}
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 ListSQLExecAuditLogResult::getTotalCount()const
{
return totalCount_;
}
std::string ListSQLExecAuditLogResult::getErrorCode()const
{
return errorCode_;
}
std::string ListSQLExecAuditLogResult::getErrorMessage()const
{
return errorMessage_;
}
std::vector<ListSQLExecAuditLogResult::SQLExecAuditLog> ListSQLExecAuditLogResult::getSQLExecAuditLogList()const
{
return sQLExecAuditLogList_;
}
bool ListSQLExecAuditLogResult::getSuccess()const
{
return success_;
}

View File

@@ -52,6 +52,24 @@ void ListSensitiveColumnsDetailRequest::setTid(long tid) {
setParameter(std::string("Tid"), std::to_string(tid));
}
long ListSensitiveColumnsDetailRequest::getDbId() const {
return dbId_;
}
void ListSensitiveColumnsDetailRequest::setDbId(long dbId) {
dbId_ = dbId;
setParameter(std::string("DbId"), std::to_string(dbId));
}
bool ListSensitiveColumnsDetailRequest::getLogic() const {
return logic_;
}
void ListSensitiveColumnsDetailRequest::setLogic(bool logic) {
logic_ = logic;
setParameter(std::string("Logic"), logic ? "true" : "false");
}
std::string ListSensitiveColumnsDetailRequest::getTableName() const {
return tableName_;
}

View File

@@ -70,6 +70,15 @@ void ListSensitiveColumnsRequest::setSecurityLevel(const std::string &securityLe
setParameter(std::string("SecurityLevel"), securityLevel);
}
long ListSensitiveColumnsRequest::getDbId() const {
return dbId_;
}
void ListSensitiveColumnsRequest::setDbId(long dbId) {
dbId_ = dbId;
setParameter(std::string("DbId"), std::to_string(dbId));
}
int ListSensitiveColumnsRequest::getPageSize() const {
return pageSize_;
}
@@ -79,6 +88,15 @@ void ListSensitiveColumnsRequest::setPageSize(int pageSize) {
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
bool ListSensitiveColumnsRequest::getLogic() const {
return logic_;
}
void ListSensitiveColumnsRequest::setLogic(bool logic) {
logic_ = logic;
setParameter(std::string("Logic"), logic ? "true" : "false");
}
std::string ListSensitiveColumnsRequest::getTableName() const {
return tableName_;
}

View File

@@ -25,6 +25,15 @@ ListUserPermissionsRequest::ListUserPermissionsRequest()
ListUserPermissionsRequest::~ListUserPermissionsRequest() {}
std::string ListUserPermissionsRequest::getSearchKey() const {
return searchKey_;
}
void ListUserPermissionsRequest::setSearchKey(const std::string &searchKey) {
searchKey_ = searchKey;
setParameter(std::string("SearchKey"), searchKey);
}
std::string ListUserPermissionsRequest::getUserId() const {
return userId_;
}

View File

@@ -71,6 +71,10 @@ void ListUserPermissionsResult::parse(const std::string &payload)
userPermissionsObject.searchName = valueUserPermissionsUserPermission["SearchName"].asString();
if(!valueUserPermissionsUserPermission["Alias"].isNull())
userPermissionsObject.alias = valueUserPermissionsUserPermission["Alias"].asString();
if(!valueUserPermissionsUserPermission["Host"].isNull())
userPermissionsObject.host = valueUserPermissionsUserPermission["Host"].asString();
if(!valueUserPermissionsUserPermission["Port"].isNull())
userPermissionsObject.port = std::stol(valueUserPermissionsUserPermission["Port"].asString());
auto allPermDetailsNode = valueUserPermissionsUserPermission["PermDetails"]["PermDetail"];
for (auto valueUserPermissionsUserPermissionPermDetailsPermDetail : allPermDetailsNode)
{

View File

@@ -65,6 +65,16 @@ void ListUsersResult::parse(const std::string &payload)
userListObject.mobile = valueUserListUser["Mobile"].asString();
if(!valueUserListUser["Uid"].isNull())
userListObject.uid = valueUserListUser["Uid"].asString();
if(!valueUserListUser["Email"].isNull())
userListObject.email = valueUserListUser["Email"].asString();
if(!valueUserListUser["DingRobot"].isNull())
userListObject.dingRobot = valueUserListUser["DingRobot"].asString();
if(!valueUserListUser["Webhook"].isNull())
userListObject.webhook = valueUserListUser["Webhook"].asString();
if(!valueUserListUser["SignatureMethod"].isNull())
userListObject.signatureMethod = valueUserListUser["SignatureMethod"].asString();
if(!valueUserListUser["NotificationMode"].isNull())
userListObject.notificationMode = valueUserListUser["NotificationMode"].asString();
auto allRoleIdList = value["RoleIdList"]["RoleIds"];
for (auto value : allRoleIdList)
userListObject.roleIdList.push_back(value.asString());

View File

@@ -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/ModifyDataCorrectExecSQLRequest.h>
using AlibabaCloud::Dms_enterprise::Model::ModifyDataCorrectExecSQLRequest;
ModifyDataCorrectExecSQLRequest::ModifyDataCorrectExecSQLRequest()
: RpcServiceRequest("dms-enterprise", "2018-11-01", "ModifyDataCorrectExecSQL") {
setMethod(HttpRequest::Method::Post);
}
ModifyDataCorrectExecSQLRequest::~ModifyDataCorrectExecSQLRequest() {}
long ModifyDataCorrectExecSQLRequest::getOrderId() const {
return orderId_;
}
void ModifyDataCorrectExecSQLRequest::setOrderId(long orderId) {
orderId_ = orderId;
setParameter(std::string("OrderId"), std::to_string(orderId));
}
std::string ModifyDataCorrectExecSQLRequest::getExecSQL() const {
return execSQL_;
}
void ModifyDataCorrectExecSQLRequest::setExecSQL(const std::string &execSQL) {
execSQL_ = execSQL;
setParameter(std::string("ExecSQL"), execSQL);
}
long ModifyDataCorrectExecSQLRequest::getTid() const {
return tid_;
}
void ModifyDataCorrectExecSQLRequest::setTid(long tid) {
tid_ = tid;
setParameter(std::string("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/ModifyDataCorrectExecSQLResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
ModifyDataCorrectExecSQLResult::ModifyDataCorrectExecSQLResult() :
ServiceResult()
{}
ModifyDataCorrectExecSQLResult::ModifyDataCorrectExecSQLResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ModifyDataCorrectExecSQLResult::~ModifyDataCorrectExecSQLResult()
{}
void ModifyDataCorrectExecSQLResult::parse(const std::string &payload)
{
Json::Reader reader;
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();
}
std::string ModifyDataCorrectExecSQLResult::getErrorCode()const
{
return errorCode_;
}
std::string ModifyDataCorrectExecSQLResult::getErrorMessage()const
{
return errorMessage_;
}
bool ModifyDataCorrectExecSQLResult::getSuccess()const
{
return success_;
}

View File

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

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

View File

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

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

View File

@@ -0,0 +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/RetryDataCorrectPreCheckRequest.h>
using AlibabaCloud::Dms_enterprise::Model::RetryDataCorrectPreCheckRequest;
RetryDataCorrectPreCheckRequest::RetryDataCorrectPreCheckRequest()
: RpcServiceRequest("dms-enterprise", "2018-11-01", "RetryDataCorrectPreCheck") {
setMethod(HttpRequest::Method::Post);
}
RetryDataCorrectPreCheckRequest::~RetryDataCorrectPreCheckRequest() {}
long RetryDataCorrectPreCheckRequest::getOrderId() const {
return orderId_;
}
void RetryDataCorrectPreCheckRequest::setOrderId(long orderId) {
orderId_ = orderId;
setParameter(std::string("OrderId"), std::to_string(orderId));
}
long RetryDataCorrectPreCheckRequest::getTid() const {
return tid_;
}
void RetryDataCorrectPreCheckRequest::setTid(long tid) {
tid_ = tid;
setParameter(std::string("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/RetryDataCorrectPreCheckResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
RetryDataCorrectPreCheckResult::RetryDataCorrectPreCheckResult() :
ServiceResult()
{}
RetryDataCorrectPreCheckResult::RetryDataCorrectPreCheckResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
RetryDataCorrectPreCheckResult::~RetryDataCorrectPreCheckResult()
{}
void RetryDataCorrectPreCheckResult::parse(const std::string &payload)
{
Json::Reader reader;
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();
}
std::string RetryDataCorrectPreCheckResult::getErrorCode()const
{
return errorCode_;
}
std::string RetryDataCorrectPreCheckResult::getErrorMessage()const
{
return errorMessage_;
}
bool RetryDataCorrectPreCheckResult::getSuccess()const
{
return success_;
}

View File

@@ -70,6 +70,15 @@ void RevokeUserPermissionRequest::setTid(long tid) {
setParameter(std::string("Tid"), std::to_string(tid));
}
long RevokeUserPermissionRequest::getInstanceId() const {
return instanceId_;
}
void RevokeUserPermissionRequest::setInstanceId(long instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), std::to_string(instanceId));
}
std::string RevokeUserPermissionRequest::getDbId() const {
return dbId_;
}

View File

@@ -0,0 +1,116 @@
/*
* 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/SubmitSparkJobRequest.h>
using AlibabaCloud::Dms_enterprise::Model::SubmitSparkJobRequest;
SubmitSparkJobRequest::SubmitSparkJobRequest()
: RpcServiceRequest("dms-enterprise", "2018-11-01", "SubmitSparkJob") {
setMethod(HttpRequest::Method::Post);
}
SubmitSparkJobRequest::~SubmitSparkJobRequest() {}
std::string SubmitSparkJobRequest::getMainClass() const {
return mainClass_;
}
void SubmitSparkJobRequest::setMainClass(const std::string &mainClass) {
mainClass_ = mainClass;
setBodyParameter(std::string("MainClass"), mainClass);
}
std::map<std::string, std::string> SubmitSparkJobRequest::getConfiguration() const {
return configuration_;
}
void SubmitSparkJobRequest::setConfiguration(const std::map<std::string, std::string> &configuration) {
configuration_ = configuration;
for(auto const &iter1 : configuration) {
setBodyParameter(std::string("Configuration") + "." + iter1.first, iter1.second);
}
}
SubmitSparkJobRequest::OssInfo SubmitSparkJobRequest::getOssInfo() const {
return ossInfo_;
}
void SubmitSparkJobRequest::setOssInfo(const SubmitSparkJobRequest::OssInfo &ossInfo) {
ossInfo_ = ossInfo;
setBodyParameter(std::string("OssInfo") + ".Endpoint", ossInfo.endpoint);
setBodyParameter(std::string("OssInfo") + ".AccessKeySecret", ossInfo.accessKeySecret);
setBodyParameter(std::string("OssInfo") + ".AccessKeyId", ossInfo.accessKeyId);
}
long SubmitSparkJobRequest::getTid() const {
return tid_;
}
void SubmitSparkJobRequest::setTid(long tid) {
tid_ = tid;
setParameter(std::string("Tid"), std::to_string(tid));
}
std::string SubmitSparkJobRequest::getMainFile() const {
return mainFile_;
}
void SubmitSparkJobRequest::setMainFile(const std::string &mainFile) {
mainFile_ = mainFile;
setBodyParameter(std::string("MainFile"), mainFile);
}
std::string SubmitSparkJobRequest::getName() const {
return name_;
}
void SubmitSparkJobRequest::setName(const std::string &name) {
name_ = name;
setBodyParameter(std::string("Name"), name);
}
std::vector<SubmitSparkJobRequest::std::string> SubmitSparkJobRequest::getFiles() const {
return files_;
}
void SubmitSparkJobRequest::setFiles(const std::vector<SubmitSparkJobRequest::std::string> &files) {
files_ = files;
for(int dep1 = 0; dep1 != files.size(); dep1++) {
setBodyParameter(std::string("Files") + "." + std::to_string(dep1 + 1), files[dep1]);
}
}
std::string SubmitSparkJobRequest::getAppCode() const {
return appCode_;
}
void SubmitSparkJobRequest::setAppCode(const std::string &appCode) {
appCode_ = appCode;
setBodyParameter(std::string("AppCode"), appCode);
}
std::vector<SubmitSparkJobRequest::std::string> SubmitSparkJobRequest::getArguments() const {
return arguments_;
}
void SubmitSparkJobRequest::setArguments(const std::vector<SubmitSparkJobRequest::std::string> &arguments) {
arguments_ = arguments;
for(int dep1 = 0; dep1 != arguments.size(); dep1++) {
setBodyParameter(std::string("Arguments") + "." + std::to_string(dep1 + 1), arguments[dep1]);
}
}

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/SubmitSparkJobResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Dms_enterprise;
using namespace AlibabaCloud::Dms_enterprise::Model;
SubmitSparkJobResult::SubmitSparkJobResult() :
ServiceResult()
{}
SubmitSparkJobResult::SubmitSparkJobResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SubmitSparkJobResult::~SubmitSparkJobResult()
{}
void SubmitSparkJobResult::parse(const std::string &payload)
{
Json::Reader reader;
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["JobId"].isNull())
jobId_ = std::stol(value["JobId"].asString());
}
std::string SubmitSparkJobResult::getErrorCode()const
{
return errorCode_;
}
std::string SubmitSparkJobResult::getErrorMessage()const
{
return errorMessage_;
}
bool SubmitSparkJobResult::getSuccess()const
{
return success_;
}
long SubmitSparkJobResult::getJobId()const
{
return jobId_;
}